diff --git a/node_modules/asn1/.npmignore b/.gitignore similarity index 54% rename from node_modules/asn1/.npmignore rename to .gitignore index eb03e3e..346be29 100644 --- a/node_modules/asn1/.npmignore +++ b/.gitignore @@ -1,2 +1,2 @@ +.gitignore node_modules -*.log diff --git a/education.html b/education.html index 5326fec..d2c008e 100644 --- a/education.html +++ b/education.html @@ -70,19 +70,19 @@

Why I chose UTC:

UT Chattanooga has a much more modern and dynamically changing Computer Science curriculum compared to MTSU. MTSU's Computer Science program is not subdivided into specialties as they are at UTC, and the perspectives of programming are much more primitive and on a machine level. Additionally, while C++ is a popular and symantically relatable programming language, it is incomparable to Java's system compatibility - even if the JVM is considered "indefficient".

- + -
-
-
- + 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 [![build status](https://secure.travis-ci.org/thlorenz/convert-source-map.png)](http://travis-ci.org/thlorenz/convert-source-map) - -[![NPM](https://nodei.co/npm/convert-source-map.png?downloads=true&stars=true)](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. - - -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/thlorenz/convert-source-map/trend.png)](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 -====== - -[![npm](https://img.shields.io/npm/v/accord.svg?style=flat)](http://badge.fury.io/js/accord) -[![tests](https://img.shields.io/travis/jescalan/accord/master.svg?style=flat)](https://travis-ci.org/jescalan/accord) -[![coverage](https://img.shields.io/coveralls/jescalan/accord/master.svg?style=flat)](https://coveralls.io/r/jescalan/accord?branch=master) -[![dependencies](https://img.shields.io/david/jescalan/accord.svg?style=flat)](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 [![NPM version](https://badge.fury.io/js/align-text.svg)](http://badge.fury.io/js/align-text) [![Build Status](https://travis-ci.org/jonschlinkert/align-text.svg)](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): - -[![screen shot 2015-06-09 at 2 08 34 am](https://cloud.githubusercontent.com/assets/383994/8051597/7b716fbc-0e4c-11e5-9aef-4493fd22db58.png)](./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 [![Build Status](https://travis-ci.org/sindresorhus/ansi-escapes.svg?branch=master)](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 [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](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 [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](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. - -![](screenshot.png) - - -## 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 [![build status](https://secure.travis-ci.org/thlorenz/ansicolors.png)](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 [![build status](https://secure.travis-ci.org/thlorenz/ansicolors.png)](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 [![Build Status](https://travis-ci.org/es128/anymatch.svg?branch=master)](https://travis-ci.org/es128/anymatch) [![Coverage Status](https://img.shields.io/coveralls/es128/anymatch.svg?branch=master)](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. - -[![NPM](https://nodei.co/npm/anymatch.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/anymatch/) -[![NPM](https://nodei.co/npm-dl/anymatch.png?height=3&months=9)](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. - -[![browser support](http://ci.testling.com/substack/node-archy.png)](http://ci.testling.com/substack/node-archy) - -[![build status](https://secure.travis-ci.org/substack/node-archy.png)](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 -======== - -[![Build Status](https://secure.travis-ci.org/nodeca/argparse.png?branch=master)](http://travis-ci.org/nodeca/argparse) -[![NPM version](https://img.shields.io/npm/v/argparse.svg)](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 [![NPM version](https://img.shields.io/npm/v/arr-diff.svg)](https://www.npmjs.com/package/arr-diff) [![Build Status](https://img.shields.io/travis/jonschlinkert/base.svg)](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 [![NPM version](https://badge.fury.io/js/arr-flatten.svg)](http://badge.fury.io/js/arr-flatten) [![Build Status](https://travis-ci.org/jonschlinkert/arr-flatten.svg)](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 [![Build Status](https://travis-ci.org/sindresorhus/array-differ.svg?branch=master)](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 [![Build Status](https://travis-ci.org/sindresorhus/array-find-index.svg?branch=master)](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 [![Build Status](https://travis-ci.org/sindresorhus/array-union.svg?branch=master)](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 [![Build Status](https://travis-ci.org/sindresorhus/array-uniq.svg?branch=master)](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 [![NPM version](https://badge.fury.io/js/array-unique.svg)](http://badge.fury.io/js/array-unique) [![Build Status](https://travis-ci.org/jonschlinkert/array-unique.svg)](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 [![Build Status](https://travis-ci.org/sindresorhus/arrify.svg?branch=master)](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][]. - -![Browser Compatibility](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-results-matrix.svg) - -![Compatibility in Web Workers](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-worker-results-matrix.svg) - -[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 - -[![Build Status](https://travis-ci.org/kriskowal/asap.png?branch=master)](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 - -![Browser Compatibility](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-results-matrix.svg) - -![Compatibility in Web Workers](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-worker-results-matrix.svg) - -## 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/.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 - - - - diff --git a/node_modules/cli-width/coverage/lcov-report/cli-width/index.js.html b/node_modules/cli-width/coverage/lcov-report/cli-width/index.js.html deleted file mode 100644 index ab53a68..0000000 --- a/node_modules/cli-width/coverage/lcov-report/cli-width/index.js.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - Code coverage report for cli-width/index.js - - - - - - - -
-

-
-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29  -  -1 -1 -  -1 -6 -1 -  -  -5 -  -5 -1 -  -  -4 -2 -  -2 -1 -  -  -  -3 -  -  -  - 
'use strict';
- 
-exports = module.exports = cliWidth;
-exports.defaultWidth = 0;
- 
-function cliWidth() {
-  if (process.stdout.getWindowSize) {
-    return process.stdout.getWindowSize()[0];
-  }
-  else {
-    var tty = require('tty');
- 
-    if (tty.getWindowSize) {
-      return tty.getWindowSize()[1];
-    }
-    else {
-      if (process.env.CLI_WIDTH) {
-        var width = parseInt(process.env.CLI_WIDTH, 10);
- 
-        if (!isNaN(width)) {
-          return width;
-        }
-      }
- 
-      return exports.defaultWidth;
-    }
-  }
-};
- 
- -
- - - - - - diff --git a/node_modules/cli-width/coverage/lcov-report/index.html b/node_modules/cli-width/coverage/lcov-report/index.html deleted file mode 100644 index 1fcbfbb..0000000 --- a/node_modules/cli-width/coverage/lcov-report/index.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - Code coverage report for All files - - - - - - -
-

Code coverage report for All files

-

- Statements: 100% (13 / 13)      - Branches: 100% (8 / 8)      - Functions: 100% (1 / 1)      - Lines: 100% (13 / 13)      - Ignored: none      -

-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
cli-width/100%(13 / 13)100%(8 / 8)100%(1 / 1)100%(13 / 13)
-
-
- - - - - - diff --git a/node_modules/cli-width/coverage/lcov-report/prettify.css b/node_modules/cli-width/coverage/lcov-report/prettify.css deleted file mode 100644 index b317a7c..0000000 --- a/node_modules/cli-width/coverage/lcov-report/prettify.css +++ /dev/null @@ -1 +0,0 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/node_modules/cli-width/coverage/lcov-report/prettify.js b/node_modules/cli-width/coverage/lcov-report/prettify.js deleted file mode 100644 index ef51e03..0000000 --- a/node_modules/cli-width/coverage/lcov-report/prettify.js +++ /dev/null @@ -1 +0,0 @@ -window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/node_modules/cli-width/coverage/lcov-report/sort-arrow-sprite.png b/node_modules/cli-width/coverage/lcov-report/sort-arrow-sprite.png deleted file mode 100644 index 03f704a..0000000 Binary files a/node_modules/cli-width/coverage/lcov-report/sort-arrow-sprite.png and /dev/null differ diff --git a/node_modules/cli-width/coverage/lcov-report/sorter.js b/node_modules/cli-width/coverage/lcov-report/sorter.js deleted file mode 100644 index 6afb736..0000000 --- a/node_modules/cli-width/coverage/lcov-report/sorter.js +++ /dev/null @@ -1,156 +0,0 @@ -var addSorting = (function () { - "use strict"; - var cols, - currentSort = { - index: 0, - desc: false - }; - - // returns the summary table element - function getTable() { return document.querySelector('.coverage-summary table'); } - // returns the thead element of the summary table - function getTableHeader() { return getTable().querySelector('thead tr'); } - // returns the tbody element of the summary table - function getTableBody() { return getTable().querySelector('tbody'); } - // returns the th element for nth column - function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; } - - // loads all columns - function loadColumns() { - var colNodes = getTableHeader().querySelectorAll('th'), - colNode, - cols = [], - col, - i; - - for (i = 0; i < colNodes.length; i += 1) { - colNode = colNodes[i]; - col = { - key: colNode.getAttribute('data-col'), - sortable: !colNode.getAttribute('data-nosort'), - type: colNode.getAttribute('data-type') || 'string' - }; - cols.push(col); - if (col.sortable) { - col.defaultDescSort = col.type === 'number'; - colNode.innerHTML = colNode.innerHTML + ''; - } - } - return cols; - } - // attaches a data attribute to every tr element with an object - // of data values keyed by column name - function loadRowData(tableRow) { - var tableCols = tableRow.querySelectorAll('td'), - colNode, - col, - data = {}, - i, - val; - for (i = 0; i < tableCols.length; i += 1) { - colNode = tableCols[i]; - col = cols[i]; - val = colNode.getAttribute('data-value'); - if (col.type === 'number') { - val = Number(val); - } - data[col.key] = val; - } - return data; - } - // loads all row data - function loadData() { - var rows = getTableBody().querySelectorAll('tr'), - i; - - for (i = 0; i < rows.length; i += 1) { - rows[i].data = loadRowData(rows[i]); - } - } - // sorts the table using the data for the ith column - function sortByIndex(index, desc) { - var key = cols[index].key, - sorter = function (a, b) { - a = a.data[key]; - b = b.data[key]; - return a < b ? -1 : a > b ? 1 : 0; - }, - finalSorter = sorter, - tableBody = document.querySelector('.coverage-summary tbody'), - rowNodes = tableBody.querySelectorAll('tr'), - rows = [], - i; - - if (desc) { - finalSorter = function (a, b) { - return -1 * sorter(a, b); - }; - } - - for (i = 0; i < rowNodes.length; i += 1) { - rows.push(rowNodes[i]); - tableBody.removeChild(rowNodes[i]); - } - - rows.sort(finalSorter); - - for (i = 0; i < rows.length; i += 1) { - tableBody.appendChild(rows[i]); - } - } - // removes sort indicators for current column being sorted - function removeSortIndicators() { - var col = getNthColumn(currentSort.index), - cls = col.className; - - cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); - col.className = cls; - } - // adds sort indicators for current column being sorted - function addSortIndicators() { - getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted'; - } - // adds event listeners for all sorter widgets - function enableUI() { - var i, - el, - ithSorter = function ithSorter(i) { - var col = cols[i]; - - return function () { - var desc = col.defaultDescSort; - - if (currentSort.index === i) { - desc = !currentSort.desc; - } - sortByIndex(i, desc); - removeSortIndicators(); - currentSort.index = i; - currentSort.desc = desc; - addSortIndicators(); - }; - }; - for (i =0 ; i < cols.length; i += 1) { - if (cols[i].sortable) { - el = getNthColumn(i).querySelector('.sorter'); - if (el.addEventListener) { - el.addEventListener('click', ithSorter(i)); - } else { - el.attachEvent('onclick', ithSorter(i)); - } - } - } - } - // adds sorting functionality to the UI - return function () { - if (!getTable()) { - return; - } - cols = loadColumns(); - loadData(cols); - addSortIndicators(); - enableUI(); - }; -})(); - -window.addEventListener('load', addSorting); diff --git a/node_modules/cli-width/coverage/lcov.info b/node_modules/cli-width/coverage/lcov.info deleted file mode 100644 index 5ec1cb2..0000000 --- a/node_modules/cli-width/coverage/lcov.info +++ /dev/null @@ -1,32 +0,0 @@ -TN: -SF:/Users/iradchenko/sandbox/cli-width/index.js -FN:6,cliWidth -FNF:1 -FNH:1 -FNDA:6,cliWidth -DA:3,1 -DA:4,1 -DA:6,1 -DA:7,6 -DA:8,1 -DA:11,5 -DA:13,5 -DA:14,1 -DA:17,4 -DA:18,2 -DA:20,2 -DA:21,1 -DA:25,3 -LF:13 -LH:13 -BRDA:7,1,0,1 -BRDA:7,1,1,5 -BRDA:12,2,0,1 -BRDA:12,2,1,4 -BRDA:15,3,0,2 -BRDA:15,3,1,2 -BRDA:18,4,0,1 -BRDA:18,4,1,1 -BRF:8 -BRH:8 -end_of_record diff --git a/node_modules/cli-width/index.js b/node_modules/cli-width/index.js deleted file mode 100644 index 76aa5ff..0000000 --- a/node_modules/cli-width/index.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -exports = module.exports = cliWidth; -exports.defaultWidth = 0; - -function cliWidth() { - if (process.stdout.getWindowSize) { - return process.stdout.getWindowSize()[0] || exports.defaultWidth; - } - else { - var tty = require('tty'); - - if (tty.getWindowSize) { - return tty.getWindowSize()[1] || exports.defaultWidth; - } - else { - if (process.env.CLI_WIDTH) { - var width = parseInt(process.env.CLI_WIDTH, 10); - - if (!isNaN(width)) { - return width; - } - } - - return exports.defaultWidth; - } - } -}; diff --git a/node_modules/cli-width/package.json b/node_modules/cli-width/package.json deleted file mode 100644 index 26c672a..0000000 --- a/node_modules/cli-width/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "cli-width@^1.0.1", - "scope": null, - "escapedName": "cli-width", - "name": "cli-width", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/inquirer" - ] - ], - "_from": "cli-width@>=1.0.1 <2.0.0", - "_id": "cli-width@1.1.1", - "_inCache": true, - "_location": "/cli-width", - "_nodeVersion": "4.2.1", - "_npmUser": { - "name": "knownasilya", - "email": "ilya@burstcreations.com" - }, - "_npmVersion": "2.14.7", - "_phantomChildren": {}, - "_requested": { - "raw": "cli-width@^1.0.1", - "scope": null, - "escapedName": "cli-width", - "name": "cli-width", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/inquirer" - ], - "_resolved": "https://registry.npmjs.org/cli-width/-/cli-width-1.1.1.tgz", - "_shasum": "a4d293ef67ebb7b88d4a4d42c0ccf00c4d1e366d", - "_shrinkwrap": null, - "_spec": "cli-width@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/inquirer", - "author": { - "name": "Ilya Radchenko", - "email": "ilya@burstcreations.com" - }, - "bugs": { - "url": "https://github.com/knownasilya/cli-width/issues" - }, - "dependencies": {}, - "description": "Get stdout window width, with two fallbacks, tty and then a default.", - "devDependencies": { - "coveralls": "^2.11.4", - "isparta": "^3.0.4", - "rimraf": "^2.4.3", - "tap-spec": "^4.1.0", - "tape": "^3.4.0" - }, - "directories": {}, - "dist": { - "shasum": "a4d293ef67ebb7b88d4a4d42c0ccf00c4d1e366d", - "tarball": "https://registry.npmjs.org/cli-width/-/cli-width-1.1.1.tgz" - }, - "gitHead": "353b24e4ebd754a748dbb07695cf1a02caf1d012", - "homepage": "https://github.com/knownasilya/cli-width", - "license": "ISC", - "main": "index.js", - "maintainers": [ - { - "name": "knownasilya", - "email": "ilya@burstcreations.com" - } - ], - "name": "cli-width", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/knownasilya/cli-width.git" - }, - "scripts": { - "coverage": "isparta cover test/*.js | tspec", - "coveralls": "npm run coverage -s && coveralls < coverage/lcov.info", - "postcoveralls": "rimraf ./coverage", - "test": "node test | tspec" - }, - "version": "1.1.1" -} diff --git a/node_modules/cliui/.coveralls.yml b/node_modules/cliui/.coveralls.yml deleted file mode 100644 index 73367db..0000000 --- a/node_modules/cliui/.coveralls.yml +++ /dev/null @@ -1 +0,0 @@ -repo_token: NiRhyj91Z2vtgob6XdEAqs83rzNnbMZUu diff --git a/node_modules/cliui/.npmignore b/node_modules/cliui/.npmignore deleted file mode 100644 index 9daa824..0000000 --- a/node_modules/cliui/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -.DS_Store -node_modules diff --git a/node_modules/cliui/.travis.yml b/node_modules/cliui/.travis.yml deleted file mode 100644 index d96edf8..0000000 --- a/node_modules/cliui/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -node_js: - - "0.10" - - "0.11" - - "0.12" - - "iojs" -after_script: "NODE_ENV=test YOURPACKAGE_COVERAGE=1 ./node_modules/.bin/mocha --require patched-blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js" diff --git a/node_modules/cliui/LICENSE.txt b/node_modules/cliui/LICENSE.txt deleted file mode 100644 index c7e2747..0000000 --- a/node_modules/cliui/LICENSE.txt +++ /dev/null @@ -1,14 +0,0 @@ -Copyright (c) 2015, 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/cliui/README.md b/node_modules/cliui/README.md deleted file mode 100644 index edcafa8..0000000 --- a/node_modules/cliui/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# cliui - -[![Build Status](https://travis-ci.org/bcoe/cliui.png)](https://travis-ci.org/bcoe/cliui) -[![Coverage Status](https://coveralls.io/repos/bcoe/cliui/badge.svg?branch=)](https://coveralls.io/r/bcoe/cliui?branch=) -[![NPM version](https://img.shields.io/npm/v/cliui.svg)](https://www.npmjs.com/package/cliui) - -easily create complex multi-column command-line-interfaces. - -## Example - -```js -var ui = require('cliui')({ - width: 80 -}) - -ui.div('Usage: $0 [command] [options]') - -ui.div({ - text: 'Options:', - padding: [2, 0, 2, 0] -}) - -ui.div( - { - text: "-f, --file", - width: 40, - padding: [0, 4, 0, 4] - }, - { - text: "the file to load", - width: 25 - }, - { - text: "[required]", - align: 'right' - } -) - -console.log(ui.toString()) -``` - -## Layout DSL - -cliui exposes a simple layout DSL: - -If you create a single `ui.row`, passing a string rather than an -object: - -* `\n`: characters will be interpreted as new rows. -* `\t`: characters will be interpreted as new columns. -* ` `: characters will be interpreted as padding. - -**as an example...** - -```js -var ui = require('./')({ - width: 60 -}) - -ui.div( - 'Usage: node ./bin/foo.js\n' + - ' \t provide a regex\n' + - ' \t provide a glob\t [required]' -) - -console.log(ui.toString()) -``` - -**will output:** - -```shell -Usage: node ./bin/foo.js - provide a regex - provide a glob [required] -``` - -## Methods - -```js -cliui = require('cliui') -``` - -### cliui({width: integer}) - -Specify the maximum width of the UI being generated. - -### cliui({wrap: boolean}) - -Enable or disable the wrapping of text in a column. - -### cliui.div(column, column, column) - -Create a row with any number of columns, a column -can either be a string, or an object with the following -options: - -* **width:** the width of a column. -* **align:** alignment, `right` or `center`. -* **padding:** `[top, right, bottom, left]`. - -### cliui.span(column, column, column) - -Similar to `div`, except the next row will be appended without -a new line being created. diff --git a/node_modules/cliui/index.js b/node_modules/cliui/index.js deleted file mode 100644 index 31b4aa7..0000000 --- a/node_modules/cliui/index.js +++ /dev/null @@ -1,273 +0,0 @@ -var wrap = require('wordwrap'), - align = { - right: require('right-align'), - center: require('center-align') - }, - top = 0, - right = 1, - bottom = 2, - left = 3 - -function UI (opts) { - this.width = opts.width - this.wrap = opts.wrap - this.rows = [] -} - -UI.prototype.span = function () { - var cols = this.div.apply(this, arguments) - cols.span = true -} - -UI.prototype.div = function () { - if (arguments.length === 0) this.div('') - if (this.wrap && this._shouldApplyLayoutDSL.apply(this, arguments)) { - return this._applyLayoutDSL(arguments[0]) - } - - var cols = [] - - for (var i = 0, arg; (arg = arguments[i]) !== undefined; i++) { - if (typeof arg === 'string') cols.push(this._colFromString(arg)) - else cols.push(arg) - } - - this.rows.push(cols) - return cols -} - -UI.prototype._shouldApplyLayoutDSL = function () { - return arguments.length === 1 && typeof arguments[0] === 'string' && - /[\t\n]/.test(arguments[0]) -} - -UI.prototype._applyLayoutDSL = function (str) { - var _this = this, - rows = str.split('\n'), - leftColumnWidth = 0 - - // simple heuristic for layout, make sure the - // second column lines up along the left-hand. - // don't allow the first column to take up more - // than 50% of the screen. - rows.forEach(function (row) { - var columns = row.split('\t') - if (columns.length > 1 && columns[0].length > leftColumnWidth) { - leftColumnWidth = Math.min( - Math.floor(_this.width * 0.5), - columns[0].length - ) - } - }) - - // generate a table: - // replacing ' ' with padding calculations. - // using the algorithmically generated width. - rows.forEach(function (row) { - var columns = row.split('\t') - _this.div.apply(_this, columns.map(function (r, i) { - return { - text: r.trim(), - padding: [0, r.match(/\s*$/)[0].length, 0, r.match(/^\s*/)[0].length], - width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined - } - })) - }) - - return this.rows[this.rows.length - 1] -} - -UI.prototype._colFromString = function (str) { - return { - text: str - } -} - -UI.prototype.toString = function () { - var _this = this, - lines = [] - - _this.rows.forEach(function (row, i) { - _this.rowToString(row, lines) - }) - - // don't display any lines with the - // hidden flag set. - lines = lines.filter(function (line) { - return !line.hidden - }) - - return lines.map(function (line) { - return line.text - }).join('\n') -} - -UI.prototype.rowToString = function (row, lines) { - var _this = this, - paddingLeft, - rrows = this._rasterize(row), - str = '', - ts, - width, - wrapWidth - - rrows.forEach(function (rrow, r) { - str = '' - rrow.forEach(function (col, c) { - ts = '' // temporary string used during alignment/padding. - width = row[c].width // the width with padding. - wrapWidth = _this._negatePadding(row[c]) // the width without padding. - - for (var i = 0; i < Math.max(wrapWidth, col.length); i++) { - ts += col.charAt(i) || ' ' - } - - // align the string within its column. - if (row[c].align && row[c].align !== 'left' && _this.wrap) { - ts = align[row[c].align](ts.trim() + '\n' + new Array(wrapWidth + 1).join(' ')) - .split('\n')[0] - if (ts.length < wrapWidth) ts += new Array(width - ts.length).join(' ') - } - - // add left/right padding and print string. - paddingLeft = (row[c].padding || [0, 0, 0, 0])[left] - if (paddingLeft) str += new Array(row[c].padding[left] + 1).join(' ') - str += ts - if (row[c].padding && row[c].padding[right]) str += new Array(row[c].padding[right] + 1).join(' ') - - // if prior row is span, try to render the - // current row on the prior line. - if (r === 0 && lines.length > 0) { - str = _this._renderInline(str, lines[lines.length - 1], paddingLeft) - } - }) - - // remove trailing whitespace. - lines.push({ - text: str.replace(/ +$/, ''), - span: row.span - }) - }) - - return lines -} - -// if the full 'source' can render in -// the target line, do so. -UI.prototype._renderInline = function (source, previousLine, paddingLeft) { - var target = previousLine.text, - str = '' - - if (!previousLine.span) return source - - // if we're not applying wrapping logic, - // just always append to the span. - if (!this.wrap) { - previousLine.hidden = true - return target + source - } - - for (var i = 0, tc, sc; i < Math.max(source.length, target.length); i++) { - tc = target.charAt(i) || ' ' - sc = source.charAt(i) || ' ' - // we tried to overwrite a character in the other string. - if (tc !== ' ' && sc !== ' ') return source - // there is not enough whitespace to maintain padding. - if (sc !== ' ' && i < paddingLeft + target.length) return source - // :thumbsup: - if (tc === ' ') str += sc - else str += tc - } - - previousLine.hidden = true - - return str -} - -UI.prototype._rasterize = function (row) { - var _this = this, - i, - rrow, - rrows = [], - widths = this._columnWidths(row), - wrapped - - // word wrap all columns, and create - // a data-structure that is easy to rasterize. - row.forEach(function (col, c) { - // leave room for left and right padding. - col.width = widths[c] - if (_this.wrap) wrapped = wrap.hard(_this._negatePadding(col))(col.text).split('\n') - else wrapped = col.text.split('\n') - - // add top and bottom padding. - if (col.padding) { - for (i = 0; i < (col.padding[top] || 0); i++) wrapped.unshift('') - for (i = 0; i < (col.padding[bottom] || 0); i++) wrapped.push('') - } - - wrapped.forEach(function (str, r) { - if (!rrows[r]) rrows.push([]) - - rrow = rrows[r] - - for (var i = 0; i < c; i++) { - if (rrow[i] === undefined) rrow.push('') - } - rrow.push(str) - }) - }) - - return rrows -} - -UI.prototype._negatePadding = function (col) { - var wrapWidth = col.width - if (col.padding) wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0) - return wrapWidth -} - -UI.prototype._columnWidths = function (row) { - var _this = this, - widths = [], - unset = row.length, - unsetWidth, - remainingWidth = this.width - - // column widths can be set in config. - row.forEach(function (col, i) { - if (col.width) { - unset-- - widths[i] = col.width - remainingWidth -= col.width - } else { - widths[i] = undefined - } - }) - - // any unset widths should be calculated. - if (unset) unsetWidth = Math.floor(remainingWidth / unset) - widths.forEach(function (w, i) { - if (!_this.wrap) widths[i] = row[i].width || row[i].text.length - else if (w === undefined) widths[i] = Math.max(unsetWidth, _minWidth(row[i])) - }) - - return widths -} - -// calculates the minimum width of -// a column, based on padding preferences. -function _minWidth (col) { - var padding = col.padding || [] - - return 1 + (padding[left] || 0) + (padding[right] || 0) -} - -module.exports = function (opts) { - opts = opts || {} - - return new UI({ - width: (opts || {}).width || 80, - wrap: typeof opts.wrap === 'boolean' ? opts.wrap : true - }) -} diff --git a/node_modules/cliui/package.json b/node_modules/cliui/package.json deleted file mode 100644 index 3e6bea0..0000000 --- a/node_modules/cliui/package.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "cliui@^2.1.0", - "scope": null, - "escapedName": "cliui", - "name": "cliui", - "rawSpec": "^2.1.0", - "spec": ">=2.1.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/yargs" - ] - ], - "_from": "cliui@>=2.1.0 <3.0.0", - "_id": "cliui@2.1.0", - "_inCache": true, - "_location": "/cliui", - "_nodeVersion": "0.10.36", - "_npmUser": { - "name": "bcoe", - "email": "ben@npmjs.com" - }, - "_npmVersion": "2.7.5", - "_phantomChildren": {}, - "_requested": { - "raw": "cliui@^2.1.0", - "scope": null, - "escapedName": "cliui", - "name": "cliui", - "rawSpec": "^2.1.0", - "spec": ">=2.1.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/yargs" - ], - "_resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", - "_shasum": "4b475760ff80264c762c3a1719032e91c7fea0d1", - "_shrinkwrap": null, - "_spec": "cliui@^2.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/yargs", - "author": { - "name": "Ben Coe", - "email": "ben@npmjs.com" - }, - "bugs": { - "url": "https://github.com/bcoe/cliui/issues" - }, - "config": { - "blanket": { - "pattern": [ - "index.js" - ], - "data-cover-never": [ - "node_modules", - "test" - ], - "output-reporter": "spec" - } - }, - "dependencies": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - }, - "description": "easily create complex multi-column command-line-interfaces", - "devDependencies": { - "blanket": "^1.1.6", - "chai": "^2.2.0", - "coveralls": "^2.11.2", - "mocha": "^2.2.4", - "mocha-lcov-reporter": "0.0.2", - "mocoverage": "^1.0.0", - "patched-blanket": "^1.0.1", - "standard": "^3.6.1" - }, - "directories": {}, - "dist": { - "shasum": "4b475760ff80264c762c3a1719032e91c7fea0d1", - "tarball": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz" - }, - "gitHead": "5d6ce466b144db62abefc4b2252c8aa70a741695", - "homepage": "https://github.com/bcoe/cliui", - "keywords": [ - "cli", - "command-line", - "layout", - "design", - "console", - "wrap", - "table" - ], - "license": "ISC", - "main": "index.js", - "maintainers": [ - { - "name": "bcoe", - "email": "ben@npmjs.com" - } - ], - "name": "cliui", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/bcoe/cliui.git" - }, - "scripts": { - "test": "standard && mocha --check-leaks --ui exports --require patched-blanket -R mocoverage" - }, - "standard": { - "ignore": [ - "**/example/**" - ], - "globals": [ - "it" - ] - }, - "version": "2.1.0" -} diff --git a/node_modules/cliui/test/cliui.js b/node_modules/cliui/test/cliui.js deleted file mode 100644 index 1cc6127..0000000 --- a/node_modules/cliui/test/cliui.js +++ /dev/null @@ -1,349 +0,0 @@ -/* global describe, it */ - -require('chai').should() - -var cliui = require('../') - -describe('cliui', function () { - describe('div', function () { - it("wraps text at 'width' if a single column is given", function () { - var ui = cliui({ - width: 10 - }) - - ui.div('i am a string that should be wrapped') - - ui.toString().split('\n').forEach(function (row) { - row.length.should.be.lte(10) - }) - }) - - it('evenly divides text across columns if multiple columns are given', function () { - var ui = cliui({ - width: 40 - }) - - ui.div( - {text: 'i am a string that should be wrapped', width: 15}, - 'i am a second string that should be wrapped', - 'i am a third string that should be wrapped' - ) - - // total width of all columns is <= - // the width cliui is initialized with. - ui.toString().split('\n').forEach(function (row) { - row.length.should.be.lte(40) - }) - - // it should wrap each column appropriately. - var expected = [ - 'i am a string i am a i am a third', - 'that should be second string that', - 'wrapped string that should be', - ' should be wrapped', - ' wrapped' - ] - - ui.toString().split('\n').should.eql(expected) - }) - - it('allows for a blank row to be appended', function () { - var ui = cliui({ - width: 40 - }) - - ui.div() - - // it should wrap each column appropriately. - var expected = [''] - - ui.toString().split('\n').should.eql(expected) - }) - }) - - describe('_columnWidths', function () { - it('uses same width for each column by default', function () { - var ui = cliui({ - width: 40 - }), - widths = ui._columnWidths([{}, {}, {}]) - - widths[0].should.equal(13) - widths[1].should.equal(13) - widths[2].should.equal(13) - }) - - it('divides width over remaining columns if first column has width specified', function () { - var ui = cliui({ - width: 40 - }), - widths = ui._columnWidths([{width: 20}, {}, {}]) - - widths[0].should.equal(20) - widths[1].should.equal(10) - widths[2].should.equal(10) - }) - - it('divides width over remaining columns if middle column has width specified', function () { - var ui = cliui({ - width: 40 - }), - widths = ui._columnWidths([{}, {width: 10}, {}]) - - widths[0].should.equal(15) - widths[1].should.equal(10) - widths[2].should.equal(15) - }) - - it('keeps track of remaining width if multiple columns have width specified', function () { - var ui = cliui({ - width: 40 - }), - widths = ui._columnWidths([{width: 20}, {width: 12}, {}]) - - widths[0].should.equal(20) - widths[1].should.equal(12) - widths[2].should.equal(8) - }) - - it('uses a sane default if impossible widths are specified', function () { - var ui = cliui({ - width: 40 - }), - widths = ui._columnWidths([{width: 30}, {width: 30}, {padding: [0, 2, 0, 1]}]) - - widths[0].should.equal(30) - widths[1].should.equal(30) - widths[2].should.equal(4) - }) - }) - - describe('alignment', function () { - it('allows a column to be right aligned', function () { - var ui = cliui({ - width: 40 - }) - - ui.div( - 'i am a string', - {text: 'i am a second string', align: 'right'}, - 'i am a third string that should be wrapped' - ) - - // it should right-align the second column. - var expected = [ - 'i am a stringi am a secondi am a third', - ' stringstring that', - ' should be', - ' wrapped' - ] - - ui.toString().split('\n').should.eql(expected) - }) - - it('allows a column to be center aligned', function () { - var ui = cliui({ - width: 60 - }) - - ui.div( - 'i am a string', - {text: 'i am a second string', align: 'center', padding: [0, 2, 0, 2]}, - 'i am a third string that should be wrapped' - ) - - // it should right-align the second column. - var expected = [ - 'i am a string i am a second i am a third string', - ' string that should be', - ' wrapped' - ] - - ui.toString().split('\n').should.eql(expected) - }) - }) - - describe('padding', function () { - it('handles left/right padding', function () { - var ui = cliui({ - width: 40 - }) - - ui.div( - {text: 'i have padding on my left', padding: [0, 0, 0, 4]}, - {text: 'i have padding on my right', padding: [0, 2, 0, 0], align: 'center'}, - {text: 'i have no padding', padding: [0, 0, 0, 0]} - ) - - // it should add left/right padding to columns. - var expected = [ - ' i have i have i have no', - ' padding padding on padding', - ' on my my right', - ' left' - ] - - ui.toString().split('\n').should.eql(expected) - }) - - it('handles top/bottom padding', function () { - var ui = cliui({ - width: 40 - }) - - ui.div( - 'i am a string', - {text: 'i am a second string', padding: [2, 0, 0, 0]}, - {text: 'i am a third string that should be wrapped', padding: [0, 0, 1, 0]} - ) - - // it should add top/bottom padding to second - // and third columns. - var expected = [ - 'i am a string i am a third', - ' string that', - ' i am a secondshould be', - ' string wrapped', - '' - ] - - ui.toString().split('\n').should.eql(expected) - }) - }) - - describe('wrap', function () { - it('allows wordwrap to be disabled', function () { - var ui = cliui({ - wrap: false - }) - - ui.div( - {text: 'i am a string', padding: [0, 1, 0, 0]}, - {text: 'i am a second string', padding: [0, 2, 0, 0]}, - {text: 'i am a third string that should not be wrapped', padding: [0, 0, 0, 2]} - ) - - ui.toString().should.equal('i am a string i am a second string i am a third string that should not be wrapped') - }) - }) - - describe('span', function () { - it('appends the next row to the end of the prior row if it fits', function () { - var ui = cliui({ - width: 40 - }) - - ui.span( - {text: 'i am a string that will be wrapped', width: 30} - ) - - ui.div( - {text: ' [required] [default: 99]', align: 'right'} - ) - - var expected = [ - 'i am a string that will be', - 'wrapped [required] [default: 99]' - ] - - ui.toString().split('\n').should.eql(expected) - }) - - it('does not append the string if it does not fit on the prior row', function () { - var ui = cliui({ - width: 40 - }) - - ui.span( - {text: 'i am a string that will be wrapped', width: 30} - ) - - ui.div( - {text: 'i am a second row', align: 'left'} - ) - - var expected = [ - 'i am a string that will be', - 'wrapped', - 'i am a second row' - ] - - ui.toString().split('\n').should.eql(expected) - }) - - it('always appends text to prior span if wrap is disabled', function () { - var ui = cliui({ - wrap: false, - width: 40 - }) - - ui.span( - {text: 'i am a string that will be wrapped', width: 30} - ) - - ui.div( - {text: 'i am a second row', align: 'left', padding: [0, 0, 0, 3]} - ) - - ui.div('a third line') - - var expected = [ - 'i am a string that will be wrapped i am a second row', - 'a third line' - ] - - ui.toString().split('\n').should.eql(expected) - }) - }) - - describe('layoutDSL', function () { - it('turns tab into multiple columns', function () { - var ui = cliui({ - width: 60 - }) - - ui.div( - ' \tmy awesome regex\n \tanother row\t a third column' - ) - - var expected = [ - ' my awesome regex', - ' another row a third column' - ] - - ui.toString().split('\n').should.eql(expected) - }) - - it('turns newline into multiple rows', function () { - var ui = cliui({ - width: 40 - }) - - ui.div( - 'Usage: $0\n \t my awesome regex\n \t my awesome glob\t [required]' - ) - var expected = [ - 'Usage: $0', - ' my awesome regex', - ' my awesome [required]', - ' glob' - ] - - ui.toString().split('\n').should.eql(expected) - }) - - it('does not apply DSL if wrap is false', function () { - var ui = cliui({ - width: 40, - wrap: false - }) - - ui.div( - 'Usage: $0\ttwo\tthree' - ) - - ui.toString().should.eql('Usage: $0\ttwo\tthree') - }) - - }) -}) diff --git a/node_modules/clone-buffer/LICENSE b/node_modules/clone-buffer/LICENSE deleted file mode 100644 index fa16a89..0000000 --- a/node_modules/clone-buffer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Blaine Bublitz , Eric Schoffstall and other contributors - -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/clone-buffer/README.md b/node_modules/clone-buffer/README.md deleted file mode 100644 index 51c8a8d..0000000 --- a/node_modules/clone-buffer/README.md +++ /dev/null @@ -1,47 +0,0 @@ -

- - - -

- -# clone-buffer - -[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] - -Easier Buffer cloning in node. - -## Example - -```js -var cloneBuffer = require('clone-buffer'); - -var buffer = new Buffer('test'); -var cloned = cloneBuffer(buffer); -// buffer !== cloned -``` - -## API - -### `cloneBuffer(buffer)` - -Takes a `Buffer` object and returns a clone. Throws if a non-`Buffer` is passed. - -## License - -MIT - -[downloads-image]: http://img.shields.io/npm/dm/clone-buffer.svg -[npm-url]: https://npmjs.org/package/clone-buffer -[npm-image]: http://img.shields.io/npm/v/clone-buffer.svg - -[travis-url]: https://travis-ci.org/gulpjs/clone-buffer -[travis-image]: http://img.shields.io/travis/gulpjs/clone-buffer.svg?label=travis-ci - -[appveyor-url]: https://ci.appveyor.com/project/gulpjs/clone-buffer -[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/clone-buffer.svg?label=appveyor - -[coveralls-url]: https://coveralls.io/r/gulpjs/clone-buffer -[coveralls-image]: http://img.shields.io/coveralls/gulpjs/clone-buffer/master.svg - -[gitter-url]: https://gitter.im/gulpjs/gulp -[gitter-image]: https://badges.gitter.im/gulpjs/gulp.png diff --git a/node_modules/clone-buffer/index.js b/node_modules/clone-buffer/index.js deleted file mode 100644 index eb3837e..0000000 --- a/node_modules/clone-buffer/index.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -var Buffer = require('buffer').Buffer; - -function hasFrom() { - // Node versions 5.x below 5.10 seem to have a `from` method - // However, it doesn't clone Buffers - // Luckily, it reports as `false` to hasOwnProperty - return (Buffer.hasOwnProperty('from') && typeof Buffer.from === 'function'); -} - -function cloneBuffer(buf) { - if (!Buffer.isBuffer(buf)) { - throw new Error('Can only clone Buffer.'); - } - - if (hasFrom()) { - return Buffer.from(buf); - } - - var copy = new Buffer(buf.length); - buf.copy(copy); - return copy; -} - -cloneBuffer.hasFrom = hasFrom; - -module.exports = cloneBuffer; diff --git a/node_modules/clone-buffer/package.json b/node_modules/clone-buffer/package.json deleted file mode 100644 index b8eedd7..0000000 --- a/node_modules/clone-buffer/package.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "clone-buffer@^1.0.0", - "scope": null, - "escapedName": "clone-buffer", - "name": "clone-buffer", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat/node_modules/vinyl" - ] - ], - "_from": "clone-buffer@>=1.0.0 <2.0.0", - "_id": "clone-buffer@1.0.0", - "_inCache": true, - "_location": "/clone-buffer", - "_nodeVersion": "0.10.41", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/clone-buffer-1.0.0.tgz_1474782560642_0.6453048929106444" - }, - "_npmUser": { - "name": "phated", - "email": "blaine.bublitz@gmail.com" - }, - "_npmVersion": "2.15.2", - "_phantomChildren": {}, - "_requested": { - "raw": "clone-buffer@^1.0.0", - "scope": null, - "escapedName": "clone-buffer", - "name": "clone-buffer", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat/vinyl" - ], - "_resolved": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz", - "_shasum": "e3e25b207ac4e701af721e2cb5a16792cac3dc58", - "_shrinkwrap": null, - "_spec": "clone-buffer@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat/node_modules/vinyl", - "author": { - "name": "Gulp Team", - "email": "team@gulpjs.com", - "url": "http://gulpjs.com/" - }, - "bugs": { - "url": "https://github.com/gulpjs/clone-buffer/issues" - }, - "contributors": [ - { - "name": "Blaine Bublitz", - "email": "blaine.bublitz@gmail.com" - } - ], - "dependencies": {}, - "description": "Easier Buffer cloning in node.", - "devDependencies": { - "eslint": "^1.7.3", - "eslint-config-gulp": "^2.0.0", - "expect": "^1.19.0", - "istanbul": "^0.4.3", - "istanbul-coveralls": "^1.0.3", - "jscs": "^2.3.5", - "jscs-preset-gulp": "^1.0.0", - "mocha": "^2.4.5" - }, - "directories": {}, - "dist": { - "shasum": "e3e25b207ac4e701af721e2cb5a16792cac3dc58", - "tarball": "https://registry.npmjs.org/clone-buffer/-/clone-buffer-1.0.0.tgz" - }, - "engines": { - "node": ">= 0.10" - }, - "files": [ - "LICENSE", - "index.js" - ], - "gitHead": "7dab09850f080e2d137c62c6a673344fa8458942", - "homepage": "https://github.com/gulpjs/clone-buffer#readme", - "keywords": [ - "buffer", - "clone", - "from", - "copy" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "phated", - "email": "blaine.bublitz@gmail.com" - } - ], - "name": "clone-buffer", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/gulpjs/clone-buffer.git" - }, - "scripts": { - "cover": "istanbul cover _mocha --report lcovonly", - "coveralls": "npm run cover && istanbul-coveralls", - "lint": "eslint . && jscs index.js test/", - "pretest": "npm run lint", - "test": "mocha --async-only" - }, - "version": "1.0.0" -} diff --git a/node_modules/clone-stats/LICENSE.md b/node_modules/clone-stats/LICENSE.md deleted file mode 100644 index 146cb32..0000000 --- a/node_modules/clone-stats/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -## The MIT License (MIT) ## - -Copyright (c) 2014 Hugh Kennedy - -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/clone-stats/README.md b/node_modules/clone-stats/README.md deleted file mode 100644 index 8b12b6f..0000000 --- a/node_modules/clone-stats/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# clone-stats [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/clone-stats&title=clone-stats&description=hughsk/clone-stats%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) # - -Safely clone node's -[`fs.Stats`](http://nodejs.org/api/fs.html#fs_class_fs_stats) instances without -losing their class methods, i.e. `stat.isDirectory()` and co. - -## Usage ## - -[![clone-stats](https://nodei.co/npm/clone-stats.png?mini=true)](https://nodei.co/npm/clone-stats) - -### `copy = require('clone-stats')(stat)` ### - -Returns a clone of the original `fs.Stats` instance (`stat`). - -## License ## - -MIT. See [LICENSE.md](http://github.com/hughsk/clone-stats/blob/master/LICENSE.md) for details. diff --git a/node_modules/clone-stats/index.js b/node_modules/clone-stats/index.js deleted file mode 100644 index e797cfe..0000000 --- a/node_modules/clone-stats/index.js +++ /dev/null @@ -1,13 +0,0 @@ -var Stat = require('fs').Stats - -module.exports = cloneStats - -function cloneStats(stats) { - var replacement = new Stat - - Object.keys(stats).forEach(function(key) { - replacement[key] = stats[key] - }) - - return replacement -} diff --git a/node_modules/clone-stats/package.json b/node_modules/clone-stats/package.json deleted file mode 100644 index 12ccef1..0000000 --- a/node_modules/clone-stats/package.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "clone-stats@^0.0.1", - "scope": null, - "escapedName": "clone-stats", - "name": "clone-stats", - "rawSpec": "^0.0.1", - "spec": ">=0.0.1 <0.0.2", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/vinyl" - ] - ], - "_from": "clone-stats@>=0.0.1 <0.0.2", - "_id": "clone-stats@0.0.1", - "_inCache": true, - "_location": "/clone-stats", - "_npmUser": { - "name": "hughsk", - "email": "hughskennedy@gmail.com" - }, - "_npmVersion": "1.3.22", - "_phantomChildren": {}, - "_requested": { - "raw": "clone-stats@^0.0.1", - "scope": null, - "escapedName": "clone-stats", - "name": "clone-stats", - "rawSpec": "^0.0.1", - "spec": ">=0.0.1 <0.0.2", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/vinyl", - "/gulp-watch/vinyl", - "/vinyl", - "/vinyl-file/vinyl", - "/vinyl-fs/vinyl" - ], - "_resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", - "_shasum": "b88f94a82cf38b8791d58046ea4029ad88ca99d1", - "_shrinkwrap": null, - "_spec": "clone-stats@^0.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/vinyl", - "author": { - "name": "Hugh Kennedy", - "email": "hughskennedy@gmail.com", - "url": "http://hughsk.io/" - }, - "browser": "index.js", - "bugs": { - "url": "https://github.com/hughsk/clone-stats/issues" - }, - "dependencies": {}, - "description": "Safely clone node's fs.Stats instances without losing their class methods", - "devDependencies": { - "tape": "~2.3.2" - }, - "directories": {}, - "dist": { - "shasum": "b88f94a82cf38b8791d58046ea4029ad88ca99d1", - "tarball": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz" - }, - "homepage": "https://github.com/hughsk/clone-stats", - "keywords": [ - "stats", - "fs", - "clone", - "copy", - "prototype" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "hughsk", - "email": "hughskennedy@gmail.com" - } - ], - "name": "clone-stats", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/hughsk/clone-stats.git" - }, - "scripts": { - "test": "node test" - }, - "version": "0.0.1" -} diff --git a/node_modules/clone-stats/test.js b/node_modules/clone-stats/test.js deleted file mode 100644 index e4bb281..0000000 --- a/node_modules/clone-stats/test.js +++ /dev/null @@ -1,36 +0,0 @@ -var test = require('tape') -var clone = require('./') -var fs = require('fs') - -test('file', function(t) { - compare(t, fs.statSync(__filename)) - t.end() -}) - -test('directory', function(t) { - compare(t, fs.statSync(__dirname)) - t.end() -}) - -function compare(t, stat) { - var copy = clone(stat) - - t.deepEqual(stat, copy, 'clone has equal properties') - t.ok(stat instanceof fs.Stats, 'original is an fs.Stat') - t.ok(copy instanceof fs.Stats, 'copy is an fs.Stat') - - ;['isDirectory' - , 'isFile' - , 'isBlockDevice' - , 'isCharacterDevice' - , 'isSymbolicLink' - , 'isFIFO' - , 'isSocket' - ].forEach(function(method) { - t.equal( - stat[method].call(stat) - , copy[method].call(copy) - , 'equal value for stat.' + method + '()' - ) - }) -} diff --git a/node_modules/clone/.npmignore b/node_modules/clone/.npmignore deleted file mode 100644 index c2658d7..0000000 --- a/node_modules/clone/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/node_modules/clone/.travis.yml b/node_modules/clone/.travis.yml deleted file mode 100644 index 20fd86b..0000000 --- a/node_modules/clone/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - 0.10 diff --git a/node_modules/clone/LICENSE b/node_modules/clone/LICENSE deleted file mode 100644 index cc3c87b..0000000 --- a/node_modules/clone/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -Copyright © 2011-2015 Paul Vorbach - -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, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/clone/README.md b/node_modules/clone/README.md deleted file mode 100644 index 0b6ceca..0000000 --- a/node_modules/clone/README.md +++ /dev/null @@ -1,126 +0,0 @@ -# clone - -[![build status](https://secure.travis-ci.org/pvorb/node-clone.png)](http://travis-ci.org/pvorb/node-clone) - -[![info badge](https://nodei.co/npm/clone.png?downloads=true&downloadRank=true&stars=true)](http://npm-stat.com/charts.html?package=clone) - -offers foolproof _deep cloning_ of objects, arrays, numbers, strings etc. in JavaScript. - - -## Installation - - npm install clone - -(It also works with browserify, ender or standalone.) - - -## Example - -~~~ javascript -var clone = require('clone'); - -var a, b; - -a = { foo: { bar: 'baz' } }; // initial value of a - -b = clone(a); // clone a -> b -a.foo.bar = 'foo'; // change a - -console.log(a); // show a -console.log(b); // show b -~~~ - -This will print: - -~~~ javascript -{ foo: { bar: 'foo' } } -{ foo: { bar: 'baz' } } -~~~ - -**clone** masters cloning simple objects (even with custom prototype), arrays, -Date objects, and RegExp objects. Everything is cloned recursively, so that you -can clone dates in arrays in objects, for example. - - -## API - -`clone(val, circular, depth)` - - * `val` -- the value that you want to clone, any type allowed - * `circular` -- boolean - - Call `clone` with `circular` set to `false` if you are certain that `obj` - contains no circular references. This will give better performance if needed. - There is no error if `undefined` or `null` is passed as `obj`. - * `depth` -- depth to which the object is to be cloned (optional, - defaults to infinity) - -`clone.clonePrototype(obj)` - - * `obj` -- the object that you want to clone - -Does a prototype clone as -[described by Oran Looney](http://oranlooney.com/functional-javascript/). - - -## Circular References - -~~~ javascript -var a, b; - -a = { hello: 'world' }; - -a.myself = a; -b = clone(a); - -console.log(b); -~~~ - -This will print: - -~~~ javascript -{ hello: "world", myself: [Circular] } -~~~ - -So, `b.myself` points to `b`, not `a`. Neat! - - -## Test - - npm test - - -## Caveat - -Some special objects like a socket or `process.stdout`/`stderr` are known to not -be cloneable. If you find other objects that cannot be cloned, please [open an -issue](https://github.com/pvorb/node-clone/issues/new). - - -## Bugs and Issues - -If you encounter any bugs or issues, feel free to [open an issue at -github](https://github.com/pvorb/node-clone/issues) or send me an email to -. I also always like to hear from you, if you’re using my code. - -## License - -Copyright © 2011-2015 [Paul Vorbach](http://paul.vorba.ch/) and -[contributors](https://github.com/pvorb/node-clone/graphs/contributors). - -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, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/clone/clone.js b/node_modules/clone/clone.js deleted file mode 100644 index 6263759..0000000 --- a/node_modules/clone/clone.js +++ /dev/null @@ -1,160 +0,0 @@ -var clone = (function() { -'use strict'; - -/** - * Clones (copies) an Object using deep copying. - * - * This function supports circular references by default, but if you are certain - * there are no circular references in your object, you can save some CPU time - * by calling clone(obj, false). - * - * Caution: if `circular` is false and `parent` contains circular references, - * your program may enter an infinite loop and crash. - * - * @param `parent` - the object to be cloned - * @param `circular` - set to true if the object to be cloned may contain - * circular references. (optional - true by default) - * @param `depth` - set to a number if the object is only to be cloned to - * a particular depth. (optional - defaults to Infinity) - * @param `prototype` - sets the prototype to be used when cloning an object. - * (optional - defaults to parent prototype). -*/ -function clone(parent, circular, depth, prototype) { - var filter; - if (typeof circular === 'object') { - depth = circular.depth; - prototype = circular.prototype; - filter = circular.filter; - circular = circular.circular - } - // maintain two arrays for circular references, where corresponding parents - // and children have the same index - var allParents = []; - var allChildren = []; - - var useBuffer = typeof Buffer != 'undefined'; - - if (typeof circular == 'undefined') - circular = true; - - if (typeof depth == 'undefined') - depth = Infinity; - - // recurse this function so we don't reset allParents and allChildren - function _clone(parent, depth) { - // cloning null always returns null - if (parent === null) - return null; - - if (depth == 0) - return parent; - - var child; - var proto; - if (typeof parent != 'object') { - return parent; - } - - if (clone.__isArray(parent)) { - child = []; - } else if (clone.__isRegExp(parent)) { - child = new RegExp(parent.source, __getRegExpFlags(parent)); - if (parent.lastIndex) child.lastIndex = parent.lastIndex; - } else if (clone.__isDate(parent)) { - child = new Date(parent.getTime()); - } else if (useBuffer && Buffer.isBuffer(parent)) { - child = new Buffer(parent.length); - parent.copy(child); - return child; - } else { - if (typeof prototype == 'undefined') { - proto = Object.getPrototypeOf(parent); - child = Object.create(proto); - } - else { - child = Object.create(prototype); - proto = prototype; - } - } - - if (circular) { - var index = allParents.indexOf(parent); - - if (index != -1) { - return allChildren[index]; - } - allParents.push(parent); - allChildren.push(child); - } - - for (var i in parent) { - var attrs; - if (proto) { - attrs = Object.getOwnPropertyDescriptor(proto, i); - } - - if (attrs && attrs.set == null) { - continue; - } - child[i] = _clone(parent[i], depth - 1); - } - - return child; - } - - return _clone(parent, depth); -} - -/** - * Simple flat clone using prototype, accepts only objects, usefull for property - * override on FLAT configuration object (no nested props). - * - * USE WITH CAUTION! This may not behave as you wish if you do not know how this - * works. - */ -clone.clonePrototype = function clonePrototype(parent) { - if (parent === null) - return null; - - var c = function () {}; - c.prototype = parent; - return new c(); -}; - -// private utility functions - -function __objToStr(o) { - return Object.prototype.toString.call(o); -}; -clone.__objToStr = __objToStr; - -function __isDate(o) { - return typeof o === 'object' && __objToStr(o) === '[object Date]'; -}; -clone.__isDate = __isDate; - -function __isArray(o) { - return typeof o === 'object' && __objToStr(o) === '[object Array]'; -}; -clone.__isArray = __isArray; - -function __isRegExp(o) { - return typeof o === 'object' && __objToStr(o) === '[object RegExp]'; -}; -clone.__isRegExp = __isRegExp; - -function __getRegExpFlags(re) { - var flags = ''; - if (re.global) flags += 'g'; - if (re.ignoreCase) flags += 'i'; - if (re.multiline) flags += 'm'; - return flags; -}; -clone.__getRegExpFlags = __getRegExpFlags; - -return clone; -})(); - -if (typeof module === 'object' && module.exports) { - module.exports = clone; -} diff --git a/node_modules/clone/package.json b/node_modules/clone/package.json deleted file mode 100644 index 94d94a3..0000000 --- a/node_modules/clone/package.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "clone@^1.0.0", - "scope": null, - "escapedName": "clone", - "name": "clone", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/vinyl" - ] - ], - "_from": "clone@>=1.0.0 <2.0.0", - "_id": "clone@1.0.2", - "_inCache": true, - "_location": "/clone", - "_npmUser": { - "name": "pvorb", - "email": "paul@vorba.ch" - }, - "_npmVersion": "1.4.14", - "_phantomChildren": {}, - "_requested": { - "raw": "clone@^1.0.0", - "scope": null, - "escapedName": "clone", - "name": "clone", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/defaults", - "/gulp-concat/vinyl", - "/gulp-watch/vinyl", - "/vinyl", - "/vinyl-file/vinyl" - ], - "_resolved": "https://registry.npmjs.org/clone/-/clone-1.0.2.tgz", - "_shasum": "260b7a99ebb1edfe247538175f783243cb19d149", - "_shrinkwrap": null, - "_spec": "clone@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/vinyl", - "author": { - "name": "Paul Vorbach", - "email": "paul@vorba.ch", - "url": "http://paul.vorba.ch/" - }, - "bugs": { - "url": "https://github.com/pvorb/node-clone/issues" - }, - "contributors": [ - { - "name": "Blake Miner", - "email": "miner.blake@gmail.com", - "url": "http://www.blakeminer.com/" - }, - { - "name": "Tian You", - "email": "axqd001@gmail.com", - "url": "http://blog.axqd.net/" - }, - { - "name": "George Stagas", - "email": "gstagas@gmail.com", - "url": "http://stagas.com/" - }, - { - "name": "Tobiasz Cudnik", - "email": "tobiasz.cudnik@gmail.com", - "url": "https://github.com/TobiaszCudnik" - }, - { - "name": "Pavel Lang", - "email": "langpavel@phpskelet.org", - "url": "https://github.com/langpavel" - }, - { - "name": "Dan MacTough", - "url": "http://yabfog.com/" - }, - { - "name": "w1nk", - "url": "https://github.com/w1nk" - }, - { - "name": "Hugh Kennedy", - "url": "http://twitter.com/hughskennedy" - }, - { - "name": "Dustin Diaz", - "url": "http://dustindiaz.com" - }, - { - "name": "Ilya Shaisultanov", - "url": "https://github.com/diversario" - }, - { - "name": "Nathan MacInnes", - "email": "nathan@macinn.es", - "url": "http://macinn.es/" - }, - { - "name": "Benjamin E. Coe", - "email": "ben@npmjs.com", - "url": "https://twitter.com/benjamincoe" - }, - { - "name": "Nathan Zadoks", - "url": "https://github.com/nathan7" - }, - { - "name": "Róbert Oroszi", - "email": "robert+gh@oroszi.net", - "url": "https://github.com/oroce" - }, - { - "name": "Aurélio A. Heckert", - "url": "http://softwarelivre.org/aurium" - }, - { - "name": "Guy Ellis", - "url": "http://www.guyellisrocks.com/" - } - ], - "dependencies": {}, - "description": "deep cloning of objects and arrays", - "devDependencies": { - "nodeunit": "~0.9.0" - }, - "directories": {}, - "dist": { - "shasum": "260b7a99ebb1edfe247538175f783243cb19d149", - "tarball": "https://registry.npmjs.org/clone/-/clone-1.0.2.tgz" - }, - "engines": { - "node": ">=0.8" - }, - "gitHead": "0e8216efc672496b612fd7ab62159117d16ec4a0", - "homepage": "https://github.com/pvorb/node-clone", - "license": "MIT", - "main": "clone.js", - "maintainers": [ - { - "name": "pvorb", - "email": "paul@vorb.de" - } - ], - "name": "clone", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/pvorb/node-clone.git" - }, - "scripts": { - "test": "nodeunit test.js" - }, - "tags": [ - "clone", - "object", - "array", - "function", - "date" - ], - "version": "1.0.2" -} diff --git a/node_modules/clone/test-apart-ctx.html b/node_modules/clone/test-apart-ctx.html deleted file mode 100644 index 4d532bb..0000000 --- a/node_modules/clone/test-apart-ctx.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - Clone Test-Suite (Browser) - - - - - diff --git a/node_modules/clone/test.html b/node_modules/clone/test.html deleted file mode 100644 index a955702..0000000 --- a/node_modules/clone/test.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - Clone Test-Suite (Browser) - - - - - -

Clone Test-Suite (Browser)

- Tests started: ; - Tests finished: . -
    - - - diff --git a/node_modules/clone/test.js b/node_modules/clone/test.js deleted file mode 100644 index e8b65b3..0000000 --- a/node_modules/clone/test.js +++ /dev/null @@ -1,372 +0,0 @@ -var clone = require('./'); - -function inspect(obj) { - seen = []; - return JSON.stringify(obj, function (key, val) { - if (val != null && typeof val == "object") { - if (seen.indexOf(val) >= 0) { - return '[cyclic]'; - } - - seen.push(val); - } - - return val; - }); -} - -// Creates a new VM in node, or an iframe in a browser in order to run the -// script -function apartContext(context, script, callback) { - var vm = require('vm'); - - if (vm) { - var ctx = vm.createContext({ ctx: context }); - callback(vm.runInContext(script, ctx)); - } else if (document && document.createElement) { - var iframe = document.createElement('iframe'); - iframe.style.display = 'none'; - document.body.appendChild(iframe); - - var myCtxId = 'tmpCtx' + Math.random(); - - window[myCtxId] = context; - iframe.src = 'test-apart-ctx.html?' + myCtxId + '&' + encodeURIComponent(script); - iframe.onload = function() { - try { - callback(iframe.contentWindow.results); - } catch (e) { - throw e; - } - }; - } else { - console.log('WARNING: cannot create an apart context.'); - } -} - -exports["clone string"] = function (test) { - test.expect(2); // how many tests? - - var a = "foo"; - test.strictEqual(clone(a), a); - a = ""; - test.strictEqual(clone(a), a); - - test.done(); -}; - -exports["clone number"] = function (test) { - test.expect(5); // how many tests? - - var a = 0; - test.strictEqual(clone(a), a); - a = 1; - test.strictEqual(clone(a), a); - a = -1000; - test.strictEqual(clone(a), a); - a = 3.1415927; - test.strictEqual(clone(a), a); - a = -3.1415927; - test.strictEqual(clone(a), a); - - test.done(); -}; - -exports["clone date"] = function (test) { - test.expect(3); // how many tests? - - var a = new Date; - var c = clone(a); - test.ok(!!a.getUTCDate && !!a.toUTCString); - test.ok(!!c.getUTCDate && !!c.toUTCString); - test.equal(a.getTime(), c.getTime()); - - test.done(); -}; - -exports["clone object"] = function (test) { - test.expect(1); // how many tests? - - var a = { foo: { bar: "baz" } }; - var b = clone(a); - - test.deepEqual(b, a); - - test.done(); -}; - -exports["clone array"] = function (test) { - test.expect(2); // how many tests? - - var a = [ - { foo: "bar" }, - "baz" - ]; - var b = clone(a); - - test.ok(b instanceof Array); - test.deepEqual(b, a); - - test.done(); -}; - -exports["clone buffer"] = function (test) { - if (typeof Buffer == 'undefined') { - return test.done(); - } - - test.expect(1); - - var a = new Buffer("this is a test buffer"); - var b = clone(a); - - // no underscore equal since it has no concept of Buffers - test.deepEqual(b, a); - test.done(); -}; - -exports["clone regexp"] = function (test) { - test.expect(5); - - var a = /abc123/gi; - var b = clone(a); - test.deepEqual(b, a); - - var c = /a/g; - test.ok(c.lastIndex === 0); - - c.exec('123a456a'); - test.ok(c.lastIndex === 4); - - var d = clone(c); - test.ok(d.global); - test.ok(d.lastIndex === 4); - - test.done(); -}; - -exports["clone object containing array"] = function (test) { - test.expect(1); // how many tests? - - var a = { - arr1: [ { a: '1234', b: '2345' } ], - arr2: [ { c: '345', d: '456' } ] - }; - - var b = clone(a); - - test.deepEqual(b, a); - - test.done(); -}; - -exports["clone object with circular reference"] = function (test) { - test.expect(8); // how many tests? - - var c = [1, "foo", {'hello': 'bar'}, function () {}, false, [2]]; - var b = [c, 2, 3, 4]; - - var a = {'b': b, 'c': c}; - a.loop = a; - a.loop2 = a; - c.loop = c; - c.aloop = a; - - var aCopy = clone(a); - test.ok(a != aCopy); - test.ok(a.c != aCopy.c); - test.ok(aCopy.c == aCopy.b[0]); - test.ok(aCopy.c.loop.loop.aloop == aCopy); - test.ok(aCopy.c[0] == a.c[0]); - - test.ok(eq(a, aCopy)); - aCopy.c[0] = 2; - test.ok(!eq(a, aCopy)); - aCopy.c = "2"; - test.ok(!eq(a, aCopy)); - - function eq(x, y) { - return inspect(x) === inspect(y); - } - - test.done(); -}; - -exports['clone prototype'] = function (test) { - test.expect(3); // how many tests? - - var a = { - a: "aaa", - x: 123, - y: 45.65 - }; - var b = clone.clonePrototype(a); - - test.strictEqual(b.a, a.a); - test.strictEqual(b.x, a.x); - test.strictEqual(b.y, a.y); - - test.done(); -}; - -exports['clone within an apart context'] = function (test) { - var results = apartContext({ clone: clone }, - "results = ctx.clone({ a: [1, 2, 3], d: new Date(), r: /^foo$/ig })", - function (results) { - test.ok(results.a.constructor.toString() === Array.toString()); - test.ok(results.d.constructor.toString() === Date.toString()); - test.ok(results.r.constructor.toString() === RegExp.toString()); - test.done(); - }); -}; - -exports['clone object with no constructor'] = function (test) { - test.expect(3); - - var n = null; - - var a = { foo: 'bar' }; - a.__proto__ = n; - test.ok(typeof a === 'object'); - test.ok(typeof a !== null); - - var b = clone(a); - test.ok(a.foo, b.foo); - - test.done(); -}; - -exports['clone object with depth argument'] = function (test) { - test.expect(6); - - var a = { - foo: { - bar : { - baz : 'qux' - } - } - }; - - var b = clone(a, false, 1); - test.deepEqual(b, a); - test.notEqual(b, a); - test.strictEqual(b.foo, a.foo); - - b = clone(a, true, 2); - test.deepEqual(b, a); - test.notEqual(b.foo, a.foo); - test.strictEqual(b.foo.bar, a.foo.bar); - - test.done(); -}; - -exports['maintain prototype chain in clones'] = function (test) { - test.expect(1); - - function T() {} - - var a = new T(); - var b = clone(a); - test.strictEqual(Object.getPrototypeOf(a), Object.getPrototypeOf(b)); - - test.done(); -}; - -exports['parent prototype is overriden with prototype provided'] = function (test) { - test.expect(1); - - function T() {} - - var a = new T(); - var b = clone(a, true, Infinity, null); - test.strictEqual(b.__defineSetter__, undefined); - - test.done(); -}; - -exports['clone object with null children'] = function (test) { - test.expect(1); - var a = { - foo: { - bar: null, - baz: { - qux: false - } - } - }; - - var b = clone(a); - - test.deepEqual(b, a); - test.done(); -}; - -exports['clone instance with getter'] = function (test) { - test.expect(1); - function Ctor() {}; - Object.defineProperty(Ctor.prototype, 'prop', { - configurable: true, - enumerable: true, - get: function() { - return 'value'; - } - }); - - var a = new Ctor(); - var b = clone(a); - - test.strictEqual(b.prop, 'value'); - test.done(); -}; - -exports['get RegExp flags'] = function (test) { - test.strictEqual(clone.__getRegExpFlags(/a/), '' ); - test.strictEqual(clone.__getRegExpFlags(/a/i), 'i' ); - test.strictEqual(clone.__getRegExpFlags(/a/g), 'g' ); - test.strictEqual(clone.__getRegExpFlags(/a/gi), 'gi'); - test.strictEqual(clone.__getRegExpFlags(/a/m), 'm' ); - - test.done(); -}; - -exports["recognize Array object"] = function (test) { - var results = apartContext(null, "results = [1, 2, 3]", function(alien) { - var local = [4, 5, 6]; - test.ok(clone.__isArray(alien)); // recognize in other context. - test.ok(clone.__isArray(local)); // recognize in local context. - test.ok(!clone.__isDate(alien)); - test.ok(!clone.__isDate(local)); - test.ok(!clone.__isRegExp(alien)); - test.ok(!clone.__isRegExp(local)); - test.done(); - }); -}; - -exports["recognize Date object"] = function (test) { - var results = apartContext(null, "results = new Date()", function(alien) { - var local = new Date(); - - test.ok(clone.__isDate(alien)); // recognize in other context. - test.ok(clone.__isDate(local)); // recognize in local context. - test.ok(!clone.__isArray(alien)); - test.ok(!clone.__isArray(local)); - test.ok(!clone.__isRegExp(alien)); - test.ok(!clone.__isRegExp(local)); - - test.done(); - }); -}; - -exports["recognize RegExp object"] = function (test) { - var results = apartContext(null, "results = /foo/", function(alien) { - var local = /bar/; - - test.ok(clone.__isRegExp(alien)); // recognize in other context. - test.ok(clone.__isRegExp(local)); // recognize in local context. - test.ok(!clone.__isArray(alien)); - test.ok(!clone.__isArray(local)); - test.ok(!clone.__isDate(alien)); - test.ok(!clone.__isDate(local)); - test.done(); - }); -}; diff --git a/node_modules/cloneable-readable/.npmignore b/node_modules/cloneable-readable/.npmignore deleted file mode 100644 index e920c16..0000000 --- a/node_modules/cloneable-readable/.npmignore +++ /dev/null @@ -1,33 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directory -node_modules - -# Optional npm cache directory -.npm - -# Optional REPL history -.node_repl_history diff --git a/node_modules/cloneable-readable/.travis.yml b/node_modules/cloneable-readable/.travis.yml deleted file mode 100644 index 3e4281a..0000000 --- a/node_modules/cloneable-readable/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -sudo: false -node_js: - - "0.10" - - "0.12" - - "4" - - "5" - - "6" diff --git a/node_modules/cloneable-readable/LICENSE b/node_modules/cloneable-readable/LICENSE deleted file mode 100644 index ecf6245..0000000 --- a/node_modules/cloneable-readable/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Matteo Collina - -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/cloneable-readable/README.md b/node_modules/cloneable-readable/README.md deleted file mode 100644 index b62fd1d..0000000 --- a/node_modules/cloneable-readable/README.md +++ /dev/null @@ -1,52 +0,0 @@ -# cloneable-readable - -[![Build Status](https://travis-ci.org/mcollina/cloneable-readable.svg?branch=master)](https://travis-ci.org/mcollina/cloneable-readable) - -Clone a Readable stream, safely. - -```js -'use strict' - -var cloneable = require('cloneable-readable') -var fs = require('fs') -var pump = require('pump') - -var stream = cloneable(fs.createReadStream('./package.json')) - -pump(stream.clone(), fs.createWriteStream('./out1')) - -// simulate some asynchronicity -setImmediate(function () { - pump(stream, fs.createWriteStream('./out2')) -}) -``` - -**cloneable-readable** automatically handles `objectMode: true`. - -This module comes out of an healthy discussion on the 'right' way to -clone a Readable in https://github.com/gulpjs/vinyl/issues/85 -and https://github.com/nodejs/readable-stream/issues/202. This is my take. - -**YOU MUST PIPE ALL CLONES TO START THE FLOW** - -You can also attach `'data'` and `'readable'` events to them. - -## API - -### cloneable(stream) - -Create a `Cloneable` stream. -A Cloneable has a `clone()` method to create more clones. -All clones must be resumed/piped to start the flow. - -### cloneable.isCloneable(stream) - -Check if `stream` needs to be wrapped in a `Cloneable` or not. - -## Acknowledgements - -This project was kindly sponsored by [nearForm](http://nearform.com). - -## License - -MIT diff --git a/node_modules/cloneable-readable/example.js b/node_modules/cloneable-readable/example.js deleted file mode 100644 index e980b97..0000000 --- a/node_modules/cloneable-readable/example.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict' - -var cloneable = require('./') -var fs = require('fs') -var pump = require('pump') - -var stream = cloneable(fs.createReadStream('./package.json')) - -pump(stream.clone(), fs.createWriteStream('./out1')) - -// simulate some asynchronicity -setImmediate(function () { - pump(stream, fs.createWriteStream('./out2')) -}) diff --git a/node_modules/cloneable-readable/index.js b/node_modules/cloneable-readable/index.js deleted file mode 100644 index 7696886..0000000 --- a/node_modules/cloneable-readable/index.js +++ /dev/null @@ -1,110 +0,0 @@ -'use strict' - -var through2 = require('through2') -var inherits = require('inherits') -var nextTick = require('process-nextick-args') -var Ctor = through2.ctor() - -function Cloneable (stream, opts) { - if (!(this instanceof Cloneable)) { - return new Cloneable(stream, opts) - } - - var objectMode = stream._readableState.objectMode - this._original = stream - this._clonesCount = 1 - - opts = opts || {} - opts.objectMode = objectMode - - Ctor.call(this, opts) - - forwardDestroy(stream, this) - - this.on('newListener', onData) -} - -inherits(Cloneable, Ctor) - -function onData (event, listener) { - if (event === 'data' || event === 'readable') { - this.removeListener('newListener', onData) - nextTick(clonePiped, this) - } -} - -Cloneable.prototype.clone = function () { - if (!this._original) { - throw new Error('already started') - } - - this._clonesCount++ - - // the events added by the clone should not count - // for starting the flow - this.removeListener('newListener', onData) - var clone = new Clone(this) - this.on('newListener', onData) - - return clone -} - -function forwardDestroy (src, dest) { - src.on('error', destroy) - src.on('close', destroy) - - function destroy (err) { - dest.destroy(err) - } -} - -function clonePiped (that) { - if (--that._clonesCount === 0 && !that._destroyed) { - that._original.pipe(that) - that._original = undefined - } -} - -function Clone (parent, opts) { - if (!(this instanceof Clone)) { - return new Clone(parent, opts) - } - - var objectMode = parent._readableState.objectMode - - opts = opts || {} - opts.objectMode = objectMode - - this.parent = parent - - Ctor.call(this, opts) - - forwardDestroy(this.parent, this) - - parent.pipe(this) - - // the events added by the clone should not count - // for starting the flow - // so we add the newListener handle after we are done - this.on('newListener', onDataClone) -} - -function onDataClone (event, listener) { - // We start the flow once all clones are piped or destroyed - if (event === 'data' || event === 'readable' || event === 'close') { - nextTick(clonePiped, this.parent) - this.removeListener('newListener', onDataClone) - } -} - -inherits(Clone, Ctor) - -Clone.prototype.clone = function () { - return this.parent.clone() -} - -Cloneable.isCloneable = function (stream) { - return stream instanceof Cloneable || stream instanceof Clone -} - -module.exports = Cloneable diff --git a/node_modules/cloneable-readable/package.json b/node_modules/cloneable-readable/package.json deleted file mode 100644 index 50b19b7..0000000 --- a/node_modules/cloneable-readable/package.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "cloneable-readable@^1.0.0", - "scope": null, - "escapedName": "cloneable-readable", - "name": "cloneable-readable", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat/node_modules/vinyl" - ] - ], - "_from": "cloneable-readable@>=1.0.0 <2.0.0", - "_id": "cloneable-readable@1.0.0", - "_inCache": true, - "_location": "/cloneable-readable", - "_nodeVersion": "6.8.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/cloneable-readable-1.0.0.tgz_1477399717263_0.541040712967515" - }, - "_npmUser": { - "name": "matteo.collina", - "email": "hello@matteocollina.com" - }, - "_npmVersion": "3.10.8", - "_phantomChildren": {}, - "_requested": { - "raw": "cloneable-readable@^1.0.0", - "scope": null, - "escapedName": "cloneable-readable", - "name": "cloneable-readable", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat/vinyl" - ], - "_resolved": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.0.0.tgz", - "_shasum": "a6290d413f217a61232f95e458ff38418cfb0117", - "_shrinkwrap": null, - "_spec": "cloneable-readable@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat/node_modules/vinyl", - "author": { - "name": "Matteo Collina", - "email": "hello@matteocollina.com" - }, - "bugs": { - "url": "https://github.com/mcollina/cloneable-readable/issues" - }, - "dependencies": { - "inherits": "^2.0.1", - "process-nextick-args": "^1.0.6", - "through2": "^2.0.1" - }, - "description": "Clone a Readable stream, safely", - "devDependencies": { - "flush-write-stream": "^1.0.0", - "from2": "^2.1.1", - "pre-commit": "^1.1.2", - "readable-stream": "^2.1.0", - "standard": "^8.0.0", - "tap-spec": "^4.1.1", - "tape": "^4.6.0" - }, - "directories": {}, - "dist": { - "shasum": "a6290d413f217a61232f95e458ff38418cfb0117", - "tarball": "https://registry.npmjs.org/cloneable-readable/-/cloneable-readable-1.0.0.tgz" - }, - "gitHead": "9d887ebaec81a5f59593b6d7b69c3c522bf5d425", - "homepage": "https://github.com/mcollina/cloneable-readable#readme", - "keywords": [ - "readable", - "stream", - "clone" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "matteo.collina", - "email": "hello@matteocollina.com" - } - ], - "name": "cloneable-readable", - "optionalDependencies": {}, - "precommit": "test", - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/mcollina/cloneable-readable.git" - }, - "scripts": { - "test": "standard && tape test.js | tap-spec" - }, - "version": "1.0.0" -} diff --git a/node_modules/cloneable-readable/test.js b/node_modules/cloneable-readable/test.js deleted file mode 100644 index e1d88d4..0000000 --- a/node_modules/cloneable-readable/test.js +++ /dev/null @@ -1,576 +0,0 @@ -'use strict' - -var test = require('tape').test -var from = require('from2') -var sink = require('flush-write-stream') -var cloneable = require('./') - -test('basic passthrough', function (t) { - t.plan(2) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello world') - } - next() - }) - - var instance = cloneable(source) - t.notOk(read, 'stream not started') - - instance.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - cb() - })) -}) - -test('clone sync', function (t) { - t.plan(4) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello world') - } - next() - }) - - var instance = cloneable(source) - t.notOk(read, 'stream not started') - - var cloned = instance.clone() - t.notOk(read, 'stream not started') - - instance.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - cb() - })) - - cloned.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - cb() - })) -}) - -test('clone async', function (t) { - t.plan(4) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello world') - } - next() - }) - - var instance = cloneable(source) - t.notOk(read, 'stream not started') - - var cloned = instance.clone() - t.notOk(read, 'stream not started') - - instance.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - cb() - })) - - setImmediate(function () { - cloned.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - cb() - })) - }) -}) - -test('basic passthrough in obj mode', function (t) { - t.plan(2) - - var read = false - var source = from.obj(function (size, next) { - if (read) { - return this.push(null) - } else { - read = true - this.push({ hello: 'world' }) - } - next() - }) - - var instance = cloneable(source) - t.notOk(read, 'stream not started') - - instance.pipe(sink.obj(function (chunk, enc, cb) { - t.deepEqual(chunk, { hello: 'world' }, 'chunk matches') - cb() - })) -}) - -test('multiple clone in object mode', function (t) { - t.plan(4) - - var read = false - var source = from.obj(function (size, next) { - if (read) { - return this.push(null) - } else { - read = true - this.push({ hello: 'world' }) - } - next() - }) - - var instance = cloneable(source) - t.notOk(read, 'stream not started') - - var cloned = instance.clone() - t.notOk(read, 'stream not started') - - instance.pipe(sink.obj(function (chunk, enc, cb) { - t.deepEqual(chunk, { hello: 'world' }, 'chunk matches') - cb() - })) - - setImmediate(function () { - cloned.pipe(sink.obj(function (chunk, enc, cb) { - t.deepEqual(chunk, { hello: 'world' }, 'chunk matches') - cb() - })) - }) -}) - -test('basic passthrough with data event', function (t) { - t.plan(2) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello world') - } - next() - }) - - var instance = cloneable(source) - t.notOk(read, 'stream not started') - - var data = '' - instance.on('data', function (chunk) { - data += chunk.toString() - }) - - instance.on('end', function () { - t.equal(data, 'hello world', 'chunk matches') - }) -}) - -test('basic passthrough with data event on clone', function (t) { - t.plan(3) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello world') - } - next() - }) - - var instance = cloneable(source) - var cloned = instance.clone() - - t.notOk(read, 'stream not started') - - var data = '' - cloned.on('data', function (chunk) { - data += chunk.toString() - }) - - cloned.on('end', function () { - t.equal(data, 'hello world', 'chunk matches in clone') - }) - - instance.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches in instance') - cb() - })) -}) - -test('errors if cloned after start', function (t) { - t.plan(2) - - var source = from(function (size, next) { - this.push('hello world') - this.push(null) - next() - }) - - var instance = cloneable(source) - - instance.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - t.throws(function () { - instance.clone() - }, 'throws if cloned after start') - cb() - })) -}) - -test('basic passthrough with readable event', function (t) { - t.plan(2) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello world') - } - next() - }) - - var instance = cloneable(source) - t.notOk(read, 'stream not started') - - var data = '' - instance.on('readable', function () { - var chunk - while ((chunk = this.read()) !== null) { - data += chunk.toString() - } - }) - - instance.on('end', function () { - t.equal(data, 'hello world', 'chunk matches') - }) -}) - -test('basic passthrough with readable event on clone', function (t) { - t.plan(3) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello world') - } - next() - }) - - var instance = cloneable(source) - var cloned = instance.clone() - - t.notOk(read, 'stream not started') - - var data = '' - cloned.on('readable', function () { - var chunk - while ((chunk = this.read()) !== null) { - data += chunk.toString() - } - }) - - cloned.on('end', function () { - t.equal(data, 'hello world', 'chunk matches in clone') - }) - - instance.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches in instance') - cb() - })) -}) - -test('source error destroys all', function (t) { - t.plan(5) - - var source = from() - var instance = cloneable(source) - var clone = instance.clone() - - source.on('error', function (err) { - t.ok(err, 'source errors') - - instance.on('error', function (err2) { - t.ok(err === err2, 'instance receives same error') - }) - - instance.on('close', function () { - t.pass('instance is closed') - }) - - clone.on('error', function (err3) { - t.ok(err === err3, 'clone receives same error') - }) - - clone.on('close', function () { - t.pass('clone is closed') - }) - }) - - source.emit('error', new Error()) -}) - -test('source destroy destroys all', function (t) { - t.plan(2) - - var source = from() - var instance = cloneable(source) - var clone = instance.clone() - - instance.on('close', function () { - t.pass('instance is closed') - }) - - clone.on('close', function () { - t.pass('clone is closed') - }) - - source.destroy() -}) - -test('instance error destroys all but the source', function (t) { - t.plan(4) - - var source = from() - var instance = cloneable(source) - var clone = instance.clone() - - source.on('close', function () { - t.fail('source should not be closed') - }) - - instance.on('error', function (err) { - t.is(err.message, 'beep', 'instance errors') - - instance.on('close', function () { - t.pass('instance is closed') - }) - - clone.on('error', function (err3) { - t.ok(err === err3, 'clone receives same error') - }) - - clone.on('close', function () { - t.pass('clone is closed') - }) - }) - - instance.destroy(new Error('beep')) -}) - -test('instance destroy destroys all but the source', function (t) { - t.plan(2) - - var source = from() - var instance = cloneable(source) - var clone = instance.clone() - - source.on('close', function () { - t.fail('source should not be closed') - }) - - instance.on('close', function () { - t.pass('instance is closed') - }) - - clone.on('close', function () { - t.pass('clone is closed') - }) - - instance.destroy() -}) - -test('clone destroy does not affect other clones, cloneable or source', function (t) { - t.plan(1) - - var source = from() - var instance = cloneable(source) - var clone = instance.clone() - var other = instance.clone() - - source.on('close', function () { - t.fail('source should not be closed') - }) - - instance.on('close', function () { - t.fail('instance should not be closed') - }) - - other.on('close', function () { - t.fail('other clone should not be closed') - }) - - clone.on('close', function () { - t.pass('clone is closed') - }) - - clone.destroy() -}) - -test('clone remains readable if other is destroyed', function (t) { - t.plan(3) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello') - } - next() - }) - - var instance = cloneable(source) - var clone = instance.clone() - var other = instance.clone() - - instance.pipe(sink.obj(function (chunk, enc, cb) { - t.deepEqual(chunk.toString(), 'hello', 'instance chunk matches') - cb() - })) - - clone.pipe(sink.obj(function (chunk, enc, cb) { - t.deepEqual(chunk.toString(), 'hello', 'clone chunk matches') - cb() - })) - - clone.on('close', function () { - t.fail('clone should not be closed') - }) - - instance.on('close', function () { - t.fail('instance should not be closed') - }) - - other.on('close', function () { - t.pass('other is closed') - }) - - other.destroy() -}) - -test('clone of clone', function (t) { - t.plan(6) - - var read = false - var source = from(function (size, next) { - if (read) { - this.push(null) - } else { - read = true - this.push('hello world') - } - next() - }) - - var instance = cloneable(source) - t.notOk(read, 'stream not started') - - var cloned = instance.clone() - t.notOk(read, 'stream not started') - - var replica = cloned.clone() - t.notOk(read, 'stream not started') - - instance.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - cb() - })) - - cloned.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - cb() - })) - - replica.pipe(sink(function (chunk, enc, cb) { - t.equal(chunk.toString(), 'hello world', 'chunk matches') - cb() - })) -}) - -test('from vinyl', function (t) { - t.plan(3) - - var source = from(['wa', 'dup']) - - var instance = cloneable(source) - var clone = instance.clone() - - var data = '' - var data2 = '' - var ends = 2 - - function latch () { - if (--ends === 0) { - t.equal(data, data2) - } - } - - instance.on('data', function (chunk) { - data += chunk.toString() - }) - - process.nextTick(function () { - t.equal('', data, 'nothing was written yet') - t.equal('', data2, 'nothing was written yet') - - clone.on('data', function (chunk) { - data2 += chunk.toString() - }) - }) - - instance.on('end', latch) - clone.on('end', latch) -}) - -test('waits till all are flowing', function (t) { - t.plan(1) - - var source = from(['wa', 'dup']) - - var instance = cloneable(source) - - // we create a clone - instance.clone() - - instance.on('data', function (chunk) { - t.fail('this should never happen') - }) - - process.nextTick(function () { - t.pass('wait till nextTick') - }) -}) - -test('isCloneable', function (t) { - t.plan(4) - - var source = from(['hello', ' ', 'world']) - t.notOk(cloneable.isCloneable(source), 'a generic readable is not cloneable') - - var instance = cloneable(source) - t.ok(cloneable.isCloneable(instance), 'a cloneable is cloneable') - - var clone = instance.clone() - t.ok(cloneable.isCloneable(clone), 'a clone is cloneable') - - var cloneClone = clone.clone() - t.ok(cloneable.isCloneable(cloneClone), 'a clone of a clone is cloneable') -}) diff --git a/node_modules/code-point-at/index.js b/node_modules/code-point-at/index.js deleted file mode 100644 index 0432fe6..0000000 --- a/node_modules/code-point-at/index.js +++ /dev/null @@ -1,32 +0,0 @@ -/* eslint-disable babel/new-cap, xo/throw-new-error */ -'use strict'; -module.exports = function (str, pos) { - if (str === null || str === undefined) { - throw TypeError(); - } - - str = String(str); - - var size = str.length; - var i = pos ? Number(pos) : 0; - - if (Number.isNaN(i)) { - i = 0; - } - - if (i < 0 || i >= size) { - return undefined; - } - - var first = str.charCodeAt(i); - - if (first >= 0xD800 && first <= 0xDBFF && size > i + 1) { - var second = str.charCodeAt(i + 1); - - if (second >= 0xDC00 && second <= 0xDFFF) { - return ((first - 0xD800) * 0x400) + second - 0xDC00 + 0x10000; - } - } - - return first; -}; diff --git a/node_modules/code-point-at/license b/node_modules/code-point-at/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/code-point-at/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/code-point-at/package.json b/node_modules/code-point-at/package.json deleted file mode 100644 index e652091..0000000 --- a/node_modules/code-point-at/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "code-point-at@^1.0.0", - "scope": null, - "escapedName": "code-point-at", - "name": "code-point-at", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/readline2" - ] - ], - "_from": "code-point-at@>=1.0.0 <2.0.0", - "_id": "code-point-at@1.1.0", - "_inCache": true, - "_location": "/code-point-at", - "_nodeVersion": "4.6.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/code-point-at-1.1.0.tgz_1478169780337_0.8445875702891499" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.9", - "_phantomChildren": {}, - "_requested": { - "raw": "code-point-at@^1.0.0", - "scope": null, - "escapedName": "code-point-at", - "name": "code-point-at", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/readline2" - ], - "_resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "_shasum": "0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77", - "_shrinkwrap": null, - "_spec": "code-point-at@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/readline2", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/code-point-at/issues" - }, - "dependencies": {}, - "description": "ES2015 `String#codePointAt()` ponyfill", - "devDependencies": { - "ava": "*", - "xo": "^0.16.0" - }, - "directories": {}, - "dist": { - "shasum": "0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77", - "tarball": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "f8f21c8df2d40248fef1b36ca9076e59c0c34791", - "homepage": "https://github.com/sindresorhus/code-point-at#readme", - "keywords": [ - "es2015", - "ponyfill", - "polyfill", - "shim", - "string", - "str", - "code", - "point", - "at", - "codepoint", - "unicode" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "code-point-at", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/code-point-at.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.1.0" -} diff --git a/node_modules/code-point-at/readme.md b/node_modules/code-point-at/readme.md deleted file mode 100644 index 4c97730..0000000 --- a/node_modules/code-point-at/readme.md +++ /dev/null @@ -1,32 +0,0 @@ -# code-point-at [![Build Status](https://travis-ci.org/sindresorhus/code-point-at.svg?branch=master)](https://travis-ci.org/sindresorhus/code-point-at) - -> ES2015 [`String#codePointAt()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) [ponyfill](https://ponyfill.com) - - -## Install - -``` -$ npm install --save code-point-at -``` - - -## Usage - -```js -var codePointAt = require('code-point-at'); - -codePointAt('🐴'); -//=> 128052 - -codePointAt('abc', 2); -//=> 99 -``` - -## API - -### codePointAt(input, [position]) - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/colors/.travis.yml b/node_modules/colors/.travis.yml deleted file mode 100644 index ec43125..0000000 --- a/node_modules/colors/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: - - "0.11" - - "0.10" - - "0.8" - - "0.6" \ No newline at end of file diff --git a/node_modules/colors/MIT-LICENSE.txt b/node_modules/colors/MIT-LICENSE.txt deleted file mode 100644 index 3de4e33..0000000 --- a/node_modules/colors/MIT-LICENSE.txt +++ /dev/null @@ -1,23 +0,0 @@ -Original Library - - Copyright (c) Marak Squires - -Additional Functionality - - 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. \ No newline at end of file diff --git a/node_modules/colors/ReadMe.md b/node_modules/colors/ReadMe.md deleted file mode 100644 index beb5b14..0000000 --- a/node_modules/colors/ReadMe.md +++ /dev/null @@ -1,167 +0,0 @@ -# colors.js - -## get color and style in your node.js console - - - -## Installation - - npm install colors - -## colors and styles! - -### text colors - - - black - - red - - green - - yellow - - blue - - magenta - - cyan - - white - - gray - - grey - -### background colors - - - - - bgBlack - - bgRed - - bgGreen - - bgYellow - - bgBlue - - bgMagenta - - bgCyan - - bgWhite - -### styles - - - reset - - bold - - dim - - italic - - underline - - inverse - - hidden - - strikethrough - -### extras - - - rainbow - - zebra - - america - - trap - - random - - -## Usage - -By popular demand, `colors` now ships with two types of usages! - -The super nifty way - -```js -var colors = require('colors'); - -console.log('hello'.green); // outputs green text -console.log('i like cake and pies'.underline.red) // outputs red underlined text -console.log('inverse the color'.inverse); // inverses the color -console.log('OMG Rainbows!'.rainbow); // rainbow -console.log('Run the trap'.trap); // Drops the bass - -``` - -or a slightly less nifty way which doesn't extend `String.prototype` - -```js -var colors = require('colors/safe'); - -console.log(colors.green('hello')); // outputs green text -console.log(colors.red.underline('i like cake and pies')) // outputs red underlined text -console.log(colors.inverse('inverse the color')); // inverses the color -console.log(colors.rainbow('OMG Rainbows!')); // rainbow -console.log(colors.trap('Run the trap')); // Drops the bass - -``` - -I prefer the first way. Some people seem to be afraid of extending `String.prototype` and prefer the second way. - -If you are writing good code you will never have an issue with the first approach. If you really don't want to touch `String.prototype`, the second usage will not touch `String` native object. - -## Disabling Colors - -To disable colors you can pass the following arguments in the command line to your application: - -```bash -node myapp.js --no-color -``` - -## Console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data) - -```js -var name = 'Marak'; -console.log(colors.green('Hello %s'), name); -// outputs -> 'Hello Marak' -``` - -## Custom themes - -### Using standard API - -```js - -var colors = require('colors'); - -colors.setTheme({ - silly: 'rainbow', - input: 'grey', - verbose: 'cyan', - prompt: 'grey', - info: 'green', - data: 'grey', - help: 'cyan', - warn: 'yellow', - debug: 'blue', - error: 'red' -}); - -// outputs red text -console.log("this is an error".error); - -// outputs yellow text -console.log("this is a warning".warn); -``` - -### Using string safe API - -```js -var colors = require('colors/safe'); - -// set single property -var error = colors.red; -error('this is red'); - -// set theme -colors.setTheme({ - silly: 'rainbow', - input: 'grey', - verbose: 'cyan', - prompt: 'grey', - info: 'green', - data: 'grey', - help: 'cyan', - warn: 'yellow', - debug: 'blue', - error: 'red' -}); - -// outputs red text -console.log(colors.error("this is an error")); - -// outputs yellow text -console.log(colors.warn("this is a warning")); -``` - -*Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.* \ No newline at end of file diff --git a/node_modules/colors/examples/normal-usage.js b/node_modules/colors/examples/normal-usage.js deleted file mode 100644 index 2818741..0000000 --- a/node_modules/colors/examples/normal-usage.js +++ /dev/null @@ -1,74 +0,0 @@ -var colors = require('../lib/index'); - -console.log("First some yellow text".yellow); - -console.log("Underline that text".yellow.underline); - -console.log("Make it bold and red".red.bold); - -console.log(("Double Raindows All Day Long").rainbow) - -console.log("Drop the bass".trap) - -console.log("DROP THE RAINBOW BASS".trap.rainbow) - - -console.log('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported - -console.log('So '.green + 'are'.underline + ' ' + 'inverse'.inverse + ' styles! '.yellow.bold); // styles not widely supported -console.log("Zebras are so fun!".zebra); - -// -// Remark: .strikethrough may not work with Mac OS Terminal App -// -console.log("This is " + "not".strikethrough + " fun."); - -console.log('Background color attack!'.black.bgWhite) -console.log('Use random styles on everything!'.random) -console.log('America, Heck Yeah!'.america) - - -console.log('Setting themes is useful') - -// -// Custom themes -// -console.log('Generic logging theme as JSON'.green.bold.underline); -// Load theme with JSON literal -colors.setTheme({ - silly: 'rainbow', - input: 'grey', - verbose: 'cyan', - prompt: 'grey', - info: 'green', - data: 'grey', - help: 'cyan', - warn: 'yellow', - debug: 'blue', - error: 'red' -}); - -// outputs red text -console.log("this is an error".error); - -// outputs yellow text -console.log("this is a warning".warn); - -// outputs grey text -console.log("this is an input".input); - -console.log('Generic logging theme as file'.green.bold.underline); - -// Load a theme from file -colors.setTheme(__dirname + '/../themes/generic-logging.js'); - -// outputs red text -console.log("this is an error".error); - -// outputs yellow text -console.log("this is a warning".warn); - -// outputs grey text -console.log("this is an input".input); - -//console.log("Don't summon".zalgo) \ No newline at end of file diff --git a/node_modules/colors/examples/safe-string.js b/node_modules/colors/examples/safe-string.js deleted file mode 100644 index 111b363..0000000 --- a/node_modules/colors/examples/safe-string.js +++ /dev/null @@ -1,76 +0,0 @@ -var colors = require('../safe'); - -console.log(colors.yellow("First some yellow text")); - -console.log(colors.yellow.underline("Underline that text")); - -console.log(colors.red.bold("Make it bold and red")); - -console.log(colors.rainbow("Double Raindows All Day Long")) - -console.log(colors.trap("Drop the bass")) - -console.log(colors.rainbow(colors.trap("DROP THE RAINBOW BASS"))); - -console.log(colors.bold.italic.underline.red('Chains are also cool.')); // styles not widely supported - - -console.log(colors.green('So ') + colors.underline('are') + ' ' + colors.inverse('inverse') + colors.yellow.bold(' styles! ')); // styles not widely supported - -console.log(colors.zebra("Zebras are so fun!")); - -console.log("This is " + colors.strikethrough("not") + " fun."); - - -console.log(colors.black.bgWhite('Background color attack!')); -console.log(colors.random('Use random styles on everything!')) -console.log(colors.america('America, Heck Yeah!')); - -console.log('Setting themes is useful') - -// -// Custom themes -// -//console.log('Generic logging theme as JSON'.green.bold.underline); -// Load theme with JSON literal -colors.setTheme({ - silly: 'rainbow', - input: 'grey', - verbose: 'cyan', - prompt: 'grey', - info: 'green', - data: 'grey', - help: 'cyan', - warn: 'yellow', - debug: 'blue', - error: 'red' -}); - -// outputs red text -console.log(colors.error("this is an error")); - -// outputs yellow text -console.log(colors.warn("this is a warning")); - -// outputs grey text -console.log(colors.input("this is an input")); - - -// console.log('Generic logging theme as file'.green.bold.underline); - -// Load a theme from file -colors.setTheme(__dirname + '/../themes/generic-logging.js'); - -// outputs red text -console.log(colors.error("this is an error")); - -// outputs yellow text -console.log(colors.warn("this is a warning")); - -// outputs grey text -console.log(colors.input("this is an input")); - -// console.log(colors.zalgo("Don't summon him")) - - - diff --git a/node_modules/colors/lib/colors.js b/node_modules/colors/lib/colors.js deleted file mode 100644 index 59898de..0000000 --- a/node_modules/colors/lib/colors.js +++ /dev/null @@ -1,176 +0,0 @@ -/* - -The MIT License (MIT) - -Original Library - - Copyright (c) Marak Squires - -Additional functionality - - 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. - -*/ - -var colors = {}; -module['exports'] = colors; - -colors.themes = {}; - -var ansiStyles = colors.styles = require('./styles'); -var defineProps = Object.defineProperties; - -colors.supportsColor = require('./system/supports-colors'); - -if (typeof colors.enabled === "undefined") { - colors.enabled = colors.supportsColor; -} - -colors.stripColors = colors.strip = function(str){ - return ("" + str).replace(/\x1B\[\d+m/g, ''); -}; - - -var stylize = colors.stylize = function stylize (str, style) { - return ansiStyles[style].open + str + ansiStyles[style].close; -} - -var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; -var escapeStringRegexp = function (str) { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - return str.replace(matchOperatorsRe, '\\$&'); -} - -function build(_styles) { - var builder = function builder() { - return applyStyle.apply(builder, arguments); - }; - builder._styles = _styles; - // __proto__ is used because we must return a function, but there is - // no way to create a function with a different prototype. - builder.__proto__ = proto; - return builder; -} - -var styles = (function () { - var ret = {}; - ansiStyles.grey = ansiStyles.gray; - Object.keys(ansiStyles).forEach(function (key) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); - ret[key] = { - get: function () { - return build(this._styles.concat(key)); - } - }; - }); - return ret; -})(); - -var proto = defineProps(function colors() {}, styles); - -function applyStyle() { - var args = arguments; - var argsLen = args.length; - var str = argsLen !== 0 && String(arguments[0]); - if (argsLen > 1) { - for (var a = 1; a < argsLen; a++) { - str += ' ' + args[a]; - } - } - - if (!colors.enabled || !str) { - return str; - } - - var nestedStyles = this._styles; - - var i = nestedStyles.length; - while (i--) { - var code = ansiStyles[nestedStyles[i]]; - str = code.open + str.replace(code.closeRe, code.open) + code.close; - } - - return str; -} - -function applyTheme (theme) { - for (var style in theme) { - (function(style){ - colors[style] = function(str){ - return colors[theme[style]](str); - }; - })(style) - } -} - -colors.setTheme = function (theme) { - if (typeof theme === 'string') { - try { - colors.themes[theme] = require(theme); - applyTheme(colors.themes[theme]); - return colors.themes[theme]; - } catch (err) { - console.log(err); - return err; - } - } else { - applyTheme(theme); - } -}; - -function init() { - var ret = {}; - Object.keys(styles).forEach(function (name) { - ret[name] = { - get: function () { - return build([name]); - } - }; - }); - return ret; -} - -var sequencer = function sequencer (map, str) { - var exploded = str.split(""), i = 0; - exploded = exploded.map(map); - return exploded.join(""); -}; - -// custom formatter methods -colors.trap = require('./custom/trap'); -colors.zalgo = require('./custom/zalgo'); - -// maps -colors.maps = {}; -colors.maps.america = require('./maps/america'); -colors.maps.zebra = require('./maps/zebra'); -colors.maps.rainbow = require('./maps/rainbow'); -colors.maps.random = require('./maps/random') - -for (var map in colors.maps) { - (function(map){ - colors[map] = function (str) { - return sequencer(colors.maps[map], str); - } - })(map) -} - -defineProps(colors, init()); \ No newline at end of file diff --git a/node_modules/colors/lib/custom/trap.js b/node_modules/colors/lib/custom/trap.js deleted file mode 100644 index 3f09143..0000000 --- a/node_modules/colors/lib/custom/trap.js +++ /dev/null @@ -1,45 +0,0 @@ -module['exports'] = function runTheTrap (text, options) { - var result = ""; - text = text || "Run the trap, drop the bass"; - text = text.split(''); - var trap = { - a: ["\u0040", "\u0104", "\u023a", "\u0245", "\u0394", "\u039b", "\u0414"], - b: ["\u00df", "\u0181", "\u0243", "\u026e", "\u03b2", "\u0e3f"], - c: ["\u00a9", "\u023b", "\u03fe"], - d: ["\u00d0", "\u018a", "\u0500" , "\u0501" ,"\u0502", "\u0503"], - e: ["\u00cb", "\u0115", "\u018e", "\u0258", "\u03a3", "\u03be", "\u04bc", "\u0a6c"], - f: ["\u04fa"], - g: ["\u0262"], - h: ["\u0126", "\u0195", "\u04a2", "\u04ba", "\u04c7", "\u050a"], - i: ["\u0f0f"], - j: ["\u0134"], - k: ["\u0138", "\u04a0", "\u04c3", "\u051e"], - l: ["\u0139"], - m: ["\u028d", "\u04cd", "\u04ce", "\u0520", "\u0521", "\u0d69"], - n: ["\u00d1", "\u014b", "\u019d", "\u0376", "\u03a0", "\u048a"], - o: ["\u00d8", "\u00f5", "\u00f8", "\u01fe", "\u0298", "\u047a", "\u05dd", "\u06dd", "\u0e4f"], - p: ["\u01f7", "\u048e"], - q: ["\u09cd"], - r: ["\u00ae", "\u01a6", "\u0210", "\u024c", "\u0280", "\u042f"], - s: ["\u00a7", "\u03de", "\u03df", "\u03e8"], - t: ["\u0141", "\u0166", "\u0373"], - u: ["\u01b1", "\u054d"], - v: ["\u05d8"], - w: ["\u0428", "\u0460", "\u047c", "\u0d70"], - x: ["\u04b2", "\u04fe", "\u04fc", "\u04fd"], - y: ["\u00a5", "\u04b0", "\u04cb"], - z: ["\u01b5", "\u0240"] - } - text.forEach(function(c){ - c = c.toLowerCase(); - var chars = trap[c] || [" "]; - var rand = Math.floor(Math.random() * chars.length); - if (typeof trap[c] !== "undefined") { - result += trap[c][rand]; - } else { - result += c; - } - }); - return result; - -} diff --git a/node_modules/colors/lib/custom/zalgo.js b/node_modules/colors/lib/custom/zalgo.js deleted file mode 100644 index 4dc20c8..0000000 --- a/node_modules/colors/lib/custom/zalgo.js +++ /dev/null @@ -1,104 +0,0 @@ -// please no -module['exports'] = function zalgo(text, options) { - text = text || " he is here "; - var soul = { - "up" : [ - '̍', '̎', '̄', '̅', - '̿', '̑', '̆', '̐', - '͒', '͗', '͑', '̇', - '̈', '̊', '͂', '̓', - '̈', '͊', '͋', '͌', - '̃', '̂', '̌', '͐', - '̀', '́', '̋', '̏', - '̒', '̓', '̔', '̽', - '̉', 'ͣ', 'ͤ', 'ͥ', - 'ͦ', 'ͧ', 'ͨ', 'ͩ', - 'ͪ', 'ͫ', 'ͬ', 'ͭ', - 'ͮ', 'ͯ', '̾', '͛', - '͆', '̚' - ], - "down" : [ - '̖', '̗', '̘', '̙', - '̜', '̝', '̞', '̟', - '̠', '̤', '̥', '̦', - '̩', '̪', '̫', '̬', - '̭', '̮', '̯', '̰', - '̱', '̲', '̳', '̹', - '̺', '̻', '̼', 'ͅ', - '͇', '͈', '͉', '͍', - '͎', '͓', '͔', '͕', - '͖', '͙', '͚', '̣' - ], - "mid" : [ - '̕', '̛', '̀', '́', - '͘', '̡', '̢', '̧', - '̨', '̴', '̵', '̶', - '͜', '͝', '͞', - '͟', '͠', '͢', '̸', - '̷', '͡', ' ҉' - ] - }, - all = [].concat(soul.up, soul.down, soul.mid), - zalgo = {}; - - function randomNumber(range) { - var r = Math.floor(Math.random() * range); - return r; - } - - function is_char(character) { - var bool = false; - all.filter(function (i) { - bool = (i === character); - }); - return bool; - } - - - function heComes(text, options) { - var result = '', counts, l; - options = options || {}; - options["up"] = options["up"] || true; - options["mid"] = options["mid"] || true; - options["down"] = options["down"] || true; - options["size"] = options["size"] || "maxi"; - text = text.split(''); - for (l in text) { - if (is_char(l)) { - continue; - } - result = result + text[l]; - counts = {"up" : 0, "down" : 0, "mid" : 0}; - switch (options.size) { - case 'mini': - counts.up = randomNumber(8); - counts.min = randomNumber(2); - counts.down = randomNumber(8); - break; - case 'maxi': - counts.up = randomNumber(16) + 3; - counts.min = randomNumber(4) + 1; - counts.down = randomNumber(64) + 3; - break; - default: - counts.up = randomNumber(8) + 1; - counts.mid = randomNumber(6) / 2; - counts.down = randomNumber(8) + 1; - break; - } - - var arr = ["up", "mid", "down"]; - for (var d in arr) { - var index = arr[d]; - for (var i = 0 ; i <= counts[index]; i++) { - if (options[index]) { - result = result + soul[index][randomNumber(soul[index].length)]; - } - } - } - } - return result; - } - // don't summon him - return heComes(text); -} diff --git a/node_modules/colors/lib/extendStringPrototype.js b/node_modules/colors/lib/extendStringPrototype.js deleted file mode 100644 index b6b5b03..0000000 --- a/node_modules/colors/lib/extendStringPrototype.js +++ /dev/null @@ -1,118 +0,0 @@ -var colors = require('./colors'), - styles = require('./styles'); - -module['exports'] = function () { - - // - // Extends prototype of native string object to allow for "foo".red syntax - // - var addProperty = function (color, func) { - String.prototype.__defineGetter__(color, func); - }; - - var sequencer = function sequencer (map, str) { - return function () { - var exploded = this.split(""), i = 0; - exploded = exploded.map(map); - return exploded.join(""); - } - }; - - var stylize = function stylize (str, style) { - return styles[style].open + str + styles[style].close; - } - - addProperty('strip', function () { - return colors.strip(this); - }); - - addProperty('stripColors', function () { - return colors.strip(this); - }); - - addProperty("trap", function(){ - return colors.trap(this); - }); - - addProperty("zalgo", function(){ - return colors.zalgo(this); - }); - - addProperty("zebra", function(){ - return colors.zebra(this); - }); - - addProperty("rainbow", function(){ - return colors.rainbow(this); - }); - - addProperty("random", function(){ - return colors.random(this); - }); - - addProperty("america", function(){ - return colors.america(this); - }); - - // - // Iterate through all default styles and colors - // - var x = Object.keys(colors.styles); - x.forEach(function (style) { - addProperty(style, function () { - return stylize(this, style); - }); - }); - - function applyTheme(theme) { - // - // Remark: This is a list of methods that exist - // on String that you should not overwrite. - // - var stringPrototypeBlacklist = [ - '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor', - 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt', - 'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring', - 'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight' - ]; - - Object.keys(theme).forEach(function (prop) { - if (stringPrototypeBlacklist.indexOf(prop) !== -1) { - console.log('warn: '.red + ('String.prototype' + prop).magenta + ' is probably something you don\'t want to override. Ignoring style name'); - } - else { - if (typeof(theme[prop]) === 'string') { - colors[prop] = colors[theme[prop]]; - addProperty(prop, function () { - return colors[theme[prop]](this); - }); - } - else { - addProperty(prop, function () { - var ret = this; - for (var t = 0; t < theme[prop].length; t++) { - ret = exports[theme[prop][t]](ret); - } - return ret; - }); - } - } - }); - } - - colors.setTheme = function (theme) { - if (typeof theme === 'string') { - try { - colors.themes[theme] = require(theme); - applyTheme(colors.themes[theme]); - return colors.themes[theme]; - } catch (err) { - console.log(err); - return err; - } - } else { - applyTheme(theme); - } - }; - -}; \ No newline at end of file diff --git a/node_modules/colors/lib/index.js b/node_modules/colors/lib/index.js deleted file mode 100644 index 96d2b84..0000000 --- a/node_modules/colors/lib/index.js +++ /dev/null @@ -1,12 +0,0 @@ -var colors = require('./colors'); -module['exports'] = colors; - -// Remark: By default, colors will add style properties to String.prototype -// -// If you don't wish to extend String.prototype you can do this instead and native String will not be touched -// -// var colors = require('colors/safe); -// colors.red("foo") -// -// -var extendStringPrototype = require('./extendStringPrototype')(); \ No newline at end of file diff --git a/node_modules/colors/lib/maps/america.js b/node_modules/colors/lib/maps/america.js deleted file mode 100644 index a07d832..0000000 --- a/node_modules/colors/lib/maps/america.js +++ /dev/null @@ -1,12 +0,0 @@ -var colors = require('../colors'); - -module['exports'] = (function() { - return function (letter, i, exploded) { - if(letter === " ") return letter; - switch(i%3) { - case 0: return colors.red(letter); - case 1: return colors.white(letter) - case 2: return colors.blue(letter) - } - } -})(); \ No newline at end of file diff --git a/node_modules/colors/lib/maps/rainbow.js b/node_modules/colors/lib/maps/rainbow.js deleted file mode 100644 index a7ce24e..0000000 --- a/node_modules/colors/lib/maps/rainbow.js +++ /dev/null @@ -1,13 +0,0 @@ -var colors = require('../colors'); - -module['exports'] = (function () { - var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta']; //RoY G BiV - return function (letter, i, exploded) { - if (letter === " ") { - return letter; - } else { - return colors[rainbowColors[i++ % rainbowColors.length]](letter); - } - }; -})(); - diff --git a/node_modules/colors/lib/maps/random.js b/node_modules/colors/lib/maps/random.js deleted file mode 100644 index 5cd101f..0000000 --- a/node_modules/colors/lib/maps/random.js +++ /dev/null @@ -1,8 +0,0 @@ -var colors = require('../colors'); - -module['exports'] = (function () { - var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta']; - return function(letter, i, exploded) { - return letter === " " ? letter : colors[available[Math.round(Math.random() * (available.length - 1))]](letter); - }; -})(); \ No newline at end of file diff --git a/node_modules/colors/lib/maps/zebra.js b/node_modules/colors/lib/maps/zebra.js deleted file mode 100644 index bf7dcde..0000000 --- a/node_modules/colors/lib/maps/zebra.js +++ /dev/null @@ -1,5 +0,0 @@ -var colors = require('../colors'); - -module['exports'] = function (letter, i, exploded) { - return i % 2 === 0 ? letter : colors.inverse(letter); -}; \ No newline at end of file diff --git a/node_modules/colors/lib/styles.js b/node_modules/colors/lib/styles.js deleted file mode 100644 index 067d590..0000000 --- a/node_modules/colors/lib/styles.js +++ /dev/null @@ -1,77 +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. - -*/ - -var styles = {}; -module['exports'] = styles; - -var codes = { - reset: [0, 0], - - bold: [1, 22], - dim: [2, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29], - - 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], - grey: [90, 39], - - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - - // legacy styles for colors pre v1.0.0 - blackBG: [40, 49], - redBG: [41, 49], - greenBG: [42, 49], - yellowBG: [43, 49], - blueBG: [44, 49], - magentaBG: [45, 49], - cyanBG: [46, 49], - whiteBG: [47, 49] - -}; - -Object.keys(codes).forEach(function (key) { - var val = codes[key]; - var style = styles[key] = []; - style.open = '\u001b[' + val[0] + 'm'; - style.close = '\u001b[' + val[1] + 'm'; -}); \ No newline at end of file diff --git a/node_modules/colors/lib/system/supports-colors.js b/node_modules/colors/lib/system/supports-colors.js deleted file mode 100644 index 3e008aa..0000000 --- a/node_modules/colors/lib/system/supports-colors.js +++ /dev/null @@ -1,61 +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. - -*/ - -var argv = process.argv; - -module.exports = (function () { - if (argv.indexOf('--no-color') !== -1 || - argv.indexOf('--color=false') !== -1) { - return false; - } - - if (argv.indexOf('--color') !== -1 || - argv.indexOf('--color=true') !== -1 || - argv.indexOf('--color=always') !== -1) { - return true; - } - - if (process.stdout && !process.stdout.isTTY) { - return false; - } - - if (process.platform === 'win32') { - return true; - } - - if ('COLORTERM' in process.env) { - return true; - } - - if (process.env.TERM === 'dumb') { - return false; - } - - if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { - return true; - } - - return false; -})(); \ No newline at end of file diff --git a/node_modules/colors/package.json b/node_modules/colors/package.json deleted file mode 100644 index 2fd991c..0000000 --- a/node_modules/colors/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "colors@1.0.3", - "scope": null, - "escapedName": "colors", - "name": "colors", - "rawSpec": "1.0.3", - "spec": "1.0.3", - "type": "version" - }, - "/Users/jose/Documents/GitHub/About/node_modules/cli-table" - ] - ], - "_from": "colors@1.0.3", - "_id": "colors@1.0.3", - "_inCache": true, - "_location": "/colors", - "_nodeVersion": "0.11.13", - "_npmUser": { - "name": "marak", - "email": "marak.squires@gmail.com" - }, - "_npmVersion": "2.0.2", - "_phantomChildren": {}, - "_requested": { - "raw": "colors@1.0.3", - "scope": null, - "escapedName": "colors", - "name": "colors", - "rawSpec": "1.0.3", - "spec": "1.0.3", - "type": "version" - }, - "_requiredBy": [ - "/cli-table", - "/gulp-dedupe" - ], - "_resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", - "_shasum": "0433f44d809680fdeb60ed260f1b0c262e82a40b", - "_shrinkwrap": null, - "_spec": "colors@1.0.3", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/cli-table", - "author": { - "name": "Marak Squires" - }, - "bugs": { - "url": "https://github.com/Marak/colors.js/issues" - }, - "dependencies": {}, - "description": "get colors in your node.js console", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "0433f44d809680fdeb60ed260f1b0c262e82a40b", - "tarball": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz" - }, - "engines": { - "node": ">=0.1.90" - }, - "gitHead": "e9e6557cc0fa26dba1a20b0d45e92de982f4047c", - "homepage": "https://github.com/Marak/colors.js", - "keywords": [ - "ansi", - "terminal", - "colors" - ], - "license": "MIT", - "main": "./lib/index", - "maintainers": [ - { - "name": "marak", - "email": "marak.squires@gmail.com" - } - ], - "name": "colors", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/Marak/colors.js.git" - }, - "scripts": { - "test": "node tests/basic-test.js && node tests/safe-test.js" - }, - "version": "1.0.3" -} diff --git a/node_modules/colors/safe.js b/node_modules/colors/safe.js deleted file mode 100644 index a6a1f3a..0000000 --- a/node_modules/colors/safe.js +++ /dev/null @@ -1,9 +0,0 @@ -// -// Remark: Requiring this file will use the "safe" colors API which will not touch String.prototype -// -// var colors = require('colors/safe); -// colors.red("foo") -// -// -var colors = require('./lib/colors'); -module['exports'] = colors; \ No newline at end of file diff --git a/node_modules/colors/screenshots/colors.png b/node_modules/colors/screenshots/colors.png deleted file mode 100644 index 7200a62..0000000 Binary files a/node_modules/colors/screenshots/colors.png and /dev/null differ diff --git a/node_modules/colors/tests/basic-test.js b/node_modules/colors/tests/basic-test.js deleted file mode 100644 index fda8af4..0000000 --- a/node_modules/colors/tests/basic-test.js +++ /dev/null @@ -1,50 +0,0 @@ -var assert = require('assert'), - colors = require('../lib/index'); - -var s = 'string'; - -function a(s, code) { - return '\x1B[' + code.toString() + 'm' + s + '\x1B[39m'; -} - -function aE(s, color, code) { - assert.equal(s[color], a(s, code)); - assert.equal(colors[color](s), a(s, code)); - assert.equal(s[color], colors[color](s)); - assert.equal(s[color].strip, s); - assert.equal(s[color].strip, colors.strip(s)); -} - -function h(s, color) { - return '' + s + ''; -} - -var stylesColors = ['white', 'black', 'blue', 'cyan', 'green', 'magenta', 'red', 'yellow']; -var stylesAll = stylesColors.concat(['bold', 'italic', 'underline', 'inverse', 'rainbow']); - -colors.mode = 'console'; -assert.equal(s.bold, '\x1B[1m' + s + '\x1B[22m'); -assert.equal(s.italic, '\x1B[3m' + s + '\x1B[23m'); -assert.equal(s.underline, '\x1B[4m' + s + '\x1B[24m'); -assert.equal(s.strikethrough, '\x1B[9m' + s + '\x1B[29m'); -assert.equal(s.inverse, '\x1B[7m' + s + '\x1B[27m'); - -assert.ok(s.rainbow); - -aE(s, 'white', 37); -aE(s, 'grey', 90); -aE(s, 'black', 30); -aE(s, 'blue', 34); -aE(s, 'cyan', 36); -aE(s, 'green', 32); -aE(s, 'magenta', 35); -aE(s, 'red', 31); -aE(s, 'yellow', 33); - -assert.equal(s, 'string'); - -colors.setTheme({error:'red'}); - -assert.equal(typeof("astring".red),'string'); -assert.equal(typeof("astring".error),'string'); - diff --git a/node_modules/colors/tests/safe-test.js b/node_modules/colors/tests/safe-test.js deleted file mode 100644 index daad4f9..0000000 --- a/node_modules/colors/tests/safe-test.js +++ /dev/null @@ -1,45 +0,0 @@ -var assert = require('assert'), - colors = require('../safe'); - -var s = 'string'; - -function a(s, code) { - return '\x1B[' + code.toString() + 'm' + s + '\x1B[39m'; -} - -function aE(s, color, code) { - assert.equal(colors[color](s), a(s, code)); - assert.equal(colors.strip(s), s); -} - -function h(s, color) { - return '' + s + ''; -} - -var stylesColors = ['white', 'black', 'blue', 'cyan', 'green', 'magenta', 'red', 'yellow']; -var stylesAll = stylesColors.concat(['bold', 'italic', 'underline', 'inverse', 'rainbow']); - -colors.mode = 'console'; -assert.equal(colors.bold(s), '\x1B[1m' + s + '\x1B[22m'); -assert.equal(colors.italic(s), '\x1B[3m' + s + '\x1B[23m'); -assert.equal(colors.underline(s), '\x1B[4m' + s + '\x1B[24m'); -assert.equal(colors.strikethrough(s), '\x1B[9m' + s + '\x1B[29m'); -assert.equal(colors.inverse(s), '\x1B[7m' + s + '\x1B[27m'); - -assert.ok(colors.rainbow); - -aE(s, 'white', 37); -aE(s, 'grey', 90); -aE(s, 'black', 30); -aE(s, 'blue', 34); -aE(s, 'cyan', 36); -aE(s, 'green', 32); -aE(s, 'magenta', 35); -aE(s, 'red', 31); -aE(s, 'yellow', 33); - -assert.equal(s, 'string'); -colors.setTheme({error:'red'}); - -assert.equal(typeof(colors.red("astring")), 'string'); -assert.equal(typeof(colors.error("astring")), 'string'); \ No newline at end of file diff --git a/node_modules/colors/themes/generic-logging.js b/node_modules/colors/themes/generic-logging.js deleted file mode 100644 index 571972c..0000000 --- a/node_modules/colors/themes/generic-logging.js +++ /dev/null @@ -1,12 +0,0 @@ -module['exports'] = { - silly: 'rainbow', - input: 'grey', - verbose: 'cyan', - prompt: 'grey', - info: 'green', - data: 'grey', - help: 'cyan', - warn: 'yellow', - debug: 'blue', - error: 'red' -}; \ No newline at end of file diff --git a/node_modules/combined-stream/License b/node_modules/combined-stream/License deleted file mode 100644 index 4804b7a..0000000 --- a/node_modules/combined-stream/License +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011 Debuggable Limited - -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/combined-stream/Readme.md b/node_modules/combined-stream/Readme.md deleted file mode 100644 index 3a9e025..0000000 --- a/node_modules/combined-stream/Readme.md +++ /dev/null @@ -1,138 +0,0 @@ -# combined-stream - -A stream that emits multiple other streams one after another. - -**NB** Currently `combined-stream` works with streams vesrion 1 only. There is ongoing effort to switch this library to streams version 2. Any help is welcome. :) Meanwhile you can explore other libraries that provide streams2 support with more or less compatability with `combined-stream`. - -- [combined-stream2](https://www.npmjs.com/package/combined-stream2): A drop-in streams2-compatible replacement for the combined-stream module. - -- [multistream](https://www.npmjs.com/package/multistream): A stream that emits multiple other streams one after another. - -## Installation - -``` bash -npm install combined-stream -``` - -## Usage - -Here is a simple example that shows how you can use combined-stream to combine -two files into one: - -``` javascript -var CombinedStream = require('combined-stream'); -var fs = require('fs'); - -var combinedStream = CombinedStream.create(); -combinedStream.append(fs.createReadStream('file1.txt')); -combinedStream.append(fs.createReadStream('file2.txt')); - -combinedStream.pipe(fs.createWriteStream('combined.txt')); -``` - -While the example above works great, it will pause all source streams until -they are needed. If you don't want that to happen, you can set `pauseStreams` -to `false`: - -``` javascript -var CombinedStream = require('combined-stream'); -var fs = require('fs'); - -var combinedStream = CombinedStream.create({pauseStreams: false}); -combinedStream.append(fs.createReadStream('file1.txt')); -combinedStream.append(fs.createReadStream('file2.txt')); - -combinedStream.pipe(fs.createWriteStream('combined.txt')); -``` - -However, what if you don't have all the source streams yet, or you don't want -to allocate the resources (file descriptors, memory, etc.) for them right away? -Well, in that case you can simply provide a callback that supplies the stream -by calling a `next()` function: - -``` javascript -var CombinedStream = require('combined-stream'); -var fs = require('fs'); - -var combinedStream = CombinedStream.create(); -combinedStream.append(function(next) { - next(fs.createReadStream('file1.txt')); -}); -combinedStream.append(function(next) { - next(fs.createReadStream('file2.txt')); -}); - -combinedStream.pipe(fs.createWriteStream('combined.txt')); -``` - -## API - -### CombinedStream.create([options]) - -Returns a new combined stream object. Available options are: - -* `maxDataSize` -* `pauseStreams` - -The effect of those options is described below. - -### combinedStream.pauseStreams = `true` - -Whether to apply back pressure to the underlaying streams. If set to `false`, -the underlaying streams will never be paused. If set to `true`, the -underlaying streams will be paused right after being appended, as well as when -`delayedStream.pipe()` wants to throttle. - -### combinedStream.maxDataSize = `2 * 1024 * 1024` - -The maximum amount of bytes (or characters) to buffer for all source streams. -If this value is exceeded, `combinedStream` emits an `'error'` event. - -### combinedStream.dataSize = `0` - -The amount of bytes (or characters) currently buffered by `combinedStream`. - -### combinedStream.append(stream) - -Appends the given `stream` to the combinedStream object. If `pauseStreams` is -set to `true, this stream will also be paused right away. - -`streams` can also be a function that takes one parameter called `next`. `next` -is a function that must be invoked in order to provide the `next` stream, see -example above. - -Regardless of how the `stream` is appended, combined-stream always attaches an -`'error'` listener to it, so you don't have to do that manually. - -Special case: `stream` can also be a String or Buffer. - -### combinedStream.write(data) - -You should not call this, `combinedStream` takes care of piping the appended -streams into itself for you. - -### combinedStream.resume() - -Causes `combinedStream` to start drain the streams it manages. The function is -idempotent, and also emits a `'resume'` event each time which usually goes to -the stream that is currently being drained. - -### combinedStream.pause(); - -If `combinedStream.pauseStreams` is set to `false`, this does nothing. -Otherwise a `'pause'` event is emitted, this goes to the stream that is -currently being drained, so you can use it to apply back pressure. - -### combinedStream.end(); - -Sets `combinedStream.writable` to false, emits an `'end'` event, and removes -all streams from the queue. - -### combinedStream.destroy(); - -Same as `combinedStream.end()`, except it emits a `'close'` event instead of -`'end'`. - -## License - -combined-stream is licensed under the MIT license. diff --git a/node_modules/combined-stream/lib/combined_stream.js b/node_modules/combined-stream/lib/combined_stream.js deleted file mode 100644 index 6b5c21b..0000000 --- a/node_modules/combined-stream/lib/combined_stream.js +++ /dev/null @@ -1,188 +0,0 @@ -var util = require('util'); -var Stream = require('stream').Stream; -var DelayedStream = require('delayed-stream'); - -module.exports = CombinedStream; -function CombinedStream() { - this.writable = false; - this.readable = true; - this.dataSize = 0; - this.maxDataSize = 2 * 1024 * 1024; - this.pauseStreams = true; - - this._released = false; - this._streams = []; - this._currentStream = null; -} -util.inherits(CombinedStream, Stream); - -CombinedStream.create = function(options) { - var combinedStream = new this(); - - options = options || {}; - for (var option in options) { - combinedStream[option] = options[option]; - } - - return combinedStream; -}; - -CombinedStream.isStreamLike = function(stream) { - return (typeof stream !== 'function') - && (typeof stream !== 'string') - && (typeof stream !== 'boolean') - && (typeof stream !== 'number') - && (!Buffer.isBuffer(stream)); -}; - -CombinedStream.prototype.append = function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - - if (isStreamLike) { - if (!(stream instanceof DelayedStream)) { - var newStream = DelayedStream.create(stream, { - maxDataSize: Infinity, - pauseStream: this.pauseStreams, - }); - stream.on('data', this._checkDataSize.bind(this)); - stream = newStream; - } - - this._handleErrors(stream); - - if (this.pauseStreams) { - stream.pause(); - } - } - - this._streams.push(stream); - return this; -}; - -CombinedStream.prototype.pipe = function(dest, options) { - Stream.prototype.pipe.call(this, dest, options); - this.resume(); - return dest; -}; - -CombinedStream.prototype._getNext = function() { - this._currentStream = null; - var stream = this._streams.shift(); - - - if (typeof stream == 'undefined') { - this.end(); - return; - } - - if (typeof stream !== 'function') { - this._pipeNext(stream); - return; - } - - var getStream = stream; - getStream(function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('data', this._checkDataSize.bind(this)); - this._handleErrors(stream); - } - - this._pipeNext(stream); - }.bind(this)); -}; - -CombinedStream.prototype._pipeNext = function(stream) { - this._currentStream = stream; - - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('end', this._getNext.bind(this)); - stream.pipe(this, {end: false}); - return; - } - - var value = stream; - this.write(value); - this._getNext(); -}; - -CombinedStream.prototype._handleErrors = function(stream) { - var self = this; - stream.on('error', function(err) { - self._emitError(err); - }); -}; - -CombinedStream.prototype.write = function(data) { - this.emit('data', data); -}; - -CombinedStream.prototype.pause = function() { - if (!this.pauseStreams) { - return; - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); - this.emit('pause'); -}; - -CombinedStream.prototype.resume = function() { - if (!this._released) { - this._released = true; - this.writable = true; - this._getNext(); - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); - this.emit('resume'); -}; - -CombinedStream.prototype.end = function() { - this._reset(); - this.emit('end'); -}; - -CombinedStream.prototype.destroy = function() { - this._reset(); - this.emit('close'); -}; - -CombinedStream.prototype._reset = function() { - this.writable = false; - this._streams = []; - this._currentStream = null; -}; - -CombinedStream.prototype._checkDataSize = function() { - this._updateDataSize(); - if (this.dataSize <= this.maxDataSize) { - return; - } - - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; - this._emitError(new Error(message)); -}; - -CombinedStream.prototype._updateDataSize = function() { - this.dataSize = 0; - - var self = this; - this._streams.forEach(function(stream) { - if (!stream.dataSize) { - return; - } - - self.dataSize += stream.dataSize; - }); - - if (this._currentStream && this._currentStream.dataSize) { - this.dataSize += this._currentStream.dataSize; - } -}; - -CombinedStream.prototype._emitError = function(err) { - this._reset(); - this.emit('error', err); -}; diff --git a/node_modules/combined-stream/package.json b/node_modules/combined-stream/package.json deleted file mode 100644 index 590dbd5..0000000 --- a/node_modules/combined-stream/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "combined-stream@~1.0.5", - "scope": null, - "escapedName": "combined-stream", - "name": "combined-stream", - "rawSpec": "~1.0.5", - "spec": ">=1.0.5 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/request" - ] - ], - "_from": "combined-stream@>=1.0.5 <1.1.0", - "_id": "combined-stream@1.0.5", - "_inCache": true, - "_location": "/combined-stream", - "_nodeVersion": "0.12.4", - "_npmUser": { - "name": "alexindigo", - "email": "iam@alexindigo.com" - }, - "_npmVersion": "2.10.1", - "_phantomChildren": {}, - "_requested": { - "raw": "combined-stream@~1.0.5", - "scope": null, - "escapedName": "combined-stream", - "name": "combined-stream", - "rawSpec": "~1.0.5", - "spec": ">=1.0.5 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/form-data", - "/request" - ], - "_resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", - "_shasum": "938370a57b4a51dea2c77c15d5c5fdf895164009", - "_shrinkwrap": null, - "_spec": "combined-stream@~1.0.5", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/request", - "author": { - "name": "Felix Geisendörfer", - "email": "felix@debuggable.com", - "url": "http://debuggable.com/" - }, - "bugs": { - "url": "https://github.com/felixge/node-combined-stream/issues" - }, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "description": "A stream that emits multiple other streams one after another.", - "devDependencies": { - "far": "~0.0.7" - }, - "directories": {}, - "dist": { - "shasum": "938370a57b4a51dea2c77c15d5c5fdf895164009", - "tarball": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz" - }, - "engines": { - "node": ">= 0.8" - }, - "gitHead": "cfc7b815d090a109bcedb5bb0f6713148d55a6b7", - "homepage": "https://github.com/felixge/node-combined-stream", - "license": "MIT", - "main": "./lib/combined_stream", - "maintainers": [ - { - "name": "felixge", - "email": "felix@debuggable.com" - }, - { - "name": "celer", - "email": "dtyree77@gmail.com" - }, - { - "name": "alexindigo", - "email": "iam@alexindigo.com" - }, - { - "name": "apechimp", - "email": "apeherder@gmail.com" - } - ], - "name": "combined-stream", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/felixge/node-combined-stream.git" - }, - "scripts": { - "test": "node test/run.js" - }, - "version": "1.0.5" -} diff --git a/node_modules/commander/History.md b/node_modules/commander/History.md deleted file mode 100644 index 1b47439..0000000 --- a/node_modules/commander/History.md +++ /dev/null @@ -1,261 +0,0 @@ - -2.9.0 / 2015-10-13 -================== - - * Add option `isDefault` to set default subcommand #415 @Qix- - * Add callback to allow filtering or post-processing of help text #434 @djulien - * Fix `undefined` text in help information close #414 #416 @zhiyelee - -2.8.1 / 2015-04-22 -================== - - * Back out `support multiline description` Close #396 #397 - -2.8.0 / 2015-04-07 -================== - - * Add `process.execArg` support, execution args like `--harmony` will be passed to sub-commands #387 @DigitalIO @zhiyelee - * Fix bug in Git-style sub-commands #372 @zhiyelee - * Allow commands to be hidden from help #383 @tonylukasavage - * When git-style sub-commands are in use, yet none are called, display help #382 @claylo - * Add ability to specify arguments syntax for top-level command #258 @rrthomas - * Support multiline descriptions #208 @zxqfox - -2.7.1 / 2015-03-11 -================== - - * Revert #347 (fix collisions when option and first arg have same name) which causes a bug in #367. - -2.7.0 / 2015-03-09 -================== - - * Fix git-style bug when installed globally. Close #335 #349 @zhiyelee - * Fix collisions when option and first arg have same name. Close #346 #347 @tonylukasavage - * Add support for camelCase on `opts()`. Close #353 @nkzawa - * Add node.js 0.12 and io.js to travis.yml - * Allow RegEx options. #337 @palanik - * Fixes exit code when sub-command failing. Close #260 #332 @pirelenito - * git-style `bin` files in $PATH make sense. Close #196 #327 @zhiyelee - -2.6.0 / 2014-12-30 -================== - - * added `Command#allowUnknownOption` method. Close #138 #318 @doozr @zhiyelee - * Add application description to the help msg. Close #112 @dalssoft - -2.5.1 / 2014-12-15 -================== - - * fixed two bugs incurred by variadic arguments. Close #291 @Quentin01 #302 @zhiyelee - -2.5.0 / 2014-10-24 -================== - - * add support for variadic arguments. Closes #277 @whitlockjc - -2.4.0 / 2014-10-17 -================== - - * fixed a bug on executing the coercion function of subcommands option. Closes #270 - * added `Command.prototype.name` to retrieve command name. Closes #264 #266 @tonylukasavage - * added `Command.prototype.opts` to retrieve all the options as a simple object of key-value pairs. Closes #262 @tonylukasavage - * fixed a bug on subcommand name. Closes #248 @jonathandelgado - * fixed function normalize doesn’t honor option terminator. Closes #216 @abbr - -2.3.0 / 2014-07-16 -================== - - * add command alias'. Closes PR #210 - * fix: Typos. Closes #99 - * fix: Unused fs module. Closes #217 - -2.2.0 / 2014-03-29 -================== - - * add passing of previous option value - * fix: support subcommands on windows. Closes #142 - * Now the defaultValue passed as the second argument of the coercion function. - -2.1.0 / 2013-11-21 -================== - - * add: allow cflag style option params, unit test, fixes #174 - -2.0.0 / 2013-07-18 -================== - - * remove input methods (.prompt, .confirm, etc) - -1.3.2 / 2013-07-18 -================== - - * add support for sub-commands to co-exist with the original command - -1.3.1 / 2013-07-18 -================== - - * add quick .runningCommand hack so you can opt-out of other logic when running a sub command - -1.3.0 / 2013-07-09 -================== - - * add EACCES error handling - * fix sub-command --help - -1.2.0 / 2013-06-13 -================== - - * allow "-" hyphen as an option argument - * support for RegExp coercion - -1.1.1 / 2012-11-20 -================== - - * add more sub-command padding - * fix .usage() when args are present. Closes #106 - -1.1.0 / 2012-11-16 -================== - - * add git-style executable subcommand support. Closes #94 - -1.0.5 / 2012-10-09 -================== - - * fix `--name` clobbering. Closes #92 - * fix examples/help. Closes #89 - -1.0.4 / 2012-09-03 -================== - - * add `outputHelp()` method. - -1.0.3 / 2012-08-30 -================== - - * remove invalid .version() defaulting - -1.0.2 / 2012-08-24 -================== - - * add `--foo=bar` support [arv] - * fix password on node 0.8.8. Make backward compatible with 0.6 [focusaurus] - -1.0.1 / 2012-08-03 -================== - - * fix issue #56 - * fix tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (i.e. process.stdin.setRawMode()) - -1.0.0 / 2012-07-05 -================== - - * add support for optional option descriptions - * add defaulting of `.version()` to package.json's version - -0.6.1 / 2012-06-01 -================== - - * Added: append (yes or no) on confirmation - * Added: allow node.js v0.7.x - -0.6.0 / 2012-04-10 -================== - - * Added `.prompt(obj, callback)` support. Closes #49 - * Added default support to .choose(). Closes #41 - * Fixed the choice example - -0.5.1 / 2011-12-20 -================== - - * Fixed `password()` for recent nodes. Closes #36 - -0.5.0 / 2011-12-04 -================== - - * Added sub-command option support [itay] - -0.4.3 / 2011-12-04 -================== - - * Fixed custom help ordering. Closes #32 - -0.4.2 / 2011-11-24 -================== - - * Added travis support - * Fixed: line-buffered input automatically trimmed. Closes #31 - -0.4.1 / 2011-11-18 -================== - - * Removed listening for "close" on --help - -0.4.0 / 2011-11-15 -================== - - * Added support for `--`. Closes #24 - -0.3.3 / 2011-11-14 -================== - - * Fixed: wait for close event when writing help info [Jerry Hamlet] - -0.3.2 / 2011-11-01 -================== - - * Fixed long flag definitions with values [felixge] - -0.3.1 / 2011-10-31 -================== - - * Changed `--version` short flag to `-V` from `-v` - * Changed `.version()` so it's configurable [felixge] - -0.3.0 / 2011-10-31 -================== - - * Added support for long flags only. Closes #18 - -0.2.1 / 2011-10-24 -================== - - * "node": ">= 0.4.x < 0.7.0". Closes #20 - -0.2.0 / 2011-09-26 -================== - - * Allow for defaults that are not just boolean. Default peassignment only occurs for --no-*, optional, and required arguments. [Jim Isaacs] - -0.1.0 / 2011-08-24 -================== - - * Added support for custom `--help` output - -0.0.5 / 2011-08-18 -================== - - * Changed: when the user enters nothing prompt for password again - * Fixed issue with passwords beginning with numbers [NuckChorris] - -0.0.4 / 2011-08-15 -================== - - * Fixed `Commander#args` - -0.0.3 / 2011-08-15 -================== - - * Added default option value support - -0.0.2 / 2011-08-15 -================== - - * Added mask support to `Command#password(str[, mask], fn)` - * Added `Command#password(str, fn)` - -0.0.1 / 2010-01-03 -================== - - * Initial release diff --git a/node_modules/commander/LICENSE b/node_modules/commander/LICENSE deleted file mode 100644 index 10f997a..0000000 --- a/node_modules/commander/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2011 TJ Holowaychuk - -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/commander/Readme.md b/node_modules/commander/Readme.md deleted file mode 100644 index 08b9e4c..0000000 --- a/node_modules/commander/Readme.md +++ /dev/null @@ -1,351 +0,0 @@ -# Commander.js - - -[![Build Status](https://api.travis-ci.org/tj/commander.js.svg)](http://travis-ci.org/tj/commander.js) -[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander) -[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://www.npmjs.org/package/commander) -[![Join the chat at https://gitter.im/tj/commander.js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tj/commander.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - - The complete solution for [node.js](http://nodejs.org) command-line interfaces, inspired by Ruby's [commander](https://github.com/tj/commander). - [API documentation](http://tj.github.com/commander.js/) - - -## Installation - - $ npm install commander - -## Option parsing - - Options with commander are defined with the `.option()` method, also serving as documentation for the options. The example below parses args and options from `process.argv`, leaving remaining args as the `program.args` array which were not consumed by options. - -```js -#!/usr/bin/env node - -/** - * Module dependencies. - */ - -var program = require('commander'); - -program - .version('0.0.1') - .option('-p, --peppers', 'Add peppers') - .option('-P, --pineapple', 'Add pineapple') - .option('-b, --bbq-sauce', 'Add bbq sauce') - .option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble') - .parse(process.argv); - -console.log('you ordered a pizza with:'); -if (program.peppers) console.log(' - peppers'); -if (program.pineapple) console.log(' - pineapple'); -if (program.bbqSauce) console.log(' - bbq'); -console.log(' - %s cheese', program.cheese); -``` - - Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-cased, becoming `program.templateEngine` etc. - - -## Coercion - -```js -function range(val) { - return val.split('..').map(Number); -} - -function list(val) { - return val.split(','); -} - -function collect(val, memo) { - memo.push(val); - return memo; -} - -function increaseVerbosity(v, total) { - return total + 1; -} - -program - .version('0.0.1') - .usage('[options] ') - .option('-i, --integer ', 'An integer argument', parseInt) - .option('-f, --float ', 'A float argument', parseFloat) - .option('-r, --range ..', 'A range', range) - .option('-l, --list ', 'A list', list) - .option('-o, --optional [value]', 'An optional value') - .option('-c, --collect [value]', 'A repeatable value', collect, []) - .option('-v, --verbose', 'A value that can be increased', increaseVerbosity, 0) - .parse(process.argv); - -console.log(' int: %j', program.integer); -console.log(' float: %j', program.float); -console.log(' optional: %j', program.optional); -program.range = program.range || []; -console.log(' range: %j..%j', program.range[0], program.range[1]); -console.log(' list: %j', program.list); -console.log(' collect: %j', program.collect); -console.log(' verbosity: %j', program.verbose); -console.log(' args: %j', program.args); -``` - -## Regular Expression -```js -program - .version('0.0.1') - .option('-s --size ', 'Pizza size', /^(large|medium|small)$/i, 'medium') - .option('-d --drink [drink]', 'Drink', /^(coke|pepsi|izze)$/i) - .parse(process.argv); - -console.log(' size: %j', program.size); -console.log(' drink: %j', program.drink); -``` - -## Variadic arguments - - The last argument of a command can be variadic, and only the last argument. To make an argument variadic you have to - append `...` to the argument name. Here is an example: - -```js -#!/usr/bin/env node - -/** - * Module dependencies. - */ - -var program = require('commander'); - -program - .version('0.0.1') - .command('rmdir [otherDirs...]') - .action(function (dir, otherDirs) { - console.log('rmdir %s', dir); - if (otherDirs) { - otherDirs.forEach(function (oDir) { - console.log('rmdir %s', oDir); - }); - } - }); - -program.parse(process.argv); -``` - - An `Array` is used for the value of a variadic argument. This applies to `program.args` as well as the argument passed - to your action as demonstrated above. - -## Specify the argument syntax - -```js -#!/usr/bin/env node - -var program = require('../'); - -program - .version('0.0.1') - .arguments(' [env]') - .action(function (cmd, env) { - cmdValue = cmd; - envValue = env; - }); - -program.parse(process.argv); - -if (typeof cmdValue === 'undefined') { - console.error('no command given!'); - process.exit(1); -} -console.log('command:', cmdValue); -console.log('environment:', envValue || "no environment given"); -``` - -## Git-style sub-commands - -```js -// file: ./examples/pm -var program = require('..'); - -program - .version('0.0.1') - .command('install [name]', 'install one or more packages') - .command('search [query]', 'search with optional query') - .command('list', 'list packages installed', {isDefault: true}) - .parse(process.argv); -``` - -When `.command()` is invoked with a description argument, no `.action(callback)` should be called to handle sub-commands, otherwise there will be an error. This tells commander that you're going to use separate executables for sub-commands, much like `git(1)` and other popular tools. -The commander will try to search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-command`, like `pm-install`, `pm-search`. - -Options can be passed with the call to `.command()`. Specifying `true` for `opts.noHelp` will remove the option from the generated help output. Specifying `true` for `opts.isDefault` will run the subcommand if no other subcommand is specified. - -If the program is designed to be installed globally, make sure the executables have proper modes, like `755`. - -### `--harmony` - -You can enable `--harmony` option in two ways: -* Use `#! /usr/bin/env node --harmony` in the sub-commands scripts. Note some os version don’t support this pattern. -* Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning sub-command process. - -## Automated --help - - The help information is auto-generated based on the information commander already knows about your program, so the following `--help` info is for free: - -``` - $ ./examples/pizza --help - - Usage: pizza [options] - - An application for pizzas ordering - - Options: - - -h, --help output usage information - -V, --version output the version number - -p, --peppers Add peppers - -P, --pineapple Add pineapple - -b, --bbq Add bbq sauce - -c, --cheese Add the specified type of cheese [marble] - -C, --no-cheese You do not want any cheese - -``` - -## Custom help - - You can display arbitrary `-h, --help` information - by listening for "--help". Commander will automatically - exit once you are done so that the remainder of your program - does not execute causing undesired behaviours, for example - in the following executable "stuff" will not output when - `--help` is used. - -```js -#!/usr/bin/env node - -/** - * Module dependencies. - */ - -var program = require('commander'); - -program - .version('0.0.1') - .option('-f, --foo', 'enable some foo') - .option('-b, --bar', 'enable some bar') - .option('-B, --baz', 'enable some baz'); - -// must be before .parse() since -// node's emit() is immediate - -program.on('--help', function(){ - console.log(' Examples:'); - console.log(''); - console.log(' $ custom-help --help'); - console.log(' $ custom-help -h'); - console.log(''); -}); - -program.parse(process.argv); - -console.log('stuff'); -``` - -Yields the following help output when `node script-name.js -h` or `node script-name.js --help` are run: - -``` - -Usage: custom-help [options] - -Options: - - -h, --help output usage information - -V, --version output the version number - -f, --foo enable some foo - -b, --bar enable some bar - -B, --baz enable some baz - -Examples: - - $ custom-help --help - $ custom-help -h - -``` - -## .outputHelp(cb) - -Output help information without exiting. -Optional callback cb allows post-processing of help text before it is displayed. - -If you want to display help by default (e.g. if no command was provided), you can use something like: - -```js -var program = require('commander'); -var colors = require('colors'); - -program - .version('0.0.1') - .command('getstream [url]', 'get stream URL') - .parse(process.argv); - - if (!process.argv.slice(2).length) { - program.outputHelp(make_red); - } - -function make_red(txt) { - return colors.red(txt); //display the help text in red on the console -} -``` - -## .help(cb) - - Output help information and exit immediately. - Optional callback cb allows post-processing of help text before it is displayed. - -## Examples - -```js -var program = require('commander'); - -program - .version('0.0.1') - .option('-C, --chdir ', 'change the working directory') - .option('-c, --config ', 'set config path. defaults to ./deploy.conf') - .option('-T, --no-tests', 'ignore test hook') - -program - .command('setup [env]') - .description('run setup commands for all envs') - .option("-s, --setup_mode [mode]", "Which setup mode to use") - .action(function(env, options){ - var mode = options.setup_mode || "normal"; - env = env || 'all'; - console.log('setup for %s env(s) with %s mode', env, mode); - }); - -program - .command('exec ') - .alias('ex') - .description('execute the given remote cmd') - .option("-e, --exec_mode ", "Which exec mode to use") - .action(function(cmd, options){ - console.log('exec "%s" using %s mode', cmd, options.exec_mode); - }).on('--help', function() { - console.log(' Examples:'); - console.log(); - console.log(' $ deploy exec sequential'); - console.log(' $ deploy exec async'); - console.log(); - }); - -program - .command('*') - .action(function(env){ - console.log('deploying "%s"', env); - }); - -program.parse(process.argv); -``` - -More Demos can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory. - -## License - -MIT - diff --git a/node_modules/commander/index.js b/node_modules/commander/index.js deleted file mode 100644 index a19c05d..0000000 --- a/node_modules/commander/index.js +++ /dev/null @@ -1,1110 +0,0 @@ -/** - * Module dependencies. - */ - -var EventEmitter = require('events').EventEmitter; -var spawn = require('child_process').spawn; -var readlink = require('graceful-readlink').readlinkSync; -var path = require('path'); -var dirname = path.dirname; -var basename = path.basename; -var fs = require('fs'); - -/** - * Expose the root command. - */ - -exports = module.exports = new Command(); - -/** - * Expose `Command`. - */ - -exports.Command = Command; - -/** - * Expose `Option`. - */ - -exports.Option = Option; - -/** - * Initialize a new `Option` with the given `flags` and `description`. - * - * @param {String} flags - * @param {String} description - * @api public - */ - -function Option(flags, description) { - this.flags = flags; - this.required = ~flags.indexOf('<'); - this.optional = ~flags.indexOf('['); - this.bool = !~flags.indexOf('-no-'); - flags = flags.split(/[ ,|]+/); - if (flags.length > 1 && !/^[[<]/.test(flags[1])) this.short = flags.shift(); - this.long = flags.shift(); - this.description = description || ''; -} - -/** - * Return option name. - * - * @return {String} - * @api private - */ - -Option.prototype.name = function() { - return this.long - .replace('--', '') - .replace('no-', ''); -}; - -/** - * Check if `arg` matches the short or long flag. - * - * @param {String} arg - * @return {Boolean} - * @api private - */ - -Option.prototype.is = function(arg) { - return arg == this.short || arg == this.long; -}; - -/** - * Initialize a new `Command`. - * - * @param {String} name - * @api public - */ - -function Command(name) { - this.commands = []; - this.options = []; - this._execs = {}; - this._allowUnknownOption = false; - this._args = []; - this._name = name || ''; -} - -/** - * Inherit from `EventEmitter.prototype`. - */ - -Command.prototype.__proto__ = EventEmitter.prototype; - -/** - * Add command `name`. - * - * The `.action()` callback is invoked when the - * command `name` is specified via __ARGV__, - * and the remaining arguments are applied to the - * function for access. - * - * When the `name` is "*" an un-matched command - * will be passed as the first arg, followed by - * the rest of __ARGV__ remaining. - * - * Examples: - * - * program - * .version('0.0.1') - * .option('-C, --chdir ', 'change the working directory') - * .option('-c, --config ', 'set config path. defaults to ./deploy.conf') - * .option('-T, --no-tests', 'ignore test hook') - * - * program - * .command('setup') - * .description('run remote setup commands') - * .action(function() { - * console.log('setup'); - * }); - * - * program - * .command('exec ') - * .description('run the given remote command') - * .action(function(cmd) { - * console.log('exec "%s"', cmd); - * }); - * - * program - * .command('teardown [otherDirs...]') - * .description('run teardown commands') - * .action(function(dir, otherDirs) { - * console.log('dir "%s"', dir); - * if (otherDirs) { - * otherDirs.forEach(function (oDir) { - * console.log('dir "%s"', oDir); - * }); - * } - * }); - * - * program - * .command('*') - * .description('deploy the given env') - * .action(function(env) { - * console.log('deploying "%s"', env); - * }); - * - * program.parse(process.argv); - * - * @param {String} name - * @param {String} [desc] for git-style sub-commands - * @return {Command} the new command - * @api public - */ - -Command.prototype.command = function(name, desc, opts) { - opts = opts || {}; - var args = name.split(/ +/); - var cmd = new Command(args.shift()); - - if (desc) { - cmd.description(desc); - this.executables = true; - this._execs[cmd._name] = true; - if (opts.isDefault) this.defaultExecutable = cmd._name; - } - - cmd._noHelp = !!opts.noHelp; - this.commands.push(cmd); - cmd.parseExpectedArgs(args); - cmd.parent = this; - - if (desc) return this; - return cmd; -}; - -/** - * Define argument syntax for the top-level command. - * - * @api public - */ - -Command.prototype.arguments = function (desc) { - return this.parseExpectedArgs(desc.split(/ +/)); -}; - -/** - * Add an implicit `help [cmd]` subcommand - * which invokes `--help` for the given command. - * - * @api private - */ - -Command.prototype.addImplicitHelpCommand = function() { - this.command('help [cmd]', 'display help for [cmd]'); -}; - -/** - * Parse expected `args`. - * - * For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`. - * - * @param {Array} args - * @return {Command} for chaining - * @api public - */ - -Command.prototype.parseExpectedArgs = function(args) { - if (!args.length) return; - var self = this; - args.forEach(function(arg) { - var argDetails = { - required: false, - name: '', - variadic: false - }; - - switch (arg[0]) { - case '<': - argDetails.required = true; - argDetails.name = arg.slice(1, -1); - break; - case '[': - argDetails.name = arg.slice(1, -1); - break; - } - - if (argDetails.name.length > 3 && argDetails.name.slice(-3) === '...') { - argDetails.variadic = true; - argDetails.name = argDetails.name.slice(0, -3); - } - if (argDetails.name) { - self._args.push(argDetails); - } - }); - return this; -}; - -/** - * Register callback `fn` for the command. - * - * Examples: - * - * program - * .command('help') - * .description('display verbose help') - * .action(function() { - * // output help here - * }); - * - * @param {Function} fn - * @return {Command} for chaining - * @api public - */ - -Command.prototype.action = function(fn) { - var self = this; - var listener = function(args, unknown) { - // Parse any so-far unknown options - args = args || []; - unknown = unknown || []; - - var parsed = self.parseOptions(unknown); - - // Output help if necessary - outputHelpIfNecessary(self, parsed.unknown); - - // If there are still any unknown options, then we simply - // die, unless someone asked for help, in which case we give it - // to them, and then we die. - if (parsed.unknown.length > 0) { - self.unknownOption(parsed.unknown[0]); - } - - // Leftover arguments need to be pushed back. Fixes issue #56 - if (parsed.args.length) args = parsed.args.concat(args); - - self._args.forEach(function(arg, i) { - if (arg.required && null == args[i]) { - self.missingArgument(arg.name); - } else if (arg.variadic) { - if (i !== self._args.length - 1) { - self.variadicArgNotLast(arg.name); - } - - args[i] = args.splice(i); - } - }); - - // Always append ourselves to the end of the arguments, - // to make sure we match the number of arguments the user - // expects - if (self._args.length) { - args[self._args.length] = self; - } else { - args.push(self); - } - - fn.apply(self, args); - }; - var parent = this.parent || this; - var name = parent === this ? '*' : this._name; - parent.on(name, listener); - if (this._alias) parent.on(this._alias, listener); - return this; -}; - -/** - * Define option with `flags`, `description` and optional - * coercion `fn`. - * - * The `flags` string should contain both the short and long flags, - * separated by comma, a pipe or space. The following are all valid - * all will output this way when `--help` is used. - * - * "-p, --pepper" - * "-p|--pepper" - * "-p --pepper" - * - * Examples: - * - * // simple boolean defaulting to false - * program.option('-p, --pepper', 'add pepper'); - * - * --pepper - * program.pepper - * // => Boolean - * - * // simple boolean defaulting to true - * program.option('-C, --no-cheese', 'remove cheese'); - * - * program.cheese - * // => true - * - * --no-cheese - * program.cheese - * // => false - * - * // required argument - * program.option('-C, --chdir ', 'change the working directory'); - * - * --chdir /tmp - * program.chdir - * // => "/tmp" - * - * // optional argument - * program.option('-c, --cheese [type]', 'add cheese [marble]'); - * - * @param {String} flags - * @param {String} description - * @param {Function|Mixed} fn or default - * @param {Mixed} defaultValue - * @return {Command} for chaining - * @api public - */ - -Command.prototype.option = function(flags, description, fn, defaultValue) { - var self = this - , option = new Option(flags, description) - , oname = option.name() - , name = camelcase(oname); - - // default as 3rd arg - if (typeof fn != 'function') { - if (fn instanceof RegExp) { - var regex = fn; - fn = function(val, def) { - var m = regex.exec(val); - return m ? m[0] : def; - } - } - else { - defaultValue = fn; - fn = null; - } - } - - // preassign default value only for --no-*, [optional], or - if (false == option.bool || option.optional || option.required) { - // when --no-* we make sure default is true - if (false == option.bool) defaultValue = true; - // preassign only if we have a default - if (undefined !== defaultValue) self[name] = defaultValue; - } - - // register the option - this.options.push(option); - - // when it's passed assign the value - // and conditionally invoke the callback - this.on(oname, function(val) { - // coercion - if (null !== val && fn) val = fn(val, undefined === self[name] - ? defaultValue - : self[name]); - - // unassigned or bool - if ('boolean' == typeof self[name] || 'undefined' == typeof self[name]) { - // if no value, bool true, and we have a default, then use it! - if (null == val) { - self[name] = option.bool - ? defaultValue || true - : false; - } else { - self[name] = val; - } - } else if (null !== val) { - // reassign - self[name] = val; - } - }); - - return this; -}; - -/** - * Allow unknown options on the command line. - * - * @param {Boolean} arg if `true` or omitted, no error will be thrown - * for unknown options. - * @api public - */ -Command.prototype.allowUnknownOption = function(arg) { - this._allowUnknownOption = arguments.length === 0 || arg; - return this; -}; - -/** - * Parse `argv`, settings options and invoking commands when defined. - * - * @param {Array} argv - * @return {Command} for chaining - * @api public - */ - -Command.prototype.parse = function(argv) { - // implicit help - if (this.executables) this.addImplicitHelpCommand(); - - // store raw args - this.rawArgs = argv; - - // guess name - this._name = this._name || basename(argv[1], '.js'); - - // github-style sub-commands with no sub-command - if (this.executables && argv.length < 3 && !this.defaultExecutable) { - // this user needs help - argv.push('--help'); - } - - // process argv - var parsed = this.parseOptions(this.normalize(argv.slice(2))); - var args = this.args = parsed.args; - - var result = this.parseArgs(this.args, parsed.unknown); - - // executable sub-commands - var name = result.args[0]; - if (this._execs[name] && typeof this._execs[name] != "function") { - return this.executeSubCommand(argv, args, parsed.unknown); - } else if (this.defaultExecutable) { - // use the default subcommand - args.unshift(name = this.defaultExecutable); - return this.executeSubCommand(argv, args, parsed.unknown); - } - - return result; -}; - -/** - * Execute a sub-command executable. - * - * @param {Array} argv - * @param {Array} args - * @param {Array} unknown - * @api private - */ - -Command.prototype.executeSubCommand = function(argv, args, unknown) { - args = args.concat(unknown); - - if (!args.length) this.help(); - if ('help' == args[0] && 1 == args.length) this.help(); - - // --help - if ('help' == args[0]) { - args[0] = args[1]; - args[1] = '--help'; - } - - // executable - var f = argv[1]; - // name of the subcommand, link `pm-install` - var bin = basename(f, '.js') + '-' + args[0]; - - - // In case of globally installed, get the base dir where executable - // subcommand file should be located at - var baseDir - , link = readlink(f); - - // when symbolink is relative path - if (link !== f && link.charAt(0) !== '/') { - link = path.join(dirname(f), link) - } - baseDir = dirname(link); - - // prefer local `./` to bin in the $PATH - var localBin = path.join(baseDir, bin); - - // whether bin file is a js script with explicit `.js` extension - var isExplicitJS = false; - if (exists(localBin + '.js')) { - bin = localBin + '.js'; - isExplicitJS = true; - } else if (exists(localBin)) { - bin = localBin; - } - - args = args.slice(1); - - var proc; - if (process.platform !== 'win32') { - if (isExplicitJS) { - args.unshift(localBin); - // add executable arguments to spawn - args = (process.execArgv || []).concat(args); - - proc = spawn('node', args, { stdio: 'inherit', customFds: [0, 1, 2] }); - } else { - proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] }); - } - } else { - args.unshift(localBin); - proc = spawn(process.execPath, args, { stdio: 'inherit'}); - } - - proc.on('close', process.exit.bind(process)); - proc.on('error', function(err) { - if (err.code == "ENOENT") { - console.error('\n %s(1) does not exist, try --help\n', bin); - } else if (err.code == "EACCES") { - console.error('\n %s(1) not executable. try chmod or run with root\n', bin); - } - process.exit(1); - }); - - // Store the reference to the child process - this.runningCommand = proc; -}; - -/** - * Normalize `args`, splitting joined short flags. For example - * the arg "-abc" is equivalent to "-a -b -c". - * This also normalizes equal sign and splits "--abc=def" into "--abc def". - * - * @param {Array} args - * @return {Array} - * @api private - */ - -Command.prototype.normalize = function(args) { - var ret = [] - , arg - , lastOpt - , index; - - for (var i = 0, len = args.length; i < len; ++i) { - arg = args[i]; - if (i > 0) { - lastOpt = this.optionFor(args[i-1]); - } - - if (arg === '--') { - // Honor option terminator - ret = ret.concat(args.slice(i)); - break; - } else if (lastOpt && lastOpt.required) { - ret.push(arg); - } else if (arg.length > 1 && '-' == arg[0] && '-' != arg[1]) { - arg.slice(1).split('').forEach(function(c) { - ret.push('-' + c); - }); - } else if (/^--/.test(arg) && ~(index = arg.indexOf('='))) { - ret.push(arg.slice(0, index), arg.slice(index + 1)); - } else { - ret.push(arg); - } - } - - return ret; -}; - -/** - * Parse command `args`. - * - * When listener(s) are available those - * callbacks are invoked, otherwise the "*" - * event is emitted and those actions are invoked. - * - * @param {Array} args - * @return {Command} for chaining - * @api private - */ - -Command.prototype.parseArgs = function(args, unknown) { - var name; - - if (args.length) { - name = args[0]; - if (this.listeners(name).length) { - this.emit(args.shift(), args, unknown); - } else { - this.emit('*', args); - } - } else { - outputHelpIfNecessary(this, unknown); - - // If there were no args and we have unknown options, - // then they are extraneous and we need to error. - if (unknown.length > 0) { - this.unknownOption(unknown[0]); - } - } - - return this; -}; - -/** - * Return an option matching `arg` if any. - * - * @param {String} arg - * @return {Option} - * @api private - */ - -Command.prototype.optionFor = function(arg) { - for (var i = 0, len = this.options.length; i < len; ++i) { - if (this.options[i].is(arg)) { - return this.options[i]; - } - } -}; - -/** - * Parse options from `argv` returning `argv` - * void of these options. - * - * @param {Array} argv - * @return {Array} - * @api public - */ - -Command.prototype.parseOptions = function(argv) { - var args = [] - , len = argv.length - , literal - , option - , arg; - - var unknownOptions = []; - - // parse options - for (var i = 0; i < len; ++i) { - arg = argv[i]; - - // literal args after -- - if ('--' == arg) { - literal = true; - continue; - } - - if (literal) { - args.push(arg); - continue; - } - - // find matching Option - option = this.optionFor(arg); - - // option is defined - if (option) { - // requires arg - if (option.required) { - arg = argv[++i]; - if (null == arg) return this.optionMissingArgument(option); - this.emit(option.name(), arg); - // optional arg - } else if (option.optional) { - arg = argv[i+1]; - if (null == arg || ('-' == arg[0] && '-' != arg)) { - arg = null; - } else { - ++i; - } - this.emit(option.name(), arg); - // bool - } else { - this.emit(option.name()); - } - continue; - } - - // looks like an option - if (arg.length > 1 && '-' == arg[0]) { - unknownOptions.push(arg); - - // If the next argument looks like it might be - // an argument for this option, we pass it on. - // If it isn't, then it'll simply be ignored - if (argv[i+1] && '-' != argv[i+1][0]) { - unknownOptions.push(argv[++i]); - } - continue; - } - - // arg - args.push(arg); - } - - return { args: args, unknown: unknownOptions }; -}; - -/** - * Return an object containing options as key-value pairs - * - * @return {Object} - * @api public - */ -Command.prototype.opts = function() { - var result = {} - , len = this.options.length; - - for (var i = 0 ; i < len; i++) { - var key = camelcase(this.options[i].name()); - result[key] = key === 'version' ? this._version : this[key]; - } - return result; -}; - -/** - * Argument `name` is missing. - * - * @param {String} name - * @api private - */ - -Command.prototype.missingArgument = function(name) { - console.error(); - console.error(" error: missing required argument `%s'", name); - console.error(); - process.exit(1); -}; - -/** - * `Option` is missing an argument, but received `flag` or nothing. - * - * @param {String} option - * @param {String} flag - * @api private - */ - -Command.prototype.optionMissingArgument = function(option, flag) { - console.error(); - if (flag) { - console.error(" error: option `%s' argument missing, got `%s'", option.flags, flag); - } else { - console.error(" error: option `%s' argument missing", option.flags); - } - console.error(); - process.exit(1); -}; - -/** - * Unknown option `flag`. - * - * @param {String} flag - * @api private - */ - -Command.prototype.unknownOption = function(flag) { - if (this._allowUnknownOption) return; - console.error(); - console.error(" error: unknown option `%s'", flag); - console.error(); - process.exit(1); -}; - -/** - * Variadic argument with `name` is not the last argument as required. - * - * @param {String} name - * @api private - */ - -Command.prototype.variadicArgNotLast = function(name) { - console.error(); - console.error(" error: variadic arguments must be last `%s'", name); - console.error(); - process.exit(1); -}; - -/** - * Set the program version to `str`. - * - * This method auto-registers the "-V, --version" flag - * which will print the version number when passed. - * - * @param {String} str - * @param {String} flags - * @return {Command} for chaining - * @api public - */ - -Command.prototype.version = function(str, flags) { - if (0 == arguments.length) return this._version; - this._version = str; - flags = flags || '-V, --version'; - this.option(flags, 'output the version number'); - this.on('version', function() { - process.stdout.write(str + '\n'); - process.exit(0); - }); - return this; -}; - -/** - * Set the description to `str`. - * - * @param {String} str - * @return {String|Command} - * @api public - */ - -Command.prototype.description = function(str) { - if (0 === arguments.length) return this._description; - this._description = str; - return this; -}; - -/** - * Set an alias for the command - * - * @param {String} alias - * @return {String|Command} - * @api public - */ - -Command.prototype.alias = function(alias) { - if (0 == arguments.length) return this._alias; - this._alias = alias; - return this; -}; - -/** - * Set / get the command usage `str`. - * - * @param {String} str - * @return {String|Command} - * @api public - */ - -Command.prototype.usage = function(str) { - var args = this._args.map(function(arg) { - return humanReadableArgName(arg); - }); - - var usage = '[options]' - + (this.commands.length ? ' [command]' : '') - + (this._args.length ? ' ' + args.join(' ') : ''); - - if (0 == arguments.length) return this._usage || usage; - this._usage = str; - - return this; -}; - -/** - * Get the name of the command - * - * @param {String} name - * @return {String|Command} - * @api public - */ - -Command.prototype.name = function() { - return this._name; -}; - -/** - * Return the largest option length. - * - * @return {Number} - * @api private - */ - -Command.prototype.largestOptionLength = function() { - return this.options.reduce(function(max, option) { - return Math.max(max, option.flags.length); - }, 0); -}; - -/** - * Return help for options. - * - * @return {String} - * @api private - */ - -Command.prototype.optionHelp = function() { - var width = this.largestOptionLength(); - - // Prepend the help information - return [pad('-h, --help', width) + ' ' + 'output usage information'] - .concat(this.options.map(function(option) { - return pad(option.flags, width) + ' ' + option.description; - })) - .join('\n'); -}; - -/** - * Return command help documentation. - * - * @return {String} - * @api private - */ - -Command.prototype.commandHelp = function() { - if (!this.commands.length) return ''; - - var commands = this.commands.filter(function(cmd) { - return !cmd._noHelp; - }).map(function(cmd) { - var args = cmd._args.map(function(arg) { - return humanReadableArgName(arg); - }).join(' '); - - return [ - cmd._name - + (cmd._alias ? '|' + cmd._alias : '') - + (cmd.options.length ? ' [options]' : '') - + ' ' + args - , cmd.description() - ]; - }); - - var width = commands.reduce(function(max, command) { - return Math.max(max, command[0].length); - }, 0); - - return [ - '' - , ' Commands:' - , '' - , commands.map(function(cmd) { - var desc = cmd[1] ? ' ' + cmd[1] : ''; - return pad(cmd[0], width) + desc; - }).join('\n').replace(/^/gm, ' ') - , '' - ].join('\n'); -}; - -/** - * Return program help documentation. - * - * @return {String} - * @api private - */ - -Command.prototype.helpInformation = function() { - var desc = []; - if (this._description) { - desc = [ - ' ' + this._description - , '' - ]; - } - - var cmdName = this._name; - if (this._alias) { - cmdName = cmdName + '|' + this._alias; - } - var usage = [ - '' - ,' Usage: ' + cmdName + ' ' + this.usage() - , '' - ]; - - var cmds = []; - var commandHelp = this.commandHelp(); - if (commandHelp) cmds = [commandHelp]; - - var options = [ - ' Options:' - , '' - , '' + this.optionHelp().replace(/^/gm, ' ') - , '' - , '' - ]; - - return usage - .concat(cmds) - .concat(desc) - .concat(options) - .join('\n'); -}; - -/** - * Output help information for this command - * - * @api public - */ - -Command.prototype.outputHelp = function(cb) { - if (!cb) { - cb = function(passthru) { - return passthru; - } - } - process.stdout.write(cb(this.helpInformation())); - this.emit('--help'); -}; - -/** - * Output help information and exit. - * - * @api public - */ - -Command.prototype.help = function(cb) { - this.outputHelp(cb); - process.exit(); -}; - -/** - * Camel-case the given `flag` - * - * @param {String} flag - * @return {String} - * @api private - */ - -function camelcase(flag) { - return flag.split('-').reduce(function(str, word) { - return str + word[0].toUpperCase() + word.slice(1); - }); -} - -/** - * Pad `str` to `width`. - * - * @param {String} str - * @param {Number} width - * @return {String} - * @api private - */ - -function pad(str, width) { - var len = Math.max(0, width - str.length); - return str + Array(len + 1).join(' '); -} - -/** - * Output help information if necessary - * - * @param {Command} command to output help for - * @param {Array} array of options to search for -h or --help - * @api private - */ - -function outputHelpIfNecessary(cmd, options) { - options = options || []; - for (var i = 0; i < options.length; i++) { - if (options[i] == '--help' || options[i] == '-h') { - cmd.outputHelp(); - process.exit(0); - } - } -} - -/** - * Takes an argument an returns its human readable equivalent for help usage. - * - * @param {Object} arg - * @return {String} - * @api private - */ - -function humanReadableArgName(arg) { - var nameOutput = arg.name + (arg.variadic === true ? '...' : ''); - - return arg.required - ? '<' + nameOutput + '>' - : '[' + nameOutput + ']' -} - -// for versions before node v0.8 when there weren't `fs.existsSync` -function exists(file) { - try { - if (fs.statSync(file).isFile()) { - return true; - } - } catch (e) { - return false; - } -} - diff --git a/node_modules/commander/package.json b/node_modules/commander/package.json deleted file mode 100644 index 05393f2..0000000 --- a/node_modules/commander/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "commander@^2.9.0", - "scope": null, - "escapedName": "commander", - "name": "commander", - "rawSpec": "^2.9.0", - "spec": ">=2.9.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/har-validator" - ] - ], - "_from": "commander@>=2.9.0 <3.0.0", - "_id": "commander@2.9.0", - "_inCache": true, - "_location": "/commander", - "_nodeVersion": "0.12.7", - "_npmUser": { - "name": "zhiyelee", - "email": "zhiyelee@gmail.com" - }, - "_npmVersion": "2.11.3", - "_phantomChildren": {}, - "_requested": { - "raw": "commander@^2.9.0", - "scope": null, - "escapedName": "commander", - "name": "commander", - "rawSpec": "^2.9.0", - "spec": ">=2.9.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/har-validator" - ], - "_resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", - "_shasum": "9c99094176e12240cb22d6c5146098400fe0f7d4", - "_shrinkwrap": null, - "_spec": "commander@^2.9.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/har-validator", - "author": { - "name": "TJ Holowaychuk", - "email": "tj@vision-media.ca" - }, - "bugs": { - "url": "https://github.com/tj/commander.js/issues" - }, - "dependencies": { - "graceful-readlink": ">= 1.0.0" - }, - "description": "the complete solution for node.js command-line programs", - "devDependencies": { - "should": ">= 0.0.1", - "sinon": ">=1.17.1" - }, - "directories": {}, - "dist": { - "shasum": "9c99094176e12240cb22d6c5146098400fe0f7d4", - "tarball": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz" - }, - "engines": { - "node": ">= 0.6.x" - }, - "files": [ - "index.js" - ], - "gitHead": "b2aad7a8471d434593a85306aa73777a526e9f75", - "homepage": "https://github.com/tj/commander.js#readme", - "keywords": [ - "command", - "option", - "parser" - ], - "license": "MIT", - "main": "index", - "maintainers": [ - { - "name": "tjholowaychuk", - "email": "tj@vision-media.ca" - }, - { - "name": "somekittens", - "email": "rkoutnik@gmail.com" - }, - { - "name": "zhiyelee", - "email": "zhiyelee@gmail.com" - } - ], - "name": "commander", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/tj/commander.js.git" - }, - "scripts": { - "test": "make test" - }, - "version": "2.9.0" -} diff --git a/node_modules/concat-map/.travis.yml b/node_modules/concat-map/.travis.yml deleted file mode 100644 index f1d0f13..0000000 --- a/node_modules/concat-map/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - 0.4 - - 0.6 diff --git a/node_modules/concat-map/LICENSE b/node_modules/concat-map/LICENSE deleted file mode 100644 index ee27ba4..0000000 --- a/node_modules/concat-map/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/concat-map/README.markdown b/node_modules/concat-map/README.markdown deleted file mode 100644 index 408f70a..0000000 --- a/node_modules/concat-map/README.markdown +++ /dev/null @@ -1,62 +0,0 @@ -concat-map -========== - -Concatenative mapdashery. - -[![browser support](http://ci.testling.com/substack/node-concat-map.png)](http://ci.testling.com/substack/node-concat-map) - -[![build status](https://secure.travis-ci.org/substack/node-concat-map.png)](http://travis-ci.org/substack/node-concat-map) - -example -======= - -``` js -var concatMap = require('concat-map'); -var xs = [ 1, 2, 3, 4, 5, 6 ]; -var ys = concatMap(xs, function (x) { - return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; -}); -console.dir(ys); -``` - -*** - -``` -[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ] -``` - -methods -======= - -``` js -var concatMap = require('concat-map') -``` - -concatMap(xs, fn) ------------------ - -Return an array of concatenated elements by calling `fn(x, i)` for each element -`x` and each index `i` in the array `xs`. - -When `fn(x, i)` returns an array, its result will be concatenated with the -result array. If `fn(x, i)` returns anything else, that value will be pushed -onto the end of the result array. - -install -======= - -With [npm](http://npmjs.org) do: - -``` -npm install concat-map -``` - -license -======= - -MIT - -notes -===== - -This module was written while sitting high above the ground in a tree. diff --git a/node_modules/concat-map/example/map.js b/node_modules/concat-map/example/map.js deleted file mode 100644 index 3365621..0000000 --- a/node_modules/concat-map/example/map.js +++ /dev/null @@ -1,6 +0,0 @@ -var concatMap = require('../'); -var xs = [ 1, 2, 3, 4, 5, 6 ]; -var ys = concatMap(xs, function (x) { - return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; -}); -console.dir(ys); diff --git a/node_modules/concat-map/index.js b/node_modules/concat-map/index.js deleted file mode 100644 index b29a781..0000000 --- a/node_modules/concat-map/index.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = function (xs, fn) { - var res = []; - for (var i = 0; i < xs.length; i++) { - var x = fn(xs[i], i); - if (isArray(x)) res.push.apply(res, x); - else res.push(x); - } - return res; -}; - -var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]'; -}; diff --git a/node_modules/concat-map/package.json b/node_modules/concat-map/package.json deleted file mode 100644 index 3cd1e1b..0000000 --- a/node_modules/concat-map/package.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "concat-map@0.0.1", - "scope": null, - "escapedName": "concat-map", - "name": "concat-map", - "rawSpec": "0.0.1", - "spec": "0.0.1", - "type": "version" - }, - "/Users/jose/Documents/GitHub/About/node_modules/brace-expansion" - ] - ], - "_from": "concat-map@0.0.1", - "_id": "concat-map@0.0.1", - "_inCache": true, - "_location": "/concat-map", - "_npmUser": { - "name": "substack", - "email": "mail@substack.net" - }, - "_npmVersion": "1.3.21", - "_phantomChildren": {}, - "_requested": { - "raw": "concat-map@0.0.1", - "scope": null, - "escapedName": "concat-map", - "name": "concat-map", - "rawSpec": "0.0.1", - "spec": "0.0.1", - "type": "version" - }, - "_requiredBy": [ - "/brace-expansion" - ], - "_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "_shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b", - "_shrinkwrap": null, - "_spec": "concat-map@0.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/brace-expansion", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bugs": { - "url": "https://github.com/substack/node-concat-map/issues" - }, - "dependencies": {}, - "description": "concatenative mapdashery", - "devDependencies": { - "tape": "~2.4.0" - }, - "directories": { - "example": "example", - "test": "test" - }, - "dist": { - "shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b", - "tarball": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" - }, - "homepage": "https://github.com/substack/node-concat-map", - "keywords": [ - "concat", - "concatMap", - "map", - "functional", - "higher-order" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "substack", - "email": "mail@substack.net" - } - ], - "name": "concat-map", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/substack/node-concat-map.git" - }, - "scripts": { - "test": "tape test/*.js" - }, - "testling": { - "files": "test/*.js", - "browsers": { - "ie": [ - 6, - 7, - 8, - 9 - ], - "ff": [ - 3.5, - 10, - 15 - ], - "chrome": [ - 10, - 22 - ], - "safari": [ - 5.1 - ], - "opera": [ - 12 - ] - } - }, - "version": "0.0.1" -} diff --git a/node_modules/concat-map/test/map.js b/node_modules/concat-map/test/map.js deleted file mode 100644 index fdbd702..0000000 --- a/node_modules/concat-map/test/map.js +++ /dev/null @@ -1,39 +0,0 @@ -var concatMap = require('../'); -var test = require('tape'); - -test('empty or not', function (t) { - var xs = [ 1, 2, 3, 4, 5, 6 ]; - var ixes = []; - var ys = concatMap(xs, function (x, ix) { - ixes.push(ix); - return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; - }); - t.same(ys, [ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]); - t.same(ixes, [ 0, 1, 2, 3, 4, 5 ]); - t.end(); -}); - -test('always something', function (t) { - var xs = [ 'a', 'b', 'c', 'd' ]; - var ys = concatMap(xs, function (x) { - return x === 'b' ? [ 'B', 'B', 'B' ] : [ x ]; - }); - t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]); - t.end(); -}); - -test('scalars', function (t) { - var xs = [ 'a', 'b', 'c', 'd' ]; - var ys = concatMap(xs, function (x) { - return x === 'b' ? [ 'B', 'B', 'B' ] : x; - }); - t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]); - t.end(); -}); - -test('undefs', function (t) { - var xs = [ 'a', 'b', 'c', 'd' ]; - var ys = concatMap(xs, function () {}); - t.same(ys, [ undefined, undefined, undefined, undefined ]); - t.end(); -}); diff --git a/node_modules/concat-with-sourcemaps/LICENSE.md b/node_modules/concat-with-sourcemaps/LICENSE.md deleted file mode 100644 index 58350fd..0000000 --- a/node_modules/concat-with-sourcemaps/LICENSE.md +++ /dev/null @@ -1,13 +0,0 @@ -Copyright (c) 2014, Florian Reiterer - -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/concat-with-sourcemaps/README.md b/node_modules/concat-with-sourcemaps/README.md deleted file mode 100644 index 3cba286..0000000 --- a/node_modules/concat-with-sourcemaps/README.md +++ /dev/null @@ -1,45 +0,0 @@ -## Concat with source maps [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] - -NPM module for concatenating files and generating source maps. - -### Usage example -```js -var concat = new Concat(true, 'all.js', '\n'); -concat.add(null, "// (c) John Doe"); -concat.add('file1.js', file1Content); -concat.add('file2.js', file2Content, file2SourceMap); - -var concatenatedContent = concat.content; -var sourceMapForContent = concat.sourceMap; -``` - -### API - -#### new Concat(generateSourceMap, outFileName, separator) -Initialize a new concat object. - -Parameters: -- generateSourceMap: whether or not to generate a source map (default: false) -- outFileName: the file name/path of the output file (for the source map) -- separator: the string that should separate files (default: no separator) - -#### concat.add(fileName, content, sourceMap) -Add a file to the output file. - -Parameters: -- fileName: file name of the input file (can be null for content without a file reference, e.g. a license comment) -- content: content (Buffer or string) of the input file -- sourceMap: optional source map of the input file (string). Will be merged into the output source map. - -#### concat.content -The resulting concatenated file content (Buffer). - -#### concat.sourceMap -The resulting source map of the concatenated files (string). - -[npm-image]: https://img.shields.io/npm/v/concat-with-sourcemaps.svg -[npm-url]: https://www.npmjs.com/package/concat-with-sourcemaps -[travis-image]: https://img.shields.io/travis/floridoo/concat-with-sourcemaps.svg -[travis-url]: https://travis-ci.org/floridoo/concat-with-sourcemaps -[coveralls-image]: https://img.shields.io/coveralls/floridoo/concat-with-sourcemaps.svg -[coveralls-url]: https://coveralls.io/r/floridoo/concat-with-sourcemaps?branch=master diff --git a/node_modules/concat-with-sourcemaps/index.js b/node_modules/concat-with-sourcemaps/index.js deleted file mode 100644 index a46fa23..0000000 --- a/node_modules/concat-with-sourcemaps/index.js +++ /dev/null @@ -1,121 +0,0 @@ -'use strict'; -var SourceMapGenerator = require('source-map').SourceMapGenerator; -var SourceMapConsumer = require('source-map').SourceMapConsumer; - -function unixStylePath(filePath) { - return filePath.replace(/\\/g, '/'); -} - -function Concat(generateSourceMap, fileName, separator) { - this.lineOffset = 0; - this.columnOffset = 0; - this.sourceMapping = generateSourceMap; - this.contentParts = []; - - if (separator === undefined) { - this.separator = new Buffer(0); - } else { - this.separator = new Buffer(separator); - } - - if (this.sourceMapping) { - this._sourceMap = new SourceMapGenerator({file: unixStylePath(fileName)}); - this.separatorLineOffset = 0; - this.separatorColumnOffset = 0; - var separatorString = this.separator.toString(); - for (var i = 0; i < separatorString.length; i++) { - this.separatorColumnOffset++; - if (separatorString[i] === '\n') { - this.separatorLineOffset++; - this.separatorColumnOffset = 0; - } - } - } -} - -Concat.prototype.add = function(filePath, content, sourceMap) { - filePath = filePath && unixStylePath(filePath); - - if (!Buffer.isBuffer(content)) { - content = new Buffer(content); - } - - if (this.contentParts.length !== 0) { - this.contentParts.push(this.separator); - } - this.contentParts.push(content); - - if (this.sourceMapping) { - var contentString = content.toString(); - var lines = contentString.split('\n').length; - - if (Object.prototype.toString.call(sourceMap) === '[object String]') - sourceMap = JSON.parse(sourceMap); - - if (sourceMap && sourceMap.mappings && sourceMap.mappings.length > 0) { - var upstreamSM = new SourceMapConsumer(sourceMap); - var _this = this; - upstreamSM.eachMapping(function(mapping) { - if (mapping.source) { - _this._sourceMap.addMapping({ - generated: { - line: _this.lineOffset + mapping.generatedLine, - column: (mapping.generatedLine === 1 ? _this.columnOffset : 0) + mapping.generatedColumn - }, - original: { - line: mapping.originalLine, - column: mapping.originalColumn - }, - source: mapping.source, - name: mapping.name - }); - } - }); - if (upstreamSM.sourcesContent) { - upstreamSM.sourcesContent.forEach(function(sourceContent, i) { - _this._sourceMap.setSourceContent(upstreamSM.sources[i], sourceContent); - }); - } - } else { - if (sourceMap && sourceMap.sources && sourceMap.sources.length > 0) - filePath = sourceMap.sources[0]; - if (filePath) { - for (var i = 1; i <= lines; i++) { - this._sourceMap.addMapping({ - generated: { - line: this.lineOffset + i, - column: (i === 1 ? this.columnOffset : 0) - }, - original: { - line: i, - column: 0 - }, - source: filePath - }); - } - if (sourceMap && sourceMap.sourcesContent) - this._sourceMap.setSourceContent(filePath, sourceMap.sourcesContent[0]); - } - } - if (lines > 1) - this.columnOffset = 0; - if (this.separatorLineOffset === 0) - this.columnOffset += contentString.length - Math.max(0, contentString.lastIndexOf('\n')+1); - this.columnOffset += this.separatorColumnOffset; - this.lineOffset += lines - 1 + this.separatorLineOffset; - } -}; - -Object.defineProperty(Concat.prototype, 'content', { - get: function content() { - return Buffer.concat(this.contentParts); - } -}); - -Object.defineProperty(Concat.prototype, 'sourceMap', { - get: function sourceMap() { - return this._sourceMap ? this._sourceMap.toString() : undefined; - } -}); - -module.exports = Concat; diff --git a/node_modules/concat-with-sourcemaps/package.json b/node_modules/concat-with-sourcemaps/package.json deleted file mode 100644 index b66575c..0000000 --- a/node_modules/concat-with-sourcemaps/package.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "concat-with-sourcemaps@^1.0.0", - "scope": null, - "escapedName": "concat-with-sourcemaps", - "name": "concat-with-sourcemaps", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat" - ] - ], - "_from": "concat-with-sourcemaps@>=1.0.0 <2.0.0", - "_id": "concat-with-sourcemaps@1.0.4", - "_inCache": true, - "_location": "/concat-with-sourcemaps", - "_nodeVersion": "4.1.1", - "_npmUser": { - "name": "floridoo", - "email": "florian.reiterer@gmail.com" - }, - "_npmVersion": "3.3.4", - "_phantomChildren": {}, - "_requested": { - "raw": "concat-with-sourcemaps@^1.0.0", - "scope": null, - "escapedName": "concat-with-sourcemaps", - "name": "concat-with-sourcemaps", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat", - "/gulp-header" - ], - "_resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz", - "_shasum": "f55b3be2aeb47601b10a2d5259ccfb70fd2f1dd6", - "_shrinkwrap": null, - "_spec": "concat-with-sourcemaps@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat", - "author": { - "name": "Florian Reiterer", - "email": "me@florianreiterer.com" - }, - "bugs": { - "url": "https://github.com/floridoo/concat-with-sourcemaps/issues" - }, - "dependencies": { - "source-map": "^0.5.1" - }, - "description": "Concatenate file contents with a custom separator and generate a source map", - "devDependencies": { - "coveralls": "^2.11.4", - "faucet": "0.0.1", - "istanbul": "^0.3.21", - "jshint": "^2.8.0", - "tape": "^4.2.0" - }, - "directories": {}, - "dist": { - "shasum": "f55b3be2aeb47601b10a2d5259ccfb70fd2f1dd6", - "tarball": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.0.4.tgz" - }, - "files": [ - "index.js", - "package.json", - "README.md", - "LICENSE.md" - ], - "gitHead": "73d8e16c80e6e376abe6dbf59c81ebb4d28f8427", - "homepage": "http://github.com/floridoo/concat-with-sourcemaps", - "keywords": [ - "concat", - "source map" - ], - "license": "ISC", - "main": "index.js", - "maintainers": [ - { - "name": "floridoo", - "email": "florian.reiterer@gmail.com" - } - ], - "name": "concat-with-sourcemaps", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/floridoo/concat-with-sourcemaps.git" - }, - "scripts": { - "cover": "istanbul cover --dir reports/coverage tape test/*.js", - "coveralls": "istanbul cover tape test/*.js --report lcovonly && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", - "tap": "tape test/*.js", - "test": "jshint *.js test/*.js && faucet test/*.js" - }, - "version": "1.0.4" -} diff --git a/node_modules/config-chain/.npmignore b/node_modules/config-chain/.npmignore deleted file mode 100644 index 13abef4..0000000 --- a/node_modules/config-chain/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -node_modules/* -npm_debug.log diff --git a/node_modules/config-chain/LICENCE b/node_modules/config-chain/LICENCE deleted file mode 100644 index 171dd97..0000000 --- a/node_modules/config-chain/LICENCE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2011 Dominic Tarr - -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. \ No newline at end of file diff --git a/node_modules/config-chain/index.js b/node_modules/config-chain/index.js deleted file mode 100755 index 0ef3a91..0000000 --- a/node_modules/config-chain/index.js +++ /dev/null @@ -1,282 +0,0 @@ -var ProtoList = require('proto-list') - , path = require('path') - , fs = require('fs') - , ini = require('ini') - , EE = require('events').EventEmitter - , url = require('url') - , http = require('http') - -var exports = module.exports = function () { - var args = [].slice.call(arguments) - , conf = new ConfigChain() - - while(args.length) { - var a = args.shift() - if(a) conf.push - ( 'string' === typeof a - ? json(a) - : a ) - } - - return conf -} - -//recursively find a file... - -var find = exports.find = function () { - var rel = path.join.apply(null, [].slice.call(arguments)) - - function find(start, rel) { - var file = path.join(start, rel) - try { - fs.statSync(file) - return file - } catch (err) { - if(path.dirname(start) !== start) // root - return find(path.dirname(start), rel) - } - } - return find(__dirname, rel) -} - -var parse = exports.parse = function (content, file, type) { - content = '' + content - // if we don't know what it is, try json and fall back to ini - // if we know what it is, then it must be that. - if (!type) { - try { return JSON.parse(content) } - catch (er) { return ini.parse(content) } - } else if (type === 'json') { - if (this.emit) { - try { return JSON.parse(content) } - catch (er) { this.emit('error', er) } - } else { - return JSON.parse(content) - } - } else { - return ini.parse(content) - } -} - -var json = exports.json = function () { - var args = [].slice.call(arguments).filter(function (arg) { return arg != null }) - var file = path.join.apply(null, args) - var content - try { - content = fs.readFileSync(file,'utf-8') - } catch (err) { - return - } - return parse(content, file, 'json') -} - -var env = exports.env = function (prefix, env) { - env = env || process.env - var obj = {} - var l = prefix.length - for(var k in env) { - if(k.indexOf(prefix) === 0) - obj[k.substring(l)] = env[k] - } - - return obj -} - -exports.ConfigChain = ConfigChain -function ConfigChain () { - EE.apply(this) - ProtoList.apply(this, arguments) - this._awaiting = 0 - this._saving = 0 - this.sources = {} -} - -// multi-inheritance-ish -var extras = { - constructor: { value: ConfigChain } -} -Object.keys(EE.prototype).forEach(function (k) { - extras[k] = Object.getOwnPropertyDescriptor(EE.prototype, k) -}) -ConfigChain.prototype = Object.create(ProtoList.prototype, extras) - -ConfigChain.prototype.del = function (key, where) { - // if not specified where, then delete from the whole chain, scorched - // earth style - if (where) { - var target = this.sources[where] - target = target && target.data - if (!target) { - return this.emit('error', new Error('not found '+where)) - } - delete target[key] - } else { - for (var i = 0, l = this.list.length; i < l; i ++) { - delete this.list[i][key] - } - } - return this -} - -ConfigChain.prototype.set = function (key, value, where) { - var target - - if (where) { - target = this.sources[where] - target = target && target.data - if (!target) { - return this.emit('error', new Error('not found '+where)) - } - } else { - target = this.list[0] - if (!target) { - return this.emit('error', new Error('cannot set, no confs!')) - } - } - target[key] = value - return this -} - -ConfigChain.prototype.get = function (key, where) { - if (where) { - where = this.sources[where] - if (where) where = where.data - if (where && Object.hasOwnProperty.call(where, key)) return where[key] - return undefined - } - return this.list[0][key] -} - -ConfigChain.prototype.save = function (where, type, cb) { - if (typeof type === 'function') cb = type, type = null - var target = this.sources[where] - if (!target || !(target.path || target.source) || !target.data) { - // TODO: maybe save() to a url target could be a PUT or something? - // would be easy to swap out with a reddis type thing, too - return this.emit('error', new Error('bad save target: '+where)) - } - - if (target.source) { - var pref = target.prefix || '' - Object.keys(target.data).forEach(function (k) { - target.source[pref + k] = target.data[k] - }) - return this - } - - var type = type || target.type - var data = target.data - if (target.type === 'json') { - data = JSON.stringify(data) - } else { - data = ini.stringify(data) - } - - this._saving ++ - fs.writeFile(target.path, data, 'utf8', function (er) { - this._saving -- - if (er) { - if (cb) return cb(er) - else return this.emit('error', er) - } - if (this._saving === 0) { - if (cb) cb() - this.emit('save') - } - }.bind(this)) - return this -} - -ConfigChain.prototype.addFile = function (file, type, name) { - name = name || file - var marker = {__source__:name} - this.sources[name] = { path: file, type: type } - this.push(marker) - this._await() - fs.readFile(file, 'utf8', function (er, data) { - if (er) this.emit('error', er) - this.addString(data, file, type, marker) - }.bind(this)) - return this -} - -ConfigChain.prototype.addEnv = function (prefix, env, name) { - name = name || 'env' - var data = exports.env(prefix, env) - this.sources[name] = { data: data, source: env, prefix: prefix } - return this.add(data, name) -} - -ConfigChain.prototype.addUrl = function (req, type, name) { - this._await() - var href = url.format(req) - name = name || href - var marker = {__source__:name} - this.sources[name] = { href: href, type: type } - this.push(marker) - http.request(req, function (res) { - var c = [] - var ct = res.headers['content-type'] - if (!type) { - type = ct.indexOf('json') !== -1 ? 'json' - : ct.indexOf('ini') !== -1 ? 'ini' - : href.match(/\.json$/) ? 'json' - : href.match(/\.ini$/) ? 'ini' - : null - marker.type = type - } - - res.on('data', c.push.bind(c)) - .on('end', function () { - this.addString(Buffer.concat(c), href, type, marker) - }.bind(this)) - .on('error', this.emit.bind(this, 'error')) - - }.bind(this)) - .on('error', this.emit.bind(this, 'error')) - .end() - - return this -} - -ConfigChain.prototype.addString = function (data, file, type, marker) { - data = this.parse(data, file, type) - this.add(data, marker) - return this -} - -ConfigChain.prototype.add = function (data, marker) { - if (marker && typeof marker === 'object') { - var i = this.list.indexOf(marker) - if (i === -1) { - return this.emit('error', new Error('bad marker')) - } - this.splice(i, 1, data) - marker = marker.__source__ - this.sources[marker] = this.sources[marker] || {} - this.sources[marker].data = data - // we were waiting for this. maybe emit 'load' - this._resolve() - } else { - if (typeof marker === 'string') { - this.sources[marker] = this.sources[marker] || {} - this.sources[marker].data = data - } - // trigger the load event if nothing was already going to do so. - this._await() - this.push(data) - process.nextTick(this._resolve.bind(this)) - } - return this -} - -ConfigChain.prototype.parse = exports.parse - -ConfigChain.prototype._await = function () { - this._awaiting++ -} - -ConfigChain.prototype._resolve = function () { - this._awaiting-- - if (this._awaiting === 0) this.emit('load', this) -} diff --git a/node_modules/config-chain/package.json b/node_modules/config-chain/package.json deleted file mode 100644 index c7f046f..0000000 --- a/node_modules/config-chain/package.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "config-chain@~1.1.5", - "scope": null, - "escapedName": "config-chain", - "name": "config-chain", - "rawSpec": "~1.1.5", - "spec": ">=1.1.5 <1.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/js-beautify" - ] - ], - "_from": "config-chain@>=1.1.5 <1.2.0", - "_id": "config-chain@1.1.11", - "_inCache": true, - "_location": "/config-chain", - "_nodeVersion": "6.4.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/config-chain-1.1.11.tgz_1475546049061_0.23554040002636611" - }, - "_npmUser": { - "name": "dominictarr", - "email": "dominic.tarr@gmail.com" - }, - "_npmVersion": "3.9.3", - "_phantomChildren": {}, - "_requested": { - "raw": "config-chain@~1.1.5", - "scope": null, - "escapedName": "config-chain", - "name": "config-chain", - "rawSpec": "~1.1.5", - "spec": ">=1.1.5 <1.2.0", - "type": "range" - }, - "_requiredBy": [ - "/js-beautify" - ], - "_resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.11.tgz", - "_shasum": "aba09747dfbe4c3e70e766a6e41586e1859fc6f2", - "_shrinkwrap": null, - "_spec": "config-chain@~1.1.5", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/js-beautify", - "author": { - "name": "Dominic Tarr", - "email": "dominic.tarr@gmail.com", - "url": "http://dominictarr.com" - }, - "bugs": { - "url": "https://github.com/dominictarr/config-chain/issues" - }, - "dependencies": { - "ini": "^1.3.4", - "proto-list": "~1.2.1" - }, - "description": "HANDLE CONFIGURATION ONCE AND FOR ALL", - "devDependencies": { - "tap": "0.3.0" - }, - "directories": {}, - "dist": { - "shasum": "aba09747dfbe4c3e70e766a6e41586e1859fc6f2", - "tarball": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.11.tgz" - }, - "gitHead": "0976c33f2f126a060a289284bb031a5f7aeba329", - "homepage": "http://github.com/dominictarr/config-chain", - "licenses": [ - { - "type": "MIT", - "url": "https://raw.githubusercontent.com/dominictarr/config-chain/master/LICENCE" - } - ], - "maintainers": [ - { - "name": "dominictarr", - "email": "dominic.tarr@gmail.com" - }, - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "config-chain", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/dominictarr/config-chain.git" - }, - "scripts": { - "test": "tap test/" - }, - "version": "1.1.11" -} diff --git a/node_modules/config-chain/readme.markdown b/node_modules/config-chain/readme.markdown deleted file mode 100644 index a8d2637..0000000 --- a/node_modules/config-chain/readme.markdown +++ /dev/null @@ -1,237 +0,0 @@ -#config-chain - -USE THIS MODULE TO LOAD ALL YOUR CONFIGURATIONS - -## NOTE: Feature Freeze - -[![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges) - -This module is frozen. - -In general, I'd recommend using [rc](https://github.com/dominictarr/rc) instead, -but as [npm](https://github.com/npmjs/npm) depends on this, it cannot be changed. - -``` js - - //npm install config-chain - - var cc = require('config-chain') - , opts = require('optimist').argv //ALWAYS USE OPTIMIST FOR COMMAND LINE OPTIONS. - , env = opts.env || process.env.YOUR_APP_ENV || 'dev' //SET YOUR ENV LIKE THIS. - - // EACH ARG TO CONFIGURATOR IS LOADED INTO CONFIGURATION CHAIN - // EARLIER ITEMS OVERIDE LATER ITEMS - // PUTS COMMAND LINE OPTS FIRST, AND DEFAULTS LAST! - - //strings are interpereted as filenames. - //will be loaded synchronously - - var conf = - cc( - //OVERRIDE SETTINGS WITH COMMAND LINE OPTS - opts, - - //ENV VARS IF PREFIXED WITH 'myApp_' - - cc.env('myApp_'), //myApp_foo = 'like this' - - //FILE NAMED BY ENV - path.join(__dirname, 'config.' + env + '.json'), - - //IF `env` is PRODUCTION - env === 'prod' - ? path.join(__dirname, 'special.json') //load a special file - : null //NULL IS IGNORED! - - //SUBDIR FOR ENV CONFIG - path.join(__dirname, 'config', env, 'config.json'), - - //SEARCH PARENT DIRECTORIES FROM CURRENT DIR FOR FILE - cc.find('config.json'), - - //PUT DEFAULTS LAST - { - host: 'localhost' - port: 8000 - }) - - var host = conf.get('host') - - // or - - var host = conf.store.host - -``` - -FINALLY, EASY FLEXIBLE CONFIGURATIONS! - -##see also: [proto-list](https://github.com/isaacs/proto-list/) - -WHATS THAT YOU SAY? - -YOU WANT A "CLASS" SO THAT YOU CAN DO CRAYCRAY JQUERY CRAPS? - -EXTEND WITH YOUR OWN FUNCTIONALTY!? - -## CONFIGCHAIN LIVES TO SERVE ONLY YOU! - -```javascript -var cc = require('config-chain') - -// all the stuff you did before -var config = cc({ - some: 'object' - }, - cc.find('config.json'), - cc.env('myApp_') - ) - // CONFIGS AS A SERVICE, aka "CaaS", aka EVERY DEVOPS DREAM OMG! - .addUrl('http://configurator:1234/my-configs') - // ASYNC FTW! - .addFile('/path/to/file.json') - - // OBJECTS ARE OK TOO, they're SYNC but they still ORDER RIGHT - // BECAUSE PROMISES ARE USED BUT NO, NOT *THOSE* PROMISES, JUST - // ACTUAL PROMISES LIKE YOU MAKE TO YOUR MOM, KEPT OUT OF LOVE - .add({ another: 'object' }) - - // DIE A THOUSAND DEATHS IF THIS EVER HAPPENS!! - .on('error', function (er) { - // IF ONLY THERE WAS SOMETHIGN HARDER THAN THROW - // MY SORROW COULD BE ADEQUATELY EXPRESSED. /o\ - throw er - }) - - // THROW A PARTY IN YOUR FACE WHEN ITS ALL LOADED!! - .on('load', function (config) { - console.awesome('HOLY SHIT!') - }) -``` - -# BORING API DOCS - -## cc(...args) - -MAKE A CHAIN AND ADD ALL THE ARGS. - -If the arg is a STRING, then it shall be a JSON FILENAME. - -SYNC I/O! - -RETURN THE CHAIN! - -## cc.json(...args) - -Join the args INTO A JSON FILENAME! - -SYNC I/O! - -## cc.find(relativePath) - -SEEK the RELATIVE PATH by climbing the TREE OF DIRECTORIES. - -RETURN THE FOUND PATH! - -SYNC I/O! - -## cc.parse(content, file, type) - -Parse the content string, and guess the type from either the -specified type or the filename. - -RETURN THE RESULTING OBJECT! - -NO I/O! - -## cc.env(prefix, env=process.env) - -Get all the keys on the provided env object (or process.env) which are -prefixed by the specified prefix, and put the values on a new object. - -RETURN THE RESULTING OBJECT! - -NO I/O! - -## cc.ConfigChain() - -The ConfigChain class for CRAY CRAY JQUERY STYLE METHOD CHAINING! - -One of these is returned by the main exported function, as well. - -It inherits (prototypically) from -[ProtoList](https://github.com/isaacs/proto-list/), and also inherits -(parasitically) from -[EventEmitter](http://nodejs.org/api/events.html#events_class_events_eventemitter) - -It has all the methods from both, and except where noted, they are -unchanged. - -### LET IT BE KNOWN THAT chain IS AN INSTANCE OF ConfigChain. - -## chain.sources - -A list of all the places where it got stuff. The keys are the names -passed to addFile or addUrl etc, and the value is an object with some -info about the data source. - -## chain.addFile(filename, type, [name=filename]) - -Filename is the name of the file. Name is an arbitrary string to be -used later if you desire. Type is either 'ini' or 'json', and will -try to guess intelligently if omitted. - -Loaded files can be saved later. - -## chain.addUrl(url, type, [name=url]) - -Same as the filename thing, but with a url. - -Can't be saved later. - -## chain.addEnv(prefix, env, [name='env']) - -Add all the keys from the env object that start with the prefix. - -## chain.addString(data, file, type, [name]) - -Parse the string and add it to the set. (Mainly used internally.) - -## chain.add(object, [name]) - -Add the object to the set. - -## chain.root {Object} - -The root from which all the other config objects in the set descend -prototypically. - -Put your defaults here. - -## chain.set(key, value, name) - -Set the key to the value on the named config object. If name is -unset, then set it on the first config object in the set. (That is, -the one with the highest priority, which was added first.) - -## chain.get(key, [name]) - -Get the key from the named config object explicitly, or from the -resolved configs if not specified. - -## chain.save(name, type) - -Write the named config object back to its origin. - -Currently only supported for env and file config types. - -For files, encode the data according to the type. - -## chain.on('save', function () {}) - -When one or more files are saved, emits `save` event when they're all -saved. - -## chain.on('load', function (chain) {}) - -When the config chain has loaded all the specified files and urls and -such, the 'load' event fires. diff --git a/node_modules/config-chain/test/broken.js b/node_modules/config-chain/test/broken.js deleted file mode 100644 index 101a3e4..0000000 --- a/node_modules/config-chain/test/broken.js +++ /dev/null @@ -1,10 +0,0 @@ - - -var cc = require('..') -var assert = require('assert') - - -//throw on invalid json -assert.throws(function () { - cc(__dirname + '/broken.json') -}) diff --git a/node_modules/config-chain/test/broken.json b/node_modules/config-chain/test/broken.json deleted file mode 100644 index 2107ac1..0000000 --- a/node_modules/config-chain/test/broken.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "config-chain", - "version": "0.3.0", - "description": "HANDLE CONFIGURATION ONCE AND FOR ALL", - "homepage": "http://github.com/dominictarr/config-chain", - "repository": { - "type": "git", - "url": "https://github.com/dominictarr/config-chain.git" - } - //missing , and then this comment. this json is intensionally invalid - "dependencies": { - "proto-list": "1", - "ini": "~1.0.2" - }, - "bundleDependencies": ["ini"], - "REM": "REMEMBER TO REMOVE BUNDLING WHEN/IF ISAACS MERGES ini#7", - "author": "Dominic Tarr (http://dominictarr.com)", - "scripts": { - "test": "node test/find-file.js && node test/ini.js && node test/env.js" - } -} diff --git a/node_modules/config-chain/test/chain-class.js b/node_modules/config-chain/test/chain-class.js deleted file mode 100644 index bbc0d4c..0000000 --- a/node_modules/config-chain/test/chain-class.js +++ /dev/null @@ -1,100 +0,0 @@ -var test = require('tap').test -var CC = require('../index.js').ConfigChain - -var env = { foo_blaz : 'blzaa', foo_env : 'myenv' } -var jsonObj = { blaz: 'json', json: true } -var iniObj = { 'x.y.z': 'xyz', blaz: 'ini' } - -var fs = require('fs') -var ini = require('ini') - -fs.writeFileSync('/tmp/config-chain-class.json', JSON.stringify(jsonObj)) -fs.writeFileSync('/tmp/config-chain-class.ini', ini.stringify(iniObj)) - -var http = require('http') -var reqs = 0 -http.createServer(function (q, s) { - if (++reqs === 2) this.close() - if (q.url === '/json') { - // make sure that the requests come back from the server - // out of order. they should still be ordered properly - // in the resulting config object set. - setTimeout(function () { - s.setHeader('content-type', 'application/json') - s.end(JSON.stringify({ - blaz: 'http', - http: true, - json: true - })) - }, 200) - } else { - s.setHeader('content-type', 'application/ini') - s.end(ini.stringify({ - blaz: 'http', - http: true, - ini: true, - json: false - })) - } -}).listen(1337) - -test('basic class test', function (t) { - var cc = new CC() - var expectlist = - [ { blaz: 'json', json: true }, - { 'x.y.z': 'xyz', blaz: 'ini' }, - { blaz: 'blzaa', env: 'myenv' }, - { blaz: 'http', http: true, json: true }, - { blaz: 'http', http: true, ini: true, json: false } ] - - cc.addFile('/tmp/config-chain-class.json') - .addFile('/tmp/config-chain-class.ini') - .addEnv('foo_', env) - .addUrl('http://localhost:1337/json') - .addUrl('http://localhost:1337/ini') - .on('load', function () { - t.same(cc.list, expectlist) - t.same(cc.snapshot, { blaz: 'json', - json: true, - 'x.y.z': 'xyz', - env: 'myenv', - http: true, - ini: true }) - - cc.del('blaz', '/tmp/config-chain-class.json') - t.same(cc.snapshot, { blaz: 'ini', - json: true, - 'x.y.z': 'xyz', - env: 'myenv', - http: true, - ini: true }) - cc.del('blaz') - t.same(cc.snapshot, { json: true, - 'x.y.z': 'xyz', - env: 'myenv', - http: true, - ini: true }) - cc.shift() - t.same(cc.snapshot, { 'x.y.z': 'xyz', - env: 'myenv', - http: true, - json: true, - ini: true }) - cc.shift() - t.same(cc.snapshot, { env: 'myenv', - http: true, - json: true, - ini: true }) - cc.shift() - t.same(cc.snapshot, { http: true, - json: true, - ini: true }) - cc.shift() - t.same(cc.snapshot, { http: true, - ini: true, - json: false }) - cc.shift() - t.same(cc.snapshot, {}) - t.end() - }) -}) diff --git a/node_modules/config-chain/test/env.js b/node_modules/config-chain/test/env.js deleted file mode 100644 index fb718f3..0000000 --- a/node_modules/config-chain/test/env.js +++ /dev/null @@ -1,10 +0,0 @@ -var cc = require('..') -var assert = require('assert') - -assert.deepEqual({ - hello: true -}, cc.env('test_', { - 'test_hello': true, - 'ignore_this': 4, - 'ignore_test_this_too': [] -})) diff --git a/node_modules/config-chain/test/find-file.js b/node_modules/config-chain/test/find-file.js deleted file mode 100644 index 23cde52..0000000 --- a/node_modules/config-chain/test/find-file.js +++ /dev/null @@ -1,13 +0,0 @@ - -var fs = require('fs') - , assert = require('assert') - , objx = { - rand: Math.random() - } - -fs.writeFileSync('/tmp/random-test-config.json', JSON.stringify(objx)) - -var cc = require('../') -var path = cc.find('tmp/random-test-config.json') - -assert.equal(path, '/tmp/random-test-config.json') \ No newline at end of file diff --git a/node_modules/config-chain/test/get.js b/node_modules/config-chain/test/get.js deleted file mode 100644 index d6fd79f..0000000 --- a/node_modules/config-chain/test/get.js +++ /dev/null @@ -1,15 +0,0 @@ -var cc = require("../"); - -var chain = cc() - , name = "forFun"; - -chain - .add({ - __sample:"for fun only" - }, name) - .on("load", function() { - //It throw exception here - console.log(chain.get("__sample", name)); - //But if I drop the name param, it run normally and return as expected: "for fun only" - //console.log(chain.get("__sample")); - }); diff --git a/node_modules/config-chain/test/ignore-unfound-file.js b/node_modules/config-chain/test/ignore-unfound-file.js deleted file mode 100644 index d742b82..0000000 --- a/node_modules/config-chain/test/ignore-unfound-file.js +++ /dev/null @@ -1,5 +0,0 @@ - -var cc = require('..') - -//should not throw -cc(__dirname, 'non_existing_file') diff --git a/node_modules/config-chain/test/ini.js b/node_modules/config-chain/test/ini.js deleted file mode 100644 index 5572a6e..0000000 --- a/node_modules/config-chain/test/ini.js +++ /dev/null @@ -1,18 +0,0 @@ - - -var cc =require('..') -var INI = require('ini') -var assert = require('assert') - -function test(obj) { - - var _json, _ini - var json = cc.parse (_json = JSON.stringify(obj)) - var ini = cc.parse (_ini = INI.stringify(obj)) -console.log(_ini, _json) - assert.deepEqual(json, ini) -} - - -test({hello: true}) - diff --git a/node_modules/config-chain/test/save.js b/node_modules/config-chain/test/save.js deleted file mode 100644 index bc97bbd..0000000 --- a/node_modules/config-chain/test/save.js +++ /dev/null @@ -1,59 +0,0 @@ -var CC = require('../index.js').ConfigChain -var test = require('tap').test - -var f1 = '/tmp/f1.ini' -var f2 = '/tmp/f2.json' - -var ini = require('ini') - -var f1data = {foo: {bar: 'baz'}, bloo: 'jaus'} -var f2data = {oof: {rab: 'zab'}, oolb: 'suaj'} - -var fs = require('fs') - -fs.writeFileSync(f1, ini.stringify(f1data), 'utf8') -fs.writeFileSync(f2, JSON.stringify(f2data), 'utf8') - -test('test saving and loading ini files', function (t) { - new CC() - .add({grelb:'blerg'}, 'opt') - .addFile(f1, 'ini', 'inifile') - .addFile(f2, 'json', 'jsonfile') - .on('load', function (cc) { - - t.same(cc.snapshot, { grelb: 'blerg', - bloo: 'jaus', - foo: { bar: 'baz' }, - oof: { rab: 'zab' }, - oolb: 'suaj' }) - - t.same(cc.list, [ { grelb: 'blerg' }, - { bloo: 'jaus', foo: { bar: 'baz' } }, - { oof: { rab: 'zab' }, oolb: 'suaj' } ]) - - cc.set('grelb', 'brelg', 'opt') - .set('foo', 'zoo', 'inifile') - .set('oof', 'ooz', 'jsonfile') - .save('inifile') - .save('jsonfile') - .on('save', function () { - t.equal(fs.readFileSync(f1, 'utf8'), - "bloo=jaus\nfoo=zoo\n") - t.equal(fs.readFileSync(f2, 'utf8'), - "{\"oof\":\"ooz\",\"oolb\":\"suaj\"}") - - t.same(cc.snapshot, { grelb: 'brelg', - bloo: 'jaus', - foo: 'zoo', - oof: 'ooz', - oolb: 'suaj' }) - - t.same(cc.list, [ { grelb: 'brelg' }, - { bloo: 'jaus', foo: 'zoo' }, - { oof: 'ooz', oolb: 'suaj' } ]) - - t.pass('ok') - t.end() - }) - }) -}) diff --git a/node_modules/convert-source-map/.npmignore b/node_modules/convert-source-map/.npmignore deleted file mode 100644 index de78e27..0000000 --- a/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/convert-source-map/.travis.yml b/node_modules/convert-source-map/.travis.yml deleted file mode 100644 index a55b235..0000000 --- a/node_modules/convert-source-map/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - 0.8 - - 0.10 - - 0.11 \ No newline at end of file diff --git a/node_modules/convert-source-map/LICENSE b/node_modules/convert-source-map/LICENSE deleted file mode 100644 index 41702c5..0000000 --- a/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/convert-source-map/README.md b/node_modules/convert-source-map/README.md deleted file mode 100644 index 909da5a..0000000 --- a/node_modules/convert-source-map/README.md +++ /dev/null @@ -1,114 +0,0 @@ -# convert-source-map [![build status](https://secure.travis-ci.org/thlorenz/convert-source-map.png)](http://travis-ci.org/thlorenz/convert-source-map) - -[![NPM](https://nodei.co/npm/convert-source-map.png?downloads=true&stars=true)](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() - -Converts source map to base64 encoded json string prefixed with `//# sourceMappingURL=...`. - -### 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. - - -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/thlorenz/convert-source-map/trend.png)](https://bitdeli.com/free "Bitdeli Badge") - diff --git a/node_modules/convert-source-map/example/comment-to-json.js b/node_modules/convert-source-map/example/comment-to-json.js deleted file mode 100644 index dfab186..0000000 --- a/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/convert-source-map/index.js b/node_modules/convert-source-map/index.js deleted file mode 100644 index afe2758..0000000 --- a/node_modules/convert-source-map/index.js +++ /dev/null @@ -1,139 +0,0 @@ -'use strict'; -var fs = require('fs'); -var path = require('path'); - -var commentRx = /^[ \t]*(?:\/\/|\/\*)[@#][ \t]+sourceMappingURL=data:(?:application|text)\/json;base64,(.+)(?:\*\/)?/mg; -var mapFileCommentRx = - // //# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */ - /(?:^[ \t]*\/\/[@|#][ \t]+sourceMappingURL=(.+?)[ \t]*$)|(?:^[ \t]*\/\*[@#][ \t]+sourceMappingURL=(.+?)[ \t]*\*\/[ \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 - - var r = mapFileCommentRx.exec(sm); - mapFileCommentRx.lastIndex = 0; - - // for some odd reason //# .. captures in 1 and /* .. */ in 2 - var filename = r[1] || r[2]; - var filepath = path.join(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 || {}; - try { - 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; - } catch(e) { - console.error(e); - return null; - } -} - -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 () { - var base64 = this.toBase64(); - return '//# sourceMappingURL=data:application/json;base64,' + base64; -}; - -// 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); - commentRx.lastIndex = 0; - 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); - mapFileCommentRx.lastIndex = 0; - return m ? exports.fromMapFileComment(m.pop(), dir) : null; -}; - -exports.removeComments = function (src) { - commentRx.lastIndex = 0; - return src.replace(commentRx, ''); -}; - -exports.removeMapFileComments = function (src) { - mapFileCommentRx.lastIndex = 0; - return src.replace(mapFileCommentRx, ''); -}; - -exports.__defineGetter__('commentRegex', function () { - commentRx.lastIndex = 0; - return commentRx; -}); - -exports.__defineGetter__('mapFileCommentRegex', function () { - mapFileCommentRx.lastIndex = 0; - return mapFileCommentRx; -}); diff --git a/node_modules/convert-source-map/package.json b/node_modules/convert-source-map/package.json deleted file mode 100644 index 2cf5f23..0000000 --- a/node_modules/convert-source-map/package.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "convert-source-map@^0.3.3", - "scope": null, - "escapedName": "convert-source-map", - "name": "convert-source-map", - "rawSpec": "^0.3.3", - "spec": ">=0.3.3 <0.4.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/rework" - ] - ], - "_from": "convert-source-map@>=0.3.3 <0.4.0", - "_id": "convert-source-map@0.3.5", - "_inCache": true, - "_location": "/convert-source-map", - "_npmUser": { - "name": "thlorenz", - "email": "thlorenz@gmx.de" - }, - "_npmVersion": "1.4.9", - "_phantomChildren": {}, - "_requested": { - "raw": "convert-source-map@^0.3.3", - "scope": null, - "escapedName": "convert-source-map", - "name": "convert-source-map", - "rawSpec": "^0.3.3", - "spec": ">=0.3.3 <0.4.0", - "type": "range" - }, - "_requiredBy": [ - "/rework" - ], - "_resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.5.tgz", - "_shasum": "f1d802950af7dd2631a1febe0596550c86ab3190", - "_shrinkwrap": null, - "_spec": "convert-source-map@^0.3.3", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/rework", - "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.3.0", - "tap": "~0.4.3" - }, - "directories": {}, - "dist": { - "shasum": "f1d802950af7dd2631a1febe0596550c86ab3190", - "tarball": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.5.tgz" - }, - "engine": { - "node": ">=0.6" - }, - "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" - }, - "version": "0.3.5" -} diff --git a/node_modules/convert-source-map/test/comment-regex.js b/node_modules/convert-source-map/test/comment-regex.js deleted file mode 100644 index 629d86e..0000000 --- a/node_modules/convert-source-map/test/comment-regex.js +++ /dev/null @@ -1,100 +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(s) { - rx.lastIndex = 0; - return rx.test(s + 'sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9') -} - -test('comment regex old spec - @', function (t) { - [ '//@ ' - , ' //@ ' - , '\t//@ ' - ].forEach(function (x) { t.ok(comment(x), 'matches ' + x) }); - - [ '///@ ' - , '}}//@ ' - , ' @// @' - ].forEach(function (x) { t.ok(!comment(x), 'does not match ' + x) }) - t.end() -}) - -test('comment regex new spec - #', function (t) { - [ '//# ' - , ' //# ' - , '\t//# ' - ].forEach(function (x) { t.ok(comment(x), 'matches ' + x) }); - - [ '///# ' - , '}}//# ' - , ' #// #' - ].forEach(function (x) { t.ok(!comment(x), 'does not match ' + x) }) - t.end() -}) - -function mapFileComment(s) { - mapFileRx.lastIndex = 0; - return mapFileRx.test(s + 'sourceMappingURL=foo.js.map') -} - -test('mapFileComment regex old spec - @', function (t) { - [ '//@ ' - , ' //@ ' - , '\t//@ ' - ].forEach(function (x) { t.ok(mapFileComment(x), 'matches ' + x) }); - - [ '///@ ' - , '}}//@ ' - , ' @// @' - ].forEach(function (x) { t.ok(!mapFileComment(x), 'does not match ' + x) }) - t.end() -}) - -test('mapFileComment regex new spec - #', function (t) { - [ '//# ' - , ' //# ' - , '\t//# ' - ].forEach(function (x) { t.ok(mapFileComment(x), 'matches ' + x) }); - - [ '///# ' - , '}}//# ' - , ' #// #' - ].forEach(function (x) { t.ok(!mapFileComment(x), 'does 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) { - [ [ '/*@ ', '*/' ] - , [' /*@ ', ' */ ' ] - , [ '\t/*@ ', ' \t*/\t '] - ].forEach(function (x) { t.ok(mapFileCommentWrap(x[0], x[1]), 'matches ' + x.join(' :: ')) }); - - [ [ '/*/*@ ', '*/' ] - , ['}}/*@ ', ' */ ' ] - , [ ' @/*@ ', ' \t*/\t '] - ].forEach(function (x) { t.ok(!mapFileCommentWrap(x[0], x[1]), 'does not match ' + x.join(' :: ')) }); - t.end() -}) - -test('mapFileComment regex /* */ new spec - #', function (t) { - [ [ '/*# ', '*/' ] - , [' /*# ', ' */ ' ] - , [ '\t/*# ', ' \t*/\t '] - ].forEach(function (x) { t.ok(mapFileCommentWrap(x[0], x[1]), 'matches ' + x.join(' :: ')) }); - - [ [ '/*/*# ', '*/' ] - , ['}}/*# ', ' */ ' ] - , [ ' #/*# ', ' \t*/\t '] - ].forEach(function (x) { t.ok(!mapFileCommentWrap(x[0], x[1]), 'does not match ' + x.join(' :: ')) }); - t.end() -}) diff --git a/node_modules/convert-source-map/test/convert-source-map.js b/node_modules/convert-source-map/test/convert-source-map.js deleted file mode 100644 index af94f96..0000000 --- a/node_modules/convert-source-map/test/convert-source-map.js +++ /dev/null @@ -1,161 +0,0 @@ -'use strict'; -/*jshint asi: true */ - -var test = require('tap').test - , generator = require('inline-source-map') - , convert = require('..') - -var gen = generator() - .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('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;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9' - , otherMap = '//# sourceMappingURL=data:application/json;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('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,otherZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmdW5jdGlvbiBmb28oKSB7XG4gY29uc29sZS5sb2coXCJoZWxsbyBJIGFtIGZvb1wiKTtcbiBjb25zb2xlLmxvZyhcIndobyBhcmUgeW91XCIpO1xufVxuXG5mb28oKTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9' - , 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 + 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() -}) diff --git a/node_modules/convert-source-map/test/fixtures/map-file-comment-double-slash.css b/node_modules/convert-source-map/test/fixtures/map-file-comment-double-slash.css deleted file mode 100644 index e777991..0000000 --- a/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/convert-source-map/test/fixtures/map-file-comment-inline.css b/node_modules/convert-source-map/test/fixtures/map-file-comment-inline.css deleted file mode 100644 index 1e61b24..0000000 --- a/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/convert-source-map/test/fixtures/map-file-comment.css b/node_modules/convert-source-map/test/fixtures/map-file-comment.css deleted file mode 100644 index 8b28268..0000000 --- a/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/convert-source-map/test/fixtures/map-file-comment.css.map b/node_modules/convert-source-map/test/fixtures/map-file-comment.css.map deleted file mode 100644 index 25950ea..0000000 --- a/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/convert-source-map/test/map-file-comment.js b/node_modules/convert-source-map/test/map-file-comment.js deleted file mode 100644 index b416787..0000000 --- a/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/core-util-is/LICENSE b/node_modules/core-util-is/LICENSE deleted file mode 100644 index d8d7f94..0000000 --- a/node_modules/core-util-is/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright Node.js 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/core-util-is/README.md b/node_modules/core-util-is/README.md deleted file mode 100644 index 5a76b41..0000000 --- a/node_modules/core-util-is/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# core-util-is - -The `util.is*` functions introduced in Node v0.12. diff --git a/node_modules/core-util-is/float.patch b/node_modules/core-util-is/float.patch deleted file mode 100644 index a06d5c0..0000000 --- a/node_modules/core-util-is/float.patch +++ /dev/null @@ -1,604 +0,0 @@ -diff --git a/lib/util.js b/lib/util.js -index a03e874..9074e8e 100644 ---- a/lib/util.js -+++ b/lib/util.js -@@ -19,430 +19,6 @@ - // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE - // USE OR OTHER DEALINGS IN THE SOFTWARE. - --var formatRegExp = /%[sdj%]/g; --exports.format = function(f) { -- if (!isString(f)) { -- var objects = []; -- for (var i = 0; i < arguments.length; i++) { -- objects.push(inspect(arguments[i])); -- } -- return objects.join(' '); -- } -- -- var i = 1; -- var args = arguments; -- var len = args.length; -- var str = String(f).replace(formatRegExp, function(x) { -- if (x === '%%') return '%'; -- if (i >= len) return x; -- switch (x) { -- case '%s': return String(args[i++]); -- case '%d': return Number(args[i++]); -- case '%j': -- try { -- return JSON.stringify(args[i++]); -- } catch (_) { -- return '[Circular]'; -- } -- default: -- return x; -- } -- }); -- for (var x = args[i]; i < len; x = args[++i]) { -- if (isNull(x) || !isObject(x)) { -- str += ' ' + x; -- } else { -- str += ' ' + inspect(x); -- } -- } -- return str; --}; -- -- --// Mark that a method should not be used. --// Returns a modified function which warns once by default. --// If --no-deprecation is set, then it is a no-op. --exports.deprecate = function(fn, msg) { -- // Allow for deprecating things in the process of starting up. -- if (isUndefined(global.process)) { -- return function() { -- return exports.deprecate(fn, msg).apply(this, arguments); -- }; -- } -- -- if (process.noDeprecation === true) { -- return fn; -- } -- -- var warned = false; -- function deprecated() { -- if (!warned) { -- if (process.throwDeprecation) { -- throw new Error(msg); -- } else if (process.traceDeprecation) { -- console.trace(msg); -- } else { -- console.error(msg); -- } -- warned = true; -- } -- return fn.apply(this, arguments); -- } -- -- return deprecated; --}; -- -- --var debugs = {}; --var debugEnviron; --exports.debuglog = function(set) { -- if (isUndefined(debugEnviron)) -- debugEnviron = process.env.NODE_DEBUG || ''; -- set = set.toUpperCase(); -- if (!debugs[set]) { -- if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { -- var pid = process.pid; -- debugs[set] = function() { -- var msg = exports.format.apply(exports, arguments); -- console.error('%s %d: %s', set, pid, msg); -- }; -- } else { -- debugs[set] = function() {}; -- } -- } -- return debugs[set]; --}; -- -- --/** -- * Echos the value of a value. Trys to print the value out -- * in the best way possible given the different types. -- * -- * @param {Object} obj The object to print out. -- * @param {Object} opts Optional options object that alters the output. -- */ --/* legacy: obj, showHidden, depth, colors*/ --function inspect(obj, opts) { -- // default options -- var ctx = { -- seen: [], -- stylize: stylizeNoColor -- }; -- // legacy... -- if (arguments.length >= 3) ctx.depth = arguments[2]; -- if (arguments.length >= 4) ctx.colors = arguments[3]; -- if (isBoolean(opts)) { -- // legacy... -- ctx.showHidden = opts; -- } else if (opts) { -- // got an "options" object -- exports._extend(ctx, opts); -- } -- // set default options -- if (isUndefined(ctx.showHidden)) ctx.showHidden = false; -- if (isUndefined(ctx.depth)) ctx.depth = 2; -- if (isUndefined(ctx.colors)) ctx.colors = false; -- if (isUndefined(ctx.customInspect)) ctx.customInspect = true; -- if (ctx.colors) ctx.stylize = stylizeWithColor; -- return formatValue(ctx, obj, ctx.depth); --} --exports.inspect = inspect; -- -- --// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics --inspect.colors = { -- 'bold' : [1, 22], -- 'italic' : [3, 23], -- 'underline' : [4, 24], -- 'inverse' : [7, 27], -- 'white' : [37, 39], -- 'grey' : [90, 39], -- 'black' : [30, 39], -- 'blue' : [34, 39], -- 'cyan' : [36, 39], -- 'green' : [32, 39], -- 'magenta' : [35, 39], -- 'red' : [31, 39], -- 'yellow' : [33, 39] --}; -- --// Don't use 'blue' not visible on cmd.exe --inspect.styles = { -- 'special': 'cyan', -- 'number': 'yellow', -- 'boolean': 'yellow', -- 'undefined': 'grey', -- 'null': 'bold', -- 'string': 'green', -- 'date': 'magenta', -- // "name": intentionally not styling -- 'regexp': 'red' --}; -- -- --function stylizeWithColor(str, styleType) { -- var style = inspect.styles[styleType]; -- -- if (style) { -- return '\u001b[' + inspect.colors[style][0] + 'm' + str + -- '\u001b[' + inspect.colors[style][1] + 'm'; -- } else { -- return str; -- } --} -- -- --function stylizeNoColor(str, styleType) { -- return str; --} -- -- --function arrayToHash(array) { -- var hash = {}; -- -- array.forEach(function(val, idx) { -- hash[val] = true; -- }); -- -- return hash; --} -- -- --function formatValue(ctx, value, recurseTimes) { -- // Provide a hook for user-specified inspect functions. -- // Check that value is an object with an inspect function on it -- if (ctx.customInspect && -- value && -- isFunction(value.inspect) && -- // Filter out the util module, it's inspect function is special -- value.inspect !== exports.inspect && -- // Also filter out any prototype objects using the circular check. -- !(value.constructor && value.constructor.prototype === value)) { -- var ret = value.inspect(recurseTimes, ctx); -- if (!isString(ret)) { -- ret = formatValue(ctx, ret, recurseTimes); -- } -- return ret; -- } -- -- // Primitive types cannot have properties -- var primitive = formatPrimitive(ctx, value); -- if (primitive) { -- return primitive; -- } -- -- // Look up the keys of the object. -- var keys = Object.keys(value); -- var visibleKeys = arrayToHash(keys); -- -- if (ctx.showHidden) { -- keys = Object.getOwnPropertyNames(value); -- } -- -- // Some type of object without properties can be shortcutted. -- if (keys.length === 0) { -- if (isFunction(value)) { -- var name = value.name ? ': ' + value.name : ''; -- return ctx.stylize('[Function' + name + ']', 'special'); -- } -- if (isRegExp(value)) { -- return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); -- } -- if (isDate(value)) { -- return ctx.stylize(Date.prototype.toString.call(value), 'date'); -- } -- if (isError(value)) { -- return formatError(value); -- } -- } -- -- var base = '', array = false, braces = ['{', '}']; -- -- // Make Array say that they are Array -- if (isArray(value)) { -- array = true; -- braces = ['[', ']']; -- } -- -- // Make functions say that they are functions -- if (isFunction(value)) { -- var n = value.name ? ': ' + value.name : ''; -- base = ' [Function' + n + ']'; -- } -- -- // Make RegExps say that they are RegExps -- if (isRegExp(value)) { -- base = ' ' + RegExp.prototype.toString.call(value); -- } -- -- // Make dates with properties first say the date -- if (isDate(value)) { -- base = ' ' + Date.prototype.toUTCString.call(value); -- } -- -- // Make error with message first say the error -- if (isError(value)) { -- base = ' ' + formatError(value); -- } -- -- if (keys.length === 0 && (!array || value.length == 0)) { -- return braces[0] + base + braces[1]; -- } -- -- if (recurseTimes < 0) { -- if (isRegExp(value)) { -- return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); -- } else { -- return ctx.stylize('[Object]', 'special'); -- } -- } -- -- ctx.seen.push(value); -- -- var output; -- if (array) { -- output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); -- } else { -- output = keys.map(function(key) { -- return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); -- }); -- } -- -- ctx.seen.pop(); -- -- return reduceToSingleString(output, base, braces); --} -- -- --function formatPrimitive(ctx, value) { -- if (isUndefined(value)) -- return ctx.stylize('undefined', 'undefined'); -- if (isString(value)) { -- var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') -- .replace(/'/g, "\\'") -- .replace(/\\"/g, '"') + '\''; -- return ctx.stylize(simple, 'string'); -- } -- if (isNumber(value)) { -- // Format -0 as '-0'. Strict equality won't distinguish 0 from -0, -- // so instead we use the fact that 1 / -0 < 0 whereas 1 / 0 > 0 . -- if (value === 0 && 1 / value < 0) -- return ctx.stylize('-0', 'number'); -- return ctx.stylize('' + value, 'number'); -- } -- if (isBoolean(value)) -- return ctx.stylize('' + value, 'boolean'); -- // For some reason typeof null is "object", so special case here. -- if (isNull(value)) -- return ctx.stylize('null', 'null'); --} -- -- --function formatError(value) { -- return '[' + Error.prototype.toString.call(value) + ']'; --} -- -- --function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { -- var output = []; -- for (var i = 0, l = value.length; i < l; ++i) { -- if (hasOwnProperty(value, String(i))) { -- output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, -- String(i), true)); -- } else { -- output.push(''); -- } -- } -- keys.forEach(function(key) { -- if (!key.match(/^\d+$/)) { -- output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, -- key, true)); -- } -- }); -- return output; --} -- -- --function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { -- var name, str, desc; -- desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; -- if (desc.get) { -- if (desc.set) { -- str = ctx.stylize('[Getter/Setter]', 'special'); -- } else { -- str = ctx.stylize('[Getter]', 'special'); -- } -- } else { -- if (desc.set) { -- str = ctx.stylize('[Setter]', 'special'); -- } -- } -- if (!hasOwnProperty(visibleKeys, key)) { -- name = '[' + key + ']'; -- } -- if (!str) { -- if (ctx.seen.indexOf(desc.value) < 0) { -- if (isNull(recurseTimes)) { -- str = formatValue(ctx, desc.value, null); -- } else { -- str = formatValue(ctx, desc.value, recurseTimes - 1); -- } -- if (str.indexOf('\n') > -1) { -- if (array) { -- str = str.split('\n').map(function(line) { -- return ' ' + line; -- }).join('\n').substr(2); -- } else { -- str = '\n' + str.split('\n').map(function(line) { -- return ' ' + line; -- }).join('\n'); -- } -- } -- } else { -- str = ctx.stylize('[Circular]', 'special'); -- } -- } -- if (isUndefined(name)) { -- if (array && key.match(/^\d+$/)) { -- return str; -- } -- name = JSON.stringify('' + key); -- if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { -- name = name.substr(1, name.length - 2); -- name = ctx.stylize(name, 'name'); -- } else { -- name = name.replace(/'/g, "\\'") -- .replace(/\\"/g, '"') -- .replace(/(^"|"$)/g, "'"); -- name = ctx.stylize(name, 'string'); -- } -- } -- -- return name + ': ' + str; --} -- -- --function reduceToSingleString(output, base, braces) { -- var numLinesEst = 0; -- var length = output.reduce(function(prev, cur) { -- numLinesEst++; -- if (cur.indexOf('\n') >= 0) numLinesEst++; -- return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; -- }, 0); -- -- if (length > 60) { -- return braces[0] + -- (base === '' ? '' : base + '\n ') + -- ' ' + -- output.join(',\n ') + -- ' ' + -- braces[1]; -- } -- -- return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; --} -- -- - // NOTE: These type checking functions intentionally don't use `instanceof` - // because it is fragile and can be easily faked with `Object.create()`. - function isArray(ar) { -@@ -522,166 +98,10 @@ function isPrimitive(arg) { - exports.isPrimitive = isPrimitive; - - function isBuffer(arg) { -- return arg instanceof Buffer; -+ return Buffer.isBuffer(arg); - } - exports.isBuffer = isBuffer; - - function objectToString(o) { - return Object.prototype.toString.call(o); --} -- -- --function pad(n) { -- return n < 10 ? '0' + n.toString(10) : n.toString(10); --} -- -- --var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', -- 'Oct', 'Nov', 'Dec']; -- --// 26 Feb 16:19:34 --function timestamp() { -- var d = new Date(); -- var time = [pad(d.getHours()), -- pad(d.getMinutes()), -- pad(d.getSeconds())].join(':'); -- return [d.getDate(), months[d.getMonth()], time].join(' '); --} -- -- --// log is just a thin wrapper to console.log that prepends a timestamp --exports.log = function() { -- console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); --}; -- -- --/** -- * Inherit the prototype methods from one constructor into another. -- * -- * The Function.prototype.inherits from lang.js rewritten as a standalone -- * function (not on Function.prototype). NOTE: If this file is to be loaded -- * during bootstrapping this function needs to be rewritten using some native -- * functions as prototype setup using normal JavaScript does not work as -- * expected during bootstrapping (see mirror.js in r114903). -- * -- * @param {function} ctor Constructor function which needs to inherit the -- * prototype. -- * @param {function} superCtor Constructor function to inherit prototype from. -- */ --exports.inherits = function(ctor, superCtor) { -- ctor.super_ = superCtor; -- ctor.prototype = Object.create(superCtor.prototype, { -- constructor: { -- value: ctor, -- enumerable: false, -- writable: true, -- configurable: true -- } -- }); --}; -- --exports._extend = function(origin, add) { -- // Don't do anything if add isn't an object -- if (!add || !isObject(add)) return origin; -- -- var keys = Object.keys(add); -- var i = keys.length; -- while (i--) { -- origin[keys[i]] = add[keys[i]]; -- } -- return origin; --}; -- --function hasOwnProperty(obj, prop) { -- return Object.prototype.hasOwnProperty.call(obj, prop); --} -- -- --// Deprecated old stuff. -- --exports.p = exports.deprecate(function() { -- for (var i = 0, len = arguments.length; i < len; ++i) { -- console.error(exports.inspect(arguments[i])); -- } --}, 'util.p: Use console.error() instead'); -- -- --exports.exec = exports.deprecate(function() { -- return require('child_process').exec.apply(this, arguments); --}, 'util.exec is now called `child_process.exec`.'); -- -- --exports.print = exports.deprecate(function() { -- for (var i = 0, len = arguments.length; i < len; ++i) { -- process.stdout.write(String(arguments[i])); -- } --}, 'util.print: Use console.log instead'); -- -- --exports.puts = exports.deprecate(function() { -- for (var i = 0, len = arguments.length; i < len; ++i) { -- process.stdout.write(arguments[i] + '\n'); -- } --}, 'util.puts: Use console.log instead'); -- -- --exports.debug = exports.deprecate(function(x) { -- process.stderr.write('DEBUG: ' + x + '\n'); --}, 'util.debug: Use console.error instead'); -- -- --exports.error = exports.deprecate(function(x) { -- for (var i = 0, len = arguments.length; i < len; ++i) { -- process.stderr.write(arguments[i] + '\n'); -- } --}, 'util.error: Use console.error instead'); -- -- --exports.pump = exports.deprecate(function(readStream, writeStream, callback) { -- var callbackCalled = false; -- -- function call(a, b, c) { -- if (callback && !callbackCalled) { -- callback(a, b, c); -- callbackCalled = true; -- } -- } -- -- readStream.addListener('data', function(chunk) { -- if (writeStream.write(chunk) === false) readStream.pause(); -- }); -- -- writeStream.addListener('drain', function() { -- readStream.resume(); -- }); -- -- readStream.addListener('end', function() { -- writeStream.end(); -- }); -- -- readStream.addListener('close', function() { -- call(); -- }); -- -- readStream.addListener('error', function(err) { -- writeStream.end(); -- call(err); -- }); -- -- writeStream.addListener('error', function(err) { -- readStream.destroy(); -- call(err); -- }); --}, 'util.pump(): Use readableStream.pipe() instead'); -- -- --var uv; --exports._errnoException = function(err, syscall) { -- if (isUndefined(uv)) uv = process.binding('uv'); -- var errname = uv.errname(err); -- var e = new Error(syscall + ' ' + errname); -- e.code = errname; -- e.errno = errname; -- e.syscall = syscall; -- return e; --}; -+} \ No newline at end of file diff --git a/node_modules/core-util-is/lib/util.js b/node_modules/core-util-is/lib/util.js deleted file mode 100644 index ff4c851..0000000 --- a/node_modules/core-util-is/lib/util.js +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - -// NOTE: These type checking functions intentionally don't use `instanceof` -// because it is fragile and can be easily faked with `Object.create()`. - -function isArray(arg) { - if (Array.isArray) { - return Array.isArray(arg); - } - return objectToString(arg) === '[object Array]'; -} -exports.isArray = isArray; - -function isBoolean(arg) { - return typeof arg === 'boolean'; -} -exports.isBoolean = isBoolean; - -function isNull(arg) { - return arg === null; -} -exports.isNull = isNull; - -function isNullOrUndefined(arg) { - return arg == null; -} -exports.isNullOrUndefined = isNullOrUndefined; - -function isNumber(arg) { - return typeof arg === 'number'; -} -exports.isNumber = isNumber; - -function isString(arg) { - return typeof arg === 'string'; -} -exports.isString = isString; - -function isSymbol(arg) { - return typeof arg === 'symbol'; -} -exports.isSymbol = isSymbol; - -function isUndefined(arg) { - return arg === void 0; -} -exports.isUndefined = isUndefined; - -function isRegExp(re) { - return objectToString(re) === '[object RegExp]'; -} -exports.isRegExp = isRegExp; - -function isObject(arg) { - return typeof arg === 'object' && arg !== null; -} -exports.isObject = isObject; - -function isDate(d) { - return objectToString(d) === '[object Date]'; -} -exports.isDate = isDate; - -function isError(e) { - return (objectToString(e) === '[object Error]' || e instanceof Error); -} -exports.isError = isError; - -function isFunction(arg) { - return typeof arg === 'function'; -} -exports.isFunction = isFunction; - -function isPrimitive(arg) { - return arg === null || - typeof arg === 'boolean' || - typeof arg === 'number' || - typeof arg === 'string' || - typeof arg === 'symbol' || // ES6 symbol - typeof arg === 'undefined'; -} -exports.isPrimitive = isPrimitive; - -exports.isBuffer = Buffer.isBuffer; - -function objectToString(o) { - return Object.prototype.toString.call(o); -} diff --git a/node_modules/core-util-is/package.json b/node_modules/core-util-is/package.json deleted file mode 100644 index 064be33..0000000 --- a/node_modules/core-util-is/package.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "core-util-is@~1.0.0", - "scope": null, - "escapedName": "core-util-is", - "name": "core-util-is", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/readable-stream" - ] - ], - "_from": "core-util-is@>=1.0.0 <1.1.0", - "_id": "core-util-is@1.0.2", - "_inCache": true, - "_location": "/core-util-is", - "_nodeVersion": "4.0.0", - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.3.2", - "_phantomChildren": {}, - "_requested": { - "raw": "core-util-is@~1.0.0", - "scope": null, - "escapedName": "core-util-is", - "name": "core-util-is", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/duplexify/readable-stream", - "/glob-stream/readable-stream", - "/gulp-clone/readable-stream", - "/gulp-json-editor/readable-stream", - "/gulp-notify/readable-stream", - "/gulp-replace/readable-stream", - "/gulp-rtlcss/readable-stream", - "/gulp-watch/readable-stream", - "/merge-stream/readable-stream", - "/readable-stream", - "/readdirp/readable-stream", - "/replacestream/readable-stream", - "/strip-bom-stream/readable-stream", - "/through2/readable-stream", - "/vinyl-fs/readable-stream" - ], - "_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "_shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7", - "_shrinkwrap": null, - "_spec": "core-util-is@~1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/readable-stream", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/core-util-is/issues" - }, - "dependencies": {}, - "description": "The `util.is*` functions introduced in Node v0.12.", - "devDependencies": { - "tap": "^2.3.0" - }, - "directories": {}, - "dist": { - "shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7", - "tarball": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" - }, - "gitHead": "a177da234df5638b363ddc15fa324619a38577c8", - "homepage": "https://github.com/isaacs/core-util-is#readme", - "keywords": [ - "util", - "isBuffer", - "isArray", - "isNumber", - "isString", - "isRegExp", - "isThis", - "isThat", - "polyfill" - ], - "license": "MIT", - "main": "lib/util.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "core-util-is", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/core-util-is.git" - }, - "scripts": { - "test": "tap test.js" - }, - "version": "1.0.2" -} diff --git a/node_modules/core-util-is/test.js b/node_modules/core-util-is/test.js deleted file mode 100644 index 1a490c6..0000000 --- a/node_modules/core-util-is/test.js +++ /dev/null @@ -1,68 +0,0 @@ -var assert = require('tap'); - -var t = require('./lib/util'); - -assert.equal(t.isArray([]), true); -assert.equal(t.isArray({}), false); - -assert.equal(t.isBoolean(null), false); -assert.equal(t.isBoolean(true), true); -assert.equal(t.isBoolean(false), true); - -assert.equal(t.isNull(null), true); -assert.equal(t.isNull(undefined), false); -assert.equal(t.isNull(false), false); -assert.equal(t.isNull(), false); - -assert.equal(t.isNullOrUndefined(null), true); -assert.equal(t.isNullOrUndefined(undefined), true); -assert.equal(t.isNullOrUndefined(false), false); -assert.equal(t.isNullOrUndefined(), true); - -assert.equal(t.isNumber(null), false); -assert.equal(t.isNumber('1'), false); -assert.equal(t.isNumber(1), true); - -assert.equal(t.isString(null), false); -assert.equal(t.isString('1'), true); -assert.equal(t.isString(1), false); - -assert.equal(t.isSymbol(null), false); -assert.equal(t.isSymbol('1'), false); -assert.equal(t.isSymbol(1), false); -assert.equal(t.isSymbol(Symbol()), true); - -assert.equal(t.isUndefined(null), false); -assert.equal(t.isUndefined(undefined), true); -assert.equal(t.isUndefined(false), false); -assert.equal(t.isUndefined(), true); - -assert.equal(t.isRegExp(null), false); -assert.equal(t.isRegExp('1'), false); -assert.equal(t.isRegExp(new RegExp()), true); - -assert.equal(t.isObject({}), true); -assert.equal(t.isObject([]), true); -assert.equal(t.isObject(new RegExp()), true); -assert.equal(t.isObject(new Date()), true); - -assert.equal(t.isDate(null), false); -assert.equal(t.isDate('1'), false); -assert.equal(t.isDate(new Date()), true); - -assert.equal(t.isError(null), false); -assert.equal(t.isError({ err: true }), false); -assert.equal(t.isError(new Error()), true); - -assert.equal(t.isFunction(null), false); -assert.equal(t.isFunction({ }), false); -assert.equal(t.isFunction(function() {}), true); - -assert.equal(t.isPrimitive(null), true); -assert.equal(t.isPrimitive(''), true); -assert.equal(t.isPrimitive(0), true); -assert.equal(t.isPrimitive(new Date()), false); - -assert.equal(t.isBuffer(null), false); -assert.equal(t.isBuffer({}), false); -assert.equal(t.isBuffer(new Buffer(0)), true); diff --git a/node_modules/cryptiles/.npmignore b/node_modules/cryptiles/.npmignore deleted file mode 100644 index b3bb517..0000000 --- a/node_modules/cryptiles/.npmignore +++ /dev/null @@ -1,18 +0,0 @@ -.idea -*.iml -npm-debug.log -dump.rdb -node_modules -results.tap -results.xml -npm-shrinkwrap.json -config.json -.DS_Store -*/.DS_Store -*/*/.DS_Store -._* -*/._* -*/*/._* -coverage.* -lib-cov - diff --git a/node_modules/cryptiles/.travis.yml b/node_modules/cryptiles/.travis.yml deleted file mode 100755 index 4d82692..0000000 --- a/node_modules/cryptiles/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js - -node_js: - - 0.10 - - 4.0 - -sudo: false - diff --git a/node_modules/cryptiles/LICENSE b/node_modules/cryptiles/LICENSE deleted file mode 100755 index cda4473..0000000 --- a/node_modules/cryptiles/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ -Copyright (c) 2014, Eran Hammer and other contributors. -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. - * The names of any contributors may not 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 HOLDERS AND 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. - - * * * - -The complete list of contributors can be found at: https://github.com/hueniverse/cryptiles/graphs/contributors diff --git a/node_modules/cryptiles/README.md b/node_modules/cryptiles/README.md deleted file mode 100644 index 4008305..0000000 --- a/node_modules/cryptiles/README.md +++ /dev/null @@ -1,16 +0,0 @@ -cryptiles -========= - -General purpose crypto utilities - -[![Build Status](https://secure.travis-ci.org/hapijs/cryptiles.png)](http://travis-ci.org/hapijs/cryptiles) - -Lead Maintainer - [C J Silverio](https://github.com/ceejbot) - -## Methods - -### `randomString( size)` -Returns a cryptographically strong pseudo-random data string. Takes a size argument for the length of the string. - -### `fixedTimeComparison( a, b)` -Compare two strings using fixed time algorithm (to prevent time-based analysis of MAC digest match). Returns `true` if the strings match, `false` if they differ. diff --git a/node_modules/cryptiles/lib/index.js b/node_modules/cryptiles/lib/index.js deleted file mode 100755 index f385870..0000000 --- a/node_modules/cryptiles/lib/index.js +++ /dev/null @@ -1,68 +0,0 @@ -// Load modules - -var Crypto = require('crypto'); -var Boom = require('boom'); - - -// Declare internals - -var internals = {}; - - -// Generate a cryptographically strong pseudo-random data - -exports.randomString = function (size) { - - var buffer = exports.randomBits((size + 1) * 6); - if (buffer instanceof Error) { - return buffer; - } - - var string = buffer.toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/\=/g, ''); - return string.slice(0, size); -}; - - -exports.randomBits = function (bits) { - - if (!bits || - bits < 0) { - - return Boom.internal('Invalid random bits count'); - } - - var bytes = Math.ceil(bits / 8); - try { - return Crypto.randomBytes(bytes); - } - catch (err) { - return Boom.internal('Failed generating random bits: ' + err.message); - } -}; - - -// Compare two strings using fixed time algorithm (to prevent time-based analysis of MAC digest match) - -exports.fixedTimeComparison = function (a, b) { - - if (typeof a !== 'string' || - typeof b !== 'string') { - - return false; - } - - var mismatch = (a.length === b.length ? 0 : 1); - if (mismatch) { - b = a; - } - - for (var i = 0, il = a.length; i < il; ++i) { - var ac = a.charCodeAt(i); - var bc = b.charCodeAt(i); - mismatch |= (ac ^ bc); - } - - return (mismatch === 0); -}; - - diff --git a/node_modules/cryptiles/package.json b/node_modules/cryptiles/package.json deleted file mode 100755 index c083190..0000000 --- a/node_modules/cryptiles/package.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "cryptiles@2.x.x", - "scope": null, - "escapedName": "cryptiles", - "name": "cryptiles", - "rawSpec": "2.x.x", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/hawk" - ] - ], - "_from": "cryptiles@>=2.0.0 <3.0.0", - "_id": "cryptiles@2.0.5", - "_inCache": true, - "_location": "/cryptiles", - "_nodeVersion": "4.0.0", - "_npmUser": { - "name": "hueniverse", - "email": "eran@hammer.io" - }, - "_npmVersion": "2.14.2", - "_phantomChildren": {}, - "_requested": { - "raw": "cryptiles@2.x.x", - "scope": null, - "escapedName": "cryptiles", - "name": "cryptiles", - "rawSpec": "2.x.x", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/hawk" - ], - "_resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", - "_shasum": "3bdfecdc608147c1c67202fa291e7dca59eaa3b8", - "_shrinkwrap": null, - "_spec": "cryptiles@2.x.x", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/hawk", - "bugs": { - "url": "https://github.com/hapijs/cryptiles/issues" - }, - "dependencies": { - "boom": "2.x.x" - }, - "description": "General purpose crypto utilities", - "devDependencies": { - "code": "1.x.x", - "lab": "5.x.x" - }, - "directories": {}, - "dist": { - "shasum": "3bdfecdc608147c1c67202fa291e7dca59eaa3b8", - "tarball": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz" - }, - "engines": { - "node": ">=0.10.40" - }, - "gitHead": "9bc5a852f01cd51e615814e1cb255fe2df810649", - "homepage": "https://github.com/hapijs/cryptiles#readme", - "keywords": [ - "cryptography", - "security", - "utilites" - ], - "license": "BSD-3-Clause", - "main": "lib/index.js", - "maintainers": [ - { - "name": "hueniverse", - "email": "eran@hueniverse.com" - }, - { - "name": "ceejbot", - "email": "ceejceej@gmail.com" - } - ], - "name": "cryptiles", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/hapijs/cryptiles.git" - }, - "scripts": { - "test": "lab -a code -t 100 -L", - "test-cov-html": "lab -a code -r html -o coverage.html" - }, - "version": "2.0.5" -} diff --git a/node_modules/cryptiles/test/index.js b/node_modules/cryptiles/test/index.js deleted file mode 100755 index 170393f..0000000 --- a/node_modules/cryptiles/test/index.js +++ /dev/null @@ -1,102 +0,0 @@ -// Load modules - -var Code = require('code'); -var Cryptiles = require('..'); -var Lab = require('lab'); - - -// Declare internals - -var internals = {}; - - -// Test shortcuts - -var lab = exports.lab = Lab.script(); -var describe = lab.describe; -var it = lab.it; -var expect = Code.expect; - - -describe('randomString()', function () { - - it('should generate the right length string', function (done) { - - for (var i = 1; i <= 1000; ++i) { - expect(Cryptiles.randomString(i).length).to.equal(i); - } - - done(); - }); - - it('returns an error on invalid bits size', function (done) { - - expect(Cryptiles.randomString(99999999999999999999).message).to.match(/Failed generating random bits/); - done(); - }); -}); - -describe('randomBits()', function () { - - it('returns an error on invalid input', function (done) { - - expect(Cryptiles.randomBits(0).message).to.equal('Invalid random bits count'); - done(); - }); -}); - -describe('fixedTimeComparison()', function () { - - var a = Cryptiles.randomString(50000); - var b = Cryptiles.randomString(150000); - - it('should take the same amount of time comparing different string sizes', function (done) { - - var now = Date.now(); - Cryptiles.fixedTimeComparison(b, a); - var t1 = Date.now() - now; - - now = Date.now(); - Cryptiles.fixedTimeComparison(b, b); - var t2 = Date.now() - now; - - expect(t2 - t1).to.be.within(-20, 20); - done(); - }); - - it('should return true for equal strings', function (done) { - - expect(Cryptiles.fixedTimeComparison(a, a)).to.equal(true); - done(); - }); - - it('should return false for different strings (size, a < b)', function (done) { - - expect(Cryptiles.fixedTimeComparison(a, a + 'x')).to.equal(false); - done(); - }); - - it('should return false for different strings (size, a > b)', function (done) { - - expect(Cryptiles.fixedTimeComparison(a + 'x', a)).to.equal(false); - done(); - }); - - it('should return false for different strings (size, a = b)', function (done) { - - expect(Cryptiles.fixedTimeComparison(a + 'x', a + 'y')).to.equal(false); - done(); - }); - - it('should return false when not a string', function (done) { - - expect(Cryptiles.fixedTimeComparison('x', null)).to.equal(false); - done(); - }); - - it('should return false when not a string (left)', function (done) { - - expect(Cryptiles.fixedTimeComparison(null, 'x')).to.equal(false); - done(); - }); -}); diff --git a/node_modules/css/History.md b/node_modules/css/History.md deleted file mode 100644 index f2819e9..0000000 --- a/node_modules/css/History.md +++ /dev/null @@ -1,70 +0,0 @@ -2.2.0 / 2015-02-18 -==== - - * add `parsingErrors` to list errors when parsing with `silent: true` - * accept EOL characters and all other whitespace characters in `@` rules such - as `@media` - -2.1.0 / 2014-08-05 -================== - - * change error message format and add `.reason` property to errors - * add `inputSourcemaps` option to disable input source map processing - * use `inherits` for inheritance (fixes some browsers) - * add `sourcemap: 'generator'` option to return the `SourceMapGenerator` - object - -2.0.0 / 2014-06-18 -================== - - * add non-enumerable parent reference to each node - * drop Component(1) support - * add support for @custom-media, @host, and @font-face - * allow commas inside selector functions - * allow empty property values - * changed default options.position value to true - * remove comments from properties and values - * asserts when selectors are missing - * added node.position.content property - * absorb css-parse and css-stringify libraries - * apply original source maps from source files - -1.6.1 / 2014-01-02 -================== - - * fix component.json - -1.6.0 / 2013-12-21 -================== - - * update deps - -1.5.0 / 2013-12-03 -================== - - * update deps - -1.1.0 / 2013-04-04 -================== - - * update deps - -1.0.7 / 2012-11-21 -================== - - * fix component.json - -1.0.4 / 2012-11-15 -================== - - * update css-stringify - -1.0.3 / 2012-09-01 -================== - - * add component support - -0.0.1 / 2010-01-03 -================== - - * Initial release diff --git a/node_modules/css/LICENSE b/node_modules/css/LICENSE deleted file mode 100644 index 0239d9c..0000000 --- a/node_modules/css/LICENSE +++ /dev/null @@ -1,9 +0,0 @@ -(The MIT License) - -Copyright (c) 2012 TJ Holowaychuk - -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/css/Readme.md b/node_modules/css/Readme.md deleted file mode 100644 index 0db55e4..0000000 --- a/node_modules/css/Readme.md +++ /dev/null @@ -1,314 +0,0 @@ -# css [![Build Status](https://travis-ci.org/reworkcss/css.svg?branch=master)](https://travis-ci.org/reworkcss/css) - -CSS parser / stringifier. - -## Installation - - $ npm install css - -## Usage - -```js -var css = require('css'); -var obj = css.parse('body { font-size: 12px; }', options); -css.stringify(obj, options); -``` - -## API - -### css.parse(code, [options]) - -Accepts a CSS string and returns an AST `object`. - -`options`: - -- silent: silently fail on parse errors. -- source: the path to the file containing `css`. Makes errors and source - maps more helpful, by letting them know where code comes from. - -### css.stringify(object, [options]) - -Accepts an AST `object` (as `css.parse` produces) and returns a CSS string. - -`options`: - -- indent: the string used to indent the output. Defaults to two spaces. -- compress: omit comments and extraneous whitespace. -- sourcemap: return a sourcemap along with the CSS output. Using the `source` - option of `css.parse` is strongly recommended when creating a source map. - Specify `sourcemap: 'generator'` to return the SourceMapGenerator object - instead of serializing the source map. -- inputSourcemaps: (enabled by default, specify `false` to disable) reads any - source maps referenced by the input files when generating the output source - map. When enabled, file system access may be required for reading the - referenced source maps. - -### Example - -```js -var ast = css.parse('body { font-size: 12px; }', { source: 'source.css' }); - -var css = css.stringify(ast); - -var result = css.stringify(ast, { sourcemap: true }); -result.code // string with CSS -result.map // source map object -``` - -### Errors - -Errors thrown during parsing have the following properties: - -- message: `String`. The full error message with the source position. -- reason: `String`. The error message without position. -- filename: `String` or `undefined`. The value of `options.source` if - passed to `css.parse`. Otherwise `undefined`. -- line: `Integer`. -- column: `Integer`. -- source: `String`. The portion of code that couldn't be parsed. - -When parsing with the `silent` option, errors are listed in the -`parsingErrors` property of the [`stylesheet`](#stylesheet) node instead -of being thrown. - -If you create any errors in plugins such as in -[rework](https://github.com/reworkcss/rework), you __must__ set the same -properties for consistency. - -## AST - -Interactively explore the AST with . - -### Common properties - -All nodes have the following properties. - -#### position - -Information about the position in the source string that corresponds to -the node. - -`Object`: - -- start: `Object`: - - line: `Number`. - - column: `Number`. -- end: `Object`: - - line: `Number`. - - column: `Number`. -- source: `String` or `undefined`. The value of `options.source` if passed to - `css.parse`. Otherwise `undefined`. -- content: `String`. The full source string passed to `css.parse`. - -The line and column numbers are 1-based: The first line is 1 and the first -column of a line is 1 (not 0). - -The `position` property lets you know from which source file the node comes -from (if available), what that file contains, and what part of that file was -parsed into the node. - -#### type - -`String`. The possible values are the ones listed in the Types section below. - -#### parent - -A reference to the parent node, or `null` if the node has no parent. - -### Types - -The available values of `node.type` are listed below, as well as the available -properties of each node (other than the common properties listed above.) - -#### stylesheet - -The root node returned by `css.parse`. - -- stylesheet: `Object`: - - rules: `Array` of nodes with the types `rule`, `comment` and any of the - at-rule types. - - parsingErrors: `Array` of `Error`s. Errors collected during parsing when - option `silent` is true. - -#### rule - -- selectors: `Array` of `String`s. The list of selectors of the rule, split - on commas. Each selector is trimmed from whitespace and comments. -- declarations: `Array` of nodes with the types `declaration` and `comment`. - -#### declaration - -- property: `String`. The property name, trimmed from whitespace and - comments. May not be empty. -- value: `String`. The value of the property, trimmed from whitespace and - comments. Empty values are allowed. - -#### comment - -A rule-level or declaration-level comment. Comments inside selectors, -properties and values etc. are lost. - -- comment: `String`. The part between the starting `/*` and the ending `*/` - of the comment, including whitespace. - -#### charset - -The `@charset` at-rule. - -- charset: `String`. The part following `@charset `. - -#### custom-media - -The `@custom-media` at-rule. - -- name: `String`. The `--`-prefixed name. -- media: `String`. The part following the name. - -#### document - -The `@document` at-rule. - -- document: `String`. The part following `@document `. -- vendor: `String` or `undefined`. The vendor prefix in `@document`, or - `undefined` if there is none. -- rules: `Array` of nodes with the types `rule`, `comment` and any of the - at-rule types. - -#### font-face - -The `@font-face` at-rule. - -- declarations: `Array` of nodes with the types `declaration` and `comment`. - -#### host - -The `@host` at-rule. - -- rules: `Array` of nodes with the types `rule`, `comment` and any of the - at-rule types. - -#### import - -The `@import` at-rule. - -- import: `String`. The part following `@import `. - -#### keyframes - -The `@keyframes` at-rule. - -- name: `String`. The name of the keyframes rule. -- vendor: `String` or `undefined`. The vendor prefix in `@keyframes`, or - `undefined` if there is none. -- keyframes: `Array` of nodes with the types `keyframe` and `comment`. - -#### keyframe - -- values: `Array` of `String`s. The list of “selectors” of the keyframe rule, - split on commas. Each “selector” is trimmed from whitespace. -- declarations: `Array` of nodes with the types `declaration` and `comment`. - -#### media - -The `@media` at-rule. - -- media: `String`. The part following `@media `. -- rules: `Array` of nodes with the types `rule`, `comment` and any of the - at-rule types. - -#### namespace - -The `@namespace` at-rule. - -- namespace: `String`. The part following `@namespace `. - -#### page - -The `@page` at-rule. - -- selectors: `Array` of `String`s. The list of selectors of the rule, split - on commas. Each selector is trimmed from whitespace and comments. -- declarations: `Array` of nodes with the types `declaration` and `comment`. - -#### supports - -The `@supports` at-rule. - -- supports: `String`. The part following `@supports `. -- rules: `Array` of nodes with the types `rule`, `comment` and any of the - at-rule types. - -### Example - -CSS: - -```css -body { - background: #eee; - color: #888; -} -``` - -Parse tree: - -```json -{ - "type": "stylesheet", - "stylesheet": { - "rules": [ - { - "type": "rule", - "selectors": [ - "body" - ], - "declarations": [ - { - "type": "declaration", - "property": "background", - "value": "#eee", - "position": { - "start": { - "line": 2, - "column": 3 - }, - "end": { - "line": 2, - "column": 19 - } - } - }, - { - "type": "declaration", - "property": "color", - "value": "#888", - "position": { - "start": { - "line": 3, - "column": 3 - }, - "end": { - "line": 3, - "column": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 4, - "column": 2 - } - } - } - ] - } -} -``` - -## License - -MIT diff --git a/node_modules/css/index.js b/node_modules/css/index.js deleted file mode 100644 index f728a16..0000000 --- a/node_modules/css/index.js +++ /dev/null @@ -1,2 +0,0 @@ -exports.parse = require('./lib/parse'); -exports.stringify = require('./lib/stringify'); diff --git a/node_modules/css/lib/parse/index.js b/node_modules/css/lib/parse/index.js deleted file mode 100644 index 31e0ad6..0000000 --- a/node_modules/css/lib/parse/index.js +++ /dev/null @@ -1,602 +0,0 @@ -// http://www.w3.org/TR/CSS21/grammar.html -// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027 -var commentre = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g - -module.exports = function(css, options){ - options = options || {}; - - /** - * Positional. - */ - - var lineno = 1; - var column = 1; - - /** - * Update lineno and column based on `str`. - */ - - function updatePosition(str) { - var lines = str.match(/\n/g); - if (lines) lineno += lines.length; - var i = str.lastIndexOf('\n'); - column = ~i ? str.length - i : column + str.length; - } - - /** - * Mark position and patch `node.position`. - */ - - function position() { - var start = { line: lineno, column: column }; - return function(node){ - node.position = new Position(start); - whitespace(); - return node; - }; - } - - /** - * Store position information for a node - */ - - function Position(start) { - this.start = start; - this.end = { line: lineno, column: column }; - this.source = options.source; - } - - /** - * Non-enumerable source string - */ - - Position.prototype.content = css; - - /** - * Error `msg`. - */ - - var errorsList = []; - - function error(msg) { - var err = new Error(options.source + ':' + lineno + ':' + column + ': ' + msg); - err.reason = msg; - err.filename = options.source; - err.line = lineno; - err.column = column; - err.source = css; - - if (options.silent) { - errorsList.push(err); - } else { - throw err; - } - } - - /** - * Parse stylesheet. - */ - - function stylesheet() { - var rulesList = rules(); - - return { - type: 'stylesheet', - stylesheet: { - rules: rulesList, - parsingErrors: errorsList - } - }; - } - - /** - * Opening brace. - */ - - function open() { - return match(/^{\s*/); - } - - /** - * Closing brace. - */ - - function close() { - return match(/^}/); - } - - /** - * Parse ruleset. - */ - - function rules() { - var node; - var rules = []; - whitespace(); - comments(rules); - while (css.length && css.charAt(0) != '}' && (node = atrule() || rule())) { - if (node !== false) { - rules.push(node); - comments(rules); - } - } - return rules; - } - - /** - * Match `re` and return captures. - */ - - function match(re) { - var m = re.exec(css); - if (!m) return; - var str = m[0]; - updatePosition(str); - css = css.slice(str.length); - return m; - } - - /** - * Parse whitespace. - */ - - function whitespace() { - match(/^\s*/); - } - - /** - * Parse comments; - */ - - function comments(rules) { - var c; - rules = rules || []; - while (c = comment()) { - if (c !== false) { - rules.push(c); - } - } - return rules; - } - - /** - * Parse comment. - */ - - function comment() { - var pos = position(); - if ('/' != css.charAt(0) || '*' != css.charAt(1)) return; - - var i = 2; - while ("" != css.charAt(i) && ('*' != css.charAt(i) || '/' != css.charAt(i + 1))) ++i; - i += 2; - - if ("" === css.charAt(i-1)) { - return error('End of comment missing'); - } - - var str = css.slice(2, i - 2); - column += 2; - updatePosition(str); - css = css.slice(i); - column += 2; - - return pos({ - type: 'comment', - comment: str - }); - } - - /** - * Parse selector. - */ - - function selector() { - var m = match(/^([^{]+)/); - if (!m) return; - /* @fix Remove all comments from selectors - * http://ostermiller.org/findcomment.html */ - return trim(m[0]) - .replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g, '') - .replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g, function(m) { - return m.replace(/,/g, '\u200C'); - }) - .split(/\s*(?![^(]*\)),\s*/) - .map(function(s) { - return s.replace(/\u200C/g, ','); - }); - } - - /** - * Parse declaration. - */ - - function declaration() { - var pos = position(); - - // prop - var prop = match(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/); - if (!prop) return; - prop = trim(prop[0]); - - // : - if (!match(/^:\s*/)) return error("property missing ':'"); - - // val - var val = match(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/); - - var ret = pos({ - type: 'declaration', - property: prop.replace(commentre, ''), - value: val ? trim(val[0]).replace(commentre, '') : '' - }); - - // ; - match(/^[;\s]*/); - - return ret; - } - - /** - * Parse declarations. - */ - - function declarations() { - var decls = []; - - if (!open()) return error("missing '{'"); - comments(decls); - - // declarations - var decl; - while (decl = declaration()) { - if (decl !== false) { - decls.push(decl); - comments(decls); - } - } - - if (!close()) return error("missing '}'"); - return decls; - } - - /** - * Parse keyframe. - */ - - function keyframe() { - var m; - var vals = []; - var pos = position(); - - while (m = match(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/)) { - vals.push(m[1]); - match(/^,\s*/); - } - - if (!vals.length) return; - - return pos({ - type: 'keyframe', - values: vals, - declarations: declarations() - }); - } - - /** - * Parse keyframes. - */ - - function atkeyframes() { - var pos = position(); - var m = match(/^@([-\w]+)?keyframes\s*/); - - if (!m) return; - var vendor = m[1]; - - // identifier - var m = match(/^([-\w]+)\s*/); - if (!m) return error("@keyframes missing name"); - var name = m[1]; - - if (!open()) return error("@keyframes missing '{'"); - - var frame; - var frames = comments(); - while (frame = keyframe()) { - frames.push(frame); - frames = frames.concat(comments()); - } - - if (!close()) return error("@keyframes missing '}'"); - - return pos({ - type: 'keyframes', - name: name, - vendor: vendor, - keyframes: frames - }); - } - - /** - * Parse supports. - */ - - function atsupports() { - var pos = position(); - var m = match(/^@supports *([^{]+)/); - - if (!m) return; - var supports = trim(m[1]); - - if (!open()) return error("@supports missing '{'"); - - var style = comments().concat(rules()); - - if (!close()) return error("@supports missing '}'"); - - return pos({ - type: 'supports', - supports: supports, - rules: style - }); - } - - /** - * Parse host. - */ - - function athost() { - var pos = position(); - var m = match(/^@host\s*/); - - if (!m) return; - - if (!open()) return error("@host missing '{'"); - - var style = comments().concat(rules()); - - if (!close()) return error("@host missing '}'"); - - return pos({ - type: 'host', - rules: style - }); - } - - /** - * Parse media. - */ - - function atmedia() { - var pos = position(); - var m = match(/^@media *([^{]+)/); - - if (!m) return; - var media = trim(m[1]); - - if (!open()) return error("@media missing '{'"); - - var style = comments().concat(rules()); - - if (!close()) return error("@media missing '}'"); - - return pos({ - type: 'media', - media: media, - rules: style - }); - } - - - /** - * Parse custom-media. - */ - - function atcustommedia() { - var pos = position(); - var m = match(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/); - if (!m) return; - - return pos({ - type: 'custom-media', - name: trim(m[1]), - media: trim(m[2]) - }); - } - - /** - * Parse paged media. - */ - - function atpage() { - var pos = position(); - var m = match(/^@page */); - if (!m) return; - - var sel = selector() || []; - - if (!open()) return error("@page missing '{'"); - var decls = comments(); - - // declarations - var decl; - while (decl = declaration()) { - decls.push(decl); - decls = decls.concat(comments()); - } - - if (!close()) return error("@page missing '}'"); - - return pos({ - type: 'page', - selectors: sel, - declarations: decls - }); - } - - /** - * Parse document. - */ - - function atdocument() { - var pos = position(); - var m = match(/^@([-\w]+)?document *([^{]+)/); - if (!m) return; - - var vendor = trim(m[1]); - var doc = trim(m[2]); - - if (!open()) return error("@document missing '{'"); - - var style = comments().concat(rules()); - - if (!close()) return error("@document missing '}'"); - - return pos({ - type: 'document', - document: doc, - vendor: vendor, - rules: style - }); - } - - /** - * Parse font-face. - */ - - function atfontface() { - var pos = position(); - var m = match(/^@font-face\s*/); - if (!m) return; - - if (!open()) return error("@font-face missing '{'"); - var decls = comments(); - - // declarations - var decl; - while (decl = declaration()) { - decls.push(decl); - decls = decls.concat(comments()); - } - - if (!close()) return error("@font-face missing '}'"); - - return pos({ - type: 'font-face', - declarations: decls - }); - } - - /** - * Parse import - */ - - var atimport = _compileAtrule('import'); - - /** - * Parse charset - */ - - var atcharset = _compileAtrule('charset'); - - /** - * Parse namespace - */ - - var atnamespace = _compileAtrule('namespace'); - - /** - * Parse non-block at-rules - */ - - - function _compileAtrule(name) { - var re = new RegExp('^@' + name + '\\s*([^;]+);'); - return function() { - var pos = position(); - var m = match(re); - if (!m) return; - var ret = { type: name }; - ret[name] = m[1].trim(); - return pos(ret); - } - } - - /** - * Parse at rule. - */ - - function atrule() { - if (css[0] != '@') return; - - return atkeyframes() - || atmedia() - || atcustommedia() - || atsupports() - || atimport() - || atcharset() - || atnamespace() - || atdocument() - || atpage() - || athost() - || atfontface(); - } - - /** - * Parse rule. - */ - - function rule() { - var pos = position(); - var sel = selector(); - - if (!sel) return error('selector missing'); - comments(); - - return pos({ - type: 'rule', - selectors: sel, - declarations: declarations() - }); - } - - return addParent(stylesheet()); -}; - -/** - * Trim `str`. - */ - -function trim(str) { - return str ? str.replace(/^\s+|\s+$/g, '') : ''; -} - -/** - * Adds non-enumerable parent node reference to each node. - */ - -function addParent(obj, parent) { - var isNode = obj && typeof obj.type === 'string'; - var childParent = isNode ? obj : parent; - - for (var k in obj) { - var value = obj[k]; - if (Array.isArray(value)) { - value.forEach(function(v) { addParent(v, childParent); }); - } else if (value && typeof value === 'object') { - addParent(value, childParent); - } - } - - if (isNode) { - Object.defineProperty(obj, 'parent', { - configurable: true, - writable: true, - enumerable: false, - value: parent || null - }); - } - - return obj; -} diff --git a/node_modules/css/lib/stringify/compiler.js b/node_modules/css/lib/stringify/compiler.js deleted file mode 100644 index 6d01a14..0000000 --- a/node_modules/css/lib/stringify/compiler.js +++ /dev/null @@ -1,50 +0,0 @@ - -/** - * Expose `Compiler`. - */ - -module.exports = Compiler; - -/** - * Initialize a compiler. - * - * @param {Type} name - * @return {Type} - * @api public - */ - -function Compiler(opts) { - this.options = opts || {}; -} - -/** - * Emit `str` - */ - -Compiler.prototype.emit = function(str) { - return str; -}; - -/** - * Visit `node`. - */ - -Compiler.prototype.visit = function(node){ - return this[node.type](node); -}; - -/** - * Map visit over array of `nodes`, optionally using a `delim` - */ - -Compiler.prototype.mapVisit = function(nodes, delim){ - var buf = ''; - delim = delim || ''; - - for (var i = 0, length = nodes.length; i < length; i++) { - buf += this.visit(nodes[i]); - if (delim && i < length - 1) buf += this.emit(delim); - } - - return buf; -}; diff --git a/node_modules/css/lib/stringify/compress.js b/node_modules/css/lib/stringify/compress.js deleted file mode 100644 index 929b4a2..0000000 --- a/node_modules/css/lib/stringify/compress.js +++ /dev/null @@ -1,199 +0,0 @@ - -/** - * Module dependencies. - */ - -var Base = require('./compiler'); -var inherits = require('inherits'); - -/** - * Expose compiler. - */ - -module.exports = Compiler; - -/** - * Initialize a new `Compiler`. - */ - -function Compiler(options) { - Base.call(this, options); -} - -/** - * Inherit from `Base.prototype`. - */ - -inherits(Compiler, Base); - -/** - * Compile `node`. - */ - -Compiler.prototype.compile = function(node){ - return node.stylesheet - .rules.map(this.visit, this) - .join(''); -}; - -/** - * Visit comment node. - */ - -Compiler.prototype.comment = function(node){ - return this.emit('', node.position); -}; - -/** - * Visit import node. - */ - -Compiler.prototype.import = function(node){ - return this.emit('@import ' + node.import + ';', node.position); -}; - -/** - * Visit media node. - */ - -Compiler.prototype.media = function(node){ - return this.emit('@media ' + node.media, node.position) - + this.emit('{') - + this.mapVisit(node.rules) - + this.emit('}'); -}; - -/** - * Visit document node. - */ - -Compiler.prototype.document = function(node){ - var doc = '@' + (node.vendor || '') + 'document ' + node.document; - - return this.emit(doc, node.position) - + this.emit('{') - + this.mapVisit(node.rules) - + this.emit('}'); -}; - -/** - * Visit charset node. - */ - -Compiler.prototype.charset = function(node){ - return this.emit('@charset ' + node.charset + ';', node.position); -}; - -/** - * Visit namespace node. - */ - -Compiler.prototype.namespace = function(node){ - return this.emit('@namespace ' + node.namespace + ';', node.position); -}; - -/** - * Visit supports node. - */ - -Compiler.prototype.supports = function(node){ - return this.emit('@supports ' + node.supports, node.position) - + this.emit('{') - + this.mapVisit(node.rules) - + this.emit('}'); -}; - -/** - * Visit keyframes node. - */ - -Compiler.prototype.keyframes = function(node){ - return this.emit('@' - + (node.vendor || '') - + 'keyframes ' - + node.name, node.position) - + this.emit('{') - + this.mapVisit(node.keyframes) - + this.emit('}'); -}; - -/** - * Visit keyframe node. - */ - -Compiler.prototype.keyframe = function(node){ - var decls = node.declarations; - - return this.emit(node.values.join(','), node.position) - + this.emit('{') - + this.mapVisit(decls) - + this.emit('}'); -}; - -/** - * Visit page node. - */ - -Compiler.prototype.page = function(node){ - var sel = node.selectors.length - ? node.selectors.join(', ') - : ''; - - return this.emit('@page ' + sel, node.position) - + this.emit('{') - + this.mapVisit(node.declarations) - + this.emit('}'); -}; - -/** - * Visit font-face node. - */ - -Compiler.prototype['font-face'] = function(node){ - return this.emit('@font-face', node.position) - + this.emit('{') - + this.mapVisit(node.declarations) - + this.emit('}'); -}; - -/** - * Visit host node. - */ - -Compiler.prototype.host = function(node){ - return this.emit('@host', node.position) - + this.emit('{') - + this.mapVisit(node.rules) - + this.emit('}'); -}; - -/** - * Visit custom-media node. - */ - -Compiler.prototype['custom-media'] = function(node){ - return this.emit('@custom-media ' + node.name + ' ' + node.media + ';', node.position); -}; - -/** - * Visit rule node. - */ - -Compiler.prototype.rule = function(node){ - var decls = node.declarations; - if (!decls.length) return ''; - - return this.emit(node.selectors.join(','), node.position) - + this.emit('{') - + this.mapVisit(decls) - + this.emit('}'); -}; - -/** - * Visit declaration node. - */ - -Compiler.prototype.declaration = function(node){ - return this.emit(node.property + ':' + node.value, node.position) + this.emit(';'); -}; - diff --git a/node_modules/css/lib/stringify/identity.js b/node_modules/css/lib/stringify/identity.js deleted file mode 100644 index b390c91..0000000 --- a/node_modules/css/lib/stringify/identity.js +++ /dev/null @@ -1,254 +0,0 @@ - -/** - * Module dependencies. - */ - -var Base = require('./compiler'); -var inherits = require('inherits'); - -/** - * Expose compiler. - */ - -module.exports = Compiler; - -/** - * Initialize a new `Compiler`. - */ - -function Compiler(options) { - options = options || {}; - Base.call(this, options); - this.indentation = options.indent; -} - -/** - * Inherit from `Base.prototype`. - */ - -inherits(Compiler, Base); - -/** - * Compile `node`. - */ - -Compiler.prototype.compile = function(node){ - return this.stylesheet(node); -}; - -/** - * Visit stylesheet node. - */ - -Compiler.prototype.stylesheet = function(node){ - return this.mapVisit(node.stylesheet.rules, '\n\n'); -}; - -/** - * Visit comment node. - */ - -Compiler.prototype.comment = function(node){ - return this.emit(this.indent() + '/*' + node.comment + '*/', node.position); -}; - -/** - * Visit import node. - */ - -Compiler.prototype.import = function(node){ - return this.emit('@import ' + node.import + ';', node.position); -}; - -/** - * Visit media node. - */ - -Compiler.prototype.media = function(node){ - return this.emit('@media ' + node.media, node.position) - + this.emit( - ' {\n' - + this.indent(1)) - + this.mapVisit(node.rules, '\n\n') - + this.emit( - this.indent(-1) - + '\n}'); -}; - -/** - * Visit document node. - */ - -Compiler.prototype.document = function(node){ - var doc = '@' + (node.vendor || '') + 'document ' + node.document; - - return this.emit(doc, node.position) - + this.emit( - ' ' - + ' {\n' - + this.indent(1)) - + this.mapVisit(node.rules, '\n\n') - + this.emit( - this.indent(-1) - + '\n}'); -}; - -/** - * Visit charset node. - */ - -Compiler.prototype.charset = function(node){ - return this.emit('@charset ' + node.charset + ';', node.position); -}; - -/** - * Visit namespace node. - */ - -Compiler.prototype.namespace = function(node){ - return this.emit('@namespace ' + node.namespace + ';', node.position); -}; - -/** - * Visit supports node. - */ - -Compiler.prototype.supports = function(node){ - return this.emit('@supports ' + node.supports, node.position) - + this.emit( - ' {\n' - + this.indent(1)) - + this.mapVisit(node.rules, '\n\n') - + this.emit( - this.indent(-1) - + '\n}'); -}; - -/** - * Visit keyframes node. - */ - -Compiler.prototype.keyframes = function(node){ - return this.emit('@' + (node.vendor || '') + 'keyframes ' + node.name, node.position) - + this.emit( - ' {\n' - + this.indent(1)) - + this.mapVisit(node.keyframes, '\n') - + this.emit( - this.indent(-1) - + '}'); -}; - -/** - * Visit keyframe node. - */ - -Compiler.prototype.keyframe = function(node){ - var decls = node.declarations; - - return this.emit(this.indent()) - + this.emit(node.values.join(', '), node.position) - + this.emit( - ' {\n' - + this.indent(1)) - + this.mapVisit(decls, '\n') - + this.emit( - this.indent(-1) - + '\n' - + this.indent() + '}\n'); -}; - -/** - * Visit page node. - */ - -Compiler.prototype.page = function(node){ - var sel = node.selectors.length - ? node.selectors.join(', ') + ' ' - : ''; - - return this.emit('@page ' + sel, node.position) - + this.emit('{\n') - + this.emit(this.indent(1)) - + this.mapVisit(node.declarations, '\n') - + this.emit(this.indent(-1)) - + this.emit('\n}'); -}; - -/** - * Visit font-face node. - */ - -Compiler.prototype['font-face'] = function(node){ - return this.emit('@font-face ', node.position) - + this.emit('{\n') - + this.emit(this.indent(1)) - + this.mapVisit(node.declarations, '\n') - + this.emit(this.indent(-1)) - + this.emit('\n}'); -}; - -/** - * Visit host node. - */ - -Compiler.prototype.host = function(node){ - return this.emit('@host', node.position) - + this.emit( - ' {\n' - + this.indent(1)) - + this.mapVisit(node.rules, '\n\n') - + this.emit( - this.indent(-1) - + '\n}'); -}; - -/** - * Visit custom-media node. - */ - -Compiler.prototype['custom-media'] = function(node){ - return this.emit('@custom-media ' + node.name + ' ' + node.media + ';', node.position); -}; - -/** - * Visit rule node. - */ - -Compiler.prototype.rule = function(node){ - var indent = this.indent(); - var decls = node.declarations; - if (!decls.length) return ''; - - return this.emit(node.selectors.map(function(s){ return indent + s }).join(',\n'), node.position) - + this.emit(' {\n') - + this.emit(this.indent(1)) - + this.mapVisit(decls, '\n') - + this.emit(this.indent(-1)) - + this.emit('\n' + this.indent() + '}'); -}; - -/** - * Visit declaration node. - */ - -Compiler.prototype.declaration = function(node){ - return this.emit(this.indent()) - + this.emit(node.property + ': ' + node.value, node.position) - + this.emit(';'); -}; - -/** - * Increase, decrease or return current indentation. - */ - -Compiler.prototype.indent = function(level) { - this.level = this.level || 1; - - if (null != level) { - this.level += level; - return ''; - } - - return Array(this.level).join(this.indentation || ' '); -}; diff --git a/node_modules/css/lib/stringify/index.js b/node_modules/css/lib/stringify/index.js deleted file mode 100644 index deffb95..0000000 --- a/node_modules/css/lib/stringify/index.js +++ /dev/null @@ -1,47 +0,0 @@ - -/** - * Module dependencies. - */ - -var Compressed = require('./compress'); -var Identity = require('./identity'); - -/** - * Stringfy the given AST `node`. - * - * Options: - * - * - `compress` space-optimized output - * - `sourcemap` return an object with `.code` and `.map` - * - * @param {Object} node - * @param {Object} [options] - * @return {String} - * @api public - */ - -module.exports = function(node, options){ - options = options || {}; - - var compiler = options.compress - ? new Compressed(options) - : new Identity(options); - - // source maps - if (options.sourcemap) { - var sourcemaps = require('./source-map-support'); - sourcemaps(compiler); - - var code = compiler.compile(node); - compiler.applySourceMaps(); - - var map = options.sourcemap === 'generator' - ? compiler.map - : compiler.map.toJSON(); - - return { code: code, map: map }; - } - - var code = compiler.compile(node); - return code; -}; diff --git a/node_modules/css/lib/stringify/source-map-support.js b/node_modules/css/lib/stringify/source-map-support.js deleted file mode 100644 index 07016ee..0000000 --- a/node_modules/css/lib/stringify/source-map-support.js +++ /dev/null @@ -1,126 +0,0 @@ - -/** - * Module dependencies. - */ - -var SourceMap = require('source-map').SourceMapGenerator; -var SourceMapConsumer = require('source-map').SourceMapConsumer; -var sourceMapResolve = require('source-map-resolve'); -var urix = require('urix'); -var fs = require('fs'); -var path = require('path'); - -/** - * Expose `mixin()`. - */ - -module.exports = mixin; - -/** - * Mixin source map support into `compiler`. - * - * @param {Compiler} compiler - * @api public - */ - -function mixin(compiler) { - compiler._comment = compiler.comment; - compiler.map = new SourceMap(); - compiler.position = { line: 1, column: 1 }; - compiler.files = {}; - for (var k in exports) compiler[k] = exports[k]; -} - -/** - * Update position. - * - * @param {String} str - * @api private - */ - -exports.updatePosition = function(str) { - var lines = str.match(/\n/g); - if (lines) this.position.line += lines.length; - var i = str.lastIndexOf('\n'); - this.position.column = ~i ? str.length - i : this.position.column + str.length; -}; - -/** - * Emit `str`. - * - * @param {String} str - * @param {Object} [pos] - * @return {String} - * @api private - */ - -exports.emit = function(str, pos) { - if (pos) { - var sourceFile = urix(pos.source || 'source.css'); - - this.map.addMapping({ - source: sourceFile, - generated: { - line: this.position.line, - column: Math.max(this.position.column - 1, 0) - }, - original: { - line: pos.start.line, - column: pos.start.column - 1 - } - }); - - this.addFile(sourceFile, pos); - } - - this.updatePosition(str); - - return str; -}; - -/** - * Adds a file to the source map output if it has not already been added - * @param {String} file - * @param {Object} pos - */ - -exports.addFile = function(file, pos) { - if (typeof pos.content !== 'string') return; - if (Object.prototype.hasOwnProperty.call(this.files, file)) return; - - this.files[file] = pos.content; -}; - -/** - * Applies any original source maps to the output and embeds the source file - * contents in the source map. - */ - -exports.applySourceMaps = function() { - Object.keys(this.files).forEach(function(file) { - var content = this.files[file]; - this.map.setSourceContent(file, content); - - if (this.options.inputSourcemaps !== false) { - var originalMap = sourceMapResolve.resolveSync( - content, file, fs.readFileSync); - if (originalMap) { - var map = new SourceMapConsumer(originalMap.map); - var relativeTo = originalMap.sourcesRelativeTo; - this.map.applySourceMap(map, file, urix(path.dirname(relativeTo))); - } - } - }, this); -}; - -/** - * Process comments, drops sourceMap comments. - * @param {Object} node - */ - -exports.comment = function(node) { - if (/^# sourceMappingURL=/.test(node.comment)) - return this.emit('', node.position); - else - return this._comment(node); -}; diff --git a/node_modules/css/node_modules/source-map/.npmignore b/node_modules/css/node_modules/source-map/.npmignore deleted file mode 100644 index 3dddf3f..0000000 --- a/node_modules/css/node_modules/source-map/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -dist/* -node_modules/* diff --git a/node_modules/css/node_modules/source-map/.travis.yml b/node_modules/css/node_modules/source-map/.travis.yml deleted file mode 100644 index ddc9c4f..0000000 --- a/node_modules/css/node_modules/source-map/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - 0.8 - - "0.10" \ No newline at end of file diff --git a/node_modules/css/node_modules/source-map/CHANGELOG.md b/node_modules/css/node_modules/source-map/CHANGELOG.md deleted file mode 100644 index 2e7ca5d..0000000 --- a/node_modules/css/node_modules/source-map/CHANGELOG.md +++ /dev/null @@ -1,194 +0,0 @@ -# Change Log - -## 0.1.43 - -* Performance improvements for `SourceMapGenerator` and `SourceNode`. See issue - #148 for some discussion and issues #150, #151, and #152 for implementations. - -## 0.1.42 - -* Fix an issue where `SourceNode`s from different versions of the source-map - library couldn't be used in conjunction with each other. See issue #142. - -## 0.1.41 - -* Fix a bug with getting the source content of relative sources with a "./" - prefix. See issue #145 and [Bug 1090768](bugzil.la/1090768). - -* Add the `SourceMapConsumer.prototype.computeColumnSpans` method to compute the - column span of each mapping. - -* Add the `SourceMapConsumer.prototype.allGeneratedPositionsFor` method to find - all generated positions associated with a given original source and line. - -## 0.1.40 - -* Performance improvements for parsing source maps in SourceMapConsumer. - -## 0.1.39 - -* Fix a bug where setting a source's contents to null before any source content - had been set before threw a TypeError. See issue #131. - -## 0.1.38 - -* Fix a bug where finding relative paths from an empty path were creating - absolute paths. See issue #129. - -## 0.1.37 - -* Fix a bug where if the source root was an empty string, relative source paths - would turn into absolute source paths. Issue #124. - -## 0.1.36 - -* Allow the `names` mapping property to be an empty string. Issue #121. - -## 0.1.35 - -* A third optional parameter was added to `SourceNode.fromStringWithSourceMap` - to specify a path that relative sources in the second parameter should be - relative to. Issue #105. - -* If no file property is given to a `SourceMapGenerator`, then the resulting - source map will no longer have a `null` file property. The property will - simply not exist. Issue #104. - -* Fixed a bug where consecutive newlines were ignored in `SourceNode`s. - Issue #116. - -## 0.1.34 - -* Make `SourceNode` work with windows style ("\r\n") newlines. Issue #103. - -* Fix bug involving source contents and the - `SourceMapGenerator.prototype.applySourceMap`. Issue #100. - -## 0.1.33 - -* Fix some edge cases surrounding path joining and URL resolution. - -* Add a third parameter for relative path to - `SourceMapGenerator.prototype.applySourceMap`. - -* Fix issues with mappings and EOLs. - -## 0.1.32 - -* Fixed a bug where SourceMapConsumer couldn't handle negative relative columns - (issue 92). - -* Fixed test runner to actually report number of failed tests as its process - exit code. - -* Fixed a typo when reporting bad mappings (issue 87). - -## 0.1.31 - -* Delay parsing the mappings in SourceMapConsumer until queried for a source - location. - -* Support Sass source maps (which at the time of writing deviate from the spec - in small ways) in SourceMapConsumer. - -## 0.1.30 - -* Do not join source root with a source, when the source is a data URI. - -* Extend the test runner to allow running single specific test files at a time. - -* Performance improvements in `SourceNode.prototype.walk` and - `SourceMapConsumer.prototype.eachMapping`. - -* Source map browser builds will now work inside Workers. - -* Better error messages when attempting to add an invalid mapping to a - `SourceMapGenerator`. - -## 0.1.29 - -* Allow duplicate entries in the `names` and `sources` arrays of source maps - (usually from TypeScript) we are parsing. Fixes github issue 72. - -## 0.1.28 - -* Skip duplicate mappings when creating source maps from SourceNode; github - issue 75. - -## 0.1.27 - -* Don't throw an error when the `file` property is missing in SourceMapConsumer, - we don't use it anyway. - -## 0.1.26 - -* Fix SourceNode.fromStringWithSourceMap for empty maps. Fixes github issue 70. - -## 0.1.25 - -* Make compatible with browserify - -## 0.1.24 - -* Fix issue with absolute paths and `file://` URIs. See - https://bugzilla.mozilla.org/show_bug.cgi?id=885597 - -## 0.1.23 - -* Fix issue with absolute paths and sourcesContent, github issue 64. - -## 0.1.22 - -* Ignore duplicate mappings in SourceMapGenerator. Fixes github issue 21. - -## 0.1.21 - -* Fixed handling of sources that start with a slash so that they are relative to - the source root's host. - -## 0.1.20 - -* Fixed github issue #43: absolute URLs aren't joined with the source root - anymore. - -## 0.1.19 - -* Using Travis CI to run tests. - -## 0.1.18 - -* Fixed a bug in the handling of sourceRoot. - -## 0.1.17 - -* Added SourceNode.fromStringWithSourceMap. - -## 0.1.16 - -* Added missing documentation. - -* Fixed the generating of empty mappings in SourceNode. - -## 0.1.15 - -* Added SourceMapGenerator.applySourceMap. - -## 0.1.14 - -* The sourceRoot is now handled consistently. - -## 0.1.13 - -* Added SourceMapGenerator.fromSourceMap. - -## 0.1.12 - -* SourceNode now generates empty mappings too. - -## 0.1.11 - -* Added name support to SourceNode. - -## 0.1.10 - -* Added sourcesContent support to the customer and generator. diff --git a/node_modules/css/node_modules/source-map/LICENSE b/node_modules/css/node_modules/source-map/LICENSE deleted file mode 100644 index ed1b7cf..0000000 --- a/node_modules/css/node_modules/source-map/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ - -Copyright (c) 2009-2011, Mozilla Foundation and contributors -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 names of the Mozilla Foundation nor the names of project - 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 HOLDER 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. diff --git a/node_modules/css/node_modules/source-map/Makefile.dryice.js b/node_modules/css/node_modules/source-map/Makefile.dryice.js deleted file mode 100644 index d6fc26a..0000000 --- a/node_modules/css/node_modules/source-map/Makefile.dryice.js +++ /dev/null @@ -1,166 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -var path = require('path'); -var fs = require('fs'); -var copy = require('dryice').copy; - -function removeAmdefine(src) { - src = String(src).replace( - /if\s*\(typeof\s*define\s*!==\s*'function'\)\s*{\s*var\s*define\s*=\s*require\('amdefine'\)\(module,\s*require\);\s*}\s*/g, - ''); - src = src.replace( - /\b(define\(.*)('amdefine',?)/gm, - '$1'); - return src; -} -removeAmdefine.onRead = true; - -function makeNonRelative(src) { - return src - .replace(/require\('.\//g, 'require(\'source-map/') - .replace(/\.\.\/\.\.\/lib\//g, ''); -} -makeNonRelative.onRead = true; - -function buildBrowser() { - console.log('\nCreating dist/source-map.js'); - - var project = copy.createCommonJsProject({ - roots: [ path.join(__dirname, 'lib') ] - }); - - copy({ - source: [ - 'build/mini-require.js', - { - project: project, - require: [ 'source-map/source-map-generator', - 'source-map/source-map-consumer', - 'source-map/source-node'] - }, - 'build/suffix-browser.js' - ], - filter: [ - copy.filter.moduleDefines, - removeAmdefine - ], - dest: 'dist/source-map.js' - }); -} - -function buildBrowserMin() { - console.log('\nCreating dist/source-map.min.js'); - - copy({ - source: 'dist/source-map.js', - filter: copy.filter.uglifyjs, - dest: 'dist/source-map.min.js' - }); -} - -function buildFirefox() { - console.log('\nCreating dist/SourceMap.jsm'); - - var project = copy.createCommonJsProject({ - roots: [ path.join(__dirname, 'lib') ] - }); - - copy({ - source: [ - 'build/prefix-source-map.jsm', - { - project: project, - require: [ 'source-map/source-map-consumer', - 'source-map/source-map-generator', - 'source-map/source-node' ] - }, - 'build/suffix-source-map.jsm' - ], - filter: [ - copy.filter.moduleDefines, - removeAmdefine, - makeNonRelative - ], - dest: 'dist/SourceMap.jsm' - }); - - // Create dist/test/Utils.jsm - console.log('\nCreating dist/test/Utils.jsm'); - - project = copy.createCommonJsProject({ - roots: [ __dirname, path.join(__dirname, 'lib') ] - }); - - copy({ - source: [ - 'build/prefix-utils.jsm', - 'build/assert-shim.js', - { - project: project, - require: [ 'test/source-map/util' ] - }, - 'build/suffix-utils.jsm' - ], - filter: [ - copy.filter.moduleDefines, - removeAmdefine, - makeNonRelative - ], - dest: 'dist/test/Utils.jsm' - }); - - function isTestFile(f) { - return /^test\-.*?\.js/.test(f); - } - - var testFiles = fs.readdirSync(path.join(__dirname, 'test', 'source-map')).filter(isTestFile); - - testFiles.forEach(function (testFile) { - console.log('\nCreating', path.join('dist', 'test', testFile.replace(/\-/g, '_'))); - - copy({ - source: [ - 'build/test-prefix.js', - path.join('test', 'source-map', testFile), - 'build/test-suffix.js' - ], - filter: [ - removeAmdefine, - makeNonRelative, - function (input, source) { - return input.replace('define(', - 'define("' - + path.join('test', 'source-map', testFile.replace(/\.js$/, '')) - + '", ["require", "exports", "module"], '); - }, - function (input, source) { - return input.replace('{THIS_MODULE}', function () { - return "test/source-map/" + testFile.replace(/\.js$/, ''); - }); - } - ], - dest: path.join('dist', 'test', testFile.replace(/\-/g, '_')) - }); - }); -} - -function ensureDir(name) { - var dirExists = false; - try { - dirExists = fs.statSync(name).isDirectory(); - } catch (err) {} - - if (!dirExists) { - fs.mkdirSync(name, 0777); - } -} - -ensureDir("dist"); -ensureDir("dist/test"); -buildFirefox(); -buildBrowser(); -buildBrowserMin(); diff --git a/node_modules/css/node_modules/source-map/README.md b/node_modules/css/node_modules/source-map/README.md deleted file mode 100644 index 59767aa..0000000 --- a/node_modules/css/node_modules/source-map/README.md +++ /dev/null @@ -1,475 +0,0 @@ -# Source Map - -This is a library to generate and consume the source map format -[described here][format]. - -This library is written in the Asynchronous Module Definition format, and works -in the following environments: - -* Modern Browsers supporting ECMAScript 5 (either after the build, or with an - AMD loader such as RequireJS) - -* Inside Firefox (as a JSM file, after the build) - -* With NodeJS versions 0.8.X and higher - -## Node - - $ npm install source-map - -## Building from Source (for everywhere else) - -Install Node and then run - - $ git clone https://fitzgen@github.com/mozilla/source-map.git - $ cd source-map - $ npm link . - -Next, run - - $ node Makefile.dryice.js - -This should spew a bunch of stuff to stdout, and create the following files: - -* `dist/source-map.js` - The unminified browser version. - -* `dist/source-map.min.js` - The minified browser version. - -* `dist/SourceMap.jsm` - The JavaScript Module for inclusion in Firefox source. - -## Examples - -### Consuming a source map - - var rawSourceMap = { - version: 3, - file: 'min.js', - names: ['bar', 'baz', 'n'], - sources: ['one.js', 'two.js'], - sourceRoot: 'http://example.com/www/js/', - mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' - }; - - var smc = new SourceMapConsumer(rawSourceMap); - - console.log(smc.sources); - // [ 'http://example.com/www/js/one.js', - // 'http://example.com/www/js/two.js' ] - - console.log(smc.originalPositionFor({ - line: 2, - column: 28 - })); - // { source: 'http://example.com/www/js/two.js', - // line: 2, - // column: 10, - // name: 'n' } - - console.log(smc.generatedPositionFor({ - source: 'http://example.com/www/js/two.js', - line: 2, - column: 10 - })); - // { line: 2, column: 28 } - - smc.eachMapping(function (m) { - // ... - }); - -### Generating a source map - -In depth guide: -[**Compiling to JavaScript, and Debugging with Source Maps**](https://hacks.mozilla.org/2013/05/compiling-to-javascript-and-debugging-with-source-maps/) - -#### With SourceNode (high level API) - - function compile(ast) { - switch (ast.type) { - case 'BinaryExpression': - return new SourceNode( - ast.location.line, - ast.location.column, - ast.location.source, - [compile(ast.left), " + ", compile(ast.right)] - ); - case 'Literal': - return new SourceNode( - ast.location.line, - ast.location.column, - ast.location.source, - String(ast.value) - ); - // ... - default: - throw new Error("Bad AST"); - } - } - - var ast = parse("40 + 2", "add.js"); - console.log(compile(ast).toStringWithSourceMap({ - file: 'add.js' - })); - // { code: '40 + 2', - // map: [object SourceMapGenerator] } - -#### With SourceMapGenerator (low level API) - - var map = new SourceMapGenerator({ - file: "source-mapped.js" - }); - - map.addMapping({ - generated: { - line: 10, - column: 35 - }, - source: "foo.js", - original: { - line: 33, - column: 2 - }, - name: "christopher" - }); - - console.log(map.toString()); - // '{"version":3,"file":"source-mapped.js","sources":["foo.js"],"names":["christopher"],"mappings":";;;;;;;;;mCAgCEA"}' - -## API - -Get a reference to the module: - - // NodeJS - var sourceMap = require('source-map'); - - // Browser builds - var sourceMap = window.sourceMap; - - // Inside Firefox - let sourceMap = {}; - Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap); - -### SourceMapConsumer - -A SourceMapConsumer instance represents a parsed source map which we can query -for information about the original file positions by giving it a file position -in the generated source. - -#### new SourceMapConsumer(rawSourceMap) - -The only parameter is the raw source map (either as a string which can be -`JSON.parse`'d, or an object). According to the spec, source maps have the -following attributes: - -* `version`: Which version of the source map spec this map is following. - -* `sources`: An array of URLs to the original source files. - -* `names`: An array of identifiers which can be referrenced by individual - mappings. - -* `sourceRoot`: Optional. The URL root from which all sources are relative. - -* `sourcesContent`: Optional. An array of contents of the original source files. - -* `mappings`: A string of base64 VLQs which contain the actual mappings. - -* `file`: Optional. The generated filename this source map is associated with. - -#### SourceMapConsumer.prototype.computeColumnSpans() - -Compute the last column for each generated mapping. The last column is -inclusive. - -#### SourceMapConsumer.prototype.originalPositionFor(generatedPosition) - -Returns the original source, line, and column information for the generated -source's line and column positions provided. The only argument is an object with -the following properties: - -* `line`: The line number in the generated source. - -* `column`: The column number in the generated source. - -and an object is returned with the following properties: - -* `source`: The original source file, or null if this information is not - available. - -* `line`: The line number in the original source, or null if this information is - not available. - -* `column`: The column number in the original source, or null or null if this - information is not available. - -* `name`: The original identifier, or null if this information is not available. - -#### SourceMapConsumer.prototype.generatedPositionFor(originalPosition) - -Returns the generated line and column information for the original source, -line, and column positions provided. The only argument is an object with -the following properties: - -* `source`: The filename of the original source. - -* `line`: The line number in the original source. - -* `column`: The column number in the original source. - -and an object is returned with the following properties: - -* `line`: The line number in the generated source, or null. - -* `column`: The column number in the generated source, or null. - -#### SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition) - -Returns all generated line and column information for the original source -and line provided. The only argument is an object with the following -properties: - -* `source`: The filename of the original source. - -* `line`: The line number in the original source. - -and an array of objects is returned, each with the following properties: - -* `line`: The line number in the generated source, or null. - -* `column`: The column number in the generated source, or null. - -#### SourceMapConsumer.prototype.sourceContentFor(source) - -Returns the original source content for the source provided. The only -argument is the URL of the original source file. - -#### SourceMapConsumer.prototype.eachMapping(callback, context, order) - -Iterate over each mapping between an original source/line/column and a -generated line/column in this source map. - -* `callback`: The function that is called with each mapping. Mappings have the - form `{ source, generatedLine, generatedColumn, originalLine, originalColumn, - name }` - -* `context`: Optional. If specified, this object will be the value of `this` - every time that `callback` is called. - -* `order`: Either `SourceMapConsumer.GENERATED_ORDER` or - `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to iterate over - the mappings sorted by the generated file's line/column order or the - original's source/line/column order, respectively. Defaults to - `SourceMapConsumer.GENERATED_ORDER`. - -### SourceMapGenerator - -An instance of the SourceMapGenerator represents a source map which is being -built incrementally. - -#### new SourceMapGenerator([startOfSourceMap]) - -You may pass an object with the following properties: - -* `file`: The filename of the generated source that this source map is - associated with. - -* `sourceRoot`: A root for all relative URLs in this source map. - -* `skipValidation`: Optional. When `true`, disables validation of mappings as - they are added. This can improve performance but should be used with - discretion, as a last resort. Even then, one should avoid using this flag when - running tests, if possible. - -#### SourceMapGenerator.fromSourceMap(sourceMapConsumer) - -Creates a new SourceMapGenerator based on a SourceMapConsumer - -* `sourceMapConsumer` The SourceMap. - -#### SourceMapGenerator.prototype.addMapping(mapping) - -Add a single mapping from original source line and column to the generated -source's line and column for this source map being created. The mapping object -should have the following properties: - -* `generated`: An object with the generated line and column positions. - -* `original`: An object with the original line and column positions. - -* `source`: The original source file (relative to the sourceRoot). - -* `name`: An optional original token name for this mapping. - -#### SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent) - -Set the source content for an original source file. - -* `sourceFile` the URL of the original source file. - -* `sourceContent` the content of the source file. - -#### SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]]) - -Applies a SourceMap for a source file to the SourceMap. -Each mapping to the supplied source file is rewritten using the -supplied SourceMap. Note: The resolution for the resulting mappings -is the minimium of this map and the supplied map. - -* `sourceMapConsumer`: The SourceMap to be applied. - -* `sourceFile`: Optional. The filename of the source file. - If omitted, sourceMapConsumer.file will be used, if it exists. - Otherwise an error will be thrown. - -* `sourceMapPath`: Optional. The dirname of the path to the SourceMap - to be applied. If relative, it is relative to the SourceMap. - - This parameter is needed when the two SourceMaps aren't in the same - directory, and the SourceMap to be applied contains relative source - paths. If so, those relative source paths need to be rewritten - relative to the SourceMap. - - If omitted, it is assumed that both SourceMaps are in the same directory, - thus not needing any rewriting. (Supplying `'.'` has the same effect.) - -#### SourceMapGenerator.prototype.toString() - -Renders the source map being generated to a string. - -### SourceNode - -SourceNodes provide a way to abstract over interpolating and/or concatenating -snippets of generated JavaScript source code, while maintaining the line and -column information associated between those snippets and the original source -code. This is useful as the final intermediate representation a compiler might -use before outputting the generated JS and source map. - -#### new SourceNode([line, column, source[, chunk[, name]]]) - -* `line`: The original line number associated with this source node, or null if - it isn't associated with an original line. - -* `column`: The original column number associated with this source node, or null - if it isn't associated with an original column. - -* `source`: The original source's filename; null if no filename is provided. - -* `chunk`: Optional. Is immediately passed to `SourceNode.prototype.add`, see - below. - -* `name`: Optional. The original identifier. - -#### SourceNode.fromStringWithSourceMap(code, sourceMapConsumer[, relativePath]) - -Creates a SourceNode from generated code and a SourceMapConsumer. - -* `code`: The generated code - -* `sourceMapConsumer` The SourceMap for the generated code - -* `relativePath` The optional path that relative sources in `sourceMapConsumer` - should be relative to. - -#### SourceNode.prototype.add(chunk) - -Add a chunk of generated JS to this source node. - -* `chunk`: A string snippet of generated JS code, another instance of - `SourceNode`, or an array where each member is one of those things. - -#### SourceNode.prototype.prepend(chunk) - -Prepend a chunk of generated JS to this source node. - -* `chunk`: A string snippet of generated JS code, another instance of - `SourceNode`, or an array where each member is one of those things. - -#### SourceNode.prototype.setSourceContent(sourceFile, sourceContent) - -Set the source content for a source file. This will be added to the -`SourceMap` in the `sourcesContent` field. - -* `sourceFile`: The filename of the source file - -* `sourceContent`: The content of the source file - -#### SourceNode.prototype.walk(fn) - -Walk over the tree of JS snippets in this node and its children. The walking -function is called once for each snippet of JS and is passed that snippet and -the its original associated source's line/column location. - -* `fn`: The traversal function. - -#### SourceNode.prototype.walkSourceContents(fn) - -Walk over the tree of SourceNodes. The walking function is called for each -source file content and is passed the filename and source content. - -* `fn`: The traversal function. - -#### SourceNode.prototype.join(sep) - -Like `Array.prototype.join` except for SourceNodes. Inserts the separator -between each of this source node's children. - -* `sep`: The separator. - -#### SourceNode.prototype.replaceRight(pattern, replacement) - -Call `String.prototype.replace` on the very right-most source snippet. Useful -for trimming whitespace from the end of a source node, etc. - -* `pattern`: The pattern to replace. - -* `replacement`: The thing to replace the pattern with. - -#### SourceNode.prototype.toString() - -Return the string representation of this source node. Walks over the tree and -concatenates all the various snippets together to one string. - -#### SourceNode.prototype.toStringWithSourceMap([startOfSourceMap]) - -Returns the string representation of this tree of source nodes, plus a -SourceMapGenerator which contains all the mappings between the generated and -original sources. - -The arguments are the same as those to `new SourceMapGenerator`. - -## Tests - -[![Build Status](https://travis-ci.org/mozilla/source-map.png?branch=master)](https://travis-ci.org/mozilla/source-map) - -Install NodeJS version 0.8.0 or greater, then run `node test/run-tests.js`. - -To add new tests, create a new file named `test/test-.js` -and export your test functions with names that start with "test", for example - - exports["test doing the foo bar"] = function (assert, util) { - ... - }; - -The new test will be located automatically when you run the suite. - -The `util` argument is the test utility module located at `test/source-map/util`. - -The `assert` argument is a cut down version of node's assert module. You have -access to the following assertion functions: - -* `doesNotThrow` - -* `equal` - -* `ok` - -* `strictEqual` - -* `throws` - -(The reason for the restricted set of test functions is because we need the -tests to run inside Firefox's test suite as well and so the assert module is -shimmed in that environment. See `build/assert-shim.js`.) - -[format]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit -[feature]: https://wiki.mozilla.org/DevTools/Features/SourceMap -[Dryice]: https://github.com/mozilla/dryice diff --git a/node_modules/css/node_modules/source-map/build/assert-shim.js b/node_modules/css/node_modules/source-map/build/assert-shim.js deleted file mode 100644 index daa1a62..0000000 --- a/node_modules/css/node_modules/source-map/build/assert-shim.js +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -define('test/source-map/assert', ['exports'], function (exports) { - - let do_throw = function (msg) { - throw new Error(msg); - }; - - exports.init = function (throw_fn) { - do_throw = throw_fn; - }; - - exports.doesNotThrow = function (fn) { - try { - fn(); - } - catch (e) { - do_throw(e.message); - } - }; - - exports.equal = function (actual, expected, msg) { - msg = msg || String(actual) + ' != ' + String(expected); - if (actual != expected) { - do_throw(msg); - } - }; - - exports.ok = function (val, msg) { - msg = msg || String(val) + ' is falsey'; - if (!Boolean(val)) { - do_throw(msg); - } - }; - - exports.strictEqual = function (actual, expected, msg) { - msg = msg || String(actual) + ' !== ' + String(expected); - if (actual !== expected) { - do_throw(msg); - } - }; - - exports.throws = function (fn) { - try { - fn(); - do_throw('Expected an error to be thrown, but it wasn\'t.'); - } - catch (e) { - } - }; - -}); diff --git a/node_modules/css/node_modules/source-map/build/mini-require.js b/node_modules/css/node_modules/source-map/build/mini-require.js deleted file mode 100644 index 0daf453..0000000 --- a/node_modules/css/node_modules/source-map/build/mini-require.js +++ /dev/null @@ -1,152 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -/** - * Define a module along with a payload. - * @param {string} moduleName Name for the payload - * @param {ignored} deps Ignored. For compatibility with CommonJS AMD Spec - * @param {function} payload Function with (require, exports, module) params - */ -function define(moduleName, deps, payload) { - if (typeof moduleName != "string") { - throw new TypeError('Expected string, got: ' + moduleName); - } - - if (arguments.length == 2) { - payload = deps; - } - - if (moduleName in define.modules) { - throw new Error("Module already defined: " + moduleName); - } - define.modules[moduleName] = payload; -}; - -/** - * The global store of un-instantiated modules - */ -define.modules = {}; - - -/** - * We invoke require() in the context of a Domain so we can have multiple - * sets of modules running separate from each other. - * This contrasts with JSMs which are singletons, Domains allows us to - * optionally load a CommonJS module twice with separate data each time. - * Perhaps you want 2 command lines with a different set of commands in each, - * for example. - */ -function Domain() { - this.modules = {}; - this._currentModule = null; -} - -(function () { - - /** - * Lookup module names and resolve them by calling the definition function if - * needed. - * There are 2 ways to call this, either with an array of dependencies and a - * callback to call when the dependencies are found (which can happen - * asynchronously in an in-page context) or with a single string an no callback - * where the dependency is resolved synchronously and returned. - * The API is designed to be compatible with the CommonJS AMD spec and - * RequireJS. - * @param {string[]|string} deps A name, or names for the payload - * @param {function|undefined} callback Function to call when the dependencies - * are resolved - * @return {undefined|object} The module required or undefined for - * array/callback method - */ - Domain.prototype.require = function(deps, callback) { - if (Array.isArray(deps)) { - var params = deps.map(function(dep) { - return this.lookup(dep); - }, this); - if (callback) { - callback.apply(null, params); - } - return undefined; - } - else { - return this.lookup(deps); - } - }; - - function normalize(path) { - var bits = path.split('/'); - var i = 1; - while (i < bits.length) { - if (bits[i] === '..') { - bits.splice(i-1, 1); - } else if (bits[i] === '.') { - bits.splice(i, 1); - } else { - i++; - } - } - return bits.join('/'); - } - - function join(a, b) { - a = a.trim(); - b = b.trim(); - if (/^\//.test(b)) { - return b; - } else { - return a.replace(/\/*$/, '/') + b; - } - } - - function dirname(path) { - var bits = path.split('/'); - bits.pop(); - return bits.join('/'); - } - - /** - * Lookup module names and resolve them by calling the definition function if - * needed. - * @param {string} moduleName A name for the payload to lookup - * @return {object} The module specified by aModuleName or null if not found. - */ - Domain.prototype.lookup = function(moduleName) { - if (/^\./.test(moduleName)) { - moduleName = normalize(join(dirname(this._currentModule), moduleName)); - } - - if (moduleName in this.modules) { - var module = this.modules[moduleName]; - return module; - } - - if (!(moduleName in define.modules)) { - throw new Error("Module not defined: " + moduleName); - } - - var module = define.modules[moduleName]; - - if (typeof module == "function") { - var exports = {}; - var previousModule = this._currentModule; - this._currentModule = moduleName; - module(this.require.bind(this), exports, { id: moduleName, uri: "" }); - this._currentModule = previousModule; - module = exports; - } - - // cache the resulting module object for next time - this.modules[moduleName] = module; - - return module; - }; - -}()); - -define.Domain = Domain; -define.globalDomain = new Domain(); -var require = define.globalDomain.require.bind(define.globalDomain); diff --git a/node_modules/css/node_modules/source-map/build/prefix-source-map.jsm b/node_modules/css/node_modules/source-map/build/prefix-source-map.jsm deleted file mode 100644 index ee2539d..0000000 --- a/node_modules/css/node_modules/source-map/build/prefix-source-map.jsm +++ /dev/null @@ -1,20 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -/* - * WARNING! - * - * Do not edit this file directly, it is built from the sources at - * https://github.com/mozilla/source-map/ - */ - -/////////////////////////////////////////////////////////////////////////////// - - -this.EXPORTED_SYMBOLS = [ "SourceMapConsumer", "SourceMapGenerator", "SourceNode" ]; - -Components.utils.import('resource://gre/modules/devtools/Require.jsm'); diff --git a/node_modules/css/node_modules/source-map/build/prefix-utils.jsm b/node_modules/css/node_modules/source-map/build/prefix-utils.jsm deleted file mode 100644 index 80341d4..0000000 --- a/node_modules/css/node_modules/source-map/build/prefix-utils.jsm +++ /dev/null @@ -1,18 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ - -/* - * WARNING! - * - * Do not edit this file directly, it is built from the sources at - * https://github.com/mozilla/source-map/ - */ - -Components.utils.import('resource://gre/modules/devtools/Require.jsm'); -Components.utils.import('resource://gre/modules/devtools/SourceMap.jsm'); - -this.EXPORTED_SYMBOLS = [ "define", "runSourceMapTests" ]; diff --git a/node_modules/css/node_modules/source-map/build/suffix-browser.js b/node_modules/css/node_modules/source-map/build/suffix-browser.js deleted file mode 100644 index fb29ff5..0000000 --- a/node_modules/css/node_modules/source-map/build/suffix-browser.js +++ /dev/null @@ -1,8 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/////////////////////////////////////////////////////////////////////////////// - -this.sourceMap = { - SourceMapConsumer: require('source-map/source-map-consumer').SourceMapConsumer, - SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator, - SourceNode: require('source-map/source-node').SourceNode -}; diff --git a/node_modules/css/node_modules/source-map/build/suffix-source-map.jsm b/node_modules/css/node_modules/source-map/build/suffix-source-map.jsm deleted file mode 100644 index cf3c2d8..0000000 --- a/node_modules/css/node_modules/source-map/build/suffix-source-map.jsm +++ /dev/null @@ -1,6 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/////////////////////////////////////////////////////////////////////////////// - -this.SourceMapConsumer = require('source-map/source-map-consumer').SourceMapConsumer; -this.SourceMapGenerator = require('source-map/source-map-generator').SourceMapGenerator; -this.SourceNode = require('source-map/source-node').SourceNode; diff --git a/node_modules/css/node_modules/source-map/build/suffix-utils.jsm b/node_modules/css/node_modules/source-map/build/suffix-utils.jsm deleted file mode 100644 index b31b84c..0000000 --- a/node_modules/css/node_modules/source-map/build/suffix-utils.jsm +++ /dev/null @@ -1,21 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -function runSourceMapTests(modName, do_throw) { - let mod = require(modName); - let assert = require('test/source-map/assert'); - let util = require('test/source-map/util'); - - assert.init(do_throw); - - for (let k in mod) { - if (/^test/.test(k)) { - mod[k](assert, util); - } - } - -} -this.runSourceMapTests = runSourceMapTests; diff --git a/node_modules/css/node_modules/source-map/build/test-prefix.js b/node_modules/css/node_modules/source-map/build/test-prefix.js deleted file mode 100644 index 1b13f30..0000000 --- a/node_modules/css/node_modules/source-map/build/test-prefix.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - * WARNING! - * - * Do not edit this file directly, it is built from the sources at - * https://github.com/mozilla/source-map/ - */ - -Components.utils.import('resource://test/Utils.jsm'); diff --git a/node_modules/css/node_modules/source-map/build/test-suffix.js b/node_modules/css/node_modules/source-map/build/test-suffix.js deleted file mode 100644 index bec2de3..0000000 --- a/node_modules/css/node_modules/source-map/build/test-suffix.js +++ /dev/null @@ -1,3 +0,0 @@ -function run_test() { - runSourceMapTests('{THIS_MODULE}', do_throw); -} diff --git a/node_modules/css/node_modules/source-map/lib/source-map.js b/node_modules/css/node_modules/source-map/lib/source-map.js deleted file mode 100644 index 121ad24..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ -exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator; -exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer; -exports.SourceNode = require('./source-map/source-node').SourceNode; diff --git a/node_modules/css/node_modules/source-map/lib/source-map/array-set.js b/node_modules/css/node_modules/source-map/lib/source-map/array-set.js deleted file mode 100644 index 40f9a18..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/array-set.js +++ /dev/null @@ -1,97 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var util = require('./util'); - - /** - * A data structure which is a combination of an array and a set. Adding a new - * member is O(1), testing for membership is O(1), and finding the index of an - * element is O(1). Removing elements from the set is not supported. Only - * strings are supported for membership. - */ - function ArraySet() { - this._array = []; - this._set = {}; - } - - /** - * Static method for creating ArraySet instances from an existing array. - */ - ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; - }; - - /** - * Add the given string to this set. - * - * @param String aStr - */ - ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var isDuplicate = this.has(aStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - this._set[util.toSetString(aStr)] = idx; - } - }; - - /** - * Is the given string a member of this set? - * - * @param String aStr - */ - ArraySet.prototype.has = function ArraySet_has(aStr) { - return Object.prototype.hasOwnProperty.call(this._set, - util.toSetString(aStr)); - }; - - /** - * What is the index of the given string in the array? - * - * @param String aStr - */ - ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (this.has(aStr)) { - return this._set[util.toSetString(aStr)]; - } - throw new Error('"' + aStr + '" is not in the set.'); - }; - - /** - * What is the element at the given index? - * - * @param Number aIdx - */ - ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error('No element indexed by ' + aIdx); - }; - - /** - * Returns the array representation of this set (which has the proper indices - * indicated by indexOf). Note that this is a copy of the internal array used - * for storing the members so that no one can mess with internal state. - */ - ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); - }; - - exports.ArraySet = ArraySet; - -}); diff --git a/node_modules/css/node_modules/source-map/lib/source-map/base64-vlq.js b/node_modules/css/node_modules/source-map/lib/source-map/base64-vlq.js deleted file mode 100644 index e22dcae..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/base64-vlq.js +++ /dev/null @@ -1,142 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - * - * Based on the Base 64 VLQ implementation in Closure Compiler: - * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java - * - * Copyright 2011 The Closure Compiler Authors. 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 Google Inc. 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. - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var base64 = require('./base64'); - - // A single base 64 digit can contain 6 bits of data. For the base 64 variable - // length quantities we use in the source map spec, the first bit is the sign, - // the next four bits are the actual value, and the 6th bit is the - // continuation bit. The continuation bit tells us whether there are more - // digits in this value following this digit. - // - // Continuation - // | Sign - // | | - // V V - // 101011 - - var VLQ_BASE_SHIFT = 5; - - // binary: 100000 - var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - - // binary: 011111 - var VLQ_BASE_MASK = VLQ_BASE - 1; - - // binary: 100000 - var VLQ_CONTINUATION_BIT = VLQ_BASE; - - /** - * Converts from a two-complement value to a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) - * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) - */ - function toVLQSigned(aValue) { - return aValue < 0 - ? ((-aValue) << 1) + 1 - : (aValue << 1) + 0; - } - - /** - * Converts to a two-complement value from a value where the sign bit is - * placed in the least significant bit. For example, as decimals: - * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 - * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 - */ - function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative - ? -shifted - : shifted; - } - - /** - * Returns the base 64 VLQ encoded value. - */ - exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; - - var vlq = toVLQSigned(aValue); - - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - // There are still more digits in this value, so we must make sure the - // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); - - return encoded; - }; - - /** - * Decodes the next base 64 VLQ value from the given string and returns the - * value and the rest of the string via the out parameter. - */ - exports.decode = function base64VLQ_decode(aStr, aOutParam) { - var i = 0; - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - - do { - if (i >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - digit = base64.decode(aStr.charAt(i++)); - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aStr.slice(i); - }; - -}); diff --git a/node_modules/css/node_modules/source-map/lib/source-map/base64.js b/node_modules/css/node_modules/source-map/lib/source-map/base64.js deleted file mode 100644 index 863cc46..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/base64.js +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var charToIntMap = {}; - var intToCharMap = {}; - - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' - .split('') - .forEach(function (ch, index) { - charToIntMap[ch] = index; - intToCharMap[index] = ch; - }); - - /** - * Encode an integer in the range of 0 to 63 to a single base 64 digit. - */ - exports.encode = function base64_encode(aNumber) { - if (aNumber in intToCharMap) { - return intToCharMap[aNumber]; - } - throw new TypeError("Must be between 0 and 63: " + aNumber); - }; - - /** - * Decode a single base 64 digit to an integer. - */ - exports.decode = function base64_decode(aChar) { - if (aChar in charToIntMap) { - return charToIntMap[aChar]; - } - throw new TypeError("Not a valid base 64 digit: " + aChar); - }; - -}); diff --git a/node_modules/css/node_modules/source-map/lib/source-map/binary-search.js b/node_modules/css/node_modules/source-map/lib/source-map/binary-search.js deleted file mode 100644 index e085f81..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/binary-search.js +++ /dev/null @@ -1,80 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - /** - * Recursive implementation of binary search. - * - * @param aLow Indices here and lower do not contain the needle. - * @param aHigh Indices here and higher do not contain the needle. - * @param aNeedle The element being searched for. - * @param aHaystack The non-empty array being searched. - * @param aCompare Function which takes two elements and returns -1, 0, or 1. - */ - function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare) { - // This function terminates when one of the following is true: - // - // 1. We find the exact element we are looking for. - // - // 2. We did not find the exact element, but we can return the index of - // the next closest element that is less than that element. - // - // 3. We did not find the exact element, and there is no next-closest - // element which is less than the one we are searching for, so we - // return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - // Found the element we are looking for. - return mid; - } - else if (cmp > 0) { - // aHaystack[mid] is greater than our needle. - if (aHigh - mid > 1) { - // The element is in the upper half. - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare); - } - // We did not find an exact match, return the next closest one - // (termination case 2). - return mid; - } - else { - // aHaystack[mid] is less than our needle. - if (mid - aLow > 1) { - // The element is in the lower half. - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare); - } - // The exact needle element was not found in this haystack. Determine if - // we are in termination case (2) or (3) and return the appropriate thing. - return aLow < 0 ? -1 : aLow; - } - } - - /** - * This is an implementation of binary search which will always try and return - * the index of next lowest value checked if there is no exact hit. This is - * because mappings between original and generated line/col pairs are single - * points, and there is an implicit region between each of them, so a miss - * just means that you aren't on the very start of a region. - * - * @param aNeedle The element you are looking for. - * @param aHaystack The array that is being searched. - * @param aCompare A function which takes the needle and an element in the - * array and returns -1, 0, or 1 depending on whether the needle is less - * than, equal to, or greater than the element, respectively. - */ - exports.search = function search(aNeedle, aHaystack, aCompare) { - if (aHaystack.length === 0) { - return -1; - } - return recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare) - }; - -}); diff --git a/node_modules/css/node_modules/source-map/lib/source-map/mapping-list.js b/node_modules/css/node_modules/source-map/lib/source-map/mapping-list.js deleted file mode 100644 index 2a4eb61..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/mapping-list.js +++ /dev/null @@ -1,86 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2014 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var util = require('./util'); - - /** - * Determine whether mappingB is after mappingA with respect to generated - * position. - */ - function generatedPositionAfter(mappingA, mappingB) { - // Optimized for most common case - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || - util.compareByGeneratedPositions(mappingA, mappingB) <= 0; - } - - /** - * A data structure to provide a sorted view of accumulated mappings in a - * performance conscious manner. It trades a neglibable overhead in general - * case for a large speedup in case of mappings being added in order. - */ - function MappingList() { - this._array = []; - this._sorted = true; - // Serves as infimum - this._last = {generatedLine: -1, generatedColumn: 0}; - } - - /** - * Iterate through internal items. This method takes the same arguments that - * `Array.prototype.forEach` takes. - * - * NOTE: The order of the mappings is NOT guaranteed. - */ - MappingList.prototype.unsortedForEach = - function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; - - /** - * Add the given source mapping. - * - * @param Object aMapping - */ - MappingList.prototype.add = function MappingList_add(aMapping) { - var mapping; - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } - }; - - /** - * Returns the flat, sorted array of mappings. The mappings are sorted by - * generated position. - * - * WARNING: This method returns internal data without copying, for - * performance. The return value must NOT be mutated, and should be treated as - * an immutable borrow. If you want to take ownership, you must make your own - * copy. - */ - MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositions); - this._sorted = true; - } - return this._array; - }; - - exports.MappingList = MappingList; - -}); diff --git a/node_modules/css/node_modules/source-map/lib/source-map/source-map-consumer.js b/node_modules/css/node_modules/source-map/lib/source-map/source-map-consumer.js deleted file mode 100644 index cfaa299..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/source-map-consumer.js +++ /dev/null @@ -1,575 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var util = require('./util'); - var binarySearch = require('./binary-search'); - var ArraySet = require('./array-set').ArraySet; - var base64VLQ = require('./base64-vlq'); - - /** - * A SourceMapConsumer instance represents a parsed source map which we can - * query for information about the original file positions by giving it a file - * position in the generated source. - * - * The only parameter is the raw source map (either as a JSON string, or - * already parsed to an object). According to the spec, source maps have the - * following attributes: - * - * - version: Which version of the source map spec this map is following. - * - sources: An array of URLs to the original source files. - * - names: An array of identifiers which can be referrenced by individual mappings. - * - sourceRoot: Optional. The URL root from which all sources are relative. - * - sourcesContent: Optional. An array of contents of the original source files. - * - mappings: A string of base64 VLQs which contain the actual mappings. - * - file: Optional. The generated file this source map is associated with. - * - * Here is an example source map, taken from the source map spec[0]: - * - * { - * version : 3, - * file: "out.js", - * sourceRoot : "", - * sources: ["foo.js", "bar.js"], - * names: ["src", "maps", "are", "fun"], - * mappings: "AA,AB;;ABCDE;" - * } - * - * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# - */ - function SourceMapConsumer(aSourceMap) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === 'string') { - sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, '')); - } - - var version = util.getArg(sourceMap, 'version'); - var sources = util.getArg(sourceMap, 'sources'); - // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which - // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []); - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); - var mappings = util.getArg(sourceMap, 'mappings'); - var file = util.getArg(sourceMap, 'file', null); - - // Once again, Sass deviates from the spec and supplies the version as a - // string rather than a number, so we use loose equality checking here. - if (version != this._version) { - throw new Error('Unsupported version: ' + version); - } - - // Some source maps produce relative source paths like "./foo.js" instead of - // "foo.js". Normalize these first so that future comparisons will succeed. - // See bugzil.la/1090768. - sources = sources.map(util.normalize); - - // Pass `true` below to allow duplicate names and sources. While source maps - // are intended to be compressed and deduplicated, the TypeScript compiler - // sometimes generates source maps with duplicates in them. See Github issue - // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names, true); - this._sources = ArraySet.fromArray(sources, true); - - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this.file = file; - } - - /** - * Create a SourceMapConsumer from a SourceMapGenerator. - * - * @param SourceMapGenerator aSourceMap - * The source map that will be consumed. - * @returns SourceMapConsumer - */ - SourceMapConsumer.fromSourceMap = - function SourceMapConsumer_fromSourceMap(aSourceMap) { - var smc = Object.create(SourceMapConsumer.prototype); - - smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), - smc.sourceRoot); - smc.file = aSourceMap._file; - - smc.__generatedMappings = aSourceMap._mappings.toArray().slice(); - smc.__originalMappings = aSourceMap._mappings.toArray().slice() - .sort(util.compareByOriginalPositions); - - return smc; - }; - - /** - * The version of the source mapping spec that we are consuming. - */ - SourceMapConsumer.prototype._version = 3; - - /** - * The list of original sources. - */ - Object.defineProperty(SourceMapConsumer.prototype, 'sources', { - get: function () { - return this._sources.toArray().map(function (s) { - return this.sourceRoot != null ? util.join(this.sourceRoot, s) : s; - }, this); - } - }); - - // `__generatedMappings` and `__originalMappings` are arrays that hold the - // parsed mapping coordinates from the source map's "mappings" attribute. They - // are lazily instantiated, accessed via the `_generatedMappings` and - // `_originalMappings` getters respectively, and we only parse the mappings - // and create these arrays once queried for a source location. We jump through - // these hoops because there can be many thousands of mappings, and parsing - // them is expensive, so we only want to do it if we must. - // - // Each object in the arrays is of the form: - // - // { - // generatedLine: The line number in the generated code, - // generatedColumn: The column number in the generated code, - // source: The path to the original source file that generated this - // chunk of code, - // originalLine: The line number in the original source that - // corresponds to this chunk of generated code, - // originalColumn: The column number in the original source that - // corresponds to this chunk of generated code, - // name: The name of the original symbol which generated this chunk of - // code. - // } - // - // All properties except for `generatedLine` and `generatedColumn` can be - // `null`. - // - // `_generatedMappings` is ordered by the generated positions. - // - // `_originalMappings` is ordered by the original positions. - - SourceMapConsumer.prototype.__generatedMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { - get: function () { - if (!this.__generatedMappings) { - this.__generatedMappings = []; - this.__originalMappings = []; - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__generatedMappings; - } - }); - - SourceMapConsumer.prototype.__originalMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { - get: function () { - if (!this.__originalMappings) { - this.__generatedMappings = []; - this.__originalMappings = []; - this._parseMappings(this._mappings, this.sourceRoot); - } - - return this.__originalMappings; - } - }); - - SourceMapConsumer.prototype._nextCharIsMappingSeparator = - function SourceMapConsumer_nextCharIsMappingSeparator(aStr) { - var c = aStr.charAt(0); - return c === ";" || c === ","; - }; - - /** - * Parse the mappings in a string in to a data structure which we can easily - * query (the ordered arrays in the `this.__generatedMappings` and - * `this.__originalMappings` properties). - */ - SourceMapConsumer.prototype._parseMappings = - function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var str = aStr; - var temp = {}; - var mapping; - - while (str.length > 0) { - if (str.charAt(0) === ';') { - generatedLine++; - str = str.slice(1); - previousGeneratedColumn = 0; - } - else if (str.charAt(0) === ',') { - str = str.slice(1); - } - else { - mapping = {}; - mapping.generatedLine = generatedLine; - - // Generated column. - base64VLQ.decode(str, temp); - mapping.generatedColumn = previousGeneratedColumn + temp.value; - previousGeneratedColumn = mapping.generatedColumn; - str = temp.rest; - - if (str.length > 0 && !this._nextCharIsMappingSeparator(str)) { - // Original source. - base64VLQ.decode(str, temp); - mapping.source = this._sources.at(previousSource + temp.value); - previousSource += temp.value; - str = temp.rest; - if (str.length === 0 || this._nextCharIsMappingSeparator(str)) { - throw new Error('Found a source, but no line and column'); - } - - // Original line. - base64VLQ.decode(str, temp); - mapping.originalLine = previousOriginalLine + temp.value; - previousOriginalLine = mapping.originalLine; - // Lines are stored 0-based - mapping.originalLine += 1; - str = temp.rest; - if (str.length === 0 || this._nextCharIsMappingSeparator(str)) { - throw new Error('Found a source and line, but no column'); - } - - // Original column. - base64VLQ.decode(str, temp); - mapping.originalColumn = previousOriginalColumn + temp.value; - previousOriginalColumn = mapping.originalColumn; - str = temp.rest; - - if (str.length > 0 && !this._nextCharIsMappingSeparator(str)) { - // Original name. - base64VLQ.decode(str, temp); - mapping.name = this._names.at(previousName + temp.value); - previousName += temp.value; - str = temp.rest; - } - } - - this.__generatedMappings.push(mapping); - if (typeof mapping.originalLine === 'number') { - this.__originalMappings.push(mapping); - } - } - } - - this.__generatedMappings.sort(util.compareByGeneratedPositions); - this.__originalMappings.sort(util.compareByOriginalPositions); - }; - - /** - * Find the mapping that best matches the hypothetical "needle" mapping that - * we are searching for in the given "haystack" of mappings. - */ - SourceMapConsumer.prototype._findMapping = - function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, - aColumnName, aComparator) { - // To return the position we are searching for, we must first find the - // mapping for the given position and then return the opposite position it - // points to. Because the mappings are sorted, we can use binary search to - // find the best mapping. - - if (aNeedle[aLineName] <= 0) { - throw new TypeError('Line must be greater than or equal to 1, got ' - + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError('Column must be greater than or equal to 0, got ' - + aNeedle[aColumnName]); - } - - return binarySearch.search(aNeedle, aMappings, aComparator); - }; - - /** - * Compute the last column for each generated mapping. The last column is - * inclusive. - */ - SourceMapConsumer.prototype.computeColumnSpans = - function SourceMapConsumer_computeColumnSpans() { - for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index]; - - // Mappings do not contain a field for the last generated columnt. We - // can come up with an optimistic estimate, however, by assuming that - // mappings are contiguous (i.e. given two consecutive mappings, the - // first mapping ends where the second one starts). - if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1]; - - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } - - // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity; - } - }; - - /** - * Returns the original source, line, and column information for the generated - * source's line and column positions provided. The only argument is an object - * with the following properties: - * - * - line: The line number in the generated source. - * - column: The column number in the generated source. - * - * and an object is returned with the following properties: - * - * - source: The original source file, or null. - * - line: The line number in the original source, or null. - * - column: The column number in the original source, or null. - * - name: The original identifier, or null. - */ - SourceMapConsumer.prototype.originalPositionFor = - function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - }; - - var index = this._findMapping(needle, - this._generatedMappings, - "generatedLine", - "generatedColumn", - util.compareByGeneratedPositions); - - if (index >= 0) { - var mapping = this._generatedMappings[index]; - - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null); - if (source != null && this.sourceRoot != null) { - source = util.join(this.sourceRoot, source); - } - return { - source: source, - line: util.getArg(mapping, 'originalLine', null), - column: util.getArg(mapping, 'originalColumn', null), - name: util.getArg(mapping, 'name', null) - }; - } - } - - return { - source: null, - line: null, - column: null, - name: null - }; - }; - - /** - * Returns the original source content. The only argument is the url of the - * original source file. Returns null if no original source content is - * availible. - */ - SourceMapConsumer.prototype.sourceContentFor = - function SourceMapConsumer_sourceContentFor(aSource) { - if (!this.sourcesContent) { - return null; - } - - if (this.sourceRoot != null) { - aSource = util.relative(this.sourceRoot, aSource); - } - - if (this._sources.has(aSource)) { - return this.sourcesContent[this._sources.indexOf(aSource)]; - } - - var url; - if (this.sourceRoot != null - && (url = util.urlParse(this.sourceRoot))) { - // XXX: file:// URIs and absolute paths lead to unexpected behavior for - // many users. We can help them out when they expect file:// URIs to - // behave like it would if they were running a local HTTP server. See - // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = aSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" - && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] - } - - if ((!url.path || url.path == "/") - && this._sources.has("/" + aSource)) { - return this.sourcesContent[this._sources.indexOf("/" + aSource)]; - } - } - - throw new Error('"' + aSource + '" is not in the SourceMap.'); - }; - - /** - * Returns the generated line and column information for the original source, - * line, and column positions provided. The only argument is an object with - * the following properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. - * - column: The column number in the original source. - * - * and an object is returned with the following properties: - * - * - line: The line number in the generated source, or null. - * - column: The column number in the generated source, or null. - */ - SourceMapConsumer.prototype.generatedPositionFor = - function SourceMapConsumer_generatedPositionFor(aArgs) { - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - }; - - if (this.sourceRoot != null) { - needle.source = util.relative(this.sourceRoot, needle.source); - } - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions); - - if (index >= 0) { - var mapping = this._originalMappings[index]; - - return { - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }; - } - - return { - line: null, - column: null, - lastColumn: null - }; - }; - - /** - * Returns all generated line and column information for the original source - * and line provided. The only argument is an object with the following - * properties: - * - * - source: The filename of the original source. - * - line: The line number in the original source. - * - * and an array of objects is returned, each with the following properties: - * - * - line: The line number in the generated source, or null. - * - column: The column number in the generated source, or null. - */ - SourceMapConsumer.prototype.allGeneratedPositionsFor = - function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - // When there is no exact match, SourceMapConsumer.prototype._findMapping - // returns the index of the closest mapping less than the needle. By - // setting needle.originalColumn to Infinity, we thus find the last - // mapping for the given line, provided such a mapping exists. - var needle = { - source: util.getArg(aArgs, 'source'), - originalLine: util.getArg(aArgs, 'line'), - originalColumn: Infinity - }; - - if (this.sourceRoot != null) { - needle.source = util.relative(this.sourceRoot, needle.source); - } - - var mappings = []; - - var index = this._findMapping(needle, - this._originalMappings, - "originalLine", - "originalColumn", - util.compareByOriginalPositions); - if (index >= 0) { - var mapping = this._originalMappings[index]; - - while (mapping && mapping.originalLine === needle.originalLine) { - mappings.push({ - line: util.getArg(mapping, 'generatedLine', null), - column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }); - - mapping = this._originalMappings[--index]; - } - } - - return mappings.reverse(); - }; - - SourceMapConsumer.GENERATED_ORDER = 1; - SourceMapConsumer.ORIGINAL_ORDER = 2; - - /** - * Iterate over each mapping between an original source/line/column and a - * generated line/column in this source map. - * - * @param Function aCallback - * The function that is called with each mapping. - * @param Object aContext - * Optional. If specified, this object will be the value of `this` every - * time that `aCallback` is called. - * @param aOrder - * Either `SourceMapConsumer.GENERATED_ORDER` or - * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to - * iterate over the mappings sorted by the generated file's line/column - * order or the original's source/line/column order, respectively. Defaults to - * `SourceMapConsumer.GENERATED_ORDER`. - */ - SourceMapConsumer.prototype.eachMapping = - function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - - var sourceRoot = this.sourceRoot; - mappings.map(function (mapping) { - var source = mapping.source; - if (source != null && sourceRoot != null) { - source = util.join(sourceRoot, source); - } - return { - source: source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name - }; - }).forEach(aCallback, context); - }; - - exports.SourceMapConsumer = SourceMapConsumer; - -}); diff --git a/node_modules/css/node_modules/source-map/lib/source-map/source-map-generator.js b/node_modules/css/node_modules/source-map/lib/source-map/source-map-generator.js deleted file mode 100644 index 1ab7a47..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/source-map-generator.js +++ /dev/null @@ -1,400 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var base64VLQ = require('./base64-vlq'); - var util = require('./util'); - var ArraySet = require('./array-set').ArraySet; - var MappingList = require('./mapping-list').MappingList; - - /** - * An instance of the SourceMapGenerator represents a source map which is - * being built incrementally. You may pass an object with the following - * properties: - * - * - file: The filename of the generated source. - * - sourceRoot: A root for all relative URLs in this source map. - */ - function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, 'file', null); - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); - this._skipValidation = util.getArg(aArgs, 'skipValidation', false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; - } - - SourceMapGenerator.prototype._version = 3; - - /** - * Creates a new SourceMapGenerator based on a SourceMapConsumer - * - * @param aSourceMapConsumer The SourceMap. - */ - SourceMapGenerator.fromSourceMap = - function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }); - aSourceMapConsumer.eachMapping(function (mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - - /** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * - * - generated: An object with the generated line and column positions. - * - original: An object with the original line and column positions. - * - source: The original source file (relative to the sourceRoot). - * - name: An optional original token name for this mapping. - */ - SourceMapGenerator.prototype.addMapping = - function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, 'generated'); - var original = util.getArg(aArgs, 'original', null); - var source = util.getArg(aArgs, 'source', null); - var name = util.getArg(aArgs, 'name', null); - - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - - if (source != null && !this._sources.has(source)) { - this._sources.add(source); - } - - if (name != null && !this._names.has(name)) { - this._names.add(name); - } - - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source: source, - name: name - }); - }; - - /** - * Set the source content for a source file. - */ - SourceMapGenerator.prototype.setSourceContent = - function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - - if (aSourceContent != null) { - // Add the source content to the _sourcesContents map. - // Create a new _sourcesContents map if the property is null. - if (!this._sourcesContents) { - this._sourcesContents = {}; - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - // Remove the source file from the _sourcesContents map. - // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - - /** - * Applies the mappings of a sub-source-map for a specific source file to the - * source map being generated. Each mapping to the supplied source file is - * rewritten using the supplied source map. Note: The resolution for the - * resulting mappings is the minimium of this map and the supplied map. - * - * @param aSourceMapConsumer The source map to be applied. - * @param aSourceFile Optional. The filename of the source file. - * If omitted, SourceMapConsumer's file property will be used. - * @param aSourceMapPath Optional. The dirname of the path to the source map - * to be applied. If relative, it is relative to the SourceMapConsumer. - * This parameter is needed when the two source maps aren't in the same - * directory, and the source map to be applied contains relative source - * paths. If so, those relative source paths need to be rewritten - * relative to the SourceMapGenerator. - */ - SourceMapGenerator.prototype.applySourceMap = - function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - // If aSourceFile is omitted, we will use the file property of the SourceMap - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error( - 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - // Make "sourceFile" relative if an absolute Url is passed. - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - // Applying the SourceMap can add and remove items from the sources and - // the names array. - var newSources = new ArraySet(); - var newNames = new ArraySet(); - - // Find mappings for the "sourceFile" - this._mappings.unsortedForEach(function (mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - // Check if it can be mapped by the source map, then update the mapping. - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - // Copy mapping - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source) - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - - }, this); - this._sources = newSources; - this._names = newNames; - - // Copy sourcesContents of applied map. - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile); - } - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - this.setSourceContent(sourceFile, content); - } - }, this); - }; - - /** - * A mapping can have one of the three levels of data: - * - * 1. Just the generated position. - * 2. The Generated position, original position, and original source. - * 3. Generated and original position, original source, as well as a name - * token. - * - * To maintain consistency, we validate that any new mapping being added falls - * in to one of these categories. - */ - SourceMapGenerator.prototype._validateMapping = - function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, - aName) { - if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aGenerated.line > 0 && aGenerated.column >= 0 - && !aOriginal && !aSource && !aName) { - // Case 1. - return; - } - else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated - && aOriginal && 'line' in aOriginal && 'column' in aOriginal - && aGenerated.line > 0 && aGenerated.column >= 0 - && aOriginal.line > 0 && aOriginal.column >= 0 - && aSource) { - // Cases 2 and 3. - return; - } - else { - throw new Error('Invalid mapping: ' + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - - /** - * Serialize the accumulated mappings in to the stream of base 64 VLQs - * specified by the source map format. - */ - SourceMapGenerator.prototype._serializeMappings = - function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ''; - var mapping; - - var mappings = this._mappings.toArray(); - - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - result += ';'; - previousGeneratedLine++; - } - } - else { - if (i > 0) { - if (!util.compareByGeneratedPositions(mapping, mappings[i - 1])) { - continue; - } - result += ','; - } - } - - result += base64VLQ.encode(mapping.generatedColumn - - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - - if (mapping.source != null) { - result += base64VLQ.encode(this._sources.indexOf(mapping.source) - - previousSource); - previousSource = this._sources.indexOf(mapping.source); - - // lines are stored 0-based in SourceMap spec version 3 - result += base64VLQ.encode(mapping.originalLine - 1 - - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - - result += base64VLQ.encode(mapping.originalColumn - - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - - if (mapping.name != null) { - result += base64VLQ.encode(this._names.indexOf(mapping.name) - - previousName); - previousName = this._names.indexOf(mapping.name); - } - } - } - - return result; - }; - - SourceMapGenerator.prototype._generateSourcesContent = - function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function (source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, - key) - ? this._sourcesContents[key] - : null; - }, this); - }; - - /** - * Externalize the source map. - */ - SourceMapGenerator.prototype.toJSON = - function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - - return map; - }; - - /** - * Render the source map being generated to a string. - */ - SourceMapGenerator.prototype.toString = - function SourceMapGenerator_toString() { - return JSON.stringify(this); - }; - - exports.SourceMapGenerator = SourceMapGenerator; - -}); diff --git a/node_modules/css/node_modules/source-map/lib/source-map/source-node.js b/node_modules/css/node_modules/source-map/lib/source-map/source-node.js deleted file mode 100644 index 9ee90bd..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/source-node.js +++ /dev/null @@ -1,414 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var SourceMapGenerator = require('./source-map-generator').SourceMapGenerator; - var util = require('./util'); - - // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other - // operating systems these days (capturing the result). - var REGEX_NEWLINE = /(\r?\n)/; - - // Newline character code for charCodeAt() comparisons - var NEWLINE_CODE = 10; - - // Private symbol for identifying `SourceNode`s when multiple versions of - // the source-map library are loaded. This MUST NOT CHANGE across - // versions! - var isSourceNode = "$$$isSourceNode$$$"; - - /** - * SourceNodes provide a way to abstract over interpolating/concatenating - * snippets of generated JavaScript source code while maintaining the line and - * column information associated with the original source code. - * - * @param aLine The original line number. - * @param aColumn The original column number. - * @param aSource The original source's filename. - * @param aChunks Optional. An array of strings which are snippets of - * generated JS, or other SourceNodes. - * @param aName The original identifier. - */ - function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) this.add(aChunks); - } - - /** - * Creates a SourceNode from generated code and a SourceMapConsumer. - * - * @param aGeneratedCode The generated code - * @param aSourceMapConsumer The SourceMap for the generated code - * @param aRelativePath Optional. The path that relative sources in the - * SourceMapConsumer should be relative to. - */ - SourceNode.fromStringWithSourceMap = - function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - // The SourceNode we want to fill with the generated code - // and the SourceMap - var node = new SourceNode(); - - // All even indices of this array are one line of the generated code, - // while all odd indices are the newlines between two adjacent lines - // (since `REGEX_NEWLINE` captures its match). - // Processed fragments are removed from this array, by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var shiftNextLine = function() { - var lineContents = remainingLines.shift(); - // The last line of a file might not have a newline. - var newLine = remainingLines.shift() || ""; - return lineContents + newLine; - }; - - // We need to remember the position of "remainingLines" - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - - // The generate SourceNodes we need a code range. - // To extract it current and last mapping is used. - // Here we store the last mapping. - var lastMapping = null; - - aSourceMapConsumer.eachMapping(function (mapping) { - if (lastMapping !== null) { - // We add the code from "lastMapping" to "mapping": - // First check if there is a new line in between. - if (lastGeneratedLine < mapping.generatedLine) { - var code = ""; - // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - // The remaining code is added without mapping - } else { - // There is no new line in between. - // Associate the code between "lastGeneratedColumn" and - // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[0]; - var code = nextLine.substr(0, mapping.generatedColumn - - lastGeneratedColumn); - remainingLines[0] = nextLine.substr(mapping.generatedColumn - - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - // No more remaining code, continue - lastMapping = mapping; - return; - } - } - // We add the generated code until the first mapping - // to the SourceNode without any mapping. - // Each line is added as separate string. - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[0]; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[0] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - // We have processed all mappings. - if (remainingLines.length > 0) { - if (lastMapping) { - // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()); - } - // and add the remaining lines without any mapping - node.add(remainingLines.join("")); - } - - // Copy sourcesContent into SourceNode - aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - - return node; - - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === undefined) { - node.add(code); - } else { - var source = aRelativePath - ? util.join(aRelativePath, mapping.source) - : mapping.source; - node.add(new SourceNode(mapping.originalLine, - mapping.originalColumn, - source, - code, - mapping.name)); - } - } - }; - - /** - * Add a chunk of generated JS to this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ - SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function (chunk) { - this.add(chunk); - }, this); - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; - }; - - /** - * Add a chunk of generated JS to the beginning of this source node. - * - * @param aChunk A string snippet of generated JS code, another instance of - * SourceNode, or an array where each member is one of those things. - */ - SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length-1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } - else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } - else { - throw new TypeError( - "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk - ); - } - return this; - }; - - /** - * Walk over the tree of JS snippets in this node and its children. The - * walking function is called once for each snippet of JS and is passed that - * snippet and the its original associated source's line/column location. - * - * @param aFn The traversal function. - */ - SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } - else { - if (chunk !== '') { - aFn(chunk, { source: this.source, - line: this.line, - column: this.column, - name: this.name }); - } - } - } - }; - - /** - * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between - * each of `this.children`. - * - * @param aSep The separator. - */ - SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len-1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; - }; - - /** - * Call String.prototype.replace on the very right-most source snippet. Useful - * for trimming whitespace from the end of a source node, etc. - * - * @param aPattern The pattern to replace. - * @param aReplacement The thing to replace the pattern with. - */ - SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } - else if (typeof lastChild === 'string') { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } - else { - this.children.push(''.replace(aPattern, aReplacement)); - } - return this; - }; - - /** - * Set the source content for a source file. This will be added to the SourceMapGenerator - * in the sourcesContent field. - * - * @param aSourceFile The filename of the source file - * @param aSourceContent The content of the source file - */ - SourceNode.prototype.setSourceContent = - function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - - /** - * Walk over the tree of SourceNodes. The walking function is called for each - * source file content and is passed the filename and source content. - * - * @param aFn The traversal function. - */ - SourceNode.prototype.walkSourceContents = - function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - - /** - * Return the string representation of this source node. Walks over the tree - * and concatenates all the various snippets together to one string. - */ - SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function (chunk) { - str += chunk; - }); - return str; - }; - - /** - * Returns the string representation of this source node along with a source - * map. - */ - SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function (chunk, original) { - generated.code += chunk; - if (original.source !== null - && original.line !== null - && original.column !== null) { - if(lastOriginalSource !== original.source - || lastOriginalLine !== original.line - || lastOriginalColumn !== original.column - || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - // Mappings end at eol - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - - return { code: generated.code, map: map }; - }; - - exports.SourceNode = SourceNode; - -}); diff --git a/node_modules/css/node_modules/source-map/lib/source-map/util.js b/node_modules/css/node_modules/source-map/lib/source-map/util.js deleted file mode 100644 index 976f6ca..0000000 --- a/node_modules/css/node_modules/source-map/lib/source-map/util.js +++ /dev/null @@ -1,319 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - /** - * This is a helper function for getting values from parameter/options - * objects. - * - * @param args The object we are extracting values from - * @param name The name of the property we are getting. - * @param defaultValue An optional value to return if the property is missing - * from the object. If this is not specified and the property is missing, an - * error will be thrown. - */ - function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } - } - exports.getArg = getArg; - - var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/; - var dataUrlRegexp = /^data:.+\,.+$/; - - function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; - } - exports.urlParse = urlParse; - - function urlGenerate(aParsedUrl) { - var url = ''; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':'; - } - url += '//'; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@'; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; - } - exports.urlGenerate = urlGenerate; - - /** - * Normalizes a path, or the path portion of a URL: - * - * - Replaces consequtive slashes with one slash. - * - Removes unnecessary '.' parts. - * - Removes unnecessary '/..' parts. - * - * Based on code in the Node.js 'path' core module. - * - * @param aPath The path or url to normalize. - */ - function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = (path.charAt(0) === '/'); - - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === '.') { - parts.splice(i, 1); - } else if (part === '..') { - up++; - } else if (up > 0) { - if (part === '') { - // The first part is blank if the path is absolute. Trying to go - // above the root is a no-op. Therefore we can remove all '..' parts - // directly after the root. - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join('/'); - - if (path === '') { - path = isAbsolute ? '/' : '.'; - } - - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; - } - exports.normalize = normalize; - - /** - * Joins two paths/URLs. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be joined with the root. - * - * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a - * scheme-relative URL: Then the scheme of aRoot, if any, is prepended - * first. - * - Otherwise aPath is a path. If aRoot is a URL, then its path portion - * is updated with the result and aRoot is returned. Otherwise the result - * is returned. - * - If aPath is absolute, the result is aPath. - * - Otherwise the two paths are joined with a slash. - * - Joining for example 'http://' and 'www.example.com' is also supported. - */ - function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || '/'; - } - - // `join(foo, '//www.example.org')` - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - - // `join('http://', 'www.example.com')` - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - - var joined = aPath.charAt(0) === '/' - ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); - - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; - } - exports.join = join; - - /** - * Make a path relative to a URL or another path. - * - * @param aRoot The root path or URL. - * @param aPath The path or URL to be made relative to aRoot. - */ - function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - - aRoot = aRoot.replace(/\/$/, ''); - - // XXX: It is possible to remove this block, and the tests still pass! - var url = urlParse(aRoot); - if (aPath.charAt(0) == "/" && url && url.path == "/") { - return aPath.slice(1); - } - - return aPath.indexOf(aRoot + '/') === 0 - ? aPath.substr(aRoot.length + 1) - : aPath; - } - exports.relative = relative; - - /** - * Because behavior goes wacky when you set `__proto__` on objects, we - * have to prefix all the strings in our set with an arbitrary character. - * - * See https://github.com/mozilla/source-map/pull/31 and - * https://github.com/mozilla/source-map/issues/30 - * - * @param String aStr - */ - function toSetString(aStr) { - return '$' + aStr; - } - exports.toSetString = toSetString; - - function fromSetString(aStr) { - return aStr.substr(1); - } - exports.fromSetString = fromSetString; - - function strcmp(aStr1, aStr2) { - var s1 = aStr1 || ""; - var s2 = aStr2 || ""; - return (s1 > s2) - (s1 < s2); - } - - /** - * Comparator between two mappings where the original positions are compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same original source/line/column, but different generated - * line and column the same. Useful when searching for a mapping with a - * stubbed out mapping. - */ - function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp; - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp || onlyCompareOriginal) { - return cmp; - } - - cmp = strcmp(mappingA.name, mappingB.name); - if (cmp) { - return cmp; - } - - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp) { - return cmp; - } - - return mappingA.generatedColumn - mappingB.generatedColumn; - }; - exports.compareByOriginalPositions = compareByOriginalPositions; - - /** - * Comparator between two mappings where the generated positions are - * compared. - * - * Optionally pass in `true` as `onlyCompareGenerated` to consider two - * mappings with the same generated line and column, but different - * source/name/original line and column the same. Useful when searching for a - * mapping with a stubbed out mapping. - */ - function compareByGeneratedPositions(mappingA, mappingB, onlyCompareGenerated) { - var cmp; - - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp) { - return cmp; - } - - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp || onlyCompareGenerated) { - return cmp; - } - - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp) { - return cmp; - } - - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp) { - return cmp; - } - - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp) { - return cmp; - } - - return strcmp(mappingA.name, mappingB.name); - }; - exports.compareByGeneratedPositions = compareByGeneratedPositions; - -}); diff --git a/node_modules/css/node_modules/source-map/package.json b/node_modules/css/node_modules/source-map/package.json deleted file mode 100644 index 29b9022..0000000 --- a/node_modules/css/node_modules/source-map/package.json +++ /dev/null @@ -1,219 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "source-map@^0.1.38", - "scope": null, - "escapedName": "source-map", - "name": "source-map", - "rawSpec": "^0.1.38", - "spec": ">=0.1.38 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/css" - ] - ], - "_from": "source-map@>=0.1.38 <0.2.0", - "_id": "source-map@0.1.43", - "_inCache": true, - "_location": "/css/source-map", - "_npmUser": { - "name": "nickfitzgerald", - "email": "fitzgen@gmail.com" - }, - "_npmVersion": "1.4.9", - "_phantomChildren": {}, - "_requested": { - "raw": "source-map@^0.1.38", - "scope": null, - "escapedName": "source-map", - "name": "source-map", - "rawSpec": "^0.1.38", - "spec": ">=0.1.38 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/css" - ], - "_resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "_shasum": "c24bc146ca517c1471f5dacbe2571b2b7f9e3346", - "_shrinkwrap": null, - "_spec": "source-map@^0.1.38", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/css", - "author": { - "name": "Nick Fitzgerald", - "email": "nfitzgerald@mozilla.com" - }, - "bugs": { - "url": "https://github.com/mozilla/source-map/issues" - }, - "contributors": [ - { - "name": "Tobias Koppers", - "email": "tobias.koppers@googlemail.com" - }, - { - "name": "Duncan Beevers", - "email": "duncan@dweebd.com" - }, - { - "name": "Stephen Crane", - "email": "scrane@mozilla.com" - }, - { - "name": "Ryan Seddon", - "email": "seddon.ryan@gmail.com" - }, - { - "name": "Miles Elam", - "email": "miles.elam@deem.com" - }, - { - "name": "Mihai Bazon", - "email": "mihai.bazon@gmail.com" - }, - { - "name": "Michael Ficarra", - "email": "github.public.email@michael.ficarra.me" - }, - { - "name": "Todd Wolfson", - "email": "todd@twolfson.com" - }, - { - "name": "Alexander Solovyov", - "email": "alexander@solovyov.net" - }, - { - "name": "Felix Gnass", - "email": "fgnass@gmail.com" - }, - { - "name": "Conrad Irwin", - "email": "conrad.irwin@gmail.com" - }, - { - "name": "usrbincc", - "email": "usrbincc@yahoo.com" - }, - { - "name": "David Glasser", - "email": "glasser@davidglasser.net" - }, - { - "name": "Chase Douglas", - "email": "chase@newrelic.com" - }, - { - "name": "Evan Wallace", - "email": "evan.exe@gmail.com" - }, - { - "name": "Heather Arthur", - "email": "fayearthur@gmail.com" - }, - { - "name": "Hugh Kennedy", - "email": "hughskennedy@gmail.com" - }, - { - "name": "David Glasser", - "email": "glasser@davidglasser.net" - }, - { - "name": "Simon Lydell", - "email": "simon.lydell@gmail.com" - }, - { - "name": "Jmeas Smith", - "email": "jellyes2@gmail.com" - }, - { - "name": "Michael Z Goddard", - "email": "mzgoddard@gmail.com" - }, - { - "name": "azu", - "email": "azu@users.noreply.github.com" - }, - { - "name": "John Gozde", - "email": "john@gozde.ca" - }, - { - "name": "Adam Kirkton", - "email": "akirkton@truefitinnovation.com" - }, - { - "name": "Chris Montgomery", - "email": "christopher.montgomery@dowjones.com" - }, - { - "name": "J. Ryan Stinnett", - "email": "jryans@gmail.com" - }, - { - "name": "Jack Herrington", - "email": "jherrington@walmartlabs.com" - }, - { - "name": "Chris Truter", - "email": "jeffpalentine@gmail.com" - }, - { - "name": "Daniel Espeset", - "email": "daniel@danielespeset.com" - } - ], - "dependencies": { - "amdefine": ">=0.0.4" - }, - "description": "Generates and consumes source maps", - "devDependencies": { - "dryice": ">=0.4.8" - }, - "directories": { - "lib": "./lib" - }, - "dist": { - "shasum": "c24bc146ca517c1471f5dacbe2571b2b7f9e3346", - "tarball": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz" - }, - "engines": { - "node": ">=0.8.0" - }, - "homepage": "https://github.com/mozilla/source-map", - "licenses": [ - { - "type": "BSD", - "url": "http://opensource.org/licenses/BSD-3-Clause" - } - ], - "main": "./lib/source-map.js", - "maintainers": [ - { - "name": "mozilla-devtools", - "email": "mozilla-developer-tools@googlegroups.com" - }, - { - "name": "mozilla", - "email": "dherman@mozilla.com" - }, - { - "name": "nickfitzgerald", - "email": "fitzgen@gmail.com" - } - ], - "name": "source-map", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/mozilla/source-map.git" - }, - "scripts": { - "build": "node Makefile.dryice.js", - "test": "node test/run-tests.js" - }, - "version": "0.1.43" -} diff --git a/node_modules/css/node_modules/source-map/test/run-tests.js b/node_modules/css/node_modules/source-map/test/run-tests.js deleted file mode 100755 index 64a7c3a..0000000 --- a/node_modules/css/node_modules/source-map/test/run-tests.js +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env node -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -var assert = require('assert'); -var fs = require('fs'); -var path = require('path'); -var util = require('./source-map/util'); - -function run(tests) { - var total = 0; - var passed = 0; - - for (var i = 0; i < tests.length; i++) { - for (var k in tests[i].testCase) { - if (/^test/.test(k)) { - total++; - try { - tests[i].testCase[k](assert, util); - passed++; - } - catch (e) { - console.log('FAILED ' + tests[i].name + ': ' + k + '!'); - console.log(e.stack); - } - } - } - } - - console.log(''); - console.log(passed + ' / ' + total + ' tests passed.'); - console.log(''); - - return total - passed; -} - -function isTestFile(f) { - var testToRun = process.argv[2]; - return testToRun - ? path.basename(testToRun) === f - : /^test\-.*?\.js/.test(f); -} - -function toModule(f) { - return './source-map/' + f.replace(/\.js$/, ''); -} - -var requires = fs.readdirSync(path.join(__dirname, 'source-map')) - .filter(isTestFile) - .map(toModule); - -var code = run(requires.map(require).map(function (mod, i) { - return { - name: requires[i], - testCase: mod - }; -})); - -process.exit(code); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-api.js b/node_modules/css/node_modules/source-map/test/source-map/test-api.js deleted file mode 100644 index 3801233..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-api.js +++ /dev/null @@ -1,26 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2012 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var sourceMap; - try { - sourceMap = require('../../lib/source-map'); - } catch (e) { - sourceMap = {}; - Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap); - } - - exports['test that the api is properly exposed in the top level'] = function (assert, util) { - assert.equal(typeof sourceMap.SourceMapGenerator, "function"); - assert.equal(typeof sourceMap.SourceMapConsumer, "function"); - assert.equal(typeof sourceMap.SourceNode, "function"); - }; - -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-array-set.js b/node_modules/css/node_modules/source-map/test/source-map/test-array-set.js deleted file mode 100644 index b5797ed..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-array-set.js +++ /dev/null @@ -1,104 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var ArraySet = require('../../lib/source-map/array-set').ArraySet; - - function makeTestSet() { - var set = new ArraySet(); - for (var i = 0; i < 100; i++) { - set.add(String(i)); - } - return set; - } - - exports['test .has() membership'] = function (assert, util) { - var set = makeTestSet(); - for (var i = 0; i < 100; i++) { - assert.ok(set.has(String(i))); - } - }; - - exports['test .indexOf() elements'] = function (assert, util) { - var set = makeTestSet(); - for (var i = 0; i < 100; i++) { - assert.strictEqual(set.indexOf(String(i)), i); - } - }; - - exports['test .at() indexing'] = function (assert, util) { - var set = makeTestSet(); - for (var i = 0; i < 100; i++) { - assert.strictEqual(set.at(i), String(i)); - } - }; - - exports['test creating from an array'] = function (assert, util) { - var set = ArraySet.fromArray(['foo', 'bar', 'baz', 'quux', 'hasOwnProperty']); - - assert.ok(set.has('foo')); - assert.ok(set.has('bar')); - assert.ok(set.has('baz')); - assert.ok(set.has('quux')); - assert.ok(set.has('hasOwnProperty')); - - assert.strictEqual(set.indexOf('foo'), 0); - assert.strictEqual(set.indexOf('bar'), 1); - assert.strictEqual(set.indexOf('baz'), 2); - assert.strictEqual(set.indexOf('quux'), 3); - - assert.strictEqual(set.at(0), 'foo'); - assert.strictEqual(set.at(1), 'bar'); - assert.strictEqual(set.at(2), 'baz'); - assert.strictEqual(set.at(3), 'quux'); - }; - - exports['test that you can add __proto__; see github issue #30'] = function (assert, util) { - var set = new ArraySet(); - set.add('__proto__'); - assert.ok(set.has('__proto__')); - assert.strictEqual(set.at(0), '__proto__'); - assert.strictEqual(set.indexOf('__proto__'), 0); - }; - - exports['test .fromArray() with duplicates'] = function (assert, util) { - var set = ArraySet.fromArray(['foo', 'foo']); - assert.ok(set.has('foo')); - assert.strictEqual(set.at(0), 'foo'); - assert.strictEqual(set.indexOf('foo'), 0); - assert.strictEqual(set.toArray().length, 1); - - set = ArraySet.fromArray(['foo', 'foo'], true); - assert.ok(set.has('foo')); - assert.strictEqual(set.at(0), 'foo'); - assert.strictEqual(set.at(1), 'foo'); - assert.strictEqual(set.indexOf('foo'), 0); - assert.strictEqual(set.toArray().length, 2); - }; - - exports['test .add() with duplicates'] = function (assert, util) { - var set = new ArraySet(); - set.add('foo'); - - set.add('foo'); - assert.ok(set.has('foo')); - assert.strictEqual(set.at(0), 'foo'); - assert.strictEqual(set.indexOf('foo'), 0); - assert.strictEqual(set.toArray().length, 1); - - set.add('foo', true); - assert.ok(set.has('foo')); - assert.strictEqual(set.at(0), 'foo'); - assert.strictEqual(set.at(1), 'foo'); - assert.strictEqual(set.indexOf('foo'), 0); - assert.strictEqual(set.toArray().length, 2); - }; - -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-base64-vlq.js b/node_modules/css/node_modules/source-map/test/source-map/test-base64-vlq.js deleted file mode 100644 index 6fd0d99..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-base64-vlq.js +++ /dev/null @@ -1,23 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var base64VLQ = require('../../lib/source-map/base64-vlq'); - - exports['test normal encoding and decoding'] = function (assert, util) { - var result = {}; - for (var i = -255; i < 256; i++) { - base64VLQ.decode(base64VLQ.encode(i), result); - assert.equal(result.value, i); - assert.equal(result.rest, ""); - } - }; - -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-base64.js b/node_modules/css/node_modules/source-map/test/source-map/test-base64.js deleted file mode 100644 index ff3a244..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-base64.js +++ /dev/null @@ -1,35 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var base64 = require('../../lib/source-map/base64'); - - exports['test out of range encoding'] = function (assert, util) { - assert.throws(function () { - base64.encode(-1); - }); - assert.throws(function () { - base64.encode(64); - }); - }; - - exports['test out of range decoding'] = function (assert, util) { - assert.throws(function () { - base64.decode('='); - }); - }; - - exports['test normal encoding and decoding'] = function (assert, util) { - for (var i = 0; i < 64; i++) { - assert.equal(base64.decode(base64.encode(i)), i); - } - }; - -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-binary-search.js b/node_modules/css/node_modules/source-map/test/source-map/test-binary-search.js deleted file mode 100644 index f1c9e0f..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-binary-search.js +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var binarySearch = require('../../lib/source-map/binary-search'); - - function numberCompare(a, b) { - return a - b; - } - - exports['test too high'] = function (assert, util) { - var needle = 30; - var haystack = [2,4,6,8,10,12,14,16,18,20]; - - assert.doesNotThrow(function () { - binarySearch.search(needle, haystack, numberCompare); - }); - - assert.equal(haystack[binarySearch.search(needle, haystack, numberCompare)], 20); - }; - - exports['test too low'] = function (assert, util) { - var needle = 1; - var haystack = [2,4,6,8,10,12,14,16,18,20]; - - assert.doesNotThrow(function () { - binarySearch.search(needle, haystack, numberCompare); - }); - - assert.equal(binarySearch.search(needle, haystack, numberCompare), -1); - }; - - exports['test exact search'] = function (assert, util) { - var needle = 4; - var haystack = [2,4,6,8,10,12,14,16,18,20]; - - assert.equal(haystack[binarySearch.search(needle, haystack, numberCompare)], 4); - }; - - exports['test fuzzy search'] = function (assert, util) { - var needle = 19; - var haystack = [2,4,6,8,10,12,14,16,18,20]; - - assert.equal(haystack[binarySearch.search(needle, haystack, numberCompare)], 18); - }; - -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-dog-fooding.js b/node_modules/css/node_modules/source-map/test/source-map/test-dog-fooding.js deleted file mode 100644 index 26757b2..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-dog-fooding.js +++ /dev/null @@ -1,84 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var SourceMapConsumer = require('../../lib/source-map/source-map-consumer').SourceMapConsumer; - var SourceMapGenerator = require('../../lib/source-map/source-map-generator').SourceMapGenerator; - - exports['test eating our own dog food'] = function (assert, util) { - var smg = new SourceMapGenerator({ - file: 'testing.js', - sourceRoot: '/wu/tang' - }); - - smg.addMapping({ - source: 'gza.coffee', - original: { line: 1, column: 0 }, - generated: { line: 2, column: 2 } - }); - - smg.addMapping({ - source: 'gza.coffee', - original: { line: 2, column: 0 }, - generated: { line: 3, column: 2 } - }); - - smg.addMapping({ - source: 'gza.coffee', - original: { line: 3, column: 0 }, - generated: { line: 4, column: 2 } - }); - - smg.addMapping({ - source: 'gza.coffee', - original: { line: 4, column: 0 }, - generated: { line: 5, column: 2 } - }); - - smg.addMapping({ - source: 'gza.coffee', - original: { line: 5, column: 10 }, - generated: { line: 6, column: 12 } - }); - - var smc = new SourceMapConsumer(smg.toString()); - - // Exact - util.assertMapping(2, 2, '/wu/tang/gza.coffee', 1, 0, null, smc, assert); - util.assertMapping(3, 2, '/wu/tang/gza.coffee', 2, 0, null, smc, assert); - util.assertMapping(4, 2, '/wu/tang/gza.coffee', 3, 0, null, smc, assert); - util.assertMapping(5, 2, '/wu/tang/gza.coffee', 4, 0, null, smc, assert); - util.assertMapping(6, 12, '/wu/tang/gza.coffee', 5, 10, null, smc, assert); - - // Fuzzy - - // Generated to original - util.assertMapping(2, 0, null, null, null, null, smc, assert, true); - util.assertMapping(2, 9, '/wu/tang/gza.coffee', 1, 0, null, smc, assert, true); - util.assertMapping(3, 0, null, null, null, null, smc, assert, true); - util.assertMapping(3, 9, '/wu/tang/gza.coffee', 2, 0, null, smc, assert, true); - util.assertMapping(4, 0, null, null, null, null, smc, assert, true); - util.assertMapping(4, 9, '/wu/tang/gza.coffee', 3, 0, null, smc, assert, true); - util.assertMapping(5, 0, null, null, null, null, smc, assert, true); - util.assertMapping(5, 9, '/wu/tang/gza.coffee', 4, 0, null, smc, assert, true); - util.assertMapping(6, 0, null, null, null, null, smc, assert, true); - util.assertMapping(6, 9, null, null, null, null, smc, assert, true); - util.assertMapping(6, 13, '/wu/tang/gza.coffee', 5, 10, null, smc, assert, true); - - // Original to generated - util.assertMapping(2, 2, '/wu/tang/gza.coffee', 1, 1, null, smc, assert, null, true); - util.assertMapping(3, 2, '/wu/tang/gza.coffee', 2, 3, null, smc, assert, null, true); - util.assertMapping(4, 2, '/wu/tang/gza.coffee', 3, 6, null, smc, assert, null, true); - util.assertMapping(5, 2, '/wu/tang/gza.coffee', 4, 9, null, smc, assert, null, true); - util.assertMapping(5, 2, '/wu/tang/gza.coffee', 5, 9, null, smc, assert, null, true); - util.assertMapping(6, 12, '/wu/tang/gza.coffee', 6, 19, null, smc, assert, null, true); - }; - -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-source-map-consumer.js b/node_modules/css/node_modules/source-map/test/source-map/test-source-map-consumer.js deleted file mode 100644 index c714943..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-source-map-consumer.js +++ /dev/null @@ -1,702 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var SourceMapConsumer = require('../../lib/source-map/source-map-consumer').SourceMapConsumer; - var SourceMapGenerator = require('../../lib/source-map/source-map-generator').SourceMapGenerator; - - exports['test that we can instantiate with a string or an object'] = function (assert, util) { - assert.doesNotThrow(function () { - var map = new SourceMapConsumer(util.testMap); - }); - assert.doesNotThrow(function () { - var map = new SourceMapConsumer(JSON.stringify(util.testMap)); - }); - }; - - exports['test that the `sources` field has the original sources'] = function (assert, util) { - var map; - var sources; - - map = new SourceMapConsumer(util.testMap); - sources = map.sources; - assert.equal(sources[0], '/the/root/one.js'); - assert.equal(sources[1], '/the/root/two.js'); - assert.equal(sources.length, 2); - - map = new SourceMapConsumer(util.testMapNoSourceRoot); - sources = map.sources; - assert.equal(sources[0], 'one.js'); - assert.equal(sources[1], 'two.js'); - assert.equal(sources.length, 2); - - map = new SourceMapConsumer(util.testMapEmptySourceRoot); - sources = map.sources; - assert.equal(sources[0], 'one.js'); - assert.equal(sources[1], 'two.js'); - assert.equal(sources.length, 2); - }; - - exports['test that the source root is reflected in a mapping\'s source field'] = function (assert, util) { - var map; - var mapping; - - map = new SourceMapConsumer(util.testMap); - - mapping = map.originalPositionFor({ - line: 2, - column: 1 - }); - assert.equal(mapping.source, '/the/root/two.js'); - - mapping = map.originalPositionFor({ - line: 1, - column: 1 - }); - assert.equal(mapping.source, '/the/root/one.js'); - - - map = new SourceMapConsumer(util.testMapNoSourceRoot); - - mapping = map.originalPositionFor({ - line: 2, - column: 1 - }); - assert.equal(mapping.source, 'two.js'); - - mapping = map.originalPositionFor({ - line: 1, - column: 1 - }); - assert.equal(mapping.source, 'one.js'); - - - map = new SourceMapConsumer(util.testMapEmptySourceRoot); - - mapping = map.originalPositionFor({ - line: 2, - column: 1 - }); - assert.equal(mapping.source, 'two.js'); - - mapping = map.originalPositionFor({ - line: 1, - column: 1 - }); - assert.equal(mapping.source, 'one.js'); - }; - - exports['test mapping tokens back exactly'] = function (assert, util) { - var map = new SourceMapConsumer(util.testMap); - - util.assertMapping(1, 1, '/the/root/one.js', 1, 1, null, map, assert); - util.assertMapping(1, 5, '/the/root/one.js', 1, 5, null, map, assert); - util.assertMapping(1, 9, '/the/root/one.js', 1, 11, null, map, assert); - util.assertMapping(1, 18, '/the/root/one.js', 1, 21, 'bar', map, assert); - util.assertMapping(1, 21, '/the/root/one.js', 2, 3, null, map, assert); - util.assertMapping(1, 28, '/the/root/one.js', 2, 10, 'baz', map, assert); - util.assertMapping(1, 32, '/the/root/one.js', 2, 14, 'bar', map, assert); - - util.assertMapping(2, 1, '/the/root/two.js', 1, 1, null, map, assert); - util.assertMapping(2, 5, '/the/root/two.js', 1, 5, null, map, assert); - util.assertMapping(2, 9, '/the/root/two.js', 1, 11, null, map, assert); - util.assertMapping(2, 18, '/the/root/two.js', 1, 21, 'n', map, assert); - util.assertMapping(2, 21, '/the/root/two.js', 2, 3, null, map, assert); - util.assertMapping(2, 28, '/the/root/two.js', 2, 10, 'n', map, assert); - }; - - exports['test mapping tokens fuzzy'] = function (assert, util) { - var map = new SourceMapConsumer(util.testMap); - - // Finding original positions - util.assertMapping(1, 20, '/the/root/one.js', 1, 21, 'bar', map, assert, true); - util.assertMapping(1, 30, '/the/root/one.js', 2, 10, 'baz', map, assert, true); - util.assertMapping(2, 12, '/the/root/two.js', 1, 11, null, map, assert, true); - - // Finding generated positions - util.assertMapping(1, 18, '/the/root/one.js', 1, 22, 'bar', map, assert, null, true); - util.assertMapping(1, 28, '/the/root/one.js', 2, 13, 'baz', map, assert, null, true); - util.assertMapping(2, 9, '/the/root/two.js', 1, 16, null, map, assert, null, true); - }; - - exports['test mappings and end of lines'] = function (assert, util) { - var smg = new SourceMapGenerator({ - file: 'foo.js' - }); - smg.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 1, column: 1 }, - source: 'bar.js' - }); - smg.addMapping({ - original: { line: 2, column: 2 }, - generated: { line: 2, column: 2 }, - source: 'bar.js' - }); - - var map = SourceMapConsumer.fromSourceMap(smg); - - // When finding original positions, mappings end at the end of the line. - util.assertMapping(2, 1, null, null, null, null, map, assert, true) - - // When finding generated positions, mappings do not end at the end of the line. - util.assertMapping(1, 1, 'bar.js', 2, 1, null, map, assert, null, true); - }; - - exports['test creating source map consumers with )]}\' prefix'] = function (assert, util) { - assert.doesNotThrow(function () { - var map = new SourceMapConsumer(")]}'" + JSON.stringify(util.testMap)); - }); - }; - - exports['test eachMapping'] = function (assert, util) { - var map; - - map = new SourceMapConsumer(util.testMap); - var previousLine = -Infinity; - var previousColumn = -Infinity; - map.eachMapping(function (mapping) { - assert.ok(mapping.generatedLine >= previousLine); - - assert.ok(mapping.source === '/the/root/one.js' || mapping.source === '/the/root/two.js'); - - if (mapping.generatedLine === previousLine) { - assert.ok(mapping.generatedColumn >= previousColumn); - previousColumn = mapping.generatedColumn; - } - else { - previousLine = mapping.generatedLine; - previousColumn = -Infinity; - } - }); - - map = new SourceMapConsumer(util.testMapNoSourceRoot); - map.eachMapping(function (mapping) { - assert.ok(mapping.source === 'one.js' || mapping.source === 'two.js'); - }); - - map = new SourceMapConsumer(util.testMapEmptySourceRoot); - map.eachMapping(function (mapping) { - assert.ok(mapping.source === 'one.js' || mapping.source === 'two.js'); - }); - }; - - exports['test iterating over mappings in a different order'] = function (assert, util) { - var map = new SourceMapConsumer(util.testMap); - var previousLine = -Infinity; - var previousColumn = -Infinity; - var previousSource = ""; - map.eachMapping(function (mapping) { - assert.ok(mapping.source >= previousSource); - - if (mapping.source === previousSource) { - assert.ok(mapping.originalLine >= previousLine); - - if (mapping.originalLine === previousLine) { - assert.ok(mapping.originalColumn >= previousColumn); - previousColumn = mapping.originalColumn; - } - else { - previousLine = mapping.originalLine; - previousColumn = -Infinity; - } - } - else { - previousSource = mapping.source; - previousLine = -Infinity; - previousColumn = -Infinity; - } - }, null, SourceMapConsumer.ORIGINAL_ORDER); - }; - - exports['test that we can set the context for `this` in eachMapping'] = function (assert, util) { - var map = new SourceMapConsumer(util.testMap); - var context = {}; - map.eachMapping(function () { - assert.equal(this, context); - }, context); - }; - - exports['test that the `sourcesContent` field has the original sources'] = function (assert, util) { - var map = new SourceMapConsumer(util.testMapWithSourcesContent); - var sourcesContent = map.sourcesContent; - - assert.equal(sourcesContent[0], ' ONE.foo = function (bar) {\n return baz(bar);\n };'); - assert.equal(sourcesContent[1], ' TWO.inc = function (n) {\n return n + 1;\n };'); - assert.equal(sourcesContent.length, 2); - }; - - exports['test that we can get the original sources for the sources'] = function (assert, util) { - var map = new SourceMapConsumer(util.testMapWithSourcesContent); - var sources = map.sources; - - assert.equal(map.sourceContentFor(sources[0]), ' ONE.foo = function (bar) {\n return baz(bar);\n };'); - assert.equal(map.sourceContentFor(sources[1]), ' TWO.inc = function (n) {\n return n + 1;\n };'); - assert.equal(map.sourceContentFor("one.js"), ' ONE.foo = function (bar) {\n return baz(bar);\n };'); - assert.equal(map.sourceContentFor("two.js"), ' TWO.inc = function (n) {\n return n + 1;\n };'); - assert.throws(function () { - map.sourceContentFor(""); - }, Error); - assert.throws(function () { - map.sourceContentFor("/the/root/three.js"); - }, Error); - assert.throws(function () { - map.sourceContentFor("three.js"); - }, Error); - }; - - exports['test that we can get the original source content with relative source paths'] = function (assert, util) { - var map = new SourceMapConsumer(util.testMapRelativeSources); - var sources = map.sources; - - assert.equal(map.sourceContentFor(sources[0]), ' ONE.foo = function (bar) {\n return baz(bar);\n };'); - assert.equal(map.sourceContentFor(sources[1]), ' TWO.inc = function (n) {\n return n + 1;\n };'); - assert.equal(map.sourceContentFor("one.js"), ' ONE.foo = function (bar) {\n return baz(bar);\n };'); - assert.equal(map.sourceContentFor("two.js"), ' TWO.inc = function (n) {\n return n + 1;\n };'); - assert.throws(function () { - map.sourceContentFor(""); - }, Error); - assert.throws(function () { - map.sourceContentFor("/the/root/three.js"); - }, Error); - assert.throws(function () { - map.sourceContentFor("three.js"); - }, Error); - }; - - exports['test sourceRoot + generatedPositionFor'] = function (assert, util) { - var map = new SourceMapGenerator({ - sourceRoot: 'foo/bar', - file: 'baz.js' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'bang.coffee' - }); - map.addMapping({ - original: { line: 5, column: 5 }, - generated: { line: 6, column: 6 }, - source: 'bang.coffee' - }); - map = new SourceMapConsumer(map.toString()); - - // Should handle without sourceRoot. - var pos = map.generatedPositionFor({ - line: 1, - column: 1, - source: 'bang.coffee' - }); - - assert.equal(pos.line, 2); - assert.equal(pos.column, 2); - - // Should handle with sourceRoot. - var pos = map.generatedPositionFor({ - line: 1, - column: 1, - source: 'foo/bar/bang.coffee' - }); - - assert.equal(pos.line, 2); - assert.equal(pos.column, 2); - }; - - exports['test allGeneratedPositionsFor'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated.js' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'foo.coffee' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'bar.coffee' - }); - map.addMapping({ - original: { line: 2, column: 1 }, - generated: { line: 3, column: 2 }, - source: 'bar.coffee' - }); - map.addMapping({ - original: { line: 2, column: 2 }, - generated: { line: 3, column: 3 }, - source: 'bar.coffee' - }); - map.addMapping({ - original: { line: 3, column: 1 }, - generated: { line: 4, column: 2 }, - source: 'bar.coffee' - }); - map = new SourceMapConsumer(map.toString()); - - var mappings = map.allGeneratedPositionsFor({ - line: 2, - source: 'bar.coffee' - }); - - assert.equal(mappings.length, 2); - assert.equal(mappings[0].line, 3); - assert.equal(mappings[0].column, 2); - assert.equal(mappings[1].line, 3); - assert.equal(mappings[1].column, 3); - }; - - exports['test allGeneratedPositionsFor for line with no mappings'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated.js' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'foo.coffee' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'bar.coffee' - }); - map.addMapping({ - original: { line: 3, column: 1 }, - generated: { line: 4, column: 2 }, - source: 'bar.coffee' - }); - map = new SourceMapConsumer(map.toString()); - - var mappings = map.allGeneratedPositionsFor({ - line: 2, - source: 'bar.coffee' - }); - - assert.equal(mappings.length, 0); - }; - - exports['test allGeneratedPositionsFor source map with no mappings'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated.js' - }); - map = new SourceMapConsumer(map.toString()); - - var mappings = map.allGeneratedPositionsFor({ - line: 2, - source: 'bar.coffee' - }); - - assert.equal(mappings.length, 0); - }; - - exports['test computeColumnSpans'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated.js' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 1, column: 1 }, - source: 'foo.coffee' - }); - map.addMapping({ - original: { line: 2, column: 1 }, - generated: { line: 2, column: 1 }, - source: 'foo.coffee' - }); - map.addMapping({ - original: { line: 2, column: 2 }, - generated: { line: 2, column: 10 }, - source: 'foo.coffee' - }); - map.addMapping({ - original: { line: 2, column: 3 }, - generated: { line: 2, column: 20 }, - source: 'foo.coffee' - }); - map.addMapping({ - original: { line: 3, column: 1 }, - generated: { line: 3, column: 1 }, - source: 'foo.coffee' - }); - map.addMapping({ - original: { line: 3, column: 2 }, - generated: { line: 3, column: 2 }, - source: 'foo.coffee' - }); - map = new SourceMapConsumer(map.toString()); - - map.computeColumnSpans(); - - var mappings = map.allGeneratedPositionsFor({ - line: 1, - source: 'foo.coffee' - }); - - assert.equal(mappings.length, 1); - assert.equal(mappings[0].lastColumn, Infinity); - - var mappings = map.allGeneratedPositionsFor({ - line: 2, - source: 'foo.coffee' - }); - - assert.equal(mappings.length, 3); - assert.equal(mappings[0].lastColumn, 9); - assert.equal(mappings[1].lastColumn, 19); - assert.equal(mappings[2].lastColumn, Infinity); - - var mappings = map.allGeneratedPositionsFor({ - line: 3, - source: 'foo.coffee' - }); - - assert.equal(mappings.length, 2); - assert.equal(mappings[0].lastColumn, 1); - assert.equal(mappings[1].lastColumn, Infinity); - }; - - exports['test sourceRoot + originalPositionFor'] = function (assert, util) { - var map = new SourceMapGenerator({ - sourceRoot: 'foo/bar', - file: 'baz.js' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'bang.coffee' - }); - map = new SourceMapConsumer(map.toString()); - - var pos = map.originalPositionFor({ - line: 2, - column: 2, - }); - - // Should always have the prepended source root - assert.equal(pos.source, 'foo/bar/bang.coffee'); - assert.equal(pos.line, 1); - assert.equal(pos.column, 1); - }; - - exports['test github issue #56'] = function (assert, util) { - var map = new SourceMapGenerator({ - sourceRoot: 'http://', - file: 'www.example.com/foo.js' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'www.example.com/original.js' - }); - map = new SourceMapConsumer(map.toString()); - - var sources = map.sources; - assert.equal(sources.length, 1); - assert.equal(sources[0], 'http://www.example.com/original.js'); - }; - - exports['test github issue #43'] = function (assert, util) { - var map = new SourceMapGenerator({ - sourceRoot: 'http://example.com', - file: 'foo.js' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'http://cdn.example.com/original.js' - }); - map = new SourceMapConsumer(map.toString()); - - var sources = map.sources; - assert.equal(sources.length, 1, - 'Should only be one source.'); - assert.equal(sources[0], 'http://cdn.example.com/original.js', - 'Should not be joined with the sourceRoot.'); - }; - - exports['test absolute path, but same host sources'] = function (assert, util) { - var map = new SourceMapGenerator({ - sourceRoot: 'http://example.com/foo/bar', - file: 'foo.js' - }); - map.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: '/original.js' - }); - map = new SourceMapConsumer(map.toString()); - - var sources = map.sources; - assert.equal(sources.length, 1, - 'Should only be one source.'); - assert.equal(sources[0], 'http://example.com/original.js', - 'Source should be relative the host of the source root.'); - }; - - exports['test github issue #64'] = function (assert, util) { - var map = new SourceMapConsumer({ - "version": 3, - "file": "foo.js", - "sourceRoot": "http://example.com/", - "sources": ["/a"], - "names": [], - "mappings": "AACA", - "sourcesContent": ["foo"] - }); - - assert.equal(map.sourceContentFor("a"), "foo"); - assert.equal(map.sourceContentFor("/a"), "foo"); - }; - - exports['test bug 885597'] = function (assert, util) { - var map = new SourceMapConsumer({ - "version": 3, - "file": "foo.js", - "sourceRoot": "file:///Users/AlGore/Invented/The/Internet/", - "sources": ["/a"], - "names": [], - "mappings": "AACA", - "sourcesContent": ["foo"] - }); - - var s = map.sources[0]; - assert.equal(map.sourceContentFor(s), "foo"); - }; - - exports['test github issue #72, duplicate sources'] = function (assert, util) { - var map = new SourceMapConsumer({ - "version": 3, - "file": "foo.js", - "sources": ["source1.js", "source1.js", "source3.js"], - "names": [], - "mappings": ";EAAC;;IAEE;;MEEE", - "sourceRoot": "http://example.com" - }); - - var pos = map.originalPositionFor({ - line: 2, - column: 2 - }); - assert.equal(pos.source, 'http://example.com/source1.js'); - assert.equal(pos.line, 1); - assert.equal(pos.column, 1); - - var pos = map.originalPositionFor({ - line: 4, - column: 4 - }); - assert.equal(pos.source, 'http://example.com/source1.js'); - assert.equal(pos.line, 3); - assert.equal(pos.column, 3); - - var pos = map.originalPositionFor({ - line: 6, - column: 6 - }); - assert.equal(pos.source, 'http://example.com/source3.js'); - assert.equal(pos.line, 5); - assert.equal(pos.column, 5); - }; - - exports['test github issue #72, duplicate names'] = function (assert, util) { - var map = new SourceMapConsumer({ - "version": 3, - "file": "foo.js", - "sources": ["source.js"], - "names": ["name1", "name1", "name3"], - "mappings": ";EAACA;;IAEEA;;MAEEE", - "sourceRoot": "http://example.com" - }); - - var pos = map.originalPositionFor({ - line: 2, - column: 2 - }); - assert.equal(pos.name, 'name1'); - assert.equal(pos.line, 1); - assert.equal(pos.column, 1); - - var pos = map.originalPositionFor({ - line: 4, - column: 4 - }); - assert.equal(pos.name, 'name1'); - assert.equal(pos.line, 3); - assert.equal(pos.column, 3); - - var pos = map.originalPositionFor({ - line: 6, - column: 6 - }); - assert.equal(pos.name, 'name3'); - assert.equal(pos.line, 5); - assert.equal(pos.column, 5); - }; - - exports['test SourceMapConsumer.fromSourceMap'] = function (assert, util) { - var smg = new SourceMapGenerator({ - sourceRoot: 'http://example.com/', - file: 'foo.js' - }); - smg.addMapping({ - original: { line: 1, column: 1 }, - generated: { line: 2, column: 2 }, - source: 'bar.js' - }); - smg.addMapping({ - original: { line: 2, column: 2 }, - generated: { line: 4, column: 4 }, - source: 'baz.js', - name: 'dirtMcGirt' - }); - smg.setSourceContent('baz.js', 'baz.js content'); - - var smc = SourceMapConsumer.fromSourceMap(smg); - assert.equal(smc.file, 'foo.js'); - assert.equal(smc.sourceRoot, 'http://example.com/'); - assert.equal(smc.sources.length, 2); - assert.equal(smc.sources[0], 'http://example.com/bar.js'); - assert.equal(smc.sources[1], 'http://example.com/baz.js'); - assert.equal(smc.sourceContentFor('baz.js'), 'baz.js content'); - - var pos = smc.originalPositionFor({ - line: 2, - column: 2 - }); - assert.equal(pos.line, 1); - assert.equal(pos.column, 1); - assert.equal(pos.source, 'http://example.com/bar.js'); - assert.equal(pos.name, null); - - pos = smc.generatedPositionFor({ - line: 1, - column: 1, - source: 'http://example.com/bar.js' - }); - assert.equal(pos.line, 2); - assert.equal(pos.column, 2); - - pos = smc.originalPositionFor({ - line: 4, - column: 4 - }); - assert.equal(pos.line, 2); - assert.equal(pos.column, 2); - assert.equal(pos.source, 'http://example.com/baz.js'); - assert.equal(pos.name, 'dirtMcGirt'); - - pos = smc.generatedPositionFor({ - line: 2, - column: 2, - source: 'http://example.com/baz.js' - }); - assert.equal(pos.line, 4); - assert.equal(pos.column, 4); - }; -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-source-map-generator.js b/node_modules/css/node_modules/source-map/test/source-map/test-source-map-generator.js deleted file mode 100644 index d748bb1..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-source-map-generator.js +++ /dev/null @@ -1,679 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var SourceMapGenerator = require('../../lib/source-map/source-map-generator').SourceMapGenerator; - var SourceMapConsumer = require('../../lib/source-map/source-map-consumer').SourceMapConsumer; - var SourceNode = require('../../lib/source-map/source-node').SourceNode; - var util = require('./util'); - - exports['test some simple stuff'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'foo.js', - sourceRoot: '.' - }); - assert.ok(true); - - var map = new SourceMapGenerator().toJSON(); - assert.ok(!('file' in map)); - assert.ok(!('sourceRoot' in map)); - }; - - exports['test JSON serialization'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'foo.js', - sourceRoot: '.' - }); - assert.equal(map.toString(), JSON.stringify(map)); - }; - - exports['test adding mappings (case 1)'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated-foo.js', - sourceRoot: '.' - }); - - assert.doesNotThrow(function () { - map.addMapping({ - generated: { line: 1, column: 1 } - }); - }); - }; - - exports['test adding mappings (case 2)'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated-foo.js', - sourceRoot: '.' - }); - - assert.doesNotThrow(function () { - map.addMapping({ - generated: { line: 1, column: 1 }, - source: 'bar.js', - original: { line: 1, column: 1 } - }); - }); - }; - - exports['test adding mappings (case 3)'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated-foo.js', - sourceRoot: '.' - }); - - assert.doesNotThrow(function () { - map.addMapping({ - generated: { line: 1, column: 1 }, - source: 'bar.js', - original: { line: 1, column: 1 }, - name: 'someToken' - }); - }); - }; - - exports['test adding mappings (invalid)'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated-foo.js', - sourceRoot: '.' - }); - - // Not enough info. - assert.throws(function () { - map.addMapping({}); - }); - - // Original file position, but no source. - assert.throws(function () { - map.addMapping({ - generated: { line: 1, column: 1 }, - original: { line: 1, column: 1 } - }); - }); - }; - - exports['test adding mappings with skipValidation'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated-foo.js', - sourceRoot: '.', - skipValidation: true - }); - - // Not enough info, caught by `util.getArgs` - assert.throws(function () { - map.addMapping({}); - }); - - // Original file position, but no source. Not checked. - assert.doesNotThrow(function () { - map.addMapping({ - generated: { line: 1, column: 1 }, - original: { line: 1, column: 1 } - }); - }); - }; - - exports['test that the correct mappings are being generated'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'min.js', - sourceRoot: '/the/root' - }); - - map.addMapping({ - generated: { line: 1, column: 1 }, - original: { line: 1, column: 1 }, - source: 'one.js' - }); - map.addMapping({ - generated: { line: 1, column: 5 }, - original: { line: 1, column: 5 }, - source: 'one.js' - }); - map.addMapping({ - generated: { line: 1, column: 9 }, - original: { line: 1, column: 11 }, - source: 'one.js' - }); - map.addMapping({ - generated: { line: 1, column: 18 }, - original: { line: 1, column: 21 }, - source: 'one.js', - name: 'bar' - }); - map.addMapping({ - generated: { line: 1, column: 21 }, - original: { line: 2, column: 3 }, - source: 'one.js' - }); - map.addMapping({ - generated: { line: 1, column: 28 }, - original: { line: 2, column: 10 }, - source: 'one.js', - name: 'baz' - }); - map.addMapping({ - generated: { line: 1, column: 32 }, - original: { line: 2, column: 14 }, - source: 'one.js', - name: 'bar' - }); - - map.addMapping({ - generated: { line: 2, column: 1 }, - original: { line: 1, column: 1 }, - source: 'two.js' - }); - map.addMapping({ - generated: { line: 2, column: 5 }, - original: { line: 1, column: 5 }, - source: 'two.js' - }); - map.addMapping({ - generated: { line: 2, column: 9 }, - original: { line: 1, column: 11 }, - source: 'two.js' - }); - map.addMapping({ - generated: { line: 2, column: 18 }, - original: { line: 1, column: 21 }, - source: 'two.js', - name: 'n' - }); - map.addMapping({ - generated: { line: 2, column: 21 }, - original: { line: 2, column: 3 }, - source: 'two.js' - }); - map.addMapping({ - generated: { line: 2, column: 28 }, - original: { line: 2, column: 10 }, - source: 'two.js', - name: 'n' - }); - - map = JSON.parse(map.toString()); - - util.assertEqualMaps(assert, map, util.testMap); - }; - - exports['test that adding a mapping with an empty string name does not break generation'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'generated-foo.js', - sourceRoot: '.' - }); - - map.addMapping({ - generated: { line: 1, column: 1 }, - source: 'bar.js', - original: { line: 1, column: 1 }, - name: '' - }); - - assert.doesNotThrow(function () { - JSON.parse(map.toString()); - }); - }; - - exports['test that source content can be set'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'min.js', - sourceRoot: '/the/root' - }); - map.addMapping({ - generated: { line: 1, column: 1 }, - original: { line: 1, column: 1 }, - source: 'one.js' - }); - map.addMapping({ - generated: { line: 2, column: 1 }, - original: { line: 1, column: 1 }, - source: 'two.js' - }); - map.setSourceContent('one.js', 'one file content'); - - map = JSON.parse(map.toString()); - assert.equal(map.sources[0], 'one.js'); - assert.equal(map.sources[1], 'two.js'); - assert.equal(map.sourcesContent[0], 'one file content'); - assert.equal(map.sourcesContent[1], null); - }; - - exports['test .fromSourceMap'] = function (assert, util) { - var map = SourceMapGenerator.fromSourceMap(new SourceMapConsumer(util.testMap)); - util.assertEqualMaps(assert, map.toJSON(), util.testMap); - }; - - exports['test .fromSourceMap with sourcesContent'] = function (assert, util) { - var map = SourceMapGenerator.fromSourceMap( - new SourceMapConsumer(util.testMapWithSourcesContent)); - util.assertEqualMaps(assert, map.toJSON(), util.testMapWithSourcesContent); - }; - - exports['test applySourceMap'] = function (assert, util) { - var node = new SourceNode(null, null, null, [ - new SourceNode(2, 0, 'fileX', 'lineX2\n'), - 'genA1\n', - new SourceNode(2, 0, 'fileY', 'lineY2\n'), - 'genA2\n', - new SourceNode(1, 0, 'fileX', 'lineX1\n'), - 'genA3\n', - new SourceNode(1, 0, 'fileY', 'lineY1\n') - ]); - var mapStep1 = node.toStringWithSourceMap({ - file: 'fileA' - }).map; - mapStep1.setSourceContent('fileX', 'lineX1\nlineX2\n'); - mapStep1 = mapStep1.toJSON(); - - node = new SourceNode(null, null, null, [ - 'gen1\n', - new SourceNode(1, 0, 'fileA', 'lineA1\n'), - new SourceNode(2, 0, 'fileA', 'lineA2\n'), - new SourceNode(3, 0, 'fileA', 'lineA3\n'), - new SourceNode(4, 0, 'fileA', 'lineA4\n'), - new SourceNode(1, 0, 'fileB', 'lineB1\n'), - new SourceNode(2, 0, 'fileB', 'lineB2\n'), - 'gen2\n' - ]); - var mapStep2 = node.toStringWithSourceMap({ - file: 'fileGen' - }).map; - mapStep2.setSourceContent('fileB', 'lineB1\nlineB2\n'); - mapStep2 = mapStep2.toJSON(); - - node = new SourceNode(null, null, null, [ - 'gen1\n', - new SourceNode(2, 0, 'fileX', 'lineA1\n'), - new SourceNode(2, 0, 'fileA', 'lineA2\n'), - new SourceNode(2, 0, 'fileY', 'lineA3\n'), - new SourceNode(4, 0, 'fileA', 'lineA4\n'), - new SourceNode(1, 0, 'fileB', 'lineB1\n'), - new SourceNode(2, 0, 'fileB', 'lineB2\n'), - 'gen2\n' - ]); - var expectedMap = node.toStringWithSourceMap({ - file: 'fileGen' - }).map; - expectedMap.setSourceContent('fileX', 'lineX1\nlineX2\n'); - expectedMap.setSourceContent('fileB', 'lineB1\nlineB2\n'); - expectedMap = expectedMap.toJSON(); - - // apply source map "mapStep1" to "mapStep2" - var generator = SourceMapGenerator.fromSourceMap(new SourceMapConsumer(mapStep2)); - generator.applySourceMap(new SourceMapConsumer(mapStep1)); - var actualMap = generator.toJSON(); - - util.assertEqualMaps(assert, actualMap, expectedMap); - }; - - exports['test applySourceMap throws when file is missing'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'test.js' - }); - var map2 = new SourceMapGenerator(); - assert.throws(function() { - map.applySourceMap(new SourceMapConsumer(map2.toJSON())); - }); - }; - - exports['test the two additional parameters of applySourceMap'] = function (assert, util) { - // Assume the following directory structure: - // - // http://foo.org/ - // bar.coffee - // app/ - // coffee/ - // foo.coffee - // temp/ - // bundle.js - // temp_maps/ - // bundle.js.map - // public/ - // bundle.min.js - // bundle.min.js.map - // - // http://www.example.com/ - // baz.coffee - - var bundleMap = new SourceMapGenerator({ - file: 'bundle.js' - }); - bundleMap.addMapping({ - generated: { line: 3, column: 3 }, - original: { line: 2, column: 2 }, - source: '../../coffee/foo.coffee' - }); - bundleMap.setSourceContent('../../coffee/foo.coffee', 'foo coffee'); - bundleMap.addMapping({ - generated: { line: 13, column: 13 }, - original: { line: 12, column: 12 }, - source: '/bar.coffee' - }); - bundleMap.setSourceContent('/bar.coffee', 'bar coffee'); - bundleMap.addMapping({ - generated: { line: 23, column: 23 }, - original: { line: 22, column: 22 }, - source: 'http://www.example.com/baz.coffee' - }); - bundleMap.setSourceContent( - 'http://www.example.com/baz.coffee', - 'baz coffee' - ); - bundleMap = new SourceMapConsumer(bundleMap.toJSON()); - - var minifiedMap = new SourceMapGenerator({ - file: 'bundle.min.js', - sourceRoot: '..' - }); - minifiedMap.addMapping({ - generated: { line: 1, column: 1 }, - original: { line: 3, column: 3 }, - source: 'temp/bundle.js' - }); - minifiedMap.addMapping({ - generated: { line: 11, column: 11 }, - original: { line: 13, column: 13 }, - source: 'temp/bundle.js' - }); - minifiedMap.addMapping({ - generated: { line: 21, column: 21 }, - original: { line: 23, column: 23 }, - source: 'temp/bundle.js' - }); - minifiedMap = new SourceMapConsumer(minifiedMap.toJSON()); - - var expectedMap = function (sources) { - var map = new SourceMapGenerator({ - file: 'bundle.min.js', - sourceRoot: '..' - }); - map.addMapping({ - generated: { line: 1, column: 1 }, - original: { line: 2, column: 2 }, - source: sources[0] - }); - map.setSourceContent(sources[0], 'foo coffee'); - map.addMapping({ - generated: { line: 11, column: 11 }, - original: { line: 12, column: 12 }, - source: sources[1] - }); - map.setSourceContent(sources[1], 'bar coffee'); - map.addMapping({ - generated: { line: 21, column: 21 }, - original: { line: 22, column: 22 }, - source: sources[2] - }); - map.setSourceContent(sources[2], 'baz coffee'); - return map.toJSON(); - } - - var actualMap = function (aSourceMapPath) { - var map = SourceMapGenerator.fromSourceMap(minifiedMap); - // Note that relying on `bundleMap.file` (which is simply 'bundle.js') - // instead of supplying the second parameter wouldn't work here. - map.applySourceMap(bundleMap, '../temp/bundle.js', aSourceMapPath); - return map.toJSON(); - } - - util.assertEqualMaps(assert, actualMap('../temp/temp_maps'), expectedMap([ - 'coffee/foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee' - ])); - - util.assertEqualMaps(assert, actualMap('/app/temp/temp_maps'), expectedMap([ - '/app/coffee/foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee' - ])); - - util.assertEqualMaps(assert, actualMap('http://foo.org/app/temp/temp_maps'), expectedMap([ - 'http://foo.org/app/coffee/foo.coffee', - 'http://foo.org/bar.coffee', - 'http://www.example.com/baz.coffee' - ])); - - // If the third parameter is omitted or set to the current working - // directory we get incorrect source paths: - - util.assertEqualMaps(assert, actualMap(), expectedMap([ - '../coffee/foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee' - ])); - - util.assertEqualMaps(assert, actualMap(''), expectedMap([ - '../coffee/foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee' - ])); - - util.assertEqualMaps(assert, actualMap('.'), expectedMap([ - '../coffee/foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee' - ])); - - util.assertEqualMaps(assert, actualMap('./'), expectedMap([ - '../coffee/foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee' - ])); - }; - - exports['test applySourceMap name handling'] = function (assert, util) { - // Imagine some CoffeeScript code being compiled into JavaScript and then - // minified. - - var assertName = function(coffeeName, jsName, expectedName) { - var minifiedMap = new SourceMapGenerator({ - file: 'test.js.min' - }); - minifiedMap.addMapping({ - generated: { line: 1, column: 4 }, - original: { line: 1, column: 4 }, - source: 'test.js', - name: jsName - }); - - var coffeeMap = new SourceMapGenerator({ - file: 'test.js' - }); - coffeeMap.addMapping({ - generated: { line: 1, column: 4 }, - original: { line: 1, column: 0 }, - source: 'test.coffee', - name: coffeeName - }); - - minifiedMap.applySourceMap(new SourceMapConsumer(coffeeMap.toJSON())); - - new SourceMapConsumer(minifiedMap.toJSON()).eachMapping(function(mapping) { - assert.equal(mapping.name, expectedName); - }); - }; - - // `foo = 1` -> `var foo = 1;` -> `var a=1` - // CoffeeScript doesn’t rename variables, so there’s no need for it to - // provide names in its source maps. Minifiers do rename variables and - // therefore do provide names in their source maps. So that name should be - // retained if the original map lacks names. - assertName(null, 'foo', 'foo'); - - // `foo = 1` -> `var coffee$foo = 1;` -> `var a=1` - // Imagine that CoffeeScript prefixed all variables with `coffee$`. Even - // though the minifier then also provides a name, the original name is - // what corresponds to the source. - assertName('foo', 'coffee$foo', 'foo'); - - // `foo = 1` -> `var coffee$foo = 1;` -> `var coffee$foo=1` - // Minifiers can turn off variable mangling. Then there’s no need to - // provide names in the source map, but the names from the original map are - // still needed. - assertName('foo', null, 'foo'); - - // `foo = 1` -> `var foo = 1;` -> `var foo=1` - // No renaming at all. - assertName(null, null, null); - }; - - exports['test sorting with duplicate generated mappings'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'test.js' - }); - map.addMapping({ - generated: { line: 3, column: 0 }, - original: { line: 2, column: 0 }, - source: 'a.js' - }); - map.addMapping({ - generated: { line: 2, column: 0 } - }); - map.addMapping({ - generated: { line: 2, column: 0 } - }); - map.addMapping({ - generated: { line: 1, column: 0 }, - original: { line: 1, column: 0 }, - source: 'a.js' - }); - - util.assertEqualMaps(assert, map.toJSON(), { - version: 3, - file: 'test.js', - sources: ['a.js'], - names: [], - mappings: 'AAAA;A;AACA' - }); - }; - - exports['test ignore duplicate mappings.'] = function (assert, util) { - var init = { file: 'min.js', sourceRoot: '/the/root' }; - var map1, map2; - - // null original source location - var nullMapping1 = { - generated: { line: 1, column: 0 } - }; - var nullMapping2 = { - generated: { line: 2, column: 2 } - }; - - map1 = new SourceMapGenerator(init); - map2 = new SourceMapGenerator(init); - - map1.addMapping(nullMapping1); - map1.addMapping(nullMapping1); - - map2.addMapping(nullMapping1); - - util.assertEqualMaps(assert, map1.toJSON(), map2.toJSON()); - - map1.addMapping(nullMapping2); - map1.addMapping(nullMapping1); - - map2.addMapping(nullMapping2); - - util.assertEqualMaps(assert, map1.toJSON(), map2.toJSON()); - - // original source location - var srcMapping1 = { - generated: { line: 1, column: 0 }, - original: { line: 11, column: 0 }, - source: 'srcMapping1.js' - }; - var srcMapping2 = { - generated: { line: 2, column: 2 }, - original: { line: 11, column: 0 }, - source: 'srcMapping2.js' - }; - - map1 = new SourceMapGenerator(init); - map2 = new SourceMapGenerator(init); - - map1.addMapping(srcMapping1); - map1.addMapping(srcMapping1); - - map2.addMapping(srcMapping1); - - util.assertEqualMaps(assert, map1.toJSON(), map2.toJSON()); - - map1.addMapping(srcMapping2); - map1.addMapping(srcMapping1); - - map2.addMapping(srcMapping2); - - util.assertEqualMaps(assert, map1.toJSON(), map2.toJSON()); - - // full original source and name information - var fullMapping1 = { - generated: { line: 1, column: 0 }, - original: { line: 11, column: 0 }, - source: 'fullMapping1.js', - name: 'fullMapping1' - }; - var fullMapping2 = { - generated: { line: 2, column: 2 }, - original: { line: 11, column: 0 }, - source: 'fullMapping2.js', - name: 'fullMapping2' - }; - - map1 = new SourceMapGenerator(init); - map2 = new SourceMapGenerator(init); - - map1.addMapping(fullMapping1); - map1.addMapping(fullMapping1); - - map2.addMapping(fullMapping1); - - util.assertEqualMaps(assert, map1.toJSON(), map2.toJSON()); - - map1.addMapping(fullMapping2); - map1.addMapping(fullMapping1); - - map2.addMapping(fullMapping2); - - util.assertEqualMaps(assert, map1.toJSON(), map2.toJSON()); - }; - - exports['test github issue #72, check for duplicate names or sources'] = function (assert, util) { - var map = new SourceMapGenerator({ - file: 'test.js' - }); - map.addMapping({ - generated: { line: 1, column: 1 }, - original: { line: 2, column: 2 }, - source: 'a.js', - name: 'foo' - }); - map.addMapping({ - generated: { line: 3, column: 3 }, - original: { line: 4, column: 4 }, - source: 'a.js', - name: 'foo' - }); - util.assertEqualMaps(assert, map.toJSON(), { - version: 3, - file: 'test.js', - sources: ['a.js'], - names: ['foo'], - mappings: 'CACEA;;GAEEA' - }); - }; - - exports['test setting sourcesContent to null when already null'] = function (assert, util) { - var smg = new SourceMapGenerator({ file: "foo.js" }); - assert.doesNotThrow(function() { - smg.setSourceContent("bar.js", null); - }); - }; - -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-source-node.js b/node_modules/css/node_modules/source-map/test/source-map/test-source-node.js deleted file mode 100644 index 139af4e..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-source-node.js +++ /dev/null @@ -1,612 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var SourceMapGenerator = require('../../lib/source-map/source-map-generator').SourceMapGenerator; - var SourceMapConsumer = require('../../lib/source-map/source-map-consumer').SourceMapConsumer; - var SourceNode = require('../../lib/source-map/source-node').SourceNode; - - function forEachNewline(fn) { - return function (assert, util) { - ['\n', '\r\n'].forEach(fn.bind(null, assert, util)); - } - } - - exports['test .add()'] = function (assert, util) { - var node = new SourceNode(null, null, null); - - // Adding a string works. - node.add('function noop() {}'); - - // Adding another source node works. - node.add(new SourceNode(null, null, null)); - - // Adding an array works. - node.add(['function foo() {', - new SourceNode(null, null, null, - 'return 10;'), - '}']); - - // Adding other stuff doesn't. - assert.throws(function () { - node.add({}); - }); - assert.throws(function () { - node.add(function () {}); - }); - }; - - exports['test .prepend()'] = function (assert, util) { - var node = new SourceNode(null, null, null); - - // Prepending a string works. - node.prepend('function noop() {}'); - assert.equal(node.children[0], 'function noop() {}'); - assert.equal(node.children.length, 1); - - // Prepending another source node works. - node.prepend(new SourceNode(null, null, null)); - assert.equal(node.children[0], ''); - assert.equal(node.children[1], 'function noop() {}'); - assert.equal(node.children.length, 2); - - // Prepending an array works. - node.prepend(['function foo() {', - new SourceNode(null, null, null, - 'return 10;'), - '}']); - assert.equal(node.children[0], 'function foo() {'); - assert.equal(node.children[1], 'return 10;'); - assert.equal(node.children[2], '}'); - assert.equal(node.children[3], ''); - assert.equal(node.children[4], 'function noop() {}'); - assert.equal(node.children.length, 5); - - // Prepending other stuff doesn't. - assert.throws(function () { - node.prepend({}); - }); - assert.throws(function () { - node.prepend(function () {}); - }); - }; - - exports['test .toString()'] = function (assert, util) { - assert.equal((new SourceNode(null, null, null, - ['function foo() {', - new SourceNode(null, null, null, 'return 10;'), - '}'])).toString(), - 'function foo() {return 10;}'); - }; - - exports['test .join()'] = function (assert, util) { - assert.equal((new SourceNode(null, null, null, - ['a', 'b', 'c', 'd'])).join(', ').toString(), - 'a, b, c, d'); - }; - - exports['test .walk()'] = function (assert, util) { - var node = new SourceNode(null, null, null, - ['(function () {\n', - ' ', new SourceNode(1, 0, 'a.js', ['someCall()']), ';\n', - ' ', new SourceNode(2, 0, 'b.js', ['if (foo) bar()']), ';\n', - '}());']); - var expected = [ - { str: '(function () {\n', source: null, line: null, column: null }, - { str: ' ', source: null, line: null, column: null }, - { str: 'someCall()', source: 'a.js', line: 1, column: 0 }, - { str: ';\n', source: null, line: null, column: null }, - { str: ' ', source: null, line: null, column: null }, - { str: 'if (foo) bar()', source: 'b.js', line: 2, column: 0 }, - { str: ';\n', source: null, line: null, column: null }, - { str: '}());', source: null, line: null, column: null }, - ]; - var i = 0; - node.walk(function (chunk, loc) { - assert.equal(expected[i].str, chunk); - assert.equal(expected[i].source, loc.source); - assert.equal(expected[i].line, loc.line); - assert.equal(expected[i].column, loc.column); - i++; - }); - }; - - exports['test .replaceRight'] = function (assert, util) { - var node; - - // Not nested - node = new SourceNode(null, null, null, 'hello world'); - node.replaceRight(/world/, 'universe'); - assert.equal(node.toString(), 'hello universe'); - - // Nested - node = new SourceNode(null, null, null, - [new SourceNode(null, null, null, 'hey sexy mama, '), - new SourceNode(null, null, null, 'want to kill all humans?')]); - node.replaceRight(/kill all humans/, 'watch Futurama'); - assert.equal(node.toString(), 'hey sexy mama, want to watch Futurama?'); - }; - - exports['test .toStringWithSourceMap()'] = forEachNewline(function (assert, util, nl) { - var node = new SourceNode(null, null, null, - ['(function () {' + nl, - ' ', - new SourceNode(1, 0, 'a.js', 'someCall', 'originalCall'), - new SourceNode(1, 8, 'a.js', '()'), - ';' + nl, - ' ', new SourceNode(2, 0, 'b.js', ['if (foo) bar()']), ';' + nl, - '}());']); - var result = node.toStringWithSourceMap({ - file: 'foo.js' - }); - - assert.equal(result.code, [ - '(function () {', - ' someCall();', - ' if (foo) bar();', - '}());' - ].join(nl)); - - var map = result.map; - var mapWithoutOptions = node.toStringWithSourceMap().map; - - assert.ok(map instanceof SourceMapGenerator, 'map instanceof SourceMapGenerator'); - assert.ok(mapWithoutOptions instanceof SourceMapGenerator, 'mapWithoutOptions instanceof SourceMapGenerator'); - assert.ok(!('file' in mapWithoutOptions)); - mapWithoutOptions._file = 'foo.js'; - util.assertEqualMaps(assert, map.toJSON(), mapWithoutOptions.toJSON()); - - map = new SourceMapConsumer(map.toString()); - - var actual; - - actual = map.originalPositionFor({ - line: 1, - column: 4 - }); - assert.equal(actual.source, null); - assert.equal(actual.line, null); - assert.equal(actual.column, null); - - actual = map.originalPositionFor({ - line: 2, - column: 2 - }); - assert.equal(actual.source, 'a.js'); - assert.equal(actual.line, 1); - assert.equal(actual.column, 0); - assert.equal(actual.name, 'originalCall'); - - actual = map.originalPositionFor({ - line: 3, - column: 2 - }); - assert.equal(actual.source, 'b.js'); - assert.equal(actual.line, 2); - assert.equal(actual.column, 0); - - actual = map.originalPositionFor({ - line: 3, - column: 16 - }); - assert.equal(actual.source, null); - assert.equal(actual.line, null); - assert.equal(actual.column, null); - - actual = map.originalPositionFor({ - line: 4, - column: 2 - }); - assert.equal(actual.source, null); - assert.equal(actual.line, null); - assert.equal(actual.column, null); - }); - - exports['test .fromStringWithSourceMap()'] = forEachNewline(function (assert, util, nl) { - var testCode = util.testGeneratedCode.replace(/\n/g, nl); - var node = SourceNode.fromStringWithSourceMap( - testCode, - new SourceMapConsumer(util.testMap)); - - var result = node.toStringWithSourceMap({ - file: 'min.js' - }); - var map = result.map; - var code = result.code; - - assert.equal(code, testCode); - assert.ok(map instanceof SourceMapGenerator, 'map instanceof SourceMapGenerator'); - map = map.toJSON(); - assert.equal(map.version, util.testMap.version); - assert.equal(map.file, util.testMap.file); - assert.equal(map.mappings, util.testMap.mappings); - }); - - exports['test .fromStringWithSourceMap() empty map'] = forEachNewline(function (assert, util, nl) { - var node = SourceNode.fromStringWithSourceMap( - util.testGeneratedCode.replace(/\n/g, nl), - new SourceMapConsumer(util.emptyMap)); - var result = node.toStringWithSourceMap({ - file: 'min.js' - }); - var map = result.map; - var code = result.code; - - assert.equal(code, util.testGeneratedCode.replace(/\n/g, nl)); - assert.ok(map instanceof SourceMapGenerator, 'map instanceof SourceMapGenerator'); - map = map.toJSON(); - assert.equal(map.version, util.emptyMap.version); - assert.equal(map.file, util.emptyMap.file); - assert.equal(map.mappings.length, util.emptyMap.mappings.length); - assert.equal(map.mappings, util.emptyMap.mappings); - }); - - exports['test .fromStringWithSourceMap() complex version'] = forEachNewline(function (assert, util, nl) { - var input = new SourceNode(null, null, null, [ - "(function() {" + nl, - " var Test = {};" + nl, - " ", new SourceNode(1, 0, "a.js", "Test.A = { value: 1234 };" + nl), - " ", new SourceNode(2, 0, "a.js", "Test.A.x = 'xyz';"), nl, - "}());" + nl, - "/* Generated Source */"]); - input = input.toStringWithSourceMap({ - file: 'foo.js' - }); - - var node = SourceNode.fromStringWithSourceMap( - input.code, - new SourceMapConsumer(input.map.toString())); - - var result = node.toStringWithSourceMap({ - file: 'foo.js' - }); - var map = result.map; - var code = result.code; - - assert.equal(code, input.code); - assert.ok(map instanceof SourceMapGenerator, 'map instanceof SourceMapGenerator'); - map = map.toJSON(); - var inputMap = input.map.toJSON(); - util.assertEqualMaps(assert, map, inputMap); - }); - - exports['test .fromStringWithSourceMap() third argument'] = function (assert, util) { - // Assume the following directory structure: - // - // http://foo.org/ - // bar.coffee - // app/ - // coffee/ - // foo.coffee - // coffeeBundle.js # Made from {foo,bar,baz}.coffee - // maps/ - // coffeeBundle.js.map - // js/ - // foo.js - // public/ - // app.js # Made from {foo,coffeeBundle}.js - // app.js.map - // - // http://www.example.com/ - // baz.coffee - - var coffeeBundle = new SourceNode(1, 0, 'foo.coffee', 'foo(coffee);\n'); - coffeeBundle.setSourceContent('foo.coffee', 'foo coffee'); - coffeeBundle.add(new SourceNode(2, 0, '/bar.coffee', 'bar(coffee);\n')); - coffeeBundle.add(new SourceNode(3, 0, 'http://www.example.com/baz.coffee', 'baz(coffee);')); - coffeeBundle = coffeeBundle.toStringWithSourceMap({ - file: 'foo.js', - sourceRoot: '..' - }); - - var foo = new SourceNode(1, 0, 'foo.js', 'foo(js);'); - - var test = function(relativePath, expectedSources) { - var app = new SourceNode(); - app.add(SourceNode.fromStringWithSourceMap( - coffeeBundle.code, - new SourceMapConsumer(coffeeBundle.map.toString()), - relativePath)); - app.add(foo); - var i = 0; - app.walk(function (chunk, loc) { - assert.equal(loc.source, expectedSources[i]); - i++; - }); - app.walkSourceContents(function (sourceFile, sourceContent) { - assert.equal(sourceFile, expectedSources[0]); - assert.equal(sourceContent, 'foo coffee'); - }) - }; - - test('../coffee/maps', [ - '../coffee/foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee', - 'foo.js' - ]); - - // If the third parameter is omitted or set to the current working - // directory we get incorrect source paths: - - test(undefined, [ - '../foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee', - 'foo.js' - ]); - - test('', [ - '../foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee', - 'foo.js' - ]); - - test('.', [ - '../foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee', - 'foo.js' - ]); - - test('./', [ - '../foo.coffee', - '/bar.coffee', - 'http://www.example.com/baz.coffee', - 'foo.js' - ]); - }; - - exports['test .toStringWithSourceMap() merging duplicate mappings'] = forEachNewline(function (assert, util, nl) { - var input = new SourceNode(null, null, null, [ - new SourceNode(1, 0, "a.js", "(function"), - new SourceNode(1, 0, "a.js", "() {" + nl), - " ", - new SourceNode(1, 0, "a.js", "var Test = "), - new SourceNode(1, 0, "b.js", "{};" + nl), - new SourceNode(2, 0, "b.js", "Test"), - new SourceNode(2, 0, "b.js", ".A", "A"), - new SourceNode(2, 20, "b.js", " = { value: ", "A"), - "1234", - new SourceNode(2, 40, "b.js", " };" + nl, "A"), - "}());" + nl, - "/* Generated Source */" - ]); - input = input.toStringWithSourceMap({ - file: 'foo.js' - }); - - assert.equal(input.code, [ - "(function() {", - " var Test = {};", - "Test.A = { value: 1234 };", - "}());", - "/* Generated Source */" - ].join(nl)) - - var correctMap = new SourceMapGenerator({ - file: 'foo.js' - }); - correctMap.addMapping({ - generated: { line: 1, column: 0 }, - source: 'a.js', - original: { line: 1, column: 0 } - }); - // Here is no need for a empty mapping, - // because mappings ends at eol - correctMap.addMapping({ - generated: { line: 2, column: 2 }, - source: 'a.js', - original: { line: 1, column: 0 } - }); - correctMap.addMapping({ - generated: { line: 2, column: 13 }, - source: 'b.js', - original: { line: 1, column: 0 } - }); - correctMap.addMapping({ - generated: { line: 3, column: 0 }, - source: 'b.js', - original: { line: 2, column: 0 } - }); - correctMap.addMapping({ - generated: { line: 3, column: 4 }, - source: 'b.js', - name: 'A', - original: { line: 2, column: 0 } - }); - correctMap.addMapping({ - generated: { line: 3, column: 6 }, - source: 'b.js', - name: 'A', - original: { line: 2, column: 20 } - }); - // This empty mapping is required, - // because there is a hole in the middle of the line - correctMap.addMapping({ - generated: { line: 3, column: 18 } - }); - correctMap.addMapping({ - generated: { line: 3, column: 22 }, - source: 'b.js', - name: 'A', - original: { line: 2, column: 40 } - }); - // Here is no need for a empty mapping, - // because mappings ends at eol - - var inputMap = input.map.toJSON(); - correctMap = correctMap.toJSON(); - util.assertEqualMaps(assert, inputMap, correctMap); - }); - - exports['test .toStringWithSourceMap() multi-line SourceNodes'] = forEachNewline(function (assert, util, nl) { - var input = new SourceNode(null, null, null, [ - new SourceNode(1, 0, "a.js", "(function() {" + nl + "var nextLine = 1;" + nl + "anotherLine();" + nl), - new SourceNode(2, 2, "b.js", "Test.call(this, 123);" + nl), - new SourceNode(2, 2, "b.js", "this['stuff'] = 'v';" + nl), - new SourceNode(2, 2, "b.js", "anotherLine();" + nl), - "/*" + nl + "Generated" + nl + "Source" + nl + "*/" + nl, - new SourceNode(3, 4, "c.js", "anotherLine();" + nl), - "/*" + nl + "Generated" + nl + "Source" + nl + "*/" - ]); - input = input.toStringWithSourceMap({ - file: 'foo.js' - }); - - assert.equal(input.code, [ - "(function() {", - "var nextLine = 1;", - "anotherLine();", - "Test.call(this, 123);", - "this['stuff'] = 'v';", - "anotherLine();", - "/*", - "Generated", - "Source", - "*/", - "anotherLine();", - "/*", - "Generated", - "Source", - "*/" - ].join(nl)); - - var correctMap = new SourceMapGenerator({ - file: 'foo.js' - }); - correctMap.addMapping({ - generated: { line: 1, column: 0 }, - source: 'a.js', - original: { line: 1, column: 0 } - }); - correctMap.addMapping({ - generated: { line: 2, column: 0 }, - source: 'a.js', - original: { line: 1, column: 0 } - }); - correctMap.addMapping({ - generated: { line: 3, column: 0 }, - source: 'a.js', - original: { line: 1, column: 0 } - }); - correctMap.addMapping({ - generated: { line: 4, column: 0 }, - source: 'b.js', - original: { line: 2, column: 2 } - }); - correctMap.addMapping({ - generated: { line: 5, column: 0 }, - source: 'b.js', - original: { line: 2, column: 2 } - }); - correctMap.addMapping({ - generated: { line: 6, column: 0 }, - source: 'b.js', - original: { line: 2, column: 2 } - }); - correctMap.addMapping({ - generated: { line: 11, column: 0 }, - source: 'c.js', - original: { line: 3, column: 4 } - }); - - var inputMap = input.map.toJSON(); - correctMap = correctMap.toJSON(); - util.assertEqualMaps(assert, inputMap, correctMap); - }); - - exports['test .toStringWithSourceMap() with empty string'] = function (assert, util) { - var node = new SourceNode(1, 0, 'empty.js', ''); - var result = node.toStringWithSourceMap(); - assert.equal(result.code, ''); - }; - - exports['test .toStringWithSourceMap() with consecutive newlines'] = forEachNewline(function (assert, util, nl) { - var input = new SourceNode(null, null, null, [ - "/***/" + nl + nl, - new SourceNode(1, 0, "a.js", "'use strict';" + nl), - new SourceNode(2, 0, "a.js", "a();"), - ]); - input = input.toStringWithSourceMap({ - file: 'foo.js' - }); - - assert.equal(input.code, [ - "/***/", - "", - "'use strict';", - "a();", - ].join(nl)); - - var correctMap = new SourceMapGenerator({ - file: 'foo.js' - }); - correctMap.addMapping({ - generated: { line: 3, column: 0 }, - source: 'a.js', - original: { line: 1, column: 0 } - }); - correctMap.addMapping({ - generated: { line: 4, column: 0 }, - source: 'a.js', - original: { line: 2, column: 0 } - }); - - var inputMap = input.map.toJSON(); - correctMap = correctMap.toJSON(); - util.assertEqualMaps(assert, inputMap, correctMap); - }); - - exports['test setSourceContent with toStringWithSourceMap'] = function (assert, util) { - var aNode = new SourceNode(1, 1, 'a.js', 'a'); - aNode.setSourceContent('a.js', 'someContent'); - var node = new SourceNode(null, null, null, - ['(function () {\n', - ' ', aNode, - ' ', new SourceNode(1, 1, 'b.js', 'b'), - '}());']); - node.setSourceContent('b.js', 'otherContent'); - var map = node.toStringWithSourceMap({ - file: 'foo.js' - }).map; - - assert.ok(map instanceof SourceMapGenerator, 'map instanceof SourceMapGenerator'); - map = new SourceMapConsumer(map.toString()); - - assert.equal(map.sources.length, 2); - assert.equal(map.sources[0], 'a.js'); - assert.equal(map.sources[1], 'b.js'); - assert.equal(map.sourcesContent.length, 2); - assert.equal(map.sourcesContent[0], 'someContent'); - assert.equal(map.sourcesContent[1], 'otherContent'); - }; - - exports['test walkSourceContents'] = function (assert, util) { - var aNode = new SourceNode(1, 1, 'a.js', 'a'); - aNode.setSourceContent('a.js', 'someContent'); - var node = new SourceNode(null, null, null, - ['(function () {\n', - ' ', aNode, - ' ', new SourceNode(1, 1, 'b.js', 'b'), - '}());']); - node.setSourceContent('b.js', 'otherContent'); - var results = []; - node.walkSourceContents(function (sourceFile, sourceContent) { - results.push([sourceFile, sourceContent]); - }); - assert.equal(results.length, 2); - assert.equal(results[0][0], 'a.js'); - assert.equal(results[0][1], 'someContent'); - assert.equal(results[1][0], 'b.js'); - assert.equal(results[1][1], 'otherContent'); - }; -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/test-util.js b/node_modules/css/node_modules/source-map/test/source-map/test-util.js deleted file mode 100644 index 997d1a2..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/test-util.js +++ /dev/null @@ -1,216 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2014 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var libUtil = require('../../lib/source-map/util'); - - exports['test urls'] = function (assert, util) { - var assertUrl = function (url) { - assert.equal(url, libUtil.urlGenerate(libUtil.urlParse(url))); - }; - assertUrl('http://'); - assertUrl('http://www.example.com'); - assertUrl('http://user:pass@www.example.com'); - assertUrl('http://www.example.com:80'); - assertUrl('http://www.example.com/'); - assertUrl('http://www.example.com/foo/bar'); - assertUrl('http://www.example.com/foo/bar/'); - assertUrl('http://user:pass@www.example.com:80/foo/bar/'); - - assertUrl('//'); - assertUrl('//www.example.com'); - assertUrl('file:///www.example.com'); - - assert.equal(libUtil.urlParse(''), null); - assert.equal(libUtil.urlParse('.'), null); - assert.equal(libUtil.urlParse('..'), null); - assert.equal(libUtil.urlParse('a'), null); - assert.equal(libUtil.urlParse('a/b'), null); - assert.equal(libUtil.urlParse('a//b'), null); - assert.equal(libUtil.urlParse('/a'), null); - assert.equal(libUtil.urlParse('data:foo,bar'), null); - }; - - exports['test normalize()'] = function (assert, util) { - assert.equal(libUtil.normalize('/..'), '/'); - assert.equal(libUtil.normalize('/../'), '/'); - assert.equal(libUtil.normalize('/../../../..'), '/'); - assert.equal(libUtil.normalize('/../../../../a/b/c'), '/a/b/c'); - assert.equal(libUtil.normalize('/a/b/c/../../../d/../../e'), '/e'); - - assert.equal(libUtil.normalize('..'), '..'); - assert.equal(libUtil.normalize('../'), '../'); - assert.equal(libUtil.normalize('../../a/'), '../../a/'); - assert.equal(libUtil.normalize('a/..'), '.'); - assert.equal(libUtil.normalize('a/../../..'), '../..'); - - assert.equal(libUtil.normalize('/.'), '/'); - assert.equal(libUtil.normalize('/./'), '/'); - assert.equal(libUtil.normalize('/./././.'), '/'); - assert.equal(libUtil.normalize('/././././a/b/c'), '/a/b/c'); - assert.equal(libUtil.normalize('/a/b/c/./././d/././e'), '/a/b/c/d/e'); - - assert.equal(libUtil.normalize(''), '.'); - assert.equal(libUtil.normalize('.'), '.'); - assert.equal(libUtil.normalize('./'), '.'); - assert.equal(libUtil.normalize('././a'), 'a'); - assert.equal(libUtil.normalize('a/./'), 'a/'); - assert.equal(libUtil.normalize('a/././.'), 'a'); - - assert.equal(libUtil.normalize('/a/b//c////d/////'), '/a/b/c/d/'); - assert.equal(libUtil.normalize('///a/b//c////d/////'), '///a/b/c/d/'); - assert.equal(libUtil.normalize('a/b//c////d'), 'a/b/c/d'); - - assert.equal(libUtil.normalize('.///.././../a/b//./..'), '../../a') - - assert.equal(libUtil.normalize('http://www.example.com'), 'http://www.example.com'); - assert.equal(libUtil.normalize('http://www.example.com/'), 'http://www.example.com/'); - assert.equal(libUtil.normalize('http://www.example.com/./..//a/b/c/.././d//'), 'http://www.example.com/a/b/d/'); - }; - - exports['test join()'] = function (assert, util) { - assert.equal(libUtil.join('a', 'b'), 'a/b'); - assert.equal(libUtil.join('a/', 'b'), 'a/b'); - assert.equal(libUtil.join('a//', 'b'), 'a/b'); - assert.equal(libUtil.join('a', 'b/'), 'a/b/'); - assert.equal(libUtil.join('a', 'b//'), 'a/b/'); - assert.equal(libUtil.join('a/', '/b'), '/b'); - assert.equal(libUtil.join('a//', '//b'), '//b'); - - assert.equal(libUtil.join('a', '..'), '.'); - assert.equal(libUtil.join('a', '../b'), 'b'); - assert.equal(libUtil.join('a/b', '../c'), 'a/c'); - - assert.equal(libUtil.join('a', '.'), 'a'); - assert.equal(libUtil.join('a', './b'), 'a/b'); - assert.equal(libUtil.join('a/b', './c'), 'a/b/c'); - - assert.equal(libUtil.join('a', 'http://www.example.com'), 'http://www.example.com'); - assert.equal(libUtil.join('a', 'data:foo,bar'), 'data:foo,bar'); - - - assert.equal(libUtil.join('', 'b'), 'b'); - assert.equal(libUtil.join('.', 'b'), 'b'); - assert.equal(libUtil.join('', 'b/'), 'b/'); - assert.equal(libUtil.join('.', 'b/'), 'b/'); - assert.equal(libUtil.join('', 'b//'), 'b/'); - assert.equal(libUtil.join('.', 'b//'), 'b/'); - - assert.equal(libUtil.join('', '..'), '..'); - assert.equal(libUtil.join('.', '..'), '..'); - assert.equal(libUtil.join('', '../b'), '../b'); - assert.equal(libUtil.join('.', '../b'), '../b'); - - assert.equal(libUtil.join('', '.'), '.'); - assert.equal(libUtil.join('.', '.'), '.'); - assert.equal(libUtil.join('', './b'), 'b'); - assert.equal(libUtil.join('.', './b'), 'b'); - - assert.equal(libUtil.join('', 'http://www.example.com'), 'http://www.example.com'); - assert.equal(libUtil.join('.', 'http://www.example.com'), 'http://www.example.com'); - assert.equal(libUtil.join('', 'data:foo,bar'), 'data:foo,bar'); - assert.equal(libUtil.join('.', 'data:foo,bar'), 'data:foo,bar'); - - - assert.equal(libUtil.join('..', 'b'), '../b'); - assert.equal(libUtil.join('..', 'b/'), '../b/'); - assert.equal(libUtil.join('..', 'b//'), '../b/'); - - assert.equal(libUtil.join('..', '..'), '../..'); - assert.equal(libUtil.join('..', '../b'), '../../b'); - - assert.equal(libUtil.join('..', '.'), '..'); - assert.equal(libUtil.join('..', './b'), '../b'); - - assert.equal(libUtil.join('..', 'http://www.example.com'), 'http://www.example.com'); - assert.equal(libUtil.join('..', 'data:foo,bar'), 'data:foo,bar'); - - - assert.equal(libUtil.join('a', ''), 'a'); - assert.equal(libUtil.join('a', '.'), 'a'); - assert.equal(libUtil.join('a/', ''), 'a'); - assert.equal(libUtil.join('a/', '.'), 'a'); - assert.equal(libUtil.join('a//', ''), 'a'); - assert.equal(libUtil.join('a//', '.'), 'a'); - assert.equal(libUtil.join('/a', ''), '/a'); - assert.equal(libUtil.join('/a', '.'), '/a'); - assert.equal(libUtil.join('', ''), '.'); - assert.equal(libUtil.join('.', ''), '.'); - assert.equal(libUtil.join('.', ''), '.'); - assert.equal(libUtil.join('.', '.'), '.'); - assert.equal(libUtil.join('..', ''), '..'); - assert.equal(libUtil.join('..', '.'), '..'); - assert.equal(libUtil.join('http://foo.org/a', ''), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org/a', '.'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org/a/', ''), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org/a/', '.'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org/a//', ''), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org/a//', '.'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org', ''), 'http://foo.org/'); - assert.equal(libUtil.join('http://foo.org', '.'), 'http://foo.org/'); - assert.equal(libUtil.join('http://foo.org/', ''), 'http://foo.org/'); - assert.equal(libUtil.join('http://foo.org/', '.'), 'http://foo.org/'); - assert.equal(libUtil.join('http://foo.org//', ''), 'http://foo.org/'); - assert.equal(libUtil.join('http://foo.org//', '.'), 'http://foo.org/'); - assert.equal(libUtil.join('//www.example.com', ''), '//www.example.com/'); - assert.equal(libUtil.join('//www.example.com', '.'), '//www.example.com/'); - - - assert.equal(libUtil.join('http://foo.org/a', 'b'), 'http://foo.org/a/b'); - assert.equal(libUtil.join('http://foo.org/a/', 'b'), 'http://foo.org/a/b'); - assert.equal(libUtil.join('http://foo.org/a//', 'b'), 'http://foo.org/a/b'); - assert.equal(libUtil.join('http://foo.org/a', 'b/'), 'http://foo.org/a/b/'); - assert.equal(libUtil.join('http://foo.org/a', 'b//'), 'http://foo.org/a/b/'); - assert.equal(libUtil.join('http://foo.org/a/', '/b'), 'http://foo.org/b'); - assert.equal(libUtil.join('http://foo.org/a//', '//b'), 'http://b'); - - assert.equal(libUtil.join('http://foo.org/a', '..'), 'http://foo.org/'); - assert.equal(libUtil.join('http://foo.org/a', '../b'), 'http://foo.org/b'); - assert.equal(libUtil.join('http://foo.org/a/b', '../c'), 'http://foo.org/a/c'); - - assert.equal(libUtil.join('http://foo.org/a', '.'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org/a', './b'), 'http://foo.org/a/b'); - assert.equal(libUtil.join('http://foo.org/a/b', './c'), 'http://foo.org/a/b/c'); - - assert.equal(libUtil.join('http://foo.org/a', 'http://www.example.com'), 'http://www.example.com'); - assert.equal(libUtil.join('http://foo.org/a', 'data:foo,bar'), 'data:foo,bar'); - - - assert.equal(libUtil.join('http://foo.org', 'a'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org/', 'a'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org//', 'a'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org', '/a'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org/', '/a'), 'http://foo.org/a'); - assert.equal(libUtil.join('http://foo.org//', '/a'), 'http://foo.org/a'); - - - assert.equal(libUtil.join('http://', 'www.example.com'), 'http://www.example.com'); - assert.equal(libUtil.join('file:///', 'www.example.com'), 'file:///www.example.com'); - assert.equal(libUtil.join('http://', 'ftp://example.com'), 'ftp://example.com'); - - assert.equal(libUtil.join('http://www.example.com', '//foo.org/bar'), 'http://foo.org/bar'); - assert.equal(libUtil.join('//www.example.com', '//foo.org/bar'), '//foo.org/bar'); - }; - - // TODO Issue #128: Define and test this function properly. - exports['test relative()'] = function (assert, util) { - assert.equal(libUtil.relative('/the/root', '/the/root/one.js'), 'one.js'); - assert.equal(libUtil.relative('/the/root', '/the/rootone.js'), '/the/rootone.js'); - - assert.equal(libUtil.relative('', '/the/root/one.js'), '/the/root/one.js'); - assert.equal(libUtil.relative('.', '/the/root/one.js'), '/the/root/one.js'); - assert.equal(libUtil.relative('', 'the/root/one.js'), 'the/root/one.js'); - assert.equal(libUtil.relative('.', 'the/root/one.js'), 'the/root/one.js'); - - assert.equal(libUtil.relative('/', '/the/root/one.js'), 'the/root/one.js'); - assert.equal(libUtil.relative('/', 'the/root/one.js'), 'the/root/one.js'); - }; - -}); diff --git a/node_modules/css/node_modules/source-map/test/source-map/util.js b/node_modules/css/node_modules/source-map/test/source-map/util.js deleted file mode 100644 index 56bbe2c..0000000 --- a/node_modules/css/node_modules/source-map/test/source-map/util.js +++ /dev/null @@ -1,192 +0,0 @@ -/* -*- Mode: js; js-indent-level: 2; -*- */ -/* - * Copyright 2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE or: - * http://opensource.org/licenses/BSD-3-Clause - */ -if (typeof define !== 'function') { - var define = require('amdefine')(module, require); -} -define(function (require, exports, module) { - - var util = require('../../lib/source-map/util'); - - // This is a test mapping which maps functions from two different files - // (one.js and two.js) to a minified generated source. - // - // Here is one.js: - // - // ONE.foo = function (bar) { - // return baz(bar); - // }; - // - // Here is two.js: - // - // TWO.inc = function (n) { - // return n + 1; - // }; - // - // And here is the generated code (min.js): - // - // ONE.foo=function(a){return baz(a);}; - // TWO.inc=function(a){return a+1;}; - exports.testGeneratedCode = " ONE.foo=function(a){return baz(a);};\n"+ - " TWO.inc=function(a){return a+1;};"; - exports.testMap = { - version: 3, - file: 'min.js', - names: ['bar', 'baz', 'n'], - sources: ['one.js', 'two.js'], - sourceRoot: '/the/root', - mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' - }; - exports.testMapNoSourceRoot = { - version: 3, - file: 'min.js', - names: ['bar', 'baz', 'n'], - sources: ['one.js', 'two.js'], - mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' - }; - exports.testMapEmptySourceRoot = { - version: 3, - file: 'min.js', - names: ['bar', 'baz', 'n'], - sources: ['one.js', 'two.js'], - sourceRoot: '', - mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' - }; - exports.testMapWithSourcesContent = { - version: 3, - file: 'min.js', - names: ['bar', 'baz', 'n'], - sources: ['one.js', 'two.js'], - sourcesContent: [ - ' ONE.foo = function (bar) {\n' + - ' return baz(bar);\n' + - ' };', - ' TWO.inc = function (n) {\n' + - ' return n + 1;\n' + - ' };' - ], - sourceRoot: '/the/root', - mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' - }; - exports.testMapRelativeSources = { - version: 3, - file: 'min.js', - names: ['bar', 'baz', 'n'], - sources: ['./one.js', './two.js'], - sourcesContent: [ - ' ONE.foo = function (bar) {\n' + - ' return baz(bar);\n' + - ' };', - ' TWO.inc = function (n) {\n' + - ' return n + 1;\n' + - ' };' - ], - sourceRoot: '/the/root', - mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' - }; - exports.emptyMap = { - version: 3, - file: 'min.js', - names: [], - sources: [], - mappings: '' - }; - - - function assertMapping(generatedLine, generatedColumn, originalSource, - originalLine, originalColumn, name, map, assert, - dontTestGenerated, dontTestOriginal) { - if (!dontTestOriginal) { - var origMapping = map.originalPositionFor({ - line: generatedLine, - column: generatedColumn - }); - assert.equal(origMapping.name, name, - 'Incorrect name, expected ' + JSON.stringify(name) - + ', got ' + JSON.stringify(origMapping.name)); - assert.equal(origMapping.line, originalLine, - 'Incorrect line, expected ' + JSON.stringify(originalLine) - + ', got ' + JSON.stringify(origMapping.line)); - assert.equal(origMapping.column, originalColumn, - 'Incorrect column, expected ' + JSON.stringify(originalColumn) - + ', got ' + JSON.stringify(origMapping.column)); - - var expectedSource; - - if (originalSource && map.sourceRoot && originalSource.indexOf(map.sourceRoot) === 0) { - expectedSource = originalSource; - } else if (originalSource) { - expectedSource = map.sourceRoot - ? util.join(map.sourceRoot, originalSource) - : originalSource; - } else { - expectedSource = null; - } - - assert.equal(origMapping.source, expectedSource, - 'Incorrect source, expected ' + JSON.stringify(expectedSource) - + ', got ' + JSON.stringify(origMapping.source)); - } - - if (!dontTestGenerated) { - var genMapping = map.generatedPositionFor({ - source: originalSource, - line: originalLine, - column: originalColumn - }); - assert.equal(genMapping.line, generatedLine, - 'Incorrect line, expected ' + JSON.stringify(generatedLine) - + ', got ' + JSON.stringify(genMapping.line)); - assert.equal(genMapping.column, generatedColumn, - 'Incorrect column, expected ' + JSON.stringify(generatedColumn) - + ', got ' + JSON.stringify(genMapping.column)); - } - } - exports.assertMapping = assertMapping; - - function assertEqualMaps(assert, actualMap, expectedMap) { - assert.equal(actualMap.version, expectedMap.version, "version mismatch"); - assert.equal(actualMap.file, expectedMap.file, "file mismatch"); - assert.equal(actualMap.names.length, - expectedMap.names.length, - "names length mismatch: " + - actualMap.names.join(", ") + " != " + expectedMap.names.join(", ")); - for (var i = 0; i < actualMap.names.length; i++) { - assert.equal(actualMap.names[i], - expectedMap.names[i], - "names[" + i + "] mismatch: " + - actualMap.names.join(", ") + " != " + expectedMap.names.join(", ")); - } - assert.equal(actualMap.sources.length, - expectedMap.sources.length, - "sources length mismatch: " + - actualMap.sources.join(", ") + " != " + expectedMap.sources.join(", ")); - for (var i = 0; i < actualMap.sources.length; i++) { - assert.equal(actualMap.sources[i], - expectedMap.sources[i], - "sources[" + i + "] length mismatch: " + - actualMap.sources.join(", ") + " != " + expectedMap.sources.join(", ")); - } - assert.equal(actualMap.sourceRoot, - expectedMap.sourceRoot, - "sourceRoot mismatch: " + - actualMap.sourceRoot + " != " + expectedMap.sourceRoot); - assert.equal(actualMap.mappings, expectedMap.mappings, - "mappings mismatch:\nActual: " + actualMap.mappings + "\nExpected: " + expectedMap.mappings); - if (actualMap.sourcesContent) { - assert.equal(actualMap.sourcesContent.length, - expectedMap.sourcesContent.length, - "sourcesContent length mismatch"); - for (var i = 0; i < actualMap.sourcesContent.length; i++) { - assert.equal(actualMap.sourcesContent[i], - expectedMap.sourcesContent[i], - "sourcesContent[" + i + "] mismatch"); - } - } - } - exports.assertEqualMaps = assertEqualMaps; - -}); diff --git a/node_modules/css/package.json b/node_modules/css/package.json deleted file mode 100644 index d55db1c..0000000 --- a/node_modules/css/package.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "css@^2.0.0", - "scope": null, - "escapedName": "css", - "name": "css", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/rework" - ] - ], - "_from": "css@>=2.0.0 <3.0.0", - "_id": "css@2.2.1", - "_inCache": true, - "_location": "/css", - "_nodeVersion": "2.2.1", - "_npmUser": { - "name": "conradz", - "email": "me@conradz.com" - }, - "_npmVersion": "2.11.0", - "_phantomChildren": { - "amdefine": "1.0.1" - }, - "_requested": { - "raw": "css@^2.0.0", - "scope": null, - "escapedName": "css", - "name": "css", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/rework", - "/rework-import" - ], - "_resolved": "https://registry.npmjs.org/css/-/css-2.2.1.tgz", - "_shasum": "73a4c81de85db664d4ee674f7d47085e3b2d55dc", - "_shrinkwrap": null, - "_spec": "css@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/rework", - "author": { - "name": "TJ Holowaychuk", - "email": "tj@vision-media.ca" - }, - "bugs": { - "url": "https://github.com/reworkcss/css/issues" - }, - "dependencies": { - "inherits": "^2.0.1", - "source-map": "^0.1.38", - "source-map-resolve": "^0.3.0", - "urix": "^0.1.0" - }, - "description": "CSS parser / stringifier", - "devDependencies": { - "bytes": "^1.0.0", - "matcha": "^0.5.0", - "mocha": "^1.21.3", - "should": "^4.0.4" - }, - "directories": {}, - "dist": { - "shasum": "73a4c81de85db664d4ee674f7d47085e3b2d55dc", - "tarball": "https://registry.npmjs.org/css/-/css-2.2.1.tgz" - }, - "files": [ - "index.js", - "lib" - ], - "gitHead": "e38b6f1cc03aa36ff161a3da96b5c7510bd41ca7", - "homepage": "https://github.com/reworkcss/css#readme", - "keywords": [ - "css", - "parser", - "stringifier", - "stylesheet" - ], - "license": "MIT", - "main": "index", - "maintainers": [ - { - "name": "tjholowaychuk", - "email": "tj@vision-media.ca" - }, - { - "name": "jonathanong", - "email": "jonathanrichardong@gmail.com" - }, - { - "name": "jongleberry", - "email": "jonathanrichardong@gmail.com" - }, - { - "name": "conradz", - "email": "me@conradz.com" - }, - { - "name": "necolas", - "email": "nicolasgallagher@gmail.com" - }, - { - "name": "anthonyshort", - "email": "antshort@gmail.com" - }, - { - "name": "ianstormtaylor", - "email": "ian@ianstormtaylor.com" - }, - { - "name": "moox", - "email": "m@moox.io" - }, - { - "name": "clintwood", - "email": "clint@anotherway.co.za" - }, - { - "name": "lydell", - "email": "simon.lydell@gmail.com" - }, - { - "name": "slexaxton", - "email": "alexsexton@gmail.com" - } - ], - "name": "css", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/reworkcss/css.git" - }, - "scripts": { - "benchmark": "matcha", - "test": "mocha --require should --reporter spec --bail test/*.js" - }, - "version": "2.2.1" -} diff --git a/node_modules/currently-unhandled/browser.js b/node_modules/currently-unhandled/browser.js deleted file mode 100644 index aa9e56f..0000000 --- a/node_modules/currently-unhandled/browser.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; -var core = require('./core'); - -function unwrapEvent(event) { - if (event && event.detail && event.detail.promise) { - return event.detail; - } - - return event; -} - -module.exports = function (w) { - w = w || window; - var c = core(); - - w.addEventListener('unhandledrejection', function (event) { - event = unwrapEvent(event); - c.onUnhandledRejection(event.reason, event.promise); - }); - - w.addEventListener('rejectionhandled', function (event) { - event = unwrapEvent(event); - c.onRejectionHandled(event.promise); - }); - - return c.currentlyUnhandled; -}; diff --git a/node_modules/currently-unhandled/core.js b/node_modules/currently-unhandled/core.js deleted file mode 100644 index 73db22e..0000000 --- a/node_modules/currently-unhandled/core.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; -var arrayFindIndex = require('array-find-index'); - -module.exports = function () { - var unhandledRejections = []; - - function onUnhandledRejection(reason, promise) { - unhandledRejections.push({reason: reason, promise: promise}); - } - - function onRejectionHandled(promise) { - var index = arrayFindIndex(unhandledRejections, function (x) { - return x.promise === promise; - }); - - unhandledRejections.splice(index, 1); - } - - function currentlyUnhandled() { - return unhandledRejections.map(function (entry) { - return { - reason: entry.reason, - promise: entry.promise - }; - }); - } - - return { - onUnhandledRejection: onUnhandledRejection, - onRejectionHandled: onRejectionHandled, - currentlyUnhandled: currentlyUnhandled - }; -}; diff --git a/node_modules/currently-unhandled/index.js b/node_modules/currently-unhandled/index.js deleted file mode 100644 index 238b9d9..0000000 --- a/node_modules/currently-unhandled/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -var core = require('./core'); - -module.exports = function (p) { - p = p || process; - var c = core(); - - p.on('unhandledRejection', c.onUnhandledRejection); - p.on('rejectionHandled', c.onRejectionHandled); - - return c.currentlyUnhandled; -}; diff --git a/node_modules/currently-unhandled/license b/node_modules/currently-unhandled/license deleted file mode 100644 index ad5d021..0000000 --- a/node_modules/currently-unhandled/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) James Talmage (github.com/jamestalmage) - -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/currently-unhandled/package.json b/node_modules/currently-unhandled/package.json deleted file mode 100644 index f795d6e..0000000 --- a/node_modules/currently-unhandled/package.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "currently-unhandled@^0.4.1", - "scope": null, - "escapedName": "currently-unhandled", - "name": "currently-unhandled", - "rawSpec": "^0.4.1", - "spec": ">=0.4.1 <0.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/loud-rejection" - ] - ], - "_from": "currently-unhandled@>=0.4.1 <0.5.0", - "_id": "currently-unhandled@0.4.1", - "_inCache": true, - "_location": "/currently-unhandled", - "_nodeVersion": "5.10.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/currently-unhandled-0.4.1.tgz_1464866113117_0.9455041608307511" - }, - "_npmUser": { - "name": "jamestalmage", - "email": "james@talmage.io" - }, - "_npmVersion": "3.8.6", - "_phantomChildren": {}, - "_requested": { - "raw": "currently-unhandled@^0.4.1", - "scope": null, - "escapedName": "currently-unhandled", - "name": "currently-unhandled", - "rawSpec": "^0.4.1", - "spec": ">=0.4.1 <0.5.0", - "type": "range" - }, - "_requiredBy": [ - "/loud-rejection" - ], - "_resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "_shasum": "988df33feab191ef799a61369dd76c17adf957ea", - "_shrinkwrap": null, - "_spec": "currently-unhandled@^0.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/loud-rejection", - "author": { - "name": "James Talmage", - "email": "james@talmage.io", - "url": "github.com/jamestalmage" - }, - "ava": { - "files": "test.js" - }, - "browser": { - "./index.js": "./browser.js" - }, - "bugs": { - "url": "https://github.com/jamestalmage/currently-unhandled/issues" - }, - "dependencies": { - "array-find-index": "^1.0.1" - }, - "description": "Track the list of currently unhandled promise rejections.", - "devDependencies": { - "ava": "^0.15.1", - "bluebird": "^3.4.0", - "browserify": "^13.0.1", - "coveralls": "^2.11.9", - "delay": "^1.3.1", - "is-ci": "^1.0.8", - "karma": "^0.13.22", - "karma-browserify": "^5.0.5", - "karma-chrome-launcher": "^1.0.1", - "karma-firefox-launcher": "^1.0.0", - "karma-mocha": "^1.0.1", - "mocha": "^2.5.3", - "nyc": "^6.4.0", - "watchify": "^3.7.0", - "xo": "^0.15.0" - }, - "directories": {}, - "dist": { - "shasum": "988df33feab191ef799a61369dd76c17adf957ea", - "tarball": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js", - "core.js", - "browser.js" - ], - "gitHead": "6b998300e8cc2f732d80f99b7ecea37c97ab6ded", - "homepage": "https://github.com/jamestalmage/currently-unhandled#readme", - "keywords": [ - "unhandled", - "unhandledRejection", - "rejected", - "promises" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jamestalmage", - "email": "james@talmage.io" - } - ], - "name": "currently-unhandled", - "nyc": { - "reporter": [ - "lcov", - "text" - ] - }, - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jamestalmage/currently-unhandled.git" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "version": "0.4.1", - "xo": { - "ignores": [ - "browser-bluebird-test.js" - ], - "envs": [ - "browser", - "mocha", - "node" - ] - } -} diff --git a/node_modules/currently-unhandled/readme.md b/node_modules/currently-unhandled/readme.md deleted file mode 100644 index b73c568..0000000 --- a/node_modules/currently-unhandled/readme.md +++ /dev/null @@ -1,44 +0,0 @@ -# currently-unhandled [![Build Status](https://travis-ci.org/jamestalmage/currently-unhandled.svg?branch=master)](https://travis-ci.org/jamestalmage/currently-unhandled) [![Coverage Status](https://coveralls.io/repos/github/jamestalmage/currently-unhandled/badge.svg?branch=master)](https://coveralls.io/github/jamestalmage/currently-unhandled?branch=master) - -> Track the list of currently unhandled promise rejections. - - -## Install - -``` -$ npm install --save currently-unhandled -``` - - -## Usage - -```js -const currentlyUnhandled = require('currently-unhandled')(); // <- note the invocation - -var fooError = new Error('foo'); -var p = Promise.reject(new Error('foo')); - -// on the next tick - unhandled rejected promise is added to the list: -currentlyUnhandled(); -//=> [{promise: p, reason: fooError}]' - -p.catch(() => {}); - -// on the next tick - handled promise is now removed from the list: -currentlyUnhandled(); -//=> []; -``` - -## API - -### currentlyUnhandled() - -Returns an array of objects with `promise` and `reason` properties representing the rejected promises that currently do not have a rejection handler. The list grows and shrinks as unhandledRejections are published, and later handled. - -## Browser Support - -This module can be bundled with `browserify`. At time of writing, it will work with native Promises in the Chrome browser only. For best cross-browser support, use `bluebird` instead of native Promise support in browsers. - -## License - -MIT © [James Talmage](http://github.com/jamestalmage) diff --git a/node_modules/dashdash/CHANGES.md b/node_modules/dashdash/CHANGES.md deleted file mode 100644 index d7c8f4e..0000000 --- a/node_modules/dashdash/CHANGES.md +++ /dev/null @@ -1,364 +0,0 @@ -# node-dashdash changelog - -## not yet released - -(nothing yet) - -## 1.14.1 - -- [issue #30] Change the output used by dashdash's Bash completion support to - indicate "there are no completions for this argument" to cope with different - sorting rules on different Bash/platforms. For example: - - $ triton -v -p test2 package get # before - ##-no -tritonpackage- completions-## - - $ triton -v -p test2 package get # after - ##-no-completion- -results-## - -## 1.14.0 - -- New `synopsisFromOpt(@trentmick -for updates to node-dashdash. - -# Install - - npm install dashdash - - -# Usage - -```javascript -var dashdash = require('dashdash'); - -// Specify the options. Minimally `name` (or `names`) and `type` -// must be given for each. -var options = [ - { - // `names` or a single `name`. First element is the `opts.KEY`. - names: ['help', 'h'], - // See "Option specs" below for types. - type: 'bool', - help: 'Print this help and exit.' - } -]; - -// Shortcut form. As called it infers `process.argv`. See below for -// the longer form to use methods like `.help()` on the Parser object. -var opts = dashdash.parse({options: options}); - -console.log("opts:", opts); -console.log("args:", opts._args); -``` - - -# Longer Example - -A more realistic [starter script "foo.js"](./examples/foo.js) is as follows. -This also shows using `parser.help()` for formatted option help. - -```javascript -var dashdash = require('./lib/dashdash'); - -var options = [ - { - name: 'version', - type: 'bool', - help: 'Print tool version and exit.' - }, - { - names: ['help', 'h'], - type: 'bool', - help: 'Print this help and exit.' - }, - { - names: ['verbose', 'v'], - type: 'arrayOfBool', - help: 'Verbose output. Use multiple times for more verbose.' - }, - { - names: ['file', 'f'], - type: 'string', - help: 'File to process', - helpArg: 'FILE' - } -]; - -var parser = dashdash.createParser({options: options}); -try { - var opts = parser.parse(process.argv); -} catch (e) { - console.error('foo: error: %s', e.message); - process.exit(1); -} - -console.log("# opts:", opts); -console.log("# args:", opts._args); - -// Use `parser.help()` for formatted options help. -if (opts.help) { - var help = parser.help({includeEnv: true}).trimRight(); - console.log('usage: node foo.js [OPTIONS]\n' - + 'options:\n' - + help); - process.exit(0); -} - -// ... -``` - - -Some example output from this script (foo.js): - -``` -$ node foo.js -h -# opts: { help: true, - _order: [ { name: 'help', value: true, from: 'argv' } ], - _args: [] } -# args: [] -usage: node foo.js [OPTIONS] -options: - --version Print tool version and exit. - -h, --help Print this help and exit. - -v, --verbose Verbose output. Use multiple times for more verbose. - -f FILE, --file=FILE File to process - -$ node foo.js -v -# opts: { verbose: [ true ], - _order: [ { name: 'verbose', value: true, from: 'argv' } ], - _args: [] } -# args: [] - -$ node foo.js --version arg1 -# opts: { version: true, - _order: [ { name: 'version', value: true, from: 'argv' } ], - _args: [ 'arg1' ] } -# args: [ 'arg1' ] - -$ node foo.js -f bar.txt -# opts: { file: 'bar.txt', - _order: [ { name: 'file', value: 'bar.txt', from: 'argv' } ], - _args: [] } -# args: [] - -$ node foo.js -vvv --file=blah -# opts: { verbose: [ true, true, true ], - file: 'blah', - _order: - [ { name: 'verbose', value: true, from: 'argv' }, - { name: 'verbose', value: true, from: 'argv' }, - { name: 'verbose', value: true, from: 'argv' }, - { name: 'file', value: 'blah', from: 'argv' } ], - _args: [] } -# args: [] -``` - - -See the ["examples"](examples/) dir for a number of starter examples using -some of dashdash's features. - - -# Environment variable integration - -If you want to allow environment variables to specify options to your tool, -dashdash makes this easy. We can change the 'verbose' option in the example -above to include an 'env' field: - -```javascript - { - names: ['verbose', 'v'], - type: 'arrayOfBool', - env: 'FOO_VERBOSE', // <--- add this line - help: 'Verbose output. Use multiple times for more verbose.' - }, -``` - -then the **"FOO_VERBOSE" environment variable** can be used to set this -option: - -```shell -$ FOO_VERBOSE=1 node foo.js -# opts: { verbose: [ true ], - _order: [ { name: 'verbose', value: true, from: 'env' } ], - _args: [] } -# args: [] -``` - -Boolean options will interpret the empty string as unset, '0' as false -and anything else as true. - -```shell -$ FOO_VERBOSE= node examples/foo.js # not set -# opts: { _order: [], _args: [] } -# args: [] - -$ FOO_VERBOSE=0 node examples/foo.js # '0' is false -# opts: { verbose: [ false ], - _order: [ { key: 'verbose', value: false, from: 'env' } ], - _args: [] } -# args: [] - -$ FOO_VERBOSE=1 node examples/foo.js # true -# opts: { verbose: [ true ], - _order: [ { key: 'verbose', value: true, from: 'env' } ], - _args: [] } -# args: [] - -$ FOO_VERBOSE=boogabooga node examples/foo.js # true -# opts: { verbose: [ true ], - _order: [ { key: 'verbose', value: true, from: 'env' } ], - _args: [] } -# args: [] -``` - -Non-booleans can be used as well. Strings: - -```shell -$ FOO_FILE=data.txt node examples/foo.js -# opts: { file: 'data.txt', - _order: [ { key: 'file', value: 'data.txt', from: 'env' } ], - _args: [] } -# args: [] -``` - -Numbers: - -```shell -$ FOO_TIMEOUT=5000 node examples/foo.js -# opts: { timeout: 5000, - _order: [ { key: 'timeout', value: 5000, from: 'env' } ], - _args: [] } -# args: [] - -$ FOO_TIMEOUT=blarg node examples/foo.js -foo: error: arg for "FOO_TIMEOUT" is not a positive integer: "blarg" -``` - -With the `includeEnv: true` config to `parser.help()` the environment -variable can also be included in **help output**: - - usage: node foo.js [OPTIONS] - options: - --version Print tool version and exit. - -h, --help Print this help and exit. - -v, --verbose Verbose output. Use multiple times for more verbose. - Environment: FOO_VERBOSE=1 - -f FILE, --file=FILE File to process - - -# Bash completion - -Dashdash provides a simple way to create a Bash completion file that you -can place in your "bash_completion.d" directory -- sometimes that is -"/usr/local/etc/bash_completion.d/"). Features: - -- Support for short and long opts -- Support for knowing which options take arguments -- Support for subcommands (e.g. 'git log ' to show just options for the - log subcommand). See - [node-cmdln](https://github.com/trentm/node-cmdln#bash-completion) for - how to integrate that. -- Does the right thing with "--" to stop options. -- Custom optarg and arg types for custom completions. - -Dashdash will return bash completion file content given a parser instance: - - var parser = dashdash.createParser({options: options}); - console.log( parser.bashCompletion({name: 'mycli'}) ); - -or directly from a `options` array of options specs: - - var code = dashdash.bashCompletionFromOptions({ - name: 'mycli', - options: OPTIONS - }); - -Write that content to "/usr/local/etc/bash_completion.d/mycli" and you will -have Bash completions for `mycli`. Alternatively you can write it to -any file (e.g. "~/.bashrc") and source it. - -You could add a `--completion` hidden option to your tool that emits the -completion content and document for your users to call that to install -Bash completions. - -See [examples/ddcompletion.js](examples/ddcompletion.js) for a complete -example, including how one can define bash functions for completion of custom -option types. Also see [node-cmdln](https://github.com/trentm/node-cmdln) for -how it uses this for Bash completion for full multi-subcommand tools. - -- TODO: document specExtra -- TODO: document includeHidden -- TODO: document custom types, `function complete\_FOO` guide, completionType -- TODO: document argtypes - - -# Parser config - -Parser construction (i.e. `dashdash.createParser(CONFIG)`) takes the -following fields: - -- `options` (Array of option specs). Required. See the - [Option specs](#option-specs) section below. - -- `interspersed` (Boolean). Optional. Default is true. If true this allows - interspersed arguments and options. I.e.: - - node ./tool.js -v arg1 arg2 -h # '-h' is after interspersed args - - Set it to false to have '-h' **not** get parsed as an option in the above - example. - -- `allowUnknown` (Boolean). Optional. Default is false. If false, this causes - unknown arguments to throw an error. I.e.: - - node ./tool.js -v arg1 --afe8asefksjefhas - - Set it to true to treat the unknown option as a positional - argument. - - **Caveat**: When a shortopt group, such as `-xaz` contains a mix of - known and unknown options, the *entire* group is passed through - unmolested as a positional argument. - - Consider if you have a known short option `-a`, and parse the - following command line: - - node ./tool.js -xaz - - where `-x` and `-z` are unknown. There are multiple ways to - interpret this: - - 1. `-x` takes a value: `{x: 'az'}` - 2. `-x` and `-z` are both booleans: `{x:true,a:true,z:true}` - - Since dashdash does not know what `-x` and `-z` are, it can't know - if you'd prefer to receive `{a:true,_args:['-x','-z']}` or - `{x:'az'}`, or `{_args:['-xaz']}`. Leaving the positional arg unprocessed - is the easiest mistake for the user to recover from. - - -# Option specs - -Example using all fields (required fields are noted): - -```javascript -{ - names: ['file', 'f'], // Required (one of `names` or `name`). - type: 'string', // Required. - completionType: 'filename', - env: 'MYTOOL_FILE', - help: 'Config file to load before running "mytool"', - helpArg: 'PATH', - helpWrap: false, - default: path.resolve(process.env.HOME, '.mytoolrc') -} -``` - -Each option spec in the `options` array must/can have the following fields: - -- `name` (String) or `names` (Array). Required. These give the option name - and aliases. The first name (if more than one given) is the key for the - parsed `opts` object. - -- `type` (String). Required. One of: - - - bool - - string - - number - - integer - - positiveInteger - - date (epoch seconds, e.g. 1396031701, or ISO 8601 format - `YYYY-MM-DD[THH:MM:SS[.sss][Z]]`, e.g. "2014-03-28T18:35:01.489Z") - - arrayOfBool - - arrayOfString - - arrayOfNumber - - arrayOfInteger - - arrayOfPositiveInteger - - arrayOfDate - - FWIW, these names attempt to match with asserts on - [assert-plus](https://github.com/mcavage/node-assert-plus). - You can add your own custom option types with `dashdash.addOptionType`. - See below. - -- `completionType` (String). Optional. This is used for [Bash - completion](#bash-completion) for an option argument. If not specified, - then the value of `type` is used. Any string may be specified, but only the - following values have meaning: - - - `none`: Provide no completions. - - `file`: Bash's default completion (i.e. `complete -o default`), which - includes filenames. - - *Any string FOO for which a `function complete_FOO` Bash function is - defined.* This is for custom completions for a given tool. Typically - these custom functions are provided in the `specExtra` argument to - `dashdash.bashCompletionFromOptions()`. See - ["examples/ddcompletion.js"](examples/ddcompletion.js) for an example. - -- `env` (String or Array of String). Optional. An environment variable name - (or names) that can be used as a fallback for this option. For example, - given a "foo.js" like this: - - var options = [{names: ['dry-run', 'n'], env: 'FOO_DRY_RUN'}]; - var opts = dashdash.parse({options: options}); - - Both `node foo.js --dry-run` and `FOO_DRY_RUN=1 node foo.js` would result - in `opts.dry_run = true`. - - An environment variable is only used as a fallback, i.e. it is ignored if - the associated option is given in `argv`. - -- `help` (String). Optional. Used for `parser.help()` output. - -- `helpArg` (String). Optional. Used in help output as the placeholder for - the option argument, e.g. the "PATH" in: - - ... - -f PATH, --file=PATH File to process - ... - -- `helpWrap` (Boolean). Optional, default true. Set this to `false` to have - that option's `help` *not* be text wrapped in `.help()` output. - -- `default`. Optional. A default value used for this option, if the - option isn't specified in argv. - -- `hidden` (Boolean). Optional, default false. If true, help output will not - include this option. See also the `includeHidden` option to - `bashCompletionFromOptions()` for [Bash completion](#bash-completion). - - -# Option group headings - -You can add headings between option specs in the `options` array. To do so, -simply add an object with only a `group` property -- the string to print as -the heading for the subsequent options in the array. For example: - -```javascript -var options = [ - { - group: 'Armament Options' - }, - { - names: [ 'weapon', 'w' ], - type: 'string' - }, - { - group: 'General Options' - }, - { - names: [ 'help', 'h' ], - type: 'bool' - } -]; -... -``` - -Note: You can use an empty string, `{group: ''}`, to get a blank line in help -output between groups of options. - - -# Help config - -The `parser.help(...)` function is configurable as follows: - - Options: - Armament Options: - ^^ -w WEAPON, --weapon=WEAPON Weapon with which to crush. One of: | - / sword, spear, maul | - / General Options: | - / -h, --help Print this help and exit. | - / ^^^^ ^ | - \ `-- indent `-- helpCol maxCol ---' - `-- headingIndent - -- `indent` (Number or String). Default 4. Set to a number (for that many - spaces) or a string for the literal indent. -- `headingIndent` (Number or String). Default half length of `indent`. Set to - a number (for that many spaces) or a string for the literal indent. This - indent applies to group heading lines, between normal option lines. -- `nameSort` (String). Default is 'length'. By default the names are - sorted to put the short opts first (i.e. '-h, --help' preferred - to '--help, -h'). Set to 'none' to not do this sorting. -- `maxCol` (Number). Default 80. Note that reflow is just done on whitespace - so a long token in the option help can overflow maxCol. -- `helpCol` (Number). If not set a reasonable value will be determined - between `minHelpCol` and `maxHelpCol`. -- `minHelpCol` (Number). Default 20. -- `maxHelpCol` (Number). Default 40. -- `helpWrap` (Boolean). Default true. Set to `false` to have option `help` - strings *not* be textwrapped to the helpCol..maxCol range. -- `includeEnv` (Boolean). Default false. If the option has associated - environment variables (via the `env` option spec attribute), then - append mentioned of those envvars to the help string. -- `includeDefault` (Boolean). Default false. If the option has a default value - (via the `default` option spec attribute, or a default on the option's type), - then a "Default: VALUE" string will be appended to the help string. - - -# Custom option types - -Dashdash includes a good starter set of option types that it will parse for -you. However, you can add your own via: - - var dashdash = require('dashdash'); - dashdash.addOptionType({ - name: '...', - takesArg: true, - helpArg: '...', - parseArg: function (option, optstr, arg) { - ... - }, - array: false, // optional - arrayFlatten: false, // optional - default: ..., // optional - completionType: ... // optional - }); - -For example, a simple option type that accepts 'yes', 'y', 'no' or 'n' as -a boolean argument would look like: - - var dashdash = require('dashdash'); - - function parseYesNo(option, optstr, arg) { - var argLower = arg.toLowerCase() - if (~['yes', 'y'].indexOf(argLower)) { - return true; - } else if (~['no', 'n'].indexOf(argLower)) { - return false; - } else { - throw new Error(format( - 'arg for "%s" is not "yes" or "no": "%s"', - optstr, arg)); - } - } - - dashdash.addOptionType({ - name: 'yesno' - takesArg: true, - helpArg: '', - parseArg: parseYesNo - }); - - var options = { - {names: ['answer', 'a'], type: 'yesno'} - }; - var opts = dashdash.parse({options: options}); - -See "examples/custom-option-\*.js" for other examples. -See the `addOptionType` block comment in "lib/dashdash.js" for more details. -Please let me know [with an -issue](https://github.com/trentm/node-dashdash/issues/new) if you write a -generally useful one. - - - -# Why - -Why another node.js option parsing lib? - -- `nopt` really is just for "tools like npm". Implicit opts (e.g. '--no-foo' - works for every '--foo'). Can't disable abbreviated opts. Can't do multiple - usages of same opt, e.g. '-vvv' (I think). Can't do grouped short opts. - -- `optimist` has surprise interpretation of options (at least to me). - Implicit opts mean ambiguities and poor error handling for fat-fingering. - `process.exit` calls makes it hard to use as a libary. - -- `optparse` Incomplete docs. Is this an attempted clone of Python's `optparse`. - Not clear. Some divergence. `parser.on("name", ...)` API is weird. - -- `argparse` Dep on underscore. No thanks just for option processing. - `find lib | wc -l` -> `26`. Overkill. - Argparse is a bit different anyway. Not sure I want that. - -- `posix-getopt` No type validation. Though that isn't a killer. AFAIK can't - have a long opt without a short alias. I.e. no `getopt_long` semantics. - Also, no whizbang features like generated help output. - -- ["commander.js"](https://github.com/visionmedia/commander.js): I wrote - [a critique](http://trentm.com/2014/01/a-critique-of-commander-for-nodejs.html) - a while back. It seems fine, but last I checked had - [an outstanding bug](https://github.com/visionmedia/commander.js/pull/121) - that would prevent me from using it. - - -# License - -MIT. See LICENSE.txt. diff --git a/node_modules/dashdash/etc/dashdash.bash_completion.in b/node_modules/dashdash/etc/dashdash.bash_completion.in deleted file mode 100644 index dc33309..0000000 --- a/node_modules/dashdash/etc/dashdash.bash_completion.in +++ /dev/null @@ -1,389 +0,0 @@ -#!/bin/bash -# -# Bash completion generated for '{{name}}' at {{date}}. -# -# The original template lives here: -# https://github.com/trentm/node-dashdash/blob/master/etc/dashdash.bash_completion.in -# - -# -# Copyright 2016 Trent Mick -# Copyright 2016 Joyent, Inc. -# -# -# A generic Bash completion driver script. -# -# This is meant to provide a re-usable chunk of Bash to use for -# "etc/bash_completion.d/" files for individual tools. Only the "Configuration" -# section with tool-specific info need differ. Features: -# -# - support for short and long opts -# - support for knowing which options take arguments -# - support for subcommands (e.g. 'git log ' to show just options for the -# log subcommand) -# - does the right thing with "--" to stop options -# - custom optarg and arg types for custom completions -# - (TODO) support for shells other than Bash (tcsh, zsh, fish?, etc.) -# -# -# Examples/design: -# -# 1. Bash "default" completion. By default Bash's 'complete -o default' is -# enabled. That means when there are no completions (e.g. if no opts match -# the current word), then you'll get Bash's default completion. Most notably -# that means you get filename completion. E.g.: -# $ tool ./ -# $ tool READ -# -# 2. all opts and subcmds: -# $ tool -# $ tool -v # assuming '-v' doesn't take an arg -# $ tool - # matching opts -# $ git lo # matching subcmds -# -# Long opt completions are given *without* the '=', i.e. we prefer space -# separated because that's easier for good completions. -# -# 3. long opt arg with '=' -# $ tool --file= -# $ tool --file=./d -# We maintain the "--file=" prefix. Limitation: With the attached prefix -# the 'complete -o filenames' doesn't know to do dirname '/' suffixing. Meh. -# -# 4. envvars: -# $ tool $ -# $ tool $P -# Limitation: Currently only getting exported vars, so we miss "PS1" and -# others. -# -# 5. Defer to other completion in a subshell: -# $ tool --file $(cat ./ -# We get this from 'complete -o default ...'. -# -# 6. Custom completion types from a provided bash function. -# $ tool --profile # complete available "profiles" -# -# -# Dev Notes: -# - compgen notes, from http://unix.stackexchange.com/questions/151118/understand-compgen-builtin-command -# - https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html -# - - -# Debugging this completion: -# 1. Uncomment the "_{{name}}_log_file=..." line. -# 2. 'tail -f /var/tmp/dashdash-completion.log' in one terminal. -# 3. Re-source this bash completion file. -#_{{name}}_log=/var/tmp/dashdash-completion.log - -function _{{name}}_completer { - - # ---- cmd definition - - {{spec}} - - - # ---- locals - - declare -a argv - - - # ---- support functions - - function trace { - [[ -n "$_{{name}}_log" ]] && echo "$*" >&2 - } - - function _dashdash_complete { - local idx context - idx=$1 - context=$2 - - local shortopts longopts optargs subcmds allsubcmds argtypes - shortopts="$(eval "echo \${cmd${context}_shortopts}")" - longopts="$(eval "echo \${cmd${context}_longopts}")" - optargs="$(eval "echo \${cmd${context}_optargs}")" - subcmds="$(eval "echo \${cmd${context}_subcmds}")" - allsubcmds="$(eval "echo \${cmd${context}_allsubcmds}")" - IFS=', ' read -r -a argtypes <<< "$(eval "echo \${cmd${context}_argtypes}")" - - trace "" - trace "_dashdash_complete(idx=$idx, context=$context)" - trace " shortopts: $shortopts" - trace " longopts: $longopts" - trace " optargs: $optargs" - trace " subcmds: $subcmds" - trace " allsubcmds: $allsubcmds" - - # Get 'state' of option parsing at this COMP_POINT. - # Copying "dashdash.js#parse()" behaviour here. - local state= - local nargs=0 - local i=$idx - local argtype - local optname - local prefix - local word - local dashdashseen= - while [[ $i -lt $len && $i -le $COMP_CWORD ]]; do - argtype= - optname= - prefix= - word= - - arg=${argv[$i]} - trace " consider argv[$i]: '$arg'" - - if [[ "$arg" == "--" && $i -lt $COMP_CWORD ]]; then - trace " dashdash seen" - dashdashseen=yes - state=arg - word=$arg - elif [[ -z "$dashdashseen" && "${arg:0:2}" == "--" ]]; then - arg=${arg:2} - if [[ "$arg" == *"="* ]]; then - optname=${arg%%=*} - val=${arg##*=} - trace " long opt: optname='$optname' val='$val'" - state=arg - argtype=$(echo "$optargs" | awk -F "-$optname=" '{print $2}' | cut -d' ' -f1) - word=$val - prefix="--$optname=" - else - optname=$arg - val= - trace " long opt: optname='$optname'" - state=longopt - word=--$optname - - if [[ "$optargs" == *"-$optname="* && $i -lt $COMP_CWORD ]]; then - i=$(( $i + 1 )) - state=arg - argtype=$(echo "$optargs" | awk -F "-$optname=" '{print $2}' | cut -d' ' -f1) - word=${argv[$i]} - trace " takes arg (consume argv[$i], word='$word')" - fi - fi - elif [[ -z "$dashdashseen" && "${arg:0:1}" == "-" ]]; then - trace " short opt group" - state=shortopt - word=$arg - - local j=1 - while [[ $j -lt ${#arg} ]]; do - optname=${arg:$j:1} - trace " consider index $j: optname '$optname'" - - if [[ "$optargs" == *"-$optname="* ]]; then - argtype=$(echo "$optargs" | awk -F "-$optname=" '{print $2}' | cut -d' ' -f1) - if [[ $(( $j + 1 )) -lt ${#arg} ]]; then - state=arg - word=${arg:$(( $j + 1 ))} - trace " takes arg (rest of this arg, word='$word', argtype='$argtype')" - elif [[ $i -lt $COMP_CWORD ]]; then - state=arg - i=$(( $i + 1 )) - word=${argv[$i]} - trace " takes arg (word='$word', argtype='$argtype')" - fi - break - fi - - j=$(( $j + 1 )) - done - elif [[ $i -lt $COMP_CWORD && -n "$arg" ]] && $(echo "$allsubcmds" | grep -w "$arg" >/dev/null); then - trace " complete subcmd: recurse _dashdash_complete" - _dashdash_complete $(( $i + 1 )) "${context}__${arg/-/_}" - return - else - trace " not an opt or a complete subcmd" - state=arg - word=$arg - nargs=$(( $nargs + 1 )) - if [[ ${#argtypes[@]} -gt 0 ]]; then - argtype="${argtypes[$(( $nargs - 1 ))]}" - if [[ -z "$argtype" ]]; then - # If we have more args than argtypes, we use the - # last type. - argtype="${argtypes[@]: -1:1}" - fi - fi - fi - - trace " state=$state prefix='$prefix' word='$word'" - i=$(( $i + 1 )) - done - - trace " parsed: state=$state optname='$optname' argtype='$argtype' prefix='$prefix' word='$word' dashdashseen=$dashdashseen" - local compgen_opts= - if [[ -n "$prefix" ]]; then - compgen_opts="$compgen_opts -P $prefix" - fi - - case $state in - shortopt) - compgen $compgen_opts -W "$shortopts $longopts" -- "$word" - ;; - longopt) - compgen $compgen_opts -W "$longopts" -- "$word" - ;; - arg) - # If we don't know what completion to do, then emit nothing. We - # expect that we are running with: - # complete -o default ... - # where "default" means: "Use Readline's default completion if - # the compspec generates no matches." This gives us the good filename - # completion, completion in subshells/backticks. - # - # We cannot support an argtype="directory" because - # compgen -S '/' -A directory -- "$word" - # doesn't give a satisfying result. It doesn't stop at the trailing '/' - # so you cannot descend into dirs. - if [[ "${word:0:1}" == '$' ]]; then - # By default, Bash will complete '$' to all envvars. Apparently - # 'complete -o default' does *not* give us that. The following - # gets *close* to the same completions: '-A export' misses envvars - # like "PS1". - trace " completing envvars" - compgen $compgen_opts -P '$' -A export -- "${word:1}" - elif [[ -z "$argtype" ]]; then - # Only include opts in completions if $word is not empty. - # This is to avoid completing the leading '-', which foils - # using 'default' completion. - if [[ -n "$dashdashseen" ]]; then - trace " completing subcmds, if any (no argtype, dashdash seen)" - compgen $compgen_opts -W "$subcmds" -- "$word" - elif [[ -z "$word" ]]; then - trace " completing subcmds, if any (no argtype, empty word)" - compgen $compgen_opts -W "$subcmds" -- "$word" - else - trace " completing opts & subcmds (no argtype)" - compgen $compgen_opts -W "$shortopts $longopts $subcmds" -- "$word" - fi - elif [[ $argtype == "none" ]]; then - # We want *no* completions, i.e. some way to get the active - # 'complete -o default' to not do filename completion. - trace " completing 'none' (hack to imply no completions)" - echo "##-no-completion- -results-##" - elif [[ $argtype == "file" ]]; then - # 'complete -o default' gives the best filename completion, at least - # on Mac. - trace " completing 'file' (let 'complete -o default' handle it)" - echo "" - elif ! type complete_$argtype 2>/dev/null >/dev/null; then - trace " completing '$argtype' (fallback to default b/c complete_$argtype is unknown)" - echo "" - else - trace " completing custom '$argtype'" - completions=$(complete_$argtype "$word") - if [[ -z "$completions" ]]; then - trace " no custom '$argtype' completions" - # These are in ascii and "dictionary" order so they sort - # correctly. - echo "##-no-completion- -results-##" - else - echo $completions - fi - fi - ;; - *) - trace " unknown state: $state" - ;; - esac - } - - - trace "" - trace "-- $(date)" - #trace "\$IFS: '$IFS'" - #trace "\$@: '$@'" - #trace "COMP_WORDBREAKS: '$COMP_WORDBREAKS'" - trace "COMP_CWORD: '$COMP_CWORD'" - trace "COMP_LINE: '$COMP_LINE'" - trace "COMP_POINT: $COMP_POINT" - - # Guard against negative COMP_CWORD. This is a Bash bug at least on - # Mac 10.10.4's bash. See - # . - if [[ $COMP_CWORD -lt 0 ]]; then - trace "abort on negative COMP_CWORD" - exit 1; - fi - - # I don't know how to do array manip on argv vars, - # so copy over to argv array to work on them. - shift # the leading '--' - i=0 - len=$# - while [[ $# -gt 0 ]]; do - argv[$i]=$1 - shift; - i=$(( $i + 1 )) - done - trace "argv: '${argv[@]}'" - trace "argv[COMP_CWORD-1]: '${argv[$(( $COMP_CWORD - 1 ))]}'" - trace "argv[COMP_CWORD]: '${argv[$COMP_CWORD]}'" - trace "argv len: '$len'" - - _dashdash_complete 1 "" -} - - -# ---- mainline - -# Note: This if-block to help work with 'compdef' and 'compctl' is -# adapted from 'npm completion'. -if type complete &>/dev/null; then - function _{{name}}_completion { - local _log_file=/dev/null - [[ -z "$_{{name}}_log" ]] || _log_file="$_{{name}}_log" - COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \ - COMP_LINE="$COMP_LINE" \ - COMP_POINT="$COMP_POINT" \ - _{{name}}_completer -- "${COMP_WORDS[@]}" \ - 2>$_log_file)) || return $? - } - complete -o default -F _{{name}}_completion {{name}} -elif type compdef &>/dev/null; then - function _{{name}}_completion { - local _log_file=/dev/null - [[ -z "$_{{name}}_log" ]] || _log_file="$_{{name}}_log" - compadd -- $(COMP_CWORD=$((CURRENT-1)) \ - COMP_LINE=$BUFFER \ - COMP_POINT=0 \ - _{{name}}_completer -- "${words[@]}" \ - 2>$_log_file) - } - compdef _{{name}}_completion {{name}} -elif type compctl &>/dev/null; then - function _{{name}}_completion { - local cword line point words si - read -Ac words - read -cn cword - let cword-=1 - read -l line - read -ln point - local _log_file=/dev/null - [[ -z "$_{{name}}_log" ]] || _log_file="$_{{name}}_log" - reply=($(COMP_CWORD="$cword" \ - COMP_LINE="$line" \ - COMP_POINT="$point" \ - _{{name}}_completer -- "${words[@]}" \ - 2>$_log_file)) || return $? - } - compctl -K _{{name}}_completion {{name}} -fi - - -## -## This is a Bash completion file for the '{{name}}' command. You can install -## with either: -## -## cp FILE /usr/local/etc/bash_completion.d/{{name}} # Mac -## cp FILE /etc/bash_completion.d/{{name}} # Linux -## -## or: -## -## cp FILE > ~/.{{name}}.completion -## echo "source ~/.{{name}}.completion" >> ~/.bashrc -## \ No newline at end of file diff --git a/node_modules/dashdash/lib/dashdash.js b/node_modules/dashdash/lib/dashdash.js deleted file mode 100644 index adb6f13..0000000 --- a/node_modules/dashdash/lib/dashdash.js +++ /dev/null @@ -1,1055 +0,0 @@ -/** - * dashdash - A light, featureful and explicit option parsing library for - * node.js. - */ -// vim: set ts=4 sts=4 sw=4 et: - -var assert = require('assert-plus'); -var format = require('util').format; -var fs = require('fs'); -var path = require('path'); - - -var DEBUG = true; -if (DEBUG) { - var debug = console.warn; -} else { - var debug = function () {}; -} - - - -// ---- internal support stuff - -// Replace {{variable}} in `s` with the template data in `d`. -function renderTemplate(s, d) { - return s.replace(/{{([a-zA-Z]+)}}/g, function (match, key) { - return d.hasOwnProperty(key) ? d[key] : match; - }); -} - -/** - * Return a shallow copy of the given object; - */ -function shallowCopy(obj) { - if (!obj) { - return (obj); - } - var copy = {}; - Object.keys(obj).forEach(function (k) { - copy[k] = obj[k]; - }); - return (copy); -} - - -function space(n) { - var s = ''; - for (var i = 0; i < n; i++) { - s += ' '; - } - return s; -} - - -function makeIndent(arg, deflen, name) { - if (arg === null || arg === undefined) - return space(deflen); - else if (typeof (arg) === 'number') - return space(arg); - else if (typeof (arg) === 'string') - return arg; - else - assert.fail('invalid "' + name + '": not a string or number: ' + arg); -} - - -/** - * Return an array of lines wrapping the given text to the given width. - * This splits on whitespace. Single tokens longer than `width` are not - * broken up. - */ -function textwrap(s, width) { - var words = s.trim().split(/\s+/); - var lines = []; - var line = ''; - words.forEach(function (w) { - var newLength = line.length + w.length; - if (line.length > 0) - newLength += 1; - if (newLength > width) { - lines.push(line); - line = ''; - } - if (line.length > 0) - line += ' '; - line += w; - }); - lines.push(line); - return lines; -} - - -/** - * Transform an option name to a "key" that is used as the field - * on the `opts` object returned from `.parse()`. - * - * Transformations: - * - '-' -> '_': This allow one to use hyphen in option names (common) - * but not have to do silly things like `opt["dry-run"]` to access the - * parsed results. - */ -function optionKeyFromName(name) { - return name.replace(/-/g, '_'); -} - - - -// ---- Option types - -function parseBool(option, optstr, arg) { - return Boolean(arg); -} - -function parseString(option, optstr, arg) { - assert.string(arg, 'arg'); - return arg; -} - -function parseNumber(option, optstr, arg) { - assert.string(arg, 'arg'); - var num = Number(arg); - if (isNaN(num)) { - throw new Error(format('arg for "%s" is not a number: "%s"', - optstr, arg)); - } - return num; -} - -function parseInteger(option, optstr, arg) { - assert.string(arg, 'arg'); - var num = Number(arg); - if (!/^[0-9-]+$/.test(arg) || isNaN(num)) { - throw new Error(format('arg for "%s" is not an integer: "%s"', - optstr, arg)); - } - return num; -} - -function parsePositiveInteger(option, optstr, arg) { - assert.string(arg, 'arg'); - var num = Number(arg); - if (!/^[0-9]+$/.test(arg) || isNaN(num) || num === 0) { - throw new Error(format('arg for "%s" is not a positive integer: "%s"', - optstr, arg)); - } - return num; -} - -/** - * Supported date args: - * - epoch second times (e.g. 1396031701) - * - ISO 8601 format: YYYY-MM-DD[THH:MM:SS[.sss][Z]] - * 2014-03-28T18:35:01.489Z - * 2014-03-28T18:35:01.489 - * 2014-03-28T18:35:01Z - * 2014-03-28T18:35:01 - * 2014-03-28 - */ -function parseDate(option, optstr, arg) { - assert.string(arg, 'arg'); - var date; - if (/^\d+$/.test(arg)) { - // epoch seconds - date = new Date(Number(arg) * 1000); - /* JSSTYLED */ - } else if (/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?Z?)?$/i.test(arg)) { - // ISO 8601 format - date = new Date(arg); - } else { - throw new Error(format('arg for "%s" is not a valid date format: "%s"', - optstr, arg)); - } - if (date.toString() === 'Invalid Date') { - throw new Error(format('arg for "%s" is an invalid date: "%s"', - optstr, arg)); - } - return date; -} - -var optionTypes = { - bool: { - takesArg: false, - parseArg: parseBool - }, - string: { - takesArg: true, - helpArg: 'ARG', - parseArg: parseString - }, - number: { - takesArg: true, - helpArg: 'NUM', - parseArg: parseNumber - }, - integer: { - takesArg: true, - helpArg: 'INT', - parseArg: parseInteger - }, - positiveInteger: { - takesArg: true, - helpArg: 'INT', - parseArg: parsePositiveInteger - }, - date: { - takesArg: true, - helpArg: 'DATE', - parseArg: parseDate - }, - arrayOfBool: { - takesArg: false, - array: true, - parseArg: parseBool - }, - arrayOfString: { - takesArg: true, - helpArg: 'ARG', - array: true, - parseArg: parseString - }, - arrayOfNumber: { - takesArg: true, - helpArg: 'NUM', - array: true, - parseArg: parseNumber - }, - arrayOfInteger: { - takesArg: true, - helpArg: 'INT', - array: true, - parseArg: parseInteger - }, - arrayOfPositiveInteger: { - takesArg: true, - helpArg: 'INT', - array: true, - parseArg: parsePositiveInteger - }, - arrayOfDate: { - takesArg: true, - helpArg: 'INT', - array: true, - parseArg: parseDate - }, -}; - - - -// ---- Parser - -/** - * Parser constructor. - * - * @param config {Object} The parser configuration - * - options {Array} Array of option specs. See the README for how to - * specify each option spec. - * - allowUnknown {Boolean} Default false. Whether to throw on unknown - * options. If false, then unknown args are included in the _args array. - * - interspersed {Boolean} Default true. Whether to allow interspersed - * arguments (non-options) and options. E.g.: - * node tool.js arg1 arg2 -v - * '-v' is after some args here. If `interspersed: false` then '-v' - * would not be parsed out. Note that regardless of `interspersed` - * the presence of '--' will stop option parsing, as all good - * option parsers should. - */ -function Parser(config) { - assert.object(config, 'config'); - assert.arrayOfObject(config.options, 'config.options'); - assert.optionalBool(config.interspersed, 'config.interspersed'); - var self = this; - - // Allow interspersed arguments (true by default). - this.interspersed = (config.interspersed !== undefined - ? config.interspersed : true); - - // Don't allow unknown flags (true by default). - this.allowUnknown = (config.allowUnknown !== undefined - ? config.allowUnknown : false); - - this.options = config.options.map(function (o) { return shallowCopy(o); }); - this.optionFromName = {}; - this.optionFromEnv = {}; - for (var i = 0; i < this.options.length; i++) { - var o = this.options[i]; - if (o.group !== undefined && o.group !== null) { - assert.optionalString(o.group, - format('config.options.%d.group', i)); - continue; - } - assert.ok(optionTypes[o.type], - format('invalid config.options.%d.type: "%s" in %j', - i, o.type, o)); - assert.optionalString(o.name, format('config.options.%d.name', i)); - assert.optionalArrayOfString(o.names, - format('config.options.%d.names', i)); - assert.ok((o.name || o.names) && !(o.name && o.names), - format('exactly one of "name" or "names" required: %j', o)); - assert.optionalString(o.help, format('config.options.%d.help', i)); - var env = o.env || []; - if (typeof (env) === 'string') { - env = [env]; - } - assert.optionalArrayOfString(env, format('config.options.%d.env', i)); - assert.optionalString(o.helpGroup, - format('config.options.%d.helpGroup', i)); - assert.optionalBool(o.helpWrap, - format('config.options.%d.helpWrap', i)); - assert.optionalBool(o.hidden, format('config.options.%d.hidden', i)); - - if (o.name) { - o.names = [o.name]; - } else { - assert.string(o.names[0], - format('config.options.%d.names is empty', i)); - } - o.key = optionKeyFromName(o.names[0]); - o.names.forEach(function (n) { - if (self.optionFromName[n]) { - throw new Error(format( - 'option name collision: "%s" used in %j and %j', - n, self.optionFromName[n], o)); - } - self.optionFromName[n] = o; - }); - env.forEach(function (n) { - if (self.optionFromEnv[n]) { - throw new Error(format( - 'option env collision: "%s" used in %j and %j', - n, self.optionFromEnv[n], o)); - } - self.optionFromEnv[n] = o; - }); - } -} - -Parser.prototype.optionTakesArg = function optionTakesArg(option) { - return optionTypes[option.type].takesArg; -}; - -/** - * Parse options from the given argv. - * - * @param inputs {Object} Optional. - * - argv {Array} Optional. The argv to parse. Defaults to - * `process.argv`. - * - slice {Number} The index into argv at which options/args begin. - * Default is 2, as appropriate for `process.argv`. - * - env {Object} Optional. The env to use for 'env' entries in the - * option specs. Defaults to `process.env`. - * @returns {Object} Parsed `opts`. It has special keys `_args` (the - * remaining args from `argv`) and `_order` (gives the order that - * options were specified). - */ -Parser.prototype.parse = function parse(inputs) { - var self = this; - - // Old API was `parse([argv, [slice]])` - if (Array.isArray(arguments[0])) { - inputs = {argv: arguments[0], slice: arguments[1]}; - } - - assert.optionalObject(inputs, 'inputs'); - if (!inputs) { - inputs = {}; - } - assert.optionalArrayOfString(inputs.argv, 'inputs.argv'); - //assert.optionalNumber(slice, 'slice'); - var argv = inputs.argv || process.argv; - var slice = inputs.slice !== undefined ? inputs.slice : 2; - var args = argv.slice(slice); - var env = inputs.env || process.env; - var opts = {}; - var _order = []; - - function addOpt(option, optstr, key, val, from) { - var type = optionTypes[option.type]; - var parsedVal = type.parseArg(option, optstr, val); - if (type.array) { - if (!opts[key]) { - opts[key] = []; - } - if (type.arrayFlatten && Array.isArray(parsedVal)) { - for (var i = 0; i < parsedVal.length; i++) { - opts[key].push(parsedVal[i]); - } - } else { - opts[key].push(parsedVal); - } - } else { - opts[key] = parsedVal; - } - var item = { key: key, value: parsedVal, from: from }; - _order.push(item); - } - - // Parse args. - var _args = []; - var i = 0; - outer: while (i < args.length) { - var arg = args[i]; - - // End of options marker. - if (arg === '--') { - i++; - break; - - // Long option - } else if (arg.slice(0, 2) === '--') { - var name = arg.slice(2); - var val = null; - var idx = name.indexOf('='); - if (idx !== -1) { - val = name.slice(idx + 1); - name = name.slice(0, idx); - } - var option = this.optionFromName[name]; - if (!option) { - if (!this.allowUnknown) - throw new Error(format('unknown option: "--%s"', name)); - else if (this.interspersed) - _args.push(arg); - else - break outer; - } else { - var takesArg = this.optionTakesArg(option); - if (val !== null && !takesArg) { - throw new Error(format('argument given to "--%s" option ' - + 'that does not take one: "%s"', name, arg)); - } - if (!takesArg) { - addOpt(option, '--'+name, option.key, true, 'argv'); - } else if (val !== null) { - addOpt(option, '--'+name, option.key, val, 'argv'); - } else if (i + 1 >= args.length) { - throw new Error(format('do not have enough args for "--%s" ' - + 'option', name)); - } else { - addOpt(option, '--'+name, option.key, args[i + 1], 'argv'); - i++; - } - } - - // Short option - } else if (arg[0] === '-' && arg.length > 1) { - var j = 1; - var allFound = true; - while (j < arg.length) { - var name = arg[j]; - var option = this.optionFromName[name]; - if (!option) { - allFound = false; - if (this.allowUnknown) { - if (this.interspersed) { - _args.push(arg); - break; - } else - break outer; - } else if (arg.length > 2) { - throw new Error(format( - 'unknown option: "-%s" in "%s" group', - name, arg)); - } else { - throw new Error(format('unknown option: "-%s"', name)); - } - } else if (this.optionTakesArg(option)) { - break; - } - j++; - } - - j = 1; - while (allFound && j < arg.length) { - var name = arg[j]; - var val = arg.slice(j + 1); // option val if it takes an arg - var option = this.optionFromName[name]; - var takesArg = this.optionTakesArg(option); - if (!takesArg) { - addOpt(option, '-'+name, option.key, true, 'argv'); - } else if (val) { - addOpt(option, '-'+name, option.key, val, 'argv'); - break; - } else { - if (i + 1 >= args.length) { - throw new Error(format('do not have enough args ' - + 'for "-%s" option', name)); - } - addOpt(option, '-'+name, option.key, args[i + 1], 'argv'); - i++; - break; - } - j++; - } - - // An interspersed arg - } else if (this.interspersed) { - _args.push(arg); - - // An arg and interspersed args are not allowed, so done options. - } else { - break outer; - } - i++; - } - _args = _args.concat(args.slice(i)); - - // Parse environment. - Object.keys(this.optionFromEnv).forEach(function (envname) { - var val = env[envname]; - if (val === undefined) - return; - var option = self.optionFromEnv[envname]; - if (opts[option.key] !== undefined) - return; - var takesArg = self.optionTakesArg(option); - if (takesArg) { - addOpt(option, envname, option.key, val, 'env'); - } else if (val !== '') { - // Boolean envvar handling: - // - VAR= not set (as if the VAR was not set) - // - VAR=0 false - // - anything else true - addOpt(option, envname, option.key, (val !== '0'), 'env'); - } - }); - - // Apply default values. - this.options.forEach(function (o) { - if (opts[o.key] === undefined) { - if (o.default !== undefined) { - opts[o.key] = o.default; - } else if (o.type && optionTypes[o.type].default !== undefined) { - opts[o.key] = optionTypes[o.type].default; - } - } - }); - - opts._order = _order; - opts._args = _args; - return opts; -}; - - -/** - * Return help output for the current options. - * - * E.g.: if the current options are: - * [{names: ['help', 'h'], type: 'bool', help: 'Show help and exit.'}] - * then this would return: - * ' -h, --help Show help and exit.\n' - * - * @param config {Object} Config for controlling the option help output. - * - indent {Number|String} Default 4. An indent/prefix to use for - * each option line. - * - nameSort {String} Default is 'length'. By default the names are - * sorted to put the short opts first (i.e. '-h, --help' preferred - * to '--help, -h'). Set to 'none' to not do this sorting. - * - maxCol {Number} Default 80. Note that long tokens in a help string - * can go past this. - * - helpCol {Number} Set to specify a specific column at which - * option help will be aligned. By default this is determined - * automatically. - * - minHelpCol {Number} Default 20. - * - maxHelpCol {Number} Default 40. - * - includeEnv {Boolean} Default false. If true, a note stating the `env` - * envvar (if specified for this option) will be appended to the help - * output. - * - includeDefault {Boolean} Default false. If true, a note stating - * the `default` for this option, if any, will be appended to the help - * output. - * - helpWrap {Boolean} Default true. Wrap help text in helpCol..maxCol - * bounds. - * @returns {String} - */ -Parser.prototype.help = function help(config) { - config = config || {}; - assert.object(config, 'config'); - - var indent = makeIndent(config.indent, 4, 'config.indent'); - var headingIndent = makeIndent(config.headingIndent, - Math.round(indent.length / 2), 'config.headingIndent'); - - assert.optionalString(config.nameSort, 'config.nameSort'); - var nameSort = config.nameSort || 'length'; - assert.ok(~['length', 'none'].indexOf(nameSort), - 'invalid "config.nameSort"'); - assert.optionalNumber(config.maxCol, 'config.maxCol'); - assert.optionalNumber(config.maxHelpCol, 'config.maxHelpCol'); - assert.optionalNumber(config.minHelpCol, 'config.minHelpCol'); - assert.optionalNumber(config.helpCol, 'config.helpCol'); - assert.optionalBool(config.includeEnv, 'config.includeEnv'); - assert.optionalBool(config.includeDefault, 'config.includeDefault'); - assert.optionalBool(config.helpWrap, 'config.helpWrap'); - var maxCol = config.maxCol || 80; - var minHelpCol = config.minHelpCol || 20; - var maxHelpCol = config.maxHelpCol || 40; - - var lines = []; - var maxWidth = 0; - this.options.forEach(function (o) { - if (o.hidden) { - return; - } - if (o.group !== undefined && o.group !== null) { - // We deal with groups in the next pass - lines.push(null); - return; - } - var type = optionTypes[o.type]; - var arg = o.helpArg || type.helpArg || 'ARG'; - var line = ''; - var names = o.names.slice(); - if (nameSort === 'length') { - names.sort(function (a, b) { - if (a.length < b.length) - return -1; - else if (b.length < a.length) - return 1; - else - return 0; - }) - } - names.forEach(function (name, i) { - if (i > 0) - line += ', '; - if (name.length === 1) { - line += '-' + name - if (type.takesArg) - line += ' ' + arg; - } else { - line += '--' + name - if (type.takesArg) - line += '=' + arg; - } - }); - maxWidth = Math.max(maxWidth, line.length); - lines.push(line); - }); - - // Add help strings. - var helpCol = config.helpCol; - if (!helpCol) { - helpCol = maxWidth + indent.length + 2; - helpCol = Math.min(Math.max(helpCol, minHelpCol), maxHelpCol); - } - var i = -1; - this.options.forEach(function (o) { - if (o.hidden) { - return; - } - i++; - - if (o.group !== undefined && o.group !== null) { - if (o.group === '') { - // Support a empty string "group" to have a blank line between - // sets of options. - lines[i] = ''; - } else { - // Render the group heading with the heading-specific indent. - lines[i] = (i === 0 ? '' : '\n') + headingIndent + - o.group + ':'; - } - return; - } - - var helpDefault; - if (config.includeDefault) { - if (o.default !== undefined) { - helpDefault = format('Default: %j', o.default); - } else if (o.type && optionTypes[o.type].default !== undefined) { - helpDefault = format('Default: %j', - optionTypes[o.type].default); - } - } - - var line = lines[i] = indent + lines[i]; - if (!o.help && !(config.includeEnv && o.env) && !helpDefault) { - return; - } - var n = helpCol - line.length; - if (n >= 0) { - line += space(n); - } else { - line += '\n' + space(helpCol); - } - - var helpEnv = ''; - if (o.env && o.env.length && config.includeEnv) { - helpEnv += 'Environment: '; - var type = optionTypes[o.type]; - var arg = o.helpArg || type.helpArg || 'ARG'; - var envs = (Array.isArray(o.env) ? o.env : [o.env]).map( - function (e) { - if (type.takesArg) { - return e + '=' + arg; - } else { - return e + '=1'; - } - } - ); - helpEnv += envs.join(', '); - } - var help = (o.help || '').trim(); - if (o.helpWrap !== false && config.helpWrap !== false) { - // Wrap help description normally. - if (help.length && !~'.!?"\''.indexOf(help.slice(-1))) { - help += '.'; - } - if (help.length) { - help += ' '; - } - help += helpEnv; - if (helpDefault) { - if (helpEnv) { - help += '. '; - } - help += helpDefault; - } - line += textwrap(help, maxCol - helpCol).join( - '\n' + space(helpCol)); - } else { - // Do not wrap help description, but indent newlines appropriately. - var helpLines = help.split('\n').filter( - function (ln) { return ln.length }); - if (helpEnv !== '') { - helpLines.push(helpEnv); - } - if (helpDefault) { - helpLines.push(helpDefault); - } - line += helpLines.join('\n' + space(helpCol)); - } - - lines[i] = line; - }); - - var rv = ''; - if (lines.length > 0) { - rv = lines.join('\n') + '\n'; - } - return rv; -}; - - -/** - * Return a string suitable for a Bash completion file for this tool. - * - * @param args.name {String} The tool name. - * @param args.specExtra {String} Optional. Extra Bash code content to add - * to the end of the "spec". Typically this is used to append Bash - * "complete_TYPE" functions for custom option types. See - * "examples/ddcompletion.js" for an example. - * @param args.argtypes {Array} Optional. Array of completion types for - * positional args (i.e. non-options). E.g. - * argtypes = ['fruit', 'veggie', 'file'] - * will result in completion of fruits for the first arg, veggies for the - * second, and filenames for the third and subsequent positional args. - * If not given, positional args will use Bash's 'default' completion. - * See `specExtra` for providing Bash `complete_TYPE` functions, e.g. - * `complete_fruit` and `complete_veggie` in this example. - */ -Parser.prototype.bashCompletion = function bashCompletion(args) { - assert.object(args, 'args'); - assert.string(args.name, 'args.name'); - assert.optionalString(args.specExtra, 'args.specExtra'); - assert.optionalArrayOfString(args.argtypes, 'args.argtypes'); - - return bashCompletionFromOptions({ - name: args.name, - specExtra: args.specExtra, - argtypes: args.argtypes, - options: this.options - }); -}; - - -// ---- Bash completion - -const BASH_COMPLETION_TEMPLATE_PATH = path.join( - __dirname, '../etc/dashdash.bash_completion.in'); - -/** - * Return the Bash completion "spec" (the string value for the "{{spec}}" - * var in the "dashdash.bash_completion.in" template) for this tool. - * - * The "spec" is Bash code that defines the CLI options and subcmds for - * the template's completion code. It looks something like this: - * - * local cmd_shortopts="-J ..." - * local cmd_longopts="--help ..." - * local cmd_optargs="-p=tritonprofile ..." - * - * @param args.options {Array} The array of dashdash option specs. - * @param args.context {String} Optional. A context string for the "local cmd*" - * vars in the spec. By default it is the empty string. When used to - * scope for completion on a *sub-command* (e.g. for "git log" on a "git" - * tool), then it would have a value (e.g. "__log"). See - * Bash completion for details. - * @param opts.includeHidden {Boolean} Optional. Default false. By default - * hidden options and subcmds are "excluded". Here excluded means they - * won't be offered as a completion, but if used, their argument type - * will be completed. "Hidden" options and subcmds are ones with the - * `hidden: true` attribute to exclude them from default help output. - * @param args.argtypes {Array} Optional. Array of completion types for - * positional args (i.e. non-options). E.g. - * argtypes = ['fruit', 'veggie', 'file'] - * will result in completion of fruits for the first arg, veggies for the - * second, and filenames for the third and subsequent positional args. - * If not given, positional args will use Bash's 'default' completion. - * See `specExtra` for providing Bash `complete_TYPE` functions, e.g. - * `complete_fruit` and `complete_veggie` in this example. - */ -function bashCompletionSpecFromOptions(args) { - assert.object(args, 'args'); - assert.object(args.options, 'args.options'); - assert.optionalString(args.context, 'args.context'); - assert.optionalBool(args.includeHidden, 'args.includeHidden'); - assert.optionalArrayOfString(args.argtypes, 'args.argtypes'); - - var context = args.context || ''; - var includeHidden = (args.includeHidden === undefined - ? false : args.includeHidden); - - var spec = []; - var shortopts = []; - var longopts = []; - var optargs = []; - (args.options || []).forEach(function (o) { - if (o.group !== undefined && o.group !== null) { - // Skip group headers. - return; - } - - var optNames = o.names || [o.name]; - var optType = getOptionType(o.type); - if (optType.takesArg) { - var completionType = o.completionType || - optType.completionType || o.type; - optNames.forEach(function (optName) { - if (optName.length === 1) { - if (includeHidden || !o.hidden) { - shortopts.push('-' + optName); - } - // Include even hidden options in `optargs` so that bash - // completion of its arg still works. - optargs.push('-' + optName + '=' + completionType); - } else { - if (includeHidden || !o.hidden) { - longopts.push('--' + optName); - } - optargs.push('--' + optName + '=' + completionType); - } - }); - } else { - optNames.forEach(function (optName) { - if (includeHidden || !o.hidden) { - if (optName.length === 1) { - shortopts.push('-' + optName); - } else { - longopts.push('--' + optName); - } - } - }); - } - }); - - spec.push(format('local cmd%s_shortopts="%s"', - context, shortopts.sort().join(' '))); - spec.push(format('local cmd%s_longopts="%s"', - context, longopts.sort().join(' '))); - spec.push(format('local cmd%s_optargs="%s"', - context, optargs.sort().join(' '))); - if (args.argtypes) { - spec.push(format('local cmd%s_argtypes="%s"', - context, args.argtypes.join(' '))); - } - return spec.join('\n'); -} - - -/** - * Return a string suitable for a Bash completion file for this tool. - * - * @param args.name {String} The tool name. - * @param args.options {Array} The array of dashdash option specs. - * @param args.specExtra {String} Optional. Extra Bash code content to add - * to the end of the "spec". Typically this is used to append Bash - * "complete_TYPE" functions for custom option types. See - * "examples/ddcompletion.js" for an example. - * @param args.argtypes {Array} Optional. Array of completion types for - * positional args (i.e. non-options). E.g. - * argtypes = ['fruit', 'veggie', 'file'] - * will result in completion of fruits for the first arg, veggies for the - * second, and filenames for the third and subsequent positional args. - * If not given, positional args will use Bash's 'default' completion. - * See `specExtra` for providing Bash `complete_TYPE` functions, e.g. - * `complete_fruit` and `complete_veggie` in this example. - */ -function bashCompletionFromOptions(args) { - assert.object(args, 'args'); - assert.object(args.options, 'args.options'); - assert.string(args.name, 'args.name'); - assert.optionalString(args.specExtra, 'args.specExtra'); - assert.optionalArrayOfString(args.argtypes, 'args.argtypes'); - - // Gather template data. - var data = { - name: args.name, - date: new Date(), - spec: bashCompletionSpecFromOptions({ - options: args.options, - argtypes: args.argtypes - }), - }; - if (args.specExtra) { - data.spec += '\n\n' + args.specExtra; - } - - // Render template. - var template = fs.readFileSync(BASH_COMPLETION_TEMPLATE_PATH, 'utf8'); - return renderTemplate(template, data); -} - - - -// ---- exports - -function createParser(config) { - return new Parser(config); -} - -/** - * Parse argv with the given options. - * - * @param config {Object} A merge of all the available fields from - * `dashdash.Parser` and `dashdash.Parser.parse`: options, interspersed, - * argv, env, slice. - */ -function parse(config) { - assert.object(config, 'config'); - assert.optionalArrayOfString(config.argv, 'config.argv'); - assert.optionalObject(config.env, 'config.env'); - var config = shallowCopy(config); - var argv = config.argv; - delete config.argv; - var env = config.env; - delete config.env; - - var parser = new Parser(config); - return parser.parse({argv: argv, env: env}); -} - - -/** - * Add a new option type. - * - * @params optionType {Object}: - * - name {String} Required. - * - takesArg {Boolean} Required. Whether this type of option takes an - * argument on process.argv. Typically this is true for all but the - * "bool" type. - * - helpArg {String} Required iff `takesArg === true`. The string to - * show in generated help for options of this type. - * - parseArg {Function} Require. `function (option, optstr, arg)` parser - * that takes a string argument and returns an instance of the - * appropriate type, or throws an error if the arg is invalid. - * - array {Boolean} Optional. Set to true if this is an 'arrayOf' type - * that collects multiple usages of the option in process.argv and - * puts results in an array. - * - arrayFlatten {Boolean} Optional. XXX - * - default Optional. Default value for options of this type, if no - * default is specified in the option type usage. - */ -function addOptionType(optionType) { - assert.object(optionType, 'optionType'); - assert.string(optionType.name, 'optionType.name'); - assert.bool(optionType.takesArg, 'optionType.takesArg'); - if (optionType.takesArg) { - assert.string(optionType.helpArg, 'optionType.helpArg'); - } - assert.func(optionType.parseArg, 'optionType.parseArg'); - assert.optionalBool(optionType.array, 'optionType.array'); - assert.optionalBool(optionType.arrayFlatten, 'optionType.arrayFlatten'); - - optionTypes[optionType.name] = { - takesArg: optionType.takesArg, - helpArg: optionType.helpArg, - parseArg: optionType.parseArg, - array: optionType.array, - arrayFlatten: optionType.arrayFlatten, - default: optionType.default - } -} - - -function getOptionType(name) { - assert.string(name, 'name'); - return optionTypes[name]; -} - - -/** - * Return a synopsis string for the given option spec. - * - * Examples: - * > synopsisFromOpt({names: ['help', 'h'], type: 'bool'}); - * '[ --help | -h ]' - * > synopsisFromOpt({name: 'file', type: 'string', helpArg: 'FILE'}); - * '[ --file=FILE ]' - */ -function synopsisFromOpt(o) { - assert.object(o, 'o'); - - if (o.hasOwnProperty('group')) { - return null; - } - var names = o.names || [o.name]; - // `type` here could be undefined if, for example, the command has a - // dashdash option spec with a bogus 'type'. - var type = getOptionType(o.type); - var helpArg = o.helpArg || (type && type.helpArg) || 'ARG'; - var parts = []; - names.forEach(function (name) { - var part = (name.length === 1 ? '-' : '--') + name; - if (type && type.takesArg) { - part += (name.length === 1 ? ' ' + helpArg : '=' + helpArg); - } - parts.push(part); - }); - return ('[ ' + parts.join(' | ') + ' ]'); -}; - - -module.exports = { - createParser: createParser, - Parser: Parser, - parse: parse, - addOptionType: addOptionType, - getOptionType: getOptionType, - synopsisFromOpt: synopsisFromOpt, - - // Bash completion-related exports - BASH_COMPLETION_TEMPLATE_PATH: BASH_COMPLETION_TEMPLATE_PATH, - bashCompletionFromOptions: bashCompletionFromOptions, - bashCompletionSpecFromOptions: bashCompletionSpecFromOptions, - - // Export the parseFoo parsers because they might be useful as primitives - // for custom option types. - parseBool: parseBool, - parseString: parseString, - parseNumber: parseNumber, - parseInteger: parseInteger, - parsePositiveInteger: parsePositiveInteger, - parseDate: parseDate -}; diff --git a/node_modules/dashdash/node_modules/assert-plus/AUTHORS b/node_modules/dashdash/node_modules/assert-plus/AUTHORS deleted file mode 100644 index 1923524..0000000 --- a/node_modules/dashdash/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/dashdash/node_modules/assert-plus/CHANGES.md b/node_modules/dashdash/node_modules/assert-plus/CHANGES.md deleted file mode 100644 index 57d92bf..0000000 --- a/node_modules/dashdash/node_modules/assert-plus/CHANGES.md +++ /dev/null @@ -1,14 +0,0 @@ -# assert-plus Changelog - -## 1.0.0 - -- *BREAKING* assert.number (and derivatives) now accept Infinity as valid input -- Add assert.finite check. Previous assert.number callers should use this if - they expect Infinity inputs to throw. - -## 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/dashdash/node_modules/assert-plus/README.md b/node_modules/dashdash/node_modules/assert-plus/README.md deleted file mode 100644 index ec200d1..0000000 --- a/node_modules/dashdash/node_modules/assert-plus/README.md +++ /dev/null @@ -1,162 +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.finite -* assert.object -* assert.string -* assert.stream -* assert.date -* assert.regexp -* assert.uuid -* assert.arrayOfArray -* assert.arrayOfBool -* assert.arrayOfBuffer -* assert.arrayOfFunc -* assert.arrayOfNumber -* assert.arrayOfFinite -* assert.arrayOfObject -* assert.arrayOfString -* assert.arrayOfStream -* assert.arrayOfDate -* assert.arrayOfRegexp -* assert.arrayOfUuid -* assert.optionalArray -* assert.optionalBool -* assert.optionalBuffer -* assert.optionalFunc -* assert.optionalNumber -* assert.optionalFinite -* assert.optionalObject -* assert.optionalString -* assert.optionalStream -* assert.optionalDate -* assert.optionalRegexp -* assert.optionalUuid -* assert.optionalArrayOfArray -* assert.optionalArrayOfBool -* assert.optionalArrayOfBuffer -* assert.optionalArrayOfFunc -* assert.optionalArrayOfNumber -* assert.optionalArrayOfFinite -* assert.optionalArrayOfObject -* assert.optionalArrayOfString -* assert.optionalArrayOfStream -* assert.optionalArrayOfDate -* assert.optionalArrayOfRegexp -* 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/dashdash/node_modules/assert-plus/assert.js b/node_modules/dashdash/node_modules/assert-plus/assert.js deleted file mode 100644 index 26f944e..0000000 --- a/node_modules/dashdash/node_modules/assert-plus/assert.js +++ /dev/null @@ -1,211 +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); - } - }, - finite: { - 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/dashdash/node_modules/assert-plus/package.json b/node_modules/dashdash/node_modules/assert-plus/package.json deleted file mode 100644 index 319b33d..0000000 --- a/node_modules/dashdash/node_modules/assert-plus/package.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "assert-plus@^1.0.0", - "scope": null, - "escapedName": "assert-plus", - "name": "assert-plus", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/dashdash" - ] - ], - "_from": "assert-plus@>=1.0.0 <2.0.0", - "_id": "assert-plus@1.0.0", - "_inCache": true, - "_location": "/dashdash/assert-plus", - "_nodeVersion": "0.10.40", - "_npmUser": { - "name": "pfmooney", - "email": "patrick.f.mooney@gmail.com" - }, - "_npmVersion": "3.3.9", - "_phantomChildren": {}, - "_requested": { - "raw": "assert-plus@^1.0.0", - "scope": null, - "escapedName": "assert-plus", - "name": "assert-plus", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/dashdash" - ], - "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "_shasum": "f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525", - "_shrinkwrap": null, - "_spec": "assert-plus@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/dashdash", - "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": "f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525", - "tarball": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.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": "1.0.0" -} diff --git a/node_modules/dashdash/package.json b/node_modules/dashdash/package.json deleted file mode 100644 index 78737c1..0000000 --- a/node_modules/dashdash/package.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "dashdash@^1.12.0", - "scope": null, - "escapedName": "dashdash", - "name": "dashdash", - "rawSpec": "^1.12.0", - "spec": ">=1.12.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/sshpk" - ] - ], - "_from": "dashdash@>=1.12.0 <2.0.0", - "_id": "dashdash@1.14.1", - "_inCache": true, - "_location": "/dashdash", - "_nodeVersion": "4.6.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/dashdash-1.14.1.tgz_1479854020349_0.731718891998753" - }, - "_npmUser": { - "name": "trentm", - "email": "trentm@gmail.com" - }, - "_npmVersion": "2.15.9", - "_phantomChildren": {}, - "_requested": { - "raw": "dashdash@^1.12.0", - "scope": null, - "escapedName": "dashdash", - "name": "dashdash", - "rawSpec": "^1.12.0", - "spec": ">=1.12.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/sshpk" - ], - "_resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "_shasum": "853cfa0f7cbe2fed5de20326b8dd581035f6e2f0", - "_shrinkwrap": null, - "_spec": "dashdash@^1.12.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/sshpk", - "author": { - "name": "Trent Mick", - "email": "trentm@gmail.com", - "url": "http://trentm.com" - }, - "bugs": { - "url": "https://github.com/trentm/node-dashdash/issues" - }, - "contributors": [ - { - "name": "Trent Mick", - "email": "trentm@gmail.com", - "url": "http://trentm.com" - }, - { - "name": "Isaac Schlueter", - "url": "https://github.com/isaacs" - }, - { - "name": "Joshua M. Clulow", - "url": "https://github.com/jclulow" - }, - { - "name": "Patrick Mooney", - "url": "https://github.com/pfmooney" - }, - { - "name": "Dave Pacheco", - "url": "https://github.com/davepacheco" - } - ], - "dependencies": { - "assert-plus": "^1.0.0" - }, - "description": "A light, featureful and explicit option parsing library.", - "devDependencies": { - "nodeunit": "0.9.x" - }, - "directories": {}, - "dist": { - "shasum": "853cfa0f7cbe2fed5de20326b8dd581035f6e2f0", - "tarball": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz" - }, - "engines": { - "node": ">=0.10" - }, - "gitHead": "1dd7379640462a21ca6d92502803de830b4acfa2", - "homepage": "https://github.com/trentm/node-dashdash#readme", - "keywords": [ - "option", - "parser", - "parsing", - "cli", - "command", - "args", - "bash", - "completion" - ], - "license": "MIT", - "main": "./lib/dashdash.js", - "maintainers": [ - { - "name": "trentm", - "email": "trentm@gmail.com" - } - ], - "name": "dashdash", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/trentm/node-dashdash.git" - }, - "scripts": { - "test": "nodeunit test/*.test.js" - }, - "version": "1.14.1" -} diff --git a/node_modules/dateformat/.npmignore b/node_modules/dateformat/.npmignore deleted file mode 100644 index efab07f..0000000 --- a/node_modules/dateformat/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -test -.travis.yml diff --git a/node_modules/dateformat/LICENSE b/node_modules/dateformat/LICENSE deleted file mode 100644 index 57d44e2..0000000 --- a/node_modules/dateformat/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -(c) 2007-2009 Steven Levithan - -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/dateformat/Readme.md b/node_modules/dateformat/Readme.md deleted file mode 100644 index 9ee3db1..0000000 --- a/node_modules/dateformat/Readme.md +++ /dev/null @@ -1,135 +0,0 @@ -# dateformat - -A node.js package for Steven Levithan's excellent [dateFormat()][dateformat] function. - -[![Build Status](https://travis-ci.org/felixge/node-dateformat.svg)](https://travis-ci.org/felixge/node-dateformat) - -## Modifications - -* Removed the `Date.prototype.format` method. Sorry folks, but extending native prototypes is for suckers. -* Added a `module.exports = dateFormat;` statement at the bottom -* Added the placeholder `N` to get the ISO 8601 numeric representation of the day of the week - -## Installation - -```bash -$ npm install dateformat -$ dateformat --help -``` - -## Usage - -As taken from Steven's post, modified to match the Modifications listed above: -```js -var dateFormat = require('dateformat'); -var now = new Date(); - -// Basic usage -dateFormat(now, "dddd, mmmm dS, yyyy, h:MM:ss TT"); -// Saturday, June 9th, 2007, 5:46:21 PM - -// You can use one of several named masks -dateFormat(now, "isoDateTime"); -// 2007-06-09T17:46:21 - -// ...Or add your own -dateFormat.masks.hammerTime = 'HH:MM! "Can\'t touch this!"'; -dateFormat(now, "hammerTime"); -// 17:46! Can't touch this! - -// When using the standalone dateFormat function, -// you can also provide the date as a string -dateFormat("Jun 9 2007", "fullDate"); -// Saturday, June 9, 2007 - -// Note that if you don't include the mask argument, -// dateFormat.masks.default is used -dateFormat(now); -// Sat Jun 09 2007 17:46:21 - -// And if you don't include the date argument, -// the current date and time is used -dateFormat(); -// Sat Jun 09 2007 17:46:22 - -// You can also skip the date argument (as long as your mask doesn't -// contain any numbers), in which case the current date/time is used -dateFormat("longTime"); -// 5:46:22 PM EST - -// And finally, you can convert local time to UTC time. Simply pass in -// true as an additional argument (no argument skipping allowed in this case): -dateFormat(now, "longTime", true); -// 10:46:21 PM UTC - -// ...Or add the prefix "UTC:" or "GMT:" to your mask. -dateFormat(now, "UTC:h:MM:ss TT Z"); -// 10:46:21 PM UTC - -// You can also get the ISO 8601 week of the year: -dateFormat(now, "W"); -// 42 - -// and also get the ISO 8601 numeric representation of the day of the week: -dateFormat(now,"N"); -// 6 -``` - -### Mask options - -Mask | Description ----- | ----------- -`d` | Day of the month as digits; no leading zero for single-digit days. -`dd` | Day of the month as digits; leading zero for single-digit days. -`ddd` | Day of the week as a three-letter abbreviation. -`dddd` | Day of the week as its full name. -`m` | Month as digits; no leading zero for single-digit months. -`mm` | Month as digits; leading zero for single-digit months. -`mmm` | Month as a three-letter abbreviation. -`mmmm` | Month as its full name. -`yy` | Year as last two digits; leading zero for years less than 10. -`yyyy` | Year represented by four digits. -`h` | Hours; no leading zero for single-digit hours (12-hour clock). -`hh` | Hours; leading zero for single-digit hours (12-hour clock). -`H` | Hours; no leading zero for single-digit hours (24-hour clock). -`HH` | Hours; leading zero for single-digit hours (24-hour clock). -`M` | Minutes; no leading zero for single-digit minutes. -`MM` | Minutes; leading zero for single-digit minutes. -`N` | ISO 8601 numeric representation of the day of the week. -`o` | GMT/UTC timezone offset, e.g. -0500 or +0230. -`s` | Seconds; no leading zero for single-digit seconds. -`ss` | Seconds; leading zero for single-digit seconds. -`S` | The date's ordinal suffix (st, nd, rd, or th). Works well with `d`. -`l` | Milliseconds; gives 3 digits. -`L` | Milliseconds; gives 2 digits. -`t` | Lowercase, single-character time marker string: a or p. -`tt` | Lowercase, two-character time marker string: am or pm. -`T` | Uppercase, single-character time marker string: A or P. -`TT` | Uppercase, two-character time marker string: AM or PM. -`W` | ISO 8601 week number of the year, e.g. 42 -`Z` | US timezone abbreviation, e.g. EST or MDT. With non-US timezones or in the -`'...'`, `"..."` | Literal character sequence. Surrounding quotes are removed. -`UTC:` | Must be the first four characters of the mask. Converts the date from local time to UTC/GMT/Zulu time before applying the mask. The "UTC:" prefix is removed. - -### Named Formats - -Name | Mask | Example ----- | ---- | ------- -`default` | `ddd mmm dd yyyy HH:MM:ss` | Sat Jun 09 2007 17:46:21 -`shortDate` | `m/d/yy` | 6/9/07 -`mediumDate` | `mmm d, yyyy` | Jun 9, 2007 -`longDate` | `mmmm d, yyyy` | June 9, 2007 -`fullDate` | `dddd, mmmm d, yyyy` | Saturday, June 9, 2007 -`shortTime` | `h:MM TT` | 5:46 PM -`mediumTime` | `h:MM:ss TT` | 5:46:21 PM -`longTime` | `h:MM:ss TT Z` | 5:46:21 PM EST -`isoDate` | `yyyy-mm-dd` | 2007-06-09 -`isoTime` | `HH:MM:ss` | 17:46:21 -`isoDateTime` | `yyyy-mm-dd'T'HH:MM:ss` | 2007-06-09T17:46:21 -`isoUtcDateTime` | `UTC:yyyy-mm-dd'T'HH:MM:ss'Z'` | 2007-06-09T22:46:21Z -## License - -(c) 2007-2009 Steven Levithan [stevenlevithan.com][stevenlevithan], MIT license. - -[dateformat]: http://blog.stevenlevithan.com/archives/date-time-format -[stevenlevithan]: http://stevenlevithan.com/ diff --git a/node_modules/dateformat/lib/dateformat.js b/node_modules/dateformat/lib/dateformat.js deleted file mode 100644 index eb25746..0000000 --- a/node_modules/dateformat/lib/dateformat.js +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Date Format 1.2.3 - * (c) 2007-2009 Steven Levithan - * MIT license - * - * Includes enhancements by Scott Trenda - * and Kris Kowal - * - * Accepts a date, a mask, or a date and a mask. - * Returns a formatted version of the given date. - * The date defaults to the current date/time. - * The mask defaults to dateFormat.masks.default. - */ - -(function(global) { - 'use strict'; - - var dateFormat = (function() { - var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g; - var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; - var timezoneClip = /[^-+\dA-Z]/g; - - // Regexes and supporting functions are cached through closure - return function (date, mask, utc, gmt) { - - // You can't provide utc if you skip other args (use the 'UTC:' mask prefix) - if (arguments.length === 1 && kindOf(date) === 'string' && !/\d/.test(date)) { - mask = date; - date = undefined; - } - - date = date || new Date; - - if(!(date instanceof Date)) { - date = new Date(date); - } - - if (isNaN(date)) { - throw TypeError('Invalid date'); - } - - mask = String(dateFormat.masks[mask] || mask || dateFormat.masks['default']); - - // Allow setting the utc/gmt argument via the mask - var maskSlice = mask.slice(0, 4); - if (maskSlice === 'UTC:' || maskSlice === 'GMT:') { - mask = mask.slice(4); - utc = true; - if (maskSlice === 'GMT:') { - gmt = true; - } - } - - var _ = utc ? 'getUTC' : 'get'; - var d = date[_ + 'Date'](); - var D = date[_ + 'Day'](); - var m = date[_ + 'Month'](); - var y = date[_ + 'FullYear'](); - var H = date[_ + 'Hours'](); - var M = date[_ + 'Minutes'](); - var s = date[_ + 'Seconds'](); - var L = date[_ + 'Milliseconds'](); - var o = utc ? 0 : date.getTimezoneOffset(); - var W = getWeek(date); - var N = getDayOfWeek(date); - var flags = { - d: d, - dd: pad(d), - ddd: dateFormat.i18n.dayNames[D], - dddd: dateFormat.i18n.dayNames[D + 7], - m: m + 1, - mm: pad(m + 1), - mmm: dateFormat.i18n.monthNames[m], - mmmm: dateFormat.i18n.monthNames[m + 12], - yy: String(y).slice(2), - yyyy: y, - h: H % 12 || 12, - hh: pad(H % 12 || 12), - H: H, - HH: pad(H), - M: M, - MM: pad(M), - s: s, - ss: pad(s), - l: pad(L, 3), - L: pad(Math.round(L / 10)), - t: H < 12 ? 'a' : 'p', - tt: H < 12 ? 'am' : 'pm', - T: H < 12 ? 'A' : 'P', - TT: H < 12 ? 'AM' : 'PM', - Z: gmt ? 'GMT' : utc ? 'UTC' : (String(date).match(timezone) || ['']).pop().replace(timezoneClip, ''), - o: (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), - S: ['th', 'st', 'nd', 'rd'][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], - W: W, - N: N - }; - - return mask.replace(token, function (match) { - if (match in flags) { - return flags[match]; - } - return match.slice(1, match.length - 1); - }); - }; - })(); - - dateFormat.masks = { - 'default': 'ddd mmm dd yyyy HH:MM:ss', - 'shortDate': 'm/d/yy', - 'mediumDate': 'mmm d, yyyy', - 'longDate': 'mmmm d, yyyy', - 'fullDate': 'dddd, mmmm d, yyyy', - 'shortTime': 'h:MM TT', - 'mediumTime': 'h:MM:ss TT', - 'longTime': 'h:MM:ss TT Z', - 'isoDate': 'yyyy-mm-dd', - 'isoTime': 'HH:MM:ss', - 'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:sso', - 'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'', - 'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z' - }; - - // Internationalization strings - dateFormat.i18n = { - dayNames: [ - 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', - 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' - ], - monthNames: [ - 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', - 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' - ] - }; - -function pad(val, len) { - val = String(val); - len = len || 2; - while (val.length < len) { - val = '0' + val; - } - return val; -} - -/** - * Get the ISO 8601 week number - * Based on comments from - * http://techblog.procurios.nl/k/n618/news/view/33796/14863/Calculate-ISO-8601-week-and-year-in-javascript.html - * - * @param {Object} `date` - * @return {Number} - */ -function getWeek(date) { - // Remove time components of date - var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); - - // Change date to Thursday same week - targetThursday.setDate(targetThursday.getDate() - ((targetThursday.getDay() + 6) % 7) + 3); - - // Take January 4th as it is always in week 1 (see ISO 8601) - var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); - - // Change date to Thursday same week - firstThursday.setDate(firstThursday.getDate() - ((firstThursday.getDay() + 6) % 7) + 3); - - // Check if daylight-saving-time-switch occured and correct for it - var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); - targetThursday.setHours(targetThursday.getHours() - ds); - - // Number of weeks between target Thursday and first Thursday - var weekDiff = (targetThursday - firstThursday) / (86400000*7); - return 1 + Math.floor(weekDiff); -} - -/** - * Get ISO-8601 numeric representation of the day of the week - * 1 (for Monday) through 7 (for Sunday) - * - * @param {Object} `date` - * @return {Number} - */ -function getDayOfWeek(date) { - var dow = date.getDay(); - if(dow === 0) { - dow = 7; - } - return dow; -} - -/** - * kind-of shortcut - * @param {*} val - * @return {String} - */ -function kindOf(val) { - if (val === null) { - return 'null'; - } - - if (val === undefined) { - return 'undefined'; - } - - if (typeof val !== 'object') { - return typeof val; - } - - if (Array.isArray(val)) { - return 'array'; - } - - return {}.toString.call(val) - .slice(8, -1).toLowerCase(); -}; - - - - if (typeof define === 'function' && define.amd) { - define(function () { - return dateFormat; - }); - } else if (typeof exports === 'object') { - module.exports = dateFormat; - } else { - global.dateFormat = dateFormat; - } -})(this); diff --git a/node_modules/dateformat/package.json b/node_modules/dateformat/package.json deleted file mode 100644 index fcd493f..0000000 --- a/node_modules/dateformat/package.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "dateformat@^2.0.0", - "scope": null, - "escapedName": "dateformat", - "name": "dateformat", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-util" - ] - ], - "_from": "dateformat@>=2.0.0 <3.0.0", - "_id": "dateformat@2.0.0", - "_inCache": true, - "_location": "/dateformat", - "_nodeVersion": "6.7.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/dateformat-2.0.0.tgz_1480054524476_0.4571065616328269" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "dateformat@^2.0.0", - "scope": null, - "escapedName": "dateformat", - "name": "dateformat", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-util" - ], - "_resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.0.0.tgz", - "_shasum": "2743e3abb5c3fc2462e527dca445e04e9f4dee17", - "_shrinkwrap": null, - "_spec": "dateformat@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-util", - "author": { - "name": "Steven Levithan" - }, - "bugs": { - "url": "https://github.com/felixge/node-dateformat/issues" - }, - "contributors": [ - { - "name": "Steven Levithan" - }, - { - "name": "Felix Geisendörfer", - "email": "felix@debuggable.com" - }, - { - "name": "Christoph Tavan", - "email": "dev@tavan.de" - }, - { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - } - ], - "dependencies": {}, - "description": "A node.js package for Steven Levithan's excellent dateFormat() function.", - "devDependencies": { - "mocha": "2.0.1", - "underscore": "1.7.0" - }, - "directories": {}, - "dist": { - "shasum": "2743e3abb5c3fc2462e527dca445e04e9f4dee17", - "tarball": "https://registry.npmjs.org/dateformat/-/dateformat-2.0.0.tgz" - }, - "engines": { - "node": "*" - }, - "gitHead": "8802071cfc5e67095dec689ee2fa464b451e20d3", - "homepage": "https://github.com/felixge/node-dateformat", - "license": "MIT", - "main": "lib/dateformat", - "maintainers": [ - { - "name": "ctavan", - "email": "dev@tavan.de" - }, - { - "name": "felixge", - "email": "felix@debuggable.com" - }, - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "dateformat", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/felixge/node-dateformat.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "2.0.0" -} diff --git a/node_modules/decamelize/index.js b/node_modules/decamelize/index.js deleted file mode 100644 index 8d5bab7..0000000 --- a/node_modules/decamelize/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; -module.exports = function (str, sep) { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - - sep = typeof sep === 'undefined' ? '_' : sep; - - return str - .replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2') - .replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2') - .toLowerCase(); -}; diff --git a/node_modules/decamelize/license b/node_modules/decamelize/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/decamelize/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/decamelize/package.json b/node_modules/decamelize/package.json deleted file mode 100644 index 86ecfff..0000000 --- a/node_modules/decamelize/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "decamelize@^1.1.2", - "scope": null, - "escapedName": "decamelize", - "name": "decamelize", - "rawSpec": "^1.1.2", - "spec": ">=1.1.2 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/meow" - ] - ], - "_from": "decamelize@>=1.1.2 <2.0.0", - "_id": "decamelize@1.2.0", - "_inCache": true, - "_location": "/decamelize", - "_nodeVersion": "4.3.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/decamelize-1.2.0.tgz_1457167749082_0.9810893186368048" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "3.8.0", - "_phantomChildren": {}, - "_requested": { - "raw": "decamelize@^1.1.2", - "scope": null, - "escapedName": "decamelize", - "name": "decamelize", - "rawSpec": "^1.1.2", - "spec": ">=1.1.2 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/meow", - "/yargs" - ], - "_resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "_shasum": "f6534d15148269b20352e7bee26f501f9a191290", - "_shrinkwrap": null, - "_spec": "decamelize@^1.1.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/meow", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/decamelize/issues" - }, - "dependencies": {}, - "description": "Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "f6534d15148269b20352e7bee26f501f9a191290", - "tarball": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "95980ab6fb44c40eaca7792bdf93aff7c210c805", - "homepage": "https://github.com/sindresorhus/decamelize#readme", - "keywords": [ - "decamelize", - "decamelcase", - "camelcase", - "lowercase", - "case", - "dash", - "hyphen", - "string", - "str", - "text", - "convert" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "decamelize", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/decamelize.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.2.0" -} diff --git a/node_modules/decamelize/readme.md b/node_modules/decamelize/readme.md deleted file mode 100644 index 624c7ee..0000000 --- a/node_modules/decamelize/readme.md +++ /dev/null @@ -1,48 +0,0 @@ -# decamelize [![Build Status](https://travis-ci.org/sindresorhus/decamelize.svg?branch=master)](https://travis-ci.org/sindresorhus/decamelize) - -> Convert a camelized string into a lowercased one with a custom separator
    -> Example: `unicornRainbow` → `unicorn_rainbow` - - -## Install - -``` -$ npm install --save decamelize -``` - - -## Usage - -```js -const decamelize = require('decamelize'); - -decamelize('unicornRainbow'); -//=> 'unicorn_rainbow' - -decamelize('unicornRainbow', '-'); -//=> 'unicorn-rainbow' -``` - - -## API - -### decamelize(input, [separator]) - -#### input - -Type: `string` - -#### separator - -Type: `string`
    -Default: `_` - - -## Related - -See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/deep-assign/index.js b/node_modules/deep-assign/index.js deleted file mode 100644 index 4ed15e2..0000000 --- a/node_modules/deep-assign/index.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; -var isObj = require('is-obj'); -var hasOwnProperty = Object.prototype.hasOwnProperty; -var propIsEnumerable = Object.prototype.propertyIsEnumerable; - -function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Sources cannot be null or undefined'); - } - - return Object(val); -} - -function base(to, from) { - if (to === from) { - return to; - } - - from = Object(from); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - var val = from[key]; - - if (Array.isArray(val)) { - to[key] = val.slice(); - } else if (isObj(val)) { - to[key] = base(to[key] || {}, val); - } else if (val !== undefined) { - to[key] = val; - } - } - } - - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(from); - - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - - return to; -} - -module.exports = function deepAssign(target) { - target = toObject(target); - - for (var s = 1; s < arguments.length; s++) { - base(target, arguments[s]); - } - - return target; -}; diff --git a/node_modules/deep-assign/license b/node_modules/deep-assign/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/deep-assign/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/deep-assign/package.json b/node_modules/deep-assign/package.json deleted file mode 100644 index 02af88c..0000000 --- a/node_modules/deep-assign/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "deep-assign@^1.0.0", - "scope": null, - "escapedName": "deep-assign", - "name": "deep-assign", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-chmod" - ] - ], - "_from": "deep-assign@>=1.0.0 <2.0.0", - "_id": "deep-assign@1.0.0", - "_inCache": true, - "_location": "/deep-assign", - "_nodeVersion": "4.0.0", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.2", - "_phantomChildren": {}, - "_requested": { - "raw": "deep-assign@^1.0.0", - "scope": null, - "escapedName": "deep-assign", - "name": "deep-assign", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-chmod" - ], - "_resolved": "https://registry.npmjs.org/deep-assign/-/deep-assign-1.0.0.tgz", - "_shasum": "b092743be8427dc621ea0067cdec7e70dd19f37b", - "_shrinkwrap": null, - "_spec": "deep-assign@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-chmod", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/deep-assign/issues" - }, - "dependencies": { - "is-obj": "^1.0.0" - }, - "description": "Recursive Object.assign()", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "b092743be8427dc621ea0067cdec7e70dd19f37b", - "tarball": "https://registry.npmjs.org/deep-assign/-/deep-assign-1.0.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "d853e1fa2b71be5e1449d2b44c9fdb4be8918af8", - "homepage": "https://github.com/sindresorhus/deep-assign#readme", - "keywords": [ - "object", - "obj", - "assign", - "extend", - "properties", - "merge", - "deep", - "recursive" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "deep-assign", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/deep-assign.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.0", - "xo": { - "ignores": [ - "test.js" - ] - } -} diff --git a/node_modules/deep-assign/readme.md b/node_modules/deep-assign/readme.md deleted file mode 100644 index fd65ca9..0000000 --- a/node_modules/deep-assign/readme.md +++ /dev/null @@ -1,35 +0,0 @@ -# deep-assign [![Build Status](https://travis-ci.org/sindresorhus/deep-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/deep-assign) - -> Recursive [`Object.assign()`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) - - -## Install - -``` -$ npm install --save deep-assign -``` - - -## Usage - -```js -var deepAssign = require('deep-assign'); - -deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3}}); -//=> {a: {b: 1, c: 3}} -``` - - -### deepAssign(target, source, [source, ...]) - -Recursively assigns own enumerable properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones. - - -## Related - -- [object-assign](https://github.com/sindresorhus/object-assign) - ES2015 Object.assign() ponyfill - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/deepmerge/.npmignore b/node_modules/deepmerge/.npmignore deleted file mode 100644 index 55eb982..0000000 --- a/node_modules/deepmerge/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -node_modules - -#jasmine -reports diff --git a/node_modules/deepmerge/README.markdown b/node_modules/deepmerge/README.markdown deleted file mode 100644 index 6b1d5ff..0000000 --- a/node_modules/deepmerge/README.markdown +++ /dev/null @@ -1,70 +0,0 @@ -deepmerge -========= - -Merge the enumerable attributes of two objects deeply. - -example -======= - -```js -var util = require('util') -var merge = require('deepmerge') - -var x = { foo: { bar: 3 }, - array: [ { does: 'work', too: [ 1, 2, 3 ] } ] } -var y = { foo: { baz: 4 }, - quux: 5, - array: [ { does: 'work', too: [ 4, 5, 6 ] }, { really: 'yes' } ] } - -console.log(util.inspect(merge(x, y), false, null)) -``` - -output: - -```js -{ foo: { bar: 3, baz: 4 }, - array: [ { does: 'work', too: [ 1, 2, 3, 4, 5, 6 ] }, { really: 'yes' } ], - quux: 5 } -``` - -methods -======= - -var merge = require('deepmerge') - -merge(x, y) ------------ - -Merge two objects `x` and `y` deeply, returning a new merged object with the -elements from both `x` and `y`. - -If an element at the same key is present for both `x` and `y`, the value from -`y` will appear in the result. - -The merge is immutable, so neither `x` nor `y` will be modified. - -The merge will also merge arrays and array values. - -install -======= - -With [npm](http://npmjs.org) do: - -``` -npm install deepmerge -``` - -For the browser, you can install with [bower](http://bower.io/): - -``` -bower install deepmerge -``` - -test -==== - -With [npm](http://npmjs.org) do: - -``` -npm test -``` diff --git a/node_modules/deepmerge/bower.json b/node_modules/deepmerge/bower.json deleted file mode 100644 index 8db5bcc..0000000 --- a/node_modules/deepmerge/bower.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "deepmerge", - "main": "index.js", - "version": "0.2.5", - "homepage": "https://github.com/nrf110/deepmerge", - "authors": [ - "Nicholas Fisher " - ], - "description": "Merge the enumerable attributes of two objects.", - "keywords": [ - "merge", - "extend", - "assign" - ], - "license": "MIT", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "app/bower_components", - "test", - "tests" - ] -} diff --git a/node_modules/deepmerge/example/merge.js b/node_modules/deepmerge/example/merge.js deleted file mode 100644 index ccac0a4..0000000 --- a/node_modules/deepmerge/example/merge.js +++ /dev/null @@ -1,5 +0,0 @@ -var merge = require('../') -var x = { foo : { 'bar' : 3 } } -var y = { foo : { 'baz' : 4 }, quux : 5 } -var merged = merge(x, y) -console.dir(merged) diff --git a/node_modules/deepmerge/index.js b/node_modules/deepmerge/index.js deleted file mode 100644 index b7c605e..0000000 --- a/node_modules/deepmerge/index.js +++ /dev/null @@ -1,52 +0,0 @@ -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - define(factory); - } else if (typeof exports === 'object') { - module.exports = factory(); - } else { - root.deepmerge = factory(); - } -}(this, function () { - -return function deepmerge(target, src) { - var array = Array.isArray(src); - var dst = array && [] || {}; - - if (array) { - target = target || []; - dst = dst.concat(target); - src.forEach(function(e, i) { - if (typeof dst[i] === 'undefined') { - dst[i] = e; - } else if (typeof e === 'object') { - dst[i] = deepmerge(target[i], e); - } else { - if (target.indexOf(e) === -1) { - dst.push(e); - } - } - }); - } else { - if (target && typeof target === 'object') { - Object.keys(target).forEach(function (key) { - dst[key] = target[key]; - }) - } - Object.keys(src).forEach(function (key) { - if (typeof src[key] !== 'object' || !src[key]) { - dst[key] = src[key]; - } - else { - if (!target[key]) { - dst[key] = src[key]; - } else { - dst[key] = deepmerge(target[key], src[key]); - } - } - }); - } - - return dst; -} - -})); diff --git a/node_modules/deepmerge/license.txt b/node_modules/deepmerge/license.txt deleted file mode 100644 index be42284..0000000 --- a/node_modules/deepmerge/license.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Nicholas Fisher - -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/deepmerge/package.json b/node_modules/deepmerge/package.json deleted file mode 100644 index d7e7e58..0000000 --- a/node_modules/deepmerge/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "deepmerge@~0.2.7", - "scope": null, - "escapedName": "deepmerge", - "name": "deepmerge", - "rawSpec": "~0.2.7", - "spec": ">=0.2.7 <0.3.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-json-editor" - ] - ], - "_from": "deepmerge@>=0.2.7 <0.3.0", - "_id": "deepmerge@0.2.10", - "_inCache": true, - "_location": "/deepmerge", - "_nodeVersion": "0.10.35", - "_npmUser": { - "name": "kylemathews", - "email": "mathews.kyle@gmail.com" - }, - "_npmVersion": "2.9.0", - "_phantomChildren": {}, - "_requested": { - "raw": "deepmerge@~0.2.7", - "scope": null, - "escapedName": "deepmerge", - "name": "deepmerge", - "rawSpec": "~0.2.7", - "spec": ">=0.2.7 <0.3.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-json-editor" - ], - "_resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-0.2.10.tgz", - "_shasum": "8906bf9e525a4fbf1b203b2afcb4640249821219", - "_shrinkwrap": null, - "_spec": "deepmerge@~0.2.7", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-json-editor", - "author": { - "name": "Nick Fisher" - }, - "bugs": { - "url": "https://github.com/nrf110/deepmerge/issues" - }, - "dependencies": {}, - "description": "A library for deep (recursive) merging of Javascript objects", - "devDependencies": { - "tap": "~0.4.8" - }, - "directories": {}, - "dist": { - "shasum": "8906bf9e525a4fbf1b203b2afcb4640249821219", - "tarball": "https://registry.npmjs.org/deepmerge/-/deepmerge-0.2.10.tgz" - }, - "engines": { - "node": ">=0.4.0" - }, - "gitHead": "2383571036c1d2f3b6db0b4342859867920a0084", - "homepage": "https://github.com/nrf110/deepmerge", - "license": "MIT", - "main": "index", - "maintainers": [ - { - "name": "nfisher", - "email": "nfisher@trafficland.com" - }, - { - "name": "kylemathews", - "email": "mathews.kyle@gmail.com" - } - ], - "name": "deepmerge", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/nrf110/deepmerge.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "0.2.10" -} diff --git a/node_modules/deepmerge/test/merge.js b/node_modules/deepmerge/test/merge.js deleted file mode 100644 index 47e1061..0000000 --- a/node_modules/deepmerge/test/merge.js +++ /dev/null @@ -1,222 +0,0 @@ -var merge = require('../') -var test = require('tap').test - -test('add keys in target that do not exist at the root', function (t) { - var src = { key1: 'value1', key2: 'value2' } - target = {} - - var res = merge(target, src) - - t.deepEqual(target, {}, 'merge should be immutable') - t.deepEqual(res, src) - t.end() -}) - -test('merge existing simple keys in target at the roots', function (t) { - var src = { key1: 'changed', key2: 'value2' } - var target = { key1: 'value1', key3: 'value3' } - - var expected = { - key1: 'changed', - key2: 'value2', - key3: 'value3' - } - - t.deepEqual(target, { key1: 'value1', key3: 'value3' }) - t.deepEqual(merge(target, src), expected) - t.end() -}) - -test('merge nested objects into target', function (t) { - var src = { - key1: { - subkey1: 'changed', - subkey3: 'added' - } - } - var target = { - key1: { - subkey1: 'value1', - subkey2: 'value2' - } - } - - var expected = { - key1: { - subkey1: 'changed', - subkey2: 'value2', - subkey3: 'added' - } - } - - t.deepEqual(target, { - key1: { - subkey1: 'value1', - subkey2: 'value2' - } - }) - t.deepEqual(merge(target, src), expected) - t.end() -}) - -test('replace simple key with nested object in target', function (t) { - var src = { - key1: { - subkey1: 'subvalue1', - subkey2: 'subvalue2' - } - } - var target = { - key1: 'value1', - key2: 'value2' - } - - var expected = { - key1: { - subkey1: 'subvalue1', - subkey2: 'subvalue2' - }, - key2: 'value2' - } - - t.deepEqual(target, { key1: 'value1', key2: 'value2' }) - t.deepEqual(merge(target, src), expected) - t.end() -}) - -test('should add nested object in target', function(t) { - var src = { - "b": { - "c": {} - } - } - - var target = { - "a": {} - } - - var expected = { - "a": {}, - "b": { - "c": {} - } - } - - t.deepEqual(merge(target, src), expected) - t.end() -}) - -test('should replace object with simple key in target', function (t) { - var src = { key1: 'value1' } - var target = { - key1: { - subkey1: 'subvalue1', - subkey2: 'subvalue2' - }, - key2: 'value2' - } - - var expected = { key1: 'value1', key2: 'value2' } - - t.deepEqual(target, { - key1: { - subkey1: 'subvalue1', - subkey2: 'subvalue2' - }, - key2: 'value2' - }) - t.deepEqual(merge(target, src), expected) - t.end() -}) - -test('should work on simple array', function (t) { - var src = ['one', 'three'] - var target = ['one', 'two'] - - var expected = ['one', 'two', 'three'] - - t.deepEqual(target, ['one', 'two']) - t.deepEqual(merge(target, src), expected) - t.ok(Array.isArray(merge(target, src))) - t.end() -}) - -test('should work on another simple array', function(t) { - var target = ["a1","a2","c1","f1","p1"]; - var src = ["t1","s1","c2","r1","p2","p3"]; - - var expected = ["a1", "a2", "c1", "f1", "p1", "t1", "s1", "c2", "r1", "p2", "p3"] - t.deepEqual(target, ["a1", "a2", "c1", "f1", "p1"]) - t.deepEqual(merge(target, src), expected) - t.ok(Array.isArray(merge(target, src))) - t.end() -}) - -test('should work on array properties', function (t) { - var src = { - key1: ['one', 'three'], - key2: ['four'] - } - var target = { - key1: ['one', 'two'] - } - - var expected = { - key1: ['one', 'two', 'three'], - key2: ['four'] - } - - t.deepEqual(target, { - key1: ['one', 'two'] - }) - - t.deepEqual(merge(target, src), expected) - t.ok(Array.isArray(merge(target, src).key1)) - t.ok(Array.isArray(merge(target, src).key2)) - t.end() -}) - -test('should work on array of objects', function (t) { - var src = [ - { key1: ['one', 'three'], key2: ['one'] }, - { key3: ['five'] } - ] - var target = [ - { key1: ['one', 'two'] }, - { key3: ['four'] } - ] - - var expected = [ - { key1: ['one', 'two', 'three'], key2: ['one'] }, - { key3: ['four', 'five'] } - ] - - t.deepEqual(target, [ - { key1: ['one', 'two'] }, - { key3: ['four'] } - ]) - t.deepEqual(merge(target, src), expected) - t.ok(Array.isArray(merge(target, src)), 'result should be an array') - t.ok(Array.isArray(merge(target, src)[0].key1), 'subkey should be an array too') - - t.end() -}) - -test('should work on arrays of nested objects', function(t) { - var target = [ - { key1: { subkey: 'one' }} - ] - - var src = [ - { key1: { subkey: 'two' }}, - { key2: { subkey: 'three' }} - ] - - var expected = [ - { key1: { subkey: 'two' }}, - { key2: { subkey: 'three' }} - ] - - t.deepEqual(merge(target, src), expected) - t.end() -}) diff --git a/node_modules/defaults/.npmignore b/node_modules/defaults/.npmignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/defaults/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/defaults/LICENSE b/node_modules/defaults/LICENSE deleted file mode 100644 index d88b072..0000000 --- a/node_modules/defaults/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Elijah Insua - -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/defaults/README.md b/node_modules/defaults/README.md deleted file mode 100644 index 1a4a2ea..0000000 --- a/node_modules/defaults/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# defaults - -A simple one level options merge utility - -## install - -`npm install defaults` - -## use - -```javascript - -var defaults = require('defaults'); - -var handle = function(options, fn) { - options = defaults(options, { - timeout: 100 - }); - - setTimeout(function() { - fn(options); - }, options.timeout); -} - -handle({ timeout: 1000 }, function() { - // we're here 1000 ms later -}); - -handle({ timeout: 10000 }, function() { - // we're here 10s later -}); - -``` - -## summary - -this module exports a function that takes 2 arguments: `options` and `defaults`. When called, it overrides all of `undefined` properties in `options` with the clones of properties defined in `defaults` - -Sidecases: if called with a falsy `options` value, options will be initialized to a new object before being merged onto. - -## license - -[MIT](LICENSE) diff --git a/node_modules/defaults/index.js b/node_modules/defaults/index.js deleted file mode 100644 index cb7d75c..0000000 --- a/node_modules/defaults/index.js +++ /dev/null @@ -1,13 +0,0 @@ -var clone = require('clone'); - -module.exports = function(options, defaults) { - options = options || {}; - - Object.keys(defaults).forEach(function(key) { - if (typeof options[key] === 'undefined') { - options[key] = clone(defaults[key]); - } - }); - - return options; -}; \ No newline at end of file diff --git a/node_modules/defaults/package.json b/node_modules/defaults/package.json deleted file mode 100644 index 71f8795..0000000 --- a/node_modules/defaults/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "defaults@^1.0.0", - "scope": null, - "escapedName": "defaults", - "name": "defaults", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/vinyl-fs" - ] - ], - "_from": "defaults@>=1.0.0 <2.0.0", - "_id": "defaults@1.0.3", - "_inCache": true, - "_location": "/defaults", - "_nodeVersion": "4.1.1", - "_npmUser": { - "name": "tmpvar", - "email": "tmpvar@gmail.com" - }, - "_npmVersion": "2.14.4", - "_phantomChildren": {}, - "_requested": { - "raw": "defaults@^1.0.0", - "scope": null, - "escapedName": "defaults", - "name": "defaults", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/vinyl-fs" - ], - "_resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "_shasum": "c656051e9817d9ff08ed881477f3fe4019f3ef7d", - "_shrinkwrap": null, - "_spec": "defaults@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/vinyl-fs", - "author": { - "name": "Elijah Insua", - "email": "tmpvar@gmail.com" - }, - "bugs": { - "url": "https://github.com/tmpvar/defaults/issues" - }, - "dependencies": { - "clone": "^1.0.2" - }, - "description": "merge single level defaults over a config object", - "devDependencies": { - "tap": "^2.0.0" - }, - "directories": {}, - "dist": { - "shasum": "c656051e9817d9ff08ed881477f3fe4019f3ef7d", - "tarball": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz" - }, - "gitHead": "8831ec32a5f999bfae1a8c9bf32880971ed7c6f2", - "homepage": "https://github.com/tmpvar/defaults#readme", - "keywords": [ - "config", - "defaults" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "tmpvar", - "email": "tmpvar@gmail.com" - } - ], - "name": "defaults", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/tmpvar/defaults.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.0.3" -} diff --git a/node_modules/defaults/test.js b/node_modules/defaults/test.js deleted file mode 100644 index 60e0ffb..0000000 --- a/node_modules/defaults/test.js +++ /dev/null @@ -1,34 +0,0 @@ -var defaults = require('./'), - test = require('tap').test; - -test("ensure options is an object", function(t) { - var options = defaults(false, { a : true }); - t.ok(options.a); - t.end() -}); - -test("ensure defaults override keys", function(t) { - var result = defaults({}, { a: false, b: true }); - t.ok(result.b, 'b merges over undefined'); - t.equal(result.a, false, 'a merges over undefined'); - t.end(); -}); - -test("ensure defined keys are not overwritten", function(t) { - var result = defaults({ b: false }, { a: false, b: true }); - t.equal(result.b, false, 'b not merged'); - t.equal(result.a, false, 'a merges over undefined'); - t.end(); -}); - -test("ensure defaults clone nested objects", function(t) { - var d = { a: [1,2,3], b: { hello : 'world' } }; - var result = defaults({}, d); - t.equal(result.a.length, 3, 'objects should be clones'); - t.ok(result.a !== d.a, 'objects should be clones'); - - t.equal(Object.keys(result.b).length, 1, 'objects should be clones'); - t.ok(result.b !== d.b, 'objects should be clones'); - t.end(); -}); - diff --git a/node_modules/del/index.js b/node_modules/del/index.js deleted file mode 100644 index 0ceff96..0000000 --- a/node_modules/del/index.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; -var path = require('path'); -var globby = require('globby'); -var isPathCwd = require('is-path-cwd'); -var isPathInCwd = require('is-path-in-cwd'); -var objectAssign = require('object-assign'); -var Promise = require('pinkie-promise'); -var pify = require('pify'); -var rimraf = require('rimraf'); - -var rimrafP = pify(rimraf, Promise); - -function safeCheck(file) { - if (isPathCwd(file)) { - throw new Error('Cannot delete the current working directory. Can be overriden with the `force` option.'); - } - - if (!isPathInCwd(file)) { - throw new Error('Cannot delete files/folders outside the current working directory. Can be overriden with the `force` option.'); - } -} - -module.exports = function (patterns, opts) { - opts = objectAssign({}, opts); - - var force = opts.force; - delete opts.force; - - var dryRun = opts.dryRun; - delete opts.dryRun; - - return globby(patterns, opts).then(function (files) { - return Promise.all(files.map(function (file) { - if (!force) { - safeCheck(file); - } - - file = path.resolve(opts.cwd || '', file); - - if (dryRun) { - return Promise.resolve(file); - } - - return rimrafP(file).then(function () { - return file; - }); - })); - }); -}; - -module.exports.sync = function (patterns, opts) { - opts = objectAssign({}, opts); - - var force = opts.force; - delete opts.force; - - var dryRun = opts.dryRun; - delete opts.dryRun; - - return globby.sync(patterns, opts).map(function (file) { - if (!force) { - safeCheck(file); - } - - file = path.resolve(opts.cwd || '', file); - - if (!dryRun) { - rimraf.sync(file); - } - - return file; - }); -}; diff --git a/node_modules/del/license b/node_modules/del/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/del/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/del/package.json b/node_modules/del/package.json deleted file mode 100644 index f24c900..0000000 --- a/node_modules/del/package.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "del@^2.2.2", - "scope": null, - "escapedName": "del", - "name": "del", - "rawSpec": "^2.2.2", - "spec": ">=2.2.2 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui" - ] - ], - "_from": "del@>=2.2.2 <3.0.0", - "_id": "del@2.2.2", - "_inCache": true, - "_location": "/del", - "_nodeVersion": "4.4.5", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/del-2.2.2.tgz_1471046735537_0.4419694794341922" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.5", - "_phantomChildren": {}, - "_requested": { - "raw": "del@^2.2.2", - "scope": null, - "escapedName": "del", - "name": "del", - "rawSpec": "^2.2.2", - "spec": ">=2.2.2 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/semantic-ui" - ], - "_resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", - "_shasum": "c12c981d067846c84bcaf862cff930d907ffd1a8", - "_shrinkwrap": null, - "_spec": "del@^2.2.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/del/issues" - }, - "dependencies": { - "globby": "^5.0.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "rimraf": "^2.2.8" - }, - "description": "Delete files and folders", - "devDependencies": { - "ava": "*", - "fs-extra": "^0.30.0", - "path-exists": "^2.0.0", - "tempfile": "^1.1.1", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "c12c981d067846c84bcaf862cff930d907ffd1a8", - "tarball": "https://registry.npmjs.org/del/-/del-2.2.2.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "3a97a5ba131055fbf7eb39f5ed47db86a2fd4497", - "homepage": "https://github.com/sindresorhus/del#readme", - "keywords": [ - "delete", - "del", - "remove", - "destroy", - "trash", - "unlink", - "clean", - "cleaning", - "cleanup", - "rm", - "rmrf", - "rimraf", - "rmdir", - "glob", - "gulpfriendly", - "file", - "files", - "folder", - "dir", - "directory", - "fs", - "filesystem" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "del", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/del.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.2.2" -} diff --git a/node_modules/del/readme.md b/node_modules/del/readme.md deleted file mode 100644 index c0c1219..0000000 --- a/node_modules/del/readme.md +++ /dev/null @@ -1,106 +0,0 @@ -# del [![Build Status](https://travis-ci.org/sindresorhus/del.svg?branch=master)](https://travis-ci.org/sindresorhus/del) - -> Delete files and folders using [globs](https://github.com/isaacs/minimatch#usage) - -Pretty much [rimraf](https://github.com/isaacs/rimraf) with a Promise API and support for multiple files and globbing. It also protects you against deleting the current working directory and above. - ---- - -

    🔥 Want to strengthen your core JavaScript skills and master ES6?
    I would personally recommend this awesome ES6 course by Wes Bos.

    - ---- - - -## Install - -``` -$ npm install --save del -``` - - -## Usage - -```js -const del = require('del'); - -del(['tmp/*.js', '!tmp/unicorn.js']).then(paths => { - console.log('Deleted files and folders:\n', paths.join('\n')); -}); -``` - - -## Beware - -The glob pattern `**` matches all children and *the parent*. - -So this won't work: - -```js -del.sync(['public/assets/**', '!public/assets/goat.png']); -``` - -You have to explicitly ignore the parent directories too: - -```js -del.sync(['public/assets/**', '!public/assets', '!public/assets/goat.png']); -``` - -Suggestions on how to improve this welcome! - - -## API - -### del(patterns, [options]) - -Returns a promise for an array of deleted paths. - -### del.sync(patterns, [options]) - -Returns an array of deleted paths. - -#### patterns - -Type: `string`, `array` - -See supported minimatch [patterns](https://github.com/isaacs/minimatch#usage). - -- [Pattern examples with expected matches](https://github.com/sindresorhus/multimatch/blob/master/test.js) -- [Quick globbing pattern overview](https://github.com/sindresorhus/multimatch#globbing-patterns) - -#### options - -Type: `object` - -See the `node-glob` [options](https://github.com/isaacs/node-glob#options). - -##### force - -Type: `boolean` -Default: `false` - -Allow deleting the current working directory and outside. - -##### dryRun - -Type: `boolean` -Default: `false` - -See what would be deleted. - -```js -const del = require('del'); - -del(['tmp/*.js'], {dryRun: true}).then(paths => { - console.log('Files and folders that would be deleted:\n', paths.join('\n')); -}); -``` - - -## CLI - -See [del-cli](https://github.com/sindresorhus/del-cli) for a CLI for this module and [trash-cli](https://github.com/sindresorhus/trash-cli) for a safe version that is suitable for running by hand. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/delayed-stream/.npmignore b/node_modules/delayed-stream/.npmignore deleted file mode 100644 index 9daeafb..0000000 --- a/node_modules/delayed-stream/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test diff --git a/node_modules/delayed-stream/License b/node_modules/delayed-stream/License deleted file mode 100644 index 4804b7a..0000000 --- a/node_modules/delayed-stream/License +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011 Debuggable Limited - -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/delayed-stream/Makefile b/node_modules/delayed-stream/Makefile deleted file mode 100644 index b4ff85a..0000000 --- a/node_modules/delayed-stream/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -SHELL := /bin/bash - -test: - @./test/run.js - -.PHONY: test - diff --git a/node_modules/delayed-stream/Readme.md b/node_modules/delayed-stream/Readme.md deleted file mode 100644 index aca36f9..0000000 --- a/node_modules/delayed-stream/Readme.md +++ /dev/null @@ -1,141 +0,0 @@ -# delayed-stream - -Buffers events from a stream until you are ready to handle them. - -## Installation - -``` bash -npm install delayed-stream -``` - -## Usage - -The following example shows how to write a http echo server that delays its -response by 1000 ms. - -``` javascript -var DelayedStream = require('delayed-stream'); -var http = require('http'); - -http.createServer(function(req, res) { - var delayed = DelayedStream.create(req); - - setTimeout(function() { - res.writeHead(200); - delayed.pipe(res); - }, 1000); -}); -``` - -If you are not using `Stream#pipe`, you can also manually release the buffered -events by calling `delayedStream.resume()`: - -``` javascript -var delayed = DelayedStream.create(req); - -setTimeout(function() { - // Emit all buffered events and resume underlaying source - delayed.resume(); -}, 1000); -``` - -## Implementation - -In order to use this meta stream properly, here are a few things you should -know about the implementation. - -### Event Buffering / Proxying - -All events of the `source` stream are hijacked by overwriting the `source.emit` -method. Until node implements a catch-all event listener, this is the only way. - -However, delayed-stream still continues to emit all events it captures on the -`source`, regardless of whether you have released the delayed stream yet or -not. - -Upon creation, delayed-stream captures all `source` events and stores them in -an internal event buffer. Once `delayedStream.release()` is called, all -buffered events are emitted on the `delayedStream`, and the event buffer is -cleared. After that, delayed-stream merely acts as a proxy for the underlaying -source. - -### Error handling - -Error events on `source` are buffered / proxied just like any other events. -However, `delayedStream.create` attaches a no-op `'error'` listener to the -`source`. This way you only have to handle errors on the `delayedStream` -object, rather than in two places. - -### Buffer limits - -delayed-stream provides a `maxDataSize` property that can be used to limit -the amount of data being buffered. In order to protect you from bad `source` -streams that don't react to `source.pause()`, this feature is enabled by -default. - -## API - -### DelayedStream.create(source, [options]) - -Returns a new `delayedStream`. Available options are: - -* `pauseStream` -* `maxDataSize` - -The description for those properties can be found below. - -### delayedStream.source - -The `source` stream managed by this object. This is useful if you are -passing your `delayedStream` around, and you still want to access properties -on the `source` object. - -### delayedStream.pauseStream = true - -Whether to pause the underlaying `source` when calling -`DelayedStream.create()`. Modifying this property afterwards has no effect. - -### delayedStream.maxDataSize = 1024 * 1024 - -The amount of data to buffer before emitting an `error`. - -If the underlaying source is emitting `Buffer` objects, the `maxDataSize` -refers to bytes. - -If the underlaying source is emitting JavaScript strings, the size refers to -characters. - -If you know what you are doing, you can set this property to `Infinity` to -disable this feature. You can also modify this property during runtime. - -### delayedStream.dataSize = 0 - -The amount of data buffered so far. - -### delayedStream.readable - -An ECMA5 getter that returns the value of `source.readable`. - -### delayedStream.resume() - -If the `delayedStream` has not been released so far, `delayedStream.release()` -is called. - -In either case, `source.resume()` is called. - -### delayedStream.pause() - -Calls `source.pause()`. - -### delayedStream.pipe(dest) - -Calls `delayedStream.resume()` and then proxies the arguments to `source.pipe`. - -### delayedStream.release() - -Emits and clears all events that have been buffered up so far. This does not -resume the underlaying source, use `delayedStream.resume()` instead. - -## License - -delayed-stream is licensed under the MIT license. diff --git a/node_modules/delayed-stream/lib/delayed_stream.js b/node_modules/delayed-stream/lib/delayed_stream.js deleted file mode 100644 index b38fc85..0000000 --- a/node_modules/delayed-stream/lib/delayed_stream.js +++ /dev/null @@ -1,107 +0,0 @@ -var Stream = require('stream').Stream; -var util = require('util'); - -module.exports = DelayedStream; -function DelayedStream() { - this.source = null; - this.dataSize = 0; - this.maxDataSize = 1024 * 1024; - this.pauseStream = true; - - this._maxDataSizeExceeded = false; - this._released = false; - this._bufferedEvents = []; -} -util.inherits(DelayedStream, Stream); - -DelayedStream.create = function(source, options) { - var delayedStream = new this(); - - options = options || {}; - for (var option in options) { - delayedStream[option] = options[option]; - } - - delayedStream.source = source; - - var realEmit = source.emit; - source.emit = function() { - delayedStream._handleEmit(arguments); - return realEmit.apply(source, arguments); - }; - - source.on('error', function() {}); - if (delayedStream.pauseStream) { - source.pause(); - } - - return delayedStream; -}; - -Object.defineProperty(DelayedStream.prototype, 'readable', { - configurable: true, - enumerable: true, - get: function() { - return this.source.readable; - } -}); - -DelayedStream.prototype.setEncoding = function() { - return this.source.setEncoding.apply(this.source, arguments); -}; - -DelayedStream.prototype.resume = function() { - if (!this._released) { - this.release(); - } - - this.source.resume(); -}; - -DelayedStream.prototype.pause = function() { - this.source.pause(); -}; - -DelayedStream.prototype.release = function() { - this._released = true; - - this._bufferedEvents.forEach(function(args) { - this.emit.apply(this, args); - }.bind(this)); - this._bufferedEvents = []; -}; - -DelayedStream.prototype.pipe = function() { - var r = Stream.prototype.pipe.apply(this, arguments); - this.resume(); - return r; -}; - -DelayedStream.prototype._handleEmit = function(args) { - if (this._released) { - this.emit.apply(this, args); - return; - } - - if (args[0] === 'data') { - this.dataSize += args[1].length; - this._checkIfMaxDataSizeExceeded(); - } - - this._bufferedEvents.push(args); -}; - -DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { - if (this._maxDataSizeExceeded) { - return; - } - - if (this.dataSize <= this.maxDataSize) { - return; - } - - this._maxDataSizeExceeded = true; - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.' - this.emit('error', new Error(message)); -}; diff --git a/node_modules/delayed-stream/package.json b/node_modules/delayed-stream/package.json deleted file mode 100644 index d9bec97..0000000 --- a/node_modules/delayed-stream/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "delayed-stream@~1.0.0", - "scope": null, - "escapedName": "delayed-stream", - "name": "delayed-stream", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/combined-stream" - ] - ], - "_from": "delayed-stream@>=1.0.0 <1.1.0", - "_id": "delayed-stream@1.0.0", - "_inCache": true, - "_location": "/delayed-stream", - "_nodeVersion": "1.6.4", - "_npmUser": { - "name": "apechimp", - "email": "apeherder@gmail.com" - }, - "_npmVersion": "2.8.3", - "_phantomChildren": {}, - "_requested": { - "raw": "delayed-stream@~1.0.0", - "scope": null, - "escapedName": "delayed-stream", - "name": "delayed-stream", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/combined-stream" - ], - "_resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "_shasum": "df3ae199acadfb7d440aaae0b29e2272b24ec619", - "_shrinkwrap": null, - "_spec": "delayed-stream@~1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/combined-stream", - "author": { - "name": "Felix Geisendörfer", - "email": "felix@debuggable.com", - "url": "http://debuggable.com/" - }, - "bugs": { - "url": "https://github.com/felixge/node-delayed-stream/issues" - }, - "contributors": [ - { - "name": "Mike Atkins", - "email": "apeherder@gmail.com" - } - ], - "dependencies": {}, - "description": "Buffers events from a stream until you are ready to handle them.", - "devDependencies": { - "fake": "0.2.0", - "far": "0.0.1" - }, - "directories": {}, - "dist": { - "shasum": "df3ae199acadfb7d440aaae0b29e2272b24ec619", - "tarball": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" - }, - "engines": { - "node": ">=0.4.0" - }, - "gitHead": "07a9dc99fb8f1a488160026b9ad77493f766fb84", - "homepage": "https://github.com/felixge/node-delayed-stream", - "license": "MIT", - "main": "./lib/delayed_stream", - "maintainers": [ - { - "name": "felixge", - "email": "felix@debuggable.com" - }, - { - "name": "apechimp", - "email": "apeherder@gmail.com" - } - ], - "name": "delayed-stream", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/felixge/node-delayed-stream.git" - }, - "scripts": { - "test": "make test" - }, - "version": "1.0.0" -} diff --git a/node_modules/deprecated/.npmignore b/node_modules/deprecated/.npmignore deleted file mode 100644 index b5ef13a..0000000 --- a/node_modules/deprecated/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -.DS_Store -*.log -node_modules -build -*.node -components \ No newline at end of file diff --git a/node_modules/deprecated/.travis.yml b/node_modules/deprecated/.travis.yml deleted file mode 100644 index 33ad9f8..0000000 --- a/node_modules/deprecated/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: - - "0.9" - - "0.10" -after_script: - - npm run coveralls \ No newline at end of file diff --git a/node_modules/deprecated/LICENSE b/node_modules/deprecated/LICENSE deleted file mode 100755 index 7cbe012..0000000 --- a/node_modules/deprecated/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2014 Fractal - -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/deprecated/README.md b/node_modules/deprecated/README.md deleted file mode 100644 index 493e6ea..0000000 --- a/node_modules/deprecated/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# deprecated [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url] - - -## Information - - - - - - - - - - - - - -
    Packagedeprecated
    DescriptionTool for deprecating things
    Node Version>= 0.9
    - -## Usage - -```javascript -var oldfn = function(a,b) { - return a+b; -}; - -// returns a new wrapper function that logs the deprecated function once -var somefn = deprecated('dont use this anymore', console.log, oldfn); - -var someobj = {}; - -// set up a getter/set for field that logs deprecated message once -deprecated('dont use this anymore', console.log, someobj, 'a', 123); - -console.log(someobj.a); // 123 -``` - -[npm-url]: https://npmjs.org/package/deprecated -[npm-image]: https://badge.fury.io/js/deprecated.png - -[travis-url]: https://travis-ci.org/wearefractal/deprecated -[travis-image]: https://travis-ci.org/wearefractal/deprecated.png?branch=master - -[coveralls-url]: https://coveralls.io/r/wearefractal/deprecated -[coveralls-image]: https://coveralls.io/repos/wearefractal/deprecated/badge.png - -[depstat-url]: https://david-dm.org/wearefractal/deprecated -[depstat-image]: https://david-dm.org/wearefractal/deprecated.png - -[david-url]: https://david-dm.org/wearefractal/deprecated -[david-image]: https://david-dm.org/wearefractal/deprecated.png?theme=shields.io \ No newline at end of file diff --git a/node_modules/deprecated/index.js b/node_modules/deprecated/index.js deleted file mode 100644 index f689e9c..0000000 --- a/node_modules/deprecated/index.js +++ /dev/null @@ -1,39 +0,0 @@ -var deprecated = { - method: function(msg, log, fn) { - var called = false; - return function(){ - if (!called) { - called = true; - log(msg); - } - return fn.apply(this, arguments); - }; - }, - - field: function(msg, log, parent, field, val) { - var called = false; - var getter = function(){ - if (!called) { - called = true; - log(msg); - } - return val; - }; - var setter = function(v) { - if (!called) { - called = true; - log(msg); - } - val = v; - return v; - }; - Object.defineProperty(parent, field, { - get: getter, - set: setter, - enumerable: true - }); - return; - } -}; - -module.exports = deprecated; \ No newline at end of file diff --git a/node_modules/deprecated/package.json b/node_modules/deprecated/package.json deleted file mode 100644 index 65e28bd..0000000 --- a/node_modules/deprecated/package.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "deprecated@^0.0.1", - "scope": null, - "escapedName": "deprecated", - "name": "deprecated", - "rawSpec": "^0.0.1", - "spec": ">=0.0.1 <0.0.2", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp" - ] - ], - "_from": "deprecated@>=0.0.1 <0.0.2", - "_id": "deprecated@0.0.1", - "_inCache": true, - "_location": "/deprecated", - "_npmUser": { - "name": "fractal", - "email": "contact@wearefractal.com" - }, - "_npmVersion": "1.3.24", - "_phantomChildren": {}, - "_requested": { - "raw": "deprecated@^0.0.1", - "scope": null, - "escapedName": "deprecated", - "name": "deprecated", - "rawSpec": "^0.0.1", - "spec": ">=0.0.1 <0.0.2", - "type": "range" - }, - "_requiredBy": [ - "/gulp" - ], - "_resolved": "https://registry.npmjs.org/deprecated/-/deprecated-0.0.1.tgz", - "_shasum": "f9c9af5464afa1e7a971458a8bdef2aa94d5bb19", - "_shrinkwrap": null, - "_spec": "deprecated@^0.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp", - "author": { - "name": "Fractal", - "email": "contact@wearefractal.com", - "url": "http://wearefractal.com/" - }, - "bugs": { - "url": "https://github.com/wearefractal/deprecated/issues" - }, - "dependencies": {}, - "description": "Tool for deprecating things", - "devDependencies": { - "coveralls": "~2.6.1", - "istanbul": "~0.2.3", - "jshint": "~2.4.1", - "mocha": "~1.17.0", - "mocha-lcov-reporter": "~0.0.1", - "rimraf": "~2.2.5", - "should": "~3.1.0" - }, - "directories": {}, - "dist": { - "shasum": "f9c9af5464afa1e7a971458a8bdef2aa94d5bb19", - "tarball": "https://registry.npmjs.org/deprecated/-/deprecated-0.0.1.tgz" - }, - "engines": { - "node": ">= 0.9" - }, - "homepage": "http://github.com/wearefractal/deprecated", - "licenses": [ - { - "type": "MIT", - "url": "http://github.com/wearefractal/deprecated/raw/master/LICENSE" - } - ], - "main": "./index.js", - "maintainers": [ - { - "name": "fractal", - "email": "contact@wearefractal.com" - } - ], - "name": "deprecated", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/wearefractal/deprecated.git" - }, - "scripts": { - "coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", - "test": "mocha --reporter spec && jshint" - }, - "version": "0.0.1" -} diff --git a/node_modules/deprecated/test/field.js b/node_modules/deprecated/test/field.js deleted file mode 100644 index 91a7029..0000000 --- a/node_modules/deprecated/test/field.js +++ /dev/null @@ -1,44 +0,0 @@ -var deprecated = require('../'); -var should = require('should'); -require('mocha'); - -describe('field()', function() { - it('should return a wrapped function that logs once on get', function(done) { - var message = 'testing'; - var scope = { - a: 1 - }; - var obj = {}; - var logged = false; - var log = function(msg){ - msg.should.equal(message); - logged.should.equal(false); - logged = true; - }; - deprecated.field(message, log, obj, 'a', 123); - - obj.a.should.equal(123); - obj.a = 1234; - obj.a.should.equal(1234); - logged.should.equal(true); - done(); - }); - it('should return a wrapped function that logs once on set', function(done) { - var message = 'testing'; - var scope = { - a: 1 - }; - var obj = {}; - var logged = false; - var log = function(msg){ - msg.should.equal(message); - logged.should.equal(false); - logged = true; - }; - deprecated.field(message, log, obj, 'a', 123); - - obj.a = 1234; - logged.should.equal(true); - done(); - }); -}); \ No newline at end of file diff --git a/node_modules/deprecated/test/method.js b/node_modules/deprecated/test/method.js deleted file mode 100644 index 615ba94..0000000 --- a/node_modules/deprecated/test/method.js +++ /dev/null @@ -1,32 +0,0 @@ -var deprecated = require('../'); -var should = require('should'); -require('mocha'); - -describe('method()', function() { - it('should return a wrapped function that logs once', function(done) { - var message = 'testing'; - var scope = { - a: 1 - }; - var logged = false; - var log = function(msg){ - msg.should.equal(message); - logged.should.equal(false); - logged = true; - }; - var fn = deprecated.method(message, log, function(one, two){ - this.should.equal(scope); - one.should.equal(1); - two.should.equal(2); - return one+two; - }); - - fn.bind(scope)(1,2).should.equal(3); - fn.bind(scope)(1,2).should.equal(3); - fn.bind(scope)(1,2).should.equal(3); - fn.bind(scope)(1,2).should.equal(3); - - logged.should.equal(true); - done(); - }); -}); \ No newline at end of file diff --git a/node_modules/detect-file/LICENSE b/node_modules/detect-file/LICENSE deleted file mode 100644 index 0fdaef2..0000000 --- a/node_modules/detect-file/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016, . - -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/detect-file/README.md b/node_modules/detect-file/README.md deleted file mode 100644 index e5691dd..0000000 --- a/node_modules/detect-file/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# detect-file [![NPM version](https://img.shields.io/npm/v/detect-file.svg?style=flat)](https://www.npmjs.com/package/detect-file) [![NPM downloads](https://img.shields.io/npm/dm/detect-file.svg?style=flat)](https://npmjs.org/package/detect-file) [![Build Status](https://img.shields.io/travis/doowb/detect-file.svg?style=flat)](https://travis-ci.org/doowb/detect-file) - -Detect if a filepath exists and resolves the full filepath. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save detect-file -``` - -## Usage - -```js -var detect = require('detect-file'); -``` - -## API - -### [detect](index.js#L34) - -Resolve the given `filepath` if it exists. - -**Params** - -* `filepath` **{String}**: filepath to detect. -* `options` **{Object}**: Additional options. -* `options.nocase` **{Boolean}**: Set this to `true` force case-insensitive filename checks. This is useful on case sensitive file systems. -* `returns` **{String}**: Returns the resolved filepath if it exists, otherwise returns `null`. - -**Example** - -```js -var res = detect('package.json'); -console.log(res); -//=> "package.json" - -var res = detect('fake-file.json'); -console.log(res) -//=> null -``` - -## Related projects - -You might also be interested in these projects: - -[fs-exists-sync](https://www.npmjs.com/package/fs-exists-sync): Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences… [more](https://github.com/jonschlinkert/fs-exists-sync) | [homepage](https://github.com/jonschlinkert/fs-exists-sync "Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.") - -## Contributing - -This document was generated by [verb-readme-generator](https://github.com/verbose/verb-readme-generator) (a [verb](https://github.com/verbose/verb) generator), please don't edit directly. Any changes to the readme must be made in [.verb.md](.verb.md). See [Building Docs](#building-docs). - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -Or visit the [verb-readme-generator](https://github.com/verbose/verb-readme-generator) project to submit bug reports or pull requests for the readme layout template. - -## Building docs - -_(This document was generated by [verb-readme-generator](https://github.com/verbose/verb-readme-generator) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -Generate readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-readme-generator && verb -``` - -## Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -## Author - -**Brian Woodward** - -* [github/doowb](https://github.com/doowb) -* [twitter/doowb](http://twitter.com/doowb) - -## License - -Copyright © 2016, [Brian Woodward](https://github.com/doowb). -Released under the [MIT license](https://github.com/doowb/detect-file/blob/master/LICENSE). - -*** - -_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 06, 2016._ \ No newline at end of file diff --git a/node_modules/detect-file/index.js b/node_modules/detect-file/index.js deleted file mode 100644 index 16f0b0f..0000000 --- a/node_modules/detect-file/index.js +++ /dev/null @@ -1,110 +0,0 @@ -/*! - * detect-file (https://github.com/doowb/detect-file) - * - * Copyright (c) 2016, Brian Woodward. - * Licensed under the MIT License. - */ - -'use strict'; - -var fs = require('fs'); -var path = require('path'); -var exists = require('fs-exists-sync'); - -/** - * Resolve the given `filepath` if it exists. - * - * ```js - * var res = detect('package.json'); - * console.log(res); - * //=> "package.json" - * - * var res = detect('fake-file.json'); - * console.log(res) - * //=> null - * ``` - * - * @param {String} `filepath` filepath to detect. - * @param {Object} `options` Additional options. - * @param {Boolean} `options.nocase` Set this to `true` force case-insensitive filename checks. This is useful on case sensitive file systems. - * @return {String} Returns the resolved filepath if it exists, otherwise returns `null`. - * @api public - */ - -module.exports = function detect(filepath, options) { - if (!filepath || (typeof filepath !== 'string')) { - return null; - } - if (exists(filepath)) { - return path.resolve(filepath); - } - - options = options || {}; - if (options.nocase === true) { - return nocase(filepath); - } - return null; -}; - -/** - * Check if the filepath exists by falling back to reading in the entire directory. - * Returns the real filepath (for case sensitive file systems) if found. - * - * @param {String} `filepath` filepath to check. - * @return {String} Returns found filepath if exists, otherwise null. - */ - -function nocase(filepath) { - filepath = path.resolve(filepath); - var res = tryReaddir(filepath); - if (res === null) { - return null; - } - - // "filepath" is a directory, an error would be - // thrown if it doesn't exist. if we're here, it exists - if (res.path === filepath) { - return res.path; - } - - // "filepath" is not a directory - // compare against upper case later - // see https://nodejs.org/en/docs/guides/working-with-different-filesystems/ - var upper = filepath.toUpperCase(); - var len = res.files.length; - var idx = -1; - - while (++idx < len) { - var fp = path.resolve(res.path, res.files[idx]); - if (filepath === fp || upper === fp) { - return fp; - } - var fpUpper = fp.toUpperCase(); - if (filepath === fpUpper || upper === fpUpper) { - return fp; - } - } - - return null; -} - -/** - * Try to read the filepath as a directory first, then fallback to the filepath's dirname. - * - * @param {String} `filepath` path of the directory to read. - * @return {Object} Object containing `path` and `files` if succesful. Otherwise, null. - */ - -function tryReaddir(filepath) { - var ctx = { path: filepath, files: [] }; - try { - ctx.files = fs.readdirSync(filepath); - return ctx; - } catch (err) {} - try { - ctx.path = path.dirname(filepath); - ctx.files = fs.readdirSync(ctx.path); - return ctx; - } catch (err) {} - return null; -} diff --git a/node_modules/detect-file/package.json b/node_modules/detect-file/package.json deleted file mode 100644 index 49cdc01..0000000 --- a/node_modules/detect-file/package.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "detect-file@^0.1.0", - "scope": null, - "escapedName": "detect-file", - "name": "detect-file", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/findup-sync" - ] - ], - "_from": "detect-file@>=0.1.0 <0.2.0", - "_id": "detect-file@0.1.0", - "_inCache": true, - "_location": "/detect-file", - "_nodeVersion": "5.1.1", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/detect-file-0.1.0.tgz_1467841748733_0.7613796112127602" - }, - "_npmUser": { - "name": "doowb", - "email": "brian.woodward@gmail.com" - }, - "_npmVersion": "3.7.5", - "_phantomChildren": {}, - "_requested": { - "raw": "detect-file@^0.1.0", - "scope": null, - "escapedName": "detect-file", - "name": "detect-file", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/findup-sync" - ], - "_resolved": "https://registry.npmjs.org/detect-file/-/detect-file-0.1.0.tgz", - "_shasum": "4935dedfd9488648e006b0129566e9386711ea63", - "_shrinkwrap": null, - "_spec": "detect-file@^0.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/findup-sync", - "author": { - "name": "Brian Woodward", - "url": "https://github.com/doowb" - }, - "bugs": { - "url": "https://github.com/doowb/detect-file/issues" - }, - "dependencies": { - "fs-exists-sync": "^0.1.0" - }, - "description": "Detect if a filepath exists and resolves the full filepath.", - "devDependencies": { - "gulp-format-md": "*", - "mocha": "*" - }, - "directories": {}, - "dist": { - "shasum": "4935dedfd9488648e006b0129566e9386711ea63", - "tarball": "https://registry.npmjs.org/detect-file/-/detect-file-0.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "0e4111c071470ce4be0804c01a0248331418f8c6", - "homepage": "https://github.com/doowb/detect-file", - "keywords": [], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], - "name": "detect-file", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/doowb/detect-file.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "layout": "default", - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "fs-exists-sync" - ] - }, - "reflinks": [ - "verb", - "verb-readme-generator" - ] - }, - "version": "0.1.0" -} diff --git a/node_modules/detect-indent/cli.js b/node_modules/detect-indent/cli.js deleted file mode 100755 index 0fb804e..0000000 --- a/node_modules/detect-indent/cli.js +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env node -'use strict'; -var fs = require('fs'); -var stdin = require('get-stdin'); -var argv = require('minimist')(process.argv.slice(2)); -var pkg = require('./package.json'); -var detectIndent = require('./'); -var input = argv._[0]; - -function help() { - console.log([ - '', - ' ' + pkg.description, - '', - ' Usage', - ' detect-indent ', - ' echo | detect-indent', - '', - ' Example', - ' echo \' foo\\n bar\' | detect-indent | wc --chars', - ' 2' - ].join('\n')); -} - -function init(data) { - var indent = detectIndent(data).indent; - - if (indent !== null) { - process.stdout.write(indent); - } else { - console.error('Indentation could not be detected'); - process.exit(2); - } -} - -if (argv.help) { - help(); - return; -} - -if (argv.version) { - console.log(pkg.version); - return; -} - -if (process.stdin.isTTY) { - if (!input) { - help(); - return; - } - - init(fs.readFileSync(input, 'utf8')); -} else { - stdin(init); -} diff --git a/node_modules/detect-indent/index.js b/node_modules/detect-indent/index.js deleted file mode 100644 index 014d922..0000000 --- a/node_modules/detect-indent/index.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; - -// detect either spaces or tabs but not both to properly handle tabs -// for indentation and spaces for alignment -var INDENT_RE = /^(?:( )+|\t+)/; - -var repeating = require('repeating'); - -module.exports = function (str) { - if (typeof str !== 'string') { - throw new TypeError('Expected a string'); - } - - // used to if tabs or spaces are the most used - var t = 0; - var s = 0; - - // remember the indentation used for the previous line - var prev = 0; - - // remember how much a given indentation size was used - var indents = {}; - - str.split(/\n/g).forEach(function (line) { - if (!line) { - // ignore empty lines - return; - } - - var matches = line.match(INDENT_RE); - - var indent; - if (!matches) { - indent = 0; - } else { - indent = matches[0].length; - - if (matches[1]) { - // spaces were used - s++; - } else { - // tabs were used - t++; - } - } - - var diff = Math.abs(indent - prev); - prev = indent; - - if (diff) { - // an indent or deindent has been detected - indents[diff] = (indents[diff] || 0) + 1; - } - }); - - // find most frequent indentation - var amount = 0; - var max = 0; - var n; - for (var diff in indents) { - n = indents[diff]; - if (n > max) { - max = n; - amount = +diff; - } - } - - var type; - var actual; - if (!amount) { - type = null; - actual = ''; - } else if (s >= t) { - type = 'space'; - actual = repeating(' ', amount); - } else { - type = 'tab'; - actual = repeating('\t', amount); - } - - return { - amount: amount, - type: type, - indent: actual - }; -}; diff --git a/node_modules/detect-indent/node_modules/.bin/repeating b/node_modules/detect-indent/node_modules/.bin/repeating deleted file mode 120000 index cdedec3..0000000 --- a/node_modules/detect-indent/node_modules/.bin/repeating +++ /dev/null @@ -1 +0,0 @@ -../repeating/cli.js \ No newline at end of file diff --git a/node_modules/detect-indent/node_modules/get-stdin/index.js b/node_modules/detect-indent/node_modules/get-stdin/index.js deleted file mode 100644 index 4301faf..0000000 --- a/node_modules/detect-indent/node_modules/get-stdin/index.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; - -module.exports = function (cb) { - var ret = ''; - - if (process.stdin.isTTY) { - cb(''); - return; - } - - process.stdin.setEncoding('utf8'); - - process.stdin.on('data', function (chunk) { - ret += chunk; - }); - - process.stdin.on('end', function () { - cb(ret); - }); -}; - -module.exports.buffer = function (cb) { - var ret = []; - var len = 0; - - if (process.stdin.isTTY) { - cb(new Buffer('')); - return; - } - - process.stdin.on('data', function (chunk) { - ret.push(chunk); - len += chunk.length; - }); - - process.stdin.on('end', function () { - cb(Buffer.concat(ret, len)); - }); -}; diff --git a/node_modules/detect-indent/node_modules/get-stdin/package.json b/node_modules/detect-indent/node_modules/get-stdin/package.json deleted file mode 100644 index 5fb3f4c..0000000 --- a/node_modules/detect-indent/node_modules/get-stdin/package.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "get-stdin@^3.0.0", - "scope": null, - "escapedName": "get-stdin", - "name": "get-stdin", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/detect-indent" - ] - ], - "_from": "get-stdin@>=3.0.0 <4.0.0", - "_id": "get-stdin@3.0.2", - "_inCache": true, - "_location": "/detect-indent/get-stdin", - "_nodeVersion": "0.10.32", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.1.5", - "_phantomChildren": {}, - "_requested": { - "raw": "get-stdin@^3.0.0", - "scope": null, - "escapedName": "get-stdin", - "name": "get-stdin", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/detect-indent" - ], - "_resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-3.0.2.tgz", - "_shasum": "c1ced24b9039b38ded85bdf161e57713b6dd4abe", - "_shrinkwrap": null, - "_spec": "get-stdin@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/detect-indent", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/get-stdin/issues" - }, - "dependencies": {}, - "description": "Easier stdin", - "devDependencies": { - "ava": "0.0.4", - "buffer-equal": "0.0.1" - }, - "directories": {}, - "dist": { - "shasum": "c1ced24b9039b38ded85bdf161e57713b6dd4abe", - "tarball": "https://registry.npmjs.org/get-stdin/-/get-stdin-3.0.2.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "e0fcd0d37027d6832011b4ee08ebb6b987dab4d6", - "homepage": "https://github.com/sindresorhus/get-stdin", - "keywords": [ - "std", - "stdin", - "stdio", - "concat", - "buffer", - "stream", - "process", - "stream" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "get-stdin", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/get-stdin.git" - }, - "scripts": { - "test": "node test.js && echo unicorns | node test2.js" - }, - "version": "3.0.2" -} diff --git a/node_modules/detect-indent/node_modules/get-stdin/readme.md b/node_modules/detect-indent/node_modules/get-stdin/readme.md deleted file mode 100644 index bc1d32a..0000000 --- a/node_modules/detect-indent/node_modules/get-stdin/readme.md +++ /dev/null @@ -1,44 +0,0 @@ -# get-stdin [![Build Status](https://travis-ci.org/sindresorhus/get-stdin.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stdin) - -> Easier stdin - - -## Install - -```sh -$ npm install --save get-stdin -``` - - -## Usage - -```js -// example.js -var stdin = require('get-stdin'); - -stdin(function (data) { - console.log(data); - //=> unicorns -}); -``` - -```sh -$ echo unicorns | node example.js -unicorns -``` - - -## API - -### stdin(callback) - -Get `stdin` as a string. - -### stdin.buffer(callback) - -Get `stdin` as a buffer. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/detect-indent/node_modules/repeating/cli.js b/node_modules/detect-indent/node_modules/repeating/cli.js deleted file mode 100755 index 9bb87d4..0000000 --- a/node_modules/detect-indent/node_modules/repeating/cli.js +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env node -'use strict'; -var pkg = require('./package.json'); -var repeating = require('./'); -var argv = process.argv.slice(2); - -function help() { - console.log([ - '', - ' ' + pkg.description, - '', - ' Usage', - ' $ repeating ', - '', - ' Example', - ' $ repeating \'unicorn \' 2', - ' unicorn unicorn' - ].join('\n')); -} - -if (process.argv.indexOf('--help') !== -1) { - help(); - return; -} - -if (process.argv.indexOf('--version') !== -1) { - console.log(pkg.version); - return; -} - -if (!argv[1]) { - console.error('You have to define how many times to repeat the string.'); - process.exit(1); -} - -console.log(repeating(argv[0], Number(argv[1]))); diff --git a/node_modules/detect-indent/node_modules/repeating/index.js b/node_modules/detect-indent/node_modules/repeating/index.js deleted file mode 100644 index 2d000a8..0000000 --- a/node_modules/detect-indent/node_modules/repeating/index.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -var isFinite = require('is-finite'); - -module.exports = function (str, n) { - if (typeof str !== 'string') { - throw new TypeError('Expected a string as the first argument'); - } - - if (n < 0 || !isFinite(n)) { - throw new TypeError('Expected a finite positive number'); - } - - var ret = ''; - - do { - if (n & 1) { - ret += str; - } - - str += str; - } while (n = n >> 1); - - return ret; -}; diff --git a/node_modules/detect-indent/node_modules/repeating/license b/node_modules/detect-indent/node_modules/repeating/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/detect-indent/node_modules/repeating/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/detect-indent/node_modules/repeating/package.json b/node_modules/detect-indent/node_modules/repeating/package.json deleted file mode 100644 index d54cbbe..0000000 --- a/node_modules/detect-indent/node_modules/repeating/package.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "repeating@^1.1.0", - "scope": null, - "escapedName": "repeating", - "name": "repeating", - "rawSpec": "^1.1.0", - "spec": ">=1.1.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/detect-indent" - ] - ], - "_from": "repeating@>=1.1.0 <2.0.0", - "_id": "repeating@1.1.3", - "_inCache": true, - "_location": "/detect-indent/repeating", - "_nodeVersion": "0.12.4", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.10.1", - "_phantomChildren": {}, - "_requested": { - "raw": "repeating@^1.1.0", - "scope": null, - "escapedName": "repeating", - "name": "repeating", - "rawSpec": "^1.1.0", - "spec": ">=1.1.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/detect-indent" - ], - "_resolved": "https://registry.npmjs.org/repeating/-/repeating-1.1.3.tgz", - "_shasum": "3d4114218877537494f97f77f9785fab810fa4ac", - "_shrinkwrap": null, - "_spec": "repeating@^1.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/detect-indent", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bin": { - "repeating": "cli.js" - }, - "bugs": { - "url": "https://github.com/sindresorhus/repeating/issues" - }, - "dependencies": { - "is-finite": "^1.0.0" - }, - "description": "Repeat a string - fast", - "devDependencies": { - "ava": "0.0.4" - }, - "directories": {}, - "dist": { - "shasum": "3d4114218877537494f97f77f9785fab810fa4ac", - "tarball": "https://registry.npmjs.org/repeating/-/repeating-1.1.3.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js", - "cli.js" - ], - "gitHead": "23e93be864952600940d29c8d67f2b9a09d48d81", - "homepage": "https://github.com/sindresorhus/repeating", - "keywords": [ - "cli-app", - "cli", - "bin", - "repeat", - "repeating", - "string", - "str", - "text", - "fill" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "repeating", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/repeating.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.1.3" -} diff --git a/node_modules/detect-indent/node_modules/repeating/readme.md b/node_modules/detect-indent/node_modules/repeating/readme.md deleted file mode 100644 index 4cd8667..0000000 --- a/node_modules/detect-indent/node_modules/repeating/readme.md +++ /dev/null @@ -1,40 +0,0 @@ -# repeating [![Build Status](https://travis-ci.org/sindresorhus/repeating.svg?branch=master)](https://travis-ci.org/sindresorhus/repeating) - -> Repeat a string - fast - - -## Usage - -```sh -$ npm install --save repeating -``` - -```js -var repeating = require('repeating'); - -repeating('unicorn ', 100); -//=> unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn -``` - - -## CLI - -```sh -$ npm install --global repeating -``` - -``` -$ repeating --help - - Usage - repeating - - Example - repeating 'unicorn ' 2 - unicorn unicorn -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/detect-indent/package.json b/node_modules/detect-indent/package.json deleted file mode 100644 index 28a1278..0000000 --- a/node_modules/detect-indent/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "detect-indent@^2.0.0", - "scope": null, - "escapedName": "detect-indent", - "name": "detect-indent", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-json-editor" - ] - ], - "_from": "detect-indent@>=2.0.0 <3.0.0", - "_id": "detect-indent@2.0.0", - "_inCache": true, - "_location": "/detect-indent", - "_nodeVersion": "0.10.32", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.1.4", - "_phantomChildren": { - "is-finite": "1.0.2" - }, - "_requested": { - "raw": "detect-indent@^2.0.0", - "scope": null, - "escapedName": "detect-indent", - "name": "detect-indent", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-json-editor" - ], - "_resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-2.0.0.tgz", - "_shasum": "720ff51e4d97b76884f6bf57292348b13dfde939", - "_shrinkwrap": null, - "_spec": "detect-indent@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-json-editor", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" - }, - "bin": { - "detect-indent": "cli.js" - }, - "bugs": { - "url": "https://github.com/sindresorhus/detect-indent/issues" - }, - "dependencies": { - "get-stdin": "^3.0.0", - "minimist": "^1.1.0", - "repeating": "^1.1.0" - }, - "description": "Detect the indentation of code", - "devDependencies": { - "mocha": "*" - }, - "directories": {}, - "dist": { - "shasum": "720ff51e4d97b76884f6bf57292348b13dfde939", - "tarball": "https://registry.npmjs.org/detect-indent/-/detect-indent-2.0.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js", - "cli.js" - ], - "gitHead": "401f402f06ecc897ba6726440ec93375673d4cc0", - "homepage": "https://github.com/sindresorhus/detect-indent", - "keywords": [ - "cli", - "bin", - "indent", - "indentation", - "detect", - "infer", - "identify", - "code", - "string", - "text", - "source", - "space", - "tab" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "detect-indent", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/detect-indent.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "2.0.0" -} diff --git a/node_modules/detect-indent/readme.md b/node_modules/detect-indent/readme.md deleted file mode 100644 index 348adb8..0000000 --- a/node_modules/detect-indent/readme.md +++ /dev/null @@ -1,87 +0,0 @@ -# detect-indent [![Build Status](https://travis-ci.org/sindresorhus/detect-indent.svg?branch=master)](https://travis-ci.org/sindresorhus/detect-indent) - -> Detect the indentation of code - -Pass in a string of any kind of text and get the indentation. - - -## Use cases - -- Persisting the indentation when modifying a file. -- Have new content match the existing indentation. -- Setting the right indentation in your editor. - - -## Install - -```sh -$ npm install --save detect-indent -``` - - -## Usage - -```js -// modify a JSON file while persisting the indentation in Node -var fs = require('fs'); -var detectIndent = require('detect-indent'); -/* -{ - "ilove": "pizza" -} -*/ -var file = fs.readFileSync('foo.json', 'utf8'); -// tries to detect the indentation and falls back to a default if it can't -var indent = detectIndent(file).indent || ' '; -var json = JSON.parse(file); - -json.ilove = 'unicorns'; - -fs.writeFileSync('foo.json', JSON.stringify(json, null, indent)); -/* -{ - "ilove": "unicorns" -} -*/ -``` - - -## API - -Accepts a string and returns an object with stats about the indentation: - -* `amount`: {Number} the amount of indentation, e.g. `2` -* `type`: {String|Null} the type of indentation. Possible values are `tab`, `space` or `null` if no indentation is detected -* `indent`: {String} the actual indentation - - -## CLI - -```sh -$ npm install --global detect-indent -``` - -``` -$ detect-indent --help - - Usage - detect-indent - echo | detect-indent - - Example - echo ' foo\n bar' | detect-indent | wc --chars - 2 -``` - - -## Algorithm - -Look for the most common difference between two consecutive non-empty -lines. - -[Source](https://medium.com/@heatherarthur/detecting-code-indentation-eff3ed0fb56b#3918). - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/diff/README.md b/node_modules/diff/README.md deleted file mode 100644 index 1bc32d5..0000000 --- a/node_modules/diff/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# jsdiff - -[![Build Status](https://secure.travis-ci.org/kpdecker/jsdiff.png)](http://travis-ci.org/kpdecker/jsdiff) - -A javascript text differencing implementation. - -Based on the algorithm proposed in -["An O(ND) Difference Algorithm and its Variations" (Myers, 1986)](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927). - -## Installation - - npm install diff - -or - - git clone git://github.com/kpdecker/jsdiff.git - -## API - -* `JsDiff.diffChars(oldStr, newStr)` - diffs two blocks of text, comparing character by character. - - Returns a list of change objects (See below). - -* `JsDiff.diffWords(oldStr, newStr)` - diffs two blocks of text, comparing word by word. - - Returns a list of change objects (See below). - -* `JsDiff.diffLines(oldStr, newStr)` - diffs two blocks of text, comparing line by line. - - Returns a list of change objects (See below). - -* `JsDiff.diffCss(oldStr, newStr)` - diffs two blocks of text, comparing CSS tokens. - - Returns a list of change objects (See below). - -* `JsDiff.createPatch(fileName, oldStr, newStr, oldHeader, newHeader)` - creates a unified diff patch. - - Parameters: - * `fileName` : String to be output in the filename sections of the patch - * `oldStr` : Original string value - * `newStr` : New string value - * `oldHeader` : Additional information to include in the old file header - * `newHeader` : Additional information to include in thew new file header - -* `JsDiff.applyPatch(oldStr, diffStr)` - applies a unified diff patch. - - Return a string containing new version of provided data. - -* `convertChangesToXML(changes)` - converts a list of changes to a serialized XML format - -### Change Objects -Many of the methods above return change objects. These objects are consist of the following fields: - -* `value`: Text content -* `added`: True if the value was inserted into the new string -* `removed`: True of the value was removed from the old string - -Note that some cases may omit a particular flag field. Comparison on the flag fields should always be done in a truthy or falsy manner. - -## Examples - -Basic example in Node - -```js -require('colors') -var jsdiff = require('diff'); - -var one = 'beep boop'; -var other = 'beep boob blah'; - -var diff = jsdiff.diffChars(one, other); - -diff.forEach(function(part){ - // green for additions, red for deletions - // grey for common parts - var color = part.added ? 'green' : - part.removed ? 'red' : 'grey'; - process.stderr.write(part.value[color]); -}); - -console.log() -``` -Running the above program should yield - -Node Example - -Basic example in a web page - -```html -
    
    -
    -
    -```
    -
    -Open the above .html file in a browser and you should see
    -
    -Node Example
    -
    -**[Full online demo](http://kpdecker.github.com/jsdiff)**
    -
    -## License
    -
    -Software License Agreement (BSD License)
    -
    -Copyright (c) 2009-2011, Kevin Decker kpdecker@gmail.com
    -
    -All rights reserved.
    -
    -Redistribution and use of this software 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 Kevin Decker 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.
    -
    -
    -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/kpdecker/jsdiff/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
    -
    diff --git a/node_modules/diff/diff.js b/node_modules/diff/diff.js
    deleted file mode 100644
    index c084609..0000000
    --- a/node_modules/diff/diff.js
    +++ /dev/null
    @@ -1,369 +0,0 @@
    -/* See LICENSE file for terms of use */
    -
    -/*
    - * Text diff implementation.
    - *
    - * This library supports the following APIS:
    - * JsDiff.diffChars: Character by character diff
    - * JsDiff.diffWords: Word (as defined by \b regex) diff which ignores whitespace
    - * JsDiff.diffLines: Line based diff
    - *
    - * JsDiff.diffCss: Diff targeted at CSS content
    - *
    - * These methods are based on the implementation proposed in
    - * "An O(ND) Difference Algorithm and its Variations" (Myers, 1986).
    - * http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927
    - */
    -var JsDiff = (function() {
    -  /*jshint maxparams: 5*/
    -  function clonePath(path) {
    -    return { newPos: path.newPos, components: path.components.slice(0) };
    -  }
    -  function removeEmpty(array) {
    -    var ret = [];
    -    for (var i = 0; i < array.length; i++) {
    -      if (array[i]) {
    -        ret.push(array[i]);
    -      }
    -    }
    -    return ret;
    -  }
    -  function escapeHTML(s) {
    -    var n = s;
    -    n = n.replace(/&/g, '&');
    -    n = n.replace(//g, '>');
    -    n = n.replace(/"/g, '"');
    -
    -    return n;
    -  }
    -
    -  var Diff = function(ignoreWhitespace) {
    -    this.ignoreWhitespace = ignoreWhitespace;
    -  };
    -  Diff.prototype = {
    -      diff: function(oldString, newString) {
    -        // Handle the identity case (this is due to unrolling editLength == 0
    -        if (newString === oldString) {
    -          return [{ value: newString }];
    -        }
    -        if (!newString) {
    -          return [{ value: oldString, removed: true }];
    -        }
    -        if (!oldString) {
    -          return [{ value: newString, added: true }];
    -        }
    -
    -        newString = this.tokenize(newString);
    -        oldString = this.tokenize(oldString);
    -
    -        var newLen = newString.length, oldLen = oldString.length;
    -        var maxEditLength = newLen + oldLen;
    -        var bestPath = [{ newPos: -1, components: [] }];
    -
    -        // Seed editLength = 0
    -        var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);
    -        if (bestPath[0].newPos+1 >= newLen && oldPos+1 >= oldLen) {
    -          return bestPath[0].components;
    -        }
    -
    -        for (var editLength = 1; editLength <= maxEditLength; editLength++) {
    -          for (var diagonalPath = -1*editLength; diagonalPath <= editLength; diagonalPath+=2) {
    -            var basePath;
    -            var addPath = bestPath[diagonalPath-1],
    -                removePath = bestPath[diagonalPath+1];
    -            oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;
    -            if (addPath) {
    -              // No one else is going to attempt to use this value, clear it
    -              bestPath[diagonalPath-1] = undefined;
    -            }
    -
    -            var canAdd = addPath && addPath.newPos+1 < newLen;
    -            var canRemove = removePath && 0 <= oldPos && oldPos < oldLen;
    -            if (!canAdd && !canRemove) {
    -              bestPath[diagonalPath] = undefined;
    -              continue;
    -            }
    -
    -            // Select the diagonal that we want to branch from. We select the prior
    -            // path whose position in the new string is the farthest from the origin
    -            // and does not pass the bounds of the diff graph
    -            if (!canAdd || (canRemove && addPath.newPos < removePath.newPos)) {
    -              basePath = clonePath(removePath);
    -              this.pushComponent(basePath.components, oldString[oldPos], undefined, true);
    -            } else {
    -              basePath = clonePath(addPath);
    -              basePath.newPos++;
    -              this.pushComponent(basePath.components, newString[basePath.newPos], true, undefined);
    -            }
    -
    -            var oldPos = this.extractCommon(basePath, newString, oldString, diagonalPath);
    -
    -            if (basePath.newPos+1 >= newLen && oldPos+1 >= oldLen) {
    -              return basePath.components;
    -            } else {
    -              bestPath[diagonalPath] = basePath;
    -            }
    -          }
    -        }
    -      },
    -
    -      pushComponent: function(components, value, added, removed) {
    -        var last = components[components.length-1];
    -        if (last && last.added === added && last.removed === removed) {
    -          // We need to clone here as the component clone operation is just
    -          // as shallow array clone
    -          components[components.length-1] =
    -            {value: this.join(last.value, value), added: added, removed: removed };
    -        } else {
    -          components.push({value: value, added: added, removed: removed });
    -        }
    -      },
    -      extractCommon: function(basePath, newString, oldString, diagonalPath) {
    -        var newLen = newString.length,
    -            oldLen = oldString.length,
    -            newPos = basePath.newPos,
    -            oldPos = newPos - diagonalPath;
    -        while (newPos+1 < newLen && oldPos+1 < oldLen && this.equals(newString[newPos+1], oldString[oldPos+1])) {
    -          newPos++;
    -          oldPos++;
    -
    -          this.pushComponent(basePath.components, newString[newPos], undefined, undefined);
    -        }
    -        basePath.newPos = newPos;
    -        return oldPos;
    -      },
    -
    -      equals: function(left, right) {
    -        var reWhitespace = /\S/;
    -        if (this.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right)) {
    -          return true;
    -        } else {
    -          return left === right;
    -        }
    -      },
    -      join: function(left, right) {
    -        return left + right;
    -      },
    -      tokenize: function(value) {
    -        return value;
    -      }
    -  };
    -
    -  var CharDiff = new Diff();
    -
    -  var WordDiff = new Diff(true);
    -  var WordWithSpaceDiff = new Diff();
    -  WordDiff.tokenize = WordWithSpaceDiff.tokenize = function(value) {
    -    return removeEmpty(value.split(/(\s+|\b)/));
    -  };
    -
    -  var CssDiff = new Diff(true);
    -  CssDiff.tokenize = function(value) {
    -    return removeEmpty(value.split(/([{}:;,]|\s+)/));
    -  };
    -
    -  var LineDiff = new Diff();
    -  LineDiff.tokenize = function(value) {
    -    var retLines = [],
    -        lines = value.split(/^/m);
    -
    -    for(var i = 0; i < lines.length; i++) {
    -      var line = lines[i],
    -          lastLine = lines[i - 1];
    -
    -      // Merge lines that may contain windows new lines
    -      if (line == '\n' && lastLine && lastLine[lastLine.length - 1] === '\r') {
    -        retLines[retLines.length - 1] += '\n';
    -      } else if (line) {
    -        retLines.push(line);
    -      }
    -    }
    -
    -    return retLines;
    -  };
    -
    -  return {
    -    Diff: Diff,
    -
    -    diffChars: function(oldStr, newStr) { return CharDiff.diff(oldStr, newStr); },
    -    diffWords: function(oldStr, newStr) { return WordDiff.diff(oldStr, newStr); },
    -    diffWordsWithSpace: function(oldStr, newStr) { return WordWithSpaceDiff.diff(oldStr, newStr); },
    -    diffLines: function(oldStr, newStr) { return LineDiff.diff(oldStr, newStr); },
    -
    -    diffCss: function(oldStr, newStr) { return CssDiff.diff(oldStr, newStr); },
    -
    -    createPatch: function(fileName, oldStr, newStr, oldHeader, newHeader) {
    -      var ret = [];
    -
    -      ret.push('Index: ' + fileName);
    -      ret.push('===================================================================');
    -      ret.push('--- ' + fileName + (typeof oldHeader === 'undefined' ? '' : '\t' + oldHeader));
    -      ret.push('+++ ' + fileName + (typeof newHeader === 'undefined' ? '' : '\t' + newHeader));
    -
    -      var diff = LineDiff.diff(oldStr, newStr);
    -      if (!diff[diff.length-1].value) {
    -        diff.pop();   // Remove trailing newline add
    -      }
    -      diff.push({value: '', lines: []});   // Append an empty value to make cleanup easier
    -
    -      function contextLines(lines) {
    -        return lines.map(function(entry) { return ' ' + entry; });
    -      }
    -      function eofNL(curRange, i, current) {
    -        var last = diff[diff.length-2],
    -            isLast = i === diff.length-2,
    -            isLastOfType = i === diff.length-3 && (current.added !== last.added || current.removed !== last.removed);
    -
    -        // Figure out if this is the last line for the given file and missing NL
    -        if (!/\n$/.test(current.value) && (isLast || isLastOfType)) {
    -          curRange.push('\\ No newline at end of file');
    -        }
    -      }
    -
    -      var oldRangeStart = 0, newRangeStart = 0, curRange = [],
    -          oldLine = 1, newLine = 1;
    -      for (var i = 0; i < diff.length; i++) {
    -        var current = diff[i],
    -            lines = current.lines || current.value.replace(/\n$/, '').split('\n');
    -        current.lines = lines;
    -
    -        if (current.added || current.removed) {
    -          if (!oldRangeStart) {
    -            var prev = diff[i-1];
    -            oldRangeStart = oldLine;
    -            newRangeStart = newLine;
    -
    -            if (prev) {
    -              curRange = contextLines(prev.lines.slice(-4));
    -              oldRangeStart -= curRange.length;
    -              newRangeStart -= curRange.length;
    -            }
    -          }
    -          curRange.push.apply(curRange, lines.map(function(entry) { return (current.added?'+':'-') + entry; }));
    -          eofNL(curRange, i, current);
    -
    -          if (current.added) {
    -            newLine += lines.length;
    -          } else {
    -            oldLine += lines.length;
    -          }
    -        } else {
    -          if (oldRangeStart) {
    -            // Close out any changes that have been output (or join overlapping)
    -            if (lines.length <= 8 && i < diff.length-2) {
    -              // Overlapping
    -              curRange.push.apply(curRange, contextLines(lines));
    -            } else {
    -              // end the range and output
    -              var contextSize = Math.min(lines.length, 4);
    -              ret.push(
    -                  '@@ -' + oldRangeStart + ',' + (oldLine-oldRangeStart+contextSize)
    -                  + ' +' + newRangeStart + ',' + (newLine-newRangeStart+contextSize)
    -                  + ' @@');
    -              ret.push.apply(ret, curRange);
    -              ret.push.apply(ret, contextLines(lines.slice(0, contextSize)));
    -              if (lines.length <= 4) {
    -                eofNL(ret, i, current);
    -              }
    -
    -              oldRangeStart = 0;  newRangeStart = 0; curRange = [];
    -            }
    -          }
    -          oldLine += lines.length;
    -          newLine += lines.length;
    -        }
    -      }
    -
    -      return ret.join('\n') + '\n';
    -    },
    -
    -    applyPatch: function(oldStr, uniDiff) {
    -      var diffstr = uniDiff.split('\n');
    -      var diff = [];
    -      var remEOFNL = false,
    -          addEOFNL = false;
    -
    -      for (var i = (diffstr[0][0]==='I'?4:0); i < diffstr.length; i++) {
    -        if(diffstr[i][0] === '@') {
    -          var meh = diffstr[i].split(/@@ -(\d+),(\d+) \+(\d+),(\d+) @@/);
    -          diff.unshift({
    -            start:meh[3],
    -            oldlength:meh[2],
    -            oldlines:[],
    -            newlength:meh[4],
    -            newlines:[]
    -          });
    -        } else if(diffstr[i][0] === '+') {
    -          diff[0].newlines.push(diffstr[i].substr(1));
    -        } else if(diffstr[i][0] === '-') {
    -          diff[0].oldlines.push(diffstr[i].substr(1));
    -        } else if(diffstr[i][0] === ' ') {
    -          diff[0].newlines.push(diffstr[i].substr(1));
    -          diff[0].oldlines.push(diffstr[i].substr(1));
    -        } else if(diffstr[i][0] === '\\') {
    -          if (diffstr[i-1][0] === '+') {
    -            remEOFNL = true;
    -          } else if(diffstr[i-1][0] === '-') {
    -            addEOFNL = true;
    -          }
    -        }
    -      }
    -
    -      var str = oldStr.split('\n');
    -      for (var i = diff.length - 1; i >= 0; i--) {
    -        var d = diff[i];
    -        for (var j = 0; j < d.oldlength; j++) {
    -          if(str[d.start-1+j] !== d.oldlines[j]) {
    -            return false;
    -          }
    -        }
    -        Array.prototype.splice.apply(str,[d.start-1,+d.oldlength].concat(d.newlines));
    -      }
    -
    -      if (remEOFNL) {
    -        while (!str[str.length-1]) {
    -          str.pop();
    -        }
    -      } else if (addEOFNL) {
    -        str.push('');
    -      }
    -      return str.join('\n');
    -    },
    -
    -    convertChangesToXML: function(changes){
    -      var ret = [];
    -      for ( var i = 0; i < changes.length; i++) {
    -        var change = changes[i];
    -        if (change.added) {
    -          ret.push('');
    -        } else if (change.removed) {
    -          ret.push('');
    -        }
    -
    -        ret.push(escapeHTML(change.value));
    -
    -        if (change.added) {
    -          ret.push('');
    -        } else if (change.removed) {
    -          ret.push('');
    -        }
    -      }
    -      return ret.join('');
    -    },
    -
    -    // See: http://code.google.com/p/google-diff-match-patch/wiki/API
    -    convertChangesToDMP: function(changes){
    -      var ret = [], change;
    -      for ( var i = 0; i < changes.length; i++) {
    -        change = changes[i];
    -        ret.push([(change.added ? 1 : change.removed ? -1 : 0), change.value]);
    -      }
    -      return ret;
    -    }
    -  };
    -})();
    -
    -if (typeof module !== 'undefined') {
    -    module.exports = JsDiff;
    -}
    diff --git a/node_modules/diff/package.json b/node_modules/diff/package.json
    deleted file mode 100644
    index 7e64936..0000000
    --- a/node_modules/diff/package.json
    +++ /dev/null
    @@ -1,94 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "diff@~1.0.8",
    -        "scope": null,
    -        "escapedName": "diff",
    -        "name": "diff",
    -        "rawSpec": "~1.0.8",
    -        "spec": ">=1.0.8 <1.1.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/gulp-dedupe"
    -    ]
    -  ],
    -  "_from": "diff@>=1.0.8 <1.1.0",
    -  "_id": "diff@1.0.8",
    -  "_inCache": true,
    -  "_location": "/diff",
    -  "_npmUser": {
    -    "name": "kpdecker",
    -    "email": "kpdecker@gmail.com"
    -  },
    -  "_npmVersion": "1.3.11",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "diff@~1.0.8",
    -    "scope": null,
    -    "escapedName": "diff",
    -    "name": "diff",
    -    "rawSpec": "~1.0.8",
    -    "spec": ">=1.0.8 <1.1.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/gulp-dedupe"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/diff/-/diff-1.0.8.tgz",
    -  "_shasum": "343276308ec991b7bc82267ed55bc1411f971666",
    -  "_shrinkwrap": null,
    -  "_spec": "diff@~1.0.8",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-dedupe",
    -  "bugs": {
    -    "url": "http://github.com/kpdecker/jsdiff/issues",
    -    "email": "kpdecker@gmail.com"
    -  },
    -  "dependencies": {},
    -  "description": "A javascript text diff implementation.",
    -  "devDependencies": {
    -    "colors": "~0.6.2",
    -    "mocha": "~1.6",
    -    "should": "~1.2"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "343276308ec991b7bc82267ed55bc1411f971666",
    -    "tarball": "https://registry.npmjs.org/diff/-/diff-1.0.8.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.3.1"
    -  },
    -  "files": [
    -    "diff.js"
    -  ],
    -  "homepage": "https://github.com/kpdecker/jsdiff#readme",
    -  "keywords": [
    -    "diff",
    -    "javascript"
    -  ],
    -  "licenses": [
    -    {
    -      "type": "BSD",
    -      "url": "http://github.com/kpdecker/jsdiff/blob/master/LICENSE"
    -    }
    -  ],
    -  "main": "./diff",
    -  "maintainers": [
    -    {
    -      "name": "kpdecker",
    -      "email": "kpdecker@gmail.com"
    -    }
    -  ],
    -  "name": "diff",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/kpdecker/jsdiff.git"
    -  },
    -  "scripts": {
    -    "test": "node_modules/.bin/mocha test/*.js"
    -  },
    -  "version": "1.0.8"
    -}
    diff --git a/node_modules/duplexer/.npmignore b/node_modules/duplexer/.npmignore
    deleted file mode 100644
    index 062c11e..0000000
    --- a/node_modules/duplexer/.npmignore
    +++ /dev/null
    @@ -1,3 +0,0 @@
    -node_modules
    -*.log
    -*.err
    \ No newline at end of file
    diff --git a/node_modules/duplexer/.travis.yml b/node_modules/duplexer/.travis.yml
    deleted file mode 100644
    index ed05f88..0000000
    --- a/node_modules/duplexer/.travis.yml
    +++ /dev/null
    @@ -1,6 +0,0 @@
    -language: node_js
    -node_js:
    -  - "0.11"
    -  - "0.10"
    -  - "0.8"
    -  - "0.6"
    diff --git a/node_modules/duplexer/LICENCE b/node_modules/duplexer/LICENCE
    deleted file mode 100644
    index a23e08a..0000000
    --- a/node_modules/duplexer/LICENCE
    +++ /dev/null
    @@ -1,19 +0,0 @@
    -Copyright (c) 2012 Raynos.
    -
    -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.
    \ No newline at end of file
    diff --git a/node_modules/duplexer/README.md b/node_modules/duplexer/README.md
    deleted file mode 100644
    index 61ff71a..0000000
    --- a/node_modules/duplexer/README.md
    +++ /dev/null
    @@ -1,47 +0,0 @@
    -# duplexer
    -
    -[![build status][1]][2] [![dependency status][3]][4]
    -
    -[![browser support][5]][6]
    -
    -Creates a duplex stream
    -
    -Taken from [event-stream][7]
    -
    -## duplex (writeStream, readStream)
    -
    -Takes a writable stream and a readable stream and makes them appear as a readable writable stream.
    -
    -It is assumed that the two streams are connected to each other in some way.
    -
    -## Example
    -
    -```js
    -var grep = cp.exec('grep Stream')
    -
    -duplex(grep.stdin, grep.stdout)
    -```
    -
    -## Installation
    -
    -`npm install duplexer`
    -
    -## Tests
    -
    -`npm test`
    -
    -## Contributors
    -
    - - Dominictarr
    - - Raynos
    - - samccone
    -
    -## MIT Licenced
    -
    -  [1]: https://secure.travis-ci.org/Raynos/duplexer.png
    -  [2]: https://travis-ci.org/Raynos/duplexer
    -  [3]: https://david-dm.org/Raynos/duplexer.png
    -  [4]: https://david-dm.org/Raynos/duplexer
    -  [5]: https://ci.testling.com/Raynos/duplexer.png
    -  [6]: https://ci.testling.com/Raynos/duplexer
    -  [7]: https://github.com/dominictarr/event-stream#duplex-writestream-readstream
    diff --git a/node_modules/duplexer/index.js b/node_modules/duplexer/index.js
    deleted file mode 100644
    index a188a21..0000000
    --- a/node_modules/duplexer/index.js
    +++ /dev/null
    @@ -1,87 +0,0 @@
    -var Stream = require("stream")
    -var writeMethods = ["write", "end", "destroy"]
    -var readMethods = ["resume", "pause"]
    -var readEvents = ["data", "close"]
    -var slice = Array.prototype.slice
    -
    -module.exports = duplex
    -
    -function forEach (arr, fn) {
    -    if (arr.forEach) {
    -        return arr.forEach(fn)
    -    }
    -
    -    for (var i = 0; i < arr.length; i++) {
    -        fn(arr[i], i)
    -    }
    -}
    -
    -function duplex(writer, reader) {
    -    var stream = new Stream()
    -    var ended = false
    -
    -    forEach(writeMethods, proxyWriter)
    -
    -    forEach(readMethods, proxyReader)
    -
    -    forEach(readEvents, proxyStream)
    -
    -    reader.on("end", handleEnd)
    -
    -    writer.on("drain", function() {
    -      stream.emit("drain")
    -    })
    -
    -    writer.on("error", reemit)
    -    reader.on("error", reemit)
    -
    -    stream.writable = writer.writable
    -    stream.readable = reader.readable
    -
    -    return stream
    -
    -    function proxyWriter(methodName) {
    -        stream[methodName] = method
    -
    -        function method() {
    -            return writer[methodName].apply(writer, arguments)
    -        }
    -    }
    -
    -    function proxyReader(methodName) {
    -        stream[methodName] = method
    -
    -        function method() {
    -            stream.emit(methodName)
    -            var func = reader[methodName]
    -            if (func) {
    -                return func.apply(reader, arguments)
    -            }
    -            reader.emit(methodName)
    -        }
    -    }
    -
    -    function proxyStream(methodName) {
    -        reader.on(methodName, reemit)
    -
    -        function reemit() {
    -            var args = slice.call(arguments)
    -            args.unshift(methodName)
    -            stream.emit.apply(stream, args)
    -        }
    -    }
    -
    -    function handleEnd() {
    -        if (ended) {
    -            return
    -        }
    -        ended = true
    -        var args = slice.call(arguments)
    -        args.unshift("end")
    -        stream.emit.apply(stream, args)
    -    }
    -
    -    function reemit(err) {
    -        stream.emit("error", err)
    -    }
    -}
    diff --git a/node_modules/duplexer/package.json b/node_modules/duplexer/package.json
    deleted file mode 100644
    index e268739..0000000
    --- a/node_modules/duplexer/package.json
    +++ /dev/null
    @@ -1,114 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "duplexer@~0.1.1",
    -        "scope": null,
    -        "escapedName": "duplexer",
    -        "name": "duplexer",
    -        "rawSpec": "~0.1.1",
    -        "spec": ">=0.1.1 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/event-stream"
    -    ]
    -  ],
    -  "_from": "duplexer@>=0.1.1 <0.2.0",
    -  "_id": "duplexer@0.1.1",
    -  "_inCache": true,
    -  "_location": "/duplexer",
    -  "_npmUser": {
    -    "name": "raynos",
    -    "email": "raynos2@gmail.com"
    -  },
    -  "_npmVersion": "1.2.18",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "duplexer@~0.1.1",
    -    "scope": null,
    -    "escapedName": "duplexer",
    -    "name": "duplexer",
    -    "rawSpec": "~0.1.1",
    -    "spec": ">=0.1.1 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/event-stream",
    -    "/stream-combiner"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz",
    -  "_shasum": "ace6ff808c1ce66b57d1ebf97977acb02334cfc1",
    -  "_shrinkwrap": null,
    -  "_spec": "duplexer@~0.1.1",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/event-stream",
    -  "author": {
    -    "name": "Raynos",
    -    "email": "raynos2@gmail.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/Raynos/duplexer/issues",
    -    "email": "raynos2@gmail.com"
    -  },
    -  "contributors": [
    -    {
    -      "name": "Jake Verbaten"
    -    }
    -  ],
    -  "dependencies": {},
    -  "description": "Creates a duplex stream",
    -  "devDependencies": {
    -    "tape": "0.3.3",
    -    "through": "~0.1.4"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "ace6ff808c1ce66b57d1ebf97977acb02334cfc1",
    -    "tarball": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz"
    -  },
    -  "homepage": "https://github.com/Raynos/duplexer",
    -  "keywords": [],
    -  "licenses": [
    -    {
    -      "type": "MIT",
    -      "url": "http://github.com/Raynos/duplexer/raw/master/LICENSE"
    -    }
    -  ],
    -  "main": "index",
    -  "maintainers": [
    -    {
    -      "name": "raynos",
    -      "email": "raynos2@gmail.com"
    -    },
    -    {
    -      "name": "dominictarr",
    -      "email": "dominic.tarr@gmail.com"
    -    }
    -  ],
    -  "name": "duplexer",
    -  "optionalDependencies": {},
    -  "readme": "# duplexer\n\n[![build status][1]][2] [![dependency status][3]][4]\n\n[![browser support][5]][6]\n\nCreates a duplex stream\n\nTaken from [event-stream][7]\n\n## duplex (writeStream, readStream)\n\nTakes a writable stream and a readable stream and makes them appear as a readable writable stream.\n\nIt is assumed that the two streams are connected to each other in some way.\n\n## Example\n\n```js\nvar grep = cp.exec('grep Stream')\n\nduplex(grep.stdin, grep.stdout)\n```\n\n## Installation\n\n`npm install duplexer`\n\n## Tests\n\n`npm test`\n\n## Contributors\n\n - Dominictarr\n - Raynos\n - samccone\n\n## MIT Licenced\n\n  [1]: https://secure.travis-ci.org/Raynos/duplexer.png\n  [2]: https://travis-ci.org/Raynos/duplexer\n  [3]: https://david-dm.org/Raynos/duplexer.png\n  [4]: https://david-dm.org/Raynos/duplexer\n  [5]: https://ci.testling.com/Raynos/duplexer.png\n  [6]: https://ci.testling.com/Raynos/duplexer\n  [7]: https://github.com/dominictarr/event-stream#duplex-writestream-readstream\n",
    -  "readmeFilename": "README.md",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/Raynos/duplexer.git"
    -  },
    -  "scripts": {
    -    "test": "node test"
    -  },
    -  "testling": {
    -    "files": "test/index.js",
    -    "browsers": [
    -      "ie/8..latest",
    -      "firefox/16..latest",
    -      "firefox/nightly",
    -      "chrome/22..latest",
    -      "chrome/canary",
    -      "opera/12..latest",
    -      "opera/next",
    -      "safari/5.1..latest",
    -      "ipad/6.0..latest",
    -      "iphone/6.0..latest"
    -    ]
    -  },
    -  "version": "0.1.1"
    -}
    diff --git a/node_modules/duplexer/test/index.js b/node_modules/duplexer/test/index.js
    deleted file mode 100644
    index 4988e0d..0000000
    --- a/node_modules/duplexer/test/index.js
    +++ /dev/null
    @@ -1,31 +0,0 @@
    -var through = require("through")
    -var test    = require("tape")
    -
    -var duplex  = require("../index")
    -
    -var readable = through()
    -var writable = through(write)
    -var written = 0
    -var data = 0
    -
    -var stream = duplex(writable, readable)
    -
    -function write() {
    -    written++
    -}
    -
    -stream.on("data", ondata)
    -
    -function ondata() {
    -    data++
    -}
    -
    -test("emit and write", function(t) {
    -    t.plan(2)
    -
    -    stream.write()
    -    readable.emit("data")
    -
    -    t.equal(written, 1, "should have written once")
    -    t.equal(data, 1, "should have recived once")
    -})
    diff --git a/node_modules/duplexer2/.npmignore b/node_modules/duplexer2/.npmignore
    deleted file mode 100644
    index 07e6e47..0000000
    --- a/node_modules/duplexer2/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -/node_modules
    diff --git a/node_modules/duplexer2/.travis.yml b/node_modules/duplexer2/.travis.yml
    deleted file mode 100644
    index 6e5919d..0000000
    --- a/node_modules/duplexer2/.travis.yml
    +++ /dev/null
    @@ -1,3 +0,0 @@
    -language: node_js
    -node_js:
    -  - "0.10"
    diff --git a/node_modules/duplexer2/LICENSE.md b/node_modules/duplexer2/LICENSE.md
    deleted file mode 100644
    index 547189a..0000000
    --- a/node_modules/duplexer2/LICENSE.md
    +++ /dev/null
    @@ -1,26 +0,0 @@
    -Copyright (c) 2013, Deoxxa Development
    -======================================
    -All rights reserved.
    ---------------------
    -  
    -Redistribution and use in source and binary forms, with or without
    -modification, are permitted provided that the following conditions are met:  
    -1. Redistributions of source code must retain the above copyright
    -   notice, this list of conditions and the following disclaimer.  
    -2. 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.  
    -3. Neither the name of Deoxxa Development 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 DEOXXA DEVELOPMENT ''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 DEOXXA DEVELOPMENT 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.
    diff --git a/node_modules/duplexer2/README.md b/node_modules/duplexer2/README.md
    deleted file mode 100644
    index e39e1e9..0000000
    --- a/node_modules/duplexer2/README.md
    +++ /dev/null
    @@ -1,129 +0,0 @@
    -duplexer2 [![build status](https://travis-ci.org/deoxxa/duplexer2.png)](https://travis-ci.org/deoxxa/fork)
    -=========
    -
    -Like duplexer (http://npm.im/duplexer) but using streams2.
    -
    -Overview
    ---------
    -
    -duplexer2 is a reimplementation of [duplexer](http://npm.im/duplexer) using the
    -readable-stream API which is standard in node as of v0.10. Everything largely
    -works the same.
    -
    -Installation
    -------------
    -
    -Available via [npm](http://npmjs.org/):
    -
    -> $ npm install duplexer2
    -
    -Or via git:
    -
    -> $ git clone git://github.com/deoxxa/duplexer2.git node_modules/duplexer2
    -
    -API
    ----
    -
    -**duplexer2**
    -
    -Creates a new `DuplexWrapper` object, which is the actual class that implements
    -most of the fun stuff. All that fun stuff is hidden. DON'T LOOK.
    -
    -```javascript
    -duplexer2([options], writable, readable)
    -```
    -
    -```javascript
    -var duplex = duplexer2(new stream.Writable(), new stream.Readable());
    -```
    -
    -Arguments
    -
    -* __options__ - an object specifying the regular `stream.Duplex` options, as
    -  well as the properties described below.
    -* __writable__ - a writable stream
    -* __readable__ - a readable stream
    -
    -Options
    -
    -* __bubbleErrors__ - a boolean value that specifies whether to bubble errors
    -  from the underlying readable/writable streams. Default is `true`.
    -
    -Example
    --------
    -
    -Also see [example.js](https://github.com/deoxxa/duplexer2/blob/master/example.js).
    -
    -Code:
    -
    -```javascript
    -var stream = require("stream");
    -
    -var duplexer2 = require("duplexer2");
    -
    -var writable = new stream.Writable({objectMode: true}),
    -    readable = new stream.Readable({objectMode: true});
    -
    -writable._write = function _write(input, encoding, done) {
    -  if (readable.push(input)) {
    -    return done();
    -  } else {
    -    readable.once("drain", done);
    -  }
    -};
    -
    -readable._read = function _read(n) {
    -  // no-op
    -};
    -
    -// simulate the readable thing closing after a bit
    -writable.once("finish", function() {
    -  setTimeout(function() {
    -    readable.push(null);
    -  }, 500);
    -});
    -
    -var duplex = duplexer2(writable, readable);
    -
    -duplex.on("data", function(e) {
    -  console.log("got data", JSON.stringify(e));
    -});
    -
    -duplex.on("finish", function() {
    -  console.log("got finish event");
    -});
    -
    -duplex.on("end", function() {
    -  console.log("got end event");
    -});
    -
    -duplex.write("oh, hi there", function() {
    -  console.log("finished writing");
    -});
    -
    -duplex.end(function() {
    -  console.log("finished ending");
    -});
    -```
    -
    -Output:
    -
    -```
    -got data "oh, hi there"
    -finished writing
    -got finish event
    -finished ending
    -got end event
    -```
    -
    -License
    --------
    -
    -3-clause BSD. A copy is included with the source.
    -
    -Contact
    --------
    -
    -* GitHub ([deoxxa](http://github.com/deoxxa))
    -* Twitter ([@deoxxa](http://twitter.com/deoxxa))
    -* Email ([deoxxa@fknsrs.biz](mailto:deoxxa@fknsrs.biz))
    diff --git a/node_modules/duplexer2/example.js b/node_modules/duplexer2/example.js
    deleted file mode 100755
    index 90416e9..0000000
    --- a/node_modules/duplexer2/example.js
    +++ /dev/null
    @@ -1,49 +0,0 @@
    -#!/usr/bin/env node
    -
    -var stream = require("readable-stream");
    -
    -var duplexer2 = require("./");
    -
    -var writable = new stream.Writable({objectMode: true}),
    -    readable = new stream.Readable({objectMode: true});
    -
    -writable._write = function _write(input, encoding, done) {
    -  if (readable.push(input)) {
    -    return done();
    -  } else {
    -    readable.once("drain", done);
    -  }
    -};
    -
    -readable._read = function _read(n) {
    -  // no-op
    -};
    -
    -// simulate the readable thing closing after a bit
    -writable.once("finish", function() {
    -  setTimeout(function() {
    -    readable.push(null);
    -  }, 500);
    -});
    -
    -var duplex = duplexer2(writable, readable);
    -
    -duplex.on("data", function(e) {
    -  console.log("got data", JSON.stringify(e));
    -});
    -
    -duplex.on("finish", function() {
    -  console.log("got finish event");
    -});
    -
    -duplex.on("end", function() {
    -  console.log("got end event");
    -});
    -
    -duplex.write("oh, hi there", function() {
    -  console.log("finished writing");
    -});
    -
    -duplex.end(function() {
    -  console.log("finished ending");
    -});
    diff --git a/node_modules/duplexer2/index.js b/node_modules/duplexer2/index.js
    deleted file mode 100644
    index b8fafcb..0000000
    --- a/node_modules/duplexer2/index.js
    +++ /dev/null
    @@ -1,62 +0,0 @@
    -var stream = require("readable-stream");
    -
    -var duplex2 = module.exports = function duplex2(options, writable, readable) {
    -  return new DuplexWrapper(options, writable, readable);
    -};
    -
    -var DuplexWrapper = exports.DuplexWrapper = function DuplexWrapper(options, writable, readable) {
    -  if (typeof readable === "undefined") {
    -    readable = writable;
    -    writable = options;
    -    options = null;
    -  }
    -
    -  options = options || {};
    -  options.objectMode = true;
    -
    -  stream.Duplex.call(this, options);
    -
    -  this._bubbleErrors = (typeof options.bubbleErrors === "undefined") || !!options.bubbleErrors;
    -
    -  this._writable = writable;
    -  this._readable = readable;
    -
    -  var self = this;
    -
    -  writable.once("finish", function() {
    -    self.end();
    -  });
    -
    -  this.once("finish", function() {
    -    writable.end();
    -  });
    -
    -  readable.on("data", function(e) {
    -    if (!self.push(e)) {
    -      readable.pause();
    -    }
    -  });
    -
    -  readable.once("end", function() {
    -    return self.push(null);
    -  });
    -
    -  if (this._bubbleErrors) {
    -    writable.on("error", function(err) {
    -      return self.emit("error", err);
    -    });
    -
    -    readable.on("error", function(err) {
    -      return self.emit("error", err);
    -    });
    -  }
    -};
    -DuplexWrapper.prototype = Object.create(stream.Duplex.prototype, {constructor: {value: DuplexWrapper}});
    -
    -DuplexWrapper.prototype._write = function _write(input, encoding, done) {
    -  this._writable.write(input, encoding, done);
    -};
    -
    -DuplexWrapper.prototype._read = function _read(n) {
    -  this._readable.resume();
    -};
    diff --git a/node_modules/duplexer2/package.json b/node_modules/duplexer2/package.json
    deleted file mode 100644
    index 0dda40a..0000000
    --- a/node_modules/duplexer2/package.json
    +++ /dev/null
    @@ -1,90 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "duplexer2@0.0.2",
    -        "scope": null,
    -        "escapedName": "duplexer2",
    -        "name": "duplexer2",
    -        "rawSpec": "0.0.2",
    -        "spec": "0.0.2",
    -        "type": "version"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/multipipe"
    -    ]
    -  ],
    -  "_from": "duplexer2@0.0.2",
    -  "_id": "duplexer2@0.0.2",
    -  "_inCache": true,
    -  "_location": "/duplexer2",
    -  "_npmUser": {
    -    "name": "deoxxa",
    -    "email": "deoxxa@fknsrs.biz"
    -  },
    -  "_npmVersion": "1.4.3",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "duplexer2@0.0.2",
    -    "scope": null,
    -    "escapedName": "duplexer2",
    -    "name": "duplexer2",
    -    "rawSpec": "0.0.2",
    -    "spec": "0.0.2",
    -    "type": "version"
    -  },
    -  "_requiredBy": [
    -    "/multipipe"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz",
    -  "_shasum": "c614dcf67e2fb14995a91711e5a617e8a60a31db",
    -  "_shrinkwrap": null,
    -  "_spec": "duplexer2@0.0.2",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/multipipe",
    -  "author": {
    -    "name": "Conrad Pankoff",
    -    "email": "deoxxa@fknsrs.biz",
    -    "url": "http://www.fknsrs.biz/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/deoxxa/duplexer2/issues"
    -  },
    -  "dependencies": {
    -    "readable-stream": "~1.1.9"
    -  },
    -  "description": "Like duplexer (http://npm.im/duplexer) but using streams2",
    -  "devDependencies": {
    -    "chai": "~1.7.2",
    -    "mocha": "~1.12.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "c614dcf67e2fb14995a91711e5a617e8a60a31db",
    -    "tarball": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz"
    -  },
    -  "homepage": "https://github.com/deoxxa/duplexer2",
    -  "keywords": [
    -    "duplex",
    -    "stream",
    -    "join",
    -    "combine"
    -  ],
    -  "license": "BSD",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "deoxxa",
    -      "email": "deoxxa@fknsrs.biz"
    -    }
    -  ],
    -  "name": "duplexer2",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/deoxxa/duplexer2.git"
    -  },
    -  "scripts": {
    -    "test": "mocha -R tap"
    -  },
    -  "version": "0.0.2"
    -}
    diff --git a/node_modules/duplexer2/test/tests.js b/node_modules/duplexer2/test/tests.js
    deleted file mode 100644
    index c3cf76f..0000000
    --- a/node_modules/duplexer2/test/tests.js
    +++ /dev/null
    @@ -1,161 +0,0 @@
    -var assert = require("chai").assert;
    -
    -var stream = require("readable-stream");
    -
    -var duplexer2 = require("../");
    -
    -describe("duplexer2", function() {
    -  var writable, readable;
    -
    -  beforeEach(function() {
    -    writable = new stream.Writable({objectMode: true});
    -    readable = new stream.Readable({objectMode: true});
    -
    -    writable._write = function _write(input, encoding, done) {
    -      return done();
    -    };
    -
    -    readable._read = function _read(n) {
    -    };
    -  });
    -
    -  it("should interact with the writable stream properly for writing", function(done) {
    -    var duplex = duplexer2(writable, readable);
    -
    -    writable._write = function _write(input, encoding, _done) {
    -      assert.strictEqual(input, "well hello there");
    -
    -      return done();
    -    };
    -
    -    duplex.write("well hello there");
    -  });
    -
    -  it("should interact with the readable stream properly for reading", function(done) {
    -    var duplex = duplexer2(writable, readable);
    -
    -    duplex.on("data", function(e) {
    -      assert.strictEqual(e, "well hello there");
    -
    -      return done();
    -    });
    -
    -    readable.push("well hello there");
    -  });
    -
    -  it("should end the writable stream, causing it to finish", function(done) {
    -    var duplex = duplexer2(writable, readable);
    -
    -    writable.once("finish", done);
    -
    -    duplex.end();
    -  });
    -
    -  it("should finish when the writable stream finishes", function(done) {
    -    var duplex = duplexer2(writable, readable);
    -
    -    duplex.once("finish", done);
    -
    -    writable.end();
    -  });
    -
    -  it("should end when the readable stream ends", function(done) {
    -    var duplex = duplexer2(writable, readable);
    -
    -    // required to let "end" fire without reading
    -    duplex.resume();
    -    duplex.once("end", done);
    -
    -    readable.push(null);
    -  });
    -
    -  it("should bubble errors from the writable stream when no behaviour is specified", function(done) {
    -    var duplex = duplexer2(writable, readable);
    -
    -    var originalErr = Error("testing");
    -
    -    duplex.on("error", function(err) {
    -      assert.strictEqual(err, originalErr);
    -
    -      return done();
    -    });
    -
    -    writable.emit("error", originalErr);
    -  });
    -
    -  it("should bubble errors from the readable stream when no behaviour is specified", function(done) {
    -    var duplex = duplexer2(writable, readable);
    -
    -    var originalErr = Error("testing");
    -
    -    duplex.on("error", function(err) {
    -      assert.strictEqual(err, originalErr);
    -
    -      return done();
    -    });
    -
    -    readable.emit("error", originalErr);
    -  });
    -
    -  it("should bubble errors from the writable stream when bubbleErrors is true", function(done) {
    -    var duplex = duplexer2({bubbleErrors: true}, writable, readable);
    -
    -    var originalErr = Error("testing");
    -
    -    duplex.on("error", function(err) {
    -      assert.strictEqual(err, originalErr);
    -
    -      return done();
    -    });
    -
    -    writable.emit("error", originalErr);
    -  });
    -
    -  it("should bubble errors from the readable stream when bubbleErrors is true", function(done) {
    -    var duplex = duplexer2({bubbleErrors: true}, writable, readable);
    -
    -    var originalErr = Error("testing");
    -
    -    duplex.on("error", function(err) {
    -      assert.strictEqual(err, originalErr);
    -
    -      return done();
    -    });
    -
    -    readable.emit("error", originalErr);
    -  });
    -
    -  it("should not bubble errors from the writable stream when bubbleErrors is false", function(done) {
    -    var duplex = duplexer2({bubbleErrors: false}, writable, readable);
    -
    -    var timeout = setTimeout(done, 25);
    -
    -    duplex.on("error", function(err) {
    -      clearTimeout(timeout);
    -
    -      return done(Error("shouldn't bubble error"));
    -    });
    -
    -    // prevent uncaught error exception
    -    writable.on("error", function() {});
    -
    -    writable.emit("error", Error("testing"));
    -  });
    -
    -  it("should not bubble errors from the readable stream when bubbleErrors is false", function(done) {
    -    var duplex = duplexer2({bubbleErrors: false}, writable, readable);
    -
    -    var timeout = setTimeout(done, 25);
    -
    -    duplex.on("error", function(err) {
    -      clearTimeout(timeout);
    -
    -      return done(Error("shouldn't bubble error"));
    -    });
    -
    -    // prevent uncaught error exception
    -    readable.on("error", function() {});
    -
    -    readable.emit("error", Error("testing"));
    -  });
    -});
    diff --git a/node_modules/duplexify/.npmignore b/node_modules/duplexify/.npmignore
    deleted file mode 100644
    index 3c3629e..0000000
    --- a/node_modules/duplexify/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -node_modules
    diff --git a/node_modules/duplexify/.travis.yml b/node_modules/duplexify/.travis.yml
    deleted file mode 100644
    index ecd4193..0000000
    --- a/node_modules/duplexify/.travis.yml
    +++ /dev/null
    @@ -1,6 +0,0 @@
    -language: node_js
    -node_js:
    -  - "0.10"
    -  - "0.12"
    -  - "4"
    -  - "6"
    diff --git a/node_modules/duplexify/LICENSE b/node_modules/duplexify/LICENSE
    deleted file mode 100644
    index 757562e..0000000
    --- a/node_modules/duplexify/LICENSE
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -The MIT License (MIT)
    -
    -Copyright (c) 2014 Mathias Buus
    -
    -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.
    \ No newline at end of file
    diff --git a/node_modules/duplexify/README.md b/node_modules/duplexify/README.md
    deleted file mode 100644
    index 27669f6..0000000
    --- a/node_modules/duplexify/README.md
    +++ /dev/null
    @@ -1,97 +0,0 @@
    -# duplexify
    -
    -Turn a writeable and readable stream into a single streams2 duplex stream.
    -
    -Similar to [duplexer2](https://github.com/deoxxa/duplexer2) except it supports both streams2 and streams1 as input
    -and it allows you to set the readable and writable part asynchronously using `setReadable(stream)` and `setWritable(stream)`
    -
    -```
    -npm install duplexify
    -```
    -
    -[![build status](http://img.shields.io/travis/mafintosh/duplexify.svg?style=flat)](http://travis-ci.org/mafintosh/duplexify)
    -
    -## Usage
    -
    -Use `duplexify(writable, readable, streamOptions)` (or `duplexify.obj(writable, readable)` to create an object stream)
    -
    -``` js
    -var duplexify = require('duplexify')
    -
    -// turn writableStream and readableStream into a single duplex stream
    -var dup = duplexify(writableStream, readableStream)
    -
    -dup.write('hello world') // will write to writableStream
    -dup.on('data', function(data) {
    -  // will read from readableStream
    -})
    -```
    -
    -You can also set the readable and writable parts asynchronously
    -
    -``` js
    -var dup = duplexify()
    -
    -dup.write('hello world') // write will buffer until the writable
    -                         // part has been set
    -
    -// wait a bit ...
    -dup.setReadable(readableStream)
    -
    -// maybe wait some more?
    -dup.setWritable(writableStream)
    -```
    -
    -If you call `setReadable` or `setWritable` multiple times it will unregister the previous readable/writable stream.
    -To disable the readable or writable part call `setReadable` or `setWritable` with `null`.
    -
    -If the readable or writable streams emits an error or close it will destroy both streams and bubble up the event.
    -You can also explictly destroy the streams by calling `dup.destroy()`. The `destroy` method optionally takes an
    -error object as argument, in which case the error is emitted as part of the `error` event.
    -
    -``` js
    -dup.on('error', function(err) {
    -  console.log('readable or writable emitted an error - close will follow')
    -})
    -
    -dup.on('close', function() {
    -  console.log('the duplex stream is destroyed')
    -})
    -
    -dup.destroy() // calls destroy on the readable and writable part (if present)
    -```
    -
    -## HTTP request example
    -
    -Turn a node core http request into a duplex stream is as easy as
    -
    -``` js
    -var duplexify = require('duplexify')
    -var http = require('http')
    -
    -var request = function(opts) {
    -  var req = http.request(opts)
    -  var dup = duplexify(req)
    -  req.on('response', function(res) {
    -    dup.setReadable(res)
    -  })
    -  return dup
    -}
    -
    -var req = request({
    -  method: 'GET',
    -  host: 'www.google.com',
    -  port: 80
    -})
    -
    -req.end()
    -req.pipe(process.stdout)
    -```
    -
    -## License
    -
    -MIT
    -
    -## Related
    -
    -`duplexify` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one.
    diff --git a/node_modules/duplexify/example.js b/node_modules/duplexify/example.js
    deleted file mode 100644
    index 5585c19..0000000
    --- a/node_modules/duplexify/example.js
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -var duplexify = require('duplexify')
    -var http = require('http')
    -
    -var request = function(opts) {
    -  var req = http.request(opts)
    -  var dup = duplexify()
    -  dup.setWritable(req)
    -  req.on('response', function(res) {
    -    dup.setReadable(res)
    -  })
    -  return dup
    -}
    -
    -var req = request({
    -  method: 'GET',
    -  host: 'www.google.com',
    -  port: 80
    -})
    -
    -req.end()
    -req.pipe(process.stdout)
    diff --git a/node_modules/duplexify/index.js b/node_modules/duplexify/index.js
    deleted file mode 100644
    index a04f124..0000000
    --- a/node_modules/duplexify/index.js
    +++ /dev/null
    @@ -1,228 +0,0 @@
    -var stream = require('readable-stream')
    -var eos = require('end-of-stream')
    -var inherits = require('inherits')
    -var shift = require('stream-shift')
    -
    -var SIGNAL_FLUSH = new Buffer([0])
    -
    -var onuncork = function(self, fn) {
    -  if (self._corked) self.once('uncork', fn)
    -  else fn()
    -}
    -
    -var destroyer = function(self, end) {
    -  return function(err) {
    -    if (err) self.destroy(err.message === 'premature close' ? null : err)
    -    else if (end && !self._ended) self.end()
    -  }
    -}
    -
    -var end = function(ws, fn) {
    -  if (!ws) return fn()
    -  if (ws._writableState && ws._writableState.finished) return fn()
    -  if (ws._writableState) return ws.end(fn)
    -  ws.end()
    -  fn()
    -}
    -
    -var toStreams2 = function(rs) {
    -  return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs)
    -}
    -
    -var Duplexify = function(writable, readable, opts) {
    -  if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts)
    -  stream.Duplex.call(this, opts)
    -
    -  this._writable = null
    -  this._readable = null
    -  this._readable2 = null
    -
    -  this._forwardDestroy = !opts || opts.destroy !== false
    -  this._forwardEnd = !opts || opts.end !== false
    -  this._corked = 1 // start corked
    -  this._ondrain = null
    -  this._drained = false
    -  this._forwarding = false
    -  this._unwrite = null
    -  this._unread = null
    -  this._ended = false
    -
    -  this.destroyed = false
    -
    -  if (writable) this.setWritable(writable)
    -  if (readable) this.setReadable(readable)
    -}
    -
    -inherits(Duplexify, stream.Duplex)
    -
    -Duplexify.obj = function(writable, readable, opts) {
    -  if (!opts) opts = {}
    -  opts.objectMode = true
    -  opts.highWaterMark = 16
    -  return new Duplexify(writable, readable, opts)
    -}
    -
    -Duplexify.prototype.cork = function() {
    -  if (++this._corked === 1) this.emit('cork')
    -}
    -
    -Duplexify.prototype.uncork = function() {
    -  if (this._corked && --this._corked === 0) this.emit('uncork')
    -}
    -
    -Duplexify.prototype.setWritable = function(writable) {
    -  if (this._unwrite) this._unwrite()
    -
    -  if (this.destroyed) {
    -    if (writable && writable.destroy) writable.destroy()
    -    return
    -  }
    -
    -  if (writable === null || writable === false) {
    -    this.end()
    -    return
    -  }
    -
    -  var self = this
    -  var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd))
    -
    -  var ondrain = function() {
    -    var ondrain = self._ondrain
    -    self._ondrain = null
    -    if (ondrain) ondrain()
    -  }
    -
    -  var clear = function() {
    -    self._writable.removeListener('drain', ondrain)
    -    unend()
    -  }
    -
    -  if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks
    -
    -  this._writable = writable
    -  this._writable.on('drain', ondrain)
    -  this._unwrite = clear
    -
    -  this.uncork() // always uncork setWritable
    -}
    -
    -Duplexify.prototype.setReadable = function(readable) {
    -  if (this._unread) this._unread()
    -
    -  if (this.destroyed) {
    -    if (readable && readable.destroy) readable.destroy()
    -    return
    -  }
    -
    -  if (readable === null || readable === false) {
    -    this.push(null)
    -    this.resume()
    -    return
    -  }
    -
    -  var self = this
    -  var unend = eos(readable, {writable:false, readable:true}, destroyer(this))
    -
    -  var onreadable = function() {
    -    self._forward()
    -  }
    -
    -  var onend = function() {
    -    self.push(null)
    -  }
    -
    -  var clear = function() {
    -    self._readable2.removeListener('readable', onreadable)
    -    self._readable2.removeListener('end', onend)
    -    unend()
    -  }
    -
    -  this._drained = true
    -  this._readable = readable
    -  this._readable2 = readable._readableState ? readable : toStreams2(readable)
    -  this._readable2.on('readable', onreadable)
    -  this._readable2.on('end', onend)
    -  this._unread = clear
    -
    -  this._forward()
    -}
    -
    -Duplexify.prototype._read = function() {
    -  this._drained = true
    -  this._forward()
    -}
    -
    -Duplexify.prototype._forward = function() {
    -  if (this._forwarding || !this._readable2 || !this._drained) return
    -  this._forwarding = true
    -
    -  var data
    -
    -  while (this._drained && (data = shift(this._readable2)) !== null) {
    -    if (this.destroyed) continue
    -    this._drained = this.push(data)
    -  }
    -
    -  this._forwarding = false
    -}
    -
    -Duplexify.prototype.destroy = function(err) {
    -  if (this.destroyed) return
    -  this.destroyed = true
    -
    -  var self = this
    -  process.nextTick(function() {
    -    self._destroy(err)
    -  })
    -}
    -
    -Duplexify.prototype._destroy = function(err) {
    -  if (err) {
    -    var ondrain = this._ondrain
    -    this._ondrain = null
    -    if (ondrain) ondrain(err)
    -    else this.emit('error', err)
    -  }
    -
    -  if (this._forwardDestroy) {
    -    if (this._readable && this._readable.destroy) this._readable.destroy()
    -    if (this._writable && this._writable.destroy) this._writable.destroy()
    -  }
    -
    -  this.emit('close')
    -}
    -
    -Duplexify.prototype._write = function(data, enc, cb) {
    -  if (this.destroyed) return cb()
    -  if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb))
    -  if (data === SIGNAL_FLUSH) return this._finish(cb)
    -  if (!this._writable) return cb()
    -
    -  if (this._writable.write(data) === false) this._ondrain = cb
    -  else cb()
    -}
    -
    -
    -Duplexify.prototype._finish = function(cb) {
    -  var self = this
    -  this.emit('preend')
    -  onuncork(this, function() {
    -    end(self._forwardEnd && self._writable, function() {
    -      // haxx to not emit prefinish twice
    -      if (self._writableState.prefinished === false) self._writableState.prefinished = true
    -      self.emit('prefinish')
    -      onuncork(self, cb)
    -    })
    -  })
    -}
    -
    -Duplexify.prototype.end = function(data, enc, cb) {
    -  if (typeof data === 'function') return this.end(null, null, data)
    -  if (typeof enc === 'function') return this.end(data, null, enc)
    -  this._ended = true
    -  if (data) this.write(data)
    -  if (!this._writableState.ending) this.write(SIGNAL_FLUSH)
    -  return stream.Writable.prototype.end.call(this, cb)
    -}
    -
    -module.exports = Duplexify
    diff --git a/node_modules/duplexify/node_modules/end-of-stream/.npmignore b/node_modules/duplexify/node_modules/end-of-stream/.npmignore
    deleted file mode 100644
    index 3c3629e..0000000
    --- a/node_modules/duplexify/node_modules/end-of-stream/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -node_modules
    diff --git a/node_modules/duplexify/node_modules/end-of-stream/README.md b/node_modules/duplexify/node_modules/end-of-stream/README.md
    deleted file mode 100644
    index df800c1..0000000
    --- a/node_modules/duplexify/node_modules/end-of-stream/README.md
    +++ /dev/null
    @@ -1,47 +0,0 @@
    -# end-of-stream
    -
    -A node module that calls a callback when a readable/writable/duplex stream has completed or failed.
    -
    -	npm install end-of-stream
    -
    -## Usage
    -
    -Simply pass a stream and a callback to the `eos`.
    -Both legacy streams and streams2 are supported.
    -
    -``` js
    -var eos = require('end-of-stream');
    -
    -eos(readableStream, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has ended');
    -});
    -
    -eos(writableStream, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has finished');
    -});
    -
    -eos(duplexStream, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has ended and finished');
    -});
    -
    -eos(duplexStream, {readable:false}, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has ended but might still be writable');
    -});
    -
    -eos(duplexStream, {writable:false}, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has ended but might still be readable');
    -});
    -
    -eos(readableStream, {error:false}, function(err) {
    -	// do not treat emit('error', err) as a end-of-stream
    -});
    -```
    -
    -## License
    -
    -MIT
    \ No newline at end of file
    diff --git a/node_modules/duplexify/node_modules/end-of-stream/index.js b/node_modules/duplexify/node_modules/end-of-stream/index.js
    deleted file mode 100644
    index 9f61ed5..0000000
    --- a/node_modules/duplexify/node_modules/end-of-stream/index.js
    +++ /dev/null
    @@ -1,72 +0,0 @@
    -var once = require('once');
    -
    -var noop = function() {};
    -
    -var isRequest = function(stream) {
    -	return stream.setHeader && typeof stream.abort === 'function';
    -};
    -
    -var eos = function(stream, opts, callback) {
    -	if (typeof opts === 'function') return eos(stream, null, opts);
    -	if (!opts) opts = {};
    -
    -	callback = once(callback || noop);
    -
    -	var ws = stream._writableState;
    -	var rs = stream._readableState;
    -	var readable = opts.readable || (opts.readable !== false && stream.readable);
    -	var writable = opts.writable || (opts.writable !== false && stream.writable);
    -
    -	var onlegacyfinish = function() {
    -		if (!stream.writable) onfinish();
    -	};
    -
    -	var onfinish = function() {
    -		writable = false;
    -		if (!readable) callback();
    -	};
    -
    -	var onend = function() {
    -		readable = false;
    -		if (!writable) callback();
    -	};
    -
    -	var onclose = function() {
    -		if (readable && !(rs && rs.ended)) return callback(new Error('premature close'));
    -		if (writable && !(ws && ws.ended)) return callback(new Error('premature close'));
    -	};
    -
    -	var onrequest = function() {
    -		stream.req.on('finish', onfinish);
    -	};
    -
    -	if (isRequest(stream)) {
    -		stream.on('complete', onfinish);
    -		stream.on('abort', onclose);
    -		if (stream.req) onrequest();
    -		else stream.on('request', onrequest);
    -	} else if (writable && !ws) { // legacy streams
    -		stream.on('end', onlegacyfinish);
    -		stream.on('close', onlegacyfinish);
    -	}
    -
    -	stream.on('end', onend);
    -	stream.on('finish', onfinish);
    -	if (opts.error !== false) stream.on('error', callback);
    -	stream.on('close', onclose);
    -
    -	return function() {
    -		stream.removeListener('complete', onfinish);
    -		stream.removeListener('abort', onclose);
    -		stream.removeListener('request', onrequest);
    -		if (stream.req) stream.req.removeListener('finish', onfinish);
    -		stream.removeListener('end', onlegacyfinish);
    -		stream.removeListener('close', onlegacyfinish);
    -		stream.removeListener('finish', onfinish);
    -		stream.removeListener('end', onend);
    -		stream.removeListener('error', callback);
    -		stream.removeListener('close', onclose);
    -	};
    -};
    -
    -module.exports = eos;
    \ No newline at end of file
    diff --git a/node_modules/duplexify/node_modules/end-of-stream/package.json b/node_modules/duplexify/node_modules/end-of-stream/package.json
    deleted file mode 100644
    index 8b69ff2..0000000
    --- a/node_modules/duplexify/node_modules/end-of-stream/package.json
    +++ /dev/null
    @@ -1,89 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "end-of-stream@1.0.0",
    -        "scope": null,
    -        "escapedName": "end-of-stream",
    -        "name": "end-of-stream",
    -        "rawSpec": "1.0.0",
    -        "spec": "1.0.0",
    -        "type": "version"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/duplexify"
    -    ]
    -  ],
    -  "_from": "end-of-stream@1.0.0",
    -  "_id": "end-of-stream@1.0.0",
    -  "_inCache": true,
    -  "_location": "/duplexify/end-of-stream",
    -  "_npmUser": {
    -    "name": "mafintosh",
    -    "email": "mathiasbuus@gmail.com"
    -  },
    -  "_npmVersion": "1.4.9",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "end-of-stream@1.0.0",
    -    "scope": null,
    -    "escapedName": "end-of-stream",
    -    "name": "end-of-stream",
    -    "rawSpec": "1.0.0",
    -    "spec": "1.0.0",
    -    "type": "version"
    -  },
    -  "_requiredBy": [
    -    "/duplexify"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.0.0.tgz",
    -  "_shasum": "d4596e702734a93e40e9af864319eabd99ff2f0e",
    -  "_shrinkwrap": null,
    -  "_spec": "end-of-stream@1.0.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/duplexify",
    -  "author": {
    -    "name": "Mathias Buus",
    -    "email": "mathiasbuus@gmail.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/mafintosh/end-of-stream/issues"
    -  },
    -  "dependencies": {
    -    "once": "~1.3.0"
    -  },
    -  "description": "Call a callback when a readable/writable/duplex stream has completed or failed.",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "d4596e702734a93e40e9af864319eabd99ff2f0e",
    -    "tarball": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.0.0.tgz"
    -  },
    -  "homepage": "https://github.com/mafintosh/end-of-stream",
    -  "keywords": [
    -    "stream",
    -    "streams",
    -    "callback",
    -    "finish",
    -    "close",
    -    "end",
    -    "wait"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "mafintosh",
    -      "email": "mathiasbuus@gmail.com"
    -    }
    -  ],
    -  "name": "end-of-stream",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/mafintosh/end-of-stream.git"
    -  },
    -  "scripts": {
    -    "test": "node test.js"
    -  },
    -  "version": "1.0.0"
    -}
    diff --git a/node_modules/duplexify/node_modules/end-of-stream/test.js b/node_modules/duplexify/node_modules/end-of-stream/test.js
    deleted file mode 100644
    index d4d126f..0000000
    --- a/node_modules/duplexify/node_modules/end-of-stream/test.js
    +++ /dev/null
    @@ -1,62 +0,0 @@
    -var assert = require('assert');
    -var eos = require('./index');
    -
    -var expected = 6;
    -var fs = require('fs');
    -var net = require('net');
    -
    -var ws = fs.createWriteStream('/dev/null');
    -eos(ws, function(err) {
    -	expected--;
    -	assert(!!err);
    -	if (!expected) process.exit(0);
    -});
    -ws.close();
    -
    -var rs = fs.createReadStream('/dev/random');
    -eos(rs, function(err) {
    -	expected--;
    -	assert(!!err);
    -	if (!expected) process.exit(0);
    -});
    -rs.close();
    -
    -var rs = fs.createReadStream(__filename);
    -eos(rs, function(err) {
    -	expected--;
    -	assert(!err);
    -	if (!expected) process.exit(0);
    -});
    -rs.pipe(fs.createWriteStream('/dev/null'));
    -
    -var rs = fs.createReadStream(__filename);
    -eos(rs, function(err) {
    -	throw new Error('no go')
    -})();
    -rs.pipe(fs.createWriteStream('/dev/null'));
    -
    -var socket = net.connect(50000);
    -eos(socket, function(err) {
    -	expected--;
    -	assert(!!err);
    -	if (!expected) process.exit(0);
    -});
    -
    -var server = net.createServer(function(socket) {
    -	eos(socket, function() {
    -		expected--;
    -		if (!expected) process.exit(0);
    -	});
    -	socket.destroy();
    -}).listen(30000, function() {
    -	var socket = net.connect(30000);
    -	eos(socket, function() {
    -		expected--;
    -		if (!expected) process.exit(0);
    -	});
    -});
    -
    -setTimeout(function() {
    -	assert(expected === 0);
    -	process.exit(0);
    -}, 1000);
    diff --git a/node_modules/duplexify/node_modules/isarray/.npmignore b/node_modules/duplexify/node_modules/isarray/.npmignore
    deleted file mode 100644
    index 3c3629e..0000000
    --- a/node_modules/duplexify/node_modules/isarray/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -node_modules
    diff --git a/node_modules/duplexify/node_modules/isarray/.travis.yml b/node_modules/duplexify/node_modules/isarray/.travis.yml
    deleted file mode 100644
    index cc4dba2..0000000
    --- a/node_modules/duplexify/node_modules/isarray/.travis.yml
    +++ /dev/null
    @@ -1,4 +0,0 @@
    -language: node_js
    -node_js:
    -  - "0.8"
    -  - "0.10"
    diff --git a/node_modules/duplexify/node_modules/isarray/Makefile b/node_modules/duplexify/node_modules/isarray/Makefile
    deleted file mode 100644
    index 787d56e..0000000
    --- a/node_modules/duplexify/node_modules/isarray/Makefile
    +++ /dev/null
    @@ -1,6 +0,0 @@
    -
    -test:
    -	@node_modules/.bin/tape test.js
    -
    -.PHONY: test
    -
    diff --git a/node_modules/duplexify/node_modules/isarray/README.md b/node_modules/duplexify/node_modules/isarray/README.md
    deleted file mode 100644
    index 16d2c59..0000000
    --- a/node_modules/duplexify/node_modules/isarray/README.md
    +++ /dev/null
    @@ -1,60 +0,0 @@
    -
    -# isarray
    -
    -`Array#isArray` for older browsers.
    -
    -[![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray)
    -[![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray)
    -
    -[![browser support](https://ci.testling.com/juliangruber/isarray.png)
    -](https://ci.testling.com/juliangruber/isarray)
    -
    -## Usage
    -
    -```js
    -var isArray = require('isarray');
    -
    -console.log(isArray([])); // => true
    -console.log(isArray({})); // => false
    -```
    -
    -## Installation
    -
    -With [npm](http://npmjs.org) do
    -
    -```bash
    -$ npm install isarray
    -```
    -
    -Then bundle for the browser with
    -[browserify](https://github.com/substack/browserify).
    -
    -With [component](http://component.io) do
    -
    -```bash
    -$ component install juliangruber/isarray
    -```
    -
    -## License
    -
    -(MIT)
    -
    -Copyright (c) 2013 Julian Gruber <julian@juliangruber.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/duplexify/node_modules/isarray/component.json b/node_modules/duplexify/node_modules/isarray/component.json
    deleted file mode 100644
    index 9e31b68..0000000
    --- a/node_modules/duplexify/node_modules/isarray/component.json
    +++ /dev/null
    @@ -1,19 +0,0 @@
    -{
    -  "name" : "isarray",
    -  "description" : "Array#isArray for older browsers",
    -  "version" : "0.0.1",
    -  "repository" : "juliangruber/isarray",
    -  "homepage": "https://github.com/juliangruber/isarray",
    -  "main" : "index.js",
    -  "scripts" : [
    -    "index.js"
    -  ],
    -  "dependencies" : {},
    -  "keywords": ["browser","isarray","array"],
    -  "author": {
    -    "name": "Julian Gruber",
    -    "email": "mail@juliangruber.com",
    -    "url": "http://juliangruber.com"
    -  },
    -  "license": "MIT"
    -}
    diff --git a/node_modules/duplexify/node_modules/isarray/index.js b/node_modules/duplexify/node_modules/isarray/index.js
    deleted file mode 100644
    index a57f634..0000000
    --- a/node_modules/duplexify/node_modules/isarray/index.js
    +++ /dev/null
    @@ -1,5 +0,0 @@
    -var toString = {}.toString;
    -
    -module.exports = Array.isArray || function (arr) {
    -  return toString.call(arr) == '[object Array]';
    -};
    diff --git a/node_modules/duplexify/node_modules/isarray/package.json b/node_modules/duplexify/node_modules/isarray/package.json
    deleted file mode 100644
    index 8049548..0000000
    --- a/node_modules/duplexify/node_modules/isarray/package.json
    +++ /dev/null
    @@ -1,104 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "isarray@~1.0.0",
    -        "scope": null,
    -        "escapedName": "isarray",
    -        "name": "isarray",
    -        "rawSpec": "~1.0.0",
    -        "spec": ">=1.0.0 <1.1.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/duplexify/node_modules/readable-stream"
    -    ]
    -  ],
    -  "_from": "isarray@>=1.0.0 <1.1.0",
    -  "_id": "isarray@1.0.0",
    -  "_inCache": true,
    -  "_location": "/duplexify/isarray",
    -  "_nodeVersion": "5.1.0",
    -  "_npmUser": {
    -    "name": "juliangruber",
    -    "email": "julian@juliangruber.com"
    -  },
    -  "_npmVersion": "3.3.12",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "isarray@~1.0.0",
    -    "scope": null,
    -    "escapedName": "isarray",
    -    "name": "isarray",
    -    "rawSpec": "~1.0.0",
    -    "spec": ">=1.0.0 <1.1.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/duplexify/readable-stream"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
    -  "_shasum": "bb935d48582cba168c06834957a54a3e07124f11",
    -  "_shrinkwrap": null,
    -  "_spec": "isarray@~1.0.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/duplexify/node_modules/readable-stream",
    -  "author": {
    -    "name": "Julian Gruber",
    -    "email": "mail@juliangruber.com",
    -    "url": "http://juliangruber.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/juliangruber/isarray/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Array#isArray for older browsers",
    -  "devDependencies": {
    -    "tape": "~2.13.4"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "bb935d48582cba168c06834957a54a3e07124f11",
    -    "tarball": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
    -  },
    -  "gitHead": "2a23a281f369e9ae06394c0fb4d2381355a6ba33",
    -  "homepage": "https://github.com/juliangruber/isarray",
    -  "keywords": [
    -    "browser",
    -    "isarray",
    -    "array"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "juliangruber",
    -      "email": "julian@juliangruber.com"
    -    }
    -  ],
    -  "name": "isarray",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/juliangruber/isarray.git"
    -  },
    -  "scripts": {
    -    "test": "tape test.js"
    -  },
    -  "testling": {
    -    "files": "test.js",
    -    "browsers": [
    -      "ie/8..latest",
    -      "firefox/17..latest",
    -      "firefox/nightly",
    -      "chrome/22..latest",
    -      "chrome/canary",
    -      "opera/12..latest",
    -      "opera/next",
    -      "safari/5.1..latest",
    -      "ipad/6.0..latest",
    -      "iphone/6.0..latest",
    -      "android-browser/4.2..latest"
    -    ]
    -  },
    -  "version": "1.0.0"
    -}
    diff --git a/node_modules/duplexify/node_modules/isarray/test.js b/node_modules/duplexify/node_modules/isarray/test.js
    deleted file mode 100644
    index e0c3444..0000000
    --- a/node_modules/duplexify/node_modules/isarray/test.js
    +++ /dev/null
    @@ -1,20 +0,0 @@
    -var isArray = require('./');
    -var test = require('tape');
    -
    -test('is array', function(t){
    -  t.ok(isArray([]));
    -  t.notOk(isArray({}));
    -  t.notOk(isArray(null));
    -  t.notOk(isArray(false));
    -
    -  var obj = {};
    -  obj[0] = true;
    -  t.notOk(isArray(obj));
    -
    -  var arr = [];
    -  arr.foo = 'bar';
    -  t.ok(isArray(arr));
    -
    -  t.end();
    -});
    -
    diff --git a/node_modules/duplexify/node_modules/once/LICENSE b/node_modules/duplexify/node_modules/once/LICENSE
    deleted file mode 100644
    index 19129e3..0000000
    --- a/node_modules/duplexify/node_modules/once/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/duplexify/node_modules/once/README.md b/node_modules/duplexify/node_modules/once/README.md
    deleted file mode 100644
    index a2981ea..0000000
    --- a/node_modules/duplexify/node_modules/once/README.md
    +++ /dev/null
    @@ -1,51 +0,0 @@
    -# once
    -
    -Only call a function once.
    -
    -## usage
    -
    -```javascript
    -var once = require('once')
    -
    -function load (file, cb) {
    -  cb = once(cb)
    -  loader.load('file')
    -  loader.once('load', cb)
    -  loader.once('error', cb)
    -}
    -```
    -
    -Or add to the Function.prototype in a responsible way:
    -
    -```javascript
    -// only has to be done once
    -require('once').proto()
    -
    -function load (file, cb) {
    -  cb = cb.once()
    -  loader.load('file')
    -  loader.once('load', cb)
    -  loader.once('error', cb)
    -}
    -```
    -
    -Ironically, the prototype feature makes this module twice as
    -complicated as necessary.
    -
    -To check whether you function has been called, use `fn.called`. Once the
    -function is called for the first time the return value of the original
    -function is saved in `fn.value` and subsequent calls will continue to
    -return this value.
    -
    -```javascript
    -var once = require('once')
    -
    -function load (cb) {
    -  cb = once(cb)
    -  var stream = createStream()
    -  stream.once('data', cb)
    -  stream.once('end', function () {
    -    if (!cb.called) cb(new Error('not found'))
    -  })
    -}
    -```
    diff --git a/node_modules/duplexify/node_modules/once/once.js b/node_modules/duplexify/node_modules/once/once.js
    deleted file mode 100644
    index 2e1e721..0000000
    --- a/node_modules/duplexify/node_modules/once/once.js
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -var wrappy = require('wrappy')
    -module.exports = wrappy(once)
    -
    -once.proto = once(function () {
    -  Object.defineProperty(Function.prototype, 'once', {
    -    value: function () {
    -      return once(this)
    -    },
    -    configurable: true
    -  })
    -})
    -
    -function once (fn) {
    -  var f = function () {
    -    if (f.called) return f.value
    -    f.called = true
    -    return f.value = fn.apply(this, arguments)
    -  }
    -  f.called = false
    -  return f
    -}
    diff --git a/node_modules/duplexify/node_modules/once/package.json b/node_modules/duplexify/node_modules/once/package.json
    deleted file mode 100644
    index 7d923ba..0000000
    --- a/node_modules/duplexify/node_modules/once/package.json
    +++ /dev/null
    @@ -1,96 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "once@~1.3.0",
    -        "scope": null,
    -        "escapedName": "once",
    -        "name": "once",
    -        "rawSpec": "~1.3.0",
    -        "spec": ">=1.3.0 <1.4.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/duplexify/node_modules/end-of-stream"
    -    ]
    -  ],
    -  "_from": "once@>=1.3.0 <1.4.0",
    -  "_id": "once@1.3.3",
    -  "_inCache": true,
    -  "_location": "/duplexify/once",
    -  "_nodeVersion": "4.0.0",
    -  "_npmUser": {
    -    "name": "isaacs",
    -    "email": "i@izs.me"
    -  },
    -  "_npmVersion": "3.3.2",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "once@~1.3.0",
    -    "scope": null,
    -    "escapedName": "once",
    -    "name": "once",
    -    "rawSpec": "~1.3.0",
    -    "spec": ">=1.3.0 <1.4.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/duplexify/end-of-stream"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz",
    -  "_shasum": "b2e261557ce4c314ec8304f3fa82663e4297ca20",
    -  "_shrinkwrap": null,
    -  "_spec": "once@~1.3.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/duplexify/node_modules/end-of-stream",
    -  "author": {
    -    "name": "Isaac Z. Schlueter",
    -    "email": "i@izs.me",
    -    "url": "http://blog.izs.me/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/isaacs/once/issues"
    -  },
    -  "dependencies": {
    -    "wrappy": "1"
    -  },
    -  "description": "Run a function exactly one time",
    -  "devDependencies": {
    -    "tap": "^1.2.0"
    -  },
    -  "directories": {
    -    "test": "test"
    -  },
    -  "dist": {
    -    "shasum": "b2e261557ce4c314ec8304f3fa82663e4297ca20",
    -    "tarball": "https://registry.npmjs.org/once/-/once-1.3.3.tgz"
    -  },
    -  "files": [
    -    "once.js"
    -  ],
    -  "gitHead": "2ad558657e17fafd24803217ba854762842e4178",
    -  "homepage": "https://github.com/isaacs/once#readme",
    -  "keywords": [
    -    "once",
    -    "function",
    -    "one",
    -    "single"
    -  ],
    -  "license": "ISC",
    -  "main": "once.js",
    -  "maintainers": [
    -    {
    -      "name": "isaacs",
    -      "email": "i@izs.me"
    -    }
    -  ],
    -  "name": "once",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/isaacs/once.git"
    -  },
    -  "scripts": {
    -    "test": "tap test/*.js"
    -  },
    -  "version": "1.3.3"
    -}
    diff --git a/node_modules/duplexify/node_modules/readable-stream/.npmignore b/node_modules/duplexify/node_modules/readable-stream/.npmignore
    deleted file mode 100644
    index 6d270c6..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/.npmignore
    +++ /dev/null
    @@ -1,9 +0,0 @@
    -build/
    -test/
    -examples/
    -fs.js
    -zlib.js
    -.zuul.yml
    -.nyc_output
    -coverage
    -docs/
    diff --git a/node_modules/duplexify/node_modules/readable-stream/.travis.yml b/node_modules/duplexify/node_modules/readable-stream/.travis.yml
    deleted file mode 100644
    index 84504c9..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/.travis.yml
    +++ /dev/null
    @@ -1,49 +0,0 @@
    -sudo: false
    -language: node_js
    -before_install:
    -  - npm install -g npm@2
    -  - npm install -g npm
    -notifications:
    -  email: false
    -matrix:
    -  fast_finish: true
    -  include:
    -  - node_js: '0.8'
    -    env: TASK=test
    -  - node_js: '0.10'
    -    env: TASK=test
    -  - node_js: '0.11'
    -    env: TASK=test
    -  - node_js: '0.12'
    -    env: TASK=test
    -  - node_js: 1
    -    env: TASK=test
    -  - node_js: 2
    -    env: TASK=test
    -  - node_js: 3
    -    env: TASK=test
    -  - node_js: 4
    -    env: TASK=test
    -  - node_js: 5
    -    env: TASK=test
    -  - node_js: 6
    -    env: TASK=test
    -  - node_js: 5
    -    env: TASK=browser BROWSER_NAME=android BROWSER_VERSION="4.0..latest"
    -  - node_js: 5
    -    env: TASK=browser BROWSER_NAME=ie BROWSER_VERSION="9..latest"
    -  - node_js: 5
    -    env: TASK=browser BROWSER_NAME=opera BROWSER_VERSION="11..latest"
    -  - node_js: 5
    -    env: TASK=browser BROWSER_NAME=chrome BROWSER_VERSION="-3..latest"
    -  - node_js: 5
    -    env: TASK=browser BROWSER_NAME=firefox BROWSER_VERSION="-3..latest"
    -  - node_js: 5
    -    env: TASK=browser BROWSER_NAME=safari BROWSER_VERSION="5..latest"
    -  - node_js: 5
    -    env: TASK=browser BROWSER_NAME=microsoftedge BROWSER_VERSION=latest
    -script: "npm run $TASK"
    -env:
    -  global:
    -  - secure: rE2Vvo7vnjabYNULNyLFxOyt98BoJexDqsiOnfiD6kLYYsiQGfr/sbZkPMOFm9qfQG7pjqx+zZWZjGSswhTt+626C0t/njXqug7Yps4c3dFblzGfreQHp7wNX5TFsvrxd6dAowVasMp61sJcRnB2w8cUzoe3RAYUDHyiHktwqMc=
    -  - secure: g9YINaKAdMatsJ28G9jCGbSaguXCyxSTy+pBO6Ch0Cf57ZLOTka3HqDj8p3nV28LUIHZ3ut5WO43CeYKwt4AUtLpBS3a0dndHdY6D83uY6b2qh5hXlrcbeQTq2cvw2y95F7hm4D1kwrgZ7ViqaKggRcEupAL69YbJnxeUDKWEdI=
    diff --git a/node_modules/duplexify/node_modules/readable-stream/CONTRIBUTING.md b/node_modules/duplexify/node_modules/readable-stream/CONTRIBUTING.md
    deleted file mode 100644
    index f478d58..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/CONTRIBUTING.md
    +++ /dev/null
    @@ -1,38 +0,0 @@
    -# Developer's Certificate of Origin 1.1
    -
    -By making a contribution to this project, I certify that:
    -
    -* (a) The contribution was created in whole or in part by me and I
    -  have the right to submit it under the open source license
    -  indicated in the file; or
    -
    -* (b) The contribution is based upon previous work that, to the best
    -  of my knowledge, is covered under an appropriate open source
    -  license and I have the right under that license to submit that
    -  work with modifications, whether created in whole or in part
    -  by me, under the same open source license (unless I am
    -  permitted to submit under a different license), as indicated
    -  in the file; or
    -
    -* (c) The contribution was provided directly to me by some other
    -  person who certified (a), (b) or (c) and I have not modified
    -  it.
    -
    -* (d) I understand and agree that this project and the contribution
    -  are public and that a record of the contribution (including all
    -  personal information I submit with it, including my sign-off) is
    -  maintained indefinitely and may be redistributed consistent with
    -  this project or the open source license(s) involved.
    -
    -## Moderation Policy
    -
    -The [Node.js Moderation Policy] applies to this WG.
    -
    -## Code of Conduct
    -
    -The [Node.js Code of Conduct][] applies to this WG.
    -
    -[Node.js Code of Conduct]:
    -https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md
    -[Node.js Moderation Policy]:
    -https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md
    diff --git a/node_modules/duplexify/node_modules/readable-stream/GOVERNANCE.md b/node_modules/duplexify/node_modules/readable-stream/GOVERNANCE.md
    deleted file mode 100644
    index 16ffb93..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/GOVERNANCE.md
    +++ /dev/null
    @@ -1,136 +0,0 @@
    -### Streams Working Group
    -
    -The Node.js Streams is jointly governed by a Working Group
    -(WG)
    -that is responsible for high-level guidance of the project.
    -
    -The WG has final authority over this project including:
    -
    -* Technical direction
    -* Project governance and process (including this policy)
    -* Contribution policy
    -* GitHub repository hosting
    -* Conduct guidelines
    -* Maintaining the list of additional Collaborators
    -
    -For the current list of WG members, see the project
    -[README.md](./README.md#current-project-team-members).
    -
    -### Collaborators
    -
    -The readable-stream GitHub repository is
    -maintained by the WG and additional Collaborators who are added by the
    -WG on an ongoing basis.
    -
    -Individuals making significant and valuable contributions are made
    -Collaborators and given commit-access to the project. These
    -individuals are identified by the WG and their addition as
    -Collaborators is discussed during the WG meeting.
    -
    -_Note:_ If you make a significant contribution and are not considered
    -for commit-access log an issue or contact a WG member directly and it
    -will be brought up in the next WG meeting.
    -
    -Modifications of the contents of the readable-stream repository are
    -made on
    -a collaborative basis. Anybody with a GitHub account may propose a
    -modification via pull request and it will be considered by the project
    -Collaborators. All pull requests must be reviewed and accepted by a
    -Collaborator with sufficient expertise who is able to take full
    -responsibility for the change. In the case of pull requests proposed
    -by an existing Collaborator, an additional Collaborator is required
    -for sign-off. Consensus should be sought if additional Collaborators
    -participate and there is disagreement around a particular
    -modification. See _Consensus Seeking Process_ below for further detail
    -on the consensus model used for governance.
    -
    -Collaborators may opt to elevate significant or controversial
    -modifications, or modifications that have not found consensus to the
    -WG for discussion by assigning the ***WG-agenda*** tag to a pull
    -request or issue. The WG should serve as the final arbiter where
    -required.
    -
    -For the current list of Collaborators, see the project
    -[README.md](./README.md#members).
    -
    -### WG Membership
    -
    -WG seats are not time-limited.  There is no fixed size of the WG.
    -However, the expected target is between 6 and 12, to ensure adequate
    -coverage of important areas of expertise, balanced with the ability to
    -make decisions efficiently.
    -
    -There is no specific set of requirements or qualifications for WG
    -membership beyond these rules.
    -
    -The WG may add additional members to the WG by unanimous consensus.
    -
    -A WG member may be removed from the WG by voluntary resignation, or by
    -unanimous consensus of all other WG members.
    -
    -Changes to WG membership should be posted in the agenda, and may be
    -suggested as any other agenda item (see "WG Meetings" below).
    -
    -If an addition or removal is proposed during a meeting, and the full
    -WG is not in attendance to participate, then the addition or removal
    -is added to the agenda for the subsequent meeting.  This is to ensure
    -that all members are given the opportunity to participate in all
    -membership decisions.  If a WG member is unable to attend a meeting
    -where a planned membership decision is being made, then their consent
    -is assumed.
    -
    -No more than 1/3 of the WG members may be affiliated with the same
    -employer.  If removal or resignation of a WG member, or a change of
    -employment by a WG member, creates a situation where more than 1/3 of
    -the WG membership shares an employer, then the situation must be
    -immediately remedied by the resignation or removal of one or more WG
    -members affiliated with the over-represented employer(s).
    -
    -### WG Meetings
    -
    -The WG meets occasionally on a Google Hangout On Air. A designated moderator
    -approved by the WG runs the meeting. Each meeting should be
    -published to YouTube.
    -
    -Items are added to the WG agenda that are considered contentious or
    -are modifications of governance, contribution policy, WG membership,
    -or release process.
    -
    -The intention of the agenda is not to approve or review all patches;
    -that should happen continuously on GitHub and be handled by the larger
    -group of Collaborators.
    -
    -Any community member or contributor can ask that something be added to
    -the next meeting's agenda by logging a GitHub Issue. Any Collaborator,
    -WG member or the moderator can add the item to the agenda by adding
    -the ***WG-agenda*** tag to the issue.
    -
    -Prior to each WG meeting the moderator will share the Agenda with
    -members of the WG. WG members can add any items they like to the
    -agenda at the beginning of each meeting. The moderator and the WG
    -cannot veto or remove items.
    -
    -The WG may invite persons or representatives from certain projects to
    -participate in a non-voting capacity.
    -
    -The moderator is responsible for summarizing the discussion of each
    -agenda item and sends it as a pull request after the meeting.
    -
    -### Consensus Seeking Process
    -
    -The WG follows a
    -[Consensus
    -Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making)
    -decision-making model.
    -
    -When an agenda item has appeared to reach a consensus the moderator
    -will ask "Does anyone object?" as a final call for dissent from the
    -consensus.
    -
    -If an agenda item cannot reach a consensus a WG member can call for
    -either a closing vote or a vote to table the issue to the next
    -meeting. The call for a vote must be seconded by a majority of the WG
    -or else the discussion will continue. Simple majority wins.
    -
    -Note that changes to WG membership require a majority consensus.  See
    -"WG Membership" above.
    diff --git a/node_modules/duplexify/node_modules/readable-stream/LICENSE b/node_modules/duplexify/node_modules/readable-stream/LICENSE
    deleted file mode 100644
    index 2873b3b..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/LICENSE
    +++ /dev/null
    @@ -1,47 +0,0 @@
    -Node.js is licensed for use as follows:
    -
    -"""
    -Copyright Node.js 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.
    -"""
    -
    -This license applies to parts of Node.js originating from the
    -https://github.com/joyent/node repository:
    -
    -"""
    -Copyright Joyent, Inc. and other Node 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/duplexify/node_modules/readable-stream/README.md b/node_modules/duplexify/node_modules/readable-stream/README.md
    deleted file mode 100644
    index 6cc54ca..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/README.md
    +++ /dev/null
    @@ -1,57 +0,0 @@
    -# readable-stream
    -
    -***Node-core v7.0.0 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream)
    -
    -
    -[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/)
    -[![NPM](https://nodei.co/npm-dl/readable-stream.png?&months=6&height=3)](https://nodei.co/npm/readable-stream/)
    -
    -
    -[![Sauce Test Status](https://saucelabs.com/browser-matrix/readable-stream.svg)](https://saucelabs.com/u/readable-stream)
    -
    -```bash
    -npm install --save readable-stream
    -```
    -
    -***Node-core streams for userland***
    -
    -This package is a mirror of the Streams2 and Streams3 implementations in
    -Node-core.
    -
    -Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v7.3.0/docs/api/).
    -
    -If you want to guarantee a stable streams base, regardless of what version of
    -Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html).
    -
    -As of version 2.0.0 **readable-stream** uses semantic versioning.
    -
    -# Streams Working Group
    -
    -`readable-stream` is maintained by the Streams Working Group, which
    -oversees the development and maintenance of the Streams API within
    -Node.js. The responsibilities of the Streams Working Group include:
    -
    -* Addressing stream issues on the Node.js issue tracker.
    -* Authoring and editing stream documentation within the Node.js project.
    -* Reviewing changes to stream subclasses within the Node.js project.
    -* Redirecting changes to streams from the Node.js project to this
    -  project.
    -* Assisting in the implementation of stream providers within Node.js.
    -* Recommending versions of `readable-stream` to be included in Node.js.
    -* Messaging about the future of streams to give the community advance
    -  notice of changes.
    -
    -
    -## Team Members
    -
    -* **Chris Dickinson** ([@chrisdickinson](https://github.com/chrisdickinson)) <christopher.s.dickinson@gmail.com>
    -  - Release GPG key: 9554F04D7259F04124DE6B476D5A82AC7E37093B
    -* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) <calvin.metcalf@gmail.com>
    -  - Release GPG key: F3EF5F62A87FC27A22E643F714CE4FF5015AA242
    -* **Rod Vagg** ([@rvagg](https://github.com/rvagg)) <rod@vagg.org>
    -  - Release GPG key: DD8F2338BAE7501E3DD5AC78C273792F7D83545D
    -* **Sam Newman** ([@sonewman](https://github.com/sonewman)) <newmansam@outlook.com>
    -* **Mathias Buus** ([@mafintosh](https://github.com/mafintosh)) <mathiasbuus@gmail.com>
    -* **Domenic Denicola** ([@domenic](https://github.com/domenic)) <d@domenic.me>
    -* **Matteo Collina** ([@mcollina](https://github.com/mcollina)) <matteo.collina@gmail.com>
    -  - Release GPG key: 3ABC01543F22DD2239285CDD818674489FBC127E
    diff --git a/node_modules/duplexify/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md b/node_modules/duplexify/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md
    deleted file mode 100644
    index 83275f1..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md
    +++ /dev/null
    @@ -1,60 +0,0 @@
    -# streams WG Meeting 2015-01-30
    -
    -## Links
    -
    -* **Google Hangouts Video**: http://www.youtube.com/watch?v=I9nDOSGfwZg
    -* **GitHub Issue**: https://github.com/iojs/readable-stream/issues/106
    -* **Original Minutes Google Doc**: https://docs.google.com/document/d/17aTgLnjMXIrfjgNaTUnHQO7m3xgzHR2VXBTmi03Qii4/
    -
    -## Agenda
    -
    -Extracted from https://github.com/iojs/readable-stream/labels/wg-agenda prior to meeting.
    -
    -* adopt a charter [#105](https://github.com/iojs/readable-stream/issues/105)
    -* release and versioning strategy [#101](https://github.com/iojs/readable-stream/issues/101)
    -* simpler stream creation [#102](https://github.com/iojs/readable-stream/issues/102)
    -* proposal: deprecate implicit flowing of streams [#99](https://github.com/iojs/readable-stream/issues/99)
    -
    -## Minutes
    -
    -### adopt a charter
    -
    -* group: +1's all around
    -
    -### What versioning scheme should be adopted?
    -* group: +1’s 3.0.0
    -* domenic+group: pulling in patches from other sources where appropriate
    -* mikeal: version independently, suggesting versions for io.js
    -* mikeal+domenic: work with TC to notify in advance of changes
    -simpler stream creation
    -
    -### streamline creation of streams
    -* sam: streamline creation of streams
    -* domenic: nice simple solution posted
    -  but, we lose the opportunity to change the model
    -  may not be backwards incompatible (double check keys)
    -
    -  **action item:** domenic will check
    -
    -### remove implicit flowing of streams on(‘data’)
    -* add isFlowing / isPaused
    -* mikeal: worrying that we’re documenting polyfill methods – confuses users
    -* domenic: more reflective API is probably good, with warning labels for users
    -* new section for mad scientists (reflective stream access)
    -* calvin: name the “third state”
    -* mikeal: maybe borrow the name from whatwg?
    -* domenic: we’re missing the “third state”
    -* consensus: kind of difficult to name the third state
    -* mikeal: figure out differences in states / compat
    -* mathias: always flow on data – eliminates third state
    -  * explore what it breaks
    -
    -**action items:**
    -* ask isaac for ability to list packages by what public io.js APIs they use (esp. Stream)
    -* ask rod/build for infrastructure
    -* **chris**: explore the “flow on data” approach
    -* add isPaused/isFlowing
    -* add new docs section
    -* move isPaused to that section
    -
    -
    diff --git a/node_modules/duplexify/node_modules/readable-stream/duplex.js b/node_modules/duplexify/node_modules/readable-stream/duplex.js
    deleted file mode 100644
    index ca807af..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/duplex.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -module.exports = require("./lib/_stream_duplex.js")
    diff --git a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/duplexify/node_modules/readable-stream/lib/_stream_duplex.js
    deleted file mode 100644
    index 736693b..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_duplex.js
    +++ /dev/null
    @@ -1,75 +0,0 @@
    -// a duplex stream is just a stream that is both readable and writable.
    -// Since JS doesn't have multiple prototypal inheritance, this class
    -// prototypally inherits from Readable, and then parasitically from
    -// Writable.
    -
    -'use strict';
    -
    -/**/
    -
    -var objectKeys = Object.keys || function (obj) {
    -  var keys = [];
    -  for (var key in obj) {
    -    keys.push(key);
    -  }return keys;
    -};
    -/**/
    -
    -module.exports = Duplex;
    -
    -/**/
    -var processNextTick = require('process-nextick-args');
    -/**/
    -
    -/**/
    -var util = require('core-util-is');
    -util.inherits = require('inherits');
    -/**/
    -
    -var Readable = require('./_stream_readable');
    -var Writable = require('./_stream_writable');
    -
    -util.inherits(Duplex, Readable);
    -
    -var keys = objectKeys(Writable.prototype);
    -for (var v = 0; v < keys.length; v++) {
    -  var method = keys[v];
    -  if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
    -}
    -
    -function Duplex(options) {
    -  if (!(this instanceof Duplex)) return new Duplex(options);
    -
    -  Readable.call(this, options);
    -  Writable.call(this, options);
    -
    -  if (options && options.readable === false) this.readable = false;
    -
    -  if (options && options.writable === false) this.writable = false;
    -
    -  this.allowHalfOpen = true;
    -  if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;
    -
    -  this.once('end', onend);
    -}
    -
    -// the no-half-open enforcer
    -function onend() {
    -  // if we allow half-open state, or if the writable side ended,
    -  // then we're ok.
    -  if (this.allowHalfOpen || this._writableState.ended) return;
    -
    -  // no more data can be written.
    -  // But allow more writes to happen in this tick.
    -  processNextTick(onEndNT, this);
    -}
    -
    -function onEndNT(self) {
    -  self.end();
    -}
    -
    -function forEach(xs, f) {
    -  for (var i = 0, l = xs.length; i < l; i++) {
    -    f(xs[i], i);
    -  }
    -}
    \ No newline at end of file
    diff --git a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/duplexify/node_modules/readable-stream/lib/_stream_passthrough.js
    deleted file mode 100644
    index d06f71f..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_passthrough.js
    +++ /dev/null
    @@ -1,26 +0,0 @@
    -// a passthrough stream.
    -// basically just the most minimal sort of Transform stream.
    -// Every written chunk gets output as-is.
    -
    -'use strict';
    -
    -module.exports = PassThrough;
    -
    -var Transform = require('./_stream_transform');
    -
    -/**/
    -var util = require('core-util-is');
    -util.inherits = require('inherits');
    -/**/
    -
    -util.inherits(PassThrough, Transform);
    -
    -function PassThrough(options) {
    -  if (!(this instanceof PassThrough)) return new PassThrough(options);
    -
    -  Transform.call(this, options);
    -}
    -
    -PassThrough.prototype._transform = function (chunk, encoding, cb) {
    -  cb(null, chunk);
    -};
    \ No newline at end of file
    diff --git a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js
    deleted file mode 100644
    index 3a7d42d..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_readable.js
    +++ /dev/null
    @@ -1,941 +0,0 @@
    -'use strict';
    -
    -module.exports = Readable;
    -
    -/**/
    -var processNextTick = require('process-nextick-args');
    -/**/
    -
    -/**/
    -var isArray = require('isarray');
    -/**/
    -
    -/**/
    -var Duplex;
    -/**/
    -
    -Readable.ReadableState = ReadableState;
    -
    -/**/
    -var EE = require('events').EventEmitter;
    -
    -var EElistenerCount = function (emitter, type) {
    -  return emitter.listeners(type).length;
    -};
    -/**/
    -
    -/**/
    -var Stream;
    -(function () {
    -  try {
    -    Stream = require('st' + 'ream');
    -  } catch (_) {} finally {
    -    if (!Stream) Stream = require('events').EventEmitter;
    -  }
    -})();
    -/**/
    -
    -var Buffer = require('buffer').Buffer;
    -/**/
    -var bufferShim = require('buffer-shims');
    -/**/
    -
    -/**/
    -var util = require('core-util-is');
    -util.inherits = require('inherits');
    -/**/
    -
    -/**/
    -var debugUtil = require('util');
    -var debug = void 0;
    -if (debugUtil && debugUtil.debuglog) {
    -  debug = debugUtil.debuglog('stream');
    -} else {
    -  debug = function () {};
    -}
    -/**/
    -
    -var BufferList = require('./internal/streams/BufferList');
    -var StringDecoder;
    -
    -util.inherits(Readable, Stream);
    -
    -function prependListener(emitter, event, fn) {
    -  // Sadly this is not cacheable as some libraries bundle their own
    -  // event emitter implementation with them.
    -  if (typeof emitter.prependListener === 'function') {
    -    return emitter.prependListener(event, fn);
    -  } else {
    -    // This is a hack to make sure that our error handler is attached before any
    -    // userland ones.  NEVER DO THIS. This is here only because this code needs
    -    // to continue to work with older versions of Node.js that do not include
    -    // the prependListener() method. The goal is to eventually remove this hack.
    -    if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
    -  }
    -}
    -
    -function ReadableState(options, stream) {
    -  Duplex = Duplex || require('./_stream_duplex');
    -
    -  options = options || {};
    -
    -  // object stream flag. Used to make read(n) ignore n and to
    -  // make all the buffer merging and length checks go away
    -  this.objectMode = !!options.objectMode;
    -
    -  if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode;
    -
    -  // the point at which it stops calling _read() to fill the buffer
    -  // Note: 0 is a valid value, means "don't call _read preemptively ever"
    -  var hwm = options.highWaterMark;
    -  var defaultHwm = this.objectMode ? 16 : 16 * 1024;
    -  this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;
    -
    -  // cast to ints.
    -  this.highWaterMark = ~ ~this.highWaterMark;
    -
    -  // A linked list is used to store data chunks instead of an array because the
    -  // linked list can remove elements from the beginning faster than
    -  // array.shift()
    -  this.buffer = new BufferList();
    -  this.length = 0;
    -  this.pipes = null;
    -  this.pipesCount = 0;
    -  this.flowing = null;
    -  this.ended = false;
    -  this.endEmitted = false;
    -  this.reading = false;
    -
    -  // a flag to be able to tell if the onwrite cb is called immediately,
    -  // or on a later tick.  We set this to true at first, because any
    -  // actions that shouldn't happen until "later" should generally also
    -  // not happen before the first write call.
    -  this.sync = true;
    -
    -  // whenever we return null, then we set a flag to say
    -  // that we're awaiting a 'readable' event emission.
    -  this.needReadable = false;
    -  this.emittedReadable = false;
    -  this.readableListening = false;
    -  this.resumeScheduled = false;
    -
    -  // Crypto is kind of old and crusty.  Historically, its default string
    -  // encoding is 'binary' so we have to make this configurable.
    -  // Everything else in the universe uses 'utf8', though.
    -  this.defaultEncoding = options.defaultEncoding || 'utf8';
    -
    -  // when piping, we only care about 'readable' events that happen
    -  // after read()ing all the bytes and not getting any pushback.
    -  this.ranOut = false;
    -
    -  // the number of writers that are awaiting a drain event in .pipe()s
    -  this.awaitDrain = 0;
    -
    -  // if true, a maybeReadMore has been scheduled
    -  this.readingMore = false;
    -
    -  this.decoder = null;
    -  this.encoding = null;
    -  if (options.encoding) {
    -    if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
    -    this.decoder = new StringDecoder(options.encoding);
    -    this.encoding = options.encoding;
    -  }
    -}
    -
    -function Readable(options) {
    -  Duplex = Duplex || require('./_stream_duplex');
    -
    -  if (!(this instanceof Readable)) return new Readable(options);
    -
    -  this._readableState = new ReadableState(options, this);
    -
    -  // legacy
    -  this.readable = true;
    -
    -  if (options && typeof options.read === 'function') this._read = options.read;
    -
    -  Stream.call(this);
    -}
    -
    -// Manually shove something into the read() buffer.
    -// This returns true if the highWaterMark has not been hit yet,
    -// similar to how Writable.write() returns true if you should
    -// write() some more.
    -Readable.prototype.push = function (chunk, encoding) {
    -  var state = this._readableState;
    -
    -  if (!state.objectMode && typeof chunk === 'string') {
    -    encoding = encoding || state.defaultEncoding;
    -    if (encoding !== state.encoding) {
    -      chunk = bufferShim.from(chunk, encoding);
    -      encoding = '';
    -    }
    -  }
    -
    -  return readableAddChunk(this, state, chunk, encoding, false);
    -};
    -
    -// Unshift should *always* be something directly out of read()
    -Readable.prototype.unshift = function (chunk) {
    -  var state = this._readableState;
    -  return readableAddChunk(this, state, chunk, '', true);
    -};
    -
    -Readable.prototype.isPaused = function () {
    -  return this._readableState.flowing === false;
    -};
    -
    -function readableAddChunk(stream, state, chunk, encoding, addToFront) {
    -  var er = chunkInvalid(state, chunk);
    -  if (er) {
    -    stream.emit('error', er);
    -  } else if (chunk === null) {
    -    state.reading = false;
    -    onEofChunk(stream, state);
    -  } else if (state.objectMode || chunk && chunk.length > 0) {
    -    if (state.ended && !addToFront) {
    -      var e = new Error('stream.push() after EOF');
    -      stream.emit('error', e);
    -    } else if (state.endEmitted && addToFront) {
    -      var _e = new Error('stream.unshift() after end event');
    -      stream.emit('error', _e);
    -    } else {
    -      var skipAdd;
    -      if (state.decoder && !addToFront && !encoding) {
    -        chunk = state.decoder.write(chunk);
    -        skipAdd = !state.objectMode && chunk.length === 0;
    -      }
    -
    -      if (!addToFront) state.reading = false;
    -
    -      // Don't add to the buffer if we've decoded to an empty string chunk and
    -      // we're not in object mode
    -      if (!skipAdd) {
    -        // if we want the data now, just emit it.
    -        if (state.flowing && state.length === 0 && !state.sync) {
    -          stream.emit('data', chunk);
    -          stream.read(0);
    -        } else {
    -          // update the buffer info.
    -          state.length += state.objectMode ? 1 : chunk.length;
    -          if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);
    -
    -          if (state.needReadable) emitReadable(stream);
    -        }
    -      }
    -
    -      maybeReadMore(stream, state);
    -    }
    -  } else if (!addToFront) {
    -    state.reading = false;
    -  }
    -
    -  return needMoreData(state);
    -}
    -
    -// if it's past the high water mark, we can push in some more.
    -// Also, if we have no data yet, we can stand some
    -// more bytes.  This is to work around cases where hwm=0,
    -// such as the repl.  Also, if the push() triggered a
    -// readable event, and the user called read(largeNumber) such that
    -// needReadable was set, then we ought to push more, so that another
    -// 'readable' event will be triggered.
    -function needMoreData(state) {
    -  return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);
    -}
    -
    -// backwards compatibility.
    -Readable.prototype.setEncoding = function (enc) {
    -  if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
    -  this._readableState.decoder = new StringDecoder(enc);
    -  this._readableState.encoding = enc;
    -  return this;
    -};
    -
    -// Don't raise the hwm > 8MB
    -var MAX_HWM = 0x800000;
    -function computeNewHighWaterMark(n) {
    -  if (n >= MAX_HWM) {
    -    n = MAX_HWM;
    -  } else {
    -    // Get the next highest power of 2 to prevent increasing hwm excessively in
    -    // tiny amounts
    -    n--;
    -    n |= n >>> 1;
    -    n |= n >>> 2;
    -    n |= n >>> 4;
    -    n |= n >>> 8;
    -    n |= n >>> 16;
    -    n++;
    -  }
    -  return n;
    -}
    -
    -// This function is designed to be inlinable, so please take care when making
    -// changes to the function body.
    -function howMuchToRead(n, state) {
    -  if (n <= 0 || state.length === 0 && state.ended) return 0;
    -  if (state.objectMode) return 1;
    -  if (n !== n) {
    -    // Only flow one buffer at a time
    -    if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;
    -  }
    -  // If we're asking for more than the current hwm, then raise the hwm.
    -  if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
    -  if (n <= state.length) return n;
    -  // Don't have enough
    -  if (!state.ended) {
    -    state.needReadable = true;
    -    return 0;
    -  }
    -  return state.length;
    -}
    -
    -// you can override either this method, or the async _read(n) below.
    -Readable.prototype.read = function (n) {
    -  debug('read', n);
    -  n = parseInt(n, 10);
    -  var state = this._readableState;
    -  var nOrig = n;
    -
    -  if (n !== 0) state.emittedReadable = false;
    -
    -  // if we're doing read(0) to trigger a readable event, but we
    -  // already have a bunch of data in the buffer, then just trigger
    -  // the 'readable' event and move on.
    -  if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
    -    debug('read: emitReadable', state.length, state.ended);
    -    if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);
    -    return null;
    -  }
    -
    -  n = howMuchToRead(n, state);
    -
    -  // if we've ended, and we're now clear, then finish it up.
    -  if (n === 0 && state.ended) {
    -    if (state.length === 0) endReadable(this);
    -    return null;
    -  }
    -
    -  // All the actual chunk generation logic needs to be
    -  // *below* the call to _read.  The reason is that in certain
    -  // synthetic stream cases, such as passthrough streams, _read
    -  // may be a completely synchronous operation which may change
    -  // the state of the read buffer, providing enough data when
    -  // before there was *not* enough.
    -  //
    -  // So, the steps are:
    -  // 1. Figure out what the state of things will be after we do
    -  // a read from the buffer.
    -  //
    -  // 2. If that resulting state will trigger a _read, then call _read.
    -  // Note that this may be asynchronous, or synchronous.  Yes, it is
    -  // deeply ugly to write APIs this way, but that still doesn't mean
    -  // that the Readable class should behave improperly, as streams are
    -  // designed to be sync/async agnostic.
    -  // Take note if the _read call is sync or async (ie, if the read call
    -  // has returned yet), so that we know whether or not it's safe to emit
    -  // 'readable' etc.
    -  //
    -  // 3. Actually pull the requested chunks out of the buffer and return.
    -
    -  // if we need a readable event, then we need to do some reading.
    -  var doRead = state.needReadable;
    -  debug('need readable', doRead);
    -
    -  // if we currently have less than the highWaterMark, then also read some
    -  if (state.length === 0 || state.length - n < state.highWaterMark) {
    -    doRead = true;
    -    debug('length less than watermark', doRead);
    -  }
    -
    -  // however, if we've ended, then there's no point, and if we're already
    -  // reading, then it's unnecessary.
    -  if (state.ended || state.reading) {
    -    doRead = false;
    -    debug('reading or ended', doRead);
    -  } else if (doRead) {
    -    debug('do read');
    -    state.reading = true;
    -    state.sync = true;
    -    // if the length is currently zero, then we *need* a readable event.
    -    if (state.length === 0) state.needReadable = true;
    -    // call internal read method
    -    this._read(state.highWaterMark);
    -    state.sync = false;
    -    // If _read pushed data synchronously, then `reading` will be false,
    -    // and we need to re-evaluate how much data we can return to the user.
    -    if (!state.reading) n = howMuchToRead(nOrig, state);
    -  }
    -
    -  var ret;
    -  if (n > 0) ret = fromList(n, state);else ret = null;
    -
    -  if (ret === null) {
    -    state.needReadable = true;
    -    n = 0;
    -  } else {
    -    state.length -= n;
    -  }
    -
    -  if (state.length === 0) {
    -    // If we have nothing in the buffer, then we want to know
    -    // as soon as we *do* get something into the buffer.
    -    if (!state.ended) state.needReadable = true;
    -
    -    // If we tried to read() past the EOF, then emit end on the next tick.
    -    if (nOrig !== n && state.ended) endReadable(this);
    -  }
    -
    -  if (ret !== null) this.emit('data', ret);
    -
    -  return ret;
    -};
    -
    -function chunkInvalid(state, chunk) {
    -  var er = null;
    -  if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {
    -    er = new TypeError('Invalid non-string/buffer chunk');
    -  }
    -  return er;
    -}
    -
    -function onEofChunk(stream, state) {
    -  if (state.ended) return;
    -  if (state.decoder) {
    -    var chunk = state.decoder.end();
    -    if (chunk && chunk.length) {
    -      state.buffer.push(chunk);
    -      state.length += state.objectMode ? 1 : chunk.length;
    -    }
    -  }
    -  state.ended = true;
    -
    -  // emit 'readable' now to make sure it gets picked up.
    -  emitReadable(stream);
    -}
    -
    -// Don't emit readable right away in sync mode, because this can trigger
    -// another read() call => stack overflow.  This way, it might trigger
    -// a nextTick recursion warning, but that's not so bad.
    -function emitReadable(stream) {
    -  var state = stream._readableState;
    -  state.needReadable = false;
    -  if (!state.emittedReadable) {
    -    debug('emitReadable', state.flowing);
    -    state.emittedReadable = true;
    -    if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream);
    -  }
    -}
    -
    -function emitReadable_(stream) {
    -  debug('emit readable');
    -  stream.emit('readable');
    -  flow(stream);
    -}
    -
    -// at this point, the user has presumably seen the 'readable' event,
    -// and called read() to consume some data.  that may have triggered
    -// in turn another _read(n) call, in which case reading = true if
    -// it's in progress.
    -// However, if we're not ended, or reading, and the length < hwm,
    -// then go ahead and try to read some more preemptively.
    -function maybeReadMore(stream, state) {
    -  if (!state.readingMore) {
    -    state.readingMore = true;
    -    processNextTick(maybeReadMore_, stream, state);
    -  }
    -}
    -
    -function maybeReadMore_(stream, state) {
    -  var len = state.length;
    -  while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {
    -    debug('maybeReadMore read 0');
    -    stream.read(0);
    -    if (len === state.length)
    -      // didn't get any data, stop spinning.
    -      break;else len = state.length;
    -  }
    -  state.readingMore = false;
    -}
    -
    -// abstract method.  to be overridden in specific implementation classes.
    -// call cb(er, data) where data is <= n in length.
    -// for virtual (non-string, non-buffer) streams, "length" is somewhat
    -// arbitrary, and perhaps not very meaningful.
    -Readable.prototype._read = function (n) {
    -  this.emit('error', new Error('_read() is not implemented'));
    -};
    -
    -Readable.prototype.pipe = function (dest, pipeOpts) {
    -  var src = this;
    -  var state = this._readableState;
    -
    -  switch (state.pipesCount) {
    -    case 0:
    -      state.pipes = dest;
    -      break;
    -    case 1:
    -      state.pipes = [state.pipes, dest];
    -      break;
    -    default:
    -      state.pipes.push(dest);
    -      break;
    -  }
    -  state.pipesCount += 1;
    -  debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);
    -
    -  var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
    -
    -  var endFn = doEnd ? onend : cleanup;
    -  if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn);
    -
    -  dest.on('unpipe', onunpipe);
    -  function onunpipe(readable) {
    -    debug('onunpipe');
    -    if (readable === src) {
    -      cleanup();
    -    }
    -  }
    -
    -  function onend() {
    -    debug('onend');
    -    dest.end();
    -  }
    -
    -  // when the dest drains, it reduces the awaitDrain counter
    -  // on the source.  This would be more elegant with a .once()
    -  // handler in flow(), but adding and removing repeatedly is
    -  // too slow.
    -  var ondrain = pipeOnDrain(src);
    -  dest.on('drain', ondrain);
    -
    -  var cleanedUp = false;
    -  function cleanup() {
    -    debug('cleanup');
    -    // cleanup event handlers once the pipe is broken
    -    dest.removeListener('close', onclose);
    -    dest.removeListener('finish', onfinish);
    -    dest.removeListener('drain', ondrain);
    -    dest.removeListener('error', onerror);
    -    dest.removeListener('unpipe', onunpipe);
    -    src.removeListener('end', onend);
    -    src.removeListener('end', cleanup);
    -    src.removeListener('data', ondata);
    -
    -    cleanedUp = true;
    -
    -    // if the reader is waiting for a drain event from this
    -    // specific writer, then it would cause it to never start
    -    // flowing again.
    -    // So, if this is awaiting a drain, then we just call it now.
    -    // If we don't know, then assume that we are waiting for one.
    -    if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
    -  }
    -
    -  // If the user pushes more data while we're writing to dest then we'll end up
    -  // in ondata again. However, we only want to increase awaitDrain once because
    -  // dest will only emit one 'drain' event for the multiple writes.
    -  // => Introduce a guard on increasing awaitDrain.
    -  var increasedAwaitDrain = false;
    -  src.on('data', ondata);
    -  function ondata(chunk) {
    -    debug('ondata');
    -    increasedAwaitDrain = false;
    -    var ret = dest.write(chunk);
    -    if (false === ret && !increasedAwaitDrain) {
    -      // If the user unpiped during `dest.write()`, it is possible
    -      // to get stuck in a permanently paused state if that write
    -      // also returned false.
    -      // => Check whether `dest` is still a piping destination.
    -      if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
    -        debug('false write response, pause', src._readableState.awaitDrain);
    -        src._readableState.awaitDrain++;
    -        increasedAwaitDrain = true;
    -      }
    -      src.pause();
    -    }
    -  }
    -
    -  // if the dest has an error, then stop piping into it.
    -  // however, don't suppress the throwing behavior for this.
    -  function onerror(er) {
    -    debug('onerror', er);
    -    unpipe();
    -    dest.removeListener('error', onerror);
    -    if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
    -  }
    -
    -  // Make sure our error handler is attached before userland ones.
    -  prependListener(dest, 'error', onerror);
    -
    -  // Both close and finish should trigger unpipe, but only once.
    -  function onclose() {
    -    dest.removeListener('finish', onfinish);
    -    unpipe();
    -  }
    -  dest.once('close', onclose);
    -  function onfinish() {
    -    debug('onfinish');
    -    dest.removeListener('close', onclose);
    -    unpipe();
    -  }
    -  dest.once('finish', onfinish);
    -
    -  function unpipe() {
    -    debug('unpipe');
    -    src.unpipe(dest);
    -  }
    -
    -  // tell the dest that it's being piped to
    -  dest.emit('pipe', src);
    -
    -  // start the flow if it hasn't been started already.
    -  if (!state.flowing) {
    -    debug('pipe resume');
    -    src.resume();
    -  }
    -
    -  return dest;
    -};
    -
    -function pipeOnDrain(src) {
    -  return function () {
    -    var state = src._readableState;
    -    debug('pipeOnDrain', state.awaitDrain);
    -    if (state.awaitDrain) state.awaitDrain--;
    -    if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
    -      state.flowing = true;
    -      flow(src);
    -    }
    -  };
    -}
    -
    -Readable.prototype.unpipe = function (dest) {
    -  var state = this._readableState;
    -
    -  // if we're not piping anywhere, then do nothing.
    -  if (state.pipesCount === 0) return this;
    -
    -  // just one destination.  most common case.
    -  if (state.pipesCount === 1) {
    -    // passed in one, but it's not the right one.
    -    if (dest && dest !== state.pipes) return this;
    -
    -    if (!dest) dest = state.pipes;
    -
    -    // got a match.
    -    state.pipes = null;
    -    state.pipesCount = 0;
    -    state.flowing = false;
    -    if (dest) dest.emit('unpipe', this);
    -    return this;
    -  }
    -
    -  // slow case. multiple pipe destinations.
    -
    -  if (!dest) {
    -    // remove all.
    -    var dests = state.pipes;
    -    var len = state.pipesCount;
    -    state.pipes = null;
    -    state.pipesCount = 0;
    -    state.flowing = false;
    -
    -    for (var i = 0; i < len; i++) {
    -      dests[i].emit('unpipe', this);
    -    }return this;
    -  }
    -
    -  // try to find the right one.
    -  var index = indexOf(state.pipes, dest);
    -  if (index === -1) return this;
    -
    -  state.pipes.splice(index, 1);
    -  state.pipesCount -= 1;
    -  if (state.pipesCount === 1) state.pipes = state.pipes[0];
    -
    -  dest.emit('unpipe', this);
    -
    -  return this;
    -};
    -
    -// set up data events if they are asked for
    -// Ensure readable listeners eventually get something
    -Readable.prototype.on = function (ev, fn) {
    -  var res = Stream.prototype.on.call(this, ev, fn);
    -
    -  if (ev === 'data') {
    -    // Start flowing on next tick if stream isn't explicitly paused
    -    if (this._readableState.flowing !== false) this.resume();
    -  } else if (ev === 'readable') {
    -    var state = this._readableState;
    -    if (!state.endEmitted && !state.readableListening) {
    -      state.readableListening = state.needReadable = true;
    -      state.emittedReadable = false;
    -      if (!state.reading) {
    -        processNextTick(nReadingNextTick, this);
    -      } else if (state.length) {
    -        emitReadable(this, state);
    -      }
    -    }
    -  }
    -
    -  return res;
    -};
    -Readable.prototype.addListener = Readable.prototype.on;
    -
    -function nReadingNextTick(self) {
    -  debug('readable nexttick read 0');
    -  self.read(0);
    -}
    -
    -// pause() and resume() are remnants of the legacy readable stream API
    -// If the user uses them, then switch into old mode.
    -Readable.prototype.resume = function () {
    -  var state = this._readableState;
    -  if (!state.flowing) {
    -    debug('resume');
    -    state.flowing = true;
    -    resume(this, state);
    -  }
    -  return this;
    -};
    -
    -function resume(stream, state) {
    -  if (!state.resumeScheduled) {
    -    state.resumeScheduled = true;
    -    processNextTick(resume_, stream, state);
    -  }
    -}
    -
    -function resume_(stream, state) {
    -  if (!state.reading) {
    -    debug('resume read 0');
    -    stream.read(0);
    -  }
    -
    -  state.resumeScheduled = false;
    -  state.awaitDrain = 0;
    -  stream.emit('resume');
    -  flow(stream);
    -  if (state.flowing && !state.reading) stream.read(0);
    -}
    -
    -Readable.prototype.pause = function () {
    -  debug('call pause flowing=%j', this._readableState.flowing);
    -  if (false !== this._readableState.flowing) {
    -    debug('pause');
    -    this._readableState.flowing = false;
    -    this.emit('pause');
    -  }
    -  return this;
    -};
    -
    -function flow(stream) {
    -  var state = stream._readableState;
    -  debug('flow', state.flowing);
    -  while (state.flowing && stream.read() !== null) {}
    -}
    -
    -// wrap an old-style stream as the async data source.
    -// This is *not* part of the readable stream interface.
    -// It is an ugly unfortunate mess of history.
    -Readable.prototype.wrap = function (stream) {
    -  var state = this._readableState;
    -  var paused = false;
    -
    -  var self = this;
    -  stream.on('end', function () {
    -    debug('wrapped end');
    -    if (state.decoder && !state.ended) {
    -      var chunk = state.decoder.end();
    -      if (chunk && chunk.length) self.push(chunk);
    -    }
    -
    -    self.push(null);
    -  });
    -
    -  stream.on('data', function (chunk) {
    -    debug('wrapped data');
    -    if (state.decoder) chunk = state.decoder.write(chunk);
    -
    -    // don't skip over falsy values in objectMode
    -    if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;
    -
    -    var ret = self.push(chunk);
    -    if (!ret) {
    -      paused = true;
    -      stream.pause();
    -    }
    -  });
    -
    -  // proxy all the other methods.
    -  // important when wrapping filters and duplexes.
    -  for (var i in stream) {
    -    if (this[i] === undefined && typeof stream[i] === 'function') {
    -      this[i] = function (method) {
    -        return function () {
    -          return stream[method].apply(stream, arguments);
    -        };
    -      }(i);
    -    }
    -  }
    -
    -  // proxy certain important events.
    -  var events = ['error', 'close', 'destroy', 'pause', 'resume'];
    -  forEach(events, function (ev) {
    -    stream.on(ev, self.emit.bind(self, ev));
    -  });
    -
    -  // when we try to consume some more bytes, simply unpause the
    -  // underlying stream.
    -  self._read = function (n) {
    -    debug('wrapped _read', n);
    -    if (paused) {
    -      paused = false;
    -      stream.resume();
    -    }
    -  };
    -
    -  return self;
    -};
    -
    -// exposed for testing purposes only.
    -Readable._fromList = fromList;
    -
    -// Pluck off n bytes from an array of buffers.
    -// Length is the combined lengths of all the buffers in the list.
    -// This function is designed to be inlinable, so please take care when making
    -// changes to the function body.
    -function fromList(n, state) {
    -  // nothing buffered
    -  if (state.length === 0) return null;
    -
    -  var ret;
    -  if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
    -    // read it all, truncate the list
    -    if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);
    -    state.buffer.clear();
    -  } else {
    -    // read part of list
    -    ret = fromListPartial(n, state.buffer, state.decoder);
    -  }
    -
    -  return ret;
    -}
    -
    -// Extracts only enough buffered data to satisfy the amount requested.
    -// This function is designed to be inlinable, so please take care when making
    -// changes to the function body.
    -function fromListPartial(n, list, hasStrings) {
    -  var ret;
    -  if (n < list.head.data.length) {
    -    // slice is the same for buffers and strings
    -    ret = list.head.data.slice(0, n);
    -    list.head.data = list.head.data.slice(n);
    -  } else if (n === list.head.data.length) {
    -    // first chunk is a perfect match
    -    ret = list.shift();
    -  } else {
    -    // result spans more than one buffer
    -    ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);
    -  }
    -  return ret;
    -}
    -
    -// Copies a specified amount of characters from the list of buffered data
    -// chunks.
    -// This function is designed to be inlinable, so please take care when making
    -// changes to the function body.
    -function copyFromBufferString(n, list) {
    -  var p = list.head;
    -  var c = 1;
    -  var ret = p.data;
    -  n -= ret.length;
    -  while (p = p.next) {
    -    var str = p.data;
    -    var nb = n > str.length ? str.length : n;
    -    if (nb === str.length) ret += str;else ret += str.slice(0, n);
    -    n -= nb;
    -    if (n === 0) {
    -      if (nb === str.length) {
    -        ++c;
    -        if (p.next) list.head = p.next;else list.head = list.tail = null;
    -      } else {
    -        list.head = p;
    -        p.data = str.slice(nb);
    -      }
    -      break;
    -    }
    -    ++c;
    -  }
    -  list.length -= c;
    -  return ret;
    -}
    -
    -// Copies a specified amount of bytes from the list of buffered data chunks.
    -// This function is designed to be inlinable, so please take care when making
    -// changes to the function body.
    -function copyFromBuffer(n, list) {
    -  var ret = bufferShim.allocUnsafe(n);
    -  var p = list.head;
    -  var c = 1;
    -  p.data.copy(ret);
    -  n -= p.data.length;
    -  while (p = p.next) {
    -    var buf = p.data;
    -    var nb = n > buf.length ? buf.length : n;
    -    buf.copy(ret, ret.length - n, 0, nb);
    -    n -= nb;
    -    if (n === 0) {
    -      if (nb === buf.length) {
    -        ++c;
    -        if (p.next) list.head = p.next;else list.head = list.tail = null;
    -      } else {
    -        list.head = p;
    -        p.data = buf.slice(nb);
    -      }
    -      break;
    -    }
    -    ++c;
    -  }
    -  list.length -= c;
    -  return ret;
    -}
    -
    -function endReadable(stream) {
    -  var state = stream._readableState;
    -
    -  // If we get here before consuming all the bytes, then that is a
    -  // bug in node.  Should never happen.
    -  if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream');
    -
    -  if (!state.endEmitted) {
    -    state.ended = true;
    -    processNextTick(endReadableNT, state, stream);
    -  }
    -}
    -
    -function endReadableNT(state, stream) {
    -  // Check that we didn't get one last unshift.
    -  if (!state.endEmitted && state.length === 0) {
    -    state.endEmitted = true;
    -    stream.readable = false;
    -    stream.emit('end');
    -  }
    -}
    -
    -function forEach(xs, f) {
    -  for (var i = 0, l = xs.length; i < l; i++) {
    -    f(xs[i], i);
    -  }
    -}
    -
    -function indexOf(xs, x) {
    -  for (var i = 0, l = xs.length; i < l; i++) {
    -    if (xs[i] === x) return i;
    -  }
    -  return -1;
    -}
    \ No newline at end of file
    diff --git a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/duplexify/node_modules/readable-stream/lib/_stream_transform.js
    deleted file mode 100644
    index cd25832..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_transform.js
    +++ /dev/null
    @@ -1,182 +0,0 @@
    -// a transform stream is a readable/writable stream where you do
    -// something with the data.  Sometimes it's called a "filter",
    -// but that's not a great name for it, since that implies a thing where
    -// some bits pass through, and others are simply ignored.  (That would
    -// be a valid example of a transform, of course.)
    -//
    -// While the output is causally related to the input, it's not a
    -// necessarily symmetric or synchronous transformation.  For example,
    -// a zlib stream might take multiple plain-text writes(), and then
    -// emit a single compressed chunk some time in the future.
    -//
    -// Here's how this works:
    -//
    -// The Transform stream has all the aspects of the readable and writable
    -// stream classes.  When you write(chunk), that calls _write(chunk,cb)
    -// internally, and returns false if there's a lot of pending writes
    -// buffered up.  When you call read(), that calls _read(n) until
    -// there's enough pending readable data buffered up.
    -//
    -// In a transform stream, the written data is placed in a buffer.  When
    -// _read(n) is called, it transforms the queued up data, calling the
    -// buffered _write cb's as it consumes chunks.  If consuming a single
    -// written chunk would result in multiple output chunks, then the first
    -// outputted bit calls the readcb, and subsequent chunks just go into
    -// the read buffer, and will cause it to emit 'readable' if necessary.
    -//
    -// This way, back-pressure is actually determined by the reading side,
    -// since _read has to be called to start processing a new chunk.  However,
    -// a pathological inflate type of transform can cause excessive buffering
    -// here.  For example, imagine a stream where every byte of input is
    -// interpreted as an integer from 0-255, and then results in that many
    -// bytes of output.  Writing the 4 bytes {ff,ff,ff,ff} would result in
    -// 1kb of data being output.  In this case, you could write a very small
    -// amount of input, and end up with a very large amount of output.  In
    -// such a pathological inflating mechanism, there'd be no way to tell
    -// the system to stop doing the transform.  A single 4MB write could
    -// cause the system to run out of memory.
    -//
    -// However, even in such a pathological case, only a single written chunk
    -// would be consumed, and then the rest would wait (un-transformed) until
    -// the results of the previous transformed chunk were consumed.
    -
    -'use strict';
    -
    -module.exports = Transform;
    -
    -var Duplex = require('./_stream_duplex');
    -
    -/**/
    -var util = require('core-util-is');
    -util.inherits = require('inherits');
    -/**/
    -
    -util.inherits(Transform, Duplex);
    -
    -function TransformState(stream) {
    -  this.afterTransform = function (er, data) {
    -    return afterTransform(stream, er, data);
    -  };
    -
    -  this.needTransform = false;
    -  this.transforming = false;
    -  this.writecb = null;
    -  this.writechunk = null;
    -  this.writeencoding = null;
    -}
    -
    -function afterTransform(stream, er, data) {
    -  var ts = stream._transformState;
    -  ts.transforming = false;
    -
    -  var cb = ts.writecb;
    -
    -  if (!cb) return stream.emit('error', new Error('no writecb in Transform class'));
    -
    -  ts.writechunk = null;
    -  ts.writecb = null;
    -
    -  if (data !== null && data !== undefined) stream.push(data);
    -
    -  cb(er);
    -
    -  var rs = stream._readableState;
    -  rs.reading = false;
    -  if (rs.needReadable || rs.length < rs.highWaterMark) {
    -    stream._read(rs.highWaterMark);
    -  }
    -}
    -
    -function Transform(options) {
    -  if (!(this instanceof Transform)) return new Transform(options);
    -
    -  Duplex.call(this, options);
    -
    -  this._transformState = new TransformState(this);
    -
    -  var stream = this;
    -
    -  // start out asking for a readable event once data is transformed.
    -  this._readableState.needReadable = true;
    -
    -  // we have implemented the _read method, and done the other things
    -  // that Readable wants before the first _read call, so unset the
    -  // sync guard flag.
    -  this._readableState.sync = false;
    -
    -  if (options) {
    -    if (typeof options.transform === 'function') this._transform = options.transform;
    -
    -    if (typeof options.flush === 'function') this._flush = options.flush;
    -  }
    -
    -  // When the writable side finishes, then flush out anything remaining.
    -  this.once('prefinish', function () {
    -    if (typeof this._flush === 'function') this._flush(function (er, data) {
    -      done(stream, er, data);
    -    });else done(stream);
    -  });
    -}
    -
    -Transform.prototype.push = function (chunk, encoding) {
    -  this._transformState.needTransform = false;
    -  return Duplex.prototype.push.call(this, chunk, encoding);
    -};
    -
    -// This is the part where you do stuff!
    -// override this function in implementation classes.
    -// 'chunk' is an input chunk.
    -//
    -// Call `push(newChunk)` to pass along transformed output
    -// to the readable side.  You may call 'push' zero or more times.
    -//
    -// Call `cb(err)` when you are done with this chunk.  If you pass
    -// an error, then that'll put the hurt on the whole operation.  If you
    -// never call cb(), then you'll never get another chunk.
    -Transform.prototype._transform = function (chunk, encoding, cb) {
    -  throw new Error('_transform() is not implemented');
    -};
    -
    -Transform.prototype._write = function (chunk, encoding, cb) {
    -  var ts = this._transformState;
    -  ts.writecb = cb;
    -  ts.writechunk = chunk;
    -  ts.writeencoding = encoding;
    -  if (!ts.transforming) {
    -    var rs = this._readableState;
    -    if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
    -  }
    -};
    -
    -// Doesn't matter what the args are here.
    -// _transform does all the work.
    -// That we got here means that the readable side wants more data.
    -Transform.prototype._read = function (n) {
    -  var ts = this._transformState;
    -
    -  if (ts.writechunk !== null && ts.writecb && !ts.transforming) {
    -    ts.transforming = true;
    -    this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
    -  } else {
    -    // mark that we need a transform, so that any data that comes in
    -    // will get processed, now that we've asked for it.
    -    ts.needTransform = true;
    -  }
    -};
    -
    -function done(stream, er, data) {
    -  if (er) return stream.emit('error', er);
    -
    -  if (data !== null && data !== undefined) stream.push(data);
    -
    -  // if there's nothing in the write buffer, then that means
    -  // that nothing more will ever be provided
    -  var ws = stream._writableState;
    -  var ts = stream._transformState;
    -
    -  if (ws.length) throw new Error('Calling transform done when ws.length != 0');
    -
    -  if (ts.transforming) throw new Error('Calling transform done when still transforming');
    -
    -  return stream.push(null);
    -}
    \ No newline at end of file
    diff --git a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js
    deleted file mode 100644
    index 4d9c62b..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js
    +++ /dev/null
    @@ -1,554 +0,0 @@
    -// A bit simpler than readable streams.
    -// Implement an async ._write(chunk, encoding, cb), and it'll handle all
    -// the drain event emission and buffering.
    -
    -'use strict';
    -
    -module.exports = Writable;
    -
    -/**/
    -var processNextTick = require('process-nextick-args');
    -/**/
    -
    -/**/
    -var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;
    -/**/
    -
    -/**/
    -var Duplex;
    -/**/
    -
    -Writable.WritableState = WritableState;
    -
    -/**/
    -var util = require('core-util-is');
    -util.inherits = require('inherits');
    -/**/
    -
    -/**/
    -var internalUtil = {
    -  deprecate: require('util-deprecate')
    -};
    -/**/
    -
    -/**/
    -var Stream;
    -(function () {
    -  try {
    -    Stream = require('st' + 'ream');
    -  } catch (_) {} finally {
    -    if (!Stream) Stream = require('events').EventEmitter;
    -  }
    -})();
    -/**/
    -
    -var Buffer = require('buffer').Buffer;
    -/**/
    -var bufferShim = require('buffer-shims');
    -/**/
    -
    -util.inherits(Writable, Stream);
    -
    -function nop() {}
    -
    -function WriteReq(chunk, encoding, cb) {
    -  this.chunk = chunk;
    -  this.encoding = encoding;
    -  this.callback = cb;
    -  this.next = null;
    -}
    -
    -function WritableState(options, stream) {
    -  Duplex = Duplex || require('./_stream_duplex');
    -
    -  options = options || {};
    -
    -  // object stream flag to indicate whether or not this stream
    -  // contains buffers or objects.
    -  this.objectMode = !!options.objectMode;
    -
    -  if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode;
    -
    -  // the point at which write() starts returning false
    -  // Note: 0 is a valid value, means that we always return false if
    -  // the entire buffer is not flushed immediately on write()
    -  var hwm = options.highWaterMark;
    -  var defaultHwm = this.objectMode ? 16 : 16 * 1024;
    -  this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;
    -
    -  // cast to ints.
    -  this.highWaterMark = ~ ~this.highWaterMark;
    -
    -  // drain event flag.
    -  this.needDrain = false;
    -  // at the start of calling end()
    -  this.ending = false;
    -  // when end() has been called, and returned
    -  this.ended = false;
    -  // when 'finish' is emitted
    -  this.finished = false;
    -
    -  // should we decode strings into buffers before passing to _write?
    -  // this is here so that some node-core streams can optimize string
    -  // handling at a lower level.
    -  var noDecode = options.decodeStrings === false;
    -  this.decodeStrings = !noDecode;
    -
    -  // Crypto is kind of old and crusty.  Historically, its default string
    -  // encoding is 'binary' so we have to make this configurable.
    -  // Everything else in the universe uses 'utf8', though.
    -  this.defaultEncoding = options.defaultEncoding || 'utf8';
    -
    -  // not an actual buffer we keep track of, but a measurement
    -  // of how much we're waiting to get pushed to some underlying
    -  // socket or file.
    -  this.length = 0;
    -
    -  // a flag to see when we're in the middle of a write.
    -  this.writing = false;
    -
    -  // when true all writes will be buffered until .uncork() call
    -  this.corked = 0;
    -
    -  // a flag to be able to tell if the onwrite cb is called immediately,
    -  // or on a later tick.  We set this to true at first, because any
    -  // actions that shouldn't happen until "later" should generally also
    -  // not happen before the first write call.
    -  this.sync = true;
    -
    -  // a flag to know if we're processing previously buffered items, which
    -  // may call the _write() callback in the same tick, so that we don't
    -  // end up in an overlapped onwrite situation.
    -  this.bufferProcessing = false;
    -
    -  // the callback that's passed to _write(chunk,cb)
    -  this.onwrite = function (er) {
    -    onwrite(stream, er);
    -  };
    -
    -  // the callback that the user supplies to write(chunk,encoding,cb)
    -  this.writecb = null;
    -
    -  // the amount that is being written when _write is called.
    -  this.writelen = 0;
    -
    -  this.bufferedRequest = null;
    -  this.lastBufferedRequest = null;
    -
    -  // number of pending user-supplied write callbacks
    -  // this must be 0 before 'finish' can be emitted
    -  this.pendingcb = 0;
    -
    -  // emit prefinish if the only thing we're waiting for is _write cbs
    -  // This is relevant for synchronous Transform streams
    -  this.prefinished = false;
    -
    -  // True if the error was already emitted and should not be thrown again
    -  this.errorEmitted = false;
    -
    -  // count buffered requests
    -  this.bufferedRequestCount = 0;
    -
    -  // allocate the first CorkedRequest, there is always
    -  // one allocated and free to use, and we maintain at most two
    -  this.corkedRequestsFree = new CorkedRequest(this);
    -}
    -
    -WritableState.prototype.getBuffer = function getBuffer() {
    -  var current = this.bufferedRequest;
    -  var out = [];
    -  while (current) {
    -    out.push(current);
    -    current = current.next;
    -  }
    -  return out;
    -};
    -
    -(function () {
    -  try {
    -    Object.defineProperty(WritableState.prototype, 'buffer', {
    -      get: internalUtil.deprecate(function () {
    -        return this.getBuffer();
    -      }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.')
    -    });
    -  } catch (_) {}
    -})();
    -
    -// Test _writableState for inheritance to account for Duplex streams,
    -// whose prototype chain only points to Readable.
    -var realHasInstance;
    -if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {
    -  realHasInstance = Function.prototype[Symbol.hasInstance];
    -  Object.defineProperty(Writable, Symbol.hasInstance, {
    -    value: function (object) {
    -      if (realHasInstance.call(this, object)) return true;
    -
    -      return object && object._writableState instanceof WritableState;
    -    }
    -  });
    -} else {
    -  realHasInstance = function (object) {
    -    return object instanceof this;
    -  };
    -}
    -
    -function Writable(options) {
    -  Duplex = Duplex || require('./_stream_duplex');
    -
    -  // Writable ctor is applied to Duplexes, too.
    -  // `realHasInstance` is necessary because using plain `instanceof`
    -  // would return false, as no `_writableState` property is attached.
    -
    -  // Trying to use the custom `instanceof` for Writable here will also break the
    -  // Node.js LazyTransform implementation, which has a non-trivial getter for
    -  // `_writableState` that would lead to infinite recursion.
    -  if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {
    -    return new Writable(options);
    -  }
    -
    -  this._writableState = new WritableState(options, this);
    -
    -  // legacy.
    -  this.writable = true;
    -
    -  if (options) {
    -    if (typeof options.write === 'function') this._write = options.write;
    -
    -    if (typeof options.writev === 'function') this._writev = options.writev;
    -  }
    -
    -  Stream.call(this);
    -}
    -
    -// Otherwise people can pipe Writable streams, which is just wrong.
    -Writable.prototype.pipe = function () {
    -  this.emit('error', new Error('Cannot pipe, not readable'));
    -};
    -
    -function writeAfterEnd(stream, cb) {
    -  var er = new Error('write after end');
    -  // TODO: defer error events consistently everywhere, not just the cb
    -  stream.emit('error', er);
    -  processNextTick(cb, er);
    -}
    -
    -// If we get something that is not a buffer, string, null, or undefined,
    -// and we're not in objectMode, then that's an error.
    -// Otherwise stream chunks are all considered to be of length=1, and the
    -// watermarks determine how many objects to keep in the buffer, rather than
    -// how many bytes or characters.
    -function validChunk(stream, state, chunk, cb) {
    -  var valid = true;
    -  var er = false;
    -  // Always throw error if a null is written
    -  // if we are not in object mode then throw
    -  // if it is not a buffer, string, or undefined.
    -  if (chunk === null) {
    -    er = new TypeError('May not write null values to stream');
    -  } else if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
    -    er = new TypeError('Invalid non-string/buffer chunk');
    -  }
    -  if (er) {
    -    stream.emit('error', er);
    -    processNextTick(cb, er);
    -    valid = false;
    -  }
    -  return valid;
    -}
    -
    -Writable.prototype.write = function (chunk, encoding, cb) {
    -  var state = this._writableState;
    -  var ret = false;
    -
    -  if (typeof encoding === 'function') {
    -    cb = encoding;
    -    encoding = null;
    -  }
    -
    -  if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;
    -
    -  if (typeof cb !== 'function') cb = nop;
    -
    -  if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) {
    -    state.pendingcb++;
    -    ret = writeOrBuffer(this, state, chunk, encoding, cb);
    -  }
    -
    -  return ret;
    -};
    -
    -Writable.prototype.cork = function () {
    -  var state = this._writableState;
    -
    -  state.corked++;
    -};
    -
    -Writable.prototype.uncork = function () {
    -  var state = this._writableState;
    -
    -  if (state.corked) {
    -    state.corked--;
    -
    -    if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
    -  }
    -};
    -
    -Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
    -  // node::ParseEncoding() requires lower case.
    -  if (typeof encoding === 'string') encoding = encoding.toLowerCase();
    -  if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);
    -  this._writableState.defaultEncoding = encoding;
    -  return this;
    -};
    -
    -function decodeChunk(state, chunk, encoding) {
    -  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
    -    chunk = bufferShim.from(chunk, encoding);
    -  }
    -  return chunk;
    -}
    -
    -// if we're already writing something, then just put this
    -// in the queue, and wait our turn.  Otherwise, call _write
    -// If we return false, then we need a drain event, so set that flag.
    -function writeOrBuffer(stream, state, chunk, encoding, cb) {
    -  chunk = decodeChunk(state, chunk, encoding);
    -
    -  if (Buffer.isBuffer(chunk)) encoding = 'buffer';
    -  var len = state.objectMode ? 1 : chunk.length;
    -
    -  state.length += len;
    -
    -  var ret = state.length < state.highWaterMark;
    -  // we must ensure that previous needDrain will not be reset to false.
    -  if (!ret) state.needDrain = true;
    -
    -  if (state.writing || state.corked) {
    -    var last = state.lastBufferedRequest;
    -    state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);
    -    if (last) {
    -      last.next = state.lastBufferedRequest;
    -    } else {
    -      state.bufferedRequest = state.lastBufferedRequest;
    -    }
    -    state.bufferedRequestCount += 1;
    -  } else {
    -    doWrite(stream, state, false, len, chunk, encoding, cb);
    -  }
    -
    -  return ret;
    -}
    -
    -function doWrite(stream, state, writev, len, chunk, encoding, cb) {
    -  state.writelen = len;
    -  state.writecb = cb;
    -  state.writing = true;
    -  state.sync = true;
    -  if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
    -  state.sync = false;
    -}
    -
    -function onwriteError(stream, state, sync, er, cb) {
    -  --state.pendingcb;
    -  if (sync) processNextTick(cb, er);else cb(er);
    -
    -  stream._writableState.errorEmitted = true;
    -  stream.emit('error', er);
    -}
    -
    -function onwriteStateUpdate(state) {
    -  state.writing = false;
    -  state.writecb = null;
    -  state.length -= state.writelen;
    -  state.writelen = 0;
    -}
    -
    -function onwrite(stream, er) {
    -  var state = stream._writableState;
    -  var sync = state.sync;
    -  var cb = state.writecb;
    -
    -  onwriteStateUpdate(state);
    -
    -  if (er) onwriteError(stream, state, sync, er, cb);else {
    -    // Check if we're actually ready to finish, but don't emit yet
    -    var finished = needFinish(state);
    -
    -    if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
    -      clearBuffer(stream, state);
    -    }
    -
    -    if (sync) {
    -      /**/
    -      asyncWrite(afterWrite, stream, state, finished, cb);
    -      /**/
    -    } else {
    -        afterWrite(stream, state, finished, cb);
    -      }
    -  }
    -}
    -
    -function afterWrite(stream, state, finished, cb) {
    -  if (!finished) onwriteDrain(stream, state);
    -  state.pendingcb--;
    -  cb();
    -  finishMaybe(stream, state);
    -}
    -
    -// Must force callback to be called on nextTick, so that we don't
    -// emit 'drain' before the write() consumer gets the 'false' return
    -// value, and has a chance to attach a 'drain' listener.
    -function onwriteDrain(stream, state) {
    -  if (state.length === 0 && state.needDrain) {
    -    state.needDrain = false;
    -    stream.emit('drain');
    -  }
    -}
    -
    -// if there's something in the buffer waiting, then process it
    -function clearBuffer(stream, state) {
    -  state.bufferProcessing = true;
    -  var entry = state.bufferedRequest;
    -
    -  if (stream._writev && entry && entry.next) {
    -    // Fast case, write everything using _writev()
    -    var l = state.bufferedRequestCount;
    -    var buffer = new Array(l);
    -    var holder = state.corkedRequestsFree;
    -    holder.entry = entry;
    -
    -    var count = 0;
    -    while (entry) {
    -      buffer[count] = entry;
    -      entry = entry.next;
    -      count += 1;
    -    }
    -
    -    doWrite(stream, state, true, state.length, buffer, '', holder.finish);
    -
    -    // doWrite is almost always async, defer these to save a bit of time
    -    // as the hot path ends with doWrite
    -    state.pendingcb++;
    -    state.lastBufferedRequest = null;
    -    if (holder.next) {
    -      state.corkedRequestsFree = holder.next;
    -      holder.next = null;
    -    } else {
    -      state.corkedRequestsFree = new CorkedRequest(state);
    -    }
    -  } else {
    -    // Slow case, write chunks one-by-one
    -    while (entry) {
    -      var chunk = entry.chunk;
    -      var encoding = entry.encoding;
    -      var cb = entry.callback;
    -      var len = state.objectMode ? 1 : chunk.length;
    -
    -      doWrite(stream, state, false, len, chunk, encoding, cb);
    -      entry = entry.next;
    -      // if we didn't call the onwrite immediately, then
    -      // it means that we need to wait until it does.
    -      // also, that means that the chunk and cb are currently
    -      // being processed, so move the buffer counter past them.
    -      if (state.writing) {
    -        break;
    -      }
    -    }
    -
    -    if (entry === null) state.lastBufferedRequest = null;
    -  }
    -
    -  state.bufferedRequestCount = 0;
    -  state.bufferedRequest = entry;
    -  state.bufferProcessing = false;
    -}
    -
    -Writable.prototype._write = function (chunk, encoding, cb) {
    -  cb(new Error('_write() is not implemented'));
    -};
    -
    -Writable.prototype._writev = null;
    -
    -Writable.prototype.end = function (chunk, encoding, cb) {
    -  var state = this._writableState;
    -
    -  if (typeof chunk === 'function') {
    -    cb = chunk;
    -    chunk = null;
    -    encoding = null;
    -  } else if (typeof encoding === 'function') {
    -    cb = encoding;
    -    encoding = null;
    -  }
    -
    -  if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);
    -
    -  // .end() fully uncorks
    -  if (state.corked) {
    -    state.corked = 1;
    -    this.uncork();
    -  }
    -
    -  // ignore unnecessary end() calls.
    -  if (!state.ending && !state.finished) endWritable(this, state, cb);
    -};
    -
    -function needFinish(state) {
    -  return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
    -}
    -
    -function prefinish(stream, state) {
    -  if (!state.prefinished) {
    -    state.prefinished = true;
    -    stream.emit('prefinish');
    -  }
    -}
    -
    -function finishMaybe(stream, state) {
    -  var need = needFinish(state);
    -  if (need) {
    -    if (state.pendingcb === 0) {
    -      prefinish(stream, state);
    -      state.finished = true;
    -      stream.emit('finish');
    -    } else {
    -      prefinish(stream, state);
    -    }
    -  }
    -  return need;
    -}
    -
    -function endWritable(stream, state, cb) {
    -  state.ending = true;
    -  finishMaybe(stream, state);
    -  if (cb) {
    -    if (state.finished) processNextTick(cb);else stream.once('finish', cb);
    -  }
    -  state.ended = true;
    -  stream.writable = false;
    -}
    -
    -// It seems a linked list but it is not
    -// there will be only 2 of these for each stream
    -function CorkedRequest(state) {
    -  var _this = this;
    -
    -  this.next = null;
    -  this.entry = null;
    -
    -  this.finish = function (err) {
    -    var entry = _this.entry;
    -    _this.entry = null;
    -    while (entry) {
    -      var cb = entry.callback;
    -      state.pendingcb--;
    -      cb(err);
    -      entry = entry.next;
    -    }
    -    if (state.corkedRequestsFree) {
    -      state.corkedRequestsFree.next = _this;
    -    } else {
    -      state.corkedRequestsFree = _this;
    -    }
    -  };
    -}
    \ No newline at end of file
    diff --git a/node_modules/duplexify/node_modules/readable-stream/lib/internal/streams/BufferList.js b/node_modules/duplexify/node_modules/readable-stream/lib/internal/streams/BufferList.js
    deleted file mode 100644
    index e4bfcf0..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/lib/internal/streams/BufferList.js
    +++ /dev/null
    @@ -1,64 +0,0 @@
    -'use strict';
    -
    -var Buffer = require('buffer').Buffer;
    -/**/
    -var bufferShim = require('buffer-shims');
    -/**/
    -
    -module.exports = BufferList;
    -
    -function BufferList() {
    -  this.head = null;
    -  this.tail = null;
    -  this.length = 0;
    -}
    -
    -BufferList.prototype.push = function (v) {
    -  var entry = { data: v, next: null };
    -  if (this.length > 0) this.tail.next = entry;else this.head = entry;
    -  this.tail = entry;
    -  ++this.length;
    -};
    -
    -BufferList.prototype.unshift = function (v) {
    -  var entry = { data: v, next: this.head };
    -  if (this.length === 0) this.tail = entry;
    -  this.head = entry;
    -  ++this.length;
    -};
    -
    -BufferList.prototype.shift = function () {
    -  if (this.length === 0) return;
    -  var ret = this.head.data;
    -  if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
    -  --this.length;
    -  return ret;
    -};
    -
    -BufferList.prototype.clear = function () {
    -  this.head = this.tail = null;
    -  this.length = 0;
    -};
    -
    -BufferList.prototype.join = function (s) {
    -  if (this.length === 0) return '';
    -  var p = this.head;
    -  var ret = '' + p.data;
    -  while (p = p.next) {
    -    ret += s + p.data;
    -  }return ret;
    -};
    -
    -BufferList.prototype.concat = function (n) {
    -  if (this.length === 0) return bufferShim.alloc(0);
    -  if (this.length === 1) return this.head.data;
    -  var ret = bufferShim.allocUnsafe(n >>> 0);
    -  var p = this.head;
    -  var i = 0;
    -  while (p) {
    -    p.data.copy(ret, i);
    -    i += p.data.length;
    -    p = p.next;
    -  }
    -  return ret;
    -};
    \ No newline at end of file
    diff --git a/node_modules/duplexify/node_modules/readable-stream/package.json b/node_modules/duplexify/node_modules/readable-stream/package.json
    deleted file mode 100644
    index de1fd21..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/package.json
    +++ /dev/null
    @@ -1,129 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "readable-stream@^2.0.0",
    -        "scope": null,
    -        "escapedName": "readable-stream",
    -        "name": "readable-stream",
    -        "rawSpec": "^2.0.0",
    -        "spec": ">=2.0.0 <3.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/duplexify"
    -    ]
    -  ],
    -  "_from": "readable-stream@>=2.0.0 <3.0.0",
    -  "_id": "readable-stream@2.2.3",
    -  "_inCache": true,
    -  "_location": "/duplexify/readable-stream",
    -  "_nodeVersion": "6.9.2",
    -  "_npmOperationalInternal": {
    -    "host": "packages-18-east.internal.npmjs.com",
    -    "tmp": "tmp/readable-stream-2.2.3.tgz_1487688066228_0.35690787457861006"
    -  },
    -  "_npmUser": {
    -    "name": "cwmma",
    -    "email": "calvin.metcalf@gmail.com"
    -  },
    -  "_npmVersion": "4.0.5",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "readable-stream@^2.0.0",
    -    "scope": null,
    -    "escapedName": "readable-stream",
    -    "name": "readable-stream",
    -    "rawSpec": "^2.0.0",
    -    "spec": ">=2.0.0 <3.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/duplexify"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz",
    -  "_shasum": "9cf49463985df016c8ae8813097a9293a9b33729",
    -  "_shrinkwrap": null,
    -  "_spec": "readable-stream@^2.0.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/duplexify",
    -  "browser": {
    -    "util": false
    -  },
    -  "bugs": {
    -    "url": "https://github.com/nodejs/readable-stream/issues"
    -  },
    -  "dependencies": {
    -    "buffer-shims": "^1.0.0",
    -    "core-util-is": "~1.0.0",
    -    "inherits": "~2.0.1",
    -    "isarray": "~1.0.0",
    -    "process-nextick-args": "~1.0.6",
    -    "string_decoder": "~0.10.x",
    -    "util-deprecate": "~1.0.1"
    -  },
    -  "description": "Streams3, a user-land copy of the stream library from Node.js",
    -  "devDependencies": {
    -    "assert": "~1.4.0",
    -    "babel-polyfill": "^6.9.1",
    -    "buffer": "^4.9.0",
    -    "nyc": "^6.4.0",
    -    "tap": "~0.7.1",
    -    "tape": "~4.5.1",
    -    "zuul": "~3.10.0"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "9cf49463985df016c8ae8813097a9293a9b33729",
    -    "tarball": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz"
    -  },
    -  "gitHead": "4dbe6e20051e44025d3cbec3ed9603483d8b27cb",
    -  "homepage": "https://github.com/nodejs/readable-stream#readme",
    -  "keywords": [
    -    "readable",
    -    "stream",
    -    "pipe"
    -  ],
    -  "license": "MIT",
    -  "main": "readable.js",
    -  "maintainers": [
    -    {
    -      "name": "isaacs",
    -      "email": "isaacs@npmjs.com"
    -    },
    -    {
    -      "name": "tootallnate",
    -      "email": "nathan@tootallnate.net"
    -    },
    -    {
    -      "name": "rvagg",
    -      "email": "rod@vagg.org"
    -    },
    -    {
    -      "name": "cwmma",
    -      "email": "calvin.metcalf@gmail.com"
    -    }
    -  ],
    -  "name": "readable-stream",
    -  "nyc": {
    -    "include": [
    -      "lib/**.js"
    -    ]
    -  },
    -  "optionalDependencies": {},
    -  "react-native": {
    -    "stream": false
    -  },
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/nodejs/readable-stream.git"
    -  },
    -  "scripts": {
    -    "browser": "npm run write-zuul && zuul --browser-retries 2 -- test/browser.js",
    -    "cover": "nyc npm test",
    -    "local": "zuul --local 3000 --no-coverage -- test/browser.js",
    -    "report": "nyc report --reporter=lcov",
    -    "test": "tap test/parallel/*.js test/ours/*.js",
    -    "write-zuul": "printf \"ui: tape\nbrowsers:\n  - name: $BROWSER_NAME\n    version: $BROWSER_VERSION\n\">.zuul.yml"
    -  },
    -  "version": "2.2.3"
    -}
    diff --git a/node_modules/duplexify/node_modules/readable-stream/passthrough.js b/node_modules/duplexify/node_modules/readable-stream/passthrough.js
    deleted file mode 100644
    index 27e8d8a..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/passthrough.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -module.exports = require("./lib/_stream_passthrough.js")
    diff --git a/node_modules/duplexify/node_modules/readable-stream/readable.js b/node_modules/duplexify/node_modules/readable-stream/readable.js
    deleted file mode 100644
    index be2688a..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/readable.js
    +++ /dev/null
    @@ -1,16 +0,0 @@
    -var Stream = (function (){
    -  try {
    -    return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify
    -  } catch(_){}
    -}());
    -exports = module.exports = require('./lib/_stream_readable.js');
    -exports.Stream = Stream || exports;
    -exports.Readable = exports;
    -exports.Writable = require('./lib/_stream_writable.js');
    -exports.Duplex = require('./lib/_stream_duplex.js');
    -exports.Transform = require('./lib/_stream_transform.js');
    -exports.PassThrough = require('./lib/_stream_passthrough.js');
    -
    -if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {
    -  module.exports = Stream;
    -}
    diff --git a/node_modules/duplexify/node_modules/readable-stream/transform.js b/node_modules/duplexify/node_modules/readable-stream/transform.js
    deleted file mode 100644
    index 5d482f0..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/transform.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -module.exports = require("./lib/_stream_transform.js")
    diff --git a/node_modules/duplexify/node_modules/readable-stream/writable.js b/node_modules/duplexify/node_modules/readable-stream/writable.js
    deleted file mode 100644
    index e1e9efd..0000000
    --- a/node_modules/duplexify/node_modules/readable-stream/writable.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -module.exports = require("./lib/_stream_writable.js")
    diff --git a/node_modules/duplexify/package.json b/node_modules/duplexify/package.json
    deleted file mode 100644
    index ee8dee8..0000000
    --- a/node_modules/duplexify/package.json
    +++ /dev/null
    @@ -1,109 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "duplexify@^3.5.0",
    -        "scope": null,
    -        "escapedName": "duplexify",
    -        "name": "duplexify",
    -        "rawSpec": "^3.5.0",
    -        "spec": ">=3.5.0 <4.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/ternary-stream"
    -    ]
    -  ],
    -  "_from": "duplexify@>=3.5.0 <4.0.0",
    -  "_id": "duplexify@3.5.0",
    -  "_inCache": true,
    -  "_location": "/duplexify",
    -  "_nodeVersion": "4.6.1",
    -  "_npmOperationalInternal": {
    -    "host": "packages-12-west.internal.npmjs.com",
    -    "tmp": "tmp/duplexify-3.5.0.tgz_1477317448157_0.2257942291907966"
    -  },
    -  "_npmUser": {
    -    "name": "mafintosh",
    -    "email": "mathiasbuus@gmail.com"
    -  },
    -  "_npmVersion": "2.15.9",
    -  "_phantomChildren": {
    -    "buffer-shims": "1.0.0",
    -    "core-util-is": "1.0.2",
    -    "inherits": "2.0.3",
    -    "process-nextick-args": "1.0.7",
    -    "string_decoder": "0.10.31",
    -    "util-deprecate": "1.0.2",
    -    "wrappy": "1.0.2"
    -  },
    -  "_requested": {
    -    "raw": "duplexify@^3.5.0",
    -    "scope": null,
    -    "escapedName": "duplexify",
    -    "name": "duplexify",
    -    "rawSpec": "^3.5.0",
    -    "spec": ">=3.5.0 <4.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/ternary-stream"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.0.tgz",
    -  "_shasum": "1aa773002e1578457e9d9d4a50b0ccaaebcbd604",
    -  "_shrinkwrap": null,
    -  "_spec": "duplexify@^3.5.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/ternary-stream",
    -  "author": {
    -    "name": "Mathias Buus"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/mafintosh/duplexify/issues"
    -  },
    -  "dependencies": {
    -    "end-of-stream": "1.0.0",
    -    "inherits": "^2.0.1",
    -    "readable-stream": "^2.0.0",
    -    "stream-shift": "^1.0.0"
    -  },
    -  "description": "Turn a writable and readable stream into a streams2 duplex stream with support for async initialization and streams1/streams2 input",
    -  "devDependencies": {
    -    "concat-stream": "^1.4.6",
    -    "tape": "^2.13.3",
    -    "through2": "^0.5.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "1aa773002e1578457e9d9d4a50b0ccaaebcbd604",
    -    "tarball": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.0.tgz"
    -  },
    -  "gitHead": "97f525d36ce275e52435611d70b3a77a7234eaa1",
    -  "homepage": "https://github.com/mafintosh/duplexify",
    -  "keywords": [
    -    "duplex",
    -    "streams2",
    -    "streams",
    -    "stream",
    -    "writable",
    -    "readable",
    -    "async"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "mafintosh",
    -      "email": "mathiasbuus@gmail.com"
    -    }
    -  ],
    -  "name": "duplexify",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/mafintosh/duplexify.git"
    -  },
    -  "scripts": {
    -    "test": "tape test.js"
    -  },
    -  "version": "3.5.0"
    -}
    diff --git a/node_modules/duplexify/test.js b/node_modules/duplexify/test.js
    deleted file mode 100644
    index f4856d3..0000000
    --- a/node_modules/duplexify/test.js
    +++ /dev/null
    @@ -1,292 +0,0 @@
    -var tape = require('tape')
    -var through = require('through2')
    -var concat = require('concat-stream')
    -var net = require('net')
    -var duplexify = require('./')
    -
    -tape('passthrough', function(t) {
    -  t.plan(2)
    -
    -  var pt = through()
    -  var dup = duplexify(pt, pt)
    -
    -  dup.end('hello world')
    -  dup.on('finish', function() {
    -    t.ok(true, 'should finish')
    -  })
    -  dup.pipe(concat(function(data) {
    -    t.same(data.toString(), 'hello world', 'same in as out')
    -  }))
    -})
    -
    -tape('passthrough + double end', function(t) {
    -  t.plan(2)
    -
    -  var pt = through()
    -  var dup = duplexify(pt, pt)
    -
    -  dup.end('hello world')
    -  dup.end()
    -
    -  dup.on('finish', function() {
    -    t.ok(true, 'should finish')
    -  })
    -  dup.pipe(concat(function(data) {
    -    t.same(data.toString(), 'hello world', 'same in as out')
    -  }))
    -})
    -
    -tape('async passthrough + end', function(t) {
    -  t.plan(2)
    -
    -  var pt = through.obj({highWaterMark:1}, function(data, enc, cb) {
    -    setTimeout(function() {
    -      cb(null, data)
    -    }, 100)
    -  })
    -
    -  var dup = duplexify(pt, pt)
    -
    -  dup.write('hello ')
    -  dup.write('world')
    -  dup.end()
    -
    -  dup.on('finish', function() {
    -    t.ok(true, 'should finish')
    -  })
    -  dup.pipe(concat(function(data) {
    -    t.same(data.toString(), 'hello world', 'same in as out')
    -  }))
    -})
    -
    -tape('duplex', function(t) {
    -  var readExpected = ['read-a', 'read-b', 'read-c']
    -  var writeExpected = ['write-a', 'write-b', 'write-c']
    -
    -  t.plan(readExpected.length+writeExpected.length+2)
    -
    -  var readable = through.obj()
    -  var writable = through.obj(function(data, enc, cb) {
    -    t.same(data, writeExpected.shift(), 'onwrite should match')
    -    cb()
    -  })
    -
    -  var dup = duplexify.obj(writable, readable)
    -
    -  readExpected.slice().forEach(function(data) {
    -    readable.write(data)
    -  })
    -  readable.end()
    -
    -  writeExpected.slice().forEach(function(data) {
    -    dup.write(data)
    -  })
    -  dup.end()
    -
    -  dup.on('data', function(data) {
    -    t.same(data, readExpected.shift(), 'ondata should match')
    -  })
    -  dup.on('end', function() {
    -    t.ok(true, 'should end')
    -  })
    -  dup.on('finish', function() {
    -    t.ok(true, 'should finish')
    -  })
    -})
    -
    -tape('async', function(t) {
    -  var dup = duplexify()
    -  var pt = through()
    -
    -  dup.pipe(concat(function(data) {
    -    t.same(data.toString(), 'i was async', 'same in as out')
    -    t.end()
    -  }))
    -
    -  dup.write('i')
    -  dup.write(' was ')
    -  dup.end('async')
    -
    -  setTimeout(function() {
    -    dup.setWritable(pt)
    -    setTimeout(function() {
    -      dup.setReadable(pt)
    -    }, 50)
    -  }, 50)
    -})
    -
    -tape('destroy', function(t) {
    -  t.plan(2)
    -
    -  var write = through()
    -  var read = through()
    -  var dup = duplexify(write, read)
    -
    -  write.destroy = function() {
    -    t.ok(true, 'write destroyed')
    -  }
    -
    -  dup.on('close', function() {
    -    t.ok(true, 'close emitted')
    -  })
    -
    -  dup.destroy()
    -  dup.destroy() // should only work once
    -})
    -
    -tape('destroy both', function(t) {
    -  t.plan(3)
    -
    -  var write = through()
    -  var read = through()
    -  var dup = duplexify(write, read)
    -
    -  write.destroy = function() {
    -    t.ok(true, 'write destroyed')
    -  }
    -
    -  read.destroy = function() {
    -    t.ok(true, 'read destroyed')
    -  }
    -
    -  dup.on('close', function() {
    -    t.ok(true, 'close emitted')
    -  })
    -
    -  dup.destroy()
    -  dup.destroy() // should only work once
    -})
    -
    -tape('bubble read errors', function(t) {
    -  t.plan(2)
    -
    -  var write = through()
    -  var read = through()
    -  var dup = duplexify(write, read)
    -
    -  dup.on('error', function(err) {
    -    t.same(err.message, 'read-error', 'received read error')
    -  })
    -  dup.on('close', function() {
    -    t.ok(true, 'close emitted')
    -  })
    -
    -  read.emit('error', new Error('read-error'))
    -  write.emit('error', new Error('write-error')) // only emit first error
    -})
    -
    -tape('bubble write errors', function(t) {
    -  t.plan(2)
    -
    -  var write = through()
    -  var read = through()
    -  var dup = duplexify(write, read)
    -
    -  dup.on('error', function(err) {
    -    t.same(err.message, 'write-error', 'received write error')
    -  })
    -  dup.on('close', function() {
    -    t.ok(true, 'close emitted')
    -  })
    -
    -  write.emit('error', new Error('write-error'))
    -  read.emit('error', new Error('read-error')) // only emit first error
    -})
    -
    -tape('reset writable / readable', function(t) {
    -  t.plan(3)
    -
    -  var toUpperCase = function(data, enc, cb) {
    -    cb(null, data.toString().toUpperCase())
    -  }
    -
    -  var passthrough = through()
    -  var upper = through(toUpperCase)
    -  var dup = duplexify(passthrough, passthrough)
    -
    -  dup.once('data', function(data) {
    -    t.same(data.toString(), 'hello')
    -    dup.setWritable(upper)
    -    dup.setReadable(upper)
    -    dup.once('data', function(data) {
    -      t.same(data.toString(), 'HELLO')
    -      dup.once('data', function(data) {
    -        t.same(data.toString(), 'HI')
    -        t.end()
    -      })
    -    })
    -    dup.write('hello')
    -    dup.write('hi')
    -  })
    -  dup.write('hello')
    -})
    -
    -tape('cork', function(t) {
    -  var passthrough = through()
    -  var dup = duplexify(passthrough, passthrough)
    -  var ok = false
    -
    -  dup.on('prefinish', function() {
    -    dup.cork()
    -    setTimeout(function() {
    -      ok = true
    -      dup.uncork()
    -    }, 100)
    -  })
    -  dup.on('finish', function() {
    -    t.ok(ok)
    -    t.end()
    -  })
    -  dup.end()
    -})
    -
    -tape('prefinish not twice', function(t) {
    -  var passthrough = through()
    -  var dup = duplexify(passthrough, passthrough)
    -  var prefinished = false
    -
    -  dup.on('prefinish', function() {
    -    t.ok(!prefinished, 'only prefinish once')
    -    prefinished = true
    -  })
    -
    -  dup.on('finish', function() {
    -    t.end()
    -  })
    -
    -  dup.end()
    -})
    -
    -tape('close', function(t) {
    -  var passthrough = through()
    -  var dup = duplexify(passthrough, passthrough)
    -  var ok = false
    -
    -  passthrough.emit('close')
    -  dup.on('close', function() {
    -    t.ok(true, 'should forward close')
    -    t.end()
    -  })
    -})
    -
    -tape('works with node native streams (net)', function(t) {
    -  t.plan(1)
    -
    -  var server = net.createServer(function(socket) {
    -    var dup = duplexify(socket, socket)
    -
    -    dup.once('data', function(chunk) {
    -      t.same(chunk, Buffer('hello world'))
    -      server.close()
    -      socket.end()
    -      t.end()
    -    })
    -  })
    -
    -  server.listen(0, function () {
    -    var socket = net.connect(server.address().port)
    -    var dup = duplexify(socket, socket)
    -
    -    dup.write(Buffer('hello world'))
    -  })
    -})
    diff --git a/node_modules/ecc-jsbn/.npmignore b/node_modules/ecc-jsbn/.npmignore
    deleted file mode 100644
    index a72b52e..0000000
    --- a/node_modules/ecc-jsbn/.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/ecc-jsbn/LICENSE b/node_modules/ecc-jsbn/LICENSE
    deleted file mode 100644
    index f668fef..0000000
    --- a/node_modules/ecc-jsbn/LICENSE
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -The MIT License (MIT)
    -
    -Copyright (c) 2014 Jeremie Miller
    -
    -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.
    \ No newline at end of file
    diff --git a/node_modules/ecc-jsbn/README.md b/node_modules/ecc-jsbn/README.md
    deleted file mode 100644
    index b5d0b9d..0000000
    --- a/node_modules/ecc-jsbn/README.md
    +++ /dev/null
    @@ -1,8 +0,0 @@
    -ecc-jsbn
    -========
    -
    -ECC package based on [jsbn](https://github.com/andyperlitch/jsbn) from [Tom Wu](http://www-cs-students.stanford.edu/~tjw/).
    -
    -This is a subset of the same interface as the [node compiled module](https://github.com/quartzjer/ecc), but works in the browser too.
    -
    -Also uses point compression now from [https://github.com/kaielvin](https://github.com/kaielvin/jsbn-ec-point-compression).
    diff --git a/node_modules/ecc-jsbn/index.js b/node_modules/ecc-jsbn/index.js
    deleted file mode 100644
    index 2437281..0000000
    --- a/node_modules/ecc-jsbn/index.js
    +++ /dev/null
    @@ -1,57 +0,0 @@
    -var crypto = require("crypto");
    -var BigInteger = require("jsbn").BigInteger;
    -var ECPointFp = require("./lib/ec.js").ECPointFp;
    -exports.ECCurves = require("./lib/sec.js");
    -
    -// zero prepad
    -function unstupid(hex,len)
    -{
    -	return (hex.length >= len) ? hex : unstupid("0"+hex,len);
    -}
    -
    -exports.ECKey = function(curve, key, isPublic)
    -{
    -  var priv;
    -	var c = curve();
    -	var n = c.getN();
    -  var bytes = Math.floor(n.bitLength()/8);
    -
    -  if(key)
    -  {
    -    if(isPublic)
    -    {
    -      var curve = c.getCurve();
    -//      var x = key.slice(1,bytes+1); // skip the 04 for uncompressed format
    -//      var y = key.slice(bytes+1);
    -//      this.P = new ECPointFp(curve,
    -//        curve.fromBigInteger(new BigInteger(x.toString("hex"), 16)),
    -//        curve.fromBigInteger(new BigInteger(y.toString("hex"), 16)));      
    -      this.P = curve.decodePointHex(key.toString("hex"));
    -    }else{
    -      if(key.length != bytes) return false;
    -      priv = new BigInteger(key.toString("hex"), 16);      
    -    }
    -  }else{
    -    var n1 = n.subtract(BigInteger.ONE);
    -    var r = new BigInteger(crypto.randomBytes(n.bitLength()));
    -    priv = r.mod(n1).add(BigInteger.ONE);
    -    this.P = c.getG().multiply(priv);
    -  }
    -  if(this.P)
    -  {
    -//  var pubhex = unstupid(this.P.getX().toBigInteger().toString(16),bytes*2)+unstupid(this.P.getY().toBigInteger().toString(16),bytes*2);
    -//  this.PublicKey = new Buffer("04"+pubhex,"hex");
    -    this.PublicKey = new Buffer(c.getCurve().encodeCompressedPointHex(this.P),"hex");
    -  }
    -  if(priv)
    -  {
    -    this.PrivateKey = new Buffer(unstupid(priv.toString(16),bytes*2),"hex");
    -    this.deriveSharedSecret = function(key)
    -    {
    -      if(!key || !key.P) return false;
    -      var S = key.P.multiply(priv);
    -      return new Buffer(unstupid(S.getX().toBigInteger().toString(16),bytes*2),"hex");
    -   }     
    -  }
    -}
    -
    diff --git a/node_modules/ecc-jsbn/lib/LICENSE-jsbn b/node_modules/ecc-jsbn/lib/LICENSE-jsbn
    deleted file mode 100644
    index 24502a9..0000000
    --- a/node_modules/ecc-jsbn/lib/LICENSE-jsbn
    +++ /dev/null
    @@ -1,40 +0,0 @@
    -Licensing
    ----------
    -
    -This software is covered under the following copyright:
    -
    -/*
    - * Copyright (c) 2003-2005  Tom Wu
    - * 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" AND WITHOUT WARRANTY OF ANY KIND, 
    - * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
    - * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
    - *
    - * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
    - * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
    - * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
    - * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
    - * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    - *
    - * In addition, the following condition applies:
    - *
    - * All redistributions must retain an intact copy of this copyright notice
    - * and disclaimer.
    - */
    -
    -Address all questions regarding this license to:
    -
    -  Tom Wu
    -  tjw@cs.Stanford.EDU
    diff --git a/node_modules/ecc-jsbn/lib/ec.js b/node_modules/ecc-jsbn/lib/ec.js
    deleted file mode 100644
    index 3852671..0000000
    --- a/node_modules/ecc-jsbn/lib/ec.js
    +++ /dev/null
    @@ -1,561 +0,0 @@
    -// Basic Javascript Elliptic Curve implementation
    -// Ported loosely from BouncyCastle's Java EC code
    -// Only Fp curves implemented for now
    -
    -// Requires jsbn.js and jsbn2.js
    -var BigInteger = require('jsbn').BigInteger
    -var Barrett = BigInteger.prototype.Barrett
    -
    -// ----------------
    -// ECFieldElementFp
    -
    -// constructor
    -function ECFieldElementFp(q,x) {
    -    this.x = x;
    -    // TODO if(x.compareTo(q) >= 0) error
    -    this.q = q;
    -}
    -
    -function feFpEquals(other) {
    -    if(other == this) return true;
    -    return (this.q.equals(other.q) && this.x.equals(other.x));
    -}
    -
    -function feFpToBigInteger() {
    -    return this.x;
    -}
    -
    -function feFpNegate() {
    -    return new ECFieldElementFp(this.q, this.x.negate().mod(this.q));
    -}
    -
    -function feFpAdd(b) {
    -    return new ECFieldElementFp(this.q, this.x.add(b.toBigInteger()).mod(this.q));
    -}
    -
    -function feFpSubtract(b) {
    -    return new ECFieldElementFp(this.q, this.x.subtract(b.toBigInteger()).mod(this.q));
    -}
    -
    -function feFpMultiply(b) {
    -    return new ECFieldElementFp(this.q, this.x.multiply(b.toBigInteger()).mod(this.q));
    -}
    -
    -function feFpSquare() {
    -    return new ECFieldElementFp(this.q, this.x.square().mod(this.q));
    -}
    -
    -function feFpDivide(b) {
    -    return new ECFieldElementFp(this.q, this.x.multiply(b.toBigInteger().modInverse(this.q)).mod(this.q));
    -}
    -
    -ECFieldElementFp.prototype.equals = feFpEquals;
    -ECFieldElementFp.prototype.toBigInteger = feFpToBigInteger;
    -ECFieldElementFp.prototype.negate = feFpNegate;
    -ECFieldElementFp.prototype.add = feFpAdd;
    -ECFieldElementFp.prototype.subtract = feFpSubtract;
    -ECFieldElementFp.prototype.multiply = feFpMultiply;
    -ECFieldElementFp.prototype.square = feFpSquare;
    -ECFieldElementFp.prototype.divide = feFpDivide;
    -
    -// ----------------
    -// ECPointFp
    -
    -// constructor
    -function ECPointFp(curve,x,y,z) {
    -    this.curve = curve;
    -    this.x = x;
    -    this.y = y;
    -    // Projective coordinates: either zinv == null or z * zinv == 1
    -    // z and zinv are just BigIntegers, not fieldElements
    -    if(z == null) {
    -      this.z = BigInteger.ONE;
    -    }
    -    else {
    -      this.z = z;
    -    }
    -    this.zinv = null;
    -    //TODO: compression flag
    -}
    -
    -function pointFpGetX() {
    -    if(this.zinv == null) {
    -      this.zinv = this.z.modInverse(this.curve.q);
    -    }
    -    var r = this.x.toBigInteger().multiply(this.zinv);
    -    this.curve.reduce(r);
    -    return this.curve.fromBigInteger(r);
    -}
    -
    -function pointFpGetY() {
    -    if(this.zinv == null) {
    -      this.zinv = this.z.modInverse(this.curve.q);
    -    }
    -    var r = this.y.toBigInteger().multiply(this.zinv);
    -    this.curve.reduce(r);
    -    return this.curve.fromBigInteger(r);
    -}
    -
    -function pointFpEquals(other) {
    -    if(other == this) return true;
    -    if(this.isInfinity()) return other.isInfinity();
    -    if(other.isInfinity()) return this.isInfinity();
    -    var u, v;
    -    // u = Y2 * Z1 - Y1 * Z2
    -    u = other.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(other.z)).mod(this.curve.q);
    -    if(!u.equals(BigInteger.ZERO)) return false;
    -    // v = X2 * Z1 - X1 * Z2
    -    v = other.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(other.z)).mod(this.curve.q);
    -    return v.equals(BigInteger.ZERO);
    -}
    -
    -function pointFpIsInfinity() {
    -    if((this.x == null) && (this.y == null)) return true;
    -    return this.z.equals(BigInteger.ZERO) && !this.y.toBigInteger().equals(BigInteger.ZERO);
    -}
    -
    -function pointFpNegate() {
    -    return new ECPointFp(this.curve, this.x, this.y.negate(), this.z);
    -}
    -
    -function pointFpAdd(b) {
    -    if(this.isInfinity()) return b;
    -    if(b.isInfinity()) return this;
    -
    -    // u = Y2 * Z1 - Y1 * Z2
    -    var u = b.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(b.z)).mod(this.curve.q);
    -    // v = X2 * Z1 - X1 * Z2
    -    var v = b.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(b.z)).mod(this.curve.q);
    -
    -    if(BigInteger.ZERO.equals(v)) {
    -        if(BigInteger.ZERO.equals(u)) {
    -            return this.twice(); // this == b, so double
    -        }
    -	return this.curve.getInfinity(); // this = -b, so infinity
    -    }
    -
    -    var THREE = new BigInteger("3");
    -    var x1 = this.x.toBigInteger();
    -    var y1 = this.y.toBigInteger();
    -    var x2 = b.x.toBigInteger();
    -    var y2 = b.y.toBigInteger();
    -
    -    var v2 = v.square();
    -    var v3 = v2.multiply(v);
    -    var x1v2 = x1.multiply(v2);
    -    var zu2 = u.square().multiply(this.z);
    -
    -    // x3 = v * (z2 * (z1 * u^2 - 2 * x1 * v^2) - v^3)
    -    var x3 = zu2.subtract(x1v2.shiftLeft(1)).multiply(b.z).subtract(v3).multiply(v).mod(this.curve.q);
    -    // y3 = z2 * (3 * x1 * u * v^2 - y1 * v^3 - z1 * u^3) + u * v^3
    -    var y3 = x1v2.multiply(THREE).multiply(u).subtract(y1.multiply(v3)).subtract(zu2.multiply(u)).multiply(b.z).add(u.multiply(v3)).mod(this.curve.q);
    -    // z3 = v^3 * z1 * z2
    -    var z3 = v3.multiply(this.z).multiply(b.z).mod(this.curve.q);
    -
    -    return new ECPointFp(this.curve, this.curve.fromBigInteger(x3), this.curve.fromBigInteger(y3), z3);
    -}
    -
    -function pointFpTwice() {
    -    if(this.isInfinity()) return this;
    -    if(this.y.toBigInteger().signum() == 0) return this.curve.getInfinity();
    -
    -    // TODO: optimized handling of constants
    -    var THREE = new BigInteger("3");
    -    var x1 = this.x.toBigInteger();
    -    var y1 = this.y.toBigInteger();
    -
    -    var y1z1 = y1.multiply(this.z);
    -    var y1sqz1 = y1z1.multiply(y1).mod(this.curve.q);
    -    var a = this.curve.a.toBigInteger();
    -
    -    // w = 3 * x1^2 + a * z1^2
    -    var w = x1.square().multiply(THREE);
    -    if(!BigInteger.ZERO.equals(a)) {
    -      w = w.add(this.z.square().multiply(a));
    -    }
    -    w = w.mod(this.curve.q);
    -    //this.curve.reduce(w);
    -    // x3 = 2 * y1 * z1 * (w^2 - 8 * x1 * y1^2 * z1)
    -    var x3 = w.square().subtract(x1.shiftLeft(3).multiply(y1sqz1)).shiftLeft(1).multiply(y1z1).mod(this.curve.q);
    -    // y3 = 4 * y1^2 * z1 * (3 * w * x1 - 2 * y1^2 * z1) - w^3
    -    var y3 = w.multiply(THREE).multiply(x1).subtract(y1sqz1.shiftLeft(1)).shiftLeft(2).multiply(y1sqz1).subtract(w.square().multiply(w)).mod(this.curve.q);
    -    // z3 = 8 * (y1 * z1)^3
    -    var z3 = y1z1.square().multiply(y1z1).shiftLeft(3).mod(this.curve.q);
    -
    -    return new ECPointFp(this.curve, this.curve.fromBigInteger(x3), this.curve.fromBigInteger(y3), z3);
    -}
    -
    -// Simple NAF (Non-Adjacent Form) multiplication algorithm
    -// TODO: modularize the multiplication algorithm
    -function pointFpMultiply(k) {
    -    if(this.isInfinity()) return this;
    -    if(k.signum() == 0) return this.curve.getInfinity();
    -
    -    var e = k;
    -    var h = e.multiply(new BigInteger("3"));
    -
    -    var neg = this.negate();
    -    var R = this;
    -
    -    var i;
    -    for(i = h.bitLength() - 2; i > 0; --i) {
    -	R = R.twice();
    -
    -	var hBit = h.testBit(i);
    -	var eBit = e.testBit(i);
    -
    -	if (hBit != eBit) {
    -	    R = R.add(hBit ? this : neg);
    -	}
    -    }
    -
    -    return R;
    -}
    -
    -// Compute this*j + x*k (simultaneous multiplication)
    -function pointFpMultiplyTwo(j,x,k) {
    -  var i;
    -  if(j.bitLength() > k.bitLength())
    -    i = j.bitLength() - 1;
    -  else
    -    i = k.bitLength() - 1;
    -
    -  var R = this.curve.getInfinity();
    -  var both = this.add(x);
    -  while(i >= 0) {
    -    R = R.twice();
    -    if(j.testBit(i)) {
    -      if(k.testBit(i)) {
    -        R = R.add(both);
    -      }
    -      else {
    -        R = R.add(this);
    -      }
    -    }
    -    else {
    -      if(k.testBit(i)) {
    -        R = R.add(x);
    -      }
    -    }
    -    --i;
    -  }
    -
    -  return R;
    -}
    -
    -ECPointFp.prototype.getX = pointFpGetX;
    -ECPointFp.prototype.getY = pointFpGetY;
    -ECPointFp.prototype.equals = pointFpEquals;
    -ECPointFp.prototype.isInfinity = pointFpIsInfinity;
    -ECPointFp.prototype.negate = pointFpNegate;
    -ECPointFp.prototype.add = pointFpAdd;
    -ECPointFp.prototype.twice = pointFpTwice;
    -ECPointFp.prototype.multiply = pointFpMultiply;
    -ECPointFp.prototype.multiplyTwo = pointFpMultiplyTwo;
    -
    -// ----------------
    -// ECCurveFp
    -
    -// constructor
    -function ECCurveFp(q,a,b) {
    -    this.q = q;
    -    this.a = this.fromBigInteger(a);
    -    this.b = this.fromBigInteger(b);
    -    this.infinity = new ECPointFp(this, null, null);
    -    this.reducer = new Barrett(this.q);
    -}
    -
    -function curveFpGetQ() {
    -    return this.q;
    -}
    -
    -function curveFpGetA() {
    -    return this.a;
    -}
    -
    -function curveFpGetB() {
    -    return this.b;
    -}
    -
    -function curveFpEquals(other) {
    -    if(other == this) return true;
    -    return(this.q.equals(other.q) && this.a.equals(other.a) && this.b.equals(other.b));
    -}
    -
    -function curveFpGetInfinity() {
    -    return this.infinity;
    -}
    -
    -function curveFpFromBigInteger(x) {
    -    return new ECFieldElementFp(this.q, x);
    -}
    -
    -function curveReduce(x) {
    -    this.reducer.reduce(x);
    -}
    -
    -// for now, work with hex strings because they're easier in JS
    -function curveFpDecodePointHex(s) {
    -    switch(parseInt(s.substr(0,2), 16)) { // first byte
    -    case 0:
    -	return this.infinity;
    -    case 2:
    -    case 3:
    -	// point compression not supported yet
    -	return null;
    -    case 4:
    -    case 6:
    -    case 7:
    -	var len = (s.length - 2) / 2;
    -	var xHex = s.substr(2, len);
    -	var yHex = s.substr(len+2, len);
    -
    -	return new ECPointFp(this,
    -			     this.fromBigInteger(new BigInteger(xHex, 16)),
    -			     this.fromBigInteger(new BigInteger(yHex, 16)));
    -
    -    default: // unsupported
    -	return null;
    -    }
    -}
    -
    -function curveFpEncodePointHex(p) {
    -	if (p.isInfinity()) return "00";
    -	var xHex = p.getX().toBigInteger().toString(16);
    -	var yHex = p.getY().toBigInteger().toString(16);
    -	var oLen = this.getQ().toString(16).length;
    -	if ((oLen % 2) != 0) oLen++;
    -	while (xHex.length < oLen) {
    -		xHex = "0" + xHex;
    -	}
    -	while (yHex.length < oLen) {
    -		yHex = "0" + yHex;
    -	}
    -	return "04" + xHex + yHex;
    -}
    -
    -ECCurveFp.prototype.getQ = curveFpGetQ;
    -ECCurveFp.prototype.getA = curveFpGetA;
    -ECCurveFp.prototype.getB = curveFpGetB;
    -ECCurveFp.prototype.equals = curveFpEquals;
    -ECCurveFp.prototype.getInfinity = curveFpGetInfinity;
    -ECCurveFp.prototype.fromBigInteger = curveFpFromBigInteger;
    -ECCurveFp.prototype.reduce = curveReduce;
    -//ECCurveFp.prototype.decodePointHex = curveFpDecodePointHex;
    -ECCurveFp.prototype.encodePointHex = curveFpEncodePointHex;
    -
    -// from: https://github.com/kaielvin/jsbn-ec-point-compression
    -ECCurveFp.prototype.decodePointHex = function(s)
    -{
    -	var yIsEven;
    -    switch(parseInt(s.substr(0,2), 16)) { // first byte
    -    case 0:
    -	return this.infinity;
    -    case 2:
    -	yIsEven = false;
    -    case 3:
    -	if(yIsEven == undefined) yIsEven = true;
    -	var len = s.length - 2;
    -	var xHex = s.substr(2, len);
    -	var x = this.fromBigInteger(new BigInteger(xHex,16));
    -	var alpha = x.multiply(x.square().add(this.getA())).add(this.getB());
    -	var beta = alpha.sqrt();
    -
    -    if (beta == null) throw "Invalid point compression";
    -
    -    var betaValue = beta.toBigInteger();
    -    if (betaValue.testBit(0) != yIsEven)
    -    {
    -        // Use the other root
    -        beta = this.fromBigInteger(this.getQ().subtract(betaValue));
    -    }
    -    return new ECPointFp(this,x,beta);
    -    case 4:
    -    case 6:
    -    case 7:
    -	var len = (s.length - 2) / 2;
    -	var xHex = s.substr(2, len);
    -	var yHex = s.substr(len+2, len);
    -
    -	return new ECPointFp(this,
    -			     this.fromBigInteger(new BigInteger(xHex, 16)),
    -			     this.fromBigInteger(new BigInteger(yHex, 16)));
    -
    -    default: // unsupported
    -	return null;
    -    }
    -}
    -ECCurveFp.prototype.encodeCompressedPointHex = function(p)
    -{
    -	if (p.isInfinity()) return "00";
    -	var xHex = p.getX().toBigInteger().toString(16);
    -	var oLen = this.getQ().toString(16).length;
    -	if ((oLen % 2) != 0) oLen++;
    -	while (xHex.length < oLen)
    -		xHex = "0" + xHex;
    -	var yPrefix;
    -	if(p.getY().toBigInteger().isEven()) yPrefix = "02";
    -	else                                 yPrefix = "03";
    -
    -	return yPrefix + xHex;
    -}
    -
    -
    -ECFieldElementFp.prototype.getR = function()
    -{
    -	if(this.r != undefined) return this.r;
    -
    -    this.r = null;
    -    var bitLength = this.q.bitLength();
    -    if (bitLength > 128)
    -    {
    -        var firstWord = this.q.shiftRight(bitLength - 64);
    -        if (firstWord.intValue() == -1)
    -        {
    -            this.r = BigInteger.ONE.shiftLeft(bitLength).subtract(this.q);
    -        }
    -    }
    -    return this.r;
    -}
    -ECFieldElementFp.prototype.modMult = function(x1,x2)
    -{
    -    return this.modReduce(x1.multiply(x2));
    -}
    -ECFieldElementFp.prototype.modReduce = function(x)
    -{
    -    if (this.getR() != null)
    -    {
    -        var qLen = q.bitLength();
    -        while (x.bitLength() > (qLen + 1))
    -        {
    -            var u = x.shiftRight(qLen);
    -            var v = x.subtract(u.shiftLeft(qLen));
    -            if (!this.getR().equals(BigInteger.ONE))
    -            {
    -                u = u.multiply(this.getR());
    -            }
    -            x = u.add(v); 
    -        }
    -        while (x.compareTo(q) >= 0)
    -        {
    -            x = x.subtract(q);
    -        }
    -    }
    -    else
    -    {
    -        x = x.mod(q);
    -    }
    -    return x;
    -}
    -ECFieldElementFp.prototype.sqrt = function()
    -{
    -    if (!this.q.testBit(0)) throw "unsupported";
    -
    -    // p mod 4 == 3
    -    if (this.q.testBit(1))
    -    {
    -    	var z = new ECFieldElementFp(this.q,this.x.modPow(this.q.shiftRight(2).add(BigInteger.ONE),this.q));
    -    	return z.square().equals(this) ? z : null;
    -    }
    -
    -    // p mod 4 == 1
    -    var qMinusOne = this.q.subtract(BigInteger.ONE);
    -
    -    var legendreExponent = qMinusOne.shiftRight(1);
    -    if (!(this.x.modPow(legendreExponent, this.q).equals(BigInteger.ONE)))
    -    {
    -        return null;
    -    }
    -
    -    var u = qMinusOne.shiftRight(2);
    -    var k = u.shiftLeft(1).add(BigInteger.ONE);
    -
    -    var Q = this.x;
    -    var fourQ = modDouble(modDouble(Q));
    -
    -    var U, V;
    -    do
    -    {
    -        var P;
    -        do
    -        {
    -            P = new BigInteger(this.q.bitLength(), new SecureRandom());
    -        }
    -        while (P.compareTo(this.q) >= 0
    -            || !(P.multiply(P).subtract(fourQ).modPow(legendreExponent, this.q).equals(qMinusOne)));
    -
    -        var result = this.lucasSequence(P, Q, k);
    -        U = result[0];
    -        V = result[1];
    -
    -        if (this.modMult(V, V).equals(fourQ))
    -        {
    -            // Integer division by 2, mod q
    -            if (V.testBit(0))
    -            {
    -                V = V.add(q);
    -            }
    -
    -            V = V.shiftRight(1);
    -
    -            return new ECFieldElementFp(q,V);
    -        }
    -    }
    -    while (U.equals(BigInteger.ONE) || U.equals(qMinusOne));
    -
    -    return null;
    -}
    -ECFieldElementFp.prototype.lucasSequence = function(P,Q,k)
    -{
    -    var n = k.bitLength();
    -    var s = k.getLowestSetBit();
    -
    -    var Uh = BigInteger.ONE;
    -    var Vl = BigInteger.TWO;
    -    var Vh = P;
    -    var Ql = BigInteger.ONE;
    -    var Qh = BigInteger.ONE;
    -
    -    for (var j = n - 1; j >= s + 1; --j)
    -    {
    -        Ql = this.modMult(Ql, Qh);
    -
    -        if (k.testBit(j))
    -        {
    -            Qh = this.modMult(Ql, Q);
    -            Uh = this.modMult(Uh, Vh);
    -            Vl = this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));
    -            Vh = this.modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1)));
    -        }
    -        else
    -        {
    -            Qh = Ql;
    -            Uh = this.modReduce(Uh.multiply(Vl).subtract(Ql));
    -            Vh = this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));
    -            Vl = this.modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1)));
    -        }
    -    }
    -
    -    Ql = this.modMult(Ql, Qh);
    -    Qh = this.modMult(Ql, Q);
    -    Uh = this.modReduce(Uh.multiply(Vl).subtract(Ql));
    -    Vl = this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));
    -    Ql = this.modMult(Ql, Qh);
    -
    -    for (var j = 1; j <= s; ++j)
    -    {
    -        Uh = this.modMult(Uh, Vl);
    -        Vl = this.modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1)));
    -        Ql = this.modMult(Ql, Ql);
    -    }
    -
    -    return [ Uh, Vl ];
    -}
    -
    -var exports = {
    -  ECCurveFp: ECCurveFp,
    -  ECPointFp: ECPointFp,
    -  ECFieldElementFp: ECFieldElementFp
    -}
    -
    -module.exports = exports
    diff --git a/node_modules/ecc-jsbn/lib/sec.js b/node_modules/ecc-jsbn/lib/sec.js
    deleted file mode 100644
    index 5eec817..0000000
    --- a/node_modules/ecc-jsbn/lib/sec.js
    +++ /dev/null
    @@ -1,170 +0,0 @@
    -// Named EC curves
    -
    -// Requires ec.js, jsbn.js, and jsbn2.js
    -var BigInteger = require('jsbn').BigInteger
    -var ECCurveFp = require('./ec.js').ECCurveFp
    -
    -
    -// ----------------
    -// X9ECParameters
    -
    -// constructor
    -function X9ECParameters(curve,g,n,h) {
    -    this.curve = curve;
    -    this.g = g;
    -    this.n = n;
    -    this.h = h;
    -}
    -
    -function x9getCurve() {
    -    return this.curve;
    -}
    -
    -function x9getG() {
    -    return this.g;
    -}
    -
    -function x9getN() {
    -    return this.n;
    -}
    -
    -function x9getH() {
    -    return this.h;
    -}
    -
    -X9ECParameters.prototype.getCurve = x9getCurve;
    -X9ECParameters.prototype.getG = x9getG;
    -X9ECParameters.prototype.getN = x9getN;
    -X9ECParameters.prototype.getH = x9getH;
    -
    -// ----------------
    -// SECNamedCurves
    -
    -function fromHex(s) { return new BigInteger(s, 16); }
    -
    -function secp128r1() {
    -    // p = 2^128 - 2^97 - 1
    -    var p = fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF");
    -    var a = fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC");
    -    var b = fromHex("E87579C11079F43DD824993C2CEE5ED3");
    -    //byte[] S = Hex.decode("000E0D4D696E6768756151750CC03A4473D03679");
    -    var n = fromHex("FFFFFFFE0000000075A30D1B9038A115");
    -    var h = BigInteger.ONE;
    -    var curve = new ECCurveFp(p, a, b);
    -    var G = curve.decodePointHex("04"
    -                + "161FF7528B899B2D0C28607CA52C5B86"
    -		+ "CF5AC8395BAFEB13C02DA292DDED7A83");
    -    return new X9ECParameters(curve, G, n, h);
    -}
    -
    -function secp160k1() {
    -    // p = 2^160 - 2^32 - 2^14 - 2^12 - 2^9 - 2^8 - 2^7 - 2^3 - 2^2 - 1
    -    var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73");
    -    var a = BigInteger.ZERO;
    -    var b = fromHex("7");
    -    //byte[] S = null;
    -    var n = fromHex("0100000000000000000001B8FA16DFAB9ACA16B6B3");
    -    var h = BigInteger.ONE;
    -    var curve = new ECCurveFp(p, a, b);
    -    var G = curve.decodePointHex("04"
    -                + "3B4C382CE37AA192A4019E763036F4F5DD4D7EBB"
    -                + "938CF935318FDCED6BC28286531733C3F03C4FEE");
    -    return new X9ECParameters(curve, G, n, h);
    -}
    -
    -function secp160r1() {
    -    // p = 2^160 - 2^31 - 1
    -    var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF");
    -    var a = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC");
    -    var b = fromHex("1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45");
    -    //byte[] S = Hex.decode("1053CDE42C14D696E67687561517533BF3F83345");
    -    var n = fromHex("0100000000000000000001F4C8F927AED3CA752257");
    -    var h = BigInteger.ONE;
    -    var curve = new ECCurveFp(p, a, b);
    -    var G = curve.decodePointHex("04"
    -		+ "4A96B5688EF573284664698968C38BB913CBFC82"
    -		+ "23A628553168947D59DCC912042351377AC5FB32");
    -    return new X9ECParameters(curve, G, n, h);
    -}
    -
    -function secp192k1() {
    -    // p = 2^192 - 2^32 - 2^12 - 2^8 - 2^7 - 2^6 - 2^3 - 1
    -    var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37");
    -    var a = BigInteger.ZERO;
    -    var b = fromHex("3");
    -    //byte[] S = null;
    -    var n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D");
    -    var h = BigInteger.ONE;
    -    var curve = new ECCurveFp(p, a, b);
    -    var G = curve.decodePointHex("04"
    -                + "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D"
    -                + "9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D");
    -    return new X9ECParameters(curve, G, n, h);
    -}
    -
    -function secp192r1() {
    -    // p = 2^192 - 2^64 - 1
    -    var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF");
    -    var a = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC");
    -    var b = fromHex("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1");
    -    //byte[] S = Hex.decode("3045AE6FC8422F64ED579528D38120EAE12196D5");
    -    var n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831");
    -    var h = BigInteger.ONE;
    -    var curve = new ECCurveFp(p, a, b);
    -    var G = curve.decodePointHex("04"
    -                + "188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012"
    -                + "07192B95FFC8DA78631011ED6B24CDD573F977A11E794811");
    -    return new X9ECParameters(curve, G, n, h);
    -}
    -
    -function secp224r1() {
    -    // p = 2^224 - 2^96 + 1
    -    var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001");
    -    var a = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE");
    -    var b = fromHex("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4");
    -    //byte[] S = Hex.decode("BD71344799D5C7FCDC45B59FA3B9AB8F6A948BC5");
    -    var n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D");
    -    var h = BigInteger.ONE;
    -    var curve = new ECCurveFp(p, a, b);
    -    var G = curve.decodePointHex("04"
    -                + "B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21"
    -                + "BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34");
    -    return new X9ECParameters(curve, G, n, h);
    -}
    -
    -function secp256r1() {
    -    // p = 2^224 (2^32 - 1) + 2^192 + 2^96 - 1
    -    var p = fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF");
    -    var a = fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC");
    -    var b = fromHex("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B");
    -    //byte[] S = Hex.decode("C49D360886E704936A6678E1139D26B7819F7E90");
    -    var n = fromHex("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551");
    -    var h = BigInteger.ONE;
    -    var curve = new ECCurveFp(p, a, b);
    -    var G = curve.decodePointHex("04"
    -                + "6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296"
    -		+ "4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5");
    -    return new X9ECParameters(curve, G, n, h);
    -}
    -
    -// TODO: make this into a proper hashtable
    -function getSECCurveByName(name) {
    -    if(name == "secp128r1") return secp128r1();
    -    if(name == "secp160k1") return secp160k1();
    -    if(name == "secp160r1") return secp160r1();
    -    if(name == "secp192k1") return secp192k1();
    -    if(name == "secp192r1") return secp192r1();
    -    if(name == "secp224r1") return secp224r1();
    -    if(name == "secp256r1") return secp256r1();
    -    return null;
    -}
    -
    -module.exports = {
    -  "secp128r1":secp128r1,
    -  "secp160k1":secp160k1,
    -  "secp160r1":secp160r1,
    -  "secp192k1":secp192k1,
    -  "secp192r1":secp192r1,
    -  "secp224r1":secp224r1,
    -  "secp256r1":secp256r1
    -}
    diff --git a/node_modules/ecc-jsbn/package.json b/node_modules/ecc-jsbn/package.json
    deleted file mode 100644
    index 00c79e5..0000000
    --- a/node_modules/ecc-jsbn/package.json
    +++ /dev/null
    @@ -1,90 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "ecc-jsbn@~0.1.1",
    -        "scope": null,
    -        "escapedName": "ecc-jsbn",
    -        "name": "ecc-jsbn",
    -        "rawSpec": "~0.1.1",
    -        "spec": ">=0.1.1 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/sshpk"
    -    ]
    -  ],
    -  "_from": "ecc-jsbn@>=0.1.1 <0.2.0",
    -  "_id": "ecc-jsbn@0.1.1",
    -  "_inCache": true,
    -  "_location": "/ecc-jsbn",
    -  "_nodeVersion": "0.12.6",
    -  "_npmUser": {
    -    "name": "quartzjer",
    -    "email": "jeremie@jabber.org"
    -  },
    -  "_npmVersion": "2.11.2",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "ecc-jsbn@~0.1.1",
    -    "scope": null,
    -    "escapedName": "ecc-jsbn",
    -    "name": "ecc-jsbn",
    -    "rawSpec": "~0.1.1",
    -    "spec": ">=0.1.1 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/sshpk"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
    -  "_shasum": "0fc73a9ed5f0d53c38193398523ef7e543777505",
    -  "_shrinkwrap": null,
    -  "_spec": "ecc-jsbn@~0.1.1",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/sshpk",
    -  "author": {
    -    "name": "Jeremie Miller",
    -    "email": "jeremie@jabber.org",
    -    "url": "http://jeremie.com/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/quartzjer/ecc-jsbn/issues"
    -  },
    -  "dependencies": {
    -    "jsbn": "~0.1.0"
    -  },
    -  "description": "ECC JS code based on JSBN",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "0fc73a9ed5f0d53c38193398523ef7e543777505",
    -    "tarball": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz"
    -  },
    -  "gitHead": "d35a360352496721030da645e8054f07efc22487",
    -  "homepage": "https://github.com/quartzjer/ecc-jsbn",
    -  "keywords": [
    -    "jsbn",
    -    "ecc",
    -    "browserify"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "quartzjer",
    -      "email": "jeremie@jabber.org"
    -    },
    -    {
    -      "name": "rynomad",
    -      "email": "nomad.ry@gmail.com"
    -    }
    -  ],
    -  "name": "ecc-jsbn",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/quartzjer/ecc-jsbn.git"
    -  },
    -  "scripts": {},
    -  "version": "0.1.1"
    -}
    diff --git a/node_modules/ecc-jsbn/test.js b/node_modules/ecc-jsbn/test.js
    deleted file mode 100644
    index bd52abf..0000000
    --- a/node_modules/ecc-jsbn/test.js
    +++ /dev/null
    @@ -1,14 +0,0 @@
    -var ecc = require("./index.js");
    -var key1 = new ecc.ECKey(ecc.ECCurves.secp160r1);
    -var key2 = new ecc.ECKey(ecc.ECCurves.secp160r1);
    -console.log(key1.deriveSharedSecret(key2));
    -var key3 = new ecc.ECKey(ecc.ECCurves.secp160r1,key1.PrivateKey);
    -var key4 = new ecc.ECKey(ecc.ECCurves.secp160r1,key2.PublicKey,true);
    -console.log(key3.deriveSharedSecret(key4));
    -
    -var key1 = new ecc.ECKey(ecc.ECCurves.secp256r1);
    -var key2 = new ecc.ECKey(ecc.ECCurves.secp256r1);
    -console.log(key1.deriveSharedSecret(key2));
    -var key3 = new ecc.ECKey(ecc.ECCurves.secp256r1,key1.PrivateKey);
    -var key4 = new ecc.ECKey(ecc.ECCurves.secp256r1,key2.PublicKey,true);
    -console.log(key3.deriveSharedSecret(key4));
    diff --git a/node_modules/electron-to-chromium/.npmignore b/node_modules/electron-to-chromium/.npmignore
    deleted file mode 100644
    index 3c3629e..0000000
    --- a/node_modules/electron-to-chromium/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -node_modules
    diff --git a/node_modules/electron-to-chromium/CHANGELOG.md b/node_modules/electron-to-chromium/CHANGELOG.md
    deleted file mode 100644
    index ae70ff8..0000000
    --- a/node_modules/electron-to-chromium/CHANGELOG.md
    +++ /dev/null
    @@ -1,11 +0,0 @@
    -v1.2.0
    -  * versions and full-versions are now separately importable.
    -
    -v1.1.0
    -  * Both electronToChromium and electronToBrowserList now can accept strings as well as numbers.
    -
    -v1.0.1
    -  Update documentation
    -
    -v1.0.0
    -  Inititial release
    diff --git a/node_modules/electron-to-chromium/README.md b/node_modules/electron-to-chromium/README.md
    deleted file mode 100644
    index 865582f..0000000
    --- a/node_modules/electron-to-chromium/README.md
    +++ /dev/null
    @@ -1,101 +0,0 @@
    -# Electron-to-Chromium
    -This repository provides a mapping of Electron versions to the Chromium version that it uses.
    -
    -## Install
    -Install using `npm install electron-to-chromium`.
    -
    -## Usage
    -to include electron-to-chromium, require it:
    -
    -```js
    -var e2c = require('electron-to-chromium');
    -```
    -
    -### Properties
    -The Electron-to-Chromium object has 4 properties to use:
    -
    -#### versions
    -An object with all _major_ Electron versions as keys and their respective major Chromium version as string value.
    -
    -```js
    -var versions = e2c.versions;
    -console.log(versions['1.4']);
    -// returns "53"
    -```
    -
    -#### fullVersions
    -An object with all Electron versions as keys and their respective Chromium version as value.
    -
    -```js
    -var versions = e2c.fullVersions;
    -console.log(versions['1.4.11']);
    -// returns "53.0.2785.143"
    -```
    -
    -#### electronToChromium(query)
    -Arguments:
    -* Query: string or number, required. A major or full electron version.
    -
    -A function that returns the corresponding Chromium version for a given Electron function. Returns a string.
    -
    -If you provide it with a major Electron version, it will return a major Chromium version:
    -
    -```js
    -var chromeVersion = e2c.electronToChromium('1.4');
    -// chromeVersion is "53"
    -```
    -
    -If you provide it with a full Electron version, it will return the full Chromium version.
    -
    -```js
    -var chromeVersion = e2c.electronToChromium('1.4.11');
    -// chromeVersion is "53.0.2785.143"
    -```
    -
    -If a query does not match a Chromium version, it will return `undefined`.
    -
    -```js
    -var chromeVersion = e2c.electronToChromium('9000');
    -// chromeVersion is undefined
    -```
    -
    -#### electronToBrowserList(query)
    -Arguments:
    -* Query: string or number, required. A major Electron version.
    -
    -A function that returns a [Browserlist](https://github.com/ai/browserslist) query that matches the given major Electron version. Returns a string.
    -
    -If you provide it with a major Electron version, it will return a Browserlist query string that matches the chromium capabilities:
    -
    -```js
    -var query = e2c.electronToBrowserList('1.4');
    -// query is "Chrome >= 53"
    -```
    -
    -If a query does not match a Chromium version, it will return `undefined`.
    -
    -```js
    -var query = e2c.electronToBrowserList('9000');
    -// query is undefined
    -```
    -
    -### importing just versions or fullVersions
    -Both the versions and the fullVersions list can be imported on their own, if file-size is a concern.
    -
    -### versions
    -
    -```js
    -var versions = require('electron-to-chromium/versions');
    -```
    -
    -### fullVersions
    -
    -```js
    -var fullVersions = require('electron-to-chromium/full-versions');
    -```
    -
    -
    -## Updating
    -This package will be updated with each new Electron release.
    -
    -To update the list, run `npm run build.js`. Requires internet access as it downloads from the canonical list of Electron versions.
    diff --git a/node_modules/electron-to-chromium/automated-update.js b/node_modules/electron-to-chromium/automated-update.js
    deleted file mode 100644
    index 725c0fa..0000000
    --- a/node_modules/electron-to-chromium/automated-update.js
    +++ /dev/null
    @@ -1,27 +0,0 @@
    -require('shelljs/global');
    -
    -if (!which('git')) {
    -  echo('Sorry, this script requires git');
    -  exit(1);
    -}
    -if (!which('npm')) {
    -  echo('Sorry, this script requires npm');
    -  exit(1);
    -}
    -
    -exec('npm run build', {silent:true});
    -exec('git status', {silent:true}, function(code, stdout, stderr) {
    -  const indexHasUpdated = stdout.split('\n')[2] !== 'nothing to commit, working directory clean';
    -  if(indexHasUpdated) {
    -    exec('git add versions.js full-versions.js', {silent:true});
    -    exec('git commit -m "generate new version"', {silent:true});
    -    exec('npm version patch', {silent:true});
    -    exec('git push origin master', {silent:true});
    -    exec('git push --tags', {silent:true});
    -    exec('npm publish', {silent:true});
    -    echo('new version released.');
    -  } else {
    -    echo('nothing to do.');
    -    exit(0);
    -  }
    -});
    diff --git a/node_modules/electron-to-chromium/build.js b/node_modules/electron-to-chromium/build.js
    deleted file mode 100644
    index 7284793..0000000
    --- a/node_modules/electron-to-chromium/build.js
    +++ /dev/null
    @@ -1,39 +0,0 @@
    -const https = require('https');
    -const request = require('request');
    -const fs = require('fs');
    -
    -request('https://atom.io/download/electron/index.json', function(error, response, body) {
    -  if (!error && response.statusCode == 200) {
    -    const allElectronVersions = JSON.parse(body);
    -    const versions = {};
    -    const fullVersions = {};
    -
    -    const makePrintable = mapping => JSON.stringify(mapping)
    -                                      .replace(/,/g, ",\n\t")
    -                                      .replace(/{/g, "{\n\t")
    -                                      .replace(/}/g, "\n}");
    -
    -    allElectronVersions.forEach(electron => {
    -      // simple list
    -      const simpleVersion = electron.version.split(".")[0] + "." + electron.version.split(".")[1];
    -      versions[simpleVersion] = electron.chrome.split(".")[0];
    -
    -      // explicit list
    -      fullVersions[electron.version] = electron.chrome;
    -    });
    -
    -    fs.writeFile("versions.js", `module.exports = ${makePrintable(versions)};`, function (error) {
    -      if (error) {
    -        throw error;
    -      }
    -    });
    -
    -    fs.writeFile("full-versions.js", `module.exports = ${makePrintable(fullVersions)};`, function (error) {
    -      if (error) {
    -        throw error;
    -      }
    -    });
    -  } else {
    -    throw error;
    -  }
    -})
    diff --git a/node_modules/electron-to-chromium/full-versions.js b/node_modules/electron-to-chromium/full-versions.js
    deleted file mode 100644
    index edf9c53..0000000
    --- a/node_modules/electron-to-chromium/full-versions.js
    +++ /dev/null
    @@ -1,127 +0,0 @@
    -module.exports = {
    -	"1.6.1":"56.0.2924.87",
    -	"1.6.0":"56.0.2924.87",
    -	"1.5.1":"54.0.2840.101",
    -	"1.5.0":"54.0.2840.101",
    -	"1.4.15":"53.0.2785.143",
    -	"1.4.14":"53.0.2785.143",
    -	"1.4.13":"53.0.2785.143",
    -	"1.4.12":"54.0.2840.51",
    -	"1.4.11":"53.0.2785.143",
    -	"1.3.13":"52.0.2743.82",
    -	"1.4.10":"53.0.2785.143",
    -	"1.4.9":"53.0.2785.143",
    -	"1.4.8":"53.0.2785.143",
    -	"1.3.10":"52.0.2743.82",
    -	"1.3.9":"52.0.2743.82",
    -	"1.4.7":"53.0.2785.143",
    -	"1.4.6":"53.0.2785.143",
    -	"1.4.5":"53.0.2785.113",
    -	"1.4.4":"53.0.2785.113",
    -	"1.4.3":"53.0.2785.113",
    -	"1.4.2":"53.0.2785.113",
    -	"1.3.7":"52.0.2743.82",
    -	"1.4.1":"53.0.2785.113",
    -	"1.4.0":"53.0.2785.113",
    -	"1.3.6":"52.0.2743.82",
    -	"1.3.5":"52.0.2743.82",
    -	"1.3.4":"52.0.2743.82",
    -	"1.3.3":"52.0.2743.82",
    -	"1.3.2":"52.0.2743.82",
    -	"1.3.1":"52.0.2743.82",
    -	"1.3.0":"52.0.2743.82",
    -	"1.2.8":"51.0.2704.106",
    -	"1.2.7":"51.0.2704.106",
    -	"1.2.6":"51.0.2704.106",
    -	"1.2.5":"51.0.2704.103",
    -	"1.2.4":"51.0.2704.103",
    -	"1.2.3":"51.0.2704.84",
    -	"1.2.2":"51.0.2704.84",
    -	"1.2.1":"51.0.2704.63",
    -	"1.2.0":"51.0.2704.63",
    -	"1.1.3":"50.0.2661.102",
    -	"1.1.2":"50.0.2661.102",
    -	"1.1.1":"50.0.2661.102",
    -	"1.1.0":"50.0.2661.102",
    -	"1.0.2":"49.0.2623.75",
    -	"1.0.1":"49.0.2623.75",
    -	"1.0.0":"49.0.2623.75",
    -	"0.37.8":"49.0.2623.75",
    -	"0.37.7":"49.0.2623.75",
    -	"0.37.6":"49.0.2623.75",
    -	"0.37.5":"49.0.2623.75",
    -	"0.37.4":"49.0.2623.75",
    -	"0.37.3":"49.0.2623.75",
    -	"0.36.12":"47.0.2526.110",
    -	"0.37.1":"49.0.2623.75",
    -	"0.37.0":"49.0.2623.75",
    -	"0.36.11":"47.0.2526.110",
    -	"0.36.10":"47.0.2526.110",
    -	"0.36.9":"47.0.2526.110",
    -	"0.36.8":"47.0.2526.110",
    -	"0.36.7":"47.0.2526.110",
    -	"0.36.6":"47.0.2526.110",
    -	"0.36.5":"47.0.2526.110",
    -	"0.36.4":"47.0.2526.73",
    -	"0.36.3":"47.0.2526.73",
    -	"0.35.5":"45.0.2454.85",
    -	"0.36.2":"47.0.2526.73",
    -	"0.36.0":"47.0.2526.73",
    -	"0.35.4":"45.0.2454.85",
    -	"0.35.3":"45.0.2454.85",
    -	"0.35.2":"45.0.2454.85",
    -	"0.34.4":"45.0.2454.85",
    -	"0.35.1":"45.0.2454.85",
    -	"0.34.3":"45.0.2454.85",
    -	"0.34.2":"45.0.2454.85",
    -	"0.34.1":"45.0.2454.85",
    -	"0.34.0":"45.0.2454.85",
    -	"0.33.9":"45.0.2454.85",
    -	"0.33.8":"45.0.2454.85",
    -	"0.33.7":"45.0.2454.85",
    -	"0.33.6":"45.0.2454.85",
    -	"0.33.4":"45.0.2454.85",
    -	"0.33.3":"45.0.2454.85",
    -	"0.33.2":"45.0.2454.85",
    -	"0.33.1":"45.0.2454.85",
    -	"0.33.0":"45.0.2454.85",
    -	"0.32.3":"45.0.2454.85",
    -	"0.32.2":"45.0.2454.85",
    -	"0.31.2":"45.0.2454.85",
    -	"0.31.0":"44.0.2403.125",
    -	"0.30.4":"44.0.2403.125",
    -	"0.29.2":"43.0.2357.65",
    -	"0.29.1":"43.0.2357.65",
    -	"0.28.3":"43.0.2357.65",
    -	"0.28.2":"43.0.2357.65",
    -	"0.28.1":"43.0.2357.65",
    -	"0.28.0":"43.0.2357.65",
    -	"0.27.3":"43.0.2357.65",
    -	"0.27.2":"43.0.2357.65",
    -	"0.27.1":"42.0.2311.107",
    -	"0.27.0":"42.0.2311.107",
    -	"0.26.1":"42.0.2311.107",
    -	"0.26.0":"42.0.2311.107",
    -	"0.25.3":"42.0.2311.107",
    -	"0.25.2":"42.0.2311.107",
    -	"0.25.1":"42.0.2311.107",
    -	"0.25.0":"42.0.2311.107",
    -	"0.24.0":"41.0.2272.76",
    -	"0.23.0":"41.0.2272.76",
    -	"0.22.3":"41.0.2272.76",
    -	"0.22.2":"41.0.2272.76",
    -	"0.22.1":"41.0.2272.76",
    -	"0.21.3":"41.0.2272.76",
    -	"0.21.2":"40.0.2214.91",
    -	"0.21.1":"40.0.2214.91",
    -	"0.21.0":"40.0.2214.91",
    -	"0.20.8":"39.0.2171.65",
    -	"0.20.7":"39.0.2171.65",
    -	"0.20.6":"39.0.2171.65",
    -	"0.20.5":"39.0.2171.65",
    -	"0.20.4":"39.0.2171.65",
    -	"0.20.3":"39.0.2171.65",
    -	"0.20.2":"39.0.2171.65",
    -	"0.20.1":"39.0.2171.65",
    -	"0.20.0":"39.0.2171.65"
    -};
    \ No newline at end of file
    diff --git a/node_modules/electron-to-chromium/index.js b/node_modules/electron-to-chromium/index.js
    deleted file mode 100644
    index 609ca0c..0000000
    --- a/node_modules/electron-to-chromium/index.js
    +++ /dev/null
    @@ -1,26 +0,0 @@
    -var versions = require('./versions');
    -var fullVersions = require('./versions');
    -
    -var electronToChromium = function (query) {
    -  var number = getQueryString(query);
    -  return number.split('.').length > 2 ? fullVersions[number] : versions[number] || undefined;
    -}
    -
    -var electronToBrowserList = function (query) {
    -  var number = getQueryString(query);
    -  return versions[number] ? "Chrome >= " + versions[number] : undefined;
    -}
    -
    -var getQueryString = function (query) {
    -  var number = query;
    -  if (query === 1) { number = "1.0" }
    -  if (typeof query === 'number') { number += ''; }
    -  return number;
    -}
    -
    -module.exports = {
    -  versions: versions,
    -  fullVersions: fullVersions,
    -  electronToChromium: electronToChromium,
    -  electronToBrowserList: electronToBrowserList
    -};
    diff --git a/node_modules/electron-to-chromium/package.json b/node_modules/electron-to-chromium/package.json
    deleted file mode 100644
    index 8690fe8..0000000
    --- a/node_modules/electron-to-chromium/package.json
    +++ /dev/null
    @@ -1,88 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "electron-to-chromium@^1.2.3",
    -        "scope": null,
    -        "escapedName": "electron-to-chromium",
    -        "name": "electron-to-chromium",
    -        "rawSpec": "^1.2.3",
    -        "spec": ">=1.2.3 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/browserslist"
    -    ]
    -  ],
    -  "_from": "electron-to-chromium@>=1.2.3 <2.0.0",
    -  "_id": "electron-to-chromium@1.2.3",
    -  "_inCache": true,
    -  "_location": "/electron-to-chromium",
    -  "_nodeVersion": "6.9.4",
    -  "_npmOperationalInternal": {
    -    "host": "packages-18-east.internal.npmjs.com",
    -    "tmp": "tmp/electron-to-chromium-1.2.3.tgz_1487754135693_0.4941995656117797"
    -  },
    -  "_npmUser": {
    -    "name": "kilianvalkhof",
    -    "email": "kilian@kilianvalkhof.com"
    -  },
    -  "_npmVersion": "4.1.1",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "electron-to-chromium@^1.2.3",
    -    "scope": null,
    -    "escapedName": "electron-to-chromium",
    -    "name": "electron-to-chromium",
    -    "rawSpec": "^1.2.3",
    -    "spec": ">=1.2.3 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/browserslist"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.2.3.tgz",
    -  "_shasum": "4b4d04d237c301f72e2d15c2137b2b79f9f5ab76",
    -  "_shrinkwrap": null,
    -  "_spec": "electron-to-chromium@^1.2.3",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/browserslist",
    -  "author": {
    -    "name": "Kilian Valkhof"
    -  },
    -  "dependencies": {},
    -  "description": "Provides a list of electron-to-chromium version mappings",
    -  "devDependencies": {
    -    "request": "^2.79.0",
    -    "shelljs": "^0.7.6"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "4b4d04d237c301f72e2d15c2137b2b79f9f5ab76",
    -    "tarball": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.2.3.tgz"
    -  },
    -  "gitHead": "7a0ba8e6e886a209167c6195dc86e2222a05c722",
    -  "keywords": [
    -    "electron",
    -    "chrome",
    -    "browserlist"
    -  ],
    -  "license": "ISC",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "kilianvalkhof",
    -      "email": "kilian@kilianvalkhof.com"
    -    }
    -  ],
    -  "name": "electron-to-chromium",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "https://github.com/kilian/electron-to-chromium/"
    -  },
    -  "scripts": {
    -    "build": "node build.js",
    -    "update": "node automated-update.js"
    -  },
    -  "version": "1.2.3"
    -}
    diff --git a/node_modules/electron-to-chromium/shelljs_24309969774da2a9fa98 b/node_modules/electron-to-chromium/shelljs_24309969774da2a9fa98
    deleted file mode 100644
    index f90d239..0000000
    --- a/node_modules/electron-to-chromium/shelljs_24309969774da2a9fa98
    +++ /dev/null
    @@ -1,23 +0,0 @@
    -var child = require('child_process')
    -  , fs = require('fs');
    -var childProcess = child.exec("npm publish", {"silent":true,"cwd":"/opt/electron-to-chromium","env":{"npm_config_cache_lock_stale":"60000","npm_config_legacy_bundling":"","npm_config_sign_git_tag":"","npm_config_user_agent":"npm/4.1.1 node/v6.9.4 linux x64","npm_config_always_auth":"","npm_config_bin_links":"true","npm_config_key":"","npm_config_description":"true","npm_config_fetch_retries":"2","npm_config_heading":"npm","npm_config_if_present":"","npm_config_init_version":"1.0.0","npm_config_user":"","npm_node_execpath":"/usr/bin/nodejs","HOME":"/root","npm_config_force":"","npm_config_only":"","npm_config_cache_min":"10","npm_config_init_license":"ISC","npm_package_devDependencies_shelljs":"^0.7.6","npm_config_editor":"vi","npm_config_rollback":"true","npm_config_tag_version_prefix":"v","npm_config_cache_max":"Infinity","npm_config_userconfig":"/root/.npmrc","npm_package_keywords_0":"electron","npm_config_engine_strict":"","npm_config_init_author_name":"","npm_config_init_author_url":"","npm_config_tmp":"/tmp","npm_package_description":"Provides a list of electron-to-chromium version mappings","npm_package_keywords_1":"chrome","npm_config_depth":"Infinity","npm_config_save_dev":"","npm_config_usage":"","npm_package_keywords_2":"browserlist","npm_package_readmeFilename":"README.md","npm_config_cafile":"","npm_config_metrics_registry":"https://registry.npmjs.org/","npm_config_progress":"true","npm_config_https_proxy":"","npm_config_onload_script":"","TMPDIR":"/opt/electron-to-chromium","LOGNAME":"root","npm_config_rebuild_bundle":"true","npm_config_save_bundle":"","npm_config_shell":"/bin/sh","npm_config_dry_run":"","npm_config_prefix":"/usr","npm_config_scope":"","npm_config_browser":"","npm_config_cache_lock_wait":"10000","npm_config_registry":"https://registry.npmjs.org/","npm_config_save_optional":"","npm_config_searchopts":"","npm_config_versions":"","npm_config_cache":"/root/.npm","npm_config_proxy":"","npm_config_send_metrics":"","npm_config_global_style":"","npm_config_ignore_scripts":"","npm_config_version":"","npm_config_local_address":"","npm_config_viewer":"man","PATH":"/usr/lib/node_modules/npm/bin/node-gyp-bin:/opt/electron-to-chromium/node_modules/.bin:/usr/bin:/bin","npm_package_name":"electron-to-chromium","npm_package_repository_type":"git","NODE":"/usr/bin/nodejs","npm_config_color":"true","npm_config_fetch_retry_mintimeout":"10000","npm_config_maxsockets":"50","LANG":"en_US.UTF-8","npm_config_umask":"0022","npm_package_main":"index.js","npm_package_gitHead":"20fed92a6206cf0204fe2985325c07ae84eb8630","npm_config_fetch_retry_maxtimeout":"60000","npm_config_loglevel":"warn","npm_config_message":"%s","npm_lifecycle_script":"node automated-update.js","npm_package_scripts_update":"node automated-update.js","npm_config_ca":"","npm_config_cert":"","npm_config_global":"","npm_config_link":"","SHELL":"/bin/sh","npm_package_version":"1.2.2","npm_package_repository_url":"https://github.com/kilian/electron-to-chromium/","npm_config_access":"","npm_config_also":"","npm_config_save":"","npm_config_unicode":"true","npm_lifecycle_event":"update","npm_package_scripts_build":"node build.js","npm_config_argv":"{\"remain\":[],\"cooked\":[\"run\",\"update\"],\"original\":[\"run\",\"update\"]}","npm_config_long":"","npm_config_production":"","npm_config_unsafe_perm":"","npm_package_devDependencies_request":"^2.79.0","npm_config_node_version":"6.9.4","npm_config_tag":"latest","npm_config_git_tag_version":"true","npm_config_shrinkwrap":"true","npm_package_license":"ISC","npm_config_fetch_retry_factor":"10","npm_config_proprietary_attribs":"true","npm_config_save_exact":"","npm_config_strict_ssl":"true","npm_config_dev":"","npm_config_globalconfig":"/usr/etc/npmrc","npm_config_init_module":"/root/.npm-init.js","npm_config_parseable":"","PWD":"/opt/electron-to-chromium","npm_config_globalignorefile":"/usr/etc/npmignore","npm_execpath":"/usr/lib/node_modules/npm/bin/npm-cli.js","npm_package_author_name":"Kilian Valkhof","npm_config_cache_lock_retries":"10","npm_config_searchstaleness":"900","npm_config_save_prefix":"^","npm_config_scripts_prepend_node_path":"warn-only","npm_config_group":"","npm_config_init_author_email":"","npm_config_searchexclude":"","npm_config_git":"git","npm_config_optional":"true","npm_config_json":""},"maxBuffer":20971520,"async":false}, function(err) {
    -  var fname = "/opt/electron-to-chromium/shelljs_790b40e82821a1fe048f";
    -  if (!err) {
    -    fs.writeFileSync(fname, "0");
    -  } else if (err.code === undefined) {
    -    fs.writeFileSync(fname, "1");
    -  } else {
    -    fs.writeFileSync(fname, err.code.toString());
    -  }
    -});
    -var stdoutStream = fs.createWriteStream("/opt/electron-to-chromium/shelljs_24e5101ebfb1f35ef87c");
    -var stderrStream = fs.createWriteStream("/opt/electron-to-chromium/shelljs_41f782ab98bf16ac92d6");
    -childProcess.stdout.pipe(stdoutStream, {end: false});
    -childProcess.stderr.pipe(stderrStream, {end: false});
    -childProcess.stdout.pipe(process.stdout);
    -childProcess.stderr.pipe(process.stderr);
    -var stdoutEnded = false, stderrEnded = false;
    -function tryClosingStdout(){ if(stdoutEnded){ stdoutStream.end(); } }
    -function tryClosingStderr(){ if(stderrEnded){ stderrStream.end(); } }
    -childProcess.stdout.on('end', function(){ stdoutEnded = true; tryClosingStdout(); });
    -childProcess.stderr.on('end', function(){ stderrEnded = true; tryClosingStderr(); });
    \ No newline at end of file
    diff --git a/node_modules/electron-to-chromium/shelljs_24e5101ebfb1f35ef87c b/node_modules/electron-to-chromium/shelljs_24e5101ebfb1f35ef87c
    deleted file mode 100644
    index e69de29..0000000
    diff --git a/node_modules/electron-to-chromium/shelljs_41f782ab98bf16ac92d6 b/node_modules/electron-to-chromium/shelljs_41f782ab98bf16ac92d6
    deleted file mode 100644
    index e69de29..0000000
    diff --git a/node_modules/electron-to-chromium/versions.js b/node_modules/electron-to-chromium/versions.js
    deleted file mode 100644
    index c60ffe7..0000000
    --- a/node_modules/electron-to-chromium/versions.js
    +++ /dev/null
    @@ -1,27 +0,0 @@
    -module.exports = {
    -	"1.6":"56",
    -	"1.5":"54",
    -	"1.4":"53",
    -	"1.3":"52",
    -	"1.2":"51",
    -	"1.1":"50",
    -	"1.0":"49",
    -	"0.37":"49",
    -	"0.36":"47",
    -	"0.35":"45",
    -	"0.34":"45",
    -	"0.33":"45",
    -	"0.32":"45",
    -	"0.31":"44",
    -	"0.30":"44",
    -	"0.29":"43",
    -	"0.28":"43",
    -	"0.27":"42",
    -	"0.26":"42",
    -	"0.25":"42",
    -	"0.24":"41",
    -	"0.23":"41",
    -	"0.22":"41",
    -	"0.21":"40",
    -	"0.20":"39"
    -};
    \ No newline at end of file
    diff --git a/node_modules/end-of-stream/.npmignore b/node_modules/end-of-stream/.npmignore
    deleted file mode 100644
    index 3c3629e..0000000
    --- a/node_modules/end-of-stream/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -node_modules
    diff --git a/node_modules/end-of-stream/README.md b/node_modules/end-of-stream/README.md
    deleted file mode 100644
    index df800c1..0000000
    --- a/node_modules/end-of-stream/README.md
    +++ /dev/null
    @@ -1,47 +0,0 @@
    -# end-of-stream
    -
    -A node module that calls a callback when a readable/writable/duplex stream has completed or failed.
    -
    -	npm install end-of-stream
    -
    -## Usage
    -
    -Simply pass a stream and a callback to the `eos`.
    -Both legacy streams and streams2 are supported.
    -
    -``` js
    -var eos = require('end-of-stream');
    -
    -eos(readableStream, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has ended');
    -});
    -
    -eos(writableStream, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has finished');
    -});
    -
    -eos(duplexStream, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has ended and finished');
    -});
    -
    -eos(duplexStream, {readable:false}, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has ended but might still be writable');
    -});
    -
    -eos(duplexStream, {writable:false}, function(err) {
    -	if (err) return console.log('stream had an error or closed early');
    -	console.log('stream has ended but might still be readable');
    -});
    -
    -eos(readableStream, {error:false}, function(err) {
    -	// do not treat emit('error', err) as a end-of-stream
    -});
    -```
    -
    -## License
    -
    -MIT
    \ No newline at end of file
    diff --git a/node_modules/end-of-stream/index.js b/node_modules/end-of-stream/index.js
    deleted file mode 100644
    index b9fbec0..0000000
    --- a/node_modules/end-of-stream/index.js
    +++ /dev/null
    @@ -1,61 +0,0 @@
    -var once = require('once');
    -
    -var noop = function() {};
    -
    -var isRequest = function(stream) {
    -	return stream.setHeader && typeof stream.abort === 'function';
    -};
    -
    -var eos = function(stream, opts, callback) {
    -	if (typeof opts === 'function') return eos(stream, null, opts);
    -	if (!opts) opts = {};
    -
    -	callback = once(callback || noop);
    -
    -	var ws = stream._writableState;
    -	var rs = stream._readableState;
    -	var readable = opts.readable || (opts.readable !== false && stream.readable);
    -	var writable = opts.writable || (opts.writable !== false && stream.writable);
    -
    -	var onlegacyfinish = function() {
    -		if (!stream.writable) onfinish();
    -	};
    -
    -	var onfinish = function() {
    -		writable = false;
    -		if (!readable) callback();
    -	};
    -
    -	var onend = function() {
    -		readable = false;
    -		if (!writable) callback();
    -	};
    -
    -	var onclose = function() {
    -		if (readable && !(rs && rs.ended)) return callback(new Error('premature close'));
    -		if (writable && !(ws && ws.ended)) return callback(new Error('premature close'));
    -	};
    -
    -	var onrequest = function() {
    -		stream.req.on('finish', onfinish);
    -	};
    -
    -	if (isRequest(stream)) {
    -		stream.on('complete', onfinish);
    -		stream.on('abort', onclose);
    -		if (stream.req) onrequest();
    -		else stream.on('request', onrequest);
    -	} else if (writable && !ws) { // legacy streams
    -		stream.on('end', onlegacyfinish);
    -		stream.on('close', onlegacyfinish);
    -	}
    -
    -	stream.on('end', onend);
    -	stream.on('finish', onfinish);
    -	if (opts.error !== false) stream.on('error', callback);
    -	stream.on('close', onclose);
    -
    -	return stream;
    -};
    -
    -module.exports = eos;
    \ No newline at end of file
    diff --git a/node_modules/end-of-stream/node_modules/once/LICENSE b/node_modules/end-of-stream/node_modules/once/LICENSE
    deleted file mode 100644
    index 19129e3..0000000
    --- a/node_modules/end-of-stream/node_modules/once/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/end-of-stream/node_modules/once/README.md b/node_modules/end-of-stream/node_modules/once/README.md
    deleted file mode 100644
    index a2981ea..0000000
    --- a/node_modules/end-of-stream/node_modules/once/README.md
    +++ /dev/null
    @@ -1,51 +0,0 @@
    -# once
    -
    -Only call a function once.
    -
    -## usage
    -
    -```javascript
    -var once = require('once')
    -
    -function load (file, cb) {
    -  cb = once(cb)
    -  loader.load('file')
    -  loader.once('load', cb)
    -  loader.once('error', cb)
    -}
    -```
    -
    -Or add to the Function.prototype in a responsible way:
    -
    -```javascript
    -// only has to be done once
    -require('once').proto()
    -
    -function load (file, cb) {
    -  cb = cb.once()
    -  loader.load('file')
    -  loader.once('load', cb)
    -  loader.once('error', cb)
    -}
    -```
    -
    -Ironically, the prototype feature makes this module twice as
    -complicated as necessary.
    -
    -To check whether you function has been called, use `fn.called`. Once the
    -function is called for the first time the return value of the original
    -function is saved in `fn.value` and subsequent calls will continue to
    -return this value.
    -
    -```javascript
    -var once = require('once')
    -
    -function load (cb) {
    -  cb = once(cb)
    -  var stream = createStream()
    -  stream.once('data', cb)
    -  stream.once('end', function () {
    -    if (!cb.called) cb(new Error('not found'))
    -  })
    -}
    -```
    diff --git a/node_modules/end-of-stream/node_modules/once/once.js b/node_modules/end-of-stream/node_modules/once/once.js
    deleted file mode 100644
    index 2e1e721..0000000
    --- a/node_modules/end-of-stream/node_modules/once/once.js
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -var wrappy = require('wrappy')
    -module.exports = wrappy(once)
    -
    -once.proto = once(function () {
    -  Object.defineProperty(Function.prototype, 'once', {
    -    value: function () {
    -      return once(this)
    -    },
    -    configurable: true
    -  })
    -})
    -
    -function once (fn) {
    -  var f = function () {
    -    if (f.called) return f.value
    -    f.called = true
    -    return f.value = fn.apply(this, arguments)
    -  }
    -  f.called = false
    -  return f
    -}
    diff --git a/node_modules/end-of-stream/node_modules/once/package.json b/node_modules/end-of-stream/node_modules/once/package.json
    deleted file mode 100644
    index ab713b5..0000000
    --- a/node_modules/end-of-stream/node_modules/once/package.json
    +++ /dev/null
    @@ -1,96 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "once@~1.3.0",
    -        "scope": null,
    -        "escapedName": "once",
    -        "name": "once",
    -        "rawSpec": "~1.3.0",
    -        "spec": ">=1.3.0 <1.4.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/end-of-stream"
    -    ]
    -  ],
    -  "_from": "once@>=1.3.0 <1.4.0",
    -  "_id": "once@1.3.3",
    -  "_inCache": true,
    -  "_location": "/end-of-stream/once",
    -  "_nodeVersion": "4.0.0",
    -  "_npmUser": {
    -    "name": "isaacs",
    -    "email": "i@izs.me"
    -  },
    -  "_npmVersion": "3.3.2",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "once@~1.3.0",
    -    "scope": null,
    -    "escapedName": "once",
    -    "name": "once",
    -    "rawSpec": "~1.3.0",
    -    "spec": ">=1.3.0 <1.4.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/end-of-stream"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz",
    -  "_shasum": "b2e261557ce4c314ec8304f3fa82663e4297ca20",
    -  "_shrinkwrap": null,
    -  "_spec": "once@~1.3.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/end-of-stream",
    -  "author": {
    -    "name": "Isaac Z. Schlueter",
    -    "email": "i@izs.me",
    -    "url": "http://blog.izs.me/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/isaacs/once/issues"
    -  },
    -  "dependencies": {
    -    "wrappy": "1"
    -  },
    -  "description": "Run a function exactly one time",
    -  "devDependencies": {
    -    "tap": "^1.2.0"
    -  },
    -  "directories": {
    -    "test": "test"
    -  },
    -  "dist": {
    -    "shasum": "b2e261557ce4c314ec8304f3fa82663e4297ca20",
    -    "tarball": "https://registry.npmjs.org/once/-/once-1.3.3.tgz"
    -  },
    -  "files": [
    -    "once.js"
    -  ],
    -  "gitHead": "2ad558657e17fafd24803217ba854762842e4178",
    -  "homepage": "https://github.com/isaacs/once#readme",
    -  "keywords": [
    -    "once",
    -    "function",
    -    "one",
    -    "single"
    -  ],
    -  "license": "ISC",
    -  "main": "once.js",
    -  "maintainers": [
    -    {
    -      "name": "isaacs",
    -      "email": "i@izs.me"
    -    }
    -  ],
    -  "name": "once",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/isaacs/once.git"
    -  },
    -  "scripts": {
    -    "test": "tap test/*.js"
    -  },
    -  "version": "1.3.3"
    -}
    diff --git a/node_modules/end-of-stream/package.json b/node_modules/end-of-stream/package.json
    deleted file mode 100644
    index 912a33c..0000000
    --- a/node_modules/end-of-stream/package.json
    +++ /dev/null
    @@ -1,91 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "end-of-stream@~0.1.5",
    -        "scope": null,
    -        "escapedName": "end-of-stream",
    -        "name": "end-of-stream",
    -        "rawSpec": "~0.1.5",
    -        "spec": ">=0.1.5 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/orchestrator"
    -    ]
    -  ],
    -  "_from": "end-of-stream@>=0.1.5 <0.2.0",
    -  "_id": "end-of-stream@0.1.5",
    -  "_inCache": true,
    -  "_location": "/end-of-stream",
    -  "_npmUser": {
    -    "name": "mafintosh",
    -    "email": "mathiasbuus@gmail.com"
    -  },
    -  "_npmVersion": "1.4.9",
    -  "_phantomChildren": {
    -    "wrappy": "1.0.2"
    -  },
    -  "_requested": {
    -    "raw": "end-of-stream@~0.1.5",
    -    "scope": null,
    -    "escapedName": "end-of-stream",
    -    "name": "end-of-stream",
    -    "rawSpec": "~0.1.5",
    -    "spec": ">=0.1.5 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/orchestrator"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz",
    -  "_shasum": "8e177206c3c80837d85632e8b9359dfe8b2f6eaf",
    -  "_shrinkwrap": null,
    -  "_spec": "end-of-stream@~0.1.5",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/orchestrator",
    -  "author": {
    -    "name": "Mathias Buus",
    -    "email": "mathiasbuus@gmail.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/mafintosh/end-of-stream/issues"
    -  },
    -  "dependencies": {
    -    "once": "~1.3.0"
    -  },
    -  "description": "Call a callback when a readable/writable/duplex stream has completed or failed.",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "8e177206c3c80837d85632e8b9359dfe8b2f6eaf",
    -    "tarball": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz"
    -  },
    -  "homepage": "https://github.com/mafintosh/end-of-stream",
    -  "keywords": [
    -    "stream",
    -    "streams",
    -    "callback",
    -    "finish",
    -    "close",
    -    "end",
    -    "wait"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "mafintosh",
    -      "email": "mathiasbuus@gmail.com"
    -    }
    -  ],
    -  "name": "end-of-stream",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/mafintosh/end-of-stream.git"
    -  },
    -  "scripts": {
    -    "test": "node test.js"
    -  },
    -  "version": "0.1.5"
    -}
    diff --git a/node_modules/end-of-stream/test.js b/node_modules/end-of-stream/test.js
    deleted file mode 100644
    index 277f1ce..0000000
    --- a/node_modules/end-of-stream/test.js
    +++ /dev/null
    @@ -1,59 +0,0 @@
    -var assert = require('assert');
    -var eos = require('./index');
    -
    -var expected = 6;
    -var fs = require('fs');
    -var net = require('net');
    -
    -var ws = fs.createWriteStream('/dev/null');
    -eos(ws, function(err) {
    -	expected--;
    -	assert(!!err);
    -	if (!expected) process.exit(0);
    -});
    -ws.close();
    -
    -var rs = fs.createReadStream('/dev/random');
    -eos(rs, function(err) {
    -	expected--;
    -	assert(!!err);
    -	if (!expected) process.exit(0);
    -});
    -rs.close();
    -
    -var rs = fs.createReadStream(__filename);
    -eos(rs, function(err) {
    -	expected--;
    -	assert(!err);
    -	if (!expected) process.exit(0);
    -});
    -rs.pipe(fs.createWriteStream('/dev/null'));
    -
    -var socket = net.connect(50000);
    -eos(socket, function(err) {
    -	expected--;
    -	assert(!!err);
    -	if (!expected) process.exit(0);
    -});
    -
    -
    -var server = net.createServer(function(socket) {
    -	eos(socket, function() {
    -		expected--;
    -		if (!expected) process.exit(0);
    -	});
    -	socket.destroy();
    -}).listen(30000, function() {
    -	var socket = net.connect(30000);
    -	eos(socket, function() {
    -		expected--;
    -		if (!expected) process.exit(0);
    -	});
    -});
    -
    -
    -
    -setTimeout(function() {
    -	assert(expected === 0);
    -	process.exit(0);
    -}, 1000);
    diff --git a/node_modules/errno/.jshintrc b/node_modules/errno/.jshintrc
    deleted file mode 100644
    index c8ef3ca..0000000
    --- a/node_modules/errno/.jshintrc
    +++ /dev/null
    @@ -1,59 +0,0 @@
    -{
    -    "predef": [ ]
    -  , "bitwise": false
    -  , "camelcase": false
    -  , "curly": false
    -  , "eqeqeq": false
    -  , "forin": false
    -  , "immed": false
    -  , "latedef": false
    -  , "noarg": true
    -  , "noempty": true
    -  , "nonew": true
    -  , "plusplus": false
    -  , "quotmark": true
    -  , "regexp": false
    -  , "undef": true
    -  , "unused": true
    -  , "strict": false
    -  , "trailing": true
    -  , "maxlen": 120
    -  , "asi": true
    -  , "boss": true
    -  , "debug": true
    -  , "eqnull": true
    -  , "esnext": true
    -  , "evil": true
    -  , "expr": true
    -  , "funcscope": false
    -  , "globalstrict": false
    -  , "iterator": false
    -  , "lastsemic": true
    -  , "laxbreak": true
    -  , "laxcomma": true
    -  , "loopfunc": true
    -  , "multistr": false
    -  , "onecase": false
    -  , "proto": false
    -  , "regexdash": false
    -  , "scripturl": true
    -  , "smarttabs": false
    -  , "shadow": false
    -  , "sub": true
    -  , "supernew": false
    -  , "validthis": true
    -  , "browser": true
    -  , "couch": false
    -  , "devel": false
    -  , "dojo": false
    -  , "mootools": false
    -  , "node": true
    -  , "nonstandard": true
    -  , "prototypejs": false
    -  , "rhino": false
    -  , "worker": true
    -  , "wsh": false
    -  , "nomen": false
    -  , "onevar": false
    -  , "passfail": false
    -}
    \ No newline at end of file
    diff --git a/node_modules/errno/.npmignore b/node_modules/errno/.npmignore
    deleted file mode 100644
    index b512c09..0000000
    --- a/node_modules/errno/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -node_modules
    \ No newline at end of file
    diff --git a/node_modules/errno/README.md b/node_modules/errno/README.md
    deleted file mode 100644
    index 2c1f8a5..0000000
    --- a/node_modules/errno/README.md
    +++ /dev/null
    @@ -1,141 +0,0 @@
    -# node-errno
    -
    -Better [libuv](https://github.com/libuv/libuv)/[Node.js](https://nodejs.org)/[io.js](https://iojs.org) error handling & reporting. Available in npm as *errno*.
    -
    -* [errno exposed](#errnoexposed)
    -* [Custom errors](#customerrors)
    -
    -
    -## errno exposed
    -
    -Ever find yourself needing more details about Node.js errors? Me too, so *node-errno* contains the errno mappings direct from libuv so you can use them in your code.
    -
    -**By errno:**
    -
    -```js
    -require('errno').errno[3]
    -// → {
    -//     "errno": 3,
    -//     "code": "EACCES",
    -//     "description": "permission denied"
    -//   }
    -```
    -
    -**By code:**
    -
    -```js
    -require('errno').code.ENOTEMPTY
    -// → {
    -//     "errno": 53,
    -//     "code": "ENOTEMPTY",
    -//     "description": "directory not empty"
    -//   }
    -```
    -
    -**Make your errors more descriptive:**
    -
    -```js
    -var errno = require('errno')
    -
    -function errmsg(err) {
    -  var str = 'Error: '
    -  // if it's a libuv error then get the description from errno
    -  if (errno.errno[err.errno])
    -    str += errno.errno[err.errno].description
    -  else
    -    str += err.message
    -
    -  // if it's a `fs` error then it'll have a 'path' property
    -  if (err.path)
    -    str += ' [' + err.path + ']'
    -
    -  return str
    -}
    -
    -var fs = require('fs')
    -
    -fs.readFile('thisisnotarealfile.txt', function (err, data) {
    -  if (err)
    -    console.log(errmsg(err))
    -})
    -```
    -
    -**Use as a command line tool:**
    -
    -```
    -~ $ errno 53
    -{
    -  "errno": 53,
    -  "code": "ENOTEMPTY",
    -  "description": "directory not empty"
    -}
    -~ $ errno EROFS
    -{
    -  "errno": 56,
    -  "code": "EROFS",
    -  "description": "read-only file system"
    -}
    -~ $ errno foo
    -No such errno/code: "foo"
    -```
    -
    -Supply no arguments for the full list. Error codes are processed case-insensitive.
    -
    -You will need to install with `npm install errno -g` if you want the `errno` command to be available without supplying a full path to the node_modules installation.
    -
    -
    -## Custom errors
    -
    -Use `errno.custom.createError()` to create custom `Error` objects to throw around in your Node.js library. Create error heirachies so `instanceof` becomes a useful tool in tracking errors. Call-stack is correctly captured at the time you create an instance of the error object, plus a `cause` property will make available the original error object if you pass one in to the constructor.
    -
    -```js
    -var create = require('errno').custom.createError
    -var MyError = create('MyError') // inherits from Error
    -var SpecificError = create('SpecificError', MyError) // inherits from MyError
    -var OtherError = create('OtherError', MyError)
    -
    -// use them!
    -if (condition) throw new SpecificError('Eeek! Something bad happened')
    -
    -if (err) return callback(new OtherError(err))
    -```
    -
    -Also available is a `errno.custom.FilesystemError` with in-built access to errno properties:
    -
    -```js
    -fs.readFile('foo', function (err, data) {
    -  if (err) return callback(new errno.custom.FilesystemError(err))
    -  // do something else
    -})
    -```
    -
    -The resulting error object passed through the callback will have the following properties: `code`, `errno`, `path` and `message` will contain a descriptive human-readable message.
    -
    -## Contributors
    -
    -* [bahamas10](https://github.com/bahamas10) (Dave Eddy) - Added CLI
    -* [ralphtheninja](https://github.com/ralphtheninja) (Lars-Magnus Skog)
    -
    -## Copyright & Licence
    -
    -*Copyright (c) 2012-2015 [Rod Vagg](https://github.com/rvagg) ([@rvagg](https://twitter.com/rvagg))*
    -
    -Made available under the MIT licence:
    -
    -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.
    \ No newline at end of file
    diff --git a/node_modules/errno/build.js b/node_modules/errno/build.js
    deleted file mode 100755
    index fce8926..0000000
    --- a/node_modules/errno/build.js
    +++ /dev/null
    @@ -1,43 +0,0 @@
    -#!/usr/bin/env node
    -
    -var request   = require('request')
    -  , fs        = require('fs')
    -
    -  , uvheadloc = 'https://raw.github.com/joyent/libuv/master/include/uv.h'
    -  , defreg    = /^\s*XX\(\s*([\-\d]+),\s*([A-Z]+),\s*"([^"]*)"\s*\)\s*\\?$/
    -
    -
    -request(uvheadloc, function (err, response) {
    -  if (err)
    -    throw err
    -
    -  var data, out
    -
    -  data = response.body
    -    .split('\n')
    -    .map(function (line) { return line.match(defreg) })
    -    .filter(function (match) { return match })
    -    .map(function (match) { return {
    -        errno: parseInt(match[1], 10)
    -      , code: match[2]
    -      , description: match[3]
    -    }})
    -
    -  out = 'var all = module.exports.all = ' + JSON.stringify(data, 0, 1) + '\n\n'
    -
    -  out += '\nmodule.exports.errno = {\n    '
    -    + data.map(function (e, i) {
    -        return '\'' + e.errno + '\': all[' + i + ']'
    -      }).join('\n  , ')
    -    + '\n}\n\n'
    -
    -  out += '\nmodule.exports.code = {\n    '
    -    + data.map(function (e, i) {
    -        return '\'' + e.code + '\': all[' + i + ']'
    -      }).join('\n  , ')
    -    + '\n}\n\n'
    -
    -  out += '\nmodule.exports.custom = require("./custom")(module.exports)\n'
    -
    -  fs.writeFile('errno.js', out)
    -})
    \ No newline at end of file
    diff --git a/node_modules/errno/cli.js b/node_modules/errno/cli.js
    deleted file mode 100755
    index f841771..0000000
    --- a/node_modules/errno/cli.js
    +++ /dev/null
    @@ -1,20 +0,0 @@
    -#!/usr/bin/env node
    -
    -var errno = require('./')
    -  , arg   = process.argv[2]
    -  , data, code
    -
    -if (arg === undefined)
    -  return console.log(JSON.stringify(errno.code, null, 2))
    -
    -if ((code = +arg) == arg)
    -  data = errno.errno[code]
    -else
    -  data = errno.code[arg] || errno.code[arg.toUpperCase()]
    -
    -if (data)
    -  console.log(JSON.stringify(data, null, 2))
    -else {
    -  console.error('No such errno/code: "' + arg + '"')
    -  process.exit(1)
    -}
    \ No newline at end of file
    diff --git a/node_modules/errno/custom.js b/node_modules/errno/custom.js
    deleted file mode 100644
    index 7be16c1..0000000
    --- a/node_modules/errno/custom.js
    +++ /dev/null
    @@ -1,55 +0,0 @@
    -var prr = require('prr')
    -
    -function init (type, message, cause) {
    -  prr(this, {
    -      type    : type
    -    , name    : type
    -      // can be passed just a 'cause'
    -    , cause   : typeof message != 'string' ? message : cause
    -    , message : !!message && typeof message != 'string' ? message.message : message
    -
    -  }, 'ewr')
    -}
    -
    -// generic prototype, not intended to be actually used - helpful for `instanceof`
    -function CustomError (message, cause) {
    -  Error.call(this)
    -  if (Error.captureStackTrace)
    -    Error.captureStackTrace(this, arguments.callee)
    -  init.call(this, 'CustomError', message, cause)
    -}
    -
    -CustomError.prototype = new Error()
    -
    -function createError (errno, type, proto) {
    -  var err = function (message, cause) {
    -    init.call(this, type, message, cause)
    -    //TODO: the specificity here is stupid, errno should be available everywhere
    -    if (type == 'FilesystemError') {
    -      this.code    = this.cause.code
    -      this.path    = this.cause.path
    -      this.errno   = this.cause.errno
    -      this.message =
    -        (errno.errno[this.cause.errno]
    -          ? errno.errno[this.cause.errno].description
    -          : this.cause.message)
    -        + (this.cause.path ? ' [' + this.cause.path + ']' : '')
    -    }
    -    Error.call(this)
    -    if (Error.captureStackTrace)
    -      Error.captureStackTrace(this, arguments.callee)
    -  }
    -  err.prototype = !!proto ? new proto() : new CustomError()
    -  return err
    -}
    -
    -module.exports = function (errno) {
    -  var ce = function (type, proto) {
    -    return createError(errno, type, proto)
    -  }
    -  return {
    -      CustomError     : CustomError
    -    , FilesystemError : ce('FilesystemError')
    -    , createError     : ce
    -  }
    -}
    diff --git a/node_modules/errno/errno.js b/node_modules/errno/errno.js
    deleted file mode 100644
    index efb79d4..0000000
    --- a/node_modules/errno/errno.js
    +++ /dev/null
    @@ -1,313 +0,0 @@
    -var all = module.exports.all = [
    -  {
    -    errno: -2,
    -    code: 'ENOENT',
    -    description: 'no such file or directory'
    -  },
    -  {
    -    errno: -1,
    -    code: 'UNKNOWN',
    -    description: 'unknown error'
    -  },
    -  {
    -    errno: 0,
    -    code: 'OK',
    -    description: 'success'
    -  },
    -  {
    -    errno: 1,
    -    code: 'EOF',
    -    description: 'end of file'
    -  },
    -  {
    -    errno: 2,
    -    code: 'EADDRINFO',
    -    description: 'getaddrinfo error'
    -  },
    -  {
    -    errno: 3,
    -    code: 'EACCES',
    -    description: 'permission denied'
    -  },
    -  {
    -    errno: 4,
    -    code: 'EAGAIN',
    -    description: 'resource temporarily unavailable'
    -  },
    -  {
    -    errno: 5,
    -    code: 'EADDRINUSE',
    -    description: 'address already in use'
    -  },
    -  {
    -    errno: 6,
    -    code: 'EADDRNOTAVAIL',
    -    description: 'address not available'
    -  },
    -  {
    -    errno: 7,
    -    code: 'EAFNOSUPPORT',
    -    description: 'address family not supported'
    -  },
    -  {
    -    errno: 8,
    -    code: 'EALREADY',
    -    description: 'connection already in progress'
    -  },
    -  {
    -    errno: 9,
    -    code: 'EBADF',
    -    description: 'bad file descriptor'
    -  },
    -  {
    -    errno: 10,
    -    code: 'EBUSY',
    -    description: 'resource busy or locked'
    -  },
    -  {
    -    errno: 11,
    -    code: 'ECONNABORTED',
    -    description: 'software caused connection abort'
    -  },
    -  {
    -    errno: 12,
    -    code: 'ECONNREFUSED',
    -    description: 'connection refused'
    -  },
    -  {
    -    errno: 13,
    -    code: 'ECONNRESET',
    -    description: 'connection reset by peer'
    -  },
    -  {
    -    errno: 14,
    -    code: 'EDESTADDRREQ',
    -    description: 'destination address required'
    -  },
    -  {
    -    errno: 15,
    -    code: 'EFAULT',
    -    description: 'bad address in system call argument'
    -  },
    -  {
    -    errno: 16,
    -    code: 'EHOSTUNREACH',
    -    description: 'host is unreachable'
    -  },
    -  {
    -    errno: 17,
    -    code: 'EINTR',
    -    description: 'interrupted system call'
    -  },
    -  {
    -    errno: 18,
    -    code: 'EINVAL',
    -    description: 'invalid argument'
    -  },
    -  {
    -    errno: 19,
    -    code: 'EISCONN',
    -    description: 'socket is already connected'
    -  },
    -  {
    -    errno: 20,
    -    code: 'EMFILE',
    -    description: 'too many open files'
    -  },
    -  {
    -    errno: 21,
    -    code: 'EMSGSIZE',
    -    description: 'message too long'
    -  },
    -  {
    -    errno: 22,
    -    code: 'ENETDOWN',
    -    description: 'network is down'
    -  },
    -  {
    -    errno: 23,
    -    code: 'ENETUNREACH',
    -    description: 'network is unreachable'
    -  },
    -  {
    -    errno: 24,
    -    code: 'ENFILE',
    -    description: 'file table overflow'
    -  },
    -  {
    -    errno: 25,
    -    code: 'ENOBUFS',
    -    description: 'no buffer space available'
    -  },
    -  {
    -    errno: 26,
    -    code: 'ENOMEM',
    -    description: 'not enough memory'
    -  },
    -  {
    -    errno: 27,
    -    code: 'ENOTDIR',
    -    description: 'not a directory'
    -  },
    -  {
    -    errno: 28,
    -    code: 'EISDIR',
    -    description: 'illegal operation on a directory'
    -  },
    -  {
    -    errno: 29,
    -    code: 'ENONET',
    -    description: 'machine is not on the network'
    -  },
    -  {
    -    errno: 31,
    -    code: 'ENOTCONN',
    -    description: 'socket is not connected'
    -  },
    -  {
    -    errno: 32,
    -    code: 'ENOTSOCK',
    -    description: 'socket operation on non-socket'
    -  },
    -  {
    -    errno: 33,
    -    code: 'ENOTSUP',
    -    description: 'operation not supported on socket'
    -  },
    -  {
    -    errno: 34,
    -    code: 'ENOENT',
    -    description: 'no such file or directory'
    -  },
    -  {
    -    errno: 35,
    -    code: 'ENOSYS',
    -    description: 'function not implemented'
    -  },
    -  {
    -    errno: 36,
    -    code: 'EPIPE',
    -    description: 'broken pipe'
    -  },
    -  {
    -    errno: 37,
    -    code: 'EPROTO',
    -    description: 'protocol error'
    -  },
    -  {
    -    errno: 38,
    -    code: 'EPROTONOSUPPORT',
    -    description: 'protocol not supported'
    -  },
    -  {
    -    errno: 39,
    -    code: 'EPROTOTYPE',
    -    description: 'protocol wrong type for socket'
    -  },
    -  {
    -    errno: 40,
    -    code: 'ETIMEDOUT',
    -    description: 'connection timed out'
    -  },
    -  {
    -    errno: 41,
    -    code: 'ECHARSET',
    -    description: 'invalid Unicode character'
    -  },
    -  {
    -    errno: 42,
    -    code: 'EAIFAMNOSUPPORT',
    -    description: 'address family for hostname not supported'
    -  },
    -  {
    -    errno: 44,
    -    code: 'EAISERVICE',
    -    description: 'servname not supported for ai_socktype'
    -  },
    -  {
    -    errno: 45,
    -    code: 'EAISOCKTYPE',
    -    description: 'ai_socktype not supported'
    -  },
    -  {
    -    errno: 46,
    -    code: 'ESHUTDOWN',
    -    description: 'cannot send after transport endpoint shutdown'
    -  },
    -  {
    -    errno: 47,
    -    code: 'EEXIST',
    -    description: 'file already exists'
    -  },
    -  {
    -    errno: 48,
    -    code: 'ESRCH',
    -    description: 'no such process'
    -  },
    -  {
    -    errno: 49,
    -    code: 'ENAMETOOLONG',
    -    description: 'name too long'
    -  },
    -  {
    -    errno: 50,
    -    code: 'EPERM',
    -    description: 'operation not permitted'
    -  },
    -  {
    -    errno: 51,
    -    code: 'ELOOP',
    -    description: 'too many symbolic links encountered'
    -  },
    -  {
    -    errno: 52,
    -    code: 'EXDEV',
    -    description: 'cross-device link not permitted'
    -  },
    -  {
    -    errno: 53,
    -    code: 'ENOTEMPTY',
    -    description: 'directory not empty'
    -  },
    -  {
    -    errno: 54,
    -    code: 'ENOSPC',
    -    description: 'no space left on device'
    -  },
    -  {
    -    errno: 55,
    -    code: 'EIO',
    -    description: 'i/o error'
    -  },
    -  {
    -    errno: 56,
    -    code: 'EROFS',
    -    description: 'read-only file system'
    -  },
    -  {
    -    errno: 57,
    -    code: 'ENODEV',
    -    description: 'no such device'
    -  },
    -  {
    -    errno: 58,
    -    code: 'ESPIPE',
    -    description: 'invalid seek'
    -  },
    -  {
    -    errno: 59,
    -    code: 'ECANCELED',
    -    description: 'operation canceled'
    -  }
    -]
    -
    -module.exports.errno = {}
    -module.exports.code = {}
    -
    -all.forEach(function (error) {
    -  module.exports.errno[error.errno] = error
    -  module.exports.code[error.code] = error
    -})
    -
    -module.exports.custom = require('./custom')(module.exports)
    -module.exports.create = module.exports.custom.createError
    diff --git a/node_modules/errno/package.json b/node_modules/errno/package.json
    deleted file mode 100644
    index 79c6723..0000000
    --- a/node_modules/errno/package.json
    +++ /dev/null
    @@ -1,91 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "errno@^0.1.1",
    -        "scope": null,
    -        "escapedName": "errno",
    -        "name": "errno",
    -        "rawSpec": "^0.1.1",
    -        "spec": ">=0.1.1 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/less"
    -    ]
    -  ],
    -  "_from": "errno@>=0.1.1 <0.2.0",
    -  "_id": "errno@0.1.4",
    -  "_inCache": true,
    -  "_location": "/errno",
    -  "_nodeVersion": "3.0.0",
    -  "_npmUser": {
    -    "name": "rvagg",
    -    "email": "rod@vagg.org"
    -  },
    -  "_npmVersion": "2.13.3",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "errno@^0.1.1",
    -    "scope": null,
    -    "escapedName": "errno",
    -    "name": "errno",
    -    "rawSpec": "^0.1.1",
    -    "spec": ">=0.1.1 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/less"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/errno/-/errno-0.1.4.tgz",
    -  "_shasum": "b896e23a9e5e8ba33871fc996abd3635fc9a1c7d",
    -  "_shrinkwrap": null,
    -  "_spec": "errno@^0.1.1",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/less",
    -  "authors": [
    -    "Rod Vagg @rvagg  (https://github.com/rvagg)"
    -  ],
    -  "bin": {
    -    "errno": "./cli.js"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/rvagg/node-errno/issues"
    -  },
    -  "dependencies": {
    -    "prr": "~0.0.0"
    -  },
    -  "description": "libuv errno details exposed",
    -  "devDependencies": {
    -    "tape": "~3.5.0"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "b896e23a9e5e8ba33871fc996abd3635fc9a1c7d",
    -    "tarball": "https://registry.npmjs.org/errno/-/errno-0.1.4.tgz"
    -  },
    -  "gitHead": "1c2b1fcbf22ef2bafbf6cda378cfed400f5163fd",
    -  "homepage": "https://github.com/rvagg/node-errno",
    -  "keywords": [
    -    "errors",
    -    "errno",
    -    "libuv"
    -  ],
    -  "license": "MIT",
    -  "main": "errno.js",
    -  "maintainers": [
    -    {
    -      "name": "rvagg",
    -      "email": "rod@vagg.org"
    -    }
    -  ],
    -  "name": "errno",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/rvagg/node-errno.git"
    -  },
    -  "scripts": {
    -    "test": "tape test.js"
    -  },
    -  "version": "0.1.4"
    -}
    diff --git a/node_modules/errno/test.js b/node_modules/errno/test.js
    deleted file mode 100755
    index 6b76a85..0000000
    --- a/node_modules/errno/test.js
    +++ /dev/null
    @@ -1,31 +0,0 @@
    -#!/usr/bin/env node
    -
    -var test  = require('tape')
    -  , errno = require('./')
    -
    -test('sanity checks', function (t) {
    -  t.ok(errno.all, 'errno.all not found')
    -  t.ok(errno.errno, 'errno.errno not found')
    -  t.ok(errno.code, 'errno.code not found')
    -
    -  t.equal(errno.all.length, 59, 'found ' + errno.all.length + ', expected 59')
    -  t.equal(errno.errno['-1'], errno.all[0], 'errno -1 not first element')
    -
    -  t.equal(errno.code['UNKNOWN'], errno.all[0], 'code UNKNOWN not first element')
    -
    -  t.equal(errno.errno[1], errno.all[2], 'errno 1 not third element')
    -
    -  t.equal(errno.code['EOF'], errno.all[2], 'code EOF not third element')
    -  t.end()
    -})
    -
    -test('custom errors', function (t) {
    -  var Cust = errno.create('FooNotBarError')
    -  var cust = new Cust('foo is not bar')
    -
    -  t.equal(cust.name, 'FooNotBarError', 'correct custom name')
    -  t.equal(cust.type, 'FooNotBarError', 'correct custom type')
    -  t.equal(cust.message, 'foo is not bar', 'correct custom message')
    -  t.notOk(cust.cause, 'no cause')
    -  t.end()
    -})
    diff --git a/node_modules/error-ex/LICENSE b/node_modules/error-ex/LICENSE
    deleted file mode 100644
    index 0a5f461..0000000
    --- a/node_modules/error-ex/LICENSE
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -The MIT License (MIT)
    -
    -Copyright (c) 2015 JD Ballard
    -
    -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/error-ex/README.md b/node_modules/error-ex/README.md
    deleted file mode 100644
    index 97f744a..0000000
    --- a/node_modules/error-ex/README.md
    +++ /dev/null
    @@ -1,144 +0,0 @@
    -# node-error-ex [![Travis-CI.org Build Status](https://img.shields.io/travis/Qix-/node-error-ex.svg?style=flat-square)](https://travis-ci.org/Qix-/node-error-ex) [![Coveralls.io Coverage Rating](https://img.shields.io/coveralls/Qix-/node-error-ex.svg?style=flat-square)](https://coveralls.io/r/Qix-/node-error-ex)
    -> Easily subclass and customize new Error types
    -
    -## Examples
    -To include in your project:
    -```javascript
    -var errorEx = require('error-ex');
    -```
    -
    -To create an error message type with a specific name (note, that `ErrorFn.name`
    -will not reflect this):
    -```javascript
    -var JSONError = errorEx('JSONError');
    -
    -var err = new JSONError('error');
    -err.name; //-> JSONError
    -throw err; //-> JSONError: error
    -```
    -
    -To add a stack line:
    -```javascript
    -var JSONError = errorEx('JSONError', {fileName: errorEx.line('in %s')});
    -
    -var err = new JSONError('error')
    -err.fileName = '/a/b/c/foo.json';
    -throw err; //-> (line 2)-> in /a/b/c/foo.json
    -```
    -
    -To append to the error message:
    -```javascript
    -var JSONError = errorEx('JSONError', {fileName: errorEx.append('in %s')});
    -
    -var err = new JSONError('error');
    -err.fileName = '/a/b/c/foo.json';
    -throw err; //-> JSONError: error in /a/b/c/foo.json
    -```
    -
    -## API
    -
    -#### `errorEx([name], [properties])`
    -Creates a new ErrorEx error type
    -
    -- `name`: the name of the new type (appears in the error message upon throw;
    -  defaults to `Error.name`)
    -- `properties`: if supplied, used as a key/value dictionary of properties to
    -  use when building up the stack message. Keys are property names that are
    -  looked up on the error message, and then passed to function values.
    -	- `line`: if specified and is a function, return value is added as a stack
    -    entry (error-ex will indent for you). Passed the property value given
    -    the key.
    -  - `stack`: if specified and is a function, passed the value of the property
    -    using the key, and the raw stack lines as a second argument. Takes no
    -    return value (but the stack can be modified directly).
    -  - `message`: if specified and is a function, return value is used as new
    -    `.message` value upon get. Passed the property value of the property named
    -    by key, and the existing message is passed as the second argument as an
    -    array of lines (suitable for multi-line messages).
    -
    -Returns a constructor (Function) that can be used just like the regular Error
    -constructor.
    -
    -```javascript
    -var errorEx = require('error-ex');
    -
    -var BasicError = errorEx();
    -
    -var NamedError = errorEx('NamedError');
    -
    -// --
    -
    -var AdvancedError = errorEx('AdvancedError', {
    -	foo: {
    -		line: function (value, stack) {
    -			if (value) {
    -				return 'bar ' + value;
    -			}
    -			return null;
    -		}
    -	}
    -}
    -
    -var err = new AdvancedError('hello, world');
    -err.foo = 'baz';
    -throw err;
    -
    -/*
    -	AdvancedError: hello, world
    -	    bar baz
    -	    at tryReadme() (readme.js:20:1)
    -*/
    -```
    -
    -#### `errorEx.line(str)`
    -Creates a stack line using a delimiter
    -
    -> This is a helper function. It is to be used in lieu of writing a value object
    -> for `properties` values.
    -
    -- `str`: The string to create
    -  - Use the delimiter `%s` to specify where in the string the value should go
    -
    -```javascript
    -var errorEx = require('error-ex');
    -
    -var FileError = errorEx('FileError', {fileName: errorEx.line('in %s')});
    -
    -var err = new FileError('problem reading file');
    -err.fileName = '/a/b/c/d/foo.js';
    -throw err;
    -
    -/*
    -	FileError: problem reading file
    -	    in /a/b/c/d/foo.js
    -	    at tryReadme() (readme.js:7:1)
    -*/
    -```
    -
    -#### `errorEx.append(str)`
    -Appends to the `error.message` string
    -
    -> This is a helper function. It is to be used in lieu of writing a value object
    -> for `properties` values.
    -
    -- `str`: The string to append
    -  - Use the delimiter `%s` to specify where in the string the value should go
    -
    -```javascript
    -var errorEx = require('error-ex');
    -
    -var SyntaxError = errorEx('SyntaxError', {fileName: errorEx.append('in %s')});
    -
    -var err = new SyntaxError('improper indentation');
    -err.fileName = '/a/b/c/d/foo.js';
    -throw err;
    -
    -/*
    -	SyntaxError: improper indentation in /a/b/c/d/foo.js
    -	    at tryReadme() (readme.js:7:1)
    -*/
    -```
    -
    -## License
    -Licensed under the [MIT License](http://opensource.org/licenses/MIT).
    -You can find a copy of it in [LICENSE](LICENSE).
    diff --git a/node_modules/error-ex/index.js b/node_modules/error-ex/index.js
    deleted file mode 100644
    index 1bdc943..0000000
    --- a/node_modules/error-ex/index.js
    +++ /dev/null
    @@ -1,115 +0,0 @@
    -'use strict';
    -
    -var util = require('util');
    -var isArrayish = require('is-arrayish');
    -
    -var errorEx = function errorEx(name, properties) {
    -	if (!name || name.constructor !== String) {
    -		properties = name || {};
    -		name = Error.name;
    -	}
    -
    -	var errorExError = function ErrorEXError(message) {
    -		if (!this) {
    -			return new ErrorEXError(message);
    -		}
    -
    -		message = message instanceof Error
    -			? message.message
    -			: (message || this.message);
    -
    -		Error.call(this, message);
    -		Error.captureStackTrace(this, errorExError);
    -		this.name = name;
    -
    -		delete this.message;
    -
    -		Object.defineProperty(this, 'message', {
    -			configurable: true,
    -			enumerable: false,
    -			get: function () {
    -				var newMessage = message.split(/\r?\n/g);
    -
    -				for (var key in properties) {
    -					if (properties.hasOwnProperty(key) && 'message' in properties[key]) {
    -						newMessage = properties[key].message(this[key], newMessage) ||
    -							newMessage;
    -						if (!isArrayish(newMessage)) {
    -							newMessage = [newMessage];
    -						}
    -					}
    -				}
    -
    -				return newMessage.join('\n');
    -			},
    -			set: function (v) {
    -				message = v;
    -			}
    -		});
    -
    -		var stackDescriptor = Object.getOwnPropertyDescriptor(this, 'stack');
    -		var stackGetter = stackDescriptor.get;
    -
    -		stackDescriptor.get = function () {
    -			var stack = stackGetter.call(this).split(/\r?\n+/g);
    -
    -			var lineCount = 1;
    -			for (var key in properties) {
    -				if (!properties.hasOwnProperty(key)) {
    -					continue;
    -				}
    -
    -				var modifier = properties[key];
    -
    -				if ('line' in modifier) {
    -					var line = modifier.line(this[key]);
    -					if (line) {
    -						stack.splice(lineCount, 0, '    ' + line);
    -					}
    -				}
    -
    -				if ('stack' in modifier) {
    -					modifier.stack(this[key], stack);
    -				}
    -			}
    -
    -			return stack.join('\n');
    -		};
    -
    -		Object.defineProperty(this, 'stack', stackDescriptor);
    -	};
    -
    -	util.inherits(errorExError, Error);
    -
    -	return errorExError;
    -};
    -
    -errorEx.append = function (str, def) {
    -	return {
    -		message: function (v, message) {
    -			v = v || def;
    -
    -			if (v) {
    -				message[0] += ' ' + str.replace('%s', v.toString());
    -			}
    -
    -			return message;
    -		}
    -	};
    -};
    -
    -errorEx.line = function (str, def) {
    -	return {
    -		line: function (v) {
    -			v = v || def;
    -
    -			if (v) {
    -				return str.replace('%s', v.toString());
    -			}
    -
    -			return null;
    -		}
    -	};
    -};
    -
    -module.exports = errorEx;
    diff --git a/node_modules/error-ex/package.json b/node_modules/error-ex/package.json
    deleted file mode 100644
    index 20c7e4c..0000000
    --- a/node_modules/error-ex/package.json
    +++ /dev/null
    @@ -1,109 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "error-ex@^1.2.0",
    -        "scope": null,
    -        "escapedName": "error-ex",
    -        "name": "error-ex",
    -        "rawSpec": "^1.2.0",
    -        "spec": ">=1.2.0 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/parse-json"
    -    ]
    -  ],
    -  "_from": "error-ex@>=1.2.0 <2.0.0",
    -  "_id": "error-ex@1.3.0",
    -  "_inCache": true,
    -  "_location": "/error-ex",
    -  "_nodeVersion": "4.1.1",
    -  "_npmUser": {
    -    "name": "qix",
    -    "email": "i.am.qix@gmail.com"
    -  },
    -  "_npmVersion": "3.3.6",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "error-ex@^1.2.0",
    -    "scope": null,
    -    "escapedName": "error-ex",
    -    "name": "error-ex",
    -    "rawSpec": "^1.2.0",
    -    "spec": ">=1.2.0 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/parse-json"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.0.tgz",
    -  "_shasum": "e67b43f3e82c96ea3a584ffee0b9fc3325d802d9",
    -  "_shrinkwrap": null,
    -  "_spec": "error-ex@^1.2.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/parse-json",
    -  "bugs": {
    -    "url": "https://github.com/qix-/node-error-ex/issues"
    -  },
    -  "dependencies": {
    -    "is-arrayish": "^0.2.1"
    -  },
    -  "description": "Easy error subclassing and stack customization",
    -  "devDependencies": {
    -    "coffee-script": "^1.9.3",
    -    "coveralls": "^2.11.2",
    -    "istanbul": "^0.3.17",
    -    "mocha": "^2.2.5",
    -    "should": "^7.0.1",
    -    "xo": "^0.7.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "e67b43f3e82c96ea3a584ffee0b9fc3325d802d9",
    -    "tarball": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.0.tgz"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "118bb63206f736f2450480e73f9d7d22692ae328",
    -  "homepage": "https://github.com/qix-/node-error-ex#readme",
    -  "keywords": [
    -    "error",
    -    "errors",
    -    "extend",
    -    "extending",
    -    "extension",
    -    "subclass",
    -    "stack",
    -    "custom"
    -  ],
    -  "license": "MIT",
    -  "maintainers": [
    -    {
    -      "name": "qix",
    -      "email": "i.am.qix@gmail.com"
    -    },
    -    {
    -      "name": "sindresorhus",
    -      "email": "sindresorhus@gmail.com"
    -    }
    -  ],
    -  "name": "error-ex",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/qix-/node-error-ex.git"
    -  },
    -  "scripts": {
    -    "pretest": "xo",
    -    "test": "mocha --compilers coffee:coffee-script/register"
    -  },
    -  "version": "1.3.0",
    -  "xo": {
    -    "rules": {
    -      "operator-linebreak": [
    -        0
    -      ]
    -    }
    -  }
    -}
    diff --git a/node_modules/escape-string-regexp/index.js b/node_modules/escape-string-regexp/index.js
    deleted file mode 100644
    index 7834bf9..0000000
    --- a/node_modules/escape-string-regexp/index.js
    +++ /dev/null
    @@ -1,11 +0,0 @@
    -'use strict';
    -
    -var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
    -
    -module.exports = function (str) {
    -	if (typeof str !== 'string') {
    -		throw new TypeError('Expected a string');
    -	}
    -
    -	return str.replace(matchOperatorsRe, '\\$&');
    -};
    diff --git a/node_modules/escape-string-regexp/license b/node_modules/escape-string-regexp/license
    deleted file mode 100644
    index 654d0bf..0000000
    --- a/node_modules/escape-string-regexp/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/escape-string-regexp/package.json b/node_modules/escape-string-regexp/package.json
    deleted file mode 100644
    index eab1fba..0000000
    --- a/node_modules/escape-string-regexp/package.json
    +++ /dev/null
    @@ -1,112 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "escape-string-regexp@^1.0.2",
    -        "scope": null,
    -        "escapedName": "escape-string-regexp",
    -        "name": "escape-string-regexp",
    -        "rawSpec": "^1.0.2",
    -        "spec": ">=1.0.2 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/chalk"
    -    ]
    -  ],
    -  "_from": "escape-string-regexp@>=1.0.2 <2.0.0",
    -  "_id": "escape-string-regexp@1.0.5",
    -  "_inCache": true,
    -  "_location": "/escape-string-regexp",
    -  "_nodeVersion": "4.2.6",
    -  "_npmOperationalInternal": {
    -    "host": "packages-9-west.internal.npmjs.com",
    -    "tmp": "tmp/escape-string-regexp-1.0.5.tgz_1456059312074_0.7245344955008477"
    -  },
    -  "_npmUser": {
    -    "name": "jbnicolai",
    -    "email": "jappelman@xebia.com"
    -  },
    -  "_npmVersion": "2.14.12",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "escape-string-regexp@^1.0.2",
    -    "scope": null,
    -    "escapedName": "escape-string-regexp",
    -    "name": "escape-string-regexp",
    -    "rawSpec": "^1.0.2",
    -    "spec": ">=1.0.2 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/chalk",
    -    "/figures",
    -    "/gulp-clone/chalk",
    -    "/replacestream"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
    -  "_shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
    -  "_shrinkwrap": null,
    -  "_spec": "escape-string-regexp@^1.0.2",
    -  "_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/sindresorhus/escape-string-regexp/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Escape RegExp special characters",
    -  "devDependencies": {
    -    "ava": "*",
    -    "xo": "*"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
    -    "tarball": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.8.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "db124a3e1aae9d692c4899e42a5c6c3e329eaa20",
    -  "homepage": "https://github.com/sindresorhus/escape-string-regexp",
    -  "keywords": [
    -    "escape",
    -    "regex",
    -    "regexp",
    -    "re",
    -    "regular",
    -    "expression",
    -    "string",
    -    "str",
    -    "special",
    -    "characters"
    -  ],
    -  "license": "MIT",
    -  "maintainers": [
    -    {
    -      "name": "sindresorhus",
    -      "email": "sindresorhus@gmail.com"
    -    },
    -    {
    -      "name": "jbnicolai",
    -      "email": "jappelman@xebia.com"
    -    }
    -  ],
    -  "name": "escape-string-regexp",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/sindresorhus/escape-string-regexp.git"
    -  },
    -  "scripts": {
    -    "test": "xo && ava"
    -  },
    -  "version": "1.0.5"
    -}
    diff --git a/node_modules/escape-string-regexp/readme.md b/node_modules/escape-string-regexp/readme.md
    deleted file mode 100644
    index 87ac82d..0000000
    --- a/node_modules/escape-string-regexp/readme.md
    +++ /dev/null
    @@ -1,27 +0,0 @@
    -# escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp)
    -
    -> Escape RegExp special characters
    -
    -
    -## Install
    -
    -```
    -$ npm install --save escape-string-regexp
    -```
    -
    -
    -## Usage
    -
    -```js
    -const escapeStringRegexp = require('escape-string-regexp');
    -
    -const escapedString = escapeStringRegexp('how much $ for a unicorn?');
    -//=> 'how much \$ for a unicorn\?'
    -
    -new RegExp(escapedString);
    -```
    -
    -
    -## License
    -
    -MIT © [Sindre Sorhus](http://sindresorhus.com)
    diff --git a/node_modules/esprima/ChangeLog b/node_modules/esprima/ChangeLog
    deleted file mode 100644
    index c53b304..0000000
    --- a/node_modules/esprima/ChangeLog
    +++ /dev/null
    @@ -1,184 +0,0 @@
    -2016-09-03: Version 3.0.0
    -
    -      * Support ES2016 exponentiation expression (issue 1490)
    -      * Support JSX syntax (issue 1467)
    -      * Use the latest Unicode 8.0 (issue 1475)
    -      * Add the support for syntax node delegate (issue 1435)
    -      * Fix ESTree compatibility on meta property (issue 1338)
    -      * Fix ESTree compatibility on default parameter value (issue 1081)
    -      * Fix ESTree compatibility on try handler (issue 1030)
    -
    -2016-08-23: Version 2.7.3
    -
    -      * Fix tokenizer confusion with a comment (issue 1493, 1516)
    -
    -2016-02-02: Version 2.7.2
    -
    -      * Fix out-of-bound error location in an invalid string literal (issue 1457)
    -      * Fix shorthand object destructuring defaults in variable declarations (issue 1459)
    -
    -2015-12-10: Version 2.7.1
    -
    -      * Do not allow trailing comma in a variable declaration (issue 1360)
    -      * Fix assignment to `let` in non-strict mode (issue 1376)
    -      * Fix missing delegate property in YieldExpression (issue 1407)
    -
    -2015-10-22: Version 2.7.0
    -
    -      * Fix the handling of semicolon in a break statement (issue 1044)
    -      * Run the test suite with major web browsers (issue 1259, 1317)
    -      * Allow `let` as an identifier in non-strict mode (issue 1289)
    -      * Attach orphaned comments as `innerComments` (issue 1328)
    -      * Add the support for token delegator (issue 1332)
    -
    -2015-09-01: Version 2.6.0
    -
    -      * Properly allow or prohibit `let` in a binding identifier/pattern (issue 1048, 1098)
    -      * Add sourceType field for Program node (issue 1159)
    -      * Ensure that strict mode reserved word binding throw an error (issue 1171)
    -      * Run the test suite with Node.js and IE 11 on Windows (issue 1294)
    -      * Allow binding pattern with no initializer in a for statement (issue 1301)
    -
    -2015-07-31: Version 2.5.0
    -
    -      * Run the test suite in a browser environment (issue 1004)
    -      * Ensure a comma between imported default binding and named imports (issue 1046)
    -      * Distinguish `yield` as a keyword vs an identifier (issue 1186)
    -      * Support ES6 meta property `new.target` (issue 1203)
    -      * Fix the syntax node for yield with expression (issue 1223)
    -      * Fix the check of duplicated proto in property names (issue 1225)
    -      * Fix ES6 Unicode escape in identifier name (issue 1229)
    -      * Support ES6 IdentifierStart and IdentifierPart (issue 1232)
    -      * Treat await as a reserved word when parsing as a module (issue 1234)
    -      * Recognize identifier characters from Unicode SMP (issue 1244)
    -      * Ensure that export and import can be followed by a comma (issue 1250)
    -      * Fix yield operator precedence (issue 1262)
    -
    -2015-07-01: Version 2.4.1
    -
    -      * Fix some cases of comment attachment (issue 1071, 1175)
    -      * Fix the handling of destructuring in function arguments (issue 1193)
    -      * Fix invalid ranges in assignment expression (issue 1201)
    -
    -2015-06-26: Version 2.4.0
    -
    -      * Support ES6 for-of iteration (issue 1047)
    -      * Support ES6 spread arguments (issue 1169)
    -      * Minimize npm payload (issue 1191)
    -
    -2015-06-16: Version 2.3.0
    -
    -      * Support ES6 generator (issue 1033)
    -      * Improve parsing of regular expressions with `u` flag (issue 1179)
    -
    -2015-04-17: Version 2.2.0
    -
    -      * Support ES6 import and export declarations (issue 1000)
    -      * Fix line terminator before arrow not recognized as error (issue 1009)
    -      * Support ES6 destructuring (issue 1045)
    -      * Support ES6 template literal (issue 1074)
    -      * Fix the handling of invalid/incomplete string escape sequences (issue 1106)
    -      * Fix ES3 static member access restriction (issue 1120)
    -      * Support for `super` in ES6 class (issue 1147)
    -
    -2015-03-09: Version 2.1.0
    -
    -      * Support ES6 class (issue 1001)
    -      * Support ES6 rest parameter (issue 1011)
    -      * Expand the location of property getter, setter, and methods (issue 1029)
    -      * Enable TryStatement transition to a single handler (issue 1031)
    -      * Support ES6 computed property name (issue 1037)
    -      * Tolerate unclosed block comment (issue 1041)
    -      * Support ES6 lexical declaration (issue 1065)
    -
    -2015-02-06: Version 2.0.0
    -
    -      * Support ES6 arrow function (issue 517)
    -      * Support ES6 Unicode code point escape (issue 521)
    -      * Improve the speed and accuracy of comment attachment (issue 522)
    -      * Support ES6 default parameter (issue 519)
    -      * Support ES6 regular expression flags (issue 557)
    -      * Fix scanning of implicit octal literals (issue 565)
    -      * Fix the handling of automatic semicolon insertion (issue 574)
    -      * Support ES6 method definition (issue 620)
    -      * Support ES6 octal integer literal (issue 621)
    -      * Support ES6 binary integer literal (issue 622)
    -      * Support ES6 object literal property value shorthand (issue 624)
    -
    -2015-03-03: Version 1.2.5
    -
    -      * Fix scanning of implicit octal literals (issue 565)
    -
    -2015-02-05: Version 1.2.4
    -
    -      * Fix parsing of LeftHandSideExpression in ForInStatement (issue 560)
    -      * Fix the handling of automatic semicolon insertion (issue 574)
    -
    -2015-01-18: Version 1.2.3
    -
    -      * Fix division by this (issue 616)
    -
    -2014-05-18: Version 1.2.2
    -
    -      * Fix duplicated tokens when collecting comments (issue 537)
    -
    -2014-05-04: Version 1.2.1
    -
    -      * Ensure that Program node may still have leading comments (issue 536)
    -
    -2014-04-29: Version 1.2.0
    -
    -      * Fix semicolon handling for expression statement (issue 462, 533)
    -      * Disallow escaped characters in regular expression flags (issue 503)
    -      * Performance improvement for location tracking (issue 520)
    -      * Improve the speed of comment attachment (issue 522)
    -
    -2014-03-26: Version 1.1.1
    -
    -      * Fix token handling of forward slash after an array literal (issue 512)
    -
    -2014-03-23: Version 1.1.0
    -
    -      * Optionally attach comments to the owning syntax nodes (issue 197)
    -      * Simplify binary parsing with stack-based shift reduce (issue 352)
    -      * Always include the raw source of literals (issue 376)
    -      * Add optional input source information (issue 386)
    -      * Tokenizer API for pure lexical scanning (issue 398)
    -      * Improve the web site and its online demos (issue 337, 400, 404)
    -      * Performance improvement for location tracking (issue 417, 424)
    -      * Support HTML comment syntax (issue 451)
    -      * Drop support for legacy browsers (issue 474)
    -
    -2013-08-27: Version 1.0.4
    -
    -      * Minimize the payload for packages (issue 362)
    -      * Fix missing cases on an empty switch statement (issue 436)
    -      * Support escaped ] in regexp literal character classes (issue 442)
    -      * Tolerate invalid left-hand side expression (issue 130)
    -
    -2013-05-17: Version 1.0.3
    -
    -      * Variable declaration needs at least one declarator (issue 391)
    -      * Fix benchmark's variance unit conversion (issue 397)
    -      * IE < 9: \v should be treated as vertical tab (issue 405)
    -      * Unary expressions should always have prefix: true (issue 418)
    -      * Catch clause should only accept an identifier (issue 423)
    -      * Tolerate setters without parameter (issue 426)
    -
    -2012-11-02: Version 1.0.2
    -
    -    Improvement:
    -
    -      * Fix esvalidate JUnit output upon a syntax error (issue 374)
    -
    -2012-10-28: Version 1.0.1
    -
    -    Improvements:
    -
    -      * esvalidate understands shebang in a Unix shell script (issue 361)
    -      * esvalidate treats fatal parsing failure as an error (issue 361)
    -      * Reduce Node.js package via .npmignore (issue 362)
    -
    -2012-10-22: Version 1.0.0
    -
    -    Initial release.
    diff --git a/node_modules/esprima/LICENSE.BSD b/node_modules/esprima/LICENSE.BSD
    deleted file mode 100644
    index 17557ec..0000000
    --- a/node_modules/esprima/LICENSE.BSD
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -Copyright (c) jQuery Foundation, Inc. and Contributors, 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.
    -
    -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  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.
    diff --git a/node_modules/esprima/README.md b/node_modules/esprima/README.md
    deleted file mode 100644
    index 61315f9..0000000
    --- a/node_modules/esprima/README.md
    +++ /dev/null
    @@ -1,48 +0,0 @@
    -[![NPM version](https://img.shields.io/npm/v/esprima.svg)](https://www.npmjs.com/package/esprima)
    -[![npm download](https://img.shields.io/npm/dm/esprima.svg)](https://www.npmjs.com/package/esprima)
    -[![Build Status](https://img.shields.io/travis/jquery/esprima/master.svg)](https://travis-ci.org/jquery/esprima)
    -[![Coverage Status](https://img.shields.io/codecov/c/github/jquery/esprima/master.svg)](https://codecov.io/github/jquery/esprima)
    -
    -**Esprima** ([esprima.org](http://esprima.org), BSD license) is a high performance,
    -standard-compliant [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
    -parser written in ECMAScript (also popularly known as
    -[JavaScript](https://en.wikipedia.org/wiki/JavaScript)).
    -Esprima is created and maintained by [Ariya Hidayat](https://twitter.com/ariyahidayat),
    -with the help of [many contributors](https://github.com/jquery/esprima/contributors).
    -
    -### Features
    -
    -- Full support for ECMAScript 2016 ([ECMA-262 7th Edition](http://www.ecma-international.org/publications/standards/Ecma-262.htm))
    -- Sensible [syntax tree format](https://github.com/estree/estree/blob/master/es5.md) as standardized by [ESTree project](https://github.com/estree/estree)
    -- Experimental support for [JSX](https://facebook.github.io/jsx/), a syntax extension for [React](https://facebook.github.io/react/)
    -- Optional tracking of syntax node location (index-based and line-column)
    -- [Heavily tested](http://esprima.org/test/ci.html) (~1300 [unit tests](https://github.com/jquery/esprima/tree/master/test/fixtures) with [full code coverage](https://codecov.io/github/jquery/esprima))
    -
    -### API
    -
    -Esprima can be used to perform [lexical analysis](https://en.wikipedia.org/wiki/Lexical_analysis) (tokenization) or [syntactic analysis](https://en.wikipedia.org/wiki/Parsing) (parsing) of a JavaScript programs.
    -
    -A simple example:
    -
    -```javascript
    -var esprima = require('esprima');
    -var code = 'const answer = 42';
    -var tokens = esprima.tokenize(code);
    -var ast = esprima.parse(code);
    -```
    -which gives a list of [tokens](https://en.wikipedia.org/wiki/Lexical_analysis#Token):
    -```javascript
    -[ { type: 'Keyword', value: 'const' },
    -  { type: 'Identifier', value: 'answer' },
    -  { type: 'Punctuator', value: '=' },
    -  { type: 'Numeric', value: '42' } ]
    -```
    -and an [abstract syntax tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree):
    -```javascript
    -{ type: 'Program',
    -  body:
    -   [ { type: 'VariableDeclaration',
    -       declarations: [Object],
    -       kind: 'const' } ],
    -  sourceType: 'script' }
    -```
    diff --git a/node_modules/esprima/bin/esparse.js b/node_modules/esprima/bin/esparse.js
    deleted file mode 100755
    index 42a8593..0000000
    --- a/node_modules/esprima/bin/esparse.js
    +++ /dev/null
    @@ -1,139 +0,0 @@
    -#!/usr/bin/env node
    -/*
    -  Copyright (c) jQuery Foundation, Inc. and Contributors, 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.
    -
    -  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  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.
    -*/
    -
    -/*jslint sloppy:true node:true rhino:true */
    -
    -var fs, esprima, fname, forceFile, content, options, syntax;
    -
    -if (typeof require === 'function') {
    -    fs = require('fs');
    -    try {
    -        esprima = require('esprima');
    -    } catch (e) {
    -        esprima = require('../');
    -    }
    -} else if (typeof load === 'function') {
    -    try {
    -        load('esprima.js');
    -    } catch (e) {
    -        load('../esprima.js');
    -    }
    -}
    -
    -// Shims to Node.js objects when running under Rhino.
    -if (typeof console === 'undefined' && typeof process === 'undefined') {
    -    console = { log: print };
    -    fs = { readFileSync: readFile };
    -    process = { argv: arguments, exit: quit };
    -    process.argv.unshift('esparse.js');
    -    process.argv.unshift('rhino');
    -}
    -
    -function showUsage() {
    -    console.log('Usage:');
    -    console.log('   esparse [options] [file.js]');
    -    console.log();
    -    console.log('Available options:');
    -    console.log();
    -    console.log('  --comment      Gather all line and block comments in an array');
    -    console.log('  --loc          Include line-column location info for each syntax node');
    -    console.log('  --range        Include index-based range for each syntax node');
    -    console.log('  --raw          Display the raw value of literals');
    -    console.log('  --tokens       List all tokens in an array');
    -    console.log('  --tolerant     Tolerate errors on a best-effort basis (experimental)');
    -    console.log('  -v, --version  Shows program version');
    -    console.log();
    -    process.exit(1);
    -}
    -
    -options = {};
    -
    -process.argv.splice(2).forEach(function (entry) {
    -
    -    if (forceFile || entry === '-' || entry.slice(0, 1) !== '-') {
    -        if (typeof fname === 'string') {
    -            console.log('Error: more than one input file.');
    -            process.exit(1);
    -        } else {
    -            fname = entry;
    -        }
    -    } else if (entry === '-h' || entry === '--help') {
    -        showUsage();
    -    } else if (entry === '-v' || entry === '--version') {
    -        console.log('ECMAScript Parser (using Esprima version', esprima.version, ')');
    -        console.log();
    -        process.exit(0);
    -    } else if (entry === '--comment') {
    -        options.comment = true;
    -    } else if (entry === '--loc') {
    -        options.loc = true;
    -    } else if (entry === '--range') {
    -        options.range = true;
    -    } else if (entry === '--raw') {
    -        options.raw = true;
    -    } else if (entry === '--tokens') {
    -        options.tokens = true;
    -    } else if (entry === '--tolerant') {
    -        options.tolerant = true;
    -    } else if (entry === '--') {
    -        forceFile = true;
    -    } else {
    -        console.log('Error: unknown option ' + entry + '.');
    -        process.exit(1);
    -    }
    -});
    -
    -// Special handling for regular expression literal since we need to
    -// convert it to a string literal, otherwise it will be decoded
    -// as object "{}" and the regular expression would be lost.
    -function adjustRegexLiteral(key, value) {
    -    if (key === 'value' && value instanceof RegExp) {
    -        value = value.toString();
    -    }
    -    return value;
    -}
    -
    -function run(content) {
    -    syntax = esprima.parse(content, options);
    -    console.log(JSON.stringify(syntax, adjustRegexLiteral, 4));
    -}
    -
    -try {
    -    if (fname && (fname !== '-' || forceFile)) {
    -        run(fs.readFileSync(fname, 'utf-8'));
    -    } else {
    -        var content = '';
    -        process.stdin.resume();
    -        process.stdin.on('data', function(chunk) {
    -            content += chunk;
    -        });
    -        process.stdin.on('end', function() {
    -            run(content);
    -        });
    -    }
    -} catch (e) {
    -    console.log('Error: ' + e.message);
    -    process.exit(1);
    -}
    diff --git a/node_modules/esprima/bin/esvalidate.js b/node_modules/esprima/bin/esvalidate.js
    deleted file mode 100755
    index e1ce387..0000000
    --- a/node_modules/esprima/bin/esvalidate.js
    +++ /dev/null
    @@ -1,236 +0,0 @@
    -#!/usr/bin/env node
    -/*
    -  Copyright (c) jQuery Foundation, Inc. and Contributors, 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.
    -
    -  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  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.
    -*/
    -
    -/*jslint sloppy:true plusplus:true node:true rhino:true */
    -/*global phantom:true */
    -
    -var fs, system, esprima, options, fnames, forceFile, count;
    -
    -if (typeof esprima === 'undefined') {
    -    // PhantomJS can only require() relative files
    -    if (typeof phantom === 'object') {
    -        fs = require('fs');
    -        system = require('system');
    -        esprima = require('./esprima');
    -    } else if (typeof require === 'function') {
    -        fs = require('fs');
    -        try {
    -            esprima = require('esprima');
    -        } catch (e) {
    -            esprima = require('../');
    -        }
    -    } else if (typeof load === 'function') {
    -        try {
    -            load('esprima.js');
    -        } catch (e) {
    -            load('../esprima.js');
    -        }
    -    }
    -}
    -
    -// Shims to Node.js objects when running under PhantomJS 1.7+.
    -if (typeof phantom === 'object') {
    -    fs.readFileSync = fs.read;
    -    process = {
    -        argv: [].slice.call(system.args),
    -        exit: phantom.exit,
    -        on: function (evt, callback) {
    -            callback();
    -        }
    -    };
    -    process.argv.unshift('phantomjs');
    -}
    -
    -// Shims to Node.js objects when running under Rhino.
    -if (typeof console === 'undefined' && typeof process === 'undefined') {
    -    console = { log: print };
    -    fs = { readFileSync: readFile };
    -    process = {
    -        argv: arguments,
    -        exit: quit,
    -        on: function (evt, callback) {
    -            callback();
    -        }
    -    };
    -    process.argv.unshift('esvalidate.js');
    -    process.argv.unshift('rhino');
    -}
    -
    -function showUsage() {
    -    console.log('Usage:');
    -    console.log('   esvalidate [options] [file.js...]');
    -    console.log();
    -    console.log('Available options:');
    -    console.log();
    -    console.log('  --format=type  Set the report format, plain (default) or junit');
    -    console.log('  -v, --version  Print program version');
    -    console.log();
    -    process.exit(1);
    -}
    -
    -options = {
    -    format: 'plain'
    -};
    -
    -fnames = [];
    -
    -process.argv.splice(2).forEach(function (entry) {
    -
    -    if (forceFile || entry === '-' || entry.slice(0, 1) !== '-') {
    -        fnames.push(entry);
    -    } else if (entry === '-h' || entry === '--help') {
    -        showUsage();
    -    } else if (entry === '-v' || entry === '--version') {
    -        console.log('ECMAScript Validator (using Esprima version', esprima.version, ')');
    -        console.log();
    -        process.exit(0);
    -    } else if (entry.slice(0, 9) === '--format=') {
    -        options.format = entry.slice(9);
    -        if (options.format !== 'plain' && options.format !== 'junit') {
    -            console.log('Error: unknown report format ' + options.format + '.');
    -            process.exit(1);
    -        }
    -    } else if (entry === '--') {
    -        forceFile = true;
    -    } else {
    -        console.log('Error: unknown option ' + entry + '.');
    -        process.exit(1);
    -    }
    -});
    -
    -if (fnames.length === 0) {
    -    fnames.push('');
    -}
    -
    -if (options.format === 'junit') {
    -    console.log('');
    -    console.log('');
    -}
    -
    -count = 0;
    -
    -function run(fname, content) {
    -    var timestamp, syntax, name;
    -    try {
    -        if (typeof content !== 'string') {
    -            throw content;
    -        }
    -
    -        if (content[0] === '#' && content[1] === '!') {
    -            content = '//' + content.substr(2, content.length);
    -        }
    -
    -        timestamp = Date.now();
    -        syntax = esprima.parse(content, { tolerant: true });
    -
    -        if (options.format === 'junit') {
    -
    -            name = fname;
    -            if (name.lastIndexOf('/') >= 0) {
    -                name = name.slice(name.lastIndexOf('/') + 1);
    -            }
    -
    -            console.log('');
    -
    -            syntax.errors.forEach(function (error) {
    -                var msg = error.message;
    -                msg = msg.replace(/^Line\ [0-9]*\:\ /, '');
    -                console.log('  ');
    -                console.log('    ' +
    -                    error.message + '(' + name + ':' + error.lineNumber + ')' +
    -                    '');
    -                console.log('  ');
    -            });
    -
    -            console.log('');
    -
    -        } else if (options.format === 'plain') {
    -
    -            syntax.errors.forEach(function (error) {
    -                var msg = error.message;
    -                msg = msg.replace(/^Line\ [0-9]*\:\ /, '');
    -                msg = fname + ':' + error.lineNumber + ': ' + msg;
    -                console.log(msg);
    -                ++count;
    -            });
    -
    -        }
    -    } catch (e) {
    -        ++count;
    -        if (options.format === 'junit') {
    -            console.log('');
    -            console.log(' ');
    -            console.log(' ' +
    -                e.message + '(' + fname + ((e.lineNumber) ? ':' + e.lineNumber : '') +
    -                ')');
    -            console.log(' ');
    -            console.log('');
    -        } else {
    -            console.log('Error: ' + e.message);
    -        }
    -    }
    -}
    -
    -fnames.forEach(function (fname) {
    -    var content = '';
    -    try {
    -        if (fname && (fname !== '-' || forceFile)) {
    -            content = fs.readFileSync(fname, 'utf-8');
    -        } else {
    -            fname = '';
    -            process.stdin.resume();
    -            process.stdin.on('data', function(chunk) {
    -                content += chunk;
    -            });
    -            process.stdin.on('end', function() {
    -                run(fname, content);
    -            });
    -            return;
    -        }
    -    } catch (e) {
    -        content = e;
    -    }
    -    run(fname, content);
    -});
    -
    -process.on('exit', function () {
    -    if (options.format === 'junit') {
    -        console.log('');
    -    }
    -
    -    if (count > 0) {
    -        process.exit(1);
    -    }
    -
    -    if (count === 0 && typeof phantom === 'object') {
    -        process.exit(0);
    -    }
    -});
    diff --git a/node_modules/esprima/dist/esprima.js b/node_modules/esprima/dist/esprima.js
    deleted file mode 100644
    index e62be24..0000000
    --- a/node_modules/esprima/dist/esprima.js
    +++ /dev/null
    @@ -1,6354 +0,0 @@
    -(function webpackUniversalModuleDefinition(root, factory) {
    -/* istanbul ignore next */
    -	if(typeof exports === 'object' && typeof module === 'object')
    -		module.exports = factory();
    -	else if(typeof define === 'function' && define.amd)
    -		define([], factory);
    -/* istanbul ignore next */
    -	else if(typeof exports === 'object')
    -		exports["esprima"] = factory();
    -	else
    -		root["esprima"] = factory();
    -})(this, function() {
    -return /******/ (function(modules) { // webpackBootstrap
    -/******/ 	// The module cache
    -/******/ 	var installedModules = {};
    -
    -/******/ 	// The require function
    -/******/ 	function __webpack_require__(moduleId) {
    -
    -/******/ 		// Check if module is in cache
    -/* istanbul ignore if */
    -/******/ 		if(installedModules[moduleId])
    -/******/ 			return installedModules[moduleId].exports;
    -
    -/******/ 		// Create a new module (and put it into the cache)
    -/******/ 		var module = installedModules[moduleId] = {
    -/******/ 			exports: {},
    -/******/ 			id: moduleId,
    -/******/ 			loaded: false
    -/******/ 		};
    -
    -/******/ 		// Execute the module function
    -/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
    -
    -/******/ 		// Flag the module as loaded
    -/******/ 		module.loaded = true;
    -
    -/******/ 		// Return the exports of the module
    -/******/ 		return module.exports;
    -/******/ 	}
    -
    -
    -/******/ 	// expose the modules object (__webpack_modules__)
    -/******/ 	__webpack_require__.m = modules;
    -
    -/******/ 	// expose the module cache
    -/******/ 	__webpack_require__.c = installedModules;
    -
    -/******/ 	// __webpack_public_path__
    -/******/ 	__webpack_require__.p = "";
    -
    -/******/ 	// Load entry module and return exports
    -/******/ 	return __webpack_require__(0);
    -/******/ })
    -/************************************************************************/
    -/******/ ([
    -/* 0 */
    -/***/ function(module, exports, __webpack_require__) {
    -
    -	/*
    -	  Copyright (c) jQuery Foundation, Inc. and Contributors, 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.
    -
    -	  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  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.
    -	*/
    -	"use strict";
    -	var comment_handler_1 = __webpack_require__(1);
    -	var parser_1 = __webpack_require__(3);
    -	var jsx_parser_1 = __webpack_require__(11);
    -	var tokenizer_1 = __webpack_require__(15);
    -	function parse(code, options, delegate) {
    -	    var commentHandler = null;
    -	    var proxyDelegate = function (node, metadata) {
    -	        if (delegate) {
    -	            delegate(node, metadata);
    -	        }
    -	        if (commentHandler) {
    -	            commentHandler.visit(node, metadata);
    -	        }
    -	    };
    -	    var parserDelegate = (typeof delegate === 'function') ? proxyDelegate : null;
    -	    if (options) {
    -	        var collectComment = (typeof options.comment === 'boolean' && options.comment);
    -	        var attachComment = (typeof options.attachComment === 'boolean' && options.attachComment);
    -	        if (collectComment || attachComment) {
    -	            commentHandler = new comment_handler_1.CommentHandler();
    -	            commentHandler.attach = attachComment;
    -	            options.comment = true;
    -	            parserDelegate = proxyDelegate;
    -	        }
    -	    }
    -	    var parser;
    -	    if (options && typeof options.jsx === 'boolean' && options.jsx) {
    -	        parser = new jsx_parser_1.JSXParser(code, options, parserDelegate);
    -	    }
    -	    else {
    -	        parser = new parser_1.Parser(code, options, parserDelegate);
    -	    }
    -	    var ast = (parser.parseProgram());
    -	    if (parser.config.comment) {
    -	        ast.comments = commentHandler.comments;
    -	    }
    -	    if (parser.config.tokens) {
    -	        ast.tokens = parser.tokens;
    -	    }
    -	    if (parser.config.tolerant) {
    -	        ast.errors = parser.errorHandler.errors;
    -	    }
    -	    return ast;
    -	}
    -	exports.parse = parse;
    -	function tokenize(code, options, delegate) {
    -	    var tokenizer = new tokenizer_1.Tokenizer(code, options);
    -	    var tokens;
    -	    tokens = [];
    -	    try {
    -	        while (true) {
    -	            var token = tokenizer.getNextToken();
    -	            if (!token) {
    -	                break;
    -	            }
    -	            if (delegate) {
    -	                token = delegate(token);
    -	            }
    -	            tokens.push(token);
    -	        }
    -	    }
    -	    catch (e) {
    -	        tokenizer.errorHandler.tolerate(e);
    -	    }
    -	    if (tokenizer.errorHandler.tolerant) {
    -	        tokens.errors = tokenizer.errors();
    -	    }
    -	    return tokens;
    -	}
    -	exports.tokenize = tokenize;
    -	var syntax_1 = __webpack_require__(2);
    -	exports.Syntax = syntax_1.Syntax;
    -	// Sync with *.json manifests.
    -	exports.version = '3.0.0';
    -
    -
    -/***/ },
    -/* 1 */
    -/***/ function(module, exports, __webpack_require__) {
    -
    -	"use strict";
    -	var syntax_1 = __webpack_require__(2);
    -	var CommentHandler = (function () {
    -	    function CommentHandler() {
    -	        this.attach = false;
    -	        this.comments = [];
    -	        this.stack = [];
    -	        this.leading = [];
    -	        this.trailing = [];
    -	    }
    -	    CommentHandler.prototype.insertInnerComments = function (node, metadata) {
    -	        //  innnerComments for properties empty block
    -	        //  `function a() {/** comments **\/}`
    -	        if (node.type === syntax_1.Syntax.BlockStatement && node.body.length === 0) {
    -	            var innerComments = [];
    -	            for (var i = this.leading.length - 1; i >= 0; --i) {
    -	                var entry = this.leading[i];
    -	                if (metadata.end.offset >= entry.start) {
    -	                    innerComments.unshift(entry.comment);
    -	                    this.leading.splice(i, 1);
    -	                    this.trailing.splice(i, 1);
    -	                }
    -	            }
    -	            if (innerComments.length) {
    -	                node.innerComments = innerComments;
    -	            }
    -	        }
    -	    };
    -	    CommentHandler.prototype.findTrailingComments = function (node, metadata) {
    -	        var trailingComments = [];
    -	        if (this.trailing.length > 0) {
    -	            for (var i = this.trailing.length - 1; i >= 0; --i) {
    -	                var entry_1 = this.trailing[i];
    -	                if (entry_1.start >= metadata.end.offset) {
    -	                    trailingComments.unshift(entry_1.comment);
    -	                }
    -	            }
    -	            this.trailing.length = 0;
    -	            return trailingComments;
    -	        }
    -	        var entry = this.stack[this.stack.length - 1];
    -	        if (entry && entry.node.trailingComments) {
    -	            var firstComment = entry.node.trailingComments[0];
    -	            if (firstComment && firstComment.range[0] >= metadata.end.offset) {
    -	                trailingComments = entry.node.trailingComments;
    -	                delete entry.node.trailingComments;
    -	            }
    -	        }
    -	        return trailingComments;
    -	    };
    -	    CommentHandler.prototype.findLeadingComments = function (node, metadata) {
    -	        var leadingComments = [];
    -	        var target;
    -	        while (this.stack.length > 0) {
    -	            var entry = this.stack[this.stack.length - 1];
    -	            if (entry && entry.start >= metadata.start.offset) {
    -	                target = this.stack.pop().node;
    -	            }
    -	            else {
    -	                break;
    -	            }
    -	        }
    -	        if (target) {
    -	            var count = target.leadingComments ? target.leadingComments.length : 0;
    -	            for (var i = count - 1; i >= 0; --i) {
    -	                var comment = target.leadingComments[i];
    -	                if (comment.range[1] <= metadata.start.offset) {
    -	                    leadingComments.unshift(comment);
    -	                    target.leadingComments.splice(i, 1);
    -	                }
    -	            }
    -	            if (target.leadingComments && target.leadingComments.length === 0) {
    -	                delete target.leadingComments;
    -	            }
    -	            return leadingComments;
    -	        }
    -	        for (var i = this.leading.length - 1; i >= 0; --i) {
    -	            var entry = this.leading[i];
    -	            if (entry.start <= metadata.start.offset) {
    -	                leadingComments.unshift(entry.comment);
    -	                this.leading.splice(i, 1);
    -	            }
    -	        }
    -	        return leadingComments;
    -	    };
    -	    CommentHandler.prototype.visitNode = function (node, metadata) {
    -	        if (node.type === syntax_1.Syntax.Program && node.body.length > 0) {
    -	            return;
    -	        }
    -	        this.insertInnerComments(node, metadata);
    -	        var trailingComments = this.findTrailingComments(node, metadata);
    -	        var leadingComments = this.findLeadingComments(node, metadata);
    -	        if (leadingComments.length > 0) {
    -	            node.leadingComments = leadingComments;
    -	        }
    -	        if (trailingComments.length > 0) {
    -	            node.trailingComments = trailingComments;
    -	        }
    -	        this.stack.push({
    -	            node: node,
    -	            start: metadata.start.offset
    -	        });
    -	    };
    -	    CommentHandler.prototype.visitComment = function (node, metadata) {
    -	        var type = (node.type[0] === 'L') ? 'Line' : 'Block';
    -	        var comment = {
    -	            type: type,
    -	            value: node.value
    -	        };
    -	        if (node.range) {
    -	            comment.range = node.range;
    -	        }
    -	        if (node.loc) {
    -	            comment.loc = node.loc;
    -	        }
    -	        this.comments.push(comment);
    -	        if (this.attach) {
    -	            var entry = {
    -	                comment: {
    -	                    type: type,
    -	                    value: node.value,
    -	                    range: [metadata.start.offset, metadata.end.offset]
    -	                },
    -	                start: metadata.start.offset
    -	            };
    -	            if (node.loc) {
    -	                entry.comment.loc = node.loc;
    -	            }
    -	            node.type = type;
    -	            this.leading.push(entry);
    -	            this.trailing.push(entry);
    -	        }
    -	    };
    -	    CommentHandler.prototype.visit = function (node, metadata) {
    -	        if (node.type === 'LineComment') {
    -	            this.visitComment(node, metadata);
    -	        }
    -	        else if (node.type === 'BlockComment') {
    -	            this.visitComment(node, metadata);
    -	        }
    -	        else if (this.attach) {
    -	            this.visitNode(node, metadata);
    -	        }
    -	    };
    -	    return CommentHandler;
    -	}());
    -	exports.CommentHandler = CommentHandler;
    -
    -
    -/***/ },
    -/* 2 */
    -/***/ function(module, exports) {
    -
    -	"use strict";
    -	exports.Syntax = {
    -	    AssignmentExpression: 'AssignmentExpression',
    -	    AssignmentPattern: 'AssignmentPattern',
    -	    ArrayExpression: 'ArrayExpression',
    -	    ArrayPattern: 'ArrayPattern',
    -	    ArrowFunctionExpression: 'ArrowFunctionExpression',
    -	    BlockStatement: 'BlockStatement',
    -	    BinaryExpression: 'BinaryExpression',
    -	    BreakStatement: 'BreakStatement',
    -	    CallExpression: 'CallExpression',
    -	    CatchClause: 'CatchClause',
    -	    ClassBody: 'ClassBody',
    -	    ClassDeclaration: 'ClassDeclaration',
    -	    ClassExpression: 'ClassExpression',
    -	    ConditionalExpression: 'ConditionalExpression',
    -	    ContinueStatement: 'ContinueStatement',
    -	    DoWhileStatement: 'DoWhileStatement',
    -	    DebuggerStatement: 'DebuggerStatement',
    -	    EmptyStatement: 'EmptyStatement',
    -	    ExportAllDeclaration: 'ExportAllDeclaration',
    -	    ExportDefaultDeclaration: 'ExportDefaultDeclaration',
    -	    ExportNamedDeclaration: 'ExportNamedDeclaration',
    -	    ExportSpecifier: 'ExportSpecifier',
    -	    ExpressionStatement: 'ExpressionStatement',
    -	    ForStatement: 'ForStatement',
    -	    ForOfStatement: 'ForOfStatement',
    -	    ForInStatement: 'ForInStatement',
    -	    FunctionDeclaration: 'FunctionDeclaration',
    -	    FunctionExpression: 'FunctionExpression',
    -	    Identifier: 'Identifier',
    -	    IfStatement: 'IfStatement',
    -	    ImportDeclaration: 'ImportDeclaration',
    -	    ImportDefaultSpecifier: 'ImportDefaultSpecifier',
    -	    ImportNamespaceSpecifier: 'ImportNamespaceSpecifier',
    -	    ImportSpecifier: 'ImportSpecifier',
    -	    Literal: 'Literal',
    -	    LabeledStatement: 'LabeledStatement',
    -	    LogicalExpression: 'LogicalExpression',
    -	    MemberExpression: 'MemberExpression',
    -	    MetaProperty: 'MetaProperty',
    -	    MethodDefinition: 'MethodDefinition',
    -	    NewExpression: 'NewExpression',
    -	    ObjectExpression: 'ObjectExpression',
    -	    ObjectPattern: 'ObjectPattern',
    -	    Program: 'Program',
    -	    Property: 'Property',
    -	    RestElement: 'RestElement',
    -	    ReturnStatement: 'ReturnStatement',
    -	    SequenceExpression: 'SequenceExpression',
    -	    SpreadElement: 'SpreadElement',
    -	    Super: 'Super',
    -	    SwitchCase: 'SwitchCase',
    -	    SwitchStatement: 'SwitchStatement',
    -	    TaggedTemplateExpression: 'TaggedTemplateExpression',
    -	    TemplateElement: 'TemplateElement',
    -	    TemplateLiteral: 'TemplateLiteral',
    -	    ThisExpression: 'ThisExpression',
    -	    ThrowStatement: 'ThrowStatement',
    -	    TryStatement: 'TryStatement',
    -	    UnaryExpression: 'UnaryExpression',
    -	    UpdateExpression: 'UpdateExpression',
    -	    VariableDeclaration: 'VariableDeclaration',
    -	    VariableDeclarator: 'VariableDeclarator',
    -	    WhileStatement: 'WhileStatement',
    -	    WithStatement: 'WithStatement',
    -	    YieldExpression: 'YieldExpression'
    -	};
    -
    -
    -/***/ },
    -/* 3 */
    -/***/ function(module, exports, __webpack_require__) {
    -
    -	"use strict";
    -	var assert_1 = __webpack_require__(4);
    -	var messages_1 = __webpack_require__(5);
    -	var error_handler_1 = __webpack_require__(6);
    -	var token_1 = __webpack_require__(7);
    -	var scanner_1 = __webpack_require__(8);
    -	var syntax_1 = __webpack_require__(2);
    -	var Node = __webpack_require__(10);
    -	var ArrowParameterPlaceHolder = 'ArrowParameterPlaceHolder';
    -	var Parser = (function () {
    -	    function Parser(code, options, delegate) {
    -	        if (options === void 0) { options = {}; }
    -	        this.config = {
    -	            range: (typeof options.range === 'boolean') && options.range,
    -	            loc: (typeof options.loc === 'boolean') && options.loc,
    -	            source: null,
    -	            tokens: (typeof options.tokens === 'boolean') && options.tokens,
    -	            comment: (typeof options.comment === 'boolean') && options.comment,
    -	            tolerant: (typeof options.tolerant === 'boolean') && options.tolerant
    -	        };
    -	        if (this.config.loc && options.source && options.source !== null) {
    -	            this.config.source = String(options.source);
    -	        }
    -	        this.delegate = delegate;
    -	        this.errorHandler = new error_handler_1.ErrorHandler();
    -	        this.errorHandler.tolerant = this.config.tolerant;
    -	        this.scanner = new scanner_1.Scanner(code, this.errorHandler);
    -	        this.scanner.trackComment = this.config.comment;
    -	        this.operatorPrecedence = {
    -	            ')': 0,
    -	            ';': 0,
    -	            ',': 0,
    -	            '=': 0,
    -	            ']': 0,
    -	            '||': 1,
    -	            '&&': 2,
    -	            '|': 3,
    -	            '^': 4,
    -	            '&': 5,
    -	            '==': 6,
    -	            '!=': 6,
    -	            '===': 6,
    -	            '!==': 6,
    -	            '<': 7,
    -	            '>': 7,
    -	            '<=': 7,
    -	            '>=': 7,
    -	            '<<': 8,
    -	            '>>': 8,
    -	            '>>>': 8,
    -	            '+': 9,
    -	            '-': 9,
    -	            '*': 11,
    -	            '/': 11,
    -	            '%': 11
    -	        };
    -	        this.sourceType = (options && options.sourceType === 'module') ? 'module' : 'script';
    -	        this.lookahead = null;
    -	        this.hasLineTerminator = false;
    -	        this.context = {
    -	            allowIn: true,
    -	            allowYield: true,
    -	            firstCoverInitializedNameError: null,
    -	            isAssignmentTarget: false,
    -	            isBindingElement: false,
    -	            inFunctionBody: false,
    -	            inIteration: false,
    -	            inSwitch: false,
    -	            labelSet: {},
    -	            strict: (this.sourceType === 'module')
    -	        };
    -	        this.tokens = [];
    -	        this.startMarker = {
    -	            index: 0,
    -	            lineNumber: this.scanner.lineNumber,
    -	            lineStart: 0
    -	        };
    -	        this.lastMarker = {
    -	            index: 0,
    -	            lineNumber: this.scanner.lineNumber,
    -	            lineStart: 0
    -	        };
    -	        this.nextToken();
    -	        this.lastMarker = {
    -	            index: this.scanner.index,
    -	            lineNumber: this.scanner.lineNumber,
    -	            lineStart: this.scanner.lineStart
    -	        };
    -	    }
    -	    Parser.prototype.throwError = function (messageFormat) {
    -	        var values = [];
    -	        for (var _i = 1; _i < arguments.length; _i++) {
    -	            values[_i - 1] = arguments[_i];
    -	        }
    -	        var args = Array.prototype.slice.call(arguments, 1);
    -	        var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) {
    -	            assert_1.assert(idx < args.length, 'Message reference must be in range');
    -	            return args[idx];
    -	        });
    -	        var index = this.lastMarker.index;
    -	        var line = this.lastMarker.lineNumber;
    -	        var column = this.lastMarker.index - this.lastMarker.lineStart + 1;
    -	        throw this.errorHandler.createError(index, line, column, msg);
    -	    };
    -	    Parser.prototype.tolerateError = function (messageFormat) {
    -	        var values = [];
    -	        for (var _i = 1; _i < arguments.length; _i++) {
    -	            values[_i - 1] = arguments[_i];
    -	        }
    -	        var args = Array.prototype.slice.call(arguments, 1);
    -	        var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) {
    -	            assert_1.assert(idx < args.length, 'Message reference must be in range');
    -	            return args[idx];
    -	        });
    -	        var index = this.lastMarker.index;
    -	        var line = this.scanner.lineNumber;
    -	        var column = this.lastMarker.index - this.lastMarker.lineStart + 1;
    -	        this.errorHandler.tolerateError(index, line, column, msg);
    -	    };
    -	    // Throw an exception because of the token.
    -	    Parser.prototype.unexpectedTokenError = function (token, message) {
    -	        var msg = message || messages_1.Messages.UnexpectedToken;
    -	        var value;
    -	        if (token) {
    -	            if (!message) {
    -	                msg = (token.type === token_1.Token.EOF) ? messages_1.Messages.UnexpectedEOS :
    -	                    (token.type === token_1.Token.Identifier) ? messages_1.Messages.UnexpectedIdentifier :
    -	                        (token.type === token_1.Token.NumericLiteral) ? messages_1.Messages.UnexpectedNumber :
    -	                            (token.type === token_1.Token.StringLiteral) ? messages_1.Messages.UnexpectedString :
    -	                                (token.type === token_1.Token.Template) ? messages_1.Messages.UnexpectedTemplate :
    -	                                    messages_1.Messages.UnexpectedToken;
    -	                if (token.type === token_1.Token.Keyword) {
    -	                    if (this.scanner.isFutureReservedWord(token.value)) {
    -	                        msg = messages_1.Messages.UnexpectedReserved;
    -	                    }
    -	                    else if (this.context.strict && this.scanner.isStrictModeReservedWord(token.value)) {
    -	                        msg = messages_1.Messages.StrictReservedWord;
    -	                    }
    -	                }
    -	            }
    -	            value = (token.type === token_1.Token.Template) ? token.value.raw : token.value;
    -	        }
    -	        else {
    -	            value = 'ILLEGAL';
    -	        }
    -	        msg = msg.replace('%0', value);
    -	        if (token && typeof token.lineNumber === 'number') {
    -	            var index = token.start;
    -	            var line = token.lineNumber;
    -	            var column = token.start - this.lastMarker.lineStart + 1;
    -	            return this.errorHandler.createError(index, line, column, msg);
    -	        }
    -	        else {
    -	            var index = this.lastMarker.index;
    -	            var line = this.lastMarker.lineNumber;
    -	            var column = index - this.lastMarker.lineStart + 1;
    -	            return this.errorHandler.createError(index, line, column, msg);
    -	        }
    -	    };
    -	    Parser.prototype.throwUnexpectedToken = function (token, message) {
    -	        throw this.unexpectedTokenError(token, message);
    -	    };
    -	    Parser.prototype.tolerateUnexpectedToken = function (token, message) {
    -	        this.errorHandler.tolerate(this.unexpectedTokenError(token, message));
    -	    };
    -	    Parser.prototype.collectComments = function () {
    -	        if (!this.config.comment) {
    -	            this.scanner.scanComments();
    -	        }
    -	        else {
    -	            var comments = this.scanner.scanComments();
    -	            if (comments.length > 0 && this.delegate) {
    -	                for (var i = 0; i < comments.length; ++i) {
    -	                    var e = comments[i];
    -	                    var node = void 0;
    -	                    node = {
    -	                        type: e.multiLine ? 'BlockComment' : 'LineComment',
    -	                        value: this.scanner.source.slice(e.slice[0], e.slice[1])
    -	                    };
    -	                    if (this.config.range) {
    -	                        node.range = e.range;
    -	                    }
    -	                    if (this.config.loc) {
    -	                        node.loc = e.loc;
    -	                    }
    -	                    var metadata = {
    -	                        start: {
    -	                            line: e.loc.start.line,
    -	                            column: e.loc.start.column,
    -	                            offset: e.range[0]
    -	                        },
    -	                        end: {
    -	                            line: e.loc.end.line,
    -	                            column: e.loc.end.column,
    -	                            offset: e.range[1]
    -	                        }
    -	                    };
    -	                    this.delegate(node, metadata);
    -	                }
    -	            }
    -	        }
    -	    };
    -	    // From internal representation to an external structure
    -	    Parser.prototype.getTokenRaw = function (token) {
    -	        return this.scanner.source.slice(token.start, token.end);
    -	    };
    -	    Parser.prototype.convertToken = function (token) {
    -	        var t;
    -	        t = {
    -	            type: token_1.TokenName[token.type],
    -	            value: this.getTokenRaw(token)
    -	        };
    -	        if (this.config.range) {
    -	            t.range = [token.start, token.end];
    -	        }
    -	        if (this.config.loc) {
    -	            t.loc = {
    -	                start: {
    -	                    line: this.startMarker.lineNumber,
    -	                    column: this.startMarker.index - this.startMarker.lineStart
    -	                },
    -	                end: {
    -	                    line: this.scanner.lineNumber,
    -	                    column: this.scanner.index - this.scanner.lineStart
    -	                }
    -	            };
    -	        }
    -	        if (token.regex) {
    -	            t.regex = token.regex;
    -	        }
    -	        return t;
    -	    };
    -	    Parser.prototype.nextToken = function () {
    -	        var token = this.lookahead;
    -	        this.lastMarker.index = this.scanner.index;
    -	        this.lastMarker.lineNumber = this.scanner.lineNumber;
    -	        this.lastMarker.lineStart = this.scanner.lineStart;
    -	        this.collectComments();
    -	        this.startMarker.index = this.scanner.index;
    -	        this.startMarker.lineNumber = this.scanner.lineNumber;
    -	        this.startMarker.lineStart = this.scanner.lineStart;
    -	        var next;
    -	        next = this.scanner.lex();
    -	        this.hasLineTerminator = (token && next) ? (token.lineNumber !== next.lineNumber) : false;
    -	        if (next && this.context.strict && next.type === token_1.Token.Identifier) {
    -	            if (this.scanner.isStrictModeReservedWord(next.value)) {
    -	                next.type = token_1.Token.Keyword;
    -	            }
    -	        }
    -	        this.lookahead = next;
    -	        if (this.config.tokens && next.type !== token_1.Token.EOF) {
    -	            this.tokens.push(this.convertToken(next));
    -	        }
    -	        return token;
    -	    };
    -	    Parser.prototype.nextRegexToken = function () {
    -	        this.collectComments();
    -	        var token = this.scanner.scanRegExp();
    -	        if (this.config.tokens) {
    -	            // Pop the previous token, '/' or '/='
    -	            // This is added from the lookahead token.
    -	            this.tokens.pop();
    -	            this.tokens.push(this.convertToken(token));
    -	        }
    -	        // Prime the next lookahead.
    -	        this.lookahead = token;
    -	        this.nextToken();
    -	        return token;
    -	    };
    -	    Parser.prototype.createNode = function () {
    -	        return {
    -	            index: this.startMarker.index,
    -	            line: this.startMarker.lineNumber,
    -	            column: this.startMarker.index - this.startMarker.lineStart
    -	        };
    -	    };
    -	    Parser.prototype.startNode = function (token) {
    -	        return {
    -	            index: token.start,
    -	            line: token.lineNumber,
    -	            column: token.start - token.lineStart
    -	        };
    -	    };
    -	    Parser.prototype.finalize = function (meta, node) {
    -	        if (this.config.range) {
    -	            node.range = [meta.index, this.lastMarker.index];
    -	        }
    -	        if (this.config.loc) {
    -	            node.loc = {
    -	                start: {
    -	                    line: meta.line,
    -	                    column: meta.column
    -	                },
    -	                end: {
    -	                    line: this.lastMarker.lineNumber,
    -	                    column: this.lastMarker.index - this.lastMarker.lineStart
    -	                }
    -	            };
    -	            if (this.config.source) {
    -	                node.loc.source = this.config.source;
    -	            }
    -	        }
    -	        if (this.delegate) {
    -	            var metadata = {
    -	                start: {
    -	                    line: meta.line,
    -	                    column: meta.column,
    -	                    offset: meta.index
    -	                },
    -	                end: {
    -	                    line: this.lastMarker.lineNumber,
    -	                    column: this.lastMarker.index - this.lastMarker.lineStart,
    -	                    offset: this.lastMarker.index
    -	                }
    -	            };
    -	            this.delegate(node, metadata);
    -	        }
    -	        return node;
    -	    };
    -	    // Expect the next token to match the specified punctuator.
    -	    // If not, an exception will be thrown.
    -	    Parser.prototype.expect = function (value) {
    -	        var token = this.nextToken();
    -	        if (token.type !== token_1.Token.Punctuator || token.value !== value) {
    -	            this.throwUnexpectedToken(token);
    -	        }
    -	    };
    -	    // Quietly expect a comma when in tolerant mode, otherwise delegates to expect().
    -	    Parser.prototype.expectCommaSeparator = function () {
    -	        if (this.config.tolerant) {
    -	            var token = this.lookahead;
    -	            if (token.type === token_1.Token.Punctuator && token.value === ',') {
    -	                this.nextToken();
    -	            }
    -	            else if (token.type === token_1.Token.Punctuator && token.value === ';') {
    -	                this.nextToken();
    -	                this.tolerateUnexpectedToken(token);
    -	            }
    -	            else {
    -	                this.tolerateUnexpectedToken(token, messages_1.Messages.UnexpectedToken);
    -	            }
    -	        }
    -	        else {
    -	            this.expect(',');
    -	        }
    -	    };
    -	    // Expect the next token to match the specified keyword.
    -	    // If not, an exception will be thrown.
    -	    Parser.prototype.expectKeyword = function (keyword) {
    -	        var token = this.nextToken();
    -	        if (token.type !== token_1.Token.Keyword || token.value !== keyword) {
    -	            this.throwUnexpectedToken(token);
    -	        }
    -	    };
    -	    // Return true if the next token matches the specified punctuator.
    -	    Parser.prototype.match = function (value) {
    -	        return this.lookahead.type === token_1.Token.Punctuator && this.lookahead.value === value;
    -	    };
    -	    // Return true if the next token matches the specified keyword
    -	    Parser.prototype.matchKeyword = function (keyword) {
    -	        return this.lookahead.type === token_1.Token.Keyword && this.lookahead.value === keyword;
    -	    };
    -	    // Return true if the next token matches the specified contextual keyword
    -	    // (where an identifier is sometimes a keyword depending on the context)
    -	    Parser.prototype.matchContextualKeyword = function (keyword) {
    -	        return this.lookahead.type === token_1.Token.Identifier && this.lookahead.value === keyword;
    -	    };
    -	    // Return true if the next token is an assignment operator
    -	    Parser.prototype.matchAssign = function () {
    -	        if (this.lookahead.type !== token_1.Token.Punctuator) {
    -	            return false;
    -	        }
    -	        var op = this.lookahead.value;
    -	        return op === '=' ||
    -	            op === '*=' ||
    -	            op === '**=' ||
    -	            op === '/=' ||
    -	            op === '%=' ||
    -	            op === '+=' ||
    -	            op === '-=' ||
    -	            op === '<<=' ||
    -	            op === '>>=' ||
    -	            op === '>>>=' ||
    -	            op === '&=' ||
    -	            op === '^=' ||
    -	            op === '|=';
    -	    };
    -	    // Cover grammar support.
    -	    //
    -	    // When an assignment expression position starts with an left parenthesis, the determination of the type
    -	    // of the syntax is to be deferred arbitrarily long until the end of the parentheses pair (plus a lookahead)
    -	    // or the first comma. This situation also defers the determination of all the expressions nested in the pair.
    -	    //
    -	    // There are three productions that can be parsed in a parentheses pair that needs to be determined
    -	    // after the outermost pair is closed. They are:
    -	    //
    -	    //   1. AssignmentExpression
    -	    //   2. BindingElements
    -	    //   3. AssignmentTargets
    -	    //
    -	    // In order to avoid exponential backtracking, we use two flags to denote if the production can be
    -	    // binding element or assignment target.
    -	    //
    -	    // The three productions have the relationship:
    -	    //
    -	    //   BindingElements ⊆ AssignmentTargets ⊆ AssignmentExpression
    -	    //
    -	    // with a single exception that CoverInitializedName when used directly in an Expression, generates
    -	    // an early error. Therefore, we need the third state, firstCoverInitializedNameError, to track the
    -	    // first usage of CoverInitializedName and report it when we reached the end of the parentheses pair.
    -	    //
    -	    // isolateCoverGrammar function runs the given parser function with a new cover grammar context, and it does not
    -	    // effect the current flags. This means the production the parser parses is only used as an expression. Therefore
    -	    // the CoverInitializedName check is conducted.
    -	    //
    -	    // inheritCoverGrammar function runs the given parse function with a new cover grammar context, and it propagates
    -	    // the flags outside of the parser. This means the production the parser parses is used as a part of a potential
    -	    // pattern. The CoverInitializedName check is deferred.
    -	    Parser.prototype.isolateCoverGrammar = function (parseFunction) {
    -	        var previousIsBindingElement = this.context.isBindingElement;
    -	        var previousIsAssignmentTarget = this.context.isAssignmentTarget;
    -	        var previousFirstCoverInitializedNameError = this.context.firstCoverInitializedNameError;
    -	        this.context.isBindingElement = true;
    -	        this.context.isAssignmentTarget = true;
    -	        this.context.firstCoverInitializedNameError = null;
    -	        var result = parseFunction.call(this);
    -	        if (this.context.firstCoverInitializedNameError !== null) {
    -	            this.throwUnexpectedToken(this.context.firstCoverInitializedNameError);
    -	        }
    -	        this.context.isBindingElement = previousIsBindingElement;
    -	        this.context.isAssignmentTarget = previousIsAssignmentTarget;
    -	        this.context.firstCoverInitializedNameError = previousFirstCoverInitializedNameError;
    -	        return result;
    -	    };
    -	    Parser.prototype.inheritCoverGrammar = function (parseFunction) {
    -	        var previousIsBindingElement = this.context.isBindingElement;
    -	        var previousIsAssignmentTarget = this.context.isAssignmentTarget;
    -	        var previousFirstCoverInitializedNameError = this.context.firstCoverInitializedNameError;
    -	        this.context.isBindingElement = true;
    -	        this.context.isAssignmentTarget = true;
    -	        this.context.firstCoverInitializedNameError = null;
    -	        var result = parseFunction.call(this);
    -	        this.context.isBindingElement = this.context.isBindingElement && previousIsBindingElement;
    -	        this.context.isAssignmentTarget = this.context.isAssignmentTarget && previousIsAssignmentTarget;
    -	        this.context.firstCoverInitializedNameError = previousFirstCoverInitializedNameError || this.context.firstCoverInitializedNameError;
    -	        return result;
    -	    };
    -	    Parser.prototype.consumeSemicolon = function () {
    -	        if (this.match(';')) {
    -	            this.nextToken();
    -	        }
    -	        else if (!this.hasLineTerminator) {
    -	            if (this.lookahead.type !== token_1.Token.EOF && !this.match('}')) {
    -	                this.throwUnexpectedToken(this.lookahead);
    -	            }
    -	            this.lastMarker.index = this.startMarker.index;
    -	            this.lastMarker.lineNumber = this.startMarker.lineNumber;
    -	            this.lastMarker.lineStart = this.startMarker.lineStart;
    -	        }
    -	    };
    -	    // ECMA-262 12.2 Primary Expressions
    -	    Parser.prototype.parsePrimaryExpression = function () {
    -	        var node = this.createNode();
    -	        var expr;
    -	        var value, token, raw;
    -	        switch (this.lookahead.type) {
    -	            case token_1.Token.Identifier:
    -	                if (this.sourceType === 'module' && this.lookahead.value === 'await') {
    -	                    this.tolerateUnexpectedToken(this.lookahead);
    -	                }
    -	                expr = this.finalize(node, new Node.Identifier(this.nextToken().value));
    -	                break;
    -	            case token_1.Token.NumericLiteral:
    -	            case token_1.Token.StringLiteral:
    -	                if (this.context.strict && this.lookahead.octal) {
    -	                    this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.StrictOctalLiteral);
    -	                }
    -	                this.context.isAssignmentTarget = false;
    -	                this.context.isBindingElement = false;
    -	                token = this.nextToken();
    -	                raw = this.getTokenRaw(token);
    -	                expr = this.finalize(node, new Node.Literal(token.value, raw));
    -	                break;
    -	            case token_1.Token.BooleanLiteral:
    -	                this.context.isAssignmentTarget = false;
    -	                this.context.isBindingElement = false;
    -	                token = this.nextToken();
    -	                token.value = (token.value === 'true');
    -	                raw = this.getTokenRaw(token);
    -	                expr = this.finalize(node, new Node.Literal(token.value, raw));
    -	                break;
    -	            case token_1.Token.NullLiteral:
    -	                this.context.isAssignmentTarget = false;
    -	                this.context.isBindingElement = false;
    -	                token = this.nextToken();
    -	                token.value = null;
    -	                raw = this.getTokenRaw(token);
    -	                expr = this.finalize(node, new Node.Literal(token.value, raw));
    -	                break;
    -	            case token_1.Token.Template:
    -	                expr = this.parseTemplateLiteral();
    -	                break;
    -	            case token_1.Token.Punctuator:
    -	                value = this.lookahead.value;
    -	                switch (value) {
    -	                    case '(':
    -	                        this.context.isBindingElement = false;
    -	                        expr = this.inheritCoverGrammar(this.parseGroupExpression);
    -	                        break;
    -	                    case '[':
    -	                        expr = this.inheritCoverGrammar(this.parseArrayInitializer);
    -	                        break;
    -	                    case '{':
    -	                        expr = this.inheritCoverGrammar(this.parseObjectInitializer);
    -	                        break;
    -	                    case '/':
    -	                    case '/=':
    -	                        this.context.isAssignmentTarget = false;
    -	                        this.context.isBindingElement = false;
    -	                        this.scanner.index = this.startMarker.index;
    -	                        token = this.nextRegexToken();
    -	                        raw = this.getTokenRaw(token);
    -	                        expr = this.finalize(node, new Node.RegexLiteral(token.value, raw, token.regex));
    -	                        break;
    -	                    default:
    -	                        this.throwUnexpectedToken(this.nextToken());
    -	                }
    -	                break;
    -	            case token_1.Token.Keyword:
    -	                if (!this.context.strict && this.context.allowYield && this.matchKeyword('yield')) {
    -	                    expr = this.parseNonComputedProperty();
    -	                }
    -	                else if (!this.context.strict && this.matchKeyword('let')) {
    -	                    expr = this.finalize(node, new Node.Identifier(this.nextToken().value));
    -	                }
    -	                else {
    -	                    this.context.isAssignmentTarget = false;
    -	                    this.context.isBindingElement = false;
    -	                    if (this.matchKeyword('function')) {
    -	                        expr = this.parseFunctionExpression();
    -	                    }
    -	                    else if (this.matchKeyword('this')) {
    -	                        this.nextToken();
    -	                        expr = this.finalize(node, new Node.ThisExpression());
    -	                    }
    -	                    else if (this.matchKeyword('class')) {
    -	                        expr = this.parseClassExpression();
    -	                    }
    -	                    else {
    -	                        this.throwUnexpectedToken(this.nextToken());
    -	                    }
    -	                }
    -	                break;
    -	            default:
    -	                this.throwUnexpectedToken(this.nextToken());
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 12.2.5 Array Initializer
    -	    Parser.prototype.parseSpreadElement = function () {
    -	        var node = this.createNode();
    -	        this.expect('...');
    -	        var arg = this.inheritCoverGrammar(this.parseAssignmentExpression);
    -	        return this.finalize(node, new Node.SpreadElement(arg));
    -	    };
    -	    Parser.prototype.parseArrayInitializer = function () {
    -	        var node = this.createNode();
    -	        var elements = [];
    -	        this.expect('[');
    -	        while (!this.match(']')) {
    -	            if (this.match(',')) {
    -	                this.nextToken();
    -	                elements.push(null);
    -	            }
    -	            else if (this.match('...')) {
    -	                var element = this.parseSpreadElement();
    -	                if (!this.match(']')) {
    -	                    this.context.isAssignmentTarget = false;
    -	                    this.context.isBindingElement = false;
    -	                    this.expect(',');
    -	                }
    -	                elements.push(element);
    -	            }
    -	            else {
    -	                elements.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
    -	                if (!this.match(']')) {
    -	                    this.expect(',');
    -	                }
    -	            }
    -	        }
    -	        this.expect(']');
    -	        return this.finalize(node, new Node.ArrayExpression(elements));
    -	    };
    -	    // ECMA-262 12.2.6 Object Initializer
    -	    Parser.prototype.parsePropertyMethod = function (params) {
    -	        this.context.isAssignmentTarget = false;
    -	        this.context.isBindingElement = false;
    -	        var previousStrict = this.context.strict;
    -	        var body = this.isolateCoverGrammar(this.parseFunctionSourceElements);
    -	        if (this.context.strict && params.firstRestricted) {
    -	            this.tolerateUnexpectedToken(params.firstRestricted, params.message);
    -	        }
    -	        if (this.context.strict && params.stricted) {
    -	            this.tolerateUnexpectedToken(params.stricted, params.message);
    -	        }
    -	        this.context.strict = previousStrict;
    -	        return body;
    -	    };
    -	    Parser.prototype.parsePropertyMethodFunction = function () {
    -	        var isGenerator = false;
    -	        var node = this.createNode();
    -	        var previousAllowYield = this.context.allowYield;
    -	        this.context.allowYield = false;
    -	        var params = this.parseFormalParameters();
    -	        var method = this.parsePropertyMethod(params);
    -	        this.context.allowYield = previousAllowYield;
    -	        return this.finalize(node, new Node.FunctionExpression(null, params.params, method, isGenerator));
    -	    };
    -	    Parser.prototype.parseObjectPropertyKey = function () {
    -	        var node = this.createNode();
    -	        var token = this.nextToken();
    -	        var key = null;
    -	        switch (token.type) {
    -	            case token_1.Token.StringLiteral:
    -	            case token_1.Token.NumericLiteral:
    -	                if (this.context.strict && token.octal) {
    -	                    this.tolerateUnexpectedToken(token, messages_1.Messages.StrictOctalLiteral);
    -	                }
    -	                var raw = this.getTokenRaw(token);
    -	                key = this.finalize(node, new Node.Literal(token.value, raw));
    -	                break;
    -	            case token_1.Token.Identifier:
    -	            case token_1.Token.BooleanLiteral:
    -	            case token_1.Token.NullLiteral:
    -	            case token_1.Token.Keyword:
    -	                key = this.finalize(node, new Node.Identifier(token.value));
    -	                break;
    -	            case token_1.Token.Punctuator:
    -	                if (token.value === '[') {
    -	                    key = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	                    this.expect(']');
    -	                }
    -	                else {
    -	                    this.throwUnexpectedToken(token);
    -	                }
    -	                break;
    -	            default:
    -	                this.throwUnexpectedToken(token);
    -	        }
    -	        return key;
    -	    };
    -	    Parser.prototype.isPropertyKey = function (key, value) {
    -	        return (key.type === syntax_1.Syntax.Identifier && key.name === value) ||
    -	            (key.type === syntax_1.Syntax.Literal && key.value === value);
    -	    };
    -	    Parser.prototype.checkDuplicatedProto = function (key, hasProto) {
    -	        if (this.isPropertyKey(key, '__proto__')) {
    -	            if (hasProto.value) {
    -	                this.tolerateError(messages_1.Messages.DuplicateProtoProperty);
    -	            }
    -	            else {
    -	                hasProto.value = true;
    -	            }
    -	        }
    -	    };
    -	    Parser.prototype.parseObjectProperty = function (hasProto) {
    -	        var node = this.createNode();
    -	        var token = this.lookahead;
    -	        var kind;
    -	        var key;
    -	        var value;
    -	        var computed = false;
    -	        var method = false;
    -	        var shorthand = false;
    -	        if (token.type === token_1.Token.Identifier) {
    -	            this.nextToken();
    -	            key = this.finalize(node, new Node.Identifier(token.value));
    -	        }
    -	        else if (this.match('*')) {
    -	            this.nextToken();
    -	        }
    -	        else {
    -	            computed = this.match('[');
    -	            key = this.parseObjectPropertyKey();
    -	        }
    -	        var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead);
    -	        if (token.type === token_1.Token.Identifier && token.value === 'get' && lookaheadPropertyKey) {
    -	            kind = 'get';
    -	            computed = this.match('[');
    -	            key = this.parseObjectPropertyKey();
    -	            this.context.allowYield = false;
    -	            value = this.parseGetterMethod();
    -	        }
    -	        else if (token.type === token_1.Token.Identifier && token.value === 'set' && lookaheadPropertyKey) {
    -	            kind = 'set';
    -	            computed = this.match('[');
    -	            key = this.parseObjectPropertyKey();
    -	            value = this.parseSetterMethod();
    -	        }
    -	        else if (token.type === token_1.Token.Punctuator && token.value === '*' && lookaheadPropertyKey) {
    -	            kind = 'init';
    -	            computed = this.match('[');
    -	            key = this.parseObjectPropertyKey();
    -	            value = this.parseGeneratorMethod();
    -	            method = true;
    -	        }
    -	        else {
    -	            if (!key) {
    -	                this.throwUnexpectedToken(this.lookahead);
    -	            }
    -	            kind = 'init';
    -	            if (this.match(':')) {
    -	                if (!computed) {
    -	                    this.checkDuplicatedProto(key, hasProto);
    -	                }
    -	                this.nextToken();
    -	                value = this.inheritCoverGrammar(this.parseAssignmentExpression);
    -	            }
    -	            else if (this.match('(')) {
    -	                value = this.parsePropertyMethodFunction();
    -	                method = true;
    -	            }
    -	            else if (token.type === token_1.Token.Identifier) {
    -	                var id = this.finalize(node, new Node.Identifier(token.value));
    -	                this.checkDuplicatedProto(key, hasProto);
    -	                if (this.match('=')) {
    -	                    this.context.firstCoverInitializedNameError = this.lookahead;
    -	                    this.nextToken();
    -	                    shorthand = true;
    -	                    var init = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	                    value = this.finalize(node, new Node.AssignmentPattern(id, init));
    -	                }
    -	                else {
    -	                    shorthand = true;
    -	                    value = id;
    -	                }
    -	            }
    -	            else {
    -	                this.throwUnexpectedToken(this.nextToken());
    -	            }
    -	        }
    -	        return this.finalize(node, new Node.Property(kind, key, computed, value, method, shorthand));
    -	    };
    -	    Parser.prototype.parseObjectInitializer = function () {
    -	        var node = this.createNode();
    -	        this.expect('{');
    -	        var properties = [];
    -	        var hasProto = { value: false };
    -	        while (!this.match('}')) {
    -	            properties.push(this.parseObjectProperty(hasProto));
    -	            if (!this.match('}')) {
    -	                this.expectCommaSeparator();
    -	            }
    -	        }
    -	        this.expect('}');
    -	        return this.finalize(node, new Node.ObjectExpression(properties));
    -	    };
    -	    // ECMA-262 12.2.9 Template Literals
    -	    Parser.prototype.parseTemplateHead = function () {
    -	        assert_1.assert(this.lookahead.head, 'Template literal must start with a template head');
    -	        var node = this.createNode();
    -	        var token = this.nextToken();
    -	        var value = {
    -	            raw: token.value.raw,
    -	            cooked: token.value.cooked
    -	        };
    -	        return this.finalize(node, new Node.TemplateElement(value, token.tail));
    -	    };
    -	    Parser.prototype.parseTemplateElement = function () {
    -	        if (this.lookahead.type !== token_1.Token.Template) {
    -	            this.throwUnexpectedToken();
    -	        }
    -	        var node = this.createNode();
    -	        var token = this.nextToken();
    -	        var value = {
    -	            raw: token.value.raw,
    -	            cooked: token.value.cooked
    -	        };
    -	        return this.finalize(node, new Node.TemplateElement(value, token.tail));
    -	    };
    -	    Parser.prototype.parseTemplateLiteral = function () {
    -	        var node = this.createNode();
    -	        var expressions = [];
    -	        var quasis = [];
    -	        var quasi = this.parseTemplateHead();
    -	        quasis.push(quasi);
    -	        while (!quasi.tail) {
    -	            expressions.push(this.parseExpression());
    -	            quasi = this.parseTemplateElement();
    -	            quasis.push(quasi);
    -	        }
    -	        return this.finalize(node, new Node.TemplateLiteral(quasis, expressions));
    -	    };
    -	    // ECMA-262 12.2.10 The Grouping Operator
    -	    Parser.prototype.reinterpretExpressionAsPattern = function (expr) {
    -	        switch (expr.type) {
    -	            case syntax_1.Syntax.Identifier:
    -	            case syntax_1.Syntax.MemberExpression:
    -	            case syntax_1.Syntax.RestElement:
    -	            case syntax_1.Syntax.AssignmentPattern:
    -	                break;
    -	            case syntax_1.Syntax.SpreadElement:
    -	                expr.type = syntax_1.Syntax.RestElement;
    -	                this.reinterpretExpressionAsPattern(expr.argument);
    -	                break;
    -	            case syntax_1.Syntax.ArrayExpression:
    -	                expr.type = syntax_1.Syntax.ArrayPattern;
    -	                for (var i = 0; i < expr.elements.length; i++) {
    -	                    if (expr.elements[i] !== null) {
    -	                        this.reinterpretExpressionAsPattern(expr.elements[i]);
    -	                    }
    -	                }
    -	                break;
    -	            case syntax_1.Syntax.ObjectExpression:
    -	                expr.type = syntax_1.Syntax.ObjectPattern;
    -	                for (var i = 0; i < expr.properties.length; i++) {
    -	                    this.reinterpretExpressionAsPattern(expr.properties[i].value);
    -	                }
    -	                break;
    -	            case syntax_1.Syntax.AssignmentExpression:
    -	                expr.type = syntax_1.Syntax.AssignmentPattern;
    -	                this.reinterpretExpressionAsPattern(expr.left);
    -	                break;
    -	            default:
    -	                // Allow other node type for tolerant parsing.
    -	                break;
    -	        }
    -	    };
    -	    Parser.prototype.parseGroupExpression = function () {
    -	        var expr;
    -	        this.expect('(');
    -	        if (this.match(')')) {
    -	            this.nextToken();
    -	            if (!this.match('=>')) {
    -	                this.expect('=>');
    -	            }
    -	            expr = {
    -	                type: ArrowParameterPlaceHolder,
    -	                params: []
    -	            };
    -	        }
    -	        else {
    -	            var startToken = this.lookahead;
    -	            var params = [];
    -	            if (this.match('...')) {
    -	                expr = this.parseRestElement(params);
    -	                this.expect(')');
    -	                if (!this.match('=>')) {
    -	                    this.expect('=>');
    -	                }
    -	                expr = {
    -	                    type: ArrowParameterPlaceHolder,
    -	                    params: [expr]
    -	                };
    -	            }
    -	            else {
    -	                var arrow = false;
    -	                this.context.isBindingElement = true;
    -	                expr = this.inheritCoverGrammar(this.parseAssignmentExpression);
    -	                if (this.match(',')) {
    -	                    var expressions = [];
    -	                    this.context.isAssignmentTarget = false;
    -	                    expressions.push(expr);
    -	                    while (this.startMarker.index < this.scanner.length) {
    -	                        if (!this.match(',')) {
    -	                            break;
    -	                        }
    -	                        this.nextToken();
    -	                        if (this.match('...')) {
    -	                            if (!this.context.isBindingElement) {
    -	                                this.throwUnexpectedToken(this.lookahead);
    -	                            }
    -	                            expressions.push(this.parseRestElement(params));
    -	                            this.expect(')');
    -	                            if (!this.match('=>')) {
    -	                                this.expect('=>');
    -	                            }
    -	                            this.context.isBindingElement = false;
    -	                            for (var i = 0; i < expressions.length; i++) {
    -	                                this.reinterpretExpressionAsPattern(expressions[i]);
    -	                            }
    -	                            arrow = true;
    -	                            expr = {
    -	                                type: ArrowParameterPlaceHolder,
    -	                                params: expressions
    -	                            };
    -	                        }
    -	                        else {
    -	                            expressions.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
    -	                        }
    -	                        if (arrow) {
    -	                            break;
    -	                        }
    -	                    }
    -	                    if (!arrow) {
    -	                        expr = this.finalize(this.startNode(startToken), new Node.SequenceExpression(expressions));
    -	                    }
    -	                }
    -	                if (!arrow) {
    -	                    this.expect(')');
    -	                    if (this.match('=>')) {
    -	                        if (expr.type === syntax_1.Syntax.Identifier && expr.name === 'yield') {
    -	                            arrow = true;
    -	                            expr = {
    -	                                type: ArrowParameterPlaceHolder,
    -	                                params: [expr]
    -	                            };
    -	                        }
    -	                        if (!arrow) {
    -	                            if (!this.context.isBindingElement) {
    -	                                this.throwUnexpectedToken(this.lookahead);
    -	                            }
    -	                            if (expr.type === syntax_1.Syntax.SequenceExpression) {
    -	                                for (var i = 0; i < expr.expressions.length; i++) {
    -	                                    this.reinterpretExpressionAsPattern(expr.expressions[i]);
    -	                                }
    -	                            }
    -	                            else {
    -	                                this.reinterpretExpressionAsPattern(expr);
    -	                            }
    -	                            var params_1 = (expr.type === syntax_1.Syntax.SequenceExpression ? expr.expressions : [expr]);
    -	                            expr = {
    -	                                type: ArrowParameterPlaceHolder,
    -	                                params: params_1
    -	                            };
    -	                        }
    -	                    }
    -	                    this.context.isBindingElement = false;
    -	                }
    -	            }
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 12.3 Left-Hand-Side Expressions
    -	    Parser.prototype.parseArguments = function () {
    -	        this.expect('(');
    -	        var args = [];
    -	        if (!this.match(')')) {
    -	            while (true) {
    -	                var expr = this.match('...') ? this.parseSpreadElement() :
    -	                    this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	                args.push(expr);
    -	                if (this.match(')')) {
    -	                    break;
    -	                }
    -	                this.expectCommaSeparator();
    -	            }
    -	        }
    -	        this.expect(')');
    -	        return args;
    -	    };
    -	    Parser.prototype.isIdentifierName = function (token) {
    -	        return token.type === token_1.Token.Identifier ||
    -	            token.type === token_1.Token.Keyword ||
    -	            token.type === token_1.Token.BooleanLiteral ||
    -	            token.type === token_1.Token.NullLiteral;
    -	    };
    -	    Parser.prototype.parseNonComputedProperty = function () {
    -	        var node = this.createNode();
    -	        var token = this.nextToken();
    -	        if (!this.isIdentifierName(token)) {
    -	            this.throwUnexpectedToken(token);
    -	        }
    -	        return this.finalize(node, new Node.Identifier(token.value));
    -	    };
    -	    Parser.prototype.parseNewExpression = function () {
    -	        var node = this.createNode();
    -	        var id = this.parseNonComputedProperty();
    -	        assert_1.assert(id.name === 'new', 'New expression must start with `new`');
    -	        var expr;
    -	        if (this.match('.')) {
    -	            this.nextToken();
    -	            if (this.lookahead.type === token_1.Token.Identifier && this.context.inFunctionBody && this.lookahead.value === 'target') {
    -	                var property = this.parseNonComputedProperty();
    -	                expr = new Node.MetaProperty(id, property);
    -	            }
    -	            else {
    -	                this.throwUnexpectedToken(this.lookahead);
    -	            }
    -	        }
    -	        else {
    -	            var callee = this.isolateCoverGrammar(this.parseLeftHandSideExpression);
    -	            var args = this.match('(') ? this.parseArguments() : [];
    -	            expr = new Node.NewExpression(callee, args);
    -	            this.context.isAssignmentTarget = false;
    -	            this.context.isBindingElement = false;
    -	        }
    -	        return this.finalize(node, expr);
    -	    };
    -	    Parser.prototype.parseLeftHandSideExpressionAllowCall = function () {
    -	        var startToken = this.lookahead;
    -	        var previousAllowIn = this.context.allowIn;
    -	        this.context.allowIn = true;
    -	        var expr;
    -	        if (this.matchKeyword('super') && this.context.inFunctionBody) {
    -	            expr = this.createNode();
    -	            this.nextToken();
    -	            expr = this.finalize(expr, new Node.Super());
    -	            if (!this.match('(') && !this.match('.') && !this.match('[')) {
    -	                this.throwUnexpectedToken(this.lookahead);
    -	            }
    -	        }
    -	        else {
    -	            expr = this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression);
    -	        }
    -	        while (true) {
    -	            if (this.match('.')) {
    -	                this.context.isBindingElement = false;
    -	                this.context.isAssignmentTarget = true;
    -	                this.expect('.');
    -	                var property = this.parseNonComputedProperty();
    -	                expr = this.finalize(this.startNode(startToken), new Node.StaticMemberExpression(expr, property));
    -	            }
    -	            else if (this.match('(')) {
    -	                this.context.isBindingElement = false;
    -	                this.context.isAssignmentTarget = false;
    -	                var args = this.parseArguments();
    -	                expr = this.finalize(this.startNode(startToken), new Node.CallExpression(expr, args));
    -	            }
    -	            else if (this.match('[')) {
    -	                this.context.isBindingElement = false;
    -	                this.context.isAssignmentTarget = true;
    -	                this.expect('[');
    -	                var property = this.isolateCoverGrammar(this.parseExpression);
    -	                this.expect(']');
    -	                expr = this.finalize(this.startNode(startToken), new Node.ComputedMemberExpression(expr, property));
    -	            }
    -	            else if (this.lookahead.type === token_1.Token.Template && this.lookahead.head) {
    -	                var quasi = this.parseTemplateLiteral();
    -	                expr = this.finalize(this.startNode(startToken), new Node.TaggedTemplateExpression(expr, quasi));
    -	            }
    -	            else {
    -	                break;
    -	            }
    -	        }
    -	        this.context.allowIn = previousAllowIn;
    -	        return expr;
    -	    };
    -	    Parser.prototype.parseSuper = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('super');
    -	        if (!this.match('[') && !this.match('.')) {
    -	            this.throwUnexpectedToken(this.lookahead);
    -	        }
    -	        return this.finalize(node, new Node.Super());
    -	    };
    -	    Parser.prototype.parseLeftHandSideExpression = function () {
    -	        assert_1.assert(this.context.allowIn, 'callee of new expression always allow in keyword.');
    -	        var node = this.startNode(this.lookahead);
    -	        var expr = (this.matchKeyword('super') && this.context.inFunctionBody) ? this.parseSuper() :
    -	            this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression);
    -	        while (true) {
    -	            if (this.match('[')) {
    -	                this.context.isBindingElement = false;
    -	                this.context.isAssignmentTarget = true;
    -	                this.expect('[');
    -	                var property = this.isolateCoverGrammar(this.parseExpression);
    -	                this.expect(']');
    -	                expr = this.finalize(node, new Node.ComputedMemberExpression(expr, property));
    -	            }
    -	            else if (this.match('.')) {
    -	                this.context.isBindingElement = false;
    -	                this.context.isAssignmentTarget = true;
    -	                this.expect('.');
    -	                var property = this.parseNonComputedProperty();
    -	                expr = this.finalize(node, new Node.StaticMemberExpression(expr, property));
    -	            }
    -	            else if (this.lookahead.type === token_1.Token.Template && this.lookahead.head) {
    -	                var quasi = this.parseTemplateLiteral();
    -	                expr = this.finalize(node, new Node.TaggedTemplateExpression(expr, quasi));
    -	            }
    -	            else {
    -	                break;
    -	            }
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 12.4 Update Expressions
    -	    Parser.prototype.parseUpdateExpression = function () {
    -	        var expr;
    -	        var startToken = this.lookahead;
    -	        if (this.match('++') || this.match('--')) {
    -	            var node = this.startNode(startToken);
    -	            var token = this.nextToken();
    -	            expr = this.inheritCoverGrammar(this.parseUnaryExpression);
    -	            if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
    -	                this.tolerateError(messages_1.Messages.StrictLHSPrefix);
    -	            }
    -	            if (!this.context.isAssignmentTarget) {
    -	                this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
    -	            }
    -	            var prefix = true;
    -	            expr = this.finalize(node, new Node.UpdateExpression(token.value, expr, prefix));
    -	            this.context.isAssignmentTarget = false;
    -	            this.context.isBindingElement = false;
    -	        }
    -	        else {
    -	            expr = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
    -	            if (!this.hasLineTerminator && this.lookahead.type === token_1.Token.Punctuator) {
    -	                if (this.match('++') || this.match('--')) {
    -	                    if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
    -	                        this.tolerateError(messages_1.Messages.StrictLHSPostfix);
    -	                    }
    -	                    if (!this.context.isAssignmentTarget) {
    -	                        this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
    -	                    }
    -	                    this.context.isAssignmentTarget = false;
    -	                    this.context.isBindingElement = false;
    -	                    var operator = this.nextToken().value;
    -	                    var prefix = false;
    -	                    expr = this.finalize(this.startNode(startToken), new Node.UpdateExpression(operator, expr, prefix));
    -	                }
    -	            }
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 12.5 Unary Operators
    -	    Parser.prototype.parseUnaryExpression = function () {
    -	        var expr;
    -	        if (this.match('+') || this.match('-') || this.match('~') || this.match('!')) {
    -	            var node = this.startNode(this.lookahead);
    -	            var token = this.nextToken();
    -	            expr = this.inheritCoverGrammar(this.parseUnaryExpression);
    -	            expr = this.finalize(node, new Node.UnaryExpression(token.value, expr));
    -	            this.context.isAssignmentTarget = false;
    -	            this.context.isBindingElement = false;
    -	        }
    -	        else if (this.matchKeyword('delete') || this.matchKeyword('void') || this.matchKeyword('typeof')) {
    -	            var node = this.startNode(this.lookahead);
    -	            var token = this.nextToken();
    -	            expr = this.inheritCoverGrammar(this.parseUnaryExpression);
    -	            expr = this.finalize(node, new Node.UnaryExpression(token.value, expr));
    -	            if (this.context.strict && expr.operator === 'delete' && expr.argument.type === syntax_1.Syntax.Identifier) {
    -	                this.tolerateError(messages_1.Messages.StrictDelete);
    -	            }
    -	            this.context.isAssignmentTarget = false;
    -	            this.context.isBindingElement = false;
    -	        }
    -	        else {
    -	            expr = this.parseUpdateExpression();
    -	        }
    -	        return expr;
    -	    };
    -	    Parser.prototype.parseExponentiationExpression = function () {
    -	        var startToken = this.lookahead;
    -	        var expr = this.inheritCoverGrammar(this.parseUnaryExpression);
    -	        if (expr.type !== syntax_1.Syntax.UnaryExpression && this.match('**')) {
    -	            this.nextToken();
    -	            this.context.isAssignmentTarget = false;
    -	            this.context.isBindingElement = false;
    -	            var left = expr;
    -	            var right = this.isolateCoverGrammar(this.parseExponentiationExpression);
    -	            expr = this.finalize(this.startNode(startToken), new Node.BinaryExpression('**', left, right));
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 12.6 Multiplicative Operators
    -	    // ECMA-262 12.7 Additive Operators
    -	    // ECMA-262 12.8 Bitwise Shift Operators
    -	    // ECMA-262 12.9 Relational Operators
    -	    // ECMA-262 12.10 Equality Operators
    -	    // ECMA-262 12.11 Binary Bitwise Operators
    -	    // ECMA-262 12.12 Binary Logical Operators
    -	    Parser.prototype.binaryPrecedence = function (token) {
    -	        var op = token.value;
    -	        var precedence;
    -	        if (token.type === token_1.Token.Punctuator) {
    -	            precedence = this.operatorPrecedence[op] || 0;
    -	        }
    -	        else if (token.type === token_1.Token.Keyword) {
    -	            precedence = (op === 'instanceof' || (this.context.allowIn && op === 'in')) ? 7 : 0;
    -	        }
    -	        else {
    -	            precedence = 0;
    -	        }
    -	        return precedence;
    -	    };
    -	    Parser.prototype.parseBinaryExpression = function () {
    -	        var startToken = this.lookahead;
    -	        var expr = this.inheritCoverGrammar(this.parseExponentiationExpression);
    -	        var token = this.lookahead;
    -	        var prec = this.binaryPrecedence(token);
    -	        if (prec > 0) {
    -	            this.nextToken();
    -	            token.prec = prec;
    -	            this.context.isAssignmentTarget = false;
    -	            this.context.isBindingElement = false;
    -	            var markers = [startToken, this.lookahead];
    -	            var left = expr;
    -	            var right = this.isolateCoverGrammar(this.parseExponentiationExpression);
    -	            var stack = [left, token, right];
    -	            while (true) {
    -	                prec = this.binaryPrecedence(this.lookahead);
    -	                if (prec <= 0) {
    -	                    break;
    -	                }
    -	                // Reduce: make a binary expression from the three topmost entries.
    -	                while ((stack.length > 2) && (prec <= stack[stack.length - 2].prec)) {
    -	                    right = stack.pop();
    -	                    var operator = stack.pop().value;
    -	                    left = stack.pop();
    -	                    markers.pop();
    -	                    var node = this.startNode(markers[markers.length - 1]);
    -	                    stack.push(this.finalize(node, new Node.BinaryExpression(operator, left, right)));
    -	                }
    -	                // Shift.
    -	                token = this.nextToken();
    -	                token.prec = prec;
    -	                stack.push(token);
    -	                markers.push(this.lookahead);
    -	                stack.push(this.isolateCoverGrammar(this.parseExponentiationExpression));
    -	            }
    -	            // Final reduce to clean-up the stack.
    -	            var i = stack.length - 1;
    -	            expr = stack[i];
    -	            markers.pop();
    -	            while (i > 1) {
    -	                var node = this.startNode(markers.pop());
    -	                expr = this.finalize(node, new Node.BinaryExpression(stack[i - 1].value, stack[i - 2], expr));
    -	                i -= 2;
    -	            }
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 12.13 Conditional Operator
    -	    Parser.prototype.parseConditionalExpression = function () {
    -	        var startToken = this.lookahead;
    -	        var expr = this.inheritCoverGrammar(this.parseBinaryExpression);
    -	        if (this.match('?')) {
    -	            this.nextToken();
    -	            var previousAllowIn = this.context.allowIn;
    -	            this.context.allowIn = true;
    -	            var consequent = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	            this.context.allowIn = previousAllowIn;
    -	            this.expect(':');
    -	            var alternate = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	            expr = this.finalize(this.startNode(startToken), new Node.ConditionalExpression(expr, consequent, alternate));
    -	            this.context.isAssignmentTarget = false;
    -	            this.context.isBindingElement = false;
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 12.14 Assignment Operators
    -	    Parser.prototype.checkPatternParam = function (options, param) {
    -	        switch (param.type) {
    -	            case syntax_1.Syntax.Identifier:
    -	                this.validateParam(options, param, param.name);
    -	                break;
    -	            case syntax_1.Syntax.RestElement:
    -	                this.checkPatternParam(options, param.argument);
    -	                break;
    -	            case syntax_1.Syntax.AssignmentPattern:
    -	                this.checkPatternParam(options, param.left);
    -	                break;
    -	            case syntax_1.Syntax.ArrayPattern:
    -	                for (var i = 0; i < param.elements.length; i++) {
    -	                    if (param.elements[i] !== null) {
    -	                        this.checkPatternParam(options, param.elements[i]);
    -	                    }
    -	                }
    -	                break;
    -	            case syntax_1.Syntax.YieldExpression:
    -	                break;
    -	            default:
    -	                assert_1.assert(param.type === syntax_1.Syntax.ObjectPattern, 'Invalid type');
    -	                for (var i = 0; i < param.properties.length; i++) {
    -	                    this.checkPatternParam(options, param.properties[i].value);
    -	                }
    -	                break;
    -	        }
    -	    };
    -	    Parser.prototype.reinterpretAsCoverFormalsList = function (expr) {
    -	        var params = [expr];
    -	        var options;
    -	        switch (expr.type) {
    -	            case syntax_1.Syntax.Identifier:
    -	                break;
    -	            case ArrowParameterPlaceHolder:
    -	                params = expr.params;
    -	                break;
    -	            default:
    -	                return null;
    -	        }
    -	        options = {
    -	            paramSet: {}
    -	        };
    -	        for (var i = 0; i < params.length; ++i) {
    -	            var param = params[i];
    -	            if (param.type === syntax_1.Syntax.AssignmentPattern) {
    -	                if (param.right.type === syntax_1.Syntax.YieldExpression) {
    -	                    if (param.right.argument) {
    -	                        this.throwUnexpectedToken(this.lookahead);
    -	                    }
    -	                    param.right.type = syntax_1.Syntax.Identifier;
    -	                    param.right.name = 'yield';
    -	                    delete param.right.argument;
    -	                    delete param.right.delegate;
    -	                }
    -	            }
    -	            this.checkPatternParam(options, param);
    -	            params[i] = param;
    -	        }
    -	        if (this.context.strict || !this.context.allowYield) {
    -	            for (var i = 0; i < params.length; ++i) {
    -	                var param = params[i];
    -	                if (param.type === syntax_1.Syntax.YieldExpression) {
    -	                    this.throwUnexpectedToken(this.lookahead);
    -	                }
    -	            }
    -	        }
    -	        if (options.message === messages_1.Messages.StrictParamDupe) {
    -	            var token = this.context.strict ? options.stricted : options.firstRestricted;
    -	            this.throwUnexpectedToken(token, options.message);
    -	        }
    -	        return {
    -	            params: params,
    -	            stricted: options.stricted,
    -	            firstRestricted: options.firstRestricted,
    -	            message: options.message
    -	        };
    -	    };
    -	    Parser.prototype.parseAssignmentExpression = function () {
    -	        var expr;
    -	        if (!this.context.allowYield && this.matchKeyword('yield')) {
    -	            expr = this.parseYieldExpression();
    -	        }
    -	        else {
    -	            var startToken = this.lookahead;
    -	            var token = startToken;
    -	            expr = this.parseConditionalExpression();
    -	            if (expr.type === ArrowParameterPlaceHolder || this.match('=>')) {
    -	                // ECMA-262 14.2 Arrow Function Definitions
    -	                this.context.isAssignmentTarget = false;
    -	                this.context.isBindingElement = false;
    -	                var list = this.reinterpretAsCoverFormalsList(expr);
    -	                if (list) {
    -	                    if (this.hasLineTerminator) {
    -	                        this.tolerateUnexpectedToken(this.lookahead);
    -	                    }
    -	                    this.context.firstCoverInitializedNameError = null;
    -	                    var previousStrict = this.context.strict;
    -	                    var previousAllowYield = this.context.allowYield;
    -	                    this.context.allowYield = true;
    -	                    var node = this.startNode(startToken);
    -	                    this.expect('=>');
    -	                    var body = this.match('{') ? this.parseFunctionSourceElements() :
    -	                        this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	                    var expression = body.type !== syntax_1.Syntax.BlockStatement;
    -	                    if (this.context.strict && list.firstRestricted) {
    -	                        this.throwUnexpectedToken(list.firstRestricted, list.message);
    -	                    }
    -	                    if (this.context.strict && list.stricted) {
    -	                        this.tolerateUnexpectedToken(list.stricted, list.message);
    -	                    }
    -	                    expr = this.finalize(node, new Node.ArrowFunctionExpression(list.params, body, expression));
    -	                    this.context.strict = previousStrict;
    -	                    this.context.allowYield = previousAllowYield;
    -	                }
    -	            }
    -	            else {
    -	                if (this.matchAssign()) {
    -	                    if (!this.context.isAssignmentTarget) {
    -	                        this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
    -	                    }
    -	                    if (this.context.strict && expr.type === syntax_1.Syntax.Identifier) {
    -	                        var id = (expr);
    -	                        if (this.scanner.isRestrictedWord(id.name)) {
    -	                            this.tolerateUnexpectedToken(token, messages_1.Messages.StrictLHSAssignment);
    -	                        }
    -	                        if (this.scanner.isStrictModeReservedWord(id.name)) {
    -	                            this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
    -	                        }
    -	                    }
    -	                    if (!this.match('=')) {
    -	                        this.context.isAssignmentTarget = false;
    -	                        this.context.isBindingElement = false;
    -	                    }
    -	                    else {
    -	                        this.reinterpretExpressionAsPattern(expr);
    -	                    }
    -	                    token = this.nextToken();
    -	                    var right = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	                    expr = this.finalize(this.startNode(startToken), new Node.AssignmentExpression(token.value, expr, right));
    -	                    this.context.firstCoverInitializedNameError = null;
    -	                }
    -	            }
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 12.15 Comma Operator
    -	    Parser.prototype.parseExpression = function () {
    -	        var startToken = this.lookahead;
    -	        var expr = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	        if (this.match(',')) {
    -	            var expressions = [];
    -	            expressions.push(expr);
    -	            while (this.startMarker.index < this.scanner.length) {
    -	                if (!this.match(',')) {
    -	                    break;
    -	                }
    -	                this.nextToken();
    -	                expressions.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
    -	            }
    -	            expr = this.finalize(this.startNode(startToken), new Node.SequenceExpression(expressions));
    -	        }
    -	        return expr;
    -	    };
    -	    // ECMA-262 13.2 Block
    -	    Parser.prototype.parseStatementListItem = function () {
    -	        var statement = null;
    -	        if (this.lookahead.type === token_1.Token.Keyword) {
    -	            switch (this.lookahead.value) {
    -	                case 'export':
    -	                    if (this.sourceType !== 'module') {
    -	                        this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalExportDeclaration);
    -	                    }
    -	                    statement = this.parseExportDeclaration();
    -	                    break;
    -	                case 'import':
    -	                    if (this.sourceType !== 'module') {
    -	                        this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalImportDeclaration);
    -	                    }
    -	                    statement = this.parseImportDeclaration();
    -	                    break;
    -	                case 'const':
    -	                    statement = this.parseLexicalDeclaration({ inFor: false });
    -	                    break;
    -	                case 'function':
    -	                    statement = this.parseFunctionDeclaration();
    -	                    break;
    -	                case 'class':
    -	                    statement = this.parseClassDeclaration();
    -	                    break;
    -	                case 'let':
    -	                    statement = this.isLexicalDeclaration() ? this.parseLexicalDeclaration({ inFor: false }) : this.parseStatement();
    -	                    break;
    -	                default:
    -	                    statement = this.parseStatement();
    -	                    break;
    -	            }
    -	        }
    -	        else {
    -	            statement = this.parseStatement();
    -	        }
    -	        return statement;
    -	    };
    -	    Parser.prototype.parseBlock = function () {
    -	        var node = this.createNode();
    -	        this.expect('{');
    -	        var block = [];
    -	        while (true) {
    -	            if (this.match('}')) {
    -	                break;
    -	            }
    -	            block.push(this.parseStatementListItem());
    -	        }
    -	        this.expect('}');
    -	        return this.finalize(node, new Node.BlockStatement(block));
    -	    };
    -	    // ECMA-262 13.3.1 Let and Const Declarations
    -	    Parser.prototype.parseLexicalBinding = function (kind, options) {
    -	        var node = this.createNode();
    -	        var params = [];
    -	        var id = this.parsePattern(params, kind);
    -	        // ECMA-262 12.2.1
    -	        if (this.context.strict && id.type === syntax_1.Syntax.Identifier) {
    -	            if (this.scanner.isRestrictedWord((id).name)) {
    -	                this.tolerateError(messages_1.Messages.StrictVarName);
    -	            }
    -	        }
    -	        var init = null;
    -	        if (kind === 'const') {
    -	            if (!this.matchKeyword('in') && !this.matchContextualKeyword('of')) {
    -	                this.expect('=');
    -	                init = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	            }
    -	        }
    -	        else if ((!options.inFor && id.type !== syntax_1.Syntax.Identifier) || this.match('=')) {
    -	            this.expect('=');
    -	            init = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	        }
    -	        return this.finalize(node, new Node.VariableDeclarator(id, init));
    -	    };
    -	    Parser.prototype.parseBindingList = function (kind, options) {
    -	        var list = [this.parseLexicalBinding(kind, options)];
    -	        while (this.match(',')) {
    -	            this.nextToken();
    -	            list.push(this.parseLexicalBinding(kind, options));
    -	        }
    -	        return list;
    -	    };
    -	    Parser.prototype.isLexicalDeclaration = function () {
    -	        var previousIndex = this.scanner.index;
    -	        var previousLineNumber = this.scanner.lineNumber;
    -	        var previousLineStart = this.scanner.lineStart;
    -	        this.collectComments();
    -	        var next = this.scanner.lex();
    -	        this.scanner.index = previousIndex;
    -	        this.scanner.lineNumber = previousLineNumber;
    -	        this.scanner.lineStart = previousLineStart;
    -	        return (next.type === token_1.Token.Identifier) ||
    -	            (next.type === token_1.Token.Punctuator && next.value === '[') ||
    -	            (next.type === token_1.Token.Punctuator && next.value === '{') ||
    -	            (next.type === token_1.Token.Keyword && next.value === 'let') ||
    -	            (next.type === token_1.Token.Keyword && next.value === 'yield');
    -	    };
    -	    Parser.prototype.parseLexicalDeclaration = function (options) {
    -	        var node = this.createNode();
    -	        var kind = this.nextToken().value;
    -	        assert_1.assert(kind === 'let' || kind === 'const', 'Lexical declaration must be either let or const');
    -	        var declarations = this.parseBindingList(kind, options);
    -	        this.consumeSemicolon();
    -	        return this.finalize(node, new Node.VariableDeclaration(declarations, kind));
    -	    };
    -	    // ECMA-262 13.3.3 Destructuring Binding Patterns
    -	    Parser.prototype.parseBindingRestElement = function (params, kind) {
    -	        var node = this.createNode();
    -	        this.expect('...');
    -	        params.push(this.lookahead);
    -	        var arg = this.parseVariableIdentifier(kind);
    -	        return this.finalize(node, new Node.RestElement(arg));
    -	    };
    -	    Parser.prototype.parseArrayPattern = function (params, kind) {
    -	        var node = this.createNode();
    -	        this.expect('[');
    -	        var elements = [];
    -	        while (!this.match(']')) {
    -	            if (this.match(',')) {
    -	                this.nextToken();
    -	                elements.push(null);
    -	            }
    -	            else {
    -	                if (this.match('...')) {
    -	                    elements.push(this.parseBindingRestElement(params, kind));
    -	                    break;
    -	                }
    -	                else {
    -	                    elements.push(this.parsePatternWithDefault(params, kind));
    -	                }
    -	                if (!this.match(']')) {
    -	                    this.expect(',');
    -	                }
    -	            }
    -	        }
    -	        this.expect(']');
    -	        return this.finalize(node, new Node.ArrayPattern(elements));
    -	    };
    -	    Parser.prototype.parsePropertyPattern = function (params, kind) {
    -	        var node = this.createNode();
    -	        var computed = false;
    -	        var shorthand = false;
    -	        var method = false;
    -	        var key;
    -	        var value;
    -	        if (this.lookahead.type === token_1.Token.Identifier) {
    -	            var keyToken = this.lookahead;
    -	            key = this.parseVariableIdentifier();
    -	            var init = this.finalize(node, new Node.Identifier(keyToken.value));
    -	            if (this.match('=')) {
    -	                params.push(keyToken);
    -	                shorthand = true;
    -	                this.nextToken();
    -	                var expr = this.parseAssignmentExpression();
    -	                value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init, expr));
    -	            }
    -	            else if (!this.match(':')) {
    -	                params.push(keyToken);
    -	                shorthand = true;
    -	                value = init;
    -	            }
    -	            else {
    -	                this.expect(':');
    -	                value = this.parsePatternWithDefault(params, kind);
    -	            }
    -	        }
    -	        else {
    -	            computed = this.match('[');
    -	            key = this.parseObjectPropertyKey();
    -	            this.expect(':');
    -	            value = this.parsePatternWithDefault(params, kind);
    -	        }
    -	        return this.finalize(node, new Node.Property('init', key, computed, value, method, shorthand));
    -	    };
    -	    Parser.prototype.parseObjectPattern = function (params, kind) {
    -	        var node = this.createNode();
    -	        var properties = [];
    -	        this.expect('{');
    -	        while (!this.match('}')) {
    -	            properties.push(this.parsePropertyPattern(params, kind));
    -	            if (!this.match('}')) {
    -	                this.expect(',');
    -	            }
    -	        }
    -	        this.expect('}');
    -	        return this.finalize(node, new Node.ObjectPattern(properties));
    -	    };
    -	    Parser.prototype.parsePattern = function (params, kind) {
    -	        var pattern;
    -	        if (this.match('[')) {
    -	            pattern = this.parseArrayPattern(params, kind);
    -	        }
    -	        else if (this.match('{')) {
    -	            pattern = this.parseObjectPattern(params, kind);
    -	        }
    -	        else {
    -	            if (this.matchKeyword('let') && (kind === 'const' || kind === 'let')) {
    -	                this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.UnexpectedToken);
    -	            }
    -	            params.push(this.lookahead);
    -	            pattern = this.parseVariableIdentifier(kind);
    -	        }
    -	        return pattern;
    -	    };
    -	    Parser.prototype.parsePatternWithDefault = function (params, kind) {
    -	        var startToken = this.lookahead;
    -	        var pattern = this.parsePattern(params, kind);
    -	        if (this.match('=')) {
    -	            this.nextToken();
    -	            var previousAllowYield = this.context.allowYield;
    -	            this.context.allowYield = true;
    -	            var right = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	            this.context.allowYield = previousAllowYield;
    -	            pattern = this.finalize(this.startNode(startToken), new Node.AssignmentPattern(pattern, right));
    -	        }
    -	        return pattern;
    -	    };
    -	    // ECMA-262 13.3.2 Variable Statement
    -	    Parser.prototype.parseVariableIdentifier = function (kind) {
    -	        var node = this.createNode();
    -	        var token = this.nextToken();
    -	        if (token.type === token_1.Token.Keyword && token.value === 'yield') {
    -	            if (this.context.strict) {
    -	                this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
    -	            }
    -	            if (!this.context.allowYield) {
    -	                this.throwUnexpectedToken(token);
    -	            }
    -	        }
    -	        else if (token.type !== token_1.Token.Identifier) {
    -	            if (this.context.strict && token.type === token_1.Token.Keyword && this.scanner.isStrictModeReservedWord(token.value)) {
    -	                this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
    -	            }
    -	            else {
    -	                if (this.context.strict || token.value !== 'let' || kind !== 'var') {
    -	                    this.throwUnexpectedToken(token);
    -	                }
    -	            }
    -	        }
    -	        else if (this.sourceType === 'module' && token.type === token_1.Token.Identifier && token.value === 'await') {
    -	            this.tolerateUnexpectedToken(token);
    -	        }
    -	        return this.finalize(node, new Node.Identifier(token.value));
    -	    };
    -	    Parser.prototype.parseVariableDeclaration = function (options) {
    -	        var node = this.createNode();
    -	        var params = [];
    -	        var id = this.parsePattern(params, 'var');
    -	        // ECMA-262 12.2.1
    -	        if (this.context.strict && id.type === syntax_1.Syntax.Identifier) {
    -	            if (this.scanner.isRestrictedWord((id).name)) {
    -	                this.tolerateError(messages_1.Messages.StrictVarName);
    -	            }
    -	        }
    -	        var init = null;
    -	        if (this.match('=')) {
    -	            this.nextToken();
    -	            init = this.isolateCoverGrammar(this.parseAssignmentExpression);
    -	        }
    -	        else if (id.type !== syntax_1.Syntax.Identifier && !options.inFor) {
    -	            this.expect('=');
    -	        }
    -	        return this.finalize(node, new Node.VariableDeclarator(id, init));
    -	    };
    -	    Parser.prototype.parseVariableDeclarationList = function (options) {
    -	        var opt = { inFor: options.inFor };
    -	        var list = [];
    -	        list.push(this.parseVariableDeclaration(opt));
    -	        while (this.match(',')) {
    -	            this.nextToken();
    -	            list.push(this.parseVariableDeclaration(opt));
    -	        }
    -	        return list;
    -	    };
    -	    Parser.prototype.parseVariableStatement = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('var');
    -	        var declarations = this.parseVariableDeclarationList({ inFor: false });
    -	        this.consumeSemicolon();
    -	        return this.finalize(node, new Node.VariableDeclaration(declarations, 'var'));
    -	    };
    -	    // ECMA-262 13.4 Empty Statement
    -	    Parser.prototype.parseEmptyStatement = function () {
    -	        var node = this.createNode();
    -	        this.expect(';');
    -	        return this.finalize(node, new Node.EmptyStatement());
    -	    };
    -	    // ECMA-262 13.5 Expression Statement
    -	    Parser.prototype.parseExpressionStatement = function () {
    -	        var node = this.createNode();
    -	        var expr = this.parseExpression();
    -	        this.consumeSemicolon();
    -	        return this.finalize(node, new Node.ExpressionStatement(expr));
    -	    };
    -	    // ECMA-262 13.6 If statement
    -	    Parser.prototype.parseIfStatement = function () {
    -	        var node = this.createNode();
    -	        var consequent;
    -	        var alternate = null;
    -	        this.expectKeyword('if');
    -	        this.expect('(');
    -	        var test = this.parseExpression();
    -	        if (!this.match(')') && this.config.tolerant) {
    -	            this.tolerateUnexpectedToken(this.nextToken());
    -	            consequent = this.finalize(this.createNode(), new Node.EmptyStatement());
    -	        }
    -	        else {
    -	            this.expect(')');
    -	            consequent = this.parseStatement();
    -	            if (this.matchKeyword('else')) {
    -	                this.nextToken();
    -	                alternate = this.parseStatement();
    -	            }
    -	        }
    -	        return this.finalize(node, new Node.IfStatement(test, consequent, alternate));
    -	    };
    -	    // ECMA-262 13.7.2 The do-while Statement
    -	    Parser.prototype.parseDoWhileStatement = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('do');
    -	        var previousInIteration = this.context.inIteration;
    -	        this.context.inIteration = true;
    -	        var body = this.parseStatement();
    -	        this.context.inIteration = previousInIteration;
    -	        this.expectKeyword('while');
    -	        this.expect('(');
    -	        var test = this.parseExpression();
    -	        this.expect(')');
    -	        if (this.match(';')) {
    -	            this.nextToken();
    -	        }
    -	        return this.finalize(node, new Node.DoWhileStatement(body, test));
    -	    };
    -	    // ECMA-262 13.7.3 The while Statement
    -	    Parser.prototype.parseWhileStatement = function () {
    -	        var node = this.createNode();
    -	        var body;
    -	        this.expectKeyword('while');
    -	        this.expect('(');
    -	        var test = this.parseExpression();
    -	        if (!this.match(')') && this.config.tolerant) {
    -	            this.tolerateUnexpectedToken(this.nextToken());
    -	            body = this.finalize(this.createNode(), new Node.EmptyStatement());
    -	        }
    -	        else {
    -	            this.expect(')');
    -	            var previousInIteration = this.context.inIteration;
    -	            this.context.inIteration = true;
    -	            body = this.parseStatement();
    -	            this.context.inIteration = previousInIteration;
    -	        }
    -	        return this.finalize(node, new Node.WhileStatement(test, body));
    -	    };
    -	    // ECMA-262 13.7.4 The for Statement
    -	    // ECMA-262 13.7.5 The for-in and for-of Statements
    -	    Parser.prototype.parseForStatement = function () {
    -	        var init = null;
    -	        var test = null;
    -	        var update = null;
    -	        var forIn = true;
    -	        var left, right;
    -	        var node = this.createNode();
    -	        this.expectKeyword('for');
    -	        this.expect('(');
    -	        if (this.match(';')) {
    -	            this.nextToken();
    -	        }
    -	        else {
    -	            if (this.matchKeyword('var')) {
    -	                init = this.createNode();
    -	                this.nextToken();
    -	                var previousAllowIn = this.context.allowIn;
    -	                this.context.allowIn = false;
    -	                var declarations = this.parseVariableDeclarationList({ inFor: true });
    -	                this.context.allowIn = previousAllowIn;
    -	                if (declarations.length === 1 && this.matchKeyword('in')) {
    -	                    init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var'));
    -	                    this.nextToken();
    -	                    left = init;
    -	                    right = this.parseExpression();
    -	                    init = null;
    -	                }
    -	                else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword('of')) {
    -	                    init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var'));
    -	                    this.nextToken();
    -	                    left = init;
    -	                    right = this.parseAssignmentExpression();
    -	                    init = null;
    -	                    forIn = false;
    -	                }
    -	                else {
    -	                    init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var'));
    -	                    this.expect(';');
    -	                }
    -	            }
    -	            else if (this.matchKeyword('const') || this.matchKeyword('let')) {
    -	                init = this.createNode();
    -	                var kind = this.nextToken().value;
    -	                if (!this.context.strict && this.lookahead.value === 'in') {
    -	                    init = this.finalize(init, new Node.Identifier(kind));
    -	                    this.nextToken();
    -	                    left = init;
    -	                    right = this.parseExpression();
    -	                    init = null;
    -	                }
    -	                else {
    -	                    var previousAllowIn = this.context.allowIn;
    -	                    this.context.allowIn = false;
    -	                    var declarations = this.parseBindingList(kind, { inFor: true });
    -	                    this.context.allowIn = previousAllowIn;
    -	                    if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword('in')) {
    -	                        init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
    -	                        this.nextToken();
    -	                        left = init;
    -	                        right = this.parseExpression();
    -	                        init = null;
    -	                    }
    -	                    else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword('of')) {
    -	                        init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
    -	                        this.nextToken();
    -	                        left = init;
    -	                        right = this.parseAssignmentExpression();
    -	                        init = null;
    -	                        forIn = false;
    -	                    }
    -	                    else {
    -	                        this.consumeSemicolon();
    -	                        init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
    -	                    }
    -	                }
    -	            }
    -	            else {
    -	                var initStartToken = this.lookahead;
    -	                var previousAllowIn = this.context.allowIn;
    -	                this.context.allowIn = false;
    -	                init = this.inheritCoverGrammar(this.parseAssignmentExpression);
    -	                this.context.allowIn = previousAllowIn;
    -	                if (this.matchKeyword('in')) {
    -	                    if (!this.context.isAssignmentTarget) {
    -	                        this.tolerateError(messages_1.Messages.InvalidLHSInForIn);
    -	                    }
    -	                    this.nextToken();
    -	                    this.reinterpretExpressionAsPattern(init);
    -	                    left = init;
    -	                    right = this.parseExpression();
    -	                    init = null;
    -	                }
    -	                else if (this.matchContextualKeyword('of')) {
    -	                    if (!this.context.isAssignmentTarget) {
    -	                        this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
    -	                    }
    -	                    this.nextToken();
    -	                    this.reinterpretExpressionAsPattern(init);
    -	                    left = init;
    -	                    right = this.parseAssignmentExpression();
    -	                    init = null;
    -	                    forIn = false;
    -	                }
    -	                else {
    -	                    if (this.match(',')) {
    -	                        var initSeq = [init];
    -	                        while (this.match(',')) {
    -	                            this.nextToken();
    -	                            initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
    -	                        }
    -	                        init = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq));
    -	                    }
    -	                    this.expect(';');
    -	                }
    -	            }
    -	        }
    -	        if (typeof left === 'undefined') {
    -	            if (!this.match(';')) {
    -	                test = this.parseExpression();
    -	            }
    -	            this.expect(';');
    -	            if (!this.match(')')) {
    -	                update = this.parseExpression();
    -	            }
    -	        }
    -	        var body;
    -	        if (!this.match(')') && this.config.tolerant) {
    -	            this.tolerateUnexpectedToken(this.nextToken());
    -	            body = this.finalize(this.createNode(), new Node.EmptyStatement());
    -	        }
    -	        else {
    -	            this.expect(')');
    -	            var previousInIteration = this.context.inIteration;
    -	            this.context.inIteration = true;
    -	            body = this.isolateCoverGrammar(this.parseStatement);
    -	            this.context.inIteration = previousInIteration;
    -	        }
    -	        return (typeof left === 'undefined') ?
    -	            this.finalize(node, new Node.ForStatement(init, test, update, body)) :
    -	            forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) :
    -	                this.finalize(node, new Node.ForOfStatement(left, right, body));
    -	    };
    -	    // ECMA-262 13.8 The continue statement
    -	    Parser.prototype.parseContinueStatement = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('continue');
    -	        var label = null;
    -	        if (this.lookahead.type === token_1.Token.Identifier && !this.hasLineTerminator) {
    -	            label = this.parseVariableIdentifier();
    -	            var key = '$' + label.name;
    -	            if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
    -	                this.throwError(messages_1.Messages.UnknownLabel, label.name);
    -	            }
    -	        }
    -	        this.consumeSemicolon();
    -	        if (label === null && !this.context.inIteration) {
    -	            this.throwError(messages_1.Messages.IllegalContinue);
    -	        }
    -	        return this.finalize(node, new Node.ContinueStatement(label));
    -	    };
    -	    // ECMA-262 13.9 The break statement
    -	    Parser.prototype.parseBreakStatement = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('break');
    -	        var label = null;
    -	        if (this.lookahead.type === token_1.Token.Identifier && !this.hasLineTerminator) {
    -	            label = this.parseVariableIdentifier();
    -	            var key = '$' + label.name;
    -	            if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
    -	                this.throwError(messages_1.Messages.UnknownLabel, label.name);
    -	            }
    -	        }
    -	        this.consumeSemicolon();
    -	        if (label === null && !this.context.inIteration && !this.context.inSwitch) {
    -	            this.throwError(messages_1.Messages.IllegalBreak);
    -	        }
    -	        return this.finalize(node, new Node.BreakStatement(label));
    -	    };
    -	    // ECMA-262 13.10 The return statement
    -	    Parser.prototype.parseReturnStatement = function () {
    -	        if (!this.context.inFunctionBody) {
    -	            this.tolerateError(messages_1.Messages.IllegalReturn);
    -	        }
    -	        var node = this.createNode();
    -	        this.expectKeyword('return');
    -	        var hasArgument = !this.match(';') && !this.match('}') &&
    -	            !this.hasLineTerminator && this.lookahead.type !== token_1.Token.EOF;
    -	        var argument = hasArgument ? this.parseExpression() : null;
    -	        this.consumeSemicolon();
    -	        return this.finalize(node, new Node.ReturnStatement(argument));
    -	    };
    -	    // ECMA-262 13.11 The with statement
    -	    Parser.prototype.parseWithStatement = function () {
    -	        if (this.context.strict) {
    -	            this.tolerateError(messages_1.Messages.StrictModeWith);
    -	        }
    -	        var node = this.createNode();
    -	        this.expectKeyword('with');
    -	        this.expect('(');
    -	        var object = this.parseExpression();
    -	        this.expect(')');
    -	        var body = this.parseStatement();
    -	        return this.finalize(node, new Node.WithStatement(object, body));
    -	    };
    -	    // ECMA-262 13.12 The switch statement
    -	    Parser.prototype.parseSwitchCase = function () {
    -	        var node = this.createNode();
    -	        var test;
    -	        if (this.matchKeyword('default')) {
    -	            this.nextToken();
    -	            test = null;
    -	        }
    -	        else {
    -	            this.expectKeyword('case');
    -	            test = this.parseExpression();
    -	        }
    -	        this.expect(':');
    -	        var consequent = [];
    -	        while (true) {
    -	            if (this.match('}') || this.matchKeyword('default') || this.matchKeyword('case')) {
    -	                break;
    -	            }
    -	            consequent.push(this.parseStatementListItem());
    -	        }
    -	        return this.finalize(node, new Node.SwitchCase(test, consequent));
    -	    };
    -	    Parser.prototype.parseSwitchStatement = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('switch');
    -	        this.expect('(');
    -	        var discriminant = this.parseExpression();
    -	        this.expect(')');
    -	        var previousInSwitch = this.context.inSwitch;
    -	        this.context.inSwitch = true;
    -	        var cases = [];
    -	        var defaultFound = false;
    -	        this.expect('{');
    -	        while (true) {
    -	            if (this.match('}')) {
    -	                break;
    -	            }
    -	            var clause = this.parseSwitchCase();
    -	            if (clause.test === null) {
    -	                if (defaultFound) {
    -	                    this.throwError(messages_1.Messages.MultipleDefaultsInSwitch);
    -	                }
    -	                defaultFound = true;
    -	            }
    -	            cases.push(clause);
    -	        }
    -	        this.expect('}');
    -	        this.context.inSwitch = previousInSwitch;
    -	        return this.finalize(node, new Node.SwitchStatement(discriminant, cases));
    -	    };
    -	    // ECMA-262 13.13 Labelled Statements
    -	    Parser.prototype.parseLabelledStatement = function () {
    -	        var node = this.createNode();
    -	        var expr = this.parseExpression();
    -	        var statement;
    -	        if ((expr.type === syntax_1.Syntax.Identifier) && this.match(':')) {
    -	            this.nextToken();
    -	            var id = (expr);
    -	            var key = '$' + id.name;
    -	            if (Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
    -	                this.throwError(messages_1.Messages.Redeclaration, 'Label', id.name);
    -	            }
    -	            this.context.labelSet[key] = true;
    -	            var labeledBody = this.parseStatement();
    -	            delete this.context.labelSet[key];
    -	            statement = new Node.LabeledStatement(id, labeledBody);
    -	        }
    -	        else {
    -	            this.consumeSemicolon();
    -	            statement = new Node.ExpressionStatement(expr);
    -	        }
    -	        return this.finalize(node, statement);
    -	    };
    -	    // ECMA-262 13.14 The throw statement
    -	    Parser.prototype.parseThrowStatement = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('throw');
    -	        if (this.hasLineTerminator) {
    -	            this.throwError(messages_1.Messages.NewlineAfterThrow);
    -	        }
    -	        var argument = this.parseExpression();
    -	        this.consumeSemicolon();
    -	        return this.finalize(node, new Node.ThrowStatement(argument));
    -	    };
    -	    // ECMA-262 13.15 The try statement
    -	    Parser.prototype.parseCatchClause = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('catch');
    -	        this.expect('(');
    -	        if (this.match(')')) {
    -	            this.throwUnexpectedToken(this.lookahead);
    -	        }
    -	        var params = [];
    -	        var param = this.parsePattern(params);
    -	        var paramMap = {};
    -	        for (var i = 0; i < params.length; i++) {
    -	            var key = '$' + params[i].value;
    -	            if (Object.prototype.hasOwnProperty.call(paramMap, key)) {
    -	                this.tolerateError(messages_1.Messages.DuplicateBinding, params[i].value);
    -	            }
    -	            paramMap[key] = true;
    -	        }
    -	        if (this.context.strict && param.type === syntax_1.Syntax.Identifier) {
    -	            if (this.scanner.isRestrictedWord((param).name)) {
    -	                this.tolerateError(messages_1.Messages.StrictCatchVariable);
    -	            }
    -	        }
    -	        this.expect(')');
    -	        var body = this.parseBlock();
    -	        return this.finalize(node, new Node.CatchClause(param, body));
    -	    };
    -	    Parser.prototype.parseFinallyClause = function () {
    -	        this.expectKeyword('finally');
    -	        return this.parseBlock();
    -	    };
    -	    Parser.prototype.parseTryStatement = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('try');
    -	        var block = this.parseBlock();
    -	        var handler = this.matchKeyword('catch') ? this.parseCatchClause() : null;
    -	        var finalizer = this.matchKeyword('finally') ? this.parseFinallyClause() : null;
    -	        if (!handler && !finalizer) {
    -	            this.throwError(messages_1.Messages.NoCatchOrFinally);
    -	        }
    -	        return this.finalize(node, new Node.TryStatement(block, handler, finalizer));
    -	    };
    -	    // ECMA-262 13.16 The debugger statement
    -	    Parser.prototype.parseDebuggerStatement = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('debugger');
    -	        this.consumeSemicolon();
    -	        return this.finalize(node, new Node.DebuggerStatement());
    -	    };
    -	    // ECMA-262 13 Statements
    -	    Parser.prototype.parseStatement = function () {
    -	        this.context.isAssignmentTarget = true;
    -	        this.context.isBindingElement = true;
    -	        var statement = null;
    -	        switch (this.lookahead.type) {
    -	            case token_1.Token.BooleanLiteral:
    -	            case token_1.Token.NullLiteral:
    -	            case token_1.Token.NumericLiteral:
    -	            case token_1.Token.StringLiteral:
    -	            case token_1.Token.Template:
    -	            case token_1.Token.RegularExpression:
    -	                statement = this.parseExpressionStatement();
    -	                break;
    -	            case token_1.Token.Punctuator:
    -	                var value = this.lookahead.value;
    -	                if (value === '{') {
    -	                    statement = this.parseBlock();
    -	                }
    -	                else if (value === '(') {
    -	                    statement = this.parseExpressionStatement();
    -	                }
    -	                else if (value === ';') {
    -	                    statement = this.parseEmptyStatement();
    -	                }
    -	                else {
    -	                    statement = this.parseExpressionStatement();
    -	                }
    -	                break;
    -	            case token_1.Token.Identifier:
    -	                statement = this.parseLabelledStatement();
    -	                break;
    -	            case token_1.Token.Keyword:
    -	                switch (this.lookahead.value) {
    -	                    case 'break':
    -	                        statement = this.parseBreakStatement();
    -	                        break;
    -	                    case 'continue':
    -	                        statement = this.parseContinueStatement();
    -	                        break;
    -	                    case 'debugger':
    -	                        statement = this.parseDebuggerStatement();
    -	                        break;
    -	                    case 'do':
    -	                        statement = this.parseDoWhileStatement();
    -	                        break;
    -	                    case 'for':
    -	                        statement = this.parseForStatement();
    -	                        break;
    -	                    case 'function':
    -	                        statement = this.parseFunctionDeclaration();
    -	                        break;
    -	                    case 'if':
    -	                        statement = this.parseIfStatement();
    -	                        break;
    -	                    case 'return':
    -	                        statement = this.parseReturnStatement();
    -	                        break;
    -	                    case 'switch':
    -	                        statement = this.parseSwitchStatement();
    -	                        break;
    -	                    case 'throw':
    -	                        statement = this.parseThrowStatement();
    -	                        break;
    -	                    case 'try':
    -	                        statement = this.parseTryStatement();
    -	                        break;
    -	                    case 'var':
    -	                        statement = this.parseVariableStatement();
    -	                        break;
    -	                    case 'while':
    -	                        statement = this.parseWhileStatement();
    -	                        break;
    -	                    case 'with':
    -	                        statement = this.parseWithStatement();
    -	                        break;
    -	                    default:
    -	                        statement = this.parseExpressionStatement();
    -	                        break;
    -	                }
    -	                break;
    -	            default:
    -	                this.throwUnexpectedToken(this.lookahead);
    -	        }
    -	        return statement;
    -	    };
    -	    // ECMA-262 14.1 Function Definition
    -	    Parser.prototype.parseFunctionSourceElements = function () {
    -	        var node = this.createNode();
    -	        this.expect('{');
    -	        var body = this.parseDirectivePrologues();
    -	        var previousLabelSet = this.context.labelSet;
    -	        var previousInIteration = this.context.inIteration;
    -	        var previousInSwitch = this.context.inSwitch;
    -	        var previousInFunctionBody = this.context.inFunctionBody;
    -	        this.context.labelSet = {};
    -	        this.context.inIteration = false;
    -	        this.context.inSwitch = false;
    -	        this.context.inFunctionBody = true;
    -	        while (this.startMarker.index < this.scanner.length) {
    -	            if (this.match('}')) {
    -	                break;
    -	            }
    -	            body.push(this.parseStatementListItem());
    -	        }
    -	        this.expect('}');
    -	        this.context.labelSet = previousLabelSet;
    -	        this.context.inIteration = previousInIteration;
    -	        this.context.inSwitch = previousInSwitch;
    -	        this.context.inFunctionBody = previousInFunctionBody;
    -	        return this.finalize(node, new Node.BlockStatement(body));
    -	    };
    -	    Parser.prototype.validateParam = function (options, param, name) {
    -	        var key = '$' + name;
    -	        if (this.context.strict) {
    -	            if (this.scanner.isRestrictedWord(name)) {
    -	                options.stricted = param;
    -	                options.message = messages_1.Messages.StrictParamName;
    -	            }
    -	            if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
    -	                options.stricted = param;
    -	                options.message = messages_1.Messages.StrictParamDupe;
    -	            }
    -	        }
    -	        else if (!options.firstRestricted) {
    -	            if (this.scanner.isRestrictedWord(name)) {
    -	                options.firstRestricted = param;
    -	                options.message = messages_1.Messages.StrictParamName;
    -	            }
    -	            else if (this.scanner.isStrictModeReservedWord(name)) {
    -	                options.firstRestricted = param;
    -	                options.message = messages_1.Messages.StrictReservedWord;
    -	            }
    -	            else if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
    -	                options.stricted = param;
    -	                options.message = messages_1.Messages.StrictParamDupe;
    -	            }
    -	        }
    -	        /* istanbul ignore next */
    -	        if (typeof Object.defineProperty === 'function') {
    -	            Object.defineProperty(options.paramSet, key, { value: true, enumerable: true, writable: true, configurable: true });
    -	        }
    -	        else {
    -	            options.paramSet[key] = true;
    -	        }
    -	    };
    -	    Parser.prototype.parseRestElement = function (params) {
    -	        var node = this.createNode();
    -	        this.nextToken();
    -	        if (this.match('{')) {
    -	            this.throwError(messages_1.Messages.ObjectPatternAsRestParameter);
    -	        }
    -	        params.push(this.lookahead);
    -	        var param = this.parseVariableIdentifier();
    -	        if (this.match('=')) {
    -	            this.throwError(messages_1.Messages.DefaultRestParameter);
    -	        }
    -	        if (!this.match(')')) {
    -	            this.throwError(messages_1.Messages.ParameterAfterRestParameter);
    -	        }
    -	        return this.finalize(node, new Node.RestElement(param));
    -	    };
    -	    Parser.prototype.parseFormalParameter = function (options) {
    -	        var param;
    -	        var params = [];
    -	        var token = this.lookahead;
    -	        if (token.value === '...') {
    -	            param = this.parseRestElement(params);
    -	            this.validateParam(options, param.argument, param.argument.name);
    -	            options.params.push(param);
    -	            return false;
    -	        }
    -	        param = this.parsePatternWithDefault(params);
    -	        for (var i = 0; i < params.length; i++) {
    -	            this.validateParam(options, params[i], params[i].value);
    -	        }
    -	        options.params.push(param);
    -	        return !this.match(')');
    -	    };
    -	    Parser.prototype.parseFormalParameters = function (firstRestricted) {
    -	        var options;
    -	        options = {
    -	            params: [],
    -	            firstRestricted: firstRestricted
    -	        };
    -	        this.expect('(');
    -	        if (!this.match(')')) {
    -	            options.paramSet = {};
    -	            while (this.startMarker.index < this.scanner.length) {
    -	                if (!this.parseFormalParameter(options)) {
    -	                    break;
    -	                }
    -	                this.expect(',');
    -	            }
    -	        }
    -	        this.expect(')');
    -	        return {
    -	            params: options.params,
    -	            stricted: options.stricted,
    -	            firstRestricted: options.firstRestricted,
    -	            message: options.message
    -	        };
    -	    };
    -	    Parser.prototype.parseFunctionDeclaration = function (identifierIsOptional) {
    -	        var node = this.createNode();
    -	        this.expectKeyword('function');
    -	        var isGenerator = this.match('*');
    -	        if (isGenerator) {
    -	            this.nextToken();
    -	        }
    -	        var message;
    -	        var id = null;
    -	        var firstRestricted = null;
    -	        if (!identifierIsOptional || !this.match('(')) {
    -	            var token = this.lookahead;
    -	            id = this.parseVariableIdentifier();
    -	            if (this.context.strict) {
    -	                if (this.scanner.isRestrictedWord(token.value)) {
    -	                    this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName);
    -	                }
    -	            }
    -	            else {
    -	                if (this.scanner.isRestrictedWord(token.value)) {
    -	                    firstRestricted = token;
    -	                    message = messages_1.Messages.StrictFunctionName;
    -	                }
    -	                else if (this.scanner.isStrictModeReservedWord(token.value)) {
    -	                    firstRestricted = token;
    -	                    message = messages_1.Messages.StrictReservedWord;
    -	                }
    -	            }
    -	        }
    -	        var previousAllowYield = this.context.allowYield;
    -	        this.context.allowYield = !isGenerator;
    -	        var formalParameters = this.parseFormalParameters(firstRestricted);
    -	        var params = formalParameters.params;
    -	        var stricted = formalParameters.stricted;
    -	        firstRestricted = formalParameters.firstRestricted;
    -	        if (formalParameters.message) {
    -	            message = formalParameters.message;
    -	        }
    -	        var previousStrict = this.context.strict;
    -	        var body = this.parseFunctionSourceElements();
    -	        if (this.context.strict && firstRestricted) {
    -	            this.throwUnexpectedToken(firstRestricted, message);
    -	        }
    -	        if (this.context.strict && stricted) {
    -	            this.tolerateUnexpectedToken(stricted, message);
    -	        }
    -	        this.context.strict = previousStrict;
    -	        this.context.allowYield = previousAllowYield;
    -	        return this.finalize(node, new Node.FunctionDeclaration(id, params, body, isGenerator));
    -	    };
    -	    Parser.prototype.parseFunctionExpression = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('function');
    -	        var isGenerator = this.match('*');
    -	        if (isGenerator) {
    -	            this.nextToken();
    -	        }
    -	        var message;
    -	        var id = null;
    -	        var firstRestricted;
    -	        var previousAllowYield = this.context.allowYield;
    -	        this.context.allowYield = !isGenerator;
    -	        if (!this.match('(')) {
    -	            var token = this.lookahead;
    -	            id = (!this.context.strict && !isGenerator && this.matchKeyword('yield')) ? this.parseNonComputedProperty() : this.parseVariableIdentifier();
    -	            if (this.context.strict) {
    -	                if (this.scanner.isRestrictedWord(token.value)) {
    -	                    this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName);
    -	                }
    -	            }
    -	            else {
    -	                if (this.scanner.isRestrictedWord(token.value)) {
    -	                    firstRestricted = token;
    -	                    message = messages_1.Messages.StrictFunctionName;
    -	                }
    -	                else if (this.scanner.isStrictModeReservedWord(token.value)) {
    -	                    firstRestricted = token;
    -	                    message = messages_1.Messages.StrictReservedWord;
    -	                }
    -	            }
    -	        }
    -	        var formalParameters = this.parseFormalParameters(firstRestricted);
    -	        var params = formalParameters.params;
    -	        var stricted = formalParameters.stricted;
    -	        firstRestricted = formalParameters.firstRestricted;
    -	        if (formalParameters.message) {
    -	            message = formalParameters.message;
    -	        }
    -	        var previousStrict = this.context.strict;
    -	        var body = this.parseFunctionSourceElements();
    -	        if (this.context.strict && firstRestricted) {
    -	            this.throwUnexpectedToken(firstRestricted, message);
    -	        }
    -	        if (this.context.strict && stricted) {
    -	            this.tolerateUnexpectedToken(stricted, message);
    -	        }
    -	        this.context.strict = previousStrict;
    -	        this.context.allowYield = previousAllowYield;
    -	        return this.finalize(node, new Node.FunctionExpression(id, params, body, isGenerator));
    -	    };
    -	    // ECMA-262 14.1.1 Directive Prologues
    -	    Parser.prototype.parseDirective = function () {
    -	        var token = this.lookahead;
    -	        var directive = null;
    -	        var node = this.createNode();
    -	        var expr = this.parseExpression();
    -	        if (expr.type === syntax_1.Syntax.Literal) {
    -	            directive = this.getTokenRaw(token).slice(1, -1);
    -	        }
    -	        this.consumeSemicolon();
    -	        return this.finalize(node, directive ? new Node.Directive(expr, directive) :
    -	            new Node.ExpressionStatement(expr));
    -	    };
    -	    Parser.prototype.parseDirectivePrologues = function () {
    -	        var firstRestricted = null;
    -	        var body = [];
    -	        while (true) {
    -	            var token = this.lookahead;
    -	            if (token.type !== token_1.Token.StringLiteral) {
    -	                break;
    -	            }
    -	            var statement = this.parseDirective();
    -	            body.push(statement);
    -	            var directive = statement.directive;
    -	            if (typeof directive !== 'string') {
    -	                break;
    -	            }
    -	            if (directive === 'use strict') {
    -	                this.context.strict = true;
    -	                if (firstRestricted) {
    -	                    this.tolerateUnexpectedToken(firstRestricted, messages_1.Messages.StrictOctalLiteral);
    -	                }
    -	            }
    -	            else {
    -	                if (!firstRestricted && token.octal) {
    -	                    firstRestricted = token;
    -	                }
    -	            }
    -	        }
    -	        return body;
    -	    };
    -	    // ECMA-262 14.3 Method Definitions
    -	    Parser.prototype.qualifiedPropertyName = function (token) {
    -	        switch (token.type) {
    -	            case token_1.Token.Identifier:
    -	            case token_1.Token.StringLiteral:
    -	            case token_1.Token.BooleanLiteral:
    -	            case token_1.Token.NullLiteral:
    -	            case token_1.Token.NumericLiteral:
    -	            case token_1.Token.Keyword:
    -	                return true;
    -	            case token_1.Token.Punctuator:
    -	                return token.value === '[';
    -	        }
    -	        return false;
    -	    };
    -	    Parser.prototype.parseGetterMethod = function () {
    -	        var node = this.createNode();
    -	        this.expect('(');
    -	        this.expect(')');
    -	        var isGenerator = false;
    -	        var params = {
    -	            params: [],
    -	            stricted: null,
    -	            firstRestricted: null,
    -	            message: null
    -	        };
    -	        var previousAllowYield = this.context.allowYield;
    -	        this.context.allowYield = false;
    -	        var method = this.parsePropertyMethod(params);
    -	        this.context.allowYield = previousAllowYield;
    -	        return this.finalize(node, new Node.FunctionExpression(null, params.params, method, isGenerator));
    -	    };
    -	    Parser.prototype.parseSetterMethod = function () {
    -	        var node = this.createNode();
    -	        var options = {
    -	            params: [],
    -	            firstRestricted: null,
    -	            paramSet: {}
    -	        };
    -	        var isGenerator = false;
    -	        var previousAllowYield = this.context.allowYield;
    -	        this.context.allowYield = false;
    -	        this.expect('(');
    -	        if (this.match(')')) {
    -	            this.tolerateUnexpectedToken(this.lookahead);
    -	        }
    -	        else {
    -	            this.parseFormalParameter(options);
    -	        }
    -	        this.expect(')');
    -	        var method = this.parsePropertyMethod(options);
    -	        this.context.allowYield = previousAllowYield;
    -	        return this.finalize(node, new Node.FunctionExpression(null, options.params, method, isGenerator));
    -	    };
    -	    Parser.prototype.parseGeneratorMethod = function () {
    -	        var node = this.createNode();
    -	        var isGenerator = true;
    -	        var previousAllowYield = this.context.allowYield;
    -	        this.context.allowYield = true;
    -	        var params = this.parseFormalParameters();
    -	        this.context.allowYield = false;
    -	        var method = this.parsePropertyMethod(params);
    -	        this.context.allowYield = previousAllowYield;
    -	        return this.finalize(node, new Node.FunctionExpression(null, params.params, method, isGenerator));
    -	    };
    -	    // ECMA-262 14.4 Yield expression
    -	    Parser.prototype.parseYieldExpression = function () {
    -	        var node = this.createNode();
    -	        this.expectKeyword('yield');
    -	        var argument = null;
    -	        var delegate = false;
    -	        if (!this.hasLineTerminator) {
    -	            var previousAllowYield = this.context.allowYield;
    -	            this.context.allowYield = false;
    -	            delegate = this.match('*');
    -	            if (delegate) {
    -	                this.nextToken();
    -	                argument = this.parseAssignmentExpression();
    -	            }
    -	            else {
    -	                if (!this.match(';') && !this.match('}') && !this.match(')') && this.lookahead.type !== token_1.Token.EOF) {
    -	                    argument = this.parseAssignmentExpression();
    -	                }
    -	            }
    -	            this.context.allowYield = previousAllowYield;
    -	        }
    -	        return this.finalize(node, new Node.YieldExpression(argument, delegate));
    -	    };
    -	    // ECMA-262 14.5 Class Definitions
    -	    Parser.prototype.parseClassElement = function (hasConstructor) {
    -	        var token = this.lookahead;
    -	        var node = this.createNode();
    -	        var kind;
    -	        var key;
    -	        var value;
    -	        var computed = false;
    -	        var method = false;
    -	        var isStatic = false;
    -	        if (this.match('*')) {
    -	            this.nextToken();
    -	        }
    -	        else {
    -	            computed = this.match('[');
    -	            key = this.parseObjectPropertyKey();
    -	            var id = key;
    -	            if (id.name === 'static' && (this.qualifiedPropertyName(this.lookahead) || this.match('*'))) {
    -	                token = this.lookahead;
    -	                isStatic = true;
    -	                computed = this.match('[');
    -	                if (this.match('*')) {
    -	                    this.nextToken();
    -	                }
    -	                else {
    -	                    key = this.parseObjectPropertyKey();
    -	                }
    -	            }
    -	        }
    -	        var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead);
    -	        if (token.type === token_1.Token.Identifier) {
    -	            if (token.value === 'get' && lookaheadPropertyKey) {
    -	                kind = 'get';
    -	                computed = this.match('[');
    -	                key = this.parseObjectPropertyKey();
    -	                this.context.allowYield = false;
    -	                value = this.parseGetterMethod();
    -	            }
    -	            else if (token.value === 'set' && lookaheadPropertyKey) {
    -	                kind = 'set';
    -	                computed = this.match('[');
    -	                key = this.parseObjectPropertyKey();
    -	                value = this.parseSetterMethod();
    -	            }
    -	        }
    -	        else if (token.type === token_1.Token.Punctuator && token.value === '*' && lookaheadPropertyKey) {
    -	            kind = 'init';
    -	            computed = this.match('[');
    -	            key = this.parseObjectPropertyKey();
    -	            value = this.parseGeneratorMethod();
    -	            method = true;
    -	        }
    -	        if (!kind && key && this.match('(')) {
    -	            kind = 'init';
    -	            value = this.parsePropertyMethodFunction();
    -	            method = true;
    -	        }
    -	        if (!kind) {
    -	            this.throwUnexpectedToken(this.lookahead);
    -	        }
    -	        if (kind === 'init') {
    -	            kind = 'method';
    -	        }
    -	        if (!computed) {
    -	            if (isStatic && this.isPropertyKey(key, 'prototype')) {
    -	                this.throwUnexpectedToken(token, messages_1.Messages.StaticPrototype);
    -	            }
    -	            if (!isStatic && this.isPropertyKey(key, 'constructor')) {
    -	                if (kind !== 'method' || !method || value.generator) {
    -	                    this.throwUnexpectedToken(token, messages_1.Messages.ConstructorSpecialMethod);
    -	                }
    -	                if (hasConstructor.value) {
    -	                    this.throwUnexpectedToken(token, messages_1.Messages.DuplicateConstructor);
    -	                }
    -	                else {
    -	                    hasConstructor.value = true;
    -	                }
    -	                kind = 'constructor';
    -	            }
    -	        }
    -	        return this.finalize(node, new Node.MethodDefinition(key, computed, value, kind, isStatic));
    -	    };
    -	    Parser.prototype.parseClassElementList = function () {
    -	        var body = [];
    -	        var hasConstructor = { value: false };
    -	        this.expect('{');
    -	        while (!this.match('}')) {
    -	            if (this.match(';')) {
    -	                this.nextToken();
    -	            }
    -	            else {
    -	                body.push(this.parseClassElement(hasConstructor));
    -	            }
    -	        }
    -	        this.expect('}');
    -	        return body;
    -	    };
    -	    Parser.prototype.parseClassBody = function () {
    -	        var node = this.createNode();
    -	        var elementList = this.parseClassElementList();
    -	        return this.finalize(node, new Node.ClassBody(elementList));
    -	    };
    -	    Parser.prototype.parseClassDeclaration = function () {
    -	        var node = this.createNode();
    -	        var previousStrict = this.context.strict;
    -	        this.context.strict = true;
    -	        this.expectKeyword('class');
    -	        var id = this.parseVariableIdentifier();
    -	        var superClass = null;
    -	        if (this.matchKeyword('extends')) {
    -	            this.nextToken();
    -	            superClass = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
    -	        }
    -	        var classBody = this.parseClassBody();
    -	        this.context.strict = previousStrict;
    -	        return this.finalize(node, new Node.ClassDeclaration(id, superClass, classBody));
    -	    };
    -	    Parser.prototype.parseClassExpression = function () {
    -	        var node = this.createNode();
    -	        var previousStrict = this.context.strict;
    -	        this.context.strict = true;
    -	        this.expectKeyword('class');
    -	        var id = (this.lookahead.type === token_1.Token.Identifier) ? this.parseVariableIdentifier() : null;
    -	        var superClass = null;
    -	        if (this.matchKeyword('extends')) {
    -	            this.nextToken();
    -	            superClass = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
    -	        }
    -	        var classBody = this.parseClassBody();
    -	        this.context.strict = previousStrict;
    -	        return this.finalize(node, new Node.ClassExpression(id, superClass, classBody));
    -	    };
    -	    // ECMA-262 15.1 Scripts
    -	    // ECMA-262 15.2 Modules
    -	    Parser.prototype.parseProgram = function () {
    -	        var node = this.createNode();
    -	        var body = this.parseDirectivePrologues();
    -	        while (this.startMarker.index < this.scanner.length) {
    -	            body.push(this.parseStatementListItem());
    -	        }
    -	        return this.finalize(node, new Node.Program(body, this.sourceType));
    -	    };
    -	    // ECMA-262 15.2.2 Imports
    -	    Parser.prototype.parseModuleSpecifier = function () {
    -	        var node = this.createNode();
    -	        if (this.lookahead.type !== token_1.Token.StringLiteral) {
    -	            this.throwError(messages_1.Messages.InvalidModuleSpecifier);
    -	        }
    -	        var token = this.nextToken();
    -	        var raw = this.getTokenRaw(token);
    -	        return this.finalize(node, new Node.Literal(token.value, raw));
    -	    };
    -	    // import {} ...;
    -	    Parser.prototype.parseImportSpecifier = function () {
    -	        var node = this.createNode();
    -	        var local;
    -	        var imported = this.parseNonComputedProperty();
    -	        if (this.matchContextualKeyword('as')) {
    -	            this.nextToken();
    -	            local = this.parseVariableIdentifier();
    -	        }
    -	        else {
    -	            local = imported;
    -	        }
    -	        return this.finalize(node, new Node.ImportSpecifier(local, imported));
    -	    };
    -	    // {foo, bar as bas}
    -	    Parser.prototype.parseNamedImports = function () {
    -	        this.expect('{');
    -	        var specifiers = [];
    -	        while (!this.match('}')) {
    -	            specifiers.push(this.parseImportSpecifier());
    -	            if (!this.match('}')) {
    -	                this.expect(',');
    -	            }
    -	        }
    -	        this.expect('}');
    -	        return specifiers;
    -	    };
    -	    // import  ...;
    -	    Parser.prototype.parseImportDefaultSpecifier = function () {
    -	        var node = this.createNode();
    -	        var local = this.parseNonComputedProperty();
    -	        return this.finalize(node, new Node.ImportDefaultSpecifier(local));
    -	    };
    -	    // import <* as foo> ...;
    -	    Parser.prototype.parseImportNamespaceSpecifier = function () {
    -	        var node = this.createNode();
    -	        this.expect('*');
    -	        if (!this.matchContextualKeyword('as')) {
    -	            this.throwError(messages_1.Messages.NoAsAfterImportNamespace);
    -	        }
    -	        this.nextToken();
    -	        var local = this.parseNonComputedProperty();
    -	        return this.finalize(node, new Node.ImportNamespaceSpecifier(local));
    -	    };
    -	    Parser.prototype.parseImportDeclaration = function () {
    -	        if (this.context.inFunctionBody) {
    -	            this.throwError(messages_1.Messages.IllegalImportDeclaration);
    -	        }
    -	        var node = this.createNode();
    -	        this.expectKeyword('import');
    -	        var src;
    -	        var specifiers = [];
    -	        if (this.lookahead.type === token_1.Token.StringLiteral) {
    -	            // import 'foo';
    -	            src = this.parseModuleSpecifier();
    -	        }
    -	        else {
    -	            if (this.match('{')) {
    -	                // import {bar}
    -	                specifiers = specifiers.concat(this.parseNamedImports());
    -	            }
    -	            else if (this.match('*')) {
    -	                // import * as foo
    -	                specifiers.push(this.parseImportNamespaceSpecifier());
    -	            }
    -	            else if (this.isIdentifierName(this.lookahead) && !this.matchKeyword('default')) {
    -	                // import foo
    -	                specifiers.push(this.parseImportDefaultSpecifier());
    -	                if (this.match(',')) {
    -	                    this.nextToken();
    -	                    if (this.match('*')) {
    -	                        // import foo, * as foo
    -	                        specifiers.push(this.parseImportNamespaceSpecifier());
    -	                    }
    -	                    else if (this.match('{')) {
    -	                        // import foo, {bar}
    -	                        specifiers = specifiers.concat(this.parseNamedImports());
    -	                    }
    -	                    else {
    -	                        this.throwUnexpectedToken(this.lookahead);
    -	                    }
    -	                }
    -	            }
    -	            else {
    -	                this.throwUnexpectedToken(this.nextToken());
    -	            }
    -	            if (!this.matchContextualKeyword('from')) {
    -	                var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
    -	                this.throwError(message, this.lookahead.value);
    -	            }
    -	            this.nextToken();
    -	            src = this.parseModuleSpecifier();
    -	        }
    -	        this.consumeSemicolon();
    -	        return this.finalize(node, new Node.ImportDeclaration(specifiers, src));
    -	    };
    -	    // ECMA-262 15.2.3 Exports
    -	    Parser.prototype.parseExportSpecifier = function () {
    -	        var node = this.createNode();
    -	        var local = this.matchKeyword('default') ? this.parseNonComputedProperty() : this.parseVariableIdentifier();
    -	        var exported = local;
    -	        if (this.matchContextualKeyword('as')) {
    -	            this.nextToken();
    -	            exported = this.parseNonComputedProperty();
    -	        }
    -	        return this.finalize(node, new Node.ExportSpecifier(local, exported));
    -	    };
    -	    Parser.prototype.parseExportDeclaration = function () {
    -	        if (this.context.inFunctionBody) {
    -	            this.throwError(messages_1.Messages.IllegalExportDeclaration);
    -	        }
    -	        var node = this.createNode();
    -	        this.expectKeyword('export');
    -	        var exportDeclaration;
    -	        if (this.matchKeyword('default')) {
    -	            // export default ...
    -	            this.nextToken();
    -	            if (this.matchKeyword('function')) {
    -	                // export default function foo () {}
    -	                // export default function () {}
    -	                var declaration = this.parseFunctionDeclaration(true);
    -	                exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration));
    -	            }
    -	            else if (this.matchKeyword('class')) {
    -	                // export default class foo {}
    -	                var declaration = this.parseClassExpression();
    -	                declaration.type = syntax_1.Syntax.ClassDeclaration;
    -	                exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration));
    -	            }
    -	            else {
    -	                if (this.matchContextualKeyword('from')) {
    -	                    this.throwError(messages_1.Messages.UnexpectedToken, this.lookahead.value);
    -	                }
    -	                // export default {};
    -	                // export default [];
    -	                // export default (1 + 2);
    -	                var declaration = this.match('{') ? this.parseObjectInitializer() :
    -	                    this.match('[') ? this.parseArrayInitializer() : this.parseAssignmentExpression();
    -	                this.consumeSemicolon();
    -	                exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration));
    -	            }
    -	        }
    -	        else if (this.match('*')) {
    -	            // export * from 'foo';
    -	            this.nextToken();
    -	            if (!this.matchContextualKeyword('from')) {
    -	                var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
    -	                this.throwError(message, this.lookahead.value);
    -	            }
    -	            this.nextToken();
    -	            var src = this.parseModuleSpecifier();
    -	            this.consumeSemicolon();
    -	            exportDeclaration = this.finalize(node, new Node.ExportAllDeclaration(src));
    -	        }
    -	        else if (this.lookahead.type === token_1.Token.Keyword) {
    -	            // export var f = 1;
    -	            var declaration = void 0;
    -	            switch (this.lookahead.value) {
    -	                case 'let':
    -	                case 'const':
    -	                    declaration = this.parseLexicalDeclaration({ inFor: false });
    -	                    break;
    -	                case 'var':
    -	                case 'class':
    -	                case 'function':
    -	                    declaration = this.parseStatementListItem();
    -	                    break;
    -	                default:
    -	                    this.throwUnexpectedToken(this.lookahead);
    -	            }
    -	            exportDeclaration = this.finalize(node, new Node.ExportNamedDeclaration(declaration, [], null));
    -	        }
    -	        else {
    -	            var specifiers = [];
    -	            var source = null;
    -	            var isExportFromIdentifier = false;
    -	            this.expect('{');
    -	            while (!this.match('}')) {
    -	                isExportFromIdentifier = isExportFromIdentifier || this.matchKeyword('default');
    -	                specifiers.push(this.parseExportSpecifier());
    -	                if (!this.match('}')) {
    -	                    this.expect(',');
    -	                }
    -	            }
    -	            this.expect('}');
    -	            if (this.matchContextualKeyword('from')) {
    -	                // export {default} from 'foo';
    -	                // export {foo} from 'foo';
    -	                this.nextToken();
    -	                source = this.parseModuleSpecifier();
    -	                this.consumeSemicolon();
    -	            }
    -	            else if (isExportFromIdentifier) {
    -	                // export {default}; // missing fromClause
    -	                var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
    -	                this.throwError(message, this.lookahead.value);
    -	            }
    -	            else {
    -	                // export {foo};
    -	                this.consumeSemicolon();
    -	            }
    -	            exportDeclaration = this.finalize(node, new Node.ExportNamedDeclaration(null, specifiers, source));
    -	        }
    -	        return exportDeclaration;
    -	    };
    -	    return Parser;
    -	}());
    -	exports.Parser = Parser;
    -
    -
    -/***/ },
    -/* 4 */
    -/***/ function(module, exports) {
    -
    -	// Ensure the condition is true, otherwise throw an error.
    -	// This is only to have a better contract semantic, i.e. another safety net
    -	// to catch a logic error. The condition shall be fulfilled in normal case.
    -	// Do NOT use this to enforce a certain condition on any user input.
    -	"use strict";
    -	function assert(condition, message) {
    -	    /* istanbul ignore if */
    -	    if (!condition) {
    -	        throw new Error('ASSERT: ' + message);
    -	    }
    -	}
    -	exports.assert = assert;
    -
    -
    -/***/ },
    -/* 5 */
    -/***/ function(module, exports) {
    -
    -	"use strict";
    -	// Error messages should be identical to V8.
    -	exports.Messages = {
    -	    UnexpectedToken: 'Unexpected token %0',
    -	    UnexpectedTokenIllegal: 'Unexpected token ILLEGAL',
    -	    UnexpectedNumber: 'Unexpected number',
    -	    UnexpectedString: 'Unexpected string',
    -	    UnexpectedIdentifier: 'Unexpected identifier',
    -	    UnexpectedReserved: 'Unexpected reserved word',
    -	    UnexpectedTemplate: 'Unexpected quasi %0',
    -	    UnexpectedEOS: 'Unexpected end of input',
    -	    NewlineAfterThrow: 'Illegal newline after throw',
    -	    InvalidRegExp: 'Invalid regular expression',
    -	    UnterminatedRegExp: 'Invalid regular expression: missing /',
    -	    InvalidLHSInAssignment: 'Invalid left-hand side in assignment',
    -	    InvalidLHSInForIn: 'Invalid left-hand side in for-in',
    -	    InvalidLHSInForLoop: 'Invalid left-hand side in for-loop',
    -	    MultipleDefaultsInSwitch: 'More than one default clause in switch statement',
    -	    NoCatchOrFinally: 'Missing catch or finally after try',
    -	    UnknownLabel: 'Undefined label \'%0\'',
    -	    Redeclaration: '%0 \'%1\' has already been declared',
    -	    IllegalContinue: 'Illegal continue statement',
    -	    IllegalBreak: 'Illegal break statement',
    -	    IllegalReturn: 'Illegal return statement',
    -	    StrictModeWith: 'Strict mode code may not include a with statement',
    -	    StrictCatchVariable: 'Catch variable may not be eval or arguments in strict mode',
    -	    StrictVarName: 'Variable name may not be eval or arguments in strict mode',
    -	    StrictParamName: 'Parameter name eval or arguments is not allowed in strict mode',
    -	    StrictParamDupe: 'Strict mode function may not have duplicate parameter names',
    -	    StrictFunctionName: 'Function name may not be eval or arguments in strict mode',
    -	    StrictOctalLiteral: 'Octal literals are not allowed in strict mode.',
    -	    StrictDelete: 'Delete of an unqualified identifier in strict mode.',
    -	    StrictLHSAssignment: 'Assignment to eval or arguments is not allowed in strict mode',
    -	    StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode',
    -	    StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode',
    -	    StrictReservedWord: 'Use of future reserved word in strict mode',
    -	    TemplateOctalLiteral: 'Octal literals are not allowed in template strings.',
    -	    ParameterAfterRestParameter: 'Rest parameter must be last formal parameter',
    -	    DefaultRestParameter: 'Unexpected token =',
    -	    ObjectPatternAsRestParameter: 'Unexpected token {',
    -	    DuplicateProtoProperty: 'Duplicate __proto__ fields are not allowed in object literals',
    -	    ConstructorSpecialMethod: 'Class constructor may not be an accessor',
    -	    DuplicateConstructor: 'A class may only have one constructor',
    -	    StaticPrototype: 'Classes may not have static property named prototype',
    -	    MissingFromClause: 'Unexpected token',
    -	    NoAsAfterImportNamespace: 'Unexpected token',
    -	    InvalidModuleSpecifier: 'Unexpected token',
    -	    IllegalImportDeclaration: 'Unexpected token',
    -	    IllegalExportDeclaration: 'Unexpected token',
    -	    DuplicateBinding: 'Duplicate binding %0'
    -	};
    -
    -
    -/***/ },
    -/* 6 */
    -/***/ function(module, exports) {
    -
    -	"use strict";
    -	var ErrorHandler = (function () {
    -	    function ErrorHandler() {
    -	        this.errors = [];
    -	        this.tolerant = false;
    -	    }
    -	    ;
    -	    ErrorHandler.prototype.recordError = function (error) {
    -	        this.errors.push(error);
    -	    };
    -	    ;
    -	    ErrorHandler.prototype.tolerate = function (error) {
    -	        if (this.tolerant) {
    -	            this.recordError(error);
    -	        }
    -	        else {
    -	            throw error;
    -	        }
    -	    };
    -	    ;
    -	    ErrorHandler.prototype.constructError = function (msg, column) {
    -	        var error = new Error(msg);
    -	        try {
    -	            throw error;
    -	        }
    -	        catch (base) {
    -	            /* istanbul ignore else */
    -	            if (Object.create && Object.defineProperty) {
    -	                error = Object.create(base);
    -	                Object.defineProperty(error, 'column', { value: column });
    -	            }
    -	        }
    -	        finally {
    -	            return error;
    -	        }
    -	    };
    -	    ;
    -	    ErrorHandler.prototype.createError = function (index, line, col, description) {
    -	        var msg = 'Line ' + line + ': ' + description;
    -	        var error = this.constructError(msg, col);
    -	        error.index = index;
    -	        error.lineNumber = line;
    -	        error.description = description;
    -	        return error;
    -	    };
    -	    ;
    -	    ErrorHandler.prototype.throwError = function (index, line, col, description) {
    -	        throw this.createError(index, line, col, description);
    -	    };
    -	    ;
    -	    ErrorHandler.prototype.tolerateError = function (index, line, col, description) {
    -	        var error = this.createError(index, line, col, description);
    -	        if (this.tolerant) {
    -	            this.recordError(error);
    -	        }
    -	        else {
    -	            throw error;
    -	        }
    -	    };
    -	    ;
    -	    return ErrorHandler;
    -	}());
    -	exports.ErrorHandler = ErrorHandler;
    -
    -
    -/***/ },
    -/* 7 */
    -/***/ function(module, exports) {
    -
    -	"use strict";
    -	(function (Token) {
    -	    Token[Token["BooleanLiteral"] = 1] = "BooleanLiteral";
    -	    Token[Token["EOF"] = 2] = "EOF";
    -	    Token[Token["Identifier"] = 3] = "Identifier";
    -	    Token[Token["Keyword"] = 4] = "Keyword";
    -	    Token[Token["NullLiteral"] = 5] = "NullLiteral";
    -	    Token[Token["NumericLiteral"] = 6] = "NumericLiteral";
    -	    Token[Token["Punctuator"] = 7] = "Punctuator";
    -	    Token[Token["StringLiteral"] = 8] = "StringLiteral";
    -	    Token[Token["RegularExpression"] = 9] = "RegularExpression";
    -	    Token[Token["Template"] = 10] = "Template";
    -	})(exports.Token || (exports.Token = {}));
    -	var Token = exports.Token;
    -	;
    -	exports.TokenName = {};
    -	exports.TokenName[Token.BooleanLiteral] = 'Boolean';
    -	exports.TokenName[Token.EOF] = '';
    -	exports.TokenName[Token.Identifier] = 'Identifier';
    -	exports.TokenName[Token.Keyword] = 'Keyword';
    -	exports.TokenName[Token.NullLiteral] = 'Null';
    -	exports.TokenName[Token.NumericLiteral] = 'Numeric';
    -	exports.TokenName[Token.Punctuator] = 'Punctuator';
    -	exports.TokenName[Token.StringLiteral] = 'String';
    -	exports.TokenName[Token.RegularExpression] = 'RegularExpression';
    -	exports.TokenName[Token.Template] = 'Template';
    -
    -
    -/***/ },
    -/* 8 */
    -/***/ function(module, exports, __webpack_require__) {
    -
    -	"use strict";
    -	var assert_1 = __webpack_require__(4);
    -	var messages_1 = __webpack_require__(5);
    -	var character_1 = __webpack_require__(9);
    -	var token_1 = __webpack_require__(7);
    -	function hexValue(ch) {
    -	    return '0123456789abcdef'.indexOf(ch.toLowerCase());
    -	}
    -	function octalValue(ch) {
    -	    return '01234567'.indexOf(ch);
    -	}
    -	var Scanner = (function () {
    -	    function Scanner(code, handler) {
    -	        this.source = code;
    -	        this.errorHandler = handler;
    -	        this.trackComment = false;
    -	        this.length = code.length;
    -	        this.index = 0;
    -	        this.lineNumber = (code.length > 0) ? 1 : 0;
    -	        this.lineStart = 0;
    -	        this.curlyStack = [];
    -	    }
    -	    ;
    -	    Scanner.prototype.eof = function () {
    -	        return this.index >= this.length;
    -	    };
    -	    ;
    -	    Scanner.prototype.throwUnexpectedToken = function (message) {
    -	        if (message === void 0) { message = messages_1.Messages.UnexpectedTokenIllegal; }
    -	        this.errorHandler.throwError(this.index, this.lineNumber, this.index - this.lineStart + 1, message);
    -	    };
    -	    ;
    -	    Scanner.prototype.tolerateUnexpectedToken = function () {
    -	        this.errorHandler.tolerateError(this.index, this.lineNumber, this.index - this.lineStart + 1, messages_1.Messages.UnexpectedTokenIllegal);
    -	    };
    -	    ;
    -	    // ECMA-262 11.4 Comments
    -	    Scanner.prototype.skipSingleLineComment = function (offset) {
    -	        var comments;
    -	        var start, loc;
    -	        if (this.trackComment) {
    -	            comments = [];
    -	            start = this.index - offset;
    -	            loc = {
    -	                start: {
    -	                    line: this.lineNumber,
    -	                    column: this.index - this.lineStart - offset
    -	                },
    -	                end: {}
    -	            };
    -	        }
    -	        while (!this.eof()) {
    -	            var ch = this.source.charCodeAt(this.index);
    -	            ++this.index;
    -	            if (character_1.Character.isLineTerminator(ch)) {
    -	                if (this.trackComment) {
    -	                    loc.end = {
    -	                        line: this.lineNumber,
    -	                        column: this.index - this.lineStart - 1
    -	                    };
    -	                    var entry = {
    -	                        multiLine: false,
    -	                        slice: [start + offset, this.index - 1],
    -	                        range: [start, this.index - 1],
    -	                        loc: loc
    -	                    };
    -	                    comments.push(entry);
    -	                }
    -	                if (ch === 13 && this.source.charCodeAt(this.index) === 10) {
    -	                    ++this.index;
    -	                }
    -	                ++this.lineNumber;
    -	                this.lineStart = this.index;
    -	                return comments;
    -	            }
    -	        }
    -	        if (this.trackComment) {
    -	            loc.end = {
    -	                line: this.lineNumber,
    -	                column: this.index - this.lineStart
    -	            };
    -	            var entry = {
    -	                multiLine: false,
    -	                slice: [start + offset, this.index],
    -	                range: [start, this.index],
    -	                loc: loc
    -	            };
    -	            comments.push(entry);
    -	        }
    -	        return comments;
    -	    };
    -	    ;
    -	    Scanner.prototype.skipMultiLineComment = function () {
    -	        var comments;
    -	        var start, loc;
    -	        if (this.trackComment) {
    -	            comments = [];
    -	            start = this.index - 2;
    -	            loc = {
    -	                start: {
    -	                    line: this.lineNumber,
    -	                    column: this.index - this.lineStart - 2
    -	                },
    -	                end: {}
    -	            };
    -	        }
    -	        while (!this.eof()) {
    -	            var ch = this.source.charCodeAt(this.index);
    -	            if (character_1.Character.isLineTerminator(ch)) {
    -	                if (ch === 0x0D && this.source.charCodeAt(this.index + 1) === 0x0A) {
    -	                    ++this.index;
    -	                }
    -	                ++this.lineNumber;
    -	                ++this.index;
    -	                this.lineStart = this.index;
    -	            }
    -	            else if (ch === 0x2A) {
    -	                // Block comment ends with '*/'.
    -	                if (this.source.charCodeAt(this.index + 1) === 0x2F) {
    -	                    this.index += 2;
    -	                    if (this.trackComment) {
    -	                        loc.end = {
    -	                            line: this.lineNumber,
    -	                            column: this.index - this.lineStart
    -	                        };
    -	                        var entry = {
    -	                            multiLine: true,
    -	                            slice: [start + 2, this.index - 2],
    -	                            range: [start, this.index],
    -	                            loc: loc
    -	                        };
    -	                        comments.push(entry);
    -	                    }
    -	                    return comments;
    -	                }
    -	                ++this.index;
    -	            }
    -	            else {
    -	                ++this.index;
    -	            }
    -	        }
    -	        // Ran off the end of the file - the whole thing is a comment
    -	        if (this.trackComment) {
    -	            loc.end = {
    -	                line: this.lineNumber,
    -	                column: this.index - this.lineStart
    -	            };
    -	            var entry = {
    -	                multiLine: true,
    -	                slice: [start + 2, this.index],
    -	                range: [start, this.index],
    -	                loc: loc
    -	            };
    -	            comments.push(entry);
    -	        }
    -	        this.tolerateUnexpectedToken();
    -	        return comments;
    -	    };
    -	    ;
    -	    Scanner.prototype.scanComments = function () {
    -	        var comments;
    -	        if (this.trackComment) {
    -	            comments = [];
    -	        }
    -	        var start = (this.index === 0);
    -	        while (!this.eof()) {
    -	            var ch = this.source.charCodeAt(this.index);
    -	            if (character_1.Character.isWhiteSpace(ch)) {
    -	                ++this.index;
    -	            }
    -	            else if (character_1.Character.isLineTerminator(ch)) {
    -	                ++this.index;
    -	                if (ch === 0x0D && this.source.charCodeAt(this.index) === 0x0A) {
    -	                    ++this.index;
    -	                }
    -	                ++this.lineNumber;
    -	                this.lineStart = this.index;
    -	                start = true;
    -	            }
    -	            else if (ch === 0x2F) {
    -	                ch = this.source.charCodeAt(this.index + 1);
    -	                if (ch === 0x2F) {
    -	                    this.index += 2;
    -	                    var comment = this.skipSingleLineComment(2);
    -	                    if (this.trackComment) {
    -	                        comments = comments.concat(comment);
    -	                    }
    -	                    start = true;
    -	                }
    -	                else if (ch === 0x2A) {
    -	                    this.index += 2;
    -	                    var comment = this.skipMultiLineComment();
    -	                    if (this.trackComment) {
    -	                        comments = comments.concat(comment);
    -	                    }
    -	                }
    -	                else {
    -	                    break;
    -	                }
    -	            }
    -	            else if (start && ch === 0x2D) {
    -	                // U+003E is '>'
    -	                if ((this.source.charCodeAt(this.index + 1) === 0x2D) && (this.source.charCodeAt(this.index + 2) === 0x3E)) {
    -	                    // '-->' is a single-line comment
    -	                    this.index += 3;
    -	                    var comment = this.skipSingleLineComment(3);
    -	                    if (this.trackComment) {
    -	                        comments = comments.concat(comment);
    -	                    }
    -	                }
    -	                else {
    -	                    break;
    -	                }
    -	            }
    -	            else if (ch === 0x3C) {
    -	                if (this.source.slice(this.index + 1, this.index + 4) === '!--') {
    -	                    this.index += 4; // `
    -
    -- [Usage](#usage)
    -  * [Invalid ranges](#invalid-ranges)
    -  * [Custom function](#custom-function)
    -  * [Special characters](#special-characters)
    -    + [plus](#plus)
    -    + [pipe and tilde](#pipe-and-tilde)
    -    + [angle bracket](#angle-bracket)
    -    + [question mark](#question-mark)
    -- [Other useful libs](#other-useful-libs)
    -- [Running tests](#running-tests)
    -- [Contributing](#contributing)
    -- [Author](#author)
    -- [License](#license)
    -
    -_(Table of contents generated by [verb])_
    -
    -
    -
    -## Usage
    -
    -```js
    -var range = require('fill-range');
    -
    -range('a', 'e');
    -//=> ['a', 'b', 'c', 'd', 'e']
    -```
    -
    -**Params**
    -
    -```js
    -range(start, stop, step, options, fn);
    -```
    -
    - - `start`: **{String|Number}** the number or letter to start with
    - - `end`: **{String|Number}** the number or letter to end with
    - - `step`: **{String|Number}** optionally pass the step to use. works for letters or numbers.
    - - `options`: **{Object}**:
    -    + `makeRe`: return a regex-compatible string (still returned as an array for consistency)
    -    + `step`: pass the step on the options as an alternative to passing it as an argument
    -    + `silent`: `true` by default, set to false to throw errors for invalid ranges. 
    - - `fn`: **{Function}** optionally [pass a function](#custom-function) to modify each character 
    -
    -
    -**Examples**
    -
    -```js
    -range(1, 3)
    -//=> ['1', '2', '3']
    -
    -range('1', '3')
    -//=> ['1', '2', '3']
    -
    -range('0', '-5')
    -//=> [ '0', '-1', '-2', '-3', '-4', '-5' ]
    -
    -range(-9, 9, 3)
    -//=> [ '-9', '-6', '-3', '0', '3', '6', '9' ])
    -
    -range('-1', '-10', '-2')
    -//=> [ '-1', '-3', '-5', '-7', '-9' ]
    -
    -range('1', '10', '2')
    -//=> [ '1', '3', '5', '7', '9' ]
    -
    -range('a', 'e')
    -//=> ['a', 'b', 'c', 'd', 'e']
    -
    -range('a', 'e', 2)
    -//=> ['a', 'c', 'e']
    -
    -range('A', 'E', 2)
    -//=> ['A', 'C', 'E']
    -```
    -
    -### Invalid ranges
    -
    -When an invalid range is passed, `null` is returned. 
    -
    -```js
    -range('1.1', '2');
    -//=> null
    -
    -range('a', '2');
    -//=> null
    -
    -range(1, 10, 'foo');
    -//=> null
    -```
    -
    -If you want errors to be throw, pass `silent: false` on the options:
    -
    -
    -### Custom function
    -
    -Optionally pass a custom function as the third or fourth argument:
    -
    -```js
    -range('a', 'e', function (val, isNumber, pad, i) {
    -  if (!isNumber) {
    -    return String.fromCharCode(val) + i;
    -  }
    -  return val;
    -});
    -//=> ['a0', 'b1', 'c2', 'd3', 'e4']
    -```
    -
    -### Special characters
    -
    -A special character may be passed as the third arg instead of a step increment. These characters can be pretty useful for brace expansion, creating file paths, test fixtures and similar use case.
    -
    -```js
    -range('a', 'z', SPECIAL_CHARACTER_HERE);
    -```
    -
    -**Supported characters**
    -
    - - `+`: repeat the given string `n` times
    - - `|`: create a regex-ready string, instead of an array
    - - `>`: join values to single array element
    - - `?`: randomize the given pattern using [randomatic]
    -
    -#### plus 
    -
    -Character: _(`+`)_
    -
    -Repeat the first argument the number of times passed on the second argument.
    -
    -**Examples:**
    -
    -```js
    -range('a', 3, '+');
    -//=> ['a', 'a', 'a']
    -
    -range('abc', 2, '+');
    -//=> ['abc', 'abc']
    -```
    -
    -#### pipe and tilde
    -
    -Characters: _(`|` and `~`)_
    -
    -Creates a regex-capable string (either a logical `or` or a character class) from the expanded arguments.
    -
    -**Examples:**
    -
    -```js
    -range('a', 'c', '|');
    -//=> ['(a|b|c)'
    -
    -range('a', 'c', '~');
    -//=> ['[a-c]'
    -
    -range('a', 'z', '|5');
    -//=> ['(a|f|k|p|u|z)'
    -```
    -
    -**Automatic separator correction**
    -
    -To avoid this error:
    -
    -> `Range out of order in character class`
    -
    -Fill-range detects invalid sequences and uses the correct syntax. For example:
    -
    -**invalid** (regex)
    -
    -If you pass these:
    -
    -```js
    -range('a', 'z', '~5');
    -// which would result in this
    -//=> ['[a-f-k-p-u-z]']
    -
    -range('10', '20', '~');
    -// which would result in this
    -//=> ['[10-20]']
    -```
    -
    -**valid** (regex)
    -
    -fill-range corrects them to this:
    -
    -```js
    -range('a', 'z', '~5');
    -//=> ['(a|f|k|p|u|z)'
    -
    -range('10', '20', '~');
    -//=> ['(10-20)'
    -```
    -
    -#### angle bracket
    -
    -Character: _(`>`)_
    -
    -Joins all values in the returned array to a single value.
    -
    -**Examples:**
    -
    -```js
    -range('a', 'e', '>');
    -//=> ['abcde']
    -
    -range('5', '8', '>');
    -//=> ['5678']
    -
    -range('2', '20', '2>');
    -//=> ['2468101214161820']
    -```
    -
    -
    -#### question mark
    -
    -Character: _(`?`)_
    -
    -Uses [randomatic] to generate randomized alpha, numeric, or alpha-numeric patterns based on the provided arguments.
    -
    -**Examples:**
    -
    -_(actual results would obviously be randomized)_
    -
    -Generate a 5-character, uppercase, alphabetical string:
    -
    -```js
    -range('A', 5, '?');
    -//=> ['NSHAK']
    -```
    -
    -Generate a 5-digit random number:
    -
    -```js
    -range('0', 5, '?');
    -//=> ['36583']
    -```
    -
    -Generate a 10-character alpha-numeric string:
    -
    -```js
    -range('A0', 10, '?');
    -//=> ['5YJD60VQNN']
    -```
    -
    -See the [randomatic] repo for all available options and or to create issues or feature requests related to randomization.
    -
    -## Other useful libs
    - * [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just use `micromatch.isMatch()` instead of `minimatch()`, or use `micromatch()` instead of `multimatch()`.
    - * [expand-range](https://github.com/jonschlinkert/expand-range): Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch.
    - * [braces](https://github.com/jonschlinkert/braces): Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification.
    - * [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.
    -
    -## Running 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/fill-range/issues)
    -
    -## 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 April 07, 2015._
    -
    -[randomatic]: https://github.com/jonschlinkert/randomatic
    -[expand-range]: https://github.com/jonschlinkert/expand-range
    -[micromatch]: https://github.com/jonschlinkert/micromatch
    -[braces]: https://github.com/jonschlinkert/braces
    \ No newline at end of file
    diff --git a/node_modules/fill-range/index.js b/node_modules/fill-range/index.js
    deleted file mode 100644
    index 5657051..0000000
    --- a/node_modules/fill-range/index.js
    +++ /dev/null
    @@ -1,408 +0,0 @@
    -/*!
    - * fill-range 
    - *
    - * Copyright (c) 2014-2015, Jon Schlinkert.
    - * Licensed under the MIT License.
    - */
    -
    -'use strict';
    -
    -var isObject = require('isobject');
    -var isNumber = require('is-number');
    -var randomize = require('randomatic');
    -var repeatStr = require('repeat-string');
    -var repeat = require('repeat-element');
    -
    -/**
    - * Expose `fillRange`
    - */
    -
    -module.exports = fillRange;
    -
    -/**
    - * Return a range of numbers or letters.
    - *
    - * @param  {String} `a` Start of the range
    - * @param  {String} `b` End of the range
    - * @param  {String} `step` Increment or decrement to use.
    - * @param  {Function} `fn` Custom function to modify each element in the range.
    - * @return {Array}
    - */
    -
    -function fillRange(a, b, step, options, fn) {
    -  if (a == null || b == null) {
    -    throw new Error('fill-range expects the first and second args to be strings.');
    -  }
    -
    -  if (typeof step === 'function') {
    -    fn = step; options = {}; step = null;
    -  }
    -
    -  if (typeof options === 'function') {
    -    fn = options; options = {};
    -  }
    -
    -  if (isObject(step)) {
    -    options = step; step = '';
    -  }
    -
    -  var expand, regex = false, sep = '';
    -  var opts = options || {};
    -
    -  if (typeof opts.silent === 'undefined') {
    -    opts.silent = true;
    -  }
    -
    -  step = step || opts.step;
    -
    -  // store a ref to unmodified arg
    -  var origA = a, origB = b;
    -
    -  b = (b.toString() === '-0') ? 0 : b;
    -
    -  if (opts.optimize || opts.makeRe) {
    -    step = step ? (step += '~') : step;
    -    expand = true;
    -    regex = true;
    -    sep = '~';
    -  }
    -
    -  // handle special step characters
    -  if (typeof step === 'string') {
    -    var match = stepRe().exec(step);
    -
    -    if (match) {
    -      var i = match.index;
    -      var m = match[0];
    -
    -      // repeat string
    -      if (m === '+') {
    -        return repeat(a, b);
    -
    -      // randomize a, `b` times
    -      } else if (m === '?') {
    -        return [randomize(a, b)];
    -
    -      // expand right, no regex reduction
    -      } else if (m === '>') {
    -        step = step.substr(0, i) + step.substr(i + 1);
    -        expand = true;
    -
    -      // expand to an array, or if valid create a reduced
    -      // string for a regex logic `or`
    -      } else if (m === '|') {
    -        step = step.substr(0, i) + step.substr(i + 1);
    -        expand = true;
    -        regex = true;
    -        sep = m;
    -
    -      // expand to an array, or if valid create a reduced
    -      // string for a regex range
    -      } else if (m === '~') {
    -        step = step.substr(0, i) + step.substr(i + 1);
    -        expand = true;
    -        regex = true;
    -        sep = m;
    -      }
    -    } else if (!isNumber(step)) {
    -      if (!opts.silent) {
    -        throw new TypeError('fill-range: invalid step.');
    -      }
    -      return null;
    -    }
    -  }
    -
    -  if (/[.&*()[\]^%$#@!]/.test(a) || /[.&*()[\]^%$#@!]/.test(b)) {
    -    if (!opts.silent) {
    -      throw new RangeError('fill-range: invalid range arguments.');
    -    }
    -    return null;
    -  }
    -
    -  // has neither a letter nor number, or has both letters and numbers
    -  // this needs to be after the step logic
    -  if (!noAlphaNum(a) || !noAlphaNum(b) || hasBoth(a) || hasBoth(b)) {
    -    if (!opts.silent) {
    -      throw new RangeError('fill-range: invalid range arguments.');
    -    }
    -    return null;
    -  }
    -
    -  // validate arguments
    -  var isNumA = isNumber(zeros(a));
    -  var isNumB = isNumber(zeros(b));
    -
    -  if ((!isNumA && isNumB) || (isNumA && !isNumB)) {
    -    if (!opts.silent) {
    -      throw new TypeError('fill-range: first range argument is incompatible with second.');
    -    }
    -    return null;
    -  }
    -
    -  // by this point both are the same, so we
    -  // can use A to check going forward.
    -  var isNum = isNumA;
    -  var num = formatStep(step);
    -
    -  // is the range alphabetical? or numeric?
    -  if (isNum) {
    -    // if numeric, coerce to an integer
    -    a = +a; b = +b;
    -  } else {
    -    // otherwise, get the charCode to expand alpha ranges
    -    a = a.charCodeAt(0);
    -    b = b.charCodeAt(0);
    -  }
    -
    -  // is the pattern descending?
    -  var isDescending = a > b;
    -
    -  // don't create a character class if the args are < 0
    -  if (a < 0 || b < 0) {
    -    expand = false;
    -    regex = false;
    -  }
    -
    -  // detect padding
    -  var padding = isPadded(origA, origB);
    -  var res, pad, arr = [];
    -  var ii = 0;
    -
    -  // character classes, ranges and logical `or`
    -  if (regex) {
    -    if (shouldExpand(a, b, num, isNum, padding, opts)) {
    -      // make sure the correct separator is used
    -      if (sep === '|' || sep === '~') {
    -        sep = detectSeparator(a, b, num, isNum, isDescending);
    -      }
    -      return wrap([origA, origB], sep, opts);
    -    }
    -  }
    -
    -  while (isDescending ? (a >= b) : (a <= b)) {
    -    if (padding && isNum) {
    -      pad = padding(a);
    -    }
    -
    -    // custom function
    -    if (typeof fn === 'function') {
    -      res = fn(a, isNum, pad, ii++);
    -
    -    // letters
    -    } else if (!isNum) {
    -      if (regex && isInvalidChar(a)) {
    -        res = null;
    -      } else {
    -        res = String.fromCharCode(a);
    -      }
    -
    -    // numbers
    -    } else {
    -      res = formatPadding(a, pad);
    -    }
    -
    -    // add result to the array, filtering any nulled values
    -    if (res !== null) arr.push(res);
    -
    -    // increment or decrement
    -    if (isDescending) {
    -      a -= num;
    -    } else {
    -      a += num;
    -    }
    -  }
    -
    -  // now that the array is expanded, we need to handle regex
    -  // character classes, ranges or logical `or` that wasn't
    -  // already handled before the loop
    -  if ((regex || expand) && !opts.noexpand) {
    -    // make sure the correct separator is used
    -    if (sep === '|' || sep === '~') {
    -      sep = detectSeparator(a, b, num, isNum, isDescending);
    -    }
    -    if (arr.length === 1 || a < 0 || b < 0) { return arr; }
    -    return wrap(arr, sep, opts);
    -  }
    -
    -  return arr;
    -}
    -
    -/**
    - * Wrap the string with the correct regex
    - * syntax.
    - */
    -
    -function wrap(arr, sep, opts) {
    -  if (sep === '~') { sep = '-'; }
    -  var str = arr.join(sep);
    -  var pre = opts && opts.regexPrefix;
    -
    -  // regex logical `or`
    -  if (sep === '|') {
    -    str = pre ? pre + str : str;
    -    str = '(' + str + ')';
    -  }
    -
    -  // regex character class
    -  if (sep === '-') {
    -    str = (pre && pre === '^')
    -      ? pre + str
    -      : str;
    -    str = '[' + str + ']';
    -  }
    -  return [str];
    -}
    -
    -/**
    - * Check for invalid characters
    - */
    -
    -function isCharClass(a, b, step, isNum, isDescending) {
    -  if (isDescending) { return false; }
    -  if (isNum) { return a <= 9 && b <= 9; }
    -  if (a < b) { return step === 1; }
    -  return false;
    -}
    -
    -/**
    - * Detect the correct separator to use
    - */
    -
    -function shouldExpand(a, b, num, isNum, padding, opts) {
    -  if (isNum && (a > 9 || b > 9)) { return false; }
    -  return !padding && num === 1 && a < b;
    -}
    -
    -/**
    - * Detect the correct separator to use
    - */
    -
    -function detectSeparator(a, b, step, isNum, isDescending) {
    -  var isChar = isCharClass(a, b, step, isNum, isDescending);
    -  if (!isChar) {
    -    return '|';
    -  }
    -  return '~';
    -}
    -
    -/**
    - * Correctly format the step based on type
    - */
    -
    -function formatStep(step) {
    -  return Math.abs(step >> 0) || 1;
    -}
    -
    -/**
    - * Format padding, taking leading `-` into account
    - */
    -
    -function formatPadding(ch, pad) {
    -  var res = pad ? pad + ch : ch;
    -  if (pad && ch.toString().charAt(0) === '-') {
    -    res = '-' + pad + ch.toString().substr(1);
    -  }
    -  return res.toString();
    -}
    -
    -/**
    - * Check for invalid characters
    - */
    -
    -function isInvalidChar(str) {
    -  var ch = toStr(str);
    -  return ch === '\\'
    -    || ch === '['
    -    || ch === ']'
    -    || ch === '^'
    -    || ch === '('
    -    || ch === ')'
    -    || ch === '`';
    -}
    -
    -/**
    - * Convert to a string from a charCode
    - */
    -
    -function toStr(ch) {
    -  return String.fromCharCode(ch);
    -}
    -
    -
    -/**
    - * Step regex
    - */
    -
    -function stepRe() {
    -  return /\?|>|\||\+|\~/g;
    -}
    -
    -/**
    - * Return true if `val` has either a letter
    - * or a number
    - */
    -
    -function noAlphaNum(val) {
    -  return /[a-z0-9]/i.test(val);
    -}
    -
    -/**
    - * Return true if `val` has both a letter and
    - * a number (invalid)
    - */
    -
    -function hasBoth(val) {
    -  return /[a-z][0-9]|[0-9][a-z]/i.test(val);
    -}
    -
    -/**
    - * Normalize zeros for checks
    - */
    -
    -function zeros(val) {
    -  if (/^-*0+$/.test(val.toString())) {
    -    return '0';
    -  }
    -  return val;
    -}
    -
    -/**
    - * Return true if `val` has leading zeros,
    - * or a similar valid pattern.
    - */
    -
    -function hasZeros(val) {
    -  return /[^.]\.|^-*0+[0-9]/.test(val);
    -}
    -
    -/**
    - * If the string is padded, returns a curried function with
    - * the a cached padding string, or `false` if no padding.
    - *
    - * @param  {*} `origA` String or number.
    - * @return {String|Boolean}
    - */
    -
    -function isPadded(origA, origB) {
    -  if (hasZeros(origA) || hasZeros(origB)) {
    -    var alen = length(origA);
    -    var blen = length(origB);
    -
    -    var len = alen >= blen
    -      ? alen
    -      : blen;
    -
    -    return function (a) {
    -      return repeatStr('0', len - length(a));
    -    };
    -  }
    -  return false;
    -}
    -
    -/**
    - * Get the string length of `val`
    - */
    -
    -function length(val) {
    -  return val.toString().length;
    -}
    diff --git a/node_modules/fill-range/package.json b/node_modules/fill-range/package.json
    deleted file mode 100644
    index 82a4a6e..0000000
    --- a/node_modules/fill-range/package.json
    +++ /dev/null
    @@ -1,131 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "fill-range@^2.1.0",
    -        "scope": null,
    -        "escapedName": "fill-range",
    -        "name": "fill-range",
    -        "rawSpec": "^2.1.0",
    -        "spec": ">=2.1.0 <3.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/expand-range"
    -    ]
    -  ],
    -  "_from": "fill-range@>=2.1.0 <3.0.0",
    -  "_id": "fill-range@2.2.3",
    -  "_inCache": true,
    -  "_location": "/fill-range",
    -  "_nodeVersion": "5.0.0",
    -  "_npmUser": {
    -    "name": "jonschlinkert",
    -    "email": "github@sellside.com"
    -  },
    -  "_npmVersion": "3.3.6",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "fill-range@^2.1.0",
    -    "scope": null,
    -    "escapedName": "fill-range",
    -    "name": "fill-range",
    -    "rawSpec": "^2.1.0",
    -    "spec": ">=2.1.0 <3.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/expand-range"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz",
    -  "_shasum": "50b77dfd7e469bc7492470963699fe7a8485a723",
    -  "_shrinkwrap": null,
    -  "_spec": "fill-range@^2.1.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/expand-range",
    -  "author": {
    -    "name": "Jon Schlinkert",
    -    "url": "https://github.com/jonschlinkert"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/jonschlinkert/fill-range/issues"
    -  },
    -  "dependencies": {
    -    "is-number": "^2.1.0",
    -    "isobject": "^2.0.0",
    -    "randomatic": "^1.1.3",
    -    "repeat-element": "^1.1.2",
    -    "repeat-string": "^1.5.2"
    -  },
    -  "description": "Fill in a range of numbers or letters, optionally passing an increment or multiplier to use.",
    -  "devDependencies": {
    -    "benchmarked": "^0.1.3",
    -    "chalk": "^0.5.1",
    -    "should": "*"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "50b77dfd7e469bc7492470963699fe7a8485a723",
    -    "tarball": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.10.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "6cb50d5c679d9e6d9e8ad97bb2efd63a8c8da610",
    -  "homepage": "https://github.com/jonschlinkert/fill-range",
    -  "keywords": [
    -    "alpha",
    -    "alphabetical",
    -    "bash",
    -    "brace",
    -    "expand",
    -    "expansion",
    -    "glob",
    -    "match",
    -    "matches",
    -    "matching",
    -    "number",
    -    "numerical",
    -    "range",
    -    "ranges",
    -    "sh"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "jonschlinkert",
    -      "email": "github@sellside.com"
    -    },
    -    {
    -      "name": "doowb",
    -      "email": "brian.woodward@gmail.com"
    -    },
    -    {
    -      "name": "es128",
    -      "email": "elan.shanker+npm@gmail.com"
    -    }
    -  ],
    -  "name": "fill-range",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/jonschlinkert/fill-range.git"
    -  },
    -  "scripts": {
    -    "test": "mocha"
    -  },
    -  "verb": {
    -    "related": {
    -      "list": [
    -        "micromatch",
    -        "expand-range",
    -        "braces",
    -        "is-glob"
    -      ]
    -    }
    -  },
    -  "version": "2.2.3"
    -}
    diff --git a/node_modules/find-index/README.md b/node_modules/find-index/README.md
    deleted file mode 100644
    index 034832e..0000000
    --- a/node_modules/find-index/README.md
    +++ /dev/null
    @@ -1,33 +0,0 @@
    -
    -# find-index
    -
    -finds an item in an array matching a predicate function,
    -and returns its index
    -
    -fast both when `thisArg` is used and also when it isn't: [jsPerf](http://jsperf.com/array-prototype-findindex-shims)
    -
    -### usage
    -```bash
    -npm install find-index
    -```
    -```js
    -findIndex = require('find-index')
    -findLastIndex = require('find-index/last')
    -```
    -    findIndex(array, callback[, thisArg])
    -    findLastIndex(array, callback[, thisArg])
    -    Parameters:
    -      array
    -        The array to operate on.
    -      callback
    -        Function to execute on each value in the array, taking three arguments:
    -          element
    -            The current element being processed in the array.
    -          index
    -            The index of the current element being processed in the array.
    -          array
    -            The array findIndex was called upon.
    -      thisArg
    -        Object to use as this when executing callback.
    -
    -based on [array-findindex](https://www.npmjs.org/package/array-findindex)
    diff --git a/node_modules/find-index/index.js b/node_modules/find-index/index.js
    deleted file mode 100644
    index 61bff61..0000000
    --- a/node_modules/find-index/index.js
    +++ /dev/null
    @@ -1,26 +0,0 @@
    -function findIndex(array, predicate, self) {
    -  var len = array.length;
    -  var i;
    -  if (len === 0) return -1;
    -  if (typeof predicate !== 'function') {
    -    throw new TypeError(predicate + ' must be a function');
    -  }
    -
    -  if (self) {
    -    for (i = 0; i < len; i++) {
    -      if (predicate.call(self, array[i], i, array)) {
    -        return i;
    -      }
    -    }
    -  } else {
    -    for (i = 0; i < len; i++) {
    -      if (predicate(array[i], i, array)) {
    -        return i;
    -      }
    -    }
    -  }
    -
    -  return -1;
    -}
    -
    -module.exports = findIndex
    diff --git a/node_modules/find-index/last.js b/node_modules/find-index/last.js
    deleted file mode 100644
    index 186739a..0000000
    --- a/node_modules/find-index/last.js
    +++ /dev/null
    @@ -1,26 +0,0 @@
    -function findLastIndex(array, predicate, self) {
    -  var len = array.length;
    -  var i;
    -  if (len === 0) return -1;
    -  if (typeof predicate !== 'function') {
    -    throw new TypeError(predicate + ' must be a function');
    -  }
    -
    -  if (self) {
    -    for (i = len - 1; i >= 0; i--) {
    -      if (predicate.call(self, array[i], i, array)) {
    -        return i;
    -      }
    -    }
    -  } else {
    -    for (i = len - 1; i >= 0; i--) {
    -      if (predicate(array[i], i, array)) {
    -        return i;
    -      }
    -    }
    -  }
    -
    -  return -1;
    -}
    -
    -module.exports = findLastIndex
    diff --git a/node_modules/find-index/package.json b/node_modules/find-index/package.json
    deleted file mode 100644
    index 1090006..0000000
    --- a/node_modules/find-index/package.json
    +++ /dev/null
    @@ -1,87 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "find-index@^0.1.1",
    -        "scope": null,
    -        "escapedName": "find-index",
    -        "name": "find-index",
    -        "rawSpec": "^0.1.1",
    -        "spec": ">=0.1.1 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/glob2base"
    -    ]
    -  ],
    -  "_from": "find-index@>=0.1.1 <0.2.0",
    -  "_id": "find-index@0.1.1",
    -  "_inCache": true,
    -  "_location": "/find-index",
    -  "_npmUser": {
    -    "name": "jsdf",
    -    "email": "james@jsdf.co"
    -  },
    -  "_npmVersion": "1.4.3",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "find-index@^0.1.1",
    -    "scope": null,
    -    "escapedName": "find-index",
    -    "name": "find-index",
    -    "rawSpec": "^0.1.1",
    -    "spec": ">=0.1.1 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/glob2base"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz",
    -  "_shasum": "675d358b2ca3892d795a1ab47232f8b6e2e0dde4",
    -  "_shrinkwrap": null,
    -  "_spec": "find-index@^0.1.1",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/glob2base",
    -  "author": {
    -    "name": "James Friend",
    -    "email": "james@jsdf.co",
    -    "url": "http://jsdf.co/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/jsdf/find-index/issues"
    -  },
    -  "dependencies": {},
    -  "description": "finds an item in an array matching a predicate function, and returns its index",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "675d358b2ca3892d795a1ab47232f8b6e2e0dde4",
    -    "tarball": "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz"
    -  },
    -  "files": [
    -    "index.js",
    -    "last.js"
    -  ],
    -  "homepage": "https://github.com/jsdf/find-index",
    -  "keywords": [
    -    "array",
    -    "findindex"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "jsdf",
    -      "email": "james@jsdf.co"
    -    }
    -  ],
    -  "name": "find-index",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/jsdf/find-index.git"
    -  },
    -  "scripts": {
    -    "test": "node test/test"
    -  },
    -  "version": "0.1.1"
    -}
    diff --git a/node_modules/find-up/index.js b/node_modules/find-up/index.js
    deleted file mode 100644
    index 7ff0e2b..0000000
    --- a/node_modules/find-up/index.js
    +++ /dev/null
    @@ -1,53 +0,0 @@
    -'use strict';
    -var path = require('path');
    -var pathExists = require('path-exists');
    -var Promise = require('pinkie-promise');
    -
    -function splitPath(x) {
    -	return path.resolve(x || '').split(path.sep);
    -}
    -
    -function join(parts, filename) {
    -	return path.resolve(parts.join(path.sep) + path.sep, filename);
    -}
    -
    -module.exports = function (filename, opts) {
    -	opts = opts || {};
    -
    -	var parts = splitPath(opts.cwd);
    -
    -	return new Promise(function (resolve) {
    -		(function find() {
    -			var fp = join(parts, filename);
    -
    -			pathExists(fp).then(function (exists) {
    -				if (exists) {
    -					resolve(fp);
    -				} else if (parts.pop()) {
    -					find();
    -				} else {
    -					resolve(null);
    -				}
    -			});
    -		})();
    -	});
    -};
    -
    -module.exports.sync = function (filename, opts) {
    -	opts = opts || {};
    -
    -	var parts = splitPath(opts.cwd);
    -	var len = parts.length;
    -
    -	while (len--) {
    -		var fp = join(parts, filename);
    -
    -		if (pathExists.sync(fp)) {
    -			return fp;
    -		}
    -
    -		parts.pop();
    -	}
    -
    -	return null;
    -};
    diff --git a/node_modules/find-up/license b/node_modules/find-up/license
    deleted file mode 100644
    index 654d0bf..0000000
    --- a/node_modules/find-up/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/find-up/package.json b/node_modules/find-up/package.json
    deleted file mode 100644
    index 85218fb..0000000
    --- a/node_modules/find-up/package.json
    +++ /dev/null
    @@ -1,118 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "find-up@^1.0.0",
    -        "scope": null,
    -        "escapedName": "find-up",
    -        "name": "find-up",
    -        "rawSpec": "^1.0.0",
    -        "spec": ">=1.0.0 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/read-pkg-up"
    -    ]
    -  ],
    -  "_from": "find-up@>=1.0.0 <2.0.0",
    -  "_id": "find-up@1.1.2",
    -  "_inCache": true,
    -  "_location": "/find-up",
    -  "_nodeVersion": "4.3.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-12-west.internal.npmjs.com",
    -    "tmp": "tmp/find-up-1.1.2.tgz_1457199955637_0.3445317060686648"
    -  },
    -  "_npmUser": {
    -    "name": "sindresorhus",
    -    "email": "sindresorhus@gmail.com"
    -  },
    -  "_npmVersion": "2.14.12",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "find-up@^1.0.0",
    -    "scope": null,
    -    "escapedName": "find-up",
    -    "name": "find-up",
    -    "rawSpec": "^1.0.0",
    -    "spec": ">=1.0.0 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/read-pkg-up"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
    -  "_shasum": "6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f",
    -  "_shrinkwrap": null,
    -  "_spec": "find-up@^1.0.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/read-pkg-up",
    -  "author": {
    -    "name": "Sindre Sorhus",
    -    "email": "sindresorhus@gmail.com",
    -    "url": "sindresorhus.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/sindresorhus/find-up/issues"
    -  },
    -  "dependencies": {
    -    "path-exists": "^2.0.0",
    -    "pinkie-promise": "^2.0.0"
    -  },
    -  "description": "Find a file by walking up parent directories",
    -  "devDependencies": {
    -    "ava": "*",
    -    "tempfile": "^1.1.1",
    -    "xo": "*"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f",
    -    "tarball": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.10.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "f2d7c1ff74fbac82b2cff038e311ef4b075d9184",
    -  "homepage": "https://github.com/sindresorhus/find-up",
    -  "keywords": [
    -    "find",
    -    "up",
    -    "find-up",
    -    "findup",
    -    "look-up",
    -    "look",
    -    "file",
    -    "search",
    -    "match",
    -    "package",
    -    "resolve",
    -    "parent",
    -    "parents",
    -    "folder",
    -    "directory",
    -    "dir",
    -    "walk",
    -    "walking",
    -    "path"
    -  ],
    -  "license": "MIT",
    -  "maintainers": [
    -    {
    -      "name": "sindresorhus",
    -      "email": "sindresorhus@gmail.com"
    -    }
    -  ],
    -  "name": "find-up",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/sindresorhus/find-up.git"
    -  },
    -  "scripts": {
    -    "test": "xo && ava"
    -  },
    -  "version": "1.1.2"
    -}
    diff --git a/node_modules/find-up/readme.md b/node_modules/find-up/readme.md
    deleted file mode 100644
    index 9ea0611..0000000
    --- a/node_modules/find-up/readme.md
    +++ /dev/null
    @@ -1,72 +0,0 @@
    -# find-up [![Build Status](https://travis-ci.org/sindresorhus/find-up.svg?branch=master)](https://travis-ci.org/sindresorhus/find-up)
    -
    -> Find a file by walking up parent directories
    -
    -
    -## Install
    -
    -```
    -$ npm install --save find-up
    -```
    -
    -
    -## Usage
    -
    -```
    -/
    -└── Users
    -    └── sindresorhus
    -        ├── unicorn.png
    -        └── foo
    -            └── bar
    -                ├── baz
    -                └── example.js
    -```
    -
    -```js
    -// example.js
    -const findUp = require('find-up');
    -
    -findUp('unicorn.png').then(filepath => {
    -	console.log(filepath);
    -	//=> '/Users/sindresorhus/unicorn.png'
    -});
    -```
    -
    -
    -## API
    -
    -### findUp(filename, [options])
    -
    -Returns a promise for the filepath or `null`.
    -
    -### findUp.sync(filename, [options])
    -
    -Returns a filepath or `null`.
    -
    -#### filename
    -
    -Type: `string`
    -
    -Filename of the file to find.
    -
    -#### options
    -
    -##### cwd
    -
    -Type: `string`  
    -Default: `process.cwd()`
    -
    -Directory to start from.
    -
    -
    -## Related
    -
    -- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module
    -- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file
    -- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package
    -
    -
    -## License
    -
    -MIT © [Sindre Sorhus](http://sindresorhus.com)
    diff --git a/node_modules/findup-sync/README.md b/node_modules/findup-sync/README.md
    deleted file mode 100644
    index c8c4a0b..0000000
    --- a/node_modules/findup-sync/README.md
    +++ /dev/null
    @@ -1,67 +0,0 @@
    -# findup-sync  [![Build Status](https://travis-ci.org/js-cli/node-findup-sync.svg)](https://travis-ci.org/js-cli/node-findup-sync)  [![NPM version](https://badge.fury.io/js/findup-sync.svg)](http://badge.fury.io/js/findup-sync)
    -
    -> Find the first file matching a given pattern in the current directory or the nearest ancestor directory.
    -
    -Matching is done with [micromatch][], please report any matching related issues on that repository. 
    -
    -## Install with [npm](npmjs.org)
    -
    -```bash
    -npm i findup-sync --save
    -```
    -
    -## Usage
    -
    -```js
    -var findup = require('findup-sync');
    -findup(patternOrPatterns [, micromatchOptions]);
    -
    -// Start looking in the CWD.
    -var filepath1 = findup('{a,b}*.txt');
    -
    -// Start looking somewhere else, and ignore case (probably a good idea).
    -var filepath2 = findup('{a,b}*.txt', {cwd: '/some/path', nocase: true});
    -```
    -
    -* `patterns` **{String|Array}**: Glob pattern(s) or file path(s) to match against.    
    -* `options` **{Object}**: Options to pass to [micromatch]. Note that if you want to start in a different directory than the current working directory, specify a `cwd` property here.    
    -* `returns` **{String}**: Returns the first matching file.
    -
    -## Running tests
    -
    -Install dev dependencies:
    -
    -```bash
    -npm i -d && npm test
    -```
    -
    -## Contributing
    -
    -In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/)
    -
    -For bugs and feature requests, [please create an issue](https://github.com/cowboy/node-findup-sync/issues).
    -
    -## Release History
    -
    -2015-01-30 - v0.4.0 - Refactored, not also uses [micromatch][] instead of minimatch.  
    -2015-09-14 - v0.3.0 - updated glob to ~5.0.  
    -2014-12-17 - v0.2.1 - Updated to glob 4.3.  
    -2014-12-16 - v0.2.0 - Removed lodash, updated to glob 4.x.  
    -2014-03-14 - v0.1.3 - Updated dependencies.  
    -2013-03-08 - v0.1.2 - Updated dependencies. Fixed a Node 0.9.x bug. Updated unit tests to work cross-platform.  
    -2012-11-15 - v0.1.1 - Now works without an options object.  
    -2012-11-01 - v0.1.0 - Initial release.  
    -
    -## Authors
    -
    -**"Cowboy" Ben Alman**
    - 
    -+ [github/cowboy](https://github.com/cowboy)
    -+ [twitter/cowboy](http://twitter.com/cowboy) 
    -
    -## License
    -
    -Copyright (c) 2012-2016 "Cowboy" Ben Alman  
    -Released under the MIT license
    -
    -[micromatch]: http://github.com/jonschlinkert/micromatch
    diff --git a/node_modules/findup-sync/index.js b/node_modules/findup-sync/index.js
    deleted file mode 100644
    index b843495..0000000
    --- a/node_modules/findup-sync/index.js
    +++ /dev/null
    @@ -1,85 +0,0 @@
    -'use strict';
    -
    -/**
    - * Module dependencies
    - */
    -
    -var fs = require('fs');
    -var path = require('path');
    -var isGlob = require('is-glob');
    -var resolveDir = require('resolve-dir');
    -var detect = require('detect-file');
    -var mm = require('micromatch');
    -
    -/**
    - * @param  {String|Array} `pattern` Glob pattern or file path(s) to match against.
    - * @param  {Object} `options` Options to pass to [micromatch]. Note that if you want to start in a different directory than the current working directory, specify the `options.cwd` property here.
    - * @return {String} Returns the first matching file.
    - * @api public
    - */
    -
    -module.exports = function(patterns, options) {
    -  options = options || {};
    -  var cwd = path.resolve(resolveDir(options.cwd || ''));
    -
    -  if (typeof patterns === 'string') {
    -    return lookup(cwd, [patterns], options);
    -  }
    -
    -  if (!Array.isArray(patterns)) {
    -    throw new TypeError('findup-sync expects a string or array as the first argument.');
    -  }
    -
    -  return lookup(cwd, patterns, options);
    -};
    -
    -function lookup(cwd, patterns, options) {
    -  var len = patterns.length;
    -  var idx = -1;
    -  var res;
    -
    -  while (++idx < len) {
    -    if (isGlob(patterns[idx])) {
    -      res = matchFile(cwd, patterns[idx], options);
    -    } else {
    -      res = findFile(cwd, patterns[idx], options);
    -    }
    -    if (res) {
    -      return res;
    -    }
    -  }
    -
    -  var dir = path.dirname(cwd);
    -  if (dir === cwd) {
    -    return null;
    -  }
    -  return lookup(dir, patterns, options);
    -}
    -
    -function matchFile(cwd, pattern, opts) {
    -  var isMatch = mm.matcher(pattern, opts);
    -  var files = tryReaddirSync(cwd);
    -  var len = files.length;
    -  var idx = -1;
    -
    -  while (++idx < len) {
    -    var name = files[idx];
    -    var fp = path.join(cwd, name);
    -    if (isMatch(name) || isMatch(fp)) {
    -      return fp;
    -    }
    -  }
    -  return null;
    -}
    -
    -function findFile(cwd, filename, options) {
    -  var fp = cwd ? path.resolve(cwd, filename) : filename;
    -  return detect(fp, options);
    -}
    -
    -function tryReaddirSync(fp) {
    -  try {
    -    return fs.readdirSync(fp);
    -  } catch(err) {}
    -  return [];
    -}
    diff --git a/node_modules/findup-sync/package.json b/node_modules/findup-sync/package.json
    deleted file mode 100644
    index b3b0c59..0000000
    --- a/node_modules/findup-sync/package.json
    +++ /dev/null
    @@ -1,128 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "findup-sync@^0.4.2",
    -        "scope": null,
    -        "escapedName": "findup-sync",
    -        "name": "findup-sync",
    -        "rawSpec": "^0.4.2",
    -        "spec": ">=0.4.2 <0.5.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/liftoff"
    -    ]
    -  ],
    -  "_from": "findup-sync@>=0.4.2 <0.5.0",
    -  "_id": "findup-sync@0.4.3",
    -  "_inCache": true,
    -  "_location": "/findup-sync",
    -  "_nodeVersion": "0.10.41",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/findup-sync-0.4.3.tgz_1476308790543_0.40729925991036"
    -  },
    -  "_npmUser": {
    -    "name": "phated",
    -    "email": "blaine.bublitz@gmail.com"
    -  },
    -  "_npmVersion": "2.15.2",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "findup-sync@^0.4.2",
    -    "scope": null,
    -    "escapedName": "findup-sync",
    -    "name": "findup-sync",
    -    "rawSpec": "^0.4.2",
    -    "spec": ">=0.4.2 <0.5.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/liftoff"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.4.3.tgz",
    -  "_shasum": "40043929e7bc60adf0b7f4827c4c6e75a0deca12",
    -  "_shrinkwrap": null,
    -  "_spec": "findup-sync@^0.4.2",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/liftoff",
    -  "author": {
    -    "name": "\"Cowboy\" Ben Alman",
    -    "url": "http://benalman.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/cowboy/node-findup-sync/issues"
    -  },
    -  "dependencies": {
    -    "detect-file": "^0.1.0",
    -    "is-glob": "^2.0.1",
    -    "micromatch": "^2.3.7",
    -    "resolve-dir": "^0.1.0"
    -  },
    -  "description": "Find the first file matching a given pattern in the current directory or the nearest ancestor directory.",
    -  "devDependencies": {
    -    "fs-exists-sync": "^0.1.0",
    -    "grunt": "^1.0.1",
    -    "grunt-contrib-jshint": "^0.12.0",
    -    "is-absolute": "^0.2.3",
    -    "minimist": "^1.2.0",
    -    "mocha": "^2.4.5",
    -    "normalize-path": "^2.0.1",
    -    "os-homedir": "^1.0.1",
    -    "resolve": "^1.1.7"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "40043929e7bc60adf0b7f4827c4c6e75a0deca12",
    -    "tarball": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.4.3.tgz"
    -  },
    -  "engines": {
    -    "node": ">= 0.8.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "701fd1044e1e26936aa066a35281ffdfb0b37d43",
    -  "homepage": "https://github.com/cowboy/node-findup-sync",
    -  "keywords": [
    -    "file",
    -    "find",
    -    "find-up",
    -    "findup",
    -    "glob",
    -    "match",
    -    "pattern",
    -    "resolve",
    -    "search"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "cowboy",
    -      "email": "cowboy@rj3.net"
    -    },
    -    {
    -      "name": "jonschlinkert",
    -      "email": "github@sellside.com"
    -    },
    -    {
    -      "name": "phated",
    -      "email": "blaine.bublitz@gmail.com"
    -    },
    -    {
    -      "name": "tkellen",
    -      "email": "tyler@sleekcode.net"
    -    }
    -  ],
    -  "name": "findup-sync",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/cowboy/node-findup-sync.git"
    -  },
    -  "scripts": {
    -    "test": "grunt && mocha"
    -  },
    -  "version": "0.4.3"
    -}
    diff --git a/node_modules/findup/.npmignore b/node_modules/findup/.npmignore
    deleted file mode 100644
    index 7dccd97..0000000
    --- a/node_modules/findup/.npmignore
    +++ /dev/null
    @@ -1,15 +0,0 @@
    -lib-cov
    -*.seed
    -*.log
    -*.csv
    -*.dat
    -*.out
    -*.pid
    -*.gz
    -
    -pids
    -logs
    -results
    -
    -node_modules
    -npm-debug.log
    \ No newline at end of file
    diff --git a/node_modules/findup/.travis.yml b/node_modules/findup/.travis.yml
    deleted file mode 100644
    index 853e369..0000000
    --- a/node_modules/findup/.travis.yml
    +++ /dev/null
    @@ -1,6 +0,0 @@
    -language: node_js
    -node_js:
    -  - "0.6"
    -  - "0.8"
    -  - "0.10"
    -  - "0.11"
    diff --git a/node_modules/findup/README.md b/node_modules/findup/README.md
    deleted file mode 100644
    index 142fb3f..0000000
    --- a/node_modules/findup/README.md
    +++ /dev/null
    @@ -1,119 +0,0 @@
    -[![build status](https://secure.travis-ci.org/Filirom1/findup.png)](http://travis-ci.org/Filirom1/findup)
    -Find-up
    -=======
    -
    -### Install
    -
    -    npm install -g findup
    -
    -### Usage
    -
    -Find up a file in ancestor's dir
    -
    -
    -    .
    -    ├── config.json
    -    └── f
    -        └── e
    -            └── d
    -                └── c
    -                    ├── b
    -                    │   └── a
    -                    └── config.json
    -
    -#### Async
    -
    -findup(dir, fileName, callback)
    -findup(dir, iterator, callback) with `iterator(dir, cb)` where cb only accept `true` or `false`
    -
    -    var findup = require('findup');
    -
    -
    -    findup(__dirname + '/f/e/d/c/b/a', 'config.json', function(err, dir){
    -      // if(e) e === new Error('not found')
    -      // dir === '/f/e/d/c'
    -    });
    -
    -or
    -
    -    findup(__dirname + '/f/e/d/c/b/a', function(dir, cb){
    -      require('path').exists(dir + '/config.json', cb);
    -    }, function(err, dir){
    -      // if(e) e === new Error('not found')
    -      // dir === '/f/e/d/c'
    -    });
    -
    -
    -#### EventEmitter
    -
    -findup(dir, fileName)
    -
    -    var findup = require('findup');
    -    var fup = findup(__dirname + '/f/e/d/c/b/a', 'config.json');
    -
    -findup(dir, iterator) with `iterator(dir, cb)` where cb only accept `true` or `false`
    -
    -    var findup = require('findup');
    -    var fup = findup(__dirname + '/f/e/d/c/b/a', function(dir, cb){
    -      require('path').exists(dir + '/config.json', cb);
    -    });
    -
    -findup return an EventEmitter. 3 events are emitted: `found`, `error`, `end`
    -
    -`found` event is emitted each time a file is found.
    -
    -You can stop the traversing by calling `stop` manually.
    -
    -    fup.on('found', function(dir){
    -      // dir === '/f/e/d/c'
    -      fup.stop();
    -    });
    -
    -`error` event is emitted when error happens
    -
    -    fup.on('error', function(e){
    -      // if(e) e === new Error('not found')
    -    });
    -
    -`end` event is emitted at the end of the traversing or after `stop()` is
    -called.
    -
    -    fup.on('end', function(){
    -      // happy end
    -    });
    -
    -#### Sync
    -
    -findup(dir, fileName)
    -findup(dir, iteratorSync) with `iteratorSync` return `true` or `false`
    -
    -    var findup = require('findup');
    -
    -    try{
    -      var dir = findup.sync(__dirname + '/f/e/d/c/b/a', 'config.json'); // dir === '/f/e/d/c'
    -    }catch(e){
    -      // if(e) e === new Error('not found')
    -    }
    -
    -#### CLI
    -
    -    npm install -g findup
    -
    -    $ cd test/fixture/f/e/d/c/b/a/
    -    $ findup package.json
    -    /root/findup/package.json
    -
    -Usage
    -
    -    $ findup -h
    -
    -    Usage: findup [FILE]
    -
    -        --name, -n       The name of the file to found
    -        --dir, -d        The directoy where we will start walking up    $PWD
    -        --help, -h       show usage                                     false
    -        --verbose, -v    print log                                      false
    -
    -### LICENSE MIT
    -
    -### Read the tests :)
    diff --git a/node_modules/findup/bin/findup.js b/node_modules/findup/bin/findup.js
    deleted file mode 100755
    index c9073c4..0000000
    --- a/node_modules/findup/bin/findup.js
    +++ /dev/null
    @@ -1,36 +0,0 @@
    -#!/usr/bin/env node
    -
    -var findup = require('..'),
    -  path = require('path'),
    -  pkg = require('../package'),
    -  program = require('commander'),
    -  options = {},
    -  optionKeys = ['name', 'dir', 'verbose'],
    -  EXIT_FAILURE = -1;
    -  
    -  program
    -    .version(pkg.version)
    -    .option('--name ', 'The name of the file to find', String)
    -    .option('--dir ', 'The directoy where we will start walking up', process.cwd(), path)
    -    .option('--verbose', 'print log', false, Boolean)
    -    .parse(process.argv);
    -
    -optionKeys.forEach(function(optionKey){
    -  options[optionKey] = program[optionKey];
    -});
    -
    -if(program.args && program.args.length >=1 && !options.name){
    -  options.name = program.args[0];
    -}
    -
    -if(!options.name) {
    -  program.outputHelp();
    -  process.exit(EXIT_FAILURE);
    -}
    -
    -var file = options.name;
    -
    -findup(process.cwd(), file, options, function(err, dir){
    -  if(err) return console.error(err.message ? err.message : err);
    -  console.log(path.join(dir, file));
    -});
    diff --git a/node_modules/findup/index.js b/node_modules/findup/index.js
    deleted file mode 100644
    index 1d1cb62..0000000
    --- a/node_modules/findup/index.js
    +++ /dev/null
    @@ -1,95 +0,0 @@
    -var fs   = require('fs'),
    -  Path   = require('path'),
    -  util   = require('util'),
    -  colors = require('colors'),
    -  EE     = require('events').EventEmitter,
    -  fsExists = fs.exists ? fs.exists : Path.exists,
    -  fsExistsSync = fs.existsSync ? fs.existsSync : Path.existsSync;
    -
    -module.exports = function(dir, iterator, options, callback){
    -  return FindUp(dir, iterator, options, callback);
    -};
    -
    -function FindUp(dir, iterator, options, callback){
    -  if (!(this instanceof FindUp)) {
    -    return new FindUp(dir, iterator, options, callback);
    -  }
    -  if(typeof options === 'function'){
    -    callback = options;
    -    options = {};
    -  }
    -  options = options || {};
    -
    -  EE.call(this);
    -  this.found = false;
    -  this.stopPlease = false;
    -  var self = this;
    -
    -  if(typeof iterator === 'string'){
    -    var file = iterator;
    -    iterator = function(dir, cb){
    -      return fsExists(Path.join(dir, file), cb);
    -    };
    -  }
    -
    -  if(callback) {
    -    this.on('found', function(dir){
    -      if(options.verbose) console.log(('found '+ dir ).green);
    -      callback(null, dir);
    -      self.stop();
    -    });
    -
    -    this.on('end', function(){
    -      if(options.verbose) console.log('end'.grey);
    -      if(!self.found) callback(new Error('not found'));
    -    });
    -
    -    this.on('error', function(err){
    -      if(options.verbose) console.log('error'.red, err);
    -      callback(err);
    -    });
    -  }
    -
    -  this._find(dir, iterator, options, callback);
    -}
    -util.inherits(FindUp, EE);
    -
    -FindUp.prototype._find = function(dir, iterator, options, callback){
    -  var self = this;
    -
    -  iterator(dir, function(exists){
    -    if(options.verbose) console.log(('traverse '+ dir).grey);
    -    if(exists) {
    -      self.found = true;
    -      self.emit('found', dir);
    -    }
    -
    -    var parentDir = Path.join(dir, '..');
    -    if (self.stopPlease) return self.emit('end');
    -    if (dir === parentDir) return self.emit('end');
    -    if(dir.indexOf('../../') !== -1 ) return self.emit('error', new Error(dir + ' is not correct.'));
    -    self._find(parentDir, iterator, options, callback);
    -  });
    -};
    -
    -FindUp.prototype.stop = function(){
    -  this.stopPlease = true;
    -};
    -
    -module.exports.FindUp = FindUp;
    -
    -module.exports.sync = function(dir, iteratorSync){
    -  if(typeof iteratorSync === 'string'){
    -    var file = iteratorSync;
    -    iteratorSync = function(dir){
    -      return fsExistsSync(Path.join(dir, file));
    -    };
    -  }
    -  var initialDir = dir;
    -  while(dir !== Path.join(dir, '..')){
    -    if(dir.indexOf('../../') !== -1 ) throw new Error(initialDir + ' is not correct.');
    -    if(iteratorSync(dir)) return dir;
    -    dir = Path.join(dir, '..');
    -  }
    -  throw new Error('not found');
    -};
    diff --git a/node_modules/findup/node_modules/colors/MIT-LICENSE.txt b/node_modules/findup/node_modules/colors/MIT-LICENSE.txt
    deleted file mode 100644
    index 7dca107..0000000
    --- a/node_modules/findup/node_modules/colors/MIT-LICENSE.txt
    +++ /dev/null
    @@ -1,22 +0,0 @@
    -Copyright (c) 2010 
    -
    -Marak Squires
    -Alexis Sellier (cloudhead)
    -
    -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.
    \ No newline at end of file
    diff --git a/node_modules/findup/node_modules/colors/ReadMe.md b/node_modules/findup/node_modules/colors/ReadMe.md
    deleted file mode 100644
    index 0eda52d..0000000
    --- a/node_modules/findup/node_modules/colors/ReadMe.md
    +++ /dev/null
    @@ -1,77 +0,0 @@
    -# colors.js - get color and style in your node.js console ( and browser ) like what
    -
    -
    -
    -
    -## Installation
    -
    -    npm install colors
    -
    -## colors and styles!
    -
    -- bold
    -- italic
    -- underline
    -- inverse
    -- yellow
    -- cyan
    -- white
    -- magenta
    -- green
    -- red
    -- grey
    -- blue
    -- rainbow
    -- zebra
    -- random
    -
    -## Usage
    -
    -``` js
    -var colors = require('./colors');
    -
    -console.log('hello'.green); // outputs green text
    -console.log('i like cake and pies'.underline.red) // outputs red underlined text
    -console.log('inverse the color'.inverse); // inverses the color
    -console.log('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)
    -```
    -
    -# Creating Custom themes
    -
    -```js
    -
    -var colors = require('colors');
    -
    -colors.setTheme({
    -  silly: 'rainbow',
    -  input: 'grey',
    -  verbose: 'cyan',
    -  prompt: 'grey',
    -  info: 'green',
    -  data: 'grey',
    -  help: 'cyan',
    -  warn: 'yellow',
    -  debug: 'blue',
    -  error: 'red'
    -});
    -
    -// outputs red text
    -console.log("this is an error".error);
    -
    -// outputs yellow text
    -console.log("this is a warning".warn);
    -```
    -
    -
    -### Contributors 
    -
    -Marak (Marak Squires)
    -Alexis Sellier (cloudhead)
    -mmalecki (Maciej Małecki)
    -nicoreed (Nico Reed)
    -morganrallen (Morgan Allen)
    -JustinCampbell (Justin Campbell)
    -ded (Dustin Diaz)
    -
    -
    -####  , Marak Squires , Justin Campbell, Dustin Diaz (@ded)
    diff --git a/node_modules/findup/node_modules/colors/colors.js b/node_modules/findup/node_modules/colors/colors.js
    deleted file mode 100644
    index 7a537d8..0000000
    --- a/node_modules/findup/node_modules/colors/colors.js
    +++ /dev/null
    @@ -1,342 +0,0 @@
    -/*
    -colors.js
    -
    -Copyright (c) 2010
    -
    -Marak Squires
    -Alexis Sellier (cloudhead)
    -
    -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.
    -
    -*/
    -
    -var isHeadless = false;
    -
    -if (typeof module !== 'undefined') {
    -  isHeadless = true;
    -}
    -
    -if (!isHeadless) {
    -  var exports = {};
    -  var module = {};
    -  var colors = exports;
    -  exports.mode = "browser";
    -} else {
    -  exports.mode = "console";
    -}
    -
    -//
    -// Prototypes the string object to have additional method calls that add terminal colors
    -//
    -var addProperty = function (color, func) {
    -  exports[color] = function (str) {
    -    return func.apply(str);
    -  };
    -  String.prototype.__defineGetter__(color, func);
    -};
    -
    -function stylize(str, style) {
    -
    -  var styles;
    -
    -  if (exports.mode === 'console') {
    -    styles = {
    -      //styles
    -      'bold'      : ['\x1B[1m',  '\x1B[22m'],
    -      'italic'    : ['\x1B[3m',  '\x1B[23m'],
    -      'underline' : ['\x1B[4m',  '\x1B[24m'],
    -      'inverse'   : ['\x1B[7m',  '\x1B[27m'],
    -      'strikethrough' : ['\x1B[9m',  '\x1B[29m'],
    -      //text colors
    -      //grayscale
    -      'white'     : ['\x1B[37m', '\x1B[39m'],
    -      'grey'      : ['\x1B[90m', '\x1B[39m'],
    -      'black'     : ['\x1B[30m', '\x1B[39m'],
    -      //colors
    -      'blue'      : ['\x1B[34m', '\x1B[39m'],
    -      'cyan'      : ['\x1B[36m', '\x1B[39m'],
    -      'green'     : ['\x1B[32m', '\x1B[39m'],
    -      'magenta'   : ['\x1B[35m', '\x1B[39m'],
    -      'red'       : ['\x1B[31m', '\x1B[39m'],
    -      'yellow'    : ['\x1B[33m', '\x1B[39m'],
    -      //background colors
    -      //grayscale
    -      'whiteBG'     : ['\x1B[47m', '\x1B[49m'],
    -      'greyBG'      : ['\x1B[49;5;8m', '\x1B[49m'],
    -      'blackBG'     : ['\x1B[40m', '\x1B[49m'],
    -      //colors
    -      'blueBG'      : ['\x1B[44m', '\x1B[49m'],
    -      'cyanBG'      : ['\x1B[46m', '\x1B[49m'],
    -      'greenBG'     : ['\x1B[42m', '\x1B[49m'],
    -      'magentaBG'   : ['\x1B[45m', '\x1B[49m'],
    -      'redBG'       : ['\x1B[41m', '\x1B[49m'],
    -      'yellowBG'    : ['\x1B[43m', '\x1B[49m']
    -    };
    -  } else if (exports.mode === 'browser') {
    -    styles = {
    -      //styles
    -      'bold'      : ['',  ''],
    -      'italic'    : ['',  ''],
    -      'underline' : ['',  ''],
    -      'inverse'   : ['',  ''],
    -      'strikethrough' : ['',  ''],
    -      //text colors
    -      //grayscale
    -      'white'     : ['',   ''],
    -      'grey'      : ['',    ''],
    -      'black'     : ['',   ''],
    -      //colors
    -      'blue'      : ['',    ''],
    -      'cyan'      : ['',    ''],
    -      'green'     : ['',   ''],
    -      'magenta'   : ['', ''],
    -      'red'       : ['',     ''],
    -      'yellow'    : ['',  ''],
    -      //background colors
    -      //grayscale
    -      'whiteBG'     : ['',   ''],
    -      'greyBG'      : ['',    ''],
    -      'blackBG'     : ['',   ''],
    -      //colors
    -      'blueBG'      : ['',    ''],
    -      'cyanBG'      : ['',    ''],
    -      'greenBG'     : ['',   ''],
    -      'magentaBG'   : ['', ''],
    -      'redBG'       : ['',     ''],
    -      'yellowBG'    : ['',  '']
    -    };
    -  } else if (exports.mode === 'none') {
    -    return str + '';
    -  } else {
    -    console.log('unsupported mode, try "browser", "console" or "none"');
    -  }
    -  return styles[style][0] + str + styles[style][1];
    -}
    -
    -function applyTheme(theme) {
    -
    -  //
    -  // Remark: This is a list of methods that exist
    -  // on String that you should not overwrite.
    -  //
    -  var stringPrototypeBlacklist = [
    -    '__defineGetter__', '__defineSetter__', '__lookupGetter__', '__lookupSetter__', 'charAt', 'constructor',
    -    'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', 'charCodeAt',
    -    'indexOf', 'lastIndexof', 'length', 'localeCompare', 'match', 'replace', 'search', 'slice', 'split', 'substring',
    -    'toLocaleLowerCase', 'toLocaleUpperCase', 'toLowerCase', 'toUpperCase', 'trim', 'trimLeft', 'trimRight'
    -  ];
    -
    -  Object.keys(theme).forEach(function (prop) {
    -    if (stringPrototypeBlacklist.indexOf(prop) !== -1) {
    -      console.log('warn: '.red + ('String.prototype' + prop).magenta + ' is probably something you don\'t want to override. Ignoring style name');
    -    }
    -    else {
    -      if (typeof(theme[prop]) === 'string') {
    -        addProperty(prop, function () {
    -          return exports[theme[prop]](this);
    -        });
    -      }
    -      else {
    -        addProperty(prop, function () {
    -          var ret = this;
    -          for (var t = 0; t < theme[prop].length; t++) {
    -            ret = exports[theme[prop][t]](ret);
    -          }
    -          return ret;
    -        });
    -      }
    -    }
    -  });
    -}
    -
    -
    -//
    -// Iterate through all default styles and colors
    -//
    -var x = ['bold', 'underline', 'strikethrough', 'italic', 'inverse', 'grey', 'black', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta', 'greyBG', 'blackBG', 'yellowBG', 'redBG', 'greenBG', 'blueBG', 'whiteBG', 'cyanBG', 'magentaBG'];
    -x.forEach(function (style) {
    -
    -  // __defineGetter__ at the least works in more browsers
    -  // http://robertnyman.com/javascript/javascript-getters-setters.html
    -  // Object.defineProperty only works in Chrome
    -  addProperty(style, function () {
    -    return stylize(this, style);
    -  });
    -});
    -
    -function sequencer(map) {
    -  return function () {
    -    if (!isHeadless) {
    -      return this.replace(/( )/, '$1');
    -    }
    -    var exploded = this.split(""), i = 0;
    -    exploded = exploded.map(map);
    -    return exploded.join("");
    -  };
    -}
    -
    -var rainbowMap = (function () {
    -  var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta']; //RoY G BiV
    -  return function (letter, i, exploded) {
    -    if (letter === " ") {
    -      return letter;
    -    } else {
    -      return stylize(letter, rainbowColors[i++ % rainbowColors.length]);
    -    }
    -  };
    -})();
    -
    -exports.themes = {};
    -
    -exports.addSequencer = function (name, map) {
    -  addProperty(name, sequencer(map));
    -};
    -
    -exports.addSequencer('rainbow', rainbowMap);
    -exports.addSequencer('zebra', function (letter, i, exploded) {
    -  return i % 2 === 0 ? letter : letter.inverse;
    -});
    -
    -exports.setTheme = function (theme) {
    -  if (typeof theme === 'string') {
    -    try {
    -      exports.themes[theme] = require(theme);
    -      applyTheme(exports.themes[theme]);
    -      return exports.themes[theme];
    -    } catch (err) {
    -      console.log(err);
    -      return err;
    -    }
    -  } else {
    -    applyTheme(theme);
    -  }
    -};
    -
    -
    -addProperty('stripColors', function () {
    -  return ("" + this).replace(/\x1B\[\d+m/g, '');
    -});
    -
    -// please no
    -function zalgo(text, options) {
    -  var soul = {
    -    "up" : [
    -      '̍', '̎', '̄', '̅',
    -      '̿', '̑', '̆', '̐',
    -      '͒', '͗', '͑', '̇',
    -      '̈', '̊', '͂', '̓',
    -      '̈', '͊', '͋', '͌',
    -      '̃', '̂', '̌', '͐',
    -      '̀', '́', '̋', '̏',
    -      '̒', '̓', '̔', '̽',
    -      '̉', 'ͣ', 'ͤ', 'ͥ',
    -      'ͦ', 'ͧ', 'ͨ', 'ͩ',
    -      'ͪ', 'ͫ', 'ͬ', 'ͭ',
    -      'ͮ', 'ͯ', '̾', '͛',
    -      '͆', '̚'
    -    ],
    -    "down" : [
    -      '̖', '̗', '̘', '̙',
    -      '̜', '̝', '̞', '̟',
    -      '̠', '̤', '̥', '̦',
    -      '̩', '̪', '̫', '̬',
    -      '̭', '̮', '̯', '̰',
    -      '̱', '̲', '̳', '̹',
    -      '̺', '̻', '̼', 'ͅ',
    -      '͇', '͈', '͉', '͍',
    -      '͎', '͓', '͔', '͕',
    -      '͖', '͙', '͚', '̣'
    -    ],
    -    "mid" : [
    -      '̕', '̛', '̀', '́',
    -      '͘', '̡', '̢', '̧',
    -      '̨', '̴', '̵', '̶',
    -      '͜', '͝', '͞',
    -      '͟', '͠', '͢', '̸',
    -      '̷', '͡', ' ҉'
    -    ]
    -  },
    -  all = [].concat(soul.up, soul.down, soul.mid),
    -  zalgo = {};
    -
    -  function randomNumber(range) {
    -    var r = Math.floor(Math.random() * range);
    -    return r;
    -  }
    -
    -  function is_char(character) {
    -    var bool = false;
    -    all.filter(function (i) {
    -      bool = (i === character);
    -    });
    -    return bool;
    -  }
    -
    -  function heComes(text, options) {
    -    var result = '', counts, l;
    -    options = options || {};
    -    options["up"] = options["up"] || true;
    -    options["mid"] = options["mid"] || true;
    -    options["down"] = options["down"] || true;
    -    options["size"] = options["size"] || "maxi";
    -    text = text.split('');
    -    for (l in text) {
    -      if (is_char(l)) {
    -        continue;
    -      }
    -      result = result + text[l];
    -      counts = {"up" : 0, "down" : 0, "mid" : 0};
    -      switch (options.size) {
    -      case 'mini':
    -        counts.up = randomNumber(8);
    -        counts.min = randomNumber(2);
    -        counts.down = randomNumber(8);
    -        break;
    -      case 'maxi':
    -        counts.up = randomNumber(16) + 3;
    -        counts.min = randomNumber(4) + 1;
    -        counts.down = randomNumber(64) + 3;
    -        break;
    -      default:
    -        counts.up = randomNumber(8) + 1;
    -        counts.mid = randomNumber(6) / 2;
    -        counts.down = randomNumber(8) + 1;
    -        break;
    -      }
    -
    -      var arr = ["up", "mid", "down"];
    -      for (var d in arr) {
    -        var index = arr[d];
    -        for (var i = 0 ; i <= counts[index]; i++) {
    -          if (options[index]) {
    -            result = result + soul[index][randomNumber(soul[index].length)];
    -          }
    -        }
    -      }
    -    }
    -    return result;
    -  }
    -  return heComes(text);
    -}
    -
    -
    -// don't summon zalgo
    -addProperty('zalgo', function () {
    -  return zalgo(this);
    -});
    diff --git a/node_modules/findup/node_modules/colors/example.html b/node_modules/findup/node_modules/colors/example.html
    deleted file mode 100644
    index 7a2ae60..0000000
    --- a/node_modules/findup/node_modules/colors/example.html
    +++ /dev/null
    @@ -1,76 +0,0 @@
    -
    -
    -  
    -    
    -    Colors Example
    -    
    -  
    -  
    -    
    -  
    -
    \ No newline at end of file
    diff --git a/node_modules/findup/node_modules/colors/example.js b/node_modules/findup/node_modules/colors/example.js
    deleted file mode 100644
    index b1e03a4..0000000
    --- a/node_modules/findup/node_modules/colors/example.js
    +++ /dev/null
    @@ -1,77 +0,0 @@
    -var colors = require('./colors');
    -
    -//colors.mode = "browser";
    -
    -var test = colors.red("hopefully colorless output");
    -console.log('Rainbows are fun!'.rainbow);
    -console.log('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); // styles not widely supported
    -console.log('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
    -//console.log('zalgo time!'.zalgo);
    -console.log(test.stripColors);
    -console.log("a".grey + " b".black);
    -console.log("Zebras are so fun!".zebra);
    -console.log('background color attack!'.black.whiteBG)
    -
    -//
    -// Remark: .strikethrough may not work with Mac OS Terminal App
    -//
    -console.log("This is " + "not".strikethrough + " fun.");
    -console.log(colors.rainbow('Rainbows are fun!'));
    -console.log(colors.italic('So ') + colors.underline('are') + colors.bold(' styles! ') + colors.inverse('inverse')); // styles not widely supported
    -console.log(colors.bold(colors.italic(colors.underline(colors.red('Chains are also cool.'))))); // styles not widely supported
    -//console.log(colors.zalgo('zalgo time!'));
    -console.log(colors.stripColors(test));
    -console.log(colors.grey("a") + colors.black(" b"));
    -
    -colors.addSequencer("america", function(letter, i, exploded) {
    -  if(letter === " ") return letter;
    -  switch(i%3) {
    -    case 0: return letter.red;
    -    case 1: return letter.white;
    -    case 2: return letter.blue;
    -  }
    -});
    -
    -colors.addSequencer("random", (function() {
    -  var available = ['bold', 'underline', 'italic', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'];
    -
    -  return function(letter, i, exploded) {
    -    return letter === " " ? letter : letter[available[Math.round(Math.random() * (available.length - 1))]];
    -  };
    -})());
    -
    -console.log("AMERICA! F--K YEAH!".america);
    -console.log("So apparently I've been to Mars, with all the little green men. But you know, I don't recall.".random);
    -
    -//
    -// Custom themes
    -//
    -
    -// Load theme with JSON literal
    -colors.setTheme({
    -  silly: 'rainbow',
    -  input: 'grey',
    -  verbose: 'cyan',
    -  prompt: 'grey',
    -  info: 'green',
    -  data: 'grey',
    -  help: 'cyan',
    -  warn: 'yellow',
    -  debug: 'blue',
    -  error: 'red'
    -});
    -
    -// outputs red text
    -console.log("this is an error".error);
    -
    -// outputs yellow text
    -console.log("this is a warning".warn);
    -
    -// outputs grey text
    -console.log("this is an input".input);
    -
    -// Load a theme from file
    -colors.setTheme('./themes/winston-dark.js');
    -
    -console.log("this is an input".input);
    -
    diff --git a/node_modules/findup/node_modules/colors/package.json b/node_modules/findup/node_modules/colors/package.json
    deleted file mode 100644
    index d262b83..0000000
    --- a/node_modules/findup/node_modules/colors/package.json
    +++ /dev/null
    @@ -1,81 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "colors@~0.6.0-1",
    -        "scope": null,
    -        "escapedName": "colors",
    -        "name": "colors",
    -        "rawSpec": "~0.6.0-1",
    -        "spec": ">=0.6.0-1 <0.7.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/findup"
    -    ]
    -  ],
    -  "_from": "colors@>=0.6.0-1 <0.7.0",
    -  "_id": "colors@0.6.2",
    -  "_inCache": true,
    -  "_location": "/findup/colors",
    -  "_npmUser": {
    -    "name": "marak",
    -    "email": "marak.squires@gmail.com"
    -  },
    -  "_npmVersion": "1.2.30",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "colors@~0.6.0-1",
    -    "scope": null,
    -    "escapedName": "colors",
    -    "name": "colors",
    -    "rawSpec": "~0.6.0-1",
    -    "spec": ">=0.6.0-1 <0.7.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/findup"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz",
    -  "_shasum": "2423fe6678ac0c5dae8852e5d0e5be08c997abcc",
    -  "_shrinkwrap": null,
    -  "_spec": "colors@~0.6.0-1",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/findup",
    -  "author": {
    -    "name": "Marak Squires"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/Marak/colors.js/issues"
    -  },
    -  "dependencies": {},
    -  "description": "get colors in your node.js console like what",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "2423fe6678ac0c5dae8852e5d0e5be08c997abcc",
    -    "tarball": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.1.90"
    -  },
    -  "homepage": "https://github.com/Marak/colors.js",
    -  "keywords": [
    -    "ansi",
    -    "terminal",
    -    "colors"
    -  ],
    -  "main": "colors",
    -  "maintainers": [
    -    {
    -      "name": "marak",
    -      "email": "marak.squires@gmail.com"
    -    }
    -  ],
    -  "name": "colors",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+ssh://git@github.com/Marak/colors.js.git"
    -  },
    -  "version": "0.6.2"
    -}
    diff --git a/node_modules/findup/node_modules/colors/test.js b/node_modules/findup/node_modules/colors/test.js
    deleted file mode 100644
    index c32417d..0000000
    --- a/node_modules/findup/node_modules/colors/test.js
    +++ /dev/null
    @@ -1,70 +0,0 @@
    -var assert = require('assert'),
    -    colors = require('./colors');
    -
    -var s = 'string';
    -
    -function a(s, code) {
    -  return '\x1B[' + code.toString() + 'm' + s + '\x1B[39m';
    -}
    -
    -function aE(s, color, code) {
    -  assert.equal(s[color], a(s, code));
    -  assert.equal(colors[color](s), a(s, code));
    -  assert.equal(s[color], colors[color](s));
    -  assert.equal(s[color].stripColors, s);
    -  assert.equal(s[color].stripColors, colors.stripColors(s));
    -}
    -
    -function h(s, color) {
    -  return '' + s + '';
    -}
    -
    -var stylesColors = ['white', 'black', 'blue', 'cyan', 'green', 'magenta', 'red', 'yellow'];
    -var stylesAll = stylesColors.concat(['bold', 'italic', 'underline', 'inverse', 'rainbow']);
    -
    -colors.mode = 'console';
    -assert.equal(s.bold, '\x1B[1m' + s + '\x1B[22m');
    -assert.equal(s.italic, '\x1B[3m' + s + '\x1B[23m');
    -assert.equal(s.underline, '\x1B[4m' + s + '\x1B[24m');
    -assert.equal(s.strikethrough, '\x1B[9m' + s + '\x1B[29m');
    -assert.equal(s.inverse, '\x1B[7m' + s + '\x1B[27m');
    -assert.ok(s.rainbow);
    -aE(s, 'white', 37);
    -aE(s, 'grey', 90);
    -aE(s, 'black', 30);
    -aE(s, 'blue', 34);
    -aE(s, 'cyan', 36);
    -aE(s, 'green', 32);
    -aE(s, 'magenta', 35);
    -aE(s, 'red', 31);
    -aE(s, 'yellow', 33);
    -assert.equal(s, 'string');
    -
    -colors.setTheme({error:'red'});
    -
    -assert.equal(typeof("astring".red),'string');
    -assert.equal(typeof("astring".error),'string');
    -
    -colors.mode = 'browser';
    -assert.equal(s.bold, '' + s + '');
    -assert.equal(s.italic, '' + s + '');
    -assert.equal(s.underline, '' + s + '');
    -assert.equal(s.strikethrough, '' + s + '');
    -assert.equal(s.inverse, '' + s + '');
    -assert.ok(s.rainbow);
    -stylesColors.forEach(function (color) {
    -  assert.equal(s[color], h(s, color));
    -  assert.equal(colors[color](s), h(s, color));
    -});
    -
    -assert.equal(typeof("astring".red),'string');
    -assert.equal(typeof("astring".error),'string');
    -
    -colors.mode = 'none';
    -stylesAll.forEach(function (style) {
    -  assert.equal(s[style], s);
    -  assert.equal(colors[style](s), s);
    -});
    -
    -assert.equal(typeof("astring".red),'string');
    -assert.equal(typeof("astring".error),'string');
    diff --git a/node_modules/findup/node_modules/colors/themes/winston-dark.js b/node_modules/findup/node_modules/colors/themes/winston-dark.js
    deleted file mode 100644
    index 49a905b..0000000
    --- a/node_modules/findup/node_modules/colors/themes/winston-dark.js
    +++ /dev/null
    @@ -1,12 +0,0 @@
    -module['exports'] = {
    -  silly: 'rainbow',
    -  input: 'black',
    -  verbose: 'cyan',
    -  prompt: 'grey',
    -  info: 'green',
    -  data: 'grey',
    -  help: 'cyan',
    -  warn: 'yellow',
    -  debug: 'blue',
    -  error: 'red'
    -};
    \ No newline at end of file
    diff --git a/node_modules/findup/node_modules/colors/themes/winston-light.js b/node_modules/findup/node_modules/colors/themes/winston-light.js
    deleted file mode 100644
    index 571972c..0000000
    --- a/node_modules/findup/node_modules/colors/themes/winston-light.js
    +++ /dev/null
    @@ -1,12 +0,0 @@
    -module['exports'] = {
    -  silly: 'rainbow',
    -  input: 'grey',
    -  verbose: 'cyan',
    -  prompt: 'grey',
    -  info: 'green',
    -  data: 'grey',
    -  help: 'cyan',
    -  warn: 'yellow',
    -  debug: 'blue',
    -  error: 'red'
    -};
    \ No newline at end of file
    diff --git a/node_modules/findup/node_modules/commander/Readme.md b/node_modules/findup/node_modules/commander/Readme.md
    deleted file mode 100644
    index d164401..0000000
    --- a/node_modules/findup/node_modules/commander/Readme.md
    +++ /dev/null
    @@ -1,195 +0,0 @@
    -# Commander.js
    -
    -  The complete solution for [node.js](http://nodejs.org) command-line interfaces, inspired by Ruby's [commander](https://github.com/visionmedia/commander).
    -
    - [![Build Status](https://secure.travis-ci.org/visionmedia/commander.js.png)](http://travis-ci.org/visionmedia/commander.js)
    -
    -## Installation
    -
    -    $ npm install commander
    -
    -## Option parsing
    -
    - Options with commander are defined with the `.option()` method, also serving as documentation for the options. The example below parses args and options from `process.argv`, leaving remaining args as the `program.args` array which were not consumed by options.
    -
    -```js
    -#!/usr/bin/env node
    -
    -/**
    - * Module dependencies.
    - */
    -
    -var program = require('commander');
    -
    -program
    -  .version('0.0.1')
    -  .option('-p, --peppers', 'Add peppers')
    -  .option('-P, --pineapple', 'Add pineapple')
    -  .option('-b, --bbq', 'Add bbq sauce')
    -  .option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble')
    -  .parse(process.argv);
    -
    -console.log('you ordered a pizza with:');
    -if (program.peppers) console.log('  - peppers');
    -if (program.pineapple) console.log('  - pineapple');
    -if (program.bbq) console.log('  - bbq');
    -console.log('  - %s cheese', program.cheese);
    -```
    -
    - Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-cased, becoming `program.templateEngine` etc.
    -
    -## Automated --help
    -
    - The help information is auto-generated based on the information commander already knows about your program, so the following `--help` info is for free:
    -
    -```  
    - $ ./examples/pizza --help
    -
    -   Usage: pizza [options]
    -
    -   Options:
    -
    -     -V, --version        output the version number
    -     -p, --peppers        Add peppers
    -     -P, --pineapple      Add pineapple
    -     -b, --bbq            Add bbq sauce
    -     -c, --cheese   Add the specified type of cheese [marble]
    -     -h, --help           output usage information
    -
    -```
    -
    -## Coercion
    -
    -```js
    -function range(val) {
    -  return val.split('..').map(Number);
    -}
    -
    -function list(val) {
    -  return val.split(',');
    -}
    -
    -program
    -  .version('0.0.1')
    -  .usage('[options] ')
    -  .option('-i, --integer ', 'An integer argument', parseInt)
    -  .option('-f, --float ', 'A float argument', parseFloat)
    -  .option('-r, --range ..', 'A range', range)
    -  .option('-l, --list ', 'A list', list)
    -  .option('-o, --optional [value]', 'An optional value')
    -  .parse(process.argv);
    -
    -console.log(' int: %j', program.integer);
    -console.log(' float: %j', program.float);
    -console.log(' optional: %j', program.optional);
    -program.range = program.range || [];
    -console.log(' range: %j..%j', program.range[0], program.range[1]);
    -console.log(' list: %j', program.list);
    -console.log(' args: %j', program.args);
    -```
    -
    -## Custom help
    -
    - You can display arbitrary `-h, --help` information
    - by listening for "--help". Commander will automatically
    - exit once you are done so that the remainder of your program
    - does not execute causing undesired behaviours, for example
    - in the following executable "stuff" will not output when
    - `--help` is used.
    -
    -```js
    -#!/usr/bin/env node
    -
    -/**
    - * Module dependencies.
    - */
    -
    -var program = require('../');
    -
    -function list(val) {
    -  return val.split(',').map(Number);
    -}
    -
    -program
    -  .version('0.0.1')
    -  .option('-f, --foo', 'enable some foo')
    -  .option('-b, --bar', 'enable some bar')
    -  .option('-B, --baz', 'enable some baz');
    -
    -// must be before .parse() since
    -// node's emit() is immediate
    -
    -program.on('--help', function(){
    -  console.log('  Examples:');
    -  console.log('');
    -  console.log('    $ custom-help --help');
    -  console.log('    $ custom-help -h');
    -  console.log('');
    -});
    -
    -program.parse(process.argv);
    -
    -console.log('stuff');
    -```
    -
    -yielding the following help output:
    -
    -```
    -
    -Usage: custom-help [options]
    -
    -Options:
    -
    -  -h, --help     output usage information
    -  -V, --version  output the version number
    -  -f, --foo      enable some foo
    -  -b, --bar      enable some bar
    -  -B, --baz      enable some baz
    -
    -Examples:
    -
    -  $ custom-help --help
    -  $ custom-help -h
    -
    -```
    -
    -## .outputHelp()
    -
    -  Output help information without exiting.
    -
    -## .help()
    -
    -  Output help information and exit immediately.
    -
    -## Links
    -
    - - [API documentation](http://visionmedia.github.com/commander.js/)
    - - [ascii tables](https://github.com/LearnBoost/cli-table)
    - - [progress bars](https://github.com/visionmedia/node-progress)
    - - [more progress bars](https://github.com/substack/node-multimeter)
    - - [examples](https://github.com/visionmedia/commander.js/tree/master/examples)
    -
    -## License 
    -
    -(The MIT License)
    -
    -Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
    -
    -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/findup/node_modules/commander/index.js b/node_modules/findup/node_modules/commander/index.js
    deleted file mode 100644
    index 790a751..0000000
    --- a/node_modules/findup/node_modules/commander/index.js
    +++ /dev/null
    @@ -1,851 +0,0 @@
    -
    -/**
    - * Module dependencies.
    - */
    -
    -var EventEmitter = require('events').EventEmitter;
    -var spawn = require('child_process').spawn;
    -var fs = require('fs');
    -var exists = fs.existsSync;
    -var path = require('path');
    -var dirname = path.dirname;
    -var basename = path.basename;
    -
    -/**
    - * Expose the root command.
    - */
    -
    -exports = module.exports = new Command;
    -
    -/**
    - * Expose `Command`.
    - */
    -
    -exports.Command = Command;
    -
    -/**
    - * Expose `Option`.
    - */
    -
    -exports.Option = Option;
    -
    -/**
    - * Initialize a new `Option` with the given `flags` and `description`.
    - *
    - * @param {String} flags
    - * @param {String} description
    - * @api public
    - */
    -
    -function Option(flags, description) {
    -  this.flags = flags;
    -  this.required = ~flags.indexOf('<');
    -  this.optional = ~flags.indexOf('[');
    -  this.bool = !~flags.indexOf('-no-');
    -  flags = flags.split(/[ ,|]+/);
    -  if (flags.length > 1 && !/^[[<]/.test(flags[1])) this.short = flags.shift();
    -  this.long = flags.shift();
    -  this.description = description || '';
    -}
    -
    -/**
    - * Return option name.
    - *
    - * @return {String}
    - * @api private
    - */
    -
    -Option.prototype.name = function(){
    -  return this.long
    -    .replace('--', '')
    -    .replace('no-', '');
    -};
    -
    -/**
    - * Check if `arg` matches the short or long flag.
    - *
    - * @param {String} arg
    - * @return {Boolean}
    - * @api private
    - */
    -
    -Option.prototype.is = function(arg){
    -  return arg == this.short
    -    || arg == this.long;
    -};
    -
    -/**
    - * Initialize a new `Command`.
    - *
    - * @param {String} name
    - * @api public
    - */
    -
    -function Command(name) {
    -  this.commands = [];
    -  this.options = [];
    -  this._execs = [];
    -  this._args = [];
    -  this._name = name;
    -}
    -
    -/**
    - * Inherit from `EventEmitter.prototype`.
    - */
    -
    -Command.prototype.__proto__ = EventEmitter.prototype;
    -
    -/**
    - * Add command `name`.
    - *
    - * The `.action()` callback is invoked when the
    - * command `name` is specified via __ARGV__,
    - * and the remaining arguments are applied to the
    - * function for access.
    - *
    - * When the `name` is "*" an un-matched command
    - * will be passed as the first arg, followed by
    - * the rest of __ARGV__ remaining.
    - *
    - * Examples:
    - *
    - *      program
    - *        .version('0.0.1')
    - *        .option('-C, --chdir ', 'change the working directory')
    - *        .option('-c, --config ', 'set config path. defaults to ./deploy.conf')
    - *        .option('-T, --no-tests', 'ignore test hook')
    - *     
    - *      program
    - *        .command('setup')
    - *        .description('run remote setup commands')
    - *        .action(function(){
    - *          console.log('setup');
    - *        });
    - *     
    - *      program
    - *        .command('exec ')
    - *        .description('run the given remote command')
    - *        .action(function(cmd){
    - *          console.log('exec "%s"', cmd);
    - *        });
    - *     
    - *      program
    - *        .command('*')
    - *        .description('deploy the given env')
    - *        .action(function(env){
    - *          console.log('deploying "%s"', env);
    - *        });
    - *     
    - *      program.parse(process.argv);
    -  *
    - * @param {String} name
    - * @param {String} [desc]
    - * @return {Command} the new command
    - * @api public
    - */
    -
    -Command.prototype.command = function(name, desc){
    -  var args = name.split(/ +/);
    -  var cmd = new Command(args.shift());
    -  if (desc) cmd.description(desc);
    -  if (desc) this.executables = true;
    -  if (desc) this._execs[cmd._name] = true;
    -  this.commands.push(cmd);
    -  cmd.parseExpectedArgs(args);
    -  cmd.parent = this;
    -  if (desc) return this;
    -  return cmd;
    -};
    -
    -/**
    - * Add an implicit `help [cmd]` subcommand
    - * which invokes `--help` for the given command.
    - *
    - * @api private
    - */
    -
    -Command.prototype.addImplicitHelpCommand = function() {
    -  this.command('help [cmd]', 'display help for [cmd]');
    -};
    -
    -/**
    - * Parse expected `args`.
    - *
    - * For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`.
    - *
    - * @param {Array} args
    - * @return {Command} for chaining
    - * @api public
    - */
    -
    -Command.prototype.parseExpectedArgs = function(args){
    -  if (!args.length) return;
    -  var self = this;
    -  args.forEach(function(arg){
    -    switch (arg[0]) {
    -      case '<':
    -        self._args.push({ required: true, name: arg.slice(1, -1) });
    -        break;
    -      case '[':
    -        self._args.push({ required: false, name: arg.slice(1, -1) });
    -        break;
    -    }
    -  });
    -  return this;
    -};
    -
    -/**
    - * Register callback `fn` for the command.
    - *
    - * Examples:
    - *
    - *      program
    - *        .command('help')
    - *        .description('display verbose help')
    - *        .action(function(){
    - *           // output help here
    - *        });
    - *
    - * @param {Function} fn
    - * @return {Command} for chaining
    - * @api public
    - */
    -
    -Command.prototype.action = function(fn){
    -  var self = this;
    -  this.parent.on(this._name, function(args, unknown){    
    -    // Parse any so-far unknown options
    -    unknown = unknown || [];
    -    var parsed = self.parseOptions(unknown);
    -    
    -    // Output help if necessary
    -    outputHelpIfNecessary(self, parsed.unknown);
    -    
    -    // If there are still any unknown options, then we simply 
    -    // die, unless someone asked for help, in which case we give it
    -    // to them, and then we die.
    -    if (parsed.unknown.length > 0) {      
    -      self.unknownOption(parsed.unknown[0]);
    -    }
    -    
    -    // Leftover arguments need to be pushed back. Fixes issue #56
    -    if (parsed.args.length) args = parsed.args.concat(args);
    -    
    -    self._args.forEach(function(arg, i){
    -      if (arg.required && null == args[i]) {
    -        self.missingArgument(arg.name);
    -      }
    -    });
    -    
    -    // Always append ourselves to the end of the arguments,
    -    // to make sure we match the number of arguments the user
    -    // expects
    -    if (self._args.length) {
    -      args[self._args.length] = self;
    -    } else {
    -      args.push(self);
    -    }
    -    
    -    fn.apply(this, args);
    -  });
    -  return this;
    -};
    -
    -/**
    - * Define option with `flags`, `description` and optional
    - * coercion `fn`. 
    - *
    - * The `flags` string should contain both the short and long flags,
    - * separated by comma, a pipe or space. The following are all valid
    - * all will output this way when `--help` is used.
    - *
    - *    "-p, --pepper"
    - *    "-p|--pepper"
    - *    "-p --pepper"
    - *
    - * Examples:
    - *
    - *     // simple boolean defaulting to false
    - *     program.option('-p, --pepper', 'add pepper');
    - *
    - *     --pepper
    - *     program.pepper
    - *     // => Boolean
    - *
    - *     // simple boolean defaulting to false
    - *     program.option('-C, --no-cheese', 'remove cheese');
    - *
    - *     program.cheese
    - *     // => true
    - *
    - *     --no-cheese
    - *     program.cheese
    - *     // => true
    - *
    - *     // required argument
    - *     program.option('-C, --chdir ', 'change the working directory');
    - *
    - *     --chdir /tmp
    - *     program.chdir
    - *     // => "/tmp"
    - *
    - *     // optional argument
    - *     program.option('-c, --cheese [type]', 'add cheese [marble]');
    - *
    - * @param {String} flags
    - * @param {String} description
    - * @param {Function|Mixed} fn or default
    - * @param {Mixed} defaultValue
    - * @return {Command} for chaining
    - * @api public
    - */
    -
    -Command.prototype.option = function(flags, description, fn, defaultValue){
    -  var self = this
    -    , option = new Option(flags, description)
    -    , oname = option.name()
    -    , name = camelcase(oname);
    -
    -  // default as 3rd arg
    -  if ('function' != typeof fn) defaultValue = fn, fn = null;
    -
    -  // preassign default value only for --no-*, [optional], or 
    -  if (false == option.bool || option.optional || option.required) {
    -    // when --no-* we make sure default is true
    -    if (false == option.bool) defaultValue = true;
    -    // preassign only if we have a default
    -    if (undefined !== defaultValue) self[name] = defaultValue;
    -  }
    -
    -  // register the option
    -  this.options.push(option);
    -
    -  // when it's passed assign the value
    -  // and conditionally invoke the callback
    -  this.on(oname, function(val){
    -    // coercion
    -    if (null != val && fn) val = fn(val);
    -
    -    // unassigned or bool
    -    if ('boolean' == typeof self[name] || 'undefined' == typeof self[name]) {
    -      // if no value, bool true, and we have a default, then use it!
    -      if (null == val) {
    -        self[name] = option.bool
    -          ? defaultValue || true
    -          : false;
    -      } else {
    -        self[name] = val;
    -      }
    -    } else if (null !== val) {
    -      // reassign
    -      self[name] = val;
    -    }
    -  });
    -
    -  return this;
    -};
    -
    -/**
    - * Parse `argv`, settings options and invoking commands when defined.
    - *
    - * @param {Array} argv
    - * @return {Command} for chaining
    - * @api public
    - */
    -
    -Command.prototype.parse = function(argv){
    -  // implicit help
    -  if (this.executables) this.addImplicitHelpCommand();
    -
    -  // store raw args
    -  this.rawArgs = argv;
    -
    -  // guess name
    -  this._name = this._name || basename(argv[1]);
    -
    -  // process argv
    -  var parsed = this.parseOptions(this.normalize(argv.slice(2)));
    -  var args = this.args = parsed.args;
    - 
    -  var result = this.parseArgs(this.args, parsed.unknown);
    -
    -  // executable sub-commands
    -  var name = result.args[0];
    -  if (this._execs[name]) return this.executeSubCommand(argv, args, parsed.unknown);
    -
    -  return result;
    -};
    -
    -/**
    - * Execute a sub-command executable.
    - *
    - * @param {Array} argv
    - * @param {Array} args
    - * @param {Array} unknown
    - * @api private
    - */
    -
    -Command.prototype.executeSubCommand = function(argv, args, unknown) {
    -  args = args.concat(unknown);
    -
    -  if (!args.length) this.help();
    -  if ('help' == args[0] && 1 == args.length) this.help();
    -
    -  //  --help
    -  if ('help' == args[0]) {
    -    args[0] = args[1];
    -    args[1] = '--help';
    -  }
    -
    -  // executable
    -  var dir = dirname(argv[1]);
    -  var bin = basename(argv[1]) + '-' + args[0];
    -
    -  // check for ./ first
    -  var local = path.join(dir, bin);
    -
    -  // run it
    -  args = args.slice(1);
    -  var proc = spawn(local, args, { stdio: 'inherit', customFds: [0, 1, 2] });
    -  proc.on('error', function(err){
    -    if (err.code == "ENOENT") {
    -      console.error('\n  %s(1) does not exist, try --help\n', bin);
    -    } else if (err.code == "EACCES") {
    -      console.error('\n  %s(1) not executable. try chmod or run with root\n', bin);
    -    }
    -  });
    -
    -  this.runningCommand = proc;
    -};
    -
    -/**
    - * Normalize `args`, splitting joined short flags. For example
    - * the arg "-abc" is equivalent to "-a -b -c".
    - * This also normalizes equal sign and splits "--abc=def" into "--abc def".
    - *
    - * @param {Array} args
    - * @return {Array}
    - * @api private
    - */
    -
    -Command.prototype.normalize = function(args){
    -  var ret = []
    -    , arg
    -    , lastOpt
    -    , index;
    -
    -  for (var i = 0, len = args.length; i < len; ++i) {
    -    arg = args[i];
    -    i > 0 && (lastOpt = this.optionFor(args[i-1]));
    -    
    -    if (lastOpt && lastOpt.required) {
    -     	ret.push(arg);
    -    } else if (arg.length > 1 && '-' == arg[0] && '-' != arg[1]) {
    -      arg.slice(1).split('').forEach(function(c){
    -        ret.push('-' + c);
    -      });
    -    } else if (/^--/.test(arg) && ~(index = arg.indexOf('='))) {
    -      ret.push(arg.slice(0, index), arg.slice(index + 1));
    -    } else {
    -      ret.push(arg);
    -    }
    -  }
    -
    -  return ret;
    -};
    -
    -/**
    - * Parse command `args`.
    - *
    - * When listener(s) are available those
    - * callbacks are invoked, otherwise the "*"
    - * event is emitted and those actions are invoked.
    - *
    - * @param {Array} args
    - * @return {Command} for chaining
    - * @api private
    - */
    -
    -Command.prototype.parseArgs = function(args, unknown){
    -  var cmds = this.commands
    -    , len = cmds.length
    -    , name;
    -
    -  if (args.length) {
    -    name = args[0];
    -    if (this.listeners(name).length) {
    -      this.emit(args.shift(), args, unknown);
    -    } else {
    -      this.emit('*', args);
    -    }
    -  } else {
    -    outputHelpIfNecessary(this, unknown);
    -    
    -    // If there were no args and we have unknown options,
    -    // then they are extraneous and we need to error.
    -    if (unknown.length > 0) {      
    -      this.unknownOption(unknown[0]);
    -    }
    -  }
    -
    -  return this;
    -};
    -
    -/**
    - * Return an option matching `arg` if any.
    - *
    - * @param {String} arg
    - * @return {Option}
    - * @api private
    - */
    -
    -Command.prototype.optionFor = function(arg){
    -  for (var i = 0, len = this.options.length; i < len; ++i) {
    -    if (this.options[i].is(arg)) {
    -      return this.options[i];
    -    }
    -  }
    -};
    -
    -/**
    - * Parse options from `argv` returning `argv`
    - * void of these options.
    - *
    - * @param {Array} argv
    - * @return {Array}
    - * @api public
    - */
    -
    -Command.prototype.parseOptions = function(argv){
    -  var args = []
    -    , len = argv.length
    -    , literal
    -    , option
    -    , arg;
    -
    -  var unknownOptions = [];
    -
    -  // parse options
    -  for (var i = 0; i < len; ++i) {
    -    arg = argv[i];
    -
    -    // literal args after --
    -    if ('--' == arg) {
    -      literal = true;
    -      continue;
    -    }
    -
    -    if (literal) {
    -      args.push(arg);
    -      continue;
    -    }
    -
    -    // find matching Option
    -    option = this.optionFor(arg);
    -
    -    // option is defined
    -    if (option) {
    -      // requires arg
    -      if (option.required) {
    -        arg = argv[++i];
    -        if (null == arg) return this.optionMissingArgument(option);
    -        this.emit(option.name(), arg);
    -      // optional arg
    -      } else if (option.optional) {
    -        arg = argv[i+1];
    -        if (null == arg || ('-' == arg[0] && '-' != arg)) {
    -          arg = null;
    -        } else {
    -          ++i;
    -        }
    -        this.emit(option.name(), arg);
    -      // bool
    -      } else {
    -        this.emit(option.name());
    -      }
    -      continue;
    -    }
    -    
    -    // looks like an option
    -    if (arg.length > 1 && '-' == arg[0]) {
    -      unknownOptions.push(arg);
    -      
    -      // If the next argument looks like it might be
    -      // an argument for this option, we pass it on.
    -      // If it isn't, then it'll simply be ignored
    -      if (argv[i+1] && '-' != argv[i+1][0]) {
    -        unknownOptions.push(argv[++i]);
    -      }
    -      continue;
    -    }
    -    
    -    // arg
    -    args.push(arg);
    -  }
    -  
    -  return { args: args, unknown: unknownOptions };
    -};
    -
    -/**
    - * Argument `name` is missing.
    - *
    - * @param {String} name
    - * @api private
    - */
    -
    -Command.prototype.missingArgument = function(name){
    -  console.error();
    -  console.error("  error: missing required argument `%s'", name);
    -  console.error();
    -  process.exit(1);
    -};
    -
    -/**
    - * `Option` is missing an argument, but received `flag` or nothing.
    - *
    - * @param {String} option
    - * @param {String} flag
    - * @api private
    - */
    -
    -Command.prototype.optionMissingArgument = function(option, flag){
    -  console.error();
    -  if (flag) {
    -    console.error("  error: option `%s' argument missing, got `%s'", option.flags, flag);
    -  } else {
    -    console.error("  error: option `%s' argument missing", option.flags);
    -  }
    -  console.error();
    -  process.exit(1);
    -};
    -
    -/**
    - * Unknown option `flag`.
    - *
    - * @param {String} flag
    - * @api private
    - */
    -
    -Command.prototype.unknownOption = function(flag){
    -  console.error();
    -  console.error("  error: unknown option `%s'", flag);
    -  console.error();
    -  process.exit(1);
    -};
    -
    -
    -/**
    - * Set the program version to `str`.
    - *
    - * This method auto-registers the "-V, --version" flag
    - * which will print the version number when passed.
    - *
    - * @param {String} str
    - * @param {String} flags
    - * @return {Command} for chaining
    - * @api public
    - */
    -
    -Command.prototype.version = function(str, flags){
    -  if (0 == arguments.length) return this._version;
    -  this._version = str;
    -  flags = flags || '-V, --version';
    -  this.option(flags, 'output the version number');
    -  this.on('version', function(){
    -    console.log(str);
    -    process.exit(0);
    -  });
    -  return this;
    -};
    -
    -/**
    - * Set the description `str`.
    - *
    - * @param {String} str
    - * @return {String|Command}
    - * @api public
    - */
    -
    -Command.prototype.description = function(str){
    -  if (0 == arguments.length) return this._description;
    -  this._description = str;
    -  return this;
    -};
    -
    -/**
    - * Set / get the command usage `str`.
    - *
    - * @param {String} str
    - * @return {String|Command}
    - * @api public
    - */
    -
    -Command.prototype.usage = function(str){
    -  var args = this._args.map(function(arg){
    -    return arg.required
    -      ? '<' + arg.name + '>'
    -      : '[' + arg.name + ']';
    -  });
    -
    -  var usage = '[options'
    -    + (this.commands.length ? '] [command' : '')
    -    + ']'
    -    + (this._args.length ? ' ' + args : '');
    -
    -  if (0 == arguments.length) return this._usage || usage;
    -  this._usage = str;
    -
    -  return this;
    -};
    -
    -/**
    - * Return the largest option length.
    - *
    - * @return {Number}
    - * @api private
    - */
    -
    -Command.prototype.largestOptionLength = function(){
    -  return this.options.reduce(function(max, option){
    -    return Math.max(max, option.flags.length);
    -  }, 0);
    -};
    -
    -/**
    - * Return help for options.
    - *
    - * @return {String}
    - * @api private
    - */
    -
    -Command.prototype.optionHelp = function(){
    -  var width = this.largestOptionLength();
    -  
    -  // Prepend the help information
    -  return [pad('-h, --help', width) + '  ' + 'output usage information']
    -    .concat(this.options.map(function(option){
    -      return pad(option.flags, width)
    -        + '  ' + option.description;
    -      }))
    -    .join('\n');
    -};
    -
    -/**
    - * Return command help documentation.
    - *
    - * @return {String}
    - * @api private
    - */
    -
    -Command.prototype.commandHelp = function(){
    -  if (!this.commands.length) return '';
    -  return [
    -      ''
    -    , '  Commands:'
    -    , ''
    -    , this.commands.map(function(cmd){
    -      var args = cmd._args.map(function(arg){
    -        return arg.required
    -          ? '<' + arg.name + '>'
    -          : '[' + arg.name + ']';
    -      }).join(' ');
    -
    -      return pad(cmd._name
    -        + (cmd.options.length 
    -          ? ' [options]'
    -          : '') + ' ' + args, 22)
    -        + (cmd.description()
    -          ? ' ' + cmd.description()
    -          : '');
    -    }).join('\n').replace(/^/gm, '    ')
    -    , ''
    -  ].join('\n');
    -};
    -
    -/**
    - * Return program help documentation.
    - *
    - * @return {String}
    - * @api private
    - */
    -
    -Command.prototype.helpInformation = function(){
    -  return [
    -      ''
    -    , '  Usage: ' + this._name + ' ' + this.usage()
    -    , '' + this.commandHelp()
    -    , '  Options:'
    -    , ''
    -    , '' + this.optionHelp().replace(/^/gm, '    ')
    -    , ''
    -    , ''
    -  ].join('\n');
    -};
    -
    -/**
    - * Output help information for this command
    - *
    - * @api public
    - */
    -
    -Command.prototype.outputHelp = function(){
    -  process.stdout.write(this.helpInformation());
    -  this.emit('--help');
    -};
    -
    -/**
    - * Output help information and exit.
    - *
    - * @api public
    - */
    -
    -Command.prototype.help = function(){
    -  this.outputHelp();
    -  process.exit();
    -};
    -
    -/**
    - * Camel-case the given `flag`
    - *
    - * @param {String} flag
    - * @return {String}
    - * @api private
    - */
    -
    -function camelcase(flag) {
    -  return flag.split('-').reduce(function(str, word){
    -    return str + word[0].toUpperCase() + word.slice(1);
    -  });
    -}
    -
    -/**
    - * Pad `str` to `width`.
    - *
    - * @param {String} str
    - * @param {Number} width
    - * @return {String}
    - * @api private
    - */
    -
    -function pad(str, width) {
    -  var len = Math.max(0, width - str.length);
    -  return str + Array(len + 1).join(' ');
    -}
    -
    -/**
    - * Output help information if necessary
    - *
    - * @param {Command} command to output help for
    - * @param {Array} array of options to search for -h or --help
    - * @api private
    - */
    -
    -function outputHelpIfNecessary(cmd, options) {
    -  options = options || [];
    -  for (var i = 0; i < options.length; i++) {
    -    if (options[i] == '--help' || options[i] == '-h') {
    -      cmd.outputHelp();
    -      process.exit(0);
    -    }
    -  }
    -}
    diff --git a/node_modules/findup/node_modules/commander/package.json b/node_modules/findup/node_modules/commander/package.json
    deleted file mode 100644
    index 2edf667..0000000
    --- a/node_modules/findup/node_modules/commander/package.json
    +++ /dev/null
    @@ -1,92 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "commander@~2.1.0",
    -        "scope": null,
    -        "escapedName": "commander",
    -        "name": "commander",
    -        "rawSpec": "~2.1.0",
    -        "spec": ">=2.1.0 <2.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/findup"
    -    ]
    -  ],
    -  "_from": "commander@>=2.1.0 <2.2.0",
    -  "_id": "commander@2.1.0",
    -  "_inCache": true,
    -  "_location": "/findup/commander",
    -  "_npmUser": {
    -    "name": "tjholowaychuk",
    -    "email": "tj@vision-media.ca"
    -  },
    -  "_npmVersion": "1.3.14",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "commander@~2.1.0",
    -    "scope": null,
    -    "escapedName": "commander",
    -    "name": "commander",
    -    "rawSpec": "~2.1.0",
    -    "spec": ">=2.1.0 <2.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/findup"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/commander/-/commander-2.1.0.tgz",
    -  "_shasum": "d121bbae860d9992a3d517ba96f56588e47c6781",
    -  "_shrinkwrap": null,
    -  "_spec": "commander@~2.1.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/findup",
    -  "author": {
    -    "name": "TJ Holowaychuk",
    -    "email": "tj@vision-media.ca"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/visionmedia/commander.js/issues"
    -  },
    -  "dependencies": {},
    -  "description": "the complete solution for node.js command-line programs",
    -  "devDependencies": {
    -    "should": ">= 0.0.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "d121bbae860d9992a3d517ba96f56588e47c6781",
    -    "tarball": "https://registry.npmjs.org/commander/-/commander-2.1.0.tgz"
    -  },
    -  "engines": {
    -    "node": ">= 0.6.x"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "homepage": "https://github.com/visionmedia/commander.js",
    -  "keywords": [
    -    "command",
    -    "option",
    -    "parser",
    -    "prompt",
    -    "stdin"
    -  ],
    -  "main": "index",
    -  "maintainers": [
    -    {
    -      "name": "tjholowaychuk",
    -      "email": "tj@vision-media.ca"
    -    }
    -  ],
    -  "name": "commander",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/visionmedia/commander.js.git"
    -  },
    -  "scripts": {
    -    "test": "make test"
    -  },
    -  "version": "2.1.0"
    -}
    diff --git a/node_modules/findup/package.json b/node_modules/findup/package.json
    deleted file mode 100644
    index 994965b..0000000
    --- a/node_modules/findup/package.json
    +++ /dev/null
    @@ -1,98 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "findup@^0.1.5",
    -        "scope": null,
    -        "escapedName": "findup",
    -        "name": "findup",
    -        "rawSpec": "^0.1.5",
    -        "spec": ">=0.1.5 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/rtlcss"
    -    ]
    -  ],
    -  "_from": "findup@>=0.1.5 <0.2.0",
    -  "_id": "findup@0.1.5",
    -  "_inCache": true,
    -  "_location": "/findup",
    -  "_npmUser": {
    -    "name": "filirom1",
    -    "email": "filirom1@gmail.com"
    -  },
    -  "_npmVersion": "1.3.14",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "findup@^0.1.5",
    -    "scope": null,
    -    "escapedName": "findup",
    -    "name": "findup",
    -    "rawSpec": "^0.1.5",
    -    "spec": ">=0.1.5 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/rtlcss"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/findup/-/findup-0.1.5.tgz",
    -  "_shasum": "8ad929a3393bac627957a7e5de4623b06b0e2ceb",
    -  "_shrinkwrap": null,
    -  "_spec": "findup@^0.1.5",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/rtlcss",
    -  "author": {
    -    "name": "Filirom1",
    -    "email": "filirom1@gmail.com"
    -  },
    -  "bin": {
    -    "findup": "bin/findup.js"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/Filirom1/findup/issues"
    -  },
    -  "dependencies": {
    -    "colors": "~0.6.0-1",
    -    "commander": "~2.1.0"
    -  },
    -  "description": "Walk up ancester's dir up to root",
    -  "devDependencies": {
    -    "chai": "~1.1.1",
    -    "mocha": "~1.3.0"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "8ad929a3393bac627957a7e5de4623b06b0e2ceb",
    -    "tarball": "https://registry.npmjs.org/findup/-/findup-0.1.5.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.6"
    -  },
    -  "homepage": "https://github.com/Filirom1/findup",
    -  "licenses": [
    -    {
    -      "type": "MIT",
    -      "url": "http  : //www.opensource.org/licenses/MIT"
    -    }
    -  ],
    -  "maintainers": [
    -    {
    -      "name": "Filirom1",
    -      "email": "filirom1@gmail.com"
    -    },
    -    {
    -      "name": "filirom1",
    -      "email": "filirom1@gmail.com"
    -    }
    -  ],
    -  "name": "findup",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/Filirom1/findup.git"
    -  },
    -  "scripts": {
    -    "test": "mocha ./test/*.js"
    -  },
    -  "version": "0.1.5"
    -}
    diff --git a/node_modules/findup/test/findup-test.js b/node_modules/findup/test/findup-test.js
    deleted file mode 100644
    index c90d82b..0000000
    --- a/node_modules/findup/test/findup-test.js
    +++ /dev/null
    @@ -1,110 +0,0 @@
    -var assert = require('chai').assert,
    -  Path = require('path'),
    -  fs = require('fs'),
    -  findup = require('..');
    -
    -describe('find-up', function(){
    -  var fixtureDir = Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c', 'b', 'a'),
    -    fsExists = fs.exists ? fs.exists : Path.exists;
    -  it('accept a function', function(done){
    -    findup(fixtureDir, function(dir, cb){
    -      return fsExists(Path.join(dir, 'config.json'), cb);
    -    }, function(err, file){
    -      assert.ifError(err);
    -      assert.equal(file, Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c'));
    -      done();
    -    });
    -  });
    -
    -  it('accept a string', function(done){
    -    findup(fixtureDir, 'config.json', function(err, file){
    -      assert.ifError(err);
    -      assert.equal(file, Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c'));
    -      done();
    -    });
    -  });
    -
    -  it('is usable with the Object syntax', function(done) {
    -    new findup.FindUp(fixtureDir, 'config.json', function(err, file){
    -      assert.ifError(err);
    -      assert.equal(file, Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c'));
    -      done();
    -    });
    -  });
    -
    -  it('find several files when using with the EventEmitter syntax', function(done){
    -    var ee = new findup.FindUp(fixtureDir, 'config.json');
    -    ee.once('found', function(file){
    -      assert.equal(file, Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c'));
    -
    -      ee.once('found', function(file){
    -        assert.equal(file, Path.join(__dirname, 'fixture'));
    -
    -        ee.once('end', function(){
    -          done();
    -        });
    -      });
    -    });
    -  });
    -
    -  it('return files in top dir', function(done){
    -    findup(fixtureDir, 'top.json', function(err, file){
    -      assert.ifError(err);
    -      assert.equal(file, Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c', 'b', 'a'));
    -      done();
    -    });
    -  });
    -
    -  it('return files in root dir', function(done){
    -    findup(fixtureDir, 'dev', function(err, file){
    -      assert.ifError(err);
    -      assert.equal(file, '/');
    -      done();
    -    });
    -  });
    -
    -  it('return an error when looking for non existiong files', function(done){
    -    findup(fixtureDir, 'toto.json', function(err, file){
    -      assert.isNotNull(err);
    -      done();
    -    });
    -  });
    -
    -  it('return an error when looking in a non existing directory', function(done){
    -    findup('dsqkjfnqsdkjghq', 'toto.json', function(err, file){
    -      assert.isNotNull(err);
    -      done();
    -    });
    -  });
    -
    -  it('trigger an error event when looking in a non existing directory', function(done){
    -    findup('dsqkjfnqsdkjghq', 'toto.json').on('error', function(err, files){
    -      assert.isNotNull(err);
    -      done();
    -    });
    -  });
    -
    -  describe('Sync API', function(){
    -    it('accept a string', function(){
    -      var file = findup.sync(fixtureDir, 'config.json');
    -      assert.equal(file, Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c'));
    -    });
    -
    -    it('return a file in top dir', function(){
    -      var file = findup.sync(fixtureDir, 'top.json');
    -      assert.equal(file, Path.join(__dirname, 'fixture', 'f', 'e', 'd', 'c', 'b', 'a'));
    -    });
    -
    -    it('throw error when looking for a non existing file', function(){
    -      assert.throw(function(){
    -        findup.sync(fixtureDir, 'toto.json');
    -      });
    -    });
    -
    -    it('throw error when looking for in a non existing directory', function(){
    -      assert.throw(function(){
    -        findup.sync('uhjhbjkg,nfg', 'toto.json');
    -      });
    -    });
    -  });
    -});
    diff --git a/node_modules/findup/test/fixture/config.json b/node_modules/findup/test/fixture/config.json
    deleted file mode 100644
    index e69de29..0000000
    diff --git a/node_modules/findup/test/fixture/f/e/d/c/b/a/top.json b/node_modules/findup/test/fixture/f/e/d/c/b/a/top.json
    deleted file mode 100644
    index e69de29..0000000
    diff --git a/node_modules/findup/test/fixture/f/e/d/c/config.json b/node_modules/findup/test/fixture/f/e/d/c/config.json
    deleted file mode 100644
    index e69de29..0000000
    diff --git a/node_modules/findup/test/mocha.opts b/node_modules/findup/test/mocha.opts
    deleted file mode 100644
    index 5ada47b..0000000
    --- a/node_modules/findup/test/mocha.opts
    +++ /dev/null
    @@ -1 +0,0 @@
    ---reporter spec
    diff --git a/node_modules/fined/LICENSE b/node_modules/fined/LICENSE
    deleted file mode 100644
    index 3ca2d3f..0000000
    --- a/node_modules/fined/LICENSE
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -The MIT License (MIT)
    -
    -Copyright (c) 2016 Blaine Bublitz, Tyler Kellen and other contributors
    -
    -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/fined/README.md b/node_modules/fined/README.md
    deleted file mode 100644
    index 8788de0..0000000
    --- a/node_modules/fined/README.md
    +++ /dev/null
    @@ -1,67 +0,0 @@
    -# Fined [![Build Status][travis-image]][travis-url] [![Build Status][appveyor-image]][appveyor-url]
    -
    -> Find a file given a declaration of locations
    -
    -[![NPM](https://nodei.co/npm/fined.png)](https://nodei.co/npm/fined/)
    -
    -## Usage
    -
    -```js
    -var fined = require('fined');
    -
    -fined({ path: 'path/to/file', extensions: ['.js', '.json'] });
    -// => { path: '/absolute/path/to/file.js', extension: '.js' }  (if file exists)
    -// => null  (if file does not exist)
    -
    -var opts = {
    -  name: '.app',
    -  cwd: '.',
    -  extensions: {
    -    'rc': 'default-rc-loader', 
    -    '.yml': 'default-yml-loader',
    -  },
    -};
    -
    -fined({ path: '.' }, opts);
    -// => { path: '/absolute/of/cwd/.app.yml', extension: { '.yml': 'default-yml-loader' } }
    -
    -fined({ path: '~', extensions: { 'rc': 'some-special-rc-loader' } }, opts);
    -// => { path: '/User/home/.apprc', extension: { 'rc': 'some-special-rc-loader' } }
    -```
    -
    -## API
    -
    -### fined(pathObj, opts) => object | null
    -
    -#### Arguments:
    -
    -* **pathObj** [string | object] : a path setting for finding a file.
    -* **opts** [object] : a plain object supplements `pathObj`.
    -
    -   `pathObj` and `opts` can have same properties:
    -
    -   * **path** [string] : a path string.
    -   * **name** [string] : a basename.
    -   * **extensions**: [string | array | object] : extensions.
    -   * **cwd**: a base directory of `path` and for finding up.
    -   * **findUp**: [boolean] : a flag to find up.
    -
    -#### Return:
    -
    -This function returns a plain object which consists of following properties if a file exists otherwise null.
    -
    -   * **path** : an absolute path
    -   * **extension** : a string or a plain object of extension.
    -
    -
    -## License
    -
    -MIT
    -
    -
    -[npm-image]: http://img.shields.io/badge/npm-v0.0.0-blue.svg
    -[npm-url]: https://www.npmjs.org/package/fined
    -[travis-image]: https://travis-ci.org/js-cli/fined.svg?branch=master
    -[travis-url]: https://travis-ci.org/js-cli/fined
    -[appveyor-image]: https://ci.appveyor.com/api/projects/status/github/js-cli/fined?branch=master&svg=true
    -[appveyor-url]: https://ci.appveyor.com/project/js-cli/fined
    diff --git a/node_modules/fined/index.js b/node_modules/fined/index.js
    deleted file mode 100644
    index fed7aae..0000000
    --- a/node_modules/fined/index.js
    +++ /dev/null
    @@ -1,159 +0,0 @@
    -'use strict';
    -
    -var fs = require('fs');
    -var path = require('path');
    -
    -var isString = require('lodash.isstring');
    -var isPlainObject = require('lodash.isplainobject');
    -var isEmpty = require('lodash.isempty');
    -var pick = require('lodash.pick');
    -var assignWith = require('lodash.assignwith');
    -
    -var expandTilde = require('expand-tilde');
    -var parsePath = require('parse-filepath');
    -
    -function assignNullish(objValue, srcValue) {
    -  return (srcValue == null ? objValue : srcValue);
    -}
    -
    -function defaults(mainObj, defaultObj) {
    -  return assignWith({}, defaultObj, mainObj, assignNullish);
    -}
    -
    -function fined(pathObj, defaultObj) {
    -  var expandedPath = expandPath(pathObj, defaultObj);
    -  return expandedPath ? findWithExpandedPath(expandedPath) : null;
    -}
    -
    -function expandPath(pathObj, defaultObj) {
    -  if (!isPlainObject(defaultObj)) {
    -    defaultObj = {};
    -  }
    -
    -  if (isString(pathObj)) {
    -    pathObj = { path: pathObj };
    -  }
    -
    -  if (!isPlainObject(pathObj)) {
    -    pathObj = {};
    -  }
    -
    -  pathObj = defaults(pathObj, defaultObj);
    -
    -  var filePath;
    -  if (!isString(pathObj.path)) {
    -    return null;
    -  }
    -  // Execution of toString is for a String object.
    -  if (isString(pathObj.name) && pathObj.name) {
    -    if (pathObj.path) {
    -      filePath = expandTilde(pathObj.path.toString());
    -      filePath = path.join(filePath, pathObj.name.toString());
    -    } else {
    -      filePath = pathObj.name.toString();
    -    }
    -  } else {
    -    filePath = expandTilde(pathObj.path.toString());
    -  }
    -
    -  var extArr = createExtensionArray(pathObj.extensions);
    -  var extMap = createExtensionMap(pathObj.extensions);
    -
    -  var basedir = isString(pathObj.cwd) ? pathObj.cwd.toString() : '.';
    -  basedir = path.resolve(expandTilde(basedir));
    -
    -  var findUp = !!pathObj.findUp;
    -
    -  var parsed = parsePath(filePath);
    -  if (parsed.isAbsolute) {
    -    filePath = filePath.slice(parsed.root.length);
    -    findUp = false;
    -    basedir = parsed.root;
    -  } else if (parsed.root) { // Expanded path has a drive letter on Windows.
    -    filePath = filePath.slice(parsed.root.length);
    -    basedir = path.resolve(parsed.root);
    -  }
    -
    -  return {
    -    path: filePath,
    -    basedir: basedir,
    -    findUp: findUp,
    -    extArr: extArr,
    -    extMap: extMap,
    -  };
    -}
    -
    -function findWithExpandedPath(expanded) {
    -  var found = expanded.findUp ?
    -    findUpFile(expanded.basedir, expanded.path, expanded.extArr) :
    -    findFile(expanded.basedir, expanded.path, expanded.extArr);
    -
    -  if (!found) {
    -    return null;
    -  }
    -
    -  if (expanded.extMap) {
    -    found.extension = pick(expanded.extMap, found.extension);
    -  }
    -  return found;
    -}
    -
    -function findFile(basedir, relpath, extArr) {
    -  var noExtPath = path.resolve(basedir, relpath);
    -  for (var i = 0, n = extArr.length; i < n; i++) {
    -    var filepath = noExtPath + extArr[i];
    -    try {
    -      fs.statSync(filepath);
    -      return { path: filepath, extension: extArr[i] };
    -    } catch (e) {}
    -  }
    -
    -  return null;
    -}
    -
    -function findUpFile(basedir, filepath, extArr) {
    -  var lastdir;
    -  do {
    -    var found = findFile(basedir, filepath, extArr);
    -    if (found) {
    -      return found;
    -    }
    -
    -    lastdir = basedir;
    -    basedir = path.dirname(basedir);
    -  } while (lastdir !== basedir);
    -
    -  return null;
    -}
    -
    -function createExtensionArray(exts) {
    -  if (isString(exts)) {
    -    return [exts];
    -  }
    -
    -  if (Array.isArray(exts)) {
    -    exts = exts.filter(isString);
    -    return (exts.length > 0) ? exts : [''];
    -  }
    -
    -  if (isPlainObject(exts)) {
    -    exts = Object.keys(exts);
    -    return (exts.length > 0) ? exts : [''];
    -  }
    -
    -  return [''];
    -}
    -
    -function createExtensionMap(exts) {
    -  if (!isPlainObject(exts)) {
    -    return null;
    -  }
    -
    -  if (isEmpty(exts)) {
    -    return { '': null };
    -  }
    -
    -  return exts;
    -}
    -
    -module.exports = fined;
    diff --git a/node_modules/fined/package.json b/node_modules/fined/package.json
    deleted file mode 100644
    index 1e506f9..0000000
    --- a/node_modules/fined/package.json
    +++ /dev/null
    @@ -1,123 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "fined@^1.0.1",
    -        "scope": null,
    -        "escapedName": "fined",
    -        "name": "fined",
    -        "rawSpec": "^1.0.1",
    -        "spec": ">=1.0.1 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/liftoff"
    -    ]
    -  ],
    -  "_from": "fined@>=1.0.1 <2.0.0",
    -  "_id": "fined@1.0.2",
    -  "_inCache": true,
    -  "_location": "/fined",
    -  "_nodeVersion": "0.10.41",
    -  "_npmOperationalInternal": {
    -    "host": "packages-12-west.internal.npmjs.com",
    -    "tmp": "tmp/fined-1.0.2.tgz_1475705448430_0.6886874639894813"
    -  },
    -  "_npmUser": {
    -    "name": "phated",
    -    "email": "blaine.bublitz@gmail.com"
    -  },
    -  "_npmVersion": "2.15.2",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "fined@^1.0.1",
    -    "scope": null,
    -    "escapedName": "fined",
    -    "name": "fined",
    -    "rawSpec": "^1.0.1",
    -    "spec": ">=1.0.1 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/liftoff"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/fined/-/fined-1.0.2.tgz",
    -  "_shasum": "5b28424b760d7598960b7ef8480dff8ad3660e97",
    -  "_shrinkwrap": null,
    -  "_spec": "fined@^1.0.1",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/liftoff",
    -  "author": {
    -    "name": "JS CLI Team",
    -    "url": "https://github.com/js-cli"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/js-cli/fined/issues"
    -  },
    -  "contributors": [
    -    {
    -      "name": "Takayuki Sato",
    -      "email": "t110000508260@yahoo.co.jp"
    -    },
    -    {
    -      "name": "Blaine Bublitz",
    -      "email": "blaine.bublitz@gmail.com"
    -    }
    -  ],
    -  "dependencies": {
    -    "expand-tilde": "^1.2.1",
    -    "lodash.assignwith": "^4.0.7",
    -    "lodash.isempty": "^4.2.1",
    -    "lodash.isplainobject": "^4.0.4",
    -    "lodash.isstring": "^4.0.1",
    -    "lodash.pick": "^4.2.1",
    -    "parse-filepath": "^1.0.1"
    -  },
    -  "description": "Find a file given a declaration of locations",
    -  "devDependencies": {
    -    "eslint": "^1.7.3",
    -    "eslint-config-gulp": "^2.0.0",
    -    "expect": "^1.19.0",
    -    "istanbul": "^0.4.3",
    -    "istanbul-coveralls": "^1.0.3",
    -    "jscs": "^2.3.5",
    -    "jscs-preset-gulp": "^1.0.0",
    -    "mocha": "^2.4.5"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "5b28424b760d7598960b7ef8480dff8ad3660e97",
    -    "tarball": "https://registry.npmjs.org/fined/-/fined-1.0.2.tgz"
    -  },
    -  "engines": {
    -    "node": ">= 0.10"
    -  },
    -  "files": [
    -    "index.js",
    -    "LICENSE"
    -  ],
    -  "gitHead": "850b8dde2e520878a7ff62b9a6b4a45c82d19889",
    -  "homepage": "https://github.com/js-cli/fined#readme",
    -  "keywords": [],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "phated",
    -      "email": "blaine.bublitz@gmail.com"
    -    }
    -  ],
    -  "name": "fined",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/js-cli/fined.git"
    -  },
    -  "scripts": {
    -    "cover": "istanbul cover _mocha --report lcovonly",
    -    "coveralls": "npm run cover && istanbul-coveralls",
    -    "lint": "eslint . && jscs index.js test/",
    -    "pretest": "npm run lint",
    -    "test": "mocha --async-only"
    -  },
    -  "version": "1.0.2"
    -}
    diff --git a/node_modules/first-chunk-stream/index.js b/node_modules/first-chunk-stream/index.js
    deleted file mode 100644
    index 2481550..0000000
    --- a/node_modules/first-chunk-stream/index.js
    +++ /dev/null
    @@ -1,93 +0,0 @@
    -'use strict';
    -var util = require('util');
    -var Transform = require('stream').Transform;
    -
    -function ctor(options, transform) {
    -	util.inherits(FirstChunk, Transform);
    -
    -	if (typeof options === 'function') {
    -		transform = options;
    -		options = {};
    -	}
    -
    -	if (typeof transform !== 'function') {
    -		throw new Error('transform function required');
    -	}
    -
    -	function FirstChunk(options2) {
    -		if (!(this instanceof FirstChunk)) {
    -			return new FirstChunk(options2);
    -		}
    -
    -		Transform.call(this, options2);
    -
    -		this._firstChunk = true;
    -		this._transformCalled = false;
    -		this._minSize = options.minSize;
    -	}
    -
    -	FirstChunk.prototype._transform = function (chunk, enc, cb) {
    -		this._enc = enc;
    -
    -		if (this._firstChunk) {
    -			this._firstChunk = false;
    -
    -			if (this._minSize == null) {
    -				transform.call(this, chunk, enc, cb);
    -				this._transformCalled = true;
    -				return;
    -			}
    -
    -			this._buffer = chunk;
    -			cb();
    -			return;
    -		}
    -
    -		if (this._minSize == null) {
    -			this.push(chunk);
    -			cb();
    -			return;
    -		}
    -
    -		if (this._buffer.length < this._minSize) {
    -			this._buffer = Buffer.concat([this._buffer, chunk]);
    -			cb();
    -			return;
    -		}
    -
    -		if (this._buffer.length >= this._minSize) {
    -			transform.call(this, this._buffer.slice(), enc, function () {
    -				this.push(chunk);
    -				cb();
    -			}.bind(this));
    -			this._transformCalled = true;
    -			this._buffer = false;
    -			return;
    -		}
    -
    -		this.push(chunk);
    -		cb();
    -	};
    -
    -	FirstChunk.prototype._flush = function (cb) {
    -		if (!this._buffer) {
    -			cb();
    -			return;
    -		}
    -
    -		if (this._transformCalled) {
    -			this.push(this._buffer);
    -			cb();
    -		} else {
    -			transform.call(this, this._buffer.slice(), this._enc, cb);
    -		}
    -	};
    -
    -	return FirstChunk;
    -}
    -
    -module.exports = function () {
    -	return ctor.apply(ctor, arguments)();
    -};
    -
    -module.exports.ctor = ctor;
    diff --git a/node_modules/first-chunk-stream/package.json b/node_modules/first-chunk-stream/package.json
    deleted file mode 100644
    index 07e09b9..0000000
    --- a/node_modules/first-chunk-stream/package.json
    +++ /dev/null
    @@ -1,99 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "first-chunk-stream@^1.0.0",
    -        "scope": null,
    -        "escapedName": "first-chunk-stream",
    -        "name": "first-chunk-stream",
    -        "rawSpec": "^1.0.0",
    -        "spec": ">=1.0.0 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/strip-bom"
    -    ]
    -  ],
    -  "_from": "first-chunk-stream@>=1.0.0 <2.0.0",
    -  "_id": "first-chunk-stream@1.0.0",
    -  "_inCache": true,
    -  "_location": "/first-chunk-stream",
    -  "_npmUser": {
    -    "name": "sindresorhus",
    -    "email": "sindresorhus@gmail.com"
    -  },
    -  "_npmVersion": "1.4.21",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "first-chunk-stream@^1.0.0",
    -    "scope": null,
    -    "escapedName": "first-chunk-stream",
    -    "name": "first-chunk-stream",
    -    "rawSpec": "^1.0.0",
    -    "spec": ">=1.0.0 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/strip-bom"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz",
    -  "_shasum": "59bfb50cd905f60d7c394cd3d9acaab4e6ad934e",
    -  "_shrinkwrap": null,
    -  "_spec": "first-chunk-stream@^1.0.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/strip-bom",
    -  "author": {
    -    "name": "Sindre Sorhus",
    -    "email": "sindresorhus@gmail.com",
    -    "url": "http://sindresorhus.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/sindresorhus/first-chunk-stream/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Transform the first chunk in a stream",
    -  "devDependencies": {
    -    "concat-stream": "^1.4.5",
    -    "mocha": "*"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "59bfb50cd905f60d7c394cd3d9acaab4e6ad934e",
    -    "tarball": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.10.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "8b0b1750edcc30fa2b2071245198181e925be619",
    -  "homepage": "https://github.com/sindresorhus/first-chunk-stream",
    -  "keywords": [
    -    "buffer",
    -    "stream",
    -    "streams",
    -    "transform",
    -    "first",
    -    "chunk",
    -    "size",
    -    "min",
    -    "minimum"
    -  ],
    -  "license": "MIT",
    -  "maintainers": [
    -    {
    -      "name": "sindresorhus",
    -      "email": "sindresorhus@gmail.com"
    -    }
    -  ],
    -  "name": "first-chunk-stream",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/sindresorhus/first-chunk-stream.git"
    -  },
    -  "scripts": {
    -    "test": "mocha"
    -  },
    -  "version": "1.0.0"
    -}
    diff --git a/node_modules/first-chunk-stream/readme.md b/node_modules/first-chunk-stream/readme.md
    deleted file mode 100644
    index f8909c8..0000000
    --- a/node_modules/first-chunk-stream/readme.md
    +++ /dev/null
    @@ -1,62 +0,0 @@
    -# first-chunk-stream [![Build Status](https://travis-ci.org/sindresorhus/first-chunk-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/first-chunk-stream)
    -
    -> Transform the first chunk in a stream
    -
    -Useful if you want to do something to the first chunk.
    -
    -You can also set the minimum size of that chunk.
    -
    -
    -## Install
    -
    -```sh
    -$ npm install --save first-chunk-stream
    -```
    -
    -
    -## Usage
    -
    -```js
    -var fs = require('fs');
    -var concat = require('concat-stream');
    -var firstChunk = require('first-chunk-stream');
    -
    -// unicorn.txt => unicorn rainbow
    -// `highWaterMark: 1` means it will only read 1 byte at the time
    -fs.createReadStream('unicorn.txt', {highWaterMark: 1})
    -	.pipe(firstChunk({minSize: 7}, function (chunk, enc, cb) {
    -		this.push(chunk.toUpperCase());
    -		cb();
    -	}))
    -	.pipe(concat(function (data) {
    -		console.log(data);
    -		//=> UNICORN rainbow
    -	}));
    -```
    -
    -
    -## API
    -
    -### firstChunk([options], transform)
    -
    -#### options.minSize
    -
    -Type: `number`
    -
    -The minimum size of the first chunk.
    -
    -#### transform(chunk, encoding, callback)
    -
    -*Required*  
    -Type: `function`
    -
    -The [function](http://nodejs.org/docs/latest/api/stream.html#stream_transform_transform_chunk_encoding_callback) that gets the first chunk.
    -
    -### firstChunk.ctor()
    -
    -Instead of returning a [stream.Transform](http://nodejs.org/docs/latest/api/stream.html#stream_class_stream_transform_1) instance, `firstChunk.ctor()` returns a constructor for a custom Transform. This is useful when you want to use the same transform logic in multiple instances.
    -
    -
    -## License
    -
    -MIT © [Sindre Sorhus](http://sindresorhus.com)
    diff --git a/node_modules/flagged-respawn/.npmignore b/node_modules/flagged-respawn/.npmignore
    deleted file mode 100644
    index a1dca7a..0000000
    --- a/node_modules/flagged-respawn/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -*.flags.json
    diff --git a/node_modules/flagged-respawn/.travis.yml b/node_modules/flagged-respawn/.travis.yml
    deleted file mode 100644
    index e37da77..0000000
    --- a/node_modules/flagged-respawn/.travis.yml
    +++ /dev/null
    @@ -1,9 +0,0 @@
    -language: node_js
    -node_js:
    -  - "0.8"
    -  - "0.10"
    -  - "0.11"
    -matrix:
    -  fast_finish: true
    -  allow_failures:
    -    - node_js: 0.11
    diff --git a/node_modules/flagged-respawn/LICENSE b/node_modules/flagged-respawn/LICENSE
    deleted file mode 100644
    index a55f5b7..0000000
    --- a/node_modules/flagged-respawn/LICENSE
    +++ /dev/null
    @@ -1,22 +0,0 @@
    -Copyright (c) 2014 Tyler Kellen
    -
    -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/flagged-respawn/README.md b/node_modules/flagged-respawn/README.md
    deleted file mode 100644
    index a431fe3..0000000
    --- a/node_modules/flagged-respawn/README.md
    +++ /dev/null
    @@ -1,58 +0,0 @@
    -# flagged-respawn [![Build Status](https://secure.travis-ci.org/js-cli/js-flagged-respawn.svg)](http://travis-ci.org/js-cli/js-flagged-respawn)
    -> A tool for respawning node binaries when special flags are present.
    -
    -[![NPM](https://nodei.co/npm/flagged-respawn.png)](https://nodei.co/npm/flagged-respawn/)
    -
    -## What is it?
    -
    -Say you wrote a command line tool that runs arbitrary javascript (e.g. task runner, test framework, etc). For the sake of discussion, let's pretend it's a testing harness you've named `testify`.
    -
    -Everything is going splendidly until one day you decide to test some code that relies on a feature behind a v8 flag in node (`--harmony`, for example).  Without much thought, you run `testify --harmony spec tests.js`.
    -
    -It doesn't work. After digging around for a bit, you realize this produces a [`process.argv`](http://nodejs.org/docs/latest/api/process.html#process_process_argv) of:
    -
    -`['node', '/usr/local/bin/test', '--harmony', 'spec', 'tests.js']`
    -
    -Crap. The `--harmony` flag is in the wrong place! It should be applied to the **node** command, not our binary. What we actually wanted was this:
    -
    -`['node', '--harmony', '/usr/local/bin/test', 'spec', 'tests.js']`
    -
    -Flagged-respawn fixes this problem and handles all the edge cases respawning creates, such as:
    -- Providing a method to determine if a respawn is needed.
    -- Piping stderr/stdout from the child into the parent.
    -- Making the parent process exit with the same code as the child.
    -- If the child is killed, making the parent exit with the same signal.
    -
    -To see it in action, clone this repository and run `npm install` / `npm run respawn` / `npm run nospawn`.
    -
    -## Sample Usage
    -
    -```js
    -#!/usr/bin/env node
    -
    -const flaggedRespawn = require('flagged-respawn');
    -
    -// get a list of all possible v8 flags for the running version of node
    -const v8flags = require('v8flags').fetch();
    -
    -flaggedRespawn(v8flags, process.argv, function (ready, child) {
    -  if (ready) {
    -    console.log('Running!');
    -    // your cli code here
    -  } else {
    -    console.log('Special flags found, respawning.');
    -  }
    -  if (process.pid !== child.pid) {
    -    console.log('Respawned to PID:', child.pid);
    -  }
    -});
    -
    -```
    -
    -## Release History
    -
    -* 2016-03-22 - v0.3.2 - fix issue with v8 flags values being dropped
    -* 2014-09-12 - v0.3.1 - use `{ stdio: 'inherit' }` for spawn to maintain colors
    -* 2014-09-11 - v0.3.0 - for real this time
    -* 2014-09-11 - v0.2.0 - cleanup
    -* 2014-09-04 - v0.1.1 - initial release
    diff --git a/node_modules/flagged-respawn/index.js b/node_modules/flagged-respawn/index.js
    deleted file mode 100644
    index b123400..0000000
    --- a/node_modules/flagged-respawn/index.js
    +++ /dev/null
    @@ -1,18 +0,0 @@
    -const reorder = require('./lib/reorder');
    -const respawn = require('./lib/respawn');
    -
    -module.exports = function (flags, argv, execute) {
    -  if (!flags) {
    -    throw new Error('You must specify flags to respawn with.');
    -  }
    -  if (!argv) {
    -    throw new Error('You must specify an argv array.');
    -  }
    -  var proc = process;
    -  var reordered = reorder(flags, argv);
    -  var ready = JSON.stringify(argv) === JSON.stringify(reordered);
    -  if (!ready) {
    -    proc = respawn(reordered);
    -  }
    -  execute(ready, proc);
    -};
    diff --git a/node_modules/flagged-respawn/lib/reorder.js b/node_modules/flagged-respawn/lib/reorder.js
    deleted file mode 100644
    index 556a7d1..0000000
    --- a/node_modules/flagged-respawn/lib/reorder.js
    +++ /dev/null
    @@ -1,16 +0,0 @@
    -module.exports = function (flags, argv) {
    -  if (!argv) {
    -    argv = process.argv;
    -  }
    -  var args = [argv[1]];
    -  argv.slice(2).forEach(function (arg) {
    -    var flag = arg.split('=')[0];
    -    if (flags.indexOf(flag) !== -1) {
    -      args.unshift(arg);
    -    } else {
    -      args.push(arg);
    -    }
    -  });
    -  args.unshift(argv[0]);
    -  return args;
    -};
    diff --git a/node_modules/flagged-respawn/lib/respawn.js b/node_modules/flagged-respawn/lib/respawn.js
    deleted file mode 100644
    index 0865853..0000000
    --- a/node_modules/flagged-respawn/lib/respawn.js
    +++ /dev/null
    @@ -1,15 +0,0 @@
    -const spawn = require('child_process').spawn;
    -
    -module.exports = function (argv) {
    -  var child = spawn(argv[0], argv.slice(1), { stdio: 'inherit' });
    -  child.on('exit', function (code, signal) {
    -    process.on('exit', function () {
    -      if (signal) {
    -        process.kill(process.pid, signal);
    -      } else {
    -        process.exit(code);
    -      }
    -    });
    -  });
    -  return child;
    -};
    diff --git a/node_modules/flagged-respawn/package.json b/node_modules/flagged-respawn/package.json
    deleted file mode 100644
    index 371d255..0000000
    --- a/node_modules/flagged-respawn/package.json
    +++ /dev/null
    @@ -1,105 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "flagged-respawn@^0.3.2",
    -        "scope": null,
    -        "escapedName": "flagged-respawn",
    -        "name": "flagged-respawn",
    -        "rawSpec": "^0.3.2",
    -        "spec": ">=0.3.2 <0.4.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/liftoff"
    -    ]
    -  ],
    -  "_from": "flagged-respawn@>=0.3.2 <0.4.0",
    -  "_id": "flagged-respawn@0.3.2",
    -  "_inCache": true,
    -  "_location": "/flagged-respawn",
    -  "_nodeVersion": "0.12.12",
    -  "_npmOperationalInternal": {
    -    "host": "packages-12-west.internal.npmjs.com",
    -    "tmp": "tmp/flagged-respawn-0.3.2.tgz_1458638775261_0.252670707879588"
    -  },
    -  "_npmUser": {
    -    "name": "tusbar",
    -    "email": "b@pk.am"
    -  },
    -  "_npmVersion": "2.14.9",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "flagged-respawn@^0.3.2",
    -    "scope": null,
    -    "escapedName": "flagged-respawn",
    -    "name": "flagged-respawn",
    -    "rawSpec": "^0.3.2",
    -    "spec": ">=0.3.2 <0.4.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/liftoff"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-0.3.2.tgz",
    -  "_shasum": "ff191eddcd7088a675b2610fffc976be9b8074b5",
    -  "_shrinkwrap": null,
    -  "_spec": "flagged-respawn@^0.3.2",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/liftoff",
    -  "author": {
    -    "name": "Tyler Kellen",
    -    "url": "http://goingslowly.com/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/js-cli/js-flagged-respawn/issues"
    -  },
    -  "dependencies": {},
    -  "description": "A tool for respawning node binaries when special flags are present.",
    -  "devDependencies": {
    -    "chai": "~1.9.1",
    -    "mocha": "~1.21.4",
    -    "v8flags": "~1.0.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "ff191eddcd7088a675b2610fffc976be9b8074b5",
    -    "tarball": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-0.3.2.tgz"
    -  },
    -  "engines": {
    -    "node": ">= 0.8.0"
    -  },
    -  "gitHead": "5467529adb5512292c8dd341691ba75b2293ed7e",
    -  "homepage": "https://github.com/js-cli/js-flagged-respawn",
    -  "keywords": [
    -    "respawn flags"
    -  ],
    -  "licenses": [
    -    {
    -      "type": "MIT",
    -      "url": "https://github.com/js-cli/js-flagged-respawn/blob/master/LICENSE"
    -    }
    -  ],
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "tkellen",
    -      "email": "tyler@sleekcode.net"
    -    },
    -    {
    -      "name": "tusbar",
    -      "email": "b@pk.am"
    -    }
    -  ],
    -  "name": "flagged-respawn",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/js-cli/js-flagged-respawn.git"
    -  },
    -  "scripts": {
    -    "nospawn": "node test/bin/respawner test",
    -    "respawn": "node test/bin/respawner --harmony test",
    -    "test": "mocha -R spec test"
    -  },
    -  "version": "0.3.2"
    -}
    diff --git a/node_modules/flagged-respawn/test/bin/exit_code.js b/node_modules/flagged-respawn/test/bin/exit_code.js
    deleted file mode 100644
    index f2fff2d..0000000
    --- a/node_modules/flagged-respawn/test/bin/exit_code.js
    +++ /dev/null
    @@ -1,13 +0,0 @@
    -#!/usr/bin/env node
    -
    -const flaggedRespawn = require('../../');
    -
    -flaggedRespawn(['--harmony'], process.argv, function (ready) {
    -
    -  if (ready) {
    -    setTimeout(function () {
    -      process.exit(100);
    -    }, 100);
    -  }
    -
    -});
    diff --git a/node_modules/flagged-respawn/test/bin/respawner.js b/node_modules/flagged-respawn/test/bin/respawner.js
    deleted file mode 100644
    index 71348ba..0000000
    --- a/node_modules/flagged-respawn/test/bin/respawner.js
    +++ /dev/null
    @@ -1,17 +0,0 @@
    -#!/usr/bin/env node
    -
    -const flaggedRespawn = require('../../');
    -
    -// get a list of all possible v8 flags for the running version of node
    -const v8flags = require('v8flags').fetch();
    -
    -flaggedRespawn(v8flags, process.argv, function (ready, child) {
    -  if (ready) {
    -    console.log('Running!');
    -  } else {
    -    console.log('Special flags found, respawning.');
    -  }
    -  if (child.pid !== process.pid) {
    -    console.log('Respawned to PID:', child.pid);
    -  }
    -});
    diff --git a/node_modules/flagged-respawn/test/bin/signal.js b/node_modules/flagged-respawn/test/bin/signal.js
    deleted file mode 100644
    index f4a1edf..0000000
    --- a/node_modules/flagged-respawn/test/bin/signal.js
    +++ /dev/null
    @@ -1,16 +0,0 @@
    -#!/usr/bin/env node
    -
    -const flaggedRespawn = require('../../');
    -
    -flaggedRespawn(['--harmony'], process.argv, function (ready, child) {
    -
    -  if (ready) {
    -    setTimeout(function() {
    -      process.exit();
    -    }, 100);
    -  } else {
    -    console.log('got child!');
    -    child.kill('SIGHUP');
    -  }
    -
    -});
    diff --git a/node_modules/flagged-respawn/test/index.js b/node_modules/flagged-respawn/test/index.js
    deleted file mode 100644
    index d83fce3..0000000
    --- a/node_modules/flagged-respawn/test/index.js
    +++ /dev/null
    @@ -1,99 +0,0 @@
    -const expect = require('chai').expect;
    -const exec = require('child_process').exec;
    -
    -const reorder = require('../lib/reorder');
    -const flaggedRespawn = require('../');
    -
    -describe('flaggedRespawn', function () {
    -  var flags = ['--harmony', '--use_strict', '--stack_size']
    -
    -  describe('reorder', function () {
    -
    -    it('should re-order args, placing special flags first', function () {
    -      var needsRespawn = ['node', 'file.js', '--flag', '--harmony', 'command'];
    -      var noRespawnNeeded = ['node', 'bin/flagged-respawn', 'thing'];
    -      expect(reorder(flags, needsRespawn))
    -        .to.deep.equal(['node', '--harmony', 'file.js', '--flag', 'command']);
    -      expect(reorder(flags, noRespawnNeeded))
    -        .to.deep.equal(noRespawnNeeded);
    -    });
    -
    -    it('should keep flags values when not placed first', function () {
    -      var args = ['node', 'file.js', '--stack_size=2048'];
    -      var expected = ['node', '--stack_size=2048', 'file.js'];
    -      expect(reorder(flags, args)).to.deep.equal(expected);
    -    });
    -
    -    it('should ignore special flags when they are in the correct position', function () {
    -      var args = ['node', '--harmony', 'file.js', '--flag'];
    -      expect(reorder(flags, reorder(flags, args))).to.deep.equal(args);
    -    });
    -
    -  });
    -
    -  describe('execute', function () {
    -
    -    it('should throw if no flags are specified', function () {
    -      expect(function () { flaggedRespawn.execute(); }).to.throw;
    -    });
    -
    -    it('should throw if no argv is specified', function () {
    -      expect(function () { flaggedRespawn.execute(flags); }).to.throw;
    -    });
    -
    -    it('should respawn and pipe stderr/stdout to parent', function (done) {
    -      exec('node ./test/bin/respawner.js --harmony', function (err, stdout, stderr) {
    -        expect(stdout.replace(/[0-9]/g, '')).to.equal('Special flags found, respawning.\nRespawned to PID: \nRunning!\n');
    -        done();
    -      });
    -    });
    -
    -    it('should respawn and pass exit code from child to parent', function (done) {
    -      exec('node ./test/bin/exit_code.js --harmony', function (err, stdout, stderr) {
    -        expect(err.code).to.equal(100);
    -        done();
    -      });
    -    });
    -
    -    it.skip('should respawn; if child is killed, parent should exit with same signal', function (done) {
    -      // TODO: figure out why travis hates this
    -      exec('node ./test/bin/signal.js --harmony', function (err, stdout, stderr) {
    -        console.log('err', err);
    -        console.log('stdout', stdout);
    -        console.log('stderr', stderr);
    -        expect(err.signal).to.equal('SIGHUP');
    -        done();
    -      });
    -    });
    -
    -    it('should call back with ready as true when respawn is not needed', function () {
    -      var argv = ['node', './test/bin/respawner'];
    -      flaggedRespawn(flags, argv, function (ready) {
    -        expect(ready).to.be.true;
    -      });
    -    });
    -
    -    it('should call back with ready as false when respawn is needed', function () {
    -      var argv = ['node', './test/bin/respawner', '--harmony'];
    -      flaggedRespawn(flags, argv, function (ready) {
    -        expect(ready).to.be.false;
    -      });
    -    });
    -
    -    it('should call back with the child process when ready', function () {
    -      var argv = ['node', './test/bin/respawner', '--harmony'];
    -      flaggedRespawn(flags, argv, function (ready, child) {
    -        expect(child.pid).to.not.equal(process.pid);
    -      });
    -    });
    -
    -    it('should call back with own process when respawn not needed', function () {
    -      var argv = ['node', './test/bin/respawner'];
    -      flaggedRespawn(flags, argv, function (ready, child) {
    -        expect(child.pid).to.equal(process.pid);
    -      });
    -    });
    -
    -  });
    -
    -});
    diff --git a/node_modules/for-in/LICENSE b/node_modules/for-in/LICENSE
    deleted file mode 100644
    index 39245ac..0000000
    --- a/node_modules/for-in/LICENSE
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -The MIT License (MIT)
    -
    -Copyright (c) 2014-2016, 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/for-in/README.md b/node_modules/for-in/README.md
    deleted file mode 100644
    index 8514165..0000000
    --- a/node_modules/for-in/README.md
    +++ /dev/null
    @@ -1,74 +0,0 @@
    -# for-in [![NPM version](https://img.shields.io/npm/v/for-in.svg?style=flat)](https://www.npmjs.com/package/for-in) [![NPM downloads](https://img.shields.io/npm/dm/for-in.svg?style=flat)](https://npmjs.org/package/for-in) [![Build Status](https://img.shields.io/travis/jonschlinkert/for-in.svg?style=flat)](https://travis-ci.org/jonschlinkert/for-in)
    -
    -> Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js
    -
    -## Install
    -
    -Install with [npm](https://www.npmjs.com/):
    -
    -```sh
    -$ npm install for-in --save
    -```
    -
    -## Usage
    -
    -```js
    -var forIn = require('for-in');
    -
    -var obj = {a: 'foo', b: 'bar', c: 'baz'};
    -var values = [];
    -var keys = [];
    -
    -forIn(obj, function (value, key, o) {
    -  keys.push(key);
    -  values.push(value);
    -});
    -
    -console.log(keys);
    -//=> ['a', 'b', 'c'];
    -
    -console.log(values);
    -//=> ['foo', 'bar', 'baz'];
    -```
    -
    -## Contributing
    -
    -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/for-in/issues/new).
    -
    -## Building docs
    -
    -Generate readme and API documentation with [verb](https://github.com/verbose/verb):
    -
    -```sh
    -$ npm install verb && npm run docs
    -```
    -
    -Or, if [verb](https://github.com/verbose/verb) is installed globally:
    -
    -```sh
    -$ verb
    -```
    -
    -## Running tests
    -
    -Install dev dependencies:
    -
    -```sh
    -$ npm install -d && npm test
    -```
    -
    -## Author
    -
    -**Jon Schlinkert**
    -
    -* [github/jonschlinkert](https://github.com/jonschlinkert)
    -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
    -
    -## License
    -
    -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
    -Released under the [MIT license](https://github.com/jonschlinkert/for-in/blob/master/LICENSE).
    -
    -***
    -
    -_This file was generated by [verb](https://github.com/verbose/verb), v, on March 27, 2016._
    diff --git a/node_modules/for-in/index.js b/node_modules/for-in/index.js
    deleted file mode 100644
    index 9657550..0000000
    --- a/node_modules/for-in/index.js
    +++ /dev/null
    @@ -1,16 +0,0 @@
    -/*!
    - * for-in 
    - *
    - * Copyright (c) 2014-2016, Jon Schlinkert.
    - * Licensed under the MIT License.
    - */
    -
    -'use strict';
    -
    -module.exports = function forIn(o, fn, thisArg) {
    -  for (var key in o) {
    -    if (fn.call(thisArg, o[key], key, o) === false) {
    -      break;
    -    }
    -  }
    -};
    diff --git a/node_modules/for-in/package.json b/node_modules/for-in/package.json
    deleted file mode 100644
    index 4d7cdba..0000000
    --- a/node_modules/for-in/package.json
    +++ /dev/null
    @@ -1,127 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "for-in@^0.1.5",
    -        "scope": null,
    -        "escapedName": "for-in",
    -        "name": "for-in",
    -        "rawSpec": "^0.1.5",
    -        "spec": ">=0.1.5 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/for-own"
    -    ]
    -  ],
    -  "_from": "for-in@>=0.1.5 <0.2.0",
    -  "_id": "for-in@0.1.6",
    -  "_inCache": true,
    -  "_location": "/for-in",
    -  "_nodeVersion": "6.3.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/for-in-0.1.6.tgz_1473858422358_0.2992941744159907"
    -  },
    -  "_npmUser": {
    -    "name": "jonschlinkert",
    -    "email": "github@sellside.com"
    -  },
    -  "_npmVersion": "3.10.3",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "for-in@^0.1.5",
    -    "scope": null,
    -    "escapedName": "for-in",
    -    "name": "for-in",
    -    "rawSpec": "^0.1.5",
    -    "spec": ">=0.1.5 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/for-own"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.6.tgz",
    -  "_shasum": "c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8",
    -  "_shrinkwrap": null,
    -  "_spec": "for-in@^0.1.5",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/for-own",
    -  "author": {
    -    "name": "Jon Schlinkert",
    -    "url": "https://github.com/jonschlinkert"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/jonschlinkert/for-in/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js",
    -  "devDependencies": {
    -    "gulp-format-md": "^0.1.7",
    -    "mocha": "^2.4.5",
    -    "should": "^8.3.0"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "c9f96e89bfad18a545af5ec3ed352a1d9e5b4dc8",
    -    "tarball": "https://registry.npmjs.org/for-in/-/for-in-0.1.6.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.10.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "c903a9c0e06747c31bed8634c7c8645c6dbf8da1",
    -  "homepage": "https://github.com/jonschlinkert/for-in",
    -  "keywords": [
    -    "for-in",
    -    "for-own",
    -    "has",
    -    "has-own",
    -    "hasOwn",
    -    "key",
    -    "keys",
    -    "object",
    -    "own",
    -    "value"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "jonschlinkert",
    -      "email": "github@sellside.com"
    -    },
    -    {
    -      "name": "doowb",
    -      "email": "brian.woodward@gmail.com"
    -    }
    -  ],
    -  "name": "for-in",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/jonschlinkert/for-in.git"
    -  },
    -  "scripts": {
    -    "test": "mocha"
    -  },
    -  "verb": {
    -    "run": true,
    -    "toc": false,
    -    "layout": "default",
    -    "tasks": [
    -      "readme"
    -    ],
    -    "plugins": [
    -      "gulp-format-md"
    -    ],
    -    "reflinks": [
    -      "verb"
    -    ],
    -    "lint": {
    -      "reflinks": true
    -    }
    -  },
    -  "version": "0.1.6"
    -}
    diff --git a/node_modules/for-own/LICENSE b/node_modules/for-own/LICENSE
    deleted file mode 100644
    index fa30c4c..0000000
    --- a/node_modules/for-own/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/for-own/README.md b/node_modules/for-own/README.md
    deleted file mode 100644
    index 16831ab..0000000
    --- a/node_modules/for-own/README.md
    +++ /dev/null
    @@ -1,52 +0,0 @@
    -# for-own [![NPM version](https://badge.fury.io/js/for-own.svg)](http://badge.fury.io/js/for-own)
    -
    -> Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`.
    -
    -## Install
    -#### Install with [npm](https://www.npmjs.com/):
    -
    -```bash
    -npm i for-own --save
    -```
    -
    -## Run tests
    -
    -```bash
    -npm test
    -```
    -
    -## Usage
    -
    -```js
    -var forOwn = require('for-own');
    -
    -var obj = {a: 'foo', b: 'bar', c: 'baz'};
    -var values = [];
    -var keys = [];
    -
    -forOwn(obj, function (value, key, o) {
    -  keys.push(key);
    -  values.push(value);
    -});
    -
    -console.log(keys);
    -//=> ['a', 'b', 'c'];
    -
    -console.log(values);
    -//=> ['foo', 'bar', 'baz'];
    -```
    -
    -## Author
    -
    -**Jon Schlinkert**
    -
    -+ [github/jonschlinkert](https://github.com/jonschlinkert)
    -+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
    -
    -## License
    -Copyright (c) 2014 Jon Schlinkert, contributors.
    -Released under the MIT license
    -
    -***
    -
    -_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 20, 2014._
    diff --git a/node_modules/for-own/index.js b/node_modules/for-own/index.js
    deleted file mode 100644
    index d07256c..0000000
    --- a/node_modules/for-own/index.js
    +++ /dev/null
    @@ -1,19 +0,0 @@
    -/*!
    - * for-own 
    - *
    - * Copyright (c) 2014-2016, Jon Schlinkert.
    - * Licensed under the MIT License.
    - */
    -
    -'use strict';
    -
    -var forIn = require('for-in');
    -var hasOwn = Object.prototype.hasOwnProperty;
    -
    -module.exports = function forOwn(o, fn, thisArg) {
    -  forIn(o, function(val, key) {
    -    if (hasOwn.call(o, key)) {
    -      return fn.call(thisArg, o[key], key, o);
    -    }
    -  });
    -};
    diff --git a/node_modules/for-own/package.json b/node_modules/for-own/package.json
    deleted file mode 100644
    index 2da736d..0000000
    --- a/node_modules/for-own/package.json
    +++ /dev/null
    @@ -1,128 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "for-own@^0.1.4",
    -        "scope": null,
    -        "escapedName": "for-own",
    -        "name": "for-own",
    -        "rawSpec": "^0.1.4",
    -        "spec": ">=0.1.4 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/object.omit"
    -    ]
    -  ],
    -  "_from": "for-own@>=0.1.4 <0.2.0",
    -  "_id": "for-own@0.1.4",
    -  "_inCache": true,
    -  "_location": "/for-own",
    -  "_nodeVersion": "5.5.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/for-own-0.1.4.tgz_1459091314670_0.658134751021862"
    -  },
    -  "_npmUser": {
    -    "name": "jonschlinkert",
    -    "email": "github@sellside.com"
    -  },
    -  "_npmVersion": "3.6.0",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "for-own@^0.1.4",
    -    "scope": null,
    -    "escapedName": "for-own",
    -    "name": "for-own",
    -    "rawSpec": "^0.1.4",
    -    "spec": ">=0.1.4 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/object.omit"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.4.tgz",
    -  "_shasum": "0149b41a39088c7515f51ebe1c1386d45f935072",
    -  "_shrinkwrap": null,
    -  "_spec": "for-own@^0.1.4",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/object.omit",
    -  "author": {
    -    "name": "Jon Schlinkert",
    -    "url": "https://github.com/jonschlinkert"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/jonschlinkert/for-own/issues"
    -  },
    -  "dependencies": {
    -    "for-in": "^0.1.5"
    -  },
    -  "description": "Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js.",
    -  "devDependencies": {
    -    "gulp-format-md": "^0.1.7",
    -    "mocha": "^2.4.5"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "0149b41a39088c7515f51ebe1c1386d45f935072",
    -    "tarball": "https://registry.npmjs.org/for-own/-/for-own-0.1.4.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.10.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "475607dc923dcc399c1bfdbecc0df4b957eb3779",
    -  "homepage": "https://github.com/jonschlinkert/for-own",
    -  "keywords": [
    -    "for-in",
    -    "for-own",
    -    "has",
    -    "has-own",
    -    "hasOwn",
    -    "key",
    -    "keys",
    -    "object",
    -    "own",
    -    "value"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "jonschlinkert",
    -      "email": "github@sellside.com"
    -    },
    -    {
    -      "name": "doowb",
    -      "email": "brian.woodward@gmail.com"
    -    }
    -  ],
    -  "name": "for-own",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/jonschlinkert/for-own.git"
    -  },
    -  "scripts": {
    -    "test": "mocha"
    -  },
    -  "verb": {
    -    "run": true,
    -    "toc": false,
    -    "layout": "default",
    -    "tasks": [
    -      "readme"
    -    ],
    -    "plugins": [
    -      "gulp-format-md"
    -    ],
    -    "reflinks": [
    -      "verb"
    -    ],
    -    "lint": {
    -      "reflinks": true
    -    }
    -  },
    -  "version": "0.1.4"
    -}
    diff --git a/node_modules/forever-agent/LICENSE b/node_modules/forever-agent/LICENSE
    deleted file mode 100644
    index a4a9aee..0000000
    --- a/node_modules/forever-agent/LICENSE
    +++ /dev/null
    @@ -1,55 +0,0 @@
    -Apache License
    -
    -Version 2.0, January 2004
    -
    -http://www.apache.org/licenses/
    -
    -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    -
    -1. Definitions.
    -
    -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
    -
    -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
    -
    -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
    -
    -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
    -
    -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
    -
    -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
    -
    -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
    -
    -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
    -
    -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
    -
    -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
    -
    -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
    -
    -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
    -
    -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
    -
    -You must give any other recipients of the Work or Derivative Works a copy of this License; and
    -
    -You must cause any modified files to carry prominent notices stating that You changed the files; and
    -
    -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
    -
    -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
    -
    -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
    -
    -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
    -
    -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
    -
    -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
    -
    -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
    -
    -END OF TERMS AND CONDITIONS
    \ No newline at end of file
    diff --git a/node_modules/forever-agent/README.md b/node_modules/forever-agent/README.md
    deleted file mode 100644
    index 9d5b663..0000000
    --- a/node_modules/forever-agent/README.md
    +++ /dev/null
    @@ -1,4 +0,0 @@
    -forever-agent
    -=============
    -
    -HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.
    diff --git a/node_modules/forever-agent/index.js b/node_modules/forever-agent/index.js
    deleted file mode 100644
    index 416c7ab..0000000
    --- a/node_modules/forever-agent/index.js
    +++ /dev/null
    @@ -1,138 +0,0 @@
    -module.exports = ForeverAgent
    -ForeverAgent.SSL = ForeverAgentSSL
    -
    -var util = require('util')
    -  , Agent = require('http').Agent
    -  , net = require('net')
    -  , tls = require('tls')
    -  , AgentSSL = require('https').Agent
    -  
    -function getConnectionName(host, port) {  
    -  var name = ''
    -  if (typeof host === 'string') {
    -    name = host + ':' + port
    -  } else {
    -    // For node.js v012.0 and iojs-v1.5.1, host is an object. And any existing localAddress is part of the connection name.
    -    name = host.host + ':' + host.port + ':' + (host.localAddress ? (host.localAddress + ':') : ':')
    -  }
    -  return name
    -}    
    -
    -function ForeverAgent(options) {
    -  var self = this
    -  self.options = options || {}
    -  self.requests = {}
    -  self.sockets = {}
    -  self.freeSockets = {}
    -  self.maxSockets = self.options.maxSockets || Agent.defaultMaxSockets
    -  self.minSockets = self.options.minSockets || ForeverAgent.defaultMinSockets
    -  self.on('free', function(socket, host, port) {
    -    var name = getConnectionName(host, port)
    -
    -    if (self.requests[name] && self.requests[name].length) {
    -      self.requests[name].shift().onSocket(socket)
    -    } else if (self.sockets[name].length < self.minSockets) {
    -      if (!self.freeSockets[name]) self.freeSockets[name] = []
    -      self.freeSockets[name].push(socket)
    -      
    -      // if an error happens while we don't use the socket anyway, meh, throw the socket away
    -      var onIdleError = function() {
    -        socket.destroy()
    -      }
    -      socket._onIdleError = onIdleError
    -      socket.on('error', onIdleError)
    -    } else {
    -      // If there are no pending requests just destroy the
    -      // socket and it will get removed from the pool. This
    -      // gets us out of timeout issues and allows us to
    -      // default to Connection:keep-alive.
    -      socket.destroy()
    -    }
    -  })
    -
    -}
    -util.inherits(ForeverAgent, Agent)
    -
    -ForeverAgent.defaultMinSockets = 5
    -
    -
    -ForeverAgent.prototype.createConnection = net.createConnection
    -ForeverAgent.prototype.addRequestNoreuse = Agent.prototype.addRequest
    -ForeverAgent.prototype.addRequest = function(req, host, port) {
    -  var name = getConnectionName(host, port)
    -  
    -  if (typeof host !== 'string') {
    -    var options = host
    -    port = options.port
    -    host = options.host
    -  }
    -
    -  if (this.freeSockets[name] && this.freeSockets[name].length > 0 && !req.useChunkedEncodingByDefault) {
    -    var idleSocket = this.freeSockets[name].pop()
    -    idleSocket.removeListener('error', idleSocket._onIdleError)
    -    delete idleSocket._onIdleError
    -    req._reusedSocket = true
    -    req.onSocket(idleSocket)
    -  } else {
    -    this.addRequestNoreuse(req, host, port)
    -  }
    -}
    -
    -ForeverAgent.prototype.removeSocket = function(s, name, host, port) {
    -  if (this.sockets[name]) {
    -    var index = this.sockets[name].indexOf(s)
    -    if (index !== -1) {
    -      this.sockets[name].splice(index, 1)
    -    }
    -  } else if (this.sockets[name] && this.sockets[name].length === 0) {
    -    // don't leak
    -    delete this.sockets[name]
    -    delete this.requests[name]
    -  }
    -  
    -  if (this.freeSockets[name]) {
    -    var index = this.freeSockets[name].indexOf(s)
    -    if (index !== -1) {
    -      this.freeSockets[name].splice(index, 1)
    -      if (this.freeSockets[name].length === 0) {
    -        delete this.freeSockets[name]
    -      }
    -    }
    -  }
    -
    -  if (this.requests[name] && this.requests[name].length) {
    -    // If we have pending requests and a socket gets closed a new one
    -    // needs to be created to take over in the pool for the one that closed.
    -    this.createSocket(name, host, port).emit('free')
    -  }
    -}
    -
    -function ForeverAgentSSL (options) {
    -  ForeverAgent.call(this, options)
    -}
    -util.inherits(ForeverAgentSSL, ForeverAgent)
    -
    -ForeverAgentSSL.prototype.createConnection = createConnectionSSL
    -ForeverAgentSSL.prototype.addRequestNoreuse = AgentSSL.prototype.addRequest
    -
    -function createConnectionSSL (port, host, options) {
    -  if (typeof port === 'object') {
    -    options = port;
    -  } else if (typeof host === 'object') {
    -    options = host;
    -  } else if (typeof options === 'object') {
    -    options = options;
    -  } else {
    -    options = {};
    -  }
    -
    -  if (typeof port === 'number') {
    -    options.port = port;
    -  }
    -
    -  if (typeof host === 'string') {
    -    options.host = host;
    -  }
    -
    -  return tls.connect(options);
    -}
    diff --git a/node_modules/forever-agent/package.json b/node_modules/forever-agent/package.json
    deleted file mode 100644
    index cc8b359..0000000
    --- a/node_modules/forever-agent/package.json
    +++ /dev/null
    @@ -1,88 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "forever-agent@~0.6.1",
    -        "scope": null,
    -        "escapedName": "forever-agent",
    -        "name": "forever-agent",
    -        "rawSpec": "~0.6.1",
    -        "spec": ">=0.6.1 <0.7.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/request"
    -    ]
    -  ],
    -  "_from": "forever-agent@>=0.6.1 <0.7.0",
    -  "_id": "forever-agent@0.6.1",
    -  "_inCache": true,
    -  "_location": "/forever-agent",
    -  "_npmUser": {
    -    "name": "simov",
    -    "email": "simeonvelichkov@gmail.com"
    -  },
    -  "_npmVersion": "1.4.28",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "forever-agent@~0.6.1",
    -    "scope": null,
    -    "escapedName": "forever-agent",
    -    "name": "forever-agent",
    -    "rawSpec": "~0.6.1",
    -    "spec": ">=0.6.1 <0.7.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/request"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
    -  "_shasum": "fbc71f0c41adeb37f96c577ad1ed42d8fdacca91",
    -  "_shrinkwrap": null,
    -  "_spec": "forever-agent@~0.6.1",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/request",
    -  "author": {
    -    "name": "Mikeal Rogers",
    -    "email": "mikeal.rogers@gmail.com",
    -    "url": "http://www.futurealoof.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/mikeal/forever-agent/issues"
    -  },
    -  "dependencies": {},
    -  "description": "HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "fbc71f0c41adeb37f96c577ad1ed42d8fdacca91",
    -    "tarball": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz"
    -  },
    -  "engines": {
    -    "node": "*"
    -  },
    -  "gitHead": "1b3b6163f2b3c2c4122bbfa288c1325c0df9871d",
    -  "homepage": "https://github.com/mikeal/forever-agent",
    -  "license": "Apache-2.0",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "mikeal",
    -      "email": "mikeal.rogers@gmail.com"
    -    },
    -    {
    -      "name": "nylen",
    -      "email": "jnylen@gmail.com"
    -    },
    -    {
    -      "name": "simov",
    -      "email": "simeonvelichkov@gmail.com"
    -    }
    -  ],
    -  "name": "forever-agent",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "url": "git+https://github.com/mikeal/forever-agent.git"
    -  },
    -  "scripts": {},
    -  "version": "0.6.1"
    -}
    diff --git a/node_modules/fork-stream/.npmignore b/node_modules/fork-stream/.npmignore
    deleted file mode 100644
    index 07e6e47..0000000
    --- a/node_modules/fork-stream/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -/node_modules
    diff --git a/node_modules/fork-stream/.travis.yml b/node_modules/fork-stream/.travis.yml
    deleted file mode 100644
    index 6e5919d..0000000
    --- a/node_modules/fork-stream/.travis.yml
    +++ /dev/null
    @@ -1,3 +0,0 @@
    -language: node_js
    -node_js:
    -  - "0.10"
    diff --git a/node_modules/fork-stream/LICENSE.md b/node_modules/fork-stream/LICENSE.md
    deleted file mode 100644
    index 547189a..0000000
    --- a/node_modules/fork-stream/LICENSE.md
    +++ /dev/null
    @@ -1,26 +0,0 @@
    -Copyright (c) 2013, Deoxxa Development
    -======================================
    -All rights reserved.
    ---------------------
    -  
    -Redistribution and use in source and binary forms, with or without
    -modification, are permitted provided that the following conditions are met:  
    -1. Redistributions of source code must retain the above copyright
    -   notice, this list of conditions and the following disclaimer.  
    -2. 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.  
    -3. Neither the name of Deoxxa Development 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 DEOXXA DEVELOPMENT ''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 DEOXXA DEVELOPMENT 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.
    diff --git a/node_modules/fork-stream/README.md b/node_modules/fork-stream/README.md
    deleted file mode 100644
    index 1d747f6..0000000
    --- a/node_modules/fork-stream/README.md
    +++ /dev/null
    @@ -1,135 +0,0 @@
    -fork-stream [![build status](https://travis-ci.org/deoxxa/fork-stream.png)](https://travis-ci.org/deoxxa/fork-stream)
    -===========
    -
    -Fork a stream in multiple directions according to a function.
    -
    -Overview
    ---------
    -
    -fork-stream basically gives you conditional branching for streams. You supply
    -the logic, fork-stream supplies the streaming.
    -
    -Super Quickstart
    -----------------
    -
    -Code:
    -
    -```javascript
    -var ForkStream = require("fork-stream");
    -
    -var fork = new ForkStream({
    -  classifier: function classify(e, done) {
    -    return done(null, e.match(/[aeiou]/));
    -  },
    -});
    -
    -fork.a.on("data", console.log.bind(console, "vowels:"));
    -fork.b.on("data", console.log.bind(console, "no vowels:"));
    -
    -fork.write("hello");
    -fork.write("zxcbzz");
    -fork.write("ooooooo");
    -
    -fork.end();
    -```
    -
    -Output:
    -
    -```
    -vowels: hello
    -no vowels: zxcbzz
    -vowels: ooooooo
    -```
    -
    -Installation
    -------------
    -
    -Available via [npm](http://npmjs.org/):
    -
    -> $ npm install fork-stream
    -
    -Or via git:
    -
    -> $ git clone git://github.com/deoxxa/fork-stream.git node_modules/fork-stream
    -
    -API
    ----
    -
    -**constructor**
    -
    -Creates a new fork-stream.
    -
    -```javascript
    -new ForkStream(options);
    -```
    -
    -```javascript
    -var fork = new ForkStream({
    -  highWaterMark: 5,
    -  classifier: function(e, done) {
    -    return done(null, !!e);
    -  },
    -});
    -```
    -
    -* _options_ - regular stream options, and a `classifier` property that
    -  fork-stream will use to decide what output stream to send your object down.
    -
    -Example
    --------
    -
    -Also see [example.js](https://github.com/deoxxa/fork-stream/blob/master/example.js).
    -
    -```javascript
    -var ForkStream = require("fork-stream");
    -
    -var fork = new ForkStream({
    -  classifier: function classify(e, done) {
    -    return done(null, e >= 5);
    -  },
    -});
    -
    -fork.a.on("data", console.log.bind(null, "a"));
    -fork.b.on("data", console.log.bind(null, "b"));
    -
    -for (var i=0;i<20;++i) {
    -  fork.write(Math.round(Math.random() * 10));
    -}
    -```
    -
    -Output:
    -
    -```
    -b 1
    -a 6
    -a 9
    -a 10
    -a 7
    -a 5
    -b 2
    -b 4
    -a 8
    -b 3
    -a 5
    -b 4
    -a 7
    -a 8
    -b 1
    -a 6
    -b 2
    -b 0
    -a 5
    -b 1
    -```
    -
    -License
    --------
    -
    -3-clause BSD. A copy is included with the source.
    -
    -Contact
    --------
    -
    -* GitHub ([deoxxa](http://github.com/deoxxa))
    -* Twitter ([@deoxxa](http://twitter.com/deoxxa))
    -* Email ([deoxxa@fknsrs.biz](mailto:deoxxa@fknsrs.biz))
    diff --git a/node_modules/fork-stream/example.js b/node_modules/fork-stream/example.js
    deleted file mode 100755
    index 8700191..0000000
    --- a/node_modules/fork-stream/example.js
    +++ /dev/null
    @@ -1,16 +0,0 @@
    -#!/usr/bin/env node
    -
    -var ForkStream = require("./");
    -
    -var fork = new ForkStream({
    -  classifier: function classify(e, done) {
    -    return done(null, e >= 5);
    -  },
    -});
    -
    -fork.a.on("data", console.log.bind(null, "a"));
    -fork.b.on("data", console.log.bind(null, "b"));
    -
    -for (var i=0;i<20;++i) {
    -  fork.write(Math.round(Math.random() * 10));
    -}
    diff --git a/node_modules/fork-stream/index.js b/node_modules/fork-stream/index.js
    deleted file mode 100644
    index f916b79..0000000
    --- a/node_modules/fork-stream/index.js
    +++ /dev/null
    @@ -1,57 +0,0 @@
    -var stream = require("stream");
    -
    -var ForkStream = module.exports = function ForkStream(options) {
    -  options = options || {};
    -
    -  options.objectMode = true;
    -
    -  stream.Writable.call(this, options);
    -
    -  if (options.classifier) {
    -    this._classifier = options.classifier;
    -  }
    -
    -  this.a = new stream.Readable(options);
    -  this.b = new stream.Readable(options);
    -
    -  var self = this;
    -
    -  var resume = function resume() {
    -    if (self.resume) {
    -      var r = self.resume;
    -      self.resume = null;
    -      r.call(null);
    -    }
    -  };
    -
    -  this.a._read = resume;
    -  this.b._read = resume;
    -
    -  this.on("finish", function() {
    -    self.a.push(null);
    -    self.b.push(null);
    -  });
    -};
    -ForkStream.prototype = Object.create(stream.Writable.prototype, {constructor: {value: ForkStream}});
    -
    -ForkStream.prototype._classifier = function(e, done) {
    -  return done(null, !!e);
    -};
    -
    -ForkStream.prototype._write = function _write(input, encoding, done) {
    -  var self = this;
    -
    -  this._classifier.call(null, input, function(err, res) {
    -    if (err) {
    -      return done(err);
    -    }
    -
    -    var out = res ? self.a : self.b;
    -
    -    if (out.push(input)) {
    -      return done();
    -    } else {
    -      self.resume = done;
    -    }
    -  });
    -};
    diff --git a/node_modules/fork-stream/package.json b/node_modules/fork-stream/package.json
    deleted file mode 100644
    index 2118b19..0000000
    --- a/node_modules/fork-stream/package.json
    +++ /dev/null
    @@ -1,90 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "fork-stream@^0.0.4",
    -        "scope": null,
    -        "escapedName": "fork-stream",
    -        "name": "fork-stream",
    -        "rawSpec": "^0.0.4",
    -        "spec": ">=0.0.4 <0.0.5",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/ternary-stream"
    -    ]
    -  ],
    -  "_from": "fork-stream@>=0.0.4 <0.0.5",
    -  "_id": "fork-stream@0.0.4",
    -  "_inCache": true,
    -  "_location": "/fork-stream",
    -  "_npmUser": {
    -    "name": "deoxxa",
    -    "email": "deoxxa@fknsrs.biz"
    -  },
    -  "_npmVersion": "1.2.32",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "fork-stream@^0.0.4",
    -    "scope": null,
    -    "escapedName": "fork-stream",
    -    "name": "fork-stream",
    -    "rawSpec": "^0.0.4",
    -    "spec": ">=0.0.4 <0.0.5",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/ternary-stream"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz",
    -  "_shasum": "db849fce77f6708a5f8f386ae533a0907b54ae70",
    -  "_shrinkwrap": null,
    -  "_spec": "fork-stream@^0.0.4",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/ternary-stream",
    -  "author": {
    -    "name": "Conrad Pankoff",
    -    "email": "deoxxa@fknsrs.biz",
    -    "url": "http://www.fknsrs.biz/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/deoxxa/fork-stream/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Fork a stream in multiple directions according to a function",
    -  "devDependencies": {
    -    "chai": "~1.7.2",
    -    "mocha": "~1.12.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "db849fce77f6708a5f8f386ae533a0907b54ae70",
    -    "tarball": "https://registry.npmjs.org/fork-stream/-/fork-stream-0.0.4.tgz"
    -  },
    -  "homepage": "https://github.com/deoxxa/fork-stream#readme",
    -  "keywords": [
    -    "stream",
    -    "fork",
    -    "split",
    -    "function",
    -    "conditional"
    -  ],
    -  "license": "BSD",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "deoxxa",
    -      "email": "deoxxa@fknsrs.biz"
    -    }
    -  ],
    -  "name": "fork-stream",
    -  "optionalDependencies": {},
    -  "readme": "fork-stream [![build status](https://travis-ci.org/deoxxa/fork-stream.png)](https://travis-ci.org/deoxxa/fork-stream)\n===========\n\nFork a stream in multiple directions according to a function.\n\nOverview\n--------\n\nfork-stream basically gives you conditional branching for streams. You supply\nthe logic, fork-stream supplies the streaming.\n\nSuper Quickstart\n----------------\n\nCode:\n\n```javascript\nvar ForkStream = require(\"fork-stream\");\n\nvar fork = new ForkStream({\n  classifier: function classify(e, done) {\n    return done(null, e.match(/[aeiou]/));\n  },\n});\n\nfork.a.on(\"data\", console.log.bind(console, \"vowels:\"));\nfork.b.on(\"data\", console.log.bind(console, \"no vowels:\"));\n\nfork.write(\"hello\");\nfork.write(\"zxcbzz\");\nfork.write(\"ooooooo\");\n\nfork.end();\n```\n\nOutput:\n\n```\nvowels: hello\nno vowels: zxcbzz\nvowels: ooooooo\n```\n\nInstallation\n------------\n\nAvailable via [npm](http://npmjs.org/):\n\n> $ npm install fork-stream\n\nOr via git:\n\n> $ git clone git://github.com/deoxxa/fork-stream.git node_modules/fork-stream\n\nAPI\n---\n\n**constructor**\n\nCreates a new fork-stream.\n\n```javascript\nnew ForkStream(options);\n```\n\n```javascript\nvar fork = new ForkStream({\n  highWaterMark: 5,\n  classifier: function(e, done) {\n    return done(null, !!e);\n  },\n});\n```\n\n* _options_ - regular stream options, and a `classifier` property that\n  fork-stream will use to decide what output stream to send your object down.\n\nExample\n-------\n\nAlso see [example.js](https://github.com/deoxxa/fork-stream/blob/master/example.js).\n\n```javascript\nvar ForkStream = require(\"fork-stream\");\n\nvar fork = new ForkStream({\n  classifier: function classify(e, done) {\n    return done(null, e >= 5);\n  },\n});\n\nfork.a.on(\"data\", console.log.bind(null, \"a\"));\nfork.b.on(\"data\", console.log.bind(null, \"b\"));\n\nfor (var i=0;i<20;++i) {\n  fork.write(Math.round(Math.random() * 10));\n}\n```\n\nOutput:\n\n```\nb 1\na 6\na 9\na 10\na 7\na 5\nb 2\nb 4\na 8\nb 3\na 5\nb 4\na 7\na 8\nb 1\na 6\nb 2\nb 0\na 5\nb 1\n```\n\nLicense\n-------\n\n3-clause BSD. A copy is included with the source.\n\nContact\n-------\n\n* GitHub ([deoxxa](http://github.com/deoxxa))\n* Twitter ([@deoxxa](http://twitter.com/deoxxa))\n* Email ([deoxxa@fknsrs.biz](mailto:deoxxa@fknsrs.biz))\n",
    -  "readmeFilename": "README.md",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/deoxxa/fork-stream.git"
    -  },
    -  "scripts": {
    -    "test": "mocha -R tap"
    -  },
    -  "version": "0.0.4"
    -}
    diff --git a/node_modules/fork-stream/test/tests.js b/node_modules/fork-stream/test/tests.js
    deleted file mode 100644
    index 21c8df1..0000000
    --- a/node_modules/fork-stream/test/tests.js
    +++ /dev/null
    @@ -1,94 +0,0 @@
    -var assert = require("chai").assert;
    -
    -var ForkStream = require("../");
    -
    -describe("fork-stream", function() {
    -  it("should split objects into their correct streams", function(done) {
    -    var fork = new ForkStream({
    -      classifier: function classify(e, done) {
    -        return done(null, e >= 5);
    -      },
    -    });
    -
    -    var expectedA = [5, 7, 9],
    -        expectedB = [1, 4, 3, 1];
    -
    -    var actualA = [],
    -        actualB = [];
    -
    -    fork.a.on("data", function(e) {
    -      actualA.push(e);
    -    });
    -
    -    fork.b.on("data", function(e) {
    -      actualB.push(e);
    -    });
    -
    -    fork.on("finish", function() {
    -      assert.deepEqual(expectedA, actualA);
    -      assert.deepEqual(expectedB, actualB);
    -
    -      return done();
    -    });
    -
    -    [1, 5, 7, 4, 9, 3, 1].forEach(function(n) {
    -      fork.write(n);
    -    });
    -
    -    fork.end();
    -  });
    -
    -  it("should respect backpressure", function(done) {
    -    var fork = new ForkStream({
    -      highWaterMark: 2,
    -      classifier: function classify(e, done) {
    -        return done(null, e >= 5);
    -      },
    -    });
    -
    -    var expected = [5, 7],
    -        actual = [];
    -
    -    fork.a.on("data", function(e) {
    -      actual.push(e);
    -    });
    -
    -    var timeout = setTimeout(function() {
    -      assert.deepEqual(expected, actual);
    -
    -      return done();
    -    }, 10);
    -
    -    fork.on("finish", function() {
    -      clearTimeout(timeout);
    -
    -      return done(Error("should not finish"));
    -    });
    -
    -    [1, 5, 7, 4, 9, 3, 1].forEach(function(n) {
    -      fork.write(n);
    -    });
    -
    -    fork.end();
    -  });
    -
    -  it("should end the outputs when the input finishes", function(done) {
    -    var fork = new ForkStream();
    -
    -    var count = 0;
    -    var onEnd = function onEnd() {
    -      if (++count === 2) {
    -        return done();
    -      }
    -    };
    -
    -    fork.a.on("end", onEnd)
    -    fork.b.on("end", onEnd);
    -
    -    // start "flowing" mode
    -    fork.a.resume();
    -    fork.b.resume();
    -
    -    fork.end();
    -  });
    -});
    diff --git a/node_modules/form-data/License b/node_modules/form-data/License
    deleted file mode 100644
    index c7ff12a..0000000
    --- a/node_modules/form-data/License
    +++ /dev/null
    @@ -1,19 +0,0 @@
    -Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors
    -
    - 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/form-data/README.md b/node_modules/form-data/README.md
    deleted file mode 100644
    index 642a9d1..0000000
    --- a/node_modules/form-data/README.md
    +++ /dev/null
    @@ -1,217 +0,0 @@
    -# Form-Data [![NPM Module](https://img.shields.io/npm/v/form-data.svg)](https://www.npmjs.com/package/form-data) [![Join the chat at https://gitter.im/form-data/form-data](http://form-data.github.io/images/gitterbadge.svg)](https://gitter.im/form-data/form-data)
    -
    -A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications.
    -
    -The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd].
    -
    -[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface
    -
    -[![Linux Build](https://img.shields.io/travis/form-data/form-data/v2.1.2.svg?label=linux:0.12-6.x)](https://travis-ci.org/form-data/form-data)
    -[![MacOS Build](https://img.shields.io/travis/form-data/form-data/v2.1.2.svg?label=macos:0.12-6.x)](https://travis-ci.org/form-data/form-data)
    -[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/form-data/v2.1.2.svg?label=windows:0.12-6.x)](https://ci.appveyor.com/project/alexindigo/form-data)
    -
    -[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/v2.1.2.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master)
    -[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data)
    -[![bitHound Overall Score](https://www.bithound.io/github/form-data/form-data/badges/score.svg)](https://www.bithound.io/github/form-data/form-data)
    -
    -## Install
    -
    -```
    -npm install --save form-data
    -```
    -
    -## Usage
    -
    -In this example we are constructing a form with 3 fields that contain a string,
    -a buffer and a file stream.
    -
    -``` javascript
    -var FormData = require('form-data');
    -var fs = require('fs');
    -
    -var form = new FormData();
    -form.append('my_field', 'my value');
    -form.append('my_buffer', new Buffer(10));
    -form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
    -```
    -
    -Also you can use http-response stream:
    -
    -``` javascript
    -var FormData = require('form-data');
    -var http = require('http');
    -
    -var form = new FormData();
    -
    -http.request('http://nodejs.org/images/logo.png', function(response) {
    -  form.append('my_field', 'my value');
    -  form.append('my_buffer', new Buffer(10));
    -  form.append('my_logo', response);
    -});
    -```
    -
    -Or @mikeal's [request](https://github.com/request/request) stream:
    -
    -``` javascript
    -var FormData = require('form-data');
    -var request = require('request');
    -
    -var form = new FormData();
    -
    -form.append('my_field', 'my value');
    -form.append('my_buffer', new Buffer(10));
    -form.append('my_logo', request('http://nodejs.org/images/logo.png'));
    -```
    -
    -In order to submit this form to a web application, call ```submit(url, [callback])``` method:
    -
    -``` javascript
    -form.submit('http://example.org/', function(err, res) {
    -  // res – response object (http.IncomingMessage)  //
    -  res.resume();
    -});
    -
    -```
    -
    -For more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods.
    -
    -### Alternative submission methods
    -
    -You can use node's http client interface:
    -
    -``` javascript
    -var http = require('http');
    -
    -var request = http.request({
    -  method: 'post',
    -  host: 'example.org',
    -  path: '/upload',
    -  headers: form.getHeaders()
    -});
    -
    -form.pipe(request);
    -
    -request.on('response', function(res) {
    -  console.log(res.statusCode);
    -});
    -```
    -
    -Or if you would prefer the `'Content-Length'` header to be set for you:
    -
    -``` javascript
    -form.submit('example.org/upload', function(err, res) {
    -  console.log(res.statusCode);
    -});
    -```
    -
    -To use custom headers and pre-known length in parts:
    -
    -``` javascript
    -var CRLF = '\r\n';
    -var form = new FormData();
    -
    -var options = {
    -  header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF,
    -  knownLength: 1
    -};
    -
    -form.append('my_buffer', buffer, options);
    -
    -form.submit('http://example.com/', function(err, res) {
    -  if (err) throw err;
    -  console.log('Done');
    -});
    -```
    -
    -Form-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide "file"-related information manually:
    -
    -``` javascript
    -someModule.stream(function(err, stdout, stderr) {
    -  if (err) throw err;
    -
    -  var form = new FormData();
    -
    -  form.append('file', stdout, {
    -    filename: 'unicycle.jpg',
    -    contentType: 'image/jpg',
    -    knownLength: 19806
    -  });
    -
    -  form.submit('http://example.com/', function(err, res) {
    -    if (err) throw err;
    -    console.log('Done');
    -  });
    -});
    -```
    -
    -For edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter:
    -
    -``` javascript
    -form.submit({
    -  host: 'example.com',
    -  path: '/probably.php?extra=params',
    -  auth: 'username:password'
    -}, function(err, res) {
    -  console.log(res.statusCode);
    -});
    -```
    -
    -In case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`:
    -
    -``` javascript
    -form.submit({
    -  host: 'example.com',
    -  path: '/surelynot.php',
    -  headers: {'x-test-header': 'test-header-value'}
    -}, function(err, res) {
    -  console.log(res.statusCode);
    -});
    -```
    -
    -### Integration with other libraries
    -
    -#### Request
    -
    -Form submission using  [request](https://github.com/request/request):
    -
    -```javascript
    -var formData = {
    -  my_field: 'my_value',
    -  my_file: fs.createReadStream(__dirname + '/unicycle.jpg'),
    -};
    -
    -request.post({url:'http://service.com/upload', formData: formData}, function(err, httpResponse, body) {
    -  if (err) {
    -    return console.error('upload failed:', err);
    -  }
    -  console.log('Upload successful!  Server responded with:', body);
    -});
    -```
    -
    -For more details see [request readme](https://github.com/request/request#multipartform-data-multipart-form-uploads).
    -
    -#### node-fetch
    -
    -You can also submit a form using [node-fetch](https://github.com/bitinn/node-fetch):
    -
    -```javascript
    -var form = new FormData();
    -
    -form.append('a', 1);
    -
    -fetch('http://example.com', { method: 'POST', body: form })
    -    .then(function(res) {
    -        return res.json();
    -    }).then(function(json) {
    -        console.log(json);
    -    });
    -```
    -
    -## Notes
    -
    -- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround.
    -- Starting version `2.x` FormData has dropped support for `node@0.10.x`.
    -
    -## License
    -
    -Form-Data is released under the [MIT](License) license.
    diff --git a/node_modules/form-data/lib/browser.js b/node_modules/form-data/lib/browser.js
    deleted file mode 100644
    index 09e7c70..0000000
    --- a/node_modules/form-data/lib/browser.js
    +++ /dev/null
    @@ -1,2 +0,0 @@
    -/* eslint-env browser */
    -module.exports = typeof self == 'object' ? self.FormData : window.FormData;
    diff --git a/node_modules/form-data/lib/form_data.js b/node_modules/form-data/lib/form_data.js
    deleted file mode 100644
    index d2cc924..0000000
    --- a/node_modules/form-data/lib/form_data.js
    +++ /dev/null
    @@ -1,440 +0,0 @@
    -var CombinedStream = require('combined-stream');
    -var util = require('util');
    -var path = require('path');
    -var http = require('http');
    -var https = require('https');
    -var parseUrl = require('url').parse;
    -var fs = require('fs');
    -var mime = require('mime-types');
    -var asynckit = require('asynckit');
    -var populate = require('./populate.js');
    -
    -// Public API
    -module.exports = FormData;
    -
    -// make it a Stream
    -util.inherits(FormData, CombinedStream);
    -
    -/**
    - * Create readable "multipart/form-data" streams.
    - * Can be used to submit forms
    - * and file uploads to other web applications.
    - *
    - * @constructor
    - */
    -function FormData() {
    -  if (!(this instanceof FormData)) {
    -    return new FormData();
    -  }
    -
    -  this._overheadLength = 0;
    -  this._valueLength = 0;
    -  this._valuesToMeasure = [];
    -
    -  CombinedStream.call(this);
    -}
    -
    -FormData.LINE_BREAK = '\r\n';
    -FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
    -
    -FormData.prototype.append = function(field, value, options) {
    -
    -  options = options || {};
    -
    -  // allow filename as single option
    -  if (typeof options == 'string') {
    -    options = {filename: options};
    -  }
    -
    -  var append = CombinedStream.prototype.append.bind(this);
    -
    -  // all that streamy business can't handle numbers
    -  if (typeof value == 'number') {
    -    value = '' + value;
    -  }
    -
    -  // https://github.com/felixge/node-form-data/issues/38
    -  if (util.isArray(value)) {
    -    // Please convert your array into string
    -    // the way web server expects it
    -    this._error(new Error('Arrays are not supported.'));
    -    return;
    -  }
    -
    -  var header = this._multiPartHeader(field, value, options);
    -  var footer = this._multiPartFooter();
    -
    -  append(header);
    -  append(value);
    -  append(footer);
    -
    -  // pass along options.knownLength
    -  this._trackLength(header, value, options);
    -};
    -
    -FormData.prototype._trackLength = function(header, value, options) {
    -  var valueLength = 0;
    -
    -  // used w/ getLengthSync(), when length is known.
    -  // e.g. for streaming directly from a remote server,
    -  // w/ a known file a size, and not wanting to wait for
    -  // incoming file to finish to get its size.
    -  if (options.knownLength != null) {
    -    valueLength += +options.knownLength;
    -  } else if (Buffer.isBuffer(value)) {
    -    valueLength = value.length;
    -  } else if (typeof value === 'string') {
    -    valueLength = Buffer.byteLength(value);
    -  }
    -
    -  this._valueLength += valueLength;
    -
    -  // @check why add CRLF? does this account for custom/multiple CRLFs?
    -  this._overheadLength +=
    -    Buffer.byteLength(header) +
    -    FormData.LINE_BREAK.length;
    -
    -  // empty or either doesn't have path or not an http response
    -  if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) )) {
    -    return;
    -  }
    -
    -  // no need to bother with the length
    -  if (!options.knownLength) {
    -    this._valuesToMeasure.push(value);
    -  }
    -};
    -
    -FormData.prototype._lengthRetriever = function(value, callback) {
    -
    -  if (value.hasOwnProperty('fd')) {
    -
    -    // take read range into a account
    -    // `end` = Infinity –> read file till the end
    -    //
    -    // TODO: Looks like there is bug in Node fs.createReadStream
    -    // it doesn't respect `end` options without `start` options
    -    // Fix it when node fixes it.
    -    // https://github.com/joyent/node/issues/7819
    -    if (value.end != undefined && value.end != Infinity && value.start != undefined) {
    -
    -      // when end specified
    -      // no need to calculate range
    -      // inclusive, starts with 0
    -      callback(null, value.end + 1 - (value.start ? value.start : 0));
    -
    -    // not that fast snoopy
    -    } else {
    -      // still need to fetch file size from fs
    -      fs.stat(value.path, function(err, stat) {
    -
    -        var fileSize;
    -
    -        if (err) {
    -          callback(err);
    -          return;
    -        }
    -
    -        // update final size based on the range options
    -        fileSize = stat.size - (value.start ? value.start : 0);
    -        callback(null, fileSize);
    -      });
    -    }
    -
    -  // or http response
    -  } else if (value.hasOwnProperty('httpVersion')) {
    -    callback(null, +value.headers['content-length']);
    -
    -  // or request stream http://github.com/mikeal/request
    -  } else if (value.hasOwnProperty('httpModule')) {
    -    // wait till response come back
    -    value.on('response', function(response) {
    -      value.pause();
    -      callback(null, +response.headers['content-length']);
    -    });
    -    value.resume();
    -
    -  // something else
    -  } else {
    -    callback('Unknown stream');
    -  }
    -};
    -
    -FormData.prototype._multiPartHeader = function(field, value, options) {
    -  // custom header specified (as string)?
    -  // it becomes responsible for boundary
    -  // (e.g. to handle extra CRLFs on .NET servers)
    -  if (typeof options.header == 'string') {
    -    return options.header;
    -  }
    -
    -  var contentDisposition = this._getContentDisposition(value, options);
    -  var contentType = this._getContentType(value, options);
    -
    -  var contents = '';
    -  var headers  = {
    -    // add custom disposition as third element or keep it two elements if not
    -    'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
    -    // if no content type. allow it to be empty array
    -    'Content-Type': [].concat(contentType || [])
    -  };
    -
    -  // allow custom headers.
    -  if (typeof options.header == 'object') {
    -    populate(headers, options.header);
    -  }
    -
    -  var header;
    -  for (var prop in headers) {
    -    header = headers[prop];
    -
    -    // skip nullish headers.
    -    if (header == null) {
    -      continue;
    -    }
    -
    -    // convert all headers to arrays.
    -    if (!Array.isArray(header)) {
    -      header = [header];
    -    }
    -
    -    // add non-empty headers.
    -    if (header.length) {
    -      contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
    -    }
    -  }
    -
    -  return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
    -};
    -
    -FormData.prototype._getContentDisposition = function(value, options) {
    -
    -  var contentDisposition;
    -
    -  // custom filename takes precedence
    -  // fs- and request- streams have path property
    -  // formidable and the browser add a name property.
    -  var filename = options.filename || value.name || value.path;
    -
    -  // or try http response
    -  if (!filename && value.readable && value.hasOwnProperty('httpVersion')) {
    -    filename = value.client._httpMessage.path;
    -  }
    -
    -  if (filename) {
    -    contentDisposition = 'filename="' + path.basename(filename) + '"';
    -  }
    -
    -  return contentDisposition;
    -};
    -
    -FormData.prototype._getContentType = function(value, options) {
    -
    -  // use custom content-type above all
    -  var contentType = options.contentType;
    -
    -  // or try `name` from formidable, browser
    -  if (!contentType && value.name) {
    -    contentType = mime.lookup(value.name);
    -  }
    -
    -  // or try `path` from fs-, request- streams
    -  if (!contentType && value.path) {
    -    contentType = mime.lookup(value.path);
    -  }
    -
    -  // or if it's http-reponse
    -  if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) {
    -    contentType = value.headers['content-type'];
    -  }
    -
    -  // or guess it from the filename
    -  if (!contentType && options.filename) {
    -    contentType = mime.lookup(options.filename);
    -  }
    -
    -  // fallback to the default content type if `value` is not simple value
    -  if (!contentType && typeof value == 'object') {
    -    contentType = FormData.DEFAULT_CONTENT_TYPE;
    -  }
    -
    -  return contentType;
    -};
    -
    -FormData.prototype._multiPartFooter = function() {
    -  return function(next) {
    -    var footer = FormData.LINE_BREAK;
    -
    -    var lastPart = (this._streams.length === 0);
    -    if (lastPart) {
    -      footer += this._lastBoundary();
    -    }
    -
    -    next(footer);
    -  }.bind(this);
    -};
    -
    -FormData.prototype._lastBoundary = function() {
    -  return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
    -};
    -
    -FormData.prototype.getHeaders = function(userHeaders) {
    -  var header;
    -  var formHeaders = {
    -    'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
    -  };
    -
    -  for (header in userHeaders) {
    -    if (userHeaders.hasOwnProperty(header)) {
    -      formHeaders[header.toLowerCase()] = userHeaders[header];
    -    }
    -  }
    -
    -  return formHeaders;
    -};
    -
    -FormData.prototype.getBoundary = function() {
    -  if (!this._boundary) {
    -    this._generateBoundary();
    -  }
    -
    -  return this._boundary;
    -};
    -
    -FormData.prototype._generateBoundary = function() {
    -  // This generates a 50 character boundary similar to those used by Firefox.
    -  // They are optimized for boyer-moore parsing.
    -  var boundary = '--------------------------';
    -  for (var i = 0; i < 24; i++) {
    -    boundary += Math.floor(Math.random() * 10).toString(16);
    -  }
    -
    -  this._boundary = boundary;
    -};
    -
    -// Note: getLengthSync DOESN'T calculate streams length
    -// As workaround one can calculate file size manually
    -// and add it as knownLength option
    -FormData.prototype.getLengthSync = function() {
    -  var knownLength = this._overheadLength + this._valueLength;
    -
    -  // Don't get confused, there are 3 "internal" streams for each keyval pair
    -  // so it basically checks if there is any value added to the form
    -  if (this._streams.length) {
    -    knownLength += this._lastBoundary().length;
    -  }
    -
    -  // https://github.com/form-data/form-data/issues/40
    -  if (!this.hasKnownLength()) {
    -    // Some async length retrievers are present
    -    // therefore synchronous length calculation is false.
    -    // Please use getLength(callback) to get proper length
    -    this._error(new Error('Cannot calculate proper length in synchronous way.'));
    -  }
    -
    -  return knownLength;
    -};
    -
    -// Public API to check if length of added values is known
    -// https://github.com/form-data/form-data/issues/196
    -// https://github.com/form-data/form-data/issues/262
    -FormData.prototype.hasKnownLength = function() {
    -  var hasKnownLength = true;
    -
    -  if (this._valuesToMeasure.length) {
    -    hasKnownLength = false;
    -  }
    -
    -  return hasKnownLength;
    -};
    -
    -FormData.prototype.getLength = function(cb) {
    -  var knownLength = this._overheadLength + this._valueLength;
    -
    -  if (this._streams.length) {
    -    knownLength += this._lastBoundary().length;
    -  }
    -
    -  if (!this._valuesToMeasure.length) {
    -    process.nextTick(cb.bind(this, null, knownLength));
    -    return;
    -  }
    -
    -  asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
    -    if (err) {
    -      cb(err);
    -      return;
    -    }
    -
    -    values.forEach(function(length) {
    -      knownLength += length;
    -    });
    -
    -    cb(null, knownLength);
    -  });
    -};
    -
    -FormData.prototype.submit = function(params, cb) {
    -  var request
    -    , options
    -    , defaults = {method: 'post'}
    -    ;
    -
    -  // parse provided url if it's string
    -  // or treat it as options object
    -  if (typeof params == 'string') {
    -
    -    params = parseUrl(params);
    -    options = populate({
    -      port: params.port,
    -      path: params.pathname,
    -      host: params.hostname
    -    }, defaults);
    -
    -  // use custom params
    -  } else {
    -
    -    options = populate(params, defaults);
    -    // if no port provided use default one
    -    if (!options.port) {
    -      options.port = options.protocol == 'https:' ? 443 : 80;
    -    }
    -  }
    -
    -  // put that good code in getHeaders to some use
    -  options.headers = this.getHeaders(params.headers);
    -
    -  // https if specified, fallback to http in any other case
    -  if (options.protocol == 'https:') {
    -    request = https.request(options);
    -  } else {
    -    request = http.request(options);
    -  }
    -
    -  // get content length and fire away
    -  this.getLength(function(err, length) {
    -    if (err) {
    -      this._error(err);
    -      return;
    -    }
    -
    -    // add content length
    -    request.setHeader('Content-Length', length);
    -
    -    this.pipe(request);
    -    if (cb) {
    -      request.on('error', cb);
    -      request.on('response', cb.bind(this, null));
    -    }
    -  }.bind(this));
    -
    -  return request;
    -};
    -
    -FormData.prototype._error = function(err) {
    -  if (!this.error) {
    -    this.error = err;
    -    this.pause();
    -    this.emit('error', err);
    -  }
    -};
    diff --git a/node_modules/form-data/lib/populate.js b/node_modules/form-data/lib/populate.js
    deleted file mode 100644
    index 4d35738..0000000
    --- a/node_modules/form-data/lib/populate.js
    +++ /dev/null
    @@ -1,10 +0,0 @@
    -// populates missing values
    -module.exports = function(dst, src) {
    -
    -  Object.keys(src).forEach(function(prop)
    -  {
    -    dst[prop] = dst[prop] || src[prop];
    -  });
    -
    -  return dst;
    -};
    diff --git a/node_modules/form-data/package.json b/node_modules/form-data/package.json
    deleted file mode 100644
    index c4b6363..0000000
    --- a/node_modules/form-data/package.json
    +++ /dev/null
    @@ -1,145 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "form-data@~2.1.1",
    -        "scope": null,
    -        "escapedName": "form-data",
    -        "name": "form-data",
    -        "rawSpec": "~2.1.1",
    -        "spec": ">=2.1.1 <2.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/request"
    -    ]
    -  ],
    -  "_from": "form-data@>=2.1.1 <2.2.0",
    -  "_id": "form-data@2.1.2",
    -  "_inCache": true,
    -  "_location": "/form-data",
    -  "_nodeVersion": "6.4.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-12-west.internal.npmjs.com",
    -    "tmp": "tmp/form-data-2.1.2.tgz_1478577739404_0.6574864208232611"
    -  },
    -  "_npmUser": {
    -    "name": "alexindigo",
    -    "email": "iam@alexindigo.com"
    -  },
    -  "_npmVersion": "3.10.3",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "form-data@~2.1.1",
    -    "scope": null,
    -    "escapedName": "form-data",
    -    "name": "form-data",
    -    "rawSpec": "~2.1.1",
    -    "spec": ">=2.1.1 <2.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/request"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.2.tgz",
    -  "_shasum": "89c3534008b97eada4cbb157d58f6f5df025eae4",
    -  "_shrinkwrap": null,
    -  "_spec": "form-data@~2.1.1",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/request",
    -  "author": {
    -    "name": "Felix Geisendörfer",
    -    "email": "felix@debuggable.com",
    -    "url": "http://debuggable.com/"
    -  },
    -  "browser": "./lib/browser",
    -  "bugs": {
    -    "url": "https://github.com/form-data/form-data/issues"
    -  },
    -  "dependencies": {
    -    "asynckit": "^0.4.0",
    -    "combined-stream": "^1.0.5",
    -    "mime-types": "^2.1.12"
    -  },
    -  "description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.",
    -  "devDependencies": {
    -    "browserify": "^13.1.1",
    -    "browserify-istanbul": "^2.0.0",
    -    "coveralls": "^2.11.14",
    -    "cross-spawn": "^4.0.2",
    -    "eslint": "^3.9.1",
    -    "fake": "^0.2.2",
    -    "far": "^0.0.7",
    -    "formidable": "^1.0.17",
    -    "in-publish": "^2.0.0",
    -    "is-node-modern": "^1.0.0",
    -    "istanbul": "^0.4.5",
    -    "obake": "^0.1.2",
    -    "phantomjs-prebuilt": "^2.1.13",
    -    "pkgfiles": "^2.3.0",
    -    "pre-commit": "^1.1.3",
    -    "request": "2.76.0",
    -    "rimraf": "^2.5.4",
    -    "tape": "^4.6.2"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "89c3534008b97eada4cbb157d58f6f5df025eae4",
    -    "tarball": "https://registry.npmjs.org/form-data/-/form-data-2.1.2.tgz"
    -  },
    -  "engines": {
    -    "node": ">= 0.12"
    -  },
    -  "gitHead": "03444d21961a7a44cdc2eae11ee3630f6969023d",
    -  "homepage": "https://github.com/form-data/form-data#readme",
    -  "license": "MIT",
    -  "main": "./lib/form_data",
    -  "maintainers": [
    -    {
    -      "name": "alexindigo",
    -      "email": "iam@alexindigo.com"
    -    },
    -    {
    -      "name": "dylanpiercey",
    -      "email": "pierceydylan@gmail.com"
    -    },
    -    {
    -      "name": "felixge",
    -      "email": "felix@debuggable.com"
    -    },
    -    {
    -      "name": "mikeal",
    -      "email": "mikeal.rogers@gmail.com"
    -    }
    -  ],
    -  "name": "form-data",
    -  "optionalDependencies": {},
    -  "pre-commit": [
    -    "lint",
    -    "ci-test",
    -    "check"
    -  ],
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/form-data/form-data.git"
    -  },
    -  "scripts": {
    -    "browser": "browserify -t browserify-istanbul test/run-browser.js | obake --coverage",
    -    "check": "istanbul check-coverage coverage/coverage*.json",
    -    "ci-lint": "is-node-modern 6 && npm run lint || is-node-not-modern 6",
    -    "ci-test": "npm run test && npm run browser && npm run report",
    -    "debug": "verbose=1 ./test/run.js",
    -    "files": "pkgfiles --sort=name",
    -    "get-version": "node -e \"console.log(require('./package.json').version)\"",
    -    "lint": "eslint lib/*.js test/*.js test/integration/*.js",
    -    "postpublish": "npm run restore-readme",
    -    "posttest": "istanbul report lcov text",
    -    "predebug": "rimraf coverage test/tmp",
    -    "prepublish": "in-publish && npm run update-readme || not-in-publish",
    -    "pretest": "rimraf coverage test/tmp",
    -    "report": "istanbul report lcov text",
    -    "restore-readme": "mv README.md.bak README.md",
    -    "test": "istanbul cover test/run.js",
    -    "update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md"
    -  },
    -  "version": "2.1.2"
    -}
    diff --git a/node_modules/from/.npmignore b/node_modules/from/.npmignore
    deleted file mode 100644
    index 3c3629e..0000000
    --- a/node_modules/from/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -node_modules
    diff --git a/node_modules/from/LICENSE.APACHE2 b/node_modules/from/LICENSE.APACHE2
    deleted file mode 100644
    index 6366c04..0000000
    --- a/node_modules/from/LICENSE.APACHE2
    +++ /dev/null
    @@ -1,15 +0,0 @@
    -Apache License, Version 2.0
    -
    -Copyright (c) 2011 Dominic Tarr
    -
    -Licensed under the Apache License, Version 2.0 (the "License");
    -you may not use this file except in compliance with the License.
    -You may obtain a copy of the License at
    -
    -    http://www.apache.org/licenses/LICENSE-2.0
    -
    -Unless required by applicable law or agreed to in writing, software
    -distributed under the License is distributed on an "AS IS" BASIS,
    -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    -See the License for the specific language governing permissions and
    -limitations under the License.
    diff --git a/node_modules/from/LICENSE.MIT b/node_modules/from/LICENSE.MIT
    deleted file mode 100644
    index 6eafbd7..0000000
    --- a/node_modules/from/LICENSE.MIT
    +++ /dev/null
    @@ -1,24 +0,0 @@
    -The MIT License
    -
    -Copyright (c) 2011 Dominic Tarr
    -
    -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/from/index.js b/node_modules/from/index.js
    deleted file mode 100644
    index bba40da..0000000
    --- a/node_modules/from/index.js
    +++ /dev/null
    @@ -1,68 +0,0 @@
    -
    -'use strict';
    -
    -var Stream = require('stream')
    -
    -// from
    -//
    -// a stream that reads from an source.
    -// source may be an array, or a function.
    -// from handles pause behaviour for you.
    -
    -module.exports =
    -function from (source) {
    -  if(Array.isArray(source)) {
    -    source = source.slice()
    -    return from (function (i) {
    -      if(source.length)
    -        this.emit('data', source.shift())
    -      else
    -        this.emit('end')
    -      return true
    -    })
    -  }
    -  var s = new Stream(), i = 0
    -  s.ended = false
    -  s.started = false
    -  s.readable = true
    -  s.writable = false
    -  s.paused = false
    -  s.ended = false
    -  s.pause = function () {
    -    s.started = true
    -    s.paused = true
    -  }
    -  function next () {
    -    s.started = true
    -    if(s.ended) return
    -    while(!s.ended && !s.paused && source.call(s, i++, function () {
    -      if(!s.ended && !s.paused)
    -          next()
    -    }))
    -      ;
    -  }
    -  s.resume = function () {
    -    s.started = true
    -    s.paused = false
    -    next()
    -  }
    -  s.on('end', function () {
    -    s.ended = true
    -    s.readable = false
    -    process.nextTick(s.destroy)
    -  })
    -  s.destroy = function () {
    -    s.ended = true
    -    s.emit('close') 
    -  }
    -  /*
    -    by default, the stream will start emitting at nextTick
    -    if you want, you can pause it, after pipeing.
    -    you can also resume before next tick, and that will also
    -    work.
    -  */
    -  process.nextTick(function () {
    -    if(!s.started) s.resume()
    -  })
    -  return s
    -}
    diff --git a/node_modules/from/package.json b/node_modules/from/package.json
    deleted file mode 100644
    index 5e647cb..0000000
    --- a/node_modules/from/package.json
    +++ /dev/null
    @@ -1,90 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "from@~0",
    -        "scope": null,
    -        "escapedName": "from",
    -        "name": "from",
    -        "rawSpec": "~0",
    -        "spec": ">=0.0.0 <1.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/event-stream"
    -    ]
    -  ],
    -  "_from": "from@>=0.0.0 <1.0.0",
    -  "_id": "from@0.1.3",
    -  "_inCache": true,
    -  "_location": "/from",
    -  "_npmUser": {
    -    "name": "dominictarr",
    -    "email": "dominic.tarr@gmail.com"
    -  },
    -  "_npmVersion": "1.2.3",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "from@~0",
    -    "scope": null,
    -    "escapedName": "from",
    -    "name": "from",
    -    "rawSpec": "~0",
    -    "spec": ">=0.0.0 <1.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/event-stream"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/from/-/from-0.1.3.tgz",
    -  "_shasum": "ef63ac2062ac32acf7862e0d40b44b896f22f3bc",
    -  "_shrinkwrap": null,
    -  "_spec": "from@~0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/event-stream",
    -  "author": {
    -    "name": "Dominic Tarr",
    -    "email": "dominic.tarr@gmail.com",
    -    "url": "dominictarr.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/dominictarr/from/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Easy way to make a Readable Stream",
    -  "devDependencies": {
    -    "assertions": "~2.3.0",
    -    "asynct": "1",
    -    "stream-spec": "0"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "ef63ac2062ac32acf7862e0d40b44b896f22f3bc",
    -    "tarball": "https://registry.npmjs.org/from/-/from-0.1.3.tgz"
    -  },
    -  "homepage": "https://github.com/dominictarr/from#readme",
    -  "keywords": [
    -    "stream",
    -    "streams",
    -    "readable",
    -    "easy"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "dominictarr",
    -      "email": "dominic.tarr@gmail.com"
    -    }
    -  ],
    -  "name": "from",
    -  "optionalDependencies": {},
    -  "readme": "# from\n\nAn easy way to create a `readable Stream`.\n\n## from(function getChunk(count, next))\n\nfrom takes a `getChunk` function and returns a stream.  \n\n`getChunk` is called again and again, after each time the user calls `next()`, \nuntil the user emits `'end'`\n\nif `pause()` is called, the `getChunk` won't be called again untill `resume()` is called.\n\n\n```js\nvar from = require('from')\n\nvar stream = \n  from(function getChunk(count, next) {\n    //do some sort of data\n    this.emit('data', whatever)\n    \n    if(itsOver)\n      this.emit('end')\n\n    //ready to handle the next chunk\n    next()\n    //or, if it's sync:\n    return true \n  })\n```\n\n## from(array)\n\nfrom also takes an `Array` whose elements it emits one after another.\n\n## License\nMIT / Apache2\n",
    -  "readmeFilename": "readme.markdown",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/dominictarr/from.git"
    -  },
    -  "scripts": {
    -    "test": "asynct test/*.js"
    -  },
    -  "version": "0.1.3"
    -}
    diff --git a/node_modules/from/readme.markdown b/node_modules/from/readme.markdown
    deleted file mode 100644
    index a619163..0000000
    --- a/node_modules/from/readme.markdown
    +++ /dev/null
    @@ -1,38 +0,0 @@
    -# from
    -
    -An easy way to create a `readable Stream`.
    -
    -## from(function getChunk(count, next))
    -
    -from takes a `getChunk` function and returns a stream.  
    -
    -`getChunk` is called again and again, after each time the user calls `next()`, 
    -until the user emits `'end'`
    -
    -if `pause()` is called, the `getChunk` won't be called again untill `resume()` is called.
    -
    -
    -```js
    -var from = require('from')
    -
    -var stream = 
    -  from(function getChunk(count, next) {
    -    //do some sort of data
    -    this.emit('data', whatever)
    -    
    -    if(itsOver)
    -      this.emit('end')
    -
    -    //ready to handle the next chunk
    -    next()
    -    //or, if it's sync:
    -    return true 
    -  })
    -```
    -
    -## from(array)
    -
    -from also takes an `Array` whose elements it emits one after another.
    -
    -## License
    -MIT / Apache2
    diff --git a/node_modules/from/test/index.js b/node_modules/from/test/index.js
    deleted file mode 100644
    index fafea57..0000000
    --- a/node_modules/from/test/index.js
    +++ /dev/null
    @@ -1,141 +0,0 @@
    -var from = require('..')
    -var spec = require('stream-spec')
    -var a = require('assertions')
    -
    -function read(stream, callback) {
    -  var actual = []
    -  stream.on('data', function (data) {
    -    actual.push(data)
    -  })
    -  stream.once('end', function () {
    -    callback(null, actual)
    -  })
    -  stream.once('error', function (err) {
    -    callback(err)
    -  })
    -}
    -
    -function pause(stream) {
    -  stream.on('data', function () {
    -    if(Math.random() > 0.1) return
    -    stream.pause()
    -    process.nextTick(function () {
    -      stream.resume()
    -    })
    -  })
    -}
    -
    -exports['inc'] = function (test) {
    -
    -  var fs = from(function (i) {
    -    this.emit('data', i)
    -    if(i >= 99)
    -      return this.emit('end')
    -    return true
    -  })
    -
    -  spec(fs).readable().validateOnExit() 
    -
    -  read(fs, function (err, arr) {
    -    test.equal(arr.length, 100)
    -    test.done()
    -  })
    -}
    -
    -exports['simple'] = function (test) {
    -
    -  var l = 1000
    -    , expected = [] 
    -
    -  while(l--) expected.push(l * Math.random())
    -
    -  var t = from(expected.slice())
    -
    -  spec(t)
    -    .readable()
    -    .pausable({strict: true})
    -    .validateOnExit()
    -
    -  read(t, function (err, actual) {
    -    if(err) test.error(err) //fail
    -    a.deepEqual(actual, expected)
    -    test.done()
    -  })
    -
    -}
    -
    -exports['simple pausable'] = function (test) {
    -
    -  var l = 1000
    -    , expected = [] 
    -
    -  while(l--) expected.push(l * Math.random())
    -
    -  var t = from(expected.slice())
    -
    -  spec(t)
    -    .readable()
    -    .pausable({strict: true})
    -    .validateOnExit()
    -
    -  pause(t)
    -
    -  read(t, function (err, actual) {
    -    if(err) test.error(err) //fail
    -    a.deepEqual(actual, expected)
    -    test.done()
    -  })
    -
    -}
    -
    -exports['simple (not strictly pausable) setTimeout'] = function (test) {
    -
    -  var l = 10
    -    , expected = [] 
    -  while(l--) expected.push(l * Math.random())
    -
    -
    -  var _expected = expected.slice()
    -  var t = from(function (i, n) {
    -    var self = this
    -    setTimeout(function () {
    -      if(_expected.length)
    -        self.emit('data', _expected.shift())
    -      else
    -        self.emit('end') 
    -      n()
    -    }, 3)
    -  })
    -
    -  /*
    -    using from in this way will not be strictly pausable.
    -    it could be extended to buffer outputs, but I think a better
    -    way would be to use a PauseStream that implements strict pause.
    -  */
    -
    -  spec(t)
    -    .readable()
    -    .pausable({strict: false })
    -    .validateOnExit()
    -
    -  //pause(t)
    -  var paused = false
    -  var i = setInterval(function () {
    -    if(!paused) t.pause()
    -    else t.resume()
    -    paused = !paused
    -  }, 2)
    -
    -  t.on('end', function () {
    -    clearInterval(i)
    -  })
    -
    -  read(t, function (err, actual) {
    -    if(err) test.error(err) //fail
    -    a.deepEqual(actual, expected)
    -    test.done()
    -  })
    -
    -}
    -
    -
    diff --git a/node_modules/fs-exists-sync/LICENSE b/node_modules/fs-exists-sync/LICENSE
    deleted file mode 100644
    index e28e603..0000000
    --- a/node_modules/fs-exists-sync/LICENSE
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -The MIT License (MIT)
    -
    -Copyright (c) 2016, 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/fs-exists-sync/README.md b/node_modules/fs-exists-sync/README.md
    deleted file mode 100644
    index 60c429c..0000000
    --- a/node_modules/fs-exists-sync/README.md
    +++ /dev/null
    @@ -1,92 +0,0 @@
    -# fs-exists-sync [![NPM version](https://img.shields.io/npm/v/fs-exists-sync.svg?style=flat)](https://www.npmjs.com/package/fs-exists-sync) [![NPM downloads](https://img.shields.io/npm/dm/fs-exists-sync.svg?style=flat)](https://npmjs.org/package/fs-exists-sync) [![Build Status](https://img.shields.io/travis/jonschlinkert/fs-exists-sync.svg?style=flat)](https://travis-ci.org/jonschlinkert/fs-exists-sync)
    -
    -> Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.
    -
    -## Install
    -Install with [npm](https://www.npmjs.com/):
    -
    -```sh
    -$ npm install fs-exists-sync --save
    -```
    -
    -## Usage
    -
    -```js
    -var exists = require('fs-exists-sync');
    -
    -console.log(exists('.'));
    -//=> true
    -console.log(exists(process.cwd()));
    -//=> true
    -console.log(exists('README.md'));
    -//=> true
    -console.log(exists('foo.txt'));
    -//=> false
    -console.log(exists(''));
    -//=> false
    -console.log(exists());
    -//=> false
    -```
    -
    -## Why another "exists" lib?
    -
    -I just want a _simple replacement for `fs.existsSync`_. Here is what I found:
    -
    -- [path-exists][]: Has dependencies to support a promises API
    -- [fs-exists][]: async only
    -- [file-exists][]: returns `false` if the path exists but is a directory.
    -- [exists][]: nothing to do with `fs`. 
    -
    -## API
    -
    -## Related projects
    -
    -You might also be interested in these projects: 
    -
    -* [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute)
    -* [parse-filepath](https://www.npmjs.com/package/parse-filepath): Pollyfill for node.js `path.parse`, parses a filepath into an object. | [homepage](https://github.com/jonschlinkert/parse-filepath)
    -* [try-open](https://www.npmjs.com/package/try-open): Tries to open a file using fs.openSync (only necessary with sync), fails gracefully if the… [more](https://www.npmjs.com/package/try-open) | [homepage](https://github.com/jonschlinkert/try-open)  
    -
    -## Contributing
    -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/fs-exists-sync/issues/new).
    -
    -## Building docs
    -Generate readme and API documentation with [verb][]:
    -
    -```sh
    -$ npm install verb && npm run docs
    -```
    -
    -Or, if [verb][] is installed globally:
    -
    -```sh
    -$ verb
    -```
    -
    -## Running tests
    -Install dev dependencies:
    -
    -```sh
    -$ npm install -d && npm test
    -```
    -
    -## Author
    -**Jon Schlinkert**
    -
    -+ [github/jonschlinkert](https://github.com/jonschlinkert)
    -+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
    -
    -## License
    -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
    -Released under the [MIT license](https://github.com/jonschlinkert/fs-exists-sync/blob/master/LICENSE).
    -
    -***
    -
    -_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 09, 2016._
    -
    -[verb]: https://github.com/verbose/verb
    -[path-exists]: https://github.com/sindresorhus/path-exists
    -[fs-exists]: https://github.com/meryn/fs-exists
    -[file-exists]: https://github.com/scottcorgan/file-exists
    -[exists]: https://github.com/tjmehta/exists
    -
    diff --git a/node_modules/fs-exists-sync/index.js b/node_modules/fs-exists-sync/index.js
    deleted file mode 100644
    index b7f00c7..0000000
    --- a/node_modules/fs-exists-sync/index.js
    +++ /dev/null
    @@ -1,18 +0,0 @@
    -/*!
    - * fs-exists-sync (https://github.com/jonschlinkert/fs-exists-sync)
    - *
    - * Copyright (c) 2016, Jon Schlinkert.
    - * Licensed under the MIT License.
    - */
    -
    -'use strict';
    -
    -var fs = require('fs');
    -
    -module.exports = function(filepath) {
    -  try {
    -    (fs.accessSync || fs.statSync)(filepath);
    -    return true;
    -  } catch (err) {}
    -  return false;
    -};
    diff --git a/node_modules/fs-exists-sync/package.json b/node_modules/fs-exists-sync/package.json
    deleted file mode 100644
    index b9b8260..0000000
    --- a/node_modules/fs-exists-sync/package.json
    +++ /dev/null
    @@ -1,137 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "fs-exists-sync@^0.1.0",
    -        "scope": null,
    -        "escapedName": "fs-exists-sync",
    -        "name": "fs-exists-sync",
    -        "rawSpec": "^0.1.0",
    -        "spec": ">=0.1.0 <0.2.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/detect-file"
    -    ]
    -  ],
    -  "_from": "fs-exists-sync@>=0.1.0 <0.2.0",
    -  "_id": "fs-exists-sync@0.1.0",
    -  "_inCache": true,
    -  "_location": "/fs-exists-sync",
    -  "_nodeVersion": "5.5.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/fs-exists-sync-0.1.0.tgz_1460202025245_0.6282676137052476"
    -  },
    -  "_npmUser": {
    -    "name": "jonschlinkert",
    -    "email": "github@sellside.com"
    -  },
    -  "_npmVersion": "3.6.0",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "fs-exists-sync@^0.1.0",
    -    "scope": null,
    -    "escapedName": "fs-exists-sync",
    -    "name": "fs-exists-sync",
    -    "rawSpec": "^0.1.0",
    -    "spec": ">=0.1.0 <0.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/detect-file"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz",
    -  "_shasum": "982d6893af918e72d08dec9e8673ff2b5a8d6add",
    -  "_shrinkwrap": null,
    -  "_spec": "fs-exists-sync@^0.1.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/detect-file",
    -  "author": {
    -    "name": "Jon Schlinkert",
    -    "url": "https://github.com/jonschlinkert"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/jonschlinkert/fs-exists-sync/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.",
    -  "devDependencies": {
    -    "gulp-format-md": "^0.1.7",
    -    "mocha": "^2.4.5"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "982d6893af918e72d08dec9e8673ff2b5a8d6add",
    -    "tarball": "https://registry.npmjs.org/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.10.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "3b44654977775bac2d1151520c9b6257249a6374",
    -  "homepage": "https://github.com/jonschlinkert/fs-exists-sync",
    -  "keywords": [
    -    "access",
    -    "check",
    -    "exist",
    -    "exists",
    -    "file",
    -    "file-system",
    -    "filepath",
    -    "filesystem",
    -    "fs",
    -    "is-file",
    -    "isfile",
    -    "path",
    -    "stat",
    -    "sync"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "jonschlinkert",
    -      "email": "github@sellside.com"
    -    }
    -  ],
    -  "name": "fs-exists-sync",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/jonschlinkert/fs-exists-sync.git"
    -  },
    -  "scripts": {
    -    "test": "mocha"
    -  },
    -  "verb": {
    -    "layout": "default",
    -    "plugins": [
    -      "gulp-format-md"
    -    ],
    -    "reflinks": [
    -      "verb",
    -      "path-exists",
    -      "fs-exists",
    -      "file-exists",
    -      "exists"
    -    ],
    -    "related": {
    -      "list": [
    -        "try-open",
    -        "parse-filepath",
    -        "is-absolute"
    -      ]
    -    },
    -    "run": true,
    -    "toc": false,
    -    "tasks": [
    -      "readme"
    -    ],
    -    "lint": {
    -      "reflinks": true
    -    }
    -  },
    -  "version": "0.1.0"
    -}
    diff --git a/node_modules/fs.realpath/LICENSE b/node_modules/fs.realpath/LICENSE
    deleted file mode 100644
    index 5bd884c..0000000
    --- a/node_modules/fs.realpath/LICENSE
    +++ /dev/null
    @@ -1,43 +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.
    -
    -----
    -
    -This library bundles a version of the `fs.realpath` and `fs.realpathSync`
    -methods from Node.js v0.10 under the terms of the Node.js MIT license.
    -
    -Node's license follows, also included at the header of `old.js` which contains
    -the licensed code:
    -
    -  Copyright Joyent, Inc. and other Node contributors.
    -
    -  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/fs.realpath/README.md b/node_modules/fs.realpath/README.md
    deleted file mode 100644
    index a42ceac..0000000
    --- a/node_modules/fs.realpath/README.md
    +++ /dev/null
    @@ -1,33 +0,0 @@
    -# fs.realpath
    -
    -A backwards-compatible fs.realpath for Node v6 and above
    -
    -In Node v6, the JavaScript implementation of fs.realpath was replaced
    -with a faster (but less resilient) native implementation.  That raises
    -new and platform-specific errors and cannot handle long or excessively
    -symlink-looping paths.
    -
    -This module handles those cases by detecting the new errors and
    -falling back to the JavaScript implementation.  On versions of Node
    -prior to v6, it has no effect.
    -
    -## USAGE
    -
    -```js
    -var rp = require('fs.realpath')
    -
    -// async version
    -rp.realpath(someLongAndLoopingPath, function (er, real) {
    -  // the ELOOP was handled, but it was a bit slower
    -})
    -
    -// sync version
    -var real = rp.realpathSync(someLongAndLoopingPath)
    -
    -// monkeypatch at your own risk!
    -// This replaces the fs.realpath/fs.realpathSync builtins
    -rp.monkeypatch()
    -
    -// un-do the monkeypatching
    -rp.unmonkeypatch()
    -```
    diff --git a/node_modules/fs.realpath/index.js b/node_modules/fs.realpath/index.js
    deleted file mode 100644
    index b09c7c7..0000000
    --- a/node_modules/fs.realpath/index.js
    +++ /dev/null
    @@ -1,66 +0,0 @@
    -module.exports = realpath
    -realpath.realpath = realpath
    -realpath.sync = realpathSync
    -realpath.realpathSync = realpathSync
    -realpath.monkeypatch = monkeypatch
    -realpath.unmonkeypatch = unmonkeypatch
    -
    -var fs = require('fs')
    -var origRealpath = fs.realpath
    -var origRealpathSync = fs.realpathSync
    -
    -var version = process.version
    -var ok = /^v[0-5]\./.test(version)
    -var old = require('./old.js')
    -
    -function newError (er) {
    -  return er && er.syscall === 'realpath' && (
    -    er.code === 'ELOOP' ||
    -    er.code === 'ENOMEM' ||
    -    er.code === 'ENAMETOOLONG'
    -  )
    -}
    -
    -function realpath (p, cache, cb) {
    -  if (ok) {
    -    return origRealpath(p, cache, cb)
    -  }
    -
    -  if (typeof cache === 'function') {
    -    cb = cache
    -    cache = null
    -  }
    -  origRealpath(p, cache, function (er, result) {
    -    if (newError(er)) {
    -      old.realpath(p, cache, cb)
    -    } else {
    -      cb(er, result)
    -    }
    -  })
    -}
    -
    -function realpathSync (p, cache) {
    -  if (ok) {
    -    return origRealpathSync(p, cache)
    -  }
    -
    -  try {
    -    return origRealpathSync(p, cache)
    -  } catch (er) {
    -    if (newError(er)) {
    -      return old.realpathSync(p, cache)
    -    } else {
    -      throw er
    -    }
    -  }
    -}
    -
    -function monkeypatch () {
    -  fs.realpath = realpath
    -  fs.realpathSync = realpathSync
    -}
    -
    -function unmonkeypatch () {
    -  fs.realpath = origRealpath
    -  fs.realpathSync = origRealpathSync
    -}
    diff --git a/node_modules/fs.realpath/old.js b/node_modules/fs.realpath/old.js
    deleted file mode 100644
    index b40305e..0000000
    --- a/node_modules/fs.realpath/old.js
    +++ /dev/null
    @@ -1,303 +0,0 @@
    -// Copyright Joyent, Inc. and other Node contributors.
    -//
    -// 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.
    -
    -var pathModule = require('path');
    -var isWindows = process.platform === 'win32';
    -var fs = require('fs');
    -
    -// JavaScript implementation of realpath, ported from node pre-v6
    -
    -var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
    -
    -function rethrow() {
    -  // Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and
    -  // is fairly slow to generate.
    -  var callback;
    -  if (DEBUG) {
    -    var backtrace = new Error;
    -    callback = debugCallback;
    -  } else
    -    callback = missingCallback;
    -
    -  return callback;
    -
    -  function debugCallback(err) {
    -    if (err) {
    -      backtrace.message = err.message;
    -      err = backtrace;
    -      missingCallback(err);
    -    }
    -  }
    -
    -  function missingCallback(err) {
    -    if (err) {
    -      if (process.throwDeprecation)
    -        throw err;  // Forgot a callback but don't know where? Use NODE_DEBUG=fs
    -      else if (!process.noDeprecation) {
    -        var msg = 'fs: missing callback ' + (err.stack || err.message);
    -        if (process.traceDeprecation)
    -          console.trace(msg);
    -        else
    -          console.error(msg);
    -      }
    -    }
    -  }
    -}
    -
    -function maybeCallback(cb) {
    -  return typeof cb === 'function' ? cb : rethrow();
    -}
    -
    -var normalize = pathModule.normalize;
    -
    -// Regexp that finds the next partion of a (partial) path
    -// result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
    -if (isWindows) {
    -  var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
    -} else {
    -  var nextPartRe = /(.*?)(?:[\/]+|$)/g;
    -}
    -
    -// Regex to find the device root, including trailing slash. E.g. 'c:\\'.
    -if (isWindows) {
    -  var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
    -} else {
    -  var splitRootRe = /^[\/]*/;
    -}
    -
    -exports.realpathSync = function realpathSync(p, cache) {
    -  // make p is absolute
    -  p = pathModule.resolve(p);
    -
    -  if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
    -    return cache[p];
    -  }
    -
    -  var original = p,
    -      seenLinks = {},
    -      knownHard = {};
    -
    -  // current character position in p
    -  var pos;
    -  // the partial path so far, including a trailing slash if any
    -  var current;
    -  // the partial path without a trailing slash (except when pointing at a root)
    -  var base;
    -  // the partial path scanned in the previous round, with slash
    -  var previous;
    -
    -  start();
    -
    -  function start() {
    -    // Skip over roots
    -    var m = splitRootRe.exec(p);
    -    pos = m[0].length;
    -    current = m[0];
    -    base = m[0];
    -    previous = '';
    -
    -    // On windows, check that the root exists. On unix there is no need.
    -    if (isWindows && !knownHard[base]) {
    -      fs.lstatSync(base);
    -      knownHard[base] = true;
    -    }
    -  }
    -
    -  // walk down the path, swapping out linked pathparts for their real
    -  // values
    -  // NB: p.length changes.
    -  while (pos < p.length) {
    -    // find the next part
    -    nextPartRe.lastIndex = pos;
    -    var result = nextPartRe.exec(p);
    -    previous = current;
    -    current += result[0];
    -    base = previous + result[1];
    -    pos = nextPartRe.lastIndex;
    -
    -    // continue if not a symlink
    -    if (knownHard[base] || (cache && cache[base] === base)) {
    -      continue;
    -    }
    -
    -    var resolvedLink;
    -    if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
    -      // some known symbolic link.  no need to stat again.
    -      resolvedLink = cache[base];
    -    } else {
    -      var stat = fs.lstatSync(base);
    -      if (!stat.isSymbolicLink()) {
    -        knownHard[base] = true;
    -        if (cache) cache[base] = base;
    -        continue;
    -      }
    -
    -      // read the link if it wasn't read before
    -      // dev/ino always return 0 on windows, so skip the check.
    -      var linkTarget = null;
    -      if (!isWindows) {
    -        var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
    -        if (seenLinks.hasOwnProperty(id)) {
    -          linkTarget = seenLinks[id];
    -        }
    -      }
    -      if (linkTarget === null) {
    -        fs.statSync(base);
    -        linkTarget = fs.readlinkSync(base);
    -      }
    -      resolvedLink = pathModule.resolve(previous, linkTarget);
    -      // track this, if given a cache.
    -      if (cache) cache[base] = resolvedLink;
    -      if (!isWindows) seenLinks[id] = linkTarget;
    -    }
    -
    -    // resolve the link, then start over
    -    p = pathModule.resolve(resolvedLink, p.slice(pos));
    -    start();
    -  }
    -
    -  if (cache) cache[original] = p;
    -
    -  return p;
    -};
    -
    -
    -exports.realpath = function realpath(p, cache, cb) {
    -  if (typeof cb !== 'function') {
    -    cb = maybeCallback(cache);
    -    cache = null;
    -  }
    -
    -  // make p is absolute
    -  p = pathModule.resolve(p);
    -
    -  if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
    -    return process.nextTick(cb.bind(null, null, cache[p]));
    -  }
    -
    -  var original = p,
    -      seenLinks = {},
    -      knownHard = {};
    -
    -  // current character position in p
    -  var pos;
    -  // the partial path so far, including a trailing slash if any
    -  var current;
    -  // the partial path without a trailing slash (except when pointing at a root)
    -  var base;
    -  // the partial path scanned in the previous round, with slash
    -  var previous;
    -
    -  start();
    -
    -  function start() {
    -    // Skip over roots
    -    var m = splitRootRe.exec(p);
    -    pos = m[0].length;
    -    current = m[0];
    -    base = m[0];
    -    previous = '';
    -
    -    // On windows, check that the root exists. On unix there is no need.
    -    if (isWindows && !knownHard[base]) {
    -      fs.lstat(base, function(err) {
    -        if (err) return cb(err);
    -        knownHard[base] = true;
    -        LOOP();
    -      });
    -    } else {
    -      process.nextTick(LOOP);
    -    }
    -  }
    -
    -  // walk down the path, swapping out linked pathparts for their real
    -  // values
    -  function LOOP() {
    -    // stop if scanned past end of path
    -    if (pos >= p.length) {
    -      if (cache) cache[original] = p;
    -      return cb(null, p);
    -    }
    -
    -    // find the next part
    -    nextPartRe.lastIndex = pos;
    -    var result = nextPartRe.exec(p);
    -    previous = current;
    -    current += result[0];
    -    base = previous + result[1];
    -    pos = nextPartRe.lastIndex;
    -
    -    // continue if not a symlink
    -    if (knownHard[base] || (cache && cache[base] === base)) {
    -      return process.nextTick(LOOP);
    -    }
    -
    -    if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
    -      // known symbolic link.  no need to stat again.
    -      return gotResolvedLink(cache[base]);
    -    }
    -
    -    return fs.lstat(base, gotStat);
    -  }
    -
    -  function gotStat(err, stat) {
    -    if (err) return cb(err);
    -
    -    // if not a symlink, skip to the next path part
    -    if (!stat.isSymbolicLink()) {
    -      knownHard[base] = true;
    -      if (cache) cache[base] = base;
    -      return process.nextTick(LOOP);
    -    }
    -
    -    // stat & read the link if not read before
    -    // call gotTarget as soon as the link target is known
    -    // dev/ino always return 0 on windows, so skip the check.
    -    if (!isWindows) {
    -      var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
    -      if (seenLinks.hasOwnProperty(id)) {
    -        return gotTarget(null, seenLinks[id], base);
    -      }
    -    }
    -    fs.stat(base, function(err) {
    -      if (err) return cb(err);
    -
    -      fs.readlink(base, function(err, target) {
    -        if (!isWindows) seenLinks[id] = target;
    -        gotTarget(err, target);
    -      });
    -    });
    -  }
    -
    -  function gotTarget(err, target, base) {
    -    if (err) return cb(err);
    -
    -    var resolvedLink = pathModule.resolve(previous, target);
    -    if (cache) cache[base] = resolvedLink;
    -    gotResolvedLink(resolvedLink);
    -  }
    -
    -  function gotResolvedLink(resolvedLink) {
    -    // resolve the link, then start over
    -    p = pathModule.resolve(resolvedLink, p.slice(pos));
    -    start();
    -  }
    -};
    diff --git a/node_modules/fs.realpath/package.json b/node_modules/fs.realpath/package.json
    deleted file mode 100644
    index a9868d1..0000000
    --- a/node_modules/fs.realpath/package.json
    +++ /dev/null
    @@ -1,94 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "fs.realpath@^1.0.0",
    -        "scope": null,
    -        "escapedName": "fs.realpath",
    -        "name": "fs.realpath",
    -        "rawSpec": "^1.0.0",
    -        "spec": ">=1.0.0 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/jose/Documents/GitHub/About/node_modules/glob"
    -    ]
    -  ],
    -  "_from": "fs.realpath@>=1.0.0 <2.0.0",
    -  "_id": "fs.realpath@1.0.0",
    -  "_inCache": true,
    -  "_location": "/fs.realpath",
    -  "_nodeVersion": "4.4.4",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/fs.realpath-1.0.0.tgz_1466015941059_0.3332864767871797"
    -  },
    -  "_npmUser": {
    -    "name": "isaacs",
    -    "email": "i@izs.me"
    -  },
    -  "_npmVersion": "3.9.1",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "fs.realpath@^1.0.0",
    -    "scope": null,
    -    "escapedName": "fs.realpath",
    -    "name": "fs.realpath",
    -    "rawSpec": "^1.0.0",
    -    "spec": ">=1.0.0 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/glob"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
    -  "_shasum": "1504ad2523158caa40db4a2787cb01411994ea4f",
    -  "_shrinkwrap": null,
    -  "_spec": "fs.realpath@^1.0.0",
    -  "_where": "/Users/jose/Documents/GitHub/About/node_modules/glob",
    -  "author": {
    -    "name": "Isaac Z. Schlueter",
    -    "email": "i@izs.me",
    -    "url": "http://blog.izs.me/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/isaacs/fs.realpath/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Use node's fs.realpath, but fall back to the JS implementation if the native one fails",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "1504ad2523158caa40db4a2787cb01411994ea4f",
    -    "tarball": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
    -  },
    -  "files": [
    -    "old.js",
    -    "index.js"
    -  ],
    -  "gitHead": "03e7c884431fe185dfebbc9b771aeca339c1807a",
    -  "homepage": "https://github.com/isaacs/fs.realpath#readme",
    -  "keywords": [
    -    "realpath",
    -    "fs",
    -    "polyfill"
    -  ],
    -  "license": "ISC",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "isaacs",
    -      "email": "i@izs.me"
    -    }
    -  ],
    -  "name": "fs.realpath",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/isaacs/fs.realpath.git"
    -  },
    -  "scripts": {
    -    "test": "tap test/*.js --cov"
    -  },
    -  "version": "1.0.0"
    -}
    diff --git a/node_modules/fsevents/.npmignore b/node_modules/fsevents/.npmignore
    deleted file mode 100644
    index 65e3ba2..0000000
    --- a/node_modules/fsevents/.npmignore
    +++ /dev/null
    @@ -1 +0,0 @@
    -test/
    diff --git a/node_modules/fsevents/.travis.yml b/node_modules/fsevents/.travis.yml
    deleted file mode 100644
    index afcfde0..0000000
    --- a/node_modules/fsevents/.travis.yml
    +++ /dev/null
    @@ -1,103 +0,0 @@
    -language: objective-c
    -
    -env:
    -  global:
    -    - secure: "gve1nkeKkwFEG1VAT3i+JwYyAdF0gKXwKx0uxbkBTsmm2M+0MDusohQdFLoEIkSIFktXBIDefoa7iGpLKRfG2VsZLpwJgnvnD0HqbnuR+k+W+bu7BHt4CAaR6GTllsDCjyq9zNyhUThzSnf2WNIpOEF5kHspZlbGfawURuUJH/U="
    -    - secure: "jqVpmWxxBVXu2X8+XJMpKH0cooc2EKz9xKL2znBfYdNafJORSXcFAVbjCX5mZmVDcgIMwDtm2+gIG4P73hzJ2e3S+y2Z9ROJGyXHa3AxUTvXHQsxqzH8coHHqB8vTvfr0t2O5aKfpvpICpSea39r0hzNoMv6Ie5SwBdqj1YY9K0="
    -  matrix:
    -    - NODE_VERSION="v7"
    -    - NODE_VERSION="v6"
    -    - NODE_VERSION="v5"
    -    - NODE_VERSION="v4"
    -    - NODE_VERSION="v0.12"
    -    - NODE_VERSION="v0.10"
    -    - NODE_VERSION="iojs-v3"
    -    - NODE_VERSION="iojs-v2"
    -    - NODE_VERSION="iojs-v1"
    -
    -before_install:
    -
    -  - echo $TRAVIS_OS_NAME
    -
    -  # commit
    -  # ------------------------
    -  # The commit message is used to determine the whether to manually
    -  # invoke a binary publish
    -
    -  - COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
    -
    -  # node
    -  # ------------------------
    -
    -  - export PATH=./node_modules/.bin/:$PATH
    -  - rm -rf ~/.nvm && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
    -  - source ~/.nvm/nvm.sh
    -  - nvm install $NODE_VERSION
    -  - nvm use $NODE_VERSION
    -  - npm install -g npm@latest
    -  - node --version
    -  - npm --version
    -  - nvm --version
    -
    -  # publish dependencies
    -  # ------------------------
    -
    -  - npm install node-gyp -g
    -  - npm install aws-sdk
    -
    -install:
    -
    -  # in the first instance we build from source to create the initial binary
    -  # which can then be used to create a package
    -
    -  - npm install --build-from-source
    -  - npm test
    -
    -before_script:
    -
    -  # Detemine if a publish is required.
    -  #
    -  # a) we are building a tag
    -  # b) we put [publish binary] in the commit message
    -
    -  - PUBLISH_BINARY=false
    -
    -  - if [[ $TRAVIS_BRANCH == `git describe --tags --always HEAD` ]]; then PUBLISH_BINARY=true; fi;       # a
    -  - if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE"; then PUBLISH_BINARY=true; fi; # b
    -
    -  # package & publish
    -  # ------------------------
    -
    -  - if [[ $PUBLISH_BINARY == true ]]; then node-pre-gyp package publish; fi;
    -
    -  # clean-up
    -  # ------------------------
    -
    -  - node-pre-gyp clean
    -  - node-gyp clean
    -
    -script:
    -
    -  # validate
    -  # ------------------------
    -  # Post publishing a release verify that installing will pull down latest
    -  # binary from remote host
    -
    -  - INSTALL_RESULT=0
    -  - if [[ $PUBLISH_BINARY == true ]]; then INSTALL_RESULT=$(npm install --fallback-to-build=false > /dev/null)$? || true; fi;
    -
    -  - node-pre-gyp clean
    -
    -  # failure?
    -  # ------------------------
    -  # if install returned non zero (errored) then we first unpublish and then
    -  # call false so travis will bail at this line.
    -
    -  - if [[ $INSTALL_RESULT != 0 ]]; then node-pre-gyp unpublish; fi;
    -  - if [[ $INSTALL_RESULT != 0 ]]; then echo "returned $INSTALL_RESULT";false; fi;
    -
    -after_success:
    -
    -  # display all published binaries
    -
    - - node-pre-gyp info
    diff --git a/node_modules/fsevents/ISSUE_TEMPLATE.md b/node_modules/fsevents/ISSUE_TEMPLATE.md
    deleted file mode 100644
    index 426abbb..0000000
    --- a/node_modules/fsevents/ISSUE_TEMPLATE.md
    +++ /dev/null
    @@ -1,8 +0,0 @@
    -If you are NOT on OS X and have come here to file an issue about compatibility problems, 
    -please stop and go to #115 for your answer.
    -
    -You can look through many other similar closed issues as well if you're interested:
    -https://github.com/strongloop/fsevents/search?utf8=%E2%9C%93&q=%22notsup%22+OR+%22EBADPLATFORM%22&type=Issues.
    -
    -If you are here to report an issue observed while using this module on OS X, please delete
    -all this pre-filled text then go ahead and submit your report.
    diff --git a/node_modules/fsevents/LICENSE b/node_modules/fsevents/LICENSE
    deleted file mode 100644
    index 4a49ad8..0000000
    --- a/node_modules/fsevents/LICENSE
    +++ /dev/null
    @@ -1,22 +0,0 @@
    -MIT License
    ------------
    -
    -Copyright (C) 2010-2014 Philipp Dunkel
    -
    -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/fsevents/Readme.md b/node_modules/fsevents/Readme.md
    deleted file mode 100644
    index 03ddfa9..0000000
    --- a/node_modules/fsevents/Readme.md
    +++ /dev/null
    @@ -1,78 +0,0 @@
    -# fsevents [![NPM](https://nodei.co/npm/fsevents.png)](https://nodei.co/npm/fsevents/)
    -
    -Native access to OS X FSEvents in [Node.js](http://nodejs.org/)
    -
    -The FSEvents API in OS X allows applications to register for notifications of
    -changes to a given directory tree. It is a very fast and lightweight alternative
    -to kqueue.
    -
    -This is a low-level library. For a cross-compatible file watching module that
    -uses fsevents, check out [Chokidar](https://www.npmjs.com/package/chokidar).
    -
    -* [Module Site & GitHub](https://github.com/strongloop/fsevents)
    -* [NPM Page](https://npmjs.org/package/fsevents)
    -
    -## Installation
    -
    -	$ npm install fsevents
    -
    -## Usage
    -
    -```js
    -var fsevents = require('fsevents');
    -var watcher = fsevents(__dirname);
    -watcher.on('fsevent', function(path, flags, id) { }); // RAW Event as emitted by OS-X
    -watcher.on('change', function(path, info) { }); // Common Event for all changes
    -watcher.start() // To start observation
    -watcher.stop()  // To end observation
    -```
    -
    -### Events
    -
    - * *fsevent* - RAW Event as emitted by OS-X
    - * *change* - Common Event for all changes
    - * *created* - A File-System-Item has been created
    - * *deleted* - A File-System-Item has been deleted
    - * *modified* - A File-System-Item has been modified
    - * *moved-out* - A File-System-Item has been moved away from this location
    - * *moved-in* - A File-System-Item has been moved into this location
    -
    -All events except *fsevent* take an *info* object as the second parameter of the callback. The structure of this object is:
    -
    -```js
    -{
    -  "event": "",
    -  "id": ,
    -  "path": "",
    -  "type": "",
    -  "changes": {
    -    "inode": true, // Has the iNode Meta-Information changed
    -    "finder": false, // Has the Finder Meta-Data changed
    -    "access": false, // Have the access permissions changed
    -    "xattrs": false // Have the xAttributes changed
    -  },
    -  "flags": 
    -}
    -```
    -
    -## MIT License
    -
    -Copyright (C) 2010-2014 Philipp Dunkel
    -
    -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/fsevents/binding.gyp b/node_modules/fsevents/binding.gyp
    deleted file mode 100644
    index 06ca003..0000000
    --- a/node_modules/fsevents/binding.gyp
    +++ /dev/null
    @@ -1,29 +0,0 @@
    -{
    -  "targets": [
    -    { "target_name": "" }
    -  ],
    -  "conditions": [
    -    ['OS=="mac"', {
    -      "targets": [{
    -        "target_name": "<(module_name)",
    -        "sources": ["fsevents.cc"],
    -        "xcode_settings": {
    -          "OTHER_LDFLAGS": [
    -            "-framework CoreFoundation -framework CoreServices"
    -          ]
    -        },
    -        "include_dirs": [
    -          "> $(depfile)
    -# Add extra rules as in (2).
    -# We remove slashes and replace spaces with new lines;
    -# remove blank lines;
    -# delete the first line and append a colon to the remaining lines.
    -sed -e 's|\\||' -e 'y| |\n|' $(depfile).raw |\
    -  grep -v '^$$'                             |\
    -  sed -e 1d -e 's|$$|:|'                     \
    -    >> $(depfile)
    -rm $(depfile).raw
    -endef
    -
    -# Command definitions:
    -# - cmd_foo is the actual command to run;
    -# - quiet_cmd_foo is the brief-output summary of the command.
    -
    -quiet_cmd_cc = CC($(TOOLSET)) $@
    -cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $@ $<
    -
    -quiet_cmd_cxx = CXX($(TOOLSET)) $@
    -cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
    -
    -quiet_cmd_objc = CXX($(TOOLSET)) $@
    -cmd_objc = $(CC.$(TOOLSET)) $(GYP_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
    -
    -quiet_cmd_objcxx = CXX($(TOOLSET)) $@
    -cmd_objcxx = $(CXX.$(TOOLSET)) $(GYP_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
    -
    -# Commands for precompiled header files.
    -quiet_cmd_pch_c = CXX($(TOOLSET)) $@
    -cmd_pch_c = $(CC.$(TOOLSET)) $(GYP_PCH_CFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
    -quiet_cmd_pch_cc = CXX($(TOOLSET)) $@
    -cmd_pch_cc = $(CC.$(TOOLSET)) $(GYP_PCH_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
    -quiet_cmd_pch_m = CXX($(TOOLSET)) $@
    -cmd_pch_m = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
    -quiet_cmd_pch_mm = CXX($(TOOLSET)) $@
    -cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
    -
    -# gyp-mac-tool is written next to the root Makefile by gyp.
    -# Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
    -# already.
    -quiet_cmd_mac_tool = MACTOOL $(4) $<
    -cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
    -
    -quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
    -cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
    -
    -quiet_cmd_infoplist = INFOPLIST $@
    -cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@"
    -
    -quiet_cmd_touch = TOUCH $@
    -cmd_touch = touch $@
    -
    -quiet_cmd_copy = COPY $@
    -# send stderr to /dev/null to ignore messages when linking directories.
    -cmd_copy = rm -rf "$@" && cp -af "$<" "$@"
    -
    -quiet_cmd_alink = LIBTOOL-STATIC $@
    -cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
    -
    -quiet_cmd_link = LINK($(TOOLSET)) $@
    -cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
    -
    -quiet_cmd_solink = SOLINK($(TOOLSET)) $@
    -cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
    -
    -quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
    -cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
    -
    -
    -# Define an escape_quotes function to escape single quotes.
    -# This allows us to handle quotes properly as long as we always use
    -# use single quotes and escape_quotes.
    -escape_quotes = $(subst ','\'',$(1))
    -# This comment is here just to include a ' to unconfuse syntax highlighting.
    -# Define an escape_vars function to escape '$' variable syntax.
    -# This allows us to read/write command lines with shell variables (e.g.
    -# $LD_LIBRARY_PATH), without triggering make substitution.
    -escape_vars = $(subst $$,$$$$,$(1))
    -# Helper that expands to a shell command to echo a string exactly as it is in
    -# make. This uses printf instead of echo because printf's behaviour with respect
    -# to escape sequences is more portable than echo's across different shells
    -# (e.g., dash, bash).
    -exact_echo = printf '%s\n' '$(call escape_quotes,$(1))'
    -
    -# Helper to compare the command we're about to run against the command
    -# we logged the last time we ran the command.  Produces an empty
    -# string (false) when the commands match.
    -# Tricky point: Make has no string-equality test function.
    -# The kernel uses the following, but it seems like it would have false
    -# positives, where one string reordered its arguments.
    -#   arg_check = $(strip $(filter-out $(cmd_$(1)), $(cmd_$@)) \
    -#                       $(filter-out $(cmd_$@), $(cmd_$(1))))
    -# We instead substitute each for the empty string into the other, and
    -# say they're equal if both substitutions produce the empty string.
    -# .d files contain ? instead of spaces, take that into account.
    -command_changed = $(or $(subst $(cmd_$(1)),,$(cmd_$(call replace_spaces,$@))),\
    -                       $(subst $(cmd_$(call replace_spaces,$@)),,$(cmd_$(1))))
    -
    -# Helper that is non-empty when a prerequisite changes.
    -# Normally make does this implicitly, but we force rules to always run
    -# so we can check their command lines.
    -#   $? -- new prerequisites
    -#   $| -- order-only dependencies
    -prereq_changed = $(filter-out FORCE_DO_CMD,$(filter-out $|,$?))
    -
    -# Helper that executes all postbuilds until one fails.
    -define do_postbuilds
    -  @E=0;\
    -  for p in $(POSTBUILDS); do\
    -    eval $$p;\
    -    E=$$?;\
    -    if [ $$E -ne 0 ]; then\
    -      break;\
    -    fi;\
    -  done;\
    -  if [ $$E -ne 0 ]; then\
    -    rm -rf "$@";\
    -    exit $$E;\
    -  fi
    -endef
    -
    -# do_cmd: run a command via the above cmd_foo names, if necessary.
    -# Should always run for a given target to handle command-line changes.
    -# Second argument, if non-zero, makes it do asm/C/C++ dependency munging.
    -# Third argument, if non-zero, makes it do POSTBUILDS processing.
    -# Note: We intentionally do NOT call dirx for depfile, since it contains ? for
    -# spaces already and dirx strips the ? characters.
    -define do_cmd
    -$(if $(or $(command_changed),$(prereq_changed)),
    -  @$(call exact_echo,  $($(quiet)cmd_$(1)))
    -  @mkdir -p "$(call dirx,$@)" "$(dir $(depfile))"
    -  $(if $(findstring flock,$(word 2,$(cmd_$1))),
    -    @$(cmd_$(1))
    -    @echo "  $(quiet_cmd_$(1)): Finished",
    -    @$(cmd_$(1))
    -  )
    -  @$(call exact_echo,$(call escape_vars,cmd_$(call replace_spaces,$@) := $(cmd_$(1)))) > $(depfile)
    -  @$(if $(2),$(fixup_dep))
    -  $(if $(and $(3), $(POSTBUILDS)),
    -    $(call do_postbuilds)
    -  )
    -)
    -endef
    -
    -# Declare the "all" target first so it is the default,
    -# even though we don't have the deps yet.
    -.PHONY: all
    -all:
    -
    -# make looks for ways to re-generate included makefiles, but in our case, we
    -# don't have a direct way. Explicitly telling make that it has nothing to do
    -# for them makes it go faster.
    -%.d: ;
    -
    -# Use FORCE_DO_CMD to force a target to run.  Should be coupled with
    -# do_cmd.
    -.PHONY: FORCE_DO_CMD
    -FORCE_DO_CMD:
    -
    -TOOLSET := target
    -# Suffix rules, putting all outputs into $(obj).
    -$(obj).$(TOOLSET)/%.o: $(srcdir)/%.c FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -$(obj).$(TOOLSET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(srcdir)/%.cxx FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(srcdir)/%.m FORCE_DO_CMD
    -	@$(call do_cmd,objc,1)
    -$(obj).$(TOOLSET)/%.o: $(srcdir)/%.mm FORCE_DO_CMD
    -	@$(call do_cmd,objcxx,1)
    -$(obj).$(TOOLSET)/%.o: $(srcdir)/%.S FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -$(obj).$(TOOLSET)/%.o: $(srcdir)/%.s FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -
    -# Try building from generated source, too.
    -$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.c FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cxx FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.m FORCE_DO_CMD
    -	@$(call do_cmd,objc,1)
    -$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.mm FORCE_DO_CMD
    -	@$(call do_cmd,objcxx,1)
    -$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.S FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -$(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.s FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -
    -$(obj).$(TOOLSET)/%.o: $(obj)/%.c FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -$(obj).$(TOOLSET)/%.o: $(obj)/%.cc FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(obj)/%.cxx FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -$(obj).$(TOOLSET)/%.o: $(obj)/%.m FORCE_DO_CMD
    -	@$(call do_cmd,objc,1)
    -$(obj).$(TOOLSET)/%.o: $(obj)/%.mm FORCE_DO_CMD
    -	@$(call do_cmd,objcxx,1)
    -$(obj).$(TOOLSET)/%.o: $(obj)/%.S FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -$(obj).$(TOOLSET)/%.o: $(obj)/%.s FORCE_DO_CMD
    -	@$(call do_cmd,cc,1)
    -
    -
    -ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
    -    $(findstring $(join ^,$(prefix)),\
    -                 $(join ^,.target.mk)))),)
    -  include .target.mk
    -endif
    -ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
    -    $(findstring $(join ^,$(prefix)),\
    -                 $(join ^,action_after_build.target.mk)))),)
    -  include action_after_build.target.mk
    -endif
    -ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
    -    $(findstring $(join ^,$(prefix)),\
    -                 $(join ^,fse.target.mk)))),)
    -  include fse.target.mk
    -endif
    -
    -quiet_cmd_regen_makefile = ACTION Regenerating $@
    -cmd_regen_makefile = cd $(srcdir); /Users/eshanker/.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "--toplevel-dir=." -I/Users/eshanker/Code/fsevents/build/config.gypi -I/Users/eshanker/.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/Users/eshanker/.node-gyp/5.0.0/include/node/common.gypi "--depth=." "-Goutput_dir=." "--generator-output=build" "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/Users/eshanker/.node-gyp/5.0.0" "-Dnode_gyp_dir=/Users/eshanker/.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=node.lib" "-Dmodule_root_dir=/Users/eshanker/Code/fsevents" binding.gyp
    -Makefile: $(srcdir)/../../.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/../../.node-gyp/5.0.0/include/node/common.gypi $(srcdir)/build/config.gypi $(srcdir)/binding.gyp
    -	$(call do_cmd,regen_makefile)
    -
    -# "all" is a concatenation of the "all" targets from all the included
    -# sub-makefiles. This is just here to clarify.
    -all:
    -
    -# Add in dependency-tracking rules.  $(all_deps) is the list of every single
    -# target in our tree. Only consider the ones with .d (dependency) info:
    -d_files := $(wildcard $(foreach f,$(all_deps),$(depsdir)/$(f).d))
    -ifneq ($(d_files),)
    -  include $(d_files)
    -endif
    diff --git a/node_modules/fsevents/build/action_after_build.target.mk b/node_modules/fsevents/build/action_after_build.target.mk
    deleted file mode 100644
    index cf7a250..0000000
    --- a/node_modules/fsevents/build/action_after_build.target.mk
    +++ /dev/null
    @@ -1,32 +0,0 @@
    -# This file is generated by gyp; do not edit.
    -
    -TOOLSET := target
    -TARGET := action_after_build
    -### Generated for copy rule.
    -/Users/eshanker/Code/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node: TOOLSET := $(TOOLSET)
    -/Users/eshanker/Code/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node: $(builddir)/fse.node FORCE_DO_CMD
    -	$(call do_cmd,copy)
    -
    -all_deps += /Users/eshanker/Code/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node
    -binding_gyp_action_after_build_target_copies = /Users/eshanker/Code/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node
    -
    -### Rules for final target.
    -# Build our special outputs first.
    -$(obj).target/action_after_build.stamp: | $(binding_gyp_action_after_build_target_copies)
    -
    -# Preserve order dependency of special output on deps.
    -$(binding_gyp_action_after_build_target_copies): | $(builddir)/fse.node
    -
    -$(obj).target/action_after_build.stamp: TOOLSET := $(TOOLSET)
    -$(obj).target/action_after_build.stamp: $(builddir)/fse.node FORCE_DO_CMD
    -	$(call do_cmd,touch)
    -
    -all_deps += $(obj).target/action_after_build.stamp
    -# Add target alias
    -.PHONY: action_after_build
    -action_after_build: $(obj).target/action_after_build.stamp
    -
    -# Add target alias to "all" target.
    -.PHONY: all
    -all: action_after_build
    -
    diff --git a/node_modules/fsevents/build/binding.Makefile b/node_modules/fsevents/build/binding.Makefile
    deleted file mode 100644
    index f2ba1f7..0000000
    --- a/node_modules/fsevents/build/binding.Makefile
    +++ /dev/null
    @@ -1,6 +0,0 @@
    -# This file is generated by gyp; do not edit.
    -
    -export builddir_name ?= ./build/.
    -.PHONY: all
    -all:
    -	$(MAKE)  fse action_after_build
    diff --git a/node_modules/fsevents/build/fse.target.mk b/node_modules/fsevents/build/fse.target.mk
    deleted file mode 100644
    index b09ec0e..0000000
    --- a/node_modules/fsevents/build/fse.target.mk
    +++ /dev/null
    @@ -1,169 +0,0 @@
    -# This file is generated by gyp; do not edit.
    -
    -TOOLSET := target
    -TARGET := fse
    -DEFS_Debug := \
    -	'-DNODE_GYP_MODULE_NAME=fse' \
    -	'-D_DARWIN_USE_64_BIT_INODE=1' \
    -	'-D_LARGEFILE_SOURCE' \
    -	'-D_FILE_OFFSET_BITS=64' \
    -	'-DBUILDING_NODE_EXTENSION' \
    -	'-DDEBUG' \
    -	'-D_DEBUG'
    -
    -# Flags passed to all source files.
    -CFLAGS_Debug := \
    -	-O0 \
    -	-gdwarf-2 \
    -	-mmacosx-version-min=10.5 \
    -	-arch x86_64 \
    -	-Wall \
    -	-Wendif-labels \
    -	-W \
    -	-Wno-unused-parameter
    -
    -# Flags passed to only C files.
    -CFLAGS_C_Debug := \
    -	-fno-strict-aliasing
    -
    -# Flags passed to only C++ files.
    -CFLAGS_CC_Debug := \
    -	-std=gnu++0x \
    -	-fno-rtti \
    -	-fno-exceptions \
    -	-fno-threadsafe-statics \
    -	-fno-strict-aliasing
    -
    -# Flags passed to only ObjC files.
    -CFLAGS_OBJC_Debug :=
    -
    -# Flags passed to only ObjC++ files.
    -CFLAGS_OBJCC_Debug :=
    -
    -INCS_Debug := \
    -	-I/Users/eshanker/.node-gyp/5.0.0/include/node \
    -	-I/Users/eshanker/.node-gyp/5.0.0/src \
    -	-I/Users/eshanker/.node-gyp/5.0.0/deps/uv/include \
    -	-I/Users/eshanker/.node-gyp/5.0.0/deps/v8/include \
    -	-I$(srcdir)/node_modules/nan
    -
    -DEFS_Release := \
    -	'-DNODE_GYP_MODULE_NAME=fse' \
    -	'-D_DARWIN_USE_64_BIT_INODE=1' \
    -	'-D_LARGEFILE_SOURCE' \
    -	'-D_FILE_OFFSET_BITS=64' \
    -	'-DBUILDING_NODE_EXTENSION'
    -
    -# Flags passed to all source files.
    -CFLAGS_Release := \
    -	-Os \
    -	-gdwarf-2 \
    -	-mmacosx-version-min=10.5 \
    -	-arch x86_64 \
    -	-Wall \
    -	-Wendif-labels \
    -	-W \
    -	-Wno-unused-parameter
    -
    -# Flags passed to only C files.
    -CFLAGS_C_Release := \
    -	-fno-strict-aliasing
    -
    -# Flags passed to only C++ files.
    -CFLAGS_CC_Release := \
    -	-std=gnu++0x \
    -	-fno-rtti \
    -	-fno-exceptions \
    -	-fno-threadsafe-statics \
    -	-fno-strict-aliasing
    -
    -# Flags passed to only ObjC files.
    -CFLAGS_OBJC_Release :=
    -
    -# Flags passed to only ObjC++ files.
    -CFLAGS_OBJCC_Release :=
    -
    -INCS_Release := \
    -	-I/Users/eshanker/.node-gyp/5.0.0/include/node \
    -	-I/Users/eshanker/.node-gyp/5.0.0/src \
    -	-I/Users/eshanker/.node-gyp/5.0.0/deps/uv/include \
    -	-I/Users/eshanker/.node-gyp/5.0.0/deps/v8/include \
    -	-I$(srcdir)/node_modules/nan
    -
    -OBJS := \
    -	$(obj).target/$(TARGET)/fsevents.o
    -
    -# Add to the list of files we specially track dependencies for.
    -all_deps += $(OBJS)
    -
    -# CFLAGS et al overrides must be target-local.
    -# See "Target-specific Variable Values" in the GNU Make manual.
    -$(OBJS): TOOLSET := $(TOOLSET)
    -$(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE))  $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
    -$(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE))  $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
    -$(OBJS): GYP_OBJCFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE))  $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))
    -$(OBJS): GYP_OBJCXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE))  $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))
    -
    -# Suffix rules, putting all outputs into $(obj).
    -
    -$(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -
    -# Try building from generated source, too.
    -
    -$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -
    -$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
    -	@$(call do_cmd,cxx,1)
    -
    -# End of this set of suffix rules
    -### Rules for final target.
    -LDFLAGS_Debug := \
    -	-framework CoreFoundation -framework CoreServices \
    -	-undefined dynamic_lookup \
    -	-Wl,-search_paths_first \
    -	-mmacosx-version-min=10.5 \
    -	-arch x86_64 \
    -	-L$(builddir)
    -
    -LIBTOOLFLAGS_Debug := \
    -	-framework CoreFoundation -framework CoreServices \
    -	-undefined dynamic_lookup \
    -	-Wl,-search_paths_first
    -
    -LDFLAGS_Release := \
    -	-framework CoreFoundation -framework CoreServices \
    -	-undefined dynamic_lookup \
    -	-Wl,-search_paths_first \
    -	-mmacosx-version-min=10.5 \
    -	-arch x86_64 \
    -	-L$(builddir)
    -
    -LIBTOOLFLAGS_Release := \
    -	-framework CoreFoundation -framework CoreServices \
    -	-undefined dynamic_lookup \
    -	-Wl,-search_paths_first
    -
    -LIBS :=
    -
    -$(builddir)/fse.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
    -$(builddir)/fse.node: LIBS := $(LIBS)
    -$(builddir)/fse.node: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))
    -$(builddir)/fse.node: TOOLSET := $(TOOLSET)
    -$(builddir)/fse.node: $(OBJS) FORCE_DO_CMD
    -	$(call do_cmd,solink_module)
    -
    -all_deps += $(builddir)/fse.node
    -# Add target alias
    -.PHONY: fse
    -fse: $(builddir)/fse.node
    -
    -# Short alias for building this executable.
    -.PHONY: fse.node
    -fse.node: $(builddir)/fse.node
    -
    -# Add executable to "all" target.
    -.PHONY: all
    -all: $(builddir)/fse.node
    -
    diff --git a/node_modules/fsevents/build/gyp-mac-tool b/node_modules/fsevents/build/gyp-mac-tool
    deleted file mode 100755
    index 976c598..0000000
    --- a/node_modules/fsevents/build/gyp-mac-tool
    +++ /dev/null
    @@ -1,612 +0,0 @@
    -#!/usr/bin/env python
    -# Generated by gyp. Do not edit.
    -# Copyright (c) 2012 Google Inc. All rights reserved.
    -# Use of this source code is governed by a BSD-style license that can be
    -# found in the LICENSE file.
    -
    -"""Utility functions to perform Xcode-style build steps.
    -
    -These functions are executed via gyp-mac-tool when using the Makefile generator.
    -"""
    -
    -import fcntl
    -import fnmatch
    -import glob
    -import json
    -import os
    -import plistlib
    -import re
    -import shutil
    -import string
    -import subprocess
    -import sys
    -import tempfile
    -
    -
    -def main(args):
    -  executor = MacTool()
    -  exit_code = executor.Dispatch(args)
    -  if exit_code is not None:
    -    sys.exit(exit_code)
    -
    -
    -class MacTool(object):
    -  """This class performs all the Mac tooling steps. The methods can either be
    -  executed directly, or dispatched from an argument list."""
    -
    -  def Dispatch(self, args):
    -    """Dispatches a string command to a method."""
    -    if len(args) < 1:
    -      raise Exception("Not enough arguments")
    -
    -    method = "Exec%s" % self._CommandifyName(args[0])
    -    return getattr(self, method)(*args[1:])
    -
    -  def _CommandifyName(self, name_string):
    -    """Transforms a tool name like copy-info-plist to CopyInfoPlist"""
    -    return name_string.title().replace('-', '')
    -
    -  def ExecCopyBundleResource(self, source, dest, convert_to_binary):
    -    """Copies a resource file to the bundle/Resources directory, performing any
    -    necessary compilation on each resource."""
    -    extension = os.path.splitext(source)[1].lower()
    -    if os.path.isdir(source):
    -      # Copy tree.
    -      # TODO(thakis): This copies file attributes like mtime, while the
    -      # single-file branch below doesn't. This should probably be changed to
    -      # be consistent with the single-file branch.
    -      if os.path.exists(dest):
    -        shutil.rmtree(dest)
    -      shutil.copytree(source, dest)
    -    elif extension == '.xib':
    -      return self._CopyXIBFile(source, dest)
    -    elif extension == '.storyboard':
    -      return self._CopyXIBFile(source, dest)
    -    elif extension == '.strings':
    -      self._CopyStringsFile(source, dest, convert_to_binary)
    -    else:
    -      shutil.copy(source, dest)
    -
    -  def _CopyXIBFile(self, source, dest):
    -    """Compiles a XIB file with ibtool into a binary plist in the bundle."""
    -
    -    # ibtool sometimes crashes with relative paths. See crbug.com/314728.
    -    base = os.path.dirname(os.path.realpath(__file__))
    -    if os.path.relpath(source):
    -      source = os.path.join(base, source)
    -    if os.path.relpath(dest):
    -      dest = os.path.join(base, dest)
    -
    -    args = ['xcrun', 'ibtool', '--errors', '--warnings', '--notices',
    -        '--output-format', 'human-readable-text', '--compile', dest, source]
    -    ibtool_section_re = re.compile(r'/\*.*\*/')
    -    ibtool_re = re.compile(r'.*note:.*is clipping its content')
    -    ibtoolout = subprocess.Popen(args, stdout=subprocess.PIPE)
    -    current_section_header = None
    -    for line in ibtoolout.stdout:
    -      if ibtool_section_re.match(line):
    -        current_section_header = line
    -      elif not ibtool_re.match(line):
    -        if current_section_header:
    -          sys.stdout.write(current_section_header)
    -          current_section_header = None
    -        sys.stdout.write(line)
    -    return ibtoolout.returncode
    -
    -  def _ConvertToBinary(self, dest):
    -    subprocess.check_call([
    -        'xcrun', 'plutil', '-convert', 'binary1', '-o', dest, dest])
    -
    -  def _CopyStringsFile(self, source, dest, convert_to_binary):
    -    """Copies a .strings file using iconv to reconvert the input into UTF-16."""
    -    input_code = self._DetectInputEncoding(source) or "UTF-8"
    -
    -    # Xcode's CpyCopyStringsFile / builtin-copyStrings seems to call
    -    # CFPropertyListCreateFromXMLData() behind the scenes; at least it prints
    -    #     CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
    -    #     semicolon in dictionary.
    -    # on invalid files. Do the same kind of validation.
    -    import CoreFoundation
    -    s = open(source, 'rb').read()
    -    d = CoreFoundation.CFDataCreate(None, s, len(s))
    -    _, error = CoreFoundation.CFPropertyListCreateFromXMLData(None, d, 0, None)
    -    if error:
    -      return
    -
    -    fp = open(dest, 'wb')
    -    fp.write(s.decode(input_code).encode('UTF-16'))
    -    fp.close()
    -
    -    if convert_to_binary == 'True':
    -      self._ConvertToBinary(dest)
    -
    -  def _DetectInputEncoding(self, file_name):
    -    """Reads the first few bytes from file_name and tries to guess the text
    -    encoding. Returns None as a guess if it can't detect it."""
    -    fp = open(file_name, 'rb')
    -    try:
    -      header = fp.read(3)
    -    except e:
    -      fp.close()
    -      return None
    -    fp.close()
    -    if header.startswith("\xFE\xFF"):
    -      return "UTF-16"
    -    elif header.startswith("\xFF\xFE"):
    -      return "UTF-16"
    -    elif header.startswith("\xEF\xBB\xBF"):
    -      return "UTF-8"
    -    else:
    -      return None
    -
    -  def ExecCopyInfoPlist(self, source, dest, convert_to_binary, *keys):
    -    """Copies the |source| Info.plist to the destination directory |dest|."""
    -    # Read the source Info.plist into memory.
    -    fd = open(source, 'r')
    -    lines = fd.read()
    -    fd.close()
    -
    -    # Insert synthesized key/value pairs (e.g. BuildMachineOSBuild).
    -    plist = plistlib.readPlistFromString(lines)
    -    if keys:
    -      plist = dict(plist.items() + json.loads(keys[0]).items())
    -    lines = plistlib.writePlistToString(plist)
    -
    -    # Go through all the environment variables and replace them as variables in
    -    # the file.
    -    IDENT_RE = re.compile(r'[/\s]')
    -    for key in os.environ:
    -      if key.startswith('_'):
    -        continue
    -      evar = '${%s}' % key
    -      evalue = os.environ[key]
    -      lines = string.replace(lines, evar, evalue)
    -
    -      # Xcode supports various suffices on environment variables, which are
    -      # all undocumented. :rfc1034identifier is used in the standard project
    -      # template these days, and :identifier was used earlier. They are used to
    -      # convert non-url characters into things that look like valid urls --
    -      # except that the replacement character for :identifier, '_' isn't valid
    -      # in a URL either -- oops, hence :rfc1034identifier was born.
    -      evar = '${%s:identifier}' % key
    -      evalue = IDENT_RE.sub('_', os.environ[key])
    -      lines = string.replace(lines, evar, evalue)
    -
    -      evar = '${%s:rfc1034identifier}' % key
    -      evalue = IDENT_RE.sub('-', os.environ[key])
    -      lines = string.replace(lines, evar, evalue)
    -
    -    # Remove any keys with values that haven't been replaced.
    -    lines = lines.split('\n')
    -    for i in range(len(lines)):
    -      if lines[i].strip().startswith("${"):
    -        lines[i] = None
    -        lines[i - 1] = None
    -    lines = '\n'.join(filter(lambda x: x is not None, lines))
    -
    -    # Write out the file with variables replaced.
    -    fd = open(dest, 'w')
    -    fd.write(lines)
    -    fd.close()
    -
    -    # Now write out PkgInfo file now that the Info.plist file has been
    -    # "compiled".
    -    self._WritePkgInfo(dest)
    -
    -    if convert_to_binary == 'True':
    -      self._ConvertToBinary(dest)
    -
    -  def _WritePkgInfo(self, info_plist):
    -    """This writes the PkgInfo file from the data stored in Info.plist."""
    -    plist = plistlib.readPlist(info_plist)
    -    if not plist:
    -      return
    -
    -    # Only create PkgInfo for executable types.
    -    package_type = plist['CFBundlePackageType']
    -    if package_type != 'APPL':
    -      return
    -
    -    # The format of PkgInfo is eight characters, representing the bundle type
    -    # and bundle signature, each four characters. If that is missing, four
    -    # '?' characters are used instead.
    -    signature_code = plist.get('CFBundleSignature', '????')
    -    if len(signature_code) != 4:  # Wrong length resets everything, too.
    -      signature_code = '?' * 4
    -
    -    dest = os.path.join(os.path.dirname(info_plist), 'PkgInfo')
    -    fp = open(dest, 'w')
    -    fp.write('%s%s' % (package_type, signature_code))
    -    fp.close()
    -
    -  def ExecFlock(self, lockfile, *cmd_list):
    -    """Emulates the most basic behavior of Linux's flock(1)."""
    -    # Rely on exception handling to report errors.
    -    fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666)
    -    fcntl.flock(fd, fcntl.LOCK_EX)
    -    return subprocess.call(cmd_list)
    -
    -  def ExecFilterLibtool(self, *cmd_list):
    -    """Calls libtool and filters out '/path/to/libtool: file: foo.o has no
    -    symbols'."""
    -    libtool_re = re.compile(r'^.*libtool: file: .* has no symbols$')
    -    libtool_re5 = re.compile(
    -        r'^.*libtool: warning for library: ' +
    -        r'.* the table of contents is empty ' +
    -        r'\(no object file members in the library define global symbols\)$')
    -    env = os.environ.copy()
    -    # Ref:
    -    # http://www.opensource.apple.com/source/cctools/cctools-809/misc/libtool.c
    -    # The problem with this flag is that it resets the file mtime on the file to
    -    # epoch=0, e.g. 1970-1-1 or 1969-12-31 depending on timezone.
    -    env['ZERO_AR_DATE'] = '1'
    -    libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE, env=env)
    -    _, err = libtoolout.communicate()
    -    for line in err.splitlines():
    -      if not libtool_re.match(line) and not libtool_re5.match(line):
    -        print >>sys.stderr, line
    -    # Unconditionally touch the output .a file on the command line if present
    -    # and the command succeeded. A bit hacky.
    -    if not libtoolout.returncode:
    -      for i in range(len(cmd_list) - 1):
    -        if cmd_list[i] == "-o" and cmd_list[i+1].endswith('.a'):
    -          os.utime(cmd_list[i+1], None)
    -          break
    -    return libtoolout.returncode
    -
    -  def ExecPackageFramework(self, framework, version):
    -    """Takes a path to Something.framework and the Current version of that and
    -    sets up all the symlinks."""
    -    # Find the name of the binary based on the part before the ".framework".
    -    binary = os.path.basename(framework).split('.')[0]
    -
    -    CURRENT = 'Current'
    -    RESOURCES = 'Resources'
    -    VERSIONS = 'Versions'
    -
    -    if not os.path.exists(os.path.join(framework, VERSIONS, version, binary)):
    -      # Binary-less frameworks don't seem to contain symlinks (see e.g.
    -      # chromium's out/Debug/org.chromium.Chromium.manifest/ bundle).
    -      return
    -
    -    # Move into the framework directory to set the symlinks correctly.
    -    pwd = os.getcwd()
    -    os.chdir(framework)
    -
    -    # Set up the Current version.
    -    self._Relink(version, os.path.join(VERSIONS, CURRENT))
    -
    -    # Set up the root symlinks.
    -    self._Relink(os.path.join(VERSIONS, CURRENT, binary), binary)
    -    self._Relink(os.path.join(VERSIONS, CURRENT, RESOURCES), RESOURCES)
    -
    -    # Back to where we were before!
    -    os.chdir(pwd)
    -
    -  def _Relink(self, dest, link):
    -    """Creates a symlink to |dest| named |link|. If |link| already exists,
    -    it is overwritten."""
    -    if os.path.lexists(link):
    -      os.remove(link)
    -    os.symlink(dest, link)
    -
    -  def ExecCompileXcassets(self, keys, *inputs):
    -    """Compiles multiple .xcassets files into a single .car file.
    -
    -    This invokes 'actool' to compile all the inputs .xcassets files. The
    -    |keys| arguments is a json-encoded dictionary of extra arguments to
    -    pass to 'actool' when the asset catalogs contains an application icon
    -    or a launch image.
    -
    -    Note that 'actool' does not create the Assets.car file if the asset
    -    catalogs does not contains imageset.
    -    """
    -    command_line = [
    -      'xcrun', 'actool', '--output-format', 'human-readable-text',
    -      '--compress-pngs', '--notices', '--warnings', '--errors',
    -    ]
    -    is_iphone_target = 'IPHONEOS_DEPLOYMENT_TARGET' in os.environ
    -    if is_iphone_target:
    -      platform = os.environ['CONFIGURATION'].split('-')[-1]
    -      if platform not in ('iphoneos', 'iphonesimulator'):
    -        platform = 'iphonesimulator'
    -      command_line.extend([
    -          '--platform', platform, '--target-device', 'iphone',
    -          '--target-device', 'ipad', '--minimum-deployment-target',
    -          os.environ['IPHONEOS_DEPLOYMENT_TARGET'], '--compile',
    -          os.path.abspath(os.environ['CONTENTS_FOLDER_PATH']),
    -      ])
    -    else:
    -      command_line.extend([
    -          '--platform', 'macosx', '--target-device', 'mac',
    -          '--minimum-deployment-target', os.environ['MACOSX_DEPLOYMENT_TARGET'],
    -          '--compile',
    -          os.path.abspath(os.environ['UNLOCALIZED_RESOURCES_FOLDER_PATH']),
    -      ])
    -    if keys:
    -      keys = json.loads(keys)
    -      for key, value in keys.iteritems():
    -        arg_name = '--' + key
    -        if isinstance(value, bool):
    -          if value:
    -            command_line.append(arg_name)
    -        elif isinstance(value, list):
    -          for v in value:
    -            command_line.append(arg_name)
    -            command_line.append(str(v))
    -        else:
    -          command_line.append(arg_name)
    -          command_line.append(str(value))
    -    # Note: actool crashes if inputs path are relative, so use os.path.abspath
    -    # to get absolute path name for inputs.
    -    command_line.extend(map(os.path.abspath, inputs))
    -    subprocess.check_call(command_line)
    -
    -  def ExecMergeInfoPlist(self, output, *inputs):
    -    """Merge multiple .plist files into a single .plist file."""
    -    merged_plist = {}
    -    for path in inputs:
    -      plist = self._LoadPlistMaybeBinary(path)
    -      self._MergePlist(merged_plist, plist)
    -    plistlib.writePlist(merged_plist, output)
    -
    -  def ExecCodeSignBundle(self, key, resource_rules, entitlements, provisioning):
    -    """Code sign a bundle.
    -
    -    This function tries to code sign an iOS bundle, following the same
    -    algorithm as Xcode:
    -      1. copy ResourceRules.plist from the user or the SDK into the bundle,
    -      2. pick the provisioning profile that best match the bundle identifier,
    -         and copy it into the bundle as embedded.mobileprovision,
    -      3. copy Entitlements.plist from user or SDK next to the bundle,
    -      4. code sign the bundle.
    -    """
    -    resource_rules_path = self._InstallResourceRules(resource_rules)
    -    substitutions, overrides = self._InstallProvisioningProfile(
    -        provisioning, self._GetCFBundleIdentifier())
    -    entitlements_path = self._InstallEntitlements(
    -        entitlements, substitutions, overrides)
    -    subprocess.check_call([
    -        'codesign', '--force', '--sign', key, '--resource-rules',
    -        resource_rules_path, '--entitlements', entitlements_path,
    -        os.path.join(
    -            os.environ['TARGET_BUILD_DIR'],
    -            os.environ['FULL_PRODUCT_NAME'])])
    -
    -  def _InstallResourceRules(self, resource_rules):
    -    """Installs ResourceRules.plist from user or SDK into the bundle.
    -
    -    Args:
    -      resource_rules: string, optional, path to the ResourceRules.plist file
    -        to use, default to "${SDKROOT}/ResourceRules.plist"
    -
    -    Returns:
    -      Path to the copy of ResourceRules.plist into the bundle.
    -    """
    -    source_path = resource_rules
    -    target_path = os.path.join(
    -        os.environ['BUILT_PRODUCTS_DIR'],
    -        os.environ['CONTENTS_FOLDER_PATH'],
    -        'ResourceRules.plist')
    -    if not source_path:
    -      source_path = os.path.join(
    -          os.environ['SDKROOT'], 'ResourceRules.plist')
    -    shutil.copy2(source_path, target_path)
    -    return target_path
    -
    -  def _InstallProvisioningProfile(self, profile, bundle_identifier):
    -    """Installs embedded.mobileprovision into the bundle.
    -
    -    Args:
    -      profile: string, optional, short name of the .mobileprovision file
    -        to use, if empty or the file is missing, the best file installed
    -        will be used
    -      bundle_identifier: string, value of CFBundleIdentifier from Info.plist
    -
    -    Returns:
    -      A tuple containing two dictionary: variables substitutions and values
    -      to overrides when generating the entitlements file.
    -    """
    -    source_path, provisioning_data, team_id = self._FindProvisioningProfile(
    -        profile, bundle_identifier)
    -    target_path = os.path.join(
    -        os.environ['BUILT_PRODUCTS_DIR'],
    -        os.environ['CONTENTS_FOLDER_PATH'],
    -        'embedded.mobileprovision')
    -    shutil.copy2(source_path, target_path)
    -    substitutions = self._GetSubstitutions(bundle_identifier, team_id + '.')
    -    return substitutions, provisioning_data['Entitlements']
    -
    -  def _FindProvisioningProfile(self, profile, bundle_identifier):
    -    """Finds the .mobileprovision file to use for signing the bundle.
    -
    -    Checks all the installed provisioning profiles (or if the user specified
    -    the PROVISIONING_PROFILE variable, only consult it) and select the most
    -    specific that correspond to the bundle identifier.
    -
    -    Args:
    -      profile: string, optional, short name of the .mobileprovision file
    -        to use, if empty or the file is missing, the best file installed
    -        will be used
    -      bundle_identifier: string, value of CFBundleIdentifier from Info.plist
    -
    -    Returns:
    -      A tuple of the path to the selected provisioning profile, the data of
    -      the embedded plist in the provisioning profile and the team identifier
    -      to use for code signing.
    -
    -    Raises:
    -      SystemExit: if no .mobileprovision can be used to sign the bundle.
    -    """
    -    profiles_dir = os.path.join(
    -        os.environ['HOME'], 'Library', 'MobileDevice', 'Provisioning Profiles')
    -    if not os.path.isdir(profiles_dir):
    -      print >>sys.stderr, (
    -          'cannot find mobile provisioning for %s' % bundle_identifier)
    -      sys.exit(1)
    -    provisioning_profiles = None
    -    if profile:
    -      profile_path = os.path.join(profiles_dir, profile + '.mobileprovision')
    -      if os.path.exists(profile_path):
    -        provisioning_profiles = [profile_path]
    -    if not provisioning_profiles:
    -      provisioning_profiles = glob.glob(
    -          os.path.join(profiles_dir, '*.mobileprovision'))
    -    valid_provisioning_profiles = {}
    -    for profile_path in provisioning_profiles:
    -      profile_data = self._LoadProvisioningProfile(profile_path)
    -      app_id_pattern = profile_data.get(
    -          'Entitlements', {}).get('application-identifier', '')
    -      for team_identifier in profile_data.get('TeamIdentifier', []):
    -        app_id = '%s.%s' % (team_identifier, bundle_identifier)
    -        if fnmatch.fnmatch(app_id, app_id_pattern):
    -          valid_provisioning_profiles[app_id_pattern] = (
    -              profile_path, profile_data, team_identifier)
    -    if not valid_provisioning_profiles:
    -      print >>sys.stderr, (
    -          'cannot find mobile provisioning for %s' % bundle_identifier)
    -      sys.exit(1)
    -    # If the user has multiple provisioning profiles installed that can be
    -    # used for ${bundle_identifier}, pick the most specific one (ie. the
    -    # provisioning profile whose pattern is the longest).
    -    selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
    -    return valid_provisioning_profiles[selected_key]
    -
    -  def _LoadProvisioningProfile(self, profile_path):
    -    """Extracts the plist embedded in a provisioning profile.
    -
    -    Args:
    -      profile_path: string, path to the .mobileprovision file
    -
    -    Returns:
    -      Content of the plist embedded in the provisioning profile as a dictionary.
    -    """
    -    with tempfile.NamedTemporaryFile() as temp:
    -      subprocess.check_call([
    -          'security', 'cms', '-D', '-i', profile_path, '-o', temp.name])
    -      return self._LoadPlistMaybeBinary(temp.name)
    -
    -  def _MergePlist(self, merged_plist, plist):
    -    """Merge |plist| into |merged_plist|."""
    -    for key, value in plist.iteritems():
    -      if isinstance(value, dict):
    -        merged_value = merged_plist.get(key, {})
    -        if isinstance(merged_value, dict):
    -          self._MergePlist(merged_value, value)
    -          merged_plist[key] = merged_value
    -        else:
    -          merged_plist[key] = value
    -      else:
    -        merged_plist[key] = value
    -
    -  def _LoadPlistMaybeBinary(self, plist_path):
    -    """Loads into a memory a plist possibly encoded in binary format.
    -
    -    This is a wrapper around plistlib.readPlist that tries to convert the
    -    plist to the XML format if it can't be parsed (assuming that it is in
    -    the binary format).
    -
    -    Args:
    -      plist_path: string, path to a plist file, in XML or binary format
    -
    -    Returns:
    -      Content of the plist as a dictionary.
    -    """
    -    try:
    -      # First, try to read the file using plistlib that only supports XML,
    -      # and if an exception is raised, convert a temporary copy to XML and
    -      # load that copy.
    -      return plistlib.readPlist(plist_path)
    -    except:
    -      pass
    -    with tempfile.NamedTemporaryFile() as temp:
    -      shutil.copy2(plist_path, temp.name)
    -      subprocess.check_call(['plutil', '-convert', 'xml1', temp.name])
    -      return plistlib.readPlist(temp.name)
    -
    -  def _GetSubstitutions(self, bundle_identifier, app_identifier_prefix):
    -    """Constructs a dictionary of variable substitutions for Entitlements.plist.
    -
    -    Args:
    -      bundle_identifier: string, value of CFBundleIdentifier from Info.plist
    -      app_identifier_prefix: string, value for AppIdentifierPrefix
    -
    -    Returns:
    -      Dictionary of substitutions to apply when generating Entitlements.plist.
    -    """
    -    return {
    -      'CFBundleIdentifier': bundle_identifier,
    -      'AppIdentifierPrefix': app_identifier_prefix,
    -    }
    -
    -  def _GetCFBundleIdentifier(self):
    -    """Extracts CFBundleIdentifier value from Info.plist in the bundle.
    -
    -    Returns:
    -      Value of CFBundleIdentifier in the Info.plist located in the bundle.
    -    """
    -    info_plist_path = os.path.join(
    -        os.environ['TARGET_BUILD_DIR'],
    -        os.environ['INFOPLIST_PATH'])
    -    info_plist_data = self._LoadPlistMaybeBinary(info_plist_path)
    -    return info_plist_data['CFBundleIdentifier']
    -
    -  def _InstallEntitlements(self, entitlements, substitutions, overrides):
    -    """Generates and install the ${BundleName}.xcent entitlements file.
    -
    -    Expands variables "$(variable)" pattern in the source entitlements file,
    -    add extra entitlements defined in the .mobileprovision file and the copy
    -    the generated plist to "${BundlePath}.xcent".
    -
    -    Args:
    -      entitlements: string, optional, path to the Entitlements.plist template
    -        to use, defaults to "${SDKROOT}/Entitlements.plist"
    -      substitutions: dictionary, variable substitutions
    -      overrides: dictionary, values to add to the entitlements
    -
    -    Returns:
    -      Path to the generated entitlements file.
    -    """
    -    source_path = entitlements
    -    target_path = os.path.join(
    -        os.environ['BUILT_PRODUCTS_DIR'],
    -        os.environ['PRODUCT_NAME'] + '.xcent')
    -    if not source_path:
    -      source_path = os.path.join(
    -          os.environ['SDKROOT'],
    -          'Entitlements.plist')
    -    shutil.copy2(source_path, target_path)
    -    data = self._LoadPlistMaybeBinary(target_path)
    -    data = self._ExpandVariables(data, substitutions)
    -    if overrides:
    -      for key in overrides:
    -        if key not in data:
    -          data[key] = overrides[key]
    -    plistlib.writePlist(data, target_path)
    -    return target_path
    -
    -  def _ExpandVariables(self, data, substitutions):
    -    """Expands variables "$(variable)" in data.
    -
    -    Args:
    -      data: object, can be either string, list or dictionary
    -      substitutions: dictionary, variable substitutions to perform
    -
    -    Returns:
    -      Copy of data where each references to "$(variable)" has been replaced
    -      by the corresponding value found in substitutions, or left intact if
    -      the key was not found.
    -    """
    -    if isinstance(data, str):
    -      for key, value in substitutions.iteritems():
    -        data = data.replace('$(%s)' % key, value)
    -      return data
    -    if isinstance(data, list):
    -      return [self._ExpandVariables(v, substitutions) for v in data]
    -    if isinstance(data, dict):
    -      return dict((k, self._ExpandVariables(data[k],
    -                                            substitutions)) for k in data)
    -    return data
    -
    -if __name__ == '__main__':
    -  sys.exit(main(sys.argv[1:]))
    diff --git a/node_modules/fsevents/fsevents.cc b/node_modules/fsevents/fsevents.cc
    deleted file mode 100644
    index a347db1..0000000
    --- a/node_modules/fsevents/fsevents.cc
    +++ /dev/null
    @@ -1,102 +0,0 @@
    -/*
    -** © 2014 by Philipp Dunkel 
    -** Licensed under MIT License.
    -*/
    -
    -#include "nan.h"
    -#include "uv.h"
    -#include "v8.h"
    -#include "pthread.h"
    -#include "CoreFoundation/CoreFoundation.h"
    -#include "CoreServices/CoreServices.h"
    -#include 
    -#include 
    -
    -#include "src/storage.cc"
    -namespace fse {
    -  class FSEvents : public node::ObjectWrap {
    -  public:
    -    FSEvents(const char *path, Nan::Callback *handler);
    -    ~FSEvents();
    -
    -    // locking.cc
    -    bool lockStarted;
    -    pthread_mutex_t lockmutex;
    -    void lockingStart();
    -    void lock();
    -    void unlock();
    -    void lockingStop();
    -
    -    // async.cc
    -    uv_async_t async;
    -    void asyncStart();
    -    void asyncTrigger();
    -    void asyncStop();
    -
    -    // thread.cc
    -    pthread_t thread;
    -    CFRunLoopRef threadloop;
    -    void threadStart();
    -    static void *threadRun(void *ctx);
    -    void threadStop();
    -
    -    // methods.cc - internal
    -    Nan::Callback *handler;
    -    void emitEvent(const char *path, UInt32 flags, UInt64 id);
    -
    -    // Common
    -    CFArrayRef paths;
    -    std::vector events;
    -    static void Initialize(v8::Handle exports);
    -
    -    // methods.cc - exposed
    -    static NAN_METHOD(New);
    -    static NAN_METHOD(Stop);
    -    static NAN_METHOD(Start);
    -
    -  };
    -}
    -
    -using namespace fse;
    -
    -FSEvents::FSEvents(const char *path, Nan::Callback *handler): handler(handler) {
    -  CFStringRef dirs[] = { CFStringCreateWithCString(NULL, path, kCFStringEncodingUTF8) };
    -  paths = CFArrayCreate(NULL, (const void **)&dirs, 1, NULL);
    -  threadloop = NULL;
    -  lockingStart();
    -}
    -FSEvents::~FSEvents() {
    -  std::cout << "YIKES" << std::endl;
    -  lockingStop();
    -  delete handler;
    -  handler = NULL;
    -
    -  CFRelease(paths);
    -}
    -
    -#ifndef kFSEventStreamEventFlagItemCreated
    -#define kFSEventStreamEventFlagItemCreated 0x00000010
    -#endif
    -
    -#include "src/locking.cc"
    -#include "src/async.cc"
    -#include "src/thread.cc"
    -#include "src/constants.cc"
    -#include "src/methods.cc"
    -
    -void FSEvents::Initialize(v8::Handle exports) {
    -  v8::Local tpl = Nan::New(FSEvents::New);
    -  tpl->SetClassName(Nan::New("FSEvents").ToLocalChecked());
    -  tpl->InstanceTemplate()->SetInternalFieldCount(1);
    -  tpl->PrototypeTemplate()->Set(
    -           Nan::New("start").ToLocalChecked(),
    -           Nan::New(FSEvents::Start));
    -  tpl->PrototypeTemplate()->Set(
    -           Nan::New("stop").ToLocalChecked(),
    -           Nan::New(FSEvents::Stop));
    -  exports->Set(Nan::New("Constants").ToLocalChecked(), Constants());
    -  exports->Set(Nan::New("FSEvents").ToLocalChecked(),
    -               tpl->GetFunction());
    -}
    -
    -NODE_MODULE(fse, FSEvents::Initialize)
    diff --git a/node_modules/fsevents/fsevents.js b/node_modules/fsevents/fsevents.js
    deleted file mode 100644
    index 32f4ad1..0000000
    --- a/node_modules/fsevents/fsevents.js
    +++ /dev/null
    @@ -1,108 +0,0 @@
    -/*
    - ** © 2014 by Philipp Dunkel 
    - ** Licensed under MIT License.
    - */
    -
    -/* jshint node:true */
    -'use strict';
    -
    -if (process.platform !== 'darwin')
    -  throw new Error('Module \'fsevents\' is not compatible with platform \'' + process.platform + '\'');
    -
    -var path = require('path');
    -var binary = require('node-pre-gyp');
    -var Native = require(binary.find(path.join(__dirname, 'package.json')));
    -
    -var EventEmitter = require('events').EventEmitter;
    -var fs = require('fs');
    -var inherits = require('util').inherits;
    -
    -function FSEvents(path, handler) {
    -  EventEmitter.call(this);
    -
    -  Object.defineProperty(this, '_impl', {
    -    value: new Native.FSEvents(String(path || ''), handler),
    -    enumerable: false,
    -    writable: false
    -  });
    -}
    -
    -inherits(FSEvents, EventEmitter);
    -proxies(FSEvents, Native.FSEvents);
    -
    -module.exports = watch;
    -module.exports.getInfo = getInfo;
    -module.exports.FSEvents = Native.FSEvents;
    -module.exports.Constants = Native.Constants;
    -
    -var defer = global.setImmediate || process.nextTick;
    -
    -function watch(path) {
    -  var fse = new FSEvents(String(path || ''), handler);
    -  EventEmitter.call(fse);
    -  return fse;
    -
    -  function handler(path, flags, id) {
    -    defer(function() {
    -      fse.emit('fsevent', path, flags, id);
    -      var info = getInfo(path, flags);
    -      info.id = id;
    -      if (info.event === 'moved') {
    -        fs.stat(info.path, function(err, stat) {
    -          info.event = (err || !stat) ? 'moved-out' : 'moved-in';
    -          fse.emit('change', path, info);
    -          fse.emit(info.event, path, info);
    -        });
    -      } else {
    -        fse.emit('change', path, info);
    -        fse.emit(info.event, path, info);
    -      }
    -    });
    -  }
    -}
    -
    -function proxies(ctor, target) {
    -  Object.keys(target.prototype).filter(function(key) {
    -    return typeof target.prototype[key] === 'function';
    -  }).forEach(function(key) {
    -    ctor.prototype[key] = function() {
    -      this._impl[key].apply(this._impl, arguments);
    -      return this;
    -    }
    -  });
    -}
    -
    -function getFileType(flags) {
    -  if (Native.Constants.kFSEventStreamEventFlagItemIsFile & flags) return 'file';
    -  if (Native.Constants.kFSEventStreamEventFlagItemIsDir & flags) return 'directory';
    -  if (Native.Constants.kFSEventStreamEventFlagItemIsSymlink & flags) return 'symlink';
    -}
    -
    -function getEventType(flags) {
    -  if (Native.Constants.kFSEventStreamEventFlagItemRemoved & flags) return 'deleted';
    -  if (Native.Constants.kFSEventStreamEventFlagItemRenamed & flags) return 'moved';
    -  if (Native.Constants.kFSEventStreamEventFlagItemCreated & flags) return 'created';
    -  if (Native.Constants.kFSEventStreamEventFlagItemModified & flags) return 'modified';
    -  if (Native.Constants.kFSEventStreamEventFlagRootChanged & flags) return 'root-changed';
    -
    -  return 'unknown';
    -}
    -
    -function getFileChanges(flags) {
    -  return {
    -    inode: !! (Native.Constants.kFSEventStreamEventFlagItemInodeMetaMod & flags),
    -    finder: !! (Native.Constants.kFSEventStreamEventFlagItemFinderInfoMod & flags),
    -    access: !! (Native.Constants.kFSEventStreamEventFlagItemChangeOwner & flags),
    -    xattrs: !! (Native.Constants.kFSEventStreamEventFlagItemXattrMod & flags)
    -  };
    -}
    -
    -function getInfo(path, flags) {
    -  return {
    -    path: path,
    -    event: getEventType(flags),
    -    type: getFileType(flags),
    -    changes: getFileChanges(flags),
    -    flags: flags
    -  };
    -}
    diff --git a/node_modules/fsevents/install.js b/node_modules/fsevents/install.js
    deleted file mode 100644
    index ece4e93..0000000
    --- a/node_modules/fsevents/install.js
    +++ /dev/null
    @@ -1,7 +0,0 @@
    -if (process.platform === 'darwin') {
    -  var spawn = require('child_process').spawn;
    -  var args = ['install', '--fallback-to-build'];
    -  var options = {stdio: 'inherit'};
    -  var child = spawn('node-pre-gyp', args, options);
    -  child.on('close', process.exit);
    -}
    \ No newline at end of file
    diff --git a/node_modules/fsevents/lib/binding/Release/node-v11-darwin-x64/fse.node b/node_modules/fsevents/lib/binding/Release/node-v11-darwin-x64/fse.node
    deleted file mode 100755
    index 1d4e2d1..0000000
    Binary files a/node_modules/fsevents/lib/binding/Release/node-v11-darwin-x64/fse.node and /dev/null differ
    diff --git a/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node b/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node
    deleted file mode 100755
    index ca473e6..0000000
    Binary files a/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node and /dev/null differ
    diff --git a/node_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node b/node_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node
    deleted file mode 100755
    index 393572a..0000000
    Binary files a/node_modules/fsevents/lib/binding/Release/node-v47-darwin-x64/fse.node and /dev/null differ
    diff --git a/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node b/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node
    deleted file mode 100755
    index 2303541..0000000
    Binary files a/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node and /dev/null differ
    diff --git a/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node b/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node
    deleted file mode 100755
    index 0a9f78c..0000000
    Binary files a/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node and /dev/null differ
    diff --git a/node_modules/fsevents/node_modules/.bin/har-validator b/node_modules/fsevents/node_modules/.bin/har-validator
    deleted file mode 120000
    index c6ec163..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/.bin/mkdirp b/node_modules/fsevents/node_modules/.bin/mkdirp
    deleted file mode 120000
    index 017896c..0000000
    --- a/node_modules/fsevents/node_modules/.bin/mkdirp
    +++ /dev/null
    @@ -1 +0,0 @@
    -../mkdirp/bin/cmd.js
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/.bin/node-pre-gyp b/node_modules/fsevents/node_modules/.bin/node-pre-gyp
    deleted file mode 120000
    index 47a90a5..0000000
    --- a/node_modules/fsevents/node_modules/.bin/node-pre-gyp
    +++ /dev/null
    @@ -1 +0,0 @@
    -../node-pre-gyp/bin/node-pre-gyp
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/.bin/nopt b/node_modules/fsevents/node_modules/.bin/nopt
    deleted file mode 120000
    index 6b6566e..0000000
    --- a/node_modules/fsevents/node_modules/.bin/nopt
    +++ /dev/null
    @@ -1 +0,0 @@
    -../nopt/bin/nopt.js
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/.bin/rc b/node_modules/fsevents/node_modules/.bin/rc
    deleted file mode 120000
    index a3f6fc7..0000000
    --- a/node_modules/fsevents/node_modules/.bin/rc
    +++ /dev/null
    @@ -1 +0,0 @@
    -../rc/index.js
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/.bin/rimraf b/node_modules/fsevents/node_modules/.bin/rimraf
    deleted file mode 120000
    index 4cd49a4..0000000
    --- a/node_modules/fsevents/node_modules/.bin/rimraf
    +++ /dev/null
    @@ -1 +0,0 @@
    -../rimraf/bin.js
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/.bin/semver b/node_modules/fsevents/node_modules/.bin/semver
    deleted file mode 120000
    index 317eb29..0000000
    --- a/node_modules/fsevents/node_modules/.bin/semver
    +++ /dev/null
    @@ -1 +0,0 @@
    -../semver/bin/semver
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/.bin/sshpk-conv b/node_modules/fsevents/node_modules/.bin/sshpk-conv
    deleted file mode 120000
    index a2a295c..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/.bin/sshpk-sign b/node_modules/fsevents/node_modules/.bin/sshpk-sign
    deleted file mode 120000
    index 766b9b3..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/.bin/sshpk-verify b/node_modules/fsevents/node_modules/.bin/sshpk-verify
    deleted file mode 120000
    index bfd7e3a..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/.bin/uuid b/node_modules/fsevents/node_modules/.bin/uuid
    deleted file mode 120000
    index b3e45bc..0000000
    --- a/node_modules/fsevents/node_modules/.bin/uuid
    +++ /dev/null
    @@ -1 +0,0 @@
    -../uuid/bin/uuid
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/abbrev/LICENSE b/node_modules/fsevents/node_modules/abbrev/LICENSE
    deleted file mode 100644
    index 19129e3..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/abbrev/README.md b/node_modules/fsevents/node_modules/abbrev/README.md
    deleted file mode 100644
    index 99746fe..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/abbrev/abbrev.js b/node_modules/fsevents/node_modules/abbrev/abbrev.js
    deleted file mode 100644
    index 7b1dc5d..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/abbrev/package.json b/node_modules/fsevents/node_modules/abbrev/package.json
    deleted file mode 100644
    index 15140d8..0000000
    --- a/node_modules/fsevents/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/eshanker/Code/fsevents/node_modules/nopt"
    -    ]
    -  ],
    -  "_from": "abbrev@>=1.0.0 <2.0.0",
    -  "_id": "abbrev@1.1.0",
    -  "_inCache": true,
    -  "_location": "/fsevents/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": [
    -    "/fsevents/nopt"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz",
    -  "_shasum": "d0554c2256636e2f56e7c2e5ad183f859428d81f",
    -  "_shrinkwrap": null,
    -  "_spec": "abbrev@1",
    -  "_where": "/Users/eshanker/Code/fsevents/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/fsevents/node_modules/ansi-regex/index.js b/node_modules/fsevents/node_modules/ansi-regex/index.js
    deleted file mode 100644
    index b9574ed..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/ansi-regex/license b/node_modules/fsevents/node_modules/ansi-regex/license
    deleted file mode 100644
    index 654d0bf..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/ansi-regex/package.json b/node_modules/fsevents/node_modules/ansi-regex/package.json
    deleted file mode 100644
    index adb2df1..0000000
    --- a/node_modules/fsevents/node_modules/ansi-regex/package.json
    +++ /dev/null
    @@ -1,132 +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/eshanker/Code/fsevents/node_modules/strip-ansi"
    -    ]
    -  ],
    -  "_from": "ansi-regex@>=2.0.0 <3.0.0",
    -  "_id": "ansi-regex@2.1.1",
    -  "_inCache": true,
    -  "_location": "/fsevents/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": [
    -    "/fsevents/has-ansi",
    -    "/fsevents/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/eshanker/Code/fsevents/node_modules/strip-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/fsevents/node_modules/ansi-regex/readme.md b/node_modules/fsevents/node_modules/ansi-regex/readme.md
    deleted file mode 100644
    index 6a928ed..0000000
    --- a/node_modules/fsevents/node_modules/ansi-regex/readme.md
    +++ /dev/null
    @@ -1,39 +0,0 @@
    -# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](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/fsevents/node_modules/ansi-styles/index.js b/node_modules/fsevents/node_modules/ansi-styles/index.js
    deleted file mode 100644
    index 7894527..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/ansi-styles/license b/node_modules/fsevents/node_modules/ansi-styles/license
    deleted file mode 100644
    index 654d0bf..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/ansi-styles/package.json b/node_modules/fsevents/node_modules/ansi-styles/package.json
    deleted file mode 100644
    index 646cf59..0000000
    --- a/node_modules/fsevents/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/eshanker/Code/fsevents/node_modules/chalk"
    -    ]
    -  ],
    -  "_from": "ansi-styles@>=2.2.1 <3.0.0",
    -  "_id": "ansi-styles@2.2.1",
    -  "_inCache": true,
    -  "_location": "/fsevents/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": [
    -    "/fsevents/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/eshanker/Code/fsevents/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/fsevents/node_modules/ansi-styles/readme.md b/node_modules/fsevents/node_modules/ansi-styles/readme.md
    deleted file mode 100644
    index 3f933f6..0000000
    --- a/node_modules/fsevents/node_modules/ansi-styles/readme.md
    +++ /dev/null
    @@ -1,86 +0,0 @@
    -# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](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.
    -
    -![](screenshot.png)
    -
    -
    -## 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/fsevents/node_modules/aproba/LICENSE b/node_modules/fsevents/node_modules/aproba/LICENSE
    deleted file mode 100644
    index f4be44d..0000000
    --- a/node_modules/fsevents/node_modules/aproba/LICENSE
    +++ /dev/null
    @@ -1,14 +0,0 @@
    -Copyright (c) 2015, Rebecca Turner 
    -
    -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/fsevents/node_modules/aproba/README.md b/node_modules/fsevents/node_modules/aproba/README.md
    deleted file mode 100644
    index a9d3822..0000000
    --- a/node_modules/fsevents/node_modules/aproba/README.md
    +++ /dev/null
    @@ -1,89 +0,0 @@
    -aproba
    -======
    -
    -A ridiculously light-weight function argument validator
    -
    -```
    -var validate = require("aproba")
    -
    -function myfunc(a, b, c) {
    -  // `a` must be a string, `b` a number, `c` a function
    -  validate('SNF', arguments) // [a,b,c] is also valid
    -}
    -
    -myfunc('test', 23, function () {}) // ok
    -myfunc(123, 23, function () {}) // type error
    -myfunc('test', 23) // missing arg error
    -myfunc('test', 23, function () {}, true) // too many args error
    -
    -```
    -
    -Valid types are:
    -
    -type | description
    ----- | -----------
    -*    | matches any type
    -A    | Array.isArray OR an arguments object
    -S    | typeof == string
    -N    | typeof == number
    -F    | typeof == function
    -O    | typeof == object and not type A and not type E
    -B    | typeof == boolean
    -E    | instanceof Error OR null **(special: see below)**
    -Z    | == null
    -
    -Validation failures throw one of three exception types, distinguished by a
    -`code` property of `EMISSINGARG`, `EINVALIDTYPE` or `ETOOMANYARGS`.
    -
    -If you pass in an invalid type then it will throw with a code of
    -`EUNKNOWNTYPE`.
    -
    -If an **error** argument is found and is not null then the remaining
    -arguments are optional.  That is, if you say `ESO` then that's like using a
    -non-magical `E` in: `E|ESO|ZSO`.
    -
    -### But I have optional arguments?!
    -
    -You can provide more than one signature by separating them with pipes `|`.
    -If any signature matches the arguments then they'll be considered valid.
    -
    -So for example, say you wanted to write a signature for
    -`fs.createWriteStream`.  The docs for it describe it thusly:
    -
    -```
    -fs.createWriteStream(path[, options])
    -```
    -
    -This would be a signature of `SO|S`.  That is, a string and and object, or
    -just a string.
    -
    -Now, if you read the full `fs` docs, you'll see that actually path can ALSO
    -be a buffer.  And options can be a string, that is:
    -```
    -path  | 
    -options  | 
    -```
    -
    -To reproduce this you have to fully enumerate all of the possible
    -combinations and that implies a signature of `SO|SS|OO|OS|S|O`.  The
    -awkwardness is a feature: It reminds you of the complexity you're adding to
    -your API when you do this sort of thing.
    -
    -
    -### Why this exists
    -
    -I wanted a very simple argument validator. It needed to do two things:
    -
    -1. Be more concise and easier to use than assertions
    -
    -2. Not encourage an infinite bikeshed of DSLs
    -
    -This is why types are specified by a single character and there's no such
    -thing as an optional argument. 
    -
    -This is not intended to validate user data. This is specifically about
    -asserting the interface of your functions.
    -
    -If you need greater validation, I encourage you to write them by hand or
    -look elsewhere.
    -
    diff --git a/node_modules/fsevents/node_modules/aproba/index.js b/node_modules/fsevents/node_modules/aproba/index.js
    deleted file mode 100644
    index bc6ed1f..0000000
    --- a/node_modules/fsevents/node_modules/aproba/index.js
    +++ /dev/null
    @@ -1,103 +0,0 @@
    -'use strict'
    -
    -function isArguments (thingy) {
    -  return thingy != null && typeof thingy === 'object' && thingy.hasOwnProperty('callee')
    -}
    -
    -var types = {
    -  '*': {label: 'any', check: function () { return true }},
    -  A: {label: 'array', check: function (thingy) { return Array.isArray(thingy) || isArguments(thingy) }},
    -  S: {label: 'string', check: function (thingy) { return typeof thingy === 'string' }},
    -  N: {label: 'number', check: function (thingy) { return typeof thingy === 'number' }},
    -  F: {label: 'function', check: function (thingy) { return typeof thingy === 'function' }},
    -  O: {label: 'object', check: function (thingy) { return typeof thingy === 'object' && thingy != null && !types.A.check(thingy) && !types.E.check(thingy) }},
    -  B: {label: 'boolean', check: function (thingy) { return typeof thingy === 'boolean' }},
    -  E: {label: 'error', check: function (thingy) { return thingy instanceof Error }},
    -  Z: {label: 'null', check: function (thingy) { return thingy == null }}
    -}
    -
    -var validate = module.exports = function (rawSchemas, args) {
    -  if (arguments.length !== 2) throw wrongNumberOfArgs(['SA'], arguments.length)
    -  if (!rawSchemas) throw missingRequiredArg(0, 'rawSchemas')
    -  if (!args) throw missingRequiredArg(1, 'args')
    -  if (!types.S.check(rawSchemas)) throw invalidType(0, ['string'], rawSchemas)
    -  if (!types.A.check(args)) throw invalidType(1, ['array'], args)
    -  var schemas = rawSchemas.split('|')
    -  var arity = {}
    -  function addSchema (schema) {
    -    var group = arity[schema.length] = arity[schema.length] || []
    -    if (group.indexOf(schema) === -1) group.push(schema)
    -  }
    -  schemas.forEach(function (schema) {
    -    for (var ii = 0; ii < schema.length; ++ii) {
    -      var type = schema[ii]
    -      if (!types[type]) throw unknownType(ii, type)
    -    }
    -    if (/E.*E/.test(schema)) throw moreThanOneError(schema)
    -    addSchema(schema)
    -    if (/E/.test(schema)) {
    -      addSchema(schema.replace(/E.*$/, 'E'))
    -      addSchema(schema.replace(/E/, 'Z'))
    -      if (schema.length === 1) addSchema('')
    -    }
    -  })
    -  var matching = arity[args.length]
    -  if (!matching) {
    -    throw wrongNumberOfArgs(Object.keys(arity), args.length)
    -  }
    -  for (var ii = 0; ii < args.length; ++ii) {
    -    var newMatching = matching.filter(function (schema) {
    -      var type = schema[ii]
    -      var typeCheck = types[type].check
    -      return typeCheck(args[ii])
    -    })
    -    if (!newMatching.length) {
    -      var labels = matching.map(function (schema) {
    -        return types[schema[ii]].label
    -      }).filter(function (schema) { return schema != null })
    -      throw invalidType(ii, labels, args[ii])
    -    }
    -    matching = newMatching
    -  }
    -}
    -
    -function missingRequiredArg (num) {
    -  return newException('EMISSINGARG', 'Missing required argument #' + (num + 1))
    -}
    -
    -function unknownType (num, type) {
    -  return newException('EUNKNOWNTYPE', 'Unknown type ' + type + ' in argument #' + (num + 1))
    -}
    -
    -function invalidType (num, expectedTypes, value) {
    -  var valueType
    -  Object.keys(types).forEach(function (typeCode) {
    -    if (types[typeCode].check(value)) valueType = types[typeCode].label
    -  })
    -  return newException('EINVALIDTYPE', 'Argument #' + (num + 1) + ': Expected ' +
    -    englishList(expectedTypes) + ' but got ' + valueType)
    -}
    -
    -function englishList (list) {
    -  return list.join(', ').replace(/, ([^,]+)$/, ' or $1')
    -}
    -
    -function wrongNumberOfArgs (expected, got) {
    -  var english = englishList(expected)
    -  var args = expected.every(function (ex) { return ex.length === 1 })
    -    ? 'argument'
    -    : 'arguments'
    -  return newException('EWRONGARGCOUNT', 'Expected ' + english + ' ' + args + ' but got ' + got)
    -}
    -
    -function moreThanOneError (schema) {
    -  return newException('ETOOMANYERRORTYPES',
    -    'Only one error type per argument signature is allowed, more than one found in "' + schema + '"')
    -}
    -
    -function newException (code, msg) {
    -  var e = new Error(msg)
    -  e.code = code
    -  Error.captureStackTrace(e, validate)
    -  return e
    -}
    diff --git a/node_modules/fsevents/node_modules/aproba/package.json b/node_modules/fsevents/node_modules/aproba/package.json
    deleted file mode 100644
    index 81bdb78..0000000
    --- a/node_modules/fsevents/node_modules/aproba/package.json
    +++ /dev/null
    @@ -1,96 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "aproba@^1.0.3",
    -        "scope": null,
    -        "escapedName": "aproba",
    -        "name": "aproba",
    -        "rawSpec": "^1.0.3",
    -        "spec": ">=1.0.3 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/gauge"
    -    ]
    -  ],
    -  "_from": "aproba@>=1.0.3 <2.0.0",
    -  "_id": "aproba@1.1.1",
    -  "_inCache": true,
    -  "_location": "/fsevents/aproba",
    -  "_nodeVersion": "7.5.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-18-east.internal.npmjs.com",
    -    "tmp": "tmp/aproba-1.1.1.tgz_1486593129508_0.5718816472217441"
    -  },
    -  "_npmUser": {
    -    "name": "iarna",
    -    "email": "me@re-becca.org"
    -  },
    -  "_npmVersion": "4.2.0",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "aproba@^1.0.3",
    -    "scope": null,
    -    "escapedName": "aproba",
    -    "name": "aproba",
    -    "rawSpec": "^1.0.3",
    -    "spec": ">=1.0.3 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/gauge"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/aproba/-/aproba-1.1.1.tgz",
    -  "_shasum": "95d3600f07710aa0e9298c726ad5ecf2eacbabab",
    -  "_shrinkwrap": null,
    -  "_spec": "aproba@^1.0.3",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/gauge",
    -  "author": {
    -    "name": "Rebecca Turner",
    -    "email": "me@re-becca.org"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/iarna/aproba/issues"
    -  },
    -  "dependencies": {},
    -  "description": "A rediculously light-weight argument validator",
    -  "devDependencies": {
    -    "standard": "^8.6.0",
    -    "tap": "^10.0.2"
    -  },
    -  "directories": {
    -    "test": "test"
    -  },
    -  "dist": {
    -    "shasum": "95d3600f07710aa0e9298c726ad5ecf2eacbabab",
    -    "tarball": "https://registry.npmjs.org/aproba/-/aproba-1.1.1.tgz"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "e7c76b4b42356092db3cd9e2d9388a0134845eb2",
    -  "homepage": "https://github.com/iarna/aproba",
    -  "keywords": [
    -    "argument",
    -    "validate"
    -  ],
    -  "license": "ISC",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "iarna",
    -      "email": "me@re-becca.org"
    -    }
    -  ],
    -  "name": "aproba",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/iarna/aproba.git"
    -  },
    -  "scripts": {
    -    "test": "standard && tap -j3 test/*.js"
    -  },
    -  "version": "1.1.1"
    -}
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/.npmignore b/node_modules/fsevents/node_modules/are-we-there-yet/.npmignore
    deleted file mode 100644
    index bc81897..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/.npmignore
    +++ /dev/null
    @@ -1,5 +0,0 @@
    -*~
    -.#*
    -node_modules
    -coverage
    -.nyc_output
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/CHANGES.md b/node_modules/fsevents/node_modules/are-we-there-yet/CHANGES.md
    deleted file mode 100644
    index e990b86..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/CHANGES.md
    +++ /dev/null
    @@ -1,19 +0,0 @@
    -Hi, figured we could actually use a changelog now:
    -
    -## 1.1.1 2016-01-29
    -
    -* Fix a typo in stream completion tracker
    -
    -## 1.1.0 2016-01-29
    -
    -* Rewrote completion percent computation to be low impact– no more walking a
    -  tree of completion groups every time we need this info.  Previously, with
    -  medium sized tree of completion groups, even a relatively modest number of
    -  calls to the top level `completed()` method would result in absurd numbers
    -  of calls overall as it walked down the tree. We now, instead, keep track as
    -  we bubble up changes, so the computation is limited to when data changes and
    -  to the depth of that one branch, instead of _every_ node. (Plus, we were already
    -  incurring _this_ cost, since we already bubbled out changes.)
    -* Moved different tracker types out to their own files.
    -* Made tests test for TOO MANY events too.
    -* Standarized the source code formatting
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/LICENSE b/node_modules/fsevents/node_modules/are-we-there-yet/LICENSE
    deleted file mode 100644
    index af45880..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/LICENSE
    +++ /dev/null
    @@ -1,5 +0,0 @@
    -Copyright (c) 2015, Rebecca Turner
    -
    -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/fsevents/node_modules/are-we-there-yet/README.md b/node_modules/fsevents/node_modules/are-we-there-yet/README.md
    deleted file mode 100644
    index c41d392..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/README.md
    +++ /dev/null
    @@ -1,194 +0,0 @@
    -are-we-there-yet
    -----------------
    -
    -Track complex hiearchies of asynchronous task completion statuses.  This is
    -intended to give you a way of recording and reporting the progress of the big
    -recursive fan-out and gather type workflows that are so common in async.
    -
    -What you do with this completion data is up to you, but the most common use case is to
    -feed it to one of the many progress bar modules.
    -
    -Most progress bar modules include a rudamentary version of this, but my
    -needs were more complex.
    -
    -Usage
    -=====
    -
    -```javascript
    -var TrackerGroup = require("are-we-there-yet").TrackerGroup
    -
    -var top = new TrackerGroup("program")
    -
    -var single = top.newItem("one thing", 100)
    -single.completeWork(20)
    -
    -console.log(top.completed()) // 0.2
    -
    -fs.stat("file", function(er, stat) {
    -  if (er) throw er  
    -  var stream = top.newStream("file", stat.size)
    -  console.log(top.completed()) // now 0.1 as single is 50% of the job and is 20% complete
    -                              // and 50% * 20% == 10%
    -  fs.createReadStream("file").pipe(stream).on("data", function (chunk) {
    -    // do stuff with chunk
    -  })
    -  top.on("change", function (name) {
    -    // called each time a chunk is read from "file"
    -    // top.completed() will start at 0.1 and fill up to 0.6 as the file is read
    -  })
    -})
    -```
    -
    -Shared Methods
    -==============
    -
    -All tracker objects described below have the following methods, they, along
    -with the event comprise the interface for consumers of tracker objects.
    -
    -* var completed = tracker.completed()
    -
    -Returns the ratio of completed work to work to be done. Range of 0 to 1.
    -
    -* tracker.finish()
    -
    -Marks the tracker as completed. With a TrackerGroup this marks all of its
    -components as completed.
    -
    -Marks all of the components of this tracker as finished, which in turn means
    -that `tracker.completed()` for this will now be 1.
    -
    -This will result in one or more `change` events being emitted.
    -
    -Events
    -======
    -
    -All tracker objects emit `change` events with the following arguments:
    -
    -```
    -function (name, completed, tracker)
    -```
    -
    -`name` is the name of the tracker that originally emitted the event,
    -or if it didn't have one, the first containing tracker group that had one.
    -
    -`completed` is the percent complete (as returned by `tracker.completed()` method).
    -
    -`tracker` is the tracker object that you are listening for events on.
    -
    -TrackerGroup
    -============
    -
    -* var tracker = new TrackerGroup(**name**)
    -
    -  * **name** *(optional)* - The name of this tracker group, used in change
    -    notifications if the component updating didn't have a name. Defaults to undefined.
    -
    -Creates a new empty tracker aggregation group. These are trackers whose
    -completion status is determined by the completion status of other trackers.
    -
    -* tracker.addUnit(**otherTracker**, **weight**)
    -
    -  * **otherTracker** - Any of the other are-we-there-yet tracker objects
    -  * **weight** *(optional)* - The weight to give the tracker, defaults to 1.
    -
    -Adds the **otherTracker** to this aggregation group. The weight determines
    -how long you expect this tracker to take to complete in proportion to other
    -units.  So for instance, if you add one tracker with a weight of 1 and
    -another with a weight of 2, you're saying the second will take twice as long
    -to complete as the first.  As such, the first will account for 33% of the
    -completion of this tracker and the second will account for the other 67%.
    -
    -Returns **otherTracker**.
    -
    -* var subGroup = tracker.newGroup(**name**, **weight**)
    -
    -The above is exactly equivalent to:
    -
    -```javascript
    -  var subGroup = tracker.addUnit(new TrackerGroup(name), weight)
    -```
    -
    -* var subItem = tracker.newItem(**name**, **todo**, **weight**)
    -
    -The above is exactly equivalent to:
    -
    -```javascript
    -  var subItem = tracker.addUnit(new Tracker(name, todo), weight)
    -```
    -
    -* var subStream = tracker.newStream(**name**, **todo**, **weight**)
    -
    -The above is exactly equivalent to:
    -
    -```javascript
    -  var subStream = tracker.addUnit(new TrackerStream(name, todo), weight)
    -```
    -
    -* console.log( tracker.debug() )
    -
    -Returns a tree showing the completion of this tracker group and all of its
    -children, including recursively entering all of the children.
    -
    -Tracker
    -=======
    -
    -* var tracker = new Tracker(**name**, **todo**)
    -
    -  * **name** *(optional)* The name of this counter to report in change
    -    events.  Defaults to undefined.
    -  * **todo** *(optional)* The amount of work todo (a number). Defaults to 0.
    -
    -Ordinarily these are constructed as a part of a tracker group (via
    -`newItem`).
    -
    -* var completed = tracker.completed()
    -
    -Returns the ratio of completed work to work to be done. Range of 0 to 1. If
    -total work to be done is 0 then it will return 0.
    -
    -* tracker.addWork(**todo**)
    -
    -  * **todo** A number to add to the amount of work to be done.
    -
    -Increases the amount of work to be done, thus decreasing the completion
    -percentage.  Triggers a `change` event.
    -
    -* tracker.completeWork(**completed**)
    -
    -  * **completed** A number to add to the work complete
    -
    -Increase the amount of work complete, thus increasing the completion percentage.
    -Will never increase the work completed past the amount of work todo. That is,
    -percentages > 100% are not allowed. Triggers a `change` event.
    -
    -* tracker.finish()
    -
    -Marks this tracker as finished, tracker.completed() will now be 1. Triggers
    -a `change` event.
    -
    -TrackerStream
    -=============
    -
    -* var tracker = new TrackerStream(**name**, **size**, **options**)
    -
    -  * **name** *(optional)* The name of this counter to report in change
    -    events.  Defaults to undefined.
    -  * **size** *(optional)* The number of bytes being sent through this stream.
    -  * **options** *(optional)* A hash of stream options
    -
    -The tracker stream object is a pass through stream that updates an internal
    -tracker object each time a block passes through.  It's intended to track
    -downloads, file extraction and other related activities. You use it by piping
    -your data source into it and then using it as your data source.
    -
    -If your data has a length attribute then that's used as the amount of work
    -completed when the chunk is passed through.  If it does not (eg, object
    -streams) then each chunk counts as completing 1 unit of work, so your size
    -should be the total number of objects being streamed.
    -
    -* tracker.addWork(**todo**)
    -
    -  * **todo** Increase the expected overall size by **todo** bytes.
    -
    -Increases the amount of work to be done, thus decreasing the completion
    -percentage.  Triggers a `change` event.
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/index.js b/node_modules/fsevents/node_modules/are-we-there-yet/index.js
    deleted file mode 100644
    index 57d8743..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/index.js
    +++ /dev/null
    @@ -1,4 +0,0 @@
    -'use strict'
    -exports.TrackerGroup = require('./tracker-group.js')
    -exports.Tracker = require('./tracker.js')
    -exports.TrackerStream = require('./tracker-stream.js')
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/package.json b/node_modules/fsevents/node_modules/are-we-there-yet/package.json
    deleted file mode 100644
    index 8128479..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/package.json
    +++ /dev/null
    @@ -1,90 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "are-we-there-yet@~1.1.2",
    -        "scope": null,
    -        "escapedName": "are-we-there-yet",
    -        "name": "are-we-there-yet",
    -        "rawSpec": "~1.1.2",
    -        "spec": ">=1.1.2 <1.2.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/npmlog"
    -    ]
    -  ],
    -  "_from": "are-we-there-yet@>=1.1.2 <1.2.0",
    -  "_id": "are-we-there-yet@1.1.2",
    -  "_inCache": true,
    -  "_location": "/fsevents/are-we-there-yet",
    -  "_nodeVersion": "4.2.2",
    -  "_npmOperationalInternal": {
    -    "host": "packages-13-west.internal.npmjs.com",
    -    "tmp": "tmp/are-we-there-yet-1.1.2.tgz_1458084397358_0.15847722673788667"
    -  },
    -  "_npmUser": {
    -    "name": "iarna",
    -    "email": "me@re-becca.org"
    -  },
    -  "_npmVersion": "3.8.1",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "are-we-there-yet@~1.1.2",
    -    "scope": null,
    -    "escapedName": "are-we-there-yet",
    -    "name": "are-we-there-yet",
    -    "rawSpec": "~1.1.2",
    -    "spec": ">=1.1.2 <1.2.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/npmlog"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz",
    -  "_shasum": "80e470e95a084794fe1899262c5667c6e88de1b3",
    -  "_shrinkwrap": null,
    -  "_spec": "are-we-there-yet@~1.1.2",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/npmlog",
    -  "author": {
    -    "name": "Rebecca Turner",
    -    "url": "http://re-becca.org"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/iarna/are-we-there-yet/issues"
    -  },
    -  "dependencies": {
    -    "delegates": "^1.0.0",
    -    "readable-stream": "^2.0.0 || ^1.1.13"
    -  },
    -  "description": "Keep track of the overall completion of many dispirate processes",
    -  "devDependencies": {
    -    "standard": "^6.0.8",
    -    "tap": "^5.7.0"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "80e470e95a084794fe1899262c5667c6e88de1b3",
    -    "tarball": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz"
    -  },
    -  "gitHead": "dd5706e2204cb681e78031d0ffe156ed4cc75823",
    -  "homepage": "https://github.com/iarna/are-we-there-yet",
    -  "license": "ISC",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "iarna",
    -      "email": "me@re-becca.org"
    -    }
    -  ],
    -  "name": "are-we-there-yet",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/iarna/are-we-there-yet.git"
    -  },
    -  "scripts": {
    -    "test": "standard && tap test/*.js"
    -  },
    -  "version": "1.1.2"
    -}
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/test/lib/test-event.js b/node_modules/fsevents/node_modules/are-we-there-yet/test/lib/test-event.js
    deleted file mode 100644
    index 2aa7c05..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/test/lib/test-event.js
    +++ /dev/null
    @@ -1,29 +0,0 @@
    -'use strict'
    -var util = require('util')
    -
    -module.exports = function (obj, event, next) {
    -  var timeout = setTimeout(gotTimeout, 10)
    -  obj.once(event, gotResult)
    -
    -  function gotTimeout () {
    -    obj.removeListener(event, gotResult)
    -    next(new Error('Timeout listening for ' + event))
    -  }
    -  var result = []
    -  function gotResult () {
    -    result = Array.prototype.slice.call(arguments)
    -    clearTimeout(timeout)
    -    timeout = setTimeout(gotNoMoreResults, 10)
    -    obj.once(event, gotTooManyResults)
    -  }
    -  function gotNoMoreResults () {
    -    obj.removeListener(event, gotTooManyResults)
    -    var args = [null].concat(result)
    -    next.apply(null, args)
    -  }
    -  function gotTooManyResults () {
    -    var secondResult = Array.prototype.slice.call(arguments)
    -    clearTimeout(timeout)
    -    next(new Error('Got too many results, first ' + util.inspect(result) + ' and then ' + util.inspect(secondResult)))
    -  }
    -}
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/test/tracker.js b/node_modules/fsevents/node_modules/are-we-there-yet/test/tracker.js
    deleted file mode 100644
    index 374c773..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/test/tracker.js
    +++ /dev/null
    @@ -1,57 +0,0 @@
    -'use strict'
    -var test = require('tap').test
    -var Tracker = require('../index.js').Tracker
    -
    -var testEvent = require('./lib/test-event.js')
    -
    -var name = 'test'
    -
    -test('initialization', function (t) {
    -  var simple = new Tracker(name)
    -
    -  t.is(simple.completed(), 0, 'Nothing todo is 0 completion')
    -  t.done()
    -})
    -
    -var track
    -var todo = 100
    -test('completion', function (t) {
    -  track = new Tracker(name, todo)
    -  t.is(track.completed(), 0, 'Nothing done is 0 completion')
    -
    -  testEvent(track, 'change', afterCompleteWork)
    -
    -  track.completeWork(todo)
    -  t.is(track.completed(), 1, 'completeWork: 100% completed')
    -
    -  function afterCompleteWork (er, onChangeName) {
    -    t.is(er, null, 'completeWork: on change event fired')
    -    t.is(onChangeName, name, 'completeWork: on change emits the correct name')
    -    t.done()
    -  }
    -})
    -
    -test('add more work', function (t) {
    -  testEvent(track, 'change', afterAddWork)
    -  track.addWork(todo)
    -  t.is(track.completed(), 0.5, 'addWork: 50% completed')
    -  function afterAddWork (er, onChangeName) {
    -    t.is(er, null, 'addWork: on change event fired')
    -    t.is(onChangeName, name, 'addWork: on change emits the correct name')
    -    t.done()
    -  }
    -})
    -
    -test('complete more work', function (t) {
    -  track.completeWork(200)
    -  t.is(track.completed(), 1, 'completeWork: Over completion is still only 100% complete')
    -  t.done()
    -})
    -
    -test('finish is always 100%', function (t) {
    -  var finishtest = new Tracker(name, todo)
    -  finishtest.completeWork(50)
    -  finishtest.finish()
    -  t.is(finishtest.completed(), 1, 'finish: Explicitly finishing moves to 100%')
    -  t.done()
    -})
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/test/trackergroup.js b/node_modules/fsevents/node_modules/are-we-there-yet/test/trackergroup.js
    deleted file mode 100644
    index 799a767..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/test/trackergroup.js
    +++ /dev/null
    @@ -1,96 +0,0 @@
    -'use strict'
    -var test = require('tap').test
    -var TrackerGroup = require('../index.js').TrackerGroup
    -var testEvent = require('./lib/test-event.js')
    -
    -test('TrackerGroup', function (t) {
    -  var name = 'test'
    -
    -  var track = new TrackerGroup(name)
    -  t.is(track.completed(), 0, 'Nothing todo is 0 completion')
    -  testEvent(track, 'change', afterFinishEmpty)
    -  track.finish()
    -  var a, b
    -  function afterFinishEmpty (er, onChangeName, completion) {
    -    t.is(er, null, 'finishEmpty: on change event fired')
    -    t.is(onChangeName, name, 'finishEmpty: on change emits the correct name')
    -    t.is(completion, 1, 'finishEmpty: passed through completion was correct')
    -    t.is(track.completed(), 1, 'finishEmpty: Finishing an empty group actually finishes it')
    -
    -    track = new TrackerGroup(name)
    -    a = track.newItem('a', 10, 1)
    -    b = track.newItem('b', 10, 1)
    -    t.is(track.completed(), 0, 'Initially empty')
    -    testEvent(track, 'change', afterCompleteWork)
    -    a.completeWork(5)
    -  }
    -  function afterCompleteWork (er, onChangeName, completion) {
    -    t.is(er, null, 'on change event fired')
    -    t.is(onChangeName, 'a', 'on change emits the correct name')
    -    t.is(completion, 0.25, 'Complete half of one is a quarter overall')
    -    t.is(track.completed(), 0.25, 'Complete half of one is a quarter overall')
    -    testEvent(track, 'change', afterFinishAll)
    -    track.finish()
    -  }
    -  function afterFinishAll (er, onChangeName, completion) {
    -    t.is(er, null, 'finishAll: on change event fired')
    -    t.is(onChangeName, name, 'finishAll: on change emits the correct name')
    -    t.is(completion, 1, 'Finishing everything ')
    -    t.is(track.completed(), 1, 'Finishing everything ')
    -
    -    track = new TrackerGroup(name)
    -    a = track.newItem('a', 10, 2)
    -    b = track.newItem('b', 10, 1)
    -    t.is(track.completed(), 0, 'weighted: Initially empty')
    -    testEvent(track, 'change', afterWeightedCompleteWork)
    -    a.completeWork(5)
    -  }
    -  function afterWeightedCompleteWork (er, onChangeName, completion) {
    -    t.is(er, null, 'weighted: on change event fired')
    -    t.is(onChangeName, 'a', 'weighted: on change emits the correct name')
    -    t.is(Math.floor(completion * 100), 33, 'weighted: Complete half of double weighted')
    -    t.is(Math.floor(track.completed() * 100), 33, 'weighted: Complete half of double weighted')
    -    testEvent(track, 'change', afterWeightedFinishAll)
    -    track.finish()
    -  }
    -  function afterWeightedFinishAll (er, onChangeName, completion) {
    -    t.is(er, null, 'weightedFinishAll: on change event fired')
    -    t.is(onChangeName, name, 'weightedFinishAll: on change emits the correct name')
    -    t.is(completion, 1, 'weightedFinishaAll: Finishing everything ')
    -    t.is(track.completed(), 1, 'weightedFinishaAll: Finishing everything ')
    -
    -    track = new TrackerGroup(name)
    -    a = track.newGroup('a', 10)
    -    b = track.newGroup('b', 10)
    -    var a1 = a.newItem('a.1', 10)
    -    a1.completeWork(5)
    -    t.is(track.completed(), 0.25, 'nested: Initially quarter done')
    -    testEvent(track, 'change', afterNestedComplete)
    -    b.finish()
    -  }
    -  function afterNestedComplete (er, onChangeName, completion) {
    -    t.is(er, null, 'nestedComplete: on change event fired')
    -    t.is(onChangeName, 'b', 'nestedComplete: on change emits the correct name')
    -    t.is(completion, 0.75, 'nestedComplete: Finishing everything ')
    -    t.is(track.completed(), 0.75, 'nestedComplete: Finishing everything ')
    -    t.end()
    -  }
    -})
    -
    -test('cycles', function (t) {
    -  var track = new TrackerGroup('top')
    -  testCycle(track, track)
    -  var layer1 = track.newGroup('layer1')
    -  testCycle(layer1, track)
    -  t.end()
    -
    -  function testCycle (addTo, toAdd) {
    -    try {
    -      addTo.addUnit(toAdd)
    -      t.fail(toAdd.name)
    -    } catch (ex) {
    -      console.log(ex)
    -      t.pass(toAdd.name)
    -    }
    -  }
    -})
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/test/trackerstream.js b/node_modules/fsevents/node_modules/are-we-there-yet/test/trackerstream.js
    deleted file mode 100644
    index 65f04b0..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/test/trackerstream.js
    +++ /dev/null
    @@ -1,51 +0,0 @@
    -'use strict'
    -var test = require('tap').test
    -var util = require('util')
    -var stream = require('readable-stream')
    -var TrackerStream = require('../index.js').TrackerStream
    -var testEvent = require('./lib/test-event.js')
    -
    -var Sink = function () {
    -  stream.Writable.apply(this, arguments)
    -}
    -util.inherits(Sink, stream.Writable)
    -Sink.prototype._write = function (data, encoding, cb) {
    -  cb()
    -}
    -
    -test('TrackerStream', function (t) {
    -  t.plan(9)
    -
    -  var name = 'test'
    -  var track = new TrackerStream(name)
    -
    -  t.is(track.completed(), 0, 'Nothing todo is 0 completion')
    -
    -  var todo = 10
    -  track = new TrackerStream(name, todo)
    -  t.is(track.completed(), 0, 'Nothing done is 0 completion')
    -
    -  track.pipe(new Sink())
    -
    -  testEvent(track, 'change', afterCompleteWork)
    -  track.write('0123456789')
    -  function afterCompleteWork (er, onChangeName) {
    -    t.is(er, null, 'write: on change event fired')
    -    t.is(onChangeName, name, 'write: on change emits the correct name')
    -    t.is(track.completed(), 1, 'write: 100% completed')
    -
    -    testEvent(track, 'change', afterAddWork)
    -    track.addWork(10)
    -  }
    -  function afterAddWork (er, onChangeName) {
    -    t.is(er, null, 'addWork: on change event fired')
    -    t.is(track.completed(), 0.5, 'addWork: 50% completed')
    -
    -    testEvent(track, 'change', afterAllWork)
    -    track.write('ABCDEFGHIJKLMNOPQRST')
    -  }
    -  function afterAllWork (er) {
    -    t.is(er, null, 'allWork: on change event fired')
    -    t.is(track.completed(), 1, 'allWork: 100% completed')
    -  }
    -})
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/tracker-base.js b/node_modules/fsevents/node_modules/are-we-there-yet/tracker-base.js
    deleted file mode 100644
    index 6f43687..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/tracker-base.js
    +++ /dev/null
    @@ -1,11 +0,0 @@
    -'use strict'
    -var EventEmitter = require('events').EventEmitter
    -var util = require('util')
    -
    -var trackerId = 0
    -var TrackerBase = module.exports = function (name) {
    -  EventEmitter.call(this)
    -  this.id = ++trackerId
    -  this.name = name
    -}
    -util.inherits(TrackerBase, EventEmitter)
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/tracker-group.js b/node_modules/fsevents/node_modules/are-we-there-yet/tracker-group.js
    deleted file mode 100644
    index 9759e12..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/tracker-group.js
    +++ /dev/null
    @@ -1,107 +0,0 @@
    -'use strict'
    -var util = require('util')
    -var TrackerBase = require('./tracker-base.js')
    -var Tracker = require('./tracker.js')
    -var TrackerStream = require('./tracker-stream.js')
    -
    -var TrackerGroup = module.exports = function (name) {
    -  TrackerBase.call(this, name)
    -  this.parentGroup = null
    -  this.trackers = []
    -  this.completion = {}
    -  this.weight = {}
    -  this.totalWeight = 0
    -  this.finished = false
    -  this.bubbleChange = bubbleChange(this)
    -}
    -util.inherits(TrackerGroup, TrackerBase)
    -
    -function bubbleChange (trackerGroup) {
    -  return function (name, completed, tracker) {
    -    trackerGroup.completion[tracker.id] = completed
    -    if (trackerGroup.finished) return
    -    trackerGroup.emit('change', name || trackerGroup.name, trackerGroup.completed(), trackerGroup)
    -  }
    -}
    -
    -TrackerGroup.prototype.nameInTree = function () {
    -  var names = []
    -  var from = this
    -  while (from) {
    -    names.unshift(from.name)
    -    from = from.parentGroup
    -  }
    -  return names.join('/')
    -}
    -
    -TrackerGroup.prototype.addUnit = function (unit, weight) {
    -  if (unit.addUnit) {
    -    var toTest = this
    -    while (toTest) {
    -      if (unit === toTest) {
    -        throw new Error(
    -          'Attempted to add tracker group ' +
    -          unit.name + ' to tree that already includes it ' +
    -          this.nameInTree(this))
    -      }
    -      toTest = toTest.parentGroup
    -    }
    -    unit.parentGroup = this
    -  }
    -  this.weight[unit.id] = weight || 1
    -  this.totalWeight += this.weight[unit.id]
    -  this.trackers.push(unit)
    -  this.completion[unit.id] = unit.completed()
    -  unit.on('change', this.bubbleChange)
    -  if (!this.finished) this.emit('change', unit.name, this.completion[unit.id], unit)
    -  return unit
    -}
    -
    -TrackerGroup.prototype.completed = function () {
    -  if (this.trackers.length === 0) return 0
    -  var valPerWeight = 1 / this.totalWeight
    -  var completed = 0
    -  for (var ii = 0; ii < this.trackers.length; ii++) {
    -    var trackerId = this.trackers[ii].id
    -    completed += valPerWeight * this.weight[trackerId] * this.completion[trackerId]
    -  }
    -  return completed
    -}
    -
    -TrackerGroup.prototype.newGroup = function (name, weight) {
    -  return this.addUnit(new TrackerGroup(name), weight)
    -}
    -
    -TrackerGroup.prototype.newItem = function (name, todo, weight) {
    -  return this.addUnit(new Tracker(name, todo), weight)
    -}
    -
    -TrackerGroup.prototype.newStream = function (name, todo, weight) {
    -  return this.addUnit(new TrackerStream(name, todo), weight)
    -}
    -
    -TrackerGroup.prototype.finish = function () {
    -  this.finished = true
    -  if (!this.trackers.length) this.addUnit(new Tracker(), 1, true)
    -  for (var ii = 0; ii < this.trackers.length; ii++) {
    -    var tracker = this.trackers[ii]
    -    tracker.finish()
    -    tracker.removeListener('change', this.bubbleChange)
    -  }
    -  this.emit('change', this.name, 1, this)
    -}
    -
    -var buffer = '                                  '
    -TrackerGroup.prototype.debug = function (depth) {
    -  depth = depth || 0
    -  var indent = depth ? buffer.substr(0, depth) : ''
    -  var output = indent + (this.name || 'top') + ': ' + this.completed() + '\n'
    -  this.trackers.forEach(function (tracker) {
    -    if (tracker instanceof TrackerGroup) {
    -      output += tracker.debug(depth + 1)
    -    } else {
    -      output += indent + ' ' + tracker.name + ': ' + tracker.completed() + '\n'
    -    }
    -  })
    -  return output
    -}
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/tracker-stream.js b/node_modules/fsevents/node_modules/are-we-there-yet/tracker-stream.js
    deleted file mode 100644
    index fb9598e..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/tracker-stream.js
    +++ /dev/null
    @@ -1,35 +0,0 @@
    -'use strict'
    -var util = require('util')
    -var stream = require('readable-stream')
    -var delegate = require('delegates')
    -var Tracker = require('./tracker.js')
    -
    -var TrackerStream = module.exports = function (name, size, options) {
    -  stream.Transform.call(this, options)
    -  this.tracker = new Tracker(name, size)
    -  this.name = name
    -  this.id = this.tracker.id
    -  this.tracker.on('change', delegateChange(this))
    -}
    -util.inherits(TrackerStream, stream.Transform)
    -
    -function delegateChange (trackerStream) {
    -  return function (name, completion, tracker) {
    -    trackerStream.emit('change', name, completion, trackerStream)
    -  }
    -}
    -
    -TrackerStream.prototype._transform = function (data, encoding, cb) {
    -  this.tracker.completeWork(data.length ? data.length : 1)
    -  this.push(data)
    -  cb()
    -}
    -
    -TrackerStream.prototype._flush = function (cb) {
    -  this.tracker.finish()
    -  cb()
    -}
    -
    -delegate(TrackerStream.prototype, 'tracker')
    -  .method('completed')
    -  .method('addWork')
    diff --git a/node_modules/fsevents/node_modules/are-we-there-yet/tracker.js b/node_modules/fsevents/node_modules/are-we-there-yet/tracker.js
    deleted file mode 100644
    index 68c2339..0000000
    --- a/node_modules/fsevents/node_modules/are-we-there-yet/tracker.js
    +++ /dev/null
    @@ -1,30 +0,0 @@
    -'use strict'
    -var util = require('util')
    -var TrackerBase = require('./tracker-base.js')
    -
    -var Tracker = module.exports = function (name, todo) {
    -  TrackerBase.call(this, name)
    -  this.workDone = 0
    -  this.workTodo = todo || 0
    -}
    -util.inherits(Tracker, TrackerBase)
    -
    -Tracker.prototype.completed = function () {
    -  return this.workTodo === 0 ? 0 : this.workDone / this.workTodo
    -}
    -
    -Tracker.prototype.addWork = function (work) {
    -  this.workTodo += work
    -  this.emit('change', this.name, this.completed(), this)
    -}
    -
    -Tracker.prototype.completeWork = function (work) {
    -  this.workDone += work
    -  if (this.workDone > this.workTodo) this.workDone = this.workTodo
    -  this.emit('change', this.name, this.completed(), this)
    -}
    -
    -Tracker.prototype.finish = function () {
    -  this.workTodo = this.workDone = 1
    -  this.emit('change', this.name, 1, this)
    -}
    diff --git a/node_modules/fsevents/node_modules/asn1/.npmignore b/node_modules/fsevents/node_modules/asn1/.npmignore
    deleted file mode 100644
    index eb03e3e..0000000
    --- a/node_modules/fsevents/node_modules/asn1/.npmignore
    +++ /dev/null
    @@ -1,2 +0,0 @@
    -node_modules
    -*.log
    diff --git a/node_modules/fsevents/node_modules/asn1/.travis.yml b/node_modules/fsevents/node_modules/asn1/.travis.yml
    deleted file mode 100644
    index 09d3ef3..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/LICENSE b/node_modules/fsevents/node_modules/asn1/LICENSE
    deleted file mode 100644
    index 9b5dcdb..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/README.md b/node_modules/fsevents/node_modules/asn1/README.md
    deleted file mode 100644
    index 7cebf7a..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/lib/ber/errors.js b/node_modules/fsevents/node_modules/asn1/lib/ber/errors.js
    deleted file mode 100644
    index ff21d4f..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/lib/ber/index.js b/node_modules/fsevents/node_modules/asn1/lib/ber/index.js
    deleted file mode 100644
    index 4fb90ae..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/lib/ber/reader.js b/node_modules/fsevents/node_modules/asn1/lib/ber/reader.js
    deleted file mode 100644
    index 0a00e98..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/lib/ber/types.js b/node_modules/fsevents/node_modules/asn1/lib/ber/types.js
    deleted file mode 100644
    index 8aea000..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/lib/ber/writer.js b/node_modules/fsevents/node_modules/asn1/lib/ber/writer.js
    deleted file mode 100644
    index d9d99af..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/lib/index.js b/node_modules/fsevents/node_modules/asn1/lib/index.js
    deleted file mode 100644
    index d1766e7..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/package.json b/node_modules/fsevents/node_modules/asn1/package.json
    deleted file mode 100644
    index a4d9a3e..0000000
    --- a/node_modules/fsevents/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/eshanker/Code/fsevents/node_modules/sshpk"
    -    ]
    -  ],
    -  "_from": "asn1@>=0.2.3 <0.3.0",
    -  "_id": "asn1@0.2.3",
    -  "_inCache": true,
    -  "_location": "/fsevents/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": [
    -    "/fsevents/sshpk"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
    -  "_shasum": "dac8787713c9966849fc8180777ebe9c1ddf3b86",
    -  "_shrinkwrap": null,
    -  "_spec": "asn1@~0.2.3",
    -  "_where": "/Users/eshanker/Code/fsevents/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/fsevents/node_modules/asn1/tst/ber/reader.test.js b/node_modules/fsevents/node_modules/asn1/tst/ber/reader.test.js
    deleted file mode 100644
    index 062fd7e..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/asn1/tst/ber/writer.test.js b/node_modules/fsevents/node_modules/asn1/tst/ber/writer.test.js
    deleted file mode 100644
    index d87cb7b..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/assert-plus/AUTHORS b/node_modules/fsevents/node_modules/assert-plus/AUTHORS
    deleted file mode 100644
    index 1923524..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/assert-plus/CHANGES.md b/node_modules/fsevents/node_modules/assert-plus/CHANGES.md
    deleted file mode 100644
    index d249d9b..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/assert-plus/README.md b/node_modules/fsevents/node_modules/assert-plus/README.md
    deleted file mode 100644
    index 0b39593..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/assert-plus/assert.js b/node_modules/fsevents/node_modules/assert-plus/assert.js
    deleted file mode 100644
    index 6bce4d8..0000000
    --- a/node_modules/fsevents/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/fsevents/node_modules/assert-plus/package.json b/node_modules/fsevents/node_modules/assert-plus/package.json
    deleted file mode 100644
    index 0200b19..0000000
    --- a/node_modules/fsevents/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/eshanker/Code/fsevents/node_modules/http-signature"
    -    ]
    -  ],
    -  "_from": "assert-plus@>=0.2.0 <0.3.0",
    -  "_id": "assert-plus@0.2.0",
    -  "_inCache": true,
    -  "_location": "/fsevents/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": [
    -    "/fsevents/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/eshanker/Code/fsevents/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/fsevents/node_modules/asynckit/LICENSE b/node_modules/fsevents/node_modules/asynckit/LICENSE
    deleted file mode 100644
    index c9eca5d..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/LICENSE
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -The MIT License (MIT)
    -
    -Copyright (c) 2016 Alex Indigo
    -
    -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/fsevents/node_modules/asynckit/README.md b/node_modules/fsevents/node_modules/asynckit/README.md
    deleted file mode 100644
    index ddcc7e6..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/README.md
    +++ /dev/null
    @@ -1,233 +0,0 @@
    -# asynckit [![NPM Module](https://img.shields.io/npm/v/asynckit.svg?style=flat)](https://www.npmjs.com/package/asynckit)
    -
    -Minimal async jobs utility library, with streams support.
    -
    -[![PhantomJS Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=browser&style=flat)](https://travis-ci.org/alexindigo/asynckit)
    -[![Linux Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=linux:0.12-6.x&style=flat)](https://travis-ci.org/alexindigo/asynckit)
    -[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/asynckit/v0.4.0.svg?label=windows:0.12-6.x&style=flat)](https://ci.appveyor.com/project/alexindigo/asynckit)
    -
    -[![Coverage Status](https://img.shields.io/coveralls/alexindigo/asynckit/v0.4.0.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/asynckit?branch=master)
    -[![Dependency Status](https://img.shields.io/david/alexindigo/asynckit/v0.4.0.svg?style=flat)](https://david-dm.org/alexindigo/asynckit)
    -[![bitHound Overall Score](https://www.bithound.io/github/alexindigo/asynckit/badges/score.svg)](https://www.bithound.io/github/alexindigo/asynckit)
    -
    -
    -
    -AsyncKit provides harness for `parallel` and `serial` iterators over list of items represented by arrays or objects.
    -Optionally it accepts abort function (should be synchronously return by iterator for each item), and terminates left over jobs upon an error event. For specific iteration order built-in (`ascending` and `descending`) and custom sort helpers also supported, via `asynckit.serialOrdered` method.
    -
    -It ensures async operations to keep behavior more stable and prevent `Maximum call stack size exceeded` errors, from sync iterators.
    -
    -| compression        |     size |
    -| :----------------- | -------: |
    -| asynckit.js        | 12.34 kB |
    -| asynckit.min.js    |  4.11 kB |
    -| asynckit.min.js.gz |  1.47 kB |
    -
    -
    -## Install
    -
    -```sh
    -$ npm install --save asynckit
    -```
    -
    -## Examples
    -
    -### Parallel Jobs
    -
    -Runs iterator over provided array in parallel. Stores output in the `result` array,
    -on the matching positions. In unlikely event of an error from one of the jobs,
    -will terminate rest of the active jobs (if abort function is provided)
    -and return error along with salvaged data to the main callback function.
    -
    -#### Input Array
    -
    -```javascript
    -var parallel = require('asynckit').parallel
    -  , assert   = require('assert')
    -  ;
    -
    -var source         = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
    -  , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
    -  , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ]
    -  , target         = []
    -  ;
    -
    -parallel(source, asyncJob, function(err, result)
    -{
    -  assert.deepEqual(result, expectedResult);
    -  assert.deepEqual(target, expectedTarget);
    -});
    -
    -// async job accepts one element from the array
    -// and a callback function
    -function asyncJob(item, cb)
    -{
    -  // different delays (in ms) per item
    -  var delay = item * 25;
    -
    -  // pretend different jobs take different time to finish
    -  // and not in consequential order
    -  var timeoutId = setTimeout(function() {
    -    target.push(item);
    -    cb(null, item * 2);
    -  }, delay);
    -
    -  // allow to cancel "leftover" jobs upon error
    -  // return function, invoking of which will abort this job
    -  return clearTimeout.bind(null, timeoutId);
    -}
    -```
    -
    -More examples could be found in [test/test-parallel-array.js](test/test-parallel-array.js).
    -
    -#### Input Object
    -
    -Also it supports named jobs, listed via object.
    -
    -```javascript
    -var parallel = require('asynckit/parallel')
    -  , assert   = require('assert')
    -  ;
    -
    -var source         = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 }
    -  , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 }
    -  , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ]
    -  , expectedKeys   = [ 'first', 'one', 'two', 'four', 'eight', 'sixteen', 'thirtyTwo', 'sixtyFour' ]
    -  , target         = []
    -  , keys           = []
    -  ;
    -
    -parallel(source, asyncJob, function(err, result)
    -{
    -  assert.deepEqual(result, expectedResult);
    -  assert.deepEqual(target, expectedTarget);
    -  assert.deepEqual(keys, expectedKeys);
    -});
    -
    -// supports full value, key, callback (shortcut) interface
    -function asyncJob(item, key, cb)
    -{
    -  // different delays (in ms) per item
    -  var delay = item * 25;
    -
    -  // pretend different jobs take different time to finish
    -  // and not in consequential order
    -  var timeoutId = setTimeout(function() {
    -    keys.push(key);
    -    target.push(item);
    -    cb(null, item * 2);
    -  }, delay);
    -
    -  // allow to cancel "leftover" jobs upon error
    -  // return function, invoking of which will abort this job
    -  return clearTimeout.bind(null, timeoutId);
    -}
    -```
    -
    -More examples could be found in [test/test-parallel-object.js](test/test-parallel-object.js).
    -
    -### Serial Jobs
    -
    -Runs iterator over provided array sequentially. Stores output in the `result` array,
    -on the matching positions. In unlikely event of an error from one of the jobs,
    -will not proceed to the rest of the items in the list
    -and return error along with salvaged data to the main callback function.
    -
    -#### Input Array
    -
    -```javascript
    -var serial = require('asynckit/serial')
    -  , assert = require('assert')
    -  ;
    -
    -var source         = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
    -  , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
    -  , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
    -  , target         = []
    -  ;
    -
    -serial(source, asyncJob, function(err, result)
    -{
    -  assert.deepEqual(result, expectedResult);
    -  assert.deepEqual(target, expectedTarget);
    -});
    -
    -// extended interface (item, key, callback)
    -// also supported for arrays
    -function asyncJob(item, key, cb)
    -{
    -  target.push(key);
    -
    -  // it will be automatically made async
    -  // even it iterator "returns" in the same event loop
    -  cb(null, item * 2);
    -}
    -```
    -
    -More examples could be found in [test/test-serial-array.js](test/test-serial-array.js).
    -
    -#### Input Object
    -
    -Also it supports named jobs, listed via object.
    -
    -```javascript
    -var serial = require('asynckit').serial
    -  , assert = require('assert')
    -  ;
    -
    -var source         = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
    -  , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
    -  , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
    -  , target         = []
    -  ;
    -
    -var source         = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 }
    -  , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 }
    -  , expectedTarget = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
    -  , target         = []
    -  ;
    -
    -
    -serial(source, asyncJob, function(err, result)
    -{
    -  assert.deepEqual(result, expectedResult);
    -  assert.deepEqual(target, expectedTarget);
    -});
    -
    -// shortcut interface (item, callback)
    -// works for object as well as for the arrays
    -function asyncJob(item, cb)
    -{
    -  target.push(item);
    -
    -  // it will be automatically made async
    -  // even it iterator "returns" in the same event loop
    -  cb(null, item * 2);
    -}
    -```
    -
    -More examples could be found in [test/test-serial-object.js](test/test-serial-object.js).
    -
    -_Note: Since _object_ is an _unordered_ collection of properties,
    -it may produce unexpected results with sequential iterations.
    -Whenever order of the jobs' execution is important please use `serialOrdered` method._
    -
    -### Ordered Serial Iterations
    -
    -TBD
    -
    -For example [compare-property](compare-property) package.
    -
    -### Streaming interface
    -
    -TBD
    -
    -## Want to Know More?
    -
    -More examples can be found in [test folder](test/).
    -
    -Or open an [issue](https://github.com/alexindigo/asynckit/issues) with questions and/or suggestions.
    -
    -## License
    -
    -AsyncKit is licensed under the MIT license.
    diff --git a/node_modules/fsevents/node_modules/asynckit/bench.js b/node_modules/fsevents/node_modules/asynckit/bench.js
    deleted file mode 100644
    index c612f1a..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/bench.js
    +++ /dev/null
    @@ -1,76 +0,0 @@
    -/* eslint no-console: "off" */
    -
    -var asynckit = require('./')
    -  , async    = require('async')
    -  , assert   = require('assert')
    -  , expected = 0
    -  ;
    -
    -var Benchmark = require('benchmark');
    -var suite = new Benchmark.Suite;
    -
    -var source = [];
    -for (var z = 1; z < 100; z++)
    -{
    -  source.push(z);
    -  expected += z;
    -}
    -
    -suite
    -// add tests
    -
    -.add('async.map', function(deferred)
    -{
    -  var total = 0;
    -
    -  async.map(source,
    -  function(i, cb)
    -  {
    -    setImmediate(function()
    -    {
    -      total += i;
    -      cb(null, total);
    -    });
    -  },
    -  function(err, result)
    -  {
    -    assert.ifError(err);
    -    assert.equal(result[result.length - 1], expected);
    -    deferred.resolve();
    -  });
    -}, {'defer': true})
    -
    -
    -.add('asynckit.parallel', function(deferred)
    -{
    -  var total = 0;
    -
    -  asynckit.parallel(source,
    -  function(i, cb)
    -  {
    -    setImmediate(function()
    -    {
    -      total += i;
    -      cb(null, total);
    -    });
    -  },
    -  function(err, result)
    -  {
    -    assert.ifError(err);
    -    assert.equal(result[result.length - 1], expected);
    -    deferred.resolve();
    -  });
    -}, {'defer': true})
    -
    -
    -// add listeners
    -.on('cycle', function(ev)
    -{
    -  console.log(String(ev.target));
    -})
    -.on('complete', function()
    -{
    -  console.log('Fastest is ' + this.filter('fastest').map('name'));
    -})
    -// run async
    -.run({ 'async': true });
    diff --git a/node_modules/fsevents/node_modules/asynckit/index.js b/node_modules/fsevents/node_modules/asynckit/index.js
    deleted file mode 100644
    index 455f945..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/index.js
    +++ /dev/null
    @@ -1,6 +0,0 @@
    -module.exports =
    -{
    -  parallel      : require('./parallel.js'),
    -  serial        : require('./serial.js'),
    -  serialOrdered : require('./serialOrdered.js')
    -};
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/abort.js b/node_modules/fsevents/node_modules/asynckit/lib/abort.js
    deleted file mode 100644
    index 114367e..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/abort.js
    +++ /dev/null
    @@ -1,29 +0,0 @@
    -// API
    -module.exports = abort;
    -
    -/**
    - * Aborts leftover active jobs
    - *
    - * @param {object} state - current state object
    - */
    -function abort(state)
    -{
    -  Object.keys(state.jobs).forEach(clean.bind(state));
    -
    -  // reset leftover jobs
    -  state.jobs = {};
    -}
    -
    -/**
    - * Cleans up leftover job by invoking abort function for the provided job id
    - *
    - * @this  state
    - * @param {string|number} key - job id to abort
    - */
    -function clean(key)
    -{
    -  if (typeof this.jobs[key] == 'function')
    -  {
    -    this.jobs[key]();
    -  }
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/async.js b/node_modules/fsevents/node_modules/asynckit/lib/async.js
    deleted file mode 100644
    index 7f1288a..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/async.js
    +++ /dev/null
    @@ -1,34 +0,0 @@
    -var defer = require('./defer.js');
    -
    -// API
    -module.exports = async;
    -
    -/**
    - * Runs provided callback asynchronously
    - * even if callback itself is not
    - *
    - * @param   {function} callback - callback to invoke
    - * @returns {function} - augmented callback
    - */
    -function async(callback)
    -{
    -  var isAsync = false;
    -
    -  // check if async happened
    -  defer(function() { isAsync = true; });
    -
    -  return function async_callback(err, result)
    -  {
    -    if (isAsync)
    -    {
    -      callback(err, result);
    -    }
    -    else
    -    {
    -      defer(function nextTick_callback()
    -      {
    -        callback(err, result);
    -      });
    -    }
    -  };
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/defer.js b/node_modules/fsevents/node_modules/asynckit/lib/defer.js
    deleted file mode 100644
    index b67110c..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/defer.js
    +++ /dev/null
    @@ -1,26 +0,0 @@
    -module.exports = defer;
    -
    -/**
    - * Runs provided function on next iteration of the event loop
    - *
    - * @param {function} fn - function to run
    - */
    -function defer(fn)
    -{
    -  var nextTick = typeof setImmediate == 'function'
    -    ? setImmediate
    -    : (
    -      typeof process == 'object' && typeof process.nextTick == 'function'
    -      ? process.nextTick
    -      : null
    -    );
    -
    -  if (nextTick)
    -  {
    -    nextTick(fn);
    -  }
    -  else
    -  {
    -    setTimeout(fn, 0);
    -  }
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/iterate.js b/node_modules/fsevents/node_modules/asynckit/lib/iterate.js
    deleted file mode 100644
    index 5d2839a..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/iterate.js
    +++ /dev/null
    @@ -1,75 +0,0 @@
    -var async = require('./async.js')
    -  , abort = require('./abort.js')
    -  ;
    -
    -// API
    -module.exports = iterate;
    -
    -/**
    - * Iterates over each job object
    - *
    - * @param {array|object} list - array or object (named list) to iterate over
    - * @param {function} iterator - iterator to run
    - * @param {object} state - current job status
    - * @param {function} callback - invoked when all elements processed
    - */
    -function iterate(list, iterator, state, callback)
    -{
    -  // store current index
    -  var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;
    -
    -  state.jobs[key] = runJob(iterator, key, list[key], function(error, output)
    -  {
    -    // don't repeat yourself
    -    // skip secondary callbacks
    -    if (!(key in state.jobs))
    -    {
    -      return;
    -    }
    -
    -    // clean up jobs
    -    delete state.jobs[key];
    -
    -    if (error)
    -    {
    -      // don't process rest of the results
    -      // stop still active jobs
    -      // and reset the list
    -      abort(state);
    -    }
    -    else
    -    {
    -      state.results[key] = output;
    -    }
    -
    -    // return salvaged results
    -    callback(error, state.results);
    -  });
    -}
    -
    -/**
    - * Runs iterator over provided job element
    - *
    - * @param   {function} iterator - iterator to invoke
    - * @param   {string|number} key - key/index of the element in the list of jobs
    - * @param   {mixed} item - job description
    - * @param   {function} callback - invoked after iterator is done with the job
    - * @returns {function|mixed} - job abort function or something else
    - */
    -function runJob(iterator, key, item, callback)
    -{
    -  var aborter;
    -
    -  // allow shortcut if iterator expects only two arguments
    -  if (iterator.length == 2)
    -  {
    -    aborter = iterator(item, async(callback));
    -  }
    -  // otherwise go with full three arguments
    -  else
    -  {
    -    aborter = iterator(item, key, async(callback));
    -  }
    -
    -  return aborter;
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/readable_asynckit.js b/node_modules/fsevents/node_modules/asynckit/lib/readable_asynckit.js
    deleted file mode 100644
    index 78ad240..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/readable_asynckit.js
    +++ /dev/null
    @@ -1,91 +0,0 @@
    -var streamify = require('./streamify.js')
    -  , defer     = require('./defer.js')
    -  ;
    -
    -// API
    -module.exports = ReadableAsyncKit;
    -
    -/**
    - * Base constructor for all streams
    - * used to hold properties/methods
    - */
    -function ReadableAsyncKit()
    -{
    -  ReadableAsyncKit.super_.apply(this, arguments);
    -
    -  // list of active jobs
    -  this.jobs = {};
    -
    -  // add stream methods
    -  this.destroy = destroy;
    -  this._start  = _start;
    -  this._read   = _read;
    -}
    -
    -/**
    - * Destroys readable stream,
    - * by aborting outstanding jobs
    - *
    - * @returns {void}
    - */
    -function destroy()
    -{
    -  if (this.destroyed)
    -  {
    -    return;
    -  }
    -
    -  this.destroyed = true;
    -
    -  if (typeof this.terminator == 'function')
    -  {
    -    this.terminator();
    -  }
    -}
    -
    -/**
    - * Starts provided jobs in async manner
    - *
    - * @private
    - */
    -function _start()
    -{
    -  // first argument – runner function
    -  var runner = arguments[0]
    -    // take away first argument
    -    , args   = Array.prototype.slice.call(arguments, 1)
    -      // second argument - input data
    -    , input  = args[0]
    -      // last argument - result callback
    -    , endCb  = streamify.callback.call(this, args[args.length - 1])
    -    ;
    -
    -  args[args.length - 1] = endCb;
    -  // third argument - iterator
    -  args[1] = streamify.iterator.call(this, args[1]);
    -
    -  // allow time for proper setup
    -  defer(function()
    -  {
    -    if (!this.destroyed)
    -    {
    -      this.terminator = runner.apply(null, args);
    -    }
    -    else
    -    {
    -      endCb(null, Array.isArray(input) ? [] : {});
    -    }
    -  }.bind(this));
    -}
    -
    -
    -/**
    - * Implement _read to comply with Readable streams
    - * Doesn't really make sense for flowing object mode
    - *
    - * @private
    - */
    -function _read()
    -{
    -
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/readable_parallel.js b/node_modules/fsevents/node_modules/asynckit/lib/readable_parallel.js
    deleted file mode 100644
    index 5d2929f..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/readable_parallel.js
    +++ /dev/null
    @@ -1,25 +0,0 @@
    -var parallel = require('../parallel.js');
    -
    -// API
    -module.exports = ReadableParallel;
    -
    -/**
    - * Streaming wrapper to `asynckit.parallel`
    - *
    - * @param   {array|object} list - array or object (named list) to iterate over
    - * @param   {function} iterator - iterator to run
    - * @param   {function} callback - invoked when all elements processed
    - * @returns {stream.Readable#}
    - */
    -function ReadableParallel(list, iterator, callback)
    -{
    -  if (!(this instanceof ReadableParallel))
    -  {
    -    return new ReadableParallel(list, iterator, callback);
    -  }
    -
    -  // turn on object mode
    -  ReadableParallel.super_.call(this, {objectMode: true});
    -
    -  this._start(parallel, list, iterator, callback);
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/readable_serial.js b/node_modules/fsevents/node_modules/asynckit/lib/readable_serial.js
    deleted file mode 100644
    index 7822698..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/readable_serial.js
    +++ /dev/null
    @@ -1,25 +0,0 @@
    -var serial = require('../serial.js');
    -
    -// API
    -module.exports = ReadableSerial;
    -
    -/**
    - * Streaming wrapper to `asynckit.serial`
    - *
    - * @param   {array|object} list - array or object (named list) to iterate over
    - * @param   {function} iterator - iterator to run
    - * @param   {function} callback - invoked when all elements processed
    - * @returns {stream.Readable#}
    - */
    -function ReadableSerial(list, iterator, callback)
    -{
    -  if (!(this instanceof ReadableSerial))
    -  {
    -    return new ReadableSerial(list, iterator, callback);
    -  }
    -
    -  // turn on object mode
    -  ReadableSerial.super_.call(this, {objectMode: true});
    -
    -  this._start(serial, list, iterator, callback);
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/readable_serial_ordered.js b/node_modules/fsevents/node_modules/asynckit/lib/readable_serial_ordered.js
    deleted file mode 100644
    index 3de89c4..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/readable_serial_ordered.js
    +++ /dev/null
    @@ -1,29 +0,0 @@
    -var serialOrdered = require('../serialOrdered.js');
    -
    -// API
    -module.exports = ReadableSerialOrdered;
    -// expose sort helpers
    -module.exports.ascending  = serialOrdered.ascending;
    -module.exports.descending = serialOrdered.descending;
    -
    -/**
    - * Streaming wrapper to `asynckit.serialOrdered`
    - *
    - * @param   {array|object} list - array or object (named list) to iterate over
    - * @param   {function} iterator - iterator to run
    - * @param   {function} sortMethod - custom sort function
    - * @param   {function} callback - invoked when all elements processed
    - * @returns {stream.Readable#}
    - */
    -function ReadableSerialOrdered(list, iterator, sortMethod, callback)
    -{
    -  if (!(this instanceof ReadableSerialOrdered))
    -  {
    -    return new ReadableSerialOrdered(list, iterator, sortMethod, callback);
    -  }
    -
    -  // turn on object mode
    -  ReadableSerialOrdered.super_.call(this, {objectMode: true});
    -
    -  this._start(serialOrdered, list, iterator, sortMethod, callback);
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/state.js b/node_modules/fsevents/node_modules/asynckit/lib/state.js
    deleted file mode 100644
    index cbea7ad..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/state.js
    +++ /dev/null
    @@ -1,37 +0,0 @@
    -// API
    -module.exports = state;
    -
    -/**
    - * Creates initial state object
    - * for iteration over list
    - *
    - * @param   {array|object} list - list to iterate over
    - * @param   {function|null} sortMethod - function to use for keys sort,
    - *                                     or `null` to keep them as is
    - * @returns {object} - initial state object
    - */
    -function state(list, sortMethod)
    -{
    -  var isNamedList = !Array.isArray(list)
    -    , initState =
    -    {
    -      index    : 0,
    -      keyedList: isNamedList || sortMethod ? Object.keys(list) : null,
    -      jobs     : {},
    -      results  : isNamedList ? {} : [],
    -      size     : isNamedList ? Object.keys(list).length : list.length
    -    }
    -    ;
    -
    -  if (sortMethod)
    -  {
    -    // sort array keys based on it's values
    -    // sort object's keys just on own merit
    -    initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)
    -    {
    -      return sortMethod(list[a], list[b]);
    -    });
    -  }
    -
    -  return initState;
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/streamify.js b/node_modules/fsevents/node_modules/asynckit/lib/streamify.js
    deleted file mode 100644
    index f56a1c9..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/streamify.js
    +++ /dev/null
    @@ -1,141 +0,0 @@
    -var async = require('./async.js');
    -
    -// API
    -module.exports = {
    -  iterator: wrapIterator,
    -  callback: wrapCallback
    -};
    -
    -/**
    - * Wraps iterators with long signature
    - *
    - * @this    ReadableAsyncKit#
    - * @param   {function} iterator - function to wrap
    - * @returns {function} - wrapped function
    - */
    -function wrapIterator(iterator)
    -{
    -  var stream = this;
    -
    -  return function(item, key, cb)
    -  {
    -    var aborter
    -      , wrappedCb = async(wrapIteratorCallback.call(stream, cb, key))
    -      ;
    -
    -    stream.jobs[key] = wrappedCb;
    -
    -    // it's either shortcut (item, cb)
    -    if (iterator.length == 2)
    -    {
    -      aborter = iterator(item, wrappedCb);
    -    }
    -    // or long format (item, key, cb)
    -    else
    -    {
    -      aborter = iterator(item, key, wrappedCb);
    -    }
    -
    -    return aborter;
    -  };
    -}
    -
    -/**
    - * Wraps provided callback function
    - * allowing to execute snitch function before
    - * real callback
    - *
    - * @this    ReadableAsyncKit#
    - * @param   {function} callback - function to wrap
    - * @returns {function} - wrapped function
    - */
    -function wrapCallback(callback)
    -{
    -  var stream = this;
    -
    -  var wrapped = function(error, result)
    -  {
    -    return finisher.call(stream, error, result, callback);
    -  };
    -
    -  return wrapped;
    -}
    -
    -/**
    - * Wraps provided iterator callback function
    - * makes sure snitch only called once,
    - * but passes secondary calls to the original callback
    - *
    - * @this    ReadableAsyncKit#
    - * @param   {function} callback - callback to wrap
    - * @param   {number|string} key - iteration key
    - * @returns {function} wrapped callback
    - */
    -function wrapIteratorCallback(callback, key)
    -{
    -  var stream = this;
    -
    -  return function(error, output)
    -  {
    -    // don't repeat yourself
    -    if (!(key in stream.jobs))
    -    {
    -      callback(error, output);
    -      return;
    -    }
    -
    -    // clean up jobs
    -    delete stream.jobs[key];
    -
    -    return streamer.call(stream, error, {key: key, value: output}, callback);
    -  };
    -}
    -
    -/**
    - * Stream wrapper for iterator callback
    - *
    - * @this  ReadableAsyncKit#
    - * @param {mixed} error - error response
    - * @param {mixed} output - iterator output
    - * @param {function} callback - callback that expects iterator results
    - */
    -function streamer(error, output, callback)
    -{
    -  if (error && !this.error)
    -  {
    -    this.error = error;
    -    this.pause();
    -    this.emit('error', error);
    -    // send back value only, as expected
    -    callback(error, output && output.value);
    -    return;
    -  }
    -
    -  // stream stuff
    -  this.push(output);
    -
    -  // back to original track
    -  // send back value only, as expected
    -  callback(error, output && output.value);
    -}
    -
    -/**
    - * Stream wrapper for finishing callback
    - *
    - * @this  ReadableAsyncKit#
    - * @param {mixed} error - error response
    - * @param {mixed} output - iterator output
    - * @param {function} callback - callback that expects final results
    - */
    -function finisher(error, output, callback)
    -{
    -  // signal end of the stream
    -  // only for successfully finished streams
    -  if (!error)
    -  {
    -    this.push(null);
    -  }
    -
    -  // back to original track
    -  callback(error, output);
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/lib/terminator.js b/node_modules/fsevents/node_modules/asynckit/lib/terminator.js
    deleted file mode 100644
    index d6eb992..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/lib/terminator.js
    +++ /dev/null
    @@ -1,29 +0,0 @@
    -var abort = require('./abort.js')
    -  , async = require('./async.js')
    -  ;
    -
    -// API
    -module.exports = terminator;
    -
    -/**
    - * Terminates jobs in the attached state context
    - *
    - * @this  AsyncKitState#
    - * @param {function} callback - final callback to invoke after termination
    - */
    -function terminator(callback)
    -{
    -  if (!Object.keys(this.jobs).length)
    -  {
    -    return;
    -  }
    -
    -  // fast forward iteration index
    -  this.index = this.size;
    -
    -  // abort jobs
    -  abort(this);
    -
    -  // send back results we have so far
    -  async(callback)(null, this.results);
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/package.json b/node_modules/fsevents/node_modules/asynckit/package.json
    deleted file mode 100644
    index ddf472a..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/package.json
    +++ /dev/null
    @@ -1,126 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "asynckit@^0.4.0",
    -        "scope": null,
    -        "escapedName": "asynckit",
    -        "name": "asynckit",
    -        "rawSpec": "^0.4.0",
    -        "spec": ">=0.4.0 <0.5.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/form-data"
    -    ]
    -  ],
    -  "_from": "asynckit@>=0.4.0 <0.5.0",
    -  "_id": "asynckit@0.4.0",
    -  "_inCache": true,
    -  "_location": "/fsevents/asynckit",
    -  "_nodeVersion": "0.12.11",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/asynckit-0.4.0.tgz_1465928940169_0.8008207362145185"
    -  },
    -  "_npmUser": {
    -    "name": "alexindigo",
    -    "email": "iam@alexindigo.com"
    -  },
    -  "_npmVersion": "2.15.6",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "asynckit@^0.4.0",
    -    "scope": null,
    -    "escapedName": "asynckit",
    -    "name": "asynckit",
    -    "rawSpec": "^0.4.0",
    -    "spec": ">=0.4.0 <0.5.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/form-data"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
    -  "_shasum": "c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79",
    -  "_shrinkwrap": null,
    -  "_spec": "asynckit@^0.4.0",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/form-data",
    -  "author": {
    -    "name": "Alex Indigo",
    -    "email": "iam@alexindigo.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/alexindigo/asynckit/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Minimal async jobs utility library, with streams support",
    -  "devDependencies": {
    -    "browserify": "^13.0.0",
    -    "browserify-istanbul": "^2.0.0",
    -    "coveralls": "^2.11.9",
    -    "eslint": "^2.9.0",
    -    "istanbul": "^0.4.3",
    -    "obake": "^0.1.2",
    -    "phantomjs-prebuilt": "^2.1.7",
    -    "pre-commit": "^1.1.3",
    -    "reamde": "^1.1.0",
    -    "rimraf": "^2.5.2",
    -    "size-table": "^0.2.0",
    -    "tap-spec": "^4.1.1",
    -    "tape": "^4.5.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79",
    -    "tarball": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz"
    -  },
    -  "gitHead": "583a75ed4fe41761b66416bb6e703ebb1f8963bf",
    -  "homepage": "https://github.com/alexindigo/asynckit#readme",
    -  "keywords": [
    -    "async",
    -    "jobs",
    -    "parallel",
    -    "serial",
    -    "iterator",
    -    "array",
    -    "object",
    -    "stream",
    -    "destroy",
    -    "terminate",
    -    "abort"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "alexindigo",
    -      "email": "iam@alexindigo.com"
    -    }
    -  ],
    -  "name": "asynckit",
    -  "optionalDependencies": {},
    -  "pre-commit": [
    -    "clean",
    -    "lint",
    -    "test",
    -    "browser",
    -    "report",
    -    "size"
    -  ],
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/alexindigo/asynckit.git"
    -  },
    -  "scripts": {
    -    "browser": "browserify -t browserify-istanbul test/lib/browserify_adjustment.js test/test-*.js | obake --coverage | tap-spec",
    -    "clean": "rimraf coverage",
    -    "debug": "tape test/test-*.js",
    -    "lint": "eslint *.js lib/*.js test/*.js",
    -    "report": "istanbul report",
    -    "size": "browserify index.js | size-table asynckit",
    -    "test": "istanbul cover --reporter=json tape -- 'test/test-*.js' | tap-spec",
    -    "win-test": "tape test/test-*.js"
    -  },
    -  "version": "0.4.0"
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/parallel.js b/node_modules/fsevents/node_modules/asynckit/parallel.js
    deleted file mode 100644
    index 3c50344..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/parallel.js
    +++ /dev/null
    @@ -1,43 +0,0 @@
    -var iterate    = require('./lib/iterate.js')
    -  , initState  = require('./lib/state.js')
    -  , terminator = require('./lib/terminator.js')
    -  ;
    -
    -// Public API
    -module.exports = parallel;
    -
    -/**
    - * Runs iterator over provided array elements in parallel
    - *
    - * @param   {array|object} list - array or object (named list) to iterate over
    - * @param   {function} iterator - iterator to run
    - * @param   {function} callback - invoked when all elements processed
    - * @returns {function} - jobs terminator
    - */
    -function parallel(list, iterator, callback)
    -{
    -  var state = initState(list);
    -
    -  while (state.index < (state['keyedList'] || list).length)
    -  {
    -    iterate(list, iterator, state, function(error, result)
    -    {
    -      if (error)
    -      {
    -        callback(error, result);
    -        return;
    -      }
    -
    -      // looks like it's the last one
    -      if (Object.keys(state.jobs).length === 0)
    -      {
    -        callback(null, state.results);
    -        return;
    -      }
    -    });
    -
    -    state.index++;
    -  }
    -
    -  return terminator.bind(state, callback);
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/serial.js b/node_modules/fsevents/node_modules/asynckit/serial.js
    deleted file mode 100644
    index 6cd949a..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/serial.js
    +++ /dev/null
    @@ -1,17 +0,0 @@
    -var serialOrdered = require('./serialOrdered.js');
    -
    -// Public API
    -module.exports = serial;
    -
    -/**
    - * Runs iterator over provided array elements in series
    - *
    - * @param   {array|object} list - array or object (named list) to iterate over
    - * @param   {function} iterator - iterator to run
    - * @param   {function} callback - invoked when all elements processed
    - * @returns {function} - jobs terminator
    - */
    -function serial(list, iterator, callback)
    -{
    -  return serialOrdered(list, iterator, null, callback);
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/serialOrdered.js b/node_modules/fsevents/node_modules/asynckit/serialOrdered.js
    deleted file mode 100644
    index 607eafe..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/serialOrdered.js
    +++ /dev/null
    @@ -1,75 +0,0 @@
    -var iterate    = require('./lib/iterate.js')
    -  , initState  = require('./lib/state.js')
    -  , terminator = require('./lib/terminator.js')
    -  ;
    -
    -// Public API
    -module.exports = serialOrdered;
    -// sorting helpers
    -module.exports.ascending  = ascending;
    -module.exports.descending = descending;
    -
    -/**
    - * Runs iterator over provided sorted array elements in series
    - *
    - * @param   {array|object} list - array or object (named list) to iterate over
    - * @param   {function} iterator - iterator to run
    - * @param   {function} sortMethod - custom sort function
    - * @param   {function} callback - invoked when all elements processed
    - * @returns {function} - jobs terminator
    - */
    -function serialOrdered(list, iterator, sortMethod, callback)
    -{
    -  var state = initState(list, sortMethod);
    -
    -  iterate(list, iterator, state, function iteratorHandler(error, result)
    -  {
    -    if (error)
    -    {
    -      callback(error, result);
    -      return;
    -    }
    -
    -    state.index++;
    -
    -    // are we there yet?
    -    if (state.index < (state['keyedList'] || list).length)
    -    {
    -      iterate(list, iterator, state, iteratorHandler);
    -      return;
    -    }
    -
    -    // done here
    -    callback(null, state.results);
    -  });
    -
    -  return terminator.bind(state, callback);
    -}
    -
    -/*
    - * -- Sort methods
    - */
    -
    -/**
    - * sort helper to sort array elements in ascending order
    - *
    - * @param   {mixed} a - an item to compare
    - * @param   {mixed} b - an item to compare
    - * @returns {number} - comparison result
    - */
    -function ascending(a, b)
    -{
    -  return a < b ? -1 : a > b ? 1 : 0;
    -}
    -
    -/**
    - * sort helper to sort array elements in descending order
    - *
    - * @param   {mixed} a - an item to compare
    - * @param   {mixed} b - an item to compare
    - * @returns {number} - comparison result
    - */
    -function descending(a, b)
    -{
    -  return -1 * ascending(a, b);
    -}
    diff --git a/node_modules/fsevents/node_modules/asynckit/stream.js b/node_modules/fsevents/node_modules/asynckit/stream.js
    deleted file mode 100644
    index d43465f..0000000
    --- a/node_modules/fsevents/node_modules/asynckit/stream.js
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -var inherits              = require('util').inherits
    -  , Readable              = require('stream').Readable
    -  , ReadableAsyncKit      = require('./lib/readable_asynckit.js')
    -  , ReadableParallel      = require('./lib/readable_parallel.js')
    -  , ReadableSerial        = require('./lib/readable_serial.js')
    -  , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js')
    -  ;
    -
    -// API
    -module.exports =
    -{
    -  parallel      : ReadableParallel,
    -  serial        : ReadableSerial,
    -  serialOrdered : ReadableSerialOrdered, 
    -};
    -
    -inherits(ReadableAsyncKit, Readable);
    -
    -inherits(ReadableParallel, ReadableAsyncKit);
    -inherits(ReadableSerial, ReadableAsyncKit);
    -inherits(ReadableSerialOrdered, ReadableAsyncKit);
    diff --git a/node_modules/fsevents/node_modules/aws-sign2/LICENSE b/node_modules/fsevents/node_modules/aws-sign2/LICENSE
    deleted file mode 100644
    index a4a9aee..0000000
    --- a/node_modules/fsevents/node_modules/aws-sign2/LICENSE
    +++ /dev/null
    @@ -1,55 +0,0 @@
    -Apache License
    -
    -Version 2.0, January 2004
    -
    -http://www.apache.org/licenses/
    -
    -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    -
    -1. Definitions.
    -
    -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
    -
    -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
    -
    -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
    -
    -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
    -
    -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
    -
    -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
    -
    -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
    -
    -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
    -
    -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
    -
    -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
    -
    -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
    -
    -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
    -
    -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
    -
    -You must give any other recipients of the Work or Derivative Works a copy of this License; and
    -
    -You must cause any modified files to carry prominent notices stating that You changed the files; and
    -
    -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
    -
    -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
    -
    -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
    -
    -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
    -
    -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
    -
    -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
    -
    -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
    -
    -END OF TERMS AND CONDITIONS
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/aws-sign2/README.md b/node_modules/fsevents/node_modules/aws-sign2/README.md
    deleted file mode 100644
    index 763564e..0000000
    --- a/node_modules/fsevents/node_modules/aws-sign2/README.md
    +++ /dev/null
    @@ -1,4 +0,0 @@
    -aws-sign
    -========
    -
    -AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.
    diff --git a/node_modules/fsevents/node_modules/aws-sign2/index.js b/node_modules/fsevents/node_modules/aws-sign2/index.js
    deleted file mode 100644
    index ac72093..0000000
    --- a/node_modules/fsevents/node_modules/aws-sign2/index.js
    +++ /dev/null
    @@ -1,212 +0,0 @@
    -
    -/*!
    - *  Copyright 2010 LearnBoost 
    - *
    - * Licensed under the Apache License, Version 2.0 (the "License");
    - * you may not use this file except in compliance with the License.
    - * You may obtain a copy of the License at
    - *
    - *     http://www.apache.org/licenses/LICENSE-2.0
    - *
    - * Unless required by applicable law or agreed to in writing, software
    - * distributed under the License is distributed on an "AS IS" BASIS,
    - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    - * See the License for the specific language governing permissions and
    - * limitations under the License.
    - */
    -
    -/**
    - * Module dependencies.
    - */
    -
    -var crypto = require('crypto')
    -  , parse = require('url').parse
    -  ;
    -
    -/**
    - * Valid keys.
    - */
    -
    -var keys = 
    -  [ 'acl'
    -  , 'location'
    -  , 'logging'
    -  , 'notification'
    -  , 'partNumber'
    -  , 'policy'
    -  , 'requestPayment'
    -  , 'torrent'
    -  , 'uploadId'
    -  , 'uploads'
    -  , 'versionId'
    -  , 'versioning'
    -  , 'versions'
    -  , 'website'
    -  ]
    -
    -/**
    - * Return an "Authorization" header value with the given `options`
    - * in the form of "AWS :"
    - *
    - * @param {Object} options
    - * @return {String}
    - * @api private
    - */
    -
    -function authorization (options) {
    -  return 'AWS ' + options.key + ':' + sign(options)
    -}
    -
    -module.exports = authorization
    -module.exports.authorization = authorization
    -
    -/**
    - * Simple HMAC-SHA1 Wrapper
    - *
    - * @param {Object} options
    - * @return {String}
    - * @api private
    - */ 
    -
    -function hmacSha1 (options) {
    -  return crypto.createHmac('sha1', options.secret).update(options.message).digest('base64')
    -}
    -
    -module.exports.hmacSha1 = hmacSha1
    -
    -/**
    - * Create a base64 sha1 HMAC for `options`. 
    - * 
    - * @param {Object} options
    - * @return {String}
    - * @api private
    - */
    -
    -function sign (options) {
    -  options.message = stringToSign(options)
    -  return hmacSha1(options)
    -}
    -module.exports.sign = sign
    -
    -/**
    - * Create a base64 sha1 HMAC for `options`. 
    - *
    - * Specifically to be used with S3 presigned URLs
    - * 
    - * @param {Object} options
    - * @return {String}
    - * @api private
    - */
    -
    -function signQuery (options) {
    -  options.message = queryStringToSign(options)
    -  return hmacSha1(options)
    -}
    -module.exports.signQuery= signQuery
    -
    -/**
    - * Return a string for sign() with the given `options`.
    - *
    - * Spec:
    - * 
    - *    \n
    - *    \n
    - *    \n
    - *    \n
    - *    [headers\n]
    - *    
    - *
    - * @param {Object} options
    - * @return {String}
    - * @api private
    - */
    -
    -function stringToSign (options) {
    -  var headers = options.amazonHeaders || ''
    -  if (headers) headers += '\n'
    -  var r = 
    -    [ options.verb
    -    , options.md5
    -    , options.contentType
    -    , options.date ? options.date.toUTCString() : ''
    -    , headers + options.resource
    -    ]
    -  return r.join('\n')
    -}
    -module.exports.queryStringToSign = stringToSign
    -
    -/**
    - * Return a string for sign() with the given `options`, but is meant exclusively
    - * for S3 presigned URLs
    - *
    - * Spec:
    - * 
    - *    \n
    - *    
    - *
    - * @param {Object} options
    - * @return {String}
    - * @api private
    - */
    -
    -function queryStringToSign (options){
    -  return 'GET\n\n\n' + options.date + '\n' + options.resource
    -}
    -module.exports.queryStringToSign = queryStringToSign
    -
    -/**
    - * Perform the following:
    - *
    - *  - ignore non-amazon headers
    - *  - lowercase fields
    - *  - sort lexicographically
    - *  - trim whitespace between ":"
    - *  - join with newline
    - *
    - * @param {Object} headers
    - * @return {String}
    - * @api private
    - */
    -
    -function canonicalizeHeaders (headers) {
    -  var buf = []
    -    , fields = Object.keys(headers)
    -    ;
    -  for (var i = 0, len = fields.length; i < len; ++i) {
    -    var field = fields[i]
    -      , val = headers[field]
    -      , field = field.toLowerCase()
    -      ;
    -    if (0 !== field.indexOf('x-amz')) continue
    -    buf.push(field + ':' + val)
    -  }
    -  return buf.sort().join('\n')
    -}
    -module.exports.canonicalizeHeaders = canonicalizeHeaders
    -
    -/**
    - * Perform the following:
    - *
    - *  - ignore non sub-resources
    - *  - sort lexicographically
    - *
    - * @param {String} resource
    - * @return {String}
    - * @api private
    - */
    -
    -function canonicalizeResource (resource) {
    -  var url = parse(resource, true)
    -    , path = url.pathname
    -    , buf = []
    -    ;
    -
    -  Object.keys(url.query).forEach(function(key){
    -    if (!~keys.indexOf(key)) return
    -    var val = '' == url.query[key] ? '' : '=' + encodeURIComponent(url.query[key])
    -    buf.push(key + val)
    -  })
    -
    -  return path + (buf.length ? '?' + buf.sort().join('&') : '')
    -}
    -module.exports.canonicalizeResource = canonicalizeResource
    diff --git a/node_modules/fsevents/node_modules/aws-sign2/package.json b/node_modules/fsevents/node_modules/aws-sign2/package.json
    deleted file mode 100644
    index 8ce47ff..0000000
    --- a/node_modules/fsevents/node_modules/aws-sign2/package.json
    +++ /dev/null
    @@ -1,81 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "aws-sign2@~0.6.0",
    -        "scope": null,
    -        "escapedName": "aws-sign2",
    -        "name": "aws-sign2",
    -        "rawSpec": "~0.6.0",
    -        "spec": ">=0.6.0 <0.7.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/request"
    -    ]
    -  ],
    -  "_from": "aws-sign2@>=0.6.0 <0.7.0",
    -  "_id": "aws-sign2@0.6.0",
    -  "_inCache": true,
    -  "_location": "/fsevents/aws-sign2",
    -  "_nodeVersion": "4.1.2",
    -  "_npmUser": {
    -    "name": "mikeal",
    -    "email": "mikeal.rogers@gmail.com"
    -  },
    -  "_npmVersion": "2.14.4",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "aws-sign2@~0.6.0",
    -    "scope": null,
    -    "escapedName": "aws-sign2",
    -    "name": "aws-sign2",
    -    "rawSpec": "~0.6.0",
    -    "spec": ">=0.6.0 <0.7.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/request"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz",
    -  "_shasum": "14342dd38dbcc94d0e5b87d763cd63612c0e794f",
    -  "_shrinkwrap": null,
    -  "_spec": "aws-sign2@~0.6.0",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/request",
    -  "author": {
    -    "name": "Mikeal Rogers",
    -    "email": "mikeal.rogers@gmail.com",
    -    "url": "http://www.futurealoof.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/mikeal/aws-sign/issues"
    -  },
    -  "dependencies": {},
    -  "description": "AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "14342dd38dbcc94d0e5b87d763cd63612c0e794f",
    -    "tarball": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz"
    -  },
    -  "engines": {
    -    "node": "*"
    -  },
    -  "gitHead": "8554bdb41268fa295eb1ee300f4adaa9f7f07fec",
    -  "homepage": "https://github.com/mikeal/aws-sign#readme",
    -  "license": "Apache-2.0",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "mikeal",
    -      "email": "mikeal.rogers@gmail.com"
    -    }
    -  ],
    -  "name": "aws-sign2",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "url": "git+https://github.com/mikeal/aws-sign.git"
    -  },
    -  "scripts": {},
    -  "version": "0.6.0"
    -}
    diff --git a/node_modules/fsevents/node_modules/aws4/.npmignore b/node_modules/fsevents/node_modules/aws4/.npmignore
    deleted file mode 100644
    index 6c6ade6..0000000
    --- a/node_modules/fsevents/node_modules/aws4/.npmignore
    +++ /dev/null
    @@ -1,4 +0,0 @@
    -test
    -examples
    -example.js
    -browser
    diff --git a/node_modules/fsevents/node_modules/aws4/.tern-port b/node_modules/fsevents/node_modules/aws4/.tern-port
    deleted file mode 100644
    index 7fd1b52..0000000
    --- a/node_modules/fsevents/node_modules/aws4/.tern-port
    +++ /dev/null
    @@ -1 +0,0 @@
    -62638
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/aws4/.travis.yml b/node_modules/fsevents/node_modules/aws4/.travis.yml
    deleted file mode 100644
    index 61d0634..0000000
    --- a/node_modules/fsevents/node_modules/aws4/.travis.yml
    +++ /dev/null
    @@ -1,5 +0,0 @@
    -language: node_js
    -node_js:
    -  - "0.10"
    -  - "0.12"
    -  - "4.2"
    diff --git a/node_modules/fsevents/node_modules/aws4/LICENSE b/node_modules/fsevents/node_modules/aws4/LICENSE
    deleted file mode 100644
    index 4f321e5..0000000
    --- a/node_modules/fsevents/node_modules/aws4/LICENSE
    +++ /dev/null
    @@ -1,19 +0,0 @@
    -Copyright 2013 Michael Hart (michael.hart.au@gmail.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/fsevents/node_modules/aws4/README.md b/node_modules/fsevents/node_modules/aws4/README.md
    deleted file mode 100644
    index 6b002d0..0000000
    --- a/node_modules/fsevents/node_modules/aws4/README.md
    +++ /dev/null
    @@ -1,523 +0,0 @@
    -aws4
    -----
    -
    -[![Build Status](https://secure.travis-ci.org/mhart/aws4.png?branch=master)](http://travis-ci.org/mhart/aws4)
    -
    -A small utility to sign vanilla node.js http(s) request options using Amazon's
    -[AWS Signature Version 4](http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html).
    -
    -Can also be used [in the browser](./browser).
    -
    -This signature is supported by nearly all Amazon services, including
    -[S3](http://docs.aws.amazon.com/AmazonS3/latest/API/),
    -[EC2](http://docs.aws.amazon.com/AWSEC2/latest/APIReference/),
    -[DynamoDB](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/API.html),
    -[Kinesis](http://docs.aws.amazon.com/kinesis/latest/APIReference/),
    -[Lambda](http://docs.aws.amazon.com/lambda/latest/dg/API_Reference.html),
    -[SQS](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/),
    -[SNS](http://docs.aws.amazon.com/sns/latest/api/),
    -[IAM](http://docs.aws.amazon.com/IAM/latest/APIReference/),
    -[STS](http://docs.aws.amazon.com/STS/latest/APIReference/),
    -[RDS](http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/),
    -[CloudWatch](http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/),
    -[CloudWatch Logs](http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/),
    -[CodeDeploy](http://docs.aws.amazon.com/codedeploy/latest/APIReference/),
    -[CloudFront](http://docs.aws.amazon.com/AmazonCloudFront/latest/APIReference/),
    -[CloudTrail](http://docs.aws.amazon.com/awscloudtrail/latest/APIReference/),
    -[ElastiCache](http://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/),
    -[EMR](http://docs.aws.amazon.com/ElasticMapReduce/latest/API/),
    -[Glacier](http://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-api.html),
    -[CloudSearch](http://docs.aws.amazon.com/cloudsearch/latest/developerguide/APIReq.html),
    -[Elastic Load Balancing](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/APIReference/),
    -[Elastic Transcoder](http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/api-reference.html),
    -[CloudFormation](http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/),
    -[Elastic Beanstalk](http://docs.aws.amazon.com/elasticbeanstalk/latest/api/),
    -[Storage Gateway](http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html),
    -[Data Pipeline](http://docs.aws.amazon.com/datapipeline/latest/APIReference/),
    -[Direct Connect](http://docs.aws.amazon.com/directconnect/latest/APIReference/),
    -[Redshift](http://docs.aws.amazon.com/redshift/latest/APIReference/),
    -[OpsWorks](http://docs.aws.amazon.com/opsworks/latest/APIReference/),
    -[SES](http://docs.aws.amazon.com/ses/latest/APIReference/),
    -[SWF](http://docs.aws.amazon.com/amazonswf/latest/apireference/),
    -[AutoScaling](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/),
    -[Mobile Analytics](http://docs.aws.amazon.com/mobileanalytics/latest/ug/server-reference.html),
    -[Cognito Identity](http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/),
    -[Cognito Sync](http://docs.aws.amazon.com/cognitosync/latest/APIReference/),
    -[Container Service](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/),
    -[AppStream](http://docs.aws.amazon.com/appstream/latest/developerguide/appstream-api-rest.html),
    -[Key Management Service](http://docs.aws.amazon.com/kms/latest/APIReference/),
    -[Config](http://docs.aws.amazon.com/config/latest/APIReference/),
    -[CloudHSM](http://docs.aws.amazon.com/cloudhsm/latest/dg/api-ref.html),
    -[Route53](http://docs.aws.amazon.com/Route53/latest/APIReference/requests-rest.html) and
    -[Route53 Domains](http://docs.aws.amazon.com/Route53/latest/APIReference/requests-rpc.html).
    -
    -Indeed, the only AWS services that *don't* support v4 as of 2014-12-30 are
    -[Import/Export](http://docs.aws.amazon.com/AWSImportExport/latest/DG/api-reference.html) and
    -[SimpleDB](http://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API.html)
    -(they only support [AWS Signature Version 2](https://github.com/mhart/aws2)).
    -
    -It also provides defaults for a number of core AWS headers and
    -request parameters, making it very easy to query AWS services, or
    -build out a fully-featured AWS library.
    -
    -Example
    --------
    -
    -```javascript
    -var http  = require('http'),
    -    https = require('https'),
    -    aws4  = require('aws4')
    -
    -// given an options object you could pass to http.request
    -var opts = {host: 'sqs.us-east-1.amazonaws.com', path: '/?Action=ListQueues'}
    -
    -// alternatively (as aws4 can infer the host):
    -opts = {service: 'sqs', region: 'us-east-1', path: '/?Action=ListQueues'}
    -
    -// alternatively (as us-east-1 is default):
    -opts = {service: 'sqs', path: '/?Action=ListQueues'}
    -
    -aws4.sign(opts) // assumes AWS credentials are available in process.env
    -
    -console.log(opts)
    -/*
    -{
    -  host: 'sqs.us-east-1.amazonaws.com',
    -  path: '/?Action=ListQueues',
    -  headers: {
    -    Host: 'sqs.us-east-1.amazonaws.com',
    -    'X-Amz-Date': '20121226T061030Z',
    -    Authorization: 'AWS4-HMAC-SHA256 Credential=ABCDEF/20121226/us-east-1/sqs/aws4_request, ...'
    -  }
    -}
    -*/
    -
    -// we can now use this to query AWS using the standard node.js http API
    -http.request(opts, function(res) { res.pipe(process.stdout) }).end()
    -/*
    -
    -
    -...
    -*/
    -```
    -
    -More options
    -------------
    -
    -```javascript
    -// you can also pass AWS credentials in explicitly (otherwise taken from process.env)
    -aws4.sign(opts, {accessKeyId: '', secretAccessKey: ''})
    -
    -// can also add the signature to query strings
    -aws4.sign({service: 's3', path: '/my-bucket?X-Amz-Expires=12345', signQuery: true})
    -
    -// create a utility function to pipe to stdout (with https this time)
    -function request(o) { https.request(o, function(res) { res.pipe(process.stdout) }).end(o.body || '') }
    -
    -// aws4 can infer the HTTP method if a body is passed in
    -// method will be POST and Content-Type: 'application/x-www-form-urlencoded; charset=utf-8'
    -request(aws4.sign({service: 'iam', body: 'Action=ListGroups&Version=2010-05-08'}))
    -/*
    -
    -...
    -*/
    -
    -// can specify any custom option or header as per usual
    -request(aws4.sign({
    -  service: 'dynamodb',
    -  region: 'ap-southeast-2',
    -  method: 'POST',
    -  path: '/',
    -  headers: {
    -    'Content-Type': 'application/x-amz-json-1.0',
    -    'X-Amz-Target': 'DynamoDB_20120810.ListTables'
    -  },
    -  body: '{}'
    -}))
    -/*
    -{"TableNames":[]}
    -...
    -*/
    -
    -// works with all other services that support Signature Version 4
    -
    -request(aws4.sign({service: 's3', path: '/', signQuery: true}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'ec2', path: '/?Action=DescribeRegions&Version=2014-06-15'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'sns', path: '/?Action=ListTopics&Version=2010-03-31'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'sts', path: '/?Action=GetSessionToken&Version=2011-06-15'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'cloudsearch', path: '/?Action=ListDomainNames&Version=2013-01-01'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'ses', path: '/?Action=ListIdentities&Version=2010-12-01'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'autoscaling', path: '/?Action=DescribeAutoScalingInstances&Version=2011-01-01'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'elasticloadbalancing', path: '/?Action=DescribeLoadBalancers&Version=2012-06-01'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'cloudformation', path: '/?Action=ListStacks&Version=2010-05-15'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'elasticbeanstalk', path: '/?Action=ListAvailableSolutionStacks&Version=2010-12-01'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'rds', path: '/?Action=DescribeDBInstances&Version=2012-09-17'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'monitoring', path: '/?Action=ListMetrics&Version=2010-08-01'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'redshift', path: '/?Action=DescribeClusters&Version=2012-12-01'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'cloudfront', path: '/2014-05-31/distribution'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'elasticache', path: '/?Action=DescribeCacheClusters&Version=2014-07-15'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'elasticmapreduce', path: '/?Action=DescribeJobFlows&Version=2009-03-31'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'route53', path: '/2013-04-01/hostedzone'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'appstream', path: '/applications'}))
    -/*
    -{"_links":{"curie":[{"href":"http://docs.aws.amazon.com/appstream/latest/...
    -...
    -*/
    -
    -request(aws4.sign({service: 'cognito-sync', path: '/identitypools'}))
    -/*
    -{"Count":0,"IdentityPoolUsages":[],"MaxResults":16,"NextToken":null}
    -...
    -*/
    -
    -request(aws4.sign({service: 'elastictranscoder', path: '/2012-09-25/pipelines'}))
    -/*
    -{"NextPageToken":null,"Pipelines":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'lambda', path: '/2014-11-13/functions/'}))
    -/*
    -{"Functions":[],"NextMarker":null}
    -...
    -*/
    -
    -request(aws4.sign({service: 'ecs', path: '/?Action=ListClusters&Version=2014-11-13'}))
    -/*
    -
    -...
    -*/
    -
    -request(aws4.sign({service: 'glacier', path: '/-/vaults', headers: {'X-Amz-Glacier-Version': '2012-06-01'}}))
    -/*
    -{"Marker":null,"VaultList":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'storagegateway', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'StorageGateway_20120630.ListGateways'
    -}}))
    -/*
    -{"Gateways":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'datapipeline', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'DataPipeline.ListPipelines'
    -}}))
    -/*
    -{"hasMoreResults":false,"pipelineIdList":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'opsworks', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'OpsWorks_20130218.DescribeStacks'
    -}}))
    -/*
    -{"Stacks":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'route53domains', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'Route53Domains_v20140515.ListDomains'
    -}}))
    -/*
    -{"Domains":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'kinesis', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'Kinesis_20131202.ListStreams'
    -}}))
    -/*
    -{"HasMoreStreams":false,"StreamNames":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'cloudtrail', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'CloudTrail_20131101.DescribeTrails'
    -}}))
    -/*
    -{"trailList":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'logs', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'Logs_20140328.DescribeLogGroups'
    -}}))
    -/*
    -{"logGroups":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'codedeploy', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'CodeDeploy_20141006.ListApplications'
    -}}))
    -/*
    -{"applications":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'directconnect', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'OvertureService.DescribeConnections'
    -}}))
    -/*
    -{"connections":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'kms', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'TrentService.ListKeys'
    -}}))
    -/*
    -{"Keys":[],"Truncated":false}
    -...
    -*/
    -
    -request(aws4.sign({service: 'config', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'StarlingDoveService.DescribeDeliveryChannels'
    -}}))
    -/*
    -{"DeliveryChannels":[]}
    -...
    -*/
    -
    -request(aws4.sign({service: 'cloudhsm', body: '{}', headers: {
    -  'Content-Type': 'application/x-amz-json-1.1',
    -  'X-Amz-Target': 'CloudHsmFrontendService.ListAvailableZones'
    -}}))
    -/*
    -{"AZList":["us-east-1a","us-east-1b","us-east-1c"]}
    -...
    -*/
    -
    -request(aws4.sign({
    -  service: 'swf',
    -  body: '{"registrationStatus":"REGISTERED"}',
    -  headers: {
    -    'Content-Type': 'application/x-amz-json-1.0',
    -    'X-Amz-Target': 'SimpleWorkflowService.ListDomains'
    -  }
    -}))
    -/*
    -{"domainInfos":[]}
    -...
    -*/
    -
    -request(aws4.sign({
    -  service: 'cognito-identity',
    -  body: '{"MaxResults": 1}',
    -  headers: {
    -    'Content-Type': 'application/x-amz-json-1.1',
    -    'X-Amz-Target': 'AWSCognitoIdentityService.ListIdentityPools'
    -  }
    -}))
    -/*
    -{"IdentityPools":[]}
    -...
    -*/
    -
    -request(aws4.sign({
    -  service: 'mobileanalytics',
    -  path: '/2014-06-05/events',
    -  body: JSON.stringify({events:[{
    -    eventType: 'a',
    -    timestamp: new Date().toISOString(),
    -    session: {},
    -  }]}),
    -  headers: {
    -    'Content-Type': 'application/json',
    -    'X-Amz-Client-Context': JSON.stringify({
    -      client: {client_id: 'a', app_title: 'a'},
    -      custom: {},
    -      env: {platform: 'a'},
    -      services: {},
    -    }),
    -  }
    -}))
    -/*
    -(HTTP 202, empty response)
    -*/
    -
    -// Generate CodeCommit Git access password
    -var signer = new aws4.RequestSigner({
    -  service: 'codecommit',
    -  host: 'git-codecommit.us-east-1.amazonaws.com',
    -  method: 'GIT',
    -  path: '/v1/repos/MyAwesomeRepo',
    -})
    -var password = signer.getDateTime() + 'Z' + signer.signature()
    -```
    -
    -API
    ----
    -
    -### aws4.sign(requestOptions, [credentials])
    -
    -This calculates and populates the `Authorization` header of
    -`requestOptions`, and any other necessary AWS headers and/or request
    -options. Returns `requestOptions` as a convenience for chaining.
    -
    -`requestOptions` is an object holding the same options that the node.js
    -[http.request](http://nodejs.org/docs/latest/api/http.html#http_http_request_options_callback)
    -function takes.
    -
    -The following properties of `requestOptions` are used in the signing or
    -populated if they don't already exist:
    -
    -- `hostname` or `host` (will be determined from `service` and `region` if not given)
    -- `method` (will use `'GET'` if not given or `'POST'` if there is a `body`)
    -- `path` (will use `'/'` if not given)
    -- `body` (will use `''` if not given)
    -- `service` (will be calculated from `hostname` or `host` if not given)
    -- `region` (will be calculated from `hostname` or `host` or use `'us-east-1'` if not given)
    -- `headers['Host']` (will use `hostname` or `host` or be calculated if not given)
    -- `headers['Content-Type']` (will use `'application/x-www-form-urlencoded; charset=utf-8'`
    -  if not given and there is a `body`)
    -- `headers['Date']` (used to calculate the signature date if given, otherwise `new Date` is used)
    -
    -Your AWS credentials (which can be found in your
    -[AWS console](https://portal.aws.amazon.com/gp/aws/securityCredentials))
    -can be specified in one of two ways:
    -
    -- As the second argument, like this:
    -
    -```javascript
    -aws4.sign(requestOptions, {
    -  secretAccessKey: "",
    -  accessKeyId: "",
    -  sessionToken: ""
    -})
    -```
    -
    -- From `process.env`, such as this:
    -
    -```
    -export AWS_SECRET_ACCESS_KEY=""
    -export AWS_ACCESS_KEY_ID=""
    -export AWS_SESSION_TOKEN=""
    -```
    -
    -(will also use `AWS_ACCESS_KEY` and `AWS_SECRET_KEY` if available)
    -
    -The `sessionToken` property and `AWS_SESSION_TOKEN` environment variable are optional for signing
    -with [IAM STS temporary credentials](http://docs.aws.amazon.com/STS/latest/UsingSTS/using-temp-creds.html).
    -
    -Installation
    -------------
    -
    -With [npm](http://npmjs.org/) do:
    -
    -```
    -npm install aws4
    -```
    -
    -Can also be used [in the browser](./browser).
    -
    -Thanks
    -------
    -
    -Thanks to [@jed](https://github.com/jed) for his
    -[dynamo-client](https://github.com/jed/dynamo-client) lib where I first
    -committed and subsequently extracted this code.
    -
    -Also thanks to the
    -[official node.js AWS SDK](https://github.com/aws/aws-sdk-js) for giving
    -me a start on implementing the v4 signature.
    -
    diff --git a/node_modules/fsevents/node_modules/aws4/aws4.js b/node_modules/fsevents/node_modules/aws4/aws4.js
    deleted file mode 100644
    index 0cff0f0..0000000
    --- a/node_modules/fsevents/node_modules/aws4/aws4.js
    +++ /dev/null
    @@ -1,332 +0,0 @@
    -var aws4 = exports,
    -    url = require('url'),
    -    querystring = require('querystring'),
    -    crypto = require('crypto'),
    -    lru = require('./lru'),
    -    credentialsCache = lru(1000)
    -
    -// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html
    -
    -function hmac(key, string, encoding) {
    -  return crypto.createHmac('sha256', key).update(string, 'utf8').digest(encoding)
    -}
    -
    -function hash(string, encoding) {
    -  return crypto.createHash('sha256').update(string, 'utf8').digest(encoding)
    -}
    -
    -// This function assumes the string has already been percent encoded
    -function encodeRfc3986(urlEncodedString) {
    -  return urlEncodedString.replace(/[!'()*]/g, function(c) {
    -    return '%' + c.charCodeAt(0).toString(16).toUpperCase()
    -  })
    -}
    -
    -// request: { path | body, [host], [method], [headers], [service], [region] }
    -// credentials: { accessKeyId, secretAccessKey, [sessionToken] }
    -function RequestSigner(request, credentials) {
    -
    -  if (typeof request === 'string') request = url.parse(request)
    -
    -  var headers = request.headers = (request.headers || {}),
    -      hostParts = this.matchHost(request.hostname || request.host || headers.Host || headers.host)
    -
    -  this.request = request
    -  this.credentials = credentials || this.defaultCredentials()
    -
    -  this.service = request.service || hostParts[0] || ''
    -  this.region = request.region || hostParts[1] || 'us-east-1'
    -
    -  // SES uses a different domain from the service name
    -  if (this.service === 'email') this.service = 'ses'
    -
    -  if (!request.method && request.body)
    -    request.method = 'POST'
    -
    -  if (!headers.Host && !headers.host) {
    -    headers.Host = request.hostname || request.host || this.createHost()
    -
    -    // If a port is specified explicitly, use it as is
    -    if (request.port)
    -      headers.Host += ':' + request.port
    -  }
    -  if (!request.hostname && !request.host)
    -    request.hostname = headers.Host || headers.host
    -
    -  this.isCodeCommitGit = this.service === 'codecommit' && request.method === 'GIT'
    -}
    -
    -RequestSigner.prototype.matchHost = function(host) {
    -  var match = (host || '').match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com$/)
    -  var hostParts = (match || []).slice(1, 3)
    -
    -  // ES's hostParts are sometimes the other way round, if the value that is expected
    -  // to be region equals ‘es’ switch them back
    -  // e.g. search-cluster-name-aaaa00aaaa0aaa0aaaaaaa0aaa.us-east-1.es.amazonaws.com
    -  if (hostParts[1] === 'es')
    -    hostParts = hostParts.reverse()
    -
    -  return hostParts
    -}
    -
    -// http://docs.aws.amazon.com/general/latest/gr/rande.html
    -RequestSigner.prototype.isSingleRegion = function() {
    -  // Special case for S3 and SimpleDB in us-east-1
    -  if (['s3', 'sdb'].indexOf(this.service) >= 0 && this.region === 'us-east-1') return true
    -
    -  return ['cloudfront', 'ls', 'route53', 'iam', 'importexport', 'sts']
    -    .indexOf(this.service) >= 0
    -}
    -
    -RequestSigner.prototype.createHost = function() {
    -  var region = this.isSingleRegion() ? '' :
    -        (this.service === 's3' && this.region !== 'us-east-1' ? '-' : '.') + this.region,
    -      service = this.service === 'ses' ? 'email' : this.service
    -  return service + region + '.amazonaws.com'
    -}
    -
    -RequestSigner.prototype.prepareRequest = function() {
    -  this.parsePath()
    -
    -  var request = this.request, headers = request.headers, query
    -
    -  if (request.signQuery) {
    -
    -    this.parsedPath.query = query = this.parsedPath.query || {}
    -
    -    if (this.credentials.sessionToken)
    -      query['X-Amz-Security-Token'] = this.credentials.sessionToken
    -
    -    if (this.service === 's3' && !query['X-Amz-Expires'])
    -      query['X-Amz-Expires'] = 86400
    -
    -    if (query['X-Amz-Date'])
    -      this.datetime = query['X-Amz-Date']
    -    else
    -      query['X-Amz-Date'] = this.getDateTime()
    -
    -    query['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256'
    -    query['X-Amz-Credential'] = this.credentials.accessKeyId + '/' + this.credentialString()
    -    query['X-Amz-SignedHeaders'] = this.signedHeaders()
    -
    -  } else {
    -
    -    if (!request.doNotModifyHeaders && !this.isCodeCommitGit) {
    -      if (request.body && !headers['Content-Type'] && !headers['content-type'])
    -        headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8'
    -
    -      if (request.body && !headers['Content-Length'] && !headers['content-length'])
    -        headers['Content-Length'] = Buffer.byteLength(request.body)
    -
    -      if (this.credentials.sessionToken && !headers['X-Amz-Security-Token'] && !headers['x-amz-security-token'])
    -        headers['X-Amz-Security-Token'] = this.credentials.sessionToken
    -
    -      if (this.service === 's3' && !headers['X-Amz-Content-Sha256'] && !headers['x-amz-content-sha256'])
    -        headers['X-Amz-Content-Sha256'] = hash(this.request.body || '', 'hex')
    -
    -      if (headers['X-Amz-Date'] || headers['x-amz-date'])
    -        this.datetime = headers['X-Amz-Date'] || headers['x-amz-date']
    -      else
    -        headers['X-Amz-Date'] = this.getDateTime()
    -    }
    -
    -    delete headers.Authorization
    -    delete headers.authorization
    -  }
    -}
    -
    -RequestSigner.prototype.sign = function() {
    -  if (!this.parsedPath) this.prepareRequest()
    -
    -  if (this.request.signQuery) {
    -    this.parsedPath.query['X-Amz-Signature'] = this.signature()
    -  } else {
    -    this.request.headers.Authorization = this.authHeader()
    -  }
    -
    -  this.request.path = this.formatPath()
    -
    -  return this.request
    -}
    -
    -RequestSigner.prototype.getDateTime = function() {
    -  if (!this.datetime) {
    -    var headers = this.request.headers,
    -      date = new Date(headers.Date || headers.date || new Date)
    -
    -    this.datetime = date.toISOString().replace(/[:\-]|\.\d{3}/g, '')
    -
    -    // Remove the trailing 'Z' on the timestamp string for CodeCommit git access
    -    if (this.isCodeCommitGit) this.datetime = this.datetime.slice(0, -1)
    -  }
    -  return this.datetime
    -}
    -
    -RequestSigner.prototype.getDate = function() {
    -  return this.getDateTime().substr(0, 8)
    -}
    -
    -RequestSigner.prototype.authHeader = function() {
    -  return [
    -    'AWS4-HMAC-SHA256 Credential=' + this.credentials.accessKeyId + '/' + this.credentialString(),
    -    'SignedHeaders=' + this.signedHeaders(),
    -    'Signature=' + this.signature(),
    -  ].join(', ')
    -}
    -
    -RequestSigner.prototype.signature = function() {
    -  var date = this.getDate(),
    -      cacheKey = [this.credentials.secretAccessKey, date, this.region, this.service].join(),
    -      kDate, kRegion, kService, kCredentials = credentialsCache.get(cacheKey)
    -  if (!kCredentials) {
    -    kDate = hmac('AWS4' + this.credentials.secretAccessKey, date)
    -    kRegion = hmac(kDate, this.region)
    -    kService = hmac(kRegion, this.service)
    -    kCredentials = hmac(kService, 'aws4_request')
    -    credentialsCache.set(cacheKey, kCredentials)
    -  }
    -  return hmac(kCredentials, this.stringToSign(), 'hex')
    -}
    -
    -RequestSigner.prototype.stringToSign = function() {
    -  return [
    -    'AWS4-HMAC-SHA256',
    -    this.getDateTime(),
    -    this.credentialString(),
    -    hash(this.canonicalString(), 'hex'),
    -  ].join('\n')
    -}
    -
    -RequestSigner.prototype.canonicalString = function() {
    -  if (!this.parsedPath) this.prepareRequest()
    -
    -  var pathStr = this.parsedPath.path,
    -      query = this.parsedPath.query,
    -      headers = this.request.headers,
    -      queryStr = '',
    -      normalizePath = this.service !== 's3',
    -      decodePath = this.service === 's3' || this.request.doNotEncodePath,
    -      decodeSlashesInPath = this.service === 's3',
    -      firstValOnly = this.service === 's3',
    -      bodyHash
    -
    -  if (this.service === 's3' && this.request.signQuery) {
    -    bodyHash = 'UNSIGNED-PAYLOAD'
    -  } else if (this.isCodeCommitGit) {
    -    bodyHash = ''
    -  } else {
    -    bodyHash = headers['X-Amz-Content-Sha256'] || headers['x-amz-content-sha256'] ||
    -      hash(this.request.body || '', 'hex')
    -  }
    -
    -  if (query) {
    -    queryStr = encodeRfc3986(querystring.stringify(Object.keys(query).sort().reduce(function(obj, key) {
    -      if (!key) return obj
    -      obj[key] = !Array.isArray(query[key]) ? query[key] :
    -        (firstValOnly ? query[key][0] : query[key].slice().sort())
    -      return obj
    -    }, {})))
    -  }
    -  if (pathStr !== '/') {
    -    if (normalizePath) pathStr = pathStr.replace(/\/{2,}/g, '/')
    -    pathStr = pathStr.split('/').reduce(function(path, piece) {
    -      if (normalizePath && piece === '..') {
    -        path.pop()
    -      } else if (!normalizePath || piece !== '.') {
    -        if (decodePath) piece = querystring.unescape(piece)
    -        path.push(encodeRfc3986(querystring.escape(piece)))
    -      }
    -      return path
    -    }, []).join('/')
    -    if (pathStr[0] !== '/') pathStr = '/' + pathStr
    -    if (decodeSlashesInPath) pathStr = pathStr.replace(/%2F/g, '/')
    -  }
    -
    -  return [
    -    this.request.method || 'GET',
    -    pathStr,
    -    queryStr,
    -    this.canonicalHeaders() + '\n',
    -    this.signedHeaders(),
    -    bodyHash,
    -  ].join('\n')
    -}
    -
    -RequestSigner.prototype.canonicalHeaders = function() {
    -  var headers = this.request.headers
    -  function trimAll(header) {
    -    return header.toString().trim().replace(/\s+/g, ' ')
    -  }
    -  return Object.keys(headers)
    -    .sort(function(a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1 })
    -    .map(function(key) { return key.toLowerCase() + ':' + trimAll(headers[key]) })
    -    .join('\n')
    -}
    -
    -RequestSigner.prototype.signedHeaders = function() {
    -  return Object.keys(this.request.headers)
    -    .map(function(key) { return key.toLowerCase() })
    -    .sort()
    -    .join(';')
    -}
    -
    -RequestSigner.prototype.credentialString = function() {
    -  return [
    -    this.getDate(),
    -    this.region,
    -    this.service,
    -    'aws4_request',
    -  ].join('/')
    -}
    -
    -RequestSigner.prototype.defaultCredentials = function() {
    -  var env = process.env
    -  return {
    -    accessKeyId: env.AWS_ACCESS_KEY_ID || env.AWS_ACCESS_KEY,
    -    secretAccessKey: env.AWS_SECRET_ACCESS_KEY || env.AWS_SECRET_KEY,
    -    sessionToken: env.AWS_SESSION_TOKEN,
    -  }
    -}
    -
    -RequestSigner.prototype.parsePath = function() {
    -  var path = this.request.path || '/',
    -      queryIx = path.indexOf('?'),
    -      query = null
    -
    -  if (queryIx >= 0) {
    -    query = querystring.parse(path.slice(queryIx + 1))
    -    path = path.slice(0, queryIx)
    -  }
    -
    -  // S3 doesn't always encode characters > 127 correctly and
    -  // all services don't encode characters > 255 correctly
    -  // So if there are non-reserved chars (and it's not already all % encoded), just encode them all
    -  if (/[^0-9A-Za-z!'()*\-._~%/]/.test(path)) {
    -    path = path.split('/').map(function(piece) {
    -      return querystring.escape(querystring.unescape(piece))
    -    }).join('/')
    -  }
    -
    -  this.parsedPath = {
    -    path: path,
    -    query: query,
    -  }
    -}
    -
    -RequestSigner.prototype.formatPath = function() {
    -  var path = this.parsedPath.path,
    -      query = this.parsedPath.query
    -
    -  if (!query) return path
    -
    -  // Services don't support empty query string keys
    -  if (query[''] != null) delete query['']
    -
    -  return path + '?' + encodeRfc3986(querystring.stringify(query))
    -}
    -
    -aws4.RequestSigner = RequestSigner
    -
    -aws4.sign = function(request, credentials) {
    -  return new RequestSigner(request, credentials).sign()
    -}
    diff --git a/node_modules/fsevents/node_modules/aws4/lru.js b/node_modules/fsevents/node_modules/aws4/lru.js
    deleted file mode 100644
    index 333f66a..0000000
    --- a/node_modules/fsevents/node_modules/aws4/lru.js
    +++ /dev/null
    @@ -1,96 +0,0 @@
    -module.exports = function(size) {
    -  return new LruCache(size)
    -}
    -
    -function LruCache(size) {
    -  this.capacity = size | 0
    -  this.map = Object.create(null)
    -  this.list = new DoublyLinkedList()
    -}
    -
    -LruCache.prototype.get = function(key) {
    -  var node = this.map[key]
    -  if (node == null) return undefined
    -  this.used(node)
    -  return node.val
    -}
    -
    -LruCache.prototype.set = function(key, val) {
    -  var node = this.map[key]
    -  if (node != null) {
    -    node.val = val
    -  } else {
    -    if (!this.capacity) this.prune()
    -    if (!this.capacity) return false
    -    node = new DoublyLinkedNode(key, val)
    -    this.map[key] = node
    -    this.capacity--
    -  }
    -  this.used(node)
    -  return true
    -}
    -
    -LruCache.prototype.used = function(node) {
    -  this.list.moveToFront(node)
    -}
    -
    -LruCache.prototype.prune = function() {
    -  var node = this.list.pop()
    -  if (node != null) {
    -    delete this.map[node.key]
    -    this.capacity++
    -  }
    -}
    -
    -
    -function DoublyLinkedList() {
    -  this.firstNode = null
    -  this.lastNode = null
    -}
    -
    -DoublyLinkedList.prototype.moveToFront = function(node) {
    -  if (this.firstNode == node) return
    -
    -  this.remove(node)
    -
    -  if (this.firstNode == null) {
    -    this.firstNode = node
    -    this.lastNode = node
    -    node.prev = null
    -    node.next = null
    -  } else {
    -    node.prev = null
    -    node.next = this.firstNode
    -    node.next.prev = node
    -    this.firstNode = node
    -  }
    -}
    -
    -DoublyLinkedList.prototype.pop = function() {
    -  var lastNode = this.lastNode
    -  if (lastNode != null) {
    -    this.remove(lastNode)
    -  }
    -  return lastNode
    -}
    -
    -DoublyLinkedList.prototype.remove = function(node) {
    -  if (this.firstNode == node) {
    -    this.firstNode = node.next
    -  } else if (node.prev != null) {
    -    node.prev.next = node.next
    -  }
    -  if (this.lastNode == node) {
    -    this.lastNode = node.prev
    -  } else if (node.next != null) {
    -    node.next.prev = node.prev
    -  }
    -}
    -
    -
    -function DoublyLinkedNode(key, val) {
    -  this.key = key
    -  this.val = val
    -  this.prev = null
    -  this.next = null
    -}
    diff --git a/node_modules/fsevents/node_modules/aws4/package.json b/node_modules/fsevents/node_modules/aws4/package.json
    deleted file mode 100644
    index fbcb6b1..0000000
    --- a/node_modules/fsevents/node_modules/aws4/package.json
    +++ /dev/null
    @@ -1,140 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "aws4@^1.2.1",
    -        "scope": null,
    -        "escapedName": "aws4",
    -        "name": "aws4",
    -        "rawSpec": "^1.2.1",
    -        "spec": ">=1.2.1 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/request"
    -    ]
    -  ],
    -  "_from": "aws4@>=1.2.1 <2.0.0",
    -  "_id": "aws4@1.6.0",
    -  "_inCache": true,
    -  "_location": "/fsevents/aws4",
    -  "_nodeVersion": "4.5.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-18-east.internal.npmjs.com",
    -    "tmp": "tmp/aws4-1.6.0.tgz_1486481933920_0.6127187723759562"
    -  },
    -  "_npmUser": {
    -    "name": "hichaelmart",
    -    "email": "michael.hart.au@gmail.com"
    -  },
    -  "_npmVersion": "4.0.5",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "aws4@^1.2.1",
    -    "scope": null,
    -    "escapedName": "aws4",
    -    "name": "aws4",
    -    "rawSpec": "^1.2.1",
    -    "spec": ">=1.2.1 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/request"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz",
    -  "_shasum": "83ef5ca860b2b32e4a0deedee8c771b9db57471e",
    -  "_shrinkwrap": null,
    -  "_spec": "aws4@^1.2.1",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/request",
    -  "author": {
    -    "name": "Michael Hart",
    -    "email": "michael.hart.au@gmail.com",
    -    "url": "http://github.com/mhart"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/mhart/aws4/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Signs and prepares requests using AWS Signature Version 4",
    -  "devDependencies": {
    -    "mocha": "^2.4.5",
    -    "should": "^8.2.2"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "83ef5ca860b2b32e4a0deedee8c771b9db57471e",
    -    "tarball": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz"
    -  },
    -  "gitHead": "74bf0b64d1e8cbcd184964999c7ef53f52d7ad32",
    -  "homepage": "https://github.com/mhart/aws4#readme",
    -  "keywords": [
    -    "amazon",
    -    "aws",
    -    "signature",
    -    "s3",
    -    "ec2",
    -    "autoscaling",
    -    "cloudformation",
    -    "elasticloadbalancing",
    -    "elb",
    -    "elasticbeanstalk",
    -    "cloudsearch",
    -    "dynamodb",
    -    "kinesis",
    -    "lambda",
    -    "glacier",
    -    "sqs",
    -    "sns",
    -    "iam",
    -    "sts",
    -    "ses",
    -    "swf",
    -    "storagegateway",
    -    "datapipeline",
    -    "directconnect",
    -    "redshift",
    -    "opsworks",
    -    "rds",
    -    "monitoring",
    -    "cloudtrail",
    -    "cloudfront",
    -    "codedeploy",
    -    "elasticache",
    -    "elasticmapreduce",
    -    "elastictranscoder",
    -    "emr",
    -    "cloudwatch",
    -    "mobileanalytics",
    -    "cognitoidentity",
    -    "cognitosync",
    -    "cognito",
    -    "containerservice",
    -    "ecs",
    -    "appstream",
    -    "keymanagementservice",
    -    "kms",
    -    "config",
    -    "cloudhsm",
    -    "route53",
    -    "route53domains",
    -    "logs"
    -  ],
    -  "license": "MIT",
    -  "main": "aws4.js",
    -  "maintainers": [
    -    {
    -      "name": "hichaelmart",
    -      "email": "michael.hart.au@gmail.com"
    -    }
    -  ],
    -  "name": "aws4",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/mhart/aws4.git"
    -  },
    -  "scripts": {
    -    "test": "mocha ./test/fast.js ./test/slow.js -b -t 100s -R list"
    -  },
    -  "version": "1.6.0"
    -}
    diff --git a/node_modules/fsevents/node_modules/balanced-match/.npmignore b/node_modules/fsevents/node_modules/balanced-match/.npmignore
    deleted file mode 100644
    index ae5d8c3..0000000
    --- a/node_modules/fsevents/node_modules/balanced-match/.npmignore
    +++ /dev/null
    @@ -1,5 +0,0 @@
    -test
    -.gitignore
    -.travis.yml
    -Makefile
    -example.js
    diff --git a/node_modules/fsevents/node_modules/balanced-match/LICENSE.md b/node_modules/fsevents/node_modules/balanced-match/LICENSE.md
    deleted file mode 100644
    index 2cdc8e4..0000000
    --- a/node_modules/fsevents/node_modules/balanced-match/LICENSE.md
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -(MIT)
    -
    -Copyright (c) 2013 Julian Gruber <julian@juliangruber.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/fsevents/node_modules/balanced-match/README.md b/node_modules/fsevents/node_modules/balanced-match/README.md
    deleted file mode 100644
    index 08e918c..0000000
    --- a/node_modules/fsevents/node_modules/balanced-match/README.md
    +++ /dev/null
    @@ -1,91 +0,0 @@
    -# balanced-match
    -
    -Match balanced string pairs, like `{` and `}` or `` and ``. Supports regular expressions as well!
    -
    -[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match)
    -[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match)
    -
    -[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match)
    -
    -## Example
    -
    -Get the first matching pair of braces:
    -
    -```js
    -var balanced = require('balanced-match');
    -
    -console.log(balanced('{', '}', 'pre{in{nested}}post'));
    -console.log(balanced('{', '}', 'pre{first}between{second}post'));
    -console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre  {   in{nest}   }  post'));
    -```
    -
    -The matches are:
    -
    -```bash
    -$ node example.js
    -{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' }
    -{ start: 3,
    -  end: 9,
    -  pre: 'pre',
    -  body: 'first',
    -  post: 'between{second}post' }
    -{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' }
    -```
    -
    -## API
    -
    -### var m = balanced(a, b, str)
    -
    -For the first non-nested matching pair of `a` and `b` in `str`, return an
    -object with those keys:
    -
    -* **start** the index of the first match of `a`
    -* **end** the index of the matching `b`
    -* **pre** the preamble, `a` and `b` not included
    -* **body** the match, `a` and `b` not included
    -* **post** the postscript, `a` and `b` not included
    -
    -If there's no match, `undefined` will be returned.
    -
    -If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`.
    -
    -### var r = balanced.range(a, b, str)
    -
    -For the first non-nested matching pair of `a` and `b` in `str`, return an
    -array with indexes: `[ ,  ]`.
    -
    -If there's no match, `undefined` will be returned.
    -
    -If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`.
    -
    -## Installation
    -
    -With [npm](https://npmjs.org) do:
    -
    -```bash
    -npm install balanced-match
    -```
    -
    -## License
    -
    -(MIT)
    -
    -Copyright (c) 2013 Julian Gruber <julian@juliangruber.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/fsevents/node_modules/balanced-match/index.js b/node_modules/fsevents/node_modules/balanced-match/index.js
    deleted file mode 100644
    index e8d8587..0000000
    --- a/node_modules/fsevents/node_modules/balanced-match/index.js
    +++ /dev/null
    @@ -1,58 +0,0 @@
    -module.exports = balanced;
    -function balanced(a, b, str) {
    -  if (a instanceof RegExp) a = maybeMatch(a, str);
    -  if (b instanceof RegExp) b = maybeMatch(b, str);
    -
    -  var r = range(a, b, str);
    -
    -  return r && {
    -    start: r[0],
    -    end: r[1],
    -    pre: str.slice(0, r[0]),
    -    body: str.slice(r[0] + a.length, r[1]),
    -    post: str.slice(r[1] + b.length)
    -  };
    -}
    -
    -function maybeMatch(reg, str) {
    -  var m = str.match(reg);
    -  return m ? m[0] : null;
    -}
    -
    -balanced.range = range;
    -function range(a, b, str) {
    -  var begs, beg, left, right, result;
    -  var ai = str.indexOf(a);
    -  var bi = str.indexOf(b, ai + 1);
    -  var i = ai;
    -
    -  if (ai >= 0 && bi > 0) {
    -    begs = [];
    -    left = str.length;
    -
    -    while (i >= 0 && !result) {
    -      if (i == ai) {
    -        begs.push(i);
    -        ai = str.indexOf(a, i + 1);
    -      } else if (begs.length == 1) {
    -        result = [ begs.pop(), bi ];
    -      } else {
    -        beg = begs.pop();
    -        if (beg < left) {
    -          left = beg;
    -          right = bi;
    -        }
    -
    -        bi = str.indexOf(b, i + 1);
    -      }
    -
    -      i = ai < bi && ai >= 0 ? ai : bi;
    -    }
    -
    -    if (begs.length) {
    -      result = [ left, right ];
    -    }
    -  }
    -
    -  return result;
    -}
    diff --git a/node_modules/fsevents/node_modules/balanced-match/package.json b/node_modules/fsevents/node_modules/balanced-match/package.json
    deleted file mode 100644
    index 5d36223..0000000
    --- a/node_modules/fsevents/node_modules/balanced-match/package.json
    +++ /dev/null
    @@ -1,110 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "balanced-match@^0.4.1",
    -        "scope": null,
    -        "escapedName": "balanced-match",
    -        "name": "balanced-match",
    -        "rawSpec": "^0.4.1",
    -        "spec": ">=0.4.1 <0.5.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/brace-expansion"
    -    ]
    -  ],
    -  "_from": "balanced-match@>=0.4.1 <0.5.0",
    -  "_id": "balanced-match@0.4.2",
    -  "_inCache": true,
    -  "_location": "/fsevents/balanced-match",
    -  "_nodeVersion": "4.4.7",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/balanced-match-0.4.2.tgz_1468834991581_0.6590619895141572"
    -  },
    -  "_npmUser": {
    -    "name": "juliangruber",
    -    "email": "julian@juliangruber.com"
    -  },
    -  "_npmVersion": "2.15.8",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "balanced-match@^0.4.1",
    -    "scope": null,
    -    "escapedName": "balanced-match",
    -    "name": "balanced-match",
    -    "rawSpec": "^0.4.1",
    -    "spec": ">=0.4.1 <0.5.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/brace-expansion"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz",
    -  "_shasum": "cb3f3e3c732dc0f01ee70b403f302e61d7709838",
    -  "_shrinkwrap": null,
    -  "_spec": "balanced-match@^0.4.1",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/brace-expansion",
    -  "author": {
    -    "name": "Julian Gruber",
    -    "email": "mail@juliangruber.com",
    -    "url": "http://juliangruber.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/juliangruber/balanced-match/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Match balanced character pairs, like \"{\" and \"}\"",
    -  "devDependencies": {
    -    "tape": "^4.6.0"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "cb3f3e3c732dc0f01ee70b403f302e61d7709838",
    -    "tarball": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz"
    -  },
    -  "gitHead": "57c2ea29d89a2844ae3bdcc637c6e2cbb73725e2",
    -  "homepage": "https://github.com/juliangruber/balanced-match",
    -  "keywords": [
    -    "match",
    -    "regexp",
    -    "test",
    -    "balanced",
    -    "parse"
    -  ],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "juliangruber",
    -      "email": "julian@juliangruber.com"
    -    }
    -  ],
    -  "name": "balanced-match",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/juliangruber/balanced-match.git"
    -  },
    -  "scripts": {
    -    "test": "make test"
    -  },
    -  "testling": {
    -    "files": "test/*.js",
    -    "browsers": [
    -      "ie/8..latest",
    -      "firefox/20..latest",
    -      "firefox/nightly",
    -      "chrome/25..latest",
    -      "chrome/canary",
    -      "opera/12..latest",
    -      "opera/next",
    -      "safari/5.1..latest",
    -      "ipad/6.0..latest",
    -      "iphone/6.0..latest",
    -      "android-browser/4.2..latest"
    -    ]
    -  },
    -  "version": "0.4.2"
    -}
    diff --git a/node_modules/fsevents/node_modules/bcrypt-pbkdf/README.md b/node_modules/fsevents/node_modules/bcrypt-pbkdf/README.md
    deleted file mode 100644
    index 1201809..0000000
    --- a/node_modules/fsevents/node_modules/bcrypt-pbkdf/README.md
    +++ /dev/null
    @@ -1,39 +0,0 @@
    -Port of the OpenBSD `bcrypt_pbkdf` function to pure Javascript. `npm`-ified
    -version of [Devi Mandiri's port]
    -(https://github.com/devi/tmp/blob/master/js/bcrypt_pbkdf.js),
    -with some minor performance improvements. The code is copied verbatim (and
    -un-styled) from Devi's work.
    -
    -This product includes software developed by Niels Provos.
    -
    -## API
    -
    -### `bcrypt_pbkdf.pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds)`
    -
    -Derive a cryptographic key of arbitrary length from a given password and salt,
    -using the OpenBSD `bcrypt_pbkdf` function. This is a combination of Blowfish and
    -SHA-512.
    -
    -See [this article](http://www.tedunangst.com/flak/post/bcrypt-pbkdf) for
    -further information.
    -
    -Parameters:
    -
    - * `pass`, a Uint8Array of length `passlen`
    - * `passlen`, an integer Number
    - * `salt`, a Uint8Array of length `saltlen`
    - * `saltlen`, an integer Number
    - * `key`, a Uint8Array of length `keylen`, will be filled with output
    - * `keylen`, an integer Number
    - * `rounds`, an integer Number, number of rounds of the PBKDF to run
    -
    -### `bcrypt_pbkdf.hash(sha2pass, sha2salt, out)`
    -
    -Calculate a Blowfish hash, given SHA2-512 output of a password and salt. Used as
    -part of the inner round function in the PBKDF.
    -
    -Parameters:
    -
    - * `sha2pass`, a Uint8Array of length 64
    - * `sha2salt`, a Uint8Array of length 64
    - * `out`, a Uint8Array of length 32, will be filled with output
    diff --git a/node_modules/fsevents/node_modules/bcrypt-pbkdf/index.js b/node_modules/fsevents/node_modules/bcrypt-pbkdf/index.js
    deleted file mode 100644
    index b1b5ad4..0000000
    --- a/node_modules/fsevents/node_modules/bcrypt-pbkdf/index.js
    +++ /dev/null
    @@ -1,556 +0,0 @@
    -'use strict';
    -
    -var crypto_hash_sha512 = require('tweetnacl').lowlevel.crypto_hash;
    -
    -/*
    - * This file is a 1:1 port from the OpenBSD blowfish.c and bcrypt_pbkdf.c. As a
    - * result, it retains the original copyright and license. The two files are
    - * under slightly different (but compatible) licenses, and are here combined in
    - * one file.
    - *
    - * Credit for the actual porting work goes to:
    - *  Devi Mandiri 
    - */
    -
    -/*
    - * The Blowfish portions are under the following license:
    - *
    - * Blowfish block cipher for OpenBSD
    - * Copyright 1997 Niels Provos 
    - * All rights reserved.
    - *
    - * Implementation advice by David Mazieres .
    - *
    - * Redistribution and use in source and binary forms, with or without
    - * modification, are permitted provided that the following conditions
    - * are met:
    - * 1. Redistributions of source code must retain the above copyright
    - *    notice, this list of conditions and the following disclaimer.
    - * 2. 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.
    - * 3. The name of the author may not be used to endorse or promote products
    - *    derived from this software without specific prior written permission.
    - *
    - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
    - */
    -
    -/*
    - * The bcrypt_pbkdf portions are under the following license:
    - *
    - * Copyright (c) 2013 Ted Unangst 
    - *
    - * Permission to use, copy, modify, and 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.
    - */
    -
    -/*
    - * Performance improvements (Javascript-specific):
    - *
    - * Copyright 2016, Joyent Inc
    - * Author: Alex Wilson 
    - *
    - * Permission to use, copy, modify, and 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.
    - */
    -
    -// Ported from OpenBSD bcrypt_pbkdf.c v1.9
    -
    -var BLF_J = 0;
    -
    -var Blowfish = function() {
    -  this.S = [
    -    new Uint32Array([
    -      0xd1310ba6, 0x98dfb5ac, 0x2ffd72db, 0xd01adfb7,
    -      0xb8e1afed, 0x6a267e96, 0xba7c9045, 0xf12c7f99,
    -      0x24a19947, 0xb3916cf7, 0x0801f2e2, 0x858efc16,
    -      0x636920d8, 0x71574e69, 0xa458fea3, 0xf4933d7e,
    -      0x0d95748f, 0x728eb658, 0x718bcd58, 0x82154aee,
    -      0x7b54a41d, 0xc25a59b5, 0x9c30d539, 0x2af26013,
    -      0xc5d1b023, 0x286085f0, 0xca417918, 0xb8db38ef,
    -      0x8e79dcb0, 0x603a180e, 0x6c9e0e8b, 0xb01e8a3e,
    -      0xd71577c1, 0xbd314b27, 0x78af2fda, 0x55605c60,
    -      0xe65525f3, 0xaa55ab94, 0x57489862, 0x63e81440,
    -      0x55ca396a, 0x2aab10b6, 0xb4cc5c34, 0x1141e8ce,
    -      0xa15486af, 0x7c72e993, 0xb3ee1411, 0x636fbc2a,
    -      0x2ba9c55d, 0x741831f6, 0xce5c3e16, 0x9b87931e,
    -      0xafd6ba33, 0x6c24cf5c, 0x7a325381, 0x28958677,
    -      0x3b8f4898, 0x6b4bb9af, 0xc4bfe81b, 0x66282193,
    -      0x61d809cc, 0xfb21a991, 0x487cac60, 0x5dec8032,
    -      0xef845d5d, 0xe98575b1, 0xdc262302, 0xeb651b88,
    -      0x23893e81, 0xd396acc5, 0x0f6d6ff3, 0x83f44239,
    -      0x2e0b4482, 0xa4842004, 0x69c8f04a, 0x9e1f9b5e,
    -      0x21c66842, 0xf6e96c9a, 0x670c9c61, 0xabd388f0,
    -      0x6a51a0d2, 0xd8542f68, 0x960fa728, 0xab5133a3,
    -      0x6eef0b6c, 0x137a3be4, 0xba3bf050, 0x7efb2a98,
    -      0xa1f1651d, 0x39af0176, 0x66ca593e, 0x82430e88,
    -      0x8cee8619, 0x456f9fb4, 0x7d84a5c3, 0x3b8b5ebe,
    -      0xe06f75d8, 0x85c12073, 0x401a449f, 0x56c16aa6,
    -      0x4ed3aa62, 0x363f7706, 0x1bfedf72, 0x429b023d,
    -      0x37d0d724, 0xd00a1248, 0xdb0fead3, 0x49f1c09b,
    -      0x075372c9, 0x80991b7b, 0x25d479d8, 0xf6e8def7,
    -      0xe3fe501a, 0xb6794c3b, 0x976ce0bd, 0x04c006ba,
    -      0xc1a94fb6, 0x409f60c4, 0x5e5c9ec2, 0x196a2463,
    -      0x68fb6faf, 0x3e6c53b5, 0x1339b2eb, 0x3b52ec6f,
    -      0x6dfc511f, 0x9b30952c, 0xcc814544, 0xaf5ebd09,
    -      0xbee3d004, 0xde334afd, 0x660f2807, 0x192e4bb3,
    -      0xc0cba857, 0x45c8740f, 0xd20b5f39, 0xb9d3fbdb,
    -      0x5579c0bd, 0x1a60320a, 0xd6a100c6, 0x402c7279,
    -      0x679f25fe, 0xfb1fa3cc, 0x8ea5e9f8, 0xdb3222f8,
    -      0x3c7516df, 0xfd616b15, 0x2f501ec8, 0xad0552ab,
    -      0x323db5fa, 0xfd238760, 0x53317b48, 0x3e00df82,
    -      0x9e5c57bb, 0xca6f8ca0, 0x1a87562e, 0xdf1769db,
    -      0xd542a8f6, 0x287effc3, 0xac6732c6, 0x8c4f5573,
    -      0x695b27b0, 0xbbca58c8, 0xe1ffa35d, 0xb8f011a0,
    -      0x10fa3d98, 0xfd2183b8, 0x4afcb56c, 0x2dd1d35b,
    -      0x9a53e479, 0xb6f84565, 0xd28e49bc, 0x4bfb9790,
    -      0xe1ddf2da, 0xa4cb7e33, 0x62fb1341, 0xcee4c6e8,
    -      0xef20cada, 0x36774c01, 0xd07e9efe, 0x2bf11fb4,
    -      0x95dbda4d, 0xae909198, 0xeaad8e71, 0x6b93d5a0,
    -      0xd08ed1d0, 0xafc725e0, 0x8e3c5b2f, 0x8e7594b7,
    -      0x8ff6e2fb, 0xf2122b64, 0x8888b812, 0x900df01c,
    -      0x4fad5ea0, 0x688fc31c, 0xd1cff191, 0xb3a8c1ad,
    -      0x2f2f2218, 0xbe0e1777, 0xea752dfe, 0x8b021fa1,
    -      0xe5a0cc0f, 0xb56f74e8, 0x18acf3d6, 0xce89e299,
    -      0xb4a84fe0, 0xfd13e0b7, 0x7cc43b81, 0xd2ada8d9,
    -      0x165fa266, 0x80957705, 0x93cc7314, 0x211a1477,
    -      0xe6ad2065, 0x77b5fa86, 0xc75442f5, 0xfb9d35cf,
    -      0xebcdaf0c, 0x7b3e89a0, 0xd6411bd3, 0xae1e7e49,
    -      0x00250e2d, 0x2071b35e, 0x226800bb, 0x57b8e0af,
    -      0x2464369b, 0xf009b91e, 0x5563911d, 0x59dfa6aa,
    -      0x78c14389, 0xd95a537f, 0x207d5ba2, 0x02e5b9c5,
    -      0x83260376, 0x6295cfa9, 0x11c81968, 0x4e734a41,
    -      0xb3472dca, 0x7b14a94a, 0x1b510052, 0x9a532915,
    -      0xd60f573f, 0xbc9bc6e4, 0x2b60a476, 0x81e67400,
    -      0x08ba6fb5, 0x571be91f, 0xf296ec6b, 0x2a0dd915,
    -      0xb6636521, 0xe7b9f9b6, 0xff34052e, 0xc5855664,
    -      0x53b02d5d, 0xa99f8fa1, 0x08ba4799, 0x6e85076a]),
    -    new Uint32Array([
    -      0x4b7a70e9, 0xb5b32944, 0xdb75092e, 0xc4192623,
    -      0xad6ea6b0, 0x49a7df7d, 0x9cee60b8, 0x8fedb266,
    -      0xecaa8c71, 0x699a17ff, 0x5664526c, 0xc2b19ee1,
    -      0x193602a5, 0x75094c29, 0xa0591340, 0xe4183a3e,
    -      0x3f54989a, 0x5b429d65, 0x6b8fe4d6, 0x99f73fd6,
    -      0xa1d29c07, 0xefe830f5, 0x4d2d38e6, 0xf0255dc1,
    -      0x4cdd2086, 0x8470eb26, 0x6382e9c6, 0x021ecc5e,
    -      0x09686b3f, 0x3ebaefc9, 0x3c971814, 0x6b6a70a1,
    -      0x687f3584, 0x52a0e286, 0xb79c5305, 0xaa500737,
    -      0x3e07841c, 0x7fdeae5c, 0x8e7d44ec, 0x5716f2b8,
    -      0xb03ada37, 0xf0500c0d, 0xf01c1f04, 0x0200b3ff,
    -      0xae0cf51a, 0x3cb574b2, 0x25837a58, 0xdc0921bd,
    -      0xd19113f9, 0x7ca92ff6, 0x94324773, 0x22f54701,
    -      0x3ae5e581, 0x37c2dadc, 0xc8b57634, 0x9af3dda7,
    -      0xa9446146, 0x0fd0030e, 0xecc8c73e, 0xa4751e41,
    -      0xe238cd99, 0x3bea0e2f, 0x3280bba1, 0x183eb331,
    -      0x4e548b38, 0x4f6db908, 0x6f420d03, 0xf60a04bf,
    -      0x2cb81290, 0x24977c79, 0x5679b072, 0xbcaf89af,
    -      0xde9a771f, 0xd9930810, 0xb38bae12, 0xdccf3f2e,
    -      0x5512721f, 0x2e6b7124, 0x501adde6, 0x9f84cd87,
    -      0x7a584718, 0x7408da17, 0xbc9f9abc, 0xe94b7d8c,
    -      0xec7aec3a, 0xdb851dfa, 0x63094366, 0xc464c3d2,
    -      0xef1c1847, 0x3215d908, 0xdd433b37, 0x24c2ba16,
    -      0x12a14d43, 0x2a65c451, 0x50940002, 0x133ae4dd,
    -      0x71dff89e, 0x10314e55, 0x81ac77d6, 0x5f11199b,
    -      0x043556f1, 0xd7a3c76b, 0x3c11183b, 0x5924a509,
    -      0xf28fe6ed, 0x97f1fbfa, 0x9ebabf2c, 0x1e153c6e,
    -      0x86e34570, 0xeae96fb1, 0x860e5e0a, 0x5a3e2ab3,
    -      0x771fe71c, 0x4e3d06fa, 0x2965dcb9, 0x99e71d0f,
    -      0x803e89d6, 0x5266c825, 0x2e4cc978, 0x9c10b36a,
    -      0xc6150eba, 0x94e2ea78, 0xa5fc3c53, 0x1e0a2df4,
    -      0xf2f74ea7, 0x361d2b3d, 0x1939260f, 0x19c27960,
    -      0x5223a708, 0xf71312b6, 0xebadfe6e, 0xeac31f66,
    -      0xe3bc4595, 0xa67bc883, 0xb17f37d1, 0x018cff28,
    -      0xc332ddef, 0xbe6c5aa5, 0x65582185, 0x68ab9802,
    -      0xeecea50f, 0xdb2f953b, 0x2aef7dad, 0x5b6e2f84,
    -      0x1521b628, 0x29076170, 0xecdd4775, 0x619f1510,
    -      0x13cca830, 0xeb61bd96, 0x0334fe1e, 0xaa0363cf,
    -      0xb5735c90, 0x4c70a239, 0xd59e9e0b, 0xcbaade14,
    -      0xeecc86bc, 0x60622ca7, 0x9cab5cab, 0xb2f3846e,
    -      0x648b1eaf, 0x19bdf0ca, 0xa02369b9, 0x655abb50,
    -      0x40685a32, 0x3c2ab4b3, 0x319ee9d5, 0xc021b8f7,
    -      0x9b540b19, 0x875fa099, 0x95f7997e, 0x623d7da8,
    -      0xf837889a, 0x97e32d77, 0x11ed935f, 0x16681281,
    -      0x0e358829, 0xc7e61fd6, 0x96dedfa1, 0x7858ba99,
    -      0x57f584a5, 0x1b227263, 0x9b83c3ff, 0x1ac24696,
    -      0xcdb30aeb, 0x532e3054, 0x8fd948e4, 0x6dbc3128,
    -      0x58ebf2ef, 0x34c6ffea, 0xfe28ed61, 0xee7c3c73,
    -      0x5d4a14d9, 0xe864b7e3, 0x42105d14, 0x203e13e0,
    -      0x45eee2b6, 0xa3aaabea, 0xdb6c4f15, 0xfacb4fd0,
    -      0xc742f442, 0xef6abbb5, 0x654f3b1d, 0x41cd2105,
    -      0xd81e799e, 0x86854dc7, 0xe44b476a, 0x3d816250,
    -      0xcf62a1f2, 0x5b8d2646, 0xfc8883a0, 0xc1c7b6a3,
    -      0x7f1524c3, 0x69cb7492, 0x47848a0b, 0x5692b285,
    -      0x095bbf00, 0xad19489d, 0x1462b174, 0x23820e00,
    -      0x58428d2a, 0x0c55f5ea, 0x1dadf43e, 0x233f7061,
    -      0x3372f092, 0x8d937e41, 0xd65fecf1, 0x6c223bdb,
    -      0x7cde3759, 0xcbee7460, 0x4085f2a7, 0xce77326e,
    -      0xa6078084, 0x19f8509e, 0xe8efd855, 0x61d99735,
    -      0xa969a7aa, 0xc50c06c2, 0x5a04abfc, 0x800bcadc,
    -      0x9e447a2e, 0xc3453484, 0xfdd56705, 0x0e1e9ec9,
    -      0xdb73dbd3, 0x105588cd, 0x675fda79, 0xe3674340,
    -      0xc5c43465, 0x713e38d8, 0x3d28f89e, 0xf16dff20,
    -      0x153e21e7, 0x8fb03d4a, 0xe6e39f2b, 0xdb83adf7]),
    -    new Uint32Array([
    -      0xe93d5a68, 0x948140f7, 0xf64c261c, 0x94692934,
    -      0x411520f7, 0x7602d4f7, 0xbcf46b2e, 0xd4a20068,
    -      0xd4082471, 0x3320f46a, 0x43b7d4b7, 0x500061af,
    -      0x1e39f62e, 0x97244546, 0x14214f74, 0xbf8b8840,
    -      0x4d95fc1d, 0x96b591af, 0x70f4ddd3, 0x66a02f45,
    -      0xbfbc09ec, 0x03bd9785, 0x7fac6dd0, 0x31cb8504,
    -      0x96eb27b3, 0x55fd3941, 0xda2547e6, 0xabca0a9a,
    -      0x28507825, 0x530429f4, 0x0a2c86da, 0xe9b66dfb,
    -      0x68dc1462, 0xd7486900, 0x680ec0a4, 0x27a18dee,
    -      0x4f3ffea2, 0xe887ad8c, 0xb58ce006, 0x7af4d6b6,
    -      0xaace1e7c, 0xd3375fec, 0xce78a399, 0x406b2a42,
    -      0x20fe9e35, 0xd9f385b9, 0xee39d7ab, 0x3b124e8b,
    -      0x1dc9faf7, 0x4b6d1856, 0x26a36631, 0xeae397b2,
    -      0x3a6efa74, 0xdd5b4332, 0x6841e7f7, 0xca7820fb,
    -      0xfb0af54e, 0xd8feb397, 0x454056ac, 0xba489527,
    -      0x55533a3a, 0x20838d87, 0xfe6ba9b7, 0xd096954b,
    -      0x55a867bc, 0xa1159a58, 0xcca92963, 0x99e1db33,
    -      0xa62a4a56, 0x3f3125f9, 0x5ef47e1c, 0x9029317c,
    -      0xfdf8e802, 0x04272f70, 0x80bb155c, 0x05282ce3,
    -      0x95c11548, 0xe4c66d22, 0x48c1133f, 0xc70f86dc,
    -      0x07f9c9ee, 0x41041f0f, 0x404779a4, 0x5d886e17,
    -      0x325f51eb, 0xd59bc0d1, 0xf2bcc18f, 0x41113564,
    -      0x257b7834, 0x602a9c60, 0xdff8e8a3, 0x1f636c1b,
    -      0x0e12b4c2, 0x02e1329e, 0xaf664fd1, 0xcad18115,
    -      0x6b2395e0, 0x333e92e1, 0x3b240b62, 0xeebeb922,
    -      0x85b2a20e, 0xe6ba0d99, 0xde720c8c, 0x2da2f728,
    -      0xd0127845, 0x95b794fd, 0x647d0862, 0xe7ccf5f0,
    -      0x5449a36f, 0x877d48fa, 0xc39dfd27, 0xf33e8d1e,
    -      0x0a476341, 0x992eff74, 0x3a6f6eab, 0xf4f8fd37,
    -      0xa812dc60, 0xa1ebddf8, 0x991be14c, 0xdb6e6b0d,
    -      0xc67b5510, 0x6d672c37, 0x2765d43b, 0xdcd0e804,
    -      0xf1290dc7, 0xcc00ffa3, 0xb5390f92, 0x690fed0b,
    -      0x667b9ffb, 0xcedb7d9c, 0xa091cf0b, 0xd9155ea3,
    -      0xbb132f88, 0x515bad24, 0x7b9479bf, 0x763bd6eb,
    -      0x37392eb3, 0xcc115979, 0x8026e297, 0xf42e312d,
    -      0x6842ada7, 0xc66a2b3b, 0x12754ccc, 0x782ef11c,
    -      0x6a124237, 0xb79251e7, 0x06a1bbe6, 0x4bfb6350,
    -      0x1a6b1018, 0x11caedfa, 0x3d25bdd8, 0xe2e1c3c9,
    -      0x44421659, 0x0a121386, 0xd90cec6e, 0xd5abea2a,
    -      0x64af674e, 0xda86a85f, 0xbebfe988, 0x64e4c3fe,
    -      0x9dbc8057, 0xf0f7c086, 0x60787bf8, 0x6003604d,
    -      0xd1fd8346, 0xf6381fb0, 0x7745ae04, 0xd736fccc,
    -      0x83426b33, 0xf01eab71, 0xb0804187, 0x3c005e5f,
    -      0x77a057be, 0xbde8ae24, 0x55464299, 0xbf582e61,
    -      0x4e58f48f, 0xf2ddfda2, 0xf474ef38, 0x8789bdc2,
    -      0x5366f9c3, 0xc8b38e74, 0xb475f255, 0x46fcd9b9,
    -      0x7aeb2661, 0x8b1ddf84, 0x846a0e79, 0x915f95e2,
    -      0x466e598e, 0x20b45770, 0x8cd55591, 0xc902de4c,
    -      0xb90bace1, 0xbb8205d0, 0x11a86248, 0x7574a99e,
    -      0xb77f19b6, 0xe0a9dc09, 0x662d09a1, 0xc4324633,
    -      0xe85a1f02, 0x09f0be8c, 0x4a99a025, 0x1d6efe10,
    -      0x1ab93d1d, 0x0ba5a4df, 0xa186f20f, 0x2868f169,
    -      0xdcb7da83, 0x573906fe, 0xa1e2ce9b, 0x4fcd7f52,
    -      0x50115e01, 0xa70683fa, 0xa002b5c4, 0x0de6d027,
    -      0x9af88c27, 0x773f8641, 0xc3604c06, 0x61a806b5,
    -      0xf0177a28, 0xc0f586e0, 0x006058aa, 0x30dc7d62,
    -      0x11e69ed7, 0x2338ea63, 0x53c2dd94, 0xc2c21634,
    -      0xbbcbee56, 0x90bcb6de, 0xebfc7da1, 0xce591d76,
    -      0x6f05e409, 0x4b7c0188, 0x39720a3d, 0x7c927c24,
    -      0x86e3725f, 0x724d9db9, 0x1ac15bb4, 0xd39eb8fc,
    -      0xed545578, 0x08fca5b5, 0xd83d7cd3, 0x4dad0fc4,
    -      0x1e50ef5e, 0xb161e6f8, 0xa28514d9, 0x6c51133c,
    -      0x6fd5c7e7, 0x56e14ec4, 0x362abfce, 0xddc6c837,
    -      0xd79a3234, 0x92638212, 0x670efa8e, 0x406000e0]),
    -    new Uint32Array([
    -      0x3a39ce37, 0xd3faf5cf, 0xabc27737, 0x5ac52d1b,
    -      0x5cb0679e, 0x4fa33742, 0xd3822740, 0x99bc9bbe,
    -      0xd5118e9d, 0xbf0f7315, 0xd62d1c7e, 0xc700c47b,
    -      0xb78c1b6b, 0x21a19045, 0xb26eb1be, 0x6a366eb4,
    -      0x5748ab2f, 0xbc946e79, 0xc6a376d2, 0x6549c2c8,
    -      0x530ff8ee, 0x468dde7d, 0xd5730a1d, 0x4cd04dc6,
    -      0x2939bbdb, 0xa9ba4650, 0xac9526e8, 0xbe5ee304,
    -      0xa1fad5f0, 0x6a2d519a, 0x63ef8ce2, 0x9a86ee22,
    -      0xc089c2b8, 0x43242ef6, 0xa51e03aa, 0x9cf2d0a4,
    -      0x83c061ba, 0x9be96a4d, 0x8fe51550, 0xba645bd6,
    -      0x2826a2f9, 0xa73a3ae1, 0x4ba99586, 0xef5562e9,
    -      0xc72fefd3, 0xf752f7da, 0x3f046f69, 0x77fa0a59,
    -      0x80e4a915, 0x87b08601, 0x9b09e6ad, 0x3b3ee593,
    -      0xe990fd5a, 0x9e34d797, 0x2cf0b7d9, 0x022b8b51,
    -      0x96d5ac3a, 0x017da67d, 0xd1cf3ed6, 0x7c7d2d28,
    -      0x1f9f25cf, 0xadf2b89b, 0x5ad6b472, 0x5a88f54c,
    -      0xe029ac71, 0xe019a5e6, 0x47b0acfd, 0xed93fa9b,
    -      0xe8d3c48d, 0x283b57cc, 0xf8d56629, 0x79132e28,
    -      0x785f0191, 0xed756055, 0xf7960e44, 0xe3d35e8c,
    -      0x15056dd4, 0x88f46dba, 0x03a16125, 0x0564f0bd,
    -      0xc3eb9e15, 0x3c9057a2, 0x97271aec, 0xa93a072a,
    -      0x1b3f6d9b, 0x1e6321f5, 0xf59c66fb, 0x26dcf319,
    -      0x7533d928, 0xb155fdf5, 0x03563482, 0x8aba3cbb,
    -      0x28517711, 0xc20ad9f8, 0xabcc5167, 0xccad925f,
    -      0x4de81751, 0x3830dc8e, 0x379d5862, 0x9320f991,
    -      0xea7a90c2, 0xfb3e7bce, 0x5121ce64, 0x774fbe32,
    -      0xa8b6e37e, 0xc3293d46, 0x48de5369, 0x6413e680,
    -      0xa2ae0810, 0xdd6db224, 0x69852dfd, 0x09072166,
    -      0xb39a460a, 0x6445c0dd, 0x586cdecf, 0x1c20c8ae,
    -      0x5bbef7dd, 0x1b588d40, 0xccd2017f, 0x6bb4e3bb,
    -      0xdda26a7e, 0x3a59ff45, 0x3e350a44, 0xbcb4cdd5,
    -      0x72eacea8, 0xfa6484bb, 0x8d6612ae, 0xbf3c6f47,
    -      0xd29be463, 0x542f5d9e, 0xaec2771b, 0xf64e6370,
    -      0x740e0d8d, 0xe75b1357, 0xf8721671, 0xaf537d5d,
    -      0x4040cb08, 0x4eb4e2cc, 0x34d2466a, 0x0115af84,
    -      0xe1b00428, 0x95983a1d, 0x06b89fb4, 0xce6ea048,
    -      0x6f3f3b82, 0x3520ab82, 0x011a1d4b, 0x277227f8,
    -      0x611560b1, 0xe7933fdc, 0xbb3a792b, 0x344525bd,
    -      0xa08839e1, 0x51ce794b, 0x2f32c9b7, 0xa01fbac9,
    -      0xe01cc87e, 0xbcc7d1f6, 0xcf0111c3, 0xa1e8aac7,
    -      0x1a908749, 0xd44fbd9a, 0xd0dadecb, 0xd50ada38,
    -      0x0339c32a, 0xc6913667, 0x8df9317c, 0xe0b12b4f,
    -      0xf79e59b7, 0x43f5bb3a, 0xf2d519ff, 0x27d9459c,
    -      0xbf97222c, 0x15e6fc2a, 0x0f91fc71, 0x9b941525,
    -      0xfae59361, 0xceb69ceb, 0xc2a86459, 0x12baa8d1,
    -      0xb6c1075e, 0xe3056a0c, 0x10d25065, 0xcb03a442,
    -      0xe0ec6e0e, 0x1698db3b, 0x4c98a0be, 0x3278e964,
    -      0x9f1f9532, 0xe0d392df, 0xd3a0342b, 0x8971f21e,
    -      0x1b0a7441, 0x4ba3348c, 0xc5be7120, 0xc37632d8,
    -      0xdf359f8d, 0x9b992f2e, 0xe60b6f47, 0x0fe3f11d,
    -      0xe54cda54, 0x1edad891, 0xce6279cf, 0xcd3e7e6f,
    -      0x1618b166, 0xfd2c1d05, 0x848fd2c5, 0xf6fb2299,
    -      0xf523f357, 0xa6327623, 0x93a83531, 0x56cccd02,
    -      0xacf08162, 0x5a75ebb5, 0x6e163697, 0x88d273cc,
    -      0xde966292, 0x81b949d0, 0x4c50901b, 0x71c65614,
    -      0xe6c6c7bd, 0x327a140a, 0x45e1d006, 0xc3f27b9a,
    -      0xc9aa53fd, 0x62a80f00, 0xbb25bfe2, 0x35bdd2f6,
    -      0x71126905, 0xb2040222, 0xb6cbcf7c, 0xcd769c2b,
    -      0x53113ec0, 0x1640e3d3, 0x38abbd60, 0x2547adf0,
    -      0xba38209c, 0xf746ce76, 0x77afa1c5, 0x20756060,
    -      0x85cbfe4e, 0x8ae88dd8, 0x7aaaf9b0, 0x4cf9aa7e,
    -      0x1948c25c, 0x02fb8a8c, 0x01c36ae4, 0xd6ebe1f9,
    -      0x90d4f869, 0xa65cdea0, 0x3f09252d, 0xc208e69f,
    -      0xb74e6132, 0xce77e25b, 0x578fdfe3, 0x3ac372e6])
    -    ];
    -  this.P = new Uint32Array([
    -    0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344,
    -    0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89,
    -    0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c,
    -    0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917,
    -    0x9216d5d9, 0x8979fb1b]);
    -};
    -
    -function F(S, x8, i) {
    -  return (((S[0][x8[i+3]] +
    -            S[1][x8[i+2]]) ^
    -            S[2][x8[i+1]]) +
    -            S[3][x8[i]]);
    -};
    -
    -Blowfish.prototype.encipher = function(x, x8) {
    -  if (x8 === undefined) {
    -    x8 = new Uint8Array(x.buffer);
    -    if (x.byteOffset !== 0)
    -      x8 = x8.subarray(x.byteOffset);
    -  }
    -  x[0] ^= this.P[0];
    -  for (var i = 1; i < 16; i += 2) {
    -    x[1] ^= F(this.S, x8, 0) ^ this.P[i];
    -    x[0] ^= F(this.S, x8, 4) ^ this.P[i+1];
    -  }
    -  var t = x[0];
    -  x[0] = x[1] ^ this.P[17];
    -  x[1] = t;
    -};
    -
    -Blowfish.prototype.decipher = function(x) {
    -  var x8 = new Uint8Array(x.buffer);
    -  if (x.byteOffset !== 0)
    -    x8 = x8.subarray(x.byteOffset);
    -  x[0] ^= this.P[17];
    -  for (var i = 16; i > 0; i -= 2) {
    -    x[1] ^= F(this.S, x8, 0) ^ this.P[i];
    -    x[0] ^= F(this.S, x8, 4) ^ this.P[i-1];
    -  }
    -  var t = x[0];
    -  x[0] = x[1] ^ this.P[0];
    -  x[1] = t;
    -};
    -
    -function stream2word(data, databytes){
    -  var i, temp = 0;
    -  for (i = 0; i < 4; i++, BLF_J++) {
    -    if (BLF_J >= databytes) BLF_J = 0;
    -    temp = (temp << 8) | data[BLF_J];
    -  }
    -  return temp;
    -};
    -
    -Blowfish.prototype.expand0state = function(key, keybytes) {
    -  var d = new Uint32Array(2), i, k;
    -  var d8 = new Uint8Array(d.buffer);
    -
    -  for (i = 0, BLF_J = 0; i < 18; i++) {
    -    this.P[i] ^= stream2word(key, keybytes);
    -  }
    -  BLF_J = 0;
    -
    -  for (i = 0; i < 18; i += 2) {
    -    this.encipher(d, d8);
    -    this.P[i]   = d[0];
    -    this.P[i+1] = d[1];
    -  }
    -
    -  for (i = 0; i < 4; i++) {
    -    for (k = 0; k < 256; k += 2) {
    -      this.encipher(d, d8);
    -      this.S[i][k]   = d[0];
    -      this.S[i][k+1] = d[1];
    -    }
    -  }
    -};
    -
    -Blowfish.prototype.expandstate = function(data, databytes, key, keybytes) {
    -  var d = new Uint32Array(2), i, k;
    -
    -  for (i = 0, BLF_J = 0; i < 18; i++) {
    -    this.P[i] ^= stream2word(key, keybytes);
    -  }
    -
    -  for (i = 0, BLF_J = 0; i < 18; i += 2) {
    -    d[0] ^= stream2word(data, databytes);
    -    d[1] ^= stream2word(data, databytes);
    -    this.encipher(d);
    -    this.P[i]   = d[0];
    -    this.P[i+1] = d[1];
    -  }
    -
    -  for (i = 0; i < 4; i++) {
    -    for (k = 0; k < 256; k += 2) {
    -      d[0] ^= stream2word(data, databytes);
    -      d[1] ^= stream2word(data, databytes);
    -      this.encipher(d);
    -      this.S[i][k]   = d[0];
    -      this.S[i][k+1] = d[1];
    -    }
    -  }
    -  BLF_J = 0;
    -};
    -
    -Blowfish.prototype.enc = function(data, blocks) {
    -  for (var i = 0; i < blocks; i++) {
    -    this.encipher(data.subarray(i*2));
    -  }
    -};
    -
    -Blowfish.prototype.dec = function(data, blocks) {
    -  for (var i = 0; i < blocks; i++) {
    -    this.decipher(data.subarray(i*2));
    -  }
    -};
    -
    -var BCRYPT_BLOCKS = 8,
    -    BCRYPT_HASHSIZE = 32;
    -
    -function bcrypt_hash(sha2pass, sha2salt, out) {
    -  var state = new Blowfish(),
    -      cdata = new Uint32Array(BCRYPT_BLOCKS), i,
    -      ciphertext = new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,
    -            99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,
    -            105,116,101]); //"OxychromaticBlowfishSwatDynamite"
    -
    -  state.expandstate(sha2salt, 64, sha2pass, 64);
    -  for (i = 0; i < 64; i++) {
    -    state.expand0state(sha2salt, 64);
    -    state.expand0state(sha2pass, 64);
    -  }
    -
    -  for (i = 0; i < BCRYPT_BLOCKS; i++)
    -    cdata[i] = stream2word(ciphertext, ciphertext.byteLength);
    -  for (i = 0; i < 64; i++)
    -    state.enc(cdata, cdata.byteLength / 8);
    -
    -  for (i = 0; i < BCRYPT_BLOCKS; i++) {
    -    out[4*i+3] = cdata[i] >>> 24;
    -    out[4*i+2] = cdata[i] >>> 16;
    -    out[4*i+1] = cdata[i] >>> 8;
    -    out[4*i+0] = cdata[i];
    -  }
    -};
    -
    -function bcrypt_pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds) {
    -  var sha2pass = new Uint8Array(64),
    -      sha2salt = new Uint8Array(64),
    -      out = new Uint8Array(BCRYPT_HASHSIZE),
    -      tmpout = new Uint8Array(BCRYPT_HASHSIZE),
    -      countsalt = new Uint8Array(saltlen+4),
    -      i, j, amt, stride, dest, count,
    -      origkeylen = keylen;
    -
    -  if (rounds < 1)
    -    return -1;
    -  if (passlen === 0 || saltlen === 0 || keylen === 0 ||
    -      keylen > (out.byteLength * out.byteLength) || saltlen > (1<<20))
    -    return -1;
    -
    -  stride = Math.floor((keylen + out.byteLength - 1) / out.byteLength);
    -  amt = Math.floor((keylen + stride - 1) / stride);
    -
    -  for (i = 0; i < saltlen; i++)
    -    countsalt[i] = salt[i];
    -
    -  crypto_hash_sha512(sha2pass, pass, passlen);
    -
    -  for (count = 1; keylen > 0; count++) {
    -    countsalt[saltlen+0] = count >>> 24;
    -    countsalt[saltlen+1] = count >>> 16;
    -    countsalt[saltlen+2] = count >>>  8;
    -    countsalt[saltlen+3] = count;
    -
    -    crypto_hash_sha512(sha2salt, countsalt, saltlen + 4);
    -    bcrypt_hash(sha2pass, sha2salt, tmpout);
    -    for (i = out.byteLength; i--;)
    -      out[i] = tmpout[i];
    -
    -    for (i = 1; i < rounds; i++) {
    -      crypto_hash_sha512(sha2salt, tmpout, tmpout.byteLength);
    -      bcrypt_hash(sha2pass, sha2salt, tmpout);
    -      for (j = 0; j < out.byteLength; j++)
    -        out[j] ^= tmpout[j];
    -    }
    -
    -    amt = Math.min(amt, keylen);
    -    for (i = 0; i < amt; i++) {
    -      dest = i * stride + (count - 1);
    -      if (dest >= origkeylen)
    -        break;
    -      key[dest] = out[i];
    -    }
    -    keylen -= i;
    -  }
    -
    -  return 0;
    -};
    -
    -module.exports = {
    -      BLOCKS: BCRYPT_BLOCKS,
    -      HASHSIZE: BCRYPT_HASHSIZE,
    -      hash: bcrypt_hash,
    -      pbkdf: bcrypt_pbkdf
    -};
    diff --git a/node_modules/fsevents/node_modules/bcrypt-pbkdf/package.json b/node_modules/fsevents/node_modules/bcrypt-pbkdf/package.json
    deleted file mode 100644
    index a990855..0000000
    --- a/node_modules/fsevents/node_modules/bcrypt-pbkdf/package.json
    +++ /dev/null
    @@ -1,84 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "bcrypt-pbkdf@^1.0.0",
    -        "scope": null,
    -        "escapedName": "bcrypt-pbkdf",
    -        "name": "bcrypt-pbkdf",
    -        "rawSpec": "^1.0.0",
    -        "spec": ">=1.0.0 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/sshpk"
    -    ]
    -  ],
    -  "_from": "bcrypt-pbkdf@>=1.0.0 <2.0.0",
    -  "_id": "bcrypt-pbkdf@1.0.1",
    -  "_inCache": true,
    -  "_location": "/fsevents/bcrypt-pbkdf",
    -  "_nodeVersion": "0.12.9",
    -  "_npmOperationalInternal": {
    -    "host": "packages-18-east.internal.npmjs.com",
    -    "tmp": "tmp/bcrypt-pbkdf-1.0.1.tgz_1486007687899_0.974529881728813"
    -  },
    -  "_npmUser": {
    -    "name": "arekinath",
    -    "email": "alex@cooperi.net"
    -  },
    -  "_npmVersion": "2.14.9",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "bcrypt-pbkdf@^1.0.0",
    -    "scope": null,
    -    "escapedName": "bcrypt-pbkdf",
    -    "name": "bcrypt-pbkdf",
    -    "rawSpec": "^1.0.0",
    -    "spec": ">=1.0.0 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/sshpk"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz",
    -  "_shasum": "63bc5dcb61331b92bc05fd528953c33462a06f8d",
    -  "_shrinkwrap": null,
    -  "_spec": "bcrypt-pbkdf@^1.0.0",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/sshpk",
    -  "dependencies": {
    -    "tweetnacl": "^0.14.3"
    -  },
    -  "description": "Port of the OpenBSD bcrypt_pbkdf function to pure JS",
    -  "devDependencies": {},
    -  "directories": {},
    -  "dist": {
    -    "shasum": "63bc5dcb61331b92bc05fd528953c33462a06f8d",
    -    "tarball": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz"
    -  },
    -  "gitHead": "fa2ab3ae9efa15367264151398635a915c7b411d",
    -  "license": "BSD-3-Clause",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "arekinath",
    -      "email": "alex@cooperi.net"
    -    },
    -    {
    -      "name": "dap",
    -      "email": "dap@cs.brown.edu"
    -    },
    -    {
    -      "name": "jclulow",
    -      "email": "josh@sysmgr.org"
    -    },
    -    {
    -      "name": "trentm",
    -      "email": "trentm@gmail.com"
    -    }
    -  ],
    -  "name": "bcrypt-pbkdf",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "scripts": {},
    -  "version": "1.0.1"
    -}
    diff --git a/node_modules/fsevents/node_modules/block-stream/LICENCE b/node_modules/fsevents/node_modules/block-stream/LICENCE
    deleted file mode 100644
    index 74489e2..0000000
    --- a/node_modules/fsevents/node_modules/block-stream/LICENCE
    +++ /dev/null
    @@ -1,25 +0,0 @@
    -Copyright (c) Isaac Z. Schlueter
    -All rights reserved.
    -
    -The BSD License
    -
    -Redistribution and use in source and binary forms, with or without
    -modification, are permitted provided that the following conditions
    -are met:
    -1. Redistributions of source code must retain the above copyright
    -   notice, this list of conditions and the following disclaimer.
    -2. 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.
    -
    -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
    diff --git a/node_modules/fsevents/node_modules/block-stream/LICENSE b/node_modules/fsevents/node_modules/block-stream/LICENSE
    deleted file mode 100644
    index 19129e3..0000000
    --- a/node_modules/fsevents/node_modules/block-stream/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/fsevents/node_modules/block-stream/README.md b/node_modules/fsevents/node_modules/block-stream/README.md
    deleted file mode 100644
    index c16e9c4..0000000
    --- a/node_modules/fsevents/node_modules/block-stream/README.md
    +++ /dev/null
    @@ -1,14 +0,0 @@
    -# block-stream
    -
    -A stream of blocks.
    -
    -Write data into it, and it'll output data in buffer blocks the size you
    -specify, padding with zeroes if necessary.
    -
    -```javascript
    -var block = new BlockStream(512)
    -fs.createReadStream("some-file").pipe(block)
    -block.pipe(fs.createWriteStream("block-file"))
    -```
    -
    -When `.end()` or `.flush()` is called, it'll pad the block with zeroes.
    diff --git a/node_modules/fsevents/node_modules/block-stream/block-stream.js b/node_modules/fsevents/node_modules/block-stream/block-stream.js
    deleted file mode 100644
    index 008de03..0000000
    --- a/node_modules/fsevents/node_modules/block-stream/block-stream.js
    +++ /dev/null
    @@ -1,209 +0,0 @@
    -// write data to it, and it'll emit data in 512 byte blocks.
    -// if you .end() or .flush(), it'll emit whatever it's got,
    -// padded with nulls to 512 bytes.
    -
    -module.exports = BlockStream
    -
    -var Stream = require("stream").Stream
    -  , inherits = require("inherits")
    -  , assert = require("assert").ok
    -  , debug = process.env.DEBUG ? console.error : function () {}
    -
    -function BlockStream (size, opt) {
    -  this.writable = this.readable = true
    -  this._opt = opt || {}
    -  this._chunkSize = size || 512
    -  this._offset = 0
    -  this._buffer = []
    -  this._bufferLength = 0
    -  if (this._opt.nopad) this._zeroes = false
    -  else {
    -    this._zeroes = new Buffer(this._chunkSize)
    -    for (var i = 0; i < this._chunkSize; i ++) {
    -      this._zeroes[i] = 0
    -    }
    -  }
    -}
    -
    -inherits(BlockStream, Stream)
    -
    -BlockStream.prototype.write = function (c) {
    -  // debug("   BS write", c)
    -  if (this._ended) throw new Error("BlockStream: write after end")
    -  if (c && !Buffer.isBuffer(c)) c = new Buffer(c + "")
    -  if (c.length) {
    -    this._buffer.push(c)
    -    this._bufferLength += c.length
    -  }
    -  // debug("pushed onto buffer", this._bufferLength)
    -  if (this._bufferLength >= this._chunkSize) {
    -    if (this._paused) {
    -      // debug("   BS paused, return false, need drain")
    -      this._needDrain = true
    -      return false
    -    }
    -    this._emitChunk()
    -  }
    -  return true
    -}
    -
    -BlockStream.prototype.pause = function () {
    -  // debug("   BS pausing")
    -  this._paused = true
    -}
    -
    -BlockStream.prototype.resume = function () {
    -  // debug("   BS resume")
    -  this._paused = false
    -  return this._emitChunk()
    -}
    -
    -BlockStream.prototype.end = function (chunk) {
    -  // debug("end", chunk)
    -  if (typeof chunk === "function") cb = chunk, chunk = null
    -  if (chunk) this.write(chunk)
    -  this._ended = true
    -  this.flush()
    -}
    -
    -BlockStream.prototype.flush = function () {
    -  this._emitChunk(true)
    -}
    -
    -BlockStream.prototype._emitChunk = function (flush) {
    -  // debug("emitChunk flush=%j emitting=%j paused=%j", flush, this._emitting, this._paused)
    -
    -  // emit a  chunk
    -  if (flush && this._zeroes) {
    -    // debug("    BS push zeroes", this._bufferLength)
    -    // push a chunk of zeroes
    -    var padBytes = (this._bufferLength % this._chunkSize)
    -    if (padBytes !== 0) padBytes = this._chunkSize - padBytes
    -    if (padBytes > 0) {
    -      // debug("padBytes", padBytes, this._zeroes.slice(0, padBytes))
    -      this._buffer.push(this._zeroes.slice(0, padBytes))
    -      this._bufferLength += padBytes
    -      // debug(this._buffer[this._buffer.length - 1].length, this._bufferLength)
    -    }
    -  }
    -
    -  if (this._emitting || this._paused) return
    -  this._emitting = true
    -
    -  // debug("    BS entering loops")
    -  var bufferIndex = 0
    -  while (this._bufferLength >= this._chunkSize &&
    -         (flush || !this._paused)) {
    -    // debug("     BS data emission loop", this._bufferLength)
    -
    -    var out
    -      , outOffset = 0
    -      , outHas = this._chunkSize
    -
    -    while (outHas > 0 && (flush || !this._paused) ) {
    -      // debug("    BS data inner emit loop", this._bufferLength)
    -      var cur = this._buffer[bufferIndex]
    -        , curHas = cur.length - this._offset
    -      // debug("cur=", cur)
    -      // debug("curHas=%j", curHas)
    -      // If it's not big enough to fill the whole thing, then we'll need
    -      // to copy multiple buffers into one.  However, if it is big enough,
    -      // then just slice out the part we want, to save unnecessary copying.
    -      // Also, need to copy if we've already done some copying, since buffers
    -      // can't be joined like cons strings.
    -      if (out || curHas < outHas) {
    -        out = out || new Buffer(this._chunkSize)
    -        cur.copy(out, outOffset,
    -                 this._offset, this._offset + Math.min(curHas, outHas))
    -      } else if (cur.length === outHas && this._offset === 0) {
    -        // shortcut -- cur is exactly long enough, and no offset.
    -        out = cur
    -      } else {
    -        // slice out the piece of cur that we need.
    -        out = cur.slice(this._offset, this._offset + outHas)
    -      }
    -
    -      if (curHas > outHas) {
    -        // means that the current buffer couldn't be completely output
    -        // update this._offset to reflect how much WAS written
    -        this._offset += outHas
    -        outHas = 0
    -      } else {
    -        // output the entire current chunk.
    -        // toss it away
    -        outHas -= curHas
    -        outOffset += curHas
    -        bufferIndex ++
    -        this._offset = 0
    -      }
    -    }
    -
    -    this._bufferLength -= this._chunkSize
    -    assert(out.length === this._chunkSize)
    -    // debug("emitting data", out)
    -    // debug("   BS emitting, paused=%j", this._paused, this._bufferLength)
    -    this.emit("data", out)
    -    out = null
    -  }
    -  // debug("    BS out of loops", this._bufferLength)
    -
    -  // whatever is left, it's not enough to fill up a block, or we're paused
    -  this._buffer = this._buffer.slice(bufferIndex)
    -  if (this._paused) {
    -    // debug("    BS paused, leaving", this._bufferLength)
    -    this._needsDrain = true
    -    this._emitting = false
    -    return
    -  }
    -
    -  // if flushing, and not using null-padding, then need to emit the last
    -  // chunk(s) sitting in the queue.  We know that it's not enough to
    -  // fill up a whole block, because otherwise it would have been emitted
    -  // above, but there may be some offset.
    -  var l = this._buffer.length
    -  if (flush && !this._zeroes && l) {
    -    if (l === 1) {
    -      if (this._offset) {
    -        this.emit("data", this._buffer[0].slice(this._offset))
    -      } else {
    -        this.emit("data", this._buffer[0])
    -      }
    -    } else {
    -      var outHas = this._bufferLength
    -        , out = new Buffer(outHas)
    -        , outOffset = 0
    -      for (var i = 0; i < l; i ++) {
    -        var cur = this._buffer[i]
    -          , curHas = cur.length - this._offset
    -        cur.copy(out, outOffset, this._offset)
    -        this._offset = 0
    -        outOffset += curHas
    -        this._bufferLength -= curHas
    -      }
    -      this.emit("data", out)
    -    }
    -    // truncate
    -    this._buffer.length = 0
    -    this._bufferLength = 0
    -    this._offset = 0
    -  }
    -
    -  // now either drained or ended
    -  // debug("either draining, or ended", this._bufferLength, this._ended)
    -  // means that we've flushed out all that we can so far.
    -  if (this._needDrain) {
    -    // debug("emitting drain", this._bufferLength)
    -    this._needDrain = false
    -    this.emit("drain")
    -  }
    -
    -  if ((this._bufferLength === 0) && this._ended && !this._endEmitted) {
    -    // debug("emitting end", this._bufferLength)
    -    this._endEmitted = true
    -    this.emit("end")
    -  }
    -
    -  this._emitting = false
    -
    -  // debug("    BS no longer emitting", flush, this._paused, this._emitting, this._bufferLength, this._chunkSize)
    -}
    diff --git a/node_modules/fsevents/node_modules/block-stream/package.json b/node_modules/fsevents/node_modules/block-stream/package.json
    deleted file mode 100644
    index 7b34c47..0000000
    --- a/node_modules/fsevents/node_modules/block-stream/package.json
    +++ /dev/null
    @@ -1,95 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "block-stream@*",
    -        "scope": null,
    -        "escapedName": "block-stream",
    -        "name": "block-stream",
    -        "rawSpec": "*",
    -        "spec": "*",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/tar"
    -    ]
    -  ],
    -  "_from": "block-stream@*",
    -  "_id": "block-stream@0.0.9",
    -  "_inCache": true,
    -  "_location": "/fsevents/block-stream",
    -  "_nodeVersion": "5.6.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/block-stream-0.0.9.tgz_1462149852620_0.6890447810292244"
    -  },
    -  "_npmUser": {
    -    "name": "isaacs",
    -    "email": "i@izs.me"
    -  },
    -  "_npmVersion": "3.8.5",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "block-stream@*",
    -    "scope": null,
    -    "escapedName": "block-stream",
    -    "name": "block-stream",
    -    "rawSpec": "*",
    -    "spec": "*",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/tar"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
    -  "_shasum": "13ebfe778a03205cfe03751481ebb4b3300c126a",
    -  "_shrinkwrap": null,
    -  "_spec": "block-stream@*",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/tar",
    -  "author": {
    -    "name": "Isaac Z. Schlueter",
    -    "email": "i@izs.me",
    -    "url": "http://blog.izs.me/"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/isaacs/block-stream/issues"
    -  },
    -  "dependencies": {
    -    "inherits": "~2.0.0"
    -  },
    -  "description": "a stream of blocks",
    -  "devDependencies": {
    -    "tap": "^5.7.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "13ebfe778a03205cfe03751481ebb4b3300c126a",
    -    "tarball": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz"
    -  },
    -  "engines": {
    -    "node": "0.4 || >=0.5.8"
    -  },
    -  "files": [
    -    "block-stream.js"
    -  ],
    -  "gitHead": "321cf242ef6d130bb2e59c0565a61ded5dd2673f",
    -  "homepage": "https://github.com/isaacs/block-stream#readme",
    -  "license": "ISC",
    -  "main": "block-stream.js",
    -  "maintainers": [
    -    {
    -      "name": "isaacs",
    -      "email": "i@izs.me"
    -    }
    -  ],
    -  "name": "block-stream",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/isaacs/block-stream.git"
    -  },
    -  "scripts": {
    -    "test": "tap test/*.js --cov"
    -  },
    -  "version": "0.0.9"
    -}
    diff --git a/node_modules/fsevents/node_modules/boom/.npmignore b/node_modules/fsevents/node_modules/boom/.npmignore
    deleted file mode 100644
    index 77ba16c..0000000
    --- a/node_modules/fsevents/node_modules/boom/.npmignore
    +++ /dev/null
    @@ -1,18 +0,0 @@
    -.idea
    -*.iml
    -npm-debug.log
    -dump.rdb
    -node_modules
    -results.tap
    -results.xml
    -npm-shrinkwrap.json
    -config.json
    -.DS_Store
    -*/.DS_Store
    -*/*/.DS_Store
    -._*
    -*/._*
    -*/*/._*
    -coverage.*
    -lib-cov
    -
    diff --git a/node_modules/fsevents/node_modules/boom/.travis.yml b/node_modules/fsevents/node_modules/boom/.travis.yml
    deleted file mode 100755
    index dd1b24f..0000000
    --- a/node_modules/fsevents/node_modules/boom/.travis.yml
    +++ /dev/null
    @@ -1,8 +0,0 @@
    -language: node_js
    -
    -node_js:
    -  - 0.10
    -  - 4.0
    -
    -sudo: false
    -
    diff --git a/node_modules/fsevents/node_modules/boom/CONTRIBUTING.md b/node_modules/fsevents/node_modules/boom/CONTRIBUTING.md
    deleted file mode 100644
    index 8928361..0000000
    --- a/node_modules/fsevents/node_modules/boom/CONTRIBUTING.md
    +++ /dev/null
    @@ -1 +0,0 @@
    -Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md).
    diff --git a/node_modules/fsevents/node_modules/boom/LICENSE b/node_modules/fsevents/node_modules/boom/LICENSE
    deleted file mode 100755
    index 3946889..0000000
    --- a/node_modules/fsevents/node_modules/boom/LICENSE
    +++ /dev/null
    @@ -1,28 +0,0 @@
    -Copyright (c) 2012-2014, Walmart and other contributors.
    -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.
    -    * The names of any contributors may not 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 HOLDERS AND 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.
    -
    -                                  *   *   *
    -
    -The complete list of contributors can be found at: https://github.com/hapijs/boom/graphs/contributors
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/boom/README.md b/node_modules/fsevents/node_modules/boom/README.md
    deleted file mode 100755
    index cbd91c9..0000000
    --- a/node_modules/fsevents/node_modules/boom/README.md
    +++ /dev/null
    @@ -1,652 +0,0 @@
    -![boom Logo](https://raw.github.com/hapijs/boom/master/images/boom.png)
    -
    -HTTP-friendly error objects
    -
    -[![Build Status](https://secure.travis-ci.org/hapijs/boom.png)](http://travis-ci.org/hapijs/boom)
    -[![Current Version](https://img.shields.io/npm/v/boom.svg)](https://www.npmjs.com/package/boom)
    -
    -Lead Maintainer: [Adam Bretz](https://github.com/arb)
    -
    -**boom** provides a set of utilities for returning HTTP errors. Each utility returns a `Boom` error response
    -object (instance of `Error`) which includes the following properties:
    -- `isBoom` - if `true`, indicates this is a `Boom` object instance.
    -- `isServer` - convenience bool indicating status code >= 500.
    -- `message` - the error message.
    -- `output` - the formatted response. Can be directly manipulated after object construction to return a custom
    -  error response. Allowed root keys:
    -    - `statusCode` - the HTTP status code (typically 4xx or 5xx).
    -    - `headers` - an object containing any HTTP headers where each key is a header name and value is the header content.
    -    - `payload` - the formatted object used as the response payload (stringified). Can be directly manipulated but any
    -      changes will be lost
    -      if `reformat()` is called. Any content allowed and by default includes the following content:
    -        - `statusCode` - the HTTP status code, derived from `error.output.statusCode`.
    -        - `error` - the HTTP status message (e.g. 'Bad Request', 'Internal Server Error') derived from `statusCode`.
    -        - `message` - the error message derived from `error.message`.
    -- inherited `Error` properties.
    -
    -The `Boom` object also supports the following method:
    -- `reformat()` - rebuilds `error.output` using the other object properties.
    -
    -## Overview
    -
    -- Helper methods
    -  - [`wrap(error, [statusCode], [message])`](#wraperror-statuscode-message)
    -  - [`create(statusCode, [message], [data])`](#createstatuscode-message-data)
    -- HTTP 4xx Errors
    -  - 400: [`Boom.badRequest([message], [data])`](#boombadrequestmessage-data)
    -  - 401: [`Boom.unauthorized([message], [scheme], [attributes])`](#boomunauthorizedmessage-scheme-attributes)
    -  - 403: [`Boom.forbidden([message], [data])`](#boomforbiddenmessage-data)
    -  - 404: [`Boom.notFound([message], [data])`](#boomnotfoundmessage-data)
    -  - 405: [`Boom.methodNotAllowed([message], [data])`](#boommethodnotallowedmessage-data)
    -  - 406: [`Boom.notAcceptable([message], [data])`](#boomnotacceptablemessage-data)
    -  - 407: [`Boom.proxyAuthRequired([message], [data])`](#boomproxyauthrequiredmessage-data)
    -  - 408: [`Boom.clientTimeout([message], [data])`](#boomclienttimeoutmessage-data)
    -  - 409: [`Boom.conflict([message], [data])`](#boomconflictmessage-data)
    -  - 410: [`Boom.resourceGone([message], [data])`](#boomresourcegonemessage-data)
    -  - 411: [`Boom.lengthRequired([message], [data])`](#boomlengthrequiredmessage-data)
    -  - 412: [`Boom.preconditionFailed([message], [data])`](#boompreconditionfailedmessage-data)
    -  - 413: [`Boom.entityTooLarge([message], [data])`](#boomentitytoolargemessage-data)
    -  - 414: [`Boom.uriTooLong([message], [data])`](#boomuritoolongmessage-data)
    -  - 415: [`Boom.unsupportedMediaType([message], [data])`](#boomunsupportedmediatypemessage-data)
    -  - 416: [`Boom.rangeNotSatisfiable([message], [data])`](#boomrangenotsatisfiablemessage-data)
    -  - 417: [`Boom.expectationFailed([message], [data])`](#boomexpectationfailedmessage-data)
    -  - 422: [`Boom.badData([message], [data])`](#boombaddatamessage-data)
    -  - 428: [`Boom.preconditionRequired([message], [data])`](#boompreconditionrequiredmessage-data)
    -  - 429: [`Boom.tooManyRequests([message], [data])`](#boomtoomanyrequestsmessage-data)
    -- HTTP 5xx Errors
    -  - 500: [`Boom.badImplementation([message], [data])`](#boombadimplementationmessage-data)
    -  - 501: [`Boom.notImplemented([message], [data])`](#boomnotimplementedmessage-data)
    -  - 502: [`Boom.badGateway([message], [data])`](#boombadgatewaymessage-data)
    -  - 503: [`Boom.serverTimeout([message], [data])`](#boomservertimeoutmessage-data)
    -  - 504: [`Boom.gatewayTimeout([message], [data])`](#boomgatewaytimeoutmessage-data)
    -- [FAQ](#faq)
    -
    -
    -## Helper Methods
    -
    -### `wrap(error, [statusCode], [message])`
    -
    -Decorates an error with the **boom** properties where:
    -- `error` - the error object to wrap. If `error` is already a **boom** object, returns back the same object.
    -- `statusCode` - optional HTTP status code. Defaults to `500`.
    -- `message` - optional message string. If the error already has a message, it adds the message as a prefix.
    -  Defaults to no message.
    -
    -```js
    -var error = new Error('Unexpected input');
    -Boom.wrap(error, 400);
    -```
    -
    -### `create(statusCode, [message], [data])`
    -
    -Generates an `Error` object with the **boom** decorations where:
    -- `statusCode` - an HTTP error code number. Must be greater or equal 400.
    -- `message` - optional message string.
    -- `data` - additional error data set to `error.data` property.
    -
    -```js
    -var error = Boom.create(400, 'Bad request', { timestamp: Date.now() });
    -```
    -
    -## HTTP 4xx Errors
    -
    -### `Boom.badRequest([message], [data])`
    -
    -Returns a 400 Bad Request error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.badRequest('invalid query');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 400,
    -    "error": "Bad Request",
    -    "message": "invalid query"
    -}
    -```
    -
    -### `Boom.unauthorized([message], [scheme], [attributes])`
    -
    -Returns a 401 Unauthorized error where:
    -- `message` - optional message.
    -- `scheme` can be one of the following:
    -  - an authentication scheme name
    -  - an array of string values. These values will be separated by ', ' and set to the 'WWW-Authenticate' header.
    -- `attributes` - an object of values to use while setting the 'WWW-Authenticate' header. This value is only used
    -  when `schema` is a string, otherwise it is ignored. Every key/value pair will be included in the
    -  'WWW-Authenticate' in the format of 'key="value"' as well as in the response payload under the `attributes` key.
    -  `null` and `undefined` will be replaced with an empty string. If `attributes` is set, `message` will be used as
    -  the 'error' segment of the 'WWW-Authenticate' header. If `message` is unset, the 'error' segment of the header
    -  will not be present and `isMissing` will be true on the error object.
    -
    -If either `scheme` or `attributes` are set, the resultant `Boom` object will have the 'WWW-Authenticate' header set for the response.
    -
    -```js
    -Boom.unauthorized('invalid password');
    -```
    -
    -Generates the following response:
    -
    -```json
    -"payload": {
    -    "statusCode": 401,
    -    "error": "Unauthorized",
    -    "message": "invalid password"
    -},
    -"headers" {}
    -```
    -
    -```js
    -Boom.unauthorized('invalid password', 'sample');
    -```
    -
    -Generates the following response:
    -
    -```json
    -"payload": {
    -    "statusCode": 401,
    -    "error": "Unauthorized",
    -    "message": "invalid password",
    -    "attributes": {
    -        "error": "invalid password"
    -    }
    -},
    -"headers" {
    -  "WWW-Authenticate": "sample error=\"invalid password\""
    -}
    -```
    -
    -```js
    -Boom.unauthorized('invalid password', 'sample', { ttl: 0, cache: null, foo: 'bar' });
    -```
    -
    -Generates the following response:
    -
    -```json
    -"payload": {
    -    "statusCode": 401,
    -    "error": "Unauthorized",
    -    "message": "invalid password",
    -    "attributes": {
    -        "error": "invalid password",
    -        "ttl": 0,
    -        "cache": "",
    -        "foo": "bar"
    -    }
    -},
    -"headers" {
    -  "WWW-Authenticate": "sample ttl=\"0\", cache=\"\", foo=\"bar\", error=\"invalid password\""
    -}
    -```
    -
    -### `Boom.forbidden([message], [data])`
    -
    -Returns a 403 Forbidden error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.forbidden('try again some time');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 403,
    -    "error": "Forbidden",
    -    "message": "try again some time"
    -}
    -```
    -
    -### `Boom.notFound([message], [data])`
    -
    -Returns a 404 Not Found error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.notFound('missing');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 404,
    -    "error": "Not Found",
    -    "message": "missing"
    -}
    -```
    -
    -### `Boom.methodNotAllowed([message], [data])`
    -
    -Returns a 405 Method Not Allowed error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.methodNotAllowed('that method is not allowed');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 405,
    -    "error": "Method Not Allowed",
    -    "message": "that method is not allowed"
    -}
    -```
    -
    -### `Boom.notAcceptable([message], [data])`
    -
    -Returns a 406 Not Acceptable error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.notAcceptable('unacceptable');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 406,
    -    "error": "Not Acceptable",
    -    "message": "unacceptable"
    -}
    -```
    -
    -### `Boom.proxyAuthRequired([message], [data])`
    -
    -Returns a 407 Proxy Authentication Required error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.proxyAuthRequired('auth missing');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 407,
    -    "error": "Proxy Authentication Required",
    -    "message": "auth missing"
    -}
    -```
    -
    -### `Boom.clientTimeout([message], [data])`
    -
    -Returns a 408 Request Time-out error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.clientTimeout('timed out');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 408,
    -    "error": "Request Time-out",
    -    "message": "timed out"
    -}
    -```
    -
    -### `Boom.conflict([message], [data])`
    -
    -Returns a 409 Conflict error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.conflict('there was a conflict');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 409,
    -    "error": "Conflict",
    -    "message": "there was a conflict"
    -}
    -```
    -
    -### `Boom.resourceGone([message], [data])`
    -
    -Returns a 410 Gone error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.resourceGone('it is gone');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 410,
    -    "error": "Gone",
    -    "message": "it is gone"
    -}
    -```
    -
    -### `Boom.lengthRequired([message], [data])`
    -
    -Returns a 411 Length Required error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.lengthRequired('length needed');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 411,
    -    "error": "Length Required",
    -    "message": "length needed"
    -}
    -```
    -
    -### `Boom.preconditionFailed([message], [data])`
    -
    -Returns a 412 Precondition Failed error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.preconditionFailed();
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 412,
    -    "error": "Precondition Failed"
    -}
    -```
    -
    -### `Boom.entityTooLarge([message], [data])`
    -
    -Returns a 413 Request Entity Too Large error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.entityTooLarge('too big');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 413,
    -    "error": "Request Entity Too Large",
    -    "message": "too big"
    -}
    -```
    -
    -### `Boom.uriTooLong([message], [data])`
    -
    -Returns a 414 Request-URI Too Large error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.uriTooLong('uri is too long');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 414,
    -    "error": "Request-URI Too Large",
    -    "message": "uri is too long"
    -}
    -```
    -
    -### `Boom.unsupportedMediaType([message], [data])`
    -
    -Returns a 415 Unsupported Media Type error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.unsupportedMediaType('that media is not supported');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 415,
    -    "error": "Unsupported Media Type",
    -    "message": "that media is not supported"
    -}
    -```
    -
    -### `Boom.rangeNotSatisfiable([message], [data])`
    -
    -Returns a 416 Requested Range Not Satisfiable error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.rangeNotSatisfiable();
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 416,
    -    "error": "Requested Range Not Satisfiable"
    -}
    -```
    -
    -### `Boom.expectationFailed([message], [data])`
    -
    -Returns a 417 Expectation Failed error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.expectationFailed('expected this to work');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 417,
    -    "error": "Expectation Failed",
    -    "message": "expected this to work"
    -}
    -```
    -
    -### `Boom.badData([message], [data])`
    -
    -Returns a 422 Unprocessable Entity error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.badData('your data is bad and you should feel bad');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 422,
    -    "error": "Unprocessable Entity",
    -    "message": "your data is bad and you should feel bad"
    -}
    -```
    -
    -### `Boom.preconditionRequired([message], [data])`
    -
    -Returns a 428 Precondition Required error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.preconditionRequired('you must supply an If-Match header');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 428,
    -    "error": "Precondition Required",
    -    "message": "you must supply an If-Match header"
    -}
    -```
    -
    -### `Boom.tooManyRequests([message], [data])`
    -
    -Returns a 429 Too Many Requests error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.tooManyRequests('you have exceeded your request limit');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 429,
    -    "error": "Too Many Requests",
    -    "message": "you have exceeded your request limit"
    -}
    -```
    -
    -## HTTP 5xx Errors
    -
    -All 500 errors hide your message from the end user. Your message is recorded in the server log.
    -
    -### `Boom.badImplementation([message], [data])`
    -
    -Returns a 500 Internal Server Error error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.badImplementation('terrible implementation');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 500,
    -    "error": "Internal Server Error",
    -    "message": "An internal server error occurred"
    -}
    -```
    -
    -### `Boom.notImplemented([message], [data])`
    -
    -Returns a 501 Not Implemented error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.notImplemented('method not implemented');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 501,
    -    "error": "Not Implemented",
    -    "message": "method not implemented"
    -}
    -```
    -
    -### `Boom.badGateway([message], [data])`
    -
    -Returns a 502 Bad Gateway error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.badGateway('that is a bad gateway');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 502,
    -    "error": "Bad Gateway",
    -    "message": "that is a bad gateway"
    -}
    -```
    -
    -### `Boom.serverTimeout([message], [data])`
    -
    -Returns a 503 Service Unavailable error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.serverTimeout('unavailable');
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 503,
    -    "error": "Service Unavailable",
    -    "message": "unavailable"
    -}
    -```
    -
    -### `Boom.gatewayTimeout([message], [data])`
    -
    -Returns a 504 Gateway Time-out error where:
    -- `message` - optional message.
    -- `data` - optional additional error data.
    -
    -```js
    -Boom.gatewayTimeout();
    -```
    -
    -Generates the following response payload:
    -
    -```json
    -{
    -    "statusCode": 504,
    -    "error": "Gateway Time-out"
    -}
    -```
    -
    -## F.A.Q.
    -
    -###### How do I include extra information in my responses? `output.payload` is missing `data`, what gives?
    -
    -There is a reason the values passed back in the response payloads are pretty locked down. It's mostly for security and to not leak any important information back to the client. This means you will need to put in a little more effort to include extra information about your custom error. Check out the ["Error transformation"](https://github.com/hapijs/hapi/blob/master/API.md#error-transformation) section in the hapi documentation.
    diff --git a/node_modules/fsevents/node_modules/boom/images/boom.png b/node_modules/fsevents/node_modules/boom/images/boom.png
    deleted file mode 100755
    index 373bc13..0000000
    Binary files a/node_modules/fsevents/node_modules/boom/images/boom.png and /dev/null differ
    diff --git a/node_modules/fsevents/node_modules/boom/lib/index.js b/node_modules/fsevents/node_modules/boom/lib/index.js
    deleted file mode 100755
    index 6bdea69..0000000
    --- a/node_modules/fsevents/node_modules/boom/lib/index.js
    +++ /dev/null
    @@ -1,318 +0,0 @@
    -// Load modules
    -
    -var Http = require('http');
    -var Hoek = require('hoek');
    -
    -
    -// Declare internals
    -
    -var internals = {};
    -
    -exports.wrap = function (error, statusCode, message) {
    -
    -    Hoek.assert(error instanceof Error, 'Cannot wrap non-Error object');
    -    return (error.isBoom ? error : internals.initialize(error, statusCode || 500, message));
    -};
    -
    -
    -exports.create = function (statusCode, message, data) {
    -
    -    return internals.create(statusCode, message, data, exports.create);
    -};
    -
    -internals.create = function (statusCode, message, data, ctor) {
    -
    -    var error = new Error(message ? message : undefined);       // Avoids settings null message
    -    Error.captureStackTrace(error, ctor);                       // Filter the stack to our external API
    -    error.data = data || null;
    -    internals.initialize(error, statusCode);
    -    return error;
    -};
    -
    -internals.initialize = function (error, statusCode, message) {
    -
    -    var numberCode = parseInt(statusCode, 10);
    -    Hoek.assert(!isNaN(numberCode) && numberCode >= 400, 'First argument must be a number (400+):', statusCode);
    -
    -    error.isBoom = true;
    -    error.isServer = numberCode >= 500;
    -
    -    if (!error.hasOwnProperty('data')) {
    -        error.data = null;
    -    }
    -
    -    error.output = {
    -        statusCode: numberCode,
    -        payload: {},
    -        headers: {}
    -    };
    -
    -    error.reformat = internals.reformat;
    -    error.reformat();
    -
    -    if (!message &&
    -        !error.message) {
    -
    -        message = error.output.payload.error;
    -    }
    -
    -    if (message) {
    -        error.message = (message + (error.message ? ': ' + error.message : ''));
    -    }
    -
    -    return error;
    -};
    -
    -
    -internals.reformat = function () {
    -
    -    this.output.payload.statusCode = this.output.statusCode;
    -    this.output.payload.error = Http.STATUS_CODES[this.output.statusCode] || 'Unknown';
    -
    -    if (this.output.statusCode === 500) {
    -        this.output.payload.message = 'An internal server error occurred';              // Hide actual error from user
    -    }
    -    else if (this.message) {
    -        this.output.payload.message = this.message;
    -    }
    -};
    -
    -
    -// 4xx Client Errors
    -
    -exports.badRequest = function (message, data) {
    -
    -    return internals.create(400, message, data, exports.badRequest);
    -};
    -
    -
    -exports.unauthorized = function (message, scheme, attributes) {          // Or function (message, wwwAuthenticate[])
    -
    -    var err = internals.create(401, message, undefined, exports.unauthorized);
    -
    -    if (!scheme) {
    -        return err;
    -    }
    -
    -    var wwwAuthenticate = '';
    -    var i = 0;
    -    var il = 0;
    -
    -    if (typeof scheme === 'string') {
    -
    -        // function (message, scheme, attributes)
    -
    -        wwwAuthenticate = scheme;
    -
    -        if (attributes || message) {
    -            err.output.payload.attributes = {};
    -        }
    -
    -        if (attributes) {
    -            var names = Object.keys(attributes);
    -            for (i = 0, il = names.length; i < il; ++i) {
    -                var name = names[i];
    -                if (i) {
    -                    wwwAuthenticate += ',';
    -                }
    -
    -                var value = attributes[name];
    -                if (value === null ||
    -                    value === undefined) {              // Value can be zero
    -
    -                    value = '';
    -                }
    -                wwwAuthenticate += ' ' + name + '="' + Hoek.escapeHeaderAttribute(value.toString()) + '"';
    -                err.output.payload.attributes[name] = value;
    -            }
    -        }
    -
    -        if (message) {
    -            if (attributes) {
    -                wwwAuthenticate += ',';
    -            }
    -            wwwAuthenticate += ' error="' + Hoek.escapeHeaderAttribute(message) + '"';
    -            err.output.payload.attributes.error = message;
    -        }
    -        else {
    -            err.isMissing = true;
    -        }
    -    }
    -    else {
    -
    -        // function (message, wwwAuthenticate[])
    -
    -        var wwwArray = scheme;
    -        for (i = 0, il = wwwArray.length; i < il; ++i) {
    -            if (i) {
    -                wwwAuthenticate += ', ';
    -            }
    -
    -            wwwAuthenticate += wwwArray[i];
    -        }
    -    }
    -
    -    err.output.headers['WWW-Authenticate'] = wwwAuthenticate;
    -
    -    return err;
    -};
    -
    -
    -exports.forbidden = function (message, data) {
    -
    -    return internals.create(403, message, data, exports.forbidden);
    -};
    -
    -
    -exports.notFound = function (message, data) {
    -
    -    return internals.create(404, message, data, exports.notFound);
    -};
    -
    -
    -exports.methodNotAllowed = function (message, data) {
    -
    -    return internals.create(405, message, data, exports.methodNotAllowed);
    -};
    -
    -
    -exports.notAcceptable = function (message, data) {
    -
    -    return internals.create(406, message, data, exports.notAcceptable);
    -};
    -
    -
    -exports.proxyAuthRequired = function (message, data) {
    -
    -    return internals.create(407, message, data, exports.proxyAuthRequired);
    -};
    -
    -
    -exports.clientTimeout = function (message, data) {
    -
    -    return internals.create(408, message, data, exports.clientTimeout);
    -};
    -
    -
    -exports.conflict = function (message, data) {
    -
    -    return internals.create(409, message, data, exports.conflict);
    -};
    -
    -
    -exports.resourceGone = function (message, data) {
    -
    -    return internals.create(410, message, data, exports.resourceGone);
    -};
    -
    -
    -exports.lengthRequired = function (message, data) {
    -
    -    return internals.create(411, message, data, exports.lengthRequired);
    -};
    -
    -
    -exports.preconditionFailed = function (message, data) {
    -
    -    return internals.create(412, message, data, exports.preconditionFailed);
    -};
    -
    -
    -exports.entityTooLarge = function (message, data) {
    -
    -    return internals.create(413, message, data, exports.entityTooLarge);
    -};
    -
    -
    -exports.uriTooLong = function (message, data) {
    -
    -    return internals.create(414, message, data, exports.uriTooLong);
    -};
    -
    -
    -exports.unsupportedMediaType = function (message, data) {
    -
    -    return internals.create(415, message, data, exports.unsupportedMediaType);
    -};
    -
    -
    -exports.rangeNotSatisfiable = function (message, data) {
    -
    -    return internals.create(416, message, data, exports.rangeNotSatisfiable);
    -};
    -
    -
    -exports.expectationFailed = function (message, data) {
    -
    -    return internals.create(417, message, data, exports.expectationFailed);
    -};
    -
    -exports.badData = function (message, data) {
    -
    -    return internals.create(422, message, data, exports.badData);
    -};
    -
    -
    -exports.preconditionRequired = function (message, data) {
    -
    -    return internals.create(428, message, data, exports.preconditionRequired);
    -};
    -
    -
    -exports.tooManyRequests = function (message, data) {
    -
    -    return internals.create(429, message, data, exports.tooManyRequests);
    -};
    -
    -
    -// 5xx Server Errors
    -
    -exports.internal = function (message, data, statusCode) {
    -
    -    return internals.serverError(message, data, statusCode, exports.internal);
    -};
    -
    -internals.serverError = function (message, data, statusCode, ctor) {
    -
    -    var error;
    -    if (data instanceof Error) {
    -        error = exports.wrap(data, statusCode, message);
    -    } else {
    -        error = internals.create(statusCode || 500, message, undefined, ctor);
    -        error.data = data;
    -    }
    -
    -    return error;
    -};
    -
    -
    -exports.notImplemented = function (message, data) {
    -
    -    return internals.serverError(message, data, 501, exports.notImplemented);
    -};
    -
    -
    -exports.badGateway = function (message, data) {
    -
    -    return internals.serverError(message, data, 502, exports.badGateway);
    -};
    -
    -
    -exports.serverTimeout = function (message, data) {
    -
    -    return internals.serverError(message, data, 503, exports.serverTimeout);
    -};
    -
    -
    -exports.gatewayTimeout = function (message, data) {
    -
    -    return internals.serverError(message, data, 504, exports.gatewayTimeout);
    -};
    -
    -
    -exports.badImplementation = function (message, data) {
    -
    -    var err = internals.serverError(message, data, 500, exports.badImplementation);
    -    err.isDeveloperError = true;
    -    return err;
    -};
    diff --git a/node_modules/fsevents/node_modules/boom/package.json b/node_modules/fsevents/node_modules/boom/package.json
    deleted file mode 100644
    index 84039cb..0000000
    --- a/node_modules/fsevents/node_modules/boom/package.json
    +++ /dev/null
    @@ -1,98 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "boom@2.x.x",
    -        "scope": null,
    -        "escapedName": "boom",
    -        "name": "boom",
    -        "rawSpec": "2.x.x",
    -        "spec": ">=2.0.0 <3.0.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/hawk"
    -    ]
    -  ],
    -  "_from": "boom@>=2.0.0 <3.0.0",
    -  "_id": "boom@2.10.1",
    -  "_inCache": true,
    -  "_location": "/fsevents/boom",
    -  "_nodeVersion": "0.10.40",
    -  "_npmUser": {
    -    "name": "arb",
    -    "email": "arbretz@gmail.com"
    -  },
    -  "_npmVersion": "2.11.1",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "boom@2.x.x",
    -    "scope": null,
    -    "escapedName": "boom",
    -    "name": "boom",
    -    "rawSpec": "2.x.x",
    -    "spec": ">=2.0.0 <3.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/cryptiles",
    -    "/fsevents/hawk"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz",
    -  "_shasum": "39c8918ceff5799f83f9492a848f625add0c766f",
    -  "_shrinkwrap": null,
    -  "_spec": "boom@2.x.x",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/hawk",
    -  "bugs": {
    -    "url": "https://github.com/hapijs/boom/issues"
    -  },
    -  "dependencies": {
    -    "hoek": "2.x.x"
    -  },
    -  "description": "HTTP-friendly error objects",
    -  "devDependencies": {
    -    "code": "1.x.x",
    -    "lab": "7.x.x"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "39c8918ceff5799f83f9492a848f625add0c766f",
    -    "tarball": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.10.40"
    -  },
    -  "gitHead": "ff1a662a86b39426cdd18f4441b112d307a34a6f",
    -  "homepage": "https://github.com/hapijs/boom#readme",
    -  "keywords": [
    -    "error",
    -    "http"
    -  ],
    -  "license": "BSD-3-Clause",
    -  "main": "lib/index.js",
    -  "maintainers": [
    -    {
    -      "name": "hueniverse",
    -      "email": "eran@hueniverse.com"
    -    },
    -    {
    -      "name": "wyatt",
    -      "email": "wpreul@gmail.com"
    -    },
    -    {
    -      "name": "arb",
    -      "email": "arbretz@gmail.com"
    -    }
    -  ],
    -  "name": "boom",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/hapijs/boom.git"
    -  },
    -  "scripts": {
    -    "test": "lab -a code -t 100 -L",
    -    "test-cov-html": "lab -a code -r html -o coverage.html -L"
    -  },
    -  "version": "2.10.1"
    -}
    diff --git a/node_modules/fsevents/node_modules/boom/test/index.js b/node_modules/fsevents/node_modules/boom/test/index.js
    deleted file mode 100755
    index 79a59e9..0000000
    --- a/node_modules/fsevents/node_modules/boom/test/index.js
    +++ /dev/null
    @@ -1,654 +0,0 @@
    -// Load modules
    -
    -var Code = require('code');
    -var Boom = require('../lib');
    -var Lab = require('lab');
    -
    -
    -// Declare internals
    -
    -var internals = {};
    -
    -
    -// Test shortcuts
    -
    -var lab = exports.lab = Lab.script();
    -var describe = lab.describe;
    -var it = lab.it;
    -var expect = Code.expect;
    -
    -
    -it('returns the same object when already boom', function (done) {
    -
    -    var error = Boom.badRequest();
    -    var wrapped = Boom.wrap(error);
    -    expect(error).to.equal(wrapped);
    -    done();
    -});
    -
    -it('returns an error with info when constructed using another error', function (done) {
    -
    -    var error = new Error('ka-boom');
    -    error.xyz = 123;
    -    var err = Boom.wrap(error);
    -    expect(err.xyz).to.equal(123);
    -    expect(err.message).to.equal('ka-boom');
    -    expect(err.output).to.deep.equal({
    -        statusCode: 500,
    -        payload: {
    -            statusCode: 500,
    -            error: 'Internal Server Error',
    -            message: 'An internal server error occurred'
    -        },
    -        headers: {}
    -    });
    -    expect(err.data).to.equal(null);
    -    done();
    -});
    -
    -it('does not override data when constructed using another error', function (done) {
    -
    -    var error = new Error('ka-boom');
    -    error.data = { useful: 'data' };
    -    var err = Boom.wrap(error);
    -    expect(err.data).to.equal(error.data);
    -    done();
    -});
    -
    -it('sets new message when none exists', function (done) {
    -
    -    var error = new Error();
    -    var wrapped = Boom.wrap(error, 400, 'something bad');
    -    expect(wrapped.message).to.equal('something bad');
    -    done();
    -});
    -
    -it('throws when statusCode is not a number', function (done) {
    -
    -    expect(function () {
    -
    -        Boom.create('x');
    -    }).to.throw('First argument must be a number (400+): x');
    -    done();
    -});
    -
    -it('will cast a number-string to an integer', function (done) {
    -
    -    var codes = [
    -        { input: '404', result: 404 },
    -        { input: '404.1', result: 404 },
    -        { input: 400, result: 400 },
    -        { input: 400.123, result: 400 }];
    -    for (var i = 0, il = codes.length; i < il; ++i) {
    -        var code = codes[i];
    -        var err = Boom.create(code.input);
    -        expect(err.output.statusCode).to.equal(code.result);
    -    }
    -
    -    done();
    -});
    -
    -it('throws when statusCode is not finite', function (done) {
    -
    -    expect(function () {
    -
    -        Boom.create(1 / 0);
    -    }).to.throw('First argument must be a number (400+): null');
    -    done();
    -});
    -
    -it('sets error code to unknown', function (done) {
    -
    -    var err = Boom.create(999);
    -    expect(err.output.payload.error).to.equal('Unknown');
    -    done();
    -});
    -
    -describe('create()', function () {
    -
    -    it('does not sets null message', function (done) {
    -
    -        var error = Boom.unauthorized(null);
    -        expect(error.output.payload.message).to.not.exist();
    -        expect(error.isServer).to.be.false();
    -        done();
    -    });
    -
    -    it('sets message and data', function (done) {
    -
    -        var error = Boom.badRequest('Missing data', { type: 'user' });
    -        expect(error.data.type).to.equal('user');
    -        expect(error.output.payload.message).to.equal('Missing data');
    -        done();
    -    });
    -});
    -
    -describe('isBoom()', function () {
    -
    -    it('returns true for Boom object', function (done) {
    -
    -        expect(Boom.badRequest().isBoom).to.equal(true);
    -        done();
    -    });
    -
    -    it('returns false for Error object', function (done) {
    -
    -        expect((new Error()).isBoom).to.not.exist();
    -        done();
    -    });
    -});
    -
    -describe('badRequest()', function () {
    -
    -    it('returns a 400 error statusCode', function (done) {
    -
    -        var error = Boom.badRequest();
    -
    -        expect(error.output.statusCode).to.equal(400);
    -        expect(error.isServer).to.be.false();
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.badRequest('my message').message).to.equal('my message');
    -        done();
    -    });
    -
    -    it('sets the message to HTTP status if none provided', function (done) {
    -
    -        expect(Boom.badRequest().message).to.equal('Bad Request');
    -        done();
    -    });
    -});
    -
    -describe('unauthorized()', function () {
    -
    -    it('returns a 401 error statusCode', function (done) {
    -
    -        var err = Boom.unauthorized();
    -        expect(err.output.statusCode).to.equal(401);
    -        expect(err.output.headers).to.deep.equal({});
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.unauthorized('my message').message).to.equal('my message');
    -        done();
    -    });
    -
    -    it('returns a WWW-Authenticate header when passed a scheme', function (done) {
    -
    -        var err = Boom.unauthorized('boom', 'Test');
    -        expect(err.output.statusCode).to.equal(401);
    -        expect(err.output.headers['WWW-Authenticate']).to.equal('Test error="boom"');
    -        done();
    -    });
    -
    -    it('returns a WWW-Authenticate header set to the schema array value', function (done) {
    -
    -        var err = Boom.unauthorized(null, ['Test','one','two']);
    -        expect(err.output.statusCode).to.equal(401);
    -        expect(err.output.headers['WWW-Authenticate']).to.equal('Test, one, two');
    -        done();
    -    });
    -
    -    it('returns a WWW-Authenticate header when passed a scheme and attributes', function (done) {
    -
    -        var err = Boom.unauthorized('boom', 'Test', { a: 1, b: 'something', c: null, d: 0 });
    -        expect(err.output.statusCode).to.equal(401);
    -        expect(err.output.headers['WWW-Authenticate']).to.equal('Test a="1", b="something", c="", d="0", error="boom"');
    -        expect(err.output.payload.attributes).to.deep.equal({ a: 1, b: 'something', c: '', d: 0, error: 'boom' });
    -        done();
    -    });
    -
    -    it('returns a WWW-Authenticate header when passed attributes, missing error', function (done) {
    -
    -        var err = Boom.unauthorized(null, 'Test', { a: 1, b: 'something', c: null, d: 0 });
    -        expect(err.output.statusCode).to.equal(401);
    -        expect(err.output.headers['WWW-Authenticate']).to.equal('Test a="1", b="something", c="", d="0"');
    -        expect(err.isMissing).to.equal(true);
    -        done();
    -    });
    -
    -    it('sets the isMissing flag when error message is empty', function (done) {
    -
    -        var err = Boom.unauthorized('', 'Basic');
    -        expect(err.isMissing).to.equal(true);
    -        done();
    -    });
    -
    -    it('does not set the isMissing flag when error message is not empty', function (done) {
    -
    -        var err = Boom.unauthorized('message', 'Basic');
    -        expect(err.isMissing).to.equal(undefined);
    -        done();
    -    });
    -
    -    it('sets a WWW-Authenticate when passed as an array', function (done) {
    -
    -        var err = Boom.unauthorized('message', ['Basic', 'Example e="1"', 'Another x="3", y="4"']);
    -        expect(err.output.headers['WWW-Authenticate']).to.equal('Basic, Example e="1", Another x="3", y="4"');
    -        done();
    -    });
    -});
    -
    -
    -describe('methodNotAllowed()', function () {
    -
    -    it('returns a 405 error statusCode', function (done) {
    -
    -        expect(Boom.methodNotAllowed().output.statusCode).to.equal(405);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.methodNotAllowed('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('notAcceptable()', function () {
    -
    -    it('returns a 406 error statusCode', function (done) {
    -
    -        expect(Boom.notAcceptable().output.statusCode).to.equal(406);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.notAcceptable('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('proxyAuthRequired()', function () {
    -
    -    it('returns a 407 error statusCode', function (done) {
    -
    -        expect(Boom.proxyAuthRequired().output.statusCode).to.equal(407);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.proxyAuthRequired('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('clientTimeout()', function () {
    -
    -    it('returns a 408 error statusCode', function (done) {
    -
    -        expect(Boom.clientTimeout().output.statusCode).to.equal(408);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.clientTimeout('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('conflict()', function () {
    -
    -    it('returns a 409 error statusCode', function (done) {
    -
    -        expect(Boom.conflict().output.statusCode).to.equal(409);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.conflict('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('resourceGone()', function () {
    -
    -    it('returns a 410 error statusCode', function (done) {
    -
    -        expect(Boom.resourceGone().output.statusCode).to.equal(410);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.resourceGone('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('lengthRequired()', function () {
    -
    -    it('returns a 411 error statusCode', function (done) {
    -
    -        expect(Boom.lengthRequired().output.statusCode).to.equal(411);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.lengthRequired('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('preconditionFailed()', function () {
    -
    -    it('returns a 412 error statusCode', function (done) {
    -
    -        expect(Boom.preconditionFailed().output.statusCode).to.equal(412);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.preconditionFailed('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('entityTooLarge()', function () {
    -
    -    it('returns a 413 error statusCode', function (done) {
    -
    -        expect(Boom.entityTooLarge().output.statusCode).to.equal(413);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.entityTooLarge('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('uriTooLong()', function () {
    -
    -    it('returns a 414 error statusCode', function (done) {
    -
    -        expect(Boom.uriTooLong().output.statusCode).to.equal(414);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.uriTooLong('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('unsupportedMediaType()', function () {
    -
    -    it('returns a 415 error statusCode', function (done) {
    -
    -        expect(Boom.unsupportedMediaType().output.statusCode).to.equal(415);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.unsupportedMediaType('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('rangeNotSatisfiable()', function () {
    -
    -    it('returns a 416 error statusCode', function (done) {
    -
    -        expect(Boom.rangeNotSatisfiable().output.statusCode).to.equal(416);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.rangeNotSatisfiable('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('expectationFailed()', function () {
    -
    -    it('returns a 417 error statusCode', function (done) {
    -
    -        expect(Boom.expectationFailed().output.statusCode).to.equal(417);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.expectationFailed('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('badData()', function () {
    -
    -    it('returns a 422 error statusCode', function (done) {
    -
    -        expect(Boom.badData().output.statusCode).to.equal(422);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.badData('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('preconditionRequired()', function () {
    -
    -    it('returns a 428 error statusCode', function (done) {
    -
    -        expect(Boom.preconditionRequired().output.statusCode).to.equal(428);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.preconditionRequired('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('tooManyRequests()', function () {
    -
    -    it('returns a 429 error statusCode', function (done) {
    -
    -        expect(Boom.tooManyRequests().output.statusCode).to.equal(429);
    -        done();
    -    });
    -
    -    it('sets the message with the passed-in message', function (done) {
    -
    -        expect(Boom.tooManyRequests('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -describe('serverTimeout()', function () {
    -
    -    it('returns a 503 error statusCode', function (done) {
    -
    -        expect(Boom.serverTimeout().output.statusCode).to.equal(503);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.serverTimeout('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -describe('forbidden()', function () {
    -
    -    it('returns a 403 error statusCode', function (done) {
    -
    -        expect(Boom.forbidden().output.statusCode).to.equal(403);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.forbidden('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -describe('notFound()', function () {
    -
    -    it('returns a 404 error statusCode', function (done) {
    -
    -        expect(Boom.notFound().output.statusCode).to.equal(404);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.notFound('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -describe('internal()', function () {
    -
    -    it('returns a 500 error statusCode', function (done) {
    -
    -        expect(Boom.internal().output.statusCode).to.equal(500);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        var err = Boom.internal('my message');
    -        expect(err.message).to.equal('my message');
    -        expect(err.isServer).to.true();
    -        expect(err.output.payload.message).to.equal('An internal server error occurred');
    -        done();
    -    });
    -
    -    it('passes data on the callback if its passed in', function (done) {
    -
    -        expect(Boom.internal('my message', { my: 'data' }).data.my).to.equal('data');
    -        done();
    -    });
    -
    -    it('returns an error with composite message', function (done) {
    -
    -        try {
    -            JSON.parse('{');
    -        }
    -        catch (err) {
    -            var boom = Boom.internal('Someting bad', err);
    -            expect(boom.message).to.equal('Someting bad: Unexpected end of input');
    -            expect(boom.isServer).to.be.true();
    -            done();
    -        }
    -    });
    -});
    -
    -describe('notImplemented()', function () {
    -
    -    it('returns a 501 error statusCode', function (done) {
    -
    -        expect(Boom.notImplemented().output.statusCode).to.equal(501);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.notImplemented('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -
    -describe('badGateway()', function () {
    -
    -    it('returns a 502 error statusCode', function (done) {
    -
    -        expect(Boom.badGateway().output.statusCode).to.equal(502);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.badGateway('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -describe('gatewayTimeout()', function () {
    -
    -    it('returns a 504 error statusCode', function (done) {
    -
    -        expect(Boom.gatewayTimeout().output.statusCode).to.equal(504);
    -        done();
    -    });
    -
    -    it('sets the message with the passed in message', function (done) {
    -
    -        expect(Boom.gatewayTimeout('my message').message).to.equal('my message');
    -        done();
    -    });
    -});
    -
    -describe('badImplementation()', function () {
    -
    -    it('returns a 500 error statusCode', function (done) {
    -
    -        var err = Boom.badImplementation();
    -        expect(err.output.statusCode).to.equal(500);
    -        expect(err.isDeveloperError).to.equal(true);
    -        expect(err.isServer).to.be.true();
    -        done();
    -    });
    -});
    -
    -describe('stack trace', function () {
    -
    -    it('should omit lib', function (done) {
    -
    -        ['badRequest', 'unauthorized', 'forbidden', 'notFound', 'methodNotAllowed',
    -            'notAcceptable', 'proxyAuthRequired', 'clientTimeout', 'conflict',
    -            'resourceGone', 'lengthRequired', 'preconditionFailed', 'entityTooLarge',
    -            'uriTooLong', 'unsupportedMediaType', 'rangeNotSatisfiable', 'expectationFailed',
    -            'badData', 'preconditionRequired', 'tooManyRequests',
    -
    -            // 500s
    -            'internal', 'notImplemented', 'badGateway', 'serverTimeout', 'gatewayTimeout',
    -            'badImplementation'
    -        ].forEach(function (name) {
    -
    -            var err = Boom[name]();
    -            expect(err.stack).to.not.match(/\/lib\/index\.js/);
    -        });
    -
    -        done();
    -    });
    -});
    diff --git a/node_modules/fsevents/node_modules/brace-expansion/README.md b/node_modules/fsevents/node_modules/brace-expansion/README.md
    deleted file mode 100644
    index 1793929..0000000
    --- a/node_modules/fsevents/node_modules/brace-expansion/README.md
    +++ /dev/null
    @@ -1,122 +0,0 @@
    -# brace-expansion
    -
    -[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), 
    -as known from sh/bash, in JavaScript.
    -
    -[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion)
    -[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion)
    -
    -[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion)
    -
    -## Example
    -
    -```js
    -var expand = require('brace-expansion');
    -
    -expand('file-{a,b,c}.jpg')
    -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
    -
    -expand('-v{,,}')
    -// => ['-v', '-v', '-v']
    -
    -expand('file{0..2}.jpg')
    -// => ['file0.jpg', 'file1.jpg', 'file2.jpg']
    -
    -expand('file-{a..c}.jpg')
    -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
    -
    -expand('file{2..0}.jpg')
    -// => ['file2.jpg', 'file1.jpg', 'file0.jpg']
    -
    -expand('file{0..4..2}.jpg')
    -// => ['file0.jpg', 'file2.jpg', 'file4.jpg']
    -
    -expand('file-{a..e..2}.jpg')
    -// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']
    -
    -expand('file{00..10..5}.jpg')
    -// => ['file00.jpg', 'file05.jpg', 'file10.jpg']
    -
    -expand('{{A..C},{a..c}}')
    -// => ['A', 'B', 'C', 'a', 'b', 'c']
    -
    -expand('ppp{,config,oe{,conf}}')
    -// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']
    -```
    -
    -## API
    -
    -```js
    -var expand = require('brace-expansion');
    -```
    -
    -### var expanded = expand(str)
    -
    -Return an array of all possible and valid expansions of `str`. If none are
    -found, `[str]` is returned.
    -
    -Valid expansions are:
    -
    -```js
    -/^(.*,)+(.+)?$/
    -// {a,b,...}
    -```
    -
    -A comma seperated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`.
    -
    -```js
    -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
    -// {x..y[..incr]}
    -```
    -
    -A numeric sequence from `x` to `y` inclusive, with optional increment.
    -If `x` or `y` start with a leading `0`, all the numbers will be padded
    -to have equal length. Negative numbers and backwards iteration work too.
    -
    -```js
    -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
    -// {x..y[..incr]}
    -```
    -
    -An alphabetic sequence from `x` to `y` inclusive, with optional increment.
    -`x` and `y` must be exactly one character, and if given, `incr` must be a
    -number.
    -
    -For compatibility reasons, the string `${` is not eligible for brace expansion.
    -
    -## Installation
    -
    -With [npm](https://npmjs.org) do:
    -
    -```bash
    -npm install brace-expansion
    -```
    -
    -## Contributors
    -
    -- [Julian Gruber](https://github.com/juliangruber)
    -- [Isaac Z. Schlueter](https://github.com/isaacs)
    -
    -## License
    -
    -(MIT)
    -
    -Copyright (c) 2013 Julian Gruber <julian@juliangruber.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/fsevents/node_modules/brace-expansion/index.js b/node_modules/fsevents/node_modules/brace-expansion/index.js
    deleted file mode 100644
    index 955f27c..0000000
    --- a/node_modules/fsevents/node_modules/brace-expansion/index.js
    +++ /dev/null
    @@ -1,201 +0,0 @@
    -var concatMap = require('concat-map');
    -var balanced = require('balanced-match');
    -
    -module.exports = expandTop;
    -
    -var escSlash = '\0SLASH'+Math.random()+'\0';
    -var escOpen = '\0OPEN'+Math.random()+'\0';
    -var escClose = '\0CLOSE'+Math.random()+'\0';
    -var escComma = '\0COMMA'+Math.random()+'\0';
    -var escPeriod = '\0PERIOD'+Math.random()+'\0';
    -
    -function numeric(str) {
    -  return parseInt(str, 10) == str
    -    ? parseInt(str, 10)
    -    : str.charCodeAt(0);
    -}
    -
    -function escapeBraces(str) {
    -  return str.split('\\\\').join(escSlash)
    -            .split('\\{').join(escOpen)
    -            .split('\\}').join(escClose)
    -            .split('\\,').join(escComma)
    -            .split('\\.').join(escPeriod);
    -}
    -
    -function unescapeBraces(str) {
    -  return str.split(escSlash).join('\\')
    -            .split(escOpen).join('{')
    -            .split(escClose).join('}')
    -            .split(escComma).join(',')
    -            .split(escPeriod).join('.');
    -}
    -
    -
    -// Basically just str.split(","), but handling cases
    -// where we have nested braced sections, which should be
    -// treated as individual members, like {a,{b,c},d}
    -function parseCommaParts(str) {
    -  if (!str)
    -    return [''];
    -
    -  var parts = [];
    -  var m = balanced('{', '}', str);
    -
    -  if (!m)
    -    return str.split(',');
    -
    -  var pre = m.pre;
    -  var body = m.body;
    -  var post = m.post;
    -  var p = pre.split(',');
    -
    -  p[p.length-1] += '{' + body + '}';
    -  var postParts = parseCommaParts(post);
    -  if (post.length) {
    -    p[p.length-1] += postParts.shift();
    -    p.push.apply(p, postParts);
    -  }
    -
    -  parts.push.apply(parts, p);
    -
    -  return parts;
    -}
    -
    -function expandTop(str) {
    -  if (!str)
    -    return [];
    -
    -  // I don't know why Bash 4.3 does this, but it does.
    -  // Anything starting with {} will have the first two bytes preserved
    -  // but *only* at the top level, so {},a}b will not expand to anything,
    -  // but a{},b}c will be expanded to [a}c,abc].
    -  // One could argue that this is a bug in Bash, but since the goal of
    -  // this module is to match Bash's rules, we escape a leading {}
    -  if (str.substr(0, 2) === '{}') {
    -    str = '\\{\\}' + str.substr(2);
    -  }
    -
    -  return expand(escapeBraces(str), true).map(unescapeBraces);
    -}
    -
    -function identity(e) {
    -  return e;
    -}
    -
    -function embrace(str) {
    -  return '{' + str + '}';
    -}
    -function isPadded(el) {
    -  return /^-?0\d/.test(el);
    -}
    -
    -function lte(i, y) {
    -  return i <= y;
    -}
    -function gte(i, y) {
    -  return i >= y;
    -}
    -
    -function expand(str, isTop) {
    -  var expansions = [];
    -
    -  var m = balanced('{', '}', str);
    -  if (!m || /\$$/.test(m.pre)) return [str];
    -
    -  var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
    -  var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
    -  var isSequence = isNumericSequence || isAlphaSequence;
    -  var isOptions = /^(.*,)+(.+)?$/.test(m.body);
    -  if (!isSequence && !isOptions) {
    -    // {a},b}
    -    if (m.post.match(/,.*\}/)) {
    -      str = m.pre + '{' + m.body + escClose + m.post;
    -      return expand(str);
    -    }
    -    return [str];
    -  }
    -
    -  var n;
    -  if (isSequence) {
    -    n = m.body.split(/\.\./);
    -  } else {
    -    n = parseCommaParts(m.body);
    -    if (n.length === 1) {
    -      // x{{a,b}}y ==> x{a}y x{b}y
    -      n = expand(n[0], false).map(embrace);
    -      if (n.length === 1) {
    -        var post = m.post.length
    -          ? expand(m.post, false)
    -          : [''];
    -        return post.map(function(p) {
    -          return m.pre + n[0] + p;
    -        });
    -      }
    -    }
    -  }
    -
    -  // at this point, n is the parts, and we know it's not a comma set
    -  // with a single entry.
    -
    -  // no need to expand pre, since it is guaranteed to be free of brace-sets
    -  var pre = m.pre;
    -  var post = m.post.length
    -    ? expand(m.post, false)
    -    : [''];
    -
    -  var N;
    -
    -  if (isSequence) {
    -    var x = numeric(n[0]);
    -    var y = numeric(n[1]);
    -    var width = Math.max(n[0].length, n[1].length)
    -    var incr = n.length == 3
    -      ? Math.abs(numeric(n[2]))
    -      : 1;
    -    var test = lte;
    -    var reverse = y < x;
    -    if (reverse) {
    -      incr *= -1;
    -      test = gte;
    -    }
    -    var pad = n.some(isPadded);
    -
    -    N = [];
    -
    -    for (var i = x; test(i, y); i += incr) {
    -      var c;
    -      if (isAlphaSequence) {
    -        c = String.fromCharCode(i);
    -        if (c === '\\')
    -          c = '';
    -      } else {
    -        c = String(i);
    -        if (pad) {
    -          var need = width - c.length;
    -          if (need > 0) {
    -            var z = new Array(need + 1).join('0');
    -            if (i < 0)
    -              c = '-' + z + c.slice(1);
    -            else
    -              c = z + c;
    -          }
    -        }
    -      }
    -      N.push(c);
    -    }
    -  } else {
    -    N = concatMap(n, function(el) { return expand(el, false) });
    -  }
    -
    -  for (var j = 0; j < N.length; j++) {
    -    for (var k = 0; k < post.length; k++) {
    -      var expansion = pre + N[j] + post[k];
    -      if (!isTop || isSequence || expansion)
    -        expansions.push(expansion);
    -    }
    -  }
    -
    -  return expansions;
    -}
    -
    diff --git a/node_modules/fsevents/node_modules/brace-expansion/package.json b/node_modules/fsevents/node_modules/brace-expansion/package.json
    deleted file mode 100644
    index 6291362..0000000
    --- a/node_modules/fsevents/node_modules/brace-expansion/package.json
    +++ /dev/null
    @@ -1,112 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "brace-expansion@^1.0.0",
    -        "scope": null,
    -        "escapedName": "brace-expansion",
    -        "name": "brace-expansion",
    -        "rawSpec": "^1.0.0",
    -        "spec": ">=1.0.0 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/minimatch"
    -    ]
    -  ],
    -  "_from": "brace-expansion@>=1.0.0 <2.0.0",
    -  "_id": "brace-expansion@1.1.6",
    -  "_inCache": true,
    -  "_location": "/fsevents/brace-expansion",
    -  "_nodeVersion": "4.4.7",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/brace-expansion-1.1.6.tgz_1469047715600_0.9362958471756428"
    -  },
    -  "_npmUser": {
    -    "name": "juliangruber",
    -    "email": "julian@juliangruber.com"
    -  },
    -  "_npmVersion": "2.15.8",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "brace-expansion@^1.0.0",
    -    "scope": null,
    -    "escapedName": "brace-expansion",
    -    "name": "brace-expansion",
    -    "rawSpec": "^1.0.0",
    -    "spec": ">=1.0.0 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/minimatch"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.6.tgz",
    -  "_shasum": "7197d7eaa9b87e648390ea61fc66c84427420df9",
    -  "_shrinkwrap": null,
    -  "_spec": "brace-expansion@^1.0.0",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/minimatch",
    -  "author": {
    -    "name": "Julian Gruber",
    -    "email": "mail@juliangruber.com",
    -    "url": "http://juliangruber.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/juliangruber/brace-expansion/issues"
    -  },
    -  "dependencies": {
    -    "balanced-match": "^0.4.1",
    -    "concat-map": "0.0.1"
    -  },
    -  "description": "Brace expansion as known from sh/bash",
    -  "devDependencies": {
    -    "tape": "^4.6.0"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "7197d7eaa9b87e648390ea61fc66c84427420df9",
    -    "tarball": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.6.tgz"
    -  },
    -  "gitHead": "791262fa06625e9c5594cde529a21d82086af5f2",
    -  "homepage": "https://github.com/juliangruber/brace-expansion",
    -  "keywords": [],
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "juliangruber",
    -      "email": "julian@juliangruber.com"
    -    },
    -    {
    -      "name": "isaacs",
    -      "email": "isaacs@npmjs.com"
    -    }
    -  ],
    -  "name": "brace-expansion",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git://github.com/juliangruber/brace-expansion.git"
    -  },
    -  "scripts": {
    -    "gentest": "bash test/generate.sh",
    -    "test": "tape test/*.js"
    -  },
    -  "testling": {
    -    "files": "test/*.js",
    -    "browsers": [
    -      "ie/8..latest",
    -      "firefox/20..latest",
    -      "firefox/nightly",
    -      "chrome/25..latest",
    -      "chrome/canary",
    -      "opera/12..latest",
    -      "opera/next",
    -      "safari/5.1..latest",
    -      "ipad/6.0..latest",
    -      "iphone/6.0..latest",
    -      "android-browser/4.2..latest"
    -    ]
    -  },
    -  "version": "1.1.6"
    -}
    diff --git a/node_modules/fsevents/node_modules/buffer-shims/index.js b/node_modules/fsevents/node_modules/buffer-shims/index.js
    deleted file mode 100644
    index 1cab4c0..0000000
    --- a/node_modules/fsevents/node_modules/buffer-shims/index.js
    +++ /dev/null
    @@ -1,108 +0,0 @@
    -'use strict';
    -
    -var buffer = require('buffer');
    -var Buffer = buffer.Buffer;
    -var SlowBuffer = buffer.SlowBuffer;
    -var MAX_LEN = buffer.kMaxLength || 2147483647;
    -exports.alloc = function alloc(size, fill, encoding) {
    -  if (typeof Buffer.alloc === 'function') {
    -    return Buffer.alloc(size, fill, encoding);
    -  }
    -  if (typeof encoding === 'number') {
    -    throw new TypeError('encoding must not be number');
    -  }
    -  if (typeof size !== 'number') {
    -    throw new TypeError('size must be a number');
    -  }
    -  if (size > MAX_LEN) {
    -    throw new RangeError('size is too large');
    -  }
    -  var enc = encoding;
    -  var _fill = fill;
    -  if (_fill === undefined) {
    -    enc = undefined;
    -    _fill = 0;
    -  }
    -  var buf = new Buffer(size);
    -  if (typeof _fill === 'string') {
    -    var fillBuf = new Buffer(_fill, enc);
    -    var flen = fillBuf.length;
    -    var i = -1;
    -    while (++i < size) {
    -      buf[i] = fillBuf[i % flen];
    -    }
    -  } else {
    -    buf.fill(_fill);
    -  }
    -  return buf;
    -}
    -exports.allocUnsafe = function allocUnsafe(size) {
    -  if (typeof Buffer.allocUnsafe === 'function') {
    -    return Buffer.allocUnsafe(size);
    -  }
    -  if (typeof size !== 'number') {
    -    throw new TypeError('size must be a number');
    -  }
    -  if (size > MAX_LEN) {
    -    throw new RangeError('size is too large');
    -  }
    -  return new Buffer(size);
    -}
    -exports.from = function from(value, encodingOrOffset, length) {
    -  if (typeof Buffer.from === 'function' && (!global.Uint8Array || Uint8Array.from !== Buffer.from)) {
    -    return Buffer.from(value, encodingOrOffset, length);
    -  }
    -  if (typeof value === 'number') {
    -    throw new TypeError('"value" argument must not be a number');
    -  }
    -  if (typeof value === 'string') {
    -    return new Buffer(value, encodingOrOffset);
    -  }
    -  if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
    -    var offset = encodingOrOffset;
    -    if (arguments.length === 1) {
    -      return new Buffer(value);
    -    }
    -    if (typeof offset === 'undefined') {
    -      offset = 0;
    -    }
    -    var len = length;
    -    if (typeof len === 'undefined') {
    -      len = value.byteLength - offset;
    -    }
    -    if (offset >= value.byteLength) {
    -      throw new RangeError('\'offset\' is out of bounds');
    -    }
    -    if (len > value.byteLength - offset) {
    -      throw new RangeError('\'length\' is out of bounds');
    -    }
    -    return new Buffer(value.slice(offset, offset + len));
    -  }
    -  if (Buffer.isBuffer(value)) {
    -    var out = new Buffer(value.length);
    -    value.copy(out, 0, 0, value.length);
    -    return out;
    -  }
    -  if (value) {
    -    if (Array.isArray(value) || (typeof ArrayBuffer !== 'undefined' && value.buffer instanceof ArrayBuffer) || 'length' in value) {
    -      return new Buffer(value);
    -    }
    -    if (value.type === 'Buffer' && Array.isArray(value.data)) {
    -      return new Buffer(value.data);
    -    }
    -  }
    -
    -  throw new TypeError('First argument must be a string, Buffer, ' + 'ArrayBuffer, Array, or array-like object.');
    -}
    -exports.allocUnsafeSlow = function allocUnsafeSlow(size) {
    -  if (typeof Buffer.allocUnsafeSlow === 'function') {
    -    return Buffer.allocUnsafeSlow(size);
    -  }
    -  if (typeof size !== 'number') {
    -    throw new TypeError('size must be a number');
    -  }
    -  if (size >= MAX_LEN) {
    -    throw new RangeError('size is too large');
    -  }
    -  return new SlowBuffer(size);
    -}
    diff --git a/node_modules/fsevents/node_modules/buffer-shims/license.md b/node_modules/fsevents/node_modules/buffer-shims/license.md
    deleted file mode 100644
    index 01cfaef..0000000
    --- a/node_modules/fsevents/node_modules/buffer-shims/license.md
    +++ /dev/null
    @@ -1,19 +0,0 @@
    -# Copyright (c) 2016 Calvin Metcalf
    -
    -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/fsevents/node_modules/buffer-shims/package.json b/node_modules/fsevents/node_modules/buffer-shims/package.json
    deleted file mode 100644
    index e71dd04..0000000
    --- a/node_modules/fsevents/node_modules/buffer-shims/package.json
    +++ /dev/null
    @@ -1,86 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "buffer-shims@^1.0.0",
    -        "scope": null,
    -        "escapedName": "buffer-shims",
    -        "name": "buffer-shims",
    -        "rawSpec": "^1.0.0",
    -        "spec": ">=1.0.0 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/readable-stream"
    -    ]
    -  ],
    -  "_from": "buffer-shims@>=1.0.0 <2.0.0",
    -  "_id": "buffer-shims@1.0.0",
    -  "_inCache": true,
    -  "_location": "/fsevents/buffer-shims",
    -  "_nodeVersion": "5.11.0",
    -  "_npmOperationalInternal": {
    -    "host": "packages-16-east.internal.npmjs.com",
    -    "tmp": "tmp/buffer-shims-1.0.0.tgz_1462560889323_0.8640750856138766"
    -  },
    -  "_npmUser": {
    -    "name": "cwmma",
    -    "email": "calvin.metcalf@gmail.com"
    -  },
    -  "_npmVersion": "3.8.6",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "buffer-shims@^1.0.0",
    -    "scope": null,
    -    "escapedName": "buffer-shims",
    -    "name": "buffer-shims",
    -    "rawSpec": "^1.0.0",
    -    "spec": ">=1.0.0 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/readable-stream",
    -    "/fsevents/tar-pack/readable-stream"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz",
    -  "_shasum": "9978ce317388c649ad8793028c3477ef044a8b51",
    -  "_shrinkwrap": null,
    -  "_spec": "buffer-shims@^1.0.0",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/readable-stream",
    -  "bugs": {
    -    "url": "https://github.com/calvinmetcalf/buffer-shims/issues"
    -  },
    -  "dependencies": {},
    -  "description": "some shims for node buffers",
    -  "devDependencies": {
    -    "tape": "^4.5.1"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "9978ce317388c649ad8793028c3477ef044a8b51",
    -    "tarball": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "ea89b3857ab5b8203957922a84e9a48cf4c47e0a",
    -  "homepage": "https://github.com/calvinmetcalf/buffer-shims#readme",
    -  "license": "MIT",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "cwmma",
    -      "email": "calvin.metcalf@gmail.com"
    -    }
    -  ],
    -  "name": "buffer-shims",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+ssh://git@github.com/calvinmetcalf/buffer-shims.git"
    -  },
    -  "scripts": {
    -    "test": "tape test/*.js"
    -  },
    -  "version": "1.0.0"
    -}
    diff --git a/node_modules/fsevents/node_modules/buffer-shims/readme.md b/node_modules/fsevents/node_modules/buffer-shims/readme.md
    deleted file mode 100644
    index 7ea6475..0000000
    --- a/node_modules/fsevents/node_modules/buffer-shims/readme.md
    +++ /dev/null
    @@ -1,21 +0,0 @@
    -buffer-shims
    -===
    -
    -functions to make sure the new buffer methods work in older browsers.
    -
    -```js
    -var bufferShim = require('buffer-shims');
    -bufferShim.from('foo');
    -bufferShim.alloc(9, 'cafeface', 'hex');
    -bufferShim.allocUnsafe(15);
    -bufferShim.allocUnsafeSlow(21);
    -```
    -
    -should just use the original  in newer nodes and on older nodes uses fallbacks.
    -
    -Known Issues
    -===
    -- this does not patch the buffer object, only the constructor stuff
    -- it's actually a polyfill
    -
    -![](https://i.imgur.com/zxII3jJ.gif)
    diff --git a/node_modules/fsevents/node_modules/caseless/LICENSE b/node_modules/fsevents/node_modules/caseless/LICENSE
    deleted file mode 100644
    index 61789f4..0000000
    --- a/node_modules/fsevents/node_modules/caseless/LICENSE
    +++ /dev/null
    @@ -1,28 +0,0 @@
    -Apache License
    -Version 2.0, January 2004
    -http://www.apache.org/licenses/
    -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
    -1. Definitions.
    -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
    -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
    -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
    -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
    -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
    -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
    -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
    -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
    -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
    -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
    -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
    -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
    -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
    -You must give any other recipients of the Work or Derivative Works a copy of this License; and
    -You must cause any modified files to carry prominent notices stating that You changed the files; and
    -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
    -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
    -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
    -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
    -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
    -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
    -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
    -END OF TERMS AND CONDITIONS
    \ No newline at end of file
    diff --git a/node_modules/fsevents/node_modules/caseless/README.md b/node_modules/fsevents/node_modules/caseless/README.md
    deleted file mode 100644
    index e5077a2..0000000
    --- a/node_modules/fsevents/node_modules/caseless/README.md
    +++ /dev/null
    @@ -1,45 +0,0 @@
    -## Caseless -- wrap an object to set and get property with caseless semantics but also preserve caseing.
    -
    -This library is incredibly useful when working with HTTP headers. It allows you to get/set/check for headers in a caseless manner while also preserving the caseing of headers the first time they are set.
    -
    -## Usage
    -
    -```javascript
    -var headers = {}
    -  , c = caseless(headers)
    -  ;
    -c.set('a-Header', 'asdf')
    -c.get('a-header') === 'asdf'
    -```
    -
    -## has(key)
    -
    -Has takes a name and if it finds a matching header will return that header name with the preserved caseing it was set with.
    -
    -```javascript
    -c.has('a-header') === 'a-Header'
    -```
    -
    -## set(key, value[, clobber=true])
    -
    -Set is fairly straight forward except that if the header exists and clobber is disabled it will add `','+value` to the existing header.
    -
    -```javascript
    -c.set('a-Header', 'fdas')
    -c.set('a-HEADER', 'more', false)
    -c.get('a-header') === 'fdsa,more'
    -```
    -
    -## swap(key)
    -
    -Swaps the casing of a header with the new one that is passed in.
    -
    -```javascript
    -var headers = {}
    -  , c = caseless(headers)
    -  ;
    -c.set('a-Header', 'fdas')
    -c.swap('a-HEADER')
    -c.has('a-header') === 'a-HEADER'
    -headers === {'a-HEADER': 'fdas'}
    -```
    diff --git a/node_modules/fsevents/node_modules/caseless/index.js b/node_modules/fsevents/node_modules/caseless/index.js
    deleted file mode 100644
    index d86a70e..0000000
    --- a/node_modules/fsevents/node_modules/caseless/index.js
    +++ /dev/null
    @@ -1,66 +0,0 @@
    -function Caseless (dict) {
    -  this.dict = dict || {}
    -}
    -Caseless.prototype.set = function (name, value, clobber) {
    -  if (typeof name === 'object') {
    -    for (var i in name) {
    -      this.set(i, name[i], value)
    -    }
    -  } else {
    -    if (typeof clobber === 'undefined') clobber = true
    -    var has = this.has(name)
    -
    -    if (!clobber && has) this.dict[has] = this.dict[has] + ',' + value
    -    else this.dict[has || name] = value
    -    return has
    -  }
    -}
    -Caseless.prototype.has = function (name) {
    -  var keys = Object.keys(this.dict)
    -    , name = name.toLowerCase()
    -    ;
    -  for (var i=0;i=0.11.0 <0.12.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/request"
    -    ]
    -  ],
    -  "_from": "caseless@>=0.11.0 <0.12.0",
    -  "_id": "caseless@0.11.0",
    -  "_inCache": true,
    -  "_location": "/fsevents/caseless",
    -  "_nodeVersion": "1.8.1",
    -  "_npmUser": {
    -    "name": "mikeal",
    -    "email": "mikeal.rogers@gmail.com"
    -  },
    -  "_npmVersion": "2.8.3",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "caseless@~0.11.0",
    -    "scope": null,
    -    "escapedName": "caseless",
    -    "name": "caseless",
    -    "rawSpec": "~0.11.0",
    -    "spec": ">=0.11.0 <0.12.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/request"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz",
    -  "_shasum": "715b96ea9841593cc33067923f5ec60ebda4f7d7",
    -  "_shrinkwrap": null,
    -  "_spec": "caseless@~0.11.0",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/request",
    -  "author": {
    -    "name": "Mikeal Rogers",
    -    "email": "mikeal.rogers@gmail.com"
    -  },
    -  "bugs": {
    -    "url": "https://github.com/mikeal/caseless/issues"
    -  },
    -  "dependencies": {},
    -  "description": "Caseless object set/get/has, very useful when working with HTTP headers.",
    -  "devDependencies": {
    -    "tape": "^2.10.2"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "715b96ea9841593cc33067923f5ec60ebda4f7d7",
    -    "tarball": "https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz"
    -  },
    -  "gitHead": "c578232a02cc2b46b6da8851caf57fdbfac89ff5",
    -  "homepage": "https://github.com/mikeal/caseless#readme",
    -  "keywords": [
    -    "headers",
    -    "http",
    -    "caseless"
    -  ],
    -  "license": "Apache-2.0",
    -  "main": "index.js",
    -  "maintainers": [
    -    {
    -      "name": "mikeal",
    -      "email": "mikeal.rogers@gmail.com"
    -    },
    -    {
    -      "name": "nylen",
    -      "email": "jnylen@gmail.com"
    -    },
    -    {
    -      "name": "simov",
    -      "email": "simeonvelichkov@gmail.com"
    -    }
    -  ],
    -  "name": "caseless",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/mikeal/caseless.git"
    -  },
    -  "scripts": {
    -    "test": "node test.js"
    -  },
    -  "test": "node test.js",
    -  "version": "0.11.0"
    -}
    diff --git a/node_modules/fsevents/node_modules/caseless/test.js b/node_modules/fsevents/node_modules/caseless/test.js
    deleted file mode 100644
    index 084bbaf..0000000
    --- a/node_modules/fsevents/node_modules/caseless/test.js
    +++ /dev/null
    @@ -1,40 +0,0 @@
    -var tape = require('tape')
    -  , caseless = require('./')
    -  ;
    -
    -tape('set get has', function (t) {
    -  var headers = {}
    -    , c = caseless(headers)
    -    ;
    -  t.plan(17)
    -  c.set('a-Header', 'asdf')
    -  t.equal(c.get('a-header'), 'asdf')
    -  t.equal(c.has('a-header'), 'a-Header')
    -  t.ok(!c.has('nothing'))
    -  // old bug where we used the wrong regex
    -  t.ok(!c.has('a-hea'))
    -  c.set('a-header', 'fdsa')
    -  t.equal(c.get('a-header'), 'fdsa')
    -  t.equal(c.get('a-Header'), 'fdsa')
    -  c.set('a-HEADER', 'more', false)
    -  t.equal(c.get('a-header'), 'fdsa,more')
    -
    -  t.deepEqual(headers, {'a-Header': 'fdsa,more'})
    -  c.swap('a-HEADER')
    -  t.deepEqual(headers, {'a-HEADER': 'fdsa,more'})
    -
    -  c.set('deleteme', 'foobar')
    -  t.ok(c.has('deleteme'))
    -  t.ok(c.del('deleteme'))
    -  t.notOk(c.has('deleteme'))
    -  t.notOk(c.has('idonotexist'))
    -  t.ok(c.del('idonotexist'))
    -
    -  c.set('tva', 'test1')
    -  c.set('tva-header', 'test2')
    -  t.equal(c.has('tva'), 'tva')
    -  t.notOk(c.has('header'))
    -
    -  t.equal(c.get('tva'), 'test1')
    -
    -})
    diff --git a/node_modules/fsevents/node_modules/chalk/index.js b/node_modules/fsevents/node_modules/chalk/index.js
    deleted file mode 100644
    index 2d85a91..0000000
    --- a/node_modules/fsevents/node_modules/chalk/index.js
    +++ /dev/null
    @@ -1,116 +0,0 @@
    -'use strict';
    -var escapeStringRegexp = require('escape-string-regexp');
    -var ansiStyles = require('ansi-styles');
    -var stripAnsi = require('strip-ansi');
    -var hasAnsi = require('has-ansi');
    -var supportsColor = require('supports-color');
    -var defineProps = Object.defineProperties;
    -var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM);
    -
    -function Chalk(options) {
    -	// detect mode if not set manually
    -	this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled;
    -}
    -
    -// use bright blue on Windows as the normal blue color is illegible
    -if (isSimpleWindowsTerm) {
    -	ansiStyles.blue.open = '\u001b[94m';
    -}
    -
    -var styles = (function () {
    -	var ret = {};
    -
    -	Object.keys(ansiStyles).forEach(function (key) {
    -		ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
    -
    -		ret[key] = {
    -			get: function () {
    -				return build.call(this, this._styles.concat(key));
    -			}
    -		};
    -	});
    -
    -	return ret;
    -})();
    -
    -var proto = defineProps(function chalk() {}, styles);
    -
    -function build(_styles) {
    -	var builder = function () {
    -		return applyStyle.apply(builder, arguments);
    -	};
    -
    -	builder._styles = _styles;
    -	builder.enabled = this.enabled;
    -	// __proto__ is used because we must return a function, but there is
    -	// no way to create a function with a different prototype.
    -	/* eslint-disable no-proto */
    -	builder.__proto__ = proto;
    -
    -	return builder;
    -}
    -
    -function applyStyle() {
    -	// support varags, but simply cast to string in case there's only one arg
    -	var args = arguments;
    -	var argsLen = args.length;
    -	var str = argsLen !== 0 && String(arguments[0]);
    -
    -	if (argsLen > 1) {
    -		// don't slice `arguments`, it prevents v8 optimizations
    -		for (var a = 1; a < argsLen; a++) {
    -			str += ' ' + args[a];
    -		}
    -	}
    -
    -	if (!this.enabled || !str) {
    -		return str;
    -	}
    -
    -	var nestedStyles = this._styles;
    -	var i = nestedStyles.length;
    -
    -	// Turns out that on Windows dimmed gray text becomes invisible in cmd.exe,
    -	// see https://github.com/chalk/chalk/issues/58
    -	// If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop.
    -	var originalDim = ansiStyles.dim.open;
    -	if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) {
    -		ansiStyles.dim.open = '';
    -	}
    -
    -	while (i--) {
    -		var code = ansiStyles[nestedStyles[i]];
    -
    -		// Replace any instances already present with a re-opening code
    -		// otherwise only the part of the string until said closing code
    -		// will be colored, and the rest will simply be 'plain'.
    -		str = code.open + str.replace(code.closeRe, code.open) + code.close;
    -	}
    -
    -	// Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue.
    -	ansiStyles.dim.open = originalDim;
    -
    -	return str;
    -}
    -
    -function init() {
    -	var ret = {};
    -
    -	Object.keys(styles).forEach(function (name) {
    -		ret[name] = {
    -			get: function () {
    -				return build.call(this, [name]);
    -			}
    -		};
    -	});
    -
    -	return ret;
    -}
    -
    -defineProps(Chalk.prototype, init());
    -
    -module.exports = new Chalk();
    -module.exports.styles = ansiStyles;
    -module.exports.hasColor = hasAnsi;
    -module.exports.stripColor = stripAnsi;
    -module.exports.supportsColor = supportsColor;
    diff --git a/node_modules/fsevents/node_modules/chalk/license b/node_modules/fsevents/node_modules/chalk/license
    deleted file mode 100644
    index 654d0bf..0000000
    --- a/node_modules/fsevents/node_modules/chalk/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/fsevents/node_modules/chalk/package.json b/node_modules/fsevents/node_modules/chalk/package.json
    deleted file mode 100644
    index bbbfc82..0000000
    --- a/node_modules/fsevents/node_modules/chalk/package.json
    +++ /dev/null
    @@ -1,140 +0,0 @@
    -{
    -  "_args": [
    -    [
    -      {
    -        "raw": "chalk@^1.1.1",
    -        "scope": null,
    -        "escapedName": "chalk",
    -        "name": "chalk",
    -        "rawSpec": "^1.1.1",
    -        "spec": ">=1.1.1 <2.0.0",
    -        "type": "range"
    -      },
    -      "/Users/eshanker/Code/fsevents/node_modules/har-validator"
    -    ]
    -  ],
    -  "_from": "chalk@>=1.1.1 <2.0.0",
    -  "_id": "chalk@1.1.3",
    -  "_inCache": true,
    -  "_location": "/fsevents/chalk",
    -  "_nodeVersion": "0.10.32",
    -  "_npmOperationalInternal": {
    -    "host": "packages-12-west.internal.npmjs.com",
    -    "tmp": "tmp/chalk-1.1.3.tgz_1459210604109_0.3892582862172276"
    -  },
    -  "_npmUser": {
    -    "name": "qix",
    -    "email": "i.am.qix@gmail.com"
    -  },
    -  "_npmVersion": "2.14.2",
    -  "_phantomChildren": {},
    -  "_requested": {
    -    "raw": "chalk@^1.1.1",
    -    "scope": null,
    -    "escapedName": "chalk",
    -    "name": "chalk",
    -    "rawSpec": "^1.1.1",
    -    "spec": ">=1.1.1 <2.0.0",
    -    "type": "range"
    -  },
    -  "_requiredBy": [
    -    "/fsevents/har-validator"
    -  ],
    -  "_resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
    -  "_shasum": "a8115c55e4a702fe4d150abd3872822a7e09fc98",
    -  "_shrinkwrap": null,
    -  "_spec": "chalk@^1.1.1",
    -  "_where": "/Users/eshanker/Code/fsevents/node_modules/har-validator",
    -  "bugs": {
    -    "url": "https://github.com/chalk/chalk/issues"
    -  },
    -  "dependencies": {
    -    "ansi-styles": "^2.2.1",
    -    "escape-string-regexp": "^1.0.2",
    -    "has-ansi": "^2.0.0",
    -    "strip-ansi": "^3.0.0",
    -    "supports-color": "^2.0.0"
    -  },
    -  "description": "Terminal string styling done right. Much color.",
    -  "devDependencies": {
    -    "coveralls": "^2.11.2",
    -    "matcha": "^0.6.0",
    -    "mocha": "*",
    -    "nyc": "^3.0.0",
    -    "require-uncached": "^1.0.2",
    -    "resolve-from": "^1.0.0",
    -    "semver": "^4.3.3",
    -    "xo": "*"
    -  },
    -  "directories": {},
    -  "dist": {
    -    "shasum": "a8115c55e4a702fe4d150abd3872822a7e09fc98",
    -    "tarball": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz"
    -  },
    -  "engines": {
    -    "node": ">=0.10.0"
    -  },
    -  "files": [
    -    "index.js"
    -  ],
    -  "gitHead": "0d8d8c204eb87a4038219131ad4d8369c9f59d24",
    -  "homepage": "https://github.com/chalk/chalk#readme",
    -  "keywords": [
    -    "color",
    -    "colour",
    -    "colors",
    -    "terminal",
    -    "console",
    -    "cli",
    -    "string",
    -    "str",
    -    "ansi",
    -    "style",
    -    "styles",
    -    "tty",
    -    "formatting",
    -    "rgb",
    -    "256",
    -    "shell",
    -    "xterm",
    -    "log",
    -    "logging",
    -    "command-line",
    -    "text"
    -  ],
    -  "license": "MIT",
    -  "maintainers": [
    -    {
    -      "name": "qix",
    -      "email": "i.am.qix@gmail.com"
    -    },
    -    {
    -      "name": "sindresorhus",
    -      "email": "sindresorhus@gmail.com"
    -    },
    -    {
    -      "name": "unicorn",
    -      "email": "sindresorhus+unicorn@gmail.com"
    -    }
    -  ],
    -  "name": "chalk",
    -  "optionalDependencies": {},
    -  "readme": "ERROR: No README data found!",
    -  "repository": {
    -    "type": "git",
    -    "url": "git+https://github.com/chalk/chalk.git"
    -  },
    -  "scripts": {
    -    "bench": "matcha benchmark.js",
    -    "coverage": "nyc npm test && nyc report",
    -    "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
    -    "test": "xo && mocha"
    -  },
    -  "version": "1.1.3",
    -  "xo": {
    -    "envs": [
    -      "node",
    -      "mocha"
    -    ]
    -  }
    -}
    diff --git a/node_modules/fsevents/node_modules/chalk/readme.md b/node_modules/fsevents/node_modules/chalk/readme.md
    deleted file mode 100644
    index 5cf111e..0000000
    --- a/node_modules/fsevents/node_modules/chalk/readme.md
    +++ /dev/null
    @@ -1,213 +0,0 @@
    -

    -
    -
    - chalk -
    -
    -
    -

    - -> Terminal string styling done right - -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) -[![Coverage Status](https://coveralls.io/repos/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/r/chalk/chalk?branch=master) -[![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) - - -[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough. - -**Chalk is a clean and focused alternative.** - -![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png) - - -## Why - -- Highly performant -- Doesn't extend `String.prototype` -- Expressive API -- Ability to nest styles -- Clean and focused -- Auto-detects color support -- Actively maintained -- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015 - - -## Install - -``` -$ npm install --save chalk -``` - - -## Usage - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -var chalk = require('chalk'); - -// style a string -chalk.blue('Hello world!'); - -// combine styled and normal strings -chalk.blue('Hello') + 'World' + chalk.red('!'); - -// compose multiple styles using the chainable API -chalk.blue.bgRed.bold('Hello world!'); - -// pass in multiple arguments -chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'); - -// nest styles -chalk.red('Hello', chalk.underline.bgBlue('world') + '!'); - -// nest styles of the same type even (color, underline, background) -chalk.green( - 'I am a green line ' + - chalk.blue.underline.bold('with a blue substring') + - ' that becomes green again!' -); -``` - -Easily define your own themes. - -```js -var chalk = require('chalk'); -var error = chalk.bold.red; -console.log(error('Error!')); -``` - -Take advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data). - -```js -var name = 'Sindre'; -console.log(chalk.green('Hello %s'), name); -//=> Hello Sindre -``` - - -## API - -### chalk.`', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - // END tests for issue 453 - - var unformatted = opts.unformatted; - opts.unformatted = ['script', 'style']; - bth(''); - bth(''); - opts.unformatted = unformatted; - - unformatted = opts.unformatted; - opts.unformatted = ['custom-element']; - test_fragment('
    should not' + - ' insert newlines
    ', - '
    should not' + - ' insert newlines
    '); - opts.unformatted = unformatted; - - // Tests that don't pass, but probably should. - // bth('
    content
    '); - - // Handlebars tests - // Without the indent option on, handlebars are treated as content. - - opts.wrap_line_length = 0; - //...---------1---------2---------3---------4---------5---------6---------7 - //...1234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some text that should not wrap at all.
    ', - /* expected */ - '
    Some text that should not wrap at all.
    '); - - // A value of 0 means no max line length, and should not wrap. - //...---------1---------2---------3---------4---------5---------6---------7---------8---------9--------10--------11--------12--------13--------14--------15--------16--------17--------18--------19--------20--------21--------22--------23--------24--------25--------26--------27--------28--------29 - //...12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all.
    ', - /* expected */ - '
    Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all.
    '); - - opts.wrap_line_length = "0"; - //...---------1---------2---------3---------4---------5---------6---------7 - //...1234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some text that should not wrap at all.
    ', - /* expected */ - '
    Some text that should not wrap at all.
    '); - - // A value of "0" means no max line length, and should not wrap - //...---------1---------2---------3---------4---------5---------6---------7---------8---------9--------10--------11--------12--------13--------14--------15--------16--------17--------18--------19--------20--------21--------22--------23--------24--------25--------26--------27--------28--------29 - //...12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all.
    ', - /* expected */ - '
    Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all.
    '); - - //BUGBUG: This should wrap before 40 not after. - opts.wrap_line_length = 40; - //...---------1---------2---------3---------4---------5---------6---------7 - //...1234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some test text that should wrap_inside_this section here.
    ', - /* expected */ - '
    Some test text that should wrap_inside_this\n' + - ' section here.
    '); - - opts.wrap_line_length = "40"; - //...---------1---------2---------3---------4---------5---------6---------7 - //...1234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some test text that should wrap_inside_this section here.
    ', - /* expected */ - '
    Some test text that should wrap_inside_this\n' + - ' section here.
    '); - - opts.indent_size = 1; - opts.indent_char = '\t'; - opts.preserve_newlines = false; - bth('
    \n\tfoo\n
    ', '
    foo
    '); - - opts.preserve_newlines = true; - bth('
    \n\tfoo\n
    '); - - - - // test preserve_newlines and max_preserve_newlines - opts.preserve_newlines = false; - bth('
    Should not
    \n\n\n' + - '
    preserve newlines
    ', - '
    Should not
    \n' + - '
    preserve newlines
    '); - - opts.preserve_newlines = true; - opts.max_preserve_newlines = 0; - bth('
    Should
    \n\n\n' + - '
    preserve zero newlines
    ', - '
    Should
    \n' + - '
    preserve zero newlines
    '); - - opts.max_preserve_newlines = 1; - bth('
    Should
    \n\n\n' + - '
    preserve one newline
    ', - '
    Should
    \n\n' + - '
    preserve one newline
    '); - - opts.max_preserve_newlines = null; - bth('
    Should
    \n\n\n' + - '
    preserve one newline
    ', - '
    Should
    \n\n\n' + - '
    preserve one newline
    '); - } - - beautifier_tests(); -} - -if (typeof exports !== "undefined") { - exports.run_html_tests = run_html_tests; -} diff --git a/node_modules/js-beautify/js/test/beautify-javascript-tests.js b/node_modules/js-beautify/js/test/beautify-javascript-tests.js deleted file mode 100644 index f39be73..0000000 --- a/node_modules/js-beautify/js/test/beautify-javascript-tests.js +++ /dev/null @@ -1,2386 +0,0 @@ -/*global js_beautify: true */ - -function run_javascript_tests(test_obj, Urlencoded, js_beautify, html_beautify, css_beautify) -{ - - var opts = { - indent_size: 4, - indent_char: ' ', - preserve_newlines: true, - jslint_happy: false, - keep_array_indentation: false, - brace_style: 'collapse', - space_before_conditional: true, - break_chained_methods: false, - selector_separator: '\n', - end_with_newline: false - }; - - function test_js_beautifier(input) - { - return js_beautify(input, opts); - } - - function test_html_beautifier(input) - { - return html_beautify(input, opts); - } - - var sanitytest; - - // test the input on beautifier with the current flag settings - // does not check the indentation / surroundings as bt() does - function test_fragment(input, expected) - { - expected = expected || expected === '' ? expected : input; - sanitytest.expect(input, expected); - // if the expected is different from input, run it again - // expected output should be unchanged when run twice. - if (expected !== input) { - sanitytest.expect(expected, expected); - } - - // Everywhere we do newlines, they should be replaced with opts.eol - opts.eol = '\r\\n'; - expected = expected.replace(/[\n]/g, '\r\n'); - sanitytest.expect(input, expected); - input = input.replace(/[\n]/g, '\r\n'); - sanitytest.expect(input, expected); - opts.eol = '\n'; - } - - - - // test the input on beautifier with the current flag settings - // test both the input as well as { input } wrapping - function bt(input, expectation) - { - var wrapped_input, wrapped_expectation; - - expectation = expectation || expectation === '' ? expectation : input; - sanitytest.test_function(test_js_beautifier, 'js_beautify'); - test_fragment(input, expectation); - - // If we set raw, input should be unchanged - opts.test_output_raw = true; - if (!opts.end_with_newline) { - test_fragment(input, input); - } - opts.test_output_raw = false; - - // test also the returned indentation - // e.g if input = "asdf();" - // then test that this remains properly formatted as well: - // { - // asdf(); - // indent; - // } - - if (opts.indent_size === 4 && input) { - wrapped_input = '{\n' + input.replace(/^(.+)$/mg, ' $1') + '\n foo = bar;\n}'; - wrapped_expectation = '{\n' + expectation.replace(/^(.+)$/mg, ' $1') + '\n foo = bar;\n}'; - test_fragment(wrapped_input, wrapped_expectation); - - // If we set raw, input should be unchanged - opts.test_output_raw = true; - if (!opts.end_with_newline) { - test_fragment(wrapped_input, wrapped_input); - } - opts.test_output_raw = false; - } - - } - - // run all tests for the given brace style ("collapse", "expand", "end-expand", or "none"). - // uses various whitespace combinations before and after opening and closing braces, - // respectively, for most of the tests' inputs. - function beautify_brace_tests(brace_style) { - - var ex_brace_style = opts.brace_style, - indent_on_wrap_str = ' '; // could use Array(opts.indent_size + 1).join(' '); if we wanted to replace _all_ of the hardcoded 4-space in the test and expectation strings - - function permute_brace_tests(expect_open_white, expect_close_white) { - - // run the tests that need permutation against a specific combination of - // pre-opening-brace and pre-closing-brace whitespace - function run_brace_permutation(test_open_white, test_close_white) { - var to = test_open_white, - tc = test_close_white, - eo = expect_open_white ? expect_open_white : to === '' ? ' ' : to, - ec = expect_close_white ? expect_close_white : tc === '' ? ' ' : tc, - i = eo === '\n' ? indent_on_wrap_str: ''; - - bt( '//case 1\nif (a == 1)' + to + '{}\n//case 2\nelse if (a == 2)' + to + '{}', - '//case 1\nif (a == 1)' + eo + '{}\n//case 2\nelse if (a == 2)' + eo + '{}'); - bt( 'if(1)' + to + '{2}' + tc + 'else' + to + '{3}', - 'if (1)' + eo + '{\n 2\n}' + ec + 'else' + eo + '{\n 3\n}'); - bt( 'try' + to + '{a();}' + tc + - 'catch(b)' + to + '{c();}' + tc + - 'catch(d)' + to + '{}' + tc + - 'finally' + to + '{e();}', - // expected - 'try' + eo + '{\n a();\n}' + ec + - 'catch (b)' + eo + '{\n c();\n}' + ec + - 'catch (d)' + eo + '{}' + ec + - 'finally' + eo + '{\n e();\n}'); - bt( 'if(a)' + to + '{b();}' + tc + 'else if(c) foo();', - 'if (a)' + eo + '{\n b();\n}' + ec + 'else if (c) foo();'); - // if/else statement with empty body - bt( 'if (a)' + to + '{\n// comment\n}' + tc + 'else' + to + '{\n// comment\n}', - 'if (a)' + eo + '{\n // comment\n}' + ec + 'else' + eo + '{\n // comment\n}'); - bt( 'if (x)' + to + '{y}' + tc + 'else' + to + '{ if (x)' + to + '{y}}', - 'if (x)' + eo + '{\n y\n}' + ec + 'else' + eo + '{\n if (x)' + eo + i + '{\n y\n }\n}'); - bt( 'if (a)' + to + '{\nb;\n}' + tc + 'else' + to + '{\nc;\n}', - 'if (a)' + eo + '{\n b;\n}' + ec + 'else' + eo + '{\n c;\n}'); - test_fragment(' /*\n* xx\n*/\n// xx\nif (foo)' + to + '{\n bar();\n}', - ' /*\n * xx\n */\n // xx\n if (foo)' + eo + i + '{\n bar();\n }'); - bt( 'if (foo)' + to + '{}' + tc + 'else /regex/.test();', - 'if (foo)' + eo + '{}' + ec + 'else /regex/.test();'); - test_fragment('if (foo)' + to + '{', 'if (foo)' + eo + '{'); - test_fragment('foo' + to + '{', 'foo' + eo + '{'); - test_fragment('return;' + to + '{', 'return;' + eo + '{'); - bt( 'function x()' + to + '{\n foo();\n}zzz', 'function x()' + eo +'{\n foo();\n}\nzzz'); - bt( 'var a = new function a()' + to + '{};', 'var a = new function a()' + eo + '{};'); - bt( 'var a = new function a()' + to + ' {},\n b = new function b()' + to + ' {};', - 'var a = new function a()' + eo + i + '{},\n b = new function b()' + eo + i + '{};'); - bt("foo(" + to + "{\n 'a': 1\n},\n10);", - "foo(" + (eo === ' ' ? '' : eo) + i + "{\n 'a': 1\n },\n 10);"); // "foo( {..." is a weird case - bt('(["foo","bar"]).each(function(i)' + to + '{return i;});', - '(["foo", "bar"]).each(function(i)' + eo + '{\n return i;\n});'); - bt('(function(i)' + to + '{return i;})();', '(function(i)' + eo + '{\n return i;\n})();'); - - bt( "test( /*Argument 1*/" + to + "{\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - // expected - "test( /*Argument 1*/" + eo + i + "{\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });"); - - bt( "test( /*Argument 1*/" + to + "{\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */\n" + - "{\n" + - " 'Value2': '2'\n" + - "});", - // expected - "test( /*Argument 1*/" + eo + i + "{\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });"); - } - - run_brace_permutation('\n', '\n'); - run_brace_permutation('\n', ' '); - run_brace_permutation(' ', ' '); - run_brace_permutation(' ', '\n'); - run_brace_permutation('',''); - - // brace tests that don't make sense to permutate - test_fragment('return {'); // return needs the brace. - test_fragment('return /* inline */ {'); - bt('throw {}'); - bt('throw {\n foo;\n}'); - bt( 'var foo = {}'); - test_fragment('a: do {} while (); xxx', 'a: do {} while ();\nxxx'); - bt( '{a: do {} while (); xxx}', '{\n a: do {} while ();xxx\n}'); - bt( 'var a = new function() {};'); - bt( 'var a = new function()\n{};', 'var a = new function() {};'); - bt( "test(\n" + - "/*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "},\n" + - "/*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - // expected - "test(\n" + - " /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });"); - } - - opts.brace_style = brace_style; - - switch(opts.brace_style) { - case 'collapse': - permute_brace_tests(' ', ' '); - break; - case 'expand': - permute_brace_tests('\n', '\n'); - break; - case 'end-expand': - permute_brace_tests(' ', '\n'); - break; - case 'none': - permute_brace_tests(); - break; - } - - opts.brace_style = ex_brace_style; - } - - function unicode_char(value) { - return String.fromCharCode(value) - } - - function beautifier_tests() - { - sanitytest = test_obj; - - opts.indent_size = 4; - opts.indent_char = ' '; - opts.preserve_newlines = true; - opts.jslint_happy = false; - opts.keep_array_indentation = false; - opts.brace_style = 'collapse'; - - - // Unicode Support - bt('var ' + unicode_char(3232) + '_' + unicode_char(3232) + ' = "hi";'); - bt( - 'var ' + unicode_char(228) + 'x = {\n' + - ' ' + unicode_char(228) + 'rgerlich: true\n' + - '};'); - - - // End With Newline - (eof = "\n") - opts.end_with_newline = true; - test_fragment('', '\n'); - test_fragment(' return .5', ' return .5\n'); - test_fragment(' \n\nreturn .5\n\n\n\n', ' return .5\n'); - test_fragment('\n'); - - // End With Newline - (eof = "") - opts.end_with_newline = false; - test_fragment(''); - test_fragment(' return .5'); - test_fragment(' \n\nreturn .5\n\n\n\n', ' return .5'); - test_fragment('\n', ''); - - - // Comma-first option - (c0 = "\n, ", c1 = "\n , ", c2 = "\n , ", c3 = "\n , ") - opts.comma_first = true; - bt('{a:1, b:2}', '{\n a: 1\n , b: 2\n}'); - bt('var a=1, b=c[d], e=6;', 'var a = 1\n , b = c[d]\n , e = 6;'); - bt('for(var a=1,b=2,c=3;d<3;d++)\ne', 'for (var a = 1, b = 2, c = 3; d < 3; d++)\n e'); - bt('for(var a=1,b=2,\nc=3;d<3;d++)\ne', 'for (var a = 1, b = 2\n , c = 3; d < 3; d++)\n e'); - bt('function foo() {\n return [\n "one"\n , "two"\n ];\n}'); - bt('a=[[1,2],[4,5],[7,8]]', 'a = [\n [1, 2]\n , [4, 5]\n , [7, 8]\n]'); - bt('a=[[1,2],[4,5],[7,8],]', 'a = [\n [1, 2]\n , [4, 5]\n , [7, 8]\n, ]'); - bt('a=[[1,2],[4,5],function(){},[7,8]]', 'a = [\n [1, 2]\n , [4, 5]\n , function() {}\n , [7, 8]\n]'); - bt('a=[[1,2],[4,5],function(){},function(){},[7,8]]', 'a = [\n [1, 2]\n , [4, 5]\n , function() {}\n , function() {}\n , [7, 8]\n]'); - bt('a=[[1,2],[4,5],function(){},[7,8]]', 'a = [\n [1, 2]\n , [4, 5]\n , function() {}\n , [7, 8]\n]'); - bt('a=[b,c,function(){},function(){},d]', 'a = [b, c, function() {}, function() {}, d]'); - bt('a=[b,c,\nfunction(){},function(){},d]', 'a = [b, c\n , function() {}\n , function() {}\n , d\n]'); - bt('a=[a[1],b[4],c[d[7]]]', 'a = [a[1], b[4], c[d[7]]]'); - bt('[1,2,[3,4,[5,6],7],8]', '[1, 2, [3, 4, [5, 6], 7], 8]'); - bt('[[["1","2"],["3","4"]],[["5","6","7"],["8","9","0"]],[["1","2","3"],["4","5","6","7"],["8","9","0"]]]', '[\n [\n ["1", "2"]\n , ["3", "4"]\n ]\n , [\n ["5", "6", "7"]\n , ["8", "9", "0"]\n ]\n , [\n ["1", "2", "3"]\n , ["4", "5", "6", "7"]\n , ["8", "9", "0"]\n ]\n]'); - - // Comma-first option - (c0 = ",\n", c1 = ",\n ", c2 = ",\n ", c3 = ",\n ") - opts.comma_first = false; - bt('{a:1, b:2}', '{\n a: 1,\n b: 2\n}'); - bt('var a=1, b=c[d], e=6;', 'var a = 1,\n b = c[d],\n e = 6;'); - bt('for(var a=1,b=2,c=3;d<3;d++)\ne', 'for (var a = 1, b = 2, c = 3; d < 3; d++)\n e'); - bt('for(var a=1,b=2,\nc=3;d<3;d++)\ne', 'for (var a = 1, b = 2,\n c = 3; d < 3; d++)\n e'); - bt('function foo() {\n return [\n "one",\n "two"\n ];\n}'); - bt('a=[[1,2],[4,5],[7,8]]', 'a = [\n [1, 2],\n [4, 5],\n [7, 8]\n]'); - bt('a=[[1,2],[4,5],[7,8],]', 'a = [\n [1, 2],\n [4, 5],\n [7, 8],\n]'); - bt('a=[[1,2],[4,5],function(){},[7,8]]', 'a = [\n [1, 2],\n [4, 5],\n function() {},\n [7, 8]\n]'); - bt('a=[[1,2],[4,5],function(){},function(){},[7,8]]', 'a = [\n [1, 2],\n [4, 5],\n function() {},\n function() {},\n [7, 8]\n]'); - bt('a=[[1,2],[4,5],function(){},[7,8]]', 'a = [\n [1, 2],\n [4, 5],\n function() {},\n [7, 8]\n]'); - bt('a=[b,c,function(){},function(){},d]', 'a = [b, c, function() {}, function() {}, d]'); - bt('a=[b,c,\nfunction(){},function(){},d]', 'a = [b, c,\n function() {},\n function() {},\n d\n]'); - bt('a=[a[1],b[4],c[d[7]]]', 'a = [a[1], b[4], c[d[7]]]'); - bt('[1,2,[3,4,[5,6],7],8]', '[1, 2, [3, 4, [5, 6], 7], 8]'); - bt('[[["1","2"],["3","4"]],[["5","6","7"],["8","9","0"]],[["1","2","3"],["4","5","6","7"],["8","9","0"]]]', '[\n [\n ["1", "2"],\n ["3", "4"]\n ],\n [\n ["5", "6", "7"],\n ["8", "9", "0"]\n ],\n [\n ["1", "2", "3"],\n ["4", "5", "6", "7"],\n ["8", "9", "0"]\n ]\n]'); - - - - // New Test Suite - - - - // Async / await tests - bt('async function foo() {}'); - bt('let w = async function foo() {}'); - bt('async function foo() {}\nvar x = await foo();'); - - // async function as an input to another function - bt('wrapper(async function foo() {})'); - - // await on inline anonymous function. should have a space after await - bt( - 'async function() {\n var w = await(async function() {\n return await foo();\n })();\n}', - 'async function() {\n var w = await (async function() {\n return await foo();\n })();\n}'); - - // ensure that this doesn't break anyone with the async library - bt('async.map(function(t) {})'); - - - - // e4x - Test that e4x literals passed through when e4x-option is enabled - opts.e4x = true; - bt('xml=
    \n foox;', 'xml = \n foox;'); - bt(''); - bt(''); - bt(''); - bt(''); - bt(''); - - // Handles inline expressions - bt('xml=<{a} b="c">\n foox;', 'xml = <{a} b="c">\n foox;'); - bt('xml=<{a} b="c">\n \n foox;', 'xml = <{a} b="c">\n \n foox;'); - - // xml literals with special characters in elem names - see http://www.w3.org/TR/REC-xml/#NT-NameChar - bt('xml = <_:.valid.xml- _:.valid.xml-="123"/>;'); - - // Handles CDATA - bt('xml=\n foox/]]>;', 'xml = \n foox/]]>;'); - bt('xml=;', 'xml = ;'); - bt('xml=;', 'xml = ;'); - - // JSX - working jsx from http://prettydiff.com/unit_tests/beautification_javascript_jsx.txt - bt( - 'var ListItem = React.createClass({\n' + - ' render: function() {\n' + - ' return (\n' + - '
  • \n' + - ' \n' + - ' this.props.item.name\n' + - ' \n' + - '
  • \n' + - ' );\n' + - ' }\n' + - '});'); - bt( - 'var List = React.createClass({\n' + - ' renderList: function() {\n' + - ' return this.props.items.map(function(item) {\n' + - ' return ;\n' + - ' });\n' + - ' },\n' + - '\n' + - ' render: function() {\n' + - ' return
      \n' + - ' this.renderList()\n' + - '
    \n' + - ' }\n' + - '});'); - bt( - 'var Mist = React.createClass({\n' + - ' renderList: function() {\n' + - ' return this.props.items.map(function(item) {\n' + - ' return {item}} key={item.id} />;\n' + - ' });\n' + - ' }\n' + - '});'); - bt( - '// JSX\n' + - 'var box = \n' + - ' {shouldShowAnswer(user) ?\n' + - ' no : \n' + - ' Text Content\n' + - ' }\n' + - ' ;\n' + - 'var a = function() {\n' + - ' return asdf;\n' + - '};\n' + - '\n' + - 'var HelloMessage = React.createClass({\n' + - ' render: function() {\n' + - ' return
    Hello {this.props.name}
    ;\n' + - ' }\n' + - '});\n' + - 'React.render(, mountNode);'); - bt( - 'var Timer = React.createClass({\n' + - ' getInitialState: function() {\n' + - ' return {\n' + - ' secondsElapsed: 0\n' + - ' };\n' + - ' },\n' + - ' tick: function() {\n' + - ' this.setState({\n' + - ' secondsElapsed: this.state.secondsElapsed + 1\n' + - ' });\n' + - ' },\n' + - ' componentDidMount: function() {\n' + - ' this.interval = setInterval(this.tick, 1000);\n' + - ' },\n' + - ' componentWillUnmount: function() {\n' + - ' clearInterval(this.interval);\n' + - ' },\n' + - ' render: function() {\n' + - ' return (\n' + - '
    Seconds Elapsed: {this.state.secondsElapsed}
    \n' + - ' );\n' + - ' }\n' + - '});\n' + - 'React.render(, mountNode);'); - bt( - 'var TodoList = React.createClass({\n' + - ' render: function() {\n' + - ' var createItem = function(itemText) {\n' + - ' return
  • {itemText}
  • ;\n' + - ' };\n' + - ' return
      {this.props.items.map(createItem)}
    ;\n' + - ' }\n' + - '});'); - bt( - 'var TodoApp = React.createClass({\n' + - ' getInitialState: function() {\n' + - ' return {\n' + - ' items: [],\n' + - ' text: \'\'\n' + - ' };\n' + - ' },\n' + - ' onChange: function(e) {\n' + - ' this.setState({\n' + - ' text: e.target.value\n' + - ' });\n' + - ' },\n' + - ' handleSubmit: function(e) {\n' + - ' e.preventDefault();\n' + - ' var nextItems = this.state.items.concat([this.state.text]);\n' + - ' var nextText = \'\';\n' + - ' this.setState({\n' + - ' items: nextItems,\n' + - ' text: nextText\n' + - ' });\n' + - ' },\n' + - ' render: function() {\n' + - ' return (\n' + - '
    \n' + - '

    TODO

    \n' + - ' \n' + - '
    \n' + - ' \n' + - ' \n' + - '
    \n' + - '
    \n' + - ' );\n' + - ' }\n' + - '});\n' + - 'React.render(, mountNode);'); - bt( - 'var converter = new Showdown.converter();\n' + - 'var MarkdownEditor = React.createClass({\n' + - ' getInitialState: function() {\n' + - ' return {value: \'Type some *markdown* here!\'};\n' + - ' },\n' + - ' handleChange: function() {\n' + - ' this.setState({value: this.refs.textarea.getDOMNode().value});\n' + - ' },\n' + - ' render: function() {\n' + - ' return (\n' + - '
    \n' + - '

    Input

    \n' + - ' \n' + - '

    Output

    \n' + - ' \n' + - '
    \n' + - ' );\n' + - ' }\n' + - '});\n' + - 'React.render(, mountNode);', - 'var converter = new Showdown.converter();\n' + - 'var MarkdownEditor = React.createClass({\n' + - ' getInitialState: function() {\n' + - ' return {\n' + - ' value: \'Type some *markdown* here!\'\n' + - ' };\n' + - ' },\n' + - ' handleChange: function() {\n' + - ' this.setState({\n' + - ' value: this.refs.textarea.getDOMNode().value\n' + - ' });\n' + - ' },\n' + - ' render: function() {\n' + - ' return (\n' + - '
    \n' + - '

    Input

    \n' + - ' \n' + - '

    Output

    \n' + - ' \n' + - '
    \n' + - ' );\n' + - ' }\n' + - '});\n' + - 'React.render(, mountNode);'); - - // JSX - Not quite correct jsx formatting that still works - bt( - 'var content = (\n' + - ' \n' + - ' );\n' + - 'var qwer = A dropdown list Do Something Do Something Fun! Do Something Else ;\n' + - 'render(dropdown);', - 'var content = (\n' + - ' \n' + - ');\n' + - 'var qwer = A dropdown list Do Something Do Something Fun! Do Something Else ;\n' + - 'render(dropdown);'); - - // Handles messed up tags, as long as it isn't the same name - // as the root tag. Also handles tags of same name as root tag - // as long as nesting matches. - bt( - 'xml=
    ;', - 'xml = ;'); - - // If xml is not terminated, the remainder of the file is treated - // as part of the xml-literal (passed through unaltered) - test_fragment( - 'xml=\nc\nc\n' + - ' c\n' + - '

    \n' + - ' );\n' + - ' }\n' + - '});'); - bt( - 'let a = React.createClass({\n' + - ' render() {\n' + - ' return (\n' + - '

    \n' + - ' c\n' + - '

    \n' + - ' );\n' + - ' }\n' + - '});'); - bt( - 'let a = React.createClass({\n' + - ' render() {\n' + - ' return (\n' + - '

    \n' + - ' c\n' + - '

    \n' + - ' );\n' + - ' }\n' + - '});'); - bt( - 'let a = React.createClass({\n' + - ' render() {\n' + - ' return (\n' + - ' <{e} className = {d}>\n' + - ' c\n' + - ' \n' + - ' );\n' + - ' }\n' + - '});'); - - - - // e4x disabled - opts.e4x = false; - bt( - 'xml=
    \n foox;', - 'xml = < a b = "c" > < d / > < e >\n foo < /e>x ;'); - - - - // Multiple braces - bt('{{}/z/}', '{\n {}\n /z/\n}'); - - - - // Beautify preserve formatting - bt('/* beautify preserve:start */\n/* beautify preserve:end */'); - bt('/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */'); - bt('var a = 1;\n/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */'); - bt('/* beautify preserve:start */ {asdklgh;y;;{}dd2d}/* beautify preserve:end */'); - bt( - 'var a = 1;\n/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */', - 'var a = 1;\n/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */'); - bt( - 'var a = 1;\n /* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */', - 'var a = 1;\n/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */'); - bt( - 'var a = {\n' + - ' /* beautify preserve:start */\n' + - ' one : 1\n' + - ' two : 2,\n' + - ' three : 3,\n' + - ' ten : 10\n' + - ' /* beautify preserve:end */\n' + - '};'); - bt( - 'var a = {\n' + - '/* beautify preserve:start */\n' + - ' one : 1,\n' + - ' two : 2,\n' + - ' three : 3,\n' + - ' ten : 10\n' + - '/* beautify preserve:end */\n' + - '};', - 'var a = {\n' + - ' /* beautify preserve:start */\n' + - ' one : 1,\n' + - ' two : 2,\n' + - ' three : 3,\n' + - ' ten : 10\n' + - '/* beautify preserve:end */\n' + - '};'); - - // one space before and after required, only single spaces inside. - bt( - 'var a = {\n' + - '/* beautify preserve:start */\n' + - ' one : 1,\n' + - ' two : 2,\n' + - ' three : 3,\n' + - ' ten : 10\n' + - '};', - 'var a = {\n' + - ' /* beautify preserve:start */\n' + - ' one: 1,\n' + - ' two: 2,\n' + - ' three: 3,\n' + - ' ten: 10\n' + - '};'); - bt( - 'var a = {\n' + - '/*beautify preserve:start*/\n' + - ' one : 1,\n' + - ' two : 2,\n' + - ' three : 3,\n' + - ' ten : 10\n' + - '};', - 'var a = {\n' + - ' /*beautify preserve:start*/\n' + - ' one: 1,\n' + - ' two: 2,\n' + - ' three: 3,\n' + - ' ten: 10\n' + - '};'); - bt( - 'var a = {\n' + - '/*beautify preserve:start*/\n' + - ' one : 1,\n' + - ' two : 2,\n' + - ' three : 3,\n' + - ' ten : 10\n' + - '};', - 'var a = {\n' + - ' /*beautify preserve:start*/\n' + - ' one: 1,\n' + - ' two: 2,\n' + - ' three: 3,\n' + - ' ten: 10\n' + - '};'); - - // Directive: ignore - bt('/* beautify ignore:start */\n/* beautify ignore:end */'); - bt('/* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */'); - bt('var a = 1;\n/* beautify ignore:start */\n var a = 1;\n/* beautify ignore:end */'); - bt('/* beautify ignore:start */ {asdklgh;y;+++;dd2d}/* beautify ignore:end */'); - bt( - 'var a = 1;\n/* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */', - 'var a = 1;\n/* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */'); - bt( - 'var a = 1;\n /* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */', - 'var a = 1;\n/* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */'); - bt( - 'var a = {\n' + - ' /* beautify ignore:start */\n' + - ' one : 1\n' + - ' two : 2,\n' + - ' three : {\n' + - ' ten : 10\n' + - ' /* beautify ignore:end */\n' + - '};'); - bt( - 'var a = {\n' + - '/* beautify ignore:start */\n' + - ' one : 1\n' + - ' two : 2,\n' + - ' three : {\n' + - ' ten : 10\n' + - '/* beautify ignore:end */\n' + - '};', - 'var a = {\n' + - ' /* beautify ignore:start */\n' + - ' one : 1\n' + - ' two : 2,\n' + - ' three : {\n' + - ' ten : 10\n' + - '/* beautify ignore:end */\n' + - '};'); - - // Directives - multiple and interacting - bt( - 'var a = {\n' + - '/* beautify preserve:start */\n' + - '/* beautify preserve:start */\n' + - ' one : 1,\n' + - ' /* beautify preserve:end */\n' + - ' two : 2,\n' + - ' three : 3,\n' + - '/* beautify preserve:start */\n' + - ' ten : 10\n' + - '/* beautify preserve:end */\n' + - '};', - 'var a = {\n' + - ' /* beautify preserve:start */\n' + - '/* beautify preserve:start */\n' + - ' one : 1,\n' + - ' /* beautify preserve:end */\n' + - ' two: 2,\n' + - ' three: 3,\n' + - ' /* beautify preserve:start */\n' + - ' ten : 10\n' + - '/* beautify preserve:end */\n' + - '};'); - bt( - 'var a = {\n' + - '/* beautify ignore:start */\n' + - ' one : 1\n' + - ' /* beautify ignore:end */\n' + - ' two : 2,\n' + - '/* beautify ignore:start */\n' + - ' three : {\n' + - ' ten : 10\n' + - '/* beautify ignore:end */\n' + - '};', - 'var a = {\n' + - ' /* beautify ignore:start */\n' + - ' one : 1\n' + - ' /* beautify ignore:end */\n' + - ' two: 2,\n' + - ' /* beautify ignore:start */\n' + - ' three : {\n' + - ' ten : 10\n' + - '/* beautify ignore:end */\n' + - '};'); - - // Starts can occur together, ignore:end must occur alone. - bt( - 'var a = {\n' + - '/* beautify ignore:start */\n' + - ' one : 1\n' + - ' NOTE: ignore end block does not support starting other directives\n' + - ' This does not match the ending the ignore...\n' + - ' /* beautify ignore:end preserve:start */\n' + - ' two : 2,\n' + - '/* beautify ignore:start */\n' + - ' three : {\n' + - ' ten : 10\n' + - ' ==The next comment ends the starting ignore==\n' + - '/* beautify ignore:end */\n' + - '};', - 'var a = {\n' + - ' /* beautify ignore:start */\n' + - ' one : 1\n' + - ' NOTE: ignore end block does not support starting other directives\n' + - ' This does not match the ending the ignore...\n' + - ' /* beautify ignore:end preserve:start */\n' + - ' two : 2,\n' + - '/* beautify ignore:start */\n' + - ' three : {\n' + - ' ten : 10\n' + - ' ==The next comment ends the starting ignore==\n' + - '/* beautify ignore:end */\n' + - '};'); - bt( - 'var a = {\n' + - '/* beautify ignore:start preserve:start */\n' + - ' one : {\n' + - ' /* beautify ignore:end */\n' + - ' two : 2,\n' + - ' /* beautify ignore:start */\n' + - ' three : {\n' + - '/* beautify ignore:end */\n' + - ' ten : 10\n' + - ' // This is all preserved\n' + - '};', - 'var a = {\n' + - ' /* beautify ignore:start preserve:start */\n' + - ' one : {\n' + - ' /* beautify ignore:end */\n' + - ' two : 2,\n' + - ' /* beautify ignore:start */\n' + - ' three : {\n' + - '/* beautify ignore:end */\n' + - ' ten : 10\n' + - ' // This is all preserved\n' + - '};'); - bt( - 'var a = {\n' + - '/* beautify ignore:start preserve:start */\n' + - ' one : {\n' + - ' /* beautify ignore:end */\n' + - ' two : 2,\n' + - ' /* beautify ignore:start */\n' + - ' three : {\n' + - '/* beautify ignore:end */\n' + - ' ten : 10,\n' + - '/* beautify preserve:end */\n' + - ' eleven: 11\n' + - '};', - 'var a = {\n' + - ' /* beautify ignore:start preserve:start */\n' + - ' one : {\n' + - ' /* beautify ignore:end */\n' + - ' two : 2,\n' + - ' /* beautify ignore:start */\n' + - ' three : {\n' + - '/* beautify ignore:end */\n' + - ' ten : 10,\n' + - '/* beautify preserve:end */\n' + - ' eleven: 11\n' + - '};'); - - - - // Template Formatting - bt(''); - bt('a = ;'); - bt( - '");\n' + - '}\n' + - '?>'); - bt('a = <%= external() %>;'); - - - // jslint and space after anon function - (f = " ", c = "") - opts.jslint_happy = true; - opts.space_after_anon_function = true; - bt( - 'a=typeof(x)', - 'a = typeof (x)'); - bt( - 'x();\n\nfunction(){}', - 'x();\n\nfunction () {}'); - bt( - 'function () {\n var a, b, c, d, e = [],\n f;\n}'); - bt( - 'switch(x) {case 0: case 1: a(); break; default: break}', - 'switch (x) {\ncase 0:\ncase 1:\n a();\n break;\ndefault:\n break\n}'); - bt('switch(x){case -1:break;case !y:break;}', 'switch (x) {\ncase -1:\n break;\ncase !y:\n break;\n}'); - - // typical greasemonkey start - test_fragment('// comment 2\n(function ()'); - bt( - 'var a2, b2, c2, d2 = 0, c = function() {}, d = \'\';', - 'var a2, b2, c2, d2 = 0,\n c = function () {},\n d = \'\';'); - bt( - 'var a2, b2, c2, d2 = 0, c = function() {},\nd = \'\';', - 'var a2, b2, c2, d2 = 0,\n c = function () {},\n d = \'\';'); - bt( - 'var o2=$.extend(a);function(){alert(x);}', - 'var o2 = $.extend(a);\n\nfunction () {\n alert(x);\n}'); - bt('function*() {\n yield 1;\n}', 'function* () {\n yield 1;\n}'); - bt('function* x() {\n yield 1;\n}'); - - // jslint and space after anon function - (f = " ", c = "") - opts.jslint_happy = true; - opts.space_after_anon_function = false; - bt( - 'a=typeof(x)', - 'a = typeof (x)'); - bt( - 'x();\n\nfunction(){}', - 'x();\n\nfunction () {}'); - bt( - 'function () {\n var a, b, c, d, e = [],\n f;\n}'); - bt( - 'switch(x) {case 0: case 1: a(); break; default: break}', - 'switch (x) {\ncase 0:\ncase 1:\n a();\n break;\ndefault:\n break\n}'); - bt('switch(x){case -1:break;case !y:break;}', 'switch (x) {\ncase -1:\n break;\ncase !y:\n break;\n}'); - - // typical greasemonkey start - test_fragment('// comment 2\n(function ()'); - bt( - 'var a2, b2, c2, d2 = 0, c = function() {}, d = \'\';', - 'var a2, b2, c2, d2 = 0,\n c = function () {},\n d = \'\';'); - bt( - 'var a2, b2, c2, d2 = 0, c = function() {},\nd = \'\';', - 'var a2, b2, c2, d2 = 0,\n c = function () {},\n d = \'\';'); - bt( - 'var o2=$.extend(a);function(){alert(x);}', - 'var o2 = $.extend(a);\n\nfunction () {\n alert(x);\n}'); - bt('function*() {\n yield 1;\n}', 'function* () {\n yield 1;\n}'); - bt('function* x() {\n yield 1;\n}'); - - // jslint and space after anon function - (f = " ", c = " ") - opts.jslint_happy = false; - opts.space_after_anon_function = true; - bt( - 'a=typeof(x)', - 'a = typeof (x)'); - bt( - 'x();\n\nfunction(){}', - 'x();\n\nfunction () {}'); - bt( - 'function () {\n var a, b, c, d, e = [],\n f;\n}'); - bt( - 'switch(x) {case 0: case 1: a(); break; default: break}', - 'switch (x) {\n case 0:\n case 1:\n a();\n break;\n default:\n break\n}'); - bt('switch(x){case -1:break;case !y:break;}', 'switch (x) {\n case -1:\n break;\n case !y:\n break;\n}'); - - // typical greasemonkey start - test_fragment('// comment 2\n(function ()'); - bt( - 'var a2, b2, c2, d2 = 0, c = function() {}, d = \'\';', - 'var a2, b2, c2, d2 = 0,\n c = function () {},\n d = \'\';'); - bt( - 'var a2, b2, c2, d2 = 0, c = function() {},\nd = \'\';', - 'var a2, b2, c2, d2 = 0,\n c = function () {},\n d = \'\';'); - bt( - 'var o2=$.extend(a);function(){alert(x);}', - 'var o2 = $.extend(a);\n\nfunction () {\n alert(x);\n}'); - bt('function*() {\n yield 1;\n}', 'function* () {\n yield 1;\n}'); - bt('function* x() {\n yield 1;\n}'); - - // jslint and space after anon function - (f = "", c = " ") - opts.jslint_happy = false; - opts.space_after_anon_function = false; - bt( - 'a=typeof(x)', - 'a = typeof(x)'); - bt( - 'x();\n\nfunction(){}', - 'x();\n\nfunction() {}'); - bt( - 'function () {\n var a, b, c, d, e = [],\n f;\n}', - 'function() {\n var a, b, c, d, e = [],\n f;\n}'); - bt( - 'switch(x) {case 0: case 1: a(); break; default: break}', - 'switch (x) {\n case 0:\n case 1:\n a();\n break;\n default:\n break\n}'); - bt('switch(x){case -1:break;case !y:break;}', 'switch (x) {\n case -1:\n break;\n case !y:\n break;\n}'); - - // typical greasemonkey start - test_fragment('// comment 2\n(function()'); - bt( - 'var a2, b2, c2, d2 = 0, c = function() {}, d = \'\';', - 'var a2, b2, c2, d2 = 0,\n c = function() {},\n d = \'\';'); - bt( - 'var a2, b2, c2, d2 = 0, c = function() {},\nd = \'\';', - 'var a2, b2, c2, d2 = 0,\n c = function() {},\n d = \'\';'); - bt( - 'var o2=$.extend(a);function(){alert(x);}', - 'var o2 = $.extend(a);\n\nfunction() {\n alert(x);\n}'); - bt('function*() {\n yield 1;\n}'); - bt('function* x() {\n yield 1;\n}'); - - - - // Regression tests - - // Issue 241 - bt( - 'obj\n' + - ' .last({\n' + - ' foo: 1,\n' + - ' bar: 2\n' + - ' });\n' + - 'var test = 1;'); - bt( - 'obj\n' + - ' .last(a, function() {\n' + - ' var test;\n' + - ' });\n' + - 'var test = 1;'); - bt( - 'obj.first()\n' + - ' .second()\n' + - ' .last(function(err, response) {\n' + - ' console.log(err);\n' + - ' });'); - - // Issue 268 and 275 - bt( - 'obj.last(a, function() {\n' + - ' var test;\n' + - '});\n' + - 'var test = 1;'); - bt( - 'obj.last(a,\n' + - ' function() {\n' + - ' var test;\n' + - ' });\n' + - 'var test = 1;'); - bt( - '(function() {if (!window.FOO) window.FOO || (window.FOO = function() {var b = {bar: "zort"};});})();', - '(function() {\n' + - ' if (!window.FOO) window.FOO || (window.FOO = function() {\n' + - ' var b = {\n' + - ' bar: "zort"\n' + - ' };\n' + - ' });\n' + - '})();'); - - // Issue 281 - bt( - 'define(["dojo/_base/declare", "my/Employee", "dijit/form/Button",\n' + - ' "dojo/_base/lang", "dojo/Deferred"\n' + - '], function(declare, Employee, Button, lang, Deferred) {\n' + - ' return declare(Employee, {\n' + - ' constructor: function() {\n' + - ' new Button({\n' + - ' onClick: lang.hitch(this, function() {\n' + - ' new Deferred().then(lang.hitch(this, function() {\n' + - ' this.salary * 0.25;\n' + - ' }));\n' + - ' })\n' + - ' });\n' + - ' }\n' + - ' });\n' + - '});'); - bt( - 'define(["dojo/_base/declare", "my/Employee", "dijit/form/Button",\n' + - ' "dojo/_base/lang", "dojo/Deferred"\n' + - ' ],\n' + - ' function(declare, Employee, Button, lang, Deferred) {\n' + - ' return declare(Employee, {\n' + - ' constructor: function() {\n' + - ' new Button({\n' + - ' onClick: lang.hitch(this, function() {\n' + - ' new Deferred().then(lang.hitch(this, function() {\n' + - ' this.salary * 0.25;\n' + - ' }));\n' + - ' })\n' + - ' });\n' + - ' }\n' + - ' });\n' + - ' });'); - - // Issue 459 - bt( - '(function() {\n' + - ' return {\n' + - ' foo: function() {\n' + - ' return "bar";\n' + - ' },\n' + - ' bar: ["bar"]\n' + - ' };\n' + - '}());'); - - // Issue 505 - strings should end at newline unless continued by backslash - bt( - 'var name = "a;\n' + - 'name = "b";'); - bt( - 'var name = "a;\\\n' + - ' name = b";'); - - // Issue 514 - some operators require spaces to distinguish them - bt('var c = "_ACTION_TO_NATIVEAPI_" + ++g++ + +new Date;'); - bt('var c = "_ACTION_TO_NATIVEAPI_" - --g-- - -new Date;'); - - // Issue 440 - reserved words can be used as object property names - bt( - 'a = {\n' + - ' function: {},\n' + - ' "function": {},\n' + - ' throw: {},\n' + - ' "throw": {},\n' + - ' var: {},\n' + - ' "var": {},\n' + - ' set: {},\n' + - ' "set": {},\n' + - ' get: {},\n' + - ' "get": {},\n' + - ' if: {},\n' + - ' "if": {},\n' + - ' then: {},\n' + - ' "then": {},\n' + - ' else: {},\n' + - ' "else": {},\n' + - ' yay: {}\n' + - '};'); - - // Issue 331 - if-else with braces edge case - bt( - 'if(x){a();}else{b();}if(y){c();}', - 'if (x) {\n' + - ' a();\n' + - '} else {\n' + - ' b();\n' + - '}\n' + - 'if (y) {\n' + - ' c();\n' + - '}'); - - // Issue 485 - ensure function declarations behave the same in arrays as elsewhere - bt( - 'var v = ["a",\n' + - ' function() {\n' + - ' return;\n' + - ' }, {\n' + - ' id: 1\n' + - ' }\n' + - '];'); - bt( - 'var v = ["a", function() {\n' + - ' return;\n' + - '}, {\n' + - ' id: 1\n' + - '}];'); - - // Issue 382 - initial totally cursory support for es6 module export - bt( - 'module "Even" {\n' + - ' import odd from "Odd";\n' + - ' export function sum(x, y) {\n' + - ' return x + y;\n' + - ' }\n' + - ' export var pi = 3.141593;\n' + - ' export default moduleName;\n' + - '}'); - bt( - 'module "Even" {\n' + - ' export default function div(x, y) {}\n' + - '}'); - - // Issue 508 - bt('set["name"]'); - bt('get["name"]'); - bt( - 'a = {\n' + - ' set b(x) {},\n' + - ' c: 1,\n' + - ' d: function() {}\n' + - '};'); - bt( - 'a = {\n' + - ' get b() {\n' + - ' retun 0;\n' + - ' },\n' + - ' c: 1,\n' + - ' d: function() {}\n' + - '};'); - - // Issue 298 - do not under indent if/while/for condtionals experesions - bt( - '\'use strict\';\n' + - 'if ([].some(function() {\n' + - ' return false;\n' + - ' })) {\n' + - ' console.log("hello");\n' + - '}'); - - // Issue 298 - do not under indent if/while/for condtionals experesions - bt( - '\'use strict\';\n' + - 'if ([].some(function() {\n' + - ' return false;\n' + - ' })) {\n' + - ' console.log("hello");\n' + - '}'); - - // Issue 552 - Typescript? Okay... we didn't break it before, so try not to break it now. - bt( - 'class Test {\n' + - ' blah: string[];\n' + - ' foo(): number {\n' + - ' return 0;\n' + - ' }\n' + - ' bar(): number {\n' + - ' return 0;\n' + - ' }\n' + - '}'); - bt( - 'interface Test {\n' + - ' blah: string[];\n' + - ' foo(): number {\n' + - ' return 0;\n' + - ' }\n' + - ' bar(): number {\n' + - ' return 0;\n' + - ' }\n' + - '}'); - - // Issue 583 - Functions with comments after them should still indent correctly. - bt( - 'function exit(code) {\n' + - ' setTimeout(function() {\n' + - ' phantom.exit(code);\n' + - ' }, 0);\n' + - ' phantom.onError = function() {};\n' + - '}\n' + - '// Comment'); - - - - // Old tests - bt(''); - test_fragment(' return .5'); - test_fragment(' return .5;\n a();'); - test_fragment(' return .5;\n a();'); - test_fragment(' return .5;\n a();'); - test_fragment(' < div'); - bt('a = 1', 'a = 1'); - bt('a=1', 'a = 1'); - bt('(3) / 2'); - bt('["a", "b"].join("")'); - bt('a();\n\nb();'); - bt('var a = 1 var b = 2', 'var a = 1\nvar b = 2'); - bt('var a=1, b=c[d], e=6;', 'var a = 1,\n b = c[d],\n e = 6;'); - bt('var a,\n b,\n c;'); - bt('let a = 1 let b = 2', 'let a = 1\nlet b = 2'); - bt('let a=1, b=c[d], e=6;', 'let a = 1,\n b = c[d],\n e = 6;'); - bt('let a,\n b,\n c;'); - bt('const a = 1 const b = 2', 'const a = 1\nconst b = 2'); - bt('const a=1, b=c[d], e=6;', 'const a = 1,\n b = c[d],\n e = 6;'); - bt('const a,\n b,\n c;'); - bt('a = " 12345 "'); - bt('a = \' 12345 \''); - bt('if (a == 1) b = 2;'); - bt('if(1){2}else{3}', 'if (1) {\n 2\n} else {\n 3\n}'); - bt('if(1||2);', 'if (1 || 2);'); - bt('(a==1)||(b==2)', '(a == 1) || (b == 2)'); - bt('var a = 1 if (2) 3;', 'var a = 1\nif (2) 3;'); - bt('a = a + 1'); - bt('a = a == 1'); - bt('/12345[^678]*9+/.match(a)'); - bt('a /= 5'); - bt('a = 0.5 * 3'); - bt('a *= 10.55'); - bt('a < .5'); - bt('a <= .5'); - bt('a<.5', 'a < .5'); - bt('a<=.5', 'a <= .5'); - bt('a = 0xff;'); - bt('a=0xff+4', 'a = 0xff + 4'); - bt('a = [1, 2, 3, 4]'); - bt('F*(g/=f)*g+b', 'F * (g /= f) * g + b'); - bt('a.b({c:d})', 'a.b({\n c: d\n})'); - bt('a.b\n(\n{\nc:\nd\n}\n)', 'a.b({\n c: d\n})'); - bt('a.b({c:"d"})', 'a.b({\n c: "d"\n})'); - bt('a.b\n(\n{\nc:\n"d"\n}\n)', 'a.b({\n c: "d"\n})'); - bt('a=!b', 'a = !b'); - bt('a=!!b', 'a = !!b'); - bt('a?b:c', 'a ? b : c'); - bt('a?1:2', 'a ? 1 : 2'); - bt('a?(b):c', 'a ? (b) : c'); - bt('x={a:1,b:w=="foo"?x:y,c:z}', 'x = {\n a: 1,\n b: w == "foo" ? x : y,\n c: z\n}'); - bt('x=a?b?c?d:e:f:g;', 'x = a ? b ? c ? d : e : f : g;'); - bt('x=a?b?c?d:{e1:1,e2:2}:f:g;', 'x = a ? b ? c ? d : {\n e1: 1,\n e2: 2\n} : f : g;'); - bt('function void(void) {}'); - bt('if(!a)foo();', 'if (!a) foo();'); - bt('a=~a', 'a = ~a'); - bt('a;/*comment*/b;', 'a; /*comment*/\nb;'); - bt('a;/* comment */b;', 'a; /* comment */\nb;'); - - // simple comments don't get touched at all - test_fragment('a;/*\ncomment\n*/b;', 'a;\n/*\ncomment\n*/\nb;'); - bt('a;/**\n* javadoc\n*/b;', 'a;\n/**\n * javadoc\n */\nb;'); - test_fragment('a;/**\n\nno javadoc\n*/b;', 'a;\n/**\n\nno javadoc\n*/\nb;'); - - // comment blocks detected and reindented even w/o javadoc starter - bt('a;/*\n* javadoc\n*/b;', 'a;\n/*\n * javadoc\n */\nb;'); - bt('if(a)break;', 'if (a) break;'); - bt('if(a){break}', 'if (a) {\n break\n}'); - bt('if((a))foo();', 'if ((a)) foo();'); - bt('for(var i=0;;) a', 'for (var i = 0;;) a'); - bt('for(var i=0;;)\na', 'for (var i = 0;;)\n a'); - bt('a++;'); - bt('for(;;i++)a()', 'for (;; i++) a()'); - bt('for(;;i++)\na()', 'for (;; i++)\n a()'); - bt('for(;;++i)a', 'for (;; ++i) a'); - bt('return(1)', 'return (1)'); - bt('try{a();}catch(b){c();}finally{d();}', 'try {\n a();\n} catch (b) {\n c();\n} finally {\n d();\n}'); - - // magic function call - bt('(xx)()'); - - // another magic function call - bt('a[1]()'); - bt('if(a){b();}else if(c) foo();', 'if (a) {\n b();\n} else if (c) foo();'); - bt('switch(x) {case 0: case 1: a(); break; default: break}', 'switch (x) {\n case 0:\n case 1:\n a();\n break;\n default:\n break\n}'); - bt('switch(x){case -1:break;case !y:break;}', 'switch (x) {\n case -1:\n break;\n case !y:\n break;\n}'); - bt('a !== b'); - bt('if (a) b(); else c();', 'if (a) b();\nelse c();'); - - // typical greasemonkey start - bt('// comment\n(function something() {})'); - - // duplicating newlines - bt('{\n\n x();\n\n}'); - bt('if (a in b) foo();'); - bt('if(X)if(Y)a();else b();else c();', 'if (X)\n if (Y) a();\n else b();\nelse c();'); - bt('if (foo) bar();\nelse break'); - bt('var a, b;'); - bt('var a = new function();'); - test_fragment('new function'); - bt('var a, b'); - bt('{a:1, b:2}', '{\n a: 1,\n b: 2\n}'); - bt('a={1:[-1],2:[+1]}', 'a = {\n 1: [-1],\n 2: [+1]\n}'); - bt('var l = {\'a\':\'1\', \'b\':\'2\'}', 'var l = {\n \'a\': \'1\',\n \'b\': \'2\'\n}'); - bt('if (template.user[n] in bk) foo();'); - bt('return 45'); - bt('return this.prevObject ||\n\n this.constructor(null);'); - bt('If[1]'); - bt('Then[1]'); - bt('a = 1e10'); - bt('a = 1.3e10'); - bt('a = 1.3e-10'); - bt('a = -1.3e-10'); - bt('a = 1e-10'); - bt('a = e - 10'); - bt('a = 11-10', 'a = 11 - 10'); - bt('a = 1;// comment', 'a = 1; // comment'); - bt('a = 1; // comment'); - bt('a = 1;\n // comment', 'a = 1;\n// comment'); - bt('a = [-1, -1, -1]'); - - // The exact formatting these should have is open for discussion, but they are at least reasonable - bt('a = [ // comment\n -1, -1, -1\n]'); - bt('var a = [ // comment\n -1, -1, -1\n]'); - bt('a = [ // comment\n -1, // comment\n -1, -1\n]'); - bt('var a = [ // comment\n -1, // comment\n -1, -1\n]'); - bt('o = [{a:b},{c:d}]', 'o = [{\n a: b\n}, {\n c: d\n}]'); - - // was: extra space appended - bt('if (a) {\n do();\n}'); - - // if/else statement with empty body - bt('if (a) {\n// comment\n}else{\n// comment\n}', 'if (a) {\n // comment\n} else {\n // comment\n}'); - - // multiple comments indentation - bt('if (a) {\n// comment\n// comment\n}', 'if (a) {\n // comment\n // comment\n}'); - bt('if (a) b() else c();', 'if (a) b()\nelse c();'); - bt('if (a) b() else if c() d();', 'if (a) b()\nelse if c() d();'); - bt('{}'); - bt('{\n\n}'); - bt('do { a(); } while ( 1 );', 'do {\n a();\n} while (1);'); - bt('do {} while (1);'); - bt('do {\n} while (1);', 'do {} while (1);'); - bt('do {\n\n} while (1);'); - bt('var a = x(a, b, c)'); - bt('delete x if (a) b();', 'delete x\nif (a) b();'); - bt('delete x[x] if (a) b();', 'delete x[x]\nif (a) b();'); - bt('for(var a=1,b=2)d', 'for (var a = 1, b = 2) d'); - bt('for(var a=1,b=2,c=3) d', 'for (var a = 1, b = 2, c = 3) d'); - bt('for(var a=1,b=2,c=3;d<3;d++)\ne', 'for (var a = 1, b = 2, c = 3; d < 3; d++)\n e'); - bt('function x(){(a||b).c()}', 'function x() {\n (a || b).c()\n}'); - bt('function x(){return - 1}', 'function x() {\n return -1\n}'); - bt('function x(){return ! a}', 'function x() {\n return !a\n}'); - bt('x => x'); - bt('(x) => x'); - bt('x => { x }', 'x => {\n x\n}'); - bt('(x) => { x }', '(x) => {\n x\n}'); - - // a common snippet in jQuery plugins - bt( - 'settings = $.extend({},defaults,settings);', - 'settings = $.extend({}, defaults, settings);'); - bt('$http().then().finally().default()'); - bt('$http()\n.then()\n.finally()\n.default()', '$http()\n .then()\n .finally()\n .default()'); - bt('$http().when.in.new.catch().throw()'); - bt('$http()\n.when\n.in\n.new\n.catch()\n.throw()', '$http()\n .when\n .in\n .new\n .catch()\n .throw()'); - bt('{xxx;}()', '{\n xxx;\n}()'); - bt('a = \'a\'\nb = \'b\''); - bt('a = /reg/exp'); - bt('a = /reg/'); - bt('/abc/.test()'); - bt('/abc/i.test()'); - bt('{/abc/i.test()}', '{\n /abc/i.test()\n}'); - bt('var x=(a)/a;', 'var x = (a) / a;'); - bt('x != -1'); - bt('for (; s-->0;)t', 'for (; s-- > 0;) t'); - bt('for (; s++>0;)u', 'for (; s++ > 0;) u'); - bt('a = s++>s--;', 'a = s++ > s--;'); - bt('a = s++>--s;', 'a = s++ > --s;'); - bt('{x=#1=[]}', '{\n x = #1=[]\n}'); - bt('{a:#1={}}', '{\n a: #1={}\n}'); - bt('{a:#1#}', '{\n a: #1#\n}'); - test_fragment('"incomplete-string'); - test_fragment('\'incomplete-string'); - test_fragment('/incomplete-regex'); - test_fragment('`incomplete-template-string'); - test_fragment('{a:1},{a:2}', '{\n a: 1\n}, {\n a: 2\n}'); - test_fragment('var ary=[{a:1}, {a:2}];', 'var ary = [{\n a: 1\n}, {\n a: 2\n}];'); - - // incomplete - test_fragment('{a:#1', '{\n a: #1'); - - // incomplete - test_fragment('{a:#', '{\n a: #'); - - // incomplete - test_fragment('}}}', '}\n}\n}'); - test_fragment(''); - - // incomplete regexp - test_fragment('a=/regexp', 'a = /regexp'); - bt('{a:#1=[],b:#1#,c:#999999#}', '{\n a: #1=[],\n b: #1#,\n c: #999999#\n}'); - bt('a = 1e+2'); - bt('a = 1e-2'); - bt('do{x()}while(a>1)', 'do {\n x()\n} while (a > 1)'); - bt('x(); /reg/exp.match(something)', 'x();\n/reg/exp.match(something)'); - test_fragment('something();(', 'something();\n('); - test_fragment('#!she/bangs, she bangs\nf=1', '#!she/bangs, she bangs\n\nf = 1'); - test_fragment('#!she/bangs, she bangs\n\nf=1', '#!she/bangs, she bangs\n\nf = 1'); - test_fragment('#!she/bangs, she bangs\n\n/* comment */'); - test_fragment('#!she/bangs, she bangs\n\n\n/* comment */'); - test_fragment('#'); - test_fragment('#!'); - bt('function namespace::something()'); - test_fragment(''); - test_fragment('', ''); - bt('{foo();--bar;}', '{\n foo();\n --bar;\n}'); - bt('{foo();++bar;}', '{\n foo();\n ++bar;\n}'); - bt('{--bar;}', '{\n --bar;\n}'); - bt('{++bar;}', '{\n ++bar;\n}'); - bt('if(true)++a;', 'if (true) ++a;'); - bt('if(true)\n++a;', 'if (true)\n ++a;'); - bt('if(true)--a;', 'if (true) --a;'); - bt('if(true)\n--a;', 'if (true)\n --a;'); - bt('elem[array]++;'); - bt('elem++ * elem[array]++;'); - bt('elem-- * -elem[array]++;'); - bt('elem-- + elem[array]++;'); - bt('elem-- - elem[array]++;'); - bt('elem-- - -elem[array]++;'); - bt('elem-- - +elem[array]++;'); - - // Handling of newlines around unary ++ and -- operators - bt('{foo\n++bar;}', '{\n foo\n ++bar;\n}'); - bt('{foo++\nbar;}', '{\n foo++\n bar;\n}'); - - // This is invalid, but harder to guard against. Issue #203. - bt('{foo\n++\nbar;}', '{\n foo\n ++\n bar;\n}'); - - // regexps - bt('a(/abc\\/\\/def/);b()', 'a(/abc\\/\\/def/);\nb()'); - bt('a(/a[b\\[\\]c]d/);b()', 'a(/a[b\\[\\]c]d/);\nb()'); - - // incomplete char class - test_fragment('a(/a[b\\['); - - // allow unescaped / in char classes - bt('a(/[a/b]/);b()', 'a(/[a/b]/);\nb()'); - bt('typeof /foo\\//;'); - bt('yield /foo\\//;'); - bt('throw /foo\\//;'); - bt('do /foo\\//;'); - bt('return /foo\\//;'); - bt('switch (a) {\n case /foo\\//:\n b\n}'); - bt('if (a) /foo\\//\nelse /foo\\//;'); - bt('if (foo) /regex/.test();'); - bt('for (index in [1, 2, 3]) /^test$/i.test(s)'); - bt('result = yield pgClient.query_(queryString);'); - bt('function foo() {\n return [\n "one",\n "two"\n ];\n}'); - bt('a=[[1,2],[4,5],[7,8]]', 'a = [\n [1, 2],\n [4, 5],\n [7, 8]\n]'); - bt('a=[[1,2],[4,5],function(){},[7,8]]', 'a = [\n [1, 2],\n [4, 5],\n function() {},\n [7, 8]\n]'); - bt('a=[[1,2],[4,5],function(){},function(){},[7,8]]', 'a = [\n [1, 2],\n [4, 5],\n function() {},\n function() {},\n [7, 8]\n]'); - bt('a=[[1,2],[4,5],function(){},[7,8]]', 'a = [\n [1, 2],\n [4, 5],\n function() {},\n [7, 8]\n]'); - bt('a=[b,c,function(){},function(){},d]', 'a = [b, c, function() {}, function() {}, d]'); - bt('a=[b,c,\nfunction(){},function(){},d]', 'a = [b, c,\n function() {},\n function() {},\n d\n]'); - bt('a=[a[1],b[4],c[d[7]]]', 'a = [a[1], b[4], c[d[7]]]'); - bt('[1,2,[3,4,[5,6],7],8]', '[1, 2, [3, 4, [5, 6], 7], 8]'); - bt('[[["1","2"],["3","4"]],[["5","6","7"],["8","9","0"]],[["1","2","3"],["4","5","6","7"],["8","9","0"]]]', '[\n [\n ["1", "2"],\n ["3", "4"]\n ],\n [\n ["5", "6", "7"],\n ["8", "9", "0"]\n ],\n [\n ["1", "2", "3"],\n ["4", "5", "6", "7"],\n ["8", "9", "0"]\n ]\n]'); - bt('{[x()[0]];indent;}', '{\n [x()[0]];\n indent;\n}'); - bt('/*\n foo trailing space \n * bar trailing space \n**/'); - bt('{\n /*\n foo \n * bar \n */\n}'); - bt('return ++i'); - bt('return !!x'); - bt('return !x'); - bt('return [1,2]', 'return [1, 2]'); - bt('return;'); - bt('return\nfunc'); - bt('catch(e)', 'catch (e)'); - bt('yield [1, 2]'); - bt('var a=1,b={foo:2,bar:3},{baz:4,wham:5},c=4;', 'var a = 1,\n b = {\n foo: 2,\n bar: 3\n },\n {\n baz: 4,\n wham: 5\n }, c = 4;'); - bt('var a=1,b={foo:2,bar:3},{baz:4,wham:5},\nc=4;', 'var a = 1,\n b = {\n foo: 2,\n bar: 3\n },\n {\n baz: 4,\n wham: 5\n },\n c = 4;'); - - // inline comment - bt( - 'function x(/*int*/ start, /*string*/ foo)', - 'function x( /*int*/ start, /*string*/ foo)'); - - // javadoc comment - bt('/**\n* foo\n*/', '/**\n * foo\n */'); - bt('{\n/**\n* foo\n*/\n}', '{\n /**\n * foo\n */\n}'); - - // starless block comment - bt('/**\nfoo\n*/'); - bt('/**\nfoo\n**/'); - bt('/**\nfoo\nbar\n**/'); - bt('/**\nfoo\n\nbar\n**/'); - bt('/**\nfoo\n bar\n**/'); - bt('{\n/**\nfoo\n*/\n}', '{\n /**\n foo\n */\n}'); - bt('{\n/**\nfoo\n**/\n}', '{\n /**\n foo\n **/\n}'); - bt('{\n/**\nfoo\nbar\n**/\n}', '{\n /**\n foo\n bar\n **/\n}'); - bt('{\n/**\nfoo\n\nbar\n**/\n}', '{\n /**\n foo\n\n bar\n **/\n}'); - bt('{\n/**\nfoo\n bar\n**/\n}', '{\n /**\n foo\n bar\n **/\n}'); - bt('{\n /**\n foo\nbar\n **/\n}'); - bt('var a,b,c=1,d,e,f=2;', 'var a, b, c = 1,\n d, e, f = 2;'); - bt('var a,b,c=[],d,e,f=2;', 'var a, b, c = [],\n d, e, f = 2;'); - bt('function() {\n var a, b, c, d, e = [],\n f;\n}'); - bt('do/regexp/;\nwhile(1);', 'do /regexp/;\nwhile (1);'); - bt('var a = a,\na;\nb = {\nb\n}', 'var a = a,\n a;\nb = {\n b\n}'); - bt('var a = a,\n /* c */\n b;'); - bt('var a = a,\n // c\n b;'); - - // weird element referencing - bt('foo.("bar");'); - bt('if (a) a()\nelse b()\nnewline()'); - bt('if (a) a()\nnewline()'); - bt('a=typeof(x)', 'a = typeof(x)'); - bt('var a = function() {\n return null;\n },\n b = false;'); - bt('var a = function() {\n func1()\n}'); - bt('var a = function() {\n func1()\n}\nvar b = function() {\n func2()\n}'); - - // code with and without semicolons - bt( - 'var whatever = require("whatever");\nfunction() {\n a = 6;\n}', - 'var whatever = require("whatever");\n\nfunction() {\n a = 6;\n}'); - bt('var whatever = require("whatever")\nfunction() {\n a = 6\n}', 'var whatever = require("whatever")\n\nfunction() {\n a = 6\n}'); - bt('{"x":[{"a":1,"b":3},\n7,8,8,8,8,{"b":99},{"a":11}]}', '{\n "x": [{\n "a": 1,\n "b": 3\n },\n 7, 8, 8, 8, 8, {\n "b": 99\n }, {\n "a": 11\n }\n ]\n}'); - bt('{"x":[{"a":1,"b":3},7,8,8,8,8,{"b":99},{"a":11}]}', '{\n "x": [{\n "a": 1,\n "b": 3\n }, 7, 8, 8, 8, 8, {\n "b": 99\n }, {\n "a": 11\n }]\n}'); - bt('{"1":{"1a":"1b"},"2"}', '{\n "1": {\n "1a": "1b"\n },\n "2"\n}'); - bt('{a:{a:b},c}', '{\n a: {\n a: b\n },\n c\n}'); - bt('{[y[a]];keep_indent;}', '{\n [y[a]];\n keep_indent;\n}'); - bt('if (x) {y} else { if (x) {y}}', 'if (x) {\n y\n} else {\n if (x) {\n y\n }\n}'); - bt('if (foo) one()\ntwo()\nthree()'); - bt('if (1 + foo() && bar(baz()) / 2) one()\ntwo()\nthree()'); - bt('if (1 + foo() && bar(baz()) / 2) one();\ntwo();\nthree();'); - bt('var a=1,b={bang:2},c=3;', 'var a = 1,\n b = {\n bang: 2\n },\n c = 3;'); - bt('var a={bing:1},b=2,c=3;', 'var a = {\n bing: 1\n },\n b = 2,\n c = 3;'); - - - - opts.indent_size = 1; - opts.indent_char = ' '; - bt('{ one_char() }', "{\n one_char()\n}"); - - bt('var a,b=1,c=2', 'var a, b = 1,\n c = 2'); - - opts.indent_size = 4; - opts.indent_char = ' '; - bt('{ one_char() }', "{\n one_char()\n}"); - - opts.indent_size = 1; - opts.indent_char = "\t"; - bt('{ one_char() }', "{\n\tone_char()\n}"); - bt('x = a ? b : c; x;', 'x = a ? b : c;\nx;'); - - //set to something else than it should change to, but with tabs on, should override - opts.indent_size = 5; - opts.indent_char = ' '; - opts.indent_with_tabs = true; - - bt('{ one_char() }', "{\n\tone_char()\n}"); - bt('x = a ? b : c; x;', 'x = a ? b : c;\nx;'); - - opts.indent_size = 4; - opts.indent_char = ' '; - opts.indent_with_tabs = false; - - opts.preserve_newlines = false; - - bt('var\na=dont_preserve_newlines;', 'var a = dont_preserve_newlines;'); - - // make sure the blank line between function definitions stays - // even when preserve_newlines = false - bt('function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}'); - bt('function foo() {\n return 1;\n}\nfunction foo() {\n return 1;\n}', - 'function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}' - ); - bt('function foo() {\n return 1;\n}\n\n\nfunction foo() {\n return 1;\n}', - 'function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}' - ); - - opts.preserve_newlines = true; - bt('var\na=do_preserve_newlines;', 'var\n a = do_preserve_newlines;'); - bt('// a\n// b\n\n// c\n// d'); - bt('if (foo) // comment\n{\n bar();\n}'); - - - opts.keep_array_indentation = false; - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f'\n]"); - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i'\n]"); - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i'\n]"); - bt('var x = [{}\n]', 'var x = [{}]'); - bt('var x = [{foo:bar}\n]', 'var x = [{\n foo: bar\n}]'); - bt("a = ['something',\n 'completely',\n 'different'];\nif (x);", - "a = ['something',\n 'completely',\n 'different'\n];\nif (x);"); - bt("a = ['a','b','c']", "a = ['a', 'b', 'c']"); - - bt("a = ['a', 'b','c']", "a = ['a', 'b', 'c']"); - bt("x = [{'a':0}]", - "x = [{\n 'a': 0\n}]"); - bt('{a([[a1]], {b;});}', - '{\n a([\n [a1]\n ], {\n b;\n });\n}'); - bt("a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\n[\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n].toString();"); - bt("a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n].toString();"); - bt("function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}", - "function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}"); - bt('function foo() {\n return [\n "one",\n "two"\n ];\n}'); - // 4 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}", - "function foo() {\n" + - " return [{\n" + - " one: 'x',\n" + - " two: [{\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }]\n" + - " }];\n" + - "}"); - // 3 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}", - "function foo() {\n" + - " return [{\n" + - " one: 'x',\n" + - " two: [{\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }]\n" + - " }];\n" + - "}"); - - opts.keep_array_indentation = true; - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f']"); - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']"); - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']"); - bt('var x = [{}\n]', 'var x = [{}\n]'); - bt('var x = [{foo:bar}\n]', 'var x = [{\n foo: bar\n }\n]'); - bt("a = ['something',\n 'completely',\n 'different'];\nif (x);"); - bt("a = ['a','b','c']", "a = ['a', 'b', 'c']"); - bt("a = ['a', 'b','c']", "a = ['a', 'b', 'c']"); - bt("x = [{'a':0}]", - "x = [{\n 'a': 0\n}]"); - bt('{a([[a1]], {b;});}', - '{\n a([[a1]], {\n b;\n });\n}'); - bt("a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();"); - bt("a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();"); - bt("function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}", - "function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}"); - bt('function foo() {\n return [\n "one",\n "two"\n ];\n}'); - // 4 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}"); - // 3 spaces per indent input, processed with 4-spaces per indent - // Should be unchanged, but is not - #445 -// bt( "function foo() {\n" + -// " return [\n" + -// " {\n" + -// " one: 'x',\n" + -// " two: [\n" + -// " {\n" + -// " id: 'a',\n" + -// " name: 'apple'\n" + -// " }, {\n" + -// " id: 'b',\n" + -// " name: 'banana'\n" + -// " }\n" + -// " ]\n" + -// " }\n" + -// " ];\n" + -// "}"); - - - opts.keep_array_indentation = false; - - - bt('a = //comment\n /regex/;'); - - bt('if (a)\n{\nb;\n}\nelse\n{\nc;\n}', 'if (a) {\n b;\n} else {\n c;\n}'); - - // tests for brace positioning - beautify_brace_tests('expand'); - beautify_brace_tests('collapse'); - beautify_brace_tests('end-expand'); - beautify_brace_tests('none'); - - bt('// func-comment\n\nfunction foo() {}\n\n// end-func-comment'); - - test_fragment('roo = {\n /*\n ****\n FOO\n ****\n */\n BAR: 0\n};'); - - bt('"foo""bar""baz"', '"foo"\n"bar"\n"baz"'); - bt("'foo''bar''baz'", "'foo'\n'bar'\n'baz'"); - - - test_fragment("if (zz) {\n // ....\n}\n(function"); - - bt("{\n get foo() {}\n}"); - bt("{\n var a = get\n foo();\n}"); - bt("{\n set foo() {}\n}"); - bt("{\n var a = set\n foo();\n}"); - bt("var x = {\n get function()\n}"); - bt("var x = {\n set function()\n}"); - - // According to my current research get/set have no special meaning outside of an object literal - bt("var x = set\n\na() {}", "var x = set\n\na() {}"); - bt("var x = set\n\nfunction() {}", "var x = set\n\nfunction() {}"); - - bt(''); - bt(' - bt('for () /abc/.test()'); - bt('if (k) /aaa/m.test(v) && l();'); - bt('switch (true) {\n case /swf/i.test(foo):\n bar();\n}'); - bt('createdAt = {\n type: Date,\n default: Date.now\n}'); - bt('switch (createdAt) {\n case a:\n Date,\n default:\n Date.now\n}'); - opts.space_before_conditional = false; - bt('if(a) b()'); - opts.space_before_conditional = true; - - - opts.preserve_newlines = true; - bt('var a = 42; // foo\n\nvar b;'); - bt('var a = 42; // foo\n\n\nvar b;'); - bt("var a = 'foo' +\n 'bar';"); - bt("var a = \"foo\" +\n \"bar\";"); - bt('this.oa = new OAuth(\n' + - ' _requestToken,\n' + - ' _accessToken,\n' + - ' consumer_key\n' + - ');'); - - - opts.unescape_strings = false; - test_fragment('"\\x22\\x27", \'\\x22\\x27\', "\\x5c", \'\\x5c\', "\\xff and \\xzz", "unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"'); - opts.unescape_strings = true; - test_fragment('"\\x20\\x40\\x4a"', '" @J"'); - test_fragment('"\\xff\\x40\\x4a"'); - test_fragment('"\\u0072\\u016B\\u0137\\u012B\\u0074\\u0069\\u0073"', '"rūķītis"'); - test_fragment('"Google Chrome est\\u00E1 actualizado."', '"Google Chrome está actualizado."'); - /* - bt('"\\x22\\x27",\'\\x22\\x27\',"\\x5c",\'\\x5c\',"\\xff and \\xzz","unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"', - '"\\"\'", \'"\\\'\', "\\\\", \'\\\\\', "\\xff and \\xzz", "unicode \\u0000 \\" \' \\\\ \\uffff \\uzzzz"'); - */ - opts.unescape_strings = false; - - bt('return function();'); - bt('var a = function();'); - bt('var a = 5 + function();'); - - bt('3.*7;', '3. * 7;'); - bt('a = 1.e-64 * 0.5e+4 / 6e-23;'); - bt('import foo.*;', 'import foo.*;'); // actionscript's import - test_fragment('function f(a: a, b: b)'); // actionscript - - bt('{\n foo // something\n ,\n bar // something\n baz\n}'); - bt('function a(a) {} function b(b) {} function c(c) {}', 'function a(a) {}\n\nfunction b(b) {}\n\nfunction c(c) {}'); - bt('foo(a, function() {})'); - - bt('foo(a, /regex/)'); - - bt('/* foo */\n"x"'); - - opts.break_chained_methods = false; - opts.preserve_newlines = false; - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat);\nfoo.bar().baz().cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat)\nfoo.bar().baz().cucumber(fat)'); - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this.something = foo.bar().baz().cucumber(fat)'); - bt('this.something.xxx = foo.moo.bar()'); - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this.something.xxx = foo.moo.bar()'); - - opts.break_chained_methods = false; - opts.preserve_newlines = true; - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat);\nfoo.bar().baz().cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat)\nfoo.bar().baz().cucumber(fat)'); - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this\n .something = foo.bar()\n .baz().cucumber(fat)'); - bt('this.something.xxx = foo.moo.bar()'); - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this\n .something\n .xxx = foo.moo\n .bar()'); - - opts.break_chained_methods = true; - opts.preserve_newlines = false; - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat);\nfoo.bar()\n .baz()\n .cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat)\nfoo.bar()\n .baz()\n .cucumber(fat)'); - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this.something = foo.bar()\n .baz()\n .cucumber(fat)'); - bt('this.something.xxx = foo.moo.bar()'); - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this.something.xxx = foo.moo.bar()'); - - opts.break_chained_methods = true; - opts.preserve_newlines = true; - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat);\nfoo.bar()\n .baz()\n .cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat)\nfoo.bar()\n .baz()\n .cucumber(fat)'); - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this\n .something = foo.bar()\n .baz()\n .cucumber(fat)'); - bt('this.something.xxx = foo.moo.bar()'); - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this\n .something\n .xxx = foo.moo\n .bar()'); - - opts.break_chained_methods = false; - - // Line wrap test intputs - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - wrap_input_1=('foo.bar().baz().cucumber((fat && "sassy") || (leans\n&& mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - wrap_input_2=('{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") || (leans\n&& mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n.but_this_can\n' + - ' if (wraps_can_occur && inside_an_if_block) that_is_\n.okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - ' }' + - '}'); - - opts.preserve_newlines = false; - opts.wrap_line_length = 0; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 70; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 40; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat &&\n' + - ' "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 41; - // NOTE: wrap is only best effort - line continues until next wrap point is found. - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 45; - // NOTE: wrap is only best effort - line continues until next wrap point is found. - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_2, - /* expected */ - '{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - ' if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - ' }\n'+ - '}'); - - opts.preserve_newlines = true; - opts.wrap_line_length = 0; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 70; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - - opts.wrap_line_length = 40; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat &&\n' + - ' "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 41; - // NOTE: wrap is only best effort - line continues until next wrap point is found. - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 45; - // NOTE: wrap is only best effort - line continues until next wrap point is found. - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_2, - /* expected */ - '{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - ' if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - ' }\n'+ - '}'); - - opts.wrap_line_length = 0; - - opts.preserve_newlines = false; - bt('if (foo) // comment\n bar();'); - bt('if (foo) // comment\n (bar());'); - bt('if (foo) // comment\n (bar());'); - bt('if (foo) // comment\n /asdf/;'); - bt('this.oa = new OAuth(\n' + - ' _requestToken,\n' + - ' _accessToken,\n' + - ' consumer_key\n' + - ');', - 'this.oa = new OAuth(_requestToken, _accessToken, consumer_key);'); - bt('foo = {\n x: y, // #44\n w: z // #44\n}'); - bt('switch (x) {\n case "a":\n // comment on newline\n break;\n case "b": // comment on same line\n break;\n}'); - bt('this.type =\n this.options =\n // comment\n this.enabled null;', - 'this.type = this.options =\n // comment\n this.enabled null;'); - bt('someObj\n .someFunc1()\n // This comment should not break the indent\n .someFunc2();', - 'someObj.someFunc1()\n // This comment should not break the indent\n .someFunc2();'); - - bt('if (true ||\n!true) return;', 'if (true || !true) return;'); - - // these aren't ready yet. - //bt('if (foo) // comment\n bar() /*i*/ + baz() /*j\n*/ + asdf();'); - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();'); - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\nelse\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\n else a();'); - bt('if (foo)\nbar();\nelse\ncar();', - 'if (foo) bar();\nelse car();'); - - bt('if (foo) if (bar) if (baz);\na();', - 'if (foo)\n if (bar)\n if (baz);\na();'); - bt('if (foo) if (bar) if (baz) whee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();'); - bt('if (foo) a()\nif (bar) if (baz) whee();\na();', - 'if (foo) a()\nif (bar)\n if (baz) whee();\na();'); - bt('if (foo);\nif (bar) if (baz) whee();\na();', - 'if (foo);\nif (bar)\n if (baz) whee();\na();'); - bt('if (options)\n' + - ' for (var p in options)\n' + - ' this[p] = options[p];', - 'if (options)\n'+ - ' for (var p in options) this[p] = options[p];'); - bt('if (options) for (var p in options) this[p] = options[p];', - 'if (options)\n for (var p in options) this[p] = options[p];'); - - bt('if (options) do q(); while (b());', - 'if (options)\n do q(); while (b());'); - bt('if (options) while (b()) q();', - 'if (options)\n while (b()) q();'); - bt('if (options) do while (b()) q(); while (a());', - 'if (options)\n do\n while (b()) q(); while (a());'); - - bt('function f(a, b, c,\nd, e) {}', - 'function f(a, b, c, d, e) {}'); - - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}'); - bt('function f(a,b) {if(a) b()}\n\n\n\nfunction g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}'); - - // This is not valid syntax, but still want to behave reasonably and not side-effect - bt('(if(a) b())(if(a) b())', - '(\n if (a) b())(\n if (a) b())'); - bt('(if(a) b())\n\n\n(if(a) b())', - '(\n if (a) b())\n(\n if (a) b())'); - - - - bt("if\n(a)\nb();", "if (a) b();"); - bt('var a =\nfoo', 'var a = foo'); - bt('var a = {\n"a":1,\n"b":2}', "var a = {\n \"a\": 1,\n \"b\": 2\n}"); - bt("var a = {\n'a':1,\n'b':2}", "var a = {\n 'a': 1,\n 'b': 2\n}"); - bt('var a = /*i*/ "b";'); - bt('var a = /*i*/\n"b";', 'var a = /*i*/ "b";'); - bt('var a = /*i*/\nb;', 'var a = /*i*/ b;'); - bt('{\n\n\n"x"\n}', '{\n "x"\n}'); - bt('if(a &&\nb\n||\nc\n||d\n&&\ne) e = f', 'if (a && b || c || d && e) e = f'); - bt('if(a &&\n(b\n||\nc\n||d)\n&&\ne) e = f', 'if (a && (b || c || d) && e) e = f'); - test_fragment('\n\n"x"', '"x"'); - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\nb = 2;'); - - opts.preserve_newlines = true; - bt('if (foo) // comment\n bar();'); - bt('if (foo) // comment\n (bar());'); - bt('if (foo) // comment\n (bar());'); - bt('if (foo) // comment\n /asdf/;'); - bt('foo = {\n x: y, // #44\n w: z // #44\n}'); - bt('switch (x) {\n case "a":\n // comment on newline\n break;\n case "b": // comment on same line\n break;\n}'); - bt('this.type =\n this.options =\n // comment\n this.enabled null;'); - bt('someObj\n .someFunc1()\n // This comment should not break the indent\n .someFunc2();'); - - bt('if (true ||\n!true) return;', 'if (true ||\n !true) return;'); - - // these aren't ready yet. - // bt('if (foo) // comment\n bar() /*i*/ + baz() /*j\n*/ + asdf();'); - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\na();', - 'if (foo)\n if (bar)\n if (baz)\n whee();\na();'); - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\nelse\na();', - 'if (foo)\n if (bar)\n if (baz)\n whee();\n else\n a();'); - bt('if (foo) bar();\nelse\ncar();', - 'if (foo) bar();\nelse\n car();'); - - bt('if (foo) if (bar) if (baz);\na();', - 'if (foo)\n if (bar)\n if (baz);\na();'); - bt('if (foo) if (bar) if (baz) whee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();'); - bt('if (foo) a()\nif (bar) if (baz) whee();\na();', - 'if (foo) a()\nif (bar)\n if (baz) whee();\na();'); - bt('if (foo);\nif (bar) if (baz) whee();\na();', - 'if (foo);\nif (bar)\n if (baz) whee();\na();'); - bt('if (options)\n' + - ' for (var p in options)\n' + - ' this[p] = options[p];'); - bt('if (options) for (var p in options) this[p] = options[p];', - 'if (options)\n for (var p in options) this[p] = options[p];'); - - bt('if (options) do q(); while (b());', - 'if (options)\n do q(); while (b());'); - bt('if (options) do; while (b());', - 'if (options)\n do; while (b());'); - bt('if (options) while (b()) q();', - 'if (options)\n while (b()) q();'); - bt('if (options) do while (b()) q(); while (a());', - 'if (options)\n do\n while (b()) q(); while (a());'); - - bt('function f(a, b, c,\nd, e) {}', - 'function f(a, b, c,\n d, e) {}'); - - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}'); - bt('function f(a,b) {if(a) b()}\n\n\n\nfunction g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\n\n\nfunction g(a, b) {\n if (!a) b()\n}'); - // This is not valid syntax, but still want to behave reasonably and not side-effect - bt('(if(a) b())(if(a) b())', - '(\n if (a) b())(\n if (a) b())'); - bt('(if(a) b())\n\n\n(if(a) b())', - '(\n if (a) b())\n\n\n(\n if (a) b())'); - - // space between functions - bt('/*\n * foo\n */\nfunction foo() {}'); - bt('// a nice function\nfunction foo() {}'); - bt('function foo() {}\nfunction foo() {}', - 'function foo() {}\n\nfunction foo() {}' - ); - - bt('[\n function() {}\n]'); - - - - bt("if\n(a)\nb();", "if (a)\n b();"); - bt('var a =\nfoo', 'var a =\n foo'); - bt('var a = {\n"a":1,\n"b":2}', "var a = {\n \"a\": 1,\n \"b\": 2\n}"); - bt("var a = {\n'a':1,\n'b':2}", "var a = {\n 'a': 1,\n 'b': 2\n}"); - bt('var a = /*i*/ "b";'); - bt('var a = /*i*/\n"b";', 'var a = /*i*/\n "b";'); - bt('var a = /*i*/\nb;', 'var a = /*i*/\n b;'); - bt('{\n\n\n"x"\n}', '{\n\n\n "x"\n}'); - bt('if(a &&\nb\n||\nc\n||d\n&&\ne) e = f', 'if (a &&\n b ||\n c || d &&\n e) e = f'); - bt('if(a &&\n(b\n||\nc\n||d)\n&&\ne) e = f', 'if (a &&\n (b ||\n c || d) &&\n e) e = f'); - test_fragment('\n\n"x"', '"x"'); - - // this beavior differs between js and python, defaults to unlimited in js, 10 in python - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;'); - opts.max_preserve_newlines = 8; - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\n\n\n\n\n\n\n\nb = 2;'); - - // Test the option to have spaces within parens - opts.space_in_paren = false; - bt('if(p) foo(a,b)', 'if (p) foo(a, b)'); - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while (true) {\n willThrow()\n }\n} catch (result) switch (result) {\n case 1:\n ++result\n}'); - bt('((e/((a+(b)*c)-d))^2)*5;', '((e / ((a + (b) * c) - d)) ^ 2) * 5;'); - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}'); - bt('a=[];', - 'a = [];'); - bt('a=[b,c,d];', - 'a = [b, c, d];'); - bt('a= f[b];', - 'a = f[b];'); - opts.space_in_paren = true; - bt('if(p) foo(a,b)', 'if ( p ) foo( a, b )'); - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while ( true ) {\n willThrow()\n }\n} catch ( result ) switch ( result ) {\n case 1:\n ++result\n}'); - bt('((e/((a+(b)*c)-d))^2)*5;', '( ( e / ( ( a + ( b ) * c ) - d ) ) ^ 2 ) * 5;'); - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f( a, b ) {\n if ( a ) b()\n}\n\nfunction g( a, b ) {\n if ( !a ) b()\n}'); - bt('a=[];', - 'a = [];'); - bt('a=[b,c,d];', - 'a = [ b, c, d ];'); - bt('a= f[b];', - 'a = f[ b ];'); - opts.space_in_empty_paren = true; - bt('if(p) foo(a,b)', 'if ( p ) foo( a, b )'); - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while ( true ) {\n willThrow( )\n }\n} catch ( result ) switch ( result ) {\n case 1:\n ++result\n}'); - bt('((e/((a+(b)*c)-d))^2)*5;', '( ( e / ( ( a + ( b ) * c ) - d ) ) ^ 2 ) * 5;'); - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f( a, b ) {\n if ( a ) b( )\n}\n\nfunction g( a, b ) {\n if ( !a ) b( )\n}'); - bt('a=[];', - 'a = [ ];'); - bt('a=[b,c,d];', - 'a = [ b, c, d ];'); - bt('a= f[b];', - 'a = f[ b ];'); - opts.space_in_empty_paren = false; - opts.space_in_paren = false; - - // Test template strings - bt('`This is a ${template} string.`', '`This is a ${template} string.`'); - bt('`This\n is\n a\n ${template}\n string.`', '`This\n is\n a\n ${template}\n string.`'); - bt('a = `This is a continuation\\\nstring.`', 'a = `This is a continuation\\\nstring.`'); - bt('a = "This is a continuation\\\nstring."', 'a = "This is a continuation\\\nstring."'); - - Urlencoded.run_tests(sanitytest); - } - - beautifier_tests(); -} - -if (typeof exports !== "undefined") { - exports.run_javascript_tests = run_javascript_tests; -} diff --git a/node_modules/js-beautify/js/test/node-beautify-perf-tests.js b/node_modules/js-beautify/js/test/node-beautify-perf-tests.js deleted file mode 100644 index 4df1af5..0000000 --- a/node_modules/js-beautify/js/test/node-beautify-perf-tests.js +++ /dev/null @@ -1,50 +0,0 @@ -/*global js_beautify: true */ -/*jshint node:true */ - -var fs = require('fs'), - SanityTest = require('./sanitytest'), - Benchmark = require('benchmark'), - Urlencoded = require('../lib/unpackers/urlencode_unpacker'), - js_beautify = require('../index').js_beautify, - css_beautify = require('../index').css_beautify, - html_beautify = require('../index').html_beautify; - -function node_beautifier_tests() { - console.log('Testing performance...'); - var data = fs.readFileSync(__dirname + '/../../test/underscore.js', 'utf8'); - var data_min = fs.readFileSync(__dirname + '/../../test/underscore-min.js', 'utf8'); - var options = { - wrap_line_length: 80 - }; - - //warm-up - js_beautify(data, options); - js_beautify(data_min, options); - - var suite = new Benchmark.Suite; - - suite.add("js-beautify (underscore)", function() { - js_beautify(data, options); - }) - .add("js-beautify (underscore-min)", function() { - js_beautify(data_min, options); - }) - // add listeners - .on('cycle', function(event) { - console.log(String(event.target)); - }) - .on('error', function(event) { - return 1; - }) - .on('complete', function(event) { - }) - .run() - return 0; -} - - - - -if (require.main === module) { - process.exit(node_beautifier_tests()); -} diff --git a/node_modules/js-beautify/js/test/node-beautify-tests.js b/node_modules/js-beautify/js/test/node-beautify-tests.js deleted file mode 100755 index 6639509..0000000 --- a/node_modules/js-beautify/js/test/node-beautify-tests.js +++ /dev/null @@ -1,53 +0,0 @@ -/*global js_beautify: true */ -/*jshint node:true */ - -var SanityTest = require('./sanitytest'), - Urlencoded = require('../lib/unpackers/urlencode_unpacker'), - run_javascript_tests = require('./beautify-javascript-tests').run_javascript_tests, - run_css_tests = require('./beautify-css-tests').run_css_tests, - run_html_tests = require('./beautify-html-tests').run_html_tests; - -function node_beautifier_legacy_tests(name, test_runner) { - console.log('Testing ' + name + ' with node.js CommonJS (legacy names)...'); - var results = new SanityTest(); - var beautify = require('../index'); - - test_runner( - results, - Urlencoded, - beautify.js_beautify, - beautify.html_beautify, - beautify.css_beautify); - - console.log(results.results_raw()); - return results; -} - -function node_beautifier_tests(name, test_runner) { - console.log('Testing ' + name + ' with node.js CommonJS (new names)...'); - var results = new SanityTest(); - var beautify = require('../index'); - - - test_runner( - results, - Urlencoded, - beautify.js, - beautify.html, - beautify.css); - - console.log(results.results_raw()); - return results; -} - - -if (require.main === module) { - process.exit( - node_beautifier_tests('js-beautifier', run_javascript_tests).get_exitcode() + - node_beautifier_legacy_tests('js-beautifier', run_javascript_tests).get_exitcode() + - node_beautifier_tests('cs-beautifier', run_css_tests).get_exitcode() + - node_beautifier_legacy_tests('css-beautifier', run_css_tests).get_exitcode() + - node_beautifier_tests('html-beautifier', run_html_tests).get_exitcode() + - node_beautifier_legacy_tests('html-beautifier', run_html_tests).get_exitcode() - ); -} diff --git a/node_modules/js-beautify/js/test/requirejs-html-beautify.html b/node_modules/js-beautify/js/test/requirejs-html-beautify.html deleted file mode 100644 index a1088c0..0000000 --- a/node_modules/js-beautify/js/test/requirejs-html-beautify.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - -

    RequireJS test

    - -

    - This example loads the html-beautifier by using a relative path in the require call to the beautify-html.js file. - (also works works with absolute paths) -

    - -
    -require(["../lib/beautify-html"],function(html_beautify){
    -	var input = document.getElementById("input").value;
    -	var output = html_beautify.html_beautify(input);
    -	document.getElementById("output").innerHTML = output;
    -});
    -
    - -

    Input

    - - -

    Output

    - - - - \ No newline at end of file diff --git a/node_modules/js-beautify/js/test/resources/example1.js b/node_modules/js-beautify/js/test/resources/example1.js deleted file mode 100644 index 279108f..0000000 --- a/node_modules/js-beautify/js/test/resources/example1.js +++ /dev/null @@ -1,3 +0,0 @@ -function indentMe() { -"no, me!"; -} diff --git a/node_modules/js-beautify/js/test/resources/indent11chars/.jsbeautifyrc b/node_modules/js-beautify/js/test/resources/indent11chars/.jsbeautifyrc deleted file mode 100644 index 73c8003..0000000 --- a/node_modules/js-beautify/js/test/resources/indent11chars/.jsbeautifyrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "indent_size": 11, - "indent_char": " ", - "indent_level": 0, - "indent_with_tabs": false -} diff --git a/node_modules/js-beautify/js/test/resources/indent11chars/subDir1/subDir2/empty.txt b/node_modules/js-beautify/js/test/resources/indent11chars/subDir1/subDir2/empty.txt deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/js-beautify/js/test/run-tests b/node_modules/js-beautify/js/test/run-tests deleted file mode 100755 index 86b14dc..0000000 --- a/node_modules/js-beautify/js/test/run-tests +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/spidermonkey-1.7 -s - -//#!/usr/bin/js - -// a little helper for testing from command line -// just run it, it will output the test results - -load('js/lib/beautify.js'); -load('js/test/sanitytest.js') -load('js/test/beautify-tests.js') -load('js/lib/unpackers/urlencode_unpacker.js') - -print(run_beautifier_tests(new SanityTest(), Urlencoded, js_beautify).results_raw()) - - -// for nodejs use this from the command line from the main directory: -// node test/beautify-tests.js diff --git a/node_modules/js-beautify/js/test/sanitytest.js b/node_modules/js-beautify/js/test/sanitytest.js deleted file mode 100644 index 75b45b9..0000000 --- a/node_modules/js-beautify/js/test/sanitytest.js +++ /dev/null @@ -1,135 +0,0 @@ -// -// simple testing interface -// written by Einar Lielmanis, einar@jsbeautifier.org -// -// usage: -// -// var t = new SanityTest(function (x) { return x; }, 'my function'); -// t.expect('input', 'output'); -// t.expect('a', 'a'); -// output_somewhere(t.results()); // good for
    , html safe-ish
    -// alert(t.results_raw());        // html unescaped
    -
    -
    -function SanityTest (func, name_of_test) {
    -
    -    var test_func = func || function (x) {
    -        return x;
    -    };
    -
    -    var test_name = name_of_test || '';
    -
    -    var n_failed = 0;
    -    var n_succeeded = 0;
    -
    -    var failures = [];
    -
    -    this.test_function = function(func, name) {
    -        test_func = func;
    -        test_name = name || '';
    -    };
    -
    -    this.get_exitcode = function() {
    -        return n_succeeded === 0 || n_failed !== 0 ? 1 : 0;
    -    };
    -
    -    this.expect = function(parameters, expected_value) {
    -        // multi-parameter calls not supported (I don't need them now).
    -        var result = test_func(parameters);
    -        // proper array checking is a pain. i'll maybe do it later, compare strings representations instead
    -        if ((result === expected_value) || (expected_value instanceof Array && result.join(', ') === expected_value.join(', '))) {
    -            n_succeeded += 1;
    -        } else {
    -            n_failed += 1;
    -            failures.push([test_name, parameters, expected_value, result]);
    -        }
    -    };
    -
    -
    -    this.results_raw = function() {
    -        var results = '';
    -        if (n_failed === 0) {
    -            if (n_succeeded === 0) {
    -                results = 'No tests run.';
    -            } else {
    -                results = 'All ' + n_succeeded + ' tests passed.';
    -            }
    -        } else {
    -            for (var i = 0 ; i < failures.length; i++) {
    -                var f = failures[i];
    -                if (f[0]) {
    -                    f[0] = f[0] + ' ';
    -                }
    -                results += '---- ' + f[0] + 'input -------\n' + this.prettyprint(f[1]) + '\n';
    -                results += '---- ' + f[0] + 'expected ----\n' + this.prettyprint(f[2]) + '\n';
    -                results += '---- ' + f[0] + 'output ------\n' + this.prettyprint(f[3]) + '\n\n';
    -
    -            }
    -            results += n_failed + ' tests failed.\n';
    -        }
    -        return results;
    -    };
    -
    -
    -    this.results = function() {
    -        return this.lazy_escape(this.results_raw());
    -    };
    -
    -
    -    this.prettyprint = function(something, quote_strings) {
    -        var type = typeof something;
    -        switch(type.toLowerCase()) {
    -        case 'string':
    -            if (quote_strings) {
    -                return "'" + something.replace("'", "\\'") + "'";
    -            } else {
    -                return something;
    -            }
    -        case 'number':
    -            return '' + something;
    -        case 'boolean':
    -            return something ? 'true' : 'false';
    -        case 'undefined':
    -            return 'undefined';
    -        case 'object':
    -            if (something instanceof Array) {
    -                var x = [];
    -                var expected_index = 0;
    -                for (var k in something) {
    -                    if (k === expected_index) {
    -                        x.push(this.prettyprint(something[k], true));
    -                        expected_index += 1;
    -                    } else {
    -                        x.push('\n' + k + ': ' + this.prettyprint(something[k], true));
    -                    }
    -                }
    -                return '[' + x.join(', ') + ']';
    -            } else {
    -                return 'object: ' + something;
    -            }
    -        default:
    -            return type + ': ' + something;
    -        }
    -    };
    -
    -
    -    this.lazy_escape = function (str) {
    -        return str.replace(//g, '>').replace(/\n/g, '
    '); - }; - - - this.log = function () { - if (window.console) { - if (console.firebug) { - console.log.apply(console, Array.prototype.slice.call(arguments)); - } else { - console.log.call(console, Array.prototype.slice.call(arguments)); - } - } - }; - -} - -if (typeof module !== 'undefined' && module.exports) { - module.exports = SanityTest; -} diff --git a/node_modules/js-beautify/js/test/shell-smoke-test.sh b/node_modules/js-beautify/js/test/shell-smoke-test.sh deleted file mode 100755 index c9c3248..0000000 --- a/node_modules/js-beautify/js/test/shell-smoke-test.sh +++ /dev/null @@ -1,171 +0,0 @@ -#!/bin/bash - -REL_SCRIPT_DIR="`dirname \"$0\"`" -SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`" - -test_cli_common() -{ - echo ---------------------------------------- - echo Testing common cli behavior... - CLI_SCRIPT_NAME=${1:?missing_param}.js - CLI_SCRIPT=$SCRIPT_DIR/../bin/$CLI_SCRIPT_NAME - echo Script: $CLI_SCRIPT - - # should find the minimal help output - $CLI_SCRIPT 2>&1 | grep -q "Must define at least one file\." || { - echo "[$CLI_SCRIPT_NAME] Output should be help message." - exit 1 - } - - $CLI_SCRIPT 2> /dev/null && { - echo "[$CLI_SCRIPT_NAME (with no parameters)] Return code should be error." - exit 1 - } - - $CLI_SCRIPT -Z 2> /dev/null && { - echo "[$CLI_SCRIPT_NAME -Z] Return code for invalid parameter should be error." - exit 1 - } - - $CLI_SCRIPT -h > /dev/null || { - echo "[$CLI_SCRIPT_NAME -h] Return code should be success." - exit 1 - } - - $CLI_SCRIPT -v > /dev/null || { - echo "[$CLI_SCRIPT_NAME -v] Return code should be success." - exit 1 - } - - MISSING_FILE="$SCRIPT_DIR/../../../js/bin/missing_file" - MISSING_FILE_MESSAGE="Unable to open path" - $CLI_SCRIPT $MISSING_FILE 2> /dev/null && { - echo "[$CLI_SCRIPT_NAME $MISSING_FILE] Return code should be error." - exit 1 - } - - $CLI_SCRIPT $MISSING_FILE 2>&1 | grep -q "$MISSING_FILE_MESSAGE" || { - echo "[$CLI_SCRIPT_NAME $MISSING_FILE] Stderr should have useful message." - exit 1 - } - - if [ "`$CLI_SCRIPT $MISSING_FILE 2> /dev/null`" != "" ]; then - echo "[$CLI_SCRIPT_NAME $MISSING_FILE] Stdout should have no text." - exit 1 - fi - -} - -test_cli_js_beautify() -{ - echo ---------------------------------------- - echo Testing js-beautify cli behavior... - CLI_SCRIPT=$SCRIPT_DIR/../bin/js-beautify.js - - $CLI_SCRIPT $SCRIPT_DIR/../bin/js-beautify.js > /dev/null || { - echo "js-beautify output for $SCRIPT_DIR/../bin/js-beautify.js was expected succeed." - exit 1 - } - - $CLI_SCRIPT $SCRIPT_DIR/../bin/css-beautify.js > /dev/null || { - echo "js-beautify output for $SCRIPT_DIR/../bin/css-beautify.js was expected succeed." - exit 1 - } - - $CLI_SCRIPT $SCRIPT_DIR/../bin/js-beautify.js | diff $SCRIPT_DIR/../bin/js-beautify.js - || { - echo "js-beautify output for $SCRIPT_DIR/../bin/js-beautify.js was expected to be unchanged." - exit 1 - } - - rm -rf /tmp/js-beautify-mkdir - $CLI_SCRIPT -o /tmp/js-beautify-mkdir/js-beautify.js $SCRIPT_DIR/../bin/js-beautify.js && diff $SCRIPT_DIR/../bin/js-beautify.js /tmp/js-beautify-mkdir/js-beautify.js || { - echo "js-beautify output for $SCRIPT_DIR/../bin/js-beautify.js should have been created in /tmp/js-beautify-mkdir/js-beautify.js." - exit 1 - } - - # ensure unchanged files are not overwritten - cp -p /tmp/js-beautify-mkdir/js-beautify.js /tmp/js-beautify-mkdir/js-beautify-old.js - touch -A -05 /tmp/js-beautify-mkdir/js-beautify.js - touch -A -01 /tmp/js-beautify-mkdir/js-beautify-old.js - $CLI_SCRIPT -r /tmp/js-beautify-mkdir/js-beautify.js && test /tmp/js-beautify-mkdir/js-beautify.js -nt /tmp/js-beautify-mkdir/js-beautify-old.js && { - echo "js-beautify should not replace unchanged file /tmp/js-beautify-mkdir/js-beautify.js when using -r" - exit 1 - } - - $CLI_SCRIPT -o /tmp/js-beautify-mkdir/js-beautify.js /tmp/js-beautify-mkdir/js-beautify.js && test /tmp/js-beautify-mkdir/js-beautify.js -nt /tmp/js-beautify-mkdir/js-beautify-old.js && { - echo "js-beautify should not replace unchanged file /tmp/js-beautify-mkdir/js-beautify.js when using -o and same file name" - exit 1 - } - - $CLI_SCRIPT -o /tmp/js-beautify-mkdir/js-beautify.js /tmp/js-beautify-mkdir/js-beautify-old.js && test /tmp/js-beautify-mkdir/js-beautify.js -nt /tmp/js-beautify-mkdir/js-beautify-old.js && { - echo "js-beautify should not replace unchanged file /tmp/js-beautify-mkdir/js-beautify.js when using -o and different file name" - exit 1 - } - - $CLI_SCRIPT $SCRIPT_DIR/../bin/css-beautify.js | diff -q $SCRIPT_DIR/../bin/css-beautify.js - && { - echo "js-beautify output for $SCRIPT_DIR/../bin/css-beautify.js was expected to be different." - exit 1 - } - - export HOME= - export USERPROFILE= - $CLI_SCRIPT -o /tmp/js-beautify-mkdir/example1-default.js $SCRIPT_DIR/resources/example1.js - - cd $SCRIPT_DIR/resources/indent11chars - $CLI_SCRIPT /tmp/js-beautify-mkdir/example1-default.js | diff -q /tmp/js-beautify-mkdir/example1-default.js - && { - echo "js-beautify output for /tmp/js-beautify-mkdir/example1-default.js was expected to be different based on CWD settings." - exit 1 - } - cd $SCRIPT_DIR/resources/indent11chars/subDir1/subDir2 - $CLI_SCRIPT /tmp/js-beautify-mkdir/example1-default.js | diff -q /tmp/js-beautify-mkdir/example1-default.js - && { - echo "js-beautify output for /tmp/js-beautify-mkdir/example1-default.js was expected to be different based on CWD parent folder settings." - exit 1 - } - cd $SCRIPT_DIR - - - export HOME=$SCRIPT_DIR/resources/indent11chars - $CLI_SCRIPT /tmp/js-beautify-mkdir/example1-default.js | diff -q /tmp/js-beautify-mkdir/example1-default.js - && { - echo "js-beautify output for /tmp/js-beautify-mkdir/example1-default.js was expected to be different based on HOME settings." - exit 1 - } - - export HOME= - export USERPROFILE=$SCRIPT_DIR/resources/indent11chars - $CLI_SCRIPT /tmp/js-beautify-mkdir/example1-default.js | diff -q /tmp/js-beautify-mkdir/example1-default.js - && { - echo "js-beautify output for /tmp/js-beautify-mkdir/example1-default.js was expected to be different based on USERPROFILE settings." - exit 1 - } - - -} - -test_smoke_js_beautify() -{ - echo ---------------------------------------- - echo Testing js-beautify functionality... - node $SCRIPT_DIR/node-beautify-tests.js || exit 1 - node $SCRIPT_DIR/amd-beautify-tests.js || exit 1 -} - - -test_performance_js_beautify() -{ - echo ---------------------------------------- - echo Testing js-beautify performance... - node $SCRIPT_DIR/node-beautify-perf-tests.js || exit 1 - echo ---------------------------------------- - -} - -test_cli_common css-beautify -test_cli_common html-beautify -test_cli_common js-beautify - -test_cli_js_beautify -test_smoke_js_beautify -test_performance_js_beautify - -echo ---------------------------------------- -echo $0 - PASSED. -echo ---------------------------------------- diff --git a/node_modules/js-beautify/package.json b/node_modules/js-beautify/package.json deleted file mode 100644 index cb56eb0..0000000 --- a/node_modules/js-beautify/package.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "js-beautify@~1.5.4", - "scope": null, - "escapedName": "js-beautify", - "name": "js-beautify", - "rawSpec": "~1.5.4", - "spec": ">=1.5.4 <1.6.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-json-editor" - ] - ], - "_from": "js-beautify@>=1.5.4 <1.6.0", - "_id": "js-beautify@1.5.10", - "_inCache": true, - "_location": "/js-beautify", - "_nodeVersion": "0.12.2", - "_npmUser": { - "name": "bitwiseman", - "email": "bitwiseman@gmail.com" - }, - "_npmVersion": "2.7.5", - "_phantomChildren": {}, - "_requested": { - "raw": "js-beautify@~1.5.4", - "scope": null, - "escapedName": "js-beautify", - "name": "js-beautify", - "rawSpec": "~1.5.4", - "spec": ">=1.5.4 <1.6.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-json-editor" - ], - "_resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.5.10.tgz", - "_shasum": "4d95371702699344a516ca26bf59f0a27bb75719", - "_shrinkwrap": null, - "_spec": "js-beautify@~1.5.4", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-json-editor", - "author": { - "name": "Einar Lielmanis", - "email": "einar@jsbeautifier.org" - }, - "bin": { - "css-beautify": "./js/bin/css-beautify.js", - "html-beautify": "./js/bin/html-beautify.js", - "js-beautify": "./js/bin/js-beautify.js" - }, - "bugs": { - "url": "https://github.com/beautify-web/js-beautify/issues" - }, - "contributors": [ - { - "name": "Vital Batmanov", - "email": "vital76@gmail.com" - }, - { - "name": "Chris J. Shull", - "email": "chrisjshull@gmail.com" - }, - { - "name": "Gian Marco Gherardi", - "email": "gianmarco.gherardi@gmail.com" - }, - { - "name": "Stan", - "email": "stasson@orc.ru" - }, - { - "name": "Vittorio Gambaletta", - "email": "VittGam@vittgam.net" - }, - { - "name": "Daniel Stockman", - "email": "daniel.stockman@gmail.com" - }, - { - "name": "Harutyun Amirjanyan", - "email": "amirjanyan@gmail.com" - }, - { - "name": "Nochum Sossonko", - "email": "nsossonko@hotmail.com" - }, - { - "name": "Liam Newman", - "email": "bitwiseman@gmail.com" - } - ], - "dependencies": { - "config-chain": "~1.1.5", - "mkdirp": "~0.5.0", - "nopt": "~3.0.1" - }, - "description": "jsbeautifier.org for node", - "devDependencies": { - "benchmark": "1.0.0", - "jshint": "~2.8.0", - "mustache": "~1.1.0", - "node-static": "~0.7.1", - "requirejs": "2.1.x" - }, - "directories": { - "lib": "js/lib", - "test": "js/test" - }, - "dist": { - "shasum": "4d95371702699344a516ca26bf59f0a27bb75719", - "tarball": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.5.10.tgz" - }, - "gitHead": "880a854273aa50976a0228e08f623be6f24ab717", - "homepage": "http://jsbeautifier.org/", - "keywords": [ - "beautify", - "beautifier", - "code-quality" - ], - "license": "MIT", - "main": "js/index.js", - "maintainers": [ - { - "name": "evocateur", - "email": "daniel.stockman@gmail.com" - }, - { - "name": "bitwiseman", - "email": "bitwiseman@gmail.com" - } - ], - "name": "js-beautify", - "optionalDependencies": {}, - "preferGlobal": true, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/beautify-web/js-beautify.git" - }, - "scripts": { - "test": "./js/test/shell-smoke-test.sh", - "update-codemirror": "npm install codemirror && rm -rf ./web/third-party/codemirror/* && cp ./node_modules/codemirror/LICENSE ./web/third-party/codemirror/ && cp ./node_modules/codemirror/README.md ./web/third-party/codemirror/ && cp -r ./node_modules/codemirror/lib ./web/third-party/codemirror/ && mkdir -p ./web/third-party/codemirror/mode && cp -r ./node_modules/codemirror/mode/javascript ./web/third-party/codemirror/mode/ && git add -Av ./web/third-party/codemirror" - }, - "version": "1.5.10" -} diff --git a/node_modules/js-beautify/release-all.sh b/node_modules/js-beautify/release-all.sh deleted file mode 100755 index 62681c0..0000000 --- a/node_modules/js-beautify/release-all.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -NEW_VERSION=$1 - -git checkout master - -./generate-changelog.sh beautify-web/js-beautify || exit 1 -git commit -am "Update Changelog for $NEW_VERSION" - -# python -git clean -xfd || exit 1 -echo "__version__ = '$NEW_VERSION'" > python/jsbeautifier/__version__.py -git commit -am "Python $NEW_VERSION" -cd python -python setup.py register -python setup.py sdist bdist_wininst upload -cd .. -git push - -# node -git clean -xfd -npm version $NEW_VERSION -npm publish . -git push -git push --tags - -# web -git clean -xfd -git checkout gh-pages && git fetch && git merge origin/master && git push || exit 1 - -git checkout master - diff --git a/node_modules/js-beautify/test/data/css.js b/node_modules/js-beautify/test/data/css.js deleted file mode 100644 index b31c8f6..0000000 --- a/node_modules/js-beautify/test/data/css.js +++ /dev/null @@ -1,185 +0,0 @@ -exports.test_data = { - default_options: [ - { name: "indent_size", value: "1" }, - { name: "indent_char", value: "'\\t'" }, - { name: "selector_separator_newline", value: "true" }, - { name: "end_with_newline", value: "false" }, - { name: "newline_between_rules", value: "false"}, - ], - groups: [{ - name: "End With Newline", - description: "", - matrix: [ - { - options: [ - { name: "end_with_newline", value: "true" } - ], - eof: '\\n' - }, { - options: [ - { name: "end_with_newline", value: "false" } - ], - eof: '' - } - ], - tests: [ - { fragment: true, input: '', output: '{{eof}}' }, - { fragment: true, input: ' .tabs{}', output: ' .tabs {}{{eof}}' }, - { fragment: true, input: ' \n\n.tabs{}\n\n\n\n', output: ' .tabs {}{{eof}}' }, - { fragment: true, input: '\n', output: '{{eof}}' } - ], - }, { - name: "Empty braces", - description: "", - tests: [ - { input: '.tabs{}', output: '.tabs {}' }, - { input: '.tabs { }', output: '.tabs {}' }, - { input: '.tabs { }', output: '.tabs {}' }, - // When we support preserving newlines this will need to change - { input: '.tabs \n{\n \n }', output: '.tabs {}' } - ], - }, { - name: "", - description: "", - tests: [ - { - input: '#cboxOverlay {\n\tbackground: url(images/overlay.png) repeat 0 0;\n\topacity: 0.9;\n\tfilter: alpha(opacity = 90);\n}', - output: '#cboxOverlay {\n\tbackground: url(images/overlay.png) repeat 0 0;\n\topacity: 0.9;\n\tfilter: alpha(opacity=90);\n}' - }, - ], - }, { - name: 'Selector Separator', - description: '', - matrix: [ - { - options: [ - { name: 'selector_separator_newline', value: 'false' }, - { name: 'selector_separator', value: '" "' } - ], - separator: ' ', - separator1: ' ' - }, { - options: [ - { name: 'selector_separator_newline', value: 'false' }, - { name: 'selector_separator', value: '" "' } - ], - // BUG: #713 - separator: ' ', - separator1: ' ' - }, { - options: [ - { name: 'selector_separator_newline', value: 'true' }, - { name: 'selector_separator', value: '" "' } - ], - separator: '\\n', - separator1: '\\n\\t' - }, { - options: [ - { name: 'selector_separator_newline', value: 'true' }, - { name: 'selector_separator', value: '" "' } - ], - separator: '\\n', - separator1: '\\n\\t' - } - ], - tests: [ - { input: '#bla, #foo{color:green}', output: '#bla,{{separator}}#foo {\n\tcolor: green\n}'}, - { input: '@media print {.tab{}}', output: '@media print {\n\t.tab {}\n}'}, - { input: '@media print {.tab,.bat{}}', output: '@media print {\n\t.tab,{{separator1}}.bat {}\n}'}, - { input: '#bla, #foo{color:black}', output: '#bla,{{separator}}#foo {\n\tcolor: black\n}'}, - { input: 'a:first-child,a:first-child{color:red;div:first-child,div:hover{color:black;}}', - output: 'a:first-child,{{separator}}a:first-child {\n\tcolor: red;\n\tdiv:first-child,{{separator1}}div:hover {\n\t\tcolor: black;\n\t}\n}'} - ] - }, { - name: "Newline Between Rules", - description: "", - matrix: [ - { - options: [ - { name: "newline_between_rules", value: "true" } - ], - separator: '\\n' - }, { - options: [ - { name: "newline_between_rules", value: "false" } - ], - separator: '' - } - ], - tests: [ - { input: '.div {}\n.span {}', output: '.div {}\n{{separator}}.span {}'}, - { input: '.div{}\n \n.span{}', output: '.div {}\n{{separator}}.span {}'}, - { input: '.div {} \n \n.span { } \n', output: '.div {}\n{{separator}}.span {}'}, - { input: '.div {\n \n} \n .span {\n } ', output: '.div {}\n{{separator}}.span {}'}, - { input: '.selector1 {\n\tmargin: 0; /* This is a comment including an url http://domain.com/path/to/file.ext */\n}\n.div{height:15px;}', output: '.selector1 {\n\tmargin: 0;\n\t/* This is a comment including an url http://domain.com/path/to/file.ext */\n}\n{{separator}}.div {\n\theight: 15px;\n}'}, - { input: '.tabs{width:10px;//end of line comment\nheight:10px;//another\n}\n.div{height:15px;}', output: '.tabs {\n\twidth: 10px; //end of line comment\n\theight: 10px; //another\n}\n{{separator}}.div {\n\theight: 15px;\n}'}, - { input: '#foo {\n\tbackground-image: url(foo@2x.png);\n\t@font-face {\n\t\tfont-family: "Bitstream Vera Serif Bold";\n\t\tsrc: url("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf");\n\t}\n}\n.div{height:15px;}', output: '#foo {\n\tbackground-image: url(foo@2x.png);\n\t@font-face {\n\t\tfont-family: "Bitstream Vera Serif Bold";\n\t\tsrc: url("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf");\n\t}\n}\n{{separator}}.div {\n\theight: 15px;\n}'}, - { input: '@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo@2x.png);\n\t}\n\t@font-face {\n\t\tfont-family: "Bitstream Vera Serif Bold";\n\t\tsrc: url("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf");\n\t}\n}\n.div{height:15px;}', output: '@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo@2x.png);\n\t}\n\t@font-face {\n\t\tfont-family: "Bitstream Vera Serif Bold";\n\t\tsrc: url("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf");\n\t}\n}\n{{separator}}.div {\n\theight: 15px;\n}'}, - { input: '@font-face {\n\tfont-family: "Bitstream Vera Serif Bold";\n\tsrc: url("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf");\n}\n@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo.png);\n\t}\n\t@media screen and (min-device-pixel-ratio: 2) {\n\t\t@font-face {\n\t\t\tfont-family: "Helvetica Neue"\n\t\t}\n\t\t#foo:hover {\n\t\t\tbackground-image: url(foo@2x.png);\n\t\t}\n\t}\n}', output: '@font-face {\n\tfont-family: "Bitstream Vera Serif Bold";\n\tsrc: url("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf");\n}\n{{separator}}@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo.png);\n\t}\n\t@media screen and (min-device-pixel-ratio: 2) {\n\t\t@font-face {\n\t\t\tfont-family: "Helvetica Neue"\n\t\t}\n\t\t#foo:hover {\n\t\t\tbackground-image: url(foo@2x.png);\n\t\t}\n\t}\n}'}, - { input: 'a:first-child{color:red;div:first-child{color:black;}}\n.div{height:15px;}', output: 'a:first-child {\n\tcolor: red;\n\tdiv:first-child {\n\t\tcolor: black;\n\t}\n}\n{{separator}}.div {\n\theight: 15px;\n}'}, - { input: 'a:first-child{color:red;div:not(.peq){color:black;}}\n.div{height:15px;}', output: 'a:first-child {\n\tcolor: red;\n\tdiv:not(.peq) {\n\t\tcolor: black;\n\t}\n}\n{{separator}}.div {\n\theight: 15px;\n}'}, - ], - }, { - name: "Functions braces", - description: "", - tests: [ - { input: '.tabs(){}', output: '.tabs() {}' }, - { input: '.tabs (){}', output: '.tabs () {}' }, - { input: '.tabs (pa, pa(1,2)), .cols { }', output: '.tabs (pa, pa(1, 2)),\n.cols {}' }, - { input: '.tabs(pa, pa(1,2)), .cols { }', output: '.tabs(pa, pa(1, 2)),\n.cols {}' }, - { input: '.tabs ( ) { }', output: '.tabs () {}' }, - { input: '.tabs( ) { }', output: '.tabs() {}' }, - { input: '.tabs (t, t2) \n{\n key: val(p1 ,p2); \n }', output: '.tabs (t, t2) {\n\tkey: val(p1, p2);\n}' }, - { input: '.box-shadow(@shadow: 0 1px 3px rgba(0, 0, 0, .25)) {\n\t-webkit-box-shadow: @shadow;\n\t-moz-box-shadow: @shadow;\n\tbox-shadow: @shadow;\n}' } - ], - }, { - name: "Comments", - description: "", - tests: [ - { unchanged: '/* test */' }, - { input: '.tabs{/* test */}', output: '.tabs {\n\t/* test */\n}' }, - { input: '.tabs{/* test */}', output: '.tabs {\n\t/* test */\n}' }, - { input: '/* header */.tabs {}', output: '/* header */\n\n.tabs {}' }, - { input: '.tabs {\n/* non-header */\nwidth:10px;}', output: '.tabs {\n\t/* non-header */\n\twidth: 10px;\n}' }, - { unchanged: '/* header' }, - { unchanged: '// comment' }, - { input: '.selector1 {\n\tmargin: 0; /* This is a comment including an url http://domain.com/path/to/file.ext */\n}', - output: '.selector1 {\n\tmargin: 0;\n\t/* This is a comment including an url http://domain.com/path/to/file.ext */\n}'}, - - { comment: "single line comment support (less/sass)", - input:'.tabs{\n// comment\nwidth:10px;\n}', output: '.tabs {\n\t// comment\n\twidth: 10px;\n}' }, - { input: '.tabs{// comment\nwidth:10px;\n}', output: '.tabs {\n\t// comment\n\twidth: 10px;\n}' }, - { input: '//comment\n.tabs{width:10px;}', output: '//comment\n.tabs {\n\twidth: 10px;\n}' }, - { input: '.tabs{//comment\n//2nd single line comment\nwidth:10px;}', output: '.tabs {\n\t//comment\n\t//2nd single line comment\n\twidth: 10px;\n}' }, - { input: '.tabs{width:10px;//end of line comment\n}', output: '.tabs {\n\twidth: 10px; //end of line comment\n}' }, - { input: '.tabs{width:10px;//end of line comment\nheight:10px;}', output: '.tabs {\n\twidth: 10px; //end of line comment\n\theight: 10px;\n}' }, - { input: '.tabs{width:10px;//end of line comment\nheight:10px;//another\n}', output: '.tabs {\n\twidth: 10px; //end of line comment\n\theight: 10px; //another\n}' } - ], - }, { - name: "Psuedo-classes vs Variables", - description: "", - tests: [ - { unchanged: '@page :first {}' }, - { comment: "Assume the colon goes with the @name. If we're in LESS, this is required regardless of the at-string.", - input: '@page:first {}', - output: '@page: first {}' }, - { unchanged: '@page: first {}' } - ], - }, { - name: "SASS/SCSS", - description: "", - tests: [ - { comment: "Basic Interpolation", - unchanged: 'p {\n\t$font-size: 12px;\n\t$line-height: 30px;\n\tfont: #{$font-size}/#{$line-height};\n}'}, - { unchanged: 'p.#{$name} {}' }, - { unchanged: [ - '@mixin itemPropertiesCoverItem($items, $margin) {', - '\twidth: calc((100% - ((#{$items} - 1) * #{$margin}rem)) / #{$items});', - '\tmargin: 1.6rem #{$margin}rem 1.6rem 0;', - '}' - ]} - ], - }, { - - }] -} diff --git a/node_modules/js-beautify/test/data/html.js b/node_modules/js-beautify/test/data/html.js deleted file mode 100644 index ed668f3..0000000 --- a/node_modules/js-beautify/test/data/html.js +++ /dev/null @@ -1,473 +0,0 @@ -exports.test_data = { - default_options: [ - { name: "indent_size", value: "4" }, - { name: "indent_char", value: "' '" }, - { name: "indent_with_tabs", value: "false" }, - { name: "preserve_newlines", value: "true" }, - { name: "jslint_happy", value: "false" }, - { name: "keep_array_indentation", value: "false" }, - { name: "brace_style", value: "'collapse'" }, - { name: "extra_liners", value: "['html', 'head', '/html']" } - ], - groups: [{ - name: "End With Newline", - description: "", - matrix: [ - { - options: [ - { name: "end_with_newline", value: "true" } - ], - eof: '\\n' - }, { - options: [ - { name: "end_with_newline", value: "false" } - ], - eof: '' - } - - ], - tests: [ - { fragment: true, input: '', output: '{{eof}}' }, - { fragment: true, input: '
    ', output: '
    {{eof}}' }, - // { fragment: true, input: ' \n\n
    \n\n\n\n', output: '
    {{eof}}' }, - { fragment: true, input: '\n', output: '{{eof}}' } - ], - }, { - name: "Custom Extra Liners (empty)", - description: "", - matrix: [ - { - options: [ - { name: "extra_liners", value: "[]" } - ] - }, - - ], - tests: [ - { - fragment: true, - input: '

    x

    ', - output: '\n\n \n\n\n
    \n

    x

    \n
    \n\n' - } - ], - }, { - name: "Custom Extra Liners (default)", - description: "", - matrix: [ - { - options: [ - { name: "extra_liners", value: "null" } - ] - }, - - ], - tests: [ - { - fragment: true, - input: '', - output: '\n\n\n\n\n\n' - } - ], - }, { - name: "Custom Extra Liners (p, string)", - description: "", - matrix: [ - { - options: [ - { name: "extra_liners", value: "'p,/p'" } - ] - }, - - ], - tests: [ - { - fragment: true, - input: '

    x

    ', - output: '\n\n \n\n\n
    \n\n

    x\n\n

    \n
    \n\n' - } - ], - }, { - name: "Custom Extra Liners (p)", - description: "", - matrix: [ - { - options: [ - { name: "extra_liners", value: "['p', '/p']" } - ] - }, - - ], - tests: [ - { - fragment: true, - input: '

    x

    ', - output: '\n\n \n\n\n
    \n\n

    x\n\n

    \n
    \n\n' - } - ], - }, { - name: "Attribute Wrap", - description: "Wraps attributes inside of html tags", - matrix: [ - { - options: [ - { name: "wrap_attributes", value: "'force'" } - ], - eof: '\\n', - indent_attr: ' ', - over80: '\\n' - }, { - options: [ - { name: "wrap_attributes", value: "'force'" }, - { name: "wrap_line_length", value: "80" } - ], - eof: '\\n', - indent_attr: ' ', - over80: '\\n' - }, { - options: [ - { name: "wrap_attributes", value: "'force'" }, - { name: "wrap_attributes_indent_size", value: "8" }, - ], - eof: '\\n', - indent_attr: ' ', - over80: '\\n' - }, { - options: [ - { name: "wrap_attributes", value: "'auto'" }, - { name: "wrap_line_length", value: "80" } - ], - eof: ' ', - indent_attr: '', - over80: '\\n' - }, { - options: [ - { name: "wrap_attributes", value: "'auto'" }, - { name: "wrap_line_length", value: "0" } - ], - eof: ' ', - indent_attr: '', - over80: ' ' - } - ], - tests: [ - { - fragment: true, - input: '
    This is some text
    ', - output: '
    This is some text
    ' - }, - { - fragment: true, - input: '
    This is some text
    ', - output: '
    This is some text
    ' - }, - { - fragment: true, - input: '', - output: '' - } - ] - }, { - name: "Handlebars Indenting Off", - description: "Test handlebar behavior when indenting is off", - template: "^^^ $$$", - options: [ - { name: "indent_handlebars", value: "false" } - ], - tests: [ - { fragment: true, - input_: - '{{#if 0}}\n' + - '
    \n' + - '
    \n' + - '{{/if}}', - output: - '{{#if 0}}\n' + - '
    \n' + - '
    \n' + - '{{/if}}' }, - { fragment: true, - input_: - '
    \n' + - '{{#each thing}}\n' + - ' {{name}}\n' + - '{{/each}}\n' + - '
    ', - output: - '
    \n' + - ' {{#each thing}} {{name}} {{/each}}\n' + - '
    '} - - ] - }, { - name: "Handlebars Indenting On", - description: "Test handlebar formatting", - template: "^^^ $$$", - matrix: [ - { - options: [ - { name: "indent_handlebars", value: "true" } - ], - content: '{{field}}' - }, { - options: [ - { name: "indent_handlebars", value: "true" } - ], - content: '{{! comment}}' - }, { - options: [ - { name: "indent_handlebars", value: "true" } - ], - content: '{pre{{field1}} {{field2}} {{field3}}post' - } - , { - options: [ - { name: "indent_handlebars", value: "true" } - ], - content: '{{! \\n mult-line\\ncomment \\n with spacing\\n}}' - } - ], - tests: [ - { fragment: true, unchanged: '{{page-title}}' }, - { fragment: true, unchanged: '{{#if 0}}{{/if}}' }, - { fragment: true, unchanged: '{{#if 0}}^^^content$$${{/if}}' }, - { fragment: true, unchanged: '{{#if 0}}\n{{/if}}' }, - { fragment: true, - input_: '{{#if words}}{{/if}}', - output: '{{#if words}}{{/if}}' }, - { fragment: true, - input_: '{{#if words}}^^^content$$${{/if}}', - output: '{{#if words}}^^^content$$${{/if}}' }, - { fragment: true, - input_: '{{#if words}}^^^content$$${{/if}}', - output: '{{#if words}}^^^content$$${{/if}}' }, - { fragment: true, - unchanged: - '{{#if 1}}\n' + - '
    \n' + - '
    \n' + - '{{/if}}' }, - { fragment: true, - input_: - '{{#if 1}}\n' + - '
    \n' + - '
    \n' + - '{{/if}}', - output: - '{{#if 1}}\n' + - '
    \n' + - '
    \n' + - '{{/if}}' }, - { fragment: true, - unchanged: - '
    \n' + - ' {{#if 1}}\n' + - ' {{/if}}\n' + - '
    ' }, - { fragment: true, - input_: - '
    \n' + - '{{#if 1}}\n' + - '{{/if}}\n' + - '
    ', - output: - '
    \n' + - ' {{#if 1}}\n' + - ' {{/if}}\n' + - '
    ' }, - { fragment: true, - input_: - '{{#if}}\n' + - '{{#each}}\n' + - '{{#if}}\n' + - '^^^content$$$\n' + - '{{/if}}\n' + - '{{#if}}\n' + - '^^^content$$$\n' + - '{{/if}}\n' + - '{{/each}}\n' + - '{{/if}}', - output: - '{{#if}}\n' + - ' {{#each}}\n' + - ' {{#if}}\n' + - ' ^^^content$$$\n' + - ' {{/if}}\n' + - ' {{#if}}\n' + - ' ^^^content$$$\n' + - ' {{/if}}\n' + - ' {{/each}}\n' + - '{{/if}}' }, - { fragment: true, unchanged: '{{#if 1}}\n' + - '
    \n' + - '
    \n' + - '{{/if}}' }, - - // Test {{else}} aligned with {{#if}} and {{/if}} - { fragment: true, - input_: - '{{#if 1}}\n' + - ' ^^^content$$$\n' + - ' {{else}}\n' + - ' ^^^content$$$\n' + - '{{/if}}', - output: - '{{#if 1}}\n' + - ' ^^^content$$$\n' + - '{{else}}\n' + - ' ^^^content$$$\n' + - '{{/if}}' }, - { fragment: true, - input_: - '{{#if 1}}\n' + - ' {{else}}\n' + - ' {{/if}}', - output: - '{{#if 1}}\n' + - '{{else}}\n' + - '{{/if}}' }, - { fragment: true, - input_: - '{{#if thing}}\n' + - '{{#if otherthing}}\n' + - ' ^^^content$$$\n' + - ' {{else}}\n' + - '^^^content$$$\n' + - ' {{/if}}\n' + - ' {{else}}\n'+ - '^^^content$$$\n' + - '{{/if}}', - output: - '{{#if thing}}\n' + - ' {{#if otherthing}}\n' + - ' ^^^content$$$\n' + - ' {{else}}\n' + - ' ^^^content$$$\n' + - ' {{/if}}\n' + - '{{else}}\n'+ - ' ^^^content$$$\n' + - '{{/if}}' }, - // Test {{}} inside of <> tags, which should be separated by spaces - // for readability, unless they are inside a string. - { fragment: true, - input_: '', - output: '
    ' }, - { fragment: true, - input_: '^^^content$$$', - output: '
    ^^^content$$$
    ' }, - { fragment: true, - input_: '^^^content$$$', - output: '
    ^^^content$$$
    ' }, - { fragment: true, - input_: '^^^content$$$', - output: '^^^content$$$' }, - { fragment: true, - unchanged: '
    ^^^content$$$
    ' }, - { fragment: true, - unchanged: '
    ^^^content$$$
    ' }, - - // Quotes found inside of Handlebars expressions inside of quoted - // strings themselves should not be considered string delimiters. - { fragment: true, - unchanged: '
    ' }, - { fragment: true, - unchanged: '
    ' }, - { fragment: true, - unchanged: '
    ' }, - { fragment: true, - unchanged: '
    ' } - ], - }, { - name: "Unclosed html elements", - description: "Unclosed elements should not indent", - options: [], - tests: [ - { fragment: true, unchanged: '\n' }, - { fragment: true, unchanged: '
    \n
    ' }, - { fragment: true, unchanged: '\n' }, - { fragment: true, unchanged: '\n' }, - { fragment: true, unchanged: '\n' } - ] - }, { - name: "Unformatted tags", - description: "Unformatted tag behavior", - options: [], - tests: [ - { fragment: true, unchanged: '
      \n
    1. b
      c
    2. \n
    ' }, - { fragment: true, unchanged: '
      \n
    1. bc
    2. \n
    ' }, - ] - }, { - name: "Php formatting", - description: "Php () treated as comments.", - options: [], - tests: [ - { fragment: true, unchanged: '

    ' }, - { fragment: true, unchanged: - [ - '");', - '}', - '?>' - ] - }, - ] - }, { - name: "underscore.js formatting", - description: "underscore.js templates (<% ... %>) treated as comments.", - options: [], - tests: [ - { fragment: true, unchanged: - [ - '
    ', - ' ', - '
    ' - ] - }, - ] - }, { - name: "Indent with tabs", - description: "Use one tab instead of several spaces for indentation", - template: "^^^ $$$", - options: [ - { name: "indent_with_tabs", value: "true" } - ], - tests: [ - { fragment: true, - input_: - '
    \n' + - '
    \n' + - '
    \n' + - '
    ', - output: - '
    \n' + - '\t
    \n' + - '\t
    \n' + - '
    ' } - ] - }, { - name: "Indent without tabs", - description: "Use several spaces for indentation", - template: "^^^ $$$", - options: [ - { name: "indent_with_tabs", value: "false" } - ], - tests: [ - { fragment: true, - input_: - '
    \n' + - '
    \n' + - '
    \n' + - '
    ', - output: - '
    \n' + - '
    \n' + - '
    \n' + - '
    ' } - ] - }, { - name: "New Test Suite" - }], -}; diff --git a/node_modules/js-beautify/test/data/javascript.js b/node_modules/js-beautify/test/data/javascript.js deleted file mode 100644 index 4a710cb..0000000 --- a/node_modules/js-beautify/test/data/javascript.js +++ /dev/null @@ -1,1572 +0,0 @@ -exports.test_data = { - default_options: [ - { name: "indent_size", value: "4" }, - { name: "indent_char", value: "' '" }, - { name: "preserve_newlines", value: "true" }, - { name: "jslint_happy", value: "false" }, - { name: "keep_array_indentation", value: "false" }, - { name: "brace_style", value: "'collapse'" } - ], - groups: [{ - name: "Unicode Support", - description: "", - tests: [ - { - input: "var ' + unicode_char(3232) + '_' + unicode_char(3232) + ' = \"hi\";" - }, - { - input: [ - "var ' + unicode_char(228) + 'x = {", - " ' + unicode_char(228) + 'rgerlich: true", - "};"] - } - ], - }, { - name: "End With Newline", - description: "", - matrix: [ - { - options: [ - { name: "end_with_newline", value: "true" } - ], - eof: '\\n' - }, { - options: [ - { name: "end_with_newline", value: "false" } - ], - eof: '' - } - - ], - tests: [ - { fragment: true, input: '', output: '{{eof}}' }, - { fragment: true, input: ' return .5', output: ' return .5{{eof}}' }, - { fragment: true, input: ' \n\nreturn .5\n\n\n\n', output: ' return .5{{eof}}' }, - { fragment: true, input: '\n', output: '{{eof}}' } - ], - }, { - name: "Comma-first option", - description: "Put commas at the start of lines instead of the end", - matrix: [ - { - options: [ - { name: "comma_first", value: "true" } - ], - c0: '\\n, ', - c1: '\\n , ', - c2: '\\n , ', - c3: '\\n , ' - }, { - options: [ - { name: "comma_first", value: "false" } - ], - c0: ',\\n', - c1: ',\\n ', - c2: ',\\n ', - c3: ',\\n ' - } - ], - tests: [ - { input: '{a:1, b:2}', output: "{\n a: 1{{c1}}b: 2\n}" }, - { input: 'var a=1, b=c[d], e=6;', output: 'var a = 1{{c1}}b = c[d]{{c1}}e = 6;' }, - { input: "for(var a=1,b=2,c=3;d<3;d++)\ne", output: "for (var a = 1, b = 2, c = 3; d < 3; d++)\n e" }, - { input: "for(var a=1,b=2,\nc=3;d<3;d++)\ne", output: "for (var a = 1, b = 2{{c2}}c = 3; d < 3; d++)\n e" }, - { input: 'function foo() {\n return [\n "one"{{c2}}"two"\n ];\n}' }, - { input: 'a=[[1,2],[4,5],[7,8]]', output: "a = [\n [1, 2]{{c1}}[4, 5]{{c1}}[7, 8]\n]" }, - { input: 'a=[[1,2],[4,5],[7,8],]', output: "a = [\n [1, 2]{{c1}}[4, 5]{{c1}}[7, 8]{{c0}}]" }, - { input: 'a=[[1,2],[4,5],function(){},[7,8]]', - output: "a = [\n [1, 2]{{c1}}[4, 5]{{c1}}function() {}{{c1}}[7, 8]\n]" }, - { input: 'a=[[1,2],[4,5],function(){},function(){},[7,8]]', - output: "a = [\n [1, 2]{{c1}}[4, 5]{{c1}}function() {}{{c1}}function() {}{{c1}}[7, 8]\n]" }, - { input: 'a=[[1,2],[4,5],function(){},[7,8]]', - output: "a = [\n [1, 2]{{c1}}[4, 5]{{c1}}function() {}{{c1}}[7, 8]\n]" }, - { input: 'a=[b,c,function(){},function(){},d]', - output: "a = [b, c, function() {}, function() {}, d]" }, - { input: 'a=[b,c,\nfunction(){},function(){},d]', - output: "a = [b, c{{c1}}function() {}{{c1}}function() {}{{c1}}d\n]" }, - { input: 'a=[a[1],b[4],c[d[7]]]', output: "a = [a[1], b[4], c[d[7]]]" }, - { input: '[1,2,[3,4,[5,6],7],8]', output: "[1, 2, [3, 4, [5, 6], 7], 8]" }, - - { input: '[[["1","2"],["3","4"]],[["5","6","7"],["8","9","0"]],[["1","2","3"],["4","5","6","7"],["8","9","0"]]]', - output: '[\n [\n ["1", "2"]{{c2}}["3", "4"]\n ]{{c1}}[\n ["5", "6", "7"]{{c2}}["8", "9", "0"]\n ]{{c1}}[\n ["1", "2", "3"]{{c2}}["4", "5", "6", "7"]{{c2}}["8", "9", "0"]\n ]\n]' }, - - ], - }, { - name: "New Test Suite" - }, - { - name: "Async / await tests", - description: "ES7 async / await tests", - tests: [ - { input: "async function foo() {}" }, - { input: "let w = async function foo() {}" }, - { input: "async function foo() {}\nvar x = await foo();"}, - { - comment: "async function as an input to another function", - input: "wrapper(async function foo() {})"}, - { - comment: "await on inline anonymous function. should have a space after await", - input_: "async function() {\n var w = await(async function() {\n return await foo();\n })();\n}", - output: "async function() {\n var w = await (async function() {\n return await foo();\n })();\n}" - }, - { - comment: "ensure that this doesn't break anyone with the async library", - input: "async.map(function(t) {})" - } - ] - }, - { - name: "e4x - Test that e4x literals passed through when e4x-option is enabled", - description: "", - options: [ - { name: 'e4x', value: true } - ], - tests: [ - { input: 'xml=\n foox;', output: 'xml = \n foox;' }, - { unchanged: '' }, - { unchanged: '' }, - { unchanged: '' }, - { unchanged: '' }, - { unchanged: '' }, - - { - comment: 'Handles inline expressions', - input: 'xml=<{a} b="c">\n foox;', - output: 'xml = <{a} b="c">\n foox;' }, - { - input: 'xml=<{a} b="c">\n \n foox;', - output: 'xml = <{a} b="c">\n \n foox;' }, - { - comment: 'xml literals with special characters in elem names - see http://www.w3.org/TR/REC-xml/#NT-NameChar', - unchanged: 'xml = <_:.valid.xml- _:.valid.xml-="123"/>;' - }, - - { - comment: 'Handles CDATA', - input: 'xml=\n foox/]]>;', - output: 'xml = \n foox/]]>;' }, - { input: 'xml=;', output: 'xml = ;' }, - { input: 'xml=;', output: 'xml = ;' }, - - { - comment: 'JSX - working jsx from http://prettydiff.com/unit_tests/beautification_javascript_jsx.txt', - unchanged: - [ - 'var ListItem = React.createClass({', - ' render: function() {', - ' return (', - '
  • ', - ' ', - ' this.props.item.name', - ' ', - '
  • ', - ' );', - ' }', - '});' - ] - }, - { - unchanged: - [ - 'var List = React.createClass({', - ' renderList: function() {', - ' return this.props.items.map(function(item) {', - ' return ;', - ' });', - ' },', - '', - ' render: function() {', - ' return
      ', - ' this.renderList()', - '
    ', - ' }', - '});' - ] - }, - { - unchanged: - [ - 'var Mist = React.createClass({', - ' renderList: function() {', - ' return this.props.items.map(function(item) {', - ' return {item}} key={item.id} />;', - ' });', - ' }', - '});', - ] - }, - { - unchanged: - [ - '// JSX', - 'var box = ', - ' {shouldShowAnswer(user) ?', - ' no : ', - ' Text Content', - ' }', - ' ;', - 'var a = function() {', - ' return asdf;', - '};', - '', - 'var HelloMessage = React.createClass({', - ' render: function() {', - ' return
    Hello {this.props.name}
    ;', - ' }', - '});', - 'React.render(, mountNode);', - ] - }, - { - unchanged: - [ - 'var Timer = React.createClass({', - ' getInitialState: function() {', - ' return {', - ' secondsElapsed: 0', - ' };', - ' },', - ' tick: function() {', - ' this.setState({', - ' secondsElapsed: this.state.secondsElapsed + 1', - ' });', - ' },', - ' componentDidMount: function() {', - ' this.interval = setInterval(this.tick, 1000);', - ' },', - ' componentWillUnmount: function() {', - ' clearInterval(this.interval);', - ' },', - ' render: function() {', - ' return (', - '
    Seconds Elapsed: {this.state.secondsElapsed}
    ', - ' );', - ' }', - '});', - 'React.render(, mountNode);' - ] - }, - { - unchanged: - [ - 'var TodoList = React.createClass({', - ' render: function() {', - ' var createItem = function(itemText) {', - ' return
  • {itemText}
  • ;', - ' };', - ' return
      {this.props.items.map(createItem)}
    ;', - ' }', - '});' - ] - }, - { - unchanged: - [ - 'var TodoApp = React.createClass({', - ' getInitialState: function() {', - ' return {', - ' items: [],', - ' text: \\\'\\\'', - ' };', - ' },', - ' onChange: function(e) {', - ' this.setState({', - ' text: e.target.value', - ' });', - ' },', - ' handleSubmit: function(e) {', - ' e.preventDefault();', - ' var nextItems = this.state.items.concat([this.state.text]);', - ' var nextText = \\\'\\\';', - ' this.setState({', - ' items: nextItems,', - ' text: nextText', - ' });', - ' },', - ' render: function() {', - ' return (', - '
    ', - '

    TODO

    ', - ' ', - '
    ', - ' ', - ' ', - '
    ', - '
    ', - ' );', - ' }', - '});', - 'React.render(, mountNode);' - ] - }, - { - input: - [ - 'var converter = new Showdown.converter();', - 'var MarkdownEditor = React.createClass({', - ' getInitialState: function() {', - ' return {value: \\\'Type some *markdown* here!\\\'};', - ' },', - ' handleChange: function() {', - ' this.setState({value: this.refs.textarea.getDOMNode().value});', - ' },', - ' render: function() {', - ' return (', - '
    ', - '

    Input

    ', - ' ', - '

    Output

    ', - ' ', - '
    ', - ' );', - ' }', - '});', - 'React.render(, mountNode);' - - ], - output: - [ - 'var converter = new Showdown.converter();', - 'var MarkdownEditor = React.createClass({', - ' getInitialState: function() {', - ' return {', - ' value: \\\'Type some *markdown* here!\\\'', - ' };', - ' },', - ' handleChange: function() {', - ' this.setState({', - ' value: this.refs.textarea.getDOMNode().value', - ' });', - ' },', - ' render: function() {', - ' return (', - '
    ', - '

    Input

    ', - ' ', - '

    Output

    ', - ' ', - '
    ', - ' );', - ' }', - '});', - 'React.render(, mountNode);' - ] - }, - { - comment: 'JSX - Not quite correct jsx formatting that still works', - input: - [ - 'var content = (', - ' ', - ' );', - 'var qwer = A dropdown list Do Something Do Something Fun! Do Something Else ;', - 'render(dropdown);', - ], - output: - [ - 'var content = (', - ' ', - ');', - 'var qwer = A dropdown list Do Something Do Something Fun! Do Something Else ;', - 'render(dropdown);', - ] - }, - { - comment: [ - "Handles messed up tags, as long as it isn't the same name", - "as the root tag. Also handles tags of same name as root tag", - "as long as nesting matches." - ], - input_: 'xml=;', - output: 'xml = ;' }, - - { - comment: [ - "If xml is not terminated, the remainder of the file is treated", - "as part of the xml-literal (passed through unaltered)" - ], - fragment: true, - input_: 'xml=\nc\nc', - ' c', - '

    ', - ' );', - ' }', - '});' - ] - }, - { - unchanged: [ - 'let a = React.createClass({', - ' render() {', - ' return (', - '

    ', - ' c', - '

    ', - ' );', - ' }', - '});' - ] - }, - { - unchanged: [ - 'let a = React.createClass({', - ' render() {', - ' return (', - '

    ', - ' c', - '

    ', - ' );', - ' }', - '});' - ] - }, - { - unchanged: [ - 'let a = React.createClass({', - ' render() {', - ' return (', - ' <{e} className = {d}>', - ' c', - ' ', - ' );', - ' }', - '});' - ] - } - ] - }, - { - name: "e4x disabled", - description: "", - options: [ - { name: 'e4x', value: false } - ], - tests: [ - { - input_: 'xml=
    \n foox;', - output: 'xml = < a b = "c" > < d / > < e >\n foo < /e>x ;' - } - ] - }, - { - name: "Multiple braces", - description: "", - template: "^^^ $$$", - options: [], - tests: [ - { input: '{{}/z/}', output: '{\n {}\n /z/\n}' } - ] - }, - { - name: "Beautify preserve formatting", - description: "Allow beautifier to preserve sections", - tests: [ - { unchanged: "/* beautify preserve:start */\n/* beautify preserve:end */" }, - { unchanged: "/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */" }, - { unchanged: "var a = 1;\n/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */" }, - { unchanged: "/* beautify preserve:start */ {asdklgh;y;;{}dd2d}/* beautify preserve:end */" }, - { - input_: "var a = 1;\n/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */", - output: "var a = 1;\n/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */" - }, - { - input_: "var a = 1;\n /* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */", - output: "var a = 1;\n/* beautify preserve:start */\n var a = 1;\n/* beautify preserve:end */" - }, - { - unchanged: [ - 'var a = {', - ' /* beautify preserve:start */', - ' one : 1', - ' two : 2,', - ' three : 3,', - ' ten : 10', - ' /* beautify preserve:end */', - '};' - ] - }, - { - input: [ - 'var a = {', - '/* beautify preserve:start */', - ' one : 1,', - ' two : 2,', - ' three : 3,', - ' ten : 10', - '/* beautify preserve:end */', - '};' - ], - output: [ - 'var a = {', - ' /* beautify preserve:start */', - ' one : 1,', - ' two : 2,', - ' three : 3,', - ' ten : 10', - '/* beautify preserve:end */', - '};' - ] - }, - { - comment: 'one space before and after required, only single spaces inside.', - input: [ - 'var a = {', - '/* beautify preserve:start */', - ' one : 1,', - ' two : 2,', - ' three : 3,', - ' ten : 10', - '};' - ], - output: [ - 'var a = {', - ' /* beautify preserve:start */', - ' one: 1,', - ' two: 2,', - ' three: 3,', - ' ten: 10', - '};' - ] - }, - { - input: [ - 'var a = {', - '/*beautify preserve:start*/', - ' one : 1,', - ' two : 2,', - ' three : 3,', - ' ten : 10', - '};' - ], - output: [ - 'var a = {', - ' /*beautify preserve:start*/', - ' one: 1,', - ' two: 2,', - ' three: 3,', - ' ten: 10', - '};' - ] - }, - { - input: [ - 'var a = {', - '/*beautify preserve:start*/', - ' one : 1,', - ' two : 2,', - ' three : 3,', - ' ten : 10', - '};' - ], - output: [ - 'var a = {', - ' /*beautify preserve:start*/', - ' one: 1,', - ' two: 2,', - ' three: 3,', - ' ten: 10', - '};' - ] - }, - - { comment: 'Directive: ignore', - unchanged: "/* beautify ignore:start */\n/* beautify ignore:end */" }, - { unchanged: "/* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */" }, - { unchanged: "var a = 1;\n/* beautify ignore:start */\n var a = 1;\n/* beautify ignore:end */" }, - { unchanged: "/* beautify ignore:start */ {asdklgh;y;+++;dd2d}/* beautify ignore:end */" }, - { - input_: "var a = 1;\n/* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */", - output: "var a = 1;\n/* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */" - }, - { - input_: "var a = 1;\n /* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */", - output: "var a = 1;\n/* beautify ignore:start */\n var a,,,{ 1;\n/* beautify ignore:end */" - }, - { - unchanged: [ - 'var a = {', - ' /* beautify ignore:start */', - ' one : 1', - ' two : 2,', - ' three : {', - ' ten : 10', - ' /* beautify ignore:end */', - '};' - ] - }, - { - input: [ - 'var a = {', - '/* beautify ignore:start */', - ' one : 1', - ' two : 2,', - ' three : {', - ' ten : 10', - '/* beautify ignore:end */', - '};' - ], - output: [ - 'var a = {', - ' /* beautify ignore:start */', - ' one : 1', - ' two : 2,', - ' three : {', - ' ten : 10', - '/* beautify ignore:end */', - '};' - ] - }, - { - comment: 'Directives - multiple and interacting', - input: [ - 'var a = {', - '/* beautify preserve:start */', - '/* beautify preserve:start */', - ' one : 1,', - ' /* beautify preserve:end */', - ' two : 2,', - ' three : 3,', - '/* beautify preserve:start */', - ' ten : 10', - '/* beautify preserve:end */', - '};' - ], - output: [ - 'var a = {', - ' /* beautify preserve:start */', - '/* beautify preserve:start */', - ' one : 1,', - ' /* beautify preserve:end */', - ' two: 2,', - ' three: 3,', - ' /* beautify preserve:start */', - ' ten : 10', - '/* beautify preserve:end */', - '};' - ] - }, - { - input: [ - 'var a = {', - '/* beautify ignore:start */', - ' one : 1', - ' /* beautify ignore:end */', - ' two : 2,', - '/* beautify ignore:start */', - ' three : {', - ' ten : 10', - '/* beautify ignore:end */', - '};' - ], - output: [ - 'var a = {', - ' /* beautify ignore:start */', - ' one : 1', - ' /* beautify ignore:end */', - ' two: 2,', - ' /* beautify ignore:start */', - ' three : {', - ' ten : 10', - '/* beautify ignore:end */', - '};' - ] - }, - { - comment: 'Starts can occur together, ignore:end must occur alone.', - input: [ - 'var a = {', - '/* beautify ignore:start */', - ' one : 1', - ' NOTE: ignore end block does not support starting other directives', - ' This does not match the ending the ignore...', - ' /* beautify ignore:end preserve:start */', - ' two : 2,', - '/* beautify ignore:start */', - ' three : {', - ' ten : 10', - ' ==The next comment ends the starting ignore==', - '/* beautify ignore:end */', - '};' - ], - output: [ - 'var a = {', - ' /* beautify ignore:start */', - ' one : 1', - ' NOTE: ignore end block does not support starting other directives', - ' This does not match the ending the ignore...', - ' /* beautify ignore:end preserve:start */', - ' two : 2,', - '/* beautify ignore:start */', - ' three : {', - ' ten : 10', - ' ==The next comment ends the starting ignore==', - '/* beautify ignore:end */', - '};' - ] - }, - { - input: [ - 'var a = {', - '/* beautify ignore:start preserve:start */', - ' one : {', - ' /* beautify ignore:end */', - ' two : 2,', - ' /* beautify ignore:start */', - ' three : {', - '/* beautify ignore:end */', - ' ten : 10', - ' // This is all preserved', - '};' - ], - output: [ - 'var a = {', - ' /* beautify ignore:start preserve:start */', - ' one : {', - ' /* beautify ignore:end */', - ' two : 2,', - ' /* beautify ignore:start */', - ' three : {', - '/* beautify ignore:end */', - ' ten : 10', - ' // This is all preserved', - '};' - ] - }, - { - input: [ - 'var a = {', - '/* beautify ignore:start preserve:start */', - ' one : {', - ' /* beautify ignore:end */', - ' two : 2,', - ' /* beautify ignore:start */', - ' three : {', - '/* beautify ignore:end */', - ' ten : 10,', - '/* beautify preserve:end */', - ' eleven: 11', - '};' - ], - output: [ - 'var a = {', - ' /* beautify ignore:start preserve:start */', - ' one : {', - ' /* beautify ignore:end */', - ' two : 2,', - ' /* beautify ignore:start */', - ' three : {', - '/* beautify ignore:end */', - ' ten : 10,', - '/* beautify preserve:end */', - ' eleven: 11', - '};' - ] - }, - ] - }, - { - name: "Template Formatting", - description: "Php () and underscore.js templating treated as strings.", - options: [], - tests: [ - { unchanged: '' }, - { unchanged: 'a = ;' }, - { unchanged: - [ - '");', - '}', - '?>' - ] - }, - { unchanged: 'a = <%= external() %>;' } - ] - }, - { - name: "jslint and space after anon function", - description: "jslint_happy and space_after_anon_function tests", - matrix: [ - { - options: [ - { name: "jslint_happy", value: "true" }, - { name: "space_after_anon_function", value: "true" } - ], - f: ' ', - c: '' - }, { - options: [ - { name: "jslint_happy", value: "true" }, - { name: "space_after_anon_function", value: "false" } - ], - f: ' ', - c: '' - }, { - options: [ - { name: "jslint_happy", value: "false" }, - { name: "space_after_anon_function", value: "true" } - ], - f: ' ', - c: ' ' - }, { - options: [ - { name: "jslint_happy", value: "false" }, - { name: "space_after_anon_function", value: "false" } - ], - f: '', - c: ' ' - } - - - ], - tests: [ - { input_: 'a=typeof(x)', - output: 'a = typeof{{f}}(x)' }, - { input_: 'x();\n\nfunction(){}', - output: 'x();\n\nfunction{{f}}() {}' }, - { input_: 'function () {\n var a, b, c, d, e = [],\n f;\n}', - output: 'function{{f}}() {\n var a, b, c, d, e = [],\n f;\n}' }, - - { input_: 'switch(x) {case 0: case 1: a(); break; default: break}', - output: 'switch (x) {\n{{c}}case 0:\n{{c}}case 1:\n{{c}} a();\n{{c}} break;\n{{c}}default:\n{{c}} break\n}' }, - { input: 'switch(x){case -1:break;case !y:break;}', - output: 'switch (x) {\n{{c}}case -1:\n{{c}} break;\n{{c}}case !y:\n{{c}} break;\n}' }, - { comment: 'typical greasemonkey start', - fragment: true, - unchanged: '// comment 2\n(function{{f}}()' - }, - - { - input_: 'var a2, b2, c2, d2 = 0, c = function() {}, d = \\\'\\\';', - output: 'var a2, b2, c2, d2 = 0,\n c = function{{f}}() {},\n d = \\\'\\\';' - }, - { - input_: 'var a2, b2, c2, d2 = 0, c = function() {},\nd = \\\'\\\';', - output: 'var a2, b2, c2, d2 = 0,\n c = function{{f}}() {},\n d = \\\'\\\';' - }, - { - input_: 'var o2=$.extend(a);function(){alert(x);}', - output: 'var o2 = $.extend(a);\n\nfunction{{f}}() {\n alert(x);\n}' - }, - { input: 'function*() {\n yield 1;\n}', output: 'function*{{f}}() {\n yield 1;\n}'}, - { unchanged: 'function* x() {\n yield 1;\n}' }, - ] - }, { - name: "Regression tests", - description: "Ensure specific bugs do not recur", - options: [], - tests: [ - { - comment: "Issue 241", - unchanged: [ - 'obj', - ' .last({', - ' foo: 1,', - ' bar: 2', - ' });', - 'var test = 1;' ] - }, - { - unchanged: [ - 'obj', - ' .last(a, function() {', - ' var test;', - ' });', - 'var test = 1;' ] - }, - { - unchanged: [ - 'obj.first()', - ' .second()', - ' .last(function(err, response) {', - ' console.log(err);', - ' });' ] - }, - { - comment: "Issue 268 and 275", - unchanged: [ - 'obj.last(a, function() {', - ' var test;', - '});', - 'var test = 1;' ] - }, - { - unchanged: [ - 'obj.last(a,', - ' function() {', - ' var test;', - ' });', - 'var test = 1;' ] - }, - { - input: '(function() {if (!window.FOO) window.FOO || (window.FOO = function() {var b = {bar: "zort"};});})();', - output: [ - '(function() {', - ' if (!window.FOO) window.FOO || (window.FOO = function() {', - ' var b = {', - ' bar: "zort"', - ' };', - ' });', - '})();' ] - }, - { - comment: "Issue 281", - unchanged: [ - 'define(["dojo/_base/declare", "my/Employee", "dijit/form/Button",', - ' "dojo/_base/lang", "dojo/Deferred"', - '], function(declare, Employee, Button, lang, Deferred) {', - ' return declare(Employee, {', - ' constructor: function() {', - ' new Button({', - ' onClick: lang.hitch(this, function() {', - ' new Deferred().then(lang.hitch(this, function() {', - ' this.salary * 0.25;', - ' }));', - ' })', - ' });', - ' }', - ' });', - '});' ] - }, - { - unchanged: [ - 'define(["dojo/_base/declare", "my/Employee", "dijit/form/Button",', - ' "dojo/_base/lang", "dojo/Deferred"', - ' ],', - ' function(declare, Employee, Button, lang, Deferred) {', - ' return declare(Employee, {', - ' constructor: function() {', - ' new Button({', - ' onClick: lang.hitch(this, function() {', - ' new Deferred().then(lang.hitch(this, function() {', - ' this.salary * 0.25;', - ' }));', - ' })', - ' });', - ' }', - ' });', - ' });' ] - }, - { - comment: "Issue 459", - unchanged: [ - '(function() {', - ' return {', - ' foo: function() {', - ' return "bar";', - ' },', - ' bar: ["bar"]', - ' };', - '}());' ] - }, - { - comment: "Issue 505 - strings should end at newline unless continued by backslash", - unchanged: [ - 'var name = "a;', - 'name = "b";' ] - }, - { - unchanged: [ - 'var name = "a;\\\\', - ' name = b";' ] - }, - { - comment: "Issue 514 - some operators require spaces to distinguish them", - unchanged: 'var c = "_ACTION_TO_NATIVEAPI_" + ++g++ + +new Date;' - }, - { - unchanged: 'var c = "_ACTION_TO_NATIVEAPI_" - --g-- - -new Date;' - }, - { - comment: "Issue 440 - reserved words can be used as object property names", - unchanged: [ - 'a = {', - ' function: {},', - ' "function": {},', - ' throw: {},', - ' "throw": {},', - ' var: {},', - ' "var": {},', - ' set: {},', - ' "set": {},', - ' get: {},', - ' "get": {},', - ' if: {},', - ' "if": {},', - ' then: {},', - ' "then": {},', - ' else: {},', - ' "else": {},', - ' yay: {}', - '};' ] - }, - { - comment: "Issue 331 - if-else with braces edge case", - input: 'if(x){a();}else{b();}if(y){c();}', - output: [ - 'if (x) {', - ' a();', - '} else {', - ' b();', - '}', - 'if (y) {', - ' c();', - '}' ] - }, - { - comment: "Issue 485 - ensure function declarations behave the same in arrays as elsewhere", - unchanged: [ - 'var v = ["a",', - ' function() {', - ' return;', - ' }, {', - ' id: 1', - ' }', - '];' ] - }, - { - unchanged: [ - 'var v = ["a", function() {', - ' return;', - '}, {', - ' id: 1', - '}];' ] - }, - { - comment: "Issue 382 - initial totally cursory support for es6 module export", - unchanged: [ - 'module "Even" {', - ' import odd from "Odd";', - ' export function sum(x, y) {', - ' return x + y;', - ' }', - ' export var pi = 3.141593;', - ' export default moduleName;', - '}' ] - }, - { - unchanged: [ - 'module "Even" {', - ' export default function div(x, y) {}', - '}' ] - }, - { - comment: "Issue 508", - unchanged: 'set["name"]' - }, - { - unchanged: 'get["name"]' - }, - { - fragmeent: true, - unchanged: [ - 'a = {', - ' set b(x) {},', - ' c: 1,', - ' d: function() {}', - '};' ] - }, - { - fragmeent: true, - unchanged: [ - 'a = {', - ' get b() {', - ' retun 0;', - ' },', - ' c: 1,', - ' d: function() {}', - '};' ] - }, - { - comment: "Issue 298 - do not under indent if/while/for condtionals experesions", - unchanged: [ - '\\\'use strict\\\';', - 'if ([].some(function() {', - ' return false;', - ' })) {', - ' console.log("hello");', - '}' ] - }, - { - comment: "Issue 298 - do not under indent if/while/for condtionals experesions", - unchanged: [ - '\\\'use strict\\\';', - 'if ([].some(function() {', - ' return false;', - ' })) {', - ' console.log("hello");', - '}' ] - }, - { - comment: "Issue 552 - Typescript? Okay... we didn't break it before, so try not to break it now.", - unchanged: [ - 'class Test {', - ' blah: string[];', - ' foo(): number {', - ' return 0;', - ' }', - ' bar(): number {', - ' return 0;', - ' }', - '}' ] - }, - { - unchanged: [ - 'interface Test {', - ' blah: string[];', - ' foo(): number {', - ' return 0;', - ' }', - ' bar(): number {', - ' return 0;', - ' }', - '}' ] - }, - { - comment: "Issue 583 - Functions with comments after them should still indent correctly.", - unchanged: [ - 'function exit(code) {', - ' setTimeout(function() {', - ' phantom.exit(code);', - ' }, 0);', - ' phantom.onError = function() {};', - '}', - '// Comment' ] - }, - - ] - }, - - // ======================================================= - // New tests groups should be added above this line. - // Everything below is a work in progress - converting - // old test to generated form. - // ======================================================= - { - name: "Old tests", - description: "Largely unorganized pile of tests", - options: [], - tests: [ - { unchanged: '' }, - { fragment: true, unchanged: ' return .5'}, - { fragment: true, unchanged: ' return .5;\n a();' }, - { fragment: true, unchanged: ' return .5;\n a();' }, - { fragment: true, unchanged: ' return .5;\n a();' }, - { fragment: true, unchanged: ' < div'}, - { input: 'a = 1', output: 'a = 1' }, - { input: 'a=1', output: 'a = 1' }, - { unchanged: '(3) / 2' }, - { input: '["a", "b"].join("")' }, - { unchanged: 'a();\n\nb();' }, - { input: 'var a = 1 var b = 2', output: 'var a = 1\nvar b = 2' }, - { input: 'var a=1, b=c[d], e=6;', output: 'var a = 1,\n b = c[d],\n e = 6;' }, - { unchanged: 'var a,\n b,\n c;' }, - { input: 'let a = 1 let b = 2', output: 'let a = 1\nlet b = 2' }, - { input: 'let a=1, b=c[d], e=6;', output: 'let a = 1,\n b = c[d],\n e = 6;' }, - { unchanged: 'let a,\n b,\n c;' }, - { input: 'const a = 1 const b = 2', output: 'const a = 1\nconst b = 2' }, - { input: 'const a=1, b=c[d], e=6;', output: 'const a = 1,\n b = c[d],\n e = 6;' }, - { unchanged: 'const a,\n b,\n c;' }, - { unchanged: 'a = " 12345 "' }, - { unchanged: "a = \\' 12345 \\'" }, - { unchanged: 'if (a == 1) b = 2;' }, - { input: 'if(1){2}else{3}', output: 'if (1) {\n 2\n} else {\n 3\n}' }, - { input: 'if(1||2);', output: 'if (1 || 2);' }, - { input: '(a==1)||(b==2)', output: '(a == 1) || (b == 2)' }, - { input: 'var a = 1 if (2) 3;', output: 'var a = 1\nif (2) 3;' }, - { unchanged: 'a = a + 1' }, - { unchanged: 'a = a == 1' }, - { input: '/12345[^678]*9+/.match(a)' }, - { unchanged: 'a /= 5' }, - { unchanged: 'a = 0.5 * 3' }, - { unchanged: 'a *= 10.55' }, - { unchanged: 'a < .5' }, - { unchanged: 'a <= .5' }, - { input: 'a<.5', output: 'a < .5' }, - { input: 'a<=.5', output: 'a <= .5' }, - { unchanged: 'a = 0xff;' }, - { input: 'a=0xff+4', output: 'a = 0xff + 4' }, - { unchanged: 'a = [1, 2, 3, 4]' }, - { input: 'F*(g/=f)*g+b', output: 'F * (g /= f) * g + b' }, - { input: 'a.b({c:d})', output: 'a.b({\n c: d\n})' }, - { input: 'a.b\n(\n{\nc:\nd\n}\n)', output: 'a.b({\n c: d\n})' }, - { input: 'a.b({c:"d"})', output: 'a.b({\n c: "d"\n})' }, - { input: 'a.b\n(\n{\nc:\n"d"\n}\n)', output: 'a.b({\n c: "d"\n})' }, - { input: 'a=!b', output: 'a = !b' }, - { input: 'a=!!b', output: 'a = !!b' }, - { input: 'a?b:c', output: 'a ? b : c' }, - { input: 'a?1:2', output: 'a ? 1 : 2' }, - { input: 'a?(b):c', output: 'a ? (b) : c' }, - { input: 'x={a:1,b:w=="foo"?x:y,c:z}', output: 'x = {\n a: 1,\n b: w == "foo" ? x : y,\n c: z\n}' }, - { input: 'x=a?b?c?d:e:f:g;', output: 'x = a ? b ? c ? d : e : f : g;' }, - { input: 'x=a?b?c?d:{e1:1,e2:2}:f:g;', output: 'x = a ? b ? c ? d : {\n e1: 1,\n e2: 2\n} : f : g;' }, - { input: 'function void(void) {}' }, - { input: 'if(!a)foo();', output: 'if (!a) foo();' }, - { input: 'a=~a', output: 'a = ~a' }, - { input: 'a;/*comment*/b;', output: "a; /*comment*/\nb;" }, - { input: 'a;/* comment */b;', output: "a; /* comment */\nb;" }, - { fragment: true, input: 'a;/*\ncomment\n*/b;', output: "a;\n/*\ncomment\n*/\nb;", comment: "simple comments don't get touched at all" }, - { input: 'a;/**\n* javadoc\n*/b;', output: "a;\n/**\n * javadoc\n */\nb;" }, - { fragment: true, input: 'a;/**\n\nno javadoc\n*/b;', output: "a;\n/**\n\nno javadoc\n*/\nb;" }, - { input: 'a;/*\n* javadoc\n*/b;', output: "a;\n/*\n * javadoc\n */\nb;", comment: 'comment blocks detected and reindented even w/o javadoc starter' }, - { input: 'if(a)break;', output: "if (a) break;" }, - { input: 'if(a){break}', output: "if (a) {\n break\n}" }, - { input: 'if((a))foo();', output: 'if ((a)) foo();' }, - { input: 'for(var i=0;;) a', output: 'for (var i = 0;;) a' }, - { input: 'for(var i=0;;)\na', output: 'for (var i = 0;;)\n a' }, - { unchanged: 'a++;' }, - { input: 'for(;;i++)a()', output: 'for (;; i++) a()' }, - { input: 'for(;;i++)\na()', output: 'for (;; i++)\n a()' }, - { input: 'for(;;++i)a', output: 'for (;; ++i) a' }, - { input: 'return(1)', output: 'return (1)' }, - { input: 'try{a();}catch(b){c();}finally{d();}', output: "try {\n a();\n} catch (b) {\n c();\n} finally {\n d();\n}" }, - { input: '(xx)()', comment: ' magic function call'}, - { input: 'a[1]()', comment: 'another magic function call'}, - { input: 'if(a){b();}else if(c) foo();', output: "if (a) {\n b();\n} else if (c) foo();" }, - { input: 'switch(x) {case 0: case 1: a(); break; default: break}', output: "switch (x) {\n case 0:\n case 1:\n a();\n break;\n default:\n break\n}" }, - { input: 'switch(x){case -1:break;case !y:break;}', output: 'switch (x) {\n case -1:\n break;\n case !y:\n break;\n}' }, - { input: 'a !== b' }, - { input: 'if (a) b(); else c();', output: "if (a) b();\nelse c();" }, - { input: "// comment\n(function something() {})", comment: 'typical greasemonkey start' }, - { input: "{\n\n x();\n\n}", comment: 'duplicating newlines' }, - { input: 'if (a in b) foo();' }, - { input: 'if(X)if(Y)a();else b();else c();', - output: "if (X)\n if (Y) a();\n else b();\nelse c();" }, - { input: 'if (foo) bar();\nelse break' }, - { unchanged: 'var a, b;' }, - { unchanged: 'var a = new function();' }, - { fragment: true, unchanged: 'new function' }, - { unchanged: 'var a, b' }, - { input: '{a:1, b:2}', output: "{\n a: 1,\n b: 2\n}" }, - { input: 'a={1:[-1],2:[+1]}', output: 'a = {\n 1: [-1],\n 2: [+1]\n}' }, - { input: "var l = {\\'a\\':\\'1\\', \\'b\\':\\'2\\'}", output: "var l = {\n \\'a\\': \\'1\\',\n \\'b\\': \\'2\\'\n}" }, - { input: 'if (template.user[n] in bk) foo();' }, - { unchanged: 'return 45' }, - { unchanged: 'return this.prevObject ||\n\n this.constructor(null);' }, - { unchanged: 'If[1]' }, - { unchanged: 'Then[1]' }, - { unchanged: 'a = 1e10' }, - { unchanged: 'a = 1.3e10' }, - { unchanged: 'a = 1.3e-10' }, - { unchanged: 'a = -1.3e-10' }, - { unchanged: 'a = 1e-10' }, - { unchanged: 'a = e - 10' }, - { input: 'a = 11-10', output: "a = 11 - 10" }, - { input: "a = 1;// comment", output: "a = 1; // comment" }, - { unchanged: "a = 1; // comment" }, - { input: "a = 1;\n // comment", output: "a = 1;\n// comment" }, - { unchanged: 'a = [-1, -1, -1]' }, - - - { comment: 'The exact formatting these should have is open for discussion, but they are at least reasonable', - unchanged: 'a = [ // comment\n -1, -1, -1\n]' }, - { unchanged: 'var a = [ // comment\n -1, -1, -1\n]' }, - { unchanged: 'a = [ // comment\n -1, // comment\n -1, -1\n]' }, - { unchanged: 'var a = [ // comment\n -1, // comment\n -1, -1\n]' }, - - { input: 'o = [{a:b},{c:d}]', output: 'o = [{\n a: b\n}, {\n c: d\n}]' }, - - { comment: 'was: extra space appended', - input: "if (a) {\n do();\n}" }, - - { comment: 'if/else statement with empty body', - input: "if (a) {\n// comment\n}else{\n// comment\n}", output: "if (a) {\n // comment\n} else {\n // comment\n}" }, - { comment: 'multiple comments indentation', input: "if (a) {\n// comment\n// comment\n}", output: "if (a) {\n // comment\n // comment\n}" }, - { input: "if (a) b() else c();", output: "if (a) b()\nelse c();" }, - { input: "if (a) b() else if c() d();", output: "if (a) b()\nelse if c() d();" }, - - { unchanged: "{}" }, - { unchanged: "{\n\n}" }, - { input: "do { a(); } while ( 1 );", output: "do {\n a();\n} while (1);" }, - { unchanged: "do {} while (1);" }, - { input: "do {\n} while (1);", output: "do {} while (1);" }, - { unchanged: "do {\n\n} while (1);" }, - { unchanged: "var a = x(a, b, c)" }, - { input: "delete x if (a) b();", output: "delete x\nif (a) b();" }, - { input: "delete x[x] if (a) b();", output: "delete x[x]\nif (a) b();" }, - { input: "for(var a=1,b=2)d", output: "for (var a = 1, b = 2) d" }, - { input: "for(var a=1,b=2,c=3) d", output: "for (var a = 1, b = 2, c = 3) d" }, - { input: "for(var a=1,b=2,c=3;d<3;d++)\ne", output: "for (var a = 1, b = 2, c = 3; d < 3; d++)\n e" }, - { input: "function x(){(a||b).c()}", output: "function x() {\n (a || b).c()\n}" }, - { input: "function x(){return - 1}", output: "function x() {\n return -1\n}" }, - { input: "function x(){return ! a}", output: "function x() {\n return !a\n}" }, - { unchanged: "x => x" }, - { unchanged: "(x) => x" }, - { input: "x => { x }", output: "x => {\n x\n}" }, - { input: "(x) => { x }", output: "(x) => {\n x\n}" }, - - { comment: 'a common snippet in jQuery plugins', - input_: "settings = $.extend({},defaults,settings);", - output: "settings = $.extend({}, defaults, settings);" }, - - // reserved words used as property names - { unchanged: "$http().then().finally().default()" }, - { input: "$http()\n.then()\n.finally()\n.default()", output: "$http()\n .then()\n .finally()\n .default()" }, - { unchanged: "$http().when.in.new.catch().throw()" }, - { input: "$http()\n.when\n.in\n.new\n.catch()\n.throw()", output: "$http()\n .when\n .in\n .new\n .catch()\n .throw()" }, - - { input: '{xxx;}()', output: '{\n xxx;\n}()' }, - - { unchanged: "a = \\'a\\'\nb = \\'b\\'" }, - { unchanged: "a = /reg/exp" }, - { unchanged: "a = /reg/" }, - { unchanged: '/abc/.test()' }, - { unchanged: '/abc/i.test()' }, - { input: "{/abc/i.test()}", output: "{\n /abc/i.test()\n}" }, - { input: 'var x=(a)/a;', output: 'var x = (a) / a;' }, - - { unchanged: 'x != -1' }, - - { input: 'for (; s-->0;)t', output: 'for (; s-- > 0;) t' }, - { input: 'for (; s++>0;)u', output: 'for (; s++ > 0;) u' }, - { input: 'a = s++>s--;', output: 'a = s++ > s--;' }, - { input: 'a = s++>--s;', output: 'a = s++ > --s;' }, - - { input: '{x=#1=[]}', output: '{\n x = #1=[]\n}' }, - { input: '{a:#1={}}', output: '{\n a: #1={}\n}' }, - { input: '{a:#1#}', output: '{\n a: #1#\n}' }, - - { fragment: true, unchanged: '"incomplete-string' }, - { fragment: true, unchanged: "\\'incomplete-string" }, - { fragment: true, unchanged: '/incomplete-regex' }, - { fragment: true, unchanged: '`incomplete-template-string' }, - - { fragment: true, input: '{a:1},{a:2}', output: '{\n a: 1\n}, {\n a: 2\n}' }, - { fragment: true, input: 'var ary=[{a:1}, {a:2}];', output: 'var ary = [{\n a: 1\n}, {\n a: 2\n}];' }, - - { comment: 'incomplete', fragment: true, input: '{a:#1', output: '{\n a: #1' }, - { comment: 'incomplete', fragment: true, input: '{a:#', output: '{\n a: #' }, - - { comment: 'incomplete', fragment: true, input: '}}}', output: '}\n}\n}' }, - - { fragment: true, unchanged: '' }, - - { comment: 'incomplete regexp', fragment: true, input: 'a=/regexp', output: 'a = /regexp' }, - - { input: '{a:#1=[],b:#1#,c:#999999#}', output: '{\n a: #1=[],\n b: #1#,\n c: #999999#\n}' }, - - { unchanged: "a = 1e+2" }, - { unchanged: "a = 1e-2" }, - { input: "do{x()}while(a>1)", output: "do {\n x()\n} while (a > 1)" }, - - { input: "x(); /reg/exp.match(something)", output: "x();\n/reg/exp.match(something)" }, - - { fragment: true, input: "something();(", output: "something();\n(" }, - { fragment: true, input: "#!she/bangs, she bangs\nf=1", output: "#!she/bangs, she bangs\n\nf = 1" }, - { fragment: true, input: "#!she/bangs, she bangs\n\nf=1", output: "#!she/bangs, she bangs\n\nf = 1" }, - { fragment: true, unchanged: "#!she/bangs, she bangs\n\n/* comment */" }, - { fragment: true, unchanged: "#!she/bangs, she bangs\n\n\n/* comment */" }, - { fragment: true, unchanged: "#" }, - { fragment: true, unchanged: "#!" }, - - { input: "function namespace::something()" }, - - { fragment: true, unchanged: "" }, - { fragment: true, input: "", output: "" }, - - { input: '{foo();--bar;}', output: '{\n foo();\n --bar;\n}' }, - { input: '{foo();++bar;}', output: '{\n foo();\n ++bar;\n}' }, - { input: '{--bar;}', output: '{\n --bar;\n}' }, - { input: '{++bar;}', output: '{\n ++bar;\n}' }, - { input: 'if(true)++a;', output: 'if (true) ++a;' }, - { input: 'if(true)\n++a;', output: 'if (true)\n ++a;' }, - { input: 'if(true)--a;', output: 'if (true) --a;' }, - { input: 'if(true)\n--a;', output: 'if (true)\n --a;' }, - { unchanged: 'elem[array]++;' }, - { unchanged: 'elem++ * elem[array]++;' }, - { unchanged: 'elem-- * -elem[array]++;' }, - { unchanged: 'elem-- + elem[array]++;' }, - { unchanged: 'elem-- - elem[array]++;' }, - { unchanged: 'elem-- - -elem[array]++;' }, - { unchanged: 'elem-- - +elem[array]++;' }, - - - { comment: 'Handling of newlines around unary ++ and -- operators', - input: '{foo\n++bar;}', output: '{\n foo\n ++bar;\n}' }, - { input: '{foo++\nbar;}', output: '{\n foo++\n bar;\n}' }, - - { comment: 'This is invalid, but harder to guard against. Issue #203.', - input: '{foo\n++\nbar;}', output: '{\n foo\n ++\n bar;\n}' }, - - { comment: 'regexps', - input: 'a(/abc\\\\/\\\\/def/);b()', output: "a(/abc\\\\/\\\\/def/);\nb()" }, - { input: 'a(/a[b\\\\[\\\\]c]d/);b()', output: "a(/a[b\\\\[\\\\]c]d/);\nb()" }, - { comment: 'incomplete char class', fragment: true, unchanged: 'a(/a[b\\\\[' }, - - { comment: 'allow unescaped / in char classes', - input: 'a(/[a/b]/);b()', output: "a(/[a/b]/);\nb()" }, - { unchanged: 'typeof /foo\\\\//;' }, - { unchanged: 'yield /foo\\\\//;' }, - { unchanged: 'throw /foo\\\\//;' }, - { unchanged: 'do /foo\\\\//;' }, - { unchanged: 'return /foo\\\\//;' }, - { unchanged: 'switch (a) {\n case /foo\\\\//:\n b\n}' }, - { unchanged: 'if (a) /foo\\\\//\nelse /foo\\\\//;' }, - - { unchanged: 'if (foo) /regex/.test();' }, - { unchanged: "for (index in [1, 2, 3]) /^test$/i.test(s)"}, - { unchanged: 'result = yield pgClient.query_(queryString);' }, - - { unchanged: 'function foo() {\n return [\n "one",\n "two"\n ];\n}' }, - { input: 'a=[[1,2],[4,5],[7,8]]', output: "a = [\n [1, 2],\n [4, 5],\n [7, 8]\n]" }, - { input: 'a=[[1,2],[4,5],function(){},[7,8]]', - output: "a = [\n [1, 2],\n [4, 5],\n function() {},\n [7, 8]\n]" }, - { input: 'a=[[1,2],[4,5],function(){},function(){},[7,8]]', - output: "a = [\n [1, 2],\n [4, 5],\n function() {},\n function() {},\n [7, 8]\n]" }, - { input: 'a=[[1,2],[4,5],function(){},[7,8]]', - output: "a = [\n [1, 2],\n [4, 5],\n function() {},\n [7, 8]\n]" }, - { input: 'a=[b,c,function(){},function(){},d]', - output: "a = [b, c, function() {}, function() {}, d]" }, - { input: 'a=[b,c,\nfunction(){},function(){},d]', - output: "a = [b, c,\n function() {},\n function() {},\n d\n]" }, - { input: 'a=[a[1],b[4],c[d[7]]]', output: "a = [a[1], b[4], c[d[7]]]" }, - { input: '[1,2,[3,4,[5,6],7],8]', output: "[1, 2, [3, 4, [5, 6], 7], 8]" }, - - { input: '[[["1","2"],["3","4"]],[["5","6","7"],["8","9","0"]],[["1","2","3"],["4","5","6","7"],["8","9","0"]]]', - output: '[\n [\n ["1", "2"],\n ["3", "4"]\n ],\n [\n ["5", "6", "7"],\n ["8", "9", "0"]\n ],\n [\n ["1", "2", "3"],\n ["4", "5", "6", "7"],\n ["8", "9", "0"]\n ]\n]' }, - - { input: '{[x()[0]];indent;}', output: '{\n [x()[0]];\n indent;\n}' }, - { unchanged: '/*\n foo trailing space \n * bar trailing space \n**/'}, - { unchanged: '{\n /*\n foo \n * bar \n */\n}'}, - - { unchanged: 'return ++i' }, - { unchanged: 'return !!x' }, - { unchanged: 'return !x' }, - { input: 'return [1,2]', output: 'return [1, 2]' }, - { unchanged: 'return;' }, - { unchanged: 'return\nfunc' }, - { input: 'catch(e)', output: 'catch (e)' }, - { unchanged: 'yield [1, 2]' }, - - { input: 'var a=1,b={foo:2,bar:3},{baz:4,wham:5},c=4;', - output: 'var a = 1,\n b = {\n foo: 2,\n bar: 3\n },\n {\n baz: 4,\n wham: 5\n }, c = 4;' }, - { input: 'var a=1,b={foo:2,bar:3},{baz:4,wham:5},\nc=4;', - output: 'var a = 1,\n b = {\n foo: 2,\n bar: 3\n },\n {\n baz: 4,\n wham: 5\n },\n c = 4;' }, - - { - comment: 'inline comment', - input_: 'function x(/*int*/ start, /*string*/ foo)', - output: 'function x( /*int*/ start, /*string*/ foo)' - }, - - { comment: 'javadoc comment', - input: '/**\n* foo\n*/', output: '/**\n * foo\n */' }, - { input: '{\n/**\n* foo\n*/\n}', output: '{\n /**\n * foo\n */\n}' }, - - { comment: 'starless block comment', - unchanged: '/**\nfoo\n*/' }, - { unchanged: '/**\nfoo\n**/' }, - { unchanged: '/**\nfoo\nbar\n**/' }, - { unchanged: '/**\nfoo\n\nbar\n**/' }, - { unchanged: '/**\nfoo\n bar\n**/' }, - { input: '{\n/**\nfoo\n*/\n}', output: '{\n /**\n foo\n */\n}' }, - { input: '{\n/**\nfoo\n**/\n}', output: '{\n /**\n foo\n **/\n}' }, - { input: '{\n/**\nfoo\nbar\n**/\n}', output: '{\n /**\n foo\n bar\n **/\n}' }, - { input: '{\n/**\nfoo\n\nbar\n**/\n}', output: '{\n /**\n foo\n\n bar\n **/\n}' }, - { input: '{\n/**\nfoo\n bar\n**/\n}', output: '{\n /**\n foo\n bar\n **/\n}' }, - { unchanged: '{\n /**\n foo\nbar\n **/\n}' }, - - { input: 'var a,b,c=1,d,e,f=2;', output: 'var a, b, c = 1,\n d, e, f = 2;' }, - { input: 'var a,b,c=[],d,e,f=2;', output: 'var a, b, c = [],\n d, e, f = 2;' }, - { unchanged: 'function() {\n var a, b, c, d, e = [],\n f;\n}' }, - - { input: 'do/regexp/;\nwhile(1);', output: 'do /regexp/;\nwhile (1);' }, - { input: 'var a = a,\na;\nb = {\nb\n}', output: 'var a = a,\n a;\nb = {\n b\n}' }, - - { unchanged: 'var a = a,\n /* c */\n b;' }, - { unchanged: 'var a = a,\n // c\n b;' }, - - { comment: 'weird element referencing', - unchanged: 'foo.("bar");' }, - - - { unchanged: 'if (a) a()\nelse b()\nnewline()' }, - { unchanged: 'if (a) a()\nnewline()' }, - { input: 'a=typeof(x)', output: 'a = typeof(x)' }, - - { unchanged: 'var a = function() {\n return null;\n },\n b = false;' }, - - { unchanged: 'var a = function() {\n func1()\n}' }, - { unchanged: 'var a = function() {\n func1()\n}\nvar b = function() {\n func2()\n}' }, - - { comment: 'code with and without semicolons', - input_: 'var whatever = require("whatever");\nfunction() {\n a = 6;\n}', - output: 'var whatever = require("whatever");\n\nfunction() {\n a = 6;\n}' }, - { input: 'var whatever = require("whatever")\nfunction() {\n a = 6\n}', - output: 'var whatever = require("whatever")\n\nfunction() {\n a = 6\n}' }, - - { input: '{"x":[{"a":1,"b":3},\n7,8,8,8,8,{"b":99},{"a":11}]}', output: '{\n "x": [{\n "a": 1,\n "b": 3\n },\n 7, 8, 8, 8, 8, {\n "b": 99\n }, {\n "a": 11\n }\n ]\n}' }, - { input: '{"x":[{"a":1,"b":3},7,8,8,8,8,{"b":99},{"a":11}]}', output: '{\n "x": [{\n "a": 1,\n "b": 3\n }, 7, 8, 8, 8, 8, {\n "b": 99\n }, {\n "a": 11\n }]\n}' }, - - { input: '{"1":{"1a":"1b"},"2"}', output: '{\n "1": {\n "1a": "1b"\n },\n "2"\n}' }, - { input: '{a:{a:b},c}', output: '{\n a: {\n a: b\n },\n c\n}' }, - - { input: '{[y[a]];keep_indent;}', output: '{\n [y[a]];\n keep_indent;\n}' }, - - { input: 'if (x) {y} else { if (x) {y}}', output: 'if (x) {\n y\n} else {\n if (x) {\n y\n }\n}' }, - - { unchanged: 'if (foo) one()\ntwo()\nthree()' }, - { unchanged: 'if (1 + foo() && bar(baz()) / 2) one()\ntwo()\nthree()' }, - { unchanged: 'if (1 + foo() && bar(baz()) / 2) one();\ntwo();\nthree();' }, - - { input: 'var a=1,b={bang:2},c=3;', output: 'var a = 1,\n b = {\n bang: 2\n },\n c = 3;' }, - { input: 'var a={bing:1},b=2,c=3;', output: 'var a = {\n bing: 1\n },\n b = 2,\n c = 3;' }, - - ], - }], - // Example - examples: [{ - group_name: "one", - description: "", - options: [], - values: [ - { - source: "", //string or array of lines - output: "" //string or array of lines - } - ] - }] -} diff --git a/node_modules/js-beautify/test/generate-tests.js b/node_modules/js-beautify/test/generate-tests.js deleted file mode 100644 index 6a6d0e2..0000000 --- a/node_modules/js-beautify/test/generate-tests.js +++ /dev/null @@ -1,171 +0,0 @@ -#!/usr/bin/env node -var fs = require('fs'); -var mustache = require('mustache'); - -function generate_tests() { - var test_data, template; - - // javascript - test_data = require(__dirname + '/data/javascript.js').test_data; - set_formatters(test_data, 'bt', '// ') - template = fs.readFileSync(__dirname + '/template/node-javascript.mustache', {encoding: 'utf-8'}); - fs.writeFileSync(__dirname + '/../js/test/beautify-javascript-tests.js', mustache.render(template, test_data), {encoding: 'utf-8'}); - - set_formatters(test_data, 'bt', '# ') - template = fs.readFileSync(__dirname + '/template/python-javascript.mustache', {encoding: 'utf-8'}); - fs.writeFileSync(__dirname + '/../python/jsbeautifier/tests/testjsbeautifier.py', mustache.render(template, test_data), {encoding: 'utf-8'}); - - // css - test_data = require(__dirname + '/data/css.js').test_data; - set_formatters(test_data, 't', '// ') - template = fs.readFileSync(__dirname + '/template/node-css.mustache', {encoding: 'utf-8'}); - fs.writeFileSync(__dirname + '/../js/test/beautify-css-tests.js', mustache.render(template, test_data), {encoding: 'utf-8'}); - - set_formatters(test_data, 't', '# ') - template = fs.readFileSync(__dirname + '/template/python-css.mustache', {encoding: 'utf-8'}); - fs.writeFileSync(__dirname + '/../python/cssbeautifier/tests/test.py', mustache.render(template, test_data), {encoding: 'utf-8'}); - - // html - test_data = require(__dirname + '/data/html.js').test_data; - set_formatters(test_data, 'bth', '// ') - template = fs.readFileSync(__dirname + '/template/node-html.mustache', {encoding: 'utf-8'}); - fs.writeFileSync(__dirname + '/../js/test/beautify-html-tests.js', mustache.render(template, test_data), {encoding: 'utf-8'}); - - // no python html beautifier, so no tests -} - -function isStringOrArray(val) { - return typeof val === 'string' || val instanceof Array; -} - -function getTestString(val) { - if (typeof val === 'string') { - return "'" + val.replace(/\n/g,'\\n').replace(/\t/g,'\\t') + "'"; - } else if (val instanceof Array) { - return "'" + val.join("\\n' +\n '").replace(/\t/g,'\\t') + "'"; - } else { - return null; - } -} - -function set_formatters (data, test_method, comment_mark) { - - // utility mustache functions - data.matrix_context_string = function() { - var context = this; - return function(text, render) { - var outputs = []; - // text is ignored for this - for (var name in context) { - if (name === 'options') { - continue; - } - - if (context.hasOwnProperty(name)) { - outputs.push(name + ' = "' + context[name] + '"'); - } - } - return render(outputs.join(', ')); - } - }; - - data.test_line = function() { - return function(text, render) { - var method_text = test_method; - if (this.fragment) { - method_text = 'test_fragment'; - } - - // text is ignored for this. - var comment = ''; - if (typeof this.comment === 'string') { - comment = '\n ' + comment_mark + this.comment + '\n '; - } else if (this.comment instanceof Array) { - comment = '\n ' + comment_mark + this.comment.join('\n ' + comment_mark) + '\n '; - } - - var input = null; - var before_input = method_text + '('; - var before_output = ', '; - - function set_input(field, opt_newline) { - if (input !== null && isStringOrArray(field)) { - throw "Only one test input field allowed (input, input_, or unchanged): " + input; - } - - if (typeof field === 'string' && !opt_newline) { - input = getTestString(field); - } else if (field instanceof Array || (typeof field === 'string' && opt_newline)) { - before_input = method_text + '(\n '; - before_output = ',\n '; - input = getTestString(field); - } - } - - set_input(this.input); - - // allow underscore for formatting alignment with "output" - set_input(this.input_, true); - - // use "unchanged" instead of "input" if there is no output - set_input(this.unchanged); - if(isStringOrArray(this.unchanged) && isStringOrArray(this.output)) { - throw "Cannot specify 'output' with 'unchanged' test input: " + input; - } - - if (input === null) { - throw "Missing test input field (input, input_, or unchanged)."; - } - - var output = null; - if (typeof this.output === 'string') { - output = getTestString(this.output); - } else if (this.output instanceof Array) { - before_input = method_text + '(\n '; - before_output = ',\n '; - output = getTestString(this.output); - } else { - before_output = ''; - } - - if (input === output) { - throw "Test strings are identical. Omit 'output' and use 'unchanged': " + input; - } - - if(output && output.indexOf('<%') !== -1) { - mustache.tags = ['<%', '%>']; - } - input = render(input); - output = render(output); - if(output && output.indexOf('<%') !== -1) { - mustache.tags = ['{{', '}}']; - } - - if (output === input) { - before_output = ''; - output = ''; - } - return comment + before_input + input + before_output + output + ')'; - } - }; - - data.set_mustache_tags = function() { - return function(text, render) { - if(this.template) { - mustache.tags = this.template.split(' '); - } - return ''; - } - }; - - data.unset_mustache_tags = function() { - return function(text, render) { - if(this.template) { - mustache.tags = ['{{', '}}']; - } - return ''; - } - }; -} - -generate_tests(); diff --git a/node_modules/js-beautify/test/git-status-clear.sh b/node_modules/js-beautify/test/git-status-clear.sh deleted file mode 100755 index bfe9bb4..0000000 --- a/node_modules/js-beautify/test/git-status-clear.sh +++ /dev/null @@ -1,15 +0,0 @@ -echo "Post-build git status check..." -echo "Ensuring no changes visible to git have been made to '$*' ..." - -git status $* | grep "nothing to commit.*working directory clean" || { - # we should find nothing to commit. If we don't, build has failed. - echo "ERROR: Post-build git status check - FAILED." - echo "Git status reported changes to non-git-ignore'd files." - echo "TO REPRO: Run 'git status $*'. The use git gui or git diff to see what was changed during the build." - echo "TO FIX: Amend your commit and rebuild. Repeat until git status reports no changes both before and after the build." - echo "OUTPUT FOR 'git status $*':" - git status $* - exit 1 -} -echo "Post-build git status check - Succeeded." -exit 0 diff --git a/node_modules/js-beautify/test/template/node-css.mustache b/node_modules/js-beautify/test/template/node-css.mustache deleted file mode 100644 index f806a91..0000000 --- a/node_modules/js-beautify/test/template/node-css.mustache +++ /dev/null @@ -1,218 +0,0 @@ -/*global js_beautify: true */ - -function run_css_tests(test_obj, Urlencoded, js_beautify, html_beautify, css_beautify) -{ - - var opts = { - indent_size: 4, - indent_char: ' ', - preserve_newlines: true, - jslint_happy: false, - keep_array_indentation: false, - brace_style: 'collapse', - space_before_conditional: true, - break_chained_methods: false, - selector_separator: '\n', - end_with_newline: false, - newline_between_rules: true - }; - - function test_css_beautifier(input) - { - return css_beautify(input, opts); - } - - var sanitytest; - - // test the input on beautifier with the current flag settings - // does not check the indentation / surroundings as bt() does - function test_fragment(input, expected) - { - expected = expected || expected === '' ? expected : input; - sanitytest.expect(input, expected); - // if the expected is different from input, run it again - // expected output should be unchanged when run twice. - if (expected !== input) { - sanitytest.expect(expected, expected); - } - - // Everywhere we do newlines, they should be replaced with opts.eol - opts.eol = '\r\\n'; - expected = expected.replace(/[\n]/g, '\r\n'); - sanitytest.expect(input, expected); - input = input.replace(/[\n]/g, '\r\n'); - sanitytest.expect(input, expected); - opts.eol = '\n'; - } - - // test css - function t(input, expectation) - { - var wrapped_input, wrapped_expectation; - - expectation = expectation || expectation === '' ? expectation : input; - sanitytest.test_function(test_css_beautifier, 'css_beautify'); - test_fragment(input, expectation); - } - - function unicode_char(value) { - return String.fromCharCode(value) - } - - function beautifier_tests() - { - sanitytest = test_obj; - - t(".tabs {}"); - -{{#default_options}} opts.{{name}} = {{&value}}; -{{/default_options}} -{{#groups}} - {{^matrix}} - - // {{&name}} - {{#options}} - opts.{{name}} = {{&value}}; - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}}; - {{/tests}} - {{/matrix}} - {{#matrix}} - - // {{&name}} - ({{#matrix_context_string}}.{{/matrix_context_string}}) - {{#options}} - opts.{{name}} = {{&value}}; - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}}; - {{/tests}} - {{/matrix}} -{{/groups}} - - // test basic css beautifier - t(".tabs {}"); - t(".tabs{color:red;}", ".tabs {\n\tcolor: red;\n}"); - t(".tabs{color:rgb(255, 255, 0)}", ".tabs {\n\tcolor: rgb(255, 255, 0)\n}"); - t(".tabs{background:url('back.jpg')}", ".tabs {\n\tbackground: url('back.jpg')\n}"); - t("#bla, #foo{color:red}", "#bla,\n#foo {\n\tcolor: red\n}"); - t("@media print {.tab{}}", "@media print {\n\t.tab {}\n}"); - t("@media print {.tab{background-image:url(foo@2x.png)}}", "@media print {\n\t.tab {\n\t\tbackground-image: url(foo@2x.png)\n\t}\n}"); - - t("a:before {\n" + - "\tcontent: 'a{color:black;}\"\"\\'\\'\"\\n\\n\\na{color:black}\';\n" + - "}"); - - //lead-in whitespace determines base-indent. - // lead-in newlines are stripped. - t("\n\na, img {padding: 0.2px}", "a,\nimg {\n\tpadding: 0.2px\n}"); - t(" a, img {padding: 0.2px}", " a,\n img {\n \tpadding: 0.2px\n }"); - t(" \t \na, img {padding: 0.2px}", " \t a,\n \t img {\n \t \tpadding: 0.2px\n \t }"); - t("\n\n a, img {padding: 0.2px}", "a,\nimg {\n\tpadding: 0.2px\n}"); - - // separate selectors - t("#bla, #foo{color:red}", "#bla,\n#foo {\n\tcolor: red\n}"); - t("a, img {padding: 0.2px}", "a,\nimg {\n\tpadding: 0.2px\n}"); - - // block nesting - t("#foo {\n\tbackground-image: url(foo@2x.png);\n\t@font-face {\n\t\tfont-family: 'Bitstream Vera Serif Bold';\n\t\tsrc: url('http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf');\n\t}\n}"); - t("@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo@2x.png);\n\t}\n\t@font-face {\n\t\tfont-family: 'Bitstream Vera Serif Bold';\n\t\tsrc: url('http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf');\n\t}\n}"); -/* -@font-face { - font-family: 'Bitstream Vera Serif Bold'; - src: url('http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf'); -} -@media screen { - #foo:hover { - background-image: url(foo.png); - } - @media screen and (min-device-pixel-ratio: 2) { - @font-face { - font-family: 'Helvetica Neue' - } - #foo:hover { - background-image: url(foo@2x.png); - } - } -} -*/ - t("@font-face {\n\tfont-family: 'Bitstream Vera Serif Bold';\n\tsrc: url('http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf');\n}\n@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo.png);\n\t}\n\t@media screen and (min-device-pixel-ratio: 2) {\n\t\t@font-face {\n\t\t\tfont-family: 'Helvetica Neue'\n\t\t}\n\t\t#foo:hover {\n\t\t\tbackground-image: url(foo@2x.png);\n\t\t}\n\t}\n}"); - - // less-css cases - t('.well{@well-bg:@bg-color;@well-fg:@fg-color;}','.well {\n\t@well-bg: @bg-color;\n\t@well-fg: @fg-color;\n}'); - t('.well {&.active {\nbox-shadow: 0 1px 1px @border-color, 1px 0 1px @border-color;}}', - '.well {\n' + - '\t&.active {\n' + - '\t\tbox-shadow: 0 1px 1px @border-color, 1px 0 1px @border-color;\n' + - '\t}\n' + - '}'); - t('a {\n' + - '\tcolor: blue;\n' + - '\t&:hover {\n' + - '\t\tcolor: green;\n' + - '\t}\n' + - '\t& & &&&.active {\n' + - '\t\tcolor: green;\n' + - '\t}\n' + - '}'); - - // Not sure if this is sensible - // but I believe it is correct to not remove the space in "&: hover". - t('a {\n' + - '\t&: hover {\n' + - '\t\tcolor: green;\n' + - '\t}\n' + - '}'); - - // import - t('@import "test";'); - - // don't break nested pseudo-classes - t("a:first-child{color:red;div:first-child{color:black;}}", - "a:first-child {\n\tcolor: red;\n\tdiv:first-child {\n\t\tcolor: black;\n\t}\n}"); - - // handle SASS/LESS parent reference - t("div{&:first-letter {text-transform: uppercase;}}", - "div {\n\t&:first-letter {\n\t\ttext-transform: uppercase;\n\t}\n}"); - - //nested modifiers (&:hover etc) - t(".tabs{&:hover{width:10px;}}", ".tabs {\n\t&:hover {\n\t\twidth: 10px;\n\t}\n}"); - t(".tabs{&.big{width:10px;}}", ".tabs {\n\t&.big {\n\t\twidth: 10px;\n\t}\n}"); - t(".tabs{&>big{width:10px;}}", ".tabs {\n\t&>big {\n\t\twidth: 10px;\n\t}\n}"); - t(".tabs{&+.big{width:10px;}}", ".tabs {\n\t&+.big {\n\t\twidth: 10px;\n\t}\n}"); - - //nested rules - t(".tabs{.child{width:10px;}}", ".tabs {\n\t.child {\n\t\twidth: 10px;\n\t}\n}"); - - //variables - t("@myvar:10px;.tabs{width:10px;}", "@myvar: 10px;\n.tabs {\n\twidth: 10px;\n}"); - t("@myvar:10px; .tabs{width:10px;}", "@myvar: 10px;\n.tabs {\n\twidth: 10px;\n}"); - - // test options - opts.indent_size = 2; - opts.indent_char = ' '; - opts.selector_separator_newline = false; - - // pseudo-classes and pseudo-elements - t("#foo:hover {\n background-image: url(foo@2x.png)\n}"); - t("#foo *:hover {\n color: purple\n}"); - t("::selection {\n color: #ff0000;\n}"); - - // TODO: don't break nested pseduo-classes - t("@media screen {.tab,.bat:hover {color:red}}", "@media screen {\n .tab, .bat:hover {\n color: red\n }\n}"); - - // particular edge case with braces and semicolons inside tags that allows custom text - t("a:not(\"foobar\\\";{}omg\"){\ncontent: 'example\\';{} text';\ncontent: \"example\\\";{} text\";}", - "a:not(\"foobar\\\";{}omg\") {\n content: 'example\\';{} text';\n content: \"example\\\";{} text\";\n}"); - - // may not eat the space before "[" - t('html.js [data-custom="123"] {\n opacity: 1.00;\n}'); - t('html.js *[data-custom="123"] {\n opacity: 1.00;\n}'); - } - - beautifier_tests(); -} - -if (typeof exports !== "undefined") { - exports.run_css_tests = run_css_tests; -} diff --git a/node_modules/js-beautify/test/template/node-html.mustache b/node_modules/js-beautify/test/template/node-html.mustache deleted file mode 100644 index cc2475e..0000000 --- a/node_modules/js-beautify/test/template/node-html.mustache +++ /dev/null @@ -1,393 +0,0 @@ -/*global js_beautify: true */ - -function run_html_tests(test_obj, Urlencoded, js_beautify, html_beautify, css_beautify) -{ - - var opts = { - indent_size: 4, - indent_char: ' ', - preserve_newlines: true, - jslint_happy: false, - keep_array_indentation: false, - brace_style: 'collapse', - space_before_conditional: true, - break_chained_methods: false, - selector_separator: '\n', - end_with_newline: false - }; - - function test_html_beautifier(input) - { - return html_beautify(input, opts); - } - - var sanitytest; - - // test the input on beautifier with the current flag settings - // does not check the indentation / surroundings as bt() does - function test_fragment(input, expected) - { - expected = expected || expected === '' ? expected : input; - sanitytest.expect(input, expected); - // if the expected is different from input, run it again - // expected output should be unchanged when run twice. - if (expected !== input) { - sanitytest.expect(expected, expected); - } - - // Everywhere we do newlines, they should be replaced with opts.eol - opts.eol = '\r\n'; - expected = expected.replace(/[\n]/g, '\r\n'); - sanitytest.expect(input, expected); - input = input.replace(/[\n]/g, '\r\n'); - sanitytest.expect(input, expected); - opts.eol = '\n'; - } - - // test html - function bth(input, expectation) - { - var wrapped_input, wrapped_expectation, field_input, field_expectation; - - expectation = expectation || expectation === '' ? expectation : input; - sanitytest.test_function(test_html_beautifier, 'html_beautify'); - test_fragment(input, expectation); - - if (opts.indent_size === 4 && input) { - wrapped_input = '
    \n' + input.replace(/^(.+)$/mg, ' $1') + '\n inline\n
    '; - wrapped_expectation = '
    \n' + expectation.replace(/^(.+)$/mg, ' $1') + '\n inline\n
    '; - test_fragment(wrapped_input, wrapped_expectation); - } - } - - function unicode_char(value) { - return String.fromCharCode(value) - } - - function beautifier_tests() - { - sanitytest = test_obj; - - bth(''); - -{{#default_options}} opts.{{name}} = {{&value}}; -{{/default_options}} -{{#groups}}{{#set_mustache_tags}}.{{/set_mustache_tags}}{{^matrix}} - - // {{&name}} - {{#options}} - opts.{{name}} = {{&value}}; - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}}; - {{/tests}} - {{/matrix}}{{#matrix}} - - // {{&name}} - ({{#matrix_context_string}}.{{/matrix_context_string}}) - {{#options}} - opts.{{name}} = {{&value}}; - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}}; - {{/tests}} - {{/matrix}}{{#unset_mustache_tags}}.{{/unset_mustache_tags}} -{{/groups}} - - opts.end_with_newline = true; - test_fragment('', '\n'); - test_fragment('
    \n'); - test_fragment('
    \n\n\n', '
    \n'); - test_fragment('\n' + - ' \n' + - '\n'); - - - opts.end_with_newline = false; - // error cases need love too - bth('Evil'); - bth(" - - test_fragment( - '\n' + - ' \n' + - ''); - - test_fragment('
    \n', '
    '); - bth('
    '); - bth('
    content
    '); - bth('
    ', - '
    \n' + - '
    \n' + - '
    '); - bth('
    content
    ', - '
    \n' + - '
    content
    \n' + - '
    '); - bth('
    \n' + - ' content\n' + - '
    '); - bth('
    \n' + - '
    '); - bth('
    \n' + - ' content\n' + - '
    '); - bth('
    \n' + - '
    ', - '
    \n' + - '
    '); - bth('
    \n' + - '
    ', - '
    \n' + - '
    '); - bth('
    \n' + - '
    \n' + - '
    \n' + - '
    ', - '
    \n' + - '
    \n' + - '
    \n' + - '
    '); - bth('
    \n' + - '
    ', - '
    \n' + - '
    '); - bth('
    content
    ', - '
    content
    '); - bth('
    ', - '
    '); - bth('content\n' + - '
    \n' + - '
    \n' + - 'content', - 'content\n' + - '
    \n' + - '
    \n' + - 'content'); - bth('
  • \n' + - '
    \n' + - '
    \n' + - '
  • '); - bth('
  • \n' + - '
    \n' + - '
    \n' + - '
  • ', - '
  • \n' + - '
    \n' + - '
    \n' + - '
  • '); - bth('
  • \n' + - ' content\n' + - '
  • \n' + - '
  • \n' + - ' content\n' + - '
  • '); - - bth('content'); - bth(' content'); - bth(' content', ' content'); - - bth('content'); - bth(' content'); - bth(' content', ' content'); - - bth('content'); - bth(' content'); - bth(' content', ' content'); - - bth('
    contentcontent
    '); - bth('
    content content
    '); - bth('
    content content
    ', - '
    content content
    '); - bth('Text Link Text'); - - - // START tests for issue 453 - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - bth('', - ''); - // END tests for issue 453 - - var unformatted = opts.unformatted; - opts.unformatted = ['script', 'style']; - bth(''); - bth(''); - opts.unformatted = unformatted; - - unformatted = opts.unformatted; - opts.unformatted = ['custom-element']; - test_fragment('
    should not' + - ' insert newlines
    ', - '
    should not' + - ' insert newlines
    '); - opts.unformatted = unformatted; - - // Tests that don't pass, but probably should. - // bth('
    content
    '); - - // Handlebars tests - // Without the indent option on, handlebars are treated as content. - - opts.wrap_line_length = 0; - //...---------1---------2---------3---------4---------5---------6---------7 - //...1234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some text that should not wrap at all.
    ', - /* expected */ - '
    Some text that should not wrap at all.
    '); - - // A value of 0 means no max line length, and should not wrap. - //...---------1---------2---------3---------4---------5---------6---------7---------8---------9--------10--------11--------12--------13--------14--------15--------16--------17--------18--------19--------20--------21--------22--------23--------24--------25--------26--------27--------28--------29 - //...12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all.
    ', - /* expected */ - '
    Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all.
    '); - - opts.wrap_line_length = "0"; - //...---------1---------2---------3---------4---------5---------6---------7 - //...1234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some text that should not wrap at all.
    ', - /* expected */ - '
    Some text that should not wrap at all.
    '); - - // A value of "0" means no max line length, and should not wrap - //...---------1---------2---------3---------4---------5---------6---------7---------8---------9--------10--------11--------12--------13--------14--------15--------16--------17--------18--------19--------20--------21--------22--------23--------24--------25--------26--------27--------28--------29 - //...12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all.
    ', - /* expected */ - '
    Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all. Some text that should not wrap at all.
    '); - - //BUGBUG: This should wrap before 40 not after. - opts.wrap_line_length = 40; - //...---------1---------2---------3---------4---------5---------6---------7 - //...1234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some test text that should wrap_inside_this section here.
    ', - /* expected */ - '
    Some test text that should wrap_inside_this\n' + - ' section here.
    '); - - opts.wrap_line_length = "40"; - //...---------1---------2---------3---------4---------5---------6---------7 - //...1234567890123456789012345678901234567890123456789012345678901234567890 - bth('
    Some test text that should wrap_inside_this section here.
    ', - /* expected */ - '
    Some test text that should wrap_inside_this\n' + - ' section here.
    '); - - opts.indent_size = 1; - opts.indent_char = '\t'; - opts.preserve_newlines = false; - bth('
    \n\tfoo\n
    ', '
    foo
    '); - - opts.preserve_newlines = true; - bth('
    \n\tfoo\n
    '); - - - - // test preserve_newlines and max_preserve_newlines - opts.preserve_newlines = false; - bth('
    Should not
    \n\n\n' + - '
    preserve newlines
    ', - '
    Should not
    \n' + - '
    preserve newlines
    '); - - opts.preserve_newlines = true; - opts.max_preserve_newlines = 0; - bth('
    Should
    \n\n\n' + - '
    preserve zero newlines
    ', - '
    Should
    \n' + - '
    preserve zero newlines
    '); - - opts.max_preserve_newlines = 1; - bth('
    Should
    \n\n\n' + - '
    preserve one newline
    ', - '
    Should
    \n\n' + - '
    preserve one newline
    '); - - opts.max_preserve_newlines = null; - bth('
    Should
    \n\n\n' + - '
    preserve one newline
    ', - '
    Should
    \n\n\n' + - '
    preserve one newline
    '); - } - - beautifier_tests(); -} - -if (typeof exports !== "undefined") { - exports.run_html_tests = run_html_tests; -} diff --git a/node_modules/js-beautify/test/template/node-javascript.mustache b/node_modules/js-beautify/test/template/node-javascript.mustache deleted file mode 100644 index f81d268..0000000 --- a/node_modules/js-beautify/test/template/node-javascript.mustache +++ /dev/null @@ -1,1054 +0,0 @@ -/*global js_beautify: true */ - -function run_javascript_tests(test_obj, Urlencoded, js_beautify, html_beautify, css_beautify) -{ - - var opts = { - indent_size: 4, - indent_char: ' ', - preserve_newlines: true, - jslint_happy: false, - keep_array_indentation: false, - brace_style: 'collapse', - space_before_conditional: true, - break_chained_methods: false, - selector_separator: '\n', - end_with_newline: false - }; - - function test_js_beautifier(input) - { - return js_beautify(input, opts); - } - - function test_html_beautifier(input) - { - return html_beautify(input, opts); - } - - var sanitytest; - - // test the input on beautifier with the current flag settings - // does not check the indentation / surroundings as bt() does - function test_fragment(input, expected) - { - expected = expected || expected === '' ? expected : input; - sanitytest.expect(input, expected); - // if the expected is different from input, run it again - // expected output should be unchanged when run twice. - if (expected !== input) { - sanitytest.expect(expected, expected); - } - - // Everywhere we do newlines, they should be replaced with opts.eol - opts.eol = '\r\\n'; - expected = expected.replace(/[\n]/g, '\r\n'); - sanitytest.expect(input, expected); - input = input.replace(/[\n]/g, '\r\n'); - sanitytest.expect(input, expected); - opts.eol = '\n'; - } - - - - // test the input on beautifier with the current flag settings - // test both the input as well as { input } wrapping - function bt(input, expectation) - { - var wrapped_input, wrapped_expectation; - - expectation = expectation || expectation === '' ? expectation : input; - sanitytest.test_function(test_js_beautifier, 'js_beautify'); - test_fragment(input, expectation); - - // If we set raw, input should be unchanged - opts.test_output_raw = true; - if (!opts.end_with_newline) { - test_fragment(input, input); - } - opts.test_output_raw = false; - - // test also the returned indentation - // e.g if input = "asdf();" - // then test that this remains properly formatted as well: - // { - // asdf(); - // indent; - // } - - if (opts.indent_size === 4 && input) { - wrapped_input = '{\n' + input.replace(/^(.+)$/mg, ' $1') + '\n foo = bar;\n}'; - wrapped_expectation = '{\n' + expectation.replace(/^(.+)$/mg, ' $1') + '\n foo = bar;\n}'; - test_fragment(wrapped_input, wrapped_expectation); - - // If we set raw, input should be unchanged - opts.test_output_raw = true; - if (!opts.end_with_newline) { - test_fragment(wrapped_input, wrapped_input); - } - opts.test_output_raw = false; - } - - } - - // run all tests for the given brace style ("collapse", "expand", "end-expand", or "none"). - // uses various whitespace combinations before and after opening and closing braces, - // respectively, for most of the tests' inputs. - function beautify_brace_tests(brace_style) { - - var ex_brace_style = opts.brace_style, - indent_on_wrap_str = ' '; // could use Array(opts.indent_size + 1).join(' '); if we wanted to replace _all_ of the hardcoded 4-space in the test and expectation strings - - function permute_brace_tests(expect_open_white, expect_close_white) { - - // run the tests that need permutation against a specific combination of - // pre-opening-brace and pre-closing-brace whitespace - function run_brace_permutation(test_open_white, test_close_white) { - var to = test_open_white, - tc = test_close_white, - eo = expect_open_white ? expect_open_white : to === '' ? ' ' : to, - ec = expect_close_white ? expect_close_white : tc === '' ? ' ' : tc, - i = eo === '\n' ? indent_on_wrap_str: ''; - - bt( '//case 1\nif (a == 1)' + to + '{}\n//case 2\nelse if (a == 2)' + to + '{}', - '//case 1\nif (a == 1)' + eo + '{}\n//case 2\nelse if (a == 2)' + eo + '{}'); - bt( 'if(1)' + to + '{2}' + tc + 'else' + to + '{3}', - 'if (1)' + eo + '{\n 2\n}' + ec + 'else' + eo + '{\n 3\n}'); - bt( 'try' + to + '{a();}' + tc + - 'catch(b)' + to + '{c();}' + tc + - 'catch(d)' + to + '{}' + tc + - 'finally' + to + '{e();}', - // expected - 'try' + eo + '{\n a();\n}' + ec + - 'catch (b)' + eo + '{\n c();\n}' + ec + - 'catch (d)' + eo + '{}' + ec + - 'finally' + eo + '{\n e();\n}'); - bt( 'if(a)' + to + '{b();}' + tc + 'else if(c) foo();', - 'if (a)' + eo + '{\n b();\n}' + ec + 'else if (c) foo();'); - // if/else statement with empty body - bt( 'if (a)' + to + '{\n// comment\n}' + tc + 'else' + to + '{\n// comment\n}', - 'if (a)' + eo + '{\n // comment\n}' + ec + 'else' + eo + '{\n // comment\n}'); - bt( 'if (x)' + to + '{y}' + tc + 'else' + to + '{ if (x)' + to + '{y}}', - 'if (x)' + eo + '{\n y\n}' + ec + 'else' + eo + '{\n if (x)' + eo + i + '{\n y\n }\n}'); - bt( 'if (a)' + to + '{\nb;\n}' + tc + 'else' + to + '{\nc;\n}', - 'if (a)' + eo + '{\n b;\n}' + ec + 'else' + eo + '{\n c;\n}'); - test_fragment(' /*\n* xx\n*/\n// xx\nif (foo)' + to + '{\n bar();\n}', - ' /*\n * xx\n */\n // xx\n if (foo)' + eo + i + '{\n bar();\n }'); - bt( 'if (foo)' + to + '{}' + tc + 'else /regex/.test();', - 'if (foo)' + eo + '{}' + ec + 'else /regex/.test();'); - test_fragment('if (foo)' + to + '{', 'if (foo)' + eo + '{'); - test_fragment('foo' + to + '{', 'foo' + eo + '{'); - test_fragment('return;' + to + '{', 'return;' + eo + '{'); - bt( 'function x()' + to + '{\n foo();\n}zzz', 'function x()' + eo +'{\n foo();\n}\nzzz'); - bt( 'var a = new function a()' + to + '{};', 'var a = new function a()' + eo + '{};'); - bt( 'var a = new function a()' + to + ' {},\n b = new function b()' + to + ' {};', - 'var a = new function a()' + eo + i + '{},\n b = new function b()' + eo + i + '{};'); - bt("foo(" + to + "{\n 'a': 1\n},\n10);", - "foo(" + (eo === ' ' ? '' : eo) + i + "{\n 'a': 1\n },\n 10);"); // "foo( {..." is a weird case - bt('(["foo","bar"]).each(function(i)' + to + '{return i;});', - '(["foo", "bar"]).each(function(i)' + eo + '{\n return i;\n});'); - bt('(function(i)' + to + '{return i;})();', '(function(i)' + eo + '{\n return i;\n})();'); - - bt( "test( /*Argument 1*/" + to + "{\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - // expected - "test( /*Argument 1*/" + eo + i + "{\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });"); - - bt( "test( /*Argument 1*/" + to + "{\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */\n" + - "{\n" + - " 'Value2': '2'\n" + - "});", - // expected - "test( /*Argument 1*/" + eo + i + "{\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });"); - } - - run_brace_permutation('\n', '\n'); - run_brace_permutation('\n', ' '); - run_brace_permutation(' ', ' '); - run_brace_permutation(' ', '\n'); - run_brace_permutation('',''); - - // brace tests that don't make sense to permutate - test_fragment('return {'); // return needs the brace. - test_fragment('return /* inline */ {'); - bt('throw {}'); - bt('throw {\n foo;\n}'); - bt( 'var foo = {}'); - test_fragment('a: do {} while (); xxx', 'a: do {} while ();\nxxx'); - bt( '{a: do {} while (); xxx}', '{\n a: do {} while ();xxx\n}'); - bt( 'var a = new function() {};'); - bt( 'var a = new function()\n{};', 'var a = new function() {};'); - bt( "test(\n" + - "/*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "},\n" + - "/*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - // expected - "test(\n" + - " /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });"); - } - - opts.brace_style = brace_style; - - switch(opts.brace_style) { - case 'collapse': - permute_brace_tests(' ', ' '); - break; - case 'expand': - permute_brace_tests('\n', '\n'); - break; - case 'end-expand': - permute_brace_tests(' ', '\n'); - break; - case 'none': - permute_brace_tests(); - break; - } - - opts.brace_style = ex_brace_style; - } - - function unicode_char(value) { - return String.fromCharCode(value) - } - - function beautifier_tests() - { - sanitytest = test_obj; - -{{#default_options}} opts.{{name}} = {{&value}}; -{{/default_options}} -{{#groups}}{{#set_mustache_tags}}.{{/set_mustache_tags}}{{^matrix}} - - // {{&name}} - {{#options}} - opts.{{name}} = {{&value}}; - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}}; - {{/tests}} - {{/matrix}}{{#matrix}} - - // {{&name}} - ({{#matrix_context_string}}.{{/matrix_context_string}}) - {{#options}} - opts.{{name}} = {{&value}}; - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}}; - {{/tests}} - {{/matrix}}{{#unset_mustache_tags}}.{{/unset_mustache_tags}} -{{/groups}} - - - opts.indent_size = 1; - opts.indent_char = ' '; - bt('{ one_char() }', "{\n one_char()\n}"); - - bt('var a,b=1,c=2', 'var a, b = 1,\n c = 2'); - - opts.indent_size = 4; - opts.indent_char = ' '; - bt('{ one_char() }', "{\n one_char()\n}"); - - opts.indent_size = 1; - opts.indent_char = "\t"; - bt('{ one_char() }', "{\n\tone_char()\n}"); - bt('x = a ? b : c; x;', 'x = a ? b : c;\nx;'); - - //set to something else than it should change to, but with tabs on, should override - opts.indent_size = 5; - opts.indent_char = ' '; - opts.indent_with_tabs = true; - - bt('{ one_char() }', "{\n\tone_char()\n}"); - bt('x = a ? b : c; x;', 'x = a ? b : c;\nx;'); - - opts.indent_size = 4; - opts.indent_char = ' '; - opts.indent_with_tabs = false; - - opts.preserve_newlines = false; - - bt('var\na=dont_preserve_newlines;', 'var a = dont_preserve_newlines;'); - - // make sure the blank line between function definitions stays - // even when preserve_newlines = false - bt('function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}'); - bt('function foo() {\n return 1;\n}\nfunction foo() {\n return 1;\n}', - 'function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}' - ); - bt('function foo() {\n return 1;\n}\n\n\nfunction foo() {\n return 1;\n}', - 'function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}' - ); - - opts.preserve_newlines = true; - bt('var\na=do_preserve_newlines;', 'var\n a = do_preserve_newlines;'); - bt('// a\n// b\n\n// c\n// d'); - bt('if (foo) // comment\n{\n bar();\n}'); - - - opts.keep_array_indentation = false; - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f'\n]"); - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i'\n]"); - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i'\n]"); - bt('var x = [{}\n]', 'var x = [{}]'); - bt('var x = [{foo:bar}\n]', 'var x = [{\n foo: bar\n}]'); - bt("a = ['something',\n 'completely',\n 'different'];\nif (x);", - "a = ['something',\n 'completely',\n 'different'\n];\nif (x);"); - bt("a = ['a','b','c']", "a = ['a', 'b', 'c']"); - - bt("a = ['a', 'b','c']", "a = ['a', 'b', 'c']"); - bt("x = [{'a':0}]", - "x = [{\n 'a': 0\n}]"); - bt('{a([[a1]], {b;});}', - '{\n a([\n [a1]\n ], {\n b;\n });\n}'); - bt("a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\n[\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n].toString();"); - bt("a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n].toString();"); - bt("function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}", - "function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}"); - bt('function foo() {\n return [\n "one",\n "two"\n ];\n}'); - // 4 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}", - "function foo() {\n" + - " return [{\n" + - " one: 'x',\n" + - " two: [{\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }]\n" + - " }];\n" + - "}"); - // 3 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}", - "function foo() {\n" + - " return [{\n" + - " one: 'x',\n" + - " two: [{\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }]\n" + - " }];\n" + - "}"); - - opts.keep_array_indentation = true; - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f']"); - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']"); - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']"); - bt('var x = [{}\n]', 'var x = [{}\n]'); - bt('var x = [{foo:bar}\n]', 'var x = [{\n foo: bar\n }\n]'); - bt("a = ['something',\n 'completely',\n 'different'];\nif (x);"); - bt("a = ['a','b','c']", "a = ['a', 'b', 'c']"); - bt("a = ['a', 'b','c']", "a = ['a', 'b', 'c']"); - bt("x = [{'a':0}]", - "x = [{\n 'a': 0\n}]"); - bt('{a([[a1]], {b;});}', - '{\n a([[a1]], {\n b;\n });\n}'); - bt("a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();"); - bt("a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();"); - bt("function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}", - "function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}"); - bt('function foo() {\n return [\n "one",\n "two"\n ];\n}'); - // 4 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}"); - // 3 spaces per indent input, processed with 4-spaces per indent - // Should be unchanged, but is not - #445 -// bt( "function foo() {\n" + -// " return [\n" + -// " {\n" + -// " one: 'x',\n" + -// " two: [\n" + -// " {\n" + -// " id: 'a',\n" + -// " name: 'apple'\n" + -// " }, {\n" + -// " id: 'b',\n" + -// " name: 'banana'\n" + -// " }\n" + -// " ]\n" + -// " }\n" + -// " ];\n" + -// "}"); - - - opts.keep_array_indentation = false; - - - bt('a = //comment\n /regex/;'); - - bt('if (a)\n{\nb;\n}\nelse\n{\nc;\n}', 'if (a) {\n b;\n} else {\n c;\n}'); - - // tests for brace positioning - beautify_brace_tests('expand'); - beautify_brace_tests('collapse'); - beautify_brace_tests('end-expand'); - beautify_brace_tests('none'); - - bt('// func-comment\n\nfunction foo() {}\n\n// end-func-comment'); - - test_fragment('roo = {\n /*\n ****\n FOO\n ****\n */\n BAR: 0\n};'); - - bt('"foo""bar""baz"', '"foo"\n"bar"\n"baz"'); - bt("'foo''bar''baz'", "'foo'\n'bar'\n'baz'"); - - - test_fragment("if (zz) {\n // ....\n}\n(function"); - - bt("{\n get foo() {}\n}"); - bt("{\n var a = get\n foo();\n}"); - bt("{\n set foo() {}\n}"); - bt("{\n var a = set\n foo();\n}"); - bt("var x = {\n get function()\n}"); - bt("var x = {\n set function()\n}"); - - // According to my current research get/set have no special meaning outside of an object literal - bt("var x = set\n\na() {}", "var x = set\n\na() {}"); - bt("var x = set\n\nfunction() {}", "var x = set\n\nfunction() {}"); - - bt(''); - bt(' - bt('for () /abc/.test()'); - bt('if (k) /aaa/m.test(v) && l();'); - bt('switch (true) {\n case /swf/i.test(foo):\n bar();\n}'); - bt('createdAt = {\n type: Date,\n default: Date.now\n}'); - bt('switch (createdAt) {\n case a:\n Date,\n default:\n Date.now\n}'); - opts.space_before_conditional = false; - bt('if(a) b()'); - opts.space_before_conditional = true; - - - opts.preserve_newlines = true; - bt('var a = 42; // foo\n\nvar b;'); - bt('var a = 42; // foo\n\n\nvar b;'); - bt("var a = 'foo' +\n 'bar';"); - bt("var a = \"foo\" +\n \"bar\";"); - bt('this.oa = new OAuth(\n' + - ' _requestToken,\n' + - ' _accessToken,\n' + - ' consumer_key\n' + - ');'); - - - opts.unescape_strings = false; - test_fragment('"\\x22\\x27", \'\\x22\\x27\', "\\x5c", \'\\x5c\', "\\xff and \\xzz", "unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"'); - opts.unescape_strings = true; - test_fragment('"\\x20\\x40\\x4a"', '" @J"'); - test_fragment('"\\xff\\x40\\x4a"'); - test_fragment('"\\u0072\\u016B\\u0137\\u012B\\u0074\\u0069\\u0073"', '"rūķītis"'); - test_fragment('"Google Chrome est\\u00E1 actualizado."', '"Google Chrome está actualizado."'); - /* - bt('"\\x22\\x27",\'\\x22\\x27\',"\\x5c",\'\\x5c\',"\\xff and \\xzz","unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"', - '"\\"\'", \'"\\\'\', "\\\\", \'\\\\\', "\\xff and \\xzz", "unicode \\u0000 \\" \' \\\\ \\uffff \\uzzzz"'); - */ - opts.unescape_strings = false; - - bt('return function();'); - bt('var a = function();'); - bt('var a = 5 + function();'); - - bt('3.*7;', '3. * 7;'); - bt('a = 1.e-64 * 0.5e+4 / 6e-23;'); - bt('import foo.*;', 'import foo.*;'); // actionscript's import - test_fragment('function f(a: a, b: b)'); // actionscript - - bt('{\n foo // something\n ,\n bar // something\n baz\n}'); - bt('function a(a) {} function b(b) {} function c(c) {}', 'function a(a) {}\n\nfunction b(b) {}\n\nfunction c(c) {}'); - bt('foo(a, function() {})'); - - bt('foo(a, /regex/)'); - - bt('/* foo */\n"x"'); - - opts.break_chained_methods = false; - opts.preserve_newlines = false; - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat);\nfoo.bar().baz().cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat)\nfoo.bar().baz().cucumber(fat)'); - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this.something = foo.bar().baz().cucumber(fat)'); - bt('this.something.xxx = foo.moo.bar()'); - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this.something.xxx = foo.moo.bar()'); - - opts.break_chained_methods = false; - opts.preserve_newlines = true; - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat);\nfoo.bar().baz().cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat)\nfoo.bar().baz().cucumber(fat)'); - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this\n .something = foo.bar()\n .baz().cucumber(fat)'); - bt('this.something.xxx = foo.moo.bar()'); - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this\n .something\n .xxx = foo.moo\n .bar()'); - - opts.break_chained_methods = true; - opts.preserve_newlines = false; - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat);\nfoo.bar()\n .baz()\n .cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat)\nfoo.bar()\n .baz()\n .cucumber(fat)'); - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this.something = foo.bar()\n .baz()\n .cucumber(fat)'); - bt('this.something.xxx = foo.moo.bar()'); - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this.something.xxx = foo.moo.bar()'); - - opts.break_chained_methods = true; - opts.preserve_newlines = true; - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat);\nfoo.bar()\n .baz()\n .cucumber(fat)'); - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat)\nfoo.bar()\n .baz()\n .cucumber(fat)'); - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this\n .something = foo.bar()\n .baz()\n .cucumber(fat)'); - bt('this.something.xxx = foo.moo.bar()'); - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this\n .something\n .xxx = foo.moo\n .bar()'); - - opts.break_chained_methods = false; - - // Line wrap test intputs - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - wrap_input_1=('foo.bar().baz().cucumber((fat && "sassy") || (leans\n&& mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - wrap_input_2=('{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") || (leans\n&& mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n.but_this_can\n' + - ' if (wraps_can_occur && inside_an_if_block) that_is_\n.okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - ' }' + - '}'); - - opts.preserve_newlines = false; - opts.wrap_line_length = 0; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 70; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 40; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat &&\n' + - ' "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 41; - // NOTE: wrap is only best effort - line continues until next wrap point is found. - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 45; - // NOTE: wrap is only best effort - line continues until next wrap point is found. - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_2, - /* expected */ - '{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - ' if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - ' }\n'+ - '}'); - - opts.preserve_newlines = true; - opts.wrap_line_length = 0; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 70; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}'); - - - opts.wrap_line_length = 40; - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat &&\n' + - ' "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 41; - // NOTE: wrap is only best effort - line continues until next wrap point is found. - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - /* expected */ - 'foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}'); - - opts.wrap_line_length = 45; - // NOTE: wrap is only best effort - line continues until next wrap point is found. - //.............---------1---------2---------3---------4---------5---------6---------7 - //.............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_2, - /* expected */ - '{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - ' if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - ' }\n'+ - '}'); - - opts.wrap_line_length = 0; - - opts.preserve_newlines = false; - bt('if (foo) // comment\n bar();'); - bt('if (foo) // comment\n (bar());'); - bt('if (foo) // comment\n (bar());'); - bt('if (foo) // comment\n /asdf/;'); - bt('this.oa = new OAuth(\n' + - ' _requestToken,\n' + - ' _accessToken,\n' + - ' consumer_key\n' + - ');', - 'this.oa = new OAuth(_requestToken, _accessToken, consumer_key);'); - bt('foo = {\n x: y, // #44\n w: z // #44\n}'); - bt('switch (x) {\n case "a":\n // comment on newline\n break;\n case "b": // comment on same line\n break;\n}'); - bt('this.type =\n this.options =\n // comment\n this.enabled null;', - 'this.type = this.options =\n // comment\n this.enabled null;'); - bt('someObj\n .someFunc1()\n // This comment should not break the indent\n .someFunc2();', - 'someObj.someFunc1()\n // This comment should not break the indent\n .someFunc2();'); - - bt('if (true ||\n!true) return;', 'if (true || !true) return;'); - - // these aren't ready yet. - //bt('if (foo) // comment\n bar() /*i*/ + baz() /*j\n*/ + asdf();'); - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();'); - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\nelse\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\n else a();'); - bt('if (foo)\nbar();\nelse\ncar();', - 'if (foo) bar();\nelse car();'); - - bt('if (foo) if (bar) if (baz);\na();', - 'if (foo)\n if (bar)\n if (baz);\na();'); - bt('if (foo) if (bar) if (baz) whee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();'); - bt('if (foo) a()\nif (bar) if (baz) whee();\na();', - 'if (foo) a()\nif (bar)\n if (baz) whee();\na();'); - bt('if (foo);\nif (bar) if (baz) whee();\na();', - 'if (foo);\nif (bar)\n if (baz) whee();\na();'); - bt('if (options)\n' + - ' for (var p in options)\n' + - ' this[p] = options[p];', - 'if (options)\n'+ - ' for (var p in options) this[p] = options[p];'); - bt('if (options) for (var p in options) this[p] = options[p];', - 'if (options)\n for (var p in options) this[p] = options[p];'); - - bt('if (options) do q(); while (b());', - 'if (options)\n do q(); while (b());'); - bt('if (options) while (b()) q();', - 'if (options)\n while (b()) q();'); - bt('if (options) do while (b()) q(); while (a());', - 'if (options)\n do\n while (b()) q(); while (a());'); - - bt('function f(a, b, c,\nd, e) {}', - 'function f(a, b, c, d, e) {}'); - - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}'); - bt('function f(a,b) {if(a) b()}\n\n\n\nfunction g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}'); - - // This is not valid syntax, but still want to behave reasonably and not side-effect - bt('(if(a) b())(if(a) b())', - '(\n if (a) b())(\n if (a) b())'); - bt('(if(a) b())\n\n\n(if(a) b())', - '(\n if (a) b())\n(\n if (a) b())'); - - - - bt("if\n(a)\nb();", "if (a) b();"); - bt('var a =\nfoo', 'var a = foo'); - bt('var a = {\n"a":1,\n"b":2}', "var a = {\n \"a\": 1,\n \"b\": 2\n}"); - bt("var a = {\n'a':1,\n'b':2}", "var a = {\n 'a': 1,\n 'b': 2\n}"); - bt('var a = /*i*/ "b";'); - bt('var a = /*i*/\n"b";', 'var a = /*i*/ "b";'); - bt('var a = /*i*/\nb;', 'var a = /*i*/ b;'); - bt('{\n\n\n"x"\n}', '{\n "x"\n}'); - bt('if(a &&\nb\n||\nc\n||d\n&&\ne) e = f', 'if (a && b || c || d && e) e = f'); - bt('if(a &&\n(b\n||\nc\n||d)\n&&\ne) e = f', 'if (a && (b || c || d) && e) e = f'); - test_fragment('\n\n"x"', '"x"'); - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\nb = 2;'); - - opts.preserve_newlines = true; - bt('if (foo) // comment\n bar();'); - bt('if (foo) // comment\n (bar());'); - bt('if (foo) // comment\n (bar());'); - bt('if (foo) // comment\n /asdf/;'); - bt('foo = {\n x: y, // #44\n w: z // #44\n}'); - bt('switch (x) {\n case "a":\n // comment on newline\n break;\n case "b": // comment on same line\n break;\n}'); - bt('this.type =\n this.options =\n // comment\n this.enabled null;'); - bt('someObj\n .someFunc1()\n // This comment should not break the indent\n .someFunc2();'); - - bt('if (true ||\n!true) return;', 'if (true ||\n !true) return;'); - - // these aren't ready yet. - // bt('if (foo) // comment\n bar() /*i*/ + baz() /*j\n*/ + asdf();'); - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\na();', - 'if (foo)\n if (bar)\n if (baz)\n whee();\na();'); - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\nelse\na();', - 'if (foo)\n if (bar)\n if (baz)\n whee();\n else\n a();'); - bt('if (foo) bar();\nelse\ncar();', - 'if (foo) bar();\nelse\n car();'); - - bt('if (foo) if (bar) if (baz);\na();', - 'if (foo)\n if (bar)\n if (baz);\na();'); - bt('if (foo) if (bar) if (baz) whee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();'); - bt('if (foo) a()\nif (bar) if (baz) whee();\na();', - 'if (foo) a()\nif (bar)\n if (baz) whee();\na();'); - bt('if (foo);\nif (bar) if (baz) whee();\na();', - 'if (foo);\nif (bar)\n if (baz) whee();\na();'); - bt('if (options)\n' + - ' for (var p in options)\n' + - ' this[p] = options[p];'); - bt('if (options) for (var p in options) this[p] = options[p];', - 'if (options)\n for (var p in options) this[p] = options[p];'); - - bt('if (options) do q(); while (b());', - 'if (options)\n do q(); while (b());'); - bt('if (options) do; while (b());', - 'if (options)\n do; while (b());'); - bt('if (options) while (b()) q();', - 'if (options)\n while (b()) q();'); - bt('if (options) do while (b()) q(); while (a());', - 'if (options)\n do\n while (b()) q(); while (a());'); - - bt('function f(a, b, c,\nd, e) {}', - 'function f(a, b, c,\n d, e) {}'); - - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}'); - bt('function f(a,b) {if(a) b()}\n\n\n\nfunction g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\n\n\nfunction g(a, b) {\n if (!a) b()\n}'); - // This is not valid syntax, but still want to behave reasonably and not side-effect - bt('(if(a) b())(if(a) b())', - '(\n if (a) b())(\n if (a) b())'); - bt('(if(a) b())\n\n\n(if(a) b())', - '(\n if (a) b())\n\n\n(\n if (a) b())'); - - // space between functions - bt('/*\n * foo\n */\nfunction foo() {}'); - bt('// a nice function\nfunction foo() {}'); - bt('function foo() {}\nfunction foo() {}', - 'function foo() {}\n\nfunction foo() {}' - ); - - bt('[\n function() {}\n]'); - - - - bt("if\n(a)\nb();", "if (a)\n b();"); - bt('var a =\nfoo', 'var a =\n foo'); - bt('var a = {\n"a":1,\n"b":2}', "var a = {\n \"a\": 1,\n \"b\": 2\n}"); - bt("var a = {\n'a':1,\n'b':2}", "var a = {\n 'a': 1,\n 'b': 2\n}"); - bt('var a = /*i*/ "b";'); - bt('var a = /*i*/\n"b";', 'var a = /*i*/\n "b";'); - bt('var a = /*i*/\nb;', 'var a = /*i*/\n b;'); - bt('{\n\n\n"x"\n}', '{\n\n\n "x"\n}'); - bt('if(a &&\nb\n||\nc\n||d\n&&\ne) e = f', 'if (a &&\n b ||\n c || d &&\n e) e = f'); - bt('if(a &&\n(b\n||\nc\n||d)\n&&\ne) e = f', 'if (a &&\n (b ||\n c || d) &&\n e) e = f'); - test_fragment('\n\n"x"', '"x"'); - - // this beavior differs between js and python, defaults to unlimited in js, 10 in python - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;'); - opts.max_preserve_newlines = 8; - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\n\n\n\n\n\n\n\nb = 2;'); - - // Test the option to have spaces within parens - opts.space_in_paren = false; - bt('if(p) foo(a,b)', 'if (p) foo(a, b)'); - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while (true) {\n willThrow()\n }\n} catch (result) switch (result) {\n case 1:\n ++result\n}'); - bt('((e/((a+(b)*c)-d))^2)*5;', '((e / ((a + (b) * c) - d)) ^ 2) * 5;'); - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}'); - bt('a=[];', - 'a = [];'); - bt('a=[b,c,d];', - 'a = [b, c, d];'); - bt('a= f[b];', - 'a = f[b];'); - opts.space_in_paren = true; - bt('if(p) foo(a,b)', 'if ( p ) foo( a, b )'); - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while ( true ) {\n willThrow()\n }\n} catch ( result ) switch ( result ) {\n case 1:\n ++result\n}'); - bt('((e/((a+(b)*c)-d))^2)*5;', '( ( e / ( ( a + ( b ) * c ) - d ) ) ^ 2 ) * 5;'); - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f( a, b ) {\n if ( a ) b()\n}\n\nfunction g( a, b ) {\n if ( !a ) b()\n}'); - bt('a=[];', - 'a = [];'); - bt('a=[b,c,d];', - 'a = [ b, c, d ];'); - bt('a= f[b];', - 'a = f[ b ];'); - opts.space_in_empty_paren = true; - bt('if(p) foo(a,b)', 'if ( p ) foo( a, b )'); - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while ( true ) {\n willThrow( )\n }\n} catch ( result ) switch ( result ) {\n case 1:\n ++result\n}'); - bt('((e/((a+(b)*c)-d))^2)*5;', '( ( e / ( ( a + ( b ) * c ) - d ) ) ^ 2 ) * 5;'); - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f( a, b ) {\n if ( a ) b( )\n}\n\nfunction g( a, b ) {\n if ( !a ) b( )\n}'); - bt('a=[];', - 'a = [ ];'); - bt('a=[b,c,d];', - 'a = [ b, c, d ];'); - bt('a= f[b];', - 'a = f[ b ];'); - opts.space_in_empty_paren = false; - opts.space_in_paren = false; - - // Test template strings - bt('`This is a ${template} string.`', '`This is a ${template} string.`'); - bt('`This\n is\n a\n ${template}\n string.`', '`This\n is\n a\n ${template}\n string.`'); - bt('a = `This is a continuation\\\nstring.`', 'a = `This is a continuation\\\nstring.`'); - bt('a = "This is a continuation\\\nstring."', 'a = "This is a continuation\\\nstring."'); - - Urlencoded.run_tests(sanitytest); - } - - beautifier_tests(); -} - -if (typeof exports !== "undefined") { - exports.run_javascript_tests = run_javascript_tests; -} diff --git a/node_modules/js-beautify/test/template/python-css.mustache b/node_modules/js-beautify/test/template/python-css.mustache deleted file mode 100644 index 09f9715..0000000 --- a/node_modules/js-beautify/test/template/python-css.mustache +++ /dev/null @@ -1,225 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import unittest -import cssbeautifier - - -class CSSBeautifierTest(unittest.TestCase): - - def resetOptions(self): - false = False - true = True - self.options = cssbeautifier.default_options() - self.options.indent_size = 1 - self.options.indent_char = '\t' - self.options.selector_separator_newline = true - self.options.end_with_newline = false - self.options.newline_between_rules = false - - def testGenerated(self): - self.resetOptions() - test_fragment = self.decodesto - t = self.decodesto - - false = False - true = True - -{{#default_options}} self.options.{{name}} = {{&value}} -{{/default_options}} -{{#groups}} - {{^matrix}} - - # {{&name}} - {{#options}} - self.options.{{name}} = {{&value}} - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}} - {{/tests}} - {{/matrix}} - {{#matrix}} - - # {{&name}} - ({{#matrix_context_string}}.{{/matrix_context_string}}) - {{#options}} - self.options.{{name}} = {{&value}} - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}} - {{/tests}} - {{/matrix}} -{{/groups}} - - - def testNewline(self): - self.resetOptions() - t = self.decodesto - - self.options.end_with_newline = True - t("", "\n") - t("\n", "\n") - t(".tabs{}\n", ".tabs {}\n") - t(".tabs{}", ".tabs {}\n") - - def testBasics(self): - self.resetOptions() - t = self.decodesto - - t("", "") - t("\n", "") - t(".tabs{}\n", ".tabs {}") - t(".tabs{}", ".tabs {}") - t(".tabs{color:red}", ".tabs {\n\tcolor: red\n}") - t(".tabs{color:rgb(255, 255, 0)}", ".tabs {\n\tcolor: rgb(255, 255, 0)\n}") - t(".tabs{background:url('back.jpg')}", ".tabs {\n\tbackground: url('back.jpg')\n}") - t("#bla, #foo{color:red}", "#bla,\n#foo {\n\tcolor: red\n}") - t("@media print {.tab{}}", "@media print {\n\t.tab {}\n}") - t("@media print {.tab{background-image:url(foo@2x.png)}}", "@media print {\n\t.tab {\n\t\tbackground-image: url(foo@2x.png)\n\t}\n}") - - t("a:before {\n" + - "\tcontent: 'a{color:black;}\"\"\\'\\'\"\\n\\n\\na{color:black}\';\n" + - "}"); - - # may not eat the space before "[" - t('html.js [data-custom="123"] {\n\topacity: 1.00;\n}') - t('html.js *[data-custom="123"] {\n\topacity: 1.00;\n}') - - # lead-in whitespace determines base-indent. - # lead-in newlines are stripped. - t("\n\na, img {padding: 0.2px}", "a,\nimg {\n\tpadding: 0.2px\n}") - t(" a, img {padding: 0.2px}", " a,\n img {\n \tpadding: 0.2px\n }") - t(" \t \na, img {padding: 0.2px}", " \t a,\n \t img {\n \t \tpadding: 0.2px\n \t }") - t("\n\n a, img {padding: 0.2px}", "a,\nimg {\n\tpadding: 0.2px\n}") - - def testSeperateSelectors(self): - self.resetOptions() - t = self.decodesto - - t("#bla, #foo{color:red}", "#bla,\n#foo {\n\tcolor: red\n}") - t("a, img {padding: 0.2px}", "a,\nimg {\n\tpadding: 0.2px\n}") - - - def testBlockNesting(self): - self.resetOptions() - t = self.decodesto - - t("#foo {\n\tbackground-image: url(foo@2x.png);\n\t@font-face {\n\t\tfont-family: 'Bitstream Vera Serif Bold';\n\t\tsrc: url('http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf');\n\t}\n}") - t("@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo@2x.png);\n\t}\n\t@font-face {\n\t\tfont-family: 'Bitstream Vera Serif Bold';\n\t\tsrc: url('http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf');\n\t}\n}") - -# @font-face { -# font-family: 'Bitstream Vera Serif Bold'; -# src: url('http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf'); -# } -# @media screen { -# #foo:hover { -# background-image: url(foo.png); -# } -# @media screen and (min-device-pixel-ratio: 2) { -# @font-face { -# font-family: 'Helvetica Neue' -# } -# #foo:hover { -# background-image: url(foo@2x.png); -# } -# } -# } - t("@font-face {\n\tfont-family: 'Bitstream Vera Serif Bold';\n\tsrc: url('http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf');\n}\n@media screen {\n\t#foo:hover {\n\t\tbackground-image: url(foo.png);\n\t}\n\t@media screen and (min-device-pixel-ratio: 2) {\n\t\t@font-face {\n\t\t\tfont-family: 'Helvetica Neue'\n\t\t}\n\t\t#foo:hover {\n\t\t\tbackground-image: url(foo@2x.png);\n\t\t}\n\t}\n}") - - - def testOptions(self): - self.resetOptions() - self.options.indent_size = 2 - self.options.indent_char = ' ' - self.options.selector_separator_newline = False - t = self.decodesto - - # pseudo-classes and pseudo-elements - t("#foo:hover {\n background-image: url(foo@2x.png)\n}") - t("#foo *:hover {\n color: purple\n}") - t("::selection {\n color: #ff0000;\n}") - - # TODO: don't break nested pseduo-classes - t("@media screen {.tab,.bat:hover {color:red}}", "@media screen {\n .tab, .bat:hover {\n color: red\n }\n}") - - # particular edge case with braces and semicolons inside tags that allows custom text - t( "a:not(\"foobar\\\";{}omg\"){\ncontent: 'example\\';{} text';\ncontent: \"example\\\";{} text\";}", - "a:not(\"foobar\\\";{}omg\") {\n content: 'example\\';{} text';\n content: \"example\\\";{} text\";\n}") - - def testLessCss(self): - self.resetOptions() - t = self.decodesto - - t('.well{ \n @well-bg:@bg-color;@well-fg:@fg-color;}','.well {\n\t@well-bg: @bg-color;\n\t@well-fg: @fg-color;\n}') - t('.well {&.active {\nbox-shadow: 0 1px 1px @border-color, 1px 0 1px @border-color;}}', - '.well {\n' + - '\t&.active {\n' + - '\t\tbox-shadow: 0 1px 1px @border-color, 1px 0 1px @border-color;\n' + - '\t}\n' + - '}') - t('a {\n' + - '\tcolor: blue;\n' + - '\t&:hover {\n' + - '\t\tcolor: green;\n' + - '\t}\n' + - '\t& & &&&.active {\n' + - '\t\tcolor: green;\n' + - '\t}\n' + - '}') - - # Not sure if this is sensible - # but I believe it is correct to not remove the space in "&: hover". - t('a {\n' + - '\t&: hover {\n' + - '\t\tcolor: green;\n' + - '\t}\n' + - '}'); - - # import - t('@import "test";'); - - # don't break nested pseudo-classes - t("a:first-child{color:red;div:first-child{color:black;}}", - "a:first-child {\n\tcolor: red;\n\tdiv:first-child {\n\t\tcolor: black;\n\t}\n}"); - - # handle SASS/LESS parent reference - t("div{&:first-letter {text-transform: uppercase;}}", - "div {\n\t&:first-letter {\n\t\ttext-transform: uppercase;\n\t}\n}"); - - # nested modifiers (&:hover etc) - t(".tabs{&:hover{width:10px;}}", ".tabs {\n\t&:hover {\n\t\twidth: 10px;\n\t}\n}") - t(".tabs{&.big{width:10px;}}", ".tabs {\n\t&.big {\n\t\twidth: 10px;\n\t}\n}") - t(".tabs{&>big{width:10px;}}", ".tabs {\n\t&>big {\n\t\twidth: 10px;\n\t}\n}") - t(".tabs{&+.big{width:10px;}}", ".tabs {\n\t&+.big {\n\t\twidth: 10px;\n\t}\n}") - - # nested rules - t(".tabs{.child{width:10px;}}", ".tabs {\n\t.child {\n\t\twidth: 10px;\n\t}\n}") - - # variables - t("@myvar:10px;.tabs{width:10px;}", "@myvar: 10px;\n.tabs {\n\twidth: 10px;\n}") - t("@myvar:10px; .tabs{width:10px;}", "@myvar: 10px;\n.tabs {\n\twidth: 10px;\n}") - - def decodesto(self, input, expectation=None): - if expectation == None: - expectation = input - - self.assertMultiLineEqual( - cssbeautifier.beautify(input, self.options), expectation) - - # if the expected is different from input, run it again - # expected output should be unchanged when run twice. - if not expectation != input: - self.assertMultiLineEqual( - cssbeautifier.beautify(expectation, self.options), expectation) - - # Everywhere we do newlines, they should be replaced with opts.eol - self.options.eol = '\r\\n'; - expectation = expectation.replace('\n', '\r\n') - self.assertMultiLineEqual( - cssbeautifier.beautify(input, self.options), expectation) - input = input.replace('\n', '\r\n') - self.assertMultiLineEqual( - cssbeautifier.beautify(input, self.options), expectation) - self.options.eol = '\n' - -if __name__ == '__main__': - unittest.main() diff --git a/node_modules/js-beautify/test/template/python-javascript.mustache b/node_modules/js-beautify/test/template/python-javascript.mustache deleted file mode 100644 index 6aeda66..0000000 --- a/node_modules/js-beautify/test/template/python-javascript.mustache +++ /dev/null @@ -1,1267 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import re -import unittest -import jsbeautifier -import six - -class TestJSBeautifier(unittest.TestCase): - def test_unescape(self): - # Test cases contributed by - test_fragment = self.decodesto - bt = self.bt - - bt('"\\\\s"') # == "\\s" in the js source - bt("'\\\\s'") # == '\\s' in the js source - bt("'\\\\\\s'") # == '\\\s' in the js source - bt("'\\s'") # == '\s' in the js source - bt('"•"') - bt('"—"') - bt('"\\x41\\x42\\x43\\x01"', '"\\x41\\x42\\x43\\x01"') - bt('"\\u2022"', '"\\u2022"') - bt('a = /\s+/') - #bt('a = /\\x41/','a = /A/') - bt('"\\u2022";a = /\s+/;"\\x41\\x42\\x43\\x01".match(/\\x41/);','"\\u2022";\na = /\s+/;\n"\\x41\\x42\\x43\\x01".match(/\\x41/);') - bt('"\\x22\\x27",\'\\x22\\x27\',"\\x5c",\'\\x5c\',"\\xff and \\xzz","unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"', '"\\x22\\x27", \'\\x22\\x27\', "\\x5c", \'\\x5c\', "\\xff and \\xzz", "unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"') - - self.options.unescape_strings = True - - bt('"\\x41\\x42\\x43\\x01"', '"ABC\\x01"') - bt('"\\u2022"', '"\\u2022"') - bt('a = /\s+/') - bt('"\\u2022";a = /\s+/;"\\x41\\x42\\x43\\x01".match(/\\x41/);','"\\u2022";\na = /\s+/;\n"ABC\\x01".match(/\\x41/);') - bt('"\\x22\\x27",\'\\x22\\x27\',"\\x5c",\'\\x5c\',"\\xff and \\xzz","unicode \\u0000 \\u0022 \\u0027 \\u005c \\uffff \\uzzzz"', '"\\"\'", \'"\\\'\', "\\\\", \'\\\\\', "\\xff and \\xzz", "unicode \\u0000 \\" \' \\\\ \\uffff \\uzzzz"') - - self.options.unescape_strings = False - - - def test_beautifier(self): - test_fragment = self.decodesto - bt = self.bt - - true = True - false = False - - def unicode_char(value): - return six.unichr(value) - -{{#default_options}} self.options.{{name}} = {{&value}} -{{/default_options}} -{{#groups}} - {{^matrix}} - - # {{&name}} - {{#options}} - self.options.{{name}} = {{&value}} - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}} - {{/tests}} - {{/matrix}} - {{#matrix}} - - # {{&name}} - ({{#matrix_context_string}}.{{/matrix_context_string}}) - {{#options}} - self.options.{{name}} = {{&value}} - {{/options}} - {{#tests}} - {{#test_line}}.{{/test_line}} - {{/tests}} - {{/matrix}} -{{/groups}} - -{{=<% %>=}} - bt('{{}/z/}', "{\n {}\n /z/\n}") -<%={{ }}=%> - - self.options.indent_size = 1; - self.options.indent_char = ' '; - bt('{ one_char() }', "{\n one_char()\n}") - - bt('var a,b=1,c=2', 'var a, b = 1,\n c = 2') - - self.options.indent_size = 4; - self.options.indent_char = ' '; - bt('{ one_char() }', "{\n one_char()\n}") - - self.options.indent_size = 1; - self.options.indent_char = "\t"; - bt('{ one_char() }', "{\n\tone_char()\n}") - bt('x = a ? b : c; x;', 'x = a ? b : c;\nx;') - - #set to something else than it should change to, but with tabs on, should override - self.options.indent_size = 5; - self.options.indent_char = ' '; - self.options.indent_with_tabs = True; - - bt('{ one_char() }', "{\n\tone_char()\n}") - bt('x = a ? b : c; x;', 'x = a ? b : c;\nx;') - - self.options.indent_size = 4; - self.options.indent_char = ' '; - self.options.indent_with_tabs = False; - - self.options.preserve_newlines = False; - bt('var\na=dont_preserve_newlines;', 'var a = dont_preserve_newlines;') - - # make sure the blank line between function definitions stays - # even when preserve_newlines = False - bt('function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}') - bt('function foo() {\n return 1;\n}\nfunction foo() {\n return 1;\n}', - 'function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}' - ) - bt('function foo() {\n return 1;\n}\n\n\nfunction foo() {\n return 1;\n}', - 'function foo() {\n return 1;\n}\n\nfunction foo() {\n return 1;\n}' - ) - - - self.options.preserve_newlines = True; - bt('var\na=do_preserve_newlines;', 'var\n a = do_preserve_newlines;') - bt('// a\n// b\n\n// c\n// d') - bt('if (foo) // comment\n{\n bar();\n}') - - - self.options.keep_array_indentation = False; - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f'\n]") - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i'\n]") - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']", - "a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i'\n]") - bt('var x = [{}\n]', 'var x = [{}]') - bt('var x = [{foo:bar}\n]', 'var x = [{\n foo: bar\n}]') - bt("a = ['something',\n 'completely',\n 'different'];\nif (x);", - "a = ['something',\n 'completely',\n 'different'\n];\nif (x);") - bt("a = ['a','b','c']", "a = ['a', 'b', 'c']") - bt("a = ['a', 'b','c']", "a = ['a', 'b', 'c']") - bt("x = [{'a':0}]", - "x = [{\n 'a': 0\n}]") - bt('{a([[a1]], {b;});}', - '{\n a([\n [a1]\n ], {\n b;\n });\n}') - bt("a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\n[\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n].toString();") - bt("a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n].toString();") - bt("function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}", - "function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}") - bt('function foo() {\n return [\n "one",\n "two"\n ];\n}') - # 4 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}", - "function foo() {\n" + - " return [{\n" + - " one: 'x',\n" + - " two: [{\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }]\n" + - " }];\n" + - "}") - # 3 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}", - "function foo() {\n" + - " return [{\n" + - " one: 'x',\n" + - " two: [{\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }]\n" + - " }];\n" + - "}") - - self.options.keep_array_indentation = True; - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f']") - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']") - bt("a = ['a', 'b', 'c',\n 'd', 'e', 'f',\n 'g', 'h', 'i']") - bt('var x = [{}\n]', 'var x = [{}\n]') - bt('var x = [{foo:bar}\n]', 'var x = [{\n foo: bar\n }\n]') - bt("a = ['something',\n 'completely',\n 'different'];\nif (x);") - bt("a = ['a','b','c']", "a = ['a', 'b', 'c']") - bt("a = ['a', 'b','c']", "a = ['a', 'b', 'c']") - bt("x = [{'a':0}]", - "x = [{\n 'a': 0\n}]") - bt('{a([[a1]], {b;});}', - '{\n a([[a1]], {\n b;\n });\n}') - bt("a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\n [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();") - bt("a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();", - "a();\na = [\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ].toString();") - bt("function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}", - "function() {\n Foo([\n ['sdfsdfsd'],\n ['sdfsdfsdf']\n ]);\n}") - bt('function foo() {\n return [\n "one",\n "two"\n ];\n}') - # 4 spaces per indent input, processed with 4-spaces per indent - bt( "function foo() {\n" + - " return [\n" + - " {\n" + - " one: 'x',\n" + - " two: [\n" + - " {\n" + - " id: 'a',\n" + - " name: 'apple'\n" + - " }, {\n" + - " id: 'b',\n" + - " name: 'banana'\n" + - " }\n" + - " ]\n" + - " }\n" + - " ];\n" + - "}") - # 3 spaces per indent input, processed with 4-spaces per indent - # Should be unchanged, but is not - #445 -# bt( "function foo() {\n" + -# " return [\n" + -# " {\n" + -# " one: 'x',\n" + -# " two: [\n" + -# " {\n" + -# " id: 'a',\n" + -# " name: 'apple'\n" + -# " }, {\n" + -# " id: 'b',\n" + -# " name: 'banana'\n" + -# " }\n" + -# " ]\n" + -# " }\n" + -# " ];\n" + -# "}") - - self.options.keep_array_indentation = False; - - bt('a = //comment\n /regex/;') - - bt('if (a)\n{\nb;\n}\nelse\n{\nc;\n}', 'if (a) {\n b;\n} else {\n c;\n}') - - bt('var a = new function();') - test_fragment('new function') - - # START tests for brace positioning - - # If this is ever supported, update tests for each brace style. - # test_fragment('return\n{', 'return\n{') # can't support this?, but that's an improbable and extreme case anyway. - - self.options.brace_style = 'expand'; - - bt('//case 1\nif (a == 1)\n{}\n//case 2\nelse if (a == 2)\n{}') - bt('if(1){2}else{3}', "if (1)\n{\n 2\n}\nelse\n{\n 3\n}") - bt('try{a();}catch(b){c();}catch(d){}finally{e();}', - "try\n{\n a();\n}\ncatch (b)\n{\n c();\n}\ncatch (d)\n{}\nfinally\n{\n e();\n}") - bt('if(a){b();}else if(c) foo();', - "if (a)\n{\n b();\n}\nelse if (c) foo();") - bt("if (a) {\n// comment\n}else{\n// comment\n}", - "if (a)\n{\n // comment\n}\nelse\n{\n // comment\n}") # if/else statement with empty body - bt('if (x) {y} else { if (x) {y}}', - 'if (x)\n{\n y\n}\nelse\n{\n if (x)\n {\n y\n }\n}') - bt('if (a)\n{\nb;\n}\nelse\n{\nc;\n}', - 'if (a)\n{\n b;\n}\nelse\n{\n c;\n}') - test_fragment(' /*\n* xx\n*/\n// xx\nif (foo) {\n bar();\n}', - ' /*\n * xx\n */\n // xx\n if (foo)\n {\n bar();\n }') - bt('if (foo)\n{}\nelse /regex/.test();') - test_fragment('if (foo) {', 'if (foo)\n{') - test_fragment('foo {', 'foo\n{') - test_fragment('return {', 'return {') # return needs the brace. - test_fragment('return /* inline */ {', 'return /* inline */ {') - test_fragment('return;\n{', 'return;\n{') - bt("throw {}") - bt("throw {\n foo;\n}") - bt('var foo = {}') - bt('function x() {\n foo();\n}zzz', 'function x()\n{\n foo();\n}\nzzz') - test_fragment('a: do {} while (); xxx', 'a: do {} while ();\nxxx') - bt('{a: do {} while (); xxx}', '{\n a: do {} while ();xxx\n}') - bt('var a = new function() {};') - bt('var a = new function a() {};', 'var a = new function a()\n{};') - bt('var a = new function()\n{};', 'var a = new function() {};') - bt('var a = new function a()\n{};') - bt('var a = new function a()\n {},\n b = new function b()\n {};') - bt("foo({\n 'a': 1\n},\n10);", - "foo(\n {\n 'a': 1\n },\n 10);") - bt('(["foo","bar"]).each(function(i) {return i;});', - '(["foo", "bar"]).each(function(i)\n{\n return i;\n});') - bt('(function(i) {return i;})();', - '(function(i)\n{\n return i;\n})();') - bt( "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test( /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - bt( "test(\n" + - "/*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "},\n" + - "/*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test(\n" + - " /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - bt( "test( /*Argument 1*/\n" + - "{\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */\n" + - "{\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test( /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - - self.options.brace_style = 'collapse'; - - bt('//case 1\nif (a == 1) {}\n//case 2\nelse if (a == 2) {}') - bt('if(1){2}else{3}', "if (1) {\n 2\n} else {\n 3\n}") - bt('try{a();}catch(b){c();}catch(d){}finally{e();}', - "try {\n a();\n} catch (b) {\n c();\n} catch (d) {} finally {\n e();\n}") - bt('if(a){b();}else if(c) foo();', - "if (a) {\n b();\n} else if (c) foo();") - bt("if (a) {\n// comment\n}else{\n// comment\n}", - "if (a) {\n // comment\n} else {\n // comment\n}") # if/else statement with empty body - bt('if (x) {y} else { if (x) {y}}', - 'if (x) {\n y\n} else {\n if (x) {\n y\n }\n}') - bt('if (a)\n{\nb;\n}\nelse\n{\nc;\n}', - 'if (a) {\n b;\n} else {\n c;\n}') - test_fragment(' /*\n* xx\n*/\n// xx\nif (foo) {\n bar();\n}', - ' /*\n * xx\n */\n // xx\n if (foo) {\n bar();\n }') - bt('if (foo) {} else /regex/.test();') - test_fragment('if (foo) {', 'if (foo) {') - test_fragment('foo {', 'foo {') - test_fragment('return {', 'return {') # return needs the brace. - test_fragment('return /* inline */ {', 'return /* inline */ {') - test_fragment('return;\n{', 'return; {') - bt("throw {}") - bt("throw {\n foo;\n}") - bt('var foo = {}') - bt('function x() {\n foo();\n}zzz', 'function x() {\n foo();\n}\nzzz') - test_fragment('a: do {} while (); xxx', 'a: do {} while ();\nxxx') - bt('{a: do {} while (); xxx}', '{\n a: do {} while ();xxx\n}') - bt('var a = new function() {};') - bt('var a = new function a() {};') - bt('var a = new function()\n{};', 'var a = new function() {};') - bt('var a = new function a()\n{};', 'var a = new function a() {};') - bt('var a = new function a()\n {},\n b = new function b()\n {};', 'var a = new function a() {},\n b = new function b() {};') - bt("foo({\n 'a': 1\n},\n10);", - "foo({\n 'a': 1\n },\n 10);") - bt('(["foo","bar"]).each(function(i) {return i;});', - '(["foo", "bar"]).each(function(i) {\n return i;\n});') - bt('(function(i) {return i;})();', - '(function(i) {\n return i;\n})();') - bt( "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - bt( "test(\n" + - "/*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "},\n" + - "/*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test(\n" + - " /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - bt( "test( /*Argument 1*/\n" + - "{\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */\n" + - "{\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - - self.options.brace_style = "end-expand"; - - bt('//case 1\nif (a == 1) {}\n//case 2\nelse if (a == 2) {}') - bt('if(1){2}else{3}', "if (1) {\n 2\n}\nelse {\n 3\n}") - bt('try{a();}catch(b){c();}catch(d){}finally{e();}', - "try {\n a();\n}\ncatch (b) {\n c();\n}\ncatch (d) {}\nfinally {\n e();\n}") - bt('if(a){b();}else if(c) foo();', - "if (a) {\n b();\n}\nelse if (c) foo();") - bt("if (a) {\n// comment\n}else{\n// comment\n}", - "if (a) {\n // comment\n}\nelse {\n // comment\n}") # if/else statement with empty body - bt('if (x) {y} else { if (x) {y}}', - 'if (x) {\n y\n}\nelse {\n if (x) {\n y\n }\n}') - bt('if (a)\n{\nb;\n}\nelse\n{\nc;\n}', - 'if (a) {\n b;\n}\nelse {\n c;\n}') - test_fragment(' /*\n* xx\n*/\n// xx\nif (foo) {\n bar();\n}', - ' /*\n * xx\n */\n // xx\n if (foo) {\n bar();\n }') - bt('if (foo) {}\nelse /regex/.test();') - test_fragment('if (foo) {', 'if (foo) {') - test_fragment('foo {', 'foo {') - test_fragment('return {', 'return {') # return needs the brace. - test_fragment('return /* inline */ {', 'return /* inline */ {') - test_fragment('return;\n{', 'return; {') - bt("throw {}") - bt("throw {\n foo;\n}") - bt('var foo = {}') - bt('function x() {\n foo();\n}zzz', 'function x() {\n foo();\n}\nzzz') - test_fragment('a: do {} while (); xxx', 'a: do {} while ();\nxxx') - bt('{a: do {} while (); xxx}', '{\n a: do {} while ();xxx\n}') - bt('var a = new function() {};') - bt('var a = new function a() {};') - bt('var a = new function()\n{};', 'var a = new function() {};') - bt('var a = new function a()\n{};', 'var a = new function a() {};') - bt('var a = new function a()\n {},\n b = new function b()\n {};', 'var a = new function a() {},\n b = new function b() {};') - bt("foo({\n 'a': 1\n},\n10);", - "foo({\n 'a': 1\n },\n 10);") - bt('(["foo","bar"]).each(function(i) {return i;});', - '(["foo", "bar"]).each(function(i) {\n return i;\n});') - bt('(function(i) {return i;})();', - '(function(i) {\n return i;\n})();') - bt( "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - bt( "test(\n" + - "/*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "},\n" + - "/*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test(\n" + - " /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - bt( "test( /*Argument 1*/\n" + - "{\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */\n" + - "{\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - - self.options.brace_style = 'none'; - - bt('//case 1\nif (a == 1)\n{}\n//case 2\nelse if (a == 2)\n{}') - bt('if(1){2}else{3}', "if (1) {\n 2\n} else {\n 3\n}") - bt('try{a();}catch(b){c();}catch(d){}finally{e();}', - "try {\n a();\n} catch (b) {\n c();\n} catch (d) {} finally {\n e();\n}") - bt('if(a){b();}else if(c) foo();', - "if (a) {\n b();\n} else if (c) foo();") - bt("if (a) {\n// comment\n}else{\n// comment\n}", - "if (a) {\n // comment\n} else {\n // comment\n}") # if/else statement with empty body - bt('if (x) {y} else { if (x) {y}}', - 'if (x) {\n y\n} else {\n if (x) {\n y\n }\n}') - bt('if (a)\n{\nb;\n}\nelse\n{\nc;\n}', - 'if (a)\n{\n b;\n}\nelse\n{\n c;\n}') - test_fragment(' /*\n* xx\n*/\n// xx\nif (foo) {\n bar();\n}', - ' /*\n * xx\n */\n // xx\n if (foo) {\n bar();\n }') - bt('if (foo)\n{}\nelse /regex/.test();') - test_fragment('if (foo) {') - test_fragment('foo {') - test_fragment('return {') # return needs the brace. - test_fragment('return /* inline */ {') - test_fragment('return;\n{') - bt("throw {}") - bt("throw {\n foo;\n}") - bt('var foo = {}') - bt('function x() {\n foo();\n}zzz', 'function x() {\n foo();\n}\nzzz') - test_fragment('a: do {} while (); xxx', 'a: do {} while ();\nxxx') - bt('{a: do {} while (); xxx}', '{\n a: do {} while ();xxx\n}') - bt('var a = new function() {};') - bt('var a = new function a() {};') - bt('var a = new function()\n{};', 'var a = new function() {};') - bt('var a = new function a()\n{};') - bt('var a = new function a()\n {},\n b = new function b()\n {};') - bt("foo({\n 'a': 1\n},\n10);", - "foo({\n 'a': 1\n },\n 10);") - bt('(["foo","bar"]).each(function(i) {return i;});', - '(["foo", "bar"]).each(function(i) {\n return i;\n});') - bt('(function(i) {return i;})();', - '(function(i) {\n return i;\n})();') - bt( "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test( /*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - bt( "test(\n" + - "/*Argument 1*/ {\n" + - " 'Value1': '1'\n" + - "},\n" + - "/*Argument 2\n" + - " */ {\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test(\n" + - " /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - bt( "test( /*Argument 1*/\n" + - "{\n" + - " 'Value1': '1'\n" + - "}, /*Argument 2\n" + - " */\n" + - "{\n" + - " 'Value2': '2'\n" + - "});", - # expected - "test( /*Argument 1*/\n" + - " {\n" + - " 'Value1': '1'\n" + - " },\n" + - " /*Argument 2\n" + - " */\n" + - " {\n" + - " 'Value2': '2'\n" + - " });") - # END tests for brace position - - self.options.brace_style = 'collapse'; - - test_fragment('roo = {\n /*\n ****\n FOO\n ****\n */\n BAR: 0\n};') - test_fragment("if (zz) {\n // ....\n}\n(function") - - self.options.preserve_newlines = True; - bt('var a = 42; // foo\n\nvar b;') - bt('var a = 42; // foo\n\n\nvar b;') - bt("var a = 'foo' +\n 'bar';") - bt("var a = \"foo\" +\n \"bar\";") - - bt('"foo""bar""baz"', '"foo"\n"bar"\n"baz"') - bt("'foo''bar''baz'", "'foo'\n'bar'\n'baz'") - bt("{\n get foo() {}\n}") - bt("{\n var a = get\n foo();\n}") - bt("{\n set foo() {}\n}") - bt("{\n var a = set\n foo();\n}") - bt("var x = {\n get function()\n}") - bt("var x = {\n set function()\n}") - - # According to my current research get/set have no special meaning outside of an object literal - bt("var x = set\n\na() {}", "var x = set\n\na() {}") - bt("var x = set\n\nfunction() {}", "var x = set\n\nfunction() {}") - - bt('') - bt(' - bt('for () /abc/.test()') - bt('if (k) /aaa/m.test(v) && l();') - bt('switch (true) {\n case /swf/i.test(foo):\n bar();\n}') - bt('createdAt = {\n type: Date,\n default: Date.now\n}') - bt('switch (createdAt) {\n case a:\n Date,\n default:\n Date.now\n}') - - bt('return function();') - bt('var a = function();') - bt('var a = 5 + function();') - - bt('{\n foo // something\n ,\n bar // something\n baz\n}') - bt('function a(a) {} function b(b) {} function c(c) {}', 'function a(a) {}\n\nfunction b(b) {}\n\nfunction c(c) {}') - - - bt('3.*7;', '3. * 7;') - bt('a = 1.e-64 * 0.5e+4 / 6e-23;') - bt('import foo.*;', 'import foo.*;') # actionscript's import - test_fragment('function f(a: a, b: b)') # actionscript - bt('foo(a, function() {})') - bt('foo(a, /regex/)') - - bt('/* foo */\n"x"') - - self.options.break_chained_methods = False - self.options.preserve_newlines = False - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat)') - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat);\nfoo.bar().baz().cucumber(fat)') - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo.bar().baz().cucumber(fat)\nfoo.bar().baz().cucumber(fat)') - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this.something = foo.bar().baz().cucumber(fat)') - bt('this.something.xxx = foo.moo.bar()') - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this.something.xxx = foo.moo.bar()') - - self.options.break_chained_methods = False - self.options.preserve_newlines = True - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat)') - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat);\nfoo.bar().baz().cucumber(fat)') - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz().cucumber(fat)\nfoo.bar().baz().cucumber(fat)') - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this\n .something = foo.bar()\n .baz().cucumber(fat)') - bt('this.something.xxx = foo.moo.bar()') - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this\n .something\n .xxx = foo.moo\n .bar()') - - self.options.break_chained_methods = True - self.options.preserve_newlines = False - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat)') - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat);\nfoo.bar()\n .baz()\n .cucumber(fat)') - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo.bar()\n .baz()\n .cucumber(fat)\nfoo.bar()\n .baz()\n .cucumber(fat)') - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this.something = foo.bar()\n .baz()\n .cucumber(fat)') - bt('this.something.xxx = foo.moo.bar()') - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this.something.xxx = foo.moo.bar()') - - self.options.break_chained_methods = True - self.options.preserve_newlines = True - bt('foo\n.bar()\n.baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat)') - bt('foo\n.bar()\n.baz().cucumber(fat); foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat);\nfoo.bar()\n .baz()\n .cucumber(fat)') - bt('foo\n.bar()\n.baz().cucumber(fat)\n foo.bar().baz().cucumber(fat)', 'foo\n .bar()\n .baz()\n .cucumber(fat)\nfoo.bar()\n .baz()\n .cucumber(fat)') - bt('this\n.something = foo.bar()\n.baz().cucumber(fat)', 'this\n .something = foo.bar()\n .baz()\n .cucumber(fat)') - bt('this.something.xxx = foo.moo.bar()') - bt('this\n.something\n.xxx = foo.moo\n.bar()', 'this\n .something\n .xxx = foo.moo\n .bar()') - self.options.break_chained_methods = False - self.options.preserve_newlines = False - - - # Line wrap test intputs - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - wrap_input_1=('foo.bar().baz().cucumber((fat && "sassy") || (leans\n&& mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}') - - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - wrap_input_2=('{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") || (leans\n&& mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n.but_this_can\n' + - ' if (wraps_can_occur && inside_an_if_block) that_is_\n.okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - ' }' + - '}') - - self.options.preserve_newlines = False - self.options.wrap_line_length = 0 - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - # expected # - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}') - - self.options.wrap_line_length = 70 - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - # expected # - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap.but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}') - - self.options.wrap_line_length = 40 - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - # expected # - 'foo.bar().baz().cucumber((fat &&\n' + - ' "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}') - - self.options.wrap_line_length = 41 - # NOTE: wrap is only best effort - line continues until next wrap point is found. - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - # expected # - 'foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}') - - - self.options.wrap_line_length = 45 - # NOTE: wrap is only best effort - line continues until next wrap point is found. - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_2, - # expected # - '{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - ' if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_.okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - ' }\n'+ - '}') - - self.options.preserve_newlines = True - self.options.wrap_line_length = 0 - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - # expected # - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}') - - - self.options.wrap_line_length = 70 - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - # expected # - 'foo.bar().baz().cucumber((fat && "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur && inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token + 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap + but_this_can,\n' + - ' propertz: first_token_should_never_wrap + !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" + "but_this_can"\n' + - '}') - - - self.options.wrap_line_length = 40 - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - # expected # - 'foo.bar().baz().cucumber((fat &&\n' + - ' "sassy") || (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}') - - self.options.wrap_line_length = 41 - # NOTE: wrap is only best effort - line continues until next wrap point is found. - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_1, - # expected # - 'foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - 'Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - 'if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - 'object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - '}') - - self.options.wrap_line_length = 45 - # NOTE: wrap is only best effort - line continues until next wrap point is found. - #..............---------1---------2---------3---------4---------5---------6---------7 - #..............1234567890123456789012345678901234567890123456789012345678901234567890 - test_fragment(wrap_input_2, - # expected # - '{\n' + - ' foo.bar().baz().cucumber((fat && "sassy") ||\n' + - ' (leans && mean));\n' + - ' Test_very_long_variable_name_this_should_never_wrap\n' + - ' .but_this_can\n' + - ' if (wraps_can_occur &&\n' + - ' inside_an_if_block) that_is_\n' + - ' .okay();\n' + - ' object_literal = {\n' + - ' propertx: first_token +\n' + - ' 12345678.99999E-6,\n' + - ' property: first_token_should_never_wrap +\n' + - ' but_this_can,\n' + - ' propertz: first_token_should_never_wrap +\n' + - ' !but_this_can,\n' + - ' proper: "first_token_should_never_wrap" +\n' + - ' "but_this_can"\n' + - ' }\n'+ - '}') - - self.options.wrap_line_length = 0 - - self.options.preserve_newlines = False - bt('if (foo) // comment\n bar();') - bt('if (foo) // comment\n (bar());') - bt('if (foo) // comment\n (bar());') - bt('if (foo) // comment\n /asdf/;') - bt('this.oa = new OAuth(\n' + - ' _requestToken,\n' + - ' _accessToken,\n' + - ' consumer_key\n' + - ');', - 'this.oa = new OAuth(_requestToken, _accessToken, consumer_key);') - bt('foo = {\n x: y, // #44\n w: z // #44\n}') - bt('switch (x) {\n case "a":\n // comment on newline\n break;\n case "b": // comment on same line\n break;\n}') - bt('this.type =\n this.options =\n // comment\n this.enabled null;', - 'this.type = this.options =\n // comment\n this.enabled null;') - bt('someObj\n .someFunc1()\n // This comment should not break the indent\n .someFunc2();', - 'someObj.someFunc1()\n // This comment should not break the indent\n .someFunc2();') - - bt('if (true ||\n!true) return;', 'if (true || !true) return;') - - # these aren't ready yet. - #bt('if (foo) // comment\n bar() /*i*/ + baz() /*j\n*/ + asdf();') - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();') - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\nelse\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\n else a();') - bt('if (foo)\nbar();\nelse\ncar();', - 'if (foo) bar();\nelse car();') - - bt('if (foo) if (bar) if (baz);\na();', - 'if (foo)\n if (bar)\n if (baz);\na();') - bt('if (foo) if (bar) if (baz) whee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();') - bt('if (foo) a()\nif (bar) if (baz) whee();\na();', - 'if (foo) a()\nif (bar)\n if (baz) whee();\na();') - bt('if (foo);\nif (bar) if (baz) whee();\na();', - 'if (foo);\nif (bar)\n if (baz) whee();\na();') - bt('if (options)\n' + - ' for (var p in options)\n' + - ' this[p] = options[p];', - 'if (options)\n'+ - ' for (var p in options) this[p] = options[p];') - bt('if (options) for (var p in options) this[p] = options[p];', - 'if (options)\n for (var p in options) this[p] = options[p];') - - bt('if (options) do q(); while (b());', - 'if (options)\n do q(); while (b());') - bt('if (options) while (b()) q();', - 'if (options)\n while (b()) q();') - bt('if (options) do while (b()) q(); while (a());', - 'if (options)\n do\n while (b()) q(); while (a());') - - bt('function f(a, b, c,\nd, e) {}', - 'function f(a, b, c, d, e) {}') - - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}') - bt('function f(a,b) {if(a) b()}\n\n\n\nfunction g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}') - # This is not valid syntax, but still want to behave reasonably and not side-effect - bt('(if(a) b())(if(a) b())', - '(\n if (a) b())(\n if (a) b())') - bt('(if(a) b())\n\n\n(if(a) b())', - '(\n if (a) b())\n(\n if (a) b())') - - # space between functions - bt('/*\n * foo\n */\nfunction foo() {}') - bt('// a nice function\nfunction foo() {}') - bt('function foo() {}\nfunction foo() {}', - 'function foo() {}\n\nfunction foo() {}' - ) - - bt('[\n function() {}\n]') - - - bt("if\n(a)\nb();", "if (a) b();") - bt('var a =\nfoo', 'var a = foo') - bt('var a = {\n"a":1,\n"b":2}', "var a = {\n \"a\": 1,\n \"b\": 2\n}") - bt("var a = {\n'a':1,\n'b':2}", "var a = {\n 'a': 1,\n 'b': 2\n}") - bt('var a = /*i*/ "b";') - bt('var a = /*i*/\n"b";', 'var a = /*i*/ "b";') - bt('var a = /*i*/\nb;', 'var a = /*i*/ b;') - bt('{\n\n\n"x"\n}', '{\n "x"\n}') - bt('if(a &&\nb\n||\nc\n||d\n&&\ne) e = f', 'if (a && b || c || d && e) e = f') - bt('if(a &&\n(b\n||\nc\n||d)\n&&\ne) e = f', 'if (a && (b || c || d) && e) e = f') - test_fragment('\n\n"x"', '"x"') - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\nb = 2;') - - - self.options.preserve_newlines = True - bt('if (foo) // comment\n bar();') - bt('if (foo) // comment\n (bar());') - bt('if (foo) // comment\n (bar());') - bt('if (foo) // comment\n /asdf/;') - bt('this.oa = new OAuth(\n' + - ' _requestToken,\n' + - ' _accessToken,\n' + - ' consumer_key\n' + - ');') - bt('foo = {\n x: y, // #44\n w: z // #44\n}') - bt('switch (x) {\n case "a":\n // comment on newline\n break;\n case "b": // comment on same line\n break;\n}') - bt('this.type =\n this.options =\n // comment\n this.enabled null;') - bt('someObj\n .someFunc1()\n // This comment should not break the indent\n .someFunc2();') - - bt('if (true ||\n!true) return;', 'if (true ||\n !true) return;') - - # these aren't ready yet. - # bt('if (foo) // comment\n bar() /*i*/ + baz() /*j\n*/ + asdf();') - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\na();', - 'if (foo)\n if (bar)\n if (baz)\n whee();\na();') - bt('if\n(foo)\nif\n(bar)\nif\n(baz)\nwhee();\nelse\na();', - 'if (foo)\n if (bar)\n if (baz)\n whee();\n else\n a();') - bt('if (foo) bar();\nelse\ncar();', - 'if (foo) bar();\nelse\n car();') - - bt('if (foo) if (bar) if (baz);\na();', - 'if (foo)\n if (bar)\n if (baz);\na();') - bt('if (foo) if (bar) if (baz) whee();\na();', - 'if (foo)\n if (bar)\n if (baz) whee();\na();') - bt('if (foo) a()\nif (bar) if (baz) whee();\na();', - 'if (foo) a()\nif (bar)\n if (baz) whee();\na();') - bt('if (foo);\nif (bar) if (baz) whee();\na();', - 'if (foo);\nif (bar)\n if (baz) whee();\na();') - bt('if (options)\n' + - ' for (var p in options)\n' + - ' this[p] = options[p];') - bt('if (options) for (var p in options) this[p] = options[p];', - 'if (options)\n for (var p in options) this[p] = options[p];') - - bt('if (options) do q(); while (b());', - 'if (options)\n do q(); while (b());') - bt('if (options) do; while (b());', - 'if (options)\n do; while (b());') - bt('if (options) while (b()) q();', - 'if (options)\n while (b()) q();') - bt('if (options) do while (b()) q(); while (a());', - 'if (options)\n do\n while (b()) q(); while (a());') - - bt('function f(a, b, c,\nd, e) {}', - 'function f(a, b, c,\n d, e) {}') - - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}') - bt('function f(a,b) {if(a) b()}\n\n\n\nfunction g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\n\n\nfunction g(a, b) {\n if (!a) b()\n}') - # This is not valid syntax, but still want to behave reasonably and not side-effect - bt('(if(a) b())(if(a) b())', - '(\n if (a) b())(\n if (a) b())') - bt('(if(a) b())\n\n\n(if(a) b())', - '(\n if (a) b())\n\n\n(\n if (a) b())') - - - bt("if\n(a)\nb();", "if (a)\n b();") - bt('var a =\nfoo', 'var a =\n foo') - bt('var a = {\n"a":1,\n"b":2}', "var a = {\n \"a\": 1,\n \"b\": 2\n}") - bt("var a = {\n'a':1,\n'b':2}", "var a = {\n 'a': 1,\n 'b': 2\n}") - bt('var a = /*i*/ "b";') - bt('var a = /*i*/\n"b";', 'var a = /*i*/\n "b";') - bt('var a = /*i*/\nb;', 'var a = /*i*/\n b;') - bt('{\n\n\n"x"\n}', '{\n\n\n "x"\n}') - bt('if(a &&\nb\n||\nc\n||d\n&&\ne) e = f', 'if (a &&\n b ||\n c || d &&\n e) e = f') - bt('if(a &&\n(b\n||\nc\n||d)\n&&\ne) e = f', 'if (a &&\n (b ||\n c || d) &&\n e) e = f') - test_fragment('\n\n"x"', '"x"') - # this beavior differs between js and python, defaults to unlimited in js, 10 in python - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\n\n\n\n\n\n\n\n\n\nb = 2;') - self.options.max_preserve_newlines = 8; - bt('a = 1;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nb = 2;', - 'a = 1;\n\n\n\n\n\n\n\nb = 2;') - - # Test the option to have spaces within parens - self.options.space_in_paren = False - self.options.space_in_empty_paren = False - bt('if(p) foo(a,b)', 'if (p) foo(a, b)') - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while (true) {\n willThrow()\n }\n} catch (result) switch (result) {\n case 1:\n ++result\n}') - bt('((e/((a+(b)*c)-d))^2)*5;', '((e / ((a + (b) * c) - d)) ^ 2) * 5;') - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f(a, b) {\n if (a) b()\n}\n\nfunction g(a, b) {\n if (!a) b()\n}') - bt('a=[];', - 'a = [];') - bt('a=[b,c,d];', - 'a = [b, c, d];') - bt('a= f[b];', - 'a = f[b];') - - self.options.space_in_paren = True - bt('if(p) foo(a,b)', 'if ( p ) foo( a, b )') - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while ( true ) {\n willThrow()\n }\n} catch ( result ) switch ( result ) {\n case 1:\n ++result\n}') - bt('((e/((a+(b)*c)-d))^2)*5;', '( ( e / ( ( a + ( b ) * c ) - d ) ) ^ 2 ) * 5;') - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f( a, b ) {\n if ( a ) b()\n}\n\nfunction g( a, b ) {\n if ( !a ) b()\n}') - bt('a=[ ];', - 'a = [];') - bt('a=[b,c,d];', - 'a = [ b, c, d ];') - bt('a= f[b];', - 'a = f[ b ];') - - self.options.space_in_empty_paren = True - bt('if(p) foo(a,b)', 'if ( p ) foo( a, b )') - bt('try{while(true){willThrow()}}catch(result)switch(result){case 1:++result }', - 'try {\n while ( true ) {\n willThrow( )\n }\n} catch ( result ) switch ( result ) {\n case 1:\n ++result\n}') - bt('((e/((a+(b)*c)-d))^2)*5;', '( ( e / ( ( a + ( b ) * c ) - d ) ) ^ 2 ) * 5;') - bt('function f(a,b) {if(a) b()}function g(a,b) {if(!a) b()}', - 'function f( a, b ) {\n if ( a ) b( )\n}\n\nfunction g( a, b ) {\n if ( !a ) b( )\n}') - bt('a=[ ];', - 'a = [ ];') - bt('a=[b,c,d];', - 'a = [ b, c, d ];') - bt('a= f[b];', - 'a = f[ b ];') - - self.options.space_in_paren = False - self.options.space_in_empty_paren = False - - # Test template strings - bt('`This is a ${template} string.`', '`This is a ${template} string.`') - bt('`This\n is\n a\n ${template}\n string.`', '`This\n is\n a\n ${template}\n string.`') - bt('a = `This is a continuation\\\nstring.`', 'a = `This is a continuation\\\nstring.`'); - bt('a = "This is a continuation\\\nstring."', 'a = "This is a continuation\\\nstring."'); - - def decodesto(self, input, expectation=None): - if expectation == None: - expectation = input - - self.assertMultiLineEqual( - jsbeautifier.beautify(input, self.options), expectation) - - # if the expected is different from input, run it again - # expected output should be unchanged when run twice. - if not expectation == None: - self.assertMultiLineEqual( - jsbeautifier.beautify(expectation, self.options), expectation) - - # Everywhere we do newlines, they should be replaced with opts.eol - self.options.eol = '\r\\n'; - expectation = expectation.replace('\n', '\r\n') - self.assertMultiLineEqual( - jsbeautifier.beautify(input, self.options), expectation) - input = input.replace('\n', '\r\n') - self.assertMultiLineEqual( - jsbeautifier.beautify(input, self.options), expectation) - self.options.eol = '\n' - - def wrap(self, text): - return self.wrapregex.sub(' \\1', text) - - def bt(self, input, expectation=None): - if expectation == None: - expectation = input - - self.decodesto(input, expectation) - # If we set raw, input should be unchanged - self.options.test_output_raw = True - if self.options.end_with_newline: - elf.decodesto(input, input) - self.options.test_output_raw = False - - if self.options.indent_size == 4 and input: - wrapped_input = '{\n%s\n foo = bar;\n}' % self.wrap(input) - wrapped_expect = '{\n%s\n foo = bar;\n}' % self.wrap(expectation) - self.decodesto(wrapped_input, wrapped_expect) - - # If we set raw, input should be unchanged - self.options.test_output_raw = True - if self.options.end_with_newline: - elf.decodesto(wrapped_input, wrapped_input) - self.options.test_output_raw = False - - - @classmethod - def setUpClass(cls): - options = jsbeautifier.default_options() - options.indent_size = 4 - options.indent_char = ' ' - options.preserve_newlines = True - options.jslint_happy = False - options.keep_array_indentation = False - options.brace_style = 'collapse' - options.indent_level = 0 - options.break_chained_methods = False - options.eol = '\n' - - - cls.options = options - cls.wrapregex = re.compile('^(.+)$', re.MULTILINE) - - -if __name__ == '__main__': - unittest.main() diff --git a/node_modules/js-beautify/test/underscore-min.js b/node_modules/js-beautify/test/underscore-min.js deleted file mode 100644 index 11f1d96..0000000 --- a/node_modules/js-beautify/test/underscore-min.js +++ /dev/null @@ -1,6 +0,0 @@ -// Underscore.js 1.7.0 -// http://underscorejs.org -// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -// Underscore may be freely distributed under the MIT license. -(function(){var n=this,t=n._,r=Array.prototype,e=Object.prototype,u=Function.prototype,i=r.push,a=r.slice,o=r.concat,l=e.toString,c=e.hasOwnProperty,f=Array.isArray,s=Object.keys,p=u.bind,h=function(n){return n instanceof h?n:this instanceof h?void(this._wrapped=n):new h(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=h),exports._=h):n._=h,h.VERSION="1.7.0";var g=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}};h.iteratee=function(n,t,r){return null==n?h.identity:h.isFunction(n)?g(n,t,r):h.isObject(n)?h.matches(n):h.property(n)},h.each=h.forEach=function(n,t,r){if(null==n)return n;t=g(t,r);var e,u=n.length;if(u===+u)for(e=0;u>e;e++)t(n[e],e,n);else{var i=h.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},h.map=h.collect=function(n,t,r){if(null==n)return[];t=h.iteratee(t,r);for(var e,u=n.length!==+n.length&&h.keys(n),i=(u||n).length,a=Array(i),o=0;i>o;o++)e=u?u[o]:o,a[o]=t(n[e],e,n);return a};var v="Reduce of empty array with no initial value";h.reduce=h.foldl=h.inject=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length,o=0;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[o++]:o++]}for(;a>o;o++)u=i?i[o]:o,r=t(r,n[u],u,n);return r},h.reduceRight=h.foldr=function(n,t,r,e){null==n&&(n=[]),t=g(t,e,4);var u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;if(arguments.length<3){if(!a)throw new TypeError(v);r=n[i?i[--a]:--a]}for(;a--;)u=i?i[a]:a,r=t(r,n[u],u,n);return r},h.find=h.detect=function(n,t,r){var e;return t=h.iteratee(t,r),h.some(n,function(n,r,u){return t(n,r,u)?(e=n,!0):void 0}),e},h.filter=h.select=function(n,t,r){var e=[];return null==n?e:(t=h.iteratee(t,r),h.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e)},h.reject=function(n,t,r){return h.filter(n,h.negate(h.iteratee(t)),r)},h.every=h.all=function(n,t,r){if(null==n)return!0;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,!t(n[u],u,n))return!1;return!0},h.some=h.any=function(n,t,r){if(null==n)return!1;t=h.iteratee(t,r);var e,u,i=n.length!==+n.length&&h.keys(n),a=(i||n).length;for(e=0;a>e;e++)if(u=i?i[e]:e,t(n[u],u,n))return!0;return!1},h.contains=h.include=function(n,t){return null==n?!1:(n.length!==+n.length&&(n=h.values(n)),h.indexOf(n,t)>=0)},h.invoke=function(n,t){var r=a.call(arguments,2),e=h.isFunction(t);return h.map(n,function(n){return(e?t:n[t]).apply(n,r)})},h.pluck=function(n,t){return h.map(n,h.property(t))},h.where=function(n,t){return h.filter(n,h.matches(t))},h.findWhere=function(n,t){return h.find(n,h.matches(t))},h.max=function(n,t,r){var e,u,i=-1/0,a=-1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],e>i&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(u>a||u===-1/0&&i===-1/0)&&(i=n,a=u)});return i},h.min=function(n,t,r){var e,u,i=1/0,a=1/0;if(null==t&&null!=n){n=n.length===+n.length?n:h.values(n);for(var o=0,l=n.length;l>o;o++)e=n[o],i>e&&(i=e)}else t=h.iteratee(t,r),h.each(n,function(n,r,e){u=t(n,r,e),(a>u||1/0===u&&1/0===i)&&(i=n,a=u)});return i},h.shuffle=function(n){for(var t,r=n&&n.length===+n.length?n:h.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=h.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},h.sample=function(n,t,r){return null==t||r?(n.length!==+n.length&&(n=h.values(n)),n[h.random(n.length-1)]):h.shuffle(n).slice(0,Math.max(0,t))},h.sortBy=function(n,t,r){return t=h.iteratee(t,r),h.pluck(h.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var m=function(n){return function(t,r,e){var u={};return r=h.iteratee(r,e),h.each(t,function(e,i){var a=r(e,i,t);n(u,e,a)}),u}};h.groupBy=m(function(n,t,r){h.has(n,r)?n[r].push(t):n[r]=[t]}),h.indexBy=m(function(n,t,r){n[r]=t}),h.countBy=m(function(n,t,r){h.has(n,r)?n[r]++:n[r]=1}),h.sortedIndex=function(n,t,r,e){r=h.iteratee(r,e,1);for(var u=r(t),i=0,a=n.length;a>i;){var o=i+a>>>1;r(n[o])t?[]:a.call(n,0,t)},h.initial=function(n,t,r){return a.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},h.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:a.call(n,Math.max(n.length-t,0))},h.rest=h.tail=h.drop=function(n,t,r){return a.call(n,null==t||r?1:t)},h.compact=function(n){return h.filter(n,h.identity)};var y=function(n,t,r,e){if(t&&h.every(n,h.isArray))return o.apply(e,n);for(var u=0,a=n.length;a>u;u++){var l=n[u];h.isArray(l)||h.isArguments(l)?t?i.apply(e,l):y(l,t,r,e):r||e.push(l)}return e};h.flatten=function(n,t){return y(n,t,!1,[])},h.without=function(n){return h.difference(n,a.call(arguments,1))},h.uniq=h.unique=function(n,t,r,e){if(null==n)return[];h.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=h.iteratee(r,e));for(var u=[],i=[],a=0,o=n.length;o>a;a++){var l=n[a];if(t)a&&i===l||u.push(l),i=l;else if(r){var c=r(l,a,n);h.indexOf(i,c)<0&&(i.push(c),u.push(l))}else h.indexOf(u,l)<0&&u.push(l)}return u},h.union=function(){return h.uniq(y(arguments,!0,!0,[]))},h.intersection=function(n){if(null==n)return[];for(var t=[],r=arguments.length,e=0,u=n.length;u>e;e++){var i=n[e];if(!h.contains(t,i)){for(var a=1;r>a&&h.contains(arguments[a],i);a++);a===r&&t.push(i)}}return t},h.difference=function(n){var t=y(a.call(arguments,1),!0,!0,[]);return h.filter(n,function(n){return!h.contains(t,n)})},h.zip=function(n){if(null==n)return[];for(var t=h.max(arguments,"length").length,r=Array(t),e=0;t>e;e++)r[e]=h.pluck(arguments,e);return r},h.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},h.indexOf=function(n,t,r){if(null==n)return-1;var e=0,u=n.length;if(r){if("number"!=typeof r)return e=h.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}for(;u>e;e++)if(n[e]===t)return e;return-1},h.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=n.length;for("number"==typeof r&&(e=0>r?e+r+1:Math.min(e,r+1));--e>=0;)if(n[e]===t)return e;return-1},h.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var d=function(){};h.bind=function(n,t){var r,e;if(p&&n.bind===p)return p.apply(n,a.call(arguments,1));if(!h.isFunction(n))throw new TypeError("Bind must be called on a function");return r=a.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(a.call(arguments)));d.prototype=n.prototype;var u=new d;d.prototype=null;var i=n.apply(u,r.concat(a.call(arguments)));return h.isObject(i)?i:u}},h.partial=function(n){var t=a.call(arguments,1);return function(){for(var r=0,e=t.slice(),u=0,i=e.length;i>u;u++)e[u]===h&&(e[u]=arguments[r++]);for(;r=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=h.bind(n[r],n);return n},h.memoize=function(n,t){var r=function(e){var u=r.cache,i=t?t.apply(this,arguments):e;return h.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},h.delay=function(n,t){var r=a.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},h.defer=function(n){return h.delay.apply(h,[n,1].concat(a.call(arguments,1)))},h.throttle=function(n,t,r){var e,u,i,a=null,o=0;r||(r={});var l=function(){o=r.leading===!1?0:h.now(),a=null,i=n.apply(e,u),a||(e=u=null)};return function(){var c=h.now();o||r.leading!==!1||(o=c);var f=t-(c-o);return e=this,u=arguments,0>=f||f>t?(clearTimeout(a),a=null,o=c,i=n.apply(e,u),a||(e=u=null)):a||r.trailing===!1||(a=setTimeout(l,f)),i}},h.debounce=function(n,t,r){var e,u,i,a,o,l=function(){var c=h.now()-a;t>c&&c>0?e=setTimeout(l,t-c):(e=null,r||(o=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,a=h.now();var c=r&&!e;return e||(e=setTimeout(l,t)),c&&(o=n.apply(i,u),i=u=null),o}},h.wrap=function(n,t){return h.partial(t,n)},h.negate=function(n){return function(){return!n.apply(this,arguments)}},h.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},h.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},h.before=function(n,t){var r;return function(){return--n>0?r=t.apply(this,arguments):t=null,r}},h.once=h.partial(h.before,2),h.keys=function(n){if(!h.isObject(n))return[];if(s)return s(n);var t=[];for(var r in n)h.has(n,r)&&t.push(r);return t},h.values=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},h.pairs=function(n){for(var t=h.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},h.invert=function(n){for(var t={},r=h.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},h.functions=h.methods=function(n){var t=[];for(var r in n)h.isFunction(n[r])&&t.push(r);return t.sort()},h.extend=function(n){if(!h.isObject(n))return n;for(var t,r,e=1,u=arguments.length;u>e;e++){t=arguments[e];for(r in t)c.call(t,r)&&(n[r]=t[r])}return n},h.pick=function(n,t,r){var e,u={};if(null==n)return u;if(h.isFunction(t)){t=g(t,r);for(e in n){var i=n[e];t(i,e,n)&&(u[e]=i)}}else{var l=o.apply([],a.call(arguments,1));n=new Object(n);for(var c=0,f=l.length;f>c;c++)e=l[c],e in n&&(u[e]=n[e])}return u},h.omit=function(n,t,r){if(h.isFunction(t))t=h.negate(t);else{var e=h.map(o.apply([],a.call(arguments,1)),String);t=function(n,t){return!h.contains(e,t)}}return h.pick(n,t,r)},h.defaults=function(n){if(!h.isObject(n))return n;for(var t=1,r=arguments.length;r>t;t++){var e=arguments[t];for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n},h.clone=function(n){return h.isObject(n)?h.isArray(n)?n.slice():h.extend({},n):n},h.tap=function(n,t){return t(n),n};var b=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof h&&(n=n._wrapped),t instanceof h&&(t=t._wrapped);var u=l.call(n);if(u!==l.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}if("object"!=typeof n||"object"!=typeof t)return!1;for(var i=r.length;i--;)if(r[i]===n)return e[i]===t;var a=n.constructor,o=t.constructor;if(a!==o&&"constructor"in n&&"constructor"in t&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(o)&&o instanceof o))return!1;r.push(n),e.push(t);var c,f;if("[object Array]"===u){if(c=n.length,f=c===t.length)for(;c--&&(f=b(n[c],t[c],r,e)););}else{var s,p=h.keys(n);if(c=p.length,f=h.keys(t).length===c)for(;c--&&(s=p[c],f=h.has(t,s)&&b(n[s],t[s],r,e)););}return r.pop(),e.pop(),f};h.isEqual=function(n,t){return b(n,t,[],[])},h.isEmpty=function(n){if(null==n)return!0;if(h.isArray(n)||h.isString(n)||h.isArguments(n))return 0===n.length;for(var t in n)if(h.has(n,t))return!1;return!0},h.isElement=function(n){return!(!n||1!==n.nodeType)},h.isArray=f||function(n){return"[object Array]"===l.call(n)},h.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},h.each(["Arguments","Function","String","Number","Date","RegExp"],function(n){h["is"+n]=function(t){return l.call(t)==="[object "+n+"]"}}),h.isArguments(arguments)||(h.isArguments=function(n){return h.has(n,"callee")}),"function"!=typeof/./&&(h.isFunction=function(n){return"function"==typeof n||!1}),h.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},h.isNaN=function(n){return h.isNumber(n)&&n!==+n},h.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===l.call(n)},h.isNull=function(n){return null===n},h.isUndefined=function(n){return n===void 0},h.has=function(n,t){return null!=n&&c.call(n,t)},h.noConflict=function(){return n._=t,this},h.identity=function(n){return n},h.constant=function(n){return function(){return n}},h.noop=function(){},h.property=function(n){return function(t){return t[n]}},h.matches=function(n){var t=h.pairs(n),r=t.length;return function(n){if(null==n)return!r;n=new Object(n);for(var e=0;r>e;e++){var u=t[e],i=u[0];if(u[1]!==n[i]||!(i in n))return!1}return!0}},h.times=function(n,t,r){var e=Array(Math.max(0,n));t=g(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},h.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},h.now=Date.now||function(){return(new Date).getTime()};var _={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},w=h.invert(_),j=function(n){var t=function(t){return n[t]},r="(?:"+h.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};h.escape=j(_),h.unescape=j(w),h.result=function(n,t){if(null==n)return void 0;var r=n[t];return h.isFunction(r)?n[t]():r};var x=0;h.uniqueId=function(n){var t=++x+"";return n?n+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var A=/(.)^/,k={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},O=/\\|'|\r|\n|\u2028|\u2029/g,F=function(n){return"\\"+k[n]};h.template=function(n,t,r){!t&&r&&(t=r),t=h.defaults({},t,h.templateSettings);var e=RegExp([(t.escape||A).source,(t.interpolate||A).source,(t.evaluate||A).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,a,o){return i+=n.slice(u,o).replace(O,F),u=o+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(o){throw o.source=i,o}var l=function(n){return a.call(this,n,h)},c=t.variable||"obj";return l.source="function("+c+"){\n"+i+"}",l},h.chain=function(n){var t=h(n);return t._chain=!0,t};var E=function(n){return this._chain?h(n).chain():n};h.mixin=function(n){h.each(h.functions(n),function(t){var r=h[t]=n[t];h.prototype[t]=function(){var n=[this._wrapped];return i.apply(n,arguments),E.call(this,r.apply(h,n))}})},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=r[n];h.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],E.call(this,r)}}),h.each(["concat","join","slice"],function(n){var t=r[n];h.prototype[n]=function(){return E.call(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}).call(this); -//# sourceMappingURL=underscore-min.map \ No newline at end of file diff --git a/node_modules/js-beautify/test/underscore.js b/node_modules/js-beautify/test/underscore.js deleted file mode 100644 index a253446..0000000 --- a/node_modules/js-beautify/test/underscore.js +++ /dev/null @@ -1,1439 +0,0 @@ -// Underscore.js 1.7.0 -// http://underscorejs.org -// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -// Underscore may be freely distributed under the MIT license. - -(function() { - - // Baseline setup - // -------------- - - // Establish the root object, `window` in the browser, or `exports` on the server. - var root = this; - - // Save the previous value of the `_` variable. - var previousUnderscore = root._; - - // Save bytes in the minified (but not gzipped) version: - var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype; - - // Create quick reference variables for speed access to core prototypes. - var - push = ArrayProto.push, - slice = ArrayProto.slice, - toString = ObjProto.toString, - hasOwnProperty = ObjProto.hasOwnProperty; - - // All **ECMAScript 5** native function implementations that we hope to use - // are declared here. - var - nativeIsArray = Array.isArray, - nativeKeys = Object.keys, - nativeBind = FuncProto.bind; - - // Create a safe reference to the Underscore object for use below. - var _ = function(obj) { - if (obj instanceof _) return obj; - if (!(this instanceof _)) return new _(obj); - this._wrapped = obj; - }; - - // Export the Underscore object for **Node.js**, with - // backwards-compatibility for the old `require()` API. If we're in - // the browser, add `_` as a global object. - if (typeof exports !== 'undefined') { - if (typeof module !== 'undefined' && module.exports) { - exports = module.exports = _; - } - exports._ = _; - } else { - root._ = _; - } - - // Current version. - _.VERSION = '1.7.0'; - - // Internal function that returns an efficient (for current engines) version - // of the passed-in callback, to be repeatedly applied in other Underscore - // functions. - var optimizeCb = function(func, context, argCount) { - if (context === void 0) return func; - switch (argCount == null ? 3 : argCount) { - case 1: return function(value) { - return func.call(context, value); - }; - case 2: return function(value, other) { - return func.call(context, value, other); - }; - case 3: return function(value, index, collection) { - return func.call(context, value, index, collection); - }; - case 4: return function(accumulator, value, index, collection) { - return func.call(context, accumulator, value, index, collection); - }; - } - return function() { - return func.apply(context, arguments); - }; - }; - - // A mostly-internal function to generate callbacks that can be applied - // to each element in a collection, returning the desired result — either - // identity, an arbitrary callback, a property matcher, or a property accessor. - var cb = function(value, context, argCount) { - if (value == null) return _.identity; - if (_.isFunction(value)) return optimizeCb(value, context, argCount); - if (_.isObject(value)) return _.matches(value); - return _.property(value); - }; - _.iteratee = function(value, context) { - return cb(value, context); - }; - - // Collection Functions - // -------------------- - - // The cornerstone, an `each` implementation, aka `forEach`. - // Handles raw objects in addition to array-likes. Treats all - // sparse array-likes as if they were dense. - _.each = _.forEach = function(obj, iteratee, context) { - if (obj == null) return obj; - iteratee = optimizeCb(iteratee, context); - var i, length = obj.length; - if (length === +length) { - for (i = 0; i < length; i++) { - iteratee(obj[i], i, obj); - } - } else { - var keys = _.keys(obj); - for (i = 0, length = keys.length; i < length; i++) { - iteratee(obj[keys[i]], keys[i], obj); - } - } - return obj; - }; - - // Return the results of applying the iteratee to each element. - _.map = _.collect = function(obj, iteratee, context) { - if (obj == null) return []; - iteratee = cb(iteratee, context); - var keys = obj.length !== +obj.length && _.keys(obj), - length = (keys || obj).length, - results = Array(length), - currentKey; - for (var index = 0; index < length; index++) { - currentKey = keys ? keys[index] : index; - results[index] = iteratee(obj[currentKey], currentKey, obj); - } - return results; - }; - - var reduceError = 'Reduce of empty array with no initial value'; - - // **Reduce** builds up a single result from a list of values, aka `inject`, - // or `foldl`. - _.reduce = _.foldl = _.inject = function(obj, iteratee, memo, context) { - if (obj == null) obj = []; - iteratee = optimizeCb(iteratee, context, 4); - var keys = obj.length !== +obj.length && _.keys(obj), - length = (keys || obj).length, - index = 0, currentKey; - if (arguments.length < 3) { - if (!length) throw new TypeError(reduceError); - memo = obj[keys ? keys[index++] : index++]; - } - for (; index < length; index++) { - currentKey = keys ? keys[index] : index; - memo = iteratee(memo, obj[currentKey], currentKey, obj); - } - return memo; - }; - - // The right-associative version of reduce, also known as `foldr`. - _.reduceRight = _.foldr = function(obj, iteratee, memo, context) { - if (obj == null) obj = []; - iteratee = optimizeCb(iteratee, context, 4); - var keys = obj.length !== + obj.length && _.keys(obj), - index = (keys || obj).length, - currentKey; - if (arguments.length < 3) { - if (!index) throw new TypeError(reduceError); - memo = obj[keys ? keys[--index] : --index]; - } - while (index--) { - currentKey = keys ? keys[index] : index; - memo = iteratee(memo, obj[currentKey], currentKey, obj); - } - return memo; - }; - - // Return the first value which passes a truth test. Aliased as `detect`. - _.find = _.detect = function(obj, predicate, context) { - var result; - predicate = cb(predicate, context); - _.some(obj, function(value, index, list) { - if (predicate(value, index, list)) { - result = value; - return true; - } - }); - return result; - }; - - // Return all the elements that pass a truth test. - // Aliased as `select`. - _.filter = _.select = function(obj, predicate, context) { - var results = []; - if (obj == null) return results; - predicate = cb(predicate, context); - _.each(obj, function(value, index, list) { - if (predicate(value, index, list)) results.push(value); - }); - return results; - }; - - // Return all the elements for which a truth test fails. - _.reject = function(obj, predicate, context) { - return _.filter(obj, _.negate(cb(predicate)), context); - }; - - // Determine whether all of the elements match a truth test. - // Aliased as `all`. - _.every = _.all = function(obj, predicate, context) { - if (obj == null) return true; - predicate = cb(predicate, context); - var keys = obj.length !== +obj.length && _.keys(obj), - length = (keys || obj).length, - index, currentKey; - for (index = 0; index < length; index++) { - currentKey = keys ? keys[index] : index; - if (!predicate(obj[currentKey], currentKey, obj)) return false; - } - return true; - }; - - // Determine if at least one element in the object matches a truth test. - // Aliased as `any`. - _.some = _.any = function(obj, predicate, context) { - if (obj == null) return false; - predicate = cb(predicate, context); - var keys = obj.length !== +obj.length && _.keys(obj), - length = (keys || obj).length, - index, currentKey; - for (index = 0; index < length; index++) { - currentKey = keys ? keys[index] : index; - if (predicate(obj[currentKey], currentKey, obj)) return true; - } - return false; - }; - - // Determine if the array or object contains a given value (using `===`). - // Aliased as `include`. - _.contains = _.include = function(obj, target) { - if (obj == null) return false; - if (obj.length !== +obj.length) obj = _.values(obj); - return _.indexOf(obj, target) >= 0; - }; - - // Invoke a method (with arguments) on every item in a collection. - _.invoke = function(obj, method) { - var args = slice.call(arguments, 2); - var isFunc = _.isFunction(method); - return _.map(obj, function(value) { - return (isFunc ? method : value[method]).apply(value, args); - }); - }; - - // Convenience version of a common use case of `map`: fetching a property. - _.pluck = function(obj, key) { - return _.map(obj, _.property(key)); - }; - - // Convenience version of a common use case of `filter`: selecting only objects - // containing specific `key:value` pairs. - _.where = function(obj, attrs) { - return _.filter(obj, _.matches(attrs)); - }; - - // Convenience version of a common use case of `find`: getting the first object - // containing specific `key:value` pairs. - _.findWhere = function(obj, attrs) { - return _.find(obj, _.matches(attrs)); - }; - - // Return the maximum element (or element-based computation). - _.max = function(obj, iteratee, context) { - var result = -Infinity, lastComputed = -Infinity, - value, computed; - if (iteratee == null && obj != null) { - obj = obj.length === +obj.length ? obj : _.values(obj); - for (var i = 0, length = obj.length; i < length; i++) { - value = obj[i]; - if (value > result) { - result = value; - } - } - } else { - iteratee = cb(iteratee, context); - _.each(obj, function(value, index, list) { - computed = iteratee(value, index, list); - if (computed > lastComputed || computed === -Infinity && result === -Infinity) { - result = value; - lastComputed = computed; - } - }); - } - return result; - }; - - // Return the minimum element (or element-based computation). - _.min = function(obj, iteratee, context) { - var result = Infinity, lastComputed = Infinity, - value, computed; - if (iteratee == null && obj != null) { - obj = obj.length === +obj.length ? obj : _.values(obj); - for (var i = 0, length = obj.length; i < length; i++) { - value = obj[i]; - if (value < result) { - result = value; - } - } - } else { - iteratee = cb(iteratee, context); - _.each(obj, function(value, index, list) { - computed = iteratee(value, index, list); - if (computed < lastComputed || computed === Infinity && result === Infinity) { - result = value; - lastComputed = computed; - } - }); - } - return result; - }; - - // Shuffle a collection, using the modern version of the - // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle). - _.shuffle = function(obj) { - var set = obj && obj.length === +obj.length ? obj : _.values(obj); - var length = set.length; - var shuffled = Array(length); - for (var index = 0, rand; index < length; index++) { - rand = _.random(0, index); - if (rand !== index) shuffled[index] = shuffled[rand]; - shuffled[rand] = set[index]; - } - return shuffled; - }; - - // Sample **n** random values from a collection. - // If **n** is not specified, returns a single random element. - // The internal `guard` argument allows it to work with `map`. - _.sample = function(obj, n, guard) { - if (n == null || guard) { - if (obj.length !== +obj.length) obj = _.values(obj); - return obj[_.random(obj.length - 1)]; - } - return _.shuffle(obj).slice(0, Math.max(0, n)); - }; - - // Sort the object's values by a criterion produced by an iteratee. - _.sortBy = function(obj, iteratee, context) { - iteratee = cb(iteratee, context); - return _.pluck(_.map(obj, function(value, index, list) { - return { - value: value, - index: index, - criteria: iteratee(value, index, list) - }; - }).sort(function(left, right) { - var a = left.criteria; - var b = right.criteria; - if (a !== b) { - if (a > b || a === void 0) return 1; - if (a < b || b === void 0) return -1; - } - return left.index - right.index; - }), 'value'); - }; - - // An internal function used for aggregate "group by" operations. - var group = function(behavior) { - return function(obj, iteratee, context) { - var result = {}; - iteratee = cb(iteratee, context); - _.each(obj, function(value, index) { - var key = iteratee(value, index, obj); - behavior(result, value, key); - }); - return result; - }; - }; - - // Groups the object's values by a criterion. Pass either a string attribute - // to group by, or a function that returns the criterion. - _.groupBy = group(function(result, value, key) { - if (_.has(result, key)) result[key].push(value); else result[key] = [value]; - }); - - // Indexes the object's values by a criterion, similar to `groupBy`, but for - // when you know that your index values will be unique. - _.indexBy = group(function(result, value, key) { - result[key] = value; - }); - - // Counts instances of an object that group by a certain criterion. Pass - // either a string attribute to count by, or a function that returns the - // criterion. - _.countBy = group(function(result, value, key) { - if (_.has(result, key)) result[key]++; else result[key] = 1; - }); - - // Use a comparator function to figure out the smallest index at which - // an object should be inserted so as to maintain order. Uses binary search. - _.sortedIndex = function(array, obj, iteratee, context) { - iteratee = cb(iteratee, context, 1); - var value = iteratee(obj); - var low = 0, high = array.length; - while (low < high) { - var mid = low + high >>> 1; - if (iteratee(array[mid]) < value) low = mid + 1; else high = mid; - } - return low; - }; - - // Safely create a real, live array from anything iterable. - _.toArray = function(obj) { - if (!obj) return []; - if (_.isArray(obj)) return slice.call(obj); - if (obj.length === +obj.length) return _.map(obj, _.identity); - return _.values(obj); - }; - - // Return the number of elements in an object. - _.size = function(obj) { - if (obj == null) return 0; - return obj.length === +obj.length ? obj.length : _.keys(obj).length; - }; - - // Split a collection into two arrays: one whose elements all satisfy the given - // predicate, and one whose elements all do not satisfy the predicate. - _.partition = function(obj, predicate, context) { - predicate = cb(predicate, context); - var pass = [], fail = []; - _.each(obj, function(value, key, obj) { - (predicate(value, key, obj) ? pass : fail).push(value); - }); - return [pass, fail]; - }; - - // Array Functions - // --------------- - - // Get the first element of an array. Passing **n** will return the first N - // values in the array. Aliased as `head` and `take`. The **guard** check - // allows it to work with `_.map`. - _.first = _.head = _.take = function(array, n, guard) { - if (array == null) return void 0; - if (n == null || guard) return array[0]; - return _.initial(array, array.length - n); - }; - - // Returns everything but the last entry of the array. Especially useful on - // the arguments object. Passing **n** will return all the values in - // the array, excluding the last N. The **guard** check allows it to work with - // `_.map`. - _.initial = function(array, n, guard) { - return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n))); - }; - - // Get the last element of an array. Passing **n** will return the last N - // values in the array. The **guard** check allows it to work with `_.map`. - _.last = function(array, n, guard) { - if (array == null) return void 0; - if (n == null || guard) return array[array.length - 1]; - return _.rest(array, Math.max(0, array.length - n)); - }; - - // Returns everything but the first entry of the array. Aliased as `tail` and `drop`. - // Especially useful on the arguments object. Passing an **n** will return - // the rest N values in the array. The **guard** - // check allows it to work with `_.map`. - _.rest = _.tail = _.drop = function(array, n, guard) { - return slice.call(array, n == null || guard ? 1 : n); - }; - - // Trim out all falsy values from an array. - _.compact = function(array) { - return _.filter(array, _.identity); - }; - - // Internal implementation of a recursive `flatten` function. - var flatten = function(input, shallow, strict, startIndex) { - var output = [], idx = 0, value; - for (var i = startIndex || 0, length = input && input.length; i < length; i++) { - value = input[i]; - if (value && value.length >= 0 && (_.isArray(value) || _.isArguments(value))) { - //flatten current level of array or arguments object - if (!shallow) value = flatten(value, shallow, strict); - var j = 0, len = value.length; - output.length += len; - while (j < len) { - output[idx++] = value[j++]; - } - } else if (!strict) { - output[idx++] = value; - } - } - return output; - }; - - // Flatten out an array, either recursively (by default), or just one level. - _.flatten = function(array, shallow) { - return flatten(array, shallow, false); - }; - - // Return a version of the array that does not contain the specified value(s). - _.without = function(array) { - return _.difference(array, slice.call(arguments, 1)); - }; - - // Produce a duplicate-free version of the array. If the array has already - // been sorted, you have the option of using a faster algorithm. - // Aliased as `unique`. - _.uniq = _.unique = function(array, isSorted, iteratee, context) { - if (array == null) return []; - if (!_.isBoolean(isSorted)) { - context = iteratee; - iteratee = isSorted; - isSorted = false; - } - if (iteratee != null) iteratee = cb(iteratee, context); - var result = []; - var seen = []; - for (var i = 0, length = array.length; i < length; i++) { - var value = array[i], - computed = iteratee ? iteratee(value, i, array) : value; - if (isSorted) { - if (!i || seen !== computed) result.push(value); - seen = computed; - } else if (iteratee) { - if (!_.contains(seen, computed)) { - seen.push(computed); - result.push(value); - } - } else if (!_.contains(result, value)) { - result.push(value); - } - } - return result; - }; - - // Produce an array that contains the union: each distinct element from all of - // the passed-in arrays. - _.union = function() { - return _.uniq(flatten(arguments, true, true)); - }; - - // Produce an array that contains every item shared between all the - // passed-in arrays. - _.intersection = function(array) { - if (array == null) return []; - var result = []; - var argsLength = arguments.length; - for (var i = 0, length = array.length; i < length; i++) { - var item = array[i]; - if (_.contains(result, item)) continue; - for (var j = 1; j < argsLength; j++) { - if (!_.contains(arguments[j], item)) break; - } - if (j === argsLength) result.push(item); - } - return result; - }; - - // Take the difference between one array and a number of other arrays. - // Only the elements present in just the first array will remain. - _.difference = function(array) { - var rest = flatten(arguments, true, true, 1); - return _.filter(array, function(value){ - return !_.contains(rest, value); - }); - }; - - // Zip together multiple lists into a single array -- elements that share - // an index go together. - _.zip = function(array) { - if (array == null) return []; - var length = _.max(arguments, 'length').length; - var results = Array(length); - while (length-- > 0) { - results[length] = _.pluck(arguments, length); - } - return results; - }; - - // Complement of _.zip. Unzip accepts an array of arrays and groups - // each array's elements on shared indices - _.unzip = function(array) { - return _.zip.apply(null, array); - }; - - // Converts lists into objects. Pass either a single array of `[key, value]` - // pairs, or two parallel arrays of the same length -- one of keys, and one of - // the corresponding values. - _.object = function(list, values) { - if (list == null) return {}; - var result = {}; - for (var i = 0, length = list.length; i < length; i++) { - if (values) { - result[list[i]] = values[i]; - } else { - result[list[i][0]] = list[i][1]; - } - } - return result; - }; - - // Return the position of the first occurrence of an item in an array, - // or -1 if the item is not included in the array. - // If the array is large and already in sort order, pass `true` - // for **isSorted** to use binary search. - _.indexOf = function(array, item, isSorted) { - var i = 0, length = array && array.length; - if (typeof isSorted == 'number') { - i = isSorted < 0 ? Math.max(0, length + isSorted) : isSorted; - } else if (isSorted) { - i = _.sortedIndex(array, item); - return array[i] === item ? i : -1; - } - for (; i < length; i++) if (array[i] === item) return i; - return -1; - }; - - _.lastIndexOf = function(array, item, from) { - var idx = array ? array.length : 0; - if (typeof from == 'number') { - idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1); - } - while (--idx >= 0) if (array[idx] === item) return idx; - return -1; - }; - - // Generate an integer Array containing an arithmetic progression. A port of - // the native Python `range()` function. See - // [the Python documentation](http://docs.python.org/library/functions.html#range). - _.range = function(start, stop, step) { - if (arguments.length <= 1) { - stop = start || 0; - start = 0; - } - step = step || 1; - - var length = Math.max(Math.ceil((stop - start) / step), 0); - var range = Array(length); - - for (var idx = 0; idx < length; idx++, start += step) { - range[idx] = start; - } - - return range; - }; - - // Function (ahem) Functions - // ------------------ - - // Reusable constructor function for prototype setting. - var Ctor = function(){}; - - // Create a function bound to a given object (assigning `this`, and arguments, - // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if - // available. - _.bind = function(func, context) { - var args, bound; - if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1)); - if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function'); - args = slice.call(arguments, 2); - bound = function() { - if (!(this instanceof bound)) return func.apply(context, args.concat(slice.call(arguments))); - Ctor.prototype = func.prototype; - var self = new Ctor; - Ctor.prototype = null; - var result = func.apply(self, args.concat(slice.call(arguments))); - if (_.isObject(result)) return result; - return self; - }; - return bound; - }; - - // Partially apply a function by creating a version that has had some of its - // arguments pre-filled, without changing its dynamic `this` context. _ acts - // as a placeholder, allowing any combination of arguments to be pre-filled. - _.partial = function(func) { - var boundArgs = slice.call(arguments, 1); - return function() { - var position = 0; - var args = boundArgs.slice(); - for (var i = 0, length = args.length; i < length; i++) { - if (args[i] === _) args[i] = arguments[position++]; - } - while (position < arguments.length) args.push(arguments[position++]); - return func.apply(this, args); - }; - }; - - // Bind a number of an object's methods to that object. Remaining arguments - // are the method names to be bound. Useful for ensuring that all callbacks - // defined on an object belong to it. - _.bindAll = function(obj) { - var i, length = arguments.length, key; - if (length <= 1) throw new Error('bindAll must be passed function names'); - for (i = 1; i < length; i++) { - key = arguments[i]; - obj[key] = _.bind(obj[key], obj); - } - return obj; - }; - - // Memoize an expensive function by storing its results. - _.memoize = function(func, hasher) { - var memoize = function(key) { - var cache = memoize.cache; - var address = '' + (hasher ? hasher.apply(this, arguments) : key); - if (!_.has(cache, address)) cache[address] = func.apply(this, arguments); - return cache[address]; - }; - memoize.cache = {}; - return memoize; - }; - - // Delays a function for the given number of milliseconds, and then calls - // it with the arguments supplied. - _.delay = function(func, wait) { - var args = slice.call(arguments, 2); - return setTimeout(function(){ - return func.apply(null, args); - }, wait); - }; - - // Defers a function, scheduling it to run after the current call stack has - // cleared. - _.defer = function(func) { - return _.delay.apply(_, [func, 1].concat(slice.call(arguments, 1))); - }; - - // Returns a function, that, when invoked, will only be triggered at most once - // during a given window of time. Normally, the throttled function will run - // as much as it can, without ever going more than once per `wait` duration; - // but if you'd like to disable the execution on the leading edge, pass - // `{leading: false}`. To disable execution on the trailing edge, ditto. - _.throttle = function(func, wait, options) { - var context, args, result; - var timeout = null; - var previous = 0; - if (!options) options = {}; - var later = function() { - previous = options.leading === false ? 0 : _.now(); - timeout = null; - result = func.apply(context, args); - if (!timeout) context = args = null; - }; - return function() { - var now = _.now(); - if (!previous && options.leading === false) previous = now; - var remaining = wait - (now - previous); - context = this; - args = arguments; - if (remaining <= 0 || remaining > wait) { - if (timeout) { - clearTimeout(timeout); - timeout = null; - } - previous = now; - result = func.apply(context, args); - if (!timeout) context = args = null; - } else if (!timeout && options.trailing !== false) { - timeout = setTimeout(later, remaining); - } - return result; - }; - }; - - // Returns a function, that, as long as it continues to be invoked, will not - // be triggered. The function will be called after it stops being called for - // N milliseconds. If `immediate` is passed, trigger the function on the - // leading edge, instead of the trailing. - _.debounce = function(func, wait, immediate) { - var timeout, args, context, timestamp, result; - - var later = function() { - var last = _.now() - timestamp; - - if (last < wait && last >= 0) { - timeout = setTimeout(later, wait - last); - } else { - timeout = null; - if (!immediate) { - result = func.apply(context, args); - if (!timeout) context = args = null; - } - } - }; - - return function() { - context = this; - args = arguments; - timestamp = _.now(); - var callNow = immediate && !timeout; - if (!timeout) timeout = setTimeout(later, wait); - if (callNow) { - result = func.apply(context, args); - context = args = null; - } - - return result; - }; - }; - - // Returns the first function passed as an argument to the second, - // allowing you to adjust arguments, run code before and after, and - // conditionally execute the original function. - _.wrap = function(func, wrapper) { - return _.partial(wrapper, func); - }; - - // Returns a negated version of the passed-in predicate. - _.negate = function(predicate) { - return function() { - return !predicate.apply(this, arguments); - }; - }; - - // Returns a function that is the composition of a list of functions, each - // consuming the return value of the function that follows. - _.compose = function() { - var args = arguments; - var start = args.length - 1; - return function() { - var i = start; - var result = args[start].apply(this, arguments); - while (i--) result = args[i].call(this, result); - return result; - }; - }; - - // Returns a function that will only be executed after being called N times. - _.after = function(times, func) { - return function() { - if (--times < 1) { - return func.apply(this, arguments); - } - }; - }; - - // Returns a function that will only be executed before being called N times. - _.before = function(times, func) { - var memo; - return function() { - if (--times > 0) { - memo = func.apply(this, arguments); - } else { - func = null; - } - return memo; - }; - }; - - // Returns a function that will be executed at most one time, no matter how - // often you call it. Useful for lazy initialization. - _.once = _.partial(_.before, 2); - - // Object Functions - // ---------------- - - // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed. - var hasEnumBug = !({toString: null}).propertyIsEnumerable('toString'); - var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', - 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; - - // Retrieve the names of an object's properties. - // Delegates to **ECMAScript 5**'s native `Object.keys` - _.keys = function(obj) { - if (!_.isObject(obj)) return []; - if (nativeKeys) return nativeKeys(obj); - var keys = []; - for (var key in obj) if (_.has(obj, key)) keys.push(key); - - // Ahem, IE < 9. - if (hasEnumBug) { - var nonEnumIdx = nonEnumerableProps.length; - while (nonEnumIdx--) { - var prop = nonEnumerableProps[nonEnumIdx]; - if (_.has(obj, prop) && !_.contains(keys, prop)) keys.push(prop); - } - } - return keys; - }; - - // Retrieve the values of an object's properties. - _.values = function(obj) { - var keys = _.keys(obj); - var length = keys.length; - var values = Array(length); - for (var i = 0; i < length; i++) { - values[i] = obj[keys[i]]; - } - return values; - }; - - // Convert an object into a list of `[key, value]` pairs. - _.pairs = function(obj) { - var keys = _.keys(obj); - var length = keys.length; - var pairs = Array(length); - for (var i = 0; i < length; i++) { - pairs[i] = [keys[i], obj[keys[i]]]; - } - return pairs; - }; - - // Invert the keys and values of an object. The values must be serializable. - _.invert = function(obj) { - var result = {}; - var keys = _.keys(obj); - for (var i = 0, length = keys.length; i < length; i++) { - result[obj[keys[i]]] = keys[i]; - } - return result; - }; - - // Return a sorted list of the function names available on the object. - // Aliased as `methods` - _.functions = _.methods = function(obj) { - var names = []; - for (var key in obj) { - if (_.isFunction(obj[key])) names.push(key); - } - return names.sort(); - }; - - // Extend a given object with all the properties in passed-in object(s). - _.extend = function(obj) { - if (!_.isObject(obj)) return obj; - var source, prop; - for (var i = 1, length = arguments.length; i < length; i++) { - source = arguments[i]; - for (prop in source) { - obj[prop] = source[prop]; - } - } - return obj; - }; - - // Return a copy of the object only containing the whitelisted properties. - _.pick = function(obj, iteratee, context) { - var result = {}, key; - if (obj == null) return result; - if (_.isFunction(iteratee)) { - iteratee = optimizeCb(iteratee, context); - for (key in obj) { - var value = obj[key]; - if (iteratee(value, key, obj)) result[key] = value; - } - } else { - var keys = flatten(arguments, false, false, 1); - obj = new Object(obj); - for (var i = 0, length = keys.length; i < length; i++) { - key = keys[i]; - if (key in obj) result[key] = obj[key]; - } - } - return result; - }; - - // Return a copy of the object without the blacklisted properties. - _.omit = function(obj, iteratee, context) { - if (_.isFunction(iteratee)) { - iteratee = _.negate(iteratee); - } else { - var keys = _.map(flatten(arguments, false, false, 1), String); - iteratee = function(value, key) { - return !_.contains(keys, key); - }; - } - return _.pick(obj, iteratee, context); - }; - - // Fill in a given object with default properties. - _.defaults = function(obj) { - if (!_.isObject(obj)) return obj; - for (var i = 1, length = arguments.length; i < length; i++) { - var source = arguments[i]; - for (var prop in source) { - if (obj[prop] === void 0) obj[prop] = source[prop]; - } - } - return obj; - }; - - // Create a (shallow-cloned) duplicate of an object. - _.clone = function(obj) { - if (!_.isObject(obj)) return obj; - return _.isArray(obj) ? obj.slice() : _.extend({}, obj); - }; - - // Invokes interceptor with the obj, and then returns obj. - // The primary purpose of this method is to "tap into" a method chain, in - // order to perform operations on intermediate results within the chain. - _.tap = function(obj, interceptor) { - interceptor(obj); - return obj; - }; - - // Internal recursive comparison function for `isEqual`. - var eq = function(a, b, aStack, bStack) { - // Identical objects are equal. `0 === -0`, but they aren't identical. - // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal). - if (a === b) return a !== 0 || 1 / a === 1 / b; - // A strict comparison is necessary because `null == undefined`. - if (a == null || b == null) return a === b; - // Unwrap any wrapped objects. - if (a instanceof _) a = a._wrapped; - if (b instanceof _) b = b._wrapped; - // Compare `[[Class]]` names. - var className = toString.call(a); - if (className !== toString.call(b)) return false; - switch (className) { - // Strings, numbers, regular expressions, dates, and booleans are compared by value. - case '[object RegExp]': - // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i') - case '[object String]': - // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is - // equivalent to `new String("5")`. - return '' + a === '' + b; - case '[object Number]': - // `NaN`s are equivalent, but non-reflexive. - // Object(NaN) is equivalent to NaN - if (+a !== +a) return +b !== +b; - // An `egal` comparison is performed for other numeric values. - return +a === 0 ? 1 / +a === 1 / b : +a === +b; - case '[object Date]': - case '[object Boolean]': - // Coerce dates and booleans to numeric primitive values. Dates are compared by their - // millisecond representations. Note that invalid dates with millisecond representations - // of `NaN` are not equivalent. - return +a === +b; - } - - var areArrays = className === '[object Array]'; - if (!areArrays) { - if (typeof a != 'object' || typeof b != 'object') return false; - - // Objects with different constructors are not equivalent, but `Object`s or `Array`s - // from different frames are. - var aCtor = a.constructor, bCtor = b.constructor; - if (aCtor !== bCtor && !(_.isFunction(aCtor) && aCtor instanceof aCtor && - _.isFunction(bCtor) && bCtor instanceof bCtor) - && ('constructor' in a && 'constructor' in b)) { - return false; - } - } - // Assume equality for cyclic structures. The algorithm for detecting cyclic - // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`. - var length = aStack.length; - while (length--) { - // Linear search. Performance is inversely proportional to the number of - // unique nested structures. - if (aStack[length] === a) return bStack[length] === b; - } - - // Add the first object to the stack of traversed objects. - aStack.push(a); - bStack.push(b); - var size, result; - // Recursively compare objects and arrays. - if (areArrays) { - // Compare array lengths to determine if a deep comparison is necessary. - size = a.length; - result = size === b.length; - if (result) { - // Deep compare the contents, ignoring non-numeric properties. - while (size--) { - if (!(result = eq(a[size], b[size], aStack, bStack))) break; - } - } - } else { - // Deep compare objects. - var keys = _.keys(a), key; - size = keys.length; - // Ensure that both objects contain the same number of properties before comparing deep equality. - result = _.keys(b).length === size; - if (result) { - while (size--) { - // Deep compare each member - key = keys[size]; - if (!(result = _.has(b, key) && eq(a[key], b[key], aStack, bStack))) break; - } - } - } - // Remove the first object from the stack of traversed objects. - aStack.pop(); - bStack.pop(); - return result; - }; - - // Perform a deep comparison to check if two objects are equal. - _.isEqual = function(a, b) { - return eq(a, b, [], []); - }; - - // Is a given array, string, or object empty? - // An "empty" object has no enumerable own-properties. - _.isEmpty = function(obj) { - if (obj == null) return true; - if (_.isArray(obj) || _.isString(obj) || _.isArguments(obj)) return obj.length === 0; - for (var key in obj) if (_.has(obj, key)) return false; - return true; - }; - - // Is a given value a DOM element? - _.isElement = function(obj) { - return !!(obj && obj.nodeType === 1); - }; - - // Is a given value an array? - // Delegates to ECMA5's native Array.isArray - _.isArray = nativeIsArray || function(obj) { - return toString.call(obj) === '[object Array]'; - }; - - // Is a given variable an object? - _.isObject = function(obj) { - var type = typeof obj; - return type === 'function' || type === 'object' && !!obj; - }; - - // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp, isError. - _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error'], function(name) { - _['is' + name] = function(obj) { - return toString.call(obj) === '[object ' + name + ']'; - }; - }); - - // Define a fallback version of the method in browsers (ahem, IE < 9), where - // there isn't any inspectable "Arguments" type. - if (!_.isArguments(arguments)) { - _.isArguments = function(obj) { - return _.has(obj, 'callee'); - }; - } - - // Optimize `isFunction` if appropriate. Work around an IE 11 bug. - if (typeof /./ !== 'function') { - _.isFunction = function(obj) { - return typeof obj == 'function' || false; - }; - } - - // Is a given object a finite number? - _.isFinite = function(obj) { - return isFinite(obj) && !isNaN(parseFloat(obj)); - }; - - // Is the given value `NaN`? (NaN is the only number which does not equal itself). - _.isNaN = function(obj) { - return _.isNumber(obj) && obj !== +obj; - }; - - // Is a given value a boolean? - _.isBoolean = function(obj) { - return obj === true || obj === false || toString.call(obj) === '[object Boolean]'; - }; - - // Is a given value equal to null? - _.isNull = function(obj) { - return obj === null; - }; - - // Is a given variable undefined? - _.isUndefined = function(obj) { - return obj === void 0; - }; - - // Shortcut function for checking if an object has a given property directly - // on itself (in other words, not on a prototype). - _.has = function(obj, key) { - return obj != null && hasOwnProperty.call(obj, key); - }; - - // Utility Functions - // ----------------- - - // Run Underscore.js in *noConflict* mode, returning the `_` variable to its - // previous owner. Returns a reference to the Underscore object. - _.noConflict = function() { - root._ = previousUnderscore; - return this; - }; - - // Keep the identity function around for default iteratees. - _.identity = function(value) { - return value; - }; - - // Predicate-generating functions. Often useful outside of Underscore. - _.constant = function(value) { - return function() { - return value; - }; - }; - - _.noop = function(){}; - - _.property = function(key) { - return function(obj) { - return obj == null ? void 0 : obj[key]; - }; - }; - - // Returns a predicate for checking whether an object has a given set of `key:value` pairs. - _.matches = function(attrs) { - var pairs = _.pairs(attrs), length = pairs.length; - return function(obj) { - if (obj == null) return !length; - obj = new Object(obj); - for (var i = 0; i < length; i++) { - var pair = pairs[i], key = pair[0]; - if (pair[1] !== obj[key] || !(key in obj)) return false; - } - return true; - }; - }; - - // Run a function **n** times. - _.times = function(n, iteratee, context) { - var accum = Array(Math.max(0, n)); - iteratee = optimizeCb(iteratee, context, 1); - for (var i = 0; i < n; i++) accum[i] = iteratee(i); - return accum; - }; - - // Return a random integer between min and max (inclusive). - _.random = function(min, max) { - if (max == null) { - max = min; - min = 0; - } - return min + Math.floor(Math.random() * (max - min + 1)); - }; - - // A (possibly faster) way to get the current timestamp as an integer. - _.now = Date.now || function() { - return new Date().getTime(); - }; - - // List of HTML entities for escaping. - var escapeMap = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''', - '`': '`' - }; - var unescapeMap = _.invert(escapeMap); - - // Functions for escaping and unescaping strings to/from HTML interpolation. - var createEscaper = function(map) { - var escaper = function(match) { - return map[match]; - }; - // Regexes for identifying a key that needs to be escaped - var source = '(?:' + _.keys(map).join('|') + ')'; - var testRegexp = RegExp(source); - var replaceRegexp = RegExp(source, 'g'); - return function(string) { - string = string == null ? '' : '' + string; - return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string; - }; - }; - _.escape = createEscaper(escapeMap); - _.unescape = createEscaper(unescapeMap); - - // If the value of the named `property` is a function then invoke it with the - // `object` as context; otherwise, return it. - _.result = function(object, property, fallback) { - var value = object == null ? void 0 : object[property]; - if (value === void 0) { - return fallback; - } - return _.isFunction(value) ? object[property]() : value; - }; - - // Generate a unique integer id (unique within the entire client session). - // Useful for temporary DOM ids. - var idCounter = 0; - _.uniqueId = function(prefix) { - var id = ++idCounter + ''; - return prefix ? prefix + id : id; - }; - - // By default, Underscore uses ERB-style template delimiters, change the - // following template settings to use alternative delimiters. - _.templateSettings = { - evaluate : /<%([\s\S]+?)%>/g, - interpolate : /<%=([\s\S]+?)%>/g, - escape : /<%-([\s\S]+?)%>/g - }; - - // When customizing `templateSettings`, if you don't want to define an - // interpolation, evaluation or escaping regex, we need one that is - // guaranteed not to match. - var noMatch = /(.)^/; - - // Certain characters need to be escaped so that they can be put into a - // string literal. - var escapes = { - "'": "'", - '\\': '\\', - '\r': 'r', - '\n': 'n', - '\u2028': 'u2028', - '\u2029': 'u2029' - }; - - var escaper = /\\|'|\r|\n|\u2028|\u2029/g; - - var escapeChar = function(match) { - return '\\' + escapes[match]; - }; - - // JavaScript micro-templating, similar to John Resig's implementation. - // Underscore templating handles arbitrary delimiters, preserves whitespace, - // and correctly escapes quotes within interpolated code. - // NB: `oldSettings` only exists for backwards compatibility. - _.template = function(text, settings, oldSettings) { - if (!settings && oldSettings) settings = oldSettings; - settings = _.defaults({}, settings, _.templateSettings); - - // Combine delimiters into one regular expression via alternation. - var matcher = RegExp([ - (settings.escape || noMatch).source, - (settings.interpolate || noMatch).source, - (settings.evaluate || noMatch).source - ].join('|') + '|$', 'g'); - - // Compile the template source, escaping string literals appropriately. - var index = 0; - var source = "__p+='"; - text.replace(matcher, function(match, escape, interpolate, evaluate, offset) { - source += text.slice(index, offset).replace(escaper, escapeChar); - index = offset + match.length; - - if (escape) { - source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'"; - } else if (interpolate) { - source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'"; - } else if (evaluate) { - source += "';\n" + evaluate + "\n__p+='"; - } - - // Adobe VMs need the match returned to produce the correct offest. - return match; - }); - source += "';\n"; - - // If a variable is not specified, place data values in local scope. - if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n'; - - source = "var __t,__p='',__j=Array.prototype.join," + - "print=function(){__p+=__j.call(arguments,'');};\n" + - source + 'return __p;\n'; - - try { - var render = new Function(settings.variable || 'obj', '_', source); - } catch (e) { - e.source = source; - throw e; - } - - var template = function(data) { - return render.call(this, data, _); - }; - - // Provide the compiled source as a convenience for precompilation. - var argument = settings.variable || 'obj'; - template.source = 'function(' + argument + '){\n' + source + '}'; - - return template; - }; - - // Add a "chain" function. Start chaining a wrapped Underscore object. - _.chain = function(obj) { - var instance = _(obj); - instance._chain = true; - return instance; - }; - - // OOP - // --------------- - // If Underscore is called as a function, it returns a wrapped object that - // can be used OO-style. This wrapper holds altered versions of all the - // underscore functions. Wrapped objects may be chained. - - // Helper function to continue chaining intermediate results. - var result = function(instance, obj) { - return instance._chain ? _(obj).chain() : obj; - }; - - // Add your own custom functions to the Underscore object. - _.mixin = function(obj) { - _.each(_.functions(obj), function(name) { - var func = _[name] = obj[name]; - _.prototype[name] = function() { - var args = [this._wrapped]; - push.apply(args, arguments); - return result(this, func.apply(_, args)); - }; - }); - }; - - // Add all of the Underscore functions to the wrapper object. - _.mixin(_); - - // Add all mutator Array functions to the wrapper. - _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) { - var method = ArrayProto[name]; - _.prototype[name] = function() { - var obj = this._wrapped; - method.apply(obj, arguments); - if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0]; - return result(this, obj); - }; - }); - - // Add all accessor Array functions to the wrapper. - _.each(['concat', 'join', 'slice'], function(name) { - var method = ArrayProto[name]; - _.prototype[name] = function() { - return result(this, method.apply(this._wrapped, arguments)); - }; - }); - - // Extracts the result from a wrapped and chained object. - _.prototype.value = function() { - return this._wrapped; - }; - - // AMD registration happens at the end for compatibility with AMD loaders - // that may not enforce next-turn semantics on modules. Even though general - // practice for AMD registration is to be anonymous, underscore registers - // as a named module because, like jQuery, it is a base library that is - // popular enough to be bundled in a third party lib, but not be part of - // an AMD load request. Those cases could generate an error when an - // anonymous define() is called outside of a loader request. - if (typeof define === 'function' && define.amd) { - define('underscore', [], function() { - return _; - }); - } -}.call(this)); diff --git a/node_modules/jsbn/.npmignore b/node_modules/jsbn/.npmignore deleted file mode 100644 index 28f1ba7..0000000 --- a/node_modules/jsbn/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -.DS_Store \ No newline at end of file diff --git a/node_modules/jsbn/LICENSE b/node_modules/jsbn/LICENSE deleted file mode 100644 index 2a6457e..0000000 --- a/node_modules/jsbn/LICENSE +++ /dev/null @@ -1,40 +0,0 @@ -Licensing ---------- - -This software is covered under the following copyright: - -/* - * Copyright (c) 2003-2005 Tom Wu - * 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" AND WITHOUT WARRANTY OF ANY KIND, - * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY - * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - * - * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, - * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER - * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF - * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT - * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * In addition, the following condition applies: - * - * All redistributions must retain an intact copy of this copyright notice - * and disclaimer. - */ - -Address all questions regarding this license to: - - Tom Wu - tjw@cs.Stanford.EDU \ No newline at end of file diff --git a/node_modules/jsbn/README.md b/node_modules/jsbn/README.md deleted file mode 100644 index 7aac67f..0000000 --- a/node_modules/jsbn/README.md +++ /dev/null @@ -1,175 +0,0 @@ -# jsbn: javascript big number - -[Tom Wu's Original Website](http://www-cs-students.stanford.edu/~tjw/jsbn/) - -I felt compelled to put this on github and publish to npm. I haven't tested every other big integer library out there, but the few that I have tested in comparison to this one have not even come close in performance. I am aware of the `bi` module on npm, however it has been modified and I wanted to publish the original without modifications. This is jsbn and jsbn2 from Tom Wu's original website above, with the modular pattern applied to prevent global leaks and to allow for use with node.js on the server side. - -## usage - - var BigInteger = require('jsbn'); - - var a = new BigInteger('91823918239182398123'); - alert(a.bitLength()); // 67 - - -## API - -### bi.toString() - -returns the base-10 number as a string - -### bi.negate() - -returns a new BigInteger equal to the negation of `bi` - -### bi.abs - -returns new BI of absolute value - -### bi.compareTo - - - -### bi.bitLength - - - -### bi.mod - - - -### bi.modPowInt - - - -### bi.clone - - - -### bi.intValue - - - -### bi.byteValue - - - -### bi.shortValue - - - -### bi.signum - - - -### bi.toByteArray - - - -### bi.equals - - - -### bi.min - - - -### bi.max - - - -### bi.and - - - -### bi.or - - - -### bi.xor - - - -### bi.andNot - - - -### bi.not - - - -### bi.shiftLeft - - - -### bi.shiftRight - - - -### bi.getLowestSetBit - - - -### bi.bitCount - - - -### bi.testBit - - - -### bi.setBit - - - -### bi.clearBit - - - -### bi.flipBit - - - -### bi.add - - - -### bi.subtract - - - -### bi.multiply - - - -### bi.divide - - - -### bi.remainder - - - -### bi.divideAndRemainder - - - -### bi.modPow - - - -### bi.modInverse - - - -### bi.pow - - - -### bi.gcd - - - -### bi.isProbablePrime - - diff --git a/node_modules/jsbn/example.html b/node_modules/jsbn/example.html deleted file mode 100644 index 7c26a56..0000000 --- a/node_modules/jsbn/example.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/node_modules/jsbn/example.js b/node_modules/jsbn/example.js deleted file mode 100644 index 664c1b4..0000000 --- a/node_modules/jsbn/example.js +++ /dev/null @@ -1,3 +0,0 @@ -var BigInteger = require('./'); -var a = new BigInteger('91823918239182398123'); -console.log(a.bitLength()); \ No newline at end of file diff --git a/node_modules/jsbn/index.js b/node_modules/jsbn/index.js deleted file mode 100644 index 973226d..0000000 --- a/node_modules/jsbn/index.js +++ /dev/null @@ -1,1357 +0,0 @@ -(function(){ - - // Copyright (c) 2005 Tom Wu - // All Rights Reserved. - // See "LICENSE" for details. - - // Basic JavaScript BN library - subset useful for RSA encryption. - - // Bits per digit - var dbits; - - // JavaScript engine analysis - var canary = 0xdeadbeefcafe; - var j_lm = ((canary&0xffffff)==0xefcafe); - - // (public) Constructor - function BigInteger(a,b,c) { - if(a != null) - if("number" == typeof a) this.fromNumber(a,b,c); - else if(b == null && "string" != typeof a) this.fromString(a,256); - else this.fromString(a,b); - } - - // return new, unset BigInteger - function nbi() { return new BigInteger(null); } - - // am: Compute w_j += (x*this_i), propagate carries, - // c is initial carry, returns final carry. - // c < 3*dvalue, x < 2*dvalue, this_i < dvalue - // We need to select the fastest one that works in this environment. - - // am1: use a single mult and divide to get the high bits, - // max digit bits should be 26 because - // max internal value = 2*dvalue^2-2*dvalue (< 2^53) - function am1(i,x,w,j,c,n) { - while(--n >= 0) { - var v = x*this[i++]+w[j]+c; - c = Math.floor(v/0x4000000); - w[j++] = v&0x3ffffff; - } - return c; - } - // am2 avoids a big mult-and-extract completely. - // Max digit bits should be <= 30 because we do bitwise ops - // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) - function am2(i,x,w,j,c,n) { - var xl = x&0x7fff, xh = x>>15; - while(--n >= 0) { - var l = this[i]&0x7fff; - var h = this[i++]>>15; - var m = xh*l+h*xl; - l = xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff); - c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); - w[j++] = l&0x3fffffff; - } - return c; - } - // Alternately, set max digit bits to 28 since some - // browsers slow down when dealing with 32-bit numbers. - function am3(i,x,w,j,c,n) { - var xl = x&0x3fff, xh = x>>14; - while(--n >= 0) { - var l = this[i]&0x3fff; - var h = this[i++]>>14; - var m = xh*l+h*xl; - l = xl*l+((m&0x3fff)<<14)+w[j]+c; - c = (l>>28)+(m>>14)+xh*h; - w[j++] = l&0xfffffff; - } - return c; - } - var inBrowser = typeof navigator !== "undefined"; - if(inBrowser && j_lm && (navigator.appName == "Microsoft Internet Explorer")) { - BigInteger.prototype.am = am2; - dbits = 30; - } - else if(inBrowser && j_lm && (navigator.appName != "Netscape")) { - BigInteger.prototype.am = am1; - dbits = 26; - } - else { // Mozilla/Netscape seems to prefer am3 - BigInteger.prototype.am = am3; - dbits = 28; - } - - BigInteger.prototype.DB = dbits; - BigInteger.prototype.DM = ((1<= 0; --i) r[i] = this[i]; - r.t = this.t; - r.s = this.s; - } - - // (protected) set from integer value x, -DV <= x < DV - function bnpFromInt(x) { - this.t = 1; - this.s = (x<0)?-1:0; - if(x > 0) this[0] = x; - else if(x < -1) this[0] = x+this.DV; - else this.t = 0; - } - - // return bigint initialized to value - function nbv(i) { var r = nbi(); r.fromInt(i); return r; } - - // (protected) set from string and radix - function bnpFromString(s,b) { - var k; - if(b == 16) k = 4; - else if(b == 8) k = 3; - else if(b == 256) k = 8; // byte array - else if(b == 2) k = 1; - else if(b == 32) k = 5; - else if(b == 4) k = 2; - else { this.fromRadix(s,b); return; } - this.t = 0; - this.s = 0; - var i = s.length, mi = false, sh = 0; - while(--i >= 0) { - var x = (k==8)?s[i]&0xff:intAt(s,i); - if(x < 0) { - if(s.charAt(i) == "-") mi = true; - continue; - } - mi = false; - if(sh == 0) - this[this.t++] = x; - else if(sh+k > this.DB) { - this[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); - } - else - this[this.t-1] |= x<= this.DB) sh -= this.DB; - } - if(k == 8 && (s[0]&0x80) != 0) { - this.s = -1; - if(sh > 0) this[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this[this.t-1] == c) --this.t; - } - - // (public) return string representation in given radix - function bnToString(b) { - if(this.s < 0) return "-"+this.negate().toString(b); - var k; - if(b == 16) k = 4; - else if(b == 8) k = 3; - else if(b == 2) k = 1; - else if(b == 32) k = 5; - else if(b == 4) k = 2; - else return this.toRadix(b); - var km = (1< 0) { - if(p < this.DB && (d = this[i]>>p) > 0) { m = true; r = int2char(d); } - while(i >= 0) { - if(p < k) { - d = (this[i]&((1<>(p+=this.DB-k); - } - else { - d = (this[i]>>(p-=k))&km; - if(p <= 0) { p += this.DB; --i; } - } - if(d > 0) m = true; - if(m) r += int2char(d); - } - } - return m?r:"0"; - } - - // (public) -this - function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } - - // (public) |this| - function bnAbs() { return (this.s<0)?this.negate():this; } - - // (public) return + if this > a, - if this < a, 0 if equal - function bnCompareTo(a) { - var r = this.s-a.s; - if(r != 0) return r; - var i = this.t; - r = i-a.t; - if(r != 0) return (this.s<0)?-r:r; - while(--i >= 0) if((r=this[i]-a[i]) != 0) return r; - return 0; - } - - // returns bit length of the integer x - function nbits(x) { - var r = 1, t; - if((t=x>>>16) != 0) { x = t; r += 16; } - if((t=x>>8) != 0) { x = t; r += 8; } - if((t=x>>4) != 0) { x = t; r += 4; } - if((t=x>>2) != 0) { x = t; r += 2; } - if((t=x>>1) != 0) { x = t; r += 1; } - return r; - } - - // (public) return the number of bits in "this" - function bnBitLength() { - if(this.t <= 0) return 0; - return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM)); - } - - // (protected) r = this << n*DB - function bnpDLShiftTo(n,r) { - var i; - for(i = this.t-1; i >= 0; --i) r[i+n] = this[i]; - for(i = n-1; i >= 0; --i) r[i] = 0; - r.t = this.t+n; - r.s = this.s; - } - - // (protected) r = this >> n*DB - function bnpDRShiftTo(n,r) { - for(var i = n; i < this.t; ++i) r[i-n] = this[i]; - r.t = Math.max(this.t-n,0); - r.s = this.s; - } - - // (protected) r = this << n - function bnpLShiftTo(n,r) { - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<= 0; --i) { - r[i+ds+1] = (this[i]>>cbs)|c; - c = (this[i]&bm)<= 0; --i) r[i] = 0; - r[ds] = c; - r.t = this.t+ds+1; - r.s = this.s; - r.clamp(); - } - - // (protected) r = this >> n - function bnpRShiftTo(n,r) { - r.s = this.s; - var ds = Math.floor(n/this.DB); - if(ds >= this.t) { r.t = 0; return; } - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<>bs; - for(var i = ds+1; i < this.t; ++i) { - r[i-ds-1] |= (this[i]&bm)<>bs; - } - if(bs > 0) r[this.t-ds-1] |= (this.s&bm)<>= this.DB; - } - if(a.t < this.t) { - c -= a.s; - while(i < this.t) { - c += this[i]; - r[i++] = c&this.DM; - c >>= this.DB; - } - c += this.s; - } - else { - c += this.s; - while(i < a.t) { - c -= a[i]; - r[i++] = c&this.DM; - c >>= this.DB; - } - c -= a.s; - } - r.s = (c<0)?-1:0; - if(c < -1) r[i++] = this.DV+c; - else if(c > 0) r[i++] = c; - r.t = i; - r.clamp(); - } - - // (protected) r = this * a, r != this,a (HAC 14.12) - // "this" should be the larger one if appropriate. - function bnpMultiplyTo(a,r) { - var x = this.abs(), y = a.abs(); - var i = x.t; - r.t = i+y.t; - while(--i >= 0) r[i] = 0; - for(i = 0; i < y.t; ++i) r[i+x.t] = x.am(0,y[i],r,i,0,x.t); - r.s = 0; - r.clamp(); - if(this.s != a.s) BigInteger.ZERO.subTo(r,r); - } - - // (protected) r = this^2, r != this (HAC 14.16) - function bnpSquareTo(r) { - var x = this.abs(); - var i = r.t = 2*x.t; - while(--i >= 0) r[i] = 0; - for(i = 0; i < x.t-1; ++i) { - var c = x.am(i,x[i],r,2*i,0,1); - if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { - r[i+x.t] -= x.DV; - r[i+x.t+1] = 1; - } - } - if(r.t > 0) r[r.t-1] += x.am(i,x[i],r,2*i,0,1); - r.s = 0; - r.clamp(); - } - - // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) - // r != q, this != m. q or r may be null. - function bnpDivRemTo(m,q,r) { - var pm = m.abs(); - if(pm.t <= 0) return; - var pt = this.abs(); - if(pt.t < pm.t) { - if(q != null) q.fromInt(0); - if(r != null) this.copyTo(r); - return; - } - if(r == null) r = nbi(); - var y = nbi(), ts = this.s, ms = m.s; - var nsh = this.DB-nbits(pm[pm.t-1]); // normalize modulus - if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); } - else { pm.copyTo(y); pt.copyTo(r); } - var ys = y.t; - var y0 = y[ys-1]; - if(y0 == 0) return; - var yt = y0*(1<1)?y[ys-2]>>this.F2:0); - var d1 = this.FV/yt, d2 = (1<= 0) { - r[r.t++] = 1; - r.subTo(t,r); - } - BigInteger.ONE.dlShiftTo(ys,t); - t.subTo(y,y); // "negative" y so we can replace sub with am later - while(y.t < ys) y[y.t++] = 0; - while(--j >= 0) { - // Estimate quotient digit - var qd = (r[--i]==y0)?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2); - if((r[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out - y.dlShiftTo(j,t); - r.subTo(t,r); - while(r[i] < --qd) r.subTo(t,r); - } - } - if(q != null) { - r.drShiftTo(ys,q); - if(ts != ms) BigInteger.ZERO.subTo(q,q); - } - r.t = ys; - r.clamp(); - if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder - if(ts < 0) BigInteger.ZERO.subTo(r,r); - } - - // (public) this mod a - function bnMod(a) { - var r = nbi(); - this.abs().divRemTo(a,null,r); - if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r); - return r; - } - - // Modular reduction using "classic" algorithm - function Classic(m) { this.m = m; } - function cConvert(x) { - if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m); - else return x; - } - function cRevert(x) { return x; } - function cReduce(x) { x.divRemTo(this.m,null,x); } - function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - - Classic.prototype.convert = cConvert; - Classic.prototype.revert = cRevert; - Classic.prototype.reduce = cReduce; - Classic.prototype.mulTo = cMulTo; - Classic.prototype.sqrTo = cSqrTo; - - // (protected) return "-1/this % 2^DB"; useful for Mont. reduction - // justification: - // xy == 1 (mod m) - // xy = 1+km - // xy(2-xy) = (1+km)(1-km) - // x[y(2-xy)] = 1-k^2m^2 - // x[y(2-xy)] == 1 (mod m^2) - // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 - // should reduce x and y(2-xy) by m^2 at each step to keep size bounded. - // JS multiply "overflows" differently from C/C++, so care is needed here. - function bnpInvDigit() { - if(this.t < 1) return 0; - var x = this[0]; - if((x&1) == 0) return 0; - var y = x&3; // y == 1/x mod 2^2 - y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4 - y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8 - y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16 - // last step - calculate inverse mod DV directly; - // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints - y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits - // we really want the negative inverse, and -DV < y < DV - return (y>0)?this.DV-y:-y; - } - - // Montgomery reduction - function Montgomery(m) { - this.m = m; - this.mp = m.invDigit(); - this.mpl = this.mp&0x7fff; - this.mph = this.mp>>15; - this.um = (1<<(m.DB-15))-1; - this.mt2 = 2*m.t; - } - - // xR mod m - function montConvert(x) { - var r = nbi(); - x.abs().dlShiftTo(this.m.t,r); - r.divRemTo(this.m,null,r); - if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r); - return r; - } - - // x/R mod m - function montRevert(x) { - var r = nbi(); - x.copyTo(r); - this.reduce(r); - return r; - } - - // x = x/R mod m (HAC 14.32) - function montReduce(x) { - while(x.t <= this.mt2) // pad x so am has enough room later - x[x.t++] = 0; - for(var i = 0; i < this.m.t; ++i) { - // faster way of calculating u0 = x[i]*mp mod DV - var j = x[i]&0x7fff; - var u0 = (j*this.mpl+(((j*this.mph+(x[i]>>15)*this.mpl)&this.um)<<15))&x.DM; - // use am to combine the multiply-shift-add into one call - j = i+this.m.t; - x[j] += this.m.am(0,u0,x,i,0,this.m.t); - // propagate carry - while(x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; } - } - x.clamp(); - x.drShiftTo(this.m.t,x); - if(x.compareTo(this.m) >= 0) x.subTo(this.m,x); - } - - // r = "x^2/R mod m"; x != r - function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - - // r = "xy/R mod m"; x,y != r - function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - - Montgomery.prototype.convert = montConvert; - Montgomery.prototype.revert = montRevert; - Montgomery.prototype.reduce = montReduce; - Montgomery.prototype.mulTo = montMulTo; - Montgomery.prototype.sqrTo = montSqrTo; - - // (protected) true iff this is even - function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; } - - // (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) - function bnpExp(e,z) { - if(e > 0xffffffff || e < 1) return BigInteger.ONE; - var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1; - g.copyTo(r); - while(--i >= 0) { - z.sqrTo(r,r2); - if((e&(1< 0) z.mulTo(r2,g,r); - else { var t = r; r = r2; r2 = t; } - } - return z.revert(r); - } - - // (public) this^e % m, 0 <= e < 2^32 - function bnModPowInt(e,m) { - var z; - if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m); - return this.exp(e,z); - } - - // protected - BigInteger.prototype.copyTo = bnpCopyTo; - BigInteger.prototype.fromInt = bnpFromInt; - BigInteger.prototype.fromString = bnpFromString; - BigInteger.prototype.clamp = bnpClamp; - BigInteger.prototype.dlShiftTo = bnpDLShiftTo; - BigInteger.prototype.drShiftTo = bnpDRShiftTo; - BigInteger.prototype.lShiftTo = bnpLShiftTo; - BigInteger.prototype.rShiftTo = bnpRShiftTo; - BigInteger.prototype.subTo = bnpSubTo; - BigInteger.prototype.multiplyTo = bnpMultiplyTo; - BigInteger.prototype.squareTo = bnpSquareTo; - BigInteger.prototype.divRemTo = bnpDivRemTo; - BigInteger.prototype.invDigit = bnpInvDigit; - BigInteger.prototype.isEven = bnpIsEven; - BigInteger.prototype.exp = bnpExp; - - // public - BigInteger.prototype.toString = bnToString; - BigInteger.prototype.negate = bnNegate; - BigInteger.prototype.abs = bnAbs; - BigInteger.prototype.compareTo = bnCompareTo; - BigInteger.prototype.bitLength = bnBitLength; - BigInteger.prototype.mod = bnMod; - BigInteger.prototype.modPowInt = bnModPowInt; - - // "constants" - BigInteger.ZERO = nbv(0); - BigInteger.ONE = nbv(1); - - // Copyright (c) 2005-2009 Tom Wu - // All Rights Reserved. - // See "LICENSE" for details. - - // Extended JavaScript BN functions, required for RSA private ops. - - // Version 1.1: new BigInteger("0", 10) returns "proper" zero - // Version 1.2: square() API, isProbablePrime fix - - // (public) - function bnClone() { var r = nbi(); this.copyTo(r); return r; } - - // (public) return value as integer - function bnIntValue() { - if(this.s < 0) { - if(this.t == 1) return this[0]-this.DV; - else if(this.t == 0) return -1; - } - else if(this.t == 1) return this[0]; - else if(this.t == 0) return 0; - // assumes 16 < DB < 32 - return ((this[1]&((1<<(32-this.DB))-1))<>24; } - - // (public) return value as short (assumes DB>=16) - function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; } - - // (protected) return x s.t. r^x < DV - function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); } - - // (public) 0 if this == 0, 1 if this > 0 - function bnSigNum() { - if(this.s < 0) return -1; - else if(this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0; - else return 1; - } - - // (protected) convert to radix string - function bnpToRadix(b) { - if(b == null) b = 10; - if(this.signum() == 0 || b < 2 || b > 36) return "0"; - var cs = this.chunkSize(b); - var a = Math.pow(b,cs); - var d = nbv(a), y = nbi(), z = nbi(), r = ""; - this.divRemTo(d,y,z); - while(y.signum() > 0) { - r = (a+z.intValue()).toString(b).substr(1) + r; - y.divRemTo(d,y,z); - } - return z.intValue().toString(b) + r; - } - - // (protected) convert from radix string - function bnpFromRadix(s,b) { - this.fromInt(0); - if(b == null) b = 10; - var cs = this.chunkSize(b); - var d = Math.pow(b,cs), mi = false, j = 0, w = 0; - for(var i = 0; i < s.length; ++i) { - var x = intAt(s,i); - if(x < 0) { - if(s.charAt(i) == "-" && this.signum() == 0) mi = true; - continue; - } - w = b*w+x; - if(++j >= cs) { - this.dMultiply(d); - this.dAddOffset(w,0); - j = 0; - w = 0; - } - } - if(j > 0) { - this.dMultiply(Math.pow(b,j)); - this.dAddOffset(w,0); - } - if(mi) BigInteger.ZERO.subTo(this,this); - } - - // (protected) alternate constructor - function bnpFromNumber(a,b,c) { - if("number" == typeof b) { - // new BigInteger(int,int,RNG) - if(a < 2) this.fromInt(1); - else { - this.fromNumber(a,c); - if(!this.testBit(a-1)) // force MSB set - this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this); - if(this.isEven()) this.dAddOffset(1,0); // force odd - while(!this.isProbablePrime(b)) { - this.dAddOffset(2,0); - if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this); - } - } - } - else { - // new BigInteger(int,RNG) - var x = new Array(), t = a&7; - x.length = (a>>3)+1; - b.nextBytes(x); - if(t > 0) x[0] &= ((1< 0) { - if(p < this.DB && (d = this[i]>>p) != (this.s&this.DM)>>p) - r[k++] = d|(this.s<<(this.DB-p)); - while(i >= 0) { - if(p < 8) { - d = (this[i]&((1<>(p+=this.DB-8); - } - else { - d = (this[i]>>(p-=8))&0xff; - if(p <= 0) { p += this.DB; --i; } - } - if((d&0x80) != 0) d |= -256; - if(k == 0 && (this.s&0x80) != (d&0x80)) ++k; - if(k > 0 || d != this.s) r[k++] = d; - } - } - return r; - } - - function bnEquals(a) { return(this.compareTo(a)==0); } - function bnMin(a) { return(this.compareTo(a)<0)?this:a; } - function bnMax(a) { return(this.compareTo(a)>0)?this:a; } - - // (protected) r = this op a (bitwise) - function bnpBitwiseTo(a,op,r) { - var i, f, m = Math.min(a.t,this.t); - for(i = 0; i < m; ++i) r[i] = op(this[i],a[i]); - if(a.t < this.t) { - f = a.s&this.DM; - for(i = m; i < this.t; ++i) r[i] = op(this[i],f); - r.t = this.t; - } - else { - f = this.s&this.DM; - for(i = m; i < a.t; ++i) r[i] = op(f,a[i]); - r.t = a.t; - } - r.s = op(this.s,a.s); - r.clamp(); - } - - // (public) this & a - function op_and(x,y) { return x&y; } - function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; } - - // (public) this | a - function op_or(x,y) { return x|y; } - function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; } - - // (public) this ^ a - function op_xor(x,y) { return x^y; } - function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; } - - // (public) this & ~a - function op_andnot(x,y) { return x&~y; } - function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; } - - // (public) ~this - function bnNot() { - var r = nbi(); - for(var i = 0; i < this.t; ++i) r[i] = this.DM&~this[i]; - r.t = this.t; - r.s = ~this.s; - return r; - } - - // (public) this << n - function bnShiftLeft(n) { - var r = nbi(); - if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r); - return r; - } - - // (public) this >> n - function bnShiftRight(n) { - var r = nbi(); - if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r); - return r; - } - - // return index of lowest 1-bit in x, x < 2^31 - function lbit(x) { - if(x == 0) return -1; - var r = 0; - if((x&0xffff) == 0) { x >>= 16; r += 16; } - if((x&0xff) == 0) { x >>= 8; r += 8; } - if((x&0xf) == 0) { x >>= 4; r += 4; } - if((x&3) == 0) { x >>= 2; r += 2; } - if((x&1) == 0) ++r; - return r; - } - - // (public) returns index of lowest 1-bit (or -1 if none) - function bnGetLowestSetBit() { - for(var i = 0; i < this.t; ++i) - if(this[i] != 0) return i*this.DB+lbit(this[i]); - if(this.s < 0) return this.t*this.DB; - return -1; - } - - // return number of 1 bits in x - function cbit(x) { - var r = 0; - while(x != 0) { x &= x-1; ++r; } - return r; - } - - // (public) return number of set bits - function bnBitCount() { - var r = 0, x = this.s&this.DM; - for(var i = 0; i < this.t; ++i) r += cbit(this[i]^x); - return r; - } - - // (public) true iff nth bit is set - function bnTestBit(n) { - var j = Math.floor(n/this.DB); - if(j >= this.t) return(this.s!=0); - return((this[j]&(1<<(n%this.DB)))!=0); - } - - // (protected) this op (1<>= this.DB; - } - if(a.t < this.t) { - c += a.s; - while(i < this.t) { - c += this[i]; - r[i++] = c&this.DM; - c >>= this.DB; - } - c += this.s; - } - else { - c += this.s; - while(i < a.t) { - c += a[i]; - r[i++] = c&this.DM; - c >>= this.DB; - } - c += a.s; - } - r.s = (c<0)?-1:0; - if(c > 0) r[i++] = c; - else if(c < -1) r[i++] = this.DV+c; - r.t = i; - r.clamp(); - } - - // (public) this + a - function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; } - - // (public) this - a - function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; } - - // (public) this * a - function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } - - // (public) this^2 - function bnSquare() { var r = nbi(); this.squareTo(r); return r; } - - // (public) this / a - function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; } - - // (public) this % a - function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; } - - // (public) [this/a,this%a] - function bnDivideAndRemainder(a) { - var q = nbi(), r = nbi(); - this.divRemTo(a,q,r); - return new Array(q,r); - } - - // (protected) this *= n, this >= 0, 1 < n < DV - function bnpDMultiply(n) { - this[this.t] = this.am(0,n-1,this,0,0,this.t); - ++this.t; - this.clamp(); - } - - // (protected) this += n << w words, this >= 0 - function bnpDAddOffset(n,w) { - if(n == 0) return; - while(this.t <= w) this[this.t++] = 0; - this[w] += n; - while(this[w] >= this.DV) { - this[w] -= this.DV; - if(++w >= this.t) this[this.t++] = 0; - ++this[w]; - } - } - - // A "null" reducer - function NullExp() {} - function nNop(x) { return x; } - function nMulTo(x,y,r) { x.multiplyTo(y,r); } - function nSqrTo(x,r) { x.squareTo(r); } - - NullExp.prototype.convert = nNop; - NullExp.prototype.revert = nNop; - NullExp.prototype.mulTo = nMulTo; - NullExp.prototype.sqrTo = nSqrTo; - - // (public) this^e - function bnPow(e) { return this.exp(e,new NullExp()); } - - // (protected) r = lower n words of "this * a", a.t <= n - // "this" should be the larger one if appropriate. - function bnpMultiplyLowerTo(a,n,r) { - var i = Math.min(this.t+a.t,n); - r.s = 0; // assumes a,this >= 0 - r.t = i; - while(i > 0) r[--i] = 0; - var j; - for(j = r.t-this.t; i < j; ++i) r[i+this.t] = this.am(0,a[i],r,i,0,this.t); - for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a[i],r,i,0,n-i); - r.clamp(); - } - - // (protected) r = "this * a" without lower n words, n > 0 - // "this" should be the larger one if appropriate. - function bnpMultiplyUpperTo(a,n,r) { - --n; - var i = r.t = this.t+a.t-n; - r.s = 0; // assumes a,this >= 0 - while(--i >= 0) r[i] = 0; - for(i = Math.max(n-this.t,0); i < a.t; ++i) - r[this.t+i-n] = this.am(n-i,a[i],r,0,0,this.t+i-n); - r.clamp(); - r.drShiftTo(1,r); - } - - // Barrett modular reduction - function Barrett(m) { - // setup Barrett - this.r2 = nbi(); - this.q3 = nbi(); - BigInteger.ONE.dlShiftTo(2*m.t,this.r2); - this.mu = this.r2.divide(m); - this.m = m; - } - - function barrettConvert(x) { - if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m); - else if(x.compareTo(this.m) < 0) return x; - else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; } - } - - function barrettRevert(x) { return x; } - - // x = x mod m (HAC 14.42) - function barrettReduce(x) { - x.drShiftTo(this.m.t-1,this.r2); - if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); } - this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3); - this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2); - while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1); - x.subTo(this.r2,x); - while(x.compareTo(this.m) >= 0) x.subTo(this.m,x); - } - - // r = x^2 mod m; x != r - function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - - // r = x*y mod m; x,y != r - function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - - Barrett.prototype.convert = barrettConvert; - Barrett.prototype.revert = barrettRevert; - Barrett.prototype.reduce = barrettReduce; - Barrett.prototype.mulTo = barrettMulTo; - Barrett.prototype.sqrTo = barrettSqrTo; - - // (public) this^e % m (HAC 14.85) - function bnModPow(e,m) { - var i = e.bitLength(), k, r = nbv(1), z; - if(i <= 0) return r; - else if(i < 18) k = 1; - else if(i < 48) k = 3; - else if(i < 144) k = 4; - else if(i < 768) k = 5; - else k = 6; - if(i < 8) - z = new Classic(m); - else if(m.isEven()) - z = new Barrett(m); - else - z = new Montgomery(m); - - // precomputation - var g = new Array(), n = 3, k1 = k-1, km = (1< 1) { - var g2 = nbi(); - z.sqrTo(g[1],g2); - while(n <= km) { - g[n] = nbi(); - z.mulTo(g2,g[n-2],g[n]); - n += 2; - } - } - - var j = e.t-1, w, is1 = true, r2 = nbi(), t; - i = nbits(e[j])-1; - while(j >= 0) { - if(i >= k1) w = (e[j]>>(i-k1))&km; - else { - w = (e[j]&((1<<(i+1))-1))<<(k1-i); - if(j > 0) w |= e[j-1]>>(this.DB+i-k1); - } - - n = k; - while((w&1) == 0) { w >>= 1; --n; } - if((i -= n) < 0) { i += this.DB; --j; } - if(is1) { // ret == 1, don't bother squaring or multiplying it - g[w].copyTo(r); - is1 = false; - } - else { - while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; } - if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; } - z.mulTo(r2,g[w],r); - } - - while(j >= 0 && (e[j]&(1< 0) { - x.rShiftTo(g,x); - y.rShiftTo(g,y); - } - while(x.signum() > 0) { - if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x); - if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y); - if(x.compareTo(y) >= 0) { - x.subTo(y,x); - x.rShiftTo(1,x); - } - else { - y.subTo(x,y); - y.rShiftTo(1,y); - } - } - if(g > 0) y.lShiftTo(g,y); - return y; - } - - // (protected) this % n, n < 2^26 - function bnpModInt(n) { - if(n <= 0) return 0; - var d = this.DV%n, r = (this.s<0)?n-1:0; - if(this.t > 0) - if(d == 0) r = this[0]%n; - else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n; - return r; - } - - // (public) 1/this % m (HAC 14.61) - function bnModInverse(m) { - var ac = m.isEven(); - if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO; - var u = m.clone(), v = this.clone(); - var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1); - while(u.signum() != 0) { - while(u.isEven()) { - u.rShiftTo(1,u); - if(ac) { - if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); } - a.rShiftTo(1,a); - } - else if(!b.isEven()) b.subTo(m,b); - b.rShiftTo(1,b); - } - while(v.isEven()) { - v.rShiftTo(1,v); - if(ac) { - if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); } - c.rShiftTo(1,c); - } - else if(!d.isEven()) d.subTo(m,d); - d.rShiftTo(1,d); - } - if(u.compareTo(v) >= 0) { - u.subTo(v,u); - if(ac) a.subTo(c,a); - b.subTo(d,b); - } - else { - v.subTo(u,v); - if(ac) c.subTo(a,c); - d.subTo(b,d); - } - } - if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO; - if(d.compareTo(m) >= 0) return d.subtract(m); - if(d.signum() < 0) d.addTo(m,d); else return d; - if(d.signum() < 0) return d.add(m); else return d; - } - - var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997]; - var lplim = (1<<26)/lowprimes[lowprimes.length-1]; - - // (public) test primality with certainty >= 1-.5^t - function bnIsProbablePrime(t) { - var i, x = this.abs(); - if(x.t == 1 && x[0] <= lowprimes[lowprimes.length-1]) { - for(i = 0; i < lowprimes.length; ++i) - if(x[0] == lowprimes[i]) return true; - return false; - } - if(x.isEven()) return false; - i = 1; - while(i < lowprimes.length) { - var m = lowprimes[i], j = i+1; - while(j < lowprimes.length && m < lplim) m *= lowprimes[j++]; - m = x.modInt(m); - while(i < j) if(m%lowprimes[i++] == 0) return false; - } - return x.millerRabin(t); - } - - // (protected) true if probably prime (HAC 4.24, Miller-Rabin) - function bnpMillerRabin(t) { - var n1 = this.subtract(BigInteger.ONE); - var k = n1.getLowestSetBit(); - if(k <= 0) return false; - var r = n1.shiftRight(k); - t = (t+1)>>1; - if(t > lowprimes.length) t = lowprimes.length; - var a = nbi(); - for(var i = 0; i < t; ++i) { - //Pick bases at random, instead of starting at 2 - a.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]); - var y = a.modPow(r,this); - if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) { - var j = 1; - while(j++ < k && y.compareTo(n1) != 0) { - y = y.modPowInt(2,this); - if(y.compareTo(BigInteger.ONE) == 0) return false; - } - if(y.compareTo(n1) != 0) return false; - } - } - return true; - } - - // protected - BigInteger.prototype.chunkSize = bnpChunkSize; - BigInteger.prototype.toRadix = bnpToRadix; - BigInteger.prototype.fromRadix = bnpFromRadix; - BigInteger.prototype.fromNumber = bnpFromNumber; - BigInteger.prototype.bitwiseTo = bnpBitwiseTo; - BigInteger.prototype.changeBit = bnpChangeBit; - BigInteger.prototype.addTo = bnpAddTo; - BigInteger.prototype.dMultiply = bnpDMultiply; - BigInteger.prototype.dAddOffset = bnpDAddOffset; - BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo; - BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo; - BigInteger.prototype.modInt = bnpModInt; - BigInteger.prototype.millerRabin = bnpMillerRabin; - - // public - BigInteger.prototype.clone = bnClone; - BigInteger.prototype.intValue = bnIntValue; - BigInteger.prototype.byteValue = bnByteValue; - BigInteger.prototype.shortValue = bnShortValue; - BigInteger.prototype.signum = bnSigNum; - BigInteger.prototype.toByteArray = bnToByteArray; - BigInteger.prototype.equals = bnEquals; - BigInteger.prototype.min = bnMin; - BigInteger.prototype.max = bnMax; - BigInteger.prototype.and = bnAnd; - BigInteger.prototype.or = bnOr; - BigInteger.prototype.xor = bnXor; - BigInteger.prototype.andNot = bnAndNot; - BigInteger.prototype.not = bnNot; - BigInteger.prototype.shiftLeft = bnShiftLeft; - BigInteger.prototype.shiftRight = bnShiftRight; - BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit; - BigInteger.prototype.bitCount = bnBitCount; - BigInteger.prototype.testBit = bnTestBit; - BigInteger.prototype.setBit = bnSetBit; - BigInteger.prototype.clearBit = bnClearBit; - BigInteger.prototype.flipBit = bnFlipBit; - BigInteger.prototype.add = bnAdd; - BigInteger.prototype.subtract = bnSubtract; - BigInteger.prototype.multiply = bnMultiply; - BigInteger.prototype.divide = bnDivide; - BigInteger.prototype.remainder = bnRemainder; - BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder; - BigInteger.prototype.modPow = bnModPow; - BigInteger.prototype.modInverse = bnModInverse; - BigInteger.prototype.pow = bnPow; - BigInteger.prototype.gcd = bnGCD; - BigInteger.prototype.isProbablePrime = bnIsProbablePrime; - - // JSBN-specific extension - BigInteger.prototype.square = bnSquare; - - // Expose the Barrett function - BigInteger.prototype.Barrett = Barrett - - // BigInteger interfaces not implemented in jsbn: - - // BigInteger(int signum, byte[] magnitude) - // double doubleValue() - // float floatValue() - // int hashCode() - // long longValue() - // static BigInteger valueOf(long val) - - // Random number generator - requires a PRNG backend, e.g. prng4.js - - // For best results, put code like - // - // in your main HTML document. - - var rng_state; - var rng_pool; - var rng_pptr; - - // Mix in a 32-bit integer into the pool - function rng_seed_int(x) { - rng_pool[rng_pptr++] ^= x & 255; - rng_pool[rng_pptr++] ^= (x >> 8) & 255; - rng_pool[rng_pptr++] ^= (x >> 16) & 255; - rng_pool[rng_pptr++] ^= (x >> 24) & 255; - if(rng_pptr >= rng_psize) rng_pptr -= rng_psize; - } - - // Mix in the current time (w/milliseconds) into the pool - function rng_seed_time() { - rng_seed_int(new Date().getTime()); - } - - // Initialize the pool with junk if needed. - if(rng_pool == null) { - rng_pool = new Array(); - rng_pptr = 0; - var t; - if(typeof window !== "undefined" && window.crypto) { - if (window.crypto.getRandomValues) { - // Use webcrypto if available - var ua = new Uint8Array(32); - window.crypto.getRandomValues(ua); - for(t = 0; t < 32; ++t) - rng_pool[rng_pptr++] = ua[t]; - } - else if(navigator.appName == "Netscape" && navigator.appVersion < "5") { - // Extract entropy (256 bits) from NS4 RNG if available - var z = window.crypto.random(32); - for(t = 0; t < z.length; ++t) - rng_pool[rng_pptr++] = z.charCodeAt(t) & 255; - } - } - while(rng_pptr < rng_psize) { // extract some randomness from Math.random() - t = Math.floor(65536 * Math.random()); - rng_pool[rng_pptr++] = t >>> 8; - rng_pool[rng_pptr++] = t & 255; - } - rng_pptr = 0; - rng_seed_time(); - //rng_seed_int(window.screenX); - //rng_seed_int(window.screenY); - } - - function rng_get_byte() { - if(rng_state == null) { - rng_seed_time(); - rng_state = prng_newstate(); - rng_state.init(rng_pool); - for(rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr) - rng_pool[rng_pptr] = 0; - rng_pptr = 0; - //rng_pool = null; - } - // TODO: allow reseeding after first request - return rng_state.next(); - } - - function rng_get_bytes(ba) { - var i; - for(i = 0; i < ba.length; ++i) ba[i] = rng_get_byte(); - } - - function SecureRandom() {} - - SecureRandom.prototype.nextBytes = rng_get_bytes; - - // prng4.js - uses Arcfour as a PRNG - - function Arcfour() { - this.i = 0; - this.j = 0; - this.S = new Array(); - } - - // Initialize arcfour context from key, an array of ints, each from [0..255] - function ARC4init(key) { - var i, j, t; - for(i = 0; i < 256; ++i) - this.S[i] = i; - j = 0; - for(i = 0; i < 256; ++i) { - j = (j + this.S[i] + key[i % key.length]) & 255; - t = this.S[i]; - this.S[i] = this.S[j]; - this.S[j] = t; - } - this.i = 0; - this.j = 0; - } - - function ARC4next() { - var t; - this.i = (this.i + 1) & 255; - this.j = (this.j + this.S[this.i]) & 255; - t = this.S[this.i]; - this.S[this.i] = this.S[this.j]; - this.S[this.j] = t; - return this.S[(t + this.S[this.i]) & 255]; - } - - Arcfour.prototype.init = ARC4init; - Arcfour.prototype.next = ARC4next; - - // Plug in your RNG constructor here - function prng_newstate() { - return new Arcfour(); - } - - // Pool size must be a multiple of 4 and greater than 32. - // An array of bytes the size of the pool will be passed to init() - var rng_psize = 256; - - BigInteger.SecureRandom = SecureRandom; - BigInteger.BigInteger = BigInteger; - if (typeof exports !== 'undefined') { - exports = module.exports = BigInteger; - } else { - this.BigInteger = BigInteger; - this.SecureRandom = SecureRandom; - } - -}).call(this); diff --git a/node_modules/jsbn/package.json b/node_modules/jsbn/package.json deleted file mode 100644 index 19b0c69..0000000 --- a/node_modules/jsbn/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "jsbn@~0.1.0", - "scope": null, - "escapedName": "jsbn", - "name": "jsbn", - "rawSpec": "~0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/sshpk" - ] - ], - "_from": "jsbn@>=0.1.0 <0.2.0", - "_id": "jsbn@0.1.1", - "_inCache": true, - "_location": "/jsbn", - "_nodeVersion": "6.3.1", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/jsbn-0.1.1.tgz_1486886593983_0.3002306066919118" - }, - "_npmUser": { - "name": "andyperlitch", - "email": "andyperlitch@gmail.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "jsbn@~0.1.0", - "scope": null, - "escapedName": "jsbn", - "name": "jsbn", - "rawSpec": "~0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/ecc-jsbn", - "/jodid25519", - "/sshpk" - ], - "_resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "_shasum": "a5e654c2e5a2deb5f201d96cefbca80c0ef2f513", - "_shrinkwrap": null, - "_spec": "jsbn@~0.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/sshpk", - "author": { - "name": "Tom Wu" - }, - "bugs": { - "url": "https://github.com/andyperlitch/jsbn/issues" - }, - "dependencies": {}, - "description": "The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "a5e654c2e5a2deb5f201d96cefbca80c0ef2f513", - "tarball": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz" - }, - "gitHead": "ed7e7ab56bd2b8a4447bc0c1ef08548b6dad89a2", - "homepage": "https://github.com/andyperlitch/jsbn#readme", - "keywords": [ - "biginteger", - "bignumber", - "big", - "integer" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "andyperlitch", - "email": "andyperlitch@gmail.com" - } - ], - "name": "jsbn", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/andyperlitch/jsbn.git" - }, - "scripts": { - "test": "mocha test.js" - }, - "version": "0.1.1" -} diff --git a/node_modules/json-schema/README.md b/node_modules/json-schema/README.md deleted file mode 100644 index ccc591b..0000000 --- a/node_modules/json-schema/README.md +++ /dev/null @@ -1,5 +0,0 @@ -JSON Schema is a repository for the JSON Schema specification, reference schemas and a CommonJS implementation of JSON Schema (not the only JavaScript implementation of JSON Schema, JSV is another excellent JavaScript validator). - -Code is licensed under the AFL or BSD license as part of the Persevere -project which is administered under the Dojo foundation, -and all contributions require a Dojo CLA. \ No newline at end of file diff --git a/node_modules/json-schema/draft-00/hyper-schema b/node_modules/json-schema/draft-00/hyper-schema deleted file mode 100644 index 12fe26b..0000000 --- a/node_modules/json-schema/draft-00/hyper-schema +++ /dev/null @@ -1,68 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-00/hyper-schema#", - "id" : "http://json-schema.org/draft-00/hyper-schema#", - - "properties" : { - "links" : { - "type" : "array", - "items" : {"$ref" : "http://json-schema.org/draft-00/links#"}, - "optional" : true - }, - - "fragmentResolution" : { - "type" : "string", - "optional" : true, - "default" : "dot-delimited" - }, - - "root" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "readonly" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "pathStart" : { - "type" : "string", - "optional" : true, - "format" : "uri" - }, - - "mediaType" : { - "type" : "string", - "optional" : true, - "format" : "media-type" - }, - - "alternate" : { - "type" : "array", - "items" : {"$ref" : "#"}, - "optional" : true - } - }, - - "links" : [ - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - }, - - { - "href" : "{id}", - "rel" : "self" - } - ], - - "fragmentResolution" : "dot-delimited", - "extends" : {"$ref" : "http://json-schema.org/draft-00/schema#"} -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-00/json-ref b/node_modules/json-schema/draft-00/json-ref deleted file mode 100644 index 0c825bc..0000000 --- a/node_modules/json-schema/draft-00/json-ref +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-00/hyper-schema#", - "id" : "http://json-schema.org/draft-00/json-ref#", - - "items" : {"$ref" : "#"}, - "additionalProperties" : {"$ref" : "#"}, - - "links" : [ - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - }, - - { - "href" : "{id}", - "rel" : "self" - } - ], - - "fragmentResolution" : "dot-delimited" -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-00/links b/node_modules/json-schema/draft-00/links deleted file mode 100644 index c9b5517..0000000 --- a/node_modules/json-schema/draft-00/links +++ /dev/null @@ -1,33 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-00/hyper-schema#", - "id" : "http://json-schema.org/draft-00/links#", - "type" : "object", - - "properties" : { - "href" : { - "type" : "string" - }, - - "rel" : { - "type" : "string" - }, - - "method" : { - "type" : "string", - "default" : "GET", - "optional" : true - }, - - "enctype" : { - "type" : "string", - "requires" : "method", - "optional" : true - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "http://json-schema.org/draft-00/hyper-schema#"}, - "optional" : true - } - } -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-00/schema b/node_modules/json-schema/draft-00/schema deleted file mode 100644 index a3a2144..0000000 --- a/node_modules/json-schema/draft-00/schema +++ /dev/null @@ -1,155 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-00/hyper-schema#", - "id" : "http://json-schema.org/draft-00/schema#", - "type" : "object", - - "properties" : { - "type" : { - "type" : ["string", "array"], - "items" : { - "type" : ["string", {"$ref" : "#"}] - }, - "optional" : true, - "default" : "any" - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - }, - - "items" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - }, - - "optional" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "additionalProperties" : { - "type" : [{"$ref" : "#"}, "boolean"], - "optional" : true, - "default" : {} - }, - - "requires" : { - "type" : ["string", {"$ref" : "#"}], - "optional" : true - }, - - "minimum" : { - "type" : "number", - "optional" : true - }, - - "maximum" : { - "type" : "number", - "optional" : true - }, - - "minimumCanEqual" : { - "type" : "boolean", - "optional" : true, - "requires" : "minimum", - "default" : true - }, - - "maximumCanEqual" : { - "type" : "boolean", - "optional" : true, - "requires" : "maximum", - "default" : true - }, - - "minItems" : { - "type" : "integer", - "optional" : true, - "minimum" : 0, - "default" : 0 - }, - - "maxItems" : { - "type" : "integer", - "optional" : true, - "minimum" : 0 - }, - - "pattern" : { - "type" : "string", - "optional" : true, - "format" : "regex" - }, - - "minLength" : { - "type" : "integer", - "optional" : true, - "minimum" : 0, - "default" : 0 - }, - - "maxLength" : { - "type" : "integer", - "optional" : true - }, - - "enum" : { - "type" : "array", - "optional" : true, - "minItems" : 1 - }, - - "title" : { - "type" : "string", - "optional" : true - }, - - "description" : { - "type" : "string", - "optional" : true - }, - - "format" : { - "type" : "string", - "optional" : true - }, - - "contentEncoding" : { - "type" : "string", - "optional" : true - }, - - "default" : { - "type" : "any", - "optional" : true - }, - - "maxDecimal" : { - "type" : "integer", - "optional" : true, - "minimum" : 0 - }, - - "disallow" : { - "type" : ["string", "array"], - "items" : {"type" : "string"}, - "optional" : true - }, - - "extends" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - } - }, - - "optional" : true, - "default" : {} -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-01/hyper-schema b/node_modules/json-schema/draft-01/hyper-schema deleted file mode 100644 index 66e835b..0000000 --- a/node_modules/json-schema/draft-01/hyper-schema +++ /dev/null @@ -1,68 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-01/hyper-schema#", - "id" : "http://json-schema.org/draft-01/hyper-schema#", - - "properties" : { - "links" : { - "type" : "array", - "items" : {"$ref" : "http://json-schema.org/draft-01/links#"}, - "optional" : true - }, - - "fragmentResolution" : { - "type" : "string", - "optional" : true, - "default" : "dot-delimited" - }, - - "root" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "readonly" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "pathStart" : { - "type" : "string", - "optional" : true, - "format" : "uri" - }, - - "mediaType" : { - "type" : "string", - "optional" : true, - "format" : "media-type" - }, - - "alternate" : { - "type" : "array", - "items" : {"$ref" : "#"}, - "optional" : true - } - }, - - "links" : [ - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - }, - - { - "href" : "{id}", - "rel" : "self" - } - ], - - "fragmentResolution" : "dot-delimited", - "extends" : {"$ref" : "http://json-schema.org/draft-01/schema#"} -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-01/json-ref b/node_modules/json-schema/draft-01/json-ref deleted file mode 100644 index f2ad55b..0000000 --- a/node_modules/json-schema/draft-01/json-ref +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-01/hyper-schema#", - "id" : "http://json-schema.org/draft-01/json-ref#", - - "items" : {"$ref" : "#"}, - "additionalProperties" : {"$ref" : "#"}, - - "links" : [ - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - }, - - { - "href" : "{id}", - "rel" : "self" - } - ], - - "fragmentResolution" : "dot-delimited" -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-01/links b/node_modules/json-schema/draft-01/links deleted file mode 100644 index cb183c4..0000000 --- a/node_modules/json-schema/draft-01/links +++ /dev/null @@ -1,33 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-01/hyper-schema#", - "id" : "http://json-schema.org/draft-01/links#", - "type" : "object", - - "properties" : { - "href" : { - "type" : "string" - }, - - "rel" : { - "type" : "string" - }, - - "method" : { - "type" : "string", - "default" : "GET", - "optional" : true - }, - - "enctype" : { - "type" : "string", - "requires" : "method", - "optional" : true - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "http://json-schema.org/draft-01/hyper-schema#"}, - "optional" : true - } - } -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-01/schema b/node_modules/json-schema/draft-01/schema deleted file mode 100644 index e6b6aea..0000000 --- a/node_modules/json-schema/draft-01/schema +++ /dev/null @@ -1,155 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-01/hyper-schema#", - "id" : "http://json-schema.org/draft-01/schema#", - "type" : "object", - - "properties" : { - "type" : { - "type" : ["string", "array"], - "items" : { - "type" : ["string", {"$ref" : "#"}] - }, - "optional" : true, - "default" : "any" - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - }, - - "items" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - }, - - "optional" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "additionalProperties" : { - "type" : [{"$ref" : "#"}, "boolean"], - "optional" : true, - "default" : {} - }, - - "requires" : { - "type" : ["string", {"$ref" : "#"}], - "optional" : true - }, - - "minimum" : { - "type" : "number", - "optional" : true - }, - - "maximum" : { - "type" : "number", - "optional" : true - }, - - "minimumCanEqual" : { - "type" : "boolean", - "optional" : true, - "requires" : "minimum", - "default" : true - }, - - "maximumCanEqual" : { - "type" : "boolean", - "optional" : true, - "requires" : "maximum", - "default" : true - }, - - "minItems" : { - "type" : "integer", - "optional" : true, - "minimum" : 0, - "default" : 0 - }, - - "maxItems" : { - "type" : "integer", - "optional" : true, - "minimum" : 0 - }, - - "pattern" : { - "type" : "string", - "optional" : true, - "format" : "regex" - }, - - "minLength" : { - "type" : "integer", - "optional" : true, - "minimum" : 0, - "default" : 0 - }, - - "maxLength" : { - "type" : "integer", - "optional" : true - }, - - "enum" : { - "type" : "array", - "optional" : true, - "minItems" : 1 - }, - - "title" : { - "type" : "string", - "optional" : true - }, - - "description" : { - "type" : "string", - "optional" : true - }, - - "format" : { - "type" : "string", - "optional" : true - }, - - "contentEncoding" : { - "type" : "string", - "optional" : true - }, - - "default" : { - "type" : "any", - "optional" : true - }, - - "maxDecimal" : { - "type" : "integer", - "optional" : true, - "minimum" : 0 - }, - - "disallow" : { - "type" : ["string", "array"], - "items" : {"type" : "string"}, - "optional" : true - }, - - "extends" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - } - }, - - "optional" : true, - "default" : {} -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-02/hyper-schema b/node_modules/json-schema/draft-02/hyper-schema deleted file mode 100644 index 2d2bc68..0000000 --- a/node_modules/json-schema/draft-02/hyper-schema +++ /dev/null @@ -1,68 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-02/hyper-schema#", - "id" : "http://json-schema.org/draft-02/hyper-schema#", - - "properties" : { - "links" : { - "type" : "array", - "items" : {"$ref" : "http://json-schema.org/draft-02/links#"}, - "optional" : true - }, - - "fragmentResolution" : { - "type" : "string", - "optional" : true, - "default" : "slash-delimited" - }, - - "root" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "readonly" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "pathStart" : { - "type" : "string", - "optional" : true, - "format" : "uri" - }, - - "mediaType" : { - "type" : "string", - "optional" : true, - "format" : "media-type" - }, - - "alternate" : { - "type" : "array", - "items" : {"$ref" : "#"}, - "optional" : true - } - }, - - "links" : [ - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - }, - - { - "href" : "{id}", - "rel" : "self" - } - ], - - "fragmentResolution" : "slash-delimited", - "extends" : {"$ref" : "http://json-schema.org/draft-02/schema#"} -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-02/json-ref b/node_modules/json-schema/draft-02/json-ref deleted file mode 100644 index 2b23fcd..0000000 --- a/node_modules/json-schema/draft-02/json-ref +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-02/hyper-schema#", - "id" : "http://json-schema.org/draft-02/json-ref#", - - "items" : {"$ref" : "#"}, - "additionalProperties" : {"$ref" : "#"}, - - "links" : [ - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - }, - - { - "href" : "{id}", - "rel" : "self" - } - ], - - "fragmentResolution" : "dot-delimited" -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-02/links b/node_modules/json-schema/draft-02/links deleted file mode 100644 index ab971b7..0000000 --- a/node_modules/json-schema/draft-02/links +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-02/hyper-schema#", - "id" : "http://json-schema.org/draft-02/links#", - "type" : "object", - - "properties" : { - "href" : { - "type" : "string" - }, - - "rel" : { - "type" : "string" - }, - - "targetSchema" : {"$ref" : "http://json-schema.org/draft-02/hyper-schema#"}, - - "method" : { - "type" : "string", - "default" : "GET", - "optional" : true - }, - - "enctype" : { - "type" : "string", - "requires" : "method", - "optional" : true - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "http://json-schema.org/draft-02/hyper-schema#"}, - "optional" : true - } - } -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-02/schema b/node_modules/json-schema/draft-02/schema deleted file mode 100644 index cc2b669..0000000 --- a/node_modules/json-schema/draft-02/schema +++ /dev/null @@ -1,166 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-02/hyper-schema#", - "id" : "http://json-schema.org/draft-02/schema#", - "type" : "object", - - "properties" : { - "type" : { - "type" : ["string", "array"], - "items" : { - "type" : ["string", {"$ref" : "#"}] - }, - "optional" : true, - "uniqueItems" : true, - "default" : "any" - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - }, - - "items" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - }, - - "optional" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "additionalProperties" : { - "type" : [{"$ref" : "#"}, "boolean"], - "optional" : true, - "default" : {} - }, - - "requires" : { - "type" : ["string", {"$ref" : "#"}], - "optional" : true - }, - - "minimum" : { - "type" : "number", - "optional" : true - }, - - "maximum" : { - "type" : "number", - "optional" : true - }, - - "minimumCanEqual" : { - "type" : "boolean", - "optional" : true, - "requires" : "minimum", - "default" : true - }, - - "maximumCanEqual" : { - "type" : "boolean", - "optional" : true, - "requires" : "maximum", - "default" : true - }, - - "minItems" : { - "type" : "integer", - "optional" : true, - "minimum" : 0, - "default" : 0 - }, - - "maxItems" : { - "type" : "integer", - "optional" : true, - "minimum" : 0 - }, - - "uniqueItems" : { - "type" : "boolean", - "optional" : true, - "default" : false - }, - - "pattern" : { - "type" : "string", - "optional" : true, - "format" : "regex" - }, - - "minLength" : { - "type" : "integer", - "optional" : true, - "minimum" : 0, - "default" : 0 - }, - - "maxLength" : { - "type" : "integer", - "optional" : true - }, - - "enum" : { - "type" : "array", - "optional" : true, - "minItems" : 1, - "uniqueItems" : true - }, - - "title" : { - "type" : "string", - "optional" : true - }, - - "description" : { - "type" : "string", - "optional" : true - }, - - "format" : { - "type" : "string", - "optional" : true - }, - - "contentEncoding" : { - "type" : "string", - "optional" : true - }, - - "default" : { - "type" : "any", - "optional" : true - }, - - "divisibleBy" : { - "type" : "number", - "minimum" : 0, - "minimumCanEqual" : false, - "optional" : true, - "default" : 1 - }, - - "disallow" : { - "type" : ["string", "array"], - "items" : {"type" : "string"}, - "optional" : true, - "uniqueItems" : true - }, - - "extends" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "optional" : true, - "default" : {} - } - }, - - "optional" : true, - "default" : {} -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-03/examples/address b/node_modules/json-schema/draft-03/examples/address deleted file mode 100644 index 401f20f..0000000 --- a/node_modules/json-schema/draft-03/examples/address +++ /dev/null @@ -1,20 +0,0 @@ -{ - "description" : "An Address following the convention of http://microformats.org/wiki/hcard", - "type" : "object", - "properties" : { - "post-office-box" : { "type" : "string" }, - "extended-address" : { "type" : "string" }, - "street-address" : { "type":"string" }, - "locality" : { "type" : "string", "required" : true }, - "region" : { "type" : "string", "required" : true }, - "postal-code" : { "type" : "string" }, - "country-name" : { "type" : "string", "required" : true } - }, - "dependencies" : { - "post-office-box" : "street-address", - "extended-address" : "street-address", - "street-address" : "region", - "locality" : "region", - "region" : "country-name" - } -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-03/examples/calendar b/node_modules/json-schema/draft-03/examples/calendar deleted file mode 100644 index 0ec47c2..0000000 --- a/node_modules/json-schema/draft-03/examples/calendar +++ /dev/null @@ -1,53 +0,0 @@ -{ - "description" : "A representation of an event", - "type" : "object", - "properties" : { - "dtstart" : { - "format" : "date-time", - "type" : "string", - "description" : "Event starting time", - "required":true - }, - "summary" : { - "type":"string", - "required":true - }, - "location" : { - "type" : "string" - }, - "url" : { - "type" : "string", - "format" : "url" - }, - "dtend" : { - "format" : "date-time", - "type" : "string", - "description" : "Event ending time" - }, - "duration" : { - "format" : "date", - "type" : "string", - "description" : "Event duration" - }, - "rdate" : { - "format" : "date-time", - "type" : "string", - "description" : "Recurrence date" - }, - "rrule" : { - "type" : "string", - "description" : "Recurrence rule" - }, - "category" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "geo" : { "$ref" : "http://json-schema.org/draft-03/geo" } - } -} - - - - diff --git a/node_modules/json-schema/draft-03/examples/card b/node_modules/json-schema/draft-03/examples/card deleted file mode 100644 index a5667ff..0000000 --- a/node_modules/json-schema/draft-03/examples/card +++ /dev/null @@ -1,105 +0,0 @@ -{ - "description":"A representation of a person, company, organization, or place", - "type":"object", - "properties":{ - "fn":{ - "description":"Formatted Name", - "type":"string" - }, - "familyName":{ - "type":"string", - "required":true - }, - "givenName":{ - "type":"string", - "required":true - }, - "additionalName":{ - "type":"array", - "items":{ - "type":"string" - } - }, - "honorificPrefix":{ - "type":"array", - "items":{ - "type":"string" - } - }, - "honorificSuffix":{ - "type":"array", - "items":{ - "type":"string" - } - }, - "nickname":{ - "type":"string" - }, - "url":{ - "type":"string", - "format":"url" - }, - "email":{ - "type":"object", - "properties":{ - "type":{ - "type":"string" - }, - "value":{ - "type":"string", - "format":"email" - } - } - }, - "tel":{ - "type":"object", - "properties":{ - "type":{ - "type":"string" - }, - "value":{ - "type":"string", - "format":"phone" - } - } - }, - "adr":{"$ref" : "http://json-schema.org/address"}, - "geo":{"$ref" : "http://json-schema.org/geo"}, - "tz":{ - "type":"string" - }, - "photo":{ - "format":"image", - "type":"string" - }, - "logo":{ - "format":"image", - "type":"string" - }, - "sound":{ - "format":"attachment", - "type":"string" - }, - "bday":{ - "type":"string", - "format":"date" - }, - "title":{ - "type":"string" - }, - "role":{ - "type":"string" - }, - "org":{ - "type":"object", - "properties":{ - "organizationName":{ - "type":"string" - }, - "organizationUnit":{ - "type":"string" - } - } - } - } -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-03/examples/geo b/node_modules/json-schema/draft-03/examples/geo deleted file mode 100644 index 4357a90..0000000 --- a/node_modules/json-schema/draft-03/examples/geo +++ /dev/null @@ -1,8 +0,0 @@ -{ - "description" : "A geographical coordinate", - "type" : "object", - "properties" : { - "latitude" : { "type" : "number" }, - "longitude" : { "type" : "number" } - } -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-03/examples/interfaces b/node_modules/json-schema/draft-03/examples/interfaces deleted file mode 100644 index b8532f2..0000000 --- a/node_modules/json-schema/draft-03/examples/interfaces +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends":"http://json-schema.org/hyper-schema", - "description":"A schema for schema interface definitions that describe programmatic class structures using JSON schema syntax", - "properties":{ - "methods":{ - "type":"object", - "description":"This defines the set of methods available to the class instances", - "additionalProperties":{ - "type":"object", - "description":"The definition of the method", - "properties":{ - "parameters":{ - "type":"array", - "description":"The set of parameters that should be passed to the method when it is called", - "items":{"$ref":"#"}, - "required": true - }, - "returns":{"$ref":"#"} - } - } - } - } -} diff --git a/node_modules/json-schema/draft-03/hyper-schema b/node_modules/json-schema/draft-03/hyper-schema deleted file mode 100644 index 38ca2e1..0000000 --- a/node_modules/json-schema/draft-03/hyper-schema +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-03/hyper-schema#", - "extends" : {"$ref" : "http://json-schema.org/draft-03/schema#"}, - "id" : "http://json-schema.org/draft-03/hyper-schema#", - - "properties" : { - "links" : { - "type" : "array", - "items" : {"$ref" : "http://json-schema.org/draft-03/links#"} - }, - - "fragmentResolution" : { - "type" : "string", - "default" : "slash-delimited" - }, - - "root" : { - "type" : "boolean", - "default" : false - }, - - "readonly" : { - "type" : "boolean", - "default" : false - }, - - "contentEncoding" : { - "type" : "string" - }, - - "pathStart" : { - "type" : "string", - "format" : "uri" - }, - - "mediaType" : { - "type" : "string", - "format" : "media-type" - } - }, - - "links" : [ - { - "href" : "{id}", - "rel" : "self" - }, - - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - } - ], - - "fragmentResolution" : "slash-delimited" -} diff --git a/node_modules/json-schema/draft-03/json-ref b/node_modules/json-schema/draft-03/json-ref deleted file mode 100644 index 66e08f2..0000000 --- a/node_modules/json-schema/draft-03/json-ref +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-03/hyper-schema#", - "id" : "http://json-schema.org/draft-03/json-ref#", - - "additionalItems" : {"$ref" : "#"}, - "additionalProperties" : {"$ref" : "#"}, - - "links" : [ - { - "href" : "{id}", - "rel" : "self" - }, - - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - } - ], - - "fragmentResolution" : "dot-delimited" -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-03/links b/node_modules/json-schema/draft-03/links deleted file mode 100644 index 9fa63f9..0000000 --- a/node_modules/json-schema/draft-03/links +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-03/hyper-schema#", - "id" : "http://json-schema.org/draft-03/links#", - "type" : "object", - - "properties" : { - "href" : { - "type" : "string", - "required" : true, - "format" : "link-description-object-template" - }, - - "rel" : { - "type" : "string", - "required" : true - }, - - "targetSchema" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"}, - - "method" : { - "type" : "string", - "default" : "GET" - }, - - "enctype" : { - "type" : "string", - "requires" : "method" - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"} - } - } -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-03/schema b/node_modules/json-schema/draft-03/schema deleted file mode 100644 index 29d9469..0000000 --- a/node_modules/json-schema/draft-03/schema +++ /dev/null @@ -1,174 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-03/schema#", - "id" : "http://json-schema.org/draft-03/schema#", - "type" : "object", - - "properties" : { - "type" : { - "type" : ["string", "array"], - "items" : { - "type" : ["string", {"$ref" : "#"}] - }, - "uniqueItems" : true, - "default" : "any" - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "#"}, - "default" : {} - }, - - "patternProperties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "#"}, - "default" : {} - }, - - "additionalProperties" : { - "type" : [{"$ref" : "#"}, "boolean"], - "default" : {} - }, - - "items" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "default" : {} - }, - - "additionalItems" : { - "type" : [{"$ref" : "#"}, "boolean"], - "default" : {} - }, - - "required" : { - "type" : "boolean", - "default" : false - }, - - "dependencies" : { - "type" : "object", - "additionalProperties" : { - "type" : ["string", "array", {"$ref" : "#"}], - "items" : { - "type" : "string" - } - }, - "default" : {} - }, - - "minimum" : { - "type" : "number" - }, - - "maximum" : { - "type" : "number" - }, - - "exclusiveMinimum" : { - "type" : "boolean", - "default" : false - }, - - "exclusiveMaximum" : { - "type" : "boolean", - "default" : false - }, - - "minItems" : { - "type" : "integer", - "minimum" : 0, - "default" : 0 - }, - - "maxItems" : { - "type" : "integer", - "minimum" : 0 - }, - - "uniqueItems" : { - "type" : "boolean", - "default" : false - }, - - "pattern" : { - "type" : "string", - "format" : "regex" - }, - - "minLength" : { - "type" : "integer", - "minimum" : 0, - "default" : 0 - }, - - "maxLength" : { - "type" : "integer" - }, - - "enum" : { - "type" : "array", - "minItems" : 1, - "uniqueItems" : true - }, - - "default" : { - "type" : "any" - }, - - "title" : { - "type" : "string" - }, - - "description" : { - "type" : "string" - }, - - "format" : { - "type" : "string" - }, - - "divisibleBy" : { - "type" : "number", - "minimum" : 0, - "exclusiveMinimum" : true, - "default" : 1 - }, - - "disallow" : { - "type" : ["string", "array"], - "items" : { - "type" : ["string", {"$ref" : "#"}] - }, - "uniqueItems" : true - }, - - "extends" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "default" : {} - }, - - "id" : { - "type" : "string", - "format" : "uri" - }, - - "$ref" : { - "type" : "string", - "format" : "uri" - }, - - "$schema" : { - "type" : "string", - "format" : "uri" - } - }, - - "dependencies" : { - "exclusiveMinimum" : "minimum", - "exclusiveMaximum" : "maximum" - }, - - "default" : {} -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-04/hyper-schema b/node_modules/json-schema/draft-04/hyper-schema deleted file mode 100644 index 63fb34d..0000000 --- a/node_modules/json-schema/draft-04/hyper-schema +++ /dev/null @@ -1,60 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/hyper-schema#", - "extends" : {"$ref" : "http://json-schema.org/draft-04/schema#"}, - "id" : "http://json-schema.org/draft-04/hyper-schema#", - - "properties" : { - "links" : { - "type" : "array", - "items" : {"$ref" : "http://json-schema.org/draft-04/links#"} - }, - - "fragmentResolution" : { - "type" : "string", - "default" : "json-pointer" - }, - - "root" : { - "type" : "boolean", - "default" : false - }, - - "readonly" : { - "type" : "boolean", - "default" : false - }, - - "contentEncoding" : { - "type" : "string" - }, - - "pathStart" : { - "type" : "string", - "format" : "uri" - }, - - "mediaType" : { - "type" : "string", - "format" : "media-type" - } - }, - - "links" : [ - { - "href" : "{id}", - "rel" : "self" - }, - - { - "href" : "{$ref}", - "rel" : "full" - }, - - { - "href" : "{$schema}", - "rel" : "describedby" - } - ], - - "fragmentResolution" : "json-pointer" -} diff --git a/node_modules/json-schema/draft-04/links b/node_modules/json-schema/draft-04/links deleted file mode 100644 index 6c06d29..0000000 --- a/node_modules/json-schema/draft-04/links +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/hyper-schema#", - "id" : "http://json-schema.org/draft-04/links#", - "type" : "object", - - "properties" : { - "rel" : { - "type" : "string" - }, - - "href" : { - "type" : "string" - }, - - "template" : { - "type" : "string" - }, - - "targetSchema" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"}, - - "method" : { - "type" : "string", - "default" : "GET" - }, - - "enctype" : { - "type" : "string" - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"} - } - }, - - "required" : ["rel", "href"], - - "dependencies" : { - "enctype" : "method" - } -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-04/schema b/node_modules/json-schema/draft-04/schema deleted file mode 100644 index 4231b16..0000000 --- a/node_modules/json-schema/draft-04/schema +++ /dev/null @@ -1,189 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/schema#", - "id" : "http://json-schema.org/draft-04/schema#", - "type" : "object", - - "properties" : { - "type" : { - "type" : [ - { - "id" : "#simple-type", - "type" : "string", - "enum" : ["object", "array", "string", "number", "boolean", "null", "any"] - }, - "array" - ], - "items" : { - "type" : [ - {"$ref" : "#simple-type"}, - {"$ref" : "#"} - ] - }, - "uniqueItems" : true, - "default" : "any" - }, - - "disallow" : { - "type" : ["string", "array"], - "items" : { - "type" : ["string", {"$ref" : "#"}] - }, - "uniqueItems" : true - }, - - "extends" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "default" : {} - }, - - "enum" : { - "type" : "array", - "minItems" : 1, - "uniqueItems" : true - }, - - "minimum" : { - "type" : "number" - }, - - "maximum" : { - "type" : "number" - }, - - "exclusiveMinimum" : { - "type" : "boolean", - "default" : false - }, - - "exclusiveMaximum" : { - "type" : "boolean", - "default" : false - }, - - "divisibleBy" : { - "type" : "number", - "minimum" : 0, - "exclusiveMinimum" : true, - "default" : 1 - }, - - "minLength" : { - "type" : "integer", - "minimum" : 0, - "default" : 0 - }, - - "maxLength" : { - "type" : "integer" - }, - - "pattern" : { - "type" : "string" - }, - - "items" : { - "type" : [{"$ref" : "#"}, "array"], - "items" : {"$ref" : "#"}, - "default" : {} - }, - - "additionalItems" : { - "type" : [{"$ref" : "#"}, "boolean"], - "default" : {} - }, - - "minItems" : { - "type" : "integer", - "minimum" : 0, - "default" : 0 - }, - - "maxItems" : { - "type" : "integer", - "minimum" : 0 - }, - - "uniqueItems" : { - "type" : "boolean", - "default" : false - }, - - "properties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "#"}, - "default" : {} - }, - - "patternProperties" : { - "type" : "object", - "additionalProperties" : {"$ref" : "#"}, - "default" : {} - }, - - "additionalProperties" : { - "type" : [{"$ref" : "#"}, "boolean"], - "default" : {} - }, - - "minProperties" : { - "type" : "integer", - "minimum" : 0, - "default" : 0 - }, - - "maxProperties" : { - "type" : "integer", - "minimum" : 0 - }, - - "required" : { - "type" : "array", - "items" : { - "type" : "string" - } - }, - - "dependencies" : { - "type" : "object", - "additionalProperties" : { - "type" : ["string", "array", {"$ref" : "#"}], - "items" : { - "type" : "string" - } - }, - "default" : {} - }, - - "id" : { - "type" : "string" - }, - - "$ref" : { - "type" : "string" - }, - - "$schema" : { - "type" : "string" - }, - - "title" : { - "type" : "string" - }, - - "description" : { - "type" : "string" - }, - - "default" : { - "type" : "any" - } - }, - - "dependencies" : { - "exclusiveMinimum" : "minimum", - "exclusiveMaximum" : "maximum" - }, - - "default" : {} -} \ No newline at end of file diff --git a/node_modules/json-schema/draft-zyp-json-schema-03.xml b/node_modules/json-schema/draft-zyp-json-schema-03.xml deleted file mode 100644 index cf60620..0000000 --- a/node_modules/json-schema/draft-zyp-json-schema-03.xml +++ /dev/null @@ -1,1120 +0,0 @@ - - - - - - - - - - - - - - - -]> - - - - - - - - - A JSON Media Type for Describing the Structure and Meaning of JSON Documents - - - SitePen (USA) -
    - - 530 Lytton Avenue - Palo Alto, CA 94301 - USA - - +1 650 968 8787 - kris@sitepen.com -
    -
    - - -
    - - - Calgary, AB - Canada - - gary.court@gmail.com -
    -
    - - - Internet Engineering Task Force - JSON - Schema - JavaScript - Object - Notation - Hyper Schema - Hypermedia - - - - JSON (JavaScript Object Notation) Schema defines the media type "application/schema+json", - a JSON based format for defining - the structure of JSON data. JSON Schema provides a contract for what JSON - data is required for a given application and how to interact with it. JSON - Schema is intended to define validation, documentation, hyperlink - navigation, and interaction control of JSON data. - - -
    - - -
    - - JSON (JavaScript Object Notation) Schema is a JSON media type for defining - the structure of JSON data. JSON Schema provides a contract for what JSON - data is required for a given application and how to interact with it. JSON - Schema is intended to define validation, documentation, hyperlink - navigation, and interaction control of JSON data. - -
    - -
    - - - - The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", - "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be - interpreted as described in RFC 2119. - -
    - - - -
    - - JSON Schema defines the media type "application/schema+json" for - describing the structure of other - JSON documents. JSON Schema is JSON-based and includes facilities - for describing the structure of JSON documents in terms of - allowable values, descriptions, and interpreting relations with other resources. - - - JSON Schema format is organized into several separate definitions. The first - definition is the core schema specification. This definition is primary - concerned with describing a JSON structure and specifying valid elements - in the structure. The second definition is the Hyper Schema specification - which is intended define elements in a structure that can be interpreted as - hyperlinks. - Hyper Schema builds on JSON Schema to describe the hyperlink structure of - other JSON documents and elements of interaction. This allows user agents to be able to successfully navigate - JSON documents based on their schemas. - - - Cumulatively JSON Schema acts as a meta-document that can be used to define the required type and constraints on - property values, as well as define the meaning of the property values - for the purpose of describing a resource and determining hyperlinks - within the representation. - -
    - An example JSON Schema that describes products might look like: - - - - - This schema defines the properties of the instance JSON documents, - the required properties (id, name, and price), as well as an optional - property (tags). This also defines the link relations of the instance - JSON documents. - -
    - -
    - - For this specification, schema will be used to denote a JSON Schema - definition, and an instance refers to a JSON value that the schema - will be describing and validating. - -
    - -
    - - The JSON Schema media type does not attempt to dictate the structure of JSON - representations that contain data, but rather provides a separate format - for flexibly communicating how a JSON representation should be - interpreted and validated, such that user agents can properly understand - acceptable structures and extrapolate hyperlink information - with the JSON document. It is acknowledged that JSON documents come - in a variety of structures, and JSON is unique in that the structure - of stored data structures often prescribes a non-ambiguous definite - JSON representation. Attempting to force a specific structure is generally - not viable, and therefore JSON Schema allows for a great flexibility - in the structure of the JSON data that it describes. - - - This specification is protocol agnostic. - The underlying protocol (such as HTTP) should sufficiently define the - semantics of the client-server interface, the retrieval of resource - representations linked to by JSON representations, and modification of - those resources. The goal of this - format is to sufficiently describe JSON structures such that one can - utilize existing information available in existing JSON - representations from a large variety of services that leverage a representational state transfer - architecture using existing protocols. - -
    -
    - -
    - - JSON Schema instances are correlated to their schema by the "describedby" - relation, where the schema is defined to be the target of the relation. - Instance representations may be of the "application/json" media type or - any other subtype. Consequently, dictating how an instance - representation should specify the relation to the schema is beyond the normative scope - of this document (since this document specifically defines the JSON - Schema media type, and no other), but it is recommended that instances - specify their schema so that user agents can interpret the instance - representation and messages may retain the self-descriptive - characteristic, avoiding the need for out-of-band information about - instance data. Two approaches are recommended for declaring the - relation to the schema that describes the meaning of a JSON instance's (or collection - of instances) structure. A MIME type parameter named - "profile" or a relation of "describedby" (which could be defined by a Link header) may be used: - -
    - - - -
    - - or if the content is being transferred by a protocol (such as HTTP) that - provides headers, a Link header can be used: - -
    - -; rel="describedby" -]]> - -
    - - Instances MAY specify multiple schemas, to indicate all the schemas that - are applicable to the data, and the data SHOULD be valid by all the schemas. - The instance data MAY have multiple schemas - that it is defined by (the instance data SHOULD be valid for those schemas). - Or if the document is a collection of instances, the collection MAY contain - instances from different schemas. When collections contain heterogeneous - instances, the "pathStart" attribute MAY be specified in the - schema to disambiguate which schema should be applied for each item in the - collection. However, ultimately, the mechanism for referencing a schema is up to the - media type of the instance documents (if they choose to specify that schemas - can be referenced). -
    - -
    - - JSON Schemas can themselves be described using JSON Schemas. - A self-describing JSON Schema for the core JSON Schema can - be found at http://json-schema.org/schema for the latest version or - http://json-schema.org/draft-03/schema for the draft-03 version. The hyper schema - self-description can be found at http://json-schema.org/hyper-schema - or http://json-schema.org/draft-03/hyper-schema. All schemas - used within a protocol with media type definitions - SHOULD include a MIME parameter that refers to the self-descriptive - hyper schema or another schema that extends this hyper schema: - -
    - - - -
    -
    -
    -
    - -
    - - A JSON Schema is a JSON Object that defines various attributes - (including usage and valid values) of a JSON value. JSON - Schema has recursive capabilities; there are a number of elements - in the structure that allow for nested JSON Schemas. - - -
    - An example JSON Schema definition could look like: - - - -
    - - - A JSON Schema object may have any of the following properties, called schema - attributes (all attributes are optional): - - -
    - - This attribute defines what the primitive type or the schema of the instance MUST be in order to validate. - This attribute can take one of two forms: - - - - A string indicating a primitive or simple type. The following are acceptable string values: - - - Value MUST be a string. - Value MUST be a number, floating point numbers are allowed. - Value MUST be an integer, no floating point numbers are allowed. This is a subset of the number type. - Value MUST be a boolean. - Value MUST be an object. - Value MUST be an array. - Value MUST be null. Note this is mainly for purpose of being able use union types to define nullability. If this type is not included in a union, null values are not allowed (the primitives listed above do not allow nulls on their own). - Value MAY be of any type including null. - - - If the property is not defined or is not in this list, then any type of value is acceptable. - Other type values MAY be used for custom purposes, but minimal validators of the specification - implementation can allow any instance value on unknown type values. - - - - An array of two or more simple type definitions. Each item in the array MUST be a simple type definition or a schema. - The instance value is valid if it is of the same type as one of the simple type definitions, or valid by one of the schemas, in the array. - - - - -
    - For example, a schema that defines if an instance can be a string or a number would be: - - -
    -
    - -
    - This attribute is an object with property definitions that define the valid values of instance object property values. When the instance value is an object, the property values of the instance object MUST conform to the property definitions in this object. In this object, each property definition's value MUST be a schema, and the property's name MUST be the name of the instance property that it defines. The instance property value MUST be valid according to the schema from the property definition. Properties are considered unordered, the order of the instance properties MAY be in any order. -
    - -
    - This attribute is an object that defines the schema for a set of property names of an object instance. The name of each property of this attribute's object is a regular expression pattern in the ECMA 262/Perl 5 format, while the value is a schema. If the pattern matches the name of a property on the instance object, the value of the instance's property MUST be valid against the pattern name's schema value. -
    - -
    - This attribute defines a schema for all properties that are not explicitly defined in an object type definition. If specified, the value MUST be a schema or a boolean. If false is provided, no additional properties are allowed beyond the properties defined in the schema. The default value is an empty schema which allows any value for additional properties. -
    - -
    - This attribute defines the allowed items in an instance array, and MUST be a schema or an array of schemas. The default value is an empty schema which allows any value for items in the instance array. - When this attribute value is a schema and the instance value is an array, then all the items in the array MUST be valid according to the schema. - When this attribute value is an array of schemas and the instance value is an array, each position in the instance array MUST conform to the schema in the corresponding position for this array. This called tuple typing. When tuple typing is used, additional items are allowed, disallowed, or constrained by the "additionalItems" attribute using the same rules as "additionalProperties" for objects. -
    - -
    - This provides a definition for additional items in an array instance when tuple definitions of the items is provided. This can be false to indicate additional items in the array are not allowed, or it can be a schema that defines the schema of the additional items. -
    - -
    - This attribute indicates if the instance must have a value, and not be undefined. This is false by default, making the instance optional. -
    - -
    - This attribute is an object that defines the requirements of a property on an instance object. If an object instance has a property with the same name as a property in this attribute's object, then the instance must be valid against the attribute's property value (hereafter referred to as the "dependency value"). - - The dependency value can take one of two forms: - - - - If the dependency value is a string, then the instance object MUST have a property with the same name as the dependency value. - If the dependency value is an array of strings, then the instance object MUST have a property with the same name as each string in the dependency value's array. - - - If the dependency value is a schema, then the instance object MUST be valid against the schema. - - - -
    - -
    - This attribute defines the minimum value of the instance property when the type of the instance value is a number. -
    - -
    - This attribute defines the maximum value of the instance property when the type of the instance value is a number. -
    - -
    - This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "minimum" attribute. This is false by default, meaning the instance value can be greater then or equal to the minimum value. -
    - -
    - This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "maximum" attribute. This is false by default, meaning the instance value can be less then or equal to the maximum value. -
    - -
    - This attribute defines the minimum number of values in an array when the array is the instance value. -
    - -
    - This attribute defines the maximum number of values in an array when the array is the instance value. -
    - -
    - This attribute indicates that all items in an array instance MUST be unique (contains no two identical values). - - Two instance are consider equal if they are both of the same type and: - - - are null; or - are booleans/numbers/strings and have the same value; or - are arrays, contains the same number of items, and each item in the array is equal to the corresponding item in the other array; or - are objects, contains the same property names, and each property in the object is equal to the corresponding property in the other object. - - -
    - -
    - When the instance value is a string, this provides a regular expression that a string instance MUST match in order to be valid. Regular expressions SHOULD follow the regular expression specification from ECMA 262/Perl 5 -
    - -
    - When the instance value is a string, this defines the minimum length of the string. -
    - -
    - When the instance value is a string, this defines the maximum length of the string. -
    - -
    - This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems". -
    - -
    - This attribute defines the default value of the instance when the instance is undefined. -
    - -
    - This attribute is a string that provides a short description of the instance property. -
    - -
    - This attribute is a string that provides a full description of the of purpose the instance property. -
    - -
    - This property defines the type of data, content type, or microformat to be expected in the instance property values. A format attribute MAY be one of the values listed below, and if so, SHOULD adhere to the semantics describing for the format. A format SHOULD only be used to give meaning to primitive types (string, integer, number, or boolean). Validators MAY (but are not required to) validate that the instance values conform to a format. - - - The following formats are predefined: - - - This SHOULD be a date in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time. This is the recommended form of date/timestamp. - This SHOULD be a date in the format of YYYY-MM-DD. It is recommended that you use the "date-time" format instead of "date" unless you need to transfer only the date part. - This SHOULD be a time in the format of hh:mm:ss. It is recommended that you use the "date-time" format instead of "time" unless you need to transfer only the time part. - This SHOULD be the difference, measured in milliseconds, between the specified time and midnight, 00:00 of January 1, 1970 UTC. The value SHOULD be a number (integer or float). - A regular expression, following the regular expression specification from ECMA 262/Perl 5. - This is a CSS color (like "#FF0000" or "red"), based on CSS 2.1. - This is a CSS style definition (like "color: red; background-color:#FFF"), based on CSS 2.1. - This SHOULD be a phone number (format MAY follow E.123). - This value SHOULD be a URI. - This SHOULD be an email address. - This SHOULD be an ip version 4 address. - This SHOULD be an ip version 6 address. - This SHOULD be a host-name. - - - - Additional custom formats MAY be created. These custom formats MAY be expressed as an URI, and this URI MAY reference a schema of that format. -
    - -
    - This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.) The value of this attribute SHOULD NOT be 0. -
    - -
    - This attribute takes the same values as the "type" attribute, however if the instance matches the type or if this value is an array and the instance matches any type or schema in the array, then this instance is not valid. -
    - -
    - The value of this property MUST be another schema which will provide a base schema which the current schema will inherit from. The inheritance rules are such that any instance that is valid according to the current schema MUST be valid according to the referenced schema. This MAY also be an array, in which case, the instance MUST be valid for all the schemas in the array. A schema that extends another schema MAY define additional attributes, constrain existing attributes, or add other constraints. - - Conceptually, the behavior of extends can be seen as validating an - instance against all constraints in the extending schema as well as - the extended schema(s). More optimized implementations that merge - schemas are possible, but are not required. Some examples of using "extends": - -
    - - - -
    - -
    - - - -
    -
    -
    - -
    - - This attribute defines the current URI of this schema (this attribute is - effectively a "self" link). This URI MAY be relative or absolute. If - the URI is relative it is resolved against the current URI of the parent - schema it is contained in. If this schema is not contained in any - parent schema, the current URI of the parent schema is held to be the - URI under which this schema was addressed. If id is missing, the current URI of a schema is - defined to be that of the parent schema. The current URI of the schema - is also used to construct relative references such as for $ref. - -
    - -
    - - This attribute defines a URI of a schema that contains the full representation of this schema. - When a validator encounters this attribute, it SHOULD replace the current schema with the schema referenced by the value's URI (if known and available) and re-validate the instance. - This URI MAY be relative or absolute, and relative URIs SHOULD be resolved against the URI of the current schema. - -
    - -
    - - This attribute defines a URI of a JSON Schema that is the schema of the current schema. - When this attribute is defined, a validator SHOULD use the schema referenced by the value's URI (if known and available) when resolving Hyper Schemalinks. - - - - A validator MAY use this attribute's value to determine which version of JSON Schema the current schema is written in, and provide the appropriate validation features and behavior. - Therefore, it is RECOMMENDED that all schema authors include this attribute in their schemas to prevent conflicts with future JSON Schema specification changes. - -
    -
    - -
    - - The following attributes are specified in addition to those - attributes that already provided by the core schema with the specific - purpose of informing user agents of relations between resources based - on JSON data. Just as with JSON - schema attributes, all the attributes in hyper schemas are optional. - Therefore, an empty object is a valid (non-informative) schema, and - essentially describes plain JSON (no constraints on the structures). - Addition of attributes provides additive information for user agents. - - -
    - - The value of the links property MUST be an array, where each item - in the array is a link description object which describes the link - relations of the instances. - - -
    - - A link description object is used to describe link relations. In - the context of a schema, it defines the link relations of the - instances of the schema, and can be parameterized by the instance - values. The link description format can be used on its own in - regular (non-schema documents), and use of this format can - be declared by referencing the normative link description - schema as the the schema for the data structure that uses the - links. The URI of the normative link description schema is: - http://json-schema.org/links (latest version) or - http://json-schema.org/draft-03/links (draft-03 version). - - -
    - - The value of the "href" link description property - indicates the target URI of the related resource. The value - of the instance property SHOULD be resolved as a URI-Reference per RFC 3986 - and MAY be a relative URI. The base URI to be used for relative resolution - SHOULD be the URI used to retrieve the instance object (not the schema) - when used within a schema. Also, when links are used within a schema, the URI - SHOULD be parametrized by the property values of the instance - object, if property values exist for the corresponding variables - in the template (otherwise they MAY be provided from alternate sources, like user input). - - - - Instance property values SHOULD be substituted into the URIs where - matching braces ('{', '}') are found surrounding zero or more characters, - creating an expanded URI. Instance property value substitutions are resolved - by using the text between the braces to denote the property name - from the instance to get the value to substitute. - -
    - For example, if an href value is defined: - - - - Then it would be resolved by replace the value of the "id" property value from the instance object. -
    - -
    - If the value of the "id" property was "45", the expanded URI would be: - - - -
    - - If matching braces are found with the string "@" (no quotes) between the braces, then the - actual instance value SHOULD be used to replace the braces, rather than a property value. - This should only be used in situations where the instance is a scalar (string, - boolean, or number), and not for objects or arrays. -
    -
    - -
    - - The value of the "rel" property indicates the name of the - relation to the target resource. The relation to the target SHOULD be interpreted as specifically from the instance object that the schema (or sub-schema) applies to, not just the top level resource that contains the object within its hierarchy. If a resource JSON representation contains a sub object with a property interpreted as a link, that sub-object holds the relation with the target. A relation to target from the top level resource MUST be indicated with the schema describing the top level JSON representation. - - - - Relationship definitions SHOULD NOT be media type dependent, and users are encouraged to utilize existing accepted relation definitions, including those in existing relation registries (see RFC 4287). However, we define these relations here for clarity of normative interpretation within the context of JSON hyper schema defined relations: - - - - If the relation value is "self", when this property is encountered in - the instance object, the object represents a resource and the instance object is - treated as a full representation of the target resource identified by - the specified URI. - - - - This indicates that the target of the link is the full representation for the instance object. The object that contains this link possibly may not be the full representation. - - - - This indicates the target of the link is the schema for the instance object. This MAY be used to specifically denote the schemas of objects within a JSON object hierarchy, facilitating polymorphic type data structures. - - - - This relation indicates that the target of the link - SHOULD be treated as the root or the body of the representation for the - purposes of user agent interaction or fragment resolution. All other - properties of the instance objects can be regarded as meta-data - descriptions for the data. - - - - - - The following relations are applicable for schemas (the schema as the "from" resource in the relation): - - - This indicates the target resource that represents collection of instances of a schema. - This indicates a target to use for creating new instances of a schema. This link definition SHOULD be a submission link with a non-safe method (like POST). - - - - -
    - For example, if a schema is defined: - - - -
    - -
    - And if a collection of instance resource's JSON representation was retrieved: - - - -
    - - This would indicate that for the first item in the collection, its own - (self) URI would resolve to "/Resource/thing" and the first item's "up" - relation SHOULD be resolved to the resource at "/Resource/parent". - The "children" collection would be located at "/Resource/?upId=thing". -
    -
    - -
    - This property value is a schema that defines the expected structure of the JSON representation of the target of the link. -
    - -
    - - The following properties also apply to link definition objects, and - provide functionality analogous to HTML forms, in providing a - means for submitting extra (often user supplied) information to send to a server. - - -
    - - This attribute defines which method can be used to access the target resource. - In an HTTP environment, this would be "GET" or "POST" (other HTTP methods - such as "PUT" and "DELETE" have semantics that are clearly implied by - accessed resources, and do not need to be defined here). - This defaults to "GET". - -
    - -
    - - If present, this property indicates a query media type format that the server - supports for querying or posting to the collection of instances at the target - resource. The query can be - suffixed to the target URI to query the collection with - property-based constraints on the resources that SHOULD be returned from - the server or used to post data to the resource (depending on the method). - -
    - For example, with the following schema: - - - - This indicates that the client can query the server for instances that have a specific name. -
    - -
    - For example: - - - -
    - - If no enctype or method is specified, only the single URI specified by - the href property is defined. If the method is POST, "application/json" is - the default media type. -
    -
    - -
    - - This attribute contains a schema which defines the acceptable structure of the submitted - request (for a GET request, this schema would define the properties for the query string - and for a POST request, this would define the body). - -
    -
    -
    -
    - -
    - - This property indicates the fragment resolution protocol to use for - resolving fragment identifiers in URIs within the instance - representations. This applies to the instance object URIs and all - children of the instance object's URIs. The default fragment resolution - protocol is "slash-delimited", which is defined below. Other fragment - resolution protocols MAY be used, but are not defined in this document. - - - - The fragment identifier is based on RFC 2396, Sec 5, and defines the - mechanism for resolving references to entities within a document. - - -
    - - With the slash-delimited fragment resolution protocol, the fragment - identifier is interpreted as a series of property reference tokens that start with and - are delimited by the "/" character (\x2F). Each property reference token - is a series of unreserved or escaped URI characters. Each property - reference token SHOULD be interpreted, starting from the beginning of - the fragment identifier, as a path reference in the target JSON - structure. The final target value of the fragment can be determined by - starting with the root of the JSON structure from the representation of - the resource identified by the pre-fragment URI. If the target is a JSON - object, then the new target is the value of the property with the name - identified by the next property reference token in the fragment. If the - target is a JSON array, then the target is determined by finding the - item in array the array with the index defined by the next property - reference token (which MUST be a number). The target is successively - updated for each property reference token, until the entire fragment has - been traversed. - - - - Property names SHOULD be URI-encoded. In particular, any "/" in a - property name MUST be encoded to avoid being interpreted as a property - delimiter. - - - -
    - For example, for the following JSON representation: - - - -
    - -
    - The following fragment identifiers would be resolved: - - - -
    -
    -
    - -
    - - The dot-delimited fragment resolution protocol is the same as - slash-delimited fragment resolution protocol except that the "." character - (\x2E) is used as the delimiter between property names (instead of "/") and - the path does not need to start with a ".". For example, #.foo and #foo are a valid fragment - identifiers for referencing the value of the foo propery. - -
    -
    - -
    - This attribute indicates that the instance property SHOULD NOT be changed. Attempts by a user agent to modify the value of this property are expected to be rejected by a server. -
    - -
    - If the instance property value is a string, this attribute defines that the string SHOULD be interpreted as binary data and decoded using the encoding named by this schema property. RFC 2045, Sec 6.1 lists the possible values for this property. -
    - -
    - - This attribute is a URI that defines what the instance's URI MUST start with in order to validate. - The value of the "pathStart" attribute MUST be resolved as per RFC 3986, Sec 5, - and is relative to the instance's URI. - - - - When multiple schemas have been referenced for an instance, the user agent - can determine if this schema is applicable for a particular instance by - determining if the URI of the instance begins with the the value of the "pathStart" - attribute. If the URI of the instance does not start with this URI, - or if another schema specifies a starting URI that is longer and also matches the - instance, this schema SHOULD NOT be applied to the instance. Any schema - that does not have a pathStart attribute SHOULD be considered applicable - to all the instances for which it is referenced. - -
    - -
    - This attribute defines the media type of the instance representations that this schema is defining. -
    -
    - -
    - - This specification is a sub-type of the JSON format, and - consequently the security considerations are generally the same as RFC 4627. - However, an additional issue is that when link relation of "self" - is used to denote a full representation of an object, the user agent - SHOULD NOT consider the representation to be the authoritative representation - of the resource denoted by the target URI if the target URI is not - equivalent to or a sub-path of the the URI used to request the resource - representation which contains the target URI with the "self" link. - -
    - For example, if a hyper schema was defined: - - - -
    - -
    - And a resource was requested from somesite.com: - - - -
    - -
    - With a response of: - - - -
    -
    -
    - -
    - The proposed MIME media type for JSON Schema is "application/schema+json". - Type name: application - Subtype name: schema+json - Required parameters: profile - - The value of the profile parameter SHOULD be a URI (relative or absolute) that - refers to the schema used to define the structure of this structure (the - meta-schema). Normally the value would be http://json-schema.org/draft-03/hyper-schema, - but it is allowable to use other schemas that extend the hyper schema's meta- - schema. - - Optional parameters: pretty - The value of the pretty parameter MAY be true or false to indicate if additional whitespace has been included to make the JSON representation easier to read. - -
    - - This registry is maintained by IANA per RFC 4287 and this specification adds - four values: "full", "create", "instances", "root". New - assignments are subject to IESG Approval, as outlined in RFC 5226. - Requests should be made by email to IANA, which will then forward the - request to the IESG, requesting approval. - -
    -
    -
    - - - - - &rfc2045; - &rfc2119; - &rfc2396; - &rfc3339; - &rfc3986; - &rfc4287; - - - &rfc2616; - &rfc4627; - &rfc5226; - &iddiscovery; - &uritemplate; - &linkheader; - &html401; - &css21; - - -
    - - - - - Added example and verbiage to "extends" attribute. - Defined slash-delimited to use a leading slash. - Made "root" a relation instead of an attribute. - Removed address values, and MIME media type from format to reduce confusion (mediaType already exists, so it can be used for MIME types). - Added more explanation of nullability. - Removed "alternate" attribute. - Upper cased many normative usages of must, may, and should. - Replaced the link submission "properties" attribute to "schema" attribute. - Replaced "optional" attribute with "required" attribute. - Replaced "maximumCanEqual" attribute with "exclusiveMaximum" attribute. - Replaced "minimumCanEqual" attribute with "exclusiveMinimum" attribute. - Replaced "requires" attribute with "dependencies" attribute. - Moved "contentEncoding" attribute to hyper schema. - Added "additionalItems" attribute. - Added "id" attribute. - Switched self-referencing variable substitution from "-this" to "@" to align with reserved characters in URI template. - Added "patternProperties" attribute. - Schema URIs are now namespace versioned. - Added "$ref" and "$schema" attributes. - - - - - - Replaced "maxDecimal" attribute with "divisibleBy" attribute. - Added slash-delimited fragment resolution protocol and made it the default. - Added language about using links outside of schemas by referencing its normative URI. - Added "uniqueItems" attribute. - Added "targetSchema" attribute to link description object. - - - - - - Fixed category and updates from template. - - - - - - Initial draft. - - - - -
    - -
    - - - Should we give a preference to MIME headers over Link headers (or only use one)? - Should "root" be a MIME parameter? - Should "format" be renamed to "mediaType" or "contentType" to reflect the usage MIME media types that are allowed? - How should dates be handled? - - -
    -
    -
    diff --git a/node_modules/json-schema/draft-zyp-json-schema-04.xml b/node_modules/json-schema/draft-zyp-json-schema-04.xml deleted file mode 100644 index 8ede6bf..0000000 --- a/node_modules/json-schema/draft-zyp-json-schema-04.xml +++ /dev/null @@ -1,1072 +0,0 @@ - - - - - - - - - - - - - - -]> - - - - - - - - - A JSON Media Type for Describing the Structure and Meaning of JSON Documents - - - SitePen (USA) -
    - - 530 Lytton Avenue - Palo Alto, CA 94301 - USA - - +1 650 968 8787 - kris@sitepen.com -
    -
    - - -
    - - - Calgary, AB - Canada - - gary.court@gmail.com -
    -
    - - - Internet Engineering Task Force - JSON - Schema - JavaScript - Object - Notation - Hyper Schema - Hypermedia - - - - JSON (JavaScript Object Notation) Schema defines the media type "application/schema+json", - a JSON based format for defining the structure of JSON data. JSON Schema provides a contract for what JSON - data is required for a given application and how to interact with it. JSON - Schema is intended to define validation, documentation, hyperlink - navigation, and interaction control of JSON data. - - -
    - - -
    - - JSON (JavaScript Object Notation) Schema is a JSON media type for defining - the structure of JSON data. JSON Schema provides a contract for what JSON - data is required for a given application and how to interact with it. JSON - Schema is intended to define validation, documentation, hyperlink - navigation, and interaction control of JSON data. - -
    - -
    - - - - The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", - "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be - interpreted as described in RFC 2119. - - - - The terms "JSON", "JSON text", "JSON value", "member", "element", "object", - "array", "number", "string", "boolean", "true", "false", and "null" in this - document are to be interpreted as defined in RFC 4627. - - - - This specification also uses the following defined terms: - - - A JSON Schema object. - Equivalent to "JSON value" as defined in RFC 4627. - Equivalent to "member" as defined in RFC 4627. - Equivalent to "element" as defined in RFC 4627. - A property of a JSON Schema object. - - -
    - -
    - - JSON Schema defines the media type "application/schema+json" for - describing the structure of JSON text. JSON Schemas are also written in JSON and includes facilities - for describing the structure of JSON in terms of - allowable values, descriptions, and interpreting relations with other resources. - - - This document is organized into several separate definitions. The first - definition is the core schema specification. This definition is primary - concerned with describing a JSON structure and specifying valid elements - in the structure. The second definition is the Hyper Schema specification - which is intended to define elements in a structure that can be interpreted as - hyperlinks. - Hyper Schema builds on JSON Schema to describe the hyperlink structure of - JSON values. This allows user agents to be able to successfully navigate - documents containing JSON based on their schemas. - - - Cumulatively JSON Schema acts as meta-JSON that can be used to define the - required type and constraints on JSON values, as well as define the meaning - of the JSON values for the purpose of describing a resource and determining - hyperlinks within the representation. - -
    - An example JSON Schema that describes products might look like: - - - - - This schema defines the properties of the instance, - the required properties (id, name, and price), as well as an optional - property (tags). This also defines the link relations of the instance. - -
    - -
    - - The JSON Schema media type does not attempt to dictate the structure of JSON - values that contain data, but rather provides a separate format - for flexibly communicating how a JSON value should be - interpreted and validated, such that user agents can properly understand - acceptable structures and extrapolate hyperlink information - from the JSON. It is acknowledged that JSON values come - in a variety of structures, and JSON is unique in that the structure - of stored data structures often prescribes a non-ambiguous definite - JSON representation. Attempting to force a specific structure is generally - not viable, and therefore JSON Schema allows for a great flexibility - in the structure of the JSON data that it describes. - - - This specification is protocol agnostic. - The underlying protocol (such as HTTP) should sufficiently define the - semantics of the client-server interface, the retrieval of resource - representations linked to by JSON representations, and modification of - those resources. The goal of this - format is to sufficiently describe JSON structures such that one can - utilize existing information available in existing JSON - representations from a large variety of services that leverage a representational state transfer - architecture using existing protocols. - -
    -
    - -
    - - JSON values are correlated to their schema by the "describedby" - relation, where the schema is the target of the relation. - JSON values MUST be of the "application/json" media type or - any other subtype. Consequently, dictating how a JSON value should - specify the relation to the schema is beyond the normative scope - of this document since this document specifically defines the JSON - Schema media type, and no other. It is RECOMMNENDED that JSON values - specify their schema so that user agents can interpret the instance - and retain the self-descriptive characteristics. This avoides the need for out-of-band information about - instance data. Two approaches are recommended for declaring the - relation to the schema that describes the meaning of a JSON instance's (or collection - of instances) structure. A MIME type parameter named - "profile" or a relation of "describedby" (which could be specified by a Link header) may be used: - -
    - - - -
    - - or if the content is being transferred by a protocol (such as HTTP) that - provides headers, a Link header can be used: - -
    - -; rel="describedby" -]]> - -
    - - Instances MAY specify multiple schemas, to indicate all the schemas that - are applicable to the data, and the data SHOULD be valid by all the schemas. - The instance data MAY have multiple schemas - that it is described by (the instance data SHOULD be valid for those schemas). - Or if the document is a collection of instances, the collection MAY contain - instances from different schemas. The mechanism for referencing a schema is - determined by the media type of the instance (if it provides a method for - referencing schemas). -
    - -
    - - JSON Schemas can themselves be described using JSON Schemas. - A self-describing JSON Schema for the core JSON Schema can - be found at http://json-schema.org/schema for the latest version or - http://json-schema.org/draft-04/schema for the draft-04 version. The hyper schema - self-description can be found at http://json-schema.org/hyper-schema - or http://json-schema.org/draft-04/hyper-schema. All schemas - used within a protocol with a media type specified SHOULD include a MIME parameter that refers to the self-descriptive - hyper schema or another schema that extends this hyper schema: - -
    - - - -
    -
    -
    -
    - -
    - - A JSON Schema is a JSON object that defines various attributes - (including usage and valid values) of a JSON value. JSON - Schema has recursive capabilities; there are a number of elements - in the structure that allow for nested JSON Schemas. - - -
    - An example JSON Schema could look like: - - - -
    - - - A JSON Schema object MAY have any of the following optional properties: - - - - - -
    - - This attribute defines what the primitive type or the schema of the instance MUST be in order to validate. - This attribute can take one of two forms: - - - - A string indicating a primitive or simple type. The string MUST be one of the following values: - - - Instance MUST be an object. - Instance MUST be an array. - Instance MUST be a string. - Instance MUST be a number, including floating point numbers. - Instance MUST be the JSON literal "true" or "false". - Instance MUST be the JSON literal "null". Note that without this type, null values are not allowed. - Instance MAY be of any type, including null. - - - - - An array of one or more simple or schema types. - The instance value is valid if it is of the same type as one of the simple types, or valid by one of the schemas, in the array. - - - - If this attribute is not specified, then all value types are accepted. - - -
    - For example, a schema that defines if an instance can be a string or a number would be: - - -
    -
    - -
    - - This attribute is an object with properties that specify the schemas for the properties of the instance object. - In this attribute's object, each property value MUST be a schema. - When the instance value is an object, the value of the instance's properties MUST be valid according to the schemas with the same property names specified in this attribute. - Objects are unordered, so therefore the order of the instance properties or attribute properties MUST NOT determine validation success. - -
    - -
    - - This attribute is an object that defines the schema for a set of property names of an object instance. - The name of each property of this attribute's object is a regular expression pattern in the ECMA 262/Perl 5 format, while the value is a schema. - If the pattern matches the name of a property on the instance object, the value of the instance's property MUST be valid against the pattern name's schema value. - -
    - -
    - This attribute specifies how any instance property that is not explicitly defined by either the "properties" or "patternProperties" attributes (hereafter referred to as "additional properties") is handled. If specified, the value MUST be a schema or a boolean. - If a schema is provided, then all additional properties MUST be valid according to the schema. - If false is provided, then no additional properties are allowed. - The default value is an empty schema, which allows any value for additional properties. -
    - -
    - This attribute provides the allowed items in an array instance. If specified, this attribute MUST be a schema or an array of schemas. - When this attribute value is a schema and the instance value is an array, then all the items in the array MUST be valid according to the schema. - When this attribute value is an array of schemas and the instance value is an array, each position in the instance array MUST be valid according to the schema in the corresponding position for this array. This called tuple typing. When tuple typing is used, additional items are allowed, disallowed, or constrained by the "additionalItems" attribute the same way as "additionalProperties" for objects is. -
    - -
    - This attribute specifies how any item in the array instance that is not explicitly defined by "items" (hereafter referred to as "additional items") is handled. If specified, the value MUST be a schema or a boolean. - If a schema is provided: - - If the "items" attribute is unspecified, then all items in the array instance must be valid against this schema. - If the "items" attribute is a schema, then this attribute is ignored. - If the "items" attribute is an array (during tuple typing), then any additional items MUST be valid against this schema. - - - If false is provided, then any additional items in the array are not allowed. - The default value is an empty schema, which allows any value for additional items. -
    - -
    - This attribute is an array of strings that defines all the property names that must exist on the object instance. -
    - -
    - This attribute is an object that specifies the requirements of a property on an object instance. If an object instance has a property with the same name as a property in this attribute's object, then the instance must be valid against the attribute's property value (hereafter referred to as the "dependency value"). - - The dependency value can take one of two forms: - - - - If the dependency value is a string, then the instance object MUST have a property with the same name as the dependency value. - If the dependency value is an array of strings, then the instance object MUST have a property with the same name as each string in the dependency value's array. - - - If the dependency value is a schema, then the instance object MUST be valid against the schema. - - - -
    - -
    - This attribute defines the minimum value of the instance property when the type of the instance value is a number. -
    - -
    - This attribute defines the maximum value of the instance property when the type of the instance value is a number. -
    - -
    - This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "minimum" attribute. This is false by default, meaning the instance value can be greater then or equal to the minimum value. -
    - -
    - This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "maximum" attribute. This is false by default, meaning the instance value can be less then or equal to the maximum value. -
    - -
    - This attribute defines the minimum number of values in an array when the array is the instance value. -
    - -
    - This attribute defines the maximum number of values in an array when the array is the instance value. -
    - -
    - This attribute defines the minimum number of properties required on an object instance. -
    - -
    - This attribute defines the maximum number of properties the object instance can have. -
    - -
    - This attribute indicates that all items in an array instance MUST be unique (contains no two identical values). - - Two instance are consider equal if they are both of the same type and: - - - are null; or - are booleans/numbers/strings and have the same value; or - are arrays, contains the same number of items, and each item in the array is equal to the item at the corresponding index in the other array; or - are objects, contains the same property names, and each property in the object is equal to the corresponding property in the other object. - - -
    - -
    - When the instance value is a string, this provides a regular expression that a string instance MUST match in order to be valid. Regular expressions SHOULD follow the regular expression specification from ECMA 262/Perl 5 -
    - -
    - When the instance value is a string, this defines the minimum length of the string. -
    - -
    - When the instance value is a string, this defines the maximum length of the string. -
    - -
    - This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems". -
    - -
    - This attribute defines the default value of the instance when the instance is undefined. -
    - -
    - This attribute is a string that provides a short description of the instance property. -
    - -
    - This attribute is a string that provides a full description of the of purpose the instance property. -
    - -
    - This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.) The value of this attribute SHOULD NOT be 0. -
    - -
    - This attribute takes the same values as the "type" attribute, however if the instance matches the type or if this value is an array and the instance matches any type or schema in the array, then this instance is not valid. -
    - -
    - The value of this property MUST be another schema which will provide a base schema which the current schema will inherit from. The inheritance rules are such that any instance that is valid according to the current schema MUST be valid according to the referenced schema. This MAY also be an array, in which case, the instance MUST be valid for all the schemas in the array. A schema that extends another schema MAY define additional attributes, constrain existing attributes, or add other constraints. - - Conceptually, the behavior of extends can be seen as validating an - instance against all constraints in the extending schema as well as - the extended schema(s). More optimized implementations that merge - schemas are possible, but are not required. Some examples of using "extends": - -
    - - - -
    - -
    - - - -
    -
    -
    - -
    - - This attribute defines the current URI of this schema (this attribute is - effectively a "self" link). This URI MAY be relative or absolute. If - the URI is relative it is resolved against the current URI of the parent - schema it is contained in. If this schema is not contained in any - parent schema, the current URI of the parent schema is held to be the - URI under which this schema was addressed. If id is missing, the current URI of a schema is - defined to be that of the parent schema. The current URI of the schema - is also used to construct relative references such as for $ref. - -
    - -
    - - This attribute defines a URI of a schema that contains the full representation of this schema. - When a validator encounters this attribute, it SHOULD replace the current schema with the schema referenced by the value's URI (if known and available) and re-validate the instance. - This URI MAY be relative or absolute, and relative URIs SHOULD be resolved against the URI of the current schema. - -
    - -
    - - This attribute defines a URI of a JSON Schema that is the schema of the current schema. - When this attribute is defined, a validator SHOULD use the schema referenced by the value's URI (if known and available) when resolving Hyper Schemalinks. - - - - A validator MAY use this attribute's value to determine which version of JSON Schema the current schema is written in, and provide the appropriate validation features and behavior. - Therefore, it is RECOMMENDED that all schema authors include this attribute in their schemas to prevent conflicts with future JSON Schema specification changes. - -
    -
    - -
    - - The following attributes are specified in addition to those - attributes that already provided by the core schema with the specific - purpose of informing user agents of relations between resources based - on JSON data. Just as with JSON - schema attributes, all the attributes in hyper schemas are optional. - Therefore, an empty object is a valid (non-informative) schema, and - essentially describes plain JSON (no constraints on the structures). - Addition of attributes provides additive information for user agents. - - -
    - - The value of the links property MUST be an array, where each item - in the array is a link description object which describes the link - relations of the instances. - - - - -
    - - A link description object is used to describe link relations. In - the context of a schema, it defines the link relations of the - instances of the schema, and can be parameterized by the instance - values. The link description format can be used without JSON Schema, - and use of this format can - be declared by referencing the normative link description - schema as the the schema for the data structure that uses the - links. The URI of the normative link description schema is: - http://json-schema.org/links (latest version) or - http://json-schema.org/draft-04/links (draft-04 version). - - -
    - - The value of the "href" link description property - indicates the target URI of the related resource. The value - of the instance property SHOULD be resolved as a URI-Reference per RFC 3986 - and MAY be a relative URI. The base URI to be used for relative resolution - SHOULD be the URI used to retrieve the instance object (not the schema) - when used within a schema. Also, when links are used within a schema, the URI - SHOULD be parametrized by the property values of the instance - object, if property values exist for the corresponding variables - in the template (otherwise they MAY be provided from alternate sources, like user input). - - - - Instance property values SHOULD be substituted into the URIs where - matching braces ('{', '}') are found surrounding zero or more characters, - creating an expanded URI. Instance property value substitutions are resolved - by using the text between the braces to denote the property name - from the instance to get the value to substitute. - -
    - For example, if an href value is defined: - - - - Then it would be resolved by replace the value of the "id" property value from the instance object. -
    - -
    - If the value of the "id" property was "45", the expanded URI would be: - - - -
    - - If matching braces are found with the string "@" (no quotes) between the braces, then the - actual instance value SHOULD be used to replace the braces, rather than a property value. - This should only be used in situations where the instance is a scalar (string, - boolean, or number), and not for objects or arrays. -
    -
    - -
    - - The value of the "rel" property indicates the name of the - relation to the target resource. The relation to the target SHOULD be interpreted as specifically from the instance object that the schema (or sub-schema) applies to, not just the top level resource that contains the object within its hierarchy. If a resource JSON representation contains a sub object with a property interpreted as a link, that sub-object holds the relation with the target. A relation to target from the top level resource MUST be indicated with the schema describing the top level JSON representation. - - - - Relationship definitions SHOULD NOT be media type dependent, and users are encouraged to utilize existing accepted relation definitions, including those in existing relation registries (see RFC 4287). However, we define these relations here for clarity of normative interpretation within the context of JSON hyper schema defined relations: - - - - If the relation value is "self", when this property is encountered in - the instance object, the object represents a resource and the instance object is - treated as a full representation of the target resource identified by - the specified URI. - - - - This indicates that the target of the link is the full representation for the instance object. The object that contains this link possibly may not be the full representation. - - - - This indicates the target of the link is the schema for the instance object. This MAY be used to specifically denote the schemas of objects within a JSON object hierarchy, facilitating polymorphic type data structures. - - - - This relation indicates that the target of the link - SHOULD be treated as the root or the body of the representation for the - purposes of user agent interaction or fragment resolution. All other - properties of the instance objects can be regarded as meta-data - descriptions for the data. - - - - - - The following relations are applicable for schemas (the schema as the "from" resource in the relation): - - - This indicates the target resource that represents collection of instances of a schema. - This indicates a target to use for creating new instances of a schema. This link definition SHOULD be a submission link with a non-safe method (like POST). - - - - -
    - For example, if a schema is defined: - - - -
    - -
    - And if a collection of instance resource's JSON representation was retrieved: - - - -
    - - This would indicate that for the first item in the collection, its own - (self) URI would resolve to "/Resource/thing" and the first item's "up" - relation SHOULD be resolved to the resource at "/Resource/parent". - The "children" collection would be located at "/Resource/?upId=thing". -
    -
    - -
    - This property value is a string that defines the templating language used in the "href" attribute. If no templating language is defined, then the default Link Description Object templating langauge is used. -
    - -
    - This property value is a schema that defines the expected structure of the JSON representation of the target of the link. -
    - -
    - - The following properties also apply to link definition objects, and - provide functionality analogous to HTML forms, in providing a - means for submitting extra (often user supplied) information to send to a server. - - -
    - - This attribute defines which method can be used to access the target resource. - In an HTTP environment, this would be "GET" or "POST" (other HTTP methods - such as "PUT" and "DELETE" have semantics that are clearly implied by - accessed resources, and do not need to be defined here). - This defaults to "GET". - -
    - -
    - - If present, this property indicates a query media type format that the server - supports for querying or posting to the collection of instances at the target - resource. The query can be - suffixed to the target URI to query the collection with - property-based constraints on the resources that SHOULD be returned from - the server or used to post data to the resource (depending on the method). - -
    - For example, with the following schema: - - - - This indicates that the client can query the server for instances that have a specific name. -
    - -
    - For example: - - - -
    - - If no enctype or method is specified, only the single URI specified by - the href property is defined. If the method is POST, "application/json" is - the default media type. -
    -
    - -
    - - This attribute contains a schema which defines the acceptable structure of the submitted - request (for a GET request, this schema would define the properties for the query string - and for a POST request, this would define the body). - -
    -
    -
    -
    - -
    - - This property indicates the fragment resolution protocol to use for - resolving fragment identifiers in URIs within the instance - representations. This applies to the instance object URIs and all - children of the instance object's URIs. The default fragment resolution - protocol is "json-pointer", which is defined below. Other fragment - resolution protocols MAY be used, but are not defined in this document. - - - - The fragment identifier is based on RFC 3986, Sec 5, and defines the - mechanism for resolving references to entities within a document. - - -
    - The "json-pointer" fragment resolution protocol uses a JSON Pointer to resolve fragment identifiers in URIs within instance representations. -
    -
    - - - -
    - This attribute indicates that the instance value SHOULD NOT be changed. Attempts by a user agent to modify the value of this property are expected to be rejected by a server. -
    - -
    - If the instance property value is a string, this attribute defines that the string SHOULD be interpreted as binary data and decoded using the encoding named by this schema property. RFC 2045, Sec 6.1 lists the possible values for this property. -
    - -
    - - This attribute is a URI that defines what the instance's URI MUST start with in order to validate. - The value of the "pathStart" attribute MUST be resolved as per RFC 3986, Sec 5, - and is relative to the instance's URI. - - - - When multiple schemas have been referenced for an instance, the user agent - can determine if this schema is applicable for a particular instance by - determining if the URI of the instance begins with the the value of the "pathStart" - attribute. If the URI of the instance does not start with this URI, - or if another schema specifies a starting URI that is longer and also matches the - instance, this schema SHOULD NOT be applied to the instance. Any schema - that does not have a pathStart attribute SHOULD be considered applicable - to all the instances for which it is referenced. - -
    - -
    - This attribute defines the media type of the instance representations that this schema is defining. -
    -
    - -
    - - This specification is a sub-type of the JSON format, and - consequently the security considerations are generally the same as RFC 4627. - However, an additional issue is that when link relation of "self" - is used to denote a full representation of an object, the user agent - SHOULD NOT consider the representation to be the authoritative representation - of the resource denoted by the target URI if the target URI is not - equivalent to or a sub-path of the the URI used to request the resource - representation which contains the target URI with the "self" link. - -
    - For example, if a hyper schema was defined: - - - -
    - -
    - And a resource was requested from somesite.com: - - - -
    - -
    - With a response of: - - - -
    -
    -
    - -
    - The proposed MIME media type for JSON Schema is "application/schema+json". - Type name: application - Subtype name: schema+json - Required parameters: profile - - The value of the profile parameter SHOULD be a URI (relative or absolute) that - refers to the schema used to define the structure of this structure (the - meta-schema). Normally the value would be http://json-schema.org/draft-04/hyper-schema, - but it is allowable to use other schemas that extend the hyper schema's meta- - schema. - - Optional parameters: pretty - The value of the pretty parameter MAY be true or false to indicate if additional whitespace has been included to make the JSON representation easier to read. - -
    - - This registry is maintained by IANA per RFC 4287 and this specification adds - four values: "full", "create", "instances", "root". New - assignments are subject to IESG Approval, as outlined in RFC 5226. - Requests should be made by email to IANA, which will then forward the - request to the IESG, requesting approval. - -
    -
    -
    - - - - - &rfc2045; - &rfc2119; - &rfc3339; - &rfc3986; - &rfc4287; - - - JSON Pointer - - ForgeRock US, Inc. - - - SitePen (USA) - - - - - - - &rfc2616; - &rfc4627; - &rfc5226; - &iddiscovery; - &uritemplate; - &linkheader; - &html401; - &css21; - - -
    - - - - - Changed "required" attribute to an array of strings. - Removed "format" attribute. - Added "minProperties" and "maxProperties" attributes. - Replaced "slash-delimited" fragment resolution with "json-pointer". - Added "template" LDO attribute. - Removed irrelevant "Open Issues" section. - Merged Conventions and Terminology sections. - Defined terms used in specification. - Removed "integer" type in favor of {"type":"number", "divisibleBy":1}. - Restricted "type" to only the core JSON types. - Improved wording of many sections. - - - - - - Added example and verbiage to "extends" attribute. - Defined slash-delimited to use a leading slash. - Made "root" a relation instead of an attribute. - Removed address values, and MIME media type from format to reduce confusion (mediaType already exists, so it can be used for MIME types). - Added more explanation of nullability. - Removed "alternate" attribute. - Upper cased many normative usages of must, may, and should. - Replaced the link submission "properties" attribute to "schema" attribute. - Replaced "optional" attribute with "required" attribute. - Replaced "maximumCanEqual" attribute with "exclusiveMaximum" attribute. - Replaced "minimumCanEqual" attribute with "exclusiveMinimum" attribute. - Replaced "requires" attribute with "dependencies" attribute. - Moved "contentEncoding" attribute to hyper schema. - Added "additionalItems" attribute. - Added "id" attribute. - Switched self-referencing variable substitution from "-this" to "@" to align with reserved characters in URI template. - Added "patternProperties" attribute. - Schema URIs are now namespace versioned. - Added "$ref" and "$schema" attributes. - - - - - - Replaced "maxDecimal" attribute with "divisibleBy" attribute. - Added slash-delimited fragment resolution protocol and made it the default. - Added language about using links outside of schemas by referencing its normative URI. - Added "uniqueItems" attribute. - Added "targetSchema" attribute to link description object. - - - - - - Fixed category and updates from template. - - - - - - Initial draft. - - - - -
    -
    -
    diff --git a/node_modules/json-schema/lib/links.js b/node_modules/json-schema/lib/links.js deleted file mode 100644 index 8a87f02..0000000 --- a/node_modules/json-schema/lib/links.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * JSON Schema link handler - * Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com) - * Licensed under the MIT (MIT-LICENSE.txt) license. - */ -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define([], function () { - return factory(); - }); - } else if (typeof module === 'object' && module.exports) { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like environments that support module.exports, - // like Node. - module.exports = factory(); - } else { - // Browser globals - root.jsonSchemaLinks = factory(); - } -}(this, function () {// setup primitive classes to be JSON Schema types -var exports = {}; -exports.cacheLinks = true; -exports.getLink = function(relation, instance, schema){ - // gets the URI of the link for the given relation based on the instance and schema - // for example: - // getLink( - // "brother", - // {"brother_id":33}, - // {links:[{rel:"brother", href:"Brother/{brother_id}"}]}) -> - // "Brother/33" - var links = schema.__linkTemplates; - if(!links){ - links = {}; - var schemaLinks = schema.links; - if(schemaLinks && schemaLinks instanceof Array){ - schemaLinks.forEach(function(link){ - /* // TODO: allow for multiple same-name relations - if(links[link.rel]){ - if(!(links[link.rel] instanceof Array)){ - links[link.rel] = [links[link.rel]]; - } - }*/ - links[link.rel] = link.href; - }); - } - if(exports.cacheLinks){ - schema.__linkTemplates = links; - } - } - var linkTemplate = links[relation]; - return linkTemplate && exports.substitute(linkTemplate, instance); -}; - -exports.substitute = function(linkTemplate, instance){ - return linkTemplate.replace(/\{([^\}]*)\}/g, function(t, property){ - var value = instance[decodeURIComponent(property)]; - if(value instanceof Array){ - // the value is an array, it should produce a URI like /Table/(4,5,8) and store.get() should handle that as an array of values - return '(' + value.join(',') + ')'; - } - return value; - }); -}; -return exports; -})); \ No newline at end of file diff --git a/node_modules/json-schema/lib/validate.js b/node_modules/json-schema/lib/validate.js deleted file mode 100644 index e4dc151..0000000 --- a/node_modules/json-schema/lib/validate.js +++ /dev/null @@ -1,273 +0,0 @@ -/** - * JSONSchema Validator - Validates JavaScript objects using JSON Schemas - * (http://www.json.com/json-schema-proposal/) - * - * Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com) - * Licensed under the MIT (MIT-LICENSE.txt) license. -To use the validator call the validate function with an instance object and an optional schema object. -If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating), -that schema will be used to validate and the schema parameter is not necessary (if both exist, -both validations will occur). -The validate method will return an array of validation errors. If there are no errors, then an -empty list will be returned. A validation error will have two properties: -"property" which indicates which property had the error -"message" which indicates what the error was - */ -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define([], function () { - return factory(); - }); - } else if (typeof module === 'object' && module.exports) { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like environments that support module.exports, - // like Node. - module.exports = factory(); - } else { - // Browser globals - root.jsonSchema = factory(); - } -}(this, function () {// setup primitive classes to be JSON Schema types -var exports = validate -exports.Integer = {type:"integer"}; -var primitiveConstructors = { - String: String, - Boolean: Boolean, - Number: Number, - Object: Object, - Array: Array, - Date: Date -} -exports.validate = validate; -function validate(/*Any*/instance,/*Object*/schema) { - // Summary: - // To use the validator call JSONSchema.validate with an instance object and an optional schema object. - // If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating), - // that schema will be used to validate and the schema parameter is not necessary (if both exist, - // both validations will occur). - // The validate method will return an object with two properties: - // valid: A boolean indicating if the instance is valid by the schema - // errors: An array of validation errors. If there are no errors, then an - // empty list will be returned. A validation error will have two properties: - // property: which indicates which property had the error - // message: which indicates what the error was - // - return validate(instance, schema, {changing: false});//, coerce: false, existingOnly: false}); - }; -exports.checkPropertyChange = function(/*Any*/value,/*Object*/schema, /*String*/property) { - // Summary: - // The checkPropertyChange method will check to see if an value can legally be in property with the given schema - // This is slightly different than the validate method in that it will fail if the schema is readonly and it will - // not check for self-validation, it is assumed that the passed in value is already internally valid. - // The checkPropertyChange method will return the same object type as validate, see JSONSchema.validate for - // information. - // - return validate(value, schema, {changing: property || "property"}); - }; -var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*Object*/options) { - - if (!options) options = {}; - var _changing = options.changing; - - function getType(schema){ - return schema.type || (primitiveConstructors[schema.name] == schema && schema.name.toLowerCase()); - } - var errors = []; - // validate a value against a property definition - function checkProp(value, schema, path,i){ - - var l; - path += path ? typeof i == 'number' ? '[' + i + ']' : typeof i == 'undefined' ? '' : '.' + i : i; - function addError(message){ - errors.push({property:path,message:message}); - } - - if((typeof schema != 'object' || schema instanceof Array) && (path || typeof schema != 'function') && !(schema && getType(schema))){ - if(typeof schema == 'function'){ - if(!(value instanceof schema)){ - addError("is not an instance of the class/constructor " + schema.name); - } - }else if(schema){ - addError("Invalid schema/property definition " + schema); - } - return null; - } - if(_changing && schema.readonly){ - addError("is a readonly field, it can not be changed"); - } - if(schema['extends']){ // if it extends another schema, it must pass that schema as well - checkProp(value,schema['extends'],path,i); - } - // validate a value against a type definition - function checkType(type,value){ - if(type){ - if(typeof type == 'string' && type != 'any' && - (type == 'null' ? value !== null : typeof value != type) && - !(value instanceof Array && type == 'array') && - !(value instanceof Date && type == 'date') && - !(type == 'integer' && value%1===0)){ - return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}]; - } - if(type instanceof Array){ - var unionErrors=[]; - for(var j = 0; j < type.length; j++){ // a union type - if(!(unionErrors=checkType(type[j],value)).length){ - break; - } - } - if(unionErrors.length){ - return unionErrors; - } - }else if(typeof type == 'object'){ - var priorErrors = errors; - errors = []; - checkProp(value,type,path); - var theseErrors = errors; - errors = priorErrors; - return theseErrors; - } - } - return []; - } - if(value === undefined){ - if(schema.required){ - addError("is missing and it is required"); - } - }else{ - errors = errors.concat(checkType(getType(schema),value)); - if(schema.disallow && !checkType(schema.disallow,value).length){ - addError(" disallowed value was matched"); - } - if(value !== null){ - if(value instanceof Array){ - if(schema.items){ - var itemsIsArray = schema.items instanceof Array; - var propDef = schema.items; - for (i = 0, l = value.length; i < l; i += 1) { - if (itemsIsArray) - propDef = schema.items[i]; - if (options.coerce) - value[i] = options.coerce(value[i], propDef); - errors.concat(checkProp(value[i],propDef,path,i)); - } - } - if(schema.minItems && value.length < schema.minItems){ - addError("There must be a minimum of " + schema.minItems + " in the array"); - } - if(schema.maxItems && value.length > schema.maxItems){ - addError("There must be a maximum of " + schema.maxItems + " in the array"); - } - }else if(schema.properties || schema.additionalProperties){ - errors.concat(checkObj(value, schema.properties, path, schema.additionalProperties)); - } - if(schema.pattern && typeof value == 'string' && !value.match(schema.pattern)){ - addError("does not match the regex pattern " + schema.pattern); - } - if(schema.maxLength && typeof value == 'string' && value.length > schema.maxLength){ - addError("may only be " + schema.maxLength + " characters long"); - } - if(schema.minLength && typeof value == 'string' && value.length < schema.minLength){ - addError("must be at least " + schema.minLength + " characters long"); - } - if(typeof schema.minimum !== undefined && typeof value == typeof schema.minimum && - schema.minimum > value){ - addError("must have a minimum value of " + schema.minimum); - } - if(typeof schema.maximum !== undefined && typeof value == typeof schema.maximum && - schema.maximum < value){ - addError("must have a maximum value of " + schema.maximum); - } - if(schema['enum']){ - var enumer = schema['enum']; - l = enumer.length; - var found; - for(var j = 0; j < l; j++){ - if(enumer[j]===value){ - found=1; - break; - } - } - if(!found){ - addError("does not have a value in the enumeration " + enumer.join(", ")); - } - } - if(typeof schema.maxDecimal == 'number' && - (value.toString().match(new RegExp("\\.[0-9]{" + (schema.maxDecimal + 1) + ",}")))){ - addError("may only have " + schema.maxDecimal + " digits of decimal places"); - } - } - } - return null; - } - // validate an object against a schema - function checkObj(instance,objTypeDef,path,additionalProp){ - - if(typeof objTypeDef =='object'){ - if(typeof instance != 'object' || instance instanceof Array){ - errors.push({property:path,message:"an object is required"}); - } - - for(var i in objTypeDef){ - if(objTypeDef.hasOwnProperty(i)){ - var value = instance[i]; - // skip _not_ specified properties - if (value === undefined && options.existingOnly) continue; - var propDef = objTypeDef[i]; - // set default - if(value === undefined && propDef["default"]){ - value = instance[i] = propDef["default"]; - } - if(options.coerce && i in instance){ - value = instance[i] = options.coerce(value, propDef); - } - checkProp(value,propDef,path,i); - } - } - } - for(i in instance){ - if(instance.hasOwnProperty(i) && !(i.charAt(0) == '_' && i.charAt(1) == '_') && objTypeDef && !objTypeDef[i] && additionalProp===false){ - if (options.filter) { - delete instance[i]; - continue; - } else { - errors.push({property:path,message:(typeof value) + "The property " + i + - " is not defined in the schema and the schema does not allow additional properties"}); - } - } - var requires = objTypeDef && objTypeDef[i] && objTypeDef[i].requires; - if(requires && !(requires in instance)){ - errors.push({property:path,message:"the presence of the property " + i + " requires that " + requires + " also be present"}); - } - value = instance[i]; - if(additionalProp && (!(objTypeDef && typeof objTypeDef == 'object') || !(i in objTypeDef))){ - if(options.coerce){ - value = instance[i] = options.coerce(value, additionalProp); - } - checkProp(value,additionalProp,path,i); - } - if(!_changing && value && value.$schema){ - errors = errors.concat(checkProp(value,value.$schema,path,i)); - } - } - return errors; - } - if(schema){ - checkProp(instance,schema,'',_changing || ''); - } - if(!_changing && instance && instance.$schema){ - checkProp(instance,instance.$schema,'',''); - } - return {valid:!errors.length,errors:errors}; -}; -exports.mustBeValid = function(result){ - // summary: - // This checks to ensure that the result is valid and will throw an appropriate error message if it is not - // result: the result returned from checkPropertyChange or validate - if(!result.valid){ - throw new TypeError(result.errors.map(function(error){return "for property " + error.property + ': ' + error.message;}).join(", \n")); - } -} - -return exports; -})); diff --git a/node_modules/json-schema/package.json b/node_modules/json-schema/package.json deleted file mode 100644 index 11775da..0000000 --- a/node_modules/json-schema/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "json-schema@0.2.3", - "scope": null, - "escapedName": "json-schema", - "name": "json-schema", - "rawSpec": "0.2.3", - "spec": "0.2.3", - "type": "version" - }, - "/Users/jose/Documents/GitHub/About/node_modules/jsprim" - ] - ], - "_from": "json-schema@0.2.3", - "_id": "json-schema@0.2.3", - "_inCache": true, - "_location": "/json-schema", - "_nodeVersion": "6.1.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/json-schema-0.2.3.tgz_1473699189380_0.7420965158380568" - }, - "_npmUser": { - "name": "kriszyp", - "email": "kriszyp@gmail.com" - }, - "_npmVersion": "3.8.9", - "_phantomChildren": {}, - "_requested": { - "raw": "json-schema@0.2.3", - "scope": null, - "escapedName": "json-schema", - "name": "json-schema", - "rawSpec": "0.2.3", - "spec": "0.2.3", - "type": "version" - }, - "_requiredBy": [ - "/jsprim" - ], - "_resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "_shasum": "b480c892e59a2f05954ce727bd3f2a4e882f9e13", - "_shrinkwrap": null, - "_spec": "json-schema@0.2.3", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/jsprim", - "author": { - "name": "Kris Zyp" - }, - "bugs": { - "url": "https://github.com/kriszyp/json-schema/issues" - }, - "dependencies": {}, - "description": "JSON Schema validation and specifications", - "devDependencies": { - "vows": "*" - }, - "directories": { - "lib": "./lib" - }, - "dist": { - "shasum": "b480c892e59a2f05954ce727bd3f2a4e882f9e13", - "tarball": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz" - }, - "gitHead": "07ae2c618b5f581dbc108e065f4f95dcf0a1d85f", - "homepage": "https://github.com/kriszyp/json-schema#readme", - "keywords": [ - "json", - "schema" - ], - "licenses": [ - { - "type": "AFLv2.1", - "url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L43" - }, - { - "type": "BSD", - "url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L13" - } - ], - "main": "./lib/validate.js", - "maintainers": [ - { - "name": "kriszyp", - "email": "kriszyp@gmail.com" - } - ], - "name": "json-schema", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/kriszyp/json-schema.git" - }, - "scripts": { - "test": "echo TESTS DISABLED vows --spec test/*.js" - }, - "version": "0.2.3" -} diff --git a/node_modules/json-schema/test/tests.js b/node_modules/json-schema/test/tests.js deleted file mode 100644 index 2938aea..0000000 --- a/node_modules/json-schema/test/tests.js +++ /dev/null @@ -1,95 +0,0 @@ -var assert = require('assert'); -var vows = require('vows'); -var path = require('path'); -var fs = require('fs'); - -var validate = require('../lib/validate').validate; - - -var revision = 'draft-03'; -var schemaRoot = path.join(__dirname, '..', revision); -var schemaNames = ['schema', 'hyper-schema', 'links', 'json-ref' ]; -var schemas = {}; - -schemaNames.forEach(function(name) { - var file = path.join(schemaRoot, name); - schemas[name] = loadSchema(file); -}); - -schemaNames.forEach(function(name) { - var s, n = name+'-nsd', f = path.join(schemaRoot, name); - schemas[n] = loadSchema(f); - s = schemas[n]; - delete s['$schema']; -}); - -function loadSchema(path) { - var data = fs.readFileSync(path, 'utf-8'); - var schema = JSON.parse(data); - return schema; -} - -function resultIsValid() { - return function(result) { - assert.isObject(result); - //assert.isBoolean(result.valid); - assert.equal(typeof(result.valid), 'boolean'); - assert.isArray(result.errors); - for (var i = 0; i < result.errors.length; i++) { - assert.notEqual(result.errors[i], null, 'errors['+i+'] is null'); - } - } -} - -function assertValidates(doc, schema) { - var context = {}; - - context[': validate('+doc+', '+schema+')'] = { - topic: validate(schemas[doc], schemas[schema]), - 'returns valid result': resultIsValid(), - 'with valid=true': function(result) { assert.equal(result.valid, true); }, - 'and no errors': function(result) { - // XXX work-around for bug in vows: [null] chokes it - if (result.errors[0] == null) assert.fail('(errors contains null)'); - assert.length(result.errors, 0); - } - }; - - return context; -} - -function assertSelfValidates(doc) { - var context = {}; - - context[': validate('+doc+')'] = { - topic: validate(schemas[doc]), - 'returns valid result': resultIsValid(), - 'with valid=true': function(result) { assert.equal(result.valid, true); }, - 'and no errors': function(result) { assert.length(result.errors, 0); } - }; - - return context; -} - -var suite = vows.describe('JSON Schema').addBatch({ - 'Core-NSD self-validates': assertSelfValidates('schema-nsd'), - 'Core-NSD/Core-NSD': assertValidates('schema-nsd', 'schema-nsd'), - 'Core-NSD/Core': assertValidates('schema-nsd', 'schema'), - - 'Core self-validates': assertSelfValidates('schema'), - 'Core/Core': assertValidates('schema', 'schema'), - - 'Hyper-NSD self-validates': assertSelfValidates('hyper-schema-nsd'), - 'Hyper self-validates': assertSelfValidates('hyper-schema'), - 'Hyper/Hyper': assertValidates('hyper-schema', 'hyper-schema'), - 'Hyper/Core': assertValidates('hyper-schema', 'schema'), - - 'Links-NSD self-validates': assertSelfValidates('links-nsd'), - 'Links self-validates': assertSelfValidates('links'), - 'Links/Hyper': assertValidates('links', 'hyper-schema'), - 'Links/Core': assertValidates('links', 'schema'), - - 'Json-Ref self-validates': assertSelfValidates('json-ref'), - 'Json-Ref/Hyper': assertValidates('json-ref', 'hyper-schema'), - 'Json-Ref/Core': assertValidates('json-ref', 'schema') -}).export(module); diff --git a/node_modules/json-stringify-safe/.npmignore b/node_modules/json-stringify-safe/.npmignore deleted file mode 100644 index 17d6b36..0000000 --- a/node_modules/json-stringify-safe/.npmignore +++ /dev/null @@ -1 +0,0 @@ -/*.tgz diff --git a/node_modules/json-stringify-safe/CHANGELOG.md b/node_modules/json-stringify-safe/CHANGELOG.md deleted file mode 100644 index 42bcb60..0000000 --- a/node_modules/json-stringify-safe/CHANGELOG.md +++ /dev/null @@ -1,14 +0,0 @@ -## Unreleased -- Fixes stringify to only take ancestors into account when checking - circularity. - It previously assumed every visited object was circular which led to [false - positives][issue9]. - Uses the tiny serializer I wrote for [Must.js][must] a year and a half ago. -- Fixes calling the `replacer` function in the proper context (`thisArg`). -- Fixes calling the `cycleReplacer` function in the proper context (`thisArg`). -- Speeds serializing by a factor of - Big-O(h-my-god-it-linearly-searched-every-object) it had ever seen. Searching - only the ancestors for a circular references speeds up things considerably. - -[must]: https://github.com/moll/js-must -[issue9]: https://github.com/isaacs/json-stringify-safe/issues/9 diff --git a/node_modules/json-stringify-safe/LICENSE b/node_modules/json-stringify-safe/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/json-stringify-safe/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/json-stringify-safe/Makefile b/node_modules/json-stringify-safe/Makefile deleted file mode 100644 index 36088c7..0000000 --- a/node_modules/json-stringify-safe/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -NODE_OPTS = -TEST_OPTS = - -love: - @echo "Feel like makin' love." - -test: - @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS) - -spec: - @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS) - -autotest: - @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS) - -autospec: - @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS) - -pack: - @file=$$(npm pack); echo "$$file"; tar tf "$$file" - -publish: - npm publish - -tag: - git tag "v$$(node -e 'console.log(require("./package").version)')" - -clean: - rm -f *.tgz - npm prune --production - -.PHONY: love -.PHONY: test spec autotest autospec -.PHONY: pack publish tag -.PHONY: clean diff --git a/node_modules/json-stringify-safe/README.md b/node_modules/json-stringify-safe/README.md deleted file mode 100644 index a11f302..0000000 --- a/node_modules/json-stringify-safe/README.md +++ /dev/null @@ -1,52 +0,0 @@ -# json-stringify-safe - -Like JSON.stringify, but doesn't throw on circular references. - -## Usage - -Takes the same arguments as `JSON.stringify`. - -```javascript -var stringify = require('json-stringify-safe'); -var circularObj = {}; -circularObj.circularRef = circularObj; -circularObj.list = [ circularObj, circularObj ]; -console.log(stringify(circularObj, null, 2)); -``` - -Output: - -```json -{ - "circularRef": "[Circular]", - "list": [ - "[Circular]", - "[Circular]" - ] -} -``` - -## Details - -``` -stringify(obj, serializer, indent, decycler) -``` - -The first three arguments are the same as to JSON.stringify. The last -is an argument that's only used when the object has been seen already. - -The default `decycler` function returns the string `'[Circular]'`. -If, for example, you pass in `function(k,v){}` (return nothing) then it -will prune cycles. If you pass in `function(k,v){ return {foo: 'bar'}}`, -then cyclical objects will always be represented as `{"foo":"bar"}` in -the result. - -``` -stringify.getSerialize(serializer, decycler) -``` - -Returns a serializer that can be used elsewhere. This is the actual -function that's passed to JSON.stringify. - -**Note** that the function returned from `getSerialize` is stateful for now, so -do **not** use it more than once. diff --git a/node_modules/json-stringify-safe/package.json b/node_modules/json-stringify-safe/package.json deleted file mode 100644 index af4349e..0000000 --- a/node_modules/json-stringify-safe/package.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "json-stringify-safe@~5.0.1", - "scope": null, - "escapedName": "json-stringify-safe", - "name": "json-stringify-safe", - "rawSpec": "~5.0.1", - "spec": ">=5.0.1 <5.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/request" - ] - ], - "_from": "json-stringify-safe@>=5.0.1 <5.1.0", - "_id": "json-stringify-safe@5.0.1", - "_inCache": true, - "_location": "/json-stringify-safe", - "_nodeVersion": "2.0.1", - "_npmUser": { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - "_npmVersion": "2.10.0", - "_phantomChildren": {}, - "_requested": { - "raw": "json-stringify-safe@~5.0.1", - "scope": null, - "escapedName": "json-stringify-safe", - "name": "json-stringify-safe", - "rawSpec": "~5.0.1", - "spec": ">=5.0.1 <5.1.0", - "type": "range" - }, - "_requiredBy": [ - "/request" - ], - "_resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "_shasum": "1296a2d58fd45f19a0f6ce01d65701e2c735b6eb", - "_shrinkwrap": null, - "_spec": "json-stringify-safe@~5.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/request", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me" - }, - "bugs": { - "url": "https://github.com/isaacs/json-stringify-safe/issues" - }, - "contributors": [ - { - "name": "Andri Möll", - "email": "andri@dot.ee", - "url": "http://themoll.com" - } - ], - "dependencies": {}, - "description": "Like JSON.stringify, but doesn't blow up on circular refs.", - "devDependencies": { - "mocha": ">= 2.1.0 < 3", - "must": ">= 0.12 < 0.13", - "sinon": ">= 1.12.2 < 2" - }, - "directories": {}, - "dist": { - "shasum": "1296a2d58fd45f19a0f6ce01d65701e2c735b6eb", - "tarball": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" - }, - "gitHead": "3890dceab3ad14f8701e38ca74f38276abc76de5", - "homepage": "https://github.com/isaacs/json-stringify-safe", - "keywords": [ - "json", - "stringify", - "circular", - "safe" - ], - "license": "ISC", - "main": "stringify.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - }, - { - "name": "moll", - "email": "andri@dot.ee" - } - ], - "name": "json-stringify-safe", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/json-stringify-safe.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "5.0.1" -} diff --git a/node_modules/json-stringify-safe/stringify.js b/node_modules/json-stringify-safe/stringify.js deleted file mode 100644 index 124a452..0000000 --- a/node_modules/json-stringify-safe/stringify.js +++ /dev/null @@ -1,27 +0,0 @@ -exports = module.exports = stringify -exports.getSerialize = serializer - -function stringify(obj, replacer, spaces, cycleReplacer) { - return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces) -} - -function serializer(replacer, cycleReplacer) { - var stack = [], keys = [] - - if (cycleReplacer == null) cycleReplacer = function(key, value) { - if (stack[0] === value) return "[Circular ~]" - return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]" - } - - return function(key, value) { - if (stack.length > 0) { - var thisPos = stack.indexOf(this) - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this) - ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key) - if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value) - } - else stack.push(value) - - return replacer == null ? value : replacer.call(this, key, value) - } -} diff --git a/node_modules/json-stringify-safe/test/mocha.opts b/node_modules/json-stringify-safe/test/mocha.opts deleted file mode 100644 index 2544e58..0000000 --- a/node_modules/json-stringify-safe/test/mocha.opts +++ /dev/null @@ -1,2 +0,0 @@ ---recursive ---require must diff --git a/node_modules/json-stringify-safe/test/stringify_test.js b/node_modules/json-stringify-safe/test/stringify_test.js deleted file mode 100644 index 5b32583..0000000 --- a/node_modules/json-stringify-safe/test/stringify_test.js +++ /dev/null @@ -1,246 +0,0 @@ -var Sinon = require("sinon") -var stringify = require("..") -function jsonify(obj) { return JSON.stringify(obj, null, 2) } - -describe("Stringify", function() { - it("must stringify circular objects", function() { - var obj = {name: "Alice"} - obj.self = obj - var json = stringify(obj, null, 2) - json.must.eql(jsonify({name: "Alice", self: "[Circular ~]"})) - }) - - it("must stringify circular objects with intermediaries", function() { - var obj = {name: "Alice"} - obj.identity = {self: obj} - var json = stringify(obj, null, 2) - json.must.eql(jsonify({name: "Alice", identity: {self: "[Circular ~]"}})) - }) - - it("must stringify circular objects deeper", function() { - var obj = {name: "Alice", child: {name: "Bob"}} - obj.child.self = obj.child - - stringify(obj, null, 2).must.eql(jsonify({ - name: "Alice", - child: {name: "Bob", self: "[Circular ~.child]"} - })) - }) - - it("must stringify circular objects deeper with intermediaries", function() { - var obj = {name: "Alice", child: {name: "Bob"}} - obj.child.identity = {self: obj.child} - - stringify(obj, null, 2).must.eql(jsonify({ - name: "Alice", - child: {name: "Bob", identity: {self: "[Circular ~.child]"}} - })) - }) - - it("must stringify circular objects in an array", function() { - var obj = {name: "Alice"} - obj.self = [obj, obj] - - stringify(obj, null, 2).must.eql(jsonify({ - name: "Alice", self: ["[Circular ~]", "[Circular ~]"] - })) - }) - - it("must stringify circular objects deeper in an array", function() { - var obj = {name: "Alice", children: [{name: "Bob"}, {name: "Eve"}]} - obj.children[0].self = obj.children[0] - obj.children[1].self = obj.children[1] - - stringify(obj, null, 2).must.eql(jsonify({ - name: "Alice", - children: [ - {name: "Bob", self: "[Circular ~.children.0]"}, - {name: "Eve", self: "[Circular ~.children.1]"} - ] - })) - }) - - it("must stringify circular arrays", function() { - var obj = [] - obj.push(obj) - obj.push(obj) - var json = stringify(obj, null, 2) - json.must.eql(jsonify(["[Circular ~]", "[Circular ~]"])) - }) - - it("must stringify circular arrays with intermediaries", function() { - var obj = [] - obj.push({name: "Alice", self: obj}) - obj.push({name: "Bob", self: obj}) - - stringify(obj, null, 2).must.eql(jsonify([ - {name: "Alice", self: "[Circular ~]"}, - {name: "Bob", self: "[Circular ~]"} - ])) - }) - - it("must stringify repeated objects in objects", function() { - var obj = {} - var alice = {name: "Alice"} - obj.alice1 = alice - obj.alice2 = alice - - stringify(obj, null, 2).must.eql(jsonify({ - alice1: {name: "Alice"}, - alice2: {name: "Alice"} - })) - }) - - it("must stringify repeated objects in arrays", function() { - var alice = {name: "Alice"} - var obj = [alice, alice] - var json = stringify(obj, null, 2) - json.must.eql(jsonify([{name: "Alice"}, {name: "Alice"}])) - }) - - it("must call given decycler and use its output", function() { - var obj = {} - obj.a = obj - obj.b = obj - - var decycle = Sinon.spy(function() { return decycle.callCount }) - var json = stringify(obj, null, 2, decycle) - json.must.eql(jsonify({a: 1, b: 2}, null, 2)) - - decycle.callCount.must.equal(2) - decycle.thisValues[0].must.equal(obj) - decycle.args[0][0].must.equal("a") - decycle.args[0][1].must.equal(obj) - decycle.thisValues[1].must.equal(obj) - decycle.args[1][0].must.equal("b") - decycle.args[1][1].must.equal(obj) - }) - - it("must call replacer and use its output", function() { - var obj = {name: "Alice", child: {name: "Bob"}} - - var replacer = Sinon.spy(bangString) - var json = stringify(obj, replacer, 2) - json.must.eql(jsonify({name: "Alice!", child: {name: "Bob!"}})) - - replacer.callCount.must.equal(4) - replacer.args[0][0].must.equal("") - replacer.args[0][1].must.equal(obj) - replacer.thisValues[1].must.equal(obj) - replacer.args[1][0].must.equal("name") - replacer.args[1][1].must.equal("Alice") - replacer.thisValues[2].must.equal(obj) - replacer.args[2][0].must.equal("child") - replacer.args[2][1].must.equal(obj.child) - replacer.thisValues[3].must.equal(obj.child) - replacer.args[3][0].must.equal("name") - replacer.args[3][1].must.equal("Bob") - }) - - it("must call replacer after describing circular references", function() { - var obj = {name: "Alice"} - obj.self = obj - - var replacer = Sinon.spy(bangString) - var json = stringify(obj, replacer, 2) - json.must.eql(jsonify({name: "Alice!", self: "[Circular ~]!"})) - - replacer.callCount.must.equal(3) - replacer.args[0][0].must.equal("") - replacer.args[0][1].must.equal(obj) - replacer.thisValues[1].must.equal(obj) - replacer.args[1][0].must.equal("name") - replacer.args[1][1].must.equal("Alice") - replacer.thisValues[2].must.equal(obj) - replacer.args[2][0].must.equal("self") - replacer.args[2][1].must.equal("[Circular ~]") - }) - - it("must call given decycler and use its output for nested objects", - function() { - var obj = {} - obj.a = obj - obj.b = {self: obj} - - var decycle = Sinon.spy(function() { return decycle.callCount }) - var json = stringify(obj, null, 2, decycle) - json.must.eql(jsonify({a: 1, b: {self: 2}})) - - decycle.callCount.must.equal(2) - decycle.args[0][0].must.equal("a") - decycle.args[0][1].must.equal(obj) - decycle.args[1][0].must.equal("self") - decycle.args[1][1].must.equal(obj) - }) - - it("must use decycler's output when it returned null", function() { - var obj = {a: "b"} - obj.self = obj - obj.selves = [obj, obj] - - function decycle() { return null } - stringify(obj, null, 2, decycle).must.eql(jsonify({ - a: "b", - self: null, - selves: [null, null] - })) - }) - - it("must use decycler's output when it returned undefined", function() { - var obj = {a: "b"} - obj.self = obj - obj.selves = [obj, obj] - - function decycle() {} - stringify(obj, null, 2, decycle).must.eql(jsonify({ - a: "b", - selves: [null, null] - })) - }) - - it("must throw given a decycler that returns a cycle", function() { - var obj = {} - obj.self = obj - var err - function identity(key, value) { return value } - try { stringify(obj, null, 2, identity) } catch (ex) { err = ex } - err.must.be.an.instanceof(TypeError) - }) - - describe(".getSerialize", function() { - it("must stringify circular objects", function() { - var obj = {a: "b"} - obj.circularRef = obj - obj.list = [obj, obj] - - var json = JSON.stringify(obj, stringify.getSerialize(), 2) - json.must.eql(jsonify({ - "a": "b", - "circularRef": "[Circular ~]", - "list": ["[Circular ~]", "[Circular ~]"] - })) - }) - - // This is the behavior as of Mar 3, 2015. - // The serializer function keeps state inside the returned function and - // so far I'm not sure how to not do that. JSON.stringify's replacer is not - // called _after_ serialization. - xit("must return a function that could be called twice", function() { - var obj = {name: "Alice"} - obj.self = obj - - var json - var serializer = stringify.getSerialize() - - json = JSON.stringify(obj, serializer, 2) - json.must.eql(jsonify({name: "Alice", self: "[Circular ~]"})) - - json = JSON.stringify(obj, serializer, 2) - json.must.eql(jsonify({name: "Alice", self: "[Circular ~]"})) - }) - }) -}) - -function bangString(key, value) { - return typeof value == "string" ? value + "!" : value -} diff --git a/node_modules/jsonpointer/LICENSE.md b/node_modules/jsonpointer/LICENSE.md deleted file mode 100644 index ac32f5d..0000000 --- a/node_modules/jsonpointer/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2011-2015 Jan Lehnardt & Marc Bachmann - -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/jsonpointer/README.md b/node_modules/jsonpointer/README.md deleted file mode 100644 index 0267790..0000000 --- a/node_modules/jsonpointer/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# JSON Pointer for nodejs - -This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08). - -## Usage -```javascript -var jsonpointer = require('jsonpointer'); -var obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]}; - -jsonpointer.get(obj, '/foo'); // returns 1 -jsonpointer.get(obj, '/bar/baz'); // returns 2 -jsonpointer.get(obj, '/qux/0'); // returns 3 -jsonpointer.get(obj, '/qux/1'); // returns 4 -jsonpointer.get(obj, '/qux/2'); // returns 5 -jsonpointer.get(obj, '/quo'); // returns undefined - -jsonpointer.set(obj, '/foo', 6); // sets obj.foo = 6; -jsonpointer.set(obj, '/qux/-', 6) // sets obj.qux = [3, 4, 5, 6] - -var pointer = jsonpointer.compile('/foo') -pointer.get(obj) // returns 1 -pointer.set(obj, 1) // sets obj.foo = 1 -``` - -## Testing - - $ node test.js - All tests pass. - $ - -[![Build Status](https://travis-ci.org/janl/node-jsonpointer.png?branch=master)](https://travis-ci.org/janl/node-jsonpointer) - -## Author - -(c) 2011-2015 Jan Lehnardt & Marc Bachmann - -## License - -MIT License. diff --git a/node_modules/jsonpointer/jsonpointer.js b/node_modules/jsonpointer/jsonpointer.js deleted file mode 100644 index 7cfaec0..0000000 --- a/node_modules/jsonpointer/jsonpointer.js +++ /dev/null @@ -1,93 +0,0 @@ -var hasExcape = /~/ -var escapeMatcher = /~[01]/g -function escapeReplacer (m) { - switch (m) { - case '~1': return '/' - case '~0': return '~' - } - throw new Error('Invalid tilde escape: ' + m) -} - -function untilde (str) { - if (!hasExcape.test(str)) return str - return str.replace(escapeMatcher, escapeReplacer) -} - -function setter (obj, pointer, value) { - var part - var hasNextPart - - for (var p = 1, len = pointer.length; p < len;) { - part = untilde(pointer[p++]) - hasNextPart = len > p - - if (typeof obj[part] === 'undefined') { - // support setting of /- - if (Array.isArray(obj) && part === '-') { - part = obj.length - } - - // support nested objects/array when setting values - if (hasNextPart) { - if ((pointer[p] !== '' && pointer[p] < Infinity) || pointer[p] === '-') obj[part] = [] - else obj[part] = {} - } - } - - if (!hasNextPart) break - obj = obj[part] - } - - var oldValue = obj[part] - if (value === undefined) delete obj[part] - else obj[part] = value - return oldValue -} - -function compilePointer (pointer) { - if (typeof pointer === 'string') { - pointer = pointer.split('/') - if (pointer[0] === '') return pointer - throw new Error('Invalid JSON pointer.') - } else if (Array.isArray(pointer)) { - return pointer - } - - throw new Error('Invalid JSON pointer.') -} - -function get (obj, pointer) { - if (typeof obj !== 'object') throw new Error('Invalid input object.') - pointer = compilePointer(pointer) - var len = pointer.length - if (len === 1) return obj - - for (var p = 1; p < len;) { - obj = obj[untilde(pointer[p++])] - if (len === p) return obj - if (typeof obj !== 'object') return undefined - } -} - -function set (obj, pointer, value) { - if (typeof obj !== 'object') throw new Error('Invalid input object.') - pointer = compilePointer(pointer) - if (pointer.length === 0) throw new Error('Invalid JSON pointer for set.') - return setter(obj, pointer, value) -} - -function compile (pointer) { - var compiled = compilePointer(pointer) - return { - get: function (object) { - return get(object, compiled) - }, - set: function (object, value) { - return set(object, compiled, value) - } - } -} - -exports.get = get -exports.set = set -exports.compile = compile diff --git a/node_modules/jsonpointer/package.json b/node_modules/jsonpointer/package.json deleted file mode 100644 index 2942f8d..0000000 --- a/node_modules/jsonpointer/package.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "jsonpointer@^4.0.0", - "scope": null, - "escapedName": "jsonpointer", - "name": "jsonpointer", - "rawSpec": "^4.0.0", - "spec": ">=4.0.0 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/is-my-json-valid" - ] - ], - "_from": "jsonpointer@>=4.0.0 <5.0.0", - "_id": "jsonpointer@4.0.1", - "_inCache": true, - "_location": "/jsonpointer", - "_nodeVersion": "6.9.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/jsonpointer-4.0.1.tgz_1482326391770_0.6748844815883785" - }, - "_npmUser": { - "name": "marcbachmann", - "email": "marc.brookman@gmail.com" - }, - "_npmVersion": "3.10.8", - "_phantomChildren": {}, - "_requested": { - "raw": "jsonpointer@^4.0.0", - "scope": null, - "escapedName": "jsonpointer", - "name": "jsonpointer", - "rawSpec": "^4.0.0", - "spec": ">=4.0.0 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/is-my-json-valid" - ], - "_resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", - "_shasum": "4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9", - "_shrinkwrap": null, - "_spec": "jsonpointer@^4.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/is-my-json-valid", - "author": { - "name": "Jan Lehnardt", - "email": "jan@apache.org" - }, - "bugs": { - "url": "http://github.com/janl/node-jsonpointer/issues" - }, - "contributors": [ - { - "name": "Joe Hildebrand", - "email": "joe-github@cursive.net" - }, - { - "name": "Marc Bachmann", - "email": "marc.brookman@gmail.com" - } - ], - "dependencies": {}, - "description": "Simple JSON Addressing.", - "devDependencies": { - "standard": "^5.3.1" - }, - "directories": {}, - "dist": { - "shasum": "4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9", - "tarball": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "jsonpointer.js" - ], - "gitHead": "37c73aecd5f192a00cd79c0ebbbb2034b91bcfd0", - "homepage": "https://github.com/janl/node-jsonpointer#readme", - "license": "MIT", - "main": "./jsonpointer", - "maintainers": [ - { - "name": "jan", - "email": "jan@apache.org" - }, - { - "name": "marcbachmann", - "email": "marc.brookman@gmail.com" - } - ], - "name": "jsonpointer", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/janl/node-jsonpointer.git" - }, - "scripts": { - "test": "standard && node test.js" - }, - "tags": [ - "util", - "simple", - "util", - "utility" - ], - "version": "4.0.1" -} diff --git a/node_modules/jsprim/CHANGES.md b/node_modules/jsprim/CHANGES.md deleted file mode 100644 index 3e152ab..0000000 --- a/node_modules/jsprim/CHANGES.md +++ /dev/null @@ -1,39 +0,0 @@ -# Changelog - -## not yet released - -None yet. - -## v1.3.1 (2016-09-12) - -* #13 Incompatible with webpack - -## v1.3.0 (2016-06-22) - -* #14 add safer version of hasOwnProperty() -* #15 forEachKey() should ignore inherited properties - -## v1.2.2 (2015-10-15) - -* #11 NPM package shouldn't include any code that does `require('JSV')` -* #12 jsl.node.conf missing definition for "module" - -## v1.2.1 (2015-10-14) - -* #8 odd date parsing behaviour - -## v1.2.0 (2015-10-13) - -* #9 want function for returning RFC1123 dates - -## v1.1.0 (2015-09-02) - -* #6 a new suite of hrtime manipulation routines: `hrtimeAdd()`, - `hrtimeAccum()`, `hrtimeNanosec()`, `hrtimeMicrosec()` and - `hrtimeMillisec()`. - -## v1.0.0 (2015-09-01) - -First tracked release. Includes everything in previous releases, plus: - -* #4 want function for merging objects diff --git a/node_modules/jsprim/LICENSE b/node_modules/jsprim/LICENSE deleted file mode 100644 index cbc0bb3..0000000 --- a/node_modules/jsprim/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2012, Joyent, Inc. 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/jsprim/README.md b/node_modules/jsprim/README.md deleted file mode 100644 index 7303642..0000000 --- a/node_modules/jsprim/README.md +++ /dev/null @@ -1,237 +0,0 @@ -# jsprim: utilities for primitive JavaScript types - -This module provides miscellaneous facilities for working with strings, -numbers, dates, and objects and arrays of these basic types. - - -### deepCopy(obj) - -Creates a deep copy of a primitive type, object, or array of primitive types. - - -### deepEqual(obj1, obj2) - -Returns whether two objects are equal. - - -### isEmpty(obj) - -Returns true if the given object has no properties and false otherwise. This -is O(1) (unlike `Object.keys(obj).length === 0`, which is O(N)). - -### hasKey(obj, key) - -Returns true if the given object has an enumerable, non-inherited property -called `key`. [For information on enumerability and ownership of properties, see -the MDN -documentation.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties) - -### forEachKey(obj, callback) - -Like Array.forEach, but iterates enumerable, owned properties of an object -rather than elements of an array. Equivalent to: - - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - callback(key, obj[key]); - } - } - - -### flattenObject(obj, depth) - -Flattens an object up to a given level of nesting, returning an array of arrays -of length "depth + 1", where the first "depth" elements correspond to flattened -columns and the last element contains the remaining object . For example: - - flattenObject({ - 'I': { - 'A': { - 'i': { - 'datum1': [ 1, 2 ], - 'datum2': [ 3, 4 ] - }, - 'ii': { - 'datum1': [ 3, 4 ] - } - }, - 'B': { - 'i': { - 'datum1': [ 5, 6 ] - }, - 'ii': { - 'datum1': [ 7, 8 ], - 'datum2': [ 3, 4 ], - }, - 'iii': { - } - } - }, - 'II': { - 'A': { - 'i': { - 'datum1': [ 1, 2 ], - 'datum2': [ 3, 4 ] - } - } - } - }, 3) - -becomes: - - [ - [ 'I', 'A', 'i', { 'datum1': [ 1, 2 ], 'datum2': [ 3, 4 ] } ], - [ 'I', 'A', 'ii', { 'datum1': [ 3, 4 ] } ], - [ 'I', 'B', 'i', { 'datum1': [ 5, 6 ] } ], - [ 'I', 'B', 'ii', { 'datum1': [ 7, 8 ], 'datum2': [ 3, 4 ] } ], - [ 'I', 'B', 'iii', {} ], - [ 'II', 'A', 'i', { 'datum1': [ 1, 2 ], 'datum2': [ 3, 4 ] } ] - ] - -This function is strict: "depth" must be a non-negative integer and "obj" must -be a non-null object with at least "depth" levels of nesting under all keys. - - -### flattenIter(obj, depth, func) - -This is similar to `flattenObject` except that instead of returning an array, -this function invokes `func(entry)` for each `entry` in the array that -`flattenObject` would return. `flattenIter(obj, depth, func)` is logically -equivalent to `flattenObject(obj, depth).forEach(func)`. Importantly, this -version never constructs the full array. Its memory usage is O(depth) rather -than O(n) (where `n` is the number of flattened elements). - -There's another difference between `flattenObject` and `flattenIter` that's -related to the special case where `depth === 0`. In this case, `flattenObject` -omits the array wrapping `obj` (which is regrettable). - - -### pluck(obj, key) - -Fetch nested property "key" from object "obj", traversing objects as needed. -For example, `pluck(obj, "foo.bar.baz")` is roughly equivalent to -`obj.foo.bar.baz`, except that: - -1. If traversal fails, the resulting value is undefined, and no error is - thrown. For example, `pluck({}, "foo.bar")` is just undefined. -2. If "obj" has property "key" directly (without traversing), the - corresponding property is returned. For example, - `pluck({ 'foo.bar': 1 }, 'foo.bar')` is 1, not undefined. This is also - true recursively, so `pluck({ 'a': { 'foo.bar': 1 } }, 'a.foo.bar')` is - also 1, not undefined. - - -### randElt(array) - -Returns an element from "array" selected uniformly at random. If "array" is -empty, throws an Error. - - -### startsWith(str, prefix) - -Returns true if the given string starts with the given prefix and false -otherwise. - - -### endsWith(str, suffix) - -Returns true if the given string ends with the given suffix and false -otherwise. - - -### iso8601(date) - -Converts a Date object to an ISO8601 date string of the form -"YYYY-MM-DDTHH:MM:SS.sssZ". This format is not customizable. - - -### parseDateTime(str) - -Parses a date expressed as a string, as either a number of milliseconds since -the epoch or any string format that Date accepts, giving preference to the -former where these two sets overlap (e.g., strings containing small numbers). - - -### hrtimeDiff(timeA, timeB) - -Given two hrtime readings (as from Node's `process.hrtime()`), where timeA is -later than timeB, compute the difference and return that as an hrtime. It is -illegal to invoke this for a pair of times where timeB is newer than timeA. - -### hrtimeAdd(timeA, timeB) - -Add two hrtime intervals (as from Node's `process.hrtime()`), returning a new -hrtime interval array. This function does not modify either input argument. - - -### hrtimeAccum(timeA, timeB) - -Add two hrtime intervals (as from Node's `process.hrtime()`), storing the -result in `timeA`. This function overwrites (and returns) the first argument -passed in. - - -### hrtimeNanosec(timeA), hrtimeMicrosec(timeA), hrtimeMillisec(timeA) - -This suite of functions converts a hrtime interval (as from Node's -`process.hrtime()`) into a scalar number of nanoseconds, microseconds or -milliseconds. Results are truncated, as with `Math.floor()`. - - -### validateJsonObject(schema, object) - -Uses JSON validation (via JSV) to validate the given object against the given -schema. On success, returns null. On failure, *returns* (does not throw) a -useful Error object. - - -### extraProperties(object, allowed) - -Check an object for unexpected properties. Accepts the object to check, and an -array of allowed property name strings. If extra properties are detected, an -array of extra property names is returned. If no properties other than those -in the allowed list are present on the object, the returned array will be of -zero length. - -### mergeObjects(provided, overrides, defaults) - -Merge properties from objects "provided", "overrides", and "defaults". The -intended use case is for functions that accept named arguments in an "args" -object, but want to provide some default values and override other values. In -that case, "provided" is what the caller specified, "overrides" are what the -function wants to override, and "defaults" contains default values. - -The function starts with the values in "defaults", overrides them with the -values in "provided", and then overrides those with the values in "overrides". -For convenience, any of these objects may be falsey, in which case they will be -ignored. The input objects are never modified, but properties in the returned -object are not deep-copied. - -For example: - - mergeObjects(undefined, { 'objectMode': true }, { 'highWaterMark': 0 }) - -returns: - - { 'objectMode': true, 'highWaterMark': 0 } - -For another example: - - mergeObjects( - { 'highWaterMark': 16, 'objectMode': 7 }, /* from caller */ - { 'objectMode': true }, /* overrides */ - { 'highWaterMark': 0 }); /* default */ - -returns: - - { 'objectMode': true, 'highWaterMark': 16 } - - -# Contributing - -Code should be "make check" clean. This target assumes that -[jsl](http://github.com/davepacheco/javascriptlint) and -[jsstyle](http://github.com/davepacheco/jsstyle) are on your path. - -New tests should generally accompany new functions and bug fixes. The tests -should pass cleanly (run tests/basic.js). diff --git a/node_modules/jsprim/lib/jsprim.js b/node_modules/jsprim/lib/jsprim.js deleted file mode 100644 index 26c3ba1..0000000 --- a/node_modules/jsprim/lib/jsprim.js +++ /dev/null @@ -1,488 +0,0 @@ -/* - * lib/jsprim.js: utilities for primitive JavaScript types - */ - -var mod_assert = require('assert'); -var mod_util = require('util'); - -var mod_extsprintf = require('extsprintf'); -var mod_verror = require('verror'); -var mod_jsonschema = require('json-schema'); - -/* - * Public interface - */ -exports.deepCopy = deepCopy; -exports.deepEqual = deepEqual; -exports.isEmpty = isEmpty; -exports.hasKey = hasKey; -exports.forEachKey = forEachKey; -exports.pluck = pluck; -exports.flattenObject = flattenObject; -exports.flattenIter = flattenIter; -exports.validateJsonObject = validateJsonObjectJS; -exports.validateJsonObjectJS = validateJsonObjectJS; -exports.randElt = randElt; -exports.extraProperties = extraProperties; -exports.mergeObjects = mergeObjects; - -exports.startsWith = startsWith; -exports.endsWith = endsWith; - -exports.iso8601 = iso8601; -exports.rfc1123 = rfc1123; -exports.parseDateTime = parseDateTime; - -exports.hrtimediff = hrtimeDiff; -exports.hrtimeDiff = hrtimeDiff; -exports.hrtimeAccum = hrtimeAccum; -exports.hrtimeAdd = hrtimeAdd; -exports.hrtimeNanosec = hrtimeNanosec; -exports.hrtimeMicrosec = hrtimeMicrosec; -exports.hrtimeMillisec = hrtimeMillisec; - - -/* - * Deep copy an acyclic *basic* Javascript object. This only handles basic - * scalars (strings, numbers, booleans) and arbitrarily deep arrays and objects - * containing these. This does *not* handle instances of other classes. - */ -function deepCopy(obj) -{ - var ret, key; - var marker = '__deepCopy'; - - if (obj && obj[marker]) - throw (new Error('attempted deep copy of cyclic object')); - - if (obj && obj.constructor == Object) { - ret = {}; - obj[marker] = true; - - for (key in obj) { - if (key == marker) - continue; - - ret[key] = deepCopy(obj[key]); - } - - delete (obj[marker]); - return (ret); - } - - if (obj && obj.constructor == Array) { - ret = []; - obj[marker] = true; - - for (key = 0; key < obj.length; key++) - ret.push(deepCopy(obj[key])); - - delete (obj[marker]); - return (ret); - } - - /* - * It must be a primitive type -- just return it. - */ - return (obj); -} - -function deepEqual(obj1, obj2) -{ - if (typeof (obj1) != typeof (obj2)) - return (false); - - if (obj1 === null || obj2 === null || typeof (obj1) != 'object') - return (obj1 === obj2); - - if (obj1.constructor != obj2.constructor) - return (false); - - var k; - for (k in obj1) { - if (!obj2.hasOwnProperty(k)) - return (false); - - if (!deepEqual(obj1[k], obj2[k])) - return (false); - } - - for (k in obj2) { - if (!obj1.hasOwnProperty(k)) - return (false); - } - - return (true); -} - -function isEmpty(obj) -{ - var key; - for (key in obj) - return (false); - return (true); -} - -function hasKey(obj, key) -{ - mod_assert.equal(typeof (key), 'string'); - return (Object.prototype.hasOwnProperty.call(obj, key)); -} - -function forEachKey(obj, callback) -{ - for (var key in obj) { - if (hasKey(obj, key)) { - callback(key, obj[key]); - } - } -} - -function pluck(obj, key) -{ - mod_assert.equal(typeof (key), 'string'); - return (pluckv(obj, key)); -} - -function pluckv(obj, key) -{ - if (obj === null || typeof (obj) !== 'object') - return (undefined); - - if (obj.hasOwnProperty(key)) - return (obj[key]); - - var i = key.indexOf('.'); - if (i == -1) - return (undefined); - - var key1 = key.substr(0, i); - if (!obj.hasOwnProperty(key1)) - return (undefined); - - return (pluckv(obj[key1], key.substr(i + 1))); -} - -/* - * Invoke callback(row) for each entry in the array that would be returned by - * flattenObject(data, depth). This is just like flattenObject(data, - * depth).forEach(callback), except that the intermediate array is never - * created. - */ -function flattenIter(data, depth, callback) -{ - doFlattenIter(data, depth, [], callback); -} - -function doFlattenIter(data, depth, accum, callback) -{ - var each; - var key; - - if (depth === 0) { - each = accum.slice(0); - each.push(data); - callback(each); - return; - } - - mod_assert.ok(data !== null); - mod_assert.equal(typeof (data), 'object'); - mod_assert.equal(typeof (depth), 'number'); - mod_assert.ok(depth >= 0); - - for (key in data) { - each = accum.slice(0); - each.push(key); - doFlattenIter(data[key], depth - 1, each, callback); - } -} - -function flattenObject(data, depth) -{ - if (depth === 0) - return ([ data ]); - - mod_assert.ok(data !== null); - mod_assert.equal(typeof (data), 'object'); - mod_assert.equal(typeof (depth), 'number'); - mod_assert.ok(depth >= 0); - - var rv = []; - var key; - - for (key in data) { - flattenObject(data[key], depth - 1).forEach(function (p) { - rv.push([ key ].concat(p)); - }); - } - - return (rv); -} - -function startsWith(str, prefix) -{ - return (str.substr(0, prefix.length) == prefix); -} - -function endsWith(str, suffix) -{ - return (str.substr( - str.length - suffix.length, suffix.length) == suffix); -} - -function iso8601(d) -{ - if (typeof (d) == 'number') - d = new Date(d); - mod_assert.ok(d.constructor === Date); - return (mod_extsprintf.sprintf('%4d-%02d-%02dT%02d:%02d:%02d.%03dZ', - d.getUTCFullYear(), d.getUTCMonth() + 1, d.getUTCDate(), - d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), - d.getUTCMilliseconds())); -} - -var RFC1123_MONTHS = [ - 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', - 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; -var RFC1123_DAYS = [ - 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; - -function rfc1123(date) { - return (mod_extsprintf.sprintf('%s, %02d %s %04d %02d:%02d:%02d GMT', - RFC1123_DAYS[date.getUTCDay()], date.getUTCDate(), - RFC1123_MONTHS[date.getUTCMonth()], date.getUTCFullYear(), - date.getUTCHours(), date.getUTCMinutes(), - date.getUTCSeconds())); -} - -/* - * Parses a date expressed as a string, as either a number of milliseconds since - * the epoch or any string format that Date accepts, giving preference to the - * former where these two sets overlap (e.g., small numbers). - */ -function parseDateTime(str) -{ - /* - * This is irritatingly implicit, but significantly more concise than - * alternatives. The "+str" will convert a string containing only a - * number directly to a Number, or NaN for other strings. Thus, if the - * conversion succeeds, we use it (this is the milliseconds-since-epoch - * case). Otherwise, we pass the string directly to the Date - * constructor to parse. - */ - var numeric = +str; - if (!isNaN(numeric)) { - return (new Date(numeric)); - } else { - return (new Date(str)); - } -} - -function validateJsonObjectJS(schema, input) -{ - var report = mod_jsonschema.validate(input, schema); - - if (report.errors.length === 0) - return (null); - - /* Currently, we only do anything useful with the first error. */ - var error = report.errors[0]; - - /* The failed property is given by a URI with an irrelevant prefix. */ - var propname = error['property']; - var reason = error['message'].toLowerCase(); - var i, j; - - /* - * There's at least one case where the property error message is - * confusing at best. We work around this here. - */ - if ((i = reason.indexOf('the property ')) != -1 && - (j = reason.indexOf(' is not defined in the schema and the ' + - 'schema does not allow additional properties')) != -1) { - i += 'the property '.length; - if (propname === '') - propname = reason.substr(i, j - i); - else - propname = propname + '.' + reason.substr(i, j - i); - - reason = 'unsupported property'; - } - - var rv = new mod_verror.VError('property "%s": %s', propname, reason); - rv.jsv_details = error; - return (rv); -} - -function randElt(arr) -{ - mod_assert.ok(Array.isArray(arr) && arr.length > 0, - 'randElt argument must be a non-empty array'); - - return (arr[Math.floor(Math.random() * arr.length)]); -} - -function assertHrtime(a) -{ - mod_assert.ok(a[0] >= 0 && a[1] >= 0, - 'negative numbers not allowed in hrtimes'); - mod_assert.ok(a[1] < 1e9, 'nanoseconds column overflow'); -} - -/* - * Compute the time elapsed between hrtime readings A and B, where A is later - * than B. hrtime readings come from Node's process.hrtime(). There is no - * defined way to represent negative deltas, so it's illegal to diff B from A - * where the time denoted by B is later than the time denoted by A. If this - * becomes valuable, we can define a representation and extend the - * implementation to support it. - */ -function hrtimeDiff(a, b) -{ - assertHrtime(a); - assertHrtime(b); - mod_assert.ok(a[0] > b[0] || (a[0] == b[0] && a[1] >= b[1]), - 'negative differences not allowed'); - - var rv = [ a[0] - b[0], 0 ]; - - if (a[1] >= b[1]) { - rv[1] = a[1] - b[1]; - } else { - rv[0]--; - rv[1] = 1e9 - (b[1] - a[1]); - } - - return (rv); -} - -/* - * Convert a hrtime reading from the array format returned by Node's - * process.hrtime() into a scalar number of nanoseconds. - */ -function hrtimeNanosec(a) -{ - assertHrtime(a); - - return (Math.floor(a[0] * 1e9 + a[1])); -} - -/* - * Convert a hrtime reading from the array format returned by Node's - * process.hrtime() into a scalar number of microseconds. - */ -function hrtimeMicrosec(a) -{ - assertHrtime(a); - - return (Math.floor(a[0] * 1e6 + a[1] / 1e3)); -} - -/* - * Convert a hrtime reading from the array format returned by Node's - * process.hrtime() into a scalar number of milliseconds. - */ -function hrtimeMillisec(a) -{ - assertHrtime(a); - - return (Math.floor(a[0] * 1e3 + a[1] / 1e6)); -} - -/* - * Add two hrtime readings A and B, overwriting A with the result of the - * addition. This function is useful for accumulating several hrtime intervals - * into a counter. Returns A. - */ -function hrtimeAccum(a, b) -{ - assertHrtime(a); - assertHrtime(b); - - /* - * Accumulate the nanosecond component. - */ - a[1] += b[1]; - if (a[1] >= 1e9) { - /* - * The nanosecond component overflowed, so carry to the seconds - * field. - */ - a[0]++; - a[1] -= 1e9; - } - - /* - * Accumulate the seconds component. - */ - a[0] += b[0]; - - return (a); -} - -/* - * Add two hrtime readings A and B, returning the result as a new hrtime array. - * Does not modify either input argument. - */ -function hrtimeAdd(a, b) -{ - assertHrtime(a); - - var rv = [ a[0], a[1] ]; - - return (hrtimeAccum(rv, b)); -} - - -/* - * Check an object for unexpected properties. Accepts the object to check, and - * an array of allowed property names (strings). Returns an array of key names - * that were found on the object, but did not appear in the list of allowed - * properties. If no properties were found, the returned array will be of - * zero length. - */ -function extraProperties(obj, allowed) -{ - mod_assert.ok(typeof (obj) === 'object' && obj !== null, - 'obj argument must be a non-null object'); - mod_assert.ok(Array.isArray(allowed), - 'allowed argument must be an array of strings'); - for (var i = 0; i < allowed.length; i++) { - mod_assert.ok(typeof (allowed[i]) === 'string', - 'allowed argument must be an array of strings'); - } - - return (Object.keys(obj).filter(function (key) { - return (allowed.indexOf(key) === -1); - })); -} - -/* - * Given three sets of properties "provided" (may be undefined), "overrides" - * (required), and "defaults" (may be undefined), construct an object containing - * the union of these sets with "overrides" overriding "provided", and - * "provided" overriding "defaults". None of the input objects are modified. - */ -function mergeObjects(provided, overrides, defaults) -{ - var rv, k; - - rv = {}; - if (defaults) { - for (k in defaults) - rv[k] = defaults[k]; - } - - if (provided) { - for (k in provided) - rv[k] = provided[k]; - } - - if (overrides) { - for (k in overrides) - rv[k] = overrides[k]; - } - - return (rv); -} diff --git a/node_modules/jsprim/package.json b/node_modules/jsprim/package.json deleted file mode 100644 index 2ade7dd..0000000 --- a/node_modules/jsprim/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "jsprim@^1.2.2", - "scope": null, - "escapedName": "jsprim", - "name": "jsprim", - "rawSpec": "^1.2.2", - "spec": ">=1.2.2 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/http-signature" - ] - ], - "_from": "jsprim@>=1.2.2 <2.0.0", - "_id": "jsprim@1.3.1", - "_inCache": true, - "_location": "/jsprim", - "_nodeVersion": "0.12.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/jsprim-1.3.1.tgz_1473725209917_0.5387293708045036" - }, - "_npmUser": { - "name": "dap", - "email": "dap@cs.brown.edu" - }, - "_npmVersion": "2.15.9", - "_phantomChildren": {}, - "_requested": { - "raw": "jsprim@^1.2.2", - "scope": null, - "escapedName": "jsprim", - "name": "jsprim", - "rawSpec": "^1.2.2", - "spec": ">=1.2.2 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/http-signature" - ], - "_resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.3.1.tgz", - "_shasum": "2a7256f70412a29ee3670aaca625994c4dcff252", - "_shrinkwrap": null, - "_spec": "jsprim@^1.2.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/http-signature", - "bugs": { - "url": "https://github.com/davepacheco/node-jsprim/issues" - }, - "dependencies": { - "extsprintf": "1.0.2", - "json-schema": "0.2.3", - "verror": "1.3.6" - }, - "description": "utilities for primitive JavaScript types", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "2a7256f70412a29ee3670aaca625994c4dcff252", - "tarball": "https://registry.npmjs.org/jsprim/-/jsprim-1.3.1.tgz" - }, - "engines": [ - "node >=0.6.0" - ], - "gitHead": "825aba45c6cff4340c18cdae363ccb5bdf840bd7", - "homepage": "https://github.com/davepacheco/node-jsprim#readme", - "license": "MIT", - "main": "./lib/jsprim.js", - "maintainers": [ - { - "name": "dap", - "email": "dap@cs.brown.edu" - } - ], - "name": "jsprim", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/davepacheco/node-jsprim.git" - }, - "scripts": {}, - "version": "1.3.1" -} diff --git a/node_modules/kind-of/LICENSE b/node_modules/kind-of/LICENSE deleted file mode 100644 index 39245ac..0000000 --- a/node_modules/kind-of/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2016, 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/kind-of/README.md b/node_modules/kind-of/README.md deleted file mode 100644 index 193d328..0000000 --- a/node_modules/kind-of/README.md +++ /dev/null @@ -1,258 +0,0 @@ -# kind-of [![NPM version](https://img.shields.io/npm/v/kind-of.svg?style=flat)](https://www.npmjs.com/package/kind-of) [![NPM monthly downloads](https://img.shields.io/npm/dm/kind-of.svg?style=flat)](https://npmjs.org/package/kind-of) [![NPM total downloads](https://img.shields.io/npm/dt/kind-of.svg?style=flat)](https://npmjs.org/package/kind-of) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/kind-of.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/kind-of) - -> Get the native type of a value. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save kind-of -``` - -## Install - -Install with [bower](http://bower.io/) - -```sh -$ bower install kind-of --save -``` - -## Usage - -> es5, browser and es6 ready - -```js -var kindOf = require('kind-of'); - -kindOf(undefined); -//=> 'undefined' - -kindOf(null); -//=> 'null' - -kindOf(true); -//=> 'boolean' - -kindOf(false); -//=> 'boolean' - -kindOf(new Boolean(true)); -//=> 'boolean' - -kindOf(new Buffer('')); -//=> 'buffer' - -kindOf(42); -//=> 'number' - -kindOf(new Number(42)); -//=> 'number' - -kindOf('str'); -//=> 'string' - -kindOf(new String('str')); -//=> 'string' - -kindOf(arguments); -//=> 'arguments' - -kindOf({}); -//=> 'object' - -kindOf(Object.create(null)); -//=> 'object' - -kindOf(new Test()); -//=> 'object' - -kindOf(new Date()); -//=> 'date' - -kindOf([]); -//=> 'array' - -kindOf([1, 2, 3]); -//=> 'array' - -kindOf(new Array()); -//=> 'array' - -kindOf(/foo/); -//=> 'regexp' - -kindOf(new RegExp('foo')); -//=> 'regexp' - -kindOf(function () {}); -//=> 'function' - -kindOf(function * () {}); -//=> 'function' - -kindOf(new Function()); -//=> 'function' - -kindOf(new Map()); -//=> 'map' - -kindOf(new WeakMap()); -//=> 'weakmap' - -kindOf(new Set()); -//=> 'set' - -kindOf(new WeakSet()); -//=> 'weakset' - -kindOf(Symbol('str')); -//=> 'symbol' - -kindOf(new Int8Array()); -//=> 'int8array' - -kindOf(new Uint8Array()); -//=> 'uint8array' - -kindOf(new Uint8ClampedArray()); -//=> 'uint8clampedarray' - -kindOf(new Int16Array()); -//=> 'int16array' - -kindOf(new Uint16Array()); -//=> 'uint16array' - -kindOf(new Int32Array()); -//=> 'int32array' - -kindOf(new Uint32Array()); -//=> 'uint32array' - -kindOf(new Float32Array()); -//=> 'float32array' - -kindOf(new Float64Array()); -//=> 'float64array' -``` - -## Benchmarks - -Benchmarked against [typeof](http://github.com/CodingFu/typeof) and [type-of](https://github.com/ForbesLindesay/type-of). -Note that performaces is slower for es6 features `Map`, `WeakMap`, `Set` and `WeakSet`. - -```bash -#1: array - current x 23,329,397 ops/sec ±0.82% (94 runs sampled) - lib-type-of x 4,170,273 ops/sec ±0.55% (94 runs sampled) - lib-typeof x 9,686,935 ops/sec ±0.59% (98 runs sampled) - -#2: boolean - current x 27,197,115 ops/sec ±0.85% (94 runs sampled) - lib-type-of x 3,145,791 ops/sec ±0.73% (97 runs sampled) - lib-typeof x 9,199,562 ops/sec ±0.44% (99 runs sampled) - -#3: date - current x 20,190,117 ops/sec ±0.86% (92 runs sampled) - lib-type-of x 5,166,970 ops/sec ±0.74% (94 runs sampled) - lib-typeof x 9,610,821 ops/sec ±0.50% (96 runs sampled) - -#4: function - current x 23,855,460 ops/sec ±0.60% (97 runs sampled) - lib-type-of x 5,667,740 ops/sec ±0.54% (100 runs sampled) - lib-typeof x 10,010,644 ops/sec ±0.44% (100 runs sampled) - -#5: null - current x 27,061,047 ops/sec ±0.97% (96 runs sampled) - lib-type-of x 13,965,573 ops/sec ±0.62% (97 runs sampled) - lib-typeof x 8,460,194 ops/sec ±0.61% (97 runs sampled) - -#6: number - current x 25,075,682 ops/sec ±0.53% (99 runs sampled) - lib-type-of x 2,266,405 ops/sec ±0.41% (98 runs sampled) - lib-typeof x 9,821,481 ops/sec ±0.45% (99 runs sampled) - -#7: object - current x 3,348,980 ops/sec ±0.49% (99 runs sampled) - lib-type-of x 3,245,138 ops/sec ±0.60% (94 runs sampled) - lib-typeof x 9,262,952 ops/sec ±0.59% (99 runs sampled) - -#8: regex - current x 21,284,827 ops/sec ±0.72% (96 runs sampled) - lib-type-of x 4,689,241 ops/sec ±0.43% (100 runs sampled) - lib-typeof x 8,957,593 ops/sec ±0.62% (98 runs sampled) - -#9: string - current x 25,379,234 ops/sec ±0.58% (96 runs sampled) - lib-type-of x 3,635,148 ops/sec ±0.76% (93 runs sampled) - lib-typeof x 9,494,134 ops/sec ±0.49% (98 runs sampled) - -#10: undef - current x 27,459,221 ops/sec ±1.01% (93 runs sampled) - lib-type-of x 14,360,433 ops/sec ±0.52% (99 runs sampled) - lib-typeof x 23,202,868 ops/sec ±0.59% (94 runs sampled) -``` - -## Optimizations - -In 7 out of 8 cases, this library is 2x-10x faster than other top libraries included in the benchmarks. There are a few things that lead to this performance advantage, none of them hard and fast rules, but all of them simple and repeatable in almost any code library: - -1. Optimize around the fastest and most common use cases first. Of course, this will change from project-to-project, but I took some time to understand how and why `typeof` checks were being used in my own libraries and other libraries I use a lot. -2. Optimize around bottlenecks - In other words, the order in which conditionals are implemented is significant, because each check is only as fast as the failing checks that came before it. Here, the biggest bottleneck by far is checking for plain objects (an object that was created by the `Object` constructor). I opted to make this check happen by process of elimination rather than brute force up front (e.g. by using something like `val.constructor.name`), so that every other type check would not be penalized it. -3. Don't do uneccessary processing - why do `.slice(8, -1).toLowerCase();` just to get the word `regex`? It's much faster to do `if (type === '[object RegExp]') return 'regex'` - -## About - -### Related projects - -* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet") -* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number "Returns true if the value is a number. comprehensive tests.") -* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive "Returns `true` if the value is a primitive. ") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Contributors - -| **Commits** | **Contributor**
    | -| --- | --- | -| 49 | [jonschlinkert](https://github.com/jonschlinkert) | -| 2 | [miguelmota](https://github.com/miguelmota) | -| 1 | [dtothefp](https://github.com/dtothefp) | -| 1 | [pdehaan](https://github.com/pdehaan) | - -### Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -### License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/kind-of/blob/master/LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 07, 2016._ \ No newline at end of file diff --git a/node_modules/kind-of/index.js b/node_modules/kind-of/index.js deleted file mode 100644 index 8508386..0000000 --- a/node_modules/kind-of/index.js +++ /dev/null @@ -1,116 +0,0 @@ -var isBuffer = require('is-buffer'); -var toString = Object.prototype.toString; - -/** - * Get the native `typeof` a value. - * - * @param {*} `val` - * @return {*} Native javascript type - */ - -module.exports = function kindOf(val) { - // primitivies - if (typeof val === 'undefined') { - return 'undefined'; - } - if (val === null) { - return 'null'; - } - if (val === true || val === false || val instanceof Boolean) { - return 'boolean'; - } - if (typeof val === 'string' || val instanceof String) { - return 'string'; - } - if (typeof val === 'number' || val instanceof Number) { - return 'number'; - } - - // functions - if (typeof val === 'function' || val instanceof Function) { - return 'function'; - } - - // array - if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) { - return 'array'; - } - - // check for instances of RegExp and Date before calling `toString` - if (val instanceof RegExp) { - return 'regexp'; - } - if (val instanceof Date) { - return 'date'; - } - - // other objects - var type = toString.call(val); - - if (type === '[object RegExp]') { - return 'regexp'; - } - if (type === '[object Date]') { - return 'date'; - } - if (type === '[object Arguments]') { - return 'arguments'; - } - if (type === '[object Error]') { - return 'error'; - } - - // buffer - if (typeof Buffer !== 'undefined' && isBuffer(val)) { - return 'buffer'; - } - - // es6: Map, WeakMap, Set, WeakSet - if (type === '[object Set]') { - return 'set'; - } - if (type === '[object WeakSet]') { - return 'weakset'; - } - if (type === '[object Map]') { - return 'map'; - } - if (type === '[object WeakMap]') { - return 'weakmap'; - } - if (type === '[object Symbol]') { - return 'symbol'; - } - - // typed arrays - if (type === '[object Int8Array]') { - return 'int8array'; - } - if (type === '[object Uint8Array]') { - return 'uint8array'; - } - if (type === '[object Uint8ClampedArray]') { - return 'uint8clampedarray'; - } - if (type === '[object Int16Array]') { - return 'int16array'; - } - if (type === '[object Uint16Array]') { - return 'uint16array'; - } - if (type === '[object Int32Array]') { - return 'int32array'; - } - if (type === '[object Uint32Array]') { - return 'uint32array'; - } - if (type === '[object Float32Array]') { - return 'float32array'; - } - if (type === '[object Float64Array]') { - return 'float64array'; - } - - // must be a plain object - return 'object'; -}; diff --git a/node_modules/kind-of/package.json b/node_modules/kind-of/package.json deleted file mode 100644 index 7b14f12..0000000 --- a/node_modules/kind-of/package.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "kind-of@^3.0.2", - "scope": null, - "escapedName": "kind-of", - "name": "kind-of", - "rawSpec": "^3.0.2", - "spec": ">=3.0.2 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/micromatch" - ] - ], - "_from": "kind-of@>=3.0.2 <4.0.0", - "_id": "kind-of@3.1.0", - "_inCache": true, - "_location": "/kind-of", - "_nodeVersion": "6.7.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/kind-of-3.1.0.tgz_1481093733086_0.6179714468307793" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "kind-of@^3.0.2", - "scope": null, - "escapedName": "kind-of", - "name": "kind-of", - "rawSpec": "^3.0.2", - "spec": ">=3.0.2 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/align-text", - "/is-number", - "/micromatch", - "/randomatic" - ], - "_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.1.0.tgz", - "_shasum": "475d698a5e49ff5e53d14e3e732429dc8bf4cf47", - "_shrinkwrap": null, - "_spec": "kind-of@^3.0.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/micromatch", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/kind-of/issues" - }, - "contributors": [ - { - "name": "David Fox-Powell", - "email": "dtothefp@gmail.com", - "url": "https://dtothefp.github.io/me" - }, - { - "name": "Jon Schlinkert", - "email": "jon.schlinkert@sellside.com", - "url": "http://twitter.com/jonschlinkert" - }, - { - "name": "Miguel Mota", - "email": "miguel@mota.email", - "url": "https://miguelmota.com" - }, - { - "name": "Peter deHaan", - "url": "http://about.me/peterdehaan" - } - ], - "dependencies": { - "is-buffer": "^1.0.2" - }, - "description": "Get the native type of a value.", - "devDependencies": { - "ansi-bold": "^0.1.1", - "benchmarked": "^0.2.5", - "browserify": "^13.1.0", - "glob": "^7.0.5", - "gulp-format-md": "^0.1.9", - "mocha": "^2.5.3", - "type-of": "^2.0.1", - "typeof": "^1.0.0" - }, - "directories": {}, - "dist": { - "shasum": "475d698a5e49ff5e53d14e3e732429dc8bf4cf47", - "tarball": "https://registry.npmjs.org/kind-of/-/kind-of-3.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "eb57ad426b39f25902260f315a1f4ae50d2f760e", - "homepage": "https://github.com/jonschlinkert/kind-of", - "keywords": [ - "arguments", - "array", - "boolean", - "check", - "date", - "function", - "is", - "is-type", - "is-type-of", - "kind", - "kind-of", - "number", - "object", - "of", - "regexp", - "string", - "test", - "type", - "type-of", - "typeof", - "types" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], - "name": "kind-of", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/kind-of.git" - }, - "scripts": { - "prepublish": "browserify -o browser.js -e index.js -s index --bare", - "test": "mocha" - }, - "verb": { - "related": { - "list": [ - "is-glob", - "is-number", - "is-primitive" - ] - }, - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - }, - "reflinks": [ - "verb" - ] - }, - "version": "3.1.0" -} diff --git a/node_modules/lazy-cache/LICENSE b/node_modules/lazy-cache/LICENSE deleted file mode 100644 index 1e49edf..0000000 --- a/node_modules/lazy-cache/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-2016, 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/lazy-cache/README.md b/node_modules/lazy-cache/README.md deleted file mode 100644 index 33b5a4d..0000000 --- a/node_modules/lazy-cache/README.md +++ /dev/null @@ -1,147 +0,0 @@ -# lazy-cache [![NPM version](https://img.shields.io/npm/v/lazy-cache.svg?style=flat)](https://www.npmjs.com/package/lazy-cache) [![NPM downloads](https://img.shields.io/npm/dm/lazy-cache.svg?style=flat)](https://npmjs.org/package/lazy-cache) [![Build Status](https://img.shields.io/travis/jonschlinkert/lazy-cache.svg?style=flat)](https://travis-ci.org/jonschlinkert/lazy-cache) - -> Cache requires to be lazy-loaded when needed. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install lazy-cache --save -``` - -If you use webpack and are experiencing issues, try using [unlazy-loader](https://github.com/doowb/unlazy-loader), a webpack loader that fixes the bug that prevents webpack from working with native javascript getters. - -## Usage - -```js -var utils = require('lazy-cache')(require); -``` - -**Use as a property on `lazy`** - -The module is also added as a property to the `lazy` function -so it can be called without having to call a function first. - -```js -var utils = require('lazy-cache')(require); - -// `npm install glob` -utils('glob'); - -// glob sync -console.log(utils.glob.sync('*.js')); - -// glob async -utils.glob('*.js', function (err, files) { - console.log(files); -}); -``` - -**Use as a function** - -```js -var utils = require('lazy-cache')(require); -var glob = utils('glob'); - -// `glob` is a now a function that may be called when needed -glob().sync('foo/*.js'); -``` - -## Aliases - -An alias may be passed as the second argument if you don't want to use the automatically camel-cased variable name. - -**Example** - -```js -var utils = require('lazy-cache')(require); - -// alias `ansi-yellow` as `yellow` -utils('ansi-yellow', 'yellow'); -console.log(utils.yellow('foo')); -``` - -## Browserify usage - -**Example** - -```js -var utils = require('lazy-cache')(require); -// temporarily re-assign `require` to trick browserify -var fn = require; -require = utils; -// list module dependencies (here, `require` is actually `lazy-cache`) -require('glob'); -require = fn; // restore the native `require` function - -/** - * Now you can use glob with the `utils.glob` variable - */ - -// sync -console.log(utils.glob.sync('*.js')); - -// async -utils.glob('*.js', function (err, files) { - console.log(files.join('\n')); -}); -``` - -## Kill switch - -In certain rare edge cases it may be necessary to unlazy all lazy-cached dependencies (5 reported cases after ~30 million downloads). - -To force lazy-cache to immediately invoke all dependencies, do: - -```js -process.env.UNLAZY = true; -``` - -## Related projects - -You might also be interested in these projects: - -[lint-deps](https://www.npmjs.com/package/lint-deps): CLI tool that tells you when dependencies are missing from package.json and offers you a… [more](https://www.npmjs.com/package/lint-deps) | [homepage](https://github.com/jonschlinkert/lint-deps) - -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/lazy-cache/issues/new). - -## Building docs - -Generate readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install verb && npm run docs -``` - -Or, if [verb](https://github.com/verbose/verb) is installed globally: - -```sh -$ verb -``` - -## Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -## Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/lazy-cache/blob/master/LICENSE). - -*** - -_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 22, 2016._ \ No newline at end of file diff --git a/node_modules/lazy-cache/index.js b/node_modules/lazy-cache/index.js deleted file mode 100644 index da7897d..0000000 --- a/node_modules/lazy-cache/index.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -/** - * Cache results of the first function call to ensure only calling once. - * - * ```js - * var utils = require('lazy-cache')(require); - * // cache the call to `require('ansi-yellow')` - * utils('ansi-yellow', 'yellow'); - * // use `ansi-yellow` - * console.log(utils.yellow('this is yellow')); - * ``` - * - * @param {Function} `fn` Function that will be called only once. - * @return {Function} Function that can be called to get the cached function - * @api public - */ - -function lazyCache(fn) { - var cache = {}; - var proxy = function(mod, name) { - name = name || camelcase(mod); - - // check both boolean and string in case `process.env` cases to string - if (process.env.UNLAZY === 'true' || process.env.UNLAZY === true || process.env.TRAVIS) { - cache[name] = fn(mod); - } - - Object.defineProperty(proxy, name, { - enumerable: true, - configurable: true, - get: getter - }); - - function getter() { - if (cache.hasOwnProperty(name)) { - return cache[name]; - } - return (cache[name] = fn(mod)); - } - return getter; - }; - return proxy; -} - -/** - * Used to camelcase the name to be stored on the `lazy` object. - * - * @param {String} `str` String containing `_`, `.`, `-` or whitespace that will be camelcased. - * @return {String} camelcased string. - */ - -function camelcase(str) { - if (str.length === 1) { - return str.toLowerCase(); - } - str = str.replace(/^[\W_]+|[\W_]+$/g, '').toLowerCase(); - return str.replace(/[\W_]+(\w|$)/g, function(_, ch) { - return ch.toUpperCase(); - }); -} - -/** - * Expose `lazyCache` - */ - -module.exports = lazyCache; diff --git a/node_modules/lazy-cache/package.json b/node_modules/lazy-cache/package.json deleted file mode 100644 index 1cc91ca..0000000 --- a/node_modules/lazy-cache/package.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lazy-cache@^1.0.3", - "scope": null, - "escapedName": "lazy-cache", - "name": "lazy-cache", - "rawSpec": "^1.0.3", - "spec": ">=1.0.3 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/center-align" - ] - ], - "_from": "lazy-cache@>=1.0.3 <2.0.0", - "_id": "lazy-cache@1.0.4", - "_inCache": true, - "_location": "/lazy-cache", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/lazy-cache-1.0.4.tgz_1461378859142_0.0996799839194864" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.6.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lazy-cache@^1.0.3", - "scope": null, - "escapedName": "lazy-cache", - "name": "lazy-cache", - "rawSpec": "^1.0.3", - "spec": ">=1.0.3 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/center-align" - ], - "_resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "_shasum": "a1d78fc3a50474cb80845d3b3b6e1da49a446e8e", - "_shrinkwrap": null, - "_spec": "lazy-cache@^1.0.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/lazy-cache/issues" - }, - "dependencies": {}, - "description": "Cache requires to be lazy-loaded when needed.", - "devDependencies": { - "ansi-yellow": "^0.1.1", - "glob": "^7.0.3", - "gulp-format-md": "^0.1.8", - "mocha": "^2.4.5" - }, - "directories": {}, - "dist": { - "shasum": "a1d78fc3a50474cb80845d3b3b6e1da49a446e8e", - "tarball": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "d081ffbda147391083a6856fafb1c5d82308f80c", - "homepage": "https://github.com/jonschlinkert/lazy-cache", - "keywords": [ - "cache", - "caching", - "dependencies", - "dependency", - "lazy", - "require", - "requires" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], - "name": "lazy-cache", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/lazy-cache.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "related": { - "list": [ - "lint-deps" - ] - }, - "plugins": [ - "gulp-format-md" - ], - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "lint": { - "reflinks": true - }, - "reflinks": [ - "verb" - ] - }, - "version": "1.0.4" -} diff --git a/node_modules/less/.jscsrc b/node_modules/less/.jscsrc deleted file mode 100644 index a576705..0000000 --- a/node_modules/less/.jscsrc +++ /dev/null @@ -1,73 +0,0 @@ -{ - "disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"], - "disallowKeywords": ["with"], - "disallowMixedSpacesAndTabs": true, - "disallowMultipleLineBreaks": true, - "disallowOperatorBeforeLineBreak": ["."], - "disallowSpaceAfterKeywords": [ - "void"//, - //"typeof" - ], - "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~"], - "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], - "disallowSpacesInCallExpression": true, - "disallowSpacesInNamedFunctionExpression": { - "beforeOpeningRoundBrace": true}, - "disallowTrailingComma": true, - "disallowTrailingWhitespace": true, - "maximumLineLength": 160, - "requireCommaBeforeLineBreak": true, - "requireCurlyBraces": [ "if", - "else", - "for", - "while", - "do", - "try", - "catch"], - "requireOperatorBeforeLineBreak": [ "?", - "=", - "+", - "-", - "/", - "*", - "==", - "===", - "!=", - "!==", - ">", - ">=", - "<", - "<="], - "requireSpaceAfterBinaryOperators": true, - "requireSpaceAfterKeywords": [ - "else", - "case", - "try", - "typeof", - "return", - "if", - "for", - "while", - "do" - ], - "requireSpaceBeforeBlockStatements": true, - "requireSpaceBeforeBinaryOperators": [ - "=", - "+", - "-", - "/", - "*", - "==", - "===", - "!=", - "!==" - ], - "requireSpaceBeforeBlockStatements": true, - "requireSpaceBetweenArguments": true, - "requireSpacesInConditionalExpression": true, - "requireSpacesInForStatement": true, - "requireSpacesInNamedFunctionExpression": { - "beforeOpeningCurlyBrace": true - }, - "validateIndentation": 4 -} \ No newline at end of file diff --git a/node_modules/less/.jshintrc b/node_modules/less/.jshintrc deleted file mode 100644 index c189e87..0000000 --- a/node_modules/less/.jshintrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "evil": true, - "latedef": true, - "node": true, - "undef": true, - "unused": "vars", - "noarg": true, - "eqnull": true, - "forin": true, - "predef": ["Promise"] -} diff --git a/node_modules/less/.npmignore b/node_modules/less/.npmignore deleted file mode 100644 index 744f6a0..0000000 --- a/node_modules/less/.npmignore +++ /dev/null @@ -1,9 +0,0 @@ -.gitattributes -build/ -.grunt/ -benchmark/ -test/ -# re-include test files as they can be useful for plugins that do testing -!test/*.js -tmp/ -gradle/ diff --git a/node_modules/less/.travis.yml b/node_modules/less/.travis.yml deleted file mode 100644 index 238fb88..0000000 --- a/node_modules/less/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: node_js -node_js: - - "6" - - "4" - - "0.12" - - "0.10" -install: - - npm install -g grunt-cli - - npm install -env: - global: - - PHANTOMJS_CDNURL=http://cnpmjs.org/downloads - - secure: TrNVruWYaUK5ALga1y7wRY+MLjWJECUSCsBmKW5EUmIevOUxqHWu7M89FANKxstEeFRRAGH3QJbloRxnzIgh0U0ah5npE9XA1bYXGO5khoXeIyk7pNRfjIo8aEnJH1Vp8vWA6J6ovxdJ7lCFKEGvGKxGde50knVl7KFVVULlX2U= - - secure: Rzh+CEI7YRvvVkOruPE8Z0dkU0s13V6b6cpqbN72vxbJl/Jm5PUZkjTFJdkWJrW3ErhCKX6EC7XdGvrclqEA9WAqKzrecqCJYqTnw4MwqiAj6F9wqE/BqhoWg4xPxm0MK/7eJMvLCgjNpe+gc1CaeFJZkLSNWn6nOFke+vVlf9Q= -sudo: false diff --git a/node_modules/less/CHANGELOG.md b/node_modules/less/CHANGELOG.md deleted file mode 100644 index 2f7cf17..0000000 --- a/node_modules/less/CHANGELOG.md +++ /dev/null @@ -1,589 +0,0 @@ -# 2.7.1 HOTFIX - -2016-05-09 - - - Revert commit 470af20 (source map performance) which broke source maps - -# 2.7.0 - -2016-05-07 - - - Fixes for contrast() function - - Allow root functions for plugins - - Allow semi-colon separators in functions - - Performance improvements for source maps - - Fix "blank page" issue in browser - - Compatibility fixes for Node 6.x - - Fix AST to include single-line comments - - Fix reversion for "color-like" words (outputting color values) - -# 2.6.1 - -2016-03-04 - - - Update Less.js dependencies - - Fix comments after named color regression - - use instanceof operator instead of class comparison optimization - - disallow whitespace in variable calls - -# 2.6.0 - -2016-01-29 - - - Underscore now allowed in dimension unit - - Fixes for import by reference - - Fix for #2384 Changes HTTPRequest "sync" setting to simply hide the page until less has rendered, browser version is now orders of magnitude faster. - - Added ability to cache stylesheets while using modifyVars - - Error when when image-size functions are used in browser-less - - Fixed extend leaking through nested parent selector. #2586 - - Added "or" keyword and allowed arbitrary logical expression in guards - - Fixing #2124 - Parsing Error "Unrecognised input" for color operations - - Logical operator ```and``` now has higher precedence than logical operator ```or```. - - Allow unknown at-rules w/o {} block - -# 2.5.3 - -2015-09-25 - - - Fix import inline a URL - -# 2.5.2 - -2015-09-24 - - - No output should result in an empty sourcemap - - Import inline located inside file imported by reference should not be present in output - - Shorthand colors will stay shorthand - - Make percentage work like other math functions and throw an error on NaN - - Fixed mixin definition matching problem when mixin definition contains parameters with default values - - Observe reference for imported comments - -# 2.5.1 - -2015-05-21 - - - Fix problems with less being async in some browsers - - Minor fix only likely to affect programmatic usage of ruleset find - - Fix error when a namespaced mixin is invoked in global scope - -# 2.5.0 - -2015-04-03 - - - supports the scoped `@plugin` directive to load function plugins - - All directives are bubbled (e.g. supports), not just media - - Performance improvements to the parser - should help non-chrome browsers with very large less files to be a lot quicker. - - the image size function respects include paths like other file functions - - colour functions take a relative argument that applies percentages relatively instead of absolutely - - include paths now allows : as a separator on windows (recognising and not splitting drive names by the backslash) - - `@import (css)` does not pull the directive above comments - - Fix for import statements without quotes sometimes causing issues - - replace supports dimensions and colours - - the browser field is set in the package.json for use with browserify - - another fix to support paths being passed as a string instead of an array - - detached rulesets can be used as default arguments - - Fix a lot of false warnings about extends - - errors written to stderr more consistently - - consistently keep units if strict units is off - - Better support for comments in function all arguments - -# 2.4.0 - -2015-02-07 - - - Support for plugins that pre-process (to add libraries silently etc.) - - Empty sourcemaps now work - - Extract and Length functions now ignore comments in a list (more work to come to fix the general problem) - - fragment urls are treated absolute since they refer to the html document - - Extends on a selector joined with `&` now work better - - Nested mixins work better with !important (regression in 2.3.0) - - The promise dependency is now actually optional (introduced in 2.0.0) - - Files with just `\r` newlines now process ok (regression in 2.0.0) - - When strict units is off and the unit is 1/x, (e.g. 1 / 12px) the unit output is x, previously nothing (regression in 2.0.0) - -# 2.3.1 - -2015-01-28 - - - Fix depends option (regression in 2.3.0) - - Support parent selector (`&`) used in sub element expression (e.g. `:not(.c_&)`) - -# 2.3.0 - -2015-01-27 - - - add `isruleset` function - - add optional import option, causing less to not fail if file not found - - Fix browsers-side cache. - - Many fixes to import reference - support `@support` and keyframe - - Selectors now interpolate pseudo selectors (e.g. `:@{hover}`) - - Fix comments missed off if they were at the end of the file - - Fix !important used with parametric mixins - - Emits warnings for extends when the target is not found - - include-path now works on data-uri - - variables and function calls work for path in data-uri - - Fix absolute paths not working on imports sometimes. - - Unicode BOM removed again - - Misc. bug fixes - -# 2.2.0 - -2015-01-04 - - - do not apply relative paths to svg-gradient and data-uri functions data-uri output - - using import filename interpolation and import inline together now works - - deprecate the compression option (still works, but outputs a warning unless silent) - - The node version of less now has image-size, image-width, image-height which return the image dimensions of a file - - Fixed an issue that could cause the parse to occur more than once and the callback be called multiple times - - if you are outputting to the console, lessc defaults to silent so warnings do not end up in output - - `isunit` function supports `''` to test if a dimension has no unit - - data-uri function now counts characters after base64 encoding instead of bytes before encoding to determine ie8 support - - fix bug effecting guards on pseudo class selectors - - do not cache on the browser when used with modifyVars - - detection if less does not parse last character in file - - detection of whether a file is css now requires `/css`, `.css`, `?css`, `&css` instead of just `css`. You can still tell less the type of file using import options. - - remove extra new line added to sourcemap entry inline file - - support safari extension - - less.parse now exposes a way to get the AST. We do not recommend you use this unless you need to. - -# 2.1.2 - -2014-12-20 - - - Fix for use with requirejs - - Fixes for data-uri function - -# 2.1.1 - -2014-11-27 - - - Improved keyword and anonymous usage with the replace function - - Added `getCSSAppendage` to sourcemap builder to avoid duplication in plugins - - Fix problem with plugins when used with the promises version of render - - If the render callback throws an exception it now propagates instead of calling the callback again with an error - -# 2.1.0 - -2014-11-23 - - - Fixed `isSync` option, it was using sync file operations but promises are guaranteed to call back async. We now support promises as a feature rather than the 1st class way of doing things. - - Browser code is now synchronous again, like in v1, meaning it blocks the site until less is compiled - - Some fixes for variable imports which affected filemanagers when synchronous - - Fixed lessc makefile dependencies option - - output now reports back a imports field with an array of imported files - - relative path test for drive names (so windows only) is now case insensitive - - Fix for IE7 - use getChar instead of indexing array - - variables using !important now output !important, which bubbles up to affect the rule - - livereload cache buster is now treated specially - - upgrade dependencies - -# 2.0.0 - -2014-11-09 - - - Fixed multiplication in non strict units mode to take the left operand unit, in the case that the unit cannot be resolved - - Some fixes for browser cross-compatibility - - browser tests now pass in IE 8-11 and FF - - added index.js and browser.js in root as shortcuts - - fixed some local variable spellings - - support for `@counter-style` directive - -# 2.0.0-b3 - -2014-11-01 - - - some refactoring of browser structure to allow use of api vs normal browser bundle - - browser bundle no longer leaks require - - browser can now be scoped with just window - - browser `useFileCache` defaults to `true`, but file cache is now cleared when refreshing or in watch mode - -# 2.0.0-b2 - -2014-10-26 - - - Imports are now sequenced and so are consistent (previously some complex projects might end up with occasional different orderings) - - Imports with variables are better supported - variables can be specified in sub imports - - Support for rebeccapurple - - Browser can now accept options as attributes on the script tag and the link tags e.g. ` - <% }); }; %> - - - <% var toArray = function(scripts) { - %>[<% - scripts.forEach(function(scriptUrl, index){ - %>"<%= scriptUrl %>"<% - if (index !== scripts.length -1) { - %>,<% - } - }); - %>]<% - }; %> - - - <% scripts.src.forEach(function(fullLessName) { - var pathParts = fullLessName.split('/'); - var fullCssName = fullLessName.replace(/less/g, 'css'); - var lessName = pathParts[pathParts.length - 1]; - var name = lessName.split('.')[0]; %> - - - - <% }); %> - - - <% css.forEach(function(style){ %> - - <% }) %> - - - - - - - - diff --git a/node_modules/less/test/copy-bom.js b/node_modules/less/test/copy-bom.js deleted file mode 100644 index c806381..0000000 --- a/node_modules/less/test/copy-bom.js +++ /dev/null @@ -1,72 +0,0 @@ -/*jshint latedef: nofunc */ - -// This is used to copy a folder (the test/less/* files & sub-folders), adding a BOM to the start of each LESS and CSS file. -// This is a based on the copySync method from fs-extra (https://github.com/jprichardson/node-fs-extra/). - -module.exports = function() { - var path = require('path'), - fs = require('fs'); - - var BUF_LENGTH = 64 * 1024; - var _buff = new Buffer(BUF_LENGTH); - - function copyFolderWithBom(src, dest) { - var stats = fs.lstatSync(src); - var destFolder = path.dirname(dest); - var destFolderExists = fs.existsSync(destFolder); - var performCopy = false; - - if (stats.isFile()) { - if (!destFolderExists) { - fs.mkdirSync(destFolder); - } - if (src.match(/\.(css|less)$/)) { - copyFileAddingBomSync(src, dest); - } else { - copyFileSync(src, dest); - } - } - else if (stats.isDirectory()) { - if (!fs.existsSync(destFolder)) { - fs.mkdirSync(destFolder); - } - if (!fs.existsSync(dest)) { - fs.mkdirSync(dest); - } - fs.readdirSync(src).forEach(function(d) { - if (d !== 'bom') { - copyFolderWithBom(path.join(src, d), path.join(dest, d)); - } - }); - } - } - - function copyFileAddingBomSync(srcFile, destFile) { - var contents = fs.readFileSync(srcFile, { encoding: 'utf8' }); - if (!contents.length || contents.charCodeAt(0) !== 0xFEFF) { - contents = '\ufeff' + contents; - } - fs.writeFileSync(destFile, contents, { encoding: 'utf8' }); - } - - function copyFileSync(srcFile, destFile) { - var fdr = fs.openSync(srcFile, 'r'); - var stat = fs.fstatSync(fdr); - var fdw = fs.openSync(destFile, 'w', stat.mode); - var bytesRead = 1; - var pos = 0; - - while (bytesRead > 0) { - bytesRead = fs.readSync(fdr, _buff, 0, BUF_LENGTH, pos) - fs.writeSync(fdw, _buff, 0, bytesRead); - pos += bytesRead; - } - - fs.closeSync(fdr); - fs.closeSync(fdw); - } - - return { - copyFolderWithBom: copyFolderWithBom - }; -}; diff --git a/node_modules/less/test/css/charsets.css b/node_modules/less/test/css/charsets.css deleted file mode 100644 index 9f44090..0000000 --- a/node_modules/less/test/css/charsets.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8"; diff --git a/node_modules/less/test/css/colors.css b/node_modules/less/test/css/colors.css deleted file mode 100644 index 08a22ab..0000000 --- a/node_modules/less/test/css/colors.css +++ /dev/null @@ -1,87 +0,0 @@ -#yelow #short { - color: #fea; -} -#yelow #long { - color: #ffeeaa; -} -#yelow #rgba { - color: rgba(255, 238, 170, 0.1); -} -#yelow #argb { - color: #1affeeaa; -} -#blue #short { - color: #00f; -} -#blue #long { - color: #0000ff; -} -#blue #rgba { - color: rgba(0, 0, 255, 0.1); -} -#blue #argb { - color: #1a0000ff; -} -#alpha #hsla { - color: rgba(61, 45, 41, 0.6); -} -#overflow .a { - color: #000000; -} -#overflow .b { - color: #ffffff; -} -#overflow .c { - color: #ffffff; -} -#overflow .d { - color: #00ff00; -} -#overflow .e { - color: rgba(0, 31, 255, 0.42); -} -#grey { - color: #c8c8c8; -} -#333333 { - color: #333333; -} -#808080 { - color: #808080; -} -#00ff00 { - color: #00ff00; -} -.lightenblue { - color: #3333ff; -} -.darkenblue { - color: #0000cc; -} -.unknowncolors { - color: blue2; - border: 2px solid superred; -} -.transparent { - color: transparent; - background-color: rgba(0, 0, 0, 0); -} -#alpha #fromvar { - opacity: 0.7; -} -#alpha #short { - opacity: 1; -} -#alpha #long { - opacity: 1; -} -#alpha #rgba { - opacity: 0.2; -} -#alpha #hsl { - opacity: 1; -} -#percentage { - color: 255; - border-color: rgba(255, 0, 0, 0.5); -} diff --git a/node_modules/less/test/css/comments.css b/node_modules/less/test/css/comments.css deleted file mode 100644 index c8475cd..0000000 --- a/node_modules/less/test/css/comments.css +++ /dev/null @@ -1,83 +0,0 @@ -/******************\ -* * -* Comment Header * -* * -\******************/ -/* - - Comment - -*/ -/* - * Comment Test - * - * - cloudhead (http://cloudhead.net) - * - */ -/* Colors - * ------ - * #EDF8FC (background blue) - * #166C89 (darkest blue) - * - * Text: - * #333 (standard text) // A comment within a comment! - * #1F9EC9 (standard link) - * - */ -/* @group Variables -------------------- */ -#comments, -.comments { - /**/ - color: red; - /* A C-style comment */ - /* A C-style comment */ - background-color: orange; - font-size: 12px; - /* lost comment */ - content: "content"; - border: 1px solid black; - padding: 0; - margin: 2em; -} -/* commented out - #more-comments { - color: grey; - } -*/ -.selector, -.lots, -.comments { - color: grey, /* blue */ orange; - -webkit-border-radius: 2px /* webkit only */; - -moz-border-radius: 8px /* moz only with operation */; -} -.test { - color: 1px; -} -.sr-only-focusable { - clip: auto; -} -@-webkit-keyframes hover { - /* and Chrome */ - 0% { - color: red; - } -} -#last { - color: blue; -} -/* */ -/* { */ -/* */ -/* */ -/* */ -#div { - color: #A33; -} -/* } */ -/*by block */ -#output-block { - comment: /* // Not commented out // */; -} -/*comment on last line*/ diff --git a/node_modules/less/test/css/comments2.css b/node_modules/less/test/css/comments2.css deleted file mode 100644 index 9fcbd46..0000000 --- a/node_modules/less/test/css/comments2.css +++ /dev/null @@ -1,18 +0,0 @@ -@-webkit-keyframes hover { - /* Safari and Chrome */ -} -.bg { - background-image: linear-gradient(#333 /*{comment}*/, #111); -} -#planadvisor, -.first, -.planning { - margin: 10px; - total-width: (1 * 6em * 12) + (2em * 12); -} -.some-inline-comments { - a: yes /* comment */; - b: red /* comment */; - c: yes /* comment */; - d: red /* comment */; -} diff --git a/node_modules/less/test/css/compression/compression.css b/node_modules/less/test/css/compression/compression.css deleted file mode 100644 index 28fcd9e..0000000 --- a/node_modules/less/test/css/compression/compression.css +++ /dev/null @@ -1,3 +0,0 @@ -#colours{color1:#fea;color2:#ffeeaa;color3:rgba(255,238,170,0.1);string:"#fea";/*! but not this type - Note preserved whitespace - */}dimensions{val:.1px;val:0;val:4cm;val:.2;val:5;angles-must-have-unit:0deg;durations-must-have-unit:0s;length-doesnt-have-unit:0;width:auto\9}@page{marks:none;@top-left-corner{vertical-align:top}@top-left{vertical-align:top}}.shadow^.dom,body^^.shadow{display:done} \ No newline at end of file diff --git a/node_modules/less/test/css/css-3.css b/node_modules/less/test/css/css-3.css deleted file mode 100644 index 5aafe04..0000000 --- a/node_modules/less/test/css/css-3.css +++ /dev/null @@ -1,157 +0,0 @@ -.comma-delimited { - text-shadow: -1px -1px 1px red, 6px 5px 5px yellow; - -moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset, 0pt 4px 6px rgba(255, 255, 255, 0.4) inset; - -webkit-transform: rotate(0deg); -} -@font-face { - font-family: Headline; - unicode-range: U+??????, U+0???, U+0-7F, U+A5; -} -.other { - -moz-transform: translate(0, 11em) rotate(-90deg); - transform: rotateX(45deg); -} -.item[data-cra_zy-attr1b-ut3=bold] { - font-weight: bold; -} -p:not([class*="lead"]) { - color: black; -} -input[type="text"].class#id[attr=32]:not(1) { - color: white; -} -div#id.class[a=1][b=2].class:not(1) { - color: white; -} -ul.comma > li:not(:only-child)::after { - color: white; -} -ol.comma > li:nth-last-child(2)::after { - color: white; -} -li:nth-child(4n+1), -li:nth-child(-5n), -li:nth-child(-n+2) { - color: white; -} -a[href^="http://"] { - color: black; -} -a[href$="http://"] { - color: black; -} -form[data-disabled] { - color: black; -} -p::before { - color: black; -} -#issue322 { - -webkit-animation: anim2 7s infinite ease-in-out; -} -@-webkit-keyframes frames { - 0% { - border: 1px; - } - 5.5% { - border: 2px; - } - 100% { - border: 3px; - } -} -@keyframes fontbulger1 { - to { - font-size: 15px; - } - from, - to { - font-size: 12px; - } - 0%, - 100% { - font-size: 12px; - } -} -.units { - font: 1.2rem/2rem; - font: 8vw/9vw; - font: 10vh/12vh; - font: 12vm/15vm; - font: 12vmin/15vmin; - font: 1.2ch/1.5ch; -} -@supports ( box-shadow: 2px 2px 2px black ) or - ( -moz-box-shadow: 2px 2px 2px black ) { - .outline { - box-shadow: 2px 2px 2px black; - -moz-box-shadow: 2px 2px 2px black; - } -} -@-x-document url-prefix(""github.com"") { - h1 { - color: red; - } -} -@viewport { - font-size: 10px; -} -@namespace foo url(http://www.example.com); -foo|h1 { - color: blue; -} -foo|* { - color: yellow; -} -|h1 { - color: red; -} -*|h1 { - color: green; -} -h1 { - color: green; -} -.upper-test { - UpperCaseProperties: allowed; -} -@host { - div { - display: block; - } -} -::distributed(input::placeholder) { - color: #b3b3b3; -} -.shadow ^ .dom, -body ^^ .shadow { - display: done; -} -:host(.sel .a), -:host-context(.sel .b), -.sel /deep/ .b, -::content .sel { - type: shadow-dom; -} - /deep/ b { - c: 'd'; -} - /deep/ b[e] { - f: 'g'; -} -#issue2066 { - background: url('/images/icon-team.svg') 0 0 / contain; -} -@counter-style triangle { - system: cyclic; - symbols: ‣; - suffix: " "; -} -@-ms-viewport { -} -@unknown foo 42 (bar) { - x { - y: z; - } -} -@unknown foo 43; diff --git a/node_modules/less/test/css/css-escapes.css b/node_modules/less/test/css/css-escapes.css deleted file mode 100644 index 4ebecfe..0000000 --- a/node_modules/less/test/css/css-escapes.css +++ /dev/null @@ -1,24 +0,0 @@ -.escape\|random\|char { - color: red; -} -.mixin\!tUp { - font-weight: bold; -} -.\34 04 { - background: red; -} -.\34 04 strong { - color: fuchsia; - font-weight: bold; -} -.trailingTest\+ { - color: red; -} -/* This hideous test of hideousness checks for the selector "blockquote" with various permutations of hex escapes */ -\62\6c\6f \63 \6B \0071 \000075o\74 e { - color: silver; -} -[ng\:cloak], -ng\:form { - display: none; -} diff --git a/node_modules/less/test/css/css-guards.css b/node_modules/less/test/css/css-guards.css deleted file mode 100644 index f4b8a10..0000000 --- a/node_modules/less/test/css/css-guards.css +++ /dev/null @@ -1,37 +0,0 @@ -.light { - color: green; -} -.see-the { - color: green; -} -.hide-the { - color: green; -} -.multiple-conditions-1 { - color: red; -} -.inheritance .test { - color: black; -} -.inheritance:hover { - color: pink; -} -.clsWithGuard { - dispaly: none; -} -.dont-split-me-up { - width: 1px; - color: red; - height: 1px; -} - + .dont-split-me-up { - sibling: true; -} -.scope-check { - sub-prop: 2px; - prop: 1px; -} -.scope-check-2 { - sub-prop: 2px; - prop: 1px; -} diff --git a/node_modules/less/test/css/css.css b/node_modules/less/test/css/css.css deleted file mode 100644 index 4fb5797..0000000 --- a/node_modules/less/test/css/css.css +++ /dev/null @@ -1,95 +0,0 @@ -@charset "utf-8"; -div { - color: black; -} -div { - width: 99%; -} -* { - min-width: 45em; -} -h1, -h2 > a > p, -h3 { - color: none; -} -div.class { - color: blue; -} -div#id { - color: green; -} -.class#id { - color: purple; -} -.one.two.three { - color: grey; -} -@media print { - * { - font-size: 3em; - } -} -@media screen { - * { - font-size: 10px; - } -} -@font-face { - font-family: 'Garamond Pro'; -} -a:hover, -a:link { - color: #999; -} -p, -p:first-child { - text-transform: none; -} -q:lang(no) { - quotes: none; -} -p + h1 { - font-size: 2.2em; -} -#shorthands { - border: 1px solid #000; - font: 12px/16px Arial; - font: 100%/16px Arial; - margin: 1px 0; - padding: 0 auto; -} -#more-shorthands { - margin: 0; - padding: 1px 0 2px 0; - font: normal small / 20px 'Trebuchet MS', Verdana, sans-serif; - font: 0/0 a; - border-radius: 5px / 10px; -} -.misc { - -moz-border-radius: 2px; - display: -moz-inline-stack; - width: .1em; - background-color: #009998; - background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue)); - margin: ; - filter: alpha(opacity=100); - width: auto\9; -} -.misc .nested-multiple { - multiple-semi-colons: yes; -} -#important { - color: red !important; - width: 100%!important; - height: 20px ! important; -} -@font-face { - font-family: font-a; -} -@font-face { - font-family: font-b; -} -.æøå { - margin: 0; -} diff --git a/node_modules/less/test/css/debug/linenumbers-all.css b/node_modules/less/test/css/debug/linenumbers-all.css deleted file mode 100644 index eabeb41..0000000 --- a/node_modules/less/test/css/debug/linenumbers-all.css +++ /dev/null @@ -1,50 +0,0 @@ -@charset "UTF-8"; -/* line 1, {pathimport}test.less */ -@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000031}} -/* @charset "ISO-8859-1"; */ - -/* line 23, {pathimport}test.less */ -@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\0000323}} -.tst3 { - color: grey; -} -/* line 15, {path}linenumbers.less */ -@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000315}} -.test1 { - color: black; -} -/* line 6, {path}linenumbers.less */ -@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\000036}} -.test2 { - color: red; -} -@media all { - /* line 5, {pathimport}test.less */ - @media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000035}} - .tst { - color: black; - } -} -@media all and screen { - /* line 7, {pathimport}test.less */ - @media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000037}} - .tst { - color: red; - } - /* line 9, {pathimport}test.less */ - @media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000039}} - .tst .tst3 { - color: white; - } -} -/* line 18, {pathimport}test.less */ -@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\0000318}} -.tst2 { - color: white; -} -/* line 27, {path}linenumbers.less */ -@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000327}} -.test { - color: red; - width: 2; -} diff --git a/node_modules/less/test/css/debug/linenumbers-comments.css b/node_modules/less/test/css/debug/linenumbers-comments.css deleted file mode 100644 index a00fd7f..0000000 --- a/node_modules/less/test/css/debug/linenumbers-comments.css +++ /dev/null @@ -1,41 +0,0 @@ -@charset "UTF-8"; -/* line 1, {pathimport}test.less */ -/* @charset "ISO-8859-1"; */ - -/* line 23, {pathimport}test.less */ -.tst3 { - color: grey; -} -/* line 15, {path}linenumbers.less */ -.test1 { - color: black; -} -/* line 6, {path}linenumbers.less */ -.test2 { - color: red; -} -@media all { - /* line 5, {pathimport}test.less */ - .tst { - color: black; - } -} -@media all and screen { - /* line 7, {pathimport}test.less */ - .tst { - color: red; - } - /* line 9, {pathimport}test.less */ - .tst .tst3 { - color: white; - } -} -/* line 18, {pathimport}test.less */ -.tst2 { - color: white; -} -/* line 27, {path}linenumbers.less */ -.test { - color: red; - width: 2; -} diff --git a/node_modules/less/test/css/debug/linenumbers-mediaquery.css b/node_modules/less/test/css/debug/linenumbers-mediaquery.css deleted file mode 100644 index 11cdd24..0000000 --- a/node_modules/less/test/css/debug/linenumbers-mediaquery.css +++ /dev/null @@ -1,41 +0,0 @@ -@charset "UTF-8"; -@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000031}} -/* @charset "ISO-8859-1"; */ - -@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\0000323}} -.tst3 { - color: grey; -} -@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000315}} -.test1 { - color: black; -} -@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\000036}} -.test2 { - color: red; -} -@media all { - @media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000035}} - .tst { - color: black; - } -} -@media all and screen { - @media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000037}} - .tst { - color: red; - } - @media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000039}} - .tst .tst3 { - color: white; - } -} -@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\0000318}} -.tst2 { - color: white; -} -@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000327}} -.test { - color: red; - width: 2; -} diff --git a/node_modules/less/test/css/detached-rulesets.css b/node_modules/less/test/css/detached-rulesets.css deleted file mode 100644 index fdd1035..0000000 --- a/node_modules/less/test/css/detached-rulesets.css +++ /dev/null @@ -1,76 +0,0 @@ -.wrap-selector { - color: black; - one: 1px; - four: magic-frame; - visible-one: visible; - visible-two: visible; -} -.wrap-selector { - color: red; - visible-one: visible; - visible-two: visible; -} -.wrap-selector { - color: black; - background: white; - visible-one: visible; - visible-two: visible; -} -header { - background: blue; -} -@media screen and (min-width: 1200) { - header { - background: red; - } -} -html.lt-ie9 header { - background: red; -} -.wrap-selector { - test: extra-wrap; - visible-one: visible; - visible-two: visible; -} -.wrap-selector .wrap-selector { - test: wrapped-twice; - visible-one: visible; - visible-two: visible; -} -.wrap-selector { - test-func: 90; - test-arithmetic: 18px; - visible-one: visible; - visible-two: visible; -} -.without-mixins { - b: 1; -} -@media (orientation: portrait) and tv { - .my-selector { - background-color: black; - } -} -@media (orientation: portrait) and widescreen and print and tv { - .triple-wrapped-mq { - triple: true; - } -} -@media (orientation: portrait) and widescreen and tv { - .triple-wrapped-mq { - triple: true; - } -} -@media (orientation: portrait) and tv { - .triple-wrapped-mq { - triple: true; - } -} -.a { - test: test; -} -.argument-default { - default: works; - direct: works; - named: works; -} diff --git a/node_modules/less/test/css/directives-bubling.css b/node_modules/less/test/css/directives-bubling.css deleted file mode 100644 index 4f5254b..0000000 --- a/node_modules/less/test/css/directives-bubling.css +++ /dev/null @@ -1,119 +0,0 @@ -.parent { - color: green; -} -@document url-prefix() { - .parent .child { - color: red; - } -} -@supports (sandwitch: butter) { - .inside .top { - property: value; - } -} -@supports (sandwitch: bread) { - .in1 .in2 { - property: value; - } -} -@supports (sandwitch: ham) { - .inside .top { - property: value; - } -} -@supports (font-family: weirdFont) { - @font-face { - font-family: something; - src: made-up-url; - } -} -@font-face { - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - font-family: something; - src: made-up-url; - } -} -@supports (property: value) { - @media (max-size: 2px) { - @supports (whatever: something) { - .outOfMedia { - property: value; - } - } - } -} -@supports (property: value) { - @media (max-size: 2px) { - @supports (whatever: something) { - .onTop { - property: value; - } - } - } -} -@media print { - html { - in-html: visible; - } - @supports (upper: test) { - html { - in-supports: first; - } - html div { - in-div: visible; - } - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - html div { - in-supports: second; - } - @media screen { - html div { - font-weight: 400; - } - html div nested { - property: value; - } - } - } - } -} -@media print and (max-size: 2px) { - .in1 { - stay: here; - } - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - @supports (whatever: something) { - .in2 .in1 { - property: value; - } - } - } -} -html { - font-weight: 300; - -webkit-font-smoothing: subpixel-antialiased; -} -@supports not (-webkit-font-smoothing: subpixel-antialiased) { - html { - font-weight: 400; - } - html nested { - property: value; - } -} -.onTop { - animation: "textscale"; - font-family: something; -} -@font-face { - font-family: something; - src: made-up-url; -} -@keyframes "textscale" { - 0% { - font-size: 1em; - } - 100% { - font-size: 2em; - } -} diff --git a/node_modules/less/test/css/empty.css b/node_modules/less/test/css/empty.css deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/less/test/css/extend-chaining.css b/node_modules/less/test/css/extend-chaining.css deleted file mode 100644 index 820e134..0000000 --- a/node_modules/less/test/css/extend-chaining.css +++ /dev/null @@ -1,81 +0,0 @@ -.a, -.b, -.c { - color: black; -} -.f, -.e, -.d { - color: black; -} -.g.h, -.i.j.h, -.k.j.h { - color: black; -} -.i.j, -.k.j { - color: white; -} -.l, -.m, -.n, -.o, -.p, -.q, -.r, -.s, -.t { - color: black; -} -.u, -.v.u.v { - color: black; -} -.w, -.v.w.v { - color: black; -} -.x, -.y, -.z { - color: x; -} -.y, -.z, -.x { - color: y; -} -.z, -.x, -.y { - color: z; -} -.va, -.vb, -.vc { - color: black; -} -.vb, -.vc { - color: white; -} -@media tv { - .ma, - .mb, - .mc { - color: black; - } - .md, - .ma, - .mb, - .mc { - color: white; - } -} -@media tv and plasma { - .me, - .mf { - background: red; - } -} diff --git a/node_modules/less/test/css/extend-clearfix.css b/node_modules/less/test/css/extend-clearfix.css deleted file mode 100644 index 966892a..0000000 --- a/node_modules/less/test/css/extend-clearfix.css +++ /dev/null @@ -1,19 +0,0 @@ -.clearfix, -.foo, -.bar { - *zoom: 1; -} -.clearfix:after, -.foo:after, -.bar:after { - content: ''; - display: block; - clear: both; - height: 0; -} -.foo { - color: red; -} -.bar { - color: blue; -} diff --git a/node_modules/less/test/css/extend-exact.css b/node_modules/less/test/css/extend-exact.css deleted file mode 100644 index beff413..0000000 --- a/node_modules/less/test/css/extend-exact.css +++ /dev/null @@ -1,37 +0,0 @@ -.replace.replace .replace, -.c.replace + .replace .replace, -.replace.replace .c, -.c.replace + .replace .c, -.rep_ace { - prop: copy-paste-replace; -} -.a .b .c { - prop: not_effected; -} -.a, -.effected { - prop: is_effected; -} -.a .b { - prop: not_effected; -} -.a .b.c { - prop: not_effected; -} -.c .b .a, -.a .b .a, -.c .a .a, -.a .a .a, -.c .b .c, -.a .b .c, -.c .a .c, -.a .a .c { - prop: not_effected; -} -.e.e, -.dbl { - prop: extend-double; -} -.e.e:hover { - hover: not-extended; -} diff --git a/node_modules/less/test/css/extend-media.css b/node_modules/less/test/css/extend-media.css deleted file mode 100644 index 23bd7b8..0000000 --- a/node_modules/less/test/css/extend-media.css +++ /dev/null @@ -1,24 +0,0 @@ -.ext1 .ext2, -.all .ext2 { - background: black; -} -@media tv { - .ext1 .ext3, - .tv-lowres .ext3, - .all .ext3 { - color: white; - } - .tv-lowres { - background: blue; - } -} -@media tv and hires { - .ext1 .ext4, - .tv-hires .ext4, - .all .ext4 { - color: green; - } - .tv-hires { - background: red; - } -} diff --git a/node_modules/less/test/css/extend-nest.css b/node_modules/less/test/css/extend-nest.css deleted file mode 100644 index 2c3905d..0000000 --- a/node_modules/less/test/css/extend-nest.css +++ /dev/null @@ -1,57 +0,0 @@ -.sidebar, -.sidebar2, -.type1 .sidebar3, -.type2.sidebar4 { - width: 300px; - background: red; -} -.sidebar .box, -.sidebar2 .box, -.type1 .sidebar3 .box, -.type2.sidebar4 .box { - background: #FFF; - border: 1px solid #000; - margin: 10px 0; -} -.sidebar2 { - background: blue; -} -.type1 .sidebar3 { - background: green; -} -.type2.sidebar4 { - background: red; -} -.button, -.submit { - color: black; -} -.button:hover, -.submit:hover { - color: white; -} -.button2 :hover { - nested: white; -} -.button2 :hover { - notnested: black; -} -.amp-test-h, -.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e.amp-test-g, -.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e.amp-test-g { - test: extended by masses of selectors; -} diff --git a/node_modules/less/test/css/extend-selector.css b/node_modules/less/test/css/extend-selector.css deleted file mode 100644 index 3c6c01f..0000000 --- a/node_modules/less/test/css/extend-selector.css +++ /dev/null @@ -1,87 +0,0 @@ -.error, -.badError { - border: 1px #f00; - background: #fdd; -} -.error.intrusion, -.badError.intrusion { - font-size: 1.3em; - font-weight: bold; -} -.intrusion .error, -.intrusion .badError { - display: none; -} -.badError { - border-width: 3px; -} -.foo .bar, -.foo .baz, -.ext1 .ext2 .bar, -.ext1 .ext2 .baz, -.ext3 .bar, -.ext3 .baz, -.ext4 .bar, -.ext4 .baz { - display: none; -} -div.ext5, -.ext6 > .ext5, -div.ext7, -.ext6 > .ext7 { - width: 100px; -} -.ext, -.a .c, -.b .c { - test: 1; -} -.a, -.b { - test: 2; -} -.a .c, -.b .c { - test: 3; -} -.a .c .d, -.b .c .d { - test: 4; -} -.replace.replace .replace, -.c.replace + .replace .replace, -.replace.replace .c, -.c.replace + .replace .c, -.rep_ace.rep_ace .rep_ace, -.c.rep_ace + .rep_ace .rep_ace, -.rep_ace.rep_ace .c, -.c.rep_ace + .rep_ace .c { - prop: copy-paste-replace; -} -.attributes [data="test"], -.attributes .attributes .attribute-test { - extend: attributes; -} -.attributes [data], -.attributes .attributes .attribute-test2 { - extend: attributes2; -} -.attributes [data="test3"], -.attributes .attributes .attribute-test { - extend: attributes2; -} -.header .header-nav, -.footer .footer-nav { - background: red; -} -.header .header-nav:before, -.footer .footer-nav:before { - background: blue; -} -.issue-2586-bordered, -.issue-2586-somepage .content { - border: solid 1px black; -} -.issue-2586-somepage .content > span { - margin-bottom: 10px; -} diff --git a/node_modules/less/test/css/extend.css b/node_modules/less/test/css/extend.css deleted file mode 100644 index 2895641..0000000 --- a/node_modules/less/test/css/extend.css +++ /dev/null @@ -1,76 +0,0 @@ -.error, -.badError { - border: 1px #f00; - background: #fdd; -} -.error.intrusion, -.badError.intrusion { - font-size: 1.3em; - font-weight: bold; -} -.intrusion .error, -.intrusion .badError { - display: none; -} -.badError { - border-width: 3px; -} -.foo .bar, -.foo .baz, -.ext1 .ext2 .bar, -.ext1 .ext2 .baz, -.ext3 .bar, -.ext3 .baz, -.foo .ext3, -.ext4 .bar, -.ext4 .baz, -.foo .ext4 { - display: none; -} -div.ext5, -.ext6 > .ext5, -div.ext7, -.ext6 > .ext7 { - width: 100px; -} -.ext8.ext9, -.fuu { - result: add-foo; -} -.ext8 .ext9, -.ext8 + .ext9, -.ext8 > .ext9, -.buu, -.zap, -.zoo { - result: bar-matched; -} -.ext8.nomatch { - result: none; -} -.ext8 .ext9, -.buu { - result: match-nested-bar; -} -.ext8.ext9, -.fuu { - result: match-nested-foo; -} -.aa, -.cc { - color: black; -} -.aa .dd, -.aa .ee { - background: red; -} -.bb, -.cc, -.ee, -.ff { - background: red; -} -.bb .bb, -.ff .ff { - color: black; -} diff --git a/node_modules/less/test/css/extract-and-length.css b/node_modules/less/test/css/extract-and-length.css deleted file mode 100644 index dc69341..0000000 --- a/node_modules/less/test/css/extract-and-length.css +++ /dev/null @@ -1,133 +0,0 @@ -.multiunit { - length: 6; - extract: abc "abc" 1 1px 1% #123; -} -.incorrect-index { - v1: extract(a b c, 5); - v2: extract(a, b, c, -2); -} -.scalar { - var-value: variable; - var-length: 1; - ill-index: extract(variable, 2); - name-value: name; - string-value: "string"; - number-value: 12345678; - color-value: blue; - rgba-value: rgba(80, 160, 240, 0.67); - empty-value: ; - name-length: 1; - string-length: 1; - number-length: 1; - color-length: 1; - rgba-length: 1; - empty-length: 1; -} -.mixin-arguments-1 { - length: 4; - extract: c | b | a; -} -.mixin-arguments-2 { - length: 4; - extract: c | b | a; -} -.mixin-arguments-3 { - length: 4; - extract: c | b | a; -} -.mixin-arguments-4 { - length: 0; - extract: extract(, 2) | extract(, 1); -} -.mixin-arguments-2 { - length: 4; - extract: c | b | a; -} -.mixin-arguments-3 { - length: 4; - extract: c | b | a; -} -.mixin-arguments-4 { - length: 3; - extract: c | b; -} -.mixin-arguments-2 { - length: 4; - extract: 3 | 2 | 1; -} -.mixin-arguments-3 { - length: 4; - extract: 3 | 2 | 1; -} -.mixin-arguments-4 { - length: 3; - extract: 3 | 2; -} -.md-space-comma { - length-1: 3; - extract-1: 1 2 3; - length-2: 3; - extract-2: 2; -} -.md-space-comma-as-args-2 { - length: 3; - extract: "x" "y" "z" | 1 2 3 | a b c; -} -.md-space-comma-as-args-3 { - length: 3; - extract: "x" "y" "z" | 1 2 3 | a b c; -} -.md-space-comma-as-args-4 { - length: 2; - extract: "x" "y" "z" | 1 2 3; -} -.md-cat-space-comma { - length-1: 3; - extract-1: 1 2 3; - length-2: 3; - extract-2: 2; -} -.md-cat-space-comma-as-args-2 { - length: 3; - extract: "x" "y" "z" | 1 2 3 | a b c; -} -.md-cat-space-comma-as-args-3 { - length: 3; - extract: "x" "y" "z" | 1 2 3 | a b c; -} -.md-cat-space-comma-as-args-4 { - length: 2; - extract: "x" "y" "z" | 1 2 3; -} -.md-cat-comma-space { - length-1: 3; - extract-1: 1, 2, 3; - length-2: 3; - extract-2: 2; -} -.md-cat-comma-space-as-args-1 { - length: 3; - extract: "x", "y", "z" | 1, 2, 3 | a, b, c; -} -.md-cat-comma-space-as-args-2 { - length: 3; - extract: "x", "y", "z" | 1, 2, 3 | a, b, c; -} -.md-cat-comma-space-as-args-3 { - length: 3; - extract: "x", "y", "z" | 1, 2, 3 | a, b, c; -} -.md-cat-comma-space-as-args-4 { - length: 0; - extract: extract(, 2) | extract(, 1); -} -.md-3D { - length-1: 2; - extract-1: a b c d, 1 2 3 4; - length-2: 2; - extract-2: 5 6 7 8; - length-3: 4; - extract-3: 7; - length-4: 1; - extract-4: 8; -} diff --git a/node_modules/less/test/css/filemanagerPlugin/filemanager.css b/node_modules/less/test/css/filemanagerPlugin/filemanager.css deleted file mode 100644 index 6446ebf..0000000 --- a/node_modules/less/test/css/filemanagerPlugin/filemanager.css +++ /dev/null @@ -1,3 +0,0 @@ -.test { - color: red; -} diff --git a/node_modules/less/test/css/functions.css b/node_modules/less/test/css/functions.css deleted file mode 100644 index ab5df5b..0000000 --- a/node_modules/less/test/css/functions.css +++ /dev/null @@ -1,201 +0,0 @@ -#functions { - color: #660000; - width: 16; - height: undefined("self"); - border-width: 5; - variable: 11; - background: linear-gradient(#000, #fff); -} -#built-in { - escaped: -Some::weird(#thing, y); - lighten: #ffcccc; - lighten-relative: #ff6666; - darken: #330000; - darken-relative: #990000; - saturate: #203c31; - saturate-relative: #28342f; - desaturate: #29332f; - desaturate-relative: #233930; - greyscale: #2e2e2e; - hsl-clamp: #ffffff; - spin-p: #bf6a40; - spin-n: #bf4055; - luma-white: 100%; - luma-black: 0%; - luma-black-alpha: 0%; - luma-red: 21.26%; - luma-green: 71.52%; - luma-blue: 7.22%; - luma-yellow: 92.78%; - luma-cyan: 78.74%; - luma-differs-from-luminance: 23.89833349%; - luminance-white: 100%; - luminance-black: 0%; - luminance-black-alpha: 0%; - luminance-red: 21.26%; - luminance-differs-from-luma: 36.40541176%; - contrast-filter: contrast(30%); - saturate-filter: saturate(5%); - contrast-white: #000000; - contrast-black: #ffffff; - contrast-red: #ffffff; - contrast-green: #000000; - contrast-blue: #ffffff; - contrast-yellow: #000000; - contrast-cyan: #000000; - contrast-light: #111111; - contrast-dark: #eeeeee; - contrast-wrongorder: #111111; - contrast-light-thresh: #111111; - contrast-dark-thresh: #eeeeee; - contrast-high-thresh: #eeeeee; - contrast-low-thresh: #111111; - contrast-light-thresh-per: #111111; - contrast-dark-thresh-per: #eeeeee; - contrast-high-thresh-per: #eeeeee; - contrast-low-thresh-per: #111111; - replace: "Hello, World!"; - replace-captured: "This is a new string."; - replace-with-flags: "2 + 2 = 4"; - replace-single-quoted: 'foo-2'; - replace-escaped-string: bar-2; - replace-keyword: baz-2; - replace-with-color: "#135#1357"; - replace-with-number: "2em07"; - format: "rgb(32, 128, 64)"; - format-string: "hello world"; - format-multiple: "hello earth 2"; - format-url-encode: "red is %23ff0000"; - format-single-quoted: 'hello single world'; - format-escaped-string: hello escaped world; - format-color-as-string: "#123"; - format-number-as-string: "4px"; - eformat: rgb(32, 128, 64); - unitless: 12; - unit: 14em; - unitpercentage: 100%; - get-unit: px; - get-unit-empty: ; - hue: 98; - saturation: 12%; - lightness: 95%; - hsvhue: 98; - hsvsaturation: 12%; - hsvvalue: 95%; - red: 255; - green: 255; - blue: 255; - rounded: 11; - rounded-two: 10.67; - roundedpx: 3px; - roundedpx-three: 3.333px; - rounded-percentage: 10%; - ceil: 11px; - floor: 12px; - sqrt: 5px; - pi: 3.14159265; - mod: 2m; - abs: 4%; - tan: 0.90040404; - sin: 0.17364818; - cos: 0.84385396; - atan: 0.1rad; - atan: 34deg; - atan: 45deg; - pow: 64px; - pow: 64; - pow: 27; - min: 0; - min: 5; - min: 1pt; - min: 3mm; - max: 3; - max: 5em; - percentage: 20%; - color-quoted-digit: #dda0dd; - color-quoted-keyword: #dda0dd; - color-color: #dda0dd; - color-keyword: #dda0dd; - tint: #898989; - tint-full: #ffffff; - tint-percent: #898989; - tint-negative: #656565; - shade: #686868; - shade-full: #000000; - shade-percent: #686868; - shade-negative: #868686; - fade-out: rgba(255, 0, 0, 0.95); - fade-in: rgba(255, 0, 0, 0.95); - fade-out-relative: rgba(255, 0, 0, 0.95); - fade-in-relative: rgba(255, 0, 0, 0.945); - fade-out2: rgba(255, 0, 0, 0); - fade-out2-relative: rgba(255, 0, 0, 0.25); - hsv: #4d2926; - hsva: rgba(77, 40, 38, 0.2); - mix: #ff3300; - mix-0: #ffff00; - mix-100: #ff0000; - mix-weightless: #ff8000; - mixt: rgba(255, 0, 0, 0.5); -} -#built-in .is-a { - ruleset: true; - color: true; - color1: true; - color2: true; - color3: true; - keyword: true; - number: true; - string: true; - pixel: true; - percent: true; - em: true; - cat: true; - no-unit-is-empty: true; - case-insensitive-1: true; - case-insensitive-2: true; -} -#alpha { - alpha: rgba(153, 94, 51, 0.6); - alpha2: 0.5; - alpha3: 0; -} -#blendmodes { - multiply: #ed0000; - screen: #f600f6; - overlay: #ed0000; - softlight: #fa0000; - hardlight: #0000ed; - difference: #f600f6; - exclusion: #f600f6; - average: #7b007b; - negation: #d73131; -} -#extract-and-length { - extract: 3 2 1 C B A; - length: 6; -} -#quoted-functions-in-mixin { - replace-double-quoted: 'foo-2'; - replace-single-quoted: 'foo-4'; - replace-escaped-string: bar-2; - replace-keyword: baz-2; - replace-anonymous: qux-2; - format-double-quoted: "hello world"; - format-single-quoted: 'hello single world'; - format-escaped-string: hello escaped world; - format-keyword: hello; - format-anonymous: hello anonymous world; -} -#list-details { - length: 2; - one: a 1; - two: b 2; - two-length: 2; - two-one: b; - two-two: 2; -} -/* comment1 */ -html { - color: #8080ff; -} diff --git a/node_modules/less/test/css/globalVars/extended.css b/node_modules/less/test/css/globalVars/extended.css deleted file mode 100644 index 1149ac8..0000000 --- a/node_modules/less/test/css/globalVars/extended.css +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Test - */ -#header { - color: #333333; - border-left: 1px; - border-right: 2px; -} -#footer { - color: #114411; - border-color: #f20d0d; -} diff --git a/node_modules/less/test/css/globalVars/simple.css b/node_modules/less/test/css/globalVars/simple.css deleted file mode 100644 index 630cc4c..0000000 --- a/node_modules/less/test/css/globalVars/simple.css +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Test - */ -.class { - color: red; -} diff --git a/node_modules/less/test/css/ie-filters.css b/node_modules/less/test/css/ie-filters.css deleted file mode 100644 index 007aa53..0000000 --- a/node_modules/less/test/css/ie-filters.css +++ /dev/null @@ -1,9 +0,0 @@ -.nav { - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=20); - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#333333", endColorstr="#000000", GradientType=0); -} -.evalTest1 { - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=30); - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=5); -} diff --git a/node_modules/less/test/css/import-inline.css b/node_modules/less/test/css/import-inline.css deleted file mode 100644 index 6e95689..0000000 --- a/node_modules/less/test/css/import-inline.css +++ /dev/null @@ -1,8 +0,0 @@ -#import { - color: red; -} -@media (min-width: 600px) { - #css { color: yellow; } - -} -this isn't very valid CSS. diff --git a/node_modules/less/test/css/import-interpolation.css b/node_modules/less/test/css/import-interpolation.css deleted file mode 100644 index ee44ac4..0000000 --- a/node_modules/less/test/css/import-interpolation.css +++ /dev/null @@ -1,13 +0,0 @@ -body { - width: 100%; -} -#logo { - width: 100px; - height: 100px; - background: url('../assets/logo.png'); - background: url("#inline-svg"); -} - -.a { - var: test; -} diff --git a/node_modules/less/test/css/import-once.css b/node_modules/less/test/css/import-once.css deleted file mode 100644 index f90531e..0000000 --- a/node_modules/less/test/css/import-once.css +++ /dev/null @@ -1,15 +0,0 @@ -#import { - color: red; -} -body { - width: 100%; -} -.test-f { - height: 10px; -} -body { - width: 100%; -} -.test-f { - height: 10px; -} diff --git a/node_modules/less/test/css/import-reference-issues.css b/node_modules/less/test/css/import-reference-issues.css deleted file mode 100644 index 34f4810..0000000 --- a/node_modules/less/test/css/import-reference-issues.css +++ /dev/null @@ -1,24 +0,0 @@ -.test-c { - background-color: green; -} -.theOnlySelector { - shall-have: one selector; -} -show-all-content { - /* - tralala -*/ -} -show-all-content .fix { - fix: fix; -} -show-all-content .something { - inside: something; -} -#used-namespaced-mixin { - was: included; - shall-see: another property above; -} -call-mixin-with-import-by-reference-inside { - the-only-property: nothing-below-this; -} diff --git a/node_modules/less/test/css/import-reference.css b/node_modules/less/test/css/import-reference.css deleted file mode 100644 index f3d3b87..0000000 --- a/node_modules/less/test/css/import-reference.css +++ /dev/null @@ -1,97 +0,0 @@ -input[type="text"].class#id[attr=32]:not(1) { - color: white; -} -div#id.class[a=1][b=2].class:not(1) { - color: white; -} -@media print { - .class { - color: blue; - } - .class .sub { - width: 42; - } -} -.visible { - color: red; -} -.visible .c { - color: green; -} -.visible { - color: green; -} -.visible:hover { - color: green; -} -.only-with-visible + .visible, -.visible + .only-with-visible, -.visible + .visible { - color: green; -} -.only-with-visible + .visible .sub, -.visible + .only-with-visible .sub, -.visible + .visible .sub { - color: green; -} -@supports (something: else) { - .class { - something: else; - } - .nestedToo .class { - something: else; - } -} -.b { - color: red; - color: green; -} -.b .c { - color: green; -} -.b:hover { - color: green; -} -.b + .b { - color: green; -} -.b + .b .sub { - color: green; -} -.y { - pulled-in: yes /* inline comment survives */; -} -/* comment pulled in */ -.visible { - extend: test; -} -.test-mediaq-import { - color: green; - test: 340px; -} -@media (max-size: 450px) { - .test-mediaq-import { - color: red; - } -} -.test { - color: red; -} -.test:first-child { - color: blue; -} -@keyframes some-name { - property: value; -} -@supports (animation-name: test) { - @keyframes some-name { - property: value; - } - .selector { - color: red; - } -} -div { - this isn't very valid CSS. -} -this isn't very valid CSS. diff --git a/node_modules/less/test/css/import.css b/node_modules/less/test/css/import.css deleted file mode 100644 index c39470c..0000000 --- a/node_modules/less/test/css/import.css +++ /dev/null @@ -1,49 +0,0 @@ -@charset "UTF-8"; -/** comment at the top**/ -@import url(http://fonts.googleapis.com/css?family=Open+Sans); -@import url(/absolute/something.css) screen and (color) and (max-width: 600px); -@import url("//ha.com/file.css") (min-width: 100px); -#import-test { - height: 10px; - color: red; - width: 10px; - height: 30%; -} -@media screen and (max-width: 600px) { - body { - width: 100%; - } -} -#import { - color: red; -} -.mixin { - height: 10px; - color: red; -} -.test-f { - height: 10px; -} -.deep-import-url { - color: red; -} -@media screen and (max-width: 601px) { - #css { - color: yellow; - } -} -@media screen and (max-width: 602px) { - body { - width: 100%; - } -} -@media screen and (max-width: 603px) { - #css { - color: yellow; - } -} -@media print { - body { - width: 100%; - } -} diff --git a/node_modules/less/test/css/include-path-string/include-path-string.css b/node_modules/less/test/css/include-path-string/include-path-string.css deleted file mode 100644 index 74a92fd..0000000 --- a/node_modules/less/test/css/include-path-string/include-path-string.css +++ /dev/null @@ -1,3 +0,0 @@ -data-uri { - property: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20height%3D%22100%22%20width%3D%22100%22%3E%0A%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2240%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22blue%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); -} diff --git a/node_modules/less/test/css/include-path/include-path.css b/node_modules/less/test/css/include-path/include-path.css deleted file mode 100644 index 3d80594..0000000 --- a/node_modules/less/test/css/include-path/include-path.css +++ /dev/null @@ -1,9 +0,0 @@ -body { - width: 100%; -} -data-uri { - property: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20height%3D%22100%22%20width%3D%22100%22%3E%0A%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2240%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22blue%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); -} -image-size { - property: 100px 100px; -} diff --git a/node_modules/less/test/css/javascript.css b/node_modules/less/test/css/javascript.css deleted file mode 100644 index 9cc1c3e..0000000 --- a/node_modules/less/test/css/javascript.css +++ /dev/null @@ -1,28 +0,0 @@ -.eval { - js: 42; - js: 2; - js: "hello world"; - js: 1, 2, 3; - title: "string"; - ternary: true; - multiline: 2; -} -.scope { - var: 42; - escaped: 7px; -} -.vars { - width: 8; -} -.escape-interpol { - width: hello world; -} -.arrays { - ary: "1, 2, 3"; - ary1: "1, 2, 3"; -} -.test-tran { - 1: opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear; - 2: [opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear]; - 3: opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear; -} diff --git a/node_modules/less/test/css/lazy-eval.css b/node_modules/less/test/css/lazy-eval.css deleted file mode 100644 index 1adfb8f..0000000 --- a/node_modules/less/test/css/lazy-eval.css +++ /dev/null @@ -1,3 +0,0 @@ -.lazy-eval { - width: 100%; -} diff --git a/node_modules/less/test/css/legacy/legacy.css b/node_modules/less/test/css/legacy/legacy.css deleted file mode 100644 index 24a6fa5..0000000 --- a/node_modules/less/test/css/legacy/legacy.css +++ /dev/null @@ -1,21 +0,0 @@ -@media (-o-min-device-pixel-ratio: 2/1) { - .test-math-and-units { - font: ignores 0/0 rules; - test-division: 7em; - simple: 2px; - } -} -#units { - t1: 22em; - t2: 22em; - t3: 2em; - t4: 22em; - t5: 22em; - t6: 2em; - t7: 22em; - t8: 22em; - t9: 2em; - t10: 22em; - t11: 22em; - t12: 2em; -} diff --git a/node_modules/less/test/css/media.css b/node_modules/less/test/css/media.css deleted file mode 100644 index 4e88ea6..0000000 --- a/node_modules/less/test/css/media.css +++ /dev/null @@ -1,218 +0,0 @@ -@media print { - .class { - color: blue; - } - .class .sub { - width: 42; - } - .top, - header > h1 { - color: #444444; - } -} -@media screen { - body { - max-width: 480; - } -} -@media all and (device-aspect-ratio: 16 / 9) { - body { - max-width: 800px; - } -} -@media all and (orientation: portrait) { - aside { - float: none; - } -} -@media handheld and (min-width: 42), screen and (min-width: 20em) { - body { - max-width: 480px; - } -} -@media print { - body { - padding: 20px; - } - body header { - background-color: red; - } -} -@media print and (orientation: landscape) { - body { - margin-left: 20px; - } -} -@media screen { - .sidebar { - width: 300px; - } -} -@media screen and (orientation: landscape) { - .sidebar { - width: 500px; - } -} -@media a and b { - .first .second .third { - width: 300px; - } - .first .second .fourth { - width: 3; - } -} -@media a and b and c { - .first .second .third { - width: 500px; - } -} -@media a, b and c { - body { - width: 95%; - } -} -@media a and x, b and c and x, a and y, b and c and y { - body { - width: 100%; - } -} -.a { - background: black; -} -@media handheld { - .a { - background: white; - } -} -@media handheld and (max-width: 100px) { - .a { - background: red; - } -} -.b { - background: black; -} -@media handheld { - .b { - background: white; - } -} -@media handheld and (max-width: 200px) { - .b { - background: red; - } -} -@media only screen and (max-width: 200px) { - body { - width: 480px; - } -} -@media print { - @page :left { - margin: 0.5cm; - } - @page :right { - margin: 0.5cm; - } - @page Test:first { - margin: 1cm; - } - @page :first { - size: 8.5in 11in; - @top-left { - margin: 1cm; - } - @top-left-corner { - margin: 1cm; - } - @top-center { - margin: 1cm; - } - @top-right { - margin: 1cm; - } - @top-right-corner { - margin: 1cm; - } - @bottom-left { - margin: 1cm; - } - @bottom-left-corner { - margin: 1cm; - } - @bottom-center { - margin: 1cm; - } - @bottom-right { - margin: 1cm; - } - @bottom-right-corner { - margin: 1cm; - } - @left-top { - margin: 1cm; - } - @left-middle { - margin: 1cm; - } - @left-bottom { - margin: 1cm; - } - @right-top { - margin: 1cm; - } - @right-middle { - content: "Page " counter(page); - } - @right-bottom { - margin: 1cm; - } - } -} -@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-resolution: 2dppx), (min-resolution: 128dpcm) { - .b { - background: red; - } -} -body { - background: red; -} -@media (max-width: 500px) { - body { - background: green; - } -} -@media (max-width: 1000px) { - body { - background: red; - background: blue; - } -} -@media (max-width: 1000px) and (max-width: 500px) { - body { - background: green; - } -} -@media (max-width: 1200px) { - /* a comment */ -} -@media (max-width: 1200px) and (max-width: 900px) { - body { - font-size: 11px; - } -} -@media (min-width: 480px) { - .nav-justified > li { - display: table-cell; - } -} -@media (min-width: 768px) and (min-width: 480px) { - .menu > li { - display: table-cell; - } -} -@media all and tv { - .all-and-tv-variables { - var: all-and-tv; - } -} diff --git a/node_modules/less/test/css/merge.css b/node_modules/less/test/css/merge.css deleted file mode 100644 index fe29dc8..0000000 --- a/node_modules/less/test/css/merge.css +++ /dev/null @@ -1,34 +0,0 @@ -.test1 { - transform: rotate(90deg), skew(30deg), scale(2, 4); -} -.test2 { - transform: rotate(90deg), skew(30deg); - transform: scaleX(45deg); -} -.test3 { - transform: scaleX(45deg); - background: url(data://img1.png); -} -.test4 { - transform: rotate(90deg), skew(30deg); - transform: scale(2, 4) !important; -} -.test5 { - transform: rotate(90deg), skew(30deg); - transform: scale(2, 4) !important; -} -.test6 { - transform: scale(2, 4); -} -.test-interleaved { - transform: t1, t2, t3; - background: b1, b2, b3; -} -.test-spaced { - transform: t1 t2 t3; - background: b1 b2, b3; -} -.test-interleaved-with-spaced { - transform: t1s, t2 t3s, t4 t5s t6s; - background: b1 b2s, b3, b4; -} diff --git a/node_modules/less/test/css/mixins-args.css b/node_modules/less/test/css/mixins-args.css deleted file mode 100644 index c97232b..0000000 --- a/node_modules/less/test/css/mixins-args.css +++ /dev/null @@ -1,163 +0,0 @@ -#hidden { - color: transparent; -} -#hidden1 { - color: transparent; -} -.two-args { - color: blue; - width: 10px; - height: 99%; - border: 2px dotted black; -} -.one-arg { - width: 15px; - height: 49%; -} -.no-parens { - width: 5px; - height: 49%; -} -.no-args { - width: 5px; - height: 49%; -} -.var-args { - width: 45; - height: 17%; -} -.multi-mix { - width: 10px; - height: 29%; - margin: 4; - padding: 5; -} -body { - padding: 30px; - color: #f00; -} -.scope-mix { - width: 8; -} -.content { - width: 600px; -} -.content .column { - margin: 600px; -} -#same-var-name { - radius: 5px; -} -#var-inside { - width: 10px; -} -.arguments { - border: 1px solid black; - width: 1px; -} -.arguments2 { - border: 0px; - width: 0px; -} -.arguments3 { - border: 0px; - width: 0px; -} -.arguments4 { - border: 0 1 2 3 4; - rest: 1 2 3 4; - width: 0; -} -.edge-case { - border: "{"; - width: "{"; -} -.slash-vs-math { - border-radius: 2px/5px; - border-radius: 5px/10px; - border-radius: 6px; -} -.comma-vs-semi-colon { - one: a; - two: b, c; - one: d, e; - two: f; - one: g; - one: h; - one: i; - one: j; - one: k; - two: l; - one: m, n; - one: o, p; - two: q; - one: r, s; - two: t; -} -#named-conflict { - four: a, 11, 12, 13; - four: a, 21, 22, 23; -} -.test-mixin-default-arg { - defaults: 1px 1px 1px; - defaults: 2px 2px 2px; -} -.selector { - margin: 2, 2, 2, 2; -} -.selector2 { - margin: 2, 2, 2, 2; -} -.selector3 { - margin: 4; -} -mixins-args-expand-op-1 { - m3: 1, 2, 3; -} -mixins-args-expand-op-2 { - m3: 4, 5, 6; -} -mixins-args-expand-op-3a { - m3: a, b, c; -} -mixins-args-expand-op-3b { - m4: 0, a, b, c; -} -mixins-args-expand-op-3c { - m4: a, b, c, 4; -} -mixins-args-expand-op-4a { - m3: a, b, c, d; -} -mixins-args-expand-op-4b { - m4: 0, a, b, c, d; -} -mixins-args-expand-op-4c { - m4: a, b, c, d, 4; -} -mixins-args-expand-op-5a { - m3: 1, 2, 3; -} -mixins-args-expand-op-5b { - m4: 0, 1, 2, 3; -} -mixins-args-expand-op-5c { - m4: 1, 2, 3, 4; -} -mixins-args-expand-op-6 { - m4: 0, 1, 2, 3; -} -mixins-args-expand-op-7 { - m4: 0, 1, 2, 3; -} -mixins-args-expand-op-8 { - m4: 1, 1.5, 2, 3; -} -mixins-args-expand-op-9 { - aa: 4 5 6 1 2 3 and again 4 5 6; - a4: and; - a8: 5; -} -#test-mixin-matching-when-default-2645 { - height: 20px; -} diff --git a/node_modules/less/test/css/mixins-closure.css b/node_modules/less/test/css/mixins-closure.css deleted file mode 100644 index b1021b6..0000000 --- a/node_modules/less/test/css/mixins-closure.css +++ /dev/null @@ -1,9 +0,0 @@ -.class { - width: 99px; -} -.overwrite { - width: 99px; -} -.nested .class { - width: 5px; -} diff --git a/node_modules/less/test/css/mixins-guards-default-func.css b/node_modules/less/test/css/mixins-guards-default-func.css deleted file mode 100644 index 7980591..0000000 --- a/node_modules/less/test/css/mixins-guards-default-func.css +++ /dev/null @@ -1,129 +0,0 @@ -guard-default-basic-1-1 { - case: 1; -} -guard-default-basic-1-2 { - default: 2; -} -guard-default-basic-2-0 { - default: 0; -} -guard-default-basic-2-2 { - case: 2; -} -guard-default-basic-3-0 { - default: 0; -} -guard-default-basic-3-2 { - case: 2; -} -guard-default-basic-3-3 { - case: 3; -} -guard-default-definition-order-0 { - default: 0; -} -guard-default-definition-order-2 { - case: 2; -} -guard-default-definition-order-2 { - case: 3; -} -guard-default-out-of-guard-0 { - case-0: default(); - case-1: 1; - default: 2; - case-2: default(); -} -guard-default-out-of-guard-1 { - default: default(); -} -guard-default-out-of-guard-2 { - default: default(); -} -guard-default-expr-not-1 { - case: 1; - default: 1; -} -guard-default-expr-eq-true { - case: true; -} -guard-default-expr-eq-false { - case: false; - default: false; -} -guard-default-expr-or-1 { - case: 1; -} -guard-default-expr-or-2 { - case: 2; - default: 2; -} -guard-default-expr-or-3 { - default: 3; -} -guard-default-expr-and-1 { - case: 1; -} -guard-default-expr-and-2 { - case: 2; -} -guard-default-expr-and-3 { - default: 3; -} -guard-default-expr-always-1 { - case: 1; - default: 1; -} -guard-default-expr-always-2 { - default: 2; -} -guard-default-expr-never-1 { - case: 1; -} -guard-default-multi-1-0 { - case: 0; -} -guard-default-multi-1-1 { - default-1: 1; -} -guard-default-multi-2-1 { - default-1: no; -} -guard-default-multi-2-2 { - default-2: no; -} -guard-default-multi-2-3 { - default-3: 3; -} -guard-default-multi-3-blue { - case-2: darkblue; -} -guard-default-multi-3-green { - default-color: green; -} -guard-default-multi-3-foo { - case-1: I am 'foo'; -} -guard-default-multi-3-baz { - default-string: I am 'baz'; -} -guard-default-multi-4 { - always: 1; - always: 2; - case: 2; -} -guard-default-not-ambiguos-2 { - case: 1; - not-default: 2; -} -guard-default-not-ambiguos-3 { - case: 1; - not-default-1: 2; - not-default-2: 2; -} -guard-default-scopes-3 { - 3: when default; -} -guard-default-scopes-1 { - 1: no condition; -} diff --git a/node_modules/less/test/css/mixins-guards.css b/node_modules/less/test/css/mixins-guards.css deleted file mode 100644 index 3b749af..0000000 --- a/node_modules/less/test/css/mixins-guards.css +++ /dev/null @@ -1,211 +0,0 @@ -.light1 { - color: white; - margin: 1px; -} -.light2 { - color: black; - margin: 1px; -} -.max1 { - width: 6; -} -.max2 { - width: 8; -} -.glob1 { - margin: auto auto; -} -.ops1 { - height: gt-or-eq; - height: lt-or-eq; - height: lt-or-eq-alias; -} -.ops2 { - height: gt-or-eq; - height: not-eq; -} -.ops3 { - height: lt-or-eq; - height: lt-or-eq-alias; - height: not-eq; -} -.default1 { - content: default; -} -.test1 { - content: "true."; -} -.test2 { - content: "false."; -} -.test3 { - content: "false."; -} -.test4 { - content: "false."; -} -.test5 { - content: "false."; -} -.bool1 { - content: true and true; - content: true; - content: false, true; - content: false and true and true, true; - content: false, true and true; - content: false, false, true; - content: false, true and true and true, false; - content: not false; - content: not false and false, not false; -} -.equality-units { - test: pass; -} -.colorguardtest { - content: is red; - content: is not blue its red; - content: is not blue its purple; -} -.stringguardtest { - content: "theme1" is "theme1"; - content: "theme1" is not "theme2"; - content: "theme1" is 'theme1'; - content: "theme1" is not 'theme2'; - content: 'theme1' is "theme1"; - content: 'theme1' is not "theme2"; - content: 'theme1' is 'theme1'; - content: 'theme1' is not 'theme2'; - content: theme1 is not "theme2"; - content: theme1 is not 'theme2'; - content: theme1 is theme1; -} -.variouse-types-comparison { - /**/ - content: true is not equal to false; - content: false is not equal to true too; - /**/ - content: 1 is not equal to true; - content: true is not equal to 1 too; - /**/ - content: 2 is equal to 2px; - content: 2px is equal to 2 too; - /**/ - content: 3 is equal to 3; - content: 3 is equal to 3 too; - /**/ - content: 5 is not equal to 4; - content: 4 is not equal to 5 too; - /**/ - content: abc is equal to abc; - content: abc is equal to abc too; - /**/ - content: abc is not equal to "abc"; - content: "abc" is not equal to abc too; - /**/ - content: 'abc' is less than "abd"; - content: "abd" is greater than 'abc' too; - content: 'abc' is not equal to "abd"; - content: "abd" is not equal to 'abc' too; - /**/ - content: 6 is equal to 6; - content: 6 is equal to 6 too; - /**/ - content: 8 is less than 9 too; - content: 9 is greater than 8; - content: 9 is not equal to 8; - content: 8 is not equal to 9 too; - /**/ - content: a is not equal to b; - content: b is not equal to a too; - /**/ - content: 1 2 is not equal to 3; - content: 3 is not equal to 1 2 too; -} -.list-comparison { - /**/ - content: a b c is equal to a b c; - content: a b c is equal to a b c too; - /**/ - content: a b c is not equal to a b d; - content: a b d is not equal to a b c too; - /**/ - content: a, b, c is equal to a, b, c; - content: a, b, c is equal to a, b, c too; - /**/ - content: a, b, c is not equal to a, b, d; - content: a, b, d is not equal to a, b, c too; - /**/ - content: 1 2px 300ms is equal to 1em 2 0.3s; - content: 1em 2 0.3s is equal to 1 2px 300ms too; - /**/ - content: 1 2 3 is not equal to 1, 2, 3; - content: 1, 2, 3 is not equal to 1 2 3 too; - /**/ - content: 1, 2, 3 is equal to 1, 2, 3; - content: 1, 2, 3 is equal to 1, 2, 3 too; - /**/ - content: 1 2 3 1, 2, 3 is equal to 1 2 3 1, 2, 3; - content: 1 2 3 1, 2, 3 is equal to 1 2 3 1, 2, 3 too; - /**/ - content: 1 2 3 1, 2, 3 is not equal to 1, 2, 3 1 2 3; - content: 1, 2, 3 1 2 3 is not equal to 1 2 3 1, 2, 3 too; - /**/ - content: 1 2 3 1, 2, 3 4 is equal to 1 2 3 1, 2, 3 4; - content: 1 2 3 1, 2, 3 4 is equal to 1 2 3 1, 2, 3 4 too; -} -#tryNumberPx { - catch: all; - declare: 4; - declare: 4px; -} -.call-lock-mixin .call-inner-lock-mixin { - a: 1; - x: 1; -} -.mixin-generated-class { - a: 1; -} -#guarded-caller { - guarded: namespace; - silent: namespace; - guarded: with default; -} -#guarded-deeper { - should: match 1; -} -#parenthesisNot-true { - parenthesisNot: just-value; - parenthesisNot: negated twice 1; - parenthesisNot: negated twice 2; - parenthesisNot: negated twice 3; -} -#parenthesisNot-false { - parenthesisNot: negated once inside; - parenthesisNot: negated once outside; - parenthesisNot: negated once middle; -} -#orderOfEvaluation-false-false-true { - no-parenthesis: evaluated true 1a; - no-parenthesis: evaluated true 1b; - no-parenthesis: evaluated true 1d; - no-parenthesis: evaluated true 3; - no-parenthesis: evaluated true 4; - with-parenthesis: evaluated true; -} -#orderOfEvaluation-false-false-false { - no-parenthesis: evaluated true 2a; - no-parenthesis: evaluated true 2b; - no-parenthesis: evaluated true 2c; -} -#orderOfEvaluation-true-true-false { - no-parenthesis: evaluated true 1a; - no-parenthesis: evaluated true 1b; - no-parenthesis: evaluated true 1c; - no-parenthesis: evaluated true 1d; - no-parenthesis: evaluated true 1e; - no-parenthesis: evaluated true 2a; - no-parenthesis: evaluated true 2b; - no-parenthesis: evaluated true 2c; - no-parenthesis: evaluated true 4; - with-parenthesis: evaluated true; -} diff --git a/node_modules/less/test/css/mixins-important.css b/node_modules/less/test/css/mixins-important.css deleted file mode 100644 index 3d53d43..0000000 --- a/node_modules/less/test/css/mixins-important.css +++ /dev/null @@ -1,57 +0,0 @@ -.class { - border: 1; - boxer: 1; - border-width: 1; - border: 2 !important; - boxer: 2 !important; - border-width: 2 !important; - border: 3; - boxer: 3; - border-width: 3; - border: 4 !important; - boxer: 4 !important; - border-width: 4 !important; - border: 5; - boxer: 5; - border-width: 5; - border: 0 !important; - boxer: 0 !important; - border-width: 0 !important; - border: 9 !important; - border: 9; - boxer: 9; - border-width: 9; -} -.class .inner { - test: 1; -} -.class .inner { - test: 2 !important; -} -.class .inner { - test: 3; -} -.class .inner { - test: 4 !important; -} -.class .inner { - test: 5; -} -.class .inner { - test: 0 !important; -} -.class .inner { - test: 9; -} -.when-calling-nested-issue-2394 { - width: auto !important; -} -.when-calling-nested-with-param-issue-2394 { - width: 10px !important; -} -.class1-2421 { - margin: 5px !important; -} -.class2-2421 { - margin: 5px; -} diff --git a/node_modules/less/test/css/mixins-interpolated.css b/node_modules/less/test/css/mixins-interpolated.css deleted file mode 100644 index 0d511fc..0000000 --- a/node_modules/less/test/css/mixins-interpolated.css +++ /dev/null @@ -1,43 +0,0 @@ -.123 { - a: 0; -} -.foo { - a: 1; -} -.foo { - a: 2; -} -#foo { - a: 3; -} -#foo { - a: 4; -} -mi-test-a { - a: 0; - a: 1; - a: 2; - a: 3; - a: 4; -} -.b .bb.foo-xxx .yyy-foo#foo .foo.bbb { - b: 1; -} -mi-test-b { - b: 1; -} -#foo-foo > .bar .baz { - c: c; -} -mi-test-c-1 > .bar .baz { - c: c; -} -mi-test-c-2 .baz { - c: c; -} -mi-test-c-3 { - c: c; -} -mi-test-d { - gender: "Male"; -} diff --git a/node_modules/less/test/css/mixins-named-args.css b/node_modules/less/test/css/mixins-named-args.css deleted file mode 100644 index e460aa1..0000000 --- a/node_modules/less/test/css/mixins-named-args.css +++ /dev/null @@ -1,27 +0,0 @@ -.named-arg { - color: blue; - width: 5px; - height: 99%; - args: 1px 100%; - text-align: center; -} -.class { - width: 5px; - height: 19%; - args: 1px 20%; -} -.all-args-wrong-args { - width: 10px; - height: 9%; - args: 2px 10%; -} -.named-args2 { - width: 15px; - height: 49%; - color: #646464; -} -.named-args3 { - width: 5px; - height: 29%; - color: #123456; -} diff --git a/node_modules/less/test/css/mixins-nested.css b/node_modules/less/test/css/mixins-nested.css deleted file mode 100644 index 6378c47..0000000 --- a/node_modules/less/test/css/mixins-nested.css +++ /dev/null @@ -1,14 +0,0 @@ -.class .inner { - height: 300; -} -.class .inner .innest { - width: 30; - border-width: 60; -} -.class2 .inner { - height: 600; -} -.class2 .inner .innest { - width: 60; - border-width: 120; -} diff --git a/node_modules/less/test/css/mixins-pattern.css b/node_modules/less/test/css/mixins-pattern.css deleted file mode 100644 index 1515f32..0000000 --- a/node_modules/less/test/css/mixins-pattern.css +++ /dev/null @@ -1,51 +0,0 @@ -.zero { - variadic: true; - named-variadic: true; - zero: 0; - one: 1; - two: 2; - three: 3; -} -.one { - variadic: true; - named-variadic: true; - one: 1; - one-req: 1; - two: 2; - three: 3; -} -.two { - variadic: true; - named-variadic: true; - two: 2; - three: 3; -} -.three { - variadic: true; - named-variadic: true; - three-req: 3; - three: 3; -} -.left { - left: 1; -} -.right { - right: 1; -} -.border-right { - color: black; - border-right: 4px; -} -.border-left { - color: black; - border-left: 4px; -} -.only-right { - right: 33; -} -.only-left { - left: 33; -} -.left-right { - both: 330; -} diff --git a/node_modules/less/test/css/mixins.css b/node_modules/less/test/css/mixins.css deleted file mode 100644 index 4d9824f..0000000 --- a/node_modules/less/test/css/mixins.css +++ /dev/null @@ -1,144 +0,0 @@ -.mixin { - border: 1px solid black; -} -.mixout { - border-color: orange; -} -.borders { - border-style: dashed; -} -.mixin > * { - border: do not match me; -} -#namespace .borders { - border-style: dotted; -} -#namespace .biohazard { - content: "death"; -} -#namespace .biohazard .man { - color: transparent; -} -#theme > .mixin { - background-color: grey; -} -#container { - color: black; - border: 1px solid black; - border-color: orange; - background-color: grey; -} -#header .milk { - color: white; - border: 1px solid black; - background-color: grey; -} -#header #cookie { - border-style: dashed; -} -#header #cookie .chips { - border-style: dotted; -} -#header #cookie .chips .calories { - color: black; - border: 1px solid black; - border-color: orange; - background-color: grey; -} -.secure-zone { - color: transparent; -} -.direct { - border-style: dotted; -} -.bo, -.bar { - width: 100%; -} -.bo { - border: 1px; -} -.ar.bo.ca { - color: black; -} -.jo.ki { - background: none; -} -.amp.support { - color: orange; -} -.amp.support .higher { - top: 0px; -} -.amp.support.deeper { - height: auto; -} -.extended { - width: 100%; - border: 1px; - background: none; - color: orange; - top: 0px; - height: auto; -} -.extended .higher { - top: 0px; -} -.extended.deeper { - height: auto; -} -.do .re .mi .fa .sol .la .si { - color: cyan; -} -.mutli-selector-parents { - color: cyan; -} -.foo .bar { - width: 100%; -} -.underParents { - color: red; -} -.parent .underParents { - color: red; -} -* + h1 { - margin-top: 25px; -} -legend + h1 { - margin-top: 0; -} -h1 + * { - margin-top: 10px; -} -* + h2 { - margin-top: 20px; -} -legend + h2 { - margin-top: 0; -} -h2 + * { - margin-top: 8px; -} -* + h3 { - margin-top: 15px; -} -legend + h3 { - margin-top: 0; -} -h3 + * { - margin-top: 5px; -} -.error { - background-image: "/a.png"; - background-position: center center; -} -.test-rec .recursion { - color: black; -} -.button { - padding-left: 44px; -} -.button.large { - padding-left: 40em; -} diff --git a/node_modules/less/test/css/modifyVars/extended.css b/node_modules/less/test/css/modifyVars/extended.css deleted file mode 100644 index 32edb38..0000000 --- a/node_modules/less/test/css/modifyVars/extended.css +++ /dev/null @@ -1,9 +0,0 @@ -#header { - color: #333333; - border-left: 1px; - border-right: 2px; -} -#footer { - color: #114411; - border-color: #842210; -} diff --git a/node_modules/less/test/css/no-output.css b/node_modules/less/test/css/no-output.css deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/less/test/css/no-strict-math/mixins-guards.css b/node_modules/less/test/css/no-strict-math/mixins-guards.css deleted file mode 100644 index 81a2d7f..0000000 --- a/node_modules/less/test/css/no-strict-math/mixins-guards.css +++ /dev/null @@ -1,12 +0,0 @@ -.test-2798 { - regression: fixed; -} -.conditions-parser-1 { - only-atomic: ok; -} -.conditions-parser-2 { - only-atomic-with-nested-parenthesis: ok; -} -.conditions-parser-3 { - only-atomic-nested-parenthesis-on-right: ok; -} diff --git a/node_modules/less/test/css/no-strict-math/no-sm-operations.css b/node_modules/less/test/css/no-strict-math/no-sm-operations.css deleted file mode 100644 index 00c5566..0000000 --- a/node_modules/less/test/css/no-strict-math/no-sm-operations.css +++ /dev/null @@ -1,15 +0,0 @@ -.named-colors-in-expressions { - color-0: 0 -red; - color-1: #000101; - color-2: #ff0000; - color-3: #ff0000; - background-color: blue-2; - color: green-black; - animation: blue-change 5s infinite; -} -.named-colors-in-expressions-bar-red { - x: y; -} -.named-colors-in-expressions-barred { - a: a; -} diff --git a/node_modules/less/test/css/operations.css b/node_modules/less/test/css/operations.css deleted file mode 100644 index 61ce933..0000000 --- a/node_modules/less/test/css/operations.css +++ /dev/null @@ -1,50 +0,0 @@ -#operations { - color: #111111; - color-2: #f8f800; - height: 9px; - width: 3em; - subtraction: 0; - division: 1; -} -#operations .spacing { - height: 9px; - width: 3em; -} -.with-variables { - height: 16em; - width: 24em; - size: 1cm; -} -.with-functions { - color: #646464; - color: #ff8080; - color: #c94a4a; -} -.negative { - height: 0px; - width: 4px; -} -.shorthands { - padding: -1px 2px 0 -4px; -} -.rem-dimensions { - font-size: 5.5rem; -} -.colors { - color: #123; - border-color: #334455; - background-color: #000000; -} -.colors .other { - color: #222222; - border-color: #222222; -} -.negations { - variable: -4px; - variable1: 0px; - variable2: 0px; - variable3: 8px; - variable4: 0px; - paren: -4px; - paren2: 16px; -} diff --git a/node_modules/less/test/css/parens.css b/node_modules/less/test/css/parens.css deleted file mode 100644 index 0e8cc7c..0000000 --- a/node_modules/less/test/css/parens.css +++ /dev/null @@ -1,36 +0,0 @@ -.parens { - border: 2px solid black; - margin: 1px 3px 16 3; - width: 36; - padding: 2px 36px; -} -.more-parens { - padding: 8 4 4 4px; - width-all: 96; - width-first: 16 * 6; - width-keep: (4 * 4) * 6; - height-keep: (7 * 7) + (8 * 8); - height-all: 113; - height-parts: 49 + 64; - margin-keep: (4 * (5 + 5) / 2) - (4 * 2); - margin-parts: 20 - 8; - margin-all: 12; - border-radius-keep: 4px * (1 + 1) / 4 + 3px; - border-radius-parts: 8px / 7px; - border-radius-all: 5px; -} -.negative { - neg-var: -1; - neg-var-paren: -(1); -} -.nested-parens { - width: 2 * (4 * (2 + (1 + 6))) - 1; - height: ((2 + 3) * (2 + 3) / (9 - 4)) + 1; -} -.mixed-units { - margin: 2px 4em 1 5pc; - padding: 6px 1em 2px 2; -} -.test-false-negatives { - a: (; -} diff --git a/node_modules/less/test/css/plugin.css b/node_modules/less/test/css/plugin.css deleted file mode 100644 index 0b69107..0000000 --- a/node_modules/less/test/css/plugin.css +++ /dev/null @@ -1,49 +0,0 @@ -@charset "utf-8"; -.other { - trans: transitive; -} -.class { - trans: transitive; - global: global; - local: test-local(); - shadow: global; -} -.class .local { - global: global; - local: local; - shadow: local; -} -.class { - ns-mixin-global: global; - ns-mixin-local: local; - ns-mixin-shadow: local; - mixin-local: local; - mixin-global: global; - mixin-shadow: local; - ruleset-local: local; - ruleset-global: global; - ruleset-shadow: local; - class-local: test-local(); -} -@media screen { - .test { - result: global; - } -} -@font-face { - result: global; -} -@media screen and (min-width: 100px) and (max-width: 400px) { - .test { - result: global; - } -} -@media screen { - .test { - result: local; - } -} -.root { - prop: value; -} -@arbitrary value after (); diff --git a/node_modules/less/test/css/postProcessorPlugin/postProcessor.css b/node_modules/less/test/css/postProcessorPlugin/postProcessor.css deleted file mode 100644 index 8e54894..0000000 --- a/node_modules/less/test/css/postProcessorPlugin/postProcessor.css +++ /dev/null @@ -1,4 +0,0 @@ -hr {height:50px;} -.test { - color: white; -} diff --git a/node_modules/less/test/css/preProcessorPlugin/preProcessor.css b/node_modules/less/test/css/preProcessorPlugin/preProcessor.css deleted file mode 100644 index 6446ebf..0000000 --- a/node_modules/less/test/css/preProcessorPlugin/preProcessor.css +++ /dev/null @@ -1,3 +0,0 @@ -.test { - color: red; -} diff --git a/node_modules/less/test/css/property-name-interp.css b/node_modules/less/test/css/property-name-interp.css deleted file mode 100644 index 315815e..0000000 --- a/node_modules/less/test/css/property-name-interp.css +++ /dev/null @@ -1,21 +0,0 @@ -pi-test { - border: 0; - @not-variable: @not-variable; - ufo-width: 50%; - *-z-border: 1px dashed blue; - -www-border-top: 2px; - radius-is-not-a-border: true; - border-top-left-radius: 2em; - border-top-red-radius-: 3pt; - global-local-mixer-property: strong; -} -pi-test-merge { - pre-property-ish: high, middle, low, base; - pre-property-ish+: nice try dude; -} -pi-indirect-vars { - auto: auto; -} -pi-complex-values { - 3px rgba(255, 255, 0, 0.5), 3.141592653589793 /* foo */3px rgba(255, 255, 0, 0.5), 3.141592653589793 /* foo */: none; -} diff --git a/node_modules/less/test/css/rulesets.css b/node_modules/less/test/css/rulesets.css deleted file mode 100644 index 408c76a..0000000 --- a/node_modules/less/test/css/rulesets.css +++ /dev/null @@ -1,33 +0,0 @@ -#first > .one { - font-size: 2em; -} -#first > .one > #second .two > #deux { - width: 50%; -} -#first > .one > #second .two > #deux #third { - height: 100%; -} -#first > .one > #second .two > #deux #third:focus { - color: black; -} -#first > .one > #second .two > #deux #third:focus #fifth > #sixth .seventh #eighth + #ninth { - color: purple; -} -#first > .one > #second .two > #deux #fourth, -#first > .one > #second .two > #deux #five, -#first > .one > #second .two > #deux #six { - color: #110000; -} -#first > .one > #second .two > #deux #fourth .seven, -#first > .one > #second .two > #deux #five .seven, -#first > .one > #second .two > #deux #six .seven, -#first > .one > #second .two > #deux #fourth .eight > #nine, -#first > .one > #second .two > #deux #five .eight > #nine, -#first > .one > #second .two > #deux #six .eight > #nine { - border: 1px solid black; -} -#first > .one > #second .two > #deux #fourth #ten, -#first > .one > #second .two > #deux #five #ten, -#first > .one > #second .two > #deux #six #ten { - color: red; -} diff --git a/node_modules/less/test/css/scope.css b/node_modules/less/test/css/scope.css deleted file mode 100644 index caeb1f0..0000000 --- a/node_modules/less/test/css/scope.css +++ /dev/null @@ -1,38 +0,0 @@ -.tiny-scope { - color: #989; -} -.scope1 { - color: blue; - border-color: black; -} -.scope1 .scope2 { - color: blue; -} -.scope1 .scope2 .scope3 { - color: red; - border-color: black; - background-color: white; -} -.scope { - scoped-val: green; -} -.heightIsSet { - height: 1024px; -} -.useHeightInMixinCall { - mixin-height: 1024px; -} -.imported { - exists: true; -} -.testImported { - exists: true; -} -#allAreUsedHere { - default: 'top level'; - scope: 'top level'; - sub-scope-only: 'inside'; -} -#parentSelectorScope { - prop: white; -} diff --git a/node_modules/less/test/css/selectors.css b/node_modules/less/test/css/selectors.css deleted file mode 100644 index f0992a5..0000000 --- a/node_modules/less/test/css/selectors.css +++ /dev/null @@ -1,170 +0,0 @@ -h1 a:hover, -h2 a:hover, -h3 a:hover, -h1 p:hover, -h2 p:hover, -h3 p:hover { - color: red; -} -#all { - color: blue; -} -#the { - color: blue; -} -#same { - color: blue; -} -ul, -li, -div, -q, -blockquote, -textarea { - margin: 0; -} -td { - margin: 0; - padding: 0; -} -td, -input { - line-height: 1em; -} -a { - color: red; -} -a:hover { - color: blue; -} -div a { - color: green; -} -p a span { - color: yellow; -} -.foo .bar .qux, -.foo .baz .qux { - display: block; -} -.qux .foo .bar, -.qux .foo .baz { - display: inline; -} -.qux.foo .bar, -.qux.foo .baz { - display: inline-block; -} -.qux .foo .bar .biz, -.qux .foo .baz .biz { - display: none; -} -.a.b.c { - color: red; -} -.c .b.a { - color: red; -} -.foo .p.bar { - color: red; -} -.foo.p.bar { - color: red; -} -.foo + .foo { - background: amber; -} -.foo + .foo { - background: amber; -} -.foo + .foo, -.foo + .bar, -.bar + .foo, -.bar + .bar { - background: amber; -} -.foo a > .foo a, -.foo a > .bar a, -.foo a > .foo b, -.foo a > .bar b, -.bar a > .foo a, -.bar a > .bar a, -.bar a > .foo b, -.bar a > .bar b, -.foo b > .foo a, -.foo b > .bar a, -.foo b > .foo b, -.foo b > .bar b, -.bar b > .foo a, -.bar b > .bar a, -.bar b > .foo b, -.bar b > .bar b { - background: amber; -} -.other ::fnord { - color: red; -} -.other::fnord { - color: red; -} -.other ::bnord { - color: red; -} -.other::bnord { - color: red; -} -.blood { - color: red; -} -.bloodred { - color: green; -} -#blood.blood.red.black:blood { - color: black; -} -:nth-child(3) { - selector: interpolated; -} -.test:nth-child(3) { - selector: interpolated; -} -.test:nth-child(odd):not(:nth-child(3)) { - color: #ff0000; -} -[prop], -[prop=10%], -[prop="value3"], -[prop*="val3"], -[|prop~="val3"], -[*|prop$="val3"], -[ns|prop^="val3"], -[3^="val3"], -[3=3], -[3] { - attributes: yes; -} -/* -Large comment means chunk will be emitted after } which means chunk will begin with whitespace... -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -*/ -.blood { - color: red; -} -.foo:not(.tst.only-nested .level2:hover) { - test: only-nested; -} -.foo.nestend-and-non-nested:not(.tst.nestend-and-non-nested:hover) { - test: nestend-and-non-nested; -} -.selector:not(:hover) { - test: global scope; -} -.extend-this, -.active.first-level .second-level, -.first-level .second-level.active2 { - content: '\2661'; -} diff --git a/node_modules/less/test/css/static-urls/urls.css b/node_modules/less/test/css/static-urls/urls.css deleted file mode 100644 index 58678b1..0000000 --- a/node_modules/less/test/css/static-urls/urls.css +++ /dev/null @@ -1,46 +0,0 @@ -@import "css/background.css"; -@import "folder (1)/import-test-d.css"; -@font-face { - src: url("/fonts/garamond-pro.ttf"); - src: local(Futura-Medium), url(folder\ \(1\)/fonts.svg#MyGeometricModern) format("svg"); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px; -} -#misc { - background-image: url(folder\ \(1\)/images/image.jpg); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700); -} -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} -.comma-delimited { - background: url(folder\ \(1\)/bg.jpg) no-repeat, url(folder\ \(1\)/bg.png) repeat-x top left, url(folder\ \(1\)/bg); -} -.values { - url: url('folder (1)/Trebuchet'); -} -#logo { - width: 100px; - height: 100px; - background: url('assets/logo.png'); - background: url("#inline-svg"); -} -@font-face { - font-family: xecret; - src: url('assets/xecret.ttf'); -} -#secret { - font-family: xecret, sans-serif; -} -#imported-relative-path { - background-image: url(../data/image.jpg); - border-image: url('../data/image.jpg'); -} diff --git a/node_modules/less/test/css/strict-units/strict-units.css b/node_modules/less/test/css/strict-units/strict-units.css deleted file mode 100644 index f09f008..0000000 --- a/node_modules/less/test/css/strict-units/strict-units.css +++ /dev/null @@ -1,4 +0,0 @@ -.units { - cancels-to-nothing: 1; - cancels: 6px; -} diff --git a/node_modules/less/test/css/strings.css b/node_modules/less/test/css/strings.css deleted file mode 100644 index b40cf6a..0000000 --- a/node_modules/less/test/css/strings.css +++ /dev/null @@ -1,55 +0,0 @@ -#strings { - background-image: url("http://son-of-a-banana.com"); - quotes: "~" "~"; - content: "#*%:&^,)!.(~*})"; - empty: ""; - brackets: "{" "}"; - escapes: "\"hello\" \\world"; - escapes2: "\"llo"; -} -#comments { - content: "/* hello */ // not-so-secret"; -} -#single-quote { - quotes: "'" "'"; - content: '""#!&""'; - empty: ''; - semi-colon: ';'; -} -#escaped { - filter: DX.Transform.MS.BS.filter(opacity=50); -} -#one-line { - image: url(http://tooks.com); -} -#crazy { - image: url(http://), "}", url("http://}"); -} -#interpolation { - url: "http://lesscss.org/dev/image.jpg"; - url2: "http://lesscss.org/image-256.jpg"; - url3: "http://lesscss.org#456"; - url4: "http://lesscss.org/hello"; - url5: "http://lesscss.org/54.4px"; -} -.mix-mul-class { - color: blue; - color: red; - color: black; - color: orange; -} -.watermark { - family: Univers, Arial, Verdana, San-Serif; -} -#iterated-interpolation .mixin { - width: 100px; - weird: 100px; - width-str: "100px"; - weird-str: "100px"; -} -#iterated-interpolation .interpolation-mixin { - width: 100px; - weird: 100px; - width-str: "100px"; - weird-str: "100px"; -} diff --git a/node_modules/less/test/css/url-args/urls.css b/node_modules/less/test/css/url-args/urls.css deleted file mode 100644 index ec53bd6..0000000 --- a/node_modules/less/test/css/url-args/urls.css +++ /dev/null @@ -1,56 +0,0 @@ -@font-face { - src: url("/fonts/garamond-pro.ttf?424242"); - src: local(Futura-Medium), url(fonts.svg?424242#MyGeometricModern) format("svg"); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html?424242") no-repeat 0 4px; - background: url("img.jpg?424242") center / 100px; - background: #fff url(image.png?424242) center / 1px 100px repeat-x scroll content-box padding-box; -} -#misc { - background-image: url(images/image.jpg?424242); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700&424242); - background-image: url("http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700&424242"); -} -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} -.comma-delimited { - background: url(bg.jpg?424242) no-repeat, url(bg.png?424242) repeat-x top left, url(bg?424242); -} -.values { - url: url('Trebuchet?424242'); -} -@font-face { - font-family: xecret; - src: url('../assets/xecret.ttf?424242'); -} -#secret { - font-family: xecret, sans-serif; -} -#data-uri { - uri: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA4KCwwLCQ4MCwwQDw4RFSMXFRMTFSsfIRojMy02NTItMTA4P1FFODxNPTAxRmBHTVRWW1xbN0RjamNYalFZW1f/2wBDAQ8QEBUSFSkXFylXOjE6V1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1f/wgARCAGuAoADASIAAhEBAxEB/8QAGgABAAMBAQEAAAAAAAAAAAAAAAECAwUEBv/EABkBAQEBAQEBAAAAAAAAAAAAAAABAwIEBf/aAAwDAQACEAMQAAABwG/nAABAJAFAAJgSAAAAAAAAAAAAAAAAAAAAAQAAABCJgABQAAAAARMCQBQACYEgANsst4GuAAAAAAAAAAAAAAAAgAAAAEQAACgRMSAAAAgEokCgAAEwJL4+jr08Onl9viX9G2HkHp8QWAAAAAAAAAAAACAAAAAIgAAKABAJRIAAACASiQKAAAXoz20Vnx/Rm2emvnzg9XhNc89oGuAAAAAAAAAACAAAAACEAACgAAQBMCQAAAAgEolV4+i8/r+benzbecO8wALXnGWUXz267n6+T3eFf065eMerwheQAAAA56Pd489qobecAAAAAIQAAKAAAIAAEwJAAAACLVnnS/S5z5/1d65FnLXL2/NDbzgbY7Yyr0caaKz4/ozbPXXDOsPX4JQL16uvk9/FJ9HkhDvOUBMaYent48x5fbTbKepk0z93zAvIAAiJgAAUAAAQAAAASiQAAAAEtbNl6NK1S7Za5becLANctcpQsA2y1xlCxatst9/Zznh+m9PmgU1y+h8gO+FquNNFHl916Q282uWuW3nCwIIAAAKAAAAgAAAAAJRIAAAACAbY7YrKCTemq0qAWNM9pc6rc9Verzc9wNMrTRl6LVOs9ctcu8wsAATGssZgISYAAAFAAAAQAAAAAAAEokAAAAA2x2xARtjsuSCSiRtSFraunn9f0fHzzx9Ga7rnFens+cFmuWuUoIAA1x2XEIAAACgAAAIAAAAiQAAAACUCQAAJiS+emYA2x1MggG2O2KzfOc9tFHl9t80+jyaZXz2882p78t/Nl9F8/LWLRplA6zAbY7LiEABQAAABAAAAABEwJAAAAAAmBKJAANctcgBrlqZAGhbG1QEAbY7LiEtpnfx/S6XOhj6PR5ltvNiPZ84BtjquQAAAAACAAAAAABAEwJRIAAAAABKBINctcgBrlqZAbY7GIAAG2OxiBems6Voy3nXHXXz5CwDXPXEAAAAEEwAAAAAACAAAAlEgAAAAAAG2WuJJoZ67+idct0oTna+iDxpiwABqzIA2x2MQWm2QAL86Xx6/K47qNcABBMAAAAAAAAgAAAAAJRIAAAAALGm/R92enl9Rx2CgAR5vUTk+D6V1z8o7/K04yy2xvIDWsFQa5a+yXDy+7wk3pp5fd9FxfOz2nPeneWA9nzwAAAAAABBMAAAAAAAAmBIAAAJ7/n6megcaAAAAAAImieHj/U4d8/NtMtMtstcSUSe3t0jLb5yprjOuO2epk8/rvekejyUGmQAAAAABAAAAAAAAAAAAlAkDfDtzroSY7AAAAAAAKXolwuPz30/k644eRrk9Xl6svXx2Y7fJvb4t8J0nEGhbG9AAABvh0pea2xsEEwAAAAAETAkAAAAAAAFvqeD9BnoHGgAAAAAAFL0ugKpeicTw/QfP65O3xO4dAZbR4feTnU6izh+b6Xw9c8EaZl4KgAdvjfT8d8Pw9Lm9chYAAAAABAEwJAAAAAAB1uvzujjsE6AAAAAARNEXFApel0z+X+r+U04v6sMeuPrHj9mOwKAB890/ZbrlEueufyPp464+Tn6HXrnx9Iz04nN9nj2xCwAAAAAgAoIBKJAAAAAPZ3/lPTx39Iw3z0BQABUsABRZJCq2ok2Fj5b6r5jvOcdctONO/wDOTzfq3J6WeuglAAAAAUvybOVU2wAAAAEEwAAKACAJgSiQAAB0ubpL6PR0K8d7a8GZe68Xs56kK83pJ4vToBmNIkBYrGiAridvl9c8eDXEXNq6+OXStVnY6vG6eWuk/J7WfTvF7eOwUy5lnr4CNcgvIAABAAABQAAAAQBMCUSAAW6/GS/WZ/P9fPTDx/Qjhev3+Y0359V6bxejm65lJuikaY1G7ONFBbOu9fMY/TcbTLy+jG1mVSxLsy+vx9T5nPTAa5LVGsZlBAAACAAAACgAAAAAAAgCYEoEgA26fGTr6nT5P18dfQub7ee9aTEL0AVCmqVvNJbqULF6i0VjDD31s5t+mMdmMvk4d6bZBeQAABBKAAAACgAAEIkUAAAAAACAASgSgSADf2cxL3vV8u56+tr8x6Je+5O869zHaWK20FCApEiulOanQ+epTTMOuQBBKAAAAACgAAAAQITAlE0AAAAAAACAAAASgSgSgSgSgaa+ZL7r84vUnlI6mHiF6w65lAAAAAABQAAAAAACEAAAJgSiQKAAAAAAAABAAAAAAAAAAAAAUAAAAAAAAAhAAAAAAACYEokCgAAAAAAAAAAAAAAAAAAAAAAAAAACEAAAAAAAAAAAJgSgSAKAAAAAAAAAAAAAAAAAAAAAERMAAAAAAB//xAAtEAACAQIEBgEEAwADAAAAAAABAgMAEQQQEiAhMDEyM1AUEyJAYCNBQ0KAkP/aAAgBAQABBQL/AKFKjMP0/CePFRi36dHIYzJM0gqUR/qC8STc/pd6vkeEeQQsP0K3JHEyH7ssJ2YmMaf0AVoVo5o9Db4+7OOQxmSdnFSGPTzhh2ZGUqfWjKPEaVmf6jRIGZxZto8eQ2KL0xuc7crDtePFgWtUkRj9ivE7W8ed6vk32jZhKnhBHIBIoknJmJphb1t8r0vZtk67Urrtjcxs+Juta1+kRypO71/+W2TybW4LsG3/AC5Mnk9e3ZsTi54nYguzG7bb1er5Dx8gcS/f699sfk2jglCmhcDeOzkR+T2Endsj7tr8MhSm64lArhb0ylTsXs5Efd7CTybE2oLsxuckldKZixUlWdyzMLbB4+QnT1/9yd+xOmxeC75O/IC9dE5A8Xr/AO5O/YnTYeEed6vkBcubvlhfLJErhhY23nx+wk8mxOmyTrui8mQpTpPyuB4mOQIp6bX9jJ37E6ZoLuxu25OmQ2nx7ZPJ7CTrsTpnH13/AOWY6ngb5P02R+T2L9NibB497ducffnJ3bE9kfHsj65nxb5O/Ne3JeLN3bOkfsR4slRmoYaU0mFYH4jV8R6OFlp4pACCN0ffs6RZR92xafDcCLexTpHh3ekgjTkWvTQRtTYSnidM14LskzTtr6emOhQ4FHDriLGVULURb1wBYwYcJzpMOj1JA8dHhHmguzG7Zf5YaHVWKe8lDYjlD3etAuYIRGPwJMPrVgVOScBmkes8FVjc5f1kTR+2P1mEi/BbpUsSyCRDG1HhHnGmlZ+EObcEq9INTMdTerhT6knT8H/llLGJFZCryd2WHXVLUovFnJ35dsfIiTW3o8Ilk/BXZMgOzBDjliIijVH3ZINTMdTcjBD75Rpl9CBcqNK/gN02dWxUeiTLBj+PIi9NhYzQwoA+GKfCuKP2LycGto8WP5vQ4Vbzfg9W2L0xS6ocsMeRiIda5aWNFSNoGooulMb5fQ4IfhL0zbKTjHSC7QyWn5EsZ+vFh1TK16kwqtTxshyw0GnLG+T0OD8f4DbRxaj0pOArDy/UTfpGrYQDRw8RpYkTPFG83oYJvpsCCOeOJzJsALDJu48I6RyjRSrIOex0qTc+iimaMxyrIORcX2Nt6tnIP5ZO7IEgw4kkq6vzsZJ6SCKOVHhkiqPFkUjq++SPVQ+QKXVmOJ2L0zlXTiNkYNmNhqarmsNMzNVxyJ5xGCbn0aMUaKVZRJh0emw8kdJipFpMTG1deQxsNh4nZi76cwCxkOhc8Ev3TNpipJGjMeJR9jSIlS4uuvpgSDFigcnjR6fB19OaKlxUgpcYlCeJqvfYONWIrVWoVc0OGw1p1JIhjalUsVtcm5zgT6ceNb7cwSK+rJRdz6uOZ46jxKNmUVqOGiNfDSviChCwoKRR+6r22FgTViK1VqFMTlLGsith2Qs3Dtjzw+H05TP9ST2SSulJixSurbWNqXpWkVarCgOF7bF41xFahk8URpsMrV8Ohg1pIkTLFy6V9re1JiZFpcWhpZEaibUBVquavVzR1Eg3y0irURXbnpFWAocDnJII1di7e5WWRaXGNS4uM0JEbIm1AWBF6+6uNEmhcZaa4191aa0ir2ykkWMSyGRvfB3FDEyChjDQxcdCeI0GU13GrEVc1c191aasa+1KlxKimYsf0UOwoTyCvlS18uSvmNXzGr5jUcTKaLFv/FD/xAApEQABBAADCAIDAQAAAAAAAAABAAIDEQQSMRATICEwQFBRFEEiMmFw/9oACAEDAQE/AfKvgcwX4eCLOt27eWjhf6iK8LDLuzaE8Z+1NiL5M2Pgc0X4FjWiP8hqpGZDwwx7xGN2ewjhQiKNcTRmNJ8Ffrz7eM04FGNpFLIBopy0u/Hgik3brQxEZ+1NiARTdr447y6LdPvTbh48xv0t1T8yMTGj+I68u2ZiHs5J+Jc4V0cPlz05GNpT6Asp7szr2RvMZsIYtv2FNPvOQ79jc7qT4i3n9bG4mQJ8rpNfCYaOzmTYSCfSdAxo8NDLuyvkxqebechpsgAskp8YIzNRjc3mR4bDZS1NY1uixDw38ffhmOLTyXypESTzPfUVlKo9KJmd1KSIfszTuQ33xZAi0jhq0VhmNIzIQgWpYmBvrt2j76JbwAVsilMei+W30pJTIb7YCz03C9g16I17JnUcOabrspZQi31wsR17FunUfxBuwtWRAUjr2LXV1H7AaQN8ZNdkFXpZvfSdwt0WfaTSJvswaQcCsoVFc+gW7QLTuQ7oEhZ1fRpZRsJvvbKzrOrHFdIuvwllZirP+E//xAAnEQABAwIGAgIDAQAAAAAAAAABAAIRAxIQICEwMUATUEFRBBQicP/aAAgBAgEBPwH2raod6eq+1XC2F5/TVGXhGk8fCp0fl2Daod6FxdfomOuGWo+1XC2F5ygZE5iYEptWeeu8S0q4q4qkHAa5KjLxCNJ4VOkZl2LXuiVe3Gs60K/+YQe5xQ6zqTXJtFrTOzVm2QrimyTATRaIwe0PEFH8dyp0rNe+42iU2oHYGiwptNrePSVnx/KNRNqvJ9NUp3heB6pU7NThVJjRNeZgoOB49NWkORcSqLSdfTOaHDVeBiAjQd6QrgpG091rZTH/AA7sl31muKDpyzCCrOIMLyJlRxPXcdkOyEzg9gev1ymMDNOsTA22nA8bJ46T9xp0TuMJVxQd95XIcdF3O4zMXYByvRMocdEtncZgRKIjOBPSKn7Vv1tNyu5VmIEoCOmRKLSFcpC02A7EmE3U9ogFWKNmVccAI7sK1WqDmiUBHpICtCgf4T//xAAxEAABAQUHBAIBAgcAAAAAAAABAAIQESAhEjAxUFFhcSIyQYFAkWADEyMzYnKAkKH/2gAIAQEABj8C/wACqD8QPKtj8PooYBwsfiGwUfw/l9B+G8UeVbH4EAQoXEdJIhQwDhYFfN/aCrmEGgoqBMEQJmt6T1wCjfQ0QPlwj5zHaZke57H3K0rTONzQwVTF1TFDjMGjMBtNa0miFAB1mzXVRuvQzD3MZgz7N17ujmDMo5RmjdNXTXOYDiUTE60fEi4auWec29GYM6PBVPKgoGVq59HMTK1xKES+hUSohRKHEjVy3xmJla4laN4RcnnMTK3xKN5wE0d3hbqFwzzmJlb4lhoJxtWSIXbVRRBZjFRmZG2YmVviQImdo7XA5mOYjiVriQnQXB3MkFB7I2lGZM8StcSNXDA9ycXLR2zJmU8GQbm4hpSRovCMp3OZHYv6WSVgAokhdwWIXhM9JVZh9yjc3PScyaGyiekLCJ3uKrthwuhr7XUy9o+pQNA9outt+cBJEI2VAVy+AUWqtX2h2Wo1TI1rIAiX8lW2sFDSaLKP3lsAq93wYihUC9praRhnxiVwiXxkh5Ncttn18GGrq46qDTgNaytSMj3JHLAPhcPgVZOKhpR4c0JOKP3auSNskta/CjrIGodQwkaL4jtdHSr9lG5J2TQ3yIBAfG4URgXkvqqURFrFd6pVWfJxuidUciG3wuJjs8saC4tDuD8CqiWAQZQ4yJo/Ghq5obOAUfBuSyyMV1VLqrpoV1B9trFw4yI8/BhKTI01s7cXFrzLVdq6WXnbIv6Soj4EbgobuiFvp8Ak+ETke2iofVzC64kaG6hpR8QrLY9rpMb79se8k0aUR9hQ/UruukzxZNlrVVDLS6oenxl5kaa9ymHCss4LuKxVhqu7sRcQHconJIsrfRaHZRZrwoNVWNnlUvYS09yQC/bHsyNNJo7OiyVXpMnU0FD9P7yeIUP1Kbu6mYroa+1SPpVgV1Ahd4liqKsXYfatHzLA+VAuorLOHk6qMgHnygxrJQrva+1Vo/eV0NNFXpL+pkFdsFiVRsr+c0qtkqC6pIOpgsCvP0sKOgV1duqgKMr+6S23jo4nM+krrEF0mMu8ncVVV8qv3JHVUwfUIQaK7/8Aiq0V0h1gYnNqLGPK6hBdLQdE4qiwWBWEuJUFs/B0JIlFo51RpdTMVWIVGhNg6LXl+KxVaugXRKic/o0VjFVZVYhdyoQtnUWCwWixKxVSv4eOqi0fwajRXeVisAu0LsC7QsYKpj/pQ//EAC0QAAEDAgUDBAIDAQEBAAAAAAEAESExURAgQWFxMFCBkaGx8EBgwdHx4YCQ/9oACAEBAAE/If8AwUUE5AqyIb9O1TNxIEY6/p70pNQnwAQEBO8T+mA5BDpuFOF36cEqENZnjE0Jy1UQR+giSidW6IMAapwwKQYs3XRTBiKrVN3+tAAhDJz0adCBW3x0XqVCicYBEIghj1RVCJBOiIADEduqTIYTi1CFRjDRAbRdDMHY1zQNcMRZAETdFFOWQOCboCqGPVBbnfZBKE2N2wVytK9AJOaF0/16Zh7KKFa8srXvhFoGD3REpjnKuYtkVcxb4VO5IRM1A9sBZMThFIcIZoWQ/wB5hAJKk/KJJEmpyAOEAeYXT2zJ1JxvEYaDlByEuqAt8XcKBvlCq9KWzbsPRBKrwzXTnH0sdwiHZ8os7gjdXOVjBpUpyuzmYvdDoiyLlG5rl3DTsOWttObf0GFSoI3CIbP8fo+2IyX7hp2Ay1NvizeKTzhWhDKELSUA7IxgA5OiIAMRocvw/no1DYnt3H3uX5uVpLcwoVTIA0VinOuUFVwjKuU73AcnxOjA33I7gKF7vpH4iwxBfIS60rAD2x0AdciT0YFuA+e4Che7y/V3GWBufI7AS63kLLeQsWSWKpJtBTjqCdngK5HuAXvcv1dxlo2Az1H0E4yRAEkJyhOFU4EgDgfNEWh95/nuNdfL9XcZGButwDnhZN9cSnISwUN4jlElkfhLencaq4dE4XB0BH0W/wByPIXIgSwpiJdQ5zKLu0BcolySde41eV83JEl2HQjtPdkpHkq46dgBliLfzjuUzWJGX6q2SG6HoV/oGSOybEWW6Nzb5BKotQe3cpchj8OCqnIK0OREcYUdJYFAXBQyeYS0ogwEc5hd6gl4RLkk5DA3MdewfKDlV7xsdUYp7jO6T10SvfJ0BAGAHlaMLwX9YlXGuKY+Ls85YG2Yw2TYb8wQOnuIEN/xHGjwirJLZGJj24YC5KYf6jrSwG8kwRslzQf4ZOTFuQcaIPmI0F1F6RwryOYYqsyaSPbSAA5KeciqfwDSaJqPDTRFIWIx4Awech9IBGjDAE5mpxDmxTFhQNy47ayG5P4L1hsGHDQhYLzfDcxfXziA5ZAiqRKJztk5I6OU66ZAaVJ2T5RYdssjqgAAAoPwa8WOp7Q2TGqkcwpiM/QScGotiA5AFSjDgKQeMfsadHmkR2R7Ovx/CmDcfI0DvUZPZOJWCVMPTUMnCEMBJNgnygaCw6LlsmyHYjWalBA6D8HQvCEBsnslAGri1cHEAMDhEXdxQbH4KyXogrmBQ2U+wW6Tw6kxvAdi9SPwvRyCWDoKzUynBrLFo2A9ARg/yYikN4VSByMpw1igCNAg7E5/D+CSwcoKjUzkk17ANwLDkxSao3R1VDhBgQWA1EQBgBU1/GTWY3wAJLAOVQu0W7I4zX/BSa/LwCBhV4w4gzATBN7oSGSDPlAsAI3RR4cFUoBvj6PdiM0dxDRXB/AmeIyPBTQMDQoGBuoK98AY8hRuNX4AdBA6MdqS/Y4lOtHtN0QMQGRUZShhUwgGDZDANJZSSpUxHEMUEONiHOHrNV37IIxIdXRyYgIiBllUHcZzvwaGgIodydlDENsUnQIGQlg5QVGssjwUAWuQ49RggucKm5Wl7iAy4J+VbwwEdReUCDIL56yD9kQhHJ7IHGYhRmNaSbbyHqMa1Iiz5wVV3EBAOTjboRF0AAABkieZyiTggFiyDAJTQekg1yOWIZeh7D04NChTHslAghxONMGyIYG3Ikk5Lnsw0UgjUJsmehAghwXCAxbkCrWyE5wHc1D+aGRHskqkeSEABwQcaIZHrThbmLFM0ByFzeiJqMF0fMJFW2QmBJTSj3It8ZvgwPI2RWjKj2WuIDlhVeVXJMhVJzkqwOCv9Kqo+e1jPrFFC+ZRAvTD3oAv4oKOiNNFwvGHvxzBTNMalClDfTIIDQ1K0W52FbgeMAKID9R4w1U6GyMCUNCdZ7F+UJTqXtiASWAcoxAOyxUVt6DjudfWsaI+OcELcOUyiSomU4WI4T0EQdx5KfJiOjMICDTAlqqp9gmurLIE1lQp8YNxCDkAAGCaoWu4hUFBvhJl/Yd2BE5EHZVZlK4e9VEeUwTVwjNzYpmvpT1WfWUDJxC4BtgbDcYYZIeS9XVTgcLIEEOCiAagHBCkAVUoaZDfxi6KTJ7zRFHJ5lAUOC+QKr284NIqaYQHldMFCDyn/wB0CHYDynvmbYECXEHZMP8AcJrHomGoknqufKnqboEGhT7eBdaO9Bbv9NHlGnIcgtN+CjqEaJHKqi8rU0e5VVqMWKu+9b1SsnkL6QiQOAblOQB0T8H9GoA8qhIANB5CGsRD/tL/AGEdES01wCNObl/8UP/aAAwDAQACAAMAAAAQCCS//DR99tBBBBR1+++++++++8xBBBBF995DX/6CCCC2/vDV99tBBJBBRx888885xBBBBBF999BH/wD4gqggkv8A8sHX321GqkIEEEEEEEEEEEEEX332EP8A/wCggvigglv/AMsHX32zD6IkEEEEEEEEEEF3332EN/8A6CCC+uCCC2//ACosfffVnYsCAQQQQRzTfffeYQ3/AP6IIIb764IILb+7d3rX1a/Hk03gk03sMzT3EEd//wCiCCG+2++KCCC2/O/hBV299e99OKf9/wBj+gQz/wD/AOiCCCe+S+++KCCCy/8A1T1ggYs8vjPfucYUih3/AP8A6CCCCe++CS+++KCCCS2V/qPLJahdCBqDDDL/AP8A/wDyCCCCe++6LCS+++OCCCC72v8A/wD1r9852Zr/APp//wAgggghvvvugrQwkvvvrigkiQl8unv/AOn+U3v/APtyCCCCCO+++6CD9tLCS2+++OCpCVCBCyyhylaHiCBCCCCGe+++yCDf999LDC2++++lCcJTCCCxCBCpCQJCCGe++++iCDf9R999LDCS2+62P888f7IhCZCvKPMP+++++yCCHd99BR999vDCCy188888885AOtK4+P3j+++yCCDP999xBBB1999PDU88888888j8P9pr1V496yCDBHf999hBtBBBR9999l88888888n8nWp8fvfCBCDTV9995BBB9tBBBBx9938888888708XEy/8880Mrz+d95hBBBN899JBBBBxe/888888v8AO/JwFuPPPPPPOOYQQQRXfdPPfbSQQQQ6d/8Az9/3/wA/8sd5FdZbz8wwBBBBN998AQ8899tJBBRjFHEyUnQGzgdp9hWxhwBBBBN99984AAA08899tNBBg18vro5/j0PfvfoBBBBFN99984gAOAAAQ088999NNBBBDJ0AATAQ/RBBFN999988wAAA+uIAAAQw8899999NNNNNOcuetN99999884wAAAAO+++uKAAAAw088899999999999998888wgAAAAO++C2+++uKAAAAAQw0888888888888wwAAAAAAO++++CCS2+++uOCAAAAAAAAAQwwAAAAAAAAAAGe++++yC/8QAJhEBAAICAgEDBAMBAAAAAAAAAQARITEQQUAgUWEwUHGRcIHRof/aAAgBAwEBPxD7r3B7/H2eyo5KiFOmDrZvrERI/ZU7w7ht4fmELvyzKzuT3+PsJRst+qmFGxyejqKmnJUB1mWdtvtojstnqrT3Guuh+/HBzQkwZiUOjVXLd/b/AHlj+07hN4fmXD/LN8Mx2Kz/ALMgE1NcEwaaMMQ4mbhTfv8AuEEaeMRRs+Z1YR5d8vtwFQwlRAU1H14zLqtXymWZI4qojvyHfBvkjge4fTPuOAau/wAzHPEfQbj5Dvg3z1EIunX9QAXK41sorfdxKa4fQb8l3wb5Yt2xgxa/8lo0o7jALoZorWz/ACFWg5PJd8G+XfJvgDayWS0pCkFu3PXku+DfBv0HFudTBVn6iqlrz15LKuF2p8Eo69HXBx1wAvUAKWP2eThgA16EHcU1wDx1wJASg0QT2FjmWEqLsHse78evL6DL8kSo8UL4SXT2hVlXLg10eNiPovA5RzDYIlkRGmdcPoNgjjwRi/onDKOUh3PglJfCuRbc3eCKH0GHB7zrBqmDZZ6AG+BdQUAUTNeDoMG9evvh46RjwOnroX4SBzBmXCmBBHXCXAqLUOO+NOXGJcTmw9xBHXA7R14aaTAMW1KdMvuQX2l5le0WoFSybYw4hjhFFgObfH0kB3AOo+01MQq5kisJmI7J8EwEuX5oWmC7lIPBHTKvM/PFfEeyN9jWk+afJFu/4J//xAAmEQEAAgICAgICAQUAAAAAAAABABEhMRBBQFEgYTBQkXBxgbHB/9oACAECAQE/EP2rVa9ff6fDKw3DPbg/WD+YIln6Uae4pDDR/iYCNVr/AL+hchVUy2n4dyuWYYZ7cPVqAA7+V16QqBpf48dAHqBt3mWOZQeZAiU1DUOS5bPUxCtXzhEw3G9hMNW+vUSgu/GcvTO8IcmuT3xX2SBiDuH2iVtrrlBYwkvWbYa8g1w65Yb+kxGn1w5dVMyMw+DqHkGuHXPcIWNkBBDJMDy+vqDZwfB15Jrh5IH2EQdT7RDUIBVbCe33H6V8vkmuHk1y64bC8OZsGKjcHPfkmuHXDr4PFAF8AU0c9+STUatz7JZ38O+Hjvi4EVaqf9+UlXfwFNQLcCDjvhAViUtjzq1FtYyQrlffj34PwErwwbhxYrgwHcbcJDKefBxTiEdKDTBEsnfB8HVoN+Cs1+F5s5QjU+yWtfE6KmrwVl+A5Z2iXZEpp+CJXCm4iIrZq8HcIlb+fXBx2hDhNvnYrwgpiVcGNsqIm+BqLcC48dcbcmcyoDAj6MRN8LpDHhhtMgQRuW7JXViHuViXDMcymahJmOeAEGR5o8faRXUUbh7m5mN1MQCMxBdM+yZWVK81DuJ6l4lETZLqf24v7h0Q/wBGoZ9U+iBdf0J//8QALRABAAECBAQGAwEBAQEBAAAAAREAITFBUWEQIHGBMFCRobHB0eHwQGDxgJD/2gAIAQEAAT8Q/wDgrIdKU7RP+OCBNKOZs+hFWaAgTOc6i6FQn/GQJS+JsJg0ZmiULzQB2zoiXPFpIY/4uY35FGD9vSmcAlMGB/xYxhRqKhUuFaLXtLHvPpxOA4xlTqI2/wCBFiiBIDhJj4L3EoCgeYXQLcDEmnAN2mgMkzKS4KUYnjpGPmAm6oZBxtakdZxLU8C8MF7wt7xxgRNWAI2TBq4kYhnUUXoJclNAkZ+LeKZfRI7e9IFxA+XYNAGSmgBjMFZK5AoO7CyocJiBnzb5E6YvwcZCOS0UPV0O9YiDgGRpyLYFi7BhSjwJBmi2mONsqmSCxu0mQcXKnheEpT5YoDyTF6MNndi35jm6oN3QPlxmhZk1DelthTyIu66O3KWKDCE6Xn6oH5pQwH5rAHPWQre8Chre8Cl4QisEEpis4SHV8sXcUJnFb1TWMK34g92frm6AvqflzEfJWa5CnKlJXkDcqOlQhMBpSs5YZEdKigXFdOCiRbiDvy5bxWMakTVukHt8wbTN3sB++USDVpWcl9Nvrmt+3qDgenKsuSI3a9m9x5hGDW9Sri0Y1hNR6CPrzDuMu68uyY9631H35TwJ9ApW809uY1cBGVKrLV4aJ9eDsGFb3r3fMLX+wcveHsvzLVXsYvAzKj7Zk4kdaRX579uXv4JGXAR6DNJRYrPmGLoHty43Ue/mtBq9S7wUS0pMRBRxBYDJmkpKgBdpQWKC5y2LqD2eDb+rjj3jzHD6Q5ca0+OPvlkzCZehepEzGsKoTOdO77kSFOHvm040PJNQBukQUQBmR2knksXVHv4PQsDqh8T5h7w5utXRe6H3y73O6eJDfisEtSJqxfr5Pri4hE4BTdBisRlD4O4jugJ+vMPeHh9BvVH2scRTCjqVPSkxUhmJepojMEHSeKFtkdYp3JhslOwXEaGpEYebfjfSwfD5goR0owfgoAlgpwfD7j757MnL0H6cQBGoICSNNvC3GbUtwoq0Qtiy5U642Qnfm6x3qfMT0g+3gwb1it7hOfrcHVB8Lxguz5LhVj/ojlCAJVgokxki9LD48xv1D9uW8c1/I8nWYOsW8C7Zkdgr8ORCLygqY0yEmcU5VIr10N7jPKEFPYRd9imvhUvmN+pj6Mct8Nfjn65Ouw+s/Xgd+11X4DkBPwC+xNKpXFvxs/mDl6sg6o+C+Zfwhx++W8dfnv1yWT9AR984KgErTITIQ9kfXJ6d+qx8Tx3TNb/LkCoKkmCOjYP2np5lZdH1EfXHAg1LPWv7A+k1pw5JxR91/wCa0HH9VPqv4VetaR9liu1SIugjmBYlXoCX4pnEqyvJvBuwI++IIvBl6UqquLyPGYqBQ3oS/wAalYERhHEfMe7U6ifujC6ZF3oUMIC3vbCgAgIOeKE0E1PLrH4LU92XZ+z8VMIOq9Rx3lDqL8Dy2Llnq3fnj0f77wipxYzXd4SIdKioXESiJIlybrRpgYMS4Fi9R1klNFKgRGEcR8uYq6AKBhQ9vFJJDhQbL8iDuYVLd6J30rdjHTB8PryTtYRLoVvvJxx9fZCoO6L2b8Veq3ZvnwUdfCUw4PZIQySJSNzgq1/a+WpgVAGdCSB9DY/wIE4Behg5xbI02pc+OHj/AO2iz4nkuZJJoLSLis4aBSqpWeAwyVhKAyd+MCDGt5vQGB6y+nlobeDka/4VJzB2Z+00WIqN8BaxP1UNRyGA1OG+EuhY4kAYrFFgWEu2FKBicnd83vY9j3oLBaVpKqD0QutW3gsaAWD08saAxy9CjLgID/C2zKTu/wB78VAxiz1T2EIG+5QLEiDtZ954yyS/pcHx4v8APFjUpAUh2SOgI+uL0PbL9vx4IQFzrBhSQo5eRxgvW6P8OF2rlx9Bl7cgLktBmhYpmWcc54k6MOBBIcGlSKyjLbgIlwRdTD3ikouKzwEEgbIxaeIyNAsHg9F71f1UZkCR08ibFRFEBYj/AAvDxcO/6oADAI5C65Qd39fNFZltGTnxV4tb7cU5ExEmnCM5KSrADBYWC8fHpTFidzSYyyLNMaLIc8jux9PCUVe30Kkxgz28ik6SB/xfRPd5ARWAlpgYjLv+qOBuh+/biMzdA3cfk8AqAU2y6cTpM1FXuPhylZLwVhKkUAhmJ9XyLocPt/hBsAJaYzjLktFoPQu/2/CeMh7cNBkTRS0KXRw8G/8AMAZDf0o0mq4HQoBAA0KihNEmiXp5ipE/Rke/AEpMApiQkXMn54ISMh8vkRGauf4bpZpehy7A/a/tuBkW8qkhRxK7AnVtQoiWSgNtwNTXwASGIth/7yuXrITUsdBApidiJeMaGwPSX8ivNUt03oGppE/wXlg+gckWkuAauVXNlC7q58Ly2rYJnvW/1fQsffCItkZJpQpYJcbn+BfoQqdmVLyO7szcw7aVDFrWJ4PrPM68qBxmH3RGMAjk2qT65ffIoEuoO7RqwEHbH3niYWeCMVPIuw21KsB2INzt4wwXGKex5ItVO4xGVqu8aTHOplRR/EEmdbtKTc7c7k4xmDRq3c0pU1JLUX3eN8/wy8hOkAS0wjhpbbenJAr56IPelUqyt3kEK3K4E3XsfNHFSSNnW6aVGQg0lUJvUXUJz5FiRrrwdhjcFAwBqM86Fwlj5NJgRKufknyhVs1OUAXsTptU/fdqepnU1m4FgdvxUCRLIYO/5qIG0bD1wo4BMFSPgGEoXE6GtYTAW5LTwfRP3ysDRMxsck5Ze27UM6bkOXTkZQsR6t3496uBCI6mx7tS6tEUhmr9QoAHMWB6NAEA4I8SldNUvpjQK8to79inLkZVbvkyNWkSiYOCHF10oEJLiMjUIS2QnfGnyldc9Sm5QziPWPuo0RMbj1KgRfWA+qiIi5P7VFGajPFQKsBjUgOgOVPkGw6NR4rufJatFWwn6oJY7G1HbH4qcY8Tky7cg4aCaZSgr1NEc26A14RIALowDVaNvW2QZbFPiZTxQAVMAZ1Lhd6j+ihcewjD3+ORWevhQJB/ZvQ8H6I+VwSbNd/So95csbo0AFCOZw9ZIVq6iWrlN96R+qJJ+pd81gjaDf5WojoaP1RUcC5fFJEtAcX4oRJGeChdp0lS1gGnekGCCYRRkmtXOjUDGep9ytIXRfioUgxcYbUIgjI4VCuBg4qhlF7GXYNaw7z1LVZ10BDox9+JpSWAJWhYf2LvSgVYC6tIK4+yw/PfzNEhdV6KhULrnpjULds3OVITkB80YlzN1cVpBIblM8le9Pauk9vxSxxCW8elAoJxGhkUYkyfyoCUJtwAKoDOojFlbowqSw950U3ADQ2alGIlCPX5e1DyQECBTMQ4z/rSlh2H5UX1xu+vAMFGD+L+bFSrBUNQIR5C/rUSPallETsJdRyYrYDNpEpOJttSCmWJk1gGd3Nf+RUmKdCkUYvQLTkTRiMHFZcEskmqj4qeR9z8Url3SYFItKeI9xUaSbUfBG5NbQ6UlInWL0pbTS/rkYq+GYtKkgPPTbzkVSKJmUbTiwfmqKCtVDUGTNk/FEnQKCJIibVhKbQ3qwTK3XVpIWQYCyVkV2Q1HiHpRajmKyqESYhZ2cLkNZRWWCUSZO91YzWCxHSkEIjCcFSNYRYYhvQsgm1Ib/JxonSBh4Dz9Wa4DYhFQLO3o9x4n4rDdtZQ89EFCRmXt/GBSARJHKso/wAsaixewrQ7yFaIGqy0RuFmZx7VPZcbUQmc1u0wjorH7pMx83/hRRkUdqyMtFWRDRvwvBPgooOK91f+ypxcuq0YgSqeO3T/APih/9k="); -} -#data-uri-guess { - uri: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA4KCwwLCQ4MCwwQDw4RFSMXFRMTFSsfIRojMy02NTItMTA4P1FFODxNPTAxRmBHTVRWW1xbN0RjamNYalFZW1f/2wBDAQ8QEBUSFSkXFylXOjE6V1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1f/wgARCAGuAoADASIAAhEBAxEB/8QAGgABAAMBAQEAAAAAAAAAAAAAAAECAwUEBv/EABkBAQEBAQEBAAAAAAAAAAAAAAABAwIEBf/aAAwDAQACEAMQAAABwG/nAABAJAFAAJgSAAAAAAAAAAAAAAAAAAAAAQAAABCJgABQAAAAARMCQBQACYEgANsst4GuAAAAAAAAAAAAAAAAgAAAAEQAACgRMSAAAAgEokCgAAEwJL4+jr08Onl9viX9G2HkHp8QWAAAAAAAAAAAACAAAAAIgAAKABAJRIAAACASiQKAAAXoz20Vnx/Rm2emvnzg9XhNc89oGuAAAAAAAAAACAAAAACEAACgAAQBMCQAAAAgEolV4+i8/r+benzbecO8wALXnGWUXz267n6+T3eFf065eMerwheQAAAA56Pd489qobecAAAAAIQAAKAAAIAAEwJAAAACLVnnS/S5z5/1d65FnLXL2/NDbzgbY7Yyr0caaKz4/ozbPXXDOsPX4JQL16uvk9/FJ9HkhDvOUBMaYent48x5fbTbKepk0z93zAvIAAiJgAAUAAAQAAAASiQAAAAEtbNl6NK1S7Za5becLANctcpQsA2y1xlCxatst9/Zznh+m9PmgU1y+h8gO+FquNNFHl916Q282uWuW3nCwIIAAAKAAAAgAAAAAJRIAAAACAbY7YrKCTemq0qAWNM9pc6rc9Verzc9wNMrTRl6LVOs9ctcu8wsAATGssZgISYAAAFAAAAQAAAAAAAEokAAAAA2x2xARtjsuSCSiRtSFraunn9f0fHzzx9Ga7rnFens+cFmuWuUoIAA1x2XEIAAACgAAAIAAAAiQAAAACUCQAAJiS+emYA2x1MggG2O2KzfOc9tFHl9t80+jyaZXz2882p78t/Nl9F8/LWLRplA6zAbY7LiEABQAAABAAAAABEwJAAAAAAmBKJAANctcgBrlqZAGhbG1QEAbY7LiEtpnfx/S6XOhj6PR5ltvNiPZ84BtjquQAAAAACAAAAAABAEwJRIAAAAABKBINctcgBrlqZAbY7GIAAG2OxiBems6Voy3nXHXXz5CwDXPXEAAAAEEwAAAAAACAAAAlEgAAAAAAG2WuJJoZ67+idct0oTna+iDxpiwABqzIA2x2MQWm2QAL86Xx6/K47qNcABBMAAAAAAAAgAAAAAJRIAAAAALGm/R92enl9Rx2CgAR5vUTk+D6V1z8o7/K04yy2xvIDWsFQa5a+yXDy+7wk3pp5fd9FxfOz2nPeneWA9nzwAAAAAABBMAAAAAAAAmBIAAAJ7/n6megcaAAAAAAImieHj/U4d8/NtMtMtstcSUSe3t0jLb5yprjOuO2epk8/rvekejyUGmQAAAAABAAAAAAAAAAAAlAkDfDtzroSY7AAAAAAAKXolwuPz30/k644eRrk9Xl6svXx2Y7fJvb4t8J0nEGhbG9AAABvh0pea2xsEEwAAAAAETAkAAAAAAAFvqeD9BnoHGgAAAAAAFL0ugKpeicTw/QfP65O3xO4dAZbR4feTnU6izh+b6Xw9c8EaZl4KgAdvjfT8d8Pw9Lm9chYAAAAABAEwJAAAAAAB1uvzujjsE6AAAAAARNEXFApel0z+X+r+U04v6sMeuPrHj9mOwKAB890/ZbrlEueufyPp464+Tn6HXrnx9Iz04nN9nj2xCwAAAAAgAoIBKJAAAAAPZ3/lPTx39Iw3z0BQABUsABRZJCq2ok2Fj5b6r5jvOcdctONO/wDOTzfq3J6WeuglAAAAAUvybOVU2wAAAAEEwAAKACAJgSiQAAB0ubpL6PR0K8d7a8GZe68Xs56kK83pJ4vToBmNIkBYrGiAridvl9c8eDXEXNq6+OXStVnY6vG6eWuk/J7WfTvF7eOwUy5lnr4CNcgvIAABAAABQAAAAQBMCUSAAW6/GS/WZ/P9fPTDx/Qjhev3+Y0359V6bxejm65lJuikaY1G7ONFBbOu9fMY/TcbTLy+jG1mVSxLsy+vx9T5nPTAa5LVGsZlBAAACAAAACgAAAAAAAgCYEoEgA26fGTr6nT5P18dfQub7ee9aTEL0AVCmqVvNJbqULF6i0VjDD31s5t+mMdmMvk4d6bZBeQAABBKAAAACgAAEIkUAAAAAACAASgSgSADf2cxL3vV8u56+tr8x6Je+5O869zHaWK20FCApEiulOanQ+epTTMOuQBBKAAAAACgAAAAQITAlE0AAAAAAACAAAASgSgSgSgSgaa+ZL7r84vUnlI6mHiF6w65lAAAAAABQAAAAAACEAAAJgSiQKAAAAAAAABAAAAAAAAAAAAAUAAAAAAAAAhAAAAAAACYEokCgAAAAAAAAAAAAAAAAAAAAAAAAAACEAAAAAAAAAAAJgSgSAKAAAAAAAAAAAAAAAAAAAAAERMAAAAAAB//xAAtEAACAQIEBgEEAwADAAAAAAABAgMAEQQQEiAhMDEyM1AUEyJAYCNBQ0KAkP/aAAgBAQABBQL/AKFKjMP0/CePFRi36dHIYzJM0gqUR/qC8STc/pd6vkeEeQQsP0K3JHEyH7ssJ2YmMaf0AVoVo5o9Db4+7OOQxmSdnFSGPTzhh2ZGUqfWjKPEaVmf6jRIGZxZto8eQ2KL0xuc7crDtePFgWtUkRj9ivE7W8ed6vk32jZhKnhBHIBIoknJmJphb1t8r0vZtk67Urrtjcxs+Juta1+kRypO71/+W2TybW4LsG3/AC5Mnk9e3ZsTi54nYguzG7bb1er5Dx8gcS/f699sfk2jglCmhcDeOzkR+T2Endsj7tr8MhSm64lArhb0ylTsXs5Efd7CTybE2oLsxuckldKZixUlWdyzMLbB4+QnT1/9yd+xOmxeC75O/IC9dE5A8Xr/AO5O/YnTYeEed6vkBcubvlhfLJErhhY23nx+wk8mxOmyTrui8mQpTpPyuB4mOQIp6bX9jJ37E6ZoLuxu25OmQ2nx7ZPJ7CTrsTpnH13/AOWY6ngb5P02R+T2L9NibB497ducffnJ3bE9kfHsj65nxb5O/Ne3JeLN3bOkfsR4slRmoYaU0mFYH4jV8R6OFlp4pACCN0ffs6RZR92xafDcCLexTpHh3ekgjTkWvTQRtTYSnidM14LskzTtr6emOhQ4FHDriLGVULURb1wBYwYcJzpMOj1JA8dHhHmguzG7Zf5YaHVWKe8lDYjlD3etAuYIRGPwJMPrVgVOScBmkes8FVjc5f1kTR+2P1mEi/BbpUsSyCRDG1HhHnGmlZ+EObcEq9INTMdTerhT6knT8H/llLGJFZCryd2WHXVLUovFnJ35dsfIiTW3o8Ilk/BXZMgOzBDjliIijVH3ZINTMdTcjBD75Rpl9CBcqNK/gN02dWxUeiTLBj+PIi9NhYzQwoA+GKfCuKP2LycGto8WP5vQ4Vbzfg9W2L0xS6ocsMeRiIda5aWNFSNoGooulMb5fQ4IfhL0zbKTjHSC7QyWn5EsZ+vFh1TK16kwqtTxshyw0GnLG+T0OD8f4DbRxaj0pOArDy/UTfpGrYQDRw8RpYkTPFG83oYJvpsCCOeOJzJsALDJu48I6RyjRSrIOex0qTc+iimaMxyrIORcX2Nt6tnIP5ZO7IEgw4kkq6vzsZJ6SCKOVHhkiqPFkUjq++SPVQ+QKXVmOJ2L0zlXTiNkYNmNhqarmsNMzNVxyJ5xGCbn0aMUaKVZRJh0emw8kdJipFpMTG1deQxsNh4nZi76cwCxkOhc8Ev3TNpipJGjMeJR9jSIlS4uuvpgSDFigcnjR6fB19OaKlxUgpcYlCeJqvfYONWIrVWoVc0OGw1p1JIhjalUsVtcm5zgT6ceNb7cwSK+rJRdz6uOZ46jxKNmUVqOGiNfDSviChCwoKRR+6r22FgTViK1VqFMTlLGsith2Qs3Dtjzw+H05TP9ST2SSulJixSurbWNqXpWkVarCgOF7bF41xFahk8URpsMrV8Ohg1pIkTLFy6V9re1JiZFpcWhpZEaibUBVquavVzR1Eg3y0irURXbnpFWAocDnJII1di7e5WWRaXGNS4uM0JEbIm1AWBF6+6uNEmhcZaa4191aa0ir2ykkWMSyGRvfB3FDEyChjDQxcdCeI0GU13GrEVc1c191aasa+1KlxKimYsf0UOwoTyCvlS18uSvmNXzGr5jUcTKaLFv/FD/xAApEQABBAADCAIDAQAAAAAAAAABAAIDEQQSMRATICEwQFBRFEEiMmFw/9oACAEDAQE/AfKvgcwX4eCLOt27eWjhf6iK8LDLuzaE8Z+1NiL5M2Pgc0X4FjWiP8hqpGZDwwx7xGN2ewjhQiKNcTRmNJ8Ffrz7eM04FGNpFLIBopy0u/Hgik3brQxEZ+1NiARTdr447y6LdPvTbh48xv0t1T8yMTGj+I68u2ZiHs5J+Jc4V0cPlz05GNpT6Asp7szr2RvMZsIYtv2FNPvOQ79jc7qT4i3n9bG4mQJ8rpNfCYaOzmTYSCfSdAxo8NDLuyvkxqebechpsgAskp8YIzNRjc3mR4bDZS1NY1uixDw38ffhmOLTyXypESTzPfUVlKo9KJmd1KSIfszTuQ33xZAi0jhq0VhmNIzIQgWpYmBvrt2j76JbwAVsilMei+W30pJTIb7YCz03C9g16I17JnUcOabrspZQi31wsR17FunUfxBuwtWRAUjr2LXV1H7AaQN8ZNdkFXpZvfSdwt0WfaTSJvswaQcCsoVFc+gW7QLTuQ7oEhZ1fRpZRsJvvbKzrOrHFdIuvwllZirP+E//xAAnEQABAwIGAgIDAQAAAAAAAAABAAIRAxIQICEwMUATUEFRBBQicP/aAAgBAgEBPwH2raod6eq+1XC2F5/TVGXhGk8fCp0fl2Daod6FxdfomOuGWo+1XC2F5ygZE5iYEptWeeu8S0q4q4qkHAa5KjLxCNJ4VOkZl2LXuiVe3Gs60K/+YQe5xQ6zqTXJtFrTOzVm2QrimyTATRaIwe0PEFH8dyp0rNe+42iU2oHYGiwptNrePSVnx/KNRNqvJ9NUp3heB6pU7NThVJjRNeZgoOB49NWkORcSqLSdfTOaHDVeBiAjQd6QrgpG091rZTH/AA7sl31muKDpyzCCrOIMLyJlRxPXcdkOyEzg9gev1ymMDNOsTA22nA8bJ46T9xp0TuMJVxQd95XIcdF3O4zMXYByvRMocdEtncZgRKIjOBPSKn7Vv1tNyu5VmIEoCOmRKLSFcpC02A7EmE3U9ogFWKNmVccAI7sK1WqDmiUBHpICtCgf4T//xAAxEAABAQUHBAIBAgcAAAAAAAABAAIQESAhEjAxUFFhcSIyQYFAkWADEyMzYnKAkKH/2gAIAQEABj8C/wACqD8QPKtj8PooYBwsfiGwUfw/l9B+G8UeVbH4EAQoXEdJIhQwDhYFfN/aCrmEGgoqBMEQJmt6T1wCjfQ0QPlwj5zHaZke57H3K0rTONzQwVTF1TFDjMGjMBtNa0miFAB1mzXVRuvQzD3MZgz7N17ujmDMo5RmjdNXTXOYDiUTE60fEi4auWec29GYM6PBVPKgoGVq59HMTK1xKES+hUSohRKHEjVy3xmJla4laN4RcnnMTK3xKN5wE0d3hbqFwzzmJlb4lhoJxtWSIXbVRRBZjFRmZG2YmVviQImdo7XA5mOYjiVriQnQXB3MkFB7I2lGZM8StcSNXDA9ycXLR2zJmU8GQbm4hpSRovCMp3OZHYv6WSVgAokhdwWIXhM9JVZh9yjc3PScyaGyiekLCJ3uKrthwuhr7XUy9o+pQNA9outt+cBJEI2VAVy+AUWqtX2h2Wo1TI1rIAiX8lW2sFDSaLKP3lsAq93wYihUC9praRhnxiVwiXxkh5Ncttn18GGrq46qDTgNaytSMj3JHLAPhcPgVZOKhpR4c0JOKP3auSNskta/CjrIGodQwkaL4jtdHSr9lG5J2TQ3yIBAfG4URgXkvqqURFrFd6pVWfJxuidUciG3wuJjs8saC4tDuD8CqiWAQZQ4yJo/Ghq5obOAUfBuSyyMV1VLqrpoV1B9trFw4yI8/BhKTI01s7cXFrzLVdq6WXnbIv6Soj4EbgobuiFvp8Ak+ETke2iofVzC64kaG6hpR8QrLY9rpMb79se8k0aUR9hQ/UruukzxZNlrVVDLS6oenxl5kaa9ymHCss4LuKxVhqu7sRcQHconJIsrfRaHZRZrwoNVWNnlUvYS09yQC/bHsyNNJo7OiyVXpMnU0FD9P7yeIUP1Kbu6mYroa+1SPpVgV1Ahd4liqKsXYfatHzLA+VAuorLOHk6qMgHnygxrJQrva+1Vo/eV0NNFXpL+pkFdsFiVRsr+c0qtkqC6pIOpgsCvP0sKOgV1duqgKMr+6S23jo4nM+krrEF0mMu8ncVVV8qv3JHVUwfUIQaK7/8Aiq0V0h1gYnNqLGPK6hBdLQdE4qiwWBWEuJUFs/B0JIlFo51RpdTMVWIVGhNg6LXl+KxVaugXRKic/o0VjFVZVYhdyoQtnUWCwWixKxVSv4eOqi0fwajRXeVisAu0LsC7QsYKpj/pQ//EAC0QAAEDAgUDBAIDAQEBAAAAAAEAESExURAgQWFxMFCBkaGx8EBgwdHx4YCQ/9oACAEBAAE/If8AwUUE5AqyIb9O1TNxIEY6/p70pNQnwAQEBO8T+mA5BDpuFOF36cEqENZnjE0Jy1UQR+giSidW6IMAapwwKQYs3XRTBiKrVN3+tAAhDJz0adCBW3x0XqVCicYBEIghj1RVCJBOiIADEduqTIYTi1CFRjDRAbRdDMHY1zQNcMRZAETdFFOWQOCboCqGPVBbnfZBKE2N2wVytK9AJOaF0/16Zh7KKFa8srXvhFoGD3REpjnKuYtkVcxb4VO5IRM1A9sBZMThFIcIZoWQ/wB5hAJKk/KJJEmpyAOEAeYXT2zJ1JxvEYaDlByEuqAt8XcKBvlCq9KWzbsPRBKrwzXTnH0sdwiHZ8os7gjdXOVjBpUpyuzmYvdDoiyLlG5rl3DTsOWttObf0GFSoI3CIbP8fo+2IyX7hp2Ay1NvizeKTzhWhDKELSUA7IxgA5OiIAMRocvw/no1DYnt3H3uX5uVpLcwoVTIA0VinOuUFVwjKuU73AcnxOjA33I7gKF7vpH4iwxBfIS60rAD2x0AdciT0YFuA+e4Che7y/V3GWBufI7AS63kLLeQsWSWKpJtBTjqCdngK5HuAXvcv1dxlo2Az1H0E4yRAEkJyhOFU4EgDgfNEWh95/nuNdfL9XcZGButwDnhZN9cSnISwUN4jlElkfhLencaq4dE4XB0BH0W/wByPIXIgSwpiJdQ5zKLu0BcolySde41eV83JEl2HQjtPdkpHkq46dgBliLfzjuUzWJGX6q2SG6HoV/oGSOybEWW6Nzb5BKotQe3cpchj8OCqnIK0OREcYUdJYFAXBQyeYS0ogwEc5hd6gl4RLkk5DA3MdewfKDlV7xsdUYp7jO6T10SvfJ0BAGAHlaMLwX9YlXGuKY+Ls85YG2Yw2TYb8wQOnuIEN/xHGjwirJLZGJj24YC5KYf6jrSwG8kwRslzQf4ZOTFuQcaIPmI0F1F6RwryOYYqsyaSPbSAA5KeciqfwDSaJqPDTRFIWIx4Awech9IBGjDAE5mpxDmxTFhQNy47ayG5P4L1hsGHDQhYLzfDcxfXziA5ZAiqRKJztk5I6OU66ZAaVJ2T5RYdssjqgAAAoPwa8WOp7Q2TGqkcwpiM/QScGotiA5AFSjDgKQeMfsadHmkR2R7Ovx/CmDcfI0DvUZPZOJWCVMPTUMnCEMBJNgnygaCw6LlsmyHYjWalBA6D8HQvCEBsnslAGri1cHEAMDhEXdxQbH4KyXogrmBQ2U+wW6Tw6kxvAdi9SPwvRyCWDoKzUynBrLFo2A9ARg/yYikN4VSByMpw1igCNAg7E5/D+CSwcoKjUzkk17ANwLDkxSao3R1VDhBgQWA1EQBgBU1/GTWY3wAJLAOVQu0W7I4zX/BSa/LwCBhV4w4gzATBN7oSGSDPlAsAI3RR4cFUoBvj6PdiM0dxDRXB/AmeIyPBTQMDQoGBuoK98AY8hRuNX4AdBA6MdqS/Y4lOtHtN0QMQGRUZShhUwgGDZDANJZSSpUxHEMUEONiHOHrNV37IIxIdXRyYgIiBllUHcZzvwaGgIodydlDENsUnQIGQlg5QVGssjwUAWuQ49RggucKm5Wl7iAy4J+VbwwEdReUCDIL56yD9kQhHJ7IHGYhRmNaSbbyHqMa1Iiz5wVV3EBAOTjboRF0AAABkieZyiTggFiyDAJTQekg1yOWIZeh7D04NChTHslAghxONMGyIYG3Ikk5Lnsw0UgjUJsmehAghwXCAxbkCrWyE5wHc1D+aGRHskqkeSEABwQcaIZHrThbmLFM0ByFzeiJqMF0fMJFW2QmBJTSj3It8ZvgwPI2RWjKj2WuIDlhVeVXJMhVJzkqwOCv9Kqo+e1jPrFFC+ZRAvTD3oAv4oKOiNNFwvGHvxzBTNMalClDfTIIDQ1K0W52FbgeMAKID9R4w1U6GyMCUNCdZ7F+UJTqXtiASWAcoxAOyxUVt6DjudfWsaI+OcELcOUyiSomU4WI4T0EQdx5KfJiOjMICDTAlqqp9gmurLIE1lQp8YNxCDkAAGCaoWu4hUFBvhJl/Yd2BE5EHZVZlK4e9VEeUwTVwjNzYpmvpT1WfWUDJxC4BtgbDcYYZIeS9XVTgcLIEEOCiAagHBCkAVUoaZDfxi6KTJ7zRFHJ5lAUOC+QKr284NIqaYQHldMFCDyn/wB0CHYDynvmbYECXEHZMP8AcJrHomGoknqufKnqboEGhT7eBdaO9Bbv9NHlGnIcgtN+CjqEaJHKqi8rU0e5VVqMWKu+9b1SsnkL6QiQOAblOQB0T8H9GoA8qhIANB5CGsRD/tL/AGEdES01wCNObl/8UP/aAAwDAQACAAMAAAAQCCS//DR99tBBBBR1+++++++++8xBBBBF995DX/6CCCC2/vDV99tBBJBBRx888885xBBBBBF999BH/wD4gqggkv8A8sHX321GqkIEEEEEEEEEEEEEX332EP8A/wCggvigglv/AMsHX32zD6IkEEEEEEEEEEF3332EN/8A6CCC+uCCC2//ACosfffVnYsCAQQQQRzTfffeYQ3/AP6IIIb764IILb+7d3rX1a/Hk03gk03sMzT3EEd//wCiCCG+2++KCCC2/O/hBV299e99OKf9/wBj+gQz/wD/AOiCCCe+S+++KCCCy/8A1T1ggYs8vjPfucYUih3/AP8A6CCCCe++CS+++KCCCS2V/qPLJahdCBqDDDL/AP8A/wDyCCCCe++6LCS+++OCCCC72v8A/wD1r9852Zr/APp//wAgggghvvvugrQwkvvvrigkiQl8unv/AOn+U3v/APtyCCCCCO+++6CD9tLCS2+++OCpCVCBCyyhylaHiCBCCCCGe+++yCDf999LDC2++++lCcJTCCCxCBCpCQJCCGe++++iCDf9R999LDCS2+62P888f7IhCZCvKPMP+++++yCCHd99BR999vDCCy188888885AOtK4+P3j+++yCCDP999xBBB1999PDU88888888j8P9pr1V496yCDBHf999hBtBBBR9999l88888888n8nWp8fvfCBCDTV9995BBB9tBBBBx9938888888708XEy/8880Mrz+d95hBBBN899JBBBBxe/888888v8AO/JwFuPPPPPPOOYQQQRXfdPPfbSQQQQ6d/8Az9/3/wA/8sd5FdZbz8wwBBBBN998AQ8899tJBBRjFHEyUnQGzgdp9hWxhwBBBBN99984AAA08899tNBBg18vro5/j0PfvfoBBBBFN99984gAOAAAQ088999NNBBBDJ0AATAQ/RBBFN999988wAAA+uIAAAQw8899999NNNNNOcuetN99999884wAAAAO+++uKAAAAw088899999999999998888wgAAAAO++C2+++uKAAAAAQw0888888888888wwAAAAAAO++++CCS2+++uOCAAAAAAAAAQwwAAAAAAAAAAGe++++yC/8QAJhEBAAICAgEDBAMBAAAAAAAAAQARITEQQUAgUWEwUHGRcIHRof/aAAgBAwEBPxD7r3B7/H2eyo5KiFOmDrZvrERI/ZU7w7ht4fmELvyzKzuT3+PsJRst+qmFGxyejqKmnJUB1mWdtvtojstnqrT3Guuh+/HBzQkwZiUOjVXLd/b/AHlj+07hN4fmXD/LN8Mx2Kz/ALMgE1NcEwaaMMQ4mbhTfv8AuEEaeMRRs+Z1YR5d8vtwFQwlRAU1H14zLqtXymWZI4qojvyHfBvkjge4fTPuOAau/wAzHPEfQbj5Dvg3z1EIunX9QAXK41sorfdxKa4fQb8l3wb5Yt2xgxa/8lo0o7jALoZorWz/ACFWg5PJd8G+XfJvgDayWS0pCkFu3PXku+DfBv0HFudTBVn6iqlrz15LKuF2p8Eo69HXBx1wAvUAKWP2eThgA16EHcU1wDx1wJASg0QT2FjmWEqLsHse78evL6DL8kSo8UL4SXT2hVlXLg10eNiPovA5RzDYIlkRGmdcPoNgjjwRi/onDKOUh3PglJfCuRbc3eCKH0GHB7zrBqmDZZ6AG+BdQUAUTNeDoMG9evvh46RjwOnroX4SBzBmXCmBBHXCXAqLUOO+NOXGJcTmw9xBHXA7R14aaTAMW1KdMvuQX2l5le0WoFSybYw4hjhFFgObfH0kB3AOo+01MQq5kisJmI7J8EwEuX5oWmC7lIPBHTKvM/PFfEeyN9jWk+afJFu/4J//xAAmEQEAAgICAgICAQUAAAAAAAABABEhMRBBQFEgYTBQkXBxgbHB/9oACAECAQE/EP2rVa9ff6fDKw3DPbg/WD+YIln6Uae4pDDR/iYCNVr/AL+hchVUy2n4dyuWYYZ7cPVqAA7+V16QqBpf48dAHqBt3mWOZQeZAiU1DUOS5bPUxCtXzhEw3G9hMNW+vUSgu/GcvTO8IcmuT3xX2SBiDuH2iVtrrlBYwkvWbYa8g1w65Yb+kxGn1w5dVMyMw+DqHkGuHXPcIWNkBBDJMDy+vqDZwfB15Jrh5IH2EQdT7RDUIBVbCe33H6V8vkmuHk1y64bC8OZsGKjcHPfkmuHXDr4PFAF8AU0c9+STUatz7JZ38O+Hjvi4EVaqf9+UlXfwFNQLcCDjvhAViUtjzq1FtYyQrlffj34PwErwwbhxYrgwHcbcJDKefBxTiEdKDTBEsnfB8HVoN+Cs1+F5s5QjU+yWtfE6KmrwVl+A5Z2iXZEpp+CJXCm4iIrZq8HcIlb+fXBx2hDhNvnYrwgpiVcGNsqIm+BqLcC48dcbcmcyoDAj6MRN8LpDHhhtMgQRuW7JXViHuViXDMcymahJmOeAEGR5o8faRXUUbh7m5mN1MQCMxBdM+yZWVK81DuJ6l4lETZLqf24v7h0Q/wBGoZ9U+iBdf0J//8QALRABAAECBAQGAwEBAQEBAAAAAREAITFBUWEQIHGBMFCRobHB0eHwQGDxgJD/2gAIAQEAAT8Q/wDgrIdKU7RP+OCBNKOZs+hFWaAgTOc6i6FQn/GQJS+JsJg0ZmiULzQB2zoiXPFpIY/4uY35FGD9vSmcAlMGB/xYxhRqKhUuFaLXtLHvPpxOA4xlTqI2/wCBFiiBIDhJj4L3EoCgeYXQLcDEmnAN2mgMkzKS4KUYnjpGPmAm6oZBxtakdZxLU8C8MF7wt7xxgRNWAI2TBq4kYhnUUXoJclNAkZ+LeKZfRI7e9IFxA+XYNAGSmgBjMFZK5AoO7CyocJiBnzb5E6YvwcZCOS0UPV0O9YiDgGRpyLYFi7BhSjwJBmi2mONsqmSCxu0mQcXKnheEpT5YoDyTF6MNndi35jm6oN3QPlxmhZk1DelthTyIu66O3KWKDCE6Xn6oH5pQwH5rAHPWQre8Chre8Cl4QisEEpis4SHV8sXcUJnFb1TWMK34g92frm6AvqflzEfJWa5CnKlJXkDcqOlQhMBpSs5YZEdKigXFdOCiRbiDvy5bxWMakTVukHt8wbTN3sB++USDVpWcl9Nvrmt+3qDgenKsuSI3a9m9x5hGDW9Sri0Y1hNR6CPrzDuMu68uyY9631H35TwJ9ApW809uY1cBGVKrLV4aJ9eDsGFb3r3fMLX+wcveHsvzLVXsYvAzKj7Zk4kdaRX579uXv4JGXAR6DNJRYrPmGLoHty43Ue/mtBq9S7wUS0pMRBRxBYDJmkpKgBdpQWKC5y2LqD2eDb+rjj3jzHD6Q5ca0+OPvlkzCZehepEzGsKoTOdO77kSFOHvm040PJNQBukQUQBmR2knksXVHv4PQsDqh8T5h7w5utXRe6H3y73O6eJDfisEtSJqxfr5Pri4hE4BTdBisRlD4O4jugJ+vMPeHh9BvVH2scRTCjqVPSkxUhmJepojMEHSeKFtkdYp3JhslOwXEaGpEYebfjfSwfD5goR0owfgoAlgpwfD7j757MnL0H6cQBGoICSNNvC3GbUtwoq0Qtiy5U642Qnfm6x3qfMT0g+3gwb1it7hOfrcHVB8Lxguz5LhVj/ojlCAJVgokxki9LD48xv1D9uW8c1/I8nWYOsW8C7Zkdgr8ORCLygqY0yEmcU5VIr10N7jPKEFPYRd9imvhUvmN+pj6Mct8Nfjn65Ouw+s/Xgd+11X4DkBPwC+xNKpXFvxs/mDl6sg6o+C+Zfwhx++W8dfnv1yWT9AR984KgErTITIQ9kfXJ6d+qx8Tx3TNb/LkCoKkmCOjYP2np5lZdH1EfXHAg1LPWv7A+k1pw5JxR91/wCa0HH9VPqv4VetaR9liu1SIugjmBYlXoCX4pnEqyvJvBuwI++IIvBl6UqquLyPGYqBQ3oS/wAalYERhHEfMe7U6ifujC6ZF3oUMIC3vbCgAgIOeKE0E1PLrH4LU92XZ+z8VMIOq9Rx3lDqL8Dy2Llnq3fnj0f77wipxYzXd4SIdKioXESiJIlybrRpgYMS4Fi9R1klNFKgRGEcR8uYq6AKBhQ9vFJJDhQbL8iDuYVLd6J30rdjHTB8PryTtYRLoVvvJxx9fZCoO6L2b8Veq3ZvnwUdfCUw4PZIQySJSNzgq1/a+WpgVAGdCSB9DY/wIE4Behg5xbI02pc+OHj/AO2iz4nkuZJJoLSLis4aBSqpWeAwyVhKAyd+MCDGt5vQGB6y+nlobeDka/4VJzB2Z+00WIqN8BaxP1UNRyGA1OG+EuhY4kAYrFFgWEu2FKBicnd83vY9j3oLBaVpKqD0QutW3gsaAWD08saAxy9CjLgID/C2zKTu/wB78VAxiz1T2EIG+5QLEiDtZ954yyS/pcHx4v8APFjUpAUh2SOgI+uL0PbL9vx4IQFzrBhSQo5eRxgvW6P8OF2rlx9Bl7cgLktBmhYpmWcc54k6MOBBIcGlSKyjLbgIlwRdTD3ikouKzwEEgbIxaeIyNAsHg9F71f1UZkCR08ibFRFEBYj/AAvDxcO/6oADAI5C65Qd39fNFZltGTnxV4tb7cU5ExEmnCM5KSrADBYWC8fHpTFidzSYyyLNMaLIc8jux9PCUVe30Kkxgz28ik6SB/xfRPd5ARWAlpgYjLv+qOBuh+/biMzdA3cfk8AqAU2y6cTpM1FXuPhylZLwVhKkUAhmJ9XyLocPt/hBsAJaYzjLktFoPQu/2/CeMh7cNBkTRS0KXRw8G/8AMAZDf0o0mq4HQoBAA0KihNEmiXp5ipE/Rke/AEpMApiQkXMn54ISMh8vkRGauf4bpZpehy7A/a/tuBkW8qkhRxK7AnVtQoiWSgNtwNTXwASGIth/7yuXrITUsdBApidiJeMaGwPSX8ivNUt03oGppE/wXlg+gckWkuAauVXNlC7q58Ly2rYJnvW/1fQsffCItkZJpQpYJcbn+BfoQqdmVLyO7szcw7aVDFrWJ4PrPM68qBxmH3RGMAjk2qT65ffIoEuoO7RqwEHbH3niYWeCMVPIuw21KsB2INzt4wwXGKex5ItVO4xGVqu8aTHOplRR/EEmdbtKTc7c7k4xmDRq3c0pU1JLUX3eN8/wy8hOkAS0wjhpbbenJAr56IPelUqyt3kEK3K4E3XsfNHFSSNnW6aVGQg0lUJvUXUJz5FiRrrwdhjcFAwBqM86Fwlj5NJgRKufknyhVs1OUAXsTptU/fdqepnU1m4FgdvxUCRLIYO/5qIG0bD1wo4BMFSPgGEoXE6GtYTAW5LTwfRP3ysDRMxsck5Ze27UM6bkOXTkZQsR6t3496uBCI6mx7tS6tEUhmr9QoAHMWB6NAEA4I8SldNUvpjQK8to79inLkZVbvkyNWkSiYOCHF10oEJLiMjUIS2QnfGnyldc9Sm5QziPWPuo0RMbj1KgRfWA+qiIi5P7VFGajPFQKsBjUgOgOVPkGw6NR4rufJatFWwn6oJY7G1HbH4qcY8Tky7cg4aCaZSgr1NEc26A14RIALowDVaNvW2QZbFPiZTxQAVMAZ1Lhd6j+ihcewjD3+ORWevhQJB/ZvQ8H6I+VwSbNd/So95csbo0AFCOZw9ZIVq6iWrlN96R+qJJ+pd81gjaDf5WojoaP1RUcC5fFJEtAcX4oRJGeChdp0lS1gGnekGCCYRRkmtXOjUDGep9ytIXRfioUgxcYbUIgjI4VCuBg4qhlF7GXYNaw7z1LVZ10BDox9+JpSWAJWhYf2LvSgVYC6tIK4+yw/PfzNEhdV6KhULrnpjULds3OVITkB80YlzN1cVpBIblM8le9Pauk9vxSxxCW8elAoJxGhkUYkyfyoCUJtwAKoDOojFlbowqSw950U3ADQ2alGIlCPX5e1DyQECBTMQ4z/rSlh2H5UX1xu+vAMFGD+L+bFSrBUNQIR5C/rUSPallETsJdRyYrYDNpEpOJttSCmWJk1gGd3Nf+RUmKdCkUYvQLTkTRiMHFZcEskmqj4qeR9z8Url3SYFItKeI9xUaSbUfBG5NbQ6UlInWL0pbTS/rkYq+GYtKkgPPTbzkVSKJmUbTiwfmqKCtVDUGTNk/FEnQKCJIibVhKbQ3qwTK3XVpIWQYCyVkV2Q1HiHpRajmKyqESYhZ2cLkNZRWWCUSZO91YzWCxHSkEIjCcFSNYRYYhvQsgm1Ib/JxonSBh4Dz9Wa4DYhFQLO3o9x4n4rDdtZQ89EFCRmXt/GBSARJHKso/wAsaixewrQ7yFaIGqy0RuFmZx7VPZcbUQmc1u0wjorH7pMx83/hRRkUdqyMtFWRDRvwvBPgooOK91f+ypxcuq0YgSqeO3T/APih/9k="); -} -#data-uri-ascii { - uri-1: url("data:text/html,%3Chtml%3E%3Ch1%3EThis%20page%20is%20100%25%20Awesome.%3C%2Fh1%3E%3C%2Fhtml%3E%0A"); - uri-2: url("data:text/html,%3Chtml%3E%3Ch1%3EThis%20page%20is%20100%25%20Awesome.%3C%2Fh1%3E%3C%2Fhtml%3E%0A"); -} -#svg-functions { - background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23000000%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E'); - background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23000000%22%2F%3E%3Cstop%20offset%3D%223%25%22%20stop-color%3D%22%23ffa500%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E'); - background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%221%25%22%20stop-color%3D%22%23c4c4c4%22%2F%3E%3Cstop%20offset%3D%223%25%22%20stop-color%3D%22%23ffa500%22%2F%3E%3Cstop%20offset%3D%225%25%22%20stop-color%3D%22%23008000%22%2F%3E%3Cstop%20offset%3D%2295%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E'); -} -#data-uri-with-spaces { - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(' data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9=='); -} diff --git a/node_modules/less/test/css/urls.css b/node_modules/less/test/css/urls.css deleted file mode 100644 index 6a9a8db..0000000 --- a/node_modules/less/test/css/urls.css +++ /dev/null @@ -1,87 +0,0 @@ -@import "css/background.css"; -@import "import/import-test-d.css"; -@import "file.css"; -.gray-gradient { - background: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%2260%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.05%22%2F%3E%3Cstop%20offset%3D%2270%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.1%22%2F%3E%3Cstop%20offset%3D%2273%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.15%22%2F%3E%3Cstop%20offset%3D%2275%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.2%22%2F%3E%3Cstop%20offset%3D%2280%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.25%22%2F%3E%3Cstop%20offset%3D%2285%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.3%22%2F%3E%3Cstop%20offset%3D%2288%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.35%22%2F%3E%3Cstop%20offset%3D%2290%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.4%22%2F%3E%3Cstop%20offset%3D%2295%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.45%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.5%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E'); -} -@font-face { - src: url("/fonts/garamond-pro.ttf"); - src: local(Futura-Medium), url(fonts.svg#MyGeometricModern) format("svg"); - not-a-comment: url(//z); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px; - background: url("img.jpg") center / 100px; - background: #fff url(image.png) center / 1px 100px repeat-x scroll content-box padding-box; -} -#misc { - background-image: url(images/image.jpg); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700); - background-image: url("http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700"); -} -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} -.comma-delimited { - background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg); -} -.values { - url: url('Trebuchet'); -} -#logo { - width: 100px; - height: 100px; - background: url('import/assets/logo.png'); - background: url("#inline-svg"); -} -@font-face { - font-family: xecret; - src: url('import/assets/xecret.ttf'); -} -#secret { - font-family: xecret, sans-serif; -} -#imported-relative-path { - background-image: url(../data/image.jpg); - border-image: url('../data/image.jpg'); -} -#relative-url-import { - background-image: url(../data/image.jpg); - border-image: url('../data/image.jpg'); -} -#data-uri { - uri: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA4KCwwLCQ4MCwwQDw4RFSMXFRMTFSsfIRojMy02NTItMTA4P1FFODxNPTAxRmBHTVRWW1xbN0RjamNYalFZW1f/2wBDAQ8QEBUSFSkXFylXOjE6V1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1f/wgARCAGuAoADASIAAhEBAxEB/8QAGgABAAMBAQEAAAAAAAAAAAAAAAECAwUEBv/EABkBAQEBAQEBAAAAAAAAAAAAAAABAwIEBf/aAAwDAQACEAMQAAABwG/nAABAJAFAAJgSAAAAAAAAAAAAAAAAAAAAAQAAABCJgABQAAAAARMCQBQACYEgANsst4GuAAAAAAAAAAAAAAAAgAAAAEQAACgRMSAAAAgEokCgAAEwJL4+jr08Onl9viX9G2HkHp8QWAAAAAAAAAAAACAAAAAIgAAKABAJRIAAACASiQKAAAXoz20Vnx/Rm2emvnzg9XhNc89oGuAAAAAAAAAACAAAAACEAACgAAQBMCQAAAAgEolV4+i8/r+benzbecO8wALXnGWUXz267n6+T3eFf065eMerwheQAAAA56Pd489qobecAAAAAIQAAKAAAIAAEwJAAAACLVnnS/S5z5/1d65FnLXL2/NDbzgbY7Yyr0caaKz4/ozbPXXDOsPX4JQL16uvk9/FJ9HkhDvOUBMaYent48x5fbTbKepk0z93zAvIAAiJgAAUAAAQAAAASiQAAAAEtbNl6NK1S7Za5becLANctcpQsA2y1xlCxatst9/Zznh+m9PmgU1y+h8gO+FquNNFHl916Q282uWuW3nCwIIAAAKAAAAgAAAAAJRIAAAACAbY7YrKCTemq0qAWNM9pc6rc9Verzc9wNMrTRl6LVOs9ctcu8wsAATGssZgISYAAAFAAAAQAAAAAAAEokAAAAA2x2xARtjsuSCSiRtSFraunn9f0fHzzx9Ga7rnFens+cFmuWuUoIAA1x2XEIAAACgAAAIAAAAiQAAAACUCQAAJiS+emYA2x1MggG2O2KzfOc9tFHl9t80+jyaZXz2882p78t/Nl9F8/LWLRplA6zAbY7LiEABQAAABAAAAABEwJAAAAAAmBKJAANctcgBrlqZAGhbG1QEAbY7LiEtpnfx/S6XOhj6PR5ltvNiPZ84BtjquQAAAAACAAAAAABAEwJRIAAAAABKBINctcgBrlqZAbY7GIAAG2OxiBems6Voy3nXHXXz5CwDXPXEAAAAEEwAAAAAACAAAAlEgAAAAAAG2WuJJoZ67+idct0oTna+iDxpiwABqzIA2x2MQWm2QAL86Xx6/K47qNcABBMAAAAAAAAgAAAAAJRIAAAAALGm/R92enl9Rx2CgAR5vUTk+D6V1z8o7/K04yy2xvIDWsFQa5a+yXDy+7wk3pp5fd9FxfOz2nPeneWA9nzwAAAAAABBMAAAAAAAAmBIAAAJ7/n6megcaAAAAAAImieHj/U4d8/NtMtMtstcSUSe3t0jLb5yprjOuO2epk8/rvekejyUGmQAAAAABAAAAAAAAAAAAlAkDfDtzroSY7AAAAAAAKXolwuPz30/k644eRrk9Xl6svXx2Y7fJvb4t8J0nEGhbG9AAABvh0pea2xsEEwAAAAAETAkAAAAAAAFvqeD9BnoHGgAAAAAAFL0ugKpeicTw/QfP65O3xO4dAZbR4feTnU6izh+b6Xw9c8EaZl4KgAdvjfT8d8Pw9Lm9chYAAAAABAEwJAAAAAAB1uvzujjsE6AAAAAARNEXFApel0z+X+r+U04v6sMeuPrHj9mOwKAB890/ZbrlEueufyPp464+Tn6HXrnx9Iz04nN9nj2xCwAAAAAgAoIBKJAAAAAPZ3/lPTx39Iw3z0BQABUsABRZJCq2ok2Fj5b6r5jvOcdctONO/wDOTzfq3J6WeuglAAAAAUvybOVU2wAAAAEEwAAKACAJgSiQAAB0ubpL6PR0K8d7a8GZe68Xs56kK83pJ4vToBmNIkBYrGiAridvl9c8eDXEXNq6+OXStVnY6vG6eWuk/J7WfTvF7eOwUy5lnr4CNcgvIAABAAABQAAAAQBMCUSAAW6/GS/WZ/P9fPTDx/Qjhev3+Y0359V6bxejm65lJuikaY1G7ONFBbOu9fMY/TcbTLy+jG1mVSxLsy+vx9T5nPTAa5LVGsZlBAAACAAAACgAAAAAAAgCYEoEgA26fGTr6nT5P18dfQub7ee9aTEL0AVCmqVvNJbqULF6i0VjDD31s5t+mMdmMvk4d6bZBeQAABBKAAAACgAAEIkUAAAAAACAASgSgSADf2cxL3vV8u56+tr8x6Je+5O869zHaWK20FCApEiulOanQ+epTTMOuQBBKAAAAACgAAAAQITAlE0AAAAAAACAAAASgSgSgSgSgaa+ZL7r84vUnlI6mHiF6w65lAAAAAABQAAAAAACEAAAJgSiQKAAAAAAAABAAAAAAAAAAAAAUAAAAAAAAAhAAAAAAACYEokCgAAAAAAAAAAAAAAAAAAAAAAAAAACEAAAAAAAAAAAJgSgSAKAAAAAAAAAAAAAAAAAAAAAERMAAAAAAB//xAAtEAACAQIEBgEEAwADAAAAAAABAgMAEQQQEiAhMDEyM1AUEyJAYCNBQ0KAkP/aAAgBAQABBQL/AKFKjMP0/CePFRi36dHIYzJM0gqUR/qC8STc/pd6vkeEeQQsP0K3JHEyH7ssJ2YmMaf0AVoVo5o9Db4+7OOQxmSdnFSGPTzhh2ZGUqfWjKPEaVmf6jRIGZxZto8eQ2KL0xuc7crDtePFgWtUkRj9ivE7W8ed6vk32jZhKnhBHIBIoknJmJphb1t8r0vZtk67Urrtjcxs+Juta1+kRypO71/+W2TybW4LsG3/AC5Mnk9e3ZsTi54nYguzG7bb1er5Dx8gcS/f699sfk2jglCmhcDeOzkR+T2Endsj7tr8MhSm64lArhb0ylTsXs5Efd7CTybE2oLsxuckldKZixUlWdyzMLbB4+QnT1/9yd+xOmxeC75O/IC9dE5A8Xr/AO5O/YnTYeEed6vkBcubvlhfLJErhhY23nx+wk8mxOmyTrui8mQpTpPyuB4mOQIp6bX9jJ37E6ZoLuxu25OmQ2nx7ZPJ7CTrsTpnH13/AOWY6ngb5P02R+T2L9NibB497ducffnJ3bE9kfHsj65nxb5O/Ne3JeLN3bOkfsR4slRmoYaU0mFYH4jV8R6OFlp4pACCN0ffs6RZR92xafDcCLexTpHh3ekgjTkWvTQRtTYSnidM14LskzTtr6emOhQ4FHDriLGVULURb1wBYwYcJzpMOj1JA8dHhHmguzG7Zf5YaHVWKe8lDYjlD3etAuYIRGPwJMPrVgVOScBmkes8FVjc5f1kTR+2P1mEi/BbpUsSyCRDG1HhHnGmlZ+EObcEq9INTMdTerhT6knT8H/llLGJFZCryd2WHXVLUovFnJ35dsfIiTW3o8Ilk/BXZMgOzBDjliIijVH3ZINTMdTcjBD75Rpl9CBcqNK/gN02dWxUeiTLBj+PIi9NhYzQwoA+GKfCuKP2LycGto8WP5vQ4Vbzfg9W2L0xS6ocsMeRiIda5aWNFSNoGooulMb5fQ4IfhL0zbKTjHSC7QyWn5EsZ+vFh1TK16kwqtTxshyw0GnLG+T0OD8f4DbRxaj0pOArDy/UTfpGrYQDRw8RpYkTPFG83oYJvpsCCOeOJzJsALDJu48I6RyjRSrIOex0qTc+iimaMxyrIORcX2Nt6tnIP5ZO7IEgw4kkq6vzsZJ6SCKOVHhkiqPFkUjq++SPVQ+QKXVmOJ2L0zlXTiNkYNmNhqarmsNMzNVxyJ5xGCbn0aMUaKVZRJh0emw8kdJipFpMTG1deQxsNh4nZi76cwCxkOhc8Ev3TNpipJGjMeJR9jSIlS4uuvpgSDFigcnjR6fB19OaKlxUgpcYlCeJqvfYONWIrVWoVc0OGw1p1JIhjalUsVtcm5zgT6ceNb7cwSK+rJRdz6uOZ46jxKNmUVqOGiNfDSviChCwoKRR+6r22FgTViK1VqFMTlLGsith2Qs3Dtjzw+H05TP9ST2SSulJixSurbWNqXpWkVarCgOF7bF41xFahk8URpsMrV8Ohg1pIkTLFy6V9re1JiZFpcWhpZEaibUBVquavVzR1Eg3y0irURXbnpFWAocDnJII1di7e5WWRaXGNS4uM0JEbIm1AWBF6+6uNEmhcZaa4191aa0ir2ykkWMSyGRvfB3FDEyChjDQxcdCeI0GU13GrEVc1c191aasa+1KlxKimYsf0UOwoTyCvlS18uSvmNXzGr5jUcTKaLFv/FD/xAApEQABBAADCAIDAQAAAAAAAAABAAIDEQQSMRATICEwQFBRFEEiMmFw/9oACAEDAQE/AfKvgcwX4eCLOt27eWjhf6iK8LDLuzaE8Z+1NiL5M2Pgc0X4FjWiP8hqpGZDwwx7xGN2ewjhQiKNcTRmNJ8Ffrz7eM04FGNpFLIBopy0u/Hgik3brQxEZ+1NiARTdr447y6LdPvTbh48xv0t1T8yMTGj+I68u2ZiHs5J+Jc4V0cPlz05GNpT6Asp7szr2RvMZsIYtv2FNPvOQ79jc7qT4i3n9bG4mQJ8rpNfCYaOzmTYSCfSdAxo8NDLuyvkxqebechpsgAskp8YIzNRjc3mR4bDZS1NY1uixDw38ffhmOLTyXypESTzPfUVlKo9KJmd1KSIfszTuQ33xZAi0jhq0VhmNIzIQgWpYmBvrt2j76JbwAVsilMei+W30pJTIb7YCz03C9g16I17JnUcOabrspZQi31wsR17FunUfxBuwtWRAUjr2LXV1H7AaQN8ZNdkFXpZvfSdwt0WfaTSJvswaQcCsoVFc+gW7QLTuQ7oEhZ1fRpZRsJvvbKzrOrHFdIuvwllZirP+E//xAAnEQABAwIGAgIDAQAAAAAAAAABAAIRAxIQICEwMUATUEFRBBQicP/aAAgBAgEBPwH2raod6eq+1XC2F5/TVGXhGk8fCp0fl2Daod6FxdfomOuGWo+1XC2F5ygZE5iYEptWeeu8S0q4q4qkHAa5KjLxCNJ4VOkZl2LXuiVe3Gs60K/+YQe5xQ6zqTXJtFrTOzVm2QrimyTATRaIwe0PEFH8dyp0rNe+42iU2oHYGiwptNrePSVnx/KNRNqvJ9NUp3heB6pU7NThVJjRNeZgoOB49NWkORcSqLSdfTOaHDVeBiAjQd6QrgpG091rZTH/AA7sl31muKDpyzCCrOIMLyJlRxPXcdkOyEzg9gev1ymMDNOsTA22nA8bJ46T9xp0TuMJVxQd95XIcdF3O4zMXYByvRMocdEtncZgRKIjOBPSKn7Vv1tNyu5VmIEoCOmRKLSFcpC02A7EmE3U9ogFWKNmVccAI7sK1WqDmiUBHpICtCgf4T//xAAxEAABAQUHBAIBAgcAAAAAAAABAAIQESAhEjAxUFFhcSIyQYFAkWADEyMzYnKAkKH/2gAIAQEABj8C/wACqD8QPKtj8PooYBwsfiGwUfw/l9B+G8UeVbH4EAQoXEdJIhQwDhYFfN/aCrmEGgoqBMEQJmt6T1wCjfQ0QPlwj5zHaZke57H3K0rTONzQwVTF1TFDjMGjMBtNa0miFAB1mzXVRuvQzD3MZgz7N17ujmDMo5RmjdNXTXOYDiUTE60fEi4auWec29GYM6PBVPKgoGVq59HMTK1xKES+hUSohRKHEjVy3xmJla4laN4RcnnMTK3xKN5wE0d3hbqFwzzmJlb4lhoJxtWSIXbVRRBZjFRmZG2YmVviQImdo7XA5mOYjiVriQnQXB3MkFB7I2lGZM8StcSNXDA9ycXLR2zJmU8GQbm4hpSRovCMp3OZHYv6WSVgAokhdwWIXhM9JVZh9yjc3PScyaGyiekLCJ3uKrthwuhr7XUy9o+pQNA9outt+cBJEI2VAVy+AUWqtX2h2Wo1TI1rIAiX8lW2sFDSaLKP3lsAq93wYihUC9praRhnxiVwiXxkh5Ncttn18GGrq46qDTgNaytSMj3JHLAPhcPgVZOKhpR4c0JOKP3auSNskta/CjrIGodQwkaL4jtdHSr9lG5J2TQ3yIBAfG4URgXkvqqURFrFd6pVWfJxuidUciG3wuJjs8saC4tDuD8CqiWAQZQ4yJo/Ghq5obOAUfBuSyyMV1VLqrpoV1B9trFw4yI8/BhKTI01s7cXFrzLVdq6WXnbIv6Soj4EbgobuiFvp8Ak+ETke2iofVzC64kaG6hpR8QrLY9rpMb79se8k0aUR9hQ/UruukzxZNlrVVDLS6oenxl5kaa9ymHCss4LuKxVhqu7sRcQHconJIsrfRaHZRZrwoNVWNnlUvYS09yQC/bHsyNNJo7OiyVXpMnU0FD9P7yeIUP1Kbu6mYroa+1SPpVgV1Ahd4liqKsXYfatHzLA+VAuorLOHk6qMgHnygxrJQrva+1Vo/eV0NNFXpL+pkFdsFiVRsr+c0qtkqC6pIOpgsCvP0sKOgV1duqgKMr+6S23jo4nM+krrEF0mMu8ncVVV8qv3JHVUwfUIQaK7/8Aiq0V0h1gYnNqLGPK6hBdLQdE4qiwWBWEuJUFs/B0JIlFo51RpdTMVWIVGhNg6LXl+KxVaugXRKic/o0VjFVZVYhdyoQtnUWCwWixKxVSv4eOqi0fwajRXeVisAu0LsC7QsYKpj/pQ//EAC0QAAEDAgUDBAIDAQEBAAAAAAEAESExURAgQWFxMFCBkaGx8EBgwdHx4YCQ/9oACAEBAAE/If8AwUUE5AqyIb9O1TNxIEY6/p70pNQnwAQEBO8T+mA5BDpuFOF36cEqENZnjE0Jy1UQR+giSidW6IMAapwwKQYs3XRTBiKrVN3+tAAhDJz0adCBW3x0XqVCicYBEIghj1RVCJBOiIADEduqTIYTi1CFRjDRAbRdDMHY1zQNcMRZAETdFFOWQOCboCqGPVBbnfZBKE2N2wVytK9AJOaF0/16Zh7KKFa8srXvhFoGD3REpjnKuYtkVcxb4VO5IRM1A9sBZMThFIcIZoWQ/wB5hAJKk/KJJEmpyAOEAeYXT2zJ1JxvEYaDlByEuqAt8XcKBvlCq9KWzbsPRBKrwzXTnH0sdwiHZ8os7gjdXOVjBpUpyuzmYvdDoiyLlG5rl3DTsOWttObf0GFSoI3CIbP8fo+2IyX7hp2Ay1NvizeKTzhWhDKELSUA7IxgA5OiIAMRocvw/no1DYnt3H3uX5uVpLcwoVTIA0VinOuUFVwjKuU73AcnxOjA33I7gKF7vpH4iwxBfIS60rAD2x0AdciT0YFuA+e4Che7y/V3GWBufI7AS63kLLeQsWSWKpJtBTjqCdngK5HuAXvcv1dxlo2Az1H0E4yRAEkJyhOFU4EgDgfNEWh95/nuNdfL9XcZGButwDnhZN9cSnISwUN4jlElkfhLencaq4dE4XB0BH0W/wByPIXIgSwpiJdQ5zKLu0BcolySde41eV83JEl2HQjtPdkpHkq46dgBliLfzjuUzWJGX6q2SG6HoV/oGSOybEWW6Nzb5BKotQe3cpchj8OCqnIK0OREcYUdJYFAXBQyeYS0ogwEc5hd6gl4RLkk5DA3MdewfKDlV7xsdUYp7jO6T10SvfJ0BAGAHlaMLwX9YlXGuKY+Ls85YG2Yw2TYb8wQOnuIEN/xHGjwirJLZGJj24YC5KYf6jrSwG8kwRslzQf4ZOTFuQcaIPmI0F1F6RwryOYYqsyaSPbSAA5KeciqfwDSaJqPDTRFIWIx4Awech9IBGjDAE5mpxDmxTFhQNy47ayG5P4L1hsGHDQhYLzfDcxfXziA5ZAiqRKJztk5I6OU66ZAaVJ2T5RYdssjqgAAAoPwa8WOp7Q2TGqkcwpiM/QScGotiA5AFSjDgKQeMfsadHmkR2R7Ovx/CmDcfI0DvUZPZOJWCVMPTUMnCEMBJNgnygaCw6LlsmyHYjWalBA6D8HQvCEBsnslAGri1cHEAMDhEXdxQbH4KyXogrmBQ2U+wW6Tw6kxvAdi9SPwvRyCWDoKzUynBrLFo2A9ARg/yYikN4VSByMpw1igCNAg7E5/D+CSwcoKjUzkk17ANwLDkxSao3R1VDhBgQWA1EQBgBU1/GTWY3wAJLAOVQu0W7I4zX/BSa/LwCBhV4w4gzATBN7oSGSDPlAsAI3RR4cFUoBvj6PdiM0dxDRXB/AmeIyPBTQMDQoGBuoK98AY8hRuNX4AdBA6MdqS/Y4lOtHtN0QMQGRUZShhUwgGDZDANJZSSpUxHEMUEONiHOHrNV37IIxIdXRyYgIiBllUHcZzvwaGgIodydlDENsUnQIGQlg5QVGssjwUAWuQ49RggucKm5Wl7iAy4J+VbwwEdReUCDIL56yD9kQhHJ7IHGYhRmNaSbbyHqMa1Iiz5wVV3EBAOTjboRF0AAABkieZyiTggFiyDAJTQekg1yOWIZeh7D04NChTHslAghxONMGyIYG3Ikk5Lnsw0UgjUJsmehAghwXCAxbkCrWyE5wHc1D+aGRHskqkeSEABwQcaIZHrThbmLFM0ByFzeiJqMF0fMJFW2QmBJTSj3It8ZvgwPI2RWjKj2WuIDlhVeVXJMhVJzkqwOCv9Kqo+e1jPrFFC+ZRAvTD3oAv4oKOiNNFwvGHvxzBTNMalClDfTIIDQ1K0W52FbgeMAKID9R4w1U6GyMCUNCdZ7F+UJTqXtiASWAcoxAOyxUVt6DjudfWsaI+OcELcOUyiSomU4WI4T0EQdx5KfJiOjMICDTAlqqp9gmurLIE1lQp8YNxCDkAAGCaoWu4hUFBvhJl/Yd2BE5EHZVZlK4e9VEeUwTVwjNzYpmvpT1WfWUDJxC4BtgbDcYYZIeS9XVTgcLIEEOCiAagHBCkAVUoaZDfxi6KTJ7zRFHJ5lAUOC+QKr284NIqaYQHldMFCDyn/wB0CHYDynvmbYECXEHZMP8AcJrHomGoknqufKnqboEGhT7eBdaO9Bbv9NHlGnIcgtN+CjqEaJHKqi8rU0e5VVqMWKu+9b1SsnkL6QiQOAblOQB0T8H9GoA8qhIANB5CGsRD/tL/AGEdES01wCNObl/8UP/aAAwDAQACAAMAAAAQCCS//DR99tBBBBR1+++++++++8xBBBBF995DX/6CCCC2/vDV99tBBJBBRx888885xBBBBBF999BH/wD4gqggkv8A8sHX321GqkIEEEEEEEEEEEEEX332EP8A/wCggvigglv/AMsHX32zD6IkEEEEEEEEEEF3332EN/8A6CCC+uCCC2//ACosfffVnYsCAQQQQRzTfffeYQ3/AP6IIIb764IILb+7d3rX1a/Hk03gk03sMzT3EEd//wCiCCG+2++KCCC2/O/hBV299e99OKf9/wBj+gQz/wD/AOiCCCe+S+++KCCCy/8A1T1ggYs8vjPfucYUih3/AP8A6CCCCe++CS+++KCCCS2V/qPLJahdCBqDDDL/AP8A/wDyCCCCe++6LCS+++OCCCC72v8A/wD1r9852Zr/APp//wAgggghvvvugrQwkvvvrigkiQl8unv/AOn+U3v/APtyCCCCCO+++6CD9tLCS2+++OCpCVCBCyyhylaHiCBCCCCGe+++yCDf999LDC2++++lCcJTCCCxCBCpCQJCCGe++++iCDf9R999LDCS2+62P888f7IhCZCvKPMP+++++yCCHd99BR999vDCCy188888885AOtK4+P3j+++yCCDP999xBBB1999PDU88888888j8P9pr1V496yCDBHf999hBtBBBR9999l88888888n8nWp8fvfCBCDTV9995BBB9tBBBBx9938888888708XEy/8880Mrz+d95hBBBN899JBBBBxe/888888v8AO/JwFuPPPPPPOOYQQQRXfdPPfbSQQQQ6d/8Az9/3/wA/8sd5FdZbz8wwBBBBN998AQ8899tJBBRjFHEyUnQGzgdp9hWxhwBBBBN99984AAA08899tNBBg18vro5/j0PfvfoBBBBFN99984gAOAAAQ088999NNBBBDJ0AATAQ/RBBFN999988wAAA+uIAAAQw8899999NNNNNOcuetN99999884wAAAAO+++uKAAAAw088899999999999998888wgAAAAO++C2+++uKAAAAAQw0888888888888wwAAAAAAO++++CCS2+++uOCAAAAAAAAAQwwAAAAAAAAAAGe++++yC/8QAJhEBAAICAgEDBAMBAAAAAAAAAQARITEQQUAgUWEwUHGRcIHRof/aAAgBAwEBPxD7r3B7/H2eyo5KiFOmDrZvrERI/ZU7w7ht4fmELvyzKzuT3+PsJRst+qmFGxyejqKmnJUB1mWdtvtojstnqrT3Guuh+/HBzQkwZiUOjVXLd/b/AHlj+07hN4fmXD/LN8Mx2Kz/ALMgE1NcEwaaMMQ4mbhTfv8AuEEaeMRRs+Z1YR5d8vtwFQwlRAU1H14zLqtXymWZI4qojvyHfBvkjge4fTPuOAau/wAzHPEfQbj5Dvg3z1EIunX9QAXK41sorfdxKa4fQb8l3wb5Yt2xgxa/8lo0o7jALoZorWz/ACFWg5PJd8G+XfJvgDayWS0pCkFu3PXku+DfBv0HFudTBVn6iqlrz15LKuF2p8Eo69HXBx1wAvUAKWP2eThgA16EHcU1wDx1wJASg0QT2FjmWEqLsHse78evL6DL8kSo8UL4SXT2hVlXLg10eNiPovA5RzDYIlkRGmdcPoNgjjwRi/onDKOUh3PglJfCuRbc3eCKH0GHB7zrBqmDZZ6AG+BdQUAUTNeDoMG9evvh46RjwOnroX4SBzBmXCmBBHXCXAqLUOO+NOXGJcTmw9xBHXA7R14aaTAMW1KdMvuQX2l5le0WoFSybYw4hjhFFgObfH0kB3AOo+01MQq5kisJmI7J8EwEuX5oWmC7lIPBHTKvM/PFfEeyN9jWk+afJFu/4J//xAAmEQEAAgICAgICAQUAAAAAAAABABEhMRBBQFEgYTBQkXBxgbHB/9oACAECAQE/EP2rVa9ff6fDKw3DPbg/WD+YIln6Uae4pDDR/iYCNVr/AL+hchVUy2n4dyuWYYZ7cPVqAA7+V16QqBpf48dAHqBt3mWOZQeZAiU1DUOS5bPUxCtXzhEw3G9hMNW+vUSgu/GcvTO8IcmuT3xX2SBiDuH2iVtrrlBYwkvWbYa8g1w65Yb+kxGn1w5dVMyMw+DqHkGuHXPcIWNkBBDJMDy+vqDZwfB15Jrh5IH2EQdT7RDUIBVbCe33H6V8vkmuHk1y64bC8OZsGKjcHPfkmuHXDr4PFAF8AU0c9+STUatz7JZ38O+Hjvi4EVaqf9+UlXfwFNQLcCDjvhAViUtjzq1FtYyQrlffj34PwErwwbhxYrgwHcbcJDKefBxTiEdKDTBEsnfB8HVoN+Cs1+F5s5QjU+yWtfE6KmrwVl+A5Z2iXZEpp+CJXCm4iIrZq8HcIlb+fXBx2hDhNvnYrwgpiVcGNsqIm+BqLcC48dcbcmcyoDAj6MRN8LpDHhhtMgQRuW7JXViHuViXDMcymahJmOeAEGR5o8faRXUUbh7m5mN1MQCMxBdM+yZWVK81DuJ6l4lETZLqf24v7h0Q/wBGoZ9U+iBdf0J//8QALRABAAECBAQGAwEBAQEBAAAAAREAITFBUWEQIHGBMFCRobHB0eHwQGDxgJD/2gAIAQEAAT8Q/wDgrIdKU7RP+OCBNKOZs+hFWaAgTOc6i6FQn/GQJS+JsJg0ZmiULzQB2zoiXPFpIY/4uY35FGD9vSmcAlMGB/xYxhRqKhUuFaLXtLHvPpxOA4xlTqI2/wCBFiiBIDhJj4L3EoCgeYXQLcDEmnAN2mgMkzKS4KUYnjpGPmAm6oZBxtakdZxLU8C8MF7wt7xxgRNWAI2TBq4kYhnUUXoJclNAkZ+LeKZfRI7e9IFxA+XYNAGSmgBjMFZK5AoO7CyocJiBnzb5E6YvwcZCOS0UPV0O9YiDgGRpyLYFi7BhSjwJBmi2mONsqmSCxu0mQcXKnheEpT5YoDyTF6MNndi35jm6oN3QPlxmhZk1DelthTyIu66O3KWKDCE6Xn6oH5pQwH5rAHPWQre8Chre8Cl4QisEEpis4SHV8sXcUJnFb1TWMK34g92frm6AvqflzEfJWa5CnKlJXkDcqOlQhMBpSs5YZEdKigXFdOCiRbiDvy5bxWMakTVukHt8wbTN3sB++USDVpWcl9Nvrmt+3qDgenKsuSI3a9m9x5hGDW9Sri0Y1hNR6CPrzDuMu68uyY9631H35TwJ9ApW809uY1cBGVKrLV4aJ9eDsGFb3r3fMLX+wcveHsvzLVXsYvAzKj7Zk4kdaRX579uXv4JGXAR6DNJRYrPmGLoHty43Ue/mtBq9S7wUS0pMRBRxBYDJmkpKgBdpQWKC5y2LqD2eDb+rjj3jzHD6Q5ca0+OPvlkzCZehepEzGsKoTOdO77kSFOHvm040PJNQBukQUQBmR2knksXVHv4PQsDqh8T5h7w5utXRe6H3y73O6eJDfisEtSJqxfr5Pri4hE4BTdBisRlD4O4jugJ+vMPeHh9BvVH2scRTCjqVPSkxUhmJepojMEHSeKFtkdYp3JhslOwXEaGpEYebfjfSwfD5goR0owfgoAlgpwfD7j757MnL0H6cQBGoICSNNvC3GbUtwoq0Qtiy5U642Qnfm6x3qfMT0g+3gwb1it7hOfrcHVB8Lxguz5LhVj/ojlCAJVgokxki9LD48xv1D9uW8c1/I8nWYOsW8C7Zkdgr8ORCLygqY0yEmcU5VIr10N7jPKEFPYRd9imvhUvmN+pj6Mct8Nfjn65Ouw+s/Xgd+11X4DkBPwC+xNKpXFvxs/mDl6sg6o+C+Zfwhx++W8dfnv1yWT9AR984KgErTITIQ9kfXJ6d+qx8Tx3TNb/LkCoKkmCOjYP2np5lZdH1EfXHAg1LPWv7A+k1pw5JxR91/wCa0HH9VPqv4VetaR9liu1SIugjmBYlXoCX4pnEqyvJvBuwI++IIvBl6UqquLyPGYqBQ3oS/wAalYERhHEfMe7U6ifujC6ZF3oUMIC3vbCgAgIOeKE0E1PLrH4LU92XZ+z8VMIOq9Rx3lDqL8Dy2Llnq3fnj0f77wipxYzXd4SIdKioXESiJIlybrRpgYMS4Fi9R1klNFKgRGEcR8uYq6AKBhQ9vFJJDhQbL8iDuYVLd6J30rdjHTB8PryTtYRLoVvvJxx9fZCoO6L2b8Veq3ZvnwUdfCUw4PZIQySJSNzgq1/a+WpgVAGdCSB9DY/wIE4Behg5xbI02pc+OHj/AO2iz4nkuZJJoLSLis4aBSqpWeAwyVhKAyd+MCDGt5vQGB6y+nlobeDka/4VJzB2Z+00WIqN8BaxP1UNRyGA1OG+EuhY4kAYrFFgWEu2FKBicnd83vY9j3oLBaVpKqD0QutW3gsaAWD08saAxy9CjLgID/C2zKTu/wB78VAxiz1T2EIG+5QLEiDtZ954yyS/pcHx4v8APFjUpAUh2SOgI+uL0PbL9vx4IQFzrBhSQo5eRxgvW6P8OF2rlx9Bl7cgLktBmhYpmWcc54k6MOBBIcGlSKyjLbgIlwRdTD3ikouKzwEEgbIxaeIyNAsHg9F71f1UZkCR08ibFRFEBYj/AAvDxcO/6oADAI5C65Qd39fNFZltGTnxV4tb7cU5ExEmnCM5KSrADBYWC8fHpTFidzSYyyLNMaLIc8jux9PCUVe30Kkxgz28ik6SB/xfRPd5ARWAlpgYjLv+qOBuh+/biMzdA3cfk8AqAU2y6cTpM1FXuPhylZLwVhKkUAhmJ9XyLocPt/hBsAJaYzjLktFoPQu/2/CeMh7cNBkTRS0KXRw8G/8AMAZDf0o0mq4HQoBAA0KihNEmiXp5ipE/Rke/AEpMApiQkXMn54ISMh8vkRGauf4bpZpehy7A/a/tuBkW8qkhRxK7AnVtQoiWSgNtwNTXwASGIth/7yuXrITUsdBApidiJeMaGwPSX8ivNUt03oGppE/wXlg+gckWkuAauVXNlC7q58Ly2rYJnvW/1fQsffCItkZJpQpYJcbn+BfoQqdmVLyO7szcw7aVDFrWJ4PrPM68qBxmH3RGMAjk2qT65ffIoEuoO7RqwEHbH3niYWeCMVPIuw21KsB2INzt4wwXGKex5ItVO4xGVqu8aTHOplRR/EEmdbtKTc7c7k4xmDRq3c0pU1JLUX3eN8/wy8hOkAS0wjhpbbenJAr56IPelUqyt3kEK3K4E3XsfNHFSSNnW6aVGQg0lUJvUXUJz5FiRrrwdhjcFAwBqM86Fwlj5NJgRKufknyhVs1OUAXsTptU/fdqepnU1m4FgdvxUCRLIYO/5qIG0bD1wo4BMFSPgGEoXE6GtYTAW5LTwfRP3ysDRMxsck5Ze27UM6bkOXTkZQsR6t3496uBCI6mx7tS6tEUhmr9QoAHMWB6NAEA4I8SldNUvpjQK8to79inLkZVbvkyNWkSiYOCHF10oEJLiMjUIS2QnfGnyldc9Sm5QziPWPuo0RMbj1KgRfWA+qiIi5P7VFGajPFQKsBjUgOgOVPkGw6NR4rufJatFWwn6oJY7G1HbH4qcY8Tky7cg4aCaZSgr1NEc26A14RIALowDVaNvW2QZbFPiZTxQAVMAZ1Lhd6j+ihcewjD3+ORWevhQJB/ZvQ8H6I+VwSbNd/So95csbo0AFCOZw9ZIVq6iWrlN96R+qJJ+pd81gjaDf5WojoaP1RUcC5fFJEtAcX4oRJGeChdp0lS1gGnekGCCYRRkmtXOjUDGep9ytIXRfioUgxcYbUIgjI4VCuBg4qhlF7GXYNaw7z1LVZ10BDox9+JpSWAJWhYf2LvSgVYC6tIK4+yw/PfzNEhdV6KhULrnpjULds3OVITkB80YlzN1cVpBIblM8le9Pauk9vxSxxCW8elAoJxGhkUYkyfyoCUJtwAKoDOojFlbowqSw950U3ADQ2alGIlCPX5e1DyQECBTMQ4z/rSlh2H5UX1xu+vAMFGD+L+bFSrBUNQIR5C/rUSPallETsJdRyYrYDNpEpOJttSCmWJk1gGd3Nf+RUmKdCkUYvQLTkTRiMHFZcEskmqj4qeR9z8Url3SYFItKeI9xUaSbUfBG5NbQ6UlInWL0pbTS/rkYq+GYtKkgPPTbzkVSKJmUbTiwfmqKCtVDUGTNk/FEnQKCJIibVhKbQ3qwTK3XVpIWQYCyVkV2Q1HiHpRajmKyqESYhZ2cLkNZRWWCUSZO91YzWCxHSkEIjCcFSNYRYYhvQsgm1Ib/JxonSBh4Dz9Wa4DYhFQLO3o9x4n4rDdtZQ89EFCRmXt/GBSARJHKso/wAsaixewrQ7yFaIGqy0RuFmZx7VPZcbUQmc1u0wjorH7pMx83/hRRkUdqyMtFWRDRvwvBPgooOK91f+ypxcuq0YgSqeO3T/APih/9k="); - background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA4KCwwLCQ4MCwwQDw4RFSMXFRMTFSsfIRojMy02NTItMTA4P1FFODxNPTAxRmBHTVRWW1xbN0RjamNYalFZW1f/2wBDAQ8QEBUSFSkXFylXOjE6V1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1f/wgARCAGuAoADASIAAhEBAxEB/8QAGgABAAMBAQEAAAAAAAAAAAAAAAECAwUEBv/EABkBAQEBAQEBAAAAAAAAAAAAAAABAwIEBf/aAAwDAQACEAMQAAABwG/nAABAJAFAAJgSAAAAAAAAAAAAAAAAAAAAAQAAABCJgABQAAAAARMCQBQACYEgANsst4GuAAAAAAAAAAAAAAAAgAAAAEQAACgRMSAAAAgEokCgAAEwJL4+jr08Onl9viX9G2HkHp8QWAAAAAAAAAAAACAAAAAIgAAKABAJRIAAACASiQKAAAXoz20Vnx/Rm2emvnzg9XhNc89oGuAAAAAAAAAACAAAAACEAACgAAQBMCQAAAAgEolV4+i8/r+benzbecO8wALXnGWUXz267n6+T3eFf065eMerwheQAAAA56Pd489qobecAAAAAIQAAKAAAIAAEwJAAAACLVnnS/S5z5/1d65FnLXL2/NDbzgbY7Yyr0caaKz4/ozbPXXDOsPX4JQL16uvk9/FJ9HkhDvOUBMaYent48x5fbTbKepk0z93zAvIAAiJgAAUAAAQAAAASiQAAAAEtbNl6NK1S7Za5becLANctcpQsA2y1xlCxatst9/Zznh+m9PmgU1y+h8gO+FquNNFHl916Q282uWuW3nCwIIAAAKAAAAgAAAAAJRIAAAACAbY7YrKCTemq0qAWNM9pc6rc9Verzc9wNMrTRl6LVOs9ctcu8wsAATGssZgISYAAAFAAAAQAAAAAAAEokAAAAA2x2xARtjsuSCSiRtSFraunn9f0fHzzx9Ga7rnFens+cFmuWuUoIAA1x2XEIAAACgAAAIAAAAiQAAAACUCQAAJiS+emYA2x1MggG2O2KzfOc9tFHl9t80+jyaZXz2882p78t/Nl9F8/LWLRplA6zAbY7LiEABQAAABAAAAABEwJAAAAAAmBKJAANctcgBrlqZAGhbG1QEAbY7LiEtpnfx/S6XOhj6PR5ltvNiPZ84BtjquQAAAAACAAAAAABAEwJRIAAAAABKBINctcgBrlqZAbY7GIAAG2OxiBems6Voy3nXHXXz5CwDXPXEAAAAEEwAAAAAACAAAAlEgAAAAAAG2WuJJoZ67+idct0oTna+iDxpiwABqzIA2x2MQWm2QAL86Xx6/K47qNcABBMAAAAAAAAgAAAAAJRIAAAAALGm/R92enl9Rx2CgAR5vUTk+D6V1z8o7/K04yy2xvIDWsFQa5a+yXDy+7wk3pp5fd9FxfOz2nPeneWA9nzwAAAAAABBMAAAAAAAAmBIAAAJ7/n6megcaAAAAAAImieHj/U4d8/NtMtMtstcSUSe3t0jLb5yprjOuO2epk8/rvekejyUGmQAAAAABAAAAAAAAAAAAlAkDfDtzroSY7AAAAAAAKXolwuPz30/k644eRrk9Xl6svXx2Y7fJvb4t8J0nEGhbG9AAABvh0pea2xsEEwAAAAAETAkAAAAAAAFvqeD9BnoHGgAAAAAAFL0ugKpeicTw/QfP65O3xO4dAZbR4feTnU6izh+b6Xw9c8EaZl4KgAdvjfT8d8Pw9Lm9chYAAAAABAEwJAAAAAAB1uvzujjsE6AAAAAARNEXFApel0z+X+r+U04v6sMeuPrHj9mOwKAB890/ZbrlEueufyPp464+Tn6HXrnx9Iz04nN9nj2xCwAAAAAgAoIBKJAAAAAPZ3/lPTx39Iw3z0BQABUsABRZJCq2ok2Fj5b6r5jvOcdctONO/wDOTzfq3J6WeuglAAAAAUvybOVU2wAAAAEEwAAKACAJgSiQAAB0ubpL6PR0K8d7a8GZe68Xs56kK83pJ4vToBmNIkBYrGiAridvl9c8eDXEXNq6+OXStVnY6vG6eWuk/J7WfTvF7eOwUy5lnr4CNcgvIAABAAABQAAAAQBMCUSAAW6/GS/WZ/P9fPTDx/Qjhev3+Y0359V6bxejm65lJuikaY1G7ONFBbOu9fMY/TcbTLy+jG1mVSxLsy+vx9T5nPTAa5LVGsZlBAAACAAAACgAAAAAAAgCYEoEgA26fGTr6nT5P18dfQub7ee9aTEL0AVCmqVvNJbqULF6i0VjDD31s5t+mMdmMvk4d6bZBeQAABBKAAAACgAAEIkUAAAAAACAASgSgSADf2cxL3vV8u56+tr8x6Je+5O869zHaWK20FCApEiulOanQ+epTTMOuQBBKAAAAACgAAAAQITAlE0AAAAAAACAAAASgSgSgSgSgaa+ZL7r84vUnlI6mHiF6w65lAAAAAABQAAAAAACEAAAJgSiQKAAAAAAAABAAAAAAAAAAAAAUAAAAAAAAAhAAAAAAACYEokCgAAAAAAAAAAAAAAAAAAAAAAAAAACEAAAAAAAAAAAJgSgSAKAAAAAAAAAAAAAAAAAAAAAERMAAAAAAB//xAAtEAACAQIEBgEEAwADAAAAAAABAgMAEQQQEiAhMDEyM1AUEyJAYCNBQ0KAkP/aAAgBAQABBQL/AKFKjMP0/CePFRi36dHIYzJM0gqUR/qC8STc/pd6vkeEeQQsP0K3JHEyH7ssJ2YmMaf0AVoVo5o9Db4+7OOQxmSdnFSGPTzhh2ZGUqfWjKPEaVmf6jRIGZxZto8eQ2KL0xuc7crDtePFgWtUkRj9ivE7W8ed6vk32jZhKnhBHIBIoknJmJphb1t8r0vZtk67Urrtjcxs+Juta1+kRypO71/+W2TybW4LsG3/AC5Mnk9e3ZsTi54nYguzG7bb1er5Dx8gcS/f699sfk2jglCmhcDeOzkR+T2Endsj7tr8MhSm64lArhb0ylTsXs5Efd7CTybE2oLsxuckldKZixUlWdyzMLbB4+QnT1/9yd+xOmxeC75O/IC9dE5A8Xr/AO5O/YnTYeEed6vkBcubvlhfLJErhhY23nx+wk8mxOmyTrui8mQpTpPyuB4mOQIp6bX9jJ37E6ZoLuxu25OmQ2nx7ZPJ7CTrsTpnH13/AOWY6ngb5P02R+T2L9NibB497ducffnJ3bE9kfHsj65nxb5O/Ne3JeLN3bOkfsR4slRmoYaU0mFYH4jV8R6OFlp4pACCN0ffs6RZR92xafDcCLexTpHh3ekgjTkWvTQRtTYSnidM14LskzTtr6emOhQ4FHDriLGVULURb1wBYwYcJzpMOj1JA8dHhHmguzG7Zf5YaHVWKe8lDYjlD3etAuYIRGPwJMPrVgVOScBmkes8FVjc5f1kTR+2P1mEi/BbpUsSyCRDG1HhHnGmlZ+EObcEq9INTMdTerhT6knT8H/llLGJFZCryd2WHXVLUovFnJ35dsfIiTW3o8Ilk/BXZMgOzBDjliIijVH3ZINTMdTcjBD75Rpl9CBcqNK/gN02dWxUeiTLBj+PIi9NhYzQwoA+GKfCuKP2LycGto8WP5vQ4Vbzfg9W2L0xS6ocsMeRiIda5aWNFSNoGooulMb5fQ4IfhL0zbKTjHSC7QyWn5EsZ+vFh1TK16kwqtTxshyw0GnLG+T0OD8f4DbRxaj0pOArDy/UTfpGrYQDRw8RpYkTPFG83oYJvpsCCOeOJzJsALDJu48I6RyjRSrIOex0qTc+iimaMxyrIORcX2Nt6tnIP5ZO7IEgw4kkq6vzsZJ6SCKOVHhkiqPFkUjq++SPVQ+QKXVmOJ2L0zlXTiNkYNmNhqarmsNMzNVxyJ5xGCbn0aMUaKVZRJh0emw8kdJipFpMTG1deQxsNh4nZi76cwCxkOhc8Ev3TNpipJGjMeJR9jSIlS4uuvpgSDFigcnjR6fB19OaKlxUgpcYlCeJqvfYONWIrVWoVc0OGw1p1JIhjalUsVtcm5zgT6ceNb7cwSK+rJRdz6uOZ46jxKNmUVqOGiNfDSviChCwoKRR+6r22FgTViK1VqFMTlLGsith2Qs3Dtjzw+H05TP9ST2SSulJixSurbWNqXpWkVarCgOF7bF41xFahk8URpsMrV8Ohg1pIkTLFy6V9re1JiZFpcWhpZEaibUBVquavVzR1Eg3y0irURXbnpFWAocDnJII1di7e5WWRaXGNS4uM0JEbIm1AWBF6+6uNEmhcZaa4191aa0ir2ykkWMSyGRvfB3FDEyChjDQxcdCeI0GU13GrEVc1c191aasa+1KlxKimYsf0UOwoTyCvlS18uSvmNXzGr5jUcTKaLFv/FD/xAApEQABBAADCAIDAQAAAAAAAAABAAIDEQQSMRATICEwQFBRFEEiMmFw/9oACAEDAQE/AfKvgcwX4eCLOt27eWjhf6iK8LDLuzaE8Z+1NiL5M2Pgc0X4FjWiP8hqpGZDwwx7xGN2ewjhQiKNcTRmNJ8Ffrz7eM04FGNpFLIBopy0u/Hgik3brQxEZ+1NiARTdr447y6LdPvTbh48xv0t1T8yMTGj+I68u2ZiHs5J+Jc4V0cPlz05GNpT6Asp7szr2RvMZsIYtv2FNPvOQ79jc7qT4i3n9bG4mQJ8rpNfCYaOzmTYSCfSdAxo8NDLuyvkxqebechpsgAskp8YIzNRjc3mR4bDZS1NY1uixDw38ffhmOLTyXypESTzPfUVlKo9KJmd1KSIfszTuQ33xZAi0jhq0VhmNIzIQgWpYmBvrt2j76JbwAVsilMei+W30pJTIb7YCz03C9g16I17JnUcOabrspZQi31wsR17FunUfxBuwtWRAUjr2LXV1H7AaQN8ZNdkFXpZvfSdwt0WfaTSJvswaQcCsoVFc+gW7QLTuQ7oEhZ1fRpZRsJvvbKzrOrHFdIuvwllZirP+E//xAAnEQABAwIGAgIDAQAAAAAAAAABAAIRAxIQICEwMUATUEFRBBQicP/aAAgBAgEBPwH2raod6eq+1XC2F5/TVGXhGk8fCp0fl2Daod6FxdfomOuGWo+1XC2F5ygZE5iYEptWeeu8S0q4q4qkHAa5KjLxCNJ4VOkZl2LXuiVe3Gs60K/+YQe5xQ6zqTXJtFrTOzVm2QrimyTATRaIwe0PEFH8dyp0rNe+42iU2oHYGiwptNrePSVnx/KNRNqvJ9NUp3heB6pU7NThVJjRNeZgoOB49NWkORcSqLSdfTOaHDVeBiAjQd6QrgpG091rZTH/AA7sl31muKDpyzCCrOIMLyJlRxPXcdkOyEzg9gev1ymMDNOsTA22nA8bJ46T9xp0TuMJVxQd95XIcdF3O4zMXYByvRMocdEtncZgRKIjOBPSKn7Vv1tNyu5VmIEoCOmRKLSFcpC02A7EmE3U9ogFWKNmVccAI7sK1WqDmiUBHpICtCgf4T//xAAxEAABAQUHBAIBAgcAAAAAAAABAAIQESAhEjAxUFFhcSIyQYFAkWADEyMzYnKAkKH/2gAIAQEABj8C/wACqD8QPKtj8PooYBwsfiGwUfw/l9B+G8UeVbH4EAQoXEdJIhQwDhYFfN/aCrmEGgoqBMEQJmt6T1wCjfQ0QPlwj5zHaZke57H3K0rTONzQwVTF1TFDjMGjMBtNa0miFAB1mzXVRuvQzD3MZgz7N17ujmDMo5RmjdNXTXOYDiUTE60fEi4auWec29GYM6PBVPKgoGVq59HMTK1xKES+hUSohRKHEjVy3xmJla4laN4RcnnMTK3xKN5wE0d3hbqFwzzmJlb4lhoJxtWSIXbVRRBZjFRmZG2YmVviQImdo7XA5mOYjiVriQnQXB3MkFB7I2lGZM8StcSNXDA9ycXLR2zJmU8GQbm4hpSRovCMp3OZHYv6WSVgAokhdwWIXhM9JVZh9yjc3PScyaGyiekLCJ3uKrthwuhr7XUy9o+pQNA9outt+cBJEI2VAVy+AUWqtX2h2Wo1TI1rIAiX8lW2sFDSaLKP3lsAq93wYihUC9praRhnxiVwiXxkh5Ncttn18GGrq46qDTgNaytSMj3JHLAPhcPgVZOKhpR4c0JOKP3auSNskta/CjrIGodQwkaL4jtdHSr9lG5J2TQ3yIBAfG4URgXkvqqURFrFd6pVWfJxuidUciG3wuJjs8saC4tDuD8CqiWAQZQ4yJo/Ghq5obOAUfBuSyyMV1VLqrpoV1B9trFw4yI8/BhKTI01s7cXFrzLVdq6WXnbIv6Soj4EbgobuiFvp8Ak+ETke2iofVzC64kaG6hpR8QrLY9rpMb79se8k0aUR9hQ/UruukzxZNlrVVDLS6oenxl5kaa9ymHCss4LuKxVhqu7sRcQHconJIsrfRaHZRZrwoNVWNnlUvYS09yQC/bHsyNNJo7OiyVXpMnU0FD9P7yeIUP1Kbu6mYroa+1SPpVgV1Ahd4liqKsXYfatHzLA+VAuorLOHk6qMgHnygxrJQrva+1Vo/eV0NNFXpL+pkFdsFiVRsr+c0qtkqC6pIOpgsCvP0sKOgV1duqgKMr+6S23jo4nM+krrEF0mMu8ncVVV8qv3JHVUwfUIQaK7/8Aiq0V0h1gYnNqLGPK6hBdLQdE4qiwWBWEuJUFs/B0JIlFo51RpdTMVWIVGhNg6LXl+KxVaugXRKic/o0VjFVZVYhdyoQtnUWCwWixKxVSv4eOqi0fwajRXeVisAu0LsC7QsYKpj/pQ//EAC0QAAEDAgUDBAIDAQEBAAAAAAEAESExURAgQWFxMFCBkaGx8EBgwdHx4YCQ/9oACAEBAAE/If8AwUUE5AqyIb9O1TNxIEY6/p70pNQnwAQEBO8T+mA5BDpuFOF36cEqENZnjE0Jy1UQR+giSidW6IMAapwwKQYs3XRTBiKrVN3+tAAhDJz0adCBW3x0XqVCicYBEIghj1RVCJBOiIADEduqTIYTi1CFRjDRAbRdDMHY1zQNcMRZAETdFFOWQOCboCqGPVBbnfZBKE2N2wVytK9AJOaF0/16Zh7KKFa8srXvhFoGD3REpjnKuYtkVcxb4VO5IRM1A9sBZMThFIcIZoWQ/wB5hAJKk/KJJEmpyAOEAeYXT2zJ1JxvEYaDlByEuqAt8XcKBvlCq9KWzbsPRBKrwzXTnH0sdwiHZ8os7gjdXOVjBpUpyuzmYvdDoiyLlG5rl3DTsOWttObf0GFSoI3CIbP8fo+2IyX7hp2Ay1NvizeKTzhWhDKELSUA7IxgA5OiIAMRocvw/no1DYnt3H3uX5uVpLcwoVTIA0VinOuUFVwjKuU73AcnxOjA33I7gKF7vpH4iwxBfIS60rAD2x0AdciT0YFuA+e4Che7y/V3GWBufI7AS63kLLeQsWSWKpJtBTjqCdngK5HuAXvcv1dxlo2Az1H0E4yRAEkJyhOFU4EgDgfNEWh95/nuNdfL9XcZGButwDnhZN9cSnISwUN4jlElkfhLencaq4dE4XB0BH0W/wByPIXIgSwpiJdQ5zKLu0BcolySde41eV83JEl2HQjtPdkpHkq46dgBliLfzjuUzWJGX6q2SG6HoV/oGSOybEWW6Nzb5BKotQe3cpchj8OCqnIK0OREcYUdJYFAXBQyeYS0ogwEc5hd6gl4RLkk5DA3MdewfKDlV7xsdUYp7jO6T10SvfJ0BAGAHlaMLwX9YlXGuKY+Ls85YG2Yw2TYb8wQOnuIEN/xHGjwirJLZGJj24YC5KYf6jrSwG8kwRslzQf4ZOTFuQcaIPmI0F1F6RwryOYYqsyaSPbSAA5KeciqfwDSaJqPDTRFIWIx4Awech9IBGjDAE5mpxDmxTFhQNy47ayG5P4L1hsGHDQhYLzfDcxfXziA5ZAiqRKJztk5I6OU66ZAaVJ2T5RYdssjqgAAAoPwa8WOp7Q2TGqkcwpiM/QScGotiA5AFSjDgKQeMfsadHmkR2R7Ovx/CmDcfI0DvUZPZOJWCVMPTUMnCEMBJNgnygaCw6LlsmyHYjWalBA6D8HQvCEBsnslAGri1cHEAMDhEXdxQbH4KyXogrmBQ2U+wW6Tw6kxvAdi9SPwvRyCWDoKzUynBrLFo2A9ARg/yYikN4VSByMpw1igCNAg7E5/D+CSwcoKjUzkk17ANwLDkxSao3R1VDhBgQWA1EQBgBU1/GTWY3wAJLAOVQu0W7I4zX/BSa/LwCBhV4w4gzATBN7oSGSDPlAsAI3RR4cFUoBvj6PdiM0dxDRXB/AmeIyPBTQMDQoGBuoK98AY8hRuNX4AdBA6MdqS/Y4lOtHtN0QMQGRUZShhUwgGDZDANJZSSpUxHEMUEONiHOHrNV37IIxIdXRyYgIiBllUHcZzvwaGgIodydlDENsUnQIGQlg5QVGssjwUAWuQ49RggucKm5Wl7iAy4J+VbwwEdReUCDIL56yD9kQhHJ7IHGYhRmNaSbbyHqMa1Iiz5wVV3EBAOTjboRF0AAABkieZyiTggFiyDAJTQekg1yOWIZeh7D04NChTHslAghxONMGyIYG3Ikk5Lnsw0UgjUJsmehAghwXCAxbkCrWyE5wHc1D+aGRHskqkeSEABwQcaIZHrThbmLFM0ByFzeiJqMF0fMJFW2QmBJTSj3It8ZvgwPI2RWjKj2WuIDlhVeVXJMhVJzkqwOCv9Kqo+e1jPrFFC+ZRAvTD3oAv4oKOiNNFwvGHvxzBTNMalClDfTIIDQ1K0W52FbgeMAKID9R4w1U6GyMCUNCdZ7F+UJTqXtiASWAcoxAOyxUVt6DjudfWsaI+OcELcOUyiSomU4WI4T0EQdx5KfJiOjMICDTAlqqp9gmurLIE1lQp8YNxCDkAAGCaoWu4hUFBvhJl/Yd2BE5EHZVZlK4e9VEeUwTVwjNzYpmvpT1WfWUDJxC4BtgbDcYYZIeS9XVTgcLIEEOCiAagHBCkAVUoaZDfxi6KTJ7zRFHJ5lAUOC+QKr284NIqaYQHldMFCDyn/wB0CHYDynvmbYECXEHZMP8AcJrHomGoknqufKnqboEGhT7eBdaO9Bbv9NHlGnIcgtN+CjqEaJHKqi8rU0e5VVqMWKu+9b1SsnkL6QiQOAblOQB0T8H9GoA8qhIANB5CGsRD/tL/AGEdES01wCNObl/8UP/aAAwDAQACAAMAAAAQCCS//DR99tBBBBR1+++++++++8xBBBBF995DX/6CCCC2/vDV99tBBJBBRx888885xBBBBBF999BH/wD4gqggkv8A8sHX321GqkIEEEEEEEEEEEEEX332EP8A/wCggvigglv/AMsHX32zD6IkEEEEEEEEEEF3332EN/8A6CCC+uCCC2//ACosfffVnYsCAQQQQRzTfffeYQ3/AP6IIIb764IILb+7d3rX1a/Hk03gk03sMzT3EEd//wCiCCG+2++KCCC2/O/hBV299e99OKf9/wBj+gQz/wD/AOiCCCe+S+++KCCCy/8A1T1ggYs8vjPfucYUih3/AP8A6CCCCe++CS+++KCCCS2V/qPLJahdCBqDDDL/AP8A/wDyCCCCe++6LCS+++OCCCC72v8A/wD1r9852Zr/APp//wAgggghvvvugrQwkvvvrigkiQl8unv/AOn+U3v/APtyCCCCCO+++6CD9tLCS2+++OCpCVCBCyyhylaHiCBCCCCGe+++yCDf999LDC2++++lCcJTCCCxCBCpCQJCCGe++++iCDf9R999LDCS2+62P888f7IhCZCvKPMP+++++yCCHd99BR999vDCCy188888885AOtK4+P3j+++yCCDP999xBBB1999PDU88888888j8P9pr1V496yCDBHf999hBtBBBR9999l88888888n8nWp8fvfCBCDTV9995BBB9tBBBBx9938888888708XEy/8880Mrz+d95hBBBN899JBBBBxe/888888v8AO/JwFuPPPPPPOOYQQQRXfdPPfbSQQQQ6d/8Az9/3/wA/8sd5FdZbz8wwBBBBN998AQ8899tJBBRjFHEyUnQGzgdp9hWxhwBBBBN99984AAA08899tNBBg18vro5/j0PfvfoBBBBFN99984gAOAAAQ088999NNBBBDJ0AATAQ/RBBFN999988wAAA+uIAAAQw8899999NNNNNOcuetN99999884wAAAAO+++uKAAAAw088899999999999998888wgAAAAO++C2+++uKAAAAAQw0888888888888wwAAAAAAO++++CCS2+++uOCAAAAAAAAAQwwAAAAAAAAAAGe++++yC/8QAJhEBAAICAgEDBAMBAAAAAAAAAQARITEQQUAgUWEwUHGRcIHRof/aAAgBAwEBPxD7r3B7/H2eyo5KiFOmDrZvrERI/ZU7w7ht4fmELvyzKzuT3+PsJRst+qmFGxyejqKmnJUB1mWdtvtojstnqrT3Guuh+/HBzQkwZiUOjVXLd/b/AHlj+07hN4fmXD/LN8Mx2Kz/ALMgE1NcEwaaMMQ4mbhTfv8AuEEaeMRRs+Z1YR5d8vtwFQwlRAU1H14zLqtXymWZI4qojvyHfBvkjge4fTPuOAau/wAzHPEfQbj5Dvg3z1EIunX9QAXK41sorfdxKa4fQb8l3wb5Yt2xgxa/8lo0o7jALoZorWz/ACFWg5PJd8G+XfJvgDayWS0pCkFu3PXku+DfBv0HFudTBVn6iqlrz15LKuF2p8Eo69HXBx1wAvUAKWP2eThgA16EHcU1wDx1wJASg0QT2FjmWEqLsHse78evL6DL8kSo8UL4SXT2hVlXLg10eNiPovA5RzDYIlkRGmdcPoNgjjwRi/onDKOUh3PglJfCuRbc3eCKH0GHB7zrBqmDZZ6AG+BdQUAUTNeDoMG9evvh46RjwOnroX4SBzBmXCmBBHXCXAqLUOO+NOXGJcTmw9xBHXA7R14aaTAMW1KdMvuQX2l5le0WoFSybYw4hjhFFgObfH0kB3AOo+01MQq5kisJmI7J8EwEuX5oWmC7lIPBHTKvM/PFfEeyN9jWk+afJFu/4J//xAAmEQEAAgICAgICAQUAAAAAAAABABEhMRBBQFEgYTBQkXBxgbHB/9oACAECAQE/EP2rVa9ff6fDKw3DPbg/WD+YIln6Uae4pDDR/iYCNVr/AL+hchVUy2n4dyuWYYZ7cPVqAA7+V16QqBpf48dAHqBt3mWOZQeZAiU1DUOS5bPUxCtXzhEw3G9hMNW+vUSgu/GcvTO8IcmuT3xX2SBiDuH2iVtrrlBYwkvWbYa8g1w65Yb+kxGn1w5dVMyMw+DqHkGuHXPcIWNkBBDJMDy+vqDZwfB15Jrh5IH2EQdT7RDUIBVbCe33H6V8vkmuHk1y64bC8OZsGKjcHPfkmuHXDr4PFAF8AU0c9+STUatz7JZ38O+Hjvi4EVaqf9+UlXfwFNQLcCDjvhAViUtjzq1FtYyQrlffj34PwErwwbhxYrgwHcbcJDKefBxTiEdKDTBEsnfB8HVoN+Cs1+F5s5QjU+yWtfE6KmrwVl+A5Z2iXZEpp+CJXCm4iIrZq8HcIlb+fXBx2hDhNvnYrwgpiVcGNsqIm+BqLcC48dcbcmcyoDAj6MRN8LpDHhhtMgQRuW7JXViHuViXDMcymahJmOeAEGR5o8faRXUUbh7m5mN1MQCMxBdM+yZWVK81DuJ6l4lETZLqf24v7h0Q/wBGoZ9U+iBdf0J//8QALRABAAECBAQGAwEBAQEBAAAAAREAITFBUWEQIHGBMFCRobHB0eHwQGDxgJD/2gAIAQEAAT8Q/wDgrIdKU7RP+OCBNKOZs+hFWaAgTOc6i6FQn/GQJS+JsJg0ZmiULzQB2zoiXPFpIY/4uY35FGD9vSmcAlMGB/xYxhRqKhUuFaLXtLHvPpxOA4xlTqI2/wCBFiiBIDhJj4L3EoCgeYXQLcDEmnAN2mgMkzKS4KUYnjpGPmAm6oZBxtakdZxLU8C8MF7wt7xxgRNWAI2TBq4kYhnUUXoJclNAkZ+LeKZfRI7e9IFxA+XYNAGSmgBjMFZK5AoO7CyocJiBnzb5E6YvwcZCOS0UPV0O9YiDgGRpyLYFi7BhSjwJBmi2mONsqmSCxu0mQcXKnheEpT5YoDyTF6MNndi35jm6oN3QPlxmhZk1DelthTyIu66O3KWKDCE6Xn6oH5pQwH5rAHPWQre8Chre8Cl4QisEEpis4SHV8sXcUJnFb1TWMK34g92frm6AvqflzEfJWa5CnKlJXkDcqOlQhMBpSs5YZEdKigXFdOCiRbiDvy5bxWMakTVukHt8wbTN3sB++USDVpWcl9Nvrmt+3qDgenKsuSI3a9m9x5hGDW9Sri0Y1hNR6CPrzDuMu68uyY9631H35TwJ9ApW809uY1cBGVKrLV4aJ9eDsGFb3r3fMLX+wcveHsvzLVXsYvAzKj7Zk4kdaRX579uXv4JGXAR6DNJRYrPmGLoHty43Ue/mtBq9S7wUS0pMRBRxBYDJmkpKgBdpQWKC5y2LqD2eDb+rjj3jzHD6Q5ca0+OPvlkzCZehepEzGsKoTOdO77kSFOHvm040PJNQBukQUQBmR2knksXVHv4PQsDqh8T5h7w5utXRe6H3y73O6eJDfisEtSJqxfr5Pri4hE4BTdBisRlD4O4jugJ+vMPeHh9BvVH2scRTCjqVPSkxUhmJepojMEHSeKFtkdYp3JhslOwXEaGpEYebfjfSwfD5goR0owfgoAlgpwfD7j757MnL0H6cQBGoICSNNvC3GbUtwoq0Qtiy5U642Qnfm6x3qfMT0g+3gwb1it7hOfrcHVB8Lxguz5LhVj/ojlCAJVgokxki9LD48xv1D9uW8c1/I8nWYOsW8C7Zkdgr8ORCLygqY0yEmcU5VIr10N7jPKEFPYRd9imvhUvmN+pj6Mct8Nfjn65Ouw+s/Xgd+11X4DkBPwC+xNKpXFvxs/mDl6sg6o+C+Zfwhx++W8dfnv1yWT9AR984KgErTITIQ9kfXJ6d+qx8Tx3TNb/LkCoKkmCOjYP2np5lZdH1EfXHAg1LPWv7A+k1pw5JxR91/wCa0HH9VPqv4VetaR9liu1SIugjmBYlXoCX4pnEqyvJvBuwI++IIvBl6UqquLyPGYqBQ3oS/wAalYERhHEfMe7U6ifujC6ZF3oUMIC3vbCgAgIOeKE0E1PLrH4LU92XZ+z8VMIOq9Rx3lDqL8Dy2Llnq3fnj0f77wipxYzXd4SIdKioXESiJIlybrRpgYMS4Fi9R1klNFKgRGEcR8uYq6AKBhQ9vFJJDhQbL8iDuYVLd6J30rdjHTB8PryTtYRLoVvvJxx9fZCoO6L2b8Veq3ZvnwUdfCUw4PZIQySJSNzgq1/a+WpgVAGdCSB9DY/wIE4Behg5xbI02pc+OHj/AO2iz4nkuZJJoLSLis4aBSqpWeAwyVhKAyd+MCDGt5vQGB6y+nlobeDka/4VJzB2Z+00WIqN8BaxP1UNRyGA1OG+EuhY4kAYrFFgWEu2FKBicnd83vY9j3oLBaVpKqD0QutW3gsaAWD08saAxy9CjLgID/C2zKTu/wB78VAxiz1T2EIG+5QLEiDtZ954yyS/pcHx4v8APFjUpAUh2SOgI+uL0PbL9vx4IQFzrBhSQo5eRxgvW6P8OF2rlx9Bl7cgLktBmhYpmWcc54k6MOBBIcGlSKyjLbgIlwRdTD3ikouKzwEEgbIxaeIyNAsHg9F71f1UZkCR08ibFRFEBYj/AAvDxcO/6oADAI5C65Qd39fNFZltGTnxV4tb7cU5ExEmnCM5KSrADBYWC8fHpTFidzSYyyLNMaLIc8jux9PCUVe30Kkxgz28ik6SB/xfRPd5ARWAlpgYjLv+qOBuh+/biMzdA3cfk8AqAU2y6cTpM1FXuPhylZLwVhKkUAhmJ9XyLocPt/hBsAJaYzjLktFoPQu/2/CeMh7cNBkTRS0KXRw8G/8AMAZDf0o0mq4HQoBAA0KihNEmiXp5ipE/Rke/AEpMApiQkXMn54ISMh8vkRGauf4bpZpehy7A/a/tuBkW8qkhRxK7AnVtQoiWSgNtwNTXwASGIth/7yuXrITUsdBApidiJeMaGwPSX8ivNUt03oGppE/wXlg+gckWkuAauVXNlC7q58Ly2rYJnvW/1fQsffCItkZJpQpYJcbn+BfoQqdmVLyO7szcw7aVDFrWJ4PrPM68qBxmH3RGMAjk2qT65ffIoEuoO7RqwEHbH3niYWeCMVPIuw21KsB2INzt4wwXGKex5ItVO4xGVqu8aTHOplRR/EEmdbtKTc7c7k4xmDRq3c0pU1JLUX3eN8/wy8hOkAS0wjhpbbenJAr56IPelUqyt3kEK3K4E3XsfNHFSSNnW6aVGQg0lUJvUXUJz5FiRrrwdhjcFAwBqM86Fwlj5NJgRKufknyhVs1OUAXsTptU/fdqepnU1m4FgdvxUCRLIYO/5qIG0bD1wo4BMFSPgGEoXE6GtYTAW5LTwfRP3ysDRMxsck5Ze27UM6bkOXTkZQsR6t3496uBCI6mx7tS6tEUhmr9QoAHMWB6NAEA4I8SldNUvpjQK8to79inLkZVbvkyNWkSiYOCHF10oEJLiMjUIS2QnfGnyldc9Sm5QziPWPuo0RMbj1KgRfWA+qiIi5P7VFGajPFQKsBjUgOgOVPkGw6NR4rufJatFWwn6oJY7G1HbH4qcY8Tky7cg4aCaZSgr1NEc26A14RIALowDVaNvW2QZbFPiZTxQAVMAZ1Lhd6j+ihcewjD3+ORWevhQJB/ZvQ8H6I+VwSbNd/So95csbo0AFCOZw9ZIVq6iWrlN96R+qJJ+pd81gjaDf5WojoaP1RUcC5fFJEtAcX4oRJGeChdp0lS1gGnekGCCYRRkmtXOjUDGep9ytIXRfioUgxcYbUIgjI4VCuBg4qhlF7GXYNaw7z1LVZ10BDox9+JpSWAJWhYf2LvSgVYC6tIK4+yw/PfzNEhdV6KhULrnpjULds3OVITkB80YlzN1cVpBIblM8le9Pauk9vxSxxCW8elAoJxGhkUYkyfyoCUJtwAKoDOojFlbowqSw950U3ADQ2alGIlCPX5e1DyQECBTMQ4z/rSlh2H5UX1xu+vAMFGD+L+bFSrBUNQIR5C/rUSPallETsJdRyYrYDNpEpOJttSCmWJk1gGd3Nf+RUmKdCkUYvQLTkTRiMHFZcEskmqj4qeR9z8Url3SYFItKeI9xUaSbUfBG5NbQ6UlInWL0pbTS/rkYq+GYtKkgPPTbzkVSKJmUbTiwfmqKCtVDUGTNk/FEnQKCJIibVhKbQ3qwTK3XVpIWQYCyVkV2Q1HiHpRajmKyqESYhZ2cLkNZRWWCUSZO91YzWCxHSkEIjCcFSNYRYYhvQsgm1Ib/JxonSBh4Dz9Wa4DYhFQLO3o9x4n4rDdtZQ89EFCRmXt/GBSARJHKso/wAsaixewrQ7yFaIGqy0RuFmZx7VPZcbUQmc1u0wjorH7pMx83/hRRkUdqyMtFWRDRvwvBPgooOK91f+ypxcuq0YgSqeO3T/APih/9k="), url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA4KCwwLCQ4MCwwQDw4RFSMXFRMTFSsfIRojMy02NTItMTA4P1FFODxNPTAxRmBHTVRWW1xbN0RjamNYalFZW1f/2wBDAQ8QEBUSFSkXFylXOjE6V1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1f/wgARCAGuAoADASIAAhEBAxEB/8QAGgABAAMBAQEAAAAAAAAAAAAAAAECAwUEBv/EABkBAQEBAQEBAAAAAAAAAAAAAAABAwIEBf/aAAwDAQACEAMQAAABwG/nAABAJAFAAJgSAAAAAAAAAAAAAAAAAAAAAQAAABCJgABQAAAAARMCQBQACYEgANsst4GuAAAAAAAAAAAAAAAAgAAAAEQAACgRMSAAAAgEokCgAAEwJL4+jr08Onl9viX9G2HkHp8QWAAAAAAAAAAAACAAAAAIgAAKABAJRIAAACASiQKAAAXoz20Vnx/Rm2emvnzg9XhNc89oGuAAAAAAAAAACAAAAACEAACgAAQBMCQAAAAgEolV4+i8/r+benzbecO8wALXnGWUXz267n6+T3eFf065eMerwheQAAAA56Pd489qobecAAAAAIQAAKAAAIAAEwJAAAACLVnnS/S5z5/1d65FnLXL2/NDbzgbY7Yyr0caaKz4/ozbPXXDOsPX4JQL16uvk9/FJ9HkhDvOUBMaYent48x5fbTbKepk0z93zAvIAAiJgAAUAAAQAAAASiQAAAAEtbNl6NK1S7Za5becLANctcpQsA2y1xlCxatst9/Zznh+m9PmgU1y+h8gO+FquNNFHl916Q282uWuW3nCwIIAAAKAAAAgAAAAAJRIAAAACAbY7YrKCTemq0qAWNM9pc6rc9Verzc9wNMrTRl6LVOs9ctcu8wsAATGssZgISYAAAFAAAAQAAAAAAAEokAAAAA2x2xARtjsuSCSiRtSFraunn9f0fHzzx9Ga7rnFens+cFmuWuUoIAA1x2XEIAAACgAAAIAAAAiQAAAACUCQAAJiS+emYA2x1MggG2O2KzfOc9tFHl9t80+jyaZXz2882p78t/Nl9F8/LWLRplA6zAbY7LiEABQAAABAAAAABEwJAAAAAAmBKJAANctcgBrlqZAGhbG1QEAbY7LiEtpnfx/S6XOhj6PR5ltvNiPZ84BtjquQAAAAACAAAAAABAEwJRIAAAAABKBINctcgBrlqZAbY7GIAAG2OxiBems6Voy3nXHXXz5CwDXPXEAAAAEEwAAAAAACAAAAlEgAAAAAAG2WuJJoZ67+idct0oTna+iDxpiwABqzIA2x2MQWm2QAL86Xx6/K47qNcABBMAAAAAAAAgAAAAAJRIAAAAALGm/R92enl9Rx2CgAR5vUTk+D6V1z8o7/K04yy2xvIDWsFQa5a+yXDy+7wk3pp5fd9FxfOz2nPeneWA9nzwAAAAAABBMAAAAAAAAmBIAAAJ7/n6megcaAAAAAAImieHj/U4d8/NtMtMtstcSUSe3t0jLb5yprjOuO2epk8/rvekejyUGmQAAAAABAAAAAAAAAAAAlAkDfDtzroSY7AAAAAAAKXolwuPz30/k644eRrk9Xl6svXx2Y7fJvb4t8J0nEGhbG9AAABvh0pea2xsEEwAAAAAETAkAAAAAAAFvqeD9BnoHGgAAAAAAFL0ugKpeicTw/QfP65O3xO4dAZbR4feTnU6izh+b6Xw9c8EaZl4KgAdvjfT8d8Pw9Lm9chYAAAAABAEwJAAAAAAB1uvzujjsE6AAAAAARNEXFApel0z+X+r+U04v6sMeuPrHj9mOwKAB890/ZbrlEueufyPp464+Tn6HXrnx9Iz04nN9nj2xCwAAAAAgAoIBKJAAAAAPZ3/lPTx39Iw3z0BQABUsABRZJCq2ok2Fj5b6r5jvOcdctONO/wDOTzfq3J6WeuglAAAAAUvybOVU2wAAAAEEwAAKACAJgSiQAAB0ubpL6PR0K8d7a8GZe68Xs56kK83pJ4vToBmNIkBYrGiAridvl9c8eDXEXNq6+OXStVnY6vG6eWuk/J7WfTvF7eOwUy5lnr4CNcgvIAABAAABQAAAAQBMCUSAAW6/GS/WZ/P9fPTDx/Qjhev3+Y0359V6bxejm65lJuikaY1G7ONFBbOu9fMY/TcbTLy+jG1mVSxLsy+vx9T5nPTAa5LVGsZlBAAACAAAACgAAAAAAAgCYEoEgA26fGTr6nT5P18dfQub7ee9aTEL0AVCmqVvNJbqULF6i0VjDD31s5t+mMdmMvk4d6bZBeQAABBKAAAACgAAEIkUAAAAAACAASgSgSADf2cxL3vV8u56+tr8x6Je+5O869zHaWK20FCApEiulOanQ+epTTMOuQBBKAAAAACgAAAAQITAlE0AAAAAAACAAAASgSgSgSgSgaa+ZL7r84vUnlI6mHiF6w65lAAAAAABQAAAAAACEAAAJgSiQKAAAAAAAABAAAAAAAAAAAAAUAAAAAAAAAhAAAAAAACYEokCgAAAAAAAAAAAAAAAAAAAAAAAAAACEAAAAAAAAAAAJgSgSAKAAAAAAAAAAAAAAAAAAAAAERMAAAAAAB//xAAtEAACAQIEBgEEAwADAAAAAAABAgMAEQQQEiAhMDEyM1AUEyJAYCNBQ0KAkP/aAAgBAQABBQL/AKFKjMP0/CePFRi36dHIYzJM0gqUR/qC8STc/pd6vkeEeQQsP0K3JHEyH7ssJ2YmMaf0AVoVo5o9Db4+7OOQxmSdnFSGPTzhh2ZGUqfWjKPEaVmf6jRIGZxZto8eQ2KL0xuc7crDtePFgWtUkRj9ivE7W8ed6vk32jZhKnhBHIBIoknJmJphb1t8r0vZtk67Urrtjcxs+Juta1+kRypO71/+W2TybW4LsG3/AC5Mnk9e3ZsTi54nYguzG7bb1er5Dx8gcS/f699sfk2jglCmhcDeOzkR+T2Endsj7tr8MhSm64lArhb0ylTsXs5Efd7CTybE2oLsxuckldKZixUlWdyzMLbB4+QnT1/9yd+xOmxeC75O/IC9dE5A8Xr/AO5O/YnTYeEed6vkBcubvlhfLJErhhY23nx+wk8mxOmyTrui8mQpTpPyuB4mOQIp6bX9jJ37E6ZoLuxu25OmQ2nx7ZPJ7CTrsTpnH13/AOWY6ngb5P02R+T2L9NibB497ducffnJ3bE9kfHsj65nxb5O/Ne3JeLN3bOkfsR4slRmoYaU0mFYH4jV8R6OFlp4pACCN0ffs6RZR92xafDcCLexTpHh3ekgjTkWvTQRtTYSnidM14LskzTtr6emOhQ4FHDriLGVULURb1wBYwYcJzpMOj1JA8dHhHmguzG7Zf5YaHVWKe8lDYjlD3etAuYIRGPwJMPrVgVOScBmkes8FVjc5f1kTR+2P1mEi/BbpUsSyCRDG1HhHnGmlZ+EObcEq9INTMdTerhT6knT8H/llLGJFZCryd2WHXVLUovFnJ35dsfIiTW3o8Ilk/BXZMgOzBDjliIijVH3ZINTMdTcjBD75Rpl9CBcqNK/gN02dWxUeiTLBj+PIi9NhYzQwoA+GKfCuKP2LycGto8WP5vQ4Vbzfg9W2L0xS6ocsMeRiIda5aWNFSNoGooulMb5fQ4IfhL0zbKTjHSC7QyWn5EsZ+vFh1TK16kwqtTxshyw0GnLG+T0OD8f4DbRxaj0pOArDy/UTfpGrYQDRw8RpYkTPFG83oYJvpsCCOeOJzJsALDJu48I6RyjRSrIOex0qTc+iimaMxyrIORcX2Nt6tnIP5ZO7IEgw4kkq6vzsZJ6SCKOVHhkiqPFkUjq++SPVQ+QKXVmOJ2L0zlXTiNkYNmNhqarmsNMzNVxyJ5xGCbn0aMUaKVZRJh0emw8kdJipFpMTG1deQxsNh4nZi76cwCxkOhc8Ev3TNpipJGjMeJR9jSIlS4uuvpgSDFigcnjR6fB19OaKlxUgpcYlCeJqvfYONWIrVWoVc0OGw1p1JIhjalUsVtcm5zgT6ceNb7cwSK+rJRdz6uOZ46jxKNmUVqOGiNfDSviChCwoKRR+6r22FgTViK1VqFMTlLGsith2Qs3Dtjzw+H05TP9ST2SSulJixSurbWNqXpWkVarCgOF7bF41xFahk8URpsMrV8Ohg1pIkTLFy6V9re1JiZFpcWhpZEaibUBVquavVzR1Eg3y0irURXbnpFWAocDnJII1di7e5WWRaXGNS4uM0JEbIm1AWBF6+6uNEmhcZaa4191aa0ir2ykkWMSyGRvfB3FDEyChjDQxcdCeI0GU13GrEVc1c191aasa+1KlxKimYsf0UOwoTyCvlS18uSvmNXzGr5jUcTKaLFv/FD/xAApEQABBAADCAIDAQAAAAAAAAABAAIDEQQSMRATICEwQFBRFEEiMmFw/9oACAEDAQE/AfKvgcwX4eCLOt27eWjhf6iK8LDLuzaE8Z+1NiL5M2Pgc0X4FjWiP8hqpGZDwwx7xGN2ewjhQiKNcTRmNJ8Ffrz7eM04FGNpFLIBopy0u/Hgik3brQxEZ+1NiARTdr447y6LdPvTbh48xv0t1T8yMTGj+I68u2ZiHs5J+Jc4V0cPlz05GNpT6Asp7szr2RvMZsIYtv2FNPvOQ79jc7qT4i3n9bG4mQJ8rpNfCYaOzmTYSCfSdAxo8NDLuyvkxqebechpsgAskp8YIzNRjc3mR4bDZS1NY1uixDw38ffhmOLTyXypESTzPfUVlKo9KJmd1KSIfszTuQ33xZAi0jhq0VhmNIzIQgWpYmBvrt2j76JbwAVsilMei+W30pJTIb7YCz03C9g16I17JnUcOabrspZQi31wsR17FunUfxBuwtWRAUjr2LXV1H7AaQN8ZNdkFXpZvfSdwt0WfaTSJvswaQcCsoVFc+gW7QLTuQ7oEhZ1fRpZRsJvvbKzrOrHFdIuvwllZirP+E//xAAnEQABAwIGAgIDAQAAAAAAAAABAAIRAxIQICEwMUATUEFRBBQicP/aAAgBAgEBPwH2raod6eq+1XC2F5/TVGXhGk8fCp0fl2Daod6FxdfomOuGWo+1XC2F5ygZE5iYEptWeeu8S0q4q4qkHAa5KjLxCNJ4VOkZl2LXuiVe3Gs60K/+YQe5xQ6zqTXJtFrTOzVm2QrimyTATRaIwe0PEFH8dyp0rNe+42iU2oHYGiwptNrePSVnx/KNRNqvJ9NUp3heB6pU7NThVJjRNeZgoOB49NWkORcSqLSdfTOaHDVeBiAjQd6QrgpG091rZTH/AA7sl31muKDpyzCCrOIMLyJlRxPXcdkOyEzg9gev1ymMDNOsTA22nA8bJ46T9xp0TuMJVxQd95XIcdF3O4zMXYByvRMocdEtncZgRKIjOBPSKn7Vv1tNyu5VmIEoCOmRKLSFcpC02A7EmE3U9ogFWKNmVccAI7sK1WqDmiUBHpICtCgf4T//xAAxEAABAQUHBAIBAgcAAAAAAAABAAIQESAhEjAxUFFhcSIyQYFAkWADEyMzYnKAkKH/2gAIAQEABj8C/wACqD8QPKtj8PooYBwsfiGwUfw/l9B+G8UeVbH4EAQoXEdJIhQwDhYFfN/aCrmEGgoqBMEQJmt6T1wCjfQ0QPlwj5zHaZke57H3K0rTONzQwVTF1TFDjMGjMBtNa0miFAB1mzXVRuvQzD3MZgz7N17ujmDMo5RmjdNXTXOYDiUTE60fEi4auWec29GYM6PBVPKgoGVq59HMTK1xKES+hUSohRKHEjVy3xmJla4laN4RcnnMTK3xKN5wE0d3hbqFwzzmJlb4lhoJxtWSIXbVRRBZjFRmZG2YmVviQImdo7XA5mOYjiVriQnQXB3MkFB7I2lGZM8StcSNXDA9ycXLR2zJmU8GQbm4hpSRovCMp3OZHYv6WSVgAokhdwWIXhM9JVZh9yjc3PScyaGyiekLCJ3uKrthwuhr7XUy9o+pQNA9outt+cBJEI2VAVy+AUWqtX2h2Wo1TI1rIAiX8lW2sFDSaLKP3lsAq93wYihUC9praRhnxiVwiXxkh5Ncttn18GGrq46qDTgNaytSMj3JHLAPhcPgVZOKhpR4c0JOKP3auSNskta/CjrIGodQwkaL4jtdHSr9lG5J2TQ3yIBAfG4URgXkvqqURFrFd6pVWfJxuidUciG3wuJjs8saC4tDuD8CqiWAQZQ4yJo/Ghq5obOAUfBuSyyMV1VLqrpoV1B9trFw4yI8/BhKTI01s7cXFrzLVdq6WXnbIv6Soj4EbgobuiFvp8Ak+ETke2iofVzC64kaG6hpR8QrLY9rpMb79se8k0aUR9hQ/UruukzxZNlrVVDLS6oenxl5kaa9ymHCss4LuKxVhqu7sRcQHconJIsrfRaHZRZrwoNVWNnlUvYS09yQC/bHsyNNJo7OiyVXpMnU0FD9P7yeIUP1Kbu6mYroa+1SPpVgV1Ahd4liqKsXYfatHzLA+VAuorLOHk6qMgHnygxrJQrva+1Vo/eV0NNFXpL+pkFdsFiVRsr+c0qtkqC6pIOpgsCvP0sKOgV1duqgKMr+6S23jo4nM+krrEF0mMu8ncVVV8qv3JHVUwfUIQaK7/8Aiq0V0h1gYnNqLGPK6hBdLQdE4qiwWBWEuJUFs/B0JIlFo51RpdTMVWIVGhNg6LXl+KxVaugXRKic/o0VjFVZVYhdyoQtnUWCwWixKxVSv4eOqi0fwajRXeVisAu0LsC7QsYKpj/pQ//EAC0QAAEDAgUDBAIDAQEBAAAAAAEAESExURAgQWFxMFCBkaGx8EBgwdHx4YCQ/9oACAEBAAE/If8AwUUE5AqyIb9O1TNxIEY6/p70pNQnwAQEBO8T+mA5BDpuFOF36cEqENZnjE0Jy1UQR+giSidW6IMAapwwKQYs3XRTBiKrVN3+tAAhDJz0adCBW3x0XqVCicYBEIghj1RVCJBOiIADEduqTIYTi1CFRjDRAbRdDMHY1zQNcMRZAETdFFOWQOCboCqGPVBbnfZBKE2N2wVytK9AJOaF0/16Zh7KKFa8srXvhFoGD3REpjnKuYtkVcxb4VO5IRM1A9sBZMThFIcIZoWQ/wB5hAJKk/KJJEmpyAOEAeYXT2zJ1JxvEYaDlByEuqAt8XcKBvlCq9KWzbsPRBKrwzXTnH0sdwiHZ8os7gjdXOVjBpUpyuzmYvdDoiyLlG5rl3DTsOWttObf0GFSoI3CIbP8fo+2IyX7hp2Ay1NvizeKTzhWhDKELSUA7IxgA5OiIAMRocvw/no1DYnt3H3uX5uVpLcwoVTIA0VinOuUFVwjKuU73AcnxOjA33I7gKF7vpH4iwxBfIS60rAD2x0AdciT0YFuA+e4Che7y/V3GWBufI7AS63kLLeQsWSWKpJtBTjqCdngK5HuAXvcv1dxlo2Az1H0E4yRAEkJyhOFU4EgDgfNEWh95/nuNdfL9XcZGButwDnhZN9cSnISwUN4jlElkfhLencaq4dE4XB0BH0W/wByPIXIgSwpiJdQ5zKLu0BcolySde41eV83JEl2HQjtPdkpHkq46dgBliLfzjuUzWJGX6q2SG6HoV/oGSOybEWW6Nzb5BKotQe3cpchj8OCqnIK0OREcYUdJYFAXBQyeYS0ogwEc5hd6gl4RLkk5DA3MdewfKDlV7xsdUYp7jO6T10SvfJ0BAGAHlaMLwX9YlXGuKY+Ls85YG2Yw2TYb8wQOnuIEN/xHGjwirJLZGJj24YC5KYf6jrSwG8kwRslzQf4ZOTFuQcaIPmI0F1F6RwryOYYqsyaSPbSAA5KeciqfwDSaJqPDTRFIWIx4Awech9IBGjDAE5mpxDmxTFhQNy47ayG5P4L1hsGHDQhYLzfDcxfXziA5ZAiqRKJztk5I6OU66ZAaVJ2T5RYdssjqgAAAoPwa8WOp7Q2TGqkcwpiM/QScGotiA5AFSjDgKQeMfsadHmkR2R7Ovx/CmDcfI0DvUZPZOJWCVMPTUMnCEMBJNgnygaCw6LlsmyHYjWalBA6D8HQvCEBsnslAGri1cHEAMDhEXdxQbH4KyXogrmBQ2U+wW6Tw6kxvAdi9SPwvRyCWDoKzUynBrLFo2A9ARg/yYikN4VSByMpw1igCNAg7E5/D+CSwcoKjUzkk17ANwLDkxSao3R1VDhBgQWA1EQBgBU1/GTWY3wAJLAOVQu0W7I4zX/BSa/LwCBhV4w4gzATBN7oSGSDPlAsAI3RR4cFUoBvj6PdiM0dxDRXB/AmeIyPBTQMDQoGBuoK98AY8hRuNX4AdBA6MdqS/Y4lOtHtN0QMQGRUZShhUwgGDZDANJZSSpUxHEMUEONiHOHrNV37IIxIdXRyYgIiBllUHcZzvwaGgIodydlDENsUnQIGQlg5QVGssjwUAWuQ49RggucKm5Wl7iAy4J+VbwwEdReUCDIL56yD9kQhHJ7IHGYhRmNaSbbyHqMa1Iiz5wVV3EBAOTjboRF0AAABkieZyiTggFiyDAJTQekg1yOWIZeh7D04NChTHslAghxONMGyIYG3Ikk5Lnsw0UgjUJsmehAghwXCAxbkCrWyE5wHc1D+aGRHskqkeSEABwQcaIZHrThbmLFM0ByFzeiJqMF0fMJFW2QmBJTSj3It8ZvgwPI2RWjKj2WuIDlhVeVXJMhVJzkqwOCv9Kqo+e1jPrFFC+ZRAvTD3oAv4oKOiNNFwvGHvxzBTNMalClDfTIIDQ1K0W52FbgeMAKID9R4w1U6GyMCUNCdZ7F+UJTqXtiASWAcoxAOyxUVt6DjudfWsaI+OcELcOUyiSomU4WI4T0EQdx5KfJiOjMICDTAlqqp9gmurLIE1lQp8YNxCDkAAGCaoWu4hUFBvhJl/Yd2BE5EHZVZlK4e9VEeUwTVwjNzYpmvpT1WfWUDJxC4BtgbDcYYZIeS9XVTgcLIEEOCiAagHBCkAVUoaZDfxi6KTJ7zRFHJ5lAUOC+QKr284NIqaYQHldMFCDyn/wB0CHYDynvmbYECXEHZMP8AcJrHomGoknqufKnqboEGhT7eBdaO9Bbv9NHlGnIcgtN+CjqEaJHKqi8rU0e5VVqMWKu+9b1SsnkL6QiQOAblOQB0T8H9GoA8qhIANB5CGsRD/tL/AGEdES01wCNObl/8UP/aAAwDAQACAAMAAAAQCCS//DR99tBBBBR1+++++++++8xBBBBF995DX/6CCCC2/vDV99tBBJBBRx888885xBBBBBF999BH/wD4gqggkv8A8sHX321GqkIEEEEEEEEEEEEEX332EP8A/wCggvigglv/AMsHX32zD6IkEEEEEEEEEEF3332EN/8A6CCC+uCCC2//ACosfffVnYsCAQQQQRzTfffeYQ3/AP6IIIb764IILb+7d3rX1a/Hk03gk03sMzT3EEd//wCiCCG+2++KCCC2/O/hBV299e99OKf9/wBj+gQz/wD/AOiCCCe+S+++KCCCy/8A1T1ggYs8vjPfucYUih3/AP8A6CCCCe++CS+++KCCCS2V/qPLJahdCBqDDDL/AP8A/wDyCCCCe++6LCS+++OCCCC72v8A/wD1r9852Zr/APp//wAgggghvvvugrQwkvvvrigkiQl8unv/AOn+U3v/APtyCCCCCO+++6CD9tLCS2+++OCpCVCBCyyhylaHiCBCCCCGe+++yCDf999LDC2++++lCcJTCCCxCBCpCQJCCGe++++iCDf9R999LDCS2+62P888f7IhCZCvKPMP+++++yCCHd99BR999vDCCy188888885AOtK4+P3j+++yCCDP999xBBB1999PDU88888888j8P9pr1V496yCDBHf999hBtBBBR9999l88888888n8nWp8fvfCBCDTV9995BBB9tBBBBx9938888888708XEy/8880Mrz+d95hBBBN899JBBBBxe/888888v8AO/JwFuPPPPPPOOYQQQRXfdPPfbSQQQQ6d/8Az9/3/wA/8sd5FdZbz8wwBBBBN998AQ8899tJBBRjFHEyUnQGzgdp9hWxhwBBBBN99984AAA08899tNBBg18vro5/j0PfvfoBBBBFN99984gAOAAAQ088999NNBBBDJ0AATAQ/RBBFN999988wAAA+uIAAAQw8899999NNNNNOcuetN99999884wAAAAO+++uKAAAAw088899999999999998888wgAAAAO++C2+++uKAAAAAQw0888888888888wwAAAAAAO++++CCS2+++uOCAAAAAAAAAQwwAAAAAAAAAAGe++++yC/8QAJhEBAAICAgEDBAMBAAAAAAAAAQARITEQQUAgUWEwUHGRcIHRof/aAAgBAwEBPxD7r3B7/H2eyo5KiFOmDrZvrERI/ZU7w7ht4fmELvyzKzuT3+PsJRst+qmFGxyejqKmnJUB1mWdtvtojstnqrT3Guuh+/HBzQkwZiUOjVXLd/b/AHlj+07hN4fmXD/LN8Mx2Kz/ALMgE1NcEwaaMMQ4mbhTfv8AuEEaeMRRs+Z1YR5d8vtwFQwlRAU1H14zLqtXymWZI4qojvyHfBvkjge4fTPuOAau/wAzHPEfQbj5Dvg3z1EIunX9QAXK41sorfdxKa4fQb8l3wb5Yt2xgxa/8lo0o7jALoZorWz/ACFWg5PJd8G+XfJvgDayWS0pCkFu3PXku+DfBv0HFudTBVn6iqlrz15LKuF2p8Eo69HXBx1wAvUAKWP2eThgA16EHcU1wDx1wJASg0QT2FjmWEqLsHse78evL6DL8kSo8UL4SXT2hVlXLg10eNiPovA5RzDYIlkRGmdcPoNgjjwRi/onDKOUh3PglJfCuRbc3eCKH0GHB7zrBqmDZZ6AG+BdQUAUTNeDoMG9evvh46RjwOnroX4SBzBmXCmBBHXCXAqLUOO+NOXGJcTmw9xBHXA7R14aaTAMW1KdMvuQX2l5le0WoFSybYw4hjhFFgObfH0kB3AOo+01MQq5kisJmI7J8EwEuX5oWmC7lIPBHTKvM/PFfEeyN9jWk+afJFu/4J//xAAmEQEAAgICAgICAQUAAAAAAAABABEhMRBBQFEgYTBQkXBxgbHB/9oACAECAQE/EP2rVa9ff6fDKw3DPbg/WD+YIln6Uae4pDDR/iYCNVr/AL+hchVUy2n4dyuWYYZ7cPVqAA7+V16QqBpf48dAHqBt3mWOZQeZAiU1DUOS5bPUxCtXzhEw3G9hMNW+vUSgu/GcvTO8IcmuT3xX2SBiDuH2iVtrrlBYwkvWbYa8g1w65Yb+kxGn1w5dVMyMw+DqHkGuHXPcIWNkBBDJMDy+vqDZwfB15Jrh5IH2EQdT7RDUIBVbCe33H6V8vkmuHk1y64bC8OZsGKjcHPfkmuHXDr4PFAF8AU0c9+STUatz7JZ38O+Hjvi4EVaqf9+UlXfwFNQLcCDjvhAViUtjzq1FtYyQrlffj34PwErwwbhxYrgwHcbcJDKefBxTiEdKDTBEsnfB8HVoN+Cs1+F5s5QjU+yWtfE6KmrwVl+A5Z2iXZEpp+CJXCm4iIrZq8HcIlb+fXBx2hDhNvnYrwgpiVcGNsqIm+BqLcC48dcbcmcyoDAj6MRN8LpDHhhtMgQRuW7JXViHuViXDMcymahJmOeAEGR5o8faRXUUbh7m5mN1MQCMxBdM+yZWVK81DuJ6l4lETZLqf24v7h0Q/wBGoZ9U+iBdf0J//8QALRABAAECBAQGAwEBAQEBAAAAAREAITFBUWEQIHGBMFCRobHB0eHwQGDxgJD/2gAIAQEAAT8Q/wDgrIdKU7RP+OCBNKOZs+hFWaAgTOc6i6FQn/GQJS+JsJg0ZmiULzQB2zoiXPFpIY/4uY35FGD9vSmcAlMGB/xYxhRqKhUuFaLXtLHvPpxOA4xlTqI2/wCBFiiBIDhJj4L3EoCgeYXQLcDEmnAN2mgMkzKS4KUYnjpGPmAm6oZBxtakdZxLU8C8MF7wt7xxgRNWAI2TBq4kYhnUUXoJclNAkZ+LeKZfRI7e9IFxA+XYNAGSmgBjMFZK5AoO7CyocJiBnzb5E6YvwcZCOS0UPV0O9YiDgGRpyLYFi7BhSjwJBmi2mONsqmSCxu0mQcXKnheEpT5YoDyTF6MNndi35jm6oN3QPlxmhZk1DelthTyIu66O3KWKDCE6Xn6oH5pQwH5rAHPWQre8Chre8Cl4QisEEpis4SHV8sXcUJnFb1TWMK34g92frm6AvqflzEfJWa5CnKlJXkDcqOlQhMBpSs5YZEdKigXFdOCiRbiDvy5bxWMakTVukHt8wbTN3sB++USDVpWcl9Nvrmt+3qDgenKsuSI3a9m9x5hGDW9Sri0Y1hNR6CPrzDuMu68uyY9631H35TwJ9ApW809uY1cBGVKrLV4aJ9eDsGFb3r3fMLX+wcveHsvzLVXsYvAzKj7Zk4kdaRX579uXv4JGXAR6DNJRYrPmGLoHty43Ue/mtBq9S7wUS0pMRBRxBYDJmkpKgBdpQWKC5y2LqD2eDb+rjj3jzHD6Q5ca0+OPvlkzCZehepEzGsKoTOdO77kSFOHvm040PJNQBukQUQBmR2knksXVHv4PQsDqh8T5h7w5utXRe6H3y73O6eJDfisEtSJqxfr5Pri4hE4BTdBisRlD4O4jugJ+vMPeHh9BvVH2scRTCjqVPSkxUhmJepojMEHSeKFtkdYp3JhslOwXEaGpEYebfjfSwfD5goR0owfgoAlgpwfD7j757MnL0H6cQBGoICSNNvC3GbUtwoq0Qtiy5U642Qnfm6x3qfMT0g+3gwb1it7hOfrcHVB8Lxguz5LhVj/ojlCAJVgokxki9LD48xv1D9uW8c1/I8nWYOsW8C7Zkdgr8ORCLygqY0yEmcU5VIr10N7jPKEFPYRd9imvhUvmN+pj6Mct8Nfjn65Ouw+s/Xgd+11X4DkBPwC+xNKpXFvxs/mDl6sg6o+C+Zfwhx++W8dfnv1yWT9AR984KgErTITIQ9kfXJ6d+qx8Tx3TNb/LkCoKkmCOjYP2np5lZdH1EfXHAg1LPWv7A+k1pw5JxR91/wCa0HH9VPqv4VetaR9liu1SIugjmBYlXoCX4pnEqyvJvBuwI++IIvBl6UqquLyPGYqBQ3oS/wAalYERhHEfMe7U6ifujC6ZF3oUMIC3vbCgAgIOeKE0E1PLrH4LU92XZ+z8VMIOq9Rx3lDqL8Dy2Llnq3fnj0f77wipxYzXd4SIdKioXESiJIlybrRpgYMS4Fi9R1klNFKgRGEcR8uYq6AKBhQ9vFJJDhQbL8iDuYVLd6J30rdjHTB8PryTtYRLoVvvJxx9fZCoO6L2b8Veq3ZvnwUdfCUw4PZIQySJSNzgq1/a+WpgVAGdCSB9DY/wIE4Behg5xbI02pc+OHj/AO2iz4nkuZJJoLSLis4aBSqpWeAwyVhKAyd+MCDGt5vQGB6y+nlobeDka/4VJzB2Z+00WIqN8BaxP1UNRyGA1OG+EuhY4kAYrFFgWEu2FKBicnd83vY9j3oLBaVpKqD0QutW3gsaAWD08saAxy9CjLgID/C2zKTu/wB78VAxiz1T2EIG+5QLEiDtZ954yyS/pcHx4v8APFjUpAUh2SOgI+uL0PbL9vx4IQFzrBhSQo5eRxgvW6P8OF2rlx9Bl7cgLktBmhYpmWcc54k6MOBBIcGlSKyjLbgIlwRdTD3ikouKzwEEgbIxaeIyNAsHg9F71f1UZkCR08ibFRFEBYj/AAvDxcO/6oADAI5C65Qd39fNFZltGTnxV4tb7cU5ExEmnCM5KSrADBYWC8fHpTFidzSYyyLNMaLIc8jux9PCUVe30Kkxgz28ik6SB/xfRPd5ARWAlpgYjLv+qOBuh+/biMzdA3cfk8AqAU2y6cTpM1FXuPhylZLwVhKkUAhmJ9XyLocPt/hBsAJaYzjLktFoPQu/2/CeMh7cNBkTRS0KXRw8G/8AMAZDf0o0mq4HQoBAA0KihNEmiXp5ipE/Rke/AEpMApiQkXMn54ISMh8vkRGauf4bpZpehy7A/a/tuBkW8qkhRxK7AnVtQoiWSgNtwNTXwASGIth/7yuXrITUsdBApidiJeMaGwPSX8ivNUt03oGppE/wXlg+gckWkuAauVXNlC7q58Ly2rYJnvW/1fQsffCItkZJpQpYJcbn+BfoQqdmVLyO7szcw7aVDFrWJ4PrPM68qBxmH3RGMAjk2qT65ffIoEuoO7RqwEHbH3niYWeCMVPIuw21KsB2INzt4wwXGKex5ItVO4xGVqu8aTHOplRR/EEmdbtKTc7c7k4xmDRq3c0pU1JLUX3eN8/wy8hOkAS0wjhpbbenJAr56IPelUqyt3kEK3K4E3XsfNHFSSNnW6aVGQg0lUJvUXUJz5FiRrrwdhjcFAwBqM86Fwlj5NJgRKufknyhVs1OUAXsTptU/fdqepnU1m4FgdvxUCRLIYO/5qIG0bD1wo4BMFSPgGEoXE6GtYTAW5LTwfRP3ysDRMxsck5Ze27UM6bkOXTkZQsR6t3496uBCI6mx7tS6tEUhmr9QoAHMWB6NAEA4I8SldNUvpjQK8to79inLkZVbvkyNWkSiYOCHF10oEJLiMjUIS2QnfGnyldc9Sm5QziPWPuo0RMbj1KgRfWA+qiIi5P7VFGajPFQKsBjUgOgOVPkGw6NR4rufJatFWwn6oJY7G1HbH4qcY8Tky7cg4aCaZSgr1NEc26A14RIALowDVaNvW2QZbFPiZTxQAVMAZ1Lhd6j+ihcewjD3+ORWevhQJB/ZvQ8H6I+VwSbNd/So95csbo0AFCOZw9ZIVq6iWrlN96R+qJJ+pd81gjaDf5WojoaP1RUcC5fFJEtAcX4oRJGeChdp0lS1gGnekGCCYRRkmtXOjUDGep9ytIXRfioUgxcYbUIgjI4VCuBg4qhlF7GXYNaw7z1LVZ10BDox9+JpSWAJWhYf2LvSgVYC6tIK4+yw/PfzNEhdV6KhULrnpjULds3OVITkB80YlzN1cVpBIblM8le9Pauk9vxSxxCW8elAoJxGhkUYkyfyoCUJtwAKoDOojFlbowqSw950U3ADQ2alGIlCPX5e1DyQECBTMQ4z/rSlh2H5UX1xu+vAMFGD+L+bFSrBUNQIR5C/rUSPallETsJdRyYrYDNpEpOJttSCmWJk1gGd3Nf+RUmKdCkUYvQLTkTRiMHFZcEskmqj4qeR9z8Url3SYFItKeI9xUaSbUfBG5NbQ6UlInWL0pbTS/rkYq+GYtKkgPPTbzkVSKJmUbTiwfmqKCtVDUGTNk/FEnQKCJIibVhKbQ3qwTK3XVpIWQYCyVkV2Q1HiHpRajmKyqESYhZ2cLkNZRWWCUSZO91YzWCxHSkEIjCcFSNYRYYhvQsgm1Ib/JxonSBh4Dz9Wa4DYhFQLO3o9x4n4rDdtZQ89EFCRmXt/GBSARJHKso/wAsaixewrQ7yFaIGqy0RuFmZx7VPZcbUQmc1u0wjorH7pMx83/hRRkUdqyMtFWRDRvwvBPgooOK91f+ypxcuq0YgSqeO3T/APih/9k="); - uri-fragment: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA4KCwwLCQ4MCwwQDw4RFSMXFRMTFSsfIRojMy02NTItMTA4P1FFODxNPTAxRmBHTVRWW1xbN0RjamNYalFZW1f/2wBDAQ8QEBUSFSkXFylXOjE6V1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1f/wgARCAGuAoADASIAAhEBAxEB/8QAGgABAAMBAQEAAAAAAAAAAAAAAAECAwUEBv/EABkBAQEBAQEBAAAAAAAAAAAAAAABAwIEBf/aAAwDAQACEAMQAAABwG/nAABAJAFAAJgSAAAAAAAAAAAAAAAAAAAAAQAAABCJgABQAAAAARMCQBQACYEgANsst4GuAAAAAAAAAAAAAAAAgAAAAEQAACgRMSAAAAgEokCgAAEwJL4+jr08Onl9viX9G2HkHp8QWAAAAAAAAAAAACAAAAAIgAAKABAJRIAAACASiQKAAAXoz20Vnx/Rm2emvnzg9XhNc89oGuAAAAAAAAAACAAAAACEAACgAAQBMCQAAAAgEolV4+i8/r+benzbecO8wALXnGWUXz267n6+T3eFf065eMerwheQAAAA56Pd489qobecAAAAAIQAAKAAAIAAEwJAAAACLVnnS/S5z5/1d65FnLXL2/NDbzgbY7Yyr0caaKz4/ozbPXXDOsPX4JQL16uvk9/FJ9HkhDvOUBMaYent48x5fbTbKepk0z93zAvIAAiJgAAUAAAQAAAASiQAAAAEtbNl6NK1S7Za5becLANctcpQsA2y1xlCxatst9/Zznh+m9PmgU1y+h8gO+FquNNFHl916Q282uWuW3nCwIIAAAKAAAAgAAAAAJRIAAAACAbY7YrKCTemq0qAWNM9pc6rc9Verzc9wNMrTRl6LVOs9ctcu8wsAATGssZgISYAAAFAAAAQAAAAAAAEokAAAAA2x2xARtjsuSCSiRtSFraunn9f0fHzzx9Ga7rnFens+cFmuWuUoIAA1x2XEIAAACgAAAIAAAAiQAAAACUCQAAJiS+emYA2x1MggG2O2KzfOc9tFHl9t80+jyaZXz2882p78t/Nl9F8/LWLRplA6zAbY7LiEABQAAABAAAAABEwJAAAAAAmBKJAANctcgBrlqZAGhbG1QEAbY7LiEtpnfx/S6XOhj6PR5ltvNiPZ84BtjquQAAAAACAAAAAABAEwJRIAAAAABKBINctcgBrlqZAbY7GIAAG2OxiBems6Voy3nXHXXz5CwDXPXEAAAAEEwAAAAAACAAAAlEgAAAAAAG2WuJJoZ67+idct0oTna+iDxpiwABqzIA2x2MQWm2QAL86Xx6/K47qNcABBMAAAAAAAAgAAAAAJRIAAAAALGm/R92enl9Rx2CgAR5vUTk+D6V1z8o7/K04yy2xvIDWsFQa5a+yXDy+7wk3pp5fd9FxfOz2nPeneWA9nzwAAAAAABBMAAAAAAAAmBIAAAJ7/n6megcaAAAAAAImieHj/U4d8/NtMtMtstcSUSe3t0jLb5yprjOuO2epk8/rvekejyUGmQAAAAABAAAAAAAAAAAAlAkDfDtzroSY7AAAAAAAKXolwuPz30/k644eRrk9Xl6svXx2Y7fJvb4t8J0nEGhbG9AAABvh0pea2xsEEwAAAAAETAkAAAAAAAFvqeD9BnoHGgAAAAAAFL0ugKpeicTw/QfP65O3xO4dAZbR4feTnU6izh+b6Xw9c8EaZl4KgAdvjfT8d8Pw9Lm9chYAAAAABAEwJAAAAAAB1uvzujjsE6AAAAAARNEXFApel0z+X+r+U04v6sMeuPrHj9mOwKAB890/ZbrlEueufyPp464+Tn6HXrnx9Iz04nN9nj2xCwAAAAAgAoIBKJAAAAAPZ3/lPTx39Iw3z0BQABUsABRZJCq2ok2Fj5b6r5jvOcdctONO/wDOTzfq3J6WeuglAAAAAUvybOVU2wAAAAEEwAAKACAJgSiQAAB0ubpL6PR0K8d7a8GZe68Xs56kK83pJ4vToBmNIkBYrGiAridvl9c8eDXEXNq6+OXStVnY6vG6eWuk/J7WfTvF7eOwUy5lnr4CNcgvIAABAAABQAAAAQBMCUSAAW6/GS/WZ/P9fPTDx/Qjhev3+Y0359V6bxejm65lJuikaY1G7ONFBbOu9fMY/TcbTLy+jG1mVSxLsy+vx9T5nPTAa5LVGsZlBAAACAAAACgAAAAAAAgCYEoEgA26fGTr6nT5P18dfQub7ee9aTEL0AVCmqVvNJbqULF6i0VjDD31s5t+mMdmMvk4d6bZBeQAABBKAAAACgAAEIkUAAAAAACAASgSgSADf2cxL3vV8u56+tr8x6Je+5O869zHaWK20FCApEiulOanQ+epTTMOuQBBKAAAAACgAAAAQITAlE0AAAAAAACAAAASgSgSgSgSgaa+ZL7r84vUnlI6mHiF6w65lAAAAAABQAAAAAACEAAAJgSiQKAAAAAAAABAAAAAAAAAAAAAUAAAAAAAAAhAAAAAAACYEokCgAAAAAAAAAAAAAAAAAAAAAAAAAACEAAAAAAAAAAAJgSgSAKAAAAAAAAAAAAAAAAAAAAAERMAAAAAAB//xAAtEAACAQIEBgEEAwADAAAAAAABAgMAEQQQEiAhMDEyM1AUEyJAYCNBQ0KAkP/aAAgBAQABBQL/AKFKjMP0/CePFRi36dHIYzJM0gqUR/qC8STc/pd6vkeEeQQsP0K3JHEyH7ssJ2YmMaf0AVoVo5o9Db4+7OOQxmSdnFSGPTzhh2ZGUqfWjKPEaVmf6jRIGZxZto8eQ2KL0xuc7crDtePFgWtUkRj9ivE7W8ed6vk32jZhKnhBHIBIoknJmJphb1t8r0vZtk67Urrtjcxs+Juta1+kRypO71/+W2TybW4LsG3/AC5Mnk9e3ZsTi54nYguzG7bb1er5Dx8gcS/f699sfk2jglCmhcDeOzkR+T2Endsj7tr8MhSm64lArhb0ylTsXs5Efd7CTybE2oLsxuckldKZixUlWdyzMLbB4+QnT1/9yd+xOmxeC75O/IC9dE5A8Xr/AO5O/YnTYeEed6vkBcubvlhfLJErhhY23nx+wk8mxOmyTrui8mQpTpPyuB4mOQIp6bX9jJ37E6ZoLuxu25OmQ2nx7ZPJ7CTrsTpnH13/AOWY6ngb5P02R+T2L9NibB497ducffnJ3bE9kfHsj65nxb5O/Ne3JeLN3bOkfsR4slRmoYaU0mFYH4jV8R6OFlp4pACCN0ffs6RZR92xafDcCLexTpHh3ekgjTkWvTQRtTYSnidM14LskzTtr6emOhQ4FHDriLGVULURb1wBYwYcJzpMOj1JA8dHhHmguzG7Zf5YaHVWKe8lDYjlD3etAuYIRGPwJMPrVgVOScBmkes8FVjc5f1kTR+2P1mEi/BbpUsSyCRDG1HhHnGmlZ+EObcEq9INTMdTerhT6knT8H/llLGJFZCryd2WHXVLUovFnJ35dsfIiTW3o8Ilk/BXZMgOzBDjliIijVH3ZINTMdTcjBD75Rpl9CBcqNK/gN02dWxUeiTLBj+PIi9NhYzQwoA+GKfCuKP2LycGto8WP5vQ4Vbzfg9W2L0xS6ocsMeRiIda5aWNFSNoGooulMb5fQ4IfhL0zbKTjHSC7QyWn5EsZ+vFh1TK16kwqtTxshyw0GnLG+T0OD8f4DbRxaj0pOArDy/UTfpGrYQDRw8RpYkTPFG83oYJvpsCCOeOJzJsALDJu48I6RyjRSrIOex0qTc+iimaMxyrIORcX2Nt6tnIP5ZO7IEgw4kkq6vzsZJ6SCKOVHhkiqPFkUjq++SPVQ+QKXVmOJ2L0zlXTiNkYNmNhqarmsNMzNVxyJ5xGCbn0aMUaKVZRJh0emw8kdJipFpMTG1deQxsNh4nZi76cwCxkOhc8Ev3TNpipJGjMeJR9jSIlS4uuvpgSDFigcnjR6fB19OaKlxUgpcYlCeJqvfYONWIrVWoVc0OGw1p1JIhjalUsVtcm5zgT6ceNb7cwSK+rJRdz6uOZ46jxKNmUVqOGiNfDSviChCwoKRR+6r22FgTViK1VqFMTlLGsith2Qs3Dtjzw+H05TP9ST2SSulJixSurbWNqXpWkVarCgOF7bF41xFahk8URpsMrV8Ohg1pIkTLFy6V9re1JiZFpcWhpZEaibUBVquavVzR1Eg3y0irURXbnpFWAocDnJII1di7e5WWRaXGNS4uM0JEbIm1AWBF6+6uNEmhcZaa4191aa0ir2ykkWMSyGRvfB3FDEyChjDQxcdCeI0GU13GrEVc1c191aasa+1KlxKimYsf0UOwoTyCvlS18uSvmNXzGr5jUcTKaLFv/FD/xAApEQABBAADCAIDAQAAAAAAAAABAAIDEQQSMRATICEwQFBRFEEiMmFw/9oACAEDAQE/AfKvgcwX4eCLOt27eWjhf6iK8LDLuzaE8Z+1NiL5M2Pgc0X4FjWiP8hqpGZDwwx7xGN2ewjhQiKNcTRmNJ8Ffrz7eM04FGNpFLIBopy0u/Hgik3brQxEZ+1NiARTdr447y6LdPvTbh48xv0t1T8yMTGj+I68u2ZiHs5J+Jc4V0cPlz05GNpT6Asp7szr2RvMZsIYtv2FNPvOQ79jc7qT4i3n9bG4mQJ8rpNfCYaOzmTYSCfSdAxo8NDLuyvkxqebechpsgAskp8YIzNRjc3mR4bDZS1NY1uixDw38ffhmOLTyXypESTzPfUVlKo9KJmd1KSIfszTuQ33xZAi0jhq0VhmNIzIQgWpYmBvrt2j76JbwAVsilMei+W30pJTIb7YCz03C9g16I17JnUcOabrspZQi31wsR17FunUfxBuwtWRAUjr2LXV1H7AaQN8ZNdkFXpZvfSdwt0WfaTSJvswaQcCsoVFc+gW7QLTuQ7oEhZ1fRpZRsJvvbKzrOrHFdIuvwllZirP+E//xAAnEQABAwIGAgIDAQAAAAAAAAABAAIRAxIQICEwMUATUEFRBBQicP/aAAgBAgEBPwH2raod6eq+1XC2F5/TVGXhGk8fCp0fl2Daod6FxdfomOuGWo+1XC2F5ygZE5iYEptWeeu8S0q4q4qkHAa5KjLxCNJ4VOkZl2LXuiVe3Gs60K/+YQe5xQ6zqTXJtFrTOzVm2QrimyTATRaIwe0PEFH8dyp0rNe+42iU2oHYGiwptNrePSVnx/KNRNqvJ9NUp3heB6pU7NThVJjRNeZgoOB49NWkORcSqLSdfTOaHDVeBiAjQd6QrgpG091rZTH/AA7sl31muKDpyzCCrOIMLyJlRxPXcdkOyEzg9gev1ymMDNOsTA22nA8bJ46T9xp0TuMJVxQd95XIcdF3O4zMXYByvRMocdEtncZgRKIjOBPSKn7Vv1tNyu5VmIEoCOmRKLSFcpC02A7EmE3U9ogFWKNmVccAI7sK1WqDmiUBHpICtCgf4T//xAAxEAABAQUHBAIBAgcAAAAAAAABAAIQESAhEjAxUFFhcSIyQYFAkWADEyMzYnKAkKH/2gAIAQEABj8C/wACqD8QPKtj8PooYBwsfiGwUfw/l9B+G8UeVbH4EAQoXEdJIhQwDhYFfN/aCrmEGgoqBMEQJmt6T1wCjfQ0QPlwj5zHaZke57H3K0rTONzQwVTF1TFDjMGjMBtNa0miFAB1mzXVRuvQzD3MZgz7N17ujmDMo5RmjdNXTXOYDiUTE60fEi4auWec29GYM6PBVPKgoGVq59HMTK1xKES+hUSohRKHEjVy3xmJla4laN4RcnnMTK3xKN5wE0d3hbqFwzzmJlb4lhoJxtWSIXbVRRBZjFRmZG2YmVviQImdo7XA5mOYjiVriQnQXB3MkFB7I2lGZM8StcSNXDA9ycXLR2zJmU8GQbm4hpSRovCMp3OZHYv6WSVgAokhdwWIXhM9JVZh9yjc3PScyaGyiekLCJ3uKrthwuhr7XUy9o+pQNA9outt+cBJEI2VAVy+AUWqtX2h2Wo1TI1rIAiX8lW2sFDSaLKP3lsAq93wYihUC9praRhnxiVwiXxkh5Ncttn18GGrq46qDTgNaytSMj3JHLAPhcPgVZOKhpR4c0JOKP3auSNskta/CjrIGodQwkaL4jtdHSr9lG5J2TQ3yIBAfG4URgXkvqqURFrFd6pVWfJxuidUciG3wuJjs8saC4tDuD8CqiWAQZQ4yJo/Ghq5obOAUfBuSyyMV1VLqrpoV1B9trFw4yI8/BhKTI01s7cXFrzLVdq6WXnbIv6Soj4EbgobuiFvp8Ak+ETke2iofVzC64kaG6hpR8QrLY9rpMb79se8k0aUR9hQ/UruukzxZNlrVVDLS6oenxl5kaa9ymHCss4LuKxVhqu7sRcQHconJIsrfRaHZRZrwoNVWNnlUvYS09yQC/bHsyNNJo7OiyVXpMnU0FD9P7yeIUP1Kbu6mYroa+1SPpVgV1Ahd4liqKsXYfatHzLA+VAuorLOHk6qMgHnygxrJQrva+1Vo/eV0NNFXpL+pkFdsFiVRsr+c0qtkqC6pIOpgsCvP0sKOgV1duqgKMr+6S23jo4nM+krrEF0mMu8ncVVV8qv3JHVUwfUIQaK7/8Aiq0V0h1gYnNqLGPK6hBdLQdE4qiwWBWEuJUFs/B0JIlFo51RpdTMVWIVGhNg6LXl+KxVaugXRKic/o0VjFVZVYhdyoQtnUWCwWixKxVSv4eOqi0fwajRXeVisAu0LsC7QsYKpj/pQ//EAC0QAAEDAgUDBAIDAQEBAAAAAAEAESExURAgQWFxMFCBkaGx8EBgwdHx4YCQ/9oACAEBAAE/If8AwUUE5AqyIb9O1TNxIEY6/p70pNQnwAQEBO8T+mA5BDpuFOF36cEqENZnjE0Jy1UQR+giSidW6IMAapwwKQYs3XRTBiKrVN3+tAAhDJz0adCBW3x0XqVCicYBEIghj1RVCJBOiIADEduqTIYTi1CFRjDRAbRdDMHY1zQNcMRZAETdFFOWQOCboCqGPVBbnfZBKE2N2wVytK9AJOaF0/16Zh7KKFa8srXvhFoGD3REpjnKuYtkVcxb4VO5IRM1A9sBZMThFIcIZoWQ/wB5hAJKk/KJJEmpyAOEAeYXT2zJ1JxvEYaDlByEuqAt8XcKBvlCq9KWzbsPRBKrwzXTnH0sdwiHZ8os7gjdXOVjBpUpyuzmYvdDoiyLlG5rl3DTsOWttObf0GFSoI3CIbP8fo+2IyX7hp2Ay1NvizeKTzhWhDKELSUA7IxgA5OiIAMRocvw/no1DYnt3H3uX5uVpLcwoVTIA0VinOuUFVwjKuU73AcnxOjA33I7gKF7vpH4iwxBfIS60rAD2x0AdciT0YFuA+e4Che7y/V3GWBufI7AS63kLLeQsWSWKpJtBTjqCdngK5HuAXvcv1dxlo2Az1H0E4yRAEkJyhOFU4EgDgfNEWh95/nuNdfL9XcZGButwDnhZN9cSnISwUN4jlElkfhLencaq4dE4XB0BH0W/wByPIXIgSwpiJdQ5zKLu0BcolySde41eV83JEl2HQjtPdkpHkq46dgBliLfzjuUzWJGX6q2SG6HoV/oGSOybEWW6Nzb5BKotQe3cpchj8OCqnIK0OREcYUdJYFAXBQyeYS0ogwEc5hd6gl4RLkk5DA3MdewfKDlV7xsdUYp7jO6T10SvfJ0BAGAHlaMLwX9YlXGuKY+Ls85YG2Yw2TYb8wQOnuIEN/xHGjwirJLZGJj24YC5KYf6jrSwG8kwRslzQf4ZOTFuQcaIPmI0F1F6RwryOYYqsyaSPbSAA5KeciqfwDSaJqPDTRFIWIx4Awech9IBGjDAE5mpxDmxTFhQNy47ayG5P4L1hsGHDQhYLzfDcxfXziA5ZAiqRKJztk5I6OU66ZAaVJ2T5RYdssjqgAAAoPwa8WOp7Q2TGqkcwpiM/QScGotiA5AFSjDgKQeMfsadHmkR2R7Ovx/CmDcfI0DvUZPZOJWCVMPTUMnCEMBJNgnygaCw6LlsmyHYjWalBA6D8HQvCEBsnslAGri1cHEAMDhEXdxQbH4KyXogrmBQ2U+wW6Tw6kxvAdi9SPwvRyCWDoKzUynBrLFo2A9ARg/yYikN4VSByMpw1igCNAg7E5/D+CSwcoKjUzkk17ANwLDkxSao3R1VDhBgQWA1EQBgBU1/GTWY3wAJLAOVQu0W7I4zX/BSa/LwCBhV4w4gzATBN7oSGSDPlAsAI3RR4cFUoBvj6PdiM0dxDRXB/AmeIyPBTQMDQoGBuoK98AY8hRuNX4AdBA6MdqS/Y4lOtHtN0QMQGRUZShhUwgGDZDANJZSSpUxHEMUEONiHOHrNV37IIxIdXRyYgIiBllUHcZzvwaGgIodydlDENsUnQIGQlg5QVGssjwUAWuQ49RggucKm5Wl7iAy4J+VbwwEdReUCDIL56yD9kQhHJ7IHGYhRmNaSbbyHqMa1Iiz5wVV3EBAOTjboRF0AAABkieZyiTggFiyDAJTQekg1yOWIZeh7D04NChTHslAghxONMGyIYG3Ikk5Lnsw0UgjUJsmehAghwXCAxbkCrWyE5wHc1D+aGRHskqkeSEABwQcaIZHrThbmLFM0ByFzeiJqMF0fMJFW2QmBJTSj3It8ZvgwPI2RWjKj2WuIDlhVeVXJMhVJzkqwOCv9Kqo+e1jPrFFC+ZRAvTD3oAv4oKOiNNFwvGHvxzBTNMalClDfTIIDQ1K0W52FbgeMAKID9R4w1U6GyMCUNCdZ7F+UJTqXtiASWAcoxAOyxUVt6DjudfWsaI+OcELcOUyiSomU4WI4T0EQdx5KfJiOjMICDTAlqqp9gmurLIE1lQp8YNxCDkAAGCaoWu4hUFBvhJl/Yd2BE5EHZVZlK4e9VEeUwTVwjNzYpmvpT1WfWUDJxC4BtgbDcYYZIeS9XVTgcLIEEOCiAagHBCkAVUoaZDfxi6KTJ7zRFHJ5lAUOC+QKr284NIqaYQHldMFCDyn/wB0CHYDynvmbYECXEHZMP8AcJrHomGoknqufKnqboEGhT7eBdaO9Bbv9NHlGnIcgtN+CjqEaJHKqi8rU0e5VVqMWKu+9b1SsnkL6QiQOAblOQB0T8H9GoA8qhIANB5CGsRD/tL/AGEdES01wCNObl/8UP/aAAwDAQACAAMAAAAQCCS//DR99tBBBBR1+++++++++8xBBBBF995DX/6CCCC2/vDV99tBBJBBRx888885xBBBBBF999BH/wD4gqggkv8A8sHX321GqkIEEEEEEEEEEEEEX332EP8A/wCggvigglv/AMsHX32zD6IkEEEEEEEEEEF3332EN/8A6CCC+uCCC2//ACosfffVnYsCAQQQQRzTfffeYQ3/AP6IIIb764IILb+7d3rX1a/Hk03gk03sMzT3EEd//wCiCCG+2++KCCC2/O/hBV299e99OKf9/wBj+gQz/wD/AOiCCCe+S+++KCCCy/8A1T1ggYs8vjPfucYUih3/AP8A6CCCCe++CS+++KCCCS2V/qPLJahdCBqDDDL/AP8A/wDyCCCCe++6LCS+++OCCCC72v8A/wD1r9852Zr/APp//wAgggghvvvugrQwkvvvrigkiQl8unv/AOn+U3v/APtyCCCCCO+++6CD9tLCS2+++OCpCVCBCyyhylaHiCBCCCCGe+++yCDf999LDC2++++lCcJTCCCxCBCpCQJCCGe++++iCDf9R999LDCS2+62P888f7IhCZCvKPMP+++++yCCHd99BR999vDCCy188888885AOtK4+P3j+++yCCDP999xBBB1999PDU88888888j8P9pr1V496yCDBHf999hBtBBBR9999l88888888n8nWp8fvfCBCDTV9995BBB9tBBBBx9938888888708XEy/8880Mrz+d95hBBBN899JBBBBxe/888888v8AO/JwFuPPPPPPOOYQQQRXfdPPfbSQQQQ6d/8Az9/3/wA/8sd5FdZbz8wwBBBBN998AQ8899tJBBRjFHEyUnQGzgdp9hWxhwBBBBN99984AAA08899tNBBg18vro5/j0PfvfoBBBBFN99984gAOAAAQ088999NNBBBDJ0AATAQ/RBBFN999988wAAA+uIAAAQw8899999NNNNNOcuetN99999884wAAAAO+++uKAAAAw088899999999999998888wgAAAAO++C2+++uKAAAAAQw0888888888888wwAAAAAAO++++CCS2+++uOCAAAAAAAAAQwwAAAAAAAAAAGe++++yC/8QAJhEBAAICAgEDBAMBAAAAAAAAAQARITEQQUAgUWEwUHGRcIHRof/aAAgBAwEBPxD7r3B7/H2eyo5KiFOmDrZvrERI/ZU7w7ht4fmELvyzKzuT3+PsJRst+qmFGxyejqKmnJUB1mWdtvtojstnqrT3Guuh+/HBzQkwZiUOjVXLd/b/AHlj+07hN4fmXD/LN8Mx2Kz/ALMgE1NcEwaaMMQ4mbhTfv8AuEEaeMRRs+Z1YR5d8vtwFQwlRAU1H14zLqtXymWZI4qojvyHfBvkjge4fTPuOAau/wAzHPEfQbj5Dvg3z1EIunX9QAXK41sorfdxKa4fQb8l3wb5Yt2xgxa/8lo0o7jALoZorWz/ACFWg5PJd8G+XfJvgDayWS0pCkFu3PXku+DfBv0HFudTBVn6iqlrz15LKuF2p8Eo69HXBx1wAvUAKWP2eThgA16EHcU1wDx1wJASg0QT2FjmWEqLsHse78evL6DL8kSo8UL4SXT2hVlXLg10eNiPovA5RzDYIlkRGmdcPoNgjjwRi/onDKOUh3PglJfCuRbc3eCKH0GHB7zrBqmDZZ6AG+BdQUAUTNeDoMG9evvh46RjwOnroX4SBzBmXCmBBHXCXAqLUOO+NOXGJcTmw9xBHXA7R14aaTAMW1KdMvuQX2l5le0WoFSybYw4hjhFFgObfH0kB3AOo+01MQq5kisJmI7J8EwEuX5oWmC7lIPBHTKvM/PFfEeyN9jWk+afJFu/4J//xAAmEQEAAgICAgICAQUAAAAAAAABABEhMRBBQFEgYTBQkXBxgbHB/9oACAECAQE/EP2rVa9ff6fDKw3DPbg/WD+YIln6Uae4pDDR/iYCNVr/AL+hchVUy2n4dyuWYYZ7cPVqAA7+V16QqBpf48dAHqBt3mWOZQeZAiU1DUOS5bPUxCtXzhEw3G9hMNW+vUSgu/GcvTO8IcmuT3xX2SBiDuH2iVtrrlBYwkvWbYa8g1w65Yb+kxGn1w5dVMyMw+DqHkGuHXPcIWNkBBDJMDy+vqDZwfB15Jrh5IH2EQdT7RDUIBVbCe33H6V8vkmuHk1y64bC8OZsGKjcHPfkmuHXDr4PFAF8AU0c9+STUatz7JZ38O+Hjvi4EVaqf9+UlXfwFNQLcCDjvhAViUtjzq1FtYyQrlffj34PwErwwbhxYrgwHcbcJDKefBxTiEdKDTBEsnfB8HVoN+Cs1+F5s5QjU+yWtfE6KmrwVl+A5Z2iXZEpp+CJXCm4iIrZq8HcIlb+fXBx2hDhNvnYrwgpiVcGNsqIm+BqLcC48dcbcmcyoDAj6MRN8LpDHhhtMgQRuW7JXViHuViXDMcymahJmOeAEGR5o8faRXUUbh7m5mN1MQCMxBdM+yZWVK81DuJ6l4lETZLqf24v7h0Q/wBGoZ9U+iBdf0J//8QALRABAAECBAQGAwEBAQEBAAAAAREAITFBUWEQIHGBMFCRobHB0eHwQGDxgJD/2gAIAQEAAT8Q/wDgrIdKU7RP+OCBNKOZs+hFWaAgTOc6i6FQn/GQJS+JsJg0ZmiULzQB2zoiXPFpIY/4uY35FGD9vSmcAlMGB/xYxhRqKhUuFaLXtLHvPpxOA4xlTqI2/wCBFiiBIDhJj4L3EoCgeYXQLcDEmnAN2mgMkzKS4KUYnjpGPmAm6oZBxtakdZxLU8C8MF7wt7xxgRNWAI2TBq4kYhnUUXoJclNAkZ+LeKZfRI7e9IFxA+XYNAGSmgBjMFZK5AoO7CyocJiBnzb5E6YvwcZCOS0UPV0O9YiDgGRpyLYFi7BhSjwJBmi2mONsqmSCxu0mQcXKnheEpT5YoDyTF6MNndi35jm6oN3QPlxmhZk1DelthTyIu66O3KWKDCE6Xn6oH5pQwH5rAHPWQre8Chre8Cl4QisEEpis4SHV8sXcUJnFb1TWMK34g92frm6AvqflzEfJWa5CnKlJXkDcqOlQhMBpSs5YZEdKigXFdOCiRbiDvy5bxWMakTVukHt8wbTN3sB++USDVpWcl9Nvrmt+3qDgenKsuSI3a9m9x5hGDW9Sri0Y1hNR6CPrzDuMu68uyY9631H35TwJ9ApW809uY1cBGVKrLV4aJ9eDsGFb3r3fMLX+wcveHsvzLVXsYvAzKj7Zk4kdaRX579uXv4JGXAR6DNJRYrPmGLoHty43Ue/mtBq9S7wUS0pMRBRxBYDJmkpKgBdpQWKC5y2LqD2eDb+rjj3jzHD6Q5ca0+OPvlkzCZehepEzGsKoTOdO77kSFOHvm040PJNQBukQUQBmR2knksXVHv4PQsDqh8T5h7w5utXRe6H3y73O6eJDfisEtSJqxfr5Pri4hE4BTdBisRlD4O4jugJ+vMPeHh9BvVH2scRTCjqVPSkxUhmJepojMEHSeKFtkdYp3JhslOwXEaGpEYebfjfSwfD5goR0owfgoAlgpwfD7j757MnL0H6cQBGoICSNNvC3GbUtwoq0Qtiy5U642Qnfm6x3qfMT0g+3gwb1it7hOfrcHVB8Lxguz5LhVj/ojlCAJVgokxki9LD48xv1D9uW8c1/I8nWYOsW8C7Zkdgr8ORCLygqY0yEmcU5VIr10N7jPKEFPYRd9imvhUvmN+pj6Mct8Nfjn65Ouw+s/Xgd+11X4DkBPwC+xNKpXFvxs/mDl6sg6o+C+Zfwhx++W8dfnv1yWT9AR984KgErTITIQ9kfXJ6d+qx8Tx3TNb/LkCoKkmCOjYP2np5lZdH1EfXHAg1LPWv7A+k1pw5JxR91/wCa0HH9VPqv4VetaR9liu1SIugjmBYlXoCX4pnEqyvJvBuwI++IIvBl6UqquLyPGYqBQ3oS/wAalYERhHEfMe7U6ifujC6ZF3oUMIC3vbCgAgIOeKE0E1PLrH4LU92XZ+z8VMIOq9Rx3lDqL8Dy2Llnq3fnj0f77wipxYzXd4SIdKioXESiJIlybrRpgYMS4Fi9R1klNFKgRGEcR8uYq6AKBhQ9vFJJDhQbL8iDuYVLd6J30rdjHTB8PryTtYRLoVvvJxx9fZCoO6L2b8Veq3ZvnwUdfCUw4PZIQySJSNzgq1/a+WpgVAGdCSB9DY/wIE4Behg5xbI02pc+OHj/AO2iz4nkuZJJoLSLis4aBSqpWeAwyVhKAyd+MCDGt5vQGB6y+nlobeDka/4VJzB2Z+00WIqN8BaxP1UNRyGA1OG+EuhY4kAYrFFgWEu2FKBicnd83vY9j3oLBaVpKqD0QutW3gsaAWD08saAxy9CjLgID/C2zKTu/wB78VAxiz1T2EIG+5QLEiDtZ954yyS/pcHx4v8APFjUpAUh2SOgI+uL0PbL9vx4IQFzrBhSQo5eRxgvW6P8OF2rlx9Bl7cgLktBmhYpmWcc54k6MOBBIcGlSKyjLbgIlwRdTD3ikouKzwEEgbIxaeIyNAsHg9F71f1UZkCR08ibFRFEBYj/AAvDxcO/6oADAI5C65Qd39fNFZltGTnxV4tb7cU5ExEmnCM5KSrADBYWC8fHpTFidzSYyyLNMaLIc8jux9PCUVe30Kkxgz28ik6SB/xfRPd5ARWAlpgYjLv+qOBuh+/biMzdA3cfk8AqAU2y6cTpM1FXuPhylZLwVhKkUAhmJ9XyLocPt/hBsAJaYzjLktFoPQu/2/CeMh7cNBkTRS0KXRw8G/8AMAZDf0o0mq4HQoBAA0KihNEmiXp5ipE/Rke/AEpMApiQkXMn54ISMh8vkRGauf4bpZpehy7A/a/tuBkW8qkhRxK7AnVtQoiWSgNtwNTXwASGIth/7yuXrITUsdBApidiJeMaGwPSX8ivNUt03oGppE/wXlg+gckWkuAauVXNlC7q58Ly2rYJnvW/1fQsffCItkZJpQpYJcbn+BfoQqdmVLyO7szcw7aVDFrWJ4PrPM68qBxmH3RGMAjk2qT65ffIoEuoO7RqwEHbH3niYWeCMVPIuw21KsB2INzt4wwXGKex5ItVO4xGVqu8aTHOplRR/EEmdbtKTc7c7k4xmDRq3c0pU1JLUX3eN8/wy8hOkAS0wjhpbbenJAr56IPelUqyt3kEK3K4E3XsfNHFSSNnW6aVGQg0lUJvUXUJz5FiRrrwdhjcFAwBqM86Fwlj5NJgRKufknyhVs1OUAXsTptU/fdqepnU1m4FgdvxUCRLIYO/5qIG0bD1wo4BMFSPgGEoXE6GtYTAW5LTwfRP3ysDRMxsck5Ze27UM6bkOXTkZQsR6t3496uBCI6mx7tS6tEUhmr9QoAHMWB6NAEA4I8SldNUvpjQK8to79inLkZVbvkyNWkSiYOCHF10oEJLiMjUIS2QnfGnyldc9Sm5QziPWPuo0RMbj1KgRfWA+qiIi5P7VFGajPFQKsBjUgOgOVPkGw6NR4rufJatFWwn6oJY7G1HbH4qcY8Tky7cg4aCaZSgr1NEc26A14RIALowDVaNvW2QZbFPiZTxQAVMAZ1Lhd6j+ihcewjD3+ORWevhQJB/ZvQ8H6I+VwSbNd/So95csbo0AFCOZw9ZIVq6iWrlN96R+qJJ+pd81gjaDf5WojoaP1RUcC5fFJEtAcX4oRJGeChdp0lS1gGnekGCCYRRkmtXOjUDGep9ytIXRfioUgxcYbUIgjI4VCuBg4qhlF7GXYNaw7z1LVZ10BDox9+JpSWAJWhYf2LvSgVYC6tIK4+yw/PfzNEhdV6KhULrnpjULds3OVITkB80YlzN1cVpBIblM8le9Pauk9vxSxxCW8elAoJxGhkUYkyfyoCUJtwAKoDOojFlbowqSw950U3ADQ2alGIlCPX5e1DyQECBTMQ4z/rSlh2H5UX1xu+vAMFGD+L+bFSrBUNQIR5C/rUSPallETsJdRyYrYDNpEpOJttSCmWJk1gGd3Nf+RUmKdCkUYvQLTkTRiMHFZcEskmqj4qeR9z8Url3SYFItKeI9xUaSbUfBG5NbQ6UlInWL0pbTS/rkYq+GYtKkgPPTbzkVSKJmUbTiwfmqKCtVDUGTNk/FEnQKCJIibVhKbQ3qwTK3XVpIWQYCyVkV2Q1HiHpRajmKyqESYhZ2cLkNZRWWCUSZO91YzWCxHSkEIjCcFSNYRYYhvQsgm1Ib/JxonSBh4Dz9Wa4DYhFQLO3o9x4n4rDdtZQ89EFCRmXt/GBSARJHKso/wAsaixewrQ7yFaIGqy0RuFmZx7VPZcbUQmc1u0wjorH7pMx83/hRRkUdqyMtFWRDRvwvBPgooOK91f+ypxcuq0YgSqeO3T/APih/9k=#fragment"); -} -#data-uri-guess { - uri: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAA4KCwwLCQ4MCwwQDw4RFSMXFRMTFSsfIRojMy02NTItMTA4P1FFODxNPTAxRmBHTVRWW1xbN0RjamNYalFZW1f/2wBDAQ8QEBUSFSkXFylXOjE6V1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1f/wgARCAGuAoADASIAAhEBAxEB/8QAGgABAAMBAQEAAAAAAAAAAAAAAAECAwUEBv/EABkBAQEBAQEBAAAAAAAAAAAAAAABAwIEBf/aAAwDAQACEAMQAAABwG/nAABAJAFAAJgSAAAAAAAAAAAAAAAAAAAAAQAAABCJgABQAAAAARMCQBQACYEgANsst4GuAAAAAAAAAAAAAAAAgAAAAEQAACgRMSAAAAgEokCgAAEwJL4+jr08Onl9viX9G2HkHp8QWAAAAAAAAAAAACAAAAAIgAAKABAJRIAAACASiQKAAAXoz20Vnx/Rm2emvnzg9XhNc89oGuAAAAAAAAAACAAAAACEAACgAAQBMCQAAAAgEolV4+i8/r+benzbecO8wALXnGWUXz267n6+T3eFf065eMerwheQAAAA56Pd489qobecAAAAAIQAAKAAAIAAEwJAAAACLVnnS/S5z5/1d65FnLXL2/NDbzgbY7Yyr0caaKz4/ozbPXXDOsPX4JQL16uvk9/FJ9HkhDvOUBMaYent48x5fbTbKepk0z93zAvIAAiJgAAUAAAQAAAASiQAAAAEtbNl6NK1S7Za5becLANctcpQsA2y1xlCxatst9/Zznh+m9PmgU1y+h8gO+FquNNFHl916Q282uWuW3nCwIIAAAKAAAAgAAAAAJRIAAAACAbY7YrKCTemq0qAWNM9pc6rc9Verzc9wNMrTRl6LVOs9ctcu8wsAATGssZgISYAAAFAAAAQAAAAAAAEokAAAAA2x2xARtjsuSCSiRtSFraunn9f0fHzzx9Ga7rnFens+cFmuWuUoIAA1x2XEIAAACgAAAIAAAAiQAAAACUCQAAJiS+emYA2x1MggG2O2KzfOc9tFHl9t80+jyaZXz2882p78t/Nl9F8/LWLRplA6zAbY7LiEABQAAABAAAAABEwJAAAAAAmBKJAANctcgBrlqZAGhbG1QEAbY7LiEtpnfx/S6XOhj6PR5ltvNiPZ84BtjquQAAAAACAAAAAABAEwJRIAAAAABKBINctcgBrlqZAbY7GIAAG2OxiBems6Voy3nXHXXz5CwDXPXEAAAAEEwAAAAAACAAAAlEgAAAAAAG2WuJJoZ67+idct0oTna+iDxpiwABqzIA2x2MQWm2QAL86Xx6/K47qNcABBMAAAAAAAAgAAAAAJRIAAAAALGm/R92enl9Rx2CgAR5vUTk+D6V1z8o7/K04yy2xvIDWsFQa5a+yXDy+7wk3pp5fd9FxfOz2nPeneWA9nzwAAAAAABBMAAAAAAAAmBIAAAJ7/n6megcaAAAAAAImieHj/U4d8/NtMtMtstcSUSe3t0jLb5yprjOuO2epk8/rvekejyUGmQAAAAABAAAAAAAAAAAAlAkDfDtzroSY7AAAAAAAKXolwuPz30/k644eRrk9Xl6svXx2Y7fJvb4t8J0nEGhbG9AAABvh0pea2xsEEwAAAAAETAkAAAAAAAFvqeD9BnoHGgAAAAAAFL0ugKpeicTw/QfP65O3xO4dAZbR4feTnU6izh+b6Xw9c8EaZl4KgAdvjfT8d8Pw9Lm9chYAAAAABAEwJAAAAAAB1uvzujjsE6AAAAAARNEXFApel0z+X+r+U04v6sMeuPrHj9mOwKAB890/ZbrlEueufyPp464+Tn6HXrnx9Iz04nN9nj2xCwAAAAAgAoIBKJAAAAAPZ3/lPTx39Iw3z0BQABUsABRZJCq2ok2Fj5b6r5jvOcdctONO/wDOTzfq3J6WeuglAAAAAUvybOVU2wAAAAEEwAAKACAJgSiQAAB0ubpL6PR0K8d7a8GZe68Xs56kK83pJ4vToBmNIkBYrGiAridvl9c8eDXEXNq6+OXStVnY6vG6eWuk/J7WfTvF7eOwUy5lnr4CNcgvIAABAAABQAAAAQBMCUSAAW6/GS/WZ/P9fPTDx/Qjhev3+Y0359V6bxejm65lJuikaY1G7ONFBbOu9fMY/TcbTLy+jG1mVSxLsy+vx9T5nPTAa5LVGsZlBAAACAAAACgAAAAAAAgCYEoEgA26fGTr6nT5P18dfQub7ee9aTEL0AVCmqVvNJbqULF6i0VjDD31s5t+mMdmMvk4d6bZBeQAABBKAAAACgAAEIkUAAAAAACAASgSgSADf2cxL3vV8u56+tr8x6Je+5O869zHaWK20FCApEiulOanQ+epTTMOuQBBKAAAAACgAAAAQITAlE0AAAAAAACAAAASgSgSgSgSgaa+ZL7r84vUnlI6mHiF6w65lAAAAAABQAAAAAACEAAAJgSiQKAAAAAAAABAAAAAAAAAAAAAUAAAAAAAAAhAAAAAAACYEokCgAAAAAAAAAAAAAAAAAAAAAAAAAACEAAAAAAAAAAAJgSgSAKAAAAAAAAAAAAAAAAAAAAAERMAAAAAAB//xAAtEAACAQIEBgEEAwADAAAAAAABAgMAEQQQEiAhMDEyM1AUEyJAYCNBQ0KAkP/aAAgBAQABBQL/AKFKjMP0/CePFRi36dHIYzJM0gqUR/qC8STc/pd6vkeEeQQsP0K3JHEyH7ssJ2YmMaf0AVoVo5o9Db4+7OOQxmSdnFSGPTzhh2ZGUqfWjKPEaVmf6jRIGZxZto8eQ2KL0xuc7crDtePFgWtUkRj9ivE7W8ed6vk32jZhKnhBHIBIoknJmJphb1t8r0vZtk67Urrtjcxs+Juta1+kRypO71/+W2TybW4LsG3/AC5Mnk9e3ZsTi54nYguzG7bb1er5Dx8gcS/f699sfk2jglCmhcDeOzkR+T2Endsj7tr8MhSm64lArhb0ylTsXs5Efd7CTybE2oLsxuckldKZixUlWdyzMLbB4+QnT1/9yd+xOmxeC75O/IC9dE5A8Xr/AO5O/YnTYeEed6vkBcubvlhfLJErhhY23nx+wk8mxOmyTrui8mQpTpPyuB4mOQIp6bX9jJ37E6ZoLuxu25OmQ2nx7ZPJ7CTrsTpnH13/AOWY6ngb5P02R+T2L9NibB497ducffnJ3bE9kfHsj65nxb5O/Ne3JeLN3bOkfsR4slRmoYaU0mFYH4jV8R6OFlp4pACCN0ffs6RZR92xafDcCLexTpHh3ekgjTkWvTQRtTYSnidM14LskzTtr6emOhQ4FHDriLGVULURb1wBYwYcJzpMOj1JA8dHhHmguzG7Zf5YaHVWKe8lDYjlD3etAuYIRGPwJMPrVgVOScBmkes8FVjc5f1kTR+2P1mEi/BbpUsSyCRDG1HhHnGmlZ+EObcEq9INTMdTerhT6knT8H/llLGJFZCryd2WHXVLUovFnJ35dsfIiTW3o8Ilk/BXZMgOzBDjliIijVH3ZINTMdTcjBD75Rpl9CBcqNK/gN02dWxUeiTLBj+PIi9NhYzQwoA+GKfCuKP2LycGto8WP5vQ4Vbzfg9W2L0xS6ocsMeRiIda5aWNFSNoGooulMb5fQ4IfhL0zbKTjHSC7QyWn5EsZ+vFh1TK16kwqtTxshyw0GnLG+T0OD8f4DbRxaj0pOArDy/UTfpGrYQDRw8RpYkTPFG83oYJvpsCCOeOJzJsALDJu48I6RyjRSrIOex0qTc+iimaMxyrIORcX2Nt6tnIP5ZO7IEgw4kkq6vzsZJ6SCKOVHhkiqPFkUjq++SPVQ+QKXVmOJ2L0zlXTiNkYNmNhqarmsNMzNVxyJ5xGCbn0aMUaKVZRJh0emw8kdJipFpMTG1deQxsNh4nZi76cwCxkOhc8Ev3TNpipJGjMeJR9jSIlS4uuvpgSDFigcnjR6fB19OaKlxUgpcYlCeJqvfYONWIrVWoVc0OGw1p1JIhjalUsVtcm5zgT6ceNb7cwSK+rJRdz6uOZ46jxKNmUVqOGiNfDSviChCwoKRR+6r22FgTViK1VqFMTlLGsith2Qs3Dtjzw+H05TP9ST2SSulJixSurbWNqXpWkVarCgOF7bF41xFahk8URpsMrV8Ohg1pIkTLFy6V9re1JiZFpcWhpZEaibUBVquavVzR1Eg3y0irURXbnpFWAocDnJII1di7e5WWRaXGNS4uM0JEbIm1AWBF6+6uNEmhcZaa4191aa0ir2ykkWMSyGRvfB3FDEyChjDQxcdCeI0GU13GrEVc1c191aasa+1KlxKimYsf0UOwoTyCvlS18uSvmNXzGr5jUcTKaLFv/FD/xAApEQABBAADCAIDAQAAAAAAAAABAAIDEQQSMRATICEwQFBRFEEiMmFw/9oACAEDAQE/AfKvgcwX4eCLOt27eWjhf6iK8LDLuzaE8Z+1NiL5M2Pgc0X4FjWiP8hqpGZDwwx7xGN2ewjhQiKNcTRmNJ8Ffrz7eM04FGNpFLIBopy0u/Hgik3brQxEZ+1NiARTdr447y6LdPvTbh48xv0t1T8yMTGj+I68u2ZiHs5J+Jc4V0cPlz05GNpT6Asp7szr2RvMZsIYtv2FNPvOQ79jc7qT4i3n9bG4mQJ8rpNfCYaOzmTYSCfSdAxo8NDLuyvkxqebechpsgAskp8YIzNRjc3mR4bDZS1NY1uixDw38ffhmOLTyXypESTzPfUVlKo9KJmd1KSIfszTuQ33xZAi0jhq0VhmNIzIQgWpYmBvrt2j76JbwAVsilMei+W30pJTIb7YCz03C9g16I17JnUcOabrspZQi31wsR17FunUfxBuwtWRAUjr2LXV1H7AaQN8ZNdkFXpZvfSdwt0WfaTSJvswaQcCsoVFc+gW7QLTuQ7oEhZ1fRpZRsJvvbKzrOrHFdIuvwllZirP+E//xAAnEQABAwIGAgIDAQAAAAAAAAABAAIRAxIQICEwMUATUEFRBBQicP/aAAgBAgEBPwH2raod6eq+1XC2F5/TVGXhGk8fCp0fl2Daod6FxdfomOuGWo+1XC2F5ygZE5iYEptWeeu8S0q4q4qkHAa5KjLxCNJ4VOkZl2LXuiVe3Gs60K/+YQe5xQ6zqTXJtFrTOzVm2QrimyTATRaIwe0PEFH8dyp0rNe+42iU2oHYGiwptNrePSVnx/KNRNqvJ9NUp3heB6pU7NThVJjRNeZgoOB49NWkORcSqLSdfTOaHDVeBiAjQd6QrgpG091rZTH/AA7sl31muKDpyzCCrOIMLyJlRxPXcdkOyEzg9gev1ymMDNOsTA22nA8bJ46T9xp0TuMJVxQd95XIcdF3O4zMXYByvRMocdEtncZgRKIjOBPSKn7Vv1tNyu5VmIEoCOmRKLSFcpC02A7EmE3U9ogFWKNmVccAI7sK1WqDmiUBHpICtCgf4T//xAAxEAABAQUHBAIBAgcAAAAAAAABAAIQESAhEjAxUFFhcSIyQYFAkWADEyMzYnKAkKH/2gAIAQEABj8C/wACqD8QPKtj8PooYBwsfiGwUfw/l9B+G8UeVbH4EAQoXEdJIhQwDhYFfN/aCrmEGgoqBMEQJmt6T1wCjfQ0QPlwj5zHaZke57H3K0rTONzQwVTF1TFDjMGjMBtNa0miFAB1mzXVRuvQzD3MZgz7N17ujmDMo5RmjdNXTXOYDiUTE60fEi4auWec29GYM6PBVPKgoGVq59HMTK1xKES+hUSohRKHEjVy3xmJla4laN4RcnnMTK3xKN5wE0d3hbqFwzzmJlb4lhoJxtWSIXbVRRBZjFRmZG2YmVviQImdo7XA5mOYjiVriQnQXB3MkFB7I2lGZM8StcSNXDA9ycXLR2zJmU8GQbm4hpSRovCMp3OZHYv6WSVgAokhdwWIXhM9JVZh9yjc3PScyaGyiekLCJ3uKrthwuhr7XUy9o+pQNA9outt+cBJEI2VAVy+AUWqtX2h2Wo1TI1rIAiX8lW2sFDSaLKP3lsAq93wYihUC9praRhnxiVwiXxkh5Ncttn18GGrq46qDTgNaytSMj3JHLAPhcPgVZOKhpR4c0JOKP3auSNskta/CjrIGodQwkaL4jtdHSr9lG5J2TQ3yIBAfG4URgXkvqqURFrFd6pVWfJxuidUciG3wuJjs8saC4tDuD8CqiWAQZQ4yJo/Ghq5obOAUfBuSyyMV1VLqrpoV1B9trFw4yI8/BhKTI01s7cXFrzLVdq6WXnbIv6Soj4EbgobuiFvp8Ak+ETke2iofVzC64kaG6hpR8QrLY9rpMb79se8k0aUR9hQ/UruukzxZNlrVVDLS6oenxl5kaa9ymHCss4LuKxVhqu7sRcQHconJIsrfRaHZRZrwoNVWNnlUvYS09yQC/bHsyNNJo7OiyVXpMnU0FD9P7yeIUP1Kbu6mYroa+1SPpVgV1Ahd4liqKsXYfatHzLA+VAuorLOHk6qMgHnygxrJQrva+1Vo/eV0NNFXpL+pkFdsFiVRsr+c0qtkqC6pIOpgsCvP0sKOgV1duqgKMr+6S23jo4nM+krrEF0mMu8ncVVV8qv3JHVUwfUIQaK7/8Aiq0V0h1gYnNqLGPK6hBdLQdE4qiwWBWEuJUFs/B0JIlFo51RpdTMVWIVGhNg6LXl+KxVaugXRKic/o0VjFVZVYhdyoQtnUWCwWixKxVSv4eOqi0fwajRXeVisAu0LsC7QsYKpj/pQ//EAC0QAAEDAgUDBAIDAQEBAAAAAAEAESExURAgQWFxMFCBkaGx8EBgwdHx4YCQ/9oACAEBAAE/If8AwUUE5AqyIb9O1TNxIEY6/p70pNQnwAQEBO8T+mA5BDpuFOF36cEqENZnjE0Jy1UQR+giSidW6IMAapwwKQYs3XRTBiKrVN3+tAAhDJz0adCBW3x0XqVCicYBEIghj1RVCJBOiIADEduqTIYTi1CFRjDRAbRdDMHY1zQNcMRZAETdFFOWQOCboCqGPVBbnfZBKE2N2wVytK9AJOaF0/16Zh7KKFa8srXvhFoGD3REpjnKuYtkVcxb4VO5IRM1A9sBZMThFIcIZoWQ/wB5hAJKk/KJJEmpyAOEAeYXT2zJ1JxvEYaDlByEuqAt8XcKBvlCq9KWzbsPRBKrwzXTnH0sdwiHZ8os7gjdXOVjBpUpyuzmYvdDoiyLlG5rl3DTsOWttObf0GFSoI3CIbP8fo+2IyX7hp2Ay1NvizeKTzhWhDKELSUA7IxgA5OiIAMRocvw/no1DYnt3H3uX5uVpLcwoVTIA0VinOuUFVwjKuU73AcnxOjA33I7gKF7vpH4iwxBfIS60rAD2x0AdciT0YFuA+e4Che7y/V3GWBufI7AS63kLLeQsWSWKpJtBTjqCdngK5HuAXvcv1dxlo2Az1H0E4yRAEkJyhOFU4EgDgfNEWh95/nuNdfL9XcZGButwDnhZN9cSnISwUN4jlElkfhLencaq4dE4XB0BH0W/wByPIXIgSwpiJdQ5zKLu0BcolySde41eV83JEl2HQjtPdkpHkq46dgBliLfzjuUzWJGX6q2SG6HoV/oGSOybEWW6Nzb5BKotQe3cpchj8OCqnIK0OREcYUdJYFAXBQyeYS0ogwEc5hd6gl4RLkk5DA3MdewfKDlV7xsdUYp7jO6T10SvfJ0BAGAHlaMLwX9YlXGuKY+Ls85YG2Yw2TYb8wQOnuIEN/xHGjwirJLZGJj24YC5KYf6jrSwG8kwRslzQf4ZOTFuQcaIPmI0F1F6RwryOYYqsyaSPbSAA5KeciqfwDSaJqPDTRFIWIx4Awech9IBGjDAE5mpxDmxTFhQNy47ayG5P4L1hsGHDQhYLzfDcxfXziA5ZAiqRKJztk5I6OU66ZAaVJ2T5RYdssjqgAAAoPwa8WOp7Q2TGqkcwpiM/QScGotiA5AFSjDgKQeMfsadHmkR2R7Ovx/CmDcfI0DvUZPZOJWCVMPTUMnCEMBJNgnygaCw6LlsmyHYjWalBA6D8HQvCEBsnslAGri1cHEAMDhEXdxQbH4KyXogrmBQ2U+wW6Tw6kxvAdi9SPwvRyCWDoKzUynBrLFo2A9ARg/yYikN4VSByMpw1igCNAg7E5/D+CSwcoKjUzkk17ANwLDkxSao3R1VDhBgQWA1EQBgBU1/GTWY3wAJLAOVQu0W7I4zX/BSa/LwCBhV4w4gzATBN7oSGSDPlAsAI3RR4cFUoBvj6PdiM0dxDRXB/AmeIyPBTQMDQoGBuoK98AY8hRuNX4AdBA6MdqS/Y4lOtHtN0QMQGRUZShhUwgGDZDANJZSSpUxHEMUEONiHOHrNV37IIxIdXRyYgIiBllUHcZzvwaGgIodydlDENsUnQIGQlg5QVGssjwUAWuQ49RggucKm5Wl7iAy4J+VbwwEdReUCDIL56yD9kQhHJ7IHGYhRmNaSbbyHqMa1Iiz5wVV3EBAOTjboRF0AAABkieZyiTggFiyDAJTQekg1yOWIZeh7D04NChTHslAghxONMGyIYG3Ikk5Lnsw0UgjUJsmehAghwXCAxbkCrWyE5wHc1D+aGRHskqkeSEABwQcaIZHrThbmLFM0ByFzeiJqMF0fMJFW2QmBJTSj3It8ZvgwPI2RWjKj2WuIDlhVeVXJMhVJzkqwOCv9Kqo+e1jPrFFC+ZRAvTD3oAv4oKOiNNFwvGHvxzBTNMalClDfTIIDQ1K0W52FbgeMAKID9R4w1U6GyMCUNCdZ7F+UJTqXtiASWAcoxAOyxUVt6DjudfWsaI+OcELcOUyiSomU4WI4T0EQdx5KfJiOjMICDTAlqqp9gmurLIE1lQp8YNxCDkAAGCaoWu4hUFBvhJl/Yd2BE5EHZVZlK4e9VEeUwTVwjNzYpmvpT1WfWUDJxC4BtgbDcYYZIeS9XVTgcLIEEOCiAagHBCkAVUoaZDfxi6KTJ7zRFHJ5lAUOC+QKr284NIqaYQHldMFCDyn/wB0CHYDynvmbYECXEHZMP8AcJrHomGoknqufKnqboEGhT7eBdaO9Bbv9NHlGnIcgtN+CjqEaJHKqi8rU0e5VVqMWKu+9b1SsnkL6QiQOAblOQB0T8H9GoA8qhIANB5CGsRD/tL/AGEdES01wCNObl/8UP/aAAwDAQACAAMAAAAQCCS//DR99tBBBBR1+++++++++8xBBBBF995DX/6CCCC2/vDV99tBBJBBRx888885xBBBBBF999BH/wD4gqggkv8A8sHX321GqkIEEEEEEEEEEEEEX332EP8A/wCggvigglv/AMsHX32zD6IkEEEEEEEEEEF3332EN/8A6CCC+uCCC2//ACosfffVnYsCAQQQQRzTfffeYQ3/AP6IIIb764IILb+7d3rX1a/Hk03gk03sMzT3EEd//wCiCCG+2++KCCC2/O/hBV299e99OKf9/wBj+gQz/wD/AOiCCCe+S+++KCCCy/8A1T1ggYs8vjPfucYUih3/AP8A6CCCCe++CS+++KCCCS2V/qPLJahdCBqDDDL/AP8A/wDyCCCCe++6LCS+++OCCCC72v8A/wD1r9852Zr/APp//wAgggghvvvugrQwkvvvrigkiQl8unv/AOn+U3v/APtyCCCCCO+++6CD9tLCS2+++OCpCVCBCyyhylaHiCBCCCCGe+++yCDf999LDC2++++lCcJTCCCxCBCpCQJCCGe++++iCDf9R999LDCS2+62P888f7IhCZCvKPMP+++++yCCHd99BR999vDCCy188888885AOtK4+P3j+++yCCDP999xBBB1999PDU88888888j8P9pr1V496yCDBHf999hBtBBBR9999l88888888n8nWp8fvfCBCDTV9995BBB9tBBBBx9938888888708XEy/8880Mrz+d95hBBBN899JBBBBxe/888888v8AO/JwFuPPPPPPOOYQQQRXfdPPfbSQQQQ6d/8Az9/3/wA/8sd5FdZbz8wwBBBBN998AQ8899tJBBRjFHEyUnQGzgdp9hWxhwBBBBN99984AAA08899tNBBg18vro5/j0PfvfoBBBBFN99984gAOAAAQ088999NNBBBDJ0AATAQ/RBBFN999988wAAA+uIAAAQw8899999NNNNNOcuetN99999884wAAAAO+++uKAAAAw088899999999999998888wgAAAAO++C2+++uKAAAAAQw0888888888888wwAAAAAAO++++CCS2+++uOCAAAAAAAAAQwwAAAAAAAAAAGe++++yC/8QAJhEBAAICAgEDBAMBAAAAAAAAAQARITEQQUAgUWEwUHGRcIHRof/aAAgBAwEBPxD7r3B7/H2eyo5KiFOmDrZvrERI/ZU7w7ht4fmELvyzKzuT3+PsJRst+qmFGxyejqKmnJUB1mWdtvtojstnqrT3Guuh+/HBzQkwZiUOjVXLd/b/AHlj+07hN4fmXD/LN8Mx2Kz/ALMgE1NcEwaaMMQ4mbhTfv8AuEEaeMRRs+Z1YR5d8vtwFQwlRAU1H14zLqtXymWZI4qojvyHfBvkjge4fTPuOAau/wAzHPEfQbj5Dvg3z1EIunX9QAXK41sorfdxKa4fQb8l3wb5Yt2xgxa/8lo0o7jALoZorWz/ACFWg5PJd8G+XfJvgDayWS0pCkFu3PXku+DfBv0HFudTBVn6iqlrz15LKuF2p8Eo69HXBx1wAvUAKWP2eThgA16EHcU1wDx1wJASg0QT2FjmWEqLsHse78evL6DL8kSo8UL4SXT2hVlXLg10eNiPovA5RzDYIlkRGmdcPoNgjjwRi/onDKOUh3PglJfCuRbc3eCKH0GHB7zrBqmDZZ6AG+BdQUAUTNeDoMG9evvh46RjwOnroX4SBzBmXCmBBHXCXAqLUOO+NOXGJcTmw9xBHXA7R14aaTAMW1KdMvuQX2l5le0WoFSybYw4hjhFFgObfH0kB3AOo+01MQq5kisJmI7J8EwEuX5oWmC7lIPBHTKvM/PFfEeyN9jWk+afJFu/4J//xAAmEQEAAgICAgICAQUAAAAAAAABABEhMRBBQFEgYTBQkXBxgbHB/9oACAECAQE/EP2rVa9ff6fDKw3DPbg/WD+YIln6Uae4pDDR/iYCNVr/AL+hchVUy2n4dyuWYYZ7cPVqAA7+V16QqBpf48dAHqBt3mWOZQeZAiU1DUOS5bPUxCtXzhEw3G9hMNW+vUSgu/GcvTO8IcmuT3xX2SBiDuH2iVtrrlBYwkvWbYa8g1w65Yb+kxGn1w5dVMyMw+DqHkGuHXPcIWNkBBDJMDy+vqDZwfB15Jrh5IH2EQdT7RDUIBVbCe33H6V8vkmuHk1y64bC8OZsGKjcHPfkmuHXDr4PFAF8AU0c9+STUatz7JZ38O+Hjvi4EVaqf9+UlXfwFNQLcCDjvhAViUtjzq1FtYyQrlffj34PwErwwbhxYrgwHcbcJDKefBxTiEdKDTBEsnfB8HVoN+Cs1+F5s5QjU+yWtfE6KmrwVl+A5Z2iXZEpp+CJXCm4iIrZq8HcIlb+fXBx2hDhNvnYrwgpiVcGNsqIm+BqLcC48dcbcmcyoDAj6MRN8LpDHhhtMgQRuW7JXViHuViXDMcymahJmOeAEGR5o8faRXUUbh7m5mN1MQCMxBdM+yZWVK81DuJ6l4lETZLqf24v7h0Q/wBGoZ9U+iBdf0J//8QALRABAAECBAQGAwEBAQEBAAAAAREAITFBUWEQIHGBMFCRobHB0eHwQGDxgJD/2gAIAQEAAT8Q/wDgrIdKU7RP+OCBNKOZs+hFWaAgTOc6i6FQn/GQJS+JsJg0ZmiULzQB2zoiXPFpIY/4uY35FGD9vSmcAlMGB/xYxhRqKhUuFaLXtLHvPpxOA4xlTqI2/wCBFiiBIDhJj4L3EoCgeYXQLcDEmnAN2mgMkzKS4KUYnjpGPmAm6oZBxtakdZxLU8C8MF7wt7xxgRNWAI2TBq4kYhnUUXoJclNAkZ+LeKZfRI7e9IFxA+XYNAGSmgBjMFZK5AoO7CyocJiBnzb5E6YvwcZCOS0UPV0O9YiDgGRpyLYFi7BhSjwJBmi2mONsqmSCxu0mQcXKnheEpT5YoDyTF6MNndi35jm6oN3QPlxmhZk1DelthTyIu66O3KWKDCE6Xn6oH5pQwH5rAHPWQre8Chre8Cl4QisEEpis4SHV8sXcUJnFb1TWMK34g92frm6AvqflzEfJWa5CnKlJXkDcqOlQhMBpSs5YZEdKigXFdOCiRbiDvy5bxWMakTVukHt8wbTN3sB++USDVpWcl9Nvrmt+3qDgenKsuSI3a9m9x5hGDW9Sri0Y1hNR6CPrzDuMu68uyY9631H35TwJ9ApW809uY1cBGVKrLV4aJ9eDsGFb3r3fMLX+wcveHsvzLVXsYvAzKj7Zk4kdaRX579uXv4JGXAR6DNJRYrPmGLoHty43Ue/mtBq9S7wUS0pMRBRxBYDJmkpKgBdpQWKC5y2LqD2eDb+rjj3jzHD6Q5ca0+OPvlkzCZehepEzGsKoTOdO77kSFOHvm040PJNQBukQUQBmR2knksXVHv4PQsDqh8T5h7w5utXRe6H3y73O6eJDfisEtSJqxfr5Pri4hE4BTdBisRlD4O4jugJ+vMPeHh9BvVH2scRTCjqVPSkxUhmJepojMEHSeKFtkdYp3JhslOwXEaGpEYebfjfSwfD5goR0owfgoAlgpwfD7j757MnL0H6cQBGoICSNNvC3GbUtwoq0Qtiy5U642Qnfm6x3qfMT0g+3gwb1it7hOfrcHVB8Lxguz5LhVj/ojlCAJVgokxki9LD48xv1D9uW8c1/I8nWYOsW8C7Zkdgr8ORCLygqY0yEmcU5VIr10N7jPKEFPYRd9imvhUvmN+pj6Mct8Nfjn65Ouw+s/Xgd+11X4DkBPwC+xNKpXFvxs/mDl6sg6o+C+Zfwhx++W8dfnv1yWT9AR984KgErTITIQ9kfXJ6d+qx8Tx3TNb/LkCoKkmCOjYP2np5lZdH1EfXHAg1LPWv7A+k1pw5JxR91/wCa0HH9VPqv4VetaR9liu1SIugjmBYlXoCX4pnEqyvJvBuwI++IIvBl6UqquLyPGYqBQ3oS/wAalYERhHEfMe7U6ifujC6ZF3oUMIC3vbCgAgIOeKE0E1PLrH4LU92XZ+z8VMIOq9Rx3lDqL8Dy2Llnq3fnj0f77wipxYzXd4SIdKioXESiJIlybrRpgYMS4Fi9R1klNFKgRGEcR8uYq6AKBhQ9vFJJDhQbL8iDuYVLd6J30rdjHTB8PryTtYRLoVvvJxx9fZCoO6L2b8Veq3ZvnwUdfCUw4PZIQySJSNzgq1/a+WpgVAGdCSB9DY/wIE4Behg5xbI02pc+OHj/AO2iz4nkuZJJoLSLis4aBSqpWeAwyVhKAyd+MCDGt5vQGB6y+nlobeDka/4VJzB2Z+00WIqN8BaxP1UNRyGA1OG+EuhY4kAYrFFgWEu2FKBicnd83vY9j3oLBaVpKqD0QutW3gsaAWD08saAxy9CjLgID/C2zKTu/wB78VAxiz1T2EIG+5QLEiDtZ954yyS/pcHx4v8APFjUpAUh2SOgI+uL0PbL9vx4IQFzrBhSQo5eRxgvW6P8OF2rlx9Bl7cgLktBmhYpmWcc54k6MOBBIcGlSKyjLbgIlwRdTD3ikouKzwEEgbIxaeIyNAsHg9F71f1UZkCR08ibFRFEBYj/AAvDxcO/6oADAI5C65Qd39fNFZltGTnxV4tb7cU5ExEmnCM5KSrADBYWC8fHpTFidzSYyyLNMaLIc8jux9PCUVe30Kkxgz28ik6SB/xfRPd5ARWAlpgYjLv+qOBuh+/biMzdA3cfk8AqAU2y6cTpM1FXuPhylZLwVhKkUAhmJ9XyLocPt/hBsAJaYzjLktFoPQu/2/CeMh7cNBkTRS0KXRw8G/8AMAZDf0o0mq4HQoBAA0KihNEmiXp5ipE/Rke/AEpMApiQkXMn54ISMh8vkRGauf4bpZpehy7A/a/tuBkW8qkhRxK7AnVtQoiWSgNtwNTXwASGIth/7yuXrITUsdBApidiJeMaGwPSX8ivNUt03oGppE/wXlg+gckWkuAauVXNlC7q58Ly2rYJnvW/1fQsffCItkZJpQpYJcbn+BfoQqdmVLyO7szcw7aVDFrWJ4PrPM68qBxmH3RGMAjk2qT65ffIoEuoO7RqwEHbH3niYWeCMVPIuw21KsB2INzt4wwXGKex5ItVO4xGVqu8aTHOplRR/EEmdbtKTc7c7k4xmDRq3c0pU1JLUX3eN8/wy8hOkAS0wjhpbbenJAr56IPelUqyt3kEK3K4E3XsfNHFSSNnW6aVGQg0lUJvUXUJz5FiRrrwdhjcFAwBqM86Fwlj5NJgRKufknyhVs1OUAXsTptU/fdqepnU1m4FgdvxUCRLIYO/5qIG0bD1wo4BMFSPgGEoXE6GtYTAW5LTwfRP3ysDRMxsck5Ze27UM6bkOXTkZQsR6t3496uBCI6mx7tS6tEUhmr9QoAHMWB6NAEA4I8SldNUvpjQK8to79inLkZVbvkyNWkSiYOCHF10oEJLiMjUIS2QnfGnyldc9Sm5QziPWPuo0RMbj1KgRfWA+qiIi5P7VFGajPFQKsBjUgOgOVPkGw6NR4rufJatFWwn6oJY7G1HbH4qcY8Tky7cg4aCaZSgr1NEc26A14RIALowDVaNvW2QZbFPiZTxQAVMAZ1Lhd6j+ihcewjD3+ORWevhQJB/ZvQ8H6I+VwSbNd/So95csbo0AFCOZw9ZIVq6iWrlN96R+qJJ+pd81gjaDf5WojoaP1RUcC5fFJEtAcX4oRJGeChdp0lS1gGnekGCCYRRkmtXOjUDGep9ytIXRfioUgxcYbUIgjI4VCuBg4qhlF7GXYNaw7z1LVZ10BDox9+JpSWAJWhYf2LvSgVYC6tIK4+yw/PfzNEhdV6KhULrnpjULds3OVITkB80YlzN1cVpBIblM8le9Pauk9vxSxxCW8elAoJxGhkUYkyfyoCUJtwAKoDOojFlbowqSw950U3ADQ2alGIlCPX5e1DyQECBTMQ4z/rSlh2H5UX1xu+vAMFGD+L+bFSrBUNQIR5C/rUSPallETsJdRyYrYDNpEpOJttSCmWJk1gGd3Nf+RUmKdCkUYvQLTkTRiMHFZcEskmqj4qeR9z8Url3SYFItKeI9xUaSbUfBG5NbQ6UlInWL0pbTS/rkYq+GYtKkgPPTbzkVSKJmUbTiwfmqKCtVDUGTNk/FEnQKCJIibVhKbQ3qwTK3XVpIWQYCyVkV2Q1HiHpRajmKyqESYhZ2cLkNZRWWCUSZO91YzWCxHSkEIjCcFSNYRYYhvQsgm1Ib/JxonSBh4Dz9Wa4DYhFQLO3o9x4n4rDdtZQ89EFCRmXt/GBSARJHKso/wAsaixewrQ7yFaIGqy0RuFmZx7VPZcbUQmc1u0wjorH7pMx83/hRRkUdqyMtFWRDRvwvBPgooOK91f+ypxcuq0YgSqeO3T/APih/9k="); -} -#data-uri-ascii { - uri-1: url("data:text/html,%3Chtml%3E%3Ch1%3EThis%20page%20is%20100%25%20Awesome.%3C%2Fh1%3E%3C%2Fhtml%3E%0A"); - uri-2: url("data:text/html,%3Chtml%3E%3Ch1%3EThis%20page%20is%20100%25%20Awesome.%3C%2Fh1%3E%3C%2Fhtml%3E%0A"); -} -#file-functions { - uri: url('../data/data-uri-fail.png'); - svg-not-base-64: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20height%3D%22100%22%20width%3D%22100%22%3E%0A%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2240%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22blue%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); - size: 640px 430px; - width: 640px; - height: 430px; -} -#svg-functions { - background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23000000%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E'); - background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23000000%22%2F%3E%3Cstop%20offset%3D%223%25%22%20stop-color%3D%22%23ffa500%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E'); - background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%221%25%22%20stop-color%3D%22%23c4c4c4%22%2F%3E%3Cstop%20offset%3D%223%25%22%20stop-color%3D%22%23ffa500%22%2F%3E%3Cstop%20offset%3D%225%25%22%20stop-color%3D%22%23008000%22%2F%3E%3Cstop%20offset%3D%2295%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E'); -} -@font-face { - font-family: 'MyWebFont'; - src: url(webfont.eot); - src: url('webfont.eot?#iefix') format('embedded-opentype'), url('webfont.woff') format('woff'), format('truetype') url('webfont.ttf'), url('webfont.svg#svgFontName') format('svg'); -} diff --git a/node_modules/less/test/css/variables-in-at-rules.css b/node_modules/less/test/css/variables-in-at-rules.css deleted file mode 100644 index 0327eb1..0000000 --- a/node_modules/less/test/css/variables-in-at-rules.css +++ /dev/null @@ -1,18 +0,0 @@ -@charset "UTF-8"; -@namespace less "http://lesscss.org"; -@keyframes enlarger { - from { - font-size: 12px; - } - to { - font-size: 15px; - } -} -@-webkit-keyframes reducer { - from { - font-size: 13px; - } - to { - font-size: 10px; - } -} diff --git a/node_modules/less/test/css/variables.css b/node_modules/less/test/css/variables.css deleted file mode 100644 index 32e5a9d..0000000 --- a/node_modules/less/test/css/variables.css +++ /dev/null @@ -1,68 +0,0 @@ -.variables { - width: 14cm; -} -.variables { - height: 24px; - color: #888; - font-family: "Trebuchet MS", Verdana, sans-serif; - quotes: "~" "~"; -} -.redef { - zero: 0; -} -.redef .inition { - three: 3; -} -.values { - minus-one: -1; - font-family: 'Trebuchet', 'Trebuchet', 'Trebuchet'; - color: #888 !important; - same-color: #888 !important; - same-again: #888 !important; - multi-important: #888 #888, 'Trebuchet' !important; - multi: something 'A', B, C, 'Trebuchet'; -} -.variable-names .quoted { - name: 'hello'; -} -.variable-names .unquoted { - name: 'hello'; -} -.variable-names .color-keyword { - name: 'hello'; -} -.alpha { - filter: alpha(opacity=42); -} -.testPollution { - a: 'no-pollution'; -} -.units { - width: 1px; - same-unit-as-previously: 1px; - square-pixel-divided: 1px; - odd-unit: 2; - percentage: 500%; - pixels: 500px; - conversion-metric-a: 30mm; - conversion-metric-b: 3cm; - conversion-imperial: 3in; - custom-unit: 420octocats; - custom-unit-cancelling: 18dogs; - mix-units: 2px; - invalid-units: 1px; -} -.units .fallback { - div-px-1: 10px; - div-px-2: 1px; - sub-px-1: 12.6px; - sub-cm-1: 9.666625cm; - mul-px-1: 19.6px; - mul-em-1: 19.6em; - mul-em-2: 196em; - mul-cm-1: 196cm; - add-px-1: 15.4px; - add-px-2: 393.35275591px; - mul-px-2: 140px; - mul-px-3: 140px; -} diff --git a/node_modules/less/test/css/visitorPlugin/visitor.css b/node_modules/less/test/css/visitorPlugin/visitor.css deleted file mode 100644 index 6446ebf..0000000 --- a/node_modules/less/test/css/visitorPlugin/visitor.css +++ /dev/null @@ -1,3 +0,0 @@ -.test { - color: red; -} diff --git a/node_modules/less/test/css/whitespace.css b/node_modules/less/test/css/whitespace.css deleted file mode 100644 index 38ad81c..0000000 --- a/node_modules/less/test/css/whitespace.css +++ /dev/null @@ -1,42 +0,0 @@ -.whitespace { - color: white; -} -.whitespace { - color: white; -} -.whitespace { - color: white; -} -.whitespace { - color: white; -} -.whitespace { - color: white ; -} -.white, -.space, -.mania { - color: white; -} -.no-semi-column { - color: white; -} -.no-semi-column { - color: white; - white-space: pre; -} -.no-semi-column { - border: 2px solid white; -} -.newlines { - background: the, - great, - wall; - border: 2px - solid - black; -} -.sel .newline_ws .tab_ws { - color: white; - background-position: 45 -23; -} diff --git a/node_modules/less/test/data/data-uri-fail.png b/node_modules/less/test/data/data-uri-fail.png deleted file mode 100644 index f91b59f..0000000 Binary files a/node_modules/less/test/data/data-uri-fail.png and /dev/null differ diff --git a/node_modules/less/test/data/image.jpg b/node_modules/less/test/data/image.jpg deleted file mode 100644 index 5138919..0000000 Binary files a/node_modules/less/test/data/image.jpg and /dev/null differ diff --git a/node_modules/less/test/data/image.svg b/node_modules/less/test/data/image.svg deleted file mode 100644 index 0d69314..0000000 --- a/node_modules/less/test/data/image.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/node_modules/less/test/data/page.html b/node_modules/less/test/data/page.html deleted file mode 100644 index 597f1ed..0000000 --- a/node_modules/less/test/data/page.html +++ /dev/null @@ -1 +0,0 @@ -

    This page is 100% Awesome.

    diff --git a/node_modules/less/test/index.js b/node_modules/less/test/index.js deleted file mode 100644 index a7aab0e..0000000 --- a/node_modules/less/test/index.js +++ /dev/null @@ -1,59 +0,0 @@ -var lessTest = require("./less-test"), - lessTester = lessTest(), - path = require("path"), - stylize = require('../lib/less-node/lessc-helper').stylize; - -function getErrorPathReplacementFunction(dir) { - return function(input, baseDir) { - return input.replace(/\{path\}/g, path.join(process.cwd(), baseDir, dir + "/")) - .replace(/\{node\}/g, "") - .replace(/\{\/node\}/g, "") - .replace(/\{pathrel\}/g, path.join(baseDir, dir + "/")) - .replace(/\{pathhref\}/g, "") - .replace(/\{404status\}/g, "") - .replace(/\r\n/g, '\n'); - }; -} - -console.log("\n" + stylize("Less", 'underline') + "\n"); -lessTester.prepBomTest(); -lessTester.runTestSet({strictMath: true, relativeUrls: true, silent: true}); -lessTester.runTestSet({strictMath: true, strictUnits: true}, "errors/", - lessTester.testErrors, null, getErrorPathReplacementFunction("errors")); -lessTester.runTestSet({strictMath: true, strictUnits: true, javascriptEnabled: false}, "no-js-errors/", - lessTester.testErrors, null, getErrorPathReplacementFunction("no-js-errors")); -lessTester.runTestSet({strictMath: true, dumpLineNumbers: 'comments'}, "debug/", null, - function(name) { return name + '-comments'; }); -lessTester.runTestSet({strictMath: true, dumpLineNumbers: 'mediaquery'}, "debug/", null, - function(name) { return name + '-mediaquery'; }); -lessTester.runTestSet({strictMath: true, dumpLineNumbers: 'all'}, "debug/", null, - function(name) { return name + '-all'; }); -lessTester.runTestSet({strictMath: true, relativeUrls: false, rootpath: "folder (1)/"}, "static-urls/"); -lessTester.runTestSet({strictMath: true, compress: true}, "compression/"); -lessTester.runTestSet({strictMath: true, strictUnits: true}, "strict-units/"); -lessTester.runTestSet({}, "legacy/"); -lessTester.runTestSet({strictMath: true, strictUnits: true, sourceMap: true, globalVars: true }, "sourcemaps/", - lessTester.testSourcemap, null, null, - function(filename, type, baseFolder) { - if (type === "vars") { - return path.join(baseFolder, filename) + '.json'; - } - return path.join('test/sourcemaps', filename) + '.json'; - }); -lessTester.runTestSet({strictMath: true, strictUnits: true, sourceMap: {sourceMapFileInline: true}}, "sourcemaps-empty/", lessTester.testEmptySourcemap); -lessTester.runTestSet({globalVars: true, banner: "/**\n * Test\n */\n"}, "globalVars/", - null, null, null, function(name, type, baseFolder) { return path.join(baseFolder, name) + '.json'; }); -lessTester.runTestSet({modifyVars: true}, "modifyVars/", - null, null, null, function(name, type, baseFolder) { return path.join(baseFolder, name) + '.json'; }); -lessTester.runTestSet({urlArgs: '424242'}, "url-args/"); -lessTester.runTestSet({paths: ['test/data/', 'test/less/import/']}, "include-path/"); -lessTester.runTestSet({paths: 'test/data/'}, "include-path-string/"); -lessTester.runTestSet({plugin: 'test/plugins/postprocess/'}, "postProcessorPlugin/"); -lessTester.runTestSet({plugin: 'test/plugins/preprocess/'}, "preProcessorPlugin/"); -lessTester.runTestSet({plugin: 'test/plugins/visitor/'}, "visitorPlugin/"); -lessTester.runTestSet({plugin: 'test/plugins/filemanager/'}, "filemanagerPlugin/"); -lessTester.runTestSet({}, "no-strict-math/"); -lessTester.testSyncronous({syncImport: true}, "import"); -lessTester.testSyncronous({syncImport: true}, "css"); -lessTester.testNoOptions(); -lessTester.finished(); diff --git a/node_modules/less/test/less-bom/charsets.less b/node_modules/less/test/less-bom/charsets.less deleted file mode 100644 index 6887e73..0000000 --- a/node_modules/less/test/less-bom/charsets.less +++ /dev/null @@ -1,3 +0,0 @@ -@charset "UTF-8"; - -@import "import/import-charset-test"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/colors.less b/node_modules/less/test/less-bom/colors.less deleted file mode 100644 index b54dfdd..0000000 --- a/node_modules/less/test/less-bom/colors.less +++ /dev/null @@ -1,98 +0,0 @@ -#yelow { - #short { - color: #fea; - } - #long { - color: #ffeeaa; - } - #rgba { - color: rgba(255, 238, 170, 0.1); - } - #argb { - color: argb(rgba(255, 238, 170, 0.1)); - } -} - -#blue { - #short { - color: #00f; - } - #long { - color: #0000ff; - } - #rgba { - color: rgba(0, 0, 255, 0.1); - } - #argb { - color: argb(rgba(0, 0, 255, 0.1)); - } -} - -#alpha #hsla { - color: hsla(11, 20%, 20%, 0.6); -} - -#overflow { - .a { color: (#111111 - #444444); } // #000000 - .b { color: (#eee + #fff); } // #ffffff - .c { color: (#aaa * 3); } // #ffffff - .d { color: (#00ee00 + #009900); } // #00ff00 - .e { color: rgba(-99.9, 31.4159, 321, 0.42); } -} - -#grey { - color: rgb(200, 200, 200); -} - -#333333 { - color: rgb(20%, 20%, 20%); -} - -#808080 { - color: hsl(50, 0%, 50%); -} - -#00ff00 { - color: hsl(120, 100%, 50%); -} - -.lightenblue { - color: lighten(blue, 10%); -} - -.darkenblue { - color: darken(blue, 10%); -} - -.unknowncolors { - color: blue2; - border: 2px solid superred; -} - -.transparent { - color: transparent; - background-color: rgba(0, 0, 0, 0); -} -#alpha { - @colorvar: rgba(150, 200, 150, 0.7); - #fromvar { - opacity: alpha(@colorvar); - } - #short { - opacity: alpha(#aaa); - } - #long { - opacity: alpha(#bababa); - } - #rgba { - opacity: alpha(rgba(50, 120, 95, 0.2)); - } - #hsl { - opacity: alpha(hsl(120, 100%, 50%)); - } -} - -#percentage { - color: red(rgb(100%, 0, 0)); - border-color: rgba(100%, 0, 0, 50%); -} diff --git a/node_modules/less/test/less-bom/comments.less b/node_modules/less/test/less-bom/comments.less deleted file mode 100644 index ec8feb8..0000000 --- a/node_modules/less/test/less-bom/comments.less +++ /dev/null @@ -1,102 +0,0 @@ -/******************\ -* * -* Comment Header * -* * -\******************/ - -/* - - Comment - -*/ - -/* - * Comment Test - * - * - cloudhead (http://cloudhead.net) - * - */ - -//////////////// -@var: "content"; -//////////////// - -/* Colors - * ------ - * #EDF8FC (background blue) - * #166C89 (darkest blue) - * - * Text: - * #333 (standard text) // A comment within a comment! - * #1F9EC9 (standard link) - * - */ - -/* @group Variables -------------------- */ -#comments /* boo *//* boo again*/, -//.commented_out1 -//.commented_out2 -//.commented_out3 -.comments //end of comments1 -//end of comments2 -{ - /**/ // An empty comment - color: red; /* A C-style comment */ /* A C-style comment */ - background-color: orange; // A little comment - font-size: 12px; - - /* lost comment */ content: @var; - - border: 1px solid black; - - // padding & margin // - padding: 0; // }{ '" - margin: 2em; -} // - -/* commented out - #more-comments { - color: grey; - } -*/ - -.selector /* .with */, .lots, /* of */ .comments { - color/* survive */ /* me too */: grey, /* blue */ orange; - -webkit-border-radius: 2px /* webkit only */; - -moz-border-radius: (2px * 4) /* moz only with operation */; -} - -.mixin_def_with_colors(@a: white, // in - @b: 1px //put in @b - causes problems! ---> - ) // the - when (@a = white) { - .test { - color: @b; - } -} -.mixin_def_with_colors(); - -// .s when -//R/2 - -.sr-only-focusable { - clip: auto; -} - -@-webkit-keyframes /* Safari */ hover /* and Chrome */ { - 0% { - color: red; - } -} - -#last { color: blue } -// - -/* *//* { *//* *//* *//* */#div { color:#A33; }/* } */ - -// line immediately followed -/*by block */ -@string_w_comment: ~"/* // Not commented out // */"; -#output-block { comment: @string_w_comment; } -/*comment on last line*/ \ No newline at end of file diff --git a/node_modules/less/test/less-bom/comments2.less b/node_modules/less/test/less-bom/comments2.less deleted file mode 100644 index 7855c33..0000000 --- a/node_modules/less/test/less-bom/comments2.less +++ /dev/null @@ -1,31 +0,0 @@ -@media all and/*! */(max-width:1024px) {} -@-webkit-keyframes hover /* Safari and Chrome */{ } -.bg { - background-image: linear-gradient(#333 /*{comment}*/, #111); -} -#planadvisor, -/*comment*//*comment*/ -.first,/*comment*//*comment*/.planning { - margin:10px; - total-width: @total-width; -} -@base : 1; -@column-width : @base * 6em; // Width of column */ -@gutter-width : 2em; // Width of column spacing */ -@columns : 12; // Number of Columns */ -@gridsystem-width : (@column-width * // For calculating the total */ - @columns) + ( // width of the content area. */ - @gutter-width * // We strongly recommend you */ - @columns); // do not change this formula. */ -@total-width : @gridsystem-width; // set to 100% for fluid grid */ - -// ............................................................................. - -.some-inline-comments { - a: yes /* comment */; - b: red /* comment */; - @c: yes /* comment */; - @d: red /* comment */; - c: @c; - d: @d; -} diff --git a/node_modules/less/test/less-bom/compression/compression.less b/node_modules/less/test/less-bom/compression/compression.less deleted file mode 100644 index 9b2f701..0000000 --- a/node_modules/less/test/less-bom/compression/compression.less +++ /dev/null @@ -1,36 +0,0 @@ -#colours { - color1: #fea; - color2: #ffeeaa; - color3: rgba(255, 238, 170, 0.1); - @color1: #fea; - string: "@{color1}"; - /* comments are stripped */ - // both types! - /*! but not this type - Note preserved whitespace - */ -} -dimensions { - val: 0.1px; - val: 0em; - val: 4cm; - val: 0.2; - val: 5; - angles-must-have-unit: 0deg; - durations-must-have-unit: 0s; - length-doesnt-have-unit: 0px; - width: auto\9; -} -@page { - marks: none; -@top-left-corner { - vertical-align: top; -} -@top-left { - vertical-align: top; -} -} -.shadow ^ .dom, -body ^^ .shadow { - display: done; -} diff --git a/node_modules/less/test/less-bom/css-3.less b/node_modules/less/test/less-bom/css-3.less deleted file mode 100644 index 1a5aa81..0000000 --- a/node_modules/less/test/less-bom/css-3.less +++ /dev/null @@ -1,162 +0,0 @@ -.comma-delimited { - text-shadow: -1px -1px 1px red, 6px 5px 5px yellow; - -moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset, - 0pt 4px 6px rgba(255, 255, 255, 0.4) inset; - -webkit-transform: rotate(-0.0000000001deg); -} -@font-face { - font-family: Headline; - unicode-range: U+??????, U+0???, U+0-7F, U+A5; -} -.other { - -moz-transform: translate(0, 11em) rotate(-90deg); - transform: rotateX(45deg); -} -.item[data-cra_zy-attr1b-ut3=bold] { - font-weight: bold; -} -p:not([class*="lead"]) { - color: black; -} - -input[type="text"].class#id[attr=32]:not(1) { - color: white; -} - -div#id.class[a=1][b=2].class:not(1) { - color: white; -} - -ul.comma > li:not(:only-child)::after { - color: white; -} - -ol.comma > li:nth-last-child(2)::after { - color: white; -} - -li:nth-child(4n+1), -li:nth-child(-5n), -li:nth-child(-n+2) { - color: white; -} - -a[href^="http://"] { - color: black; -} - -a[href$="http://"] { - color: black; -} - -form[data-disabled] { - color: black; -} - -p::before { - color: black; -} - -#issue322 { - -webkit-animation: anim2 7s infinite ease-in-out; -} - -@-webkit-keyframes frames { - 0% { border: 1px } - 5.5% { border: 2px } - 100% { border: 3px } -} - -@keyframes fontbulger1 { - to { - font-size: 15px; - } - from,to { - font-size: 12px; - } - 0%,100% { - font-size: 12px; - } -} - -.units { - font: 1.2rem/2rem; - font: 8vw/9vw; - font: 10vh/12vh; - font: 12vm/15vm; - font: 12vmin/15vmin; - font: 1.2ch/1.5ch; -} - -@supports ( box-shadow: 2px 2px 2px black ) or - ( -moz-box-shadow: 2px 2px 2px black ) { - .outline { - box-shadow: 2px 2px 2px black; - -moz-box-shadow: 2px 2px 2px black; - } -} - -@-x-document url-prefix(""github.com"") { - h1 { - color: red; - } -} - -@viewport { - font-size: 10px; -} -@namespace foo url(http://www.example.com); - -foo|h1 { color: blue; } -foo|* { color: yellow; } -|h1 { color: red; } -*|h1 { color: green; } -h1 { color: green; } -.upper-test { - UpperCaseProperties: allowed; -} -@host { - div { - display: block; - } -} -::distributed(input::placeholder) { - color: #b3b3b3; -} -.shadow ^ .dom, -body ^^ .shadow { - display: done; -} - -:host(.sel .a), -:host-context(.sel .b), -.sel /deep/ .b, -::content .sel { - type: shadow-dom; -} -/deep/ b { - c: 'd'; - &[e]{ - f: 'g'; - } -} - -#issue2066 { - background: url('/images/icon-team.svg') 0 0 / contain; -} - -@counter-style triangle { - system: cyclic; - symbols: ‣; - suffix: " "; -} - -@-ms-viewport{ - // width: auto !important; -} - -@unknown foo 42 (bar) { - x {y: z} -} - -@unknown foo 43; diff --git a/node_modules/less/test/less-bom/css-escapes.less b/node_modules/less/test/less-bom/css-escapes.less deleted file mode 100644 index 080ac07..0000000 --- a/node_modules/less/test/less-bom/css-escapes.less +++ /dev/null @@ -1,33 +0,0 @@ -@ugly: fuchsia; - -.escape\|random\|char { - color: red; -} - -.mixin\!tUp { - font-weight: bold; -} - -// class="404" -.\34 04 { - background: red; - - strong { - color: @ugly; - .mixin\!tUp; - } -} - -.trailingTest\+ { - color: red; -} - -/* This hideous test of hideousness checks for the selector "blockquote" with various permutations of hex escapes */ -\62\6c\6f \63 \6B \0071 \000075o\74 e { - color: silver; -} - -[ng\:cloak], -ng\:form { - display: none; -} diff --git a/node_modules/less/test/less-bom/css-guards.less b/node_modules/less/test/less-bom/css-guards.less deleted file mode 100644 index 37c953c..0000000 --- a/node_modules/less/test/less-bom/css-guards.less +++ /dev/null @@ -1,103 +0,0 @@ - -.light when (lightness(@a) > 50%) { - color: green; -} -.dark when (lightness(@a) < 50%) { - color: orange; -} -@a: #ddd; - -.see-the { - @a: #444; // this mirrors what mixins do - they evaluate the guards at the point of definition - .light(); - .dark(); -} - -.hide-the { - .light(); - .dark(); -} - -.multiple-conditions-1 when (@b = 1), (@c = 2), (@d = 3) { - color: red; -} - -.multiple-conditions-2 when (@b = 1), (@c = 2), (@d = 2) { - color: blue; -} - -@b: 2; -@c: 3; -@d: 3; - -.inheritance when (@b = 2) { - .test { - color: black; - } - &:hover { - color: pink; - } - .hideme when (@b = 1) { - color: green; - } - & when (@b = 1) { - hideme: green; - } -} - -.hideme when (@b = 1) { - .test { - color: black; - } - &:hover { - color: pink; - } - .hideme when (@b = 1) { - color: green; - } -} - -& when (@b = 1) { - .hideme { - color: red; - } -} - -.mixin-with-guard-inside(@colWidth) { - // selector with guard (applies also to & when() ...) - .clsWithGuard when (@colWidth <= 0) { - dispaly: none; - } -} - -.mixin-with-guard-inside(0px); - -.dont-split-me-up { - width: 1px; - & when (@c = 3) { - color: red; - } - & when (@c = 3) { - height: 1px; - } - + & when (@c = 3) { // creates invalid css but tests that we don't fold it in - sibling: true; - } -} - -.scope-check when (@c = 3) { - @k: 1px; - & when (@c = 3) { - @k: 2px; - sub-prop: @k; - } - prop: @k; -} -.scope-check-2 { - .scope-check(); - @k:4px; -} -.errors-if-called when (@c = never) { - .mixin-doesnt-exist(); -} -a:hover when (2 = true) {5:-} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/css.less b/node_modules/less/test/less-bom/css.less deleted file mode 100644 index ac8bf7d..0000000 --- a/node_modules/less/test/less-bom/css.less +++ /dev/null @@ -1,108 +0,0 @@ -@charset "utf-8"; -div { color: black; } -div { width: 99%; } - -* { - min-width: 45em; -} - -h1, h2 > a > p, h3 { - color: none; -} - -div.class { - color: blue; -} - -div#id { - color: green; -} - -.class#id { - color: purple; -} - -.one.two.three { - color: grey; -} - -@media print { - * { - font-size: 3em; - } -} - -@media screen { - * { - font-size: 10px; - } -} - -@font-face { - font-family: 'Garamond Pro'; -} - -a:hover, a:link { - color: #999; -} - -p, p:first-child { - text-transform: none; -} - -q:lang(no) { - quotes: none; -} - -p + h1 { - font-size: +2.2em; -} - -#shorthands { - border: 1px solid #000; - font: 12px/16px Arial; - font: 100%/16px Arial; - margin: 1px 0; - padding: 0 auto; -} - -#more-shorthands { - margin: 0; - padding: 1px 0 2px 0; - font: normal small/20px 'Trebuchet MS', Verdana, sans-serif; - font: 0/0 a; - border-radius: 5px / 10px; -} - -.misc { - -moz-border-radius: 2px; - display: -moz-inline-stack; - width: .1em; - background-color: #009998; - background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue)); - margin: ; - .nested-multiple { - multiple-semi-colons: yes;;;;;; - }; - filter: alpha(opacity=100); - width: auto\9; -} - -#important { - color: red !important; - width: 100%!important; - height: 20px ! important; -} - -.def-font(@name) { - @font-face { - font-family: @name - } -} - -.def-font(font-a); -.def-font(font-b); - -.æøå { - margin: 0; -} diff --git a/node_modules/less/test/less-bom/debug/import/test.less b/node_modules/less/test/less-bom/debug/import/test.less deleted file mode 100644 index 0ed49a6..0000000 --- a/node_modules/less/test/less-bom/debug/import/test.less +++ /dev/null @@ -1,25 +0,0 @@ -@charset "ISO-8859-1"; - -.mixin_import1() { - @media all { - .tst { - color: black; - @media screen { - color: red; - .tst3 { - color: white; - } - } - } - } -} - -.mixin_import2() { - .tst2 { - color: white; - } -} - -.tst3 { - color: grey; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/debug/linenumbers.less b/node_modules/less/test/less-bom/debug/linenumbers.less deleted file mode 100644 index 75739fb..0000000 --- a/node_modules/less/test/less-bom/debug/linenumbers.less +++ /dev/null @@ -1,33 +0,0 @@ -@charset "UTF-8"; - -@import "import/test.less"; - -.start() { - .test2 { - color: red; - } -} - -.mix() { - color: black; -} - -.test1 { - .mix(); -} - -.start(); - -.mixin_import1(); - -.mixin_import2(); - -@debug: 1; -& when (@debug = 1) { - .test { - color: red; - & when (@debug = 1) { - width: 2; - } - } -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/detached-rulesets.less b/node_modules/less/test/less-bom/detached-rulesets.less deleted file mode 100644 index cadb4af..0000000 --- a/node_modules/less/test/less-bom/detached-rulesets.less +++ /dev/null @@ -1,112 +0,0 @@ -@ruleset: { - color: black; - background: white; - }; - -@a: 1px; -.wrap-mixin(@ruleset) { - @a: hidden and if you see this in the output its a bug; - @b: visible; - @d: magic-frame; // same behaviour as mixin calls - falls back to this frame - .wrap-selector { - @c: visible; - @ruleset(); - visible-one: @b; - visible-two: @c; - } -}; - -.wrap-mixin({ - color: black; - one: @a; - @b: hidden and if you see this in the output its a bug; - @c: hidden and if you see this in the output its a bug; - four: @d; -}); - -.wrap-mixin(@ruleset: { - color: red; -}); - -.wrap-mixin(@ruleset); - -.desktop-and-old-ie(@rules) { - @media screen and (min-width: 1200) { @rules(); } - html.lt-ie9 & { @rules(); } -} - -header { - background: blue; - - .desktop-and-old-ie({ - background: red; - }); -} - -.wrap-mixin-calls-wrap(@ruleset) { - .wrap-mixin(@ruleset); -}; - -.wrap-mixin({ - test: extra-wrap; - .wrap-mixin-calls-wrap({ - test: wrapped-twice; - }); -}); - -.wrap-mixin({ - test-func: unit(90px); - test-arithmetic: unit((9+9), px); -}); -// without mixins -@ruleset-2: { - b: 1; -}; -.without-mixins { - @ruleset-2(); -} -@my-ruleset: { - .my-selector { - @media tv { - background-color: black; - } - } - }; -@media (orientation:portrait) { - @my-ruleset(); - .wrap-media-mixin({ - @media tv { - .triple-wrapped-mq { - triple: true; - } - } - }); -} -.wrap-media-mixin(@ruleset) { - @media widescreen { - @media print { - @ruleset(); - } - @ruleset(); - } - @ruleset(); -} -// unlocking mixins -@my-mixins: { - .mixin() { - test: test; - } -}; -@my-mixins(); -.a { - .mixin(); -} -// as mixin argument default -.mixin-definition(@a: {}; @b: {default: works;};) { - @a(); - @b(); -} -.argument-default { - .mixin-definition(); - .mixin-definition({direct: works;}; @b: {named: works;}); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/directives-bubling.less b/node_modules/less/test/less-bom/directives-bubling.less deleted file mode 100644 index 26591e7..0000000 --- a/node_modules/less/test/less-bom/directives-bubling.less +++ /dev/null @@ -1,142 +0,0 @@ -//simple case: @document -.parent { - color:green; - - @document url-prefix() { - .child { - color:red; - } - } -} - -//selectors joinings test -.top { - @supports (sandwitch: butter) { - .inside & { - property: value; - } - } -} - -@supports (sandwitch: bread) { - .in1 { - .in2 { - property: value; - } - } -} - -.top { - .inside & { - @supports (sandwitch: ham) { - property: value; - } - } -} - -//combined with @font-face which has different kind of body -@supports (font-family: weirdFont) { - @font-face { - font-family: something; - src: made-up-url; - } -} - -@font-face { - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - font-family: something; - src: made-up-url; - } -} - -//bubling through media -@supports (property: value) { - .outOfMedia & { - @media (max-size: 2px) { - @supports (whatever: something) { - property: value; - } - } - } -} - -.onTop & { - @supports (property: value) { - @media (max-size: 2px) { - @supports (whatever: something) { - property: value; - } - } - } -} - - -//long combination of supports and media -@media print { - html { - in-html: visible; - @supports (upper: test) { - in-supports: first; - div { - in-div: visible; - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - in-supports: second; - @media screen { - font-weight: 400; - nested { - property: value; - } - } - } - } - } - } -} - -//another long combination of supports and media -@media print { - @media (max-size: 2px) { - .in1 { - stay: here; - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - .in2 & { - @supports (whatever: something) { - property: value; - } - } - } - } - } -} - -//called from mixin -.nestedSupportsMixin() { - font-weight: 300; - -webkit-font-smoothing: subpixel-antialiased; - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - font-weight: 400; - nested { - property: value; - } - } -} - -html { - .nestedSupportsMixin; -} - -// selectors should not propagate into all directive types -.onTop { - @font-face { - font-family: something; - src: made-up-url; - } - - @keyframes "textscale" { - 0% { font-size : 1em; } - 100% { font-size : 2em; } - } - - animation : "textscale"; - font-family : something; -} diff --git a/node_modules/less/test/less-bom/empty.less b/node_modules/less/test/less-bom/empty.less deleted file mode 100644 index 5f28270..0000000 --- a/node_modules/less/test/less-bom/empty.less +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/add-mixed-units.less b/node_modules/less/test/less-bom/errors/add-mixed-units.less deleted file mode 100644 index 5698341..0000000 --- a/node_modules/less/test/less-bom/errors/add-mixed-units.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - error: (1px + 3em); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/add-mixed-units.txt b/node_modules/less/test/less-bom/errors/add-mixed-units.txt deleted file mode 100644 index 9ea4543..0000000 --- a/node_modules/less/test/less-bom/errors/add-mixed-units.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px' and 'em'. in {path}add-mixed-units.less on line 2, column 3: -1 .a { -2 error: (1px + 3em); -3 } diff --git a/node_modules/less/test/less-bom/errors/add-mixed-units2.less b/node_modules/less/test/less-bom/errors/add-mixed-units2.less deleted file mode 100644 index c15c636..0000000 --- a/node_modules/less/test/less-bom/errors/add-mixed-units2.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - error: ((1px * 2px) + (3em * 3px)); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/add-mixed-units2.txt b/node_modules/less/test/less-bom/errors/add-mixed-units2.txt deleted file mode 100644 index ca34304..0000000 --- a/node_modules/less/test/less-bom/errors/add-mixed-units2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px*px' and 'em*px'. in {path}add-mixed-units2.less on line 2, column 3: -1 .a { -2 error: ((1px * 2px) + (3em * 3px)); -3 } diff --git a/node_modules/less/test/less-bom/errors/at-rules-undefined-var.less b/node_modules/less/test/less-bom/errors/at-rules-undefined-var.less deleted file mode 100644 index 2aa8177..0000000 --- a/node_modules/less/test/less-bom/errors/at-rules-undefined-var.less +++ /dev/null @@ -1,4 +0,0 @@ - -@keyframes @name { - 50% {width: 20px;} -} diff --git a/node_modules/less/test/less-bom/errors/at-rules-undefined-var.txt b/node_modules/less/test/less-bom/errors/at-rules-undefined-var.txt deleted file mode 100644 index 240540a..0000000 --- a/node_modules/less/test/less-bom/errors/at-rules-undefined-var.txt +++ /dev/null @@ -1,4 +0,0 @@ -NameError: variable @name is undefined in {path}at-rules-undefined-var.less on line 2, column 12: -1 -2 @keyframes @name { -3 50% {width: 20px;} diff --git a/node_modules/less/test/less-bom/errors/bad-variable-declaration1.less b/node_modules/less/test/less-bom/errors/bad-variable-declaration1.less deleted file mode 100644 index 7d27557..0000000 --- a/node_modules/less/test/less-bom/errors/bad-variable-declaration1.less +++ /dev/null @@ -1 +0,0 @@ -@@demo: "hi"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/bad-variable-declaration1.txt b/node_modules/less/test/less-bom/errors/bad-variable-declaration1.txt deleted file mode 100644 index 5ae9d4a..0000000 --- a/node_modules/less/test/less-bom/errors/bad-variable-declaration1.txt +++ /dev/null @@ -1,2 +0,0 @@ -ParseError: Unrecognised input in {path}bad-variable-declaration1.less on line 1, column 1: -1 @@demo: "hi"; diff --git a/node_modules/less/test/less-bom/errors/color-func-invalid-color.less b/node_modules/less/test/less-bom/errors/color-func-invalid-color.less deleted file mode 100644 index aa2a5e5..0000000 --- a/node_modules/less/test/less-bom/errors/color-func-invalid-color.less +++ /dev/null @@ -1,3 +0,0 @@ -.test { - color: color("NOT A COLOR"); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/color-func-invalid-color.txt b/node_modules/less/test/less-bom/errors/color-func-invalid-color.txt deleted file mode 100644 index 08990c3..0000000 --- a/node_modules/less/test/less-bom/errors/color-func-invalid-color.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `color`: argument must be a color keyword or 3/6 digit hex e.g. #FFF in {path}color-func-invalid-color.less on line 2, column 10: -1 .test { -2 color: color("NOT A COLOR"); -3 } diff --git a/node_modules/less/test/less-bom/errors/color-invalid-hex-code.less b/node_modules/less/test/less-bom/errors/color-invalid-hex-code.less deleted file mode 100644 index 4377eba..0000000 --- a/node_modules/less/test/less-bom/errors/color-invalid-hex-code.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - @wrongHEXColorCode: #DCALLB; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/color-invalid-hex-code.txt b/node_modules/less/test/less-bom/errors/color-invalid-hex-code.txt deleted file mode 100644 index 0f8a82c..0000000 --- a/node_modules/less/test/less-bom/errors/color-invalid-hex-code.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Invalid HEX color code in {path}color-invalid-hex-code.less on line 2, column 29: -1 .a { -2 @wrongHEXColorCode: #DCALLB; -3 } diff --git a/node_modules/less/test/less-bom/errors/color-invalid-hex-code2.less b/node_modules/less/test/less-bom/errors/color-invalid-hex-code2.less deleted file mode 100644 index 5097776..0000000 --- a/node_modules/less/test/less-bom/errors/color-invalid-hex-code2.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - @wrongHEXColorCode: #fffblack; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/color-invalid-hex-code2.txt b/node_modules/less/test/less-bom/errors/color-invalid-hex-code2.txt deleted file mode 100644 index dd3996b..0000000 --- a/node_modules/less/test/less-bom/errors/color-invalid-hex-code2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Invalid HEX color code in {path}color-invalid-hex-code2.less on line 2, column 29: -1 .a { -2 @wrongHEXColorCode: #fffblack; -3 } diff --git a/node_modules/less/test/less-bom/errors/css-guard-default-func.less b/node_modules/less/test/less-bom/errors/css-guard-default-func.less deleted file mode 100644 index 8d8d481..0000000 --- a/node_modules/less/test/less-bom/errors/css-guard-default-func.less +++ /dev/null @@ -1,4 +0,0 @@ - -selector when (default()) { - color: red; -} diff --git a/node_modules/less/test/less-bom/errors/css-guard-default-func.txt b/node_modules/less/test/less-bom/errors/css-guard-default-func.txt deleted file mode 100644 index 022f522..0000000 --- a/node_modules/less/test/less-bom/errors/css-guard-default-func.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: error evaluating function `default`: it is currently only allowed in parametric mixin guards, in {path}css-guard-default-func.less on line 2, column 16: -1 -2 selector when (default()) { -3 color: red; diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-1.less b/node_modules/less/test/less-bom/errors/detached-ruleset-1.less deleted file mode 100644 index d771871..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-1.less +++ /dev/null @@ -1,6 +0,0 @@ -@a: { - b: 1; -}; -.a { - a: @a; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-1.txt b/node_modules/less/test/less-bom/errors/detached-ruleset-1.txt deleted file mode 100644 index 7407741..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Rulesets cannot be evaluated on a property. in {path}detached-ruleset-1.less on line 5, column 3: -4 .a { -5 a: @a; -6 } diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-2.less b/node_modules/less/test/less-bom/errors/detached-ruleset-2.less deleted file mode 100644 index 1fc9fe7..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-2.less +++ /dev/null @@ -1,6 +0,0 @@ -@a: { - b: 1; -}; -.a { - a: @a(); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-2.txt b/node_modules/less/test/less-bom/errors/detached-ruleset-2.txt deleted file mode 100644 index 43b9925..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-2.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Expected ')' in {path}detached-ruleset-2.less on line 5, column 9: -4 .a { -5 a: @a(); -6 } diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-3.less b/node_modules/less/test/less-bom/errors/detached-ruleset-3.less deleted file mode 100644 index 5c55be3..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-3.less +++ /dev/null @@ -1,4 +0,0 @@ -@a: { - b: 1; -}; -@a(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-3.txt b/node_modules/less/test/less-bom/errors/detached-ruleset-3.txt deleted file mode 100644 index ad43ab4..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-3.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Properties must be inside selector blocks. They cannot be in the root in {path}detached-ruleset-3.less on line 2, column 3: -1 @a: { -2 b: 1; -3 }; diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-5.less b/node_modules/less/test/less-bom/errors/detached-ruleset-5.less deleted file mode 100644 index b3713a6..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-5.less +++ /dev/null @@ -1,4 +0,0 @@ -.mixin-definition(@b) { - @a(); -} -.mixin-definition({color: red;}); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-5.txt b/node_modules/less/test/less-bom/errors/detached-ruleset-5.txt deleted file mode 100644 index 5618979..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-5.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: variable @a is undefined in {path}detached-ruleset-5.less on line 4, column 1: -3 } -4 .mixin-definition({color: red;}); diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-6.less b/node_modules/less/test/less-bom/errors/detached-ruleset-6.less deleted file mode 100644 index ae93a68..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-6.less +++ /dev/null @@ -1,5 +0,0 @@ -.a { - b: { - color: red; - }; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/detached-ruleset-6.txt b/node_modules/less/test/less-bom/errors/detached-ruleset-6.txt deleted file mode 100644 index 7f6b0ae..0000000 --- a/node_modules/less/test/less-bom/errors/detached-ruleset-6.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input in {path}detached-ruleset-6.less on line 2, column 6: -1 .a { -2 b: { -3 color: red; diff --git a/node_modules/less/test/less-bom/errors/divide-mixed-units.less b/node_modules/less/test/less-bom/errors/divide-mixed-units.less deleted file mode 100644 index 970dfe5..0000000 --- a/node_modules/less/test/less-bom/errors/divide-mixed-units.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - error: (1px / 3em); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/divide-mixed-units.txt b/node_modules/less/test/less-bom/errors/divide-mixed-units.txt deleted file mode 100644 index c189d2a..0000000 --- a/node_modules/less/test/less-bom/errors/divide-mixed-units.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Multiple units in dimension. Correct the units or use the unit function. Bad unit: px/em in {path}divide-mixed-units.less on line 2, column 3: -1 .a { -2 error: (1px / 3em); -3 } diff --git a/node_modules/less/test/less-bom/errors/extend-no-selector.less b/node_modules/less/test/less-bom/errors/extend-no-selector.less deleted file mode 100644 index 13dab93..0000000 --- a/node_modules/less/test/less-bom/errors/extend-no-selector.less +++ /dev/null @@ -1,3 +0,0 @@ -:extend(.a all) { - property: red; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/extend-no-selector.txt b/node_modules/less/test/less-bom/errors/extend-no-selector.txt deleted file mode 100644 index bd2e3cd..0000000 --- a/node_modules/less/test/less-bom/errors/extend-no-selector.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Extend must be used to extend a selector, it cannot be used on its own in {path}extend-no-selector.less on line 1, column 17: -1 :extend(.a all) { -2 property: red; diff --git a/node_modules/less/test/less-bom/errors/extend-not-at-end.less b/node_modules/less/test/less-bom/errors/extend-not-at-end.less deleted file mode 100644 index 67e9184..0000000 --- a/node_modules/less/test/less-bom/errors/extend-not-at-end.less +++ /dev/null @@ -1,3 +0,0 @@ -.a:extend(.b all).c { - property: red; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/extend-not-at-end.txt b/node_modules/less/test/less-bom/errors/extend-not-at-end.txt deleted file mode 100644 index 32ebedf..0000000 --- a/node_modules/less/test/less-bom/errors/extend-not-at-end.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Extend can only be used at the end of selector in {path}extend-not-at-end.less on line 1, column 21: -1 .a:extend(.b all).c { -2 property: red; diff --git a/node_modules/less/test/less-bom/errors/functions-1.less b/node_modules/less/test/less-bom/errors/functions-1.less deleted file mode 100644 index c4e2b93..0000000 --- a/node_modules/less/test/less-bom/errors/functions-1.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-undefined(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-1.txt b/node_modules/less/test/less-bom/errors/functions-1.txt deleted file mode 100644 index abeb4bd..0000000 --- a/node_modules/less/test/less-bom/errors/functions-1.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Function 'test-undefined' is undefined in {path}functions-1.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-undefined(); diff --git a/node_modules/less/test/less-bom/errors/functions-10-keyword.less b/node_modules/less/test/less-bom/errors/functions-10-keyword.less deleted file mode 100644 index f8a78ce..0000000 --- a/node_modules/less/test/less-bom/errors/functions-10-keyword.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-keyword(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-10-keyword.txt b/node_modules/less/test/less-bom/errors/functions-10-keyword.txt deleted file mode 100644 index dabe839..0000000 --- a/node_modules/less/test/less-bom/errors/functions-10-keyword.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Keyword node returned by a function is not valid here in {path}functions-10-keyword.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-keyword(); diff --git a/node_modules/less/test/less-bom/errors/functions-11-operation.less b/node_modules/less/test/less-bom/errors/functions-11-operation.less deleted file mode 100644 index 650335b..0000000 --- a/node_modules/less/test/less-bom/errors/functions-11-operation.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-operation(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-11-operation.txt b/node_modules/less/test/less-bom/errors/functions-11-operation.txt deleted file mode 100644 index 2728717..0000000 --- a/node_modules/less/test/less-bom/errors/functions-11-operation.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Operation node returned by a function is not valid here in {path}functions-11-operation.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-operation(); diff --git a/node_modules/less/test/less-bom/errors/functions-12-quoted.less b/node_modules/less/test/less-bom/errors/functions-12-quoted.less deleted file mode 100644 index 1edf358..0000000 --- a/node_modules/less/test/less-bom/errors/functions-12-quoted.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-quoted(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-12-quoted.txt b/node_modules/less/test/less-bom/errors/functions-12-quoted.txt deleted file mode 100644 index 45c62ea..0000000 --- a/node_modules/less/test/less-bom/errors/functions-12-quoted.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Quoted node returned by a function is not valid here in {path}functions-12-quoted.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-quoted(); diff --git a/node_modules/less/test/less-bom/errors/functions-13-selector.less b/node_modules/less/test/less-bom/errors/functions-13-selector.less deleted file mode 100644 index af648c2..0000000 --- a/node_modules/less/test/less-bom/errors/functions-13-selector.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-selector(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-13-selector.txt b/node_modules/less/test/less-bom/errors/functions-13-selector.txt deleted file mode 100644 index 2f4b097..0000000 --- a/node_modules/less/test/less-bom/errors/functions-13-selector.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Selector node returned by a function is not valid here in {path}functions-13-selector.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-selector(); diff --git a/node_modules/less/test/less-bom/errors/functions-14-url.less b/node_modules/less/test/less-bom/errors/functions-14-url.less deleted file mode 100644 index cb69f6f..0000000 --- a/node_modules/less/test/less-bom/errors/functions-14-url.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-url(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-14-url.txt b/node_modules/less/test/less-bom/errors/functions-14-url.txt deleted file mode 100644 index aeb275c..0000000 --- a/node_modules/less/test/less-bom/errors/functions-14-url.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Url node returned by a function is not valid here in {path}functions-14-url.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-url(); diff --git a/node_modules/less/test/less-bom/errors/functions-15-value.less b/node_modules/less/test/less-bom/errors/functions-15-value.less deleted file mode 100644 index dd16926..0000000 --- a/node_modules/less/test/less-bom/errors/functions-15-value.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-value(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-15-value.txt b/node_modules/less/test/less-bom/errors/functions-15-value.txt deleted file mode 100644 index 41f6e6a..0000000 --- a/node_modules/less/test/less-bom/errors/functions-15-value.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Value node returned by a function is not valid here in {path}functions-15-value.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-value(); diff --git a/node_modules/less/test/less-bom/errors/functions-2-alpha.less b/node_modules/less/test/less-bom/errors/functions-2-alpha.less deleted file mode 100644 index 6f27ba9..0000000 --- a/node_modules/less/test/less-bom/errors/functions-2-alpha.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-alpha(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-2-alpha.txt b/node_modules/less/test/less-bom/errors/functions-2-alpha.txt deleted file mode 100644 index 38a1727..0000000 --- a/node_modules/less/test/less-bom/errors/functions-2-alpha.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Alpha node returned by a function is not valid here in {path}functions-2-alpha.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-alpha(); diff --git a/node_modules/less/test/less-bom/errors/functions-3-assignment.less b/node_modules/less/test/less-bom/errors/functions-3-assignment.less deleted file mode 100644 index dab8003..0000000 --- a/node_modules/less/test/less-bom/errors/functions-3-assignment.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-assignment(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-3-assignment.txt b/node_modules/less/test/less-bom/errors/functions-3-assignment.txt deleted file mode 100644 index 35c1992..0000000 --- a/node_modules/less/test/less-bom/errors/functions-3-assignment.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Assignment node returned by a function is not valid here in {path}functions-3-assignment.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-assignment(); diff --git a/node_modules/less/test/less-bom/errors/functions-4-call.less b/node_modules/less/test/less-bom/errors/functions-4-call.less deleted file mode 100644 index 99100c8..0000000 --- a/node_modules/less/test/less-bom/errors/functions-4-call.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-call(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-4-call.txt b/node_modules/less/test/less-bom/errors/functions-4-call.txt deleted file mode 100644 index 338582d..0000000 --- a/node_modules/less/test/less-bom/errors/functions-4-call.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Function 'foo' is undefined in {path}functions-4-call.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-call(); diff --git a/node_modules/less/test/less-bom/errors/functions-5-color-2.less b/node_modules/less/test/less-bom/errors/functions-5-color-2.less deleted file mode 100644 index fed873e..0000000 --- a/node_modules/less/test/less-bom/errors/functions-5-color-2.less +++ /dev/null @@ -1 +0,0 @@ -rgba(0,0,0,0); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-5-color-2.txt b/node_modules/less/test/less-bom/errors/functions-5-color-2.txt deleted file mode 100644 index 8b36fd9..0000000 --- a/node_modules/less/test/less-bom/errors/functions-5-color-2.txt +++ /dev/null @@ -1,2 +0,0 @@ -SyntaxError: Color node returned by a function is not valid here in {path}functions-5-color-2.less on line 1, column 1: -1 rgba(0,0,0,0); diff --git a/node_modules/less/test/less-bom/errors/functions-5-color.less b/node_modules/less/test/less-bom/errors/functions-5-color.less deleted file mode 100644 index 2415669..0000000 --- a/node_modules/less/test/less-bom/errors/functions-5-color.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-color(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-5-color.txt b/node_modules/less/test/less-bom/errors/functions-5-color.txt deleted file mode 100644 index fdcd1a0..0000000 --- a/node_modules/less/test/less-bom/errors/functions-5-color.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Color node returned by a function is not valid here in {path}functions-5-color.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-color(); diff --git a/node_modules/less/test/less-bom/errors/functions-6-condition.less b/node_modules/less/test/less-bom/errors/functions-6-condition.less deleted file mode 100644 index 1e7af70..0000000 --- a/node_modules/less/test/less-bom/errors/functions-6-condition.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-condition(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-6-condition.txt b/node_modules/less/test/less-bom/errors/functions-6-condition.txt deleted file mode 100644 index 421bba5..0000000 --- a/node_modules/less/test/less-bom/errors/functions-6-condition.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Condition node returned by a function is not valid here in {path}functions-6-condition.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-condition(); diff --git a/node_modules/less/test/less-bom/errors/functions-7-dimension.less b/node_modules/less/test/less-bom/errors/functions-7-dimension.less deleted file mode 100644 index 30e47ef..0000000 --- a/node_modules/less/test/less-bom/errors/functions-7-dimension.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-dimension(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-7-dimension.txt b/node_modules/less/test/less-bom/errors/functions-7-dimension.txt deleted file mode 100644 index 3b1b702..0000000 --- a/node_modules/less/test/less-bom/errors/functions-7-dimension.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Dimension node returned by a function is not valid here in {path}functions-7-dimension.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-dimension(); diff --git a/node_modules/less/test/less-bom/errors/functions-8-element.less b/node_modules/less/test/less-bom/errors/functions-8-element.less deleted file mode 100644 index 6ec02a7..0000000 --- a/node_modules/less/test/less-bom/errors/functions-8-element.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-element(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-8-element.txt b/node_modules/less/test/less-bom/errors/functions-8-element.txt deleted file mode 100644 index b505d95..0000000 --- a/node_modules/less/test/less-bom/errors/functions-8-element.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Element node returned by a function is not valid here in {path}functions-8-element.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-element(); diff --git a/node_modules/less/test/less-bom/errors/functions-9-expression.less b/node_modules/less/test/less-bom/errors/functions-9-expression.less deleted file mode 100644 index 7b1ff88..0000000 --- a/node_modules/less/test/less-bom/errors/functions-9-expression.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-expression(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/functions-9-expression.txt b/node_modules/less/test/less-bom/errors/functions-9-expression.txt deleted file mode 100644 index 224db78..0000000 --- a/node_modules/less/test/less-bom/errors/functions-9-expression.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Expression node returned by a function is not valid here in {path}functions-9-expression.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-expression(); diff --git a/node_modules/less/test/less-bom/errors/import-malformed.less b/node_modules/less/test/less-bom/errors/import-malformed.less deleted file mode 100644 index 03790b0..0000000 --- a/node_modules/less/test/less-bom/errors/import-malformed.less +++ /dev/null @@ -1 +0,0 @@ -@import malformed "this-statement-is-invalid.less"; diff --git a/node_modules/less/test/less-bom/errors/import-malformed.txt b/node_modules/less/test/less-bom/errors/import-malformed.txt deleted file mode 100644 index f8ba9f8..0000000 --- a/node_modules/less/test/less-bom/errors/import-malformed.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: malformed import statement in {path}import-malformed.less on line 1, column 1: -1 @import malformed "this-statement-is-invalid.less"; -2 diff --git a/node_modules/less/test/less-bom/errors/import-missing.less b/node_modules/less/test/less-bom/errors/import-missing.less deleted file mode 100644 index d6047b9..0000000 --- a/node_modules/less/test/less-bom/errors/import-missing.less +++ /dev/null @@ -1,6 +0,0 @@ -.a { - color: green; - // tests line number for import reference is correct -} - -@import "file-does-not-exist.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/import-missing.txt b/node_modules/less/test/less-bom/errors/import-missing.txt deleted file mode 100644 index 5602b0f..0000000 --- a/node_modules/less/test/less-bom/errors/import-missing.txt +++ /dev/null @@ -1,3 +0,0 @@ -FileError: '{pathhref}file-does-not-exist.less' wasn't found{404status}{node}. Tried - {path}file-does-not-exist.less,{pathrel}file-does-not-exist.less,file-does-not-exist.less{/node} in {path}import-missing.less on line 6, column 1: -5 -6 @import "file-does-not-exist.less"; diff --git a/node_modules/less/test/less-bom/errors/import-no-semi.less b/node_modules/less/test/less-bom/errors/import-no-semi.less deleted file mode 100644 index 29bfe06..0000000 --- a/node_modules/less/test/less-bom/errors/import-no-semi.less +++ /dev/null @@ -1 +0,0 @@ -@import "this-statement-is-invalid.less" \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/import-no-semi.txt b/node_modules/less/test/less-bom/errors/import-no-semi.txt deleted file mode 100644 index aaa4ac5..0000000 --- a/node_modules/less/test/less-bom/errors/import-no-semi.txt +++ /dev/null @@ -1,2 +0,0 @@ -SyntaxError: missing semi-colon or unrecognised media features on import in {path}import-no-semi.less on line 1, column 1: -1 @import "this-statement-is-invalid.less" diff --git a/node_modules/less/test/less-bom/errors/import-subfolder1.less b/node_modules/less/test/less-bom/errors/import-subfolder1.less deleted file mode 100644 index bd30a4a..0000000 --- a/node_modules/less/test/less-bom/errors/import-subfolder1.less +++ /dev/null @@ -1 +0,0 @@ -@import "imports/import-subfolder1.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/import-subfolder1.txt b/node_modules/less/test/less-bom/errors/import-subfolder1.txt deleted file mode 100644 index 9762927..0000000 --- a/node_modules/less/test/less-bom/errors/import-subfolder1.txt +++ /dev/null @@ -1,3 +0,0 @@ -NameError: .mixin-not-defined is undefined in {path}mixin-not-defined.less on line 11, column 1: -10 -11 .mixin-not-defined(); diff --git a/node_modules/less/test/less-bom/errors/import-subfolder2.less b/node_modules/less/test/less-bom/errors/import-subfolder2.less deleted file mode 100644 index dbd2405..0000000 --- a/node_modules/less/test/less-bom/errors/import-subfolder2.less +++ /dev/null @@ -1 +0,0 @@ -@import "imports/import-subfolder2.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/import-subfolder2.txt b/node_modules/less/test/less-bom/errors/import-subfolder2.txt deleted file mode 100644 index 59cf5bd..0000000 --- a/node_modules/less/test/less-bom/errors/import-subfolder2.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input. Possibly missing opening '{' in {path}parse-error-curly-bracket.less on line 4, column 1: -3 } -4 } -5 diff --git a/node_modules/less/test/less-bom/errors/imports/import-subfolder1.less b/node_modules/less/test/less-bom/errors/imports/import-subfolder1.less deleted file mode 100644 index 171a5b3..0000000 --- a/node_modules/less/test/less-bom/errors/imports/import-subfolder1.less +++ /dev/null @@ -1 +0,0 @@ -@import "subfolder/mixin-not-defined.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/imports/import-subfolder2.less b/node_modules/less/test/less-bom/errors/imports/import-subfolder2.less deleted file mode 100644 index 969d7f6..0000000 --- a/node_modules/less/test/less-bom/errors/imports/import-subfolder2.less +++ /dev/null @@ -1 +0,0 @@ -@import "subfolder/parse-error-curly-bracket.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/imports/import-test.less b/node_modules/less/test/less-bom/errors/imports/import-test.less deleted file mode 100644 index b075faf..0000000 --- a/node_modules/less/test/less-bom/errors/imports/import-test.less +++ /dev/null @@ -1,4 +0,0 @@ -.someclass -{ - font-weight: bold; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/imports/subfolder/mixin-not-defined.less b/node_modules/less/test/less-bom/errors/imports/subfolder/mixin-not-defined.less deleted file mode 100644 index 1fa2be6..0000000 --- a/node_modules/less/test/less-bom/errors/imports/subfolder/mixin-not-defined.less +++ /dev/null @@ -1 +0,0 @@ -@import "../../mixin-not-defined.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/imports/subfolder/parse-error-curly-bracket.less b/node_modules/less/test/less-bom/errors/imports/subfolder/parse-error-curly-bracket.less deleted file mode 100644 index 464001a..0000000 --- a/node_modules/less/test/less-bom/errors/imports/subfolder/parse-error-curly-bracket.less +++ /dev/null @@ -1 +0,0 @@ -@import "../../parse-error-curly-bracket.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/javascript-error.less b/node_modules/less/test/less-bom/errors/javascript-error.less deleted file mode 100644 index 5fedbd9..0000000 --- a/node_modules/less/test/less-bom/errors/javascript-error.less +++ /dev/null @@ -1,3 +0,0 @@ -.scope { - var: `this.foo.toJS`; -} diff --git a/node_modules/less/test/less-bom/errors/javascript-error.txt b/node_modules/less/test/less-bom/errors/javascript-error.txt deleted file mode 100644 index e5f7dc3..0000000 --- a/node_modules/less/test/less-bom/errors/javascript-error.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: JavaScript evaluation error: 'TypeError: Cannot read property 'toJS' of undefined' in {path}javascript-error.less on line 2, column 10: -1 .scope { -2 var: `this.foo.toJS`; -3 } diff --git a/node_modules/less/test/less-bom/errors/javascript-undefined-var.less b/node_modules/less/test/less-bom/errors/javascript-undefined-var.less deleted file mode 100644 index 57f245b..0000000 --- a/node_modules/less/test/less-bom/errors/javascript-undefined-var.less +++ /dev/null @@ -1,3 +0,0 @@ -.scope { - @a: `@{b}`; -} diff --git a/node_modules/less/test/less-bom/errors/javascript-undefined-var.txt b/node_modules/less/test/less-bom/errors/javascript-undefined-var.txt deleted file mode 100644 index e9710dc..0000000 --- a/node_modules/less/test/less-bom/errors/javascript-undefined-var.txt +++ /dev/null @@ -1,4 +0,0 @@ -NameError: variable @b is undefined in {path}javascript-undefined-var.less on line 2, column 9: -1 .scope { -2 @a: `@{b}`; -3 } diff --git a/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-1.less b/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-1.less deleted file mode 100644 index 0fbe2bd..0000000 --- a/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-1.less +++ /dev/null @@ -1,6 +0,0 @@ -.mixin(@a : 4, @b : 3, @c: 2) { - will: fail; -} -.mixin-test { - .mixin(@a: 5; @b: 6, @c: 7); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-1.txt b/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-1.txt deleted file mode 100644 index a07f5e9..0000000 --- a/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Cannot mix ; and , as delimiter types in {path}mixed-mixin-definition-args-1.less on line 5, column 30: -4 .mixin-test { -5 .mixin(@a: 5; @b: 6, @c: 7); -6 } diff --git a/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-2.less b/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-2.less deleted file mode 100644 index 0a49973..0000000 --- a/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-2.less +++ /dev/null @@ -1,6 +0,0 @@ -.mixin(@a : 4, @b : 3, @c: 2) { - will: fail; -} -.mixin-test { - .mixin(@a: 5, @b: 6; @c: 7); -} diff --git a/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-2.txt b/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-2.txt deleted file mode 100644 index fa00183..0000000 --- a/node_modules/less/test/less-bom/errors/mixed-mixin-definition-args-2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Cannot mix ; and , as delimiter types in {path}mixed-mixin-definition-args-2.less on line 5, column 26: -4 .mixin-test { -5 .mixin(@a: 5, @b: 6; @c: 7); -6 } diff --git a/node_modules/less/test/less-bom/errors/mixin-not-defined.less b/node_modules/less/test/less-bom/errors/mixin-not-defined.less deleted file mode 100644 index 06e0697..0000000 --- a/node_modules/less/test/less-bom/errors/mixin-not-defined.less +++ /dev/null @@ -1,11 +0,0 @@ - -.error-is-further-on() { -} - -.pad-here-to-reproduce-error-in() { -} - -.the-import-subfolder-test() { -} - -.mixin-not-defined(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/mixin-not-defined.txt b/node_modules/less/test/less-bom/errors/mixin-not-defined.txt deleted file mode 100644 index 9762927..0000000 --- a/node_modules/less/test/less-bom/errors/mixin-not-defined.txt +++ /dev/null @@ -1,3 +0,0 @@ -NameError: .mixin-not-defined is undefined in {path}mixin-not-defined.less on line 11, column 1: -10 -11 .mixin-not-defined(); diff --git a/node_modules/less/test/less-bom/errors/mixin-not-matched.less b/node_modules/less/test/less-bom/errors/mixin-not-matched.less deleted file mode 100644 index 0f3e5a0..0000000 --- a/node_modules/less/test/less-bom/errors/mixin-not-matched.less +++ /dev/null @@ -1,6 +0,0 @@ -@saxofon:trumpete; - -.mixin(saxofon) { -} - -.mixin(@saxofon); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/mixin-not-matched.txt b/node_modules/less/test/less-bom/errors/mixin-not-matched.txt deleted file mode 100644 index 57df977..0000000 --- a/node_modules/less/test/less-bom/errors/mixin-not-matched.txt +++ /dev/null @@ -1,3 +0,0 @@ -RuntimeError: No matching definition was found for `.mixin(trumpete)` in {path}mixin-not-matched.less on line 6, column 1: -5 -6 .mixin(@saxofon); diff --git a/node_modules/less/test/less-bom/errors/mixin-not-matched2.less b/node_modules/less/test/less-bom/errors/mixin-not-matched2.less deleted file mode 100644 index 282c73d..0000000 --- a/node_modules/less/test/less-bom/errors/mixin-not-matched2.less +++ /dev/null @@ -1,6 +0,0 @@ -@saxofon:trumpete; - -.mixin(@a, @b) { -} - -.mixin(@a: @saxofon); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/mixin-not-matched2.txt b/node_modules/less/test/less-bom/errors/mixin-not-matched2.txt deleted file mode 100644 index dceedaf..0000000 --- a/node_modules/less/test/less-bom/errors/mixin-not-matched2.txt +++ /dev/null @@ -1,3 +0,0 @@ -RuntimeError: No matching definition was found for `.mixin(@a:trumpete)` in {path}mixin-not-matched2.less on line 6, column 1: -5 -6 .mixin(@a: @saxofon); diff --git a/node_modules/less/test/less-bom/errors/mixin-not-visible-in-scope-1.less b/node_modules/less/test/less-bom/errors/mixin-not-visible-in-scope-1.less deleted file mode 100644 index 4992e91..0000000 --- a/node_modules/less/test/less-bom/errors/mixin-not-visible-in-scope-1.less +++ /dev/null @@ -1,9 +0,0 @@ -.something { - & { - .a {value: a} - } - - & { - .b {.a} // was Err. before 1.6.2 - } -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/mixin-not-visible-in-scope-1.txt b/node_modules/less/test/less-bom/errors/mixin-not-visible-in-scope-1.txt deleted file mode 100644 index 15e64dc..0000000 --- a/node_modules/less/test/less-bom/errors/mixin-not-visible-in-scope-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -NameError: .a is undefined in {path}mixin-not-visible-in-scope-1.less on line 7, column 13: -6 & { -7 .b {.a} // was Err. before 1.6.2 -8 } diff --git a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-1.less b/node_modules/less/test/less-bom/errors/mixins-guards-default-func-1.less deleted file mode 100644 index 1cc850f..0000000 --- a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-1.less +++ /dev/null @@ -1,9 +0,0 @@ - -guard-default-func-conflict { - .m(@x, 1) {} - .m(@x, 2) when (default()) {} - .m(@x, 2) when (default()) {} - - .m(1, 1); - .m(1, 2); -} diff --git a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-1.txt b/node_modules/less/test/less-bom/errors/mixins-guards-default-func-1.txt deleted file mode 100644 index e6aaa0a..0000000 --- a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -RuntimeError: Ambiguous use of `default()` found when matching for `.m(1, 2)` in {path}mixins-guards-default-func-1.less on line 8, column 5: -7 .m(1, 1); -8 .m(1, 2); -9 } diff --git a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-2.less b/node_modules/less/test/less-bom/errors/mixins-guards-default-func-2.less deleted file mode 100644 index 68956de..0000000 --- a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-2.less +++ /dev/null @@ -1,9 +0,0 @@ - -guard-default-func-conflict { - .m(1) {} - .m(@x) when not(default()) {} - .m(@x) when (@x = 3) and (default()) {} - - .m(2); - .m(3); -} diff --git a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-2.txt b/node_modules/less/test/less-bom/errors/mixins-guards-default-func-2.txt deleted file mode 100644 index 99a3a66..0000000 --- a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-2.txt +++ /dev/null @@ -1,4 +0,0 @@ -RuntimeError: Ambiguous use of `default()` found when matching for `.m(3)` in {path}mixins-guards-default-func-2.less on line 8, column 5: -7 .m(2); -8 .m(3); -9 } diff --git a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-3.less b/node_modules/less/test/less-bom/errors/mixins-guards-default-func-3.less deleted file mode 100644 index 9fe250b..0000000 --- a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-3.less +++ /dev/null @@ -1,9 +0,0 @@ - -guard-default-func-conflict { - .m(1) {} - .m(@x) when not(default()) {} - .m(@x) when not(default()) {} - - .m(1); - .m(2); -} diff --git a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-3.txt b/node_modules/less/test/less-bom/errors/mixins-guards-default-func-3.txt deleted file mode 100644 index 0a85a34..0000000 --- a/node_modules/less/test/less-bom/errors/mixins-guards-default-func-3.txt +++ /dev/null @@ -1,4 +0,0 @@ -RuntimeError: Ambiguous use of `default()` found when matching for `.m(2)` in {path}mixins-guards-default-func-3.less on line 8, column 5: -7 .m(1); -8 .m(2); -9 } diff --git a/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors.less b/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors.less deleted file mode 100644 index 3d9dbdd..0000000 --- a/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors.less +++ /dev/null @@ -1,4 +0,0 @@ -@ie8: true; -.a when (@ie8 = true), -.b { -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors.txt b/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors.txt deleted file mode 100644 index 3d23e26..0000000 --- a/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Guards are only currently allowed on a single selector. in {path}multiple-guards-on-css-selectors.less on line 3, column 1: -2 .a when (@ie8 = true), -3 .b { -4 } diff --git a/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors2.less b/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors2.less deleted file mode 100644 index 0831894..0000000 --- a/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors2.less +++ /dev/null @@ -1,4 +0,0 @@ -@ie8: true; -.a, -.b when (@ie8 = true) { -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors2.txt b/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors2.txt deleted file mode 100644 index d0e5a52..0000000 --- a/node_modules/less/test/less-bom/errors/multiple-guards-on-css-selectors2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Guards are only currently allowed on a single selector. in {path}multiple-guards-on-css-selectors2.less on line 3, column 23: -2 .a, -3 .b when (@ie8 = true) { -4 } diff --git a/node_modules/less/test/less-bom/errors/multiply-mixed-units.less b/node_modules/less/test/less-bom/errors/multiply-mixed-units.less deleted file mode 100644 index 7eb7dc2..0000000 --- a/node_modules/less/test/less-bom/errors/multiply-mixed-units.less +++ /dev/null @@ -1,7 +0,0 @@ -/* Test */ -#blah { - // blah -} -.a { - error: (1px * 1em); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/multiply-mixed-units.txt b/node_modules/less/test/less-bom/errors/multiply-mixed-units.txt deleted file mode 100644 index 9ed834f..0000000 --- a/node_modules/less/test/less-bom/errors/multiply-mixed-units.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Multiple units in dimension. Correct the units or use the unit function. Bad unit: em*px in {path}multiply-mixed-units.less on line 6, column 3: -5 .a { -6 error: (1px * 1em); -7 } diff --git a/node_modules/less/test/less-bom/errors/parens-error-1.less b/node_modules/less/test/less-bom/errors/parens-error-1.less deleted file mode 100644 index 687063e..0000000 --- a/node_modules/less/test/less-bom/errors/parens-error-1.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - something: (12 (13 + 5 -23) + 5); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/parens-error-1.txt b/node_modules/less/test/less-bom/errors/parens-error-1.txt deleted file mode 100644 index 35be175..0000000 --- a/node_modules/less/test/less-bom/errors/parens-error-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Expected ')' in {path}parens-error-1.less on line 2, column 18: -1 .a { -2 something: (12 (13 + 5 -23) + 5); -3 } diff --git a/node_modules/less/test/less-bom/errors/parens-error-2.less b/node_modules/less/test/less-bom/errors/parens-error-2.less deleted file mode 100644 index e16bafe..0000000 --- a/node_modules/less/test/less-bom/errors/parens-error-2.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - something: (12 * (13 + 5 -23)); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/parens-error-2.txt b/node_modules/less/test/less-bom/errors/parens-error-2.txt deleted file mode 100644 index b40e4c2..0000000 --- a/node_modules/less/test/less-bom/errors/parens-error-2.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Expected ')' in {path}parens-error-2.less on line 2, column 28: -1 .a { -2 something: (12 * (13 + 5 -23)); -3 } diff --git a/node_modules/less/test/less-bom/errors/parens-error-3.less b/node_modules/less/test/less-bom/errors/parens-error-3.less deleted file mode 100644 index 263ae5a..0000000 --- a/node_modules/less/test/less-bom/errors/parens-error-3.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - something: (12 + (13 + 10 -23)); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/parens-error-3.txt b/node_modules/less/test/less-bom/errors/parens-error-3.txt deleted file mode 100644 index c6c8434..0000000 --- a/node_modules/less/test/less-bom/errors/parens-error-3.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Expected ')' in {path}parens-error-3.less on line 2, column 29: -1 .a { -2 something: (12 + (13 + 10 -23)); -3 } diff --git a/node_modules/less/test/less-bom/errors/parse-error-curly-bracket.less b/node_modules/less/test/less-bom/errors/parse-error-curly-bracket.less deleted file mode 100644 index 3d4facd..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-curly-bracket.less +++ /dev/null @@ -1,4 +0,0 @@ -body { - background-color: #fff; - } -} diff --git a/node_modules/less/test/less-bom/errors/parse-error-curly-bracket.txt b/node_modules/less/test/less-bom/errors/parse-error-curly-bracket.txt deleted file mode 100644 index 59cf5bd..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-curly-bracket.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input. Possibly missing opening '{' in {path}parse-error-curly-bracket.less on line 4, column 1: -3 } -4 } -5 diff --git a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-1.less b/node_modules/less/test/less-bom/errors/parse-error-media-no-block-1.less deleted file mode 100644 index 124bb82..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-1.less +++ /dev/null @@ -1,5 +0,0 @@ -@media (extra: bracket)) { - body { - background-color: #fff; - } -} diff --git a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-1.txt b/node_modules/less/test/less-bom/errors/parse-error-media-no-block-1.txt deleted file mode 100644 index 3af15b7..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-1.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-1.less on line 1, column 24: -1 @media (extra: bracket)) { -2 body { diff --git a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-2.less b/node_modules/less/test/less-bom/errors/parse-error-media-no-block-2.less deleted file mode 100644 index 77fe033..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-2.less +++ /dev/null @@ -1 +0,0 @@ -@media \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-2.txt b/node_modules/less/test/less-bom/errors/parse-error-media-no-block-2.txt deleted file mode 100644 index 6d774ea..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-2.txt +++ /dev/null @@ -1,2 +0,0 @@ -SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-2.less on line 1, column 7: -1 @media diff --git a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-3.less b/node_modules/less/test/less-bom/errors/parse-error-media-no-block-3.less deleted file mode 100644 index f5b50e5..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-3.less +++ /dev/null @@ -1,4 +0,0 @@ -@media (min-width: 500px) { - .sometimes-big { - font-size: 5000px; - } \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-3.txt b/node_modules/less/test/less-bom/errors/parse-error-media-no-block-3.txt deleted file mode 100644 index 7bb0f4c..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-media-no-block-3.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-3.less on line 4, column 4: -3 font-size: 5000px; -4 } diff --git a/node_modules/less/test/less-bom/errors/parse-error-missing-bracket.less b/node_modules/less/test/less-bom/errors/parse-error-missing-bracket.less deleted file mode 100644 index 34ad349..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-missing-bracket.less +++ /dev/null @@ -1,2 +0,0 @@ -body { - background-color: #fff; diff --git a/node_modules/less/test/less-bom/errors/parse-error-missing-bracket.txt b/node_modules/less/test/less-bom/errors/parse-error-missing-bracket.txt deleted file mode 100644 index 307bbd4..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-missing-bracket.txt +++ /dev/null @@ -1,3 +0,0 @@ -ParseError: Unrecognised input. Possibly missing something in {path}parse-error-missing-bracket.less on line 3, column 1: -2 background-color: #fff; -3 diff --git a/node_modules/less/test/less-bom/errors/parse-error-missing-parens.less b/node_modules/less/test/less-bom/errors/parse-error-missing-parens.less deleted file mode 100644 index 40139f0..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-missing-parens.less +++ /dev/null @@ -1,5 +0,0 @@ -@media (missing: bracket { - body { - background-color: #fff; - } -} diff --git a/node_modules/less/test/less-bom/errors/parse-error-missing-parens.txt b/node_modules/less/test/less-bom/errors/parse-error-missing-parens.txt deleted file mode 100644 index b5998fe..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-missing-parens.txt +++ /dev/null @@ -1,3 +0,0 @@ -ParseError: Missing closing ')' in {path}parse-error-missing-parens.less on line 1, column 26: -1 @media (missing: bracket { -2 body { diff --git a/node_modules/less/test/less-bom/errors/parse-error-with-import.less b/node_modules/less/test/less-bom/errors/parse-error-with-import.less deleted file mode 100644 index cb90389..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-with-import.less +++ /dev/null @@ -1,13 +0,0 @@ -@import 'import/import-test.less'; - -body -{ - font-family: arial, sans-serif; -} - -nonsense; - -.clickable -{ - cursor: pointer; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/parse-error-with-import.txt b/node_modules/less/test/less-bom/errors/parse-error-with-import.txt deleted file mode 100644 index 07732c9..0000000 --- a/node_modules/less/test/less-bom/errors/parse-error-with-import.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input in {path}parse-error-with-import.less on line 8, column 9: -7 -8 nonsense; -9 diff --git a/node_modules/less/test/less-bom/errors/percentage-missing-space.less b/node_modules/less/test/less-bom/errors/percentage-missing-space.less deleted file mode 100644 index 0958247..0000000 --- a/node_modules/less/test/less-bom/errors/percentage-missing-space.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - error: calc(1 %); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/percentage-missing-space.txt b/node_modules/less/test/less-bom/errors/percentage-missing-space.txt deleted file mode 100644 index 776d8d5..0000000 --- a/node_modules/less/test/less-bom/errors/percentage-missing-space.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Invalid % without number in {path}percentage-missing-space.less on line 2, column 3: -1 .a { -2 error: calc(1 %); -3 } diff --git a/node_modules/less/test/less-bom/errors/percentage-non-number-argument.less b/node_modules/less/test/less-bom/errors/percentage-non-number-argument.less deleted file mode 100644 index 736c049..0000000 --- a/node_modules/less/test/less-bom/errors/percentage-non-number-argument.less +++ /dev/null @@ -1,3 +0,0 @@ -div { - percentage: percentage(16/17); -} diff --git a/node_modules/less/test/less-bom/errors/percentage-non-number-argument.txt b/node_modules/less/test/less-bom/errors/percentage-non-number-argument.txt deleted file mode 100644 index f01a1e5..0000000 --- a/node_modules/less/test/less-bom/errors/percentage-non-number-argument.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `percentage`: argument must be a number in {path}percentage-non-number-argument.less on line 2, column 15: -1 div { -2 percentage: percentage(16/17); -3 } diff --git a/node_modules/less/test/less-bom/errors/property-asterisk-only-name.less b/node_modules/less/test/less-bom/errors/property-asterisk-only-name.less deleted file mode 100644 index af08d89..0000000 --- a/node_modules/less/test/less-bom/errors/property-asterisk-only-name.less +++ /dev/null @@ -1,3 +0,0 @@ -a { - * : 1; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/property-asterisk-only-name.txt b/node_modules/less/test/less-bom/errors/property-asterisk-only-name.txt deleted file mode 100644 index b81d757..0000000 --- a/node_modules/less/test/less-bom/errors/property-asterisk-only-name.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input in {path}property-asterisk-only-name.less on line 2, column 7: -1 a { -2 * : 1; -3 } diff --git a/node_modules/less/test/less-bom/errors/property-ie5-hack.less b/node_modules/less/test/less-bom/errors/property-ie5-hack.less deleted file mode 100644 index 22c5f18..0000000 --- a/node_modules/less/test/less-bom/errors/property-ie5-hack.less +++ /dev/null @@ -1,3 +0,0 @@ -.test { - display/*/: block; /*sorry for IE5*/ -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/property-ie5-hack.txt b/node_modules/less/test/less-bom/errors/property-ie5-hack.txt deleted file mode 100644 index 434943f..0000000 --- a/node_modules/less/test/less-bom/errors/property-ie5-hack.txt +++ /dev/null @@ -1,3 +0,0 @@ -ParseError: Unrecognised input. Possibly missing opening '{' in {path}property-ie5-hack.less on line 3, column 1: -2 display/*/: block; /*sorry for IE5*/ -3 } diff --git a/node_modules/less/test/less-bom/errors/property-in-root.less b/node_modules/less/test/less-bom/errors/property-in-root.less deleted file mode 100644 index 702edc2..0000000 --- a/node_modules/less/test/less-bom/errors/property-in-root.less +++ /dev/null @@ -1,4 +0,0 @@ -.a() { - prop:1; -} -.a(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/property-in-root.txt b/node_modules/less/test/less-bom/errors/property-in-root.txt deleted file mode 100644 index 10c9853..0000000 --- a/node_modules/less/test/less-bom/errors/property-in-root.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Properties must be inside selector blocks. They cannot be in the root in {path}property-in-root.less on line 2, column 3: -1 .a() { -2 prop:1; -3 } diff --git a/node_modules/less/test/less-bom/errors/property-in-root2.less b/node_modules/less/test/less-bom/errors/property-in-root2.less deleted file mode 100644 index 408e8c9..0000000 --- a/node_modules/less/test/less-bom/errors/property-in-root2.less +++ /dev/null @@ -1 +0,0 @@ -@import "property-in-root"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/property-in-root2.txt b/node_modules/less/test/less-bom/errors/property-in-root2.txt deleted file mode 100644 index 10c9853..0000000 --- a/node_modules/less/test/less-bom/errors/property-in-root2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Properties must be inside selector blocks. They cannot be in the root in {path}property-in-root.less on line 2, column 3: -1 .a() { -2 prop:1; -3 } diff --git a/node_modules/less/test/less-bom/errors/property-in-root3.less b/node_modules/less/test/less-bom/errors/property-in-root3.less deleted file mode 100644 index a109f29..0000000 --- a/node_modules/less/test/less-bom/errors/property-in-root3.less +++ /dev/null @@ -1,4 +0,0 @@ -prop:1; -.a { - prop:1; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/property-in-root3.txt b/node_modules/less/test/less-bom/errors/property-in-root3.txt deleted file mode 100644 index 13a4905..0000000 --- a/node_modules/less/test/less-bom/errors/property-in-root3.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Properties must be inside selector blocks. They cannot be in the root in {path}property-in-root3.less on line 1, column 1: -1 prop:1; -2 .a { diff --git a/node_modules/less/test/less-bom/errors/property-interp-not-defined.less b/node_modules/less/test/less-bom/errors/property-interp-not-defined.less deleted file mode 100644 index 63e0ddc..0000000 --- a/node_modules/less/test/less-bom/errors/property-interp-not-defined.less +++ /dev/null @@ -1 +0,0 @@ -a {outline-@{color}: green} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/property-interp-not-defined.txt b/node_modules/less/test/less-bom/errors/property-interp-not-defined.txt deleted file mode 100644 index dc80356..0000000 --- a/node_modules/less/test/less-bom/errors/property-interp-not-defined.txt +++ /dev/null @@ -1,2 +0,0 @@ -NameError: variable @color is undefined in {path}property-interp-not-defined.less on line 1, column 12: -1 a {outline-@{color}: green} diff --git a/node_modules/less/test/less-bom/errors/recursive-variable.less b/node_modules/less/test/less-bom/errors/recursive-variable.less deleted file mode 100644 index c47b8b6..0000000 --- a/node_modules/less/test/less-bom/errors/recursive-variable.less +++ /dev/null @@ -1 +0,0 @@ -@bodyColor: darken(@bodyColor, 30%); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/recursive-variable.txt b/node_modules/less/test/less-bom/errors/recursive-variable.txt deleted file mode 100644 index eb616e7..0000000 --- a/node_modules/less/test/less-bom/errors/recursive-variable.txt +++ /dev/null @@ -1,2 +0,0 @@ -NameError: Recursive variable definition for @bodyColor in {path}recursive-variable.less on line 1, column 20: -1 @bodyColor: darken(@bodyColor, 30%); diff --git a/node_modules/less/test/less-bom/errors/root-func-undefined-1.less b/node_modules/less/test/less-bom/errors/root-func-undefined-1.less deleted file mode 100644 index df6b470..0000000 --- a/node_modules/less/test/less-bom/errors/root-func-undefined-1.less +++ /dev/null @@ -1 +0,0 @@ -func(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/root-func-undefined-1.txt b/node_modules/less/test/less-bom/errors/root-func-undefined-1.txt deleted file mode 100644 index a07480e..0000000 --- a/node_modules/less/test/less-bom/errors/root-func-undefined-1.txt +++ /dev/null @@ -1,2 +0,0 @@ -SyntaxError: Function 'func' is undefined in {path}root-func-undefined-1.less on line 1, column 1: -1 func(); diff --git a/node_modules/less/test/less-bom/errors/root-func-undefined-2.less b/node_modules/less/test/less-bom/errors/root-func-undefined-2.less deleted file mode 100644 index 4a7f52a..0000000 --- a/node_modules/less/test/less-bom/errors/root-func-undefined-2.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes.js"; -test-undefined(); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/root-func-undefined-2.txt b/node_modules/less/test/less-bom/errors/root-func-undefined-2.txt deleted file mode 100644 index 031385d..0000000 --- a/node_modules/less/test/less-bom/errors/root-func-undefined-2.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Function 'test-undefined' is undefined in {path}root-func-undefined-2.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes.js"; -2 test-undefined(); diff --git a/node_modules/less/test/less-bom/errors/single-character.less b/node_modules/less/test/less-bom/errors/single-character.less deleted file mode 100644 index b18d454..0000000 --- a/node_modules/less/test/less-bom/errors/single-character.less +++ /dev/null @@ -1 +0,0 @@ -x \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/single-character.txt b/node_modules/less/test/less-bom/errors/single-character.txt deleted file mode 100644 index b9e49a5..0000000 --- a/node_modules/less/test/less-bom/errors/single-character.txt +++ /dev/null @@ -1,2 +0,0 @@ -ParseError: Unrecognised input. Possibly missing something in {path}single-character.less on line 1, column 2: -1 x diff --git a/node_modules/less/test/less-bom/errors/svg-gradient1.less b/node_modules/less/test/less-bom/errors/svg-gradient1.less deleted file mode 100644 index 4cfbbd5..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient1.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - a: svg-gradient(horizontal, black, white); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/svg-gradient1.txt b/node_modules/less/test/less-bom/errors/svg-gradient1.txt deleted file mode 100644 index ec662fe..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient1.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient1.less on line 2, column 6: -1 .a { -2 a: svg-gradient(horizontal, black, white); -3 } diff --git a/node_modules/less/test/less-bom/errors/svg-gradient2.less b/node_modules/less/test/less-bom/errors/svg-gradient2.less deleted file mode 100644 index 04cacae..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient2.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - a: svg-gradient(to bottom, black, orange, 45%, white); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/svg-gradient2.txt b/node_modules/less/test/less-bom/errors/svg-gradient2.txt deleted file mode 100644 index 1f2e1bf..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient2.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list in {path}svg-gradient2.less on line 2, column 6: -1 .a { -2 a: svg-gradient(to bottom, black, orange, 45%, white); -3 } diff --git a/node_modules/less/test/less-bom/errors/svg-gradient3.less b/node_modules/less/test/less-bom/errors/svg-gradient3.less deleted file mode 100644 index a0197a8..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient3.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - a: svg-gradient(black, orange); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/svg-gradient3.txt b/node_modules/less/test/less-bom/errors/svg-gradient3.txt deleted file mode 100644 index f77a353..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient3.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient3.less on line 2, column 6: -1 .a { -2 a: svg-gradient(black, orange); -3 } diff --git a/node_modules/less/test/less-bom/errors/svg-gradient4.less b/node_modules/less/test/less-bom/errors/svg-gradient4.less deleted file mode 100644 index 6db7f05..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient4.less +++ /dev/null @@ -1,4 +0,0 @@ -.a { - a: svg-gradient(horizontal, @colors); -} -@colors: black, white; diff --git a/node_modules/less/test/less-bom/errors/svg-gradient4.txt b/node_modules/less/test/less-bom/errors/svg-gradient4.txt deleted file mode 100644 index c0d41e9..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient4.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient4.less on line 2, column 6: -1 .a { -2 a: svg-gradient(horizontal, @colors); -3 } diff --git a/node_modules/less/test/less-bom/errors/svg-gradient5.less b/node_modules/less/test/less-bom/errors/svg-gradient5.less deleted file mode 100644 index 8accd63..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient5.less +++ /dev/null @@ -1,4 +0,0 @@ -.a { - a: svg-gradient(to bottom, @colors); -} -@colors: black, orange, 45%, white; diff --git a/node_modules/less/test/less-bom/errors/svg-gradient5.txt b/node_modules/less/test/less-bom/errors/svg-gradient5.txt deleted file mode 100644 index 41f8f46..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient5.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list in {path}svg-gradient5.less on line 2, column 6: -1 .a { -2 a: svg-gradient(to bottom, @colors); -3 } diff --git a/node_modules/less/test/less-bom/errors/svg-gradient6.less b/node_modules/less/test/less-bom/errors/svg-gradient6.less deleted file mode 100644 index 449bf1b..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient6.less +++ /dev/null @@ -1,4 +0,0 @@ -.a { - a: svg-gradient(black, @colors); -} -@colors: orange; diff --git a/node_modules/less/test/less-bom/errors/svg-gradient6.txt b/node_modules/less/test/less-bom/errors/svg-gradient6.txt deleted file mode 100644 index 2ce85cf..0000000 --- a/node_modules/less/test/less-bom/errors/svg-gradient6.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient6.less on line 2, column 6: -1 .a { -2 a: svg-gradient(black, @colors); -3 } diff --git a/node_modules/less/test/less-bom/errors/unit-function.less b/node_modules/less/test/less-bom/errors/unit-function.less deleted file mode 100644 index 7a6d761..0000000 --- a/node_modules/less/test/less-bom/errors/unit-function.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - font-size: unit(80/16,rem); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/errors/unit-function.txt b/node_modules/less/test/less-bom/errors/unit-function.txt deleted file mode 100644 index baf90f4..0000000 --- a/node_modules/less/test/less-bom/errors/unit-function.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `unit`: the first argument to unit must be a number. Have you forgotten parenthesis? in {path}unit-function.less on line 2, column 14: -1 .a { -2 font-size: unit(80/16,rem); -3 } diff --git a/node_modules/less/test/less-bom/extend-chaining.less b/node_modules/less/test/less-bom/extend-chaining.less deleted file mode 100644 index 26a4724..0000000 --- a/node_modules/less/test/less-bom/extend-chaining.less +++ /dev/null @@ -1,91 +0,0 @@ -//very simple chaining -.a { - color: black; -} -.b:extend(.a) {} -.c:extend(.b) {} - -//very simple chaining, ordering not important - -.d:extend(.e) {} -.e:extend(.f) {} -.f { - color: black; -} - -//extend with all - -.g.h { - color: black; -} -.i.j:extend(.g all) { - color: white; -} -.k:extend(.i all) {} - -//extend multi-chaining - -.l { - color: black; -} -.m:extend(.l){} -.n:extend(.m){} -.o:extend(.n){} -.p:extend(.o){} -.q:extend(.p){} -.r:extend(.q){} -.s:extend(.r){} -.t:extend(.s){} - -// self referencing is ignored - -.u {color: black;} -.v.u.v:extend(.u all){} - -// circular reference because the new extend product will match the existing extend - -.w:extend(.w) {color: black;} -.v.w.v:extend(.w all){} - -// classic circular references - -.x:extend(.z) { - color: x; -} -.y:extend(.x) { - color: y; -} -.z:extend(.y) { - color: z; -} - -//very simple chaining, but with the extend inside the ruleset -.va { - color: black; -} -.vb { - &:extend(.va); - color: white; -} -.vc { - &:extend(.vb); -} - -// media queries - don't extend outside, do extend inside - -@media tv { - .ma:extend(.a,.b,.c,.d,.e,.f,.g,.h,.i,.j,.k,.l,.m,.n,.o,.p,.q,.r,.s,.t,.u,.v,.w,.x,.y,.z,.md) { - color: black; - } - .md { - color: white; - } - @media plasma { - .me, .mf { - &:extend(.mb,.md); - background: red; - } - } -} -.mb:extend(.ma) {}; -.mc:extend(.mb) {}; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/extend-clearfix.less b/node_modules/less/test/less-bom/extend-clearfix.less deleted file mode 100644 index 77a885d..0000000 --- a/node_modules/less/test/less-bom/extend-clearfix.less +++ /dev/null @@ -1,19 +0,0 @@ -.clearfix { - *zoom: 1; - &:after { - content: ''; - display: block; - clear: both; - height: 0; - } -} - -.foo { - &:extend(.clearfix all); - color: red; -} - -.bar { - &:extend(.clearfix all); - color: blue; -} diff --git a/node_modules/less/test/less-bom/extend-exact.less b/node_modules/less/test/less-bom/extend-exact.less deleted file mode 100644 index 62e5345..0000000 --- a/node_modules/less/test/less-bom/extend-exact.less +++ /dev/null @@ -1,46 +0,0 @@ -.replace.replace, -.c.replace + .replace { - .replace, - .c { - prop: copy-paste-replace; - } -} -.rep_ace:extend(.replace.replace .replace) {} - -.a .b .c { - prop: not_effected; -} - -.a { - prop: is_effected; - .b { - prop: not_effected; - } - .b.c { - prop: not_effected; - } -} - -.c, .a { - .b, .a { - .a, .c { - prop: not_effected; - } - } -} - -.effected { - &:extend(.a); - &:extend(.b); - &:extend(.c); -} - -.e { - && { - prop: extend-double; - &:hover { - hover: not-extended; - } - } -} -.dbl:extend(.e.e) {} diff --git a/node_modules/less/test/less-bom/extend-media.less b/node_modules/less/test/less-bom/extend-media.less deleted file mode 100644 index 01165de..0000000 --- a/node_modules/less/test/less-bom/extend-media.less +++ /dev/null @@ -1,24 +0,0 @@ -.ext1 .ext2 { - background: black; -} - -@media tv { - .ext1 .ext3 { - color: white; - } - .tv-lowres :extend(.ext1 all) { - background: blue; - } - @media hires { - .ext1 .ext4 { - color: green; - } - .tv-hires :extend(.ext1 all) { - background: red; - } - } -} - -.all:extend(.ext1 all) { - -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/extend-nest.less b/node_modules/less/test/less-bom/extend-nest.less deleted file mode 100644 index 03e16c7..0000000 --- a/node_modules/less/test/less-bom/extend-nest.less +++ /dev/null @@ -1,65 +0,0 @@ -.sidebar { - width: 300px; - background: red; - - .box { - background: #FFF; - border: 1px solid #000; - margin: 10px 0; - } -} - -.sidebar2 { - &:extend(.sidebar all); - background: blue; -} - -.type1 { - .sidebar3 { - &:extend(.sidebar all); - background: green; - } -} - -.type2 { - &.sidebar4 { - &:extend(.sidebar all); - background: red; - } -} - -.button { - color: black; - &:hover { - color: white; - } -} -.submit { - &:extend(.button); - &:hover:extend(.button:hover) {} -} - -.nomatch { - &:hover:extend(.button :hover) {} -} - -.button2 { - :hover { - nested: white; - } -} -.button2 :hover { - notnested: black; -} - -.nomatch :extend(.button2:hover) {} - -.amp-test-a, -.amp-test-b { - .amp-test-c &.amp-test-d&.amp-test-e { - .amp-test-f&+&.amp-test-g:extend(.amp-test-h) {} - } -} -.amp-test-h { - test: extended by masses of selectors; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/extend-selector.less b/node_modules/less/test/less-bom/extend-selector.less deleted file mode 100644 index 9fd6631..0000000 --- a/node_modules/less/test/less-bom/extend-selector.less +++ /dev/null @@ -1,110 +0,0 @@ -.error { - border: 1px #f00; - background: #fdd; -} -.error.intrusion { - font-size: 1.3em; - font-weight: bold; -} -.intrusion .error { - display: none; -} -.badError:extend(.error all) { - border-width: 3px; -} - -.foo .bar, .foo .baz { - display: none; -} - -.ext1 .ext2 - :extend(.foo all) { -} - -.ext3:extend(.foo all), -.ext4:extend(.foo all) { -} - -div.ext5, -.ext6 > .ext5 { - width: 100px; -} - -.should-not-exist-in-output, -.ext7:extend(.ext5 all) { -} - -.ext { - test: 1; -} -// same as -// .a .c:extend(.ext all) -// .b .c:extend(.ext all) -// .a .c .d -// .b .c .d -.a, .b { - test: 2; - .c:extend(.ext all) { - test: 3; - .d { - test: 4; - } - } -} - -.replace.replace, -.c.replace + .replace { - .replace, - .c { - prop: copy-paste-replace; - } -} -.rep_ace:extend(.replace all) {} - -.attributes { - [data="test"] { - extend: attributes; - } - .attribute-test { - &:extend([data="test"] all); - } - [data] { - extend: attributes2; - } - .attribute-test2 { - &:extend([data] all); //you could argue it should match [data="test"]... not for now though... - } - @attr-data: "test3"; - [data=@{attr-data}] { - extend: attributes2; - } - .attribute-test { - &:extend([data="test3"] all); - } -} - -.header { - .header-nav { - background: red; - &:before { - background: blue; - } - } -} - -.footer { - .footer-nav { - &:extend( .header .header-nav all ); - } -} - -.issue-2586-bordered { - border: solid 1px black; -} -.issue-2586-somepage { - .content:extend(.issue-2586-bordered) { - &>span { - margin-bottom: 10px; - } - } -} diff --git a/node_modules/less/test/less-bom/extend.less b/node_modules/less/test/less-bom/extend.less deleted file mode 100644 index 366c2df..0000000 --- a/node_modules/less/test/less-bom/extend.less +++ /dev/null @@ -1,81 +0,0 @@ -.error { - border: 1px #f00; - background: #fdd; -} -.error.intrusion { - font-size: 1.3em; - font-weight: bold; -} -.intrusion .error { - display: none; -} -.badError { - &:extend(.error all); - border-width: 3px; -} - -.foo .bar, .foo .baz { - display: none; -} - -.ext1 .ext2 { - &:extend(.foo all); -} - -.ext3, -.ext4 { - &:extend(.foo all); - &:extend(.bar all); -} - -div.ext5, -.ext6 > .ext5 { - width: 100px; -} - -.ext7 { - &:extend(.ext5 all); -} - -.ext8.ext9 { - result: add-foo; -} -.ext8 .ext9, -.ext8 + .ext9, -.ext8 > .ext9 { - result: bar-matched; -} -.ext8.nomatch { - result: none; -} -.ext8 { - .ext9 { - result: match-nested-bar; - } -} -.ext8 { - &.ext9 { - result: match-nested-foo; - } -} - -.fuu:extend(.ext8.ext9 all) {} -.buu:extend(.ext8 .ext9 all) {} -.zap:extend(.ext8 + .ext9 all) {} -.zoo:extend(.ext8 > .ext9 all) {} - -.aa { - color: black; - .dd { - background: red; - } -} -.bb { - background: red; - .bb { - color: black; - } -} -.cc:extend(.aa,.bb) {} -.ee:extend(.dd all,.bb) {} -.ff:extend(.dd,.bb all) {} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/extract-and-length.less b/node_modules/less/test/less-bom/extract-and-length.less deleted file mode 100644 index 8754102..0000000 --- a/node_modules/less/test/less-bom/extract-and-length.less +++ /dev/null @@ -1,133 +0,0 @@ - -// simple array/list: - -.multiunit { - @v: abc "abc" 1 1px 1% #123; - length: length(@v); - extract: extract(@v, 1) extract(@v, 2) extract(@v, 3) extract(@v, 4) extract(@v, 5) extract(@v, 6); -} - -.incorrect-index { - @v1: a b c; - @v2: a, b, c; - v1: extract(@v1, 5); - v2: extract(@v2, -2); -} - -.scalar { - @var: variable; - var-value: extract(@var, 1); - var-length: length(@var); - ill-index: extract(@var, 2); - - name-value: extract(name, 1); - string-value: extract("string", 1); - number-value: extract(12345678, 1); - color-value: extract(blue, 1); - rgba-value: extract(rgba(80, 160, 240, 0.67), 1); - empty-value: extract(~'', 1); - - name-length: length(name); - string-length: length("string"); - number-length: length(12345678); - color-length: length(blue); - rgba-length: length(rgba(80, 160, 240, 0.67)); - empty-length: length(~''); -} - -.mixin-arguments { - .mixin-args(a b c d); - .mixin-args(a, b, c, d); - .mixin-args(1; 2; 3; 4); -} - -.mixin-args(@value) { - &-1 { - length: length(@value); - extract: extract(@value, 3) ~"|" extract(@value, 2) ~"|" extract(@value, 1); - } -} - -.mixin-args(...) { - &-2 { - length: length(@arguments); - extract: extract(@arguments, 3) ~"|" extract(@arguments, 2) ~"|" extract(@arguments, 1); - } -} - -.mixin-args(@values...) { - &-3 { - length: length(@values); - extract: extract(@values, 3) ~"|" extract(@values, 2) ~"|" extract(@values, 1); - } -} - -.mixin-args(@head, @tail...) { - &-4 { - length: length(@tail); - extract: extract(@tail, 2) ~"|" extract(@tail, 1); - } -} - -// "multidimensional" array/list - -.md-space-comma { - @v: a b c, 1 2 3, "x" "y" "z"; - length-1: length(@v); - extract-1: extract(@v, 2); - length-2: length(extract(@v, 2)); - extract-2: extract(extract(@v, 2), 2); - - &-as-args {.mixin-args(a b c, 1 2 3, "x" "y" "z")} -} - -.md-cat-space-comma { - @a: a b c; - @b: 1 2 3; - @c: "x" "y" "z"; - @v: @a, @b, @c; - length-1: length(@v); - extract-1: extract(@v, 2); - length-2: length(extract(@v, 2)); - extract-2: extract(extract(@v, 2), 2); - - &-as-args {.mixin-args(@a, @b, @c)} -} - -.md-cat-comma-space { - @a: a, b, c; - @b: 1, 2, 3; - @c: "x", "y", "z"; - @v: @a @b @c; - length-1: length(@v); - extract-1: extract(@v, 2); - length-2: length(extract(@v, 2)); - extract-2: extract(extract(@v, 2), 2); - - &-as-args {.mixin-args(@a @b @c)} -} - -.md-3D { - @a: a b c d, 1 2 3 4; - @b: 5 6 7 8, e f g h; - .3D(@a, @b); - - .3D(...) { - - @v1: @arguments; - length-1: length(@v1); - extract-1: extract(@v1, 1); - - @v2: extract(@v1, 2); - length-2: length(@v2); - extract-2: extract(@v2, 1); - - @v3: extract(@v2, 1); - length-3: length(@v3); - extract-3: extract(@v3, 3); - - @v4: extract(@v3, 4); - length-4: length(@v4); - extract-4: extract(@v4, 1); - } -} diff --git a/node_modules/less/test/less-bom/filemanagerPlugin/colors.test b/node_modules/less/test/less-bom/filemanagerPlugin/colors.test deleted file mode 100644 index 3d86b9f..0000000 --- a/node_modules/less/test/less-bom/filemanagerPlugin/colors.test +++ /dev/null @@ -1 +0,0 @@ -@color: red; diff --git a/node_modules/less/test/less-bom/filemanagerPlugin/filemanager.less b/node_modules/less/test/less-bom/filemanagerPlugin/filemanager.less deleted file mode 100644 index 3d206cb..0000000 --- a/node_modules/less/test/less-bom/filemanagerPlugin/filemanager.less +++ /dev/null @@ -1,4 +0,0 @@ -@import "test.test"; -.test { - color: @color; -} diff --git a/node_modules/less/test/less-bom/functions.less b/node_modules/less/test/less-bom/functions.less deleted file mode 100644 index 1c0ada6..0000000 --- a/node_modules/less/test/less-bom/functions.less +++ /dev/null @@ -1,232 +0,0 @@ -#functions { - @var: 10; - @colors: #000, #fff; - color: _color("evil red"); // #660000 - width: increment(15); - height: undefined("self"); - border-width: add(2, 3); - variable: increment(@var); - background: linear-gradient(@colors); -} - -#built-in { - @r: 32; - escaped: e("-Some::weird(#thing, y)"); - lighten: lighten(#ff0000, 40%); - lighten-relative: lighten(#ff0000, 40%, relative); - darken: darken(#ff0000, 40%); - darken-relative: darken(#ff0000, 40%, relative); - saturate: saturate(#29332f, 20%); - saturate-relative: saturate(#29332f, 20%, relative); - desaturate: desaturate(#203c31, 20%); - desaturate-relative: desaturate(#203c31, 20%, relative); - greyscale: greyscale(#203c31); - hsl-clamp: hsl(380, 150%, 150%); - spin-p: spin(hsl(340, 50%, 50%), 40); - spin-n: spin(hsl(30, 50%, 50%), -40); - luma-white: luma(#fff); - luma-black: luma(#000); - luma-black-alpha: luma(rgba(0,0,0,0.5)); - luma-red: luma(#ff0000); - luma-green: luma(#00ff00); - luma-blue: luma(#0000ff); - luma-yellow: luma(#ffff00); - luma-cyan: luma(#00ffff); - luma-differs-from-luminance: luma(#ff3600); - luminance-white: luma(#fff); - luminance-black: luma(#000); - luminance-black-alpha: luma(rgba(0,0,0,0.5)); - luminance-red: luma(#ff0000); - luminance-differs-from-luma: luminance(#ff3600); - contrast-filter: contrast(30%); - saturate-filter: saturate(5%); - contrast-white: contrast(#fff); - contrast-black: contrast(#000); - contrast-red: contrast(#ff0000); - contrast-green: contrast(#00ff00); - contrast-blue: contrast(#0000ff); - contrast-yellow: contrast(#ffff00); - contrast-cyan: contrast(#00ffff); - contrast-light: contrast(#fff, #111111, #eeeeee); - contrast-dark: contrast(#000, #111111, #eeeeee); - contrast-wrongorder: contrast(#fff, #eeeeee, #111111, 0.5); - contrast-light-thresh: contrast(#fff, #111111, #eeeeee, 0.5); - contrast-dark-thresh: contrast(#000, #111111, #eeeeee, 0.5); - contrast-high-thresh: contrast(#555, #111111, #eeeeee, 0.6); - contrast-low-thresh: contrast(#555, #111111, #eeeeee, 0.09); - contrast-light-thresh-per: contrast(#fff, #111111, #eeeeee, 50%); - contrast-dark-thresh-per: contrast(#000, #111111, #eeeeee, 50%); - contrast-high-thresh-per: contrast(#555, #111111, #eeeeee, 60%); - contrast-low-thresh-per: contrast(#555, #111111, #eeeeee, 9%); - replace: replace("Hello, Mars.", "Mars\.", "World!"); - replace-captured: replace("This is a string.", "(string)\.$", "new $1."); - replace-with-flags: replace("One + one = 4", "one", "2", "gi"); - replace-single-quoted: replace('foo-1', "1", "2"); - replace-escaped-string: replace(~"bar-1", "1", "2"); - replace-keyword: replace(baz-1, "1", "2"); - replace-with-color: replace("007", "0", #135, g); - replace-with-number: replace("007", "0", 2em); - format: %("rgb(%d, %d, %d)", @r, 128, 64); - format-string: %("hello %s", "world"); - format-multiple: %("hello %s %d", "earth", 2); - format-url-encode: %("red is %A", #ff0000); - format-single-quoted: %('hello %s', "single world"); - format-escaped-string: %(~"hello %s", "escaped world"); - format-color-as-string: %("%s", #123); - format-number-as-string: %("%s", 4px); - eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64)); - - unitless: unit(12px); - unit: unit((13px + 1px), em); - unitpercentage: unit(100, %); - - get-unit: get-unit(10px); - get-unit-empty: get-unit(10); - - hue: hue(hsl(98, 12%, 95%)); - saturation: saturation(hsl(98, 12%, 95%)); - lightness: lightness(hsl(98, 12%, 95%)); - hsvhue: hsvhue(hsv(98, 12%, 95%)); - hsvsaturation: hsvsaturation(hsv(98, 12%, 95%)); - hsvvalue: hsvvalue(hsv(98, 12%, 95%)); - red: red(#f00); - green: green(#0f0); - blue: blue(#00f); - rounded: round((@r/3)); - rounded-two: round((@r/3), 2); - roundedpx: round((10px / 3)); - roundedpx-three: round((10px / 3), 3); - rounded-percentage: round(10.2%); - ceil: ceil(10.1px); - floor: floor(12.9px); - sqrt: sqrt(25px); - pi: pi(); - mod: mod(13m, 11cm); // could take into account units, doesn't at the moment - abs: abs(-4%); - tan: tan(42deg); - sin: sin(10deg); - cos: cos(12); - atan: atan(tan(0.1rad)); - atan: convert(acos(cos(34deg)), deg); - atan: convert(acos(cos(50grad)), deg); - pow: pow(8px, 2); - pow: pow(4, 3); - pow: pow(3, 3em); - min: min(0); - min: min(6, 5); - min: min(1pt, 3pt); - min: min(1cm, 3mm); - max: max(1, 3); - max: max(3em, 1em, 2em, 5em); - percentage: percentage((10px / 50)); - color-quoted-digit: color("#dda0dd"); - color-quoted-keyword: color("plum"); - color-color: color(#dda0dd); - color-keyword: color(plum); - tint: tint(#777777, 13); - tint-full: tint(#777777, 100); - tint-percent: tint(#777777, 13%); - tint-negative: tint(#777777, -13%); - shade: shade(#777777, 13); - shade-full: shade(#777777, 100); - shade-percent: shade(#777777, 13%); - shade-negative: shade(#777777, -13%); - - fade-out: fadeout(red, 5%); // support fadeOut and fadeout - fade-in: fadein(fadeout(red, 10%), 5%); - fade-out-relative: fadeout(red, 5%,relative); - fade-in-relative: fadein(fadeout(red, 10%, relative), 5%, relative); - fade-out2: fadeout(fadeout(red, 50%), 50%); - fade-out2-relative: fadeout(fadeout(red, 50%, relative), 50%, relative); - - hsv: hsv(5, 50%, 30%); - hsva: hsva(3, 50%, 30%, 0.2); - - mix: mix(#ff0000, #ffff00, 80); - mix-0: mix(#ff0000, #ffff00, 0); - mix-100: mix(#ff0000, #ffff00, 100); - mix-weightless: mix(#ff0000, #ffff00); - mixt: mix(#ff0000, transparent); - - .is-a { - @rules: { - color: red; - }; - ruleset: isruleset(@rules); - color: iscolor(#ddd); - color1: iscolor(red); - color2: iscolor(rgb(0, 0, 0)); - color3: iscolor(transparent); - keyword: iskeyword(hello); - number: isnumber(32); - string: isstring("hello"); - pixel: ispixel(32px); - percent: ispercentage(32%); - em: isem(32em); - cat: isunit(32cat, cat); - no-unit-is-empty: isunit(32, ''); - case-insensitive-1: isunit(32CAT, cat); - case-insensitive-2: isunit(32px, PX); - } -} - -#alpha { - alpha: darken(hsla(25, 50%, 50%, 0.6), 10%); - alpha2: alpha(rgba(3, 4, 5, 0.5)); - alpha3: alpha(transparent); -} - -#blendmodes { - multiply: multiply(#f60000, #f60000); - screen: screen(#f60000, #0000f6); - overlay: overlay(#f60000, #0000f6); - softlight: softlight(#f60000, #ffffff); - hardlight: hardlight(#f60000, #0000f6); - difference: difference(#f60000, #0000f6); - exclusion: exclusion(#f60000, #0000f6); - average: average(#f60000, #0000f6); - negation: negation(#f60000, #313131); -} - -#extract-and-length { - @anon: A B C 1 2 3; - extract: extract(@anon, 6) extract(@anon, 5) extract(@anon, 4) extract(@anon, 3) extract(@anon, 2) extract(@anon, 1); - length: length(@anon); -} - -#quoted-functions-in-mixin { - // Quoted type may have some weird side-effects when used in mixins (#2308) - .mixin(); - .mixin() { - replace-double-quoted: replace('foo-1', "1", "2"); - replace-single-quoted: replace('foo-3', "3", "4"); - replace-escaped-string: replace(~"bar-1", "1", "2"); - replace-keyword: replace(baz-1, "1", "2"); - replace-anonymous: replace(e("qux-1"), "1", "2"); - format-double-quoted: %("hello %s", "world"); - format-single-quoted: %('hello %s', "single world"); - format-escaped-string: %(~"hello %s", "escaped world"); - format-keyword: %(hello); - format-anonymous: %(e("hello %s"), "anonymous world"); - } -} - -#list-details { - @list: - a 1, // Some comment - b 2; - - length: length(@list); - one: extract(@list, 1); - @two: extract(@list, 2); - two: @two; - two-length: length(@two); - two-one: extract(@two, 1); - two-two: extract(@two, 2); -} -@color1: #FFF;/* comment1 */ -@color2: #FFF/* comment2 */; -html { - color: mix(blue, @color1, 50%); - color: mix(blue, @color2, 50%); -} diff --git a/node_modules/less/test/less-bom/globalVars/extended.json b/node_modules/less/test/less-bom/globalVars/extended.json deleted file mode 100644 index 6bd2a48..0000000 --- a/node_modules/less/test/less-bom/globalVars/extended.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "the-border": "1px", - "base-color": "#111", - "red": "#842210" -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/globalVars/extended.less b/node_modules/less/test/less-bom/globalVars/extended.less deleted file mode 100644 index 9f90a96..0000000 --- a/node_modules/less/test/less-bom/globalVars/extended.less +++ /dev/null @@ -1,10 +0,0 @@ -#header { - color: (@base-color * 3); - border-left: @the-border; - border-right: (@the-border * 2); -} -#footer { - color: (@base-color + #003300); - border-color: @red; -} -@red: desaturate(red, 10%); // less file overrides passed in color <- note line comment on last line to check it is okay \ No newline at end of file diff --git a/node_modules/less/test/less-bom/globalVars/simple.json b/node_modules/less/test/less-bom/globalVars/simple.json deleted file mode 100644 index 2bccdc5..0000000 --- a/node_modules/less/test/less-bom/globalVars/simple.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "my-color": "red" -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/globalVars/simple.less b/node_modules/less/test/less-bom/globalVars/simple.less deleted file mode 100644 index 9fa965f..0000000 --- a/node_modules/less/test/less-bom/globalVars/simple.less +++ /dev/null @@ -1,3 +0,0 @@ -.class { - color: @my-color; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/ie-filters.less b/node_modules/less/test/less-bom/ie-filters.less deleted file mode 100644 index 8e64a2d..0000000 --- a/node_modules/less/test/less-bom/ie-filters.less +++ /dev/null @@ -1,15 +0,0 @@ -@fat: 0; -@cloudhead: "#000000"; - -.nav { - filter: progid:DXImageTransform.Microsoft.Alpha(opacity = 20); - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=@fat); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#333333", endColorstr=@cloudhead, GradientType=@fat); -} -.evalTest(@arg) { - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=@arg); -} -.evalTest1 { - .evalTest(30); - .evalTest(5); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import-inline.less b/node_modules/less/test/less-bom/import-inline.less deleted file mode 100644 index 6506d94..0000000 --- a/node_modules/less/test/less-bom/import-inline.less +++ /dev/null @@ -1,3 +0,0 @@ -@import url("import/import-test-c.less");// import inline should not float above this #1954 -@import (inline) url("import/import-test-d.css") (min-width:600px); -@import (inline, css) url("import/invalid-css.less"); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import-interpolation.less b/node_modules/less/test/less-bom/import-interpolation.less deleted file mode 100644 index 47d22a3..0000000 --- a/node_modules/less/test/less-bom/import-interpolation.less +++ /dev/null @@ -1,8 +0,0 @@ -@my_theme: "test"; - -@import "import/import-@{my_theme}-e.less"; - -@import "import/import-@{in}@{terpolation}.less"; - -@import "import/interpolation-vars.less"; - diff --git a/node_modules/less/test/less-bom/import-once.less b/node_modules/less/test/less-bom/import-once.less deleted file mode 100644 index 079c569..0000000 --- a/node_modules/less/test/less-bom/import-once.less +++ /dev/null @@ -1,6 +0,0 @@ -@import "import/import-once-test-c"; -@import "import/import-once-test-c"; -@import "import/import-once-test-c.less"; -@import "import/deeper/import-once-test-a"; -@import (multiple) "import/import-test-f.less"; -@import (multiple) "import/import-test-f.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import-reference-issues.less b/node_modules/less/test/less-bom/import-reference-issues.less deleted file mode 100644 index 232518b..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues.less +++ /dev/null @@ -1,50 +0,0 @@ -// Tests following past issues: -// * #1851 - Extend within (reference) imported files -// * #1896 - Namespace imported less code does not get properly referenced, when there's a (reference) keyword. -// * #1878 - extend inside referenced file should not extend outside selectors -// * #2716 - A file imported by reference and then normally - multiple imports should be independent -// * #1968 - When using an @import (reference), mixins that contain an & selector get added to the compiled output improperly -// * #2162 - Cannot put import by reference inside of a mixin (also doubles #1896) - -// #1878: extend inside referenced file should not extend outside selectors -@import (reference) "import-reference-issues/global-scope-import.less"; -.theOnlySelector { - shall-have: one selector; -} - -// #2716: A file imported by reference and then normally - multiple imports should be independent -// #1878: - double nested version -#do-not-show-import { - @import (reference, multiple) "import-reference-issues/multiple-import.less"; -} - -show-all-content { - @import (multiple) "import-reference-issues/multiple-import.less"; -} -// #1896: Namespace imported less code does not get properly referenced, when there's a (reference) keyword. -#Namespace { - @import (less, reference) "import-reference-issues/simple-mixin.css"; -} -#used-namespaced-mixin { - #Namespace > .mixin(); - shall-see: another property above; -} - -// #1851: Extend within (reference) imported files -// test-b is in global-scope-import.less file -.test-c { - &:extend(.test-b all); -} - -// #1968: When using an @import (reference), mixins that contain an & selector get added to the compiled output improperly -@import "import-reference-issues/mixin-1968.less"; -@import (reference) "import-reference-issues/appender-reference-1968.less"; - -// #2162 - Cannot put import by reference inside of a mixin (also doubles #1896) -.mixin-with-import-by-reference-inside() { - the-only-property: nothing-below-this; - @import (reference) "import-reference-issues/simple-ruleset-2162.less"; -} -call-mixin-with-import-by-reference-inside { - .mixin-with-import-by-reference-inside(); -} diff --git a/node_modules/less/test/less-bom/import-reference-issues/appender-reference-1968.less b/node_modules/less/test/less-bom/import-reference-issues/appender-reference-1968.less deleted file mode 100644 index 0ef1aac..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues/appender-reference-1968.less +++ /dev/null @@ -1,6 +0,0 @@ -.container-no-parent-selector { - .mixin-no-parent-selector(); -} -.container-with-parent-selector { - .mixin-with-parent-selector() -} diff --git a/node_modules/less/test/less-bom/import-reference-issues/global-scope-import.less b/node_modules/less/test/less-bom/import-reference-issues/global-scope-import.less deleted file mode 100644 index fded865..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues/global-scope-import.less +++ /dev/null @@ -1,13 +0,0 @@ -.theOnlySelector { - avoid: warning; -} -.unusedAndReference:extend(.theOnlySelector) { - unused-and: reference; -} - -@import (reference) "global-scope-nested.less"; - -.test-b { - background-color: green; - &:extend(.test-a all); -} diff --git a/node_modules/less/test/less-bom/import-reference-issues/global-scope-nested.less b/node_modules/less/test/less-bom/import-reference-issues/global-scope-nested.less deleted file mode 100644 index cd2fe42..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues/global-scope-nested.less +++ /dev/null @@ -1,3 +0,0 @@ -.test-a { - color: red; -} diff --git a/node_modules/less/test/less-bom/import-reference-issues/mixin-1968.less b/node_modules/less/test/less-bom/import-reference-issues/mixin-1968.less deleted file mode 100644 index 0c624a6..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues/mixin-1968.less +++ /dev/null @@ -1,8 +0,0 @@ -.mixin-no-parent-selector() { - background-color: red; -} -.mixin-with-parent-selector() { - &:first-child{ // USING AN & SELECTOR HERE - background-color: blue; - } -} diff --git a/node_modules/less/test/less-bom/import-reference-issues/multiple-import-nested.less b/node_modules/less/test/less-bom/import-reference-issues/multiple-import-nested.less deleted file mode 100644 index f0496aa..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues/multiple-import-nested.less +++ /dev/null @@ -1,12 +0,0 @@ -/* double nested file */ -should { - be: invisible; -} -/* do not extend outside of this */ -.something { - invisible: suppress warning; -} -.invisible { - &:extend(.something all); -} - diff --git a/node_modules/less/test/less-bom/import-reference-issues/multiple-import.less b/node_modules/less/test/less-bom/import-reference-issues/multiple-import.less deleted file mode 100644 index 46f99df..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues/multiple-import.less +++ /dev/null @@ -1,10 +0,0 @@ -/* - tralala -*/ -.fix { - fix: fix; -} -.something { - @import (reference) "multiple-import-nested.less"; - inside: something; -} diff --git a/node_modules/less/test/less-bom/import-reference-issues/simple-mixin.css b/node_modules/less/test/less-bom/import-reference-issues/simple-mixin.css deleted file mode 100644 index 7413ca6..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues/simple-mixin.css +++ /dev/null @@ -1,3 +0,0 @@ -.mixin { - was: included; -} diff --git a/node_modules/less/test/less-bom/import-reference-issues/simple-ruleset-2162.less b/node_modules/less/test/less-bom/import-reference-issues/simple-ruleset-2162.less deleted file mode 100644 index 942f0ba..0000000 --- a/node_modules/less/test/less-bom/import-reference-issues/simple-ruleset-2162.less +++ /dev/null @@ -1,3 +0,0 @@ -ruleset { - shall-be-invisible: less; -} diff --git a/node_modules/less/test/less-bom/import-reference.less b/node_modules/less/test/less-bom/import-reference.less deleted file mode 100644 index 3b6c75f..0000000 --- a/node_modules/less/test/less-bom/import-reference.less +++ /dev/null @@ -1,26 +0,0 @@ -@import (reference) url("import-once.less"); -@import (reference) url("css-3.less"); -@import (reference) url("media.less"); -@import (reference) url("import/import-reference.less"); -@import (reference) url("import/css-import.less"); - -.b { - .z(); -} - -.zz(); - -.visible:extend(.z all) { - extend: test; -} - -.test-mediaq-import { - .mixin-with-mediaq(340px); -} - -.class:extend(.class all) { -} -.mixin-with-nested-selectors(); -.mixin-with-directives(some-name); - -.print-referenced-import-inline(); diff --git a/node_modules/less/test/less-bom/import.less b/node_modules/less/test/less-bom/import.less deleted file mode 100644 index dd96b72..0000000 --- a/node_modules/less/test/less-bom/import.less +++ /dev/null @@ -1,31 +0,0 @@ -/** comment at the top**/ -@import url(http://fonts.googleapis.com/css?family=Open+Sans); - -@import url(/absolute/something.css) screen and (color) and (max-width: 600px); - -@import (optional) "file-does-not-exist.does-not-exist"; - -@var: 100px; -@import url("//ha.com/file.css") (min-width:@var); - -#import-test { - .mixin; - width: 10px; - height: (@a + 10%); -} -@import "import/import-test-e" screen and (max-width: 600px); - -@import url("import/import-test-a.less"); - -@import (less, multiple) "import/import-test-d.css" screen and (max-width: 601px); - -@import (multiple) "import/import-test-e" screen and (max-width: 602px); - -@import (less, multiple) url("import/import-test-d.css") screen and (max-width: 603px); - -@media print { - @import (multiple) "import/import-test-e"; -} - -@charset "UTF-8"; // climb on top #2126 - diff --git a/node_modules/less/test/less-bom/import/css-import.less b/node_modules/less/test/less-bom/import/css-import.less deleted file mode 100644 index 111302b..0000000 --- a/node_modules/less/test/less-bom/import/css-import.less +++ /dev/null @@ -1 +0,0 @@ -@import url("test.css"); diff --git a/node_modules/less/test/less-bom/import/deeper/deeper-2/url-import-2.less b/node_modules/less/test/less-bom/import/deeper/deeper-2/url-import-2.less deleted file mode 100644 index 1968e6d..0000000 --- a/node_modules/less/test/less-bom/import/deeper/deeper-2/url-import-2.less +++ /dev/null @@ -1,3 +0,0 @@ -.deep-import-url { - color: red; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/deeper/deeper-2/url-import.less b/node_modules/less/test/less-bom/import/deeper/deeper-2/url-import.less deleted file mode 100644 index 67adeec..0000000 --- a/node_modules/less/test/less-bom/import/deeper/deeper-2/url-import.less +++ /dev/null @@ -1 +0,0 @@ -@import url("url-import-2.less"); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/deeper/import-once-test-a.less b/node_modules/less/test/less-bom/import/deeper/import-once-test-a.less deleted file mode 100644 index 0563fa8..0000000 --- a/node_modules/less/test/less-bom/import/deeper/import-once-test-a.less +++ /dev/null @@ -1 +0,0 @@ -@import "../import-once-test-c"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/deeper/url-import.less b/node_modules/less/test/less-bom/import/deeper/url-import.less deleted file mode 100644 index bb6fd97..0000000 --- a/node_modules/less/test/less-bom/import/deeper/url-import.less +++ /dev/null @@ -1 +0,0 @@ -@import url("deeper-2/url-import.less"); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/import-and-relative-paths-test.less b/node_modules/less/test/less-bom/import/import-and-relative-paths-test.less deleted file mode 100644 index a0c6097..0000000 --- a/node_modules/less/test/less-bom/import/import-and-relative-paths-test.less +++ /dev/null @@ -1,17 +0,0 @@ -@import "../css/background.css"; -@import "import-test-d.css"; - -@import "imports/logo"; -@import "imports/font"; - -.unquoted-relative-path-bg() { - background-image: url(../../data/image.jpg); -} -.quoted-relative-path-border-image() { - border-image: url('../../data/image.jpg'); -} - -#imported-relative-path { - .unquoted-relative-path-bg; - .quoted-relative-path-border-image; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/import-charset-test.less b/node_modules/less/test/less-bom/import/import-charset-test.less deleted file mode 100644 index 3d36ce5..0000000 --- a/node_modules/less/test/less-bom/import/import-charset-test.less +++ /dev/null @@ -1 +0,0 @@ -@charset "ISO-8859-1"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/import-inline-invalid-css.less b/node_modules/less/test/less-bom/import/import-inline-invalid-css.less deleted file mode 100644 index fb8fd20..0000000 --- a/node_modules/less/test/less-bom/import/import-inline-invalid-css.less +++ /dev/null @@ -1 +0,0 @@ -@import (inline) "invalid-css.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/import-interpolation.less b/node_modules/less/test/less-bom/import/import-interpolation.less deleted file mode 100644 index 9194f7d..0000000 --- a/node_modules/less/test/less-bom/import/import-interpolation.less +++ /dev/null @@ -1,2 +0,0 @@ -@import (inline) "imports/logo.less"; -@import "import-@{in}@{terpolation}2.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/import-interpolation2.less b/node_modules/less/test/less-bom/import/import-interpolation2.less deleted file mode 100644 index d13083e..0000000 --- a/node_modules/less/test/less-bom/import/import-interpolation2.less +++ /dev/null @@ -1,5 +0,0 @@ -.a { - var: test; -} - -@in: "redefined-does-nothing"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/import-once-test-c.less b/node_modules/less/test/less-bom/import/import-once-test-c.less deleted file mode 100644 index f853146..0000000 --- a/node_modules/less/test/less-bom/import/import-once-test-c.less +++ /dev/null @@ -1,6 +0,0 @@ - -@c: red; - -#import { - color: @c; -} diff --git a/node_modules/less/test/less-bom/import/import-reference.less b/node_modules/less/test/less-bom/import/import-reference.less deleted file mode 100644 index 05cfc5b..0000000 --- a/node_modules/less/test/less-bom/import/import-reference.less +++ /dev/null @@ -1,98 +0,0 @@ -.z { - color: red; - .c { - color: green; - } -} -.only-with-visible, -.z { - color: green; - &:hover { - color: green; - } - & { - color: green; - } - & + & { - color: green; - .sub { - color: green; - } - } -} - -& { - .hidden { - hidden: true; - } -} - -@media tv { - .hidden { - hidden: true; - } -} - -/* comment is not output */ - -.zz { - .y { - pulled-in: yes /* inline comment survives */; - } - /* comment pulled in */ -} -@max-size: 450px; -.mixin-with-mediaq(@num) { - color: green; - test: @num; - @media (max-size: @max-size) { - color: red; - } -} -//https://github.com/less/less.js/issues/2359 -@supports (something: else) { - .class { - something: else; - } - .nestedToo { - .class { - something: else; - } - } - .invisible { - something: else; - } -} -//https://github.com/less/less.js/issues/1979 -.mixin-with-nested-selectors() { - .test { - color: red; - &:first-child { - color: blue; - } - } -} -.mixin-with-directives(@keyframeName) { - @keyframes @keyframeName { - @rules1(); - } - @supports (animation-name: test) { - @keyframes @keyframeName { - @rules2(); - } - .selector { - color: red; - } - } - @rules1: {property: value;}; - @rules2: {property: value;}; -} - -@import (inline, multiple) "invalid-css.less"; -@import "import-inline-invalid-css.less"; -.print-referenced-import-inline() { - div { - @import (inline, multiple) "invalid-css.less"; - } - @import (inline, multiple) "invalid-css.less"; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/import-test-a.less b/node_modules/less/test/less-bom/import/import-test-a.less deleted file mode 100644 index 5112500..0000000 --- a/node_modules/less/test/less-bom/import/import-test-a.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "import-test-b.less"; -@import url(import-test-f.less); -@import url("deeper/url-import.less"); -@a: 20%; -@import "urls.less"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/import-test-b.less b/node_modules/less/test/less-bom/import/import-test-b.less deleted file mode 100644 index 3a95572..0000000 --- a/node_modules/less/test/less-bom/import/import-test-b.less +++ /dev/null @@ -1,8 +0,0 @@ -@import "import-test-c"; - -@b: 100%; - -.mixin { - height: 10px; - color: @c; -} diff --git a/node_modules/less/test/less-bom/import/import-test-c.less b/node_modules/less/test/less-bom/import/import-test-c.less deleted file mode 100644 index f853146..0000000 --- a/node_modules/less/test/less-bom/import/import-test-c.less +++ /dev/null @@ -1,6 +0,0 @@ - -@c: red; - -#import { - color: @c; -} diff --git a/node_modules/less/test/less-bom/import/import-test-d.css b/node_modules/less/test/less-bom/import/import-test-d.css deleted file mode 100644 index 5e017ca..0000000 --- a/node_modules/less/test/less-bom/import/import-test-d.css +++ /dev/null @@ -1 +0,0 @@ -#css { color: yellow; } diff --git a/node_modules/less/test/less-bom/import/import-test-e.less b/node_modules/less/test/less-bom/import/import-test-e.less deleted file mode 100644 index 11eb469..0000000 --- a/node_modules/less/test/less-bom/import/import-test-e.less +++ /dev/null @@ -1,2 +0,0 @@ - -body { width: 100% } diff --git a/node_modules/less/test/less-bom/import/import-test-f.less b/node_modules/less/test/less-bom/import/import-test-f.less deleted file mode 100644 index 2c356a0..0000000 --- a/node_modules/less/test/less-bom/import/import-test-f.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "import-test-e"; - -.test-f { - height: 10px; -} diff --git a/node_modules/less/test/less-bom/import/imports/font.less b/node_modules/less/test/less-bom/import/imports/font.less deleted file mode 100644 index 98d8794..0000000 --- a/node_modules/less/test/less-bom/import/imports/font.less +++ /dev/null @@ -1,8 +0,0 @@ -@font-face { - font-family: xecret; - src: url('../assets/xecret.ttf'); -} - -#secret { - font-family: xecret, sans-serif; -} diff --git a/node_modules/less/test/less-bom/import/imports/logo.less b/node_modules/less/test/less-bom/import/imports/logo.less deleted file mode 100644 index 9afbda6..0000000 --- a/node_modules/less/test/less-bom/import/imports/logo.less +++ /dev/null @@ -1,6 +0,0 @@ -#logo { - width: 100px; - height: 100px; - background: url('../assets/logo.png'); - background: url("#inline-svg"); -} diff --git a/node_modules/less/test/less-bom/import/interpolation-vars.less b/node_modules/less/test/less-bom/import/interpolation-vars.less deleted file mode 100644 index 6c5de00..0000000 --- a/node_modules/less/test/less-bom/import/interpolation-vars.less +++ /dev/null @@ -1,6 +0,0 @@ -@in: "in"; -@terpolation: "terpolation"; - -// should be ignored because its already imported -// and it uses a variable from the parent scope -@import "import-@{my_theme}-e.less"; diff --git a/node_modules/less/test/less-bom/import/invalid-css.less b/node_modules/less/test/less-bom/import/invalid-css.less deleted file mode 100644 index da05c8b..0000000 --- a/node_modules/less/test/less-bom/import/invalid-css.less +++ /dev/null @@ -1 +0,0 @@ -this isn't very valid CSS. \ No newline at end of file diff --git a/node_modules/less/test/less-bom/import/urls.less b/node_modules/less/test/less-bom/import/urls.less deleted file mode 100644 index cf776c3..0000000 --- a/node_modules/less/test/less-bom/import/urls.less +++ /dev/null @@ -1 +0,0 @@ -// empty file showing that it loads from the relative path first diff --git a/node_modules/less/test/less-bom/include-path-string/include-path-string.less b/node_modules/less/test/less-bom/include-path-string/include-path-string.less deleted file mode 100644 index 7ac1aa4..0000000 --- a/node_modules/less/test/less-bom/include-path-string/include-path-string.less +++ /dev/null @@ -1,3 +0,0 @@ -data-uri { - property: data-uri('image.svg'); -} diff --git a/node_modules/less/test/less-bom/include-path/include-path.less b/node_modules/less/test/less-bom/include-path/include-path.less deleted file mode 100644 index 739a062..0000000 --- a/node_modules/less/test/less-bom/include-path/include-path.less +++ /dev/null @@ -1,8 +0,0 @@ -@import "import-test-e"; - -data-uri { - property: data-uri('image.svg'); -} -image-size { - property: image-size('image.svg'); -} diff --git a/node_modules/less/test/less-bom/javascript.less b/node_modules/less/test/less-bom/javascript.less deleted file mode 100644 index 60c9a27..0000000 --- a/node_modules/less/test/less-bom/javascript.less +++ /dev/null @@ -1,38 +0,0 @@ -.eval { - js: `42`; - js: `1 + 1`; - js: `"hello world"`; - js: `[1, 2, 3]`; - title: `typeof process.title`; - ternary: `(1 + 1 == 2 ? true : false)`; - multiline: `(function(){var x = 1 + 1; - return x})()`; -} -.scope { - @foo: 42; - var: `parseInt(this.foo.toJS())`; - escaped: ~`2 + 5 + 'px'`; -} -.vars { - @var: `4 + 4`; - width: @var; -} -.escape-interpol { - @world: "world"; - width: ~`"hello" + " " + @{world}`; -} -.arrays { - @ary: 1, 2, 3; - @ary2: 1 2 3; - ary: `@{ary}.join(', ')`; - ary1: `@{ary2}.join(', ')`; -} -.transitions(...) { - @arg: ~`"@{arguments}".replace(/[\[\]]*/g, '')`; - 1: @arg; // rounded to integers - 2: ~`"@{arguments}"`; // rounded to integers - 3: @arguments; // OK -} -.test-tran { - .transitions(opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;); -} diff --git a/node_modules/less/test/less-bom/lazy-eval.less b/node_modules/less/test/less-bom/lazy-eval.less deleted file mode 100644 index ec35a39..0000000 --- a/node_modules/less/test/less-bom/lazy-eval.less +++ /dev/null @@ -1,6 +0,0 @@ -@var: @a; -@a: 100%; - -.lazy-eval { - width: @var; -} diff --git a/node_modules/less/test/less-bom/legacy/legacy.less b/node_modules/less/test/less-bom/legacy/legacy.less deleted file mode 100644 index d7d5cbd..0000000 --- a/node_modules/less/test/less-bom/legacy/legacy.less +++ /dev/null @@ -1,21 +0,0 @@ -@media (-o-min-device-pixel-ratio: 2/1) { - .test-math-and-units { - font: ignores 0/0 rules; - test-division: 4 / 2 + 5em; - simple: 1px + 1px; - } -} -#units { - t1: (2em/1em) + 20; - t2: 20 + (2em/1em); - t3: 2em/1em; - t4: (2em/1px) + 20; - t5: 20 + (2em/1px); - t6: 2em/1px; - t7: (2em*1em) + 20; - t8: 20 + (2em*1em); - t9: 2em*1em; - t10: (2em*1px) + 20; - t11: 20 + (2em*1px); - t12: 2em*1px; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/media.less b/node_modules/less/test/less-bom/media.less deleted file mode 100644 index 5c24da6..0000000 --- a/node_modules/less/test/less-bom/media.less +++ /dev/null @@ -1,234 +0,0 @@ - -// For now, variables can't be declared inside @media blocks. - -@var: 42; - -@media print { - .class { - color: blue; - .sub { - width: @var; - } - } - .top, header > h1 { - color: (#222 * 2); - } -} - -@media screen { - @base: 8; - body { max-width: (@base * 60); } -} - -@ratio_large: 16; -@ratio_small: 9; - -@media all and (device-aspect-ratio: @ratio_large / @ratio_small) { - body { max-width: 800px; } -} - -@media all and (orientation:portrait) { - aside { float: none; } -} - -@media handheld and (min-width: @var), screen and (min-width: 20em) { - body { - max-width: 480px; - } -} - -body { - @media print { - padding: 20px; - - header { - background-color: red; - } - - @media (orientation:landscape) { - margin-left: 20px; - } - } -} - -@media screen { - .sidebar { - width: 300px; - @media (orientation: landscape) { - width: 500px; - } - } -} - -@media a { - .first { - @media b { - .second { - .third { - width: 300px; - @media c { - width: 500px; - } - } - .fourth { - width: 3; - } - } - } - } -} - -body { - @media a, b and c { - width: 95%; - - @media x, y { - width: 100%; - } - } -} - -.mediaMixin(@fallback: 200px) { - background: black; - - @media handheld { - background: white; - - @media (max-width: @fallback) { - background: red; - } - } -} - -.a { - .mediaMixin(100px); -} - -.b { - .mediaMixin(); -} -@smartphone: ~"only screen and (max-width: 200px)"; -@media @smartphone { - body { - width: 480px; - } -} - -@media print { - @page :left { - margin: 0.5cm; - } - @page :right { - margin: 0.5cm; - } - @page Test:first { - margin: 1cm; - } - @page :first { - size: 8.5in 11in; - @top-left { - margin: 1cm; - } - @top-left-corner { - margin: 1cm; - } - @top-center { - margin: 1cm; - } - @top-right { - margin: 1cm; - } - @top-right-corner { - margin: 1cm; - } - @bottom-left { - margin: 1cm; - } - @bottom-left-corner { - margin: 1cm; - } - @bottom-center { - margin: 1cm; - } - @bottom-right { - margin: 1cm; - } - @bottom-right-corner { - margin: 1cm; - } - @left-top { - margin: 1cm; - } - @left-middle { - margin: 1cm; - } - @left-bottom { - margin: 1cm; - } - @right-top { - margin: 1cm; - } - @right-middle { - content: "Page " counter(page); - } - @right-bottom { - margin: 1cm; - } - } -} - -@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-resolution: 2dppx), (min-resolution: 128dpcm) { - .b { - background: red; - } -} - -.bg() { - background: red; - - @media (max-width: 500px) { - background: green; - } -} - -body { - .bg(); -} - -@bpMedium: 1000px; -@media (max-width: @bpMedium) { - body { - .bg(); - background: blue; - } -} - -@media (max-width: 1200px) { - /* a comment */ - - @media (max-width: 900px) { - body { font-size: 11px; } - } -} - -.nav-justified { - @media (min-width: 480px) { - > li { - display: table-cell; - } - } -} - -.menu -{ - @media (min-width: 768px) { - .nav-justified(); - } -} -@all: ~"all"; -@tv: ~"tv"; -@media @all and @tv { - .all-and-tv-variables { - var: all-and-tv; - } -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/merge.less b/node_modules/less/test/less-bom/merge.less deleted file mode 100644 index dd7c49e..0000000 --- a/node_modules/less/test/less-bom/merge.less +++ /dev/null @@ -1,78 +0,0 @@ -.first-transform() { - transform+: rotate(90deg), skew(30deg); -} -.second-transform() { - transform+: scale(2,4); -} -.third-transform() { - transform: scaleX(45deg); -} -.fourth-transform() { - transform+: scaleX(45deg); -} -.fifth-transform() { - transform+: scale(2,4) !important; -} -.first-background() { - background+: url(data://img1.png); -} -.second-background() { - background+: url(data://img2.png); -} - -.test1 { - // Can merge values - .first-transform(); - .second-transform(); -} -.test2 { - // Won't merge values without +: merge directive, for backwards compatibility with css - .first-transform(); - .third-transform(); -} -.test3 { - // Won't merge values from two sources with different properties - .fourth-transform(); - .first-background(); -} -.test4 { - // Won't merge values from sources that merked as !important, for backwards compatibility with css - .first-transform(); - .fifth-transform(); -} -.test5 { - // Won't merge values from mixins that merked as !important, for backwards compatibility with css - .first-transform(); - .second-transform() !important; -} -.test6 { - // Ignores !merge if no peers found - .second-transform(); -} - -.test-interleaved { - transform+: t1; - background+: b1; - transform+: t2; - background+: b2, b3; - transform+: t3; -} - -.test-spaced { - transform+_: t1; - background+_: b1; - transform+_: t2; - background+_: b2, b3; - transform+_: t3; -} - -.test-interleaved-with-spaced { - transform+_: t1s; - transform+: t2; - background+: b1; - transform+_: t3s; - transform+: t4 t5s; - background+_: b2s, b3; - transform+_: t6s; - background+: b4; -} diff --git a/node_modules/less/test/less-bom/mixins-args.less b/node_modules/less/test/less-bom/mixins-args.less deleted file mode 100644 index 13397fa..0000000 --- a/node_modules/less/test/less-bom/mixins-args.less +++ /dev/null @@ -1,263 +0,0 @@ -.mixin (@a: 1px, @b: 50%) { - width: (@a * 5); - height: (@b - 1%); -} - -.mixina (@style, @width, @color: black) { - border: @width @style @color; -} - -.mixiny -(@a: 0, @b: 0) { - margin: @a; - padding: @b; -} - -.hidden() { - color: transparent; // asd -} - -#hidden { - .hidden; -} - -#hidden1 { - .hidden(); -} - -.two-args { - color: blue; - .mixin(2px, 100%); - .mixina(dotted, 2px); -} - -.one-arg { - .mixin(3px); -} - -.no-parens { - .mixin; -} - -.no-args { - .mixin(); -} - -.var-args { - @var: 9; - .mixin(@var, (@var * 2)); -} - -.multi-mix { - .mixin(2px, 30%); - .mixiny(4, 5); -} - -.maxa(@arg1: 10, @arg2: #f00) { - padding: (@arg1 * 2px); - color: @arg2; -} - -body { - .maxa(15); -} - -@glob: 5; -.global-mixin(@a:2) { - width: (@glob + @a); -} - -.scope-mix { - .global-mixin(3); -} - -.nested-ruleset (@width: 200px) { - width: @width; - .column { margin: @width; } -} -.content { - .nested-ruleset(600px); -} - -// - -.same-var-name2(@radius) { - radius: @radius; -} -.same-var-name(@radius) { - .same-var-name2(@radius); -} -#same-var-name { - .same-var-name(5px); -} - -// - -.var-inside () { - @var: 10px; - width: @var; -} -#var-inside { .var-inside; } - -.mixin-arguments (@width: 0px, ...) { - border: @arguments; - width: @width; -} - -.arguments { - .mixin-arguments(1px, solid, black); -} -.arguments2 { - .mixin-arguments(); -} -.arguments3 { - .mixin-arguments; -} - -.mixin-arguments2 (@width, @rest...) { - border: @arguments; - rest: @rest; - width: @width; -} -.arguments4 { - .mixin-arguments2(0, 1, 2, 3, 4); -} - -// Edge cases - -.edge-case { - .mixin-arguments("{"); -} - -// Division vs. Literal Slash -.border-radius(@r: 2px/5px) { - border-radius: @r; -} -.slash-vs-math { - .border-radius(); - .border-radius(5px/10px); - .border-radius((3px * 2)); -} -// semi-colon vs comma for delimiting - -.mixin-takes-one(@a) { - one: @a; -} - -.mixin-takes-two(@a; @b) { - one: @a; - two: @b; -} - -.comma-vs-semi-colon { - .mixin-takes-two(@a : a; @b : b, c); - .mixin-takes-two(@a : d, e; @b : f); - .mixin-takes-one(@a: g); - .mixin-takes-one(@a : h;); - .mixin-takes-one(i); - .mixin-takes-one(j;); - .mixin-takes-two(k, l); - .mixin-takes-one(m, n;); - .mixin-takes-two(o, p; q); - .mixin-takes-two(r, s; t;); -} - -.mixin-conflict(@a:defA, @b:defB, @c:defC) { - three: @a, @b, @c; -} - -.mixin-conflict(@a:defA, @b:defB, @c:defC, @d:defD) { - four: @a, @b, @c, @d; -} - -#named-conflict { - .mixin-conflict(11, 12, 13, @a:a); - .mixin-conflict(@a:a, 21, 22, 23); -} -@a: 3px; -.mixin-default-arg(@a: 1px, @b: @a, @c: @b) { - defaults: 1px 1px 1px; - defaults: 2px 2px 2px; -} - -.test-mixin-default-arg { - .mixin-default-arg(); - .mixin-default-arg(2px); -} - -.mixin-comma-default1(@color; @padding; @margin: 2, 2, 2, 2) { - margin: @margin; -} -.selector { - .mixin-comma-default1(#33acfe; 4); -} -.mixin-comma-default2(@margin: 2, 2, 2, 2;) { - margin: @margin; -} -.selector2 { - .mixin-comma-default2(); -} -.mixin-comma-default3(@margin: 2, 2, 2, 2) { - margin: @margin; -} -.selector3 { - .mixin-comma-default3(4,2,2,2); -} - -.test-calling-one-arg-mixin(@a) { -} - -.test-calling-one-arg-mixin(@a, @b, @rest...) { -} - -div { - .test-calling-one-arg-mixin(1); -} - -mixins-args-expand-op- { - @x: 1, 2, 3; - @y: 4 5 6; - - &1 {.m3(@x...)} - &2 {.m3(@y...)} - &3 {.wr(a, b, c)} - &4 {.wr(a; b; c, d)} - &5 {.wr(@x...)} - &6 {.m4(0; @x...)} - &7 {.m4(@x..., @a: 0)} - &8 {.m4(@b: 1.5; @x...)} - &9 {.aa(@y, @x..., and again, @y...)} - - .m3(@a, @b, @c) { - m3: @a, @b, @c; - } - - .m4(@a, @b, @c, @d) { - m4: @a, @b, @c, @d; - } - - .wr(@a...) { - &a {.m3(@a...)} - &b {.m4(0, @a...)} - &c {.m4(@a..., 4)} - } - - .aa(@a...) { - aa: @a; - a4: extract(@a, 5); - a8: extract(@a, 8); - } -} -#test-mixin-matching-when-default-2645 { - .mixin(@height) { - height: @height; - } - - .mixin(@width, @height: 10px) { - width: @width; - - .mixin(@height: @height); - } - - .mixin(@height: 20px); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/mixins-closure.less b/node_modules/less/test/less-bom/mixins-closure.less deleted file mode 100644 index 48cf57e..0000000 --- a/node_modules/less/test/less-bom/mixins-closure.less +++ /dev/null @@ -1,26 +0,0 @@ -.scope { - @var: 99px; - .mixin () { - width: @var; - } -} - -.class { - .scope > .mixin; -} - -.overwrite { - @var: 0px; - .scope > .mixin; -} - -.nested { - @var: 5px; - .mixin () { - width: @var; - } - .class { - @var: 10px; - .mixin; - } -} diff --git a/node_modules/less/test/less-bom/mixins-guards-default-func.less b/node_modules/less/test/less-bom/mixins-guards-default-func.less deleted file mode 100644 index 5fd7a8e..0000000 --- a/node_modules/less/test/less-bom/mixins-guards-default-func.less +++ /dev/null @@ -1,195 +0,0 @@ - -// basics: - -guard-default-basic-1 { - .m(1) {case: 1} - .m(@x) when (default()) {default: @x} - - &-1 {.m(1)} - &-2 {.m(2)} -} - -guard-default-basic-2 { - .m(1) {case: 1} - .m(2) {case: 2} - .m(3) {case: 3} - .m(@x) when (default()) {default: @x} - - &-0 {.m(0)} - &-2 {.m(2)} -} - -guard-default-basic-3 { - .m(@x) when (@x = 1) {case: 1} - .m(2) {case: 2} - .m(@x) when (@x = 3) {case: 3} - .m(@x) when (default()) {default: @x} - - &-0 {.m(0)} - &-2 {.m(2)} - &-3 {.m(3)} -} - -guard-default-definition-order { - .m(@x) when (default()) {default: @x} - .m(@x) when (@x = 1) {case: 1} - .m(2) {case: 2} - .m(@x) when (@x = 3) {case: 3} - - &-0 {.m(0)} - &-2 {.m(2)} - &-2 {.m(3)} -} - -// out of guard: - -guard-default-out-of-guard { - .m(1) {case-1: 1} - .m(@x: default()) when (default()) {default: @x} - - &-0 { - case-0: default(); - .m(1); - .m(2); - case-2: default(); - } - &-1 {.m(default())} - &-2 {.m()} -} - -// expressions: - -guard-default-expr-not { - .m(1) {case: 1} - .m(@x) when not(default()) {default: @x} - - &-1 {.m(1)} - &-2 {.m(2)} -} - -guard-default-expr-eq { - .m(@x) when (@x = true) {case: @x} - .m(@x) when (@x = false) {case: @x} - .m(@x) when (@x = default()) {default: @x} - - &-true {.m(true)} - &-false {.m(false)} -} - -guard-default-expr-or { - .m(1) {case: 1} - .m(2) {case: 2} - .m(@x) when (default()), (@x = 2) {default: @x} - - &-1 {.m(1)} - &-2 {.m(2)} - &-3 {.m(3)} -} - -guard-default-expr-and { - .m(1) {case: 1} - .m(2) {case: 2} - .m(@x) when (default()) and (@x = 3) {default: @x} - - &-1 {.m(1)} - &-2 {.m(2)} - &-3 {.m(3)} - &-4 {.m(4)} -} - -guard-default-expr-always { - .m(1) {case: 1} - .m(@x) when (default()), not(default()) {default: @x} // always match - - &-1 {.m(1)} - &-2 {.m(2)} -} - -guard-default-expr-never { - .m(1) {case: 1} - .m(@x) when (default()) and not(default()) {default: @x} // never match - - &-1 {.m(1)} - &-2 {.m(2)} -} - - -// not conflicting multiple default() uses: - -guard-default-multi-1 { - .m(0) {case: 0} - .m(@x) when (default()) {default-1: @x} - .m(2) when (default()) {default-2: @x} - - &-0 {.m(0)} - &-1 {.m(1)} -} - -guard-default-multi-2 { - .m(1, @x) when (default()) {default-1: @x} - .m(2, @x) when (default()) {default-2: @x} - .m(@x, yes) when (default()) {default-3: @x} - - &-1 {.m(1, no)} - &-2 {.m(2, no)} - &-3 {.m(3, yes)} -} - -guard-default-multi-3 { - .m(red) {case-1: darkred} - .m(blue) {case-2: darkblue} - .m(@x) when (iscolor(@x)) and (default()) {default-color: @x} - .m('foo') {case-1: I am 'foo'} - .m('bar') {case-2: I am 'bar'} - .m(@x) when (isstring(@x)) and (default()) {default-string: I am @x} - - &-blue {.m(blue)} - &-green {.m(green)} - &-foo {.m('foo')} - &-baz {.m('baz')} -} - -guard-default-multi-4 { - .m(@x) when (default()), not(default()) {always: @x} - .m(@x) when (default()) and not(default()) {never: @x} - .m(2) {case: 2} - - .m(1); - .m(2); -} - -guard-default-not-ambiguos-2 { - .m(@x) {case: 1} - .m(@x) when (default()) {default: @x} - .m(@x) when not(default()) {not-default: @x} - - .m(2); -} - -guard-default-not-ambiguos-3 { - .m(@x) {case: 1} - .m(@x) when not(default()) {not-default-1: @x} - .m(@x) when not(default()) {not-default-2: @x} - - .m(2); -} - -// default & scope - -guard-default-scopes { - .s1() {.m(@v) {1: no condition}} - .s2() {.m(@v) when (@v) {2: when true}} - .s3() {.m(@v) when (default()) {3: when default}} - - &-3 { - .s2(); - .s3(); - .m(false); - } - - &-1 { - .s1(); - .s3(); - .m(false); - } -} diff --git a/node_modules/less/test/less-bom/mixins-guards.less b/node_modules/less/test/less-bom/mixins-guards.less deleted file mode 100644 index 37b1c46..0000000 --- a/node_modules/less/test/less-bom/mixins-guards.less +++ /dev/null @@ -1,358 +0,0 @@ - -// Stacking, functions.. - -.light (@a) when (lightness(@a) > 50%) { - color: white; -} -.light (@a) when (lightness(@a) < 50%) { - color: black; -} -.light (@a) { - margin: 1px; -} - -.light1 { .light(#ddd) } -.light2 { .light(#444) } - -// Arguments against each other - -.max (@a, @b) when (@a > @b) { - width: @a; -} -.max (@a, @b) when (@a < @b) { - width: @b; -} - -.max1 { .max(3, 6) } -.max2 { .max(8, 1) } - -// Globals inside guards - -@g: auto; - -.glob (@a) when (@a = @g) { - margin: @a @g; -} -.glob1 { .glob(auto) } - -// Other operators - -.ops (@a) when (@a >= 0) { - height: gt-or-eq; -} -.ops (@a) when (@a =< 0) { - height: lt-or-eq; -} -.ops (@a) when (@a <= 0) { - height: lt-or-eq-alias; -} -.ops (@a) when not(@a = 0) { - height: not-eq; -} -.ops1 { .ops(0) } -.ops2 { .ops(1) } -.ops3 { .ops(-1) } - -// Scope and default values - -@a: auto; - -.default (@a: inherit) when (@a = inherit) { - content: default; -} -.default1 { .default } - -// true & false keywords -.test (@a) when (@a) { - content: "true."; -} -.test (@a) when not (@a) { - content: "false."; -} - -.test1 { .test(true) } -.test2 { .test(false) } -.test3 { .test(1) } -.test4 { .test(boo) } -.test5 { .test("true") } - -// Boolean expressions - -.bool () when (true) and (false) { content: true and false } // FALSE -.bool () when (true) and (true) { content: true and true } // TRUE -.bool () when (true) { content: true } // TRUE -.bool () when (false) and (false) { content: true } // FALSE -.bool () when (false), (true) { content: false, true } // TRUE -.bool () when (false) and (true) and (true), (true) { content: false and true and true, true } // TRUE -.bool () when (true) and (true) and (false), (false) { content: true and true and false, false } // FALSE -.bool () when (false), (true) and (true) { content: false, true and true } // TRUE -.bool () when (false), (false), (true) { content: false, false, true } // TRUE -.bool () when (false), (false) and (true), (false) { content: false, false and true, false } // FALSE -.bool () when (false), (true) and (true) and (true), (false) { content: false, true and true and true, false } // TRUE -.bool () when not (false) { content: not false } -.bool () when not (true) and not (false) { content: not true and not false } -.bool () when not (true) and not (true) { content: not true and not true } -.bool () when not (false) and (false), not (false) { content: not false and false, not false } - -.bool1 { .bool } - -.equality-unit-test(@num) when (@num = 1%) { - test: fail; -} -.equality-unit-test(@num) when (@num = 2) { - test: pass; -} -.equality-units { - .equality-unit-test(1px); - .equality-unit-test(2px); -} - -.colorguard(@col) when (@col = red) { content: is @col; } -.colorguard(@col) when not (blue = @col) { content: is not blue its @col; } -.colorguard(@col) {} -.colorguardtest { - .colorguard(red); - .colorguard(blue); - .colorguard(purple); -} - -.stringguard(@str) when (@str = "theme1") { content: @str is "theme1"; } -.stringguard(@str) when not ("theme2" = @str) { content: @str is not "theme2"; } -.stringguard(@str) when (@str = 'theme1') { content: @str is 'theme1'; } -.stringguard(@str) when not ('theme2' = @str) { content: @str is not 'theme2'; } -.stringguard(@str) when (~"theme1" = @str) { content: @str is theme1; } -.stringguard(@str) {} -.stringguardtest { - .stringguard("theme1"); - .stringguard("theme2"); - .stringguard('theme1'); - .stringguard('theme2'); - .stringguard(theme1); -} - -.generic(@a, @b) {/**/} -.generic(@a, @b) when (@a = @b) {content: @a is equal to @b} -.generic(@a, @b) when (@b = @a) {content: @b is equal to @a too} -.generic(@a, @b) when (@a < @b) {content: @a is less than @b} -.generic(@a, @b) when (@b < @a) {content: @b is less than @a too} -.generic(@a, @b) when (@a > @b) {content: @a is greater than @b} -.generic(@a, @b) when (@b > @a) {content: @b is greater than @a too} -.generic(@a, @b) when not(@a = @b) {content: @a is not equal to @b} -.generic(@a, @b) when not(@b = @a) {content: @b is not equal to @a too} - -.variouse-types-comparison { - .generic(true, false); - .generic(1, true); - .generic(2, 2px); - .generic(3, ~"3"); - .generic(5, ~"4"); - .generic(abc, ~"abc"); - .generic(abc, "abc"); - .generic('abc', "abd"); - .generic(6, e("6")); - .generic(`9`, 8); - .generic(a, b); - .generic(1 2, 3); -} - -.list-comparison { - .generic(a b c, a b c); - .generic(a b c, a b d); - .generic(a, b, c; a, b, c); - .generic(a, b, c; a, b, d); - .generic(1 2px 300ms, 1em 2 .3s); - - @space-list: 1 2 3; - @comma-list: 1, 2, 3; - @compound: @space-list @comma-list; - - .generic(@space-list, @comma-list); - .generic(@comma-list, ~"1, 2, 3"); - .generic(@compound, @space-list @comma-list); - .generic(@compound, @comma-list @space-list); - .generic(@compound 4, ~"1 2 3 1, 2, 3 4"); -} - -.mixin(...) { - catch:all; -} -.mixin(@var) when (@var=4) { - declare: 4; -} -.mixin(@var) when (@var=4px) { - declare: 4px; -} -#tryNumberPx { - .mixin(4px); -} - -.lock-mixin(@a) { - .inner-locked-mixin(@x: @a) when (@a = 1) { - a: @a; - x: @x; - } -} -.call-lock-mixin { - .lock-mixin(1); - .call-inner-lock-mixin { - .inner-locked-mixin(); - } -} -.bug-100cm-1m(@a) when (@a = 1) { - .failed { - one-hundred: not-equal-to-1; - } -} -.bug-100cm-1m(100cm); - -#ns { - .mixin-for-root-usage(@a) when (@a > 0) { - .mixin-generated-class { - a: @a; - } - } -} - -#ns > .mixin-for-root-usage(1); - -@namespaceGuard: 1; -#guarded when (@namespaceGuard>0) { - #deeper { - .mixin() { - guarded: namespace; - } - } -} -#guarded() when (@namespaceGuard>0) { - #deeper { - .mixin() { - silent: namespace; - } - } -} -#guarded(@variable) when (@namespaceGuard>0) { - #deeper { - .mixin() { - should: not match because namespace argument; - } - } -} -#guarded(@variable: default) when (@namespaceGuard>0) { - #deeper { - .mixin() { - guarded: with default; - } - } -} -#guarded when (@namespaceGuard<0) { - #deeper { - .mixin() { - should: not match because namespace guard; - } - } -} -#guarded-caller { - #guarded > #deeper > .mixin(); -} -#top { - #deeper when (@namespaceGuard<0) { - .mixin(@a) { - should: not match because namespace guard; - } - } - #deeper() when (@namespaceGuard>0) { - .mixin(@a) { - should: match @a; - } - } -} -#guarded-deeper { - #top > #deeper > .mixin(1); -} - -// namespaced & guarded mixin in root -// outputs nothing but should pass: - -@guarded-mixin-for-root: true; -#ns { - .guarded-mixin-for-root() when (@guarded-mixin-for-root) {} -} -#ns > .guarded-mixin-for-root(); -// various combinations of nested or, and, parenthesis and negation -.parenthesisNot(@value) when ((((@value)))) { - parenthesisNot: just-value; -} -.parenthesisNot(@value) when (((not(@value)))) { - parenthesisNot: negated once inside; -} -.parenthesisNot(@value) when not((((@value)))) { - parenthesisNot: negated once outside; -} -.parenthesisNot(@value) when ((not((@value)))) { - parenthesisNot: negated once middle; -} -.parenthesisNot(@value) when not(((not(@value)))) { - parenthesisNot: negated twice 1; -} -.parenthesisNot(@value) when (not((not(@value)))) { - parenthesisNot: negated twice 2; -} -.parenthesisNot(@value) when ((not(not(@value)))) { - parenthesisNot: negated twice 3; -} -.parenthesisNot (...) when (default()) { - parenthesisNot: none matched; -} - -#parenthesisNot-true { - .parenthesisNot(true); -} -#parenthesisNot-false { - .parenthesisNot(false); -} - -.orderOfEvaluation(@a1, @a2, @a3) when ((@a1) and (@a2) or (@a3)) { - no-parenthesis: evaluated true 1a; -} -.orderOfEvaluation(@a1, @a2, @a3) when ((@a3) or (@a1) and (@a2)) { - no-parenthesis: evaluated true 1b; -} -.orderOfEvaluation(@a1, @a2, @a3) when ((@a1) and ((@a2) or (@a3))) { - no-parenthesis: evaluated true 1c; -} -.orderOfEvaluation(@a1, @a2, @a3) when (@a3), (@a1) and (@a2) { - no-parenthesis: evaluated true 1d; -} -.orderOfEvaluation(@a1, @a2, @a3) when (((@a3) or (@a1)) and (@a2)) { - no-parenthesis: evaluated true 1e; -} -.orderOfEvaluation(@a1, @a2, @a3) when ((@a1) and (@a2) or not (@a3)) { - no-parenthesis: evaluated true 2a; -} -.orderOfEvaluation(@a1, @a2, @a3) when (not (@a3) or (@a1) and (@a2)) { - no-parenthesis: evaluated true 2b; -} -.orderOfEvaluation(@a1, @a2, @a3) when not (@a3), (@a1) and (@a2) { - no-parenthesis: evaluated true 2c; -} -.orderOfEvaluation(@a1, @a2, @a3) when (not (@a1) and (@a2) or (@a3)) { - no-parenthesis: evaluated true 3; -} -.orderOfEvaluation(@a1, @a2, @a3) when ((((@a1) and (@a2) or (@a3)))) { - no-parenthesis: evaluated true 4; -} -.orderOfEvaluation(@a1, @a2, @a3) when (((@a1) and (@a2)) or (@a3)) { - with-parenthesis: evaluated true; -} -.orderOfEvaluation(...) when (default()) { - orderOfEvaluation: evaluated false; -} -#orderOfEvaluation-false-false-true { - .orderOfEvaluation(false, false, true); -} -#orderOfEvaluation-false-false-false { - .orderOfEvaluation(false, false, false); -} -#orderOfEvaluation-true-true-false { - .orderOfEvaluation(true, true, false); -} diff --git a/node_modules/less/test/less-bom/mixins-important.less b/node_modules/less/test/less-bom/mixins-important.less deleted file mode 100644 index cc09bb6..0000000 --- a/node_modules/less/test/less-bom/mixins-important.less +++ /dev/null @@ -1,53 +0,0 @@ -.submixin(@a) { - border-width: @a; -} -.mixin (9) { - border: 9 !important; -} -.mixin (@a: 0) { - border: @a; - boxer: @a; - .inner { - test: @a; - } - // comment - .submixin(@a); -} - -.class { - .mixin(1); - .mixin(2) !important; - .mixin(3); - .mixin(4) !important; - .mixin(5); - .mixin !important; - .mixin(9); -} -.size(@aaa: auto) { - .set-width(@aaa) { - width: @aaa; - } - .set-width(@aaa); -} -.when-calling-nested-issue-2394 { - .size() !important; -} -.when-calling-nested-with-param-issue-2394 { - .size(10px) !important; -} -.testMixin-2421 () { - .topCheck-2421 () { - .nestedCheck-2421() { - margin: 5px; - } - .nestedCheck-2421(); - } - .topCheck-2421(); -} -.class1-2421 { - .testMixin-2421() !important; -} -.class2-2421 { - .testMixin-2421(); -} - diff --git a/node_modules/less/test/less-bom/mixins-interpolated.less b/node_modules/less/test/less-bom/mixins-interpolated.less deleted file mode 100644 index 0715504..0000000 --- a/node_modules/less/test/less-bom/mixins-interpolated.less +++ /dev/null @@ -1,75 +0,0 @@ - -@a0: 123; -@a1: foo; -@a2: ~".foo"; -@a4: ~"#foo"; - -.@{a0} { - a: 0; -} - -.@{a1} { - a: 1; -} - -@{a2} { - a: 2; -} - -#@{a1} { - a: 3; -} - -@{a4} { - a: 4; -} - -mi-test-a { - .123; - .foo; - #foo; -} - -.b .bb { - &.@{a1}-xxx .yyy-@{a1}@{a4} { - & @{a2}.bbb { - b: 1; - } - } -} - -mi-test-b { - .b.bb.foo-xxx.yyy-foo#foo.foo.bbb; -} - -@c1: @a1; -@c2: bar; -@c3: baz; - -#@{c1}-foo { - > .@{c2} { - .@{c3} { - c: c; - } - } -} - -mi-test-c { - &-1 {#foo-foo;} - &-2 {#foo-foo > .bar;} - &-3 {#foo-foo > .bar.baz;} -} - -.Person(@name, @gender_) { - .@{name} { - @gender: @gender_; - .sayGender() { - gender: @gender; - } - } -} - -mi-test-d { - .Person(person, "Male"); - .person.sayGender(); -} diff --git a/node_modules/less/test/less-bom/mixins-named-args.less b/node_modules/less/test/less-bom/mixins-named-args.less deleted file mode 100644 index fb6ec9f..0000000 --- a/node_modules/less/test/less-bom/mixins-named-args.less +++ /dev/null @@ -1,36 +0,0 @@ -.mixin (@a: 1px, @b: 50%) { - width: (@a * 5); - height: (@b - 1%); - args: @arguments; -} -.mixin (@a: 1px, @b: 50%) when (@b > 75%){ - text-align: center; -} - -.named-arg { - color: blue; - .mixin(@b: 100%); -} - -.class { - @var: 20%; - .mixin(@b: @var); -} - -.all-args-wrong-args { - .mixin(@b: 10%, @a: 2px); -} - -.mixin2 (@a: 1px, @b: 50%, @c: 50) { - width: (@a * 5); - height: (@b - 1%); - color: (#000000 + @c); -} - -.named-args2 { - .mixin2(3px, @c: 100); -} - -.named-args3 { - .mixin2(@b: 30%, @c: #123456); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/mixins-nested.less b/node_modules/less/test/less-bom/mixins-nested.less deleted file mode 100644 index d7ad6b2..0000000 --- a/node_modules/less/test/less-bom/mixins-nested.less +++ /dev/null @@ -1,22 +0,0 @@ -.mix-inner (@var) { - border-width: @var; -} - -.mix (@a: 10) { - .inner { - height: (@a * 10); - - .innest { - width: @a; - .mix-inner((@a * 2)); - } - } -} - -.class { - .mix(30); -} - -.class2 { - .mix(60); -} diff --git a/node_modules/less/test/less-bom/mixins-pattern.less b/node_modules/less/test/less-bom/mixins-pattern.less deleted file mode 100644 index 4206056..0000000 --- a/node_modules/less/test/less-bom/mixins-pattern.less +++ /dev/null @@ -1,102 +0,0 @@ -.mixin (...) { - variadic: true; -} -.mixin (@a...) { - named-variadic: true; -} -.mixin () { - zero: 0; -} -.mixin (@a: 1px) { - one: 1; -} -.mixin (@a) { - one-req: 1; -} -.mixin (@a: 1px, @b: 2px) { - two: 2; -} - -.mixin (@a, @b, @c) { - three-req: 3; -} - -.mixin (@a: 1px, @b: 2px, @c: 3px) { - three: 3; -} - -.zero { - .mixin(); -} - -.one { - .mixin(1); -} - -.two { - .mixin(1, 2); -} - -.three { - .mixin(1, 2, 3); -} - -// - -.mixout ('left') { - left: 1; -} - -.mixout ('right') { - right: 1; -} - -.left { - .mixout('left'); -} -.right { - .mixout('right'); -} - -// - -.border (@side, @width) { - color: black; - .border-side(@side, @width); -} -.border-side (left, @w) { - border-left: @w; -} -.border-side (right, @w) { - border-right: @w; -} - -.border-right { - .border(right, 4px); -} -.border-left { - .border(left, 4px); -} - -// - - -.border-radius (@r) { - both: (@r * 10); -} -.border-radius (@r, left) { - left: @r; -} -.border-radius (@r, right) { - right: @r; -} - -.only-right { - .border-radius(33, right); -} -.only-left { - .border-radius(33, left); -} -.left-right { - .border-radius(33); -} diff --git a/node_modules/less/test/less-bom/mixins.less b/node_modules/less/test/less-bom/mixins.less deleted file mode 100644 index 6e83fa9..0000000 --- a/node_modules/less/test/less-bom/mixins.less +++ /dev/null @@ -1,145 +0,0 @@ -.mixin { border: 1px solid black; } -.mixout { border-color: orange; } -.borders { border-style: dashed; } -.mixin > * { border: do not match me; } - -#namespace { - .borders { - border-style: dotted; - } - .biohazard { - content: "death"; - .man { - color: transparent; - } - } -} -#theme { - > .mixin { - background-color: grey; - } -} -#container { - color: black; - .mixin; - .mixout; - #theme > .mixin; -} - -#header { - .milk { - color: white; - .mixin; - #theme > .mixin; - } - #cookie { - .chips { - #namespace .borders; - .calories { - #container; - } - } - .borders; - } -} -.secure-zone { #namespace .biohazard .man; } -.direct { - #namespace > .borders; -} - -.bo, .bar { - width: 100%; -} -.bo { - border: 1px; -} -.ar.bo.ca { - color: black; -} -.jo.ki { - background: none; -} -.amp { - &.support { - color: orange; - .higher { - top: 0px; - } - &.deeper { - height: auto; - } - } -} -.extended { - .bo; - .jo.ki; - .amp.support; - .amp.support.higher; - .amp.support.deeper; -} -.do .re .mi .fa { - .sol .la { - .si { - color: cyan; - } - } -} -.mutli-selector-parents { - .do.re.mi.fa.sol.la.si; -} -.foo .bar { - .bar; -} -.has_parents() { - & .underParents { - color: red; - } -} -.has_parents(); -.parent { - .has_parents(); -} -.margin_between(@above, @below) { - * + & { margin-top: @above; } - legend + & { margin-top: 0; } - & + * { margin-top: @below; } -} -h1 { .margin_between(25px, 10px); } -h2 { .margin_between(20px, 8px); } -h3 { .margin_between(15px, 5px); } - -.mixin_def(@url, @position){ - background-image: @url; - background-position: @position; -} -.error{ - @s: "/"; - .mixin_def( "@{s}a.png", center center); -} -.recursion() { - color: black; -} -.test-rec { - .recursion { - .recursion(); - } -} -.paddingFloat(@padding) { padding-left: @padding; } - -.button { - .paddingFloat(((10px + 12) * 2)); - - &.large { .paddingFloat(((10em * 2) * 2)); } -} -.clearfix() { - // ... -} -.clearfix { - .clearfix(); -} -.clearfix { - .clearfix(); -} -.foo { - .clearfix(); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/modifyVars/extended.json b/node_modules/less/test/less-bom/modifyVars/extended.json deleted file mode 100644 index 6bd2a48..0000000 --- a/node_modules/less/test/less-bom/modifyVars/extended.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "the-border": "1px", - "base-color": "#111", - "red": "#842210" -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/modifyVars/extended.less b/node_modules/less/test/less-bom/modifyVars/extended.less deleted file mode 100644 index 3b4b531..0000000 --- a/node_modules/less/test/less-bom/modifyVars/extended.less +++ /dev/null @@ -1,11 +0,0 @@ -#header { - color: (@base-color * 3); - border-left: @the-border; - border-right: (@the-border * 2); -} -#footer { - color: (@base-color + #003300); - border-color: @red; -} -@red: blue; // var is overridden by the modifyVars -//@base-color: green; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/nested-gradient-with-svg-gradient/mixin-consumer.less b/node_modules/less/test/less-bom/nested-gradient-with-svg-gradient/mixin-consumer.less deleted file mode 100644 index e125892..0000000 --- a/node_modules/less/test/less-bom/nested-gradient-with-svg-gradient/mixin-consumer.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "svg-gradient-mixin.less"; - -.gray-gradient { - .gradient-mixin(#999); -} diff --git a/node_modules/less/test/less-bom/nested-gradient-with-svg-gradient/svg-gradient-mixin.less b/node_modules/less/test/less-bom/nested-gradient-with-svg-gradient/svg-gradient-mixin.less deleted file mode 100644 index 93617ae..0000000 --- a/node_modules/less/test/less-bom/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +++ /dev/null @@ -1,15 +0,0 @@ -.gradient-mixin(@color) { - background: svg-gradient(to bottom, - fade(@color, 0%) 0%, - fade(@color, 5%) 60%, - fade(@color, 10%) 70%, - fade(@color, 15%) 73%, - fade(@color, 20%) 75%, - fade(@color, 25%) 80%, - fade(@color, 30%) 85%, - fade(@color, 35%) 88%, - fade(@color, 40%) 90%, - fade(@color, 45%) 95%, - fade(@color, 50%) 100% - ); -} diff --git a/node_modules/less/test/less-bom/no-js-errors/no-js-errors.less b/node_modules/less/test/less-bom/no-js-errors/no-js-errors.less deleted file mode 100644 index 0f4dd21..0000000 --- a/node_modules/less/test/less-bom/no-js-errors/no-js-errors.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - a: `1 + 1`; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/no-js-errors/no-js-errors.txt b/node_modules/less/test/less-bom/no-js-errors/no-js-errors.txt deleted file mode 100644 index d81dd2b..0000000 --- a/node_modules/less/test/less-bom/no-js-errors/no-js-errors.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: You are using JavaScript, which has been disabled. in {path}no-js-errors.less on line 2, column 6: -1 .a { -2 a: `1 + 1`; -3 } diff --git a/node_modules/less/test/less-bom/no-output.less b/node_modules/less/test/less-bom/no-output.less deleted file mode 100644 index 22d0daf..0000000 --- a/node_modules/less/test/less-bom/no-output.less +++ /dev/null @@ -1,2 +0,0 @@ -.mixin() { -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/no-strict-math/mixins-guards.less b/node_modules/less/test/less-bom/no-strict-math/mixins-guards.less deleted file mode 100644 index 88034a2..0000000 --- a/node_modules/less/test/less-bom/no-strict-math/mixins-guards.less +++ /dev/null @@ -1,25 +0,0 @@ -// https://github.com/less/less.js/issues/2798 -.test-2798 when ((8+4) < 13) { - regression: fixed; -} -.test-2798 when ((8+6) < 13) { - regression: should not be visible; -} -.conditions-parser-1 when (8+4 < 13) { - only-atomic: ok; -} -.conditions-parser-1 when (8+6 < 13) { - only-atomic: should not be visible; -} -.conditions-parser-2 when (8+(5-1) < 13) { - only-atomic-with-nested-parenthesis: ok; -} -.conditions-parser-2 when (8+(15-1) < 13) { - only-atomic-with-nested-parenthesis: should not be visible; -} -.conditions-parser-3 when (8 < (13+1)) { - only-atomic-nested-parenthesis-on-right: ok; -} -.conditions-parser-3 when (8 < (3+1)) { - only-atomic-nested-parenthesis-on-right: should not be visible; -} diff --git a/node_modules/less/test/less-bom/no-strict-math/no-sm-operations.less b/node_modules/less/test/less-bom/no-strict-math/no-sm-operations.less deleted file mode 100644 index e17f2f4..0000000 --- a/node_modules/less/test/less-bom/no-strict-math/no-sm-operations.less +++ /dev/null @@ -1,13 +0,0 @@ -.named-colors-in-expressions { - color-0: 0 -red; - color-1: 1 - red; - color-2: red * 2; - color-3: 2 * red; - @3: -red; - &-bar@{3} {x: y} - @color: red; - &-bar@{color} {a: a}; - background-color: blue-2; - color: green-black; - animation: blue-change 5s infinite; -} diff --git a/node_modules/less/test/less-bom/operations.less b/node_modules/less/test/less-bom/operations.less deleted file mode 100644 index 15b82e4..0000000 --- a/node_modules/less/test/less-bom/operations.less +++ /dev/null @@ -1,63 +0,0 @@ -#operations { - color: (#110000 + #000011 + #001100); // #111111 - color-2: (yellow - #070707); - height: (10px / 2px + 6px - 1px * 2); // 9px - width: (2 * 4 - 5em); // 3em - .spacing { - height: (10px / 2px+6px-1px*2); - width: (2 * 4-5em); - } - subtraction: (20 - 10 - 5 - 5); // 0 - division: (20 / 5 / 4); // 1 -} - -@x: 4; -@y: 12em; - -.with-variables { - height: (@x + @y); // 16em - width: (12 + @y); // 24em - size: (5cm - @x); // 1cm -} - -.with-functions { - color: (rgb(200, 200, 200) / 2); - color: (2 * hsl(0, 50%, 50%)); - color: (rgb(10, 10, 10) + hsl(0, 50%, 50%)); -} - -@z: -2; - -.negative { - height: (2px + @z); // 0px - width: (2px - @z); // 4px -} - -.shorthands { - padding: -1px 2px 0 -4px; // -} - -.rem-dimensions { - font-size: (20rem / 5 + 1.5rem); // 5.5rem -} - -.colors { - color: #123; // #112233 - border-color: (#234 + #111111); // #334455 - background-color: (#222222 - #fff); // #000000 - .other { - color: (2 * #111); // #222222 - border-color: (#333333 / 3 + #111); // #222222 - } -} - -.negations { - @var: 4px; - variable: (-@var); // 4 - variable1: (-@var + @var); // 0 - variable2: (@var + -@var); // 0 - variable3: (@var - -@var); // 8 - variable4: (-@var - -@var); // 0 - paren: (-(@var)); // -4px - paren2: (-(2 + 2) * -@var); // 16 -} diff --git a/node_modules/less/test/less-bom/parens.less b/node_modules/less/test/less-bom/parens.less deleted file mode 100644 index f91b172..0000000 --- a/node_modules/less/test/less-bom/parens.less +++ /dev/null @@ -1,45 +0,0 @@ -.parens { - @var: 1px; - border: (@var * 2) solid black; - margin: (@var * 1) (@var + 2) (4 * 4) 3; - width: (6 * 6); - padding: 2px (6 * 6px); -} - -.more-parens { - @var: (2 * 2); - padding: (2 * @var) 4 4 (@var * 1px); - width-all: ((@var * @var) * 6); - width-first: ((@var * @var)) * 6; - width-keep: (@var * @var) * 6; - height-keep: (7 * 7) + (8 * 8); - height-all: ((7 * 7) + (8 * 8)); - height-parts: ((7 * 7)) + ((8 * 8)); - margin-keep: (4 * (5 + 5) / 2) - (@var * 2); - margin-parts: ((4 * (5 + 5) / 2)) - ((@var * 2)); - margin-all: ((4 * (5 + 5) / 2) + (-(@var * 2))); - border-radius-keep: 4px * (1 + 1) / @var + 3px; - border-radius-parts: ((4px * (1 + 1))) / ((@var + 3px)); - border-radius-all: (4px * (1 + 1) / @var + 3px); - //margin: (6 * 6)px; -} - -.negative { - @var: 1; - neg-var: -@var; // -1 ? - neg-var-paren: -(@var); // -(1) ? -} - -.nested-parens { - width: 2 * (4 * (2 + (1 + 6))) - 1; - height: ((2 + 3) * (2 + 3) / (9 - 4)) + 1; -} - -.mixed-units { - margin: 2px 4em 1 5pc; - padding: (2px + 4px) 1em 2px 2; -} - -.test-false-negatives { - a: ~"("; -} diff --git a/node_modules/less/test/less-bom/plugin.less b/node_modules/less/test/less-bom/plugin.less deleted file mode 100644 index bda5e87..0000000 --- a/node_modules/less/test/less-bom/plugin.less +++ /dev/null @@ -1,93 +0,0 @@ -// importing plugin globally -@plugin "./plugin/plugin-global"; - -// transitively include plugins from importing another sheet -@import "./plugin/plugin-transitive"; - - -// `test-global` function should be reachable -// `test-local` function should not be reachable -// `test-shadow` function should return global version -.class { - trans : test-transitive(); - global : test-global(); - local : test-local(); - shadow : test-shadow(); - - // `test-global` function should propagate and be reachable - // `test-local` function should be reachable - // `test-shadow` function should return local version, shadowing global version - .local { - @plugin "./plugin/plugin-local"; - global : test-global(); - local : test-local(); - shadow : test-shadow(); - } -} - -// calling a mixin or detached ruleset should not bubble local plugins -// imported inside either into the parent scope. -.mixin() { - @plugin "./plugin/plugin-local"; - mixin-local : test-local(); - mixin-global : test-global(); - mixin-shadow : test-shadow(); -} -@ruleset : { - @plugin "./plugin/plugin-local"; - ruleset-local : test-local(); - ruleset-global : test-global(); - ruleset-shadow : test-shadow(); -}; -#ns { - @plugin "./plugin/plugin-local"; - .mixin() { - ns-mixin-global : test-global(); - ns-mixin-local : test-local(); - ns-mixin-shadow : test-shadow(); - } -} -.class { - #ns > .mixin(); - .mixin(); - @ruleset(); - class-local : test-local(); -} - - -// `test-global` function should propagate into directive scope -@media screen { - .test { - result : test-global(); - } -} -@font-face { - result : test-global(); -} - -// `test-global` function should propagate into nested directive scopes -@media screen and (min-width:100px) { - @media (max-width:400px) { - .test { - result : test-global(); - } - } -} - -.test { - @media screen { - @plugin "./plugin/plugin-local"; - result : test-local(); - } -} - -@plugin "./plugin/plugin-tree-nodes"; -@ruleset2: test-detached-ruleset(); -.root { - @ruleset2(); -} - -test-directive("@charset"; '"utf-8"'); -test-directive("@arbitrary"; "value after ()"); - - diff --git a/node_modules/less/test/less-bom/plugin/plugin-global.js b/node_modules/less/test/less-bom/plugin/plugin-global.js deleted file mode 100644 index adc828c..0000000 --- a/node_modules/less/test/less-bom/plugin/plugin-global.js +++ /dev/null @@ -1,9 +0,0 @@ - -functions.addMultiple({ - "test-shadow" : function() { - return new tree.Anonymous( "global" ); - }, - "test-global" : function() { - return new tree.Anonymous( "global" ); - } -}); diff --git a/node_modules/less/test/less-bom/plugin/plugin-local.js b/node_modules/less/test/less-bom/plugin/plugin-local.js deleted file mode 100644 index b54ca97..0000000 --- a/node_modules/less/test/less-bom/plugin/plugin-local.js +++ /dev/null @@ -1,8 +0,0 @@ -functions.addMultiple({ - "test-shadow" : function() { - return new tree.Anonymous( "local" ); - }, - "test-local" : function() { - return new tree.Anonymous( "local" ); - } -}); diff --git a/node_modules/less/test/less-bom/plugin/plugin-transitive.js b/node_modules/less/test/less-bom/plugin/plugin-transitive.js deleted file mode 100644 index 1da1864..0000000 --- a/node_modules/less/test/less-bom/plugin/plugin-transitive.js +++ /dev/null @@ -1,5 +0,0 @@ -functions.addMultiple({ - "test-transitive" : function() { - return new tree.Anonymous( "transitive" ); - } -}); diff --git a/node_modules/less/test/less-bom/plugin/plugin-transitive.less b/node_modules/less/test/less-bom/plugin/plugin-transitive.less deleted file mode 100644 index f50ae74..0000000 --- a/node_modules/less/test/less-bom/plugin/plugin-transitive.less +++ /dev/null @@ -1,5 +0,0 @@ -@plugin "plugin-transitive"; - -.other { - trans : test-transitive(); -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/plugin/plugin-tree-nodes.js b/node_modules/less/test/less-bom/plugin/plugin-tree-nodes.js deleted file mode 100644 index 442352d..0000000 --- a/node_modules/less/test/less-bom/plugin/plugin-tree-nodes.js +++ /dev/null @@ -1,80 +0,0 @@ -functions.addMultiple({ - - "test-comment": function() { - return new tree.Combinator(' '); - }, - "test-directive": function(arg1, arg2) { - return new tree.Directive(arg1.value, new tree.Anonymous(arg2.value)); - }, - "test-extend": function() { - //TODO - }, - "test-import": function() { - //TODO - }, - "test-media": function() { - //TODO - }, - "test-mixin-call": function() { - //TODO - }, - "test-mixin-definition": function() { - //TODO - }, - "test-ruleset-call": function() { - return new tree.Combinator(' '); - }, - // Functions must return something. Must 'return true' if they produce no output. - "test-undefined": function() { }, - - // These cause root errors - "test-alpha": function() { - return new tree.Alpha(30); - }, - "test-assignment": function() { - return new tree.Assignment("bird", "robin"); - }, - "test-attribute": function() { - return new tree.Attribute("foo", "=", "bar"); - }, - "test-call": function() { - return new tree.Call("foo"); - }, - "test-color": function() { - return new tree.Color([50, 50, 50]); - }, - "test-condition": function() { - return new tree.Condition('<', new tree.Value([0]), new tree.Value([1])); - }, - "test-detached-ruleset" : function() { - var rule = new tree.Rule('prop', new tree.Anonymous('value')); - return new tree.DetachedRuleset(new tree.Ruleset("", [ rule ])); - }, - "test-dimension": function() { - return new tree.Dimension(1, 'px'); - }, - "test-element": function() { - return new tree.Element('+', 'a'); - }, - "test-expression": function() { - return new tree.Expression([1, 2, 3]); - }, - "test-keyword": function() { - return new tree.Keyword('foo'); - }, - "test-operation": function() { - return new tree.Operation('+', [1, 2]); - }, - "test-quoted": function() { - return new tree.Quoted('"', 'foo'); - }, - "test-selector": function() { - return new tree.Selector([new tree.Element('a')]); - }, - "test-url": function() { - return new tree.URL('http://google.com'); - }, - "test-value": function() { - return new tree.Value([1]); - } -}); \ No newline at end of file diff --git a/node_modules/less/test/less-bom/postProcessorPlugin/postProcessor.less b/node_modules/less/test/less-bom/postProcessorPlugin/postProcessor.less deleted file mode 100644 index a76f907..0000000 --- a/node_modules/less/test/less-bom/postProcessorPlugin/postProcessor.less +++ /dev/null @@ -1,4 +0,0 @@ -@color: white; -.test { - color: @color; -} diff --git a/node_modules/less/test/less-bom/preProcessorPlugin/preProcessor.less b/node_modules/less/test/less-bom/preProcessorPlugin/preProcessor.less deleted file mode 100644 index 9fe8f01..0000000 --- a/node_modules/less/test/less-bom/preProcessorPlugin/preProcessor.less +++ /dev/null @@ -1,3 +0,0 @@ -.test { - color: @color; -} diff --git a/node_modules/less/test/less-bom/property-name-interp.less b/node_modules/less/test/less-bom/property-name-interp.less deleted file mode 100644 index 4a42083..0000000 --- a/node_modules/less/test/less-bom/property-name-interp.less +++ /dev/null @@ -1,56 +0,0 @@ - -pi-test { - @prefix: ufo-; - @a: border; - @bb: top; - @c_c: left; - @d-d4: radius; - @-: -; - - @var: ~'@not-variable'; - - @{a}: 0; - @{var}: @var; - @{prefix}width: 50%; - *-z-@{a} :1px dashed blue; - -www-@{a}-@{bb}: 2px; - @{d-d4}-is-not-a-@{a}:true; - @{a}-@{bb}-@{c_c}-@{d-d4} : 2em; - @{a}@{-}@{bb}@{-}red@{-}@{d-d4}-: 3pt; - - .mixin(mixer); - .merge(ish, base); -} - -@global: global; - -.mixin(@arg) { - @local: local; - @{global}-@{local}-@{arg}-property: strong; -} - -.merge(@p, @v) { - &-merge { - @prefix: pre; - @suffix: ish; - @{prefix}-property-ish+ :high; - pre-property-@{suffix} +: middle; - @{prefix}-property-@{suffix}+: low; - @{prefix}-property-@{p} + : @v; - - @subterfuge: ~'+'; - pre-property-ish@{subterfuge}: nice try dude; - } -} - -pi-indirect-vars { - @{p}: @p; - @p: @@a; - @a: b; - @b: auto; -} - -pi-complex-values { - @{p}@{p}: none; - @p: (1 + 2px) fadeout(#ff0, 50%), pi() /* foo */; -} diff --git a/node_modules/less/test/less-bom/rulesets.less b/node_modules/less/test/less-bom/rulesets.less deleted file mode 100644 index 6199511..0000000 --- a/node_modules/less/test/less-bom/rulesets.less +++ /dev/null @@ -1,30 +0,0 @@ -#first > .one { - > #second .two > #deux { - width: 50%; - #third { - &:focus { - color: black; - #fifth { - > #sixth { - .seventh #eighth { - + #ninth { - color: purple; - } - } - } - } - } - height: 100%; - } - #fourth, #five, #six { - color: #110000; - .seven, .eight > #nine { - border: 1px solid black; - } - #ten { - color: red; - } - } - } - font-size: 2em; -} diff --git a/node_modules/less/test/less-bom/scope.less b/node_modules/less/test/less-bom/scope.less deleted file mode 100644 index d359b28..0000000 --- a/node_modules/less/test/less-bom/scope.less +++ /dev/null @@ -1,104 +0,0 @@ -@x: red; -@x: blue; -@z: transparent; -@mix: none; - -.mixin { - @mix: #989; -} -@mix: blue; -.tiny-scope { - color: @mix; // #989 - .mixin; -} - -.scope1 { - @y: orange; - @z: black; - color: @x; // blue - border-color: @z; // black - .hidden { - @x: #131313; - } - .scope2 { - @y: red; - color: @x; // blue - .scope3 { - @local: white; - color: @y; // red - border-color: @z; // black - background-color: @local; // white - } - } -} - -#namespace { - .scoped_mixin() { - @local-will-be-made-global: green; - .scope { - scoped-val: @local-will-be-made-global; - } - } -} - -#namespace > .scoped_mixin(); - -.setHeight(@h) { @height: 1024px; } -.useHeightInMixinCall(@h) { .useHeightInMixinCall { mixin-height: @h; } } -@mainHeight: 50%; -.setHeight(@mainHeight); -.heightIsSet { height: @height; } -.useHeightInMixinCall(@height); - -.importRuleset() { - .imported { - exists: true; - } -} -.importRuleset(); -.testImported { - .imported; -} - -@parameterDefault: 'top level'; -@anotherVariable: 'top level'; -//mixin uses top-level variables -.mixinNoParam(@parameter: @parameterDefault) when (@parameter = 'top level') { - default: @parameter; - scope: @anotherVariable; - sub-scope-only: @subScopeOnly; -} - -#allAreUsedHere { - //redefine top-level variables in different scope - @parameterDefault: 'inside'; - @anotherVariable: 'inside'; - @subScopeOnly: 'inside'; - //use the mixin - .mixinNoParam(); -} -#parentSelectorScope { - @col: white; - & { - @col: black; - } - prop: @col; - & { - @col: black; - } -} -.test-empty-mixin() { -} -#parentSelectorScopeMixins { - & { - .test-empty-mixin() { - should: never seee 1; - } - } - .test-empty-mixin(); - & { - .test-empty-mixin() { - should: never seee 2; - } - } -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/selectors.less b/node_modules/less/test/less-bom/selectors.less deleted file mode 100644 index c10a159..0000000 --- a/node_modules/less/test/less-bom/selectors.less +++ /dev/null @@ -1,184 +0,0 @@ -h1, h2, h3 { - a, p { - &:hover { - color: red; - } - } -} - -#all { color: blue; } -#the { color: blue; } -#same { color: blue; } - -ul, li, div, q, blockquote, textarea { - margin: 0; -} - -td { - margin: 0; - padding: 0; -} - -td, input { - line-height: 1em; -} - -a { - color: red; - - &:hover { color: blue; } - - div & { color: green; } - - p & span { color: yellow; } -} - -.foo { - .bar, .baz { - & .qux { - display: block; - } - .qux & { - display: inline; - } - .qux& { - display: inline-block; - } - .qux & .biz { - display: none; - } - } -} - -.b { - &.c { - .a& { - color: red; - } - } -} - -.b { - .c & { - &.a { - color: red; - } - } -} - -.p { - .foo &.bar { - color: red; - } -} - -.p { - .foo&.bar { - color: red; - } -} - -.foo { - .foo + & { - background: amber; - } - & + & { - background: amber; - } -} - -.foo, .bar { - & + & { - background: amber; - } -} - -.foo, .bar { - a, b { - & > & { - background: amber; - } - } -} - -.other ::fnord { color: red } -.other::fnord { color: red } -.other { - ::bnord {color: red } - &::bnord {color: red } -} -// selector interpolation -@theme: blood; -@selector: ~".@{theme}"; -@{selector} { - color:red; -} -@{selector}red { - color: green; -} -.red { - #@{theme}.@{theme}&.black:@{theme} { - color:black; - } -} -@num: 3; -:nth-child(@{num}) { - selector: interpolated; -} -.test { - &:nth-child(@{num}) { - selector: interpolated; - } - &:nth-child(odd):not(:nth-child(3)) { - color: #ff0000; - } - } -[prop], -[prop=10%], -[prop="value@{num}"], -[prop*="val@{num}"], -[|prop~="val@{num}"], -[*|prop$="val@{num}"], -[ns|prop^="val@{num}"], -[@{num}^="val@{num}"], -[@{num}=@{num}], -[@{num}] { - attributes: yes; -} - -/* -Large comment means chunk will be emitted after } which means chunk will begin with whitespace... -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -*/ -@{selector} { - color: red; -} -.only-nested { - .level2 { - .foo:not(.tst&:hover) { - test: only-nested; - } - } -} -.nestend-and-non-nested { - .foo&:not(.tst&:hover) { - test: nestend-and-non-nested; - } -} -.selector:not(&:hover) { - test: global scope; -} -// https://github.com/less/less.js/issues/2206 -.extend-this { - content: '\2661'; -} -.first-level { - .second-level { - .active&:extend(.extend-this) { } - &.active2:extend(.extend-this) { } - } -} diff --git a/node_modules/less/test/less-bom/sourcemaps-empty/empty.less b/node_modules/less/test/less-bom/sourcemaps-empty/empty.less deleted file mode 100644 index 5f28270..0000000 --- a/node_modules/less/test/less-bom/sourcemaps-empty/empty.less +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/less/test/less-bom/sourcemaps-empty/var-defs.less b/node_modules/less/test/less-bom/sourcemaps-empty/var-defs.less deleted file mode 100644 index 9c5269d..0000000 --- a/node_modules/less/test/less-bom/sourcemaps-empty/var-defs.less +++ /dev/null @@ -1 +0,0 @@ -@test-var: 'something'; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/sourcemaps/basic.json b/node_modules/less/test/less-bom/sourcemaps/basic.json deleted file mode 100644 index 2bccdc5..0000000 --- a/node_modules/less/test/less-bom/sourcemaps/basic.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "my-color": "red" -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/sourcemaps/basic.less b/node_modules/less/test/less-bom/sourcemaps/basic.less deleted file mode 100644 index 33af04b..0000000 --- a/node_modules/less/test/less-bom/sourcemaps/basic.less +++ /dev/null @@ -1,27 +0,0 @@ -@var: black; - -.a() { - color: red; -} - -.b { - color: green; - .a(); - color: blue; - background: @var; -} - -.a, .b { - background: green; - .c, .d { - background: gray; - & + & { - color: red; - } - } -} - -.extend:extend(.a all) { - color: pink; -} -@import (inline) "imported.css"; \ No newline at end of file diff --git a/node_modules/less/test/less-bom/sourcemaps/imported.css b/node_modules/less/test/less-bom/sourcemaps/imported.css deleted file mode 100644 index dbbf3cf..0000000 --- a/node_modules/less/test/less-bom/sourcemaps/imported.css +++ /dev/null @@ -1,7 +0,0 @@ -/*comments*/ -.unused-css { - color: white; -} -.imported { - color: black; -} \ No newline at end of file diff --git a/node_modules/less/test/less-bom/static-urls/urls.less b/node_modules/less/test/less-bom/static-urls/urls.less deleted file mode 100644 index 79b5df3..0000000 --- a/node_modules/less/test/less-bom/static-urls/urls.less +++ /dev/null @@ -1,33 +0,0 @@ -@font-face { - src: url("/fonts/garamond-pro.ttf"); - src: local(Futura-Medium), - url(fonts.svg#MyGeometricModern) format("svg"); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px; -} -#misc { - background-image: url(images/image.jpg); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700); -} - -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} - -.comma-delimited { - background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg); -} -.values { - @a: 'Trebuchet'; - url: url(@a); -} - -@import "../import/import-and-relative-paths-test"; diff --git a/node_modules/less/test/less-bom/strict-units/strict-units.less b/node_modules/less/test/less-bom/strict-units/strict-units.less deleted file mode 100644 index 6e38d23..0000000 --- a/node_modules/less/test/less-bom/strict-units/strict-units.less +++ /dev/null @@ -1,4 +0,0 @@ -.units { - cancels-to-nothing: (1px / 1px); - cancels: ((((10px / 5em) / 1px) * 3em) * 1px); -} diff --git a/node_modules/less/test/less-bom/strings.less b/node_modules/less/test/less-bom/strings.less deleted file mode 100644 index e896ddd..0000000 --- a/node_modules/less/test/less-bom/strings.less +++ /dev/null @@ -1,73 +0,0 @@ -#strings { - background-image: url("http://son-of-a-banana.com"); - quotes: "~" "~"; - content: "#*%:&^,)!.(~*})"; - empty: ""; - brackets: "{" "}"; - escapes: "\"hello\" \\world"; - escapes2: "\"llo"; -} -#comments { - content: "/* hello */ // not-so-secret"; -} -#single-quote { - quotes: "'" "'"; - content: '""#!&""'; - empty: ''; - semi-colon: ';'; -} -#escaped { - filter: ~"DX.Transform.MS.BS.filter(opacity=50)"; -} -#one-line { image: url(http://tooks.com) } -#crazy { image: url(http://), "}", url("http://}") } -#interpolation { - @var: '/dev'; - url: "http://lesscss.org@{var}/image.jpg"; - - @var2: 256; - url2: "http://lesscss.org/image-@{var2}.jpg"; - - @var3: #456; - url3: "http://lesscss.org@{var3}"; - - @var4: hello; - url4: "http://lesscss.org/@{var4}"; - - @var5: 54.4px; - url5: "http://lesscss.org/@{var5}"; -} - -// multiple calls with string interpolation - -.mix-mul (@a: green) { - color: ~"@{a}"; -} -.mix-mul-class { - .mix-mul(blue); - .mix-mul(red); - .mix-mul(black); - .mix-mul(orange); -} - -@test: Arial, Verdana, San-Serif; -.watermark { - @family: ~"Univers, @{test}"; - family: @family; -} -#iterated-interpolation { - @box-small: 10px; - @box-large: 100px; - - .mixin { // both ruleset and mixin - width: ~"@{box-@{suffix}}"; - weird: ~"@{box}-@{suffix}}"; - width-str: "@{box-@{suffix}}"; - weird-str: "@{box}-@{suffix}}"; - @box: ~"@{box"; - @suffix: large; - } - .interpolation-mixin { - .mixin(); //call the above as mixin - } -} diff --git a/node_modules/less/test/less-bom/url-args/urls.less b/node_modules/less/test/less-bom/url-args/urls.less deleted file mode 100644 index e8feb9e..0000000 --- a/node_modules/less/test/less-bom/url-args/urls.less +++ /dev/null @@ -1,63 +0,0 @@ -@font-face { - src: url("/fonts/garamond-pro.ttf"); - src: local(Futura-Medium), - url(fonts.svg#MyGeometricModern) format("svg"); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px; - background: url("img.jpg") center / 100px; - background: #fff url(image.png) center / 1px 100px repeat-x scroll content-box padding-box; -} -#misc { - background-image: url(images/image.jpg); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700); - background-image: url("http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700"); -} - -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} - -.comma-delimited { - background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg); -} -.values { - @a: 'Trebuchet'; - url: url(@a); -} - -@import "../import/imports/font"; - -#data-uri { - uri: data-uri('image/jpeg;base64', '../../data/image.jpg'); -} - -#data-uri-guess { - uri: data-uri('../../data/image.jpg'); -} - -#data-uri-ascii { - uri-1: data-uri('text/html', '../../data/page.html'); - uri-2: data-uri('../../data/page.html'); -} - -#svg-functions { - background-image: svg-gradient(to bottom, black, white); - background-image: svg-gradient(to bottom, black, orange 3%, white); - @green_5: green 5%; - @orange_percentage: 3%; - @orange_color: orange; - background-image: svg-gradient(to bottom, (mix(black, white) + #444) 1%, @orange_color @orange_percentage, ((@green_5)), white 95%); -} - -#data-uri-with-spaces { - background-image: url( data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url( ' data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9=='); -} diff --git a/node_modules/less/test/less-bom/urls.less b/node_modules/less/test/less-bom/urls.less deleted file mode 100644 index 36f8926..0000000 --- a/node_modules/less/test/less-bom/urls.less +++ /dev/null @@ -1,94 +0,0 @@ -@import "nested-gradient-with-svg-gradient/mixin-consumer.less"; - -@font-face { - src: url("/fonts/garamond-pro.ttf"); - src: local(Futura-Medium), - url(fonts.svg#MyGeometricModern) format("svg"); - not-a-comment: url(//z); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px; - background: url("img.jpg") center / 100px; - background: #fff url(image.png) center / 1px 100px repeat-x scroll content-box padding-box; -} -#misc { - background-image: url(images/image.jpg); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700); - background-image: url("http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700"); -} - -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} - -.comma-delimited { - background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg); -} -.values { - @a: 'Trebuchet'; - url: url(@a); -} - -@import "import/import-and-relative-paths-test"; - -#relative-url-import { - .unquoted-relative-path-bg; - .quoted-relative-path-border-image; -} - -#data-uri { - uri: data-uri('image/jpeg;base64', '../data/image.jpg'); - @var: replace('../data/replace.jpg', "replace", "image"); - background-image: data-uri(@var), data-uri(replace('../data/image.filext', "filext", "jpg")); - - uri-fragment: data-uri('image/jpeg;base64', '../data/image.jpg#fragment'); -} - -#data-uri-guess { - uri: data-uri('../data/image.jpg'); -} - -#data-uri-ascii { - uri-1: data-uri('text/html', '../data/page.html'); - uri-2: data-uri('../data/page.html'); -} - -#file-functions { - uri: data-uri('../data/data-uri-fail.png'); - svg-not-base-64: data-uri('../data/image.svg'); - size: image-size('../data/data-uri-fail.png'); - width: image-width('../data/data-uri-fail.png'); - height: image-height('../data/data-uri-fail.png'); -} -.add_an_import(@file_to_import) { -@import "@{file_to_import}"; -} - -.add_an_import("file.css"); - -#svg-functions { - background-image: svg-gradient(to bottom, black, white); - background-image: svg-gradient(to bottom, black, orange 3%, white); - @green_5: green 5%; - @orange_percentage: 3%; - @orange_color: orange; - background-image: svg-gradient(to bottom, (mix(black, white) + #444) 1%, @orange_color @orange_percentage, ((@green_5)), white 95%); -} -//it should work also inside @font-face #2035 -@font-face { - font-family: 'MyWebFont'; - src: url(webfont.eot); - src+: url('webfont.eot?#iefix'); - src+_: format('embedded-opentype'); - src+: url('webfont.woff') format('woff'); - src+: format('truetype'); - src+_: url('webfont.ttf'); - src+: url('webfont.svg#svgFontName') format('svg'); -} diff --git a/node_modules/less/test/less-bom/variables-in-at-rules.less b/node_modules/less/test/less-bom/variables-in-at-rules.less deleted file mode 100644 index bcb2533..0000000 --- a/node_modules/less/test/less-bom/variables-in-at-rules.less +++ /dev/null @@ -1,20 +0,0 @@ - -@Eight: 8; -@charset "UTF-@{Eight}"; - -@ns: less; -@namespace @ns "http://lesscss.org"; - -@name: enlarger; -@keyframes @name { - from {font-size: 12px;} - to {font-size: 15px;} -} - -.m(reducer); -.m(@name) { - @-webkit-keyframes @name { - from {font-size: 13px;} - to {font-size: 10px;} - } -} diff --git a/node_modules/less/test/less-bom/variables.less b/node_modules/less/test/less-bom/variables.less deleted file mode 100644 index 6e34b85..0000000 --- a/node_modules/less/test/less-bom/variables.less +++ /dev/null @@ -1,119 +0,0 @@ -@a: 2; -@x: (@a * @a); -@y: (@x + 1); -@z: (@x * 2 + @y); -@var: -1; - -.variables { - width: (@z + 1cm); // 14cm -} - -@b: @a * 10; -@c: #888; - -@fonts: "Trebuchet MS", Verdana, sans-serif; -@f: @fonts; - -@quotes: "~" "~"; -@q: @quotes; -@onePixel: 1px; - -.variables { - height: (@b + @x + 0px); // 24px - color: @c; - font-family: @f; - quotes: @q; -} - -.redef { - @var: 0; - .inition { - @var: 4; - @var: 2; - three: @var; - @var: 3; - } - zero: @var; -} - -@important-var: @c !important; -@important-var-two: @a !important; -.values { - minus-one: @var; - @a: 'Trebuchet'; - @multi: 'A', B, C; - font-family: @a, @a, @a; - color: @c !important; - same-color: @important-var; - same-again: @important-var !important; - multi-important: @important-var @important-var, @important-var-two; - multi: something @multi, @a; -} - -.variable-names { - .quoted { - @var: 'hello'; - @name: 'var'; - name: @@name; - } - - .unquoted { - @var: 'hello'; - @name: var; - name: @@name; - } - - .color-keyword { - @red: 'hello'; - @name: red; - name: @@name; - } -} - -.alpha { - @var: 42; - filter: alpha(opacity=@var); -} - -.polluteMixin() { - @a: 'pollution'; -} -.testPollution { - @a: 'no-pollution'; - a: @a; - .polluteMixin(); - a: @a; -} - -.units { - width: @onePixel; - same-unit-as-previously: (@onePixel / @onePixel); - square-pixel-divided: (@onePixel * @onePixel / @onePixel); - odd-unit: unit((@onePixel * 4em / 2cm)); - percentage: (10 * 50%); - pixels: (50px * 10); - conversion-metric-a: (20mm + 1cm); - conversion-metric-b: (1cm + 20mm); - conversion-imperial: (1in + 72pt + 6pc); - custom-unit: (42octocats * 10); - custom-unit-cancelling: (8cats * 9dogs / 4cats); - mix-units: (1px + 1em); - invalid-units: (1px * 1px); - .fallback { - @px: 14px; - @em: 1.4em; - @cm: 10cm; - div-px-1: (@px / @em); - div-px-2: ((@px / @em) / @cm); - sub-px-1: (@px - @em); - sub-cm-1: (@cm - (@px - @em)); - mul-px-1: (@px * @em); - mul-em-1: (@em * @px); - mul-em-2: ((@em * @px) * @cm); - mul-cm-1: (@cm * (@em * @px)); - add-px-1: (@px + @em); - add-px-2: ((@px + @em) + @cm); - mul-px-2: ((1 * @px) * @cm); - mul-px-3: ((@px * 1) * @cm); - } -} diff --git a/node_modules/less/test/less-bom/visitorPlugin/visitor.less b/node_modules/less/test/less-bom/visitorPlugin/visitor.less deleted file mode 100644 index 820ee88..0000000 --- a/node_modules/less/test/less-bom/visitorPlugin/visitor.less +++ /dev/null @@ -1,4 +0,0 @@ -.test { - color: red; - -some-aribitrary-property: value; -} diff --git a/node_modules/less/test/less-bom/whitespace.less b/node_modules/less/test/less-bom/whitespace.less deleted file mode 100644 index 705ca72..0000000 --- a/node_modules/less/test/less-bom/whitespace.less +++ /dev/null @@ -1,44 +0,0 @@ - - -.whitespace - { color: white; } - -.whitespace -{ - color: white; -} - .whitespace -{ color: white; } - -.whitespace{color:white;} -.whitespace { color : white ; } - -.white, -.space, -.mania -{ color: white; } - -.no-semi-column { color: white } -.no-semi-column { - color: white; - white-space: pre -} -.no-semi-column {border: 2px solid white} -.newlines { - background: the, - great, - wall; - border: 2px - solid - black; -} -.empty { - -} -.sel -.newline_ws .tab_ws { -color: -white; -background-position: 45 --23; -} diff --git a/node_modules/less/test/less-test.js b/node_modules/less/test/less-test.js deleted file mode 100644 index 7623a07..0000000 --- a/node_modules/less/test/less-test.js +++ /dev/null @@ -1,386 +0,0 @@ -/*jshint latedef: nofunc */ - -module.exports = function() { - var path = require('path'), - fs = require('fs'), - copyBom = require('./copy-bom')(), - doBomTest = false; - - var less = require('../lib/less-node'); - var stylize = require('../lib/less-node/lessc-helper').stylize; - - var globals = Object.keys(global); - - var oneTestOnly = process.argv[2], - isFinished = false; - - var isVerbose = process.env.npm_config_loglevel === 'verbose'; - - var normalFolder = 'test/less'; - var bomFolder = 'test/less-bom'; - - less.logger.addListener({ - info: function(msg) { - if (isVerbose) { - process.stdout.write(msg + "\n"); - } - }, - warn: function(msg) { - process.stdout.write(msg + "\n"); - }, - error: function(msg) { - process.stdout.write(msg + "\n"); - } - }); - - var queueList = [], - queueRunning = false; - function queue(func) { - if (queueRunning) { - //console.log("adding to queue"); - queueList.push(func); - } else { - //console.log("first in queue - starting"); - queueRunning = true; - func(); - } - } - function release() { - if (queueList.length) { - //console.log("running next in queue"); - var func = queueList.shift(); - setTimeout(func, 0); - } else { - //console.log("stopping queue"); - queueRunning = false; - } - } - - var totalTests = 0, - failedTests = 0, - passedTests = 0; - - less.functions.functionRegistry.addMultiple({ - add: function (a, b) { - return new(less.tree.Dimension)(a.value + b.value); - }, - increment: function (a) { - return new(less.tree.Dimension)(a.value + 1); - }, - _color: function (str) { - if (str.value === "evil red") { return new(less.tree.Color)("600"); } - } - }); - - function testSourcemap(name, err, compiledLess, doReplacements, sourcemap, baseFolder) { - fs.readFile(path.join('test/', name) + '.json', 'utf8', function (e, expectedSourcemap) { - process.stdout.write("- " + path.join(baseFolder, name) + ": "); - if (sourcemap === expectedSourcemap) { - ok('OK'); - } else if (err) { - fail("ERROR: " + (err && err.message)); - if (isVerbose) { - process.stdout.write("\n"); - process.stdout.write(err.stack + "\n"); - } - } else { - difference("FAIL", expectedSourcemap, sourcemap); - } - }); - } - - function testEmptySourcemap(name, err, compiledLess, doReplacements, sourcemap, baseFolder) { - process.stdout.write("- " + path.join(baseFolder, name) + ": "); - if (err) { - fail("ERROR: " + (err && err.message)); - } else { - var expectedSourcemap = undefined; - if ( compiledLess !== "" ) { - difference("\nCompiledLess must be empty", "", compiledLess); - - } else if (sourcemap !== expectedSourcemap) { - fail("Sourcemap must be undefined"); - } else { - ok('OK'); - } - } - } - - function testErrors(name, err, compiledLess, doReplacements, sourcemap, baseFolder) { - fs.readFile(path.join(baseFolder, name) + '.txt', 'utf8', function (e, expectedErr) { - process.stdout.write("- " + path.join(baseFolder, name) + ": "); - expectedErr = doReplacements(expectedErr, baseFolder); - if (!err) { - if (compiledLess) { - fail("No Error", 'red'); - } else { - fail("No Error, No Output"); - } - } else { - var errMessage = less.formatError(err); - if (errMessage === expectedErr) { - ok('OK'); - } else { - difference("FAIL", expectedErr, errMessage); - } - } - }); - } - - function globalReplacements(input, directory) { - var p = path.join(process.cwd(), directory), - pathimport = path.join(process.cwd(), directory + "import/"), - pathesc = p.replace(/[.:/\\]/g, function(a) { return '\\' + (a == '\\' ? '\/' : a); }), - pathimportesc = pathimport.replace(/[.:/\\]/g, function(a) { return '\\' + (a == '\\' ? '\/' : a); }); - - return input.replace(/\{path\}/g, p) - .replace(/\{pathesc\}/g, pathesc) - .replace(/\{pathimport\}/g, pathimport) - .replace(/\{pathimportesc\}/g, pathimportesc) - .replace(/\r\n/g, '\n'); - } - - function checkGlobalLeaks() { - return Object.keys(global).filter(function(v) { - return globals.indexOf(v) < 0; - }); - } - - function testSyncronous(options, filenameNoExtension) { - if (oneTestOnly && ("Test Sync " + filenameNoExtension) !== oneTestOnly) { - return; - } - totalTests++; - queue(function() { - var isSync = true; - toCSS(options, path.join(normalFolder, filenameNoExtension + ".less"), function (err, result) { - process.stdout.write("- Test Sync " + filenameNoExtension + ": "); - - if (isSync) { - ok("OK"); - } else { - fail("Not Sync"); - } - release(); - }); - isSync = false; - }); - } - - function prepBomTest() { - copyBom.copyFolderWithBom(normalFolder, bomFolder); - doBomTest = true; - } - - function runTestSet(options, foldername, verifyFunction, nameModifier, doReplacements, getFilename) { - var options2 = options ? JSON.parse(JSON.stringify(options)) : {}; - runTestSetInternal(normalFolder, options, foldername, verifyFunction, nameModifier, doReplacements, getFilename); - if (doBomTest) { - runTestSetInternal(bomFolder, options2, foldername, verifyFunction, nameModifier, doReplacements, getFilename); - } - } - - function runTestSetNormalOnly(options, foldername, verifyFunction, nameModifier, doReplacements, getFilename) { - runTestSetInternal(normalFolder, options, foldername, verifyFunction, nameModifier, doReplacements, getFilename); - } - - function runTestSetInternal(baseFolder, options, foldername, verifyFunction, nameModifier, doReplacements, getFilename) { - foldername = foldername || ""; - - if (!doReplacements) { - doReplacements = globalReplacements; - } - - function getBasename(file) { - return foldername + path.basename(file, '.less'); - } - - fs.readdirSync(path.join(baseFolder, foldername)).forEach(function (file) { - if (! /\.less/.test(file)) { return; } - - var name = getBasename(file); - - if (oneTestOnly && name !== oneTestOnly) { - return; - } - - totalTests++; - - if (options.sourceMap && !options.sourceMap.sourceMapFileInline) { - options.sourceMapOutputFilename = name + ".css"; - options.sourceMapBasepath = path.join(process.cwd(), baseFolder); - options.sourceMapRootpath = "testweb/"; - // TODO separate options? - options.sourceMap = options; - } - - options.getVars = function(file) { - return JSON.parse(fs.readFileSync(getFilename(getBasename(file), 'vars', baseFolder), 'utf8')); - }; - - var doubleCallCheck = false; - queue(function() { - toCSS(options, path.join(baseFolder, foldername + file), function (err, result) { - if (doubleCallCheck) { - totalTests++; - fail("less is calling back twice"); - process.stdout.write(doubleCallCheck + "\n"); - process.stdout.write((new Error()).stack + "\n"); - return; - } - doubleCallCheck = (new Error()).stack; - - if (verifyFunction) { - var verificationResult = verifyFunction(name, err, result && result.css, doReplacements, result && result.map, baseFolder); - release(); - return verificationResult; - } - if (err) { - fail("ERROR: " + (err && err.message)); - if (isVerbose) { - process.stdout.write("\n"); - if (err.stack) { - process.stdout.write(err.stack + "\n"); - } else { - //this sometimes happen - show the whole error object - console.log(err); - } - } - release(); - return; - } - var css_name = name; - if (nameModifier) { css_name = nameModifier(name); } - fs.readFile(path.join('test/css', css_name) + '.css', 'utf8', function (e, css) { - process.stdout.write("- " + path.join(baseFolder, css_name) + ": "); - - css = css && doReplacements(css, path.join(baseFolder, foldername)); - if (result.css === css) { ok('OK'); } - else { - difference("FAIL", css, result.css); - } - release(); - }); - }); - }); - }); - } - - function diff(left, right) { - require('diff').diffLines(left, right).forEach(function(item) { - if (item.added || item.removed) { - var text = item.value && item.value.replace("\n", String.fromCharCode(182) + "\n").replace('\ufeff', '[[BOM]]'); - process.stdout.write(stylize(text, item.added ? 'green' : 'red')); - } else { - process.stdout.write(item.value && item.value.replace('\ufeff', '[[BOM]]')); - } - }); - process.stdout.write("\n"); - } - - function fail(msg) { - process.stdout.write(stylize(msg, 'red') + "\n"); - failedTests++; - endTest(); - } - - function difference(msg, left, right) { - process.stdout.write(stylize(msg, 'yellow') + "\n"); - failedTests++; - - diff(left, right); - endTest(); - } - - function ok(msg) { - process.stdout.write(stylize(msg, 'green') + "\n"); - passedTests++; - endTest(); - } - - function finished() { - isFinished = true; - endTest(); - } - - function endTest() { - if (isFinished && ((failedTests + passedTests) >= totalTests)) { - var leaked = checkGlobalLeaks(); - - process.stdout.write("\n"); - if (failedTests > 0) { - process.stdout.write(failedTests + stylize(" Failed", "red") + ", " + passedTests + " passed\n"); - } else { - process.stdout.write(stylize("All Passed ", "green") + passedTests + " run\n"); - } - if (leaked.length > 0) { - process.stdout.write("\n"); - process.stdout.write(stylize("Global leak detected: ", "red") + leaked.join(', ') + "\n"); - } - - if (leaked.length || failedTests) { - process.on('exit', function() { process.reallyExit(1); }); - } - } - } - - function contains(fullArray, obj) { - for (var i = 0; i < fullArray.length; i++) { - if (fullArray[i] === obj) { - return true; - } - } - return false; - } - - function toCSS(options, path, callback) { - options = options || {}; - var str = fs.readFileSync(path, 'utf8'), addPath = require('path').dirname(path); - if (typeof options.paths !== "string") { - options.paths = options.paths || []; - if (!contains(options.paths, addPath)) { - options.paths.push(addPath); - } - } - options.filename = require('path').resolve(process.cwd(), path); - options.optimization = options.optimization || 0; - - if (options.globalVars) { - options.globalVars = options.getVars(path); - } else if (options.modifyVars) { - options.modifyVars = options.getVars(path); - } - if (options.plugin) { - var Plugin = require(require('path').resolve(process.cwd(), options.plugin)); - options.plugins = [Plugin]; - } - less.render(str, options, callback); - } - - function testNoOptions() { - if (oneTestOnly && "Integration" !== oneTestOnly) { - return; - } - totalTests++; - try { - process.stdout.write("- Integration - creating parser without options: "); - less.render(""); - } catch(e) { - fail(stylize("FAIL\n", "red")); - return; - } - ok(stylize("OK\n", "green")); - } - - return { - runTestSet: runTestSet, - runTestSetNormalOnly: runTestSetNormalOnly, - testSyncronous: testSyncronous, - testErrors: testErrors, - testSourcemap: testSourcemap, - testEmptySourcemap: testEmptySourcemap, - testNoOptions: testNoOptions, - prepBomTest: prepBomTest, - finished: finished - }; -}; diff --git a/node_modules/less/test/less/charsets.less b/node_modules/less/test/less/charsets.less deleted file mode 100644 index 550d40e..0000000 --- a/node_modules/less/test/less/charsets.less +++ /dev/null @@ -1,3 +0,0 @@ -@charset "UTF-8"; - -@import "import/import-charset-test"; \ No newline at end of file diff --git a/node_modules/less/test/less/colors.less b/node_modules/less/test/less/colors.less deleted file mode 100644 index 061ebc8..0000000 --- a/node_modules/less/test/less/colors.less +++ /dev/null @@ -1,98 +0,0 @@ -#yelow { - #short { - color: #fea; - } - #long { - color: #ffeeaa; - } - #rgba { - color: rgba(255, 238, 170, 0.1); - } - #argb { - color: argb(rgba(255, 238, 170, 0.1)); - } -} - -#blue { - #short { - color: #00f; - } - #long { - color: #0000ff; - } - #rgba { - color: rgba(0, 0, 255, 0.1); - } - #argb { - color: argb(rgba(0, 0, 255, 0.1)); - } -} - -#alpha #hsla { - color: hsla(11, 20%, 20%, 0.6); -} - -#overflow { - .a { color: (#111111 - #444444); } // #000000 - .b { color: (#eee + #fff); } // #ffffff - .c { color: (#aaa * 3); } // #ffffff - .d { color: (#00ee00 + #009900); } // #00ff00 - .e { color: rgba(-99.9, 31.4159, 321, 0.42); } -} - -#grey { - color: rgb(200, 200, 200); -} - -#333333 { - color: rgb(20%, 20%, 20%); -} - -#808080 { - color: hsl(50, 0%, 50%); -} - -#00ff00 { - color: hsl(120, 100%, 50%); -} - -.lightenblue { - color: lighten(blue, 10%); -} - -.darkenblue { - color: darken(blue, 10%); -} - -.unknowncolors { - color: blue2; - border: 2px solid superred; -} - -.transparent { - color: transparent; - background-color: rgba(0, 0, 0, 0); -} -#alpha { - @colorvar: rgba(150, 200, 150, 0.7); - #fromvar { - opacity: alpha(@colorvar); - } - #short { - opacity: alpha(#aaa); - } - #long { - opacity: alpha(#bababa); - } - #rgba { - opacity: alpha(rgba(50, 120, 95, 0.2)); - } - #hsl { - opacity: alpha(hsl(120, 100%, 50%)); - } -} - -#percentage { - color: red(rgb(100%, 0, 0)); - border-color: rgba(100%, 0, 0, 50%); -} diff --git a/node_modules/less/test/less/comments.less b/node_modules/less/test/less/comments.less deleted file mode 100644 index f33bd67..0000000 --- a/node_modules/less/test/less/comments.less +++ /dev/null @@ -1,102 +0,0 @@ -/******************\ -* * -* Comment Header * -* * -\******************/ - -/* - - Comment - -*/ - -/* - * Comment Test - * - * - cloudhead (http://cloudhead.net) - * - */ - -//////////////// -@var: "content"; -//////////////// - -/* Colors - * ------ - * #EDF8FC (background blue) - * #166C89 (darkest blue) - * - * Text: - * #333 (standard text) // A comment within a comment! - * #1F9EC9 (standard link) - * - */ - -/* @group Variables -------------------- */ -#comments /* boo *//* boo again*/, -//.commented_out1 -//.commented_out2 -//.commented_out3 -.comments //end of comments1 -//end of comments2 -{ - /**/ // An empty comment - color: red; /* A C-style comment */ /* A C-style comment */ - background-color: orange; // A little comment - font-size: 12px; - - /* lost comment */ content: @var; - - border: 1px solid black; - - // padding & margin // - padding: 0; // }{ '" - margin: 2em; -} // - -/* commented out - #more-comments { - color: grey; - } -*/ - -.selector /* .with */, .lots, /* of */ .comments { - color/* survive */ /* me too */: grey, /* blue */ orange; - -webkit-border-radius: 2px /* webkit only */; - -moz-border-radius: (2px * 4) /* moz only with operation */; -} - -.mixin_def_with_colors(@a: white, // in - @b: 1px //put in @b - causes problems! ---> - ) // the - when (@a = white) { - .test { - color: @b; - } -} -.mixin_def_with_colors(); - -// .s when -//R/2 - -.sr-only-focusable { - clip: auto; -} - -@-webkit-keyframes /* Safari */ hover /* and Chrome */ { - 0% { - color: red; - } -} - -#last { color: blue } -// - -/* *//* { *//* *//* *//* */#div { color:#A33; }/* } */ - -// line immediately followed -/*by block */ -@string_w_comment: ~"/* // Not commented out // */"; -#output-block { comment: @string_w_comment; } -/*comment on last line*/ \ No newline at end of file diff --git a/node_modules/less/test/less/comments2.less b/node_modules/less/test/less/comments2.less deleted file mode 100644 index dce78ba..0000000 --- a/node_modules/less/test/less/comments2.less +++ /dev/null @@ -1,31 +0,0 @@ -@media all and/*! */(max-width:1024px) {} -@-webkit-keyframes hover /* Safari and Chrome */{ } -.bg { - background-image: linear-gradient(#333 /*{comment}*/, #111); -} -#planadvisor, -/*comment*//*comment*/ -.first,/*comment*//*comment*/.planning { - margin:10px; - total-width: @total-width; -} -@base : 1; -@column-width : @base * 6em; // Width of column */ -@gutter-width : 2em; // Width of column spacing */ -@columns : 12; // Number of Columns */ -@gridsystem-width : (@column-width * // For calculating the total */ - @columns) + ( // width of the content area. */ - @gutter-width * // We strongly recommend you */ - @columns); // do not change this formula. */ -@total-width : @gridsystem-width; // set to 100% for fluid grid */ - -// ............................................................................. - -.some-inline-comments { - a: yes /* comment */; - b: red /* comment */; - @c: yes /* comment */; - @d: red /* comment */; - c: @c; - d: @d; -} diff --git a/node_modules/less/test/less/compression/compression.less b/node_modules/less/test/less/compression/compression.less deleted file mode 100644 index c196336..0000000 --- a/node_modules/less/test/less/compression/compression.less +++ /dev/null @@ -1,36 +0,0 @@ -#colours { - color1: #fea; - color2: #ffeeaa; - color3: rgba(255, 238, 170, 0.1); - @color1: #fea; - string: "@{color1}"; - /* comments are stripped */ - // both types! - /*! but not this type - Note preserved whitespace - */ -} -dimensions { - val: 0.1px; - val: 0em; - val: 4cm; - val: 0.2; - val: 5; - angles-must-have-unit: 0deg; - durations-must-have-unit: 0s; - length-doesnt-have-unit: 0px; - width: auto\9; -} -@page { - marks: none; -@top-left-corner { - vertical-align: top; -} -@top-left { - vertical-align: top; -} -} -.shadow ^ .dom, -body ^^ .shadow { - display: done; -} diff --git a/node_modules/less/test/less/css-3.less b/node_modules/less/test/less/css-3.less deleted file mode 100644 index 9f20679..0000000 --- a/node_modules/less/test/less/css-3.less +++ /dev/null @@ -1,162 +0,0 @@ -.comma-delimited { - text-shadow: -1px -1px 1px red, 6px 5px 5px yellow; - -moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset, - 0pt 4px 6px rgba(255, 255, 255, 0.4) inset; - -webkit-transform: rotate(-0.0000000001deg); -} -@font-face { - font-family: Headline; - unicode-range: U+??????, U+0???, U+0-7F, U+A5; -} -.other { - -moz-transform: translate(0, 11em) rotate(-90deg); - transform: rotateX(45deg); -} -.item[data-cra_zy-attr1b-ut3=bold] { - font-weight: bold; -} -p:not([class*="lead"]) { - color: black; -} - -input[type="text"].class#id[attr=32]:not(1) { - color: white; -} - -div#id.class[a=1][b=2].class:not(1) { - color: white; -} - -ul.comma > li:not(:only-child)::after { - color: white; -} - -ol.comma > li:nth-last-child(2)::after { - color: white; -} - -li:nth-child(4n+1), -li:nth-child(-5n), -li:nth-child(-n+2) { - color: white; -} - -a[href^="http://"] { - color: black; -} - -a[href$="http://"] { - color: black; -} - -form[data-disabled] { - color: black; -} - -p::before { - color: black; -} - -#issue322 { - -webkit-animation: anim2 7s infinite ease-in-out; -} - -@-webkit-keyframes frames { - 0% { border: 1px } - 5.5% { border: 2px } - 100% { border: 3px } -} - -@keyframes fontbulger1 { - to { - font-size: 15px; - } - from,to { - font-size: 12px; - } - 0%,100% { - font-size: 12px; - } -} - -.units { - font: 1.2rem/2rem; - font: 8vw/9vw; - font: 10vh/12vh; - font: 12vm/15vm; - font: 12vmin/15vmin; - font: 1.2ch/1.5ch; -} - -@supports ( box-shadow: 2px 2px 2px black ) or - ( -moz-box-shadow: 2px 2px 2px black ) { - .outline { - box-shadow: 2px 2px 2px black; - -moz-box-shadow: 2px 2px 2px black; - } -} - -@-x-document url-prefix(""github.com"") { - h1 { - color: red; - } -} - -@viewport { - font-size: 10px; -} -@namespace foo url(http://www.example.com); - -foo|h1 { color: blue; } -foo|* { color: yellow; } -|h1 { color: red; } -*|h1 { color: green; } -h1 { color: green; } -.upper-test { - UpperCaseProperties: allowed; -} -@host { - div { - display: block; - } -} -::distributed(input::placeholder) { - color: #b3b3b3; -} -.shadow ^ .dom, -body ^^ .shadow { - display: done; -} - -:host(.sel .a), -:host-context(.sel .b), -.sel /deep/ .b, -::content .sel { - type: shadow-dom; -} -/deep/ b { - c: 'd'; - &[e]{ - f: 'g'; - } -} - -#issue2066 { - background: url('/images/icon-team.svg') 0 0 / contain; -} - -@counter-style triangle { - system: cyclic; - symbols: ‣; - suffix: " "; -} - -@-ms-viewport{ - // width: auto !important; -} - -@unknown foo 42 (bar) { - x {y: z} -} - -@unknown foo 43; diff --git a/node_modules/less/test/less/css-escapes.less b/node_modules/less/test/less/css-escapes.less deleted file mode 100644 index 697503a..0000000 --- a/node_modules/less/test/less/css-escapes.less +++ /dev/null @@ -1,33 +0,0 @@ -@ugly: fuchsia; - -.escape\|random\|char { - color: red; -} - -.mixin\!tUp { - font-weight: bold; -} - -// class="404" -.\34 04 { - background: red; - - strong { - color: @ugly; - .mixin\!tUp; - } -} - -.trailingTest\+ { - color: red; -} - -/* This hideous test of hideousness checks for the selector "blockquote" with various permutations of hex escapes */ -\62\6c\6f \63 \6B \0071 \000075o\74 e { - color: silver; -} - -[ng\:cloak], -ng\:form { - display: none; -} diff --git a/node_modules/less/test/less/css-guards.less b/node_modules/less/test/less/css-guards.less deleted file mode 100644 index cabd52a..0000000 --- a/node_modules/less/test/less/css-guards.less +++ /dev/null @@ -1,103 +0,0 @@ - -.light when (lightness(@a) > 50%) { - color: green; -} -.dark when (lightness(@a) < 50%) { - color: orange; -} -@a: #ddd; - -.see-the { - @a: #444; // this mirrors what mixins do - they evaluate the guards at the point of definition - .light(); - .dark(); -} - -.hide-the { - .light(); - .dark(); -} - -.multiple-conditions-1 when (@b = 1), (@c = 2), (@d = 3) { - color: red; -} - -.multiple-conditions-2 when (@b = 1), (@c = 2), (@d = 2) { - color: blue; -} - -@b: 2; -@c: 3; -@d: 3; - -.inheritance when (@b = 2) { - .test { - color: black; - } - &:hover { - color: pink; - } - .hideme when (@b = 1) { - color: green; - } - & when (@b = 1) { - hideme: green; - } -} - -.hideme when (@b = 1) { - .test { - color: black; - } - &:hover { - color: pink; - } - .hideme when (@b = 1) { - color: green; - } -} - -& when (@b = 1) { - .hideme { - color: red; - } -} - -.mixin-with-guard-inside(@colWidth) { - // selector with guard (applies also to & when() ...) - .clsWithGuard when (@colWidth <= 0) { - dispaly: none; - } -} - -.mixin-with-guard-inside(0px); - -.dont-split-me-up { - width: 1px; - & when (@c = 3) { - color: red; - } - & when (@c = 3) { - height: 1px; - } - + & when (@c = 3) { // creates invalid css but tests that we don't fold it in - sibling: true; - } -} - -.scope-check when (@c = 3) { - @k: 1px; - & when (@c = 3) { - @k: 2px; - sub-prop: @k; - } - prop: @k; -} -.scope-check-2 { - .scope-check(); - @k:4px; -} -.errors-if-called when (@c = never) { - .mixin-doesnt-exist(); -} -a:hover when (2 = true) {5:-} \ No newline at end of file diff --git a/node_modules/less/test/less/css.less b/node_modules/less/test/less/css.less deleted file mode 100644 index 0cdebae..0000000 --- a/node_modules/less/test/less/css.less +++ /dev/null @@ -1,108 +0,0 @@ -@charset "utf-8"; -div { color: black; } -div { width: 99%; } - -* { - min-width: 45em; -} - -h1, h2 > a > p, h3 { - color: none; -} - -div.class { - color: blue; -} - -div#id { - color: green; -} - -.class#id { - color: purple; -} - -.one.two.three { - color: grey; -} - -@media print { - * { - font-size: 3em; - } -} - -@media screen { - * { - font-size: 10px; - } -} - -@font-face { - font-family: 'Garamond Pro'; -} - -a:hover, a:link { - color: #999; -} - -p, p:first-child { - text-transform: none; -} - -q:lang(no) { - quotes: none; -} - -p + h1 { - font-size: +2.2em; -} - -#shorthands { - border: 1px solid #000; - font: 12px/16px Arial; - font: 100%/16px Arial; - margin: 1px 0; - padding: 0 auto; -} - -#more-shorthands { - margin: 0; - padding: 1px 0 2px 0; - font: normal small/20px 'Trebuchet MS', Verdana, sans-serif; - font: 0/0 a; - border-radius: 5px / 10px; -} - -.misc { - -moz-border-radius: 2px; - display: -moz-inline-stack; - width: .1em; - background-color: #009998; - background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue)); - margin: ; - .nested-multiple { - multiple-semi-colons: yes;;;;;; - }; - filter: alpha(opacity=100); - width: auto\9; -} - -#important { - color: red !important; - width: 100%!important; - height: 20px ! important; -} - -.def-font(@name) { - @font-face { - font-family: @name - } -} - -.def-font(font-a); -.def-font(font-b); - -.æøå { - margin: 0; -} diff --git a/node_modules/less/test/less/debug/import/test.less b/node_modules/less/test/less/debug/import/test.less deleted file mode 100644 index 795082f..0000000 --- a/node_modules/less/test/less/debug/import/test.less +++ /dev/null @@ -1,25 +0,0 @@ -@charset "ISO-8859-1"; - -.mixin_import1() { - @media all { - .tst { - color: black; - @media screen { - color: red; - .tst3 { - color: white; - } - } - } - } -} - -.mixin_import2() { - .tst2 { - color: white; - } -} - -.tst3 { - color: grey; -} \ No newline at end of file diff --git a/node_modules/less/test/less/debug/linenumbers.less b/node_modules/less/test/less/debug/linenumbers.less deleted file mode 100644 index 3bcaed0..0000000 --- a/node_modules/less/test/less/debug/linenumbers.less +++ /dev/null @@ -1,33 +0,0 @@ -@charset "UTF-8"; - -@import "import/test.less"; - -.start() { - .test2 { - color: red; - } -} - -.mix() { - color: black; -} - -.test1 { - .mix(); -} - -.start(); - -.mixin_import1(); - -.mixin_import2(); - -@debug: 1; -& when (@debug = 1) { - .test { - color: red; - & when (@debug = 1) { - width: 2; - } - } -} \ No newline at end of file diff --git a/node_modules/less/test/less/detached-rulesets.less b/node_modules/less/test/less/detached-rulesets.less deleted file mode 100644 index 0475f63..0000000 --- a/node_modules/less/test/less/detached-rulesets.less +++ /dev/null @@ -1,112 +0,0 @@ -@ruleset: { - color: black; - background: white; - }; - -@a: 1px; -.wrap-mixin(@ruleset) { - @a: hidden and if you see this in the output its a bug; - @b: visible; - @d: magic-frame; // same behaviour as mixin calls - falls back to this frame - .wrap-selector { - @c: visible; - @ruleset(); - visible-one: @b; - visible-two: @c; - } -}; - -.wrap-mixin({ - color: black; - one: @a; - @b: hidden and if you see this in the output its a bug; - @c: hidden and if you see this in the output its a bug; - four: @d; -}); - -.wrap-mixin(@ruleset: { - color: red; -}); - -.wrap-mixin(@ruleset); - -.desktop-and-old-ie(@rules) { - @media screen and (min-width: 1200) { @rules(); } - html.lt-ie9 & { @rules(); } -} - -header { - background: blue; - - .desktop-and-old-ie({ - background: red; - }); -} - -.wrap-mixin-calls-wrap(@ruleset) { - .wrap-mixin(@ruleset); -}; - -.wrap-mixin({ - test: extra-wrap; - .wrap-mixin-calls-wrap({ - test: wrapped-twice; - }); -}); - -.wrap-mixin({ - test-func: unit(90px); - test-arithmetic: unit((9+9), px); -}); -// without mixins -@ruleset-2: { - b: 1; -}; -.without-mixins { - @ruleset-2(); -} -@my-ruleset: { - .my-selector { - @media tv { - background-color: black; - } - } - }; -@media (orientation:portrait) { - @my-ruleset(); - .wrap-media-mixin({ - @media tv { - .triple-wrapped-mq { - triple: true; - } - } - }); -} -.wrap-media-mixin(@ruleset) { - @media widescreen { - @media print { - @ruleset(); - } - @ruleset(); - } - @ruleset(); -} -// unlocking mixins -@my-mixins: { - .mixin() { - test: test; - } -}; -@my-mixins(); -.a { - .mixin(); -} -// as mixin argument default -.mixin-definition(@a: {}; @b: {default: works;};) { - @a(); - @b(); -} -.argument-default { - .mixin-definition(); - .mixin-definition({direct: works;}; @b: {named: works;}); -} \ No newline at end of file diff --git a/node_modules/less/test/less/directives-bubling.less b/node_modules/less/test/less/directives-bubling.less deleted file mode 100644 index be35238..0000000 --- a/node_modules/less/test/less/directives-bubling.less +++ /dev/null @@ -1,142 +0,0 @@ -//simple case: @document -.parent { - color:green; - - @document url-prefix() { - .child { - color:red; - } - } -} - -//selectors joinings test -.top { - @supports (sandwitch: butter) { - .inside & { - property: value; - } - } -} - -@supports (sandwitch: bread) { - .in1 { - .in2 { - property: value; - } - } -} - -.top { - .inside & { - @supports (sandwitch: ham) { - property: value; - } - } -} - -//combined with @font-face which has different kind of body -@supports (font-family: weirdFont) { - @font-face { - font-family: something; - src: made-up-url; - } -} - -@font-face { - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - font-family: something; - src: made-up-url; - } -} - -//bubling through media -@supports (property: value) { - .outOfMedia & { - @media (max-size: 2px) { - @supports (whatever: something) { - property: value; - } - } - } -} - -.onTop & { - @supports (property: value) { - @media (max-size: 2px) { - @supports (whatever: something) { - property: value; - } - } - } -} - - -//long combination of supports and media -@media print { - html { - in-html: visible; - @supports (upper: test) { - in-supports: first; - div { - in-div: visible; - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - in-supports: second; - @media screen { - font-weight: 400; - nested { - property: value; - } - } - } - } - } - } -} - -//another long combination of supports and media -@media print { - @media (max-size: 2px) { - .in1 { - stay: here; - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - .in2 & { - @supports (whatever: something) { - property: value; - } - } - } - } - } -} - -//called from mixin -.nestedSupportsMixin() { - font-weight: 300; - -webkit-font-smoothing: subpixel-antialiased; - @supports not (-webkit-font-smoothing: subpixel-antialiased) { - font-weight: 400; - nested { - property: value; - } - } -} - -html { - .nestedSupportsMixin; -} - -// selectors should not propagate into all directive types -.onTop { - @font-face { - font-family: something; - src: made-up-url; - } - - @keyframes "textscale" { - 0% { font-size : 1em; } - 100% { font-size : 2em; } - } - - animation : "textscale"; - font-family : something; -} diff --git a/node_modules/less/test/less/empty.less b/node_modules/less/test/less/empty.less deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/less/test/less/errors/add-mixed-units.less b/node_modules/less/test/less/errors/add-mixed-units.less deleted file mode 100644 index 9b708de..0000000 --- a/node_modules/less/test/less/errors/add-mixed-units.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - error: (1px + 3em); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/add-mixed-units.txt b/node_modules/less/test/less/errors/add-mixed-units.txt deleted file mode 100644 index 9ea4543..0000000 --- a/node_modules/less/test/less/errors/add-mixed-units.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px' and 'em'. in {path}add-mixed-units.less on line 2, column 3: -1 .a { -2 error: (1px + 3em); -3 } diff --git a/node_modules/less/test/less/errors/add-mixed-units2.less b/node_modules/less/test/less/errors/add-mixed-units2.less deleted file mode 100644 index 2663116..0000000 --- a/node_modules/less/test/less/errors/add-mixed-units2.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - error: ((1px * 2px) + (3em * 3px)); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/add-mixed-units2.txt b/node_modules/less/test/less/errors/add-mixed-units2.txt deleted file mode 100644 index ca34304..0000000 --- a/node_modules/less/test/less/errors/add-mixed-units2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px*px' and 'em*px'. in {path}add-mixed-units2.less on line 2, column 3: -1 .a { -2 error: ((1px * 2px) + (3em * 3px)); -3 } diff --git a/node_modules/less/test/less/errors/at-rules-undefined-var.less b/node_modules/less/test/less/errors/at-rules-undefined-var.less deleted file mode 100644 index a147380..0000000 --- a/node_modules/less/test/less/errors/at-rules-undefined-var.less +++ /dev/null @@ -1,4 +0,0 @@ - -@keyframes @name { - 50% {width: 20px;} -} diff --git a/node_modules/less/test/less/errors/at-rules-undefined-var.txt b/node_modules/less/test/less/errors/at-rules-undefined-var.txt deleted file mode 100644 index 240540a..0000000 --- a/node_modules/less/test/less/errors/at-rules-undefined-var.txt +++ /dev/null @@ -1,4 +0,0 @@ -NameError: variable @name is undefined in {path}at-rules-undefined-var.less on line 2, column 12: -1 -2 @keyframes @name { -3 50% {width: 20px;} diff --git a/node_modules/less/test/less/errors/bad-variable-declaration1.less b/node_modules/less/test/less/errors/bad-variable-declaration1.less deleted file mode 100644 index c2dc6ac..0000000 --- a/node_modules/less/test/less/errors/bad-variable-declaration1.less +++ /dev/null @@ -1 +0,0 @@ -@@demo: "hi"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/bad-variable-declaration1.txt b/node_modules/less/test/less/errors/bad-variable-declaration1.txt deleted file mode 100644 index 5ae9d4a..0000000 --- a/node_modules/less/test/less/errors/bad-variable-declaration1.txt +++ /dev/null @@ -1,2 +0,0 @@ -ParseError: Unrecognised input in {path}bad-variable-declaration1.less on line 1, column 1: -1 @@demo: "hi"; diff --git a/node_modules/less/test/less/errors/color-func-invalid-color.less b/node_modules/less/test/less/errors/color-func-invalid-color.less deleted file mode 100644 index 5a1edd0..0000000 --- a/node_modules/less/test/less/errors/color-func-invalid-color.less +++ /dev/null @@ -1,3 +0,0 @@ -.test { - color: color("NOT A COLOR"); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/color-func-invalid-color.txt b/node_modules/less/test/less/errors/color-func-invalid-color.txt deleted file mode 100644 index 08990c3..0000000 --- a/node_modules/less/test/less/errors/color-func-invalid-color.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `color`: argument must be a color keyword or 3/6 digit hex e.g. #FFF in {path}color-func-invalid-color.less on line 2, column 10: -1 .test { -2 color: color("NOT A COLOR"); -3 } diff --git a/node_modules/less/test/less/errors/color-invalid-hex-code.less b/node_modules/less/test/less/errors/color-invalid-hex-code.less deleted file mode 100644 index 0e6c5de..0000000 --- a/node_modules/less/test/less/errors/color-invalid-hex-code.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - @wrongHEXColorCode: #DCALLB; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/color-invalid-hex-code.txt b/node_modules/less/test/less/errors/color-invalid-hex-code.txt deleted file mode 100644 index 0f8a82c..0000000 --- a/node_modules/less/test/less/errors/color-invalid-hex-code.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Invalid HEX color code in {path}color-invalid-hex-code.less on line 2, column 29: -1 .a { -2 @wrongHEXColorCode: #DCALLB; -3 } diff --git a/node_modules/less/test/less/errors/color-invalid-hex-code2.less b/node_modules/less/test/less/errors/color-invalid-hex-code2.less deleted file mode 100644 index cb9a9b7..0000000 --- a/node_modules/less/test/less/errors/color-invalid-hex-code2.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - @wrongHEXColorCode: #fffblack; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/color-invalid-hex-code2.txt b/node_modules/less/test/less/errors/color-invalid-hex-code2.txt deleted file mode 100644 index dd3996b..0000000 --- a/node_modules/less/test/less/errors/color-invalid-hex-code2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Invalid HEX color code in {path}color-invalid-hex-code2.less on line 2, column 29: -1 .a { -2 @wrongHEXColorCode: #fffblack; -3 } diff --git a/node_modules/less/test/less/errors/css-guard-default-func.less b/node_modules/less/test/less/errors/css-guard-default-func.less deleted file mode 100644 index db6639e..0000000 --- a/node_modules/less/test/less/errors/css-guard-default-func.less +++ /dev/null @@ -1,4 +0,0 @@ - -selector when (default()) { - color: red; -} diff --git a/node_modules/less/test/less/errors/css-guard-default-func.txt b/node_modules/less/test/less/errors/css-guard-default-func.txt deleted file mode 100644 index 022f522..0000000 --- a/node_modules/less/test/less/errors/css-guard-default-func.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: error evaluating function `default`: it is currently only allowed in parametric mixin guards, in {path}css-guard-default-func.less on line 2, column 16: -1 -2 selector when (default()) { -3 color: red; diff --git a/node_modules/less/test/less/errors/detached-ruleset-1.less b/node_modules/less/test/less/errors/detached-ruleset-1.less deleted file mode 100644 index ac5b8db..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-1.less +++ /dev/null @@ -1,6 +0,0 @@ -@a: { - b: 1; -}; -.a { - a: @a; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/detached-ruleset-1.txt b/node_modules/less/test/less/errors/detached-ruleset-1.txt deleted file mode 100644 index 7407741..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Rulesets cannot be evaluated on a property. in {path}detached-ruleset-1.less on line 5, column 3: -4 .a { -5 a: @a; -6 } diff --git a/node_modules/less/test/less/errors/detached-ruleset-2.less b/node_modules/less/test/less/errors/detached-ruleset-2.less deleted file mode 100644 index 51a7af6..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-2.less +++ /dev/null @@ -1,6 +0,0 @@ -@a: { - b: 1; -}; -.a { - a: @a(); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/detached-ruleset-2.txt b/node_modules/less/test/less/errors/detached-ruleset-2.txt deleted file mode 100644 index 43b9925..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-2.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Expected ')' in {path}detached-ruleset-2.less on line 5, column 9: -4 .a { -5 a: @a(); -6 } diff --git a/node_modules/less/test/less/errors/detached-ruleset-3.less b/node_modules/less/test/less/errors/detached-ruleset-3.less deleted file mode 100644 index c50119d..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-3.less +++ /dev/null @@ -1,4 +0,0 @@ -@a: { - b: 1; -}; -@a(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/detached-ruleset-3.txt b/node_modules/less/test/less/errors/detached-ruleset-3.txt deleted file mode 100644 index ad43ab4..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-3.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Properties must be inside selector blocks. They cannot be in the root in {path}detached-ruleset-3.less on line 2, column 3: -1 @a: { -2 b: 1; -3 }; diff --git a/node_modules/less/test/less/errors/detached-ruleset-5.less b/node_modules/less/test/less/errors/detached-ruleset-5.less deleted file mode 100644 index 174ebf3..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-5.less +++ /dev/null @@ -1,4 +0,0 @@ -.mixin-definition(@b) { - @a(); -} -.mixin-definition({color: red;}); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/detached-ruleset-5.txt b/node_modules/less/test/less/errors/detached-ruleset-5.txt deleted file mode 100644 index 5618979..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-5.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: variable @a is undefined in {path}detached-ruleset-5.less on line 4, column 1: -3 } -4 .mixin-definition({color: red;}); diff --git a/node_modules/less/test/less/errors/detached-ruleset-6.less b/node_modules/less/test/less/errors/detached-ruleset-6.less deleted file mode 100644 index 121099f..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-6.less +++ /dev/null @@ -1,5 +0,0 @@ -.a { - b: { - color: red; - }; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/detached-ruleset-6.txt b/node_modules/less/test/less/errors/detached-ruleset-6.txt deleted file mode 100644 index 7f6b0ae..0000000 --- a/node_modules/less/test/less/errors/detached-ruleset-6.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input in {path}detached-ruleset-6.less on line 2, column 6: -1 .a { -2 b: { -3 color: red; diff --git a/node_modules/less/test/less/errors/divide-mixed-units.less b/node_modules/less/test/less/errors/divide-mixed-units.less deleted file mode 100644 index d228b7c..0000000 --- a/node_modules/less/test/less/errors/divide-mixed-units.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - error: (1px / 3em); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/divide-mixed-units.txt b/node_modules/less/test/less/errors/divide-mixed-units.txt deleted file mode 100644 index c189d2a..0000000 --- a/node_modules/less/test/less/errors/divide-mixed-units.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Multiple units in dimension. Correct the units or use the unit function. Bad unit: px/em in {path}divide-mixed-units.less on line 2, column 3: -1 .a { -2 error: (1px / 3em); -3 } diff --git a/node_modules/less/test/less/errors/extend-no-selector.less b/node_modules/less/test/less/errors/extend-no-selector.less deleted file mode 100644 index 84689ef..0000000 --- a/node_modules/less/test/less/errors/extend-no-selector.less +++ /dev/null @@ -1,3 +0,0 @@ -:extend(.a all) { - property: red; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/extend-no-selector.txt b/node_modules/less/test/less/errors/extend-no-selector.txt deleted file mode 100644 index bd2e3cd..0000000 --- a/node_modules/less/test/less/errors/extend-no-selector.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Extend must be used to extend a selector, it cannot be used on its own in {path}extend-no-selector.less on line 1, column 17: -1 :extend(.a all) { -2 property: red; diff --git a/node_modules/less/test/less/errors/extend-not-at-end.less b/node_modules/less/test/less/errors/extend-not-at-end.less deleted file mode 100644 index 90ee512..0000000 --- a/node_modules/less/test/less/errors/extend-not-at-end.less +++ /dev/null @@ -1,3 +0,0 @@ -.a:extend(.b all).c { - property: red; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/extend-not-at-end.txt b/node_modules/less/test/less/errors/extend-not-at-end.txt deleted file mode 100644 index 32ebedf..0000000 --- a/node_modules/less/test/less/errors/extend-not-at-end.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Extend can only be used at the end of selector in {path}extend-not-at-end.less on line 1, column 21: -1 .a:extend(.b all).c { -2 property: red; diff --git a/node_modules/less/test/less/errors/functions-1.less b/node_modules/less/test/less/errors/functions-1.less deleted file mode 100644 index f502aa2..0000000 --- a/node_modules/less/test/less/errors/functions-1.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-undefined(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-1.txt b/node_modules/less/test/less/errors/functions-1.txt deleted file mode 100644 index abeb4bd..0000000 --- a/node_modules/less/test/less/errors/functions-1.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Function 'test-undefined' is undefined in {path}functions-1.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-undefined(); diff --git a/node_modules/less/test/less/errors/functions-10-keyword.less b/node_modules/less/test/less/errors/functions-10-keyword.less deleted file mode 100644 index 16d0b98..0000000 --- a/node_modules/less/test/less/errors/functions-10-keyword.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-keyword(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-10-keyword.txt b/node_modules/less/test/less/errors/functions-10-keyword.txt deleted file mode 100644 index dabe839..0000000 --- a/node_modules/less/test/less/errors/functions-10-keyword.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Keyword node returned by a function is not valid here in {path}functions-10-keyword.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-keyword(); diff --git a/node_modules/less/test/less/errors/functions-11-operation.less b/node_modules/less/test/less/errors/functions-11-operation.less deleted file mode 100644 index 5695bdb..0000000 --- a/node_modules/less/test/less/errors/functions-11-operation.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-operation(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-11-operation.txt b/node_modules/less/test/less/errors/functions-11-operation.txt deleted file mode 100644 index 2728717..0000000 --- a/node_modules/less/test/less/errors/functions-11-operation.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Operation node returned by a function is not valid here in {path}functions-11-operation.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-operation(); diff --git a/node_modules/less/test/less/errors/functions-12-quoted.less b/node_modules/less/test/less/errors/functions-12-quoted.less deleted file mode 100644 index d35be87..0000000 --- a/node_modules/less/test/less/errors/functions-12-quoted.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-quoted(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-12-quoted.txt b/node_modules/less/test/less/errors/functions-12-quoted.txt deleted file mode 100644 index 45c62ea..0000000 --- a/node_modules/less/test/less/errors/functions-12-quoted.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Quoted node returned by a function is not valid here in {path}functions-12-quoted.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-quoted(); diff --git a/node_modules/less/test/less/errors/functions-13-selector.less b/node_modules/less/test/less/errors/functions-13-selector.less deleted file mode 100644 index 2fd879c..0000000 --- a/node_modules/less/test/less/errors/functions-13-selector.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-selector(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-13-selector.txt b/node_modules/less/test/less/errors/functions-13-selector.txt deleted file mode 100644 index 2f4b097..0000000 --- a/node_modules/less/test/less/errors/functions-13-selector.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Selector node returned by a function is not valid here in {path}functions-13-selector.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-selector(); diff --git a/node_modules/less/test/less/errors/functions-14-url.less b/node_modules/less/test/less/errors/functions-14-url.less deleted file mode 100644 index bed6dab..0000000 --- a/node_modules/less/test/less/errors/functions-14-url.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-url(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-14-url.txt b/node_modules/less/test/less/errors/functions-14-url.txt deleted file mode 100644 index aeb275c..0000000 --- a/node_modules/less/test/less/errors/functions-14-url.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Url node returned by a function is not valid here in {path}functions-14-url.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-url(); diff --git a/node_modules/less/test/less/errors/functions-15-value.less b/node_modules/less/test/less/errors/functions-15-value.less deleted file mode 100644 index 189ce19..0000000 --- a/node_modules/less/test/less/errors/functions-15-value.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-value(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-15-value.txt b/node_modules/less/test/less/errors/functions-15-value.txt deleted file mode 100644 index 41f6e6a..0000000 --- a/node_modules/less/test/less/errors/functions-15-value.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Value node returned by a function is not valid here in {path}functions-15-value.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-value(); diff --git a/node_modules/less/test/less/errors/functions-2-alpha.less b/node_modules/less/test/less/errors/functions-2-alpha.less deleted file mode 100644 index f00da07..0000000 --- a/node_modules/less/test/less/errors/functions-2-alpha.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-alpha(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-2-alpha.txt b/node_modules/less/test/less/errors/functions-2-alpha.txt deleted file mode 100644 index 38a1727..0000000 --- a/node_modules/less/test/less/errors/functions-2-alpha.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Alpha node returned by a function is not valid here in {path}functions-2-alpha.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-alpha(); diff --git a/node_modules/less/test/less/errors/functions-3-assignment.less b/node_modules/less/test/less/errors/functions-3-assignment.less deleted file mode 100644 index fe7f5ad..0000000 --- a/node_modules/less/test/less/errors/functions-3-assignment.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-assignment(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-3-assignment.txt b/node_modules/less/test/less/errors/functions-3-assignment.txt deleted file mode 100644 index 35c1992..0000000 --- a/node_modules/less/test/less/errors/functions-3-assignment.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Assignment node returned by a function is not valid here in {path}functions-3-assignment.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-assignment(); diff --git a/node_modules/less/test/less/errors/functions-4-call.less b/node_modules/less/test/less/errors/functions-4-call.less deleted file mode 100644 index 6b55c88..0000000 --- a/node_modules/less/test/less/errors/functions-4-call.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-call(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-4-call.txt b/node_modules/less/test/less/errors/functions-4-call.txt deleted file mode 100644 index 338582d..0000000 --- a/node_modules/less/test/less/errors/functions-4-call.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Function 'foo' is undefined in {path}functions-4-call.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-call(); diff --git a/node_modules/less/test/less/errors/functions-5-color-2.less b/node_modules/less/test/less/errors/functions-5-color-2.less deleted file mode 100644 index 4839416..0000000 --- a/node_modules/less/test/less/errors/functions-5-color-2.less +++ /dev/null @@ -1 +0,0 @@ -rgba(0,0,0,0); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-5-color-2.txt b/node_modules/less/test/less/errors/functions-5-color-2.txt deleted file mode 100644 index 8b36fd9..0000000 --- a/node_modules/less/test/less/errors/functions-5-color-2.txt +++ /dev/null @@ -1,2 +0,0 @@ -SyntaxError: Color node returned by a function is not valid here in {path}functions-5-color-2.less on line 1, column 1: -1 rgba(0,0,0,0); diff --git a/node_modules/less/test/less/errors/functions-5-color.less b/node_modules/less/test/less/errors/functions-5-color.less deleted file mode 100644 index 700ec5b..0000000 --- a/node_modules/less/test/less/errors/functions-5-color.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-color(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-5-color.txt b/node_modules/less/test/less/errors/functions-5-color.txt deleted file mode 100644 index fdcd1a0..0000000 --- a/node_modules/less/test/less/errors/functions-5-color.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Color node returned by a function is not valid here in {path}functions-5-color.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-color(); diff --git a/node_modules/less/test/less/errors/functions-6-condition.less b/node_modules/less/test/less/errors/functions-6-condition.less deleted file mode 100644 index db1000b..0000000 --- a/node_modules/less/test/less/errors/functions-6-condition.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-condition(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-6-condition.txt b/node_modules/less/test/less/errors/functions-6-condition.txt deleted file mode 100644 index 421bba5..0000000 --- a/node_modules/less/test/less/errors/functions-6-condition.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Condition node returned by a function is not valid here in {path}functions-6-condition.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-condition(); diff --git a/node_modules/less/test/less/errors/functions-7-dimension.less b/node_modules/less/test/less/errors/functions-7-dimension.less deleted file mode 100644 index c399d33..0000000 --- a/node_modules/less/test/less/errors/functions-7-dimension.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-dimension(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-7-dimension.txt b/node_modules/less/test/less/errors/functions-7-dimension.txt deleted file mode 100644 index 3b1b702..0000000 --- a/node_modules/less/test/less/errors/functions-7-dimension.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Dimension node returned by a function is not valid here in {path}functions-7-dimension.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-dimension(); diff --git a/node_modules/less/test/less/errors/functions-8-element.less b/node_modules/less/test/less/errors/functions-8-element.less deleted file mode 100644 index c762aad..0000000 --- a/node_modules/less/test/less/errors/functions-8-element.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-element(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-8-element.txt b/node_modules/less/test/less/errors/functions-8-element.txt deleted file mode 100644 index b505d95..0000000 --- a/node_modules/less/test/less/errors/functions-8-element.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Element node returned by a function is not valid here in {path}functions-8-element.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-element(); diff --git a/node_modules/less/test/less/errors/functions-9-expression.less b/node_modules/less/test/less/errors/functions-9-expression.less deleted file mode 100644 index 5f0bf46..0000000 --- a/node_modules/less/test/less/errors/functions-9-expression.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes"; -test-expression(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/functions-9-expression.txt b/node_modules/less/test/less/errors/functions-9-expression.txt deleted file mode 100644 index 224db78..0000000 --- a/node_modules/less/test/less/errors/functions-9-expression.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Expression node returned by a function is not valid here in {path}functions-9-expression.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes"; -2 test-expression(); diff --git a/node_modules/less/test/less/errors/import-malformed.less b/node_modules/less/test/less/errors/import-malformed.less deleted file mode 100644 index 66768c8..0000000 --- a/node_modules/less/test/less/errors/import-malformed.less +++ /dev/null @@ -1 +0,0 @@ -@import malformed "this-statement-is-invalid.less"; diff --git a/node_modules/less/test/less/errors/import-malformed.txt b/node_modules/less/test/less/errors/import-malformed.txt deleted file mode 100644 index f8ba9f8..0000000 --- a/node_modules/less/test/less/errors/import-malformed.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: malformed import statement in {path}import-malformed.less on line 1, column 1: -1 @import malformed "this-statement-is-invalid.less"; -2 diff --git a/node_modules/less/test/less/errors/import-missing.less b/node_modules/less/test/less/errors/import-missing.less deleted file mode 100644 index a8046af..0000000 --- a/node_modules/less/test/less/errors/import-missing.less +++ /dev/null @@ -1,6 +0,0 @@ -.a { - color: green; - // tests line number for import reference is correct -} - -@import "file-does-not-exist.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/import-missing.txt b/node_modules/less/test/less/errors/import-missing.txt deleted file mode 100644 index 5602b0f..0000000 --- a/node_modules/less/test/less/errors/import-missing.txt +++ /dev/null @@ -1,3 +0,0 @@ -FileError: '{pathhref}file-does-not-exist.less' wasn't found{404status}{node}. Tried - {path}file-does-not-exist.less,{pathrel}file-does-not-exist.less,file-does-not-exist.less{/node} in {path}import-missing.less on line 6, column 1: -5 -6 @import "file-does-not-exist.less"; diff --git a/node_modules/less/test/less/errors/import-no-semi.less b/node_modules/less/test/less/errors/import-no-semi.less deleted file mode 100644 index bf2c7f6..0000000 --- a/node_modules/less/test/less/errors/import-no-semi.less +++ /dev/null @@ -1 +0,0 @@ -@import "this-statement-is-invalid.less" \ No newline at end of file diff --git a/node_modules/less/test/less/errors/import-no-semi.txt b/node_modules/less/test/less/errors/import-no-semi.txt deleted file mode 100644 index aaa4ac5..0000000 --- a/node_modules/less/test/less/errors/import-no-semi.txt +++ /dev/null @@ -1,2 +0,0 @@ -SyntaxError: missing semi-colon or unrecognised media features on import in {path}import-no-semi.less on line 1, column 1: -1 @import "this-statement-is-invalid.less" diff --git a/node_modules/less/test/less/errors/import-subfolder1.less b/node_modules/less/test/less/errors/import-subfolder1.less deleted file mode 100644 index 4280673..0000000 --- a/node_modules/less/test/less/errors/import-subfolder1.less +++ /dev/null @@ -1 +0,0 @@ -@import "imports/import-subfolder1.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/import-subfolder1.txt b/node_modules/less/test/less/errors/import-subfolder1.txt deleted file mode 100644 index 9762927..0000000 --- a/node_modules/less/test/less/errors/import-subfolder1.txt +++ /dev/null @@ -1,3 +0,0 @@ -NameError: .mixin-not-defined is undefined in {path}mixin-not-defined.less on line 11, column 1: -10 -11 .mixin-not-defined(); diff --git a/node_modules/less/test/less/errors/import-subfolder2.less b/node_modules/less/test/less/errors/import-subfolder2.less deleted file mode 100644 index a6b9b9c..0000000 --- a/node_modules/less/test/less/errors/import-subfolder2.less +++ /dev/null @@ -1 +0,0 @@ -@import "imports/import-subfolder2.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/import-subfolder2.txt b/node_modules/less/test/less/errors/import-subfolder2.txt deleted file mode 100644 index 59cf5bd..0000000 --- a/node_modules/less/test/less/errors/import-subfolder2.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input. Possibly missing opening '{' in {path}parse-error-curly-bracket.less on line 4, column 1: -3 } -4 } -5 diff --git a/node_modules/less/test/less/errors/imports/import-subfolder1.less b/node_modules/less/test/less/errors/imports/import-subfolder1.less deleted file mode 100644 index 24ec053..0000000 --- a/node_modules/less/test/less/errors/imports/import-subfolder1.less +++ /dev/null @@ -1 +0,0 @@ -@import "subfolder/mixin-not-defined.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/imports/import-subfolder2.less b/node_modules/less/test/less/errors/imports/import-subfolder2.less deleted file mode 100644 index 6058ad1..0000000 --- a/node_modules/less/test/less/errors/imports/import-subfolder2.less +++ /dev/null @@ -1 +0,0 @@ -@import "subfolder/parse-error-curly-bracket.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/imports/import-test.less b/node_modules/less/test/less/errors/imports/import-test.less deleted file mode 100644 index a91ae05..0000000 --- a/node_modules/less/test/less/errors/imports/import-test.less +++ /dev/null @@ -1,4 +0,0 @@ -.someclass -{ - font-weight: bold; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/imports/subfolder/mixin-not-defined.less b/node_modules/less/test/less/errors/imports/subfolder/mixin-not-defined.less deleted file mode 100644 index 2bb2d09..0000000 --- a/node_modules/less/test/less/errors/imports/subfolder/mixin-not-defined.less +++ /dev/null @@ -1 +0,0 @@ -@import "../../mixin-not-defined.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/imports/subfolder/parse-error-curly-bracket.less b/node_modules/less/test/less/errors/imports/subfolder/parse-error-curly-bracket.less deleted file mode 100644 index f37fa9d..0000000 --- a/node_modules/less/test/less/errors/imports/subfolder/parse-error-curly-bracket.less +++ /dev/null @@ -1 +0,0 @@ -@import "../../parse-error-curly-bracket.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/javascript-error.less b/node_modules/less/test/less/errors/javascript-error.less deleted file mode 100644 index 9332a37..0000000 --- a/node_modules/less/test/less/errors/javascript-error.less +++ /dev/null @@ -1,3 +0,0 @@ -.scope { - var: `this.foo.toJS`; -} diff --git a/node_modules/less/test/less/errors/javascript-error.txt b/node_modules/less/test/less/errors/javascript-error.txt deleted file mode 100644 index e5f7dc3..0000000 --- a/node_modules/less/test/less/errors/javascript-error.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: JavaScript evaluation error: 'TypeError: Cannot read property 'toJS' of undefined' in {path}javascript-error.less on line 2, column 10: -1 .scope { -2 var: `this.foo.toJS`; -3 } diff --git a/node_modules/less/test/less/errors/javascript-undefined-var.less b/node_modules/less/test/less/errors/javascript-undefined-var.less deleted file mode 100644 index 7cd580c..0000000 --- a/node_modules/less/test/less/errors/javascript-undefined-var.less +++ /dev/null @@ -1,3 +0,0 @@ -.scope { - @a: `@{b}`; -} diff --git a/node_modules/less/test/less/errors/javascript-undefined-var.txt b/node_modules/less/test/less/errors/javascript-undefined-var.txt deleted file mode 100644 index e9710dc..0000000 --- a/node_modules/less/test/less/errors/javascript-undefined-var.txt +++ /dev/null @@ -1,4 +0,0 @@ -NameError: variable @b is undefined in {path}javascript-undefined-var.less on line 2, column 9: -1 .scope { -2 @a: `@{b}`; -3 } diff --git a/node_modules/less/test/less/errors/mixed-mixin-definition-args-1.less b/node_modules/less/test/less/errors/mixed-mixin-definition-args-1.less deleted file mode 100644 index 9b0e23a..0000000 --- a/node_modules/less/test/less/errors/mixed-mixin-definition-args-1.less +++ /dev/null @@ -1,6 +0,0 @@ -.mixin(@a : 4, @b : 3, @c: 2) { - will: fail; -} -.mixin-test { - .mixin(@a: 5; @b: 6, @c: 7); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/mixed-mixin-definition-args-1.txt b/node_modules/less/test/less/errors/mixed-mixin-definition-args-1.txt deleted file mode 100644 index a07f5e9..0000000 --- a/node_modules/less/test/less/errors/mixed-mixin-definition-args-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Cannot mix ; and , as delimiter types in {path}mixed-mixin-definition-args-1.less on line 5, column 30: -4 .mixin-test { -5 .mixin(@a: 5; @b: 6, @c: 7); -6 } diff --git a/node_modules/less/test/less/errors/mixed-mixin-definition-args-2.less b/node_modules/less/test/less/errors/mixed-mixin-definition-args-2.less deleted file mode 100644 index c970942..0000000 --- a/node_modules/less/test/less/errors/mixed-mixin-definition-args-2.less +++ /dev/null @@ -1,6 +0,0 @@ -.mixin(@a : 4, @b : 3, @c: 2) { - will: fail; -} -.mixin-test { - .mixin(@a: 5, @b: 6; @c: 7); -} diff --git a/node_modules/less/test/less/errors/mixed-mixin-definition-args-2.txt b/node_modules/less/test/less/errors/mixed-mixin-definition-args-2.txt deleted file mode 100644 index fa00183..0000000 --- a/node_modules/less/test/less/errors/mixed-mixin-definition-args-2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Cannot mix ; and , as delimiter types in {path}mixed-mixin-definition-args-2.less on line 5, column 26: -4 .mixin-test { -5 .mixin(@a: 5, @b: 6; @c: 7); -6 } diff --git a/node_modules/less/test/less/errors/mixin-not-defined.less b/node_modules/less/test/less/errors/mixin-not-defined.less deleted file mode 100644 index e2dad5c..0000000 --- a/node_modules/less/test/less/errors/mixin-not-defined.less +++ /dev/null @@ -1,11 +0,0 @@ - -.error-is-further-on() { -} - -.pad-here-to-reproduce-error-in() { -} - -.the-import-subfolder-test() { -} - -.mixin-not-defined(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/mixin-not-defined.txt b/node_modules/less/test/less/errors/mixin-not-defined.txt deleted file mode 100644 index 9762927..0000000 --- a/node_modules/less/test/less/errors/mixin-not-defined.txt +++ /dev/null @@ -1,3 +0,0 @@ -NameError: .mixin-not-defined is undefined in {path}mixin-not-defined.less on line 11, column 1: -10 -11 .mixin-not-defined(); diff --git a/node_modules/less/test/less/errors/mixin-not-matched.less b/node_modules/less/test/less/errors/mixin-not-matched.less deleted file mode 100644 index be0d6b1..0000000 --- a/node_modules/less/test/less/errors/mixin-not-matched.less +++ /dev/null @@ -1,6 +0,0 @@ -@saxofon:trumpete; - -.mixin(saxofon) { -} - -.mixin(@saxofon); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/mixin-not-matched.txt b/node_modules/less/test/less/errors/mixin-not-matched.txt deleted file mode 100644 index 57df977..0000000 --- a/node_modules/less/test/less/errors/mixin-not-matched.txt +++ /dev/null @@ -1,3 +0,0 @@ -RuntimeError: No matching definition was found for `.mixin(trumpete)` in {path}mixin-not-matched.less on line 6, column 1: -5 -6 .mixin(@saxofon); diff --git a/node_modules/less/test/less/errors/mixin-not-matched2.less b/node_modules/less/test/less/errors/mixin-not-matched2.less deleted file mode 100644 index 14f44bf..0000000 --- a/node_modules/less/test/less/errors/mixin-not-matched2.less +++ /dev/null @@ -1,6 +0,0 @@ -@saxofon:trumpete; - -.mixin(@a, @b) { -} - -.mixin(@a: @saxofon); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/mixin-not-matched2.txt b/node_modules/less/test/less/errors/mixin-not-matched2.txt deleted file mode 100644 index dceedaf..0000000 --- a/node_modules/less/test/less/errors/mixin-not-matched2.txt +++ /dev/null @@ -1,3 +0,0 @@ -RuntimeError: No matching definition was found for `.mixin(@a:trumpete)` in {path}mixin-not-matched2.less on line 6, column 1: -5 -6 .mixin(@a: @saxofon); diff --git a/node_modules/less/test/less/errors/mixin-not-visible-in-scope-1.less b/node_modules/less/test/less/errors/mixin-not-visible-in-scope-1.less deleted file mode 100644 index 2842613..0000000 --- a/node_modules/less/test/less/errors/mixin-not-visible-in-scope-1.less +++ /dev/null @@ -1,9 +0,0 @@ -.something { - & { - .a {value: a} - } - - & { - .b {.a} // was Err. before 1.6.2 - } -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/mixin-not-visible-in-scope-1.txt b/node_modules/less/test/less/errors/mixin-not-visible-in-scope-1.txt deleted file mode 100644 index 15e64dc..0000000 --- a/node_modules/less/test/less/errors/mixin-not-visible-in-scope-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -NameError: .a is undefined in {path}mixin-not-visible-in-scope-1.less on line 7, column 13: -6 & { -7 .b {.a} // was Err. before 1.6.2 -8 } diff --git a/node_modules/less/test/less/errors/mixins-guards-default-func-1.less b/node_modules/less/test/less/errors/mixins-guards-default-func-1.less deleted file mode 100644 index dc90b86..0000000 --- a/node_modules/less/test/less/errors/mixins-guards-default-func-1.less +++ /dev/null @@ -1,9 +0,0 @@ - -guard-default-func-conflict { - .m(@x, 1) {} - .m(@x, 2) when (default()) {} - .m(@x, 2) when (default()) {} - - .m(1, 1); - .m(1, 2); -} diff --git a/node_modules/less/test/less/errors/mixins-guards-default-func-1.txt b/node_modules/less/test/less/errors/mixins-guards-default-func-1.txt deleted file mode 100644 index e6aaa0a..0000000 --- a/node_modules/less/test/less/errors/mixins-guards-default-func-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -RuntimeError: Ambiguous use of `default()` found when matching for `.m(1, 2)` in {path}mixins-guards-default-func-1.less on line 8, column 5: -7 .m(1, 1); -8 .m(1, 2); -9 } diff --git a/node_modules/less/test/less/errors/mixins-guards-default-func-2.less b/node_modules/less/test/less/errors/mixins-guards-default-func-2.less deleted file mode 100644 index 079b573..0000000 --- a/node_modules/less/test/less/errors/mixins-guards-default-func-2.less +++ /dev/null @@ -1,9 +0,0 @@ - -guard-default-func-conflict { - .m(1) {} - .m(@x) when not(default()) {} - .m(@x) when (@x = 3) and (default()) {} - - .m(2); - .m(3); -} diff --git a/node_modules/less/test/less/errors/mixins-guards-default-func-2.txt b/node_modules/less/test/less/errors/mixins-guards-default-func-2.txt deleted file mode 100644 index 99a3a66..0000000 --- a/node_modules/less/test/less/errors/mixins-guards-default-func-2.txt +++ /dev/null @@ -1,4 +0,0 @@ -RuntimeError: Ambiguous use of `default()` found when matching for `.m(3)` in {path}mixins-guards-default-func-2.less on line 8, column 5: -7 .m(2); -8 .m(3); -9 } diff --git a/node_modules/less/test/less/errors/mixins-guards-default-func-3.less b/node_modules/less/test/less/errors/mixins-guards-default-func-3.less deleted file mode 100644 index ec357fa..0000000 --- a/node_modules/less/test/less/errors/mixins-guards-default-func-3.less +++ /dev/null @@ -1,9 +0,0 @@ - -guard-default-func-conflict { - .m(1) {} - .m(@x) when not(default()) {} - .m(@x) when not(default()) {} - - .m(1); - .m(2); -} diff --git a/node_modules/less/test/less/errors/mixins-guards-default-func-3.txt b/node_modules/less/test/less/errors/mixins-guards-default-func-3.txt deleted file mode 100644 index 0a85a34..0000000 --- a/node_modules/less/test/less/errors/mixins-guards-default-func-3.txt +++ /dev/null @@ -1,4 +0,0 @@ -RuntimeError: Ambiguous use of `default()` found when matching for `.m(2)` in {path}mixins-guards-default-func-3.less on line 8, column 5: -7 .m(1); -8 .m(2); -9 } diff --git a/node_modules/less/test/less/errors/multiple-guards-on-css-selectors.less b/node_modules/less/test/less/errors/multiple-guards-on-css-selectors.less deleted file mode 100644 index 4eabb60..0000000 --- a/node_modules/less/test/less/errors/multiple-guards-on-css-selectors.less +++ /dev/null @@ -1,4 +0,0 @@ -@ie8: true; -.a when (@ie8 = true), -.b { -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/multiple-guards-on-css-selectors.txt b/node_modules/less/test/less/errors/multiple-guards-on-css-selectors.txt deleted file mode 100644 index 3d23e26..0000000 --- a/node_modules/less/test/less/errors/multiple-guards-on-css-selectors.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Guards are only currently allowed on a single selector. in {path}multiple-guards-on-css-selectors.less on line 3, column 1: -2 .a when (@ie8 = true), -3 .b { -4 } diff --git a/node_modules/less/test/less/errors/multiple-guards-on-css-selectors2.less b/node_modules/less/test/less/errors/multiple-guards-on-css-selectors2.less deleted file mode 100644 index 4b1bc6f..0000000 --- a/node_modules/less/test/less/errors/multiple-guards-on-css-selectors2.less +++ /dev/null @@ -1,4 +0,0 @@ -@ie8: true; -.a, -.b when (@ie8 = true) { -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/multiple-guards-on-css-selectors2.txt b/node_modules/less/test/less/errors/multiple-guards-on-css-selectors2.txt deleted file mode 100644 index d0e5a52..0000000 --- a/node_modules/less/test/less/errors/multiple-guards-on-css-selectors2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Guards are only currently allowed on a single selector. in {path}multiple-guards-on-css-selectors2.less on line 3, column 23: -2 .a, -3 .b when (@ie8 = true) { -4 } diff --git a/node_modules/less/test/less/errors/multiply-mixed-units.less b/node_modules/less/test/less/errors/multiply-mixed-units.less deleted file mode 100644 index ff983a8..0000000 --- a/node_modules/less/test/less/errors/multiply-mixed-units.less +++ /dev/null @@ -1,7 +0,0 @@ -/* Test */ -#blah { - // blah -} -.a { - error: (1px * 1em); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/multiply-mixed-units.txt b/node_modules/less/test/less/errors/multiply-mixed-units.txt deleted file mode 100644 index 9ed834f..0000000 --- a/node_modules/less/test/less/errors/multiply-mixed-units.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Multiple units in dimension. Correct the units or use the unit function. Bad unit: em*px in {path}multiply-mixed-units.less on line 6, column 3: -5 .a { -6 error: (1px * 1em); -7 } diff --git a/node_modules/less/test/less/errors/parens-error-1.less b/node_modules/less/test/less/errors/parens-error-1.less deleted file mode 100644 index 7c8ec10..0000000 --- a/node_modules/less/test/less/errors/parens-error-1.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - something: (12 (13 + 5 -23) + 5); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/parens-error-1.txt b/node_modules/less/test/less/errors/parens-error-1.txt deleted file mode 100644 index 35be175..0000000 --- a/node_modules/less/test/less/errors/parens-error-1.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Expected ')' in {path}parens-error-1.less on line 2, column 18: -1 .a { -2 something: (12 (13 + 5 -23) + 5); -3 } diff --git a/node_modules/less/test/less/errors/parens-error-2.less b/node_modules/less/test/less/errors/parens-error-2.less deleted file mode 100644 index 4a392b8..0000000 --- a/node_modules/less/test/less/errors/parens-error-2.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - something: (12 * (13 + 5 -23)); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/parens-error-2.txt b/node_modules/less/test/less/errors/parens-error-2.txt deleted file mode 100644 index b40e4c2..0000000 --- a/node_modules/less/test/less/errors/parens-error-2.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Expected ')' in {path}parens-error-2.less on line 2, column 28: -1 .a { -2 something: (12 * (13 + 5 -23)); -3 } diff --git a/node_modules/less/test/less/errors/parens-error-3.less b/node_modules/less/test/less/errors/parens-error-3.less deleted file mode 100644 index 9e6d540..0000000 --- a/node_modules/less/test/less/errors/parens-error-3.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - something: (12 + (13 + 10 -23)); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/parens-error-3.txt b/node_modules/less/test/less/errors/parens-error-3.txt deleted file mode 100644 index c6c8434..0000000 --- a/node_modules/less/test/less/errors/parens-error-3.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Expected ')' in {path}parens-error-3.less on line 2, column 29: -1 .a { -2 something: (12 + (13 + 10 -23)); -3 } diff --git a/node_modules/less/test/less/errors/parse-error-curly-bracket.less b/node_modules/less/test/less/errors/parse-error-curly-bracket.less deleted file mode 100644 index f78ceb7..0000000 --- a/node_modules/less/test/less/errors/parse-error-curly-bracket.less +++ /dev/null @@ -1,4 +0,0 @@ -body { - background-color: #fff; - } -} diff --git a/node_modules/less/test/less/errors/parse-error-curly-bracket.txt b/node_modules/less/test/less/errors/parse-error-curly-bracket.txt deleted file mode 100644 index 59cf5bd..0000000 --- a/node_modules/less/test/less/errors/parse-error-curly-bracket.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input. Possibly missing opening '{' in {path}parse-error-curly-bracket.less on line 4, column 1: -3 } -4 } -5 diff --git a/node_modules/less/test/less/errors/parse-error-media-no-block-1.less b/node_modules/less/test/less/errors/parse-error-media-no-block-1.less deleted file mode 100644 index 46d023a..0000000 --- a/node_modules/less/test/less/errors/parse-error-media-no-block-1.less +++ /dev/null @@ -1,5 +0,0 @@ -@media (extra: bracket)) { - body { - background-color: #fff; - } -} diff --git a/node_modules/less/test/less/errors/parse-error-media-no-block-1.txt b/node_modules/less/test/less/errors/parse-error-media-no-block-1.txt deleted file mode 100644 index 3af15b7..0000000 --- a/node_modules/less/test/less/errors/parse-error-media-no-block-1.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-1.less on line 1, column 24: -1 @media (extra: bracket)) { -2 body { diff --git a/node_modules/less/test/less/errors/parse-error-media-no-block-2.less b/node_modules/less/test/less/errors/parse-error-media-no-block-2.less deleted file mode 100644 index fa957bc..0000000 --- a/node_modules/less/test/less/errors/parse-error-media-no-block-2.less +++ /dev/null @@ -1 +0,0 @@ -@media \ No newline at end of file diff --git a/node_modules/less/test/less/errors/parse-error-media-no-block-2.txt b/node_modules/less/test/less/errors/parse-error-media-no-block-2.txt deleted file mode 100644 index 6d774ea..0000000 --- a/node_modules/less/test/less/errors/parse-error-media-no-block-2.txt +++ /dev/null @@ -1,2 +0,0 @@ -SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-2.less on line 1, column 7: -1 @media diff --git a/node_modules/less/test/less/errors/parse-error-media-no-block-3.less b/node_modules/less/test/less/errors/parse-error-media-no-block-3.less deleted file mode 100644 index 6b1b91f..0000000 --- a/node_modules/less/test/less/errors/parse-error-media-no-block-3.less +++ /dev/null @@ -1,4 +0,0 @@ -@media (min-width: 500px) { - .sometimes-big { - font-size: 5000px; - } \ No newline at end of file diff --git a/node_modules/less/test/less/errors/parse-error-media-no-block-3.txt b/node_modules/less/test/less/errors/parse-error-media-no-block-3.txt deleted file mode 100644 index 7bb0f4c..0000000 --- a/node_modules/less/test/less/errors/parse-error-media-no-block-3.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: media definitions require block statements after any features in {path}parse-error-media-no-block-3.less on line 4, column 4: -3 font-size: 5000px; -4 } diff --git a/node_modules/less/test/less/errors/parse-error-missing-bracket.less b/node_modules/less/test/less/errors/parse-error-missing-bracket.less deleted file mode 100644 index 144a6ed..0000000 --- a/node_modules/less/test/less/errors/parse-error-missing-bracket.less +++ /dev/null @@ -1,2 +0,0 @@ -body { - background-color: #fff; diff --git a/node_modules/less/test/less/errors/parse-error-missing-bracket.txt b/node_modules/less/test/less/errors/parse-error-missing-bracket.txt deleted file mode 100644 index 307bbd4..0000000 --- a/node_modules/less/test/less/errors/parse-error-missing-bracket.txt +++ /dev/null @@ -1,3 +0,0 @@ -ParseError: Unrecognised input. Possibly missing something in {path}parse-error-missing-bracket.less on line 3, column 1: -2 background-color: #fff; -3 diff --git a/node_modules/less/test/less/errors/parse-error-missing-parens.less b/node_modules/less/test/less/errors/parse-error-missing-parens.less deleted file mode 100644 index 55d2579..0000000 --- a/node_modules/less/test/less/errors/parse-error-missing-parens.less +++ /dev/null @@ -1,5 +0,0 @@ -@media (missing: bracket { - body { - background-color: #fff; - } -} diff --git a/node_modules/less/test/less/errors/parse-error-missing-parens.txt b/node_modules/less/test/less/errors/parse-error-missing-parens.txt deleted file mode 100644 index b5998fe..0000000 --- a/node_modules/less/test/less/errors/parse-error-missing-parens.txt +++ /dev/null @@ -1,3 +0,0 @@ -ParseError: Missing closing ')' in {path}parse-error-missing-parens.less on line 1, column 26: -1 @media (missing: bracket { -2 body { diff --git a/node_modules/less/test/less/errors/parse-error-with-import.less b/node_modules/less/test/less/errors/parse-error-with-import.less deleted file mode 100644 index 6be3de8..0000000 --- a/node_modules/less/test/less/errors/parse-error-with-import.less +++ /dev/null @@ -1,13 +0,0 @@ -@import 'import/import-test.less'; - -body -{ - font-family: arial, sans-serif; -} - -nonsense; - -.clickable -{ - cursor: pointer; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/parse-error-with-import.txt b/node_modules/less/test/less/errors/parse-error-with-import.txt deleted file mode 100644 index 07732c9..0000000 --- a/node_modules/less/test/less/errors/parse-error-with-import.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input in {path}parse-error-with-import.less on line 8, column 9: -7 -8 nonsense; -9 diff --git a/node_modules/less/test/less/errors/percentage-missing-space.less b/node_modules/less/test/less/errors/percentage-missing-space.less deleted file mode 100644 index 247f773..0000000 --- a/node_modules/less/test/less/errors/percentage-missing-space.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - error: calc(1 %); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/percentage-missing-space.txt b/node_modules/less/test/less/errors/percentage-missing-space.txt deleted file mode 100644 index 776d8d5..0000000 --- a/node_modules/less/test/less/errors/percentage-missing-space.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Invalid % without number in {path}percentage-missing-space.less on line 2, column 3: -1 .a { -2 error: calc(1 %); -3 } diff --git a/node_modules/less/test/less/errors/percentage-non-number-argument.less b/node_modules/less/test/less/errors/percentage-non-number-argument.less deleted file mode 100644 index d6c6cf6..0000000 --- a/node_modules/less/test/less/errors/percentage-non-number-argument.less +++ /dev/null @@ -1,3 +0,0 @@ -div { - percentage: percentage(16/17); -} diff --git a/node_modules/less/test/less/errors/percentage-non-number-argument.txt b/node_modules/less/test/less/errors/percentage-non-number-argument.txt deleted file mode 100644 index f01a1e5..0000000 --- a/node_modules/less/test/less/errors/percentage-non-number-argument.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `percentage`: argument must be a number in {path}percentage-non-number-argument.less on line 2, column 15: -1 div { -2 percentage: percentage(16/17); -3 } diff --git a/node_modules/less/test/less/errors/property-asterisk-only-name.less b/node_modules/less/test/less/errors/property-asterisk-only-name.less deleted file mode 100644 index c6a9990..0000000 --- a/node_modules/less/test/less/errors/property-asterisk-only-name.less +++ /dev/null @@ -1,3 +0,0 @@ -a { - * : 1; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/property-asterisk-only-name.txt b/node_modules/less/test/less/errors/property-asterisk-only-name.txt deleted file mode 100644 index b81d757..0000000 --- a/node_modules/less/test/less/errors/property-asterisk-only-name.txt +++ /dev/null @@ -1,4 +0,0 @@ -ParseError: Unrecognised input in {path}property-asterisk-only-name.less on line 2, column 7: -1 a { -2 * : 1; -3 } diff --git a/node_modules/less/test/less/errors/property-ie5-hack.less b/node_modules/less/test/less/errors/property-ie5-hack.less deleted file mode 100644 index 51bf6e3..0000000 --- a/node_modules/less/test/less/errors/property-ie5-hack.less +++ /dev/null @@ -1,3 +0,0 @@ -.test { - display/*/: block; /*sorry for IE5*/ -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/property-ie5-hack.txt b/node_modules/less/test/less/errors/property-ie5-hack.txt deleted file mode 100644 index 434943f..0000000 --- a/node_modules/less/test/less/errors/property-ie5-hack.txt +++ /dev/null @@ -1,3 +0,0 @@ -ParseError: Unrecognised input. Possibly missing opening '{' in {path}property-ie5-hack.less on line 3, column 1: -2 display/*/: block; /*sorry for IE5*/ -3 } diff --git a/node_modules/less/test/less/errors/property-in-root.less b/node_modules/less/test/less/errors/property-in-root.less deleted file mode 100644 index 8fed4be..0000000 --- a/node_modules/less/test/less/errors/property-in-root.less +++ /dev/null @@ -1,4 +0,0 @@ -.a() { - prop:1; -} -.a(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/property-in-root.txt b/node_modules/less/test/less/errors/property-in-root.txt deleted file mode 100644 index 10c9853..0000000 --- a/node_modules/less/test/less/errors/property-in-root.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Properties must be inside selector blocks. They cannot be in the root in {path}property-in-root.less on line 2, column 3: -1 .a() { -2 prop:1; -3 } diff --git a/node_modules/less/test/less/errors/property-in-root2.less b/node_modules/less/test/less/errors/property-in-root2.less deleted file mode 100644 index ce8656d..0000000 --- a/node_modules/less/test/less/errors/property-in-root2.less +++ /dev/null @@ -1 +0,0 @@ -@import "property-in-root"; \ No newline at end of file diff --git a/node_modules/less/test/less/errors/property-in-root2.txt b/node_modules/less/test/less/errors/property-in-root2.txt deleted file mode 100644 index 10c9853..0000000 --- a/node_modules/less/test/less/errors/property-in-root2.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: Properties must be inside selector blocks. They cannot be in the root in {path}property-in-root.less on line 2, column 3: -1 .a() { -2 prop:1; -3 } diff --git a/node_modules/less/test/less/errors/property-in-root3.less b/node_modules/less/test/less/errors/property-in-root3.less deleted file mode 100644 index 056c2f7..0000000 --- a/node_modules/less/test/less/errors/property-in-root3.less +++ /dev/null @@ -1,4 +0,0 @@ -prop:1; -.a { - prop:1; -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/property-in-root3.txt b/node_modules/less/test/less/errors/property-in-root3.txt deleted file mode 100644 index 13a4905..0000000 --- a/node_modules/less/test/less/errors/property-in-root3.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Properties must be inside selector blocks. They cannot be in the root in {path}property-in-root3.less on line 1, column 1: -1 prop:1; -2 .a { diff --git a/node_modules/less/test/less/errors/property-interp-not-defined.less b/node_modules/less/test/less/errors/property-interp-not-defined.less deleted file mode 100644 index 544fd5f..0000000 --- a/node_modules/less/test/less/errors/property-interp-not-defined.less +++ /dev/null @@ -1 +0,0 @@ -a {outline-@{color}: green} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/property-interp-not-defined.txt b/node_modules/less/test/less/errors/property-interp-not-defined.txt deleted file mode 100644 index dc80356..0000000 --- a/node_modules/less/test/less/errors/property-interp-not-defined.txt +++ /dev/null @@ -1,2 +0,0 @@ -NameError: variable @color is undefined in {path}property-interp-not-defined.less on line 1, column 12: -1 a {outline-@{color}: green} diff --git a/node_modules/less/test/less/errors/recursive-variable.less b/node_modules/less/test/less/errors/recursive-variable.less deleted file mode 100644 index c1ca75f..0000000 --- a/node_modules/less/test/less/errors/recursive-variable.less +++ /dev/null @@ -1 +0,0 @@ -@bodyColor: darken(@bodyColor, 30%); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/recursive-variable.txt b/node_modules/less/test/less/errors/recursive-variable.txt deleted file mode 100644 index eb616e7..0000000 --- a/node_modules/less/test/less/errors/recursive-variable.txt +++ /dev/null @@ -1,2 +0,0 @@ -NameError: Recursive variable definition for @bodyColor in {path}recursive-variable.less on line 1, column 20: -1 @bodyColor: darken(@bodyColor, 30%); diff --git a/node_modules/less/test/less/errors/root-func-undefined-1.less b/node_modules/less/test/less/errors/root-func-undefined-1.less deleted file mode 100644 index e5bacda..0000000 --- a/node_modules/less/test/less/errors/root-func-undefined-1.less +++ /dev/null @@ -1 +0,0 @@ -func(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/root-func-undefined-1.txt b/node_modules/less/test/less/errors/root-func-undefined-1.txt deleted file mode 100644 index a07480e..0000000 --- a/node_modules/less/test/less/errors/root-func-undefined-1.txt +++ /dev/null @@ -1,2 +0,0 @@ -SyntaxError: Function 'func' is undefined in {path}root-func-undefined-1.less on line 1, column 1: -1 func(); diff --git a/node_modules/less/test/less/errors/root-func-undefined-2.less b/node_modules/less/test/less/errors/root-func-undefined-2.less deleted file mode 100644 index ee34616..0000000 --- a/node_modules/less/test/less/errors/root-func-undefined-2.less +++ /dev/null @@ -1,2 +0,0 @@ -@plugin "../plugin/plugin-tree-nodes.js"; -test-undefined(); \ No newline at end of file diff --git a/node_modules/less/test/less/errors/root-func-undefined-2.txt b/node_modules/less/test/less/errors/root-func-undefined-2.txt deleted file mode 100644 index 031385d..0000000 --- a/node_modules/less/test/less/errors/root-func-undefined-2.txt +++ /dev/null @@ -1,3 +0,0 @@ -SyntaxError: Function 'test-undefined' is undefined in {path}root-func-undefined-2.less on line 2, column 1: -1 @plugin "../plugin/plugin-tree-nodes.js"; -2 test-undefined(); diff --git a/node_modules/less/test/less/errors/single-character.less b/node_modules/less/test/less/errors/single-character.less deleted file mode 100644 index c1b0730..0000000 --- a/node_modules/less/test/less/errors/single-character.less +++ /dev/null @@ -1 +0,0 @@ -x \ No newline at end of file diff --git a/node_modules/less/test/less/errors/single-character.txt b/node_modules/less/test/less/errors/single-character.txt deleted file mode 100644 index b9e49a5..0000000 --- a/node_modules/less/test/less/errors/single-character.txt +++ /dev/null @@ -1,2 +0,0 @@ -ParseError: Unrecognised input. Possibly missing something in {path}single-character.less on line 1, column 2: -1 x diff --git a/node_modules/less/test/less/errors/svg-gradient1.less b/node_modules/less/test/less/errors/svg-gradient1.less deleted file mode 100644 index c069ff7..0000000 --- a/node_modules/less/test/less/errors/svg-gradient1.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - a: svg-gradient(horizontal, black, white); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/svg-gradient1.txt b/node_modules/less/test/less/errors/svg-gradient1.txt deleted file mode 100644 index ec662fe..0000000 --- a/node_modules/less/test/less/errors/svg-gradient1.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient1.less on line 2, column 6: -1 .a { -2 a: svg-gradient(horizontal, black, white); -3 } diff --git a/node_modules/less/test/less/errors/svg-gradient2.less b/node_modules/less/test/less/errors/svg-gradient2.less deleted file mode 100644 index ff14ef1..0000000 --- a/node_modules/less/test/less/errors/svg-gradient2.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - a: svg-gradient(to bottom, black, orange, 45%, white); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/svg-gradient2.txt b/node_modules/less/test/less/errors/svg-gradient2.txt deleted file mode 100644 index 1f2e1bf..0000000 --- a/node_modules/less/test/less/errors/svg-gradient2.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list in {path}svg-gradient2.less on line 2, column 6: -1 .a { -2 a: svg-gradient(to bottom, black, orange, 45%, white); -3 } diff --git a/node_modules/less/test/less/errors/svg-gradient3.less b/node_modules/less/test/less/errors/svg-gradient3.less deleted file mode 100644 index 8f18524..0000000 --- a/node_modules/less/test/less/errors/svg-gradient3.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - a: svg-gradient(black, orange); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/svg-gradient3.txt b/node_modules/less/test/less/errors/svg-gradient3.txt deleted file mode 100644 index f77a353..0000000 --- a/node_modules/less/test/less/errors/svg-gradient3.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient3.less on line 2, column 6: -1 .a { -2 a: svg-gradient(black, orange); -3 } diff --git a/node_modules/less/test/less/errors/svg-gradient4.less b/node_modules/less/test/less/errors/svg-gradient4.less deleted file mode 100644 index ae32ceb..0000000 --- a/node_modules/less/test/less/errors/svg-gradient4.less +++ /dev/null @@ -1,4 +0,0 @@ -.a { - a: svg-gradient(horizontal, @colors); -} -@colors: black, white; diff --git a/node_modules/less/test/less/errors/svg-gradient4.txt b/node_modules/less/test/less/errors/svg-gradient4.txt deleted file mode 100644 index c0d41e9..0000000 --- a/node_modules/less/test/less/errors/svg-gradient4.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient4.less on line 2, column 6: -1 .a { -2 a: svg-gradient(horizontal, @colors); -3 } diff --git a/node_modules/less/test/less/errors/svg-gradient5.less b/node_modules/less/test/less/errors/svg-gradient5.less deleted file mode 100644 index 6b5ac2c..0000000 --- a/node_modules/less/test/less/errors/svg-gradient5.less +++ /dev/null @@ -1,4 +0,0 @@ -.a { - a: svg-gradient(to bottom, @colors); -} -@colors: black, orange, 45%, white; diff --git a/node_modules/less/test/less/errors/svg-gradient5.txt b/node_modules/less/test/less/errors/svg-gradient5.txt deleted file mode 100644 index 41f8f46..0000000 --- a/node_modules/less/test/less/errors/svg-gradient5.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list in {path}svg-gradient5.less on line 2, column 6: -1 .a { -2 a: svg-gradient(to bottom, @colors); -3 } diff --git a/node_modules/less/test/less/errors/svg-gradient6.less b/node_modules/less/test/less/errors/svg-gradient6.less deleted file mode 100644 index fca76e6..0000000 --- a/node_modules/less/test/less/errors/svg-gradient6.less +++ /dev/null @@ -1,4 +0,0 @@ -.a { - a: svg-gradient(black, @colors); -} -@colors: orange; diff --git a/node_modules/less/test/less/errors/svg-gradient6.txt b/node_modules/less/test/less/errors/svg-gradient6.txt deleted file mode 100644 index 2ce85cf..0000000 --- a/node_modules/less/test/less/errors/svg-gradient6.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `svg-gradient`: svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center' in {path}svg-gradient6.less on line 2, column 6: -1 .a { -2 a: svg-gradient(black, @colors); -3 } diff --git a/node_modules/less/test/less/errors/unit-function.less b/node_modules/less/test/less/errors/unit-function.less deleted file mode 100644 index 119e981..0000000 --- a/node_modules/less/test/less/errors/unit-function.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - font-size: unit(80/16,rem); -} \ No newline at end of file diff --git a/node_modules/less/test/less/errors/unit-function.txt b/node_modules/less/test/less/errors/unit-function.txt deleted file mode 100644 index baf90f4..0000000 --- a/node_modules/less/test/less/errors/unit-function.txt +++ /dev/null @@ -1,4 +0,0 @@ -ArgumentError: error evaluating function `unit`: the first argument to unit must be a number. Have you forgotten parenthesis? in {path}unit-function.less on line 2, column 14: -1 .a { -2 font-size: unit(80/16,rem); -3 } diff --git a/node_modules/less/test/less/extend-chaining.less b/node_modules/less/test/less/extend-chaining.less deleted file mode 100644 index ac8a475..0000000 --- a/node_modules/less/test/less/extend-chaining.less +++ /dev/null @@ -1,91 +0,0 @@ -//very simple chaining -.a { - color: black; -} -.b:extend(.a) {} -.c:extend(.b) {} - -//very simple chaining, ordering not important - -.d:extend(.e) {} -.e:extend(.f) {} -.f { - color: black; -} - -//extend with all - -.g.h { - color: black; -} -.i.j:extend(.g all) { - color: white; -} -.k:extend(.i all) {} - -//extend multi-chaining - -.l { - color: black; -} -.m:extend(.l){} -.n:extend(.m){} -.o:extend(.n){} -.p:extend(.o){} -.q:extend(.p){} -.r:extend(.q){} -.s:extend(.r){} -.t:extend(.s){} - -// self referencing is ignored - -.u {color: black;} -.v.u.v:extend(.u all){} - -// circular reference because the new extend product will match the existing extend - -.w:extend(.w) {color: black;} -.v.w.v:extend(.w all){} - -// classic circular references - -.x:extend(.z) { - color: x; -} -.y:extend(.x) { - color: y; -} -.z:extend(.y) { - color: z; -} - -//very simple chaining, but with the extend inside the ruleset -.va { - color: black; -} -.vb { - &:extend(.va); - color: white; -} -.vc { - &:extend(.vb); -} - -// media queries - don't extend outside, do extend inside - -@media tv { - .ma:extend(.a,.b,.c,.d,.e,.f,.g,.h,.i,.j,.k,.l,.m,.n,.o,.p,.q,.r,.s,.t,.u,.v,.w,.x,.y,.z,.md) { - color: black; - } - .md { - color: white; - } - @media plasma { - .me, .mf { - &:extend(.mb,.md); - background: red; - } - } -} -.mb:extend(.ma) {}; -.mc:extend(.mb) {}; \ No newline at end of file diff --git a/node_modules/less/test/less/extend-clearfix.less b/node_modules/less/test/less/extend-clearfix.less deleted file mode 100644 index 82445df..0000000 --- a/node_modules/less/test/less/extend-clearfix.less +++ /dev/null @@ -1,19 +0,0 @@ -.clearfix { - *zoom: 1; - &:after { - content: ''; - display: block; - clear: both; - height: 0; - } -} - -.foo { - &:extend(.clearfix all); - color: red; -} - -.bar { - &:extend(.clearfix all); - color: blue; -} diff --git a/node_modules/less/test/less/extend-exact.less b/node_modules/less/test/less/extend-exact.less deleted file mode 100644 index 41dc413..0000000 --- a/node_modules/less/test/less/extend-exact.less +++ /dev/null @@ -1,46 +0,0 @@ -.replace.replace, -.c.replace + .replace { - .replace, - .c { - prop: copy-paste-replace; - } -} -.rep_ace:extend(.replace.replace .replace) {} - -.a .b .c { - prop: not_effected; -} - -.a { - prop: is_effected; - .b { - prop: not_effected; - } - .b.c { - prop: not_effected; - } -} - -.c, .a { - .b, .a { - .a, .c { - prop: not_effected; - } - } -} - -.effected { - &:extend(.a); - &:extend(.b); - &:extend(.c); -} - -.e { - && { - prop: extend-double; - &:hover { - hover: not-extended; - } - } -} -.dbl:extend(.e.e) {} diff --git a/node_modules/less/test/less/extend-media.less b/node_modules/less/test/less/extend-media.less deleted file mode 100644 index 1b22c3f..0000000 --- a/node_modules/less/test/less/extend-media.less +++ /dev/null @@ -1,24 +0,0 @@ -.ext1 .ext2 { - background: black; -} - -@media tv { - .ext1 .ext3 { - color: white; - } - .tv-lowres :extend(.ext1 all) { - background: blue; - } - @media hires { - .ext1 .ext4 { - color: green; - } - .tv-hires :extend(.ext1 all) { - background: red; - } - } -} - -.all:extend(.ext1 all) { - -} \ No newline at end of file diff --git a/node_modules/less/test/less/extend-nest.less b/node_modules/less/test/less/extend-nest.less deleted file mode 100644 index 9d4d27b..0000000 --- a/node_modules/less/test/less/extend-nest.less +++ /dev/null @@ -1,65 +0,0 @@ -.sidebar { - width: 300px; - background: red; - - .box { - background: #FFF; - border: 1px solid #000; - margin: 10px 0; - } -} - -.sidebar2 { - &:extend(.sidebar all); - background: blue; -} - -.type1 { - .sidebar3 { - &:extend(.sidebar all); - background: green; - } -} - -.type2 { - &.sidebar4 { - &:extend(.sidebar all); - background: red; - } -} - -.button { - color: black; - &:hover { - color: white; - } -} -.submit { - &:extend(.button); - &:hover:extend(.button:hover) {} -} - -.nomatch { - &:hover:extend(.button :hover) {} -} - -.button2 { - :hover { - nested: white; - } -} -.button2 :hover { - notnested: black; -} - -.nomatch :extend(.button2:hover) {} - -.amp-test-a, -.amp-test-b { - .amp-test-c &.amp-test-d&.amp-test-e { - .amp-test-f&+&.amp-test-g:extend(.amp-test-h) {} - } -} -.amp-test-h { - test: extended by masses of selectors; -} \ No newline at end of file diff --git a/node_modules/less/test/less/extend-selector.less b/node_modules/less/test/less/extend-selector.less deleted file mode 100644 index 39cef58..0000000 --- a/node_modules/less/test/less/extend-selector.less +++ /dev/null @@ -1,110 +0,0 @@ -.error { - border: 1px #f00; - background: #fdd; -} -.error.intrusion { - font-size: 1.3em; - font-weight: bold; -} -.intrusion .error { - display: none; -} -.badError:extend(.error all) { - border-width: 3px; -} - -.foo .bar, .foo .baz { - display: none; -} - -.ext1 .ext2 - :extend(.foo all) { -} - -.ext3:extend(.foo all), -.ext4:extend(.foo all) { -} - -div.ext5, -.ext6 > .ext5 { - width: 100px; -} - -.should-not-exist-in-output, -.ext7:extend(.ext5 all) { -} - -.ext { - test: 1; -} -// same as -// .a .c:extend(.ext all) -// .b .c:extend(.ext all) -// .a .c .d -// .b .c .d -.a, .b { - test: 2; - .c:extend(.ext all) { - test: 3; - .d { - test: 4; - } - } -} - -.replace.replace, -.c.replace + .replace { - .replace, - .c { - prop: copy-paste-replace; - } -} -.rep_ace:extend(.replace all) {} - -.attributes { - [data="test"] { - extend: attributes; - } - .attribute-test { - &:extend([data="test"] all); - } - [data] { - extend: attributes2; - } - .attribute-test2 { - &:extend([data] all); //you could argue it should match [data="test"]... not for now though... - } - @attr-data: "test3"; - [data=@{attr-data}] { - extend: attributes2; - } - .attribute-test { - &:extend([data="test3"] all); - } -} - -.header { - .header-nav { - background: red; - &:before { - background: blue; - } - } -} - -.footer { - .footer-nav { - &:extend( .header .header-nav all ); - } -} - -.issue-2586-bordered { - border: solid 1px black; -} -.issue-2586-somepage { - .content:extend(.issue-2586-bordered) { - &>span { - margin-bottom: 10px; - } - } -} diff --git a/node_modules/less/test/less/extend.less b/node_modules/less/test/less/extend.less deleted file mode 100644 index 1db5d43..0000000 --- a/node_modules/less/test/less/extend.less +++ /dev/null @@ -1,81 +0,0 @@ -.error { - border: 1px #f00; - background: #fdd; -} -.error.intrusion { - font-size: 1.3em; - font-weight: bold; -} -.intrusion .error { - display: none; -} -.badError { - &:extend(.error all); - border-width: 3px; -} - -.foo .bar, .foo .baz { - display: none; -} - -.ext1 .ext2 { - &:extend(.foo all); -} - -.ext3, -.ext4 { - &:extend(.foo all); - &:extend(.bar all); -} - -div.ext5, -.ext6 > .ext5 { - width: 100px; -} - -.ext7 { - &:extend(.ext5 all); -} - -.ext8.ext9 { - result: add-foo; -} -.ext8 .ext9, -.ext8 + .ext9, -.ext8 > .ext9 { - result: bar-matched; -} -.ext8.nomatch { - result: none; -} -.ext8 { - .ext9 { - result: match-nested-bar; - } -} -.ext8 { - &.ext9 { - result: match-nested-foo; - } -} - -.fuu:extend(.ext8.ext9 all) {} -.buu:extend(.ext8 .ext9 all) {} -.zap:extend(.ext8 + .ext9 all) {} -.zoo:extend(.ext8 > .ext9 all) {} - -.aa { - color: black; - .dd { - background: red; - } -} -.bb { - background: red; - .bb { - color: black; - } -} -.cc:extend(.aa,.bb) {} -.ee:extend(.dd all,.bb) {} -.ff:extend(.dd,.bb all) {} \ No newline at end of file diff --git a/node_modules/less/test/less/extract-and-length.less b/node_modules/less/test/less/extract-and-length.less deleted file mode 100644 index 8b1901c..0000000 --- a/node_modules/less/test/less/extract-and-length.less +++ /dev/null @@ -1,133 +0,0 @@ - -// simple array/list: - -.multiunit { - @v: abc "abc" 1 1px 1% #123; - length: length(@v); - extract: extract(@v, 1) extract(@v, 2) extract(@v, 3) extract(@v, 4) extract(@v, 5) extract(@v, 6); -} - -.incorrect-index { - @v1: a b c; - @v2: a, b, c; - v1: extract(@v1, 5); - v2: extract(@v2, -2); -} - -.scalar { - @var: variable; - var-value: extract(@var, 1); - var-length: length(@var); - ill-index: extract(@var, 2); - - name-value: extract(name, 1); - string-value: extract("string", 1); - number-value: extract(12345678, 1); - color-value: extract(blue, 1); - rgba-value: extract(rgba(80, 160, 240, 0.67), 1); - empty-value: extract(~'', 1); - - name-length: length(name); - string-length: length("string"); - number-length: length(12345678); - color-length: length(blue); - rgba-length: length(rgba(80, 160, 240, 0.67)); - empty-length: length(~''); -} - -.mixin-arguments { - .mixin-args(a b c d); - .mixin-args(a, b, c, d); - .mixin-args(1; 2; 3; 4); -} - -.mixin-args(@value) { - &-1 { - length: length(@value); - extract: extract(@value, 3) ~"|" extract(@value, 2) ~"|" extract(@value, 1); - } -} - -.mixin-args(...) { - &-2 { - length: length(@arguments); - extract: extract(@arguments, 3) ~"|" extract(@arguments, 2) ~"|" extract(@arguments, 1); - } -} - -.mixin-args(@values...) { - &-3 { - length: length(@values); - extract: extract(@values, 3) ~"|" extract(@values, 2) ~"|" extract(@values, 1); - } -} - -.mixin-args(@head, @tail...) { - &-4 { - length: length(@tail); - extract: extract(@tail, 2) ~"|" extract(@tail, 1); - } -} - -// "multidimensional" array/list - -.md-space-comma { - @v: a b c, 1 2 3, "x" "y" "z"; - length-1: length(@v); - extract-1: extract(@v, 2); - length-2: length(extract(@v, 2)); - extract-2: extract(extract(@v, 2), 2); - - &-as-args {.mixin-args(a b c, 1 2 3, "x" "y" "z")} -} - -.md-cat-space-comma { - @a: a b c; - @b: 1 2 3; - @c: "x" "y" "z"; - @v: @a, @b, @c; - length-1: length(@v); - extract-1: extract(@v, 2); - length-2: length(extract(@v, 2)); - extract-2: extract(extract(@v, 2), 2); - - &-as-args {.mixin-args(@a, @b, @c)} -} - -.md-cat-comma-space { - @a: a, b, c; - @b: 1, 2, 3; - @c: "x", "y", "z"; - @v: @a @b @c; - length-1: length(@v); - extract-1: extract(@v, 2); - length-2: length(extract(@v, 2)); - extract-2: extract(extract(@v, 2), 2); - - &-as-args {.mixin-args(@a @b @c)} -} - -.md-3D { - @a: a b c d, 1 2 3 4; - @b: 5 6 7 8, e f g h; - .3D(@a, @b); - - .3D(...) { - - @v1: @arguments; - length-1: length(@v1); - extract-1: extract(@v1, 1); - - @v2: extract(@v1, 2); - length-2: length(@v2); - extract-2: extract(@v2, 1); - - @v3: extract(@v2, 1); - length-3: length(@v3); - extract-3: extract(@v3, 3); - - @v4: extract(@v3, 4); - length-4: length(@v4); - extract-4: extract(@v4, 1); - } -} diff --git a/node_modules/less/test/less/filemanagerPlugin/colors.test b/node_modules/less/test/less/filemanagerPlugin/colors.test deleted file mode 100644 index 3d86b9f..0000000 --- a/node_modules/less/test/less/filemanagerPlugin/colors.test +++ /dev/null @@ -1 +0,0 @@ -@color: red; diff --git a/node_modules/less/test/less/filemanagerPlugin/filemanager.less b/node_modules/less/test/less/filemanagerPlugin/filemanager.less deleted file mode 100644 index 1a35c67..0000000 --- a/node_modules/less/test/less/filemanagerPlugin/filemanager.less +++ /dev/null @@ -1,4 +0,0 @@ -@import "test.test"; -.test { - color: @color; -} diff --git a/node_modules/less/test/less/functions.less b/node_modules/less/test/less/functions.less deleted file mode 100644 index 4866bdc..0000000 --- a/node_modules/less/test/less/functions.less +++ /dev/null @@ -1,232 +0,0 @@ -#functions { - @var: 10; - @colors: #000, #fff; - color: _color("evil red"); // #660000 - width: increment(15); - height: undefined("self"); - border-width: add(2, 3); - variable: increment(@var); - background: linear-gradient(@colors); -} - -#built-in { - @r: 32; - escaped: e("-Some::weird(#thing, y)"); - lighten: lighten(#ff0000, 40%); - lighten-relative: lighten(#ff0000, 40%, relative); - darken: darken(#ff0000, 40%); - darken-relative: darken(#ff0000, 40%, relative); - saturate: saturate(#29332f, 20%); - saturate-relative: saturate(#29332f, 20%, relative); - desaturate: desaturate(#203c31, 20%); - desaturate-relative: desaturate(#203c31, 20%, relative); - greyscale: greyscale(#203c31); - hsl-clamp: hsl(380, 150%, 150%); - spin-p: spin(hsl(340, 50%, 50%), 40); - spin-n: spin(hsl(30, 50%, 50%), -40); - luma-white: luma(#fff); - luma-black: luma(#000); - luma-black-alpha: luma(rgba(0,0,0,0.5)); - luma-red: luma(#ff0000); - luma-green: luma(#00ff00); - luma-blue: luma(#0000ff); - luma-yellow: luma(#ffff00); - luma-cyan: luma(#00ffff); - luma-differs-from-luminance: luma(#ff3600); - luminance-white: luma(#fff); - luminance-black: luma(#000); - luminance-black-alpha: luma(rgba(0,0,0,0.5)); - luminance-red: luma(#ff0000); - luminance-differs-from-luma: luminance(#ff3600); - contrast-filter: contrast(30%); - saturate-filter: saturate(5%); - contrast-white: contrast(#fff); - contrast-black: contrast(#000); - contrast-red: contrast(#ff0000); - contrast-green: contrast(#00ff00); - contrast-blue: contrast(#0000ff); - contrast-yellow: contrast(#ffff00); - contrast-cyan: contrast(#00ffff); - contrast-light: contrast(#fff, #111111, #eeeeee); - contrast-dark: contrast(#000, #111111, #eeeeee); - contrast-wrongorder: contrast(#fff, #eeeeee, #111111, 0.5); - contrast-light-thresh: contrast(#fff, #111111, #eeeeee, 0.5); - contrast-dark-thresh: contrast(#000, #111111, #eeeeee, 0.5); - contrast-high-thresh: contrast(#555, #111111, #eeeeee, 0.6); - contrast-low-thresh: contrast(#555, #111111, #eeeeee, 0.09); - contrast-light-thresh-per: contrast(#fff, #111111, #eeeeee, 50%); - contrast-dark-thresh-per: contrast(#000, #111111, #eeeeee, 50%); - contrast-high-thresh-per: contrast(#555, #111111, #eeeeee, 60%); - contrast-low-thresh-per: contrast(#555, #111111, #eeeeee, 9%); - replace: replace("Hello, Mars.", "Mars\.", "World!"); - replace-captured: replace("This is a string.", "(string)\.$", "new $1."); - replace-with-flags: replace("One + one = 4", "one", "2", "gi"); - replace-single-quoted: replace('foo-1', "1", "2"); - replace-escaped-string: replace(~"bar-1", "1", "2"); - replace-keyword: replace(baz-1, "1", "2"); - replace-with-color: replace("007", "0", #135, g); - replace-with-number: replace("007", "0", 2em); - format: %("rgb(%d, %d, %d)", @r, 128, 64); - format-string: %("hello %s", "world"); - format-multiple: %("hello %s %d", "earth", 2); - format-url-encode: %("red is %A", #ff0000); - format-single-quoted: %('hello %s', "single world"); - format-escaped-string: %(~"hello %s", "escaped world"); - format-color-as-string: %("%s", #123); - format-number-as-string: %("%s", 4px); - eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64)); - - unitless: unit(12px); - unit: unit((13px + 1px), em); - unitpercentage: unit(100, %); - - get-unit: get-unit(10px); - get-unit-empty: get-unit(10); - - hue: hue(hsl(98, 12%, 95%)); - saturation: saturation(hsl(98, 12%, 95%)); - lightness: lightness(hsl(98, 12%, 95%)); - hsvhue: hsvhue(hsv(98, 12%, 95%)); - hsvsaturation: hsvsaturation(hsv(98, 12%, 95%)); - hsvvalue: hsvvalue(hsv(98, 12%, 95%)); - red: red(#f00); - green: green(#0f0); - blue: blue(#00f); - rounded: round((@r/3)); - rounded-two: round((@r/3), 2); - roundedpx: round((10px / 3)); - roundedpx-three: round((10px / 3), 3); - rounded-percentage: round(10.2%); - ceil: ceil(10.1px); - floor: floor(12.9px); - sqrt: sqrt(25px); - pi: pi(); - mod: mod(13m, 11cm); // could take into account units, doesn't at the moment - abs: abs(-4%); - tan: tan(42deg); - sin: sin(10deg); - cos: cos(12); - atan: atan(tan(0.1rad)); - atan: convert(acos(cos(34deg)), deg); - atan: convert(acos(cos(50grad)), deg); - pow: pow(8px, 2); - pow: pow(4, 3); - pow: pow(3, 3em); - min: min(0); - min: min(6, 5); - min: min(1pt, 3pt); - min: min(1cm, 3mm); - max: max(1, 3); - max: max(3em, 1em, 2em, 5em); - percentage: percentage((10px / 50)); - color-quoted-digit: color("#dda0dd"); - color-quoted-keyword: color("plum"); - color-color: color(#dda0dd); - color-keyword: color(plum); - tint: tint(#777777, 13); - tint-full: tint(#777777, 100); - tint-percent: tint(#777777, 13%); - tint-negative: tint(#777777, -13%); - shade: shade(#777777, 13); - shade-full: shade(#777777, 100); - shade-percent: shade(#777777, 13%); - shade-negative: shade(#777777, -13%); - - fade-out: fadeout(red, 5%); // support fadeOut and fadeout - fade-in: fadein(fadeout(red, 10%), 5%); - fade-out-relative: fadeout(red, 5%,relative); - fade-in-relative: fadein(fadeout(red, 10%, relative), 5%, relative); - fade-out2: fadeout(fadeout(red, 50%), 50%); - fade-out2-relative: fadeout(fadeout(red, 50%, relative), 50%, relative); - - hsv: hsv(5, 50%, 30%); - hsva: hsva(3, 50%, 30%, 0.2); - - mix: mix(#ff0000, #ffff00, 80); - mix-0: mix(#ff0000, #ffff00, 0); - mix-100: mix(#ff0000, #ffff00, 100); - mix-weightless: mix(#ff0000, #ffff00); - mixt: mix(#ff0000, transparent); - - .is-a { - @rules: { - color: red; - }; - ruleset: isruleset(@rules); - color: iscolor(#ddd); - color1: iscolor(red); - color2: iscolor(rgb(0, 0, 0)); - color3: iscolor(transparent); - keyword: iskeyword(hello); - number: isnumber(32); - string: isstring("hello"); - pixel: ispixel(32px); - percent: ispercentage(32%); - em: isem(32em); - cat: isunit(32cat, cat); - no-unit-is-empty: isunit(32, ''); - case-insensitive-1: isunit(32CAT, cat); - case-insensitive-2: isunit(32px, PX); - } -} - -#alpha { - alpha: darken(hsla(25, 50%, 50%, 0.6), 10%); - alpha2: alpha(rgba(3, 4, 5, 0.5)); - alpha3: alpha(transparent); -} - -#blendmodes { - multiply: multiply(#f60000, #f60000); - screen: screen(#f60000, #0000f6); - overlay: overlay(#f60000, #0000f6); - softlight: softlight(#f60000, #ffffff); - hardlight: hardlight(#f60000, #0000f6); - difference: difference(#f60000, #0000f6); - exclusion: exclusion(#f60000, #0000f6); - average: average(#f60000, #0000f6); - negation: negation(#f60000, #313131); -} - -#extract-and-length { - @anon: A B C 1 2 3; - extract: extract(@anon, 6) extract(@anon, 5) extract(@anon, 4) extract(@anon, 3) extract(@anon, 2) extract(@anon, 1); - length: length(@anon); -} - -#quoted-functions-in-mixin { - // Quoted type may have some weird side-effects when used in mixins (#2308) - .mixin(); - .mixin() { - replace-double-quoted: replace('foo-1', "1", "2"); - replace-single-quoted: replace('foo-3', "3", "4"); - replace-escaped-string: replace(~"bar-1", "1", "2"); - replace-keyword: replace(baz-1, "1", "2"); - replace-anonymous: replace(e("qux-1"), "1", "2"); - format-double-quoted: %("hello %s", "world"); - format-single-quoted: %('hello %s', "single world"); - format-escaped-string: %(~"hello %s", "escaped world"); - format-keyword: %(hello); - format-anonymous: %(e("hello %s"), "anonymous world"); - } -} - -#list-details { - @list: - a 1, // Some comment - b 2; - - length: length(@list); - one: extract(@list, 1); - @two: extract(@list, 2); - two: @two; - two-length: length(@two); - two-one: extract(@two, 1); - two-two: extract(@two, 2); -} -@color1: #FFF;/* comment1 */ -@color2: #FFF/* comment2 */; -html { - color: mix(blue, @color1, 50%); - color: mix(blue, @color2, 50%); -} diff --git a/node_modules/less/test/less/globalVars/extended.json b/node_modules/less/test/less/globalVars/extended.json deleted file mode 100644 index 6bd2a48..0000000 --- a/node_modules/less/test/less/globalVars/extended.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "the-border": "1px", - "base-color": "#111", - "red": "#842210" -} \ No newline at end of file diff --git a/node_modules/less/test/less/globalVars/extended.less b/node_modules/less/test/less/globalVars/extended.less deleted file mode 100644 index 7a3bf29..0000000 --- a/node_modules/less/test/less/globalVars/extended.less +++ /dev/null @@ -1,10 +0,0 @@ -#header { - color: (@base-color * 3); - border-left: @the-border; - border-right: (@the-border * 2); -} -#footer { - color: (@base-color + #003300); - border-color: @red; -} -@red: desaturate(red, 10%); // less file overrides passed in color <- note line comment on last line to check it is okay \ No newline at end of file diff --git a/node_modules/less/test/less/globalVars/simple.json b/node_modules/less/test/less/globalVars/simple.json deleted file mode 100644 index 2bccdc5..0000000 --- a/node_modules/less/test/less/globalVars/simple.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "my-color": "red" -} \ No newline at end of file diff --git a/node_modules/less/test/less/globalVars/simple.less b/node_modules/less/test/less/globalVars/simple.less deleted file mode 100644 index c3c5e3b..0000000 --- a/node_modules/less/test/less/globalVars/simple.less +++ /dev/null @@ -1,3 +0,0 @@ -.class { - color: @my-color; -} \ No newline at end of file diff --git a/node_modules/less/test/less/ie-filters.less b/node_modules/less/test/less/ie-filters.less deleted file mode 100644 index 3350b65..0000000 --- a/node_modules/less/test/less/ie-filters.less +++ /dev/null @@ -1,15 +0,0 @@ -@fat: 0; -@cloudhead: "#000000"; - -.nav { - filter: progid:DXImageTransform.Microsoft.Alpha(opacity = 20); - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=@fat); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#333333", endColorstr=@cloudhead, GradientType=@fat); -} -.evalTest(@arg) { - filter: progid:DXImageTransform.Microsoft.Alpha(opacity=@arg); -} -.evalTest1 { - .evalTest(30); - .evalTest(5); -} \ No newline at end of file diff --git a/node_modules/less/test/less/import-inline.less b/node_modules/less/test/less/import-inline.less deleted file mode 100644 index 213a574..0000000 --- a/node_modules/less/test/less/import-inline.less +++ /dev/null @@ -1,3 +0,0 @@ -@import url("import/import-test-c.less");// import inline should not float above this #1954 -@import (inline) url("import/import-test-d.css") (min-width:600px); -@import (inline, css) url("import/invalid-css.less"); \ No newline at end of file diff --git a/node_modules/less/test/less/import-interpolation.less b/node_modules/less/test/less/import-interpolation.less deleted file mode 100644 index 6c513b5..0000000 --- a/node_modules/less/test/less/import-interpolation.less +++ /dev/null @@ -1,8 +0,0 @@ -@my_theme: "test"; - -@import "import/import-@{my_theme}-e.less"; - -@import "import/import-@{in}@{terpolation}.less"; - -@import "import/interpolation-vars.less"; - diff --git a/node_modules/less/test/less/import-once.less b/node_modules/less/test/less/import-once.less deleted file mode 100644 index 0a4024a..0000000 --- a/node_modules/less/test/less/import-once.less +++ /dev/null @@ -1,6 +0,0 @@ -@import "import/import-once-test-c"; -@import "import/import-once-test-c"; -@import "import/import-once-test-c.less"; -@import "import/deeper/import-once-test-a"; -@import (multiple) "import/import-test-f.less"; -@import (multiple) "import/import-test-f.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/import-reference-issues.less b/node_modules/less/test/less/import-reference-issues.less deleted file mode 100644 index 74e02ce..0000000 --- a/node_modules/less/test/less/import-reference-issues.less +++ /dev/null @@ -1,50 +0,0 @@ -// Tests following past issues: -// * #1851 - Extend within (reference) imported files -// * #1896 - Namespace imported less code does not get properly referenced, when there's a (reference) keyword. -// * #1878 - extend inside referenced file should not extend outside selectors -// * #2716 - A file imported by reference and then normally - multiple imports should be independent -// * #1968 - When using an @import (reference), mixins that contain an & selector get added to the compiled output improperly -// * #2162 - Cannot put import by reference inside of a mixin (also doubles #1896) - -// #1878: extend inside referenced file should not extend outside selectors -@import (reference) "import-reference-issues/global-scope-import.less"; -.theOnlySelector { - shall-have: one selector; -} - -// #2716: A file imported by reference and then normally - multiple imports should be independent -// #1878: - double nested version -#do-not-show-import { - @import (reference, multiple) "import-reference-issues/multiple-import.less"; -} - -show-all-content { - @import (multiple) "import-reference-issues/multiple-import.less"; -} -// #1896: Namespace imported less code does not get properly referenced, when there's a (reference) keyword. -#Namespace { - @import (less, reference) "import-reference-issues/simple-mixin.css"; -} -#used-namespaced-mixin { - #Namespace > .mixin(); - shall-see: another property above; -} - -// #1851: Extend within (reference) imported files -// test-b is in global-scope-import.less file -.test-c { - &:extend(.test-b all); -} - -// #1968: When using an @import (reference), mixins that contain an & selector get added to the compiled output improperly -@import "import-reference-issues/mixin-1968.less"; -@import (reference) "import-reference-issues/appender-reference-1968.less"; - -// #2162 - Cannot put import by reference inside of a mixin (also doubles #1896) -.mixin-with-import-by-reference-inside() { - the-only-property: nothing-below-this; - @import (reference) "import-reference-issues/simple-ruleset-2162.less"; -} -call-mixin-with-import-by-reference-inside { - .mixin-with-import-by-reference-inside(); -} diff --git a/node_modules/less/test/less/import-reference-issues/appender-reference-1968.less b/node_modules/less/test/less/import-reference-issues/appender-reference-1968.less deleted file mode 100644 index 68cfc8c..0000000 --- a/node_modules/less/test/less/import-reference-issues/appender-reference-1968.less +++ /dev/null @@ -1,6 +0,0 @@ -.container-no-parent-selector { - .mixin-no-parent-selector(); -} -.container-with-parent-selector { - .mixin-with-parent-selector() -} diff --git a/node_modules/less/test/less/import-reference-issues/global-scope-import.less b/node_modules/less/test/less/import-reference-issues/global-scope-import.less deleted file mode 100644 index a7f8c85..0000000 --- a/node_modules/less/test/less/import-reference-issues/global-scope-import.less +++ /dev/null @@ -1,13 +0,0 @@ -.theOnlySelector { - avoid: warning; -} -.unusedAndReference:extend(.theOnlySelector) { - unused-and: reference; -} - -@import (reference) "global-scope-nested.less"; - -.test-b { - background-color: green; - &:extend(.test-a all); -} diff --git a/node_modules/less/test/less/import-reference-issues/global-scope-nested.less b/node_modules/less/test/less/import-reference-issues/global-scope-nested.less deleted file mode 100644 index afc6ab0..0000000 --- a/node_modules/less/test/less/import-reference-issues/global-scope-nested.less +++ /dev/null @@ -1,3 +0,0 @@ -.test-a { - color: red; -} diff --git a/node_modules/less/test/less/import-reference-issues/mixin-1968.less b/node_modules/less/test/less/import-reference-issues/mixin-1968.less deleted file mode 100644 index b045ee7..0000000 --- a/node_modules/less/test/less/import-reference-issues/mixin-1968.less +++ /dev/null @@ -1,8 +0,0 @@ -.mixin-no-parent-selector() { - background-color: red; -} -.mixin-with-parent-selector() { - &:first-child{ // USING AN & SELECTOR HERE - background-color: blue; - } -} diff --git a/node_modules/less/test/less/import-reference-issues/multiple-import-nested.less b/node_modules/less/test/less/import-reference-issues/multiple-import-nested.less deleted file mode 100644 index df83923..0000000 --- a/node_modules/less/test/less/import-reference-issues/multiple-import-nested.less +++ /dev/null @@ -1,12 +0,0 @@ -/* double nested file */ -should { - be: invisible; -} -/* do not extend outside of this */ -.something { - invisible: suppress warning; -} -.invisible { - &:extend(.something all); -} - diff --git a/node_modules/less/test/less/import-reference-issues/multiple-import.less b/node_modules/less/test/less/import-reference-issues/multiple-import.less deleted file mode 100644 index a3a8148..0000000 --- a/node_modules/less/test/less/import-reference-issues/multiple-import.less +++ /dev/null @@ -1,10 +0,0 @@ -/* - tralala -*/ -.fix { - fix: fix; -} -.something { - @import (reference) "multiple-import-nested.less"; - inside: something; -} diff --git a/node_modules/less/test/less/import-reference-issues/simple-mixin.css b/node_modules/less/test/less/import-reference-issues/simple-mixin.css deleted file mode 100644 index 98fb0d4..0000000 --- a/node_modules/less/test/less/import-reference-issues/simple-mixin.css +++ /dev/null @@ -1,3 +0,0 @@ -.mixin { - was: included; -} diff --git a/node_modules/less/test/less/import-reference-issues/simple-ruleset-2162.less b/node_modules/less/test/less/import-reference-issues/simple-ruleset-2162.less deleted file mode 100644 index e8b2ef8..0000000 --- a/node_modules/less/test/less/import-reference-issues/simple-ruleset-2162.less +++ /dev/null @@ -1,3 +0,0 @@ -ruleset { - shall-be-invisible: less; -} diff --git a/node_modules/less/test/less/import-reference.less b/node_modules/less/test/less/import-reference.less deleted file mode 100644 index 1ad02f4..0000000 --- a/node_modules/less/test/less/import-reference.less +++ /dev/null @@ -1,26 +0,0 @@ -@import (reference) url("import-once.less"); -@import (reference) url("css-3.less"); -@import (reference) url("media.less"); -@import (reference) url("import/import-reference.less"); -@import (reference) url("import/css-import.less"); - -.b { - .z(); -} - -.zz(); - -.visible:extend(.z all) { - extend: test; -} - -.test-mediaq-import { - .mixin-with-mediaq(340px); -} - -.class:extend(.class all) { -} -.mixin-with-nested-selectors(); -.mixin-with-directives(some-name); - -.print-referenced-import-inline(); diff --git a/node_modules/less/test/less/import.less b/node_modules/less/test/less/import.less deleted file mode 100644 index 2beeab1..0000000 --- a/node_modules/less/test/less/import.less +++ /dev/null @@ -1,31 +0,0 @@ -/** comment at the top**/ -@import url(http://fonts.googleapis.com/css?family=Open+Sans); - -@import url(/absolute/something.css) screen and (color) and (max-width: 600px); - -@import (optional) "file-does-not-exist.does-not-exist"; - -@var: 100px; -@import url("//ha.com/file.css") (min-width:@var); - -#import-test { - .mixin; - width: 10px; - height: (@a + 10%); -} -@import "import/import-test-e" screen and (max-width: 600px); - -@import url("import/import-test-a.less"); - -@import (less, multiple) "import/import-test-d.css" screen and (max-width: 601px); - -@import (multiple) "import/import-test-e" screen and (max-width: 602px); - -@import (less, multiple) url("import/import-test-d.css") screen and (max-width: 603px); - -@media print { - @import (multiple) "import/import-test-e"; -} - -@charset "UTF-8"; // climb on top #2126 - diff --git a/node_modules/less/test/less/import/css-import.less b/node_modules/less/test/less/import/css-import.less deleted file mode 100644 index d5df0a4..0000000 --- a/node_modules/less/test/less/import/css-import.less +++ /dev/null @@ -1 +0,0 @@ -@import url("test.css"); diff --git a/node_modules/less/test/less/import/deeper/deeper-2/url-import-2.less b/node_modules/less/test/less/import/deeper/deeper-2/url-import-2.less deleted file mode 100644 index 727ea57..0000000 --- a/node_modules/less/test/less/import/deeper/deeper-2/url-import-2.less +++ /dev/null @@ -1,3 +0,0 @@ -.deep-import-url { - color: red; -} \ No newline at end of file diff --git a/node_modules/less/test/less/import/deeper/deeper-2/url-import.less b/node_modules/less/test/less/import/deeper/deeper-2/url-import.less deleted file mode 100644 index 2ec87bc..0000000 --- a/node_modules/less/test/less/import/deeper/deeper-2/url-import.less +++ /dev/null @@ -1 +0,0 @@ -@import url("url-import-2.less"); \ No newline at end of file diff --git a/node_modules/less/test/less/import/deeper/import-once-test-a.less b/node_modules/less/test/less/import/deeper/import-once-test-a.less deleted file mode 100644 index 8a747fc..0000000 --- a/node_modules/less/test/less/import/deeper/import-once-test-a.less +++ /dev/null @@ -1 +0,0 @@ -@import "../import-once-test-c"; \ No newline at end of file diff --git a/node_modules/less/test/less/import/deeper/url-import.less b/node_modules/less/test/less/import/deeper/url-import.less deleted file mode 100644 index 003b077..0000000 --- a/node_modules/less/test/less/import/deeper/url-import.less +++ /dev/null @@ -1 +0,0 @@ -@import url("deeper-2/url-import.less"); \ No newline at end of file diff --git a/node_modules/less/test/less/import/import-and-relative-paths-test.less b/node_modules/less/test/less/import/import-and-relative-paths-test.less deleted file mode 100644 index d6256c6..0000000 --- a/node_modules/less/test/less/import/import-and-relative-paths-test.less +++ /dev/null @@ -1,17 +0,0 @@ -@import "../css/background.css"; -@import "import-test-d.css"; - -@import "imports/logo"; -@import "imports/font"; - -.unquoted-relative-path-bg() { - background-image: url(../../data/image.jpg); -} -.quoted-relative-path-border-image() { - border-image: url('../../data/image.jpg'); -} - -#imported-relative-path { - .unquoted-relative-path-bg; - .quoted-relative-path-border-image; -} \ No newline at end of file diff --git a/node_modules/less/test/less/import/import-charset-test.less b/node_modules/less/test/less/import/import-charset-test.less deleted file mode 100644 index 07a66e1..0000000 --- a/node_modules/less/test/less/import/import-charset-test.less +++ /dev/null @@ -1 +0,0 @@ -@charset "ISO-8859-1"; \ No newline at end of file diff --git a/node_modules/less/test/less/import/import-inline-invalid-css.less b/node_modules/less/test/less/import/import-inline-invalid-css.less deleted file mode 100644 index 274a76e..0000000 --- a/node_modules/less/test/less/import/import-inline-invalid-css.less +++ /dev/null @@ -1 +0,0 @@ -@import (inline) "invalid-css.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/import/import-interpolation.less b/node_modules/less/test/less/import/import-interpolation.less deleted file mode 100644 index 656f3cb..0000000 --- a/node_modules/less/test/less/import/import-interpolation.less +++ /dev/null @@ -1,2 +0,0 @@ -@import (inline) "imports/logo.less"; -@import "import-@{in}@{terpolation}2.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/import/import-interpolation2.less b/node_modules/less/test/less/import/import-interpolation2.less deleted file mode 100644 index 12bfb4e..0000000 --- a/node_modules/less/test/less/import/import-interpolation2.less +++ /dev/null @@ -1,5 +0,0 @@ -.a { - var: test; -} - -@in: "redefined-does-nothing"; \ No newline at end of file diff --git a/node_modules/less/test/less/import/import-once-test-c.less b/node_modules/less/test/less/import/import-once-test-c.less deleted file mode 100644 index 686747a..0000000 --- a/node_modules/less/test/less/import/import-once-test-c.less +++ /dev/null @@ -1,6 +0,0 @@ - -@c: red; - -#import { - color: @c; -} diff --git a/node_modules/less/test/less/import/import-reference.less b/node_modules/less/test/less/import/import-reference.less deleted file mode 100644 index fe595e1..0000000 --- a/node_modules/less/test/less/import/import-reference.less +++ /dev/null @@ -1,98 +0,0 @@ -.z { - color: red; - .c { - color: green; - } -} -.only-with-visible, -.z { - color: green; - &:hover { - color: green; - } - & { - color: green; - } - & + & { - color: green; - .sub { - color: green; - } - } -} - -& { - .hidden { - hidden: true; - } -} - -@media tv { - .hidden { - hidden: true; - } -} - -/* comment is not output */ - -.zz { - .y { - pulled-in: yes /* inline comment survives */; - } - /* comment pulled in */ -} -@max-size: 450px; -.mixin-with-mediaq(@num) { - color: green; - test: @num; - @media (max-size: @max-size) { - color: red; - } -} -//https://github.com/less/less.js/issues/2359 -@supports (something: else) { - .class { - something: else; - } - .nestedToo { - .class { - something: else; - } - } - .invisible { - something: else; - } -} -//https://github.com/less/less.js/issues/1979 -.mixin-with-nested-selectors() { - .test { - color: red; - &:first-child { - color: blue; - } - } -} -.mixin-with-directives(@keyframeName) { - @keyframes @keyframeName { - @rules1(); - } - @supports (animation-name: test) { - @keyframes @keyframeName { - @rules2(); - } - .selector { - color: red; - } - } - @rules1: {property: value;}; - @rules2: {property: value;}; -} - -@import (inline, multiple) "invalid-css.less"; -@import "import-inline-invalid-css.less"; -.print-referenced-import-inline() { - div { - @import (inline, multiple) "invalid-css.less"; - } - @import (inline, multiple) "invalid-css.less"; -} \ No newline at end of file diff --git a/node_modules/less/test/less/import/import-test-a.less b/node_modules/less/test/less/import/import-test-a.less deleted file mode 100644 index 6916f17..0000000 --- a/node_modules/less/test/less/import/import-test-a.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "import-test-b.less"; -@import url(import-test-f.less); -@import url("deeper/url-import.less"); -@a: 20%; -@import "urls.less"; \ No newline at end of file diff --git a/node_modules/less/test/less/import/import-test-b.less b/node_modules/less/test/less/import/import-test-b.less deleted file mode 100644 index ce2d35a..0000000 --- a/node_modules/less/test/less/import/import-test-b.less +++ /dev/null @@ -1,8 +0,0 @@ -@import "import-test-c"; - -@b: 100%; - -.mixin { - height: 10px; - color: @c; -} diff --git a/node_modules/less/test/less/import/import-test-c.less b/node_modules/less/test/less/import/import-test-c.less deleted file mode 100644 index 686747a..0000000 --- a/node_modules/less/test/less/import/import-test-c.less +++ /dev/null @@ -1,6 +0,0 @@ - -@c: red; - -#import { - color: @c; -} diff --git a/node_modules/less/test/less/import/import-test-d.css b/node_modules/less/test/less/import/import-test-d.css deleted file mode 100644 index 30575f0..0000000 --- a/node_modules/less/test/less/import/import-test-d.css +++ /dev/null @@ -1 +0,0 @@ -#css { color: yellow; } diff --git a/node_modules/less/test/less/import/import-test-e.less b/node_modules/less/test/less/import/import-test-e.less deleted file mode 100644 index 98b84b0..0000000 --- a/node_modules/less/test/less/import/import-test-e.less +++ /dev/null @@ -1,2 +0,0 @@ - -body { width: 100% } diff --git a/node_modules/less/test/less/import/import-test-f.less b/node_modules/less/test/less/import/import-test-f.less deleted file mode 100644 index fad630f..0000000 --- a/node_modules/less/test/less/import/import-test-f.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "import-test-e"; - -.test-f { - height: 10px; -} diff --git a/node_modules/less/test/less/import/imports/font.less b/node_modules/less/test/less/import/imports/font.less deleted file mode 100644 index 822279f..0000000 --- a/node_modules/less/test/less/import/imports/font.less +++ /dev/null @@ -1,8 +0,0 @@ -@font-face { - font-family: xecret; - src: url('../assets/xecret.ttf'); -} - -#secret { - font-family: xecret, sans-serif; -} diff --git a/node_modules/less/test/less/import/imports/logo.less b/node_modules/less/test/less/import/imports/logo.less deleted file mode 100644 index f782c6f..0000000 --- a/node_modules/less/test/less/import/imports/logo.less +++ /dev/null @@ -1,6 +0,0 @@ -#logo { - width: 100px; - height: 100px; - background: url('../assets/logo.png'); - background: url("#inline-svg"); -} diff --git a/node_modules/less/test/less/import/interpolation-vars.less b/node_modules/less/test/less/import/interpolation-vars.less deleted file mode 100644 index c611ed6..0000000 --- a/node_modules/less/test/less/import/interpolation-vars.less +++ /dev/null @@ -1,6 +0,0 @@ -@in: "in"; -@terpolation: "terpolation"; - -// should be ignored because its already imported -// and it uses a variable from the parent scope -@import "import-@{my_theme}-e.less"; diff --git a/node_modules/less/test/less/import/invalid-css.less b/node_modules/less/test/less/import/invalid-css.less deleted file mode 100644 index ed585d6..0000000 --- a/node_modules/less/test/less/import/invalid-css.less +++ /dev/null @@ -1 +0,0 @@ -this isn't very valid CSS. \ No newline at end of file diff --git a/node_modules/less/test/less/import/urls.less b/node_modules/less/test/less/import/urls.less deleted file mode 100644 index bb48f77..0000000 --- a/node_modules/less/test/less/import/urls.less +++ /dev/null @@ -1 +0,0 @@ -// empty file showing that it loads from the relative path first diff --git a/node_modules/less/test/less/include-path-string/include-path-string.less b/node_modules/less/test/less/include-path-string/include-path-string.less deleted file mode 100644 index db49715..0000000 --- a/node_modules/less/test/less/include-path-string/include-path-string.less +++ /dev/null @@ -1,3 +0,0 @@ -data-uri { - property: data-uri('image.svg'); -} diff --git a/node_modules/less/test/less/include-path/include-path.less b/node_modules/less/test/less/include-path/include-path.less deleted file mode 100644 index 3e9e765..0000000 --- a/node_modules/less/test/less/include-path/include-path.less +++ /dev/null @@ -1,8 +0,0 @@ -@import "import-test-e"; - -data-uri { - property: data-uri('image.svg'); -} -image-size { - property: image-size('image.svg'); -} diff --git a/node_modules/less/test/less/javascript.less b/node_modules/less/test/less/javascript.less deleted file mode 100644 index a8e7eb3..0000000 --- a/node_modules/less/test/less/javascript.less +++ /dev/null @@ -1,38 +0,0 @@ -.eval { - js: `42`; - js: `1 + 1`; - js: `"hello world"`; - js: `[1, 2, 3]`; - title: `typeof process.title`; - ternary: `(1 + 1 == 2 ? true : false)`; - multiline: `(function(){var x = 1 + 1; - return x})()`; -} -.scope { - @foo: 42; - var: `parseInt(this.foo.toJS())`; - escaped: ~`2 + 5 + 'px'`; -} -.vars { - @var: `4 + 4`; - width: @var; -} -.escape-interpol { - @world: "world"; - width: ~`"hello" + " " + @{world}`; -} -.arrays { - @ary: 1, 2, 3; - @ary2: 1 2 3; - ary: `@{ary}.join(', ')`; - ary1: `@{ary2}.join(', ')`; -} -.transitions(...) { - @arg: ~`"@{arguments}".replace(/[\[\]]*/g, '')`; - 1: @arg; // rounded to integers - 2: ~`"@{arguments}"`; // rounded to integers - 3: @arguments; // OK -} -.test-tran { - .transitions(opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;); -} diff --git a/node_modules/less/test/less/lazy-eval.less b/node_modules/less/test/less/lazy-eval.less deleted file mode 100644 index 72b3fd4..0000000 --- a/node_modules/less/test/less/lazy-eval.less +++ /dev/null @@ -1,6 +0,0 @@ -@var: @a; -@a: 100%; - -.lazy-eval { - width: @var; -} diff --git a/node_modules/less/test/less/legacy/legacy.less b/node_modules/less/test/less/legacy/legacy.less deleted file mode 100644 index 4367423..0000000 --- a/node_modules/less/test/less/legacy/legacy.less +++ /dev/null @@ -1,21 +0,0 @@ -@media (-o-min-device-pixel-ratio: 2/1) { - .test-math-and-units { - font: ignores 0/0 rules; - test-division: 4 / 2 + 5em; - simple: 1px + 1px; - } -} -#units { - t1: (2em/1em) + 20; - t2: 20 + (2em/1em); - t3: 2em/1em; - t4: (2em/1px) + 20; - t5: 20 + (2em/1px); - t6: 2em/1px; - t7: (2em*1em) + 20; - t8: 20 + (2em*1em); - t9: 2em*1em; - t10: (2em*1px) + 20; - t11: 20 + (2em*1px); - t12: 2em*1px; -} \ No newline at end of file diff --git a/node_modules/less/test/less/media.less b/node_modules/less/test/less/media.less deleted file mode 100644 index 8bd23bb..0000000 --- a/node_modules/less/test/less/media.less +++ /dev/null @@ -1,234 +0,0 @@ - -// For now, variables can't be declared inside @media blocks. - -@var: 42; - -@media print { - .class { - color: blue; - .sub { - width: @var; - } - } - .top, header > h1 { - color: (#222 * 2); - } -} - -@media screen { - @base: 8; - body { max-width: (@base * 60); } -} - -@ratio_large: 16; -@ratio_small: 9; - -@media all and (device-aspect-ratio: @ratio_large / @ratio_small) { - body { max-width: 800px; } -} - -@media all and (orientation:portrait) { - aside { float: none; } -} - -@media handheld and (min-width: @var), screen and (min-width: 20em) { - body { - max-width: 480px; - } -} - -body { - @media print { - padding: 20px; - - header { - background-color: red; - } - - @media (orientation:landscape) { - margin-left: 20px; - } - } -} - -@media screen { - .sidebar { - width: 300px; - @media (orientation: landscape) { - width: 500px; - } - } -} - -@media a { - .first { - @media b { - .second { - .third { - width: 300px; - @media c { - width: 500px; - } - } - .fourth { - width: 3; - } - } - } - } -} - -body { - @media a, b and c { - width: 95%; - - @media x, y { - width: 100%; - } - } -} - -.mediaMixin(@fallback: 200px) { - background: black; - - @media handheld { - background: white; - - @media (max-width: @fallback) { - background: red; - } - } -} - -.a { - .mediaMixin(100px); -} - -.b { - .mediaMixin(); -} -@smartphone: ~"only screen and (max-width: 200px)"; -@media @smartphone { - body { - width: 480px; - } -} - -@media print { - @page :left { - margin: 0.5cm; - } - @page :right { - margin: 0.5cm; - } - @page Test:first { - margin: 1cm; - } - @page :first { - size: 8.5in 11in; - @top-left { - margin: 1cm; - } - @top-left-corner { - margin: 1cm; - } - @top-center { - margin: 1cm; - } - @top-right { - margin: 1cm; - } - @top-right-corner { - margin: 1cm; - } - @bottom-left { - margin: 1cm; - } - @bottom-left-corner { - margin: 1cm; - } - @bottom-center { - margin: 1cm; - } - @bottom-right { - margin: 1cm; - } - @bottom-right-corner { - margin: 1cm; - } - @left-top { - margin: 1cm; - } - @left-middle { - margin: 1cm; - } - @left-bottom { - margin: 1cm; - } - @right-top { - margin: 1cm; - } - @right-middle { - content: "Page " counter(page); - } - @right-bottom { - margin: 1cm; - } - } -} - -@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-resolution: 2dppx), (min-resolution: 128dpcm) { - .b { - background: red; - } -} - -.bg() { - background: red; - - @media (max-width: 500px) { - background: green; - } -} - -body { - .bg(); -} - -@bpMedium: 1000px; -@media (max-width: @bpMedium) { - body { - .bg(); - background: blue; - } -} - -@media (max-width: 1200px) { - /* a comment */ - - @media (max-width: 900px) { - body { font-size: 11px; } - } -} - -.nav-justified { - @media (min-width: 480px) { - > li { - display: table-cell; - } - } -} - -.menu -{ - @media (min-width: 768px) { - .nav-justified(); - } -} -@all: ~"all"; -@tv: ~"tv"; -@media @all and @tv { - .all-and-tv-variables { - var: all-and-tv; - } -} \ No newline at end of file diff --git a/node_modules/less/test/less/merge.less b/node_modules/less/test/less/merge.less deleted file mode 100644 index 9d37f67..0000000 --- a/node_modules/less/test/less/merge.less +++ /dev/null @@ -1,78 +0,0 @@ -.first-transform() { - transform+: rotate(90deg), skew(30deg); -} -.second-transform() { - transform+: scale(2,4); -} -.third-transform() { - transform: scaleX(45deg); -} -.fourth-transform() { - transform+: scaleX(45deg); -} -.fifth-transform() { - transform+: scale(2,4) !important; -} -.first-background() { - background+: url(data://img1.png); -} -.second-background() { - background+: url(data://img2.png); -} - -.test1 { - // Can merge values - .first-transform(); - .second-transform(); -} -.test2 { - // Won't merge values without +: merge directive, for backwards compatibility with css - .first-transform(); - .third-transform(); -} -.test3 { - // Won't merge values from two sources with different properties - .fourth-transform(); - .first-background(); -} -.test4 { - // Won't merge values from sources that merked as !important, for backwards compatibility with css - .first-transform(); - .fifth-transform(); -} -.test5 { - // Won't merge values from mixins that merked as !important, for backwards compatibility with css - .first-transform(); - .second-transform() !important; -} -.test6 { - // Ignores !merge if no peers found - .second-transform(); -} - -.test-interleaved { - transform+: t1; - background+: b1; - transform+: t2; - background+: b2, b3; - transform+: t3; -} - -.test-spaced { - transform+_: t1; - background+_: b1; - transform+_: t2; - background+_: b2, b3; - transform+_: t3; -} - -.test-interleaved-with-spaced { - transform+_: t1s; - transform+: t2; - background+: b1; - transform+_: t3s; - transform+: t4 t5s; - background+_: b2s, b3; - transform+_: t6s; - background+: b4; -} diff --git a/node_modules/less/test/less/mixins-args.less b/node_modules/less/test/less/mixins-args.less deleted file mode 100644 index 57f5a5b..0000000 --- a/node_modules/less/test/less/mixins-args.less +++ /dev/null @@ -1,263 +0,0 @@ -.mixin (@a: 1px, @b: 50%) { - width: (@a * 5); - height: (@b - 1%); -} - -.mixina (@style, @width, @color: black) { - border: @width @style @color; -} - -.mixiny -(@a: 0, @b: 0) { - margin: @a; - padding: @b; -} - -.hidden() { - color: transparent; // asd -} - -#hidden { - .hidden; -} - -#hidden1 { - .hidden(); -} - -.two-args { - color: blue; - .mixin(2px, 100%); - .mixina(dotted, 2px); -} - -.one-arg { - .mixin(3px); -} - -.no-parens { - .mixin; -} - -.no-args { - .mixin(); -} - -.var-args { - @var: 9; - .mixin(@var, (@var * 2)); -} - -.multi-mix { - .mixin(2px, 30%); - .mixiny(4, 5); -} - -.maxa(@arg1: 10, @arg2: #f00) { - padding: (@arg1 * 2px); - color: @arg2; -} - -body { - .maxa(15); -} - -@glob: 5; -.global-mixin(@a:2) { - width: (@glob + @a); -} - -.scope-mix { - .global-mixin(3); -} - -.nested-ruleset (@width: 200px) { - width: @width; - .column { margin: @width; } -} -.content { - .nested-ruleset(600px); -} - -// - -.same-var-name2(@radius) { - radius: @radius; -} -.same-var-name(@radius) { - .same-var-name2(@radius); -} -#same-var-name { - .same-var-name(5px); -} - -// - -.var-inside () { - @var: 10px; - width: @var; -} -#var-inside { .var-inside; } - -.mixin-arguments (@width: 0px, ...) { - border: @arguments; - width: @width; -} - -.arguments { - .mixin-arguments(1px, solid, black); -} -.arguments2 { - .mixin-arguments(); -} -.arguments3 { - .mixin-arguments; -} - -.mixin-arguments2 (@width, @rest...) { - border: @arguments; - rest: @rest; - width: @width; -} -.arguments4 { - .mixin-arguments2(0, 1, 2, 3, 4); -} - -// Edge cases - -.edge-case { - .mixin-arguments("{"); -} - -// Division vs. Literal Slash -.border-radius(@r: 2px/5px) { - border-radius: @r; -} -.slash-vs-math { - .border-radius(); - .border-radius(5px/10px); - .border-radius((3px * 2)); -} -// semi-colon vs comma for delimiting - -.mixin-takes-one(@a) { - one: @a; -} - -.mixin-takes-two(@a; @b) { - one: @a; - two: @b; -} - -.comma-vs-semi-colon { - .mixin-takes-two(@a : a; @b : b, c); - .mixin-takes-two(@a : d, e; @b : f); - .mixin-takes-one(@a: g); - .mixin-takes-one(@a : h;); - .mixin-takes-one(i); - .mixin-takes-one(j;); - .mixin-takes-two(k, l); - .mixin-takes-one(m, n;); - .mixin-takes-two(o, p; q); - .mixin-takes-two(r, s; t;); -} - -.mixin-conflict(@a:defA, @b:defB, @c:defC) { - three: @a, @b, @c; -} - -.mixin-conflict(@a:defA, @b:defB, @c:defC, @d:defD) { - four: @a, @b, @c, @d; -} - -#named-conflict { - .mixin-conflict(11, 12, 13, @a:a); - .mixin-conflict(@a:a, 21, 22, 23); -} -@a: 3px; -.mixin-default-arg(@a: 1px, @b: @a, @c: @b) { - defaults: 1px 1px 1px; - defaults: 2px 2px 2px; -} - -.test-mixin-default-arg { - .mixin-default-arg(); - .mixin-default-arg(2px); -} - -.mixin-comma-default1(@color; @padding; @margin: 2, 2, 2, 2) { - margin: @margin; -} -.selector { - .mixin-comma-default1(#33acfe; 4); -} -.mixin-comma-default2(@margin: 2, 2, 2, 2;) { - margin: @margin; -} -.selector2 { - .mixin-comma-default2(); -} -.mixin-comma-default3(@margin: 2, 2, 2, 2) { - margin: @margin; -} -.selector3 { - .mixin-comma-default3(4,2,2,2); -} - -.test-calling-one-arg-mixin(@a) { -} - -.test-calling-one-arg-mixin(@a, @b, @rest...) { -} - -div { - .test-calling-one-arg-mixin(1); -} - -mixins-args-expand-op- { - @x: 1, 2, 3; - @y: 4 5 6; - - &1 {.m3(@x...)} - &2 {.m3(@y...)} - &3 {.wr(a, b, c)} - &4 {.wr(a; b; c, d)} - &5 {.wr(@x...)} - &6 {.m4(0; @x...)} - &7 {.m4(@x..., @a: 0)} - &8 {.m4(@b: 1.5; @x...)} - &9 {.aa(@y, @x..., and again, @y...)} - - .m3(@a, @b, @c) { - m3: @a, @b, @c; - } - - .m4(@a, @b, @c, @d) { - m4: @a, @b, @c, @d; - } - - .wr(@a...) { - &a {.m3(@a...)} - &b {.m4(0, @a...)} - &c {.m4(@a..., 4)} - } - - .aa(@a...) { - aa: @a; - a4: extract(@a, 5); - a8: extract(@a, 8); - } -} -#test-mixin-matching-when-default-2645 { - .mixin(@height) { - height: @height; - } - - .mixin(@width, @height: 10px) { - width: @width; - - .mixin(@height: @height); - } - - .mixin(@height: 20px); -} \ No newline at end of file diff --git a/node_modules/less/test/less/mixins-closure.less b/node_modules/less/test/less/mixins-closure.less deleted file mode 100644 index 26c8b6e..0000000 --- a/node_modules/less/test/less/mixins-closure.less +++ /dev/null @@ -1,26 +0,0 @@ -.scope { - @var: 99px; - .mixin () { - width: @var; - } -} - -.class { - .scope > .mixin; -} - -.overwrite { - @var: 0px; - .scope > .mixin; -} - -.nested { - @var: 5px; - .mixin () { - width: @var; - } - .class { - @var: 10px; - .mixin; - } -} diff --git a/node_modules/less/test/less/mixins-guards-default-func.less b/node_modules/less/test/less/mixins-guards-default-func.less deleted file mode 100644 index a71f78f..0000000 --- a/node_modules/less/test/less/mixins-guards-default-func.less +++ /dev/null @@ -1,195 +0,0 @@ - -// basics: - -guard-default-basic-1 { - .m(1) {case: 1} - .m(@x) when (default()) {default: @x} - - &-1 {.m(1)} - &-2 {.m(2)} -} - -guard-default-basic-2 { - .m(1) {case: 1} - .m(2) {case: 2} - .m(3) {case: 3} - .m(@x) when (default()) {default: @x} - - &-0 {.m(0)} - &-2 {.m(2)} -} - -guard-default-basic-3 { - .m(@x) when (@x = 1) {case: 1} - .m(2) {case: 2} - .m(@x) when (@x = 3) {case: 3} - .m(@x) when (default()) {default: @x} - - &-0 {.m(0)} - &-2 {.m(2)} - &-3 {.m(3)} -} - -guard-default-definition-order { - .m(@x) when (default()) {default: @x} - .m(@x) when (@x = 1) {case: 1} - .m(2) {case: 2} - .m(@x) when (@x = 3) {case: 3} - - &-0 {.m(0)} - &-2 {.m(2)} - &-2 {.m(3)} -} - -// out of guard: - -guard-default-out-of-guard { - .m(1) {case-1: 1} - .m(@x: default()) when (default()) {default: @x} - - &-0 { - case-0: default(); - .m(1); - .m(2); - case-2: default(); - } - &-1 {.m(default())} - &-2 {.m()} -} - -// expressions: - -guard-default-expr-not { - .m(1) {case: 1} - .m(@x) when not(default()) {default: @x} - - &-1 {.m(1)} - &-2 {.m(2)} -} - -guard-default-expr-eq { - .m(@x) when (@x = true) {case: @x} - .m(@x) when (@x = false) {case: @x} - .m(@x) when (@x = default()) {default: @x} - - &-true {.m(true)} - &-false {.m(false)} -} - -guard-default-expr-or { - .m(1) {case: 1} - .m(2) {case: 2} - .m(@x) when (default()), (@x = 2) {default: @x} - - &-1 {.m(1)} - &-2 {.m(2)} - &-3 {.m(3)} -} - -guard-default-expr-and { - .m(1) {case: 1} - .m(2) {case: 2} - .m(@x) when (default()) and (@x = 3) {default: @x} - - &-1 {.m(1)} - &-2 {.m(2)} - &-3 {.m(3)} - &-4 {.m(4)} -} - -guard-default-expr-always { - .m(1) {case: 1} - .m(@x) when (default()), not(default()) {default: @x} // always match - - &-1 {.m(1)} - &-2 {.m(2)} -} - -guard-default-expr-never { - .m(1) {case: 1} - .m(@x) when (default()) and not(default()) {default: @x} // never match - - &-1 {.m(1)} - &-2 {.m(2)} -} - - -// not conflicting multiple default() uses: - -guard-default-multi-1 { - .m(0) {case: 0} - .m(@x) when (default()) {default-1: @x} - .m(2) when (default()) {default-2: @x} - - &-0 {.m(0)} - &-1 {.m(1)} -} - -guard-default-multi-2 { - .m(1, @x) when (default()) {default-1: @x} - .m(2, @x) when (default()) {default-2: @x} - .m(@x, yes) when (default()) {default-3: @x} - - &-1 {.m(1, no)} - &-2 {.m(2, no)} - &-3 {.m(3, yes)} -} - -guard-default-multi-3 { - .m(red) {case-1: darkred} - .m(blue) {case-2: darkblue} - .m(@x) when (iscolor(@x)) and (default()) {default-color: @x} - .m('foo') {case-1: I am 'foo'} - .m('bar') {case-2: I am 'bar'} - .m(@x) when (isstring(@x)) and (default()) {default-string: I am @x} - - &-blue {.m(blue)} - &-green {.m(green)} - &-foo {.m('foo')} - &-baz {.m('baz')} -} - -guard-default-multi-4 { - .m(@x) when (default()), not(default()) {always: @x} - .m(@x) when (default()) and not(default()) {never: @x} - .m(2) {case: 2} - - .m(1); - .m(2); -} - -guard-default-not-ambiguos-2 { - .m(@x) {case: 1} - .m(@x) when (default()) {default: @x} - .m(@x) when not(default()) {not-default: @x} - - .m(2); -} - -guard-default-not-ambiguos-3 { - .m(@x) {case: 1} - .m(@x) when not(default()) {not-default-1: @x} - .m(@x) when not(default()) {not-default-2: @x} - - .m(2); -} - -// default & scope - -guard-default-scopes { - .s1() {.m(@v) {1: no condition}} - .s2() {.m(@v) when (@v) {2: when true}} - .s3() {.m(@v) when (default()) {3: when default}} - - &-3 { - .s2(); - .s3(); - .m(false); - } - - &-1 { - .s1(); - .s3(); - .m(false); - } -} diff --git a/node_modules/less/test/less/mixins-guards.less b/node_modules/less/test/less/mixins-guards.less deleted file mode 100644 index 883bb57..0000000 --- a/node_modules/less/test/less/mixins-guards.less +++ /dev/null @@ -1,358 +0,0 @@ - -// Stacking, functions.. - -.light (@a) when (lightness(@a) > 50%) { - color: white; -} -.light (@a) when (lightness(@a) < 50%) { - color: black; -} -.light (@a) { - margin: 1px; -} - -.light1 { .light(#ddd) } -.light2 { .light(#444) } - -// Arguments against each other - -.max (@a, @b) when (@a > @b) { - width: @a; -} -.max (@a, @b) when (@a < @b) { - width: @b; -} - -.max1 { .max(3, 6) } -.max2 { .max(8, 1) } - -// Globals inside guards - -@g: auto; - -.glob (@a) when (@a = @g) { - margin: @a @g; -} -.glob1 { .glob(auto) } - -// Other operators - -.ops (@a) when (@a >= 0) { - height: gt-or-eq; -} -.ops (@a) when (@a =< 0) { - height: lt-or-eq; -} -.ops (@a) when (@a <= 0) { - height: lt-or-eq-alias; -} -.ops (@a) when not(@a = 0) { - height: not-eq; -} -.ops1 { .ops(0) } -.ops2 { .ops(1) } -.ops3 { .ops(-1) } - -// Scope and default values - -@a: auto; - -.default (@a: inherit) when (@a = inherit) { - content: default; -} -.default1 { .default } - -// true & false keywords -.test (@a) when (@a) { - content: "true."; -} -.test (@a) when not (@a) { - content: "false."; -} - -.test1 { .test(true) } -.test2 { .test(false) } -.test3 { .test(1) } -.test4 { .test(boo) } -.test5 { .test("true") } - -// Boolean expressions - -.bool () when (true) and (false) { content: true and false } // FALSE -.bool () when (true) and (true) { content: true and true } // TRUE -.bool () when (true) { content: true } // TRUE -.bool () when (false) and (false) { content: true } // FALSE -.bool () when (false), (true) { content: false, true } // TRUE -.bool () when (false) and (true) and (true), (true) { content: false and true and true, true } // TRUE -.bool () when (true) and (true) and (false), (false) { content: true and true and false, false } // FALSE -.bool () when (false), (true) and (true) { content: false, true and true } // TRUE -.bool () when (false), (false), (true) { content: false, false, true } // TRUE -.bool () when (false), (false) and (true), (false) { content: false, false and true, false } // FALSE -.bool () when (false), (true) and (true) and (true), (false) { content: false, true and true and true, false } // TRUE -.bool () when not (false) { content: not false } -.bool () when not (true) and not (false) { content: not true and not false } -.bool () when not (true) and not (true) { content: not true and not true } -.bool () when not (false) and (false), not (false) { content: not false and false, not false } - -.bool1 { .bool } - -.equality-unit-test(@num) when (@num = 1%) { - test: fail; -} -.equality-unit-test(@num) when (@num = 2) { - test: pass; -} -.equality-units { - .equality-unit-test(1px); - .equality-unit-test(2px); -} - -.colorguard(@col) when (@col = red) { content: is @col; } -.colorguard(@col) when not (blue = @col) { content: is not blue its @col; } -.colorguard(@col) {} -.colorguardtest { - .colorguard(red); - .colorguard(blue); - .colorguard(purple); -} - -.stringguard(@str) when (@str = "theme1") { content: @str is "theme1"; } -.stringguard(@str) when not ("theme2" = @str) { content: @str is not "theme2"; } -.stringguard(@str) when (@str = 'theme1') { content: @str is 'theme1'; } -.stringguard(@str) when not ('theme2' = @str) { content: @str is not 'theme2'; } -.stringguard(@str) when (~"theme1" = @str) { content: @str is theme1; } -.stringguard(@str) {} -.stringguardtest { - .stringguard("theme1"); - .stringguard("theme2"); - .stringguard('theme1'); - .stringguard('theme2'); - .stringguard(theme1); -} - -.generic(@a, @b) {/**/} -.generic(@a, @b) when (@a = @b) {content: @a is equal to @b} -.generic(@a, @b) when (@b = @a) {content: @b is equal to @a too} -.generic(@a, @b) when (@a < @b) {content: @a is less than @b} -.generic(@a, @b) when (@b < @a) {content: @b is less than @a too} -.generic(@a, @b) when (@a > @b) {content: @a is greater than @b} -.generic(@a, @b) when (@b > @a) {content: @b is greater than @a too} -.generic(@a, @b) when not(@a = @b) {content: @a is not equal to @b} -.generic(@a, @b) when not(@b = @a) {content: @b is not equal to @a too} - -.variouse-types-comparison { - .generic(true, false); - .generic(1, true); - .generic(2, 2px); - .generic(3, ~"3"); - .generic(5, ~"4"); - .generic(abc, ~"abc"); - .generic(abc, "abc"); - .generic('abc', "abd"); - .generic(6, e("6")); - .generic(`9`, 8); - .generic(a, b); - .generic(1 2, 3); -} - -.list-comparison { - .generic(a b c, a b c); - .generic(a b c, a b d); - .generic(a, b, c; a, b, c); - .generic(a, b, c; a, b, d); - .generic(1 2px 300ms, 1em 2 .3s); - - @space-list: 1 2 3; - @comma-list: 1, 2, 3; - @compound: @space-list @comma-list; - - .generic(@space-list, @comma-list); - .generic(@comma-list, ~"1, 2, 3"); - .generic(@compound, @space-list @comma-list); - .generic(@compound, @comma-list @space-list); - .generic(@compound 4, ~"1 2 3 1, 2, 3 4"); -} - -.mixin(...) { - catch:all; -} -.mixin(@var) when (@var=4) { - declare: 4; -} -.mixin(@var) when (@var=4px) { - declare: 4px; -} -#tryNumberPx { - .mixin(4px); -} - -.lock-mixin(@a) { - .inner-locked-mixin(@x: @a) when (@a = 1) { - a: @a; - x: @x; - } -} -.call-lock-mixin { - .lock-mixin(1); - .call-inner-lock-mixin { - .inner-locked-mixin(); - } -} -.bug-100cm-1m(@a) when (@a = 1) { - .failed { - one-hundred: not-equal-to-1; - } -} -.bug-100cm-1m(100cm); - -#ns { - .mixin-for-root-usage(@a) when (@a > 0) { - .mixin-generated-class { - a: @a; - } - } -} - -#ns > .mixin-for-root-usage(1); - -@namespaceGuard: 1; -#guarded when (@namespaceGuard>0) { - #deeper { - .mixin() { - guarded: namespace; - } - } -} -#guarded() when (@namespaceGuard>0) { - #deeper { - .mixin() { - silent: namespace; - } - } -} -#guarded(@variable) when (@namespaceGuard>0) { - #deeper { - .mixin() { - should: not match because namespace argument; - } - } -} -#guarded(@variable: default) when (@namespaceGuard>0) { - #deeper { - .mixin() { - guarded: with default; - } - } -} -#guarded when (@namespaceGuard<0) { - #deeper { - .mixin() { - should: not match because namespace guard; - } - } -} -#guarded-caller { - #guarded > #deeper > .mixin(); -} -#top { - #deeper when (@namespaceGuard<0) { - .mixin(@a) { - should: not match because namespace guard; - } - } - #deeper() when (@namespaceGuard>0) { - .mixin(@a) { - should: match @a; - } - } -} -#guarded-deeper { - #top > #deeper > .mixin(1); -} - -// namespaced & guarded mixin in root -// outputs nothing but should pass: - -@guarded-mixin-for-root: true; -#ns { - .guarded-mixin-for-root() when (@guarded-mixin-for-root) {} -} -#ns > .guarded-mixin-for-root(); -// various combinations of nested or, and, parenthesis and negation -.parenthesisNot(@value) when ((((@value)))) { - parenthesisNot: just-value; -} -.parenthesisNot(@value) when (((not(@value)))) { - parenthesisNot: negated once inside; -} -.parenthesisNot(@value) when not((((@value)))) { - parenthesisNot: negated once outside; -} -.parenthesisNot(@value) when ((not((@value)))) { - parenthesisNot: negated once middle; -} -.parenthesisNot(@value) when not(((not(@value)))) { - parenthesisNot: negated twice 1; -} -.parenthesisNot(@value) when (not((not(@value)))) { - parenthesisNot: negated twice 2; -} -.parenthesisNot(@value) when ((not(not(@value)))) { - parenthesisNot: negated twice 3; -} -.parenthesisNot (...) when (default()) { - parenthesisNot: none matched; -} - -#parenthesisNot-true { - .parenthesisNot(true); -} -#parenthesisNot-false { - .parenthesisNot(false); -} - -.orderOfEvaluation(@a1, @a2, @a3) when ((@a1) and (@a2) or (@a3)) { - no-parenthesis: evaluated true 1a; -} -.orderOfEvaluation(@a1, @a2, @a3) when ((@a3) or (@a1) and (@a2)) { - no-parenthesis: evaluated true 1b; -} -.orderOfEvaluation(@a1, @a2, @a3) when ((@a1) and ((@a2) or (@a3))) { - no-parenthesis: evaluated true 1c; -} -.orderOfEvaluation(@a1, @a2, @a3) when (@a3), (@a1) and (@a2) { - no-parenthesis: evaluated true 1d; -} -.orderOfEvaluation(@a1, @a2, @a3) when (((@a3) or (@a1)) and (@a2)) { - no-parenthesis: evaluated true 1e; -} -.orderOfEvaluation(@a1, @a2, @a3) when ((@a1) and (@a2) or not (@a3)) { - no-parenthesis: evaluated true 2a; -} -.orderOfEvaluation(@a1, @a2, @a3) when (not (@a3) or (@a1) and (@a2)) { - no-parenthesis: evaluated true 2b; -} -.orderOfEvaluation(@a1, @a2, @a3) when not (@a3), (@a1) and (@a2) { - no-parenthesis: evaluated true 2c; -} -.orderOfEvaluation(@a1, @a2, @a3) when (not (@a1) and (@a2) or (@a3)) { - no-parenthesis: evaluated true 3; -} -.orderOfEvaluation(@a1, @a2, @a3) when ((((@a1) and (@a2) or (@a3)))) { - no-parenthesis: evaluated true 4; -} -.orderOfEvaluation(@a1, @a2, @a3) when (((@a1) and (@a2)) or (@a3)) { - with-parenthesis: evaluated true; -} -.orderOfEvaluation(...) when (default()) { - orderOfEvaluation: evaluated false; -} -#orderOfEvaluation-false-false-true { - .orderOfEvaluation(false, false, true); -} -#orderOfEvaluation-false-false-false { - .orderOfEvaluation(false, false, false); -} -#orderOfEvaluation-true-true-false { - .orderOfEvaluation(true, true, false); -} diff --git a/node_modules/less/test/less/mixins-important.less b/node_modules/less/test/less/mixins-important.less deleted file mode 100644 index 9f60eff..0000000 --- a/node_modules/less/test/less/mixins-important.less +++ /dev/null @@ -1,53 +0,0 @@ -.submixin(@a) { - border-width: @a; -} -.mixin (9) { - border: 9 !important; -} -.mixin (@a: 0) { - border: @a; - boxer: @a; - .inner { - test: @a; - } - // comment - .submixin(@a); -} - -.class { - .mixin(1); - .mixin(2) !important; - .mixin(3); - .mixin(4) !important; - .mixin(5); - .mixin !important; - .mixin(9); -} -.size(@aaa: auto) { - .set-width(@aaa) { - width: @aaa; - } - .set-width(@aaa); -} -.when-calling-nested-issue-2394 { - .size() !important; -} -.when-calling-nested-with-param-issue-2394 { - .size(10px) !important; -} -.testMixin-2421 () { - .topCheck-2421 () { - .nestedCheck-2421() { - margin: 5px; - } - .nestedCheck-2421(); - } - .topCheck-2421(); -} -.class1-2421 { - .testMixin-2421() !important; -} -.class2-2421 { - .testMixin-2421(); -} - diff --git a/node_modules/less/test/less/mixins-interpolated.less b/node_modules/less/test/less/mixins-interpolated.less deleted file mode 100644 index b79fa89..0000000 --- a/node_modules/less/test/less/mixins-interpolated.less +++ /dev/null @@ -1,75 +0,0 @@ - -@a0: 123; -@a1: foo; -@a2: ~".foo"; -@a4: ~"#foo"; - -.@{a0} { - a: 0; -} - -.@{a1} { - a: 1; -} - -@{a2} { - a: 2; -} - -#@{a1} { - a: 3; -} - -@{a4} { - a: 4; -} - -mi-test-a { - .123; - .foo; - #foo; -} - -.b .bb { - &.@{a1}-xxx .yyy-@{a1}@{a4} { - & @{a2}.bbb { - b: 1; - } - } -} - -mi-test-b { - .b.bb.foo-xxx.yyy-foo#foo.foo.bbb; -} - -@c1: @a1; -@c2: bar; -@c3: baz; - -#@{c1}-foo { - > .@{c2} { - .@{c3} { - c: c; - } - } -} - -mi-test-c { - &-1 {#foo-foo;} - &-2 {#foo-foo > .bar;} - &-3 {#foo-foo > .bar.baz;} -} - -.Person(@name, @gender_) { - .@{name} { - @gender: @gender_; - .sayGender() { - gender: @gender; - } - } -} - -mi-test-d { - .Person(person, "Male"); - .person.sayGender(); -} diff --git a/node_modules/less/test/less/mixins-named-args.less b/node_modules/less/test/less/mixins-named-args.less deleted file mode 100644 index 196f2ac..0000000 --- a/node_modules/less/test/less/mixins-named-args.less +++ /dev/null @@ -1,36 +0,0 @@ -.mixin (@a: 1px, @b: 50%) { - width: (@a * 5); - height: (@b - 1%); - args: @arguments; -} -.mixin (@a: 1px, @b: 50%) when (@b > 75%){ - text-align: center; -} - -.named-arg { - color: blue; - .mixin(@b: 100%); -} - -.class { - @var: 20%; - .mixin(@b: @var); -} - -.all-args-wrong-args { - .mixin(@b: 10%, @a: 2px); -} - -.mixin2 (@a: 1px, @b: 50%, @c: 50) { - width: (@a * 5); - height: (@b - 1%); - color: (#000000 + @c); -} - -.named-args2 { - .mixin2(3px, @c: 100); -} - -.named-args3 { - .mixin2(@b: 30%, @c: #123456); -} \ No newline at end of file diff --git a/node_modules/less/test/less/mixins-nested.less b/node_modules/less/test/less/mixins-nested.less deleted file mode 100644 index cc741a1..0000000 --- a/node_modules/less/test/less/mixins-nested.less +++ /dev/null @@ -1,22 +0,0 @@ -.mix-inner (@var) { - border-width: @var; -} - -.mix (@a: 10) { - .inner { - height: (@a * 10); - - .innest { - width: @a; - .mix-inner((@a * 2)); - } - } -} - -.class { - .mix(30); -} - -.class2 { - .mix(60); -} diff --git a/node_modules/less/test/less/mixins-pattern.less b/node_modules/less/test/less/mixins-pattern.less deleted file mode 100644 index e769b0c..0000000 --- a/node_modules/less/test/less/mixins-pattern.less +++ /dev/null @@ -1,102 +0,0 @@ -.mixin (...) { - variadic: true; -} -.mixin (@a...) { - named-variadic: true; -} -.mixin () { - zero: 0; -} -.mixin (@a: 1px) { - one: 1; -} -.mixin (@a) { - one-req: 1; -} -.mixin (@a: 1px, @b: 2px) { - two: 2; -} - -.mixin (@a, @b, @c) { - three-req: 3; -} - -.mixin (@a: 1px, @b: 2px, @c: 3px) { - three: 3; -} - -.zero { - .mixin(); -} - -.one { - .mixin(1); -} - -.two { - .mixin(1, 2); -} - -.three { - .mixin(1, 2, 3); -} - -// - -.mixout ('left') { - left: 1; -} - -.mixout ('right') { - right: 1; -} - -.left { - .mixout('left'); -} -.right { - .mixout('right'); -} - -// - -.border (@side, @width) { - color: black; - .border-side(@side, @width); -} -.border-side (left, @w) { - border-left: @w; -} -.border-side (right, @w) { - border-right: @w; -} - -.border-right { - .border(right, 4px); -} -.border-left { - .border(left, 4px); -} - -// - - -.border-radius (@r) { - both: (@r * 10); -} -.border-radius (@r, left) { - left: @r; -} -.border-radius (@r, right) { - right: @r; -} - -.only-right { - .border-radius(33, right); -} -.only-left { - .border-radius(33, left); -} -.left-right { - .border-radius(33); -} diff --git a/node_modules/less/test/less/mixins.less b/node_modules/less/test/less/mixins.less deleted file mode 100644 index 15d511f..0000000 --- a/node_modules/less/test/less/mixins.less +++ /dev/null @@ -1,145 +0,0 @@ -.mixin { border: 1px solid black; } -.mixout { border-color: orange; } -.borders { border-style: dashed; } -.mixin > * { border: do not match me; } - -#namespace { - .borders { - border-style: dotted; - } - .biohazard { - content: "death"; - .man { - color: transparent; - } - } -} -#theme { - > .mixin { - background-color: grey; - } -} -#container { - color: black; - .mixin; - .mixout; - #theme > .mixin; -} - -#header { - .milk { - color: white; - .mixin; - #theme > .mixin; - } - #cookie { - .chips { - #namespace .borders; - .calories { - #container; - } - } - .borders; - } -} -.secure-zone { #namespace .biohazard .man; } -.direct { - #namespace > .borders; -} - -.bo, .bar { - width: 100%; -} -.bo { - border: 1px; -} -.ar.bo.ca { - color: black; -} -.jo.ki { - background: none; -} -.amp { - &.support { - color: orange; - .higher { - top: 0px; - } - &.deeper { - height: auto; - } - } -} -.extended { - .bo; - .jo.ki; - .amp.support; - .amp.support.higher; - .amp.support.deeper; -} -.do .re .mi .fa { - .sol .la { - .si { - color: cyan; - } - } -} -.mutli-selector-parents { - .do.re.mi.fa.sol.la.si; -} -.foo .bar { - .bar; -} -.has_parents() { - & .underParents { - color: red; - } -} -.has_parents(); -.parent { - .has_parents(); -} -.margin_between(@above, @below) { - * + & { margin-top: @above; } - legend + & { margin-top: 0; } - & + * { margin-top: @below; } -} -h1 { .margin_between(25px, 10px); } -h2 { .margin_between(20px, 8px); } -h3 { .margin_between(15px, 5px); } - -.mixin_def(@url, @position){ - background-image: @url; - background-position: @position; -} -.error{ - @s: "/"; - .mixin_def( "@{s}a.png", center center); -} -.recursion() { - color: black; -} -.test-rec { - .recursion { - .recursion(); - } -} -.paddingFloat(@padding) { padding-left: @padding; } - -.button { - .paddingFloat(((10px + 12) * 2)); - - &.large { .paddingFloat(((10em * 2) * 2)); } -} -.clearfix() { - // ... -} -.clearfix { - .clearfix(); -} -.clearfix { - .clearfix(); -} -.foo { - .clearfix(); -} \ No newline at end of file diff --git a/node_modules/less/test/less/modifyVars/extended.json b/node_modules/less/test/less/modifyVars/extended.json deleted file mode 100644 index 6bd2a48..0000000 --- a/node_modules/less/test/less/modifyVars/extended.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "the-border": "1px", - "base-color": "#111", - "red": "#842210" -} \ No newline at end of file diff --git a/node_modules/less/test/less/modifyVars/extended.less b/node_modules/less/test/less/modifyVars/extended.less deleted file mode 100644 index 0badc67..0000000 --- a/node_modules/less/test/less/modifyVars/extended.less +++ /dev/null @@ -1,11 +0,0 @@ -#header { - color: (@base-color * 3); - border-left: @the-border; - border-right: (@the-border * 2); -} -#footer { - color: (@base-color + #003300); - border-color: @red; -} -@red: blue; // var is overridden by the modifyVars -//@base-color: green; \ No newline at end of file diff --git a/node_modules/less/test/less/nested-gradient-with-svg-gradient/mixin-consumer.less b/node_modules/less/test/less/nested-gradient-with-svg-gradient/mixin-consumer.less deleted file mode 100644 index 12bba2e..0000000 --- a/node_modules/less/test/less/nested-gradient-with-svg-gradient/mixin-consumer.less +++ /dev/null @@ -1,5 +0,0 @@ -@import "svg-gradient-mixin.less"; - -.gray-gradient { - .gradient-mixin(#999); -} diff --git a/node_modules/less/test/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less b/node_modules/less/test/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less deleted file mode 100644 index fad96ea..0000000 --- a/node_modules/less/test/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +++ /dev/null @@ -1,15 +0,0 @@ -.gradient-mixin(@color) { - background: svg-gradient(to bottom, - fade(@color, 0%) 0%, - fade(@color, 5%) 60%, - fade(@color, 10%) 70%, - fade(@color, 15%) 73%, - fade(@color, 20%) 75%, - fade(@color, 25%) 80%, - fade(@color, 30%) 85%, - fade(@color, 35%) 88%, - fade(@color, 40%) 90%, - fade(@color, 45%) 95%, - fade(@color, 50%) 100% - ); -} diff --git a/node_modules/less/test/less/no-js-errors/no-js-errors.less b/node_modules/less/test/less/no-js-errors/no-js-errors.less deleted file mode 100644 index 15ef8a4..0000000 --- a/node_modules/less/test/less/no-js-errors/no-js-errors.less +++ /dev/null @@ -1,3 +0,0 @@ -.a { - a: `1 + 1`; -} \ No newline at end of file diff --git a/node_modules/less/test/less/no-js-errors/no-js-errors.txt b/node_modules/less/test/less/no-js-errors/no-js-errors.txt deleted file mode 100644 index d81dd2b..0000000 --- a/node_modules/less/test/less/no-js-errors/no-js-errors.txt +++ /dev/null @@ -1,4 +0,0 @@ -SyntaxError: You are using JavaScript, which has been disabled. in {path}no-js-errors.less on line 2, column 6: -1 .a { -2 a: `1 + 1`; -3 } diff --git a/node_modules/less/test/less/no-output.less b/node_modules/less/test/less/no-output.less deleted file mode 100644 index b4e6a49..0000000 --- a/node_modules/less/test/less/no-output.less +++ /dev/null @@ -1,2 +0,0 @@ -.mixin() { -} \ No newline at end of file diff --git a/node_modules/less/test/less/no-strict-math/mixins-guards.less b/node_modules/less/test/less/no-strict-math/mixins-guards.less deleted file mode 100644 index aa2a005..0000000 --- a/node_modules/less/test/less/no-strict-math/mixins-guards.less +++ /dev/null @@ -1,25 +0,0 @@ -// https://github.com/less/less.js/issues/2798 -.test-2798 when ((8+4) < 13) { - regression: fixed; -} -.test-2798 when ((8+6) < 13) { - regression: should not be visible; -} -.conditions-parser-1 when (8+4 < 13) { - only-atomic: ok; -} -.conditions-parser-1 when (8+6 < 13) { - only-atomic: should not be visible; -} -.conditions-parser-2 when (8+(5-1) < 13) { - only-atomic-with-nested-parenthesis: ok; -} -.conditions-parser-2 when (8+(15-1) < 13) { - only-atomic-with-nested-parenthesis: should not be visible; -} -.conditions-parser-3 when (8 < (13+1)) { - only-atomic-nested-parenthesis-on-right: ok; -} -.conditions-parser-3 when (8 < (3+1)) { - only-atomic-nested-parenthesis-on-right: should not be visible; -} diff --git a/node_modules/less/test/less/no-strict-math/no-sm-operations.less b/node_modules/less/test/less/no-strict-math/no-sm-operations.less deleted file mode 100644 index e79d050..0000000 --- a/node_modules/less/test/less/no-strict-math/no-sm-operations.less +++ /dev/null @@ -1,13 +0,0 @@ -.named-colors-in-expressions { - color-0: 0 -red; - color-1: 1 - red; - color-2: red * 2; - color-3: 2 * red; - @3: -red; - &-bar@{3} {x: y} - @color: red; - &-bar@{color} {a: a}; - background-color: blue-2; - color: green-black; - animation: blue-change 5s infinite; -} diff --git a/node_modules/less/test/less/operations.less b/node_modules/less/test/less/operations.less deleted file mode 100644 index ef3a5ca..0000000 --- a/node_modules/less/test/less/operations.less +++ /dev/null @@ -1,63 +0,0 @@ -#operations { - color: (#110000 + #000011 + #001100); // #111111 - color-2: (yellow - #070707); - height: (10px / 2px + 6px - 1px * 2); // 9px - width: (2 * 4 - 5em); // 3em - .spacing { - height: (10px / 2px+6px-1px*2); - width: (2 * 4-5em); - } - subtraction: (20 - 10 - 5 - 5); // 0 - division: (20 / 5 / 4); // 1 -} - -@x: 4; -@y: 12em; - -.with-variables { - height: (@x + @y); // 16em - width: (12 + @y); // 24em - size: (5cm - @x); // 1cm -} - -.with-functions { - color: (rgb(200, 200, 200) / 2); - color: (2 * hsl(0, 50%, 50%)); - color: (rgb(10, 10, 10) + hsl(0, 50%, 50%)); -} - -@z: -2; - -.negative { - height: (2px + @z); // 0px - width: (2px - @z); // 4px -} - -.shorthands { - padding: -1px 2px 0 -4px; // -} - -.rem-dimensions { - font-size: (20rem / 5 + 1.5rem); // 5.5rem -} - -.colors { - color: #123; // #112233 - border-color: (#234 + #111111); // #334455 - background-color: (#222222 - #fff); // #000000 - .other { - color: (2 * #111); // #222222 - border-color: (#333333 / 3 + #111); // #222222 - } -} - -.negations { - @var: 4px; - variable: (-@var); // 4 - variable1: (-@var + @var); // 0 - variable2: (@var + -@var); // 0 - variable3: (@var - -@var); // 8 - variable4: (-@var - -@var); // 0 - paren: (-(@var)); // -4px - paren2: (-(2 + 2) * -@var); // 16 -} diff --git a/node_modules/less/test/less/parens.less b/node_modules/less/test/less/parens.less deleted file mode 100644 index eeef344..0000000 --- a/node_modules/less/test/less/parens.less +++ /dev/null @@ -1,45 +0,0 @@ -.parens { - @var: 1px; - border: (@var * 2) solid black; - margin: (@var * 1) (@var + 2) (4 * 4) 3; - width: (6 * 6); - padding: 2px (6 * 6px); -} - -.more-parens { - @var: (2 * 2); - padding: (2 * @var) 4 4 (@var * 1px); - width-all: ((@var * @var) * 6); - width-first: ((@var * @var)) * 6; - width-keep: (@var * @var) * 6; - height-keep: (7 * 7) + (8 * 8); - height-all: ((7 * 7) + (8 * 8)); - height-parts: ((7 * 7)) + ((8 * 8)); - margin-keep: (4 * (5 + 5) / 2) - (@var * 2); - margin-parts: ((4 * (5 + 5) / 2)) - ((@var * 2)); - margin-all: ((4 * (5 + 5) / 2) + (-(@var * 2))); - border-radius-keep: 4px * (1 + 1) / @var + 3px; - border-radius-parts: ((4px * (1 + 1))) / ((@var + 3px)); - border-radius-all: (4px * (1 + 1) / @var + 3px); - //margin: (6 * 6)px; -} - -.negative { - @var: 1; - neg-var: -@var; // -1 ? - neg-var-paren: -(@var); // -(1) ? -} - -.nested-parens { - width: 2 * (4 * (2 + (1 + 6))) - 1; - height: ((2 + 3) * (2 + 3) / (9 - 4)) + 1; -} - -.mixed-units { - margin: 2px 4em 1 5pc; - padding: (2px + 4px) 1em 2px 2; -} - -.test-false-negatives { - a: ~"("; -} diff --git a/node_modules/less/test/less/plugin.less b/node_modules/less/test/less/plugin.less deleted file mode 100644 index 66775ea..0000000 --- a/node_modules/less/test/less/plugin.less +++ /dev/null @@ -1,93 +0,0 @@ -// importing plugin globally -@plugin "./plugin/plugin-global"; - -// transitively include plugins from importing another sheet -@import "./plugin/plugin-transitive"; - - -// `test-global` function should be reachable -// `test-local` function should not be reachable -// `test-shadow` function should return global version -.class { - trans : test-transitive(); - global : test-global(); - local : test-local(); - shadow : test-shadow(); - - // `test-global` function should propagate and be reachable - // `test-local` function should be reachable - // `test-shadow` function should return local version, shadowing global version - .local { - @plugin "./plugin/plugin-local"; - global : test-global(); - local : test-local(); - shadow : test-shadow(); - } -} - -// calling a mixin or detached ruleset should not bubble local plugins -// imported inside either into the parent scope. -.mixin() { - @plugin "./plugin/plugin-local"; - mixin-local : test-local(); - mixin-global : test-global(); - mixin-shadow : test-shadow(); -} -@ruleset : { - @plugin "./plugin/plugin-local"; - ruleset-local : test-local(); - ruleset-global : test-global(); - ruleset-shadow : test-shadow(); -}; -#ns { - @plugin "./plugin/plugin-local"; - .mixin() { - ns-mixin-global : test-global(); - ns-mixin-local : test-local(); - ns-mixin-shadow : test-shadow(); - } -} -.class { - #ns > .mixin(); - .mixin(); - @ruleset(); - class-local : test-local(); -} - - -// `test-global` function should propagate into directive scope -@media screen { - .test { - result : test-global(); - } -} -@font-face { - result : test-global(); -} - -// `test-global` function should propagate into nested directive scopes -@media screen and (min-width:100px) { - @media (max-width:400px) { - .test { - result : test-global(); - } - } -} - -.test { - @media screen { - @plugin "./plugin/plugin-local"; - result : test-local(); - } -} - -@plugin "./plugin/plugin-tree-nodes"; -@ruleset2: test-detached-ruleset(); -.root { - @ruleset2(); -} - -test-directive("@charset"; '"utf-8"'); -test-directive("@arbitrary"; "value after ()"); - - diff --git a/node_modules/less/test/less/plugin/plugin-global.js b/node_modules/less/test/less/plugin/plugin-global.js deleted file mode 100644 index adc828c..0000000 --- a/node_modules/less/test/less/plugin/plugin-global.js +++ /dev/null @@ -1,9 +0,0 @@ - -functions.addMultiple({ - "test-shadow" : function() { - return new tree.Anonymous( "global" ); - }, - "test-global" : function() { - return new tree.Anonymous( "global" ); - } -}); diff --git a/node_modules/less/test/less/plugin/plugin-local.js b/node_modules/less/test/less/plugin/plugin-local.js deleted file mode 100644 index b54ca97..0000000 --- a/node_modules/less/test/less/plugin/plugin-local.js +++ /dev/null @@ -1,8 +0,0 @@ -functions.addMultiple({ - "test-shadow" : function() { - return new tree.Anonymous( "local" ); - }, - "test-local" : function() { - return new tree.Anonymous( "local" ); - } -}); diff --git a/node_modules/less/test/less/plugin/plugin-transitive.js b/node_modules/less/test/less/plugin/plugin-transitive.js deleted file mode 100644 index 1da1864..0000000 --- a/node_modules/less/test/less/plugin/plugin-transitive.js +++ /dev/null @@ -1,5 +0,0 @@ -functions.addMultiple({ - "test-transitive" : function() { - return new tree.Anonymous( "transitive" ); - } -}); diff --git a/node_modules/less/test/less/plugin/plugin-transitive.less b/node_modules/less/test/less/plugin/plugin-transitive.less deleted file mode 100644 index 8e4ca00..0000000 --- a/node_modules/less/test/less/plugin/plugin-transitive.less +++ /dev/null @@ -1,5 +0,0 @@ -@plugin "plugin-transitive"; - -.other { - trans : test-transitive(); -} \ No newline at end of file diff --git a/node_modules/less/test/less/plugin/plugin-tree-nodes.js b/node_modules/less/test/less/plugin/plugin-tree-nodes.js deleted file mode 100644 index 442352d..0000000 --- a/node_modules/less/test/less/plugin/plugin-tree-nodes.js +++ /dev/null @@ -1,80 +0,0 @@ -functions.addMultiple({ - - "test-comment": function() { - return new tree.Combinator(' '); - }, - "test-directive": function(arg1, arg2) { - return new tree.Directive(arg1.value, new tree.Anonymous(arg2.value)); - }, - "test-extend": function() { - //TODO - }, - "test-import": function() { - //TODO - }, - "test-media": function() { - //TODO - }, - "test-mixin-call": function() { - //TODO - }, - "test-mixin-definition": function() { - //TODO - }, - "test-ruleset-call": function() { - return new tree.Combinator(' '); - }, - // Functions must return something. Must 'return true' if they produce no output. - "test-undefined": function() { }, - - // These cause root errors - "test-alpha": function() { - return new tree.Alpha(30); - }, - "test-assignment": function() { - return new tree.Assignment("bird", "robin"); - }, - "test-attribute": function() { - return new tree.Attribute("foo", "=", "bar"); - }, - "test-call": function() { - return new tree.Call("foo"); - }, - "test-color": function() { - return new tree.Color([50, 50, 50]); - }, - "test-condition": function() { - return new tree.Condition('<', new tree.Value([0]), new tree.Value([1])); - }, - "test-detached-ruleset" : function() { - var rule = new tree.Rule('prop', new tree.Anonymous('value')); - return new tree.DetachedRuleset(new tree.Ruleset("", [ rule ])); - }, - "test-dimension": function() { - return new tree.Dimension(1, 'px'); - }, - "test-element": function() { - return new tree.Element('+', 'a'); - }, - "test-expression": function() { - return new tree.Expression([1, 2, 3]); - }, - "test-keyword": function() { - return new tree.Keyword('foo'); - }, - "test-operation": function() { - return new tree.Operation('+', [1, 2]); - }, - "test-quoted": function() { - return new tree.Quoted('"', 'foo'); - }, - "test-selector": function() { - return new tree.Selector([new tree.Element('a')]); - }, - "test-url": function() { - return new tree.URL('http://google.com'); - }, - "test-value": function() { - return new tree.Value([1]); - } -}); \ No newline at end of file diff --git a/node_modules/less/test/less/postProcessorPlugin/postProcessor.less b/node_modules/less/test/less/postProcessorPlugin/postProcessor.less deleted file mode 100644 index 0d4c030..0000000 --- a/node_modules/less/test/less/postProcessorPlugin/postProcessor.less +++ /dev/null @@ -1,4 +0,0 @@ -@color: white; -.test { - color: @color; -} diff --git a/node_modules/less/test/less/preProcessorPlugin/preProcessor.less b/node_modules/less/test/less/preProcessorPlugin/preProcessor.less deleted file mode 100644 index 50183ea..0000000 --- a/node_modules/less/test/less/preProcessorPlugin/preProcessor.less +++ /dev/null @@ -1,3 +0,0 @@ -.test { - color: @color; -} diff --git a/node_modules/less/test/less/property-name-interp.less b/node_modules/less/test/less/property-name-interp.less deleted file mode 100644 index ad1dd41..0000000 --- a/node_modules/less/test/less/property-name-interp.less +++ /dev/null @@ -1,56 +0,0 @@ - -pi-test { - @prefix: ufo-; - @a: border; - @bb: top; - @c_c: left; - @d-d4: radius; - @-: -; - - @var: ~'@not-variable'; - - @{a}: 0; - @{var}: @var; - @{prefix}width: 50%; - *-z-@{a} :1px dashed blue; - -www-@{a}-@{bb}: 2px; - @{d-d4}-is-not-a-@{a}:true; - @{a}-@{bb}-@{c_c}-@{d-d4} : 2em; - @{a}@{-}@{bb}@{-}red@{-}@{d-d4}-: 3pt; - - .mixin(mixer); - .merge(ish, base); -} - -@global: global; - -.mixin(@arg) { - @local: local; - @{global}-@{local}-@{arg}-property: strong; -} - -.merge(@p, @v) { - &-merge { - @prefix: pre; - @suffix: ish; - @{prefix}-property-ish+ :high; - pre-property-@{suffix} +: middle; - @{prefix}-property-@{suffix}+: low; - @{prefix}-property-@{p} + : @v; - - @subterfuge: ~'+'; - pre-property-ish@{subterfuge}: nice try dude; - } -} - -pi-indirect-vars { - @{p}: @p; - @p: @@a; - @a: b; - @b: auto; -} - -pi-complex-values { - @{p}@{p}: none; - @p: (1 + 2px) fadeout(#ff0, 50%), pi() /* foo */; -} diff --git a/node_modules/less/test/less/rulesets.less b/node_modules/less/test/less/rulesets.less deleted file mode 100644 index e81192d..0000000 --- a/node_modules/less/test/less/rulesets.less +++ /dev/null @@ -1,30 +0,0 @@ -#first > .one { - > #second .two > #deux { - width: 50%; - #third { - &:focus { - color: black; - #fifth { - > #sixth { - .seventh #eighth { - + #ninth { - color: purple; - } - } - } - } - } - height: 100%; - } - #fourth, #five, #six { - color: #110000; - .seven, .eight > #nine { - border: 1px solid black; - } - #ten { - color: red; - } - } - } - font-size: 2em; -} diff --git a/node_modules/less/test/less/scope.less b/node_modules/less/test/less/scope.less deleted file mode 100644 index 13d01a1..0000000 --- a/node_modules/less/test/less/scope.less +++ /dev/null @@ -1,104 +0,0 @@ -@x: red; -@x: blue; -@z: transparent; -@mix: none; - -.mixin { - @mix: #989; -} -@mix: blue; -.tiny-scope { - color: @mix; // #989 - .mixin; -} - -.scope1 { - @y: orange; - @z: black; - color: @x; // blue - border-color: @z; // black - .hidden { - @x: #131313; - } - .scope2 { - @y: red; - color: @x; // blue - .scope3 { - @local: white; - color: @y; // red - border-color: @z; // black - background-color: @local; // white - } - } -} - -#namespace { - .scoped_mixin() { - @local-will-be-made-global: green; - .scope { - scoped-val: @local-will-be-made-global; - } - } -} - -#namespace > .scoped_mixin(); - -.setHeight(@h) { @height: 1024px; } -.useHeightInMixinCall(@h) { .useHeightInMixinCall { mixin-height: @h; } } -@mainHeight: 50%; -.setHeight(@mainHeight); -.heightIsSet { height: @height; } -.useHeightInMixinCall(@height); - -.importRuleset() { - .imported { - exists: true; - } -} -.importRuleset(); -.testImported { - .imported; -} - -@parameterDefault: 'top level'; -@anotherVariable: 'top level'; -//mixin uses top-level variables -.mixinNoParam(@parameter: @parameterDefault) when (@parameter = 'top level') { - default: @parameter; - scope: @anotherVariable; - sub-scope-only: @subScopeOnly; -} - -#allAreUsedHere { - //redefine top-level variables in different scope - @parameterDefault: 'inside'; - @anotherVariable: 'inside'; - @subScopeOnly: 'inside'; - //use the mixin - .mixinNoParam(); -} -#parentSelectorScope { - @col: white; - & { - @col: black; - } - prop: @col; - & { - @col: black; - } -} -.test-empty-mixin() { -} -#parentSelectorScopeMixins { - & { - .test-empty-mixin() { - should: never seee 1; - } - } - .test-empty-mixin(); - & { - .test-empty-mixin() { - should: never seee 2; - } - } -} \ No newline at end of file diff --git a/node_modules/less/test/less/selectors.less b/node_modules/less/test/less/selectors.less deleted file mode 100644 index 45b2e9a..0000000 --- a/node_modules/less/test/less/selectors.less +++ /dev/null @@ -1,184 +0,0 @@ -h1, h2, h3 { - a, p { - &:hover { - color: red; - } - } -} - -#all { color: blue; } -#the { color: blue; } -#same { color: blue; } - -ul, li, div, q, blockquote, textarea { - margin: 0; -} - -td { - margin: 0; - padding: 0; -} - -td, input { - line-height: 1em; -} - -a { - color: red; - - &:hover { color: blue; } - - div & { color: green; } - - p & span { color: yellow; } -} - -.foo { - .bar, .baz { - & .qux { - display: block; - } - .qux & { - display: inline; - } - .qux& { - display: inline-block; - } - .qux & .biz { - display: none; - } - } -} - -.b { - &.c { - .a& { - color: red; - } - } -} - -.b { - .c & { - &.a { - color: red; - } - } -} - -.p { - .foo &.bar { - color: red; - } -} - -.p { - .foo&.bar { - color: red; - } -} - -.foo { - .foo + & { - background: amber; - } - & + & { - background: amber; - } -} - -.foo, .bar { - & + & { - background: amber; - } -} - -.foo, .bar { - a, b { - & > & { - background: amber; - } - } -} - -.other ::fnord { color: red } -.other::fnord { color: red } -.other { - ::bnord {color: red } - &::bnord {color: red } -} -// selector interpolation -@theme: blood; -@selector: ~".@{theme}"; -@{selector} { - color:red; -} -@{selector}red { - color: green; -} -.red { - #@{theme}.@{theme}&.black:@{theme} { - color:black; - } -} -@num: 3; -:nth-child(@{num}) { - selector: interpolated; -} -.test { - &:nth-child(@{num}) { - selector: interpolated; - } - &:nth-child(odd):not(:nth-child(3)) { - color: #ff0000; - } - } -[prop], -[prop=10%], -[prop="value@{num}"], -[prop*="val@{num}"], -[|prop~="val@{num}"], -[*|prop$="val@{num}"], -[ns|prop^="val@{num}"], -[@{num}^="val@{num}"], -[@{num}=@{num}], -[@{num}] { - attributes: yes; -} - -/* -Large comment means chunk will be emitted after } which means chunk will begin with whitespace... -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank blank -*/ -@{selector} { - color: red; -} -.only-nested { - .level2 { - .foo:not(.tst&:hover) { - test: only-nested; - } - } -} -.nestend-and-non-nested { - .foo&:not(.tst&:hover) { - test: nestend-and-non-nested; - } -} -.selector:not(&:hover) { - test: global scope; -} -// https://github.com/less/less.js/issues/2206 -.extend-this { - content: '\2661'; -} -.first-level { - .second-level { - .active&:extend(.extend-this) { } - &.active2:extend(.extend-this) { } - } -} diff --git a/node_modules/less/test/less/sourcemaps-empty/empty.less b/node_modules/less/test/less/sourcemaps-empty/empty.less deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/less/test/less/sourcemaps-empty/var-defs.less b/node_modules/less/test/less/sourcemaps-empty/var-defs.less deleted file mode 100644 index 1946541..0000000 --- a/node_modules/less/test/less/sourcemaps-empty/var-defs.less +++ /dev/null @@ -1 +0,0 @@ -@test-var: 'something'; \ No newline at end of file diff --git a/node_modules/less/test/less/sourcemaps/basic.json b/node_modules/less/test/less/sourcemaps/basic.json deleted file mode 100644 index 2bccdc5..0000000 --- a/node_modules/less/test/less/sourcemaps/basic.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "my-color": "red" -} \ No newline at end of file diff --git a/node_modules/less/test/less/sourcemaps/basic.less b/node_modules/less/test/less/sourcemaps/basic.less deleted file mode 100644 index 4ee8b4f..0000000 --- a/node_modules/less/test/less/sourcemaps/basic.less +++ /dev/null @@ -1,27 +0,0 @@ -@var: black; - -.a() { - color: red; -} - -.b { - color: green; - .a(); - color: blue; - background: @var; -} - -.a, .b { - background: green; - .c, .d { - background: gray; - & + & { - color: red; - } - } -} - -.extend:extend(.a all) { - color: pink; -} -@import (inline) "imported.css"; \ No newline at end of file diff --git a/node_modules/less/test/less/sourcemaps/imported.css b/node_modules/less/test/less/sourcemaps/imported.css deleted file mode 100644 index 2ee35f0..0000000 --- a/node_modules/less/test/less/sourcemaps/imported.css +++ /dev/null @@ -1,7 +0,0 @@ -/*comments*/ -.unused-css { - color: white; -} -.imported { - color: black; -} \ No newline at end of file diff --git a/node_modules/less/test/less/static-urls/urls.less b/node_modules/less/test/less/static-urls/urls.less deleted file mode 100644 index b0c7de0..0000000 --- a/node_modules/less/test/less/static-urls/urls.less +++ /dev/null @@ -1,33 +0,0 @@ -@font-face { - src: url("/fonts/garamond-pro.ttf"); - src: local(Futura-Medium), - url(fonts.svg#MyGeometricModern) format("svg"); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px; -} -#misc { - background-image: url(images/image.jpg); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700); -} - -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} - -.comma-delimited { - background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg); -} -.values { - @a: 'Trebuchet'; - url: url(@a); -} - -@import "../import/import-and-relative-paths-test"; diff --git a/node_modules/less/test/less/strict-units/strict-units.less b/node_modules/less/test/less/strict-units/strict-units.less deleted file mode 100644 index a7d0bb0..0000000 --- a/node_modules/less/test/less/strict-units/strict-units.less +++ /dev/null @@ -1,4 +0,0 @@ -.units { - cancels-to-nothing: (1px / 1px); - cancels: ((((10px / 5em) / 1px) * 3em) * 1px); -} diff --git a/node_modules/less/test/less/strings.less b/node_modules/less/test/less/strings.less deleted file mode 100644 index 4374605..0000000 --- a/node_modules/less/test/less/strings.less +++ /dev/null @@ -1,73 +0,0 @@ -#strings { - background-image: url("http://son-of-a-banana.com"); - quotes: "~" "~"; - content: "#*%:&^,)!.(~*})"; - empty: ""; - brackets: "{" "}"; - escapes: "\"hello\" \\world"; - escapes2: "\"llo"; -} -#comments { - content: "/* hello */ // not-so-secret"; -} -#single-quote { - quotes: "'" "'"; - content: '""#!&""'; - empty: ''; - semi-colon: ';'; -} -#escaped { - filter: ~"DX.Transform.MS.BS.filter(opacity=50)"; -} -#one-line { image: url(http://tooks.com) } -#crazy { image: url(http://), "}", url("http://}") } -#interpolation { - @var: '/dev'; - url: "http://lesscss.org@{var}/image.jpg"; - - @var2: 256; - url2: "http://lesscss.org/image-@{var2}.jpg"; - - @var3: #456; - url3: "http://lesscss.org@{var3}"; - - @var4: hello; - url4: "http://lesscss.org/@{var4}"; - - @var5: 54.4px; - url5: "http://lesscss.org/@{var5}"; -} - -// multiple calls with string interpolation - -.mix-mul (@a: green) { - color: ~"@{a}"; -} -.mix-mul-class { - .mix-mul(blue); - .mix-mul(red); - .mix-mul(black); - .mix-mul(orange); -} - -@test: Arial, Verdana, San-Serif; -.watermark { - @family: ~"Univers, @{test}"; - family: @family; -} -#iterated-interpolation { - @box-small: 10px; - @box-large: 100px; - - .mixin { // both ruleset and mixin - width: ~"@{box-@{suffix}}"; - weird: ~"@{box}-@{suffix}}"; - width-str: "@{box-@{suffix}}"; - weird-str: "@{box}-@{suffix}}"; - @box: ~"@{box"; - @suffix: large; - } - .interpolation-mixin { - .mixin(); //call the above as mixin - } -} diff --git a/node_modules/less/test/less/url-args/urls.less b/node_modules/less/test/less/url-args/urls.less deleted file mode 100644 index 2f1bd87..0000000 --- a/node_modules/less/test/less/url-args/urls.less +++ /dev/null @@ -1,63 +0,0 @@ -@font-face { - src: url("/fonts/garamond-pro.ttf"); - src: local(Futura-Medium), - url(fonts.svg#MyGeometricModern) format("svg"); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px; - background: url("img.jpg") center / 100px; - background: #fff url(image.png) center / 1px 100px repeat-x scroll content-box padding-box; -} -#misc { - background-image: url(images/image.jpg); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700); - background-image: url("http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700"); -} - -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} - -.comma-delimited { - background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg); -} -.values { - @a: 'Trebuchet'; - url: url(@a); -} - -@import "../import/imports/font"; - -#data-uri { - uri: data-uri('image/jpeg;base64', '../../data/image.jpg'); -} - -#data-uri-guess { - uri: data-uri('../../data/image.jpg'); -} - -#data-uri-ascii { - uri-1: data-uri('text/html', '../../data/page.html'); - uri-2: data-uri('../../data/page.html'); -} - -#svg-functions { - background-image: svg-gradient(to bottom, black, white); - background-image: svg-gradient(to bottom, black, orange 3%, white); - @green_5: green 5%; - @orange_percentage: 3%; - @orange_color: orange; - background-image: svg-gradient(to bottom, (mix(black, white) + #444) 1%, @orange_color @orange_percentage, ((@green_5)), white 95%); -} - -#data-uri-with-spaces { - background-image: url( data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url( ' data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9=='); -} diff --git a/node_modules/less/test/less/urls.less b/node_modules/less/test/less/urls.less deleted file mode 100644 index 26eb58d..0000000 --- a/node_modules/less/test/less/urls.less +++ /dev/null @@ -1,94 +0,0 @@ -@import "nested-gradient-with-svg-gradient/mixin-consumer.less"; - -@font-face { - src: url("/fonts/garamond-pro.ttf"); - src: local(Futura-Medium), - url(fonts.svg#MyGeometricModern) format("svg"); - not-a-comment: url(//z); -} -#shorthands { - background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px; - background: url("img.jpg") center / 100px; - background: #fff url(image.png) center / 1px 100px repeat-x scroll content-box padding-box; -} -#misc { - background-image: url(images/image.jpg); -} -#data-uri { - background: url(data:image/png;charset=utf-8;base64, - kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/ - k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U - kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC); - background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==); - background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700); - background-image: url("http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700"); -} - -#svg-data-uri { - background: transparent url('data:image/svg+xml, '); -} - -.comma-delimited { - background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg); -} -.values { - @a: 'Trebuchet'; - url: url(@a); -} - -@import "import/import-and-relative-paths-test"; - -#relative-url-import { - .unquoted-relative-path-bg; - .quoted-relative-path-border-image; -} - -#data-uri { - uri: data-uri('image/jpeg;base64', '../data/image.jpg'); - @var: replace('../data/replace.jpg', "replace", "image"); - background-image: data-uri(@var), data-uri(replace('../data/image.filext', "filext", "jpg")); - - uri-fragment: data-uri('image/jpeg;base64', '../data/image.jpg#fragment'); -} - -#data-uri-guess { - uri: data-uri('../data/image.jpg'); -} - -#data-uri-ascii { - uri-1: data-uri('text/html', '../data/page.html'); - uri-2: data-uri('../data/page.html'); -} - -#file-functions { - uri: data-uri('../data/data-uri-fail.png'); - svg-not-base-64: data-uri('../data/image.svg'); - size: image-size('../data/data-uri-fail.png'); - width: image-width('../data/data-uri-fail.png'); - height: image-height('../data/data-uri-fail.png'); -} -.add_an_import(@file_to_import) { -@import "@{file_to_import}"; -} - -.add_an_import("file.css"); - -#svg-functions { - background-image: svg-gradient(to bottom, black, white); - background-image: svg-gradient(to bottom, black, orange 3%, white); - @green_5: green 5%; - @orange_percentage: 3%; - @orange_color: orange; - background-image: svg-gradient(to bottom, (mix(black, white) + #444) 1%, @orange_color @orange_percentage, ((@green_5)), white 95%); -} -//it should work also inside @font-face #2035 -@font-face { - font-family: 'MyWebFont'; - src: url(webfont.eot); - src+: url('webfont.eot?#iefix'); - src+_: format('embedded-opentype'); - src+: url('webfont.woff') format('woff'); - src+: format('truetype'); - src+_: url('webfont.ttf'); - src+: url('webfont.svg#svgFontName') format('svg'); -} diff --git a/node_modules/less/test/less/variables-in-at-rules.less b/node_modules/less/test/less/variables-in-at-rules.less deleted file mode 100644 index 96d8c61..0000000 --- a/node_modules/less/test/less/variables-in-at-rules.less +++ /dev/null @@ -1,20 +0,0 @@ - -@Eight: 8; -@charset "UTF-@{Eight}"; - -@ns: less; -@namespace @ns "http://lesscss.org"; - -@name: enlarger; -@keyframes @name { - from {font-size: 12px;} - to {font-size: 15px;} -} - -.m(reducer); -.m(@name) { - @-webkit-keyframes @name { - from {font-size: 13px;} - to {font-size: 10px;} - } -} diff --git a/node_modules/less/test/less/variables.less b/node_modules/less/test/less/variables.less deleted file mode 100644 index e2a2bea..0000000 --- a/node_modules/less/test/less/variables.less +++ /dev/null @@ -1,119 +0,0 @@ -@a: 2; -@x: (@a * @a); -@y: (@x + 1); -@z: (@x * 2 + @y); -@var: -1; - -.variables { - width: (@z + 1cm); // 14cm -} - -@b: @a * 10; -@c: #888; - -@fonts: "Trebuchet MS", Verdana, sans-serif; -@f: @fonts; - -@quotes: "~" "~"; -@q: @quotes; -@onePixel: 1px; - -.variables { - height: (@b + @x + 0px); // 24px - color: @c; - font-family: @f; - quotes: @q; -} - -.redef { - @var: 0; - .inition { - @var: 4; - @var: 2; - three: @var; - @var: 3; - } - zero: @var; -} - -@important-var: @c !important; -@important-var-two: @a !important; -.values { - minus-one: @var; - @a: 'Trebuchet'; - @multi: 'A', B, C; - font-family: @a, @a, @a; - color: @c !important; - same-color: @important-var; - same-again: @important-var !important; - multi-important: @important-var @important-var, @important-var-two; - multi: something @multi, @a; -} - -.variable-names { - .quoted { - @var: 'hello'; - @name: 'var'; - name: @@name; - } - - .unquoted { - @var: 'hello'; - @name: var; - name: @@name; - } - - .color-keyword { - @red: 'hello'; - @name: red; - name: @@name; - } -} - -.alpha { - @var: 42; - filter: alpha(opacity=@var); -} - -.polluteMixin() { - @a: 'pollution'; -} -.testPollution { - @a: 'no-pollution'; - a: @a; - .polluteMixin(); - a: @a; -} - -.units { - width: @onePixel; - same-unit-as-previously: (@onePixel / @onePixel); - square-pixel-divided: (@onePixel * @onePixel / @onePixel); - odd-unit: unit((@onePixel * 4em / 2cm)); - percentage: (10 * 50%); - pixels: (50px * 10); - conversion-metric-a: (20mm + 1cm); - conversion-metric-b: (1cm + 20mm); - conversion-imperial: (1in + 72pt + 6pc); - custom-unit: (42octocats * 10); - custom-unit-cancelling: (8cats * 9dogs / 4cats); - mix-units: (1px + 1em); - invalid-units: (1px * 1px); - .fallback { - @px: 14px; - @em: 1.4em; - @cm: 10cm; - div-px-1: (@px / @em); - div-px-2: ((@px / @em) / @cm); - sub-px-1: (@px - @em); - sub-cm-1: (@cm - (@px - @em)); - mul-px-1: (@px * @em); - mul-em-1: (@em * @px); - mul-em-2: ((@em * @px) * @cm); - mul-cm-1: (@cm * (@em * @px)); - add-px-1: (@px + @em); - add-px-2: ((@px + @em) + @cm); - mul-px-2: ((1 * @px) * @cm); - mul-px-3: ((@px * 1) * @cm); - } -} diff --git a/node_modules/less/test/less/visitorPlugin/visitor.less b/node_modules/less/test/less/visitorPlugin/visitor.less deleted file mode 100644 index bd2da3e..0000000 --- a/node_modules/less/test/less/visitorPlugin/visitor.less +++ /dev/null @@ -1,4 +0,0 @@ -.test { - color: red; - -some-aribitrary-property: value; -} diff --git a/node_modules/less/test/less/whitespace.less b/node_modules/less/test/less/whitespace.less deleted file mode 100644 index 050ac73..0000000 --- a/node_modules/less/test/less/whitespace.less +++ /dev/null @@ -1,44 +0,0 @@ - - -.whitespace - { color: white; } - -.whitespace -{ - color: white; -} - .whitespace -{ color: white; } - -.whitespace{color:white;} -.whitespace { color : white ; } - -.white, -.space, -.mania -{ color: white; } - -.no-semi-column { color: white } -.no-semi-column { - color: white; - white-space: pre -} -.no-semi-column {border: 2px solid white} -.newlines { - background: the, - great, - wall; - border: 2px - solid - black; -} -.empty { - -} -.sel -.newline_ws .tab_ws { -color: -white; -background-position: 45 --23; -} diff --git a/node_modules/less/test/modify-vars.js b/node_modules/less/test/modify-vars.js deleted file mode 100644 index 4f73dce..0000000 --- a/node_modules/less/test/modify-vars.js +++ /dev/null @@ -1,19 +0,0 @@ -var less = require('../lib/less'), - fs = require('fs'); - -var input = fs.readFileSync("./test/less/modifyVars/extended.less", 'utf8'); -var expectedCss = fs.readFileSync('./test/css/modifyVars/extended.css', 'utf8'); -var options = { - modifyVars: JSON.parse(fs.readFileSync("./test/less/modifyVars/extended.json", 'utf8')) -}; - -less.render(input, options, function (err, result) { - if (err) { - console.log(err); - } - if (result.css === expectedCss) { - console.log("PASS"); - } else { - console.log("FAIL"); - } -}); diff --git a/node_modules/less/test/plugins/filemanager/index.js b/node_modules/less/test/plugins/filemanager/index.js deleted file mode 100644 index 1cc905d..0000000 --- a/node_modules/less/test/plugins/filemanager/index.js +++ /dev/null @@ -1,19 +0,0 @@ -(function(exports) { - var plugin = function(less) { - var FileManager = less.FileManager, TestFileManager = new FileManager(); - function TestFileManager() { }; - TestFileManager.loadFile = function (filename, currentDirectory, options, environment, callback) { - if (filename.match(/.*\.test$/)) { - return less.environment.fileManagers[0].loadFile("colors.test", currentDirectory, options, environment, callback); - } - return less.environment.fileManagers[0].loadFile(filename, currentDirectory, options, environment, callback); - }; - - return TestFileManager; - }; - - exports.install = function(less, pluginManager) { - less.environment.addFileManager(new plugin(less)); - }; - -})(typeof exports === 'undefined' ? this['AddFilePlugin'] = {} : exports); diff --git a/node_modules/less/test/plugins/postprocess/index.js b/node_modules/less/test/plugins/postprocess/index.js deleted file mode 100644 index 1fe7367..0000000 --- a/node_modules/less/test/plugins/postprocess/index.js +++ /dev/null @@ -1,14 +0,0 @@ -(function(exports) { - var postProcessor = function() {}; - - postProcessor.prototype = { - process: function (css) { - return 'hr {height:50px;}\n' + css; - } - }; - - exports.install = function(less, pluginManager) { - pluginManager.addPostProcessor( new postProcessor()); - }; - -})(typeof exports === 'undefined' ? this['postProcessorPlugin'] = {} : exports); diff --git a/node_modules/less/test/plugins/preprocess/index.js b/node_modules/less/test/plugins/preprocess/index.js deleted file mode 100644 index 868f232..0000000 --- a/node_modules/less/test/plugins/preprocess/index.js +++ /dev/null @@ -1,19 +0,0 @@ -(function(exports) { - var preProcessor = function() {}; - - preProcessor.prototype = { - process : function (src, extra) { - var injected = '@color: red;\n'; - var ignored = extra.imports.contentsIgnoredChars; - var fileInfo = extra.fileInfo; - ignored[fileInfo.filename] = ignored[fileInfo.filename] || 0; - ignored[fileInfo.filename] += injected.length; - return injected + src; - } - }; - - exports.install = function(less, pluginManager) { - pluginManager.addPreProcessor( new preProcessor() ); - }; - -})(typeof exports === 'undefined' ? this['preProcessorPlugin'] = {} : exports); diff --git a/node_modules/less/test/plugins/visitor/index.js b/node_modules/less/test/plugins/visitor/index.js deleted file mode 100644 index 8f4f1a4..0000000 --- a/node_modules/less/test/plugins/visitor/index.js +++ /dev/null @@ -1,24 +0,0 @@ -(function(exports) { - var RemoveProperty = function(less) { - this._visitor = new less.visitors.Visitor(this); - }; - - RemoveProperty.prototype = { - isReplacing: true, - run: function (root) { - return this._visitor.visit(root); - }, - visitRule: function (ruleNode, visitArgs) { - if (ruleNode.name != '-some-aribitrary-property') { - return ruleNode; - } else { - return []; - } - } - }; - - exports.install = function(less, pluginManager) { - pluginManager.addVisitor( new RemoveProperty(less)); - }; - -})(typeof exports === 'undefined' ? this['VisitorPlugin'] = {} : exports); diff --git a/node_modules/less/test/rhino/test-header.js b/node_modules/less/test/rhino/test-header.js deleted file mode 100644 index 884e5d1..0000000 --- a/node_modules/less/test/rhino/test-header.js +++ /dev/null @@ -1,15 +0,0 @@ -function initRhinoTest() { - process = { title: 'dummy' }; - - less.tree.functions.add = function (a, b) { - return new(less.tree.Dimension)(a.value + b.value); - }; - less.tree.functions.increment = function (a) { - return new(less.tree.Dimension)(a.value + 1); - }; - less.tree.functions._color = function (str) { - if (str.value === "evil red") { return new(less.tree.Color)("600"); } - }; -} - -initRhinoTest(); \ No newline at end of file diff --git a/node_modules/less/test/sourcemaps/basic.json b/node_modules/less/test/sourcemaps/basic.json deleted file mode 100644 index 51372f3..0000000 --- a/node_modules/less/test/sourcemaps/basic.json +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["testweb/sourcemaps/basic.less","testweb/sourcemaps/imported.css"],"names":[],"mappings":"AAMA;EACE,YAAA;EAJA,UAAA;EAWA,iBAAA;EALA,WAAA;EACA,iBAAA;;AAJF,EASE;AATF,EASM;EACF,gBAAA;;AACA,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;EAGA,UAAA;;AALN;AAAI;AAUJ;EATE,iBAAA;;AADF,EAEE;AAFE,EAEF;AAFF,EAEM;AAFF,EAEE;AAQN,OARE;AAQF,OARM;EACF,gBAAA;;AACA,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFA;AAQN,OARE,GAQF,UARE;AAQF,OARE,GAEI,KAFJ;AAQF,OARE,GAQF,UARM;AAQN,OARE,GAEI,KAFA;AAEF,EAFF,GAQF,UARE;AAEE,EAFF,GAQF,UARM;AAQN,OARM,GAQN,UARE;AAQF,OARM,GAEA,KAFJ;AAQF,OARM,GAQN,UARM;AAQN,OARM,GAEA,KAFA;AAEF,EAFE,GAQN,UARE;AAEE,EAFE,GAQN,UARM;EAGA,UAAA;;AAKN;EACE,WAAA;;ACxBF;AACA;AACA;AACA;AACA;AACA;AACA","file":"sourcemaps/basic.css"} \ No newline at end of file diff --git a/node_modules/less/test/sourcemaps/index.html b/node_modules/less/test/sourcemaps/index.html deleted file mode 100644 index 89acca7..0000000 --- a/node_modules/less/test/sourcemaps/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - -
    id import-test
    -
    id import-test
    -
    class imported inline
    -
    class mixin
    -
    class a
    -
    class b
    -
    class b
    class c
    -
    class a
    class d
    -
    class extend
    class c
    - - \ No newline at end of file diff --git a/node_modules/less/test/sourcemaps/maps/import-map.map b/node_modules/less/test/sourcemaps/maps/import-map.map deleted file mode 100644 index d7ea053..0000000 --- a/node_modules/less/test/sourcemaps/maps/import-map.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../less/import.less","../../less/import/import-test-b.less","../../less/import/import-test-e.less","../../less/import/import-test-c.less","../../less/import/import-test-f.less","../../less/import/deeper/deeper-2/url-import-2.less","../../less/import/import-test-d.css"],"names":[],"mappings":"AA6BA,SAAS;;;6DA1BqE;YAKlE,sBAAqC;AAEjD;ECLE,YAAA;EACA,UAAA;EDMA,WAAA;EACA,WAAA;;mBAE0D;EEd5D;IAAO,WAAA;;;ACEP;EACE,UAAA;;AFAF;EACE,YAAA;EACA,UAAA;;AGJF;EACE,YAAA;;ACHF;EACE,UAAA;;mBLkB+E;EMnBjF;IAAO,aAAA;;;mBNqBgE;EEpBvE;IAAO,WAAA;;;mBFsB+E;EMvBtF;IAAO,aAAA;;;ANyBP;EExBA;IAAO,WAAA","file":"../import.css"} \ No newline at end of file diff --git a/node_modules/liftoff/.jscsrc b/node_modules/liftoff/.jscsrc deleted file mode 100644 index af3c78e..0000000 --- a/node_modules/liftoff/.jscsrc +++ /dev/null @@ -1,60 +0,0 @@ -{ - "esnext": true, - "disallowMixedSpacesAndTabs": true, - "disallowSpaceAfterObjectKeys": true, - "disallowSpaceBeforeBinaryOperators": [ - "," - ], - "disallowSpacesInsideArrayBrackets": true, - "disallowSpacesInsideParentheses": true, - "disallowTrailingWhitespace": true, - "requireCommaBeforeLineBreak": true, - "requireLineFeedAtFileEnd": true, - "requireSpaceAfterBinaryOperators": [ - "=", - ",", - "+", - "-", - "/", - "*", - "==", - "===", - "!=", - "!==", - ":", - "&&", - "||" - ], - "requireSpaceAfterKeywords": [ - "if", - "else", - "for", - "while", - "do", - "switch", - "return", - "try", - "catch" - ], - "requireSpaceBeforeBinaryOperators": [ - "=", - "+", - "-", - "/", - "*", - "==", - "===", - "!=", - "!==", - "&&", - "||" - ], - "requireSpaceBeforeBlockStatements": true, - "requireSpacesInFunctionExpression": { - "beforeOpeningCurlyBrace": true - }, - "validateQuoteMarks": { - "escape": true, - "mark": "'" - } -} diff --git a/node_modules/liftoff/.jshintrc b/node_modules/liftoff/.jshintrc deleted file mode 100644 index 6871084..0000000 --- a/node_modules/liftoff/.jshintrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "undef": true, - "unused": true, - "node": true, - "esnext": true, - "expr": true, - "globals": { - "describe": true, - "it": true - } -} diff --git a/node_modules/liftoff/.npmignore b/node_modules/liftoff/.npmignore deleted file mode 100644 index 9c9c73b..0000000 --- a/node_modules/liftoff/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -test -artwork diff --git a/node_modules/liftoff/.travis.yml b/node_modules/liftoff/.travis.yml deleted file mode 100644 index 61ec9ec..0000000 --- a/node_modules/liftoff/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: node_js -os: - - linux - - osx -node_js: - - "6" - - "5" - - "4" - - "0.12" - - "0.10" -before_install: - - npm update -g npm -matrix: - fast_finish: true - allow_failures: - - node_js: "0.10" diff --git a/node_modules/liftoff/CHANGELOG b/node_modules/liftoff/CHANGELOG deleted file mode 100644 index ee5b84d..0000000 --- a/node_modules/liftoff/CHANGELOG +++ /dev/null @@ -1,127 +0,0 @@ -v2.2.2: - date: 2016-05-20 - changes: - - Update dependencies. -v2.2.1: - date: 2016-03-23 - changes: - - Make sure that v8 flags are passed properly through the `respawn` event -v2.1.0: - date: 2015-05-20 - changes: - - Use rechoir to autoload modules. -v2.0.3: - date: 2015-03-31 - changes: - - Internal bugfix, don't wrap callback error in another error, idiot. -v2.0.2: - date: 2015-02-24 - changes: - - Support process.env.NODE_PATH when resolving module. -v2.0.1: - date: 2015-02-01 - changes: - - Find modulePath correctly when devving against yourself. -v2.0.0: - date: 2015-01-15 - changes: - - Rename `nodeFlags` to `v8Flags` and make it async. -v1.0.4: - date: 2015-01-04 - changes: - - Detect config extension using basename, not full path. -v1.0.0: - date: 2014-12-16 - changes: - - Update dependencies -v0.13.6: - date: 2014-11-07 - changes: - - Don't include artwork on npm. -v0.13.5: - date: 2014-10-10 - changes: - - Only attempt to resolve the real path of configFile if it is actually a symlink. -v0.13.4: - date: 2014-10-07 - changes: - - Set configBase to the directory of the symlink, not the directory of its real location. -v0.13.3: - date: 2014-10-06 - changes: - - Return the real location of symlinked config files. -v0.13.2: - date: 2014-09-12 - changes: - - Include flags in respawn event. I really miss `npm publish --force`. -v0.13.1: - date: 2014-09-12 - changes: - - Slight performance tweak. -v0.13.0: - date: 2014-09-12 - changes: - - Support passing flags to node with `nodeFlags` option. -v0.12.1: - date: 2014-06-27 - changes: - - Support preloading modules for compound extensions like `.coffee.md`. -v0.12.0: - date: 2014-06-27 - changes: - - Respect order of extensions when searching for config. - - Rename `configNameRegex` environment property to `configNameSearch`. -v0.11.3: - date: 2014-06-09 - changes: - - Make cwd match configBase if cwd isn't explictly provided -v0.11.2: - date: 2014-06-04 - changes: - - Regression fix: coerce preloads into array before attempting to push more -v0.11.1: - date: 2014-06-02 - changes: - - Update dependencies. -v0.11.0: - date: 2014-05-27 - changes: - - Refactor and remove options parsing. -v0.10.0: - date: 2014-05-06 - changes: - - Remove `addExtension` in favor of `extension` option. - - Support preloading modules based on extension. -v0.9.7: - date: 2014-04-28 - changes: - - Locate local module in cwd even if config isn't present. -v0.9.6: - date: 2014-04-02 - changes: - - Fix regression where external modules are not properly required. - - Ignore configPathFlag / cwdFlag if the value isn't a string -v0.9.3: - date: 2014-02-28 - changes: - - Fix regression where developing against self doesn't correctly set cwd. -v0.9.0: - date: 2014-02-28 - changes: - - Use liftoff instance as context (`this`) for launch callback. - - Support split --cwd and --configfile locations. - - Rename `configLocationFlag` to `configPathFlag` - - Support node 0.8+ -v0.8.7: - date: 2014-02-24 - changes: - - Pass environment as first argument to `launch`. -v0.8.5: - date: 2014-02-19 - changes: - - Implement `addExtensions` option. - - Default to `index.js` if `modulePackage` has no `main` property. -v0.8.4: - date: 2014-02-05 - changes: - - Initial public release. diff --git a/node_modules/liftoff/LICENSE b/node_modules/liftoff/LICENSE deleted file mode 100644 index a55f5b7..0000000 --- a/node_modules/liftoff/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2014 Tyler Kellen - -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/liftoff/README.md b/node_modules/liftoff/README.md deleted file mode 100644 index 9a5a0ae..0000000 --- a/node_modules/liftoff/README.md +++ /dev/null @@ -1,429 +0,0 @@ -

    - - - -

    - -# liftoff [![Build Status](https://secure.travis-ci.org/js-cli/js-liftoff.svg)](http://travis-ci.org/js-cli/js-liftoff) [![Build status](https://ci.appveyor.com/api/projects/status/5a6w8xuq8ed1ilc4/branch/master?svg=true)](https://ci.appveyor.com/project/js-cli/js-liftoff/branch/master) - -> Launch your command line tool with ease. - -[![NPM](https://nodei.co/npm/liftoff.png)](https://nodei.co/npm/liftoff/) - -## What is it? -[See this blog post](http://weblog.bocoup.com/building-command-line-tools-in-node-with-liftoff/), [check out this proof of concept](https://github.com/js-cli/js-hacker), or read on. - -Say you're writing a CLI tool. Let's call it [hacker](https://github.com/js-cli/js-hacker). You want to configure it using a `Hackerfile`. This is node, so you install `hacker` locally for each project you use it in. But, in order to get the `hacker` command in your PATH, you also install it globally. - -Now, when you run `hacker`, you want to configure what it does using the `Hackerfile` in your current directory, and you want it to execute using the local installation of your tool. Also, it'd be nice if the `hacker` command was smart enough to traverse up your folders until it finds a `Hackerfile`—for those times when you're not in the root directory of your project. Heck, you might even want to launch `hacker` from a folder outside of your project by manually specifying a working directory. Liftoff manages this for you. - -So, everything is working great. Now you can find your local `hacker` and `Hackerfile` with ease. Unfortunately, it turns out you've authored your `Hackerfile` in coffee-script, or some other JS variant. In order to support *that*, you have to load the compiler for it, and then register the extension for it with node. Good news, Liftoff can do that, and a whole lot more, too. - -## API - -### constructor(opts) - -Create an instance of Liftoff to invoke your application. - -An example utilizing all options: -```js -const Hacker = new Liftoff({ - name: 'hacker', - processTitle: 'hacker', - moduleName: 'hacker', - configName: 'hackerfile', - extensions: { - '.js': null, - '.json': null, - '.coffee': 'coffee-script/register' - }, - v8flags: ['--harmony'] // or v8flags: require('v8flags') -}); -``` - -#### opts.name - -Sugar for setting `processTitle`, `moduleName`, `configName` automatically. - -Type: `String` -Default: `null` - -These are equivalent: -```js -const Hacker = Liftoff({ - processTitle: 'hacker', - moduleName: 'hacker', - configName: 'hackerfile' -}); -``` -```js -const Hacker = Liftoff({name:'hacker'}); -``` - -#### opts.moduleName - -Sets which module your application expects to find locally when being run. - -Type: `String` -Default: `null` - -#### opts.configName - -Sets the name of the configuration file Liftoff will attempt to find. Case-insensitive. - -Type: `String` -Default: `null` - -#### opts.extensions - -Set extensions to include when searching for a configuration file. If an external module is needed to load a given extension (e.g. `.coffee`), the module name should be specified as the value for the key. - -Type: `Object` -Default: `{".js":null,".json":null}` - -**Examples:** - -In this example Liftoff will look for `myappfile{.js,.json,.coffee}`. If a config with the extension `.coffee` is found, Liftoff will try to require `coffee-script/require` from the current working directory. -```js -const MyApp = new Liftoff({ - name: 'myapp', - extensions: { - '.js': null, - '.json': null, - '.coffee': 'coffee-script/register' - } -}); -``` - -In this example, Liftoff will look for `.myapp{rc}`. -```js -const MyApp = new Liftoff({ - name: 'myapp', - configName: '.myapp', - extensions: { - 'rc': null - } -}); -``` - -In this example, Liftoff will automatically attempt to load the correct module for any javascript variant supported by [node-interpret](https://github.com/tkellen/node-interpret) (as long as it does not require a register method). - -```js -const MyApp = new Liftoff({ - name: 'myapp', - extensions: require('interpret').jsVariants -}); -``` -#### opts.v8flags - -Any flag specified here will be applied to node, not your program. Useful for supporting invocations like `myapp --harmony command`, where `--harmony` should be passed to node, not your program. This functionality is implemented using [flagged-respawn](http://github.com/tkellen/node-flagged-respawn). To support all v8flags, see [node-v8flags](https://github.com/tkellen/node-v8flags). - -Type: `Array|Function` -Default: `null` - -If this method is a function, it should take a node-style callback that yields an array of flags. - -#### opts.processTitle - -Sets what the [process title](http://nodejs.org/api/process.html#process_process_title) will be. - -Type: `String` -Default: `null` - -#### opts.completions(type) - -A method to handle bash/zsh/whatever completions. - -Type: `Function` -Default: `null` - -#### opts.configFiles - -An object of configuration files to find. Each property is keyed by the default basename of the file being found, and the value is an object of [path arguments](#path-arguments) keyed by unique names. - -__Note:__ This option is useful if, for example, you want to support an `.apprc` file in addition to an `appfile.js`. If you only need a single configuration file, you probably don't need this. In addition to letting you find multiple files, this option allows more fine-grained control over how configuration files are located. - -Type: `Object` -Default: `null` - -#### Path arguments - -The [`fined`](https://github.com/js-cli/fined) module accepts a string representing the path to search or an object with the following keys: - -* `path` __(required)__ - - The path to search. Using only a string expands to this property. - - Type: `String` - Default: `null` - -* `name` - - The basename of the file to find. Extensions are appended during lookup. - - Type: `String` - Default: Top-level key in `configFiles` - -* `extensions` - - The extensions to append to `name` during lookup. See also: [`opts.extensions`](#optsextensions). - - Type: `String|Array|Object` - Default: The value of [`opts.extensions`](#optsextensions) - -* `cwd` - - The base directory of `path` (if relative). - - Type: `String` - Default: The value of [`opts.cwd`](#optscwd) - -* `findUp` - - Whether the `path` should be traversed up to find the file. - - Type: `Boolean` - Default: `false` - -**Examples:** - -In this example Liftoff will look for the `.hacker.js` file relative to the `cwd` as declared in `configFiles`. -```js -const MyApp = new Liftoff({ - name: 'hacker', - configFiles: { - '.hacker': { - cwd: '.' - } - } -}); -``` - -In this example, Liftoff will look for `.hackerrc` in the home directory. -```js -const MyApp = new Liftoff({ - name: 'hacker', - configFiles: { - '.hacker': { - home: { - path: '~', - extensions: { - 'rc': null - } - } - } - } -}); -``` - -In this example, Liftoff will look in the `cwd` and then lookup the tree for the `.hacker.js` file. -```js -const MyApp = new Liftoff({ - name: 'hacker', - configFiles: { - '.hacker': { - up: { - path: '.', - findUp: true - } - } - } -}); -``` - -In this example, the `name` is overridden and the key is ignored so Liftoff looks for `.override.js`. -```js -const MyApp = new Liftoff({ - name: 'hacker', - configFiles: { - hacker: { - override: { - path: '.', - name: '.override' - } - } - } -}); -``` - -In this example, Liftoff will use the home directory as the `cwd` and looks for `~/.hacker.js`. -```js -const MyApp = new Liftoff({ - name: 'hacker', - configFiles: { - '.hacker': { - home: { - path: '.', - cwd: '~' - } - } - } -}); -``` - -## launch(opts, callback(env)) -Launches your application with provided options, builds an environment, and invokes your callback, passing the calculated environment as the first argument. - -##### Example Configuration w/ Options Parsing: -```js -const Liftoff = require('liftoff'); -const MyApp = new Liftoff({name:'myapp'}); -const argv = require('minimist')(process.argv.slice(2)); -const invoke = function (env) { - console.log('my environment is:', env); - console.log('my cli options are:', argv); - console.log('my liftoff config is:', this); -}; -MyApp.launch({ - cwd: argv.cwd, - configPath: argv.myappfile, - require: argv.require, - completion: argv.completion -}, invoke); -``` - -#### opts.cwd - -Change the current working directory for this launch. Relative paths are calculated against `process.cwd()`. - -Type: `String` -Default: `process.cwd()` - -**Example Configuration:** -```js -const argv = require('minimist')(process.argv.slice(2)); -MyApp.launch({ - cwd: argv.cwd -}, invoke); -``` - -**Matching CLI Invocation:** -``` -myapp --cwd ../ -``` - -#### opts.configPath - -Don't search for a config, use the one provided. **Note:** Liftoff will assume the current working directory is the directory containing the config file unless an alternate location is explicitly specified using `cwd`. - -Type: `String` -Default: `null` - -**Example Configuration:** -```js -var argv = require('minimist')(process.argv.slice(2)); -MyApp.launch({ - configPath: argv.myappfile -}, invoke); -``` - -**Matching CLI Invocation:** -``` -myapp --myappfile /var/www/project/Myappfile.js -``` - -**Examples using `cwd` and `configPath` together:** - -These are functionally identical: -``` -myapp --myappfile /var/www/project/Myappfile.js -myapp --cwd /var/www/project -``` - -These can run myapp from a shared directory as though it were located in another project: -``` -myapp --myappfile /Users/name/Myappfile.js --cwd /var/www/project1 -myapp --myappfile /Users/name/Myappfile.js --cwd /var/www/project2 -``` - -#### opts.require - -A string or array of modules to attempt requiring from the local working directory before invoking the launch callback. - -Type: `String|Array` -Default: `null` - -**Example Configuration:** -```js -var argv = require('minimist')(process.argv.slice(2)); -MyApp.launch({ - require: argv.require -}, invoke); -``` - -**Matching CLI Invocation:** -```js -myapp --require coffee-script/register -``` - -#### callback(env) - -A function to start your application. When invoked, `this` will be your instance of Liftoff. The `env` param will contain the following keys: - -- `cwd`: the current working directory -- `require`: an array of modules that liftoff tried to pre-load -- `configNameSearch`: the config files searched for -- `configPath`: the full path to your configuration file (if found) -- `configBase`: the base directory of your configuration file (if found) -- `modulePath`: the full path to the local module your project relies on (if found) -- `modulePackage`: the contents of the local module's package.json (if found) -- `configFiles`: an object of filepaths for each found config file (filepath values will be null if not found) - -### events - -#### require(name, module) - -Emitted when a module is pre-loaded. - -```js -var Hacker = new Liftoff({name:'hacker'}); -Hacker.on('require', function (name, module) { - console.log('Requiring external module: '+name+'...'); - // automatically register coffee-script extensions - if (name === 'coffee-script') { - module.register(); - } -}); -``` - -#### requireFail(name, err) - -Emitted when a requested module cannot be preloaded. - -```js -var Hacker = new Liftoff({name:'hacker'}); -Hacker.on('requireFail', function (name, err) { - console.log('Unable to load:', name, err); -}); -``` - -#### respawn(flags, child) - -Emitted when Liftoff re-spawns your process (when a [`v8flags`](#optsv8flags) is detected). - -```js -var Hacker = new Liftoff({ - name: 'hacker', - v8flags: ['--harmony'] -}); -Hacker.on('respawn', function (flags, child) { - console.log('Detected node flags:', flags); - console.log('Respawned to PID:', child.pid); -}); -``` - -Event will be triggered for this command: -`hacker --harmony commmand` - -## Examples - -Check out how [gulp](https://github.com/gulpjs/gulp/blob/master/bin/gulp.js) uses Liftoff. - -For a bare-bones example, try [the hacker project](https://github.com/js-cli/js-hacker/blob/master/bin/hacker.js). - -To try the example, do the following: - -1. Install the sample project `hacker` with `npm install -g hacker`. -2. Make a `Hackerfile.js` with some arbitrary javascript it. -3. Install hacker next to it with `npm install hacker`. -3. Run `hacker` while in the same parent folder. diff --git a/node_modules/liftoff/UPGRADING.md b/node_modules/liftoff/UPGRADING.md deleted file mode 100644 index 7f95e3e..0000000 --- a/node_modules/liftoff/UPGRADING.md +++ /dev/null @@ -1,28 +0,0 @@ -# 1.0.0 -> 2.0.0 -The option `nodeFlags` was renamed to `v8flags` for accuracy. It can now be a callback taking method that yields an array of flags, **or** an array literal. - -# 0.11 -> 0.12 -For the environment passed into the `launch` callback, `configNameRegex` has been renamed to `configNameSearch`. It now returns an array of valid config names instead of a regular expression. - -# 0.10 -> 0.11 -The method signature for `launch` was changed in this version of Liftoff. - -You must now provide your own options parser and pass your desired params directly into `launch` as the first argument. The second argument is now the invocation callback that starts your application. - -To replicate the default functionality of 0.10, use the following: -```js -const Liftoff = require('liftoff'); -const MyApp = new Liftoff({name:'myapp'}); -const argv = require('minimist')(process.argv.slice(2)); -const invoke = function (env) { - console.log('my environment is:', env); - console.log('my cli options are:', argv); - console.log('my liftoff config is:', this); -}; -MyApp.launch({ - cwd: argv.cwd, - configPath: argv.myappfile, - require: argv.require, - completion: argv.completion -}, invoke); -``` diff --git a/node_modules/liftoff/appveyor.yml b/node_modules/liftoff/appveyor.yml deleted file mode 100644 index bcb6b74..0000000 --- a/node_modules/liftoff/appveyor.yml +++ /dev/null @@ -1,29 +0,0 @@ -# http://www.appveyor.com/docs/appveyor-yml -# http://www.appveyor.com/docs/lang/nodejs-iojs - -environment: - matrix: - # node.js - - nodejs_version: "0.10" - - nodejs_version: "0.12" - - nodejs_version: "4" - - nodejs_version: "5" - - nodejs_version: "6" - -install: - - IF %nodejs_version% EQU 0.10 npm -g install npm@2 - - IF %nodejs_version% EQU 0.10 set PATH=%APPDATA%\npm;%PATH% - - ps: Install-Product node $env:nodejs_version - - npm install - -test_script: - - node --version - - npm --version - # power shell - - ps: "npm test" - # standard command line - - cmd: npm test - -build: off - -version: "{build}" diff --git a/node_modules/liftoff/index.js b/node_modules/liftoff/index.js deleted file mode 100644 index 0c0a8d5..0000000 --- a/node_modules/liftoff/index.js +++ /dev/null @@ -1,210 +0,0 @@ -const fs = require('fs'); -const util = require('util'); -const path = require('path'); -const EE = require('events').EventEmitter; - -const extend = require('extend'); -const resolve = require('resolve'); -const flaggedRespawn = require('flagged-respawn'); -const isPlainObject = require('lodash.isplainobject'); -const mapValues = require('lodash.mapvalues'); -const fined = require('fined'); - -const findCwd = require('./lib/find_cwd'); -const findConfig = require('./lib/find_config'); -const fileSearch = require('./lib/file_search'); -const parseOptions = require('./lib/parse_options'); -const silentRequire = require('./lib/silent_require'); -const buildConfigName = require('./lib/build_config_name'); -const registerLoader = require('./lib/register_loader'); - - -function Liftoff (opts) { - EE.call(this); - extend(this, parseOptions(opts)); -} -util.inherits(Liftoff, EE); - -Liftoff.prototype.requireLocal = function (module, basedir) { - try { - var result = require(resolve.sync(module, {basedir: basedir})); - this.emit('require', module, result); - return result; - } catch (e) { - this.emit('requireFail', module, e); - } -}; - -Liftoff.prototype.buildEnvironment = function (opts) { - opts = opts || {}; - - // get modules we want to preload - var preload = opts.require || []; - - // ensure items to preload is an array - if (!Array.isArray(preload)) { - preload = [preload]; - } - - // make a copy of search paths that can be mutated for this run - var searchPaths = this.searchPaths.slice(); - - // calculate current cwd - var cwd = findCwd(opts); - - // if cwd was provided explicitly, only use it for searching config - if (opts.cwd) { - searchPaths = [cwd]; - } else { - // otherwise just search in cwd first - searchPaths.unshift(cwd); - } - - // calculate the regex to use for finding the config file - var configNameSearch = buildConfigName({ - configName: this.configName, - extensions: Object.keys(this.extensions) - }); - - // calculate configPath - var configPath = findConfig({ - configNameSearch: configNameSearch, - searchPaths: searchPaths, - configPath: opts.configPath - }); - - // if we have a config path, save the directory it resides in. - var configBase; - if (configPath) { - configBase = path.dirname(configPath); - // if cwd wasn't provided explicitly, it should match configBase - if (!opts.cwd) { - cwd = configBase; - } - // resolve symlink if needed - if (fs.lstatSync(configPath).isSymbolicLink()) { - configPath = fs.realpathSync(configPath); - } - } - - // TODO: break this out into lib/ - // locate local module and package next to config or explicitly provided cwd - var modulePath, modulePackage; - try { - var delim = (process.platform === 'win32' ? ';' : ':'), - paths = (process.env.NODE_PATH ? process.env.NODE_PATH.split(delim) : []); - modulePath = resolve.sync(this.moduleName, {basedir: configBase || cwd, paths: paths}); - modulePackage = silentRequire(fileSearch('package.json', [modulePath])); - } catch (e) {} - - // if we have a configuration but we failed to find a local module, maybe - // we are developing against ourselves? - if (!modulePath && configPath) { - // check the package.json sibling to our config to see if its `name` - // matches the module we're looking for - var modulePackagePath = fileSearch('package.json', [configBase]); - modulePackage = silentRequire(modulePackagePath); - if (modulePackage && modulePackage.name === this.moduleName) { - // if it does, our module path is `main` inside package.json - modulePath = path.join(path.dirname(modulePackagePath), modulePackage.main || 'index.js'); - cwd = configBase; - } else { - // clear if we just required a package for some other project - modulePackage = {}; - } - } - - // load any modules which were requested to be required - if (preload.length) { - // unique results first - preload.filter(function (value, index, self) { - return self.indexOf(value) === index; - }).forEach(function (dep) { - this.requireLocal(dep, findCwd(opts)); - }, this); - } - - var exts = this.extensions; - var eventEmitter = this; - registerLoader(eventEmitter, exts, configPath, cwd); - - var configFiles = {}; - if (isPlainObject(this.configFiles)) { - var notfound = { path: null }; - configFiles = mapValues(this.configFiles, function(prop, name) { - var defaultObj = { name: name, cwd: cwd, extensions: exts }; - return mapValues(prop, function(pathObj) { - var found = fined(pathObj, defaultObj) || notfound; - if (isPlainObject(found.extension)) { - registerLoader(eventEmitter, found.extension, found.path, cwd); - } - return found.path; - }); - }); - } - - return { - cwd: cwd, - require: preload, - configNameSearch: configNameSearch, - configPath: configPath, - configBase: configBase, - modulePath: modulePath, - modulePackage: modulePackage || {}, - configFiles: configFiles - }; -}; - -Liftoff.prototype.handleFlags = function (cb) { - if (typeof this.v8flags === 'function') { - this.v8flags(function (err, flags) { - if (err) { - cb(err); - } else { - cb(null, flags); - } - }); - } else { - process.nextTick(function () { - cb(null, this.v8flags); - }.bind(this)); - } -}; - -Liftoff.prototype.launch = function (opts, fn) { - if (typeof fn !== 'function') { - throw new Error('You must provide a callback function.'); - } - process.title = this.processTitle; - - var completion = opts.completion; - if (completion && this.completions) { - return this.completions(completion); - } - - this.handleFlags(function (err, flags) { - if (err) { - throw err; - } else { - if (flags) { - flaggedRespawn(flags, process.argv, function (ready, child) { - if (child !== process) { - this.emit('respawn', process.argv.filter(function (arg) { - var flag = arg.split('=')[0]; - return flags.indexOf(flag) !== -1; - }.bind(this)), child); - } - if (ready) { - fn.call(this, this.buildEnvironment(opts)); - } - }.bind(this)); - } else { - fn.call(this, this.buildEnvironment(opts)); - } - } - }.bind(this)); -}; - - - -module.exports = Liftoff; diff --git a/node_modules/liftoff/lib/build_config_name.js b/node_modules/liftoff/lib/build_config_name.js deleted file mode 100644 index b83e185..0000000 --- a/node_modules/liftoff/lib/build_config_name.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = function (opts) { - opts = opts || {}; - var configName = opts.configName; - var extensions = opts.extensions; - if (!configName) { - throw new Error('Please specify a configName.'); - } - if (configName instanceof RegExp) { - return [configName]; - } - if (!Array.isArray(extensions)) { - throw new Error('Please provide an array of valid extensions.'); - } - return extensions.map(function (ext) { - return configName + ext; - }); -}; diff --git a/node_modules/liftoff/lib/file_search.js b/node_modules/liftoff/lib/file_search.js deleted file mode 100644 index 76dadd6..0000000 --- a/node_modules/liftoff/lib/file_search.js +++ /dev/null @@ -1,14 +0,0 @@ -const findup = require('findup-sync'); - -module.exports = function (search, paths) { - var path; - var len = paths.length; - for (var i = 0; i < len; i++) { - if (path) { - break; - } else { - path = findup(search, {cwd: paths[i], nocase: true}); - } - } - return path; -}; diff --git a/node_modules/liftoff/lib/find_config.js b/node_modules/liftoff/lib/find_config.js deleted file mode 100644 index 71c3f07..0000000 --- a/node_modules/liftoff/lib/find_config.js +++ /dev/null @@ -1,25 +0,0 @@ -const fs = require('fs'); -const path = require('path'); -const fileSearch = require('./file_search'); - -module.exports = function (opts) { - opts = opts || {}; - var configNameSearch = opts.configNameSearch; - var configPath = opts.configPath; - var searchPaths = opts.searchPaths; - // only search for a config if a path to one wasn't explicitly provided - if (!configPath) { - if (!Array.isArray(searchPaths)) { - throw new Error('Please provide an array of paths to search for config in.'); - } - if (!configNameSearch) { - throw new Error('Please provide a configNameSearch.'); - } - configPath = fileSearch(configNameSearch, searchPaths); - } - // confirm the configPath exists and return an absolute path to it - if (fs.existsSync(configPath)) { - return path.resolve(configPath); - } - return null; -}; diff --git a/node_modules/liftoff/lib/find_cwd.js b/node_modules/liftoff/lib/find_cwd.js deleted file mode 100644 index 2a029b9..0000000 --- a/node_modules/liftoff/lib/find_cwd.js +++ /dev/null @@ -1,18 +0,0 @@ -const path = require('path'); - -module.exports = function (opts) { - if (!opts) { - opts = {}; - } - var cwd = opts.cwd; - var configPath = opts.configPath; - // if a path to the desired config was specified - // but no cwd was provided, use configPath dir - if (typeof configPath === 'string' && !cwd) { - cwd = path.dirname(path.resolve(configPath)); - } - if (typeof cwd === 'string') { - return path.resolve(cwd); - } - return process.cwd(); -}; diff --git a/node_modules/liftoff/lib/parse_options.js b/node_modules/liftoff/lib/parse_options.js deleted file mode 100644 index ab416b5..0000000 --- a/node_modules/liftoff/lib/parse_options.js +++ /dev/null @@ -1,35 +0,0 @@ -const extend = require('extend'); - -module.exports = function (opts) { - var defaults = { - extensions: { - '.js': null, - '.json': null - }, - searchPaths: [] - }; - if (!opts) { - opts = {}; - } - if (opts.name) { - if (!opts.processTitle) { - opts.processTitle = opts.name; - } - if (!opts.configName) { - opts.configName = opts.name + 'file'; - } - if (!opts.moduleName) { - opts.moduleName = opts.name; - } - } - if (!opts.processTitle) { - throw new Error('You must specify a processTitle.'); - } - if (!opts.configName) { - throw new Error('You must specify a configName.'); - } - if (!opts.moduleName) { - throw new Error('You must specify a moduleName.'); - } - return extend(defaults, opts); -}; diff --git a/node_modules/liftoff/lib/register_loader.js b/node_modules/liftoff/lib/register_loader.js deleted file mode 100644 index 2b5f4cb..0000000 --- a/node_modules/liftoff/lib/register_loader.js +++ /dev/null @@ -1,25 +0,0 @@ -const rechoir = require('rechoir'); -const isString = require('lodash.isstring'); - -module.exports = function(eventEmitter, extensions, configPath, cwd) { - extensions = extensions || {}; - - if (!isString(configPath)) { - return; - } - - var autoloads = rechoir.prepare(extensions, configPath, cwd, true); - if (autoloads instanceof Error) { - autoloads = autoloads.failures; - } - - if (Array.isArray(autoloads)) { - autoloads.forEach(function (attempt) { - if (attempt.error) { - eventEmitter.emit('requireFail', attempt.moduleName, attempt.error); - } else { - eventEmitter.emit('require', attempt.moduleName, attempt.module); - } - }); - } -}; diff --git a/node_modules/liftoff/lib/silent_require.js b/node_modules/liftoff/lib/silent_require.js deleted file mode 100644 index 7b4dfe4..0000000 --- a/node_modules/liftoff/lib/silent_require.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = function (path) { - try { - return require(path); - } catch (e) {} -}; diff --git a/node_modules/liftoff/package.json b/node_modules/liftoff/package.json deleted file mode 100644 index 2e67e9f..0000000 --- a/node_modules/liftoff/package.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "liftoff@^2.1.0", - "scope": null, - "escapedName": "liftoff", - "name": "liftoff", - "rawSpec": "^2.1.0", - "spec": ">=2.1.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp" - ] - ], - "_from": "liftoff@>=2.1.0 <3.0.0", - "_id": "liftoff@2.3.0", - "_inCache": true, - "_location": "/liftoff", - "_nodeVersion": "0.10.41", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/liftoff-2.3.0.tgz_1469646196567_0.8871160212438554" - }, - "_npmUser": { - "name": "phated", - "email": "blaine.bublitz@gmail.com" - }, - "_npmVersion": "2.15.2", - "_phantomChildren": {}, - "_requested": { - "raw": "liftoff@^2.1.0", - "scope": null, - "escapedName": "liftoff", - "name": "liftoff", - "rawSpec": "^2.1.0", - "spec": ">=2.1.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp" - ], - "_resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz", - "_shasum": "a98f2ff67183d8ba7cfaca10548bd7ff0550b385", - "_shrinkwrap": null, - "_spec": "liftoff@^2.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp", - "author": { - "name": "Tyler Kellen", - "url": "http://goingslowly.com/" - }, - "bugs": { - "url": "https://github.com/js-cli/js-liftoff/issues" - }, - "dependencies": { - "extend": "^3.0.0", - "findup-sync": "^0.4.2", - "fined": "^1.0.1", - "flagged-respawn": "^0.3.2", - "lodash.isplainobject": "^4.0.4", - "lodash.isstring": "^4.0.1", - "lodash.mapvalues": "^4.4.0", - "rechoir": "^0.6.2", - "resolve": "^1.1.7" - }, - "description": "Launch your command line tool with ease.", - "devDependencies": { - "chai": "^3.5.0", - "coffee-script": "^1.10.0", - "istanbul": "^0.4.3", - "jscs": "^2.11.0", - "jshint": "^2.9.2", - "mocha": "^2.4.5", - "sinon": "~1.17.4" - }, - "directories": {}, - "dist": { - "shasum": "a98f2ff67183d8ba7cfaca10548bd7ff0550b385", - "tarball": "https://registry.npmjs.org/liftoff/-/liftoff-2.3.0.tgz" - }, - "engines": { - "node": ">= 0.8" - }, - "gitHead": "be40ec3a3fa5854b4ab496a97f3d5877bf747b0b", - "homepage": "https://github.com/js-cli/js-liftoff", - "keywords": [ - "command line" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "phated", - "email": "blaine.bublitz@gmail.com" - }, - { - "name": "tkellen", - "email": "tyler@sleekcode.net" - }, - { - "name": "tusbar", - "email": "bertrand.marron@gmail.com" - } - ], - "name": "liftoff", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/js-cli/js-liftoff.git" - }, - "scripts": { - "test": "jshint lib index.js && jscs lib index.js && mocha -t 5000 -b -R spec test/index" - }, - "version": "2.3.0" -} diff --git a/node_modules/load-json-file/index.js b/node_modules/load-json-file/index.js deleted file mode 100644 index 96d4d9f..0000000 --- a/node_modules/load-json-file/index.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; -var path = require('path'); -var fs = require('graceful-fs'); -var stripBom = require('strip-bom'); -var parseJson = require('parse-json'); -var Promise = require('pinkie-promise'); -var pify = require('pify'); - -function parse(x, fp) { - return parseJson(stripBom(x), path.relative(process.cwd(), fp)); -} - -module.exports = function (fp) { - return pify(fs.readFile, Promise)(fp, 'utf8').then(function (data) { - return parse(data, fp); - }); -}; - -module.exports.sync = function (fp) { - return parse(fs.readFileSync(fp, 'utf8'), fp); -}; diff --git a/node_modules/load-json-file/license b/node_modules/load-json-file/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/load-json-file/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/load-json-file/node_modules/graceful-fs/LICENSE b/node_modules/load-json-file/node_modules/graceful-fs/LICENSE deleted file mode 100644 index 9d2c803..0000000 --- a/node_modules/load-json-file/node_modules/graceful-fs/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, 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/load-json-file/node_modules/graceful-fs/README.md b/node_modules/load-json-file/node_modules/graceful-fs/README.md deleted file mode 100644 index 5273a50..0000000 --- a/node_modules/load-json-file/node_modules/graceful-fs/README.md +++ /dev/null @@ -1,133 +0,0 @@ -# graceful-fs - -graceful-fs functions as a drop-in replacement for the fs module, -making various improvements. - -The improvements are meant to normalize behavior across different -platforms and environments, and to make filesystem access more -resilient to errors. - -## Improvements over [fs module](https://nodejs.org/api/fs.html) - -* Queues up `open` and `readdir` calls, and retries them once - something closes if there is an EMFILE error from too many file - descriptors. -* fixes `lchmod` for Node versions prior to 0.6.2. -* implements `fs.lutimes` if possible. Otherwise it becomes a noop. -* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or - `lchown` if the user isn't root. -* makes `lchmod` and `lchown` become noops, if not available. -* retries reading a file if `read` results in EAGAIN error. - -On Windows, it retries renaming a file for up to one second if `EACCESS` -or `EPERM` error occurs, likely because antivirus software has locked -the directory. - -## USAGE - -```javascript -// use just like fs -var fs = require('graceful-fs') - -// now go and do stuff with it... -fs.readFileSync('some-file-or-whatever') -``` - -## Global Patching - -If you want to patch the global fs module (or any other fs-like -module) you can do this: - -```javascript -// Make sure to read the caveat below. -var realFs = require('fs') -var gracefulFs = require('graceful-fs') -gracefulFs.gracefulify(realFs) -``` - -This should only ever be done at the top-level application layer, in -order to delay on EMFILE errors from any fs-using dependencies. You -should **not** do this in a library, because it can cause unexpected -delays in other parts of the program. - -## Changes - -This module is fairly stable at this point, and used by a lot of -things. That being said, because it implements a subtle behavior -change in a core part of the node API, even modest changes can be -extremely breaking, and the versioning is thus biased towards -bumping the major when in doubt. - -The main change between major versions has been switching between -providing a fully-patched `fs` module vs monkey-patching the node core -builtin, and the approach by which a non-monkey-patched `fs` was -created. - -The goal is to trade `EMFILE` errors for slower fs operations. So, if -you try to open a zillion files, rather than crashing, `open` -operations will be queued up and wait for something else to `close`. - -There are advantages to each approach. Monkey-patching the fs means -that no `EMFILE` errors can possibly occur anywhere in your -application, because everything is using the same core `fs` module, -which is patched. However, it can also obviously cause undesirable -side-effects, especially if the module is loaded multiple times. - -Implementing a separate-but-identical patched `fs` module is more -surgical (and doesn't run the risk of patching multiple times), but -also imposes the challenge of keeping in sync with the core module. - -The current approach loads the `fs` module, and then creates a -lookalike object that has all the same methods, except a few that are -patched. It is safe to use in all versions of Node from 0.8 through -7.0. - -### v4 - -* Do not monkey-patch the fs module. This module may now be used as a - drop-in dep, and users can opt into monkey-patching the fs builtin - if their app requires it. - -### v3 - -* Monkey-patch fs, because the eval approach no longer works on recent - node. -* fixed possible type-error throw if rename fails on windows -* verify that we *never* get EMFILE errors -* Ignore ENOSYS from chmod/chown -* clarify that graceful-fs must be used as a drop-in - -### v2.1.0 - -* Use eval rather than monkey-patching fs. -* readdir: Always sort the results -* win32: requeue a file if error has an OK status - -### v2.0 - -* A return to monkey patching -* wrap process.cwd - -### v1.1 - -* wrap readFile -* Wrap fs.writeFile. -* readdir protection -* Don't clobber the fs builtin -* Handle fs.read EAGAIN errors by trying again -* Expose the curOpen counter -* No-op lchown/lchmod if not implemented -* fs.rename patch only for win32 -* Patch fs.rename to handle AV software on Windows -* Close #4 Chown should not fail on einval or eperm if non-root -* Fix isaacs/fstream#1 Only wrap fs one time -* Fix #3 Start at 1024 max files, then back off on EMFILE -* lutimes that doens't blow up on Linux -* A full on-rewrite using a queue instead of just swallowing the EMFILE error -* Wrap Read/Write streams as well - -### 1.0 - -* Update engines for node 0.6 -* Be lstat-graceful on Windows -* first diff --git a/node_modules/load-json-file/node_modules/graceful-fs/fs.js b/node_modules/load-json-file/node_modules/graceful-fs/fs.js deleted file mode 100644 index 8ad4a38..0000000 --- a/node_modules/load-json-file/node_modules/graceful-fs/fs.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict' - -var fs = require('fs') - -module.exports = clone(fs) - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: obj.__proto__ } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} diff --git a/node_modules/load-json-file/node_modules/graceful-fs/graceful-fs.js b/node_modules/load-json-file/node_modules/graceful-fs/graceful-fs.js deleted file mode 100644 index 33b30d2..0000000 --- a/node_modules/load-json-file/node_modules/graceful-fs/graceful-fs.js +++ /dev/null @@ -1,262 +0,0 @@ -var fs = require('fs') -var polyfills = require('./polyfills.js') -var legacy = require('./legacy-streams.js') -var queue = [] - -var util = require('util') - -function noop () {} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(queue) - require('assert').equal(queue.length, 0) - }) -} - -module.exports = patch(require('./fs.js')) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) { - module.exports = patch(fs) -} - -// Always patch fs.close/closeSync, because we want to -// retry() whenever a close happens *anywhere* in the program. -// This is essential when multiple graceful-fs instances are -// in play at the same time. -module.exports.close = -fs.close = (function (fs$close) { return function (fd, cb) { - return fs$close.call(fs, fd, function (err) { - if (!err) - retry() - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) -}})(fs.close) - -module.exports.closeSync = -fs.closeSync = (function (fs$closeSync) { return function (fd) { - // Note that graceful-fs also retries when fs.closeSync() fails. - // Looks like a bug to me, although it's probably a harmless one. - var rval = fs$closeSync.apply(fs, arguments) - retry() - return rval -}})(fs.closeSync) - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - fs.FileReadStream = ReadStream; // Legacy name. - fs.FileWriteStream = WriteStream; // Legacy name. - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - var args = [path] - if (typeof options !== 'function') { - args.push(options) - } else { - cb = options - } - args.push(go$readdir$cb) - - return go$readdir(args) - - function go$readdir$cb (err, files) { - if (files && files.sort) - files.sort() - - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [args]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - } - } - - function go$readdir (args) { - return fs$readdir.apply(fs, args) - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - - var fs$WriteStream = fs.WriteStream - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - - fs.ReadStream = ReadStream - fs.WriteStream = WriteStream - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - queue.push(elem) -} - -function retry () { - var elem = queue.shift() - if (elem) { - debug('RETRY', elem[0].name, elem[1]) - elem[0].apply(null, elem[1]) - } -} diff --git a/node_modules/load-json-file/node_modules/graceful-fs/legacy-streams.js b/node_modules/load-json-file/node_modules/graceful-fs/legacy-streams.js deleted file mode 100644 index d617b50..0000000 --- a/node_modules/load-json-file/node_modules/graceful-fs/legacy-streams.js +++ /dev/null @@ -1,118 +0,0 @@ -var Stream = require('stream').Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} diff --git a/node_modules/load-json-file/node_modules/graceful-fs/package.json b/node_modules/load-json-file/node_modules/graceful-fs/package.json deleted file mode 100644 index 514bac6..0000000 --- a/node_modules/load-json-file/node_modules/graceful-fs/package.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "graceful-fs@^4.1.2", - "scope": null, - "escapedName": "graceful-fs", - "name": "graceful-fs", - "rawSpec": "^4.1.2", - "spec": ">=4.1.2 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/load-json-file" - ] - ], - "_from": "graceful-fs@>=4.1.2 <5.0.0", - "_id": "graceful-fs@4.1.11", - "_inCache": true, - "_location": "/load-json-file/graceful-fs", - "_nodeVersion": "6.5.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/graceful-fs-4.1.11.tgz_1479843029430_0.2122855328489095" - }, - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.10.9", - "_phantomChildren": {}, - "_requested": { - "raw": "graceful-fs@^4.1.2", - "scope": null, - "escapedName": "graceful-fs", - "name": "graceful-fs", - "rawSpec": "^4.1.2", - "spec": ">=4.1.2 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/load-json-file" - ], - "_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "_shasum": "0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658", - "_shrinkwrap": null, - "_spec": "graceful-fs@^4.1.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/load-json-file", - "bugs": { - "url": "https://github.com/isaacs/node-graceful-fs/issues" - }, - "dependencies": {}, - "description": "A drop-in replacement for fs, making various improvements.", - "devDependencies": { - "mkdirp": "^0.5.0", - "rimraf": "^2.2.8", - "tap": "^5.4.2" - }, - "directories": { - "test": "test" - }, - "dist": { - "shasum": "0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658", - "tarball": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz" - }, - "engines": { - "node": ">=0.4.0" - }, - "files": [ - "fs.js", - "graceful-fs.js", - "legacy-streams.js", - "polyfills.js" - ], - "gitHead": "65cf80d1fd3413b823c16c626c1e7c326452bee5", - "homepage": "https://github.com/isaacs/node-graceful-fs#readme", - "keywords": [ - "fs", - "module", - "reading", - "retry", - "retries", - "queue", - "error", - "errors", - "handling", - "EMFILE", - "EAGAIN", - "EINVAL", - "EPERM", - "EACCESS" - ], - "license": "ISC", - "main": "graceful-fs.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "graceful-fs", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/node-graceful-fs.git" - }, - "scripts": { - "test": "node test.js | tap -" - }, - "version": "4.1.11" -} diff --git a/node_modules/load-json-file/node_modules/graceful-fs/polyfills.js b/node_modules/load-json-file/node_modules/graceful-fs/polyfills.js deleted file mode 100644 index 4c6aca7..0000000 --- a/node_modules/load-json-file/node_modules/graceful-fs/polyfills.js +++ /dev/null @@ -1,330 +0,0 @@ -var fs = require('./fs.js') -var constants = require('constants') - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -var chdir = process.chdir -process.chdir = function(d) { - cwd = null - chdir.call(process, d) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (!fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (!fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = (function (fs$rename) { return function (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - }})(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - }})(fs.read) - - fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) -} - -function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } -} - -function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK")) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } -} - -function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, cb) { - return orig.call(fs, target, function (er, stats) { - if (!stats) return cb.apply(this, arguments) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - if (cb) cb.apply(this, arguments) - }) - } -} - -function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target) { - var stats = orig.call(fs, target) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - return stats; - } -} - -// ENOSYS means that the fs doesn't support the op. Just ignore -// that, because it doesn't matter. -// -// if there's no getuid, or if getuid() is something other -// than 0, and the error is EINVAL or EPERM, then just ignore -// it. -// -// This specific case is a silent failure in cp, install, tar, -// and most other unix tools that manage permissions. -// -// When running as root, or if other types of errors are -// encountered, then it's strict. -function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false -} diff --git a/node_modules/load-json-file/node_modules/strip-bom/index.js b/node_modules/load-json-file/node_modules/strip-bom/index.js deleted file mode 100644 index 5695c5c..0000000 --- a/node_modules/load-json-file/node_modules/strip-bom/index.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; -var isUtf8 = require('is-utf8'); - -module.exports = function (x) { - // Catches EFBBBF (UTF-8 BOM) because the buffer-to-string - // conversion translates it to FEFF (UTF-16 BOM) - if (typeof x === 'string' && x.charCodeAt(0) === 0xFEFF) { - return x.slice(1); - } - - if (Buffer.isBuffer(x) && isUtf8(x) && - x[0] === 0xEF && x[1] === 0xBB && x[2] === 0xBF) { - return x.slice(3); - } - - return x; -}; diff --git a/node_modules/load-json-file/node_modules/strip-bom/license b/node_modules/load-json-file/node_modules/strip-bom/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/load-json-file/node_modules/strip-bom/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/load-json-file/node_modules/strip-bom/package.json b/node_modules/load-json-file/node_modules/strip-bom/package.json deleted file mode 100644 index 8c9da0a..0000000 --- a/node_modules/load-json-file/node_modules/strip-bom/package.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "strip-bom@^2.0.0", - "scope": null, - "escapedName": "strip-bom", - "name": "strip-bom", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/load-json-file" - ] - ], - "_from": "strip-bom@>=2.0.0 <3.0.0", - "_id": "strip-bom@2.0.0", - "_inCache": true, - "_location": "/load-json-file/strip-bom", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.11.2", - "_phantomChildren": {}, - "_requested": { - "raw": "strip-bom@^2.0.0", - "scope": null, - "escapedName": "strip-bom", - "name": "strip-bom", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/load-json-file" - ], - "_resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "_shasum": "6219a85616520491f35788bdbf1447a99c7e6b0e", - "_shrinkwrap": null, - "_spec": "strip-bom@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/load-json-file", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/strip-bom/issues" - }, - "dependencies": { - "is-utf8": "^0.2.0" - }, - "description": "Strip UTF-8 byte order mark (BOM) from a string/buffer", - "devDependencies": { - "mocha": "*" - }, - "directories": {}, - "dist": { - "shasum": "6219a85616520491f35788bdbf1447a99c7e6b0e", - "tarball": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "851b9c126dba9561cc14ef3dc2634dcc11df4d11", - "homepage": "https://github.com/sindresorhus/strip-bom", - "keywords": [ - "bom", - "strip", - "byte", - "mark", - "unicode", - "utf8", - "utf-8", - "remove", - "delete", - "trim", - "text", - "buffer", - "string" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "strip-bom", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/strip-bom.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "2.0.0" -} diff --git a/node_modules/load-json-file/node_modules/strip-bom/readme.md b/node_modules/load-json-file/node_modules/strip-bom/readme.md deleted file mode 100644 index 8ecf258..0000000 --- a/node_modules/load-json-file/node_modules/strip-bom/readme.md +++ /dev/null @@ -1,39 +0,0 @@ -# strip-bom [![Build Status](https://travis-ci.org/sindresorhus/strip-bom.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-bom) - -> Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a string/buffer - -From Wikipedia: - -> The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8. - - -## Install - -``` -$ npm install --save strip-bom -``` - - -## Usage - -```js -var fs = require('fs'); -var stripBom = require('strip-bom'); - -stripBom('\uFEFFunicorn'); -//=> 'unicorn' - -stripBom(fs.readFileSync('unicorn.txt')); -//=> 'unicorn' -``` - - -## Related - -- [strip-bom-cli](https://github.com/sindresorhus/strip-bom-cli) - CLI for this module -- [strip-bom-stream](https://github.com/sindresorhus/strip-bom-stream) - Stream version of this module - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/load-json-file/package.json b/node_modules/load-json-file/package.json deleted file mode 100644 index 23ce711..0000000 --- a/node_modules/load-json-file/package.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "load-json-file@^1.0.0", - "scope": null, - "escapedName": "load-json-file", - "name": "load-json-file", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/read-pkg" - ] - ], - "_from": "load-json-file@>=1.0.0 <2.0.0", - "_id": "load-json-file@1.1.0", - "_inCache": true, - "_location": "/load-json-file", - "_nodeVersion": "4.2.1", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.7", - "_phantomChildren": { - "is-utf8": "0.2.1" - }, - "_requested": { - "raw": "load-json-file@^1.0.0", - "scope": null, - "escapedName": "load-json-file", - "name": "load-json-file", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/read-pkg" - ], - "_resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "_shasum": "956905708d58b4bab4c2261b04f59f31c99374c0", - "_shrinkwrap": null, - "_spec": "load-json-file@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/read-pkg", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/load-json-file/issues" - }, - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - }, - "description": "Read and parse a JSON file", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "956905708d58b4bab4c2261b04f59f31c99374c0", - "tarball": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "115157a417380d3160da418d4ff25bb33b0051eb", - "homepage": "https://github.com/sindresorhus/load-json-file", - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "load-json-file", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/load-json-file.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.1.0", - "xo": { - "ignores": [ - "test.js" - ] - } -} diff --git a/node_modules/load-json-file/readme.md b/node_modules/load-json-file/readme.md deleted file mode 100644 index fa982b5..0000000 --- a/node_modules/load-json-file/readme.md +++ /dev/null @@ -1,45 +0,0 @@ -# load-json-file [![Build Status](https://travis-ci.org/sindresorhus/load-json-file.svg?branch=master)](https://travis-ci.org/sindresorhus/load-json-file) - -> Read and parse a JSON file - -[Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom), uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs), and throws more [helpful JSON errors](https://github.com/sindresorhus/parse-json). - - -## Install - -``` -$ npm install --save load-json-file -``` - - -## Usage - -```js -const loadJsonFile = require('load-json-file'); - -loadJsonFile('foo.json').then(json => { - console.log(json); - //=> {foo: true} -}); -``` - - -## API - -### loadJsonFile(filepath) - -Returns a promise that resolves to the parsed JSON. - -### loadJsonFile.sync(filepath) - -Returns the parsed JSON. - - -## Related - -- [write-json-file](https://github.com/sindresorhus/write-json-file) - Stringify and write JSON to a file atomically - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/lodash._arraycopy/LICENSE.txt b/node_modules/lodash._arraycopy/LICENSE.txt deleted file mode 100644 index 1776432..0000000 --- a/node_modules/lodash._arraycopy/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._arraycopy/README.md b/node_modules/lodash._arraycopy/README.md deleted file mode 100644 index 16ee6fd..0000000 --- a/node_modules/lodash._arraycopy/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._arraycopy v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `arrayCopy` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._arraycopy -``` - -In Node.js/io.js: - -```js -var arrayCopy = require('lodash._arraycopy'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._arraycopy) for more details. diff --git a/node_modules/lodash._arraycopy/index.js b/node_modules/lodash._arraycopy/index.js deleted file mode 100644 index b9abb22..0000000 --- a/node_modules/lodash._arraycopy/index.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * Copies the values of `source` to `array`. - * - * @private - * @param {Array} source The array to copy values from. - * @param {Array} [array=[]] The array to copy values to. - * @returns {Array} Returns `array`. - */ -function arrayCopy(source, array) { - var index = -1, - length = source.length; - - array || (array = Array(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; -} - -module.exports = arrayCopy; diff --git a/node_modules/lodash._arraycopy/package.json b/node_modules/lodash._arraycopy/package.json deleted file mode 100644 index 5dcd2cd..0000000 --- a/node_modules/lodash._arraycopy/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._arraycopy@^3.0.0", - "scope": null, - "escapedName": "lodash._arraycopy", - "name": "lodash._arraycopy", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash._baseclone" - ] - ], - "_from": "lodash._arraycopy@>=3.0.0 <4.0.0", - "_id": "lodash._arraycopy@3.0.0", - "_inCache": true, - "_location": "/lodash._arraycopy", - "_nodeVersion": "0.10.35", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.3.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._arraycopy@^3.0.0", - "scope": null, - "escapedName": "lodash._arraycopy", - "name": "lodash._arraycopy", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._baseclone" - ], - "_resolved": "https://registry.npmjs.org/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz", - "_shasum": "76e7b7c1f1fb92547374878a562ed06a3e50f6e1", - "_shrinkwrap": null, - "_spec": "lodash._arraycopy@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash._baseclone", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `arrayCopy` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "76e7b7c1f1fb92547374878a562ed06a3e50f6e1", - "tarball": "https://registry.npmjs.org/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - } - ], - "name": "lodash._arraycopy", - "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": "3.0.0" -} diff --git a/node_modules/lodash._arrayeach/LICENSE.txt b/node_modules/lodash._arrayeach/LICENSE.txt deleted file mode 100644 index 1776432..0000000 --- a/node_modules/lodash._arrayeach/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._arrayeach/README.md b/node_modules/lodash._arrayeach/README.md deleted file mode 100644 index 1f3236b..0000000 --- a/node_modules/lodash._arrayeach/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._arrayeach v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `arrayEach` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._arrayeach -``` - -In Node.js/io.js: - -```js -var arrayEach = require('lodash._arrayeach'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._arrayeach) for more details. diff --git a/node_modules/lodash._arrayeach/index.js b/node_modules/lodash._arrayeach/index.js deleted file mode 100644 index 7b31bcd..0000000 --- a/node_modules/lodash._arrayeach/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * A specialized version of `_.forEach` for arrays without support for callback - * shorthands or `this` binding. - * - * @private - * @param {Array} array The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. - */ -function arrayEach(array, iteratee) { - var index = -1, - length = array.length; - - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; -} - -module.exports = arrayEach; diff --git a/node_modules/lodash._arrayeach/package.json b/node_modules/lodash._arrayeach/package.json deleted file mode 100644 index 5a7306e..0000000 --- a/node_modules/lodash._arrayeach/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._arrayeach@^3.0.0", - "scope": null, - "escapedName": "lodash._arrayeach", - "name": "lodash._arrayeach", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash._baseclone" - ] - ], - "_from": "lodash._arrayeach@>=3.0.0 <4.0.0", - "_id": "lodash._arrayeach@3.0.0", - "_inCache": true, - "_location": "/lodash._arrayeach", - "_nodeVersion": "0.10.35", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.3.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._arrayeach@^3.0.0", - "scope": null, - "escapedName": "lodash._arrayeach", - "name": "lodash._arrayeach", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._baseclone" - ], - "_resolved": "https://registry.npmjs.org/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz", - "_shasum": "bab156b2a90d3f1bbd5c653403349e5e5933ef9e", - "_shrinkwrap": null, - "_spec": "lodash._arrayeach@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash._baseclone", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `arrayEach` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "bab156b2a90d3f1bbd5c653403349e5e5933ef9e", - "tarball": "https://registry.npmjs.org/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - } - ], - "name": "lodash._arrayeach", - "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": "3.0.0" -} diff --git a/node_modules/lodash._baseassign/LICENSE.txt b/node_modules/lodash._baseassign/LICENSE.txt deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash._baseassign/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._baseassign/README.md b/node_modules/lodash._baseassign/README.md deleted file mode 100644 index 0aa2309..0000000 --- a/node_modules/lodash._baseassign/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._baseassign v3.2.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseAssign` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._baseassign -``` - -In Node.js/io.js: - -```js -var baseAssign = require('lodash._baseassign'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash._baseassign) for more details. diff --git a/node_modules/lodash._baseassign/index.js b/node_modules/lodash._baseassign/index.js deleted file mode 100644 index f5612c8..0000000 --- a/node_modules/lodash._baseassign/index.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * lodash 3.2.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var baseCopy = require('lodash._basecopy'), - keys = require('lodash.keys'); - -/** - * The base implementation of `_.assign` without support for argument juggling, - * multiple sources, and `customizer` functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @returns {Object} Returns `object`. - */ -function baseAssign(object, source) { - return source == null - ? object - : baseCopy(source, keys(source), object); -} - -module.exports = baseAssign; diff --git a/node_modules/lodash._baseassign/package.json b/node_modules/lodash._baseassign/package.json deleted file mode 100644 index 533723c..0000000 --- a/node_modules/lodash._baseassign/package.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._baseassign@^3.0.0", - "scope": null, - "escapedName": "lodash._baseassign", - "name": "lodash._baseassign", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.assign" - ] - ], - "_from": "lodash._baseassign@>=3.0.0 <4.0.0", - "_id": "lodash._baseassign@3.2.0", - "_inCache": true, - "_location": "/lodash._baseassign", - "_nodeVersion": "0.12.3", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.10.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._baseassign@^3.0.0", - "scope": null, - "escapedName": "lodash._baseassign", - "name": "lodash._baseassign", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._baseclone", - "/lodash.assign" - ], - "_resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", - "_shasum": "8c38a099500f215ad09e59f1722fd0c52bfe0a4e", - "_shrinkwrap": null, - "_spec": "lodash._baseassign@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.assign", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._basecopy": "^3.0.0", - "lodash.keys": "^3.0.0" - }, - "description": "The modern build of lodash’s internal `baseAssign` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "8c38a099500f215ad09e59f1722fd0c52bfe0a4e", - "tarball": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._baseassign", - "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": "3.2.0" -} diff --git a/node_modules/lodash._baseclone/LICENSE b/node_modules/lodash._baseclone/LICENSE deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash._baseclone/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._baseclone/README.md b/node_modules/lodash._baseclone/README.md deleted file mode 100644 index 883a43c..0000000 --- a/node_modules/lodash._baseclone/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._baseclone v3.3.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseClone` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._baseclone -``` - -In Node.js/io.js: - -```js -var baseClone = require('lodash._baseclone'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.3.0-npm-packages/lodash._baseclone) for more details. diff --git a/node_modules/lodash._baseclone/index.js b/node_modules/lodash._baseclone/index.js deleted file mode 100644 index 4024d58..0000000 --- a/node_modules/lodash._baseclone/index.js +++ /dev/null @@ -1,271 +0,0 @@ -/** - * lodash 3.3.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var arrayCopy = require('lodash._arraycopy'), - arrayEach = require('lodash._arrayeach'), - baseAssign = require('lodash._baseassign'), - baseFor = require('lodash._basefor'), - isArray = require('lodash.isarray'), - keys = require('lodash.keys'); - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** Used to match `RegExp` flags from their coerced string values. */ -var reFlags = /\w*$/; - -/** Used to identify `toStringTag` values supported by `_.clone`. */ -var cloneableTags = {}; -cloneableTags[argsTag] = cloneableTags[arrayTag] = -cloneableTags[arrayBufferTag] = cloneableTags[boolTag] = -cloneableTags[dateTag] = cloneableTags[float32Tag] = -cloneableTags[float64Tag] = cloneableTags[int8Tag] = -cloneableTags[int16Tag] = cloneableTags[int32Tag] = -cloneableTags[numberTag] = cloneableTags[objectTag] = -cloneableTags[regexpTag] = cloneableTags[stringTag] = -cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = -cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; -cloneableTags[errorTag] = cloneableTags[funcTag] = -cloneableTags[mapTag] = cloneableTags[setTag] = -cloneableTags[weakMapTag] = false; - -/** Used for native 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/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objToString = objectProto.toString; - -/** Native method references. */ -var ArrayBuffer = global.ArrayBuffer, - Uint8Array = global.Uint8Array; - -/** - * The base implementation of `_.clone` without support for argument juggling - * and `this` binding `customizer` functions. - * - * @private - * @param {*} value The value to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @param {Function} [customizer] The function to customize cloning values. - * @param {string} [key] The key of `value`. - * @param {Object} [object] The object `value` belongs to. - * @param {Array} [stackA=[]] Tracks traversed source objects. - * @param {Array} [stackB=[]] Associates clones with source counterparts. - * @returns {*} Returns the cloned value. - */ -function baseClone(value, isDeep, customizer, key, object, stackA, stackB) { - var result; - if (customizer) { - result = object ? customizer(value, key, object) : customizer(value); - } - if (result !== undefined) { - return result; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result = initCloneArray(value); - if (!isDeep) { - return arrayCopy(value, result); - } - } else { - var tag = objToString.call(value), - isFunc = tag == funcTag; - - if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - result = initCloneObject(isFunc ? {} : value); - if (!isDeep) { - return baseAssign(result, value); - } - } else { - return cloneableTags[tag] - ? initCloneByTag(value, tag, isDeep) - : (object ? value : {}); - } - } - // Check for circular references and return its corresponding clone. - stackA || (stackA = []); - stackB || (stackB = []); - - var length = stackA.length; - while (length--) { - if (stackA[length] == value) { - return stackB[length]; - } - } - // Add the source value to the stack of traversed objects and associate it with its clone. - stackA.push(value); - stackB.push(result); - - // Recursively populate clone (susceptible to call stack limits). - (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) { - result[key] = baseClone(subValue, isDeep, customizer, key, value, stackA, stackB); - }); - return result; -} - -/** - * The base implementation of `_.forOwn` without support for callback - * shorthands and `this` binding. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Object} Returns `object`. - */ -function baseForOwn(object, iteratee) { - return baseFor(object, iteratee, keys); -} - -/** - * Creates a clone of the given array buffer. - * - * @private - * @param {ArrayBuffer} buffer The array buffer to clone. - * @returns {ArrayBuffer} Returns the cloned array buffer. - */ -function bufferClone(buffer) { - var result = new ArrayBuffer(buffer.byteLength), - view = new Uint8Array(result); - - view.set(new Uint8Array(buffer)); - return result; -} - -/** - * Initializes an array clone. - * - * @private - * @param {Array} array The array to clone. - * @returns {Array} Returns the initialized clone. - */ -function initCloneArray(array) { - var length = array.length, - result = new array.constructor(length); - - // Add array properties assigned by `RegExp#exec`. - if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { - result.index = array.index; - result.input = array.input; - } - return result; -} - -/** - * Initializes an object clone. - * - * @private - * @param {Object} object The object to clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneObject(object) { - var Ctor = object.constructor; - if (!(typeof Ctor == 'function' && Ctor instanceof Ctor)) { - Ctor = Object; - } - return new Ctor; -} - -/** - * Initializes an object clone based on its `toStringTag`. - * - * **Note:** This function only supports cloning values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to clone. - * @param {string} tag The `toStringTag` of the object to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneByTag(object, tag, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return bufferClone(object); - - case boolTag: - case dateTag: - return new Ctor(+object); - - case float32Tag: case float64Tag: - case int8Tag: case int16Tag: case int32Tag: - case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: - var buffer = object.buffer; - return new Ctor(isDeep ? bufferClone(buffer) : buffer, object.byteOffset, object.length); - - case numberTag: - case stringTag: - return new Ctor(object); - - case regexpTag: - var result = new Ctor(object.source, reFlags.exec(object)); - result.lastIndex = object.lastIndex; - } - return result; -} - -/** - * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @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(1); - * // => false - */ -function isObject(value) { - // Avoid a V8 JIT bug in Chrome 19-20. - // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -module.exports = baseClone; diff --git a/node_modules/lodash._baseclone/package.json b/node_modules/lodash._baseclone/package.json deleted file mode 100644 index b0e2d0f..0000000 --- a/node_modules/lodash._baseclone/package.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._baseclone@^3.0.0", - "scope": null, - "escapedName": "lodash._baseclone", - "name": "lodash._baseclone", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.clonedeep" - ] - ], - "_from": "lodash._baseclone@>=3.0.0 <4.0.0", - "_id": "lodash._baseclone@3.3.0", - "_inCache": true, - "_location": "/lodash._baseclone", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.12.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._baseclone@^3.0.0", - "scope": null, - "escapedName": "lodash._baseclone", - "name": "lodash._baseclone", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.clonedeep" - ], - "_resolved": "https://registry.npmjs.org/lodash._baseclone/-/lodash._baseclone-3.3.0.tgz", - "_shasum": "303519bf6393fe7e42f34d8b630ef7794e3542b7", - "_shrinkwrap": null, - "_spec": "lodash._baseclone@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.clonedeep", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._arraycopy": "^3.0.0", - "lodash._arrayeach": "^3.0.0", - "lodash._baseassign": "^3.0.0", - "lodash._basefor": "^3.0.0", - "lodash.isarray": "^3.0.0", - "lodash.keys": "^3.0.0" - }, - "description": "The modern build of lodash’s internal `baseClone` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "303519bf6393fe7e42f34d8b630ef7794e3542b7", - "tarball": "https://registry.npmjs.org/lodash._baseclone/-/lodash._baseclone-3.3.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - } - ], - "name": "lodash._baseclone", - "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": "3.3.0" -} diff --git a/node_modules/lodash._basecopy/LICENSE.txt b/node_modules/lodash._basecopy/LICENSE.txt deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash._basecopy/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._basecopy/README.md b/node_modules/lodash._basecopy/README.md deleted file mode 100644 index acdfa29..0000000 --- a/node_modules/lodash._basecopy/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._basecopy v3.0.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCopy` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._basecopy -``` - -In Node.js/io.js: - -```js -var baseCopy = require('lodash._basecopy'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecopy) for more details. diff --git a/node_modules/lodash._basecopy/index.js b/node_modules/lodash._basecopy/index.js deleted file mode 100644 index b586d31..0000000 --- a/node_modules/lodash._basecopy/index.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * Copies properties of `source` to `object`. - * - * @private - * @param {Object} source The object to copy properties from. - * @param {Array} props The property names to copy. - * @param {Object} [object={}] The object to copy properties to. - * @returns {Object} Returns `object`. - */ -function baseCopy(source, props, object) { - object || (object = {}); - - var index = -1, - length = props.length; - - while (++index < length) { - var key = props[index]; - object[key] = source[key]; - } - return object; -} - -module.exports = baseCopy; diff --git a/node_modules/lodash._basecopy/package.json b/node_modules/lodash._basecopy/package.json deleted file mode 100644 index c8afc1a..0000000 --- a/node_modules/lodash._basecopy/package.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._basecopy@^3.0.0", - "scope": null, - "escapedName": "lodash._basecopy", - "name": "lodash._basecopy", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.template" - ] - ], - "_from": "lodash._basecopy@>=3.0.0 <4.0.0", - "_id": "lodash._basecopy@3.0.1", - "_inCache": true, - "_location": "/lodash._basecopy", - "_nodeVersion": "0.12.2", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.7.6", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._basecopy@^3.0.0", - "scope": null, - "escapedName": "lodash._basecopy", - "name": "lodash._basecopy", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._baseassign", - "/lodash.template" - ], - "_resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", - "_shasum": "8da0e6a876cf344c0ad8a54882111dd3c5c7ca36", - "_shrinkwrap": null, - "_spec": "lodash._basecopy@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.template", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `baseCopy` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "8da0e6a876cf344c0ad8a54882111dd3c5c7ca36", - "tarball": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._basecopy", - "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": "3.0.1" -} diff --git a/node_modules/lodash._basefor/LICENSE b/node_modules/lodash._basefor/LICENSE deleted file mode 100644 index b054ca5..0000000 --- a/node_modules/lodash._basefor/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2016 The Dojo Foundation -Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._basefor/README.md b/node_modules/lodash._basefor/README.md deleted file mode 100644 index b17e221..0000000 --- a/node_modules/lodash._basefor/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash._basefor v3.0.3 - -The internal [lodash](https://lodash.com/) function `baseFor` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._basefor -``` - -In Node.js: -```js -var baseFor = require('lodash._basefor'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash._basefor) for more details. diff --git a/node_modules/lodash._basefor/index.js b/node_modules/lodash._basefor/index.js deleted file mode 100644 index 3f1d189..0000000 --- a/node_modules/lodash._basefor/index.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * lodash 3.0.3 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * The base implementation of `baseForIn` and `baseForOwn` which iterates - * over `object` properties returned by `keysFunc` invoking `iteratee` for - * each property. Iteratee functions may exit iteration early by explicitly - * returning `false`. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {Function} keysFunc The function to get the keys of `object`. - * @returns {Object} Returns `object`. - */ -var baseFor = createBaseFor(); - -/** - * Creates a base function for methods like `_.forIn`. - * - * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. - */ -function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; -} - -module.exports = baseFor; diff --git a/node_modules/lodash._basefor/package.json b/node_modules/lodash._basefor/package.json deleted file mode 100644 index fdeef92..0000000 --- a/node_modules/lodash._basefor/package.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._basefor@^3.0.0", - "scope": null, - "escapedName": "lodash._basefor", - "name": "lodash._basefor", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash._baseclone" - ] - ], - "_from": "lodash._basefor@>=3.0.0 <4.0.0", - "_id": "lodash._basefor@3.0.3", - "_inCache": true, - "_location": "/lodash._basefor", - "_nodeVersion": "5.4.0", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.14.15", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._basefor@^3.0.0", - "scope": null, - "escapedName": "lodash._basefor", - "name": "lodash._basefor", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._baseclone" - ], - "_resolved": "https://registry.npmjs.org/lodash._basefor/-/lodash._basefor-3.0.3.tgz", - "_shasum": "7550b4e9218ef09fad24343b612021c79b4c20c2", - "_shrinkwrap": null, - "_spec": "lodash._basefor@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash._baseclone", - "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@iceddev.com", - "url": "https://github.com/phated" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The internal lodash function `baseFor` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "7550b4e9218ef09fad24343b612021c79b4c20c2", - "tarball": "https://registry.npmjs.org/lodash._basefor/-/lodash._basefor-3.0.3.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "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._basefor", - "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": "3.0.3" -} diff --git a/node_modules/lodash._basetostring/LICENSE b/node_modules/lodash._basetostring/LICENSE deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash._basetostring/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._basetostring/README.md b/node_modules/lodash._basetostring/README.md deleted file mode 100644 index f81145e..0000000 --- a/node_modules/lodash._basetostring/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._basetostring v3.0.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseToString` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._basetostring -``` - -In Node.js/io.js: - -```js -var baseToString = require('lodash._basetostring'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basetostring) for more details. diff --git a/node_modules/lodash._basetostring/index.js b/node_modules/lodash._basetostring/index.js deleted file mode 100644 index db8ecc9..0000000 --- a/node_modules/lodash._basetostring/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * Converts `value` to a string if it's not one. An empty string is returned - * for `null` or `undefined` values. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - return value == null ? '' : (value + ''); -} - -module.exports = baseToString; diff --git a/node_modules/lodash._basetostring/package.json b/node_modules/lodash._basetostring/package.json deleted file mode 100644 index 3b0c96b..0000000 --- a/node_modules/lodash._basetostring/package.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._basetostring@^3.0.0", - "scope": null, - "escapedName": "lodash._basetostring", - "name": "lodash._basetostring", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.template" - ] - ], - "_from": "lodash._basetostring@>=3.0.0 <4.0.0", - "_id": "lodash._basetostring@3.0.1", - "_inCache": true, - "_location": "/lodash._basetostring", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.12.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._basetostring@^3.0.0", - "scope": null, - "escapedName": "lodash._basetostring", - "name": "lodash._basetostring", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.template" - ], - "_resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", - "_shasum": "d1861d877f824a52f669832dcaf3ee15566a07d5", - "_shrinkwrap": null, - "_spec": "lodash._basetostring@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.template", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `baseToString` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "d1861d877f824a52f669832dcaf3ee15566a07d5", - "tarball": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._basetostring", - "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": "3.0.1" -} diff --git a/node_modules/lodash._basevalues/LICENSE.txt b/node_modules/lodash._basevalues/LICENSE.txt deleted file mode 100644 index 1776432..0000000 --- a/node_modules/lodash._basevalues/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._basevalues/README.md b/node_modules/lodash._basevalues/README.md deleted file mode 100644 index 206ba71..0000000 --- a/node_modules/lodash._basevalues/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._basevalues v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseValues` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._basevalues -``` - -In Node.js/io.js: - -```js -var baseValues = require('lodash._basevalues'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basevalues) for more details. diff --git a/node_modules/lodash._basevalues/index.js b/node_modules/lodash._basevalues/index.js deleted file mode 100644 index 28c8215..0000000 --- a/node_modules/lodash._basevalues/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * The base implementation of `_.values` and `_.valuesIn` which creates an - * array of `object` property values corresponding to the property names - * returned by `keysFunc`. - * - * @private - * @param {Object} object The object to query. - * @param {Array} props The property names to get values for. - * @returns {Object} Returns the array of property values. - */ -function baseValues(object, props) { - var index = -1, - length = props.length, - result = Array(length); - - while (++index < length) { - result[index] = object[props[index]]; - } - return result; -} - -module.exports = baseValues; diff --git a/node_modules/lodash._basevalues/package.json b/node_modules/lodash._basevalues/package.json deleted file mode 100644 index b13e9cf..0000000 --- a/node_modules/lodash._basevalues/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._basevalues@^3.0.0", - "scope": null, - "escapedName": "lodash._basevalues", - "name": "lodash._basevalues", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.template" - ] - ], - "_from": "lodash._basevalues@>=3.0.0 <4.0.0", - "_id": "lodash._basevalues@3.0.0", - "_inCache": true, - "_location": "/lodash._basevalues", - "_nodeVersion": "0.10.35", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.3.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._basevalues@^3.0.0", - "scope": null, - "escapedName": "lodash._basevalues", - "name": "lodash._basevalues", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.template" - ], - "_resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", - "_shasum": "5b775762802bde3d3297503e26300820fdf661b7", - "_shrinkwrap": null, - "_spec": "lodash._basevalues@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.template", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `baseValues` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "5b775762802bde3d3297503e26300820fdf661b7", - "tarball": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - } - ], - "name": "lodash._basevalues", - "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": "3.0.0" -} diff --git a/node_modules/lodash._bindcallback/LICENSE.txt b/node_modules/lodash._bindcallback/LICENSE.txt deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash._bindcallback/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._bindcallback/README.md b/node_modules/lodash._bindcallback/README.md deleted file mode 100644 index d287f26..0000000 --- a/node_modules/lodash._bindcallback/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._bindcallback v3.0.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `bindCallback` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._bindcallback -``` - -In Node.js/io.js: - -```js -var bindCallback = require('lodash._bindcallback'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._bindcallback) for more details. diff --git a/node_modules/lodash._bindcallback/index.js b/node_modules/lodash._bindcallback/index.js deleted file mode 100644 index ef6811d..0000000 --- a/node_modules/lodash._bindcallback/index.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * A specialized version of `baseCallback` which only supports `this` binding - * and specifying the number of arguments to provide to `func`. - * - * @private - * @param {Function} func The function to bind. - * @param {*} thisArg The `this` binding of `func`. - * @param {number} [argCount] The number of arguments to provide to `func`. - * @returns {Function} Returns the callback. - */ -function bindCallback(func, thisArg, argCount) { - if (typeof func != 'function') { - return identity; - } - if (thisArg === undefined) { - return func; - } - switch (argCount) { - case 1: return function(value) { - return func.call(thisArg, value); - }; - case 3: return function(value, index, collection) { - return func.call(thisArg, value, index, collection); - }; - case 4: return function(accumulator, value, index, collection) { - return func.call(thisArg, accumulator, value, index, collection); - }; - case 5: return function(value, other, key, object, source) { - return func.call(thisArg, value, other, key, object, source); - }; - } - return function() { - return func.apply(thisArg, arguments); - }; -} - -/** - * This method returns the first argument provided to it. - * - * @static - * @memberOf _ - * @category Utility - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example - * - * var object = { 'user': 'fred' }; - * - * _.identity(object) === object; - * // => true - */ -function identity(value) { - return value; -} - -module.exports = bindCallback; diff --git a/node_modules/lodash._bindcallback/package.json b/node_modules/lodash._bindcallback/package.json deleted file mode 100644 index 1d0720a..0000000 --- a/node_modules/lodash._bindcallback/package.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._bindcallback@^3.0.0", - "scope": null, - "escapedName": "lodash._bindcallback", - "name": "lodash._bindcallback", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash._createassigner" - ] - ], - "_from": "lodash._bindcallback@>=3.0.0 <4.0.0", - "_id": "lodash._bindcallback@3.0.1", - "_inCache": true, - "_location": "/lodash._bindcallback", - "_nodeVersion": "0.12.2", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.7.6", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._bindcallback@^3.0.0", - "scope": null, - "escapedName": "lodash._bindcallback", - "name": "lodash._bindcallback", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._createassigner", - "/lodash.clonedeep" - ], - "_resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz", - "_shasum": "e531c27644cf8b57a99e17ed95b35c748789392e", - "_shrinkwrap": null, - "_spec": "lodash._bindcallback@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash._createassigner", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `bindCallback` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "e531c27644cf8b57a99e17ed95b35c748789392e", - "tarball": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._bindcallback", - "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": "3.0.1" -} diff --git a/node_modules/lodash._createassigner/LICENSE.txt b/node_modules/lodash._createassigner/LICENSE.txt deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash._createassigner/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._createassigner/README.md b/node_modules/lodash._createassigner/README.md deleted file mode 100644 index daeebce..0000000 --- a/node_modules/lodash._createassigner/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._createassigner v3.1.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createAssigner` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._createassigner -``` - -In Node.js/io.js: - -```js -var createAssigner = require('lodash._createassigner'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash._createassigner) for more details. diff --git a/node_modules/lodash._createassigner/index.js b/node_modules/lodash._createassigner/index.js deleted file mode 100644 index 2fdfba7..0000000 --- a/node_modules/lodash._createassigner/index.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * lodash 3.1.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var bindCallback = require('lodash._bindcallback'), - isIterateeCall = require('lodash._isiterateecall'), - restParam = require('lodash.restparam'); - -/** - * Creates a function that assigns properties of source object(s) to a given - * destination object. - * - * **Note:** This function is used to create `_.assign`, `_.defaults`, and `_.merge`. - * - * @private - * @param {Function} assigner The function to assign values. - * @returns {Function} Returns the new assigner function. - */ -function createAssigner(assigner) { - return restParam(function(object, sources) { - var index = -1, - length = object == null ? 0 : sources.length, - customizer = length > 2 ? sources[length - 2] : undefined, - guard = length > 2 ? sources[2] : undefined, - thisArg = length > 1 ? sources[length - 1] : undefined; - - if (typeof customizer == 'function') { - customizer = bindCallback(customizer, thisArg, 5); - length -= 2; - } else { - customizer = typeof thisArg == 'function' ? thisArg : undefined; - length -= (customizer ? 1 : 0); - } - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined : customizer; - length = 1; - } - while (++index < length) { - var source = sources[index]; - if (source) { - assigner(object, source, customizer); - } - } - return object; - }); -} - -module.exports = createAssigner; diff --git a/node_modules/lodash._createassigner/package.json b/node_modules/lodash._createassigner/package.json deleted file mode 100644 index b50dfd2..0000000 --- a/node_modules/lodash._createassigner/package.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._createassigner@^3.0.0", - "scope": null, - "escapedName": "lodash._createassigner", - "name": "lodash._createassigner", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.assign" - ] - ], - "_from": "lodash._createassigner@>=3.0.0 <4.0.0", - "_id": "lodash._createassigner@3.1.1", - "_inCache": true, - "_location": "/lodash._createassigner", - "_nodeVersion": "0.12.3", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.10.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._createassigner@^3.0.0", - "scope": null, - "escapedName": "lodash._createassigner", - "name": "lodash._createassigner", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.assign" - ], - "_resolved": "https://registry.npmjs.org/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz", - "_shasum": "838a5bae2fdaca63ac22dee8e19fa4e6d6970b11", - "_shrinkwrap": null, - "_spec": "lodash._createassigner@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.assign", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._bindcallback": "^3.0.0", - "lodash._isiterateecall": "^3.0.0", - "lodash.restparam": "^3.0.0" - }, - "description": "The modern build of lodash’s internal `createAssigner` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "838a5bae2fdaca63ac22dee8e19fa4e6d6970b11", - "tarball": "https://registry.npmjs.org/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._createassigner", - "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": "3.1.1" -} diff --git a/node_modules/lodash._escapehtmlchar/LICENSE.txt b/node_modules/lodash._escapehtmlchar/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash._escapehtmlchar/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash._escapehtmlchar/README.md b/node_modules/lodash._escapehtmlchar/README.md deleted file mode 100644 index eef7f9c..0000000 --- a/node_modules/lodash._escapehtmlchar/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash._escapehtmlchar v2.4.1 - -The internal [Lo-Dash](http://lodash.com/) function `escapeHtmlChar` as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash._escapehtmlchar/index.js b/node_modules/lodash._escapehtmlchar/index.js deleted file mode 100644 index ce4e6d8..0000000 --- a/node_modules/lodash._escapehtmlchar/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var htmlEscapes = require('lodash._htmlescapes'); - -/** - * Used by `escape` to convert characters to HTML entities. - * - * @private - * @param {string} match The matched character to escape. - * @returns {string} Returns the escaped character. - */ -function escapeHtmlChar(match) { - return htmlEscapes[match]; -} - -module.exports = escapeHtmlChar; diff --git a/node_modules/lodash._escapehtmlchar/package.json b/node_modules/lodash._escapehtmlchar/package.json deleted file mode 100644 index bb4eaa5..0000000 --- a/node_modules/lodash._escapehtmlchar/package.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._escapehtmlchar@~2.4.1", - "scope": null, - "escapedName": "lodash._escapehtmlchar", - "name": "lodash._escapehtmlchar", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/lodash.escape" - ] - ], - "_from": "lodash._escapehtmlchar@>=2.4.1 <2.5.0", - "_id": "lodash._escapehtmlchar@2.4.1", - "_inCache": true, - "_location": "/lodash._escapehtmlchar", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._escapehtmlchar@~2.4.1", - "scope": null, - "escapedName": "lodash._escapehtmlchar", - "name": "lodash._escapehtmlchar", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/lodash.escape" - ], - "_resolved": "https://registry.npmjs.org/lodash._escapehtmlchar/-/lodash._escapehtmlchar-2.4.1.tgz", - "_shasum": "df67c3bb6b7e8e1e831ab48bfa0795b92afe899d", - "_shrinkwrap": null, - "_spec": "lodash._escapehtmlchar@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/lodash.escape", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._htmlescapes": "~2.4.1" - }, - "description": "The internal Lo-Dash function `escapeHtmlChar` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "df67c3bb6b7e8e1e831ab48bfa0795b92afe899d", - "tarball": "https://registry.npmjs.org/lodash._escapehtmlchar/-/lodash._escapehtmlchar-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._escapehtmlchar", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash._escapestringchar/LICENSE.txt b/node_modules/lodash._escapestringchar/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash._escapestringchar/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash._escapestringchar/README.md b/node_modules/lodash._escapestringchar/README.md deleted file mode 100644 index 6191a19..0000000 --- a/node_modules/lodash._escapestringchar/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash._escapestringchar v2.4.1 - -The internal [Lo-Dash](http://lodash.com/) function `escapeStringChar` as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash._escapestringchar/index.js b/node_modules/lodash._escapestringchar/index.js deleted file mode 100644 index f3b8c43..0000000 --- a/node_modules/lodash._escapestringchar/index.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to escape characters for inclusion in compiled string literals */ -var stringEscapes = { - '\\': '\\', - "'": "'", - '\n': 'n', - '\r': 'r', - '\t': 't', - '\u2028': 'u2028', - '\u2029': 'u2029' -}; - -/** - * Used by `template` to escape characters for inclusion in compiled - * string literals. - * - * @private - * @param {string} match The matched character to escape. - * @returns {string} Returns the escaped character. - */ -function escapeStringChar(match) { - return '\\' + stringEscapes[match]; -} - -module.exports = escapeStringChar; diff --git a/node_modules/lodash._escapestringchar/package.json b/node_modules/lodash._escapestringchar/package.json deleted file mode 100644 index eac7c53..0000000 --- a/node_modules/lodash._escapestringchar/package.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._escapestringchar@~2.4.1", - "scope": null, - "escapedName": "lodash._escapestringchar", - "name": "lodash._escapestringchar", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/lodash.template" - ] - ], - "_from": "lodash._escapestringchar@>=2.4.1 <2.5.0", - "_id": "lodash._escapestringchar@2.4.1", - "_inCache": true, - "_location": "/lodash._escapestringchar", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._escapestringchar@~2.4.1", - "scope": null, - "escapedName": "lodash._escapestringchar", - "name": "lodash._escapestringchar", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/lodash.template" - ], - "_resolved": "https://registry.npmjs.org/lodash._escapestringchar/-/lodash._escapestringchar-2.4.1.tgz", - "_shasum": "ecfe22618a2ade50bfeea43937e51df66f0edb72", - "_shrinkwrap": null, - "_spec": "lodash._escapestringchar@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/lodash.template", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The internal Lo-Dash function `escapeStringChar` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "ecfe22618a2ade50bfeea43937e51df66f0edb72", - "tarball": "https://registry.npmjs.org/lodash._escapestringchar/-/lodash._escapestringchar-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._escapestringchar", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash._getnative/LICENSE b/node_modules/lodash._getnative/LICENSE deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash._getnative/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._getnative/README.md b/node_modules/lodash._getnative/README.md deleted file mode 100644 index 7835cec..0000000 --- a/node_modules/lodash._getnative/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._getnative v3.9.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `getNative` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._getnative -``` - -In Node.js/io.js: - -```js -var getNative = require('lodash._getnative'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.9.1-npm-packages/lodash._getnative) for more details. diff --git a/node_modules/lodash._getnative/index.js b/node_modules/lodash._getnative/index.js deleted file mode 100644 index a32063d..0000000 --- a/node_modules/lodash._getnative/index.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * lodash 3.9.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** `Object#toString` result references. */ -var funcTag = '[object Function]'; - -/** Used to detect host constructors (Safari > 5). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** - * Checks if `value` is object-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** Used for native method references. */ -var objectProto = Object.prototype; - -/** Used to resolve the decompiled source of functions. */ -var fnToString = Function.prototype.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = object == null ? undefined : object[key]; - return isNative(value) ? value : undefined; -} - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in older versions of Chrome and Safari which return 'function' for regexes - // and Safari 8 equivalents which return 'object' for typed array constructors. - return isObject(value) && objToString.call(value) == funcTag; -} - -/** - * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @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(1); - * // => false - */ -function isObject(value) { - // Avoid a V8 JIT bug in Chrome 19-20. - // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * Checks if `value` is a native function. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, else `false`. - * @example - * - * _.isNative(Array.prototype.push); - * // => true - * - * _.isNative(_); - * // => false - */ -function isNative(value) { - if (value == null) { - return false; - } - if (isFunction(value)) { - return reIsNative.test(fnToString.call(value)); - } - return isObjectLike(value) && reIsHostCtor.test(value); -} - -module.exports = getNative; diff --git a/node_modules/lodash._getnative/package.json b/node_modules/lodash._getnative/package.json deleted file mode 100644 index 5cd9865..0000000 --- a/node_modules/lodash._getnative/package.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._getnative@^3.0.0", - "scope": null, - "escapedName": "lodash._getnative", - "name": "lodash._getnative", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.keys" - ] - ], - "_from": "lodash._getnative@>=3.0.0 <4.0.0", - "_id": "lodash._getnative@3.9.1", - "_inCache": true, - "_location": "/lodash._getnative", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.12.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._getnative@^3.0.0", - "scope": null, - "escapedName": "lodash._getnative", - "name": "lodash._getnative", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.keys" - ], - "_resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", - "_shasum": "570bc7dede46d61cdcde687d65d3eecbaa3aaff5", - "_shrinkwrap": null, - "_spec": "lodash._getnative@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.keys", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `getNative` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "570bc7dede46d61cdcde687d65d3eecbaa3aaff5", - "tarball": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._getnative", - "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": "3.9.1" -} diff --git a/node_modules/lodash._htmlescapes/LICENSE.txt b/node_modules/lodash._htmlescapes/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash._htmlescapes/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash._htmlescapes/README.md b/node_modules/lodash._htmlescapes/README.md deleted file mode 100644 index 9957cef..0000000 --- a/node_modules/lodash._htmlescapes/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash._htmlescapes v2.4.1 - -The internal [Lo-Dash](http://lodash.com/) variable `htmlEscapes` as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash._htmlescapes/index.js b/node_modules/lodash._htmlescapes/index.js deleted file mode 100644 index f69503d..0000000 --- a/node_modules/lodash._htmlescapes/index.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * Used to convert characters to HTML entities: - * - * Though the `>` character is escaped for symmetry, characters like `>` and `/` - * don't require escaping in HTML and have no special meaning unless they're part - * of a tag or an unquoted attribute value. - * http://mathiasbynens.be/notes/ambiguous-ampersands (under "semi-related fun fact") - */ -var htmlEscapes = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''' -}; - -module.exports = htmlEscapes; diff --git a/node_modules/lodash._htmlescapes/package.json b/node_modules/lodash._htmlescapes/package.json deleted file mode 100644 index c379d28..0000000 --- a/node_modules/lodash._htmlescapes/package.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._htmlescapes@~2.4.1", - "scope": null, - "escapedName": "lodash._htmlescapes", - "name": "lodash._htmlescapes", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash._escapehtmlchar" - ] - ], - "_from": "lodash._htmlescapes@>=2.4.1 <2.5.0", - "_id": "lodash._htmlescapes@2.4.1", - "_inCache": true, - "_location": "/lodash._htmlescapes", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._htmlescapes@~2.4.1", - "scope": null, - "escapedName": "lodash._htmlescapes", - "name": "lodash._htmlescapes", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._escapehtmlchar", - "/lodash._reunescapedhtml" - ], - "_resolved": "https://registry.npmjs.org/lodash._htmlescapes/-/lodash._htmlescapes-2.4.1.tgz", - "_shasum": "32d14bf0844b6de6f8b62a051b4f67c228b624cb", - "_shrinkwrap": null, - "_spec": "lodash._htmlescapes@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash._escapehtmlchar", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The internal Lo-Dash variable `htmlEscapes` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "32d14bf0844b6de6f8b62a051b4f67c228b624cb", - "tarball": "https://registry.npmjs.org/lodash._htmlescapes/-/lodash._htmlescapes-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._htmlescapes", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash._isiterateecall/LICENSE.txt b/node_modules/lodash._isiterateecall/LICENSE.txt deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash._isiterateecall/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._isiterateecall/README.md b/node_modules/lodash._isiterateecall/README.md deleted file mode 100644 index 0c5c701..0000000 --- a/node_modules/lodash._isiterateecall/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._isiterateecall v3.0.9 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `isIterateeCall` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._isiterateecall -``` - -In Node.js/io.js: - -```js -var isIterateeCall = require('lodash._isiterateecall'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.9-npm-packages/lodash._isiterateecall) for more details. diff --git a/node_modules/lodash._isiterateecall/index.js b/node_modules/lodash._isiterateecall/index.js deleted file mode 100644 index ea3761b..0000000 --- a/node_modules/lodash._isiterateecall/index.js +++ /dev/null @@ -1,132 +0,0 @@ -/** - * lodash 3.0.9 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to detect unsigned integer values. */ -var reIsUint = /^\d+$/; - -/** - * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * of an array-like value. - */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new function. - */ -function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; -} - -/** - * Gets the "length" property value of `object`. - * - * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) - * that affects Safari on at least iOS 8.1-8.3 ARM64. - * - * @private - * @param {Object} object The object to query. - * @returns {*} Returns the "length" value. - */ -var getLength = baseProperty('length'); - -/** - * Checks if `value` is array-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - */ -function isArrayLike(value) { - return value != null && isLength(getLength(value)); -} - -/** - * 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) { - value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1; - length = length == null ? MAX_SAFE_INTEGER : length; - return value > -1 && value % 1 == 0 && value < length; -} - -/** - * Checks if the provided 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)) { - var other = object[index]; - return value === value ? (value === other) : (other !== other); - } - return false; -} - -/** - * Checks if `value` is a valid array-like length. - * - * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - */ -function isLength(value) { - return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} - -/** - * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @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(1); - * // => false - */ -function isObject(value) { - // Avoid a V8 JIT bug in Chrome 19-20. - // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -module.exports = isIterateeCall; diff --git a/node_modules/lodash._isiterateecall/package.json b/node_modules/lodash._isiterateecall/package.json deleted file mode 100644 index ca74176..0000000 --- a/node_modules/lodash._isiterateecall/package.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._isiterateecall@^3.0.0", - "scope": null, - "escapedName": "lodash._isiterateecall", - "name": "lodash._isiterateecall", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.template" - ] - ], - "_from": "lodash._isiterateecall@>=3.0.0 <4.0.0", - "_id": "lodash._isiterateecall@3.0.9", - "_inCache": true, - "_location": "/lodash._isiterateecall", - "_nodeVersion": "2.0.2", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.10.1", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._isiterateecall@^3.0.0", - "scope": null, - "escapedName": "lodash._isiterateecall", - "name": "lodash._isiterateecall", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._createassigner", - "/lodash.template" - ], - "_resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", - "_shasum": "5203ad7ba425fae842460e696db9cf3e6aac057c", - "_shrinkwrap": null, - "_spec": "lodash._isiterateecall@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.template", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `isIterateeCall` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "5203ad7ba425fae842460e696db9cf3e6aac057c", - "tarball": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._isiterateecall", - "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": "3.0.9" -} diff --git a/node_modules/lodash._isnative/LICENSE.txt b/node_modules/lodash._isnative/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash._isnative/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash._isnative/README.md b/node_modules/lodash._isnative/README.md deleted file mode 100644 index fbcaad2..0000000 --- a/node_modules/lodash._isnative/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash._isnative v2.4.1 - -The internal [Lo-Dash](http://lodash.com/) function `isNative` as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash._isnative/index.js b/node_modules/lodash._isnative/index.js deleted file mode 100644 index b34a350..0000000 --- a/node_modules/lodash._isnative/index.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used for native method references */ -var objectProto = Object.prototype; - -/** Used to resolve the internal [[Class]] of values */ -var toString = objectProto.toString; - -/** Used to detect if a method is native */ -var reNative = RegExp('^' + - String(toString) - .replace(/[.*+?^${}()|[\]\\]/g, '\\$&') - .replace(/toString| for [^\]]+/g, '.*?') + '$' -); - -/** - * Checks if `value` is a native function. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if the `value` is a native function, else `false`. - */ -function isNative(value) { - return typeof value == 'function' && reNative.test(value); -} - -module.exports = isNative; diff --git a/node_modules/lodash._isnative/package.json b/node_modules/lodash._isnative/package.json deleted file mode 100644 index fe2ec9d..0000000 --- a/node_modules/lodash._isnative/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._isnative@~2.4.1", - "scope": null, - "escapedName": "lodash._isnative", - "name": "lodash._isnative", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults/node_modules/lodash.keys" - ] - ], - "_from": "lodash._isnative@>=2.4.1 <2.5.0", - "_id": "lodash._isnative@2.4.1", - "_inCache": true, - "_location": "/lodash._isnative", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._isnative@~2.4.1", - "scope": null, - "escapedName": "lodash._isnative", - "name": "lodash._isnative", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/lodash.keys", - "/lodash._reunescapedhtml/lodash.keys", - "/lodash.defaults/lodash.keys", - "/lodash.values/lodash.keys" - ], - "_resolved": "https://registry.npmjs.org/lodash._isnative/-/lodash._isnative-2.4.1.tgz", - "_shasum": "3ea6404b784a7be836c7b57580e1cdf79b14832c", - "_shrinkwrap": null, - "_spec": "lodash._isnative@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults/node_modules/lodash.keys", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The internal Lo-Dash function `isNative` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "3ea6404b784a7be836c7b57580e1cdf79b14832c", - "tarball": "https://registry.npmjs.org/lodash._isnative/-/lodash._isnative-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - } - ], - "name": "lodash._isnative", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash._objecttypes/LICENSE.txt b/node_modules/lodash._objecttypes/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash._objecttypes/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash._objecttypes/README.md b/node_modules/lodash._objecttypes/README.md deleted file mode 100644 index 16de730..0000000 --- a/node_modules/lodash._objecttypes/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash._objecttypes v2.4.1 - -The internal [Lo-Dash](http://lodash.com/) variable `objectTypes` as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash._objecttypes/index.js b/node_modules/lodash._objecttypes/index.js deleted file mode 100644 index da17c6c..0000000 --- a/node_modules/lodash._objecttypes/index.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to determine if values are of the language type Object */ -var objectTypes = { - 'boolean': false, - 'function': true, - 'object': true, - 'number': false, - 'string': false, - 'undefined': false -}; - -module.exports = objectTypes; diff --git a/node_modules/lodash._objecttypes/package.json b/node_modules/lodash._objecttypes/package.json deleted file mode 100644 index 0382835..0000000 --- a/node_modules/lodash._objecttypes/package.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._objecttypes@~2.4.1", - "scope": null, - "escapedName": "lodash._objecttypes", - "name": "lodash._objecttypes", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults" - ] - ], - "_from": "lodash._objecttypes@>=2.4.1 <2.5.0", - "_id": "lodash._objecttypes@2.4.1", - "_inCache": true, - "_location": "/lodash._objecttypes", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._objecttypes@~2.4.1", - "scope": null, - "escapedName": "lodash._objecttypes", - "name": "lodash._objecttypes", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._shimkeys", - "/lodash.defaults", - "/lodash.isobject" - ], - "_resolved": "https://registry.npmjs.org/lodash._objecttypes/-/lodash._objecttypes-2.4.1.tgz", - "_shasum": "7c0b7f69d98a1f76529f890b0cdb1b4dfec11c11", - "_shrinkwrap": null, - "_spec": "lodash._objecttypes@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The internal Lo-Dash variable `objectTypes` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "7c0b7f69d98a1f76529f890b0cdb1b4dfec11c11", - "tarball": "https://registry.npmjs.org/lodash._objecttypes/-/lodash._objecttypes-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._objecttypes", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash._reescape/LICENSE.txt b/node_modules/lodash._reescape/LICENSE.txt deleted file mode 100644 index 1776432..0000000 --- a/node_modules/lodash._reescape/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._reescape/README.md b/node_modules/lodash._reescape/README.md deleted file mode 100644 index c80ae07..0000000 --- a/node_modules/lodash._reescape/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reescape v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reEscape` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._reescape -``` - -In Node.js/io.js: - -```js -var reEscape = require('lodash._reescape'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._reescape) for more details. diff --git a/node_modules/lodash._reescape/index.js b/node_modules/lodash._reescape/index.js deleted file mode 100644 index 1a3b8cf..0000000 --- a/node_modules/lodash._reescape/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reEscape = /<%-([\s\S]+?)%>/g; - -module.exports = reEscape; diff --git a/node_modules/lodash._reescape/package.json b/node_modules/lodash._reescape/package.json deleted file mode 100644 index 264e117..0000000 --- a/node_modules/lodash._reescape/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._reescape@^3.0.0", - "scope": null, - "escapedName": "lodash._reescape", - "name": "lodash._reescape", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-util" - ] - ], - "_from": "lodash._reescape@>=3.0.0 <4.0.0", - "_id": "lodash._reescape@3.0.0", - "_inCache": true, - "_location": "/lodash._reescape", - "_nodeVersion": "0.10.35", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.3.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._reescape@^3.0.0", - "scope": null, - "escapedName": "lodash._reescape", - "name": "lodash._reescape", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-util" - ], - "_resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", - "_shasum": "2b1d6f5dfe07c8a355753e5f27fac7f1cde1616a", - "_shrinkwrap": null, - "_spec": "lodash._reescape@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-util", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `reEscape` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "2b1d6f5dfe07c8a355753e5f27fac7f1cde1616a", - "tarball": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - } - ], - "name": "lodash._reescape", - "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": "3.0.0" -} diff --git a/node_modules/lodash._reevaluate/LICENSE.txt b/node_modules/lodash._reevaluate/LICENSE.txt deleted file mode 100644 index 1776432..0000000 --- a/node_modules/lodash._reevaluate/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._reevaluate/README.md b/node_modules/lodash._reevaluate/README.md deleted file mode 100644 index a69b8aa..0000000 --- a/node_modules/lodash._reevaluate/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reevaluate v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reEvaluate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._reevaluate -``` - -In Node.js/io.js: - -```js -var reEvaluate = require('lodash._reevaluate'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._reevaluate) for more details. diff --git a/node_modules/lodash._reevaluate/index.js b/node_modules/lodash._reevaluate/index.js deleted file mode 100644 index 16d7609..0000000 --- a/node_modules/lodash._reevaluate/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reEvaluate = /<%([\s\S]+?)%>/g; - -module.exports = reEvaluate; diff --git a/node_modules/lodash._reevaluate/package.json b/node_modules/lodash._reevaluate/package.json deleted file mode 100644 index 7911ed3..0000000 --- a/node_modules/lodash._reevaluate/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._reevaluate@^3.0.0", - "scope": null, - "escapedName": "lodash._reevaluate", - "name": "lodash._reevaluate", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-util" - ] - ], - "_from": "lodash._reevaluate@>=3.0.0 <4.0.0", - "_id": "lodash._reevaluate@3.0.0", - "_inCache": true, - "_location": "/lodash._reevaluate", - "_nodeVersion": "0.10.35", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.3.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._reevaluate@^3.0.0", - "scope": null, - "escapedName": "lodash._reevaluate", - "name": "lodash._reevaluate", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-util" - ], - "_resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", - "_shasum": "58bc74c40664953ae0b124d806996daca431e2ed", - "_shrinkwrap": null, - "_spec": "lodash._reevaluate@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-util", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `reEvaluate` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "58bc74c40664953ae0b124d806996daca431e2ed", - "tarball": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - } - ], - "name": "lodash._reevaluate", - "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": "3.0.0" -} diff --git a/node_modules/lodash._reinterpolate/LICENSE.txt b/node_modules/lodash._reinterpolate/LICENSE.txt deleted file mode 100644 index 1776432..0000000 --- a/node_modules/lodash._reinterpolate/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._reinterpolate/README.md b/node_modules/lodash._reinterpolate/README.md deleted file mode 100644 index 1423e50..0000000 --- a/node_modules/lodash._reinterpolate/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reinterpolate v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reInterpolate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._reinterpolate -``` - -In Node.js/io.js: - -```js -var reInterpolate = require('lodash._reinterpolate'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._reinterpolate) for more details. diff --git a/node_modules/lodash._reinterpolate/index.js b/node_modules/lodash._reinterpolate/index.js deleted file mode 100644 index 5c06abc..0000000 --- a/node_modules/lodash._reinterpolate/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reInterpolate = /<%=([\s\S]+?)%>/g; - -module.exports = reInterpolate; diff --git a/node_modules/lodash._reinterpolate/package.json b/node_modules/lodash._reinterpolate/package.json deleted file mode 100644 index e02bb9b..0000000 --- a/node_modules/lodash._reinterpolate/package.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._reinterpolate@^3.0.0", - "scope": null, - "escapedName": "lodash._reinterpolate", - "name": "lodash._reinterpolate", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-util" - ] - ], - "_from": "lodash._reinterpolate@>=3.0.0 <4.0.0", - "_id": "lodash._reinterpolate@3.0.0", - "_inCache": true, - "_location": "/lodash._reinterpolate", - "_nodeVersion": "0.10.35", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.3.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._reinterpolate@^3.0.0", - "scope": null, - "escapedName": "lodash._reinterpolate", - "name": "lodash._reinterpolate", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-util", - "/lodash.template", - "/lodash.templatesettings" - ], - "_resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "_shasum": "0ccf2d89166af03b3663c796538b75ac6e114d9d", - "_shrinkwrap": null, - "_spec": "lodash._reinterpolate@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-util", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s internal `reInterpolate` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "0ccf2d89166af03b3663c796538b75ac6e114d9d", - "tarball": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._reinterpolate", - "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": "3.0.0" -} diff --git a/node_modules/lodash._reunescapedhtml/LICENSE.txt b/node_modules/lodash._reunescapedhtml/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash._reunescapedhtml/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash._reunescapedhtml/README.md b/node_modules/lodash._reunescapedhtml/README.md deleted file mode 100644 index c6ca90c..0000000 --- a/node_modules/lodash._reunescapedhtml/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash._reunescapedhtml v2.4.1 - -The internal [Lo-Dash](http://lodash.com/) variable `reUnescapedHtml` as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash._reunescapedhtml/index.js b/node_modules/lodash._reunescapedhtml/index.js deleted file mode 100644 index fa87047..0000000 --- a/node_modules/lodash._reunescapedhtml/index.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var htmlEscapes = require('lodash._htmlescapes'), - keys = require('lodash.keys'); - -/** Used to match HTML entities and HTML characters */ -var reUnescapedHtml = RegExp('[' + keys(htmlEscapes).join('') + ']', 'g'); - -module.exports = reUnescapedHtml; diff --git a/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/LICENSE.txt b/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/README.md b/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/README.md deleted file mode 100644 index bee29a8..0000000 --- a/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash.keys v2.4.1 - -The [Lo-Dash](http://lodash.com/) function [`_.keys`](http://lodash.com/docs#keys) as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/index.js b/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/index.js deleted file mode 100644 index 139568a..0000000 --- a/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/index.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var isNative = require('lodash._isnative'), - isObject = require('lodash.isobject'), - shimKeys = require('lodash._shimkeys'); - -/* Native method shortcuts for methods with the same name as other `lodash` methods */ -var nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys; - -/** - * Creates an array composed of the own enumerable property names of an object. - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns an array of property names. - * @example - * - * _.keys({ 'one': 1, 'two': 2, 'three': 3 }); - * // => ['one', 'two', 'three'] (property order is not guaranteed across environments) - */ -var keys = !nativeKeys ? shimKeys : function(object) { - if (!isObject(object)) { - return []; - } - return nativeKeys(object); -}; - -module.exports = keys; diff --git a/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/package.json b/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/package.json deleted file mode 100644 index 710c022..0000000 --- a/node_modules/lodash._reunescapedhtml/node_modules/lodash.keys/package.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.keys@~2.4.1", - "scope": null, - "escapedName": "lodash.keys", - "name": "lodash.keys", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash._reunescapedhtml" - ] - ], - "_from": "lodash.keys@>=2.4.1 <2.5.0", - "_id": "lodash.keys@2.4.1", - "_inCache": true, - "_location": "/lodash._reunescapedhtml/lodash.keys", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.keys@~2.4.1", - "scope": null, - "escapedName": "lodash.keys", - "name": "lodash.keys", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._reunescapedhtml" - ], - "_resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-2.4.1.tgz", - "_shasum": "48dea46df8ff7632b10d706b8acb26591e2b3727", - "_shrinkwrap": null, - "_spec": "lodash.keys@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash._reunescapedhtml", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._isnative": "~2.4.1", - "lodash._shimkeys": "~2.4.1", - "lodash.isobject": "~2.4.1" - }, - "description": "The Lo-Dash function `_.keys` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "48dea46df8ff7632b10d706b8acb26591e2b3727", - "tarball": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "keywords": [ - "functional", - "lodash", - "lodash-modularized", - "server", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash.keys", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash._reunescapedhtml/package.json b/node_modules/lodash._reunescapedhtml/package.json deleted file mode 100644 index 20da782..0000000 --- a/node_modules/lodash._reunescapedhtml/package.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._reunescapedhtml@~2.4.1", - "scope": null, - "escapedName": "lodash._reunescapedhtml", - "name": "lodash._reunescapedhtml", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/lodash.escape" - ] - ], - "_from": "lodash._reunescapedhtml@>=2.4.1 <2.5.0", - "_id": "lodash._reunescapedhtml@2.4.1", - "_inCache": true, - "_location": "/lodash._reunescapedhtml", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": { - "lodash._isnative": "2.4.1", - "lodash._shimkeys": "2.4.1", - "lodash.isobject": "2.4.1" - }, - "_requested": { - "raw": "lodash._reunescapedhtml@~2.4.1", - "scope": null, - "escapedName": "lodash._reunescapedhtml", - "name": "lodash._reunescapedhtml", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/lodash.escape" - ], - "_resolved": "https://registry.npmjs.org/lodash._reunescapedhtml/-/lodash._reunescapedhtml-2.4.1.tgz", - "_shasum": "747c4fc40103eb3bb8a0976e571f7a2659e93ba7", - "_shrinkwrap": null, - "_spec": "lodash._reunescapedhtml@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/lodash.escape", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._htmlescapes": "~2.4.1", - "lodash.keys": "~2.4.1" - }, - "description": "The internal Lo-Dash variable `reUnescapedHtml` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "747c4fc40103eb3bb8a0976e571f7a2659e93ba7", - "tarball": "https://registry.npmjs.org/lodash._reunescapedhtml/-/lodash._reunescapedhtml-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._reunescapedhtml", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash._root/LICENSE b/node_modules/lodash._root/LICENSE deleted file mode 100644 index bcbe13d..0000000 --- a/node_modules/lodash._root/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -The MIT License (MIT) - -Copyright 2012-2016 The Dojo Foundation -Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash._root/README.md b/node_modules/lodash._root/README.md deleted file mode 100644 index 0329abf..0000000 --- a/node_modules/lodash._root/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash._root v3.0.1 - -The internal [lodash](https://lodash.com/) function `root` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._root -``` - -In Node.js: -```js -var root = require('lodash._root'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._root) for more details. diff --git a/node_modules/lodash._root/index.js b/node_modules/lodash._root/index.js deleted file mode 100644 index 2d8ba0a..0000000 --- a/node_modules/lodash._root/index.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * lodash 3.0.1 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to determine if values are of the language type `Object`. */ -var objectTypes = { - 'function': true, - 'object': true -}; - -/** Detect free variable `exports`. */ -var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) - ? exports - : undefined; - -/** Detect free variable `module`. */ -var freeModule = (objectTypes[typeof module] && module && !module.nodeType) - ? module - : undefined; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global); - -/** Detect free variable `self`. */ -var freeSelf = checkGlobal(objectTypes[typeof self] && self); - -/** Detect free variable `window`. */ -var freeWindow = checkGlobal(objectTypes[typeof window] && window); - -/** Detect `this` as the global object. */ -var thisGlobal = checkGlobal(objectTypes[typeof this] && this); - -/** - * Used as a reference to the global object. - * - * The `this` value is used if it's the global object to avoid Greasemonkey's - * restricted `window` object, otherwise the `window` object is used. - */ -var root = freeGlobal || - ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || - freeSelf || thisGlobal || Function('return this')(); - -/** - * Checks if `value` is a global object. - * - * @private - * @param {*} value The value to check. - * @returns {null|Object} Returns `value` if it's a global object, else `null`. - */ -function checkGlobal(value) { - return (value && value.Object === Object) ? value : null; -} - -module.exports = root; diff --git a/node_modules/lodash._root/package.json b/node_modules/lodash._root/package.json deleted file mode 100644 index 76df740..0000000 --- a/node_modules/lodash._root/package.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._root@^3.0.0", - "scope": null, - "escapedName": "lodash._root", - "name": "lodash._root", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.escape" - ] - ], - "_from": "lodash._root@>=3.0.0 <4.0.0", - "_id": "lodash._root@3.0.1", - "_inCache": true, - "_location": "/lodash._root", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-6-west.internal.npmjs.com", - "tmp": "tmp/lodash._root-3.0.1.tgz_1455615057559_0.24128212919458747" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.14.18", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._root@^3.0.0", - "scope": null, - "escapedName": "lodash._root", - "name": "lodash._root", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.escape" - ], - "_resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", - "_shasum": "fba1c4524c19ee9a5f8136b4609f017cf4ded692", - "_shrinkwrap": null, - "_spec": "lodash._root@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.escape", - "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@iceddev.com", - "url": "https://github.com/phated" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The internal lodash function `root` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "fba1c4524c19ee9a5f8136b4609f017cf4ded692", - "tarball": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine.bublitz@gmail.com" - } - ], - "name": "lodash._root", - "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": "3.0.1" -} diff --git a/node_modules/lodash._shimkeys/LICENSE.txt b/node_modules/lodash._shimkeys/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash._shimkeys/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash._shimkeys/README.md b/node_modules/lodash._shimkeys/README.md deleted file mode 100644 index 23f3000..0000000 --- a/node_modules/lodash._shimkeys/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash._shimkeys v2.4.1 - -The internal [Lo-Dash](http://lodash.com/) function `shimKeys` as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash._shimkeys/index.js b/node_modules/lodash._shimkeys/index.js deleted file mode 100644 index 12be0bf..0000000 --- a/node_modules/lodash._shimkeys/index.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var objectTypes = require('lodash._objecttypes'); - -/** Used for native method references */ -var objectProto = Object.prototype; - -/** Native method shortcuts */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * A fallback implementation of `Object.keys` which produces an array of the - * given object's own enumerable property names. - * - * @private - * @type Function - * @param {Object} object The object to inspect. - * @returns {Array} Returns an array of property names. - */ -var shimKeys = function(object) { - var index, iterable = object, result = []; - if (!iterable) return result; - if (!(objectTypes[typeof object])) return result; - for (index in iterable) { - if (hasOwnProperty.call(iterable, index)) { - result.push(index); - } - } - return result -}; - -module.exports = shimKeys; diff --git a/node_modules/lodash._shimkeys/package.json b/node_modules/lodash._shimkeys/package.json deleted file mode 100644 index 36fa4ee..0000000 --- a/node_modules/lodash._shimkeys/package.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash._shimkeys@~2.4.1", - "scope": null, - "escapedName": "lodash._shimkeys", - "name": "lodash._shimkeys", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults/node_modules/lodash.keys" - ] - ], - "_from": "lodash._shimkeys@>=2.4.1 <2.5.0", - "_id": "lodash._shimkeys@2.4.1", - "_inCache": true, - "_location": "/lodash._shimkeys", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash._shimkeys@~2.4.1", - "scope": null, - "escapedName": "lodash._shimkeys", - "name": "lodash._shimkeys", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/lodash.keys", - "/lodash._reunescapedhtml/lodash.keys", - "/lodash.defaults/lodash.keys", - "/lodash.values/lodash.keys" - ], - "_resolved": "https://registry.npmjs.org/lodash._shimkeys/-/lodash._shimkeys-2.4.1.tgz", - "_shasum": "6e9cc9666ff081f0b5a6c978b83e242e6949d203", - "_shrinkwrap": null, - "_spec": "lodash._shimkeys@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults/node_modules/lodash.keys", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._objecttypes": "~2.4.1" - }, - "description": "The internal Lo-Dash function `shimKeys` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "6e9cc9666ff081f0b5a6c978b83e242e6949d203", - "tarball": "https://registry.npmjs.org/lodash._shimkeys/-/lodash._shimkeys-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash._shimkeys", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash.assign/LICENSE.txt b/node_modules/lodash.assign/LICENSE.txt deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash.assign/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash.assign/README.md b/node_modules/lodash.assign/README.md deleted file mode 100644 index 59a24c0..0000000 --- a/node_modules/lodash.assign/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash.assign v3.2.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.assign` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.assign -``` - -In Node.js/io.js: - -```js -var assign = require('lodash.assign'); -``` - -See the [documentation](https://lodash.com/docs#assign) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.assign) for more details. diff --git a/node_modules/lodash.assign/index.js b/node_modules/lodash.assign/index.js deleted file mode 100644 index e394fb0..0000000 --- a/node_modules/lodash.assign/index.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * lodash 3.2.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var baseAssign = require('lodash._baseassign'), - createAssigner = require('lodash._createassigner'), - keys = require('lodash.keys'); - -/** - * A specialized version of `_.assign` for customizing assigned values without - * support for argument juggling, multiple sources, and `this` binding `customizer` - * functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {Function} customizer The function to customize assigned values. - * @returns {Object} Returns `object`. - */ -function assignWith(object, source, customizer) { - var index = -1, - props = keys(source), - length = props.length; - - while (++index < length) { - var key = props[index], - value = object[key], - result = customizer(value, source[key], key, object, source); - - if ((result === result ? (result !== value) : (value === value)) || - (value === undefined && !(key in object))) { - object[key] = result; - } - } - return object; -} - -/** - * Assigns own enumerable properties of source object(s) to the destination - * object. Subsequent sources overwrite property assignments of previous sources. - * If `customizer` is provided it is invoked to produce the assigned values. - * The `customizer` is bound to `thisArg` and invoked with five arguments: - * (objectValue, sourceValue, key, object, source). - * - * **Note:** This method mutates `object` and is based on - * [`Object.assign`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign). - * - * @static - * @memberOf _ - * @alias extend - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @param {Function} [customizer] The function to customize assigned values. - * @param {*} [thisArg] The `this` binding of `customizer`. - * @returns {Object} Returns `object`. - * @example - * - * _.assign({ 'user': 'barney' }, { 'age': 40 }, { 'user': 'fred' }); - * // => { 'user': 'fred', 'age': 40 } - * - * // using a customizer callback - * var defaults = _.partialRight(_.assign, function(value, other) { - * return _.isUndefined(value) ? other : value; - * }); - * - * defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' }); - * // => { 'user': 'barney', 'age': 36 } - */ -var assign = createAssigner(function(object, source, customizer) { - return customizer - ? assignWith(object, source, customizer) - : baseAssign(object, source); -}); - -module.exports = assign; diff --git a/node_modules/lodash.assign/package.json b/node_modules/lodash.assign/package.json deleted file mode 100644 index 38c5078..0000000 --- a/node_modules/lodash.assign/package.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.assign@^3.0.0", - "scope": null, - "escapedName": "lodash.assign", - "name": "lodash.assign", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css/node_modules/lodash.defaults" - ] - ], - "_from": "lodash.assign@>=3.0.0 <4.0.0", - "_id": "lodash.assign@3.2.0", - "_inCache": true, - "_location": "/lodash.assign", - "_nodeVersion": "0.12.3", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.10.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.assign@^3.0.0", - "scope": null, - "escapedName": "lodash.assign", - "name": "lodash.assign", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat-css/lodash.defaults" - ], - "_resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-3.2.0.tgz", - "_shasum": "3ce9f0234b4b2223e296b8fa0ac1fee8ebca64fa", - "_shrinkwrap": null, - "_spec": "lodash.assign@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css/node_modules/lodash.defaults", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._baseassign": "^3.0.0", - "lodash._createassigner": "^3.0.0", - "lodash.keys": "^3.0.0" - }, - "description": "The modern build of lodash’s `_.assign` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "3ce9f0234b4b2223e296b8fa0ac1fee8ebca64fa", - "tarball": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-3.2.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash", - "lodash-modularized", - "stdlib", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - } - ], - "name": "lodash.assign", - "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": "3.2.0" -} diff --git a/node_modules/lodash.assignwith/LICENSE b/node_modules/lodash.assignwith/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.assignwith/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/lodash.assignwith/README.md b/node_modules/lodash.assignwith/README.md deleted file mode 100644 index 026191e..0000000 --- a/node_modules/lodash.assignwith/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.assignwith v4.2.0 - -The [lodash](https://lodash.com/) method `_.assignWith` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.assignwith -``` - -In Node.js: -```js -var assignWith = require('lodash.assignwith'); -``` - -See the [documentation](https://lodash.com/docs#assignWith) or [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash.assignwith) for more details. diff --git a/node_modules/lodash.assignwith/index.js b/node_modules/lodash.assignwith/index.js deleted file mode 100644 index 921dfce..0000000 --- a/node_modules/lodash.assignwith/index.js +++ /dev/null @@ -1,622 +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; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** 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 nativeKeys = overArg(Object.keys, Object), - 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; -} - -/** - * 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 `_.keys` 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 baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - 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; -} - -/** - * 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 `_.assign` 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 - * @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 _.assignInWith - * @example - * - * function customizer(objValue, srcValue) { - * return _.isUndefined(objValue) ? srcValue : objValue; - * } - * - * var defaults = _.partialRight(_.assignWith, customizer); - * - * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); - * // => { 'a': 1, 'b': 2 } - */ -var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); -}); - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @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; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} - -module.exports = assignWith; diff --git a/node_modules/lodash.assignwith/package.json b/node_modules/lodash.assignwith/package.json deleted file mode 100644 index 6bf5243..0000000 --- a/node_modules/lodash.assignwith/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.assignwith@^4.0.7", - "scope": null, - "escapedName": "lodash.assignwith", - "name": "lodash.assignwith", - "rawSpec": "^4.0.7", - "spec": ">=4.0.7 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/fined" - ] - ], - "_from": "lodash.assignwith@>=4.0.7 <5.0.0", - "_id": "lodash.assignwith@4.2.0", - "_inCache": true, - "_location": "/lodash.assignwith", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/lodash.assignwith-4.2.0.tgz_1471109805358_0.5188975257333368" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.assignwith@^4.0.7", - "scope": null, - "escapedName": "lodash.assignwith", - "name": "lodash.assignwith", - "rawSpec": "^4.0.7", - "spec": ">=4.0.7 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/fined" - ], - "_resolved": "https://registry.npmjs.org/lodash.assignwith/-/lodash.assignwith-4.2.0.tgz", - "_shasum": "127a97f02adc41751a954d24b0de17e100e038eb", - "_shrinkwrap": null, - "_spec": "lodash.assignwith@^4.0.7", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/fined", - "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 `_.assignWith` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "127a97f02adc41751a954d24b0de17e100e038eb", - "tarball": "https://registry.npmjs.org/lodash.assignwith/-/lodash.assignwith-4.2.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "assignwith" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine.bublitz@gmail.com" - } - ], - "name": "lodash.assignwith", - "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/lodash.clone/LICENSE b/node_modules/lodash.clone/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.clone/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/lodash.clone/README.md b/node_modules/lodash.clone/README.md deleted file mode 100644 index 3fb22d5..0000000 --- a/node_modules/lodash.clone/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.clone v4.5.0 - -The [lodash](https://lodash.com/) method `_.clone` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.clone -``` - -In Node.js: -```js -var clone = require('lodash.clone'); -``` - -See the [documentation](https://lodash.com/docs#clone) or [package source](https://github.com/lodash/lodash/blob/4.5.0-npm-packages/lodash.clone) for more details. diff --git a/node_modules/lodash.clone/index.js b/node_modules/lodash.clone/index.js deleted file mode 100644 index 9c71d60..0000000 --- a/node_modules/lodash.clone/index.js +++ /dev/null @@ -1,1756 +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 the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to match `RegExp` flags from their coerced string values. */ -var reFlags = /\w*$/; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** Used to identify `toStringTag` values supported by `_.clone`. */ -var cloneableTags = {}; -cloneableTags[argsTag] = cloneableTags[arrayTag] = -cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = -cloneableTags[boolTag] = cloneableTags[dateTag] = -cloneableTags[float32Tag] = cloneableTags[float64Tag] = -cloneableTags[int8Tag] = cloneableTags[int16Tag] = -cloneableTags[int32Tag] = cloneableTags[mapTag] = -cloneableTags[numberTag] = cloneableTags[objectTag] = -cloneableTags[regexpTag] = cloneableTags[setTag] = -cloneableTags[stringTag] = cloneableTags[symbolTag] = -cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = -cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; -cloneableTags[errorTag] = cloneableTags[funcTag] = -cloneableTags[weakMapTag] = false; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** Detect free variable `exports`. */ -var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** - * Adds the key-value `pair` to `map`. - * - * @private - * @param {Object} map The map to modify. - * @param {Array} pair The key-value pair to add. - * @returns {Object} Returns `map`. - */ -function addMapEntry(map, pair) { - // Don't return `map.set` because it's not chainable in IE 11. - map.set(pair[0], pair[1]); - return map; -} - -/** - * Adds `value` to `set`. - * - * @private - * @param {Object} set The set to modify. - * @param {*} value The value to add. - * @returns {Object} Returns `set`. - */ -function addSetEntry(set, value) { - // Don't return `set.add` because it's not chainable in IE 11. - set.add(value); - return set; -} - -/** - * A specialized version of `_.forEach` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. - */ -function arrayEach(array, iteratee) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; -} - -/** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ -function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - return array; -} - -/** - * A specialized version of `_.reduce` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @param {boolean} [initAccum] Specify using the first element of `array` as - * the initial value. - * @returns {*} Returns the accumulated value. - */ -function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, - length = array ? array.length : 0; - - if (initAccum && length) { - accumulator = array[++index]; - } - while (++index < length) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; -} - -/** - * 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; -} - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Converts `map` to its key-value pairs. - * - * @private - * @param {Object} map The map to convert. - * @returns {Array} Returns the key-value pairs. - */ -function mapToArray(map) { - var index = -1, - result = Array(map.size); - - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ -function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** 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; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Buffer = moduleExports ? root.Buffer : undefined, - Symbol = root.Symbol, - Uint8Array = root.Uint8Array, - getPrototype = overArg(Object.getPrototypeOf, Object), - objectCreate = Object.create, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeGetSymbols = Object.getOwnPropertySymbols, - nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, - nativeKeys = overArg(Object.keys, Object); - -/* Built-in method references that are verified to be native. */ -var DataView = getNative(root, 'DataView'), - Map = getNative(root, 'Map'), - Promise = getNative(root, 'Promise'), - Set = getNative(root, 'Set'), - WeakMap = getNative(root, 'WeakMap'), - nativeCreate = getNative(Object, 'create'); - -/** Used to detect maps, sets, and weakmaps. */ -var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack(entries) { - this.__data__ = new ListCache(entries); -} - -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear() { - this.__data__ = new ListCache; -} - -/** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function stackDelete(key) { - return this.__data__['delete'](key); -} - -/** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function stackGet(key) { - return this.__data__.get(key); -} - -/** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function stackHas(key) { - return this.__data__.has(key); -} - -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet(key, value) { - var cache = this.__data__; - if (cache instanceof ListCache) { - var pairs = cache.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - return this; - } - cache = this.__data__ = new MapCache(pairs); - } - cache.set(key, value); - return this; -} - -// Add methods to `Stack`. -Stack.prototype.clear = stackClear; -Stack.prototype['delete'] = stackDelete; -Stack.prototype.get = stackGet; -Stack.prototype.has = stackHas; -Stack.prototype.set = stackSet; - -/** - * 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; -} - -/** - * 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; - } -} - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `_.assign` without support for multiple sources - * or `customizer` functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @returns {Object} Returns `object`. - */ -function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); -} - -/** - * The base implementation of `_.clone` and `_.cloneDeep` which tracks - * traversed objects. - * - * @private - * @param {*} value The value to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @param {boolean} [isFull] Specify a clone including symbols. - * @param {Function} [customizer] The function to customize cloning. - * @param {string} [key] The key of `value`. - * @param {Object} [object] The parent object of `value`. - * @param {Object} [stack] Tracks traversed objects and their clone counterparts. - * @returns {*} Returns the cloned value. - */ -function baseClone(value, isDeep, isFull, customizer, key, object, stack) { - var result; - if (customizer) { - result = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result !== undefined) { - return result; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result); - } - } else { - var tag = getTag(value), - isFunc = tag == funcTag || tag == genTag; - - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - if (isHostObject(value)) { - return object ? value : {}; - } - result = initCloneObject(isFunc ? {} : value); - if (!isDeep) { - return copySymbols(value, baseAssign(result, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result = initCloneByTag(value, tag, baseClone, isDeep); - } - } - // Check for circular references and return its corresponding clone. - stack || (stack = new Stack); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result); - - if (!isArr) { - var props = isFull ? getAllKeys(value) : keys(value); - } - arrayEach(props || value, function(subValue, key) { - if (props) { - key = subValue; - subValue = value[key]; - } - // Recursively populate clone (susceptible to call stack limits). - assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); - }); - return result; -} - -/** - * The base implementation of `_.create` without support for assigning - * properties to the created object. - * - * @private - * @param {Object} prototype The object to inherit from. - * @returns {Object} Returns the new object. - */ -function baseCreate(proto) { - return isObject(proto) ? objectCreate(proto) : {}; -} - -/** - * The base implementation of `getAllKeys` and `getAllKeysIn` which uses - * `keysFunc` and `symbolsFunc` to get the enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Function} keysFunc The function to get the keys of `object`. - * @param {Function} symbolsFunc The function to get the symbols of `object`. - * @returns {Array} Returns the array of property names and symbols. - */ -function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); -} - -/** - * The base implementation of `getTag`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - return objectToString.call(value); -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.keys` 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 baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } - } - return result; -} - -/** - * Creates a clone of `buffer`. - * - * @private - * @param {Buffer} buffer The buffer to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Buffer} Returns the cloned buffer. - */ -function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var result = new buffer.constructor(buffer.length); - buffer.copy(result); - return result; -} - -/** - * Creates a clone of `arrayBuffer`. - * - * @private - * @param {ArrayBuffer} arrayBuffer The array buffer to clone. - * @returns {ArrayBuffer} Returns the cloned array buffer. - */ -function cloneArrayBuffer(arrayBuffer) { - var result = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array(result).set(new Uint8Array(arrayBuffer)); - return result; -} - -/** - * Creates a clone of `dataView`. - * - * @private - * @param {Object} dataView The data view to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned data view. - */ -function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); -} - -/** - * Creates a clone of `map`. - * - * @private - * @param {Object} map The map to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned map. - */ -function cloneMap(map, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map); - return arrayReduce(array, addMapEntry, new map.constructor); -} - -/** - * Creates a clone of `regexp`. - * - * @private - * @param {Object} regexp The regexp to clone. - * @returns {Object} Returns the cloned regexp. - */ -function cloneRegExp(regexp) { - var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result.lastIndex = regexp.lastIndex; - return result; -} - -/** - * Creates a clone of `set`. - * - * @private - * @param {Object} set The set to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned set. - */ -function cloneSet(set, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set); - return arrayReduce(array, addSetEntry, new set.constructor); -} - -/** - * Creates a clone of the `symbol` object. - * - * @private - * @param {Object} symbol The symbol object to clone. - * @returns {Object} Returns the cloned symbol object. - */ -function cloneSymbol(symbol) { - return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; -} - -/** - * Creates a clone of `typedArray`. - * - * @private - * @param {Object} typedArray The typed array to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned typed array. - */ -function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); -} - -/** - * Copies the values of `source` to `array`. - * - * @private - * @param {Array} source The array to copy values from. - * @param {Array} [array=[]] The array to copy values to. - * @returns {Array} Returns `array`. - */ -function copyArray(source, array) { - var index = -1, - length = source.length; - - array || (array = Array(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; -} - -/** - * 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; -} - -/** - * Copies own symbol properties of `source` to `object`. - * - * @private - * @param {Object} source The object to copy symbols from. - * @param {Object} [object={}] The object to copy symbols to. - * @returns {Object} Returns `object`. - */ -function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); -} - -/** - * Creates an array of own enumerable property names and symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ -function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); -} - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Creates an array of the own enumerable symbol properties of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ -var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; - -/** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -var getTag = baseGetTag; - -// Fallback for data views, maps, sets, and weak maps in IE 11, -// for data views in Edge < 14, and promises in Node.js. -if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = objectToString.call(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : undefined; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; -} - -/** - * Initializes an array clone. - * - * @private - * @param {Array} array The array to clone. - * @returns {Array} Returns the initialized clone. - */ -function initCloneArray(array) { - var length = array.length, - result = array.constructor(length); - - // Add properties assigned by `RegExp#exec`. - if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { - result.index = array.index; - result.input = array.input; - } - return result; -} - -/** - * Initializes an object clone. - * - * @private - * @param {Object} object The object to clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneObject(object) { - return (typeof object.constructor == 'function' && !isPrototype(object)) - ? baseCreate(getPrototype(object)) - : {}; -} - -/** - * Initializes an object clone based on its `toStringTag`. - * - * **Note:** This function only supports cloning values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to clone. - * @param {string} tag The `toStringTag` of the object to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneByTag(object, tag, cloneFunc, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - - case boolTag: - case dateTag: - return new Ctor(+object); - - case dataViewTag: - return cloneDataView(object, isDeep); - - case float32Tag: case float64Tag: - case int8Tag: case int16Tag: case int32Tag: - case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: - return cloneTypedArray(object, isDeep); - - case mapTag: - return cloneMap(object, isDeep, cloneFunc); - - case numberTag: - case stringTag: - return new Ctor(object); - - case regexpTag: - return cloneRegExp(object); - - case setTag: - return cloneSet(object, isDeep, cloneFunc); - - case symbolTag: - return cloneSymbol(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 `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * 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; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Creates a shallow clone of `value`. - * - * **Note:** This method is loosely based on the - * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) - * and supports cloning arrays, array buffers, booleans, date objects, maps, - * numbers, `Object` objects, regexes, sets, strings, symbols, and typed - * arrays. The own enumerable properties of `arguments` objects are cloned - * as plain objects. An empty object is returned for uncloneable values such - * as error objects, functions, DOM nodes, and WeakMaps. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to clone. - * @returns {*} Returns the cloned value. - * @see _.cloneDeep - * @example - * - * var objects = [{ 'a': 1 }, { 'b': 2 }]; - * - * var shallow = _.clone(objects); - * console.log(shallow[0] === objects[0]); - * // => true - */ -function clone(value) { - return baseClone(value, false, true); -} - -/** - * 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 a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true - * - * _.isBuffer(new Uint8Array(2)); - * // => false - */ -var isBuffer = nativeIsBuffer || stubFalse; - -/** - * 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'; -} - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @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; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} - -/** - * This method returns a new empty array. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {Array} Returns the new empty array. - * @example - * - * var arrays = _.times(2, _.stubArray); - * - * console.log(arrays); - * // => [[], []] - * - * console.log(arrays[0] === arrays[1]); - * // => false - */ -function stubArray() { - return []; -} - -/** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example - * - * _.times(2, _.stubFalse); - * // => [false, false] - */ -function stubFalse() { - return false; -} - -module.exports = clone; diff --git a/node_modules/lodash.clone/package.json b/node_modules/lodash.clone/package.json deleted file mode 100644 index f1bacc5..0000000 --- a/node_modules/lodash.clone/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.clone@^4.3.2", - "scope": null, - "escapedName": "lodash.clone", - "name": "lodash.clone", - "rawSpec": "^4.3.2", - "spec": ">=4.3.2 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/accord" - ] - ], - "_from": "lodash.clone@>=4.3.2 <5.0.0", - "_id": "lodash.clone@4.5.0", - "_inCache": true, - "_location": "/lodash.clone", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.clone-4.5.0.tgz_1471109835963_0.04737550625577569" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.clone@^4.3.2", - "scope": null, - "escapedName": "lodash.clone", - "name": "lodash.clone", - "rawSpec": "^4.3.2", - "spec": ">=4.3.2 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/accord" - ], - "_resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", - "_shasum": "195870450f5a13192478df4bc3d23d2dea1907b6", - "_shrinkwrap": null, - "_spec": "lodash.clone@^4.3.2", - "_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 `_.clone` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "195870450f5a13192478df4bc3d23d2dea1907b6", - "tarball": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "clone" - ], - "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.clone", - "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.5.0" -} diff --git a/node_modules/lodash.clonedeep/LICENSE b/node_modules/lodash.clonedeep/LICENSE deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash.clonedeep/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash.clonedeep/README.md b/node_modules/lodash.clonedeep/README.md deleted file mode 100644 index 7be9a82..0000000 --- a/node_modules/lodash.clonedeep/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash.clonedeep v3.0.2 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.cloneDeep` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.clonedeep -``` - -In Node.js/io.js: - -```js -var cloneDeep = require('lodash.clonedeep'); -``` - -See the [documentation](https://lodash.com/docs#cloneDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.clonedeep) for more details. diff --git a/node_modules/lodash.clonedeep/index.js b/node_modules/lodash.clonedeep/index.js deleted file mode 100644 index f486c22..0000000 --- a/node_modules/lodash.clonedeep/index.js +++ /dev/null @@ -1,63 +0,0 @@ -/** - * lodash 3.0.2 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var baseClone = require('lodash._baseclone'), - bindCallback = require('lodash._bindcallback'); - -/** - * Creates a deep clone of `value`. If `customizer` is provided it's invoked - * to produce the cloned values. If `customizer` returns `undefined` cloning - * is handled by the method instead. The `customizer` is bound to `thisArg` - * and invoked with up to three argument; (value [, index|key, object]). - * - * **Note:** This method is loosely based on the - * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm). - * The enumerable properties of `arguments` objects and objects created by - * constructors other than `Object` are cloned to plain `Object` objects. An - * empty object is returned for uncloneable values such as functions, DOM nodes, - * Maps, Sets, and WeakMaps. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to deep clone. - * @param {Function} [customizer] The function to customize cloning values. - * @param {*} [thisArg] The `this` binding of `customizer`. - * @returns {*} Returns the deep cloned value. - * @example - * - * var users = [ - * { 'user': 'barney' }, - * { 'user': 'fred' } - * ]; - * - * var deep = _.cloneDeep(users); - * deep[0] === users[0]; - * // => false - * - * // using a customizer callback - * var el = _.cloneDeep(document.body, function(value) { - * if (_.isElement(value)) { - * return value.cloneNode(true); - * } - * }); - * - * el === document.body - * // => false - * el.nodeName - * // => BODY - * el.childNodes.length; - * // => 20 - */ -function cloneDeep(value, customizer, thisArg) { - return typeof customizer == 'function' - ? baseClone(value, true, bindCallback(customizer, thisArg, 3)) - : baseClone(value, true); -} - -module.exports = cloneDeep; diff --git a/node_modules/lodash.clonedeep/package.json b/node_modules/lodash.clonedeep/package.json deleted file mode 100644 index 0ca30b9..0000000 --- a/node_modules/lodash.clonedeep/package.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.clonedeep@^3.0.0", - "scope": null, - "escapedName": "lodash.clonedeep", - "name": "lodash.clonedeep", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/node-notifier" - ] - ], - "_from": "lodash.clonedeep@>=3.0.0 <4.0.0", - "_id": "lodash.clonedeep@3.0.2", - "_inCache": true, - "_location": "/lodash.clonedeep", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.13.1", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.clonedeep@^3.0.0", - "scope": null, - "escapedName": "lodash.clonedeep", - "name": "lodash.clonedeep", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/node-notifier" - ], - "_resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz", - "_shasum": "a0a1e40d82a5ea89ff5b147b8444ed63d92827db", - "_shrinkwrap": null, - "_spec": "lodash.clonedeep@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/node-notifier", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._baseclone": "^3.0.0", - "lodash._bindcallback": "^3.0.0" - }, - "description": "The modern build of lodash’s `_.cloneDeep` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "a0a1e40d82a5ea89ff5b147b8444ed63d92827db", - "tarball": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash", - "lodash-modularized", - "stdlib", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - } - ], - "name": "lodash.clonedeep", - "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": "3.0.2" -} diff --git a/node_modules/lodash.defaults/LICENSE.txt b/node_modules/lodash.defaults/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash.defaults/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash.defaults/README.md b/node_modules/lodash.defaults/README.md deleted file mode 100644 index da283fc..0000000 --- a/node_modules/lodash.defaults/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash.defaults v2.4.1 - -The [Lo-Dash](http://lodash.com/) function [`_.defaults`](http://lodash.com/docs#defaults) as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash.defaults/index.js b/node_modules/lodash.defaults/index.js deleted file mode 100644 index 52eec90..0000000 --- a/node_modules/lodash.defaults/index.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var keys = require('lodash.keys'), - objectTypes = require('lodash._objecttypes'); - -/** - * Assigns own enumerable properties of source object(s) to the destination - * object for all destination properties that resolve to `undefined`. Once a - * property is set, additional defaults of the same property will be ignored. - * - * @static - * @memberOf _ - * @type Function - * @category Objects - * @param {Object} object The destination object. - * @param {...Object} [source] The source objects. - * @param- {Object} [guard] Allows working with `_.reduce` without using its - * `key` and `object` arguments as sources. - * @returns {Object} Returns the destination object. - * @example - * - * var object = { 'name': 'barney' }; - * _.defaults(object, { 'name': 'fred', 'employer': 'slate' }); - * // => { 'name': 'barney', 'employer': 'slate' } - */ -var defaults = function(object, source, guard) { - var index, iterable = object, result = iterable; - if (!iterable) return result; - var args = arguments, - argsIndex = 0, - argsLength = typeof guard == 'number' ? 2 : args.length; - while (++argsIndex < argsLength) { - iterable = args[argsIndex]; - if (iterable && objectTypes[typeof iterable]) { - var ownIndex = -1, - ownProps = objectTypes[typeof iterable] && keys(iterable), - length = ownProps ? ownProps.length : 0; - - while (++ownIndex < length) { - index = ownProps[ownIndex]; - if (typeof result[index] == 'undefined') result[index] = iterable[index]; - } - } - } - return result -}; - -module.exports = defaults; diff --git a/node_modules/lodash.defaults/node_modules/lodash.keys/LICENSE.txt b/node_modules/lodash.defaults/node_modules/lodash.keys/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash.defaults/node_modules/lodash.keys/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash.defaults/node_modules/lodash.keys/README.md b/node_modules/lodash.defaults/node_modules/lodash.keys/README.md deleted file mode 100644 index bee29a8..0000000 --- a/node_modules/lodash.defaults/node_modules/lodash.keys/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash.keys v2.4.1 - -The [Lo-Dash](http://lodash.com/) function [`_.keys`](http://lodash.com/docs#keys) as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash.defaults/node_modules/lodash.keys/index.js b/node_modules/lodash.defaults/node_modules/lodash.keys/index.js deleted file mode 100644 index 139568a..0000000 --- a/node_modules/lodash.defaults/node_modules/lodash.keys/index.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var isNative = require('lodash._isnative'), - isObject = require('lodash.isobject'), - shimKeys = require('lodash._shimkeys'); - -/* Native method shortcuts for methods with the same name as other `lodash` methods */ -var nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys; - -/** - * Creates an array composed of the own enumerable property names of an object. - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns an array of property names. - * @example - * - * _.keys({ 'one': 1, 'two': 2, 'three': 3 }); - * // => ['one', 'two', 'three'] (property order is not guaranteed across environments) - */ -var keys = !nativeKeys ? shimKeys : function(object) { - if (!isObject(object)) { - return []; - } - return nativeKeys(object); -}; - -module.exports = keys; diff --git a/node_modules/lodash.defaults/node_modules/lodash.keys/package.json b/node_modules/lodash.defaults/node_modules/lodash.keys/package.json deleted file mode 100644 index d46b120..0000000 --- a/node_modules/lodash.defaults/node_modules/lodash.keys/package.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.keys@~2.4.1", - "scope": null, - "escapedName": "lodash.keys", - "name": "lodash.keys", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults" - ] - ], - "_from": "lodash.keys@>=2.4.1 <2.5.0", - "_id": "lodash.keys@2.4.1", - "_inCache": true, - "_location": "/lodash.defaults/lodash.keys", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.keys@~2.4.1", - "scope": null, - "escapedName": "lodash.keys", - "name": "lodash.keys", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.defaults" - ], - "_resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-2.4.1.tgz", - "_shasum": "48dea46df8ff7632b10d706b8acb26591e2b3727", - "_shrinkwrap": null, - "_spec": "lodash.keys@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._isnative": "~2.4.1", - "lodash._shimkeys": "~2.4.1", - "lodash.isobject": "~2.4.1" - }, - "description": "The Lo-Dash function `_.keys` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "48dea46df8ff7632b10d706b8acb26591e2b3727", - "tarball": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "keywords": [ - "functional", - "lodash", - "lodash-modularized", - "server", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash.keys", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash.defaults/package.json b/node_modules/lodash.defaults/package.json deleted file mode 100644 index e4ddd21..0000000 --- a/node_modules/lodash.defaults/package.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.defaults@~2.4.1", - "scope": null, - "escapedName": "lodash.defaults", - "name": "lodash.defaults", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/lodash.template" - ] - ], - "_from": "lodash.defaults@>=2.4.1 <2.5.0", - "_id": "lodash.defaults@2.4.1", - "_inCache": true, - "_location": "/lodash.defaults", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": { - "lodash._isnative": "2.4.1", - "lodash._shimkeys": "2.4.1", - "lodash.isobject": "2.4.1" - }, - "_requested": { - "raw": "lodash.defaults@~2.4.1", - "scope": null, - "escapedName": "lodash.defaults", - "name": "lodash.defaults", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/lodash.template", - "/gulp-dedupe" - ], - "_resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-2.4.1.tgz", - "_shasum": "a7e8885f05e68851144b6e12a8f3678026bc4c54", - "_shrinkwrap": null, - "_spec": "lodash.defaults@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/lodash.template", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._objecttypes": "~2.4.1", - "lodash.keys": "~2.4.1" - }, - "description": "The Lo-Dash function `_.defaults` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "a7e8885f05e68851144b6e12a8f3678026bc4c54", - "tarball": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "keywords": [ - "functional", - "lodash", - "lodash-modularized", - "server", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "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-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash.escape/LICENSE b/node_modules/lodash.escape/LICENSE deleted file mode 100644 index b054ca5..0000000 --- a/node_modules/lodash.escape/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2016 The Dojo Foundation -Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash.escape/README.md b/node_modules/lodash.escape/README.md deleted file mode 100644 index b012def..0000000 --- a/node_modules/lodash.escape/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.escape v3.2.0 - -The [lodash](https://lodash.com/) method `_.escape` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.escape -``` - -In Node.js: -```js -var escape = require('lodash.escape'); -``` - -See the [documentation](https://lodash.com/docs#escape) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.escape) for more details. diff --git a/node_modules/lodash.escape/index.js b/node_modules/lodash.escape/index.js deleted file mode 100644 index 0971ae8..0000000 --- a/node_modules/lodash.escape/index.js +++ /dev/null @@ -1,180 +0,0 @@ -/** - * lodash 3.2.0 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var root = require('lodash._root'); - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; - -/** Used to match HTML entities and HTML characters. */ -var reUnescapedHtml = /[&<>"'`]/g, - reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - -/** Used to map characters to HTML entities. */ -var htmlEscapes = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''', - '`': '`' -}; - -/** - * Used by `_.escape` to convert characters to HTML entities. - * - * @private - * @param {string} chr The matched character to escape. - * @returns {string} Returns the escaped character. - */ -function escapeHtmlChar(chr) { - return htmlEscapes[chr]; -} - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Built-in value references. */ -var Symbol = root.Symbol; - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = Symbol ? symbolProto.toString : undefined; - -/** - * 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 _ - * @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'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Converts `value` to a string if it's not one. An empty string is returned - * for `null` and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (value == null) { - return ''; - } - if (isSymbol(value)) { - return Symbol ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to - * their corresponding HTML entities. - * - * **Note:** No other characters are escaped. To escape additional - * characters use a third-party library like [_he_](https://mths.be/he). - * - * Though the ">" character is escaped for symmetry, characters like - * ">" and "/" don't need escaping in HTML and have no special meaning - * unless they're part of a tag or unquoted attribute value. - * See [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) - * (under "semi-related fun fact") for more details. - * - * Backticks are escaped because in IE < 9, they can break out of - * attribute values or HTML comments. See [#59](https://html5sec.org/#59), - * [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and - * [#133](https://html5sec.org/#133) of the [HTML5 Security Cheatsheet](https://html5sec.org/) - * for more details. - * - * When working with HTML you should always [quote attribute values](http://wonko.com/post/html-escaping) - * to reduce XSS vectors. - * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The string to escape. - * @returns {string} Returns the escaped string. - * @example - * - * _.escape('fred, barney, & pebbles'); - * // => 'fred, barney, & pebbles' - */ -function escape(string) { - string = toString(string); - return (string && reHasUnescapedHtml.test(string)) - ? string.replace(reUnescapedHtml, escapeHtmlChar) - : string; -} - -module.exports = escape; diff --git a/node_modules/lodash.escape/package.json b/node_modules/lodash.escape/package.json deleted file mode 100644 index 98c8b8d..0000000 --- a/node_modules/lodash.escape/package.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.escape@^3.0.0", - "scope": null, - "escapedName": "lodash.escape", - "name": "lodash.escape", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.template" - ] - ], - "_from": "lodash.escape@>=3.0.0 <4.0.0", - "_id": "lodash.escape@3.2.0", - "_inCache": true, - "_location": "/lodash.escape", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-9-west.internal.npmjs.com", - "tmp": "tmp/lodash.escape-3.2.0.tgz_1454898355271_0.9197692747693509" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.14.18", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.escape@^3.0.0", - "scope": null, - "escapedName": "lodash.escape", - "name": "lodash.escape", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.template", - "/lodash.templatesettings" - ], - "_resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", - "_shasum": "995ee0dc18c1b48cc92effae71a10aab5b487698", - "_shrinkwrap": null, - "_spec": "lodash.escape@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.template", - "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@iceddev.com", - "url": "https://github.com/phated" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._root": "^3.0.0" - }, - "description": "The lodash method `_.escape` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "995ee0dc18c1b48cc92effae71a10aab5b487698", - "tarball": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "escape" - ], - "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.escape", - "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": "3.2.0" -} diff --git a/node_modules/lodash.flatten/LICENSE b/node_modules/lodash.flatten/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.flatten/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/lodash.flatten/README.md b/node_modules/lodash.flatten/README.md deleted file mode 100644 index 526fa73..0000000 --- a/node_modules/lodash.flatten/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.flatten v4.4.0 - -The [lodash](https://lodash.com/) method `_.flatten` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.flatten -``` - -In Node.js: -```js -var flatten = require('lodash.flatten'); -``` - -See the [documentation](https://lodash.com/docs#flatten) or [package source](https://github.com/lodash/lodash/blob/4.4.0-npm-packages/lodash.flatten) for more details. diff --git a/node_modules/lodash.flatten/index.js b/node_modules/lodash.flatten/index.js deleted file mode 100644 index 09ae7a6..0000000 --- a/node_modules/lodash.flatten/index.js +++ /dev/null @@ -1,349 +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]'; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ -function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - return array; -} - -/** 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 Symbol = root.Symbol, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; - -/** - * The base implementation of `_.flatten` with support for restricting flattening. - * - * @private - * @param {Array} array The array to flatten. - * @param {number} depth The maximum recursion depth. - * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. - * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. - * @param {Array} [result=[]] The initial result value. - * @returns {Array} Returns the new flattened array. - */ -function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - - predicate || (predicate = isFlattenable); - result || (result = []); - - while (++index < length) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - // Recursively flatten arrays (susceptible to call stack limits). - baseFlatten(value, depth - 1, predicate, isStrict, result); - } else { - arrayPush(result, value); - } - } else if (!isStrict) { - result[result.length] = value; - } - } - return result; -} - -/** - * Checks if `value` is a flattenable `arguments` object or array. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. - */ -function isFlattenable(value) { - return isArray(value) || isArguments(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]); -} - -/** - * Flattens `array` a single level deep. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to flatten. - * @returns {Array} Returns the new flattened array. - * @example - * - * _.flatten([1, [2, [3, [4]], 5]]); - * // => [1, 2, [3, [4]], 5] - */ -function flatten(array) { - var length = array ? array.length : 0; - return length ? baseFlatten(array, 1) : []; -} - -/** - * 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'; -} - -module.exports = flatten; diff --git a/node_modules/lodash.flatten/package.json b/node_modules/lodash.flatten/package.json deleted file mode 100644 index 7d5a538..0000000 --- a/node_modules/lodash.flatten/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.flatten@^4.2.0", - "scope": null, - "escapedName": "lodash.flatten", - "name": "lodash.flatten", - "rawSpec": "^4.2.0", - "spec": ">=4.2.0 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/accord" - ] - ], - "_from": "lodash.flatten@>=4.2.0 <5.0.0", - "_id": "lodash.flatten@4.4.0", - "_inCache": true, - "_location": "/lodash.flatten", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.flatten-4.4.0.tgz_1471109921864_0.3815248631872237" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.flatten@^4.2.0", - "scope": null, - "escapedName": "lodash.flatten", - "name": "lodash.flatten", - "rawSpec": "^4.2.0", - "spec": ">=4.2.0 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/accord" - ], - "_resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "_shasum": "f31c22225a9632d2bbf8e4addbef240aa765a61f", - "_shrinkwrap": null, - "_spec": "lodash.flatten@^4.2.0", - "_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 `_.flatten` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "f31c22225a9632d2bbf8e4addbef240aa765a61f", - "tarball": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "flatten" - ], - "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.flatten", - "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.4.0" -} diff --git a/node_modules/lodash.isarguments/LICENSE b/node_modules/lodash.isarguments/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.isarguments/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/lodash.isarguments/README.md b/node_modules/lodash.isarguments/README.md deleted file mode 100644 index eb95fe1..0000000 --- a/node_modules/lodash.isarguments/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.isarguments v3.1.0 - -The [lodash](https://lodash.com/) method `_.isArguments` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.isarguments -``` - -In Node.js: -```js -var isArguments = require('lodash.isarguments'); -``` - -See the [documentation](https://lodash.com/docs#isArguments) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.isarguments) for more details. diff --git a/node_modules/lodash.isarguments/index.js b/node_modules/lodash.isarguments/index.js deleted file mode 100644 index 042dac5..0000000 --- a/node_modules/lodash.isarguments/index.js +++ /dev/null @@ -1,229 +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 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; - -/** - * 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 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'; -} - -module.exports = isArguments; diff --git a/node_modules/lodash.isarguments/package.json b/node_modules/lodash.isarguments/package.json deleted file mode 100644 index 46ff0aa..0000000 --- a/node_modules/lodash.isarguments/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.isarguments@^3.0.0", - "scope": null, - "escapedName": "lodash.isarguments", - "name": "lodash.isarguments", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.keys" - ] - ], - "_from": "lodash.isarguments@>=3.0.0 <4.0.0", - "_id": "lodash.isarguments@3.1.0", - "_inCache": true, - "_location": "/lodash.isarguments", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/lodash.isarguments-3.1.0.tgz_1471110006733_0.7392017105594277" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.isarguments@^3.0.0", - "scope": null, - "escapedName": "lodash.isarguments", - "name": "lodash.isarguments", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash.keys" - ], - "_resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", - "_shasum": "2f573d85c6a24289ff00663b491c1d338ff3458a", - "_shrinkwrap": null, - "_spec": "lodash.isarguments@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.keys", - "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 `_.isArguments` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "2f573d85c6a24289ff00663b491c1d338ff3458a", - "tarball": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "isarguments" - ], - "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.isarguments", - "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": "3.1.0" -} diff --git a/node_modules/lodash.isarray/LICENSE b/node_modules/lodash.isarray/LICENSE deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash.isarray/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash.isarray/README.md b/node_modules/lodash.isarray/README.md deleted file mode 100644 index ea274aa..0000000 --- a/node_modules/lodash.isarray/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash.isarray v3.0.4 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.isarray -``` - -In Node.js/io.js: - -```js -var isArray = require('lodash.isarray'); -``` - -See the [documentation](https://lodash.com/docs#isArray) or [package source](https://github.com/lodash/lodash/blob/3.0.4-npm-packages/lodash.isarray) for more details. diff --git a/node_modules/lodash.isarray/index.js b/node_modules/lodash.isarray/index.js deleted file mode 100644 index dd24658..0000000 --- a/node_modules/lodash.isarray/index.js +++ /dev/null @@ -1,180 +0,0 @@ -/** - * lodash 3.0.4 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** `Object#toString` result references. */ -var arrayTag = '[object Array]', - funcTag = '[object Function]'; - -/** Used to detect host constructors (Safari > 5). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** - * Checks if `value` is object-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** Used for native method references. */ -var objectProto = Object.prototype; - -/** Used to resolve the decompiled source of functions. */ -var fnToString = Function.prototype.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - fnToString.call(hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/* Native method references for those with the same name as other `lodash` methods. */ -var nativeIsArray = getNative(Array, 'isArray'); - -/** - * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer) - * of an array-like value. - */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = object == null ? undefined : object[key]; - return isNative(value) ? value : undefined; -} - -/** - * Checks if `value` is a valid array-like length. - * - * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - */ -function isLength(value) { - return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(function() { return arguments; }()); - * // => false - */ -var isArray = nativeIsArray || function(value) { - return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag; -}; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in older versions of Chrome and Safari which return 'function' for regexes - // and Safari 8 equivalents which return 'object' for typed array constructors. - return isObject(value) && objToString.call(value) == funcTag; -} - -/** - * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @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(1); - * // => false - */ -function isObject(value) { - // Avoid a V8 JIT bug in Chrome 19-20. - // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * Checks if `value` is a native function. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, else `false`. - * @example - * - * _.isNative(Array.prototype.push); - * // => true - * - * _.isNative(_); - * // => false - */ -function isNative(value) { - if (value == null) { - return false; - } - if (isFunction(value)) { - return reIsNative.test(fnToString.call(value)); - } - return isObjectLike(value) && reIsHostCtor.test(value); -} - -module.exports = isArray; diff --git a/node_modules/lodash.isarray/package.json b/node_modules/lodash.isarray/package.json deleted file mode 100644 index 559d521..0000000 --- a/node_modules/lodash.isarray/package.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.isarray@^3.0.0", - "scope": null, - "escapedName": "lodash.isarray", - "name": "lodash.isarray", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.keys" - ] - ], - "_from": "lodash.isarray@>=3.0.0 <4.0.0", - "_id": "lodash.isarray@3.0.4", - "_inCache": true, - "_location": "/lodash.isarray", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.12.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.isarray@^3.0.0", - "scope": null, - "escapedName": "lodash.isarray", - "name": "lodash.isarray", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._baseclone", - "/lodash.keys" - ], - "_resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", - "_shasum": "79e4eb88c36a8122af86f844aa9bcd851b5fbb55", - "_shrinkwrap": null, - "_spec": "lodash.isarray@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.keys", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s `_.isArray` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "79e4eb88c36a8122af86f844aa9bcd851b5fbb55", - "tarball": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash", - "lodash-modularized", - "stdlib", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - } - ], - "name": "lodash.isarray", - "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": "3.0.4" -} diff --git a/node_modules/lodash.isempty/LICENSE b/node_modules/lodash.isempty/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.isempty/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/lodash.isempty/README.md b/node_modules/lodash.isempty/README.md deleted file mode 100644 index b514bae..0000000 --- a/node_modules/lodash.isempty/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.isempty v4.4.0 - -The [lodash](https://lodash.com/) method `_.isEmpty` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.isempty -``` - -In Node.js: -```js -var isEmpty = require('lodash.isempty'); -``` - -See the [documentation](https://lodash.com/docs#isEmpty) or [package source](https://github.com/lodash/lodash/blob/4.4.0-npm-packages/lodash.isempty) for more details. diff --git a/node_modules/lodash.isempty/index.js b/node_modules/lodash.isempty/index.js deleted file mode 100644 index 6fb4aff..0000000 --- a/node_modules/lodash.isempty/index.js +++ /dev/null @@ -1,582 +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]', - mapTag = '[object Map]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - setTag = '[object Set]', - weakMapTag = '[object WeakMap]'; - -var dataViewTag = '[object DataView]'; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** Detect free variable `exports`. */ -var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** 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; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Buffer = moduleExports ? root.Buffer : undefined, - propertyIsEnumerable = objectProto.propertyIsEnumerable; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, - nativeKeys = overArg(Object.keys, Object); - -/* Built-in method references that are verified to be native. */ -var DataView = getNative(root, 'DataView'), - Map = getNative(root, 'Map'), - Promise = getNative(root, 'Promise'), - Set = getNative(root, 'Set'), - WeakMap = getNative(root, 'WeakMap'); - -/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */ -var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf'); - -/** Used to detect maps, sets, and weakmaps. */ -var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - -/** - * The base implementation of `getTag`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - return objectToString.call(value); -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -var getTag = baseGetTag; - -// Fallback for data views, maps, sets, and weak maps in IE 11, -// for data views in Edge < 14, and promises in Node.js. -if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = objectToString.call(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : undefined; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * 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; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * 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 a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true - * - * _.isBuffer(new Uint8Array(2)); - * // => false - */ -var isBuffer = nativeIsBuffer || stubFalse; - -/** - * Checks if `value` is an empty object, collection, map, or set. - * - * Objects are considered empty if they have no own enumerable string keyed - * properties. - * - * Array-like values such as `arguments` objects, arrays, buffers, strings, or - * jQuery-like collections are considered empty if they have a `length` of `0`. - * Similarly, maps and sets are considered empty if they have a `size` of `0`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is empty, else `false`. - * @example - * - * _.isEmpty(null); - * // => true - * - * _.isEmpty(true); - * // => true - * - * _.isEmpty(1); - * // => true - * - * _.isEmpty([1, 2, 3]); - * // => false - * - * _.isEmpty({ 'a': 1 }); - * // => false - */ -function isEmpty(value) { - if (isArrayLike(value) && - (isArray(value) || typeof value == 'string' || - typeof value.splice == 'function' || isBuffer(value) || isArguments(value))) { - return !value.length; - } - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } - if (nonEnumShadows || isPrototype(value)) { - return !nativeKeys(value).length; - } - for (var key in value) { - if (hasOwnProperty.call(value, key)) { - return false; - } - } - return true; -} - -/** - * 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 returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example - * - * _.times(2, _.stubFalse); - * // => [false, false] - */ -function stubFalse() { - return false; -} - -module.exports = isEmpty; diff --git a/node_modules/lodash.isempty/package.json b/node_modules/lodash.isempty/package.json deleted file mode 100644 index 3e11654..0000000 --- a/node_modules/lodash.isempty/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.isempty@^4.2.1", - "scope": null, - "escapedName": "lodash.isempty", - "name": "lodash.isempty", - "rawSpec": "^4.2.1", - "spec": ">=4.2.1 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/fined" - ] - ], - "_from": "lodash.isempty@>=4.2.1 <5.0.0", - "_id": "lodash.isempty@4.4.0", - "_inCache": true, - "_location": "/lodash.isempty", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.isempty-4.4.0.tgz_1471110024771_0.43532854481600225" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.isempty@^4.2.1", - "scope": null, - "escapedName": "lodash.isempty", - "name": "lodash.isempty", - "rawSpec": "^4.2.1", - "spec": ">=4.2.1 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/fined" - ], - "_resolved": "https://registry.npmjs.org/lodash.isempty/-/lodash.isempty-4.4.0.tgz", - "_shasum": "6f86cbedd8be4ec987be9aaf33c9684db1b31e7e", - "_shrinkwrap": null, - "_spec": "lodash.isempty@^4.2.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/fined", - "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 `_.isEmpty` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "6f86cbedd8be4ec987be9aaf33c9684db1b31e7e", - "tarball": "https://registry.npmjs.org/lodash.isempty/-/lodash.isempty-4.4.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "isempty" - ], - "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.isempty", - "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.4.0" -} diff --git a/node_modules/lodash.isobject/LICENSE.txt b/node_modules/lodash.isobject/LICENSE.txt deleted file mode 100644 index 49869bb..0000000 --- a/node_modules/lodash.isobject/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2013 The Dojo Foundation -Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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. \ No newline at end of file diff --git a/node_modules/lodash.isobject/README.md b/node_modules/lodash.isobject/README.md deleted file mode 100644 index eeb0a78..0000000 --- a/node_modules/lodash.isobject/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# lodash.isobject v2.4.1 - -The [Lo-Dash](http://lodash.com/) function [`_.isObject`](http://lodash.com/docs#isObject) as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). - -## Author - -| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## Contributors - -| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---|---|---| -| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) | diff --git a/node_modules/lodash.isobject/index.js b/node_modules/lodash.isobject/index.js deleted file mode 100644 index 3596ac3..0000000 --- a/node_modules/lodash.isobject/index.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Lo-Dash 2.4.1 (Custom Build) - * Build: `lodash modularize modern exports="npm" -o ./npm/` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.5.2 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var objectTypes = require('lodash._objecttypes'); - -/** - * Checks if `value` is the language type of Object. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @category Objects - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if the `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(1); - * // => false - */ -function isObject(value) { - // check if the value is the ECMAScript language type of Object - // http://es5.github.io/#x8 - // and avoid a V8 bug - // http://code.google.com/p/v8/issues/detail?id=2291 - return !!(value && objectTypes[typeof value]); -} - -module.exports = isObject; diff --git a/node_modules/lodash.isobject/package.json b/node_modules/lodash.isobject/package.json deleted file mode 100644 index d3699ba..0000000 --- a/node_modules/lodash.isobject/package.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.isobject@~2.4.1", - "scope": null, - "escapedName": "lodash.isobject", - "name": "lodash.isobject", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults/node_modules/lodash.keys" - ] - ], - "_from": "lodash.isobject@>=2.4.1 <2.5.0", - "_id": "lodash.isobject@2.4.1", - "_inCache": true, - "_location": "/lodash.isobject", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "1.3.14", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.isobject@~2.4.1", - "scope": null, - "escapedName": "lodash.isobject", - "name": "lodash.isobject", - "rawSpec": "~2.4.1", - "spec": ">=2.4.1 <2.5.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/lodash.keys", - "/lodash._reunescapedhtml/lodash.keys", - "/lodash.defaults/lodash.keys", - "/lodash.values/lodash.keys" - ], - "_resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-2.4.1.tgz", - "_shasum": "5a2e47fe69953f1ee631a7eba1fe64d2d06558f5", - "_shrinkwrap": null, - "_spec": "lodash.isobject@~2.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.defaults/node_modules/lodash.keys", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash-cli/issues" - }, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "http://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._objecttypes": "~2.4.1" - }, - "description": "The Lo-Dash function `_.isObject` as a Node.js module generated by lodash-cli.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "5a2e47fe69953f1ee631a7eba1fe64d2d06558f5", - "tarball": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-2.4.1.tgz" - }, - "homepage": "http://lodash.com/custom-builds", - "keywords": [ - "functional", - "lodash", - "lodash-modularized", - "server", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash.isobject", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash-cli.git" - }, - "version": "2.4.1" -} diff --git a/node_modules/lodash.isplainobject/LICENSE b/node_modules/lodash.isplainobject/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.isplainobject/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/lodash.isplainobject/README.md b/node_modules/lodash.isplainobject/README.md deleted file mode 100644 index aeefd74..0000000 --- a/node_modules/lodash.isplainobject/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.isplainobject v4.0.6 - -The [lodash](https://lodash.com/) method `_.isPlainObject` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.isplainobject -``` - -In Node.js: -```js -var isPlainObject = require('lodash.isplainobject'); -``` - -See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.isplainobject) for more details. diff --git a/node_modules/lodash.isplainobject/index.js b/node_modules/lodash.isplainobject/index.js deleted file mode 100644 index 0f820ee..0000000 --- a/node_modules/lodash.isplainobject/index.js +++ /dev/null @@ -1,139 +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 - */ - -/** `Object#toString` result references. */ -var objectTag = '[object Object]'; - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Used to infer the `Object` constructor. */ -var objectCtorString = funcToString.call(Object); - -/** - * 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 getPrototype = overArg(Object.getPrototypeOf, Object); - -/** - * 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'; -} - -/** - * Checks if `value` is a plain object, that is, an object created by the - * `Object` constructor or one with a `[[Prototype]]` of `null`. - * - * @static - * @memberOf _ - * @since 0.8.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * _.isPlainObject(new Foo); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true - * - * _.isPlainObject(Object.create(null)); - * // => true - */ -function isPlainObject(value) { - if (!isObjectLike(value) || - objectToString.call(value) != objectTag || isHostObject(value)) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); -} - -module.exports = isPlainObject; diff --git a/node_modules/lodash.isplainobject/package.json b/node_modules/lodash.isplainobject/package.json deleted file mode 100644 index 6f82005..0000000 --- a/node_modules/lodash.isplainobject/package.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.isplainobject@^4.0.4", - "scope": null, - "escapedName": "lodash.isplainobject", - "name": "lodash.isplainobject", - "rawSpec": "^4.0.4", - "spec": ">=4.0.4 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/liftoff" - ] - ], - "_from": "lodash.isplainobject@>=4.0.4 <5.0.0", - "_id": "lodash.isplainobject@4.0.6", - "_inCache": true, - "_location": "/lodash.isplainobject", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.isplainobject-4.0.6.tgz_1471110064885_0.12097060843370855" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.isplainobject@^4.0.4", - "scope": null, - "escapedName": "lodash.isplainobject", - "name": "lodash.isplainobject", - "rawSpec": "^4.0.4", - "spec": ">=4.0.4 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/fined", - "/liftoff" - ], - "_resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "_shasum": "7c526a52d89b45c45cc690b88163be0497f550cb", - "_shrinkwrap": null, - "_spec": "lodash.isplainobject@^4.0.4", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/liftoff", - "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 `_.isPlainObject` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "7c526a52d89b45c45cc690b88163be0497f550cb", - "tarball": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "isplainobject" - ], - "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.isplainobject", - "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.0.6" -} diff --git a/node_modules/lodash.isstring/LICENSE b/node_modules/lodash.isstring/LICENSE deleted file mode 100644 index b054ca5..0000000 --- a/node_modules/lodash.isstring/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2016 The Dojo Foundation -Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash.isstring/README.md b/node_modules/lodash.isstring/README.md deleted file mode 100644 index f184029..0000000 --- a/node_modules/lodash.isstring/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.isstring v4.0.1 - -The [lodash](https://lodash.com/) method `_.isString` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.isstring -``` - -In Node.js: -```js -var isString = require('lodash.isstring'); -``` - -See the [documentation](https://lodash.com/docs#isString) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.isstring) for more details. diff --git a/node_modules/lodash.isstring/index.js b/node_modules/lodash.isstring/index.js deleted file mode 100644 index 408225c..0000000 --- a/node_modules/lodash.isstring/index.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * lodash 4.0.1 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** `Object#toString` result references. */ -var stringTag = '[object String]'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @type Function - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, 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 object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @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'; -} - -/** - * Checks if `value` is classified as a `String` primitive or object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isString('abc'); - * // => true - * - * _.isString(1); - * // => false - */ -function isString(value) { - return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); -} - -module.exports = isString; diff --git a/node_modules/lodash.isstring/package.json b/node_modules/lodash.isstring/package.json deleted file mode 100644 index f8f8ff4..0000000 --- a/node_modules/lodash.isstring/package.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.isstring@^4.0.1", - "scope": null, - "escapedName": "lodash.isstring", - "name": "lodash.isstring", - "rawSpec": "^4.0.1", - "spec": ">=4.0.1 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/liftoff" - ] - ], - "_from": "lodash.isstring@>=4.0.1 <5.0.0", - "_id": "lodash.isstring@4.0.1", - "_inCache": true, - "_location": "/lodash.isstring", - "_nodeVersion": "5.4.0", - "_npmOperationalInternal": { - "host": "packages-5-east.internal.npmjs.com", - "tmp": "tmp/lodash.isstring-4.0.1.tgz_1454484537621_0.8814679116476327" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.14.15", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.isstring@^4.0.1", - "scope": null, - "escapedName": "lodash.isstring", - "name": "lodash.isstring", - "rawSpec": "^4.0.1", - "spec": ">=4.0.1 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/fined", - "/liftoff" - ], - "_resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "_shasum": "d527dfb5456eca7cc9bb95d5daeaf88ba54a5451", - "_shrinkwrap": null, - "_spec": "lodash.isstring@^4.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/liftoff", - "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@iceddev.com", - "url": "https://github.com/phated" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The lodash method `_.isString` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "d527dfb5456eca7cc9bb95d5daeaf88ba54a5451", - "tarball": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "isstring" - ], - "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.isstring", - "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.0.1" -} diff --git a/node_modules/lodash.keys/LICENSE b/node_modules/lodash.keys/LICENSE deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash.keys/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash.keys/README.md b/node_modules/lodash.keys/README.md deleted file mode 100644 index 5f69a18..0000000 --- a/node_modules/lodash.keys/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash.keys v3.1.2 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.keys` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.keys -``` - -In Node.js/io.js: - -```js -var keys = require('lodash.keys'); -``` - -See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.keys) for more details. diff --git a/node_modules/lodash.keys/index.js b/node_modules/lodash.keys/index.js deleted file mode 100644 index f4c1774..0000000 --- a/node_modules/lodash.keys/index.js +++ /dev/null @@ -1,236 +0,0 @@ -/** - * lodash 3.1.2 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var getNative = require('lodash._getnative'), - isArguments = require('lodash.isarguments'), - isArray = require('lodash.isarray'); - -/** Used to detect unsigned integer values. */ -var reIsUint = /^\d+$/; - -/** Used for native method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/* Native method references for those with the same name as other `lodash` methods. */ -var nativeKeys = getNative(Object, 'keys'); - -/** - * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer) - * of an array-like value. - */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new function. - */ -function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; -} - -/** - * Gets the "length" property value of `object`. - * - * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) - * that affects Safari on at least iOS 8.1-8.3 ARM64. - * - * @private - * @param {Object} object The object to query. - * @returns {*} Returns the "length" value. - */ -var getLength = baseProperty('length'); - -/** - * Checks if `value` is array-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - */ -function isArrayLike(value) { - return value != null && isLength(getLength(value)); -} - -/** - * 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) { - value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1; - length = length == null ? MAX_SAFE_INTEGER : length; - return value > -1 && value % 1 == 0 && value < length; -} - -/** - * Checks if `value` is a valid array-like length. - * - * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - */ -function isLength(value) { - return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} - -/** - * A fallback implementation of `Object.keys` which creates an array of the - * own enumerable property names of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ -function shimKeys(object) { - var props = keysIn(object), - propsLength = props.length, - length = propsLength && object.length; - - var allowIndexes = !!length && isLength(length) && - (isArray(object) || isArguments(object)); - - var index = -1, - result = []; - - while (++index < propsLength) { - var key = props[index]; - if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) { - result.push(key); - } - } - return result; -} - -/** - * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @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(1); - * // => false - */ -function isObject(value) { - // Avoid a V8 JIT bug in Chrome 19-20. - // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys) - * for more details. - * - * @static - * @memberOf _ - * @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; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -var keys = !nativeKeys ? shimKeys : function(object) { - var Ctor = object == null ? undefined : object.constructor; - if ((typeof Ctor == 'function' && Ctor.prototype === object) || - (typeof object != 'function' && isArrayLike(object))) { - return shimKeys(object); - } - return isObject(object) ? nativeKeys(object) : []; -}; - -/** - * Creates an array of the own and inherited enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. - * - * @static - * @memberOf _ - * @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) { - if (object == null) { - return []; - } - if (!isObject(object)) { - object = Object(object); - } - var length = object.length; - length = (length && isLength(length) && - (isArray(object) || isArguments(object)) && length) || 0; - - var Ctor = object.constructor, - index = -1, - isProto = typeof Ctor == 'function' && Ctor.prototype === object, - result = Array(length), - skipIndexes = length > 0; - - while (++index < length) { - result[index] = (index + ''); - } - for (var key in object) { - if (!(skipIndexes && isIndex(key, length)) && - !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { - result.push(key); - } - } - return result; -} - -module.exports = keys; diff --git a/node_modules/lodash.keys/package.json b/node_modules/lodash.keys/package.json deleted file mode 100644 index 12b10b4..0000000 --- a/node_modules/lodash.keys/package.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.keys@^3.0.0", - "scope": null, - "escapedName": "lodash.keys", - "name": "lodash.keys", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.template" - ] - ], - "_from": "lodash.keys@>=3.0.0 <4.0.0", - "_id": "lodash.keys@3.1.2", - "_inCache": true, - "_location": "/lodash.keys", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.12.0", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.keys@^3.0.0", - "scope": null, - "escapedName": "lodash.keys", - "name": "lodash.keys", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/lodash._baseassign", - "/lodash._baseclone", - "/lodash.assign", - "/lodash.template" - ], - "_resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", - "_shasum": "4dbc0472b156be50a0b286855d1bd0b0c656098a", - "_shrinkwrap": null, - "_spec": "lodash.keys@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.template", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": { - "lodash._getnative": "^3.0.0", - "lodash.isarguments": "^3.0.0", - "lodash.isarray": "^3.0.0" - }, - "description": "The modern build of lodash’s `_.keys` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "4dbc0472b156be50a0b286855d1bd0b0c656098a", - "tarball": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash", - "lodash-modularized", - "stdlib", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - } - ], - "name": "lodash.keys", - "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": "3.1.2" -} diff --git a/node_modules/lodash.mapvalues/LICENSE b/node_modules/lodash.mapvalues/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.mapvalues/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/lodash.mapvalues/README.md b/node_modules/lodash.mapvalues/README.md deleted file mode 100644 index 32cb163..0000000 --- a/node_modules/lodash.mapvalues/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.mapvalues v4.6.0 - -The [lodash](https://lodash.com/) method `_.mapValues` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.mapvalues -``` - -In Node.js: -```js -var mapValues = require('lodash.mapvalues'); -``` - -See the [documentation](https://lodash.com/docs#mapValues) or [package source](https://github.com/lodash/lodash/blob/4.6.0-npm-packages/lodash.mapvalues) for more details. diff --git a/node_modules/lodash.mapvalues/index.js b/node_modules/lodash.mapvalues/index.js deleted file mode 100644 index b04812c..0000000 --- a/node_modules/lodash.mapvalues/index.js +++ /dev/null @@ -1,2280 +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 the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** Used as the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used to compose bitmasks for comparison styles. */ -var UNORDERED_COMPARE_FLAG = 1, - PARTIAL_COMPARE_FLAG = 2; - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/, - reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** Used to identify `toStringTag` values of typed arrays. */ -var typedArrayTags = {}; -typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = -typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = -typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = -typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = -typedArrayTags[uint32Tag] = true; -typedArrayTags[argsTag] = typedArrayTags[arrayTag] = -typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = -typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = -typedArrayTags[errorTag] = typedArrayTags[funcTag] = -typedArrayTags[mapTag] = typedArrayTags[numberTag] = -typedArrayTags[objectTag] = typedArrayTags[regexpTag] = -typedArrayTags[setTag] = typedArrayTags[stringTag] = -typedArrayTags[weakMapTag] = false; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** Detect free variable `exports`. */ -var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Detect free variable `process` from Node.js. */ -var freeProcess = moduleExports && freeGlobal.process; - -/** Used to access faster Node.js helpers. */ -var nodeUtil = (function() { - try { - return freeProcess && freeProcess.binding('util'); - } catch (e) {} -}()); - -/* Node.js helper references. */ -var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - -/** - * A specialized version of `_.some` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if any element passes the predicate check, - * else `false`. - */ -function arraySome(array, predicate) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; -} - -/** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new accessor function. - */ -function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; -} - -/** - * 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; -} - -/** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ -function baseUnary(func) { - return function(value) { - return func(value); - }; -} - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Converts `map` to its key-value pairs. - * - * @private - * @param {Object} map The map to convert. - * @returns {Array} Returns the key-value pairs. - */ -function mapToArray(map) { - var index = -1, - result = Array(map.size); - - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ -function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** 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; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Symbol = root.Symbol, - Uint8Array = root.Uint8Array, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); - -/* Built-in method references that are verified to be native. */ -var DataView = getNative(root, 'DataView'), - Map = getNative(root, 'Map'), - Promise = getNative(root, 'Promise'), - Set = getNative(root, 'Set'), - WeakMap = getNative(root, 'WeakMap'), - nativeCreate = getNative(Object, 'create'); - -/** Used to detect maps, sets, and weakmaps. */ -var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. - */ -function SetCache(values) { - var index = -1, - length = values ? values.length : 0; - - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); - } -} - -/** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ -function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; -} - -/** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ -function setCacheHas(value) { - return this.__data__.has(value); -} - -// Add methods to `SetCache`. -SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; -SetCache.prototype.has = setCacheHas; - -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack(entries) { - this.__data__ = new ListCache(entries); -} - -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear() { - this.__data__ = new ListCache; -} - -/** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function stackDelete(key) { - return this.__data__['delete'](key); -} - -/** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function stackGet(key) { - return this.__data__.get(key); -} - -/** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function stackHas(key) { - return this.__data__.has(key); -} - -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet(key, value) { - var cache = this.__data__; - if (cache instanceof ListCache) { - var pairs = cache.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - return this; - } - cache = this.__data__ = new MapCache(pairs); - } - cache.set(key, value); - return this; -} - -// Add methods to `Stack`. -Stack.prototype.clear = stackClear; -Stack.prototype['delete'] = stackDelete; -Stack.prototype.get = stackGet; -Stack.prototype.has = stackHas; -Stack.prototype.set = stackSet; - -/** - * 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; -} - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `baseForOwn` which iterates over `object` - * properties returned by `keysFunc` and invokes `iteratee` for each property. - * Iteratee functions may exit iteration early by explicitly returning `false`. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {Function} keysFunc The function to get the keys of `object`. - * @returns {Object} Returns `object`. - */ -var baseFor = createBaseFor(); - -/** - * The base implementation of `_.forOwn` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Object} Returns `object`. - */ -function baseForOwn(object, iteratee) { - return object && baseFor(object, iteratee, keys); -} - -/** - * The base implementation of `_.get` without support for default values. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @returns {*} Returns the resolved value. - */ -function baseGet(object, path) { - path = isKey(path, object) ? [path] : castPath(path); - - var index = 0, - length = path.length; - - while (object != null && index < length) { - object = object[toKey(path[index++])]; - } - return (index && index == length) ? object : undefined; -} - -/** - * The base implementation of `getTag`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - return objectToString.call(value); -} - -/** - * The base implementation of `_.hasIn` without support for deep paths. - * - * @private - * @param {Object} [object] The object to query. - * @param {Array|string} key The key to check. - * @returns {boolean} Returns `true` if `key` exists, else `false`. - */ -function baseHasIn(object, key) { - return object != null && key in Object(object); -} - -/** - * The base implementation of `_.isEqual` which supports partial comparisons - * and tracks traversed objects. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @param {Function} [customizer] The function to customize comparisons. - * @param {boolean} [bitmask] The bitmask of comparison flags. - * The bitmask may be composed of the following flags: - * 1 - Unordered comparison - * 2 - Partial comparison - * @param {Object} [stack] Tracks traversed `value` and `other` objects. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - */ -function baseIsEqual(value, other, customizer, bitmask, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack); -} - -/** - * A specialized version of `baseIsEqual` for arrays and objects which performs - * deep comparisons and tracks traversed objects enabling objects with circular - * references to be compared. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} [customizer] The function to customize comparisons. - * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` - * for more details. - * @param {Object} [stack] Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = arrayTag, - othTag = arrayTag; - - if (!objIsArr) { - objTag = getTag(object); - objTag = objTag == argsTag ? objectTag : objTag; - } - if (!othIsArr) { - othTag = getTag(other); - othTag = othTag == argsTag ? objectTag : othTag; - } - var objIsObj = objTag == objectTag && !isHostObject(object), - othIsObj = othTag == objectTag && !isHostObject(other), - isSameTag = objTag == othTag; - - if (isSameTag && !objIsObj) { - stack || (stack = new Stack); - return (objIsArr || isTypedArray(object)) - ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) - : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack); - } - if (!(bitmask & PARTIAL_COMPARE_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; - - stack || (stack = new Stack); - return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack); - return equalObjects(object, other, equalFunc, customizer, bitmask, stack); -} - -/** - * The base implementation of `_.isMatch` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to inspect. - * @param {Object} source The object of property values to match. - * @param {Array} matchData The property names, values, and compare flags to match. - * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if `object` is a match, else `false`. - */ -function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; - - if (object == null) { - return !length; - } - object = Object(object); - while (index--) { - var data = matchData[index]; - if ((noCustomizer && data[2]) - ? data[1] !== object[data[0]] - : !(data[0] in object) - ) { - return false; - } - } - while (++index < length) { - data = matchData[index]; - var key = data[0], - objValue = object[key], - srcValue = data[1]; - - if (noCustomizer && data[2]) { - if (objValue === undefined && !(key in object)) { - return false; - } - } else { - var stack = new Stack; - if (customizer) { - var result = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result === undefined - ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) - : result - )) { - return false; - } - } - } - return true; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.isTypedArray` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - */ -function baseIsTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; -} - -/** - * The base implementation of `_.iteratee`. - * - * @private - * @param {*} [value=_.identity] The value to convert to an iteratee. - * @returns {Function} Returns the iteratee. - */ -function baseIteratee(value) { - // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. - // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. - if (typeof value == 'function') { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == 'object') { - return isArray(value) - ? baseMatchesProperty(value[0], value[1]) - : baseMatches(value); - } - return property(value); -} - -/** - * The base implementation of `_.keys` 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 baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } - } - return result; -} - -/** - * The base implementation of `_.matches` which doesn't clone `source`. - * - * @private - * @param {Object} source The object of property values to match. - * @returns {Function} Returns the new spec function. - */ -function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; -} - -/** - * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. - * - * @private - * @param {string} path The path of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ -function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return (objValue === undefined && objValue === srcValue) - ? hasIn(object, path) - : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG); - }; -} - -/** - * A specialized version of `baseProperty` which supports deep paths. - * - * @private - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. - */ -function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; -} - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @returns {Array} Returns the cast property path array. - */ -function castPath(value) { - return isArray(value) ? value : stringToPath(value); -} - -/** - * Creates a base function for methods like `_.forIn` and `_.forOwn`. - * - * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. - */ -function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; -} - -/** - * A specialized version of `baseIsEqualDeep` for arrays with support for - * partial deep comparisons. - * - * @private - * @param {Array} array The array to compare. - * @param {Array} other The other array to compare. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. - * @param {Object} stack Tracks traversed `array` and `other` objects. - * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. - */ -function equalArrays(array, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, - arrLength = array.length, - othLength = other.length; - - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - // Assume cyclic values are equal. - var stacked = stack.get(array); - if (stacked && stack.get(other)) { - return stacked == other; - } - var index = -1, - result = true, - seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined; - - stack.set(array, other); - stack.set(other, array); - - // Ignore non-index properties. - while (++index < arrLength) { - var arrValue = array[index], - othValue = other[index]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, arrValue, index, other, array, stack) - : customizer(arrValue, othValue, index, array, other, stack); - } - if (compared !== undefined) { - if (compared) { - continue; - } - result = false; - break; - } - // Recursively compare arrays (susceptible to call stack limits). - if (seen) { - if (!arraySome(other, function(othValue, othIndex) { - if (!seen.has(othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { - return seen.add(othIndex); - } - })) { - result = false; - break; - } - } else if (!( - arrValue === othValue || - equalFunc(arrValue, othValue, customizer, bitmask, stack) - )) { - result = false; - break; - } - } - stack['delete'](array); - stack['delete'](other); - return result; -} - -/** - * A specialized version of `baseIsEqualDeep` for comparing objects of - * the same `toStringTag`. - * - * **Note:** This function only supports comparing values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {string} tag The `toStringTag` of the objects to compare. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) { - switch (tag) { - case dataViewTag: - if ((object.byteLength != other.byteLength) || - (object.byteOffset != other.byteOffset)) { - return false; - } - object = object.buffer; - other = other.buffer; - - case arrayBufferTag: - if ((object.byteLength != other.byteLength) || - !equalFunc(new Uint8Array(object), new Uint8Array(other))) { - return false; - } - return true; - - case boolTag: - case dateTag: - case numberTag: - // Coerce booleans to `1` or `0` and dates to milliseconds. - // Invalid dates are coerced to `NaN`. - return eq(+object, +other); - - case errorTag: - return object.name == other.name && object.message == other.message; - - case regexpTag: - case stringTag: - // Coerce regexes to strings and treat strings, primitives and objects, - // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring - // for more details. - return object == (other + ''); - - case mapTag: - var convert = mapToArray; - - case setTag: - var isPartial = bitmask & PARTIAL_COMPARE_FLAG; - convert || (convert = setToArray); - - if (object.size != other.size && !isPartial) { - return false; - } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= UNORDERED_COMPARE_FLAG; - - // Recursively compare objects (susceptible to call stack limits). - stack.set(object, other); - var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack); - stack['delete'](object); - return result; - - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; -} - -/** - * A specialized version of `baseIsEqualDeep` for objects with support for - * partial deep comparisons. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Function} customizer The function to customize comparisons. - * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual` - * for more details. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function equalObjects(object, other, equalFunc, customizer, bitmask, stack) { - var isPartial = bitmask & PARTIAL_COMPARE_FLAG, - objProps = keys(object), - objLength = objProps.length, - othProps = keys(other), - othLength = othProps.length; - - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; - } - } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked && stack.get(other)) { - return stacked == other; - } - var result = true; - stack.set(object, other); - stack.set(other, object); - - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], - othValue = other[key]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, objValue, key, other, object, stack) - : customizer(objValue, othValue, key, object, other, stack); - } - // Recursively compare objects (susceptible to call stack limits). - if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack)) - : compared - )) { - result = false; - break; - } - skipCtor || (skipCtor = key == 'constructor'); - } - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; - - // Non `Object` object instances with different constructors are not equal. - if (objCtor != othCtor && - ('constructor' in object && 'constructor' in other) && - !(typeof objCtor == 'function' && objCtor instanceof objCtor && - typeof othCtor == 'function' && othCtor instanceof othCtor)) { - result = false; - } - } - stack['delete'](object); - stack['delete'](other); - return result; -} - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the property names, values, and compare flags of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the match data of `object`. - */ -function getMatchData(object) { - var result = keys(object), - length = result.length; - - while (length--) { - var key = result[length], - value = object[key]; - - result[length] = [key, value, isStrictComparable(value)]; - } - return result; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -var getTag = baseGetTag; - -// Fallback for data views, maps, sets, and weak maps in IE 11, -// for data views in Edge < 14, and promises in Node.js. -if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = objectToString.call(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : undefined; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; -} - -/** - * Checks if `path` exists on `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @param {Function} hasFunc The function to check properties. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - */ -function hasPath(object, path, hasFunc) { - path = isKey(path, object) ? [path] : castPath(path); - - var result, - index = -1, - length = path.length; - - while (++index < length) { - var key = toKey(path[index]); - if (!(result = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result) { - return result; - } - var length = object ? object.length : 0; - return !!length && isLength(length) && isIndex(key, length) && - (isArray(object) || isArguments(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 `value` is a property name and not a property path. - * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. - */ -function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); -} - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * 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; -} - -/** - * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` if suitable for strict - * equality comparisons, else `false`. - */ -function isStrictComparable(value) { - return value === value && !isObject(value); -} - -/** - * A specialized version of `matchesProperty` for source values suitable - * for strict equality comparisons, i.e. `===`. - * - * @private - * @param {string} key The key of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ -function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && - (srcValue !== undefined || (key in Object(object))); - }; -} - -/** - * Converts `string` to a property path array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. - */ -var stringToPath = memoize(function(string) { - string = toString(string); - - var result = []; - if (reLeadingDot.test(string)) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; -}); - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. - * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; - */ -function memoize(func, resolver) { - if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); - } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result); - return result; - }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; -} - -// Assign cache to `_.memoize`. -memoize.Cache = MapCache; - -/** - * 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'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Checks if `value` is classified as a typed array. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - * @example - * - * _.isTypedArray(new Uint8Array); - * // => true - * - * _.isTypedArray([]); - * // => false - */ -var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} - -/** - * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is returned in its place. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @param {*} [defaultValue] The value returned for `undefined` resolved values. - * @returns {*} Returns the resolved value. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.get(object, 'a[0].b.c'); - * // => 3 - * - * _.get(object, ['a', '0', 'b', 'c']); - * // => 3 - * - * _.get(object, 'a.b.c', 'default'); - * // => 'default' - */ -function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path); - return result === undefined ? defaultValue : result; -} - -/** - * Checks if `path` is a direct or inherited property of `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - * @example - * - * var object = _.create({ 'a': _.create({ 'b': 2 }) }); - * - * _.hasIn(object, 'a'); - * // => true - * - * _.hasIn(object, 'a.b'); - * // => true - * - * _.hasIn(object, ['a', 'b']); - * // => true - * - * _.hasIn(object, 'b'); - * // => false - */ -function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); -} - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @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; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} - -/** - * Creates an object with the same keys as `object` and values generated - * by running each own enumerable string keyed property of `object` thru - * `iteratee`. The iteratee is invoked with three arguments: - * (value, key, object). - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Object} Returns the new mapped object. - * @see _.mapKeys - * @example - * - * var users = { - * 'fred': { 'user': 'fred', 'age': 40 }, - * 'pebbles': { 'user': 'pebbles', 'age': 1 } - * }; - * - * _.mapValues(users, function(o) { return o.age; }); - * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) - * - * // The `_.property` iteratee shorthand. - * _.mapValues(users, 'age'); - * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) - */ -function mapValues(object, iteratee) { - var result = {}; - iteratee = baseIteratee(iteratee, 3); - - baseForOwn(object, function(value, key, object) { - result[key] = iteratee(value, key, object); - }); - return result; -} - -/** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example - * - * var object = { 'a': 1 }; - * - * console.log(_.identity(object) === object); - * // => true - */ -function identity(value) { - return value; -} - -/** - * Creates a function that returns the value at `path` of a given object. - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Util - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. - * @example - * - * var objects = [ - * { 'a': { 'b': 2 } }, - * { 'a': { 'b': 1 } } - * ]; - * - * _.map(objects, _.property('a.b')); - * // => [2, 1] - * - * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); - * // => [1, 2] - */ -function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); -} - -module.exports = mapValues; diff --git a/node_modules/lodash.mapvalues/package.json b/node_modules/lodash.mapvalues/package.json deleted file mode 100644 index 0b72d35..0000000 --- a/node_modules/lodash.mapvalues/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.mapvalues@^4.4.0", - "scope": null, - "escapedName": "lodash.mapvalues", - "name": "lodash.mapvalues", - "rawSpec": "^4.4.0", - "spec": ">=4.4.0 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/liftoff" - ] - ], - "_from": "lodash.mapvalues@>=4.4.0 <5.0.0", - "_id": "lodash.mapvalues@4.6.0", - "_inCache": true, - "_location": "/lodash.mapvalues", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.mapvalues-4.6.0.tgz_1471110117308_0.16050698678009212" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.mapvalues@^4.4.0", - "scope": null, - "escapedName": "lodash.mapvalues", - "name": "lodash.mapvalues", - "rawSpec": "^4.4.0", - "spec": ">=4.4.0 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/liftoff" - ], - "_resolved": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz", - "_shasum": "1bafa5005de9dd6f4f26668c30ca37230cc9689c", - "_shrinkwrap": null, - "_spec": "lodash.mapvalues@^4.4.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/liftoff", - "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 `_.mapValues` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "1bafa5005de9dd6f4f26668c30ca37230cc9689c", - "tarball": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "mapvalues" - ], - "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.mapvalues", - "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.6.0" -} diff --git a/node_modules/lodash.merge/LICENSE b/node_modules/lodash.merge/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.merge/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/lodash.merge/README.md b/node_modules/lodash.merge/README.md deleted file mode 100644 index d8a0ea4..0000000 --- a/node_modules/lodash.merge/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.merge v4.6.0 - -The [lodash](https://lodash.com/) method `_.merge` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.merge -``` - -In Node.js: -```js -var merge = require('lodash.merge'); -``` - -See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/4.6.0-npm-packages/lodash.merge) for more details. diff --git a/node_modules/lodash.merge/index.js b/node_modules/lodash.merge/index.js deleted file mode 100644 index e7e7105..0000000 --- a/node_modules/lodash.merge/index.js +++ /dev/null @@ -1,2207 +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 the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to match `RegExp` flags from their coerced string values. */ -var reFlags = /\w*$/; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** Used to identify `toStringTag` values of typed arrays. */ -var typedArrayTags = {}; -typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = -typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = -typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = -typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = -typedArrayTags[uint32Tag] = true; -typedArrayTags[argsTag] = typedArrayTags[arrayTag] = -typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = -typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = -typedArrayTags[errorTag] = typedArrayTags[funcTag] = -typedArrayTags[mapTag] = typedArrayTags[numberTag] = -typedArrayTags[objectTag] = typedArrayTags[regexpTag] = -typedArrayTags[setTag] = typedArrayTags[stringTag] = -typedArrayTags[weakMapTag] = false; - -/** Used to identify `toStringTag` values supported by `_.clone`. */ -var cloneableTags = {}; -cloneableTags[argsTag] = cloneableTags[arrayTag] = -cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = -cloneableTags[boolTag] = cloneableTags[dateTag] = -cloneableTags[float32Tag] = cloneableTags[float64Tag] = -cloneableTags[int8Tag] = cloneableTags[int16Tag] = -cloneableTags[int32Tag] = cloneableTags[mapTag] = -cloneableTags[numberTag] = cloneableTags[objectTag] = -cloneableTags[regexpTag] = cloneableTags[setTag] = -cloneableTags[stringTag] = cloneableTags[symbolTag] = -cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = -cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; -cloneableTags[errorTag] = cloneableTags[funcTag] = -cloneableTags[weakMapTag] = false; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** Detect free variable `exports`. */ -var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Detect free variable `process` from Node.js. */ -var freeProcess = moduleExports && freeGlobal.process; - -/** Used to access faster Node.js helpers. */ -var nodeUtil = (function() { - try { - return freeProcess && freeProcess.binding('util'); - } catch (e) {} -}()); - -/* Node.js helper references. */ -var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - -/** - * Adds the key-value `pair` to `map`. - * - * @private - * @param {Object} map The map to modify. - * @param {Array} pair The key-value pair to add. - * @returns {Object} Returns `map`. - */ -function addMapEntry(map, pair) { - // Don't return `map.set` because it's not chainable in IE 11. - map.set(pair[0], pair[1]); - return map; -} - -/** - * Adds `value` to `set`. - * - * @private - * @param {Object} set The set to modify. - * @param {*} value The value to add. - * @returns {Object} Returns `set`. - */ -function addSetEntry(set, value) { - // Don't return `set.add` because it's not chainable in IE 11. - set.add(value); - return set; -} - -/** - * 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); -} - -/** - * A specialized version of `_.forEach` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. - */ -function arrayEach(array, iteratee) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; -} - -/** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ -function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - return array; -} - -/** - * A specialized version of `_.reduce` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @param {boolean} [initAccum] Specify using the first element of `array` as - * the initial value. - * @returns {*} Returns the accumulated value. - */ -function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, - length = array ? array.length : 0; - - if (initAccum && length) { - accumulator = array[++index]; - } - while (++index < length) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; -} - -/** - * 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; -} - -/** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ -function baseUnary(func) { - return function(value) { - return func(value); - }; -} - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Converts `map` to its key-value pairs. - * - * @private - * @param {Object} map The map to convert. - * @returns {Array} Returns the key-value pairs. - */ -function mapToArray(map) { - var index = -1, - result = Array(map.size); - - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ -function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Used to infer the `Object` constructor. */ -var objectCtorString = funcToString.call(Object); - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Buffer = moduleExports ? root.Buffer : undefined, - Symbol = root.Symbol, - Uint8Array = root.Uint8Array, - getPrototype = overArg(Object.getPrototypeOf, Object), - objectCreate = Object.create, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - splice = arrayProto.splice; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeGetSymbols = Object.getOwnPropertySymbols, - nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, - nativeKeys = overArg(Object.keys, Object), - nativeMax = Math.max; - -/* Built-in method references that are verified to be native. */ -var DataView = getNative(root, 'DataView'), - Map = getNative(root, 'Map'), - Promise = getNative(root, 'Promise'), - Set = getNative(root, 'Set'), - WeakMap = getNative(root, 'WeakMap'), - nativeCreate = getNative(Object, 'create'); - -/** Used to detect maps, sets, and weakmaps. */ -var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack(entries) { - this.__data__ = new ListCache(entries); -} - -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear() { - this.__data__ = new ListCache; -} - -/** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function stackDelete(key) { - return this.__data__['delete'](key); -} - -/** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function stackGet(key) { - return this.__data__.get(key); -} - -/** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function stackHas(key) { - return this.__data__.has(key); -} - -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet(key, value) { - var cache = this.__data__; - if (cache instanceof ListCache) { - var pairs = cache.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - return this; - } - cache = this.__data__ = new MapCache(pairs); - } - cache.set(key, value); - return this; -} - -// Add methods to `Stack`. -Stack.prototype.clear = stackClear; -Stack.prototype['delete'] = stackDelete; -Stack.prototype.get = stackGet; -Stack.prototype.has = stackHas; -Stack.prototype.set = stackSet; - -/** - * 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; -} - -/** - * This function is like `assignValue` except that it doesn't assign - * `undefined` values. - * - * @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 assignMergeValue(object, key, value) { - if ((value !== undefined && !eq(object[key], value)) || - (typeof key == 'number' && value === undefined && !(key in object))) { - object[key] = value; - } -} - -/** - * 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; - } -} - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `_.assign` without support for multiple sources - * or `customizer` functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @returns {Object} Returns `object`. - */ -function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); -} - -/** - * The base implementation of `_.clone` and `_.cloneDeep` which tracks - * traversed objects. - * - * @private - * @param {*} value The value to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @param {boolean} [isFull] Specify a clone including symbols. - * @param {Function} [customizer] The function to customize cloning. - * @param {string} [key] The key of `value`. - * @param {Object} [object] The parent object of `value`. - * @param {Object} [stack] Tracks traversed objects and their clone counterparts. - * @returns {*} Returns the cloned value. - */ -function baseClone(value, isDeep, isFull, customizer, key, object, stack) { - var result; - if (customizer) { - result = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result !== undefined) { - return result; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result); - } - } else { - var tag = getTag(value), - isFunc = tag == funcTag || tag == genTag; - - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - if (isHostObject(value)) { - return object ? value : {}; - } - result = initCloneObject(isFunc ? {} : value); - if (!isDeep) { - return copySymbols(value, baseAssign(result, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result = initCloneByTag(value, tag, baseClone, isDeep); - } - } - // Check for circular references and return its corresponding clone. - stack || (stack = new Stack); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result); - - if (!isArr) { - var props = isFull ? getAllKeys(value) : keys(value); - } - arrayEach(props || value, function(subValue, key) { - if (props) { - key = subValue; - subValue = value[key]; - } - // Recursively populate clone (susceptible to call stack limits). - assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); - }); - return result; -} - -/** - * The base implementation of `_.create` without support for assigning - * properties to the created object. - * - * @private - * @param {Object} prototype The object to inherit from. - * @returns {Object} Returns the new object. - */ -function baseCreate(proto) { - return isObject(proto) ? objectCreate(proto) : {}; -} - -/** - * The base implementation of `getAllKeys` and `getAllKeysIn` which uses - * `keysFunc` and `symbolsFunc` to get the enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Function} keysFunc The function to get the keys of `object`. - * @param {Function} symbolsFunc The function to get the symbols of `object`. - * @returns {Array} Returns the array of property names and symbols. - */ -function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); -} - -/** - * The base implementation of `getTag`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - return objectToString.call(value); -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.isTypedArray` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - */ -function baseIsTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; -} - -/** - * The base implementation of `_.keys` 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 baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } - } - return result; -} - -/** - * 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 `_.merge` without support for multiple sources. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {number} srcIndex The index of `source`. - * @param {Function} [customizer] The function to customize merged values. - * @param {Object} [stack] Tracks traversed source values and their merged - * counterparts. - */ -function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - if (!(isArray(source) || isTypedArray(source))) { - var props = baseKeysIn(source); - } - arrayEach(props || source, function(srcValue, key) { - if (props) { - key = srcValue; - srcValue = source[key]; - } - if (isObject(srcValue)) { - stack || (stack = new Stack); - baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); - } - else { - var newValue = customizer - ? customizer(object[key], srcValue, (key + ''), object, source, stack) - : undefined; - - if (newValue === undefined) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }); -} - -/** - * A specialized version of `baseMerge` for arrays and objects which performs - * deep merges and tracks traversed objects enabling objects with circular - * references to be merged. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {string} key The key of the value to merge. - * @param {number} srcIndex The index of `source`. - * @param {Function} mergeFunc The function to merge values. - * @param {Function} [customizer] The function to customize assigned values. - * @param {Object} [stack] Tracks traversed source values and their merged - * counterparts. - */ -function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { - var objValue = object[key], - srcValue = source[key], - stacked = stack.get(srcValue); - - if (stacked) { - assignMergeValue(object, key, stacked); - return; - } - var newValue = customizer - ? customizer(objValue, srcValue, (key + ''), object, source, stack) - : undefined; - - var isCommon = newValue === undefined; - - if (isCommon) { - newValue = srcValue; - if (isArray(srcValue) || isTypedArray(srcValue)) { - if (isArray(objValue)) { - newValue = objValue; - } - else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } - else { - isCommon = false; - newValue = baseClone(srcValue, true); - } - } - else if (isPlainObject(srcValue) || isArguments(srcValue)) { - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } - else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) { - isCommon = false; - newValue = baseClone(srcValue, true); - } - else { - newValue = objValue; - } - } - else { - isCommon = false; - } - } - if (isCommon) { - // Recursively merge objects and arrays (susceptible to call stack limits). - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack['delete'](srcValue); - } - assignMergeValue(object, key, newValue); -} - -/** - * 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); - }; -} - -/** - * Creates a clone of `buffer`. - * - * @private - * @param {Buffer} buffer The buffer to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Buffer} Returns the cloned buffer. - */ -function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var result = new buffer.constructor(buffer.length); - buffer.copy(result); - return result; -} - -/** - * Creates a clone of `arrayBuffer`. - * - * @private - * @param {ArrayBuffer} arrayBuffer The array buffer to clone. - * @returns {ArrayBuffer} Returns the cloned array buffer. - */ -function cloneArrayBuffer(arrayBuffer) { - var result = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array(result).set(new Uint8Array(arrayBuffer)); - return result; -} - -/** - * Creates a clone of `dataView`. - * - * @private - * @param {Object} dataView The data view to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned data view. - */ -function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); -} - -/** - * Creates a clone of `map`. - * - * @private - * @param {Object} map The map to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned map. - */ -function cloneMap(map, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map); - return arrayReduce(array, addMapEntry, new map.constructor); -} - -/** - * Creates a clone of `regexp`. - * - * @private - * @param {Object} regexp The regexp to clone. - * @returns {Object} Returns the cloned regexp. - */ -function cloneRegExp(regexp) { - var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result.lastIndex = regexp.lastIndex; - return result; -} - -/** - * Creates a clone of `set`. - * - * @private - * @param {Object} set The set to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned set. - */ -function cloneSet(set, isDeep, cloneFunc) { - var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set); - return arrayReduce(array, addSetEntry, new set.constructor); -} - -/** - * Creates a clone of the `symbol` object. - * - * @private - * @param {Object} symbol The symbol object to clone. - * @returns {Object} Returns the cloned symbol object. - */ -function cloneSymbol(symbol) { - return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; -} - -/** - * Creates a clone of `typedArray`. - * - * @private - * @param {Object} typedArray The typed array to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned typed array. - */ -function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); -} - -/** - * Copies the values of `source` to `array`. - * - * @private - * @param {Array} source The array to copy values from. - * @param {Array} [array=[]] The array to copy values to. - * @returns {Array} Returns `array`. - */ -function copyArray(source, array) { - var index = -1, - length = source.length; - - array || (array = Array(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; -} - -/** - * 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; -} - -/** - * Copies own symbol properties of `source` to `object`. - * - * @private - * @param {Object} source The object to copy symbols from. - * @param {Object} [object={}] The object to copy symbols to. - * @returns {Object} Returns `object`. - */ -function copySymbols(source, object) { - return copyObject(source, getSymbols(source), 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; - }); -} - -/** - * Creates an array of own enumerable property names and symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ -function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); -} - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Creates an array of the own enumerable symbol properties of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ -var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; - -/** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -var getTag = baseGetTag; - -// Fallback for data views, maps, sets, and weak maps in IE 11, -// for data views in Edge < 14, and promises in Node.js. -if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = objectToString.call(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : undefined; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; -} - -/** - * Initializes an array clone. - * - * @private - * @param {Array} array The array to clone. - * @returns {Array} Returns the initialized clone. - */ -function initCloneArray(array) { - var length = array.length, - result = array.constructor(length); - - // Add properties assigned by `RegExp#exec`. - if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { - result.index = array.index; - result.input = array.input; - } - return result; -} - -/** - * Initializes an object clone. - * - * @private - * @param {Object} object The object to clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneObject(object) { - return (typeof object.constructor == 'function' && !isPrototype(object)) - ? baseCreate(getPrototype(object)) - : {}; -} - -/** - * Initializes an object clone based on its `toStringTag`. - * - * **Note:** This function only supports cloning values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to clone. - * @param {string} tag The `toStringTag` of the object to clone. - * @param {Function} cloneFunc The function to clone values. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneByTag(object, tag, cloneFunc, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - - case boolTag: - case dateTag: - return new Ctor(+object); - - case dataViewTag: - return cloneDataView(object, isDeep); - - case float32Tag: case float64Tag: - case int8Tag: case int16Tag: case int32Tag: - case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: - return cloneTypedArray(object, isDeep); - - case mapTag: - return cloneMap(object, isDeep, cloneFunc); - - case numberTag: - case stringTag: - return new Ctor(object); - - case regexpTag: - return cloneRegExp(object); - - case setTag: - return cloneSet(object, isDeep, cloneFunc); - - case symbolTag: - return cloneSymbol(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 suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * 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; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * 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 a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true - * - * _.isBuffer(new Uint8Array(2)); - * // => false - */ -var isBuffer = nativeIsBuffer || stubFalse; - -/** - * 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'; -} - -/** - * Checks if `value` is a plain object, that is, an object created by the - * `Object` constructor or one with a `[[Prototype]]` of `null`. - * - * @static - * @memberOf _ - * @since 0.8.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * _.isPlainObject(new Foo); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true - * - * _.isPlainObject(Object.create(null)); - * // => true - */ -function isPlainObject(value) { - if (!isObjectLike(value) || - objectToString.call(value) != objectTag || isHostObject(value)) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); -} - -/** - * Checks if `value` is classified as a typed array. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - * @example - * - * _.isTypedArray(new Uint8Array); - * // => true - * - * _.isTypedArray([]); - * // => false - */ -var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - -/** - * Converts `value` to a plain object flattening inherited enumerable string - * keyed properties of `value` to own properties of the plain object. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {Object} Returns the converted plain object. - * @example - * - * function Foo() { - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.assign({ 'a': 1 }, new Foo); - * // => { 'a': 1, 'b': 2 } - * - * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); - * // => { 'a': 1, 'b': 2, 'c': 3 } - */ -function toPlainObject(value) { - return copyObject(value, keysIn(value)); -} - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @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; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} - -/** - * 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); -} - -/** - * This method is like `_.assign` except that it recursively merges own and - * inherited enumerable string keyed properties of source objects into the - * destination object. Source properties that resolve to `undefined` are - * skipped if a destination value exists. Array and plain object properties - * are merged recursively. Other objects and value types are overridden by - * assignment. Source objects are applied from left to right. Subsequent - * sources overwrite property assignments of previous sources. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 0.5.0 - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @returns {Object} Returns `object`. - * @example - * - * var object = { - * 'a': [{ 'b': 2 }, { 'd': 4 }] - * }; - * - * var other = { - * 'a': [{ 'c': 3 }, { 'e': 5 }] - * }; - * - * _.merge(object, other); - * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } - */ -var merge = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); -}); - -/** - * This method returns a new empty array. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {Array} Returns the new empty array. - * @example - * - * var arrays = _.times(2, _.stubArray); - * - * console.log(arrays); - * // => [[], []] - * - * console.log(arrays[0] === arrays[1]); - * // => false - */ -function stubArray() { - return []; -} - -/** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example - * - * _.times(2, _.stubFalse); - * // => [false, false] - */ -function stubFalse() { - return false; -} - -module.exports = merge; diff --git a/node_modules/lodash.merge/package.json b/node_modules/lodash.merge/package.json deleted file mode 100644 index ab6a350..0000000 --- a/node_modules/lodash.merge/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.merge@^4.4.0", - "scope": null, - "escapedName": "lodash.merge", - "name": "lodash.merge", - "rawSpec": "^4.4.0", - "spec": ">=4.4.0 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/accord" - ] - ], - "_from": "lodash.merge@>=4.4.0 <5.0.0", - "_id": "lodash.merge@4.6.0", - "_inCache": true, - "_location": "/lodash.merge", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.merge-4.6.0.tgz_1471110130016_0.44202496600337327" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.merge@^4.4.0", - "scope": null, - "escapedName": "lodash.merge", - "name": "lodash.merge", - "rawSpec": "^4.4.0", - "spec": ">=4.4.0 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/accord" - ], - "_resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.0.tgz", - "_shasum": "69884ba144ac33fe699737a6086deffadd0f89c5", - "_shrinkwrap": null, - "_spec": "lodash.merge@^4.4.0", - "_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 `_.merge` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "69884ba144ac33fe699737a6086deffadd0f89c5", - "tarball": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "merge" - ], - "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.merge", - "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.6.0" -} diff --git a/node_modules/lodash.partialright/LICENSE b/node_modules/lodash.partialright/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.partialright/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/lodash.partialright/README.md b/node_modules/lodash.partialright/README.md deleted file mode 100644 index 453cb85..0000000 --- a/node_modules/lodash.partialright/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.partialright v4.2.1 - -The [lodash](https://lodash.com/) method `_.partialRight` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.partialright -``` - -In Node.js: -```js -var partialRight = require('lodash.partialright'); -``` - -See the [documentation](https://lodash.com/docs#partialRight) or [package source](https://github.com/lodash/lodash/blob/4.2.1-npm-packages/lodash.partialright) for more details. diff --git a/node_modules/lodash.partialright/index.js b/node_modules/lodash.partialright/index.js deleted file mode 100644 index 7e636fa..0000000 --- a/node_modules/lodash.partialright/index.js +++ /dev/null @@ -1,1247 +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 the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** Used as the internal argument placeholder. */ -var PLACEHOLDER = '__lodash_placeholder__'; - -/** Used to compose bitmasks for function metadata. */ -var BIND_FLAG = 1, - BIND_KEY_FLAG = 2, - CURRY_BOUND_FLAG = 4, - CURRY_FLAG = 8, - CURRY_RIGHT_FLAG = 16, - PARTIAL_FLAG = 32, - PARTIAL_RIGHT_FLAG = 64, - ARY_FLAG = 128, - REARG_FLAG = 256, - FLIP_FLAG = 512; - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991, - MAX_INTEGER = 1.7976931348623157e+308, - NAN = 0 / 0; - -/** Used to associate wrap methods with their bit flags. */ -var wrapFlags = [ - ['ary', ARY_FLAG], - ['bind', BIND_FLAG], - ['bindKey', BIND_KEY_FLAG], - ['curry', CURRY_FLAG], - ['curryRight', CURRY_RIGHT_FLAG], - ['flip', FLIP_FLAG], - ['partial', PARTIAL_FLAG], - ['partialRight', PARTIAL_RIGHT_FLAG], - ['rearg', REARG_FLAG] -]; - -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]'; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to match leading and trailing whitespace. */ -var reTrim = /^\s+|\s+$/g; - -/** Used to match wrap detail comments. */ -var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, - reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, - reSplitDetails = /,? & /; - -/** Used to detect bad signed hexadecimal string values. */ -var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - -/** Used to detect binary string values. */ -var reIsBinary = /^0b[01]+$/i; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used to detect octal string values. */ -var reIsOctal = /^0o[0-7]+$/i; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** Built-in method references without a dependency on `root`. */ -var freeParseInt = parseInt; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * 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); -} - -/** - * A specialized version of `_.forEach` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. - */ -function arrayEach(array, iteratee) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; -} - -/** - * A specialized version of `_.includes` for arrays without support for - * specifying an index to search from. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludes(array, value) { - var length = array ? array.length : 0; - return !!length && baseIndexOf(array, value, 0) > -1; -} - -/** - * The base implementation of `_.findIndex` and `_.findLastIndex` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} predicate The function invoked per iteration. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while ((fromRight ? index-- : ++index < length)) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; -} - -/** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseIndexOf(array, value, fromIndex) { - if (value !== value) { - return baseFindIndex(array, baseIsNaN, fromIndex); - } - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; -} - -/** - * The base implementation of `_.isNaN` without support for number objects. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. - */ -function baseIsNaN(value) { - return value !== value; -} - -/** - * Gets the number of `placeholder` occurrences in `array`. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} placeholder The placeholder to search for. - * @returns {number} Returns the placeholder count. - */ -function countHolders(array, placeholder) { - var length = array.length, - result = 0; - - while (length--) { - if (array[length] === placeholder) { - result++; - } - } - return result; -} - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Replaces all `placeholder` elements in `array` with an internal placeholder - * and returns an array of their indexes. - * - * @private - * @param {Array} array The array to modify. - * @param {*} placeholder The placeholder to replace. - * @returns {Array} Returns the new array of placeholder indexes. - */ -function replaceHolders(array, placeholder) { - var index = -1, - length = array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (value === placeholder || value === PLACEHOLDER) { - array[index] = PLACEHOLDER; - result[resIndex++] = index; - } - } - return result; -} - -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** 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; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var objectCreate = Object.create; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeMax = Math.max, - nativeMin = Math.min; - -/* Used to set `toString` methods. */ -var defineProperty = (function() { - var func = getNative(Object, 'defineProperty'), - name = getNative.name; - - return (name && name.length > 2) ? func : undefined; -}()); - -/** - * The base implementation of `_.create` without support for assigning - * properties to the created object. - * - * @private - * @param {Object} prototype The object to inherit from. - * @returns {Object} Returns the new object. - */ -function baseCreate(proto) { - return isObject(proto) ? objectCreate(proto) : {}; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * 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); - }; -} - -/** - * Creates an array that is the composition of partially applied arguments, - * placeholders, and provided arguments into a single array of arguments. - * - * @private - * @param {Array} args The provided arguments. - * @param {Array} partials The arguments to prepend to those provided. - * @param {Array} holders The `partials` placeholder indexes. - * @params {boolean} [isCurried] Specify composing for a curried function. - * @returns {Array} Returns the new array of composed arguments. - */ -function composeArgs(args, partials, holders, isCurried) { - var argsIndex = -1, - argsLength = args.length, - holdersLength = holders.length, - leftIndex = -1, - leftLength = partials.length, - rangeLength = nativeMax(argsLength - holdersLength, 0), - result = Array(leftLength + rangeLength), - isUncurried = !isCurried; - - while (++leftIndex < leftLength) { - result[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result[holders[argsIndex]] = args[argsIndex]; - } - } - while (rangeLength--) { - result[leftIndex++] = args[argsIndex++]; - } - return result; -} - -/** - * This function is like `composeArgs` except that the arguments composition - * is tailored for `_.partialRight`. - * - * @private - * @param {Array} args The provided arguments. - * @param {Array} partials The arguments to append to those provided. - * @param {Array} holders The `partials` placeholder indexes. - * @params {boolean} [isCurried] Specify composing for a curried function. - * @returns {Array} Returns the new array of composed arguments. - */ -function composeArgsRight(args, partials, holders, isCurried) { - var argsIndex = -1, - argsLength = args.length, - holdersIndex = -1, - holdersLength = holders.length, - rightIndex = -1, - rightLength = partials.length, - rangeLength = nativeMax(argsLength - holdersLength, 0), - result = Array(rangeLength + rightLength), - isUncurried = !isCurried; - - while (++argsIndex < rangeLength) { - result[argsIndex] = args[argsIndex]; - } - var offset = argsIndex; - while (++rightIndex < rightLength) { - result[offset + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result[offset + holders[holdersIndex]] = args[argsIndex++]; - } - } - return result; -} - -/** - * Copies the values of `source` to `array`. - * - * @private - * @param {Array} source The array to copy values from. - * @param {Array} [array=[]] The array to copy values to. - * @returns {Array} Returns `array`. - */ -function copyArray(source, array) { - var index = -1, - length = source.length; - - array || (array = Array(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; -} - -/** - * Creates a function that wraps `func` to invoke it with the optional `this` - * binding of `thisArg`. - * - * @private - * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {*} [thisArg] The `this` binding of `func`. - * @returns {Function} Returns the new wrapped function. - */ -function createBind(func, bitmask, thisArg) { - var isBind = bitmask & BIND_FLAG, - Ctor = createCtor(func); - - function wrapper() { - var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; - return fn.apply(isBind ? thisArg : this, arguments); - } - return wrapper; -} - -/** - * Creates a function that produces an instance of `Ctor` regardless of - * whether it was invoked as part of a `new` expression or by `call` or `apply`. - * - * @private - * @param {Function} Ctor The constructor to wrap. - * @returns {Function} Returns the new wrapped function. - */ -function createCtor(Ctor) { - return function() { - // Use a `switch` statement to work with class constructors. See - // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist - // for more details. - var args = arguments; - switch (args.length) { - case 0: return new Ctor; - case 1: return new Ctor(args[0]); - case 2: return new Ctor(args[0], args[1]); - case 3: return new Ctor(args[0], args[1], args[2]); - case 4: return new Ctor(args[0], args[1], args[2], args[3]); - case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), - result = Ctor.apply(thisBinding, args); - - // Mimic the constructor's `return` behavior. - // See https://es5.github.io/#x13.2.2 for more details. - return isObject(result) ? result : thisBinding; - }; -} - -/** - * Creates a function that wraps `func` to enable currying. - * - * @private - * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {number} arity The arity of `func`. - * @returns {Function} Returns the new wrapped function. - */ -function createCurry(func, bitmask, arity) { - var Ctor = createCtor(func); - - function wrapper() { - var length = arguments.length, - args = Array(length), - index = length, - placeholder = getHolder(wrapper); - - while (index--) { - args[index] = arguments[index]; - } - var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder) - ? [] - : replaceHolders(args, placeholder); - - length -= holders.length; - if (length < arity) { - return createRecurry( - func, bitmask, createHybrid, wrapper.placeholder, undefined, - args, holders, undefined, undefined, arity - length); - } - var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; - return apply(fn, this, args); - } - return wrapper; -} - -/** - * Creates a function that wraps `func` to invoke it with optional `this` - * binding of `thisArg`, partial application, and currying. - * - * @private - * @param {Function|string} func The function or method name to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {*} [thisArg] The `this` binding of `func`. - * @param {Array} [partials] The arguments to prepend to those provided to - * the new function. - * @param {Array} [holders] The `partials` placeholder indexes. - * @param {Array} [partialsRight] The arguments to append to those provided - * to the new function. - * @param {Array} [holdersRight] The `partialsRight` placeholder indexes. - * @param {Array} [argPos] The argument positions of the new function. - * @param {number} [ary] The arity cap of `func`. - * @param {number} [arity] The arity of `func`. - * @returns {Function} Returns the new wrapped function. - */ -function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { - var isAry = bitmask & ARY_FLAG, - isBind = bitmask & BIND_FLAG, - isBindKey = bitmask & BIND_KEY_FLAG, - isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG), - isFlip = bitmask & FLIP_FLAG, - Ctor = isBindKey ? undefined : createCtor(func); - - function wrapper() { - var length = arguments.length, - args = Array(length), - index = length; - - while (index--) { - args[index] = arguments[index]; - } - if (isCurried) { - var placeholder = getHolder(wrapper), - holdersCount = countHolders(args, placeholder); - } - if (partials) { - args = composeArgs(args, partials, holders, isCurried); - } - if (partialsRight) { - args = composeArgsRight(args, partialsRight, holdersRight, isCurried); - } - length -= holdersCount; - if (isCurried && length < arity) { - var newHolders = replaceHolders(args, placeholder); - return createRecurry( - func, bitmask, createHybrid, wrapper.placeholder, thisArg, - args, newHolders, argPos, ary, arity - length - ); - } - var thisBinding = isBind ? thisArg : this, - fn = isBindKey ? thisBinding[func] : func; - - length = args.length; - if (argPos) { - args = reorder(args, argPos); - } else if (isFlip && length > 1) { - args.reverse(); - } - if (isAry && ary < length) { - args.length = ary; - } - if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtor(fn); - } - return fn.apply(thisBinding, args); - } - return wrapper; -} - -/** - * Creates a function that wraps `func` to invoke it with the `this` binding - * of `thisArg` and `partials` prepended to the arguments it receives. - * - * @private - * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {*} thisArg The `this` binding of `func`. - * @param {Array} partials The arguments to prepend to those provided to - * the new function. - * @returns {Function} Returns the new wrapped function. - */ -function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & BIND_FLAG, - Ctor = createCtor(func); - - function wrapper() { - var argsIndex = -1, - argsLength = arguments.length, - leftIndex = -1, - leftLength = partials.length, - args = Array(leftLength + argsLength), - fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; - - while (++leftIndex < leftLength) { - args[leftIndex] = partials[leftIndex]; - } - while (argsLength--) { - args[leftIndex++] = arguments[++argsIndex]; - } - return apply(fn, isBind ? thisArg : this, args); - } - return wrapper; -} - -/** - * Creates a function that wraps `func` to continue currying. - * - * @private - * @param {Function} func The function to wrap. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @param {Function} wrapFunc The function to create the `func` wrapper. - * @param {*} placeholder The placeholder value. - * @param {*} [thisArg] The `this` binding of `func`. - * @param {Array} [partials] The arguments to prepend to those provided to - * the new function. - * @param {Array} [holders] The `partials` placeholder indexes. - * @param {Array} [argPos] The argument positions of the new function. - * @param {number} [ary] The arity cap of `func`. - * @param {number} [arity] The arity of `func`. - * @returns {Function} Returns the new wrapped function. - */ -function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { - var isCurry = bitmask & CURRY_FLAG, - newHolders = isCurry ? holders : undefined, - newHoldersRight = isCurry ? undefined : holders, - newPartials = isCurry ? partials : undefined, - newPartialsRight = isCurry ? undefined : partials; - - bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG); - bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG); - - if (!(bitmask & CURRY_BOUND_FLAG)) { - bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG); - } - - var result = wrapFunc(func, bitmask, thisArg, newPartials, newHolders, newPartialsRight, newHoldersRight, argPos, ary, arity); - result.placeholder = placeholder; - return setWrapToString(result, func, bitmask); -} - -/** - * Creates a function that either curries or invokes `func` with optional - * `this` binding and partially applied arguments. - * - * @private - * @param {Function|string} func The function or method name to wrap. - * @param {number} bitmask The bitmask flags. - * The bitmask may be composed of the following flags: - * 1 - `_.bind` - * 2 - `_.bindKey` - * 4 - `_.curry` or `_.curryRight` of a bound function - * 8 - `_.curry` - * 16 - `_.curryRight` - * 32 - `_.partial` - * 64 - `_.partialRight` - * 128 - `_.rearg` - * 256 - `_.ary` - * 512 - `_.flip` - * @param {*} [thisArg] The `this` binding of `func`. - * @param {Array} [partials] The arguments to be partially applied. - * @param {Array} [holders] The `partials` placeholder indexes. - * @param {Array} [argPos] The argument positions of the new function. - * @param {number} [ary] The arity cap of `func`. - * @param {number} [arity] The arity of `func`. - * @returns {Function} Returns the new wrapped function. - */ -function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { - var isBindKey = bitmask & BIND_KEY_FLAG; - if (!isBindKey && typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - var length = partials ? partials.length : 0; - if (!length) { - bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG); - partials = holders = undefined; - } - ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0); - arity = arity === undefined ? arity : toInteger(arity); - length -= holders ? holders.length : 0; - - if (bitmask & PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, - holdersRight = holders; - - partials = holders = undefined; - } - - var newData = [ - func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, - argPos, ary, arity - ]; - - func = newData[0]; - bitmask = newData[1]; - thisArg = newData[2]; - partials = newData[3]; - holders = newData[4]; - arity = newData[9] = newData[9] == null - ? (isBindKey ? 0 : func.length) - : nativeMax(newData[9] - length, 0); - - if (!arity && bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG)) { - bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG); - } - if (!bitmask || bitmask == BIND_FLAG) { - var result = createBind(func, bitmask, thisArg); - } else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) { - result = createCurry(func, bitmask, arity); - } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) { - result = createPartial(func, bitmask, thisArg, partials); - } else { - result = createHybrid.apply(undefined, newData); - } - return setWrapToString(result, func, bitmask); -} - -/** - * Gets the argument placeholder value for `func`. - * - * @private - * @param {Function} func The function to inspect. - * @returns {*} Returns the placeholder value. - */ -function getHolder(func) { - var object = func; - return object.placeholder; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Extracts wrapper details from the `source` body comment. - * - * @private - * @param {string} source The source to inspect. - * @returns {Array} Returns the wrapper details. - */ -function getWrapDetails(source) { - var match = source.match(reWrapDetails); - return match ? match[1].split(reSplitDetails) : []; -} - -/** - * Inserts wrapper `details` in a comment at the top of the `source` body. - * - * @private - * @param {string} source The source to modify. - * @returns {Array} details The details to insert. - * @returns {string} Returns the modified source. - */ -function insertWrapDetails(source, details) { - var length = details.length, - lastIndex = length - 1; - - details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex]; - details = details.join(length > 2 ? ', ' : ' '); - return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n'); -} - -/** - * 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 `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * Reorder `array` according to the specified indexes where the element at - * the first index is assigned as the first element, the element at - * the second index is assigned as the second element, and so on. - * - * @private - * @param {Array} array The array to reorder. - * @param {Array} indexes The arranged array indexes. - * @returns {Array} Returns `array`. - */ -function reorder(array, indexes) { - var arrLength = array.length, - length = nativeMin(indexes.length, arrLength), - oldArray = copyArray(array); - - while (length--) { - var index = indexes[length]; - array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined; - } - return array; -} - -/** - * Sets the `toString` method of `wrapper` to mimic the source of `reference` - * with wrapper details in a comment at the top of the source body. - * - * @private - * @param {Function} wrapper The function to modify. - * @param {Function} reference The reference function. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @returns {Function} Returns `wrapper`. - */ -var setWrapToString = !defineProperty ? identity : function(wrapper, reference, bitmask) { - var source = (reference + ''); - return defineProperty(wrapper, 'toString', { - 'configurable': true, - 'enumerable': false, - 'value': constant(insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))) - }); -}; - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Updates wrapper `details` based on `bitmask` flags. - * - * @private - * @returns {Array} details The details to modify. - * @param {number} bitmask The bitmask flags. See `createWrap` for more details. - * @returns {Array} Returns `details`. - */ -function updateWrapDetails(details, bitmask) { - arrayEach(wrapFlags, function(pair) { - var value = '_.' + pair[0]; - if ((bitmask & pair[1]) && !arrayIncludes(details, value)) { - details.push(value); - } - }); - return details.sort(); -} - -/** - * This method is like `_.partial` except that partially applied arguments - * are appended to the arguments it receives. - * - * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic - * builds, may be used as a placeholder for partially applied arguments. - * - * **Note:** This method doesn't set the "length" property of partially - * applied functions. - * - * @static - * @memberOf _ - * @since 1.0.0 - * @category Function - * @param {Function} func The function to partially apply arguments to. - * @param {...*} [partials] The arguments to be partially applied. - * @returns {Function} Returns the new partially applied function. - * @example - * - * function greet(greeting, name) { - * return greeting + ' ' + name; - * } - * - * var greetFred = _.partialRight(greet, 'fred'); - * greetFred('hi'); - * // => 'hi fred' - * - * // Partially applied with placeholders. - * var sayHelloTo = _.partialRight(greet, 'hello', _); - * sayHelloTo('fred'); - * // => 'hello fred' - */ -var partialRight = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); -}); - -/** - * 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 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'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Converts `value` to a finite number. - * - * @static - * @memberOf _ - * @since 4.12.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted number. - * @example - * - * _.toFinite(3.2); - * // => 3.2 - * - * _.toFinite(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toFinite(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toFinite('3.2'); - * // => 3.2 - */ -function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = (value < 0 ? -1 : 1); - return sign * MAX_INTEGER; - } - return value === value ? value : 0; -} - -/** - * Converts `value` to an integer. - * - * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toInteger(3.2); - * // => 3 - * - * _.toInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toInteger(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toInteger('3.2'); - * // => 3 - */ -function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - - return result === result ? (remainder ? result - remainder : result) : 0; -} - -/** - * Converts `value` to a number. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {number} Returns the number. - * @example - * - * _.toNumber(3.2); - * // => 3.2 - * - * _.toNumber(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toNumber(Infinity); - * // => Infinity - * - * _.toNumber('3.2'); - * // => 3.2 - */ -function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? (other + '') : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; - } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return (isBinary || reIsOctal.test(value)) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : (reIsBadHex.test(value) ? NAN : +value); -} - -/** - * Creates a function that returns `value`. - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Util - * @param {*} value The value to return from the new function. - * @returns {Function} Returns the new constant function. - * @example - * - * var objects = _.times(2, _.constant({ 'a': 1 })); - * - * console.log(objects); - * // => [{ 'a': 1 }, { 'a': 1 }] - * - * console.log(objects[0] === objects[1]); - * // => true - */ -function constant(value) { - return function() { - return value; - }; -} - -/** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example - * - * var object = { 'a': 1 }; - * - * console.log(_.identity(object) === object); - * // => true - */ -function identity(value) { - return value; -} - -// Assign default placeholders. -partialRight.placeholder = {}; - -module.exports = partialRight; diff --git a/node_modules/lodash.partialright/package.json b/node_modules/lodash.partialright/package.json deleted file mode 100644 index d864e69..0000000 --- a/node_modules/lodash.partialright/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.partialright@^4.1.4", - "scope": null, - "escapedName": "lodash.partialright", - "name": "lodash.partialright", - "rawSpec": "^4.1.4", - "spec": ">=4.1.4 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/accord" - ] - ], - "_from": "lodash.partialright@>=4.1.4 <5.0.0", - "_id": "lodash.partialright@4.2.1", - "_inCache": true, - "_location": "/lodash.partialright", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/lodash.partialright-4.2.1.tgz_1471110195153_0.13006322598084807" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.partialright@^4.1.4", - "scope": null, - "escapedName": "lodash.partialright", - "name": "lodash.partialright", - "rawSpec": "^4.1.4", - "spec": ">=4.1.4 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/accord" - ], - "_resolved": "https://registry.npmjs.org/lodash.partialright/-/lodash.partialright-4.2.1.tgz", - "_shasum": "0130d80e83363264d40074f329b8a3e7a8a1cc4b", - "_shrinkwrap": null, - "_spec": "lodash.partialright@^4.1.4", - "_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 `_.partialRight` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "0130d80e83363264d40074f329b8a3e7a8a1cc4b", - "tarball": "https://registry.npmjs.org/lodash.partialright/-/lodash.partialright-4.2.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "partialright" - ], - "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.partialright", - "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.1" -} diff --git a/node_modules/lodash.pick/LICENSE b/node_modules/lodash.pick/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/lodash.pick/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/lodash.pick/README.md b/node_modules/lodash.pick/README.md deleted file mode 100644 index 587595d..0000000 --- a/node_modules/lodash.pick/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.pick v4.4.0 - -The [lodash](https://lodash.com/) method `_.pick` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.pick -``` - -In Node.js: -```js -var pick = require('lodash.pick'); -``` - -See the [documentation](https://lodash.com/docs#pick) or [package source](https://github.com/lodash/lodash/blob/4.4.0-npm-packages/lodash.pick) for more details. diff --git a/node_modules/lodash.pick/index.js b/node_modules/lodash.pick/index.js deleted file mode 100644 index aeeb775..0000000 --- a/node_modules/lodash.pick/index.js +++ /dev/null @@ -1,503 +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 INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]'; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * 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); -} - -/** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ -function arrayMap(array, iteratee) { - var index = -1, - length = array ? array.length : 0, - result = Array(length); - - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - return result; -} - -/** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ -function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - return array; -} - -/** 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 Symbol = root.Symbol, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeMax = Math.max; - -/** - * The base implementation of `_.flatten` with support for restricting flattening. - * - * @private - * @param {Array} array The array to flatten. - * @param {number} depth The maximum recursion depth. - * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. - * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. - * @param {Array} [result=[]] The initial result value. - * @returns {Array} Returns the new flattened array. - */ -function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - - predicate || (predicate = isFlattenable); - result || (result = []); - - while (++index < length) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - // Recursively flatten arrays (susceptible to call stack limits). - baseFlatten(value, depth - 1, predicate, isStrict, result); - } else { - arrayPush(result, value); - } - } else if (!isStrict) { - result[result.length] = value; - } - } - return result; -} - -/** - * The base implementation of `_.pick` without support for individual - * property identifiers. - * - * @private - * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick. - * @returns {Object} Returns the new object. - */ -function basePick(object, props) { - object = Object(object); - return basePickBy(object, props, function(value, key) { - return key in object; - }); -} - -/** - * The base implementation of `_.pickBy` without support for iteratee shorthands. - * - * @private - * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick from. - * @param {Function} predicate The function invoked per property. - * @returns {Object} Returns the new object. - */ -function basePickBy(object, props, predicate) { - var index = -1, - length = props.length, - result = {}; - - while (++index < length) { - var key = props[index], - value = object[key]; - - if (predicate(value, key)) { - result[key] = value; - } - } - 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); - }; -} - -/** - * Checks if `value` is a flattenable `arguments` object or array. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. - */ -function isFlattenable(value) { - return isArray(value) || isArguments(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]); -} - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * 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'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Creates an object composed of the picked `object` properties. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to pick. - * @returns {Object} Returns the new object. - * @example - * - * var object = { 'a': 1, 'b': '2', 'c': 3 }; - * - * _.pick(object, ['a', 'c']); - * // => { 'a': 1, 'c': 3 } - */ -var pick = baseRest(function(object, props) { - return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey)); -}); - -module.exports = pick; diff --git a/node_modules/lodash.pick/package.json b/node_modules/lodash.pick/package.json deleted file mode 100644 index 801524b..0000000 --- a/node_modules/lodash.pick/package.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.pick@^4.2.1", - "scope": null, - "escapedName": "lodash.pick", - "name": "lodash.pick", - "rawSpec": "^4.2.1", - "spec": ">=4.2.1 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/fined" - ] - ], - "_from": "lodash.pick@>=4.2.1 <5.0.0", - "_id": "lodash.pick@4.4.0", - "_inCache": true, - "_location": "/lodash.pick", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.pick-4.4.0.tgz_1471110197744_0.19985924172215164" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.pick@^4.2.1", - "scope": null, - "escapedName": "lodash.pick", - "name": "lodash.pick", - "rawSpec": "^4.2.1", - "spec": ">=4.2.1 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/accord", - "/fined" - ], - "_resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", - "_shasum": "52f05610fff9ded422611441ed1fc123a03001b3", - "_shrinkwrap": null, - "_spec": "lodash.pick@^4.2.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/fined", - "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 `_.pick` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "52f05610fff9ded422611441ed1fc123a03001b3", - "tarball": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "pick" - ], - "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.pick", - "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.4.0" -} diff --git a/node_modules/lodash.restparam/LICENSE.txt b/node_modules/lodash.restparam/LICENSE.txt deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash.restparam/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash.restparam/README.md b/node_modules/lodash.restparam/README.md deleted file mode 100644 index 80e47a4..0000000 --- a/node_modules/lodash.restparam/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash.restparam v3.6.1 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.restParam` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.restparam -``` - -In Node.js/io.js: - -```js -var restParam = require('lodash.restparam'); -``` - -See the [documentation](https://lodash.com/docs#restParam) or [package source](https://github.com/lodash/lodash/blob/3.6.1-npm-packages/lodash.restparam) for more details. diff --git a/node_modules/lodash.restparam/index.js b/node_modules/lodash.restparam/index.js deleted file mode 100644 index 932f47a..0000000 --- a/node_modules/lodash.restparam/index.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * lodash 3.6.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used as the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/* Native method references for those with the same name as other `lodash` methods. */ -var nativeMax = Math.max; - -/** - * Creates a function that invokes `func` with the `this` binding of the - * created function and arguments from `start` and beyond provided as an array. - * - * **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters). - * - * @static - * @memberOf _ - * @category Function - * @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. - * @example - * - * var say = _.restParam(function(what, names) { - * return what + ' ' + _.initial(names).join(', ') + - * (_.size(names) > 1 ? ', & ' : '') + _.last(names); - * }); - * - * say('hello', 'fred', 'barney', 'pebbles'); - * // => 'hello fred, barney, & pebbles' - */ -function restParam(func, start) { - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); - } - start = nativeMax(start === undefined ? (func.length - 1) : (+start || 0), 0); - return function() { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - rest = Array(length); - - while (++index < length) { - rest[index] = args[start + index]; - } - switch (start) { - case 0: return func.call(this, rest); - case 1: return func.call(this, args[0], rest); - case 2: return func.call(this, args[0], args[1], rest); - } - var otherArgs = Array(start + 1); - index = -1; - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = rest; - return func.apply(this, otherArgs); - }; -} - -module.exports = restParam; diff --git a/node_modules/lodash.restparam/package.json b/node_modules/lodash.restparam/package.json deleted file mode 100644 index 2bca197..0000000 --- a/node_modules/lodash.restparam/package.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.restparam@^3.0.0", - "scope": null, - "escapedName": "lodash.restparam", - "name": "lodash.restparam", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/lodash.template" - ] - ], - "_from": "lodash.restparam@>=3.0.0 <4.0.0", - "_id": "lodash.restparam@3.6.1", - "_inCache": true, - "_location": "/lodash.restparam", - "_nodeVersion": "0.12.2", - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.7.6", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.restparam@^3.0.0", - "scope": null, - "escapedName": "lodash.restparam", - "name": "lodash.restparam", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat-css/lodash.defaults", - "/lodash._createassigner", - "/lodash.template" - ], - "_resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", - "_shasum": "936a4e309ef330a7645ed4145986c85ae5b20805", - "_shrinkwrap": null, - "_spec": "lodash.restparam@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/lodash.template", - "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": "Benjamin Tan", - "email": "demoneaux@gmail.com", - "url": "https://d10.github.io/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine@iceddev.com", - "url": "http://www.iceddev.com/" - }, - { - "name": "Kit Cambridge", - "email": "github@kitcambridge.be", - "url": "http://kitcambridge.be/" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "dependencies": {}, - "description": "The modern build of lodash’s `_.restParam` as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "936a4e309ef330a7645ed4145986c85ae5b20805", - "tarball": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash", - "lodash-modularized", - "stdlib", - "util" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - { - "name": "d10", - "email": "demoneaux@gmail.com" - }, - { - "name": "kitcambridge", - "email": "github@kitcambridge.be" - }, - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "lodash.restparam", - "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": "3.6.1" -} diff --git a/node_modules/lodash.template/LICENSE b/node_modules/lodash.template/LICENSE deleted file mode 100644 index 9cd87e5..0000000 --- a/node_modules/lodash.template/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -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/lodash.template/README.md b/node_modules/lodash.template/README.md deleted file mode 100644 index f542f71..0000000 --- a/node_modules/lodash.template/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash.template v3.6.2 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.template` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.template -``` - -In Node.js/io.js: - -```js -var template = require('lodash.template'); -``` - -See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/3.6.2-npm-packages/lodash.template) for more details. diff --git a/node_modules/lodash.template/index.js b/node_modules/lodash.template/index.js deleted file mode 100644 index e5a9629..0000000 --- a/node_modules/lodash.template/index.js +++ /dev/null @@ -1,389 +0,0 @@ -/** - * lodash 3.6.2 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var baseCopy = require('lodash._basecopy'), - baseToString = require('lodash._basetostring'), - baseValues = require('lodash._basevalues'), - isIterateeCall = require('lodash._isiterateecall'), - reInterpolate = require('lodash._reinterpolate'), - keys = require('lodash.keys'), - restParam = require('lodash.restparam'), - templateSettings = require('lodash.templatesettings'); - -/** `Object#toString` result references. */ -var errorTag = '[object Error]'; - -/** Used to match empty string literals in compiled template source. */ -var reEmptyStringLeading = /\b__p \+= '';/g, - reEmptyStringMiddle = /\b(__p \+=) '' \+/g, - reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - -/** Used to match [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). */ -var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - -/** Used to ensure capturing order of template delimiters. */ -var reNoMatch = /($^)/; - -/** Used to match unescaped characters in compiled string literals. */ -var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - -/** Used to escape characters for inclusion in compiled string literals. */ -var stringEscapes = { - '\\': '\\', - "'": "'", - '\n': 'n', - '\r': 'r', - '\u2028': 'u2028', - '\u2029': 'u2029' -}; - -/** - * Used by `_.template` to escape characters for inclusion in compiled string literals. - * - * @private - * @param {string} chr The matched character to escape. - * @returns {string} Returns the escaped character. - */ -function escapeStringChar(chr) { - return '\\' + stringEscapes[chr]; -} - -/** - * Checks if `value` is object-like. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** Used for native 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/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objToString = objectProto.toString; - -/** - * Used by `_.template` to customize its `_.assign` use. - * - * **Note:** This function is like `assignDefaults` except that it ignores - * inherited property values when checking if a property is `undefined`. - * - * @private - * @param {*} objectValue The destination object property value. - * @param {*} sourceValue The source object property value. - * @param {string} key The key associated with the object and source values. - * @param {Object} object The destination object. - * @returns {*} Returns the value to assign to the destination object. - */ -function assignOwnDefaults(objectValue, sourceValue, key, object) { - return (objectValue === undefined || !hasOwnProperty.call(object, key)) - ? sourceValue - : objectValue; -} - -/** - * A specialized version of `_.assign` for customizing assigned values without - * support for argument juggling, multiple sources, and `this` binding `customizer` - * functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @param {Function} customizer The function to customize assigned values. - * @returns {Object} Returns `object`. - */ -function assignWith(object, source, customizer) { - var index = -1, - props = keys(source), - length = props.length; - - while (++index < length) { - var key = props[index], - value = object[key], - result = customizer(value, source[key], key, object, source); - - if ((result === result ? (result !== value) : (value === value)) || - (value === undefined && !(key in object))) { - object[key] = result; - } - } - return object; -} - -/** - * The base implementation of `_.assign` without support for argument juggling, - * multiple sources, and `customizer` functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @returns {Object} Returns `object`. - */ -function baseAssign(object, source) { - return source == null - ? object - : baseCopy(source, keys(source), object); -} - -/** - * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, - * `SyntaxError`, `TypeError`, or `URIError` object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an error object, else `false`. - * @example - * - * _.isError(new Error); - * // => true - * - * _.isError(Error); - * // => false - */ -function isError(value) { - return isObjectLike(value) && typeof value.message == 'string' && objToString.call(value) == errorTag; -} - -/** - * Creates a compiled template function that can interpolate data properties - * in "interpolate" delimiters, HTML-escape interpolated data properties in - * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data - * properties may be accessed as free variables in the template. If a setting - * object is provided it takes precedence over `_.templateSettings` values. - * - * **Note:** In the development build `_.template` utilizes - * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) - * for easier debugging. - * - * For more information on precompiling templates see - * [lodash's custom builds documentation](https://lodash.com/custom-builds). - * - * For more information on Chrome extension sandboxes see - * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). - * - * @static - * @memberOf _ - * @category String - * @param {string} [string=''] The template string. - * @param {Object} [options] The options object. - * @param {RegExp} [options.escape] The HTML "escape" delimiter. - * @param {RegExp} [options.evaluate] The "evaluate" delimiter. - * @param {Object} [options.imports] An object to import into the template as free variables. - * @param {RegExp} [options.interpolate] The "interpolate" delimiter. - * @param {string} [options.sourceURL] The sourceURL of the template's compiled source. - * @param {string} [options.variable] The data object variable name. - * @param- {Object} [otherOptions] Enables the legacy `options` param signature. - * @returns {Function} Returns the compiled template function. - * @example - * - * // using the "interpolate" delimiter to create a compiled template - * var compiled = _.template('hello <%= user %>!'); - * compiled({ 'user': 'fred' }); - * // => 'hello fred!' - * - * // using the HTML "escape" delimiter to escape data property values - * var compiled = _.template('<%- value %>'); - * compiled({ 'value': ' -``` - -Using [`npm`](http://npmjs.org/): - -```bash -npm install lodash - -npm install -g lodash -npm link lodash -``` - -To avoid potential issues, update `npm` before installing Lo-Dash: - -```bash -npm install npm -g -``` - -In [Node.js](http://nodejs.org/) and [RingoJS v0.8.0+](http://ringojs.org/): - -```js -var _ = require('lodash'); - -// or as a drop-in replacement for Underscore -var _ = require('lodash/lodash.underscore'); -``` - -**Note:** If Lo-Dash is installed globally, run [`npm link lodash`](http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/) in your project’s root directory before requiring it. - -In [RingoJS v0.7.0-](http://ringojs.org/): - -```js -var _ = require('lodash')._; -``` - -In [Rhino](http://www.mozilla.org/rhino/): - -```js -load('lodash.js'); -``` - -In an AMD loader like [RequireJS](http://requirejs.org/): - -```js -require({ - 'paths': { - 'underscore': 'path/to/lodash' - } -}, -['underscore'], function(_) { - console.log(_.VERSION); -}); -``` - -## Resources - -For more information check out these articles, screencasts, and other videos over Lo-Dash: - - * Posts - - [Say “Hello” to Lo-Dash](http://kitcambridge.be/blog/say-hello-to-lo-dash/) - - * Videos - - [Introducing Lo-Dash](https://vimeo.com/44154599) - - [Lo-Dash optimizations and custom builds](https://vimeo.com/44154601) - - [Lo-Dash’s origin and why it’s a better utility belt](https://vimeo.com/44154600) - - [Unit testing in Lo-Dash](https://vimeo.com/45865290) - - [Lo-Dash’s approach to native method use](https://vimeo.com/48576012) - - [CascadiaJS: Lo-Dash for a better utility belt](http://www.youtube.com/watch?v=dpPy4f_SeEk) - -## Features - - * AMD loader support ([RequireJS](http://requirejs.org/), [curl.js](https://github.com/cujojs/curl), etc.) - * [_(…)](http://lodash.com/docs#_) supports intuitive chaining - * [_.at](http://lodash.com/docs#at) for cherry-picking collection values - * [_.bindKey](http://lodash.com/docs#bindKey) for binding [*“lazy”* defined](http://michaux.ca/articles/lazy-function-definition-pattern) methods - * [_.cloneDeep](http://lodash.com/docs#cloneDeep) for deep cloning arrays and objects - * [_.contains](http://lodash.com/docs#contains) accepts a `fromIndex` argument - * [_.forEach](http://lodash.com/docs#forEach) is chainable and supports exiting iteration early - * [_.forIn](http://lodash.com/docs#forIn) for iterating over an object’s own and inherited properties - * [_.forOwn](http://lodash.com/docs#forOwn) for iterating over an object’s own properties - * [_.isPlainObject](http://lodash.com/docs#isPlainObject) checks if values are created by the `Object` constructor - * [_.merge](http://lodash.com/docs#merge) for a deep [_.extend](http://lodash.com/docs#extend) - * [_.partial](http://lodash.com/docs#partial) and [_.partialRight](http://lodash.com/docs#partialRight) for partial application without `this` binding - * [_.template](http://lodash.com/docs#template) supports [*“imports”* options](http://lodash.com/docs#templateSettings_imports), [ES6 template delimiters](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6), and [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) - * [_.where](http://lodash.com/docs#where) supports deep object comparisons - * [_.clone](http://lodash.com/docs#clone), [_.omit](http://lodash.com/docs#omit), [_.pick](http://lodash.com/docs#pick), - [and more…](http://lodash.com/docs "_.assign, _.cloneDeep, _.first, _.initial, _.isEqual, _.last, _.merge, _.rest") accept `callback` and `thisArg` arguments - * [_.contains](http://lodash.com/docs#contains), [_.size](http://lodash.com/docs#size), [_.toArray](http://lodash.com/docs#toArray), - [and more…](http://lodash.com/docs "_.at, _.countBy, _.every, _.filter, _.find, _.forEach, _.groupBy, _.invoke, _.map, _.max, _.min, _.pluck, _.reduce, _.reduceRight, _.reject, _.shuffle, _.some, _.sortBy, _.where") accept strings - * [_.filter](http://lodash.com/docs#filter), [_.find](http://lodash.com/docs#find), [_.map](http://lodash.com/docs#map), - [and more…](http://lodash.com/docs "_.countBy, _.every, _.first, _.groupBy, _.initial, _.last, _.max, _.min, _.reject, _.rest, _.some, _.sortBy, _.sortedIndex, _.uniq") support *“_.pluck”* and *“_.where”* `callback` shorthands - -## Support - -Lo-Dash has been tested in at least Chrome 5~24, Firefox 1~18, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.20, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5. diff --git a/node_modules/lodash/dist/lodash.compat.js b/node_modules/lodash/dist/lodash.compat.js deleted file mode 100644 index 925e7fc..0000000 --- a/node_modules/lodash/dist/lodash.compat.js +++ /dev/null @@ -1,5152 +0,0 @@ -/** - * @license - * Lo-Dash 1.0.2 (Custom Build) - * Build: `lodash -o ./dist/lodash.compat.js` - * Copyright 2012-2013 The Dojo Foundation - * Based on Underscore.js 1.4.4 - * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc. - * Available under MIT license - */ -;(function(window, undefined) { - - /** Detect free variable `exports` */ - var freeExports = typeof exports == 'object' && exports; - - /** Detect free variable `module` */ - var freeModule = typeof module == 'object' && module && module.exports == freeExports && module; - - /** Detect free variable `global` and use it as `window` */ - var freeGlobal = typeof global == 'object' && global; - if (freeGlobal.global === freeGlobal) { - window = freeGlobal; - } - - /** Used for array and object method references */ - var arrayRef = [], - objectRef = {}; - - /** Used to generate unique IDs */ - var idCounter = 0; - - /** Used internally to indicate various things */ - var indicatorObject = objectRef; - - /** Used by `cachedContains` as the default size when optimizations are enabled for large arrays */ - var largeArraySize = 30; - - /** Used to restore the original `_` reference in `noConflict` */ - var oldDash = window._; - - /** Used to match HTML entities */ - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g; - - /** Used to match empty string literals in compiled template source */ - var reEmptyStringLeading = /\b__p \+= '';/g, - reEmptyStringMiddle = /\b(__p \+=) '' \+/g, - reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - - /** Used to match regexp flags from their coerced string values */ - var reFlags = /\w*$/; - - /** Used to detect if a method is native */ - var reNative = RegExp('^' + - (objectRef.valueOf + '') - .replace(/[.*+?^${}()|[\]\\]/g, '\\$&') - .replace(/valueOf|for [^\]]+/g, '.+?') + '$' - ); - - /** - * Used to match ES6 template delimiters - * http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.8.6 - */ - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - - /** Used to match "interpolate" template delimiters */ - var reInterpolate = /<%=([\s\S]+?)%>/g; - - /** Used to ensure capturing order of template delimiters */ - var reNoMatch = /($^)/; - - /** Used to match HTML characters */ - var reUnescapedHtml = /[&<>"']/g; - - /** Used to match unescaped characters in compiled string literals */ - var reUnescapedString = /['\n\r\t\u2028\u2029\\]/g; - - /** Used to fix the JScript [[DontEnum]] bug */ - var shadowed = [ - 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', - 'toLocaleString', 'toString', 'valueOf' - ]; - - /** Used to make template sourceURLs easier to identify */ - var templateCounter = 0; - - /** Native method shortcuts */ - var ceil = Math.ceil, - concat = arrayRef.concat, - floor = Math.floor, - getPrototypeOf = reNative.test(getPrototypeOf = Object.getPrototypeOf) && getPrototypeOf, - hasOwnProperty = objectRef.hasOwnProperty, - push = arrayRef.push, - toString = objectRef.toString; - - /* Native method shortcuts for methods with the same name as other `lodash` methods */ - var nativeBind = reNative.test(nativeBind = slice.bind) && nativeBind, - nativeIsArray = reNative.test(nativeIsArray = Array.isArray) && nativeIsArray, - nativeIsFinite = window.isFinite, - nativeIsNaN = window.isNaN, - nativeKeys = reNative.test(nativeKeys = Object.keys) && nativeKeys, - nativeMax = Math.max, - nativeMin = Math.min, - nativeRandom = Math.random; - - /** `Object#toString` result shortcuts */ - var argsClass = '[object Arguments]', - arrayClass = '[object Array]', - boolClass = '[object Boolean]', - dateClass = '[object Date]', - funcClass = '[object Function]', - numberClass = '[object Number]', - objectClass = '[object Object]', - regexpClass = '[object RegExp]', - stringClass = '[object String]'; - - /** Detect various environments */ - var isIeOpera = !!window.attachEvent, - isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera); - - /* Detect if `Function#bind` exists and is inferred to be fast (all but V8) */ - var isBindFast = nativeBind && !isV8; - - /* Detect if `Object.keys` exists and is inferred to be fast (IE, Opera, V8) */ - var isKeysFast = nativeKeys && (isIeOpera || isV8); - - /** - * Detect the JScript [[DontEnum]] bug: - * - * In IE < 9 an objects own properties, shadowing non-enumerable ones, are - * made non-enumerable as well. - */ - var hasDontEnumBug; - - /** - * Detect if a `prototype` properties are enumerable by default: - * - * Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1 - * (if the prototype or a property on the prototype has been set) - * incorrectly sets a function's `prototype` property [[Enumerable]] - * value to `true`. - */ - var hasEnumPrototype; - - /** Detect if own properties are iterated after inherited properties (IE < 9) */ - var iteratesOwnLast; - - /** - * Detect if `Array#shift` and `Array#splice` augment array-like objects - * incorrectly: - * - * Firefox < 10, IE compatibility mode, and IE < 9 have buggy Array `shift()` - * and `splice()` functions that fail to remove the last element, `value[0]`, - * of array-like objects even though the `length` property is set to `0`. - * The `shift()` method is buggy in IE 8 compatibility mode, while `splice()` - * is buggy regardless of mode in IE < 9 and buggy in compatibility mode in IE 9. - */ - var hasObjectSpliceBug = (hasObjectSpliceBug = { '0': 1, 'length': 1 }, - arrayRef.splice.call(hasObjectSpliceBug, 0, 1), hasObjectSpliceBug[0]); - - /** Detect if `arguments` object indexes are non-enumerable (Firefox < 4, IE < 9, PhantomJS, Safari < 5.1) */ - var nonEnumArgs = true; - - (function() { - var props = []; - function ctor() { this.x = 1; } - ctor.prototype = { 'valueOf': 1, 'y': 1 }; - for (var prop in new ctor) { props.push(prop); } - for (prop in arguments) { nonEnumArgs = !prop; } - - hasDontEnumBug = !/valueOf/.test(props); - hasEnumPrototype = ctor.propertyIsEnumerable('prototype'); - iteratesOwnLast = props[0] != 'x'; - }(1)); - - /** Detect if `arguments` objects are `Object` objects (all but Opera < 10.5) */ - var argsAreObjects = arguments.constructor == Object; - - /** Detect if `arguments` objects [[Class]] is unresolvable (Firefox < 4, IE < 9) */ - var noArgsClass = !isArguments(arguments); - - /** - * Detect lack of support for accessing string characters by index: - * - * IE < 8 can't access characters by index and IE 8 can only access - * characters by index on string literals. - */ - var noCharByIndex = ('x'[0] + Object('x')[0]) != 'xx'; - - /** - * Detect if a DOM node's [[Class]] is unresolvable (IE < 9) - * and that the JS engine won't error when attempting to coerce an object to - * a string without a `toString` function. - */ - try { - var noNodeClass = toString.call(document) == objectClass && !({ 'toString': 0 } + ''); - } catch(e) { } - - /** Used to identify object classifications that `_.clone` supports */ - var cloneableClasses = {}; - cloneableClasses[funcClass] = false; - cloneableClasses[argsClass] = cloneableClasses[arrayClass] = - cloneableClasses[boolClass] = cloneableClasses[dateClass] = - cloneableClasses[numberClass] = cloneableClasses[objectClass] = - cloneableClasses[regexpClass] = cloneableClasses[stringClass] = true; - - /** Used to lookup a built-in constructor by [[Class]] */ - var ctorByClass = {}; - ctorByClass[arrayClass] = Array; - ctorByClass[boolClass] = Boolean; - ctorByClass[dateClass] = Date; - ctorByClass[objectClass] = Object; - ctorByClass[numberClass] = Number; - ctorByClass[regexpClass] = RegExp; - ctorByClass[stringClass] = String; - - /** Used to determine if values are of the language type Object */ - var objectTypes = { - 'boolean': false, - 'function': true, - 'object': true, - 'number': false, - 'string': false, - 'undefined': false - }; - - /** Used to escape characters for inclusion in compiled string literals */ - var stringEscapes = { - '\\': '\\', - "'": "'", - '\n': 'n', - '\r': 'r', - '\t': 't', - '\u2028': 'u2028', - '\u2029': 'u2029' - }; - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a `lodash` object, that wraps the given `value`, to enable method - * chaining. - * - * In addition to Lo-Dash methods, wrappers also have the following `Array` methods: - * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`, - * and `unshift` - * - * The chainable wrapper functions are: - * `after`, `assign`, `bind`, `bindAll`, `bindKey`, `chain`, `compact`, `compose`, - * `concat`, `countBy`, `debounce`, `defaults`, `defer`, `delay`, `difference`, - * `filter`, `flatten`, `forEach`, `forIn`, `forOwn`, `functions`, `groupBy`, - * `initial`, `intersection`, `invert`, `invoke`, `keys`, `map`, `max`, `memoize`, - * `merge`, `min`, `object`, `omit`, `once`, `pairs`, `partial`, `partialRight`, - * `pick`, `pluck`, `push`, `range`, `reject`, `rest`, `reverse`, `shuffle`, - * `slice`, `sort`, `sortBy`, `splice`, `tap`, `throttle`, `times`, `toArray`, - * `union`, `uniq`, `unshift`, `values`, `where`, `without`, `wrap`, and `zip` - * - * The non-chainable wrapper functions are: - * `clone`, `cloneDeep`, `contains`, `escape`, `every`, `find`, `has`, `identity`, - * `indexOf`, `isArguments`, `isArray`, `isBoolean`, `isDate`, `isElement`, `isEmpty`, - * `isEqual`, `isFinite`, `isFunction`, `isNaN`, `isNull`, `isNumber`, `isObject`, - * `isPlainObject`, `isRegExp`, `isString`, `isUndefined`, `join`, `lastIndexOf`, - * `mixin`, `noConflict`, `pop`, `random`, `reduce`, `reduceRight`, `result`, - * `shift`, `size`, `some`, `sortedIndex`, `template`, `unescape`, and `uniqueId` - * - * The wrapper functions `first` and `last` return wrapped values when `n` is - * passed, otherwise they return unwrapped values. - * - * @name _ - * @constructor - * @category Chaining - * @param {Mixed} value The value to wrap in a `lodash` instance. - * @returns {Object} Returns a `lodash` instance. - */ - function lodash(value) { - // exit early if already wrapped, even if wrapped by a different `lodash` constructor - if (value && typeof value == 'object' && value.__wrapped__) { - return value; - } - // allow invoking `lodash` without the `new` operator - if (!(this instanceof lodash)) { - return new lodash(value); - } - this.__wrapped__ = value; - } - - /** - * By default, the template delimiters used by Lo-Dash are similar to those in - * embedded Ruby (ERB). Change the following template settings to use alternative - * delimiters. - * - * @static - * @memberOf _ - * @type Object - */ - lodash.templateSettings = { - - /** - * Used to detect `data` property values to be HTML-escaped. - * - * @memberOf _.templateSettings - * @type RegExp - */ - 'escape': /<%-([\s\S]+?)%>/g, - - /** - * Used to detect code to be evaluated. - * - * @memberOf _.templateSettings - * @type RegExp - */ - 'evaluate': /<%([\s\S]+?)%>/g, - - /** - * Used to detect `data` property values to inject. - * - * @memberOf _.templateSettings - * @type RegExp - */ - 'interpolate': reInterpolate, - - /** - * Used to reference the data object in the template text. - * - * @memberOf _.templateSettings - * @type String - */ - 'variable': '', - - /** - * Used to import variables into the compiled template. - * - * @memberOf _.templateSettings - * @type Object - */ - 'imports': { - - /** - * A reference to the `lodash` function. - * - * @memberOf _.templateSettings.imports - * @type Function - */ - '_': lodash - } - }; - - /*--------------------------------------------------------------------------*/ - - /** - * The template used to create iterator functions. - * - * @private - * @param {Obect} data The data object used to populate the text. - * @returns {String} Returns the interpolated text. - */ - var iteratorTemplate = function(obj) { - - var __p = 'var index, iterable = ' + - (obj.firstArg ) + - ', result = iterable;\nif (!iterable) return result;\n' + - (obj.top ) + - ';\n'; - if (obj.arrays) { - __p += 'var length = iterable.length; index = -1;\nif (' + - (obj.arrays ) + - ') { '; - if (obj.noCharByIndex) { - __p += '\n if (isString(iterable)) {\n iterable = iterable.split(\'\')\n } '; - } ; - __p += '\n while (++index < length) {\n ' + - (obj.loop ) + - '\n }\n}\nelse { '; - } else if (obj.nonEnumArgs) { - __p += '\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += \'\';\n ' + - (obj.loop ) + - '\n }\n } else { '; - } ; - - if (obj.hasEnumPrototype) { - __p += '\n var skipProto = typeof iterable == \'function\';\n '; - } ; - - if (obj.isKeysFast && obj.useHas) { - __p += '\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] ? nativeKeys(iterable) : [],\n length = ownProps.length;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n '; - if (obj.hasEnumPrototype) { - __p += 'if (!(skipProto && index == \'prototype\')) {\n '; - } ; - __p += - (obj.loop ) + - ''; - if (obj.hasEnumPrototype) { - __p += '}\n'; - } ; - __p += ' } '; - } else { - __p += '\n for (index in iterable) {'; - if (obj.hasEnumPrototype || obj.useHas) { - __p += '\n if ('; - if (obj.hasEnumPrototype) { - __p += '!(skipProto && index == \'prototype\')'; - } if (obj.hasEnumPrototype && obj.useHas) { - __p += ' && '; - } if (obj.useHas) { - __p += 'hasOwnProperty.call(iterable, index)'; - } ; - __p += ') { '; - } ; - __p += - (obj.loop ) + - '; '; - if (obj.hasEnumPrototype || obj.useHas) { - __p += '\n }'; - } ; - __p += '\n } '; - } ; - - if (obj.hasDontEnumBug) { - __p += '\n\n var ctor = iterable.constructor;\n '; - for (var k = 0; k < 7; k++) { - __p += '\n index = \'' + - (obj.shadowed[k] ) + - '\';\n if ('; - if (obj.shadowed[k] == 'constructor') { - __p += '!(ctor && ctor.prototype === iterable) && '; - } ; - __p += 'hasOwnProperty.call(iterable, index)) {\n ' + - (obj.loop ) + - '\n } '; - } ; - - } ; - - if (obj.arrays || obj.nonEnumArgs) { - __p += '\n}'; - } ; - __p += - (obj.bottom ) + - ';\nreturn result'; - - - return __p - }; - - /** Reusable iterator options for `assign` and `defaults` */ - var defaultsIteratorOptions = { - 'args': 'object, source, guard', - 'top': - 'var args = arguments,\n' + - ' argsIndex = 0,\n' + - " argsLength = typeof guard == 'number' ? 2 : args.length;\n" + - 'while (++argsIndex < argsLength) {\n' + - ' iterable = args[argsIndex];\n' + - ' if (iterable && objectTypes[typeof iterable]) {', - 'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]", - 'bottom': ' }\n}' - }; - - /** Reusable iterator options shared by `each`, `forIn`, and `forOwn` */ - var eachIteratorOptions = { - 'args': 'collection, callback, thisArg', - 'top': "callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg)", - 'arrays': "typeof length == 'number'", - 'loop': 'if (callback(iterable[index], index, collection) === false) return result' - }; - - /** Reusable iterator options for `forIn` and `forOwn` */ - var forOwnIteratorOptions = { - 'top': 'if (!objectTypes[typeof iterable]) return result;\n' + eachIteratorOptions.top, - 'arrays': false - }; - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a function optimized to search large arrays for a given `value`, - * starting at `fromIndex`, using strict equality for comparisons, i.e. `===`. - * - * @private - * @param {Array} array The array to search. - * @param {Mixed} value The value to search for. - * @param {Number} [fromIndex=0] The index to search from. - * @param {Number} [largeSize=30] The length at which an array is considered large. - * @returns {Boolean} Returns `true`, if `value` is found, else `false`. - */ - function cachedContains(array, fromIndex, largeSize) { - fromIndex || (fromIndex = 0); - - var length = array.length, - isLarge = (length - fromIndex) >= (largeSize || largeArraySize); - - if (isLarge) { - var cache = {}, - index = fromIndex - 1; - - while (++index < length) { - // manually coerce `value` to a string because `hasOwnProperty`, in some - // older versions of Firefox, coerces objects incorrectly - var key = array[index] + ''; - (hasOwnProperty.call(cache, key) ? cache[key] : (cache[key] = [])).push(array[index]); - } - } - return function(value) { - if (isLarge) { - var key = value + ''; - return hasOwnProperty.call(cache, key) && indexOf(cache[key], value) > -1; - } - return indexOf(array, value, fromIndex) > -1; - } - } - - /** - * Used by `_.max` and `_.min` as the default `callback` when a given - * `collection` is a string value. - * - * @private - * @param {String} value The character to inspect. - * @returns {Number} Returns the code unit of given character. - */ - function charAtCallback(value) { - return value.charCodeAt(0); - } - - /** - * Used by `sortBy` to compare transformed `collection` values, stable sorting - * them in ascending order. - * - * @private - * @param {Object} a The object to compare to `b`. - * @param {Object} b The object to compare to `a`. - * @returns {Number} Returns the sort order indicator of `1` or `-1`. - */ - function compareAscending(a, b) { - var ai = a.index, - bi = b.index; - - a = a.criteria; - b = b.criteria; - - // ensure a stable sort in V8 and other engines - // http://code.google.com/p/v8/issues/detail?id=90 - if (a !== b) { - if (a > b || typeof a == 'undefined') { - return 1; - } - if (a < b || typeof b == 'undefined') { - return -1; - } - } - return ai < bi ? -1 : 1; - } - - /** - * Creates a function that, when called, invokes `func` with the `this` binding - * of `thisArg` and prepends any `partialArgs` to the arguments passed to the - * bound function. - * - * @private - * @param {Function|String} func The function to bind or the method name. - * @param {Mixed} [thisArg] The `this` binding of `func`. - * @param {Array} partialArgs An array of arguments to be partially applied. - * @param {Object} [rightIndicator] Used to indicate partially applying arguments from the right. - * @returns {Function} Returns the new bound function. - */ - function createBound(func, thisArg, partialArgs, rightIndicator) { - var isFunc = isFunction(func), - isPartial = !partialArgs, - key = thisArg; - - // juggle arguments - if (isPartial) { - partialArgs = thisArg; - } - if (!isFunc) { - thisArg = func; - } - - function bound() { - // `Function#bind` spec - // http://es5.github.com/#x15.3.4.5 - var args = arguments, - thisBinding = isPartial ? this : thisArg; - - if (!isFunc) { - func = thisArg[key]; - } - if (partialArgs.length) { - args = args.length - ? (args = slice(args), rightIndicator ? args.concat(partialArgs) : partialArgs.concat(args)) - : partialArgs; - } - if (this instanceof bound) { - // ensure `new bound` is an instance of `bound` and `func` - noop.prototype = func.prototype; - thisBinding = new noop; - noop.prototype = null; - - // mimic the constructor's `return` behavior - // http://es5.github.com/#x13.2.2 - var result = func.apply(thisBinding, args); - return isObject(result) ? result : thisBinding; - } - return func.apply(thisBinding, args); - } - return bound; - } - - /** - * Produces a callback bound to an optional `thisArg`. If `func` is a property - * name, the created callback will return the property value for a given element. - * If `func` is an object, the created callback will return `true` for elements - * that contain the equivalent object properties, otherwise it will return `false`. - * - * @private - * @param {Mixed} [func=identity] The value to convert to a callback. - * @param {Mixed} [thisArg] The `this` binding of the created callback. - * @param {Number} [argCount=3] The number of arguments the callback accepts. - * @returns {Function} Returns a callback function. - */ - function createCallback(func, thisArg, argCount) { - if (func == null) { - return identity; - } - var type = typeof func; - if (type != 'function') { - if (type != 'object') { - return function(object) { - return object[func]; - }; - } - var props = keys(func); - return function(object) { - var length = props.length, - result = false; - while (length--) { - if (!(result = isEqual(object[props[length]], func[props[length]], indicatorObject))) { - break; - } - } - return result; - }; - } - if (typeof thisArg != 'undefined') { - if (argCount === 1) { - return function(value) { - return func.call(thisArg, value); - }; - } - if (argCount === 2) { - return function(a, b) { - return func.call(thisArg, a, b); - }; - } - if (argCount === 4) { - return function(accumulator, value, index, object) { - return func.call(thisArg, accumulator, value, index, object); - }; - } - return function(value, index, object) { - return func.call(thisArg, value, index, object); - }; - } - return func; - } - - /** - * Creates compiled iteration functions. - * - * @private - * @param {Object} [options1, options2, ...] The compile options object(s). - * arrays - A string of code to determine if the iterable is an array or array-like. - * useHas - A boolean to specify using `hasOwnProperty` checks in the object loop. - * args - A string of comma separated arguments the iteration function will accept. - * top - A string of code to execute before the iteration branches. - * loop - A string of code to execute in the object loop. - * bottom - A string of code to execute after the iteration branches. - * - * @returns {Function} Returns the compiled function. - */ - function createIterator() { - var data = { - // support properties - 'hasDontEnumBug': hasDontEnumBug, - 'hasEnumPrototype': hasEnumPrototype, - 'isKeysFast': isKeysFast, - 'nonEnumArgs': nonEnumArgs, - 'noCharByIndex': noCharByIndex, - 'shadowed': shadowed, - - // iterator options - 'arrays': 'isArray(iterable)', - 'bottom': '', - 'loop': '', - 'top': '', - 'useHas': true - }; - - // merge options into a template data object - for (var object, index = 0; object = arguments[index]; index++) { - for (var key in object) { - data[key] = object[key]; - } - } - var args = data.args; - data.firstArg = /^[^,]+/.exec(args)[0]; - - // create the function factory - var factory = Function( - 'createCallback, hasOwnProperty, isArguments, isArray, isString, ' + - 'objectTypes, nativeKeys', - 'return function(' + args + ') {\n' + iteratorTemplate(data) + '\n}' - ); - // return the compiled function - return factory( - createCallback, hasOwnProperty, isArguments, isArray, isString, - objectTypes, nativeKeys - ); - } - - /** - * A function compiled to iterate `arguments` objects, arrays, objects, and - * strings consistenly across environments, executing the `callback` for each - * element in the `collection`. The `callback` is bound to `thisArg` and invoked - * with three arguments; (value, index|key, collection). Callbacks may exit - * iteration early by explicitly returning `false`. - * - * @private - * @type Function - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array|Object|String} Returns `collection`. - */ - var each = createIterator(eachIteratorOptions); - - /** - * Used by `template` to escape characters for inclusion in compiled - * string literals. - * - * @private - * @param {String} match The matched character to escape. - * @returns {String} Returns the escaped character. - */ - function escapeStringChar(match) { - return '\\' + stringEscapes[match]; - } - - /** - * Used by `escape` to convert characters to HTML entities. - * - * @private - * @param {String} match The matched character to escape. - * @returns {String} Returns the escaped character. - */ - function escapeHtmlChar(match) { - return htmlEscapes[match]; - } - - /** - * Checks if `value` is a DOM node in IE < 9. - * - * @private - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true` if the `value` is a DOM node, else `false`. - */ - function isNode(value) { - // IE < 9 presents DOM nodes as `Object` objects except they have `toString` - // methods that are `typeof` "string" and still can coerce nodes to strings - return typeof value.toString != 'function' && typeof (value + '') == 'string'; - } - - /** - * A no-operation function. - * - * @private - */ - function noop() { - // no operation performed - } - - /** - * Slices the `collection` from the `start` index up to, but not including, - * the `end` index. - * - * Note: This function is used, instead of `Array#slice`, to support node lists - * in IE < 9 and to ensure dense arrays are returned. - * - * @private - * @param {Array|Object|String} collection The collection to slice. - * @param {Number} start The start index. - * @param {Number} end The end index. - * @returns {Array} Returns the new array. - */ - function slice(array, start, end) { - start || (start = 0); - if (typeof end == 'undefined') { - end = array ? array.length : 0; - } - var index = -1, - length = end - start || 0, - result = Array(length < 0 ? 0 : length); - - while (++index < length) { - result[index] = array[start + index]; - } - return result; - } - - /** - * Used by `unescape` to convert HTML entities to characters. - * - * @private - * @param {String} match The matched character to unescape. - * @returns {String} Returns the unescaped character. - */ - function unescapeHtmlChar(match) { - return htmlUnescapes[match]; - } - - /*--------------------------------------------------------------------------*/ - - /** - * Checks if `value` is an `arguments` object. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is an `arguments` object, else `false`. - * @example - * - * (function() { return _.isArguments(arguments); })(1, 2, 3); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ - function isArguments(value) { - return toString.call(value) == argsClass; - } - // fallback for browsers that can't detect `arguments` objects by [[Class]] - if (noArgsClass) { - isArguments = function(value) { - return value ? hasOwnProperty.call(value, 'callee') : false; - }; - } - - /** - * Iterates over `object`'s own and inherited enumerable properties, executing - * the `callback` for each property. The `callback` is bound to `thisArg` and - * invoked with three arguments; (value, key, object). Callbacks may exit iteration - * early by explicitly returning `false`. - * - * @static - * @memberOf _ - * @type Function - * @category Objects - * @param {Object} object The object to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns `object`. - * @example - * - * function Dog(name) { - * this.name = name; - * } - * - * Dog.prototype.bark = function() { - * alert('Woof, woof!'); - * }; - * - * _.forIn(new Dog('Dagny'), function(value, key) { - * alert(key); - * }); - * // => alerts 'name' and 'bark' (order is not guaranteed) - */ - var forIn = createIterator(eachIteratorOptions, forOwnIteratorOptions, { - 'useHas': false - }); - - /** - * Iterates over an object's own enumerable properties, executing the `callback` - * for each property. The `callback` is bound to `thisArg` and invoked with three - * arguments; (value, key, object). Callbacks may exit iteration early by explicitly - * returning `false`. - * - * @static - * @memberOf _ - * @type Function - * @category Objects - * @param {Object} object The object to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns `object`. - * @example - * - * _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) { - * alert(key); - * }); - * // => alerts '0', '1', and 'length' (order is not guaranteed) - */ - var forOwn = createIterator(eachIteratorOptions, forOwnIteratorOptions); - - /** - * Checks if `value` is an array. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is an array, else `false`. - * @example - * - * (function() { return _.isArray(arguments); })(); - * // => false - * - * _.isArray([1, 2, 3]); - * // => true - */ - var isArray = nativeIsArray || function(value) { - // `instanceof` may cause a memory leak in IE 7 if `value` is a host object - // http://ajaxian.com/archives/working-aroung-the-instanceof-memory-leak - return (argsAreObjects && value instanceof Array) || toString.call(value) == arrayClass; - }; - - /** - * Creates an array composed of the own enumerable property names of `object`. - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns a new array of property names. - * @example - * - * _.keys({ 'one': 1, 'two': 2, 'three': 3 }); - * // => ['one', 'two', 'three'] (order is not guaranteed) - */ - var keys = !nativeKeys ? shimKeys : function(object) { - if (!isObject(object)) { - return []; - } - if ((hasEnumPrototype && typeof object == 'function') || - (nonEnumArgs && object.length && isArguments(object))) { - return shimKeys(object); - } - return nativeKeys(object); - }; - - /** - * A fallback implementation of `isPlainObject` that checks if a given `value` - * is an object created by the `Object` constructor, assuming objects created - * by the `Object` constructor have no inherited enumerable properties and that - * there are no `Object.prototype` extensions. - * - * @private - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if `value` is a plain object, else `false`. - */ - function shimIsPlainObject(value) { - // avoid non-objects and false positives for `arguments` objects - var result = false; - if (!(value && typeof value == 'object') || isArguments(value)) { - return result; - } - // check that the constructor is `Object` (i.e. `Object instanceof Object`) - var ctor = value.constructor; - if ((!isFunction(ctor) && (!noNodeClass || !isNode(value))) || ctor instanceof ctor) { - // IE < 9 iterates inherited properties before own properties. If the first - // iterated property is an object's own property then there are no inherited - // enumerable properties. - if (iteratesOwnLast) { - forIn(value, function(value, key, object) { - result = !hasOwnProperty.call(object, key); - return false; - }); - return result === false; - } - // In most environments an object's own properties are iterated before - // its inherited properties. If the last iterated property is an object's - // own property then there are no inherited enumerable properties. - forIn(value, function(value, key) { - result = key; - }); - return result === false || hasOwnProperty.call(value, result); - } - return result; - } - - /** - * A fallback implementation of `Object.keys` that produces an array of the - * given object's own enumerable property names. - * - * @private - * @param {Object} object The object to inspect. - * @returns {Array} Returns a new array of property names. - */ - function shimKeys(object) { - var result = []; - forOwn(object, function(value, key) { - result.push(key); - }); - return result; - } - - /** - * Used to convert characters to HTML entities: - * - * Though the `>` character is escaped for symmetry, characters like `>` and `/` - * don't require escaping in HTML and have no special meaning unless they're part - * of a tag or an unquoted attribute value. - * http://mathiasbynens.be/notes/ambiguous-ampersands (under "semi-related fun fact") - */ - var htmlEscapes = { - '&': '&', - '<': '<', - '>': '>', - '"': '"', - "'": ''' - }; - - /** Used to convert HTML entities to characters */ - var htmlUnescapes = invert(htmlEscapes); - - /*--------------------------------------------------------------------------*/ - - /** - * Assigns own enumerable properties of source object(s) to the destination - * object. Subsequent sources will overwrite propery assignments of previous - * sources. If a `callback` function is passed, it will be executed to produce - * the assigned values. The `callback` is bound to `thisArg` and invoked with - * two arguments; (objectValue, sourceValue). - * - * @static - * @memberOf _ - * @type Function - * @alias extend - * @category Objects - * @param {Object} object The destination object. - * @param {Object} [source1, source2, ...] The source objects. - * @param {Function} [callback] The function to customize assigning values. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns the destination object. - * @example - * - * _.assign({ 'name': 'moe' }, { 'age': 40 }); - * // => { 'name': 'moe', 'age': 40 } - * - * var defaults = _.partialRight(_.assign, function(a, b) { - * return typeof a == 'undefined' ? b : a; - * }); - * - * var food = { 'name': 'apple' }; - * defaults(food, { 'name': 'banana', 'type': 'fruit' }); - * // => { 'name': 'apple', 'type': 'fruit' } - */ - var assign = createIterator(defaultsIteratorOptions, { - 'top': - defaultsIteratorOptions.top.replace(';', - ';\n' + - "if (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n" + - ' var callback = createCallback(args[--argsLength - 1], args[argsLength--], 2);\n' + - "} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n" + - ' callback = args[--argsLength];\n' + - '}' - ), - 'loop': 'result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]' - }); - - /** - * Creates a clone of `value`. If `deep` is `true`, nested objects will also - * be cloned, otherwise they will be assigned by reference. If a `callback` - * function is passed, it will be executed to produce the cloned values. If - * `callback` returns `undefined`, cloning will be handled by the method instead. - * The `callback` is bound to `thisArg` and invoked with one argument; (value). - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to clone. - * @param {Boolean} [deep=false] A flag to indicate a deep clone. - * @param {Function} [callback] The function to customize cloning values. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @param- {Array} [stackA=[]] Internally used to track traversed source objects. - * @param- {Array} [stackB=[]] Internally used to associate clones with source counterparts. - * @returns {Mixed} Returns the cloned `value`. - * @example - * - * var stooges = [ - * { 'name': 'moe', 'age': 40 }, - * { 'name': 'larry', 'age': 50 } - * ]; - * - * var shallow = _.clone(stooges); - * shallow[0] === stooges[0]; - * // => true - * - * var deep = _.clone(stooges, true); - * deep[0] === stooges[0]; - * // => false - * - * _.mixin({ - * 'clone': _.partialRight(_.clone, function(value) { - * return _.isElement(value) ? value.cloneNode(false) : undefined; - * }) - * }); - * - * var clone = _.clone(document.body); - * clone.childNodes.length; - * // => 0 - */ - function clone(value, deep, callback, thisArg, stackA, stackB) { - var result = value; - - // allows working with "Collections" methods without using their `callback` - // argument, `index|key`, for this method's `callback` - if (typeof deep == 'function') { - thisArg = callback; - callback = deep; - deep = false; - } - if (typeof callback == 'function') { - callback = typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg, 1); - result = callback(result); - - var done = typeof result != 'undefined'; - if (!done) { - result = value; - } - } - // inspect [[Class]] - var isObj = isObject(result); - if (isObj) { - var className = toString.call(result); - if (!cloneableClasses[className] || (noNodeClass && isNode(result))) { - return result; - } - var isArr = isArray(result); - } - // shallow clone - if (!isObj || !deep) { - return isObj && !done - ? (isArr ? slice(result) : assign({}, result)) - : result; - } - var ctor = ctorByClass[className]; - switch (className) { - case boolClass: - case dateClass: - return done ? result : new ctor(+result); - - case numberClass: - case stringClass: - return done ? result : new ctor(result); - - case regexpClass: - return done ? result : ctor(result.source, reFlags.exec(result)); - } - // check for circular references and return corresponding clone - stackA || (stackA = []); - stackB || (stackB = []); - - var length = stackA.length; - while (length--) { - if (stackA[length] == value) { - return stackB[length]; - } - } - // init cloned object - if (!done) { - result = isArr ? ctor(result.length) : {}; - - // add array properties assigned by `RegExp#exec` - if (isArr) { - if (hasOwnProperty.call(value, 'index')) { - result.index = value.index; - } - if (hasOwnProperty.call(value, 'input')) { - result.input = value.input; - } - } - } - // add the source value to the stack of traversed objects - // and associate it with its clone - stackA.push(value); - stackB.push(result); - - // recursively populate clone (susceptible to call stack limits) - (isArr ? forEach : forOwn)(done ? result : value, function(objValue, key) { - result[key] = clone(objValue, deep, callback, undefined, stackA, stackB); - }); - - return result; - } - - /** - * Creates a deep clone of `value`. If a `callback` function is passed, it will - * be executed to produce the cloned values. If `callback` returns the value it - * was passed, cloning will be handled by the method instead. The `callback` is - * bound to `thisArg` and invoked with one argument; (value). - * - * Note: This function is loosely based on the structured clone algorithm. Functions - * and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and - * objects created by constructors other than `Object` are cloned to plain `Object` objects. - * See http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to deep clone. - * @param {Function} [callback] The function to customize cloning values. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Mixed} Returns the deep cloned `value`. - * @example - * - * var stooges = [ - * { 'name': 'moe', 'age': 40 }, - * { 'name': 'larry', 'age': 50 } - * ]; - * - * var deep = _.cloneDeep(stooges); - * deep[0] === stooges[0]; - * // => false - * - * var view = { - * 'label': 'docs', - * 'node': element - * }; - * - * var clone = _.cloneDeep(view, function(value) { - * return _.isElement(value) ? value.cloneNode(true) : value; - * }); - * - * clone.node == view.node; - * // => false - */ - function cloneDeep(value, callback, thisArg) { - return clone(value, true, callback, thisArg); - } - - /** - * Assigns own enumerable properties of source object(s) to the destination - * object for all destination properties that resolve to `undefined`. Once a - * property is set, additional defaults of the same property will be ignored. - * - * @static - * @memberOf _ - * @type Function - * @category Objects - * @param {Object} object The destination object. - * @param {Object} [source1, source2, ...] The source objects. - * @param- {Object} [guard] Internally used to allow working with `_.reduce` - * without using its callback's `key` and `object` arguments as sources. - * @returns {Object} Returns the destination object. - * @example - * - * var food = { 'name': 'apple' }; - * _.defaults(food, { 'name': 'banana', 'type': 'fruit' }); - * // => { 'name': 'apple', 'type': 'fruit' } - */ - var defaults = createIterator(defaultsIteratorOptions); - - /** - * Creates a sorted array of all enumerable properties, own and inherited, - * of `object` that have function values. - * - * @static - * @memberOf _ - * @alias methods - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns a new array of property names that have function values. - * @example - * - * _.functions(_); - * // => ['all', 'any', 'bind', 'bindAll', 'clone', 'compact', 'compose', ...] - */ - function functions(object) { - var result = []; - forIn(object, function(value, key) { - if (isFunction(value)) { - result.push(key); - } - }); - return result.sort(); - } - - /** - * Checks if the specified object `property` exists and is a direct property, - * instead of an inherited property. - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to check. - * @param {String} property The property to check for. - * @returns {Boolean} Returns `true` if key is a direct property, else `false`. - * @example - * - * _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b'); - * // => true - */ - function has(object, property) { - return object ? hasOwnProperty.call(object, property) : false; - } - - /** - * Creates an object composed of the inverted keys and values of the given `object`. - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to invert. - * @returns {Object} Returns the created inverted object. - * @example - * - * _.invert({ 'first': 'moe', 'second': 'larry' }); - * // => { 'moe': 'first', 'larry': 'second' } (order is not guaranteed) - */ - function invert(object) { - var index = -1, - props = keys(object), - length = props.length, - result = {}; - - while (++index < length) { - var key = props[index]; - result[object[key]] = key; - } - return result; - } - - /** - * Checks if `value` is a boolean value. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is a boolean value, else `false`. - * @example - * - * _.isBoolean(null); - * // => false - */ - function isBoolean(value) { - return value === true || value === false || toString.call(value) == boolClass; - } - - /** - * Checks if `value` is a date. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is a date, else `false`. - * @example - * - * _.isDate(new Date); - * // => true - */ - function isDate(value) { - return value instanceof Date || toString.call(value) == dateClass; - } - - /** - * Checks if `value` is a DOM element. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is a DOM element, else `false`. - * @example - * - * _.isElement(document.body); - * // => true - */ - function isElement(value) { - return value ? value.nodeType === 1 : false; - } - - /** - * Checks if `value` is empty. Arrays, strings, or `arguments` objects with a - * length of `0` and objects with no own enumerable properties are considered - * "empty". - * - * @static - * @memberOf _ - * @category Objects - * @param {Array|Object|String} value The value to inspect. - * @returns {Boolean} Returns `true`, if the `value` is empty, else `false`. - * @example - * - * _.isEmpty([1, 2, 3]); - * // => false - * - * _.isEmpty({}); - * // => true - * - * _.isEmpty(''); - * // => true - */ - function isEmpty(value) { - var result = true; - if (!value) { - return result; - } - var className = toString.call(value), - length = value.length; - - if ((className == arrayClass || className == stringClass || - className == argsClass || (noArgsClass && isArguments(value))) || - (className == objectClass && typeof length == 'number' && isFunction(value.splice))) { - return !length; - } - forOwn(value, function() { - return (result = false); - }); - return result; - } - - /** - * Performs a deep comparison between two values to determine if they are - * equivalent to each other. If `callback` is passed, it will be executed to - * compare values. If `callback` returns `undefined`, comparisons will be handled - * by the method instead. The `callback` is bound to `thisArg` and invoked with - * two arguments; (a, b). - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} a The value to compare. - * @param {Mixed} b The other value to compare. - * @param {Function} [callback] The function to customize comparing values. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @param- {Object} [stackA=[]] Internally used track traversed `a` objects. - * @param- {Object} [stackB=[]] Internally used track traversed `b` objects. - * @returns {Boolean} Returns `true`, if the values are equvalent, else `false`. - * @example - * - * var moe = { 'name': 'moe', 'age': 40 }; - * var copy = { 'name': 'moe', 'age': 40 }; - * - * moe == copy; - * // => false - * - * _.isEqual(moe, copy); - * // => true - * - * var words = ['hello', 'goodbye']; - * var otherWords = ['hi', 'goodbye']; - * - * _.isEqual(words, otherWords, function(a, b) { - * var reGreet = /^(?:hello|hi)$/i, - * aGreet = _.isString(a) && reGreet.test(a), - * bGreet = _.isString(b) && reGreet.test(b); - * - * return (aGreet || bGreet) ? (aGreet == bGreet) : undefined; - * }); - * // => true - */ - function isEqual(a, b, callback, thisArg, stackA, stackB) { - // used to indicate that when comparing objects, `a` has at least the properties of `b` - var whereIndicator = callback === indicatorObject; - if (callback && !whereIndicator) { - callback = typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg, 2); - var result = callback(a, b); - if (typeof result != 'undefined') { - return !!result; - } - } - // exit early for identical values - if (a === b) { - // treat `+0` vs. `-0` as not equal - return a !== 0 || (1 / a == 1 / b); - } - var type = typeof a, - otherType = typeof b; - - // exit early for unlike primitive values - if (a === a && - (!a || (type != 'function' && type != 'object')) && - (!b || (otherType != 'function' && otherType != 'object'))) { - return false; - } - // exit early for `null` and `undefined`, avoiding ES3's Function#call behavior - // http://es5.github.com/#x15.3.4.4 - if (a == null || b == null) { - return a === b; - } - // compare [[Class]] names - var className = toString.call(a), - otherClass = toString.call(b); - - if (className == argsClass) { - className = objectClass; - } - if (otherClass == argsClass) { - otherClass = objectClass; - } - if (className != otherClass) { - return false; - } - switch (className) { - case boolClass: - case dateClass: - // coerce dates and booleans to numbers, dates to milliseconds and booleans - // to `1` or `0`, treating invalid dates coerced to `NaN` as not equal - return +a == +b; - - case numberClass: - // treat `NaN` vs. `NaN` as equal - return a != +a - ? b != +b - // but treat `+0` vs. `-0` as not equal - : (a == 0 ? (1 / a == 1 / b) : a == +b); - - case regexpClass: - case stringClass: - // coerce regexes to strings (http://es5.github.com/#x15.10.6.4) - // treat string primitives and their corresponding object instances as equal - return a == b + ''; - } - var isArr = className == arrayClass; - if (!isArr) { - // unwrap any `lodash` wrapped values - if (a.__wrapped__ || b.__wrapped__) { - return isEqual(a.__wrapped__ || a, b.__wrapped__ || b, callback, thisArg, stackA, stackB); - } - // exit for functions and DOM nodes - if (className != objectClass || (noNodeClass && (isNode(a) || isNode(b)))) { - return false; - } - // in older versions of Opera, `arguments` objects have `Array` constructors - var ctorA = !argsAreObjects && isArguments(a) ? Object : a.constructor, - ctorB = !argsAreObjects && isArguments(b) ? Object : b.constructor; - - // non `Object` object instances with different constructors are not equal - if (ctorA != ctorB && !( - isFunction(ctorA) && ctorA instanceof ctorA && - isFunction(ctorB) && ctorB instanceof ctorB - )) { - return false; - } - } - // assume cyclic structures are equal - // the algorithm for detecting cyclic structures is adapted from ES 5.1 - // section 15.12.3, abstract operation `JO` (http://es5.github.com/#x15.12.3) - stackA || (stackA = []); - stackB || (stackB = []); - - var length = stackA.length; - while (length--) { - if (stackA[length] == a) { - return stackB[length] == b; - } - } - var size = 0; - result = true; - - // add `a` and `b` to the stack of traversed objects - stackA.push(a); - stackB.push(b); - - // recursively compare objects and arrays (susceptible to call stack limits) - if (isArr) { - length = a.length; - size = b.length; - - // compare lengths to determine if a deep comparison is necessary - result = size == a.length; - if (!result && !whereIndicator) { - return result; - } - // deep compare the contents, ignoring non-numeric properties - while (size--) { - var index = length, - value = b[size]; - - if (whereIndicator) { - while (index--) { - if ((result = isEqual(a[index], value, callback, thisArg, stackA, stackB))) { - break; - } - } - } else if (!(result = isEqual(a[size], value, callback, thisArg, stackA, stackB))) { - break; - } - } - return result; - } - // deep compare objects using `forIn`, instead of `forOwn`, to avoid `Object.keys` - // which, in this case, is more costly - forIn(b, function(value, key, b) { - if (hasOwnProperty.call(b, key)) { - // count the number of properties. - size++; - // deep compare each property value. - return (result = hasOwnProperty.call(a, key) && isEqual(a[key], value, callback, thisArg, stackA, stackB)); - } - }); - - if (result && !whereIndicator) { - // ensure both objects have the same number of properties - forIn(a, function(value, key, a) { - if (hasOwnProperty.call(a, key)) { - // `size` will be `-1` if `a` has more properties than `b` - return (result = --size > -1); - } - }); - } - return result; - } - - /** - * Checks if `value` is, or can be coerced to, a finite number. - * - * Note: This is not the same as native `isFinite`, which will return true for - * booleans and empty strings. See http://es5.github.com/#x15.1.2.5. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is finite, else `false`. - * @example - * - * _.isFinite(-101); - * // => true - * - * _.isFinite('10'); - * // => true - * - * _.isFinite(true); - * // => false - * - * _.isFinite(''); - * // => false - * - * _.isFinite(Infinity); - * // => false - */ - function isFinite(value) { - return nativeIsFinite(value) && !nativeIsNaN(parseFloat(value)); - } - - /** - * Checks if `value` is a function. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - */ - function isFunction(value) { - return typeof value == 'function'; - } - // fallback for older versions of Chrome and Safari - if (isFunction(/x/)) { - isFunction = function(value) { - return value instanceof Function || toString.call(value) == funcClass; - }; - } - - /** - * Checks if `value` is the language type of Object. - * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(1); - * // => false - */ - function isObject(value) { - // check if the value is the ECMAScript language type of Object - // http://es5.github.com/#x8 - // and avoid a V8 bug - // http://code.google.com/p/v8/issues/detail?id=2291 - return value ? objectTypes[typeof value] : false; - } - - /** - * Checks if `value` is `NaN`. - * - * Note: This is not the same as native `isNaN`, which will return `true` for - * `undefined` and other values. See http://es5.github.com/#x15.1.2.4. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is `NaN`, else `false`. - * @example - * - * _.isNaN(NaN); - * // => true - * - * _.isNaN(new Number(NaN)); - * // => true - * - * isNaN(undefined); - * // => true - * - * _.isNaN(undefined); - * // => false - */ - function isNaN(value) { - // `NaN` as a primitive is the only value that is not equal to itself - // (perform the [[Class]] check first to avoid errors with some host objects in IE) - return isNumber(value) && value != +value - } - - /** - * Checks if `value` is `null`. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is `null`, else `false`. - * @example - * - * _.isNull(null); - * // => true - * - * _.isNull(undefined); - * // => false - */ - function isNull(value) { - return value === null; - } - - /** - * Checks if `value` is a number. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is a number, else `false`. - * @example - * - * _.isNumber(8.4 * 5); - * // => true - */ - function isNumber(value) { - return typeof value == 'number' || toString.call(value) == numberClass; - } - - /** - * Checks if a given `value` is an object created by the `Object` constructor. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if `value` is a plain object, else `false`. - * @example - * - * function Stooge(name, age) { - * this.name = name; - * this.age = age; - * } - * - * _.isPlainObject(new Stooge('moe', 40)); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'name': 'moe', 'age': 40 }); - * // => true - */ - var isPlainObject = !getPrototypeOf ? shimIsPlainObject : function(value) { - if (!(value && typeof value == 'object')) { - return false; - } - var valueOf = value.valueOf, - objProto = typeof valueOf == 'function' && (objProto = getPrototypeOf(valueOf)) && getPrototypeOf(objProto); - - return objProto - ? value == objProto || (getPrototypeOf(value) == objProto && !isArguments(value)) - : shimIsPlainObject(value); - }; - - /** - * Checks if `value` is a regular expression. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is a regular expression, else `false`. - * @example - * - * _.isRegExp(/moe/); - * // => true - */ - function isRegExp(value) { - return value instanceof RegExp || toString.call(value) == regexpClass; - } - - /** - * Checks if `value` is a string. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is a string, else `false`. - * @example - * - * _.isString('moe'); - * // => true - */ - function isString(value) { - return typeof value == 'string' || toString.call(value) == stringClass; - } - - /** - * Checks if `value` is `undefined`. - * - * @static - * @memberOf _ - * @category Objects - * @param {Mixed} value The value to check. - * @returns {Boolean} Returns `true`, if the `value` is `undefined`, else `false`. - * @example - * - * _.isUndefined(void 0); - * // => true - */ - function isUndefined(value) { - return typeof value == 'undefined'; - } - - /** - * Recursively merges own enumerable properties of the source object(s), that - * don't resolve to `undefined`, into the destination object. Subsequent sources - * will overwrite propery assignments of previous sources. If a `callback` function - * is passed, it will be executed to produce the merged values of the destination - * and source properties. If `callback` returns `undefined`, merging will be - * handled by the method instead. The `callback` is bound to `thisArg` and - * invoked with two arguments; (objectValue, sourceValue). - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The destination object. - * @param {Object} [source1, source2, ...] The source objects. - * @param {Function} [callback] The function to customize merging properties. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @param- {Object} [deepIndicator] Internally used to indicate that `stackA` - * and `stackB` are arrays of traversed objects instead of source objects. - * @param- {Array} [stackA=[]] Internally used to track traversed source objects. - * @param- {Array} [stackB=[]] Internally used to associate values with their - * source counterparts. - * @returns {Object} Returns the destination object. - * @example - * - * var names = { - * 'stooges': [ - * { 'name': 'moe' }, - * { 'name': 'larry' } - * ] - * }; - * - * var ages = { - * 'stooges': [ - * { 'age': 40 }, - * { 'age': 50 } - * ] - * }; - * - * _.merge(names, ages); - * // => { 'stooges': [{ 'name': 'moe', 'age': 40 }, { 'name': 'larry', 'age': 50 }] } - * - * var food = { - * 'fruits': ['apple'], - * 'vegetables': ['beet'] - * }; - * - * var otherFood = { - * 'fruits': ['banana'], - * 'vegetables': ['carrot'] - * }; - * - * _.merge(food, otherFood, function(a, b) { - * return _.isArray(a) ? a.concat(b) : undefined; - * }); - * // => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot] } - */ - function merge(object, source, deepIndicator) { - var args = arguments, - index = 0, - length = 2; - - if (!isObject(object)) { - return object; - } - if (deepIndicator === indicatorObject) { - var callback = args[3], - stackA = args[4], - stackB = args[5]; - } else { - stackA = []; - stackB = []; - - // allows working with `_.reduce` and `_.reduceRight` without - // using their `callback` arguments, `index|key` and `collection` - if (typeof deepIndicator != 'number') { - length = args.length; - } - if (length > 3 && typeof args[length - 2] == 'function') { - callback = createCallback(args[--length - 1], args[length--], 2); - } else if (length > 2 && typeof args[length - 1] == 'function') { - callback = args[--length]; - } - } - while (++index < length) { - (isArray(args[index]) ? forEach : forOwn)(args[index], function(source, key) { - var found, - isArr, - result = source, - value = object[key]; - - if (source && ((isArr = isArray(source)) || isPlainObject(source))) { - // avoid merging previously merged cyclic sources - var stackLength = stackA.length; - while (stackLength--) { - if ((found = stackA[stackLength] == source)) { - value = stackB[stackLength]; - break; - } - } - if (!found) { - value = isArr - ? (isArray(value) ? value : []) - : (isPlainObject(value) ? value : {}); - - if (callback) { - result = callback(value, source); - if (typeof result != 'undefined') { - value = result; - } - } - // add `source` and associated `value` to the stack of traversed objects - stackA.push(source); - stackB.push(value); - - // recursively merge objects and arrays (susceptible to call stack limits) - if (!callback) { - value = merge(value, source, indicatorObject, callback, stackA, stackB); - } - } - } - else { - if (callback) { - result = callback(value, source); - if (typeof result == 'undefined') { - result = source; - } - } - if (typeof result != 'undefined') { - value = result; - } - } - object[key] = value; - }); - } - return object; - } - - /** - * Creates a shallow clone of `object` excluding the specified properties. - * Property names may be specified as individual arguments or as arrays of - * property names. If a `callback` function is passed, it will be executed - * for each property in the `object`, omitting the properties `callback` - * returns truthy for. The `callback` is bound to `thisArg` and invoked - * with three arguments; (value, key, object). - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The source object. - * @param {Function|String} callback|[prop1, prop2, ...] The properties to omit - * or the function called per iteration. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns an object without the omitted properties. - * @example - * - * _.omit({ 'name': 'moe', 'age': 40 }, 'age'); - * // => { 'name': 'moe' } - * - * _.omit({ 'name': 'moe', 'age': 40 }, function(value) { - * return typeof value == 'number'; - * }); - * // => { 'name': 'moe' } - */ - function omit(object, callback, thisArg) { - var isFunc = typeof callback == 'function', - result = {}; - - if (isFunc) { - callback = createCallback(callback, thisArg); - } else { - var props = concat.apply(arrayRef, arguments); - } - forIn(object, function(value, key, object) { - if (isFunc - ? !callback(value, key, object) - : indexOf(props, key, 1) < 0 - ) { - result[key] = value; - } - }); - return result; - } - - /** - * Creates a two dimensional array of the given object's key-value pairs, - * i.e. `[[key1, value1], [key2, value2]]`. - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns new array of key-value pairs. - * @example - * - * _.pairs({ 'moe': 30, 'larry': 40 }); - * // => [['moe', 30], ['larry', 40]] (order is not guaranteed) - */ - function pairs(object) { - var index = -1, - props = keys(object), - length = props.length, - result = Array(length); - - while (++index < length) { - var key = props[index]; - result[index] = [key, object[key]]; - } - return result; - } - - /** - * Creates a shallow clone of `object` composed of the specified properties. - * Property names may be specified as individual arguments or as arrays of property - * names. If `callback` is passed, it will be executed for each property in the - * `object`, picking the properties `callback` returns truthy for. The `callback` - * is bound to `thisArg` and invoked with three arguments; (value, key, object). - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The source object. - * @param {Array|Function|String} callback|[prop1, prop2, ...] The function called - * per iteration or properties to pick, either as individual arguments or arrays. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns an object composed of the picked properties. - * @example - * - * _.pick({ 'name': 'moe', '_userid': 'moe1' }, 'name'); - * // => { 'name': 'moe' } - * - * _.pick({ 'name': 'moe', '_userid': 'moe1' }, function(value, key) { - * return key.charAt(0) != '_'; - * }); - * // => { 'name': 'moe' } - */ - function pick(object, callback, thisArg) { - var result = {}; - if (typeof callback != 'function') { - var index = 0, - props = concat.apply(arrayRef, arguments), - length = isObject(object) ? props.length : 0; - - while (++index < length) { - var key = props[index]; - if (key in object) { - result[key] = object[key]; - } - } - } else { - callback = createCallback(callback, thisArg); - forIn(object, function(value, key, object) { - if (callback(value, key, object)) { - result[key] = value; - } - }); - } - return result; - } - - /** - * Creates an array composed of the own enumerable property values of `object`. - * - * @static - * @memberOf _ - * @category Objects - * @param {Object} object The object to inspect. - * @returns {Array} Returns a new array of property values. - * @example - * - * _.values({ 'one': 1, 'two': 2, 'three': 3 }); - * // => [1, 2, 3] - */ - function values(object) { - var index = -1, - props = keys(object), - length = props.length, - result = Array(length); - - while (++index < length) { - result[index] = object[props[index]]; - } - return result; - } - - /*--------------------------------------------------------------------------*/ - - /** - * Creates an array of elements from the specified indexes, or keys, of the - * `collection`. Indexes may be specified as individual arguments or as arrays - * of indexes. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Array|Number|String} [index1, index2, ...] The indexes of - * `collection` to retrieve, either as individual arguments or arrays. - * @returns {Array} Returns a new array of elements corresponding to the - * provided indexes. - * @example - * - * _.at(['a', 'b', 'c', 'd', 'e'], [0, 2, 4]); - * // => ['a', 'c', 'e'] - * - * _.at(['moe', 'larry', 'curly'], 0, 2); - * // => ['moe', 'curly'] - */ - function at(collection) { - var index = -1, - props = concat.apply(arrayRef, slice(arguments, 1)), - length = props.length, - result = Array(length); - - if (noCharByIndex && isString(collection)) { - collection = collection.split(''); - } - while(++index < length) { - result[index] = collection[props[index]]; - } - return result; - } - - /** - * Checks if a given `target` element is present in a `collection` using strict - * equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used - * as the offset from the end of the collection. - * - * @static - * @memberOf _ - * @alias include - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Mixed} target The value to check for. - * @param {Number} [fromIndex=0] The index to search from. - * @returns {Boolean} Returns `true` if the `target` element is found, else `false`. - * @example - * - * _.contains([1, 2, 3], 1); - * // => true - * - * _.contains([1, 2, 3], 1, 2); - * // => false - * - * _.contains({ 'name': 'moe', 'age': 40 }, 'moe'); - * // => true - * - * _.contains('curly', 'ur'); - * // => true - */ - function contains(collection, target, fromIndex) { - var index = -1, - length = collection ? collection.length : 0, - result = false; - - fromIndex = (fromIndex < 0 ? nativeMax(0, length + fromIndex) : fromIndex) || 0; - if (typeof length == 'number') { - result = (isString(collection) - ? collection.indexOf(target, fromIndex) - : indexOf(collection, target, fromIndex) - ) > -1; - } else { - each(collection, function(value) { - if (++index >= fromIndex) { - return !(result = value === target); - } - }); - } - return result; - } - - /** - * Creates an object composed of keys returned from running each element of the - * `collection` through the given `callback`. The corresponding value of each key - * is the number of times the key was returned by the `callback`. The `callback` - * is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns the composed aggregate object. - * @example - * - * _.countBy([4.3, 6.1, 6.4], function(num) { return Math.floor(num); }); - * // => { '4': 1, '6': 2 } - * - * _.countBy([4.3, 6.1, 6.4], function(num) { return this.floor(num); }, Math); - * // => { '4': 1, '6': 2 } - * - * _.countBy(['one', 'two', 'three'], 'length'); - * // => { '3': 2, '5': 1 } - */ - function countBy(collection, callback, thisArg) { - var result = {}; - callback = createCallback(callback, thisArg); - - forEach(collection, function(value, key, collection) { - key = callback(value, key, collection) + ''; - (hasOwnProperty.call(result, key) ? result[key]++ : result[key] = 1); - }); - return result; - } - - /** - * Checks if the `callback` returns a truthy value for **all** elements of a - * `collection`. The `callback` is bound to `thisArg` and invoked with three - * arguments; (value, index|key, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias all - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Boolean} Returns `true` if all elements pass the callback check, - * else `false`. - * @example - * - * _.every([true, 1, null, 'yes'], Boolean); - * // => false - * - * var stooges = [ - * { 'name': 'moe', 'age': 40 }, - * { 'name': 'larry', 'age': 50 } - * ]; - * - * // using "_.pluck" callback shorthand - * _.every(stooges, 'age'); - * // => true - * - * // using "_.where" callback shorthand - * _.every(stooges, { 'age': 50 }); - * // => false - */ - function every(collection, callback, thisArg) { - var result = true; - callback = createCallback(callback, thisArg); - - if (isArray(collection)) { - var index = -1, - length = collection.length; - - while (++index < length) { - if (!(result = !!callback(collection[index], index, collection))) { - break; - } - } - } else { - each(collection, function(value, index, collection) { - return (result = !!callback(value, index, collection)); - }); - } - return result; - } - - /** - * Examines each element in a `collection`, returning an array of all elements - * the `callback` returns truthy for. The `callback` is bound to `thisArg` and - * invoked with three arguments; (value, index|key, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias select - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a new array of elements that passed the callback check. - * @example - * - * var evens = _.filter([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; }); - * // => [2, 4, 6] - * - * var food = [ - * { 'name': 'apple', 'organic': false, 'type': 'fruit' }, - * { 'name': 'carrot', 'organic': true, 'type': 'vegetable' } - * ]; - * - * // using "_.pluck" callback shorthand - * _.filter(food, 'organic'); - * // => [{ 'name': 'carrot', 'organic': true, 'type': 'vegetable' }] - * - * // using "_.where" callback shorthand - * _.filter(food, { 'type': 'fruit' }); - * // => [{ 'name': 'apple', 'organic': false, 'type': 'fruit' }] - */ - function filter(collection, callback, thisArg) { - var result = []; - callback = createCallback(callback, thisArg); - - if (isArray(collection)) { - var index = -1, - length = collection.length; - - while (++index < length) { - var value = collection[index]; - if (callback(value, index, collection)) { - result.push(value); - } - } - } else { - each(collection, function(value, index, collection) { - if (callback(value, index, collection)) { - result.push(value); - } - }); - } - return result; - } - - /** - * Examines each element in a `collection`, returning the first that the `callback` - * returns truthy for. The `callback` is bound to `thisArg` and invoked with three - * arguments; (value, index|key, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias detect - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Mixed} Returns the element that passed the callback check, - * else `undefined`. - * @example - * - * var even = _.find([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; }); - * // => 2 - * - * var food = [ - * { 'name': 'apple', 'organic': false, 'type': 'fruit' }, - * { 'name': 'banana', 'organic': true, 'type': 'fruit' }, - * { 'name': 'beet', 'organic': false, 'type': 'vegetable' }, - * { 'name': 'carrot', 'organic': true, 'type': 'vegetable' } - * ]; - * - * // using "_.where" callback shorthand - * var veggie = _.find(food, { 'type': 'vegetable' }); - * // => { 'name': 'beet', 'organic': false, 'type': 'vegetable' } - * - * // using "_.pluck" callback shorthand - * var healthy = _.find(food, 'organic'); - * // => { 'name': 'banana', 'organic': true, 'type': 'fruit' } - */ - function find(collection, callback, thisArg) { - var result; - callback = createCallback(callback, thisArg); - - forEach(collection, function(value, index, collection) { - if (callback(value, index, collection)) { - result = value; - return false; - } - }); - return result; - } - - /** - * Iterates over a `collection`, executing the `callback` for each element in - * the `collection`. The `callback` is bound to `thisArg` and invoked with three - * arguments; (value, index|key, collection). Callbacks may exit iteration early - * by explicitly returning `false`. - * - * @static - * @memberOf _ - * @alias each - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array|Object|String} Returns `collection`. - * @example - * - * _([1, 2, 3]).forEach(alert).join(','); - * // => alerts each number and returns '1,2,3' - * - * _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, alert); - * // => alerts each number value (order is not guaranteed) - */ - function forEach(collection, callback, thisArg) { - if (callback && typeof thisArg == 'undefined' && isArray(collection)) { - var index = -1, - length = collection.length; - - while (++index < length) { - if (callback(collection[index], index, collection) === false) { - break; - } - } - } else { - each(collection, callback, thisArg); - } - return collection; - } - - /** - * Creates an object composed of keys returned from running each element of the - * `collection` through the `callback`. The corresponding value of each key is - * an array of elements passed to `callback` that returned the key. The `callback` - * is bound to `thisArg` and invoked with three arguments; (value, index|key, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false` - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Object} Returns the composed aggregate object. - * @example - * - * _.groupBy([4.2, 6.1, 6.4], function(num) { return Math.floor(num); }); - * // => { '4': [4.2], '6': [6.1, 6.4] } - * - * _.groupBy([4.2, 6.1, 6.4], function(num) { return this.floor(num); }, Math); - * // => { '4': [4.2], '6': [6.1, 6.4] } - * - * // using "_.pluck" callback shorthand - * _.groupBy(['one', 'two', 'three'], 'length'); - * // => { '3': ['one', 'two'], '5': ['three'] } - */ - function groupBy(collection, callback, thisArg) { - var result = {}; - callback = createCallback(callback, thisArg); - - forEach(collection, function(value, key, collection) { - key = callback(value, key, collection) + ''; - (hasOwnProperty.call(result, key) ? result[key] : result[key] = []).push(value); - }); - return result; - } - - /** - * Invokes the method named by `methodName` on each element in the `collection`, - * returning an array of the results of each invoked method. Additional arguments - * will be passed to each invoked method. If `methodName` is a function, it will - * be invoked for, and `this` bound to, each element in the `collection`. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|String} methodName The name of the method to invoke or - * the function invoked per iteration. - * @param {Mixed} [arg1, arg2, ...] Arguments to invoke the method with. - * @returns {Array} Returns a new array of the results of each invoked method. - * @example - * - * _.invoke([[5, 1, 7], [3, 2, 1]], 'sort'); - * // => [[1, 5, 7], [1, 2, 3]] - * - * _.invoke([123, 456], String.prototype.split, ''); - * // => [['1', '2', '3'], ['4', '5', '6']] - */ - function invoke(collection, methodName) { - var args = slice(arguments, 2), - index = -1, - isFunc = typeof methodName == 'function', - length = collection ? collection.length : 0, - result = Array(typeof length == 'number' ? length : 0); - - forEach(collection, function(value) { - result[++index] = (isFunc ? methodName : value[methodName]).apply(value, args); - }); - return result; - } - - /** - * Creates an array of values by running each element in the `collection` - * through the `callback`. The `callback` is bound to `thisArg` and invoked with - * three arguments; (value, index|key, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias collect - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a new array of the results of each `callback` execution. - * @example - * - * _.map([1, 2, 3], function(num) { return num * 3; }); - * // => [3, 6, 9] - * - * _.map({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { return num * 3; }); - * // => [3, 6, 9] (order is not guaranteed) - * - * var stooges = [ - * { 'name': 'moe', 'age': 40 }, - * { 'name': 'larry', 'age': 50 } - * ]; - * - * // using "_.pluck" callback shorthand - * _.map(stooges, 'name'); - * // => ['moe', 'larry'] - */ - function map(collection, callback, thisArg) { - var index = -1, - length = collection ? collection.length : 0, - result = Array(typeof length == 'number' ? length : 0); - - callback = createCallback(callback, thisArg); - if (isArray(collection)) { - while (++index < length) { - result[index] = callback(collection[index], index, collection); - } - } else { - each(collection, function(value, key, collection) { - result[++index] = callback(value, key, collection); - }); - } - return result; - } - - /** - * Retrieves the maximum value of an `array`. If `callback` is passed, - * it will be executed for each value in the `array` to generate the - * criterion by which the value is ranked. The `callback` is bound to - * `thisArg` and invoked with three arguments; (value, index, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Mixed} Returns the maximum value. - * @example - * - * _.max([4, 2, 8, 6]); - * // => 8 - * - * var stooges = [ - * { 'name': 'moe', 'age': 40 }, - * { 'name': 'larry', 'age': 50 } - * ]; - * - * _.max(stooges, function(stooge) { return stooge.age; }); - * // => { 'name': 'larry', 'age': 50 }; - * - * // using "_.pluck" callback shorthand - * _.max(stooges, 'age'); - * // => { 'name': 'larry', 'age': 50 }; - */ - function max(collection, callback, thisArg) { - var computed = -Infinity, - result = computed; - - if (!callback && isArray(collection)) { - var index = -1, - length = collection.length; - - while (++index < length) { - var value = collection[index]; - if (value > result) { - result = value; - } - } - } else { - callback = !callback && isString(collection) - ? charAtCallback - : createCallback(callback, thisArg); - - each(collection, function(value, index, collection) { - var current = callback(value, index, collection); - if (current > computed) { - computed = current; - result = value; - } - }); - } - return result; - } - - /** - * Retrieves the minimum value of an `array`. If `callback` is passed, - * it will be executed for each value in the `array` to generate the - * criterion by which the value is ranked. The `callback` is bound to `thisArg` - * and invoked with three arguments; (value, index, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Mixed} Returns the minimum value. - * @example - * - * _.min([4, 2, 8, 6]); - * // => 2 - * - * var stooges = [ - * { 'name': 'moe', 'age': 40 }, - * { 'name': 'larry', 'age': 50 } - * ]; - * - * _.min(stooges, function(stooge) { return stooge.age; }); - * // => { 'name': 'moe', 'age': 40 }; - * - * // using "_.pluck" callback shorthand - * _.min(stooges, 'age'); - * // => { 'name': 'moe', 'age': 40 }; - */ - function min(collection, callback, thisArg) { - var computed = Infinity, - result = computed; - - if (!callback && isArray(collection)) { - var index = -1, - length = collection.length; - - while (++index < length) { - var value = collection[index]; - if (value < result) { - result = value; - } - } - } else { - callback = !callback && isString(collection) - ? charAtCallback - : createCallback(callback, thisArg); - - each(collection, function(value, index, collection) { - var current = callback(value, index, collection); - if (current < computed) { - computed = current; - result = value; - } - }); - } - return result; - } - - /** - * Retrieves the value of a specified property from all elements in the `collection`. - * - * @static - * @memberOf _ - * @type Function - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {String} property The property to pluck. - * @returns {Array} Returns a new array of property values. - * @example - * - * var stooges = [ - * { 'name': 'moe', 'age': 40 }, - * { 'name': 'larry', 'age': 50 } - * ]; - * - * _.pluck(stooges, 'name'); - * // => ['moe', 'larry'] - */ - var pluck = map; - - /** - * Reduces a `collection` to a value that is the accumulated result of running - * each element in the `collection` through the `callback`, where each successive - * `callback` execution consumes the return value of the previous execution. - * If `accumulator` is not passed, the first element of the `collection` will be - * used as the initial `accumulator` value. The `callback` is bound to `thisArg` - * and invoked with four arguments; (accumulator, value, index|key, collection). - * - * @static - * @memberOf _ - * @alias foldl, inject - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {Mixed} [accumulator] Initial value of the accumulator. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Mixed} Returns the accumulated value. - * @example - * - * var sum = _.reduce([1, 2, 3], function(sum, num) { - * return sum + num; - * }); - * // => 6 - * - * var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) { - * result[key] = num * 3; - * return result; - * }, {}); - * // => { 'a': 3, 'b': 6, 'c': 9 } - */ - function reduce(collection, callback, accumulator, thisArg) { - var noaccum = arguments.length < 3; - callback = createCallback(callback, thisArg, 4); - - if (isArray(collection)) { - var index = -1, - length = collection.length; - - if (noaccum) { - accumulator = collection[++index]; - } - while (++index < length) { - accumulator = callback(accumulator, collection[index], index, collection); - } - } else { - each(collection, function(value, index, collection) { - accumulator = noaccum - ? (noaccum = false, value) - : callback(accumulator, value, index, collection) - }); - } - return accumulator; - } - - /** - * This method is similar to `_.reduce`, except that it iterates over a - * `collection` from right to left. - * - * @static - * @memberOf _ - * @alias foldr - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function} [callback=identity] The function called per iteration. - * @param {Mixed} [accumulator] Initial value of the accumulator. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Mixed} Returns the accumulated value. - * @example - * - * var list = [[0, 1], [2, 3], [4, 5]]; - * var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []); - * // => [4, 5, 2, 3, 0, 1] - */ - function reduceRight(collection, callback, accumulator, thisArg) { - var iterable = collection, - length = collection ? collection.length : 0, - noaccum = arguments.length < 3; - - if (typeof length != 'number') { - var props = keys(collection); - length = props.length; - } else if (noCharByIndex && isString(collection)) { - iterable = collection.split(''); - } - callback = createCallback(callback, thisArg, 4); - forEach(collection, function(value, index, collection) { - index = props ? props[--length] : --length; - accumulator = noaccum - ? (noaccum = false, iterable[index]) - : callback(accumulator, iterable[index], index, collection); - }); - return accumulator; - } - - /** - * The opposite of `_.filter`, this method returns the elements of a - * `collection` that `callback` does **not** return truthy for. - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a new array of elements that did **not** pass the - * callback check. - * @example - * - * var odds = _.reject([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; }); - * // => [1, 3, 5] - * - * var food = [ - * { 'name': 'apple', 'organic': false, 'type': 'fruit' }, - * { 'name': 'carrot', 'organic': true, 'type': 'vegetable' } - * ]; - * - * // using "_.pluck" callback shorthand - * _.reject(food, 'organic'); - * // => [{ 'name': 'apple', 'organic': false, 'type': 'fruit' }] - * - * // using "_.where" callback shorthand - * _.reject(food, { 'type': 'fruit' }); - * // => [{ 'name': 'carrot', 'organic': true, 'type': 'vegetable' }] - */ - function reject(collection, callback, thisArg) { - callback = createCallback(callback, thisArg); - return filter(collection, function(value, index, collection) { - return !callback(value, index, collection); - }); - } - - /** - * Creates an array of shuffled `array` values, using a version of the - * Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to shuffle. - * @returns {Array} Returns a new shuffled collection. - * @example - * - * _.shuffle([1, 2, 3, 4, 5, 6]); - * // => [4, 1, 6, 3, 5, 2] - */ - function shuffle(collection) { - var index = -1, - length = collection ? collection.length : 0, - result = Array(typeof length == 'number' ? length : 0); - - forEach(collection, function(value) { - var rand = floor(nativeRandom() * (++index + 1)); - result[index] = result[rand]; - result[rand] = value; - }); - return result; - } - - /** - * Gets the size of the `collection` by returning `collection.length` for arrays - * and array-like objects or the number of own enumerable properties for objects. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to inspect. - * @returns {Number} Returns `collection.length` or number of own enumerable properties. - * @example - * - * _.size([1, 2]); - * // => 2 - * - * _.size({ 'one': 1, 'two': 2, 'three': 3 }); - * // => 3 - * - * _.size('curly'); - * // => 5 - */ - function size(collection) { - var length = collection ? collection.length : 0; - return typeof length == 'number' ? length : keys(collection).length; - } - - /** - * Checks if the `callback` returns a truthy value for **any** element of a - * `collection`. The function returns as soon as it finds passing value, and - * does not iterate over the entire `collection`. The `callback` is bound to - * `thisArg` and invoked with three arguments; (value, index|key, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias any - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Boolean} Returns `true` if any element passes the callback check, - * else `false`. - * @example - * - * _.some([null, 0, 'yes', false], Boolean); - * // => true - * - * var food = [ - * { 'name': 'apple', 'organic': false, 'type': 'fruit' }, - * { 'name': 'carrot', 'organic': true, 'type': 'vegetable' } - * ]; - * - * // using "_.pluck" callback shorthand - * _.some(food, 'organic'); - * // => true - * - * // using "_.where" callback shorthand - * _.some(food, { 'type': 'meat' }); - * // => false - */ - function some(collection, callback, thisArg) { - var result; - callback = createCallback(callback, thisArg); - - if (isArray(collection)) { - var index = -1, - length = collection.length; - - while (++index < length) { - if ((result = callback(collection[index], index, collection))) { - break; - } - } - } else { - each(collection, function(value, index, collection) { - return !(result = callback(value, index, collection)); - }); - } - return !!result; - } - - /** - * Creates an array of elements, sorted in ascending order by the results of - * running each element in the `collection` through the `callback`. This method - * performs a stable sort, that is, it will preserve the original sort order of - * equal elements. The `callback` is bound to `thisArg` and invoked with three - * arguments; (value, index|key, collection). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a new array of sorted elements. - * @example - * - * _.sortBy([1, 2, 3], function(num) { return Math.sin(num); }); - * // => [3, 1, 2] - * - * _.sortBy([1, 2, 3], function(num) { return this.sin(num); }, Math); - * // => [3, 1, 2] - * - * // using "_.pluck" callback shorthand - * _.sortBy(['banana', 'strawberry', 'apple'], 'length'); - * // => ['apple', 'banana', 'strawberry'] - */ - function sortBy(collection, callback, thisArg) { - var index = -1, - length = collection ? collection.length : 0, - result = Array(typeof length == 'number' ? length : 0); - - callback = createCallback(callback, thisArg); - forEach(collection, function(value, key, collection) { - result[++index] = { - 'criteria': callback(value, key, collection), - 'index': index, - 'value': value - }; - }); - - length = result.length; - result.sort(compareAscending); - while (length--) { - result[length] = result[length].value; - } - return result; - } - - /** - * Converts the `collection` to an array. - * - * @static - * @memberOf _ - * @category Collections - * @param {Array|Object|String} collection The collection to convert. - * @returns {Array} Returns the new converted array. - * @example - * - * (function() { return _.toArray(arguments).slice(1); })(1, 2, 3, 4); - * // => [2, 3, 4] - */ - function toArray(collection) { - if (collection && typeof collection.length == 'number') { - return noCharByIndex && isString(collection) - ? collection.split('') - : slice(collection); - } - return values(collection); - } - - /** - * Examines each element in a `collection`, returning an array of all elements - * that have the given `properties`. When checking `properties`, this method - * performs a deep comparison between values to determine if they are equivalent - * to each other. - * - * @static - * @memberOf _ - * @type Function - * @category Collections - * @param {Array|Object|String} collection The collection to iterate over. - * @param {Object} properties The object of property values to filter by. - * @returns {Array} Returns a new array of elements that have the given `properties`. - * @example - * - * var stooges = [ - * { 'name': 'moe', 'age': 40 }, - * { 'name': 'larry', 'age': 50 } - * ]; - * - * _.where(stooges, { 'age': 40 }); - * // => [{ 'name': 'moe', 'age': 40 }] - */ - var where = filter; - - /*--------------------------------------------------------------------------*/ - - /** - * Creates an array with all falsey values of `array` removed. The values - * `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to compact. - * @returns {Array} Returns a new filtered array. - * @example - * - * _.compact([0, 1, false, 2, '', 3]); - * // => [1, 2, 3] - */ - function compact(array) { - var index = -1, - length = array ? array.length : 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (value) { - result.push(value); - } - } - return result; - } - - /** - * Creates an array of `array` elements not present in the other arrays - * using strict equality for comparisons, i.e. `===`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to process. - * @param {Array} [array1, array2, ...] Arrays to check. - * @returns {Array} Returns a new array of `array` elements not present in the - * other arrays. - * @example - * - * _.difference([1, 2, 3, 4, 5], [5, 2, 10]); - * // => [1, 3, 4] - */ - function difference(array) { - var index = -1, - length = array ? array.length : 0, - flattened = concat.apply(arrayRef, arguments), - contains = cachedContains(flattened, length), - result = []; - - while (++index < length) { - var value = array[index]; - if (!contains(value)) { - result.push(value); - } - } - return result; - } - - /** - * Gets the first element of the `array`. If a number `n` is passed, the first - * `n` elements of the `array` are returned. If a `callback` function is passed, - * the first elements the `callback` returns truthy for are returned. The `callback` - * is bound to `thisArg` and invoked with three arguments; (value, index, array). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias head, take - * @category Arrays - * @param {Array} array The array to query. - * @param {Function|Object|Number|String} [callback|n] The function called - * per element or the number of elements to return. If a property name or - * object is passed, it will be used to create a "_.pluck" or "_.where" - * style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Mixed} Returns the first element(s) of `array`. - * @example - * - * _.first([1, 2, 3]); - * // => 1 - * - * _.first([1, 2, 3], 2); - * // => [1, 2] - * - * _.first([1, 2, 3], function(num) { - * return num < 3; - * }); - * // => [1, 2] - * - * var food = [ - * { 'name': 'banana', 'organic': true }, - * { 'name': 'beet', 'organic': false }, - * ]; - * - * // using "_.pluck" callback shorthand - * _.first(food, 'organic'); - * // => [{ 'name': 'banana', 'organic': true }] - * - * var food = [ - * { 'name': 'apple', 'type': 'fruit' }, - * { 'name': 'banana', 'type': 'fruit' }, - * { 'name': 'beet', 'type': 'vegetable' } - * ]; - * - * // using "_.where" callback shorthand - * _.first(food, { 'type': 'fruit' }); - * // => [{ 'name': 'apple', 'type': 'fruit' }, { 'name': 'banana', 'type': 'fruit' }] - */ - function first(array, callback, thisArg) { - if (array) { - var n = 0, - length = array.length; - - if (typeof callback != 'number' && callback != null) { - var index = -1; - callback = createCallback(callback, thisArg); - while (++index < length && callback(array[index], index, array)) { - n++; - } - } else { - n = callback; - if (n == null || thisArg) { - return array[0]; - } - } - return slice(array, 0, nativeMin(nativeMax(0, n), length)); - } - } - - /** - * Flattens a nested array (the nesting can be to any depth). If `shallow` is - * truthy, `array` will only be flattened a single level. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to compact. - * @param {Boolean} shallow A flag to indicate only flattening a single level. - * @returns {Array} Returns a new flattened array. - * @example - * - * _.flatten([1, [2], [3, [[4]]]]); - * // => [1, 2, 3, 4]; - * - * _.flatten([1, [2], [3, [[4]]]], true); - * // => [1, 2, 3, [[4]]]; - */ - function flatten(array, shallow) { - var index = -1, - length = array ? array.length : 0, - result = []; - - while (++index < length) { - var value = array[index]; - - // recursively flatten arrays (susceptible to call stack limits) - if (isArray(value)) { - push.apply(result, shallow ? value : flatten(value)); - } else { - result.push(value); - } - } - return result; - } - - /** - * Gets the index at which the first occurrence of `value` is found using - * strict equality for comparisons, i.e. `===`. If the `array` is already - * sorted, passing `true` for `fromIndex` will run a faster binary search. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to search. - * @param {Mixed} value The value to search for. - * @param {Boolean|Number} [fromIndex=0] The index to search from or `true` to - * perform a binary search on a sorted `array`. - * @returns {Number} Returns the index of the matched value or `-1`. - * @example - * - * _.indexOf([1, 2, 3, 1, 2, 3], 2); - * // => 1 - * - * _.indexOf([1, 2, 3, 1, 2, 3], 2, 3); - * // => 4 - * - * _.indexOf([1, 1, 2, 2, 3, 3], 2, true); - * // => 2 - */ - function indexOf(array, value, fromIndex) { - var index = -1, - length = array ? array.length : 0; - - if (typeof fromIndex == 'number') { - index = (fromIndex < 0 ? nativeMax(0, length + fromIndex) : fromIndex || 0) - 1; - } else if (fromIndex) { - index = sortedIndex(array, value); - return array[index] === value ? index : -1; - } - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; - } - - /** - * Gets all but the last element of `array`. If a number `n` is passed, the - * last `n` elements are excluded from the result. If a `callback` function - * is passed, the last elements the `callback` returns truthy for are excluded - * from the result. The `callback` is bound to `thisArg` and invoked with three - * arguments; (value, index, array). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to query. - * @param {Function|Object|Number|String} [callback|n=1] The function called - * per element or the number of elements to exclude. If a property name or - * object is passed, it will be used to create a "_.pluck" or "_.where" - * style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a slice of `array`. - * @example - * - * _.initial([1, 2, 3]); - * // => [1, 2] - * - * _.initial([1, 2, 3], 2); - * // => [1] - * - * _.initial([1, 2, 3], function(num) { - * return num > 1; - * }); - * // => [1] - * - * var food = [ - * { 'name': 'beet', 'organic': false }, - * { 'name': 'carrot', 'organic': true } - * ]; - * - * // using "_.pluck" callback shorthand - * _.initial(food, 'organic'); - * // => [{ 'name': 'beet', 'organic': false }] - * - * var food = [ - * { 'name': 'banana', 'type': 'fruit' }, - * { 'name': 'beet', 'type': 'vegetable' }, - * { 'name': 'carrot', 'type': 'vegetable' } - * ]; - * - * // using "_.where" callback shorthand - * _.initial(food, { 'type': 'vegetable' }); - * // => [{ 'name': 'banana', 'type': 'fruit' }] - */ - function initial(array, callback, thisArg) { - if (!array) { - return []; - } - var n = 0, - length = array.length; - - if (typeof callback != 'number' && callback != null) { - var index = length; - callback = createCallback(callback, thisArg); - while (index-- && callback(array[index], index, array)) { - n++; - } - } else { - n = (callback == null || thisArg) ? 1 : callback || n; - } - return slice(array, 0, nativeMin(nativeMax(0, length - n), length)); - } - - /** - * Computes the intersection of all the passed-in arrays using strict equality - * for comparisons, i.e. `===`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} [array1, array2, ...] Arrays to process. - * @returns {Array} Returns a new array of unique elements that are present - * in **all** of the arrays. - * @example - * - * _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]); - * // => [1, 2] - */ - function intersection(array) { - var args = arguments, - argsLength = args.length, - cache = { '0': {} }, - index = -1, - length = array ? array.length : 0, - isLarge = length >= 100, - result = [], - seen = result; - - outer: - while (++index < length) { - var value = array[index]; - if (isLarge) { - var key = value + ''; - var inited = hasOwnProperty.call(cache[0], key) - ? !(seen = cache[0][key]) - : (seen = cache[0][key] = []); - } - if (inited || indexOf(seen, value) < 0) { - if (isLarge) { - seen.push(value); - } - var argsIndex = argsLength; - while (--argsIndex) { - if (!(cache[argsIndex] || (cache[argsIndex] = cachedContains(args[argsIndex], 0, 100)))(value)) { - continue outer; - } - } - result.push(value); - } - } - return result; - } - - /** - * Gets the last element of the `array`. If a number `n` is passed, the last - * `n` elements of the `array` are returned. If a `callback` function is passed, - * the last elements the `callback` returns truthy for are returned. The `callback` - * is bound to `thisArg` and invoked with three arguments; (value, index, array). - * - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to query. - * @param {Function|Object|Number|String} [callback|n] The function called - * per element or the number of elements to return. If a property name or - * object is passed, it will be used to create a "_.pluck" or "_.where" - * style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Mixed} Returns the last element(s) of `array`. - * @example - * - * _.last([1, 2, 3]); - * // => 3 - * - * _.last([1, 2, 3], 2); - * // => [2, 3] - * - * _.last([1, 2, 3], function(num) { - * return num > 1; - * }); - * // => [2, 3] - * - * var food = [ - * { 'name': 'beet', 'organic': false }, - * { 'name': 'carrot', 'organic': true } - * ]; - * - * // using "_.pluck" callback shorthand - * _.last(food, 'organic'); - * // => [{ 'name': 'carrot', 'organic': true }] - * - * var food = [ - * { 'name': 'banana', 'type': 'fruit' }, - * { 'name': 'beet', 'type': 'vegetable' }, - * { 'name': 'carrot', 'type': 'vegetable' } - * ]; - * - * // using "_.where" callback shorthand - * _.last(food, { 'type': 'vegetable' }); - * // => [{ 'name': 'beet', 'type': 'vegetable' }, { 'name': 'carrot', 'type': 'vegetable' }] - */ - function last(array, callback, thisArg) { - if (array) { - var n = 0, - length = array.length; - - if (typeof callback != 'number' && callback != null) { - var index = length; - callback = createCallback(callback, thisArg); - while (index-- && callback(array[index], index, array)) { - n++; - } - } else { - n = callback; - if (n == null || thisArg) { - return array[length - 1]; - } - } - return slice(array, nativeMax(0, length - n)); - } - } - - /** - * Gets the index at which the last occurrence of `value` is found using strict - * equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used - * as the offset from the end of the collection. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to search. - * @param {Mixed} value The value to search for. - * @param {Number} [fromIndex=array.length-1] The index to search from. - * @returns {Number} Returns the index of the matched value or `-1`. - * @example - * - * _.lastIndexOf([1, 2, 3, 1, 2, 3], 2); - * // => 4 - * - * _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3); - * // => 1 - */ - function lastIndexOf(array, value, fromIndex) { - var index = array ? array.length : 0; - if (typeof fromIndex == 'number') { - index = (fromIndex < 0 ? nativeMax(0, index + fromIndex) : nativeMin(fromIndex, index - 1)) + 1; - } - while (index--) { - if (array[index] === value) { - return index; - } - } - return -1; - } - - /** - * Creates an object composed from arrays of `keys` and `values`. Pass either - * a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`, or - * two arrays, one of `keys` and one of corresponding `values`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} keys The array of keys. - * @param {Array} [values=[]] The array of values. - * @returns {Object} Returns an object composed of the given keys and - * corresponding values. - * @example - * - * _.object(['moe', 'larry'], [30, 40]); - * // => { 'moe': 30, 'larry': 40 } - */ - function object(keys, values) { - var index = -1, - length = keys ? keys.length : 0, - result = {}; - - while (++index < length) { - var key = keys[index]; - if (values) { - result[key] = values[index]; - } else { - result[key[0]] = key[1]; - } - } - return result; - } - - /** - * Creates an array of numbers (positive and/or negative) progressing from - * `start` up to but not including `end`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Number} [start=0] The start of the range. - * @param {Number} end The end of the range. - * @param {Number} [step=1] The value to increment or descrement by. - * @returns {Array} Returns a new range array. - * @example - * - * _.range(10); - * // => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - * - * _.range(1, 11); - * // => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] - * - * _.range(0, 30, 5); - * // => [0, 5, 10, 15, 20, 25] - * - * _.range(0, -10, -1); - * // => [0, -1, -2, -3, -4, -5, -6, -7, -8, -9] - * - * _.range(0); - * // => [] - */ - function range(start, end, step) { - start = +start || 0; - step = +step || 1; - - if (end == null) { - end = start; - start = 0; - } - // use `Array(length)` so V8 will avoid the slower "dictionary" mode - // http://youtu.be/XAqIpGU8ZZk#t=17m25s - var index = -1, - length = nativeMax(0, ceil((end - start) / step)), - result = Array(length); - - while (++index < length) { - result[index] = start; - start += step; - } - return result; - } - - /** - * The opposite of `_.initial`, this method gets all but the first value of `array`. - * If a number `n` is passed, the first `n` values are excluded from the result. - * If a `callback` function is passed, the first elements the `callback` returns - * truthy for are excluded from the result. The `callback` is bound to `thisArg` - * and invoked with three arguments; (value, index, array). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias drop, tail - * @category Arrays - * @param {Array} array The array to query. - * @param {Function|Object|Number|String} [callback|n=1] The function called - * per element or the number of elements to exclude. If a property name or - * object is passed, it will be used to create a "_.pluck" or "_.where" - * style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a slice of `array`. - * @example - * - * _.rest([1, 2, 3]); - * // => [2, 3] - * - * _.rest([1, 2, 3], 2); - * // => [3] - * - * _.rest([1, 2, 3], function(num) { - * return num < 3; - * }); - * // => [3] - * - * var food = [ - * { 'name': 'banana', 'organic': true }, - * { 'name': 'beet', 'organic': false }, - * ]; - * - * // using "_.pluck" callback shorthand - * _.rest(food, 'organic'); - * // => [{ 'name': 'beet', 'organic': false }] - * - * var food = [ - * { 'name': 'apple', 'type': 'fruit' }, - * { 'name': 'banana', 'type': 'fruit' }, - * { 'name': 'beet', 'type': 'vegetable' } - * ]; - * - * // using "_.where" callback shorthand - * _.rest(food, { 'type': 'fruit' }); - * // => [{ 'name': 'beet', 'type': 'vegetable' }] - */ - function rest(array, callback, thisArg) { - if (typeof callback != 'number' && callback != null) { - var n = 0, - index = -1, - length = array ? array.length : 0; - - callback = createCallback(callback, thisArg); - while (++index < length && callback(array[index], index, array)) { - n++; - } - } else { - n = (callback == null || thisArg) ? 1 : nativeMax(0, callback); - } - return slice(array, n); - } - - /** - * Uses a binary search to determine the smallest index at which the `value` - * should be inserted into `array` in order to maintain the sort order of the - * sorted `array`. If `callback` is passed, it will be executed for `value` and - * each element in `array` to compute their sort ranking. The `callback` is - * bound to `thisArg` and invoked with one argument; (value). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to iterate over. - * @param {Mixed} value The value to evaluate. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Number} Returns the index at which the value should be inserted - * into `array`. - * @example - * - * _.sortedIndex([20, 30, 50], 40); - * // => 2 - * - * // using "_.pluck" callback shorthand - * _.sortedIndex([{ 'x': 20 }, { 'x': 30 }, { 'x': 50 }], { 'x': 40 }, 'x'); - * // => 2 - * - * var dict = { - * 'wordToNumber': { 'twenty': 20, 'thirty': 30, 'fourty': 40, 'fifty': 50 } - * }; - * - * _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) { - * return dict.wordToNumber[word]; - * }); - * // => 2 - * - * _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) { - * return this.wordToNumber[word]; - * }, dict); - * // => 2 - */ - function sortedIndex(array, value, callback, thisArg) { - var low = 0, - high = array ? array.length : low; - - // explicitly reference `identity` for better inlining in Firefox - callback = callback ? createCallback(callback, thisArg, 1) : identity; - value = callback(value); - - while (low < high) { - var mid = (low + high) >>> 1; - callback(array[mid]) < value - ? low = mid + 1 - : high = mid; - } - return low; - } - - /** - * Computes the union of the passed-in arrays using strict equality for - * comparisons, i.e. `===`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} [array1, array2, ...] Arrays to process. - * @returns {Array} Returns a new array of unique values, in order, that are - * present in one or more of the arrays. - * @example - * - * _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]); - * // => [1, 2, 3, 101, 10] - */ - function union() { - return uniq(concat.apply(arrayRef, arguments)); - } - - /** - * Creates a duplicate-value-free version of the `array` using strict equality - * for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` - * for `isSorted` will run a faster algorithm. If `callback` is passed, each - * element of `array` is passed through a callback` before uniqueness is computed. - * The `callback` is bound to `thisArg` and invoked with three arguments; (value, index, array). - * - * If a property name is passed for `callback`, the created "_.pluck" style - * callback will return the property value of the given element. - * - * If an object is passed for `callback`, the created "_.where" style callback - * will return `true` for elements that have the propeties of the given object, - * else `false`. - * - * @static - * @memberOf _ - * @alias unique - * @category Arrays - * @param {Array} array The array to process. - * @param {Boolean} [isSorted=false] A flag to indicate that the `array` is already sorted. - * @param {Function|Object|String} [callback=identity] The function called per - * iteration. If a property name or object is passed, it will be used to create - * a "_.pluck" or "_.where" style callback, respectively. - * @param {Mixed} [thisArg] The `this` binding of `callback`. - * @returns {Array} Returns a duplicate-value-free array. - * @example - * - * _.uniq([1, 2, 1, 3, 1]); - * // => [1, 2, 3] - * - * _.uniq([1, 1, 2, 2, 3], true); - * // => [1, 2, 3] - * - * _.uniq([1, 2, 1.5, 3, 2.5], function(num) { return Math.floor(num); }); - * // => [1, 2, 3] - * - * _.uniq([1, 2, 1.5, 3, 2.5], function(num) { return this.floor(num); }, Math); - * // => [1, 2, 3] - * - * // using "_.pluck" callback shorthand - * _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); - * // => [{ 'x': 1 }, { 'x': 2 }] - */ - function uniq(array, isSorted, callback, thisArg) { - var index = -1, - length = array ? array.length : 0, - result = [], - seen = result; - - // juggle arguments - if (typeof isSorted == 'function') { - thisArg = callback; - callback = isSorted; - isSorted = false; - } - // init value cache for large arrays - var isLarge = !isSorted && length >= 75; - if (isLarge) { - var cache = {}; - } - if (callback) { - seen = []; - callback = createCallback(callback, thisArg); - } - while (++index < length) { - var value = array[index], - computed = callback ? callback(value, index, array) : value; - - if (isLarge) { - var key = computed + ''; - var inited = hasOwnProperty.call(cache, key) - ? !(seen = cache[key]) - : (seen = cache[key] = []); - } - if (isSorted - ? !index || seen[seen.length - 1] !== computed - : inited || indexOf(seen, computed) < 0 - ) { - if (callback || isLarge) { - seen.push(computed); - } - result.push(value); - } - } - return result; - } - - /** - * Creates an array with all occurrences of the passed values removed using - * strict equality for comparisons, i.e. `===`. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} array The array to filter. - * @param {Mixed} [value1, value2, ...] Values to remove. - * @returns {Array} Returns a new filtered array. - * @example - * - * _.without([1, 2, 1, 0, 3, 1, 4], 0, 1); - * // => [2, 3, 4] - */ - function without(array) { - var index = -1, - length = array ? array.length : 0, - contains = cachedContains(arguments, 1), - result = []; - - while (++index < length) { - var value = array[index]; - if (!contains(value)) { - result.push(value); - } - } - return result; - } - - /** - * Groups the elements of each array at their corresponding indexes. Useful for - * separate data sources that are coordinated through matching array indexes. - * For a matrix of nested arrays, `_.zip.apply(...)` can transpose the matrix - * in a similar fashion. - * - * @static - * @memberOf _ - * @category Arrays - * @param {Array} [array1, array2, ...] Arrays to process. - * @returns {Array} Returns a new array of grouped elements. - * @example - * - * _.zip(['moe', 'larry'], [30, 40], [true, false]); - * // => [['moe', 30, true], ['larry', 40, false]] - */ - function zip(array) { - var index = -1, - length = array ? max(pluck(arguments, 'length')) : 0, - result = Array(length); - - while (++index < length) { - result[index] = pluck(arguments, index); - } - return result; - } - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a function that is restricted to executing `func` only after it is - * called `n` times. The `func` is executed with the `this` binding of the - * created function. - * - * @static - * @memberOf _ - * @category Functions - * @param {Number} n The number of times the function must be called before - * it is executed. - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new restricted function. - * @example - * - * var renderNotes = _.after(notes.length, render); - * _.forEach(notes, function(note) { - * note.asyncSave({ 'success': renderNotes }); - * }); - * // `renderNotes` is run once, after all notes have saved - */ - function after(n, func) { - if (n < 1) { - return func(); - } - return function() { - if (--n < 1) { - return func.apply(this, arguments); - } - }; - } - - /** - * Creates a function that, when called, invokes `func` with the `this` - * binding of `thisArg` and prepends any additional `bind` arguments to those - * passed to the bound function. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to bind. - * @param {Mixed} [thisArg] The `this` binding of `func`. - * @param {Mixed} [arg1, arg2, ...] Arguments to be partially applied. - * @returns {Function} Returns the new bound function. - * @example - * - * var func = function(greeting) { - * return greeting + ' ' + this.name; - * }; - * - * func = _.bind(func, { 'name': 'moe' }, 'hi'); - * func(); - * // => 'hi moe' - */ - function bind(func, thisArg) { - // use `Function#bind` if it exists and is fast - // (in V8 `Function#bind` is slower except when partially applied) - return isBindFast || (nativeBind && arguments.length > 2) - ? nativeBind.call.apply(nativeBind, arguments) - : createBound(func, thisArg, slice(arguments, 2)); - } - - /** - * Binds methods on `object` to `object`, overwriting the existing method. - * Method names may be specified as individual arguments or as arrays of method - * names. If no method names are provided, all the function properties of `object` - * will be bound. - * - * @static - * @memberOf _ - * @category Functions - * @param {Object} object The object to bind and assign the bound methods to. - * @param {String} [methodName1, methodName2, ...] Method names on the object to bind. - * @returns {Object} Returns `object`. - * @example - * - * var view = { - * 'label': 'docs', - * 'onClick': function() { alert('clicked ' + this.label); } - * }; - * - * _.bindAll(view); - * jQuery('#docs').on('click', view.onClick); - * // => alerts 'clicked docs', when the button is clicked - */ - function bindAll(object) { - var funcs = concat.apply(arrayRef, arguments), - index = funcs.length > 1 ? 0 : (funcs = functions(object), -1), - length = funcs.length; - - while (++index < length) { - var key = funcs[index]; - object[key] = bind(object[key], object); - } - return object; - } - - /** - * Creates a function that, when called, invokes the method at `object[key]` - * and prepends any additional `bindKey` arguments to those passed to the bound - * function. This method differs from `_.bind` by allowing bound functions to - * reference methods that will be redefined or don't yet exist. - * See http://michaux.ca/articles/lazy-function-definition-pattern. - * - * @static - * @memberOf _ - * @category Functions - * @param {Object} object The object the method belongs to. - * @param {String} key The key of the method. - * @param {Mixed} [arg1, arg2, ...] Arguments to be partially applied. - * @returns {Function} Returns the new bound function. - * @example - * - * var object = { - * 'name': 'moe', - * 'greet': function(greeting) { - * return greeting + ' ' + this.name; - * } - * }; - * - * var func = _.bindKey(object, 'greet', 'hi'); - * func(); - * // => 'hi moe' - * - * object.greet = function(greeting) { - * return greeting + ', ' + this.name + '!'; - * }; - * - * func(); - * // => 'hi, moe!' - */ - function bindKey(object, key) { - return createBound(object, key, slice(arguments, 2)); - } - - /** - * Creates a function that is the composition of the passed functions, - * where each function consumes the return value of the function that follows. - * For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. - * Each function is executed with the `this` binding of the composed function. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} [func1, func2, ...] Functions to compose. - * @returns {Function} Returns the new composed function. - * @example - * - * var greet = function(name) { return 'hi ' + name; }; - * var exclaim = function(statement) { return statement + '!'; }; - * var welcome = _.compose(exclaim, greet); - * welcome('moe'); - * // => 'hi moe!' - */ - function compose() { - var funcs = arguments; - return function() { - var args = arguments, - length = funcs.length; - - while (length--) { - args = [funcs[length].apply(this, args)]; - } - return args[0]; - }; - } - - /** - * Creates a function that will delay the execution of `func` until after - * `wait` milliseconds have elapsed since the last time it was invoked. Pass - * `true` for `immediate` to cause debounce to invoke `func` on the leading, - * instead of the trailing, edge of the `wait` timeout. Subsequent calls to - * the debounced function will return the result of the last `func` call. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to debounce. - * @param {Number} wait The number of milliseconds to delay. - * @param {Boolean} immediate A flag to indicate execution is on the leading - * edge of the timeout. - * @returns {Function} Returns the new debounced function. - * @example - * - * var lazyLayout = _.debounce(calculateLayout, 300); - * jQuery(window).on('resize', lazyLayout); - */ - function debounce(func, wait, immediate) { - var args, - result, - thisArg, - timeoutId; - - function delayed() { - timeoutId = null; - if (!immediate) { - result = func.apply(thisArg, args); - } - } - return function() { - var isImmediate = immediate && !timeoutId; - args = arguments; - thisArg = this; - - clearTimeout(timeoutId); - timeoutId = setTimeout(delayed, wait); - - if (isImmediate) { - result = func.apply(thisArg, args); - } - return result; - }; - } - - /** - * Executes the `func` function after `wait` milliseconds. Additional arguments - * will be passed to `func` when it is invoked. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to delay. - * @param {Number} wait The number of milliseconds to delay execution. - * @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with. - * @returns {Number} Returns the `setTimeout` timeout id. - * @example - * - * var log = _.bind(console.log, console); - * _.delay(log, 1000, 'logged later'); - * // => 'logged later' (Appears after one second.) - */ - function delay(func, wait) { - var args = slice(arguments, 2); - return setTimeout(function() { func.apply(undefined, args); }, wait); - } - - /** - * Defers executing the `func` function until the current call stack has cleared. - * Additional arguments will be passed to `func` when it is invoked. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to defer. - * @param {Mixed} [arg1, arg2, ...] Arguments to invoke the function with. - * @returns {Number} Returns the `setTimeout` timeout id. - * @example - * - * _.defer(function() { alert('deferred'); }); - * // returns from the function before `alert` is called - */ - function defer(func) { - var args = slice(arguments, 1); - return setTimeout(function() { func.apply(undefined, args); }, 1); - } - // use `setImmediate` if it's available in Node.js - if (isV8 && freeModule && typeof setImmediate == 'function') { - defer = bind(setImmediate, window); - } - - /** - * Creates a function that memoizes the result of `func`. If `resolver` is - * passed, it will be used to determine the cache key for storing the result - * based on the arguments passed to the memoized function. By default, the first - * argument passed to the memoized function is used as the cache key. The `func` - * is executed with the `this` binding of the memoized function. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] A function used to resolve the cache key. - * @returns {Function} Returns the new memoizing function. - * @example - * - * var fibonacci = _.memoize(function(n) { - * return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2); - * }); - */ - function memoize(func, resolver) { - var cache = {}; - return function() { - var key = (resolver ? resolver.apply(this, arguments) : arguments[0]) + ''; - return hasOwnProperty.call(cache, key) - ? cache[key] - : (cache[key] = func.apply(this, arguments)); - }; - } - - /** - * Creates a function that is restricted to execute `func` once. Repeat calls to - * the function will return the value of the first call. The `func` is executed - * with the `this` binding of the created function. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new restricted function. - * @example - * - * var initialize = _.once(createApplication); - * initialize(); - * initialize(); - * // `initialize` executes `createApplication` once - */ - function once(func) { - var ran, - result; - - return function() { - if (ran) { - return result; - } - ran = true; - result = func.apply(this, arguments); - - // clear the `func` variable so the function may be garbage collected - func = null; - return result; - }; - } - - /** - * Creates a function that, when called, invokes `func` with any additional - * `partial` arguments prepended to those passed to the new function. This - * method is similar to `_.bind`, except it does **not** alter the `this` binding. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to partially apply arguments to. - * @param {Mixed} [arg1, arg2, ...] Arguments to be partially applied. - * @returns {Function} Returns the new partially applied function. - * @example - * - * var greet = function(greeting, name) { return greeting + ' ' + name; }; - * var hi = _.partial(greet, 'hi'); - * hi('moe'); - * // => 'hi moe' - */ - function partial(func) { - return createBound(func, slice(arguments, 1)); - } - - /** - * This method is similar to `_.partial`, except that `partial` arguments are - * appended to those passed to the new function. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to partially apply arguments to. - * @param {Mixed} [arg1, arg2, ...] Arguments to be partially applied. - * @returns {Function} Returns the new partially applied function. - * @example - * - * var defaultsDeep = _.partialRight(_.merge, _.defaults); - * - * var options = { - * 'variable': 'data', - * 'imports': { 'jq': $ } - * }; - * - * defaultsDeep(options, _.templateSettings); - * - * options.variable - * // => 'data' - * - * options.imports - * // => { '_': _, 'jq': $ } - */ - function partialRight(func) { - return createBound(func, slice(arguments, 1), null, indicatorObject); - } - - /** - * Creates a function that, when executed, will only call the `func` - * function at most once per every `wait` milliseconds. If the throttled - * function is invoked more than once during the `wait` timeout, `func` will - * also be called on the trailing edge of the timeout. Subsequent calls to the - * throttled function will return the result of the last `func` call. - * - * @static - * @memberOf _ - * @category Functions - * @param {Function} func The function to throttle. - * @param {Number} wait The number of milliseconds to throttle executions to. - * @returns {Function} Returns the new throttled function. - * @example - * - * var throttled = _.throttle(updatePosition, 100); - * jQuery(window).on('scroll', throttled); - */ - function throttle(func, wait) { - var args, - result, - thisArg, - timeoutId, - lastCalled = 0; - - function trailingCall() { - lastCalled = new Date; - timeoutId = null; - result = func.apply(thisArg, args); - } - return function() { - var now = new Date, - remaining = wait - (now - lastCalled); - - args = arguments; - thisArg = this; - - if (remaining <= 0) { - clearTimeout(timeoutId); - timeoutId = null; - lastCalled = now; - result = func.apply(thisArg, args); - } - else if (!timeoutId) { - timeoutId = setTimeout(trailingCall, remaining); - } - return result; - }; - } - - /** - * Creates a function that passes `value` to the `wrapper` function as its - * first argument. Additional arguments passed to the function are appended - * to those passed to the `wrapper` function. The `wrapper` is executed with - * the `this` binding of the created function. - * - * @static - * @memberOf _ - * @category Functions - * @param {Mixed} value The value to wrap. - * @param {Function} wrapper The wrapper function. - * @returns {Function} Returns the new function. - * @example - * - * var hello = function(name) { return 'hello ' + name; }; - * hello = _.wrap(hello, function(func) { - * return 'before, ' + func('moe') + ', after'; - * }); - * hello(); - * // => 'before, hello moe, after' - */ - function wrap(value, wrapper) { - return function() { - var args = [value]; - push.apply(args, arguments); - return wrapper.apply(this, args); - }; - } - - /*--------------------------------------------------------------------------*/ - - /** - * Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their - * corresponding HTML entities. - * - * @static - * @memberOf _ - * @category Utilities - * @param {String} string The string to escape. - * @returns {String} Returns the escaped string. - * @example - * - * _.escape('Moe, Larry & Curly'); - * // => 'Moe, Larry & Curly' - */ - function escape(string) { - return string == null ? '' : (string + '').replace(reUnescapedHtml, escapeHtmlChar); - } - - /** - * This function returns the first argument passed to it. - * - * @static - * @memberOf _ - * @category Utilities - * @param {Mixed} value Any value. - * @returns {Mixed} Returns `value`. - * @example - * - * var moe = { 'name': 'moe' }; - * moe === _.identity(moe); - * // => true - */ - function identity(value) { - return value; - } - - /** - * Adds functions properties of `object` to the `lodash` function and chainable - * wrapper. - * - * @static - * @memberOf _ - * @category Utilities - * @param {Object} object The object of function properties to add to `lodash`. - * @example - * - * _.mixin({ - * 'capitalize': function(string) { - * return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase(); - * } - * }); - * - * _.capitalize('moe'); - * // => 'Moe' - * - * _('moe').capitalize(); - * // => 'Moe' - */ - function mixin(object) { - forEach(functions(object), function(methodName) { - var func = lodash[methodName] = object[methodName]; - - lodash.prototype[methodName] = function() { - var args = [this.__wrapped__]; - push.apply(args, arguments); - return new lodash(func.apply(lodash, args)); - }; - }); - } - - /** - * Reverts the '_' variable to its previous value and returns a reference to - * the `lodash` function. - * - * @static - * @memberOf _ - * @category Utilities - * @returns {Function} Returns the `lodash` function. - * @example - * - * var lodash = _.noConflict(); - */ - function noConflict() { - window._ = oldDash; - return this; - } - - /** - * Produces a random number between `min` and `max` (inclusive). If only one - * argument is passed, a number between `0` and the given number will be returned. - * - * @static - * @memberOf _ - * @category Utilities - * @param {Number} [min=0] The minimum possible value. - * @param {Number} [max=1] The maximum possible value. - * @returns {Number} Returns a random number. - * @example - * - * _.random(0, 5); - * // => a number between 0 and 5 - * - * _.random(5); - * // => also a number between 0 and 5 - */ - function random(min, max) { - if (min == null && max == null) { - max = 1; - } - min = +min || 0; - if (max == null) { - max = min; - min = 0; - } - return min + floor(nativeRandom() * ((+max || 0) - min + 1)); - } - - /** - * Resolves the value of `property` on `object`. If `property` is a function, - * it will be invoked and its result returned, else the property value is - * returned. If `object` is falsey, then `null` is returned. - * - * @static - * @memberOf _ - * @category Utilities - * @param {Object} object The object to inspect. - * @param {String} property The property to get the value of. - * @returns {Mixed} Returns the resolved value. - * @example - * - * var object = { - * 'cheese': 'crumpets', - * 'stuff': function() { - * return 'nonsense'; - * } - * }; - * - * _.result(object, 'cheese'); - * // => 'crumpets' - * - * _.result(object, 'stuff'); - * // => 'nonsense' - */ - function result(object, property) { - var value = object ? object[property] : undefined; - return isFunction(value) ? object[property]() : value; - } - - /** - * A micro-templating method that handles arbitrary delimiters, preserves - * whitespace, and correctly escapes quotes within interpolated code. - * - * Note: In the development build, `_.template` utilizes sourceURLs for easier - * debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl - * - * Note: Lo-Dash may be used in Chrome extensions by either creating a `lodash csp` - * build and using precompiled templates, or loading Lo-Dash in a sandbox. - * - * For more information on precompiling templates see: - * http://lodash.com/#custom-builds - * - * For more information on Chrome extension sandboxes see: - * http://developer.chrome.com/stable/extensions/sandboxingEval.html - * - * @static - * @memberOf _ - * @category Utilities - * @param {String} text The template text. - * @param {Obect} data The data object used to populate the text. - * @param {Object} options The options object. - * escape - The "escape" delimiter regexp. - * evaluate - The "evaluate" delimiter regexp. - * interpolate - The "interpolate" delimiter regexp. - * sourceURL - The sourceURL of the template's compiled source. - * variable - The data object variable name. - * - * @returns {Function|String} Returns a compiled function when no `data` object - * is given, else it returns the interpolated text. - * @example - * - * // using a compiled template - * var compiled = _.template('hello <%= name %>'); - * compiled({ 'name': 'moe' }); - * // => 'hello moe' - * - * var list = '<% _.forEach(people, function(name) { %>
  • <%= name %>
  • <% }); %>'; - * _.template(list, { 'people': ['moe', 'larry'] }); - * // => '
  • moe
  • larry
  • ' - * - * // using the "escape" delimiter to escape HTML in data property values - * _.template('<%- value %>', { 'value': ' -``` - -## Usage - -### Basic named error - -```javascript -var CustomError = makeError('CustomError') - -// Parameters are forwarded to the super class (here Error). -throw new CustomError('a message') -``` - -### Advanced error class - -```javascript -function CustomError (customValue) { - CustomError.super.call(this, 'custom error message') - - this.customValue = customValue -} -makeError(CustomError) - -// Feel free to extend the prototype. -CustomError.prototype.myMethod = function CustomError$myMethod () { - console.log('CustomError.myMethod (%s, %s)', this.code, this.message) -} - -//----- - -try { - throw new CustomError(42) -} catch (error) { - error.myMethod() -} -``` - -### Specialized error - -```javascript -var SpecializedError = makeError('SpecializedError', CustomError); - -throw new SpecializedError(42); -``` - -### Inheritance - -> Best for ES6. - -```javascript -import {BaseError} from 'make-error' - -class CustomError extends BaseError { - constructor () { - super('custom error message') - } -} -``` - -## Related - -- [make-error-cause](https://www.npmjs.com/package/make-error-cause): Make your own error types, with a cause! - -## Contributions - -Contributions are *very* welcomed, either on the documentation or on -the code. - -You may: - -- report any [issue](https://github.com/JsCommunity/make-error/issues) - you've encountered; -- fork and create a pull request. - -## License - -ISC © [Julien Fontanet](http://julien.isonoe.net) diff --git a/node_modules/make-error/index.d.ts b/node_modules/make-error/index.d.ts deleted file mode 100644 index 5ff0864..0000000 --- a/node_modules/make-error/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Create a new error constructor instance. - */ -declare function makeError(name: string): makeError.Constructor; - -/** - * Set the constructor prototype to `BaseError`. - */ -declare function makeError(super_: { new (...args: any[]): T }): makeError.Constructor; - -/** - * Create a specialized error instance. - */ -declare function makeError(name: string | Function, super_: { new (...args: any[]): T }): makeError.Constructor; - -declare module makeError { - /** - * Use with ES6 inheritance. - */ - export class BaseError implements Error { - message: string; - name: string; - stack: string; - - constructor(message: string); - } - - export interface Constructor { - new (message: string): T - super_: any - prototype: T - } -} - -export = makeError; diff --git a/node_modules/make-error/index.js b/node_modules/make-error/index.js deleted file mode 100644 index 315ab8e..0000000 --- a/node_modules/make-error/index.js +++ /dev/null @@ -1,142 +0,0 @@ -// ISC @ Julien Fontanet - -'use strict' - -// =================================================================== - -var defineProperty = Object.defineProperty - -// ------------------------------------------------------------------- - -var captureStackTrace = Error.captureStackTrace -if (!captureStackTrace) { - captureStackTrace = function captureStackTrace (error) { - var container = new Error() - - defineProperty(error, 'stack', { - configurable: true, - get: function getStack () { - var stack = container.stack - - // Replace property with value for faster future accesses. - defineProperty(this, 'stack', { - value: stack - }) - - return stack - }, - set: function setStack (stack) { - defineProperty(error, 'stack', { - configurable: true, - value: stack, - writable: true - }) - } - }) - } -} - -// ------------------------------------------------------------------- - -function BaseError (message) { - if (message) { - defineProperty(this, 'message', { - configurable: true, - value: message, - writable: true - }) - } - - var cname = this.constructor.name - if ( - cname && - cname !== this.name - ) { - defineProperty(this, 'name', { - configurable: true, - value: cname, - writable: true - }) - } - - captureStackTrace(this, this.constructor) -} - -BaseError.prototype = Object.create(Error.prototype, { - // See: https://github.com/JsCommunity/make-error/issues/4 - constructor: { - configurable: true, - value: BaseError, - writable: true - } -}) - -// ------------------------------------------------------------------- - -// Sets the name of a function if possible (depends of the JS engine). -var setFunctionName = (function () { - function setFunctionName (fn, name) { - return defineProperty(fn, 'name', { - configurable: true, - value: name - }) - } - try { - var f = function () {} - setFunctionName(f, 'foo') - if (f.name === 'foo') { - return setFunctionName - } - } catch (_) {} -})() - -// ------------------------------------------------------------------- - -function makeError (constructor, super_) { - if (super_ == null || super_ === Error) { - super_ = BaseError - } else if (typeof super_ !== 'function') { - throw new TypeError('super_ should be a function') - } - - var name - if (typeof constructor === 'string') { - name = constructor - constructor = function () { super_.apply(this, arguments) } - - // If the name can be set, do it once and for all. - if (setFunctionName) { - setFunctionName(constructor, name) - name = null - } - } else if (typeof constructor !== 'function') { - throw new TypeError('constructor should be either a string or a function') - } - - // Also register the super constructor also as `constructor.super_` just - // like Node's `util.inherits()`. - constructor.super_ = constructor['super'] = super_ - - var properties = { - constructor: { - configurable: true, - value: constructor, - writable: true - } - } - - // If the name could not be set on the constructor, set it on the - // prototype. - if (name != null) { - properties.name = { - configurable: true, - value: name, - writable: true - } - } - constructor.prototype = Object.create(super_.prototype, properties) - - return constructor -} -exports = module.exports = makeError -exports.BaseError = BaseError diff --git a/node_modules/make-error/package.json b/node_modules/make-error/package.json deleted file mode 100644 index df5d968..0000000 --- a/node_modules/make-error/package.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "make-error@^1.2.0", - "scope": null, - "escapedName": "make-error", - "name": "make-error", - "rawSpec": "^1.2.0", - "spec": ">=1.2.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/make-error-cause" - ] - ], - "_from": "make-error@>=1.2.0 <2.0.0", - "_id": "make-error@1.2.1", - "_inCache": true, - "_location": "/make-error", - "_nodeVersion": "0.12.15", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/make-error-1.2.1.tgz_1473148018649_0.09818827407434583" - }, - "_npmUser": { - "name": "julien-f", - "email": "julien.fontanet@isonoe.net" - }, - "_npmVersion": "3.10.6", - "_phantomChildren": {}, - "_requested": { - "raw": "make-error@^1.2.0", - "scope": null, - "escapedName": "make-error", - "name": "make-error", - "rawSpec": "^1.2.0", - "spec": ">=1.2.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/make-error-cause" - ], - "_resolved": "https://registry.npmjs.org/make-error/-/make-error-1.2.1.tgz", - "_shasum": "9a6dfb4844423b9f145806728d05c6e935670e75", - "_shrinkwrap": null, - "_spec": "make-error@^1.2.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/make-error-cause", - "author": { - "name": "Julien Fontanet", - "email": "julien.fontanet@isonoe.net" - }, - "bugs": { - "url": "https://github.com/JsCommunity/make-error/issues" - }, - "dependencies": {}, - "description": "Make your own error types!", - "devDependencies": { - "browserify": "^13.0.0", - "chai": "^3.3.0", - "mocha": "^3.0.0", - "standard": "^8.0.0", - "testling": "^1.7.1", - "uglify-js": "^2.4.19" - }, - "directories": {}, - "dist": { - "shasum": "9a6dfb4844423b9f145806728d05c6e935670e75", - "tarball": "https://registry.npmjs.org/make-error/-/make-error-1.2.1.tgz" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "gitHead": "da5f271700a1df98e7d25034f7aef6cb2d35a691", - "homepage": "https://github.com/JsCommunity/make-error", - "keywords": [ - "custom", - "derive", - "Error", - "extend", - "inherit" - ], - "license": "ISC", - "maintainers": [ - { - "name": "julien-f", - "email": "julien.fontanet@isonoe.net" - }, - { - "name": "marsaud", - "email": "marsaud.fabrice@neuf.fr" - } - ], - "name": "make-error", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/JsCommunity/make-error.git" - }, - "scripts": { - "browserify": "mkdir -p dist && browserify -s makeError index.js | uglifyjs -c > dist/make-error.js", - "dev-test": "mocha --watch --reporter=min index.spec.js", - "test": "standard && mocha index.spec.js", - "test-browser": "testling -u" - }, - "testling": { - "harness": "mocha-bdd", - "files": "index.spec.js", - "browsers": [ - "ie/8..Latest", - "chrome/latest", - "firefox/latest" - ] - }, - "version": "1.2.1" -} diff --git a/node_modules/map-cache/LICENSE b/node_modules/map-cache/LICENSE deleted file mode 100644 index 1e49edf..0000000 --- a/node_modules/map-cache/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-2016, 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/map-cache/README.md b/node_modules/map-cache/README.md deleted file mode 100644 index 6260b29..0000000 --- a/node_modules/map-cache/README.md +++ /dev/null @@ -1,145 +0,0 @@ -# map-cache [![NPM version](https://img.shields.io/npm/v/map-cache.svg?style=flat)](https://www.npmjs.com/package/map-cache) [![NPM downloads](https://img.shields.io/npm/dm/map-cache.svg?style=flat)](https://npmjs.org/package/map-cache) [![Build Status](https://img.shields.io/travis/jonschlinkert/map-cache.svg?style=flat)](https://travis-ci.org/jonschlinkert/map-cache) - -Basic cache object for storing key-value pairs. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install map-cache --save -``` - -Based on MapCache in Lo-dash v3.0. [MIT License](https://github.com/lodash/lodash/blob/master/LICENSE.txt) - -## Usage - -```js -var MapCache = require('map-cache'); -var mapCache = new MapCache(); -``` - -## API - -### [MapCache](index.js#L28) - -Creates a cache object to store key/value pairs. - -**Example** - -```js -var cache = new MapCache(); -``` - -### [.set](index.js#L45) - -Adds `value` to `key` on the cache. - -**Params** - -* `key` **{String}**: The key of the value to cache. -* `value` **{any}**: The value to cache. -* `returns` **{Object}**: Returns the `Cache` object for chaining. - -**Example** - -```js -cache.set('foo', 'bar'); -``` - -### [.get](index.js#L65) - -Gets the cached value for `key`. - -**Params** - -* `key` **{String}**: The key of the value to get. -* `returns` **{any}**: Returns the cached value. - -**Example** - -```js -cache.get('foo'); -//=> 'bar' -``` - -### [.has](index.js#L82) - -Checks if a cached value for `key` exists. - -**Params** - -* `key` **{String}**: The key of the entry to check. -* `returns` **{Boolean}**: Returns `true` if an entry for `key` exists, else `false`. - -**Example** - -```js -cache.has('foo'); -//=> true -``` - -### [.del](index.js#L98) - -Removes `key` and its value from the cache. - -**Params** - -* `key` **{String}**: The key of the value to remove. -* `returns` **{Boolean}**: Returns `true` if the entry was removed successfully, else `false`. - -**Example** - -```js -cache.del('foo'); -``` - -## Related projects - -You might also be interested in these projects: - -* [cache-base](https://www.npmjs.com/package/cache-base): Basic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects. | [homepage](https://github.com/jonschlinkert/cache-base) -* [config-cache](https://www.npmjs.com/package/config-cache): General purpose JavaScript object storage methods. | [homepage](https://github.com/jonschlinkert/config-cache) -* [option-cache](https://www.npmjs.com/package/option-cache): Simple API for managing options in JavaScript applications. | [homepage](https://github.com/jonschlinkert/option-cache) - -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/map-cache/issues/new). - -## Building docs - -Generate readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install verb && npm run docs -``` - -Or, if [verb](https://github.com/verbose/verb) is installed globally: - -```sh -$ verb -``` - -## Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -## Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/map-cache/blob/master/LICENSE). - -*** - -_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 10, 2016._ \ No newline at end of file diff --git a/node_modules/map-cache/index.js b/node_modules/map-cache/index.js deleted file mode 100644 index f86842f..0000000 --- a/node_modules/map-cache/index.js +++ /dev/null @@ -1,100 +0,0 @@ -/*! - * map-cache - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var hasOwn = Object.prototype.hasOwnProperty; - -/** - * Expose `MapCache` - */ - -module.exports = MapCache; - -/** - * Creates a cache object to store key/value pairs. - * - * ```js - * var cache = new MapCache(); - * ``` - * - * @api public - */ - -function MapCache(data) { - this.__data__ = data || {}; -} - -/** - * Adds `value` to `key` on the cache. - * - * ```js - * cache.set('foo', 'bar'); - * ``` - * - * @param {String} `key` The key of the value to cache. - * @param {*} `value` The value to cache. - * @returns {Object} Returns the `Cache` object for chaining. - * @api public - */ - -MapCache.prototype.set = function mapSet(key, value) { - if (key !== '__proto__') { - this.__data__[key] = value; - } - return this; -}; - -/** - * Gets the cached value for `key`. - * - * ```js - * cache.get('foo'); - * //=> 'bar' - * ``` - * - * @param {String} `key` The key of the value to get. - * @returns {*} Returns the cached value. - * @api public - */ - -MapCache.prototype.get = function mapGet(key) { - return key === '__proto__' ? undefined : this.__data__[key]; -}; - -/** - * Checks if a cached value for `key` exists. - * - * ```js - * cache.has('foo'); - * //=> true - * ``` - * - * @param {String} `key` The key of the entry to check. - * @returns {Boolean} Returns `true` if an entry for `key` exists, else `false`. - * @api public - */ - -MapCache.prototype.has = function mapHas(key) { - return key !== '__proto__' && hasOwn.call(this.__data__, key); -}; - -/** - * Removes `key` and its value from the cache. - * - * ```js - * cache.del('foo'); - * ``` - * @title .del - * @param {String} `key` The key of the value to remove. - * @returns {Boolean} Returns `true` if the entry was removed successfully, else `false`. - * @api public - */ - -MapCache.prototype.del = function mapDelete(key) { - return this.has(key) && delete this.__data__[key]; -}; diff --git a/node_modules/map-cache/package.json b/node_modules/map-cache/package.json deleted file mode 100644 index 7b052ef..0000000 --- a/node_modules/map-cache/package.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "map-cache@^0.2.0", - "scope": null, - "escapedName": "map-cache", - "name": "map-cache", - "rawSpec": "^0.2.0", - "spec": ">=0.2.0 <0.3.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/parse-filepath" - ] - ], - "_from": "map-cache@>=0.2.0 <0.3.0", - "_id": "map-cache@0.2.2", - "_inCache": true, - "_location": "/map-cache", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/map-cache-0.2.2.tgz_1462877475232_0.17523240111768246" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.6.0", - "_phantomChildren": {}, - "_requested": { - "raw": "map-cache@^0.2.0", - "scope": null, - "escapedName": "map-cache", - "name": "map-cache", - "rawSpec": "^0.2.0", - "spec": ">=0.2.0 <0.3.0", - "type": "range" - }, - "_requiredBy": [ - "/parse-filepath" - ], - "_resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "_shasum": "c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf", - "_shrinkwrap": null, - "_spec": "map-cache@^0.2.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/parse-filepath", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/map-cache/issues" - }, - "dependencies": {}, - "description": "Basic cache object for storing key-value pairs.", - "devDependencies": { - "gulp-format-md": "^0.1.9", - "should": "^8.3.1" - }, - "directories": {}, - "dist": { - "shasum": "c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf", - "tarball": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "f36c7567cb85b50824db25a2a588c5f7b858823b", - "homepage": "https://github.com/jonschlinkert/map-cache", - "keywords": [ - "cache", - "get", - "has", - "object", - "set", - "storage", - "store" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "map-cache", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/map-cache.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "run": true, - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "config-cache", - "option-cache", - "cache-base" - ] - }, - "reflinks": [ - "verb" - ], - "lint": { - "reflinks": true - } - }, - "version": "0.2.2" -} diff --git a/node_modules/map-obj/index.js b/node_modules/map-obj/index.js deleted file mode 100644 index 8b7b4d6..0000000 --- a/node_modules/map-obj/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; -module.exports = function (obj, cb) { - var ret = {}; - var keys = Object.keys(obj); - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var res = cb(key, obj[key], obj); - ret[res[0]] = res[1]; - } - - return ret; -}; diff --git a/node_modules/map-obj/license b/node_modules/map-obj/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/map-obj/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/map-obj/package.json b/node_modules/map-obj/package.json deleted file mode 100644 index 1cbe6a1..0000000 --- a/node_modules/map-obj/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "map-obj@^1.0.1", - "scope": null, - "escapedName": "map-obj", - "name": "map-obj", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/meow" - ] - ], - "_from": "map-obj@>=1.0.1 <2.0.0", - "_id": "map-obj@1.0.1", - "_inCache": true, - "_location": "/map-obj", - "_nodeVersion": "0.12.2", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.7.4", - "_phantomChildren": {}, - "_requested": { - "raw": "map-obj@^1.0.1", - "scope": null, - "escapedName": "map-obj", - "name": "map-obj", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/camelcase-keys", - "/meow" - ], - "_resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "_shasum": "d933ceb9205d82bdcf4886f6742bdc2b4dea146d", - "_shrinkwrap": null, - "_spec": "map-obj@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/meow", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/map-obj/issues" - }, - "dependencies": {}, - "description": "Map object keys and values into a new object", - "devDependencies": { - "ava": "0.0.4" - }, - "directories": {}, - "dist": { - "shasum": "d933ceb9205d82bdcf4886f6742bdc2b4dea146d", - "tarball": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "a4f2d49ae6b5f7c0e55130b49ab0412298b797bc", - "homepage": "https://github.com/sindresorhus/map-obj", - "keywords": [ - "map", - "obj", - "object", - "key", - "keys", - "value", - "values", - "val", - "iterate", - "iterator" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "map-obj", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/map-obj.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.0.1" -} diff --git a/node_modules/map-obj/readme.md b/node_modules/map-obj/readme.md deleted file mode 100644 index fee03d9..0000000 --- a/node_modules/map-obj/readme.md +++ /dev/null @@ -1,29 +0,0 @@ -# map-obj [![Build Status](https://travis-ci.org/sindresorhus/map-obj.svg?branch=master)](https://travis-ci.org/sindresorhus/map-obj) - -> Map object keys and values into a new object - - -## Install - -``` -$ npm install --save map-obj -``` - - -## Usage - -```js -var mapObj = require('map-obj'); - -var newObject = mapObj({foo: 'bar'}, function (key, value, object) { - // first element is the new key and second is the new value - // here we reverse the order - return [value, key]; -}); -//=> {bar: 'foo'} -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/map-stream/.npmignore b/node_modules/map-stream/.npmignore deleted file mode 100644 index 13abef4..0000000 --- a/node_modules/map-stream/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -node_modules/* -npm_debug.log diff --git a/node_modules/map-stream/.travis.yml b/node_modules/map-stream/.travis.yml deleted file mode 100644 index 895dbd3..0000000 --- a/node_modules/map-stream/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - 0.6 - - 0.8 diff --git a/node_modules/map-stream/LICENCE b/node_modules/map-stream/LICENCE deleted file mode 100644 index 171dd97..0000000 --- a/node_modules/map-stream/LICENCE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2011 Dominic Tarr - -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. \ No newline at end of file diff --git a/node_modules/map-stream/examples/pretty.js b/node_modules/map-stream/examples/pretty.js deleted file mode 100644 index ab07398..0000000 --- a/node_modules/map-stream/examples/pretty.js +++ /dev/null @@ -1,26 +0,0 @@ - -var inspect = require('util').inspect - -if(!module.parent) { - var map = require('..') //load map-stream - var es = require('event-stream') //load event-stream - es.pipe( //pipe joins streams together - process.openStdin(), //open stdin - es.split(), //split stream to break on newlines - map(function (data, callback) { //turn this async function into a stream - var j - try { - j = JSON.parse(data) //try to parse input into json - } catch (err) { - return callback(null, data) //if it fails just pass it anyway - } - callback(null, inspect(j)) //render it nicely - }), - process.stdout // pipe it to stdout ! - ) - } - -// run this -// -// curl -sS registry.npmjs.org/event-stream | node pretty.js -// diff --git a/node_modules/map-stream/index.js b/node_modules/map-stream/index.js deleted file mode 100644 index 09ae829..0000000 --- a/node_modules/map-stream/index.js +++ /dev/null @@ -1,145 +0,0 @@ -//filter will reemit the data if cb(err,pass) pass is truthy - -// reduce is more tricky -// maybe we want to group the reductions or emit progress updates occasionally -// the most basic reduce just emits one 'data' event after it has recieved 'end' - - -var Stream = require('stream').Stream - - -//create an event stream and apply function to each .write -//emitting each response as data -//unless it's an empty callback - -module.exports = function (mapper, opts) { - - var stream = new Stream() - , self = this - , inputs = 0 - , outputs = 0 - , ended = false - , paused = false - , destroyed = false - , lastWritten = 0 - , inNext = false - - this.opts = opts || {}; - var errorEventName = this.opts.failures ? 'failure' : 'error'; - - // Items that are not ready to be written yet (because they would come out of - // order) get stuck in a queue for later. - var writeQueue = {} - - stream.writable = true - stream.readable = true - - function queueData (data, number) { - var nextToWrite = lastWritten + 1 - - if (number === nextToWrite) { - // If it's next, and its not undefined write it - if (data !== undefined) { - stream.emit.apply(stream, ['data', data]) - } - lastWritten ++ - nextToWrite ++ - } else { - // Otherwise queue it for later. - writeQueue[number] = data - } - - // If the next value is in the queue, write it - if (writeQueue.hasOwnProperty(nextToWrite)) { - var dataToWrite = writeQueue[nextToWrite] - delete writeQueue[nextToWrite] - return queueData(dataToWrite, nextToWrite) - } - - outputs ++ - if(inputs === outputs) { - if(paused) paused = false, stream.emit('drain') //written all the incoming events - if(ended) end() - } - } - - function next (err, data, number) { - if(destroyed) return - inNext = true - - if (!err || self.opts.failures) { - queueData(data, number) - } - - if (err) { - stream.emit.apply(stream, [ errorEventName, err ]); - } - - inNext = false; - } - - // Wrap the mapper function by calling its callback with the order number of - // the item in the stream. - function wrappedMapper (input, number, callback) { - return mapper.call(null, input, function(err, data){ - callback(err, data, number) - }) - } - - stream.write = function (data) { - if(ended) throw new Error('map stream is not writable') - inNext = false - inputs ++ - - try { - //catch sync errors and handle them like async errors - var written = wrappedMapper(data, inputs, next) - paused = (written === false) - return !paused - } catch (err) { - //if the callback has been called syncronously, and the error - //has occured in an listener, throw it again. - if(inNext) - throw err - next(err) - return !paused - } - } - - function end (data) { - //if end was called with args, write it, - ended = true //write will emit 'end' if ended is true - stream.writable = false - if(data !== undefined) { - return queueData(data, inputs) - } else if (inputs == outputs) { //wait for processing - stream.readable = false, stream.emit('end'), stream.destroy() - } - } - - stream.end = function (data) { - if(ended) return - end() - } - - stream.destroy = function () { - ended = destroyed = true - stream.writable = stream.readable = paused = false - process.nextTick(function () { - stream.emit('close') - }) - } - stream.pause = function () { - paused = true - } - - stream.resume = function () { - paused = false - } - - return stream -} - - - - diff --git a/node_modules/map-stream/package.json b/node_modules/map-stream/package.json deleted file mode 100644 index 1fa7de7..0000000 --- a/node_modules/map-stream/package.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "map-stream@^0.1.0", - "scope": null, - "escapedName": "map-stream", - "name": "map-stream", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui" - ] - ], - "_from": "map-stream@>=0.1.0 <0.2.0", - "_id": "map-stream@0.1.0", - "_inCache": true, - "_location": "/map-stream", - "_npmUser": { - "name": "dominictarr", - "email": "dominic.tarr@gmail.com" - }, - "_npmVersion": "1.3.21", - "_phantomChildren": {}, - "_requested": { - "raw": "map-stream@^0.1.0", - "scope": null, - "escapedName": "map-stream", - "name": "map-stream", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/semantic-ui" - ], - "_resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "_shasum": "e56aa94c4c8055a16404a0674b78f215f7c8e194", - "_shrinkwrap": null, - "_spec": "map-stream@^0.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui", - "author": { - "name": "Dominic Tarr", - "email": "dominic.tarr@gmail.com", - "url": "http://dominictarr.com" - }, - "bugs": { - "url": "https://github.com/dominictarr/map-stream/issues" - }, - "dependencies": {}, - "description": "construct pipes of streams of events", - "devDependencies": { - "asynct": "*", - "event-stream": "~2.1", - "from": "0.0.2", - "it-is": "1", - "stream-spec": "~0.2", - "ubelt": "~2.9" - }, - "directories": {}, - "dist": { - "shasum": "e56aa94c4c8055a16404a0674b78f215f7c8e194", - "tarball": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz" - }, - "homepage": "http://github.com/dominictarr/map-stream", - "maintainers": [ - { - "name": "dominictarr", - "email": "dominic.tarr@gmail.com" - } - ], - "name": "map-stream", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/dominictarr/map-stream.git" - }, - "scripts": { - "test": "asynct test/" - }, - "version": "0.1.0" -} diff --git a/node_modules/map-stream/readme.markdown b/node_modules/map-stream/readme.markdown deleted file mode 100644 index 1897158..0000000 --- a/node_modules/map-stream/readme.markdown +++ /dev/null @@ -1,37 +0,0 @@ -# MapStream - -Refactored out of [event-stream](https://github.com/dominictarr/event-stream) - -##map (asyncFunction[, options]) - -Create a through stream from an asyncronous function. - -``` js -var map = require('map-stream') - -map(function (data, callback) { - //transform data - // ... - callback(null, data) -}) - -``` - -Each map MUST call the callback. It may callback with data, with an error or with no arguments, - - * `callback()` drop this data. - this makes the map work like `filter`, - note:`callback(null,null)` is not the same, and will emit `null` - - * `callback(null, newData)` turn data into newData - - * `callback(error)` emit an error for this item. - ->Note: if a callback is not called, `map` will think that it is still being processed, ->every call must be answered or the stream will not know when to end. -> ->Also, if the callback is called more than once, every call but the first will be ignored. - -##Options - - * `failures` - `boolean` continue mapping even if error occured. On error `map-stream` will emit `failure` event. (default: `false`) diff --git a/node_modules/map-stream/test/simple-map.asynct.js b/node_modules/map-stream/test/simple-map.asynct.js deleted file mode 100644 index 2b9a292..0000000 --- a/node_modules/map-stream/test/simple-map.asynct.js +++ /dev/null @@ -1,318 +0,0 @@ -'use strict'; - -var map = require('../') - , it = require('it-is') - , u = require('ubelt') - , spec = require('stream-spec') - , from = require('from') - , Stream = require('stream') - , es = require('event-stream') - -//REFACTOR THIS TEST TO USE es.readArray and es.writeArray - -function writeArray(array, stream) { - - array.forEach( function (j) { - stream.write(j) - }) - stream.end() - -} - -function readStream(stream, done) { - - var array = [] - stream.on('data', function (data) { - array.push(data) - }) - stream.on('error', done) - stream.on('end', function (data) { - done(null, array) - }) - -} - -//call sink on each write, -//and complete when finished. - -function pauseStream (prob, delay) { - var pauseIf = ( - 'number' == typeof prob - ? function () { - return Math.random() < prob - } - : 'function' == typeof prob - ? prob - : 0.1 - ) - var delayer = ( - !delay - ? process.nextTick - : 'number' == typeof delay - ? function (next) { setTimeout(next, delay) } - : delay - ) - - return es.through(function (data) { - if(!this.paused && pauseIf()) { - console.log('PAUSE STREAM PAUSING') - this.pause() - var self = this - delayer(function () { - console.log('PAUSE STREAM RESUMING') - self.resume() - }) - } - console.log("emit ('data', " + data + ')') - this.emit('data', data) - }) -} - -exports ['simple map applied to a stream'] = function (test) { - - var input = [1,2,3,7,5,3,1,9,0,2,4,6] - //create event stream from - - var doubler = map(function (data, cb) { - cb(null, data * 2) - }) - - spec(doubler).through().validateOnExit() - - //a map is only a middle man, so it is both readable and writable - - it(doubler).has({ - readable: true, - writable: true, - }) - - readStream(doubler, function (err, output) { - it(output).deepEqual(input.map(function (j) { - return j * 2 - })) -// process.nextTick(x.validate) - test.done() - }) - - writeArray(input, doubler) - -} - -exports ['stream comes back in the correct order'] = function (test) { - var input = [3, 2, 1] - - var delayer = map(function(data, cb){ - setTimeout(function () { - cb(null, data) - }, 100 * data) - }) - - readStream(delayer, function (err, output) { - it(output).deepEqual(input) - test.done() - }) - - writeArray(input, delayer) -} - -exports ['continues on error event with failures `true`'] = function (test) { - var input = [1, 2, 3] - - var delayer = map(function(data, cb){ - cb(new Error('Something gone wrong'), data) - }, { failures: true }) - - readStream(delayer, function (err, output) { - it(output).deepEqual(input) - test.done() - }) - - writeArray(input, delayer) -} - -exports['pipe two maps together'] = function (test) { - - var input = [1,2,3,7,5,3,1,9,0,2,4,6] - //create event stream from - function dd (data, cb) { - cb(null, data * 2) - } - var doubler1 = map(dd), doubler2 = map(dd) - - doubler1.pipe(doubler2) - - spec(doubler1).through().validateOnExit() - spec(doubler2).through().validateOnExit() - - readStream(doubler2, function (err, output) { - it(output).deepEqual(input.map(function (j) { - return j * 4 - })) - test.done() - }) - - writeArray(input, doubler1) - -} - -//next: -// -// test pause, resume and drian. -// - -// then make a pipe joiner: -// -// plumber (evStr1, evStr2, evStr3, evStr4, evStr5) -// -// will return a single stream that write goes to the first - -exports ['map will not call end until the callback'] = function (test) { - - var ticker = map(function (data, cb) { - process.nextTick(function () { - cb(null, data * 2) - }) - }) - - spec(ticker).through().validateOnExit() - - ticker.write('x') - ticker.end() - - ticker.on('end', function () { - test.done() - }) -} - -exports ['emit failures with opts.failures === `ture`'] = function (test) { - - var err = new Error('INTENSIONAL ERROR') - , mapper = - map(function () { - throw err - }, { failures: true }) - - mapper.on('failure', function (_err) { - it(_err).equal(err) - test.done() - }) - - mapper.write('hello') - -} - -exports ['emit error thrown'] = function (test) { - - var err = new Error('INTENSIONAL ERROR') - , mapper = - map(function () { - throw err - }) - - mapper.on('error', function (_err) { - it(_err).equal(err) - test.done() - }) - - mapper.write('hello') - -} - -exports ['emit error calledback'] = function (test) { - - var err = new Error('INTENSIONAL ERROR') - , mapper = - map(function (data, callback) { - callback(err) - }) - - mapper.on('error', function (_err) { - it(_err).equal(err) - test.done() - }) - - mapper.write('hello') - -} - -exports ['do not emit drain if not paused'] = function (test) { - - var maps = map(function (data, callback) { - u.delay(callback)(null, 1) - return true - }) - - spec(maps).through().pausable().validateOnExit() - - maps.on('drain', function () { - it(false).ok('should not emit drain unless the stream is paused') - }) - - it(maps.write('hello')).equal(true) - it(maps.write('hello')).equal(true) - it(maps.write('hello')).equal(true) - setTimeout(function () {maps.end()},10) - maps.on('end', test.done) -} - -exports ['emits drain if paused, when all '] = function (test) { - var active = 0 - var drained = false - var maps = map(function (data, callback) { - active ++ - u.delay(function () { - active -- - callback(null, 1) - })() - console.log('WRITE', false) - return false - }) - - spec(maps).through().validateOnExit() - - maps.on('drain', function () { - drained = true - it(active).equal(0, 'should emit drain when all maps are done') - }) - - it(maps.write('hello')).equal(false) - it(maps.write('hello')).equal(false) - it(maps.write('hello')).equal(false) - - process.nextTick(function () {maps.end()},10) - - maps.on('end', function () { - console.log('end') - it(drained).ok('shoud have emitted drain before end') - test.done() - }) - -} - -exports ['map applied to a stream with filtering'] = function (test) { - - var input = [1,2,3,7,5,3,1,9,0,2,4,6] - - var doubler = map(function (data, callback) { - if (data % 2) - callback(null, data * 2) - else - callback() - }) - - readStream(doubler, function (err, output) { - it(output).deepEqual(input.filter(function (j) { - return j % 2 - }).map(function (j) { - return j * 2 - })) - test.done() - }) - - spec(doubler).through().validateOnExit() - - writeArray(input, doubler) - -} - - diff --git a/node_modules/marked-terminal/README.md b/node_modules/marked-terminal/README.md deleted file mode 100644 index 8a6e06e..0000000 --- a/node_modules/marked-terminal/README.md +++ /dev/null @@ -1,129 +0,0 @@ -marked-terminal -=== - -> Custom Renderer for [marked](https://github.com/chjj/marked) -allowing for printing Markdown to the Terminal. Supports pretty tables, syntax -highlighting for javascript, and overriding all colors and styles. - -Could for instance be used to print usage information. - -## Install - -```sh -npm install marked marked-terminal -``` - -## Example - -```javascript -var marked = require('marked'); -var TerminalRenderer = require('marked-terminal'); - -marked.setOptions({ - // Define custom renderer - renderer: new TerminalRenderer() -}); - -// Show the parsed data -console.log(marked('# Hello \n This is **markdown** printed in the `terminal`')); -``` - -This will produce the following: - -![Screenshot of marked-terminal](./screenshot.png) - - -### Syntax Highlighting - -Also have support for syntax highlighting using [cardinal](https://github.com/thlorenz/cardinal). -You can override highlight defaults by passing in settings as the second argument for TerminalRenderer, -or you can create a `.cardinalrc` as defined in the [cardinal README](https://github.com/thlorenz/cardinal). - -Having the following markdown input: - -
    -```js
    -var foo = function(bar) {
    -  console.log(bar);
    -};
    -foo('Hello');
    -```
    -
    - -...we will convert it into terminal format: - -```javascript -// Show the parsed data -console.log(marked(exampleSource)); -``` - -This will produce the following: - -![Screenshot of marked-terminal](./screenshot2.png) - -## API - -Constructur: `new TerminalRenderer([options][, highlightOptions])` - -### `options` -Optional -Used to override default styling. - -Default values are: - -```javascript -var defaultOptions = { - // Colors - code: chalk.yellow, - blockquote: chalk.gray.italic, - html: chalk.gray, - heading: chalk.green.bold, - firstHeading: chalk.magenta.underline.bold, - hr: chalk.reset, - listitem: chalk.reset, - table: chalk.reset, - paragraph: chalk.reset, - strong: chalk.bold, - em: chalk.italic, - codespan: chalk.yellow, - del: chalk.dim.gray.strikethrough, - link: chalk.blue, - href: chalk.blue.underline, - - // Reflow and print-out width - width: 80, // only applicable when reflow is true - reflowText: false, - - // Should it prefix headers? - showSectionPrefix: true, - - // Whether or not to undo marked escaping - // of enitities (" -> " etc) - unescape: true, - - // Whether or not to show emojis - emoji: true, - - // Options passed to cli-table - tableOptions: {}, - - // The size of tabs in number of spaces or as tab characters - tab: 3 // examples: 4, 2, \t, \t\t -}; -``` - -#### Example of overriding defaults -```javascript -marked.setOptions({ - renderer: new TerminalRenderer({ - codespan: chalk.underline.magenta, - }) -}); -``` - -### `highlightOptions` -Options passed into [cardinal](https://github.com/thlorenz/cardinal). See -readme there to see what options to pass. - - -See [more examples](./example/) diff --git a/node_modules/marked-terminal/index.js b/node_modules/marked-terminal/index.js deleted file mode 100644 index 6d2c482..0000000 --- a/node_modules/marked-terminal/index.js +++ /dev/null @@ -1,344 +0,0 @@ -"use strict"; - -var chalk = require('chalk'); -var Table = require('cli-table'); -var assign = require('lodash.assign'); -var cardinal = require('cardinal'); -var emoji = require('node-emoji'); - -var TABLE_CELL_SPLIT = '^*||*^'; -var TABLE_ROW_WRAP = '*|*|*|*'; -var TABLE_ROW_WRAP_REGEXP = new RegExp(escapeRegExp(TABLE_ROW_WRAP), 'g'); - -var COLON_REPLACER = '*#COLON|*'; -var COLON_REPLACER_REGEXP = new RegExp(escapeRegExp(COLON_REPLACER), 'g'); - -var TAB_ALLOWED_CHARACTERS = ['\t']; - -// HARD_RETURN holds a character sequence used to indicate text has a -// hard (no-reflowing) line break. Previously \r and \r\n were turned -// into \n in marked's lexer- preprocessing step. So \r is safe to use -// to indicate a hard (non-reflowed) return. -var HARD_RETURN = '\r', - HARD_RETURN_RE = new RegExp(HARD_RETURN), - HARD_RETURN_GFM_RE = new RegExp(HARD_RETURN + '|
    '); - -var defaultOptions = { - code: chalk.yellow, - blockquote: chalk.gray.italic, - html: chalk.gray, - heading: chalk.green.bold, - firstHeading: chalk.magenta.underline.bold, - hr: chalk.reset, - listitem: chalk.reset, - table: chalk.reset, - paragraph: chalk.reset, - strong: chalk.bold, - em: chalk.italic, - codespan: chalk.yellow, - del: chalk.dim.gray.strikethrough, - link: chalk.blue, - href: chalk.blue.underline, - text: identity, - unescape: true, - emoji: true, - width: 80, - showSectionPrefix: true, - reflowText: false, - tab: 3, - tableOptions: {} -}; - -function Renderer(options, highlightOptions) { - this.o = assign({}, defaultOptions, options); - this.tab = sanitizeTab(this.o.tab, defaultOptions.tab); - this.tableSettings = this.o.tableOptions; - this.emoji = this.o.emoji ? insertEmojis : identity; - this.unescape = this.o.unescape ? unescapeEntities : identity; - this.highlightOptions = highlightOptions || {}; - - this.transform = compose(undoColon, this.unescape, this.emoji); -}; - -// Compute length of str not including ANSI escape codes. -// See http://en.wikipedia.org/wiki/ANSI_escape_code#graphics -function textLength(str) { - return str.replace(/\u001b\[(?:\d{1,3})(?:;\d{1,3})*m/g, "").length; -}; - -Renderer.prototype.textLength = textLength; - -function fixHardReturn(text, reflow) { - return reflow ? text.replace(HARD_RETURN, /\n/g) : text; -} - -Renderer.prototype.text = function (text) { - return this.o.text(text); -}; - -Renderer.prototype.code = function(code, lang, escaped) { - return '\n' + indentify(highlight(code, lang, this.o, this.highlightOptions), this.tab) + '\n\n'; -}; - -Renderer.prototype.blockquote = function(quote) { - return '\n' + this.o.blockquote(indentify(quote.trim(), this.tab)) + '\n\n'; -}; - -Renderer.prototype.html = function(html) { - return this.o.html(html); -}; - -Renderer.prototype.heading = function(text, level, raw) { - text = this.transform(text); - - var prefix = this.o.showSectionPrefix ? - (new Array(level + 1)).join('#')+' ' : ''; - text = prefix + text; - if (this.o.reflowText) { - text = reflowText(text, this.o.width, this.options.gfm); - } - if (level === 1) { - return this.o.firstHeading(text) + '\n'; - } - return this.o.heading(text) + '\n'; -}; - -Renderer.prototype.hr = function() { - return this.o.hr(hr('-', this.o.reflowText && this.o.width)) + '\n'; -}; - -Renderer.prototype.list = function(body, ordered) { - body = indentLines(this.o.listitem(body), this.tab); - if (!ordered) return body; - return changeToOrdered(body); -}; - -Renderer.prototype.listitem = function(text) { - var isNested = ~text.indexOf('\n'); - if (isNested) text = text.trim(); - return '\n * ' + this.transform(text); -}; - -Renderer.prototype.paragraph = function(text) { - var transform = compose(this.o.paragraph, this.transform); - text = transform(text); - if (this.o.reflowText) { - text = reflowText(text, this.o.width, this.options.gfm); - } - return text + '\n\n'; -}; - -Renderer.prototype.table = function(header, body) { - var table = new Table(assign({}, { - head: generateTableRow(header)[0] - }, this.tableSettings)); - - generateTableRow(body, this.transform).forEach(function (row) { - table.push(row); - }); - return this.o.table(table.toString()) + '\n\n'; -}; - -Renderer.prototype.tablerow = function(content) { - return TABLE_ROW_WRAP + content + TABLE_ROW_WRAP + '\n'; -}; - -Renderer.prototype.tablecell = function(content, flags) { - return content + TABLE_CELL_SPLIT; -}; - -// span level renderer -Renderer.prototype.strong = function(text) { - return this.o.strong(text); -}; - -Renderer.prototype.em = function(text) { - text = fixHardReturn(text, this.o.reflowText); - return this.o.em(text); -}; - -Renderer.prototype.codespan = function(text) { - text = fixHardReturn(text, this.o.reflowText); - return this.o.codespan(text.replace(/:/g, COLON_REPLACER)); -}; - -Renderer.prototype.br = function() { - return this.o.reflowText ? HARD_RETURN : '\n'; -}; - -Renderer.prototype.del = function(text) { - return this.o.del(text); -}; - -Renderer.prototype.link = function(href, title, text) { - if (this.options.sanitize) { - try { - var prot = decodeURIComponent(unescape(href)) - .replace(/[^\w:]/g, '') - .toLowerCase(); - } catch (e) { - return ''; - } - if (prot.indexOf('javascript:') === 0) { - return ''; - } - } - - var hasText = text && text !== href; - - var out = ''; - if (hasText) out += this.emoji(text) + ' ('; - out += this.o.href(href); - if (hasText) out += ')'; - - return this.o.link(out); -}; - -Renderer.prototype.image = function(href, title, text) { - var out = '!['+text; - if (title) out += ' – ' + title; - return out + '](' + href + ')\n'; -}; - -module.exports = Renderer; - -// Munge \n's and spaces in "text" so that the number of -// characters between \n's is less than or equal to "width". -function reflowText (text, width, gfm) { - // Hard break was inserted by Renderer.prototype.br or is - //
    when gfm is true - var splitRe = gfm ? HARD_RETURN_GFM_RE : HARD_RETURN_RE, - sections = text.split(splitRe), - reflowed = []; - - sections.forEach(function (section) { - var words = section.split(/[ \t\n]+/), - column = 0, - nextText = ''; - - words.forEach(function (word) { - var addOne = column != 0; - if ((column + textLength(word) + addOne) > width) { - nextText += '\n'; - column = 0; - } else if (addOne) { - nextText += " "; - column += 1; - } - nextText += word; - column += textLength(word); - }); - reflowed.push(nextText); - }); - return reflowed.join('\n'); -} - -function indentLines (text, tab) { - return text.replace(/\n/g, '\n' + tab) + '\n\n'; -} - -function changeToOrdered(text) { - var i = 1; - return text.split('\n').reduce(function (acc, line) { - if (!line) return '\n' + acc; - return acc + line.replace(/(\s*)\*/, '$1' + (i++) + '.') + '\n'; - }); -} - -function highlight(code, lang, opts, hightlightOpts) { - if (!chalk.enabled) return code; - - var style = opts.code; - - code = fixHardReturn(code, opts.reflowText); - if (lang !== 'javascript' && lang !== 'js') { - return style(code); - } - - try { - return cardinal.highlight(code, hightlightOpts); - } catch (e) { - return style(code); - } -} - -function insertEmojis(text) { - return text.replace(/:([A-Za-z0-9_\-\+]+?):/g, function (emojiString) { - var emojiSign = emoji.get(emojiString); - if (!emojiSign) return emojiString; - return emojiSign + ' '; - }); -} - -function hr(inputHrStr, length) { - length = length || process.stdout.columns; - return (new Array(length)).join(inputHrStr); -} - -function undoColon (str) { - return str.replace(COLON_REPLACER_REGEXP, ':'); -} - -function indentify(text, tab) { - if (!text) return text; - return tab + text.split('\n').join('\n' + tab); -} - -function generateTableRow(text, escape) { - if (!text) return []; - escape = escape || identity; - var lines = escape(text).split('\n'); - - var data = []; - lines.forEach(function (line) { - if (!line) return; - var parsed = line.replace(TABLE_ROW_WRAP_REGEXP, '').split(TABLE_CELL_SPLIT); - - data.push(parsed.splice(0, parsed.length - 1)); - }); - return data; -} - -function escapeRegExp(str) { - return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); -} - -function unescapeEntities(html) { - return html - .replace(/&/g, '&') - .replace(/</g, '<') - .replace(/>/g, '>') - .replace(/"/g, '"') - .replace(/'/g, "'"); -} - -function identity (str) { - return str; -} - -function compose () { - var funcs = arguments; - return function() { - var args = arguments; - for (var i = funcs.length; i-- > 0;) { - args = [funcs[i].apply(this, args)]; - } - return args[0]; - }; -} - -function isAllowedTabString (string) { - return TAB_ALLOWED_CHARACTERS.some(function (char) { - return string.match('^('+char+')+$'); - }); -} - -function sanitizeTab (tab, fallbackTab) { - if (typeof tab === 'number') { - return (new Array(tab + 1)).join(' '); - } else if (typeof tab === 'string' && isAllowedTabString(tab)) { - return tab; - } else { - return (new Array(fallbackTab + 1)).join(' '); - } -} diff --git a/node_modules/marked-terminal/node_modules/lodash.assign/LICENSE b/node_modules/marked-terminal/node_modules/lodash.assign/LICENSE deleted file mode 100644 index e0c69d5..0000000 --- a/node_modules/marked-terminal/node_modules/lodash.assign/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/marked-terminal/node_modules/lodash.assign/README.md b/node_modules/marked-terminal/node_modules/lodash.assign/README.md deleted file mode 100644 index 6bce2d6..0000000 --- a/node_modules/marked-terminal/node_modules/lodash.assign/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.assign v4.2.0 - -The [lodash](https://lodash.com/) method `_.assign` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.assign -``` - -In Node.js: -```js -var assign = require('lodash.assign'); -``` - -See the [documentation](https://lodash.com/docs#assign) or [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash.assign) for more details. diff --git a/node_modules/marked-terminal/node_modules/lodash.assign/index.js b/node_modules/marked-terminal/node_modules/lodash.assign/index.js deleted file mode 100644 index 8b007bc..0000000 --- a/node_modules/marked-terminal/node_modules/lodash.assign/index.js +++ /dev/null @@ -1,637 +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; -} - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -/** 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 nativeKeys = overArg(Object.keys, Object), - nativeMax = Math.max; - -/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */ -var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf'); - -/** - * 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; -} - -/** - * 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 `_.keys` 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 baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - 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; -} - -/** - * 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'; -} - -/** - * Assigns own enumerable string keyed properties of source objects to the - * destination object. Source objects are applied from left to right. - * Subsequent sources overwrite property assignments of previous sources. - * - * **Note:** This method mutates `object` and is loosely based on - * [`Object.assign`](https://mdn.io/Object/assign). - * - * @static - * @memberOf _ - * @since 0.10.0 - * @category Object - * @param {Object} object The destination object. - * @param {...Object} [sources] The source objects. - * @returns {Object} Returns `object`. - * @see _.assignIn - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * function Bar() { - * this.c = 3; - * } - * - * Foo.prototype.b = 2; - * Bar.prototype.d = 4; - * - * _.assign({ 'a': 0 }, new Foo, new Bar); - * // => { 'a': 1, 'c': 3 } - */ -var assign = createAssigner(function(object, source) { - if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - assignValue(object, key, source[key]); - } - } -}); - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @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; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} - -module.exports = assign; diff --git a/node_modules/marked-terminal/node_modules/lodash.assign/package.json b/node_modules/marked-terminal/node_modules/lodash.assign/package.json deleted file mode 100644 index dfd08ff..0000000 --- a/node_modules/marked-terminal/node_modules/lodash.assign/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "lodash.assign@^4.2.0", - "scope": null, - "escapedName": "lodash.assign", - "name": "lodash.assign", - "rawSpec": "^4.2.0", - "spec": ">=4.2.0 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/marked-terminal" - ] - ], - "_from": "lodash.assign@>=4.2.0 <5.0.0", - "_id": "lodash.assign@4.2.0", - "_inCache": true, - "_location": "/marked-terminal/lodash.assign", - "_nodeVersion": "4.4.7", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/lodash.assign-4.2.0.tgz_1471109795713_0.5842255132738501" - }, - "_npmUser": { - "name": "jdalton", - "email": "john.david.dalton@gmail.com" - }, - "_npmVersion": "2.15.10", - "_phantomChildren": {}, - "_requested": { - "raw": "lodash.assign@^4.2.0", - "scope": null, - "escapedName": "lodash.assign", - "name": "lodash.assign", - "rawSpec": "^4.2.0", - "spec": ">=4.2.0 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/marked-terminal" - ], - "_resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "_shasum": "0d99f3ccd7a6d261d19bdaeb9245005d285808e7", - "_shrinkwrap": null, - "_spec": "lodash.assign@^4.2.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/marked-terminal", - "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 `_.assign` exported as a module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "0d99f3ccd7a6d261d19bdaeb9245005d285808e7", - "tarball": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz" - }, - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "assign" - ], - "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.assign", - "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/marked-terminal/package.json b/node_modules/marked-terminal/package.json deleted file mode 100644 index 88a877b..0000000 --- a/node_modules/marked-terminal/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "marked-terminal@^1.6.2", - "scope": null, - "escapedName": "marked-terminal", - "name": "marked-terminal", - "rawSpec": "^1.6.2", - "spec": ">=1.6.2 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/cli-usage" - ] - ], - "_from": "marked-terminal@>=1.6.2 <2.0.0", - "_id": "marked-terminal@1.7.0", - "_inCache": true, - "_location": "/marked-terminal", - "_nodeVersion": "6.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/marked-terminal-1.7.0.tgz_1477416137016_0.9057166781276464" - }, - "_npmUser": { - "name": "mikaelb", - "email": "mikaelbre@gmail.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "marked-terminal@^1.6.2", - "scope": null, - "escapedName": "marked-terminal", - "name": "marked-terminal", - "rawSpec": "^1.6.2", - "spec": ">=1.6.2 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/cli-usage" - ], - "_resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-1.7.0.tgz", - "_shasum": "c8c460881c772c7604b64367007ee5f77f125904", - "_shrinkwrap": null, - "_spec": "marked-terminal@^1.6.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/cli-usage", - "author": { - "name": "Mikael Brevik" - }, - "bugs": { - "url": "https://github.com/mikaelbr/marked-terminal/issues" - }, - "dependencies": { - "cardinal": "^1.0.0", - "chalk": "^1.1.3", - "cli-table": "^0.3.1", - "lodash.assign": "^4.2.0", - "node-emoji": "^1.4.1" - }, - "description": "A custom render for marked to output to the Terminal", - "devDependencies": { - "marked": "^0.3.6", - "mocha": "^3.1.2" - }, - "directories": { - "example": "example" - }, - "dist": { - "shasum": "c8c460881c772c7604b64367007ee5f77f125904", - "tarball": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-1.7.0.tgz" - }, - "files": [ - "index.js" - ], - "gitHead": "c043e41193e26beb26d4adb6b46e1b983697a92f", - "homepage": "https://github.com/mikaelbr/marked-terminal", - "keywords": [ - "marked", - "render", - "terminal", - "markdown", - "markdown-to-terminal" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "mikaelb", - "email": "mikaelbre@gmail.com" - } - ], - "name": "marked-terminal", - "optionalDependencies": {}, - "peerDependencies": { - "marked": "^0.3.3" - }, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/mikaelbr/marked-terminal.git" - }, - "scripts": { - "test": "mocha tests/*.js --reporter spec" - }, - "version": "1.7.0" -} diff --git a/node_modules/marked/.npmignore b/node_modules/marked/.npmignore deleted file mode 100644 index 3fb773c..0000000 --- a/node_modules/marked/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -.git* -test/ diff --git a/node_modules/marked/.travis.yml b/node_modules/marked/.travis.yml deleted file mode 100644 index 60d00ce..0000000 --- a/node_modules/marked/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "0.10" - - "0.8" - - "0.6" diff --git a/node_modules/marked/Gulpfile.js b/node_modules/marked/Gulpfile.js deleted file mode 100644 index cebc16a..0000000 --- a/node_modules/marked/Gulpfile.js +++ /dev/null @@ -1,22 +0,0 @@ -var gulp = require('gulp'); -var uglify = require('gulp-uglify'); -var concat = require('gulp-concat'); - -var preserveFirstComment = function() { - var set = false; - - return function() { - if (set) return false; - set = true; - return true; - }; -}; - -gulp.task('uglify', function() { - gulp.src('lib/marked.js') - .pipe(uglify({preserveComments: preserveFirstComment()})) - .pipe(concat('marked.min.js')) - .pipe(gulp.dest('.')); -}); - -gulp.task('default', ['uglify']); diff --git a/node_modules/marked/LICENSE b/node_modules/marked/LICENSE deleted file mode 100644 index a7b812e..0000000 --- a/node_modules/marked/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2011-2014, Christopher Jeffrey (https://github.com/chjj/) - -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/marked/Makefile b/node_modules/marked/Makefile deleted file mode 100644 index d9349f0..0000000 --- a/node_modules/marked/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -all: - @cp lib/marked.js marked.js - @uglifyjs --comments '/\*[^\0]+?Copyright[^\0]+?\*/' -o marked.min.js lib/marked.js - -clean: - @rm marked.js - @rm marked.min.js - -bench: - @node test --bench - -.PHONY: clean all diff --git a/node_modules/marked/README.md b/node_modules/marked/README.md deleted file mode 100644 index efa71aa..0000000 --- a/node_modules/marked/README.md +++ /dev/null @@ -1,406 +0,0 @@ -# marked - -> A full-featured markdown parser and compiler, written in JavaScript. Built -> for speed. - -[![NPM version](https://badge.fury.io/js/marked.png)][badge] - -## Install - -``` bash -npm install marked --save -``` - -## Usage - -Minimal usage: - -```js -var marked = require('marked'); -console.log(marked('I am using __markdown__.')); -// Outputs:

    I am using markdown.

    -``` - -Example setting options with default values: - -```js -var marked = require('marked'); -marked.setOptions({ - renderer: new marked.Renderer(), - gfm: true, - tables: true, - breaks: false, - pedantic: false, - sanitize: true, - smartLists: true, - smartypants: false -}); - -console.log(marked('I am using __markdown__.')); -``` - -### Browser - -```html - - - - - Marked in the browser - - - -
    - - - -``` - -## marked(markdownString [,options] [,callback]) - -### markdownString - -Type: `string` - -String of markdown source to be compiled. - -### options - -Type: `object` - -Hash of options. Can also be set using the `marked.setOptions` method as seen -above. - -### callback - -Type: `function` - -Function called when the `markdownString` has been fully parsed when using -async highlighting. If the `options` argument is omitted, this can be used as -the second argument. - -## Options - -### highlight - -Type: `function` - -A function to highlight code blocks. The first example below uses async highlighting with -[node-pygmentize-bundled][pygmentize], and the second is a synchronous example using -[highlight.js][highlight]: - -```js -var marked = require('marked'); - -var markdownString = '```js\n console.log("hello"); \n```'; - -// Async highlighting with pygmentize-bundled -marked.setOptions({ - highlight: function (code, lang, callback) { - require('pygmentize-bundled')({ lang: lang, format: 'html' }, code, function (err, result) { - callback(err, result.toString()); - }); - } -}); - -// Using async version of marked -marked(markdownString, function (err, content) { - if (err) throw err; - console.log(content); -}); - -// Synchronous highlighting with highlight.js -marked.setOptions({ - highlight: function (code) { - return require('highlight.js').highlightAuto(code).value; - } -}); - -console.log(marked(markdownString)); -``` - -#### highlight arguments - -`code` - -Type: `string` - -The section of code to pass to the highlighter. - -`lang` - -Type: `string` - -The programming language specified in the code block. - -`callback` - -Type: `function` - -The callback function to call when using an async highlighter. - -### renderer - -Type: `object` -Default: `new Renderer()` - -An object containing functions to render tokens to HTML. - -#### Overriding renderer methods - -The renderer option allows you to render tokens in a custom manner. Here is an -example of overriding the default heading token rendering by adding an embedded anchor tag like on GitHub: - -```javascript -var marked = require('marked'); -var renderer = new marked.Renderer(); - -renderer.heading = function (text, level) { - var escapedText = text.toLowerCase().replace(/[^\w]+/g, '-'); - - return '' + - text + ''; -}, - -console.log(marked('# heading+', { renderer: renderer })); -``` -This code will output the following HTML: -```html -

    - - - - heading+ -

    -``` - -#### Block level renderer methods - -- code(*string* code, *string* language) -- blockquote(*string* quote) -- html(*string* html) -- heading(*string* text, *number* level) -- hr() -- list(*string* body, *boolean* ordered) -- listitem(*string* text) -- paragraph(*string* text) -- table(*string* header, *string* body) -- tablerow(*string* content) -- tablecell(*string* content, *object* flags) - -`flags` has the following properties: - -```js -{ - header: true || false, - align: 'center' || 'left' || 'right' -} -``` - -#### Inline level renderer methods - -- strong(*string* text) -- em(*string* text) -- codespan(*string* code) -- br() -- del(*string* text) -- link(*string* href, *string* title, *string* text) -- image(*string* href, *string* title, *string* text) - -### gfm - -Type: `boolean` -Default: `true` - -Enable [GitHub flavored markdown][gfm]. - -### tables - -Type: `boolean` -Default: `true` - -Enable GFM [tables][tables]. -This option requires the `gfm` option to be true. - -### breaks - -Type: `boolean` -Default: `false` - -Enable GFM [line breaks][breaks]. -This option requires the `gfm` option to be true. - -### pedantic - -Type: `boolean` -Default: `false` - -Conform to obscure parts of `markdown.pl` as much as possible. Don't fix any of -the original markdown bugs or poor behavior. - -### sanitize - -Type: `boolean` -Default: `false` - -Sanitize the output. Ignore any HTML that has been input. - -### smartLists - -Type: `boolean` -Default: `true` - -Use smarter list behavior than the original markdown. May eventually be -default with the old behavior moved into `pedantic`. - -### smartypants - -Type: `boolean` -Default: `false` - -Use "smart" typograhic punctuation for things like quotes and dashes. - -## Access to lexer and parser - -You also have direct access to the lexer and parser if you so desire. - -``` js -var tokens = marked.lexer(text, options); -console.log(marked.parser(tokens)); -``` - -``` js -var lexer = new marked.Lexer(options); -var tokens = lexer.lex(text); -console.log(tokens); -console.log(lexer.rules); -``` - -## CLI - -``` bash -$ marked -o hello.html -hello world -^D -$ cat hello.html -

    hello world

    -``` - -## Philosophy behind marked - -The point of marked was to create a markdown compiler where it was possible to -frequently parse huge chunks of markdown without having to worry about -caching the compiled output somehow...or blocking for an unnecesarily long time. - -marked is very concise and still implements all markdown features. It is also -now fully compatible with the client-side. - -marked more or less passes the official markdown test suite in its -entirety. This is important because a surprising number of markdown compilers -cannot pass more than a few tests. It was very difficult to get marked as -compliant as it is. It could have cut corners in several areas for the sake -of performance, but did not in order to be exactly what you expect in terms -of a markdown rendering. In fact, this is why marked could be considered at a -disadvantage in the benchmarks above. - -Along with implementing every markdown feature, marked also implements [GFM -features][gfmf]. - -## Benchmarks - -node v0.8.x - -``` bash -$ node test --bench -marked completed in 3411ms. -marked (gfm) completed in 3727ms. -marked (pedantic) completed in 3201ms. -robotskirt completed in 808ms. -showdown (reuse converter) completed in 11954ms. -showdown (new converter) completed in 17774ms. -markdown-js completed in 17191ms. -``` - -__Marked is now faster than Discount, which is written in C.__ - -For those feeling skeptical: These benchmarks run the entire markdown test suite 1000 times. The test suite tests every feature. It doesn't cater to specific aspects. - -### Pro level - -You also have direct access to the lexer and parser if you so desire. - -``` js -var tokens = marked.lexer(text, options); -console.log(marked.parser(tokens)); -``` - -``` js -var lexer = new marked.Lexer(options); -var tokens = lexer.lex(text); -console.log(tokens); -console.log(lexer.rules); -``` - -``` bash -$ node -> require('marked').lexer('> i am using marked.') -[ { type: 'blockquote_start' }, - { type: 'paragraph', - text: 'i am using marked.' }, - { type: 'blockquote_end' }, - links: {} ] -``` - -## Running Tests & Contributing - -If you want to submit a pull request, make sure your changes pass the test -suite. If you're adding a new feature, be sure to add your own test. - -The marked test suite is set up slightly strangely: `test/new` is for all tests -that are not part of the original markdown.pl test suite (this is where your -test should go if you make one). `test/original` is only for the original -markdown.pl tests. `test/tests` houses both types of tests after they have been -combined and moved/generated by running `node test --fix` or `marked --test ---fix`. - -In other words, if you have a test to add, add it to `test/new/` and then -regenerate the tests with `node test --fix`. Commit the result. If your test -uses a certain feature, for example, maybe it assumes GFM is *not* enabled, you -can add `.nogfm` to the filename. So, `my-test.text` becomes -`my-test.nogfm.text`. You can do this with any marked option. Say you want -line breaks and smartypants enabled, your filename should be: -`my-test.breaks.smartypants.text`. - -To run the tests: - -``` bash -cd marked/ -node test -``` - -### Contribution and License Agreement - -If you contribute code to this project, you are implicitly allowing your code -to be distributed under the MIT license. You are also implicitly verifying that -all code is your original work. `` - -## License - -Copyright (c) 2011-2014, Christopher Jeffrey. (MIT License) - -See LICENSE for more info. - -[gfm]: https://help.github.com/articles/github-flavored-markdown -[gfmf]: http://github.github.com/github-flavored-markdown/ -[pygmentize]: https://github.com/rvagg/node-pygmentize-bundled -[highlight]: https://github.com/isagalaev/highlight.js -[badge]: http://badge.fury.io/js/marked -[tables]: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#wiki-tables -[breaks]: https://help.github.com/articles/github-flavored-markdown#newlines diff --git a/node_modules/marked/bin/marked b/node_modules/marked/bin/marked deleted file mode 100755 index 64254fc..0000000 --- a/node_modules/marked/bin/marked +++ /dev/null @@ -1,187 +0,0 @@ -#!/usr/bin/env node - -/** - * Marked CLI - * Copyright (c) 2011-2013, Christopher Jeffrey (MIT License) - */ - -var fs = require('fs') - , util = require('util') - , marked = require('../'); - -/** - * Man Page - */ - -function help() { - var spawn = require('child_process').spawn; - - var options = { - cwd: process.cwd(), - env: process.env, - setsid: false, - customFds: [0, 1, 2] - }; - - spawn('man', - [__dirname + '/../man/marked.1'], - options); -} - -/** - * Main - */ - -function main(argv, callback) { - var files = [] - , options = {} - , input - , output - , arg - , tokens - , opt; - - function getarg() { - var arg = argv.shift(); - - if (arg.indexOf('--') === 0) { - // e.g. --opt - arg = arg.split('='); - if (arg.length > 1) { - // e.g. --opt=val - argv.unshift(arg.slice(1).join('=')); - } - arg = arg[0]; - } else if (arg[0] === '-') { - if (arg.length > 2) { - // e.g. -abc - argv = arg.substring(1).split('').map(function(ch) { - return '-' + ch; - }).concat(argv); - arg = argv.shift(); - } else { - // e.g. -a - } - } else { - // e.g. foo - } - - return arg; - } - - while (argv.length) { - arg = getarg(); - switch (arg) { - case '--test': - return require('../test').main(process.argv.slice()); - case '-o': - case '--output': - output = argv.shift(); - break; - case '-i': - case '--input': - input = argv.shift(); - break; - case '-t': - case '--tokens': - tokens = true; - break; - case '-h': - case '--help': - return help(); - default: - if (arg.indexOf('--') === 0) { - opt = camelize(arg.replace(/^--(no-)?/, '')); - if (!marked.defaults.hasOwnProperty(opt)) { - continue; - } - if (arg.indexOf('--no-') === 0) { - options[opt] = typeof marked.defaults[opt] !== 'boolean' - ? null - : false; - } else { - options[opt] = typeof marked.defaults[opt] !== 'boolean' - ? argv.shift() - : true; - } - } else { - files.push(arg); - } - break; - } - } - - function getData(callback) { - if (!input) { - if (files.length <= 2) { - return getStdin(callback); - } - input = files.pop(); - } - return fs.readFile(input, 'utf8', callback); - } - - return getData(function(err, data) { - if (err) return callback(err); - - data = tokens - ? JSON.stringify(marked.lexer(data, options), null, 2) - : marked(data, options); - - if (!output) { - process.stdout.write(data + '\n'); - return callback(); - } - - return fs.writeFile(output, data, callback); - }); -} - -/** - * Helpers - */ - -function getStdin(callback) { - var stdin = process.stdin - , buff = ''; - - stdin.setEncoding('utf8'); - - stdin.on('data', function(data) { - buff += data; - }); - - stdin.on('error', function(err) { - return callback(err); - }); - - stdin.on('end', function() { - return callback(null, buff); - }); - - try { - stdin.resume(); - } catch (e) { - callback(e); - } -} - -function camelize(text) { - return text.replace(/(\w)-(\w)/g, function(_, a, b) { - return a + b.toUpperCase(); - }); -} - -/** - * Expose / Entry Point - */ - -if (!module.parent) { - process.title = 'marked'; - main(process.argv.slice(), function(err, code) { - if (err) throw err; - return process.exit(code || 0); - }); -} else { - module.exports = main; -} diff --git a/node_modules/marked/bower.json b/node_modules/marked/bower.json deleted file mode 100644 index a2a8187..0000000 --- a/node_modules/marked/bower.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "marked", - "version": "0.3.4", - "homepage": "https://github.com/chjj/marked", - "authors": [ - "Christopher Jeffrey " - ], - "description": "A markdown parser built for speed", - "keywords": [ - "markdown", - "markup", - "html" - ], - "main": "lib/marked.js", - "license": "MIT", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "app/bower_components", - "test", - "tests" - ] -} diff --git a/node_modules/marked/component.json b/node_modules/marked/component.json deleted file mode 100644 index 1d67287..0000000 --- a/node_modules/marked/component.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "marked", - "version": "0.3.4", - "repo": "chjj/marked", - "description": "A markdown parser built for speed", - "keywords": ["markdown", "markup", "html"], - "scripts": ["lib/marked.js"], - "main": "lib/marked.js", - "license": "MIT" -} diff --git a/node_modules/marked/doc/broken.md b/node_modules/marked/doc/broken.md deleted file mode 100644 index 7bfa49e..0000000 --- a/node_modules/marked/doc/broken.md +++ /dev/null @@ -1,426 +0,0 @@ -# Markdown is broken - -I have a lot of scraps of markdown engine oddities that I've collected over the -years. What you see below is slightly messy, but it's what I've managed to -cobble together to illustrate the differences between markdown engines, and -why, if there ever is a markdown specification, it has to be absolutely -thorough. There are a lot more of these little differences I have documented -elsewhere. I know I will find them lingering on my disk one day, but until -then, I'll continue to add whatever strange nonsensical things I find. - -Some of these examples may only mention a particular engine compared to marked. -However, the examples with markdown.pl could easily be swapped out for -discount, upskirt, or markdown.js, and you would very easily see even more -inconsistencies. - -A lot of this was written when I was very unsatisfied with the inconsistencies -between markdown engines. Please excuse the frustration noticeable in my -writing. - -## Examples of markdown's "stupid" list parsing - -``` -$ markdown.pl - - * item1 - - * item2 - - text -^D -
      -
    • item1

      - -
        -
      • item2
      • -
      - -

      text

    • -

    -``` - - -``` -$ marked - * item1 - - * item2 - - text -^D -
      -
    • item1

      -
        -
      • item2
      • -
      -

      text

      -
    • -
    -``` - -Which looks correct to you? - -- - - - -``` -$ markdown.pl -* hello - > world -^D -

      -
    • hello

      - -
      -

      world

    • -

    - -``` - -``` -$ marked -* hello - > world -^D -
      -
    • hello
      -

      world

      -
      -
    • -
    -``` - -Again, which looks correct to you? - -- - - - -EXAMPLE: - -``` -$ markdown.pl -* hello - * world - * hi - code -^D -
      -
    • hello -
        -
      • world
      • -
      • hi - code
      • -
    • -
    -``` - -The code isn't a code block even though it's after the bullet margin. I know, -lets give it two more spaces, effectively making it 8 spaces past the bullet. - -``` -$ markdown.pl -* hello - * world - * hi - code -^D -
      -
    • hello -
        -
      • world
      • -
      • hi - code
      • -
    • -
    -``` - -And, it's still not a code block. Did you also notice that the 3rd item isn't -even its own list? Markdown screws that up too because of its indentation -unaware parsing. - -- - - - -Let's look at some more examples of markdown's list parsing: - -``` -$ markdown.pl - - * item1 - - * item2 - - text -^D -
      -
    • item1

      - -
        -
      • item2
      • -
      - -

      text

    • -

    -``` - -Misnested tags. - - -``` -$ marked - * item1 - - * item2 - - text -^D -
      -
    • item1

      -
        -
      • item2
      • -
      -

      text

      -
    • -
    -``` - -Which looks correct to you? - -- - - - -``` -$ markdown.pl -* hello - > world -^D -

      -
    • hello

      - -
      -

      world

    • -

    - -``` - -More misnested tags. - - -``` -$ marked -* hello - > world -^D -
      -
    • hello
      -

      world

      -
      -
    • -
    -``` - -Again, which looks correct to you? - -- - - - -# Why quality matters - Part 2 - -``` bash -$ markdown.pl -* hello - > world -^D -

      -
    • hello

      - -
      -

      world

    • -

    - -``` - -``` bash -$ sundown # upskirt -* hello - > world -^D -
      -
    • hello -> world
    • -
    -``` - -``` bash -$ marked -* hello - > world -^D -
    • hello

      world

    -``` - -Which looks correct to you? - -- - - - -See: https://github.com/evilstreak/markdown-js/issues/23 - -``` bash -$ markdown.pl # upskirt/markdown.js/discount -* hello - var a = 1; -* world -^D -
      -
    • hello -var a = 1;
    • -
    • world
    • -
    -``` - -``` bash -$ marked -* hello - var a = 1; -* world -^D -
    • hello -
      code>var a = 1;
    • -
    • world
    -``` - -Which looks more reasonable? Why shouldn't code blocks be able to appear in -list items in a sane way? - -- - - - -``` bash -$ markdown.js -
    hello
    - -hello -^D -

    <div>hello</div>

    - -

    <span>hello</span>

    -``` - -``` bash -$ marked -
    hello
    - -hello -^D -
    hello
    - - -

    hello -

    -``` - -- - - - -See: https://github.com/evilstreak/markdown-js/issues/27 - -``` bash -$ markdown.js -[![an image](/image)](/link) -^D -

    ![an image

    -``` - -``` bash -$ marked -[![an image](/image)](/link) -^D -

    an image -

    -``` - -- - - - -See: https://github.com/evilstreak/markdown-js/issues/24 - -``` bash -$ markdown.js -> a - -> b - -> c -^D -

    a

    bundefined> c

    -``` - -``` bash -$ marked -> a - -> b - -> c -^D -

    a - -

    -

    b - -

    -

    c -

    -``` - -- - - - -``` bash -$ markdown.pl -* hello - * world - how - - are - you - - * today -* hi -^D -
      -
    • hello

      - -
        -
      • world -how
      • -
      - -

      are -you

      - -
        -
      • today
      • -
    • -
    • hi
    • -
    -``` - -``` bash -$ marked -* hello - * world - how - - are - you - - * today -* hi -^D -
      -
    • hello

      -
        -
      • world -how

        -

        are -you

        -
      • -
      • today

        -
      • -
      -
    • -
    • hi
    • -
    -``` diff --git a/node_modules/marked/doc/todo.md b/node_modules/marked/doc/todo.md deleted file mode 100644 index 2e60b16..0000000 --- a/node_modules/marked/doc/todo.md +++ /dev/null @@ -1,2 +0,0 @@ -# Todo - diff --git a/node_modules/marked/index.js b/node_modules/marked/index.js deleted file mode 100644 index a12f905..0000000 --- a/node_modules/marked/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./lib/marked'); diff --git a/node_modules/marked/lib/marked.js b/node_modules/marked/lib/marked.js deleted file mode 100644 index 9f1584b..0000000 --- a/node_modules/marked/lib/marked.js +++ /dev/null @@ -1,1286 +0,0 @@ -/** - * marked - a markdown parser - * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) - * https://github.com/chjj/marked - */ - -;(function() { - -/** - * Block-Level Grammar - */ - -var block = { - newline: /^\n+/, - code: /^( {4}[^\n]+\n*)+/, - fences: noop, - hr: /^( *[-*_]){3,} *(?:\n+|$)/, - heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, - nptable: noop, - lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, - blockquote: /^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/, - list: /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/, - html: /^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/, - def: /^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/, - table: noop, - paragraph: /^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/, - text: /^[^\n]+/ -}; - -block.bullet = /(?:[*+-]|\d+\.)/; -block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/; -block.item = replace(block.item, 'gm') - (/bull/g, block.bullet) - (); - -block.list = replace(block.list) - (/bull/g, block.bullet) - ('hr', '\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))') - ('def', '\\n+(?=' + block.def.source + ')') - (); - -block.blockquote = replace(block.blockquote) - ('def', block.def) - (); - -block._tag = '(?!(?:' - + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code' - + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo' - + '|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b'; - -block.html = replace(block.html) - ('comment', //) - ('closed', /<(tag)[\s\S]+?<\/\1>/) - ('closing', /])*?>/) - (/tag/g, block._tag) - (); - -block.paragraph = replace(block.paragraph) - ('hr', block.hr) - ('heading', block.heading) - ('lheading', block.lheading) - ('blockquote', block.blockquote) - ('tag', '<' + block._tag) - ('def', block.def) - (); - -/** - * Normal Block Grammar - */ - -block.normal = merge({}, block); - -/** - * GFM Block Grammar - */ - -block.gfm = merge({}, block.normal, { - fences: /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/, - paragraph: /^/, - heading: /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/ -}); - -block.gfm.paragraph = replace(block.paragraph) - ('(?!', '(?!' - + block.gfm.fences.source.replace('\\1', '\\2') + '|' - + block.list.source.replace('\\1', '\\3') + '|') - (); - -/** - * GFM + Tables Block Grammar - */ - -block.tables = merge({}, block.gfm, { - nptable: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/, - table: /^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/ -}); - -/** - * Block Lexer - */ - -function Lexer(options) { - this.tokens = []; - this.tokens.links = {}; - this.options = options || marked.defaults; - this.rules = block.normal; - - if (this.options.gfm) { - if (this.options.tables) { - this.rules = block.tables; - } else { - this.rules = block.gfm; - } - } -} - -/** - * Expose Block Rules - */ - -Lexer.rules = block; - -/** - * Static Lex Method - */ - -Lexer.lex = function(src, options) { - var lexer = new Lexer(options); - return lexer.lex(src); -}; - -/** - * Preprocessing - */ - -Lexer.prototype.lex = function(src) { - src = src - .replace(/\r\n|\r/g, '\n') - .replace(/\t/g, ' ') - .replace(/\u00a0/g, ' ') - .replace(/\u2424/g, '\n'); - - return this.token(src, true); -}; - -/** - * Lexing - */ - -Lexer.prototype.token = function(src, top, bq) { - var src = src.replace(/^ +$/gm, '') - , next - , loose - , cap - , bull - , b - , item - , space - , i - , l; - - while (src) { - // newline - if (cap = this.rules.newline.exec(src)) { - src = src.substring(cap[0].length); - if (cap[0].length > 1) { - this.tokens.push({ - type: 'space' - }); - } - } - - // code - if (cap = this.rules.code.exec(src)) { - src = src.substring(cap[0].length); - cap = cap[0].replace(/^ {4}/gm, ''); - this.tokens.push({ - type: 'code', - text: !this.options.pedantic - ? cap.replace(/\n+$/, '') - : cap - }); - continue; - } - - // fences (gfm) - if (cap = this.rules.fences.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'code', - lang: cap[2], - text: cap[3] || '' - }); - continue; - } - - // heading - if (cap = this.rules.heading.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'heading', - depth: cap[1].length, - text: cap[2] - }); - continue; - } - - // table no leading pipe (gfm) - if (top && (cap = this.rules.nptable.exec(src))) { - src = src.substring(cap[0].length); - - item = { - type: 'table', - header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), - align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), - cells: cap[3].replace(/\n$/, '').split('\n') - }; - - for (i = 0; i < item.align.length; i++) { - if (/^ *-+: *$/.test(item.align[i])) { - item.align[i] = 'right'; - } else if (/^ *:-+: *$/.test(item.align[i])) { - item.align[i] = 'center'; - } else if (/^ *:-+ *$/.test(item.align[i])) { - item.align[i] = 'left'; - } else { - item.align[i] = null; - } - } - - for (i = 0; i < item.cells.length; i++) { - item.cells[i] = item.cells[i].split(/ *\| */); - } - - this.tokens.push(item); - - continue; - } - - // lheading - if (cap = this.rules.lheading.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'heading', - depth: cap[2] === '=' ? 1 : 2, - text: cap[1] - }); - continue; - } - - // hr - if (cap = this.rules.hr.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'hr' - }); - continue; - } - - // blockquote - if (cap = this.rules.blockquote.exec(src)) { - src = src.substring(cap[0].length); - - this.tokens.push({ - type: 'blockquote_start' - }); - - cap = cap[0].replace(/^ *> ?/gm, ''); - - // Pass `top` to keep the current - // "toplevel" state. This is exactly - // how markdown.pl works. - this.token(cap, top, true); - - this.tokens.push({ - type: 'blockquote_end' - }); - - continue; - } - - // list - if (cap = this.rules.list.exec(src)) { - src = src.substring(cap[0].length); - bull = cap[2]; - - this.tokens.push({ - type: 'list_start', - ordered: bull.length > 1 - }); - - // Get each top-level item. - cap = cap[0].match(this.rules.item); - - next = false; - l = cap.length; - i = 0; - - for (; i < l; i++) { - item = cap[i]; - - // Remove the list item's bullet - // so it is seen as the next token. - space = item.length; - item = item.replace(/^ *([*+-]|\d+\.) +/, ''); - - // Outdent whatever the - // list item contains. Hacky. - if (~item.indexOf('\n ')) { - space -= item.length; - item = !this.options.pedantic - ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '') - : item.replace(/^ {1,4}/gm, ''); - } - - // Determine whether the next list item belongs here. - // Backpedal if it does not belong in this list. - if (this.options.smartLists && i !== l - 1) { - b = block.bullet.exec(cap[i + 1])[0]; - if (bull !== b && !(bull.length > 1 && b.length > 1)) { - src = cap.slice(i + 1).join('\n') + src; - i = l - 1; - } - } - - // Determine whether item is loose or not. - // Use: /(^|\n)(?! )[^\n]+\n\n(?!\s*$)/ - // for discount behavior. - loose = next || /\n\n(?!\s*$)/.test(item); - if (i !== l - 1) { - next = item.charAt(item.length - 1) === '\n'; - if (!loose) loose = next; - } - - this.tokens.push({ - type: loose - ? 'loose_item_start' - : 'list_item_start' - }); - - // Recurse. - this.token(item, false, bq); - - this.tokens.push({ - type: 'list_item_end' - }); - } - - this.tokens.push({ - type: 'list_end' - }); - - continue; - } - - // html - if (cap = this.rules.html.exec(src)) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: this.options.sanitize - ? 'paragraph' - : 'html', - pre: !this.options.sanitizer - && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'), - text: cap[0] - }); - continue; - } - - // def - if ((!bq && top) && (cap = this.rules.def.exec(src))) { - src = src.substring(cap[0].length); - this.tokens.links[cap[1].toLowerCase()] = { - href: cap[2], - title: cap[3] - }; - continue; - } - - // table (gfm) - if (top && (cap = this.rules.table.exec(src))) { - src = src.substring(cap[0].length); - - item = { - type: 'table', - header: cap[1].replace(/^ *| *\| *$/g, '').split(/ *\| */), - align: cap[2].replace(/^ *|\| *$/g, '').split(/ *\| */), - cells: cap[3].replace(/(?: *\| *)?\n$/, '').split('\n') - }; - - for (i = 0; i < item.align.length; i++) { - if (/^ *-+: *$/.test(item.align[i])) { - item.align[i] = 'right'; - } else if (/^ *:-+: *$/.test(item.align[i])) { - item.align[i] = 'center'; - } else if (/^ *:-+ *$/.test(item.align[i])) { - item.align[i] = 'left'; - } else { - item.align[i] = null; - } - } - - for (i = 0; i < item.cells.length; i++) { - item.cells[i] = item.cells[i] - .replace(/^ *\| *| *\| *$/g, '') - .split(/ *\| */); - } - - this.tokens.push(item); - - continue; - } - - // top-level paragraph - if (top && (cap = this.rules.paragraph.exec(src))) { - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'paragraph', - text: cap[1].charAt(cap[1].length - 1) === '\n' - ? cap[1].slice(0, -1) - : cap[1] - }); - continue; - } - - // text - if (cap = this.rules.text.exec(src)) { - // Top-level should never reach here. - src = src.substring(cap[0].length); - this.tokens.push({ - type: 'text', - text: cap[0] - }); - continue; - } - - if (src) { - throw new - Error('Infinite loop on byte: ' + src.charCodeAt(0)); - } - } - - return this.tokens; -}; - -/** - * Inline-Level Grammar - */ - -var inline = { - escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, - autolink: /^<([^ >]+(@|:\/)[^ >]+)>/, - url: noop, - tag: /^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/, - link: /^!?\[(inside)\]\(href\)/, - reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, - nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/, - strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/, - em: /^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/, - code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, - br: /^ {2,}\n(?!\s*$)/, - del: noop, - text: /^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/; - -inline.link = replace(inline.link) - ('inside', inline._inside) - ('href', inline._href) - (); - -inline.reflink = replace(inline.reflink) - ('inside', inline._inside) - (); - -/** - * Normal Inline Grammar - */ - -inline.normal = merge({}, inline); - -/** - * Pedantic Inline Grammar - */ - -inline.pedantic = merge({}, inline.normal, { - strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/, - em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/ -}); - -/** - * GFM Inline Grammar - */ - -inline.gfm = merge({}, inline.normal, { - escape: replace(inline.escape)('])', '~|])')(), - url: /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, - del: /^~~(?=\S)([\s\S]*?\S)~~/, - text: replace(inline.text) - (']|', '~]|') - ('|', '|https?://|') - () -}); - -/** - * GFM + Line Breaks Inline Grammar - */ - -inline.breaks = merge({}, inline.gfm, { - br: replace(inline.br)('{2,}', '*')(), - text: replace(inline.gfm.text)('{2,}', '*')() -}); - -/** - * Inline Lexer & Compiler - */ - -function InlineLexer(links, options) { - this.options = options || marked.defaults; - this.links = links; - this.rules = inline.normal; - this.renderer = this.options.renderer || new Renderer; - this.renderer.options = this.options; - - if (!this.links) { - throw new - Error('Tokens array requires a `links` property.'); - } - - if (this.options.gfm) { - if (this.options.breaks) { - this.rules = inline.breaks; - } else { - this.rules = inline.gfm; - } - } else if (this.options.pedantic) { - this.rules = inline.pedantic; - } -} - -/** - * Expose Inline Rules - */ - -InlineLexer.rules = inline; - -/** - * Static Lexing/Compiling Method - */ - -InlineLexer.output = function(src, links, options) { - var inline = new InlineLexer(links, options); - return inline.output(src); -}; - -/** - * Lexing/Compiling - */ - -InlineLexer.prototype.output = function(src) { - var out = '' - , link - , text - , href - , cap; - - while (src) { - // escape - if (cap = this.rules.escape.exec(src)) { - src = src.substring(cap[0].length); - out += cap[1]; - continue; - } - - // autolink - if (cap = this.rules.autolink.exec(src)) { - src = src.substring(cap[0].length); - if (cap[2] === '@') { - text = cap[1].charAt(6) === ':' - ? this.mangle(cap[1].substring(7)) - : this.mangle(cap[1]); - href = this.mangle('mailto:') + text; - } else { - text = escape(cap[1]); - href = text; - } - out += this.renderer.link(href, null, text); - continue; - } - - // url (gfm) - if (!this.inLink && (cap = this.rules.url.exec(src))) { - src = src.substring(cap[0].length); - text = escape(cap[1]); - href = text; - out += this.renderer.link(href, null, text); - continue; - } - - // tag - if (cap = this.rules.tag.exec(src)) { - if (!this.inLink && /^/i.test(cap[0])) { - this.inLink = false; - } - src = src.substring(cap[0].length); - out += this.options.sanitize - ? this.options.sanitizer - ? this.options.sanitizer(cap[0]) - : escape(cap[0]) - : cap[0] - continue; - } - - // link - if (cap = this.rules.link.exec(src)) { - src = src.substring(cap[0].length); - this.inLink = true; - out += this.outputLink(cap, { - href: cap[2], - title: cap[3] - }); - this.inLink = false; - continue; - } - - // reflink, nolink - if ((cap = this.rules.reflink.exec(src)) - || (cap = this.rules.nolink.exec(src))) { - src = src.substring(cap[0].length); - link = (cap[2] || cap[1]).replace(/\s+/g, ' '); - link = this.links[link.toLowerCase()]; - if (!link || !link.href) { - out += cap[0].charAt(0); - src = cap[0].substring(1) + src; - continue; - } - this.inLink = true; - out += this.outputLink(cap, link); - this.inLink = false; - continue; - } - - // strong - if (cap = this.rules.strong.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.strong(this.output(cap[2] || cap[1])); - continue; - } - - // em - if (cap = this.rules.em.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.em(this.output(cap[2] || cap[1])); - continue; - } - - // code - if (cap = this.rules.code.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.codespan(escape(cap[2], true)); - continue; - } - - // br - if (cap = this.rules.br.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.br(); - continue; - } - - // del (gfm) - if (cap = this.rules.del.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.del(this.output(cap[1])); - continue; - } - - // text - if (cap = this.rules.text.exec(src)) { - src = src.substring(cap[0].length); - out += this.renderer.text(escape(this.smartypants(cap[0]))); - continue; - } - - if (src) { - throw new - Error('Infinite loop on byte: ' + src.charCodeAt(0)); - } - } - - return out; -}; - -/** - * Compile Link - */ - -InlineLexer.prototype.outputLink = function(cap, link) { - var href = escape(link.href) - , title = link.title ? escape(link.title) : null; - - return cap[0].charAt(0) !== '!' - ? this.renderer.link(href, title, this.output(cap[1])) - : this.renderer.image(href, title, escape(cap[1])); -}; - -/** - * Smartypants Transformations - */ - -InlineLexer.prototype.smartypants = function(text) { - if (!this.options.smartypants) return text; - return text - // em-dashes - .replace(/---/g, '\u2014') - // en-dashes - .replace(/--/g, '\u2013') - // opening singles - .replace(/(^|[-\u2014/(\[{"\s])'/g, '$1\u2018') - // closing singles & apostrophes - .replace(/'/g, '\u2019') - // opening doubles - .replace(/(^|[-\u2014/(\[{\u2018\s])"/g, '$1\u201c') - // closing doubles - .replace(/"/g, '\u201d') - // ellipses - .replace(/\.{3}/g, '\u2026'); -}; - -/** - * Mangle Links - */ - -InlineLexer.prototype.mangle = function(text) { - if (!this.options.mangle) return text; - var out = '' - , l = text.length - , i = 0 - , ch; - - for (; i < l; i++) { - ch = text.charCodeAt(i); - if (Math.random() > 0.5) { - ch = 'x' + ch.toString(16); - } - out += '&#' + ch + ';'; - } - - return out; -}; - -/** - * Renderer - */ - -function Renderer(options) { - this.options = options || {}; -} - -Renderer.prototype.code = function(code, lang, escaped) { - if (this.options.highlight) { - var out = this.options.highlight(code, lang); - if (out != null && out !== code) { - escaped = true; - code = out; - } - } - - if (!lang) { - return '
    '
    -      + (escaped ? code : escape(code, true))
    -      + '\n
    '; - } - - return '
    '
    -    + (escaped ? code : escape(code, true))
    -    + '\n
    \n'; -}; - -Renderer.prototype.blockquote = function(quote) { - return '
    \n' + quote + '
    \n'; -}; - -Renderer.prototype.html = function(html) { - return html; -}; - -Renderer.prototype.heading = function(text, level, raw) { - return '' - + text - + '\n'; -}; - -Renderer.prototype.hr = function() { - return this.options.xhtml ? '
    \n' : '
    \n'; -}; - -Renderer.prototype.list = function(body, ordered) { - var type = ordered ? 'ol' : 'ul'; - return '<' + type + '>\n' + body + '\n'; -}; - -Renderer.prototype.listitem = function(text) { - return '
  • ' + text + '
  • \n'; -}; - -Renderer.prototype.paragraph = function(text) { - return '

    ' + text + '

    \n'; -}; - -Renderer.prototype.table = function(header, body) { - return '\n' - + '\n' - + header - + '\n' - + '\n' - + body - + '\n' - + '
    \n'; -}; - -Renderer.prototype.tablerow = function(content) { - return '\n' + content + '\n'; -}; - -Renderer.prototype.tablecell = function(content, flags) { - var type = flags.header ? 'th' : 'td'; - var tag = flags.align - ? '<' + type + ' style="text-align:' + flags.align + '">' - : '<' + type + '>'; - return tag + content + '\n'; -}; - -// span level renderer -Renderer.prototype.strong = function(text) { - return '' + text + ''; -}; - -Renderer.prototype.em = function(text) { - return '' + text + ''; -}; - -Renderer.prototype.codespan = function(text) { - return '' + text + ''; -}; - -Renderer.prototype.br = function() { - return this.options.xhtml ? '
    ' : '
    '; -}; - -Renderer.prototype.del = function(text) { - return '' + text + ''; -}; - -Renderer.prototype.link = function(href, title, text) { - if (this.options.sanitize) { - try { - var prot = decodeURIComponent(unescape(href)) - .replace(/[^\w:]/g, '') - .toLowerCase(); - } catch (e) { - return ''; - } - if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) { - return ''; - } - } - var out = '
    '; - return out; -}; - -Renderer.prototype.image = function(href, title, text) { - var out = '' + text + '' : '>'; - return out; -}; - -Renderer.prototype.text = function(text) { - return text; -}; - -/** - * Parsing & Compiling - */ - -function Parser(options) { - this.tokens = []; - this.token = null; - this.options = options || marked.defaults; - this.options.renderer = this.options.renderer || new Renderer; - this.renderer = this.options.renderer; - this.renderer.options = this.options; -} - -/** - * Static Parse Method - */ - -Parser.parse = function(src, options, renderer) { - var parser = new Parser(options, renderer); - return parser.parse(src); -}; - -/** - * Parse Loop - */ - -Parser.prototype.parse = function(src) { - this.inline = new InlineLexer(src.links, this.options, this.renderer); - this.tokens = src.reverse(); - - var out = ''; - while (this.next()) { - out += this.tok(); - } - - return out; -}; - -/** - * Next Token - */ - -Parser.prototype.next = function() { - return this.token = this.tokens.pop(); -}; - -/** - * Preview Next Token - */ - -Parser.prototype.peek = function() { - return this.tokens[this.tokens.length - 1] || 0; -}; - -/** - * Parse Text Tokens - */ - -Parser.prototype.parseText = function() { - var body = this.token.text; - - while (this.peek().type === 'text') { - body += '\n' + this.next().text; - } - - return this.inline.output(body); -}; - -/** - * Parse Current Token - */ - -Parser.prototype.tok = function() { - switch (this.token.type) { - case 'space': { - return ''; - } - case 'hr': { - return this.renderer.hr(); - } - case 'heading': { - return this.renderer.heading( - this.inline.output(this.token.text), - this.token.depth, - this.token.text); - } - case 'code': { - return this.renderer.code(this.token.text, - this.token.lang, - this.token.escaped); - } - case 'table': { - var header = '' - , body = '' - , i - , row - , cell - , flags - , j; - - // header - cell = ''; - for (i = 0; i < this.token.header.length; i++) { - flags = { header: true, align: this.token.align[i] }; - cell += this.renderer.tablecell( - this.inline.output(this.token.header[i]), - { header: true, align: this.token.align[i] } - ); - } - header += this.renderer.tablerow(cell); - - for (i = 0; i < this.token.cells.length; i++) { - row = this.token.cells[i]; - - cell = ''; - for (j = 0; j < row.length; j++) { - cell += this.renderer.tablecell( - this.inline.output(row[j]), - { header: false, align: this.token.align[j] } - ); - } - - body += this.renderer.tablerow(cell); - } - return this.renderer.table(header, body); - } - case 'blockquote_start': { - var body = ''; - - while (this.next().type !== 'blockquote_end') { - body += this.tok(); - } - - return this.renderer.blockquote(body); - } - case 'list_start': { - var body = '' - , ordered = this.token.ordered; - - while (this.next().type !== 'list_end') { - body += this.tok(); - } - - return this.renderer.list(body, ordered); - } - case 'list_item_start': { - var body = ''; - - while (this.next().type !== 'list_item_end') { - body += this.token.type === 'text' - ? this.parseText() - : this.tok(); - } - - return this.renderer.listitem(body); - } - case 'loose_item_start': { - var body = ''; - - while (this.next().type !== 'list_item_end') { - body += this.tok(); - } - - return this.renderer.listitem(body); - } - case 'html': { - var html = !this.token.pre && !this.options.pedantic - ? this.inline.output(this.token.text) - : this.token.text; - return this.renderer.html(html); - } - case 'paragraph': { - return this.renderer.paragraph(this.inline.output(this.token.text)); - } - case 'text': { - return this.renderer.paragraph(this.parseText()); - } - } -}; - -/** - * Helpers - */ - -function escape(html, encode) { - return html - .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&') - .replace(//g, '>') - .replace(/"/g, '"') - .replace(/'/g, '''); -} - -function unescape(html) { - // explicitly match decimal, hex, and named HTML entities - return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g, function(_, n) { - n = n.toLowerCase(); - if (n === 'colon') return ':'; - if (n.charAt(0) === '#') { - return n.charAt(1) === 'x' - ? String.fromCharCode(parseInt(n.substring(2), 16)) - : String.fromCharCode(+n.substring(1)); - } - return ''; - }); -} - -function replace(regex, opt) { - regex = regex.source; - opt = opt || ''; - return function self(name, val) { - if (!name) return new RegExp(regex, opt); - val = val.source || val; - val = val.replace(/(^|[^\[])\^/g, '$1'); - regex = regex.replace(name, val); - return self; - }; -} - -function noop() {} -noop.exec = noop; - -function merge(obj) { - var i = 1 - , target - , key; - - for (; i < arguments.length; i++) { - target = arguments[i]; - for (key in target) { - if (Object.prototype.hasOwnProperty.call(target, key)) { - obj[key] = target[key]; - } - } - } - - return obj; -} - - -/** - * Marked - */ - -function marked(src, opt, callback) { - if (callback || typeof opt === 'function') { - if (!callback) { - callback = opt; - opt = null; - } - - opt = merge({}, marked.defaults, opt || {}); - - var highlight = opt.highlight - , tokens - , pending - , i = 0; - - try { - tokens = Lexer.lex(src, opt) - } catch (e) { - return callback(e); - } - - pending = tokens.length; - - var done = function(err) { - if (err) { - opt.highlight = highlight; - return callback(err); - } - - var out; - - try { - out = Parser.parse(tokens, opt); - } catch (e) { - err = e; - } - - opt.highlight = highlight; - - return err - ? callback(err) - : callback(null, out); - }; - - if (!highlight || highlight.length < 3) { - return done(); - } - - delete opt.highlight; - - if (!pending) return done(); - - for (; i < tokens.length; i++) { - (function(token) { - if (token.type !== 'code') { - return --pending || done(); - } - return highlight(token.text, token.lang, function(err, code) { - if (err) return done(err); - if (code == null || code === token.text) { - return --pending || done(); - } - token.text = code; - token.escaped = true; - --pending || done(); - }); - })(tokens[i]); - } - - return; - } - try { - if (opt) opt = merge({}, marked.defaults, opt); - return Parser.parse(Lexer.lex(src, opt), opt); - } catch (e) { - e.message += '\nPlease report this to https://github.com/chjj/marked.'; - if ((opt || marked.defaults).silent) { - return '

    An error occured:

    '
    -        + escape(e.message + '', true)
    -        + '
    '; - } - throw e; - } -} - -/** - * Options - */ - -marked.options = -marked.setOptions = function(opt) { - merge(marked.defaults, opt); - return marked; -}; - -marked.defaults = { - gfm: true, - tables: true, - breaks: false, - pedantic: false, - sanitize: false, - sanitizer: null, - mangle: true, - smartLists: false, - silent: false, - highlight: null, - langPrefix: 'lang-', - smartypants: false, - headerPrefix: '', - renderer: new Renderer, - xhtml: false -}; - -/** - * Expose - */ - -marked.Parser = Parser; -marked.parser = Parser.parse; - -marked.Renderer = Renderer; - -marked.Lexer = Lexer; -marked.lexer = Lexer.lex; - -marked.InlineLexer = InlineLexer; -marked.inlineLexer = InlineLexer.output; - -marked.parse = marked; - -if (typeof module !== 'undefined' && typeof exports === 'object') { - module.exports = marked; -} else if (typeof define === 'function' && define.amd) { - define(function() { return marked; }); -} else { - this.marked = marked; -} - -}).call(function() { - return this || (typeof window !== 'undefined' ? window : global); -}()); diff --git a/node_modules/marked/man/marked.1 b/node_modules/marked/man/marked.1 deleted file mode 100644 index b9bdc8c..0000000 --- a/node_modules/marked/man/marked.1 +++ /dev/null @@ -1,91 +0,0 @@ -.ds q \N'34' -.TH marked 1 "2014-01-31" "v0.3.1" "marked.js" - -.SH NAME -marked \- a javascript markdown parser - -.SH SYNOPSIS -.B marked -[\-o \fI\fP] [\-i \fI\fP] [\-\-help] -[\-\-tokens] [\-\-pedantic] [\-\-gfm] -[\-\-breaks] [\-\-tables] [\-\-sanitize] -[\-\-smart\-lists] [\-\-lang\-prefix \fI\fP] -[\-\-no\-etc...] [\-\-silent] [\fIfilename\fP] - -.SH DESCRIPTION -.B marked -is a full-featured javascript markdown parser, built for speed. It also includes -multiple GFM features. - -.SH EXAMPLES -.TP -cat in.md | marked > out.html -.TP -echo "hello *world*" | marked -.TP -marked \-o out.html in.md \-\-gfm -.TP -marked \-\-output="hello world.html" \-i in.md \-\-no-breaks - -.SH OPTIONS -.TP -.BI \-o,\ \-\-output\ [\fIoutput\fP] -Specify file output. If none is specified, write to stdout. -.TP -.BI \-i,\ \-\-input\ [\fIinput\fP] -Specify file input, otherwise use last argument as input file. If no input file -is specified, read from stdin. -.TP -.BI \-t,\ \-\-tokens -Output a token stream instead of html. -.TP -.BI \-\-pedantic -Conform to obscure parts of markdown.pl as much as possible. Don't fix original -markdown bugs. -.TP -.BI \-\-gfm -Enable github flavored markdown. -.TP -.BI \-\-breaks -Enable GFM line breaks. Only works with the gfm option. -.TP -.BI \-\-tables -Enable GFM tables. Only works with the gfm option. -.TP -.BI \-\-sanitize -Sanitize output. Ignore any HTML input. -.TP -.BI \-\-smart\-lists -Use smarter list behavior than the original markdown. -.TP -.BI \-\-lang\-prefix\ [\fIprefix\fP] -Set the prefix for code block classes. -.TP -.BI \-\-mangle -Mangle email addresses. -.TP -.BI \-\-no\-sanitize,\ \-no-etc... -The inverse of any of the marked options above. -.TP -.BI \-\-silent -Silence error output. -.TP -.BI \-h,\ \-\-help -Display help information. - -.SH CONFIGURATION -For configuring and running programmatically. - -.B Example - - require('marked')('*foo*', { gfm: true }); - -.SH BUGS -Please report any bugs to https://github.com/chjj/marked. - -.SH LICENSE -Copyright (c) 2011-2014, Christopher Jeffrey (MIT License). - -.SH "SEE ALSO" -.BR markdown(1), -.BR node.js(1) diff --git a/node_modules/marked/marked.min.js b/node_modules/marked/marked.min.js deleted file mode 100644 index 555c1dc..0000000 --- a/node_modules/marked/marked.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/** - * marked - a markdown parser - * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed) - * https://github.com/chjj/marked - */ -(function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,"gm")(/bull/g,block.bullet)();block.list=replace(block.list)(/bull/g,block.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+block.def.source+")")();block.blockquote=replace(block.blockquote)("def",block.def)();block._tag="(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code"+"|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo"+"|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";block.html=replace(block.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,block._tag)();block.paragraph=replace(block.paragraph)("hr",block.hr)("heading",block.heading)("lheading",block.lheading)("blockquote",block.blockquote)("tag","<"+block._tag)("def",block.def)();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});block.gfm.paragraph=replace(block.paragraph)("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|")();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,""),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:"space"})}}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?cap.replace(/\n+$/,""):cap});continue}if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"code",lang:cap[2],text:cap[3]||""});continue}if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/\n$/,"").split("\n")};for(i=0;i ?/gm,"");this.token(cap,top,true);this.tokens.push({type:"blockquote_end"});continue}if(cap=this.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];this.tokens.push({type:"list_start",ordered:bull.length>1});cap=cap[0].match(this.rules.item);next=false;l=cap.length;i=0;for(;i1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose)loose=next}this.tokens.push({type:loose?"loose_item_start":"list_item_start"});this.token(item,false,bq);this.tokens.push({type:"list_item_end"})}this.tokens.push({type:"list_end"});continue}if(cap=this.rules.html.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(cap[1]==="pre"||cap[1]==="script"||cap[1]==="style"),text:cap[0]});continue}if(!bq&&top&&(cap=this.rules.def.exec(src))){src=src.substring(cap[0].length);this.tokens.links[cap[1].toLowerCase()]={href:cap[2],title:cap[3]};continue}if(top&&(cap=this.rules.table.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(i=0;i])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:noop,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:noop,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/;inline.link=replace(inline.link)("inside",inline._inside)("href",inline._href)();inline.reflink=replace(inline.reflink)("inside",inline._inside)();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});inline.gfm=merge({},inline.normal,{escape:replace(inline.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:replace(inline.text)("]|","~]|")("|","|https?://|")()});inline.breaks=merge({},inline.gfm,{br:replace(inline.br)("{2,}","*")(),text:replace(inline.gfm.text)("{2,}","*")()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer;this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}else if(this.options.pedantic){this.rules=inline.pedantic}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var out="",link,text,href,cap;while(src){if(cap=this.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=cap[1].charAt(6)===":"?this.mangle(cap[1].substring(7)):this.mangle(cap[1]);href=this.mangle("mailto:")+text}else{text=escape(cap[1]);href=text}out+=this.renderer.link(href,null,text);continue}if(!this.inLink&&(cap=this.rules.url.exec(src))){src=src.substring(cap[0].length);text=escape(cap[1]);href=text;out+=this.renderer.link(href,null,text);continue}if(cap=this.rules.tag.exec(src)){if(!this.inLink&&/^
    /i.test(cap[0])){this.inLink=false}src=src.substring(cap[0].length);out+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(cap[0]):escape(cap[0]):cap[0];continue}if(cap=this.rules.link.exec(src)){src=src.substring(cap[0].length);this.inLink=true;out+=this.outputLink(cap,{href:cap[2],title:cap[3]});this.inLink=false;continue}if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this.inLink=true;out+=this.outputLink(cap,link);this.inLink=false;continue}if(cap=this.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.strong(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.em(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.codespan(escape(cap[2],true));continue}if(cap=this.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.br();continue}if(cap=this.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.del(this.output(cap[1]));continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.text(escape(this.smartypants(cap[0])));continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return out};InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return cap[0].charAt(0)!=="!"?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants)return text;return text.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};InlineLexer.prototype.mangle=function(text){if(!this.options.mangle)return text;var out="",l=text.length,i=0,ch;for(;i.5){ch="x"+ch.toString(16)}out+="&#"+ch+";"}return out};function Renderer(options){this.options=options||{}}Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out}}if(!lang){return"
    "+(escaped?code:escape(code,true))+"\n
    "}return'
    '+(escaped?code:escape(code,true))+"\n
    \n"};Renderer.prototype.blockquote=function(quote){return"
    \n"+quote+"
    \n"};Renderer.prototype.html=function(html){return html};Renderer.prototype.heading=function(text,level,raw){return"'+text+"\n"};Renderer.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"};Renderer.prototype.list=function(body,ordered){var type=ordered?"ol":"ul";return"<"+type+">\n"+body+"\n"};Renderer.prototype.listitem=function(text){return"
  • "+text+"
  • \n"};Renderer.prototype.paragraph=function(text){return"

    "+text+"

    \n"};Renderer.prototype.table=function(header,body){return"\n"+"\n"+header+"\n"+"\n"+body+"\n"+"
    \n"};Renderer.prototype.tablerow=function(content){return"\n"+content+"\n"};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";var tag=flags.align?"<"+type+' style="text-align:'+flags.align+'">':"<"+type+">";return tag+content+"\n"};Renderer.prototype.strong=function(text){return""+text+""};Renderer.prototype.em=function(text){return""+text+""};Renderer.prototype.codespan=function(text){return""+text+""};Renderer.prototype.br=function(){return this.options.xhtml?"
    ":"
    "};Renderer.prototype.del=function(text){return""+text+""};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(prot.indexOf("javascript:")===0||prot.indexOf("vbscript:")===0){return""}}var out='
    ";return out};Renderer.prototype.image=function(href,title,text){var out=''+text+'":">";return out};Renderer.prototype.text=function(text){return text};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options}Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src)};Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options,this.renderer);this.tokens=src.reverse();var out="";while(this.next()){out+=this.tok()}return out};Parser.prototype.next=function(){return this.token=this.tokens.pop()};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};Parser.prototype.parseText=function(){var body=this.token.text;while(this.peek().type==="text"){body+="\n"+this.next().text}return this.inline.output(body)};Parser.prototype.tok=function(){switch(this.token.type){case"space":{return""}case"hr":{return this.renderer.hr()}case"heading":{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case"code":{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case"table":{var header="",body="",i,row,cell,flags,j;cell="";for(i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")}function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){n=n.toLowerCase();if(n==="colon")return":";if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""})}function replace(regex,opt){regex=regex.source;opt=opt||"";return function self(name,val){if(!name)return new RegExp(regex,opt);val=val.source||val;val=val.replace(/(^|[^\[])\^/g,"$1");regex=regex.replace(name,val);return self}}function noop(){}noop.exec=noop;function merge(obj){var i=1,target,key;for(;iAn error occured:

    "+escape(e.message+"",true)+"
    "}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}()); \ No newline at end of file diff --git a/node_modules/marked/package.json b/node_modules/marked/package.json deleted file mode 100644 index 6bde5b9..0000000 --- a/node_modules/marked/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "marked@^0.3.6", - "scope": null, - "escapedName": "marked", - "name": "marked", - "rawSpec": "^0.3.6", - "spec": ">=0.3.6 <0.4.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/cli-usage" - ] - ], - "_from": "marked@>=0.3.6 <0.4.0", - "_id": "marked@0.3.6", - "_inCache": true, - "_location": "/marked", - "_nodeVersion": "6.3.1", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/marked-0.3.6.tgz_1469848215797_0.5454847207292914" - }, - "_npmUser": { - "name": "chjj", - "email": "chjjeffrey@gmail.com" - }, - "_npmVersion": "3.10.5", - "_phantomChildren": {}, - "_requested": { - "raw": "marked@^0.3.6", - "scope": null, - "escapedName": "marked", - "name": "marked", - "rawSpec": "^0.3.6", - "spec": ">=0.3.6 <0.4.0", - "type": "range" - }, - "_requiredBy": [ - "/cli-usage" - ], - "_resolved": "https://registry.npmjs.org/marked/-/marked-0.3.6.tgz", - "_shasum": "b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7", - "_shrinkwrap": null, - "_spec": "marked@^0.3.6", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/cli-usage", - "author": { - "name": "Christopher Jeffrey" - }, - "bin": { - "marked": "./bin/marked" - }, - "bugs": { - "url": "http://github.com/chjj/marked/issues" - }, - "dependencies": {}, - "description": "A markdown parser built for speed", - "devDependencies": { - "gulp": "^3.8.11", - "gulp-concat": "^2.5.2", - "gulp-uglify": "^1.1.0", - "markdown": "*", - "showdown": "*" - }, - "directories": {}, - "dist": { - "shasum": "b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7", - "tarball": "https://registry.npmjs.org/marked/-/marked-0.3.6.tgz" - }, - "gitHead": "eddec20467c2d10c7769061ee9074e268500966f", - "homepage": "https://github.com/chjj/marked", - "keywords": [ - "markdown", - "markup", - "html" - ], - "license": "MIT", - "main": "./lib/marked.js", - "maintainers": [ - { - "name": "chjj", - "email": "chjjeffrey@gmail.com" - } - ], - "man": [ - "./man/marked.1" - ], - "name": "marked", - "optionalDependencies": {}, - "preferGlobal": true, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/chjj/marked.git" - }, - "scripts": { - "bench": "node test --bench", - "test": "node test" - }, - "tags": [ - "markdown", - "markup", - "html" - ], - "version": "0.3.6" -} diff --git a/node_modules/meow/index.js b/node_modules/meow/index.js deleted file mode 100644 index d7ab879..0000000 --- a/node_modules/meow/index.js +++ /dev/null @@ -1,82 +0,0 @@ -'use strict'; -var path = require('path'); -var minimist = require('minimist'); -var objectAssign = require('object-assign'); -var camelcaseKeys = require('camelcase-keys'); -var decamelize = require('decamelize'); -var mapObj = require('map-obj'); -var trimNewlines = require('trim-newlines'); -var redent = require('redent'); -var readPkgUp = require('read-pkg-up'); -var loudRejection = require('loud-rejection'); -var normalizePackageData = require('normalize-package-data'); - -// get the uncached parent -delete require.cache[__filename]; -var parentDir = path.dirname(module.parent.filename); - -module.exports = function (opts, minimistOpts) { - loudRejection(); - - if (Array.isArray(opts) || typeof opts === 'string') { - opts = {help: opts}; - } - - opts = objectAssign({ - pkg: readPkgUp.sync({ - cwd: parentDir, - normalize: false - }).pkg, - argv: process.argv.slice(2) - }, opts); - - minimistOpts = objectAssign({}, minimistOpts); - - minimistOpts.default = mapObj(minimistOpts.default || {}, function (key, value) { - return [decamelize(key, '-'), value]; - }); - - if (Array.isArray(opts.help)) { - opts.help = opts.help.join('\n'); - } - - var pkg = typeof opts.pkg === 'string' ? require(path.join(parentDir, opts.pkg)) : opts.pkg; - var argv = minimist(opts.argv, minimistOpts); - var help = redent(trimNewlines(opts.help || ''), 2); - - normalizePackageData(pkg); - - process.title = pkg.bin ? Object.keys(pkg.bin)[0] : pkg.name; - - var description = opts.description; - if (!description && description !== false) { - description = pkg.description; - } - - help = (description ? '\n ' + description + '\n' : '') + (help ? '\n' + help : '\n'); - - var showHelp = function (code) { - console.log(help); - process.exit(code || 0); - }; - - if (argv.version && opts.version !== false) { - console.log(typeof opts.version === 'string' ? opts.version : pkg.version); - process.exit(); - } - - if (argv.help && opts.help !== false) { - showHelp(); - } - - var _ = argv._; - delete argv._; - - return { - input: _, - flags: camelcaseKeys(argv), - pkg: pkg, - help: help, - showHelp: showHelp - }; -}; diff --git a/node_modules/meow/license b/node_modules/meow/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/meow/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/meow/package.json b/node_modules/meow/package.json deleted file mode 100644 index bea71cf..0000000 --- a/node_modules/meow/package.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "meow@^3.3.0", - "scope": null, - "escapedName": "meow", - "name": "meow", - "rawSpec": "^3.3.0", - "spec": ">=3.3.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/dateformat" - ] - ], - "_from": "meow@>=3.3.0 <4.0.0", - "_id": "meow@3.7.0", - "_inCache": true, - "_location": "/meow", - "_nodeVersion": "4.2.4", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.12", - "_phantomChildren": {}, - "_requested": { - "raw": "meow@^3.3.0", - "scope": null, - "escapedName": "meow", - "name": "meow", - "rawSpec": "^3.3.0", - "spec": ">=3.3.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/dateformat" - ], - "_resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", - "_shasum": "72cb668b425228290abbfa856892587308a801fb", - "_shrinkwrap": null, - "_spec": "meow@^3.3.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/dateformat", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/meow/issues" - }, - "dependencies": { - "camelcase-keys": "^2.0.0", - "decamelize": "^1.1.2", - "loud-rejection": "^1.0.0", - "map-obj": "^1.0.1", - "minimist": "^1.1.3", - "normalize-package-data": "^2.3.4", - "object-assign": "^4.0.1", - "read-pkg-up": "^1.0.1", - "redent": "^1.0.0", - "trim-newlines": "^1.0.0" - }, - "description": "CLI app helper", - "devDependencies": { - "ava": "*", - "execa": "^0.1.1", - "indent-string": "^2.1.0", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "72cb668b425228290abbfa856892587308a801fb", - "tarball": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "9a5c90af79fb8f5f29c97e6b92b63f41e2df4f34", - "homepage": "https://github.com/sindresorhus/meow#readme", - "keywords": [ - "cli", - "bin", - "util", - "utility", - "helper", - "argv", - "command", - "line", - "meow", - "cat", - "kitten", - "parser", - "option", - "flags", - "input", - "cmd", - "console" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "meow", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/meow.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "3.7.0" -} diff --git a/node_modules/meow/readme.md b/node_modules/meow/readme.md deleted file mode 100644 index 253380d..0000000 --- a/node_modules/meow/readme.md +++ /dev/null @@ -1,159 +0,0 @@ -# meow [![Build Status](https://travis-ci.org/sindresorhus/meow.svg?branch=master)](https://travis-ci.org/sindresorhus/meow) - -> CLI app helper - -![](meow.gif) - - -## Features - -- Parses arguments using [minimist](https://github.com/substack/minimist) -- Converts flags to [camelCase](https://github.com/sindresorhus/camelcase) -- Outputs version when `--version` -- Outputs description and supplied help text when `--help` -- Makes unhandled rejected promises [fail loudly](https://github.com/sindresorhus/loud-rejection) instead of the default silent fail -- Sets the process title to the binary name defined in package.json - - -## Install - -``` -$ npm install --save meow -``` - - -## Usage - -``` -$ ./foo-app.js unicorns --rainbow-cake -``` - -```js -#!/usr/bin/env node -'use strict'; -const meow = require('meow'); -const foo = require('./'); - -const cli = meow(` - Usage - $ foo - - Options - -r, --rainbow Include a rainbow - - Examples - $ foo unicorns --rainbow - 🌈 unicorns 🌈 -`, { - alias: { - r: 'rainbow' - } -}); -/* -{ - input: ['unicorns'], - flags: {rainbow: true}, - ... -} -*/ - -foo(cli.input[0], cli.flags); -``` - - -## API - -### meow(options, [minimistOptions]) - -Returns an object with: - -- `input` *(array)* - Non-flag arguments -- `flags` *(object)* - Flags converted to camelCase -- `pkg` *(object)* - The `package.json` object -- `help` *(object)* - The help text used with `--help` -- `showHelp([code=0])` *(function)* - Show the help text and exit with `code` - -#### options - -Type: `object`, `array`, `string` - -Can either be a string/array that is the `help` or an options object. - -##### description - -Type: `string`, `boolean` -Default: The package.json `"description"` property - -A description to show above the help text. - -Set it to `false` to disable it altogether. - -##### help - -Type: `string`, `boolean` - -The help text you want shown. - -The input is reindented and starting/ending newlines are trimmed which means you can use a [template literal](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/template_strings) without having to care about using the correct amount of indent. - -If it's an array each item will be a line. -*(Still supported, but you should use a template literal instead.)* - -The description will be shown above your help text automatically. - -Set it to `false` to disable it altogether. - -##### version - -Type: `string`, `boolean` -Default: The package.json `"version"` property - -Set a custom version output. - -Set it to `false` to disable it altogether. - -##### pkg - -Type: `string`, `object` -Default: Closest package.json upwards - -Relative path to package.json or as an object. - -##### argv - -Type: `array` -Default: `process.argv.slice(2)` - -Custom arguments object. - -#### minimistOptions - -Type: `object` -Default: `{}` - -Minimist [options](https://github.com/substack/minimist#var-argv--parseargsargs-opts). - -Keys passed to the minimist `default` option are [decamelized](https://github.com/sindresorhus/decamelize), so you can for example pass in `fooBar: 'baz'` and have it be the default for the `--foo-bar` flag. - - -## Promises - -Meow will make unhandled rejected promises [fail loudly](https://github.com/sindresorhus/loud-rejection) instead of the default silent fail. Meaning you don't have to manually `.catch()` promises used in your CLI. - - -## Tips - -See [`chalk`](https://github.com/chalk/chalk) if you want to colorize the terminal output. - -See [`get-stdin`](https://github.com/sindresorhus/get-stdin) if you want to accept input from stdin. - -See [`update-notifier`](https://github.com/yeoman/update-notifier) if you want update notifications. - -See [`configstore`](https://github.com/yeoman/configstore) if you need to persist some data. - -[More useful CLI utilities.](https://github.com/sindresorhus/awesome-nodejs#command-line-utilities) - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/merge-stream/LICENSE b/node_modules/merge-stream/LICENSE deleted file mode 100644 index 94a4c0a..0000000 --- a/node_modules/merge-stream/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Stephen Sugden (stephensugden.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/merge-stream/README.md b/node_modules/merge-stream/README.md deleted file mode 100644 index 966bde6..0000000 --- a/node_modules/merge-stream/README.md +++ /dev/null @@ -1,55 +0,0 @@ -# merge-stream - -Merge (interleave) a bunch of streams. - -[![build status](https://secure.travis-ci.org/grncdr/merge-stream.svg?branch=master)](http://travis-ci.org/grncdr/merge-stream) - -## Synopsis - -```javascript -var stream1 = new Stream(); -var stream2 = new Stream(); - -var merged = mergeStream(stream1, stream2); - -var stream3 = new Stream(); -merged.add(stream3); -merged.isEmpty(); -//=> false -``` - -## Description - -This is adapted from [event-stream](https://github.com/dominictarr/event-stream) separated into a new module, using Streams3. - -## API - -### `mergeStream` - -Type: `function` - -Merges an arbitrary number of streams. Returns a merged stream. - -#### `merged.add` - -A method to dynamically add more sources to the stream. The argument supplied to `add` can be either a source or an array of sources. - -#### `merged.isEmpty` - -A method that tells you if the merged stream is empty. - -When a stream is "empty" (aka. no sources were added), it could not be returned to a gulp task. - -So, we could do something like this: - -```js -stream = require('merge-stream')(); -// Something like a loop to add some streams to the merge stream -// stream.add(streamA); -// stream.add(streamB); -return stream.isEmpty() ? null : stream; -``` - -## License - -MIT diff --git a/node_modules/merge-stream/index.js b/node_modules/merge-stream/index.js deleted file mode 100644 index f907ad6..0000000 --- a/node_modules/merge-stream/index.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -var PassThrough = require('readable-stream/passthrough') - -module.exports = function (/*streams...*/) { - var sources = [] - var output = new PassThrough({objectMode: true}) - - output.setMaxListeners(0) - - output.add = add - output.isEmpty = isEmpty - - output.on('unpipe', remove) - - Array.prototype.slice.call(arguments).forEach(add) - - return output - - function add (source) { - if (Array.isArray(source)) { - source.forEach(add) - return this - } - - sources.push(source); - source.once('end', remove.bind(null, source)) - source.once('error', output.emit.bind(output, 'error')) - source.pipe(output, {end: false}) - return this - } - - function isEmpty () { - return sources.length == 0; - } - - function remove (source) { - sources = sources.filter(function (it) { return it !== source }) - if (!sources.length && output.readable) { output.end() } - } -} diff --git a/node_modules/merge-stream/node_modules/isarray/.npmignore b/node_modules/merge-stream/node_modules/isarray/.npmignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/merge-stream/node_modules/isarray/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/merge-stream/node_modules/isarray/.travis.yml b/node_modules/merge-stream/node_modules/isarray/.travis.yml deleted file mode 100644 index cc4dba2..0000000 --- a/node_modules/merge-stream/node_modules/isarray/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" diff --git a/node_modules/merge-stream/node_modules/isarray/Makefile b/node_modules/merge-stream/node_modules/isarray/Makefile deleted file mode 100644 index 787d56e..0000000 --- a/node_modules/merge-stream/node_modules/isarray/Makefile +++ /dev/null @@ -1,6 +0,0 @@ - -test: - @node_modules/.bin/tape test.js - -.PHONY: test - diff --git a/node_modules/merge-stream/node_modules/isarray/README.md b/node_modules/merge-stream/node_modules/isarray/README.md deleted file mode 100644 index 16d2c59..0000000 --- a/node_modules/merge-stream/node_modules/isarray/README.md +++ /dev/null @@ -1,60 +0,0 @@ - -# isarray - -`Array#isArray` for older browsers. - -[![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) -[![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) - -[![browser support](https://ci.testling.com/juliangruber/isarray.png) -](https://ci.testling.com/juliangruber/isarray) - -## Usage - -```js -var isArray = require('isarray'); - -console.log(isArray([])); // => true -console.log(isArray({})); // => false -``` - -## Installation - -With [npm](http://npmjs.org) do - -```bash -$ npm install isarray -``` - -Then bundle for the browser with -[browserify](https://github.com/substack/browserify). - -With [component](http://component.io) do - -```bash -$ component install juliangruber/isarray -``` - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.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/merge-stream/node_modules/isarray/component.json b/node_modules/merge-stream/node_modules/isarray/component.json deleted file mode 100644 index 9e31b68..0000000 --- a/node_modules/merge-stream/node_modules/isarray/component.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name" : "isarray", - "description" : "Array#isArray for older browsers", - "version" : "0.0.1", - "repository" : "juliangruber/isarray", - "homepage": "https://github.com/juliangruber/isarray", - "main" : "index.js", - "scripts" : [ - "index.js" - ], - "dependencies" : {}, - "keywords": ["browser","isarray","array"], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT" -} diff --git a/node_modules/merge-stream/node_modules/isarray/index.js b/node_modules/merge-stream/node_modules/isarray/index.js deleted file mode 100644 index a57f634..0000000 --- a/node_modules/merge-stream/node_modules/isarray/index.js +++ /dev/null @@ -1,5 +0,0 @@ -var toString = {}.toString; - -module.exports = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; -}; diff --git a/node_modules/merge-stream/node_modules/isarray/package.json b/node_modules/merge-stream/node_modules/isarray/package.json deleted file mode 100644 index dad3e5b..0000000 --- a/node_modules/merge-stream/node_modules/isarray/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "isarray@~1.0.0", - "scope": null, - "escapedName": "isarray", - "name": "isarray", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/merge-stream/node_modules/readable-stream" - ] - ], - "_from": "isarray@>=1.0.0 <1.1.0", - "_id": "isarray@1.0.0", - "_inCache": true, - "_location": "/merge-stream/isarray", - "_nodeVersion": "5.1.0", - "_npmUser": { - "name": "juliangruber", - "email": "julian@juliangruber.com" - }, - "_npmVersion": "3.3.12", - "_phantomChildren": {}, - "_requested": { - "raw": "isarray@~1.0.0", - "scope": null, - "escapedName": "isarray", - "name": "isarray", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/merge-stream/readable-stream" - ], - "_resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "_shasum": "bb935d48582cba168c06834957a54a3e07124f11", - "_shrinkwrap": null, - "_spec": "isarray@~1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/merge-stream/node_modules/readable-stream", - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "bugs": { - "url": "https://github.com/juliangruber/isarray/issues" - }, - "dependencies": {}, - "description": "Array#isArray for older browsers", - "devDependencies": { - "tape": "~2.13.4" - }, - "directories": {}, - "dist": { - "shasum": "bb935d48582cba168c06834957a54a3e07124f11", - "tarball": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" - }, - "gitHead": "2a23a281f369e9ae06394c0fb4d2381355a6ba33", - "homepage": "https://github.com/juliangruber/isarray", - "keywords": [ - "browser", - "isarray", - "array" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "juliangruber", - "email": "julian@juliangruber.com" - } - ], - "name": "isarray", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/isarray.git" - }, - "scripts": { - "test": "tape test.js" - }, - "testling": { - "files": "test.js", - "browsers": [ - "ie/8..latest", - "firefox/17..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "version": "1.0.0" -} diff --git a/node_modules/merge-stream/node_modules/isarray/test.js b/node_modules/merge-stream/node_modules/isarray/test.js deleted file mode 100644 index e0c3444..0000000 --- a/node_modules/merge-stream/node_modules/isarray/test.js +++ /dev/null @@ -1,20 +0,0 @@ -var isArray = require('./'); -var test = require('tape'); - -test('is array', function(t){ - t.ok(isArray([])); - t.notOk(isArray({})); - t.notOk(isArray(null)); - t.notOk(isArray(false)); - - var obj = {}; - obj[0] = true; - t.notOk(isArray(obj)); - - var arr = []; - arr.foo = 'bar'; - t.ok(isArray(arr)); - - t.end(); -}); - diff --git a/node_modules/merge-stream/node_modules/readable-stream/.npmignore b/node_modules/merge-stream/node_modules/readable-stream/.npmignore deleted file mode 100644 index 6d270c6..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/.npmignore +++ /dev/null @@ -1,9 +0,0 @@ -build/ -test/ -examples/ -fs.js -zlib.js -.zuul.yml -.nyc_output -coverage -docs/ diff --git a/node_modules/merge-stream/node_modules/readable-stream/.travis.yml b/node_modules/merge-stream/node_modules/readable-stream/.travis.yml deleted file mode 100644 index 84504c9..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -sudo: false -language: node_js -before_install: - - npm install -g npm@2 - - npm install -g npm -notifications: - email: false -matrix: - fast_finish: true - include: - - node_js: '0.8' - env: TASK=test - - node_js: '0.10' - env: TASK=test - - node_js: '0.11' - env: TASK=test - - node_js: '0.12' - env: TASK=test - - node_js: 1 - env: TASK=test - - node_js: 2 - env: TASK=test - - node_js: 3 - env: TASK=test - - node_js: 4 - env: TASK=test - - node_js: 5 - env: TASK=test - - node_js: 6 - env: TASK=test - - node_js: 5 - env: TASK=browser BROWSER_NAME=android BROWSER_VERSION="4.0..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=ie BROWSER_VERSION="9..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=opera BROWSER_VERSION="11..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=chrome BROWSER_VERSION="-3..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=firefox BROWSER_VERSION="-3..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=safari BROWSER_VERSION="5..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=microsoftedge BROWSER_VERSION=latest -script: "npm run $TASK" -env: - global: - - secure: rE2Vvo7vnjabYNULNyLFxOyt98BoJexDqsiOnfiD6kLYYsiQGfr/sbZkPMOFm9qfQG7pjqx+zZWZjGSswhTt+626C0t/njXqug7Yps4c3dFblzGfreQHp7wNX5TFsvrxd6dAowVasMp61sJcRnB2w8cUzoe3RAYUDHyiHktwqMc= - - secure: g9YINaKAdMatsJ28G9jCGbSaguXCyxSTy+pBO6Ch0Cf57ZLOTka3HqDj8p3nV28LUIHZ3ut5WO43CeYKwt4AUtLpBS3a0dndHdY6D83uY6b2qh5hXlrcbeQTq2cvw2y95F7hm4D1kwrgZ7ViqaKggRcEupAL69YbJnxeUDKWEdI= diff --git a/node_modules/merge-stream/node_modules/readable-stream/CONTRIBUTING.md b/node_modules/merge-stream/node_modules/readable-stream/CONTRIBUTING.md deleted file mode 100644 index f478d58..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/CONTRIBUTING.md +++ /dev/null @@ -1,38 +0,0 @@ -# Developer's Certificate of Origin 1.1 - -By making a contribution to this project, I certify that: - -* (a) The contribution was created in whole or in part by me and I - have the right to submit it under the open source license - indicated in the file; or - -* (b) The contribution is based upon previous work that, to the best - of my knowledge, is covered under an appropriate open source - license and I have the right under that license to submit that - work with modifications, whether created in whole or in part - by me, under the same open source license (unless I am - permitted to submit under a different license), as indicated - in the file; or - -* (c) The contribution was provided directly to me by some other - person who certified (a), (b) or (c) and I have not modified - it. - -* (d) I understand and agree that this project and the contribution - are public and that a record of the contribution (including all - personal information I submit with it, including my sign-off) is - maintained indefinitely and may be redistributed consistent with - this project or the open source license(s) involved. - -## Moderation Policy - -The [Node.js Moderation Policy] applies to this WG. - -## Code of Conduct - -The [Node.js Code of Conduct][] applies to this WG. - -[Node.js Code of Conduct]: -https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md -[Node.js Moderation Policy]: -https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md diff --git a/node_modules/merge-stream/node_modules/readable-stream/GOVERNANCE.md b/node_modules/merge-stream/node_modules/readable-stream/GOVERNANCE.md deleted file mode 100644 index 16ffb93..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/GOVERNANCE.md +++ /dev/null @@ -1,136 +0,0 @@ -### Streams Working Group - -The Node.js Streams is jointly governed by a Working Group -(WG) -that is responsible for high-level guidance of the project. - -The WG has final authority over this project including: - -* Technical direction -* Project governance and process (including this policy) -* Contribution policy -* GitHub repository hosting -* Conduct guidelines -* Maintaining the list of additional Collaborators - -For the current list of WG members, see the project -[README.md](./README.md#current-project-team-members). - -### Collaborators - -The readable-stream GitHub repository is -maintained by the WG and additional Collaborators who are added by the -WG on an ongoing basis. - -Individuals making significant and valuable contributions are made -Collaborators and given commit-access to the project. These -individuals are identified by the WG and their addition as -Collaborators is discussed during the WG meeting. - -_Note:_ If you make a significant contribution and are not considered -for commit-access log an issue or contact a WG member directly and it -will be brought up in the next WG meeting. - -Modifications of the contents of the readable-stream repository are -made on -a collaborative basis. Anybody with a GitHub account may propose a -modification via pull request and it will be considered by the project -Collaborators. All pull requests must be reviewed and accepted by a -Collaborator with sufficient expertise who is able to take full -responsibility for the change. In the case of pull requests proposed -by an existing Collaborator, an additional Collaborator is required -for sign-off. Consensus should be sought if additional Collaborators -participate and there is disagreement around a particular -modification. See _Consensus Seeking Process_ below for further detail -on the consensus model used for governance. - -Collaborators may opt to elevate significant or controversial -modifications, or modifications that have not found consensus to the -WG for discussion by assigning the ***WG-agenda*** tag to a pull -request or issue. The WG should serve as the final arbiter where -required. - -For the current list of Collaborators, see the project -[README.md](./README.md#members). - -### WG Membership - -WG seats are not time-limited. There is no fixed size of the WG. -However, the expected target is between 6 and 12, to ensure adequate -coverage of important areas of expertise, balanced with the ability to -make decisions efficiently. - -There is no specific set of requirements or qualifications for WG -membership beyond these rules. - -The WG may add additional members to the WG by unanimous consensus. - -A WG member may be removed from the WG by voluntary resignation, or by -unanimous consensus of all other WG members. - -Changes to WG membership should be posted in the agenda, and may be -suggested as any other agenda item (see "WG Meetings" below). - -If an addition or removal is proposed during a meeting, and the full -WG is not in attendance to participate, then the addition or removal -is added to the agenda for the subsequent meeting. This is to ensure -that all members are given the opportunity to participate in all -membership decisions. If a WG member is unable to attend a meeting -where a planned membership decision is being made, then their consent -is assumed. - -No more than 1/3 of the WG members may be affiliated with the same -employer. If removal or resignation of a WG member, or a change of -employment by a WG member, creates a situation where more than 1/3 of -the WG membership shares an employer, then the situation must be -immediately remedied by the resignation or removal of one or more WG -members affiliated with the over-represented employer(s). - -### WG Meetings - -The WG meets occasionally on a Google Hangout On Air. A designated moderator -approved by the WG runs the meeting. Each meeting should be -published to YouTube. - -Items are added to the WG agenda that are considered contentious or -are modifications of governance, contribution policy, WG membership, -or release process. - -The intention of the agenda is not to approve or review all patches; -that should happen continuously on GitHub and be handled by the larger -group of Collaborators. - -Any community member or contributor can ask that something be added to -the next meeting's agenda by logging a GitHub Issue. Any Collaborator, -WG member or the moderator can add the item to the agenda by adding -the ***WG-agenda*** tag to the issue. - -Prior to each WG meeting the moderator will share the Agenda with -members of the WG. WG members can add any items they like to the -agenda at the beginning of each meeting. The moderator and the WG -cannot veto or remove items. - -The WG may invite persons or representatives from certain projects to -participate in a non-voting capacity. - -The moderator is responsible for summarizing the discussion of each -agenda item and sends it as a pull request after the meeting. - -### Consensus Seeking Process - -The WG follows a -[Consensus -Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making) -decision-making model. - -When an agenda item has appeared to reach a consensus the moderator -will ask "Does anyone object?" as a final call for dissent from the -consensus. - -If an agenda item cannot reach a consensus a WG member can call for -either a closing vote or a vote to table the issue to the next -meeting. The call for a vote must be seconded by a majority of the WG -or else the discussion will continue. Simple majority wins. - -Note that changes to WG membership require a majority consensus. See -"WG Membership" above. diff --git a/node_modules/merge-stream/node_modules/readable-stream/LICENSE b/node_modules/merge-stream/node_modules/readable-stream/LICENSE deleted file mode 100644 index 2873b3b..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Node.js is licensed for use as follows: - -""" -Copyright Node.js 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. -""" - -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: - -""" -Copyright Joyent, Inc. and other Node 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/merge-stream/node_modules/readable-stream/README.md b/node_modules/merge-stream/node_modules/readable-stream/README.md deleted file mode 100644 index 6cc54ca..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# readable-stream - -***Node-core v7.0.0 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream) - - -[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/) -[![NPM](https://nodei.co/npm-dl/readable-stream.png?&months=6&height=3)](https://nodei.co/npm/readable-stream/) - - -[![Sauce Test Status](https://saucelabs.com/browser-matrix/readable-stream.svg)](https://saucelabs.com/u/readable-stream) - -```bash -npm install --save readable-stream -``` - -***Node-core streams for userland*** - -This package is a mirror of the Streams2 and Streams3 implementations in -Node-core. - -Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v7.3.0/docs/api/). - -If you want to guarantee a stable streams base, regardless of what version of -Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html). - -As of version 2.0.0 **readable-stream** uses semantic versioning. - -# Streams Working Group - -`readable-stream` is maintained by the Streams Working Group, which -oversees the development and maintenance of the Streams API within -Node.js. The responsibilities of the Streams Working Group include: - -* Addressing stream issues on the Node.js issue tracker. -* Authoring and editing stream documentation within the Node.js project. -* Reviewing changes to stream subclasses within the Node.js project. -* Redirecting changes to streams from the Node.js project to this - project. -* Assisting in the implementation of stream providers within Node.js. -* Recommending versions of `readable-stream` to be included in Node.js. -* Messaging about the future of streams to give the community advance - notice of changes. - -
    -## Team Members - -* **Chris Dickinson** ([@chrisdickinson](https://github.com/chrisdickinson)) <christopher.s.dickinson@gmail.com> - - Release GPG key: 9554F04D7259F04124DE6B476D5A82AC7E37093B -* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) <calvin.metcalf@gmail.com> - - Release GPG key: F3EF5F62A87FC27A22E643F714CE4FF5015AA242 -* **Rod Vagg** ([@rvagg](https://github.com/rvagg)) <rod@vagg.org> - - Release GPG key: DD8F2338BAE7501E3DD5AC78C273792F7D83545D -* **Sam Newman** ([@sonewman](https://github.com/sonewman)) <newmansam@outlook.com> -* **Mathias Buus** ([@mafintosh](https://github.com/mafintosh)) <mathiasbuus@gmail.com> -* **Domenic Denicola** ([@domenic](https://github.com/domenic)) <d@domenic.me> -* **Matteo Collina** ([@mcollina](https://github.com/mcollina)) <matteo.collina@gmail.com> - - Release GPG key: 3ABC01543F22DD2239285CDD818674489FBC127E diff --git a/node_modules/merge-stream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md b/node_modules/merge-stream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md deleted file mode 100644 index 83275f1..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +++ /dev/null @@ -1,60 +0,0 @@ -# streams WG Meeting 2015-01-30 - -## Links - -* **Google Hangouts Video**: http://www.youtube.com/watch?v=I9nDOSGfwZg -* **GitHub Issue**: https://github.com/iojs/readable-stream/issues/106 -* **Original Minutes Google Doc**: https://docs.google.com/document/d/17aTgLnjMXIrfjgNaTUnHQO7m3xgzHR2VXBTmi03Qii4/ - -## Agenda - -Extracted from https://github.com/iojs/readable-stream/labels/wg-agenda prior to meeting. - -* adopt a charter [#105](https://github.com/iojs/readable-stream/issues/105) -* release and versioning strategy [#101](https://github.com/iojs/readable-stream/issues/101) -* simpler stream creation [#102](https://github.com/iojs/readable-stream/issues/102) -* proposal: deprecate implicit flowing of streams [#99](https://github.com/iojs/readable-stream/issues/99) - -## Minutes - -### adopt a charter - -* group: +1's all around - -### What versioning scheme should be adopted? -* group: +1’s 3.0.0 -* domenic+group: pulling in patches from other sources where appropriate -* mikeal: version independently, suggesting versions for io.js -* mikeal+domenic: work with TC to notify in advance of changes -simpler stream creation - -### streamline creation of streams -* sam: streamline creation of streams -* domenic: nice simple solution posted - but, we lose the opportunity to change the model - may not be backwards incompatible (double check keys) - - **action item:** domenic will check - -### remove implicit flowing of streams on(‘data’) -* add isFlowing / isPaused -* mikeal: worrying that we’re documenting polyfill methods – confuses users -* domenic: more reflective API is probably good, with warning labels for users -* new section for mad scientists (reflective stream access) -* calvin: name the “third state” -* mikeal: maybe borrow the name from whatwg? -* domenic: we’re missing the “third state” -* consensus: kind of difficult to name the third state -* mikeal: figure out differences in states / compat -* mathias: always flow on data – eliminates third state - * explore what it breaks - -**action items:** -* ask isaac for ability to list packages by what public io.js APIs they use (esp. Stream) -* ask rod/build for infrastructure -* **chris**: explore the “flow on data” approach -* add isPaused/isFlowing -* add new docs section -* move isPaused to that section - - diff --git a/node_modules/merge-stream/node_modules/readable-stream/duplex.js b/node_modules/merge-stream/node_modules/readable-stream/duplex.js deleted file mode 100644 index ca807af..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/duplex.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_duplex.js") diff --git a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_duplex.js deleted file mode 100644 index 736693b..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_duplex.js +++ /dev/null @@ -1,75 +0,0 @@ -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. - -'use strict'; - -/**/ - -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) { - keys.push(key); - }return keys; -}; -/**/ - -module.exports = Duplex; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -var Readable = require('./_stream_readable'); -var Writable = require('./_stream_writable'); - -util.inherits(Duplex, Readable); - -var keys = objectKeys(Writable.prototype); -for (var v = 0; v < keys.length; v++) { - var method = keys[v]; - if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; -} - -function Duplex(options) { - if (!(this instanceof Duplex)) return new Duplex(options); - - Readable.call(this, options); - Writable.call(this, options); - - if (options && options.readable === false) this.readable = false; - - if (options && options.writable === false) this.writable = false; - - this.allowHalfOpen = true; - if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; - - this.once('end', onend); -} - -// the no-half-open enforcer -function onend() { - // if we allow half-open state, or if the writable side ended, - // then we're ok. - if (this.allowHalfOpen || this._writableState.ended) return; - - // no more data can be written. - // But allow more writes to happen in this tick. - processNextTick(onEndNT, this); -} - -function onEndNT(self) { - self.end(); -} - -function forEach(xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} \ No newline at end of file diff --git a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_passthrough.js deleted file mode 100644 index d06f71f..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_passthrough.js +++ /dev/null @@ -1,26 +0,0 @@ -// a passthrough stream. -// basically just the most minimal sort of Transform stream. -// Every written chunk gets output as-is. - -'use strict'; - -module.exports = PassThrough; - -var Transform = require('./_stream_transform'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -util.inherits(PassThrough, Transform); - -function PassThrough(options) { - if (!(this instanceof PassThrough)) return new PassThrough(options); - - Transform.call(this, options); -} - -PassThrough.prototype._transform = function (chunk, encoding, cb) { - cb(null, chunk); -}; \ No newline at end of file diff --git a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_readable.js deleted file mode 100644 index 3a7d42d..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_readable.js +++ /dev/null @@ -1,941 +0,0 @@ -'use strict'; - -module.exports = Readable; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var isArray = require('isarray'); -/**/ - -/**/ -var Duplex; -/**/ - -Readable.ReadableState = ReadableState; - -/**/ -var EE = require('events').EventEmitter; - -var EElistenerCount = function (emitter, type) { - return emitter.listeners(type).length; -}; -/**/ - -/**/ -var Stream; -(function () { - try { - Stream = require('st' + 'ream'); - } catch (_) {} finally { - if (!Stream) Stream = require('events').EventEmitter; - } -})(); -/**/ - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -/**/ -var debugUtil = require('util'); -var debug = void 0; -if (debugUtil && debugUtil.debuglog) { - debug = debugUtil.debuglog('stream'); -} else { - debug = function () {}; -} -/**/ - -var BufferList = require('./internal/streams/BufferList'); -var StringDecoder; - -util.inherits(Readable, Stream); - -function prependListener(emitter, event, fn) { - // Sadly this is not cacheable as some libraries bundle their own - // event emitter implementation with them. - if (typeof emitter.prependListener === 'function') { - return emitter.prependListener(event, fn); - } else { - // This is a hack to make sure that our error handler is attached before any - // userland ones. NEVER DO THIS. This is here only because this code needs - // to continue to work with older versions of Node.js that do not include - // the prependListener() method. The goal is to eventually remove this hack. - if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; - } -} - -function ReadableState(options, stream) { - Duplex = Duplex || require('./_stream_duplex'); - - options = options || {}; - - // object stream flag. Used to make read(n) ignore n and to - // make all the buffer merging and length checks go away - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode; - - // the point at which it stops calling _read() to fill the buffer - // Note: 0 is a valid value, means "don't call _read preemptively ever" - var hwm = options.highWaterMark; - var defaultHwm = this.objectMode ? 16 : 16 * 1024; - this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; - - // cast to ints. - this.highWaterMark = ~ ~this.highWaterMark; - - // A linked list is used to store data chunks instead of an array because the - // linked list can remove elements from the beginning faster than - // array.shift() - this.buffer = new BufferList(); - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // whenever we return null, then we set a flag to say - // that we're awaiting a 'readable' event emission. - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - this.resumeScheduled = false; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // when piping, we only care about 'readable' events that happen - // after read()ing all the bytes and not getting any pushback. - this.ranOut = false; - - // the number of writers that are awaiting a drain event in .pipe()s - this.awaitDrain = 0; - - // if true, a maybeReadMore has been scheduled - this.readingMore = false; - - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } -} - -function Readable(options) { - Duplex = Duplex || require('./_stream_duplex'); - - if (!(this instanceof Readable)) return new Readable(options); - - this._readableState = new ReadableState(options, this); - - // legacy - this.readable = true; - - if (options && typeof options.read === 'function') this._read = options.read; - - Stream.call(this); -} - -// Manually shove something into the read() buffer. -// This returns true if the highWaterMark has not been hit yet, -// similar to how Writable.write() returns true if you should -// write() some more. -Readable.prototype.push = function (chunk, encoding) { - var state = this._readableState; - - if (!state.objectMode && typeof chunk === 'string') { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = bufferShim.from(chunk, encoding); - encoding = ''; - } - } - - return readableAddChunk(this, state, chunk, encoding, false); -}; - -// Unshift should *always* be something directly out of read() -Readable.prototype.unshift = function (chunk) { - var state = this._readableState; - return readableAddChunk(this, state, chunk, '', true); -}; - -Readable.prototype.isPaused = function () { - return this._readableState.flowing === false; -}; - -function readableAddChunk(stream, state, chunk, encoding, addToFront) { - var er = chunkInvalid(state, chunk); - if (er) { - stream.emit('error', er); - } else if (chunk === null) { - state.reading = false; - onEofChunk(stream, state); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (state.ended && !addToFront) { - var e = new Error('stream.push() after EOF'); - stream.emit('error', e); - } else if (state.endEmitted && addToFront) { - var _e = new Error('stream.unshift() after end event'); - stream.emit('error', _e); - } else { - var skipAdd; - if (state.decoder && !addToFront && !encoding) { - chunk = state.decoder.write(chunk); - skipAdd = !state.objectMode && chunk.length === 0; - } - - if (!addToFront) state.reading = false; - - // Don't add to the buffer if we've decoded to an empty string chunk and - // we're not in object mode - if (!skipAdd) { - // if we want the data now, just emit it. - if (state.flowing && state.length === 0 && !state.sync) { - stream.emit('data', chunk); - stream.read(0); - } else { - // update the buffer info. - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); - - if (state.needReadable) emitReadable(stream); - } - } - - maybeReadMore(stream, state); - } - } else if (!addToFront) { - state.reading = false; - } - - return needMoreData(state); -} - -// if it's past the high water mark, we can push in some more. -// Also, if we have no data yet, we can stand some -// more bytes. This is to work around cases where hwm=0, -// such as the repl. Also, if the push() triggered a -// readable event, and the user called read(largeNumber) such that -// needReadable was set, then we ought to push more, so that another -// 'readable' event will be triggered. -function needMoreData(state) { - return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); -} - -// backwards compatibility. -Readable.prototype.setEncoding = function (enc) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; - this._readableState.decoder = new StringDecoder(enc); - this._readableState.encoding = enc; - return this; -}; - -// Don't raise the hwm > 8MB -var MAX_HWM = 0x800000; -function computeNewHighWaterMark(n) { - if (n >= MAX_HWM) { - n = MAX_HWM; - } else { - // Get the next highest power of 2 to prevent increasing hwm excessively in - // tiny amounts - n--; - n |= n >>> 1; - n |= n >>> 2; - n |= n >>> 4; - n |= n >>> 8; - n |= n >>> 16; - n++; - } - return n; -} - -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function howMuchToRead(n, state) { - if (n <= 0 || state.length === 0 && state.ended) return 0; - if (state.objectMode) return 1; - if (n !== n) { - // Only flow one buffer at a time - if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; - } - // If we're asking for more than the current hwm, then raise the hwm. - if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); - if (n <= state.length) return n; - // Don't have enough - if (!state.ended) { - state.needReadable = true; - return 0; - } - return state.length; -} - -// you can override either this method, or the async _read(n) below. -Readable.prototype.read = function (n) { - debug('read', n); - n = parseInt(n, 10); - var state = this._readableState; - var nOrig = n; - - if (n !== 0) state.emittedReadable = false; - - // if we're doing read(0) to trigger a readable event, but we - // already have a bunch of data in the buffer, then just trigger - // the 'readable' event and move on. - if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { - debug('read: emitReadable', state.length, state.ended); - if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); - return null; - } - - n = howMuchToRead(n, state); - - // if we've ended, and we're now clear, then finish it up. - if (n === 0 && state.ended) { - if (state.length === 0) endReadable(this); - return null; - } - - // All the actual chunk generation logic needs to be - // *below* the call to _read. The reason is that in certain - // synthetic stream cases, such as passthrough streams, _read - // may be a completely synchronous operation which may change - // the state of the read buffer, providing enough data when - // before there was *not* enough. - // - // So, the steps are: - // 1. Figure out what the state of things will be after we do - // a read from the buffer. - // - // 2. If that resulting state will trigger a _read, then call _read. - // Note that this may be asynchronous, or synchronous. Yes, it is - // deeply ugly to write APIs this way, but that still doesn't mean - // that the Readable class should behave improperly, as streams are - // designed to be sync/async agnostic. - // Take note if the _read call is sync or async (ie, if the read call - // has returned yet), so that we know whether or not it's safe to emit - // 'readable' etc. - // - // 3. Actually pull the requested chunks out of the buffer and return. - - // if we need a readable event, then we need to do some reading. - var doRead = state.needReadable; - debug('need readable', doRead); - - // if we currently have less than the highWaterMark, then also read some - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug('length less than watermark', doRead); - } - - // however, if we've ended, then there's no point, and if we're already - // reading, then it's unnecessary. - if (state.ended || state.reading) { - doRead = false; - debug('reading or ended', doRead); - } else if (doRead) { - debug('do read'); - state.reading = true; - state.sync = true; - // if the length is currently zero, then we *need* a readable event. - if (state.length === 0) state.needReadable = true; - // call internal read method - this._read(state.highWaterMark); - state.sync = false; - // If _read pushed data synchronously, then `reading` will be false, - // and we need to re-evaluate how much data we can return to the user. - if (!state.reading) n = howMuchToRead(nOrig, state); - } - - var ret; - if (n > 0) ret = fromList(n, state);else ret = null; - - if (ret === null) { - state.needReadable = true; - n = 0; - } else { - state.length -= n; - } - - if (state.length === 0) { - // If we have nothing in the buffer, then we want to know - // as soon as we *do* get something into the buffer. - if (!state.ended) state.needReadable = true; - - // If we tried to read() past the EOF, then emit end on the next tick. - if (nOrig !== n && state.ended) endReadable(this); - } - - if (ret !== null) this.emit('data', ret); - - return ret; -}; - -function chunkInvalid(state, chunk) { - var er = null; - if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { - er = new TypeError('Invalid non-string/buffer chunk'); - } - return er; -} - -function onEofChunk(stream, state) { - if (state.ended) return; - if (state.decoder) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - - // emit 'readable' now to make sure it gets picked up. - emitReadable(stream); -} - -// Don't emit readable right away in sync mode, because this can trigger -// another read() call => stack overflow. This way, it might trigger -// a nextTick recursion warning, but that's not so bad. -function emitReadable(stream) { - var state = stream._readableState; - state.needReadable = false; - if (!state.emittedReadable) { - debug('emitReadable', state.flowing); - state.emittedReadable = true; - if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream); - } -} - -function emitReadable_(stream) { - debug('emit readable'); - stream.emit('readable'); - flow(stream); -} - -// at this point, the user has presumably seen the 'readable' event, -// and called read() to consume some data. that may have triggered -// in turn another _read(n) call, in which case reading = true if -// it's in progress. -// However, if we're not ended, or reading, and the length < hwm, -// then go ahead and try to read some more preemptively. -function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - processNextTick(maybeReadMore_, stream, state); - } -} - -function maybeReadMore_(stream, state) { - var len = state.length; - while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { - debug('maybeReadMore read 0'); - stream.read(0); - if (len === state.length) - // didn't get any data, stop spinning. - break;else len = state.length; - } - state.readingMore = false; -} - -// abstract method. to be overridden in specific implementation classes. -// call cb(er, data) where data is <= n in length. -// for virtual (non-string, non-buffer) streams, "length" is somewhat -// arbitrary, and perhaps not very meaningful. -Readable.prototype._read = function (n) { - this.emit('error', new Error('_read() is not implemented')); -}; - -Readable.prototype.pipe = function (dest, pipeOpts) { - var src = this; - var state = this._readableState; - - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); - - var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; - - var endFn = doEnd ? onend : cleanup; - if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn); - - dest.on('unpipe', onunpipe); - function onunpipe(readable) { - debug('onunpipe'); - if (readable === src) { - cleanup(); - } - } - - function onend() { - debug('onend'); - dest.end(); - } - - // when the dest drains, it reduces the awaitDrain counter - // on the source. This would be more elegant with a .once() - // handler in flow(), but adding and removing repeatedly is - // too slow. - var ondrain = pipeOnDrain(src); - dest.on('drain', ondrain); - - var cleanedUp = false; - function cleanup() { - debug('cleanup'); - // cleanup event handlers once the pipe is broken - dest.removeListener('close', onclose); - dest.removeListener('finish', onfinish); - dest.removeListener('drain', ondrain); - dest.removeListener('error', onerror); - dest.removeListener('unpipe', onunpipe); - src.removeListener('end', onend); - src.removeListener('end', cleanup); - src.removeListener('data', ondata); - - cleanedUp = true; - - // if the reader is waiting for a drain event from this - // specific writer, then it would cause it to never start - // flowing again. - // So, if this is awaiting a drain, then we just call it now. - // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); - } - - // If the user pushes more data while we're writing to dest then we'll end up - // in ondata again. However, we only want to increase awaitDrain once because - // dest will only emit one 'drain' event for the multiple writes. - // => Introduce a guard on increasing awaitDrain. - var increasedAwaitDrain = false; - src.on('data', ondata); - function ondata(chunk) { - debug('ondata'); - increasedAwaitDrain = false; - var ret = dest.write(chunk); - if (false === ret && !increasedAwaitDrain) { - // If the user unpiped during `dest.write()`, it is possible - // to get stuck in a permanently paused state if that write - // also returned false. - // => Check whether `dest` is still a piping destination. - if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { - debug('false write response, pause', src._readableState.awaitDrain); - src._readableState.awaitDrain++; - increasedAwaitDrain = true; - } - src.pause(); - } - } - - // if the dest has an error, then stop piping into it. - // however, don't suppress the throwing behavior for this. - function onerror(er) { - debug('onerror', er); - unpipe(); - dest.removeListener('error', onerror); - if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); - } - - // Make sure our error handler is attached before userland ones. - prependListener(dest, 'error', onerror); - - // Both close and finish should trigger unpipe, but only once. - function onclose() { - dest.removeListener('finish', onfinish); - unpipe(); - } - dest.once('close', onclose); - function onfinish() { - debug('onfinish'); - dest.removeListener('close', onclose); - unpipe(); - } - dest.once('finish', onfinish); - - function unpipe() { - debug('unpipe'); - src.unpipe(dest); - } - - // tell the dest that it's being piped to - dest.emit('pipe', src); - - // start the flow if it hasn't been started already. - if (!state.flowing) { - debug('pipe resume'); - src.resume(); - } - - return dest; -}; - -function pipeOnDrain(src) { - return function () { - var state = src._readableState; - debug('pipeOnDrain', state.awaitDrain); - if (state.awaitDrain) state.awaitDrain--; - if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { - state.flowing = true; - flow(src); - } - }; -} - -Readable.prototype.unpipe = function (dest) { - var state = this._readableState; - - // if we're not piping anywhere, then do nothing. - if (state.pipesCount === 0) return this; - - // just one destination. most common case. - if (state.pipesCount === 1) { - // passed in one, but it's not the right one. - if (dest && dest !== state.pipes) return this; - - if (!dest) dest = state.pipes; - - // got a match. - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) dest.emit('unpipe', this); - return this; - } - - // slow case. multiple pipe destinations. - - if (!dest) { - // remove all. - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - - for (var i = 0; i < len; i++) { - dests[i].emit('unpipe', this); - }return this; - } - - // try to find the right one. - var index = indexOf(state.pipes, dest); - if (index === -1) return this; - - state.pipes.splice(index, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) state.pipes = state.pipes[0]; - - dest.emit('unpipe', this); - - return this; -}; - -// set up data events if they are asked for -// Ensure readable listeners eventually get something -Readable.prototype.on = function (ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - - if (ev === 'data') { - // Start flowing on next tick if stream isn't explicitly paused - if (this._readableState.flowing !== false) this.resume(); - } else if (ev === 'readable') { - var state = this._readableState; - if (!state.endEmitted && !state.readableListening) { - state.readableListening = state.needReadable = true; - state.emittedReadable = false; - if (!state.reading) { - processNextTick(nReadingNextTick, this); - } else if (state.length) { - emitReadable(this, state); - } - } - } - - return res; -}; -Readable.prototype.addListener = Readable.prototype.on; - -function nReadingNextTick(self) { - debug('readable nexttick read 0'); - self.read(0); -} - -// pause() and resume() are remnants of the legacy readable stream API -// If the user uses them, then switch into old mode. -Readable.prototype.resume = function () { - var state = this._readableState; - if (!state.flowing) { - debug('resume'); - state.flowing = true; - resume(this, state); - } - return this; -}; - -function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - processNextTick(resume_, stream, state); - } -} - -function resume_(stream, state) { - if (!state.reading) { - debug('resume read 0'); - stream.read(0); - } - - state.resumeScheduled = false; - state.awaitDrain = 0; - stream.emit('resume'); - flow(stream); - if (state.flowing && !state.reading) stream.read(0); -} - -Readable.prototype.pause = function () { - debug('call pause flowing=%j', this._readableState.flowing); - if (false !== this._readableState.flowing) { - debug('pause'); - this._readableState.flowing = false; - this.emit('pause'); - } - return this; -}; - -function flow(stream) { - var state = stream._readableState; - debug('flow', state.flowing); - while (state.flowing && stream.read() !== null) {} -} - -// wrap an old-style stream as the async data source. -// This is *not* part of the readable stream interface. -// It is an ugly unfortunate mess of history. -Readable.prototype.wrap = function (stream) { - var state = this._readableState; - var paused = false; - - var self = this; - stream.on('end', function () { - debug('wrapped end'); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) self.push(chunk); - } - - self.push(null); - }); - - stream.on('data', function (chunk) { - debug('wrapped data'); - if (state.decoder) chunk = state.decoder.write(chunk); - - // don't skip over falsy values in objectMode - if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; - - var ret = self.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); - - // proxy all the other methods. - // important when wrapping filters and duplexes. - for (var i in stream) { - if (this[i] === undefined && typeof stream[i] === 'function') { - this[i] = function (method) { - return function () { - return stream[method].apply(stream, arguments); - }; - }(i); - } - } - - // proxy certain important events. - var events = ['error', 'close', 'destroy', 'pause', 'resume']; - forEach(events, function (ev) { - stream.on(ev, self.emit.bind(self, ev)); - }); - - // when we try to consume some more bytes, simply unpause the - // underlying stream. - self._read = function (n) { - debug('wrapped _read', n); - if (paused) { - paused = false; - stream.resume(); - } - }; - - return self; -}; - -// exposed for testing purposes only. -Readable._fromList = fromList; - -// Pluck off n bytes from an array of buffers. -// Length is the combined lengths of all the buffers in the list. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function fromList(n, state) { - // nothing buffered - if (state.length === 0) return null; - - var ret; - if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { - // read it all, truncate the list - if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length); - state.buffer.clear(); - } else { - // read part of list - ret = fromListPartial(n, state.buffer, state.decoder); - } - - return ret; -} - -// Extracts only enough buffered data to satisfy the amount requested. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function fromListPartial(n, list, hasStrings) { - var ret; - if (n < list.head.data.length) { - // slice is the same for buffers and strings - ret = list.head.data.slice(0, n); - list.head.data = list.head.data.slice(n); - } else if (n === list.head.data.length) { - // first chunk is a perfect match - ret = list.shift(); - } else { - // result spans more than one buffer - ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); - } - return ret; -} - -// Copies a specified amount of characters from the list of buffered data -// chunks. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function copyFromBufferString(n, list) { - var p = list.head; - var c = 1; - var ret = p.data; - n -= ret.length; - while (p = p.next) { - var str = p.data; - var nb = n > str.length ? str.length : n; - if (nb === str.length) ret += str;else ret += str.slice(0, n); - n -= nb; - if (n === 0) { - if (nb === str.length) { - ++c; - if (p.next) list.head = p.next;else list.head = list.tail = null; - } else { - list.head = p; - p.data = str.slice(nb); - } - break; - } - ++c; - } - list.length -= c; - return ret; -} - -// Copies a specified amount of bytes from the list of buffered data chunks. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function copyFromBuffer(n, list) { - var ret = bufferShim.allocUnsafe(n); - var p = list.head; - var c = 1; - p.data.copy(ret); - n -= p.data.length; - while (p = p.next) { - var buf = p.data; - var nb = n > buf.length ? buf.length : n; - buf.copy(ret, ret.length - n, 0, nb); - n -= nb; - if (n === 0) { - if (nb === buf.length) { - ++c; - if (p.next) list.head = p.next;else list.head = list.tail = null; - } else { - list.head = p; - p.data = buf.slice(nb); - } - break; - } - ++c; - } - list.length -= c; - return ret; -} - -function endReadable(stream) { - var state = stream._readableState; - - // If we get here before consuming all the bytes, then that is a - // bug in node. Should never happen. - if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); - - if (!state.endEmitted) { - state.ended = true; - processNextTick(endReadableNT, state, stream); - } -} - -function endReadableNT(state, stream) { - // Check that we didn't get one last unshift. - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit('end'); - } -} - -function forEach(xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} - -function indexOf(xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) return i; - } - return -1; -} \ No newline at end of file diff --git a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_transform.js deleted file mode 100644 index cd25832..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_transform.js +++ /dev/null @@ -1,182 +0,0 @@ -// a transform stream is a readable/writable stream where you do -// something with the data. Sometimes it's called a "filter", -// but that's not a great name for it, since that implies a thing where -// some bits pass through, and others are simply ignored. (That would -// be a valid example of a transform, of course.) -// -// While the output is causally related to the input, it's not a -// necessarily symmetric or synchronous transformation. For example, -// a zlib stream might take multiple plain-text writes(), and then -// emit a single compressed chunk some time in the future. -// -// Here's how this works: -// -// The Transform stream has all the aspects of the readable and writable -// stream classes. When you write(chunk), that calls _write(chunk,cb) -// internally, and returns false if there's a lot of pending writes -// buffered up. When you call read(), that calls _read(n) until -// there's enough pending readable data buffered up. -// -// In a transform stream, the written data is placed in a buffer. When -// _read(n) is called, it transforms the queued up data, calling the -// buffered _write cb's as it consumes chunks. If consuming a single -// written chunk would result in multiple output chunks, then the first -// outputted bit calls the readcb, and subsequent chunks just go into -// the read buffer, and will cause it to emit 'readable' if necessary. -// -// This way, back-pressure is actually determined by the reading side, -// since _read has to be called to start processing a new chunk. However, -// a pathological inflate type of transform can cause excessive buffering -// here. For example, imagine a stream where every byte of input is -// interpreted as an integer from 0-255, and then results in that many -// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in -// 1kb of data being output. In this case, you could write a very small -// amount of input, and end up with a very large amount of output. In -// such a pathological inflating mechanism, there'd be no way to tell -// the system to stop doing the transform. A single 4MB write could -// cause the system to run out of memory. -// -// However, even in such a pathological case, only a single written chunk -// would be consumed, and then the rest would wait (un-transformed) until -// the results of the previous transformed chunk were consumed. - -'use strict'; - -module.exports = Transform; - -var Duplex = require('./_stream_duplex'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -util.inherits(Transform, Duplex); - -function TransformState(stream) { - this.afterTransform = function (er, data) { - return afterTransform(stream, er, data); - }; - - this.needTransform = false; - this.transforming = false; - this.writecb = null; - this.writechunk = null; - this.writeencoding = null; -} - -function afterTransform(stream, er, data) { - var ts = stream._transformState; - ts.transforming = false; - - var cb = ts.writecb; - - if (!cb) return stream.emit('error', new Error('no writecb in Transform class')); - - ts.writechunk = null; - ts.writecb = null; - - if (data !== null && data !== undefined) stream.push(data); - - cb(er); - - var rs = stream._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - stream._read(rs.highWaterMark); - } -} - -function Transform(options) { - if (!(this instanceof Transform)) return new Transform(options); - - Duplex.call(this, options); - - this._transformState = new TransformState(this); - - var stream = this; - - // start out asking for a readable event once data is transformed. - this._readableState.needReadable = true; - - // we have implemented the _read method, and done the other things - // that Readable wants before the first _read call, so unset the - // sync guard flag. - this._readableState.sync = false; - - if (options) { - if (typeof options.transform === 'function') this._transform = options.transform; - - if (typeof options.flush === 'function') this._flush = options.flush; - } - - // When the writable side finishes, then flush out anything remaining. - this.once('prefinish', function () { - if (typeof this._flush === 'function') this._flush(function (er, data) { - done(stream, er, data); - });else done(stream); - }); -} - -Transform.prototype.push = function (chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); -}; - -// This is the part where you do stuff! -// override this function in implementation classes. -// 'chunk' is an input chunk. -// -// Call `push(newChunk)` to pass along transformed output -// to the readable side. You may call 'push' zero or more times. -// -// Call `cb(err)` when you are done with this chunk. If you pass -// an error, then that'll put the hurt on the whole operation. If you -// never call cb(), then you'll never get another chunk. -Transform.prototype._transform = function (chunk, encoding, cb) { - throw new Error('_transform() is not implemented'); -}; - -Transform.prototype._write = function (chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); - } -}; - -// Doesn't matter what the args are here. -// _transform does all the work. -// That we got here means that the readable side wants more data. -Transform.prototype._read = function (n) { - var ts = this._transformState; - - if (ts.writechunk !== null && ts.writecb && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - // mark that we need a transform, so that any data that comes in - // will get processed, now that we've asked for it. - ts.needTransform = true; - } -}; - -function done(stream, er, data) { - if (er) return stream.emit('error', er); - - if (data !== null && data !== undefined) stream.push(data); - - // if there's nothing in the write buffer, then that means - // that nothing more will ever be provided - var ws = stream._writableState; - var ts = stream._transformState; - - if (ws.length) throw new Error('Calling transform done when ws.length != 0'); - - if (ts.transforming) throw new Error('Calling transform done when still transforming'); - - return stream.push(null); -} \ No newline at end of file diff --git a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_writable.js deleted file mode 100644 index 4d9c62b..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/lib/_stream_writable.js +++ /dev/null @@ -1,554 +0,0 @@ -// A bit simpler than readable streams. -// Implement an async ._write(chunk, encoding, cb), and it'll handle all -// the drain event emission and buffering. - -'use strict'; - -module.exports = Writable; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick; -/**/ - -/**/ -var Duplex; -/**/ - -Writable.WritableState = WritableState; - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -/**/ -var internalUtil = { - deprecate: require('util-deprecate') -}; -/**/ - -/**/ -var Stream; -(function () { - try { - Stream = require('st' + 'ream'); - } catch (_) {} finally { - if (!Stream) Stream = require('events').EventEmitter; - } -})(); -/**/ - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -util.inherits(Writable, Stream); - -function nop() {} - -function WriteReq(chunk, encoding, cb) { - this.chunk = chunk; - this.encoding = encoding; - this.callback = cb; - this.next = null; -} - -function WritableState(options, stream) { - Duplex = Duplex || require('./_stream_duplex'); - - options = options || {}; - - // object stream flag to indicate whether or not this stream - // contains buffers or objects. - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode; - - // the point at which write() starts returning false - // Note: 0 is a valid value, means that we always return false if - // the entire buffer is not flushed immediately on write() - var hwm = options.highWaterMark; - var defaultHwm = this.objectMode ? 16 : 16 * 1024; - this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; - - // cast to ints. - this.highWaterMark = ~ ~this.highWaterMark; - - // drain event flag. - this.needDrain = false; - // at the start of calling end() - this.ending = false; - // when end() has been called, and returned - this.ended = false; - // when 'finish' is emitted - this.finished = false; - - // should we decode strings into buffers before passing to _write? - // this is here so that some node-core streams can optimize string - // handling at a lower level. - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // not an actual buffer we keep track of, but a measurement - // of how much we're waiting to get pushed to some underlying - // socket or file. - this.length = 0; - - // a flag to see when we're in the middle of a write. - this.writing = false; - - // when true all writes will be buffered until .uncork() call - this.corked = 0; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // a flag to know if we're processing previously buffered items, which - // may call the _write() callback in the same tick, so that we don't - // end up in an overlapped onwrite situation. - this.bufferProcessing = false; - - // the callback that's passed to _write(chunk,cb) - this.onwrite = function (er) { - onwrite(stream, er); - }; - - // the callback that the user supplies to write(chunk,encoding,cb) - this.writecb = null; - - // the amount that is being written when _write is called. - this.writelen = 0; - - this.bufferedRequest = null; - this.lastBufferedRequest = null; - - // number of pending user-supplied write callbacks - // this must be 0 before 'finish' can be emitted - this.pendingcb = 0; - - // emit prefinish if the only thing we're waiting for is _write cbs - // This is relevant for synchronous Transform streams - this.prefinished = false; - - // True if the error was already emitted and should not be thrown again - this.errorEmitted = false; - - // count buffered requests - this.bufferedRequestCount = 0; - - // allocate the first CorkedRequest, there is always - // one allocated and free to use, and we maintain at most two - this.corkedRequestsFree = new CorkedRequest(this); -} - -WritableState.prototype.getBuffer = function getBuffer() { - var current = this.bufferedRequest; - var out = []; - while (current) { - out.push(current); - current = current.next; - } - return out; -}; - -(function () { - try { - Object.defineProperty(WritableState.prototype, 'buffer', { - get: internalUtil.deprecate(function () { - return this.getBuffer(); - }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.') - }); - } catch (_) {} -})(); - -// Test _writableState for inheritance to account for Duplex streams, -// whose prototype chain only points to Readable. -var realHasInstance; -if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { - realHasInstance = Function.prototype[Symbol.hasInstance]; - Object.defineProperty(Writable, Symbol.hasInstance, { - value: function (object) { - if (realHasInstance.call(this, object)) return true; - - return object && object._writableState instanceof WritableState; - } - }); -} else { - realHasInstance = function (object) { - return object instanceof this; - }; -} - -function Writable(options) { - Duplex = Duplex || require('./_stream_duplex'); - - // Writable ctor is applied to Duplexes, too. - // `realHasInstance` is necessary because using plain `instanceof` - // would return false, as no `_writableState` property is attached. - - // Trying to use the custom `instanceof` for Writable here will also break the - // Node.js LazyTransform implementation, which has a non-trivial getter for - // `_writableState` that would lead to infinite recursion. - if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) { - return new Writable(options); - } - - this._writableState = new WritableState(options, this); - - // legacy. - this.writable = true; - - if (options) { - if (typeof options.write === 'function') this._write = options.write; - - if (typeof options.writev === 'function') this._writev = options.writev; - } - - Stream.call(this); -} - -// Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe = function () { - this.emit('error', new Error('Cannot pipe, not readable')); -}; - -function writeAfterEnd(stream, cb) { - var er = new Error('write after end'); - // TODO: defer error events consistently everywhere, not just the cb - stream.emit('error', er); - processNextTick(cb, er); -} - -// If we get something that is not a buffer, string, null, or undefined, -// and we're not in objectMode, then that's an error. -// Otherwise stream chunks are all considered to be of length=1, and the -// watermarks determine how many objects to keep in the buffer, rather than -// how many bytes or characters. -function validChunk(stream, state, chunk, cb) { - var valid = true; - var er = false; - // Always throw error if a null is written - // if we are not in object mode then throw - // if it is not a buffer, string, or undefined. - if (chunk === null) { - er = new TypeError('May not write null values to stream'); - } else if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { - er = new TypeError('Invalid non-string/buffer chunk'); - } - if (er) { - stream.emit('error', er); - processNextTick(cb, er); - valid = false; - } - return valid; -} - -Writable.prototype.write = function (chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - - if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - - if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; - - if (typeof cb !== 'function') cb = nop; - - if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, chunk, encoding, cb); - } - - return ret; -}; - -Writable.prototype.cork = function () { - var state = this._writableState; - - state.corked++; -}; - -Writable.prototype.uncork = function () { - var state = this._writableState; - - if (state.corked) { - state.corked--; - - if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); - } -}; - -Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { - // node::ParseEncoding() requires lower case. - if (typeof encoding === 'string') encoding = encoding.toLowerCase(); - if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); - this._writableState.defaultEncoding = encoding; - return this; -}; - -function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { - chunk = bufferShim.from(chunk, encoding); - } - return chunk; -} - -// if we're already writing something, then just put this -// in the queue, and wait our turn. Otherwise, call _write -// If we return false, then we need a drain event, so set that flag. -function writeOrBuffer(stream, state, chunk, encoding, cb) { - chunk = decodeChunk(state, chunk, encoding); - - if (Buffer.isBuffer(chunk)) encoding = 'buffer'; - var len = state.objectMode ? 1 : chunk.length; - - state.length += len; - - var ret = state.length < state.highWaterMark; - // we must ensure that previous needDrain will not be reset to false. - if (!ret) state.needDrain = true; - - if (state.writing || state.corked) { - var last = state.lastBufferedRequest; - state.lastBufferedRequest = new WriteReq(chunk, encoding, cb); - if (last) { - last.next = state.lastBufferedRequest; - } else { - state.bufferedRequest = state.lastBufferedRequest; - } - state.bufferedRequestCount += 1; - } else { - doWrite(stream, state, false, len, chunk, encoding, cb); - } - - return ret; -} - -function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); - state.sync = false; -} - -function onwriteError(stream, state, sync, er, cb) { - --state.pendingcb; - if (sync) processNextTick(cb, er);else cb(er); - - stream._writableState.errorEmitted = true; - stream.emit('error', er); -} - -function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; -} - -function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - - onwriteStateUpdate(state); - - if (er) onwriteError(stream, state, sync, er, cb);else { - // Check if we're actually ready to finish, but don't emit yet - var finished = needFinish(state); - - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { - clearBuffer(stream, state); - } - - if (sync) { - /**/ - asyncWrite(afterWrite, stream, state, finished, cb); - /**/ - } else { - afterWrite(stream, state, finished, cb); - } - } -} - -function afterWrite(stream, state, finished, cb) { - if (!finished) onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); -} - -// Must force callback to be called on nextTick, so that we don't -// emit 'drain' before the write() consumer gets the 'false' return -// value, and has a chance to attach a 'drain' listener. -function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit('drain'); - } -} - -// if there's something in the buffer waiting, then process it -function clearBuffer(stream, state) { - state.bufferProcessing = true; - var entry = state.bufferedRequest; - - if (stream._writev && entry && entry.next) { - // Fast case, write everything using _writev() - var l = state.bufferedRequestCount; - var buffer = new Array(l); - var holder = state.corkedRequestsFree; - holder.entry = entry; - - var count = 0; - while (entry) { - buffer[count] = entry; - entry = entry.next; - count += 1; - } - - doWrite(stream, state, true, state.length, buffer, '', holder.finish); - - // doWrite is almost always async, defer these to save a bit of time - // as the hot path ends with doWrite - state.pendingcb++; - state.lastBufferedRequest = null; - if (holder.next) { - state.corkedRequestsFree = holder.next; - holder.next = null; - } else { - state.corkedRequestsFree = new CorkedRequest(state); - } - } else { - // Slow case, write chunks one-by-one - while (entry) { - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - - doWrite(stream, state, false, len, chunk, encoding, cb); - entry = entry.next; - // if we didn't call the onwrite immediately, then - // it means that we need to wait until it does. - // also, that means that the chunk and cb are currently - // being processed, so move the buffer counter past them. - if (state.writing) { - break; - } - } - - if (entry === null) state.lastBufferedRequest = null; - } - - state.bufferedRequestCount = 0; - state.bufferedRequest = entry; - state.bufferProcessing = false; -} - -Writable.prototype._write = function (chunk, encoding, cb) { - cb(new Error('_write() is not implemented')); -}; - -Writable.prototype._writev = null; - -Writable.prototype.end = function (chunk, encoding, cb) { - var state = this._writableState; - - if (typeof chunk === 'function') { - cb = chunk; - chunk = null; - encoding = null; - } else if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - - if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); - - // .end() fully uncorks - if (state.corked) { - state.corked = 1; - this.uncork(); - } - - // ignore unnecessary end() calls. - if (!state.ending && !state.finished) endWritable(this, state, cb); -}; - -function needFinish(state) { - return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; -} - -function prefinish(stream, state) { - if (!state.prefinished) { - state.prefinished = true; - stream.emit('prefinish'); - } -} - -function finishMaybe(stream, state) { - var need = needFinish(state); - if (need) { - if (state.pendingcb === 0) { - prefinish(stream, state); - state.finished = true; - stream.emit('finish'); - } else { - prefinish(stream, state); - } - } - return need; -} - -function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) processNextTick(cb);else stream.once('finish', cb); - } - state.ended = true; - stream.writable = false; -} - -// It seems a linked list but it is not -// there will be only 2 of these for each stream -function CorkedRequest(state) { - var _this = this; - - this.next = null; - this.entry = null; - - this.finish = function (err) { - var entry = _this.entry; - _this.entry = null; - while (entry) { - var cb = entry.callback; - state.pendingcb--; - cb(err); - entry = entry.next; - } - if (state.corkedRequestsFree) { - state.corkedRequestsFree.next = _this; - } else { - state.corkedRequestsFree = _this; - } - }; -} \ No newline at end of file diff --git a/node_modules/merge-stream/node_modules/readable-stream/lib/internal/streams/BufferList.js b/node_modules/merge-stream/node_modules/readable-stream/lib/internal/streams/BufferList.js deleted file mode 100644 index e4bfcf0..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/lib/internal/streams/BufferList.js +++ /dev/null @@ -1,64 +0,0 @@ -'use strict'; - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -module.exports = BufferList; - -function BufferList() { - this.head = null; - this.tail = null; - this.length = 0; -} - -BufferList.prototype.push = function (v) { - var entry = { data: v, next: null }; - if (this.length > 0) this.tail.next = entry;else this.head = entry; - this.tail = entry; - ++this.length; -}; - -BufferList.prototype.unshift = function (v) { - var entry = { data: v, next: this.head }; - if (this.length === 0) this.tail = entry; - this.head = entry; - ++this.length; -}; - -BufferList.prototype.shift = function () { - if (this.length === 0) return; - var ret = this.head.data; - if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; - --this.length; - return ret; -}; - -BufferList.prototype.clear = function () { - this.head = this.tail = null; - this.length = 0; -}; - -BufferList.prototype.join = function (s) { - if (this.length === 0) return ''; - var p = this.head; - var ret = '' + p.data; - while (p = p.next) { - ret += s + p.data; - }return ret; -}; - -BufferList.prototype.concat = function (n) { - if (this.length === 0) return bufferShim.alloc(0); - if (this.length === 1) return this.head.data; - var ret = bufferShim.allocUnsafe(n >>> 0); - var p = this.head; - var i = 0; - while (p) { - p.data.copy(ret, i); - i += p.data.length; - p = p.next; - } - return ret; -}; \ No newline at end of file diff --git a/node_modules/merge-stream/node_modules/readable-stream/package.json b/node_modules/merge-stream/node_modules/readable-stream/package.json deleted file mode 100644 index 54a54c7..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/package.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "readable-stream@^2.0.1", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "^2.0.1", - "spec": ">=2.0.1 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/merge-stream" - ] - ], - "_from": "readable-stream@>=2.0.1 <3.0.0", - "_id": "readable-stream@2.2.3", - "_inCache": true, - "_location": "/merge-stream/readable-stream", - "_nodeVersion": "6.9.2", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/readable-stream-2.2.3.tgz_1487688066228_0.35690787457861006" - }, - "_npmUser": { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - }, - "_npmVersion": "4.0.5", - "_phantomChildren": {}, - "_requested": { - "raw": "readable-stream@^2.0.1", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "^2.0.1", - "spec": ">=2.0.1 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/merge-stream" - ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz", - "_shasum": "9cf49463985df016c8ae8813097a9293a9b33729", - "_shrinkwrap": null, - "_spec": "readable-stream@^2.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/merge-stream", - "browser": { - "util": false - }, - "bugs": { - "url": "https://github.com/nodejs/readable-stream/issues" - }, - "dependencies": { - "buffer-shims": "^1.0.0", - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "string_decoder": "~0.10.x", - "util-deprecate": "~1.0.1" - }, - "description": "Streams3, a user-land copy of the stream library from Node.js", - "devDependencies": { - "assert": "~1.4.0", - "babel-polyfill": "^6.9.1", - "buffer": "^4.9.0", - "nyc": "^6.4.0", - "tap": "~0.7.1", - "tape": "~4.5.1", - "zuul": "~3.10.0" - }, - "directories": {}, - "dist": { - "shasum": "9cf49463985df016c8ae8813097a9293a9b33729", - "tarball": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz" - }, - "gitHead": "4dbe6e20051e44025d3cbec3ed9603483d8b27cb", - "homepage": "https://github.com/nodejs/readable-stream#readme", - "keywords": [ - "readable", - "stream", - "pipe" - ], - "license": "MIT", - "main": "readable.js", - "maintainers": [ - { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - { - "name": "tootallnate", - "email": "nathan@tootallnate.net" - }, - { - "name": "rvagg", - "email": "rod@vagg.org" - }, - { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - } - ], - "name": "readable-stream", - "nyc": { - "include": [ - "lib/**.js" - ] - }, - "optionalDependencies": {}, - "react-native": { - "stream": false - }, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/nodejs/readable-stream.git" - }, - "scripts": { - "browser": "npm run write-zuul && zuul --browser-retries 2 -- test/browser.js", - "cover": "nyc npm test", - "local": "zuul --local 3000 --no-coverage -- test/browser.js", - "report": "nyc report --reporter=lcov", - "test": "tap test/parallel/*.js test/ours/*.js", - "write-zuul": "printf \"ui: tape\nbrowsers:\n - name: $BROWSER_NAME\n version: $BROWSER_VERSION\n\">.zuul.yml" - }, - "version": "2.2.3" -} diff --git a/node_modules/merge-stream/node_modules/readable-stream/passthrough.js b/node_modules/merge-stream/node_modules/readable-stream/passthrough.js deleted file mode 100644 index 27e8d8a..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/passthrough.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_passthrough.js") diff --git a/node_modules/merge-stream/node_modules/readable-stream/readable.js b/node_modules/merge-stream/node_modules/readable-stream/readable.js deleted file mode 100644 index be2688a..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/readable.js +++ /dev/null @@ -1,16 +0,0 @@ -var Stream = (function (){ - try { - return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify - } catch(_){} -}()); -exports = module.exports = require('./lib/_stream_readable.js'); -exports.Stream = Stream || exports; -exports.Readable = exports; -exports.Writable = require('./lib/_stream_writable.js'); -exports.Duplex = require('./lib/_stream_duplex.js'); -exports.Transform = require('./lib/_stream_transform.js'); -exports.PassThrough = require('./lib/_stream_passthrough.js'); - -if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) { - module.exports = Stream; -} diff --git a/node_modules/merge-stream/node_modules/readable-stream/transform.js b/node_modules/merge-stream/node_modules/readable-stream/transform.js deleted file mode 100644 index 5d482f0..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/transform.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_transform.js") diff --git a/node_modules/merge-stream/node_modules/readable-stream/writable.js b/node_modules/merge-stream/node_modules/readable-stream/writable.js deleted file mode 100644 index e1e9efd..0000000 --- a/node_modules/merge-stream/node_modules/readable-stream/writable.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_writable.js") diff --git a/node_modules/merge-stream/package.json b/node_modules/merge-stream/package.json deleted file mode 100644 index 63e0749..0000000 --- a/node_modules/merge-stream/package.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "merge-stream@^1.0.0", - "scope": null, - "escapedName": "merge-stream", - "name": "merge-stream", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui" - ] - ], - "_from": "merge-stream@>=1.0.0 <2.0.0", - "_id": "merge-stream@1.0.1", - "_inCache": true, - "_location": "/merge-stream", - "_nodeVersion": "7.1.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/merge-stream-1.0.1.tgz_1480049995559_0.005447877338156104" - }, - "_npmUser": { - "name": "shinnn", - "email": "snnskwtnb@gmail.com" - }, - "_npmVersion": "4.0.3", - "_phantomChildren": { - "buffer-shims": "1.0.0", - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" - }, - "_requested": { - "raw": "merge-stream@^1.0.0", - "scope": null, - "escapedName": "merge-stream", - "name": "merge-stream", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/semantic-ui", - "/ternary-stream" - ], - "_resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", - "_shasum": "4041202d508a342ba00174008df0c251b8c135e1", - "_shrinkwrap": null, - "_spec": "merge-stream@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui", - "author": { - "name": "Stephen Sugden", - "email": "me@stephensugden.com" - }, - "bugs": { - "url": "https://github.com/grncdr/merge-stream/issues" - }, - "dependencies": { - "readable-stream": "^2.0.1" - }, - "description": "Create a stream that emits events from multiple other streams", - "devDependencies": { - "from2": "^2.0.3", - "istanbul": "^0.3.2" - }, - "directories": {}, - "dist": { - "shasum": "4041202d508a342ba00174008df0c251b8c135e1", - "tarball": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz" - }, - "files": [ - "index.js" - ], - "gitHead": "1b33da64b219dcc8bf33645953c32a6fd9e3b36d", - "homepage": "https://github.com/grncdr/merge-stream#readme", - "license": "MIT", - "maintainers": [ - { - "name": "grncdr", - "email": "glurgle@gmail.com" - }, - { - "name": "shinnn", - "email": "snnskwtnb@gmail.com" - } - ], - "name": "merge-stream", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/grncdr/merge-stream.git" - }, - "scripts": { - "test": "istanbul cover test.js && istanbul check-cover --statements 100 --branches 100" - }, - "version": "1.0.1" -} diff --git a/node_modules/micromatch/LICENSE b/node_modules/micromatch/LICENSE deleted file mode 100755 index fa30c4c..0000000 --- a/node_modules/micromatch/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/micromatch/README.md b/node_modules/micromatch/README.md deleted file mode 100644 index 8fb3919..0000000 --- a/node_modules/micromatch/README.md +++ /dev/null @@ -1,689 +0,0 @@ -# micromatch [![NPM version](https://img.shields.io/npm/v/micromatch.svg?style=flat)](https://www.npmjs.com/package/micromatch) [![NPM downloads](https://img.shields.io/npm/dm/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![Build Status](https://img.shields.io/travis/jonschlinkert/micromatch.svg?style=flat)](https://travis-ci.org/jonschlinkert/micromatch) - -> Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. - -Micromatch supports all of the same matching features as [minimatch](https://github.com/isaacs/minimatch) and [multimatch](https://github.com/sindresorhus/multimatch). - -* [mm()](#usage) is the same as [multimatch()](https://github.com/sindresorhus/multimatch) -* [mm.match()](#match) is the same as [minimatch.match()](https://github.com/isaacs/minimatch) -* use [mm.isMatch()](#ismatch) instead of [minimatch()](https://github.com/isaacs/minimatch) - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save micromatch -``` - -## Start matching! - -```js -var mm = require('micromatch'); -console.log(mm([''])) -``` - -*** - -### Features - -* [Drop-in replacement](#switch-from-minimatch) for [minimatch](https://github.com/isaacs/minimatch) and [multimatch](https://github.com/sindresorhus/multimatch) -* Built-in support for multiple glob patterns, like `['foo/*.js', '!bar.js']` -* [Brace Expansion](https://github.com/jonschlinkert/braces) (`foo/bar-{1..5}.md`, `one/{two,three}/four.md`) -* Typical glob patterns, like `**/*`, `a/b/*.js`, or `['foo/*.js', '!bar.js']` -* Methods like `.isMatch()`, `.contains()` and `.any()` - -**Extended globbing features:** - -* Logical `OR` (`foo/bar/(abc|xyz).js`) -* Regex character classes (`foo/bar/baz-[1-5].js`) -* POSIX [bracket expressions](https://github.com/jonschlinkert/expand-brackets) (`**/[[:alpha:][:digit:]]/`) -* [extglobs](https://github.com/jonschlinkert/extglob) (`**/+(x|y)`, `!(a|b)`, etc). - -You can combine these to create whatever matching patterns you need. - -**Example** - -```js -// double-negation! -mm(['fa', 'fb', 'f', 'fo'], '!(f!(o))'); -//=> ['fo'] -``` - -## Why switch to micromatch? - -* Native support for multiple glob patterns, no need for wrappers like [multimatch](https://github.com/sindresorhus/multimatch) -* [10-55x faster](#benchmarks) and more performant than [minimatch](https://github.com/isaacs/minimatch) and [multimatch](https://github.com/sindresorhus/multimatch). This is achieved through a combination of caching and regex optimization strategies, a fundamentally different approach than minimatch. -* More extensive support for the Bash 4.3 specification -* More complete extglob support -* Extensive [unit tests](./test) (approx. 1,300 tests). Minimatch fails many of the tests. - -### Switch from minimatch - -Use `mm.isMatch()` instead of `minimatch()`: - -```js -mm.isMatch('foo', 'b*'); -//=> false -``` - -Use `mm.match()` instead of `minimatch.match()`: - -```js -mm.match(['foo', 'bar'], 'b*'); -//=> 'bar' -``` - -### Switch from multimatch - -Same signature: - -```js -mm(['foo', 'bar', 'baz'], ['f*', '*z']); -//=> ['foo', 'baz'] -``` - -*** - -## Usage - -Add micromatch to your node.js project: - -```js -var mm = require('micromatch'); -``` - -**Signature** - -```js -mm(array_of_strings, glob_patterns[, options]); -``` - -**Example** - -```js -mm(['foo', 'bar', 'baz'], 'b*'); -//=> ['bar', 'baz'] -``` - -### Usage examples - -**Brace expansion** - -Match files with `.js` or `.txt` extensions. - -```js -mm(['a.js', 'b.md', 'c.txt'], '*.{js,txt}'); -//=> ['a.js', 'c.txt'] -``` - -**Extglobs** - -Match anything except for files with the `.md` extension. - -```js -mm(files, '**/*.!(md)'); - -//=> ['a.js', 'c.txt'] -``` - -**Multiple patterns** - -Match using an array of patterns. - -```js -mm(['a.md', 'b.js', 'c.txt', 'd.json'], ['*.md', '*.txt']); -//=> ['a.md', 'c.txt'] -``` - -**Negation patterns:** - -Behavior is designed to be what users would expect, based on conventions that are already well-established. - -* [minimatch](https://github.com/isaacs/minimatch) behavior is used when the pattern is a string, so patterns are **inclusive by default**. -* [multimatch](https://github.com/sindresorhus/multimatch) behavior is used when an array of patterns is passed, so patterns are **exclusive by default**. - -```js -mm(['a.js', 'b.md', 'c.txt'], '!*.{js,txt}'); -//=> ['b.md'] - -mm(['a.md', 'b.js', 'c.txt', 'd.json'], ['*.*', '!*.{js,txt}']); -//=> ['a.md', 'd.json'] -``` - -*** - -## API methods - -```js -var mm = require('micromatch'); -``` - -### .match - -```js -mm.match(array, globString); -``` - -Return an array of files that match the given glob pattern. Useful if you only need to use a single glob pattern. - -**Example** - -```js -mm.match(['ab', 'a/b', 'bb', 'b/c'], '?b'); -//=> ['ab', 'bb'] - -mm.match(['ab', 'a/b', 'bb', 'b/c'], '*/b'); -//=> ['a/b'] -``` - -### .isMatch - -```js -mm.isMatch(filepath, globString); -``` - -Returns true if a file path matches the given glob pattern. - -**Example** - -```js -mm.isMatch('.verb.md', '*.md'); -//=> false - -mm.isMatch('.verb.md', '*.md', {dot: true}); -//=> true -``` - -### .contains - -Returns true if any part of a file path matches the given glob pattern. Think of this is "has path" versus "is path". - -**Example** - -`.isMatch()` would return false for both of the following: - -```js -mm.contains('a/b/c', 'a/b'); -//=> true - -mm.contains('a/b/c', 'a/*'); -//=> true -``` - -### .matcher - -Returns a function for matching using the supplied pattern. e.g. create your own "matcher". The advantage of this method is that the pattern can be compiled outside of a loop. - -**Pattern** - -Can be any of the following: - -* `glob/string` -* `regex` -* `function` - -**Example** - -```js -var isMatch = mm.matcher('*.md'); -var files = []; - -['a.md', 'b.txt', 'c.md'].forEach(function(fp) { - if (isMatch(fp)) { - files.push(fp); - } -}); -``` - -### .filter - -Returns a function that can be passed to `Array#filter()`. - -**Params** - -* `patterns` **{String|Array}**: - -**Examples** - -Single glob: - -```js -var fn = mm.filter('*.md'); -['a.js', 'b.txt', 'c.md'].filter(fn); -//=> ['c.md'] - -var fn = mm.filter('[a-c]'); -['a', 'b', 'c', 'd', 'e'].filter(fn); -//=> ['a', 'b', 'c'] -``` - -Array of glob patterns: - -```js -var arr = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]; - -var fn = mm.filter(['{1..10}', '![7-9]', '!{3..4}']); -arr.filter(fn); -//=> [1, 2, 5, 6, 10] -``` - -_(Internally this function generates the matching function by using the [matcher](#matcher) method. You can use the [matcher](#matcher) method directly to create your own filter function)_ - -### .any - -Returns true if a file path matches any of the given patterns. - -```js -mm.any(filepath, patterns, options); -``` - -**Params** - -* filepath `{String}`: The file path to test. -* patterns `{String|Array}`: One or more glob patterns -* options: `{Object}`: options to pass to the `.matcher()` method. - -**Example** - -```js -mm.any('abc', ['!*z']); -//=> true -mm.any('abc', ['a*', 'z*']); -//=> true -mm.any('abc', 'a*'); -//=> true -mm.any('abc', ['z*']); -//=> false -``` - -### .expand - -Returns an object with a regex-compatible string and tokens. - -```js -mm.expand('*.js'); - -// when `track` is enabled (for debugging), the `history` array is used -// to record each mutation to the glob pattern as it's converted to regex -{ options: { track: false, dot: undefined, makeRe: true, negated: false }, - pattern: '(.*\\/|^)bar\\/(?:(?!(?:^|\\/)\\.).)*?', - history: [], - tokens: - { path: - { whole: '**/bar/**', - dirname: '**/bar/', - filename: '**', - basename: '**', - extname: '', - ext: '' }, - is: - { glob: true, - negated: false, - globstar: true, - dotfile: false, - dotdir: false }, - match: {}, - original: '**/bar/**', - pattern: '**/bar/**', - base: '' } } -``` - -### .makeRe - -Create a regular expression for matching file paths based on the given pattern: - -```js -mm.makeRe('*.js'); -//=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ -``` - -## Options - -### options.unixify - -Normalize slashes in file paths and glob patterns to forward slashes. - -Type: `{Boolean}` - -Default: `undefined` on non-windows, `true` on windows. - -### options.dot - -Match dotfiles. Same behavior as [minimatch](https://github.com/isaacs/minimatch). - -Type: `{Boolean}` - -Default: `false` - -### options.unescape - -Unescape slashes in glob patterns. Use cautiously, especially on windows. - -Type: `{Boolean}` - -Default: `undefined` - -**Example** - -```js -mm.isMatch('abc', '\\a\\b\\c', {unescape: true}); -//=> true -``` - -### options.nodupes - -Remove duplicate elements from the result array. - -Type: `{Boolean}` - -Default: `undefined` - -**Example** - -Example of using the `unescape` and `nodupes` options together: - -```js -mm.match(['abc', '\\a\\b\\c'], '\\a\\b\\c', {unescape: true}); -//=> ['abc', 'abc'] - -mm.match(['abc', '\\a\\b\\c'], '\\a\\b\\c', {unescape: true, nodupes: true}); -//=> ['abc'] -``` - -### options.matchBase - -Allow glob patterns without slashes to match a file path based on its basename. . Same behavior as [minimatch](https://github.com/isaacs/minimatch). - -Type: `{Boolean}` - -Default: `false` - -**Example** - -```js -mm(['a/b.js', 'a/c.md'], '*.js'); -//=> [] - -mm(['a/b.js', 'a/c.md'], '*.js', {matchBase: true}); -//=> ['a/b.js'] -``` - -### options.nobraces - -Don't expand braces in glob patterns. Same behavior as [minimatch](https://github.com/isaacs/minimatch) `nobrace`. - -Type: `{Boolean}` - -Default: `undefined` - -See [braces](https://github.com/jonschlinkert/braces) for more information about extended brace expansion. - -### options.nobrackets - -Don't expand POSIX bracket expressions. - -Type: `{Boolean}` - -Default: `undefined` - -See [expand-brackets](https://github.com/jonschlinkert/expand-brackets) for more information about extended bracket expressions. - -### options.noextglob - -Don't expand extended globs. - -Type: `{Boolean}` - -Default: `undefined` - -See [extglob](https://github.com/jonschlinkert/extglob) for more information about extended globs. - -### options.nocase - -Use a case-insensitive regex for matching files. Same behavior as [minimatch](https://github.com/isaacs/minimatch). - -Type: `{Boolean}` - -Default: `false` - -### options.nonegate - -Disallow negation (`!`) patterns. - -Type: `{Boolean}` - -Default: `false` - -### options.nonull - -If `true`, when no matches are found the actual (array-ified) glob pattern is returned instead of an empty array. Same behavior as [minimatch](https://github.com/isaacs/minimatch). - -Type: `{Boolean}` - -Default: `false` - -### options.cache - -Cache the platform (e.g. `win32`) to prevent this from being looked up for every filepath. - -Type: `{Boolean}` - -Default: `true` - -*** - -## Other features - -Micromatch also supports the following. - -### Extended globbing - -#### extglobs - -Extended globbing, as described by the bash man page: - -| **pattern** | **regex equivalent** | **description** | -| --- | --- | --- | -| `?(pattern-list)` | `(... | ...)?` | Matches zero or one occurrence of the given patterns | -| `*(pattern-list)` | `(... | ...)*` | Matches zero or more occurrences of the given patterns | -| `+(pattern-list)` | `(... | ...)+` | Matches one or more occurrences of the given patterns | -| `@(pattern-list)` | `(... | ...)` * | Matches one of the given patterns | -| `!(pattern-list)` | N/A | Matches anything except one of the given patterns | - -* `@` isn't a RegEx character. - -Powered by [extglob](https://github.com/jonschlinkert/extglob). Visit that library for the full range of options or to report extglob related issues. - -See [extglob](https://github.com/jonschlinkert/extglob) for more information about extended globs. - -#### brace expansion - -In simple cases, brace expansion appears to work the same way as the logical `OR` operator. For example, `(a|b)` will achieve the same result as `{a,b}`. - -Here are some powerful features unique to brace expansion (versus character classes): - -* range expansion: `a{1..3}b/*.js` expands to: `['a1b/*.js', 'a2b/*.js', 'a3b/*.js']` -* nesting: `a{c,{d,e}}b/*.js` expands to: `['acb/*.js', 'adb/*.js', 'aeb/*.js']` - -Visit [braces](https://github.com/jonschlinkert/braces) to ask questions and create an issue related to brace-expansion, or to see the full range of features and options related to brace expansion. - -#### regex character classes - -With the exception of brace expansion (`{a,b}`, `{1..5}`, etc), most of the special characters convert directly to regex, so you can expect them to follow the same rules and produce the same results as regex. - -For example, given the list: `['a.js', 'b.js', 'c.js', 'd.js', 'E.js']`: - -* `[ac].js`: matches both `a` and `c`, returning `['a.js', 'c.js']` -* `[b-d].js`: matches from `b` to `d`, returning `['b.js', 'c.js', 'd.js']` -* `[b-d].js`: matches from `b` to `d`, returning `['b.js', 'c.js', 'd.js']` -* `a/[A-Z].js`: matches and uppercase letter, returning `['a/E.md']` - -Learn about [regex character classes](http://www.regular-expressions.info/charclass.html). - -#### regex groups - -Given `['a.js', 'b.js', 'c.js', 'd.js', 'E.js']`: - -* `(a|c).js`: would match either `a` or `c`, returning `['a.js', 'c.js']` -* `(b|d).js`: would match either `b` or `d`, returning `['b.js', 'd.js']` -* `(b|[A-Z]).js`: would match either `b` or an uppercase letter, returning `['b.js', 'E.js']` - -As with regex, parenthese can be nested, so patterns like `((a|b)|c)/b` will work. But it might be easier to achieve your goal using brace expansion. - -#### POSIX bracket expressions - -**Example** - -```js -mm.isMatch('a1', '[[:alpha:][:digit:]]'); -//=> true -``` - -See [expand-brackets](https://github.com/jonschlinkert/expand-brackets) for more information about extended bracket expressions. - -*** - -## Notes - -Whenever possible parsing behavior for patterns is based on globbing specifications in Bash 4.3. Patterns that aren't described by Bash follow wildmatch spec (used by git). - -## Benchmarks - -Run the [benchmarks](./benchmark): - -```bash -node benchmark -``` - -As of July 15, 2016: - -```bash -#1: basename-braces - micromatch x 26,420 ops/sec ±0.89% (91 runs sampled) - minimatch x 3,507 ops/sec ±0.64% (97 runs sampled) - -#2: basename - micromatch x 25,315 ops/sec ±0.82% (93 runs sampled) - minimatch x 4,398 ops/sec ±0.86% (94 runs sampled) - -#3: braces-no-glob - micromatch x 341,254 ops/sec ±0.78% (93 runs sampled) - minimatch x 30,197 ops/sec ±1.12% (91 runs sampled) - -#4: braces - micromatch x 54,649 ops/sec ±0.74% (94 runs sampled) - minimatch x 3,095 ops/sec ±0.82% (95 runs sampled) - -#5: immediate - micromatch x 16,719 ops/sec ±0.79% (95 runs sampled) - minimatch x 4,348 ops/sec ±0.86% (96 runs sampled) - -#6: large - micromatch x 721 ops/sec ±0.77% (94 runs sampled) - minimatch x 17.73 ops/sec ±1.08% (50 runs sampled) - -#7: long - micromatch x 5,051 ops/sec ±0.87% (97 runs sampled) - minimatch x 628 ops/sec ±0.83% (94 runs sampled) - -#8: mid - micromatch x 51,280 ops/sec ±0.80% (95 runs sampled) - minimatch x 1,923 ops/sec ±0.84% (95 runs sampled) - -#9: multi-patterns - micromatch x 22,440 ops/sec ±0.97% (94 runs sampled) - minimatch x 2,481 ops/sec ±1.10% (94 runs sampled) - -#10: no-glob - micromatch x 722,823 ops/sec ±1.30% (87 runs sampled) - minimatch x 52,967 ops/sec ±1.09% (94 runs sampled) - -#11: range - micromatch x 243,471 ops/sec ±0.79% (94 runs sampled) - minimatch x 11,736 ops/sec ±0.82% (96 runs sampled) - -#12: shallow - micromatch x 190,874 ops/sec ±0.98% (95 runs sampled) - minimatch x 21,699 ops/sec ±0.81% (97 runs sampled) - -#13: short - micromatch x 496,393 ops/sec ±3.86% (90 runs sampled) - minimatch x 53,765 ops/sec ±0.75% (95 runs sampled) -``` - -## Tests - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Coverage - -As of July 15, 2016: - -```sh -Statements : 100% (441/441) -Branches : 100% (270/270) -Functions : 100% (54/54) -Lines : 100% (429/429) -``` - -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -Please be sure to run the benchmarks before/after any code changes to judge the impact before you do a PR. thanks! - -## Related - -* [braces](https://www.npmjs.com/package/braces): Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces… [more](https://github.com/jonschlinkert/braces) | [homepage](https://github.com/jonschlinkert/braces "Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification.") -* [expand-brackets](https://www.npmjs.com/package/expand-brackets): Expand POSIX bracket expressions (character classes) in glob patterns. | [homepage](https://github.com/jonschlinkert/expand-brackets "Expand POSIX bracket expressions (character classes) in glob patterns.") -* [expand-range](https://www.npmjs.com/package/expand-range): Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See… [more](https://github.com/jonschlinkert/expand-range) | [homepage](https://github.com/jonschlinkert/expand-range "Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch.") -* [extglob](https://www.npmjs.com/package/extglob): Convert extended globs to regex-compatible strings. Add (almost) the expressive power of regular expressions to… [more](https://github.com/jonschlinkert/extglob) | [homepage](https://github.com/jonschlinkert/extglob "Convert extended globs to regex-compatible strings. Add (almost) the expressive power of regular expressions to glob patterns.") -* [fill-range](https://www.npmjs.com/package/fill-range): Fill in a range of numbers or letters, optionally passing an increment or multiplier to… [more](https://github.com/jonschlinkert/fill-range) | [homepage](https://github.com/jonschlinkert/fill-range "Fill in a range of numbers or letters, optionally passing an increment or multiplier to use.") -* [gulp-micromatch](https://www.npmjs.com/package/gulp-micromatch): Filter vinyl files with glob patterns, string, regexp, array, object or matcher function. micromatch stream. | [homepage](https://github.com/tunnckocore/gulp-micromatch#readme "Filter vinyl files with glob patterns, string, regexp, array, object or matcher function. micromatch stream.") -* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet") -* [parse-glob](https://www.npmjs.com/package/parse-glob): Parse a glob pattern into an object of tokens. | [homepage](https://github.com/jonschlinkert/parse-glob "Parse a glob pattern into an object of tokens.") - -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -## Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -## Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -## Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/micromatch/blob/master/LICENSE). - -*** - -_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 15, 2016._ \ No newline at end of file diff --git a/node_modules/micromatch/index.js b/node_modules/micromatch/index.js deleted file mode 100755 index f898ec1..0000000 --- a/node_modules/micromatch/index.js +++ /dev/null @@ -1,431 +0,0 @@ -/*! - * micromatch - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var expand = require('./lib/expand'); -var utils = require('./lib/utils'); - -/** - * The main function. Pass an array of filepaths, - * and a string or array of glob patterns - * - * @param {Array|String} `files` - * @param {Array|String} `patterns` - * @param {Object} `opts` - * @return {Array} Array of matches - */ - -function micromatch(files, patterns, opts) { - if (!files || !patterns) return []; - opts = opts || {}; - - if (typeof opts.cache === 'undefined') { - opts.cache = true; - } - - if (!Array.isArray(patterns)) { - return match(files, patterns, opts); - } - - var len = patterns.length, i = 0; - var omit = [], keep = []; - - while (len--) { - var glob = patterns[i++]; - if (typeof glob === 'string' && glob.charCodeAt(0) === 33 /* ! */) { - omit.push.apply(omit, match(files, glob.slice(1), opts)); - } else { - keep.push.apply(keep, match(files, glob, opts)); - } - } - return utils.diff(keep, omit); -} - -/** - * Return an array of files that match the given glob pattern. - * - * This function is called by the main `micromatch` function If you only - * need to pass a single pattern you might get very minor speed improvements - * using this function. - * - * @param {Array} `files` - * @param {String} `pattern` - * @param {Object} `options` - * @return {Array} - */ - -function match(files, pattern, opts) { - if (utils.typeOf(files) !== 'string' && !Array.isArray(files)) { - throw new Error(msg('match', 'files', 'a string or array')); - } - - files = utils.arrayify(files); - opts = opts || {}; - - var negate = opts.negate || false; - var orig = pattern; - - if (typeof pattern === 'string') { - negate = pattern.charAt(0) === '!'; - if (negate) { - pattern = pattern.slice(1); - } - - // we need to remove the character regardless, - // so the above logic is still needed - if (opts.nonegate === true) { - negate = false; - } - } - - var _isMatch = matcher(pattern, opts); - var len = files.length, i = 0; - var res = []; - - while (i < len) { - var file = files[i++]; - var fp = utils.unixify(file, opts); - - if (!_isMatch(fp)) { continue; } - res.push(fp); - } - - if (res.length === 0) { - if (opts.failglob === true) { - throw new Error('micromatch.match() found no matches for: "' + orig + '".'); - } - - if (opts.nonull || opts.nullglob) { - res.push(utils.unescapeGlob(orig)); - } - } - - // if `negate` was defined, diff negated files - if (negate) { res = utils.diff(files, res); } - - // if `ignore` was defined, diff ignored filed - if (opts.ignore && opts.ignore.length) { - pattern = opts.ignore; - opts = utils.omit(opts, ['ignore']); - res = utils.diff(res, micromatch(res, pattern, opts)); - } - - if (opts.nodupes) { - return utils.unique(res); - } - return res; -} - -/** - * Returns a function that takes a glob pattern or array of glob patterns - * to be used with `Array#filter()`. (Internally this function generates - * the matching function using the [matcher] method). - * - * ```js - * var fn = mm.filter('[a-c]'); - * ['a', 'b', 'c', 'd', 'e'].filter(fn); - * //=> ['a', 'b', 'c'] - * ``` - * @param {String|Array} `patterns` Can be a glob or array of globs. - * @param {Options} `opts` Options to pass to the [matcher] method. - * @return {Function} Filter function to be passed to `Array#filter()`. - */ - -function filter(patterns, opts) { - if (!Array.isArray(patterns) && typeof patterns !== 'string') { - throw new TypeError(msg('filter', 'patterns', 'a string or array')); - } - - patterns = utils.arrayify(patterns); - var len = patterns.length, i = 0; - var patternMatchers = Array(len); - while (i < len) { - patternMatchers[i] = matcher(patterns[i++], opts); - } - - return function(fp) { - if (fp == null) return []; - var len = patternMatchers.length, i = 0; - var res = true; - - fp = utils.unixify(fp, opts); - while (i < len) { - var fn = patternMatchers[i++]; - if (!fn(fp)) { - res = false; - break; - } - } - return res; - }; -} - -/** - * Returns true if the filepath contains the given - * pattern. Can also return a function for matching. - * - * ```js - * isMatch('foo.md', '*.md', {}); - * //=> true - * - * isMatch('*.md', {})('foo.md') - * //=> true - * ``` - * @param {String} `fp` - * @param {String} `pattern` - * @param {Object} `opts` - * @return {Boolean} - */ - -function isMatch(fp, pattern, opts) { - if (typeof fp !== 'string') { - throw new TypeError(msg('isMatch', 'filepath', 'a string')); - } - - fp = utils.unixify(fp, opts); - if (utils.typeOf(pattern) === 'object') { - return matcher(fp, pattern); - } - return matcher(pattern, opts)(fp); -} - -/** - * Returns true if the filepath matches the - * given pattern. - */ - -function contains(fp, pattern, opts) { - if (typeof fp !== 'string') { - throw new TypeError(msg('contains', 'pattern', 'a string')); - } - - opts = opts || {}; - opts.contains = (pattern !== ''); - fp = utils.unixify(fp, opts); - - if (opts.contains && !utils.isGlob(pattern)) { - return fp.indexOf(pattern) !== -1; - } - return matcher(pattern, opts)(fp); -} - -/** - * Returns true if a file path matches any of the - * given patterns. - * - * @param {String} `fp` The filepath to test. - * @param {String|Array} `patterns` Glob patterns to use. - * @param {Object} `opts` Options to pass to the `matcher()` function. - * @return {String} - */ - -function any(fp, patterns, opts) { - if (!Array.isArray(patterns) && typeof patterns !== 'string') { - throw new TypeError(msg('any', 'patterns', 'a string or array')); - } - - patterns = utils.arrayify(patterns); - var len = patterns.length; - - fp = utils.unixify(fp, opts); - while (len--) { - var isMatch = matcher(patterns[len], opts); - if (isMatch(fp)) { - return true; - } - } - return false; -} - -/** - * Filter the keys of an object with the given `glob` pattern - * and `options` - * - * @param {Object} `object` - * @param {Pattern} `object` - * @return {Array} - */ - -function matchKeys(obj, glob, options) { - if (utils.typeOf(obj) !== 'object') { - throw new TypeError(msg('matchKeys', 'first argument', 'an object')); - } - - var fn = matcher(glob, options); - var res = {}; - - for (var key in obj) { - if (obj.hasOwnProperty(key) && fn(key)) { - res[key] = obj[key]; - } - } - return res; -} - -/** - * Return a function for matching based on the - * given `pattern` and `options`. - * - * @param {String} `pattern` - * @param {Object} `options` - * @return {Function} - */ - -function matcher(pattern, opts) { - // pattern is a function - if (typeof pattern === 'function') { - return pattern; - } - // pattern is a regex - if (pattern instanceof RegExp) { - return function(fp) { - return pattern.test(fp); - }; - } - - if (typeof pattern !== 'string') { - throw new TypeError(msg('matcher', 'pattern', 'a string, regex, or function')); - } - - // strings, all the way down... - pattern = utils.unixify(pattern, opts); - - // pattern is a non-glob string - if (!utils.isGlob(pattern)) { - return utils.matchPath(pattern, opts); - } - // pattern is a glob string - var re = makeRe(pattern, opts); - - // `matchBase` is defined - if (opts && opts.matchBase) { - return utils.hasFilename(re, opts); - } - // `matchBase` is not defined - return function(fp) { - fp = utils.unixify(fp, opts); - return re.test(fp); - }; -} - -/** - * Create and cache a regular expression for matching - * file paths. - * - * If the leading character in the `glob` is `!`, a negation - * regex is returned. - * - * @param {String} `glob` - * @param {Object} `options` - * @return {RegExp} - */ - -function toRegex(glob, options) { - // clone options to prevent mutating the original object - var opts = Object.create(options || {}); - var flags = opts.flags || ''; - if (opts.nocase && flags.indexOf('i') === -1) { - flags += 'i'; - } - - var parsed = expand(glob, opts); - - // pass in tokens to avoid parsing more than once - opts.negated = opts.negated || parsed.negated; - opts.negate = opts.negated; - glob = wrapGlob(parsed.pattern, opts); - var re; - - try { - re = new RegExp(glob, flags); - return re; - } catch (err) { - err.reason = 'micromatch invalid regex: (' + re + ')'; - if (opts.strict) throw new SyntaxError(err); - } - - // we're only here if a bad pattern was used and the user - // passed `options.silent`, so match nothing - return /$^/; -} - -/** - * Create the regex to do the matching. If the leading - * character in the `glob` is `!` a negation regex is returned. - * - * @param {String} `glob` - * @param {Boolean} `negate` - */ - -function wrapGlob(glob, opts) { - var prefix = (opts && !opts.contains) ? '^' : ''; - var after = (opts && !opts.contains) ? '$' : ''; - glob = ('(?:' + glob + ')' + after); - if (opts && opts.negate) { - return prefix + ('(?!^' + glob + ').*$'); - } - return prefix + glob; -} - -/** - * Create and cache a regular expression for matching file paths. - * If the leading character in the `glob` is `!`, a negation - * regex is returned. - * - * @param {String} `glob` - * @param {Object} `options` - * @return {RegExp} - */ - -function makeRe(glob, opts) { - if (utils.typeOf(glob) !== 'string') { - throw new Error(msg('makeRe', 'glob', 'a string')); - } - return utils.cache(toRegex, glob, opts); -} - -/** - * Make error messages consistent. Follows this format: - * - * ```js - * msg(methodName, argNumber, nativeType); - * // example: - * msg('matchKeys', 'first', 'an object'); - * ``` - * - * @param {String} `method` - * @param {String} `num` - * @param {String} `type` - * @return {String} - */ - -function msg(method, what, type) { - return 'micromatch.' + method + '(): ' + what + ' should be ' + type + '.'; -} - -/** - * Public methods - */ - -/* eslint no-multi-spaces: 0 */ -micromatch.any = any; -micromatch.braces = micromatch.braceExpand = utils.braces; -micromatch.contains = contains; -micromatch.expand = expand; -micromatch.filter = filter; -micromatch.isMatch = isMatch; -micromatch.makeRe = makeRe; -micromatch.match = match; -micromatch.matcher = matcher; -micromatch.matchKeys = matchKeys; - -/** - * Expose `micromatch` - */ - -module.exports = micromatch; diff --git a/node_modules/micromatch/lib/chars.js b/node_modules/micromatch/lib/chars.js deleted file mode 100644 index a1ffe37..0000000 --- a/node_modules/micromatch/lib/chars.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -var chars = {}, unesc, temp; - -function reverse(object, prepender) { - return Object.keys(object).reduce(function(reversed, key) { - var newKey = prepender ? prepender + key : key; // Optionally prepend a string to key. - reversed[object[key]] = newKey; // Swap key and value. - return reversed; // Return the result. - }, {}); -} - -/** - * Regex for common characters - */ - -chars.escapeRegex = { - '?': /\?/g, - '@': /\@/g, - '!': /\!/g, - '+': /\+/g, - '*': /\*/g, - '(': /\(/g, - ')': /\)/g, - '[': /\[/g, - ']': /\]/g -}; - -/** - * Escape characters - */ - -chars.ESC = { - '?': '__UNESC_QMRK__', - '@': '__UNESC_AMPE__', - '!': '__UNESC_EXCL__', - '+': '__UNESC_PLUS__', - '*': '__UNESC_STAR__', - ',': '__UNESC_COMMA__', - '(': '__UNESC_LTPAREN__', - ')': '__UNESC_RTPAREN__', - '[': '__UNESC_LTBRACK__', - ']': '__UNESC_RTBRACK__' -}; - -/** - * Unescape characters - */ - -chars.UNESC = unesc || (unesc = reverse(chars.ESC, '\\')); - -chars.ESC_TEMP = { - '?': '__TEMP_QMRK__', - '@': '__TEMP_AMPE__', - '!': '__TEMP_EXCL__', - '*': '__TEMP_STAR__', - '+': '__TEMP_PLUS__', - ',': '__TEMP_COMMA__', - '(': '__TEMP_LTPAREN__', - ')': '__TEMP_RTPAREN__', - '[': '__TEMP_LTBRACK__', - ']': '__TEMP_RTBRACK__' -}; - -chars.TEMP = temp || (temp = reverse(chars.ESC_TEMP)); - -module.exports = chars; diff --git a/node_modules/micromatch/lib/expand.js b/node_modules/micromatch/lib/expand.js deleted file mode 100644 index e99b081..0000000 --- a/node_modules/micromatch/lib/expand.js +++ /dev/null @@ -1,304 +0,0 @@ -/*! - * micromatch - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var utils = require('./utils'); -var Glob = require('./glob'); - -/** - * Expose `expand` - */ - -module.exports = expand; - -/** - * Expand a glob pattern to resolve braces and - * similar patterns before converting to regex. - * - * @param {String|Array} `pattern` - * @param {Array} `files` - * @param {Options} `opts` - * @return {Array} - */ - -function expand(pattern, options) { - if (typeof pattern !== 'string') { - throw new TypeError('micromatch.expand(): argument should be a string.'); - } - - var glob = new Glob(pattern, options || {}); - var opts = glob.options; - - if (!utils.isGlob(pattern)) { - glob.pattern = glob.pattern.replace(/([\/.])/g, '\\$1'); - return glob; - } - - glob.pattern = glob.pattern.replace(/(\+)(?!\()/g, '\\$1'); - glob.pattern = glob.pattern.split('$').join('\\$'); - - if (typeof opts.braces !== 'boolean' && typeof opts.nobraces !== 'boolean') { - opts.braces = true; - } - - if (glob.pattern === '.*') { - return { - pattern: '\\.' + star, - tokens: tok, - options: opts - }; - } - - if (glob.pattern === '*') { - return { - pattern: oneStar(opts.dot), - tokens: tok, - options: opts - }; - } - - // parse the glob pattern into tokens - glob.parse(); - var tok = glob.tokens; - tok.is.negated = opts.negated; - - // dotfile handling - if ((opts.dotfiles === true || tok.is.dotfile) && opts.dot !== false) { - opts.dotfiles = true; - opts.dot = true; - } - - if ((opts.dotdirs === true || tok.is.dotdir) && opts.dot !== false) { - opts.dotdirs = true; - opts.dot = true; - } - - // check for braces with a dotfile pattern - if (/[{,]\./.test(glob.pattern)) { - opts.makeRe = false; - opts.dot = true; - } - - if (opts.nonegate !== true) { - opts.negated = glob.negated; - } - - // if the leading character is a dot or a slash, escape it - if (glob.pattern.charAt(0) === '.' && glob.pattern.charAt(1) !== '/') { - glob.pattern = '\\' + glob.pattern; - } - - /** - * Extended globs - */ - - // expand braces, e.g `{1..5}` - glob.track('before braces'); - if (tok.is.braces) { - glob.braces(); - } - glob.track('after braces'); - - // expand extglobs, e.g `foo/!(a|b)` - glob.track('before extglob'); - if (tok.is.extglob) { - glob.extglob(); - } - glob.track('after extglob'); - - // expand brackets, e.g `[[:alpha:]]` - glob.track('before brackets'); - if (tok.is.brackets) { - glob.brackets(); - } - glob.track('after brackets'); - - // special patterns - glob._replace('[!', '[^'); - glob._replace('(?', '(%~'); - glob._replace(/\[\]/, '\\[\\]'); - glob._replace('/[', '/' + (opts.dot ? dotfiles : nodot) + '[', true); - glob._replace('/?', '/' + (opts.dot ? dotfiles : nodot) + '[^/]', true); - glob._replace('/.', '/(?=.)\\.', true); - - // windows drives - glob._replace(/^(\w):([\\\/]+?)/gi, '(?=.)$1:$2', true); - - // negate slashes in exclusion ranges - if (glob.pattern.indexOf('[^') !== -1) { - glob.pattern = negateSlash(glob.pattern); - } - - if (opts.globstar !== false && glob.pattern === '**') { - glob.pattern = globstar(opts.dot); - - } else { - glob.pattern = balance(glob.pattern, '[', ']'); - glob.escape(glob.pattern); - - // if the pattern has `**` - if (tok.is.globstar) { - glob.pattern = collapse(glob.pattern, '/**'); - glob.pattern = collapse(glob.pattern, '**/'); - glob._replace('/**/', '(?:/' + globstar(opts.dot) + '/|/)', true); - glob._replace(/\*{2,}/g, '**'); - - // 'foo/*' - glob._replace(/(\w+)\*(?!\/)/g, '$1[^/]*?', true); - glob._replace(/\*\*\/\*(\w)/g, globstar(opts.dot) + '\\/' + (opts.dot ? dotfiles : nodot) + '[^/]*?$1', true); - - if (opts.dot !== true) { - glob._replace(/\*\*\/(.)/g, '(?:**\\/|)$1'); - } - - // 'foo/**' or '{**,*}', but not 'foo**' - if (tok.path.dirname !== '' || /,\*\*|\*\*,/.test(glob.orig)) { - glob._replace('**', globstar(opts.dot), true); - } - } - - // ends with /* - glob._replace(/\/\*$/, '\\/' + oneStar(opts.dot), true); - // ends with *, no slashes - glob._replace(/(?!\/)\*$/, star, true); - // has 'n*.' (partial wildcard w/ file extension) - glob._replace(/([^\/]+)\*/, '$1' + oneStar(true), true); - // has '*' - glob._replace('*', oneStar(opts.dot), true); - glob._replace('?.', '?\\.', true); - glob._replace('?:', '?:', true); - - glob._replace(/\?+/g, function(match) { - var len = match.length; - if (len === 1) { - return qmark; - } - return qmark + '{' + len + '}'; - }); - - // escape '.abc' => '\\.abc' - glob._replace(/\.([*\w]+)/g, '\\.$1'); - // fix '[^\\\\/]' - glob._replace(/\[\^[\\\/]+\]/g, qmark); - // '///' => '\/' - glob._replace(/\/+/g, '\\/'); - // '\\\\\\' => '\\' - glob._replace(/\\{2,}/g, '\\'); - } - - // unescape previously escaped patterns - glob.unescape(glob.pattern); - glob._replace('__UNESC_STAR__', '*'); - - // escape dots that follow qmarks - glob._replace('?.', '?\\.'); - - // remove unnecessary slashes in character classes - glob._replace('[^\\/]', qmark); - - if (glob.pattern.length > 1) { - if (/^[\[?*]/.test(glob.pattern)) { - // only prepend the string if we don't want to match dotfiles - glob.pattern = (opts.dot ? dotfiles : nodot) + glob.pattern; - } - } - - return glob; -} - -/** - * Collapse repeated character sequences. - * - * ```js - * collapse('a/../../../b', '../'); - * //=> 'a/../b' - * ``` - * - * @param {String} `str` - * @param {String} `ch` Character sequence to collapse - * @return {String} - */ - -function collapse(str, ch) { - var res = str.split(ch); - var isFirst = res[0] === ''; - var isLast = res[res.length - 1] === ''; - res = res.filter(Boolean); - if (isFirst) res.unshift(''); - if (isLast) res.push(''); - return res.join(ch); -} - -/** - * Negate slashes in exclusion ranges, per glob spec: - * - * ```js - * negateSlash('[^foo]'); - * //=> '[^\\/foo]' - * ``` - * - * @param {String} `str` glob pattern - * @return {String} - */ - -function negateSlash(str) { - return str.replace(/\[\^([^\]]*?)\]/g, function(match, inner) { - if (inner.indexOf('/') === -1) { - inner = '\\/' + inner; - } - return '[^' + inner + ']'; - }); -} - -/** - * Escape imbalanced braces/bracket. This is a very - * basic, naive implementation that only does enough - * to serve the purpose. - */ - -function balance(str, a, b) { - var aarr = str.split(a); - var alen = aarr.join('').length; - var blen = str.split(b).join('').length; - - if (alen !== blen) { - str = aarr.join('\\' + a); - return str.split(b).join('\\' + b); - } - return str; -} - -/** - * Special patterns to be converted to regex. - * Heuristics are used to simplify patterns - * and speed up processing. - */ - -/* eslint no-multi-spaces: 0 */ -var qmark = '[^/]'; -var star = qmark + '*?'; -var nodot = '(?!\\.)(?=.)'; -var dotfileGlob = '(?:\\/|^)\\.{1,2}($|\\/)'; -var dotfiles = '(?!' + dotfileGlob + ')(?=.)'; -var twoStarDot = '(?:(?!' + dotfileGlob + ').)*?'; - -/** - * Create a regex for `*`. - * - * If `dot` is true, or the pattern does not begin with - * a leading star, then return the simpler regex. - */ - -function oneStar(dotfile) { - return dotfile ? '(?!' + dotfileGlob + ')(?=.)' + star : (nodot + star); -} - -function globstar(dotfile) { - if (dotfile) { return twoStarDot; } - return '(?:(?!(?:\\/|^)\\.).)*?'; -} diff --git a/node_modules/micromatch/lib/glob.js b/node_modules/micromatch/lib/glob.js deleted file mode 100644 index c613326..0000000 --- a/node_modules/micromatch/lib/glob.js +++ /dev/null @@ -1,193 +0,0 @@ -'use strict'; - -var chars = require('./chars'); -var utils = require('./utils'); - -/** - * Expose `Glob` - */ - -var Glob = module.exports = function Glob(pattern, options) { - if (!(this instanceof Glob)) { - return new Glob(pattern, options); - } - this.options = options || {}; - this.pattern = pattern; - this.history = []; - this.tokens = {}; - this.init(pattern); -}; - -/** - * Initialize defaults - */ - -Glob.prototype.init = function(pattern) { - this.orig = pattern; - this.negated = this.isNegated(); - this.options.track = this.options.track || false; - this.options.makeRe = true; -}; - -/** - * Push a change into `glob.history`. Useful - * for debugging. - */ - -Glob.prototype.track = function(msg) { - if (this.options.track) { - this.history.push({msg: msg, pattern: this.pattern}); - } -}; - -/** - * Return true if `glob.pattern` was negated - * with `!`, also remove the `!` from the pattern. - * - * @return {Boolean} - */ - -Glob.prototype.isNegated = function() { - if (this.pattern.charCodeAt(0) === 33 /* '!' */) { - this.pattern = this.pattern.slice(1); - return true; - } - return false; -}; - -/** - * Expand braces in the given glob pattern. - * - * We only need to use the [braces] lib when - * patterns are nested. - */ - -Glob.prototype.braces = function() { - if (this.options.nobraces !== true && this.options.nobrace !== true) { - // naive/fast check for imbalanced characters - var a = this.pattern.match(/[\{\(\[]/g); - var b = this.pattern.match(/[\}\)\]]/g); - - // if imbalanced, don't optimize the pattern - if (a && b && (a.length !== b.length)) { - this.options.makeRe = false; - } - - // expand brace patterns and join the resulting array - var expanded = utils.braces(this.pattern, this.options); - this.pattern = expanded.join('|'); - } -}; - -/** - * Expand bracket expressions in `glob.pattern` - */ - -Glob.prototype.brackets = function() { - if (this.options.nobrackets !== true) { - this.pattern = utils.brackets(this.pattern); - } -}; - -/** - * Expand bracket expressions in `glob.pattern` - */ - -Glob.prototype.extglob = function() { - if (this.options.noextglob === true) return; - - if (utils.isExtglob(this.pattern)) { - this.pattern = utils.extglob(this.pattern, {escape: true}); - } -}; - -/** - * Parse the given pattern - */ - -Glob.prototype.parse = function(pattern) { - this.tokens = utils.parseGlob(pattern || this.pattern, true); - return this.tokens; -}; - -/** - * Replace `a` with `b`. Also tracks the change before and - * after each replacement. This is disabled by default, but - * can be enabled by setting `options.track` to true. - * - * Also, when the pattern is a string, `.split()` is used, - * because it's much faster than replace. - * - * @param {RegExp|String} `a` - * @param {String} `b` - * @param {Boolean} `escape` When `true`, escapes `*` and `?` in the replacement. - * @return {String} - */ - -Glob.prototype._replace = function(a, b, escape) { - this.track('before (find): "' + a + '" (replace with): "' + b + '"'); - if (escape) b = esc(b); - if (a && b && typeof a === 'string') { - this.pattern = this.pattern.split(a).join(b); - } else { - this.pattern = this.pattern.replace(a, b); - } - this.track('after'); -}; - -/** - * Escape special characters in the given string. - * - * @param {String} `str` Glob pattern - * @return {String} - */ - -Glob.prototype.escape = function(str) { - this.track('before escape: '); - var re = /["\\](['"]?[^"'\\]['"]?)/g; - - this.pattern = str.replace(re, function($0, $1) { - var o = chars.ESC; - var ch = o && o[$1]; - if (ch) { - return ch; - } - if (/[a-z]/i.test($0)) { - return $0.split('\\').join(''); - } - return $0; - }); - - this.track('after escape: '); -}; - -/** - * Unescape special characters in the given string. - * - * @param {String} `str` - * @return {String} - */ - -Glob.prototype.unescape = function(str) { - var re = /__([A-Z]+)_([A-Z]+)__/g; - this.pattern = str.replace(re, function($0, $1) { - return chars[$1][$0]; - }); - this.pattern = unesc(this.pattern); -}; - -/** - * Escape/unescape utils - */ - -function esc(str) { - str = str.split('?').join('%~'); - str = str.split('*').join('%%'); - return str; -} - -function unesc(str) { - str = str.split('%~').join('?'); - str = str.split('%%').join('*'); - return str; -} diff --git a/node_modules/micromatch/lib/utils.js b/node_modules/micromatch/lib/utils.js deleted file mode 100644 index 7c24a51..0000000 --- a/node_modules/micromatch/lib/utils.js +++ /dev/null @@ -1,149 +0,0 @@ -'use strict'; - -var win32 = process && process.platform === 'win32'; -var path = require('path'); -var fileRe = require('filename-regex'); -var utils = module.exports; - -/** - * Module dependencies - */ - -utils.diff = require('arr-diff'); -utils.unique = require('array-unique'); -utils.braces = require('braces'); -utils.brackets = require('expand-brackets'); -utils.extglob = require('extglob'); -utils.isExtglob = require('is-extglob'); -utils.isGlob = require('is-glob'); -utils.typeOf = require('kind-of'); -utils.normalize = require('normalize-path'); -utils.omit = require('object.omit'); -utils.parseGlob = require('parse-glob'); -utils.cache = require('regex-cache'); - -/** - * Get the filename of a filepath - * - * @param {String} `string` - * @return {String} - */ - -utils.filename = function filename(fp) { - var seg = fp.match(fileRe()); - return seg && seg[0]; -}; - -/** - * Returns a function that returns true if the given - * pattern is the same as a given `filepath` - * - * @param {String} `pattern` - * @return {Function} - */ - -utils.isPath = function isPath(pattern, opts) { - opts = opts || {}; - return function(fp) { - var unixified = utils.unixify(fp, opts); - if(opts.nocase){ - return pattern.toLowerCase() === unixified.toLowerCase(); - } - return pattern === unixified; - }; -}; - -/** - * Returns a function that returns true if the given - * pattern contains a `filepath` - * - * @param {String} `pattern` - * @return {Function} - */ - -utils.hasPath = function hasPath(pattern, opts) { - return function(fp) { - return utils.unixify(pattern, opts).indexOf(fp) !== -1; - }; -}; - -/** - * Returns a function that returns true if the given - * pattern matches or contains a `filepath` - * - * @param {String} `pattern` - * @return {Function} - */ - -utils.matchPath = function matchPath(pattern, opts) { - var fn = (opts && opts.contains) - ? utils.hasPath(pattern, opts) - : utils.isPath(pattern, opts); - return fn; -}; - -/** - * Returns a function that returns true if the given - * regex matches the `filename` of a file path. - * - * @param {RegExp} `re` - * @return {Boolean} - */ - -utils.hasFilename = function hasFilename(re) { - return function(fp) { - var name = utils.filename(fp); - return name && re.test(name); - }; -}; - -/** - * Coerce `val` to an array - * - * @param {*} val - * @return {Array} - */ - -utils.arrayify = function arrayify(val) { - return !Array.isArray(val) - ? [val] - : val; -}; - -/** - * Normalize all slashes in a file path or glob pattern to - * forward slashes. - */ - -utils.unixify = function unixify(fp, opts) { - if (opts && opts.unixify === false) return fp; - if (opts && opts.unixify === true || win32 || path.sep === '\\') { - return utils.normalize(fp, false); - } - if (opts && opts.unescape === true) { - return fp ? fp.toString().replace(/\\(\w)/g, '$1') : ''; - } - return fp; -}; - -/** - * Escape/unescape utils - */ - -utils.escapePath = function escapePath(fp) { - return fp.replace(/[\\.]/g, '\\$&'); -}; - -utils.unescapeGlob = function unescapeGlob(fp) { - return fp.replace(/[\\"']/g, ''); -}; - -utils.escapeRe = function escapeRe(str) { - return str.replace(/[-[\\$*+?.#^\s{}(|)\]]/g, '\\$&'); -}; - -/** - * Expose `utils` - */ - -module.exports = utils; diff --git a/node_modules/micromatch/package.json b/node_modules/micromatch/package.json deleted file mode 100644 index acb6466..0000000 --- a/node_modules/micromatch/package.json +++ /dev/null @@ -1,189 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "micromatch@^2.3.7", - "scope": null, - "escapedName": "micromatch", - "name": "micromatch", - "rawSpec": "^2.3.7", - "spec": ">=2.3.7 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/findup-sync" - ] - ], - "_from": "micromatch@>=2.3.7 <3.0.0", - "_id": "micromatch@2.3.11", - "_inCache": true, - "_location": "/micromatch", - "_nodeVersion": "6.3.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/micromatch-2.3.11.tgz_1468602931475_0.3629888044670224" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "micromatch@^2.3.7", - "scope": null, - "escapedName": "micromatch", - "name": "micromatch", - "rawSpec": "^2.3.7", - "spec": ">=2.3.7 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/anymatch", - "/findup-sync" - ], - "_resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "_shasum": "86677c97d1720b363431d04d0d15293bd38c1565", - "_shrinkwrap": null, - "_spec": "micromatch@^2.3.7", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/findup-sync", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/micromatch/issues" - }, - "dependencies": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - }, - "description": "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.", - "devDependencies": { - "benchmarked": "^0.1.4", - "chalk": "^1.1.1", - "gulp": "^3.9.0", - "gulp-eslint": "^1.1.1", - "gulp-format-md": "^0.1.8", - "gulp-istanbul": "^0.10.1", - "gulp-mocha": "^2.1.3", - "minimatch": "^3.0.0", - "minimist": "^1.2.0", - "mocha": "^2", - "multimatch": "^2.0.0", - "should": "^8", - "write": "^0.2.1" - }, - "directories": {}, - "dist": { - "shasum": "86677c97d1720b363431d04d0d15293bd38c1565", - "tarball": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js", - "lib" - ], - "gitHead": "f194c187d04677b03047bb7d8d25643725f7a577", - "homepage": "https://github.com/jonschlinkert/micromatch", - "keywords": [ - "bash", - "expand", - "expansion", - "expression", - "file", - "files", - "filter", - "find", - "glob", - "globbing", - "globs", - "globstar", - "match", - "matcher", - "matches", - "matching", - "minimatch", - "multimatch", - "path", - "pattern", - "patterns", - "regex", - "regexp", - "regular", - "shell", - "wildcard" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - }, - { - "name": "es128", - "email": "elan.shanker+npm@gmail.com" - } - ], - "name": "micromatch", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/micromatch.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "related": { - "list": [ - "braces", - "expand-brackets", - "expand-range", - "extglob", - "fill-range", - "gulp-micromatch", - "is-glob", - "parse-glob" - ] - }, - "reflinks": [ - "braces", - "expand-brackets", - "extglob", - "minimatch", - "multimatch", - "verb" - ], - "toc": false, - "layout": false, - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - } - }, - "version": "2.3.11" -} diff --git a/node_modules/mime-db/HISTORY.md b/node_modules/mime-db/HISTORY.md deleted file mode 100644 index 27b2a11..0000000 --- a/node_modules/mime-db/HISTORY.md +++ /dev/null @@ -1,391 +0,0 @@ -1.26.0 / 2017-01-14 -=================== - - * Add `application/coap-payload` - * Add `application/cose` - * Add `application/cose-key` - * Add `application/cose-key-set` - * Add `application/mud+json` - * Add `application/trig` - * Add `application/vnd.dataresource+json` - * Add `application/vnd.hc+json` - * Add `application/vnd.tableschema+json` - * Add `application/yang-patch+json` - * Add `application/yang-patch+xml` - * Add extension `.geojson` to `application/geo+json` - -1.25.0 / 2016-11-11 -=================== - - * Add `application/dicom+json` - * Add `application/dicom+xml` - * Add `application/vnd.openstreetmap.data+xml` - * Add `application/vnd.tri.onesource` - * Add `application/yang-data+json` - * Add `application/yang-data+xml` - -1.24.0 / 2016-09-18 -=================== - - * Add `application/clue_info+xml` - * Add `application/geo+json` - * Add `application/lgr+xml` - * Add `application/vnd.amazon.mobi8-ebook` - * Add `application/vnd.chess-pgn` - * Add `application/vnd.comicbook+zip` - * Add `application/vnd.d2l.coursepackage1p0+zip` - * Add `application/vnd.espass-espass+zip` - * Add `application/vnd.nearst.inv+json` - * Add `application/vnd.oma.lwm2m+json` - * Add `application/vnd.oma.lwm2m+tlv` - * Add `application/vnd.quarantainenet` - * Add `application/vnd.rar` - * Add `audio/mp3` - * Add `image/dicom-rle` - * Add `image/emf` - * Add `image/jls` - * Add `image/wmf` - * Add `model/gltf+json` - * Add `text/vnd.ascii-art` - -1.23.0 / 2016-05-01 -=================== - - * Add `application/efi` - * Add `application/vnd.3gpp.sms+xml` - * Add `application/vnd.3lightssoftware.imagescal` - * Add `application/vnd.coreos.ignition+json` - * Add `application/vnd.desmume.movie` - * Add `application/vnd.onepager` - * Add `application/vnd.vel+json` - * Add `text/prs.prop.logic` - * Add `video/encaprtp` - * Add `video/h265` - * Add `video/iso.segment` - * Add `video/raptorfec` - * Add `video/rtploopback` - * Add `video/vnd.radgamettools.bink` - * Add `video/vnd.radgamettools.smacker` - * Add `video/vp8` - * Add extension `.3gpp` to `audio/3gpp` - -1.22.0 / 2016-02-15 -=================== - - * Add `application/ppsp-tracker+json` - * Add `application/problem+json` - * Add `application/problem+xml` - * Add `application/vnd.hdt` - * Add `application/vnd.ms-printschematicket+xml` - * Add `model/vnd.rosette.annotated-data-model` - * Add `text/slim` - * Add extension `.rng` to `application/xml` - * Fix extension of `application/dash+xml` to be `.mpd` - * Update primary extension to `.m4a` for `audio/mp4` - -1.21.0 / 2016-01-06 -=================== - - * Add `application/emergencycalldata.comment+xml` - * Add `application/emergencycalldata.deviceinfo+xml` - * Add `application/emergencycalldata.providerinfo+xml` - * Add `application/emergencycalldata.serviceinfo+xml` - * Add `application/emergencycalldata.subscriberinfo+xml` - * Add `application/vnd.filmit.zfc` - * Add `application/vnd.google-apps.document` - * Add `application/vnd.google-apps.presentation` - * Add `application/vnd.google-apps.spreadsheet` - * Add `application/vnd.mapbox-vector-tile` - * Add `application/vnd.ms-printdevicecapabilities+xml` - * Add `application/vnd.ms-windows.devicepairing` - * Add `application/vnd.ms-windows.nwprinting.oob` - * Add `application/vnd.tml` - * Add `audio/evs` - -1.20.0 / 2015-11-10 -=================== - - * Add `application/cdni` - * Add `application/csvm+json` - * Add `application/rfc+xml` - * Add `application/vnd.3gpp.access-transfer-events+xml` - * Add `application/vnd.3gpp.srvcc-ext+xml` - * Add `application/vnd.ms-windows.wsd.oob` - * Add `application/vnd.oxli.countgraph` - * Add `application/vnd.pagerduty+json` - * Add `text/x-suse-ymp` - -1.19.0 / 2015-09-17 -=================== - - * Add `application/vnd.3gpp-prose-pc3ch+xml` - * Add `application/vnd.3gpp.srvcc-info+xml` - * Add `application/vnd.apple.pkpass` - * Add `application/vnd.drive+json` - -1.18.0 / 2015-09-03 -=================== - - * Add `application/pkcs12` - * Add `application/vnd.3gpp-prose+xml` - * Add `application/vnd.3gpp.mid-call+xml` - * Add `application/vnd.3gpp.state-and-event-info+xml` - * Add `application/vnd.anki` - * Add `application/vnd.firemonkeys.cloudcell` - * Add `application/vnd.openblox.game+xml` - * Add `application/vnd.openblox.game-binary` - -1.17.0 / 2015-08-13 -=================== - - * Add `application/x-msdos-program` - * Add `audio/g711-0` - * Add `image/vnd.mozilla.apng` - * Add extension `.exe` to `application/x-msdos-program` - -1.16.0 / 2015-07-29 -=================== - - * Add `application/vnd.uri-map` - -1.15.0 / 2015-07-13 -=================== - - * Add `application/x-httpd-php` - -1.14.0 / 2015-06-25 -=================== - - * Add `application/scim+json` - * Add `application/vnd.3gpp.ussd+xml` - * Add `application/vnd.biopax.rdf+xml` - * Add `text/x-processing` - -1.13.0 / 2015-06-07 -=================== - - * Add nginx as a source - * Add `application/x-cocoa` - * Add `application/x-java-archive-diff` - * Add `application/x-makeself` - * Add `application/x-perl` - * Add `application/x-pilot` - * Add `application/x-redhat-package-manager` - * Add `application/x-sea` - * Add `audio/x-m4a` - * Add `audio/x-realaudio` - * Add `image/x-jng` - * Add `text/mathml` - -1.12.0 / 2015-06-05 -=================== - - * Add `application/bdoc` - * Add `application/vnd.hyperdrive+json` - * Add `application/x-bdoc` - * Add extension `.rtf` to `text/rtf` - -1.11.0 / 2015-05-31 -=================== - - * Add `audio/wav` - * Add `audio/wave` - * Add extension `.litcoffee` to `text/coffeescript` - * Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data` - * Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install` - -1.10.0 / 2015-05-19 -=================== - - * Add `application/vnd.balsamiq.bmpr` - * Add `application/vnd.microsoft.portable-executable` - * Add `application/x-ns-proxy-autoconfig` - -1.9.1 / 2015-04-19 -================== - - * Remove `.json` extension from `application/manifest+json` - - This is causing bugs downstream - -1.9.0 / 2015-04-19 -================== - - * Add `application/manifest+json` - * Add `application/vnd.micro+json` - * Add `image/vnd.zbrush.pcx` - * Add `image/x-ms-bmp` - -1.8.0 / 2015-03-13 -================== - - * Add `application/vnd.citationstyles.style+xml` - * Add `application/vnd.fastcopy-disk-image` - * Add `application/vnd.gov.sk.xmldatacontainer+xml` - * Add extension `.jsonld` to `application/ld+json` - -1.7.0 / 2015-02-08 -================== - - * Add `application/vnd.gerber` - * Add `application/vnd.msa-disk-image` - -1.6.1 / 2015-02-05 -================== - - * Community extensions ownership transferred from `node-mime` - -1.6.0 / 2015-01-29 -================== - - * Add `application/jose` - * Add `application/jose+json` - * Add `application/json-seq` - * Add `application/jwk+json` - * Add `application/jwk-set+json` - * Add `application/jwt` - * Add `application/rdap+json` - * Add `application/vnd.gov.sk.e-form+xml` - * Add `application/vnd.ims.imsccv1p3` - -1.5.0 / 2014-12-30 -================== - - * Add `application/vnd.oracle.resource+json` - * Fix various invalid MIME type entries - - `application/mbox+xml` - - `application/oscp-response` - - `application/vwg-multiplexed` - - `audio/g721` - -1.4.0 / 2014-12-21 -================== - - * Add `application/vnd.ims.imsccv1p2` - * Fix various invalid MIME type entries - - `application/vnd-acucobol` - - `application/vnd-curl` - - `application/vnd-dart` - - `application/vnd-dxr` - - `application/vnd-fdf` - - `application/vnd-mif` - - `application/vnd-sema` - - `application/vnd-wap-wmlc` - - `application/vnd.adobe.flash-movie` - - `application/vnd.dece-zip` - - `application/vnd.dvb_service` - - `application/vnd.micrografx-igx` - - `application/vnd.sealed-doc` - - `application/vnd.sealed-eml` - - `application/vnd.sealed-mht` - - `application/vnd.sealed-ppt` - - `application/vnd.sealed-tiff` - - `application/vnd.sealed-xls` - - `application/vnd.sealedmedia.softseal-html` - - `application/vnd.sealedmedia.softseal-pdf` - - `application/vnd.wap-slc` - - `application/vnd.wap-wbxml` - - `audio/vnd.sealedmedia.softseal-mpeg` - - `image/vnd-djvu` - - `image/vnd-svf` - - `image/vnd-wap-wbmp` - - `image/vnd.sealed-png` - - `image/vnd.sealedmedia.softseal-gif` - - `image/vnd.sealedmedia.softseal-jpg` - - `model/vnd-dwf` - - `model/vnd.parasolid.transmit-binary` - - `model/vnd.parasolid.transmit-text` - - `text/vnd-a` - - `text/vnd-curl` - - `text/vnd.wap-wml` - * Remove example template MIME types - - `application/example` - - `audio/example` - - `image/example` - - `message/example` - - `model/example` - - `multipart/example` - - `text/example` - - `video/example` - -1.3.1 / 2014-12-16 -================== - - * Fix missing extensions - - `application/json5` - - `text/hjson` - -1.3.0 / 2014-12-07 -================== - - * Add `application/a2l` - * Add `application/aml` - * Add `application/atfx` - * Add `application/atxml` - * Add `application/cdfx+xml` - * Add `application/dii` - * Add `application/json5` - * Add `application/lxf` - * Add `application/mf4` - * Add `application/vnd.apache.thrift.compact` - * Add `application/vnd.apache.thrift.json` - * Add `application/vnd.coffeescript` - * Add `application/vnd.enphase.envoy` - * Add `application/vnd.ims.imsccv1p1` - * Add `text/csv-schema` - * Add `text/hjson` - * Add `text/markdown` - * Add `text/yaml` - -1.2.0 / 2014-11-09 -================== - - * Add `application/cea` - * Add `application/dit` - * Add `application/vnd.gov.sk.e-form+zip` - * Add `application/vnd.tmd.mediaflex.api+xml` - * Type `application/epub+zip` is now IANA-registered - -1.1.2 / 2014-10-23 -================== - - * Rebuild database for `application/x-www-form-urlencoded` change - -1.1.1 / 2014-10-20 -================== - - * Mark `application/x-www-form-urlencoded` as compressible. - -1.1.0 / 2014-09-28 -================== - - * Add `application/font-woff2` - -1.0.3 / 2014-09-25 -================== - - * Fix engine requirement in package - -1.0.2 / 2014-09-25 -================== - - * Add `application/coap-group+json` - * Add `application/dcd` - * Add `application/vnd.apache.thrift.binary` - * Add `image/vnd.tencent.tap` - * Mark all JSON-derived types as compressible - * Update `text/vtt` data - -1.0.1 / 2014-08-30 -================== - - * Fix extension ordering - -1.0.0 / 2014-08-30 -================== - - * Add `application/atf` - * Add `application/merge-patch+json` - * Add `multipart/x-mixed-replace` - * Add `source: 'apache'` metadata - * Add `source: 'iana'` metadata - * Remove badly-assumed charset data diff --git a/node_modules/mime-db/LICENSE b/node_modules/mime-db/LICENSE deleted file mode 100644 index a7ae8ee..0000000 --- a/node_modules/mime-db/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ - -The MIT License (MIT) - -Copyright (c) 2014 Jonathan Ong me@jongleberry.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/mime-db/README.md b/node_modules/mime-db/README.md deleted file mode 100644 index 7662440..0000000 --- a/node_modules/mime-db/README.md +++ /dev/null @@ -1,82 +0,0 @@ -# mime-db - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-image]][node-url] -[![Build Status][travis-image]][travis-url] -[![Coverage Status][coveralls-image]][coveralls-url] - -This is a database of all mime types. -It consists of a single, public JSON file and does not include any logic, -allowing it to remain as un-opinionated as possible with an API. -It aggregates data from the following sources: - -- http://www.iana.org/assignments/media-types/media-types.xhtml -- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types -- http://hg.nginx.org/nginx/raw-file/default/conf/mime.types - -## Installation - -```bash -npm install mime-db -``` - -### Database Download - -If you're crazy enough to use this in the browser, you can just grab the -JSON file using [RawGit](https://rawgit.com/). It is recommended to replace -`master` with [a release tag](https://github.com/jshttp/mime-db/tags) as the -JSON format may change in the future. - -``` -https://cdn.rawgit.com/jshttp/mime-db/master/db.json -``` - -## Usage - -```js -var db = require('mime-db'); - -// grab data on .js files -var data = db['application/javascript']; -``` - -## Data Structure - -The JSON file is a map lookup for lowercased mime types. -Each mime type has the following properties: - -- `.source` - where the mime type is defined. - If not set, it's probably a custom media type. - - `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types) - - `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml) - - `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types) -- `.extensions[]` - known extensions associated with this mime type. -- `.compressible` - whether a file of this type can be gzipped. -- `.charset` - the default charset associated with this type, if any. - -If unknown, every property could be `undefined`. - -## Contributing - -To edit the database, only make PRs against `src/custom.json` or -`src/custom-suffix.json`. - -To update the build, run `npm run build`. - -## Adding Custom Media Types - -The best way to get new media types included in this library is to register -them with the IANA. The community registration procedure is outlined in -[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types -registered with the IANA are automatically pulled into this library. - -[npm-version-image]: https://img.shields.io/npm/v/mime-db.svg -[npm-downloads-image]: https://img.shields.io/npm/dm/mime-db.svg -[npm-url]: https://npmjs.org/package/mime-db -[travis-image]: https://img.shields.io/travis/jshttp/mime-db/master.svg -[travis-url]: https://travis-ci.org/jshttp/mime-db -[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-db/master.svg -[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master -[node-image]: https://img.shields.io/node/v/mime-db.svg -[node-url]: http://nodejs.org/download/ diff --git a/node_modules/mime-db/db.json b/node_modules/mime-db/db.json deleted file mode 100644 index 400b9e1..0000000 --- a/node_modules/mime-db/db.json +++ /dev/null @@ -1,6751 +0,0 @@ -{ - "application/1d-interleaved-parityfec": { - "source": "iana" - }, - "application/3gpdash-qoe-report+xml": { - "source": "iana" - }, - "application/3gpp-ims+xml": { - "source": "iana" - }, - "application/a2l": { - "source": "iana" - }, - "application/activemessage": { - "source": "iana" - }, - "application/alto-costmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-costmapfilter+json": { - "source": "iana", - "compressible": true - }, - "application/alto-directory+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointcost+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointcostparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointprop+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointpropparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-error+json": { - "source": "iana", - "compressible": true - }, - "application/alto-networkmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-networkmapfilter+json": { - "source": "iana", - "compressible": true - }, - "application/aml": { - "source": "iana" - }, - "application/andrew-inset": { - "source": "iana", - "extensions": ["ez"] - }, - "application/applefile": { - "source": "iana" - }, - "application/applixware": { - "source": "apache", - "extensions": ["aw"] - }, - "application/atf": { - "source": "iana" - }, - "application/atfx": { - "source": "iana" - }, - "application/atom+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atom"] - }, - "application/atomcat+xml": { - "source": "iana", - "extensions": ["atomcat"] - }, - "application/atomdeleted+xml": { - "source": "iana" - }, - "application/atomicmail": { - "source": "iana" - }, - "application/atomsvc+xml": { - "source": "iana", - "extensions": ["atomsvc"] - }, - "application/atxml": { - "source": "iana" - }, - "application/auth-policy+xml": { - "source": "iana" - }, - "application/bacnet-xdd+zip": { - "source": "iana" - }, - "application/batch-smtp": { - "source": "iana" - }, - "application/bdoc": { - "compressible": false, - "extensions": ["bdoc"] - }, - "application/beep+xml": { - "source": "iana" - }, - "application/calendar+json": { - "source": "iana", - "compressible": true - }, - "application/calendar+xml": { - "source": "iana" - }, - "application/call-completion": { - "source": "iana" - }, - "application/cals-1840": { - "source": "iana" - }, - "application/cbor": { - "source": "iana" - }, - "application/ccmp+xml": { - "source": "iana" - }, - "application/ccxml+xml": { - "source": "iana", - "extensions": ["ccxml"] - }, - "application/cdfx+xml": { - "source": "iana" - }, - "application/cdmi-capability": { - "source": "iana", - "extensions": ["cdmia"] - }, - "application/cdmi-container": { - "source": "iana", - "extensions": ["cdmic"] - }, - "application/cdmi-domain": { - "source": "iana", - "extensions": ["cdmid"] - }, - "application/cdmi-object": { - "source": "iana", - "extensions": ["cdmio"] - }, - "application/cdmi-queue": { - "source": "iana", - "extensions": ["cdmiq"] - }, - "application/cdni": { - "source": "iana" - }, - "application/cea": { - "source": "iana" - }, - "application/cea-2018+xml": { - "source": "iana" - }, - "application/cellml+xml": { - "source": "iana" - }, - "application/cfw": { - "source": "iana" - }, - "application/clue_info+xml": { - "source": "iana" - }, - "application/cms": { - "source": "iana" - }, - "application/cnrp+xml": { - "source": "iana" - }, - "application/coap-group+json": { - "source": "iana", - "compressible": true - }, - "application/coap-payload": { - "source": "iana" - }, - "application/commonground": { - "source": "iana" - }, - "application/conference-info+xml": { - "source": "iana" - }, - "application/cose": { - "source": "iana" - }, - "application/cose-key": { - "source": "iana" - }, - "application/cose-key-set": { - "source": "iana" - }, - "application/cpl+xml": { - "source": "iana" - }, - "application/csrattrs": { - "source": "iana" - }, - "application/csta+xml": { - "source": "iana" - }, - "application/cstadata+xml": { - "source": "iana" - }, - "application/csvm+json": { - "source": "iana", - "compressible": true - }, - "application/cu-seeme": { - "source": "apache", - "extensions": ["cu"] - }, - "application/cybercash": { - "source": "iana" - }, - "application/dart": { - "compressible": true - }, - "application/dash+xml": { - "source": "iana", - "extensions": ["mpd"] - }, - "application/dashdelta": { - "source": "iana" - }, - "application/davmount+xml": { - "source": "iana", - "extensions": ["davmount"] - }, - "application/dca-rft": { - "source": "iana" - }, - "application/dcd": { - "source": "iana" - }, - "application/dec-dx": { - "source": "iana" - }, - "application/dialog-info+xml": { - "source": "iana" - }, - "application/dicom": { - "source": "iana" - }, - "application/dicom+json": { - "source": "iana", - "compressible": true - }, - "application/dicom+xml": { - "source": "iana" - }, - "application/dii": { - "source": "iana" - }, - "application/dit": { - "source": "iana" - }, - "application/dns": { - "source": "iana" - }, - "application/docbook+xml": { - "source": "apache", - "extensions": ["dbk"] - }, - "application/dskpp+xml": { - "source": "iana" - }, - "application/dssc+der": { - "source": "iana", - "extensions": ["dssc"] - }, - "application/dssc+xml": { - "source": "iana", - "extensions": ["xdssc"] - }, - "application/dvcs": { - "source": "iana" - }, - "application/ecmascript": { - "source": "iana", - "compressible": true, - "extensions": ["ecma"] - }, - "application/edi-consent": { - "source": "iana" - }, - "application/edi-x12": { - "source": "iana", - "compressible": false - }, - "application/edifact": { - "source": "iana", - "compressible": false - }, - "application/efi": { - "source": "iana" - }, - "application/emergencycalldata.comment+xml": { - "source": "iana" - }, - "application/emergencycalldata.deviceinfo+xml": { - "source": "iana" - }, - "application/emergencycalldata.providerinfo+xml": { - "source": "iana" - }, - "application/emergencycalldata.serviceinfo+xml": { - "source": "iana" - }, - "application/emergencycalldata.subscriberinfo+xml": { - "source": "iana" - }, - "application/emma+xml": { - "source": "iana", - "extensions": ["emma"] - }, - "application/emotionml+xml": { - "source": "iana" - }, - "application/encaprtp": { - "source": "iana" - }, - "application/epp+xml": { - "source": "iana" - }, - "application/epub+zip": { - "source": "iana", - "extensions": ["epub"] - }, - "application/eshop": { - "source": "iana" - }, - "application/exi": { - "source": "iana", - "extensions": ["exi"] - }, - "application/fastinfoset": { - "source": "iana" - }, - "application/fastsoap": { - "source": "iana" - }, - "application/fdt+xml": { - "source": "iana" - }, - "application/fits": { - "source": "iana" - }, - "application/font-sfnt": { - "source": "iana" - }, - "application/font-tdpfr": { - "source": "iana", - "extensions": ["pfr"] - }, - "application/font-woff": { - "source": "iana", - "compressible": false, - "extensions": ["woff"] - }, - "application/font-woff2": { - "compressible": false, - "extensions": ["woff2"] - }, - "application/framework-attributes+xml": { - "source": "iana" - }, - "application/geo+json": { - "source": "iana", - "compressible": true, - "extensions": ["geojson"] - }, - "application/gml+xml": { - "source": "iana", - "extensions": ["gml"] - }, - "application/gpx+xml": { - "source": "apache", - "extensions": ["gpx"] - }, - "application/gxf": { - "source": "apache", - "extensions": ["gxf"] - }, - "application/gzip": { - "source": "iana", - "compressible": false - }, - "application/h224": { - "source": "iana" - }, - "application/held+xml": { - "source": "iana" - }, - "application/http": { - "source": "iana" - }, - "application/hyperstudio": { - "source": "iana", - "extensions": ["stk"] - }, - "application/ibe-key-request+xml": { - "source": "iana" - }, - "application/ibe-pkg-reply+xml": { - "source": "iana" - }, - "application/ibe-pp-data": { - "source": "iana" - }, - "application/iges": { - "source": "iana" - }, - "application/im-iscomposing+xml": { - "source": "iana" - }, - "application/index": { - "source": "iana" - }, - "application/index.cmd": { - "source": "iana" - }, - "application/index.obj": { - "source": "iana" - }, - "application/index.response": { - "source": "iana" - }, - "application/index.vnd": { - "source": "iana" - }, - "application/inkml+xml": { - "source": "iana", - "extensions": ["ink","inkml"] - }, - "application/iotp": { - "source": "iana" - }, - "application/ipfix": { - "source": "iana", - "extensions": ["ipfix"] - }, - "application/ipp": { - "source": "iana" - }, - "application/isup": { - "source": "iana" - }, - "application/its+xml": { - "source": "iana" - }, - "application/java-archive": { - "source": "apache", - "compressible": false, - "extensions": ["jar","war","ear"] - }, - "application/java-serialized-object": { - "source": "apache", - "compressible": false, - "extensions": ["ser"] - }, - "application/java-vm": { - "source": "apache", - "compressible": false, - "extensions": ["class"] - }, - "application/javascript": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["js"] - }, - "application/jose": { - "source": "iana" - }, - "application/jose+json": { - "source": "iana", - "compressible": true - }, - "application/jrd+json": { - "source": "iana", - "compressible": true - }, - "application/json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["json","map"] - }, - "application/json-patch+json": { - "source": "iana", - "compressible": true - }, - "application/json-seq": { - "source": "iana" - }, - "application/json5": { - "extensions": ["json5"] - }, - "application/jsonml+json": { - "source": "apache", - "compressible": true, - "extensions": ["jsonml"] - }, - "application/jwk+json": { - "source": "iana", - "compressible": true - }, - "application/jwk-set+json": { - "source": "iana", - "compressible": true - }, - "application/jwt": { - "source": "iana" - }, - "application/kpml-request+xml": { - "source": "iana" - }, - "application/kpml-response+xml": { - "source": "iana" - }, - "application/ld+json": { - "source": "iana", - "compressible": true, - "extensions": ["jsonld"] - }, - "application/lgr+xml": { - "source": "iana" - }, - "application/link-format": { - "source": "iana" - }, - "application/load-control+xml": { - "source": "iana" - }, - "application/lost+xml": { - "source": "iana", - "extensions": ["lostxml"] - }, - "application/lostsync+xml": { - "source": "iana" - }, - "application/lxf": { - "source": "iana" - }, - "application/mac-binhex40": { - "source": "iana", - "extensions": ["hqx"] - }, - "application/mac-compactpro": { - "source": "apache", - "extensions": ["cpt"] - }, - "application/macwriteii": { - "source": "iana" - }, - "application/mads+xml": { - "source": "iana", - "extensions": ["mads"] - }, - "application/manifest+json": { - "charset": "UTF-8", - "compressible": true, - "extensions": ["webmanifest"] - }, - "application/marc": { - "source": "iana", - "extensions": ["mrc"] - }, - "application/marcxml+xml": { - "source": "iana", - "extensions": ["mrcx"] - }, - "application/mathematica": { - "source": "iana", - "extensions": ["ma","nb","mb"] - }, - "application/mathml+xml": { - "source": "iana", - "extensions": ["mathml"] - }, - "application/mathml-content+xml": { - "source": "iana" - }, - "application/mathml-presentation+xml": { - "source": "iana" - }, - "application/mbms-associated-procedure-description+xml": { - "source": "iana" - }, - "application/mbms-deregister+xml": { - "source": "iana" - }, - "application/mbms-envelope+xml": { - "source": "iana" - }, - "application/mbms-msk+xml": { - "source": "iana" - }, - "application/mbms-msk-response+xml": { - "source": "iana" - }, - "application/mbms-protection-description+xml": { - "source": "iana" - }, - "application/mbms-reception-report+xml": { - "source": "iana" - }, - "application/mbms-register+xml": { - "source": "iana" - }, - "application/mbms-register-response+xml": { - "source": "iana" - }, - "application/mbms-schedule+xml": { - "source": "iana" - }, - "application/mbms-user-service-description+xml": { - "source": "iana" - }, - "application/mbox": { - "source": "iana", - "extensions": ["mbox"] - }, - "application/media-policy-dataset+xml": { - "source": "iana" - }, - "application/media_control+xml": { - "source": "iana" - }, - "application/mediaservercontrol+xml": { - "source": "iana", - "extensions": ["mscml"] - }, - "application/merge-patch+json": { - "source": "iana", - "compressible": true - }, - "application/metalink+xml": { - "source": "apache", - "extensions": ["metalink"] - }, - "application/metalink4+xml": { - "source": "iana", - "extensions": ["meta4"] - }, - "application/mets+xml": { - "source": "iana", - "extensions": ["mets"] - }, - "application/mf4": { - "source": "iana" - }, - "application/mikey": { - "source": "iana" - }, - "application/mods+xml": { - "source": "iana", - "extensions": ["mods"] - }, - "application/moss-keys": { - "source": "iana" - }, - "application/moss-signature": { - "source": "iana" - }, - "application/mosskey-data": { - "source": "iana" - }, - "application/mosskey-request": { - "source": "iana" - }, - "application/mp21": { - "source": "iana", - "extensions": ["m21","mp21"] - }, - "application/mp4": { - "source": "iana", - "extensions": ["mp4s","m4p"] - }, - "application/mpeg4-generic": { - "source": "iana" - }, - "application/mpeg4-iod": { - "source": "iana" - }, - "application/mpeg4-iod-xmt": { - "source": "iana" - }, - "application/mrb-consumer+xml": { - "source": "iana" - }, - "application/mrb-publish+xml": { - "source": "iana" - }, - "application/msc-ivr+xml": { - "source": "iana" - }, - "application/msc-mixer+xml": { - "source": "iana" - }, - "application/msword": { - "source": "iana", - "compressible": false, - "extensions": ["doc","dot"] - }, - "application/mud+json": { - "source": "iana", - "compressible": true - }, - "application/mxf": { - "source": "iana", - "extensions": ["mxf"] - }, - "application/nasdata": { - "source": "iana" - }, - "application/news-checkgroups": { - "source": "iana" - }, - "application/news-groupinfo": { - "source": "iana" - }, - "application/news-transmission": { - "source": "iana" - }, - "application/nlsml+xml": { - "source": "iana" - }, - "application/nss": { - "source": "iana" - }, - "application/ocsp-request": { - "source": "iana" - }, - "application/ocsp-response": { - "source": "iana" - }, - "application/octet-stream": { - "source": "iana", - "compressible": false, - "extensions": ["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"] - }, - "application/oda": { - "source": "iana", - "extensions": ["oda"] - }, - "application/odx": { - "source": "iana" - }, - "application/oebps-package+xml": { - "source": "iana", - "extensions": ["opf"] - }, - "application/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["ogx"] - }, - "application/omdoc+xml": { - "source": "apache", - "extensions": ["omdoc"] - }, - "application/onenote": { - "source": "apache", - "extensions": ["onetoc","onetoc2","onetmp","onepkg"] - }, - "application/oxps": { - "source": "iana", - "extensions": ["oxps"] - }, - "application/p2p-overlay+xml": { - "source": "iana" - }, - "application/parityfec": { - "source": "iana" - }, - "application/patch-ops-error+xml": { - "source": "iana", - "extensions": ["xer"] - }, - "application/pdf": { - "source": "iana", - "compressible": false, - "extensions": ["pdf"] - }, - "application/pdx": { - "source": "iana" - }, - "application/pgp-encrypted": { - "source": "iana", - "compressible": false, - "extensions": ["pgp"] - }, - "application/pgp-keys": { - "source": "iana" - }, - "application/pgp-signature": { - "source": "iana", - "extensions": ["asc","sig"] - }, - "application/pics-rules": { - "source": "apache", - "extensions": ["prf"] - }, - "application/pidf+xml": { - "source": "iana" - }, - "application/pidf-diff+xml": { - "source": "iana" - }, - "application/pkcs10": { - "source": "iana", - "extensions": ["p10"] - }, - "application/pkcs12": { - "source": "iana" - }, - "application/pkcs7-mime": { - "source": "iana", - "extensions": ["p7m","p7c"] - }, - "application/pkcs7-signature": { - "source": "iana", - "extensions": ["p7s"] - }, - "application/pkcs8": { - "source": "iana", - "extensions": ["p8"] - }, - "application/pkix-attr-cert": { - "source": "iana", - "extensions": ["ac"] - }, - "application/pkix-cert": { - "source": "iana", - "extensions": ["cer"] - }, - "application/pkix-crl": { - "source": "iana", - "extensions": ["crl"] - }, - "application/pkix-pkipath": { - "source": "iana", - "extensions": ["pkipath"] - }, - "application/pkixcmp": { - "source": "iana", - "extensions": ["pki"] - }, - "application/pls+xml": { - "source": "iana", - "extensions": ["pls"] - }, - "application/poc-settings+xml": { - "source": "iana" - }, - "application/postscript": { - "source": "iana", - "compressible": true, - "extensions": ["ai","eps","ps"] - }, - "application/ppsp-tracker+json": { - "source": "iana", - "compressible": true - }, - "application/problem+json": { - "source": "iana", - "compressible": true - }, - "application/problem+xml": { - "source": "iana" - }, - "application/provenance+xml": { - "source": "iana" - }, - "application/prs.alvestrand.titrax-sheet": { - "source": "iana" - }, - "application/prs.cww": { - "source": "iana", - "extensions": ["cww"] - }, - "application/prs.hpub+zip": { - "source": "iana" - }, - "application/prs.nprend": { - "source": "iana" - }, - "application/prs.plucker": { - "source": "iana" - }, - "application/prs.rdf-xml-crypt": { - "source": "iana" - }, - "application/prs.xsf+xml": { - "source": "iana" - }, - "application/pskc+xml": { - "source": "iana", - "extensions": ["pskcxml"] - }, - "application/qsig": { - "source": "iana" - }, - "application/raptorfec": { - "source": "iana" - }, - "application/rdap+json": { - "source": "iana", - "compressible": true - }, - "application/rdf+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rdf"] - }, - "application/reginfo+xml": { - "source": "iana", - "extensions": ["rif"] - }, - "application/relax-ng-compact-syntax": { - "source": "iana", - "extensions": ["rnc"] - }, - "application/remote-printing": { - "source": "iana" - }, - "application/reputon+json": { - "source": "iana", - "compressible": true - }, - "application/resource-lists+xml": { - "source": "iana", - "extensions": ["rl"] - }, - "application/resource-lists-diff+xml": { - "source": "iana", - "extensions": ["rld"] - }, - "application/rfc+xml": { - "source": "iana" - }, - "application/riscos": { - "source": "iana" - }, - "application/rlmi+xml": { - "source": "iana" - }, - "application/rls-services+xml": { - "source": "iana", - "extensions": ["rs"] - }, - "application/rpki-ghostbusters": { - "source": "iana", - "extensions": ["gbr"] - }, - "application/rpki-manifest": { - "source": "iana", - "extensions": ["mft"] - }, - "application/rpki-roa": { - "source": "iana", - "extensions": ["roa"] - }, - "application/rpki-updown": { - "source": "iana" - }, - "application/rsd+xml": { - "source": "apache", - "extensions": ["rsd"] - }, - "application/rss+xml": { - "source": "apache", - "compressible": true, - "extensions": ["rss"] - }, - "application/rtf": { - "source": "iana", - "compressible": true, - "extensions": ["rtf"] - }, - "application/rtploopback": { - "source": "iana" - }, - "application/rtx": { - "source": "iana" - }, - "application/samlassertion+xml": { - "source": "iana" - }, - "application/samlmetadata+xml": { - "source": "iana" - }, - "application/sbml+xml": { - "source": "iana", - "extensions": ["sbml"] - }, - "application/scaip+xml": { - "source": "iana" - }, - "application/scim+json": { - "source": "iana", - "compressible": true - }, - "application/scvp-cv-request": { - "source": "iana", - "extensions": ["scq"] - }, - "application/scvp-cv-response": { - "source": "iana", - "extensions": ["scs"] - }, - "application/scvp-vp-request": { - "source": "iana", - "extensions": ["spq"] - }, - "application/scvp-vp-response": { - "source": "iana", - "extensions": ["spp"] - }, - "application/sdp": { - "source": "iana", - "extensions": ["sdp"] - }, - "application/sep+xml": { - "source": "iana" - }, - "application/sep-exi": { - "source": "iana" - }, - "application/session-info": { - "source": "iana" - }, - "application/set-payment": { - "source": "iana" - }, - "application/set-payment-initiation": { - "source": "iana", - "extensions": ["setpay"] - }, - "application/set-registration": { - "source": "iana" - }, - "application/set-registration-initiation": { - "source": "iana", - "extensions": ["setreg"] - }, - "application/sgml": { - "source": "iana" - }, - "application/sgml-open-catalog": { - "source": "iana" - }, - "application/shf+xml": { - "source": "iana", - "extensions": ["shf"] - }, - "application/sieve": { - "source": "iana" - }, - "application/simple-filter+xml": { - "source": "iana" - }, - "application/simple-message-summary": { - "source": "iana" - }, - "application/simplesymbolcontainer": { - "source": "iana" - }, - "application/slate": { - "source": "iana" - }, - "application/smil": { - "source": "iana" - }, - "application/smil+xml": { - "source": "iana", - "extensions": ["smi","smil"] - }, - "application/smpte336m": { - "source": "iana" - }, - "application/soap+fastinfoset": { - "source": "iana" - }, - "application/soap+xml": { - "source": "iana", - "compressible": true - }, - "application/sparql-query": { - "source": "iana", - "extensions": ["rq"] - }, - "application/sparql-results+xml": { - "source": "iana", - "extensions": ["srx"] - }, - "application/spirits-event+xml": { - "source": "iana" - }, - "application/sql": { - "source": "iana" - }, - "application/srgs": { - "source": "iana", - "extensions": ["gram"] - }, - "application/srgs+xml": { - "source": "iana", - "extensions": ["grxml"] - }, - "application/sru+xml": { - "source": "iana", - "extensions": ["sru"] - }, - "application/ssdl+xml": { - "source": "apache", - "extensions": ["ssdl"] - }, - "application/ssml+xml": { - "source": "iana", - "extensions": ["ssml"] - }, - "application/tamp-apex-update": { - "source": "iana" - }, - "application/tamp-apex-update-confirm": { - "source": "iana" - }, - "application/tamp-community-update": { - "source": "iana" - }, - "application/tamp-community-update-confirm": { - "source": "iana" - }, - "application/tamp-error": { - "source": "iana" - }, - "application/tamp-sequence-adjust": { - "source": "iana" - }, - "application/tamp-sequence-adjust-confirm": { - "source": "iana" - }, - "application/tamp-status-query": { - "source": "iana" - }, - "application/tamp-status-response": { - "source": "iana" - }, - "application/tamp-update": { - "source": "iana" - }, - "application/tamp-update-confirm": { - "source": "iana" - }, - "application/tar": { - "compressible": true - }, - "application/tei+xml": { - "source": "iana", - "extensions": ["tei","teicorpus"] - }, - "application/thraud+xml": { - "source": "iana", - "extensions": ["tfi"] - }, - "application/timestamp-query": { - "source": "iana" - }, - "application/timestamp-reply": { - "source": "iana" - }, - "application/timestamped-data": { - "source": "iana", - "extensions": ["tsd"] - }, - "application/trig": { - "source": "iana" - }, - "application/ttml+xml": { - "source": "iana" - }, - "application/tve-trigger": { - "source": "iana" - }, - "application/ulpfec": { - "source": "iana" - }, - "application/urc-grpsheet+xml": { - "source": "iana" - }, - "application/urc-ressheet+xml": { - "source": "iana" - }, - "application/urc-targetdesc+xml": { - "source": "iana" - }, - "application/urc-uisocketdesc+xml": { - "source": "iana" - }, - "application/vcard+json": { - "source": "iana", - "compressible": true - }, - "application/vcard+xml": { - "source": "iana" - }, - "application/vemmi": { - "source": "iana" - }, - "application/vividence.scriptfile": { - "source": "apache" - }, - "application/vnd.3gpp-prose+xml": { - "source": "iana" - }, - "application/vnd.3gpp-prose-pc3ch+xml": { - "source": "iana" - }, - "application/vnd.3gpp.access-transfer-events+xml": { - "source": "iana" - }, - "application/vnd.3gpp.bsf+xml": { - "source": "iana" - }, - "application/vnd.3gpp.mid-call+xml": { - "source": "iana" - }, - "application/vnd.3gpp.pic-bw-large": { - "source": "iana", - "extensions": ["plb"] - }, - "application/vnd.3gpp.pic-bw-small": { - "source": "iana", - "extensions": ["psb"] - }, - "application/vnd.3gpp.pic-bw-var": { - "source": "iana", - "extensions": ["pvb"] - }, - "application/vnd.3gpp.sms": { - "source": "iana" - }, - "application/vnd.3gpp.sms+xml": { - "source": "iana" - }, - "application/vnd.3gpp.srvcc-ext+xml": { - "source": "iana" - }, - "application/vnd.3gpp.srvcc-info+xml": { - "source": "iana" - }, - "application/vnd.3gpp.state-and-event-info+xml": { - "source": "iana" - }, - "application/vnd.3gpp.ussd+xml": { - "source": "iana" - }, - "application/vnd.3gpp2.bcmcsinfo+xml": { - "source": "iana" - }, - "application/vnd.3gpp2.sms": { - "source": "iana" - }, - "application/vnd.3gpp2.tcap": { - "source": "iana", - "extensions": ["tcap"] - }, - "application/vnd.3lightssoftware.imagescal": { - "source": "iana" - }, - "application/vnd.3m.post-it-notes": { - "source": "iana", - "extensions": ["pwn"] - }, - "application/vnd.accpac.simply.aso": { - "source": "iana", - "extensions": ["aso"] - }, - "application/vnd.accpac.simply.imp": { - "source": "iana", - "extensions": ["imp"] - }, - "application/vnd.acucobol": { - "source": "iana", - "extensions": ["acu"] - }, - "application/vnd.acucorp": { - "source": "iana", - "extensions": ["atc","acutc"] - }, - "application/vnd.adobe.air-application-installer-package+zip": { - "source": "apache", - "extensions": ["air"] - }, - "application/vnd.adobe.flash.movie": { - "source": "iana" - }, - "application/vnd.adobe.formscentral.fcdt": { - "source": "iana", - "extensions": ["fcdt"] - }, - "application/vnd.adobe.fxp": { - "source": "iana", - "extensions": ["fxp","fxpl"] - }, - "application/vnd.adobe.partial-upload": { - "source": "iana" - }, - "application/vnd.adobe.xdp+xml": { - "source": "iana", - "extensions": ["xdp"] - }, - "application/vnd.adobe.xfdf": { - "source": "iana", - "extensions": ["xfdf"] - }, - "application/vnd.aether.imp": { - "source": "iana" - }, - "application/vnd.ah-barcode": { - "source": "iana" - }, - "application/vnd.ahead.space": { - "source": "iana", - "extensions": ["ahead"] - }, - "application/vnd.airzip.filesecure.azf": { - "source": "iana", - "extensions": ["azf"] - }, - "application/vnd.airzip.filesecure.azs": { - "source": "iana", - "extensions": ["azs"] - }, - "application/vnd.amazon.ebook": { - "source": "apache", - "extensions": ["azw"] - }, - "application/vnd.amazon.mobi8-ebook": { - "source": "iana" - }, - "application/vnd.americandynamics.acc": { - "source": "iana", - "extensions": ["acc"] - }, - "application/vnd.amiga.ami": { - "source": "iana", - "extensions": ["ami"] - }, - "application/vnd.amundsen.maze+xml": { - "source": "iana" - }, - "application/vnd.android.package-archive": { - "source": "apache", - "compressible": false, - "extensions": ["apk"] - }, - "application/vnd.anki": { - "source": "iana" - }, - "application/vnd.anser-web-certificate-issue-initiation": { - "source": "iana", - "extensions": ["cii"] - }, - "application/vnd.anser-web-funds-transfer-initiation": { - "source": "apache", - "extensions": ["fti"] - }, - "application/vnd.antix.game-component": { - "source": "iana", - "extensions": ["atx"] - }, - "application/vnd.apache.thrift.binary": { - "source": "iana" - }, - "application/vnd.apache.thrift.compact": { - "source": "iana" - }, - "application/vnd.apache.thrift.json": { - "source": "iana" - }, - "application/vnd.api+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.apple.installer+xml": { - "source": "iana", - "extensions": ["mpkg"] - }, - "application/vnd.apple.mpegurl": { - "source": "iana", - "extensions": ["m3u8"] - }, - "application/vnd.apple.pkpass": { - "compressible": false, - "extensions": ["pkpass"] - }, - "application/vnd.arastra.swi": { - "source": "iana" - }, - "application/vnd.aristanetworks.swi": { - "source": "iana", - "extensions": ["swi"] - }, - "application/vnd.artsquare": { - "source": "iana" - }, - "application/vnd.astraea-software.iota": { - "source": "iana", - "extensions": ["iota"] - }, - "application/vnd.audiograph": { - "source": "iana", - "extensions": ["aep"] - }, - "application/vnd.autopackage": { - "source": "iana" - }, - "application/vnd.avistar+xml": { - "source": "iana" - }, - "application/vnd.balsamiq.bmml+xml": { - "source": "iana" - }, - "application/vnd.balsamiq.bmpr": { - "source": "iana" - }, - "application/vnd.bekitzur-stech+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.biopax.rdf+xml": { - "source": "iana" - }, - "application/vnd.blueice.multipass": { - "source": "iana", - "extensions": ["mpm"] - }, - "application/vnd.bluetooth.ep.oob": { - "source": "iana" - }, - "application/vnd.bluetooth.le.oob": { - "source": "iana" - }, - "application/vnd.bmi": { - "source": "iana", - "extensions": ["bmi"] - }, - "application/vnd.businessobjects": { - "source": "iana", - "extensions": ["rep"] - }, - "application/vnd.cab-jscript": { - "source": "iana" - }, - "application/vnd.canon-cpdl": { - "source": "iana" - }, - "application/vnd.canon-lips": { - "source": "iana" - }, - "application/vnd.cendio.thinlinc.clientconf": { - "source": "iana" - }, - "application/vnd.century-systems.tcp_stream": { - "source": "iana" - }, - "application/vnd.chemdraw+xml": { - "source": "iana", - "extensions": ["cdxml"] - }, - "application/vnd.chess-pgn": { - "source": "iana" - }, - "application/vnd.chipnuts.karaoke-mmd": { - "source": "iana", - "extensions": ["mmd"] - }, - "application/vnd.cinderella": { - "source": "iana", - "extensions": ["cdy"] - }, - "application/vnd.cirpack.isdn-ext": { - "source": "iana" - }, - "application/vnd.citationstyles.style+xml": { - "source": "iana" - }, - "application/vnd.claymore": { - "source": "iana", - "extensions": ["cla"] - }, - "application/vnd.cloanto.rp9": { - "source": "iana", - "extensions": ["rp9"] - }, - "application/vnd.clonk.c4group": { - "source": "iana", - "extensions": ["c4g","c4d","c4f","c4p","c4u"] - }, - "application/vnd.cluetrust.cartomobile-config": { - "source": "iana", - "extensions": ["c11amc"] - }, - "application/vnd.cluetrust.cartomobile-config-pkg": { - "source": "iana", - "extensions": ["c11amz"] - }, - "application/vnd.coffeescript": { - "source": "iana" - }, - "application/vnd.collection+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.collection.doc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.collection.next+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.comicbook+zip": { - "source": "iana" - }, - "application/vnd.commerce-battelle": { - "source": "iana" - }, - "application/vnd.commonspace": { - "source": "iana", - "extensions": ["csp"] - }, - "application/vnd.contact.cmsg": { - "source": "iana", - "extensions": ["cdbcmsg"] - }, - "application/vnd.coreos.ignition+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cosmocaller": { - "source": "iana", - "extensions": ["cmc"] - }, - "application/vnd.crick.clicker": { - "source": "iana", - "extensions": ["clkx"] - }, - "application/vnd.crick.clicker.keyboard": { - "source": "iana", - "extensions": ["clkk"] - }, - "application/vnd.crick.clicker.palette": { - "source": "iana", - "extensions": ["clkp"] - }, - "application/vnd.crick.clicker.template": { - "source": "iana", - "extensions": ["clkt"] - }, - "application/vnd.crick.clicker.wordbank": { - "source": "iana", - "extensions": ["clkw"] - }, - "application/vnd.criticaltools.wbs+xml": { - "source": "iana", - "extensions": ["wbs"] - }, - "application/vnd.ctc-posml": { - "source": "iana", - "extensions": ["pml"] - }, - "application/vnd.ctct.ws+xml": { - "source": "iana" - }, - "application/vnd.cups-pdf": { - "source": "iana" - }, - "application/vnd.cups-postscript": { - "source": "iana" - }, - "application/vnd.cups-ppd": { - "source": "iana", - "extensions": ["ppd"] - }, - "application/vnd.cups-raster": { - "source": "iana" - }, - "application/vnd.cups-raw": { - "source": "iana" - }, - "application/vnd.curl": { - "source": "iana" - }, - "application/vnd.curl.car": { - "source": "apache", - "extensions": ["car"] - }, - "application/vnd.curl.pcurl": { - "source": "apache", - "extensions": ["pcurl"] - }, - "application/vnd.cyan.dean.root+xml": { - "source": "iana" - }, - "application/vnd.cybank": { - "source": "iana" - }, - "application/vnd.d2l.coursepackage1p0+zip": { - "source": "iana" - }, - "application/vnd.dart": { - "source": "iana", - "compressible": true, - "extensions": ["dart"] - }, - "application/vnd.data-vision.rdz": { - "source": "iana", - "extensions": ["rdz"] - }, - "application/vnd.dataresource+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.debian.binary-package": { - "source": "iana" - }, - "application/vnd.dece.data": { - "source": "iana", - "extensions": ["uvf","uvvf","uvd","uvvd"] - }, - "application/vnd.dece.ttml+xml": { - "source": "iana", - "extensions": ["uvt","uvvt"] - }, - "application/vnd.dece.unspecified": { - "source": "iana", - "extensions": ["uvx","uvvx"] - }, - "application/vnd.dece.zip": { - "source": "iana", - "extensions": ["uvz","uvvz"] - }, - "application/vnd.denovo.fcselayout-link": { - "source": "iana", - "extensions": ["fe_launch"] - }, - "application/vnd.desmume-movie": { - "source": "iana" - }, - "application/vnd.desmume.movie": { - "source": "apache" - }, - "application/vnd.dir-bi.plate-dl-nosuffix": { - "source": "iana" - }, - "application/vnd.dm.delegation+xml": { - "source": "iana" - }, - "application/vnd.dna": { - "source": "iana", - "extensions": ["dna"] - }, - "application/vnd.document+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dolby.mlp": { - "source": "apache", - "extensions": ["mlp"] - }, - "application/vnd.dolby.mobile.1": { - "source": "iana" - }, - "application/vnd.dolby.mobile.2": { - "source": "iana" - }, - "application/vnd.doremir.scorecloud-binary-document": { - "source": "iana" - }, - "application/vnd.dpgraph": { - "source": "iana", - "extensions": ["dpg"] - }, - "application/vnd.dreamfactory": { - "source": "iana", - "extensions": ["dfac"] - }, - "application/vnd.drive+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ds-keypoint": { - "source": "apache", - "extensions": ["kpxx"] - }, - "application/vnd.dtg.local": { - "source": "iana" - }, - "application/vnd.dtg.local.flash": { - "source": "iana" - }, - "application/vnd.dtg.local.html": { - "source": "iana" - }, - "application/vnd.dvb.ait": { - "source": "iana", - "extensions": ["ait"] - }, - "application/vnd.dvb.dvbj": { - "source": "iana" - }, - "application/vnd.dvb.esgcontainer": { - "source": "iana" - }, - "application/vnd.dvb.ipdcdftnotifaccess": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgaccess": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgaccess2": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgpdd": { - "source": "iana" - }, - "application/vnd.dvb.ipdcroaming": { - "source": "iana" - }, - "application/vnd.dvb.iptv.alfec-base": { - "source": "iana" - }, - "application/vnd.dvb.iptv.alfec-enhancement": { - "source": "iana" - }, - "application/vnd.dvb.notif-aggregate-root+xml": { - "source": "iana" - }, - "application/vnd.dvb.notif-container+xml": { - "source": "iana" - }, - "application/vnd.dvb.notif-generic+xml": { - "source": "iana" - }, - "application/vnd.dvb.notif-ia-msglist+xml": { - "source": "iana" - }, - "application/vnd.dvb.notif-ia-registration-request+xml": { - "source": "iana" - }, - "application/vnd.dvb.notif-ia-registration-response+xml": { - "source": "iana" - }, - "application/vnd.dvb.notif-init+xml": { - "source": "iana" - }, - "application/vnd.dvb.pfr": { - "source": "iana" - }, - "application/vnd.dvb.service": { - "source": "iana", - "extensions": ["svc"] - }, - "application/vnd.dxr": { - "source": "iana" - }, - "application/vnd.dynageo": { - "source": "iana", - "extensions": ["geo"] - }, - "application/vnd.dzr": { - "source": "iana" - }, - "application/vnd.easykaraoke.cdgdownload": { - "source": "iana" - }, - "application/vnd.ecdis-update": { - "source": "iana" - }, - "application/vnd.ecowin.chart": { - "source": "iana", - "extensions": ["mag"] - }, - "application/vnd.ecowin.filerequest": { - "source": "iana" - }, - "application/vnd.ecowin.fileupdate": { - "source": "iana" - }, - "application/vnd.ecowin.series": { - "source": "iana" - }, - "application/vnd.ecowin.seriesrequest": { - "source": "iana" - }, - "application/vnd.ecowin.seriesupdate": { - "source": "iana" - }, - "application/vnd.emclient.accessrequest+xml": { - "source": "iana" - }, - "application/vnd.enliven": { - "source": "iana", - "extensions": ["nml"] - }, - "application/vnd.enphase.envoy": { - "source": "iana" - }, - "application/vnd.eprints.data+xml": { - "source": "iana" - }, - "application/vnd.epson.esf": { - "source": "iana", - "extensions": ["esf"] - }, - "application/vnd.epson.msf": { - "source": "iana", - "extensions": ["msf"] - }, - "application/vnd.epson.quickanime": { - "source": "iana", - "extensions": ["qam"] - }, - "application/vnd.epson.salt": { - "source": "iana", - "extensions": ["slt"] - }, - "application/vnd.epson.ssf": { - "source": "iana", - "extensions": ["ssf"] - }, - "application/vnd.ericsson.quickcall": { - "source": "iana" - }, - "application/vnd.espass-espass+zip": { - "source": "iana" - }, - "application/vnd.eszigno3+xml": { - "source": "iana", - "extensions": ["es3","et3"] - }, - "application/vnd.etsi.aoc+xml": { - "source": "iana" - }, - "application/vnd.etsi.asic-e+zip": { - "source": "iana" - }, - "application/vnd.etsi.asic-s+zip": { - "source": "iana" - }, - "application/vnd.etsi.cug+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvcommand+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvdiscovery+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvprofile+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvsad-bc+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvsad-cod+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvsad-npvr+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvservice+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvsync+xml": { - "source": "iana" - }, - "application/vnd.etsi.iptvueprofile+xml": { - "source": "iana" - }, - "application/vnd.etsi.mcid+xml": { - "source": "iana" - }, - "application/vnd.etsi.mheg5": { - "source": "iana" - }, - "application/vnd.etsi.overload-control-policy-dataset+xml": { - "source": "iana" - }, - "application/vnd.etsi.pstn+xml": { - "source": "iana" - }, - "application/vnd.etsi.sci+xml": { - "source": "iana" - }, - "application/vnd.etsi.simservs+xml": { - "source": "iana" - }, - "application/vnd.etsi.timestamp-token": { - "source": "iana" - }, - "application/vnd.etsi.tsl+xml": { - "source": "iana" - }, - "application/vnd.etsi.tsl.der": { - "source": "iana" - }, - "application/vnd.eudora.data": { - "source": "iana" - }, - "application/vnd.ezpix-album": { - "source": "iana", - "extensions": ["ez2"] - }, - "application/vnd.ezpix-package": { - "source": "iana", - "extensions": ["ez3"] - }, - "application/vnd.f-secure.mobile": { - "source": "iana" - }, - "application/vnd.fastcopy-disk-image": { - "source": "iana" - }, - "application/vnd.fdf": { - "source": "iana", - "extensions": ["fdf"] - }, - "application/vnd.fdsn.mseed": { - "source": "iana", - "extensions": ["mseed"] - }, - "application/vnd.fdsn.seed": { - "source": "iana", - "extensions": ["seed","dataless"] - }, - "application/vnd.ffsns": { - "source": "iana" - }, - "application/vnd.filmit.zfc": { - "source": "iana" - }, - "application/vnd.fints": { - "source": "iana" - }, - "application/vnd.firemonkeys.cloudcell": { - "source": "iana" - }, - "application/vnd.flographit": { - "source": "iana", - "extensions": ["gph"] - }, - "application/vnd.fluxtime.clip": { - "source": "iana", - "extensions": ["ftc"] - }, - "application/vnd.font-fontforge-sfd": { - "source": "iana" - }, - "application/vnd.framemaker": { - "source": "iana", - "extensions": ["fm","frame","maker","book"] - }, - "application/vnd.frogans.fnc": { - "source": "iana", - "extensions": ["fnc"] - }, - "application/vnd.frogans.ltf": { - "source": "iana", - "extensions": ["ltf"] - }, - "application/vnd.fsc.weblaunch": { - "source": "iana", - "extensions": ["fsc"] - }, - "application/vnd.fujitsu.oasys": { - "source": "iana", - "extensions": ["oas"] - }, - "application/vnd.fujitsu.oasys2": { - "source": "iana", - "extensions": ["oa2"] - }, - "application/vnd.fujitsu.oasys3": { - "source": "iana", - "extensions": ["oa3"] - }, - "application/vnd.fujitsu.oasysgp": { - "source": "iana", - "extensions": ["fg5"] - }, - "application/vnd.fujitsu.oasysprs": { - "source": "iana", - "extensions": ["bh2"] - }, - "application/vnd.fujixerox.art-ex": { - "source": "iana" - }, - "application/vnd.fujixerox.art4": { - "source": "iana" - }, - "application/vnd.fujixerox.ddd": { - "source": "iana", - "extensions": ["ddd"] - }, - "application/vnd.fujixerox.docuworks": { - "source": "iana", - "extensions": ["xdw"] - }, - "application/vnd.fujixerox.docuworks.binder": { - "source": "iana", - "extensions": ["xbd"] - }, - "application/vnd.fujixerox.docuworks.container": { - "source": "iana" - }, - "application/vnd.fujixerox.hbpl": { - "source": "iana" - }, - "application/vnd.fut-misnet": { - "source": "iana" - }, - "application/vnd.fuzzysheet": { - "source": "iana", - "extensions": ["fzs"] - }, - "application/vnd.genomatix.tuxedo": { - "source": "iana", - "extensions": ["txd"] - }, - "application/vnd.geo+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.geocube+xml": { - "source": "iana" - }, - "application/vnd.geogebra.file": { - "source": "iana", - "extensions": ["ggb"] - }, - "application/vnd.geogebra.tool": { - "source": "iana", - "extensions": ["ggt"] - }, - "application/vnd.geometry-explorer": { - "source": "iana", - "extensions": ["gex","gre"] - }, - "application/vnd.geonext": { - "source": "iana", - "extensions": ["gxt"] - }, - "application/vnd.geoplan": { - "source": "iana", - "extensions": ["g2w"] - }, - "application/vnd.geospace": { - "source": "iana", - "extensions": ["g3w"] - }, - "application/vnd.gerber": { - "source": "iana" - }, - "application/vnd.globalplatform.card-content-mgt": { - "source": "iana" - }, - "application/vnd.globalplatform.card-content-mgt-response": { - "source": "iana" - }, - "application/vnd.gmx": { - "source": "iana", - "extensions": ["gmx"] - }, - "application/vnd.google-apps.document": { - "compressible": false, - "extensions": ["gdoc"] - }, - "application/vnd.google-apps.presentation": { - "compressible": false, - "extensions": ["gslides"] - }, - "application/vnd.google-apps.spreadsheet": { - "compressible": false, - "extensions": ["gsheet"] - }, - "application/vnd.google-earth.kml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["kml"] - }, - "application/vnd.google-earth.kmz": { - "source": "iana", - "compressible": false, - "extensions": ["kmz"] - }, - "application/vnd.gov.sk.e-form+xml": { - "source": "iana" - }, - "application/vnd.gov.sk.e-form+zip": { - "source": "iana" - }, - "application/vnd.gov.sk.xmldatacontainer+xml": { - "source": "iana" - }, - "application/vnd.grafeq": { - "source": "iana", - "extensions": ["gqf","gqs"] - }, - "application/vnd.gridmp": { - "source": "iana" - }, - "application/vnd.groove-account": { - "source": "iana", - "extensions": ["gac"] - }, - "application/vnd.groove-help": { - "source": "iana", - "extensions": ["ghf"] - }, - "application/vnd.groove-identity-message": { - "source": "iana", - "extensions": ["gim"] - }, - "application/vnd.groove-injector": { - "source": "iana", - "extensions": ["grv"] - }, - "application/vnd.groove-tool-message": { - "source": "iana", - "extensions": ["gtm"] - }, - "application/vnd.groove-tool-template": { - "source": "iana", - "extensions": ["tpl"] - }, - "application/vnd.groove-vcard": { - "source": "iana", - "extensions": ["vcg"] - }, - "application/vnd.hal+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hal+xml": { - "source": "iana", - "extensions": ["hal"] - }, - "application/vnd.handheld-entertainment+xml": { - "source": "iana", - "extensions": ["zmm"] - }, - "application/vnd.hbci": { - "source": "iana", - "extensions": ["hbci"] - }, - "application/vnd.hc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hcl-bireports": { - "source": "iana" - }, - "application/vnd.hdt": { - "source": "iana" - }, - "application/vnd.heroku+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hhe.lesson-player": { - "source": "iana", - "extensions": ["les"] - }, - "application/vnd.hp-hpgl": { - "source": "iana", - "extensions": ["hpgl"] - }, - "application/vnd.hp-hpid": { - "source": "iana", - "extensions": ["hpid"] - }, - "application/vnd.hp-hps": { - "source": "iana", - "extensions": ["hps"] - }, - "application/vnd.hp-jlyt": { - "source": "iana", - "extensions": ["jlt"] - }, - "application/vnd.hp-pcl": { - "source": "iana", - "extensions": ["pcl"] - }, - "application/vnd.hp-pclxl": { - "source": "iana", - "extensions": ["pclxl"] - }, - "application/vnd.httphone": { - "source": "iana" - }, - "application/vnd.hydrostatix.sof-data": { - "source": "iana", - "extensions": ["sfd-hdstx"] - }, - "application/vnd.hyperdrive+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hzn-3d-crossword": { - "source": "iana" - }, - "application/vnd.ibm.afplinedata": { - "source": "iana" - }, - "application/vnd.ibm.electronic-media": { - "source": "iana" - }, - "application/vnd.ibm.minipay": { - "source": "iana", - "extensions": ["mpy"] - }, - "application/vnd.ibm.modcap": { - "source": "iana", - "extensions": ["afp","listafp","list3820"] - }, - "application/vnd.ibm.rights-management": { - "source": "iana", - "extensions": ["irm"] - }, - "application/vnd.ibm.secure-container": { - "source": "iana", - "extensions": ["sc"] - }, - "application/vnd.iccprofile": { - "source": "iana", - "extensions": ["icc","icm"] - }, - "application/vnd.ieee.1905": { - "source": "iana" - }, - "application/vnd.igloader": { - "source": "iana", - "extensions": ["igl"] - }, - "application/vnd.immervision-ivp": { - "source": "iana", - "extensions": ["ivp"] - }, - "application/vnd.immervision-ivu": { - "source": "iana", - "extensions": ["ivu"] - }, - "application/vnd.ims.imsccv1p1": { - "source": "iana" - }, - "application/vnd.ims.imsccv1p2": { - "source": "iana" - }, - "application/vnd.ims.imsccv1p3": { - "source": "iana" - }, - "application/vnd.ims.lis.v2.result+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolconsumerprofile+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolproxy+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolproxy.id+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolsettings+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolsettings.simple+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.informedcontrol.rms+xml": { - "source": "iana" - }, - "application/vnd.informix-visionary": { - "source": "iana" - }, - "application/vnd.infotech.project": { - "source": "iana" - }, - "application/vnd.infotech.project+xml": { - "source": "iana" - }, - "application/vnd.innopath.wamp.notification": { - "source": "iana" - }, - "application/vnd.insors.igm": { - "source": "iana", - "extensions": ["igm"] - }, - "application/vnd.intercon.formnet": { - "source": "iana", - "extensions": ["xpw","xpx"] - }, - "application/vnd.intergeo": { - "source": "iana", - "extensions": ["i2g"] - }, - "application/vnd.intertrust.digibox": { - "source": "iana" - }, - "application/vnd.intertrust.nncp": { - "source": "iana" - }, - "application/vnd.intu.qbo": { - "source": "iana", - "extensions": ["qbo"] - }, - "application/vnd.intu.qfx": { - "source": "iana", - "extensions": ["qfx"] - }, - "application/vnd.iptc.g2.catalogitem+xml": { - "source": "iana" - }, - "application/vnd.iptc.g2.conceptitem+xml": { - "source": "iana" - }, - "application/vnd.iptc.g2.knowledgeitem+xml": { - "source": "iana" - }, - "application/vnd.iptc.g2.newsitem+xml": { - "source": "iana" - }, - "application/vnd.iptc.g2.newsmessage+xml": { - "source": "iana" - }, - "application/vnd.iptc.g2.packageitem+xml": { - "source": "iana" - }, - "application/vnd.iptc.g2.planningitem+xml": { - "source": "iana" - }, - "application/vnd.ipunplugged.rcprofile": { - "source": "iana", - "extensions": ["rcprofile"] - }, - "application/vnd.irepository.package+xml": { - "source": "iana", - "extensions": ["irp"] - }, - "application/vnd.is-xpr": { - "source": "iana", - "extensions": ["xpr"] - }, - "application/vnd.isac.fcs": { - "source": "iana", - "extensions": ["fcs"] - }, - "application/vnd.jam": { - "source": "iana", - "extensions": ["jam"] - }, - "application/vnd.japannet-directory-service": { - "source": "iana" - }, - "application/vnd.japannet-jpnstore-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-payment-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-registration": { - "source": "iana" - }, - "application/vnd.japannet-registration-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-setstore-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-verification": { - "source": "iana" - }, - "application/vnd.japannet-verification-wakeup": { - "source": "iana" - }, - "application/vnd.jcp.javame.midlet-rms": { - "source": "iana", - "extensions": ["rms"] - }, - "application/vnd.jisp": { - "source": "iana", - "extensions": ["jisp"] - }, - "application/vnd.joost.joda-archive": { - "source": "iana", - "extensions": ["joda"] - }, - "application/vnd.jsk.isdn-ngn": { - "source": "iana" - }, - "application/vnd.kahootz": { - "source": "iana", - "extensions": ["ktz","ktr"] - }, - "application/vnd.kde.karbon": { - "source": "iana", - "extensions": ["karbon"] - }, - "application/vnd.kde.kchart": { - "source": "iana", - "extensions": ["chrt"] - }, - "application/vnd.kde.kformula": { - "source": "iana", - "extensions": ["kfo"] - }, - "application/vnd.kde.kivio": { - "source": "iana", - "extensions": ["flw"] - }, - "application/vnd.kde.kontour": { - "source": "iana", - "extensions": ["kon"] - }, - "application/vnd.kde.kpresenter": { - "source": "iana", - "extensions": ["kpr","kpt"] - }, - "application/vnd.kde.kspread": { - "source": "iana", - "extensions": ["ksp"] - }, - "application/vnd.kde.kword": { - "source": "iana", - "extensions": ["kwd","kwt"] - }, - "application/vnd.kenameaapp": { - "source": "iana", - "extensions": ["htke"] - }, - "application/vnd.kidspiration": { - "source": "iana", - "extensions": ["kia"] - }, - "application/vnd.kinar": { - "source": "iana", - "extensions": ["kne","knp"] - }, - "application/vnd.koan": { - "source": "iana", - "extensions": ["skp","skd","skt","skm"] - }, - "application/vnd.kodak-descriptor": { - "source": "iana", - "extensions": ["sse"] - }, - "application/vnd.las.las+xml": { - "source": "iana", - "extensions": ["lasxml"] - }, - "application/vnd.liberty-request+xml": { - "source": "iana" - }, - "application/vnd.llamagraphics.life-balance.desktop": { - "source": "iana", - "extensions": ["lbd"] - }, - "application/vnd.llamagraphics.life-balance.exchange+xml": { - "source": "iana", - "extensions": ["lbe"] - }, - "application/vnd.lotus-1-2-3": { - "source": "iana", - "extensions": ["123"] - }, - "application/vnd.lotus-approach": { - "source": "iana", - "extensions": ["apr"] - }, - "application/vnd.lotus-freelance": { - "source": "iana", - "extensions": ["pre"] - }, - "application/vnd.lotus-notes": { - "source": "iana", - "extensions": ["nsf"] - }, - "application/vnd.lotus-organizer": { - "source": "iana", - "extensions": ["org"] - }, - "application/vnd.lotus-screencam": { - "source": "iana", - "extensions": ["scm"] - }, - "application/vnd.lotus-wordpro": { - "source": "iana", - "extensions": ["lwp"] - }, - "application/vnd.macports.portpkg": { - "source": "iana", - "extensions": ["portpkg"] - }, - "application/vnd.mapbox-vector-tile": { - "source": "iana" - }, - "application/vnd.marlin.drm.actiontoken+xml": { - "source": "iana" - }, - "application/vnd.marlin.drm.conftoken+xml": { - "source": "iana" - }, - "application/vnd.marlin.drm.license+xml": { - "source": "iana" - }, - "application/vnd.marlin.drm.mdcf": { - "source": "iana" - }, - "application/vnd.mason+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.maxmind.maxmind-db": { - "source": "iana" - }, - "application/vnd.mcd": { - "source": "iana", - "extensions": ["mcd"] - }, - "application/vnd.medcalcdata": { - "source": "iana", - "extensions": ["mc1"] - }, - "application/vnd.mediastation.cdkey": { - "source": "iana", - "extensions": ["cdkey"] - }, - "application/vnd.meridian-slingshot": { - "source": "iana" - }, - "application/vnd.mfer": { - "source": "iana", - "extensions": ["mwf"] - }, - "application/vnd.mfmp": { - "source": "iana", - "extensions": ["mfm"] - }, - "application/vnd.micro+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.micrografx.flo": { - "source": "iana", - "extensions": ["flo"] - }, - "application/vnd.micrografx.igx": { - "source": "iana", - "extensions": ["igx"] - }, - "application/vnd.microsoft.portable-executable": { - "source": "iana" - }, - "application/vnd.miele+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.mif": { - "source": "iana", - "extensions": ["mif"] - }, - "application/vnd.minisoft-hp3000-save": { - "source": "iana" - }, - "application/vnd.mitsubishi.misty-guard.trustweb": { - "source": "iana" - }, - "application/vnd.mobius.daf": { - "source": "iana", - "extensions": ["daf"] - }, - "application/vnd.mobius.dis": { - "source": "iana", - "extensions": ["dis"] - }, - "application/vnd.mobius.mbk": { - "source": "iana", - "extensions": ["mbk"] - }, - "application/vnd.mobius.mqy": { - "source": "iana", - "extensions": ["mqy"] - }, - "application/vnd.mobius.msl": { - "source": "iana", - "extensions": ["msl"] - }, - "application/vnd.mobius.plc": { - "source": "iana", - "extensions": ["plc"] - }, - "application/vnd.mobius.txf": { - "source": "iana", - "extensions": ["txf"] - }, - "application/vnd.mophun.application": { - "source": "iana", - "extensions": ["mpn"] - }, - "application/vnd.mophun.certificate": { - "source": "iana", - "extensions": ["mpc"] - }, - "application/vnd.motorola.flexsuite": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.adsi": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.fis": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.gotap": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.kmr": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.ttc": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.wem": { - "source": "iana" - }, - "application/vnd.motorola.iprm": { - "source": "iana" - }, - "application/vnd.mozilla.xul+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xul"] - }, - "application/vnd.ms-3mfdocument": { - "source": "iana" - }, - "application/vnd.ms-artgalry": { - "source": "iana", - "extensions": ["cil"] - }, - "application/vnd.ms-asf": { - "source": "iana" - }, - "application/vnd.ms-cab-compressed": { - "source": "iana", - "extensions": ["cab"] - }, - "application/vnd.ms-color.iccprofile": { - "source": "apache" - }, - "application/vnd.ms-excel": { - "source": "iana", - "compressible": false, - "extensions": ["xls","xlm","xla","xlc","xlt","xlw"] - }, - "application/vnd.ms-excel.addin.macroenabled.12": { - "source": "iana", - "extensions": ["xlam"] - }, - "application/vnd.ms-excel.sheet.binary.macroenabled.12": { - "source": "iana", - "extensions": ["xlsb"] - }, - "application/vnd.ms-excel.sheet.macroenabled.12": { - "source": "iana", - "extensions": ["xlsm"] - }, - "application/vnd.ms-excel.template.macroenabled.12": { - "source": "iana", - "extensions": ["xltm"] - }, - "application/vnd.ms-fontobject": { - "source": "iana", - "compressible": true, - "extensions": ["eot"] - }, - "application/vnd.ms-htmlhelp": { - "source": "iana", - "extensions": ["chm"] - }, - "application/vnd.ms-ims": { - "source": "iana", - "extensions": ["ims"] - }, - "application/vnd.ms-lrm": { - "source": "iana", - "extensions": ["lrm"] - }, - "application/vnd.ms-office.activex+xml": { - "source": "iana" - }, - "application/vnd.ms-officetheme": { - "source": "iana", - "extensions": ["thmx"] - }, - "application/vnd.ms-opentype": { - "source": "apache", - "compressible": true - }, - "application/vnd.ms-package.obfuscated-opentype": { - "source": "apache" - }, - "application/vnd.ms-pki.seccat": { - "source": "apache", - "extensions": ["cat"] - }, - "application/vnd.ms-pki.stl": { - "source": "apache", - "extensions": ["stl"] - }, - "application/vnd.ms-playready.initiator+xml": { - "source": "iana" - }, - "application/vnd.ms-powerpoint": { - "source": "iana", - "compressible": false, - "extensions": ["ppt","pps","pot"] - }, - "application/vnd.ms-powerpoint.addin.macroenabled.12": { - "source": "iana", - "extensions": ["ppam"] - }, - "application/vnd.ms-powerpoint.presentation.macroenabled.12": { - "source": "iana", - "extensions": ["pptm"] - }, - "application/vnd.ms-powerpoint.slide.macroenabled.12": { - "source": "iana", - "extensions": ["sldm"] - }, - "application/vnd.ms-powerpoint.slideshow.macroenabled.12": { - "source": "iana", - "extensions": ["ppsm"] - }, - "application/vnd.ms-powerpoint.template.macroenabled.12": { - "source": "iana", - "extensions": ["potm"] - }, - "application/vnd.ms-printdevicecapabilities+xml": { - "source": "iana" - }, - "application/vnd.ms-printing.printticket+xml": { - "source": "apache" - }, - "application/vnd.ms-printschematicket+xml": { - "source": "iana" - }, - "application/vnd.ms-project": { - "source": "iana", - "extensions": ["mpp","mpt"] - }, - "application/vnd.ms-tnef": { - "source": "iana" - }, - "application/vnd.ms-windows.devicepairing": { - "source": "iana" - }, - "application/vnd.ms-windows.nwprinting.oob": { - "source": "iana" - }, - "application/vnd.ms-windows.printerpairing": { - "source": "iana" - }, - "application/vnd.ms-windows.wsd.oob": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.lic-chlg-req": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.lic-resp": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.meter-chlg-req": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.meter-resp": { - "source": "iana" - }, - "application/vnd.ms-word.document.macroenabled.12": { - "source": "iana", - "extensions": ["docm"] - }, - "application/vnd.ms-word.template.macroenabled.12": { - "source": "iana", - "extensions": ["dotm"] - }, - "application/vnd.ms-works": { - "source": "iana", - "extensions": ["wps","wks","wcm","wdb"] - }, - "application/vnd.ms-wpl": { - "source": "iana", - "extensions": ["wpl"] - }, - "application/vnd.ms-xpsdocument": { - "source": "iana", - "compressible": false, - "extensions": ["xps"] - }, - "application/vnd.msa-disk-image": { - "source": "iana" - }, - "application/vnd.mseq": { - "source": "iana", - "extensions": ["mseq"] - }, - "application/vnd.msign": { - "source": "iana" - }, - "application/vnd.multiad.creator": { - "source": "iana" - }, - "application/vnd.multiad.creator.cif": { - "source": "iana" - }, - "application/vnd.music-niff": { - "source": "iana" - }, - "application/vnd.musician": { - "source": "iana", - "extensions": ["mus"] - }, - "application/vnd.muvee.style": { - "source": "iana", - "extensions": ["msty"] - }, - "application/vnd.mynfc": { - "source": "iana", - "extensions": ["taglet"] - }, - "application/vnd.ncd.control": { - "source": "iana" - }, - "application/vnd.ncd.reference": { - "source": "iana" - }, - "application/vnd.nearst.inv+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.nervana": { - "source": "iana" - }, - "application/vnd.netfpx": { - "source": "iana" - }, - "application/vnd.neurolanguage.nlu": { - "source": "iana", - "extensions": ["nlu"] - }, - "application/vnd.nintendo.nitro.rom": { - "source": "iana" - }, - "application/vnd.nintendo.snes.rom": { - "source": "iana" - }, - "application/vnd.nitf": { - "source": "iana", - "extensions": ["ntf","nitf"] - }, - "application/vnd.noblenet-directory": { - "source": "iana", - "extensions": ["nnd"] - }, - "application/vnd.noblenet-sealer": { - "source": "iana", - "extensions": ["nns"] - }, - "application/vnd.noblenet-web": { - "source": "iana", - "extensions": ["nnw"] - }, - "application/vnd.nokia.catalogs": { - "source": "iana" - }, - "application/vnd.nokia.conml+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.conml+xml": { - "source": "iana" - }, - "application/vnd.nokia.iptv.config+xml": { - "source": "iana" - }, - "application/vnd.nokia.isds-radio-presets": { - "source": "iana" - }, - "application/vnd.nokia.landmark+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.landmark+xml": { - "source": "iana" - }, - "application/vnd.nokia.landmarkcollection+xml": { - "source": "iana" - }, - "application/vnd.nokia.n-gage.ac+xml": { - "source": "iana" - }, - "application/vnd.nokia.n-gage.data": { - "source": "iana", - "extensions": ["ngdat"] - }, - "application/vnd.nokia.n-gage.symbian.install": { - "source": "iana", - "extensions": ["n-gage"] - }, - "application/vnd.nokia.ncd": { - "source": "iana" - }, - "application/vnd.nokia.pcd+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.pcd+xml": { - "source": "iana" - }, - "application/vnd.nokia.radio-preset": { - "source": "iana", - "extensions": ["rpst"] - }, - "application/vnd.nokia.radio-presets": { - "source": "iana", - "extensions": ["rpss"] - }, - "application/vnd.novadigm.edm": { - "source": "iana", - "extensions": ["edm"] - }, - "application/vnd.novadigm.edx": { - "source": "iana", - "extensions": ["edx"] - }, - "application/vnd.novadigm.ext": { - "source": "iana", - "extensions": ["ext"] - }, - "application/vnd.ntt-local.content-share": { - "source": "iana" - }, - "application/vnd.ntt-local.file-transfer": { - "source": "iana" - }, - "application/vnd.ntt-local.ogw_remote-access": { - "source": "iana" - }, - "application/vnd.ntt-local.sip-ta_remote": { - "source": "iana" - }, - "application/vnd.ntt-local.sip-ta_tcp_stream": { - "source": "iana" - }, - "application/vnd.oasis.opendocument.chart": { - "source": "iana", - "extensions": ["odc"] - }, - "application/vnd.oasis.opendocument.chart-template": { - "source": "iana", - "extensions": ["otc"] - }, - "application/vnd.oasis.opendocument.database": { - "source": "iana", - "extensions": ["odb"] - }, - "application/vnd.oasis.opendocument.formula": { - "source": "iana", - "extensions": ["odf"] - }, - "application/vnd.oasis.opendocument.formula-template": { - "source": "iana", - "extensions": ["odft"] - }, - "application/vnd.oasis.opendocument.graphics": { - "source": "iana", - "compressible": false, - "extensions": ["odg"] - }, - "application/vnd.oasis.opendocument.graphics-template": { - "source": "iana", - "extensions": ["otg"] - }, - "application/vnd.oasis.opendocument.image": { - "source": "iana", - "extensions": ["odi"] - }, - "application/vnd.oasis.opendocument.image-template": { - "source": "iana", - "extensions": ["oti"] - }, - "application/vnd.oasis.opendocument.presentation": { - "source": "iana", - "compressible": false, - "extensions": ["odp"] - }, - "application/vnd.oasis.opendocument.presentation-template": { - "source": "iana", - "extensions": ["otp"] - }, - "application/vnd.oasis.opendocument.spreadsheet": { - "source": "iana", - "compressible": false, - "extensions": ["ods"] - }, - "application/vnd.oasis.opendocument.spreadsheet-template": { - "source": "iana", - "extensions": ["ots"] - }, - "application/vnd.oasis.opendocument.text": { - "source": "iana", - "compressible": false, - "extensions": ["odt"] - }, - "application/vnd.oasis.opendocument.text-master": { - "source": "iana", - "extensions": ["odm"] - }, - "application/vnd.oasis.opendocument.text-template": { - "source": "iana", - "extensions": ["ott"] - }, - "application/vnd.oasis.opendocument.text-web": { - "source": "iana", - "extensions": ["oth"] - }, - "application/vnd.obn": { - "source": "iana" - }, - "application/vnd.oftn.l10n+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.contentaccessdownload+xml": { - "source": "iana" - }, - "application/vnd.oipf.contentaccessstreaming+xml": { - "source": "iana" - }, - "application/vnd.oipf.cspg-hexbinary": { - "source": "iana" - }, - "application/vnd.oipf.dae.svg+xml": { - "source": "iana" - }, - "application/vnd.oipf.dae.xhtml+xml": { - "source": "iana" - }, - "application/vnd.oipf.mippvcontrolmessage+xml": { - "source": "iana" - }, - "application/vnd.oipf.pae.gem": { - "source": "iana" - }, - "application/vnd.oipf.spdiscovery+xml": { - "source": "iana" - }, - "application/vnd.oipf.spdlist+xml": { - "source": "iana" - }, - "application/vnd.oipf.ueprofile+xml": { - "source": "iana" - }, - "application/vnd.oipf.userprofile+xml": { - "source": "iana" - }, - "application/vnd.olpc-sugar": { - "source": "iana", - "extensions": ["xo"] - }, - "application/vnd.oma-scws-config": { - "source": "iana" - }, - "application/vnd.oma-scws-http-request": { - "source": "iana" - }, - "application/vnd.oma-scws-http-response": { - "source": "iana" - }, - "application/vnd.oma.bcast.associated-procedure-parameter+xml": { - "source": "iana" - }, - "application/vnd.oma.bcast.drm-trigger+xml": { - "source": "iana" - }, - "application/vnd.oma.bcast.imd+xml": { - "source": "iana" - }, - "application/vnd.oma.bcast.ltkm": { - "source": "iana" - }, - "application/vnd.oma.bcast.notification+xml": { - "source": "iana" - }, - "application/vnd.oma.bcast.provisioningtrigger": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgboot": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgdd+xml": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgdu": { - "source": "iana" - }, - "application/vnd.oma.bcast.simple-symbol-container": { - "source": "iana" - }, - "application/vnd.oma.bcast.smartcard-trigger+xml": { - "source": "iana" - }, - "application/vnd.oma.bcast.sprov+xml": { - "source": "iana" - }, - "application/vnd.oma.bcast.stkm": { - "source": "iana" - }, - "application/vnd.oma.cab-address-book+xml": { - "source": "iana" - }, - "application/vnd.oma.cab-feature-handler+xml": { - "source": "iana" - }, - "application/vnd.oma.cab-pcc+xml": { - "source": "iana" - }, - "application/vnd.oma.cab-subs-invite+xml": { - "source": "iana" - }, - "application/vnd.oma.cab-user-prefs+xml": { - "source": "iana" - }, - "application/vnd.oma.dcd": { - "source": "iana" - }, - "application/vnd.oma.dcdc": { - "source": "iana" - }, - "application/vnd.oma.dd2+xml": { - "source": "iana", - "extensions": ["dd2"] - }, - "application/vnd.oma.drm.risd+xml": { - "source": "iana" - }, - "application/vnd.oma.group-usage-list+xml": { - "source": "iana" - }, - "application/vnd.oma.lwm2m+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.lwm2m+tlv": { - "source": "iana" - }, - "application/vnd.oma.pal+xml": { - "source": "iana" - }, - "application/vnd.oma.poc.detailed-progress-report+xml": { - "source": "iana" - }, - "application/vnd.oma.poc.final-report+xml": { - "source": "iana" - }, - "application/vnd.oma.poc.groups+xml": { - "source": "iana" - }, - "application/vnd.oma.poc.invocation-descriptor+xml": { - "source": "iana" - }, - "application/vnd.oma.poc.optimized-progress-report+xml": { - "source": "iana" - }, - "application/vnd.oma.push": { - "source": "iana" - }, - "application/vnd.oma.scidm.messages+xml": { - "source": "iana" - }, - "application/vnd.oma.xcap-directory+xml": { - "source": "iana" - }, - "application/vnd.omads-email+xml": { - "source": "iana" - }, - "application/vnd.omads-file+xml": { - "source": "iana" - }, - "application/vnd.omads-folder+xml": { - "source": "iana" - }, - "application/vnd.omaloc-supl-init": { - "source": "iana" - }, - "application/vnd.onepager": { - "source": "iana" - }, - "application/vnd.openblox.game+xml": { - "source": "iana" - }, - "application/vnd.openblox.game-binary": { - "source": "iana" - }, - "application/vnd.openeye.oeb": { - "source": "iana" - }, - "application/vnd.openofficeorg.extension": { - "source": "apache", - "extensions": ["oxt"] - }, - "application/vnd.openstreetmap.data+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.custom-properties+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.drawing+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.extended-properties+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml-template": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation": { - "source": "iana", - "compressible": false, - "extensions": ["pptx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide": { - "source": "iana", - "extensions": ["sldx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow": { - "source": "iana", - "extensions": ["ppsx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.template": { - "source": "apache", - "extensions": ["potx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml-template": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { - "source": "iana", - "compressible": false, - "extensions": ["xlsx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template": { - "source": "apache", - "extensions": ["xltx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.theme+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.themeoverride+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.vmldrawing": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml-template": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { - "source": "iana", - "compressible": false, - "extensions": ["docx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template": { - "source": "apache", - "extensions": ["dotx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-package.core-properties+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": { - "source": "iana" - }, - "application/vnd.openxmlformats-package.relationships+xml": { - "source": "iana" - }, - "application/vnd.oracle.resource+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.orange.indata": { - "source": "iana" - }, - "application/vnd.osa.netdeploy": { - "source": "iana" - }, - "application/vnd.osgeo.mapguide.package": { - "source": "iana", - "extensions": ["mgp"] - }, - "application/vnd.osgi.bundle": { - "source": "iana" - }, - "application/vnd.osgi.dp": { - "source": "iana", - "extensions": ["dp"] - }, - "application/vnd.osgi.subsystem": { - "source": "iana", - "extensions": ["esa"] - }, - "application/vnd.otps.ct-kip+xml": { - "source": "iana" - }, - "application/vnd.oxli.countgraph": { - "source": "iana" - }, - "application/vnd.pagerduty+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.palm": { - "source": "iana", - "extensions": ["pdb","pqa","oprc"] - }, - "application/vnd.panoply": { - "source": "iana" - }, - "application/vnd.paos+xml": { - "source": "iana" - }, - "application/vnd.paos.xml": { - "source": "apache" - }, - "application/vnd.pawaafile": { - "source": "iana", - "extensions": ["paw"] - }, - "application/vnd.pcos": { - "source": "iana" - }, - "application/vnd.pg.format": { - "source": "iana", - "extensions": ["str"] - }, - "application/vnd.pg.osasli": { - "source": "iana", - "extensions": ["ei6"] - }, - "application/vnd.piaccess.application-licence": { - "source": "iana" - }, - "application/vnd.picsel": { - "source": "iana", - "extensions": ["efif"] - }, - "application/vnd.pmi.widget": { - "source": "iana", - "extensions": ["wg"] - }, - "application/vnd.poc.group-advertisement+xml": { - "source": "iana" - }, - "application/vnd.pocketlearn": { - "source": "iana", - "extensions": ["plf"] - }, - "application/vnd.powerbuilder6": { - "source": "iana", - "extensions": ["pbd"] - }, - "application/vnd.powerbuilder6-s": { - "source": "iana" - }, - "application/vnd.powerbuilder7": { - "source": "iana" - }, - "application/vnd.powerbuilder7-s": { - "source": "iana" - }, - "application/vnd.powerbuilder75": { - "source": "iana" - }, - "application/vnd.powerbuilder75-s": { - "source": "iana" - }, - "application/vnd.preminet": { - "source": "iana" - }, - "application/vnd.previewsystems.box": { - "source": "iana", - "extensions": ["box"] - }, - "application/vnd.proteus.magazine": { - "source": "iana", - "extensions": ["mgz"] - }, - "application/vnd.publishare-delta-tree": { - "source": "iana", - "extensions": ["qps"] - }, - "application/vnd.pvi.ptid1": { - "source": "iana", - "extensions": ["ptid"] - }, - "application/vnd.pwg-multiplexed": { - "source": "iana" - }, - "application/vnd.pwg-xhtml-print+xml": { - "source": "iana" - }, - "application/vnd.qualcomm.brew-app-res": { - "source": "iana" - }, - "application/vnd.quarantainenet": { - "source": "iana" - }, - "application/vnd.quark.quarkxpress": { - "source": "iana", - "extensions": ["qxd","qxt","qwd","qwt","qxl","qxb"] - }, - "application/vnd.quobject-quoxdocument": { - "source": "iana" - }, - "application/vnd.radisys.moml+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-audit+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-audit-conf+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-audit-conn+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-audit-dialog+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-audit-stream+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-conf+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-dialog+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-dialog-base+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-dialog-fax-detect+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-dialog-group+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-dialog-speech+xml": { - "source": "iana" - }, - "application/vnd.radisys.msml-dialog-transform+xml": { - "source": "iana" - }, - "application/vnd.rainstor.data": { - "source": "iana" - }, - "application/vnd.rapid": { - "source": "iana" - }, - "application/vnd.rar": { - "source": "iana" - }, - "application/vnd.realvnc.bed": { - "source": "iana", - "extensions": ["bed"] - }, - "application/vnd.recordare.musicxml": { - "source": "iana", - "extensions": ["mxl"] - }, - "application/vnd.recordare.musicxml+xml": { - "source": "iana", - "extensions": ["musicxml"] - }, - "application/vnd.renlearn.rlprint": { - "source": "iana" - }, - "application/vnd.rig.cryptonote": { - "source": "iana", - "extensions": ["cryptonote"] - }, - "application/vnd.rim.cod": { - "source": "apache", - "extensions": ["cod"] - }, - "application/vnd.rn-realmedia": { - "source": "apache", - "extensions": ["rm"] - }, - "application/vnd.rn-realmedia-vbr": { - "source": "apache", - "extensions": ["rmvb"] - }, - "application/vnd.route66.link66+xml": { - "source": "iana", - "extensions": ["link66"] - }, - "application/vnd.rs-274x": { - "source": "iana" - }, - "application/vnd.ruckus.download": { - "source": "iana" - }, - "application/vnd.s3sms": { - "source": "iana" - }, - "application/vnd.sailingtracker.track": { - "source": "iana", - "extensions": ["st"] - }, - "application/vnd.sbm.cid": { - "source": "iana" - }, - "application/vnd.sbm.mid2": { - "source": "iana" - }, - "application/vnd.scribus": { - "source": "iana" - }, - "application/vnd.sealed.3df": { - "source": "iana" - }, - "application/vnd.sealed.csf": { - "source": "iana" - }, - "application/vnd.sealed.doc": { - "source": "iana" - }, - "application/vnd.sealed.eml": { - "source": "iana" - }, - "application/vnd.sealed.mht": { - "source": "iana" - }, - "application/vnd.sealed.net": { - "source": "iana" - }, - "application/vnd.sealed.ppt": { - "source": "iana" - }, - "application/vnd.sealed.tiff": { - "source": "iana" - }, - "application/vnd.sealed.xls": { - "source": "iana" - }, - "application/vnd.sealedmedia.softseal.html": { - "source": "iana" - }, - "application/vnd.sealedmedia.softseal.pdf": { - "source": "iana" - }, - "application/vnd.seemail": { - "source": "iana", - "extensions": ["see"] - }, - "application/vnd.sema": { - "source": "iana", - "extensions": ["sema"] - }, - "application/vnd.semd": { - "source": "iana", - "extensions": ["semd"] - }, - "application/vnd.semf": { - "source": "iana", - "extensions": ["semf"] - }, - "application/vnd.shana.informed.formdata": { - "source": "iana", - "extensions": ["ifm"] - }, - "application/vnd.shana.informed.formtemplate": { - "source": "iana", - "extensions": ["itp"] - }, - "application/vnd.shana.informed.interchange": { - "source": "iana", - "extensions": ["iif"] - }, - "application/vnd.shana.informed.package": { - "source": "iana", - "extensions": ["ipk"] - }, - "application/vnd.simtech-mindmapper": { - "source": "iana", - "extensions": ["twd","twds"] - }, - "application/vnd.siren+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.smaf": { - "source": "iana", - "extensions": ["mmf"] - }, - "application/vnd.smart.notebook": { - "source": "iana" - }, - "application/vnd.smart.teacher": { - "source": "iana", - "extensions": ["teacher"] - }, - "application/vnd.software602.filler.form+xml": { - "source": "iana" - }, - "application/vnd.software602.filler.form-xml-zip": { - "source": "iana" - }, - "application/vnd.solent.sdkm+xml": { - "source": "iana", - "extensions": ["sdkm","sdkd"] - }, - "application/vnd.spotfire.dxp": { - "source": "iana", - "extensions": ["dxp"] - }, - "application/vnd.spotfire.sfs": { - "source": "iana", - "extensions": ["sfs"] - }, - "application/vnd.sss-cod": { - "source": "iana" - }, - "application/vnd.sss-dtf": { - "source": "iana" - }, - "application/vnd.sss-ntf": { - "source": "iana" - }, - "application/vnd.stardivision.calc": { - "source": "apache", - "extensions": ["sdc"] - }, - "application/vnd.stardivision.draw": { - "source": "apache", - "extensions": ["sda"] - }, - "application/vnd.stardivision.impress": { - "source": "apache", - "extensions": ["sdd"] - }, - "application/vnd.stardivision.math": { - "source": "apache", - "extensions": ["smf"] - }, - "application/vnd.stardivision.writer": { - "source": "apache", - "extensions": ["sdw","vor"] - }, - "application/vnd.stardivision.writer-global": { - "source": "apache", - "extensions": ["sgl"] - }, - "application/vnd.stepmania.package": { - "source": "iana", - "extensions": ["smzip"] - }, - "application/vnd.stepmania.stepchart": { - "source": "iana", - "extensions": ["sm"] - }, - "application/vnd.street-stream": { - "source": "iana" - }, - "application/vnd.sun.wadl+xml": { - "source": "iana" - }, - "application/vnd.sun.xml.calc": { - "source": "apache", - "extensions": ["sxc"] - }, - "application/vnd.sun.xml.calc.template": { - "source": "apache", - "extensions": ["stc"] - }, - "application/vnd.sun.xml.draw": { - "source": "apache", - "extensions": ["sxd"] - }, - "application/vnd.sun.xml.draw.template": { - "source": "apache", - "extensions": ["std"] - }, - "application/vnd.sun.xml.impress": { - "source": "apache", - "extensions": ["sxi"] - }, - "application/vnd.sun.xml.impress.template": { - "source": "apache", - "extensions": ["sti"] - }, - "application/vnd.sun.xml.math": { - "source": "apache", - "extensions": ["sxm"] - }, - "application/vnd.sun.xml.writer": { - "source": "apache", - "extensions": ["sxw"] - }, - "application/vnd.sun.xml.writer.global": { - "source": "apache", - "extensions": ["sxg"] - }, - "application/vnd.sun.xml.writer.template": { - "source": "apache", - "extensions": ["stw"] - }, - "application/vnd.sus-calendar": { - "source": "iana", - "extensions": ["sus","susp"] - }, - "application/vnd.svd": { - "source": "iana", - "extensions": ["svd"] - }, - "application/vnd.swiftview-ics": { - "source": "iana" - }, - "application/vnd.symbian.install": { - "source": "apache", - "extensions": ["sis","sisx"] - }, - "application/vnd.syncml+xml": { - "source": "iana", - "extensions": ["xsm"] - }, - "application/vnd.syncml.dm+wbxml": { - "source": "iana", - "extensions": ["bdm"] - }, - "application/vnd.syncml.dm+xml": { - "source": "iana", - "extensions": ["xdm"] - }, - "application/vnd.syncml.dm.notification": { - "source": "iana" - }, - "application/vnd.syncml.dmddf+wbxml": { - "source": "iana" - }, - "application/vnd.syncml.dmddf+xml": { - "source": "iana" - }, - "application/vnd.syncml.dmtnds+wbxml": { - "source": "iana" - }, - "application/vnd.syncml.dmtnds+xml": { - "source": "iana" - }, - "application/vnd.syncml.ds.notification": { - "source": "iana" - }, - "application/vnd.tableschema+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.tao.intent-module-archive": { - "source": "iana", - "extensions": ["tao"] - }, - "application/vnd.tcpdump.pcap": { - "source": "iana", - "extensions": ["pcap","cap","dmp"] - }, - "application/vnd.tmd.mediaflex.api+xml": { - "source": "iana" - }, - "application/vnd.tml": { - "source": "iana" - }, - "application/vnd.tmobile-livetv": { - "source": "iana", - "extensions": ["tmo"] - }, - "application/vnd.tri.onesource": { - "source": "iana" - }, - "application/vnd.trid.tpt": { - "source": "iana", - "extensions": ["tpt"] - }, - "application/vnd.triscape.mxs": { - "source": "iana", - "extensions": ["mxs"] - }, - "application/vnd.trueapp": { - "source": "iana", - "extensions": ["tra"] - }, - "application/vnd.truedoc": { - "source": "iana" - }, - "application/vnd.ubisoft.webplayer": { - "source": "iana" - }, - "application/vnd.ufdl": { - "source": "iana", - "extensions": ["ufd","ufdl"] - }, - "application/vnd.uiq.theme": { - "source": "iana", - "extensions": ["utz"] - }, - "application/vnd.umajin": { - "source": "iana", - "extensions": ["umj"] - }, - "application/vnd.unity": { - "source": "iana", - "extensions": ["unityweb"] - }, - "application/vnd.uoml+xml": { - "source": "iana", - "extensions": ["uoml"] - }, - "application/vnd.uplanet.alert": { - "source": "iana" - }, - "application/vnd.uplanet.alert-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.bearer-choice": { - "source": "iana" - }, - "application/vnd.uplanet.bearer-choice-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.cacheop": { - "source": "iana" - }, - "application/vnd.uplanet.cacheop-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.channel": { - "source": "iana" - }, - "application/vnd.uplanet.channel-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.list": { - "source": "iana" - }, - "application/vnd.uplanet.list-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.listcmd": { - "source": "iana" - }, - "application/vnd.uplanet.listcmd-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.signal": { - "source": "iana" - }, - "application/vnd.uri-map": { - "source": "iana" - }, - "application/vnd.valve.source.material": { - "source": "iana" - }, - "application/vnd.vcx": { - "source": "iana", - "extensions": ["vcx"] - }, - "application/vnd.vd-study": { - "source": "iana" - }, - "application/vnd.vectorworks": { - "source": "iana" - }, - "application/vnd.vel+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.verimatrix.vcas": { - "source": "iana" - }, - "application/vnd.vidsoft.vidconference": { - "source": "iana" - }, - "application/vnd.visio": { - "source": "iana", - "extensions": ["vsd","vst","vss","vsw"] - }, - "application/vnd.visionary": { - "source": "iana", - "extensions": ["vis"] - }, - "application/vnd.vividence.scriptfile": { - "source": "iana" - }, - "application/vnd.vsf": { - "source": "iana", - "extensions": ["vsf"] - }, - "application/vnd.wap.sic": { - "source": "iana" - }, - "application/vnd.wap.slc": { - "source": "iana" - }, - "application/vnd.wap.wbxml": { - "source": "iana", - "extensions": ["wbxml"] - }, - "application/vnd.wap.wmlc": { - "source": "iana", - "extensions": ["wmlc"] - }, - "application/vnd.wap.wmlscriptc": { - "source": "iana", - "extensions": ["wmlsc"] - }, - "application/vnd.webturbo": { - "source": "iana", - "extensions": ["wtb"] - }, - "application/vnd.wfa.p2p": { - "source": "iana" - }, - "application/vnd.wfa.wsc": { - "source": "iana" - }, - "application/vnd.windows.devicepairing": { - "source": "iana" - }, - "application/vnd.wmc": { - "source": "iana" - }, - "application/vnd.wmf.bootstrap": { - "source": "iana" - }, - "application/vnd.wolfram.mathematica": { - "source": "iana" - }, - "application/vnd.wolfram.mathematica.package": { - "source": "iana" - }, - "application/vnd.wolfram.player": { - "source": "iana", - "extensions": ["nbp"] - }, - "application/vnd.wordperfect": { - "source": "iana", - "extensions": ["wpd"] - }, - "application/vnd.wqd": { - "source": "iana", - "extensions": ["wqd"] - }, - "application/vnd.wrq-hp3000-labelled": { - "source": "iana" - }, - "application/vnd.wt.stf": { - "source": "iana", - "extensions": ["stf"] - }, - "application/vnd.wv.csp+wbxml": { - "source": "iana" - }, - "application/vnd.wv.csp+xml": { - "source": "iana" - }, - "application/vnd.wv.ssp+xml": { - "source": "iana" - }, - "application/vnd.xacml+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.xara": { - "source": "iana", - "extensions": ["xar"] - }, - "application/vnd.xfdl": { - "source": "iana", - "extensions": ["xfdl"] - }, - "application/vnd.xfdl.webform": { - "source": "iana" - }, - "application/vnd.xmi+xml": { - "source": "iana" - }, - "application/vnd.xmpie.cpkg": { - "source": "iana" - }, - "application/vnd.xmpie.dpkg": { - "source": "iana" - }, - "application/vnd.xmpie.plan": { - "source": "iana" - }, - "application/vnd.xmpie.ppkg": { - "source": "iana" - }, - "application/vnd.xmpie.xlim": { - "source": "iana" - }, - "application/vnd.yamaha.hv-dic": { - "source": "iana", - "extensions": ["hvd"] - }, - "application/vnd.yamaha.hv-script": { - "source": "iana", - "extensions": ["hvs"] - }, - "application/vnd.yamaha.hv-voice": { - "source": "iana", - "extensions": ["hvp"] - }, - "application/vnd.yamaha.openscoreformat": { - "source": "iana", - "extensions": ["osf"] - }, - "application/vnd.yamaha.openscoreformat.osfpvg+xml": { - "source": "iana", - "extensions": ["osfpvg"] - }, - "application/vnd.yamaha.remote-setup": { - "source": "iana" - }, - "application/vnd.yamaha.smaf-audio": { - "source": "iana", - "extensions": ["saf"] - }, - "application/vnd.yamaha.smaf-phrase": { - "source": "iana", - "extensions": ["spf"] - }, - "application/vnd.yamaha.through-ngn": { - "source": "iana" - }, - "application/vnd.yamaha.tunnel-udpencap": { - "source": "iana" - }, - "application/vnd.yaoweme": { - "source": "iana" - }, - "application/vnd.yellowriver-custom-menu": { - "source": "iana", - "extensions": ["cmp"] - }, - "application/vnd.zul": { - "source": "iana", - "extensions": ["zir","zirz"] - }, - "application/vnd.zzazz.deck+xml": { - "source": "iana", - "extensions": ["zaz"] - }, - "application/voicexml+xml": { - "source": "iana", - "extensions": ["vxml"] - }, - "application/vq-rtcpxr": { - "source": "iana" - }, - "application/watcherinfo+xml": { - "source": "iana" - }, - "application/whoispp-query": { - "source": "iana" - }, - "application/whoispp-response": { - "source": "iana" - }, - "application/widget": { - "source": "iana", - "extensions": ["wgt"] - }, - "application/winhlp": { - "source": "apache", - "extensions": ["hlp"] - }, - "application/wita": { - "source": "iana" - }, - "application/wordperfect5.1": { - "source": "iana" - }, - "application/wsdl+xml": { - "source": "iana", - "extensions": ["wsdl"] - }, - "application/wspolicy+xml": { - "source": "iana", - "extensions": ["wspolicy"] - }, - "application/x-7z-compressed": { - "source": "apache", - "compressible": false, - "extensions": ["7z"] - }, - "application/x-abiword": { - "source": "apache", - "extensions": ["abw"] - }, - "application/x-ace-compressed": { - "source": "apache", - "extensions": ["ace"] - }, - "application/x-amf": { - "source": "apache" - }, - "application/x-apple-diskimage": { - "source": "apache", - "extensions": ["dmg"] - }, - "application/x-authorware-bin": { - "source": "apache", - "extensions": ["aab","x32","u32","vox"] - }, - "application/x-authorware-map": { - "source": "apache", - "extensions": ["aam"] - }, - "application/x-authorware-seg": { - "source": "apache", - "extensions": ["aas"] - }, - "application/x-bcpio": { - "source": "apache", - "extensions": ["bcpio"] - }, - "application/x-bdoc": { - "compressible": false, - "extensions": ["bdoc"] - }, - "application/x-bittorrent": { - "source": "apache", - "extensions": ["torrent"] - }, - "application/x-blorb": { - "source": "apache", - "extensions": ["blb","blorb"] - }, - "application/x-bzip": { - "source": "apache", - "compressible": false, - "extensions": ["bz"] - }, - "application/x-bzip2": { - "source": "apache", - "compressible": false, - "extensions": ["bz2","boz"] - }, - "application/x-cbr": { - "source": "apache", - "extensions": ["cbr","cba","cbt","cbz","cb7"] - }, - "application/x-cdlink": { - "source": "apache", - "extensions": ["vcd"] - }, - "application/x-cfs-compressed": { - "source": "apache", - "extensions": ["cfs"] - }, - "application/x-chat": { - "source": "apache", - "extensions": ["chat"] - }, - "application/x-chess-pgn": { - "source": "apache", - "extensions": ["pgn"] - }, - "application/x-chrome-extension": { - "extensions": ["crx"] - }, - "application/x-cocoa": { - "source": "nginx", - "extensions": ["cco"] - }, - "application/x-compress": { - "source": "apache" - }, - "application/x-conference": { - "source": "apache", - "extensions": ["nsc"] - }, - "application/x-cpio": { - "source": "apache", - "extensions": ["cpio"] - }, - "application/x-csh": { - "source": "apache", - "extensions": ["csh"] - }, - "application/x-deb": { - "compressible": false - }, - "application/x-debian-package": { - "source": "apache", - "extensions": ["deb","udeb"] - }, - "application/x-dgc-compressed": { - "source": "apache", - "extensions": ["dgc"] - }, - "application/x-director": { - "source": "apache", - "extensions": ["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"] - }, - "application/x-doom": { - "source": "apache", - "extensions": ["wad"] - }, - "application/x-dtbncx+xml": { - "source": "apache", - "extensions": ["ncx"] - }, - "application/x-dtbook+xml": { - "source": "apache", - "extensions": ["dtb"] - }, - "application/x-dtbresource+xml": { - "source": "apache", - "extensions": ["res"] - }, - "application/x-dvi": { - "source": "apache", - "compressible": false, - "extensions": ["dvi"] - }, - "application/x-envoy": { - "source": "apache", - "extensions": ["evy"] - }, - "application/x-eva": { - "source": "apache", - "extensions": ["eva"] - }, - "application/x-font-bdf": { - "source": "apache", - "extensions": ["bdf"] - }, - "application/x-font-dos": { - "source": "apache" - }, - "application/x-font-framemaker": { - "source": "apache" - }, - "application/x-font-ghostscript": { - "source": "apache", - "extensions": ["gsf"] - }, - "application/x-font-libgrx": { - "source": "apache" - }, - "application/x-font-linux-psf": { - "source": "apache", - "extensions": ["psf"] - }, - "application/x-font-otf": { - "source": "apache", - "compressible": true, - "extensions": ["otf"] - }, - "application/x-font-pcf": { - "source": "apache", - "extensions": ["pcf"] - }, - "application/x-font-snf": { - "source": "apache", - "extensions": ["snf"] - }, - "application/x-font-speedo": { - "source": "apache" - }, - "application/x-font-sunos-news": { - "source": "apache" - }, - "application/x-font-ttf": { - "source": "apache", - "compressible": true, - "extensions": ["ttf","ttc"] - }, - "application/x-font-type1": { - "source": "apache", - "extensions": ["pfa","pfb","pfm","afm"] - }, - "application/x-font-vfont": { - "source": "apache" - }, - "application/x-freearc": { - "source": "apache", - "extensions": ["arc"] - }, - "application/x-futuresplash": { - "source": "apache", - "extensions": ["spl"] - }, - "application/x-gca-compressed": { - "source": "apache", - "extensions": ["gca"] - }, - "application/x-glulx": { - "source": "apache", - "extensions": ["ulx"] - }, - "application/x-gnumeric": { - "source": "apache", - "extensions": ["gnumeric"] - }, - "application/x-gramps-xml": { - "source": "apache", - "extensions": ["gramps"] - }, - "application/x-gtar": { - "source": "apache", - "extensions": ["gtar"] - }, - "application/x-gzip": { - "source": "apache" - }, - "application/x-hdf": { - "source": "apache", - "extensions": ["hdf"] - }, - "application/x-httpd-php": { - "compressible": true, - "extensions": ["php"] - }, - "application/x-install-instructions": { - "source": "apache", - "extensions": ["install"] - }, - "application/x-iso9660-image": { - "source": "apache", - "extensions": ["iso"] - }, - "application/x-java-archive-diff": { - "source": "nginx", - "extensions": ["jardiff"] - }, - "application/x-java-jnlp-file": { - "source": "apache", - "compressible": false, - "extensions": ["jnlp"] - }, - "application/x-javascript": { - "compressible": true - }, - "application/x-latex": { - "source": "apache", - "compressible": false, - "extensions": ["latex"] - }, - "application/x-lua-bytecode": { - "extensions": ["luac"] - }, - "application/x-lzh-compressed": { - "source": "apache", - "extensions": ["lzh","lha"] - }, - "application/x-makeself": { - "source": "nginx", - "extensions": ["run"] - }, - "application/x-mie": { - "source": "apache", - "extensions": ["mie"] - }, - "application/x-mobipocket-ebook": { - "source": "apache", - "extensions": ["prc","mobi"] - }, - "application/x-mpegurl": { - "compressible": false - }, - "application/x-ms-application": { - "source": "apache", - "extensions": ["application"] - }, - "application/x-ms-shortcut": { - "source": "apache", - "extensions": ["lnk"] - }, - "application/x-ms-wmd": { - "source": "apache", - "extensions": ["wmd"] - }, - "application/x-ms-wmz": { - "source": "apache", - "extensions": ["wmz"] - }, - "application/x-ms-xbap": { - "source": "apache", - "extensions": ["xbap"] - }, - "application/x-msaccess": { - "source": "apache", - "extensions": ["mdb"] - }, - "application/x-msbinder": { - "source": "apache", - "extensions": ["obd"] - }, - "application/x-mscardfile": { - "source": "apache", - "extensions": ["crd"] - }, - "application/x-msclip": { - "source": "apache", - "extensions": ["clp"] - }, - "application/x-msdos-program": { - "extensions": ["exe"] - }, - "application/x-msdownload": { - "source": "apache", - "extensions": ["exe","dll","com","bat","msi"] - }, - "application/x-msmediaview": { - "source": "apache", - "extensions": ["mvb","m13","m14"] - }, - "application/x-msmetafile": { - "source": "apache", - "extensions": ["wmf","wmz","emf","emz"] - }, - "application/x-msmoney": { - "source": "apache", - "extensions": ["mny"] - }, - "application/x-mspublisher": { - "source": "apache", - "extensions": ["pub"] - }, - "application/x-msschedule": { - "source": "apache", - "extensions": ["scd"] - }, - "application/x-msterminal": { - "source": "apache", - "extensions": ["trm"] - }, - "application/x-mswrite": { - "source": "apache", - "extensions": ["wri"] - }, - "application/x-netcdf": { - "source": "apache", - "extensions": ["nc","cdf"] - }, - "application/x-ns-proxy-autoconfig": { - "compressible": true, - "extensions": ["pac"] - }, - "application/x-nzb": { - "source": "apache", - "extensions": ["nzb"] - }, - "application/x-perl": { - "source": "nginx", - "extensions": ["pl","pm"] - }, - "application/x-pilot": { - "source": "nginx", - "extensions": ["prc","pdb"] - }, - "application/x-pkcs12": { - "source": "apache", - "compressible": false, - "extensions": ["p12","pfx"] - }, - "application/x-pkcs7-certificates": { - "source": "apache", - "extensions": ["p7b","spc"] - }, - "application/x-pkcs7-certreqresp": { - "source": "apache", - "extensions": ["p7r"] - }, - "application/x-rar-compressed": { - "source": "apache", - "compressible": false, - "extensions": ["rar"] - }, - "application/x-redhat-package-manager": { - "source": "nginx", - "extensions": ["rpm"] - }, - "application/x-research-info-systems": { - "source": "apache", - "extensions": ["ris"] - }, - "application/x-sea": { - "source": "nginx", - "extensions": ["sea"] - }, - "application/x-sh": { - "source": "apache", - "compressible": true, - "extensions": ["sh"] - }, - "application/x-shar": { - "source": "apache", - "extensions": ["shar"] - }, - "application/x-shockwave-flash": { - "source": "apache", - "compressible": false, - "extensions": ["swf"] - }, - "application/x-silverlight-app": { - "source": "apache", - "extensions": ["xap"] - }, - "application/x-sql": { - "source": "apache", - "extensions": ["sql"] - }, - "application/x-stuffit": { - "source": "apache", - "compressible": false, - "extensions": ["sit"] - }, - "application/x-stuffitx": { - "source": "apache", - "extensions": ["sitx"] - }, - "application/x-subrip": { - "source": "apache", - "extensions": ["srt"] - }, - "application/x-sv4cpio": { - "source": "apache", - "extensions": ["sv4cpio"] - }, - "application/x-sv4crc": { - "source": "apache", - "extensions": ["sv4crc"] - }, - "application/x-t3vm-image": { - "source": "apache", - "extensions": ["t3"] - }, - "application/x-tads": { - "source": "apache", - "extensions": ["gam"] - }, - "application/x-tar": { - "source": "apache", - "compressible": true, - "extensions": ["tar"] - }, - "application/x-tcl": { - "source": "apache", - "extensions": ["tcl","tk"] - }, - "application/x-tex": { - "source": "apache", - "extensions": ["tex"] - }, - "application/x-tex-tfm": { - "source": "apache", - "extensions": ["tfm"] - }, - "application/x-texinfo": { - "source": "apache", - "extensions": ["texinfo","texi"] - }, - "application/x-tgif": { - "source": "apache", - "extensions": ["obj"] - }, - "application/x-ustar": { - "source": "apache", - "extensions": ["ustar"] - }, - "application/x-wais-source": { - "source": "apache", - "extensions": ["src"] - }, - "application/x-web-app-manifest+json": { - "compressible": true, - "extensions": ["webapp"] - }, - "application/x-www-form-urlencoded": { - "source": "iana", - "compressible": true - }, - "application/x-x509-ca-cert": { - "source": "apache", - "extensions": ["der","crt","pem"] - }, - "application/x-xfig": { - "source": "apache", - "extensions": ["fig"] - }, - "application/x-xliff+xml": { - "source": "apache", - "extensions": ["xlf"] - }, - "application/x-xpinstall": { - "source": "apache", - "compressible": false, - "extensions": ["xpi"] - }, - "application/x-xz": { - "source": "apache", - "extensions": ["xz"] - }, - "application/x-zmachine": { - "source": "apache", - "extensions": ["z1","z2","z3","z4","z5","z6","z7","z8"] - }, - "application/x400-bp": { - "source": "iana" - }, - "application/xacml+xml": { - "source": "iana" - }, - "application/xaml+xml": { - "source": "apache", - "extensions": ["xaml"] - }, - "application/xcap-att+xml": { - "source": "iana" - }, - "application/xcap-caps+xml": { - "source": "iana" - }, - "application/xcap-diff+xml": { - "source": "iana", - "extensions": ["xdf"] - }, - "application/xcap-el+xml": { - "source": "iana" - }, - "application/xcap-error+xml": { - "source": "iana" - }, - "application/xcap-ns+xml": { - "source": "iana" - }, - "application/xcon-conference-info+xml": { - "source": "iana" - }, - "application/xcon-conference-info-diff+xml": { - "source": "iana" - }, - "application/xenc+xml": { - "source": "iana", - "extensions": ["xenc"] - }, - "application/xhtml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xhtml","xht"] - }, - "application/xhtml-voice+xml": { - "source": "apache" - }, - "application/xml": { - "source": "iana", - "compressible": true, - "extensions": ["xml","xsl","xsd","rng"] - }, - "application/xml-dtd": { - "source": "iana", - "compressible": true, - "extensions": ["dtd"] - }, - "application/xml-external-parsed-entity": { - "source": "iana" - }, - "application/xml-patch+xml": { - "source": "iana" - }, - "application/xmpp+xml": { - "source": "iana" - }, - "application/xop+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xop"] - }, - "application/xproc+xml": { - "source": "apache", - "extensions": ["xpl"] - }, - "application/xslt+xml": { - "source": "iana", - "extensions": ["xslt"] - }, - "application/xspf+xml": { - "source": "apache", - "extensions": ["xspf"] - }, - "application/xv+xml": { - "source": "iana", - "extensions": ["mxml","xhvml","xvml","xvm"] - }, - "application/yang": { - "source": "iana", - "extensions": ["yang"] - }, - "application/yang-data+json": { - "source": "iana", - "compressible": true - }, - "application/yang-data+xml": { - "source": "iana" - }, - "application/yang-patch+json": { - "source": "iana", - "compressible": true - }, - "application/yang-patch+xml": { - "source": "iana" - }, - "application/yin+xml": { - "source": "iana", - "extensions": ["yin"] - }, - "application/zip": { - "source": "iana", - "compressible": false, - "extensions": ["zip"] - }, - "application/zlib": { - "source": "iana" - }, - "audio/1d-interleaved-parityfec": { - "source": "iana" - }, - "audio/32kadpcm": { - "source": "iana" - }, - "audio/3gpp": { - "source": "iana", - "compressible": false, - "extensions": ["3gpp"] - }, - "audio/3gpp2": { - "source": "iana" - }, - "audio/ac3": { - "source": "iana" - }, - "audio/adpcm": { - "source": "apache", - "extensions": ["adp"] - }, - "audio/amr": { - "source": "iana" - }, - "audio/amr-wb": { - "source": "iana" - }, - "audio/amr-wb+": { - "source": "iana" - }, - "audio/aptx": { - "source": "iana" - }, - "audio/asc": { - "source": "iana" - }, - "audio/atrac-advanced-lossless": { - "source": "iana" - }, - "audio/atrac-x": { - "source": "iana" - }, - "audio/atrac3": { - "source": "iana" - }, - "audio/basic": { - "source": "iana", - "compressible": false, - "extensions": ["au","snd"] - }, - "audio/bv16": { - "source": "iana" - }, - "audio/bv32": { - "source": "iana" - }, - "audio/clearmode": { - "source": "iana" - }, - "audio/cn": { - "source": "iana" - }, - "audio/dat12": { - "source": "iana" - }, - "audio/dls": { - "source": "iana" - }, - "audio/dsr-es201108": { - "source": "iana" - }, - "audio/dsr-es202050": { - "source": "iana" - }, - "audio/dsr-es202211": { - "source": "iana" - }, - "audio/dsr-es202212": { - "source": "iana" - }, - "audio/dv": { - "source": "iana" - }, - "audio/dvi4": { - "source": "iana" - }, - "audio/eac3": { - "source": "iana" - }, - "audio/encaprtp": { - "source": "iana" - }, - "audio/evrc": { - "source": "iana" - }, - "audio/evrc-qcp": { - "source": "iana" - }, - "audio/evrc0": { - "source": "iana" - }, - "audio/evrc1": { - "source": "iana" - }, - "audio/evrcb": { - "source": "iana" - }, - "audio/evrcb0": { - "source": "iana" - }, - "audio/evrcb1": { - "source": "iana" - }, - "audio/evrcnw": { - "source": "iana" - }, - "audio/evrcnw0": { - "source": "iana" - }, - "audio/evrcnw1": { - "source": "iana" - }, - "audio/evrcwb": { - "source": "iana" - }, - "audio/evrcwb0": { - "source": "iana" - }, - "audio/evrcwb1": { - "source": "iana" - }, - "audio/evs": { - "source": "iana" - }, - "audio/fwdred": { - "source": "iana" - }, - "audio/g711-0": { - "source": "iana" - }, - "audio/g719": { - "source": "iana" - }, - "audio/g722": { - "source": "iana" - }, - "audio/g7221": { - "source": "iana" - }, - "audio/g723": { - "source": "iana" - }, - "audio/g726-16": { - "source": "iana" - }, - "audio/g726-24": { - "source": "iana" - }, - "audio/g726-32": { - "source": "iana" - }, - "audio/g726-40": { - "source": "iana" - }, - "audio/g728": { - "source": "iana" - }, - "audio/g729": { - "source": "iana" - }, - "audio/g7291": { - "source": "iana" - }, - "audio/g729d": { - "source": "iana" - }, - "audio/g729e": { - "source": "iana" - }, - "audio/gsm": { - "source": "iana" - }, - "audio/gsm-efr": { - "source": "iana" - }, - "audio/gsm-hr-08": { - "source": "iana" - }, - "audio/ilbc": { - "source": "iana" - }, - "audio/ip-mr_v2.5": { - "source": "iana" - }, - "audio/isac": { - "source": "apache" - }, - "audio/l16": { - "source": "iana" - }, - "audio/l20": { - "source": "iana" - }, - "audio/l24": { - "source": "iana", - "compressible": false - }, - "audio/l8": { - "source": "iana" - }, - "audio/lpc": { - "source": "iana" - }, - "audio/midi": { - "source": "apache", - "extensions": ["mid","midi","kar","rmi"] - }, - "audio/mobile-xmf": { - "source": "iana" - }, - "audio/mp3": { - "compressible": false, - "extensions": ["mp3"] - }, - "audio/mp4": { - "source": "iana", - "compressible": false, - "extensions": ["m4a","mp4a"] - }, - "audio/mp4a-latm": { - "source": "iana" - }, - "audio/mpa": { - "source": "iana" - }, - "audio/mpa-robust": { - "source": "iana" - }, - "audio/mpeg": { - "source": "iana", - "compressible": false, - "extensions": ["mpga","mp2","mp2a","mp3","m2a","m3a"] - }, - "audio/mpeg4-generic": { - "source": "iana" - }, - "audio/musepack": { - "source": "apache" - }, - "audio/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["oga","ogg","spx"] - }, - "audio/opus": { - "source": "iana" - }, - "audio/parityfec": { - "source": "iana" - }, - "audio/pcma": { - "source": "iana" - }, - "audio/pcma-wb": { - "source": "iana" - }, - "audio/pcmu": { - "source": "iana" - }, - "audio/pcmu-wb": { - "source": "iana" - }, - "audio/prs.sid": { - "source": "iana" - }, - "audio/qcelp": { - "source": "iana" - }, - "audio/raptorfec": { - "source": "iana" - }, - "audio/red": { - "source": "iana" - }, - "audio/rtp-enc-aescm128": { - "source": "iana" - }, - "audio/rtp-midi": { - "source": "iana" - }, - "audio/rtploopback": { - "source": "iana" - }, - "audio/rtx": { - "source": "iana" - }, - "audio/s3m": { - "source": "apache", - "extensions": ["s3m"] - }, - "audio/silk": { - "source": "apache", - "extensions": ["sil"] - }, - "audio/smv": { - "source": "iana" - }, - "audio/smv-qcp": { - "source": "iana" - }, - "audio/smv0": { - "source": "iana" - }, - "audio/sp-midi": { - "source": "iana" - }, - "audio/speex": { - "source": "iana" - }, - "audio/t140c": { - "source": "iana" - }, - "audio/t38": { - "source": "iana" - }, - "audio/telephone-event": { - "source": "iana" - }, - "audio/tone": { - "source": "iana" - }, - "audio/uemclip": { - "source": "iana" - }, - "audio/ulpfec": { - "source": "iana" - }, - "audio/vdvi": { - "source": "iana" - }, - "audio/vmr-wb": { - "source": "iana" - }, - "audio/vnd.3gpp.iufp": { - "source": "iana" - }, - "audio/vnd.4sb": { - "source": "iana" - }, - "audio/vnd.audiokoz": { - "source": "iana" - }, - "audio/vnd.celp": { - "source": "iana" - }, - "audio/vnd.cisco.nse": { - "source": "iana" - }, - "audio/vnd.cmles.radio-events": { - "source": "iana" - }, - "audio/vnd.cns.anp1": { - "source": "iana" - }, - "audio/vnd.cns.inf1": { - "source": "iana" - }, - "audio/vnd.dece.audio": { - "source": "iana", - "extensions": ["uva","uvva"] - }, - "audio/vnd.digital-winds": { - "source": "iana", - "extensions": ["eol"] - }, - "audio/vnd.dlna.adts": { - "source": "iana" - }, - "audio/vnd.dolby.heaac.1": { - "source": "iana" - }, - "audio/vnd.dolby.heaac.2": { - "source": "iana" - }, - "audio/vnd.dolby.mlp": { - "source": "iana" - }, - "audio/vnd.dolby.mps": { - "source": "iana" - }, - "audio/vnd.dolby.pl2": { - "source": "iana" - }, - "audio/vnd.dolby.pl2x": { - "source": "iana" - }, - "audio/vnd.dolby.pl2z": { - "source": "iana" - }, - "audio/vnd.dolby.pulse.1": { - "source": "iana" - }, - "audio/vnd.dra": { - "source": "iana", - "extensions": ["dra"] - }, - "audio/vnd.dts": { - "source": "iana", - "extensions": ["dts"] - }, - "audio/vnd.dts.hd": { - "source": "iana", - "extensions": ["dtshd"] - }, - "audio/vnd.dvb.file": { - "source": "iana" - }, - "audio/vnd.everad.plj": { - "source": "iana" - }, - "audio/vnd.hns.audio": { - "source": "iana" - }, - "audio/vnd.lucent.voice": { - "source": "iana", - "extensions": ["lvp"] - }, - "audio/vnd.ms-playready.media.pya": { - "source": "iana", - "extensions": ["pya"] - }, - "audio/vnd.nokia.mobile-xmf": { - "source": "iana" - }, - "audio/vnd.nortel.vbk": { - "source": "iana" - }, - "audio/vnd.nuera.ecelp4800": { - "source": "iana", - "extensions": ["ecelp4800"] - }, - "audio/vnd.nuera.ecelp7470": { - "source": "iana", - "extensions": ["ecelp7470"] - }, - "audio/vnd.nuera.ecelp9600": { - "source": "iana", - "extensions": ["ecelp9600"] - }, - "audio/vnd.octel.sbc": { - "source": "iana" - }, - "audio/vnd.qcelp": { - "source": "iana" - }, - "audio/vnd.rhetorex.32kadpcm": { - "source": "iana" - }, - "audio/vnd.rip": { - "source": "iana", - "extensions": ["rip"] - }, - "audio/vnd.rn-realaudio": { - "compressible": false - }, - "audio/vnd.sealedmedia.softseal.mpeg": { - "source": "iana" - }, - "audio/vnd.vmx.cvsd": { - "source": "iana" - }, - "audio/vnd.wave": { - "compressible": false - }, - "audio/vorbis": { - "source": "iana", - "compressible": false - }, - "audio/vorbis-config": { - "source": "iana" - }, - "audio/wav": { - "compressible": false, - "extensions": ["wav"] - }, - "audio/wave": { - "compressible": false, - "extensions": ["wav"] - }, - "audio/webm": { - "source": "apache", - "compressible": false, - "extensions": ["weba"] - }, - "audio/x-aac": { - "source": "apache", - "compressible": false, - "extensions": ["aac"] - }, - "audio/x-aiff": { - "source": "apache", - "extensions": ["aif","aiff","aifc"] - }, - "audio/x-caf": { - "source": "apache", - "compressible": false, - "extensions": ["caf"] - }, - "audio/x-flac": { - "source": "apache", - "extensions": ["flac"] - }, - "audio/x-m4a": { - "source": "nginx", - "extensions": ["m4a"] - }, - "audio/x-matroska": { - "source": "apache", - "extensions": ["mka"] - }, - "audio/x-mpegurl": { - "source": "apache", - "extensions": ["m3u"] - }, - "audio/x-ms-wax": { - "source": "apache", - "extensions": ["wax"] - }, - "audio/x-ms-wma": { - "source": "apache", - "extensions": ["wma"] - }, - "audio/x-pn-realaudio": { - "source": "apache", - "extensions": ["ram","ra"] - }, - "audio/x-pn-realaudio-plugin": { - "source": "apache", - "extensions": ["rmp"] - }, - "audio/x-realaudio": { - "source": "nginx", - "extensions": ["ra"] - }, - "audio/x-tta": { - "source": "apache" - }, - "audio/x-wav": { - "source": "apache", - "extensions": ["wav"] - }, - "audio/xm": { - "source": "apache", - "extensions": ["xm"] - }, - "chemical/x-cdx": { - "source": "apache", - "extensions": ["cdx"] - }, - "chemical/x-cif": { - "source": "apache", - "extensions": ["cif"] - }, - "chemical/x-cmdf": { - "source": "apache", - "extensions": ["cmdf"] - }, - "chemical/x-cml": { - "source": "apache", - "extensions": ["cml"] - }, - "chemical/x-csml": { - "source": "apache", - "extensions": ["csml"] - }, - "chemical/x-pdb": { - "source": "apache" - }, - "chemical/x-xyz": { - "source": "apache", - "extensions": ["xyz"] - }, - "font/opentype": { - "compressible": true, - "extensions": ["otf"] - }, - "image/bmp": { - "source": "iana", - "compressible": true, - "extensions": ["bmp"] - }, - "image/cgm": { - "source": "iana", - "extensions": ["cgm"] - }, - "image/dicom-rle": { - "source": "iana" - }, - "image/emf": { - "source": "iana" - }, - "image/fits": { - "source": "iana" - }, - "image/g3fax": { - "source": "iana", - "extensions": ["g3"] - }, - "image/gif": { - "source": "iana", - "compressible": false, - "extensions": ["gif"] - }, - "image/ief": { - "source": "iana", - "extensions": ["ief"] - }, - "image/jls": { - "source": "iana" - }, - "image/jp2": { - "source": "iana" - }, - "image/jpeg": { - "source": "iana", - "compressible": false, - "extensions": ["jpeg","jpg","jpe"] - }, - "image/jpm": { - "source": "iana" - }, - "image/jpx": { - "source": "iana" - }, - "image/ktx": { - "source": "iana", - "extensions": ["ktx"] - }, - "image/naplps": { - "source": "iana" - }, - "image/pjpeg": { - "compressible": false - }, - "image/png": { - "source": "iana", - "compressible": false, - "extensions": ["png"] - }, - "image/prs.btif": { - "source": "iana", - "extensions": ["btif"] - }, - "image/prs.pti": { - "source": "iana" - }, - "image/pwg-raster": { - "source": "iana" - }, - "image/sgi": { - "source": "apache", - "extensions": ["sgi"] - }, - "image/svg+xml": { - "source": "iana", - "compressible": true, - "extensions": ["svg","svgz"] - }, - "image/t38": { - "source": "iana" - }, - "image/tiff": { - "source": "iana", - "compressible": false, - "extensions": ["tiff","tif"] - }, - "image/tiff-fx": { - "source": "iana" - }, - "image/vnd.adobe.photoshop": { - "source": "iana", - "compressible": true, - "extensions": ["psd"] - }, - "image/vnd.airzip.accelerator.azv": { - "source": "iana" - }, - "image/vnd.cns.inf2": { - "source": "iana" - }, - "image/vnd.dece.graphic": { - "source": "iana", - "extensions": ["uvi","uvvi","uvg","uvvg"] - }, - "image/vnd.djvu": { - "source": "iana", - "extensions": ["djvu","djv"] - }, - "image/vnd.dvb.subtitle": { - "source": "iana", - "extensions": ["sub"] - }, - "image/vnd.dwg": { - "source": "iana", - "extensions": ["dwg"] - }, - "image/vnd.dxf": { - "source": "iana", - "extensions": ["dxf"] - }, - "image/vnd.fastbidsheet": { - "source": "iana", - "extensions": ["fbs"] - }, - "image/vnd.fpx": { - "source": "iana", - "extensions": ["fpx"] - }, - "image/vnd.fst": { - "source": "iana", - "extensions": ["fst"] - }, - "image/vnd.fujixerox.edmics-mmr": { - "source": "iana", - "extensions": ["mmr"] - }, - "image/vnd.fujixerox.edmics-rlc": { - "source": "iana", - "extensions": ["rlc"] - }, - "image/vnd.globalgraphics.pgb": { - "source": "iana" - }, - "image/vnd.microsoft.icon": { - "source": "iana" - }, - "image/vnd.mix": { - "source": "iana" - }, - "image/vnd.mozilla.apng": { - "source": "iana" - }, - "image/vnd.ms-modi": { - "source": "iana", - "extensions": ["mdi"] - }, - "image/vnd.ms-photo": { - "source": "apache", - "extensions": ["wdp"] - }, - "image/vnd.net-fpx": { - "source": "iana", - "extensions": ["npx"] - }, - "image/vnd.radiance": { - "source": "iana" - }, - "image/vnd.sealed.png": { - "source": "iana" - }, - "image/vnd.sealedmedia.softseal.gif": { - "source": "iana" - }, - "image/vnd.sealedmedia.softseal.jpg": { - "source": "iana" - }, - "image/vnd.svf": { - "source": "iana" - }, - "image/vnd.tencent.tap": { - "source": "iana" - }, - "image/vnd.valve.source.texture": { - "source": "iana" - }, - "image/vnd.wap.wbmp": { - "source": "iana", - "extensions": ["wbmp"] - }, - "image/vnd.xiff": { - "source": "iana", - "extensions": ["xif"] - }, - "image/vnd.zbrush.pcx": { - "source": "iana" - }, - "image/webp": { - "source": "apache", - "extensions": ["webp"] - }, - "image/wmf": { - "source": "iana" - }, - "image/x-3ds": { - "source": "apache", - "extensions": ["3ds"] - }, - "image/x-cmu-raster": { - "source": "apache", - "extensions": ["ras"] - }, - "image/x-cmx": { - "source": "apache", - "extensions": ["cmx"] - }, - "image/x-freehand": { - "source": "apache", - "extensions": ["fh","fhc","fh4","fh5","fh7"] - }, - "image/x-icon": { - "source": "apache", - "compressible": true, - "extensions": ["ico"] - }, - "image/x-jng": { - "source": "nginx", - "extensions": ["jng"] - }, - "image/x-mrsid-image": { - "source": "apache", - "extensions": ["sid"] - }, - "image/x-ms-bmp": { - "source": "nginx", - "compressible": true, - "extensions": ["bmp"] - }, - "image/x-pcx": { - "source": "apache", - "extensions": ["pcx"] - }, - "image/x-pict": { - "source": "apache", - "extensions": ["pic","pct"] - }, - "image/x-portable-anymap": { - "source": "apache", - "extensions": ["pnm"] - }, - "image/x-portable-bitmap": { - "source": "apache", - "extensions": ["pbm"] - }, - "image/x-portable-graymap": { - "source": "apache", - "extensions": ["pgm"] - }, - "image/x-portable-pixmap": { - "source": "apache", - "extensions": ["ppm"] - }, - "image/x-rgb": { - "source": "apache", - "extensions": ["rgb"] - }, - "image/x-tga": { - "source": "apache", - "extensions": ["tga"] - }, - "image/x-xbitmap": { - "source": "apache", - "extensions": ["xbm"] - }, - "image/x-xcf": { - "compressible": false - }, - "image/x-xpixmap": { - "source": "apache", - "extensions": ["xpm"] - }, - "image/x-xwindowdump": { - "source": "apache", - "extensions": ["xwd"] - }, - "message/cpim": { - "source": "iana" - }, - "message/delivery-status": { - "source": "iana" - }, - "message/disposition-notification": { - "source": "iana" - }, - "message/external-body": { - "source": "iana" - }, - "message/feedback-report": { - "source": "iana" - }, - "message/global": { - "source": "iana" - }, - "message/global-delivery-status": { - "source": "iana" - }, - "message/global-disposition-notification": { - "source": "iana" - }, - "message/global-headers": { - "source": "iana" - }, - "message/http": { - "source": "iana", - "compressible": false - }, - "message/imdn+xml": { - "source": "iana", - "compressible": true - }, - "message/news": { - "source": "iana" - }, - "message/partial": { - "source": "iana", - "compressible": false - }, - "message/rfc822": { - "source": "iana", - "compressible": true, - "extensions": ["eml","mime"] - }, - "message/s-http": { - "source": "iana" - }, - "message/sip": { - "source": "iana" - }, - "message/sipfrag": { - "source": "iana" - }, - "message/tracking-status": { - "source": "iana" - }, - "message/vnd.si.simp": { - "source": "iana" - }, - "message/vnd.wfa.wsc": { - "source": "iana" - }, - "model/gltf+json": { - "source": "iana", - "compressible": true - }, - "model/iges": { - "source": "iana", - "compressible": false, - "extensions": ["igs","iges"] - }, - "model/mesh": { - "source": "iana", - "compressible": false, - "extensions": ["msh","mesh","silo"] - }, - "model/vnd.collada+xml": { - "source": "iana", - "extensions": ["dae"] - }, - "model/vnd.dwf": { - "source": "iana", - "extensions": ["dwf"] - }, - "model/vnd.flatland.3dml": { - "source": "iana" - }, - "model/vnd.gdl": { - "source": "iana", - "extensions": ["gdl"] - }, - "model/vnd.gs-gdl": { - "source": "apache" - }, - "model/vnd.gs.gdl": { - "source": "iana" - }, - "model/vnd.gtw": { - "source": "iana", - "extensions": ["gtw"] - }, - "model/vnd.moml+xml": { - "source": "iana" - }, - "model/vnd.mts": { - "source": "iana", - "extensions": ["mts"] - }, - "model/vnd.opengex": { - "source": "iana" - }, - "model/vnd.parasolid.transmit.binary": { - "source": "iana" - }, - "model/vnd.parasolid.transmit.text": { - "source": "iana" - }, - "model/vnd.rosette.annotated-data-model": { - "source": "iana" - }, - "model/vnd.valve.source.compiled-map": { - "source": "iana" - }, - "model/vnd.vtu": { - "source": "iana", - "extensions": ["vtu"] - }, - "model/vrml": { - "source": "iana", - "compressible": false, - "extensions": ["wrl","vrml"] - }, - "model/x3d+binary": { - "source": "apache", - "compressible": false, - "extensions": ["x3db","x3dbz"] - }, - "model/x3d+fastinfoset": { - "source": "iana" - }, - "model/x3d+vrml": { - "source": "apache", - "compressible": false, - "extensions": ["x3dv","x3dvz"] - }, - "model/x3d+xml": { - "source": "iana", - "compressible": true, - "extensions": ["x3d","x3dz"] - }, - "model/x3d-vrml": { - "source": "iana" - }, - "multipart/alternative": { - "source": "iana", - "compressible": false - }, - "multipart/appledouble": { - "source": "iana" - }, - "multipart/byteranges": { - "source": "iana" - }, - "multipart/digest": { - "source": "iana" - }, - "multipart/encrypted": { - "source": "iana", - "compressible": false - }, - "multipart/form-data": { - "source": "iana", - "compressible": false - }, - "multipart/header-set": { - "source": "iana" - }, - "multipart/mixed": { - "source": "iana", - "compressible": false - }, - "multipart/parallel": { - "source": "iana" - }, - "multipart/related": { - "source": "iana", - "compressible": false - }, - "multipart/report": { - "source": "iana" - }, - "multipart/signed": { - "source": "iana", - "compressible": false - }, - "multipart/voice-message": { - "source": "iana" - }, - "multipart/x-mixed-replace": { - "source": "iana" - }, - "text/1d-interleaved-parityfec": { - "source": "iana" - }, - "text/cache-manifest": { - "source": "iana", - "compressible": true, - "extensions": ["appcache","manifest"] - }, - "text/calendar": { - "source": "iana", - "extensions": ["ics","ifb"] - }, - "text/calender": { - "compressible": true - }, - "text/cmd": { - "compressible": true - }, - "text/coffeescript": { - "extensions": ["coffee","litcoffee"] - }, - "text/css": { - "source": "iana", - "compressible": true, - "extensions": ["css"] - }, - "text/csv": { - "source": "iana", - "compressible": true, - "extensions": ["csv"] - }, - "text/csv-schema": { - "source": "iana" - }, - "text/directory": { - "source": "iana" - }, - "text/dns": { - "source": "iana" - }, - "text/ecmascript": { - "source": "iana" - }, - "text/encaprtp": { - "source": "iana" - }, - "text/enriched": { - "source": "iana" - }, - "text/fwdred": { - "source": "iana" - }, - "text/grammar-ref-list": { - "source": "iana" - }, - "text/hjson": { - "extensions": ["hjson"] - }, - "text/html": { - "source": "iana", - "compressible": true, - "extensions": ["html","htm","shtml"] - }, - "text/jade": { - "extensions": ["jade"] - }, - "text/javascript": { - "source": "iana", - "compressible": true - }, - "text/jcr-cnd": { - "source": "iana" - }, - "text/jsx": { - "compressible": true, - "extensions": ["jsx"] - }, - "text/less": { - "extensions": ["less"] - }, - "text/markdown": { - "source": "iana" - }, - "text/mathml": { - "source": "nginx", - "extensions": ["mml"] - }, - "text/mizar": { - "source": "iana" - }, - "text/n3": { - "source": "iana", - "compressible": true, - "extensions": ["n3"] - }, - "text/parameters": { - "source": "iana" - }, - "text/parityfec": { - "source": "iana" - }, - "text/plain": { - "source": "iana", - "compressible": true, - "extensions": ["txt","text","conf","def","list","log","in","ini"] - }, - "text/provenance-notation": { - "source": "iana" - }, - "text/prs.fallenstein.rst": { - "source": "iana" - }, - "text/prs.lines.tag": { - "source": "iana", - "extensions": ["dsc"] - }, - "text/prs.prop.logic": { - "source": "iana" - }, - "text/raptorfec": { - "source": "iana" - }, - "text/red": { - "source": "iana" - }, - "text/rfc822-headers": { - "source": "iana" - }, - "text/richtext": { - "source": "iana", - "compressible": true, - "extensions": ["rtx"] - }, - "text/rtf": { - "source": "iana", - "compressible": true, - "extensions": ["rtf"] - }, - "text/rtp-enc-aescm128": { - "source": "iana" - }, - "text/rtploopback": { - "source": "iana" - }, - "text/rtx": { - "source": "iana" - }, - "text/sgml": { - "source": "iana", - "extensions": ["sgml","sgm"] - }, - "text/slim": { - "extensions": ["slim","slm"] - }, - "text/stylus": { - "extensions": ["stylus","styl"] - }, - "text/t140": { - "source": "iana" - }, - "text/tab-separated-values": { - "source": "iana", - "compressible": true, - "extensions": ["tsv"] - }, - "text/troff": { - "source": "iana", - "extensions": ["t","tr","roff","man","me","ms"] - }, - "text/turtle": { - "source": "iana", - "extensions": ["ttl"] - }, - "text/ulpfec": { - "source": "iana" - }, - "text/uri-list": { - "source": "iana", - "compressible": true, - "extensions": ["uri","uris","urls"] - }, - "text/vcard": { - "source": "iana", - "compressible": true, - "extensions": ["vcard"] - }, - "text/vnd.a": { - "source": "iana" - }, - "text/vnd.abc": { - "source": "iana" - }, - "text/vnd.ascii-art": { - "source": "iana" - }, - "text/vnd.curl": { - "source": "iana", - "extensions": ["curl"] - }, - "text/vnd.curl.dcurl": { - "source": "apache", - "extensions": ["dcurl"] - }, - "text/vnd.curl.mcurl": { - "source": "apache", - "extensions": ["mcurl"] - }, - "text/vnd.curl.scurl": { - "source": "apache", - "extensions": ["scurl"] - }, - "text/vnd.debian.copyright": { - "source": "iana" - }, - "text/vnd.dmclientscript": { - "source": "iana" - }, - "text/vnd.dvb.subtitle": { - "source": "iana", - "extensions": ["sub"] - }, - "text/vnd.esmertec.theme-descriptor": { - "source": "iana" - }, - "text/vnd.fly": { - "source": "iana", - "extensions": ["fly"] - }, - "text/vnd.fmi.flexstor": { - "source": "iana", - "extensions": ["flx"] - }, - "text/vnd.graphviz": { - "source": "iana", - "extensions": ["gv"] - }, - "text/vnd.in3d.3dml": { - "source": "iana", - "extensions": ["3dml"] - }, - "text/vnd.in3d.spot": { - "source": "iana", - "extensions": ["spot"] - }, - "text/vnd.iptc.newsml": { - "source": "iana" - }, - "text/vnd.iptc.nitf": { - "source": "iana" - }, - "text/vnd.latex-z": { - "source": "iana" - }, - "text/vnd.motorola.reflex": { - "source": "iana" - }, - "text/vnd.ms-mediapackage": { - "source": "iana" - }, - "text/vnd.net2phone.commcenter.command": { - "source": "iana" - }, - "text/vnd.radisys.msml-basic-layout": { - "source": "iana" - }, - "text/vnd.si.uricatalogue": { - "source": "iana" - }, - "text/vnd.sun.j2me.app-descriptor": { - "source": "iana", - "extensions": ["jad"] - }, - "text/vnd.trolltech.linguist": { - "source": "iana" - }, - "text/vnd.wap.si": { - "source": "iana" - }, - "text/vnd.wap.sl": { - "source": "iana" - }, - "text/vnd.wap.wml": { - "source": "iana", - "extensions": ["wml"] - }, - "text/vnd.wap.wmlscript": { - "source": "iana", - "extensions": ["wmls"] - }, - "text/vtt": { - "charset": "UTF-8", - "compressible": true, - "extensions": ["vtt"] - }, - "text/x-asm": { - "source": "apache", - "extensions": ["s","asm"] - }, - "text/x-c": { - "source": "apache", - "extensions": ["c","cc","cxx","cpp","h","hh","dic"] - }, - "text/x-component": { - "source": "nginx", - "extensions": ["htc"] - }, - "text/x-fortran": { - "source": "apache", - "extensions": ["f","for","f77","f90"] - }, - "text/x-gwt-rpc": { - "compressible": true - }, - "text/x-handlebars-template": { - "extensions": ["hbs"] - }, - "text/x-java-source": { - "source": "apache", - "extensions": ["java"] - }, - "text/x-jquery-tmpl": { - "compressible": true - }, - "text/x-lua": { - "extensions": ["lua"] - }, - "text/x-markdown": { - "compressible": true, - "extensions": ["markdown","md","mkd"] - }, - "text/x-nfo": { - "source": "apache", - "extensions": ["nfo"] - }, - "text/x-opml": { - "source": "apache", - "extensions": ["opml"] - }, - "text/x-pascal": { - "source": "apache", - "extensions": ["p","pas"] - }, - "text/x-processing": { - "compressible": true, - "extensions": ["pde"] - }, - "text/x-sass": { - "extensions": ["sass"] - }, - "text/x-scss": { - "extensions": ["scss"] - }, - "text/x-setext": { - "source": "apache", - "extensions": ["etx"] - }, - "text/x-sfv": { - "source": "apache", - "extensions": ["sfv"] - }, - "text/x-suse-ymp": { - "compressible": true, - "extensions": ["ymp"] - }, - "text/x-uuencode": { - "source": "apache", - "extensions": ["uu"] - }, - "text/x-vcalendar": { - "source": "apache", - "extensions": ["vcs"] - }, - "text/x-vcard": { - "source": "apache", - "extensions": ["vcf"] - }, - "text/xml": { - "source": "iana", - "compressible": true, - "extensions": ["xml"] - }, - "text/xml-external-parsed-entity": { - "source": "iana" - }, - "text/yaml": { - "extensions": ["yaml","yml"] - }, - "video/1d-interleaved-parityfec": { - "source": "apache" - }, - "video/3gpp": { - "source": "apache", - "extensions": ["3gp","3gpp"] - }, - "video/3gpp-tt": { - "source": "apache" - }, - "video/3gpp2": { - "source": "apache", - "extensions": ["3g2"] - }, - "video/bmpeg": { - "source": "apache" - }, - "video/bt656": { - "source": "apache" - }, - "video/celb": { - "source": "apache" - }, - "video/dv": { - "source": "apache" - }, - "video/encaprtp": { - "source": "apache" - }, - "video/h261": { - "source": "apache", - "extensions": ["h261"] - }, - "video/h263": { - "source": "apache", - "extensions": ["h263"] - }, - "video/h263-1998": { - "source": "apache" - }, - "video/h263-2000": { - "source": "apache" - }, - "video/h264": { - "source": "apache", - "extensions": ["h264"] - }, - "video/h264-rcdo": { - "source": "apache" - }, - "video/h264-svc": { - "source": "apache" - }, - "video/h265": { - "source": "apache" - }, - "video/iso.segment": { - "source": "apache" - }, - "video/jpeg": { - "source": "apache", - "extensions": ["jpgv"] - }, - "video/jpeg2000": { - "source": "apache" - }, - "video/jpm": { - "source": "apache", - "extensions": ["jpm","jpgm"] - }, - "video/mj2": { - "source": "apache", - "extensions": ["mj2","mjp2"] - }, - "video/mp1s": { - "source": "apache" - }, - "video/mp2p": { - "source": "apache" - }, - "video/mp2t": { - "source": "apache", - "extensions": ["ts"] - }, - "video/mp4": { - "source": "apache", - "compressible": false, - "extensions": ["mp4","mp4v","mpg4"] - }, - "video/mp4v-es": { - "source": "apache" - }, - "video/mpeg": { - "source": "apache", - "compressible": false, - "extensions": ["mpeg","mpg","mpe","m1v","m2v"] - }, - "video/mpeg4-generic": { - "source": "apache" - }, - "video/mpv": { - "source": "apache" - }, - "video/nv": { - "source": "apache" - }, - "video/ogg": { - "source": "apache", - "compressible": false, - "extensions": ["ogv"] - }, - "video/parityfec": { - "source": "apache" - }, - "video/pointer": { - "source": "apache" - }, - "video/quicktime": { - "source": "apache", - "compressible": false, - "extensions": ["qt","mov"] - }, - "video/raptorfec": { - "source": "apache" - }, - "video/raw": { - "source": "apache" - }, - "video/rtp-enc-aescm128": { - "source": "apache" - }, - "video/rtploopback": { - "source": "apache" - }, - "video/rtx": { - "source": "apache" - }, - "video/smpte292m": { - "source": "apache" - }, - "video/ulpfec": { - "source": "apache" - }, - "video/vc1": { - "source": "apache" - }, - "video/vnd.cctv": { - "source": "apache" - }, - "video/vnd.dece.hd": { - "source": "apache", - "extensions": ["uvh","uvvh"] - }, - "video/vnd.dece.mobile": { - "source": "apache", - "extensions": ["uvm","uvvm"] - }, - "video/vnd.dece.mp4": { - "source": "apache" - }, - "video/vnd.dece.pd": { - "source": "apache", - "extensions": ["uvp","uvvp"] - }, - "video/vnd.dece.sd": { - "source": "apache", - "extensions": ["uvs","uvvs"] - }, - "video/vnd.dece.video": { - "source": "apache", - "extensions": ["uvv","uvvv"] - }, - "video/vnd.directv.mpeg": { - "source": "apache" - }, - "video/vnd.directv.mpeg-tts": { - "source": "apache" - }, - "video/vnd.dlna.mpeg-tts": { - "source": "apache" - }, - "video/vnd.dvb.file": { - "source": "apache", - "extensions": ["dvb"] - }, - "video/vnd.fvt": { - "source": "apache", - "extensions": ["fvt"] - }, - "video/vnd.hns.video": { - "source": "apache" - }, - "video/vnd.iptvforum.1dparityfec-1010": { - "source": "apache" - }, - "video/vnd.iptvforum.1dparityfec-2005": { - "source": "apache" - }, - "video/vnd.iptvforum.2dparityfec-1010": { - "source": "apache" - }, - "video/vnd.iptvforum.2dparityfec-2005": { - "source": "apache" - }, - "video/vnd.iptvforum.ttsavc": { - "source": "apache" - }, - "video/vnd.iptvforum.ttsmpeg2": { - "source": "apache" - }, - "video/vnd.motorola.video": { - "source": "apache" - }, - "video/vnd.motorola.videop": { - "source": "apache" - }, - "video/vnd.mpegurl": { - "source": "apache", - "extensions": ["mxu","m4u"] - }, - "video/vnd.ms-playready.media.pyv": { - "source": "apache", - "extensions": ["pyv"] - }, - "video/vnd.nokia.interleaved-multimedia": { - "source": "apache" - }, - "video/vnd.nokia.videovoip": { - "source": "apache" - }, - "video/vnd.objectvideo": { - "source": "apache" - }, - "video/vnd.radgamettools.bink": { - "source": "apache" - }, - "video/vnd.radgamettools.smacker": { - "source": "apache" - }, - "video/vnd.sealed.mpeg1": { - "source": "apache" - }, - "video/vnd.sealed.mpeg4": { - "source": "apache" - }, - "video/vnd.sealed.swf": { - "source": "apache" - }, - "video/vnd.sealedmedia.softseal.mov": { - "source": "apache" - }, - "video/vnd.uvvu.mp4": { - "source": "apache", - "extensions": ["uvu","uvvu"] - }, - "video/vnd.vivo": { - "source": "apache", - "extensions": ["viv"] - }, - "video/vp8": { - "source": "apache" - }, - "video/webm": { - "source": "apache", - "compressible": false, - "extensions": ["webm"] - }, - "video/x-f4v": { - "source": "apache", - "extensions": ["f4v"] - }, - "video/x-fli": { - "source": "apache", - "extensions": ["fli"] - }, - "video/x-flv": { - "source": "apache", - "compressible": false, - "extensions": ["flv"] - }, - "video/x-m4v": { - "source": "apache", - "extensions": ["m4v"] - }, - "video/x-matroska": { - "source": "apache", - "compressible": false, - "extensions": ["mkv","mk3d","mks"] - }, - "video/x-mng": { - "source": "apache", - "extensions": ["mng"] - }, - "video/x-ms-asf": { - "source": "apache", - "extensions": ["asf","asx"] - }, - "video/x-ms-vob": { - "source": "apache", - "extensions": ["vob"] - }, - "video/x-ms-wm": { - "source": "apache", - "extensions": ["wm"] - }, - "video/x-ms-wmv": { - "source": "apache", - "compressible": false, - "extensions": ["wmv"] - }, - "video/x-ms-wmx": { - "source": "apache", - "extensions": ["wmx"] - }, - "video/x-ms-wvx": { - "source": "apache", - "extensions": ["wvx"] - }, - "video/x-msvideo": { - "source": "apache", - "extensions": ["avi"] - }, - "video/x-sgi-movie": { - "source": "apache", - "extensions": ["movie"] - }, - "video/x-smv": { - "source": "apache", - "extensions": ["smv"] - }, - "x-conference/x-cooltalk": { - "source": "apache", - "extensions": ["ice"] - }, - "x-shader/x-fragment": { - "compressible": true - }, - "x-shader/x-vertex": { - "compressible": true - } -} diff --git a/node_modules/mime-db/index.js b/node_modules/mime-db/index.js deleted file mode 100644 index 551031f..0000000 --- a/node_modules/mime-db/index.js +++ /dev/null @@ -1,11 +0,0 @@ -/*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * MIT Licensed - */ - -/** - * Module exports. - */ - -module.exports = require('./db.json') diff --git a/node_modules/mime-db/package.json b/node_modules/mime-db/package.json deleted file mode 100644 index 00719c7..0000000 --- a/node_modules/mime-db/package.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "mime-db@~1.26.0", - "scope": null, - "escapedName": "mime-db", - "name": "mime-db", - "rawSpec": "~1.26.0", - "spec": ">=1.26.0 <1.27.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/mime-types" - ] - ], - "_from": "mime-db@>=1.26.0 <1.27.0", - "_id": "mime-db@1.26.0", - "_inCache": true, - "_location": "/mime-db", - "_nodeVersion": "4.6.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/mime-db-1.26.0.tgz_1484453096877_0.39498970191925764" - }, - "_npmUser": { - "name": "dougwilson", - "email": "doug@somethingdoug.com" - }, - "_npmVersion": "2.15.9", - "_phantomChildren": {}, - "_requested": { - "raw": "mime-db@~1.26.0", - "scope": null, - "escapedName": "mime-db", - "name": "mime-db", - "rawSpec": "~1.26.0", - "spec": ">=1.26.0 <1.27.0", - "type": "range" - }, - "_requiredBy": [ - "/mime-types" - ], - "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.26.0.tgz", - "_shasum": "eaffcd0e4fc6935cf8134da246e2e6c35305adff", - "_shrinkwrap": null, - "_spec": "mime-db@~1.26.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/mime-types", - "bugs": { - "url": "https://github.com/jshttp/mime-db/issues" - }, - "contributors": [ - { - "name": "Douglas Christopher Wilson", - "email": "doug@somethingdoug.com" - }, - { - "name": "Jonathan Ong", - "email": "me@jongleberry.com", - "url": "http://jongleberry.com" - }, - { - "name": "Robert Kieffer", - "email": "robert@broofa.com", - "url": "http://github.com/broofa" - } - ], - "dependencies": {}, - "description": "Media Type Database", - "devDependencies": { - "bluebird": "3.4.7", - "co": "4.6.0", - "cogent": "1.0.1", - "csv-parse": "1.1.9", - "eslint": "3.13.1", - "eslint-config-standard": "6.2.1", - "eslint-plugin-promise": "3.3.0", - "eslint-plugin-standard": "2.0.1", - "gnode": "0.1.2", - "istanbul": "0.4.5", - "mocha": "1.21.5", - "raw-body": "2.2.0", - "stream-to-array": "2.3.0" - }, - "directories": {}, - "dist": { - "shasum": "eaffcd0e4fc6935cf8134da246e2e6c35305adff", - "tarball": "https://registry.npmjs.org/mime-db/-/mime-db-1.26.0.tgz" - }, - "engines": { - "node": ">= 0.6" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "README.md", - "db.json", - "index.js" - ], - "gitHead": "1d9ff30e45b07a506a20f25df3a3c7106d219e24", - "homepage": "https://github.com/jshttp/mime-db#readme", - "keywords": [ - "mime", - "db", - "type", - "types", - "database", - "charset", - "charsets" - ], - "license": "MIT", - "maintainers": [ - { - "name": "dougwilson", - "email": "doug@somethingdoug.com" - }, - { - "name": "jongleberry", - "email": "jonathanrichardong@gmail.com" - } - ], - "name": "mime-db", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jshttp/mime-db.git" - }, - "scripts": { - "build": "node scripts/build", - "fetch": "gnode scripts/fetch-apache && gnode scripts/fetch-iana && gnode scripts/fetch-nginx", - "lint": "eslint .", - "test": "mocha --reporter spec --bail --check-leaks test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/", - "update": "npm run fetch && npm run build" - }, - "version": "1.26.0" -} diff --git a/node_modules/mime-types/HISTORY.md b/node_modules/mime-types/HISTORY.md deleted file mode 100644 index 85b59f0..0000000 --- a/node_modules/mime-types/HISTORY.md +++ /dev/null @@ -1,216 +0,0 @@ -2.1.14 / 2017-01-14 -=================== - - * deps: mime-db@~1.26.0 - - Add new mime types - -2.1.13 / 2016-11-18 -=================== - - * deps: mime-db@~1.25.0 - - Add new mime types - -2.1.12 / 2016-09-18 -=================== - - * deps: mime-db@~1.24.0 - - Add new mime types - - Add `audio/mp3` - -2.1.11 / 2016-05-01 -=================== - - * deps: mime-db@~1.23.0 - - Add new mime types - -2.1.10 / 2016-02-15 -=================== - - * deps: mime-db@~1.22.0 - - Add new mime types - - Fix extension of `application/dash+xml` - - Update primary extension for `audio/mp4` - -2.1.9 / 2016-01-06 -================== - - * deps: mime-db@~1.21.0 - - Add new mime types - -2.1.8 / 2015-11-30 -================== - - * deps: mime-db@~1.20.0 - - Add new mime types - -2.1.7 / 2015-09-20 -================== - - * deps: mime-db@~1.19.0 - - Add new mime types - -2.1.6 / 2015-09-03 -================== - - * deps: mime-db@~1.18.0 - - Add new mime types - -2.1.5 / 2015-08-20 -================== - - * deps: mime-db@~1.17.0 - - Add new mime types - -2.1.4 / 2015-07-30 -================== - - * deps: mime-db@~1.16.0 - - Add new mime types - -2.1.3 / 2015-07-13 -================== - - * deps: mime-db@~1.15.0 - - Add new mime types - -2.1.2 / 2015-06-25 -================== - - * deps: mime-db@~1.14.0 - - Add new mime types - -2.1.1 / 2015-06-08 -================== - - * perf: fix deopt during mapping - -2.1.0 / 2015-06-07 -================== - - * Fix incorrectly treating extension-less file name as extension - - i.e. `'path/to/json'` will no longer return `application/json` - * Fix `.charset(type)` to accept parameters - * Fix `.charset(type)` to match case-insensitive - * Improve generation of extension to MIME mapping - * Refactor internals for readability and no argument reassignment - * Prefer `application/*` MIME types from the same source - * Prefer any type over `application/octet-stream` - * deps: mime-db@~1.13.0 - - Add nginx as a source - - Add new mime types - -2.0.14 / 2015-06-06 -=================== - - * deps: mime-db@~1.12.0 - - Add new mime types - -2.0.13 / 2015-05-31 -=================== - - * deps: mime-db@~1.11.0 - - Add new mime types - -2.0.12 / 2015-05-19 -=================== - - * deps: mime-db@~1.10.0 - - Add new mime types - -2.0.11 / 2015-05-05 -=================== - - * deps: mime-db@~1.9.1 - - Add new mime types - -2.0.10 / 2015-03-13 -=================== - - * deps: mime-db@~1.8.0 - - Add new mime types - -2.0.9 / 2015-02-09 -================== - - * deps: mime-db@~1.7.0 - - Add new mime types - - Community extensions ownership transferred from `node-mime` - -2.0.8 / 2015-01-29 -================== - - * deps: mime-db@~1.6.0 - - Add new mime types - -2.0.7 / 2014-12-30 -================== - - * deps: mime-db@~1.5.0 - - Add new mime types - - Fix various invalid MIME type entries - -2.0.6 / 2014-12-30 -================== - - * deps: mime-db@~1.4.0 - - Add new mime types - - Fix various invalid MIME type entries - - Remove example template MIME types - -2.0.5 / 2014-12-29 -================== - - * deps: mime-db@~1.3.1 - - Fix missing extensions - -2.0.4 / 2014-12-10 -================== - - * deps: mime-db@~1.3.0 - - Add new mime types - -2.0.3 / 2014-11-09 -================== - - * deps: mime-db@~1.2.0 - - Add new mime types - -2.0.2 / 2014-09-28 -================== - - * deps: mime-db@~1.1.0 - - Add new mime types - - Add additional compressible - - Update charsets - -2.0.1 / 2014-09-07 -================== - - * Support Node.js 0.6 - -2.0.0 / 2014-09-02 -================== - - * Use `mime-db` - * Remove `.define()` - -1.0.2 / 2014-08-04 -================== - - * Set charset=utf-8 for `text/javascript` - -1.0.1 / 2014-06-24 -================== - - * Add `text/jsx` type - -1.0.0 / 2014-05-12 -================== - - * Return `false` for unknown types - * Set charset=utf-8 for `application/json` - -0.1.0 / 2014-05-02 -================== - - * Initial release diff --git a/node_modules/mime-types/LICENSE b/node_modules/mime-types/LICENSE deleted file mode 100644 index 0616607..0000000 --- a/node_modules/mime-types/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015 Douglas Christopher Wilson - -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/mime-types/README.md b/node_modules/mime-types/README.md deleted file mode 100644 index e77d615..0000000 --- a/node_modules/mime-types/README.md +++ /dev/null @@ -1,103 +0,0 @@ -# mime-types - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][travis-image]][travis-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -The ultimate javascript content-type utility. - -Similar to [node-mime](https://github.com/broofa/node-mime), except: - -- __No fallbacks.__ Instead of naively returning the first available type, `mime-types` simply returns `false`, - so do `var type = mime.lookup('unrecognized') || 'application/octet-stream'`. -- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`. -- Additional mime types are added such as jade and stylus via [mime-db](https://github.com/jshttp/mime-db) -- No `.define()` functionality - -Otherwise, the API is compatible. - -## Install - -```sh -$ npm install mime-types -``` - -## Adding Types - -All mime types are based on [mime-db](https://github.com/jshttp/mime-db), -so open a PR there if you'd like to add mime types. - -## API - -```js -var mime = require('mime-types') -``` - -All functions return `false` if input is invalid or not found. - -### mime.lookup(path) - -Lookup the content-type associated with a file. - -```js -mime.lookup('json') // 'application/json' -mime.lookup('.md') // 'text/x-markdown' -mime.lookup('file.html') // 'text/html' -mime.lookup('folder/file.js') // 'application/javascript' -mime.lookup('folder/.htaccess') // false - -mime.lookup('cats') // false -``` - -### mime.contentType(type) - -Create a full content-type header given a content-type or extension. - -```js -mime.contentType('markdown') // 'text/x-markdown; charset=utf-8' -mime.contentType('file.json') // 'application/json; charset=utf-8' - -// from a full path -mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8' -``` - -### mime.extension(type) - -Get the default extension for a content-type. - -```js -mime.extension('application/octet-stream') // 'bin' -``` - -### mime.charset(type) - -Lookup the implied default charset of a content-type. - -```js -mime.charset('text/x-markdown') // 'UTF-8' -``` - -### var type = mime.types[extension] - -A map of content-types by extension. - -### [extensions...] = mime.extensions[type] - -A map of extensions by content-type. - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/mime-types.svg -[npm-url]: https://npmjs.org/package/mime-types -[node-version-image]: https://img.shields.io/node/v/mime-types.svg -[node-version-url]: https://nodejs.org/en/download/ -[travis-image]: https://img.shields.io/travis/jshttp/mime-types/master.svg -[travis-url]: https://travis-ci.org/jshttp/mime-types -[coveralls-image]: https://img.shields.io/coveralls/jshttp/mime-types/master.svg -[coveralls-url]: https://coveralls.io/r/jshttp/mime-types -[downloads-image]: https://img.shields.io/npm/dm/mime-types.svg -[downloads-url]: https://npmjs.org/package/mime-types diff --git a/node_modules/mime-types/index.js b/node_modules/mime-types/index.js deleted file mode 100644 index 9226ca5..0000000 --- a/node_modules/mime-types/index.js +++ /dev/null @@ -1,188 +0,0 @@ -/*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var db = require('mime-db') -var extname = require('path').extname - -/** - * Module variables. - * @private - */ - -var extractTypeRegExp = /^\s*([^;\s]*)(?:;|\s|$)/ -var textTypeRegExp = /^text\//i - -/** - * Module exports. - * @public - */ - -exports.charset = charset -exports.charsets = { lookup: charset } -exports.contentType = contentType -exports.extension = extension -exports.extensions = Object.create(null) -exports.lookup = lookup -exports.types = Object.create(null) - -// Populate the extensions/types maps -populateMaps(exports.extensions, exports.types) - -/** - * Get the default charset for a MIME type. - * - * @param {string} type - * @return {boolean|string} - */ - -function charset (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = extractTypeRegExp.exec(type) - var mime = match && db[match[1].toLowerCase()] - - if (mime && mime.charset) { - return mime.charset - } - - // default text/* to utf-8 - if (match && textTypeRegExp.test(match[1])) { - return 'UTF-8' - } - - return false -} - -/** - * Create a full Content-Type header given a MIME type or extension. - * - * @param {string} str - * @return {boolean|string} - */ - -function contentType (str) { - // TODO: should this even be in this module? - if (!str || typeof str !== 'string') { - return false - } - - var mime = str.indexOf('/') === -1 - ? exports.lookup(str) - : str - - if (!mime) { - return false - } - - // TODO: use content-type or other module - if (mime.indexOf('charset') === -1) { - var charset = exports.charset(mime) - if (charset) mime += '; charset=' + charset.toLowerCase() - } - - return mime -} - -/** - * Get the default extension for a MIME type. - * - * @param {string} type - * @return {boolean|string} - */ - -function extension (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = extractTypeRegExp.exec(type) - - // get extensions - var exts = match && exports.extensions[match[1].toLowerCase()] - - if (!exts || !exts.length) { - return false - } - - return exts[0] -} - -/** - * Lookup the MIME type for a file path/extension. - * - * @param {string} path - * @return {boolean|string} - */ - -function lookup (path) { - if (!path || typeof path !== 'string') { - return false - } - - // get the extension ("ext" or ".ext" or full path) - var extension = extname('x.' + path) - .toLowerCase() - .substr(1) - - if (!extension) { - return false - } - - return exports.types[extension] || false -} - -/** - * Populate the extensions and types maps. - * @private - */ - -function populateMaps (extensions, types) { - // source preference (least -> most) - var preference = ['nginx', 'apache', undefined, 'iana'] - - Object.keys(db).forEach(function forEachMimeType (type) { - var mime = db[type] - var exts = mime.extensions - - if (!exts || !exts.length) { - return - } - - // mime -> extensions - extensions[type] = exts - - // extension -> mime - for (var i = 0; i < exts.length; i++) { - var extension = exts[i] - - if (types[extension]) { - var from = preference.indexOf(db[types[extension]].source) - var to = preference.indexOf(mime.source) - - if (types[extension] !== 'application/octet-stream' && - from > to || (from === to && types[extension].substr(0, 12) === 'application/')) { - // skip the remapping - continue - } - } - - // set the extension -> mime - types[extension] = type - } - }) -} diff --git a/node_modules/mime-types/package.json b/node_modules/mime-types/package.json deleted file mode 100644 index 0186ab9..0000000 --- a/node_modules/mime-types/package.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "mime-types@~2.1.7", - "scope": null, - "escapedName": "mime-types", - "name": "mime-types", - "rawSpec": "~2.1.7", - "spec": ">=2.1.7 <2.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/request" - ] - ], - "_from": "mime-types@>=2.1.7 <2.2.0", - "_id": "mime-types@2.1.14", - "_inCache": true, - "_location": "/mime-types", - "_nodeVersion": "4.6.1", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/mime-types-2.1.14.tgz_1484458141358_0.7563668976072222" - }, - "_npmUser": { - "name": "dougwilson", - "email": "doug@somethingdoug.com" - }, - "_npmVersion": "2.15.9", - "_phantomChildren": {}, - "_requested": { - "raw": "mime-types@~2.1.7", - "scope": null, - "escapedName": "mime-types", - "name": "mime-types", - "rawSpec": "~2.1.7", - "spec": ">=2.1.7 <2.2.0", - "type": "range" - }, - "_requiredBy": [ - "/form-data", - "/request" - ], - "_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.14.tgz", - "_shasum": "f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee", - "_shrinkwrap": null, - "_spec": "mime-types@~2.1.7", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/request", - "bugs": { - "url": "https://github.com/jshttp/mime-types/issues" - }, - "contributors": [ - { - "name": "Douglas Christopher Wilson", - "email": "doug@somethingdoug.com" - }, - { - "name": "Jeremiah Senkpiel", - "email": "fishrock123@rocketmail.com", - "url": "https://searchbeam.jit.su" - }, - { - "name": "Jonathan Ong", - "email": "me@jongleberry.com", - "url": "http://jongleberry.com" - } - ], - "dependencies": { - "mime-db": "~1.26.0" - }, - "description": "The ultimate javascript content-type utility.", - "devDependencies": { - "eslint": "3.13.1", - "eslint-config-standard": "6.2.1", - "eslint-plugin-promise": "3.4.0", - "eslint-plugin-standard": "2.0.1", - "istanbul": "0.4.5", - "mocha": "1.21.5" - }, - "directories": {}, - "dist": { - "shasum": "f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee", - "tarball": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.14.tgz" - }, - "engines": { - "node": ">= 0.6" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "index.js" - ], - "gitHead": "d7d15e50fe6b3a2da79d855015d25efa50e9f157", - "homepage": "https://github.com/jshttp/mime-types#readme", - "keywords": [ - "mime", - "types" - ], - "license": "MIT", - "maintainers": [ - { - "name": "dougwilson", - "email": "doug@somethingdoug.com" - }, - { - "name": "fishrock123", - "email": "fishrock123@rocketmail.com" - }, - { - "name": "jongleberry", - "email": "jonathanrichardong@gmail.com" - } - ], - "name": "mime-types", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jshttp/mime-types.git" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec test/test.js", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/test.js", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot test/test.js" - }, - "version": "2.1.14" -} diff --git a/node_modules/mime/.npmignore b/node_modules/mime/.npmignore deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/mime/LICENSE b/node_modules/mime/LICENSE deleted file mode 100644 index 451fc45..0000000 --- a/node_modules/mime/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2010 Benjamin Thomas, Robert Kieffer - -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/mime/README.md b/node_modules/mime/README.md deleted file mode 100644 index 506fbe5..0000000 --- a/node_modules/mime/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# mime - -Comprehensive MIME type mapping API based on mime-db module. - -## Install - -Install with [npm](http://github.com/isaacs/npm): - - npm install mime - -## Contributing / Testing - - npm run test - -## Command Line - - mime [path_string] - -E.g. - - > mime scripts/jquery.js - application/javascript - -## API - Queries - -### mime.lookup(path) -Get the mime type associated with a file, if no mime type is found `application/octet-stream` is returned. Performs a case-insensitive lookup using the extension in `path` (the substring after the last '/' or '.'). E.g. - -```js -var mime = require('mime'); - -mime.lookup('/path/to/file.txt'); // => 'text/plain' -mime.lookup('file.txt'); // => 'text/plain' -mime.lookup('.TXT'); // => 'text/plain' -mime.lookup('htm'); // => 'text/html' -``` - -### mime.default_type -Sets the mime type returned when `mime.lookup` fails to find the extension searched for. (Default is `application/octet-stream`.) - -### mime.extension(type) -Get the default extension for `type` - -```js -mime.extension('text/html'); // => 'html' -mime.extension('application/octet-stream'); // => 'bin' -``` - -### mime.charsets.lookup() - -Map mime-type to charset - -```js -mime.charsets.lookup('text/plain'); // => 'UTF-8' -``` - -(The logic for charset lookups is pretty rudimentary. Feel free to suggest improvements.) - -## API - Defining Custom Types - -Custom type mappings can be added on a per-project basis via the following APIs. - -### mime.define() - -Add custom mime/extension mappings - -```js -mime.define({ - 'text/x-some-format': ['x-sf', 'x-sft', 'x-sfml'], - 'application/x-my-type': ['x-mt', 'x-mtt'], - // etc ... -}); - -mime.lookup('x-sft'); // => 'text/x-some-format' -``` - -The first entry in the extensions array is returned by `mime.extension()`. E.g. - -```js -mime.extension('text/x-some-format'); // => 'x-sf' -``` - -### mime.load(filepath) - -Load mappings from an Apache ".types" format file - -```js -mime.load('./my_project.types'); -``` -The .types file format is simple - See the `types` dir for examples. diff --git a/node_modules/mime/build/build.js b/node_modules/mime/build/build.js deleted file mode 100644 index ed5313e..0000000 --- a/node_modules/mime/build/build.js +++ /dev/null @@ -1,11 +0,0 @@ -var db = require('mime-db'); - -var mapByType = {}; -Object.keys(db).forEach(function(key) { - var extensions = db[key].extensions; - if (extensions) { - mapByType[key] = extensions; - } -}); - -console.log(JSON.stringify(mapByType)); diff --git a/node_modules/mime/build/test.js b/node_modules/mime/build/test.js deleted file mode 100644 index 58b9ba7..0000000 --- a/node_modules/mime/build/test.js +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Usage: node test.js - */ - -var mime = require('../mime'); -var assert = require('assert'); -var path = require('path'); - -// -// Test mime lookups -// - -assert.equal('text/plain', mime.lookup('text.txt')); // normal file -assert.equal('text/plain', mime.lookup('TEXT.TXT')); // uppercase -assert.equal('text/plain', mime.lookup('dir/text.txt')); // dir + file -assert.equal('text/plain', mime.lookup('.text.txt')); // hidden file -assert.equal('text/plain', mime.lookup('.txt')); // nameless -assert.equal('text/plain', mime.lookup('txt')); // extension-only -assert.equal('text/plain', mime.lookup('/txt')); // extension-less () -assert.equal('text/plain', mime.lookup('\\txt')); // Windows, extension-less -assert.equal('application/octet-stream', mime.lookup('text.nope')); // unrecognized -assert.equal('fallback', mime.lookup('text.fallback', 'fallback')); // alternate default - -// -// Test extensions -// - -assert.equal('txt', mime.extension(mime.types.text)); -assert.equal('html', mime.extension(mime.types.htm)); -assert.equal('bin', mime.extension('application/octet-stream')); -assert.equal('bin', mime.extension('application/octet-stream ')); -assert.equal('html', mime.extension(' text/html; charset=UTF-8')); -assert.equal('html', mime.extension('text/html; charset=UTF-8 ')); -assert.equal('html', mime.extension('text/html; charset=UTF-8')); -assert.equal('html', mime.extension('text/html ; charset=UTF-8')); -assert.equal('html', mime.extension('text/html;charset=UTF-8')); -assert.equal('html', mime.extension('text/Html;charset=UTF-8')); -assert.equal(undefined, mime.extension('unrecognized')); - -// -// Test node.types lookups -// - -assert.equal('application/font-woff', mime.lookup('file.woff')); -assert.equal('application/octet-stream', mime.lookup('file.buffer')); -assert.equal('audio/mp4', mime.lookup('file.m4a')); -assert.equal('font/opentype', mime.lookup('file.otf')); - -// -// Test charsets -// - -assert.equal('UTF-8', mime.charsets.lookup('text/plain')); -assert.equal(undefined, mime.charsets.lookup(mime.types.js)); -assert.equal('fallback', mime.charsets.lookup('application/octet-stream', 'fallback')); - -console.log('\nAll tests passed'); diff --git a/node_modules/mime/cli.js b/node_modules/mime/cli.js deleted file mode 100755 index 20b1ffe..0000000 --- a/node_modules/mime/cli.js +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env node - -var mime = require('./mime.js'); -var file = process.argv[2]; -var type = mime.lookup(file); - -process.stdout.write(type + '\n'); - diff --git a/node_modules/mime/mime.js b/node_modules/mime/mime.js deleted file mode 100644 index 341b6a5..0000000 --- a/node_modules/mime/mime.js +++ /dev/null @@ -1,108 +0,0 @@ -var path = require('path'); -var fs = require('fs'); - -function Mime() { - // Map of extension -> mime type - this.types = Object.create(null); - - // Map of mime type -> extension - this.extensions = Object.create(null); -} - -/** - * Define mimetype -> extension mappings. Each key is a mime-type that maps - * to an array of extensions associated with the type. The first extension is - * used as the default extension for the type. - * - * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']}); - * - * @param map (Object) type definitions - */ -Mime.prototype.define = function (map) { - for (var type in map) { - var exts = map[type]; - for (var i = 0; i < exts.length; i++) { - if (process.env.DEBUG_MIME && this.types[exts]) { - console.warn(this._loading.replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' + - this.types[exts] + ' to ' + type); - } - - this.types[exts[i]] = type; - } - - // Default extension is the first one we encounter - if (!this.extensions[type]) { - this.extensions[type] = exts[0]; - } - } -}; - -/** - * Load an Apache2-style ".types" file - * - * This may be called multiple times (it's expected). Where files declare - * overlapping types/extensions, the last file wins. - * - * @param file (String) path of file to load. - */ -Mime.prototype.load = function(file) { - this._loading = file; - // Read file and split into lines - var map = {}, - content = fs.readFileSync(file, 'ascii'), - lines = content.split(/[\r\n]+/); - - lines.forEach(function(line) { - // Clean up whitespace/comments, and split into fields - var fields = line.replace(/\s*#.*|^\s*|\s*$/g, '').split(/\s+/); - map[fields.shift()] = fields; - }); - - this.define(map); - - this._loading = null; -}; - -/** - * Lookup a mime type based on extension - */ -Mime.prototype.lookup = function(path, fallback) { - var ext = path.replace(/.*[\.\/\\]/, '').toLowerCase(); - - return this.types[ext] || fallback || this.default_type; -}; - -/** - * Return file extension associated with a mime type - */ -Mime.prototype.extension = function(mimeType) { - var type = mimeType.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase(); - return this.extensions[type]; -}; - -// Default instance -var mime = new Mime(); - -// Define built-in types -mime.define(require('./types.json')); - -// Default type -mime.default_type = mime.lookup('bin'); - -// -// Additional API specific to the default instance -// - -mime.Mime = Mime; - -/** - * Lookup a charset based on mime type. - */ -mime.charsets = { - lookup: function(mimeType, fallback) { - // Assume text types are utf8 - return (/^text\//).test(mimeType) ? 'UTF-8' : fallback; - } -}; - -module.exports = mime; diff --git a/node_modules/mime/package.json b/node_modules/mime/package.json deleted file mode 100644 index f4262c7..0000000 --- a/node_modules/mime/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "mime@^1.2.11", - "scope": null, - "escapedName": "mime", - "name": "mime", - "rawSpec": "^1.2.11", - "spec": ">=1.2.11 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/less" - ] - ], - "_from": "mime@>=1.2.11 <2.0.0", - "_id": "mime@1.3.4", - "_inCache": true, - "_location": "/mime", - "_npmUser": { - "name": "broofa", - "email": "robert@broofa.com" - }, - "_npmVersion": "1.4.28", - "_phantomChildren": {}, - "_requested": { - "raw": "mime@^1.2.11", - "scope": null, - "escapedName": "mime", - "name": "mime", - "rawSpec": "^1.2.11", - "spec": ">=1.2.11 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/less" - ], - "_resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", - "_shasum": "115f9e3b6b3daf2959983cb38f149a2d40eb5d53", - "_shrinkwrap": null, - "_spec": "mime@^1.2.11", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/less", - "author": { - "name": "Robert Kieffer", - "email": "robert@broofa.com", - "url": "http://github.com/broofa" - }, - "bin": { - "mime": "cli.js" - }, - "bugs": { - "url": "https://github.com/broofa/node-mime/issues" - }, - "contributors": [ - { - "name": "Benjamin Thomas", - "email": "benjamin@benjaminthomas.org", - "url": "http://github.com/bentomas" - } - ], - "dependencies": {}, - "description": "A comprehensive library for mime-type mapping", - "devDependencies": { - "mime-db": "^1.2.0" - }, - "directories": {}, - "dist": { - "shasum": "115f9e3b6b3daf2959983cb38f149a2d40eb5d53", - "tarball": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz" - }, - "gitHead": "1628f6e0187095009dcef4805c3a49706f137974", - "homepage": "https://github.com/broofa/node-mime", - "keywords": [ - "util", - "mime" - ], - "licenses": [ - { - "type": "MIT", - "url": "https://raw.github.com/broofa/node-mime/master/LICENSE" - } - ], - "main": "mime.js", - "maintainers": [ - { - "name": "broofa", - "email": "robert@broofa.com" - }, - { - "name": "bentomas", - "email": "benjamin@benjaminthomas.org" - } - ], - "name": "mime", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "url": "git+https://github.com/broofa/node-mime.git", - "type": "git" - }, - "scripts": { - "prepublish": "node build/build.js > types.json", - "test": "node build/test.js" - }, - "version": "1.3.4" -} diff --git a/node_modules/mime/types.json b/node_modules/mime/types.json deleted file mode 100644 index c674b1c..0000000 --- a/node_modules/mime/types.json +++ /dev/null @@ -1 +0,0 @@ -{"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mdp"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["dmg"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":["otf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["iso"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdownload":["exe","dll","com","bat","msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","wmz","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-nzb":["nzb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-research-info-systems":["ris"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp4":["mp4a","m4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-wav":["wav"],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"font/opentype":["otf"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-mrsid-image":["sid"],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/sgml":["sgml","sgm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["markdown","md","mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-pascal":["p","pas"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]} diff --git a/node_modules/minimatch/LICENSE b/node_modules/minimatch/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/minimatch/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/minimatch/README.md b/node_modules/minimatch/README.md deleted file mode 100644 index ad72b81..0000000 --- a/node_modules/minimatch/README.md +++ /dev/null @@ -1,209 +0,0 @@ -# minimatch - -A minimal matching utility. - -[![Build Status](https://secure.travis-ci.org/isaacs/minimatch.svg)](http://travis-ci.org/isaacs/minimatch) - - -This is the matching library used internally by npm. - -It works by converting glob expressions into JavaScript `RegExp` -objects. - -## Usage - -```javascript -var minimatch = require("minimatch") - -minimatch("bar.foo", "*.foo") // true! -minimatch("bar.foo", "*.bar") // false! -minimatch("bar.foo", "*.+(bar|foo)", { debug: true }) // true, and noisy! -``` - -## Features - -Supports these glob features: - -* Brace Expansion -* Extended glob matching -* "Globstar" `**` matching - -See: - -* `man sh` -* `man bash` -* `man 3 fnmatch` -* `man 5 gitignore` - -## Minimatch Class - -Create a minimatch object by instantiating the `minimatch.Minimatch` class. - -```javascript -var Minimatch = require("minimatch").Minimatch -var mm = new Minimatch(pattern, options) -``` - -### Properties - -* `pattern` The original pattern the minimatch object represents. -* `options` The options supplied to the constructor. -* `set` A 2-dimensional array of regexp or string expressions. - Each row in the - array corresponds to a brace-expanded pattern. Each item in the row - corresponds to a single path-part. For example, the pattern - `{a,b/c}/d` would expand to a set of patterns like: - - [ [ a, d ] - , [ b, c, d ] ] - - If a portion of the pattern doesn't have any "magic" in it - (that is, it's something like `"foo"` rather than `fo*o?`), then it - will be left as a string rather than converted to a regular - expression. - -* `regexp` Created by the `makeRe` method. A single regular expression - expressing the entire pattern. This is useful in cases where you wish - to use the pattern somewhat like `fnmatch(3)` with `FNM_PATH` enabled. -* `negate` True if the pattern is negated. -* `comment` True if the pattern is a comment. -* `empty` True if the pattern is `""`. - -### Methods - -* `makeRe` Generate the `regexp` member if necessary, and return it. - Will return `false` if the pattern is invalid. -* `match(fname)` Return true if the filename matches the pattern, or - false otherwise. -* `matchOne(fileArray, patternArray, partial)` Take a `/`-split - filename, and match it against a single row in the `regExpSet`. This - method is mainly for internal use, but is exposed so that it can be - used by a glob-walker that needs to avoid excessive filesystem calls. - -All other methods are internal, and will be called as necessary. - -### minimatch(path, pattern, options) - -Main export. Tests a path against the pattern using the options. - -```javascript -var isJS = minimatch(file, "*.js", { matchBase: true }) -``` - -### minimatch.filter(pattern, options) - -Returns a function that tests its -supplied argument, suitable for use with `Array.filter`. Example: - -```javascript -var javascripts = fileList.filter(minimatch.filter("*.js", {matchBase: true})) -``` - -### minimatch.match(list, pattern, options) - -Match against the list of -files, in the style of fnmatch or glob. If nothing is matched, and -options.nonull is set, then return a list containing the pattern itself. - -```javascript -var javascripts = minimatch.match(fileList, "*.js", {matchBase: true})) -``` - -### minimatch.makeRe(pattern, options) - -Make a regular expression object from the pattern. - -## Options - -All options are `false` by default. - -### debug - -Dump a ton of stuff to stderr. - -### nobrace - -Do not expand `{a,b}` and `{1..3}` brace sets. - -### noglobstar - -Disable `**` matching against multiple folder names. - -### dot - -Allow patterns to match filenames starting with a period, even if -the pattern does not explicitly have a period in that spot. - -Note that by default, `a/**/b` will **not** match `a/.d/b`, unless `dot` -is set. - -### noext - -Disable "extglob" style patterns like `+(a|b)`. - -### nocase - -Perform a case-insensitive match. - -### nonull - -When a match is not found by `minimatch.match`, return a list containing -the pattern itself if this option is set. When not set, an empty list -is returned if there are no matches. - -### matchBase - -If set, then patterns without slashes will be matched -against the basename of the path if it contains slashes. For example, -`a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. - -### nocomment - -Suppress the behavior of treating `#` at the start of a pattern as a -comment. - -### nonegate - -Suppress the behavior of treating a leading `!` character as negation. - -### flipNegate - -Returns from negate expressions the same as if they were not negated. -(Ie, true on a hit, false on a miss.) - - -## Comparisons to other fnmatch/glob implementations - -While strict compliance with the existing standards is a worthwhile -goal, some discrepancies exist between minimatch and other -implementations, and are intentional. - -If the pattern starts with a `!` character, then it is negated. Set the -`nonegate` flag to suppress this behavior, and treat leading `!` -characters normally. This is perhaps relevant if you wish to start the -pattern with a negative extglob pattern like `!(a|B)`. Multiple `!` -characters at the start of a pattern will negate the pattern multiple -times. - -If a pattern starts with `#`, then it is treated as a comment, and -will not match anything. Use `\#` to match a literal `#` at the -start of a line, or set the `nocomment` flag to suppress this behavior. - -The double-star character `**` is supported by default, unless the -`noglobstar` flag is set. This is supported in the manner of bsdglob -and bash 4.1, where `**` only has special significance if it is the only -thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but -`a/**b` will not. - -If an escaped pattern has no matches, and the `nonull` flag is set, -then minimatch.match returns the pattern as-provided, rather than -interpreting the character escapes. For example, -`minimatch.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than -`"*a?"`. This is akin to setting the `nullglob` option in bash, except -that it does not resolve escaped pattern characters. - -If brace expansion is not disabled, then it is performed before any -other interpretation of the glob pattern. Thus, a pattern like -`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded -**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are -checked for validity. Since those two are valid, matching proceeds. diff --git a/node_modules/minimatch/minimatch.js b/node_modules/minimatch/minimatch.js deleted file mode 100644 index 5b5f8cf..0000000 --- a/node_modules/minimatch/minimatch.js +++ /dev/null @@ -1,923 +0,0 @@ -module.exports = minimatch -minimatch.Minimatch = Minimatch - -var path = { sep: '/' } -try { - path = require('path') -} catch (er) {} - -var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} -var expand = require('brace-expansion') - -var plTypes = { - '!': { open: '(?:(?!(?:', close: '))[^/]*?)'}, - '?': { open: '(?:', close: ')?' }, - '+': { open: '(?:', close: ')+' }, - '*': { open: '(?:', close: ')*' }, - '@': { open: '(?:', close: ')' } -} - -// any single thing other than / -// don't need to escape / when using new RegExp() -var qmark = '[^/]' - -// * => any number of characters -var star = qmark + '*?' - -// ** when dots are allowed. Anything goes, except .. and . -// not (^ or / followed by one or two dots followed by $ or /), -// followed by anything, any number of times. -var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?' - -// not a ^ or / followed by a dot, -// followed by anything, any number of times. -var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?' - -// characters that need to be escaped in RegExp. -var reSpecials = charSet('().*{}+?[]^$\\!') - -// "abc" -> { a:true, b:true, c:true } -function charSet (s) { - return s.split('').reduce(function (set, c) { - set[c] = true - return set - }, {}) -} - -// normalizes slashes. -var slashSplit = /\/+/ - -minimatch.filter = filter -function filter (pattern, options) { - options = options || {} - return function (p, i, list) { - return minimatch(p, pattern, options) - } -} - -function ext (a, b) { - a = a || {} - b = b || {} - var t = {} - Object.keys(b).forEach(function (k) { - t[k] = b[k] - }) - Object.keys(a).forEach(function (k) { - t[k] = a[k] - }) - return t -} - -minimatch.defaults = function (def) { - if (!def || !Object.keys(def).length) return minimatch - - var orig = minimatch - - var m = function minimatch (p, pattern, options) { - return orig.minimatch(p, pattern, ext(def, options)) - } - - m.Minimatch = function Minimatch (pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)) - } - - return m -} - -Minimatch.defaults = function (def) { - if (!def || !Object.keys(def).length) return Minimatch - return minimatch.defaults(def).Minimatch -} - -function minimatch (p, pattern, options) { - if (typeof pattern !== 'string') { - throw new TypeError('glob pattern string required') - } - - if (!options) options = {} - - // shortcut: comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - return false - } - - // "" only matches "" - if (pattern.trim() === '') return p === '' - - return new Minimatch(pattern, options).match(p) -} - -function Minimatch (pattern, options) { - if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options) - } - - if (typeof pattern !== 'string') { - throw new TypeError('glob pattern string required') - } - - if (!options) options = {} - pattern = pattern.trim() - - // windows support: need to use /, not \ - if (path.sep !== '/') { - pattern = pattern.split(path.sep).join('/') - } - - this.options = options - this.set = [] - this.pattern = pattern - this.regexp = null - this.negate = false - this.comment = false - this.empty = false - - // make the set of regexps etc. - this.make() -} - -Minimatch.prototype.debug = function () {} - -Minimatch.prototype.make = make -function make () { - // don't do it more than once. - if (this._made) return - - var pattern = this.pattern - var options = this.options - - // empty patterns and comments match nothing. - if (!options.nocomment && pattern.charAt(0) === '#') { - this.comment = true - return - } - if (!pattern) { - this.empty = true - return - } - - // step 1: figure out negation, etc. - this.parseNegate() - - // step 2: expand braces - var set = this.globSet = this.braceExpand() - - if (options.debug) this.debug = console.error - - this.debug(this.pattern, set) - - // step 3: now we have a set, so turn each one into a series of path-portion - // matching patterns. - // These will be regexps, except in the case of "**", which is - // set to the GLOBSTAR object for globstar behavior, - // and will not contain any / characters - set = this.globParts = set.map(function (s) { - return s.split(slashSplit) - }) - - this.debug(this.pattern, set) - - // glob --> regexps - set = set.map(function (s, si, set) { - return s.map(this.parse, this) - }, this) - - this.debug(this.pattern, set) - - // filter out everything that didn't compile properly. - set = set.filter(function (s) { - return s.indexOf(false) === -1 - }) - - this.debug(this.pattern, set) - - this.set = set -} - -Minimatch.prototype.parseNegate = parseNegate -function parseNegate () { - var pattern = this.pattern - var negate = false - var options = this.options - var negateOffset = 0 - - if (options.nonegate) return - - for (var i = 0, l = pattern.length - ; i < l && pattern.charAt(i) === '!' - ; i++) { - negate = !negate - negateOffset++ - } - - if (negateOffset) this.pattern = pattern.substr(negateOffset) - this.negate = negate -} - -// Brace expansion: -// a{b,c}d -> abd acd -// a{b,}c -> abc ac -// a{0..3}d -> a0d a1d a2d a3d -// a{b,c{d,e}f}g -> abg acdfg acefg -// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg -// -// Invalid sets are not expanded. -// a{2..}b -> a{2..}b -// a{b}c -> a{b}c -minimatch.braceExpand = function (pattern, options) { - return braceExpand(pattern, options) -} - -Minimatch.prototype.braceExpand = braceExpand - -function braceExpand (pattern, options) { - if (!options) { - if (this instanceof Minimatch) { - options = this.options - } else { - options = {} - } - } - - pattern = typeof pattern === 'undefined' - ? this.pattern : pattern - - if (typeof pattern === 'undefined') { - throw new TypeError('undefined pattern') - } - - if (options.nobrace || - !pattern.match(/\{.*\}/)) { - // shortcut. no need to expand. - return [pattern] - } - - return expand(pattern) -} - -// parse a component of the expanded set. -// At this point, no pattern may contain "/" in it -// so we're going to return a 2d array, where each entry is the full -// pattern, split on '/', and then turned into a regular expression. -// A regexp is made at the end which joins each array with an -// escaped /, and another full one which joins each regexp with |. -// -// Following the lead of Bash 4.1, note that "**" only has special meaning -// when it is the *only* thing in a path portion. Otherwise, any series -// of * is equivalent to a single *. Globstar behavior is enabled by -// default, and can be disabled by setting options.noglobstar. -Minimatch.prototype.parse = parse -var SUBPARSE = {} -function parse (pattern, isSub) { - if (pattern.length > 1024 * 64) { - throw new TypeError('pattern is too long') - } - - var options = this.options - - // shortcuts - if (!options.noglobstar && pattern === '**') return GLOBSTAR - if (pattern === '') return '' - - var re = '' - var hasMagic = !!options.nocase - var escaping = false - // ? => one single character - var patternListStack = [] - var negativeLists = [] - var stateChar - var inClass = false - var reClassStart = -1 - var classStart = -1 - // . and .. never match anything that doesn't start with ., - // even when options.dot is set. - var patternStart = pattern.charAt(0) === '.' ? '' // anything - // not (start or / followed by . or .. followed by / or end) - : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))' - : '(?!\\.)' - var self = this - - function clearStateChar () { - if (stateChar) { - // we had some state-tracking character - // that wasn't consumed by this pass. - switch (stateChar) { - case '*': - re += star - hasMagic = true - break - case '?': - re += qmark - hasMagic = true - break - default: - re += '\\' + stateChar - break - } - self.debug('clearStateChar %j %j', stateChar, re) - stateChar = false - } - } - - for (var i = 0, len = pattern.length, c - ; (i < len) && (c = pattern.charAt(i)) - ; i++) { - this.debug('%s\t%s %s %j', pattern, i, re, c) - - // skip over any that are escaped. - if (escaping && reSpecials[c]) { - re += '\\' + c - escaping = false - continue - } - - switch (c) { - case '/': - // completely not allowed, even escaped. - // Should already be path-split by now. - return false - - case '\\': - clearStateChar() - escaping = true - continue - - // the various stateChar values - // for the "extglob" stuff. - case '?': - case '*': - case '+': - case '@': - case '!': - this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c) - - // all of those are literals inside a class, except that - // the glob [!a] means [^a] in regexp - if (inClass) { - this.debug(' in class') - if (c === '!' && i === classStart + 1) c = '^' - re += c - continue - } - - // if we already have a stateChar, then it means - // that there was something like ** or +? in there. - // Handle the stateChar, then proceed with this one. - self.debug('call clearStateChar %j', stateChar) - clearStateChar() - stateChar = c - // if extglob is disabled, then +(asdf|foo) isn't a thing. - // just clear the statechar *now*, rather than even diving into - // the patternList stuff. - if (options.noext) clearStateChar() - continue - - case '(': - if (inClass) { - re += '(' - continue - } - - if (!stateChar) { - re += '\\(' - continue - } - - patternListStack.push({ - type: stateChar, - start: i - 1, - reStart: re.length, - open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }) - // negation is (?:(?!js)[^/]*) - re += stateChar === '!' ? '(?:(?!(?:' : '(?:' - this.debug('plType %j %j', stateChar, re) - stateChar = false - continue - - case ')': - if (inClass || !patternListStack.length) { - re += '\\)' - continue - } - - clearStateChar() - hasMagic = true - var pl = patternListStack.pop() - // negation is (?:(?!js)[^/]*) - // The others are (?:) - re += pl.close - if (pl.type === '!') { - negativeLists.push(pl) - } - pl.reEnd = re.length - continue - - case '|': - if (inClass || !patternListStack.length || escaping) { - re += '\\|' - escaping = false - continue - } - - clearStateChar() - re += '|' - continue - - // these are mostly the same in regexp and glob - case '[': - // swallow any state-tracking char before the [ - clearStateChar() - - if (inClass) { - re += '\\' + c - continue - } - - inClass = true - classStart = i - reClassStart = re.length - re += c - continue - - case ']': - // a right bracket shall lose its special - // meaning and represent itself in - // a bracket expression if it occurs - // first in the list. -- POSIX.2 2.8.3.2 - if (i === classStart + 1 || !inClass) { - re += '\\' + c - escaping = false - continue - } - - // handle the case where we left a class open. - // "[z-a]" is valid, equivalent to "\[z-a\]" - if (inClass) { - // split where the last [ was, make sure we don't have - // an invalid re. if so, re-walk the contents of the - // would-be class to re-translate any characters that - // were passed through as-is - // TODO: It would probably be faster to determine this - // without a try/catch and a new RegExp, but it's tricky - // to do safely. For now, this is safe and works. - var cs = pattern.substring(classStart + 1, i) - try { - RegExp('[' + cs + ']') - } catch (er) { - // not a valid class! - var sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' - hasMagic = hasMagic || sp[1] - inClass = false - continue - } - } - - // finish up the class. - hasMagic = true - inClass = false - re += c - continue - - default: - // swallow any state char that wasn't consumed - clearStateChar() - - if (escaping) { - // no need - escaping = false - } else if (reSpecials[c] - && !(c === '^' && inClass)) { - re += '\\' - } - - re += c - - } // switch - } // for - - // handle the case where we left a class open. - // "[abc" is valid, equivalent to "\[abc" - if (inClass) { - // split where the last [ was, and escape it - // this is a huge pita. We now have to re-walk - // the contents of the would-be class to re-translate - // any characters that were passed through as-is - cs = pattern.substr(classStart + 1) - sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] - hasMagic = hasMagic || sp[1] - } - - // handle the case where we had a +( thing at the *end* - // of the pattern. - // each pattern list stack adds 3 chars, and we need to go through - // and escape any | chars that were passed through as-is for the regexp. - // Go through and escape them, taking care not to double-escape any - // | chars that were already escaped. - for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length) - this.debug('setting tail', re, pl) - // maybe some even number of \, then maybe 1 \, followed by a | - tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) { - if (!$2) { - // the | isn't already escaped, so escape it. - $2 = '\\' - } - - // need to escape all those slashes *again*, without escaping the - // one that we need for escaping the | character. As it works out, - // escaping an even number of slashes can be done by simply repeating - // it exactly after itself. That's why this trick works. - // - // I am sorry that you have to see this. - return $1 + $1 + $2 + '|' - }) - - this.debug('tail=%j\n %s', tail, tail, pl, re) - var t = pl.type === '*' ? star - : pl.type === '?' ? qmark - : '\\' + pl.type - - hasMagic = true - re = re.slice(0, pl.reStart) + t + '\\(' + tail - } - - // handle trailing things that only matter at the very end. - clearStateChar() - if (escaping) { - // trailing \\ - re += '\\\\' - } - - // only need to apply the nodot start if the re starts with - // something that could conceivably capture a dot - var addPatternStart = false - switch (re.charAt(0)) { - case '.': - case '[': - case '(': addPatternStart = true - } - - // Hack to work around lack of negative lookbehind in JS - // A pattern like: *.!(x).!(y|z) needs to ensure that a name - // like 'a.xyz.yz' doesn't match. So, the first negative - // lookahead, has to look ALL the way ahead, to the end of - // the pattern. - for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n] - - var nlBefore = re.slice(0, nl.reStart) - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8) - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd) - var nlAfter = re.slice(nl.reEnd) - - nlLast += nlAfter - - // Handle nested stuff like *(*.js|!(*.json)), where open parens - // mean that we should *not* include the ) in the bit that is considered - // "after" the negated section. - var openParensBefore = nlBefore.split('(').length - 1 - var cleanAfter = nlAfter - for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, '') - } - nlAfter = cleanAfter - - var dollar = '' - if (nlAfter === '' && isSub !== SUBPARSE) { - dollar = '$' - } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast - re = newRe - } - - // if the re is not "" at this point, then we need to make sure - // it doesn't match against an empty path part. - // Otherwise a/* will match a/, which it should not. - if (re !== '' && hasMagic) { - re = '(?=.)' + re - } - - if (addPatternStart) { - re = patternStart + re - } - - // parsing just a piece of a larger pattern. - if (isSub === SUBPARSE) { - return [re, hasMagic] - } - - // skip the regexp for non-magical patterns - // unescape anything in it, though, so that it'll be - // an exact match against a file etc. - if (!hasMagic) { - return globUnescape(pattern) - } - - var flags = options.nocase ? 'i' : '' - try { - var regExp = new RegExp('^' + re + '$', flags) - } catch (er) { - // If it was an invalid regular expression, then it can't match - // anything. This trick looks for a character after the end of - // the string, which is of course impossible, except in multi-line - // mode, but it's not a /m regex. - return new RegExp('$.') - } - - regExp._glob = pattern - regExp._src = re - - return regExp -} - -minimatch.makeRe = function (pattern, options) { - return new Minimatch(pattern, options || {}).makeRe() -} - -Minimatch.prototype.makeRe = makeRe -function makeRe () { - if (this.regexp || this.regexp === false) return this.regexp - - // at this point, this.set is a 2d array of partial - // pattern strings, or "**". - // - // It's better to use .match(). This function shouldn't - // be used, really, but it's pretty convenient sometimes, - // when you just want to work with a regex. - var set = this.set - - if (!set.length) { - this.regexp = false - return this.regexp - } - var options = this.options - - var twoStar = options.noglobstar ? star - : options.dot ? twoStarDot - : twoStarNoDot - var flags = options.nocase ? 'i' : '' - - var re = set.map(function (pattern) { - return pattern.map(function (p) { - return (p === GLOBSTAR) ? twoStar - : (typeof p === 'string') ? regExpEscape(p) - : p._src - }).join('\\\/') - }).join('|') - - // must match entire pattern - // ending in a * or ** will make it less strict. - re = '^(?:' + re + ')$' - - // can match anything, as long as it's not this. - if (this.negate) re = '^(?!' + re + ').*$' - - try { - this.regexp = new RegExp(re, flags) - } catch (ex) { - this.regexp = false - } - return this.regexp -} - -minimatch.match = function (list, pattern, options) { - options = options || {} - var mm = new Minimatch(pattern, options) - list = list.filter(function (f) { - return mm.match(f) - }) - if (mm.options.nonull && !list.length) { - list.push(pattern) - } - return list -} - -Minimatch.prototype.match = match -function match (f, partial) { - this.debug('match', f, this.pattern) - // short-circuit in the case of busted things. - // comments, etc. - if (this.comment) return false - if (this.empty) return f === '' - - if (f === '/' && partial) return true - - var options = this.options - - // windows: need to use /, not \ - if (path.sep !== '/') { - f = f.split(path.sep).join('/') - } - - // treat the test path as a set of pathparts. - f = f.split(slashSplit) - this.debug(this.pattern, 'split', f) - - // just ONE of the pattern sets in this.set needs to match - // in order for it to be valid. If negating, then just one - // match means that we have failed. - // Either way, return on the first hit. - - var set = this.set - this.debug(this.pattern, 'set', set) - - // Find the basename of the path by looking for the last non-empty segment - var filename - var i - for (i = f.length - 1; i >= 0; i--) { - filename = f[i] - if (filename) break - } - - for (i = 0; i < set.length; i++) { - var pattern = set[i] - var file = f - if (options.matchBase && pattern.length === 1) { - file = [filename] - } - var hit = this.matchOne(file, pattern, partial) - if (hit) { - if (options.flipNegate) return true - return !this.negate - } - } - - // didn't get any hits. this is success if it's a negative - // pattern, failure otherwise. - if (options.flipNegate) return false - return this.negate -} - -// set partial to true to test if, for example, -// "/a/b" matches the start of "/*/b/*/d" -// Partial means, if you run out of file before you run -// out of pattern, then that's fine, as long as all -// the parts match. -Minimatch.prototype.matchOne = function (file, pattern, partial) { - var options = this.options - - this.debug('matchOne', - { 'this': this, file: file, pattern: pattern }) - - this.debug('matchOne', file.length, pattern.length) - - for (var fi = 0, - pi = 0, - fl = file.length, - pl = pattern.length - ; (fi < fl) && (pi < pl) - ; fi++, pi++) { - this.debug('matchOne loop') - var p = pattern[pi] - var f = file[fi] - - this.debug(pattern, p, f) - - // should be impossible. - // some invalid regexp stuff in the set. - if (p === false) return false - - if (p === GLOBSTAR) { - this.debug('GLOBSTAR', [pattern, p, f]) - - // "**" - // a/**/b/**/c would match the following: - // a/b/x/y/z/c - // a/x/y/z/b/c - // a/b/x/b/x/c - // a/b/c - // To do this, take the rest of the pattern after - // the **, and see if it would match the file remainder. - // If so, return success. - // If not, the ** "swallows" a segment, and try again. - // This is recursively awful. - // - // a/**/b/**/c matching a/b/x/y/z/c - // - a matches a - // - doublestar - // - matchOne(b/x/y/z/c, b/**/c) - // - b matches b - // - doublestar - // - matchOne(x/y/z/c, c) -> no - // - matchOne(y/z/c, c) -> no - // - matchOne(z/c, c) -> no - // - matchOne(c, c) yes, hit - var fr = fi - var pr = pi + 1 - if (pr === pl) { - this.debug('** at the end') - // a ** at the end will just swallow the rest. - // We have found a match. - // however, it will not swallow /.x, unless - // options.dot is set. - // . and .. are *never* matched by **, for explosively - // exponential reasons. - for (; fi < fl; fi++) { - if (file[fi] === '.' || file[fi] === '..' || - (!options.dot && file[fi].charAt(0) === '.')) return false - } - return true - } - - // ok, let's see if we can swallow whatever we can. - while (fr < fl) { - var swallowee = file[fr] - - this.debug('\nglobstar while', file, fr, pattern, pr, swallowee) - - // XXX remove this slice. Just pass the start index. - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug('globstar found match!', fr, fl, swallowee) - // found a match. - return true - } else { - // can't swallow "." or ".." ever. - // can only swallow ".foo" when explicitly asked. - if (swallowee === '.' || swallowee === '..' || - (!options.dot && swallowee.charAt(0) === '.')) { - this.debug('dot detected!', file, fr, pattern, pr) - break - } - - // ** swallows a segment, and continue. - this.debug('globstar swallow a segment, and continue') - fr++ - } - } - - // no match was found. - // However, in partial mode, we can't say this is necessarily over. - // If there's more *pattern* left, then - if (partial) { - // ran out of file - this.debug('\n>>> no match, partial?', file, fr, pattern, pr) - if (fr === fl) return true - } - return false - } - - // something other than ** - // non-magic patterns just have to match exactly - // patterns with magic have been turned into regexps. - var hit - if (typeof p === 'string') { - if (options.nocase) { - hit = f.toLowerCase() === p.toLowerCase() - } else { - hit = f === p - } - this.debug('string match', p, f, hit) - } else { - hit = f.match(p) - this.debug('pattern match', p, f, hit) - } - - if (!hit) return false - } - - // Note: ending in / means that we'll get a final "" - // at the end of the pattern. This can only match a - // corresponding "" at the end of the file. - // If the file ends in /, then it can only match a - // a pattern that ends in /, unless the pattern just - // doesn't have any more for it. But, a/b/ should *not* - // match "a/b/*", even though "" matches against the - // [^/]*? pattern, except in partial mode, where it might - // simply not be reached yet. - // However, a/b/ should still satisfy a/* - - // now either we fell off the end of the pattern, or we're done. - if (fi === fl && pi === pl) { - // ran out of pattern and filename at the same time. - // an exact hit! - return true - } else if (fi === fl) { - // ran out of file, but still had pattern left. - // this is ok if we're doing the match as part of - // a glob fs traversal. - return partial - } else if (pi === pl) { - // ran out of pattern, still have file left. - // this is only acceptable if we're on the very last - // empty segment of a file with a trailing slash. - // a/* should match a/b/ - var emptyFileEnd = (fi === fl - 1) && (file[fi] === '') - return emptyFileEnd - } - - // should be unreachable. - throw new Error('wtf?') -} - -// replace stuff like \* with * -function globUnescape (s) { - return s.replace(/\\(.)/g, '$1') -} - -function regExpEscape (s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') -} diff --git a/node_modules/minimatch/package.json b/node_modules/minimatch/package.json deleted file mode 100644 index 7d37f78..0000000 --- a/node_modules/minimatch/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "minimatch@^3.0.2", - "scope": null, - "escapedName": "minimatch", - "name": "minimatch", - "rawSpec": "^3.0.2", - "spec": ">=3.0.2 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/glob" - ] - ], - "_from": "minimatch@>=3.0.2 <4.0.0", - "_id": "minimatch@3.0.3", - "_inCache": true, - "_location": "/minimatch", - "_nodeVersion": "4.4.4", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/minimatch-3.0.3.tgz_1470678322731_0.1892083385027945" - }, - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.10.6", - "_phantomChildren": {}, - "_requested": { - "raw": "minimatch@^3.0.2", - "scope": null, - "escapedName": "minimatch", - "name": "minimatch", - "rawSpec": "^3.0.2", - "spec": ">=3.0.2 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/glob", - "/gulp-match", - "/readdirp", - "/rework-import/glob" - ], - "_resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz", - "_shasum": "2a4e4090b96b2db06a9d7df01055a62a77c9b774", - "_shrinkwrap": null, - "_spec": "minimatch@^3.0.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/glob", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me" - }, - "bugs": { - "url": "https://github.com/isaacs/minimatch/issues" - }, - "dependencies": { - "brace-expansion": "^1.0.0" - }, - "description": "a glob matcher in javascript", - "devDependencies": { - "standard": "^3.7.2", - "tap": "^5.6.0" - }, - "directories": {}, - "dist": { - "shasum": "2a4e4090b96b2db06a9d7df01055a62a77c9b774", - "tarball": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz" - }, - "engines": { - "node": "*" - }, - "files": [ - "minimatch.js" - ], - "gitHead": "eed89491bd4a4e6bc463aac0dfb5c29ef0d1dc13", - "homepage": "https://github.com/isaacs/minimatch#readme", - "license": "ISC", - "main": "minimatch.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "minimatch", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/minimatch.git" - }, - "scripts": { - "posttest": "standard minimatch.js test/*.js", - "test": "tap test/*.js" - }, - "version": "3.0.3" -} diff --git a/node_modules/minimist/.travis.yml b/node_modules/minimist/.travis.yml deleted file mode 100644 index 74c57bf..0000000 --- a/node_modules/minimist/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" - - "0.12" - - "iojs" -before_install: - - npm install -g npm@~1.4.6 diff --git a/node_modules/minimist/LICENSE b/node_modules/minimist/LICENSE deleted file mode 100644 index ee27ba4..0000000 --- a/node_modules/minimist/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/minimist/example/parse.js b/node_modules/minimist/example/parse.js deleted file mode 100644 index abff3e8..0000000 --- a/node_modules/minimist/example/parse.js +++ /dev/null @@ -1,2 +0,0 @@ -var argv = require('../')(process.argv.slice(2)); -console.dir(argv); diff --git a/node_modules/minimist/index.js b/node_modules/minimist/index.js deleted file mode 100644 index 6a0559d..0000000 --- a/node_modules/minimist/index.js +++ /dev/null @@ -1,236 +0,0 @@ -module.exports = function (args, opts) { - if (!opts) opts = {}; - - var flags = { bools : {}, strings : {}, unknownFn: null }; - - if (typeof opts['unknown'] === 'function') { - flags.unknownFn = opts['unknown']; - } - - if (typeof opts['boolean'] === 'boolean' && opts['boolean']) { - flags.allBools = true; - } else { - [].concat(opts['boolean']).filter(Boolean).forEach(function (key) { - flags.bools[key] = true; - }); - } - - var aliases = {}; - Object.keys(opts.alias || {}).forEach(function (key) { - aliases[key] = [].concat(opts.alias[key]); - aliases[key].forEach(function (x) { - aliases[x] = [key].concat(aliases[key].filter(function (y) { - return x !== y; - })); - }); - }); - - [].concat(opts.string).filter(Boolean).forEach(function (key) { - flags.strings[key] = true; - if (aliases[key]) { - flags.strings[aliases[key]] = true; - } - }); - - var defaults = opts['default'] || {}; - - var argv = { _ : [] }; - Object.keys(flags.bools).forEach(function (key) { - setArg(key, defaults[key] === undefined ? false : defaults[key]); - }); - - var notFlags = []; - - if (args.indexOf('--') !== -1) { - notFlags = args.slice(args.indexOf('--')+1); - args = args.slice(0, args.indexOf('--')); - } - - function argDefined(key, arg) { - return (flags.allBools && /^--[^=]+$/.test(arg)) || - flags.strings[key] || flags.bools[key] || aliases[key]; - } - - function setArg (key, val, arg) { - if (arg && flags.unknownFn && !argDefined(key, arg)) { - if (flags.unknownFn(arg) === false) return; - } - - var value = !flags.strings[key] && isNumber(val) - ? Number(val) : val - ; - setKey(argv, key.split('.'), value); - - (aliases[key] || []).forEach(function (x) { - setKey(argv, x.split('.'), value); - }); - } - - function setKey (obj, keys, value) { - var o = obj; - keys.slice(0,-1).forEach(function (key) { - if (o[key] === undefined) o[key] = {}; - o = o[key]; - }); - - var key = keys[keys.length - 1]; - if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') { - o[key] = value; - } - else if (Array.isArray(o[key])) { - o[key].push(value); - } - else { - o[key] = [ o[key], value ]; - } - } - - function aliasIsBoolean(key) { - return aliases[key].some(function (x) { - return flags.bools[x]; - }); - } - - for (var i = 0; i < args.length; i++) { - var arg = args[i]; - - if (/^--.+=/.test(arg)) { - // Using [\s\S] instead of . because js doesn't support the - // 'dotall' regex modifier. See: - // http://stackoverflow.com/a/1068308/13216 - var m = arg.match(/^--([^=]+)=([\s\S]*)$/); - var key = m[1]; - var value = m[2]; - if (flags.bools[key]) { - value = value !== 'false'; - } - setArg(key, value, arg); - } - else if (/^--no-.+/.test(arg)) { - var key = arg.match(/^--no-(.+)/)[1]; - setArg(key, false, arg); - } - else if (/^--.+/.test(arg)) { - var key = arg.match(/^--(.+)/)[1]; - var next = args[i + 1]; - if (next !== undefined && !/^-/.test(next) - && !flags.bools[key] - && !flags.allBools - && (aliases[key] ? !aliasIsBoolean(key) : true)) { - setArg(key, next, arg); - i++; - } - else if (/^(true|false)$/.test(next)) { - setArg(key, next === 'true', arg); - i++; - } - else { - setArg(key, flags.strings[key] ? '' : true, arg); - } - } - else if (/^-[^-]+/.test(arg)) { - var letters = arg.slice(1,-1).split(''); - - var broken = false; - for (var j = 0; j < letters.length; j++) { - var next = arg.slice(j+2); - - if (next === '-') { - setArg(letters[j], next, arg) - continue; - } - - if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) { - setArg(letters[j], next.split('=')[1], arg); - broken = true; - break; - } - - if (/[A-Za-z]/.test(letters[j]) - && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) { - setArg(letters[j], next, arg); - broken = true; - break; - } - - if (letters[j+1] && letters[j+1].match(/\W/)) { - setArg(letters[j], arg.slice(j+2), arg); - broken = true; - break; - } - else { - setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg); - } - } - - var key = arg.slice(-1)[0]; - if (!broken && key !== '-') { - if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1]) - && !flags.bools[key] - && (aliases[key] ? !aliasIsBoolean(key) : true)) { - setArg(key, args[i+1], arg); - i++; - } - else if (args[i+1] && /true|false/.test(args[i+1])) { - setArg(key, args[i+1] === 'true', arg); - i++; - } - else { - setArg(key, flags.strings[key] ? '' : true, arg); - } - } - } - else { - if (!flags.unknownFn || flags.unknownFn(arg) !== false) { - argv._.push( - flags.strings['_'] || !isNumber(arg) ? arg : Number(arg) - ); - } - if (opts.stopEarly) { - argv._.push.apply(argv._, args.slice(i + 1)); - break; - } - } - } - - Object.keys(defaults).forEach(function (key) { - if (!hasKey(argv, key.split('.'))) { - setKey(argv, key.split('.'), defaults[key]); - - (aliases[key] || []).forEach(function (x) { - setKey(argv, x.split('.'), defaults[key]); - }); - } - }); - - if (opts['--']) { - argv['--'] = new Array(); - notFlags.forEach(function(key) { - argv['--'].push(key); - }); - } - else { - notFlags.forEach(function(key) { - argv._.push(key); - }); - } - - return argv; -}; - -function hasKey (obj, keys) { - var o = obj; - keys.slice(0,-1).forEach(function (key) { - o = (o[key] || {}); - }); - - var key = keys[keys.length - 1]; - return key in o; -} - -function isNumber (x) { - if (typeof x === 'number') return true; - if (/^0x[0-9a-f]+$/i.test(x)) return true; - return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x); -} - diff --git a/node_modules/minimist/package.json b/node_modules/minimist/package.json deleted file mode 100644 index 341bd63..0000000 --- a/node_modules/minimist/package.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "minimist@^1.1.0", - "scope": null, - "escapedName": "minimist", - "name": "minimist", - "rawSpec": "^1.1.0", - "spec": ">=1.1.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp" - ] - ], - "_from": "minimist@>=1.1.0 <2.0.0", - "_id": "minimist@1.2.0", - "_inCache": true, - "_location": "/minimist", - "_nodeVersion": "2.4.0", - "_npmUser": { - "name": "substack", - "email": "substack@gmail.com" - }, - "_npmVersion": "3.2.2", - "_phantomChildren": {}, - "_requested": { - "raw": "minimist@^1.1.0", - "scope": null, - "escapedName": "minimist", - "name": "minimist", - "rawSpec": "^1.1.0", - "spec": ">=1.1.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/detect-indent", - "/gulp", - "/gulp-util", - "/meow", - "/node-notifier" - ], - "_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "_shasum": "a35008b20f41383eec1fb914f4cd5df79a264284", - "_shrinkwrap": null, - "_spec": "minimist@^1.1.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/minimist/issues" - }, - "dependencies": {}, - "description": "parse argument options", - "devDependencies": { - "covert": "^1.0.0", - "tap": "~0.4.0", - "tape": "^3.5.0" - }, - "directories": {}, - "dist": { - "shasum": "a35008b20f41383eec1fb914f4cd5df79a264284", - "tarball": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz" - }, - "gitHead": "dc624482fcfec5bc669c68cdb861f00573ed4e64", - "homepage": "https://github.com/substack/minimist", - "keywords": [ - "argv", - "getopt", - "parser", - "optimist" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "substack", - "email": "mail@substack.net" - } - ], - "name": "minimist", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/substack/minimist.git" - }, - "scripts": { - "coverage": "covert test/*.js", - "test": "tap test/*.js" - }, - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/6..latest", - "ff/5", - "firefox/latest", - "chrome/10", - "chrome/latest", - "safari/5.1", - "safari/latest", - "opera/12" - ] - }, - "version": "1.2.0" -} diff --git a/node_modules/minimist/readme.markdown b/node_modules/minimist/readme.markdown deleted file mode 100644 index 30a74cf..0000000 --- a/node_modules/minimist/readme.markdown +++ /dev/null @@ -1,91 +0,0 @@ -# minimist - -parse argument options - -This module is the guts of optimist's argument parser without all the -fanciful decoration. - -[![browser support](https://ci.testling.com/substack/minimist.png)](http://ci.testling.com/substack/minimist) - -[![build status](https://secure.travis-ci.org/substack/minimist.png)](http://travis-ci.org/substack/minimist) - -# example - -``` js -var argv = require('minimist')(process.argv.slice(2)); -console.dir(argv); -``` - -``` -$ node example/parse.js -a beep -b boop -{ _: [], a: 'beep', b: 'boop' } -``` - -``` -$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz -{ _: [ 'foo', 'bar', 'baz' ], - x: 3, - y: 4, - n: 5, - a: true, - b: true, - c: true, - beep: 'boop' } -``` - -# methods - -``` js -var parseArgs = require('minimist') -``` - -## var argv = parseArgs(args, opts={}) - -Return an argument object `argv` populated with the array arguments from `args`. - -`argv._` contains all the arguments that didn't have an option associated with -them. - -Numeric-looking arguments will be returned as numbers unless `opts.string` or -`opts.boolean` is set for that argument name. - -Any arguments after `'--'` will not be parsed and will end up in `argv._`. - -options can be: - -* `opts.string` - a string or array of strings argument names to always treat as -strings -* `opts.boolean` - a boolean, string or array of strings to always treat as -booleans. if `true` will treat all double hyphenated arguments without equal signs -as boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`) -* `opts.alias` - an object mapping string names to strings or arrays of string -argument names to use as aliases -* `opts.default` - an object mapping string argument names to default values -* `opts.stopEarly` - when true, populate `argv._` with everything after the -first non-option -* `opts['--']` - when true, populate `argv._` with everything before the `--` -and `argv['--']` with everything after the `--`. Here's an example: -* `opts.unknown` - a function which is invoked with a command line parameter not -defined in the `opts` configuration object. If the function returns `false`, the -unknown option is not added to `argv`. - -``` -> require('./')('one two three -- four five --six'.split(' '), { '--': true }) -{ _: [ 'one', 'two', 'three' ], - '--': [ 'four', 'five', '--six' ] } -``` - -Note that with `opts['--']` set, parsing for arguments still stops after the -`--`. - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install minimist -``` - -# license - -MIT diff --git a/node_modules/minimist/test/all_bool.js b/node_modules/minimist/test/all_bool.js deleted file mode 100644 index ac83548..0000000 --- a/node_modules/minimist/test/all_bool.js +++ /dev/null @@ -1,32 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('flag boolean true (default all --args to boolean)', function (t) { - var argv = parse(['moo', '--honk', 'cow'], { - boolean: true - }); - - t.deepEqual(argv, { - honk: true, - _: ['moo', 'cow'] - }); - - t.deepEqual(typeof argv.honk, 'boolean'); - t.end(); -}); - -test('flag boolean true only affects double hyphen arguments without equals signs', function (t) { - var argv = parse(['moo', '--honk', 'cow', '-p', '55', '--tacos=good'], { - boolean: true - }); - - t.deepEqual(argv, { - honk: true, - tacos: 'good', - p: 55, - _: ['moo', 'cow'] - }); - - t.deepEqual(typeof argv.honk, 'boolean'); - t.end(); -}); diff --git a/node_modules/minimist/test/bool.js b/node_modules/minimist/test/bool.js deleted file mode 100644 index 14b0717..0000000 --- a/node_modules/minimist/test/bool.js +++ /dev/null @@ -1,166 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('flag boolean default false', function (t) { - var argv = parse(['moo'], { - boolean: ['t', 'verbose'], - default: { verbose: false, t: false } - }); - - t.deepEqual(argv, { - verbose: false, - t: false, - _: ['moo'] - }); - - t.deepEqual(typeof argv.verbose, 'boolean'); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); - -}); - -test('boolean groups', function (t) { - var argv = parse([ '-x', '-z', 'one', 'two', 'three' ], { - boolean: ['x','y','z'] - }); - - t.deepEqual(argv, { - x : true, - y : false, - z : true, - _ : [ 'one', 'two', 'three' ] - }); - - t.deepEqual(typeof argv.x, 'boolean'); - t.deepEqual(typeof argv.y, 'boolean'); - t.deepEqual(typeof argv.z, 'boolean'); - t.end(); -}); -test('boolean and alias with chainable api', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var opts = { - herp: { alias: 'h', boolean: true } - }; - var aliasedArgv = parse(aliased, { - boolean: 'herp', - alias: { h: 'herp' } - }); - var propertyArgv = parse(regular, { - boolean: 'herp', - alias: { h: 'herp' } - }); - var expected = { - herp: true, - h: true, - '_': [ 'derp' ] - }; - - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -test('boolean and alias with options hash', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var opts = { - alias: { 'h': 'herp' }, - boolean: 'herp' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var expected = { - herp: true, - h: true, - '_': [ 'derp' ] - }; - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -test('boolean and alias array with options hash', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var alt = [ '--harp', 'derp' ]; - var opts = { - alias: { 'h': ['herp', 'harp'] }, - boolean: 'h' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var altPropertyArgv = parse(alt, opts); - var expected = { - harp: true, - herp: true, - h: true, - '_': [ 'derp' ] - }; - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.same(altPropertyArgv, expected); - t.end(); -}); - -test('boolean and alias using explicit true', function (t) { - var aliased = [ '-h', 'true' ]; - var regular = [ '--herp', 'true' ]; - var opts = { - alias: { h: 'herp' }, - boolean: 'h' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var expected = { - herp: true, - h: true, - '_': [ ] - }; - - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -// regression, see https://github.com/substack/node-optimist/issues/71 -test('boolean and --x=true', function(t) { - var parsed = parse(['--boool', '--other=true'], { - boolean: 'boool' - }); - - t.same(parsed.boool, true); - t.same(parsed.other, 'true'); - - parsed = parse(['--boool', '--other=false'], { - boolean: 'boool' - }); - - t.same(parsed.boool, true); - t.same(parsed.other, 'false'); - t.end(); -}); - -test('boolean --boool=true', function (t) { - var parsed = parse(['--boool=true'], { - default: { - boool: false - }, - boolean: ['boool'] - }); - - t.same(parsed.boool, true); - t.end(); -}); - -test('boolean --boool=false', function (t) { - var parsed = parse(['--boool=false'], { - default: { - boool: true - }, - boolean: ['boool'] - }); - - t.same(parsed.boool, false); - t.end(); -}); diff --git a/node_modules/minimist/test/dash.js b/node_modules/minimist/test/dash.js deleted file mode 100644 index 5a4fa5b..0000000 --- a/node_modules/minimist/test/dash.js +++ /dev/null @@ -1,31 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('-', function (t) { - t.plan(5); - t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] }); - t.deepEqual(parse([ '-' ]), { _: [ '-' ] }); - t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] }); - t.deepEqual( - parse([ '-b', '-' ], { boolean: 'b' }), - { b: true, _: [ '-' ] } - ); - t.deepEqual( - parse([ '-s', '-' ], { string: 's' }), - { s: '-', _: [] } - ); -}); - -test('-a -- b', function (t) { - t.plan(3); - t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] }); - t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); - t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); -}); - -test('move arguments after the -- into their own `--` array', function(t) { - t.plan(1); - t.deepEqual( - parse([ '--name', 'John', 'before', '--', 'after' ], { '--': true }), - { name: 'John', _: [ 'before' ], '--': [ 'after' ] }); -}); diff --git a/node_modules/minimist/test/default_bool.js b/node_modules/minimist/test/default_bool.js deleted file mode 100644 index 780a311..0000000 --- a/node_modules/minimist/test/default_bool.js +++ /dev/null @@ -1,35 +0,0 @@ -var test = require('tape'); -var parse = require('../'); - -test('boolean default true', function (t) { - var argv = parse([], { - boolean: 'sometrue', - default: { sometrue: true } - }); - t.equal(argv.sometrue, true); - t.end(); -}); - -test('boolean default false', function (t) { - var argv = parse([], { - boolean: 'somefalse', - default: { somefalse: false } - }); - t.equal(argv.somefalse, false); - t.end(); -}); - -test('boolean default to null', function (t) { - var argv = parse([], { - boolean: 'maybe', - default: { maybe: null } - }); - t.equal(argv.maybe, null); - var argv = parse(['--maybe'], { - boolean: 'maybe', - default: { maybe: null } - }); - t.equal(argv.maybe, true); - t.end(); - -}) diff --git a/node_modules/minimist/test/dotted.js b/node_modules/minimist/test/dotted.js deleted file mode 100644 index d8b3e85..0000000 --- a/node_modules/minimist/test/dotted.js +++ /dev/null @@ -1,22 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('dotted alias', function (t) { - var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); - t.equal(argv.a.b, 22); - t.equal(argv.aa.bb, 22); - t.end(); -}); - -test('dotted default', function (t) { - var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); - t.equal(argv.a.b, 11); - t.equal(argv.aa.bb, 11); - t.end(); -}); - -test('dotted default with no alias', function (t) { - var argv = parse('', {default: {'a.b': 11}}); - t.equal(argv.a.b, 11); - t.end(); -}); diff --git a/node_modules/minimist/test/kv_short.js b/node_modules/minimist/test/kv_short.js deleted file mode 100644 index f813b30..0000000 --- a/node_modules/minimist/test/kv_short.js +++ /dev/null @@ -1,16 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('short -k=v' , function (t) { - t.plan(1); - - var argv = parse([ '-b=123' ]); - t.deepEqual(argv, { b: 123, _: [] }); -}); - -test('multi short -k=v' , function (t) { - t.plan(1); - - var argv = parse([ '-a=whatever', '-b=robots' ]); - t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] }); -}); diff --git a/node_modules/minimist/test/long.js b/node_modules/minimist/test/long.js deleted file mode 100644 index 5d3a1e0..0000000 --- a/node_modules/minimist/test/long.js +++ /dev/null @@ -1,31 +0,0 @@ -var test = require('tape'); -var parse = require('../'); - -test('long opts', function (t) { - t.deepEqual( - parse([ '--bool' ]), - { bool : true, _ : [] }, - 'long boolean' - ); - t.deepEqual( - parse([ '--pow', 'xixxle' ]), - { pow : 'xixxle', _ : [] }, - 'long capture sp' - ); - t.deepEqual( - parse([ '--pow=xixxle' ]), - { pow : 'xixxle', _ : [] }, - 'long capture eq' - ); - t.deepEqual( - parse([ '--host', 'localhost', '--port', '555' ]), - { host : 'localhost', port : 555, _ : [] }, - 'long captures sp' - ); - t.deepEqual( - parse([ '--host=localhost', '--port=555' ]), - { host : 'localhost', port : 555, _ : [] }, - 'long captures eq' - ); - t.end(); -}); diff --git a/node_modules/minimist/test/num.js b/node_modules/minimist/test/num.js deleted file mode 100644 index 2cc77f4..0000000 --- a/node_modules/minimist/test/num.js +++ /dev/null @@ -1,36 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('nums', function (t) { - var argv = parse([ - '-x', '1234', - '-y', '5.67', - '-z', '1e7', - '-w', '10f', - '--hex', '0xdeadbeef', - '789' - ]); - t.deepEqual(argv, { - x : 1234, - y : 5.67, - z : 1e7, - w : '10f', - hex : 0xdeadbeef, - _ : [ 789 ] - }); - t.deepEqual(typeof argv.x, 'number'); - t.deepEqual(typeof argv.y, 'number'); - t.deepEqual(typeof argv.z, 'number'); - t.deepEqual(typeof argv.w, 'string'); - t.deepEqual(typeof argv.hex, 'number'); - t.deepEqual(typeof argv._[0], 'number'); - t.end(); -}); - -test('already a number', function (t) { - var argv = parse([ '-x', 1234, 789 ]); - t.deepEqual(argv, { x : 1234, _ : [ 789 ] }); - t.deepEqual(typeof argv.x, 'number'); - t.deepEqual(typeof argv._[0], 'number'); - t.end(); -}); diff --git a/node_modules/minimist/test/parse.js b/node_modules/minimist/test/parse.js deleted file mode 100644 index 7b4a2a1..0000000 --- a/node_modules/minimist/test/parse.js +++ /dev/null @@ -1,197 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('parse args', function (t) { - t.deepEqual( - parse([ '--no-moo' ]), - { moo : false, _ : [] }, - 'no' - ); - t.deepEqual( - parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]), - { v : ['a','b','c'], _ : [] }, - 'multi' - ); - t.end(); -}); - -test('comprehensive', function (t) { - t.deepEqual( - parse([ - '--name=meowmers', 'bare', '-cats', 'woo', - '-h', 'awesome', '--multi=quux', - '--key', 'value', - '-b', '--bool', '--no-meep', '--multi=baz', - '--', '--not-a-flag', 'eek' - ]), - { - c : true, - a : true, - t : true, - s : 'woo', - h : 'awesome', - b : true, - bool : true, - key : 'value', - multi : [ 'quux', 'baz' ], - meep : false, - name : 'meowmers', - _ : [ 'bare', '--not-a-flag', 'eek' ] - } - ); - t.end(); -}); - -test('flag boolean', function (t) { - var argv = parse([ '-t', 'moo' ], { boolean: 't' }); - t.deepEqual(argv, { t : true, _ : [ 'moo' ] }); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); -}); - -test('flag boolean value', function (t) { - var argv = parse(['--verbose', 'false', 'moo', '-t', 'true'], { - boolean: [ 't', 'verbose' ], - default: { verbose: true } - }); - - t.deepEqual(argv, { - verbose: false, - t: true, - _: ['moo'] - }); - - t.deepEqual(typeof argv.verbose, 'boolean'); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); -}); - -test('newlines in params' , function (t) { - var args = parse([ '-s', "X\nX" ]) - t.deepEqual(args, { _ : [], s : "X\nX" }); - - // reproduce in bash: - // VALUE="new - // line" - // node program.js --s="$VALUE" - args = parse([ "--s=X\nX" ]) - t.deepEqual(args, { _ : [], s : "X\nX" }); - t.end(); -}); - -test('strings' , function (t) { - var s = parse([ '-s', '0001234' ], { string: 's' }).s; - t.equal(s, '0001234'); - t.equal(typeof s, 'string'); - - var x = parse([ '-x', '56' ], { string: 'x' }).x; - t.equal(x, '56'); - t.equal(typeof x, 'string'); - t.end(); -}); - -test('stringArgs', function (t) { - var s = parse([ ' ', ' ' ], { string: '_' })._; - t.same(s.length, 2); - t.same(typeof s[0], 'string'); - t.same(s[0], ' '); - t.same(typeof s[1], 'string'); - t.same(s[1], ' '); - t.end(); -}); - -test('empty strings', function(t) { - var s = parse([ '-s' ], { string: 's' }).s; - t.equal(s, ''); - t.equal(typeof s, 'string'); - - var str = parse([ '--str' ], { string: 'str' }).str; - t.equal(str, ''); - t.equal(typeof str, 'string'); - - var letters = parse([ '-art' ], { - string: [ 'a', 't' ] - }); - - t.equal(letters.a, ''); - t.equal(letters.r, true); - t.equal(letters.t, ''); - - t.end(); -}); - - -test('string and alias', function(t) { - var x = parse([ '--str', '000123' ], { - string: 's', - alias: { s: 'str' } - }); - - t.equal(x.str, '000123'); - t.equal(typeof x.str, 'string'); - t.equal(x.s, '000123'); - t.equal(typeof x.s, 'string'); - - var y = parse([ '-s', '000123' ], { - string: 'str', - alias: { str: 's' } - }); - - t.equal(y.str, '000123'); - t.equal(typeof y.str, 'string'); - t.equal(y.s, '000123'); - t.equal(typeof y.s, 'string'); - t.end(); -}); - -test('slashBreak', function (t) { - t.same( - parse([ '-I/foo/bar/baz' ]), - { I : '/foo/bar/baz', _ : [] } - ); - t.same( - parse([ '-xyz/foo/bar/baz' ]), - { x : true, y : true, z : '/foo/bar/baz', _ : [] } - ); - t.end(); -}); - -test('alias', function (t) { - var argv = parse([ '-f', '11', '--zoom', '55' ], { - alias: { z: 'zoom' } - }); - t.equal(argv.zoom, 55); - t.equal(argv.z, argv.zoom); - t.equal(argv.f, 11); - t.end(); -}); - -test('multiAlias', function (t) { - var argv = parse([ '-f', '11', '--zoom', '55' ], { - alias: { z: [ 'zm', 'zoom' ] } - }); - t.equal(argv.zoom, 55); - t.equal(argv.z, argv.zoom); - t.equal(argv.z, argv.zm); - t.equal(argv.f, 11); - t.end(); -}); - -test('nested dotted objects', function (t) { - var argv = parse([ - '--foo.bar', '3', '--foo.baz', '4', - '--foo.quux.quibble', '5', '--foo.quux.o_O', - '--beep.boop' - ]); - - t.same(argv.foo, { - bar : 3, - baz : 4, - quux : { - quibble : 5, - o_O : true - } - }); - t.same(argv.beep, { boop : true }); - t.end(); -}); diff --git a/node_modules/minimist/test/parse_modified.js b/node_modules/minimist/test/parse_modified.js deleted file mode 100644 index ab620dc..0000000 --- a/node_modules/minimist/test/parse_modified.js +++ /dev/null @@ -1,9 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('parse with modifier functions' , function (t) { - t.plan(1); - - var argv = parse([ '-b', '123' ], { boolean: 'b' }); - t.deepEqual(argv, { b: true, _: [123] }); -}); diff --git a/node_modules/minimist/test/short.js b/node_modules/minimist/test/short.js deleted file mode 100644 index d513a1c..0000000 --- a/node_modules/minimist/test/short.js +++ /dev/null @@ -1,67 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('numeric short args', function (t) { - t.plan(2); - t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] }); - t.deepEqual( - parse([ '-123', '456' ]), - { 1: true, 2: true, 3: 456, _: [] } - ); -}); - -test('short', function (t) { - t.deepEqual( - parse([ '-b' ]), - { b : true, _ : [] }, - 'short boolean' - ); - t.deepEqual( - parse([ 'foo', 'bar', 'baz' ]), - { _ : [ 'foo', 'bar', 'baz' ] }, - 'bare' - ); - t.deepEqual( - parse([ '-cats' ]), - { c : true, a : true, t : true, s : true, _ : [] }, - 'group' - ); - t.deepEqual( - parse([ '-cats', 'meow' ]), - { c : true, a : true, t : true, s : 'meow', _ : [] }, - 'short group next' - ); - t.deepEqual( - parse([ '-h', 'localhost' ]), - { h : 'localhost', _ : [] }, - 'short capture' - ); - t.deepEqual( - parse([ '-h', 'localhost', '-p', '555' ]), - { h : 'localhost', p : 555, _ : [] }, - 'short captures' - ); - t.end(); -}); - -test('mixed short bool and capture', function (t) { - t.same( - parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]), - { - f : true, p : 555, h : 'localhost', - _ : [ 'script.js' ] - } - ); - t.end(); -}); - -test('short and long', function (t) { - t.deepEqual( - parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]), - { - f : true, p : 555, h : 'localhost', - _ : [ 'script.js' ] - } - ); - t.end(); -}); diff --git a/node_modules/minimist/test/stop_early.js b/node_modules/minimist/test/stop_early.js deleted file mode 100644 index bdf9fbc..0000000 --- a/node_modules/minimist/test/stop_early.js +++ /dev/null @@ -1,15 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('stops parsing on the first non-option when stopEarly is set', function (t) { - var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], { - stopEarly: true - }); - - t.deepEqual(argv, { - aaa: 'bbb', - _: ['ccc', '--ddd'] - }); - - t.end(); -}); diff --git a/node_modules/minimist/test/unknown.js b/node_modules/minimist/test/unknown.js deleted file mode 100644 index 462a36b..0000000 --- a/node_modules/minimist/test/unknown.js +++ /dev/null @@ -1,102 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('boolean and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'true', '--derp', 'true' ]; - var regular = [ '--herp', 'true', '-d', 'true' ]; - var opts = { - alias: { h: 'herp' }, - boolean: 'h', - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - - t.same(unknown, ['--derp', '-d']); - t.end(); -}); - -test('flag boolean true any double hyphen argument is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var argv = parse(['--honk', '--tacos=good', 'cow', '-p', '55'], { - boolean: true, - unknown: unknownFn - }); - t.same(unknown, ['--tacos=good', 'cow', '-p']); - t.same(argv, { - honk: true, - _: [] - }); - t.end(); -}); - -test('string and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'hello', '--derp', 'goodbye' ]; - var regular = [ '--herp', 'hello', '-d', 'moon' ]; - var opts = { - alias: { h: 'herp' }, - string: 'h', - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - - t.same(unknown, ['--derp', '-d']); - t.end(); -}); - -test('default and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'hello' ]; - var regular = [ '--herp', 'hello' ]; - var opts = { - default: { 'h': 'bar' }, - alias: { 'h': 'herp' }, - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - - t.same(unknown, []); - t.end(); - unknownFn(); // exercise fn for 100% coverage -}); - -test('value following -- is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '--bad', '--', 'good', 'arg' ]; - var opts = { - '--': true, - unknown: unknownFn - }; - var argv = parse(aliased, opts); - - t.same(unknown, ['--bad']); - t.same(argv, { - '--': ['good', 'arg'], - '_': [] - }) - t.end(); -}); diff --git a/node_modules/minimist/test/whitespace.js b/node_modules/minimist/test/whitespace.js deleted file mode 100644 index 8a52a58..0000000 --- a/node_modules/minimist/test/whitespace.js +++ /dev/null @@ -1,8 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('whitespace should be whitespace' , function (t) { - t.plan(1); - var x = parse([ '-x', '\t' ]).x; - t.equal(x, '\t'); -}); diff --git a/node_modules/mkdirp/.travis.yml b/node_modules/mkdirp/.travis.yml deleted file mode 100644 index 74c57bf..0000000 --- a/node_modules/mkdirp/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" - - "0.12" - - "iojs" -before_install: - - npm install -g npm@~1.4.6 diff --git a/node_modules/mkdirp/LICENSE b/node_modules/mkdirp/LICENSE deleted file mode 100644 index 432d1ae..0000000 --- a/node_modules/mkdirp/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright 2010 James Halliday (mail@substack.net) - -This project is free software released under the MIT/X11 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/mkdirp/bin/cmd.js b/node_modules/mkdirp/bin/cmd.js deleted file mode 100755 index d95de15..0000000 --- a/node_modules/mkdirp/bin/cmd.js +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env node - -var mkdirp = require('../'); -var minimist = require('minimist'); -var fs = require('fs'); - -var argv = minimist(process.argv.slice(2), { - alias: { m: 'mode', h: 'help' }, - string: [ 'mode' ] -}); -if (argv.help) { - fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout); - return; -} - -var paths = argv._.slice(); -var mode = argv.mode ? parseInt(argv.mode, 8) : undefined; - -(function next () { - if (paths.length === 0) return; - var p = paths.shift(); - - if (mode === undefined) mkdirp(p, cb) - else mkdirp(p, mode, cb) - - function cb (err) { - if (err) { - console.error(err.message); - process.exit(1); - } - else next(); - } -})(); diff --git a/node_modules/mkdirp/bin/usage.txt b/node_modules/mkdirp/bin/usage.txt deleted file mode 100644 index f952aa2..0000000 --- a/node_modules/mkdirp/bin/usage.txt +++ /dev/null @@ -1,12 +0,0 @@ -usage: mkdirp [DIR1,DIR2..] {OPTIONS} - - Create each supplied directory including any necessary parent directories that - don't yet exist. - - If the directory already exists, do nothing. - -OPTIONS are: - - -m, --mode If a directory needs to be created, set the mode as an octal - permission string. - diff --git a/node_modules/mkdirp/examples/pow.js b/node_modules/mkdirp/examples/pow.js deleted file mode 100644 index e692421..0000000 --- a/node_modules/mkdirp/examples/pow.js +++ /dev/null @@ -1,6 +0,0 @@ -var mkdirp = require('mkdirp'); - -mkdirp('/tmp/foo/bar/baz', function (err) { - if (err) console.error(err) - else console.log('pow!') -}); diff --git a/node_modules/mkdirp/index.js b/node_modules/mkdirp/index.js deleted file mode 100644 index 6ce241b..0000000 --- a/node_modules/mkdirp/index.js +++ /dev/null @@ -1,98 +0,0 @@ -var path = require('path'); -var fs = require('fs'); -var _0777 = parseInt('0777', 8); - -module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP; - -function mkdirP (p, opts, f, made) { - if (typeof opts === 'function') { - f = opts; - opts = {}; - } - else if (!opts || typeof opts !== 'object') { - opts = { mode: opts }; - } - - var mode = opts.mode; - var xfs = opts.fs || fs; - - if (mode === undefined) { - mode = _0777 & (~process.umask()); - } - if (!made) made = null; - - var cb = f || function () {}; - p = path.resolve(p); - - xfs.mkdir(p, mode, function (er) { - if (!er) { - made = made || p; - return cb(null, made); - } - switch (er.code) { - case 'ENOENT': - mkdirP(path.dirname(p), opts, function (er, made) { - if (er) cb(er, made); - else mkdirP(p, opts, cb, made); - }); - break; - - // In the case of any other error, just see if there's a dir - // there already. If so, then hooray! If not, then something - // is borked. - default: - xfs.stat(p, function (er2, stat) { - // if the stat fails, then that's super weird. - // let the original error be the failure reason. - if (er2 || !stat.isDirectory()) cb(er, made) - else cb(null, made); - }); - break; - } - }); -} - -mkdirP.sync = function sync (p, opts, made) { - if (!opts || typeof opts !== 'object') { - opts = { mode: opts }; - } - - var mode = opts.mode; - var xfs = opts.fs || fs; - - if (mode === undefined) { - mode = _0777 & (~process.umask()); - } - if (!made) made = null; - - p = path.resolve(p); - - try { - xfs.mkdirSync(p, mode); - made = made || p; - } - catch (err0) { - switch (err0.code) { - case 'ENOENT' : - made = sync(path.dirname(p), opts, made); - sync(p, opts, made); - break; - - // In the case of any other error, just see if there's a dir - // there already. If so, then hooray! If not, then something - // is borked. - default: - var stat; - try { - stat = xfs.statSync(p); - } - catch (err1) { - throw err0; - } - if (!stat.isDirectory()) throw err0; - break; - } - } - - return made; -}; diff --git a/node_modules/mkdirp/node_modules/minimist/.travis.yml b/node_modules/mkdirp/node_modules/minimist/.travis.yml deleted file mode 100644 index cc4dba2..0000000 --- a/node_modules/mkdirp/node_modules/minimist/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" diff --git a/node_modules/mkdirp/node_modules/minimist/LICENSE b/node_modules/mkdirp/node_modules/minimist/LICENSE deleted file mode 100644 index ee27ba4..0000000 --- a/node_modules/mkdirp/node_modules/minimist/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/mkdirp/node_modules/minimist/example/parse.js b/node_modules/mkdirp/node_modules/minimist/example/parse.js deleted file mode 100644 index abff3e8..0000000 --- a/node_modules/mkdirp/node_modules/minimist/example/parse.js +++ /dev/null @@ -1,2 +0,0 @@ -var argv = require('../')(process.argv.slice(2)); -console.dir(argv); diff --git a/node_modules/mkdirp/node_modules/minimist/index.js b/node_modules/mkdirp/node_modules/minimist/index.js deleted file mode 100644 index 584f551..0000000 --- a/node_modules/mkdirp/node_modules/minimist/index.js +++ /dev/null @@ -1,187 +0,0 @@ -module.exports = function (args, opts) { - if (!opts) opts = {}; - - var flags = { bools : {}, strings : {} }; - - [].concat(opts['boolean']).filter(Boolean).forEach(function (key) { - flags.bools[key] = true; - }); - - [].concat(opts.string).filter(Boolean).forEach(function (key) { - flags.strings[key] = true; - }); - - var aliases = {}; - Object.keys(opts.alias || {}).forEach(function (key) { - aliases[key] = [].concat(opts.alias[key]); - aliases[key].forEach(function (x) { - aliases[x] = [key].concat(aliases[key].filter(function (y) { - return x !== y; - })); - }); - }); - - var defaults = opts['default'] || {}; - - var argv = { _ : [] }; - Object.keys(flags.bools).forEach(function (key) { - setArg(key, defaults[key] === undefined ? false : defaults[key]); - }); - - var notFlags = []; - - if (args.indexOf('--') !== -1) { - notFlags = args.slice(args.indexOf('--')+1); - args = args.slice(0, args.indexOf('--')); - } - - function setArg (key, val) { - var value = !flags.strings[key] && isNumber(val) - ? Number(val) : val - ; - setKey(argv, key.split('.'), value); - - (aliases[key] || []).forEach(function (x) { - setKey(argv, x.split('.'), value); - }); - } - - for (var i = 0; i < args.length; i++) { - var arg = args[i]; - - if (/^--.+=/.test(arg)) { - // Using [\s\S] instead of . because js doesn't support the - // 'dotall' regex modifier. See: - // http://stackoverflow.com/a/1068308/13216 - var m = arg.match(/^--([^=]+)=([\s\S]*)$/); - setArg(m[1], m[2]); - } - else if (/^--no-.+/.test(arg)) { - var key = arg.match(/^--no-(.+)/)[1]; - setArg(key, false); - } - else if (/^--.+/.test(arg)) { - var key = arg.match(/^--(.+)/)[1]; - var next = args[i + 1]; - if (next !== undefined && !/^-/.test(next) - && !flags.bools[key] - && (aliases[key] ? !flags.bools[aliases[key]] : true)) { - setArg(key, next); - i++; - } - else if (/^(true|false)$/.test(next)) { - setArg(key, next === 'true'); - i++; - } - else { - setArg(key, flags.strings[key] ? '' : true); - } - } - else if (/^-[^-]+/.test(arg)) { - var letters = arg.slice(1,-1).split(''); - - var broken = false; - for (var j = 0; j < letters.length; j++) { - var next = arg.slice(j+2); - - if (next === '-') { - setArg(letters[j], next) - continue; - } - - if (/[A-Za-z]/.test(letters[j]) - && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) { - setArg(letters[j], next); - broken = true; - break; - } - - if (letters[j+1] && letters[j+1].match(/\W/)) { - setArg(letters[j], arg.slice(j+2)); - broken = true; - break; - } - else { - setArg(letters[j], flags.strings[letters[j]] ? '' : true); - } - } - - var key = arg.slice(-1)[0]; - if (!broken && key !== '-') { - if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1]) - && !flags.bools[key] - && (aliases[key] ? !flags.bools[aliases[key]] : true)) { - setArg(key, args[i+1]); - i++; - } - else if (args[i+1] && /true|false/.test(args[i+1])) { - setArg(key, args[i+1] === 'true'); - i++; - } - else { - setArg(key, flags.strings[key] ? '' : true); - } - } - } - else { - argv._.push( - flags.strings['_'] || !isNumber(arg) ? arg : Number(arg) - ); - } - } - - Object.keys(defaults).forEach(function (key) { - if (!hasKey(argv, key.split('.'))) { - setKey(argv, key.split('.'), defaults[key]); - - (aliases[key] || []).forEach(function (x) { - setKey(argv, x.split('.'), defaults[key]); - }); - } - }); - - notFlags.forEach(function(key) { - argv._.push(key); - }); - - return argv; -}; - -function hasKey (obj, keys) { - var o = obj; - keys.slice(0,-1).forEach(function (key) { - o = (o[key] || {}); - }); - - var key = keys[keys.length - 1]; - return key in o; -} - -function setKey (obj, keys, value) { - var o = obj; - keys.slice(0,-1).forEach(function (key) { - if (o[key] === undefined) o[key] = {}; - o = o[key]; - }); - - var key = keys[keys.length - 1]; - if (o[key] === undefined || typeof o[key] === 'boolean') { - o[key] = value; - } - else if (Array.isArray(o[key])) { - o[key].push(value); - } - else { - o[key] = [ o[key], value ]; - } -} - -function isNumber (x) { - if (typeof x === 'number') return true; - if (/^0x[0-9a-f]+$/i.test(x)) return true; - return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x); -} - -function longest (xs) { - return Math.max.apply(null, xs.map(function (x) { return x.length })); -} diff --git a/node_modules/mkdirp/node_modules/minimist/package.json b/node_modules/mkdirp/node_modules/minimist/package.json deleted file mode 100644 index 9ac23ab..0000000 --- a/node_modules/mkdirp/node_modules/minimist/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "minimist@0.0.8", - "scope": null, - "escapedName": "minimist", - "name": "minimist", - "rawSpec": "0.0.8", - "spec": "0.0.8", - "type": "version" - }, - "/Users/jose/Documents/GitHub/About/node_modules/mkdirp" - ] - ], - "_from": "minimist@0.0.8", - "_id": "minimist@0.0.8", - "_inCache": true, - "_location": "/mkdirp/minimist", - "_npmUser": { - "name": "substack", - "email": "mail@substack.net" - }, - "_npmVersion": "1.4.3", - "_phantomChildren": {}, - "_requested": { - "raw": "minimist@0.0.8", - "scope": null, - "escapedName": "minimist", - "name": "minimist", - "rawSpec": "0.0.8", - "spec": "0.0.8", - "type": "version" - }, - "_requiredBy": [ - "/mkdirp" - ], - "_resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "_shasum": "857fcabfc3397d2625b8228262e86aa7a011b05d", - "_shrinkwrap": null, - "_spec": "minimist@0.0.8", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/mkdirp", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bugs": { - "url": "https://github.com/substack/minimist/issues" - }, - "dependencies": {}, - "description": "parse argument options", - "devDependencies": { - "tap": "~0.4.0", - "tape": "~1.0.4" - }, - "directories": {}, - "dist": { - "shasum": "857fcabfc3397d2625b8228262e86aa7a011b05d", - "tarball": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz" - }, - "homepage": "https://github.com/substack/minimist", - "keywords": [ - "argv", - "getopt", - "parser", - "optimist" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "substack", - "email": "mail@substack.net" - } - ], - "name": "minimist", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/substack/minimist.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/6..latest", - "ff/5", - "firefox/latest", - "chrome/10", - "chrome/latest", - "safari/5.1", - "safari/latest", - "opera/12" - ] - }, - "version": "0.0.8" -} diff --git a/node_modules/mkdirp/node_modules/minimist/readme.markdown b/node_modules/mkdirp/node_modules/minimist/readme.markdown deleted file mode 100644 index c256353..0000000 --- a/node_modules/mkdirp/node_modules/minimist/readme.markdown +++ /dev/null @@ -1,73 +0,0 @@ -# minimist - -parse argument options - -This module is the guts of optimist's argument parser without all the -fanciful decoration. - -[![browser support](https://ci.testling.com/substack/minimist.png)](http://ci.testling.com/substack/minimist) - -[![build status](https://secure.travis-ci.org/substack/minimist.png)](http://travis-ci.org/substack/minimist) - -# example - -``` js -var argv = require('minimist')(process.argv.slice(2)); -console.dir(argv); -``` - -``` -$ node example/parse.js -a beep -b boop -{ _: [], a: 'beep', b: 'boop' } -``` - -``` -$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz -{ _: [ 'foo', 'bar', 'baz' ], - x: 3, - y: 4, - n: 5, - a: true, - b: true, - c: true, - beep: 'boop' } -``` - -# methods - -``` js -var parseArgs = require('minimist') -``` - -## var argv = parseArgs(args, opts={}) - -Return an argument object `argv` populated with the array arguments from `args`. - -`argv._` contains all the arguments that didn't have an option associated with -them. - -Numeric-looking arguments will be returned as numbers unless `opts.string` or -`opts.boolean` is set for that argument name. - -Any arguments after `'--'` will not be parsed and will end up in `argv._`. - -options can be: - -* `opts.string` - a string or array of strings argument names to always treat as -strings -* `opts.boolean` - a string or array of strings to always treat as booleans -* `opts.alias` - an object mapping string names to strings or arrays of string -argument names to use as aliases -* `opts.default` - an object mapping string argument names to default values - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install minimist -``` - -# license - -MIT diff --git a/node_modules/mkdirp/node_modules/minimist/test/dash.js b/node_modules/mkdirp/node_modules/minimist/test/dash.js deleted file mode 100644 index 8b034b9..0000000 --- a/node_modules/mkdirp/node_modules/minimist/test/dash.js +++ /dev/null @@ -1,24 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('-', function (t) { - t.plan(5); - t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] }); - t.deepEqual(parse([ '-' ]), { _: [ '-' ] }); - t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] }); - t.deepEqual( - parse([ '-b', '-' ], { boolean: 'b' }), - { b: true, _: [ '-' ] } - ); - t.deepEqual( - parse([ '-s', '-' ], { string: 's' }), - { s: '-', _: [] } - ); -}); - -test('-a -- b', function (t) { - t.plan(3); - t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] }); - t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); - t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); -}); diff --git a/node_modules/mkdirp/node_modules/minimist/test/default_bool.js b/node_modules/mkdirp/node_modules/minimist/test/default_bool.js deleted file mode 100644 index f0041ee..0000000 --- a/node_modules/mkdirp/node_modules/minimist/test/default_bool.js +++ /dev/null @@ -1,20 +0,0 @@ -var test = require('tape'); -var parse = require('../'); - -test('boolean default true', function (t) { - var argv = parse([], { - boolean: 'sometrue', - default: { sometrue: true } - }); - t.equal(argv.sometrue, true); - t.end(); -}); - -test('boolean default false', function (t) { - var argv = parse([], { - boolean: 'somefalse', - default: { somefalse: false } - }); - t.equal(argv.somefalse, false); - t.end(); -}); diff --git a/node_modules/mkdirp/node_modules/minimist/test/dotted.js b/node_modules/mkdirp/node_modules/minimist/test/dotted.js deleted file mode 100644 index ef0ae34..0000000 --- a/node_modules/mkdirp/node_modules/minimist/test/dotted.js +++ /dev/null @@ -1,16 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('dotted alias', function (t) { - var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); - t.equal(argv.a.b, 22); - t.equal(argv.aa.bb, 22); - t.end(); -}); - -test('dotted default', function (t) { - var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); - t.equal(argv.a.b, 11); - t.equal(argv.aa.bb, 11); - t.end(); -}); diff --git a/node_modules/mkdirp/node_modules/minimist/test/long.js b/node_modules/mkdirp/node_modules/minimist/test/long.js deleted file mode 100644 index 5d3a1e0..0000000 --- a/node_modules/mkdirp/node_modules/minimist/test/long.js +++ /dev/null @@ -1,31 +0,0 @@ -var test = require('tape'); -var parse = require('../'); - -test('long opts', function (t) { - t.deepEqual( - parse([ '--bool' ]), - { bool : true, _ : [] }, - 'long boolean' - ); - t.deepEqual( - parse([ '--pow', 'xixxle' ]), - { pow : 'xixxle', _ : [] }, - 'long capture sp' - ); - t.deepEqual( - parse([ '--pow=xixxle' ]), - { pow : 'xixxle', _ : [] }, - 'long capture eq' - ); - t.deepEqual( - parse([ '--host', 'localhost', '--port', '555' ]), - { host : 'localhost', port : 555, _ : [] }, - 'long captures sp' - ); - t.deepEqual( - parse([ '--host=localhost', '--port=555' ]), - { host : 'localhost', port : 555, _ : [] }, - 'long captures eq' - ); - t.end(); -}); diff --git a/node_modules/mkdirp/node_modules/minimist/test/parse.js b/node_modules/mkdirp/node_modules/minimist/test/parse.js deleted file mode 100644 index 8a90646..0000000 --- a/node_modules/mkdirp/node_modules/minimist/test/parse.js +++ /dev/null @@ -1,318 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('parse args', function (t) { - t.deepEqual( - parse([ '--no-moo' ]), - { moo : false, _ : [] }, - 'no' - ); - t.deepEqual( - parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]), - { v : ['a','b','c'], _ : [] }, - 'multi' - ); - t.end(); -}); - -test('comprehensive', function (t) { - t.deepEqual( - parse([ - '--name=meowmers', 'bare', '-cats', 'woo', - '-h', 'awesome', '--multi=quux', - '--key', 'value', - '-b', '--bool', '--no-meep', '--multi=baz', - '--', '--not-a-flag', 'eek' - ]), - { - c : true, - a : true, - t : true, - s : 'woo', - h : 'awesome', - b : true, - bool : true, - key : 'value', - multi : [ 'quux', 'baz' ], - meep : false, - name : 'meowmers', - _ : [ 'bare', '--not-a-flag', 'eek' ] - } - ); - t.end(); -}); - -test('nums', function (t) { - var argv = parse([ - '-x', '1234', - '-y', '5.67', - '-z', '1e7', - '-w', '10f', - '--hex', '0xdeadbeef', - '789' - ]); - t.deepEqual(argv, { - x : 1234, - y : 5.67, - z : 1e7, - w : '10f', - hex : 0xdeadbeef, - _ : [ 789 ] - }); - t.deepEqual(typeof argv.x, 'number'); - t.deepEqual(typeof argv.y, 'number'); - t.deepEqual(typeof argv.z, 'number'); - t.deepEqual(typeof argv.w, 'string'); - t.deepEqual(typeof argv.hex, 'number'); - t.deepEqual(typeof argv._[0], 'number'); - t.end(); -}); - -test('flag boolean', function (t) { - var argv = parse([ '-t', 'moo' ], { boolean: 't' }); - t.deepEqual(argv, { t : true, _ : [ 'moo' ] }); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); -}); - -test('flag boolean value', function (t) { - var argv = parse(['--verbose', 'false', 'moo', '-t', 'true'], { - boolean: [ 't', 'verbose' ], - default: { verbose: true } - }); - - t.deepEqual(argv, { - verbose: false, - t: true, - _: ['moo'] - }); - - t.deepEqual(typeof argv.verbose, 'boolean'); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); -}); - -test('flag boolean default false', function (t) { - var argv = parse(['moo'], { - boolean: ['t', 'verbose'], - default: { verbose: false, t: false } - }); - - t.deepEqual(argv, { - verbose: false, - t: false, - _: ['moo'] - }); - - t.deepEqual(typeof argv.verbose, 'boolean'); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); - -}); - -test('boolean groups', function (t) { - var argv = parse([ '-x', '-z', 'one', 'two', 'three' ], { - boolean: ['x','y','z'] - }); - - t.deepEqual(argv, { - x : true, - y : false, - z : true, - _ : [ 'one', 'two', 'three' ] - }); - - t.deepEqual(typeof argv.x, 'boolean'); - t.deepEqual(typeof argv.y, 'boolean'); - t.deepEqual(typeof argv.z, 'boolean'); - t.end(); -}); - -test('newlines in params' , function (t) { - var args = parse([ '-s', "X\nX" ]) - t.deepEqual(args, { _ : [], s : "X\nX" }); - - // reproduce in bash: - // VALUE="new - // line" - // node program.js --s="$VALUE" - args = parse([ "--s=X\nX" ]) - t.deepEqual(args, { _ : [], s : "X\nX" }); - t.end(); -}); - -test('strings' , function (t) { - var s = parse([ '-s', '0001234' ], { string: 's' }).s; - t.equal(s, '0001234'); - t.equal(typeof s, 'string'); - - var x = parse([ '-x', '56' ], { string: 'x' }).x; - t.equal(x, '56'); - t.equal(typeof x, 'string'); - t.end(); -}); - -test('stringArgs', function (t) { - var s = parse([ ' ', ' ' ], { string: '_' })._; - t.same(s.length, 2); - t.same(typeof s[0], 'string'); - t.same(s[0], ' '); - t.same(typeof s[1], 'string'); - t.same(s[1], ' '); - t.end(); -}); - -test('empty strings', function(t) { - var s = parse([ '-s' ], { string: 's' }).s; - t.equal(s, ''); - t.equal(typeof s, 'string'); - - var str = parse([ '--str' ], { string: 'str' }).str; - t.equal(str, ''); - t.equal(typeof str, 'string'); - - var letters = parse([ '-art' ], { - string: [ 'a', 't' ] - }); - - t.equal(letters.a, ''); - t.equal(letters.r, true); - t.equal(letters.t, ''); - - t.end(); -}); - - -test('slashBreak', function (t) { - t.same( - parse([ '-I/foo/bar/baz' ]), - { I : '/foo/bar/baz', _ : [] } - ); - t.same( - parse([ '-xyz/foo/bar/baz' ]), - { x : true, y : true, z : '/foo/bar/baz', _ : [] } - ); - t.end(); -}); - -test('alias', function (t) { - var argv = parse([ '-f', '11', '--zoom', '55' ], { - alias: { z: 'zoom' } - }); - t.equal(argv.zoom, 55); - t.equal(argv.z, argv.zoom); - t.equal(argv.f, 11); - t.end(); -}); - -test('multiAlias', function (t) { - var argv = parse([ '-f', '11', '--zoom', '55' ], { - alias: { z: [ 'zm', 'zoom' ] } - }); - t.equal(argv.zoom, 55); - t.equal(argv.z, argv.zoom); - t.equal(argv.z, argv.zm); - t.equal(argv.f, 11); - t.end(); -}); - -test('nested dotted objects', function (t) { - var argv = parse([ - '--foo.bar', '3', '--foo.baz', '4', - '--foo.quux.quibble', '5', '--foo.quux.o_O', - '--beep.boop' - ]); - - t.same(argv.foo, { - bar : 3, - baz : 4, - quux : { - quibble : 5, - o_O : true - } - }); - t.same(argv.beep, { boop : true }); - t.end(); -}); - -test('boolean and alias with chainable api', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var opts = { - herp: { alias: 'h', boolean: true } - }; - var aliasedArgv = parse(aliased, { - boolean: 'herp', - alias: { h: 'herp' } - }); - var propertyArgv = parse(regular, { - boolean: 'herp', - alias: { h: 'herp' } - }); - var expected = { - herp: true, - h: true, - '_': [ 'derp' ] - }; - - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -test('boolean and alias with options hash', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var opts = { - alias: { 'h': 'herp' }, - boolean: 'herp' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var expected = { - herp: true, - h: true, - '_': [ 'derp' ] - }; - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -test('boolean and alias using explicit true', function (t) { - var aliased = [ '-h', 'true' ]; - var regular = [ '--herp', 'true' ]; - var opts = { - alias: { h: 'herp' }, - boolean: 'h' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var expected = { - herp: true, - h: true, - '_': [ ] - }; - - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -// regression, see https://github.com/substack/node-optimist/issues/71 -test('boolean and --x=true', function(t) { - var parsed = parse(['--boool', '--other=true'], { - boolean: 'boool' - }); - - t.same(parsed.boool, true); - t.same(parsed.other, 'true'); - - parsed = parse(['--boool', '--other=false'], { - boolean: 'boool' - }); - - t.same(parsed.boool, true); - t.same(parsed.other, 'false'); - t.end(); -}); diff --git a/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js b/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js deleted file mode 100644 index 21851b0..0000000 --- a/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js +++ /dev/null @@ -1,9 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('parse with modifier functions' , function (t) { - t.plan(1); - - var argv = parse([ '-b', '123' ], { boolean: 'b' }); - t.deepEqual(argv, { b: true, _: ['123'] }); -}); diff --git a/node_modules/mkdirp/node_modules/minimist/test/short.js b/node_modules/mkdirp/node_modules/minimist/test/short.js deleted file mode 100644 index d513a1c..0000000 --- a/node_modules/mkdirp/node_modules/minimist/test/short.js +++ /dev/null @@ -1,67 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('numeric short args', function (t) { - t.plan(2); - t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] }); - t.deepEqual( - parse([ '-123', '456' ]), - { 1: true, 2: true, 3: 456, _: [] } - ); -}); - -test('short', function (t) { - t.deepEqual( - parse([ '-b' ]), - { b : true, _ : [] }, - 'short boolean' - ); - t.deepEqual( - parse([ 'foo', 'bar', 'baz' ]), - { _ : [ 'foo', 'bar', 'baz' ] }, - 'bare' - ); - t.deepEqual( - parse([ '-cats' ]), - { c : true, a : true, t : true, s : true, _ : [] }, - 'group' - ); - t.deepEqual( - parse([ '-cats', 'meow' ]), - { c : true, a : true, t : true, s : 'meow', _ : [] }, - 'short group next' - ); - t.deepEqual( - parse([ '-h', 'localhost' ]), - { h : 'localhost', _ : [] }, - 'short capture' - ); - t.deepEqual( - parse([ '-h', 'localhost', '-p', '555' ]), - { h : 'localhost', p : 555, _ : [] }, - 'short captures' - ); - t.end(); -}); - -test('mixed short bool and capture', function (t) { - t.same( - parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]), - { - f : true, p : 555, h : 'localhost', - _ : [ 'script.js' ] - } - ); - t.end(); -}); - -test('short and long', function (t) { - t.deepEqual( - parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]), - { - f : true, p : 555, h : 'localhost', - _ : [ 'script.js' ] - } - ); - t.end(); -}); diff --git a/node_modules/mkdirp/node_modules/minimist/test/whitespace.js b/node_modules/mkdirp/node_modules/minimist/test/whitespace.js deleted file mode 100644 index 8a52a58..0000000 --- a/node_modules/mkdirp/node_modules/minimist/test/whitespace.js +++ /dev/null @@ -1,8 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('whitespace should be whitespace' , function (t) { - t.plan(1); - var x = parse([ '-x', '\t' ]).x; - t.equal(x, '\t'); -}); diff --git a/node_modules/mkdirp/package.json b/node_modules/mkdirp/package.json deleted file mode 100644 index b9fcf75..0000000 --- a/node_modules/mkdirp/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "mkdirp@^0.5.1", - "scope": null, - "escapedName": "mkdirp", - "name": "mkdirp", - "rawSpec": "^0.5.1", - "spec": ">=0.5.1 <0.6.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui" - ] - ], - "_from": "mkdirp@>=0.5.1 <0.6.0", - "_id": "mkdirp@0.5.1", - "_inCache": true, - "_location": "/mkdirp", - "_nodeVersion": "2.0.0", - "_npmUser": { - "name": "substack", - "email": "substack@gmail.com" - }, - "_npmVersion": "2.9.0", - "_phantomChildren": {}, - "_requested": { - "raw": "mkdirp@^0.5.1", - "scope": null, - "escapedName": "mkdirp", - "name": "mkdirp", - "rawSpec": "^0.5.1", - "spec": ">=0.5.1 <0.6.0", - "type": "range" - }, - "_requiredBy": [ - "/js-beautify", - "/less", - "/rtlcss", - "/semantic-ui", - "/vinyl-fs" - ], - "_resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "_shasum": "30057438eac6cf7f8c4767f38648d6697d75c903", - "_shrinkwrap": null, - "_spec": "mkdirp@^0.5.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "bugs": { - "url": "https://github.com/substack/node-mkdirp/issues" - }, - "dependencies": { - "minimist": "0.0.8" - }, - "description": "Recursively mkdir, like `mkdir -p`", - "devDependencies": { - "mock-fs": "2 >=2.7.0", - "tap": "1" - }, - "directories": {}, - "dist": { - "shasum": "30057438eac6cf7f8c4767f38648d6697d75c903", - "tarball": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz" - }, - "gitHead": "d4eff0f06093aed4f387e88e9fc301cb76beedc7", - "homepage": "https://github.com/substack/node-mkdirp#readme", - "keywords": [ - "mkdir", - "directory" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "substack", - "email": "mail@substack.net" - } - ], - "name": "mkdirp", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/substack/node-mkdirp.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "0.5.1" -} diff --git a/node_modules/mkdirp/readme.markdown b/node_modules/mkdirp/readme.markdown deleted file mode 100644 index 3cc1315..0000000 --- a/node_modules/mkdirp/readme.markdown +++ /dev/null @@ -1,100 +0,0 @@ -# mkdirp - -Like `mkdir -p`, but in node.js! - -[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp) - -# example - -## pow.js - -```js -var mkdirp = require('mkdirp'); - -mkdirp('/tmp/foo/bar/baz', function (err) { - if (err) console.error(err) - else console.log('pow!') -}); -``` - -Output - -``` -pow! -``` - -And now /tmp/foo/bar/baz exists, huzzah! - -# methods - -```js -var mkdirp = require('mkdirp'); -``` - -## mkdirp(dir, opts, cb) - -Create a new directory and any necessary subdirectories at `dir` with octal -permission string `opts.mode`. If `opts` is a non-object, it will be treated as -the `opts.mode`. - -If `opts.mode` isn't specified, it defaults to `0777 & (~process.umask())`. - -`cb(err, made)` fires with the error or the first directory `made` -that had to be created, if any. - -You can optionally pass in an alternate `fs` implementation by passing in -`opts.fs`. Your implementation should have `opts.fs.mkdir(path, mode, cb)` and -`opts.fs.stat(path, cb)`. - -## mkdirp.sync(dir, opts) - -Synchronously create a new directory and any necessary subdirectories at `dir` -with octal permission string `opts.mode`. If `opts` is a non-object, it will be -treated as the `opts.mode`. - -If `opts.mode` isn't specified, it defaults to `0777 & (~process.umask())`. - -Returns the first directory that had to be created, if any. - -You can optionally pass in an alternate `fs` implementation by passing in -`opts.fs`. Your implementation should have `opts.fs.mkdirSync(path, mode)` and -`opts.fs.statSync(path)`. - -# usage - -This package also ships with a `mkdirp` command. - -``` -usage: mkdirp [DIR1,DIR2..] {OPTIONS} - - Create each supplied directory including any necessary parent directories that - don't yet exist. - - If the directory already exists, do nothing. - -OPTIONS are: - - -m, --mode If a directory needs to be created, set the mode as an octal - permission string. - -``` - -# install - -With [npm](http://npmjs.org) do: - -``` -npm install mkdirp -``` - -to get the library, or - -``` -npm install -g mkdirp -``` - -to get the command. - -# license - -MIT diff --git a/node_modules/mkdirp/test/chmod.js b/node_modules/mkdirp/test/chmod.js deleted file mode 100644 index 6a404b9..0000000 --- a/node_modules/mkdirp/test/chmod.js +++ /dev/null @@ -1,41 +0,0 @@ -var mkdirp = require('../').mkdirp; -var path = require('path'); -var fs = require('fs'); -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); -var _0744 = parseInt('0744', 8); - -var ps = [ '', 'tmp' ]; - -for (var i = 0; i < 25; i++) { - var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - ps.push(dir); -} - -var file = ps.join('/'); - -test('chmod-pre', function (t) { - var mode = _0744 - mkdirp(file, mode, function (er) { - t.ifError(er, 'should not error'); - fs.stat(file, function (er, stat) { - t.ifError(er, 'should exist'); - t.ok(stat && stat.isDirectory(), 'should be directory'); - t.equal(stat && stat.mode & _0777, mode, 'should be 0744'); - t.end(); - }); - }); -}); - -test('chmod', function (t) { - var mode = _0755 - mkdirp(file, mode, function (er) { - t.ifError(er, 'should not error'); - fs.stat(file, function (er, stat) { - t.ifError(er, 'should exist'); - t.ok(stat && stat.isDirectory(), 'should be directory'); - t.end(); - }); - }); -}); diff --git a/node_modules/mkdirp/test/clobber.js b/node_modules/mkdirp/test/clobber.js deleted file mode 100644 index 2433b9a..0000000 --- a/node_modules/mkdirp/test/clobber.js +++ /dev/null @@ -1,38 +0,0 @@ -var mkdirp = require('../').mkdirp; -var path = require('path'); -var fs = require('fs'); -var test = require('tap').test; -var _0755 = parseInt('0755', 8); - -var ps = [ '', 'tmp' ]; - -for (var i = 0; i < 25; i++) { - var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - ps.push(dir); -} - -var file = ps.join('/'); - -// a file in the way -var itw = ps.slice(0, 3).join('/'); - - -test('clobber-pre', function (t) { - console.error("about to write to "+itw) - fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.'); - - fs.stat(itw, function (er, stat) { - t.ifError(er) - t.ok(stat && stat.isFile(), 'should be file') - t.end() - }) -}) - -test('clobber', function (t) { - t.plan(2); - mkdirp(file, _0755, function (err) { - t.ok(err); - t.equal(err.code, 'ENOTDIR'); - t.end(); - }); -}); diff --git a/node_modules/mkdirp/test/mkdirp.js b/node_modules/mkdirp/test/mkdirp.js deleted file mode 100644 index eaa8921..0000000 --- a/node_modules/mkdirp/test/mkdirp.js +++ /dev/null @@ -1,28 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var exists = fs.exists || path.exists; -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('woo', function (t) { - t.plan(5); - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var file = '/tmp/' + [x,y,z].join('/'); - - mkdirp(file, _0755, function (err) { - t.ifError(err); - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, _0755); - t.ok(stat.isDirectory(), 'target not a directory'); - }) - }) - }); -}); diff --git a/node_modules/mkdirp/test/opts_fs.js b/node_modules/mkdirp/test/opts_fs.js deleted file mode 100644 index 97186b6..0000000 --- a/node_modules/mkdirp/test/opts_fs.js +++ /dev/null @@ -1,29 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var test = require('tap').test; -var mockfs = require('mock-fs'); -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('opts.fs', function (t) { - t.plan(5); - - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var file = '/beep/boop/' + [x,y,z].join('/'); - var xfs = mockfs.fs(); - - mkdirp(file, { fs: xfs, mode: _0755 }, function (err) { - t.ifError(err); - xfs.exists(file, function (ex) { - t.ok(ex, 'created file'); - xfs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, _0755); - t.ok(stat.isDirectory(), 'target not a directory'); - }); - }); - }); -}); diff --git a/node_modules/mkdirp/test/opts_fs_sync.js b/node_modules/mkdirp/test/opts_fs_sync.js deleted file mode 100644 index 6c370aa..0000000 --- a/node_modules/mkdirp/test/opts_fs_sync.js +++ /dev/null @@ -1,27 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var test = require('tap').test; -var mockfs = require('mock-fs'); -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('opts.fs sync', function (t) { - t.plan(4); - - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var file = '/beep/boop/' + [x,y,z].join('/'); - var xfs = mockfs.fs(); - - mkdirp.sync(file, { fs: xfs, mode: _0755 }); - xfs.exists(file, function (ex) { - t.ok(ex, 'created file'); - xfs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, _0755); - t.ok(stat.isDirectory(), 'target not a directory'); - }); - }); -}); diff --git a/node_modules/mkdirp/test/perm.js b/node_modules/mkdirp/test/perm.js deleted file mode 100644 index fbce44b..0000000 --- a/node_modules/mkdirp/test/perm.js +++ /dev/null @@ -1,32 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var exists = fs.exists || path.exists; -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('async perm', function (t) { - t.plan(5); - var file = '/tmp/' + (Math.random() * (1<<30)).toString(16); - - mkdirp(file, _0755, function (err) { - t.ifError(err); - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, _0755); - t.ok(stat.isDirectory(), 'target not a directory'); - }) - }) - }); -}); - -test('async root perm', function (t) { - mkdirp('/tmp', _0755, function (err) { - if (err) t.fail(err); - t.end(); - }); - t.end(); -}); diff --git a/node_modules/mkdirp/test/perm_sync.js b/node_modules/mkdirp/test/perm_sync.js deleted file mode 100644 index 398229f..0000000 --- a/node_modules/mkdirp/test/perm_sync.js +++ /dev/null @@ -1,36 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var exists = fs.exists || path.exists; -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('sync perm', function (t) { - t.plan(4); - var file = '/tmp/' + (Math.random() * (1<<30)).toString(16) + '.json'; - - mkdirp.sync(file, _0755); - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, _0755); - t.ok(stat.isDirectory(), 'target not a directory'); - }); - }); -}); - -test('sync root perm', function (t) { - t.plan(3); - - var file = '/tmp'; - mkdirp.sync(file, _0755); - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - t.ok(stat.isDirectory(), 'target not a directory'); - }) - }); -}); diff --git a/node_modules/mkdirp/test/race.js b/node_modules/mkdirp/test/race.js deleted file mode 100644 index b0b9e18..0000000 --- a/node_modules/mkdirp/test/race.js +++ /dev/null @@ -1,37 +0,0 @@ -var mkdirp = require('../').mkdirp; -var path = require('path'); -var fs = require('fs'); -var exists = fs.exists || path.exists; -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('race', function (t) { - t.plan(10); - var ps = [ '', 'tmp' ]; - - for (var i = 0; i < 25; i++) { - var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - ps.push(dir); - } - var file = ps.join('/'); - - var res = 2; - mk(file); - - mk(file); - - function mk (file, cb) { - mkdirp(file, _0755, function (err) { - t.ifError(err); - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, _0755); - t.ok(stat.isDirectory(), 'target not a directory'); - }); - }) - }); - } -}); diff --git a/node_modules/mkdirp/test/rel.js b/node_modules/mkdirp/test/rel.js deleted file mode 100644 index 4ddb342..0000000 --- a/node_modules/mkdirp/test/rel.js +++ /dev/null @@ -1,32 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var exists = fs.exists || path.exists; -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('rel', function (t) { - t.plan(5); - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var cwd = process.cwd(); - process.chdir('/tmp'); - - var file = [x,y,z].join('/'); - - mkdirp(file, _0755, function (err) { - t.ifError(err); - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - process.chdir(cwd); - t.equal(stat.mode & _0777, _0755); - t.ok(stat.isDirectory(), 'target not a directory'); - }) - }) - }); -}); diff --git a/node_modules/mkdirp/test/return.js b/node_modules/mkdirp/test/return.js deleted file mode 100644 index bce68e5..0000000 --- a/node_modules/mkdirp/test/return.js +++ /dev/null @@ -1,25 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var test = require('tap').test; - -test('return value', function (t) { - t.plan(4); - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var file = '/tmp/' + [x,y,z].join('/'); - - // should return the first dir created. - // By this point, it would be profoundly surprising if /tmp didn't - // already exist, since every other test makes things in there. - mkdirp(file, function (err, made) { - t.ifError(err); - t.equal(made, '/tmp/' + x); - mkdirp(file, function (err, made) { - t.ifError(err); - t.equal(made, null); - }); - }); -}); diff --git a/node_modules/mkdirp/test/return_sync.js b/node_modules/mkdirp/test/return_sync.js deleted file mode 100644 index 7c222d3..0000000 --- a/node_modules/mkdirp/test/return_sync.js +++ /dev/null @@ -1,24 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var test = require('tap').test; - -test('return value', function (t) { - t.plan(2); - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var file = '/tmp/' + [x,y,z].join('/'); - - // should return the first dir created. - // By this point, it would be profoundly surprising if /tmp didn't - // already exist, since every other test makes things in there. - // Note that this will throw on failure, which will fail the test. - var made = mkdirp.sync(file); - t.equal(made, '/tmp/' + x); - - // making the same file again should have no effect. - made = mkdirp.sync(file); - t.equal(made, null); -}); diff --git a/node_modules/mkdirp/test/root.js b/node_modules/mkdirp/test/root.js deleted file mode 100644 index 9e7d079..0000000 --- a/node_modules/mkdirp/test/root.js +++ /dev/null @@ -1,19 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var test = require('tap').test; -var _0755 = parseInt('0755', 8); - -test('root', function (t) { - // '/' on unix, 'c:/' on windows. - var file = path.resolve('/'); - - mkdirp(file, _0755, function (err) { - if (err) throw err - fs.stat(file, function (er, stat) { - if (er) throw er - t.ok(stat.isDirectory(), 'target is a directory'); - t.end(); - }) - }); -}); diff --git a/node_modules/mkdirp/test/sync.js b/node_modules/mkdirp/test/sync.js deleted file mode 100644 index 8c8dc93..0000000 --- a/node_modules/mkdirp/test/sync.js +++ /dev/null @@ -1,32 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var exists = fs.exists || path.exists; -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('sync', function (t) { - t.plan(4); - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var file = '/tmp/' + [x,y,z].join('/'); - - try { - mkdirp.sync(file, _0755); - } catch (err) { - t.fail(err); - return t.end(); - } - - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, _0755); - t.ok(stat.isDirectory(), 'target not a directory'); - }); - }); -}); diff --git a/node_modules/mkdirp/test/umask.js b/node_modules/mkdirp/test/umask.js deleted file mode 100644 index 2033c63..0000000 --- a/node_modules/mkdirp/test/umask.js +++ /dev/null @@ -1,28 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var exists = fs.exists || path.exists; -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('implicit mode from umask', function (t) { - t.plan(5); - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var file = '/tmp/' + [x,y,z].join('/'); - - mkdirp(file, function (err) { - t.ifError(err); - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, _0777 & (~process.umask())); - t.ok(stat.isDirectory(), 'target not a directory'); - }); - }) - }); -}); diff --git a/node_modules/mkdirp/test/umask_sync.js b/node_modules/mkdirp/test/umask_sync.js deleted file mode 100644 index 11a7614..0000000 --- a/node_modules/mkdirp/test/umask_sync.js +++ /dev/null @@ -1,32 +0,0 @@ -var mkdirp = require('../'); -var path = require('path'); -var fs = require('fs'); -var exists = fs.exists || path.exists; -var test = require('tap').test; -var _0777 = parseInt('0777', 8); -var _0755 = parseInt('0755', 8); - -test('umask sync modes', function (t) { - t.plan(4); - var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); - - var file = '/tmp/' + [x,y,z].join('/'); - - try { - mkdirp.sync(file); - } catch (err) { - t.fail(err); - return t.end(); - } - - exists(file, function (ex) { - t.ok(ex, 'file created'); - fs.stat(file, function (err, stat) { - t.ifError(err); - t.equal(stat.mode & _0777, (_0777 & (~process.umask()))); - t.ok(stat.isDirectory(), 'target not a directory'); - }); - }); -}); diff --git a/node_modules/multipipe/.npmignore b/node_modules/multipipe/.npmignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/multipipe/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/multipipe/.travis.yml b/node_modules/multipipe/.travis.yml deleted file mode 100644 index 6e5919d..0000000 --- a/node_modules/multipipe/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "0.10" diff --git a/node_modules/multipipe/History.md b/node_modules/multipipe/History.md deleted file mode 100644 index 52f6e85..0000000 --- a/node_modules/multipipe/History.md +++ /dev/null @@ -1,25 +0,0 @@ - -0.1.1 / 2014-06-01 -================== - - * update duplexer2 dep - -0.1.0 / 2014-05-24 -================== - - * add optional callback - -0.0.2 / 2014-02-20 -================== - - * fix infinite loop - -0.0.1 / 2014-01-15 -================== - -* fix error bubbling - -0.0.0 / 2014-01-13 -================== - -* initial release diff --git a/node_modules/multipipe/Makefile b/node_modules/multipipe/Makefile deleted file mode 100644 index d1df0ab..0000000 --- a/node_modules/multipipe/Makefile +++ /dev/null @@ -1,10 +0,0 @@ - -node_modules: package.json - @npm install - -test: - @./node_modules/.bin/mocha \ - --reporter spec \ - --timeout 100 - -.PHONY: test \ No newline at end of file diff --git a/node_modules/multipipe/Readme.md b/node_modules/multipipe/Readme.md deleted file mode 100644 index fe8c221..0000000 --- a/node_modules/multipipe/Readme.md +++ /dev/null @@ -1,102 +0,0 @@ -# multipipe - -A better `Stream#pipe` that creates duplex streams and lets you handle errors in one place. - -[![build status](https://secure.travis-ci.org/segmentio/multipipe.png)](http://travis-ci.org/segmentio/multipipe) - -## Example - -```js -var pipe = require('multipipe'); - -// pipe streams -var stream = pipe(streamA, streamB, streamC); - -// centralized error handling -stream.on('error', fn); - -// creates a new stream -source.pipe(stream).pipe(dest); - -// optional callback on finish or error -pipe(streamA, streamB, streamC, function(err){ - // ... -}); -``` - -## Duplex streams - - Write to the pipe and you'll really write to the first stream, read from the pipe and you'll read from the last stream. - -```js -var stream = pipe(a, b, c); - -source - .pipe(stream) - .pipe(destination); -``` - - In this example the flow of data is: - - * source -> - * a -> - * b -> - * c -> - * destination - -## Error handling - - Each `pipe` forwards the errors the streams it wraps emit, so you have one central place to handle errors: - -```js -var stream = pipe(a, b, c); - -stream.on('error', function(err){ - // called three times -}); - -a.emit('error', new Error); -b.emit('error', new Error); -c.emit('error', new Error); -``` - -## API - -### pipe(stream, ...) - -Pass a variable number of streams and each will be piped to the next one. - -A stream will be returned that wraps passed in streams in a way that errors will be forwarded and you can write to and/or read from it. - -Pass a function as last argument to be called on `error` or `finish` of the last stream. - -## Installation - -```bash -$ npm install multipipe -``` - -## License - -The MIT License (MIT) - -Copyright (c) 2014 Segment.io Inc. <friends@segment.io> -Copyright (c) 2014 Julian Gruber <julian@juliangruber.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/multipipe/index.js b/node_modules/multipipe/index.js deleted file mode 100644 index 5e406db..0000000 --- a/node_modules/multipipe/index.js +++ /dev/null @@ -1,72 +0,0 @@ - -/** - * Module dependencies. - */ - -var duplexer = require('duplexer2'); -var Stream = require('stream'); - -/** - * Slice reference. - */ - -var slice = [].slice; - -/** - * Duplexer options. - */ - -var opts = { - bubbleErrors: false -}; - -/** - * Expose `pipe`. - */ - -module.exports = pipe; - -/** - * Pipe. - * - * @param {Stream,...,[Function]} - * @return {Stream} - * @api public - */ - -function pipe(){ - if (arguments.length == 1) return arguments[0]; - var streams = slice.call(arguments); - var cb; - if ('function' == typeof streams[streams.length - 1]) { - cb = streams.splice(-1)[0]; - } - var first = streams[0]; - var last = streams[streams.length - 1]; - var ret; - - if (first.writable && last.readable) ret = duplexer(opts, first, last); - else if (first.writable) ret = first; - else if (last.readable) ret = last; - else ret = new Stream; - - streams.forEach(function(stream, i){ - var next = streams[i+1]; - if (next) stream.pipe(next); - if (stream != ret) stream.on('error', ret.emit.bind(ret, 'error')); - }); - - if (cb) { - var ended = false; - ret.on('error', end); - last.on('finish', end); - function end(err){ - if (ended) return; - ended = true; - cb(err); - } - } - - return ret; -} - diff --git a/node_modules/multipipe/package.json b/node_modules/multipipe/package.json deleted file mode 100644 index 7fb559c..0000000 --- a/node_modules/multipipe/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "multipipe@^0.1.2", - "scope": null, - "escapedName": "multipipe", - "name": "multipipe", - "rawSpec": "^0.1.2", - "spec": ">=0.1.2 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-util" - ] - ], - "_from": "multipipe@>=0.1.2 <0.2.0", - "_id": "multipipe@0.1.2", - "_inCache": true, - "_location": "/multipipe", - "_nodeVersion": "0.10.32", - "_npmUser": { - "name": "juliangruber", - "email": "julian@juliangruber.com" - }, - "_npmVersion": "2.1.5", - "_phantomChildren": {}, - "_requested": { - "raw": "multipipe@^0.1.2", - "scope": null, - "escapedName": "multipipe", - "name": "multipipe", - "rawSpec": "^0.1.2", - "spec": ">=0.1.2 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/gulp-util", - "/gulp-util" - ], - "_resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", - "_shasum": "2a8f2ddf70eed564dff2d57f1e1a137d9f05078b", - "_shrinkwrap": null, - "_spec": "multipipe@^0.1.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-util", - "bugs": { - "url": "https://github.com/juliangruber/multipipe/issues" - }, - "dependencies": { - "duplexer2": "0.0.2" - }, - "description": "pipe streams with centralized error handling", - "devDependencies": { - "mocha": "~1.17.0" - }, - "directories": {}, - "dist": { - "shasum": "2a8f2ddf70eed564dff2d57f1e1a137d9f05078b", - "tarball": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz" - }, - "gitHead": "df434f568b85de914ee7f6ad714343b8736e3315", - "homepage": "https://github.com/juliangruber/multipipe", - "license": "MIT", - "maintainers": [ - { - "name": "juliangruber", - "email": "julian@juliangruber.com" - } - ], - "name": "multipipe", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/juliangruber/multipipe.git" - }, - "scripts": { - "test": "make test" - }, - "version": "0.1.2" -} diff --git a/node_modules/multipipe/test/multipipe.js b/node_modules/multipipe/test/multipipe.js deleted file mode 100644 index 078d2e0..0000000 --- a/node_modules/multipipe/test/multipipe.js +++ /dev/null @@ -1,141 +0,0 @@ -var assert = require('assert'); -var pipe = require('..'); -var Stream = require('stream'); - -describe('pipe(a)', function(){ - it('should return a', function(){ - var readable = Readable(); - var stream = pipe(readable); - assert.equal(stream, readable); - }); -}); - -describe('pipe(a, b, c)', function(){ - it('should pipe internally', function(done){ - pipe(Readable(), Transform(), Writable(done)); - }); - - it('should be writable', function(done){ - var stream = pipe(Transform(), Writable(done)); - assert(stream.writable); - Readable().pipe(stream); - }); - - it('should be readable', function(done){ - var stream = pipe(Readable(), Transform()); - assert(stream.readable); - stream.pipe(Writable(done)); - }); - - it('should be readable and writable', function(done){ - var stream = pipe(Transform(), Transform()); - assert(stream.readable); - assert(stream.writable); - Readable() - .pipe(stream) - .pipe(Writable(done)); - }); - - describe('errors', function(){ - it('should reemit', function(done){ - var a = Transform(); - var b = Transform(); - var c = Transform(); - var stream = pipe(a, b, c); - var err = new Error; - var i = 0; - - stream.on('error', function(_err){ - i++; - assert.equal(_err, err); - assert(i <= 3); - if (i == 3) done(); - }); - - a.emit('error', err); - b.emit('error', err); - c.emit('error', err); - }); - - it('should not reemit endlessly', function(done){ - var a = Transform(); - var b = Transform(); - var c = Transform(); - c.readable = false; - var stream = pipe(a, b, c); - var err = new Error; - var i = 0; - - stream.on('error', function(_err){ - i++; - assert.equal(_err, err); - assert(i <= 3); - if (i == 3) done(); - }); - - a.emit('error', err); - b.emit('error', err); - c.emit('error', err); - }); - }); -}); - -describe('pipe(a, b, c, fn)', function(){ - it('should call on finish', function(done){ - var finished = false; - var a = Readable(); - var b = Transform(); - var c = Writable(function(){ - finished = true; - }); - - pipe(a, b, c, function(err){ - assert(!err); - assert(finished); - done(); - }); - }); - - it('should call with error once', function(done){ - var a = Readable(); - var b = Transform(); - var c = Writable(); - var err = new Error; - - pipe(a, b, c, function(err){ - assert(err); - done(); - }); - - a.emit('error', err); - b.emit('error', err); - c.emit('error', err); - }); -}); - -function Readable(){ - var readable = new Stream.Readable({ objectMode: true }); - readable._read = function(){ - this.push('a'); - this.push(null); - }; - return readable; -} - -function Transform(){ - var transform = new Stream.Transform({ objectMode: true }); - transform._transform = function(chunk, _, done){ - done(null, chunk.toUpperCase()); - }; - return transform; -} - -function Writable(cb){ - var writable = new Stream.Writable({ objectMode: true }); - writable._write = function(chunk, _, done){ - assert.equal(chunk, 'A'); - done(); - cb(); - }; - return writable; -} diff --git a/node_modules/mute-stream/LICENSE b/node_modules/mute-stream/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/mute-stream/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/mute-stream/README.md b/node_modules/mute-stream/README.md deleted file mode 100644 index 8ab1238..0000000 --- a/node_modules/mute-stream/README.md +++ /dev/null @@ -1,68 +0,0 @@ -# mute-stream - -Bytes go in, but they don't come out (when muted). - -This is a basic pass-through stream, but when muted, the bytes are -silently dropped, rather than being passed through. - -## Usage - -```javascript -var MuteStream = require('mute-stream') - -var ms = new MuteStream(options) - -ms.pipe(process.stdout) -ms.write('foo') // writes 'foo' to stdout -ms.mute() -ms.write('bar') // does not write 'bar' -ms.unmute() -ms.write('baz') // writes 'baz' to stdout - -// can also be used to mute incoming data -var ms = new MuteStream -input.pipe(ms) - -ms.on('data', function (c) { - console.log('data: ' + c) -}) - -input.emit('data', 'foo') // logs 'foo' -ms.mute() -input.emit('data', 'bar') // does not log 'bar' -ms.unmute() -input.emit('data', 'baz') // logs 'baz' -``` - -## Options - -All options are optional. - -* `replace` Set to a string to replace each character with the - specified string when muted. (So you can show `****` instead of the - password, for example.) - -* `prompt` If you are using a replacement char, and also using a - prompt with a readline stream (as for a `Password: *****` input), - then specify what the prompt is so that backspace will work - properly. Otherwise, pressing backspace will overwrite the prompt - with the replacement character, which is weird. - -## ms.mute() - -Set `muted` to `true`. Turns `.write()` into a no-op. - -## ms.unmute() - -Set `muted` to `false` - -## ms.isTTY - -True if the pipe destination is a TTY, or if the incoming pipe source is -a TTY. - -## Other stream methods... - -The other standard readable and writable stream methods are all -available. The MuteStream object acts as a facade to its pipe source -and destination. diff --git a/node_modules/mute-stream/mute.js b/node_modules/mute-stream/mute.js deleted file mode 100644 index 42eac31..0000000 --- a/node_modules/mute-stream/mute.js +++ /dev/null @@ -1,140 +0,0 @@ -var Stream = require('stream') - -module.exports = MuteStream - -// var out = new MuteStream(process.stdout) -// argument auto-pipes -function MuteStream (opts) { - Stream.apply(this) - opts = opts || {} - this.writable = this.readable = true - this.muted = false - this.on('pipe', this._onpipe) - this.replace = opts.replace - - // For readline-type situations - // This much at the start of a line being redrawn after a ctrl char - // is seen (such as backspace) won't be redrawn as the replacement - this._prompt = opts.prompt || null - this._hadControl = false -} - -MuteStream.prototype = Object.create(Stream.prototype) - -Object.defineProperty(MuteStream.prototype, 'constructor', { - value: MuteStream, - enumerable: false -}) - -MuteStream.prototype.mute = function () { - this.muted = true -} - -MuteStream.prototype.unmute = function () { - this.muted = false -} - -Object.defineProperty(MuteStream.prototype, '_onpipe', { - value: onPipe, - enumerable: false, - writable: true, - configurable: true -}) - -function onPipe (src) { - this._src = src -} - -Object.defineProperty(MuteStream.prototype, 'isTTY', { - get: getIsTTY, - set: setIsTTY, - enumerable: true, - configurable: true -}) - -function getIsTTY () { - return( (this._dest) ? this._dest.isTTY - : (this._src) ? this._src.isTTY - : false - ) -} - -// basically just get replace the getter/setter with a regular value -function setIsTTY (isTTY) { - Object.defineProperty(this, 'isTTY', { - value: isTTY, - enumerable: true, - writable: true, - configurable: true - }) -} - -Object.defineProperty(MuteStream.prototype, 'rows', { - get: function () { - return( this._dest ? this._dest.rows - : this._src ? this._src.rows - : undefined ) - }, enumerable: true, configurable: true }) - -Object.defineProperty(MuteStream.prototype, 'columns', { - get: function () { - return( this._dest ? this._dest.columns - : this._src ? this._src.columns - : undefined ) - }, enumerable: true, configurable: true }) - - -MuteStream.prototype.pipe = function (dest) { - this._dest = dest - return Stream.prototype.pipe.call(this, dest) -} - -MuteStream.prototype.pause = function () { - if (this._src) return this._src.pause() -} - -MuteStream.prototype.resume = function () { - if (this._src) return this._src.resume() -} - -MuteStream.prototype.write = function (c) { - if (this.muted) { - if (!this.replace) return true - if (c.match(/^\u001b/)) { - this._hadControl = true - return this.emit('data', c) - } else { - if (this._prompt && this._hadControl && - c.indexOf(this._prompt) === 0) { - this._hadControl = false - this.emit('data', this._prompt) - c = c.substr(this._prompt.length) - } - c = c.toString().replace(/./g, this.replace) - } - } - this.emit('data', c) -} - -MuteStream.prototype.end = function (c) { - if (this.muted) { - if (c && this.replace) { - c = c.toString().replace(/./g, this.replace) - } else { - c = null - } - } - if (c) this.emit('data', c) - this.emit('end') -} - -function proxy (fn) { return function () { - var d = this._dest - var s = this._src - if (d && d[fn]) d[fn].apply(d, arguments) - if (s && s[fn]) s[fn].apply(s, arguments) -}} - -MuteStream.prototype.destroy = proxy('destroy') -MuteStream.prototype.destroySoon = proxy('destroySoon') -MuteStream.prototype.close = proxy('close') diff --git a/node_modules/mute-stream/package.json b/node_modules/mute-stream/package.json deleted file mode 100644 index b370753..0000000 --- a/node_modules/mute-stream/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "mute-stream@0.0.5", - "scope": null, - "escapedName": "mute-stream", - "name": "mute-stream", - "rawSpec": "0.0.5", - "spec": "0.0.5", - "type": "version" - }, - "/Users/jose/Documents/GitHub/About/node_modules/readline2" - ] - ], - "_from": "mute-stream@0.0.5", - "_id": "mute-stream@0.0.5", - "_inCache": true, - "_location": "/mute-stream", - "_nodeVersion": "2.0.1", - "_npmUser": { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - "_npmVersion": "2.10.0", - "_phantomChildren": {}, - "_requested": { - "raw": "mute-stream@0.0.5", - "scope": null, - "escapedName": "mute-stream", - "name": "mute-stream", - "rawSpec": "0.0.5", - "spec": "0.0.5", - "type": "version" - }, - "_requiredBy": [ - "/readline2" - ], - "_resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz", - "_shasum": "8fbfabb0a98a253d3184331f9e8deb7372fac6c0", - "_shrinkwrap": null, - "_spec": "mute-stream@0.0.5", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/readline2", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/mute-stream/issues" - }, - "dependencies": {}, - "description": "Bytes go in, but they don't come out (when muted).", - "devDependencies": { - "tap": "~0.2.5" - }, - "directories": { - "test": "test" - }, - "dist": { - "shasum": "8fbfabb0a98a253d3184331f9e8deb7372fac6c0", - "tarball": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz" - }, - "gitHead": "17d9854a315f56088d039534f87b740e470a9af0", - "homepage": "https://github.com/isaacs/mute-stream#readme", - "keywords": [ - "mute", - "stream", - "pipe" - ], - "license": "ISC", - "main": "mute.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "mute-stream", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/mute-stream.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "0.0.5" -} diff --git a/node_modules/mute-stream/test/basic.js b/node_modules/mute-stream/test/basic.js deleted file mode 100644 index 41f9e10..0000000 --- a/node_modules/mute-stream/test/basic.js +++ /dev/null @@ -1,207 +0,0 @@ -var Stream = require('stream') -var tap = require('tap') -var MS = require('../mute.js') - -// some marker objects -var END = {} -var PAUSE = {} -var RESUME = {} - -function PassThrough () { - Stream.call(this) - this.readable = this.writable = true -} - -PassThrough.prototype = Object.create(Stream.prototype, { - constructor: { - value: PassThrough - }, - write: { - value: function (c) { - this.emit('data', c) - return true - } - }, - end: { - value: function (c) { - if (c) this.write(c) - this.emit('end') - } - }, - pause: { - value: function () { - this.emit('pause') - } - }, - resume: { - value: function () { - this.emit('resume') - } - } -}) - -tap.test('incoming', function (t) { - var ms = new MS - var str = new PassThrough - str.pipe(ms) - - var expect = ['foo', 'boo', END] - ms.on('data', function (c) { - t.equal(c, expect.shift()) - }) - ms.on('end', function () { - t.equal(END, expect.shift()) - t.end() - }) - str.write('foo') - ms.mute() - str.write('bar') - ms.unmute() - str.write('boo') - ms.mute() - str.write('blaz') - str.end('grelb') -}) - -tap.test('outgoing', function (t) { - var ms = new MS - var str = new PassThrough - ms.pipe(str) - - var expect = ['foo', 'boo', END] - str.on('data', function (c) { - t.equal(c, expect.shift()) - }) - str.on('end', function () { - t.equal(END, expect.shift()) - t.end() - }) - - ms.write('foo') - ms.mute() - ms.write('bar') - ms.unmute() - ms.write('boo') - ms.mute() - ms.write('blaz') - ms.end('grelb') -}) - -tap.test('isTTY', function (t) { - var str = new PassThrough - str.isTTY = true - str.columns=80 - str.rows=24 - - var ms = new MS - t.equal(ms.isTTY, false) - t.equal(ms.columns, undefined) - t.equal(ms.rows, undefined) - ms.pipe(str) - t.equal(ms.isTTY, true) - t.equal(ms.columns, 80) - t.equal(ms.rows, 24) - str.isTTY = false - t.equal(ms.isTTY, false) - t.equal(ms.columns, 80) - t.equal(ms.rows, 24) - str.isTTY = true - t.equal(ms.isTTY, true) - t.equal(ms.columns, 80) - t.equal(ms.rows, 24) - ms.isTTY = false - t.equal(ms.isTTY, false) - t.equal(ms.columns, 80) - t.equal(ms.rows, 24) - - ms = new MS - t.equal(ms.isTTY, false) - str.pipe(ms) - t.equal(ms.isTTY, true) - str.isTTY = false - t.equal(ms.isTTY, false) - str.isTTY = true - t.equal(ms.isTTY, true) - ms.isTTY = false - t.equal(ms.isTTY, false) - - t.end() -}) - -tap.test('pause/resume incoming', function (t) { - var str = new PassThrough - var ms = new MS - str.on('pause', function () { - t.equal(PAUSE, expect.shift()) - }) - str.on('resume', function () { - t.equal(RESUME, expect.shift()) - }) - var expect = [PAUSE, RESUME, PAUSE, RESUME] - str.pipe(ms) - ms.pause() - ms.resume() - ms.pause() - ms.resume() - t.equal(expect.length, 0, 'saw all events') - t.end() -}) - -tap.test('replace with *', function (t) { - var str = new PassThrough - var ms = new MS({replace: '*'}) - str.pipe(ms) - var expect = ['foo', '*****', 'bar', '***', 'baz', 'boo', '**', '****'] - - ms.on('data', function (c) { - t.equal(c, expect.shift()) - }) - - str.write('foo') - ms.mute() - str.write('12345') - ms.unmute() - str.write('bar') - ms.mute() - str.write('baz') - ms.unmute() - str.write('baz') - str.write('boo') - ms.mute() - str.write('xy') - str.write('xyzΩ') - - t.equal(expect.length, 0) - t.end() -}) - -tap.test('replace with ~YARG~', function (t) { - var str = new PassThrough - var ms = new MS({replace: '~YARG~'}) - str.pipe(ms) - var expect = ['foo', '~YARG~~YARG~~YARG~~YARG~~YARG~', 'bar', - '~YARG~~YARG~~YARG~', 'baz', 'boo', '~YARG~~YARG~', - '~YARG~~YARG~~YARG~~YARG~'] - - ms.on('data', function (c) { - t.equal(c, expect.shift()) - }) - - // also throw some unicode in there, just for good measure. - str.write('foo') - ms.mute() - str.write('ΩΩ') - ms.unmute() - str.write('bar') - ms.mute() - str.write('Ω') - ms.unmute() - str.write('baz') - str.write('boo') - ms.mute() - str.write('Ω') - str.write('ΩΩ') - - t.equal(expect.length, 0) - t.end() -}) diff --git a/node_modules/nan/CHANGELOG.md b/node_modules/nan/CHANGELOG.md deleted file mode 100644 index 0a5487b..0000000 --- a/node_modules/nan/CHANGELOG.md +++ /dev/null @@ -1,441 +0,0 @@ -# NAN ChangeLog - -**Version 2.5.1: current Node 7.4.0, Node 12: 0.12.18, Node 10: 0.10.48, iojs: 3.3.1** - -### 2.5.1 Jan 23 2017 - - - Bugfix: Fix disappearing handle for private value 6a80995694f162ef63dbc9948fbefd45d4485aa0 - - Bugfix: Add missing scopes a93b8bae6bc7d32a170db6e89228b7f60ee57112 - - Bugfix: Use string::data instead of string::front in NewOneByteString d5f920371e67e1f3b268295daee6e83af86b6e50 - -### 2.5.0 Dec 21 2016 - - - Feature: Support Private accessors a86255cb357e8ad8ccbf1f6a4a901c921e39a178 - - Bugfix: Abort in delete operators that shouldn't be called 0fe38215ff8581703967dfd26c12793feb960018 - -### 2.4.0 Jul 10 2016 - - - Feature: Rewrite Callback to add Callback::Reset c4cf44d61f8275cd5f7b0c911d7a806d4004f649 - - Feature: AsyncProgressWorker: add template types for .send 1242c9a11a7ed481c8f08ec06316385cacc513d0 - - Bugfix: Add constness to old Persistent comparison operators bd43cb9982c7639605d60fd073efe8cae165d9b2 - -### 2.3.5 May 31 2016 - - - Bugfix: Replace NAN_INLINE with 'inline' keyword. 71819d8725f822990f439479c9aba3b240804909 - -### 2.3.4 May 31 2016 - - - Bugfix: Remove V8 deprecation warnings 0592fb0a47f3a1c7763087ebea8e1138829f24f9 - - Bugfix: Fix new versions not to use WeakCallbackInfo::IsFirstPass 615c19d9e03d4be2049c10db0151edbc3b229246 - - Bugfix: Make ObjectWrap::handle() const d19af99595587fe7a26bd850af6595c2a7145afc - - Bugfix: Fix compilation errors related to 0592fb0a47f3a1c7763087ebea8e1138829f24f9 e9191c525b94f652718325e28610a1adcf90fed8 - -### 2.3.3 May 4 2016 - - - Bugfix: Refactor SetMethod() to deal with v8::Templates (#566) b9083cf6d5de6ebe6bcb49c7502fbb7c0d9ddda8 - -### 2.3.2 Apr 27 2016 - - - Bugfix: Fix compilation on outdated versions due to Handle removal f8b7c875d04d425a41dfd4f3f8345bc3a11e6c52 - -### 2.3.1 Apr 27 2016 - - - Bugfix: Don't use deprecated v8::Template::Set() in SetMethod a90951e9ea70fa1b3836af4b925322919159100e - -### 2.3.0 Apr 27 2016 - - - Feature: added Signal() for invoking async callbacks without sending data from AsyncProgressWorker d8adba45f20e077d00561b20199133620c990b38 - - Bugfix: Don't use deprecated v8::Template::Set() 00dacf0a4b86027415867fa7f1059acc499dcece - -### 2.2.1 Mar 29 2016 - - - Bugfix: Use NewFromUnsigned in ReturnValue::Set(uint32_t i) for pre_12 3a18f9bdce29826e0e4c217854bc476918241a58 - - Performance: Remove unneeeded nullptr checks b715ef44887931c94f0d1605b3b1a4156eebece9 - -### 2.2.0 Jan 9 2016 - - - Feature: Add Function::Call wrapper 4c157474dacf284d125c324177b45aa5dabc08c6 - - Feature: Rename GC*logueCallback to GCCallback for > 4.0 3603435109f981606d300eb88004ca101283acec - - Bugfix: Fix Global::Pass for old versions 367e82a60fbaa52716232cc89db1cc3f685d77d9 - - Bugfix: Remove weird MaybeLocal wrapping of what already is a MaybeLocal 23b4590db10c2ba66aee2338aebe9751c4cb190b - -### 2.1.0 Oct 8 2015 - - - Deprecation: Deprecate NanErrnoException in favor of ErrnoException 0af1ca4cf8b3f0f65ed31bc63a663ab3319da55c - - Feature: added helper class for accessing contents of typedarrays 17b51294c801e534479d5463697a73462d0ca555 - - Feature: [Maybe types] Add MakeMaybe(...) 48d7b53d9702b0c7a060e69ea10fea8fb48d814d - - Feature: new: allow utf16 string with length 66ac6e65c8ab9394ef588adfc59131b3b9d8347b - - Feature: Introduce SetCallHandler and SetCallAsFunctionHandler 7764a9a115d60ba10dc24d86feb0fbc9b4f75537 - - Bugfix: Enable creating Locals from Globals under Node 0.10. 9bf9b8b190821af889790fdc18ace57257e4f9ff - - Bugfix: Fix issue #462 where PropertyCallbackInfo data is not stored safely. 55f50adedd543098526c7b9f4fffd607d3f9861f - -### 2.0.9 Sep 8 2015 - - - Bugfix: EscapableHandleScope in Nan::NewBuffer for Node 0.8 and 0.10 b1654d7 - -### 2.0.8 Aug 28 2015 - - - Work around duplicate linking bug in clang 11902da - -### 2.0.7 Aug 26 2015 - - - Build: Repackage - -### 2.0.6 Aug 26 2015 - - - Bugfix: Properly handle null callback in FunctionTemplate factory 6e99cb1 - - Bugfix: Remove unused static std::map instances 525bddc - - Bugfix: Make better use of maybe versions of APIs bfba85b - - Bugfix: Fix shadowing issues with handle in ObjectWrap 0a9072d - -### 2.0.5 Aug 10 2015 - - - Bugfix: Reimplement weak callback in ObjectWrap 98d38c1 - - Bugfix: Make sure callback classes are not assignable, copyable or movable 81f9b1d - -### 2.0.4 Aug 6 2015 - - - Build: Repackage - -### 2.0.3 Aug 6 2015 - - - Bugfix: Don't use clang++ / g++ syntax extension. 231450e - -### 2.0.2 Aug 6 2015 - - - Build: Repackage - -### 2.0.1 Aug 6 2015 - - - Bugfix: Add workaround for missing REPLACE_INVALID_UTF8 60d6687 - - Bugfix: Reimplement ObjectWrap from scratch to prevent memory leaks 6484601 - - Bugfix: Fix Persistent leak in FunctionCallbackInfo and PropertyCallbackInfo 641ef5f - - Bugfix: Add missing overload for Nan::NewInstance that takes argc/argv 29450ed - -### 2.0.0 Jul 31 2015 - - - Change: Renamed identifiers with leading underscores b5932b4 - - Change: Replaced NanObjectWrapHandle with class NanObjectWrap 464f1e1 - - Change: Replace NanScope and NanEscpableScope macros with classes 47751c4 - - Change: Rename NanNewBufferHandle to NanNewBuffer 6745f99 - - Change: Rename NanBufferUse to NanNewBuffer 3e8b0a5 - - Change: Rename NanNewBuffer to NanCopyBuffer d6af78d - - Change: Remove Nan prefix from all names 72d1f67 - - Change: Update Buffer API for new upstream changes d5d3291 - - Change: Rename Scope and EscapableScope to HandleScope and EscapableHandleScope 21a7a6a - - Change: Get rid of Handles e6c0daf - - Feature: Support io.js 3 with V8 4.4 - - Feature: Introduce NanPersistent 7fed696 - - Feature: Introduce NanGlobal 4408da1 - - Feature: Added NanTryCatch 10f1ca4 - - Feature: Update for V8 v4.3 4b6404a - - Feature: Introduce NanNewOneByteString c543d32 - - Feature: Introduce namespace Nan 67ed1b1 - - Removal: Remove NanLocker and NanUnlocker dd6e401 - - Removal: Remove string converters, except NanUtf8String, which now follows the node implementation b5d00a9 - - Removal: Remove NanReturn* macros d90a25c - - Removal: Remove HasInstance e8f84fe - - -### 1.9.0 Jul 31 2015 - - - Feature: Added `NanFatalException` 81d4a2c - - Feature: Added more error types 4265f06 - - Feature: Added dereference and function call operators to NanCallback c4b2ed0 - - Feature: Added indexed GetFromPersistent and SaveToPersistent edd510c - - Feature: Added more overloads of SaveToPersistent and GetFromPersistent 8b1cef6 - - Feature: Added NanErrnoException dd87d9e - - Correctness: Prevent assign, copy, and move for classes that do not support it 1f55c59, 4b808cb, c96d9b2, fba4a29, 3357130 - - Deprecation: Deprecate `NanGetPointerSafe` and `NanSetPointerSafe` 81d4a2c - - Deprecation: Deprecate `NanBooleanOptionValue` and `NanUInt32OptionValue` 0ad254b - -### 1.8.4 Apr 26 2015 - - - Build: Repackage - -### 1.8.3 Apr 26 2015 - - - Bugfix: Include missing header 1af8648 - -### 1.8.2 Apr 23 2015 - - - Build: Repackage - -### 1.8.1 Apr 23 2015 - - - Bugfix: NanObjectWrapHandle should take a pointer 155f1d3 - -### 1.8.0 Apr 23 2015 - - - Feature: Allow primitives with NanReturnValue 2e4475e - - Feature: Added comparison operators to NanCallback 55b075e - - Feature: Backport thread local storage 15bb7fa - - Removal: Remove support for signatures with arguments 8a2069d - - Correcteness: Replaced NanObjectWrapHandle macro with function 0bc6d59 - -### 1.7.0 Feb 28 2015 - - - Feature: Made NanCallback::Call accept optional target 8d54da7 - - Feature: Support atom-shell 0.21 0b7f1bb - -### 1.6.2 Feb 6 2015 - - - Bugfix: NanEncode: fix argument type for node::Encode on io.js 2be8639 - -### 1.6.1 Jan 23 2015 - - - Build: version bump - -### 1.5.3 Jan 23 2015 - - - Build: repackage - -### 1.6.0 Jan 23 2015 - - - Deprecated `NanNewContextHandle` in favor of `NanNew` 49259af - - Support utility functions moved in newer v8 versions (Node 0.11.15, io.js 1.0) a0aa179 - - Added `NanEncode`, `NanDecodeBytes` and `NanDecodeWrite` 75e6fb9 - -### 1.5.2 Jan 23 2015 - - - Bugfix: Fix non-inline definition build error with clang++ 21d96a1, 60fadd4 - - Bugfix: Readded missing String constructors 18d828f - - Bugfix: Add overload handling NanNew(..) 5ef813b - - Bugfix: Fix uv_work_cb versioning 997e4ae - - Bugfix: Add function factory and test 4eca89c - - Bugfix: Add object template factory and test cdcb951 - - Correctness: Lifted an io.js related typedef c9490be - - Correctness: Make explicit downcasts of String lengths 00074e6 - - Windows: Limit the scope of disabled warning C4530 83d7deb - -### 1.5.1 Jan 15 2015 - - - Build: version bump - -### 1.4.3 Jan 15 2015 - - - Build: version bump - -### 1.4.2 Jan 15 2015 - - - Feature: Support io.js 0dbc5e8 - -### 1.5.0 Jan 14 2015 - - - Feature: Support io.js b003843 - - Correctness: Improved NanNew internals 9cd4f6a - - Feature: Implement progress to NanAsyncWorker 8d6a160 - -### 1.4.1 Nov 8 2014 - - - Bugfix: Handle DEBUG definition correctly - - Bugfix: Accept int as Boolean - -### 1.4.0 Nov 1 2014 - - - Feature: Added NAN_GC_CALLBACK 6a5c245 - - Performance: Removed unnecessary local handle creation 18a7243, 41fe2f8 - - Correctness: Added constness to references in NanHasInstance 02c61cd - - Warnings: Fixed spurious warnings from -Wundef and -Wshadow, 541b122, 99d8cb6 - - Windoze: Shut Visual Studio up when compiling 8d558c1 - - License: Switch to plain MIT from custom hacked MIT license 11de983 - - Build: Added test target to Makefile e232e46 - - Performance: Removed superfluous scope in NanAsyncWorker f4b7821 - - Sugar/Feature: Added NanReturnThis() and NanReturnHolder() shorthands 237a5ff, d697208 - - Feature: Added suitable overload of NanNew for v8::Integer::NewFromUnsigned b27b450 - -### 1.3.0 Aug 2 2014 - - - Added NanNew(std::string) - - Added NanNew(std::string&) - - Added NanAsciiString helper class - - Added NanUtf8String helper class - - Added NanUcs2String helper class - - Deprecated NanRawString() - - Deprecated NanCString() - - Added NanGetIsolateData(v8::Isolate *isolate) - - Added NanMakeCallback(v8::Handle target, v8::Handle func, int argc, v8::Handle* argv) - - Added NanMakeCallback(v8::Handle target, v8::Handle symbol, int argc, v8::Handle* argv) - - Added NanMakeCallback(v8::Handle target, const char* method, int argc, v8::Handle* argv) - - Added NanSetTemplate(v8::Handle templ, v8::Handle name , v8::Handle value, v8::PropertyAttribute attributes) - - Added NanSetPrototypeTemplate(v8::Local templ, v8::Handle name, v8::Handle value, v8::PropertyAttribute attributes) - - Added NanSetInstanceTemplate(v8::Local templ, const char *name, v8::Handle value) - - Added NanSetInstanceTemplate(v8::Local templ, v8::Handle name, v8::Handle value, v8::PropertyAttribute attributes) - -### 1.2.0 Jun 5 2014 - - - Add NanSetPrototypeTemplate - - Changed NAN_WEAK_CALLBACK internals, switched _NanWeakCallbackData to class, - introduced _NanWeakCallbackDispatcher - - Removed -Wno-unused-local-typedefs from test builds - - Made test builds Windows compatible ('Sleep()') - -### 1.1.2 May 28 2014 - - - Release to fix more stuff-ups in 1.1.1 - -### 1.1.1 May 28 2014 - - - Release to fix version mismatch in nan.h and lack of changelog entry for 1.1.0 - -### 1.1.0 May 25 2014 - - - Remove nan_isolate, use v8::Isolate::GetCurrent() internally instead - - Additional explicit overloads for NanNew(): (char*,int), (uint8_t*[,int]), - (uint16_t*[,int), double, int, unsigned int, bool, v8::String::ExternalStringResource*, - v8::String::ExternalAsciiStringResource* - - Deprecate NanSymbol() - - Added SetErrorMessage() and ErrorMessage() to NanAsyncWorker - -### 1.0.0 May 4 2014 - - - Heavy API changes for V8 3.25 / Node 0.11.13 - - Use cpplint.py - - Removed NanInitPersistent - - Removed NanPersistentToLocal - - Removed NanFromV8String - - Removed NanMakeWeak - - Removed NanNewLocal - - Removed NAN_WEAK_CALLBACK_OBJECT - - Removed NAN_WEAK_CALLBACK_DATA - - Introduce NanNew, replaces NanNewLocal, NanPersistentToLocal, adds many overloaded typed versions - - Introduce NanUndefined, NanNull, NanTrue and NanFalse - - Introduce NanEscapableScope and NanEscapeScope - - Introduce NanMakeWeakPersistent (requires a special callback to work on both old and new node) - - Introduce NanMakeCallback for node::MakeCallback - - Introduce NanSetTemplate - - Introduce NanGetCurrentContext - - Introduce NanCompileScript and NanRunScript - - Introduce NanAdjustExternalMemory - - Introduce NanAddGCEpilogueCallback, NanAddGCPrologueCallback, NanRemoveGCEpilogueCallback, NanRemoveGCPrologueCallback - - Introduce NanGetHeapStatistics - - Rename NanAsyncWorker#SavePersistent() to SaveToPersistent() - -### 0.8.0 Jan 9 2014 - - - NanDispose -> NanDisposePersistent, deprecate NanDispose - - Extract _NAN_*_RETURN_TYPE, pull up NAN_*() - -### 0.7.1 Jan 9 2014 - - - Fixes to work against debug builds of Node - - Safer NanPersistentToLocal (avoid reinterpret_cast) - - Speed up common NanRawString case by only extracting flattened string when necessary - -### 0.7.0 Dec 17 2013 - - - New no-arg form of NanCallback() constructor. - - NanCallback#Call takes Handle rather than Local - - Removed deprecated NanCallback#Run method, use NanCallback#Call instead - - Split off _NAN_*_ARGS_TYPE from _NAN_*_ARGS - - Restore (unofficial) Node 0.6 compatibility at NanCallback#Call() - - Introduce NanRawString() for char* (or appropriate void*) from v8::String - (replacement for NanFromV8String) - - Introduce NanCString() for null-terminated char* from v8::String - -### 0.6.0 Nov 21 2013 - - - Introduce NanNewLocal(v8::Handle value) for use in place of - v8::Local::New(...) since v8 started requiring isolate in Node 0.11.9 - -### 0.5.2 Nov 16 2013 - - - Convert SavePersistent and GetFromPersistent in NanAsyncWorker from protected and public - -### 0.5.1 Nov 12 2013 - - - Use node::MakeCallback() instead of direct v8::Function::Call() - -### 0.5.0 Nov 11 2013 - - - Added @TooTallNate as collaborator - - New, much simpler, "include_dirs" for binding.gyp - - Added full range of NAN_INDEX_* macros to match NAN_PROPERTY_* macros - -### 0.4.4 Nov 2 2013 - - - Isolate argument from v8::Persistent::MakeWeak removed for 0.11.8+ - -### 0.4.3 Nov 2 2013 - - - Include node_object_wrap.h, removed from node.h for Node 0.11.8. - -### 0.4.2 Nov 2 2013 - - - Handle deprecation of v8::Persistent::Dispose(v8::Isolate* isolate)) for - Node 0.11.8 release. - -### 0.4.1 Sep 16 2013 - - - Added explicit `#include ` as it was removed from node.h for v0.11.8 - -### 0.4.0 Sep 2 2013 - - - Added NAN_INLINE and NAN_DEPRECATED and made use of them - - Added NanError, NanTypeError and NanRangeError - - Cleaned up code - -### 0.3.2 Aug 30 2013 - - - Fix missing scope declaration in GetFromPersistent() and SaveToPersistent - in NanAsyncWorker - -### 0.3.1 Aug 20 2013 - - - fix "not all control paths return a value" compile warning on some platforms - -### 0.3.0 Aug 19 2013 - - - Made NAN work with NPM - - Lots of fixes to NanFromV8String, pulling in features from new Node core - - Changed node::encoding to Nan::Encoding in NanFromV8String to unify the API - - Added optional error number argument for NanThrowError() - - Added NanInitPersistent() - - Added NanReturnNull() and NanReturnEmptyString() - - Added NanLocker and NanUnlocker - - Added missing scopes - - Made sure to clear disposed Persistent handles - - Changed NanAsyncWorker to allocate error messages on the heap - - Changed NanThrowError(Local) to NanThrowError(Handle) - - Fixed leak in NanAsyncWorker when errmsg is used - -### 0.2.2 Aug 5 2013 - - - Fixed usage of undefined variable with node::BASE64 in NanFromV8String() - -### 0.2.1 Aug 5 2013 - - - Fixed 0.8 breakage, node::BUFFER encoding type not available in 0.8 for - NanFromV8String() - -### 0.2.0 Aug 5 2013 - - - Added NAN_PROPERTY_GETTER, NAN_PROPERTY_SETTER, NAN_PROPERTY_ENUMERATOR, - NAN_PROPERTY_DELETER, NAN_PROPERTY_QUERY - - Extracted _NAN_METHOD_ARGS, _NAN_GETTER_ARGS, _NAN_SETTER_ARGS, - _NAN_PROPERTY_GETTER_ARGS, _NAN_PROPERTY_SETTER_ARGS, - _NAN_PROPERTY_ENUMERATOR_ARGS, _NAN_PROPERTY_DELETER_ARGS, - _NAN_PROPERTY_QUERY_ARGS - - Added NanGetInternalFieldPointer, NanSetInternalFieldPointer - - Added NAN_WEAK_CALLBACK, NAN_WEAK_CALLBACK_OBJECT, - NAN_WEAK_CALLBACK_DATA, NanMakeWeak - - Renamed THROW_ERROR to _NAN_THROW_ERROR - - Added NanNewBufferHandle(char*, size_t, node::smalloc::FreeCallback, void*) - - Added NanBufferUse(char*, uint32_t) - - Added NanNewContextHandle(v8::ExtensionConfiguration*, - v8::Handle, v8::Handle) - - Fixed broken NanCallback#GetFunction() - - Added optional encoding and size arguments to NanFromV8String() - - Added NanGetPointerSafe() and NanSetPointerSafe() - - Added initial test suite (to be expanded) - - Allow NanUInt32OptionValue to convert any Number object - -### 0.1.0 Jul 21 2013 - - - Added `NAN_GETTER`, `NAN_SETTER` - - Added `NanThrowError` with single Local argument - - Added `NanNewBufferHandle` with single uint32_t argument - - Added `NanHasInstance(Persistent&, Handle)` - - Added `Local NanCallback#GetFunction()` - - Added `NanCallback#Call(int, Local[])` - - Deprecated `NanCallback#Run(int, Local[])` in favour of Call diff --git a/node_modules/nan/LICENSE.md b/node_modules/nan/LICENSE.md deleted file mode 100644 index d4d2da7..0000000 --- a/node_modules/nan/LICENSE.md +++ /dev/null @@ -1,13 +0,0 @@ -The MIT License (MIT) -===================== - -Copyright (c) 2017 NAN contributors ------------------------------------ - -*NAN contributors listed at * - -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/nan/README.md b/node_modules/nan/README.md deleted file mode 100644 index 2946c97..0000000 --- a/node_modules/nan/README.md +++ /dev/null @@ -1,407 +0,0 @@ -Native Abstractions for Node.js -=============================== - -**A header file filled with macro and utility goodness for making add-on development for Node.js easier across versions 0.8, 0.10, 0.12, 1, 4, 5, 6 and 7.** - -***Current version: 2.5.1*** - -*(See [CHANGELOG.md](https://github.com/nodejs/nan/blob/master/CHANGELOG.md) for complete ChangeLog)* - -[![NPM](https://nodei.co/npm/nan.png?downloads=true&downloadRank=true)](https://nodei.co/npm/nan/) [![NPM](https://nodei.co/npm-dl/nan.png?months=6&height=3)](https://nodei.co/npm/nan/) - -[![Build Status](https://api.travis-ci.org/nodejs/nan.svg?branch=master)](http://travis-ci.org/nodejs/nan) -[![Build status](https://ci.appveyor.com/api/projects/status/kh73pbm9dsju7fgh)](https://ci.appveyor.com/project/RodVagg/nan) - -Thanks to the crazy changes in V8 (and some in Node core), keeping native addons compiling happily across versions, particularly 0.10 to 0.12 to 4.0, is a minor nightmare. The goal of this project is to store all logic necessary to develop native Node.js addons without having to inspect `NODE_MODULE_VERSION` and get yourself into a macro-tangle. - -This project also contains some helper utilities that make addon development a bit more pleasant. - - * **[News & Updates](#news)** - * **[Usage](#usage)** - * **[Example](#example)** - * **[API](#api)** - * **[Tests](#tests)** - * **[Governance & Contributing](#governance)** - - -## News & Updates - - -## Usage - -Simply add **NAN** as a dependency in the *package.json* of your Node addon: - -``` bash -$ npm install --save nan -``` - -Pull in the path to **NAN** in your *binding.gyp* so that you can use `#include ` in your *.cpp* files: - -``` python -"include_dirs" : [ - "` when compiling your addon. - - -## Example - -Just getting started with Nan? Take a look at the **[Node Add-on Examples](https://github.com/nodejs/node-addon-examples)**. - -Refer to a [quick-start **Nan** Boilerplate](https://github.com/fcanas/node-native-boilerplate) for a ready-to-go project that utilizes basic Nan functionality. - -For a simpler example, see the **[async pi estimation example](https://github.com/nodejs/nan/tree/master/examples/async_pi_estimate)** in the examples directory for full code and an explanation of what this Monte Carlo Pi estimation example does. Below are just some parts of the full example that illustrate the use of **NAN**. - -Yet another example is **[nan-example-eol](https://github.com/CodeCharmLtd/nan-example-eol)**. It shows newline detection implemented as a native addon. - -Also take a look at our comprehensive **[C++ test suite](https://github.com/nodejs/nan/tree/master/test/cpp)** which has a plethora of code snippets for your pasting pleasure. - - -## API - -Additional to the NAN documentation below, please consult: - -* [The V8 Getting Started * Guide](https://github.com/v8/v8/wiki/Getting%20Started%20with%20Embedding) -* [The V8 Embedders * Guide](https://github.com/v8/v8/wiki/Embedder%27s%20Guide) -* [V8 API Documentation](http://v8docs.nodesource.com/) -* [Node Add-on Documentation](https://nodejs.org/api/addons.html) - - - -### JavaScript-accessible methods - -A _template_ is a blueprint for JavaScript functions and objects in a context. You can use a template to wrap C++ functions and data structures within JavaScript objects so that they can be manipulated from JavaScript. See the V8 Embedders Guide section on [Templates](https://developers.google.com/v8/embed#templates) for further information. - -In order to expose functionality to JavaScript via a template, you must provide it to V8 in a form that it understands. Across the versions of V8 supported by NAN, JavaScript-accessible method signatures vary widely, NAN fully abstracts method declaration and provides you with an interface that is similar to the most recent V8 API but is backward-compatible with older versions that still use the now-deceased `v8::Argument` type. - -* **Method argument types** - - Nan::FunctionCallbackInfo - - Nan::PropertyCallbackInfo - - Nan::ReturnValue -* **Method declarations** - - Method declaration - - Getter declaration - - Setter declaration - - Property getter declaration - - Property setter declaration - - Property enumerator declaration - - Property deleter declaration - - Property query declaration - - Index getter declaration - - Index setter declaration - - Index enumerator declaration - - Index deleter declaration - - Index query declaration -* Method and template helpers - - Nan::SetMethod() - - Nan::SetPrototypeMethod() - - Nan::SetAccessor() - - Nan::SetNamedPropertyHandler() - - Nan::SetIndexedPropertyHandler() - - Nan::SetTemplate() - - Nan::SetPrototypeTemplate() - - Nan::SetInstanceTemplate() - - Nan::SetCallHandler() - - Nan::SetCallAsFunctionHandler() - -### Scopes - -A _local handle_ is a pointer to an object. All V8 objects are accessed using handles, they are necessary because of the way the V8 garbage collector works. - -A handle scope can be thought of as a container for any number of handles. When you've finished with your handles, instead of deleting each one individually you can simply delete their scope. - -The creation of `HandleScope` objects is different across the supported versions of V8. Therefore, NAN provides its own implementations that can be used safely across these. - - - Nan::HandleScope - - Nan::EscapableHandleScope - -Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://github.com/v8/v8/wiki/Embedder%27s%20Guide#handles-and-garbage-collection). - -### Persistent references - -An object reference that is independent of any `HandleScope` is a _persistent_ reference. Where a `Local` handle only lives as long as the `HandleScope` in which it was allocated, a `Persistent` handle remains valid until it is explicitly disposed. - -Due to the evolution of the V8 API, it is necessary for NAN to provide a wrapper implementation of the `Persistent` classes to supply compatibility across the V8 versions supported. - - - Nan::PersistentBase & v8::PersistentBase - - Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits - - Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits - - Nan::Persistent - - Nan::Global - - Nan::WeakCallbackInfo - - Nan::WeakCallbackType - -Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://developers.google.com/v8/embed#handles). - -### New - -NAN provides a `Nan::New()` helper for the creation of new JavaScript objects in a way that's compatible across the supported versions of V8. - - - Nan::New() - - Nan::Undefined() - - Nan::Null() - - Nan::True() - - Nan::False() - - Nan::EmptyString() - - -### Converters - -NAN contains functions that convert `v8::Value`s to other `v8::Value` types and native types. Since type conversion is not guaranteed to succeed, they return `Nan::Maybe` types. These converters can be used in place of `value->ToX()` and `value->XValue()` (where `X` is one of the types, e.g. `Boolean`) in a way that provides a consistent interface across V8 versions. Newer versions of V8 use the new `v8::Maybe` and `v8::MaybeLocal` types for these conversions, older versions don't have this functionality so it is provided by NAN. - - - Nan::To() - -### Maybe Types - -The `Nan::MaybeLocal` and `Nan::Maybe` types are monads that encapsulate `v8::Local` handles that _may be empty_. - -* **Maybe Types** - - Nan::MaybeLocal - - Nan::Maybe - - Nan::Nothing - - Nan::Just -* **Maybe Helpers** - - Nan::Call() - - Nan::ToDetailString() - - Nan::ToArrayIndex() - - Nan::Equals() - - Nan::NewInstance() - - Nan::GetFunction() - - Nan::Set() - - Nan::ForceSet() - - Nan::Get() - - Nan::GetPropertyAttributes() - - Nan::Has() - - Nan::Delete() - - Nan::GetPropertyNames() - - Nan::GetOwnPropertyNames() - - Nan::SetPrototype() - - Nan::ObjectProtoToString() - - Nan::HasOwnProperty() - - Nan::HasRealNamedProperty() - - Nan::HasRealIndexedProperty() - - Nan::HasRealNamedCallbackProperty() - - Nan::GetRealNamedPropertyInPrototypeChain() - - Nan::GetRealNamedProperty() - - Nan::CallAsFunction() - - Nan::CallAsConstructor() - - Nan::GetSourceLine() - - Nan::GetLineNumber() - - Nan::GetStartColumn() - - Nan::GetEndColumn() - - Nan::CloneElementAt() - - Nan::HasPrivate() - - Nan::GetPrivate() - - Nan::SetPrivate() - - Nan::DeletePrivate() - - Nan::MakeMaybe() - -### Script - -NAN provides a `v8::Script` helpers as the API has changed over the supported versions of V8. - - - Nan::CompileScript() - - Nan::RunScript() - - -### Errors - -NAN includes helpers for creating, throwing and catching Errors as much of this functionality varies across the supported versions of V8 and must be abstracted. - -Note that an Error object is simply a specialized form of `v8::Value`. - -Also consult the V8 Embedders Guide section on [Exceptions](https://developers.google.com/v8/embed#exceptions) for more information. - - - Nan::Error() - - Nan::RangeError() - - Nan::ReferenceError() - - Nan::SyntaxError() - - Nan::TypeError() - - Nan::ThrowError() - - Nan::ThrowRangeError() - - Nan::ThrowReferenceError() - - Nan::ThrowSyntaxError() - - Nan::ThrowTypeError() - - Nan::FatalException() - - Nan::ErrnoException() - - Nan::TryCatch - - -### Buffers - -NAN's `node::Buffer` helpers exist as the API has changed across supported Node versions. Use these methods to ensure compatibility. - - - Nan::NewBuffer() - - Nan::CopyBuffer() - - Nan::FreeCallback() - -### Nan::Callback - -`Nan::Callback` makes it easier to use `v8::Function` handles as callbacks. A class that wraps a `v8::Function` handle, protecting it from garbage collection and making it particularly useful for storage and use across asynchronous execution. - - - Nan::Callback - -### Asynchronous work helpers - -`Nan::AsyncWorker` and `Nan::AsyncProgressWorker` are helper classes that make working with asynchronous code easier. - - - Nan::AsyncWorker - - Nan::AsyncProgressWorkerBase & Nan::AsyncProgressWorker - - Nan::AsyncQueueWorker - -### Strings & Bytes - -Miscellaneous string & byte encoding and decoding functionality provided for compatibility across supported versions of V8 and Node. Implemented by NAN to ensure that all encoding types are supported, even for older versions of Node where they are missing. - - - Nan::Encoding - - Nan::Encode() - - Nan::DecodeBytes() - - Nan::DecodeWrite() - - -### Object Wrappers - -The `ObjectWrap` class can be used to make wrapped C++ objects and a factory of wrapped objects. - - - Nan::ObjectWrap - - -### V8 internals - -The hooks to access V8 internals—including GC and statistics—are different across the supported versions of V8, therefore NAN provides its own hooks that call the appropriate V8 methods. - - - NAN_GC_CALLBACK() - - Nan::AddGCEpilogueCallback() - - Nan::RemoveGCEpilogueCallback() - - Nan::AddGCPrologueCallback() - - Nan::RemoveGCPrologueCallback() - - Nan::GetHeapStatistics() - - Nan::SetCounterFunction() - - Nan::SetCreateHistogramFunction() - - Nan::SetAddHistogramSampleFunction() - - Nan::IdleNotification() - - Nan::LowMemoryNotification() - - Nan::ContextDisposedNotification() - - Nan::GetInternalFieldPointer() - - Nan::SetInternalFieldPointer() - - Nan::AdjustExternalMemory() - - -### Miscellaneous V8 Helpers - - - Nan::Utf8String - - Nan::GetCurrentContext() - - Nan::SetIsolateData() - - Nan::GetIsolateData() - - Nan::TypedArrayContents - - -### Miscellaneous Node Helpers - - - Nan::MakeCallback() - - NAN_MODULE_INIT() - - Nan::Export() - - - - - -### Tests - -To run the NAN tests do: - -``` sh -npm install -npm run-script rebuild-tests -npm test -``` - -Or just: - -``` sh -npm install -make test -``` - - -## Governance & Contributing - -NAN is governed by the [io.js](https://iojs.org/) Addon API Working Group - -### Addon API Working Group (WG) - -The NAN project is jointly governed by a Working Group which is responsible for high-level guidance of the project. - -Members of the WG are also known as Collaborators, there is no distinction between the two, unlike other io.js projects. - -The WG has final authority over this project including: - -* Technical direction -* Project governance and process (including this policy) -* Contribution policy -* GitHub repository hosting -* Maintaining the list of additional Collaborators - -For the current list of WG members, see the project [README.md](./README.md#collaborators). - -Individuals making significant and valuable contributions are made members of the WG and given commit-access to the project. These individuals are identified by the WG and their addition to the WG is discussed via GitHub and requires unanimous consensus amongst those WG members participating in the discussion with a quorum of 50% of WG members required for acceptance of the vote. - -_Note:_ If you make a significant contribution and are not considered for commit-access log an issue or contact a WG member directly. - -For the current list of WG members / Collaborators, see the project [README.md](./README.md#collaborators). - -### Consensus Seeking Process - -The WG follows a [Consensus Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making) decision making model. - -Modifications of the contents of the NAN repository are made on a collaborative basis. Anybody with a GitHub account may propose a modification via pull request and it will be considered by the WG. All pull requests must be reviewed and accepted by a WG member with sufficient expertise who is able to take full responsibility for the change. In the case of pull requests proposed by an existing WG member, an additional WG member is required for sign-off. Consensus should be sought if additional WG members participate and there is disagreement around a particular modification. - -If a change proposal cannot reach a consensus, a WG member can call for a vote amongst the members of the WG. Simple majority wins. - - -## Developer's Certificate of Origin 1.1 - -By making a contribution to this project, I certify that: - -* (a) The contribution was created in whole or in part by me and I - have the right to submit it under the open source license - indicated in the file; or - -* (b) The contribution is based upon previous work that, to the best - of my knowledge, is covered under an appropriate open source - license and I have the right under that license to submit that - work with modifications, whether created in whole or in part - by me, under the same open source license (unless I am - permitted to submit under a different license), as indicated - in the file; or - -* (c) The contribution was provided directly to me by some other - person who certified (a), (b) or (c) and I have not modified - it. - -* (d) I understand and agree that this project and the contribution - are public and that a record of the contribution (including all - personal information I submit with it, including my sign-off) is - maintained indefinitely and may be redistributed consistent with - this project or the open source license(s) involved. - - -### WG Members / Collaborators - - - - - - - - - -
    Rod VaggGitHub/rvaggTwitter/@rvagg
    Benjamin ByholmGitHub/kkoopa-
    Trevor NorrisGitHub/trevnorrisTwitter/@trevnorris
    Nathan RajlichGitHub/TooTallNateTwitter/@TooTallNate
    Brett LawsonGitHub/brett19Twitter/@brett19x
    Ben NoordhuisGitHub/bnoordhuisTwitter/@bnoordhuis
    David SiegelGitHub/agnatTwitter/@agnat
    - -## Licence & copyright - -Copyright (c) 2017 NAN WG Members / Collaborators (listed above). - -Native Abstractions for Node.js is licensed under an MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details. diff --git a/node_modules/nan/doc/asyncworker.md b/node_modules/nan/doc/asyncworker.md deleted file mode 100644 index 53a78dd..0000000 --- a/node_modules/nan/doc/asyncworker.md +++ /dev/null @@ -1,103 +0,0 @@ -## Asynchronous work helpers - -`Nan::AsyncWorker` and `Nan::AsyncProgressWorker` are helper classes that make working with asynchronous code easier. - - - Nan::AsyncWorker - - Nan::AsyncProgressWorkerBase & Nan::AsyncProgressWorker - - Nan::AsyncQueueWorker - - -### Nan::AsyncWorker - -`Nan::AsyncWorker` is an _abstract_ class that you can subclass to have much of the annoying asynchronous queuing and handling taken care of for you. It can even store arbitrary V8 objects for you and have them persist while the asynchronous work is in progress. - -Definition: - -```c++ -class AsyncWorker { - public: - explicit AsyncWorker(Callback *callback_); - - virtual ~AsyncWorker(); - - virtual void WorkComplete(); - - void SaveToPersistent(const char *key, const v8::Local &value); - - void SaveToPersistent(const v8::Local &key, - const v8::Local &value); - - void SaveToPersistent(uint32_t index, - const v8::Local &value); - - v8::Local GetFromPersistent(const char *key) const; - - v8::Local GetFromPersistent(const v8::Local &key) const; - - v8::Local GetFromPersistent(uint32_t index) const; - - virtual void Execute() = 0; - - uv_work_t request; - - virtual void Destroy(); - - protected: - Persistent persistentHandle; - - Callback *callback; - - virtual void HandleOKCallback(); - - virtual void HandleErrorCallback(); - - void SetErrorMessage(const char *msg); - - const char* ErrorMessage(); -}; -``` - - -### Nan::AsyncProgressWorkerBase & Nan::AsyncProgressWorker - -`Nan::AsyncProgressWorkerBase` is an _abstract_ class template that extends `Nan::AsyncWorker` and adds additional progress reporting callbacks that can be used during the asynchronous work execution to provide progress data back to JavaScript. - -Previously the definiton of `Nan::AsyncProgressWorker` only allowed sending `const char` data. Now extending `Nan::AsyncProgressWorker` will yield an instance of the implicit `Nan::AsyncProgressWorkerBase` template with type `` for compatibility. - -Definition: - -```c++ -template -class AsyncProgressWorkerBase : public AsyncWorker { - public: - explicit AsyncProgressWorker(Callback *callback_); - - virtual ~AsyncProgressWorker(); - - void WorkProgress(); - - class ExecutionProgress { - public: - void Signal() const; - void Send(const T* data, size_t size) const; - }; - - virtual void Execute(const ExecutionProgress& progress) = 0; - - virtual void HandleProgressCallback(const T *data, size_t size) = 0; - - virtual void Destroy(); - -typedef AsyncProgressWorkerBase AsyncProgressWorker; -``` - - -### Nan::AsyncQueueWorker - -`Nan::AsyncQueueWorker` will run a `Nan::AsyncWorker` asynchronously via libuv. Both the `execute` and `after_work` steps are taken care of for you. Most of the logic for this is embedded in `Nan::AsyncWorker`. - -Definition: - -```c++ -void AsyncQueueWorker(AsyncWorker *); -``` diff --git a/node_modules/nan/doc/buffers.md b/node_modules/nan/doc/buffers.md deleted file mode 100644 index 8d8d25c..0000000 --- a/node_modules/nan/doc/buffers.md +++ /dev/null @@ -1,54 +0,0 @@ -## Buffers - -NAN's `node::Buffer` helpers exist as the API has changed across supported Node versions. Use these methods to ensure compatibility. - - - Nan::NewBuffer() - - Nan::CopyBuffer() - - Nan::FreeCallback() - - -### Nan::NewBuffer() - -Allocate a new `node::Buffer` object with the specified size and optional data. Calls `node::Buffer::New()`. - -Note that when creating a `Buffer` using `Nan::NewBuffer()` and an existing `char*`, it is assumed that the ownership of the pointer is being transferred to the new `Buffer` for management. -When a `node::Buffer` instance is garbage collected and a `FreeCallback` has not been specified, `data` will be disposed of via a call to `free()`. -You _must not_ free the memory space manually once you have created a `Buffer` in this way. - -Signature: - -```c++ -Nan::MaybeLocal Nan::NewBuffer(uint32_t size) -Nan::MaybeLocal Nan::NewBuffer(char* data, uint32_t size) -Nan::MaybeLocal Nan::NewBuffer(char *data, - size_t length, - Nan::FreeCallback callback, - void *hint) -``` - - - -### Nan::CopyBuffer() - -Similar to [`Nan::NewBuffer()`](#api_nan_new_buffer) except that an implicit memcpy will occur within Node. Calls `node::Buffer::Copy()`. - -Management of the `char*` is left to the user, you should manually free the memory space if necessary as the new `Buffer` will have its own copy. - -Signature: - -```c++ -Nan::MaybeLocal Nan::CopyBuffer(const char *data, uint32_t size) -``` - - - -### Nan::FreeCallback() - -A free callback that can be provided to [`Nan::NewBuffer()`](#api_nan_new_buffer). -The supplied callback will be invoked when the `Buffer` undergoes garbage collection. - -Signature: - -```c++ -typedef void (*FreeCallback)(char *data, void *hint); -``` diff --git a/node_modules/nan/doc/callback.md b/node_modules/nan/doc/callback.md deleted file mode 100644 index 46de1d7..0000000 --- a/node_modules/nan/doc/callback.md +++ /dev/null @@ -1,56 +0,0 @@ -## Nan::Callback - -`Nan::Callback` makes it easier to use `v8::Function` handles as callbacks. A class that wraps a `v8::Function` handle, protecting it from garbage collection and making it particularly useful for storage and use across asynchronous execution. - - - Nan::Callback - - -### Nan::Callback - -```c++ -class Callback { - public: - Callback(); - - explicit Callback(const v8::Local &fn); - - ~Callback(); - - bool operator==(const Callback &other) const; - - bool operator!=(const Callback &other) const; - - v8::Local operator*() const; - - v8::Local operator()(v8::Local target, - int argc = 0, - v8::Local argv[] = 0) const; - - v8::Local operator()(int argc = 0, - v8::Local argv[] = 0) const; - - void SetFunction(const v8::Local &fn); - - v8::Local GetFunction() const; - - bool IsEmpty() const; - - void Reset(const v8::Local &fn); - - void Reset(); - - v8::Local Call(v8::Local target, - int argc, - v8::Local argv[]) const; - - v8::Local Call(int argc, v8::Local argv[]) const; -}; -``` - -Example usage: - -```c++ -v8::Local function; -Nan::Callback callback(function); -callback.Call(0, 0); -``` diff --git a/node_modules/nan/doc/converters.md b/node_modules/nan/doc/converters.md deleted file mode 100644 index d20861b..0000000 --- a/node_modules/nan/doc/converters.md +++ /dev/null @@ -1,41 +0,0 @@ -## Converters - -NAN contains functions that convert `v8::Value`s to other `v8::Value` types and native types. Since type conversion is not guaranteed to succeed, they return `Nan::Maybe` types. These converters can be used in place of `value->ToX()` and `value->XValue()` (where `X` is one of the types, e.g. `Boolean`) in a way that provides a consistent interface across V8 versions. Newer versions of V8 use the new `v8::Maybe` and `v8::MaybeLocal` types for these conversions, older versions don't have this functionality so it is provided by NAN. - - - Nan::To() - - -### Nan::To() - -Converts a `v8::Local` to a different subtype of `v8::Value` or to a native data type. Returns a `Nan::MaybeLocal<>` or a `Nan::Maybe<>` accordingly. - -See [maybe_types.md](./maybe_types.md) for more information on `Nan::Maybe` types. - -Signatures: - -```c++ -// V8 types -Nan::MaybeLocal Nan::To(v8::Local val); -Nan::MaybeLocal Nan::To(v8::Local val); -Nan::MaybeLocal Nan::To(v8::Local val); -Nan::MaybeLocal Nan::To(v8::Local val); -Nan::MaybeLocal Nan::To(v8::Local val); -Nan::MaybeLocal Nan::To(v8::Local val); -Nan::MaybeLocal Nan::To(v8::Local val); - -// Native types -Nan::Maybe Nan::To(v8::Local val); -Nan::Maybe Nan::To(v8::Local val); -Nan::Maybe Nan::To(v8::Local val); -Nan::Maybe Nan::To(v8::Local val); -Nan::Maybe Nan::To(v8::Local val); -``` - -### Example - -```c++ -v8::Local val; -Nan::MaybeLocal str = Nan::To(val); -Nan::Maybe d = Nan::To(val); -``` - diff --git a/node_modules/nan/doc/errors.md b/node_modules/nan/doc/errors.md deleted file mode 100644 index aac6e08..0000000 --- a/node_modules/nan/doc/errors.md +++ /dev/null @@ -1,226 +0,0 @@ -## Errors - -NAN includes helpers for creating, throwing and catching Errors as much of this functionality varies across the supported versions of V8 and must be abstracted. - -Note that an Error object is simply a specialized form of `v8::Value`. - -Also consult the V8 Embedders Guide section on [Exceptions](https://developers.google.com/v8/embed#exceptions) for more information. - - - Nan::Error() - - Nan::RangeError() - - Nan::ReferenceError() - - Nan::SyntaxError() - - Nan::TypeError() - - Nan::ThrowError() - - Nan::ThrowRangeError() - - Nan::ThrowReferenceError() - - Nan::ThrowSyntaxError() - - Nan::ThrowTypeError() - - Nan::FatalException() - - Nan::ErrnoException() - - Nan::TryCatch - - - -### Nan::Error() - -Create a new Error object using the [v8::Exception](https://v8docs.nodesource.com/io.js-3.0/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8. - -Note that an Error object is simply a specialized form of `v8::Value`. - -Signature: - -```c++ -v8::Local Nan::Error(const char *msg); -v8::Local Nan::Error(v8::Local msg); -``` - - - -### Nan::RangeError() - -Create a new RangeError object using the [v8::Exception](https://v8docs.nodesource.com/io.js-3.0/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8. - -Note that an RangeError object is simply a specialized form of `v8::Value`. - -Signature: - -```c++ -v8::Local Nan::RangeError(const char *msg); -v8::Local Nan::RangeError(v8::Local msg); -``` - - - -### Nan::ReferenceError() - -Create a new ReferenceError object using the [v8::Exception](https://v8docs.nodesource.com/io.js-3.0/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8. - -Note that an ReferenceError object is simply a specialized form of `v8::Value`. - -Signature: - -```c++ -v8::Local Nan::ReferenceError(const char *msg); -v8::Local Nan::ReferenceError(v8::Local msg); -``` - - - -### Nan::SyntaxError() - -Create a new SyntaxError object using the [v8::Exception](https://v8docs.nodesource.com/io.js-3.0/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8. - -Note that an SyntaxError object is simply a specialized form of `v8::Value`. - -Signature: - -```c++ -v8::Local Nan::SyntaxError(const char *msg); -v8::Local Nan::SyntaxError(v8::Local msg); -``` - - - -### Nan::TypeError() - -Create a new TypeError object using the [v8::Exception](https://v8docs.nodesource.com/io.js-3.0/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8. - -Note that an TypeError object is simply a specialized form of `v8::Value`. - -Signature: - -```c++ -v8::Local Nan::TypeError(const char *msg); -v8::Local Nan::TypeError(v8::Local msg); -``` - - - -### Nan::ThrowError() - -Throw an Error object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new Error object will be created. - -Signature: - -```c++ -void Nan::ThrowError(const char *msg); -void Nan::ThrowError(v8::Local msg); -void Nan::ThrowError(v8::Local error); -``` - - - -### Nan::ThrowRangeError() - -Throw an RangeError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new RangeError object will be created. - -Signature: - -```c++ -void Nan::ThrowRangeError(const char *msg); -void Nan::ThrowRangeError(v8::Local msg); -void Nan::ThrowRangeError(v8::Local error); -``` - - - -### Nan::ThrowReferenceError() - -Throw an ReferenceError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new ReferenceError object will be created. - -Signature: - -```c++ -void Nan::ThrowReferenceError(const char *msg); -void Nan::ThrowReferenceError(v8::Local msg); -void Nan::ThrowReferenceError(v8::Local error); -``` - - - -### Nan::ThrowSyntaxError() - -Throw an SyntaxError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new SyntaxError object will be created. - -Signature: - -```c++ -void Nan::ThrowSyntaxError(const char *msg); -void Nan::ThrowSyntaxError(v8::Local msg); -void Nan::ThrowSyntaxError(v8::Local error); -``` - - - -### Nan::ThrowTypeError() - -Throw an TypeError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new TypeError object will be created. - -Signature: - -```c++ -void Nan::ThrowTypeError(const char *msg); -void Nan::ThrowTypeError(v8::Local msg); -void Nan::ThrowTypeError(v8::Local error); -``` - - -### Nan::FatalException() - -Replaces `node::FatalException()` which has a different API across supported versions of Node. For use with [`Nan::TryCatch`](#api_nan_try_catch). - -Signature: - -```c++ -void Nan::FatalException(const Nan::TryCatch& try_catch); -``` - - -### Nan::ErrnoException() - -Replaces `node::ErrnoException()` which has a different API across supported versions of Node. - -Signature: - -```c++ -v8::Local Nan::ErrnoException(int errorno, - const char* syscall = NULL, - const char* message = NULL, - const char* path = NULL); -``` - - - -### Nan::TryCatch - -A simple wrapper around [`v8::TryCatch`](https://v8docs.nodesource.com/io.js-3.0/d4/dc6/classv8_1_1_try_catch.html) compatible with all supported versions of V8. Can be used as a direct replacement in most cases. See also [`Nan::FatalException()`](#api_nan_fatal_exception) for an internal use compatible with `node::FatalException`. - -Signature: - -```c++ -class Nan::TryCatch { - public: - Nan::TryCatch(); - - bool HasCaught() const; - - bool CanContinue() const; - - v8::Local ReThrow(); - - v8::Local Exception() const; - - // Nan::MaybeLocal for older versions of V8 - v8::MaybeLocal StackTrace() const; - - v8::Local Message() const; - - void Reset(); - - void SetVerbose(bool value); - - void SetCaptureMessage(bool value); -}; -``` - diff --git a/node_modules/nan/doc/maybe_types.md b/node_modules/nan/doc/maybe_types.md deleted file mode 100644 index 818861d..0000000 --- a/node_modules/nan/doc/maybe_types.md +++ /dev/null @@ -1,560 +0,0 @@ -## Maybe Types - -The `Nan::MaybeLocal` and `Nan::Maybe` types are monads that encapsulate `v8::Local` handles that _may be empty_. - -* **Maybe Types** - - Nan::MaybeLocal - - Nan::Maybe - - Nan::Nothing - - Nan::Just -* **Maybe Helpers** - - Nan::Call() - - Nan::ToDetailString() - - Nan::ToArrayIndex() - - Nan::Equals() - - Nan::NewInstance() - - Nan::GetFunction() - - Nan::Set() - - Nan::ForceSet() - - Nan::Get() - - Nan::GetPropertyAttributes() - - Nan::Has() - - Nan::Delete() - - Nan::GetPropertyNames() - - Nan::GetOwnPropertyNames() - - Nan::SetPrototype() - - Nan::ObjectProtoToString() - - Nan::HasOwnProperty() - - Nan::HasRealNamedProperty() - - Nan::HasRealIndexedProperty() - - Nan::HasRealNamedCallbackProperty() - - Nan::GetRealNamedPropertyInPrototypeChain() - - Nan::GetRealNamedProperty() - - Nan::CallAsFunction() - - Nan::CallAsConstructor() - - Nan::GetSourceLine() - - Nan::GetLineNumber() - - Nan::GetStartColumn() - - Nan::GetEndColumn() - - Nan::CloneElementAt() - - Nan::HasPrivate() - - Nan::GetPrivate() - - Nan::SetPrivate() - - Nan::DeletePrivate() - - Nan::MakeMaybe() - - -### Nan::MaybeLocal - -A `Nan::MaybeLocal` is a wrapper around [`v8::Local`](https://v8docs.nodesource.com/io.js-3.0/de/deb/classv8_1_1_local.html) that enforces a check that determines whether the `v8::Local` is empty before it can be used. - -If an API method returns a `Nan::MaybeLocal`, the API method can potentially fail either because an exception is thrown, or because an exception is pending, e.g. because a previous API call threw an exception that hasn't been caught yet, or because a `v8::TerminateExecution` exception was thrown. In that case, an empty `Nan::MaybeLocal` is returned. - -Definition: - -```c++ -template class Nan::MaybeLocal { - public: - MaybeLocal(); - - template MaybeLocal(v8::Local that); - - bool IsEmpty() const; - - template bool ToLocal(v8::Local *out); - - // Will crash if the MaybeLocal<> is empty. - v8::Local ToLocalChecked(); - - template v8::Local FromMaybe(v8::Local default_value) const; -}; -``` - -See the documentation for [`v8::MaybeLocal`](https://v8docs.nodesource.com/io.js-3.0/d8/d7d/classv8_1_1_maybe_local.html) for further details. - - -### Nan::Maybe - -A simple `Nan::Maybe` type, representing an object which may or may not have a value, see https://hackage.haskell.org/package/base/docs/Data-Maybe.html. - -If an API method returns a `Nan::Maybe<>`, the API method can potentially fail either because an exception is thrown, or because an exception is pending, e.g. because a previous API call threw an exception that hasn't been caught yet, or because a `v8::TerminateExecution` exception was thrown. In that case, a "Nothing" value is returned. - -Definition: - -```c++ -template class Nan::Maybe { - public: - bool IsNothing() const; - bool IsJust() const; - - // Will crash if the Maybe<> is nothing. - T FromJust(); - - T FromMaybe(const T& default_value); - - bool operator==(const Maybe &other); - - bool operator!=(const Maybe &other); -}; -``` - -See the documentation for [`v8::Maybe`](https://v8docs.nodesource.com/io.js-3.0/d9/d4b/classv8_1_1_maybe.html) for further details. - - -### Nan::Nothing - -Construct an empty `Nan::Maybe` type representing _nothing_. - -```c++ -template Nan::Maybe Nan::Nothing(); -``` - - -### Nan::Just - -Construct a `Nan::Maybe` type representing _just_ a value. - -```c++ -template Nan::Maybe Nan::Just(const T &t); -``` - - -### Nan::Call() - -A helper method for calling [`v8::Function#Call()`](https://v8docs.nodesource.com/io.js-3.0/d5/d54/classv8_1_1_function.html#a468a89f737af0612db10132799c827c0) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::Call(v8::Local fun, v8::Local recv, int argc, v8::Local argv[]); -``` - - - -### Nan::ToDetailString() - -A helper method for calling [`v8::Value#ToDetailString()`](https://v8docs.nodesource.com/io.js-3.0/dc/d0a/classv8_1_1_value.html#a2f9770296dc2c8d274bc8cc0dca243e5) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::ToDetailString(v8::Local val); -``` - - - -### Nan::ToArrayIndex() - -A helper method for calling [`v8::Value#ToArrayIndex()`](https://v8docs.nodesource.com/io.js-3.0/dc/d0a/classv8_1_1_value.html#acc5bbef3c805ec458470c0fcd6f13493) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::ToArrayIndex(v8::Local val); -``` - - - -### Nan::Equals() - -A helper method for calling [`v8::Value#Equals()`](https://v8docs.nodesource.com/io.js-3.0/dc/d0a/classv8_1_1_value.html#a0d9616ab2de899d4e3047c30a10c9285) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::Equals(v8::Local a, v8::Local(b)); -``` - - - -### Nan::NewInstance() - -A helper method for calling [`v8::Function#NewInstance()`](https://v8docs.nodesource.com/io.js-3.0/d5/d54/classv8_1_1_function.html#a691b13f7a553069732cbacf5ac8c62ec) and [`v8::ObjectTemplate#NewInstance()`](https://v8docs.nodesource.com/io.js-3.0/db/d5f/classv8_1_1_object_template.html#ad605a7543cfbc5dab54cdb0883d14ae4) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::NewInstance(v8::Local h); -Nan::MaybeLocal Nan::NewInstance(v8::Local h, int argc, v8::Local argv[]); -Nan::MaybeLocal Nan::NewInstance(v8::Local h); -``` - - - -### Nan::GetFunction() - -A helper method for calling [`v8::FunctionTemplate#GetFunction()`](https://v8docs.nodesource.com/io.js-3.0/d8/d83/classv8_1_1_function_template.html#a56d904662a86eca78da37d9bb0ed3705) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::GetFunction(v8::Local t); -``` - - - -### Nan::Set() - -A helper method for calling [`v8::Object#Set()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a67604ea3734f170c66026064ea808f20) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::Set(v8::Local obj, - v8::Local key, - v8::Local value) -Nan::Maybe Nan::Set(v8::Local obj, - uint32_t index, - v8::Local value); -``` - - - -### Nan::ForceSet() - -A helper method for calling [`v8::Object#ForceSet()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a796b7b682896fb64bf1872747734e836) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::ForceSet(v8::Local obj, - v8::Local key, - v8::Local value, - v8::PropertyAttribute attribs = v8::None); -``` - - - -### Nan::Get() - -A helper method for calling [`v8::Object#Get()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a2565f03e736694f6b1e1cf22a0b4eac2) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::Get(v8::Local obj, - v8::Local key); -Nan::MaybeLocal Nan::Get(v8::Local obj, uint32_t index); -``` - - - -### Nan::GetPropertyAttributes() - -A helper method for calling [`v8::Object#GetPropertyAttributes()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a9b898894da3d1db2714fd9325a54fe57) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::GetPropertyAttributes( - v8::Local obj, - v8::Local key); -``` - - - -### Nan::Has() - -A helper method for calling [`v8::Object#Has()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#ab3c3d89ea7c2f9afd08965bd7299a41d) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::Has(v8::Local obj, v8::Local key); -Nan::Maybe Nan::Has(v8::Local obj, uint32_t index); -``` - - - -### Nan::Delete() - -A helper method for calling [`v8::Object#Delete()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a2fa0f5a592582434ed1ceceff7d891ef) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::Delete(v8::Local obj, - v8::Local key); -Nan::Maybe Nan::Delete(v8::Local obj, uint32_t index); -``` - - - -### Nan::GetPropertyNames() - -A helper method for calling [`v8::Object#GetPropertyNames()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#aced885270cfd2c956367b5eedc7fbfe8) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::GetPropertyNames(v8::Local obj); -``` - - - -### Nan::GetOwnPropertyNames() - -A helper method for calling [`v8::Object#GetOwnPropertyNames()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a79a6e4d66049b9aa648ed4dfdb23e6eb) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::GetOwnPropertyNames(v8::Local obj); -``` - - - -### Nan::SetPrototype() - -A helper method for calling [`v8::Object#SetPrototype()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a442706b22fceda6e6d1f632122a9a9f4) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::SetPrototype(v8::Local obj, - v8::Local prototype); -``` - - - -### Nan::ObjectProtoToString() - -A helper method for calling [`v8::Object#ObjectProtoToString()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#ab7a92b4dcf822bef72f6c0ac6fea1f0b) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::ObjectProtoToString(v8::Local obj); -``` - - - -### Nan::HasOwnProperty() - -A helper method for calling [`v8::Object#HasOwnProperty()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#ab7b7245442ca6de1e1c145ea3fd653ff) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::HasOwnProperty(v8::Local obj, - v8::Local key); -``` - - - -### Nan::HasRealNamedProperty() - -A helper method for calling [`v8::Object#HasRealNamedProperty()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#ad8b80a59c9eb3c1e6c3cd6c84571f767) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::HasRealNamedProperty(v8::Local obj, - v8::Local key); -``` - - - -### Nan::HasRealIndexedProperty() - -A helper method for calling [`v8::Object#HasRealIndexedProperty()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#af94fc1135a5e74a2193fb72c3a1b9855) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::HasRealIndexedProperty(v8::Local obj, - uint32_t index); -``` - - - -### Nan::HasRealNamedCallbackProperty() - -A helper method for calling [`v8::Object#HasRealNamedCallbackProperty()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#af743b7ea132b89f84d34d164d0668811) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::HasRealNamedCallbackProperty( - v8::Local obj, - v8::Local key); -``` - - - -### Nan::GetRealNamedPropertyInPrototypeChain() - -A helper method for calling [`v8::Object#GetRealNamedPropertyInPrototypeChain()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a8700b1862e6b4783716964ba4d5e6172) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::GetRealNamedPropertyInPrototypeChain( - v8::Local obj, - v8::Local key); -``` - - - -### Nan::GetRealNamedProperty() - -A helper method for calling [`v8::Object#GetRealNamedProperty()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a84471a824576a5994fdd0ffcbf99ccc0) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::GetRealNamedProperty(v8::Local obj, - v8::Local key); -``` - - - -### Nan::CallAsFunction() - -A helper method for calling [`v8::Object#CallAsFunction()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a9ef18be634e79b4f0cdffa1667a29f58) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::CallAsFunction(v8::Local obj, - v8::Local recv, - int argc, - v8::Local argv[]); -``` - - - -### Nan::CallAsConstructor() - -A helper method for calling [`v8::Object#CallAsConstructor()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a50d571de50d0b0dfb28795619d07a01b) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::CallAsConstructor(v8::Local obj, - int argc, - v8::Local argv[]); -``` - - - -### Nan::GetSourceLine() - -A helper method for calling [`v8::Message#GetSourceLine()`](https://v8docs.nodesource.com/io.js-3.0/d9/d28/classv8_1_1_message.html#a849f7a6c41549d83d8159825efccd23a) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::GetSourceLine(v8::Local msg); -``` - - - -### Nan::GetLineNumber() - -A helper method for calling [`v8::Message#GetLineNumber()`](https://v8docs.nodesource.com/io.js-3.0/d9/d28/classv8_1_1_message.html#adbe46c10a88a6565f2732a2d2adf99b9) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::GetLineNumber(v8::Local msg); -``` - - - -### Nan::GetStartColumn() - -A helper method for calling [`v8::Message#GetStartColumn()`](https://v8docs.nodesource.com/io.js-3.0/d9/d28/classv8_1_1_message.html#a60ede616ba3822d712e44c7a74487ba6) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::GetStartColumn(v8::Local msg); -``` - - - -### Nan::GetEndColumn() - -A helper method for calling [`v8::Message#GetEndColumn()`](https://v8docs.nodesource.com/io.js-3.0/d9/d28/classv8_1_1_message.html#aaa004cf19e529da980bc19fcb76d93be) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::GetEndColumn(v8::Local msg); -``` - - - -### Nan::CloneElementAt() - -A helper method for calling [`v8::Array#CloneElementAt()`](https://v8docs.nodesource.com/io.js-3.0/d3/d32/classv8_1_1_array.html#a1d3a878d4c1c7cae974dd50a1639245e) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::CloneElementAt(v8::Local array, uint32_t index); -``` - - -### Nan::HasPrivate() - -A helper method for calling [`v8::Object#HasPrivate()`](https://v8docs.nodesource.com/node-7.2/db/d85/classv8_1_1_object.html#af68a0b98066cfdeb8f943e98a40ba08d) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::HasPrivate(v8::Local object, v8::Local key); -``` - - -### Nan::GetPrivate() - -A helper method for calling [`v8::Object#GetPrivate()`](https://v8docs.nodesource.com/node-7.2/db/d85/classv8_1_1_object.html#a169f2da506acbec34deadd9149a1925a) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::GetPrivate(v8::Local object, v8::Local key); -``` - - -### Nan::SetPrivate() - -A helper method for calling [`v8::Object#SetPrivate()`](https://v8docs.nodesource.com/node-7.2/db/d85/classv8_1_1_object.html#ace1769b0f3b86bfe9fda1010916360ee) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::SetPrivate(v8::Local object, v8::Local key, v8::Local value); -``` - - -### Nan::DeletePrivate() - -A helper method for calling [`v8::Object#DeletePrivate()`](https://v8docs.nodesource.com/node-7.2/db/d85/classv8_1_1_object.html#a138bb32a304f3982be02ad499693b8fd) in a way compatible across supported versions of V8. - -Signature: - -```c++ -Nan::Maybe Nan::DeletePrivate(v8::Local object, v8::Local key); -``` - - -### Nan::MakeMaybe() - -Wraps a `v8::Local<>` in a `Nan::MaybeLocal<>`. When called with a `Nan::MaybeLocal<>` it just returns its argument. This is useful in generic template code that builds on NAN. - -Synopsis: - -```c++ - MaybeLocal someNumber = MakeMaybe(New(3.141592654)); - MaybeLocal someString = MakeMaybe(New("probably")); -``` - -Signature: - -```c++ -template class MaybeMaybe> -Nan::MaybeLocal Nan::MakeMaybe(MaybeMaybe v); -``` diff --git a/node_modules/nan/doc/methods.md b/node_modules/nan/doc/methods.md deleted file mode 100644 index 0411a70..0000000 --- a/node_modules/nan/doc/methods.md +++ /dev/null @@ -1,659 +0,0 @@ -## JavaScript-accessible methods - -A _template_ is a blueprint for JavaScript functions and objects in a context. You can use a template to wrap C++ functions and data structures within JavaScript objects so that they can be manipulated from JavaScript. See the V8 Embedders Guide section on [Templates](https://developers.google.com/v8/embed#templates) for further information. - -In order to expose functionality to JavaScript via a template, you must provide it to V8 in a form that it understands. Across the versions of V8 supported by NAN, JavaScript-accessible method signatures vary widely, NAN fully abstracts method declaration and provides you with an interface that is similar to the most recent V8 API but is backward-compatible with older versions that still use the now-deceased `v8::Argument` type. - -* **Method argument types** - - Nan::FunctionCallbackInfo - - Nan::PropertyCallbackInfo - - Nan::ReturnValue -* **Method declarations** - - Method declaration - - Getter declaration - - Setter declaration - - Property getter declaration - - Property setter declaration - - Property enumerator declaration - - Property deleter declaration - - Property query declaration - - Index getter declaration - - Index setter declaration - - Index enumerator declaration - - Index deleter declaration - - Index query declaration -* Method and template helpers - - Nan::SetMethod() - - Nan::SetPrototypeMethod() - - Nan::SetAccessor() - - Nan::SetNamedPropertyHandler() - - Nan::SetIndexedPropertyHandler() - - Nan::SetTemplate() - - Nan::SetPrototypeTemplate() - - Nan::SetInstanceTemplate() - - Nan::SetCallHandler() - - Nan::SetCallAsFunctionHandler() - - -### Nan::FunctionCallbackInfo - -`Nan::FunctionCallbackInfo` should be used in place of [`v8::FunctionCallbackInfo`](https://v8docs.nodesource.com/io.js-3.0/dd/d0d/classv8_1_1_function_callback_info.html), even with older versions of Node where `v8::FunctionCallbackInfo` does not exist. - -Definition: - -```c++ -template class FunctionCallbackInfo { - public: - ReturnValue GetReturnValue() const; - v8::Local Callee(); - v8::Local Data(); - v8::Local Holder(); - bool IsConstructCall(); - int Length() const; - v8::Local operator[](int i) const; - v8::Local This() const; - v8::Isolate *GetIsolate() const; -}; -``` - -See the [`v8::FunctionCallbackInfo`](https://v8docs.nodesource.com/io.js-3.0/dd/d0d/classv8_1_1_function_callback_info.html) documentation for usage details on these. See [`Nan::ReturnValue`](#api_nan_return_value) for further information on how to set a return value from methods. - - -### Nan::PropertyCallbackInfo - -`Nan::PropertyCallbackInfo` should be used in place of [`v8::PropertyCallbackInfo`](https://v8docs.nodesource.com/io.js-3.0/d7/dc5/classv8_1_1_property_callback_info.html), even with older versions of Node where `v8::PropertyCallbackInfo` does not exist. - -Definition: - -```c++ -template class PropertyCallbackInfo : public PropertyCallbackInfoBase { - public: - ReturnValue GetReturnValue() const; - v8::Isolate* GetIsolate() const; - v8::Local Data() const; - v8::Local This() const; - v8::Local Holder() const; -}; -``` - -See the [`v8::PropertyCallbackInfo`](https://v8docs.nodesource.com/io.js-3.0/d7/dc5/classv8_1_1_property_callback_info.html) documentation for usage details on these. See [`Nan::ReturnValue`](#api_nan_return_value) for further information on how to set a return value from property accessor methods. - - -### Nan::ReturnValue - -`Nan::ReturnValue` is used in place of [`v8::ReturnValue`](https://v8docs.nodesource.com/io.js-3.0/da/da7/classv8_1_1_return_value.html) on both [`Nan::FunctionCallbackInfo`](#api_nan_function_callback_info) and [`Nan::PropertyCallbackInfo`](#api_nan_property_callback_info) as the return type of `GetReturnValue()`. - -Example usage: - -```c++ -void EmptyArray(const Nan::FunctionCallbackInfo& info) { - info.GetReturnValue().Set(Nan::New()); -} -``` - -Definition: - -```c++ -template class ReturnValue { - public: - // Handle setters - template void Set(const v8::Local &handle); - template void Set(const Nan::Global &handle); - - // Fast primitive setters - void Set(bool value); - void Set(double i); - void Set(int32_t i); - void Set(uint32_t i); - - // Fast JS primitive setters - void SetNull(); - void SetUndefined(); - void SetEmptyString(); - - // Convenience getter for isolate - v8::Isolate *GetIsolate() const; -}; -``` - -See the documentation on [`v8::ReturnValue`](https://v8docs.nodesource.com/io.js-3.0/da/da7/classv8_1_1_return_value.html) for further information on this. - - -### Method declaration - -JavaScript-accessible methods should be declared with the following signature to form a `Nan::FunctionCallback`: - -```c++ -typedef void(*FunctionCallback)(const FunctionCallbackInfo&); -``` - -Example: - -```c++ -void MethodName(const Nan::FunctionCallbackInfo& info) { - ... -} -``` - -You do not need to declare a new `HandleScope` within a method as one is implicitly created for you. - -**Example usage** - -```c++ -// .h: -class Foo : public Nan::ObjectWrap { - ... - - static void Bar(const Nan::FunctionCallbackInfo& info); - static void Baz(const Nan::FunctionCallbackInfo& info); -} - - -// .cc: -void Foo::Bar(const Nan::FunctionCallbackInfo& info) { - ... -} - -void Foo::Baz(const Nan::FunctionCallbackInfo& info) { - ... -} -``` - -A helper macro `NAN_METHOD(methodname)` exists, compatible with NAN v1 method declarations. - -**Example usage with `NAN_METHOD(methodname)`** - -```c++ -// .h: -class Foo : public Nan::ObjectWrap { - ... - - static NAN_METHOD(Bar); - static NAN_METHOD(Baz); -} - - -// .cc: -NAN_METHOD(Foo::Bar) { - ... -} - -NAN_METHOD(Foo::Baz) { - ... -} -``` - -Use [`Nan::SetPrototypeMethod`](#api_nan_set_prototype_method) to attach a method to a JavaScript function prototype or [`Nan::SetMethod`](#api_nan_set_method) to attach a method directly on a JavaScript object. - - -### Getter declaration - -JavaScript-accessible getters should be declared with the following signature to form a `Nan::GetterCallback`: - -```c++ -typedef void(*GetterCallback)(v8::Local, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void GetterName(v8::Local property, - const Nan::PropertyCallbackInfo& info) { - ... -} -``` - -You do not need to declare a new `HandleScope` within a getter as one is implicitly created for you. - -A helper macro `NAN_GETTER(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on [Accessors](https://developers.google.com/v8/embed#accesssors). - - -### Setter declaration - -JavaScript-accessible setters should be declared with the following signature to form a Nan::SetterCallback: - -```c++ -typedef void(*SetterCallback)(v8::Local, - v8::Local, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void SetterName(v8::Local property, - v8::Local value, - const Nan::PropertyCallbackInfo& info) { - ... -} -``` - -You do not need to declare a new `HandleScope` within a setter as one is implicitly created for you. - -A helper macro `NAN_SETTER(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on [Accessors](https://developers.google.com/v8/embed#accesssors). - - -### Property getter declaration - -JavaScript-accessible property getters should be declared with the following signature to form a Nan::PropertyGetterCallback: - -```c++ -typedef void(*PropertyGetterCallback)(v8::Local, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void PropertyGetterName(v8::Local property, - const Nan::PropertyCallbackInfo& info) { - ... -} -``` - -You do not need to declare a new `HandleScope` within a property getter as one is implicitly created for you. - -A helper macro `NAN_PROPERTY_GETTER(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Property setter declaration - -JavaScript-accessible property setters should be declared with the following signature to form a Nan::PropertySetterCallback: - -```c++ -typedef void(*PropertySetterCallback)(v8::Local, - v8::Local, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void PropertySetterName(v8::Local property, - v8::Local value, - const Nan::PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a property setter as one is implicitly created for you. - -A helper macro `NAN_PROPERTY_SETTER(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Property enumerator declaration - -JavaScript-accessible property enumerators should be declared with the following signature to form a Nan::PropertyEnumeratorCallback: - -```c++ -typedef void(*PropertyEnumeratorCallback)(const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void PropertyEnumeratorName(const Nan::PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a property enumerator as one is implicitly created for you. - -A helper macro `NAN_PROPERTY_ENUMERATOR(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Property deleter declaration - -JavaScript-accessible property deleters should be declared with the following signature to form a Nan::PropertyDeleterCallback: - -```c++ -typedef void(*PropertyDeleterCallback)(v8::Local, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void PropertyDeleterName(v8::Local property, - const Nan::PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a property deleter as one is implicitly created for you. - -A helper macro `NAN_PROPERTY_DELETER(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Property query declaration - -JavaScript-accessible property query methods should be declared with the following signature to form a Nan::PropertyQueryCallback: - -```c++ -typedef void(*PropertyQueryCallback)(v8::Local, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void PropertyQueryName(v8::Local property, - const Nan::PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a property query method as one is implicitly created for you. - -A helper macro `NAN_PROPERTY_QUERY(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Index getter declaration - -JavaScript-accessible index getter methods should be declared with the following signature to form a Nan::IndexGetterCallback: - -```c++ -typedef void(*IndexGetterCallback)(uint32_t, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void IndexGetterName(uint32_t index, const PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a index getter as one is implicitly created for you. - -A helper macro `NAN_INDEX_GETTER(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Index setter declaration - -JavaScript-accessible index setter methods should be declared with the following signature to form a Nan::IndexSetterCallback: - -```c++ -typedef void(*IndexSetterCallback)(uint32_t, - v8::Local, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void IndexSetterName(uint32_t index, - v8::Local value, - const PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a index setter as one is implicitly created for you. - -A helper macro `NAN_INDEX_SETTER(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Index enumerator declaration - -JavaScript-accessible index enumerator methods should be declared with the following signature to form a Nan::IndexEnumeratorCallback: - -```c++ -typedef void(*IndexEnumeratorCallback)(const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void IndexEnumeratorName(const PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a index enumerator as one is implicitly created for you. - -A helper macro `NAN_INDEX_ENUMERATOR(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Index deleter declaration - -JavaScript-accessible index deleter methods should be declared with the following signature to form a Nan::IndexDeleterCallback: - -```c++ -typedef void(*IndexDeleterCallback)(uint32_t, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void IndexDeleterName(uint32_t index, const PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a index deleter as one is implicitly created for you. - -A helper macro `NAN_INDEX_DELETER(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Index query declaration - -JavaScript-accessible index query methods should be declared with the following signature to form a Nan::IndexQueryCallback: - -```c++ -typedef void(*IndexQueryCallback)(uint32_t, - const PropertyCallbackInfo&); -``` - -Example: - -```c++ -void IndexQueryName(uint32_t index, const PropertyCallbackInfo& info); -``` - -You do not need to declare a new `HandleScope` within a index query method as one is implicitly created for you. - -A helper macro `NAN_INDEX_QUERY(methodname)` exists, compatible with NAN v1 method declarations. - -Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors). - - -### Nan::SetMethod() - -Sets a method with a given name directly on a JavaScript object where the method has the `Nan::FunctionCallback` signature (see Method declaration). - -Signature: - -```c++ -void Nan::SetMethod(v8::Local recv, - const char *name, - Nan::FunctionCallback callback) -void Nan::SetMethod(v8::Local templ, - const char *name, - Nan::FunctionCallback callback) -``` - - -### Nan::SetPrototypeMethod() - -Sets a method with a given name on a `FunctionTemplate`'s prototype where the method has the `Nan::FunctionCallback` signature (see Method declaration). - -Signature: - -```c++ -void Nan::SetPrototypeMethod(v8::Local recv, - const char* name, - Nan::FunctionCallback callback) -``` - - -### Nan::SetAccessor() - -Sets getters and setters for a property with a given name on an `ObjectTemplate` or a plain `Object`. Accepts getters with the `Nan::GetterCallback` signature (see Getter declaration) and setters with the `Nan::SetterCallback` signature (see Setter declaration). - -Signature: - -```c++ -void SetAccessor(v8::Local tpl, - v8::Local name, - Nan::GetterCallback getter, - Nan::SetterCallback setter = 0, - v8::Local data = v8::Local(), - v8::AccessControl settings = v8::DEFAULT, - v8::PropertyAttribute attribute = v8::None, - imp::Sig signature = imp::Sig()); -bool SetAccessor(v8::Local obj, - v8::Local name, - Nan::GetterCallback getter, - Nan::SetterCallback setter = 0, - v8::Local data = v8::Local(), - v8::AccessControl settings = v8::DEFAULT, - v8::PropertyAttribute attribute = v8::None) -``` - -See the V8 [`ObjectTemplate#SetAccessor()`](https://v8docs.nodesource.com/io.js-3.0/db/d5f/classv8_1_1_object_template.html#aa90691622f01269c6a11391d372ca0c5) and [`Object#SetAccessor()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#a3f9dee085f5ec346465f1dc924325043) for further information about how to use `Nan::SetAccessor()`. - - -### Nan::SetNamedPropertyHandler() - -Sets named property getters, setters, query, deleter and enumerator methods on an `ObjectTemplate`. Accepts: - -* Property getters with the `Nan::PropertyGetterCallback` signature (see Property getter declaration) -* Property setters with the `Nan::PropertySetterCallback` signature (see Property setter declaration) -* Property query methods with the `Nan::PropertyQueryCallback` signature (see Property query declaration) -* Property deleters with the `Nan::PropertyDeleterCallback` signature (see Property deleter declaration) -* Property enumerators with the `Nan::PropertyEnumeratorCallback` signature (see Property enumerator declaration) - -Signature: - -```c++ -void SetNamedPropertyHandler(v8::Local tpl, - Nan::PropertyGetterCallback getter, - Nan::PropertySetterCallback setter = 0, - Nan::PropertyQueryCallback query = 0, - Nan::PropertyDeleterCallback deleter = 0, - Nan::PropertyEnumeratorCallback enumerator = 0, - v8::Local data = v8::Local()) -``` - -See the V8 [`ObjectTemplate#SetNamedPropertyHandler()`](https://v8docs.nodesource.com/io.js-3.0/db/d5f/classv8_1_1_object_template.html#a34d1cc45b642cd131706663801aadd76) for further information about how to use `Nan::SetNamedPropertyHandler()`. - - -### Nan::SetIndexedPropertyHandler() - -Sets indexed property getters, setters, query, deleter and enumerator methods on an `ObjectTemplate`. Accepts: - -* Indexed property getters with the `Nan::IndexGetterCallback` signature (see Index getter declaration) -* Indexed property setters with the `Nan::IndexSetterCallback` signature (see Index setter declaration) -* Indexed property query methods with the `Nan::IndexQueryCallback` signature (see Index query declaration) -* Indexed property deleters with the `Nan::IndexDeleterCallback` signature (see Index deleter declaration) -* Indexed property enumerators with the `Nan::IndexEnumeratorCallback` signature (see Index enumerator declaration) - -Signature: - -```c++ -void SetIndexedPropertyHandler(v8::Local tpl, - Nan::IndexGetterCallback getter, - Nan::IndexSetterCallback setter = 0, - Nan::IndexQueryCallback query = 0, - Nan::IndexDeleterCallback deleter = 0, - Nan::IndexEnumeratorCallback enumerator = 0, - v8::Local data = v8::Local()) -``` - -See the V8 [`ObjectTemplate#SetIndexedPropertyHandler()`](https://v8docs.nodesource.com/io.js-3.0/db/d5f/classv8_1_1_object_template.html#ac0234cbede45d51778bb5f6a32a9e125) for further information about how to use `Nan::SetIndexedPropertyHandler()`. - - -### Nan::SetTemplate() - -Adds properties on an `Object`'s or `Function`'s template. - -Signature: - -```c++ -void Nan::SetTemplate(v8::Local templ, - const char *name, - v8::Local value); -void Nan::SetTemplate(v8::Local templ, - v8::Local name, - v8::Local value, - v8::PropertyAttribute attributes) -``` - -Calls the `Template`'s [`Set()`](https://v8docs.nodesource.com/io.js-3.0/db/df7/classv8_1_1_template.html#a2db6a56597bf23c59659c0659e564ddf). - - -### Nan::SetPrototypeTemplate() - -Adds properties on an `Object`'s or `Function`'s prototype template. - -Signature: - -```c++ -void Nan::SetPrototypeTemplate(v8::Local templ, - const char *name, - v8::Local value); -void Nan::SetPrototypeTemplate(v8::Local templ, - v8::Local name, - v8::Local value, - v8::PropertyAttribute attributes) -``` - -Calls the `FunctionTemplate`'s _PrototypeTemplate's_ [`Set()`](https://v8docs.nodesource.com/io.js-3.0/db/df7/classv8_1_1_template.html#a2db6a56597bf23c59659c0659e564ddf). - - -### Nan::SetInstanceTemplate() - -Use to add instance properties on `FunctionTemplate`'s. - -Signature: - -```c++ -void Nan::SetInstanceTemplate(v8::Local templ, - const char *name, - v8::Local value); -void Nan::SetInstanceTemplate(v8::Local templ, - v8::Local name, - v8::Local value, - v8::PropertyAttribute attributes) -``` - -Calls the `FunctionTemplate`'s _InstanceTemplate's_ [`Set()`](https://v8docs.nodesource.com/io.js-3.0/db/df7/classv8_1_1_template.html#a2db6a56597bf23c59659c0659e564ddf). - - -### Nan::SetCallHandler() - -Set the call-handler callback for a `v8::FunctionTemplate`. -This callback is called whenever the function created from this FunctionTemplate is called. - -Signature: - -```c++ -void Nan::SetCallHandler(v8::Local templ, Nan::FunctionCallback callback, v8::Local data = v8::Local()) -``` - -Calls the `FunctionTemplate`'s [`SetCallHandler()`](https://v8docs.nodesource.com/io.js-3.0/d8/d83/classv8_1_1_function_template.html#a26cf14e36aa1a47091b98536d08ea821). - - -### Nan::SetCallAsFunctionHandler() - -Sets the callback to be used when calling instances created from the `v8::ObjectTemplate` as a function. -If no callback is set, instances behave like normal JavaScript objects that cannot be called as a function. - -Signature: - -```c++ -void Nan::SetCallAsFunctionHandler(v8::Local templ, Nan::FunctionCallback callback, v8::Local data = v8::Local()) -``` - -Calls the `ObjectTemplate`'s [`SetCallAsFunctionHandler()`](https://v8docs.nodesource.com/io.js-3.0/db/d5f/classv8_1_1_object_template.html#ae0a0e72fb0c5e5f32e255fe5bcc7316a). - diff --git a/node_modules/nan/doc/new.md b/node_modules/nan/doc/new.md deleted file mode 100644 index c0734bd..0000000 --- a/node_modules/nan/doc/new.md +++ /dev/null @@ -1,147 +0,0 @@ -## New - -NAN provides a `Nan::New()` helper for the creation of new JavaScript objects in a way that's compatible across the supported versions of V8. - - - Nan::New() - - Nan::Undefined() - - Nan::Null() - - Nan::True() - - Nan::False() - - Nan::EmptyString() - - - -### Nan::New() - -`Nan::New()` should be used to instantiate new JavaScript objects. - -Refer to the specific V8 type in the [V8 documentation](https://v8docs.nodesource.com/io.js-3.0/d1/d83/classv8_1_1_data.html) for information on the types of arguments required for instantiation. - -Signatures: - -Return types are mostly omitted from the signatures for simplicity. In most cases the type will be contained within a `v8::Local`. The following types will be contained within a `Nan::MaybeLocal`: `v8::String`, `v8::Date`, `v8::RegExp`, `v8::Script`, `v8::UnboundScript`. - -Empty objects: - -```c++ -Nan::New(); -``` - -Generic single and multiple-argument: - -```c++ -Nan::New(A0 arg0); -Nan::New(A0 arg0, A1 arg1); -Nan::New(A0 arg0, A1 arg1, A2 arg2); -Nan::New(A0 arg0, A1 arg1, A2 arg2, A3 arg3); -``` - -For creating `v8::FunctionTemplate` and `v8::Function` objects: - -_The definition of `Nan::FunctionCallback` can be found in the [Method declaration](./methods.md#api_nan_method) documentation._ - -```c++ -Nan::New(Nan::FunctionCallback callback, - v8::Local data = v8::Local()); -Nan::New(Nan::FunctionCallback callback, - v8::Local data = v8::Local(), - A2 a2 = A2()); -``` - -Native number types: - -```c++ -v8::Local Nan::New(bool value); -v8::Local Nan::New(int32_t value); -v8::Local Nan::New(uint32_t value); -v8::Local Nan::New(double value); -``` - -String types: - -```c++ -Nan::MaybeLocal Nan::New(std::string const& value); -Nan::MaybeLocal Nan::New(const char * value, int length); -Nan::MaybeLocal Nan::New(const char * value); -Nan::MaybeLocal Nan::New(const uint16_t * value); -Nan::MaybeLocal Nan::New(const uint16_t * value, int length); -``` - -Specialized types: - -```c++ -v8::Local Nan::New(v8::String::ExternalStringResource * value); -v8::Local Nan::New(Nan::ExternalOneByteStringResource * value); -v8::Local Nan::New(v8::Local pattern, v8::RegExp::Flags flags); -``` - -Note that `Nan::ExternalOneByteStringResource` maps to [`v8::String::ExternalOneByteStringResource`](https://v8docs.nodesource.com/io.js-3.0/d9/db3/classv8_1_1_string_1_1_external_one_byte_string_resource.html), and `v8::String::ExternalAsciiStringResource` in older versions of V8. - - - -### Nan::Undefined() - -A helper method to reference the `v8::Undefined` object in a way that is compatible across all supported versions of V8. - -Signature: - -```c++ -v8::Local Nan::Undefined() -``` - - -### Nan::Null() - -A helper method to reference the `v8::Null` object in a way that is compatible across all supported versions of V8. - -Signature: - -```c++ -v8::Local Nan::Null() -``` - - -### Nan::True() - -A helper method to reference the `v8::Boolean` object representing the `true` value in a way that is compatible across all supported versions of V8. - -Signature: - -```c++ -v8::Local Nan::True() -``` - - -### Nan::False() - -A helper method to reference the `v8::Boolean` object representing the `false` value in a way that is compatible across all supported versions of V8. - -Signature: - -```c++ -v8::Local Nan::False() -``` - - -### Nan::EmptyString() - -Call [`v8::String::Empty`](https://v8docs.nodesource.com/io.js-3.0/d2/db3/classv8_1_1_string.html#a7c1bc8886115d7ee46f1d571dd6ebc6d) to reference the empty string in a way that is compatible across all supported versions of V8. - -Signature: - -```c++ -v8::Local Nan::EmptyString() -``` - - - -### Nan::NewOneByteString() - -An implementation of [`v8::String::NewFromOneByte()`](https://v8docs.nodesource.com/io.js-3.0/d2/db3/classv8_1_1_string.html#a5264d50b96d2c896ce525a734dc10f09) provided for consistent availability and API across supported versions of V8. Allocates a new string from Latin-1 data. - -Signature: - -```c++ -Nan::MaybeLocal Nan::NewOneByteString(const uint8_t * value, - int length = -1) -``` diff --git a/node_modules/nan/doc/node_misc.md b/node_modules/nan/doc/node_misc.md deleted file mode 100644 index 8aa080f..0000000 --- a/node_modules/nan/doc/node_misc.md +++ /dev/null @@ -1,63 +0,0 @@ -## Miscellaneous Node Helpers - - - Nan::MakeCallback() - - NAN_MODULE_INIT() - - Nan::Export() - - - -### Nan::MakeCallback() - -Wrappers around `node::MakeCallback()` providing a consistent API across all supported versions of Node. - -Use `MakeCallback()` rather than using `v8::Function#Call()` directly in order to properly process internal Node functionality including domains, async hooks, the microtask queue, and other debugging functionality. - -Signatures: - -```c++ -v8::Local Nan::MakeCallback(v8::Local target, - v8::Local func, - int argc, - v8::Local* argv); -v8::Local Nan::MakeCallback(v8::Local target, - v8::Local symbol, - int argc, - v8::Local* argv); -v8::Local Nan::MakeCallback(v8::Local target, - const char* method, - int argc, - v8::Local* argv); -``` - - - -### NAN_MODULE_INIT() - -Used to define the entry point function to a Node add-on. Creates a function with a given `name` that receives a `target` object representing the equivalent of the JavaScript `exports` object. - -See example below. - - -### Nan::Export() - -A simple helper to register a `v8::FunctionTemplate` from a JavaScript-accessible method (see [Methods](./methods.md)) as a property on an object. Can be used in a way similar to assigning properties to `module.exports` in JavaScript. - -Signature: - -```c++ -void Export(v8::Local target, const char *name, Nan::FunctionCallback f) -``` - -Also available as the shortcut `NAN_EXPORT` macro. - -Example: - -```c++ -NAN_METHOD(Foo) { - ... -} - -NAN_MODULE_INIT(Init) { - NAN_EXPORT(target, Foo); -} -``` diff --git a/node_modules/nan/doc/object_wrappers.md b/node_modules/nan/doc/object_wrappers.md deleted file mode 100644 index e89832b..0000000 --- a/node_modules/nan/doc/object_wrappers.md +++ /dev/null @@ -1,263 +0,0 @@ -## Object Wrappers - -The `ObjectWrap` class can be used to make wrapped C++ objects and a factory of wrapped objects. - - - Nan::ObjectWrap - - - -### Nan::ObjectWrap() - -A reimplementation of `node::ObjectWrap` that adds some API not present in older versions of Node. Should be preferred over `node::ObjectWrap` in all cases for consistency. - -Definition: - -```c++ -class ObjectWrap { - public: - ObjectWrap(); - - virtual ~ObjectWrap(); - - template - static inline T* Unwrap(v8::Local handle); - - inline v8::Local handle(); - - inline Nan::Persistent& persistent(); - - protected: - inline void Wrap(v8::Local handle); - - inline void MakeWeak(); - - /* Ref() marks the object as being attached to an event loop. - * Refed objects will not be garbage collected, even if - * all references are lost. - */ - virtual void Ref(); - - /* Unref() marks an object as detached from the event loop. This is its - * default state. When an object with a "weak" reference changes from - * attached to detached state it will be freed. Be careful not to access - * the object after making this call as it might be gone! - * (A "weak reference" means an object that only has a - * persistant handle.) - * - * DO NOT CALL THIS FROM DESTRUCTOR - */ - virtual void Unref(); - - int refs_; // ro -}; -``` - -See the Node documentation on [Wrapping C++ Objects](https://nodejs.org/api/addons.html#addons_wrapping_c_objects) for more details. - -### This vs. Holder - -When calling `Unwrap`, it is important that the argument is indeed some JavaScript object which got wrapped by a `Wrap` call for this class or any derived class. -The `Signature` installed by [`Nan::SetPrototypeMethod()`](methods.md#api_nan_set_prototype_method) does ensure that `info.Holder()` is just such an instance. -In Node 0.12 and later, `info.This()` will also be of such a type, since otherwise the invocation will get rejected. -However, in Node 0.10 and before it was possible to invoke a method on a JavaScript object which just had the extension type in its prototype chain. -In such a situation, calling `Unwrap` on `info.This()` will likely lead to a failed assertion causing a crash, but could lead to even more serious corruption. - -On the other hand, calling `Unwrap` in an [accessor](methods.md#api_nan_set_accessor) should not use `Holder()` if the accessor is defined on the prototype. -So either define your accessors on the instance template, -or use `This()` after verifying that it is indeed a valid object. - -### Examples - -#### Basic - -```c++ -class MyObject : public Nan::ObjectWrap { - public: - static NAN_MODULE_INIT(Init) { - v8::Local tpl = Nan::New(New); - tpl->SetClassName(Nan::New("MyObject").ToLocalChecked()); - tpl->InstanceTemplate()->SetInternalFieldCount(1); - - Nan::SetPrototypeMethod(tpl, "getHandle", GetHandle); - Nan::SetPrototypeMethod(tpl, "getValue", GetValue); - - constructor().Reset(Nan::GetFunction(tpl).ToLocalChecked()); - Nan::Set(target, Nan::New("MyObject").ToLocalChecked(), - Nan::GetFunction(tpl).ToLocalChecked()); - } - - private: - explicit MyObject(double value = 0) : value_(value) {} - ~MyObject() {} - - static NAN_METHOD(New) { - if (info.IsConstructCall()) { - double value = info[0]->IsUndefined() ? 0 : Nan::To(info[0]).FromJust(); - MyObject *obj = new MyObject(value); - obj->Wrap(info.This()); - info.GetReturnValue().Set(info.This()); - } else { - const int argc = 1; - v8::Local argv[argc] = {info[0]}; - v8::Local cons = Nan::New(constructor()); - info.GetReturnValue().Set(cons->NewInstance(argc, argv)); - } - } - - static NAN_METHOD(GetHandle) { - MyObject* obj = Nan::ObjectWrap::Unwrap(info.Holder()); - info.GetReturnValue().Set(obj->handle()); - } - - static NAN_METHOD(GetValue) { - MyObject* obj = Nan::ObjectWrap::Unwrap(info.Holder()); - info.GetReturnValue().Set(obj->value_); - } - - static inline Nan::Persistent & constructor() { - static Nan::Persistent my_constructor; - return my_constructor; - } - - double value_; -}; - -NODE_MODULE(objectwrapper, MyObject::Init) -``` - -To use in Javascript: - -```Javascript -var objectwrapper = require('bindings')('objectwrapper'); - -var obj = new objectwrapper.MyObject(5); -console.log('Should be 5: ' + obj.getValue()); -``` - -#### Factory of wrapped objects - -```c++ -class MyFactoryObject : public Nan::ObjectWrap { - public: - static NAN_MODULE_INIT(Init) { - v8::Local tpl = Nan::New(New); - tpl->InstanceTemplate()->SetInternalFieldCount(1); - - Nan::SetPrototypeMethod(tpl, "getValue", GetValue); - - constructor().Reset(Nan::GetFunction(tpl).ToLocalChecked()); - } - - static NAN_METHOD(NewInstance) { - v8::Local cons = Nan::New(constructor()); - double value = info[0]->IsNumber() ? Nan::To(info[0]).FromJust() : 0; - const int argc = 1; - v8::Local argv[1] = {Nan::New(value)}; - info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked()); - } - - // Needed for the next example: - inline double value() const { - return value_; - } - - private: - explicit MyFactoryObject(double value = 0) : value_(value) {} - ~MyFactoryObject() {} - - static NAN_METHOD(New) { - if (info.IsConstructCall()) { - double value = info[0]->IsNumber() ? Nan::To(info[0]).FromJust() : 0; - MyFactoryObject * obj = new MyFactoryObject(value); - obj->Wrap(info.This()); - info.GetReturnValue().Set(info.This()); - } else { - const int argc = 1; - v8::Local argv[argc] = {info[0]}; - v8::Local cons = Nan::New(constructor()); - info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked()); - } - } - - static NAN_METHOD(GetValue) { - MyFactoryObject* obj = ObjectWrap::Unwrap(info.Holder()); - info.GetReturnValue().Set(obj->value_); - } - - static inline Nan::Persistent & constructor() { - static Nan::Persistent my_constructor; - return my_constructor; - } - - double value_; -}; - -NAN_MODULE_INIT(Init) { - MyFactoryObject::Init(target); - Nan::Set(target, - Nan::New("newFactoryObjectInstance").ToLocalChecked(), - Nan::GetFunction( - Nan::New(MyFactoryObject::NewInstance)).ToLocalChecked() - ); -} - -NODE_MODULE(wrappedobjectfactory, Init) -``` - -To use in Javascript: - -```Javascript -var wrappedobjectfactory = require('bindings')('wrappedobjectfactory'); - -var obj = wrappedobjectfactory.newFactoryObjectInstance(10); -console.log('Should be 10: ' + obj.getValue()); -``` - -#### Passing wrapped objects around - -Use the `MyFactoryObject` class above along with the following: - -```c++ -static NAN_METHOD(Sum) { - Nan::MaybeLocal maybe1 = Nan::To(info[0]); - Nan::MaybeLocal maybe2 = Nan::To(info[1]); - - // Quick check: - if (maybe1.IsEmpty() || maybe2.IsEmpty()) { - // return value is undefined by default - return; - } - - MyFactoryObject* obj1 = - Nan::ObjectWrap::Unwrap(maybe1.ToLocalChecked()); - MyFactoryObject* obj2 = - Nan::ObjectWrap::Unwrap(maybe2.ToLocalChecked()); - - info.GetReturnValue().Set(Nan::New(obj1->value() + obj2->value())); -} - -NAN_MODULE_INIT(Init) { - MyFactoryObject::Init(target); - Nan::Set(target, - Nan::New("newFactoryObjectInstance").ToLocalChecked(), - Nan::GetFunction( - Nan::New(MyFactoryObject::NewInstance)).ToLocalChecked() - ); - Nan::Set(target, - Nan::New("sum").ToLocalChecked(), - Nan::GetFunction(Nan::New(Sum)).ToLocalChecked() - ); -} - -NODE_MODULE(myaddon, Init) -``` - -To use in Javascript: - -```Javascript -var myaddon = require('bindings')('myaddon'); - -var obj1 = myaddon.newFactoryObjectInstance(5); -var obj2 = myaddon.newFactoryObjectInstance(10); -console.log('sum of object values: ' + myaddon.sum(obj1, obj2)); -``` diff --git a/node_modules/nan/doc/persistent.md b/node_modules/nan/doc/persistent.md deleted file mode 100644 index 743b44a..0000000 --- a/node_modules/nan/doc/persistent.md +++ /dev/null @@ -1,295 +0,0 @@ -## Persistent references - -An object reference that is independent of any `HandleScope` is a _persistent_ reference. Where a `Local` handle only lives as long as the `HandleScope` in which it was allocated, a `Persistent` handle remains valid until it is explicitly disposed. - -Due to the evolution of the V8 API, it is necessary for NAN to provide a wrapper implementation of the `Persistent` classes to supply compatibility across the V8 versions supported. - - - Nan::PersistentBase & v8::PersistentBase - - Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits - - Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits - - Nan::Persistent - - Nan::Global - - Nan::WeakCallbackInfo - - Nan::WeakCallbackType - -Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://developers.google.com/v8/embed#handles). - - -### Nan::PersistentBase & v8::PersistentBase - -A persistent handle contains a reference to a storage cell in V8 which holds an object value and which is updated by the garbage collector whenever the object is moved. A new storage cell can be created using the constructor or `Nan::PersistentBase::Reset()`. Existing handles can be disposed using an argument-less `Nan::PersistentBase::Reset()`. - -Definition: - -_(note: this is implemented as `Nan::PersistentBase` for older versions of V8 and the native `v8::PersistentBase` is used for newer versions of V8)_ - -```c++ -template class PersistentBase { - public: - /** - * If non-empty, destroy the underlying storage cell - */ - void Reset(); - - /** - * If non-empty, destroy the underlying storage cell and create a new one with - * the contents of another if it is also non-empty - */ - template void Reset(const v8::Local &other); - - /** - * If non-empty, destroy the underlying storage cell and create a new one with - * the contents of another if it is also non-empty - */ - template void Reset(const PersistentBase &other); - - /** - * If non-empty, destroy the underlying storage cell - * IsEmpty() will return true after this call. - */ - bool IsEmpty(); - - void Empty(); - - template bool operator==(const PersistentBase &that); - - template bool operator==(const v8::Local &that); - - template bool operator!=(const PersistentBase &that); - - template bool operator!=(const v8::Local &that); - - /** - * Install a finalization callback on this object. - * NOTE: There is no guarantee as to *when* or even *if* the callback is - * invoked. The invocation is performed solely on a best effort basis. - * As always, GC-based finalization should *not* be relied upon for any - * critical form of resource management! At the moment you can either - * specify a parameter for the callback or the location of two internal - * fields in the dying object. - */ - template - void SetWeak(P *parameter, - typename WeakCallbackInfo

    ::Callback callback, - WeakCallbackType type); - - void ClearWeak(); - - /** - * Marks the reference to this object independent. Garbage collector is free - * to ignore any object groups containing this object. Weak callback for an - * independent handle should not assume that it will be preceded by a global - * GC prologue callback or followed by a global GC epilogue callback. - */ - void MarkIndependent() const; - - bool IsIndependent() const; - - /** Checks if the handle holds the only reference to an object. */ - bool IsNearDeath() const; - - /** Returns true if the handle's reference is weak. */ - bool IsWeak() const -}; -``` - -See the V8 documentation for [`PersistentBase`](https://v8docs.nodesource.com/io.js-3.0/d4/dca/classv8_1_1_persistent_base.html) for further information. - -**Tip:** To get a `v8::Local` reference to the original object back from a `PersistentBase` or `Persistent` object: - -```c++ -v8::Local object = Nan::New(persistent); -``` - - -### Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits - -Default traits for `Nan::Persistent`. This class does not allow use of the a copy constructor or assignment operator. At present `kResetInDestructor` is not set, but that will change in a future version. - -Definition: - -_(note: this is implemented as `Nan::NonCopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_ - -```c++ -template class NonCopyablePersistentTraits { - public: - typedef Persistent > NonCopyablePersistent; - - static const bool kResetInDestructor = false; - - template - static void Copy(const Persistent &source, - NonCopyablePersistent *dest); - - template static void Uncompilable(); -}; -``` - -See the V8 documentation for [`NonCopyablePersistentTraits`](https://v8docs.nodesource.com/io.js-3.0/de/d73/classv8_1_1_non_copyable_persistent_traits.html) for further information. - - -### Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits - -A helper class of traits to allow copying and assignment of `Persistent`. This will clone the contents of storage cell, but not any of the flags, etc.. - -Definition: - -_(note: this is implemented as `Nan::CopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_ - -```c++ -template -class CopyablePersistentTraits { - public: - typedef Persistent > CopyablePersistent; - - static const bool kResetInDestructor = true; - - template - static void Copy(const Persistent &source, - CopyablePersistent *dest); -}; -``` - -See the V8 documentation for [`CopyablePersistentTraits`](https://v8docs.nodesource.com/io.js-3.0/da/d5c/structv8_1_1_copyable_persistent_traits.html) for further information. - - -### Nan::Persistent - -A type of `PersistentBase` which allows copy and assignment. Copy, assignment and destructor behavior is controlled by the traits class `M`. - -Definition: - -```c++ -template > -class Persistent; - -template class Persistent : public PersistentBase { - public: - /** - * A Persistent with no storage cell. - */ - Persistent(); - - /** - * Construct a Persistent from a v8::Local. When the v8::Local is non-empty, a - * new storage cell is created pointing to the same object, and no flags are - * set. - */ - template Persistent(v8::Local that); - - /** - * Construct a Persistent from a Persistent. When the Persistent is non-empty, - * a new storage cell is created pointing to the same object, and no flags are - * set. - */ - Persistent(const Persistent &that); - - /** - * The copy constructors and assignment operator create a Persistent exactly - * as the Persistent constructor, but the Copy function from the traits class - * is called, allowing the setting of flags based on the copied Persistent. - */ - Persistent &operator=(const Persistent &that); - - template - Persistent &operator=(const Persistent &that); - - /** - * The destructor will dispose the Persistent based on the kResetInDestructor - * flags in the traits class. Since not calling dispose can result in a - * memory leak, it is recommended to always set this flag. - */ - ~Persistent(); -}; -``` - -See the V8 documentation for [`Persistent`](https://v8docs.nodesource.com/io.js-3.0/d2/d78/classv8_1_1_persistent.html) for further information. - - -### Nan::Global - -A type of `PersistentBase` which has move semantics. - -```c++ -template class Global : public PersistentBase { - public: - /** - * A Global with no storage cell. - */ - Global(); - - /** - * Construct a Global from a v8::Local. When the v8::Local is non-empty, a new - * storage cell is created pointing to the same object, and no flags are set. - */ - template Global(v8::Local that); - /** - * Construct a Global from a PersistentBase. When the Persistent is non-empty, - * a new storage cell is created pointing to the same object, and no flags are - * set. - */ - template Global(const PersistentBase &that); - - /** - * Pass allows returning globals from functions, etc. - */ - Global Pass(); -}; -``` - -See the V8 documentation for [`Global`](https://v8docs.nodesource.com/io.js-3.0/d5/d40/classv8_1_1_global.html) for further information. - - -### Nan::WeakCallbackInfo - -`Nan::WeakCallbackInfo` is used as an argument when setting a persistent reference as weak. You may need to free any external resources attached to the object. It is a mirror of `v8:WeakCallbackInfo` as found in newer versions of V8. - -Definition: - -```c++ -template class WeakCallbackInfo { - public: - typedef void (*Callback)(const WeakCallbackInfo& data); - - v8::Isolate *GetIsolate() const; - - /** - * Get the parameter that was associated with the weak handle. - */ - T *GetParameter() const; - - /** - * Get pointer from internal field, index can be 0 or 1. - */ - void *GetInternalField(int index) const; -}; -``` - -Example usage: - -```c++ -void weakCallback(const WeakCallbackInfo &data) { - int *parameter = data.GetParameter(); - delete parameter; -} - -Persistent obj; -int *data = new int(0); -obj.SetWeak(data, callback, WeakCallbackType::kParameter); -``` - -See the V8 documentation for [`WeakCallbackInfo`](https://v8docs.nodesource.com/io.js-3.0/d8/d06/classv8_1_1_weak_callback_info.html) for further information. - - -### Nan::WeakCallbackType - -Represents the type of a weak callback. -A weak callback of type `kParameter` makes the supplied parameter to `Nan::PersistentBase::SetWeak` available through `WeakCallbackInfo::GetParameter`. -A weak callback of type `kInternalFields` uses up to two internal fields at indices 0 and 1 on the `Nan::PersistentBase` being made weak. -Note that only `v8::Object`s and derivatives can have internal fields. - -Definition: - -```c++ -enum class WeakCallbackType { kParameter, kInternalFields }; -``` diff --git a/node_modules/nan/doc/scopes.md b/node_modules/nan/doc/scopes.md deleted file mode 100644 index 060c8e4..0000000 --- a/node_modules/nan/doc/scopes.md +++ /dev/null @@ -1,73 +0,0 @@ -## Scopes - -A _local handle_ is a pointer to an object. All V8 objects are accessed using handles, they are necessary because of the way the V8 garbage collector works. - -A handle scope can be thought of as a container for any number of handles. When you've finished with your handles, instead of deleting each one individually you can simply delete their scope. - -The creation of `HandleScope` objects is different across the supported versions of V8. Therefore, NAN provides its own implementations that can be used safely across these. - - - Nan::HandleScope - - Nan::EscapableHandleScope - -Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://github.com/v8/v8/wiki/Embedder%27s%20Guide#handles-and-garbage-collection). - - -### Nan::HandleScope - -A simple wrapper around [`v8::HandleScope`](https://v8docs.nodesource.com/io.js-3.0/d3/d95/classv8_1_1_handle_scope.html). - -Definition: - -```c++ -class Nan::HandleScope { - public: - Nan::HandleScope(); - static int NumberOfHandles(); -}; -``` - -Allocate a new `Nan::HandleScope` whenever you are creating new V8 JavaScript objects. Note that an implicit `HandleScope` is created for you on JavaScript-accessible methods so you do not need to insert one yourself. - -Example: - -```c++ -// new object is created, it needs a new scope: -void Pointless() { - Nan::HandleScope scope; - v8::Local obj = Nan::New(); -} - -// JavaScript-accessible method already has a HandleScope -NAN_METHOD(Pointless2) { - v8::Local obj = Nan::New(); -} -``` - - -### Nan::EscapableHandleScope - -Similar to [`Nan::HandleScope`](#api_nan_handle_scope) but should be used in cases where a function needs to return a V8 JavaScript type that has been created within it. - -Definition: - -```c++ -class Nan::EscapableHandleScope { - public: - Nan::EscapableHandleScope(); - static int NumberOfHandles(); - template v8::Local Escape(v8::Local value); -} -``` - -Use `Escape(value)` to return the object. - -Example: - -```c++ -v8::Local EmptyObj() { - Nan::EscapableHandleScope scope; - v8::Local obj = Nan::New(); - return scope.Escape(obj); -} -``` - diff --git a/node_modules/nan/doc/script.md b/node_modules/nan/doc/script.md deleted file mode 100644 index 1267b5e..0000000 --- a/node_modules/nan/doc/script.md +++ /dev/null @@ -1,38 +0,0 @@ -## Script - -NAN provides a `v8::Script` helpers as the API has changed over the supported versions of V8. - - - Nan::CompileScript() - - Nan::RunScript() - - - -### Nan::CompileScript() - -A wrapper around [`v8::Script::Compile()`](https://v8docs.nodesource.com/io.js-3.0/da/da5/classv8_1_1_script_compiler.html#a93f5072a0db55d881b969e9fc98e564b). - -Note that `Nan::BoundScript` is an alias for `v8::Script`. - -Signature: - -```c++ -Nan::MaybeLocal Nan::CompileScript( - v8::Local s, - const v8::ScriptOrigin& origin); -Nan::MaybeLocal Nan::CompileScript(v8::Local s); -``` - - - -### Nan::RunScript() - -Calls `script->Run()` or `script->BindToCurrentContext()->Run(Nan::GetCurrentContext())`. - -Note that `Nan::BoundScript` is an alias for `v8::Script` and `Nan::UnboundScript` is an alias for `v8::UnboundScript` where available and `v8::Script` on older versions of V8. - -Signature: - -```c++ -Nan::MaybeLocal Nan::RunScript(v8::Local script) -Nan::MaybeLocal Nan::RunScript(v8::Local script) -``` diff --git a/node_modules/nan/doc/string_bytes.md b/node_modules/nan/doc/string_bytes.md deleted file mode 100644 index 7c1bd32..0000000 --- a/node_modules/nan/doc/string_bytes.md +++ /dev/null @@ -1,62 +0,0 @@ -## Strings & Bytes - -Miscellaneous string & byte encoding and decoding functionality provided for compatibility across supported versions of V8 and Node. Implemented by NAN to ensure that all encoding types are supported, even for older versions of Node where they are missing. - - - Nan::Encoding - - Nan::Encode() - - Nan::DecodeBytes() - - Nan::DecodeWrite() - - - -### Nan::Encoding - -An enum representing the supported encoding types. A copy of `node::encoding` that is consistent across versions of Node. - -Definition: - -```c++ -enum Nan::Encoding { ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER } -``` - - - -### Nan::Encode() - -A wrapper around `node::Encode()` that provides a consistent implementation across supported versions of Node. - -Signature: - -```c++ -v8::Local Nan::Encode(const void *buf, - size_t len, - enum Nan::Encoding encoding = BINARY); -``` - - - -### Nan::DecodeBytes() - -A wrapper around `node::DecodeBytes()` that provides a consistent implementation across supported versions of Node. - -Signature: - -```c++ -ssize_t Nan::DecodeBytes(v8::Local val, - enum Nan::Encoding encoding = BINARY); -``` - - - -### Nan::DecodeWrite() - -A wrapper around `node::DecodeWrite()` that provides a consistent implementation across supported versions of Node. - -Signature: - -```c++ -ssize_t Nan::DecodeWrite(char *buf, - size_t len, - v8::Local val, - enum Nan::Encoding encoding = BINARY); -``` diff --git a/node_modules/nan/doc/v8_internals.md b/node_modules/nan/doc/v8_internals.md deleted file mode 100644 index ce5f230..0000000 --- a/node_modules/nan/doc/v8_internals.md +++ /dev/null @@ -1,199 +0,0 @@ -## V8 internals - -The hooks to access V8 internals—including GC and statistics—are different across the supported versions of V8, therefore NAN provides its own hooks that call the appropriate V8 methods. - - - NAN_GC_CALLBACK() - - Nan::AddGCEpilogueCallback() - - Nan::RemoveGCEpilogueCallback() - - Nan::AddGCPrologueCallback() - - Nan::RemoveGCPrologueCallback() - - Nan::GetHeapStatistics() - - Nan::SetCounterFunction() - - Nan::SetCreateHistogramFunction() - - Nan::SetAddHistogramSampleFunction() - - Nan::IdleNotification() - - Nan::LowMemoryNotification() - - Nan::ContextDisposedNotification() - - Nan::GetInternalFieldPointer() - - Nan::SetInternalFieldPointer() - - Nan::AdjustExternalMemory() - - - -### NAN_GC_CALLBACK(callbackname) - -Use `NAN_GC_CALLBACK` to declare your callbacks for `Nan::AddGCPrologueCallback()` and `Nan::AddGCEpilogueCallback()`. Your new method receives the arguments `v8::GCType type` and `v8::GCCallbackFlags flags`. - -```c++ -static Nan::Persistent callback; - -NAN_GC_CALLBACK(gcPrologueCallback) { - v8::Local argv[] = { Nan::New("prologue").ToLocalChecked() }; - Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(callback), 1, argv); -} - -NAN_METHOD(Hook) { - callback.Reset(args[0].As()); - Nan::AddGCPrologueCallback(gcPrologueCallback); - info.GetReturnValue().Set(info.Holder()); -} -``` - - -### Nan::AddGCEpilogueCallback() - -Signature: - -```c++ -void Nan::AddGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback, v8::GCType gc_type_filter = v8::kGCTypeAll) -``` - -Calls V8's [`AddGCEpilogueCallback()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a90d1860babc76059c62514b422f56960). - - -### Nan::RemoveGCEpilogueCallback() - -Signature: - -```c++ -void Nan::RemoveGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback) -``` - -Calls V8's [`RemoveGCEpilogueCallback()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a05c60859fd4b8e96bfcd451281ed6c7c). - - -### Nan::AddGCPrologueCallback() - -Signature: - -```c++ -void Nan::AddGCPrologueCallback(v8::Isolate::GCPrologueCallback, v8::GCType gc_type_filter callback) -``` - -Calls V8's [`AddGCPrologueCallback()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#ab4b87b8f9f8e5bf95eba4009357e001f). - - -### Nan::RemoveGCPrologueCallback() - -Signature: - -```c++ -void Nan::RemoveGCPrologueCallback(v8::Isolate::GCPrologueCallback callback) -``` - -Calls V8's [`RemoveGCEpilogueCallback()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a9f6c51932811593f81ff30b949124186). - - -### Nan::GetHeapStatistics() - -Signature: - -```c++ -void Nan::GetHeapStatistics(v8::HeapStatistics *heap_statistics) -``` - -Calls V8's [`GetHeapStatistics()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a5593ac74687b713095c38987e5950b34). - - -### Nan::SetCounterFunction() - -Signature: - -```c++ -void Nan::SetCounterFunction(v8::CounterLookupCallback cb) -``` - -Calls V8's [`SetCounterFunction()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a045d7754e62fa0ec72ae6c259b29af94). - - -### Nan::SetCreateHistogramFunction() - -Signature: - -```c++ -void Nan::SetCreateHistogramFunction(v8::CreateHistogramCallback cb) -``` - -Calls V8's [`SetCreateHistogramFunction()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a542d67e85089cb3f92aadf032f99e732). - - -### Nan::SetAddHistogramSampleFunction() - -Signature: - -```c++ -void Nan::SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) -``` - -Calls V8's [`SetAddHistogramSampleFunction()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#aeb420b690bc2c216882d6fdd00ddd3ea). - - -### Nan::IdleNotification() - -Signature: - -```c++ -void Nan::IdleNotification(v8::HeapStatistics *heap_statistics) -``` - -Calls V8's [`IdleNotification()` or `IdleNotificationDeadline()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#ad6a2a02657f5425ad460060652a5a118) depending on V8 version. - - -### Nan::LowMemoryNotification() - -Signature: - -```c++ -void Nan::LowMemoryNotification() -``` - -Calls V8's [`LowMemoryNotification()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a24647f61d6b41f69668094bdcd6ea91f). - - -### Nan::ContextDisposedNotification() - -Signature: - -```c++ -void Nan::ContextDisposedNotification() -``` - -Calls V8's [`ContextDisposedNotification()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#ad7f5dc559866343fe6cd8db1f134d48b). - - -### Nan::GetInternalFieldPointer() - -Gets a pointer to the internal field with at `index` from a V8 `Object` handle. - -Signature: - -```c++ -void* Nan::GetInternalFieldPointer(v8::Local object, int index) -``` - -Calls the Object's [`GetAlignedPointerFromInternalField()` or `GetPointerFromInternalField()`](https://v8docs.nodesource.com/io.js-3.0/db/d85/classv8_1_1_object.html#ab3c57184263cf29963ef0017bec82281) depending on the version of V8. - - -### Nan::SetInternalFieldPointer() - -Sets the value of the internal field at `index` on a V8 `Object` handle. - -Signature: - -```c++ -void Nan::SetInternalFieldPointer(v8::Local object, int index, void* value) -``` - -Calls the Object's [`SetAlignedPointerInInternalField()` or `SetPointerInInternalField()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#ad7f5dc559866343fe6cd8db1f134d48b) depending on the version of V8. - - -### Nan::AdjustExternalMemory() - -Signature: - -```c++ -int Nan::AdjustExternalMemory(int bytesChange) -``` - -Calls V8's [`AdjustAmountOfExternalAllocatedMemory()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#ae1a59cac60409d3922582c4af675473e). - diff --git a/node_modules/nan/doc/v8_misc.md b/node_modules/nan/doc/v8_misc.md deleted file mode 100644 index 64f736d..0000000 --- a/node_modules/nan/doc/v8_misc.md +++ /dev/null @@ -1,85 +0,0 @@ -## Miscellaneous V8 Helpers - - - Nan::Utf8String - - Nan::GetCurrentContext() - - Nan::SetIsolateData() - - Nan::GetIsolateData() - - Nan::TypedArrayContents - - - -### Nan::Utf8String - -Converts an object to a UTF-8-encoded character array. If conversion to a string fails (e.g. due to an exception in the toString() method of the object) then the length() method returns 0 and the * operator returns NULL. The underlying memory used for this object is managed by the object. - -An implementation of [`v8::String::Utf8Value`](https://v8docs.nodesource.com/io.js-3.0/d4/d1b/classv8_1_1_string_1_1_utf8_value.html) that is consistent across all supported versions of V8. - -Definition: - -```c++ -class Nan::Utf8String { - public: - Nan::Utf8String(v8::Local from); - - int length() const; - - char* operator*(); - const char* operator*() const; -}; -``` - - -### Nan::GetCurrentContext() - -A call to [`v8::Isolate::GetCurrent()->GetCurrentContext()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a81c7a1ed7001ae2a65e89107f75fd053) that works across all supported versions of V8. - -Signature: - -```c++ -v8::Local Nan::GetCurrentContext() -``` - - -### Nan::SetIsolateData() - -A helper to provide a consistent API to [`v8::Isolate#SetData()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#a7acadfe7965997e9c386a05f098fbe36). - -Signature: - -```c++ -void Nan::SetIsolateData(v8::Isolate *isolate, T *data) -``` - - - -### Nan::GetIsolateData() - -A helper to provide a consistent API to [`v8::Isolate#GetData()`](https://v8docs.nodesource.com/io.js-3.0/d5/dda/classv8_1_1_isolate.html#aabd223436bc1100a787dadaa024c6257). - -Signature: - -```c++ -T *Nan::GetIsolateData(v8::Isolate *isolate) -``` - - -### Nan::TypedArrayContents - -A helper class for accessing the contents of an ArrayBufferView (aka a typedarray) from C++. If the input array is not a valid typedarray, then the data pointer of TypedArrayContents will default to `NULL` and the length will be 0. If the data pointer is not compatible with the alignment requirements of type, an assertion error will fail. - -Note that you must store a reference to the `array` object while you are accessing its contents. - -Definition: - -```c++ -template -class Nan::TypedArrayContents { - public: - TypedArrayContents(v8::Local array); - - size_t length() const; - - T* const operator*(); - const T* const operator*() const; -}; -``` diff --git a/node_modules/nan/include_dirs.js b/node_modules/nan/include_dirs.js deleted file mode 100644 index 4f1dfb4..0000000 --- a/node_modules/nan/include_dirs.js +++ /dev/null @@ -1 +0,0 @@ -console.log(require('path').relative('.', __dirname)); diff --git a/node_modules/nan/nan.h b/node_modules/nan/nan.h deleted file mode 100644 index aed2b31..0000000 --- a/node_modules/nan/nan.h +++ /dev/null @@ -1,2315 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors: - * - Rod Vagg - * - Benjamin Byholm - * - Trevor Norris - * - Nathan Rajlich - * - Brett Lawson - * - Ben Noordhuis - * - David Siegel - * - * MIT License - * - * Version 2.5.1: current Node 7.4.0, Node 12: 0.12.18, Node 10: 0.10.48, iojs: 3.3.1 - * - * See https://github.com/nodejs/nan for the latest update to this file - **********************************************************************************/ - -#ifndef NAN_H_ -#define NAN_H_ - -#include - -#define NODE_0_10_MODULE_VERSION 11 -#define NODE_0_12_MODULE_VERSION 14 -#define ATOM_0_21_MODULE_VERSION 41 -#define IOJS_1_0_MODULE_VERSION 42 -#define IOJS_1_1_MODULE_VERSION 43 -#define IOJS_2_0_MODULE_VERSION 44 -#define IOJS_3_0_MODULE_VERSION 45 -#define NODE_4_0_MODULE_VERSION 46 -#define NODE_5_0_MODULE_VERSION 47 -#define NODE_6_0_MODULE_VERSION 48 - -#ifdef _MSC_VER -# define NAN_HAS_CPLUSPLUS_11 (_MSC_VER >= 1800) -#else -# define NAN_HAS_CPLUSPLUS_11 (__cplusplus >= 201103L) -#endif - -#if NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION && !NAN_HAS_CPLUSPLUS_11 -# error This version of node/NAN/v8 requires a C++11 compiler -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#if defined(_MSC_VER) -# pragma warning( push ) -# pragma warning( disable : 4530 ) -# include -# include -# pragma warning( pop ) -#else -# include -# include -#endif - -// uv helpers -#ifdef UV_VERSION_MAJOR -# ifndef UV_VERSION_PATCH -# define UV_VERSION_PATCH 0 -# endif -# define NAUV_UVVERSION ((UV_VERSION_MAJOR << 16) | \ - (UV_VERSION_MINOR << 8) | \ - (UV_VERSION_PATCH)) -#else -# define NAUV_UVVERSION 0x000b00 -#endif - -#if NAUV_UVVERSION < 0x000b0b -# ifdef WIN32 -# include -# else -# include -# endif -#endif - -namespace Nan { - -#define NAN_INLINE inline // TODO(bnoordhuis) Remove in v3.0.0. - -#if defined(__GNUC__) && \ - !(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS) -# define NAN_DEPRECATED __attribute__((deprecated)) -#elif defined(_MSC_VER) && \ - !(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS) -# define NAN_DEPRECATED __declspec(deprecated) -#else -# define NAN_DEPRECATED -#endif - -#if NAN_HAS_CPLUSPLUS_11 -# define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&) = delete; -# define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&) = delete; -# define NAN_DISALLOW_MOVE(CLASS) \ - CLASS(CLASS&&) = delete; /* NOLINT(build/c++11) */ \ - void operator=(CLASS&&) = delete; -#else -# define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&); -# define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&); -# define NAN_DISALLOW_MOVE(CLASS) -#endif - -#define NAN_DISALLOW_ASSIGN_COPY(CLASS) \ - NAN_DISALLOW_ASSIGN(CLASS) \ - NAN_DISALLOW_COPY(CLASS) - -#define NAN_DISALLOW_ASSIGN_MOVE(CLASS) \ - NAN_DISALLOW_ASSIGN(CLASS) \ - NAN_DISALLOW_MOVE(CLASS) - -#define NAN_DISALLOW_COPY_MOVE(CLASS) \ - NAN_DISALLOW_COPY(CLASS) \ - NAN_DISALLOW_MOVE(CLASS) - -#define NAN_DISALLOW_ASSIGN_COPY_MOVE(CLASS) \ - NAN_DISALLOW_ASSIGN(CLASS) \ - NAN_DISALLOW_COPY(CLASS) \ - NAN_DISALLOW_MOVE(CLASS) - -#define TYPE_CHECK(T, S) \ - while (false) { \ - *(static_cast(0)) = static_cast(0); \ - } - -//=== RegistrationFunction ===================================================== - -#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - typedef v8::Handle ADDON_REGISTER_FUNCTION_ARGS_TYPE; -#else - typedef v8::Local ADDON_REGISTER_FUNCTION_ARGS_TYPE; -#endif - -#define NAN_MODULE_INIT(name) \ - void name(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target) - -//=== CallbackInfo ============================================================= - -#include "nan_callbacks.h" // NOLINT(build/include) - -//============================================================================== - -#if (NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION) -typedef v8::Script UnboundScript; -typedef v8::Script BoundScript; -#else -typedef v8::UnboundScript UnboundScript; -typedef v8::Script BoundScript; -#endif - -#if (NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION) -typedef v8::String::ExternalAsciiStringResource - ExternalOneByteStringResource; -#else -typedef v8::String::ExternalOneByteStringResource - ExternalOneByteStringResource; -#endif - -#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) -template -class NonCopyablePersistentTraits : - public v8::NonCopyablePersistentTraits {}; -template -class CopyablePersistentTraits : - public v8::CopyablePersistentTraits {}; - -template -class PersistentBase : - public v8::PersistentBase {}; - -template > -class Persistent; -#else -template class NonCopyablePersistentTraits; -template class PersistentBase; -template class WeakCallbackData; -template > -class Persistent; -#endif // NODE_MODULE_VERSION - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -# include "nan_maybe_43_inl.h" // NOLINT(build/include) -#else -# include "nan_maybe_pre_43_inl.h" // NOLINT(build/include) -#endif - -#include "nan_converters.h" // NOLINT(build/include) -#include "nan_new.h" // NOLINT(build/include) - -#if NAUV_UVVERSION < 0x000b17 -#define NAUV_WORK_CB(func) \ - void func(uv_async_t *async, int) -#else -#define NAUV_WORK_CB(func) \ - void func(uv_async_t *async) -#endif - -#if NAUV_UVVERSION >= 0x000b0b - -typedef uv_key_t nauv_key_t; - -inline int nauv_key_create(nauv_key_t *key) { - return uv_key_create(key); -} - -inline void nauv_key_delete(nauv_key_t *key) { - uv_key_delete(key); -} - -inline void* nauv_key_get(nauv_key_t *key) { - return uv_key_get(key); -} - -inline void nauv_key_set(nauv_key_t *key, void *value) { - uv_key_set(key, value); -} - -#else - -/* Implement thread local storage for older versions of libuv. - * This is essentially a backport of libuv commit 5d2434bf - * written by Ben Noordhuis, adjusted for names and inline. - */ - -#ifndef WIN32 - -typedef pthread_key_t nauv_key_t; - -inline int nauv_key_create(nauv_key_t* key) { - return -pthread_key_create(key, NULL); -} - -inline void nauv_key_delete(nauv_key_t* key) { - if (pthread_key_delete(*key)) - abort(); -} - -inline void* nauv_key_get(nauv_key_t* key) { - return pthread_getspecific(*key); -} - -inline void nauv_key_set(nauv_key_t* key, void* value) { - if (pthread_setspecific(*key, value)) - abort(); -} - -#else - -typedef struct { - DWORD tls_index; -} nauv_key_t; - -inline int nauv_key_create(nauv_key_t* key) { - key->tls_index = TlsAlloc(); - if (key->tls_index == TLS_OUT_OF_INDEXES) - return UV_ENOMEM; - return 0; -} - -inline void nauv_key_delete(nauv_key_t* key) { - if (TlsFree(key->tls_index) == FALSE) - abort(); - key->tls_index = TLS_OUT_OF_INDEXES; -} - -inline void* nauv_key_get(nauv_key_t* key) { - void* value = TlsGetValue(key->tls_index); - if (value == NULL) - if (GetLastError() != ERROR_SUCCESS) - abort(); - return value; -} - -inline void nauv_key_set(nauv_key_t* key, void* value) { - if (TlsSetValue(key->tls_index, value) == FALSE) - abort(); -} - -#endif -#endif - -#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION -template -v8::Local New(v8::Handle); -#endif - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - typedef v8::WeakCallbackType WeakCallbackType; -#else -struct WeakCallbackType { - enum E {kParameter, kInternalFields}; - E type; - WeakCallbackType(E other) : type(other) {} // NOLINT(runtime/explicit) - inline bool operator==(E other) { return other == this->type; } - inline bool operator!=(E other) { return !operator==(other); } -}; -#endif - -template class WeakCallbackInfo; - -#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION -# include "nan_persistent_12_inl.h" // NOLINT(build/include) -#else -# include "nan_persistent_pre_12_inl.h" // NOLINT(build/include) -#endif - -namespace imp { - static const size_t kMaxLength = 0x3fffffff; - // v8::String::REPLACE_INVALID_UTF8 was introduced - // in node.js v0.10.29 and v0.8.27. -#if NODE_MAJOR_VERSION > 0 || \ - NODE_MINOR_VERSION > 10 || \ - NODE_MINOR_VERSION == 10 && NODE_PATCH_VERSION >= 29 || \ - NODE_MINOR_VERSION == 8 && NODE_PATCH_VERSION >= 27 - static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8; -#else - static const unsigned kReplaceInvalidUtf8 = 0; -#endif -} // end of namespace imp - -//=== HandleScope ============================================================== - -class HandleScope { - v8::HandleScope scope; - - public: -#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION - inline HandleScope() : scope(v8::Isolate::GetCurrent()) {} - inline static int NumberOfHandles() { - return v8::HandleScope::NumberOfHandles(v8::Isolate::GetCurrent()); - } -#else - inline HandleScope() : scope() {} - inline static int NumberOfHandles() { - return v8::HandleScope::NumberOfHandles(); - } -#endif - - private: - // Make it hard to create heap-allocated or illegal handle scopes by - // disallowing certain operations. - HandleScope(const HandleScope &); - void operator=(const HandleScope &); - void *operator new(size_t size); - void operator delete(void *, size_t) { - abort(); - } -}; - -class EscapableHandleScope { - public: -#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION - inline EscapableHandleScope() : scope(v8::Isolate::GetCurrent()) {} - - inline static int NumberOfHandles() { - return v8::EscapableHandleScope::NumberOfHandles(v8::Isolate::GetCurrent()); - } - - template - inline v8::Local Escape(v8::Local value) { - return scope.Escape(value); - } - - private: - v8::EscapableHandleScope scope; -#else - inline EscapableHandleScope() : scope() {} - - inline static int NumberOfHandles() { - return v8::HandleScope::NumberOfHandles(); - } - - template - inline v8::Local Escape(v8::Local value) { - return scope.Close(value); - } - - private: - v8::HandleScope scope; -#endif - - private: - // Make it hard to create heap-allocated or illegal handle scopes by - // disallowing certain operations. - EscapableHandleScope(const EscapableHandleScope &); - void operator=(const EscapableHandleScope &); - void *operator new(size_t size); - void operator delete(void *, size_t) { - abort(); - } -}; - -//=== TryCatch ================================================================= - -class TryCatch { - v8::TryCatch try_catch_; - friend void FatalException(const TryCatch&); - - public: -#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION - TryCatch() : try_catch_(v8::Isolate::GetCurrent()) {} -#endif - - inline bool HasCaught() const { return try_catch_.HasCaught(); } - - inline bool CanContinue() const { return try_catch_.CanContinue(); } - - inline v8::Local ReThrow() { -#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - return New(try_catch_.ReThrow()); -#else - return try_catch_.ReThrow(); -#endif - } - - inline v8::Local Exception() const { - return try_catch_.Exception(); - } - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - inline v8::MaybeLocal StackTrace() const { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(try_catch_.StackTrace(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); - } -#else - inline MaybeLocal StackTrace() const { - return try_catch_.StackTrace(); - } -#endif - - inline v8::Local Message() const { - return try_catch_.Message(); - } - - inline void Reset() { try_catch_.Reset(); } - - inline void SetVerbose(bool value) { try_catch_.SetVerbose(value); } - - inline void SetCaptureMessage(bool value) { - try_catch_.SetCaptureMessage(value); - } -}; - -//============ ================================================================= - -/* node 0.12 */ -#if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION - inline - void SetCounterFunction(v8::CounterLookupCallback cb) { - v8::Isolate::GetCurrent()->SetCounterFunction(cb); - } - - inline - void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) { - v8::Isolate::GetCurrent()->SetCreateHistogramFunction(cb); - } - - inline - void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) { - v8::Isolate::GetCurrent()->SetAddHistogramSampleFunction(cb); - } - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - inline bool IdleNotification(int idle_time_in_ms) { - return v8::Isolate::GetCurrent()->IdleNotificationDeadline( - idle_time_in_ms * 0.001); - } -# else - inline bool IdleNotification(int idle_time_in_ms) { - return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms); - } -#endif - - inline void LowMemoryNotification() { - v8::Isolate::GetCurrent()->LowMemoryNotification(); - } - - inline void ContextDisposedNotification() { - v8::Isolate::GetCurrent()->ContextDisposedNotification(); - } -#else - inline - void SetCounterFunction(v8::CounterLookupCallback cb) { - v8::V8::SetCounterFunction(cb); - } - - inline - void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) { - v8::V8::SetCreateHistogramFunction(cb); - } - - inline - void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) { - v8::V8::SetAddHistogramSampleFunction(cb); - } - - inline bool IdleNotification(int idle_time_in_ms) { - return v8::V8::IdleNotification(idle_time_in_ms); - } - - inline void LowMemoryNotification() { - v8::V8::LowMemoryNotification(); - } - - inline void ContextDisposedNotification() { - v8::V8::ContextDisposedNotification(); - } -#endif - -#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) // Node 0.12 - inline v8::Local Undefined() { -# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - EscapableHandleScope scope; - return scope.Escape(New(v8::Undefined(v8::Isolate::GetCurrent()))); -# else - return v8::Undefined(v8::Isolate::GetCurrent()); -# endif - } - - inline v8::Local Null() { -# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - EscapableHandleScope scope; - return scope.Escape(New(v8::Null(v8::Isolate::GetCurrent()))); -# else - return v8::Null(v8::Isolate::GetCurrent()); -# endif - } - - inline v8::Local True() { -# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - EscapableHandleScope scope; - return scope.Escape(New(v8::True(v8::Isolate::GetCurrent()))); -# else - return v8::True(v8::Isolate::GetCurrent()); -# endif - } - - inline v8::Local False() { -# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - EscapableHandleScope scope; - return scope.Escape(New(v8::False(v8::Isolate::GetCurrent()))); -# else - return v8::False(v8::Isolate::GetCurrent()); -# endif - } - - inline v8::Local EmptyString() { - return v8::String::Empty(v8::Isolate::GetCurrent()); - } - - inline int AdjustExternalMemory(int bc) { - return static_cast( - v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(bc)); - } - - inline void SetTemplate( - v8::Local templ - , const char *name - , v8::Local value) { - templ->Set(v8::Isolate::GetCurrent(), name, value); - } - - inline void SetTemplate( - v8::Local templ - , v8::Local name - , v8::Local value - , v8::PropertyAttribute attributes) { - templ->Set(name, value, attributes); - } - - inline v8::Local GetCurrentContext() { - return v8::Isolate::GetCurrent()->GetCurrentContext(); - } - - inline void* GetInternalFieldPointer( - v8::Local object - , int index) { - return object->GetAlignedPointerFromInternalField(index); - } - - inline void SetInternalFieldPointer( - v8::Local object - , int index - , void* value) { - object->SetAlignedPointerInInternalField(index, value); - } - -# define NAN_GC_CALLBACK(name) \ - void name(v8::Isolate *isolate, v8::GCType type, v8::GCCallbackFlags flags) - -#if NODE_MODULE_VERSION <= NODE_4_0_MODULE_VERSION - typedef v8::Isolate::GCEpilogueCallback GCEpilogueCallback; - typedef v8::Isolate::GCPrologueCallback GCPrologueCallback; -#else - typedef v8::Isolate::GCCallback GCEpilogueCallback; - typedef v8::Isolate::GCCallback GCPrologueCallback; -#endif - - inline void AddGCEpilogueCallback( - GCEpilogueCallback callback - , v8::GCType gc_type_filter = v8::kGCTypeAll) { - v8::Isolate::GetCurrent()->AddGCEpilogueCallback(callback, gc_type_filter); - } - - inline void RemoveGCEpilogueCallback( - GCEpilogueCallback callback) { - v8::Isolate::GetCurrent()->RemoveGCEpilogueCallback(callback); - } - - inline void AddGCPrologueCallback( - GCPrologueCallback callback - , v8::GCType gc_type_filter = v8::kGCTypeAll) { - v8::Isolate::GetCurrent()->AddGCPrologueCallback(callback, gc_type_filter); - } - - inline void RemoveGCPrologueCallback( - GCPrologueCallback callback) { - v8::Isolate::GetCurrent()->RemoveGCPrologueCallback(callback); - } - - inline void GetHeapStatistics( - v8::HeapStatistics *heap_statistics) { - v8::Isolate::GetCurrent()->GetHeapStatistics(heap_statistics); - } - -# define X(NAME) \ - inline v8::Local NAME(const char *msg) { \ - EscapableHandleScope scope; \ - return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \ - } \ - \ - inline \ - v8::Local NAME(v8::Local msg) { \ - return v8::Exception::NAME(msg); \ - } \ - \ - inline void Throw ## NAME(const char *msg) { \ - HandleScope scope; \ - v8::Isolate::GetCurrent()->ThrowException( \ - v8::Exception::NAME(New(msg).ToLocalChecked())); \ - } \ - \ - inline void Throw ## NAME(v8::Local msg) { \ - HandleScope scope; \ - v8::Isolate::GetCurrent()->ThrowException( \ - v8::Exception::NAME(msg)); \ - } - - X(Error) - X(RangeError) - X(ReferenceError) - X(SyntaxError) - X(TypeError) - -# undef X - - inline void ThrowError(v8::Local error) { - v8::Isolate::GetCurrent()->ThrowException(error); - } - - inline MaybeLocal NewBuffer( - char *data - , size_t length -#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION - , node::Buffer::FreeCallback callback -#else - , node::smalloc::FreeCallback callback -#endif - , void *hint - ) { - // arbitrary buffer lengths requires - // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION - assert(length <= imp::kMaxLength && "too large buffer"); -#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION - return node::Buffer::New( - v8::Isolate::GetCurrent(), data, length, callback, hint); -#else - return node::Buffer::New(v8::Isolate::GetCurrent(), data, length, callback, - hint); -#endif - } - - inline MaybeLocal CopyBuffer( - const char *data - , uint32_t size - ) { - // arbitrary buffer lengths requires - // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION - assert(size <= imp::kMaxLength && "too large buffer"); -#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION - return node::Buffer::Copy( - v8::Isolate::GetCurrent(), data, size); -#else - return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); -#endif - } - - inline MaybeLocal NewBuffer(uint32_t size) { - // arbitrary buffer lengths requires - // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION - assert(size <= imp::kMaxLength && "too large buffer"); -#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION - return node::Buffer::New( - v8::Isolate::GetCurrent(), size); -#else - return node::Buffer::New(v8::Isolate::GetCurrent(), size); -#endif - } - - inline MaybeLocal NewBuffer( - char* data - , uint32_t size - ) { - // arbitrary buffer lengths requires - // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION - assert(size <= imp::kMaxLength && "too large buffer"); -#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION - return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); -#else - return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); -#endif - } - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - inline MaybeLocal - NewOneByteString(const uint8_t * value, int length = -1) { - return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value, - v8::NewStringType::kNormal, length); - } - - inline MaybeLocal CompileScript( - v8::Local s - , const v8::ScriptOrigin& origin - ) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - v8::ScriptCompiler::Source source(s, origin); - return scope.Escape( - v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source) - .FromMaybe(v8::Local())); - } - - inline MaybeLocal CompileScript( - v8::Local s - ) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - v8::ScriptCompiler::Source source(s); - return scope.Escape( - v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source) - .FromMaybe(v8::Local())); - } - - inline MaybeLocal RunScript( - v8::Local script - ) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(script->BindToCurrentContext() - ->Run(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); - } - - inline MaybeLocal RunScript( - v8::Local script - ) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(script->Run(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); - } -#else - inline MaybeLocal - NewOneByteString(const uint8_t * value, int length = -1) { - return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value, - v8::String::kNormalString, length); - } - - inline MaybeLocal CompileScript( - v8::Local s - , const v8::ScriptOrigin& origin - ) { - v8::ScriptCompiler::Source source(s, origin); - return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); - } - - inline MaybeLocal CompileScript( - v8::Local s - ) { - v8::ScriptCompiler::Source source(s); - return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); - } - - inline MaybeLocal RunScript( - v8::Local script - ) { - EscapableHandleScope scope; - return scope.Escape(script->BindToCurrentContext()->Run()); - } - - inline MaybeLocal RunScript( - v8::Local script - ) { - return script->Run(); - } -#endif - - inline v8::Local MakeCallback( - v8::Local target - , v8::Local func - , int argc - , v8::Local* argv) { -#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - EscapableHandleScope scope; - return scope.Escape(New(node::MakeCallback( - v8::Isolate::GetCurrent(), target, func, argc, argv))); -#else - return node::MakeCallback( - v8::Isolate::GetCurrent(), target, func, argc, argv); -#endif - } - - inline v8::Local MakeCallback( - v8::Local target - , v8::Local symbol - , int argc - , v8::Local* argv) { -#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - EscapableHandleScope scope; - return scope.Escape(New(node::MakeCallback( - v8::Isolate::GetCurrent(), target, symbol, argc, argv))); -#else - return node::MakeCallback( - v8::Isolate::GetCurrent(), target, symbol, argc, argv); -#endif - } - - inline v8::Local MakeCallback( - v8::Local target - , const char* method - , int argc - , v8::Local* argv) { -#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - EscapableHandleScope scope; - return scope.Escape(New(node::MakeCallback( - v8::Isolate::GetCurrent(), target, method, argc, argv))); -#else - return node::MakeCallback( - v8::Isolate::GetCurrent(), target, method, argc, argv); -#endif - } - - inline void FatalException(const TryCatch& try_catch) { - node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_); - } - - inline v8::Local ErrnoException( - int errorno - , const char* syscall = NULL - , const char* message = NULL - , const char* path = NULL) { - return node::ErrnoException(v8::Isolate::GetCurrent(), errorno, syscall, - message, path); - } - - NAN_DEPRECATED inline v8::Local NanErrnoException( - int errorno - , const char* syscall = NULL - , const char* message = NULL - , const char* path = NULL) { - return ErrnoException(errorno, syscall, message, path); - } - - template - inline void SetIsolateData( - v8::Isolate *isolate - , T *data - ) { - isolate->SetData(0, data); - } - - template - inline T *GetIsolateData( - v8::Isolate *isolate - ) { - return static_cast(isolate->GetData(0)); - } - -class Utf8String { - public: - inline explicit Utf8String(v8::Local from) : - length_(0), str_(str_st_) { - HandleScope scope; - if (!from.IsEmpty()) { - v8::Local string = from->ToString(); - if (!string.IsEmpty()) { - size_t len = 3 * string->Length() + 1; - assert(len <= INT_MAX); - if (len > sizeof (str_st_)) { - str_ = static_cast(malloc(len)); - assert(str_ != 0); - } - const int flags = - v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8; - length_ = string->WriteUtf8(str_, static_cast(len), 0, flags); - str_[length_] = '\0'; - } - } - } - - inline int length() const { - return length_; - } - - inline char* operator*() { return str_; } - inline const char* operator*() const { return str_; } - - inline ~Utf8String() { - if (str_ != str_st_) { - free(str_); - } - } - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String) - - int length_; - char *str_; - char str_st_[1024]; -}; - -#else // Node 0.8 and 0.10 - inline v8::Local Undefined() { - EscapableHandleScope scope; - return scope.Escape(New(v8::Undefined())); - } - - inline v8::Local Null() { - EscapableHandleScope scope; - return scope.Escape(New(v8::Null())); - } - - inline v8::Local True() { - EscapableHandleScope scope; - return scope.Escape(New(v8::True())); - } - - inline v8::Local False() { - EscapableHandleScope scope; - return scope.Escape(New(v8::False())); - } - - inline v8::Local EmptyString() { - return v8::String::Empty(); - } - - inline int AdjustExternalMemory(int bc) { - return static_cast(v8::V8::AdjustAmountOfExternalAllocatedMemory(bc)); - } - - inline void SetTemplate( - v8::Local templ - , const char *name - , v8::Local value) { - templ->Set(name, value); - } - - inline void SetTemplate( - v8::Local templ - , v8::Local name - , v8::Local value - , v8::PropertyAttribute attributes) { - templ->Set(name, value, attributes); - } - - inline v8::Local GetCurrentContext() { - return v8::Context::GetCurrent(); - } - - inline void* GetInternalFieldPointer( - v8::Local object - , int index) { - return object->GetPointerFromInternalField(index); - } - - inline void SetInternalFieldPointer( - v8::Local object - , int index - , void* value) { - object->SetPointerInInternalField(index, value); - } - -# define NAN_GC_CALLBACK(name) \ - void name(v8::GCType type, v8::GCCallbackFlags flags) - - inline void AddGCEpilogueCallback( - v8::GCEpilogueCallback callback - , v8::GCType gc_type_filter = v8::kGCTypeAll) { - v8::V8::AddGCEpilogueCallback(callback, gc_type_filter); - } - inline void RemoveGCEpilogueCallback( - v8::GCEpilogueCallback callback) { - v8::V8::RemoveGCEpilogueCallback(callback); - } - inline void AddGCPrologueCallback( - v8::GCPrologueCallback callback - , v8::GCType gc_type_filter = v8::kGCTypeAll) { - v8::V8::AddGCPrologueCallback(callback, gc_type_filter); - } - inline void RemoveGCPrologueCallback( - v8::GCPrologueCallback callback) { - v8::V8::RemoveGCPrologueCallback(callback); - } - inline void GetHeapStatistics( - v8::HeapStatistics *heap_statistics) { - v8::V8::GetHeapStatistics(heap_statistics); - } - -# define X(NAME) \ - inline v8::Local NAME(const char *msg) { \ - EscapableHandleScope scope; \ - return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \ - } \ - \ - inline \ - v8::Local NAME(v8::Local msg) { \ - return v8::Exception::NAME(msg); \ - } \ - \ - inline void Throw ## NAME(const char *msg) { \ - HandleScope scope; \ - v8::ThrowException(v8::Exception::NAME(New(msg).ToLocalChecked())); \ - } \ - \ - inline \ - void Throw ## NAME(v8::Local errmsg) { \ - HandleScope scope; \ - v8::ThrowException(v8::Exception::NAME(errmsg)); \ - } - - X(Error) - X(RangeError) - X(ReferenceError) - X(SyntaxError) - X(TypeError) - -# undef X - - inline void ThrowError(v8::Local error) { - v8::ThrowException(error); - } - - inline MaybeLocal NewBuffer( - char *data - , size_t length - , node::Buffer::free_callback callback - , void *hint - ) { - EscapableHandleScope scope; - // arbitrary buffer lengths requires - // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION - assert(length <= imp::kMaxLength && "too large buffer"); - return scope.Escape( - New(node::Buffer::New(data, length, callback, hint)->handle_)); - } - - inline MaybeLocal CopyBuffer( - const char *data - , uint32_t size - ) { - EscapableHandleScope scope; - // arbitrary buffer lengths requires - // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION - assert(size <= imp::kMaxLength && "too large buffer"); -#if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION - return scope.Escape(New(node::Buffer::New(data, size)->handle_)); -#else - return scope.Escape( - New(node::Buffer::New(const_cast(data), size)->handle_)); -#endif - } - - inline MaybeLocal NewBuffer(uint32_t size) { - // arbitrary buffer lengths requires - // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION - EscapableHandleScope scope; - assert(size <= imp::kMaxLength && "too large buffer"); - return scope.Escape(New(node::Buffer::New(size)->handle_)); - } - - inline void FreeData(char *data, void *hint) { - (void) hint; // unused - delete[] data; - } - - inline MaybeLocal NewBuffer( - char* data - , uint32_t size - ) { - EscapableHandleScope scope; - // arbitrary buffer lengths requires - // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION - assert(size <= imp::kMaxLength && "too large buffer"); - return scope.Escape( - New(node::Buffer::New(data, size, FreeData, NULL)->handle_)); - } - -namespace imp { -inline void -widenString(std::vector *ws, const uint8_t *s, int l) { - size_t len = static_cast(l); - if (l < 0) { - len = strlen(reinterpret_cast(s)); - } - assert(len <= INT_MAX && "string too long"); - ws->resize(len); - std::copy(s, s + len, ws->begin()); // NOLINT(build/include_what_you_use) -} -} // end of namespace imp - - inline MaybeLocal - NewOneByteString(const uint8_t * value, int length = -1) { - std::vector wideString; // NOLINT(build/include_what_you_use) - imp::widenString(&wideString, value, length); - return v8::String::New(wideString.data(), - static_cast(wideString.size())); - } - - inline MaybeLocal CompileScript( - v8::Local s - , const v8::ScriptOrigin& origin - ) { - return v8::Script::Compile(s, const_cast(&origin)); - } - - inline MaybeLocal CompileScript( - v8::Local s - ) { - return v8::Script::Compile(s); - } - - inline - MaybeLocal RunScript(v8::Local script) { - return script->Run(); - } - - inline v8::Local MakeCallback( - v8::Local target - , v8::Local func - , int argc - , v8::Local* argv) { - v8::HandleScope scope; - return scope.Close(New(node::MakeCallback(target, func, argc, argv))); - } - - inline v8::Local MakeCallback( - v8::Local target - , v8::Local symbol - , int argc - , v8::Local* argv) { - v8::HandleScope scope; - return scope.Close(New(node::MakeCallback(target, symbol, argc, argv))); - } - - inline v8::Local MakeCallback( - v8::Local target - , const char* method - , int argc - , v8::Local* argv) { - v8::HandleScope scope; - return scope.Close(New(node::MakeCallback(target, method, argc, argv))); - } - - inline void FatalException(const TryCatch& try_catch) { - node::FatalException(const_cast(try_catch.try_catch_)); - } - - inline v8::Local ErrnoException( - int errorno - , const char* syscall = NULL - , const char* message = NULL - , const char* path = NULL) { - return node::ErrnoException(errorno, syscall, message, path); - } - - NAN_DEPRECATED inline v8::Local NanErrnoException( - int errorno - , const char* syscall = NULL - , const char* message = NULL - , const char* path = NULL) { - return ErrnoException(errorno, syscall, message, path); - } - - - template - inline void SetIsolateData( - v8::Isolate *isolate - , T *data - ) { - isolate->SetData(data); - } - - template - inline T *GetIsolateData( - v8::Isolate *isolate - ) { - return static_cast(isolate->GetData()); - } - -class Utf8String { - public: - inline explicit Utf8String(v8::Local from) : - length_(0), str_(str_st_) { - v8::HandleScope scope; - if (!from.IsEmpty()) { - v8::Local string = from->ToString(); - if (!string.IsEmpty()) { - size_t len = 3 * string->Length() + 1; - assert(len <= INT_MAX); - if (len > sizeof (str_st_)) { - str_ = static_cast(malloc(len)); - assert(str_ != 0); - } - const int flags = - v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8; - length_ = string->WriteUtf8(str_, static_cast(len), 0, flags); - str_[length_] = '\0'; - } - } - } - - inline int length() const { - return length_; - } - - inline char* operator*() { return str_; } - inline const char* operator*() const { return str_; } - - inline ~Utf8String() { - if (str_ != str_st_) { - free(str_); - } - } - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String) - - int length_; - char *str_; - char str_st_[1024]; -}; - -#endif // NODE_MODULE_VERSION - -typedef void (*FreeCallback)(char *data, void *hint); - -typedef const FunctionCallbackInfo& NAN_METHOD_ARGS_TYPE; -typedef void NAN_METHOD_RETURN_TYPE; - -typedef const PropertyCallbackInfo& NAN_GETTER_ARGS_TYPE; -typedef void NAN_GETTER_RETURN_TYPE; - -typedef const PropertyCallbackInfo& NAN_SETTER_ARGS_TYPE; -typedef void NAN_SETTER_RETURN_TYPE; - -typedef const PropertyCallbackInfo& - NAN_PROPERTY_GETTER_ARGS_TYPE; -typedef void NAN_PROPERTY_GETTER_RETURN_TYPE; - -typedef const PropertyCallbackInfo& - NAN_PROPERTY_SETTER_ARGS_TYPE; -typedef void NAN_PROPERTY_SETTER_RETURN_TYPE; - -typedef const PropertyCallbackInfo& - NAN_PROPERTY_ENUMERATOR_ARGS_TYPE; -typedef void NAN_PROPERTY_ENUMERATOR_RETURN_TYPE; - -typedef const PropertyCallbackInfo& - NAN_PROPERTY_DELETER_ARGS_TYPE; -typedef void NAN_PROPERTY_DELETER_RETURN_TYPE; - -typedef const PropertyCallbackInfo& - NAN_PROPERTY_QUERY_ARGS_TYPE; -typedef void NAN_PROPERTY_QUERY_RETURN_TYPE; - -typedef const PropertyCallbackInfo& NAN_INDEX_GETTER_ARGS_TYPE; -typedef void NAN_INDEX_GETTER_RETURN_TYPE; - -typedef const PropertyCallbackInfo& NAN_INDEX_SETTER_ARGS_TYPE; -typedef void NAN_INDEX_SETTER_RETURN_TYPE; - -typedef const PropertyCallbackInfo& - NAN_INDEX_ENUMERATOR_ARGS_TYPE; -typedef void NAN_INDEX_ENUMERATOR_RETURN_TYPE; - -typedef const PropertyCallbackInfo& - NAN_INDEX_DELETER_ARGS_TYPE; -typedef void NAN_INDEX_DELETER_RETURN_TYPE; - -typedef const PropertyCallbackInfo& - NAN_INDEX_QUERY_ARGS_TYPE; -typedef void NAN_INDEX_QUERY_RETURN_TYPE; - -#define NAN_METHOD(name) \ - Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info) -#define NAN_GETTER(name) \ - Nan::NAN_GETTER_RETURN_TYPE name( \ - v8::Local property \ - , Nan::NAN_GETTER_ARGS_TYPE info) -#define NAN_SETTER(name) \ - Nan::NAN_SETTER_RETURN_TYPE name( \ - v8::Local property \ - , v8::Local value \ - , Nan::NAN_SETTER_ARGS_TYPE info) -#define NAN_PROPERTY_GETTER(name) \ - Nan::NAN_PROPERTY_GETTER_RETURN_TYPE name( \ - v8::Local property \ - , Nan::NAN_PROPERTY_GETTER_ARGS_TYPE info) -#define NAN_PROPERTY_SETTER(name) \ - Nan::NAN_PROPERTY_SETTER_RETURN_TYPE name( \ - v8::Local property \ - , v8::Local value \ - , Nan::NAN_PROPERTY_SETTER_ARGS_TYPE info) -#define NAN_PROPERTY_ENUMERATOR(name) \ - Nan::NAN_PROPERTY_ENUMERATOR_RETURN_TYPE name( \ - Nan::NAN_PROPERTY_ENUMERATOR_ARGS_TYPE info) -#define NAN_PROPERTY_DELETER(name) \ - Nan::NAN_PROPERTY_DELETER_RETURN_TYPE name( \ - v8::Local property \ - , Nan::NAN_PROPERTY_DELETER_ARGS_TYPE info) -#define NAN_PROPERTY_QUERY(name) \ - Nan::NAN_PROPERTY_QUERY_RETURN_TYPE name( \ - v8::Local property \ - , Nan::NAN_PROPERTY_QUERY_ARGS_TYPE info) -# define NAN_INDEX_GETTER(name) \ - Nan::NAN_INDEX_GETTER_RETURN_TYPE name( \ - uint32_t index \ - , Nan::NAN_INDEX_GETTER_ARGS_TYPE info) -#define NAN_INDEX_SETTER(name) \ - Nan::NAN_INDEX_SETTER_RETURN_TYPE name( \ - uint32_t index \ - , v8::Local value \ - , Nan::NAN_INDEX_SETTER_ARGS_TYPE info) -#define NAN_INDEX_ENUMERATOR(name) \ - Nan::NAN_INDEX_ENUMERATOR_RETURN_TYPE \ - name(Nan::NAN_INDEX_ENUMERATOR_ARGS_TYPE info) -#define NAN_INDEX_DELETER(name) \ - Nan::NAN_INDEX_DELETER_RETURN_TYPE name( \ - uint32_t index \ - , Nan::NAN_INDEX_DELETER_ARGS_TYPE info) -#define NAN_INDEX_QUERY(name) \ - Nan::NAN_INDEX_QUERY_RETURN_TYPE name( \ - uint32_t index \ - , Nan::NAN_INDEX_QUERY_ARGS_TYPE info) - -class Callback { - public: - Callback() {} - - explicit Callback(const v8::Local &fn) : handle_(fn) {} - - ~Callback() { - handle_.Reset(); - } - - bool operator==(const Callback &other) const { - return handle_ == other.handle_; - } - - bool operator!=(const Callback &other) const { - return !operator==(other); - } - - inline - v8::Local operator*() const { return GetFunction(); } - - inline v8::Local operator()( - v8::Local target - , int argc = 0 - , v8::Local argv[] = 0) const { - return this->Call(target, argc, argv); - } - - inline v8::Local operator()( - int argc = 0 - , v8::Local argv[] = 0) const { - return this->Call(argc, argv); - } - - // TODO(kkoopa): remove - inline void SetFunction(const v8::Local &fn) { - Reset(fn); - } - - inline void Reset(const v8::Local &fn) { - handle_.Reset(fn); - } - - inline void Reset() { - handle_.Reset(); - } - - inline v8::Local GetFunction() const { - return New(handle_); - } - - inline bool IsEmpty() const { - return handle_.IsEmpty(); - } - - inline v8::Local - Call(v8::Local target - , int argc - , v8::Local argv[]) const { -#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - return Call_(isolate, target, argc, argv); -#else - return Call_(target, argc, argv); -#endif - } - - inline v8::Local - Call(int argc, v8::Local argv[]) const { -#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape( - Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv)); -#else - v8::HandleScope scope; - return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv)); -#endif - } - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(Callback) - Persistent handle_; - -#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) - v8::Local Call_(v8::Isolate *isolate - , v8::Local target - , int argc - , v8::Local argv[]) const { - EscapableHandleScope scope; - - v8::Local callback = New(handle_); -# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION - return scope.Escape(New(node::MakeCallback( - isolate - , target - , callback - , argc - , argv - ))); -# else - return scope.Escape(node::MakeCallback( - isolate - , target - , callback - , argc - , argv - )); -# endif - } -#else - v8::Local Call_(v8::Local target - , int argc - , v8::Local argv[]) const { - EscapableHandleScope scope; - - v8::Local callback = New(handle_); - return scope.Escape(New(node::MakeCallback( - target - , callback - , argc - , argv - ))); - } -#endif -}; - -/* abstract */ class AsyncWorker { - public: - explicit AsyncWorker(Callback *callback_) - : callback(callback_), errmsg_(NULL) { - request.data = this; - - HandleScope scope; - v8::Local obj = New(); - persistentHandle.Reset(obj); - } - - virtual ~AsyncWorker() { - HandleScope scope; - - if (!persistentHandle.IsEmpty()) - persistentHandle.Reset(); - delete callback; - delete[] errmsg_; - } - - virtual void WorkComplete() { - HandleScope scope; - - if (errmsg_ == NULL) - HandleOKCallback(); - else - HandleErrorCallback(); - delete callback; - callback = NULL; - } - - inline void SaveToPersistent( - const char *key, const v8::Local &value) { - HandleScope scope; - New(persistentHandle)->Set(New(key).ToLocalChecked(), value); - } - - inline void SaveToPersistent( - const v8::Local &key, const v8::Local &value) { - HandleScope scope; - New(persistentHandle)->Set(key, value); - } - - inline void SaveToPersistent( - uint32_t index, const v8::Local &value) { - HandleScope scope; - New(persistentHandle)->Set(index, value); - } - - inline v8::Local GetFromPersistent(const char *key) const { - EscapableHandleScope scope; - return scope.Escape( - New(persistentHandle)->Get(New(key).ToLocalChecked())); - } - - inline v8::Local - GetFromPersistent(const v8::Local &key) const { - EscapableHandleScope scope; - return scope.Escape(New(persistentHandle)->Get(key)); - } - - inline v8::Local GetFromPersistent(uint32_t index) const { - EscapableHandleScope scope; - return scope.Escape(New(persistentHandle)->Get(index)); - } - - virtual void Execute() = 0; - - uv_work_t request; - - virtual void Destroy() { - delete this; - } - - protected: - Persistent persistentHandle; - Callback *callback; - - virtual void HandleOKCallback() { - HandleScope scope; - - callback->Call(0, NULL); - } - - virtual void HandleErrorCallback() { - HandleScope scope; - - v8::Local argv[] = { - v8::Exception::Error(New(ErrorMessage()).ToLocalChecked()) - }; - callback->Call(1, argv); - } - - void SetErrorMessage(const char *msg) { - delete[] errmsg_; - - size_t size = strlen(msg) + 1; - errmsg_ = new char[size]; - memcpy(errmsg_, msg, size); - } - - const char* ErrorMessage() const { - return errmsg_; - } - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncWorker) - char *errmsg_; -}; - - -template -/* abstract */ class AsyncProgressWorkerBase : public AsyncWorker { - public: - explicit AsyncProgressWorkerBase(Callback *callback_) - : AsyncWorker(callback_), asyncdata_(NULL), asyncsize_(0) { - async = new uv_async_t; - uv_async_init( - uv_default_loop() - , async - , AsyncProgress_ - ); - async->data = this; - - uv_mutex_init(&async_lock); - } - - virtual ~AsyncProgressWorkerBase() { - uv_mutex_destroy(&async_lock); - - delete[] asyncdata_; - } - - void WorkProgress() { - uv_mutex_lock(&async_lock); - T *data = asyncdata_; - size_t size = asyncsize_; - asyncdata_ = NULL; - uv_mutex_unlock(&async_lock); - - // Don't send progress events after we've already completed. - if (callback) { - HandleProgressCallback(data, size); - } - delete[] data; - } - - class ExecutionProgress { - friend class AsyncProgressWorkerBase; - public: - void Signal() const { - uv_async_send(that_->async); - } - - void Send(const T* data, size_t size) const { - that_->SendProgress_(data, size); - } - - private: - explicit ExecutionProgress(AsyncProgressWorkerBase *that) : that_(that) {} - NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress) - AsyncProgressWorkerBase* const that_; - }; - - virtual void Execute(const ExecutionProgress& progress) = 0; - virtual void HandleProgressCallback(const T *data, size_t size) = 0; - - virtual void Destroy() { - uv_close(reinterpret_cast(async), AsyncClose_); - } - - private: - void Execute() /*final override*/ { - ExecutionProgress progress(this); - Execute(progress); - } - - void SendProgress_(const T *data, size_t size) { - T *new_data = new T[size]; - { - T *it = new_data; - std::copy(data, data + size, it); - } - - uv_mutex_lock(&async_lock); - T *old_data = asyncdata_; - asyncdata_ = new_data; - asyncsize_ = size; - uv_mutex_unlock(&async_lock); - - delete[] old_data; - uv_async_send(async); - } - - inline static NAUV_WORK_CB(AsyncProgress_) { - AsyncProgressWorkerBase *worker = - static_cast(async->data); - worker->WorkProgress(); - } - - inline static void AsyncClose_(uv_handle_t* handle) { - AsyncProgressWorkerBase *worker = - static_cast(handle->data); - delete reinterpret_cast(handle); - delete worker; - } - - uv_async_t *async; - uv_mutex_t async_lock; - T *asyncdata_; - size_t asyncsize_; -}; - -// This ensures compatibility to the previous un-templated AsyncProgressWorker -// class definition. -typedef AsyncProgressWorkerBase AsyncProgressWorker; - -inline void AsyncExecute (uv_work_t* req) { - AsyncWorker *worker = static_cast(req->data); - worker->Execute(); -} - -inline void AsyncExecuteComplete (uv_work_t* req) { - AsyncWorker* worker = static_cast(req->data); - worker->WorkComplete(); - worker->Destroy(); -} - -inline void AsyncQueueWorker (AsyncWorker* worker) { - uv_queue_work( - uv_default_loop() - , &worker->request - , AsyncExecute - , reinterpret_cast(AsyncExecuteComplete) - ); -} - -namespace imp { - -inline -ExternalOneByteStringResource const* -GetExternalResource(v8::Local str) { -#if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION - return str->GetExternalAsciiStringResource(); -#else - return str->GetExternalOneByteStringResource(); -#endif -} - -inline -bool -IsExternal(v8::Local str) { -#if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION - return str->IsExternalAscii(); -#else - return str->IsExternalOneByte(); -#endif -} - -} // end of namespace imp - -enum Encoding {ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER}; - -#if NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION -# include "nan_string_bytes.h" // NOLINT(build/include) -#endif - -inline v8::Local Encode( - const void *buf, size_t len, enum Encoding encoding = BINARY) { -#if (NODE_MODULE_VERSION >= ATOM_0_21_MODULE_VERSION) - v8::Isolate* isolate = v8::Isolate::GetCurrent(); - node::encoding node_enc = static_cast(encoding); - - if (encoding == UCS2) { - return node::Encode( - isolate - , reinterpret_cast(buf) - , len / 2); - } else { - return node::Encode( - isolate - , reinterpret_cast(buf) - , len - , node_enc); - } -#elif (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) - return node::Encode( - v8::Isolate::GetCurrent() - , buf, len - , static_cast(encoding)); -#else -# if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION - return node::Encode(buf, len, static_cast(encoding)); -# else - return imp::Encode(reinterpret_cast(buf), len, encoding); -# endif -#endif -} - -inline ssize_t DecodeBytes( - v8::Local val, enum Encoding encoding = BINARY) { -#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) - return node::DecodeBytes( - v8::Isolate::GetCurrent() - , val - , static_cast(encoding)); -#else -# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION) - if (encoding == BUFFER) { - return node::DecodeBytes(val, node::BINARY); - } -# endif - return node::DecodeBytes(val, static_cast(encoding)); -#endif -} - -inline ssize_t DecodeWrite( - char *buf - , size_t len - , v8::Local val - , enum Encoding encoding = BINARY) { -#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) - return node::DecodeWrite( - v8::Isolate::GetCurrent() - , buf - , len - , val - , static_cast(encoding)); -#else -# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION) - if (encoding == BUFFER) { - return node::DecodeWrite(buf, len, val, node::BINARY); - } -# endif - return node::DecodeWrite( - buf - , len - , val - , static_cast(encoding)); -#endif -} - -inline void SetPrototypeTemplate( - v8::Local templ - , const char *name - , v8::Local value -) { - HandleScope scope; - SetTemplate(templ->PrototypeTemplate(), name, value); -} - -inline void SetPrototypeTemplate( - v8::Local templ - , v8::Local name - , v8::Local value - , v8::PropertyAttribute attributes -) { - HandleScope scope; - SetTemplate(templ->PrototypeTemplate(), name, value, attributes); -} - -inline void SetInstanceTemplate( - v8::Local templ - , const char *name - , v8::Local value -) { - HandleScope scope; - SetTemplate(templ->InstanceTemplate(), name, value); -} - -inline void SetInstanceTemplate( - v8::Local templ - , v8::Local name - , v8::Local value - , v8::PropertyAttribute attributes -) { - HandleScope scope; - SetTemplate(templ->InstanceTemplate(), name, value, attributes); -} - -namespace imp { - -// Note(@agnat): Helper to distinguish different receiver types. The first -// version deals with receivers derived from v8::Template. The second version -// handles everything else. The final argument only serves as discriminator and -// is unused. -template -inline -void -SetMethodAux(T recv, - v8::Local name, - v8::Local tpl, - v8::Template *) { - recv->Set(name, tpl); -} - -template -inline -void -SetMethodAux(T recv, - v8::Local name, - v8::Local tpl, - ...) { - recv->Set(name, GetFunction(tpl).ToLocalChecked()); -} - -} // end of namespace imp - -template class HandleType> -inline void SetMethod( - HandleType recv - , const char *name - , FunctionCallback callback) { - HandleScope scope; - v8::Local t = New(callback); - v8::Local fn_name = New(name).ToLocalChecked(); - t->SetClassName(fn_name); - // Note(@agnat): Pass an empty T* as discriminator. See note on - // SetMethodAux(...) above - imp::SetMethodAux(recv, fn_name, t, static_cast(0)); -} - -inline void SetPrototypeMethod( - v8::Local recv - , const char* name, FunctionCallback callback) { - HandleScope scope; - v8::Local t = New( - callback - , v8::Local() - , New(recv)); - v8::Local fn_name = New(name).ToLocalChecked(); - recv->PrototypeTemplate()->Set(fn_name, t); - t->SetClassName(fn_name); -} - -//=== Accessors and Such ======================================================= - -inline void SetAccessor( - v8::Local tpl - , v8::Local name - , GetterCallback getter - , SetterCallback setter = 0 - , v8::Local data = v8::Local() - , v8::AccessControl settings = v8::DEFAULT - , v8::PropertyAttribute attribute = v8::None - , imp::Sig signature = imp::Sig()) { - HandleScope scope; - - imp::NativeGetter getter_ = - imp::GetterCallbackWrapper; - imp::NativeSetter setter_ = - setter ? imp::SetterCallbackWrapper : 0; - - v8::Local otpl = New(); - otpl->SetInternalFieldCount(imp::kAccessorFieldCount); - v8::Local obj = NewInstance(otpl).ToLocalChecked(); - - obj->SetInternalField( - imp::kGetterIndex - , New(reinterpret_cast(getter))); - - if (setter != 0) { - obj->SetInternalField( - imp::kSetterIndex - , New(reinterpret_cast(setter))); - } - - if (!data.IsEmpty()) { - obj->SetInternalField(imp::kDataIndex, data); - } - - tpl->SetAccessor( - name - , getter_ - , setter_ - , obj - , settings - , attribute - , signature); -} - -inline bool SetAccessor( - v8::Local obj - , v8::Local name - , GetterCallback getter - , SetterCallback setter = 0 - , v8::Local data = v8::Local() - , v8::AccessControl settings = v8::DEFAULT - , v8::PropertyAttribute attribute = v8::None) { - HandleScope scope; - - imp::NativeGetter getter_ = - imp::GetterCallbackWrapper; - imp::NativeSetter setter_ = - setter ? imp::SetterCallbackWrapper : 0; - - v8::Local otpl = New(); - otpl->SetInternalFieldCount(imp::kAccessorFieldCount); - v8::Local dataobj = NewInstance(otpl).ToLocalChecked(); - - dataobj->SetInternalField( - imp::kGetterIndex - , New(reinterpret_cast(getter))); - - if (!data.IsEmpty()) { - dataobj->SetInternalField(imp::kDataIndex, data); - } - - if (setter) { - dataobj->SetInternalField( - imp::kSetterIndex - , New(reinterpret_cast(setter))); - } - -#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION) - return obj->SetAccessor( - GetCurrentContext() - , name - , getter_ - , setter_ - , dataobj - , settings - , attribute).FromMaybe(false); -#else - return obj->SetAccessor( - name - , getter_ - , setter_ - , dataobj - , settings - , attribute); -#endif -} - -inline void SetNamedPropertyHandler( - v8::Local tpl - , PropertyGetterCallback getter - , PropertySetterCallback setter = 0 - , PropertyQueryCallback query = 0 - , PropertyDeleterCallback deleter = 0 - , PropertyEnumeratorCallback enumerator = 0 - , v8::Local data = v8::Local()) { - HandleScope scope; - - imp::NativePropertyGetter getter_ = - imp::PropertyGetterCallbackWrapper; - imp::NativePropertySetter setter_ = - setter ? imp::PropertySetterCallbackWrapper : 0; - imp::NativePropertyQuery query_ = - query ? imp::PropertyQueryCallbackWrapper : 0; - imp::NativePropertyDeleter *deleter_ = - deleter ? imp::PropertyDeleterCallbackWrapper : 0; - imp::NativePropertyEnumerator enumerator_ = - enumerator ? imp::PropertyEnumeratorCallbackWrapper : 0; - - v8::Local otpl = New(); - otpl->SetInternalFieldCount(imp::kPropertyFieldCount); - v8::Local obj = NewInstance(otpl).ToLocalChecked(); - obj->SetInternalField( - imp::kPropertyGetterIndex - , New(reinterpret_cast(getter))); - - if (setter) { - obj->SetInternalField( - imp::kPropertySetterIndex - , New(reinterpret_cast(setter))); - } - - if (query) { - obj->SetInternalField( - imp::kPropertyQueryIndex - , New(reinterpret_cast(query))); - } - - if (deleter) { - obj->SetInternalField( - imp::kPropertyDeleterIndex - , New(reinterpret_cast(deleter))); - } - - if (enumerator) { - obj->SetInternalField( - imp::kPropertyEnumeratorIndex - , New(reinterpret_cast(enumerator))); - } - - if (!data.IsEmpty()) { - obj->SetInternalField(imp::kDataIndex, data); - } - -#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION - tpl->SetHandler(v8::NamedPropertyHandlerConfiguration( - getter_, setter_, query_, deleter_, enumerator_, obj)); -#else - tpl->SetNamedPropertyHandler( - getter_ - , setter_ - , query_ - , deleter_ - , enumerator_ - , obj); -#endif -} - -inline void SetIndexedPropertyHandler( - v8::Local tpl - , IndexGetterCallback getter - , IndexSetterCallback setter = 0 - , IndexQueryCallback query = 0 - , IndexDeleterCallback deleter = 0 - , IndexEnumeratorCallback enumerator = 0 - , v8::Local data = v8::Local()) { - HandleScope scope; - - imp::NativeIndexGetter getter_ = - imp::IndexGetterCallbackWrapper; - imp::NativeIndexSetter setter_ = - setter ? imp::IndexSetterCallbackWrapper : 0; - imp::NativeIndexQuery query_ = - query ? imp::IndexQueryCallbackWrapper : 0; - imp::NativeIndexDeleter deleter_ = - deleter ? imp::IndexDeleterCallbackWrapper : 0; - imp::NativeIndexEnumerator enumerator_ = - enumerator ? imp::IndexEnumeratorCallbackWrapper : 0; - - v8::Local otpl = New(); - otpl->SetInternalFieldCount(imp::kIndexPropertyFieldCount); - v8::Local obj = NewInstance(otpl).ToLocalChecked(); - obj->SetInternalField( - imp::kIndexPropertyGetterIndex - , New(reinterpret_cast(getter))); - - if (setter) { - obj->SetInternalField( - imp::kIndexPropertySetterIndex - , New(reinterpret_cast(setter))); - } - - if (query) { - obj->SetInternalField( - imp::kIndexPropertyQueryIndex - , New(reinterpret_cast(query))); - } - - if (deleter) { - obj->SetInternalField( - imp::kIndexPropertyDeleterIndex - , New(reinterpret_cast(deleter))); - } - - if (enumerator) { - obj->SetInternalField( - imp::kIndexPropertyEnumeratorIndex - , New(reinterpret_cast(enumerator))); - } - - if (!data.IsEmpty()) { - obj->SetInternalField(imp::kDataIndex, data); - } - -#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION - tpl->SetHandler(v8::IndexedPropertyHandlerConfiguration( - getter_, setter_, query_, deleter_, enumerator_, obj)); -#else - tpl->SetIndexedPropertyHandler( - getter_ - , setter_ - , query_ - , deleter_ - , enumerator_ - , obj); -#endif -} - -inline void SetCallHandler( - v8::Local tpl - , FunctionCallback callback - , v8::Local data = v8::Local()) { - HandleScope scope; - - v8::Local otpl = New(); - otpl->SetInternalFieldCount(imp::kFunctionFieldCount); - v8::Local obj = NewInstance(otpl).ToLocalChecked(); - - obj->SetInternalField( - imp::kFunctionIndex - , New(reinterpret_cast(callback))); - - if (!data.IsEmpty()) { - obj->SetInternalField(imp::kDataIndex, data); - } - - tpl->SetCallHandler(imp::FunctionCallbackWrapper, obj); -} - - -inline void SetCallAsFunctionHandler( - v8::Local tpl, - FunctionCallback callback, - v8::Local data = v8::Local()) { - HandleScope scope; - - v8::Local otpl = New(); - otpl->SetInternalFieldCount(imp::kFunctionFieldCount); - v8::Local obj = NewInstance(otpl).ToLocalChecked(); - - obj->SetInternalField( - imp::kFunctionIndex - , New(reinterpret_cast(callback))); - - if (!data.IsEmpty()) { - obj->SetInternalField(imp::kDataIndex, data); - } - - tpl->SetCallAsFunctionHandler(imp::FunctionCallbackWrapper, obj); -} - -//=== Weak Persistent Handling ================================================= - -#include "nan_weak.h" // NOLINT(build/include) - -//=== ObjectWrap =============================================================== - -#include "nan_object_wrap.h" // NOLINT(build/include) - -//=== HiddenValue/Private ====================================================== - -#include "nan_private.h" // NOLINT(build/include) - -//=== Export ================================================================== - -inline -void -Export(ADDON_REGISTER_FUNCTION_ARGS_TYPE target, const char *name, - FunctionCallback f) { - HandleScope scope; - - Set(target, New(name).ToLocalChecked(), - GetFunction(New(f)).ToLocalChecked()); -} - -//=== Tap Reverse Binding ===================================================== - -struct Tap { - explicit Tap(v8::Local t) : t_() { - HandleScope scope; - - t_.Reset(To(t).ToLocalChecked()); - } - - ~Tap() { t_.Reset(); } // not sure if neccessary - - inline void plan(int i) { - HandleScope scope; - v8::Local arg = New(i); - MakeCallback(New(t_), "plan", 1, &arg); - } - - inline void ok(bool isOk, const char *msg = NULL) { - HandleScope scope; - v8::Local args[2]; - args[0] = New(isOk); - if (msg) args[1] = New(msg).ToLocalChecked(); - MakeCallback(New(t_), "ok", msg ? 2 : 1, args); - } - - inline void pass(const char * msg = NULL) { - HandleScope scope; - v8::Local hmsg; - if (msg) hmsg = New(msg).ToLocalChecked(); - MakeCallback(New(t_), "pass", msg ? 1 : 0, &hmsg); - } - - private: - Persistent t_; -}; - -#define NAN_STRINGIZE2(x) #x -#define NAN_STRINGIZE(x) NAN_STRINGIZE2(x) -#define NAN_TEST_EXPRESSION(expression) \ - ( expression ), __FILE__ ":" NAN_STRINGIZE(__LINE__) ": " #expression - -#define NAN_EXPORT(target, function) Export(target, #function, function) - -#undef TYPE_CHECK - -//=== Generic Maybefication =================================================== - -namespace imp { - -template struct Maybefier; - -template struct Maybefier > { - inline static MaybeLocal convert(v8::Local v) { - return v; - } -}; - -template struct Maybefier > { - inline static MaybeLocal convert(MaybeLocal v) { - return v; - } -}; - -} // end of namespace imp - -template class MaybeMaybe> -inline MaybeLocal -MakeMaybe(MaybeMaybe v) { - return imp::Maybefier >::convert(v); -} - -//=== TypedArrayContents ======================================================= - -#include "nan_typedarray_contents.h" // NOLINT(build/include) - -} // end of namespace Nan - -#endif // NAN_H_ diff --git a/node_modules/nan/nan_callbacks.h b/node_modules/nan/nan_callbacks.h deleted file mode 100644 index c612cee..0000000 --- a/node_modules/nan/nan_callbacks.h +++ /dev/null @@ -1,88 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_CALLBACKS_H_ -#define NAN_CALLBACKS_H_ - -template class FunctionCallbackInfo; -template class PropertyCallbackInfo; -template class Global; - -typedef void(*FunctionCallback)(const FunctionCallbackInfo&); -typedef void(*GetterCallback) - (v8::Local, const PropertyCallbackInfo&); -typedef void(*SetterCallback)( - v8::Local, - v8::Local, - const PropertyCallbackInfo&); -typedef void(*PropertyGetterCallback)( - v8::Local, - const PropertyCallbackInfo&); -typedef void(*PropertySetterCallback)( - v8::Local, - v8::Local, - const PropertyCallbackInfo&); -typedef void(*PropertyEnumeratorCallback) - (const PropertyCallbackInfo&); -typedef void(*PropertyDeleterCallback)( - v8::Local, - const PropertyCallbackInfo&); -typedef void(*PropertyQueryCallback)( - v8::Local, - const PropertyCallbackInfo&); -typedef void(*IndexGetterCallback)( - uint32_t, - const PropertyCallbackInfo&); -typedef void(*IndexSetterCallback)( - uint32_t, - v8::Local, - const PropertyCallbackInfo&); -typedef void(*IndexEnumeratorCallback) - (const PropertyCallbackInfo&); -typedef void(*IndexDeleterCallback)( - uint32_t, - const PropertyCallbackInfo&); -typedef void(*IndexQueryCallback)( - uint32_t, - const PropertyCallbackInfo&); - -namespace imp { -typedef v8::Local Sig; - -static const int kDataIndex = 0; - -static const int kFunctionIndex = 1; -static const int kFunctionFieldCount = 2; - -static const int kGetterIndex = 1; -static const int kSetterIndex = 2; -static const int kAccessorFieldCount = 3; - -static const int kPropertyGetterIndex = 1; -static const int kPropertySetterIndex = 2; -static const int kPropertyEnumeratorIndex = 3; -static const int kPropertyDeleterIndex = 4; -static const int kPropertyQueryIndex = 5; -static const int kPropertyFieldCount = 6; - -static const int kIndexPropertyGetterIndex = 1; -static const int kIndexPropertySetterIndex = 2; -static const int kIndexPropertyEnumeratorIndex = 3; -static const int kIndexPropertyDeleterIndex = 4; -static const int kIndexPropertyQueryIndex = 5; -static const int kIndexPropertyFieldCount = 6; - -} // end of namespace imp - -#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION -# include "nan_callbacks_12_inl.h" // NOLINT(build/include) -#else -# include "nan_callbacks_pre_12_inl.h" // NOLINT(build/include) -#endif - -#endif // NAN_CALLBACKS_H_ diff --git a/node_modules/nan/nan_callbacks_12_inl.h b/node_modules/nan/nan_callbacks_12_inl.h deleted file mode 100644 index 9c8bf7e..0000000 --- a/node_modules/nan/nan_callbacks_12_inl.h +++ /dev/null @@ -1,512 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_CALLBACKS_12_INL_H_ -#define NAN_CALLBACKS_12_INL_H_ - -template -class ReturnValue { - v8::ReturnValue value_; - - public: - template - explicit inline ReturnValue(const v8::ReturnValue &value) : - value_(value) {} - template - explicit inline ReturnValue(const ReturnValue& that) - : value_(that.value_) { - TYPE_CHECK(T, S); - } - - // Handle setters - template inline void Set(const v8::Local &handle) { - TYPE_CHECK(T, S); - value_.Set(handle); - } - - template inline void Set(const Global &handle) { - TYPE_CHECK(T, S); -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && \ - (V8_MINOR_VERSION > 5 || (V8_MINOR_VERSION == 5 && \ - defined(V8_BUILD_NUMBER) && V8_BUILD_NUMBER >= 8)))) - value_.Set(handle); -#else - value_.Set(*reinterpret_cast*>(&handle)); - const_cast &>(handle).Reset(); -#endif - } - - // Fast primitive setters - inline void Set(bool value) { - TYPE_CHECK(T, v8::Boolean); - value_.Set(value); - } - - inline void Set(double i) { - TYPE_CHECK(T, v8::Number); - value_.Set(i); - } - - inline void Set(int32_t i) { - TYPE_CHECK(T, v8::Integer); - value_.Set(i); - } - - inline void Set(uint32_t i) { - TYPE_CHECK(T, v8::Integer); - value_.Set(i); - } - - // Fast JS primitive setters - inline void SetNull() { - TYPE_CHECK(T, v8::Primitive); - value_.SetNull(); - } - - inline void SetUndefined() { - TYPE_CHECK(T, v8::Primitive); - value_.SetUndefined(); - } - - inline void SetEmptyString() { - TYPE_CHECK(T, v8::String); - value_.SetEmptyString(); - } - - // Convenience getter for isolate - inline v8::Isolate *GetIsolate() const { - return value_.GetIsolate(); - } - - // Pointer setter: Uncompilable to prevent inadvertent misuse. - template - inline void Set(S *whatever) { TYPE_CHECK(S*, v8::Primitive); } -}; - -template -class FunctionCallbackInfo { - const v8::FunctionCallbackInfo &info_; - const v8::Local data_; - - public: - explicit inline FunctionCallbackInfo( - const v8::FunctionCallbackInfo &info - , v8::Local data) : - info_(info) - , data_(data) {} - - inline ReturnValue GetReturnValue() const { - return ReturnValue(info_.GetReturnValue()); - } - - inline v8::Local Callee() const { return info_.Callee(); } - inline v8::Local Data() const { return data_; } - inline v8::Local Holder() const { return info_.Holder(); } - inline bool IsConstructCall() const { return info_.IsConstructCall(); } - inline int Length() const { return info_.Length(); } - inline v8::Local operator[](int i) const { return info_[i]; } - inline v8::Local This() const { return info_.This(); } - inline v8::Isolate *GetIsolate() const { return info_.GetIsolate(); } - - - protected: - static const int kHolderIndex = 0; - static const int kIsolateIndex = 1; - static const int kReturnValueDefaultValueIndex = 2; - static const int kReturnValueIndex = 3; - static const int kDataIndex = 4; - static const int kCalleeIndex = 5; - static const int kContextSaveIndex = 6; - static const int kArgsLength = 7; - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(FunctionCallbackInfo) -}; - -template -class PropertyCallbackInfo { - const v8::PropertyCallbackInfo &info_; - const v8::Local data_; - - public: - explicit inline PropertyCallbackInfo( - const v8::PropertyCallbackInfo &info - , const v8::Local data) : - info_(info) - , data_(data) {} - - inline v8::Isolate* GetIsolate() const { return info_.GetIsolate(); } - inline v8::Local Data() const { return data_; } - inline v8::Local This() const { return info_.This(); } - inline v8::Local Holder() const { return info_.Holder(); } - inline ReturnValue GetReturnValue() const { - return ReturnValue(info_.GetReturnValue()); - } - - protected: - static const int kHolderIndex = 0; - static const int kIsolateIndex = 1; - static const int kReturnValueDefaultValueIndex = 2; - static const int kReturnValueIndex = 3; - static const int kDataIndex = 4; - static const int kThisIndex = 5; - static const int kArgsLength = 6; - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(PropertyCallbackInfo) -}; - -namespace imp { -static -void FunctionCallbackWrapper(const v8::FunctionCallbackInfo &info) { - v8::Local obj = info.Data().As(); - FunctionCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kFunctionIndex).As()->Value())); - FunctionCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - callback(cbinfo); -} - -typedef void (*NativeFunction)(const v8::FunctionCallbackInfo &); - -#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION -static -void GetterCallbackWrapper( - v8::Local property - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - GetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kGetterIndex).As()->Value())); - callback(property.As(), cbinfo); -} - -typedef void (*NativeGetter) - (v8::Local, const v8::PropertyCallbackInfo &); - -static -void SetterCallbackWrapper( - v8::Local property - , v8::Local value - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - SetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kSetterIndex).As()->Value())); - callback(property.As(), value, cbinfo); -} - -typedef void (*NativeSetter)( - v8::Local - , v8::Local - , const v8::PropertyCallbackInfo &); -#else -static -void GetterCallbackWrapper( - v8::Local property - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - GetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kGetterIndex).As()->Value())); - callback(property, cbinfo); -} - -typedef void (*NativeGetter) - (v8::Local, const v8::PropertyCallbackInfo &); - -static -void SetterCallbackWrapper( - v8::Local property - , v8::Local value - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - SetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kSetterIndex).As()->Value())); - callback(property, value, cbinfo); -} - -typedef void (*NativeSetter)( - v8::Local - , v8::Local - , const v8::PropertyCallbackInfo &); -#endif - -#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION -static -void PropertyGetterCallbackWrapper( - v8::Local property - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyGetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyGetterIndex) - .As()->Value())); - callback(property.As(), cbinfo); -} - -typedef void (*NativePropertyGetter) - (v8::Local, const v8::PropertyCallbackInfo &); - -static -void PropertySetterCallbackWrapper( - v8::Local property - , v8::Local value - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertySetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertySetterIndex) - .As()->Value())); - callback(property.As(), value, cbinfo); -} - -typedef void (*NativePropertySetter)( - v8::Local - , v8::Local - , const v8::PropertyCallbackInfo &); - -static -void PropertyEnumeratorCallbackWrapper( - const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyEnumeratorCallback callback = - reinterpret_cast(reinterpret_cast( - obj->GetInternalField(kPropertyEnumeratorIndex) - .As()->Value())); - callback(cbinfo); -} - -typedef void (*NativePropertyEnumerator) - (const v8::PropertyCallbackInfo &); - -static -void PropertyDeleterCallbackWrapper( - v8::Local property - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyDeleterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyDeleterIndex) - .As()->Value())); - callback(property.As(), cbinfo); -} - -typedef void (NativePropertyDeleter) - (v8::Local, const v8::PropertyCallbackInfo &); - -static -void PropertyQueryCallbackWrapper( - v8::Local property - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyQueryCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyQueryIndex) - .As()->Value())); - callback(property.As(), cbinfo); -} - -typedef void (*NativePropertyQuery) - (v8::Local, const v8::PropertyCallbackInfo &); -#else -static -void PropertyGetterCallbackWrapper( - v8::Local property - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyGetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyGetterIndex) - .As()->Value())); - callback(property, cbinfo); -} - -typedef void (*NativePropertyGetter) - (v8::Local, const v8::PropertyCallbackInfo &); - -static -void PropertySetterCallbackWrapper( - v8::Local property - , v8::Local value - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertySetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertySetterIndex) - .As()->Value())); - callback(property, value, cbinfo); -} - -typedef void (*NativePropertySetter)( - v8::Local - , v8::Local - , const v8::PropertyCallbackInfo &); - -static -void PropertyEnumeratorCallbackWrapper( - const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyEnumeratorCallback callback = - reinterpret_cast(reinterpret_cast( - obj->GetInternalField(kPropertyEnumeratorIndex) - .As()->Value())); - callback(cbinfo); -} - -typedef void (*NativePropertyEnumerator) - (const v8::PropertyCallbackInfo &); - -static -void PropertyDeleterCallbackWrapper( - v8::Local property - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyDeleterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyDeleterIndex) - .As()->Value())); - callback(property, cbinfo); -} - -typedef void (NativePropertyDeleter) - (v8::Local, const v8::PropertyCallbackInfo &); - -static -void PropertyQueryCallbackWrapper( - v8::Local property - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyQueryCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyQueryIndex) - .As()->Value())); - callback(property, cbinfo); -} - -typedef void (*NativePropertyQuery) - (v8::Local, const v8::PropertyCallbackInfo &); -#endif - -static -void IndexGetterCallbackWrapper( - uint32_t index, const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexGetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertyGetterIndex) - .As()->Value())); - callback(index, cbinfo); -} - -typedef void (*NativeIndexGetter) - (uint32_t, const v8::PropertyCallbackInfo &); - -static -void IndexSetterCallbackWrapper( - uint32_t index - , v8::Local value - , const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexSetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertySetterIndex) - .As()->Value())); - callback(index, value, cbinfo); -} - -typedef void (*NativeIndexSetter)( - uint32_t - , v8::Local - , const v8::PropertyCallbackInfo &); - -static -void IndexEnumeratorCallbackWrapper( - const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexEnumeratorCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField( - kIndexPropertyEnumeratorIndex).As()->Value())); - callback(cbinfo); -} - -typedef void (*NativeIndexEnumerator) - (const v8::PropertyCallbackInfo &); - -static -void IndexDeleterCallbackWrapper( - uint32_t index, const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexDeleterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertyDeleterIndex) - .As()->Value())); - callback(index, cbinfo); -} - -typedef void (*NativeIndexDeleter) - (uint32_t, const v8::PropertyCallbackInfo &); - -static -void IndexQueryCallbackWrapper( - uint32_t index, const v8::PropertyCallbackInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexQueryCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertyQueryIndex) - .As()->Value())); - callback(index, cbinfo); -} - -typedef void (*NativeIndexQuery) - (uint32_t, const v8::PropertyCallbackInfo &); -} // end of namespace imp - -#endif // NAN_CALLBACKS_12_INL_H_ diff --git a/node_modules/nan/nan_callbacks_pre_12_inl.h b/node_modules/nan/nan_callbacks_pre_12_inl.h deleted file mode 100644 index 087ee52..0000000 --- a/node_modules/nan/nan_callbacks_pre_12_inl.h +++ /dev/null @@ -1,520 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_CALLBACKS_PRE_12_INL_H_ -#define NAN_CALLBACKS_PRE_12_INL_H_ - -namespace imp { -template class ReturnValueImp; -} // end of namespace imp - -template -class ReturnValue { - v8::Isolate *isolate_; - v8::Persistent *value_; - friend class imp::ReturnValueImp; - - public: - template - explicit inline ReturnValue(v8::Isolate *isolate, v8::Persistent *p) : - isolate_(isolate), value_(p) {} - template - explicit inline ReturnValue(const ReturnValue& that) - : isolate_(that.isolate_), value_(that.value_) { - TYPE_CHECK(T, S); - } - - // Handle setters - template inline void Set(const v8::Local &handle) { - TYPE_CHECK(T, S); - value_->Dispose(); - *value_ = v8::Persistent::New(handle); - } - - template inline void Set(const Global &handle) { - TYPE_CHECK(T, S); - value_->Dispose(); - *value_ = v8::Persistent::New(handle.persistent); - const_cast &>(handle).Reset(); - } - - // Fast primitive setters - inline void Set(bool value) { - v8::HandleScope scope; - - TYPE_CHECK(T, v8::Boolean); - value_->Dispose(); - *value_ = v8::Persistent::New(v8::Boolean::New(value)); - } - - inline void Set(double i) { - v8::HandleScope scope; - - TYPE_CHECK(T, v8::Number); - value_->Dispose(); - *value_ = v8::Persistent::New(v8::Number::New(i)); - } - - inline void Set(int32_t i) { - v8::HandleScope scope; - - TYPE_CHECK(T, v8::Integer); - value_->Dispose(); - *value_ = v8::Persistent::New(v8::Int32::New(i)); - } - - inline void Set(uint32_t i) { - v8::HandleScope scope; - - TYPE_CHECK(T, v8::Integer); - value_->Dispose(); - *value_ = v8::Persistent::New(v8::Uint32::NewFromUnsigned(i)); - } - - // Fast JS primitive setters - inline void SetNull() { - v8::HandleScope scope; - - TYPE_CHECK(T, v8::Primitive); - value_->Dispose(); - *value_ = v8::Persistent::New(v8::Null()); - } - - inline void SetUndefined() { - v8::HandleScope scope; - - TYPE_CHECK(T, v8::Primitive); - value_->Dispose(); - *value_ = v8::Persistent::New(v8::Undefined()); - } - - inline void SetEmptyString() { - v8::HandleScope scope; - - TYPE_CHECK(T, v8::String); - value_->Dispose(); - *value_ = v8::Persistent::New(v8::String::Empty()); - } - - // Convenience getter for isolate - inline v8::Isolate *GetIsolate() const { - return isolate_; - } - - // Pointer setter: Uncompilable to prevent inadvertent misuse. - template - inline void Set(S *whatever) { TYPE_CHECK(S*, v8::Primitive); } -}; - -template -class FunctionCallbackInfo { - const v8::Arguments &args_; - v8::Local data_; - ReturnValue return_value_; - v8::Persistent retval_; - - public: - explicit inline FunctionCallbackInfo( - const v8::Arguments &args - , v8::Local data) : - args_(args) - , data_(data) - , return_value_(args.GetIsolate(), &retval_) - , retval_(v8::Persistent::New(v8::Undefined())) {} - - inline ~FunctionCallbackInfo() { - retval_.Dispose(); - retval_.Clear(); - } - - inline ReturnValue GetReturnValue() const { - return ReturnValue(return_value_); - } - - inline v8::Local Callee() const { return args_.Callee(); } - inline v8::Local Data() const { return data_; } - inline v8::Local Holder() const { return args_.Holder(); } - inline bool IsConstructCall() const { return args_.IsConstructCall(); } - inline int Length() const { return args_.Length(); } - inline v8::Local operator[](int i) const { return args_[i]; } - inline v8::Local This() const { return args_.This(); } - inline v8::Isolate *GetIsolate() const { return args_.GetIsolate(); } - - - protected: - static const int kHolderIndex = 0; - static const int kIsolateIndex = 1; - static const int kReturnValueDefaultValueIndex = 2; - static const int kReturnValueIndex = 3; - static const int kDataIndex = 4; - static const int kCalleeIndex = 5; - static const int kContextSaveIndex = 6; - static const int kArgsLength = 7; - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(FunctionCallbackInfo) -}; - -template -class PropertyCallbackInfoBase { - const v8::AccessorInfo &info_; - const v8::Local data_; - - public: - explicit inline PropertyCallbackInfoBase( - const v8::AccessorInfo &info - , const v8::Local data) : - info_(info) - , data_(data) {} - - inline v8::Isolate* GetIsolate() const { return info_.GetIsolate(); } - inline v8::Local Data() const { return data_; } - inline v8::Local This() const { return info_.This(); } - inline v8::Local Holder() const { return info_.Holder(); } - - protected: - static const int kHolderIndex = 0; - static const int kIsolateIndex = 1; - static const int kReturnValueDefaultValueIndex = 2; - static const int kReturnValueIndex = 3; - static const int kDataIndex = 4; - static const int kThisIndex = 5; - static const int kArgsLength = 6; - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(PropertyCallbackInfoBase) -}; - -template -class PropertyCallbackInfo : public PropertyCallbackInfoBase { - ReturnValue return_value_; - v8::Persistent retval_; - - public: - explicit inline PropertyCallbackInfo( - const v8::AccessorInfo &info - , const v8::Local data) : - PropertyCallbackInfoBase(info, data) - , return_value_(info.GetIsolate(), &retval_) - , retval_(v8::Persistent::New(v8::Undefined())) {} - - inline ~PropertyCallbackInfo() { - retval_.Dispose(); - retval_.Clear(); - } - - inline ReturnValue GetReturnValue() const { return return_value_; } -}; - -template<> -class PropertyCallbackInfo : - public PropertyCallbackInfoBase { - ReturnValue return_value_; - v8::Persistent retval_; - - public: - explicit inline PropertyCallbackInfo( - const v8::AccessorInfo &info - , const v8::Local data) : - PropertyCallbackInfoBase(info, data) - , return_value_(info.GetIsolate(), &retval_) - , retval_(v8::Persistent::New(v8::Local())) {} - - inline ~PropertyCallbackInfo() { - retval_.Dispose(); - retval_.Clear(); - } - - inline ReturnValue GetReturnValue() const { - return return_value_; - } -}; - -template<> -class PropertyCallbackInfo : - public PropertyCallbackInfoBase { - ReturnValue return_value_; - v8::Persistent retval_; - - public: - explicit inline PropertyCallbackInfo( - const v8::AccessorInfo &info - , const v8::Local data) : - PropertyCallbackInfoBase(info, data) - , return_value_(info.GetIsolate(), &retval_) - , retval_(v8::Persistent::New(v8::Local())) {} - - inline ~PropertyCallbackInfo() { - retval_.Dispose(); - retval_.Clear(); - } - - inline ReturnValue GetReturnValue() const { - return return_value_; - } -}; - -template<> -class PropertyCallbackInfo : - public PropertyCallbackInfoBase { - ReturnValue return_value_; - v8::Persistent retval_; - - public: - explicit inline PropertyCallbackInfo( - const v8::AccessorInfo &info - , const v8::Local data) : - PropertyCallbackInfoBase(info, data) - , return_value_(info.GetIsolate(), &retval_) - , retval_(v8::Persistent::New(v8::Local())) {} - - inline ~PropertyCallbackInfo() { - retval_.Dispose(); - retval_.Clear(); - } - - inline ReturnValue GetReturnValue() const { - return return_value_; - } -}; - -namespace imp { -template -class ReturnValueImp : public ReturnValue { - public: - explicit ReturnValueImp(ReturnValue that) : - ReturnValue(that) {} - inline v8::Handle Value() { - return *ReturnValue::value_; - } -}; - -static -v8::Handle FunctionCallbackWrapper(const v8::Arguments &args) { - v8::Local obj = args.Data().As(); - FunctionCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kFunctionIndex).As()->Value())); - FunctionCallbackInfo - cbinfo(args, obj->GetInternalField(kDataIndex)); - callback(cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativeFunction)(const v8::Arguments &); - -static -v8::Handle GetterCallbackWrapper( - v8::Local property, const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - GetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kGetterIndex).As()->Value())); - callback(property, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativeGetter) - (v8::Local, const v8::AccessorInfo &); - -static -void SetterCallbackWrapper( - v8::Local property - , v8::Local value - , const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - SetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kSetterIndex).As()->Value())); - callback(property, value, cbinfo); -} - -typedef void (*NativeSetter) - (v8::Local, v8::Local, const v8::AccessorInfo &); - -static -v8::Handle PropertyGetterCallbackWrapper( - v8::Local property, const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyGetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyGetterIndex) - .As()->Value())); - callback(property, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativePropertyGetter) - (v8::Local, const v8::AccessorInfo &); - -static -v8::Handle PropertySetterCallbackWrapper( - v8::Local property - , v8::Local value - , const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertySetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertySetterIndex) - .As()->Value())); - callback(property, value, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativePropertySetter) - (v8::Local, v8::Local, const v8::AccessorInfo &); - -static -v8::Handle PropertyEnumeratorCallbackWrapper( - const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyEnumeratorCallback callback = - reinterpret_cast(reinterpret_cast( - obj->GetInternalField(kPropertyEnumeratorIndex) - .As()->Value())); - callback(cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativePropertyEnumerator) - (const v8::AccessorInfo &); - -static -v8::Handle PropertyDeleterCallbackWrapper( - v8::Local property - , const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyDeleterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyDeleterIndex) - .As()->Value())); - callback(property, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (NativePropertyDeleter) - (v8::Local, const v8::AccessorInfo &); - -static -v8::Handle PropertyQueryCallbackWrapper( - v8::Local property, const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - PropertyQueryCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kPropertyQueryIndex) - .As()->Value())); - callback(property, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativePropertyQuery) - (v8::Local, const v8::AccessorInfo &); - -static -v8::Handle IndexGetterCallbackWrapper( - uint32_t index, const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexGetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertyGetterIndex) - .As()->Value())); - callback(index, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativeIndexGetter) - (uint32_t, const v8::AccessorInfo &); - -static -v8::Handle IndexSetterCallbackWrapper( - uint32_t index - , v8::Local value - , const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexSetterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertySetterIndex) - .As()->Value())); - callback(index, value, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativeIndexSetter) - (uint32_t, v8::Local, const v8::AccessorInfo &); - -static -v8::Handle IndexEnumeratorCallbackWrapper( - const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexEnumeratorCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertyEnumeratorIndex) - .As()->Value())); - callback(cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativeIndexEnumerator) - (const v8::AccessorInfo &); - -static -v8::Handle IndexDeleterCallbackWrapper( - uint32_t index, const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexDeleterCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertyDeleterIndex) - .As()->Value())); - callback(index, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativeIndexDeleter) - (uint32_t, const v8::AccessorInfo &); - -static -v8::Handle IndexQueryCallbackWrapper( - uint32_t index, const v8::AccessorInfo &info) { - v8::Local obj = info.Data().As(); - PropertyCallbackInfo - cbinfo(info, obj->GetInternalField(kDataIndex)); - IndexQueryCallback callback = reinterpret_cast( - reinterpret_cast( - obj->GetInternalField(kIndexPropertyQueryIndex) - .As()->Value())); - callback(index, cbinfo); - return ReturnValueImp(cbinfo.GetReturnValue()).Value(); -} - -typedef v8::Handle (*NativeIndexQuery) - (uint32_t, const v8::AccessorInfo &); -} // end of namespace imp - -#endif // NAN_CALLBACKS_PRE_12_INL_H_ diff --git a/node_modules/nan/nan_converters.h b/node_modules/nan/nan_converters.h deleted file mode 100644 index 9dbd1ec..0000000 --- a/node_modules/nan/nan_converters.h +++ /dev/null @@ -1,64 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_CONVERTERS_H_ -#define NAN_CONVERTERS_H_ - -namespace imp { -template struct ToFactoryBase { - typedef MaybeLocal return_t; -}; -template struct ValueFactoryBase { typedef Maybe return_t; }; - -template struct ToFactory; - -#define X(TYPE) \ - template<> \ - struct ToFactory : ToFactoryBase { \ - static inline return_t convert(v8::Local val); \ - }; - -X(Boolean) -X(Number) -X(String) -X(Object) -X(Integer) -X(Uint32) -X(Int32) - -#undef X - -#define X(TYPE) \ - template<> \ - struct ToFactory : ValueFactoryBase { \ - static inline return_t convert(v8::Local val); \ - }; - -X(bool) -X(double) -X(int64_t) -X(uint32_t) -X(int32_t) - -#undef X -} // end of namespace imp - -template -inline -typename imp::ToFactory::return_t To(v8::Local val) { - return imp::ToFactory::convert(val); -} - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -# include "nan_converters_43_inl.h" -#else -# include "nan_converters_pre_43_inl.h" -#endif - -#endif // NAN_CONVERTERS_H_ diff --git a/node_modules/nan/nan_converters_43_inl.h b/node_modules/nan/nan_converters_43_inl.h deleted file mode 100644 index 0c7cd50..0000000 --- a/node_modules/nan/nan_converters_43_inl.h +++ /dev/null @@ -1,48 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_CONVERTERS_43_INL_H_ -#define NAN_CONVERTERS_43_INL_H_ - -#define X(TYPE) \ -imp::ToFactory::return_t \ -imp::ToFactory::convert(v8::Local val) { \ - v8::Isolate *isolate = v8::Isolate::GetCurrent(); \ - v8::EscapableHandleScope scope(isolate); \ - return scope.Escape( \ - val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext()) \ - .FromMaybe(v8::Local())); \ -} - -X(Boolean) -X(Number) -X(String) -X(Object) -X(Integer) -X(Uint32) -X(Int32) - -#undef X - -#define X(TYPE, NAME) \ -imp::ToFactory::return_t \ -imp::ToFactory::convert(v8::Local val) { \ - v8::Isolate *isolate = v8::Isolate::GetCurrent(); \ - v8::HandleScope scope(isolate); \ - return val->NAME ## Value(isolate->GetCurrentContext()); \ -} - -X(bool, Boolean) -X(double, Number) -X(int64_t, Integer) -X(uint32_t, Uint32) -X(int32_t, Int32) - -#undef X - -#endif // NAN_CONVERTERS_43_INL_H_ diff --git a/node_modules/nan/nan_converters_pre_43_inl.h b/node_modules/nan/nan_converters_pre_43_inl.h deleted file mode 100644 index 3391be2..0000000 --- a/node_modules/nan/nan_converters_pre_43_inl.h +++ /dev/null @@ -1,42 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_CONVERTERS_PRE_43_INL_H_ -#define NAN_CONVERTERS_PRE_43_INL_H_ - -#define X(TYPE) \ -imp::ToFactory::return_t \ -imp::ToFactory::convert(v8::Local val) { \ - return val->To ## TYPE(); \ -} - -X(Boolean) -X(Number) -X(String) -X(Object) -X(Integer) -X(Uint32) -X(Int32) - -#undef X - -#define X(TYPE, NAME) \ -imp::ToFactory::return_t \ -imp::ToFactory::convert(v8::Local val) { \ - return Just(val->NAME ## Value()); \ -} - -X(bool, Boolean) -X(double, Number) -X(int64_t, Integer) -X(uint32_t, Uint32) -X(int32_t, Int32) - -#undef X - -#endif // NAN_CONVERTERS_PRE_43_INL_H_ diff --git a/node_modules/nan/nan_implementation_12_inl.h b/node_modules/nan/nan_implementation_12_inl.h deleted file mode 100644 index be80a45..0000000 --- a/node_modules/nan/nan_implementation_12_inl.h +++ /dev/null @@ -1,399 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_IMPLEMENTATION_12_INL_H_ -#define NAN_IMPLEMENTATION_12_INL_H_ -//============================================================================== -// node v0.11 implementation -//============================================================================== - -namespace imp { - -//=== Array ==================================================================== - -Factory::return_t -Factory::New() { - return v8::Array::New(v8::Isolate::GetCurrent()); -} - -Factory::return_t -Factory::New(int length) { - return v8::Array::New(v8::Isolate::GetCurrent(), length); -} - -//=== Boolean ================================================================== - -Factory::return_t -Factory::New(bool value) { - return v8::Boolean::New(v8::Isolate::GetCurrent(), value); -} - -//=== Boolean Object =========================================================== - -Factory::return_t -Factory::New(bool value) { -#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION) - return v8::BooleanObject::New( - v8::Isolate::GetCurrent(), value).As(); -#else - return v8::BooleanObject::New(value).As(); -#endif -} - -//=== Context ================================================================== - -Factory::return_t -Factory::New( v8::ExtensionConfiguration* extensions - , v8::Local tmpl - , v8::Local obj) { - return v8::Context::New(v8::Isolate::GetCurrent(), extensions, tmpl, obj); -} - -//=== Date ===================================================================== - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -Factory::return_t -Factory::New(double value) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(v8::Date::New(isolate->GetCurrentContext(), value) - .FromMaybe(v8::Local()).As()); -} -#else -Factory::return_t -Factory::New(double value) { - return v8::Date::New(v8::Isolate::GetCurrent(), value).As(); -} -#endif - -//=== External ================================================================= - -Factory::return_t -Factory::New(void * value) { - return v8::External::New(v8::Isolate::GetCurrent(), value); -} - -//=== Function ================================================================= - -Factory::return_t -Factory::New( FunctionCallback callback - , v8::Local data) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - v8::Local tpl = v8::ObjectTemplate::New(isolate); - tpl->SetInternalFieldCount(imp::kFunctionFieldCount); - v8::Local obj = NewInstance(tpl).ToLocalChecked(); - - obj->SetInternalField( - imp::kFunctionIndex - , v8::External::New(isolate, reinterpret_cast(callback))); - - v8::Local val = v8::Local::New(isolate, data); - - if (!val.IsEmpty()) { - obj->SetInternalField(imp::kDataIndex, val); - } - - return scope.Escape(v8::Function::New( isolate - , imp::FunctionCallbackWrapper - , obj)); -} - -//=== Function Template ======================================================== - -Factory::return_t -Factory::New( FunctionCallback callback - , v8::Local data - , v8::Local signature) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - if (callback) { - v8::EscapableHandleScope scope(isolate); - v8::Local tpl = v8::ObjectTemplate::New(isolate); - tpl->SetInternalFieldCount(imp::kFunctionFieldCount); - v8::Local obj = NewInstance(tpl).ToLocalChecked(); - - obj->SetInternalField( - imp::kFunctionIndex - , v8::External::New(isolate, reinterpret_cast(callback))); - v8::Local val = v8::Local::New(isolate, data); - - if (!val.IsEmpty()) { - obj->SetInternalField(imp::kDataIndex, val); - } - - return scope.Escape(v8::FunctionTemplate::New( isolate - , imp::FunctionCallbackWrapper - , obj - , signature)); - } else { - return v8::FunctionTemplate::New(isolate, 0, data, signature); - } -} - -//=== Number =================================================================== - -Factory::return_t -Factory::New(double value) { - return v8::Number::New(v8::Isolate::GetCurrent(), value); -} - -//=== Number Object ============================================================ - -Factory::return_t -Factory::New(double value) { - return v8::NumberObject::New( v8::Isolate::GetCurrent() - , value).As(); -} - -//=== Integer, Int32 and Uint32 ================================================ - -template -typename IntegerFactory::return_t -IntegerFactory::New(int32_t value) { - return To(T::New(v8::Isolate::GetCurrent(), value)); -} - -template -typename IntegerFactory::return_t -IntegerFactory::New(uint32_t value) { - return To(T::NewFromUnsigned(v8::Isolate::GetCurrent(), value)); -} - -Factory::return_t -Factory::New(int32_t value) { - return To( - v8::Uint32::NewFromUnsigned(v8::Isolate::GetCurrent(), value)); -} - -Factory::return_t -Factory::New(uint32_t value) { - return To( - v8::Uint32::NewFromUnsigned(v8::Isolate::GetCurrent(), value)); -} - -//=== Object =================================================================== - -Factory::return_t -Factory::New() { - return v8::Object::New(v8::Isolate::GetCurrent()); -} - -//=== Object Template ========================================================== - -Factory::return_t -Factory::New() { - return v8::ObjectTemplate::New(v8::Isolate::GetCurrent()); -} - -//=== RegExp =================================================================== - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -Factory::return_t -Factory::New( - v8::Local pattern - , v8::RegExp::Flags flags) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape( - v8::RegExp::New(isolate->GetCurrentContext(), pattern, flags) - .FromMaybe(v8::Local())); -} -#else -Factory::return_t -Factory::New( - v8::Local pattern - , v8::RegExp::Flags flags) { - return v8::RegExp::New(pattern, flags); -} -#endif - -//=== Script =================================================================== - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -Factory::return_t -Factory::New( v8::Local source) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - v8::ScriptCompiler::Source src(source); - return scope.Escape( - v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &src) - .FromMaybe(v8::Local())); -} - -Factory::return_t -Factory::New( v8::Local source - , v8::ScriptOrigin const& origin) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - v8::ScriptCompiler::Source src(source, origin); - return scope.Escape( - v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &src) - .FromMaybe(v8::Local())); -} -#else -Factory::return_t -Factory::New( v8::Local source) { - v8::ScriptCompiler::Source src(source); - return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); -} - -Factory::return_t -Factory::New( v8::Local source - , v8::ScriptOrigin const& origin) { - v8::ScriptCompiler::Source src(source, origin); - return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); -} -#endif - -//=== Signature ================================================================ - -Factory::return_t -Factory::New(Factory::FTH receiver) { - return v8::Signature::New(v8::Isolate::GetCurrent(), receiver); -} - -//=== String =================================================================== - -Factory::return_t -Factory::New() { - return v8::String::Empty(v8::Isolate::GetCurrent()); -} - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -Factory::return_t -Factory::New(const char * value, int length) { - return v8::String::NewFromUtf8( - v8::Isolate::GetCurrent(), value, v8::NewStringType::kNormal, length); -} - -Factory::return_t -Factory::New(std::string const& value) { - assert(value.size() <= INT_MAX && "string too long"); - return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), - value.data(), v8::NewStringType::kNormal, static_cast(value.size())); -} - -Factory::return_t -Factory::New(const uint16_t * value, int length) { - return v8::String::NewFromTwoByte(v8::Isolate::GetCurrent(), value, - v8::NewStringType::kNormal, length); -} - -Factory::return_t -Factory::New(v8::String::ExternalStringResource * value) { - return v8::String::NewExternalTwoByte(v8::Isolate::GetCurrent(), value); -} - -Factory::return_t -Factory::New(ExternalOneByteStringResource * value) { - return v8::String::NewExternalOneByte(v8::Isolate::GetCurrent(), value); -} -#else -Factory::return_t -Factory::New(const char * value, int length) { - return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value, - v8::String::kNormalString, length); -} - -Factory::return_t -Factory::New( - std::string const& value) /* NOLINT(build/include_what_you_use) */ { - assert(value.size() <= INT_MAX && "string too long"); - return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value.data(), - v8::String::kNormalString, - static_cast(value.size())); -} - -Factory::return_t -Factory::New(const uint16_t * value, int length) { - return v8::String::NewFromTwoByte(v8::Isolate::GetCurrent(), value, - v8::String::kNormalString, length); -} - -Factory::return_t -Factory::New(v8::String::ExternalStringResource * value) { - return v8::String::NewExternal(v8::Isolate::GetCurrent(), value); -} - -Factory::return_t -Factory::New(ExternalOneByteStringResource * value) { - return v8::String::NewExternal(v8::Isolate::GetCurrent(), value); -} -#endif - -//=== String Object ============================================================ - -Factory::return_t -Factory::New(v8::Local value) { - return v8::StringObject::New(value).As(); -} - -//=== Unbound Script =========================================================== - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -Factory::return_t -Factory::New(v8::Local source) { - v8::ScriptCompiler::Source src(source); - return v8::ScriptCompiler::CompileUnboundScript( - v8::Isolate::GetCurrent(), &src); -} - -Factory::return_t -Factory::New( v8::Local source - , v8::ScriptOrigin const& origin) { - v8::ScriptCompiler::Source src(source, origin); - return v8::ScriptCompiler::CompileUnboundScript( - v8::Isolate::GetCurrent(), &src); -} -#else -Factory::return_t -Factory::New(v8::Local source) { - v8::ScriptCompiler::Source src(source); - return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); -} - -Factory::return_t -Factory::New( v8::Local source - , v8::ScriptOrigin const& origin) { - v8::ScriptCompiler::Source src(source, origin); - return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); -} -#endif - -} // end of namespace imp - -//=== Presistents and Handles ================================================== - -#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION -template -inline v8::Local New(v8::Handle h) { - return v8::Local::New(v8::Isolate::GetCurrent(), h); -} -#endif - -template -inline v8::Local New(v8::Persistent const& p) { - return v8::Local::New(v8::Isolate::GetCurrent(), p); -} - -template -inline v8::Local New(Persistent const& p) { - return v8::Local::New(v8::Isolate::GetCurrent(), p); -} - -template -inline v8::Local New(Global const& p) { - return v8::Local::New(v8::Isolate::GetCurrent(), p); -} - -#endif // NAN_IMPLEMENTATION_12_INL_H_ diff --git a/node_modules/nan/nan_implementation_pre_12_inl.h b/node_modules/nan/nan_implementation_pre_12_inl.h deleted file mode 100644 index 6afe94c..0000000 --- a/node_modules/nan/nan_implementation_pre_12_inl.h +++ /dev/null @@ -1,263 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_IMPLEMENTATION_PRE_12_INL_H_ -#define NAN_IMPLEMENTATION_PRE_12_INL_H_ - -//============================================================================== -// node v0.10 implementation -//============================================================================== - -namespace imp { - -//=== Array ==================================================================== - -Factory::return_t -Factory::New() { - return v8::Array::New(); -} - -Factory::return_t -Factory::New(int length) { - return v8::Array::New(length); -} - -//=== Boolean ================================================================== - -Factory::return_t -Factory::New(bool value) { - return v8::Boolean::New(value)->ToBoolean(); -} - -//=== Boolean Object =========================================================== - -Factory::return_t -Factory::New(bool value) { - return v8::BooleanObject::New(value).As(); -} - -//=== Context ================================================================== - -Factory::return_t -Factory::New( v8::ExtensionConfiguration* extensions - , v8::Local tmpl - , v8::Local obj) { - v8::Persistent ctx = v8::Context::New(extensions, tmpl, obj); - v8::Local lctx = v8::Local::New(ctx); - ctx.Dispose(); - return lctx; -} - -//=== Date ===================================================================== - -Factory::return_t -Factory::New(double value) { - return v8::Date::New(value).As(); -} - -//=== External ================================================================= - -Factory::return_t -Factory::New(void * value) { - return v8::External::New(value); -} - -//=== Function ================================================================= - -Factory::return_t -Factory::New( FunctionCallback callback - , v8::Local data) { - v8::HandleScope scope; - - return scope.Close(Factory::New( - callback, data, v8::Local()) - ->GetFunction()); -} - - -//=== FunctionTemplate ========================================================= - -Factory::return_t -Factory::New( FunctionCallback callback - , v8::Local data - , v8::Local signature) { - if (callback) { - v8::HandleScope scope; - - v8::Local tpl = v8::ObjectTemplate::New(); - tpl->SetInternalFieldCount(imp::kFunctionFieldCount); - v8::Local obj = tpl->NewInstance(); - - obj->SetInternalField( - imp::kFunctionIndex - , v8::External::New(reinterpret_cast(callback))); - - v8::Local val = v8::Local::New(data); - - if (!val.IsEmpty()) { - obj->SetInternalField(imp::kDataIndex, val); - } - - // Note(agnat): Emulate length argument here. Unfortunately, I couldn't find - // a way. Have at it though... - return scope.Close( - v8::FunctionTemplate::New(imp::FunctionCallbackWrapper - , obj - , signature)); - } else { - return v8::FunctionTemplate::New(0, data, signature); - } -} - -//=== Number =================================================================== - -Factory::return_t -Factory::New(double value) { - return v8::Number::New(value); -} - -//=== Number Object ============================================================ - -Factory::return_t -Factory::New(double value) { - return v8::NumberObject::New(value).As(); -} - -//=== Integer, Int32 and Uint32 ================================================ - -template -typename IntegerFactory::return_t -IntegerFactory::New(int32_t value) { - return To(T::New(value)); -} - -template -typename IntegerFactory::return_t -IntegerFactory::New(uint32_t value) { - return To(T::NewFromUnsigned(value)); -} - -Factory::return_t -Factory::New(int32_t value) { - return To(v8::Uint32::NewFromUnsigned(value)); -} - -Factory::return_t -Factory::New(uint32_t value) { - return To(v8::Uint32::NewFromUnsigned(value)); -} - - -//=== Object =================================================================== - -Factory::return_t -Factory::New() { - return v8::Object::New(); -} - -//=== Object Template ========================================================== - -Factory::return_t -Factory::New() { - return v8::ObjectTemplate::New(); -} - -//=== RegExp =================================================================== - -Factory::return_t -Factory::New( - v8::Local pattern - , v8::RegExp::Flags flags) { - return v8::RegExp::New(pattern, flags); -} - -//=== Script =================================================================== - -Factory::return_t -Factory::New( v8::Local source) { - return v8::Script::New(source); -} -Factory::return_t -Factory::New( v8::Local source - , v8::ScriptOrigin const& origin) { - return v8::Script::New(source, const_cast(&origin)); -} - -//=== Signature ================================================================ - -Factory::return_t -Factory::New(Factory::FTH receiver) { - return v8::Signature::New(receiver); -} - -//=== String =================================================================== - -Factory::return_t -Factory::New() { - return v8::String::Empty(); -} - -Factory::return_t -Factory::New(const char * value, int length) { - return v8::String::New(value, length); -} - -Factory::return_t -Factory::New( - std::string const& value) /* NOLINT(build/include_what_you_use) */ { - assert(value.size() <= INT_MAX && "string too long"); - return v8::String::New(value.data(), static_cast(value.size())); -} - -Factory::return_t -Factory::New(const uint16_t * value, int length) { - return v8::String::New(value, length); -} - -Factory::return_t -Factory::New(v8::String::ExternalStringResource * value) { - return v8::String::NewExternal(value); -} - -Factory::return_t -Factory::New(v8::String::ExternalAsciiStringResource * value) { - return v8::String::NewExternal(value); -} - -//=== String Object ============================================================ - -Factory::return_t -Factory::New(v8::Local value) { - return v8::StringObject::New(value).As(); -} - -} // end of namespace imp - -//=== Presistents and Handles ================================================== - -template -inline v8::Local New(v8::Handle h) { - return v8::Local::New(h); -} - -template -inline v8::Local New(v8::Persistent const& p) { - return v8::Local::New(p); -} - -template -inline v8::Local New(Persistent const& p) { - return v8::Local::New(p.persistent); -} - -template -inline v8::Local New(Global const& p) { - return v8::Local::New(p.persistent); -} - -#endif // NAN_IMPLEMENTATION_PRE_12_INL_H_ diff --git a/node_modules/nan/nan_maybe_43_inl.h b/node_modules/nan/nan_maybe_43_inl.h deleted file mode 100644 index 10eeb02..0000000 --- a/node_modules/nan/nan_maybe_43_inl.h +++ /dev/null @@ -1,337 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_MAYBE_43_INL_H_ -#define NAN_MAYBE_43_INL_H_ - -template -using MaybeLocal = v8::MaybeLocal; - -template -using Maybe = v8::Maybe; - -template -inline Maybe Nothing() { - return v8::Nothing(); -} - -template -inline Maybe Just(const T& t) { - return v8::Just(t); -} - -inline -MaybeLocal ToDetailString(v8::Local val) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(val->ToDetailString(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - -inline -MaybeLocal ToArrayIndex(v8::Local val) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(val->ToArrayIndex(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - -inline -Maybe Equals(v8::Local a, v8::Local(b)) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return a->Equals(isolate->GetCurrentContext(), b); -} - -inline -MaybeLocal NewInstance(v8::Local h) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(h->NewInstance(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - -inline -MaybeLocal NewInstance( - v8::Local h - , int argc - , v8::Local argv[]) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(h->NewInstance(isolate->GetCurrentContext(), argc, argv) - .FromMaybe(v8::Local())); -} - -inline -MaybeLocal NewInstance(v8::Local h) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(h->NewInstance(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - - -inline MaybeLocal GetFunction( - v8::Local t) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(t->GetFunction(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - -inline Maybe Set( - v8::Local obj - , v8::Local key - , v8::Local value) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->Set(isolate->GetCurrentContext(), key, value); -} - -inline Maybe Set( - v8::Local obj - , uint32_t index - , v8::Local value) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->Set(isolate->GetCurrentContext(), index, value); -} - -inline Maybe ForceSet( - v8::Local obj - , v8::Local key - , v8::Local value - , v8::PropertyAttribute attribs = v8::None) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); -} - -inline MaybeLocal Get( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(obj->Get(isolate->GetCurrentContext(), key) - .FromMaybe(v8::Local())); -} - -inline -MaybeLocal Get(v8::Local obj, uint32_t index) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(obj->Get(isolate->GetCurrentContext(), index) - .FromMaybe(v8::Local())); -} - -inline v8::PropertyAttribute GetPropertyAttributes( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->GetPropertyAttributes(isolate->GetCurrentContext(), key) - .FromJust(); -} - -inline Maybe Has( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->Has(isolate->GetCurrentContext(), key); -} - -inline Maybe Has(v8::Local obj, uint32_t index) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->Has(isolate->GetCurrentContext(), index); -} - -inline Maybe Delete( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->Delete(isolate->GetCurrentContext(), key); -} - -inline -Maybe Delete(v8::Local obj, uint32_t index) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->Delete(isolate->GetCurrentContext(), index); -} - -inline -MaybeLocal GetPropertyNames(v8::Local obj) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(obj->GetPropertyNames(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - -inline -MaybeLocal GetOwnPropertyNames(v8::Local obj) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(obj->GetOwnPropertyNames(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - -inline Maybe SetPrototype( - v8::Local obj - , v8::Local prototype) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->SetPrototype(isolate->GetCurrentContext(), prototype); -} - -inline MaybeLocal ObjectProtoToString( - v8::Local obj) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(obj->ObjectProtoToString(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - -inline Maybe HasOwnProperty( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->HasOwnProperty(isolate->GetCurrentContext(), key); -} - -inline Maybe HasRealNamedProperty( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->HasRealNamedProperty(isolate->GetCurrentContext(), key); -} - -inline Maybe HasRealIndexedProperty( - v8::Local obj - , uint32_t index) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->HasRealIndexedProperty(isolate->GetCurrentContext(), index); -} - -inline Maybe HasRealNamedCallbackProperty( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return obj->HasRealNamedCallbackProperty(isolate->GetCurrentContext(), key); -} - -inline MaybeLocal GetRealNamedPropertyInPrototypeChain( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(obj->GetRealNamedPropertyInPrototypeChain( - isolate->GetCurrentContext(), key) - .FromMaybe(v8::Local())); -} - -inline MaybeLocal GetRealNamedProperty( - v8::Local obj - , v8::Local key) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape( - obj->GetRealNamedProperty(isolate->GetCurrentContext(), key) - .FromMaybe(v8::Local())); -} - -inline MaybeLocal CallAsFunction( - v8::Local obj - , v8::Local recv - , int argc - , v8::Local argv[]) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape( - obj->CallAsFunction(isolate->GetCurrentContext(), recv, argc, argv) - .FromMaybe(v8::Local())); -} - -inline MaybeLocal CallAsConstructor( - v8::Local obj - , int argc, v8::Local argv[]) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape( - obj->CallAsConstructor(isolate->GetCurrentContext(), argc, argv) - .FromMaybe(v8::Local())); -} - -inline -MaybeLocal GetSourceLine(v8::Local msg) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(msg->GetSourceLine(isolate->GetCurrentContext()) - .FromMaybe(v8::Local())); -} - -inline Maybe GetLineNumber(v8::Local msg) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return msg->GetLineNumber(isolate->GetCurrentContext()); -} - -inline Maybe GetStartColumn(v8::Local msg) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return msg->GetStartColumn(isolate->GetCurrentContext()); -} - -inline Maybe GetEndColumn(v8::Local msg) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::HandleScope scope(isolate); - return msg->GetEndColumn(isolate->GetCurrentContext()); -} - -inline MaybeLocal CloneElementAt( - v8::Local array - , uint32_t index) { -#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION) - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - v8::Local context = isolate->GetCurrentContext(); - v8::Local elem; - v8::Local obj; - if (!array->Get(context, index).ToLocal(&elem)) { - return scope.Escape(obj); - } - if (!elem->ToObject(context).ToLocal(&obj)) { - return scope.Escape(v8::Local()); - } - return scope.Escape(obj->Clone()); -#else - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(array->CloneElementAt(isolate->GetCurrentContext(), index) - .FromMaybe(v8::Local())); -#endif -} - -inline MaybeLocal Call( - v8::Local fun - , v8::Local recv - , int argc - , v8::Local argv[]) { - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - return scope.Escape(fun->Call(isolate->GetCurrentContext(), recv, argc, argv) - .FromMaybe(v8::Local())); -} - -#endif // NAN_MAYBE_43_INL_H_ diff --git a/node_modules/nan/nan_maybe_pre_43_inl.h b/node_modules/nan/nan_maybe_pre_43_inl.h deleted file mode 100644 index d47181e..0000000 --- a/node_modules/nan/nan_maybe_pre_43_inl.h +++ /dev/null @@ -1,305 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_MAYBE_PRE_43_INL_H_ -#define NAN_MAYBE_PRE_43_INL_H_ - -template -class MaybeLocal { - public: - inline MaybeLocal() : val_(v8::Local()) {} - - template -# if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION - inline - MaybeLocal(v8::Local that) : val_(that) {} // NOLINT(runtime/explicit) -# else - inline - MaybeLocal(v8::Local that) : // NOLINT(runtime/explicit) - val_(*reinterpret_cast*>(&that)) {} -# endif - - inline bool IsEmpty() const { return val_.IsEmpty(); } - - template - inline bool ToLocal(v8::Local *out) const { - *out = val_; - return !IsEmpty(); - } - - inline v8::Local ToLocalChecked() const { -#if defined(V8_ENABLE_CHECKS) - assert(!IsEmpty() && "ToLocalChecked is Empty"); -#endif // V8_ENABLE_CHECKS - return val_; - } - - template - inline v8::Local FromMaybe(v8::Local default_value) const { - return IsEmpty() ? default_value : val_; - } - - private: - v8::Local val_; -}; - -template -class Maybe { - public: - inline bool IsNothing() const { return !has_value_; } - inline bool IsJust() const { return has_value_; } - - inline T FromJust() const { -#if defined(V8_ENABLE_CHECKS) - assert(IsJust() && "FromJust is Nothing"); -#endif // V8_ENABLE_CHECKS - return value_; - } - - inline T FromMaybe(const T& default_value) const { - return has_value_ ? value_ : default_value; - } - - inline bool operator==(const Maybe &other) const { - return (IsJust() == other.IsJust()) && - (!IsJust() || FromJust() == other.FromJust()); - } - - inline bool operator!=(const Maybe &other) const { - return !operator==(other); - } - - private: - Maybe() : has_value_(false) {} - explicit Maybe(const T& t) : has_value_(true), value_(t) {} - bool has_value_; - T value_; - - template - friend Maybe Nothing(); - template - friend Maybe Just(const U& u); -}; - -template -inline Maybe Nothing() { - return Maybe(); -} - -template -inline Maybe Just(const T& t) { - return Maybe(t); -} - -inline -MaybeLocal ToDetailString(v8::Handle val) { - return MaybeLocal(val->ToDetailString()); -} - -inline -MaybeLocal ToArrayIndex(v8::Handle val) { - return MaybeLocal(val->ToArrayIndex()); -} - -inline -Maybe Equals(v8::Handle a, v8::Handle(b)) { - return Just(a->Equals(b)); -} - -inline -MaybeLocal NewInstance(v8::Handle h) { - return MaybeLocal(h->NewInstance()); -} - -inline -MaybeLocal NewInstance( - v8::Local h - , int argc - , v8::Local argv[]) { - return MaybeLocal(h->NewInstance(argc, argv)); -} - -inline -MaybeLocal NewInstance(v8::Handle h) { - return MaybeLocal(h->NewInstance()); -} - -inline -MaybeLocal GetFunction(v8::Handle t) { - return MaybeLocal(t->GetFunction()); -} - -inline Maybe Set( - v8::Handle obj - , v8::Handle key - , v8::Handle value) { - return Just(obj->Set(key, value)); -} - -inline Maybe Set( - v8::Handle obj - , uint32_t index - , v8::Handle value) { - return Just(obj->Set(index, value)); -} - -inline Maybe ForceSet( - v8::Handle obj - , v8::Handle key - , v8::Handle value - , v8::PropertyAttribute attribs = v8::None) { - return Just(obj->ForceSet(key, value, attribs)); -} - -inline MaybeLocal Get( - v8::Handle obj - , v8::Handle key) { - return MaybeLocal(obj->Get(key)); -} - -inline MaybeLocal Get( - v8::Handle obj - , uint32_t index) { - return MaybeLocal(obj->Get(index)); -} - -inline Maybe GetPropertyAttributes( - v8::Handle obj - , v8::Handle key) { - return Just(obj->GetPropertyAttributes(key)); -} - -inline Maybe Has( - v8::Handle obj - , v8::Handle key) { - return Just(obj->Has(key)); -} - -inline Maybe Has( - v8::Handle obj - , uint32_t index) { - return Just(obj->Has(index)); -} - -inline Maybe Delete( - v8::Handle obj - , v8::Handle key) { - return Just(obj->Delete(key)); -} - -inline Maybe Delete( - v8::Handle obj - , uint32_t index) { - return Just(obj->Delete(index)); -} - -inline -MaybeLocal GetPropertyNames(v8::Handle obj) { - return MaybeLocal(obj->GetPropertyNames()); -} - -inline -MaybeLocal GetOwnPropertyNames(v8::Handle obj) { - return MaybeLocal(obj->GetOwnPropertyNames()); -} - -inline Maybe SetPrototype( - v8::Handle obj - , v8::Handle prototype) { - return Just(obj->SetPrototype(prototype)); -} - -inline MaybeLocal ObjectProtoToString( - v8::Handle obj) { - return MaybeLocal(obj->ObjectProtoToString()); -} - -inline Maybe HasOwnProperty( - v8::Handle obj - , v8::Handle key) { - return Just(obj->HasOwnProperty(key)); -} - -inline Maybe HasRealNamedProperty( - v8::Handle obj - , v8::Handle key) { - return Just(obj->HasRealNamedProperty(key)); -} - -inline Maybe HasRealIndexedProperty( - v8::Handle obj - , uint32_t index) { - return Just(obj->HasRealIndexedProperty(index)); -} - -inline Maybe HasRealNamedCallbackProperty( - v8::Handle obj - , v8::Handle key) { - return Just(obj->HasRealNamedCallbackProperty(key)); -} - -inline MaybeLocal GetRealNamedPropertyInPrototypeChain( - v8::Handle obj - , v8::Handle key) { - return MaybeLocal( - obj->GetRealNamedPropertyInPrototypeChain(key)); -} - -inline MaybeLocal GetRealNamedProperty( - v8::Handle obj - , v8::Handle key) { - return MaybeLocal(obj->GetRealNamedProperty(key)); -} - -inline MaybeLocal CallAsFunction( - v8::Handle obj - , v8::Handle recv - , int argc - , v8::Handle argv[]) { - return MaybeLocal(obj->CallAsFunction(recv, argc, argv)); -} - -inline MaybeLocal CallAsConstructor( - v8::Handle obj - , int argc - , v8::Local argv[]) { - return MaybeLocal(obj->CallAsConstructor(argc, argv)); -} - -inline -MaybeLocal GetSourceLine(v8::Handle msg) { - return MaybeLocal(msg->GetSourceLine()); -} - -inline Maybe GetLineNumber(v8::Handle msg) { - return Just(msg->GetLineNumber()); -} - -inline Maybe GetStartColumn(v8::Handle msg) { - return Just(msg->GetStartColumn()); -} - -inline Maybe GetEndColumn(v8::Handle msg) { - return Just(msg->GetEndColumn()); -} - -inline MaybeLocal CloneElementAt( - v8::Handle array - , uint32_t index) { - return MaybeLocal(array->CloneElementAt(index)); -} - -inline MaybeLocal Call( - v8::Local fun - , v8::Local recv - , int argc - , v8::Local argv[]) { - return MaybeLocal(fun->Call(recv, argc, argv)); -} - -#endif // NAN_MAYBE_PRE_43_INL_H_ diff --git a/node_modules/nan/nan_new.h b/node_modules/nan/nan_new.h deleted file mode 100644 index 628f40c..0000000 --- a/node_modules/nan/nan_new.h +++ /dev/null @@ -1,340 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_NEW_H_ -#define NAN_NEW_H_ - -namespace imp { // scnr - -// TODO(agnat): Generalize -template v8::Local To(v8::Local i); - -template <> -inline -v8::Local -To(v8::Local i) { - return Nan::To(i).ToLocalChecked(); -} - -template <> -inline -v8::Local -To(v8::Local i) { - return Nan::To(i).ToLocalChecked(); -} - -template <> -inline -v8::Local -To(v8::Local i) { - return Nan::To(i).ToLocalChecked(); -} - -template struct FactoryBase { - typedef v8::Local return_t; -}; - -template struct MaybeFactoryBase { - typedef MaybeLocal return_t; -}; - -template struct Factory; - -template <> -struct Factory : FactoryBase { - static inline return_t New(); - static inline return_t New(int length); -}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(bool value); -}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(bool value); -}; - -template <> -struct Factory : FactoryBase { - static inline - return_t - New( v8::ExtensionConfiguration* extensions = NULL - , v8::Local tmpl = v8::Local() - , v8::Local obj = v8::Local()); -}; - -template <> -struct Factory : MaybeFactoryBase { - static inline return_t New(double value); -}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(void *value); -}; - -template <> -struct Factory : FactoryBase { - static inline - return_t - New( FunctionCallback callback - , v8::Local data = v8::Local()); -}; - -template <> -struct Factory : FactoryBase { - static inline - return_t - New( FunctionCallback callback = NULL - , v8::Local data = v8::Local() - , v8::Local signature = v8::Local()); -}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(double value); -}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(double value); -}; - -template -struct IntegerFactory : FactoryBase { - typedef typename FactoryBase::return_t return_t; - static inline return_t New(int32_t value); - static inline return_t New(uint32_t value); -}; - -template <> -struct Factory : IntegerFactory {}; - -template <> -struct Factory : IntegerFactory {}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(int32_t value); - static inline return_t New(uint32_t value); -}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(); -}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(); -}; - -template <> -struct Factory : MaybeFactoryBase { - static inline return_t New( - v8::Local pattern, v8::RegExp::Flags flags); -}; - -template <> -struct Factory : MaybeFactoryBase { - static inline return_t New( v8::Local source); - static inline return_t New( v8::Local source - , v8::ScriptOrigin const& origin); -}; - -template <> -struct Factory : FactoryBase { - typedef v8::Local FTH; - static inline return_t New(FTH receiver = FTH()); -}; - -template <> -struct Factory : MaybeFactoryBase { - static inline return_t New(); - static inline return_t New(const char *value, int length = -1); - static inline return_t New(const uint16_t *value, int length = -1); - static inline return_t New(std::string const& value); - - static inline return_t New(v8::String::ExternalStringResource * value); - static inline return_t New(ExternalOneByteStringResource * value); -}; - -template <> -struct Factory : FactoryBase { - static inline return_t New(v8::Local value); -}; - -} // end of namespace imp - -#if (NODE_MODULE_VERSION >= 12) - -namespace imp { - -template <> -struct Factory : MaybeFactoryBase { - static inline return_t New( v8::Local source); - static inline return_t New( v8::Local source - , v8::ScriptOrigin const& origin); -}; - -} // end of namespace imp - -# include "nan_implementation_12_inl.h" - -#else // NODE_MODULE_VERSION >= 12 - -# include "nan_implementation_pre_12_inl.h" - -#endif - -//=== API ====================================================================== - -template -typename imp::Factory::return_t -New() { - return imp::Factory::New(); -} - -template -typename imp::Factory::return_t -New(A0 arg0) { - return imp::Factory::New(arg0); -} - -template -typename imp::Factory::return_t -New(A0 arg0, A1 arg1) { - return imp::Factory::New(arg0, arg1); -} - -template -typename imp::Factory::return_t -New(A0 arg0, A1 arg1, A2 arg2) { - return imp::Factory::New(arg0, arg1, arg2); -} - -template -typename imp::Factory::return_t -New(A0 arg0, A1 arg1, A2 arg2, A3 arg3) { - return imp::Factory::New(arg0, arg1, arg2, arg3); -} - -// Note(agnat): When passing overloaded function pointers to template functions -// as generic arguments the compiler needs help in picking the right overload. -// These two functions handle New and New with -// all argument variations. - -// v8::Function and v8::FunctionTemplate with one or two arguments -template -typename imp::Factory::return_t -New( FunctionCallback callback - , v8::Local data = v8::Local()) { - return imp::Factory::New(callback, data); -} - -// v8::Function and v8::FunctionTemplate with three arguments -template -typename imp::Factory::return_t -New( FunctionCallback callback - , v8::Local data = v8::Local() - , A2 a2 = A2()) { - return imp::Factory::New(callback, data, a2); -} - -// Convenience - -#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION -template inline v8::Local New(v8::Handle h); -#endif - -#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION -template - inline v8::Local New(v8::Persistent const& p); -#else -template inline v8::Local New(v8::Persistent const& p); -#endif -template -inline v8::Local New(Persistent const& p); -template -inline v8::Local New(Global const& p); - -inline -imp::Factory::return_t -New(bool value) { - return New(value); -} - -inline -imp::Factory::return_t -New(int32_t value) { - return New(value); -} - -inline -imp::Factory::return_t -New(uint32_t value) { - return New(value); -} - -inline -imp::Factory::return_t -New(double value) { - return New(value); -} - -inline -imp::Factory::return_t -New(std::string const& value) { // NOLINT(build/include_what_you_use) - return New(value); -} - -inline -imp::Factory::return_t -New(const char * value, int length) { - return New(value, length); -} - -inline -imp::Factory::return_t -New(const uint16_t * value, int length) { - return New(value, length); -} - -inline -imp::Factory::return_t -New(const char * value) { - return New(value); -} - -inline -imp::Factory::return_t -New(const uint16_t * value) { - return New(value); -} - -inline -imp::Factory::return_t -New(v8::String::ExternalStringResource * value) { - return New(value); -} - -inline -imp::Factory::return_t -New(ExternalOneByteStringResource * value) { - return New(value); -} - -inline -imp::Factory::return_t -New(v8::Local pattern, v8::RegExp::Flags flags) { - return New(pattern, flags); -} - -#endif // NAN_NEW_H_ diff --git a/node_modules/nan/nan_object_wrap.h b/node_modules/nan/nan_object_wrap.h deleted file mode 100644 index 28281b0..0000000 --- a/node_modules/nan/nan_object_wrap.h +++ /dev/null @@ -1,155 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_OBJECT_WRAP_H_ -#define NAN_OBJECT_WRAP_H_ - -class ObjectWrap { - public: - ObjectWrap() { - refs_ = 0; - } - - - virtual ~ObjectWrap() { - if (persistent().IsEmpty()) { - return; - } - - assert(persistent().IsNearDeath()); - persistent().ClearWeak(); - persistent().Reset(); - } - - - template - static inline T* Unwrap(v8::Local object) { - assert(!object.IsEmpty()); - assert(object->InternalFieldCount() > 0); - // Cast to ObjectWrap before casting to T. A direct cast from void - // to T won't work right when T has more than one base class. - void* ptr = GetInternalFieldPointer(object, 0); - ObjectWrap* wrap = static_cast(ptr); - return static_cast(wrap); - } - - - inline v8::Local handle() const { - return New(handle_); - } - - - inline Persistent& persistent() { - return handle_; - } - - - protected: - inline void Wrap(v8::Local object) { - assert(persistent().IsEmpty()); - assert(object->InternalFieldCount() > 0); - SetInternalFieldPointer(object, 0, this); - persistent().Reset(object); - MakeWeak(); - } - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - - inline void MakeWeak() { - persistent().v8::PersistentBase::SetWeak( - this, WeakCallback, v8::WeakCallbackType::kParameter); - persistent().MarkIndependent(); - } - -#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION - - inline void MakeWeak() { - persistent().v8::PersistentBase::SetWeak(this, WeakCallback); - persistent().MarkIndependent(); - } - -#else - - inline void MakeWeak() { - persistent().persistent.MakeWeak(this, WeakCallback); - persistent().MarkIndependent(); - } - -#endif - - /* Ref() marks the object as being attached to an event loop. - * Refed objects will not be garbage collected, even if - * all references are lost. - */ - virtual void Ref() { - assert(!persistent().IsEmpty()); - persistent().ClearWeak(); - refs_++; - } - - /* Unref() marks an object as detached from the event loop. This is its - * default state. When an object with a "weak" reference changes from - * attached to detached state it will be freed. Be careful not to access - * the object after making this call as it might be gone! - * (A "weak reference" means an object that only has a - * persistant handle.) - * - * DO NOT CALL THIS FROM DESTRUCTOR - */ - virtual void Unref() { - assert(!persistent().IsEmpty()); - assert(!persistent().IsWeak()); - assert(refs_ > 0); - if (--refs_ == 0) - MakeWeak(); - } - - int refs_; // ro - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(ObjectWrap) -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - - static void - WeakCallback(v8::WeakCallbackInfo const& info) { - ObjectWrap* wrap = info.GetParameter(); - assert(wrap->refs_ == 0); - assert(wrap->handle_.IsNearDeath()); - wrap->handle_.Reset(); - delete wrap; - } - -#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION - - static void - WeakCallback(v8::WeakCallbackData const& data) { - ObjectWrap* wrap = data.GetParameter(); - assert(wrap->refs_ == 0); - assert(wrap->handle_.IsNearDeath()); - wrap->handle_.Reset(); - delete wrap; - } - -#else - - static void WeakCallback(v8::Persistent value, void *data) { - ObjectWrap *wrap = static_cast(data); - assert(wrap->refs_ == 0); - assert(wrap->handle_.IsNearDeath()); - wrap->handle_.Reset(); - delete wrap; - } - -#endif - Persistent handle_; -}; - - -#endif // NAN_OBJECT_WRAP_H_ diff --git a/node_modules/nan/nan_persistent_12_inl.h b/node_modules/nan/nan_persistent_12_inl.h deleted file mode 100644 index a23d899..0000000 --- a/node_modules/nan/nan_persistent_12_inl.h +++ /dev/null @@ -1,132 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_PERSISTENT_12_INL_H_ -#define NAN_PERSISTENT_12_INL_H_ - -template class Persistent : - public v8::Persistent { - public: - inline Persistent() : v8::Persistent() {} - - template inline Persistent(v8::Local that) : - v8::Persistent(v8::Isolate::GetCurrent(), that) {} - - template - inline - Persistent(const v8::Persistent &that) : // NOLINT(runtime/explicit) - v8::Persistent(v8::Isolate::GetCurrent(), that) {} - - inline void Reset() { v8::PersistentBase::Reset(); } - - template - inline void Reset(const v8::Local &other) { - v8::PersistentBase::Reset(v8::Isolate::GetCurrent(), other); - } - - template - inline void Reset(const v8::PersistentBase &other) { - v8::PersistentBase::Reset(v8::Isolate::GetCurrent(), other); - } - - template - inline void SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type); - - private: - inline T *operator*() const { return *PersistentBase::persistent; } - - template - inline void Copy(const Persistent &that) { - TYPE_CHECK(T, S); - - this->Reset(); - - if (!that.IsEmpty()) { - this->Reset(that); - M::Copy(that, this); - } - } -}; - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -template -class Global : public v8::Global { - public: - inline Global() : v8::Global() {} - - template inline Global(v8::Local that) : - v8::Global(v8::Isolate::GetCurrent(), that) {} - - template - inline - Global(const v8::PersistentBase &that) : // NOLINT(runtime/explicit) - v8::Global(v8::Isolate::GetCurrent(), that) {} - - inline void Reset() { v8::PersistentBase::Reset(); } - - template - inline void Reset(const v8::Local &other) { - v8::PersistentBase::Reset(v8::Isolate::GetCurrent(), other); - } - - template - inline void Reset(const v8::PersistentBase &other) { - v8::PersistentBase::Reset(v8::Isolate::GetCurrent(), other); - } - - template - inline void SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type) { - reinterpret_cast*>(this)->SetWeak( - parameter, callback, type); - } -}; -#else -template -class Global : public v8::UniquePersistent { - public: - inline Global() : v8::UniquePersistent() {} - - template inline Global(v8::Local that) : - v8::UniquePersistent(v8::Isolate::GetCurrent(), that) {} - - template - inline - Global(const v8::PersistentBase &that) : // NOLINT(runtime/explicit) - v8::UniquePersistent(v8::Isolate::GetCurrent(), that) {} - - inline void Reset() { v8::PersistentBase::Reset(); } - - template - inline void Reset(const v8::Local &other) { - v8::PersistentBase::Reset(v8::Isolate::GetCurrent(), other); - } - - template - inline void Reset(const v8::PersistentBase &other) { - v8::PersistentBase::Reset(v8::Isolate::GetCurrent(), other); - } - - template - inline void SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type) { - reinterpret_cast*>(this)->SetWeak( - parameter, callback, type); - } -}; -#endif - -#endif // NAN_PERSISTENT_12_INL_H_ diff --git a/node_modules/nan/nan_persistent_pre_12_inl.h b/node_modules/nan/nan_persistent_pre_12_inl.h deleted file mode 100644 index f915746..0000000 --- a/node_modules/nan/nan_persistent_pre_12_inl.h +++ /dev/null @@ -1,242 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_PERSISTENT_PRE_12_INL_H_ -#define NAN_PERSISTENT_PRE_12_INL_H_ - -template -class PersistentBase { - v8::Persistent persistent; - template - friend v8::Local New(const PersistentBase &p); - template - friend v8::Local New(const Persistent &p); - template - friend v8::Local New(const Global &p); - template friend class ReturnValue; - - public: - inline PersistentBase() : - persistent() {} - - inline void Reset() { - persistent.Dispose(); - persistent.Clear(); - } - - template - inline void Reset(const v8::Local &other) { - TYPE_CHECK(T, S); - - if (!persistent.IsEmpty()) { - persistent.Dispose(); - } - - if (other.IsEmpty()) { - persistent.Clear(); - } else { - persistent = v8::Persistent::New(other); - } - } - - template - inline void Reset(const PersistentBase &other) { - TYPE_CHECK(T, S); - - if (!persistent.IsEmpty()) { - persistent.Dispose(); - } - - if (other.IsEmpty()) { - persistent.Clear(); - } else { - persistent = v8::Persistent::New(other.persistent); - } - } - - inline bool IsEmpty() const { return persistent.IsEmpty(); } - - inline void Empty() { persistent.Clear(); } - - template - inline bool operator==(const PersistentBase &that) const { - return this->persistent == that.persistent; - } - - template - inline bool operator==(const v8::Local &that) const { - return this->persistent == that; - } - - template - inline bool operator!=(const PersistentBase &that) const { - return !operator==(that); - } - - template - inline bool operator!=(const v8::Local &that) const { - return !operator==(that); - } - - template - inline void SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type); - - inline void ClearWeak() { persistent.ClearWeak(); } - - inline void MarkIndependent() { persistent.MarkIndependent(); } - - inline bool IsIndependent() const { return persistent.IsIndependent(); } - - inline bool IsNearDeath() const { return persistent.IsNearDeath(); } - - inline bool IsWeak() const { return persistent.IsWeak(); } - - private: - inline explicit PersistentBase(v8::Persistent that) : - persistent(that) { } - inline explicit PersistentBase(T *val) : persistent(val) {} - template friend class Persistent; - template friend class Global; - friend class ObjectWrap; -}; - -template -class NonCopyablePersistentTraits { - public: - typedef Persistent > - NonCopyablePersistent; - static const bool kResetInDestructor = false; - template - inline static void Copy(const Persistent &source, - NonCopyablePersistent *dest) { - Uncompilable(); - } - - template inline static void Uncompilable() { - TYPE_CHECK(O, v8::Primitive); - } -}; - -template -struct CopyablePersistentTraits { - typedef Persistent > CopyablePersistent; - static const bool kResetInDestructor = true; - template - static inline void Copy(const Persistent &source, - CopyablePersistent *dest) {} -}; - -template class Persistent : - public PersistentBase { - public: - inline Persistent() {} - - template inline Persistent(v8::Handle that) - : PersistentBase(v8::Persistent::New(that)) { - TYPE_CHECK(T, S); - } - - inline Persistent(const Persistent &that) : PersistentBase() { - Copy(that); - } - - template - inline Persistent(const Persistent &that) : - PersistentBase() { - Copy(that); - } - - inline Persistent &operator=(const Persistent &that) { - Copy(that); - return *this; - } - - template - inline Persistent &operator=(const Persistent &that) { - Copy(that); - return *this; - } - - inline ~Persistent() { - if (M::kResetInDestructor) this->Reset(); - } - - private: - inline T *operator*() const { return *PersistentBase::persistent; } - - template - inline void Copy(const Persistent &that) { - TYPE_CHECK(T, S); - - this->Reset(); - - if (!that.IsEmpty()) { - this->persistent = v8::Persistent::New(that.persistent); - M::Copy(that, this); - } - } -}; - -template -class Global : public PersistentBase { - struct RValue { - inline explicit RValue(Global* obj) : object(obj) {} - Global* object; - }; - - public: - inline Global() : PersistentBase(0) { } - - template - inline Global(v8::Local that) // NOLINT(runtime/explicit) - : PersistentBase(v8::Persistent::New(that)) { - TYPE_CHECK(T, S); - } - - template - inline Global(const PersistentBase &that) // NOLINT(runtime/explicit) - : PersistentBase(that) { - TYPE_CHECK(T, S); - } - /** - * Move constructor. - */ - inline Global(RValue rvalue) // NOLINT(runtime/explicit) - : PersistentBase(rvalue.object->persistent) { - rvalue.object->Reset(); - } - inline ~Global() { this->Reset(); } - /** - * Move via assignment. - */ - template - inline Global &operator=(Global rhs) { - TYPE_CHECK(T, S); - this->Reset(rhs.persistent); - rhs.Reset(); - return *this; - } - /** - * Cast operator for moves. - */ - inline operator RValue() { return RValue(this); } - /** - * Pass allows returning uniques from functions, etc. - */ - Global Pass() { return Global(RValue(this)); } - - private: - Global(Global &); - void operator=(Global &); - template friend class ReturnValue; -}; - -#endif // NAN_PERSISTENT_PRE_12_INL_H_ diff --git a/node_modules/nan/nan_private.h b/node_modules/nan/nan_private.h deleted file mode 100644 index 03082cd..0000000 --- a/node_modules/nan/nan_private.h +++ /dev/null @@ -1,73 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_PRIVATE_H_ -#define NAN_PRIVATE_H_ - -inline Maybe -HasPrivate(v8::Local object, v8::Local key) { - HandleScope scope; -#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::Local context = isolate->GetCurrentContext(); - v8::Local private_key = v8::Private::ForApi(isolate, key); - return object->HasPrivate(context, private_key); -#else - return Just(!object->GetHiddenValue(key).IsEmpty()); -#endif -} - -inline MaybeLocal -GetPrivate(v8::Local object, v8::Local key) { -#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::EscapableHandleScope scope(isolate); - v8::Local context = isolate->GetCurrentContext(); - v8::Local private_key = v8::Private::ForApi(isolate, key); - v8::MaybeLocal v = object->GetPrivate(context, private_key); - return scope.Escape(v.ToLocalChecked()); -#else - EscapableHandleScope scope; - v8::Local v = object->GetHiddenValue(key); - if (v.IsEmpty()) { - v = Undefined(); - } - return scope.Escape(v); -#endif -} - -inline Maybe SetPrivate( - v8::Local object, - v8::Local key, - v8::Local value) { -#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION - HandleScope scope; - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::Local context = isolate->GetCurrentContext(); - v8::Local private_key = v8::Private::ForApi(isolate, key); - return object->SetPrivate(context, private_key, value); -#else - return Just(object->SetHiddenValue(key, value)); -#endif -} - -inline Maybe DeletePrivate( - v8::Local object, - v8::Local key) { -#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION - HandleScope scope; - v8::Isolate *isolate = v8::Isolate::GetCurrent(); - v8::Local private_key = v8::Private::ForApi(isolate, key); - return object->DeletePrivate(isolate->GetCurrentContext(), private_key); -#else - return Just(object->DeleteHiddenValue(key)); -#endif -} - -#endif // NAN_PRIVATE_H_ - diff --git a/node_modules/nan/nan_string_bytes.h b/node_modules/nan/nan_string_bytes.h deleted file mode 100644 index a2e6437..0000000 --- a/node_modules/nan/nan_string_bytes.h +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - -#ifndef NAN_STRING_BYTES_H_ -#define NAN_STRING_BYTES_H_ - -// Decodes a v8::Local or Buffer to a raw char* - -namespace imp { - -using v8::Local; -using v8::Object; -using v8::String; -using v8::Value; - - -//// Base 64 //// - -#define base64_encoded_size(size) ((size + 2 - ((size + 2) % 3)) / 3 * 4) - - - -//// HEX //// - -static bool contains_non_ascii_slow(const char* buf, size_t len) { - for (size_t i = 0; i < len; ++i) { - if (buf[i] & 0x80) return true; - } - return false; -} - - -static bool contains_non_ascii(const char* src, size_t len) { - if (len < 16) { - return contains_non_ascii_slow(src, len); - } - - const unsigned bytes_per_word = sizeof(void*); - const unsigned align_mask = bytes_per_word - 1; - const unsigned unaligned = reinterpret_cast(src) & align_mask; - - if (unaligned > 0) { - const unsigned n = bytes_per_word - unaligned; - if (contains_non_ascii_slow(src, n)) return true; - src += n; - len -= n; - } - - -#if defined(__x86_64__) || defined(_WIN64) - const uintptr_t mask = 0x8080808080808080ll; -#else - const uintptr_t mask = 0x80808080l; -#endif - - const uintptr_t* srcw = reinterpret_cast(src); - - for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) { - if (srcw[i] & mask) return true; - } - - const unsigned remainder = len & align_mask; - if (remainder > 0) { - const size_t offset = len - remainder; - if (contains_non_ascii_slow(src + offset, remainder)) return true; - } - - return false; -} - - -static void force_ascii_slow(const char* src, char* dst, size_t len) { - for (size_t i = 0; i < len; ++i) { - dst[i] = src[i] & 0x7f; - } -} - - -static void force_ascii(const char* src, char* dst, size_t len) { - if (len < 16) { - force_ascii_slow(src, dst, len); - return; - } - - const unsigned bytes_per_word = sizeof(void*); - const unsigned align_mask = bytes_per_word - 1; - const unsigned src_unalign = reinterpret_cast(src) & align_mask; - const unsigned dst_unalign = reinterpret_cast(dst) & align_mask; - - if (src_unalign > 0) { - if (src_unalign == dst_unalign) { - const unsigned unalign = bytes_per_word - src_unalign; - force_ascii_slow(src, dst, unalign); - src += unalign; - dst += unalign; - len -= src_unalign; - } else { - force_ascii_slow(src, dst, len); - return; - } - } - -#if defined(__x86_64__) || defined(_WIN64) - const uintptr_t mask = ~0x8080808080808080ll; -#else - const uintptr_t mask = ~0x80808080l; -#endif - - const uintptr_t* srcw = reinterpret_cast(src); - uintptr_t* dstw = reinterpret_cast(dst); - - for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) { - dstw[i] = srcw[i] & mask; - } - - const unsigned remainder = len & align_mask; - if (remainder > 0) { - const size_t offset = len - remainder; - force_ascii_slow(src + offset, dst + offset, remainder); - } -} - - -static size_t base64_encode(const char* src, - size_t slen, - char* dst, - size_t dlen) { - // We know how much we'll write, just make sure that there's space. - assert(dlen >= base64_encoded_size(slen) && - "not enough space provided for base64 encode"); - - dlen = base64_encoded_size(slen); - - unsigned a; - unsigned b; - unsigned c; - unsigned i; - unsigned k; - unsigned n; - - static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "abcdefghijklmnopqrstuvwxyz" - "0123456789+/"; - - i = 0; - k = 0; - n = slen / 3 * 3; - - while (i < n) { - a = src[i + 0] & 0xff; - b = src[i + 1] & 0xff; - c = src[i + 2] & 0xff; - - dst[k + 0] = table[a >> 2]; - dst[k + 1] = table[((a & 3) << 4) | (b >> 4)]; - dst[k + 2] = table[((b & 0x0f) << 2) | (c >> 6)]; - dst[k + 3] = table[c & 0x3f]; - - i += 3; - k += 4; - } - - if (n != slen) { - switch (slen - n) { - case 1: - a = src[i + 0] & 0xff; - dst[k + 0] = table[a >> 2]; - dst[k + 1] = table[(a & 3) << 4]; - dst[k + 2] = '='; - dst[k + 3] = '='; - break; - - case 2: - a = src[i + 0] & 0xff; - b = src[i + 1] & 0xff; - dst[k + 0] = table[a >> 2]; - dst[k + 1] = table[((a & 3) << 4) | (b >> 4)]; - dst[k + 2] = table[(b & 0x0f) << 2]; - dst[k + 3] = '='; - break; - } - } - - return dlen; -} - - -static size_t hex_encode(const char* src, size_t slen, char* dst, size_t dlen) { - // We know how much we'll write, just make sure that there's space. - assert(dlen >= slen * 2 && - "not enough space provided for hex encode"); - - dlen = slen * 2; - for (uint32_t i = 0, k = 0; k < dlen; i += 1, k += 2) { - static const char hex[] = "0123456789abcdef"; - uint8_t val = static_cast(src[i]); - dst[k + 0] = hex[val >> 4]; - dst[k + 1] = hex[val & 15]; - } - - return dlen; -} - - - -static Local Encode(const char* buf, - size_t buflen, - enum Encoding encoding) { - assert(buflen <= node::Buffer::kMaxLength); - if (!buflen && encoding != BUFFER) - return New("").ToLocalChecked(); - - Local val; - switch (encoding) { - case BUFFER: - return CopyBuffer(buf, buflen).ToLocalChecked(); - - case ASCII: - if (contains_non_ascii(buf, buflen)) { - char* out = new char[buflen]; - force_ascii(buf, out, buflen); - val = New(out, buflen).ToLocalChecked(); - delete[] out; - } else { - val = New(buf, buflen).ToLocalChecked(); - } - break; - - case UTF8: - val = New(buf, buflen).ToLocalChecked(); - break; - - case BINARY: { - // TODO(isaacs) use ExternalTwoByteString? - const unsigned char *cbuf = reinterpret_cast(buf); - uint16_t * twobytebuf = new uint16_t[buflen]; - for (size_t i = 0; i < buflen; i++) { - // XXX is the following line platform independent? - twobytebuf[i] = cbuf[i]; - } - val = New(twobytebuf, buflen).ToLocalChecked(); - delete[] twobytebuf; - break; - } - - case BASE64: { - size_t dlen = base64_encoded_size(buflen); - char* dst = new char[dlen]; - - size_t written = base64_encode(buf, buflen, dst, dlen); - assert(written == dlen); - - val = New(dst, dlen).ToLocalChecked(); - delete[] dst; - break; - } - - case UCS2: { - const uint16_t* data = reinterpret_cast(buf); - val = New(data, buflen / 2).ToLocalChecked(); - break; - } - - case HEX: { - size_t dlen = buflen * 2; - char* dst = new char[dlen]; - size_t written = hex_encode(buf, buflen, dst, dlen); - assert(written == dlen); - - val = New(dst, dlen).ToLocalChecked(); - delete[] dst; - break; - } - - default: - assert(0 && "unknown encoding"); - break; - } - - return val; -} - -#undef base64_encoded_size - -} // end of namespace imp - -#endif // NAN_STRING_BYTES_H_ diff --git a/node_modules/nan/nan_typedarray_contents.h b/node_modules/nan/nan_typedarray_contents.h deleted file mode 100644 index 17c9681..0000000 --- a/node_modules/nan/nan_typedarray_contents.h +++ /dev/null @@ -1,90 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_TYPEDARRAY_CONTENTS_H_ -#define NAN_TYPEDARRAY_CONTENTS_H_ - -template -class TypedArrayContents { - public: - inline explicit TypedArrayContents(v8::Local from) : - length_(0), data_(NULL) { - HandleScope scope; - - size_t length = 0; - void* data = NULL; - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - - if (from->IsArrayBufferView()) { - v8::Local array = - v8::Local::Cast(from); - - const size_t byte_length = array->ByteLength(); - const ptrdiff_t byte_offset = array->ByteOffset(); - v8::Local buffer = array->Buffer(); - - length = byte_length / sizeof(T); - data = static_cast(buffer->GetContents().Data()) + byte_offset; - } - -#else - - if (from->IsObject() && !from->IsNull()) { - v8::Local array = v8::Local::Cast(from); - - MaybeLocal buffer = Get(array, - New("buffer").ToLocalChecked()); - MaybeLocal byte_length = Get(array, - New("byteLength").ToLocalChecked()); - MaybeLocal byte_offset = Get(array, - New("byteOffset").ToLocalChecked()); - - if (!buffer.IsEmpty() && - !byte_length.IsEmpty() && byte_length.ToLocalChecked()->IsUint32() && - !byte_offset.IsEmpty() && byte_offset.ToLocalChecked()->IsUint32()) { - data = array->GetIndexedPropertiesExternalArrayData(); - if(data) { - length = byte_length.ToLocalChecked()->Uint32Value() / sizeof(T); - } - } - } - -#endif - -#if defined(_MSC_VER) && _MSC_VER >= 1900 || __cplusplus >= 201103L - assert(reinterpret_cast(data) % alignof (T) == 0); -#elif defined(_MSC_VER) && _MSC_VER >= 1600 || defined(__GNUC__) - assert(reinterpret_cast(data) % __alignof(T) == 0); -#else - assert(reinterpret_cast(data) % sizeof (T) == 0); -#endif - - length_ = length; - data_ = static_cast(data); - } - - inline size_t length() const { return length_; } - inline T* operator*() { return data_; } - inline const T* operator*() const { return data_; } - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(TypedArrayContents) - - //Disable heap allocation - void *operator new(size_t size); - void operator delete(void *, size_t) { - abort(); - } - - size_t length_; - T* data_; -}; - -#endif // NAN_TYPEDARRAY_CONTENTS_H_ diff --git a/node_modules/nan/nan_weak.h b/node_modules/nan/nan_weak.h deleted file mode 100644 index 3f2d569..0000000 --- a/node_modules/nan/nan_weak.h +++ /dev/null @@ -1,432 +0,0 @@ -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -#ifndef NAN_WEAK_H_ -#define NAN_WEAK_H_ - -static const int kInternalFieldsInWeakCallback = 2; -static const int kNoInternalFieldIndex = -1; - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \ - v8::WeakCallbackInfo > const& -# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \ - NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ -# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ -# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ -#elif NODE_MODULE_VERSION > IOJS_1_1_MODULE_VERSION -# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \ - v8::PhantomCallbackData > const& -# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \ - NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ -# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ -# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ -#elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION -# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \ - v8::PhantomCallbackData > const& -# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \ - v8::InternalFieldsCallbackData, void> const& -# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ -# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ -#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION -# define NAN_WEAK_CALLBACK_DATA_TYPE_ \ - v8::WeakCallbackData > const& -# define NAN_WEAK_CALLBACK_SIG_ NAN_WEAK_CALLBACK_DATA_TYPE_ -#else -# define NAN_WEAK_CALLBACK_DATA_TYPE_ void * -# define NAN_WEAK_CALLBACK_SIG_ \ - v8::Persistent, NAN_WEAK_CALLBACK_DATA_TYPE_ -#endif - -template -class WeakCallbackInfo { - public: - typedef void (*Callback)(const WeakCallbackInfo& data); - WeakCallbackInfo( - Persistent *persistent - , Callback callback - , void *parameter - , void *field1 = 0 - , void *field2 = 0) : - callback_(callback), isolate_(0), parameter_(parameter) { - std::memcpy(&persistent_, persistent, sizeof (v8::Persistent)); - internal_fields_[0] = field1; - internal_fields_[1] = field2; - } - inline v8::Isolate *GetIsolate() const { return isolate_; } - inline T *GetParameter() const { return static_cast(parameter_); } - inline void *GetInternalField(int index) const { - assert((index == 0 || index == 1) && "internal field index out of bounds"); - if (index == 0) { - return internal_fields_[0]; - } else { - return internal_fields_[1]; - } - } - - private: - NAN_DISALLOW_ASSIGN_COPY_MOVE(WeakCallbackInfo) - Callback callback_; - v8::Isolate *isolate_; - void *parameter_; - void *internal_fields_[kInternalFieldsInWeakCallback]; - v8::Persistent persistent_; - template friend class Persistent; - template friend class PersistentBase; -#if NODE_MODULE_VERSION <= NODE_0_12_MODULE_VERSION -# if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION - template - static void invoke(NAN_WEAK_CALLBACK_SIG_ data); - template - static WeakCallbackInfo *unwrap(NAN_WEAK_CALLBACK_DATA_TYPE_ data); -# else - static void invoke(NAN_WEAK_CALLBACK_SIG_ data); - static WeakCallbackInfo *unwrap(NAN_WEAK_CALLBACK_DATA_TYPE_ data); -# endif -#else -# if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - template - static void invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data); - template - static void invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data); -# else - static void invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data); - static void invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data); -# endif - static WeakCallbackInfo *unwrapparameter( - NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data); - static WeakCallbackInfo *unwraptwofield( - NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data); -#endif -}; - - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) - -template -template -void -WeakCallbackInfo::invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data) { - WeakCallbackInfo *cbinfo = unwrapparameter(data); - if (isFirstPass) { - cbinfo->persistent_.Reset(); - data.SetSecondPassCallback(invokeparameter); - } else { - cbinfo->callback_(*cbinfo); - delete cbinfo; - } -} - -template -template -void -WeakCallbackInfo::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) { - WeakCallbackInfo *cbinfo = unwraptwofield(data); - if (isFirstPass) { - cbinfo->persistent_.Reset(); - data.SetSecondPassCallback(invoketwofield); - } else { - cbinfo->callback_(*cbinfo); - delete cbinfo; - } -} - -template -WeakCallbackInfo *WeakCallbackInfo::unwrapparameter( - NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data) { - WeakCallbackInfo *cbinfo = - static_cast*>(data.GetParameter()); - cbinfo->isolate_ = data.GetIsolate(); - return cbinfo; -} - -template -WeakCallbackInfo *WeakCallbackInfo::unwraptwofield( - NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) { - WeakCallbackInfo *cbinfo = - static_cast*>(data.GetInternalField(0)); - cbinfo->isolate_ = data.GetIsolate(); - return cbinfo; -} - -#undef NAN_WEAK_PARAMETER_CALLBACK_SIG_ -#undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_ -#undef NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ -#undef NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ -# elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION - -template -void -WeakCallbackInfo::invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data) { - WeakCallbackInfo *cbinfo = unwrapparameter(data); - cbinfo->persistent_.Reset(); - cbinfo->callback_(*cbinfo); - delete cbinfo; -} - -template -void -WeakCallbackInfo::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) { - WeakCallbackInfo *cbinfo = unwraptwofield(data); - cbinfo->persistent_.Reset(); - cbinfo->callback_(*cbinfo); - delete cbinfo; -} - -template -WeakCallbackInfo *WeakCallbackInfo::unwrapparameter( - NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data) { - WeakCallbackInfo *cbinfo = - static_cast*>(data.GetParameter()); - cbinfo->isolate_ = data.GetIsolate(); - return cbinfo; -} - -template -WeakCallbackInfo *WeakCallbackInfo::unwraptwofield( - NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) { - WeakCallbackInfo *cbinfo = - static_cast*>(data.GetInternalField1()); - cbinfo->isolate_ = data.GetIsolate(); - return cbinfo; -} - -#undef NAN_WEAK_PARAMETER_CALLBACK_SIG_ -#undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_ -#undef NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ -#undef NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ -#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION - -template -template -void WeakCallbackInfo::invoke(NAN_WEAK_CALLBACK_SIG_ data) { - WeakCallbackInfo *cbinfo = unwrap(data); - cbinfo->persistent_.Reset(); - cbinfo->callback_(*cbinfo); - delete cbinfo; -} - -template -template -WeakCallbackInfo *WeakCallbackInfo::unwrap( - NAN_WEAK_CALLBACK_DATA_TYPE_ data) { - void *parameter = data.GetParameter(); - WeakCallbackInfo *cbinfo = - static_cast*>(parameter); - cbinfo->isolate_ = data.GetIsolate(); - return cbinfo; -} - -#undef NAN_WEAK_CALLBACK_SIG_ -#undef NAN_WEAK_CALLBACK_DATA_TYPE_ -#else - -template -void WeakCallbackInfo::invoke(NAN_WEAK_CALLBACK_SIG_ data) { - WeakCallbackInfo *cbinfo = unwrap(data); - cbinfo->persistent_.Dispose(); - cbinfo->persistent_.Clear(); - cbinfo->callback_(*cbinfo); - delete cbinfo; -} - -template -WeakCallbackInfo *WeakCallbackInfo::unwrap( - NAN_WEAK_CALLBACK_DATA_TYPE_ data) { - WeakCallbackInfo *cbinfo = - static_cast*>(data); - cbinfo->isolate_ = v8::Isolate::GetCurrent(); - return cbinfo; -} - -#undef NAN_WEAK_CALLBACK_SIG_ -#undef NAN_WEAK_CALLBACK_DATA_TYPE_ -#endif - -#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \ - (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3)) -template -template -inline void Persistent::SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type) { - WeakCallbackInfo

    *wcbd; - if (type == WeakCallbackType::kParameter) { - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , parameter); - v8::PersistentBase::SetWeak( - wcbd - , WeakCallbackInfo

    ::template invokeparameter - , type); - } else { - v8::Local* self = reinterpret_cast*>(this); - assert((*self)->IsObject()); - int count = (*self)->InternalFieldCount(); - void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0}; - for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) { - internal_fields[i] = (*self)->GetAlignedPointerFromInternalField(i); - } - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , 0 - , internal_fields[0] - , internal_fields[1]); - (*self)->SetAlignedPointerInInternalField(0, wcbd); - v8::PersistentBase::SetWeak( - static_cast*>(0) - , WeakCallbackInfo

    ::template invoketwofield - , type); - } -} -#elif NODE_MODULE_VERSION > IOJS_1_1_MODULE_VERSION -template -template -inline void Persistent::SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type) { - WeakCallbackInfo

    *wcbd; - if (type == WeakCallbackType::kParameter) { - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , parameter); - v8::PersistentBase::SetPhantom( - wcbd - , WeakCallbackInfo

    ::invokeparameter); - } else { - v8::Local* self = reinterpret_cast*>(this); - assert((*self)->IsObject()); - int count = (*self)->InternalFieldCount(); - void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0}; - for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) { - internal_fields[i] = (*self)->GetAlignedPointerFromInternalField(i); - } - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , 0 - , internal_fields[0] - , internal_fields[1]); - (*self)->SetAlignedPointerInInternalField(0, wcbd); - v8::PersistentBase::SetPhantom( - static_cast*>(0) - , WeakCallbackInfo

    ::invoketwofield - , 0 - , count > 1 ? 1 : kNoInternalFieldIndex); - } -} -#elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION -template -template -inline void Persistent::SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type) { - WeakCallbackInfo

    *wcbd; - if (type == WeakCallbackType::kParameter) { - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , parameter); - v8::PersistentBase::SetPhantom( - wcbd - , WeakCallbackInfo

    ::invokeparameter); - } else { - v8::Local* self = reinterpret_cast*>(this); - assert((*self)->IsObject()); - int count = (*self)->InternalFieldCount(); - void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0}; - for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) { - internal_fields[i] = (*self)->GetAlignedPointerFromInternalField(i); - } - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , 0 - , internal_fields[0] - , internal_fields[1]); - (*self)->SetAlignedPointerInInternalField(0, wcbd); - v8::PersistentBase::SetPhantom( - WeakCallbackInfo

    ::invoketwofield - , 0 - , count > 1 ? 1 : kNoInternalFieldIndex); - } -} -#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION -template -template -inline void Persistent::SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type) { - WeakCallbackInfo

    *wcbd; - if (type == WeakCallbackType::kParameter) { - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , parameter); - v8::PersistentBase::SetWeak(wcbd, WeakCallbackInfo

    ::invoke); - } else { - v8::Local* self = reinterpret_cast*>(this); - assert((*self)->IsObject()); - int count = (*self)->InternalFieldCount(); - void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0}; - for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) { - internal_fields[i] = (*self)->GetAlignedPointerFromInternalField(i); - } - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , 0 - , internal_fields[0] - , internal_fields[1]); - v8::PersistentBase::SetWeak(wcbd, WeakCallbackInfo

    ::invoke); - } -} -#else -template -template -inline void PersistentBase::SetWeak( - P *parameter - , typename WeakCallbackInfo

    ::Callback callback - , WeakCallbackType type) { - WeakCallbackInfo

    *wcbd; - if (type == WeakCallbackType::kParameter) { - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , parameter); - persistent.MakeWeak(wcbd, WeakCallbackInfo

    ::invoke); - } else { - v8::Local* self = reinterpret_cast*>(this); - assert((*self)->IsObject()); - int count = (*self)->InternalFieldCount(); - void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0}; - for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) { - internal_fields[i] = (*self)->GetPointerFromInternalField(i); - } - wcbd = new WeakCallbackInfo

    ( - reinterpret_cast*>(this) - , callback - , 0 - , internal_fields[0] - , internal_fields[1]); - persistent.MakeWeak(wcbd, WeakCallbackInfo

    ::invoke); - } -} -#endif - -#endif // NAN_WEAK_H_ diff --git a/node_modules/nan/package.json b/node_modules/nan/package.json deleted file mode 100644 index 11bf22c..0000000 --- a/node_modules/nan/package.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "nan@^2.3.0", - "scope": null, - "escapedName": "nan", - "name": "nan", - "rawSpec": "^2.3.0", - "spec": ">=2.3.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/fsevents" - ] - ], - "_from": "nan@>=2.3.0 <3.0.0", - "_id": "nan@2.5.1", - "_inCache": true, - "_location": "/nan", - "_nodeVersion": "7.4.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/nan-2.5.1.tgz_1485124061146_0.7941144248470664" - }, - "_npmUser": { - "name": "kkoopa", - "email": "bbyholm@abo.fi" - }, - "_npmVersion": "4.0.5", - "_phantomChildren": {}, - "_requested": { - "raw": "nan@^2.3.0", - "scope": null, - "escapedName": "nan", - "name": "nan", - "rawSpec": "^2.3.0", - "spec": ">=2.3.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/fsevents" - ], - "_resolved": "https://registry.npmjs.org/nan/-/nan-2.5.1.tgz", - "_shasum": "d5b01691253326a97a2bbee9e61c55d8d60351e2", - "_shrinkwrap": null, - "_spec": "nan@^2.3.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/fsevents", - "bugs": { - "url": "https://github.com/nodejs/nan/issues" - }, - "contributors": [ - { - "name": "Rod Vagg", - "email": "r@va.gg", - "url": "https://github.com/rvagg" - }, - { - "name": "Benjamin Byholm", - "email": "bbyholm@abo.fi", - "url": "https://github.com/kkoopa/" - }, - { - "name": "Trevor Norris", - "email": "trev.norris@gmail.com", - "url": "https://github.com/trevnorris" - }, - { - "name": "Nathan Rajlich", - "email": "nathan@tootallnate.net", - "url": "https://github.com/TooTallNate" - }, - { - "name": "Brett Lawson", - "email": "brett19@gmail.com", - "url": "https://github.com/brett19" - }, - { - "name": "Ben Noordhuis", - "email": "info@bnoordhuis.nl", - "url": "https://github.com/bnoordhuis" - }, - { - "name": "David Siegel", - "email": "david@artcom.de", - "url": "https://github.com/agnat" - } - ], - "dependencies": {}, - "description": "Native Abstractions for Node.js: C++ header for Node 0.8 -> 7 compatibility", - "devDependencies": { - "bindings": "~1.2.1", - "commander": "^2.8.1", - "glob": "^5.0.14", - "node-gyp": "~3.0.1", - "readable-stream": "^2.1.4", - "tap": "~0.7.1", - "xtend": "~4.0.0" - }, - "directories": {}, - "dist": { - "shasum": "d5b01691253326a97a2bbee9e61c55d8d60351e2", - "tarball": "https://registry.npmjs.org/nan/-/nan-2.5.1.tgz" - }, - "homepage": "https://github.com/nodejs/nan#readme", - "license": "MIT", - "main": "include_dirs.js", - "maintainers": [ - { - "name": "rvagg", - "email": "rod@vagg.org" - }, - { - "name": "kkoopa", - "email": "bbyholm@abo.fi" - } - ], - "name": "nan", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/nodejs/nan.git" - }, - "scripts": { - "docs": "doc/.build.sh", - "rebuild-tests": "node-gyp rebuild --msvs_version=2013 --directory test", - "test": "tap --gc --stderr test/js/*-test.js" - }, - "version": "2.5.1" -} diff --git a/node_modules/nan/tools/1to2.js b/node_modules/nan/tools/1to2.js deleted file mode 100755 index 1e86be7..0000000 --- a/node_modules/nan/tools/1to2.js +++ /dev/null @@ -1,412 +0,0 @@ -#!/usr/bin/env node -/********************************************************************* - * NAN - Native Abstractions for Node.js - * - * Copyright (c) 2017 NAN contributors - * - * MIT License - ********************************************************************/ - -var commander = require('commander'), - fs = require('fs'), - glob = require('glob'), - groups = [], - total = 0, - warning1 = '/* ERROR: Rewrite using Buffer */\n', - warning2 = '\\/\\* ERROR\\: Rewrite using Buffer \\*\\/\\n', - length, - i; - -fs.readFile(__dirname + '/package.json', 'utf8', function (err, data) { - if (err) { - throw err; - } - - commander - .version(JSON.parse(data).version) - .usage('[options] ') - .parse(process.argv); - - if (!process.argv.slice(2).length) { - commander.outputHelp(); - } -}); - -/* construct strings representing regular expressions - each expression contains a unique group allowing for identification of the match - the index of this key group, relative to the regular expression in question, - is indicated by the first array member */ - -/* simple substistutions, key group is the entire match, 0 */ -groups.push([0, [ - '_NAN_', - 'NODE_SET_METHOD', - 'NODE_SET_PROTOTYPE_METHOD', - 'NanAsciiString', - 'NanEscapeScope', - 'NanReturnValue', - 'NanUcs2String'].join('|')]); - -/* substitutions of parameterless macros, key group is 1 */ -groups.push([1, ['(', [ - 'NanEscapableScope', - 'NanReturnNull', - 'NanReturnUndefined', - 'NanScope'].join('|'), ')\\(\\)'].join('')]); - -/* replace TryCatch with NanTryCatch once, gobbling possible namespace, key group 2 */ -groups.push([2, '(?:(?:v8\\:\\:)?|(Nan)?)(TryCatch)']); - -/* NanNew("string") will likely not fail a ToLocalChecked(), key group 1 */ -groups.push([1, ['(NanNew)', '(\\("[^\\"]*"[^\\)]*\\))(?!\\.ToLocalChecked\\(\\))'].join('')]); - -/* Removed v8 APIs, warn that the code needs rewriting using node::Buffer, key group 2 */ -groups.push([2, ['(', warning2, ')?', '^.*?(', [ - 'GetIndexedPropertiesExternalArrayDataLength', - 'GetIndexedPropertiesExternalArrayData', - 'GetIndexedPropertiesExternalArrayDataType', - 'GetIndexedPropertiesPixelData', - 'GetIndexedPropertiesPixelDataLength', - 'HasIndexedPropertiesInExternalArrayData', - 'HasIndexedPropertiesInPixelData', - 'SetIndexedPropertiesToExternalArrayData', - 'SetIndexedPropertiesToPixelData'].join('|'), ')'].join('')]); - -/* No need for NanScope in V8-exposed methods, key group 2 */ -groups.push([2, ['((', [ - 'NAN_METHOD', - 'NAN_GETTER', - 'NAN_SETTER', - 'NAN_PROPERTY_GETTER', - 'NAN_PROPERTY_SETTER', - 'NAN_PROPERTY_ENUMERATOR', - 'NAN_PROPERTY_DELETER', - 'NAN_PROPERTY_QUERY', - 'NAN_INDEX_GETTER', - 'NAN_INDEX_SETTER', - 'NAN_INDEX_ENUMERATOR', - 'NAN_INDEX_DELETER', - 'NAN_INDEX_QUERY'].join('|'), ')\\([^\\)]*\\)\\s*\\{)\\s*NanScope\\(\\)\\s*;'].join('')]); - -/* v8::Value::ToXXXXXXX returns v8::MaybeLocal, key group 3 */ -groups.push([3, ['([\\s\\(\\)])([^\\s\\(\\)]+)->(', [ - 'Boolean', - 'Number', - 'String', - 'Object', - 'Integer', - 'Uint32', - 'Int32'].join('|'), ')\\('].join('')]); - -/* v8::Value::XXXXXXXValue returns v8::Maybe, key group 3 */ -groups.push([3, ['([\\s\\(\\)])([^\\s\\(\\)]+)->((?:', [ - 'Boolean', - 'Number', - 'Integer', - 'Uint32', - 'Int32'].join('|'), ')Value)\\('].join('')]); - -/* NAN_WEAK_CALLBACK macro was removed, write out callback definition, key group 1 */ -groups.push([1, '(NAN_WEAK_CALLBACK)\\(([^\\s\\)]+)\\)']); - -/* node::ObjectWrap and v8::Persistent have been replaced with Nan implementations, key group 1 */ -groups.push([1, ['(', [ - 'NanDisposePersistent', - 'NanObjectWrapHandle'].join('|'), ')\\s*\\(\\s*([^\\s\\)]+)'].join('')]); - -/* Since NanPersistent there is no need for NanMakeWeakPersistent, key group 1 */ -groups.push([1, '(NanMakeWeakPersistent)\\s*\\(\\s*([^\\s,]+)\\s*,\\s*']); - -/* Many methods of v8::Object and others now return v8::MaybeLocal, key group 3 */ -groups.push([3, ['([\\s])([^\\s]+)->(', [ - 'GetEndColumn', - 'GetFunction', - 'GetLineNumber', - 'NewInstance', - 'GetPropertyNames', - 'GetOwnPropertyNames', - 'GetSourceLine', - 'GetStartColumn', - 'ObjectProtoToString', - 'ToArrayIndex', - 'ToDetailString', - 'CallAsConstructor', - 'CallAsFunction', - 'CloneElementAt', - 'Delete', - 'ForceSet', - 'Get', - 'GetPropertyAttributes', - 'GetRealNamedProperty', - 'GetRealNamedPropertyInPrototypeChain', - 'Has', - 'HasOwnProperty', - 'HasRealIndexedProperty', - 'HasRealNamedCallbackProperty', - 'HasRealNamedProperty', - 'Set', - 'SetAccessor', - 'SetIndexedPropertyHandler', - 'SetNamedPropertyHandler', - 'SetPrototype'].join('|'), ')\\('].join('')]); - -/* You should get an error if any of these fail anyways, - or handle the error better, it is indicated either way, key group 2 */ -groups.push([2, ['NanNew(<(?:v8\\:\\:)?(', ['Date', 'String', 'RegExp'].join('|'), ')>)(\\([^\\)]*\\))(?!\\.ToLocalChecked\\(\\))'].join('')]); - -/* v8::Value::Equals now returns a v8::Maybe, key group 3 */ -groups.push([3, '([\\s\\(\\)])([^\\s\\(\\)]+)->(Equals)\\(([^\\s\\)]+)']); - -/* NanPersistent makes this unnecessary, key group 1 */ -groups.push([1, '(NanAssignPersistent)(?:]+>)?\\(([^,]+),\\s*']); - -/* args has been renamed to info, key group 2 */ -groups.push([2, '(\\W)(args)(\\W)']) - -/* node::ObjectWrap was replaced with NanObjectWrap, key group 2 */ -groups.push([2, '(\\W)(?:node\\:\\:)?(ObjectWrap)(\\W)']); - -/* v8::Persistent was replaced with NanPersistent, key group 2 */ -groups.push([2, '(\\W)(?:v8\\:\\:)?(Persistent)(\\W)']); - -/* counts the number of capturing groups in a well-formed regular expression, - ignoring non-capturing groups and escaped parentheses */ -function groupcount(s) { - var positive = s.match(/\((?!\?)/g), - negative = s.match(/\\\(/g); - return (positive ? positive.length : 0) - (negative ? negative.length : 0); -} - -/* compute the absolute position of each key group in the joined master RegExp */ -for (i = 1, length = groups.length; i < length; i++) { - total += groupcount(groups[i - 1][1]); - groups[i][0] += total; -} - -/* create the master RegExp, whis is the union of all the groups' expressions */ -master = new RegExp(groups.map(function (a) { return a[1]; }).join('|'), 'gm'); - -/* replacement function for String.replace, receives 21 arguments */ -function replace() { - /* simple expressions */ - switch (arguments[groups[0][0]]) { - case '_NAN_': - return 'NAN_'; - case 'NODE_SET_METHOD': - return 'NanSetMethod'; - case 'NODE_SET_PROTOTYPE_METHOD': - return 'NanSetPrototypeMethod'; - case 'NanAsciiString': - return 'NanUtf8String'; - case 'NanEscapeScope': - return 'scope.Escape'; - case 'NanReturnNull': - return 'info.GetReturnValue().SetNull'; - case 'NanReturnValue': - return 'info.GetReturnValue().Set'; - case 'NanUcs2String': - return 'v8::String::Value'; - default: - } - - /* macros without arguments */ - switch (arguments[groups[1][0]]) { - case 'NanEscapableScope': - return 'NanEscapableScope scope' - case 'NanReturnUndefined': - return 'return'; - case 'NanScope': - return 'NanScope scope'; - default: - } - - /* TryCatch, emulate negative backref */ - if (arguments[groups[2][0]] === 'TryCatch') { - return arguments[groups[2][0] - 1] ? arguments[0] : 'NanTryCatch'; - } - - /* NanNew("foo") --> NanNew("foo").ToLocalChecked() */ - if (arguments[groups[3][0]] === 'NanNew') { - return [arguments[0], '.ToLocalChecked()'].join(''); - } - - /* insert warning for removed functions as comment on new line above */ - switch (arguments[groups[4][0]]) { - case 'GetIndexedPropertiesExternalArrayData': - case 'GetIndexedPropertiesExternalArrayDataLength': - case 'GetIndexedPropertiesExternalArrayDataType': - case 'GetIndexedPropertiesPixelData': - case 'GetIndexedPropertiesPixelDataLength': - case 'HasIndexedPropertiesInExternalArrayData': - case 'HasIndexedPropertiesInPixelData': - case 'SetIndexedPropertiesToExternalArrayData': - case 'SetIndexedPropertiesToPixelData': - return arguments[groups[4][0] - 1] ? arguments[0] : [warning1, arguments[0]].join(''); - default: - } - - /* remove unnecessary NanScope() */ - switch (arguments[groups[5][0]]) { - case 'NAN_GETTER': - case 'NAN_METHOD': - case 'NAN_SETTER': - case 'NAN_INDEX_DELETER': - case 'NAN_INDEX_ENUMERATOR': - case 'NAN_INDEX_GETTER': - case 'NAN_INDEX_QUERY': - case 'NAN_INDEX_SETTER': - case 'NAN_PROPERTY_DELETER': - case 'NAN_PROPERTY_ENUMERATOR': - case 'NAN_PROPERTY_GETTER': - case 'NAN_PROPERTY_QUERY': - case 'NAN_PROPERTY_SETTER': - return arguments[groups[5][0] - 1]; - default: - } - - /* Value converstion */ - switch (arguments[groups[6][0]]) { - case 'Boolean': - case 'Int32': - case 'Integer': - case 'Number': - case 'Object': - case 'String': - case 'Uint32': - return [arguments[groups[6][0] - 2], 'NanTo(', arguments[groups[6][0] - 1]].join(''); - default: - } - - /* other value conversion */ - switch (arguments[groups[7][0]]) { - case 'BooleanValue': - return [arguments[groups[7][0] - 2], 'NanTo(', arguments[groups[7][0] - 1]].join(''); - case 'Int32Value': - return [arguments[groups[7][0] - 2], 'NanTo(', arguments[groups[7][0] - 1]].join(''); - case 'IntegerValue': - return [arguments[groups[7][0] - 2], 'NanTo(', arguments[groups[7][0] - 1]].join(''); - case 'Uint32Value': - return [arguments[groups[7][0] - 2], 'NanTo(', arguments[groups[7][0] - 1]].join(''); - default: - } - - /* NAN_WEAK_CALLBACK */ - if (arguments[groups[8][0]] === 'NAN_WEAK_CALLBACK') { - return ['template\nvoid ', - arguments[groups[8][0] + 1], '(const NanWeakCallbackInfo &data)'].join(''); - } - - /* use methods on NAN classes instead */ - switch (arguments[groups[9][0]]) { - case 'NanDisposePersistent': - return [arguments[groups[9][0] + 1], '.Reset('].join(''); - case 'NanObjectWrapHandle': - return [arguments[groups[9][0] + 1], '->handle('].join(''); - default: - } - - /* use method on NanPersistent instead */ - if (arguments[groups[10][0]] === 'NanMakeWeakPersistent') { - return arguments[groups[10][0] + 1] + '.SetWeak('; - } - - /* These return Maybes, the upper ones take no arguments */ - switch (arguments[groups[11][0]]) { - case 'GetEndColumn': - case 'GetFunction': - case 'GetLineNumber': - case 'GetOwnPropertyNames': - case 'GetPropertyNames': - case 'GetSourceLine': - case 'GetStartColumn': - case 'NewInstance': - case 'ObjectProtoToString': - case 'ToArrayIndex': - case 'ToDetailString': - return [arguments[groups[11][0] - 2], 'Nan', arguments[groups[11][0]], '(', arguments[groups[11][0] - 1]].join(''); - case 'CallAsConstructor': - case 'CallAsFunction': - case 'CloneElementAt': - case 'Delete': - case 'ForceSet': - case 'Get': - case 'GetPropertyAttributes': - case 'GetRealNamedProperty': - case 'GetRealNamedPropertyInPrototypeChain': - case 'Has': - case 'HasOwnProperty': - case 'HasRealIndexedProperty': - case 'HasRealNamedCallbackProperty': - case 'HasRealNamedProperty': - case 'Set': - case 'SetAccessor': - case 'SetIndexedPropertyHandler': - case 'SetNamedPropertyHandler': - case 'SetPrototype': - return [arguments[groups[11][0] - 2], 'Nan', arguments[groups[11][0]], '(', arguments[groups[11][0] - 1], ', '].join(''); - default: - } - - /* Automatic ToLocalChecked(), take it or leave it */ - switch (arguments[groups[12][0]]) { - case 'Date': - case 'String': - case 'RegExp': - return ['NanNew', arguments[groups[12][0] - 1], arguments[groups[12][0] + 1], '.ToLocalChecked()'].join(''); - default: - } - - /* NanEquals is now required for uniformity */ - if (arguments[groups[13][0]] === 'Equals') { - return [arguments[groups[13][0] - 1], 'NanEquals(', arguments[groups[13][0] - 1], ', ', arguments[groups[13][0] + 1]].join(''); - } - - /* use method on replacement class instead */ - if (arguments[groups[14][0]] === 'NanAssignPersistent') { - return [arguments[groups[14][0] + 1], '.Reset('].join(''); - } - - /* args --> info */ - if (arguments[groups[15][0]] === 'args') { - return [arguments[groups[15][0] - 1], 'info', arguments[groups[15][0] + 1]].join(''); - } - - /* ObjectWrap --> NanObjectWrap */ - if (arguments[groups[16][0]] === 'ObjectWrap') { - return [arguments[groups[16][0] - 1], 'NanObjectWrap', arguments[groups[16][0] + 1]].join(''); - } - - /* Persistent --> NanPersistent */ - if (arguments[groups[17][0]] === 'Persistent') { - return [arguments[groups[17][0] - 1], 'NanPersistent', arguments[groups[17][0] + 1]].join(''); - } - - /* This should not happen. A switch is probably missing a case if it does. */ - throw 'Unhandled match: ' + arguments[0]; -} - -/* reads a file, runs replacement and writes it back */ -function processFile(file) { - fs.readFile(file, {encoding: 'utf8'}, function (err, data) { - if (err) { - throw err; - } - - /* run replacement twice, might need more runs */ - fs.writeFile(file, data.replace(master, replace).replace(master, replace), function (err) { - if (err) { - throw err; - } - }); - }); -} - -/* process file names from command line and process the identified files */ -for (i = 2, length = process.argv.length; i < length; i++) { - glob(process.argv[i], function (err, matches) { - if (err) { - throw err; - } - matches.forEach(processFile); - }); -} diff --git a/node_modules/nan/tools/README.md b/node_modules/nan/tools/README.md deleted file mode 100644 index 7f07e4b..0000000 --- a/node_modules/nan/tools/README.md +++ /dev/null @@ -1,14 +0,0 @@ -1to2 naively converts source code files from NAN 1 to NAN 2. There will be erroneous conversions, -false positives and missed opportunities. The input files are rewritten in place. Make sure that -you have backups. You will have to manually review the changes afterwards and do some touchups. - -```sh -$ tools/1to2.js - - Usage: 1to2 [options] - - Options: - - -h, --help output usage information - -V, --version output the version number -``` diff --git a/node_modules/nan/tools/package.json b/node_modules/nan/tools/package.json deleted file mode 100644 index 2dcdd78..0000000 --- a/node_modules/nan/tools/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "1to2", - "version": "1.0.0", - "description": "NAN 1 -> 2 Migration Script", - "main": "1to2.js", - "repository": { - "type": "git", - "url": "git://github.com/nodejs/nan.git" - }, - "contributors": [ - "Benjamin Byholm (https://github.com/kkoopa/)", - "Mathias Küsel (https://github.com/mathiask88/)" - ], - "dependencies": { - "glob": "~5.0.10", - "commander": "~2.8.1" - }, - "license": "MIT" -} diff --git a/node_modules/natives/README.md b/node_modules/natives/README.md deleted file mode 100644 index 6fc4424..0000000 --- a/node_modules/natives/README.md +++ /dev/null @@ -1,64 +0,0 @@ -# natives - -Do stuff with Node.js's native JavaScript modules - -## Caveat - -Dear Beloved User, - -I feel compelled to give you a word of warning if you are considering -using this module. - -This module lets you do some creative things with the JavaScript code -in Node.js. There are some things here that are basically a recipe -for memory leaks, or at the very least, being broken with each new -release of Node, since none of these API surfaces are "technically" -"supported" by the team managing the Node.js project. - -This module does not ship a _copy_ of Node's internals. It does its -thing by using the exposed source code that lives in Node.js itself. -So, running this on different versions of Node.js will produce -different results. - -When your program is broken by changes to Node's internals, or when -Node changes in such a way that this module becomes fundamentally -broken, you will likely get little sympathy. Many people in the Node -community consider this sort of behavior to be unwise and unseemly, if -not outright hostile and morally wrong. - -At the very least, you probably just want to run Node with the -(undocumented!) `--expose-internals` flag, rather than go to such -lengths. - -Don't use unless you know what you're doing, or at least, are ok with -the risks. Don't say I didn't warn you. - -Eternally Yours in OSS, -Isaac Z. Schlueter - -## USAGE - -```javascript -var natives = require('natives') - -// get the source code -var fsCode = natives.source('fs') - -// get a evaluated copy of the module -var fsCopy = natives.require('fs') - -// you can pass in a whitelist to NOT shim certain things -var fsCopyWithNativeStreams = natives.require('fs', ['stream']) - -// note that this is not the same as the "real" fs -assert(fsCopy !== require('fs')) - -// but it does have all the same entries -fsCopy.readFileSync(__filename, 'utf8') // etc -``` - -## Another Caveat - -You can't use this to override `require("buffer")` because everything -depends on `Buffer.isBuffer` working properly, so it's important for -that one to be given a pass. diff --git a/node_modules/natives/index.js b/node_modules/natives/index.js deleted file mode 100644 index 6751390..0000000 --- a/node_modules/natives/index.js +++ /dev/null @@ -1,115 +0,0 @@ -var natives = process.binding('natives') -var module = require('module') -var normalRequire = require -exports.source = src -exports.require = req -var vm = require('vm') - -// fallback for 0.x support -var runInThisContext, ContextifyScript, Script -/*istanbul ignore next*/ -try { - ContextifyScript = process.binding('contextify').ContextifyScript; - runInThisContext = function runInThisContext(code, options) { - var script = new ContextifyScript(code, options); - return script.runInThisContext(); - } -} catch (er) { - Script = process.binding('evals').NodeScript; - runInThisContext = Script.runInThisContext; -} - -var wrap = [ - '(function (exports, require, module, __filename, __dirname) { ', - '\n});' -]; - - -// Basically the same functionality as node's (buried deep) -// NativeModule class, but without caching, or internal/ blocking, -// or a class, since that's not really necessary. I assume that if -// you're loading something with this module, it's because you WANT -// a separate copy. However, to preserve semantics, any require() -// calls made throughout the internal module load IS cached. -function req (id, whitelist) { - var cache = Object.create(null) - - if (Array.isArray(whitelist)) { - // a whitelist of things to pull from the "actual" native modules - whitelist.forEach(function (id) { - cache[id] = { - loading: false, - loaded: true, - filename: id + '.js', - exports: require(id) - } - }) - } - - return req_(id, cache) -} - -function req_ (id, cache) { - // Buffer is special, because it's a type rather than a "normal" - // class, and many things depend on `Buffer.isBuffer` working. - if (id === 'buffer') { - return require('buffer') - } - - // native_module isn't actually a natives binding. - // weird, right? - if (id === 'native_module') { - return { - getSource: src, - wrap: function (script) { - return wrap[0] + script + wrap[1] - }, - wrapper: wrap, - _cache: cache - } - } - - var source = src(id) - if (!source) { - return undefined - } - source = wrap[0] + source + wrap[1] - - var cachingRequire = function require (id) { - if (cache[id]) { - return cache[id].exports - } - return req_(id, cache) - } - - var nm = { - exports: {}, - loading: true, - loaded: false, - filename: id + '.js' - } - cache[id] = nm - var fn - try { - /* istanbul ignore else */ - if (ContextifyScript) { - fn = runInThisContext(source, { - filename: nm.filename, - lineOffset: 0, - displayErrors: true - }); - } else { - fn = runInThisContext(source, nm.filename, true); - } - fn(nm.exports, cachingRequire, nm, nm.filename) - nm.loaded = true - } finally { - nm.loading = false - } - - return nm.exports -} - -function src (id) { - return natives[id] -} diff --git a/node_modules/natives/package.json b/node_modules/natives/package.json deleted file mode 100644 index 03a76fe..0000000 --- a/node_modules/natives/package.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "natives@^1.1.0", - "scope": null, - "escapedName": "natives", - "name": "natives", - "rawSpec": "^1.1.0", - "spec": ">=1.1.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/graceful-fs" - ] - ], - "_from": "natives@>=1.1.0 <2.0.0", - "_id": "natives@1.1.0", - "_inCache": true, - "_location": "/natives", - "_nodeVersion": "6.5.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/natives-1.1.0.tgz_1472583645072_0.9239758928306401" - }, - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.10.7", - "_phantomChildren": {}, - "_requested": { - "raw": "natives@^1.1.0", - "scope": null, - "escapedName": "natives", - "name": "natives", - "rawSpec": "^1.1.0", - "spec": ">=1.1.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/graceful-fs" - ], - "_resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz", - "_shasum": "e9ff841418a6b2ec7a495e939984f78f163e6e31", - "_shrinkwrap": null, - "_spec": "natives@^1.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/graceful-fs", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/natives/issues" - }, - "dependencies": {}, - "description": "Do stuff with Node.js's native JavaScript modules", - "devDependencies": { - "tap": "^7.0.0" - }, - "directories": {}, - "dist": { - "shasum": "e9ff841418a6b2ec7a495e939984f78f163e6e31", - "tarball": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz" - }, - "files": [ - "index.js" - ], - "gitHead": "dc1297cdce008350b679dbb86be5bf5bbf8cacbf", - "homepage": "https://github.com/isaacs/natives#readme", - "license": "ISC", - "main": "index.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "natives", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/natives.git" - }, - "scripts": { - "test": "tap test/*.js --100" - }, - "version": "1.1.0" -} diff --git a/node_modules/node-emoji/.npmignore b/node_modules/node-emoji/.npmignore deleted file mode 100644 index 8262c2d..0000000 --- a/node_modules/node-emoji/.npmignore +++ /dev/null @@ -1,7 +0,0 @@ -node_modules -*.log -*.sublime-project -*.sublime-workspace -*.txt -test.js -coverage diff --git a/node_modules/node-emoji/.travis.yml b/node_modules/node-emoji/.travis.yml deleted file mode 100644 index 6e5919d..0000000 --- a/node_modules/node-emoji/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "0.10" diff --git a/node_modules/node-emoji/LICENSE b/node_modules/node-emoji/LICENSE deleted file mode 100644 index 138d135..0000000 --- a/node_modules/node-emoji/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Daniel Bugl - -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. \ No newline at end of file diff --git a/node_modules/node-emoji/README.md b/node_modules/node-emoji/README.md deleted file mode 100644 index a01d5e5..0000000 --- a/node_modules/node-emoji/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# node-emoji - -[![NPM version (1.0.3)](https://img.shields.io/npm/v/node-emoji.svg?style=flat-square)](https://www.npmjs.com/package/node-emoji) [![NPM Downloads](https://img.shields.io/npm/dm/node-emoji.svg?style=flat-square)](https://www.npmjs.com/package/node-emoji) [![Build Status](https://img.shields.io/travis/omnidan/node-emoji/master.svg?style=flat-square)](https://travis-ci.org/omnidan/node-emoji) [![Dependencies](https://img.shields.io/david/omnidan/node-emoji.svg?style=flat-square)](https://david-dm.org/omnidan/node-emoji) [![Code Climate](https://img.shields.io/codeclimate/github/omnidan/node-emoji.svg?style=flat-square)](https://codeclimate.com/github/omnidan/node-emoji) [![https://paypal.me/DanielBugl/10](https://img.shields.io/badge/donate-paypal-yellow.svg?style=flat-square)](https://paypal.me/DanielBugl/10) [![https://gratipay.com/~omnidan/](https://img.shields.io/badge/donate-gratipay/bitcoin-yellow.svg?style=flat-square)](https://gratipay.com/~omnidan/) - -_simple emoji support for node.js projects_ - -![node-emoji example](http://i.imgur.com/RgFj97V.png) - -## Installation -To install `node-emoji`, you need [node.js](http://nodejs.org/) and [npm](https://github.com/npm/npm#super-easy-install). :rocket: - -Once you have that set-up, just run `npm install --save node-emoji` in your project directory. :ship: - -You're now ready to use emoji in your node projects! Awesome! :metal: - -## Usage -```javascript -var emoji = require('node-emoji') -emoji.get('coffee') // returns the emoji code for coffee (displays emoji on terminals that support it) -emoji.which(emoji.get('coffee')) // returns the string "coffee" -emoji.get(':fast_forward:') // `.get` also supports github flavored markdown emoji (http://www.emoji-cheat-sheet.com/) -emoji.emojify('I :heart: :coffee:!') // replaces all :emoji: with the actual emoji, in this case: returns "I ❤️ ☕️!" -emoji.random() // returns a random emoji + key, e.g. `{ emoji: '❤️', key: 'heart' }` -emoji.search('cof') // returns an array of objects with matching emoji's. `[{ emoji: '☕️', key: 'coffee' }, { emoji: ⚰', key: 'coffin'}]` -``` - -## Adding new emoji -Emoji come from js-emoji (Thanks a lot :thumbsup:). You can get a JSON file with all emoji here: https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json - -To update the list or add custom emoji, clone this repository and put them into `lib/emojifile.js`. -Then run `npm run-script emojiparse` in the project directory or `node emojiparse` in the lib directory. -This should generate the new emoji.json file and output `Done.`. - -That's all, you now have more emoji you can use! :clap: - -## Support / Donations -If you want to support node-emoji development, please consider donating (it helps me keeping my projects active and alive!): - - * Paypal: [![daniel.bugl@gmail.com](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YBMS9EKTNPZHJ) - * Gratipay: [![https://gratipay.com/omnidan/](https://img.shields.io/gratipay/omnidan.svg?style=flat-square)](https://gratipay.com/omnidan/) - * Bitcoin: 114veSsYoyw2QrXkPTxHD51B5i39TinsBP - -![http://i.imgur.com/RgzXqGD.png](http://i.imgur.com/RgzXqGD.png) diff --git a/node_modules/node-emoji/index.js b/node_modules/node-emoji/index.js deleted file mode 100644 index 82bc589..0000000 --- a/node_modules/node-emoji/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./lib/emoji'); \ No newline at end of file diff --git a/node_modules/node-emoji/lib/emoji.js b/node_modules/node-emoji/lib/emoji.js deleted file mode 100644 index 8141f07..0000000 --- a/node_modules/node-emoji/lib/emoji.js +++ /dev/null @@ -1,128 +0,0 @@ -/*jslint node: true*/ -require('string.prototype.codepointat'); - -"use strict"; - -/** - * regex to parse emoji in a string - finds emoji, e.g. :coffee: - */ -var parser = /:([a-zA-Z0-9_\-\+]+):/g; - -/** - * Removes colons on either side - * of the string if present - * @param {string} str - * @return {string} - */ -var trim = function(str) { - var colonIndex = str.indexOf(':'); - if (colonIndex > -1) { - // :emoji: (http://www.emoji-cheat-sheet.com/) - if (colonIndex === str.length - 1) { - str = str.substring(0, colonIndex); - return trim(str); - } else { - str = str.substr(colonIndex + 1); - return trim(str); - } - } - return str; -} -/** - * Emoji namespace - */ -var Emoji = module.exports = { - emoji: require('./emoji.json') -}; - -/** - * get emoji code from name - * @param {string} emoji - * @return {string} - */ -Emoji._get = function _get(emoji) { - if (Emoji.emoji.hasOwnProperty(emoji)) { - return Emoji.emoji[emoji]; - } - return ':' + emoji + ':'; -}; - -/** - * get emoji code from :emoji: string or name - * @param {string} emoji - * @return {string} - */ -Emoji.get = function get(emoji) { - emoji = trim(emoji); - - return Emoji._get(emoji); -}; - -/** - * get emoji name from code - * @param {string} emoji_code - * @return {string} - */ -Emoji.which = function which(emoji_code) { - for (var prop in Emoji.emoji) { - if (Emoji.emoji.hasOwnProperty(prop)) { - if (Emoji.emoji[prop].codePointAt() === emoji_code.codePointAt()) { - return prop; - } - } - } -}; - -/** - * emojify a string (replace :emoji: with an emoji) - * @param {string} str - * @param {function} on_missing (gets emoji name without :: and returns a proper emoji if no emoji was found) - * @return {string} - */ -Emoji.emojify = function emojify(str, on_missing) { - if (!str) return ''; - - return str.split(parser) // parse emoji via regex - .map(function parseEmoji(s, i) { - // every second element is an emoji, e.g. "test :fast_forward:" -> [ "test ", "fast_forward" ] - if (i % 2 === 0) return s; - var emoji = Emoji._get(s); - if (emoji.indexOf(':') > -1 && typeof on_missing === 'function') { - return on_missing(emoji.substr(1, emoji.length-2)); - } - return emoji; - }) - .join('') // convert back to string - ; -}; - -/** - * return a random emoji - * @return {string} - */ -Emoji.random = function random() { - var emojiKeys = Object.keys(Emoji.emoji); - var randomIndex = Math.floor(Math.random() * emojiKeys.length); - var key = emojiKeys[randomIndex]; - var emoji = Emoji._get(key); - return {key: key, emoji: emoji}; -} - -/** - * return an collection of potential emoji matches - * @param {string} str - * @return {Array.} - */ -Emoji.search = function search(str) { - var emojiKeys = Object.keys(Emoji.emoji); - var matcher = trim(str) - var matchingKeys = emojiKeys.filter(function(key) { - return key.toString().indexOf(matcher) === 0; - }); - return matchingKeys.map(function(key) { - return { - key: key, - emoji: Emoji._get(key), - }; - }); -} diff --git a/node_modules/node-emoji/lib/emoji.json b/node_modules/node-emoji/lib/emoji.json deleted file mode 100644 index f7adf9d..0000000 --- a/node_modules/node-emoji/lib/emoji.json +++ /dev/null @@ -1 +0,0 @@ -{"100":"💯","1234":"🔢","interrobang":"⁉️","tm":"™️","information_source":"ℹ️","left_right_arrow":"↔️","arrow_up_down":"↕️","arrow_upper_left":"↖️","arrow_upper_right":"↗️","arrow_lower_right":"↘️","arrow_lower_left":"↙️","keyboard":"⌨","sunny":"☀️","cloud":"☁️","umbrella":"☔️","showman":"☃","comet":"☄","ballot_box_with_check":"☑️","coffee":"☕️","shamrock":"☘","skull_and_crossbones":"☠","radioactive_sign":"☢","biohazard_sign":"☣","orthodox_cross":"☦","wheel_of_dharma":"☸","white_frowning_face":"☹","aries":"♈️","taurus":"♉️","sagittarius":"♐️","capricorn":"♑️","aquarius":"♒️","pisces":"♓️","spades":"♠️","clubs":"♣️","hearts":"♥️","diamonds":"♦️","hotsprings":"♨️","hammer_and_pick":"⚒","anchor":"⚓️","crossed_swords":"⚔","scales":"⚖","alembic":"⚗","gear":"⚙","scissors":"✂️","white_check_mark":"✅","airplane":"✈️","email":"✉️","envelope":"✉️","black_nib":"✒️","heavy_check_mark":"✔️","heavy_multiplication_x":"✖️","star_of_david":"✡","sparkles":"✨","eight_spoked_asterisk":"✳️","eight_pointed_black_star":"✴️","snowflake":"❄️","sparkle":"❇️","question":"❓","grey_question":"❔","grey_exclamation":"❕","exclamation":"❗️","heavy_exclamation_mark":"❗️","heavy_heart_exclamation_mark_ornament":"❣","heart":"❤️","heavy_plus_sign":"➕","heavy_minus_sign":"➖","heavy_division_sign":"➗","arrow_heading_up":"⤴️","arrow_heading_down":"⤵️","wavy_dash":"〰️","congratulations":"㊗️","secret":"㊙️","copyright":"©️","registered":"®️","bangbang":"‼️","leftwards_arrow_with_hook":"↩️","arrow_right_hook":"↪️","watch":"⌚️","hourglass":"⌛️","fast_forward":"⏩","rewind":"⏪","arrow_double_up":"⏫","arrow_double_down":"⏬","black_right_pointing_double_triangle_with_vertical_bar":"⏭","black_left_pointing_double_triangle_with_vertical_bar":"⏮","black_right_pointing_triangle_with_double_vertical_bar":"⏯","alarm_clock":"⏰","stopwatch":"⏱","timer_clock":"⏲","hourglass_flowing_sand":"⏳","double_vertical_bar":"⏸","black_square_for_stop":"⏹","black_circle_for_record":"⏺","m":"Ⓜ️","black_small_square":"▪️","white_small_square":"▫️","arrow_forward":"▶️","arrow_backward":"◀️","white_medium_square":"◻️","black_medium_square":"◼️","white_medium_small_square":"◽️","black_medium_small_square":"◾️","phone":"☎️","telephone":"☎️","point_up":"☝️","star_and_crescent":"☪","peace_symbol":"☮","yin_yang":"☯","relaxed":"☺️","gemini":"♊️","cancer":"♋️","leo":"♌️","virgo":"♍️","libra":"♎️","scorpius":"♏️","recycle":"♻️","wheelchair":"♿️","atom_symbol":"⚛","fleur_de_lis":"⚜","warning":"⚠️","zap":"⚡️","white_circle":"⚪️","black_circle":"⚫️","coffin":"⚰","funeral_urn":"⚱","soccer":"⚽️","baseball":"⚾️","snowman":"⛄️","partly_sunny":"⛅️","thunder_cloud_and_rain":"⛈","ophiuchus":"⛎","pick":"⛏","helmet_with_white_cross":"⛑","chains":"⛓","no_entry":"⛔️","shinto_shrine":"⛩","church":"⛪️","mountain":"⛰","umbrella_on_ground":"⛱","fountain":"⛲️","golf":"⛳️","ferry":"⛴","boat":"⛵️","sailboat":"⛵️","skier":"⛷","ice_skate":"⛸","person_with_ball":"⛹","tent":"⛺️","fuelpump":"⛽️","fist":"✊","hand":"✋","raised_hand":"✋","v":"✌️","writing_hand":"✍","pencil2":"✏️","latin_cross":"✝","x":"❌","negative_squared_cross_mark":"❎","arrow_right":"➡️","curly_loop":"➰","loop":"➿","arrow_left":"⬅️","arrow_up":"⬆️","arrow_down":"⬇️","black_large_square":"⬛️","white_large_square":"⬜️","star":"⭐️","o":"⭕️","part_alternation_mark":"〽️","mahjong":"🀄️","black_joker":"🃏","a":"🅰️","b":"🅱️","o2":"🅾️","parking":"🅿️","ab":"🆎","cl":"🆑","cool":"🆒","free":"🆓","id":"🆔","new":"🆕","ng":"🆖","ok":"🆗","sos":"🆘","up":"🆙","vs":"🆚","koko":"🈁","sa":"🈂️","u7121":"🈚️","u6307":"🈯️","u7981":"🈲","u7a7a":"🈳","u5408":"🈴","u6e80":"🈵","u6709":"🈶","u6708":"🈷️","u7533":"🈸","u5272":"🈹","u55b6":"🈺","ideograph_advantage":"🉐","accept":"🉑","cyclone":"🌀","foggy":"🌁","closed_umbrella":"🌂","night_with_stars":"🌃","sunrise_over_mountains":"🌄","sunrise":"🌅","city_sunset":"🌆","city_sunrise":"🌇","rainbow":"🌈","bridge_at_night":"🌉","ocean":"🌊","volcano":"🌋","milky_way":"🌌","earth_africa":"🌍","earth_americas":"🌎","earth_asia":"🌏","globe_with_meridians":"🌐","new_moon":"🌑","waxing_crescent_moon":"🌒","first_quarter_moon":"🌓","moon":"🌔","waxing_gibbous_moon":"🌔","full_moon":"🌕","waning_gibbous_moon":"🌖","last_quarter_moon":"🌗","waning_crescent_moon":"🌘","crescent_moon":"🌙","new_moon_with_face":"🌚","first_quarter_moon_with_face":"🌛","last_quarter_moon_with_face":"🌜","full_moon_with_face":"🌝","sun_with_face":"🌞","star2":"🌟","stars":"🌠","thermometer":"🌡","mostly_sunny":"🌤","sun_small_cloud":"🌤","barely_sunny":"🌥","sun_behind_cloud":"🌥","partly_sunny_rain":"🌦","sun_behind_rain_cloud":"🌦","rain_cloud":"🌧","snow_cloud":"🌨","lightning":"🌩","lightning_cloud":"🌩","tornado":"🌪","tornado_cloud":"🌪","fog":"🌫","wind_blowing_face":"🌬","hotdog":"🌭","taco":"🌮","burrito":"🌯","chestnut":"🌰","seedling":"🌱","evergreen_tree":"🌲","deciduous_tree":"🌳","palm_tree":"🌴","cactus":"🌵","hot_pepper":"🌶","tulip":"🌷","cherry_blossom":"🌸","rose":"🌹","hibiscus":"🌺","sunflower":"🌻","blossom":"🌼","corn":"🌽","ear_of_rice":"🌾","herb":"🌿","four_leaf_clover":"🍀","maple_leaf":"🍁","fallen_leaf":"🍂","leaves":"🍃","mushroom":"🍄","tomato":"🍅","eggplant":"🍆","grapes":"🍇","melon":"🍈","watermelon":"🍉","tangerine":"🍊","lemon":"🍋","banana":"🍌","pineapple":"🍍","apple":"🍎","green_apple":"🍏","pear":"🍐","peach":"🍑","cherries":"🍒","strawberry":"🍓","hamburger":"🍔","pizza":"🍕","meat_on_bone":"🍖","poultry_leg":"🍗","rice_cracker":"🍘","rice_ball":"🍙","rice":"🍚","curry":"🍛","ramen":"🍜","spaghetti":"🍝","bread":"🍞","fries":"🍟","sweet_potato":"🍠","dango":"🍡","oden":"🍢","sushi":"🍣","fried_shrimp":"🍤","fish_cake":"🍥","icecream":"🍦","shaved_ice":"🍧","ice_cream":"🍨","doughnut":"🍩","cookie":"🍪","chocolate_bar":"🍫","candy":"🍬","lollipop":"🍭","custard":"🍮","honey_pot":"🍯","cake":"🍰","bento":"🍱","stew":"🍲","egg":"🍳","fork_and_knife":"🍴","tea":"🍵","sake":"🍶","wine_glass":"🍷","cocktail":"🍸","tropical_drink":"🍹","beer":"🍺","beers":"🍻","baby_bottle":"🍼","knife_fork_plate":"🍽","champagne":"🍾","popcorn":"🍿","ribbon":"🎀","gift":"🎁","birthday":"🎂","jack_o_lantern":"🎃","christmas_tree":"🎄","santa":"🎅","fireworks":"🎆","sparkler":"🎇","balloon":"🎈","tada":"🎉","confetti_ball":"🎊","tanabata_tree":"🎋","crossed_flags":"🎌","bamboo":"🎍","dolls":"🎎","flags":"🎏","wind_chime":"🎐","rice_scene":"🎑","school_satchel":"🎒","mortar_board":"🎓","medal":"🎖","reminder_ribbon":"🎗","studio_microphone":"🎙","level_slider":"🎚","control_knobs":"🎛","film_frames":"🎞","admission_tickets":"🎟","carousel_horse":"🎠","ferris_wheel":"🎡","roller_coaster":"🎢","fishing_pole_and_fish":"🎣","microphone":"🎤","movie_camera":"🎥","cinema":"🎦","headphones":"🎧","art":"🎨","tophat":"🎩","circus_tent":"🎪","ticket":"🎫","clapper":"🎬","performing_arts":"🎭","video_game":"🎮","dart":"🎯","slot_machine":"🎰","8ball":"🎱","game_die":"🎲","bowling":"🎳","flower_playing_cards":"🎴","musical_note":"🎵","notes":"🎶","saxophone":"🎷","guitar":"🎸","musical_keyboard":"🎹","trumpet":"🎺","violin":"🎻","musical_score":"🎼","running_shirt_with_sash":"🎽","tennis":"🎾","ski":"🎿","basketball":"🏀","checkered_flag":"🏁","snowboarder":"🏂","runner":"🏃","running":"🏃","surfer":"🏄","sports_medal":"🏅","trophy":"🏆","horse_racing":"🏇","football":"🏈","rugby_football":"🏉","swimmer":"🏊","weight_lifter":"🏋","golfer":"🏌","racing_motorcycle":"🏍","racing_car":"🏎","cricket_bat_and_ball":"🏏","volleyball":"🏐","field_hockey_stick_and_ball":"🏑","ice_hockey_stick_and_puck":"🏒","table_tennis_paddle_and_ball":"🏓","snow_capped_mountain":"🏔","camping":"🏕","beach_with_umbrella":"🏖","building_construction":"🏗","house_buildings":"🏘","cityscape":"🏙","derelict_house_building":"🏚","classical_building":"🏛","desert":"🏜","desert_island":"🏝","national_park":"🏞","stadium":"🏟","house":"🏠","house_with_garden":"🏡","office":"🏢","post_office":"🏣","european_post_office":"🏤","hospital":"🏥","bank":"🏦","atm":"🏧","hotel":"🏨","love_hotel":"🏩","convenience_store":"🏪","school":"🏫","department_store":"🏬","factory":"🏭","izakaya_lantern":"🏮","lantern":"🏮","japanese_castle":"🏯","european_castle":"🏰","waving_white_flag":"🏳","waving_black_flag":"🏴","rosette":"🏵","label":"🏷","badminton_racquet_and_shuttlecock":"🏸","bow_and_arrow":"🏹","amphora":"🏺","skin-tone-2":"🏻","skin-tone-3":"🏼","skin-tone-4":"🏽","skin-tone-5":"🏾","skin-tone-6":"🏿","rat":"🐀","mouse2":"🐁","ox":"🐂","water_buffalo":"🐃","cow2":"🐄","tiger2":"🐅","leopard":"🐆","rabbit2":"🐇","cat2":"🐈","dragon":"🐉","crocodile":"🐊","whale2":"🐋","snail":"🐌","snake":"🐍","racehorse":"🐎","ram":"🐏","goat":"🐐","sheep":"🐑","monkey":"🐒","rooster":"🐓","chicken":"🐔","dog2":"🐕","pig2":"🐖","boar":"🐗","elephant":"🐘","octopus":"🐙","shell":"🐚","bug":"🐛","ant":"🐜","bee":"🐝","honeybee":"🐝","beetle":"🐞","fish":"🐟","tropical_fish":"🐠","blowfish":"🐡","turtle":"🐢","hatching_chick":"🐣","baby_chick":"🐤","hatched_chick":"🐥","bird":"🐦","penguin":"🐧","koala":"🐨","poodle":"🐩","dromedary_camel":"🐪","camel":"🐫","dolphin":"🐬","flipper":"🐬","mouse":"🐭","cow":"🐮","tiger":"🐯","rabbit":"🐰","cat":"🐱","dragon_face":"🐲","whale":"🐳","horse":"🐴","monkey_face":"🐵","dog":"🐶","pig":"🐷","frog":"🐸","hamster":"🐹","wolf":"🐺","bear":"🐻","panda_face":"🐼","pig_nose":"🐽","feet":"🐾","paw_prints":"🐾","chipmunk":"🐿","eyes":"👀","eye":"👁","ear":"👂","nose":"👃","lips":"👄","tongue":"👅","point_up_2":"👆","point_down":"👇","point_left":"👈","point_right":"👉","facepunch":"👊","punch":"👊","wave":"👋","ok_hand":"👌","+1":"👍","thumbsup":"👍","-1":"👎","thumbsdown":"👎","clap":"👏","open_hands":"👐","crown":"👑","womans_hat":"👒","eyeglasses":"👓","necktie":"👔","shirt":"👕","tshirt":"👕","jeans":"👖","dress":"👗","kimono":"👘","bikini":"👙","womans_clothes":"👚","purse":"👛","handbag":"👜","pouch":"👝","mans_shoe":"👞","shoe":"👞","athletic_shoe":"👟","high_heel":"👠","sandal":"👡","boot":"👢","footprints":"👣","bust_in_silhouette":"👤","busts_in_silhouette":"👥","boy":"👦","girl":"👧","man":"👨","woman":"👩","family":"👨‍👩‍👦","man-woman-boy":"👨‍👩‍👦","couple":"👫","man_and_woman_holding_hands":"👫","two_men_holding_hands":"👬","two_women_holding_hands":"👭","cop":"👮","dancers":"👯","bride_with_veil":"👰","person_with_blond_hair":"👱","man_with_gua_pi_mao":"👲","man_with_turban":"👳","older_man":"👴","older_woman":"👵","baby":"👶","construction_worker":"👷","princess":"👸","japanese_ogre":"👹","japanese_goblin":"👺","ghost":"👻","angel":"👼","alien":"👽","space_invader":"👾","imp":"👿","skull":"💀","information_desk_person":"💁","guardsman":"💂","dancer":"💃","lipstick":"💄","nail_care":"💅","massage":"💆","haircut":"💇","barber":"💈","syringe":"💉","pill":"💊","kiss":"💋","love_letter":"💌","ring":"💍","gem":"💎","couplekiss":"💏","bouquet":"💐","couple_with_heart":"💑","wedding":"💒","heartbeat":"💓","broken_heart":"💔","two_hearts":"💕","sparkling_heart":"💖","heartpulse":"💗","cupid":"💘","blue_heart":"💙","green_heart":"💚","yellow_heart":"💛","purple_heart":"💜","gift_heart":"💝","revolving_hearts":"💞","heart_decoration":"💟","diamond_shape_with_a_dot_inside":"💠","bulb":"💡","anger":"💢","bomb":"💣","zzz":"💤","boom":"💥","collision":"💥","sweat_drops":"💦","droplet":"💧","dash":"💨","hankey":"💩","poop":"💩","shit":"💩","muscle":"💪","dizzy":"💫","speech_balloon":"💬","thought_balloon":"💭","white_flower":"💮","moneybag":"💰","currency_exchange":"💱","heavy_dollar_sign":"💲","credit_card":"💳","yen":"💴","dollar":"💵","euro":"💶","pound":"💷","money_with_wings":"💸","chart":"💹","seat":"💺","computer":"💻","briefcase":"💼","minidisc":"💽","floppy_disk":"💾","cd":"💿","dvd":"📀","file_folder":"📁","open_file_folder":"📂","page_with_curl":"📃","page_facing_up":"📄","date":"📅","calendar":"📆","card_index":"📇","chart_with_upwards_trend":"📈","chart_with_downwards_trend":"📉","bar_chart":"📊","clipboard":"📋","pushpin":"📌","round_pushpin":"📍","paperclip":"📎","straight_ruler":"📏","triangular_ruler":"📐","bookmark_tabs":"📑","ledger":"📒","notebook":"📓","notebook_with_decorative_cover":"📔","closed_book":"📕","book":"📖","open_book":"📖","green_book":"📗","blue_book":"📘","orange_book":"📙","books":"📚","name_badge":"📛","scroll":"📜","memo":"📝","pencil":"📝","telephone_receiver":"📞","pager":"📟","fax":"📠","satellite":"🛰","loudspeaker":"📢","mega":"📣","outbox_tray":"📤","inbox_tray":"📥","package":"📦","e-mail":"📧","incoming_envelope":"📨","envelope_with_arrow":"📩","mailbox_closed":"📪","mailbox":"📫","mailbox_with_mail":"📬","mailbox_with_no_mail":"📭","postbox":"📮","postal_horn":"📯","newspaper":"📰","iphone":"📱","calling":"📲","vibration_mode":"📳","mobile_phone_off":"📴","no_mobile_phones":"📵","signal_strength":"📶","camera":"📷","camera_with_flash":"📸","video_camera":"📹","tv":"📺","radio":"📻","vhs":"📼","film_projector":"📽","prayer_beads":"📿","twisted_rightwards_arrows":"🔀","repeat":"🔁","repeat_one":"🔂","arrows_clockwise":"🔃","arrows_counterclockwise":"🔄","low_brightness":"🔅","high_brightness":"🔆","mute":"🔇","speaker":"🔈","sound":"🔉","loud_sound":"🔊","battery":"🔋","electric_plug":"🔌","mag":"🔍","mag_right":"🔎","lock_with_ink_pen":"🔏","closed_lock_with_key":"🔐","key":"🔑","lock":"🔒","unlock":"🔓","bell":"🔔","no_bell":"🔕","bookmark":"🔖","link":"🔗","radio_button":"🔘","back":"🔙","end":"🔚","on":"🔛","soon":"🔜","top":"🔝","underage":"🔞","keycap_ten":"🔟","capital_abcd":"🔠","abcd":"🔡","symbols":"🔣","abc":"🔤","fire":"🔥","flashlight":"🔦","wrench":"🔧","hammer":"🔨","nut_and_bolt":"🔩","hocho":"🔪","knife":"🔪","gun":"🔫","microscope":"🔬","telescope":"🔭","crystal_ball":"🔮","six_pointed_star":"🔯","beginner":"🔰","trident":"🔱","black_square_button":"🔲","white_square_button":"🔳","red_circle":"🔴","large_blue_circle":"🔵","large_orange_diamond":"🔶","large_blue_diamond":"🔷","small_orange_diamond":"🔸","small_blue_diamond":"🔹","small_red_triangle":"🔺","small_red_triangle_down":"🔻","arrow_up_small":"🔼","arrow_down_small":"🔽","om_symbol":"🕉","dove_of_peace":"🕊","kaaba":"🕋","mosque":"🕌","synagogue":"🕍","menorah_with_nine_branches":"🕎","clock1":"🕐","clock2":"🕑","clock3":"🕒","clock4":"🕓","clock5":"🕔","clock6":"🕕","clock7":"🕖","clock8":"🕗","clock9":"🕘","clock10":"🕙","clock11":"🕚","clock12":"🕛","clock130":"🕜","clock230":"🕝","clock330":"🕞","clock430":"🕟","clock530":"🕠","clock630":"🕡","clock730":"🕢","clock830":"🕣","clock930":"🕤","clock1030":"🕥","clock1130":"🕦","clock1230":"🕧","candle":"🕯","mantelpiece_clock":"🕰","hole":"🕳","man_in_business_suit_levitating":"🕴","sleuth_or_spy":"🕵","dark_sunglasses":"🕶","spider":"🕷","spider_web":"🕸","joystick":"🕹","linked_paperclips":"🖇","lower_left_ballpoint_pen":"🖊","lower_left_fountain_pen":"🖋","lower_left_paintbrush":"🖌","lower_left_crayon":"🖍","raised_hand_with_fingers_splayed":"🖐","middle_finger":"🖕","reversed_hand_with_middle_finger_extended":"🖕","spock-hand":"🖖","desktop_computer":"🖥","printer":"🖨","three_button_mouse":"🖱","trackball":"🖲","frame_with_picture":"🖼","card_index_dividers":"🗂","card_file_box":"🗃","file_cabinet":"🗄","wastebasket":"🗑","spiral_note_pad":"🗒","spiral_calendar_pad":"🗓","compression":"🗜","old_key":"🗝","rolled_up_newspaper":"🗞","dagger_knife":"🗡","speaking_head_in_silhouette":"🗣","left_speech_bubble":"🗨","right_anger_bubble":"🗯","ballot_box_with_ballot":"🗳","world_map":"🗺","mount_fuji":"🗻","tokyo_tower":"🗼","statue_of_liberty":"🗽","japan":"🗾","moyai":"🗿","grinning":"😀","grin":"😁","joy":"😂","smiley":"😃","smile":"😄","sweat_smile":"😅","laughing":"😆","satisfied":"😆","innocent":"😇","smiling_imp":"😈","wink":"😉","blush":"😊","yum":"😋","relieved":"😌","heart_eyes":"😍","sunglasses":"😎","smirk":"😏","neutral_face":"😐","expressionless":"😑","unamused":"😒","sweat":"😓","pensive":"😔","confused":"😕","confounded":"😖","kissing":"😗","kissing_heart":"😘","kissing_smiling_eyes":"😙","kissing_closed_eyes":"😚","stuck_out_tongue":"😛","stuck_out_tongue_winking_eye":"😜","stuck_out_tongue_closed_eyes":"😝","disappointed":"😞","worried":"😟","angry":"😠","rage":"😡","cry":"😢","persevere":"😣","triumph":"😤","disappointed_relieved":"😥","frowning":"😦","anguished":"😧","fearful":"😨","weary":"😩","sleepy":"😪","tired_face":"😫","grimacing":"😬","sob":"😭","open_mouth":"😮","hushed":"😯","cold_sweat":"😰","scream":"😱","astonished":"😲","flushed":"😳","sleeping":"😴","dizzy_face":"😵","no_mouth":"😶","mask":"😷","smile_cat":"😸","joy_cat":"😹","smiley_cat":"😺","heart_eyes_cat":"😻","smirk_cat":"😼","kissing_cat":"😽","pouting_cat":"😾","crying_cat_face":"😿","scream_cat":"🙀","slightly_frowning_face":"🙁","slightly_smiling_face":"🙂","upside_down_face":"🙃","face_with_rolling_eyes":"🙄","no_good":"🙅","ok_woman":"🙆","bow":"🙇","see_no_evil":"🙈","hear_no_evil":"🙉","speak_no_evil":"🙊","raising_hand":"🙋","raised_hands":"🙌","person_frowning":"🙍","person_with_pouting_face":"🙎","pray":"🙏","rocket":"🚀","helicopter":"🚁","steam_locomotive":"🚂","railway_car":"🚃","bullettrain_side":"🚄","bullettrain_front":"🚅","train2":"🚆","metro":"🚇","light_rail":"🚈","station":"🚉","tram":"🚊","train":"🚋","bus":"🚌","oncoming_bus":"🚍","trolleybus":"🚎","busstop":"🚏","minibus":"🚐","ambulance":"🚑","fire_engine":"🚒","police_car":"🚓","oncoming_police_car":"🚔","taxi":"🚕","oncoming_taxi":"🚖","car":"🚗","red_car":"🚗","oncoming_automobile":"🚘","blue_car":"🚙","truck":"🚚","articulated_lorry":"🚛","tractor":"🚜","monorail":"🚝","mountain_railway":"🚞","suspension_railway":"🚟","mountain_cableway":"🚠","aerial_tramway":"🚡","ship":"🚢","rowboat":"🚣","speedboat":"🚤","traffic_light":"🚥","vertical_traffic_light":"🚦","construction":"🚧","rotating_light":"🚨","triangular_flag_on_post":"🚩","door":"🚪","no_entry_sign":"🚫","smoking":"🚬","no_smoking":"🚭","put_litter_in_its_place":"🚮","do_not_litter":"🚯","potable_water":"🚰","non-potable_water":"🚱","bike":"🚲","no_bicycles":"🚳","bicyclist":"🚴","mountain_bicyclist":"🚵","walking":"🚶","no_pedestrians":"🚷","children_crossing":"🚸","mens":"🚹","womens":"🚺","restroom":"🚻","baby_symbol":"🚼","toilet":"🚽","wc":"🚾","shower":"🚿","bath":"🛀","bathtub":"🛁","passport_control":"🛂","customs":"🛃","baggage_claim":"🛄","left_luggage":"🛅","couch_and_lamp":"🛋","sleeping_accommodation":"🛌","shopping_bags":"🛍","bellhop_bell":"🛎","bed":"🛏","place_of_worship":"🛐","hammer_and_wrench":"🛠","shield":"🛡","oil_drum":"🛢","motorway":"🛣","railway_track":"🛤","motor_boat":"🛥","small_airplane":"🛩","airplane_departure":"🛫","airplane_arriving":"🛬","passenger_ship":"🛳","zipper_mouth_face":"🤐","money_mouth_face":"🤑","face_with_thermometer":"🤒","nerd_face":"🤓","thinking_face":"🤔","face_with_head_bandage":"🤕","robot_face":"🤖","hugging_face":"🤗","the_horns":"🤘","sign_of_the_horns":"🤘","crab":"🦀","lion_face":"🦁","scorpion":"🦂","turkey":"🦃","unicorn_face":"🦄","cheese_wedge":"🧀","hash":"#️⃣","keycap_star":"*⃣","zero":"0️⃣","one":"1️⃣","two":"2️⃣","three":"3️⃣","four":"4️⃣","five":"5️⃣","six":"6️⃣","seven":"7️⃣","eight":"8️⃣","nine":"9️⃣","flag-ac":"🇦🇨","flag-ad":"🇦🇩","flag-ae":"🇦🇪","flag-af":"🇦🇫","flag-ag":"🇦🇬","flag-ai":"🇦🇮","flag-al":"🇦🇱","flag-am":"🇦🇲","flag-ao":"🇦🇴","flag-aq":"🇦🇶","flag-ar":"🇦🇷","flag-as":"🇦🇸","flag-at":"🇦🇹","flag-au":"🇦🇺","flag-aw":"🇦🇼","flag-ax":"🇦🇽","flag-az":"🇦🇿","flag-ba":"🇧🇦","flag-bb":"🇧🇧","flag-bd":"🇧🇩","flag-be":"🇧🇪","flag-bf":"🇧🇫","flag-bg":"🇧🇬","flag-bh":"🇧🇭","flag-bi":"🇧🇮","flag-bj":"🇧🇯","flag-bl":"🇧🇱","flag-bm":"🇧🇲","flag-bn":"🇧🇳","flag-bo":"🇧🇴","flag-bq":"🇧🇶","flag-br":"🇧🇷","flag-bs":"🇧🇸","flag-bt":"🇧🇹","flag-bv":"🇧🇻","flag-bw":"🇧🇼","flag-by":"🇧🇾","flag-bz":"🇧🇿","flag-ca":"🇨🇦","flag-cc":"🇨🇨","flag-cd":"🇨🇩","flag-cf":"🇨🇫","flag-cg":"🇨🇬","flag-ch":"🇨🇭","flag-ci":"🇨🇮","flag-ck":"🇨🇰","flag-cl":"🇨🇱","flag-cm":"🇨🇲","flag-cn":"🇨🇳","cn":"🇨🇳","flag-co":"🇨🇴","flag-cp":"🇨🇵","flag-cr":"🇨🇷","flag-cu":"🇨🇺","flag-cv":"🇨🇻","flag-cw":"🇨🇼","flag-cx":"🇨🇽","flag-cy":"🇨🇾","flag-cz":"🇨🇿","flag-de":"🇩🇪","de":"🇩🇪","flag-dg":"🇩🇬","flag-dj":"🇩🇯","flag-dk":"🇩🇰","flag-dm":"🇩🇲","flag-do":"🇩🇴","flag-dz":"🇩🇿","flag-ea":"🇪🇦","flag-ec":"🇪🇨","flag-ee":"🇪🇪","flag-eg":"🇪🇬","flag-eh":"🇪🇭","flag-er":"🇪🇷","flag-es":"🇪🇸","es":"🇪🇸","flag-et":"🇪🇹","flag-eu":"🇪🇺","flag-fi":"🇫🇮","flag-fj":"🇫🇯","flag-fk":"🇫🇰","flag-fm":"🇫🇲","flag-fo":"🇫🇴","flag-fr":"🇫🇷","fr":"🇫🇷","flag-ga":"🇬🇦","flag-gb":"🇬🇧","gb":"🇬🇧","uk":"🇬🇧","flag-gd":"🇬🇩","flag-ge":"🇬🇪","flag-gf":"🇬🇫","flag-gg":"🇬🇬","flag-gh":"🇬🇭","flag-gi":"🇬🇮","flag-gl":"🇬🇱","flag-gm":"🇬🇲","flag-gn":"🇬🇳","flag-gp":"🇬🇵","flag-gq":"🇬🇶","flag-gr":"🇬🇷","flag-gs":"🇬🇸","flag-gt":"🇬🇹","flag-gu":"🇬🇺","flag-gw":"🇬🇼","flag-gy":"🇬🇾","flag-hk":"🇭🇰","flag-hm":"🇭🇲","flag-hn":"🇭🇳","flag-hr":"🇭🇷","flag-ht":"🇭🇹","flag-hu":"🇭🇺","flag-ic":"🇮🇨","flag-id":"🇮🇩","flag-ie":"🇮🇪","flag-il":"🇮🇱","flag-im":"🇮🇲","flag-in":"🇮🇳","flag-io":"🇮🇴","flag-iq":"🇮🇶","flag-ir":"🇮🇷","flag-is":"🇮🇸","flag-it":"🇮🇹","it":"🇮🇹","flag-je":"🇯🇪","flag-jm":"🇯🇲","flag-jo":"🇯🇴","flag-jp":"🇯🇵","jp":"🇯🇵","flag-ke":"🇰🇪","flag-kg":"🇰🇬","flag-kh":"🇰🇭","flag-ki":"🇰🇮","flag-km":"🇰🇲","flag-kn":"🇰🇳","flag-kp":"🇰🇵","flag-kr":"🇰🇷","kr":"🇰🇷","flag-kw":"🇰🇼","flag-ky":"🇰🇾","flag-kz":"🇰🇿","flag-la":"🇱🇦","flag-lb":"🇱🇧","flag-lc":"🇱🇨","flag-li":"🇱🇮","flag-lk":"🇱🇰","flag-lr":"🇱🇷","flag-ls":"🇱🇸","flag-lt":"🇱🇹","flag-lu":"🇱🇺","flag-lv":"🇱🇻","flag-ly":"🇱🇾","flag-ma":"🇲🇦","flag-mc":"🇲🇨","flag-md":"🇲🇩","flag-me":"🇲🇪","flag-mf":"🇲🇫","flag-mg":"🇲🇬","flag-mh":"🇲🇭","flag-mk":"🇲🇰","flag-ml":"🇲🇱","flag-mm":"🇲🇲","flag-mn":"🇲🇳","flag-mo":"🇲🇴","flag-mp":"🇲🇵","flag-mq":"🇲🇶","flag-mr":"🇲🇷","flag-ms":"🇲🇸","flag-mt":"🇲🇹","flag-mu":"🇲🇺","flag-mv":"🇲🇻","flag-mw":"🇲🇼","flag-mx":"🇲🇽","flag-my":"🇲🇾","flag-mz":"🇲🇿","flag-na":"🇳🇦","flag-nc":"🇳🇨","flag-ne":"🇳🇪","flag-nf":"🇳🇫","flag-ng":"🇳🇬","flag-ni":"🇳🇮","flag-nl":"🇳🇱","flag-no":"🇳🇴","flag-np":"🇳🇵","flag-nr":"🇳🇷","flag-nu":"🇳🇺","flag-nz":"🇳🇿","flag-om":"🇴🇲","flag-pa":"🇵🇦","flag-pe":"🇵🇪","flag-pf":"🇵🇫","flag-pg":"🇵🇬","flag-ph":"🇵🇭","flag-pk":"🇵🇰","flag-pl":"🇵🇱","flag-pm":"🇵🇲","flag-pn":"🇵🇳","flag-pr":"🇵🇷","flag-ps":"🇵🇸","flag-pt":"🇵🇹","flag-pw":"🇵🇼","flag-py":"🇵🇾","flag-qa":"🇶🇦","flag-re":"🇷🇪","flag-ro":"🇷🇴","flag-rs":"🇷🇸","flag-ru":"🇷🇺","ru":"🇷🇺","flag-rw":"🇷🇼","flag-sa":"🇸🇦","flag-sb":"🇸🇧","flag-sc":"🇸🇨","flag-sd":"🇸🇩","flag-se":"🇸🇪","flag-sg":"🇸🇬","flag-sh":"🇸🇭","flag-si":"🇸🇮","flag-sj":"🇸🇯","flag-sk":"🇸🇰","flag-sl":"🇸🇱","flag-sm":"🇸🇲","flag-sn":"🇸🇳","flag-so":"🇸🇴","flag-sr":"🇸🇷","flag-ss":"🇸🇸","flag-st":"🇸🇹","flag-sv":"🇸🇻","flag-sx":"🇸🇽","flag-sy":"🇸🇾","flag-sz":"🇸🇿","flag-ta":"🇹🇦","flag-tc":"🇹🇨","flag-td":"🇹🇩","flag-tf":"🇹🇫","flag-tg":"🇹🇬","flag-th":"🇹🇭","flag-tj":"🇹🇯","flag-tk":"🇹🇰","flag-tl":"🇹🇱","flag-tm":"🇹🇲","flag-tn":"🇹🇳","flag-to":"🇹🇴","flag-tr":"🇹🇷","flag-tt":"🇹🇹","flag-tv":"🇹🇻","flag-tw":"🇹🇼","flag-tz":"🇹🇿","flag-ua":"🇺🇦","flag-ug":"🇺🇬","flag-um":"🇺🇲","flag-us":"🇺🇸","us":"🇺🇸","flag-uy":"🇺🇾","flag-uz":"🇺🇿","flag-va":"🇻🇦","flag-vc":"🇻🇨","flag-ve":"🇻🇪","flag-vg":"🇻🇬","flag-vi":"🇻🇮","flag-vn":"🇻🇳","flag-vu":"🇻🇺","flag-wf":"🇼🇫","flag-ws":"🇼🇸","flag-xk":"🇽🇰","flag-ye":"🇾🇪","flag-yt":"🇾🇹","flag-za":"🇿🇦","flag-zm":"🇿🇲","flag-zw":"🇿🇼","man-man-boy":"👨‍👨‍👦","man-man-boy-boy":"👨‍👨‍👦‍👦","man-man-girl":"👨‍👨‍👧","man-man-girl-boy":"👨‍👨‍👧‍👦","man-man-girl-girl":"👨‍👨‍👧‍👧","man-woman-boy-boy":"👨‍👩‍👦‍👦","man-woman-girl":"👨‍👩‍👧","man-woman-girl-boy":"👨‍👩‍👧‍👦","man-woman-girl-girl":"👨‍👩‍👧‍👧","man-heart-man":"👨‍❤️‍👨","man-kiss-man":"👨‍❤️‍💋‍👨","woman-woman-boy":"👩‍👩‍👦","woman-woman-boy-boy":"👩‍👩‍👦‍👦","woman-woman-girl":"👩‍👩‍👧","woman-woman-girl-boy":"👩‍👩‍👧‍👦","woman-woman-girl-girl":"👩‍👩‍👧‍👧","woman-heart-woman":"👩‍❤️‍👩","woman-kiss-woman":"👩‍❤️‍💋‍👩"} \ No newline at end of file diff --git a/node_modules/node-emoji/lib/emojifile.js b/node_modules/node-emoji/lib/emojifile.js deleted file mode 100644 index ac09f64..0000000 --- a/node_modules/node-emoji/lib/emojifile.js +++ /dev/null @@ -1,1304 +0,0 @@ -// from https://github.com/iamcal/js-emoji/blob/master/lib/emoji.js -var emoji = {}; -module.exports = emoji; - emoji.data = { - "00a9":[["\u00A9\uFE0F","\u00A9"],"\uE24E","\uDBBA\uDF29",["copyright"],0,0,11,0], - "00ae":[["\u00AE\uFE0F","\u00AE"],"\uE24F","\uDBBA\uDF2D",["registered"],0,1,11,0], - "203c":[["\u203C\uFE0F","\u203C"],"","\uDBBA\uDF06",["bangbang"],0,2,15,0], - "2049":[["\u2049\uFE0F","\u2049"],"","\uDBBA\uDF05",["interrobang"],0,3,15,0], - "2122":[["\u2122\uFE0F","\u2122"],"\uE537","\uDBBA\uDF2A",["tm"],0,4,11,0], - "2139":[["\u2139\uFE0F","\u2139"],"","\uDBBA\uDF47",["information_source"],0,5,15,0], - "2194":[["\u2194\uFE0F","\u2194"],"","\uDBBA\uDEF6",["left_right_arrow"],0,6,15,0], - "2195":[["\u2195\uFE0F","\u2195"],"","\uDBBA\uDEF7",["arrow_up_down"],0,7,15,0], - "2196":[["\u2196\uFE0F","\u2196"],"\uE237","\uDBBA\uDEF2",["arrow_upper_left"],0,8,15,0], - "2197":[["\u2197\uFE0F","\u2197"],"\uE236","\uDBBA\uDEF0",["arrow_upper_right"],0,9,15,0], - "2198":[["\u2198\uFE0F","\u2198"],"\uE238","\uDBBA\uDEF1",["arrow_lower_right"],0,10,15,0], - "2199":[["\u2199\uFE0F","\u2199"],"\uE239","\uDBBA\uDEF3",["arrow_lower_left"],0,11,15,0], - "21a9":[["\u21A9\uFE0F","\u21A9"],"","\uDBBA\uDF83",["leftwards_arrow_with_hook"],0,12,15,0], - "21aa":[["\u21AA\uFE0F","\u21AA"],"","\uDBBA\uDF88",["arrow_right_hook"],0,13,15,0], - "231a":[["\u231A\uFE0F","\u231A"],"","\uDBB8\uDC1D",["watch"],0,14,15,0], - "231b":[["\u231B\uFE0F","\u231B"],"","\uDBB8\uDC1C",["hourglass"],0,15,15,0], - "2328":[["\u2328"],"","",["keyboard"],0,16,7,0], - "23e9":[["\u23E9"],"\uE23C","\uDBBA\uDEFE",["fast_forward"],0,17,15,0], - "23ea":[["\u23EA"],"\uE23D","\uDBBA\uDEFF",["rewind"],0,18,15,0], - "23eb":[["\u23EB"],"","\uDBBA\uDF03",["arrow_double_up"],0,19,15,0], - "23ec":[["\u23EC"],"","\uDBBA\uDF02",["arrow_double_down"],0,20,15,0], - "23ed":[["\u23ED"],"","",["black_right_pointing_double_triangle_with_vertical_bar"],0,21,7,0], - "23ee":[["\u23EE"],"","",["black_left_pointing_double_triangle_with_vertical_bar"],0,22,7,0], - "23ef":[["\u23EF"],"","",["black_right_pointing_triangle_with_double_vertical_bar"],0,23,7,0], - "23f0":[["\u23F0"],"\uE02D","\uDBB8\uDC2A",["alarm_clock"],0,24,15,0], - "23f1":[["\u23F1"],"","",["stopwatch"],0,25,7,0], - "23f2":[["\u23F2"],"","",["timer_clock"],0,26,7,0], - "23f3":[["\u23F3"],"","\uDBB8\uDC1B",["hourglass_flowing_sand"],0,27,15,0], - "23f8":[["\u23F8"],"","",["double_vertical_bar"],0,28,7,0], - "23f9":[["\u23F9"],"","",["black_square_for_stop"],0,29,7,0], - "23fa":[["\u23FA"],"","",["black_circle_for_record"],0,30,7,0], - "24c2":[["\u24C2\uFE0F","\u24C2"],"\uE434","\uDBB9\uDFE1",["m"],0,31,15,0], - "25aa":[["\u25AA\uFE0F","\u25AA"],"\uE21A","\uDBBA\uDF6E",["black_small_square"],0,32,15,0], - "25ab":[["\u25AB\uFE0F","\u25AB"],"\uE21B","\uDBBA\uDF6D",["white_small_square"],0,33,15,0], - "25b6":[["\u25B6\uFE0F","\u25B6"],"\uE23A","\uDBBA\uDEFC",["arrow_forward"],0,34,15,0], - "25c0":[["\u25C0\uFE0F","\u25C0"],"\uE23B","\uDBBA\uDEFD",["arrow_backward"],0,35,15,0], - "25fb":[["\u25FB\uFE0F","\u25FB"],"\uE21B","\uDBBA\uDF71",["white_medium_square"],0,36,15,0], - "25fc":[["\u25FC\uFE0F","\u25FC"],"\uE21A","\uDBBA\uDF72",["black_medium_square"],0,37,15,0], - "25fd":[["\u25FD\uFE0F","\u25FD"],"\uE21B","\uDBBA\uDF6F",["white_medium_small_square"],0,38,15,0], - "25fe":[["\u25FE\uFE0F","\u25FE"],"\uE21A","\uDBBA\uDF70",["black_medium_small_square"],0,39,15,0], - "2600":[["\u2600\uFE0F","\u2600"],"\uE04A","\uDBB8\uDC00",["sunny"],0,40,15,0], - "2601":[["\u2601\uFE0F","\u2601"],"\uE049","\uDBB8\uDC01",["cloud"],1,0,15,0], - "2602":[["\u2602"],"","",["umbrella"],1,1,7,0], - "2603":[["\u2603"],"","",["showman"],1,2,7,0], - "2604":[["\u2604"],"","",["comet"],1,3,7,0], - "260e":[["\u260E\uFE0F","\u260E"],"\uE009","\uDBB9\uDD23",["phone","telephone"],1,4,15,0], - "2611":[["\u2611\uFE0F","\u2611"],"","\uDBBA\uDF8B",["ballot_box_with_check"],1,5,15,0], - "2614":[["\u2614\uFE0F","\u2614"],"\uE04B","\uDBB8\uDC02",["umbrella"],1,6,15,0], - "2615":[["\u2615\uFE0F","\u2615"],"\uE045","\uDBBA\uDD81",["coffee"],1,7,15,0], - "2618":[["\u2618"],"","",["shamrock"],1,8,7,0], - "261d":[["\u261D\uFE0F","\u261D"],"\uE00F","\uDBBA\uDF98",["point_up"],1,9,15,0], - "2620":[["\u2620"],"","",["skull_and_crossbones"],1,15,7,0], - "2622":[["\u2622"],"","",["radioactive_sign"],1,16,7,0], - "2623":[["\u2623"],"","",["biohazard_sign"],1,17,7,0], - "2626":[["\u2626"],"","",["orthodox_cross"],1,18,7,0], - "262a":[["\u262A"],"","",["star_and_crescent"],1,19,7,0], - "262e":[["\u262E"],"","",["peace_symbol"],1,20,7,0], - "262f":[["\u262F"],"","",["yin_yang"],1,21,7,0], - "2638":[["\u2638"],"","",["wheel_of_dharma"],1,22,7,0], - "2639":[["\u2639"],"","",["white_frowning_face"],1,23,7,0], - "263a":[["\u263A\uFE0F","\u263A"],"\uE414","\uDBB8\uDF36",["relaxed"],1,24,15,0], - "2648":[["\u2648\uFE0F","\u2648"],"\uE23F","\uDBB8\uDC2B",["aries"],1,25,15,0], - "2649":[["\u2649\uFE0F","\u2649"],"\uE240","\uDBB8\uDC2C",["taurus"],1,26,15,0], - "264a":[["\u264A\uFE0F","\u264A"],"\uE241","\uDBB8\uDC2D",["gemini"],1,27,15,0], - "264b":[["\u264B\uFE0F","\u264B"],"\uE242","\uDBB8\uDC2E",["cancer"],1,28,15,0], - "264c":[["\u264C\uFE0F","\u264C"],"\uE243","\uDBB8\uDC2F",["leo"],1,29,15,0], - "264d":[["\u264D\uFE0F","\u264D"],"\uE244","\uDBB8\uDC30",["virgo"],1,30,15,0], - "264e":[["\u264E\uFE0F","\u264E"],"\uE245","\uDBB8\uDC31",["libra"],1,31,15,0], - "264f":[["\u264F\uFE0F","\u264F"],"\uE246","\uDBB8\uDC32",["scorpius"],1,32,15,0], - "2650":[["\u2650\uFE0F","\u2650"],"\uE247","\uDBB8\uDC33",["sagittarius"],1,33,15,0], - "2651":[["\u2651\uFE0F","\u2651"],"\uE248","\uDBB8\uDC34",["capricorn"],1,34,15,0], - "2652":[["\u2652\uFE0F","\u2652"],"\uE249","\uDBB8\uDC35",["aquarius"],1,35,15,0], - "2653":[["\u2653\uFE0F","\u2653"],"\uE24A","\uDBB8\uDC36",["pisces"],1,36,15,0], - "2660":[["\u2660\uFE0F","\u2660"],"\uE20E","\uDBBA\uDF1B",["spades"],1,37,15,0], - "2663":[["\u2663\uFE0F","\u2663"],"\uE20F","\uDBBA\uDF1D",["clubs"],1,38,15,0], - "2665":[["\u2665\uFE0F","\u2665"],"\uE20C","\uDBBA\uDF1A",["hearts"],1,39,15,0], - "2666":[["\u2666\uFE0F","\u2666"],"\uE20D","\uDBBA\uDF1C",["diamonds"],1,40,15,0], - "2668":[["\u2668\uFE0F","\u2668"],"\uE123","\uDBB9\uDFFA",["hotsprings"],2,0,15,0], - "267b":[["\u267B\uFE0F","\u267B"],"","\uDBBA\uDF2C",["recycle"],2,1,15,0], - "267f":[["\u267F\uFE0F","\u267F"],"\uE20A","\uDBBA\uDF20",["wheelchair"],2,2,15,0], - "2692":[["\u2692"],"","",["hammer_and_pick"],2,3,7,0], - "2693":[["\u2693\uFE0F","\u2693"],"\uE202","\uDBB9\uDCC1",["anchor"],2,4,15,0], - "2694":[["\u2694"],"","",["crossed_swords"],2,5,7,0], - "2696":[["\u2696"],"","",["scales"],2,6,7,0], - "2697":[["\u2697"],"","",["alembic"],2,7,7,0], - "2699":[["\u2699"],"","",["gear"],2,8,7,0], - "269b":[["\u269B"],"","",["atom_symbol"],2,9,7,0], - "269c":[["\u269C"],"","",["fleur_de_lis"],2,10,7,0], - "26a0":[["\u26A0\uFE0F","\u26A0"],"\uE252","\uDBBA\uDF23",["warning"],2,11,15,0], - "26a1":[["\u26A1\uFE0F","\u26A1"],"\uE13D","\uDBB8\uDC04",["zap"],2,12,15,0], - "26aa":[["\u26AA\uFE0F","\u26AA"],"\uE219","\uDBBA\uDF65",["white_circle"],2,13,15,0], - "26ab":[["\u26AB\uFE0F","\u26AB"],"\uE219","\uDBBA\uDF66",["black_circle"],2,14,15,0], - "26b0":[["\u26B0"],"","",["coffin"],2,15,7,0], - "26b1":[["\u26B1"],"","",["funeral_urn"],2,16,7,0], - "26bd":[["\u26BD\uFE0F","\u26BD"],"\uE018","\uDBB9\uDFD4",["soccer"],2,17,15,0], - "26be":[["\u26BE\uFE0F","\u26BE"],"\uE016","\uDBB9\uDFD1",["baseball"],2,18,15,0], - "26c4":[["\u26C4\uFE0F","\u26C4"],"\uE048","\uDBB8\uDC03",["snowman"],2,19,15,0], - "26c5":[["\u26C5\uFE0F","\u26C5"],"\uE04A\uE049","\uDBB8\uDC0F",["partly_sunny"],2,20,15,0], - "26c8":[["\u26C8"],"","",["thunder_cloud_and_rain"],2,21,7,0], - "26ce":[["\u26CE"],"\uE24B","\uDBB8\uDC37",["ophiuchus"],2,22,15,0], - "26cf":[["\u26CF"],"","",["pick"],2,23,7,0], - "26d1":[["\u26D1"],"","",["helmet_with_white_cross"],2,24,7,0], - "26d3":[["\u26D3"],"","",["chains"],2,25,7,0], - "26d4":[["\u26D4\uFE0F","\u26D4"],"\uE137","\uDBBA\uDF26",["no_entry"],2,26,15,0], - "26e9":[["\u26E9"],"","",["shinto_shrine"],2,27,7,0], - "26ea":[["\u26EA\uFE0F","\u26EA"],"\uE037","\uDBB9\uDCBB",["church"],2,28,15,0], - "26f0":[["\u26F0"],"","",["mountain"],2,29,7,0], - "26f1":[["\u26F1"],"","",["umbrella_on_ground"],2,30,7,0], - "26f2":[["\u26F2\uFE0F","\u26F2"],"\uE121","\uDBB9\uDCBC",["fountain"],2,31,15,0], - "26f3":[["\u26F3\uFE0F","\u26F3"],"\uE014","\uDBB9\uDFD2",["golf"],2,32,15,0], - "26f4":[["\u26F4"],"","",["ferry"],2,33,7,0], - "26f5":[["\u26F5\uFE0F","\u26F5"],"\uE01C","\uDBB9\uDFEA",["boat","sailboat"],2,34,15,0], - "26f7":[["\u26F7"],"","",["skier"],2,35,7,0], - "26f8":[["\u26F8"],"","",["ice_skate"],2,36,7,0], - "26f9":[["\u26F9"],"","",["person_with_ball"],2,37,7,0], - "26fa":[["\u26FA\uFE0F","\u26FA"],"\uE122","\uDBB9\uDFFB",["tent"],3,2,15,0], - "26fd":[["\u26FD\uFE0F","\u26FD"],"\uE03A","\uDBB9\uDFF5",["fuelpump"],3,3,15,0], - "2702":[["\u2702\uFE0F","\u2702"],"\uE313","\uDBB9\uDD3E",["scissors"],3,4,15,0], - "2705":[["\u2705"],"","\uDBBA\uDF4A",["white_check_mark"],3,5,15,0], - "2708":[["\u2708\uFE0F","\u2708"],"\uE01D","\uDBB9\uDFE9",["airplane"],3,6,15,0], - "2709":[["\u2709\uFE0F","\u2709"],"\uE103","\uDBB9\uDD29",["email","envelope"],3,7,15,0], - "270a":[["\u270A"],"\uE010","\uDBBA\uDF93",["fist"],3,8,15,0], - "270b":[["\u270B"],"\uE012","\uDBBA\uDF95",["hand","raised_hand"],3,14,15,0], - "270c":[["\u270C\uFE0F","\u270C"],"\uE011","\uDBBA\uDF94",["v"],3,20,15,0], - "270d":[["\u270D"],"","",["writing_hand"],3,26,7,0], - "270f":[["\u270F\uFE0F","\u270F"],"\uE301","\uDBB9\uDD39",["pencil2"],3,32,15,0], - "2712":[["\u2712\uFE0F","\u2712"],"","\uDBB9\uDD36",["black_nib"],3,33,15,0], - "2714":[["\u2714\uFE0F","\u2714"],"","\uDBBA\uDF49",["heavy_check_mark"],3,34,15,0], - "2716":[["\u2716\uFE0F","\u2716"],"\uE333","\uDBBA\uDF53",["heavy_multiplication_x"],3,35,15,0], - "271d":[["\u271D"],"","",["latin_cross"],3,36,7,0], - "2721":[["\u2721"],"","",["star_of_david"],3,37,7,0], - "2728":[["\u2728"],"\uE32E","\uDBBA\uDF60",["sparkles"],3,38,15,0], - "2733":[["\u2733\uFE0F","\u2733"],"\uE206","\uDBBA\uDF62",["eight_spoked_asterisk"],3,39,15,0], - "2734":[["\u2734\uFE0F","\u2734"],"\uE205","\uDBBA\uDF61",["eight_pointed_black_star"],3,40,15,0], - "2744":[["\u2744\uFE0F","\u2744"],"","\uDBB8\uDC0E",["snowflake"],4,0,15,0], - "2747":[["\u2747\uFE0F","\u2747"],"\uE32E","\uDBBA\uDF77",["sparkle"],4,1,15,0], - "274c":[["\u274C"],"\uE333","\uDBBA\uDF45",["x"],4,2,15,0], - "274e":[["\u274E"],"\uE333","\uDBBA\uDF46",["negative_squared_cross_mark"],4,3,15,0], - "2753":[["\u2753"],"\uE020","\uDBBA\uDF09",["question"],4,4,15,0], - "2754":[["\u2754"],"\uE336","\uDBBA\uDF0A",["grey_question"],4,5,15,0], - "2755":[["\u2755"],"\uE337","\uDBBA\uDF0B",["grey_exclamation"],4,6,15,0], - "2757":[["\u2757\uFE0F","\u2757"],"\uE021","\uDBBA\uDF04",["exclamation","heavy_exclamation_mark"],4,7,15,0], - "2763":[["\u2763"],"","",["heavy_heart_exclamation_mark_ornament"],4,8,7,0], - "2764":[["\u2764\uFE0F","\u2764"],"\uE022","\uDBBA\uDF0C",["heart"],4,9,15,0,"<3"], - "2795":[["\u2795"],"","\uDBBA\uDF51",["heavy_plus_sign"],4,10,15,0], - "2796":[["\u2796"],"","\uDBBA\uDF52",["heavy_minus_sign"],4,11,15,0], - "2797":[["\u2797"],"","\uDBBA\uDF54",["heavy_division_sign"],4,12,15,0], - "27a1":[["\u27A1\uFE0F","\u27A1"],"\uE234","\uDBBA\uDEFA",["arrow_right"],4,13,15,0], - "27b0":[["\u27B0"],"","\uDBBA\uDF08",["curly_loop"],4,14,15,0], - "27bf":[["\u27BF"],"\uE211","\uDBBA\uDC2B",["loop"],4,15,15,0], - "2934":[["\u2934\uFE0F","\u2934"],"\uE236","\uDBBA\uDEF4",["arrow_heading_up"],4,16,15,0], - "2935":[["\u2935\uFE0F","\u2935"],"\uE238","\uDBBA\uDEF5",["arrow_heading_down"],4,17,15,0], - "2b05":[["\u2B05\uFE0F","\u2B05"],"\uE235","\uDBBA\uDEFB",["arrow_left"],4,18,15,0], - "2b06":[["\u2B06\uFE0F","\u2B06"],"\uE232","\uDBBA\uDEF8",["arrow_up"],4,19,15,0], - "2b07":[["\u2B07\uFE0F","\u2B07"],"\uE233","\uDBBA\uDEF9",["arrow_down"],4,20,15,0], - "2b1b":[["\u2B1B\uFE0F","\u2B1B"],"\uE21A","\uDBBA\uDF6C",["black_large_square"],4,21,15,0], - "2b1c":[["\u2B1C\uFE0F","\u2B1C"],"\uE21B","\uDBBA\uDF6B",["white_large_square"],4,22,15,0], - "2b50":[["\u2B50\uFE0F","\u2B50"],"\uE32F","\uDBBA\uDF68",["star"],4,23,15,0], - "2b55":[["\u2B55\uFE0F","\u2B55"],"\uE332","\uDBBA\uDF44",["o"],4,24,15,0], - "3030":[["\u3030\uFE0F","\u3030"],"","\uDBBA\uDF07",["wavy_dash"],4,25,15,0], - "303d":[["\u303D\uFE0F","\u303D"],"\uE12C","\uDBBA\uDC1B",["part_alternation_mark"],4,26,15,0], - "3297":[["\u3297\uFE0F","\u3297"],"\uE30D","\uDBBA\uDF43",["congratulations"],4,27,15,0], - "3299":[["\u3299\uFE0F","\u3299"],"\uE315","\uDBBA\uDF2B",["secret"],4,28,15,0], - "1f004":[["\uD83C\uDC04\uFE0F","\uD83C\uDC04"],"\uE12D","\uDBBA\uDC0B",["mahjong"],4,29,15,0], - "1f0cf":[["\uD83C\uDCCF"],"","\uDBBA\uDC12",["black_joker"],4,30,15,0], - "1f170":[["\uD83C\uDD70\uFE0F","\uD83C\uDD70"],"\uE532","\uDBB9\uDD0B",["a"],4,31,15,0], - "1f171":[["\uD83C\uDD71\uFE0F","\uD83C\uDD71"],"\uE533","\uDBB9\uDD0C",["b"],4,32,15,0], - "1f17e":[["\uD83C\uDD7E\uFE0F","\uD83C\uDD7E"],"\uE535","\uDBB9\uDD0E",["o2"],4,33,15,0], - "1f17f":[["\uD83C\uDD7F\uFE0F","\uD83C\uDD7F"],"\uE14F","\uDBB9\uDFF6",["parking"],4,34,15,0], - "1f18e":[["\uD83C\uDD8E"],"\uE534","\uDBB9\uDD0D",["ab"],4,35,15,0], - "1f191":[["\uD83C\uDD91"],"","\uDBBA\uDF84",["cl"],4,36,15,0], - "1f192":[["\uD83C\uDD92"],"\uE214","\uDBBA\uDF38",["cool"],4,37,15,0], - "1f193":[["\uD83C\uDD93"],"","\uDBBA\uDF21",["free"],4,38,15,0], - "1f194":[["\uD83C\uDD94"],"\uE229","\uDBBA\uDF81",["id"],4,39,15,0], - "1f195":[["\uD83C\uDD95"],"\uE212","\uDBBA\uDF36",["new"],4,40,15,0], - "1f196":[["\uD83C\uDD96"],"","\uDBBA\uDF28",["ng"],5,0,15,0], - "1f197":[["\uD83C\uDD97"],"\uE24D","\uDBBA\uDF27",["ok"],5,1,15,0], - "1f198":[["\uD83C\uDD98"],"","\uDBBA\uDF4F",["sos"],5,2,15,0], - "1f199":[["\uD83C\uDD99"],"\uE213","\uDBBA\uDF37",["up"],5,3,15,0], - "1f19a":[["\uD83C\uDD9A"],"\uE12E","\uDBBA\uDF32",["vs"],5,4,15,0], - "1f201":[["\uD83C\uDE01"],"\uE203","\uDBBA\uDF24",["koko"],5,5,15,0], - "1f202":[["\uD83C\uDE02\uFE0F","\uD83C\uDE02"],"\uE228","\uDBBA\uDF3F",["sa"],5,6,15,0], - "1f21a":[["\uD83C\uDE1A\uFE0F","\uD83C\uDE1A"],"\uE216","\uDBBA\uDF3A",["u7121"],5,7,15,0], - "1f22f":[["\uD83C\uDE2F\uFE0F","\uD83C\uDE2F"],"\uE22C","\uDBBA\uDF40",["u6307"],5,8,15,0], - "1f232":[["\uD83C\uDE32"],"","\uDBBA\uDF2E",["u7981"],5,9,15,0], - "1f233":[["\uD83C\uDE33"],"\uE22B","\uDBBA\uDF2F",["u7a7a"],5,10,15,0], - "1f234":[["\uD83C\uDE34"],"","\uDBBA\uDF30",["u5408"],5,11,15,0], - "1f235":[["\uD83C\uDE35"],"\uE22A","\uDBBA\uDF31",["u6e80"],5,12,15,0], - "1f236":[["\uD83C\uDE36"],"\uE215","\uDBBA\uDF39",["u6709"],5,13,15,0], - "1f237":[["\uD83C\uDE37\uFE0F","\uD83C\uDE37"],"\uE217","\uDBBA\uDF3B",["u6708"],5,14,15,0], - "1f238":[["\uD83C\uDE38"],"\uE218","\uDBBA\uDF3C",["u7533"],5,15,15,0], - "1f239":[["\uD83C\uDE39"],"\uE227","\uDBBA\uDF3E",["u5272"],5,16,15,0], - "1f23a":[["\uD83C\uDE3A"],"\uE22D","\uDBBA\uDF41",["u55b6"],5,17,15,0], - "1f250":[["\uD83C\uDE50"],"\uE226","\uDBBA\uDF3D",["ideograph_advantage"],5,18,15,0], - "1f251":[["\uD83C\uDE51"],"","\uDBBA\uDF50",["accept"],5,19,15,0], - "1f300":[["\uD83C\uDF00"],"\uE443","\uDBB8\uDC05",["cyclone"],5,20,15,0], - "1f301":[["\uD83C\uDF01"],"","\uDBB8\uDC06",["foggy"],5,21,15,0], - "1f302":[["\uD83C\uDF02"],"\uE43C","\uDBB8\uDC07",["closed_umbrella"],5,22,15,0], - "1f303":[["\uD83C\uDF03"],"\uE44B","\uDBB8\uDC08",["night_with_stars"],5,23,15,0], - "1f304":[["\uD83C\uDF04"],"\uE04D","\uDBB8\uDC09",["sunrise_over_mountains"],5,24,15,0], - "1f305":[["\uD83C\uDF05"],"\uE449","\uDBB8\uDC0A",["sunrise"],5,25,15,0], - "1f306":[["\uD83C\uDF06"],"\uE146","\uDBB8\uDC0B",["city_sunset"],5,26,15,0], - "1f307":[["\uD83C\uDF07"],"\uE44A","\uDBB8\uDC0C",["city_sunrise"],5,27,15,0], - "1f308":[["\uD83C\uDF08"],"\uE44C","\uDBB8\uDC0D",["rainbow"],5,28,15,0], - "1f309":[["\uD83C\uDF09"],"\uE44B","\uDBB8\uDC10",["bridge_at_night"],5,29,15,0], - "1f30a":[["\uD83C\uDF0A"],"\uE43E","\uDBB8\uDC38",["ocean"],5,30,15,0], - "1f30b":[["\uD83C\uDF0B"],"","\uDBB8\uDC3A",["volcano"],5,31,15,0], - "1f30c":[["\uD83C\uDF0C"],"\uE44B","\uDBB8\uDC3B",["milky_way"],5,32,15,0], - "1f30d":[["\uD83C\uDF0D"],"","",["earth_africa"],5,33,15,0], - "1f30e":[["\uD83C\uDF0E"],"","",["earth_americas"],5,34,15,0], - "1f30f":[["\uD83C\uDF0F"],"","\uDBB8\uDC39",["earth_asia"],5,35,15,0], - "1f310":[["\uD83C\uDF10"],"","",["globe_with_meridians"],5,36,15,0], - "1f311":[["\uD83C\uDF11"],"","\uDBB8\uDC11",["new_moon"],5,37,15,0], - "1f312":[["\uD83C\uDF12"],"","",["waxing_crescent_moon"],5,38,15,0], - "1f313":[["\uD83C\uDF13"],"\uE04C","\uDBB8\uDC13",["first_quarter_moon"],5,39,15,0], - "1f314":[["\uD83C\uDF14"],"\uE04C","\uDBB8\uDC12",["moon","waxing_gibbous_moon"],5,40,15,0], - "1f315":[["\uD83C\uDF15"],"","\uDBB8\uDC15",["full_moon"],6,0,15,0], - "1f316":[["\uD83C\uDF16"],"","",["waning_gibbous_moon"],6,1,15,0], - "1f317":[["\uD83C\uDF17"],"","",["last_quarter_moon"],6,2,15,0], - "1f318":[["\uD83C\uDF18"],"","",["waning_crescent_moon"],6,3,15,0], - "1f319":[["\uD83C\uDF19"],"\uE04C","\uDBB8\uDC14",["crescent_moon"],6,4,15,0], - "1f31a":[["\uD83C\uDF1A"],"","",["new_moon_with_face"],6,5,15,0], - "1f31b":[["\uD83C\uDF1B"],"\uE04C","\uDBB8\uDC16",["first_quarter_moon_with_face"],6,6,15,0], - "1f31c":[["\uD83C\uDF1C"],"","",["last_quarter_moon_with_face"],6,7,15,0], - "1f31d":[["\uD83C\uDF1D"],"","",["full_moon_with_face"],6,8,15,0], - "1f31e":[["\uD83C\uDF1E"],"","",["sun_with_face"],6,9,15,0], - "1f31f":[["\uD83C\uDF1F"],"\uE335","\uDBBA\uDF69",["star2"],6,10,15,0], - "1f320":[["\uD83C\uDF20"],"","\uDBBA\uDF6A",["stars"],6,11,15,0], - "1f321":[["\uD83C\uDF21"],"","",["thermometer"],6,12,15,0], - "1f324":[["\uD83C\uDF24"],"","",["mostly_sunny","sun_small_cloud"],6,13,7,0], - "1f325":[["\uD83C\uDF25"],"","",["barely_sunny","sun_behind_cloud"],6,14,7,0], - "1f326":[["\uD83C\uDF26"],"","",["partly_sunny_rain","sun_behind_rain_cloud"],6,15,7,0], - "1f327":[["\uD83C\uDF27"],"","",["rain_cloud"],6,16,15,0], - "1f328":[["\uD83C\uDF28"],"","",["snow_cloud"],6,17,15,0], - "1f329":[["\uD83C\uDF29"],"","",["lightning","lightning_cloud"],6,18,15,0], - "1f32a":[["\uD83C\uDF2A"],"","",["tornado","tornado_cloud"],6,19,15,0], - "1f32b":[["\uD83C\uDF2B"],"","",["fog"],6,20,15,0], - "1f32c":[["\uD83C\uDF2C"],"","",["wind_blowing_face"],6,21,15,0], - "1f32d":[["\uD83C\uDF2D"],"","",["hotdog"],6,22,7,0], - "1f32e":[["\uD83C\uDF2E"],"","",["taco"],6,23,7,0], - "1f32f":[["\uD83C\uDF2F"],"","",["burrito"],6,24,7,0], - "1f330":[["\uD83C\uDF30"],"","\uDBB8\uDC4C",["chestnut"],6,25,15,0], - "1f331":[["\uD83C\uDF31"],"\uE110","\uDBB8\uDC3E",["seedling"],6,26,15,0], - "1f332":[["\uD83C\uDF32"],"","",["evergreen_tree"],6,27,15,0], - "1f333":[["\uD83C\uDF33"],"","",["deciduous_tree"],6,28,15,0], - "1f334":[["\uD83C\uDF34"],"\uE307","\uDBB8\uDC47",["palm_tree"],6,29,15,0], - "1f335":[["\uD83C\uDF35"],"\uE308","\uDBB8\uDC48",["cactus"],6,30,15,0], - "1f336":[["\uD83C\uDF36"],"","",["hot_pepper"],6,31,15,0], - "1f337":[["\uD83C\uDF37"],"\uE304","\uDBB8\uDC3D",["tulip"],6,32,15,0], - "1f338":[["\uD83C\uDF38"],"\uE030","\uDBB8\uDC40",["cherry_blossom"],6,33,15,0], - "1f339":[["\uD83C\uDF39"],"\uE032","\uDBB8\uDC41",["rose"],6,34,15,0], - "1f33a":[["\uD83C\uDF3A"],"\uE303","\uDBB8\uDC45",["hibiscus"],6,35,15,0], - "1f33b":[["\uD83C\uDF3B"],"\uE305","\uDBB8\uDC46",["sunflower"],6,36,15,0], - "1f33c":[["\uD83C\uDF3C"],"\uE305","\uDBB8\uDC4D",["blossom"],6,37,15,0], - "1f33d":[["\uD83C\uDF3D"],"","\uDBB8\uDC4A",["corn"],6,38,15,0], - "1f33e":[["\uD83C\uDF3E"],"\uE444","\uDBB8\uDC49",["ear_of_rice"],6,39,15,0], - "1f33f":[["\uD83C\uDF3F"],"\uE110","\uDBB8\uDC4E",["herb"],6,40,15,0], - "1f340":[["\uD83C\uDF40"],"\uE110","\uDBB8\uDC3C",["four_leaf_clover"],7,0,15,0], - "1f341":[["\uD83C\uDF41"],"\uE118","\uDBB8\uDC3F",["maple_leaf"],7,1,15,0], - "1f342":[["\uD83C\uDF42"],"\uE119","\uDBB8\uDC42",["fallen_leaf"],7,2,15,0], - "1f343":[["\uD83C\uDF43"],"\uE447","\uDBB8\uDC43",["leaves"],7,3,15,0], - "1f344":[["\uD83C\uDF44"],"","\uDBB8\uDC4B",["mushroom"],7,4,15,0], - "1f345":[["\uD83C\uDF45"],"\uE349","\uDBB8\uDC55",["tomato"],7,5,15,0], - "1f346":[["\uD83C\uDF46"],"\uE34A","\uDBB8\uDC56",["eggplant"],7,6,15,0], - "1f347":[["\uD83C\uDF47"],"","\uDBB8\uDC59",["grapes"],7,7,15,0], - "1f348":[["\uD83C\uDF48"],"","\uDBB8\uDC57",["melon"],7,8,15,0], - "1f349":[["\uD83C\uDF49"],"\uE348","\uDBB8\uDC54",["watermelon"],7,9,15,0], - "1f34a":[["\uD83C\uDF4A"],"\uE346","\uDBB8\uDC52",["tangerine"],7,10,15,0], - "1f34b":[["\uD83C\uDF4B"],"","",["lemon"],7,11,15,0], - "1f34c":[["\uD83C\uDF4C"],"","\uDBB8\uDC50",["banana"],7,12,15,0], - "1f34d":[["\uD83C\uDF4D"],"","\uDBB8\uDC58",["pineapple"],7,13,15,0], - "1f34e":[["\uD83C\uDF4E"],"\uE345","\uDBB8\uDC51",["apple"],7,14,15,0], - "1f34f":[["\uD83C\uDF4F"],"\uE345","\uDBB8\uDC5B",["green_apple"],7,15,15,0], - "1f350":[["\uD83C\uDF50"],"","",["pear"],7,16,15,0], - "1f351":[["\uD83C\uDF51"],"","\uDBB8\uDC5A",["peach"],7,17,15,0], - "1f352":[["\uD83C\uDF52"],"","\uDBB8\uDC4F",["cherries"],7,18,15,0], - "1f353":[["\uD83C\uDF53"],"\uE347","\uDBB8\uDC53",["strawberry"],7,19,15,0], - "1f354":[["\uD83C\uDF54"],"\uE120","\uDBBA\uDD60",["hamburger"],7,20,15,0], - "1f355":[["\uD83C\uDF55"],"","\uDBBA\uDD75",["pizza"],7,21,15,0], - "1f356":[["\uD83C\uDF56"],"","\uDBBA\uDD72",["meat_on_bone"],7,22,15,0], - "1f357":[["\uD83C\uDF57"],"","\uDBBA\uDD76",["poultry_leg"],7,23,15,0], - "1f358":[["\uD83C\uDF58"],"\uE33D","\uDBBA\uDD69",["rice_cracker"],7,24,15,0], - "1f359":[["\uD83C\uDF59"],"\uE342","\uDBBA\uDD61",["rice_ball"],7,25,15,0], - "1f35a":[["\uD83C\uDF5A"],"\uE33E","\uDBBA\uDD6A",["rice"],7,26,15,0], - "1f35b":[["\uD83C\uDF5B"],"\uE341","\uDBBA\uDD6C",["curry"],7,27,15,0], - "1f35c":[["\uD83C\uDF5C"],"\uE340","\uDBBA\uDD63",["ramen"],7,28,15,0], - "1f35d":[["\uD83C\uDF5D"],"\uE33F","\uDBBA\uDD6B",["spaghetti"],7,29,15,0], - "1f35e":[["\uD83C\uDF5E"],"\uE339","\uDBBA\uDD64",["bread"],7,30,15,0], - "1f35f":[["\uD83C\uDF5F"],"\uE33B","\uDBBA\uDD67",["fries"],7,31,15,0], - "1f360":[["\uD83C\uDF60"],"","\uDBBA\uDD74",["sweet_potato"],7,32,15,0], - "1f361":[["\uD83C\uDF61"],"\uE33C","\uDBBA\uDD68",["dango"],7,33,15,0], - "1f362":[["\uD83C\uDF62"],"\uE343","\uDBBA\uDD6D",["oden"],7,34,15,0], - "1f363":[["\uD83C\uDF63"],"\uE344","\uDBBA\uDD6E",["sushi"],7,35,15,0], - "1f364":[["\uD83C\uDF64"],"","\uDBBA\uDD7F",["fried_shrimp"],7,36,15,0], - "1f365":[["\uD83C\uDF65"],"","\uDBBA\uDD73",["fish_cake"],7,37,15,0], - "1f366":[["\uD83C\uDF66"],"\uE33A","\uDBBA\uDD66",["icecream"],7,38,15,0], - "1f367":[["\uD83C\uDF67"],"\uE43F","\uDBBA\uDD71",["shaved_ice"],7,39,15,0], - "1f368":[["\uD83C\uDF68"],"","\uDBBA\uDD77",["ice_cream"],7,40,15,0], - "1f369":[["\uD83C\uDF69"],"","\uDBBA\uDD78",["doughnut"],8,0,15,0], - "1f36a":[["\uD83C\uDF6A"],"","\uDBBA\uDD79",["cookie"],8,1,15,0], - "1f36b":[["\uD83C\uDF6B"],"","\uDBBA\uDD7A",["chocolate_bar"],8,2,15,0], - "1f36c":[["\uD83C\uDF6C"],"","\uDBBA\uDD7B",["candy"],8,3,15,0], - "1f36d":[["\uD83C\uDF6D"],"","\uDBBA\uDD7C",["lollipop"],8,4,15,0], - "1f36e":[["\uD83C\uDF6E"],"","\uDBBA\uDD7D",["custard"],8,5,15,0], - "1f36f":[["\uD83C\uDF6F"],"","\uDBBA\uDD7E",["honey_pot"],8,6,15,0], - "1f370":[["\uD83C\uDF70"],"\uE046","\uDBBA\uDD62",["cake"],8,7,15,0], - "1f371":[["\uD83C\uDF71"],"\uE34C","\uDBBA\uDD6F",["bento"],8,8,15,0], - "1f372":[["\uD83C\uDF72"],"\uE34D","\uDBBA\uDD70",["stew"],8,9,15,0], - "1f373":[["\uD83C\uDF73"],"\uE147","\uDBBA\uDD65",["egg"],8,10,15,0], - "1f374":[["\uD83C\uDF74"],"\uE043","\uDBBA\uDD80",["fork_and_knife"],8,11,15,0], - "1f375":[["\uD83C\uDF75"],"\uE338","\uDBBA\uDD84",["tea"],8,12,15,0], - "1f376":[["\uD83C\uDF76"],"\uE30B","\uDBBA\uDD85",["sake"],8,13,15,0], - "1f377":[["\uD83C\uDF77"],"\uE044","\uDBBA\uDD86",["wine_glass"],8,14,15,0], - "1f378":[["\uD83C\uDF78"],"\uE044","\uDBBA\uDD82",["cocktail"],8,15,15,0], - "1f379":[["\uD83C\uDF79"],"\uE044","\uDBBA\uDD88",["tropical_drink"],8,16,15,0], - "1f37a":[["\uD83C\uDF7A"],"\uE047","\uDBBA\uDD83",["beer"],8,17,15,0], - "1f37b":[["\uD83C\uDF7B"],"\uE30C","\uDBBA\uDD87",["beers"],8,18,15,0], - "1f37c":[["\uD83C\uDF7C"],"","",["baby_bottle"],8,19,15,0], - "1f37d":[["\uD83C\uDF7D"],"","",["knife_fork_plate"],8,20,15,0], - "1f37e":[["\uD83C\uDF7E"],"","",["champagne"],8,21,7,0], - "1f37f":[["\uD83C\uDF7F"],"","",["popcorn"],8,22,7,0], - "1f380":[["\uD83C\uDF80"],"\uE314","\uDBB9\uDD0F",["ribbon"],8,23,15,0], - "1f381":[["\uD83C\uDF81"],"\uE112","\uDBB9\uDD10",["gift"],8,24,15,0], - "1f382":[["\uD83C\uDF82"],"\uE34B","\uDBB9\uDD11",["birthday"],8,25,15,0], - "1f383":[["\uD83C\uDF83"],"\uE445","\uDBB9\uDD1F",["jack_o_lantern"],8,26,15,0], - "1f384":[["\uD83C\uDF84"],"\uE033","\uDBB9\uDD12",["christmas_tree"],8,27,15,0], - "1f385":[["\uD83C\uDF85"],"\uE448","\uDBB9\uDD13",["santa"],8,28,15,0], - "1f386":[["\uD83C\uDF86"],"\uE117","\uDBB9\uDD15",["fireworks"],8,34,15,0], - "1f387":[["\uD83C\uDF87"],"\uE440","\uDBB9\uDD1D",["sparkler"],8,35,15,0], - "1f388":[["\uD83C\uDF88"],"\uE310","\uDBB9\uDD16",["balloon"],8,36,15,0], - "1f389":[["\uD83C\uDF89"],"\uE312","\uDBB9\uDD17",["tada"],8,37,15,0], - "1f38a":[["\uD83C\uDF8A"],"","\uDBB9\uDD20",["confetti_ball"],8,38,15,0], - "1f38b":[["\uD83C\uDF8B"],"","\uDBB9\uDD21",["tanabata_tree"],8,39,15,0], - "1f38c":[["\uD83C\uDF8C"],"\uE143","\uDBB9\uDD14",["crossed_flags"],8,40,15,0], - "1f38d":[["\uD83C\uDF8D"],"\uE436","\uDBB9\uDD18",["bamboo"],9,0,15,0], - "1f38e":[["\uD83C\uDF8E"],"\uE438","\uDBB9\uDD19",["dolls"],9,1,15,0], - "1f38f":[["\uD83C\uDF8F"],"\uE43B","\uDBB9\uDD1C",["flags"],9,2,15,0], - "1f390":[["\uD83C\uDF90"],"\uE442","\uDBB9\uDD1E",["wind_chime"],9,3,15,0], - "1f391":[["\uD83C\uDF91"],"\uE446","\uDBB8\uDC17",["rice_scene"],9,4,15,0], - "1f392":[["\uD83C\uDF92"],"\uE43A","\uDBB9\uDD1B",["school_satchel"],9,5,15,0], - "1f393":[["\uD83C\uDF93"],"\uE439","\uDBB9\uDD1A",["mortar_board"],9,6,15,0], - "1f396":[["\uD83C\uDF96"],"","",["medal"],9,7,15,0], - "1f397":[["\uD83C\uDF97"],"","",["reminder_ribbon"],9,8,15,0], - "1f399":[["\uD83C\uDF99"],"","",["studio_microphone"],9,9,15,0], - "1f39a":[["\uD83C\uDF9A"],"","",["level_slider"],9,10,15,0], - "1f39b":[["\uD83C\uDF9B"],"","",["control_knobs"],9,11,15,0], - "1f39e":[["\uD83C\uDF9E"],"","",["film_frames"],9,12,15,0], - "1f39f":[["\uD83C\uDF9F"],"","",["admission_tickets"],9,13,15,0], - "1f3a0":[["\uD83C\uDFA0"],"","\uDBB9\uDFFC",["carousel_horse"],9,14,15,0], - "1f3a1":[["\uD83C\uDFA1"],"\uE124","\uDBB9\uDFFD",["ferris_wheel"],9,15,15,0], - "1f3a2":[["\uD83C\uDFA2"],"\uE433","\uDBB9\uDFFE",["roller_coaster"],9,16,15,0], - "1f3a3":[["\uD83C\uDFA3"],"\uE019","\uDBB9\uDFFF",["fishing_pole_and_fish"],9,17,15,0], - "1f3a4":[["\uD83C\uDFA4"],"\uE03C","\uDBBA\uDC00",["microphone"],9,18,15,0], - "1f3a5":[["\uD83C\uDFA5"],"\uE03D","\uDBBA\uDC01",["movie_camera"],9,19,15,0], - "1f3a6":[["\uD83C\uDFA6"],"\uE507","\uDBBA\uDC02",["cinema"],9,20,15,0], - "1f3a7":[["\uD83C\uDFA7"],"\uE30A","\uDBBA\uDC03",["headphones"],9,21,15,0], - "1f3a8":[["\uD83C\uDFA8"],"\uE502","\uDBBA\uDC04",["art"],9,22,15,0], - "1f3a9":[["\uD83C\uDFA9"],"\uE503","\uDBBA\uDC05",["tophat"],9,23,15,0], - "1f3aa":[["\uD83C\uDFAA"],"","\uDBBA\uDC06",["circus_tent"],9,24,15,0], - "1f3ab":[["\uD83C\uDFAB"],"\uE125","\uDBBA\uDC07",["ticket"],9,25,15,0], - "1f3ac":[["\uD83C\uDFAC"],"\uE324","\uDBBA\uDC08",["clapper"],9,26,15,0], - "1f3ad":[["\uD83C\uDFAD"],"\uE503","\uDBBA\uDC09",["performing_arts"],9,27,15,0], - "1f3ae":[["\uD83C\uDFAE"],"","\uDBBA\uDC0A",["video_game"],9,28,15,0], - "1f3af":[["\uD83C\uDFAF"],"\uE130","\uDBBA\uDC0C",["dart"],9,29,15,0], - "1f3b0":[["\uD83C\uDFB0"],"\uE133","\uDBBA\uDC0D",["slot_machine"],9,30,15,0], - "1f3b1":[["\uD83C\uDFB1"],"\uE42C","\uDBBA\uDC0E",["8ball"],9,31,15,0], - "1f3b2":[["\uD83C\uDFB2"],"","\uDBBA\uDC0F",["game_die"],9,32,15,0], - "1f3b3":[["\uD83C\uDFB3"],"","\uDBBA\uDC10",["bowling"],9,33,15,0], - "1f3b4":[["\uD83C\uDFB4"],"","\uDBBA\uDC11",["flower_playing_cards"],9,34,15,0], - "1f3b5":[["\uD83C\uDFB5"],"\uE03E","\uDBBA\uDC13",["musical_note"],9,35,15,0], - "1f3b6":[["\uD83C\uDFB6"],"\uE326","\uDBBA\uDC14",["notes"],9,36,15,0], - "1f3b7":[["\uD83C\uDFB7"],"\uE040","\uDBBA\uDC15",["saxophone"],9,37,15,0], - "1f3b8":[["\uD83C\uDFB8"],"\uE041","\uDBBA\uDC16",["guitar"],9,38,15,0], - "1f3b9":[["\uD83C\uDFB9"],"","\uDBBA\uDC17",["musical_keyboard"],9,39,15,0], - "1f3ba":[["\uD83C\uDFBA"],"\uE042","\uDBBA\uDC18",["trumpet"],9,40,15,0], - "1f3bb":[["\uD83C\uDFBB"],"","\uDBBA\uDC19",["violin"],10,0,15,0], - "1f3bc":[["\uD83C\uDFBC"],"\uE326","\uDBBA\uDC1A",["musical_score"],10,1,15,0], - "1f3bd":[["\uD83C\uDFBD"],"","\uDBB9\uDFD0",["running_shirt_with_sash"],10,2,15,0], - "1f3be":[["\uD83C\uDFBE"],"\uE015","\uDBB9\uDFD3",["tennis"],10,3,15,0], - "1f3bf":[["\uD83C\uDFBF"],"\uE013","\uDBB9\uDFD5",["ski"],10,4,15,0], - "1f3c0":[["\uD83C\uDFC0"],"\uE42A","\uDBB9\uDFD6",["basketball"],10,5,15,0], - "1f3c1":[["\uD83C\uDFC1"],"\uE132","\uDBB9\uDFD7",["checkered_flag"],10,6,15,0], - "1f3c2":[["\uD83C\uDFC2"],"","\uDBB9\uDFD8",["snowboarder"],10,7,15,0], - "1f3c3":[["\uD83C\uDFC3"],"\uE115","\uDBB9\uDFD9",["runner","running"],10,8,15,0], - "1f3c4":[["\uD83C\uDFC4"],"\uE017","\uDBB9\uDFDA",["surfer"],10,14,15,0], - "1f3c5":[["\uD83C\uDFC5"],"","",["sports_medal"],10,20,15,0], - "1f3c6":[["\uD83C\uDFC6"],"\uE131","\uDBB9\uDFDB",["trophy"],10,21,15,0], - "1f3c7":[["\uD83C\uDFC7"],"","",["horse_racing"],10,22,15,0], - "1f3c8":[["\uD83C\uDFC8"],"\uE42B","\uDBB9\uDFDD",["football"],10,28,15,0], - "1f3c9":[["\uD83C\uDFC9"],"","",["rugby_football"],10,29,15,0], - "1f3ca":[["\uD83C\uDFCA"],"\uE42D","\uDBB9\uDFDE",["swimmer"],10,30,15,0], - "1f3cb":[["\uD83C\uDFCB"],"","",["weight_lifter"],10,36,15,0], - "1f3cc":[["\uD83C\uDFCC"],"","",["golfer"],11,1,15,0], - "1f3cd":[["\uD83C\uDFCD"],"","",["racing_motorcycle"],11,2,15,0], - "1f3ce":[["\uD83C\uDFCE"],"","",["racing_car"],11,3,15,0], - "1f3cf":[["\uD83C\uDFCF"],"","",["cricket_bat_and_ball"],11,4,7,0], - "1f3d0":[["\uD83C\uDFD0"],"","",["volleyball"],11,5,7,0], - "1f3d1":[["\uD83C\uDFD1"],"","",["field_hockey_stick_and_ball"],11,6,7,0], - "1f3d2":[["\uD83C\uDFD2"],"","",["ice_hockey_stick_and_puck"],11,7,7,0], - "1f3d3":[["\uD83C\uDFD3"],"","",["table_tennis_paddle_and_ball"],11,8,7,0], - "1f3d4":[["\uD83C\uDFD4"],"","",["snow_capped_mountain"],11,9,15,0], - "1f3d5":[["\uD83C\uDFD5"],"","",["camping"],11,10,15,0], - "1f3d6":[["\uD83C\uDFD6"],"","",["beach_with_umbrella"],11,11,15,0], - "1f3d7":[["\uD83C\uDFD7"],"","",["building_construction"],11,12,15,0], - "1f3d8":[["\uD83C\uDFD8"],"","",["house_buildings"],11,13,15,0], - "1f3d9":[["\uD83C\uDFD9"],"","",["cityscape"],11,14,15,0], - "1f3da":[["\uD83C\uDFDA"],"","",["derelict_house_building"],11,15,15,0], - "1f3db":[["\uD83C\uDFDB"],"","",["classical_building"],11,16,15,0], - "1f3dc":[["\uD83C\uDFDC"],"","",["desert"],11,17,15,0], - "1f3dd":[["\uD83C\uDFDD"],"","",["desert_island"],11,18,15,0], - "1f3de":[["\uD83C\uDFDE"],"","",["national_park"],11,19,15,0], - "1f3df":[["\uD83C\uDFDF"],"","",["stadium"],11,20,15,0], - "1f3e0":[["\uD83C\uDFE0"],"\uE036","\uDBB9\uDCB0",["house"],11,21,15,0], - "1f3e1":[["\uD83C\uDFE1"],"\uE036","\uDBB9\uDCB1",["house_with_garden"],11,22,15,0], - "1f3e2":[["\uD83C\uDFE2"],"\uE038","\uDBB9\uDCB2",["office"],11,23,15,0], - "1f3e3":[["\uD83C\uDFE3"],"\uE153","\uDBB9\uDCB3",["post_office"],11,24,15,0], - "1f3e4":[["\uD83C\uDFE4"],"","",["european_post_office"],11,25,15,0], - "1f3e5":[["\uD83C\uDFE5"],"\uE155","\uDBB9\uDCB4",["hospital"],11,26,15,0], - "1f3e6":[["\uD83C\uDFE6"],"\uE14D","\uDBB9\uDCB5",["bank"],11,27,15,0], - "1f3e7":[["\uD83C\uDFE7"],"\uE154","\uDBB9\uDCB6",["atm"],11,28,15,0], - "1f3e8":[["\uD83C\uDFE8"],"\uE158","\uDBB9\uDCB7",["hotel"],11,29,15,0], - "1f3e9":[["\uD83C\uDFE9"],"\uE501","\uDBB9\uDCB8",["love_hotel"],11,30,15,0], - "1f3ea":[["\uD83C\uDFEA"],"\uE156","\uDBB9\uDCB9",["convenience_store"],11,31,15,0], - "1f3eb":[["\uD83C\uDFEB"],"\uE157","\uDBB9\uDCBA",["school"],11,32,15,0], - "1f3ec":[["\uD83C\uDFEC"],"\uE504","\uDBB9\uDCBD",["department_store"],11,33,15,0], - "1f3ed":[["\uD83C\uDFED"],"\uE508","\uDBB9\uDCC0",["factory"],11,34,15,0], - "1f3ee":[["\uD83C\uDFEE"],"\uE30B","\uDBB9\uDCC2",["izakaya_lantern","lantern"],11,35,15,0], - "1f3ef":[["\uD83C\uDFEF"],"\uE505","\uDBB9\uDCBE",["japanese_castle"],11,36,15,0], - "1f3f0":[["\uD83C\uDFF0"],"\uE506","\uDBB9\uDCBF",["european_castle"],11,37,15,0], - "1f3f3":[["\uD83C\uDFF3"],"","",["waving_white_flag"],11,38,15,0], - "1f3f4":[["\uD83C\uDFF4"],"","",["waving_black_flag"],11,39,15,0], - "1f3f5":[["\uD83C\uDFF5"],"","",["rosette"],11,40,15,0], - "1f3f7":[["\uD83C\uDFF7"],"","",["label"],12,0,15,0], - "1f3f8":[["\uD83C\uDFF8"],"","",["badminton_racquet_and_shuttlecock"],12,1,7,0], - "1f3f9":[["\uD83C\uDFF9"],"","",["bow_and_arrow"],12,2,7,0], - "1f3fa":[["\uD83C\uDFFA"],"","",["amphora"],12,3,7,0], - "1f3fb":[["\uD83C\uDFFB"],"","",["skin-tone-2"],12,4,5,0], - "1f3fc":[["\uD83C\uDFFC"],"","",["skin-tone-3"],12,5,5,0], - "1f3fd":[["\uD83C\uDFFD"],"","",["skin-tone-4"],12,6,5,0], - "1f3fe":[["\uD83C\uDFFE"],"","",["skin-tone-5"],12,7,5,0], - "1f3ff":[["\uD83C\uDFFF"],"","",["skin-tone-6"],12,8,5,0], - "1f400":[["\uD83D\uDC00"],"","",["rat"],12,9,15,0], - "1f401":[["\uD83D\uDC01"],"","",["mouse2"],12,10,15,0], - "1f402":[["\uD83D\uDC02"],"","",["ox"],12,11,15,0], - "1f403":[["\uD83D\uDC03"],"","",["water_buffalo"],12,12,15,0], - "1f404":[["\uD83D\uDC04"],"","",["cow2"],12,13,15,0], - "1f405":[["\uD83D\uDC05"],"","",["tiger2"],12,14,15,0], - "1f406":[["\uD83D\uDC06"],"","",["leopard"],12,15,15,0], - "1f407":[["\uD83D\uDC07"],"","",["rabbit2"],12,16,15,0], - "1f408":[["\uD83D\uDC08"],"","",["cat2"],12,17,15,0], - "1f409":[["\uD83D\uDC09"],"","",["dragon"],12,18,15,0], - "1f40a":[["\uD83D\uDC0A"],"","",["crocodile"],12,19,15,0], - "1f40b":[["\uD83D\uDC0B"],"","",["whale2"],12,20,15,0], - "1f40c":[["\uD83D\uDC0C"],"","\uDBB8\uDDB9",["snail"],12,21,15,0], - "1f40d":[["\uD83D\uDC0D"],"\uE52D","\uDBB8\uDDD3",["snake"],12,22,15,0], - "1f40e":[["\uD83D\uDC0E"],"\uE134","\uDBB9\uDFDC",["racehorse"],12,23,15,0], - "1f40f":[["\uD83D\uDC0F"],"","",["ram"],12,24,15,0], - "1f410":[["\uD83D\uDC10"],"","",["goat"],12,25,15,0], - "1f411":[["\uD83D\uDC11"],"\uE529","\uDBB8\uDDCF",["sheep"],12,26,15,0], - "1f412":[["\uD83D\uDC12"],"\uE528","\uDBB8\uDDCE",["monkey"],12,27,15,0], - "1f413":[["\uD83D\uDC13"],"","",["rooster"],12,28,15,0], - "1f414":[["\uD83D\uDC14"],"\uE52E","\uDBB8\uDDD4",["chicken"],12,29,15,0], - "1f415":[["\uD83D\uDC15"],"","",["dog2"],12,30,15,0], - "1f416":[["\uD83D\uDC16"],"","",["pig2"],12,31,15,0], - "1f417":[["\uD83D\uDC17"],"\uE52F","\uDBB8\uDDD5",["boar"],12,32,15,0], - "1f418":[["\uD83D\uDC18"],"\uE526","\uDBB8\uDDCC",["elephant"],12,33,15,0], - "1f419":[["\uD83D\uDC19"],"\uE10A","\uDBB8\uDDC5",["octopus"],12,34,15,0], - "1f41a":[["\uD83D\uDC1A"],"\uE441","\uDBB8\uDDC6",["shell"],12,35,15,0], - "1f41b":[["\uD83D\uDC1B"],"\uE525","\uDBB8\uDDCB",["bug"],12,36,15,0], - "1f41c":[["\uD83D\uDC1C"],"","\uDBB8\uDDDA",["ant"],12,37,15,0], - "1f41d":[["\uD83D\uDC1D"],"","\uDBB8\uDDE1",["bee","honeybee"],12,38,15,0], - "1f41e":[["\uD83D\uDC1E"],"","\uDBB8\uDDE2",["beetle"],12,39,15,0], - "1f41f":[["\uD83D\uDC1F"],"\uE019","\uDBB8\uDDBD",["fish"],12,40,15,0], - "1f420":[["\uD83D\uDC20"],"\uE522","\uDBB8\uDDC9",["tropical_fish"],13,0,15,0], - "1f421":[["\uD83D\uDC21"],"\uE019","\uDBB8\uDDD9",["blowfish"],13,1,15,0], - "1f422":[["\uD83D\uDC22"],"","\uDBB8\uDDDC",["turtle"],13,2,15,0], - "1f423":[["\uD83D\uDC23"],"\uE523","\uDBB8\uDDDD",["hatching_chick"],13,3,15,0], - "1f424":[["\uD83D\uDC24"],"\uE523","\uDBB8\uDDBA",["baby_chick"],13,4,15,0], - "1f425":[["\uD83D\uDC25"],"\uE523","\uDBB8\uDDBB",["hatched_chick"],13,5,15,0], - "1f426":[["\uD83D\uDC26"],"\uE521","\uDBB8\uDDC8",["bird"],13,6,15,0], - "1f427":[["\uD83D\uDC27"],"\uE055","\uDBB8\uDDBC",["penguin"],13,7,15,0], - "1f428":[["\uD83D\uDC28"],"\uE527","\uDBB8\uDDCD",["koala"],13,8,15,0], - "1f429":[["\uD83D\uDC29"],"\uE052","\uDBB8\uDDD8",["poodle"],13,9,15,0], - "1f42a":[["\uD83D\uDC2A"],"","",["dromedary_camel"],13,10,15,0], - "1f42b":[["\uD83D\uDC2B"],"\uE530","\uDBB8\uDDD6",["camel"],13,11,15,0], - "1f42c":[["\uD83D\uDC2C"],"\uE520","\uDBB8\uDDC7",["dolphin","flipper"],13,12,15,0], - "1f42d":[["\uD83D\uDC2D"],"\uE053","\uDBB8\uDDC2",["mouse"],13,13,15,0], - "1f42e":[["\uD83D\uDC2E"],"\uE52B","\uDBB8\uDDD1",["cow"],13,14,15,0], - "1f42f":[["\uD83D\uDC2F"],"\uE050","\uDBB8\uDDC0",["tiger"],13,15,15,0], - "1f430":[["\uD83D\uDC30"],"\uE52C","\uDBB8\uDDD2",["rabbit"],13,16,15,0], - "1f431":[["\uD83D\uDC31"],"\uE04F","\uDBB8\uDDB8",["cat"],13,17,15,0], - "1f432":[["\uD83D\uDC32"],"","\uDBB8\uDDDE",["dragon_face"],13,18,15,0], - "1f433":[["\uD83D\uDC33"],"\uE054","\uDBB8\uDDC3",["whale"],13,19,15,0], - "1f434":[["\uD83D\uDC34"],"\uE01A","\uDBB8\uDDBE",["horse"],13,20,15,0], - "1f435":[["\uD83D\uDC35"],"\uE109","\uDBB8\uDDC4",["monkey_face"],13,21,15,0], - "1f436":[["\uD83D\uDC36"],"\uE052","\uDBB8\uDDB7",["dog"],13,22,15,0], - "1f437":[["\uD83D\uDC37"],"\uE10B","\uDBB8\uDDBF",["pig"],13,23,15,0], - "1f438":[["\uD83D\uDC38"],"\uE531","\uDBB8\uDDD7",["frog"],13,24,15,0], - "1f439":[["\uD83D\uDC39"],"\uE524","\uDBB8\uDDCA",["hamster"],13,25,15,0], - "1f43a":[["\uD83D\uDC3A"],"\uE52A","\uDBB8\uDDD0",["wolf"],13,26,15,0], - "1f43b":[["\uD83D\uDC3B"],"\uE051","\uDBB8\uDDC1",["bear"],13,27,15,0], - "1f43c":[["\uD83D\uDC3C"],"","\uDBB8\uDDDF",["panda_face"],13,28,15,0], - "1f43d":[["\uD83D\uDC3D"],"\uE10B","\uDBB8\uDDE0",["pig_nose"],13,29,15,0], - "1f43e":[["\uD83D\uDC3E"],"\uE536","\uDBB8\uDDDB",["feet","paw_prints"],13,30,15,0], - "1f43f":[["\uD83D\uDC3F"],"","",["chipmunk"],13,31,15,0], - "1f440":[["\uD83D\uDC40"],"\uE419","\uDBB8\uDD90",["eyes"],13,32,15,0], - "1f441":[["\uD83D\uDC41"],"","",["eye"],13,33,15,0], - "1f442":[["\uD83D\uDC42"],"\uE41B","\uDBB8\uDD91",["ear"],13,34,15,0], - "1f443":[["\uD83D\uDC43"],"\uE41A","\uDBB8\uDD92",["nose"],13,40,15,0], - "1f444":[["\uD83D\uDC44"],"\uE41C","\uDBB8\uDD93",["lips"],14,5,15,0], - "1f445":[["\uD83D\uDC45"],"\uE409","\uDBB8\uDD94",["tongue"],14,6,15,0], - "1f446":[["\uD83D\uDC46"],"\uE22E","\uDBBA\uDF99",["point_up_2"],14,7,15,0], - "1f447":[["\uD83D\uDC47"],"\uE22F","\uDBBA\uDF9A",["point_down"],14,13,15,0], - "1f448":[["\uD83D\uDC48"],"\uE230","\uDBBA\uDF9B",["point_left"],14,19,15,0], - "1f449":[["\uD83D\uDC49"],"\uE231","\uDBBA\uDF9C",["point_right"],14,25,15,0], - "1f44a":[["\uD83D\uDC4A"],"\uE00D","\uDBBA\uDF96",["facepunch","punch"],14,31,15,0], - "1f44b":[["\uD83D\uDC4B"],"\uE41E","\uDBBA\uDF9D",["wave"],14,37,15,0], - "1f44c":[["\uD83D\uDC4C"],"\uE420","\uDBBA\uDF9F",["ok_hand"],15,2,15,0], - "1f44d":[["\uD83D\uDC4D"],"\uE00E","\uDBBA\uDF97",["+1","thumbsup"],15,8,15,0], - "1f44e":[["\uD83D\uDC4E"],"\uE421","\uDBBA\uDFA0",["-1","thumbsdown"],15,14,15,0], - "1f44f":[["\uD83D\uDC4F"],"\uE41F","\uDBBA\uDF9E",["clap"],15,20,15,0], - "1f450":[["\uD83D\uDC50"],"\uE422","\uDBBA\uDFA1",["open_hands"],15,26,15,0], - "1f451":[["\uD83D\uDC51"],"\uE10E","\uDBB9\uDCD1",["crown"],15,32,15,0], - "1f452":[["\uD83D\uDC52"],"\uE318","\uDBB9\uDCD4",["womans_hat"],15,33,15,0], - "1f453":[["\uD83D\uDC53"],"","\uDBB9\uDCCE",["eyeglasses"],15,34,15,0], - "1f454":[["\uD83D\uDC54"],"\uE302","\uDBB9\uDCD3",["necktie"],15,35,15,0], - "1f455":[["\uD83D\uDC55"],"\uE006","\uDBB9\uDCCF",["shirt","tshirt"],15,36,15,0], - "1f456":[["\uD83D\uDC56"],"","\uDBB9\uDCD0",["jeans"],15,37,15,0], - "1f457":[["\uD83D\uDC57"],"\uE319","\uDBB9\uDCD5",["dress"],15,38,15,0], - "1f458":[["\uD83D\uDC58"],"\uE321","\uDBB9\uDCD9",["kimono"],15,39,15,0], - "1f459":[["\uD83D\uDC59"],"\uE322","\uDBB9\uDCDA",["bikini"],15,40,15,0], - "1f45a":[["\uD83D\uDC5A"],"\uE006","\uDBB9\uDCDB",["womans_clothes"],16,0,15,0], - "1f45b":[["\uD83D\uDC5B"],"","\uDBB9\uDCDC",["purse"],16,1,15,0], - "1f45c":[["\uD83D\uDC5C"],"\uE323","\uDBB9\uDCF0",["handbag"],16,2,15,0], - "1f45d":[["\uD83D\uDC5D"],"","\uDBB9\uDCF1",["pouch"],16,3,15,0], - "1f45e":[["\uD83D\uDC5E"],"\uE007","\uDBB9\uDCCC",["mans_shoe","shoe"],16,4,15,0], - "1f45f":[["\uD83D\uDC5F"],"\uE007","\uDBB9\uDCCD",["athletic_shoe"],16,5,15,0], - "1f460":[["\uD83D\uDC60"],"\uE13E","\uDBB9\uDCD6",["high_heel"],16,6,15,0], - "1f461":[["\uD83D\uDC61"],"\uE31A","\uDBB9\uDCD7",["sandal"],16,7,15,0], - "1f462":[["\uD83D\uDC62"],"\uE31B","\uDBB9\uDCD8",["boot"],16,8,15,0], - "1f463":[["\uD83D\uDC63"],"\uE536","\uDBB9\uDD53",["footprints"],16,9,15,0], - "1f464":[["\uD83D\uDC64"],"","\uDBB8\uDD9A",["bust_in_silhouette"],16,10,15,0], - "1f465":[["\uD83D\uDC65"],"","",["busts_in_silhouette"],16,11,15,0], - "1f466":[["\uD83D\uDC66"],"\uE001","\uDBB8\uDD9B",["boy"],16,12,15,0], - "1f467":[["\uD83D\uDC67"],"\uE002","\uDBB8\uDD9C",["girl"],16,18,15,0], - "1f468":[["\uD83D\uDC68"],"\uE004","\uDBB8\uDD9D",["man"],16,24,15,0], - "1f469":[["\uD83D\uDC69"],"\uE005","\uDBB8\uDD9E",["woman"],16,30,15,0], - "1f46a":[["\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66","\uD83D\uDC6A"],"","\uDBB8\uDD9F",["family","man-woman-boy"],16,36,15,0], - "1f46b":[["\uD83D\uDC6B"],"\uE428","\uDBB8\uDDA0",["couple","man_and_woman_holding_hands"],16,37,15,0], - "1f46c":[["\uD83D\uDC6C"],"","",["two_men_holding_hands"],16,38,15,0], - "1f46d":[["\uD83D\uDC6D"],"","",["two_women_holding_hands"],16,39,15,0], - "1f46e":[["\uD83D\uDC6E"],"\uE152","\uDBB8\uDDA1",["cop"],16,40,15,0], - "1f46f":[["\uD83D\uDC6F"],"\uE429","\uDBB8\uDDA2",["dancers"],17,5,15,0], - "1f470":[["\uD83D\uDC70"],"","\uDBB8\uDDA3",["bride_with_veil"],17,6,15,0], - "1f471":[["\uD83D\uDC71"],"\uE515","\uDBB8\uDDA4",["person_with_blond_hair"],17,12,15,0], - "1f472":[["\uD83D\uDC72"],"\uE516","\uDBB8\uDDA5",["man_with_gua_pi_mao"],17,18,15,0], - "1f473":[["\uD83D\uDC73"],"\uE517","\uDBB8\uDDA6",["man_with_turban"],17,24,15,0], - "1f474":[["\uD83D\uDC74"],"\uE518","\uDBB8\uDDA7",["older_man"],17,30,15,0], - "1f475":[["\uD83D\uDC75"],"\uE519","\uDBB8\uDDA8",["older_woman"],17,36,15,0], - "1f476":[["\uD83D\uDC76"],"\uE51A","\uDBB8\uDDA9",["baby"],18,1,15,0], - "1f477":[["\uD83D\uDC77"],"\uE51B","\uDBB8\uDDAA",["construction_worker"],18,7,15,0], - "1f478":[["\uD83D\uDC78"],"\uE51C","\uDBB8\uDDAB",["princess"],18,13,15,0], - "1f479":[["\uD83D\uDC79"],"","\uDBB8\uDDAC",["japanese_ogre"],18,19,15,0], - "1f47a":[["\uD83D\uDC7A"],"","\uDBB8\uDDAD",["japanese_goblin"],18,20,15,0], - "1f47b":[["\uD83D\uDC7B"],"\uE11B","\uDBB8\uDDAE",["ghost"],18,21,15,0], - "1f47c":[["\uD83D\uDC7C"],"\uE04E","\uDBB8\uDDAF",["angel"],18,22,15,0], - "1f47d":[["\uD83D\uDC7D"],"\uE10C","\uDBB8\uDDB0",["alien"],18,28,15,0], - "1f47e":[["\uD83D\uDC7E"],"\uE12B","\uDBB8\uDDB1",["space_invader"],18,29,15,0], - "1f47f":[["\uD83D\uDC7F"],"\uE11A","\uDBB8\uDDB2",["imp"],18,30,15,0], - "1f480":[["\uD83D\uDC80"],"\uE11C","\uDBB8\uDDB3",["skull"],18,31,15,0], - "1f481":[["\uD83D\uDC81"],"\uE253","\uDBB8\uDDB4",["information_desk_person"],18,32,15,0], - "1f482":[["\uD83D\uDC82"],"\uE51E","\uDBB8\uDDB5",["guardsman"],18,38,15,0], - "1f483":[["\uD83D\uDC83"],"\uE51F","\uDBB8\uDDB6",["dancer"],19,3,15,0], - "1f484":[["\uD83D\uDC84"],"\uE31C","\uDBB8\uDD95",["lipstick"],19,9,15,0], - "1f485":[["\uD83D\uDC85"],"\uE31D","\uDBB8\uDD96",["nail_care"],19,10,15,0], - "1f486":[["\uD83D\uDC86"],"\uE31E","\uDBB8\uDD97",["massage"],19,16,15,0], - "1f487":[["\uD83D\uDC87"],"\uE31F","\uDBB8\uDD98",["haircut"],19,22,15,0], - "1f488":[["\uD83D\uDC88"],"\uE320","\uDBB8\uDD99",["barber"],19,28,15,0], - "1f489":[["\uD83D\uDC89"],"\uE13B","\uDBB9\uDD09",["syringe"],19,29,15,0], - "1f48a":[["\uD83D\uDC8A"],"\uE30F","\uDBB9\uDD0A",["pill"],19,30,15,0], - "1f48b":[["\uD83D\uDC8B"],"\uE003","\uDBBA\uDC23",["kiss"],19,31,15,0], - "1f48c":[["\uD83D\uDC8C"],"\uE103\uE328","\uDBBA\uDC24",["love_letter"],19,32,15,0], - "1f48d":[["\uD83D\uDC8D"],"\uE034","\uDBBA\uDC25",["ring"],19,33,15,0], - "1f48e":[["\uD83D\uDC8E"],"\uE035","\uDBBA\uDC26",["gem"],19,34,15,0], - "1f48f":[["\uD83D\uDC8F"],"\uE111","\uDBBA\uDC27",["couplekiss"],19,35,15,0], - "1f490":[["\uD83D\uDC90"],"\uE306","\uDBBA\uDC28",["bouquet"],19,36,15,0], - "1f491":[["\uD83D\uDC91"],"\uE425","\uDBBA\uDC29",["couple_with_heart"],19,37,15,0], - "1f492":[["\uD83D\uDC92"],"\uE43D","\uDBBA\uDC2A",["wedding"],19,38,15,0], - "1f493":[["\uD83D\uDC93"],"\uE327","\uDBBA\uDF0D",["heartbeat"],19,39,15,0], - "1f494":[["\uD83D\uDC94"],"\uE023","\uDBBA\uDF0E",["broken_heart"],19,40,15,0,"<\/3"], - "1f495":[["\uD83D\uDC95"],"\uE327","\uDBBA\uDF0F",["two_hearts"],20,0,15,0], - "1f496":[["\uD83D\uDC96"],"\uE327","\uDBBA\uDF10",["sparkling_heart"],20,1,15,0], - "1f497":[["\uD83D\uDC97"],"\uE328","\uDBBA\uDF11",["heartpulse"],20,2,15,0], - "1f498":[["\uD83D\uDC98"],"\uE329","\uDBBA\uDF12",["cupid"],20,3,15,0], - "1f499":[["\uD83D\uDC99"],"\uE32A","\uDBBA\uDF13",["blue_heart"],20,4,15,0,"<3"], - "1f49a":[["\uD83D\uDC9A"],"\uE32B","\uDBBA\uDF14",["green_heart"],20,5,15,0,"<3"], - "1f49b":[["\uD83D\uDC9B"],"\uE32C","\uDBBA\uDF15",["yellow_heart"],20,6,15,0,"<3"], - "1f49c":[["\uD83D\uDC9C"],"\uE32D","\uDBBA\uDF16",["purple_heart"],20,7,15,0,"<3"], - "1f49d":[["\uD83D\uDC9D"],"\uE437","\uDBBA\uDF17",["gift_heart"],20,8,15,0], - "1f49e":[["\uD83D\uDC9E"],"\uE327","\uDBBA\uDF18",["revolving_hearts"],20,9,15,0], - "1f49f":[["\uD83D\uDC9F"],"\uE204","\uDBBA\uDF19",["heart_decoration"],20,10,15,0], - "1f4a0":[["\uD83D\uDCA0"],"","\uDBBA\uDF55",["diamond_shape_with_a_dot_inside"],20,11,15,0], - "1f4a1":[["\uD83D\uDCA1"],"\uE10F","\uDBBA\uDF56",["bulb"],20,12,15,0], - "1f4a2":[["\uD83D\uDCA2"],"\uE334","\uDBBA\uDF57",["anger"],20,13,15,0], - "1f4a3":[["\uD83D\uDCA3"],"\uE311","\uDBBA\uDF58",["bomb"],20,14,15,0], - "1f4a4":[["\uD83D\uDCA4"],"\uE13C","\uDBBA\uDF59",["zzz"],20,15,15,0], - "1f4a5":[["\uD83D\uDCA5"],"","\uDBBA\uDF5A",["boom","collision"],20,16,15,0], - "1f4a6":[["\uD83D\uDCA6"],"\uE331","\uDBBA\uDF5B",["sweat_drops"],20,17,15,0], - "1f4a7":[["\uD83D\uDCA7"],"\uE331","\uDBBA\uDF5C",["droplet"],20,18,15,0], - "1f4a8":[["\uD83D\uDCA8"],"\uE330","\uDBBA\uDF5D",["dash"],20,19,15,0], - "1f4a9":[["\uD83D\uDCA9"],"\uE05A","\uDBB9\uDCF4",["hankey","poop","shit"],20,20,15,0], - "1f4aa":[["\uD83D\uDCAA"],"\uE14C","\uDBBA\uDF5E",["muscle"],20,21,15,0], - "1f4ab":[["\uD83D\uDCAB"],"\uE407","\uDBBA\uDF5F",["dizzy"],20,27,15,0], - "1f4ac":[["\uD83D\uDCAC"],"","\uDBB9\uDD32",["speech_balloon"],20,28,15,0], - "1f4ad":[["\uD83D\uDCAD"],"","",["thought_balloon"],20,29,15,0], - "1f4ae":[["\uD83D\uDCAE"],"","\uDBBA\uDF7A",["white_flower"],20,30,15,0], - "1f4af":[["\uD83D\uDCAF"],"","\uDBBA\uDF7B",["100"],20,31,15,0], - "1f4b0":[["\uD83D\uDCB0"],"\uE12F","\uDBB9\uDCDD",["moneybag"],20,32,15,0], - "1f4b1":[["\uD83D\uDCB1"],"\uE149","\uDBB9\uDCDE",["currency_exchange"],20,33,15,0], - "1f4b2":[["\uD83D\uDCB2"],"\uE12F","\uDBB9\uDCE0",["heavy_dollar_sign"],20,34,15,0], - "1f4b3":[["\uD83D\uDCB3"],"","\uDBB9\uDCE1",["credit_card"],20,35,15,0], - "1f4b4":[["\uD83D\uDCB4"],"","\uDBB9\uDCE2",["yen"],20,36,15,0], - "1f4b5":[["\uD83D\uDCB5"],"\uE12F","\uDBB9\uDCE3",["dollar"],20,37,15,0], - "1f4b6":[["\uD83D\uDCB6"],"","",["euro"],20,38,15,0], - "1f4b7":[["\uD83D\uDCB7"],"","",["pound"],20,39,15,0], - "1f4b8":[["\uD83D\uDCB8"],"","\uDBB9\uDCE4",["money_with_wings"],20,40,15,0], - "1f4b9":[["\uD83D\uDCB9"],"\uE14A","\uDBB9\uDCDF",["chart"],21,0,15,0], - "1f4ba":[["\uD83D\uDCBA"],"\uE11F","\uDBB9\uDD37",["seat"],21,1,15,0], - "1f4bb":[["\uD83D\uDCBB"],"\uE00C","\uDBB9\uDD38",["computer"],21,2,15,0], - "1f4bc":[["\uD83D\uDCBC"],"\uE11E","\uDBB9\uDD3B",["briefcase"],21,3,15,0], - "1f4bd":[["\uD83D\uDCBD"],"\uE316","\uDBB9\uDD3C",["minidisc"],21,4,15,0], - "1f4be":[["\uD83D\uDCBE"],"\uE316","\uDBB9\uDD3D",["floppy_disk"],21,5,15,0], - "1f4bf":[["\uD83D\uDCBF"],"\uE126","\uDBBA\uDC1D",["cd"],21,6,15,0], - "1f4c0":[["\uD83D\uDCC0"],"\uE127","\uDBBA\uDC1E",["dvd"],21,7,15,0], - "1f4c1":[["\uD83D\uDCC1"],"","\uDBB9\uDD43",["file_folder"],21,8,15,0], - "1f4c2":[["\uD83D\uDCC2"],"","\uDBB9\uDD44",["open_file_folder"],21,9,15,0], - "1f4c3":[["\uD83D\uDCC3"],"\uE301","\uDBB9\uDD40",["page_with_curl"],21,10,15,0], - "1f4c4":[["\uD83D\uDCC4"],"\uE301","\uDBB9\uDD41",["page_facing_up"],21,11,15,0], - "1f4c5":[["\uD83D\uDCC5"],"","\uDBB9\uDD42",["date"],21,12,15,0], - "1f4c6":[["\uD83D\uDCC6"],"","\uDBB9\uDD49",["calendar"],21,13,15,0], - "1f4c7":[["\uD83D\uDCC7"],"\uE148","\uDBB9\uDD4D",["card_index"],21,14,15,0], - "1f4c8":[["\uD83D\uDCC8"],"\uE14A","\uDBB9\uDD4B",["chart_with_upwards_trend"],21,15,15,0], - "1f4c9":[["\uD83D\uDCC9"],"","\uDBB9\uDD4C",["chart_with_downwards_trend"],21,16,15,0], - "1f4ca":[["\uD83D\uDCCA"],"\uE14A","\uDBB9\uDD4A",["bar_chart"],21,17,15,0], - "1f4cb":[["\uD83D\uDCCB"],"\uE301","\uDBB9\uDD48",["clipboard"],21,18,15,0], - "1f4cc":[["\uD83D\uDCCC"],"","\uDBB9\uDD4E",["pushpin"],21,19,15,0], - "1f4cd":[["\uD83D\uDCCD"],"","\uDBB9\uDD3F",["round_pushpin"],21,20,15,0], - "1f4ce":[["\uD83D\uDCCE"],"","\uDBB9\uDD3A",["paperclip"],21,21,15,0], - "1f4cf":[["\uD83D\uDCCF"],"","\uDBB9\uDD50",["straight_ruler"],21,22,15,0], - "1f4d0":[["\uD83D\uDCD0"],"","\uDBB9\uDD51",["triangular_ruler"],21,23,15,0], - "1f4d1":[["\uD83D\uDCD1"],"\uE301","\uDBB9\uDD52",["bookmark_tabs"],21,24,15,0], - "1f4d2":[["\uD83D\uDCD2"],"\uE148","\uDBB9\uDD4F",["ledger"],21,25,15,0], - "1f4d3":[["\uD83D\uDCD3"],"\uE148","\uDBB9\uDD45",["notebook"],21,26,15,0], - "1f4d4":[["\uD83D\uDCD4"],"\uE148","\uDBB9\uDD47",["notebook_with_decorative_cover"],21,27,15,0], - "1f4d5":[["\uD83D\uDCD5"],"\uE148","\uDBB9\uDD02",["closed_book"],21,28,15,0], - "1f4d6":[["\uD83D\uDCD6"],"\uE148","\uDBB9\uDD46",["book","open_book"],21,29,15,0], - "1f4d7":[["\uD83D\uDCD7"],"\uE148","\uDBB9\uDCFF",["green_book"],21,30,15,0], - "1f4d8":[["\uD83D\uDCD8"],"\uE148","\uDBB9\uDD00",["blue_book"],21,31,15,0], - "1f4d9":[["\uD83D\uDCD9"],"\uE148","\uDBB9\uDD01",["orange_book"],21,32,15,0], - "1f4da":[["\uD83D\uDCDA"],"\uE148","\uDBB9\uDD03",["books"],21,33,15,0], - "1f4db":[["\uD83D\uDCDB"],"","\uDBB9\uDD04",["name_badge"],21,34,15,0], - "1f4dc":[["\uD83D\uDCDC"],"","\uDBB9\uDCFD",["scroll"],21,35,15,0], - "1f4dd":[["\uD83D\uDCDD"],"\uE301","\uDBB9\uDD27",["memo","pencil"],21,36,15,0], - "1f4de":[["\uD83D\uDCDE"],"\uE009","\uDBB9\uDD24",["telephone_receiver"],21,37,15,0], - "1f4df":[["\uD83D\uDCDF"],"","\uDBB9\uDD22",["pager"],21,38,15,0], - "1f4e0":[["\uD83D\uDCE0"],"\uE00B","\uDBB9\uDD28",["fax"],21,39,15,0], - "1f4e1":[["\uD83D\uDCE1"],"\uE14B","\uDBB9\uDD31",["satellite"],21,40,15,0], - "1f4e2":[["\uD83D\uDCE2"],"\uE142","\uDBB9\uDD2F",["loudspeaker"],22,0,15,0], - "1f4e3":[["\uD83D\uDCE3"],"\uE317","\uDBB9\uDD30",["mega"],22,1,15,0], - "1f4e4":[["\uD83D\uDCE4"],"","\uDBB9\uDD33",["outbox_tray"],22,2,15,0], - "1f4e5":[["\uD83D\uDCE5"],"","\uDBB9\uDD34",["inbox_tray"],22,3,15,0], - "1f4e6":[["\uD83D\uDCE6"],"\uE112","\uDBB9\uDD35",["package"],22,4,15,0], - "1f4e7":[["\uD83D\uDCE7"],"\uE103","\uDBBA\uDF92",["e-mail"],22,5,15,0], - "1f4e8":[["\uD83D\uDCE8"],"\uE103","\uDBB9\uDD2A",["incoming_envelope"],22,6,15,0], - "1f4e9":[["\uD83D\uDCE9"],"\uE103","\uDBB9\uDD2B",["envelope_with_arrow"],22,7,15,0], - "1f4ea":[["\uD83D\uDCEA"],"\uE101","\uDBB9\uDD2C",["mailbox_closed"],22,8,15,0], - "1f4eb":[["\uD83D\uDCEB"],"\uE101","\uDBB9\uDD2D",["mailbox"],22,9,15,0], - "1f4ec":[["\uD83D\uDCEC"],"","",["mailbox_with_mail"],22,10,15,0], - "1f4ed":[["\uD83D\uDCED"],"","",["mailbox_with_no_mail"],22,11,15,0], - "1f4ee":[["\uD83D\uDCEE"],"\uE102","\uDBB9\uDD2E",["postbox"],22,12,15,0], - "1f4ef":[["\uD83D\uDCEF"],"","",["postal_horn"],22,13,15,0], - "1f4f0":[["\uD83D\uDCF0"],"","\uDBBA\uDC22",["newspaper"],22,14,15,0], - "1f4f1":[["\uD83D\uDCF1"],"\uE00A","\uDBB9\uDD25",["iphone"],22,15,15,0], - "1f4f2":[["\uD83D\uDCF2"],"\uE104","\uDBB9\uDD26",["calling"],22,16,15,0], - "1f4f3":[["\uD83D\uDCF3"],"\uE250","\uDBBA\uDC39",["vibration_mode"],22,17,15,0], - "1f4f4":[["\uD83D\uDCF4"],"\uE251","\uDBBA\uDC3A",["mobile_phone_off"],22,18,15,0], - "1f4f5":[["\uD83D\uDCF5"],"","",["no_mobile_phones"],22,19,15,0], - "1f4f6":[["\uD83D\uDCF6"],"\uE20B","\uDBBA\uDC38",["signal_strength"],22,20,15,0], - "1f4f7":[["\uD83D\uDCF7"],"\uE008","\uDBB9\uDCEF",["camera"],22,21,15,0], - "1f4f8":[["\uD83D\uDCF8"],"","",["camera_with_flash"],22,22,15,0], - "1f4f9":[["\uD83D\uDCF9"],"\uE03D","\uDBB9\uDCF9",["video_camera"],22,23,15,0], - "1f4fa":[["\uD83D\uDCFA"],"\uE12A","\uDBBA\uDC1C",["tv"],22,24,15,0], - "1f4fb":[["\uD83D\uDCFB"],"\uE128","\uDBBA\uDC1F",["radio"],22,25,15,0], - "1f4fc":[["\uD83D\uDCFC"],"\uE129","\uDBBA\uDC20",["vhs"],22,26,15,0], - "1f4fd":[["\uD83D\uDCFD"],"","",["film_projector"],22,27,15,0], - "1f4ff":[["\uD83D\uDCFF"],"","",["prayer_beads"],22,28,7,0], - "1f500":[["\uD83D\uDD00"],"","",["twisted_rightwards_arrows"],22,29,15,0], - "1f501":[["\uD83D\uDD01"],"","",["repeat"],22,30,15,0], - "1f502":[["\uD83D\uDD02"],"","",["repeat_one"],22,31,15,0], - "1f503":[["\uD83D\uDD03"],"","\uDBBA\uDF91",["arrows_clockwise"],22,32,15,0], - "1f504":[["\uD83D\uDD04"],"","",["arrows_counterclockwise"],22,33,15,0], - "1f505":[["\uD83D\uDD05"],"","",["low_brightness"],22,34,15,0], - "1f506":[["\uD83D\uDD06"],"","",["high_brightness"],22,35,15,0], - "1f507":[["\uD83D\uDD07"],"","",["mute"],22,36,15,0], - "1f508":[["\uD83D\uDD08"],"","",["speaker"],22,37,15,0], - "1f509":[["\uD83D\uDD09"],"","",["sound"],22,38,15,0], - "1f50a":[["\uD83D\uDD0A"],"\uE141","\uDBBA\uDC21",["loud_sound"],22,39,15,0], - "1f50b":[["\uD83D\uDD0B"],"","\uDBB9\uDCFC",["battery"],22,40,15,0], - "1f50c":[["\uD83D\uDD0C"],"","\uDBB9\uDCFE",["electric_plug"],23,0,15,0], - "1f50d":[["\uD83D\uDD0D"],"\uE114","\uDBBA\uDF85",["mag"],23,1,15,0], - "1f50e":[["\uD83D\uDD0E"],"\uE114","\uDBBA\uDF8D",["mag_right"],23,2,15,0], - "1f50f":[["\uD83D\uDD0F"],"\uE144","\uDBBA\uDF90",["lock_with_ink_pen"],23,3,15,0], - "1f510":[["\uD83D\uDD10"],"\uE144","\uDBBA\uDF8A",["closed_lock_with_key"],23,4,15,0], - "1f511":[["\uD83D\uDD11"],"\uE03F","\uDBBA\uDF82",["key"],23,5,15,0], - "1f512":[["\uD83D\uDD12"],"\uE144","\uDBBA\uDF86",["lock"],23,6,15,0], - "1f513":[["\uD83D\uDD13"],"\uE145","\uDBBA\uDF87",["unlock"],23,7,15,0], - "1f514":[["\uD83D\uDD14"],"\uE325","\uDBB9\uDCF2",["bell"],23,8,15,0], - "1f515":[["\uD83D\uDD15"],"","",["no_bell"],23,9,15,0], - "1f516":[["\uD83D\uDD16"],"","\uDBBA\uDF8F",["bookmark"],23,10,15,0], - "1f517":[["\uD83D\uDD17"],"","\uDBBA\uDF4B",["link"],23,11,15,0], - "1f518":[["\uD83D\uDD18"],"","\uDBBA\uDF8C",["radio_button"],23,12,15,0], - "1f519":[["\uD83D\uDD19"],"\uE235","\uDBBA\uDF8E",["back"],23,13,15,0], - "1f51a":[["\uD83D\uDD1A"],"","\uDBB8\uDC1A",["end"],23,14,15,0], - "1f51b":[["\uD83D\uDD1B"],"","\uDBB8\uDC19",["on"],23,15,15,0], - "1f51c":[["\uD83D\uDD1C"],"","\uDBB8\uDC18",["soon"],23,16,15,0], - "1f51d":[["\uD83D\uDD1D"],"\uE24C","\uDBBA\uDF42",["top"],23,17,15,0], - "1f51e":[["\uD83D\uDD1E"],"\uE207","\uDBBA\uDF25",["underage"],23,18,15,0], - "1f51f":[["\uD83D\uDD1F"],"","\uDBBA\uDC3B",["keycap_ten"],23,19,15,0], - "1f520":[["\uD83D\uDD20"],"","\uDBBA\uDF7C",["capital_abcd"],23,20,15,0], - "1f521":[["\uD83D\uDD21"],"","\uDBBA\uDF7D",["abcd"],23,21,15,0], - "1f522":[["\uD83D\uDD22"],"","\uDBBA\uDF7E",["1234"],23,22,15,0], - "1f523":[["\uD83D\uDD23"],"","\uDBBA\uDF7F",["symbols"],23,23,15,0], - "1f524":[["\uD83D\uDD24"],"","\uDBBA\uDF80",["abc"],23,24,15,0], - "1f525":[["\uD83D\uDD25"],"\uE11D","\uDBB9\uDCF6",["fire"],23,25,15,0], - "1f526":[["\uD83D\uDD26"],"","\uDBB9\uDCFB",["flashlight"],23,26,15,0], - "1f527":[["\uD83D\uDD27"],"","\uDBB9\uDCC9",["wrench"],23,27,15,0], - "1f528":[["\uD83D\uDD28"],"\uE116","\uDBB9\uDCCA",["hammer"],23,28,15,0], - "1f529":[["\uD83D\uDD29"],"","\uDBB9\uDCCB",["nut_and_bolt"],23,29,15,0], - "1f52a":[["\uD83D\uDD2A"],"","\uDBB9\uDCFA",["hocho","knife"],23,30,15,0], - "1f52b":[["\uD83D\uDD2B"],"\uE113","\uDBB9\uDCF5",["gun"],23,31,15,0], - "1f52c":[["\uD83D\uDD2C"],"","",["microscope"],23,32,15,0], - "1f52d":[["\uD83D\uDD2D"],"","",["telescope"],23,33,15,0], - "1f52e":[["\uD83D\uDD2E"],"\uE23E","\uDBB9\uDCF7",["crystal_ball"],23,34,15,0], - "1f52f":[["\uD83D\uDD2F"],"\uE23E","\uDBB9\uDCF8",["six_pointed_star"],23,35,15,0], - "1f530":[["\uD83D\uDD30"],"\uE209","\uDBB8\uDC44",["beginner"],23,36,15,0], - "1f531":[["\uD83D\uDD31"],"\uE031","\uDBB9\uDCD2",["trident"],23,37,15,0], - "1f532":[["\uD83D\uDD32"],"\uE21A","\uDBBA\uDF64",["black_square_button"],23,38,15,0], - "1f533":[["\uD83D\uDD33"],"\uE21B","\uDBBA\uDF67",["white_square_button"],23,39,15,0], - "1f534":[["\uD83D\uDD34"],"\uE219","\uDBBA\uDF63",["red_circle"],23,40,15,0], - "1f535":[["\uD83D\uDD35"],"\uE21A","\uDBBA\uDF64",["large_blue_circle"],24,0,15,0], - "1f536":[["\uD83D\uDD36"],"\uE21B","\uDBBA\uDF73",["large_orange_diamond"],24,1,15,0], - "1f537":[["\uD83D\uDD37"],"\uE21B","\uDBBA\uDF74",["large_blue_diamond"],24,2,15,0], - "1f538":[["\uD83D\uDD38"],"\uE21B","\uDBBA\uDF75",["small_orange_diamond"],24,3,15,0], - "1f539":[["\uD83D\uDD39"],"\uE21B","\uDBBA\uDF76",["small_blue_diamond"],24,4,15,0], - "1f53a":[["\uD83D\uDD3A"],"","\uDBBA\uDF78",["small_red_triangle"],24,5,15,0], - "1f53b":[["\uD83D\uDD3B"],"","\uDBBA\uDF79",["small_red_triangle_down"],24,6,15,0], - "1f53c":[["\uD83D\uDD3C"],"","\uDBBA\uDF01",["arrow_up_small"],24,7,15,0], - "1f53d":[["\uD83D\uDD3D"],"","\uDBBA\uDF00",["arrow_down_small"],24,8,15,0], - "1f549":[["\uD83D\uDD49"],"","",["om_symbol"],24,9,15,0], - "1f54a":[["\uD83D\uDD4A"],"","",["dove_of_peace"],24,10,15,0], - "1f54b":[["\uD83D\uDD4B"],"","",["kaaba"],24,11,7,0], - "1f54c":[["\uD83D\uDD4C"],"","",["mosque"],24,12,7,0], - "1f54d":[["\uD83D\uDD4D"],"","",["synagogue"],24,13,7,0], - "1f54e":[["\uD83D\uDD4E"],"","",["menorah_with_nine_branches"],24,14,7,0], - "1f550":[["\uD83D\uDD50"],"\uE024","\uDBB8\uDC1E",["clock1"],24,15,15,0], - "1f551":[["\uD83D\uDD51"],"\uE025","\uDBB8\uDC1F",["clock2"],24,16,15,0], - "1f552":[["\uD83D\uDD52"],"\uE026","\uDBB8\uDC20",["clock3"],24,17,15,0], - "1f553":[["\uD83D\uDD53"],"\uE027","\uDBB8\uDC21",["clock4"],24,18,15,0], - "1f554":[["\uD83D\uDD54"],"\uE028","\uDBB8\uDC22",["clock5"],24,19,15,0], - "1f555":[["\uD83D\uDD55"],"\uE029","\uDBB8\uDC23",["clock6"],24,20,15,0], - "1f556":[["\uD83D\uDD56"],"\uE02A","\uDBB8\uDC24",["clock7"],24,21,15,0], - "1f557":[["\uD83D\uDD57"],"\uE02B","\uDBB8\uDC25",["clock8"],24,22,15,0], - "1f558":[["\uD83D\uDD58"],"\uE02C","\uDBB8\uDC26",["clock9"],24,23,15,0], - "1f559":[["\uD83D\uDD59"],"\uE02D","\uDBB8\uDC27",["clock10"],24,24,15,0], - "1f55a":[["\uD83D\uDD5A"],"\uE02E","\uDBB8\uDC28",["clock11"],24,25,15,0], - "1f55b":[["\uD83D\uDD5B"],"\uE02F","\uDBB8\uDC29",["clock12"],24,26,15,0], - "1f55c":[["\uD83D\uDD5C"],"","",["clock130"],24,27,15,0], - "1f55d":[["\uD83D\uDD5D"],"","",["clock230"],24,28,15,0], - "1f55e":[["\uD83D\uDD5E"],"","",["clock330"],24,29,15,0], - "1f55f":[["\uD83D\uDD5F"],"","",["clock430"],24,30,15,0], - "1f560":[["\uD83D\uDD60"],"","",["clock530"],24,31,15,0], - "1f561":[["\uD83D\uDD61"],"","",["clock630"],24,32,15,0], - "1f562":[["\uD83D\uDD62"],"","",["clock730"],24,33,15,0], - "1f563":[["\uD83D\uDD63"],"","",["clock830"],24,34,15,0], - "1f564":[["\uD83D\uDD64"],"","",["clock930"],24,35,15,0], - "1f565":[["\uD83D\uDD65"],"","",["clock1030"],24,36,15,0], - "1f566":[["\uD83D\uDD66"],"","",["clock1130"],24,37,15,0], - "1f567":[["\uD83D\uDD67"],"","",["clock1230"],24,38,15,0], - "1f56f":[["\uD83D\uDD6F"],"","",["candle"],24,39,15,0], - "1f570":[["\uD83D\uDD70"],"","",["mantelpiece_clock"],24,40,15,0], - "1f573":[["\uD83D\uDD73"],"","",["hole"],25,0,15,0], - "1f574":[["\uD83D\uDD74"],"","",["man_in_business_suit_levitating"],25,1,15,0], - "1f575":[["\uD83D\uDD75"],"","",["sleuth_or_spy"],25,2,15,0], - "1f576":[["\uD83D\uDD76"],"","",["dark_sunglasses"],25,3,15,0], - "1f577":[["\uD83D\uDD77"],"","",["spider"],25,4,15,0], - "1f578":[["\uD83D\uDD78"],"","",["spider_web"],25,5,15,0], - "1f579":[["\uD83D\uDD79"],"","",["joystick"],25,6,15,0], - "1f587":[["\uD83D\uDD87"],"","",["linked_paperclips"],25,7,15,0], - "1f58a":[["\uD83D\uDD8A"],"","",["lower_left_ballpoint_pen"],25,8,15,0], - "1f58b":[["\uD83D\uDD8B"],"","",["lower_left_fountain_pen"],25,9,15,0], - "1f58c":[["\uD83D\uDD8C"],"","",["lower_left_paintbrush"],25,10,15,0], - "1f58d":[["\uD83D\uDD8D"],"","",["lower_left_crayon"],25,11,15,0], - "1f590":[["\uD83D\uDD90"],"","",["raised_hand_with_fingers_splayed"],25,12,15,0], - "1f595":[["\uD83D\uDD95"],"","",["middle_finger","reversed_hand_with_middle_finger_extended"],25,18,15,0], - "1f596":[["\uD83D\uDD96"],"","",["spock-hand"],25,24,15,0], - "1f5a5":[["\uD83D\uDDA5"],"","",["desktop_computer"],25,30,15,0], - "1f5a8":[["\uD83D\uDDA8"],"","",["printer"],25,31,15,0], - "1f5b1":[["\uD83D\uDDB1"],"","",["three_button_mouse"],25,32,7,0], - "1f5b2":[["\uD83D\uDDB2"],"","",["trackball"],25,33,15,0], - "1f5bc":[["\uD83D\uDDBC"],"","",["frame_with_picture"],25,34,15,0], - "1f5c2":[["\uD83D\uDDC2"],"","",["card_index_dividers"],25,35,15,0], - "1f5c3":[["\uD83D\uDDC3"],"","",["card_file_box"],25,36,15,0], - "1f5c4":[["\uD83D\uDDC4"],"","",["file_cabinet"],25,37,15,0], - "1f5d1":[["\uD83D\uDDD1"],"","",["wastebasket"],25,38,15,0], - "1f5d2":[["\uD83D\uDDD2"],"","",["spiral_note_pad"],25,39,15,0], - "1f5d3":[["\uD83D\uDDD3"],"","",["spiral_calendar_pad"],25,40,15,0], - "1f5dc":[["\uD83D\uDDDC"],"","",["compression"],26,0,15,0], - "1f5dd":[["\uD83D\uDDDD"],"","",["old_key"],26,1,15,0], - "1f5de":[["\uD83D\uDDDE"],"","",["rolled_up_newspaper"],26,2,15,0], - "1f5e1":[["\uD83D\uDDE1"],"","",["dagger_knife"],26,3,15,0], - "1f5e3":[["\uD83D\uDDE3"],"","",["speaking_head_in_silhouette"],26,4,15,0], - "1f5e8":[["\uD83D\uDDE8"],"","",["left_speech_bubble"],26,5,15,0], - "1f5ef":[["\uD83D\uDDEF"],"","",["right_anger_bubble"],26,6,15,0], - "1f5f3":[["\uD83D\uDDF3"],"","",["ballot_box_with_ballot"],26,7,15,0], - "1f5fa":[["\uD83D\uDDFA"],"","",["world_map"],26,8,15,0], - "1f5fb":[["\uD83D\uDDFB"],"\uE03B","\uDBB9\uDCC3",["mount_fuji"],26,9,15,0], - "1f5fc":[["\uD83D\uDDFC"],"\uE509","\uDBB9\uDCC4",["tokyo_tower"],26,10,15,0], - "1f5fd":[["\uD83D\uDDFD"],"\uE51D","\uDBB9\uDCC6",["statue_of_liberty"],26,11,15,0], - "1f5fe":[["\uD83D\uDDFE"],"","\uDBB9\uDCC7",["japan"],26,12,15,0], - "1f5ff":[["\uD83D\uDDFF"],"","\uDBB9\uDCC8",["moyai"],26,13,15,0], - "1f600":[["\uD83D\uDE00"],"","",["grinning"],26,14,15,0,":D"], - "1f601":[["\uD83D\uDE01"],"\uE404","\uDBB8\uDF33",["grin"],26,15,15,0], - "1f602":[["\uD83D\uDE02"],"\uE412","\uDBB8\uDF34",["joy"],26,16,15,0], - "1f603":[["\uD83D\uDE03"],"\uE057","\uDBB8\uDF30",["smiley"],26,17,15,0,":)"], - "1f604":[["\uD83D\uDE04"],"\uE415","\uDBB8\uDF38",["smile"],26,18,15,0,":)"], - "1f605":[["\uD83D\uDE05"],"\uE415\uE331","\uDBB8\uDF31",["sweat_smile"],26,19,15,0], - "1f606":[["\uD83D\uDE06"],"\uE40A","\uDBB8\uDF32",["laughing","satisfied"],26,20,15,0], - "1f607":[["\uD83D\uDE07"],"","",["innocent"],26,21,15,0], - "1f608":[["\uD83D\uDE08"],"","",["smiling_imp"],26,22,15,0], - "1f609":[["\uD83D\uDE09"],"\uE405","\uDBB8\uDF47",["wink"],26,23,15,0,";)"], - "1f60a":[["\uD83D\uDE0A"],"\uE056","\uDBB8\uDF35",["blush"],26,24,15,0,":)"], - "1f60b":[["\uD83D\uDE0B"],"\uE056","\uDBB8\uDF2B",["yum"],26,25,15,0], - "1f60c":[["\uD83D\uDE0C"],"\uE40A","\uDBB8\uDF3E",["relieved"],26,26,15,0], - "1f60d":[["\uD83D\uDE0D"],"\uE106","\uDBB8\uDF27",["heart_eyes"],26,27,15,0], - "1f60e":[["\uD83D\uDE0E"],"","",["sunglasses"],26,28,15,0], - "1f60f":[["\uD83D\uDE0F"],"\uE402","\uDBB8\uDF43",["smirk"],26,29,15,0], - "1f610":[["\uD83D\uDE10"],"","",["neutral_face"],26,30,15,0], - "1f611":[["\uD83D\uDE11"],"","",["expressionless"],26,31,15,0], - "1f612":[["\uD83D\uDE12"],"\uE40E","\uDBB8\uDF26",["unamused"],26,32,15,0,":("], - "1f613":[["\uD83D\uDE13"],"\uE108","\uDBB8\uDF44",["sweat"],26,33,15,0], - "1f614":[["\uD83D\uDE14"],"\uE403","\uDBB8\uDF40",["pensive"],26,34,15,0], - "1f615":[["\uD83D\uDE15"],"","",["confused"],26,35,15,0], - "1f616":[["\uD83D\uDE16"],"\uE407","\uDBB8\uDF3F",["confounded"],26,36,15,0], - "1f617":[["\uD83D\uDE17"],"","",["kissing"],26,37,15,0], - "1f618":[["\uD83D\uDE18"],"\uE418","\uDBB8\uDF2C",["kissing_heart"],26,38,15,0], - "1f619":[["\uD83D\uDE19"],"","",["kissing_smiling_eyes"],26,39,15,0], - "1f61a":[["\uD83D\uDE1A"],"\uE417","\uDBB8\uDF2D",["kissing_closed_eyes"],26,40,15,0], - "1f61b":[["\uD83D\uDE1B"],"","",["stuck_out_tongue"],27,0,15,0,":p"], - "1f61c":[["\uD83D\uDE1C"],"\uE105","\uDBB8\uDF29",["stuck_out_tongue_winking_eye"],27,1,15,0,";p"], - "1f61d":[["\uD83D\uDE1D"],"\uE409","\uDBB8\uDF2A",["stuck_out_tongue_closed_eyes"],27,2,15,0], - "1f61e":[["\uD83D\uDE1E"],"\uE058","\uDBB8\uDF23",["disappointed"],27,3,15,0,":("], - "1f61f":[["\uD83D\uDE1F"],"","",["worried"],27,4,15,0], - "1f620":[["\uD83D\uDE20"],"\uE059","\uDBB8\uDF20",["angry"],27,5,15,0], - "1f621":[["\uD83D\uDE21"],"\uE416","\uDBB8\uDF3D",["rage"],27,6,15,0], - "1f622":[["\uD83D\uDE22"],"\uE413","\uDBB8\uDF39",["cry"],27,7,15,0,":'("], - "1f623":[["\uD83D\uDE23"],"\uE406","\uDBB8\uDF3C",["persevere"],27,8,15,0], - "1f624":[["\uD83D\uDE24"],"\uE404","\uDBB8\uDF28",["triumph"],27,9,15,0], - "1f625":[["\uD83D\uDE25"],"\uE401","\uDBB8\uDF45",["disappointed_relieved"],27,10,15,0], - "1f626":[["\uD83D\uDE26"],"","",["frowning"],27,11,15,0], - "1f627":[["\uD83D\uDE27"],"","",["anguished"],27,12,15,0], - "1f628":[["\uD83D\uDE28"],"\uE40B","\uDBB8\uDF3B",["fearful"],27,13,15,0], - "1f629":[["\uD83D\uDE29"],"\uE403","\uDBB8\uDF21",["weary"],27,14,15,0], - "1f62a":[["\uD83D\uDE2A"],"\uE408","\uDBB8\uDF42",["sleepy"],27,15,15,0], - "1f62b":[["\uD83D\uDE2B"],"\uE406","\uDBB8\uDF46",["tired_face"],27,16,15,0], - "1f62c":[["\uD83D\uDE2C"],"","",["grimacing"],27,17,15,0], - "1f62d":[["\uD83D\uDE2D"],"\uE411","\uDBB8\uDF3A",["sob"],27,18,15,0,":'("], - "1f62e":[["\uD83D\uDE2E"],"","",["open_mouth"],27,19,15,0], - "1f62f":[["\uD83D\uDE2F"],"","",["hushed"],27,20,15,0], - "1f630":[["\uD83D\uDE30"],"\uE40F","\uDBB8\uDF25",["cold_sweat"],27,21,15,0], - "1f631":[["\uD83D\uDE31"],"\uE107","\uDBB8\uDF41",["scream"],27,22,15,0], - "1f632":[["\uD83D\uDE32"],"\uE410","\uDBB8\uDF22",["astonished"],27,23,15,0], - "1f633":[["\uD83D\uDE33"],"\uE40D","\uDBB8\uDF2F",["flushed"],27,24,15,0], - "1f634":[["\uD83D\uDE34"],"","",["sleeping"],27,25,15,0], - "1f635":[["\uD83D\uDE35"],"\uE406","\uDBB8\uDF24",["dizzy_face"],27,26,15,0], - "1f636":[["\uD83D\uDE36"],"","",["no_mouth"],27,27,15,0], - "1f637":[["\uD83D\uDE37"],"\uE40C","\uDBB8\uDF2E",["mask"],27,28,15,0], - "1f638":[["\uD83D\uDE38"],"\uE404","\uDBB8\uDF49",["smile_cat"],27,29,15,0], - "1f639":[["\uD83D\uDE39"],"\uE412","\uDBB8\uDF4A",["joy_cat"],27,30,15,0], - "1f63a":[["\uD83D\uDE3A"],"\uE057","\uDBB8\uDF48",["smiley_cat"],27,31,15,0], - "1f63b":[["\uD83D\uDE3B"],"\uE106","\uDBB8\uDF4C",["heart_eyes_cat"],27,32,15,0], - "1f63c":[["\uD83D\uDE3C"],"\uE404","\uDBB8\uDF4F",["smirk_cat"],27,33,15,0], - "1f63d":[["\uD83D\uDE3D"],"\uE418","\uDBB8\uDF4B",["kissing_cat"],27,34,15,0], - "1f63e":[["\uD83D\uDE3E"],"\uE416","\uDBB8\uDF4E",["pouting_cat"],27,35,15,0], - "1f63f":[["\uD83D\uDE3F"],"\uE413","\uDBB8\uDF4D",["crying_cat_face"],27,36,15,0], - "1f640":[["\uD83D\uDE40"],"\uE403","\uDBB8\uDF50",["scream_cat"],27,37,15,0], - "1f641":[["\uD83D\uDE41"],"","",["slightly_frowning_face"],27,38,15,0], - "1f642":[["\uD83D\uDE42"],"","",["slightly_smiling_face"],27,39,15,0], - "1f643":[["\uD83D\uDE43"],"","",["upside_down_face"],27,40,7,0], - "1f644":[["\uD83D\uDE44"],"","",["face_with_rolling_eyes"],28,0,7,0], - "1f645":[["\uD83D\uDE45"],"\uE423","\uDBB8\uDF51",["no_good"],28,1,15,0], - "1f646":[["\uD83D\uDE46"],"\uE424","\uDBB8\uDF52",["ok_woman"],28,7,15,0], - "1f647":[["\uD83D\uDE47"],"\uE426","\uDBB8\uDF53",["bow"],28,13,15,0], - "1f648":[["\uD83D\uDE48"],"","\uDBB8\uDF54",["see_no_evil"],28,19,15,0], - "1f649":[["\uD83D\uDE49"],"","\uDBB8\uDF56",["hear_no_evil"],28,20,15,0], - "1f64a":[["\uD83D\uDE4A"],"","\uDBB8\uDF55",["speak_no_evil"],28,21,15,0], - "1f64b":[["\uD83D\uDE4B"],"\uE012","\uDBB8\uDF57",["raising_hand"],28,22,15,0], - "1f64c":[["\uD83D\uDE4C"],"\uE427","\uDBB8\uDF58",["raised_hands"],28,28,15,0], - "1f64d":[["\uD83D\uDE4D"],"\uE403","\uDBB8\uDF59",["person_frowning"],28,34,15,0], - "1f64e":[["\uD83D\uDE4E"],"\uE416","\uDBB8\uDF5A",["person_with_pouting_face"],28,40,15,0], - "1f64f":[["\uD83D\uDE4F"],"\uE41D","\uDBB8\uDF5B",["pray"],29,5,15,0], - "1f680":[["\uD83D\uDE80"],"\uE10D","\uDBB9\uDFED",["rocket"],29,11,15,0], - "1f681":[["\uD83D\uDE81"],"","",["helicopter"],29,12,15,0], - "1f682":[["\uD83D\uDE82"],"","",["steam_locomotive"],29,13,15,0], - "1f683":[["\uD83D\uDE83"],"\uE01E","\uDBB9\uDFDF",["railway_car"],29,14,15,0], - "1f684":[["\uD83D\uDE84"],"\uE435","\uDBB9\uDFE2",["bullettrain_side"],29,15,15,0], - "1f685":[["\uD83D\uDE85"],"\uE01F","\uDBB9\uDFE3",["bullettrain_front"],29,16,15,0], - "1f686":[["\uD83D\uDE86"],"","",["train2"],29,17,15,0], - "1f687":[["\uD83D\uDE87"],"\uE434","\uDBB9\uDFE0",["metro"],29,18,15,0], - "1f688":[["\uD83D\uDE88"],"","",["light_rail"],29,19,15,0], - "1f689":[["\uD83D\uDE89"],"\uE039","\uDBB9\uDFEC",["station"],29,20,15,0], - "1f68a":[["\uD83D\uDE8A"],"","",["tram"],29,21,15,0], - "1f68b":[["\uD83D\uDE8B"],"","",["train"],29,22,15,0], - "1f68c":[["\uD83D\uDE8C"],"\uE159","\uDBB9\uDFE6",["bus"],29,23,15,0], - "1f68d":[["\uD83D\uDE8D"],"","",["oncoming_bus"],29,24,15,0], - "1f68e":[["\uD83D\uDE8E"],"","",["trolleybus"],29,25,15,0], - "1f68f":[["\uD83D\uDE8F"],"\uE150","\uDBB9\uDFE7",["busstop"],29,26,15,0], - "1f690":[["\uD83D\uDE90"],"","",["minibus"],29,27,15,0], - "1f691":[["\uD83D\uDE91"],"\uE431","\uDBB9\uDFF3",["ambulance"],29,28,15,0], - "1f692":[["\uD83D\uDE92"],"\uE430","\uDBB9\uDFF2",["fire_engine"],29,29,15,0], - "1f693":[["\uD83D\uDE93"],"\uE432","\uDBB9\uDFF4",["police_car"],29,30,15,0], - "1f694":[["\uD83D\uDE94"],"","",["oncoming_police_car"],29,31,15,0], - "1f695":[["\uD83D\uDE95"],"\uE15A","\uDBB9\uDFEF",["taxi"],29,32,15,0], - "1f696":[["\uD83D\uDE96"],"","",["oncoming_taxi"],29,33,15,0], - "1f697":[["\uD83D\uDE97"],"\uE01B","\uDBB9\uDFE4",["car","red_car"],29,34,15,0], - "1f698":[["\uD83D\uDE98"],"","",["oncoming_automobile"],29,35,15,0], - "1f699":[["\uD83D\uDE99"],"\uE42E","\uDBB9\uDFE5",["blue_car"],29,36,15,0], - "1f69a":[["\uD83D\uDE9A"],"\uE42F","\uDBB9\uDFF1",["truck"],29,37,15,0], - "1f69b":[["\uD83D\uDE9B"],"","",["articulated_lorry"],29,38,15,0], - "1f69c":[["\uD83D\uDE9C"],"","",["tractor"],29,39,15,0], - "1f69d":[["\uD83D\uDE9D"],"","",["monorail"],29,40,15,0], - "1f69e":[["\uD83D\uDE9E"],"","",["mountain_railway"],30,0,15,0], - "1f69f":[["\uD83D\uDE9F"],"","",["suspension_railway"],30,1,15,0], - "1f6a0":[["\uD83D\uDEA0"],"","",["mountain_cableway"],30,2,15,0], - "1f6a1":[["\uD83D\uDEA1"],"","",["aerial_tramway"],30,3,15,0], - "1f6a2":[["\uD83D\uDEA2"],"\uE202","\uDBB9\uDFE8",["ship"],30,4,15,0], - "1f6a3":[["\uD83D\uDEA3"],"","",["rowboat"],30,5,15,0], - "1f6a4":[["\uD83D\uDEA4"],"\uE135","\uDBB9\uDFEE",["speedboat"],30,11,15,0], - "1f6a5":[["\uD83D\uDEA5"],"\uE14E","\uDBB9\uDFF7",["traffic_light"],30,12,15,0], - "1f6a6":[["\uD83D\uDEA6"],"","",["vertical_traffic_light"],30,13,15,0], - "1f6a7":[["\uD83D\uDEA7"],"\uE137","\uDBB9\uDFF8",["construction"],30,14,15,0], - "1f6a8":[["\uD83D\uDEA8"],"\uE432","\uDBB9\uDFF9",["rotating_light"],30,15,15,0], - "1f6a9":[["\uD83D\uDEA9"],"","\uDBBA\uDF22",["triangular_flag_on_post"],30,16,15,0], - "1f6aa":[["\uD83D\uDEAA"],"","\uDBB9\uDCF3",["door"],30,17,15,0], - "1f6ab":[["\uD83D\uDEAB"],"","\uDBBA\uDF48",["no_entry_sign"],30,18,15,0], - "1f6ac":[["\uD83D\uDEAC"],"\uE30E","\uDBBA\uDF1E",["smoking"],30,19,15,0], - "1f6ad":[["\uD83D\uDEAD"],"\uE208","\uDBBA\uDF1F",["no_smoking"],30,20,15,0], - "1f6ae":[["\uD83D\uDEAE"],"","",["put_litter_in_its_place"],30,21,15,0], - "1f6af":[["\uD83D\uDEAF"],"","",["do_not_litter"],30,22,15,0], - "1f6b0":[["\uD83D\uDEB0"],"","",["potable_water"],30,23,15,0], - "1f6b1":[["\uD83D\uDEB1"],"","",["non-potable_water"],30,24,15,0], - "1f6b2":[["\uD83D\uDEB2"],"\uE136","\uDBB9\uDFEB",["bike"],30,25,15,0], - "1f6b3":[["\uD83D\uDEB3"],"","",["no_bicycles"],30,26,15,0], - "1f6b4":[["\uD83D\uDEB4"],"","",["bicyclist"],30,27,15,0], - "1f6b5":[["\uD83D\uDEB5"],"","",["mountain_bicyclist"],30,33,15,0], - "1f6b6":[["\uD83D\uDEB6"],"\uE201","\uDBB9\uDFF0",["walking"],30,39,15,0], - "1f6b7":[["\uD83D\uDEB7"],"","",["no_pedestrians"],31,4,15,0], - "1f6b8":[["\uD83D\uDEB8"],"","",["children_crossing"],31,5,15,0], - "1f6b9":[["\uD83D\uDEB9"],"\uE138","\uDBBA\uDF33",["mens"],31,6,15,0], - "1f6ba":[["\uD83D\uDEBA"],"\uE139","\uDBBA\uDF34",["womens"],31,7,15,0], - "1f6bb":[["\uD83D\uDEBB"],"\uE151","\uDBB9\uDD06",["restroom"],31,8,15,0], - "1f6bc":[["\uD83D\uDEBC"],"\uE13A","\uDBBA\uDF35",["baby_symbol"],31,9,15,0], - "1f6bd":[["\uD83D\uDEBD"],"\uE140","\uDBB9\uDD07",["toilet"],31,10,15,0], - "1f6be":[["\uD83D\uDEBE"],"\uE309","\uDBB9\uDD08",["wc"],31,11,15,0], - "1f6bf":[["\uD83D\uDEBF"],"","",["shower"],31,12,15,0], - "1f6c0":[["\uD83D\uDEC0"],"\uE13F","\uDBB9\uDD05",["bath"],31,13,15,0], - "1f6c1":[["\uD83D\uDEC1"],"","",["bathtub"],31,19,15,0], - "1f6c2":[["\uD83D\uDEC2"],"","",["passport_control"],31,20,15,0], - "1f6c3":[["\uD83D\uDEC3"],"","",["customs"],31,21,15,0], - "1f6c4":[["\uD83D\uDEC4"],"","",["baggage_claim"],31,22,15,0], - "1f6c5":[["\uD83D\uDEC5"],"","",["left_luggage"],31,23,15,0], - "1f6cb":[["\uD83D\uDECB"],"","",["couch_and_lamp"],31,24,15,0], - "1f6cc":[["\uD83D\uDECC"],"","",["sleeping_accommodation"],31,25,15,0], - "1f6cd":[["\uD83D\uDECD"],"","",["shopping_bags"],31,26,15,0], - "1f6ce":[["\uD83D\uDECE"],"","",["bellhop_bell"],31,27,15,0], - "1f6cf":[["\uD83D\uDECF"],"","",["bed"],31,28,15,0], - "1f6d0":[["\uD83D\uDED0"],"","",["place_of_worship"],31,29,7,0], - "1f6e0":[["\uD83D\uDEE0"],"","",["hammer_and_wrench"],31,30,15,0], - "1f6e1":[["\uD83D\uDEE1"],"","",["shield"],31,31,15,0], - "1f6e2":[["\uD83D\uDEE2"],"","",["oil_drum"],31,32,15,0], - "1f6e3":[["\uD83D\uDEE3"],"","",["motorway"],31,33,15,0], - "1f6e4":[["\uD83D\uDEE4"],"","",["railway_track"],31,34,15,0], - "1f6e5":[["\uD83D\uDEE5"],"","",["motor_boat"],31,35,15,0], - "1f6e9":[["\uD83D\uDEE9"],"","",["small_airplane"],31,36,15,0], - "1f6eb":[["\uD83D\uDEEB"],"","",["airplane_departure"],31,37,15,0], - "1f6ec":[["\uD83D\uDEEC"],"","",["airplane_arriving"],31,38,15,0], - "1f6f0":[["\uD83D\uDEF0"],"","",["satellite"],31,39,15,0], - "1f6f3":[["\uD83D\uDEF3"],"","",["passenger_ship"],31,40,15,0], - "1f910":[["\uD83E\uDD10"],"","",["zipper_mouth_face"],32,0,7,0], - "1f911":[["\uD83E\uDD11"],"","",["money_mouth_face"],32,1,7,0], - "1f912":[["\uD83E\uDD12"],"","",["face_with_thermometer"],32,2,7,0], - "1f913":[["\uD83E\uDD13"],"","",["nerd_face"],32,3,7,0], - "1f914":[["\uD83E\uDD14"],"","",["thinking_face"],32,4,7,0], - "1f915":[["\uD83E\uDD15"],"","",["face_with_head_bandage"],32,5,7,0], - "1f916":[["\uD83E\uDD16"],"","",["robot_face"],32,6,7,0], - "1f917":[["\uD83E\uDD17"],"","",["hugging_face"],32,7,7,0], - "1f918":[["\uD83E\uDD18"],"","",["the_horns","sign_of_the_horns"],32,8,7,0], - "1f980":[["\uD83E\uDD80"],"","",["crab"],32,14,7,0], - "1f981":[["\uD83E\uDD81"],"","",["lion_face"],32,15,7,0], - "1f982":[["\uD83E\uDD82"],"","",["scorpion"],32,16,7,0], - "1f983":[["\uD83E\uDD83"],"","",["turkey"],32,17,7,0], - "1f984":[["\uD83E\uDD84"],"","",["unicorn_face"],32,18,7,0], - "1f9c0":[["\uD83E\uDDC0"],"","",["cheese_wedge"],32,19,7,0], - "0023-20e3":[["\u0023\uFE0F\u20E3","\u0023\u20E3"],"\uE210","\uDBBA\uDC2C",["hash"],32,20,15,0], - "002a-20e3":[["\u002A\u20E3"],"","",["keycap_star"],32,21,7,0], - "0030-20e3":[["\u0030\uFE0F\u20E3","\u0030\u20E3"],"\uE225","\uDBBA\uDC37",["zero"],32,22,15,0], - "0031-20e3":[["\u0031\uFE0F\u20E3","\u0031\u20E3"],"\uE21C","\uDBBA\uDC2E",["one"],32,23,15,0], - "0032-20e3":[["\u0032\uFE0F\u20E3","\u0032\u20E3"],"\uE21D","\uDBBA\uDC2F",["two"],32,24,15,0], - "0033-20e3":[["\u0033\uFE0F\u20E3","\u0033\u20E3"],"\uE21E","\uDBBA\uDC30",["three"],32,25,15,0], - "0034-20e3":[["\u0034\uFE0F\u20E3","\u0034\u20E3"],"\uE21F","\uDBBA\uDC31",["four"],32,26,15,0], - "0035-20e3":[["\u0035\uFE0F\u20E3","\u0035\u20E3"],"\uE220","\uDBBA\uDC32",["five"],32,27,15,0], - "0036-20e3":[["\u0036\uFE0F\u20E3","\u0036\u20E3"],"\uE221","\uDBBA\uDC33",["six"],32,28,15,0], - "0037-20e3":[["\u0037\uFE0F\u20E3","\u0037\u20E3"],"\uE222","\uDBBA\uDC34",["seven"],32,29,15,0], - "0038-20e3":[["\u0038\uFE0F\u20E3","\u0038\u20E3"],"\uE223","\uDBBA\uDC35",["eight"],32,30,15,0], - "0039-20e3":[["\u0039\uFE0F\u20E3","\u0039\u20E3"],"\uE224","\uDBBA\uDC36",["nine"],32,31,15,0], - "1f1e6-1f1e8":[["\uD83C\uDDE6\uD83C\uDDE8"],"","",["flag-ac"],32,32,13,0], - "1f1e6-1f1e9":[["\uD83C\uDDE6\uD83C\uDDE9"],"","",["flag-ad"],32,33,15,0], - "1f1e6-1f1ea":[["\uD83C\uDDE6\uD83C\uDDEA"],"","",["flag-ae"],32,34,15,0], - "1f1e6-1f1eb":[["\uD83C\uDDE6\uD83C\uDDEB"],"","",["flag-af"],32,35,15,0], - "1f1e6-1f1ec":[["\uD83C\uDDE6\uD83C\uDDEC"],"","",["flag-ag"],32,36,15,0], - "1f1e6-1f1ee":[["\uD83C\uDDE6\uD83C\uDDEE"],"","",["flag-ai"],32,37,15,0], - "1f1e6-1f1f1":[["\uD83C\uDDE6\uD83C\uDDF1"],"","",["flag-al"],32,38,15,0], - "1f1e6-1f1f2":[["\uD83C\uDDE6\uD83C\uDDF2"],"","",["flag-am"],32,39,15,0], - "1f1e6-1f1f4":[["\uD83C\uDDE6\uD83C\uDDF4"],"","",["flag-ao"],32,40,15,0], - "1f1e6-1f1f6":[["\uD83C\uDDE6\uD83C\uDDF6"],"","",["flag-aq"],33,0,5,0], - "1f1e6-1f1f7":[["\uD83C\uDDE6\uD83C\uDDF7"],"","",["flag-ar"],33,1,15,0], - "1f1e6-1f1f8":[["\uD83C\uDDE6\uD83C\uDDF8"],"","",["flag-as"],33,2,7,0], - "1f1e6-1f1f9":[["\uD83C\uDDE6\uD83C\uDDF9"],"","",["flag-at"],33,3,15,0], - "1f1e6-1f1fa":[["\uD83C\uDDE6\uD83C\uDDFA"],"","",["flag-au"],33,4,15,0], - "1f1e6-1f1fc":[["\uD83C\uDDE6\uD83C\uDDFC"],"","",["flag-aw"],33,5,15,0], - "1f1e6-1f1fd":[["\uD83C\uDDE6\uD83C\uDDFD"],"","",["flag-ax"],33,6,7,0], - "1f1e6-1f1ff":[["\uD83C\uDDE6\uD83C\uDDFF"],"","",["flag-az"],33,7,15,0], - "1f1e7-1f1e6":[["\uD83C\uDDE7\uD83C\uDDE6"],"","",["flag-ba"],33,8,15,0], - "1f1e7-1f1e7":[["\uD83C\uDDE7\uD83C\uDDE7"],"","",["flag-bb"],33,9,15,0], - "1f1e7-1f1e9":[["\uD83C\uDDE7\uD83C\uDDE9"],"","",["flag-bd"],33,10,15,0], - "1f1e7-1f1ea":[["\uD83C\uDDE7\uD83C\uDDEA"],"","",["flag-be"],33,11,15,0], - "1f1e7-1f1eb":[["\uD83C\uDDE7\uD83C\uDDEB"],"","",["flag-bf"],33,12,15,0], - "1f1e7-1f1ec":[["\uD83C\uDDE7\uD83C\uDDEC"],"","",["flag-bg"],33,13,15,0], - "1f1e7-1f1ed":[["\uD83C\uDDE7\uD83C\uDDED"],"","",["flag-bh"],33,14,15,0], - "1f1e7-1f1ee":[["\uD83C\uDDE7\uD83C\uDDEE"],"","",["flag-bi"],33,15,15,0], - "1f1e7-1f1ef":[["\uD83C\uDDE7\uD83C\uDDEF"],"","",["flag-bj"],33,16,15,0], - "1f1e7-1f1f1":[["\uD83C\uDDE7\uD83C\uDDF1"],"","",["flag-bl"],33,17,5,0], - "1f1e7-1f1f2":[["\uD83C\uDDE7\uD83C\uDDF2"],"","",["flag-bm"],33,18,15,0], - "1f1e7-1f1f3":[["\uD83C\uDDE7\uD83C\uDDF3"],"","",["flag-bn"],33,19,15,0], - "1f1e7-1f1f4":[["\uD83C\uDDE7\uD83C\uDDF4"],"","",["flag-bo"],33,20,15,0], - "1f1e7-1f1f6":[["\uD83C\uDDE7\uD83C\uDDF6"],"","",["flag-bq"],33,21,5,0], - "1f1e7-1f1f7":[["\uD83C\uDDE7\uD83C\uDDF7"],"","",["flag-br"],33,22,15,0], - "1f1e7-1f1f8":[["\uD83C\uDDE7\uD83C\uDDF8"],"","",["flag-bs"],33,23,15,0], - "1f1e7-1f1f9":[["\uD83C\uDDE7\uD83C\uDDF9"],"","",["flag-bt"],33,24,15,0], - "1f1e7-1f1fb":[["\uD83C\uDDE7\uD83C\uDDFB"],"","",["flag-bv"],33,25,5,0], - "1f1e7-1f1fc":[["\uD83C\uDDE7\uD83C\uDDFC"],"","",["flag-bw"],33,26,15,0], - "1f1e7-1f1fe":[["\uD83C\uDDE7\uD83C\uDDFE"],"","",["flag-by"],33,27,15,0], - "1f1e7-1f1ff":[["\uD83C\uDDE7\uD83C\uDDFF"],"","",["flag-bz"],33,28,15,0], - "1f1e8-1f1e6":[["\uD83C\uDDE8\uD83C\uDDE6"],"","",["flag-ca"],33,29,15,0], - "1f1e8-1f1e8":[["\uD83C\uDDE8\uD83C\uDDE8"],"","",["flag-cc"],33,30,7,0], - "1f1e8-1f1e9":[["\uD83C\uDDE8\uD83C\uDDE9"],"","",["flag-cd"],33,31,15,0], - "1f1e8-1f1eb":[["\uD83C\uDDE8\uD83C\uDDEB"],"","",["flag-cf"],33,32,15,0], - "1f1e8-1f1ec":[["\uD83C\uDDE8\uD83C\uDDEC"],"","",["flag-cg"],33,33,15,0], - "1f1e8-1f1ed":[["\uD83C\uDDE8\uD83C\uDDED"],"","",["flag-ch"],33,34,15,0], - "1f1e8-1f1ee":[["\uD83C\uDDE8\uD83C\uDDEE"],"","",["flag-ci"],33,35,15,0], - "1f1e8-1f1f0":[["\uD83C\uDDE8\uD83C\uDDF0"],"","",["flag-ck"],33,36,7,0], - "1f1e8-1f1f1":[["\uD83C\uDDE8\uD83C\uDDF1"],"","",["flag-cl"],33,37,15,0], - "1f1e8-1f1f2":[["\uD83C\uDDE8\uD83C\uDDF2"],"","",["flag-cm"],33,38,15,0], - "1f1e8-1f1f3":[["\uD83C\uDDE8\uD83C\uDDF3"],"\uE513","\uDBB9\uDCED",["flag-cn","cn"],33,39,15,0], - "1f1e8-1f1f4":[["\uD83C\uDDE8\uD83C\uDDF4"],"","",["flag-co"],33,40,15,0], - "1f1e8-1f1f5":[["\uD83C\uDDE8\uD83C\uDDF5"],"","",["flag-cp"],34,0,5,0], - "1f1e8-1f1f7":[["\uD83C\uDDE8\uD83C\uDDF7"],"","",["flag-cr"],34,1,15,0], - "1f1e8-1f1fa":[["\uD83C\uDDE8\uD83C\uDDFA"],"","",["flag-cu"],34,2,15,0], - "1f1e8-1f1fb":[["\uD83C\uDDE8\uD83C\uDDFB"],"","",["flag-cv"],34,3,15,0], - "1f1e8-1f1fc":[["\uD83C\uDDE8\uD83C\uDDFC"],"","",["flag-cw"],34,4,7,0], - "1f1e8-1f1fd":[["\uD83C\uDDE8\uD83C\uDDFD"],"","",["flag-cx"],34,5,7,0], - "1f1e8-1f1fe":[["\uD83C\uDDE8\uD83C\uDDFE"],"","",["flag-cy"],34,6,15,0], - "1f1e8-1f1ff":[["\uD83C\uDDE8\uD83C\uDDFF"],"","",["flag-cz"],34,7,15,0], - "1f1e9-1f1ea":[["\uD83C\uDDE9\uD83C\uDDEA"],"\uE50E","\uDBB9\uDCE8",["flag-de","de"],34,8,15,0], - "1f1e9-1f1ec":[["\uD83C\uDDE9\uD83C\uDDEC"],"","",["flag-dg"],34,9,5,0], - "1f1e9-1f1ef":[["\uD83C\uDDE9\uD83C\uDDEF"],"","",["flag-dj"],34,10,15,0], - "1f1e9-1f1f0":[["\uD83C\uDDE9\uD83C\uDDF0"],"","",["flag-dk"],34,11,15,0], - "1f1e9-1f1f2":[["\uD83C\uDDE9\uD83C\uDDF2"],"","",["flag-dm"],34,12,15,0], - "1f1e9-1f1f4":[["\uD83C\uDDE9\uD83C\uDDF4"],"","",["flag-do"],34,13,15,0], - "1f1e9-1f1ff":[["\uD83C\uDDE9\uD83C\uDDFF"],"","",["flag-dz"],34,14,15,0], - "1f1ea-1f1e6":[["\uD83C\uDDEA\uD83C\uDDE6"],"","",["flag-ea"],34,15,5,0], - "1f1ea-1f1e8":[["\uD83C\uDDEA\uD83C\uDDE8"],"","",["flag-ec"],34,16,15,0], - "1f1ea-1f1ea":[["\uD83C\uDDEA\uD83C\uDDEA"],"","",["flag-ee"],34,17,15,0], - "1f1ea-1f1ec":[["\uD83C\uDDEA\uD83C\uDDEC"],"","",["flag-eg"],34,18,15,0], - "1f1ea-1f1ed":[["\uD83C\uDDEA\uD83C\uDDED"],"","",["flag-eh"],34,19,13,0], - "1f1ea-1f1f7":[["\uD83C\uDDEA\uD83C\uDDF7"],"","",["flag-er"],34,20,15,0], - "1f1ea-1f1f8":[["\uD83C\uDDEA\uD83C\uDDF8"],"\uE511","\uDBB9\uDCEB",["flag-es","es"],34,21,15,0], - "1f1ea-1f1f9":[["\uD83C\uDDEA\uD83C\uDDF9"],"","",["flag-et"],34,22,15,0], - "1f1ea-1f1fa":[["\uD83C\uDDEA\uD83C\uDDFA"],"","",["flag-eu"],34,23,7,0], - "1f1eb-1f1ee":[["\uD83C\uDDEB\uD83C\uDDEE"],"","",["flag-fi"],34,24,15,0], - "1f1eb-1f1ef":[["\uD83C\uDDEB\uD83C\uDDEF"],"","",["flag-fj"],34,25,15,0], - "1f1eb-1f1f0":[["\uD83C\uDDEB\uD83C\uDDF0"],"","",["flag-fk"],34,26,13,0], - "1f1eb-1f1f2":[["\uD83C\uDDEB\uD83C\uDDF2"],"","",["flag-fm"],34,27,15,0], - "1f1eb-1f1f4":[["\uD83C\uDDEB\uD83C\uDDF4"],"","",["flag-fo"],34,28,15,0], - "1f1eb-1f1f7":[["\uD83C\uDDEB\uD83C\uDDF7"],"\uE50D","\uDBB9\uDCE7",["flag-fr","fr"],34,29,15,0], - "1f1ec-1f1e6":[["\uD83C\uDDEC\uD83C\uDDE6"],"","",["flag-ga"],34,30,15,0], - "1f1ec-1f1e7":[["\uD83C\uDDEC\uD83C\uDDE7"],"\uE510","\uDBB9\uDCEA",["flag-gb","gb","uk"],34,31,15,0], - "1f1ec-1f1e9":[["\uD83C\uDDEC\uD83C\uDDE9"],"","",["flag-gd"],34,32,15,0], - "1f1ec-1f1ea":[["\uD83C\uDDEC\uD83C\uDDEA"],"","",["flag-ge"],34,33,15,0], - "1f1ec-1f1eb":[["\uD83C\uDDEC\uD83C\uDDEB"],"","",["flag-gf"],34,34,5,0], - "1f1ec-1f1ec":[["\uD83C\uDDEC\uD83C\uDDEC"],"","",["flag-gg"],34,35,7,0], - "1f1ec-1f1ed":[["\uD83C\uDDEC\uD83C\uDDED"],"","",["flag-gh"],34,36,15,0], - "1f1ec-1f1ee":[["\uD83C\uDDEC\uD83C\uDDEE"],"","",["flag-gi"],34,37,15,0], - "1f1ec-1f1f1":[["\uD83C\uDDEC\uD83C\uDDF1"],"","",["flag-gl"],34,38,15,0], - "1f1ec-1f1f2":[["\uD83C\uDDEC\uD83C\uDDF2"],"","",["flag-gm"],34,39,15,0], - "1f1ec-1f1f3":[["\uD83C\uDDEC\uD83C\uDDF3"],"","",["flag-gn"],34,40,15,0], - "1f1ec-1f1f5":[["\uD83C\uDDEC\uD83C\uDDF5"],"","",["flag-gp"],35,0,5,0], - "1f1ec-1f1f6":[["\uD83C\uDDEC\uD83C\uDDF6"],"","",["flag-gq"],35,1,15,0], - "1f1ec-1f1f7":[["\uD83C\uDDEC\uD83C\uDDF7"],"","",["flag-gr"],35,2,15,0], - "1f1ec-1f1f8":[["\uD83C\uDDEC\uD83C\uDDF8"],"","",["flag-gs"],35,3,5,0], - "1f1ec-1f1f9":[["\uD83C\uDDEC\uD83C\uDDF9"],"","",["flag-gt"],35,4,15,0], - "1f1ec-1f1fa":[["\uD83C\uDDEC\uD83C\uDDFA"],"","",["flag-gu"],35,5,15,0], - "1f1ec-1f1fc":[["\uD83C\uDDEC\uD83C\uDDFC"],"","",["flag-gw"],35,6,15,0], - "1f1ec-1f1fe":[["\uD83C\uDDEC\uD83C\uDDFE"],"","",["flag-gy"],35,7,15,0], - "1f1ed-1f1f0":[["\uD83C\uDDED\uD83C\uDDF0"],"","",["flag-hk"],35,8,15,0], - "1f1ed-1f1f2":[["\uD83C\uDDED\uD83C\uDDF2"],"","",["flag-hm"],35,9,5,0], - "1f1ed-1f1f3":[["\uD83C\uDDED\uD83C\uDDF3"],"","",["flag-hn"],35,10,15,0], - "1f1ed-1f1f7":[["\uD83C\uDDED\uD83C\uDDF7"],"","",["flag-hr"],35,11,15,0], - "1f1ed-1f1f9":[["\uD83C\uDDED\uD83C\uDDF9"],"","",["flag-ht"],35,12,15,0], - "1f1ed-1f1fa":[["\uD83C\uDDED\uD83C\uDDFA"],"","",["flag-hu"],35,13,15,0], - "1f1ee-1f1e8":[["\uD83C\uDDEE\uD83C\uDDE8"],"","",["flag-ic"],35,14,5,0], - "1f1ee-1f1e9":[["\uD83C\uDDEE\uD83C\uDDE9"],"","",["flag-id"],35,15,15,0], - "1f1ee-1f1ea":[["\uD83C\uDDEE\uD83C\uDDEA"],"","",["flag-ie"],35,16,15,0], - "1f1ee-1f1f1":[["\uD83C\uDDEE\uD83C\uDDF1"],"","",["flag-il"],35,17,15,0], - "1f1ee-1f1f2":[["\uD83C\uDDEE\uD83C\uDDF2"],"","",["flag-im"],35,18,7,0], - "1f1ee-1f1f3":[["\uD83C\uDDEE\uD83C\uDDF3"],"","",["flag-in"],35,19,15,0], - "1f1ee-1f1f4":[["\uD83C\uDDEE\uD83C\uDDF4"],"","",["flag-io"],35,20,7,0], - "1f1ee-1f1f6":[["\uD83C\uDDEE\uD83C\uDDF6"],"","",["flag-iq"],35,21,15,0], - "1f1ee-1f1f7":[["\uD83C\uDDEE\uD83C\uDDF7"],"","",["flag-ir"],35,22,15,0], - "1f1ee-1f1f8":[["\uD83C\uDDEE\uD83C\uDDF8"],"","",["flag-is"],35,23,15,0], - "1f1ee-1f1f9":[["\uD83C\uDDEE\uD83C\uDDF9"],"\uE50F","\uDBB9\uDCE9",["flag-it","it"],35,24,15,0], - "1f1ef-1f1ea":[["\uD83C\uDDEF\uD83C\uDDEA"],"","",["flag-je"],35,25,15,0], - "1f1ef-1f1f2":[["\uD83C\uDDEF\uD83C\uDDF2"],"","",["flag-jm"],35,26,15,0], - "1f1ef-1f1f4":[["\uD83C\uDDEF\uD83C\uDDF4"],"","",["flag-jo"],35,27,15,0], - "1f1ef-1f1f5":[["\uD83C\uDDEF\uD83C\uDDF5"],"\uE50B","\uDBB9\uDCE5",["flag-jp","jp"],35,28,15,0], - "1f1f0-1f1ea":[["\uD83C\uDDF0\uD83C\uDDEA"],"","",["flag-ke"],35,29,15,0], - "1f1f0-1f1ec":[["\uD83C\uDDF0\uD83C\uDDEC"],"","",["flag-kg"],35,30,15,0], - "1f1f0-1f1ed":[["\uD83C\uDDF0\uD83C\uDDED"],"","",["flag-kh"],35,31,15,0], - "1f1f0-1f1ee":[["\uD83C\uDDF0\uD83C\uDDEE"],"","",["flag-ki"],35,32,15,0], - "1f1f0-1f1f2":[["\uD83C\uDDF0\uD83C\uDDF2"],"","",["flag-km"],35,33,15,0], - "1f1f0-1f1f3":[["\uD83C\uDDF0\uD83C\uDDF3"],"","",["flag-kn"],35,34,15,0], - "1f1f0-1f1f5":[["\uD83C\uDDF0\uD83C\uDDF5"],"","",["flag-kp"],35,35,15,0], - "1f1f0-1f1f7":[["\uD83C\uDDF0\uD83C\uDDF7"],"\uE514","\uDBB9\uDCEE",["flag-kr","kr"],35,36,15,0], - "1f1f0-1f1fc":[["\uD83C\uDDF0\uD83C\uDDFC"],"","",["flag-kw"],35,37,15,0], - "1f1f0-1f1fe":[["\uD83C\uDDF0\uD83C\uDDFE"],"","",["flag-ky"],35,38,15,0], - "1f1f0-1f1ff":[["\uD83C\uDDF0\uD83C\uDDFF"],"","",["flag-kz"],35,39,15,0], - "1f1f1-1f1e6":[["\uD83C\uDDF1\uD83C\uDDE6"],"","",["flag-la"],35,40,15,0], - "1f1f1-1f1e7":[["\uD83C\uDDF1\uD83C\uDDE7"],"","",["flag-lb"],36,0,15,0], - "1f1f1-1f1e8":[["\uD83C\uDDF1\uD83C\uDDE8"],"","",["flag-lc"],36,1,15,0], - "1f1f1-1f1ee":[["\uD83C\uDDF1\uD83C\uDDEE"],"","",["flag-li"],36,2,15,0], - "1f1f1-1f1f0":[["\uD83C\uDDF1\uD83C\uDDF0"],"","",["flag-lk"],36,3,15,0], - "1f1f1-1f1f7":[["\uD83C\uDDF1\uD83C\uDDF7"],"","",["flag-lr"],36,4,15,0], - "1f1f1-1f1f8":[["\uD83C\uDDF1\uD83C\uDDF8"],"","",["flag-ls"],36,5,15,0], - "1f1f1-1f1f9":[["\uD83C\uDDF1\uD83C\uDDF9"],"","",["flag-lt"],36,6,15,0], - "1f1f1-1f1fa":[["\uD83C\uDDF1\uD83C\uDDFA"],"","",["flag-lu"],36,7,15,0], - "1f1f1-1f1fb":[["\uD83C\uDDF1\uD83C\uDDFB"],"","",["flag-lv"],36,8,15,0], - "1f1f1-1f1fe":[["\uD83C\uDDF1\uD83C\uDDFE"],"","",["flag-ly"],36,9,15,0], - "1f1f2-1f1e6":[["\uD83C\uDDF2\uD83C\uDDE6"],"","",["flag-ma"],36,10,15,0], - "1f1f2-1f1e8":[["\uD83C\uDDF2\uD83C\uDDE8"],"","",["flag-mc"],36,11,15,0], - "1f1f2-1f1e9":[["\uD83C\uDDF2\uD83C\uDDE9"],"","",["flag-md"],36,12,15,0], - "1f1f2-1f1ea":[["\uD83C\uDDF2\uD83C\uDDEA"],"","",["flag-me"],36,13,15,0], - "1f1f2-1f1eb":[["\uD83C\uDDF2\uD83C\uDDEB"],"","",["flag-mf"],36,14,5,0], - "1f1f2-1f1ec":[["\uD83C\uDDF2\uD83C\uDDEC"],"","",["flag-mg"],36,15,15,0], - "1f1f2-1f1ed":[["\uD83C\uDDF2\uD83C\uDDED"],"","",["flag-mh"],36,16,15,0], - "1f1f2-1f1f0":[["\uD83C\uDDF2\uD83C\uDDF0"],"","",["flag-mk"],36,17,15,0], - "1f1f2-1f1f1":[["\uD83C\uDDF2\uD83C\uDDF1"],"","",["flag-ml"],36,18,15,0], - "1f1f2-1f1f2":[["\uD83C\uDDF2\uD83C\uDDF2"],"","",["flag-mm"],36,19,15,0], - "1f1f2-1f1f3":[["\uD83C\uDDF2\uD83C\uDDF3"],"","",["flag-mn"],36,20,15,0], - "1f1f2-1f1f4":[["\uD83C\uDDF2\uD83C\uDDF4"],"","",["flag-mo"],36,21,15,0], - "1f1f2-1f1f5":[["\uD83C\uDDF2\uD83C\uDDF5"],"","",["flag-mp"],36,22,7,0], - "1f1f2-1f1f6":[["\uD83C\uDDF2\uD83C\uDDF6"],"","",["flag-mq"],36,23,5,0], - "1f1f2-1f1f7":[["\uD83C\uDDF2\uD83C\uDDF7"],"","",["flag-mr"],36,24,15,0], - "1f1f2-1f1f8":[["\uD83C\uDDF2\uD83C\uDDF8"],"","",["flag-ms"],36,25,15,0], - "1f1f2-1f1f9":[["\uD83C\uDDF2\uD83C\uDDF9"],"","",["flag-mt"],36,26,15,0], - "1f1f2-1f1fa":[["\uD83C\uDDF2\uD83C\uDDFA"],"","",["flag-mu"],36,27,15,0], - "1f1f2-1f1fb":[["\uD83C\uDDF2\uD83C\uDDFB"],"","",["flag-mv"],36,28,15,0], - "1f1f2-1f1fc":[["\uD83C\uDDF2\uD83C\uDDFC"],"","",["flag-mw"],36,29,15,0], - "1f1f2-1f1fd":[["\uD83C\uDDF2\uD83C\uDDFD"],"","",["flag-mx"],36,30,15,0], - "1f1f2-1f1fe":[["\uD83C\uDDF2\uD83C\uDDFE"],"","",["flag-my"],36,31,15,0], - "1f1f2-1f1ff":[["\uD83C\uDDF2\uD83C\uDDFF"],"","",["flag-mz"],36,32,15,0], - "1f1f3-1f1e6":[["\uD83C\uDDF3\uD83C\uDDE6"],"","",["flag-na"],36,33,15,0], - "1f1f3-1f1e8":[["\uD83C\uDDF3\uD83C\uDDE8"],"","",["flag-nc"],36,34,13,0], - "1f1f3-1f1ea":[["\uD83C\uDDF3\uD83C\uDDEA"],"","",["flag-ne"],36,35,15,0], - "1f1f3-1f1eb":[["\uD83C\uDDF3\uD83C\uDDEB"],"","",["flag-nf"],36,36,7,0], - "1f1f3-1f1ec":[["\uD83C\uDDF3\uD83C\uDDEC"],"","",["flag-ng"],36,37,15,0], - "1f1f3-1f1ee":[["\uD83C\uDDF3\uD83C\uDDEE"],"","",["flag-ni"],36,38,15,0], - "1f1f3-1f1f1":[["\uD83C\uDDF3\uD83C\uDDF1"],"","",["flag-nl"],36,39,15,0], - "1f1f3-1f1f4":[["\uD83C\uDDF3\uD83C\uDDF4"],"","",["flag-no"],36,40,15,0], - "1f1f3-1f1f5":[["\uD83C\uDDF3\uD83C\uDDF5"],"","",["flag-np"],37,0,15,0], - "1f1f3-1f1f7":[["\uD83C\uDDF3\uD83C\uDDF7"],"","",["flag-nr"],37,1,15,0], - "1f1f3-1f1fa":[["\uD83C\uDDF3\uD83C\uDDFA"],"","",["flag-nu"],37,2,15,0], - "1f1f3-1f1ff":[["\uD83C\uDDF3\uD83C\uDDFF"],"","",["flag-nz"],37,3,15,0], - "1f1f4-1f1f2":[["\uD83C\uDDF4\uD83C\uDDF2"],"","",["flag-om"],37,4,15,0], - "1f1f5-1f1e6":[["\uD83C\uDDF5\uD83C\uDDE6"],"","",["flag-pa"],37,5,15,0], - "1f1f5-1f1ea":[["\uD83C\uDDF5\uD83C\uDDEA"],"","",["flag-pe"],37,6,15,0], - "1f1f5-1f1eb":[["\uD83C\uDDF5\uD83C\uDDEB"],"","",["flag-pf"],37,7,15,0], - "1f1f5-1f1ec":[["\uD83C\uDDF5\uD83C\uDDEC"],"","",["flag-pg"],37,8,15,0], - "1f1f5-1f1ed":[["\uD83C\uDDF5\uD83C\uDDED"],"","",["flag-ph"],37,9,15,0], - "1f1f5-1f1f0":[["\uD83C\uDDF5\uD83C\uDDF0"],"","",["flag-pk"],37,10,15,0], - "1f1f5-1f1f1":[["\uD83C\uDDF5\uD83C\uDDF1"],"","",["flag-pl"],37,11,15,0], - "1f1f5-1f1f2":[["\uD83C\uDDF5\uD83C\uDDF2"],"","",["flag-pm"],37,12,5,0], - "1f1f5-1f1f3":[["\uD83C\uDDF5\uD83C\uDDF3"],"","",["flag-pn"],37,13,7,0], - "1f1f5-1f1f7":[["\uD83C\uDDF5\uD83C\uDDF7"],"","",["flag-pr"],37,14,15,0], - "1f1f5-1f1f8":[["\uD83C\uDDF5\uD83C\uDDF8"],"","",["flag-ps"],37,15,15,0], - "1f1f5-1f1f9":[["\uD83C\uDDF5\uD83C\uDDF9"],"","",["flag-pt"],37,16,15,0], - "1f1f5-1f1fc":[["\uD83C\uDDF5\uD83C\uDDFC"],"","",["flag-pw"],37,17,15,0], - "1f1f5-1f1fe":[["\uD83C\uDDF5\uD83C\uDDFE"],"","",["flag-py"],37,18,15,0], - "1f1f6-1f1e6":[["\uD83C\uDDF6\uD83C\uDDE6"],"","",["flag-qa"],37,19,15,0], - "1f1f7-1f1ea":[["\uD83C\uDDF7\uD83C\uDDEA"],"","",["flag-re"],37,20,5,0], - "1f1f7-1f1f4":[["\uD83C\uDDF7\uD83C\uDDF4"],"","",["flag-ro"],37,21,15,0], - "1f1f7-1f1f8":[["\uD83C\uDDF7\uD83C\uDDF8"],"","",["flag-rs"],37,22,15,0], - "1f1f7-1f1fa":[["\uD83C\uDDF7\uD83C\uDDFA"],"\uE512","\uDBB9\uDCEC",["flag-ru","ru"],37,23,15,0], - "1f1f7-1f1fc":[["\uD83C\uDDF7\uD83C\uDDFC"],"","",["flag-rw"],37,24,15,0], - "1f1f8-1f1e6":[["\uD83C\uDDF8\uD83C\uDDE6"],"","",["flag-sa"],37,25,15,0], - "1f1f8-1f1e7":[["\uD83C\uDDF8\uD83C\uDDE7"],"","",["flag-sb"],37,26,15,0], - "1f1f8-1f1e8":[["\uD83C\uDDF8\uD83C\uDDE8"],"","",["flag-sc"],37,27,15,0], - "1f1f8-1f1e9":[["\uD83C\uDDF8\uD83C\uDDE9"],"","",["flag-sd"],37,28,15,0], - "1f1f8-1f1ea":[["\uD83C\uDDF8\uD83C\uDDEA"],"","",["flag-se"],37,29,15,0], - "1f1f8-1f1ec":[["\uD83C\uDDF8\uD83C\uDDEC"],"","",["flag-sg"],37,30,15,0], - "1f1f8-1f1ed":[["\uD83C\uDDF8\uD83C\uDDED"],"","",["flag-sh"],37,31,13,0], - "1f1f8-1f1ee":[["\uD83C\uDDF8\uD83C\uDDEE"],"","",["flag-si"],37,32,15,0], - "1f1f8-1f1ef":[["\uD83C\uDDF8\uD83C\uDDEF"],"","",["flag-sj"],37,33,5,0], - "1f1f8-1f1f0":[["\uD83C\uDDF8\uD83C\uDDF0"],"","",["flag-sk"],37,34,15,0], - "1f1f8-1f1f1":[["\uD83C\uDDF8\uD83C\uDDF1"],"","",["flag-sl"],37,35,15,0], - "1f1f8-1f1f2":[["\uD83C\uDDF8\uD83C\uDDF2"],"","",["flag-sm"],37,36,15,0], - "1f1f8-1f1f3":[["\uD83C\uDDF8\uD83C\uDDF3"],"","",["flag-sn"],37,37,15,0], - "1f1f8-1f1f4":[["\uD83C\uDDF8\uD83C\uDDF4"],"","",["flag-so"],37,38,15,0], - "1f1f8-1f1f7":[["\uD83C\uDDF8\uD83C\uDDF7"],"","",["flag-sr"],37,39,15,0], - "1f1f8-1f1f8":[["\uD83C\uDDF8\uD83C\uDDF8"],"","",["flag-ss"],37,40,7,0], - "1f1f8-1f1f9":[["\uD83C\uDDF8\uD83C\uDDF9"],"","",["flag-st"],38,0,15,0], - "1f1f8-1f1fb":[["\uD83C\uDDF8\uD83C\uDDFB"],"","",["flag-sv"],38,1,15,0], - "1f1f8-1f1fd":[["\uD83C\uDDF8\uD83C\uDDFD"],"","",["flag-sx"],38,2,7,0], - "1f1f8-1f1fe":[["\uD83C\uDDF8\uD83C\uDDFE"],"","",["flag-sy"],38,3,15,0], - "1f1f8-1f1ff":[["\uD83C\uDDF8\uD83C\uDDFF"],"","",["flag-sz"],38,4,15,0], - "1f1f9-1f1e6":[["\uD83C\uDDF9\uD83C\uDDE6"],"","",["flag-ta"],38,5,5,0], - "1f1f9-1f1e8":[["\uD83C\uDDF9\uD83C\uDDE8"],"","",["flag-tc"],38,6,7,0], - "1f1f9-1f1e9":[["\uD83C\uDDF9\uD83C\uDDE9"],"","",["flag-td"],38,7,15,0], - "1f1f9-1f1eb":[["\uD83C\uDDF9\uD83C\uDDEB"],"","",["flag-tf"],38,8,5,0], - "1f1f9-1f1ec":[["\uD83C\uDDF9\uD83C\uDDEC"],"","",["flag-tg"],38,9,15,0], - "1f1f9-1f1ed":[["\uD83C\uDDF9\uD83C\uDDED"],"","",["flag-th"],38,10,15,0], - "1f1f9-1f1ef":[["\uD83C\uDDF9\uD83C\uDDEF"],"","",["flag-tj"],38,11,15,0], - "1f1f9-1f1f0":[["\uD83C\uDDF9\uD83C\uDDF0"],"","",["flag-tk"],38,12,7,0], - "1f1f9-1f1f1":[["\uD83C\uDDF9\uD83C\uDDF1"],"","",["flag-tl"],38,13,15,0], - "1f1f9-1f1f2":[["\uD83C\uDDF9\uD83C\uDDF2"],"","",["flag-tm"],38,14,15,0], - "1f1f9-1f1f3":[["\uD83C\uDDF9\uD83C\uDDF3"],"","",["flag-tn"],38,15,15,0], - "1f1f9-1f1f4":[["\uD83C\uDDF9\uD83C\uDDF4"],"","",["flag-to"],38,16,15,0], - "1f1f9-1f1f7":[["\uD83C\uDDF9\uD83C\uDDF7"],"","",["flag-tr"],38,17,15,0], - "1f1f9-1f1f9":[["\uD83C\uDDF9\uD83C\uDDF9"],"","",["flag-tt"],38,18,15,0], - "1f1f9-1f1fb":[["\uD83C\uDDF9\uD83C\uDDFB"],"","",["flag-tv"],38,19,15,0], - "1f1f9-1f1fc":[["\uD83C\uDDF9\uD83C\uDDFC"],"","",["flag-tw"],38,20,15,0], - "1f1f9-1f1ff":[["\uD83C\uDDF9\uD83C\uDDFF"],"","",["flag-tz"],38,21,15,0], - "1f1fa-1f1e6":[["\uD83C\uDDFA\uD83C\uDDE6"],"","",["flag-ua"],38,22,15,0], - "1f1fa-1f1ec":[["\uD83C\uDDFA\uD83C\uDDEC"],"","",["flag-ug"],38,23,15,0], - "1f1fa-1f1f2":[["\uD83C\uDDFA\uD83C\uDDF2"],"","",["flag-um"],38,24,5,0], - "1f1fa-1f1f8":[["\uD83C\uDDFA\uD83C\uDDF8"],"\uE50C","\uDBB9\uDCE6",["flag-us","us"],38,25,15,0], - "1f1fa-1f1fe":[["\uD83C\uDDFA\uD83C\uDDFE"],"","",["flag-uy"],38,26,15,0], - "1f1fa-1f1ff":[["\uD83C\uDDFA\uD83C\uDDFF"],"","",["flag-uz"],38,27,15,0], - "1f1fb-1f1e6":[["\uD83C\uDDFB\uD83C\uDDE6"],"","",["flag-va"],38,28,15,0], - "1f1fb-1f1e8":[["\uD83C\uDDFB\uD83C\uDDE8"],"","",["flag-vc"],38,29,15,0], - "1f1fb-1f1ea":[["\uD83C\uDDFB\uD83C\uDDEA"],"","",["flag-ve"],38,30,15,0], - "1f1fb-1f1ec":[["\uD83C\uDDFB\uD83C\uDDEC"],"","",["flag-vg"],38,31,7,0], - "1f1fb-1f1ee":[["\uD83C\uDDFB\uD83C\uDDEE"],"","",["flag-vi"],38,32,15,0], - "1f1fb-1f1f3":[["\uD83C\uDDFB\uD83C\uDDF3"],"","",["flag-vn"],38,33,15,0], - "1f1fb-1f1fa":[["\uD83C\uDDFB\uD83C\uDDFA"],"","",["flag-vu"],38,34,15,0], - "1f1fc-1f1eb":[["\uD83C\uDDFC\uD83C\uDDEB"],"","",["flag-wf"],38,35,13,0], - "1f1fc-1f1f8":[["\uD83C\uDDFC\uD83C\uDDF8"],"","",["flag-ws"],38,36,15,0], - "1f1fd-1f1f0":[["\uD83C\uDDFD\uD83C\uDDF0"],"","",["flag-xk"],38,37,13,0], - "1f1fe-1f1ea":[["\uD83C\uDDFE\uD83C\uDDEA"],"","",["flag-ye"],38,38,15,0], - "1f1fe-1f1f9":[["\uD83C\uDDFE\uD83C\uDDF9"],"","",["flag-yt"],38,39,5,0], - "1f1ff-1f1e6":[["\uD83C\uDDFF\uD83C\uDDE6"],"","",["flag-za"],38,40,15,0], - "1f1ff-1f1f2":[["\uD83C\uDDFF\uD83C\uDDF2"],"","",["flag-zm"],39,0,15,0], - "1f1ff-1f1fc":[["\uD83C\uDDFF\uD83C\uDDFC"],"","",["flag-zw"],39,1,15,0], - "1f468-200d-1f468-200d-1f466":[["\uD83D\uDC68\u200D\uD83D\uDC68\u200D\uD83D\uDC66"],"","",["man-man-boy"],39,2,15,0], - "1f468-200d-1f468-200d-1f466-200d-1f466":[["\uD83D\uDC68\u200D\uD83D\uDC68\u200D\uD83D\uDC66\u200D\uD83D\uDC66"],"","",["man-man-boy-boy"],39,3,15,0], - "1f468-200d-1f468-200d-1f467":[["\uD83D\uDC68\u200D\uD83D\uDC68\u200D\uD83D\uDC67"],"","",["man-man-girl"],39,4,15,0], - "1f468-200d-1f468-200d-1f467-200d-1f466":[["\uD83D\uDC68\u200D\uD83D\uDC68\u200D\uD83D\uDC67\u200D\uD83D\uDC66"],"","",["man-man-girl-boy"],39,5,15,0], - "1f468-200d-1f468-200d-1f467-200d-1f467":[["\uD83D\uDC68\u200D\uD83D\uDC68\u200D\uD83D\uDC67\u200D\uD83D\uDC67"],"","",["man-man-girl-girl"],39,6,15,0], - "1f468-200d-1f469-200d-1f466-200d-1f466":[["\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66"],"","",["man-woman-boy-boy"],39,7,15,0], - "1f468-200d-1f469-200d-1f467":[["\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC67"],"","",["man-woman-girl"],39,8,15,0], - "1f468-200d-1f469-200d-1f467-200d-1f466":[["\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC66"],"","",["man-woman-girl-boy"],39,9,15,0], - "1f468-200d-1f469-200d-1f467-200d-1f467":[["\uD83D\uDC68\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67"],"","",["man-woman-girl-girl"],39,10,15,0], - "1f468-200d-2764-fe0f-200d-1f468":[["\uD83D\uDC68\u200D\u2764\uFE0F\u200D\uD83D\uDC68"],"","",["man-heart-man"],39,11,7,0], - "1f468-200d-2764-fe0f-200d-1f48b-200d-1f468":[["\uD83D\uDC68\u200D\u2764\uFE0F\u200D\uD83D\uDC8B\u200D\uD83D\uDC68"],"","",["man-kiss-man"],39,12,7,0], - "1f469-200d-1f469-200d-1f466":[["\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC66"],"","",["woman-woman-boy"],39,13,15,0], - "1f469-200d-1f469-200d-1f466-200d-1f466":[["\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66"],"","",["woman-woman-boy-boy"],39,14,15,0], - "1f469-200d-1f469-200d-1f467":[["\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67"],"","",["woman-woman-girl"],39,15,15,0], - "1f469-200d-1f469-200d-1f467-200d-1f466":[["\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC66"],"","",["woman-woman-girl-boy"],39,16,15,0], - "1f469-200d-1f469-200d-1f467-200d-1f467":[["\uD83D\uDC69\u200D\uD83D\uDC69\u200D\uD83D\uDC67\u200D\uD83D\uDC67"],"","",["woman-woman-girl-girl"],39,17,15,0], - "1f469-200d-2764-fe0f-200d-1f469":[["\uD83D\uDC69\u200D\u2764\uFE0F\u200D\uD83D\uDC69"],"","",["woman-heart-woman"],39,18,7,0], - "1f469-200d-2764-fe0f-200d-1f48b-200d-1f469":[["\uD83D\uDC69\u200D\u2764\uFE0F\u200D\uD83D\uDC8B\u200D\uD83D\uDC69"],"","",["woman-kiss-woman"],39,19,7,0] - }; \ No newline at end of file diff --git a/node_modules/node-emoji/lib/emojiparse.js b/node_modules/node-emoji/lib/emojiparse.js deleted file mode 100644 index d71a5b1..0000000 --- a/node_modules/node-emoji/lib/emojiparse.js +++ /dev/null @@ -1,27 +0,0 @@ -// parse emojifile.js and output emoji.json -var fs = require('fs'), - path = require('path'), - emoji = require('./emojifile').data; - -// parse -var parsed_emoji = {}; - -for (var key in emoji) { - if (emoji.hasOwnProperty(key)) { - var names = emoji[key][3]; - names = names.constructor === Array ? names : [names]; - var emoji_char = emoji[key][0][0]; - for (var name of names) { - parsed_emoji[name] = emoji_char; - } - } -} - -// write to emoji.json -fs.writeFile(path.join(__dirname, 'emoji.json'), JSON.stringify(parsed_emoji), function(err) { - if(err) { - console.error('Error:', err); - } else { - console.log('Done.'); - } -}); diff --git a/node_modules/node-emoji/package.json b/node_modules/node-emoji/package.json deleted file mode 100644 index 37dbe53..0000000 --- a/node_modules/node-emoji/package.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "node-emoji@^1.4.1", - "scope": null, - "escapedName": "node-emoji", - "name": "node-emoji", - "rawSpec": "^1.4.1", - "spec": ">=1.4.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/marked-terminal" - ] - ], - "_from": "node-emoji@>=1.4.1 <2.0.0", - "_id": "node-emoji@1.5.1", - "_inCache": true, - "_location": "/node-emoji", - "_nodeVersion": "6.8.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/node-emoji-1.5.1.tgz_1484487574434_0.1159358520526439" - }, - "_npmUser": { - "name": "omnidan", - "email": "me@omnidan.net" - }, - "_npmVersion": "3.10.8", - "_phantomChildren": {}, - "_requested": { - "raw": "node-emoji@^1.4.1", - "scope": null, - "escapedName": "node-emoji", - "name": "node-emoji", - "rawSpec": "^1.4.1", - "spec": ">=1.4.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/marked-terminal" - ], - "_resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.5.1.tgz", - "_shasum": "fd918e412769bf8c448051238233840b2aff16a1", - "_shrinkwrap": null, - "_spec": "node-emoji@^1.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/marked-terminal", - "author": { - "name": "Daniel Bugl", - "email": "daniel.bugl@touchlay.com" - }, - "bugs": { - "url": "https://github.com/omnidan/node-emoji/issues" - }, - "dependencies": { - "string.prototype.codepointat": "^0.2.0" - }, - "description": "simple emoji support for node.js projects", - "devDependencies": { - "istanbul": "^0.4.5", - "mocha": "^3.0.2", - "should": "^11.1.0" - }, - "directories": {}, - "dist": { - "shasum": "fd918e412769bf8c448051238233840b2aff16a1", - "tarball": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.5.1.tgz" - }, - "gitHead": "b0a43f72e84ce612d9d6b72cd564b8c1bbde173b", - "homepage": "https://github.com/omnidan/node-emoji#readme", - "keywords": [ - "emoji", - "simple", - "emoticons", - "emoticon", - "emojis", - "smiley", - "smileys", - "smilies", - "ideogram", - "ideograms" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "omnidan", - "email": "daniel.bugl@touchlay.com" - } - ], - "name": "node-emoji", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/omnidan/node-emoji.git" - }, - "scripts": { - "coverage": "istanbul cover _mocha test", - "emojiparse": "node lib/emojiparse.js", - "prepublish": "npm run test", - "test": "mocha --require should --bail --reporter spec test/*" - }, - "version": "1.5.1" -} diff --git a/node_modules/node-emoji/test/emoji.js b/node_modules/node-emoji/test/emoji.js deleted file mode 100644 index a77687a..0000000 --- a/node_modules/node-emoji/test/emoji.js +++ /dev/null @@ -1,113 +0,0 @@ -/*jslint node: true*/ -/*jslint expr: true*/ -/*global describe, it*/ -"use strict"; - -var should = require('should'); -var emoji = require('../index'); - -describe("emoji.js", function () { - describe("get(emoji)", function () { - it("should return an emoji code", function () { - var coffee = emoji.get('coffee'); - should.exist(coffee); - coffee.should.be.exactly('☕️'); - }); - - it("should support github flavored markdown emoji", function () { - var coffee = emoji.get(':coffee:'); - should.exist(coffee); - coffee.should.be.exactly('☕️'); - }); - }); - - describe("random()", function () { - it("should return a random emoji and the corresponding key", function () { - var result = emoji.random(); - should.exist(result); - should.exist(result.key); - should.exist(result.emoji); - result.emoji.should.be.exactly(emoji.get(result.key)); - }); - }); - - describe("which(emoji_code)", function () { - it("should return name of the emoji", function () { - var coffee = emoji.which('☕️'); - should.exist(coffee); - coffee.should.be.exactly('coffee'); - }); - it("should work for differently formed characters", function () { - var umbrella = emoji.which('☔'); - should.exist(umbrella); - umbrella.should.be.exactly('umbrella'); - }); - it("should return the same name for differently formed characters", function () { - var umbrella1 = emoji.which('☔'); - should.exist(umbrella1); - var umbrella2 = emoji.which('☔️'); - should.exist(umbrella2); - umbrella1.should.equal(umbrella2); - }); - }); - - describe("emojify(str)", function () { - it("should parse :emoji: in a string and replace them with the right emoji", function () { - var coffee = emoji.emojify('I :heart: :coffee:! - :hushed::star::heart_eyes: ::: test : : :+1:+'); - should.exist(coffee); - coffee.should.be.exactly('I ❤️ ☕️! - 😯⭐️😍 ::: test : : 👍+'); - }); - it("should leave unknown emoji", function () { - var coffee = emoji.emojify('I :unknown_emoji: :star: :another_one:'); - should.exist(coffee); - coffee.should.be.exactly('I :unknown_emoji: ⭐️ :another_one:'); - }); - - it("should replace unknown emoji using provided cb function", function () { - var coffee = emoji.emojify('I :unknown_emoji: :star: :another_one:', function(name) { - return name; - }); - should.exist(coffee); - coffee.should.be.exactly('I unknown_emoji ⭐️ another_one'); - }); - }); - - it("should return an emoji code", function () { - var coffee = emoji.emoji.coffee; - should.exist(coffee); - coffee.should.be.exactly('☕️'); - }); - - describe("search(str)", function () { - it("should return partially matched emojis", function () { - var matchingEmojis = emoji.search("cof"); - matchingEmojis.length.should.not.eql(0); - matchingEmojis.forEach(function(emoji) { - emoji.key.should.match(/^cof/); - }); - }); - - it("should only include emojies that begin with the search", function () { - var matchingEmojis = emoji.search("ca"); - matchingEmojis.length.should.not.eql(0); - matchingEmojis.forEach(function(emoji) { - var index = emoji.key.indexOf("ca"); - index.should.be.exactly(0); - }); - }); - - it("should match when you include the colon", function () { - var matchingEmojis = emoji.search(":c"); - matchingEmojis.length.should.not.eql(0); - matchingEmojis.forEach(function(emoji) { - var index = emoji.key.indexOf("c"); - index.should.be.exactly(0); - }); - }); - - it("should return an empty array when no matching emojis are found", function () { - var matchingEmojis = emoji.search("notAnEmoji"); - matchingEmojis.length.should.be.exactly(0); - }); - }); -}); diff --git a/node_modules/node-notifier/.npmignore b/node_modules/node-notifier/.npmignore deleted file mode 100644 index bf18882..0000000 --- a/node_modules/node-notifier/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -example/ -test -*.md -node-notifier_flow.png diff --git a/node_modules/node-notifier/.travis.yml b/node_modules/node-notifier/.travis.yml deleted file mode 100644 index dec3f41..0000000 --- a/node_modules/node-notifier/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -os: - - linux - - osx -language: node_js -node_js: - - "6" - - "5" - - "4" - - "0.11" - - "0.10" diff --git a/node_modules/node-notifier/CHANGELOG.md b/node_modules/node-notifier/CHANGELOG.md deleted file mode 100644 index 9fcfb61..0000000 --- a/node_modules/node-notifier/CHANGELOG.md +++ /dev/null @@ -1,159 +0,0 @@ -Changelog -=== - - -### `v4.6.1` - -1. Adds npm ignore file, ignoring tests and examples from package. -2. Fixes CI builds - -### `v4.6.0` - -1. Adds support for Icon URL in Growl ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115)) -2. Adds options for passing host and port to cli tool ([reported by @el-davo](https://github.com/mikaelbr/node-notifier/issues/106)) -3. Fixes sanitize response on `notify` callback ([by @MadLittleMods](https://github.com/mikaelbr/node-notifier/commit/a44454a11eff452a8b55f9fbe291e189ed088708)) -4. Fixes use of new line in messages ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/115)) -5. Fixes use of `file:///xxx` protocol icon paths for Windows 8.1 ([by @gucong3000](https://github.com/mikaelbr/node-notifier/pull/118)) -6. Fixes non-TTY usage and piping messages ([reported by @simensen](https://github.com/mikaelbr/node-notifier/issues/109)) -7. Updates vendor terminal-notifier version to 1.6.3 ([reported by @kid-icarus](https://github.com/mikaelbr/node-notifier/pull/120)) - -### `v4.5.0` - -#### Additions -1. Adds syntactic sugar for `notify`. Now able to just pass message: -```js -notifier.notify('My message'); -``` - -See [#45](https://github.com/mikaelbr/node-notifier/issues/45) for more info. - -#### Fixes -1. Improvements to docs and examples -2. Updates `semver` dependency to support Webpacking with Electron. - -### `v4.4.0` - -1. Changes to exec terminal-notifier through execFile to allow for asar-packages -2. Adds support for remote growl server -3. Adds support for win7 with electron asar-package - -### `v4.3.1` -Obligatory patch fix: -1. Adds new stdin CLI options to docs - -### `v4.3.0` -1. Adds support for piping messages in to CLI. -(With `node-notifier` installed as a CLI `npm i -g node-notifier`) - -```shell -➜ echo "Message" | notify -➜ echo "Message" | notify -t "My Title" -➜ echo "Some message" | notify -t "My Title" -s -``` - -### `v4.2.3` -1. Fixed input arguments to CLI to be strings where they should be strings. - -### `v4.2.2` -1. Fixed no notification when no message for the CLI. [#58](https://github.com/mikaelbr/node-notifier/pull/58) -2. Changes `which` test to be sync, avoiding some edge cases with multiple notifications. - -### `v4.2.1` -1. Minor fix for docs in CLI usage - -### `v4.2.0` -1. Adds CLI support. -2. Fixes Debug "HRESULT : 0xC00CE508" exception on Win8. PR [#49](https://github.com/mikaelbr/node-notifier/pull/49) - -### `v4.1.2` -1. Fixes correct terminal-notifier (own fork https://github.com/mikaelbr/terminal-notifier) - to support activate / click. - -### `v4.1.1` -1. Fixes proper error codes for balloon: #42 -2. Removes unused debug files: #41 -3. Patches differences between subtitle for notify-send: #43 -4. Updates terminal-notifier dependency (removing black borders) #44 #18 - -### `v4.1.0` -1. Adds support for changing host and port for Growl. - -### `v4.0.3` -1. Fixes Notification center issue with multiple callback events. -2. Fixes error in source code: Fixes long-spaces to proper spaces - -### `v4.0.2` -1. Fixes issue with immidiate notifu notifications (with `wait : false`) -2. Fixes issue with boolean flags for notifu. -3. Restructures directories. Making it easier to require notifiers directly. - -### `v4.0.1` -1. Fixes issue with optional callback for notify-send - -### `v4.0.0` -Major changes and breaking API. -1. require('node-notifier') now returns an instance with fallbackable notifications. -```js -var notifier = require('node-notifier'); -notifier.notify(); -``` -2. Introduced a `wait` property (default `false`), to get user input for -Notification Center, Windows Toaster, Windows Balloons and Growl. Sadly not -for notify-send. -```js -var notifier = require('node-notifier'); -notifier.notify({ wait: true }, function (err, response) { - // response is response after user have interacted - // with the notification or the notification has timed out. -}); -``` -3. All notification instances are now event emitters, emitting events -`click` or `timeout`. This is only applicable if `{ wait: true }`. -```js -var notifier = require('node-notifier'); -notifier.on('click', function (notificationObject, options) { - // options.someArbitraryData === 'foo' -}); -notifier.notify({ wait: true, someArbitraryData: 'foo' }); -``` -4. WindowsToaster and NotificationCenter now can have sounds by doing `{ sound: true }`. -Default NotificationCenter sound is Bottle. Can still use define sound on -Mac: -```js -var notifier = require('node-notifier'); -notifier.notify({ sound: true }); -// For mac (same as sound: true on Windows 8) -notifier.notify({ sound: 'Morse' }); -``` - -### `v3.4.0` -1. Adds Growl as priority over Balloons - -### `v3.3.0` -1. Adds support for native Windows 7 and earlier (through task bar balloons) -2. Changes growl implementation. Adds better support for GNTP - -### `v3.2.1` -1. Fixes support for notifications from folders with spaces on Windows. - -### `v3.2.0` -1. Adds native Windows 8 support. - -### `v3.1.0` -1. Adds Growl as fallback for Mac OS X pre 10.8. - -### `v3.0.6` -1. Fixes typo: Changes Growl app name from `Gulp` to `Node`. - -### `v3.0.5` -1. Maps common options between the different notifiers. Allowing for common usage with different notifiers. - -### `v3.0.4` -1. Fixes expires for notify-send (Issue #13) - -### `v3.0.2` -1. Fixes version check for Mac OS X Yosemite - -### `v3.0.0` -1. Updates terminal-notifier to version 1.6.0; adding support for appIcon and contentImage -2. Removes parsing of output sent from notifier (Notification Center) diff --git a/node_modules/node-notifier/README.md b/node_modules/node-notifier/README.md deleted file mode 100644 index 025588a..0000000 --- a/node_modules/node-notifier/README.md +++ /dev/null @@ -1,368 +0,0 @@ -# node-notifier [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] - -A Node.js module for sending cross platform system notifications. Using -Notification Center for Mac, notify-osd/libnotify-bin for Linux, Toasters for -Windows 8/10, or taskbar Balloons for earlier Windows versions. If none of -these requirements are met, Growl is used. - -![Mac Screenshot](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/mac.png) -![Native Windows Screenshot](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/windows.png) -![Growl Screenshot](https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/growl.png) - -## Quick Usage - -Show a native notification on Mac, Windows, Linux: - -```javascript -const notifier = require('node-notifier'); -// String -notifier.notify('Message'); - -// Object -notifier.notify({ - 'title': 'My notification', - 'message': 'Hello, there!' -}); -``` - -## Requirements -- **Mac OS X**: >= 10.8 or Growl if earlier. -- **Linux**: `notify-osd` or `libnotify-bin` installed (Ubuntu should have this by default) -- **Windows**: >= 8, task bar balloon if earlier or Growl if that is installed. -- **General Fallback**: Growl - -Growl takes precedence over Windows balloons. - -See [documentation and flow chart for reporter choice](./DECISION_FLOW.md) - -## Install -``` -$ npm install --save node-notifier -``` - -## Cross-Platform Advanced Usage - -Standard usage, with cross-platform fallbacks as defined in the -[reporter flow chart](./DECISION_FLOW.md). All of the options -below will work in a way or another on all platforms. - -```javascript -const notifier = require('node-notifier'); -const path = require('path'); - -notifier.notify({ - title: 'My awesome title', - message: 'Hello from node, Mr. User!', - icon: path.join(__dirname, 'coulson.jpg'), // Absolute path (doesn't work on balloons) - sound: true, // Only Notification Center or Windows Toasters - wait: true // Wait with callback, until user action is taken against notification -}, function (err, response) { - // Response is response from notification -}); - -notifier.on('click', function (notifierObject, options) { - // Triggers if `wait: true` and user clicks notification -}); - -notifier.on('timeout', function (notifierObject, options) { - // Triggers if `wait: true` and notification closes -}); -``` - -You can also specify what reporter you want to use if you -want to customize it or have more specific options per system. -See documentation for each reporter below. - -Example: -```javascript -const NotificationCenter = require('node-notifier/notifiers/notificationcenter'); -new NotificationCenter(options).notify(); - -const NotifySend = require('node-notifier/notifiers/notifysend'); -new NotifySend(options).notify(); - -const WindowsToaster = require('node-notifier/notifiers/toaster'); -new WindowsToaster(options).notify(); - -const Growl = require('node-notifier/notifiers/growl'); -new Growl(options).notify(); - -const WindowsBalloon = require('node-notifier/notifiers/balloon'); -new WindowsBalloon(options).notify(); - -``` - -Or if you are using several (or you are lazy): -(note: technically, this takes longer to require) - -```javascript -const nn = require('node-notifier'); - -new nn.NotificationCenter(options).notify(); -new nn.NotifySend(options).notify(); -new nn.WindowsToaster(options).notify(options); -new nn.WindowsBalloon(options).notify(options); -new nn.Growl(options).notify(options); -``` - -## Contents - -* [Notification Center documentation](#usage-notificationcenter) -* [Windows Toaster documentation](#usage-windowstoaster) -* [Windows Balloon documentation](#usage-windowsballoon) -* [Growl documentation](#usage-growl) -* [Notify-send documentation](#usage-notifysend) - - -### Usage NotificationCenter - -Same usage and parameter setup as [terminal-notifier](https://github.com/alloy/terminal-notifier). - -Native Notification Center requires Mac OS X version 10.8 or higher. If you have -an earlier version, Growl will be the fallback. If Growl isn't installed, an -error will be returned in the callback. - - -#### Example - -Wrapping around [terminal-notifier](https://github.com/alloy/terminal-notifier), you can -do all terminal-notifier can do through properties to the `notify` method. E.g. -if `terminal-notifier` says `-message`, you can do `{message: 'Foo'}`, or -if `terminal-notifier` says `-list ALL`, you can do `{list: 'ALL'}`. Notification -is the primary focus for this module, so listing and activating do work, -but isn't documented. - -### All notification options with their defaults: - -```javascript -const NotificationCenter = require('node-notifier').NotificationCenter; - -var notifier = new NotificationCenter({ - withFallback: false, // Use Growl Fallback if <= 10.8 - customPath: void 0 // Relative path if you want to use your fork of terminal-notifier -}); - -notifier.notify({ - 'title': void 0, - 'subtitle': void 0, - 'message': void 0, - 'sound': false, // Case Sensitive string for location of sound file, or use one of OS X's native sounds (see below) - 'icon': 'Terminal Icon', // Absolute Path to Triggering Icon - 'contentImage': void 0, // Absolute Path to Attached Image (Content Image) - 'open': void 0, // URL to open on Click - 'wait': false // Wait for User Action against Notification -}, function(error, response) { - console.log(response); -}); -``` - -**For Mac OS notifications, icon and contentImage requires OS X 10.9.** - -Sound can be one of these: `Basso`, `Blow`, `Bottle`, `Frog`, `Funk`, `Glass`, -`Hero`, `Morse`, `Ping`, `Pop`, `Purr`, `Sosumi`, `Submarine`, `Tink`. -If sound is simply `true`, `Bottle` is used. - -See [specific Notification Center example](./example/advanced.js). - -### Usage WindowsToaster - -**Note:** There are some limitations for images in native Windows 8 notifications: -The image must be a PNG image, and cannot be over 1024x1024 px, or over over 200Kb. -You also need to specify the image by using an absolute path. These limitations are -due to the Toast notification system. A good tip is to use something like -`path.join` or `path.delimiter` to have cross-platform pathing. - -**Windows 10 Note:** You might have to activate banner notification for the toast to show. - -From [mikaelbr/gulp-notify#90 (comment)](https://github.com/mikaelbr/gulp-notify/issues/90#issuecomment-129333034) -> You can make it work by going to System > Notifications & Actions. The 'toast' app needs to have Banners enabled. (You can activate banners by clicking on the 'toast' app and setting the 'Show notification banners' to On) - -[toaster](https://github.com/nels-o/toaster) is used to get native Windows Toasts! - -```javascript -const WindowsToaster = require('node-notifier').WindowsToaster; - -var notifier = new WindowsToaster({ - withFallback: false, // Fallback to Growl or Balloons? - customPath: void 0 // Relative path if you want to use your fork of toast.exe -}); - -notifier.notify({ - title: void 0, - message: void 0, - icon: void 0, // Absolute path to Icon - sound: false, // true | false. - wait: false, // Wait for User Action against Notification -}, function(error, response) { - console.log(response); -}); -``` - -### Usage Growl - -```javascript -const Growl = require('node-notifier').Growl; - -var notifier = new Growl({ - name: 'Growl Name Used', // Defaults as 'Node' - host: 'localhost', - port: 23053 -}); - -notifier.notify({ - title: 'Foo', - message: 'Hello World', - icon: fs.readFileSync(__dirname + "/coulson.jpg"), - wait: false, // Wait for User Action against Notification - - // and other growl options like sticky etc. - sticky: false, - label: void 0, - priority: void 0 -}); -``` - -See more information about using -[growly](https://github.com/theabraham/growly/). - -### Usage WindowsBalloon - -For earlier Windows versions, the taskbar balloons are used (unless -fallback is activated and Growl is running). For balloons, a great -project called [notifu](http://www.paralint.com/projects/notifu/) is used. - -```javascript -const WindowsBalloon = require('node-notifier').WindowsBalloon; - -var notifier = new WindowsBalloon({ - withFallback: false, // Try Windows Toast and Growl first? - customPath: void 0 // Relative path if you want to use your fork of notifu -}); - -notifier.notify({ - title: void 0, - message: void 0, - sound: false, // true | false. - time: 5000, // How long to show balloon in ms - wait: false, // Wait for User Action against Notification - type: 'info' // The notification type : info | warn | error -}, function(error, response) { - console.log(response); -}); -``` - -See full usage on the [project homepage: -notifu](http://www.paralint.com/projects/notifu/). - -### Usage NotifySend - -Note: notify-send doesn't support the wait flag. - -```javascript -const NotifySend = require('node-notifier').NotifySend; - -var notifier = new NotifySend(); - -notifier.notify({ - title: 'Foo', - message: 'Hello World', - icon: __dirname + "/coulson.jpg", - - // .. and other notify-send flags: - urgency: void 0, - time: void 0, - category: void 0, - hint: void 0, -}); -``` - -See flags and options [on the man pages](http://manpages.ubuntu.com/manpages/gutsy/man1/notify-send.1.html) - -## CLI - -You can also use node-notifier as a CLI (as of `v4.2.0`). - -```shell -$ notify -h - -# notify -## Options - * --help (alias -h) - * --title (alias -t) - * --subtitle (alias -st) - * --message (alias -m) - * --icon (alias -i) - * --sound (alias -s) - * --open (alias -o) - -## Example - - $ notify -t "Hello" -m "My Message" -s --open http://github.com - $ notify -t "Agent Coulson" --icon https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/coulson.jpg -m "Well, that's new. " - $ notify -m "My Message" -s Glass - $ echo "My Message" | notify -t "Hello" -``` - -You can also pass message in as `stdin`: - -```js -➜ echo "Message" | notify - -# Works with existing arguments -➜ echo "Message" | notify -t "My Title" -➜ echo "Some message" | notify -t "My Title" -s -``` - -## Thanks to OSS - -`node-notifier` is made possible through Open Source Software. A very special thanks to all the modules `node-notifier` uses. -* [terminal-notifier](https://github.com/alloy/terminal-notifier) -* [toaster](https://github.com/nels-o/toaster) -* [notifu](http://www.paralint.com/projects/notifu/) -* [growly](https://github.com/theabraham/growly/) - -[![NPM downloads][npm-downloads]][npm-url] - -## Common Issues - -### Use inside tmux session - -When using node-notifier within a tmux session, it can cause a hang in the system. This can be solved by following the steps described in this comment: https://github.com/julienXX/terminal-notifier/issues/115#issuecomment-104214742 - -See more info here: https://github.com/mikaelbr/node-notifier/issues/61#issuecomment-163560801 - - -### Within Electron Packaging - -If packaging your Electron app as an `asar`, you will find node-notifier will fail to load. Due to the way asar works, you cannot execute a binary from within an asar. As a simple solution, when packaging the app into an asar please make sure you `--unpack` the vendor folder of node-notifier, so the module still has access to the notification binaries. To do this, you can do so by using the following command: - -```bash -asar pack . app.asar --unpack "./node_modules/node-notifier/vendor/**" -``` - - -### Using Webpack - -When using node-notifier inside of webpack, you must add the following snippet to your `webpack.config.js`. The reason this is required, is because node-notifier loads the notifiers from a binary, and so a relative file path is needed. When webpack compiles the modules, it supresses file directories, causing node-notifier to error on certain platforms. To fix/workaround this, you must tell webpack to keep the relative file directories, by doing so, append the following code to your `webpack.config.js` - -```javascript -node: { - __filename: true, - __dirname: true -} -``` - - -## License - -[MIT License](http://en.wikipedia.org/wiki/MIT_License) - -[npm-url]: https://npmjs.org/package/node-notifier -[npm-image]: http://img.shields.io/npm/v/node-notifier.svg?style=flat -[npm-downloads]: http://img.shields.io/npm/dm/node-notifier.svg?style=flat - -[travis-url]: http://travis-ci.org/mikaelbr/node-notifier -[travis-image]: http://img.shields.io/travis/mikaelbr/node-notifier.svg?style=flat - -[depstat-url]: https://gemnasium.com/mikaelbr/node-notifier -[depstat-image]: http://img.shields.io/gemnasium/mikaelbr/node-notifier.svg?style=flat diff --git a/node_modules/node-notifier/bin.js b/node_modules/node-notifier/bin.js deleted file mode 100755 index 57adfb3..0000000 --- a/node_modules/node-notifier/bin.js +++ /dev/null @@ -1,99 +0,0 @@ -#!/usr/bin/env node - -var Notification = require('./').Notification; -var minimist = require('minimist'); -var usage = require('cli-usage'); - -var aliases = { - 'help': 'h', - 'title': 't', - 'subtitle': 'st', - 'message': 'm', - 'icon': 'i', - 'sound': 's', - 'open': 'o', - 'port': 'p', -}; - -var argv = minimist(process.argv.slice(2), { - alias: aliases, - string: ['icon', 'message', 'open', 'subtitle', 'title', 'host', 'port'] -}); - -readme(aliases, ['host']); - -var validOpts = Object.keys(aliases).concat('host'); -var passedOptions = getOptionsIfExists(validOpts, argv); -var stdinMessage = ''; - -if (process.stdin.isTTY) { - doNotification(passedOptions); -} else { - process.stdin.resume(); - process.stdin.setEncoding('utf8'); - process.stdin.on('data', function(data) { - if (data) { - stdinMessage += data; - } else { - doNotification(passedOptions); - this.end(); - return; - } - }); - process.stdin.on('end', function(){ - if (stdinMessage) { - passedOptions.message = stdinMessage; - } - doNotification(passedOptions); - }); -} - -function doNotification (options) { - var notifier = new Notification(options); - if (!options.message) { - // Do not show an empty message - process.exit(0); - } - notifier.notify(options, function (err, msg) { - if (err) { - console.error(err.message); - process.exit(1); - } - - if (!msg) return; - console.log(msg); - process.exit(0); - }); -} - -function getOptionsIfExists(optionTypes, argv) { - var options = {}; - optionTypes.forEach(function (key) { - if (key && argv[key]) { - options[key] = argv[key]; - } - }); - return options; -} - -function readme(input, extra) { - var str = '# notify\n \n## Options\n' + params(input, extra) + '\n\n'; - str += '## Example\n```shell\n'; - str += '$ notify -t "Hello" -m "My Message" -s --open http://github.com\n'; - str += '$ notify -t "Agent Coulson" --icon https://raw.githubusercontent.com/mikaelbr/node-notifier/master/example/coulson.jpg \n'; - str += '$ notify -m "My Message" -s Glass\n'; - str += '$ echo "My Message" | notify -t "Hello"```\n\n'; - usage(str); -} - -function params(input, extra) { - var withAlias = Object.keys(input).reduce(function (acc, key) { - return acc + ' * --' + key + ' (alias -' + input[key] + ')\n'; - }, ''); - - if (!extra) return withAlias; - - return withAlias + extra.reduce(function (acc, key) { - return acc + ' * --' + key + '\n'; - }, '') -} diff --git a/node_modules/node-notifier/index.js b/node_modules/node-notifier/index.js deleted file mode 100644 index 2967185..0000000 --- a/node_modules/node-notifier/index.js +++ /dev/null @@ -1,41 +0,0 @@ -var os = require('os'); -var utils = require('./lib/utils'); - -// All notifiers -var NotifySend = require('./notifiers/notifysend'); -var NotificationCenter = require('./notifiers/notificationcenter'); -var WindowsToaster = require('./notifiers/toaster'); -var Growl = require('./notifiers/growl'); -var WindowsBalloon = require('./notifiers/balloon'); - -var options = { withFallback: true }; - -switch(os.type()) { - case 'Linux': - module.exports = new NotifySend(options); - module.exports.Notification = NotifySend; - break; - case 'Darwin': - module.exports = new NotificationCenter(options); - module.exports.Notification = NotificationCenter; - break; - case 'Windows_NT': - if (utils.isLessThanWin8()) { - module.exports = new WindowsBalloon(options); - module.exports.Notification = WindowsBalloon; - } else { - module.exports = new WindowsToaster(options); - module.exports.Notification = WindowsToaster; - } - break; - default: - module.exports = new Growl(options); - module.exports.Notification = Growl; -} - -// Expose notifiers to give full control. -module.exports.NotifySend = NotifySend; -module.exports.NotificationCenter = NotificationCenter; -module.exports.WindowsToaster = WindowsToaster; -module.exports.WindowsBalloon = WindowsBalloon; -module.exports.Growl = Growl; diff --git a/node_modules/node-notifier/lib/checkGrowl.js b/node_modules/node-notifier/lib/checkGrowl.js deleted file mode 100644 index 3c6f555..0000000 --- a/node_modules/node-notifier/lib/checkGrowl.js +++ /dev/null @@ -1,25 +0,0 @@ -var net = require('net'); - -var hasGrowl = false; - -module.exports = function (growlConfig, cb) { - if (typeof cb == 'undefined') { - cb = growlConfig; - growlConfig = {}; - } - if (hasGrowl) return cb(hasGrowl); - var port = growlConfig.port || 23053; - var host = growlConfig.host || 'localhost'; - var socket = net.connect(port, host); - socket.setTimeout(100); - - socket.on('connect', function() { - socket.end(); - cb(true); - }); - - socket.on('error', function() { - socket.end(); - cb(false); - }); -}; diff --git a/node_modules/node-notifier/lib/utils.js b/node_modules/node-notifier/lib/utils.js deleted file mode 100644 index 4f8ef07..0000000 --- a/node_modules/node-notifier/lib/utils.js +++ /dev/null @@ -1,358 +0,0 @@ -var cp = require('child_process'), - os = require('os'), - fs = require('fs'), - url = require('url'), - path = require('path'), - shellwords = require('shellwords'), - semver = require('semver'), - clone = require('lodash.clonedeep'); - - -var escapeQuotes = function (str) { - if (typeof str === 'string') { - return str.replace(/(["$`\\])/g, '\\$1'); - } else { - return str; - } -}; - -var inArray = function (arr, val) { - for(var i = 0; i < arr.length; i++) { - if (arr[i] === val) { - return true; - } - } - return false; -}; - -var notifySendFlags = { - "u": "urgency", - "urgency": "urgency", - "t": "expire-time", - "e": "expire-time", - "expire": "expire-time", - "expire-time": "expire-time", - "i": "icon", - "icon": "icon", - "c": "category", - "category": "category", - "subtitle": "category", - "h": "hint", - "hint": "hint" -}; - -module.exports.command = function (notifier, options, cb) { - notifier = shellwords.escape(notifier); - return cp.exec(notifier + ' ' + options.join(' '), function (error, stdout, stderr) { - if (error) return cb(error); - cb(stderr, stdout); - }); -}; - -module.exports.fileCommand = function (notifier, options, cb) { - return cp.execFile(notifier, options, function (error, stdout, stderr) { - if (error) return cb(error, stdout); - cb(stderr, stdout); - }); -}; - -module.exports.immediateFileCommand = function (notifier, options, cb) { - notifierExists(notifier, function (exists) { - if (!exists) return cb(new Error('Notifier (' + notifier + ') not found on system.')); - cp.execFile(notifier, options); - cb(); - }); -}; - -function notifierExists (notifier, cb) { - return fs.stat(notifier, function (err, stat) { - if (!err) return cb(stat.isFile()); - - // Check if Windows alias - if (!!path.extname(notifier)) { - // Has extentioon, no need to check more - return cb(false); - } - - // Check if there is an exe file in the directory - return fs.stat(notifier + '.exe', function (err, stat) { - cb(stat.isFile()); - }); - }); -} - -var mapAppIcon = function (options) { - if (options.appIcon) { - options.icon = options.appIcon; - delete options.appIcon; - } - - return options; -}; - -var mapText = function (options) { - if (options.text) { - options.message = options.text; - delete options.text; - } - - return options; -}; - -var mapIconShorthand = function (options) { - if (options.i) { - options.icon = options.i; - delete options.i; - } - - return options; -}; - -module.exports.mapToNotifySend = function (options) { - options = mapAppIcon(options); - options = mapText(options); - - for (var key in options) { - if (key === "message" || key === "title") continue; - if (options.hasOwnProperty(key) && (notifySendFlags[key] != key)) { - options[notifySendFlags[key]] = options[key]; - delete options[key]; - } - } - - return options; -}; - -module.exports.mapToGrowl = function (options) { - options = mapAppIcon(options); - options = mapIconShorthand(options); - options = mapText(options); - - if (options.icon && !Buffer.isBuffer(options.icon)) { - try { - options.icon = fs.readFileSync(options.icon); - }catch(ex){ - - } - } - - return options; -}; - -module.exports.mapToMac = function (options) { - options = mapIconShorthand(options); - options = mapText(options); - - if (options.icon) { - options.appIcon = options.icon; - delete options.icon; - } - - if (options.sound === true) { - options.sound = 'Bottle'; - } - - if (options.sound === false) { - delete options.sound; - } - - return options; -}; - -module.exports.actionJackerDecorator = function (emitter, options, fn, mapper) { - options = clone(options); - fn = fn || function (err, data) {}; - return function (err, data) { - - var resultantData = data; - // Sanitize the data - if(resultantData) { - resultantData = resultantData.toLowerCase().trim(); - if(resultantData.match(/^activate/)) { - resultantData = 'activate'; - } - } - fn.apply(emitter, [err, resultantData]); - if (err || !mapper || !resultantData) return; - - var key = mapper(resultantData); - if (!key) return; - emitter.emit(key, emitter, options); - }; -}; - -module.exports.constructArgumentList = function (options, extra) { - var args = []; - extra = extra || {}; - - // Massive ugly setup. Default args - var initial = extra.initial || []; - var keyExtra = extra.keyExtra || ""; - var allowedArguments = extra.allowedArguments || []; - var noEscape = extra.noEscape !== void 0; - var checkForAllowed = extra.allowedArguments !== void 0; - var explicitTrue = !!extra.explicitTrue; - var wrapper = extra.wrapper === void 0 ? '"' : extra.wrapper; - - var escapeFn = function(arg) { - if (!noEscape) { - arg = escapeQuotes(arg); - } - if(typeof arg === 'string'){ - arg = arg.replace(/\r?\n/g, '\\n'); - } - return arg; - } - - initial.forEach(function (val) { - args.push(wrapper + escapeFn(val) + wrapper); - }); - for(var key in options) { - if (options.hasOwnProperty(key) && (!checkForAllowed || inArray(allowedArguments, key))) { - if (explicitTrue && options[key] === true) args.push('-' + keyExtra + key); - else if (explicitTrue && options[key] === false) continue; - else args.push('-' + keyExtra + key, wrapper + escapeFn(options[key]) + wrapper); - } - } - return args; -}; - -module.exports.mapToWin8 = function (options){ - - options = mapAppIcon(options); - options = mapText(options); - - if(options.icon){ - if (/^file:\/+/.test(options.icon)) { - // should parse file protocol URL to path - options.p = url.parse(options.icon).pathname.replace(/^\/(\w\:\/)/, "$1").replace(/\//g, "\\"); - } else { - options.p = options.icon; - } - delete options.icon; - } - - if(options.message){ - // Remove escape char to debug "HRESULT : 0xC00CE508" exception - options.m = options.message.replace(/\x1b/g, ''); - delete options.message; - } - - if (options.title) { - options.t = options.title; - delete options.title; - } - - if (options.quiet || options.silent) { - options.q = options.quiet || options.silent; - delete options.quiet; - delete options.silent; - } - - if (options.q !== false) { - options.q = true; - } else { - delete options.q; - } - - if (options.sound) { - delete options.q; - delete options.sound; - } - - if (options.wait) { - options.w = options.wait; - delete options.wait; - } - - return options; -}; - -module.exports.mapToNotifu = function (options) { - options = mapAppIcon(options); - options = mapText(options); - - if(options.icon){ - options.i = options.icon; - delete options.icon; - } - - if(options.message){ - options.m = options.message; - delete options.message; - } - - if (options.title) { - options.p = options.title; - delete options.title; - } - - if (options.time) { - options.d = options.time; - delete options.time; - } - - if (options.q !== false) { - options.q = true; - } else { - delete options.q; - } - - if (options.quiet === false) { - delete options.q; - delete options.quiet; - } - - if (options.sound) { - delete options.q; - delete options.sound; - } - - if (options.t) { - options.d = options.t; - delete options.t; - } - - if (options.type) { - options.t = sanitizeNotifuTypeArgument(options.type); - delete options.type; - } - - return options; -}; - -module.exports.isMac = function() { - return os.type() === 'Darwin'; -}; - -module.exports.isMountainLion = function() { - return os.type() === 'Darwin' && semver.satisfies(garanteeSemverFormat(os.release()), '>=12.0.0'); -}; - -module.exports.isWin8 = function() { - return os.type() === 'Windows_NT' && semver.satisfies(garanteeSemverFormat(os.release()), '>=6.2.9200'); -}; - -module.exports.isLessThanWin8 = function() { - return os.type() === 'Windows_NT' && semver.satisfies(garanteeSemverFormat(os.release()), '<6.2.9200'); -}; - -function garanteeSemverFormat (version) { - if (version.split('.').length === 2) { - version += '.0'; - } - return version; -} - -function sanitizeNotifuTypeArgument(type) { - if (typeof type === 'string' || type instanceof String) { - if (type.toLowerCase() == 'info') - return 'info'; - if (type.toLowerCase() == 'warn') - return 'warn'; - if (type.toLowerCase() == 'error') - return 'error'; - } - - return 'info'; -} \ No newline at end of file diff --git a/node_modules/node-notifier/node_modules/.bin/semver b/node_modules/node-notifier/node_modules/.bin/semver deleted file mode 120000 index 317eb29..0000000 --- a/node_modules/node-notifier/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver \ No newline at end of file diff --git a/node_modules/node-notifier/node_modules/semver/LICENSE b/node_modules/node-notifier/node_modules/semver/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/node-notifier/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/node-notifier/node_modules/semver/README.md b/node_modules/node-notifier/node_modules/semver/README.md deleted file mode 100644 index cbd9565..0000000 --- a/node_modules/node-notifier/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/node-notifier/node_modules/semver/bin/semver b/node_modules/node-notifier/node_modules/semver/bin/semver deleted file mode 100755 index c5f2e85..0000000 --- a/node_modules/node-notifier/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/node-notifier/node_modules/semver/package.json b/node_modules/node-notifier/node_modules/semver/package.json deleted file mode 100644 index 2731af3..0000000 --- a/node_modules/node-notifier/node_modules/semver/package.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "semver@^5.1.0", - "scope": null, - "escapedName": "semver", - "name": "semver", - "rawSpec": "^5.1.0", - "spec": ">=5.1.0 <6.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/node-notifier" - ] - ], - "_from": "semver@>=5.1.0 <6.0.0", - "_id": "semver@5.3.0", - "_inCache": true, - "_location": "/node-notifier/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.1.0", - "scope": null, - "escapedName": "semver", - "name": "semver", - "rawSpec": "^5.1.0", - "spec": ">=5.1.0 <6.0.0", - "type": "range" - }, - "_requiredBy": [ - "/node-notifier" - ], - "_resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", - "_shasum": "9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f", - "_shrinkwrap": null, - "_spec": "semver@^5.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/node-notifier", - "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/node-notifier/node_modules/semver/range.bnf b/node_modules/node-notifier/node_modules/semver/range.bnf deleted file mode 100644 index 25ebd5c..0000000 --- a/node_modules/node-notifier/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/node-notifier/node_modules/semver/semver.js b/node_modules/node-notifier/node_modules/semver/semver.js deleted file mode 100644 index 5f1a3c5..0000000 --- a/node_modules/node-notifier/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/node-notifier/notifiers/balloon.js b/node_modules/node-notifier/notifiers/balloon.js deleted file mode 100644 index c395311..0000000 --- a/node_modules/node-notifier/notifiers/balloon.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * Wrapper for the notifu 1.6 (http://www.paralint.com/projects/notifu/) - -Usage -/t The type of message to display values are: - info The message is an informational message - warn The message is an warning message - error The message is an error message -/d The number of milliseconds to display (omit or 0 for infinit) -/p The title (or prompt) of the ballon -/m The message text -/i Specify an icon to use ("parent" uses the icon of the parent process) -/e Enable ballon tips in the registry (for this user only) -/q Do not play a sound when the tooltip is displayed -/w Show the tooltip even if the user is in the quiet period that follows his very first login (Windows 7 and up) -/xp Use IUserNotification interface event when IUserNotification2 is available - - -// Kill codes: - 2 = Timeout - 3 = Clicked - 4 = Closed or faded out - - */ -var path = require('path'), - notifier = path.resolve(__dirname, '../vendor/notifu/notifu'), - utils = require('../lib/utils'), - checkGrowl = require('../lib/checkGrowl'), - Toaster = require('./toaster'), - Growl = require('./growl'), - os = require('os'), - cloneDeep = require('lodash.clonedeep'); - -var EventEmitter = require('events').EventEmitter; -var util = require('util'); - -var hasGrowl = void 0; - -module.exports = WindowsBalloon; - -function WindowsBalloon (options) { - options = cloneDeep(options || {}); - if (!(this instanceof WindowsBalloon)) { - return new WindowsBalloon(options); - } - - this.options = options; - - EventEmitter.call(this); -} -util.inherits(WindowsBalloon, EventEmitter); - -WindowsBalloon.prototype.notify = function (options, callback) { - var fallback, notifierOptions = this.options; - options = cloneDeep(options || {}); - callback = callback || function () {}; - - if (typeof options === 'string') options = { - title: 'node-notifier', - message: options - }; - - var actionJackedCallback = utils.actionJackerDecorator(this, options, callback, function (data) { - if (data === 'activate') { - return 'click'; - } - if (data === 'timeout') { - return 'timeout'; - } - return false; - }); - - if (!!this.options.withFallback && utils.isWin8()) { - fallback = fallback || new Toaster(notifierOptions); - return fallback.notify(options, callback); - } - - if (!!this.options.withFallback && (!utils.isLessThanWin8() || hasGrowl === true)) { - fallback = fallback || new Growl(notifierOptions); - return fallback.notify(options, callback); - } - - if (!this.options.withFallback || hasGrowl === false) { - doNotification(options, notifierOptions, actionJackedCallback); - return this; - } - - checkGrowl(notifierOptions, function (hasGrowlResult) { - hasGrowl = hasGrowlResult; - - if (hasGrowl) { - fallback = fallback || new Growl(notifierOptions); - return fallback.notify(options, callback); - } - - doNotification(options, notifierOptions, actionJackedCallback); - }); - - return this; -}; - -var allowedArguments = ["t", "d", "p", "m", "i", "e", "q", "w", "xp"]; - -function doNotification (options, notifierOptions, callback) { - var is64Bit = os.arch() === 'x64'; - options = options || {}; - options = utils.mapToNotifu(options); - options.p = options.p || 'Node Notification:'; - - var fullNotifierPath = notifier + (is64Bit ? '64' : '') + '.exe'; - var localNotifier = notifierOptions.customPath || fullNotifierPath; - - if (!options.m) { - callback(new Error('Message is required.')); - return this; - } - - var argsList = utils.constructArgumentList(options, { - wrapper: '', - noEscape: true, - explicitTrue: true, - allowedArguments: allowedArguments - }); - - if (!!options.wait) { - return utils.fileCommand(localNotifier, argsList, function (error, data) { - var action = fromErrorCodeToAction(error.code); - if (action === 'error') return callback(error, data); - - return callback(null, action); - }); - } - utils.immediateFileCommand(localNotifier, argsList, callback); -} - -function fromErrorCodeToAction (errorCode) { - switch (errorCode) { - case 2: - return 'timeout'; - case 3: - case 6: - case 7: - return 'activate'; - case 4: - return 'close'; - default: - return 'error'; - } -} diff --git a/node_modules/node-notifier/notifiers/growl.js b/node_modules/node-notifier/notifiers/growl.js deleted file mode 100644 index 7924f57..0000000 --- a/node_modules/node-notifier/notifiers/growl.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Wrapper for the growly module - */ -var utils = require('../lib/utils'), - checkGrowl = require('../lib/checkGrowl'), - growly = require('growly'), - cloneDeep = require('lodash.clonedeep'); - -var EventEmitter = require('events').EventEmitter; -var util = require('util'); - -var errorMessageNotFound = 'Couldn\'t connect to growl (might be used as a fallback). Make sure it is running'; - -module.exports = Growl; - -var hasGrowl = void 0; - -function Growl (options) { - options = cloneDeep(options || {}); - if (!(this instanceof Growl)) { - return new Growl(options); - } - - growly.appname = options.name || 'Node'; - this.options = options; - - EventEmitter.call(this); -} -util.inherits(Growl, EventEmitter); - - -Growl.prototype.notify = function (options, callback) { - growly.setHost(this.options.host, this.options.port); - options = cloneDeep(options || {}); - - if (typeof options === 'string') options = { - title: 'node-notifier', - message: options - }; - - callback = utils.actionJackerDecorator(this, options, callback, function (data) { - if (data === 'click') { - return 'click'; - } - if (data === 'timedout') { - return 'timeout'; - } - return false; - }); - - options = utils.mapToGrowl(options); - - if (!options.message) { - callback(new Error('Message is required.')); - return this; - } - - options.title = options.title || 'Node Notification:'; - - if (hasGrowl || !!options.wait) { - var localCallback = !!options.wait ? callback : function () {}; - growly.notify(options.message, options, localCallback); - if (!options.wait) callback(); - return this; - } - - checkGrowl(growly, function (didHaveGrowl) { - hasGrowl = didHaveGrowl; - if (!didHaveGrowl) return callback(new Error(errorMessageNotFound)); - growly.notify(options.message, options); - callback(); - }); - return this; -}; diff --git a/node_modules/node-notifier/notifiers/notificationcenter.js b/node_modules/node-notifier/notifiers/notificationcenter.js deleted file mode 100644 index 09e341c..0000000 --- a/node_modules/node-notifier/notifiers/notificationcenter.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * A Node.js wrapper for terminal-notify (with fallback). - */ -var path = require('path'), - notifier = path.join(__dirname, '../vendor/terminal-notifier.app/Contents/MacOS/terminal-notifier'), - utils = require('../lib/utils'), - Growl = require('./growl'), - cloneDeep = require('lodash.clonedeep'); - -var EventEmitter = require('events').EventEmitter; -var util = require('util'); - -var errorMessageOsX = 'You need Mac OS X 10.8 or above to use NotificationCenter,' + - ' or use Growl fallback with constructor option {withFallback: true}.'; - -module.exports = NotificationCenter; - -function NotificationCenter (options) { - options = cloneDeep(options || {}); - if (!(this instanceof NotificationCenter)) { - return new NotificationCenter(options); - } - this.options = options; - - EventEmitter.call(this); -} -util.inherits(NotificationCenter, EventEmitter); -var activeId = null; - -NotificationCenter.prototype.notify = function (options, callback) { - var fallbackNotifier = null, id = identificator(); - options = cloneDeep(options || {}); - activeId = id; - - if (typeof options === 'string') options = { - title: 'node-notifier', - message: options - }; - - callback = callback || function () {}; - var actionJackedCallback = utils.actionJackerDecorator(this, options, callback, function (data) { - if (activeId !== id) return false; - - if (data === 'activate') { - return 'click'; - } - if (data === 'timeout') { - return 'timeout'; - } - return false; - }); - - options = utils.mapToMac(options); - if (!!options.wait) { - options.wait = 'YES'; - } - - if (!options.message && !options.group && !options.list && !options.remove) { - callback(new Error('Message, group, remove or list property is required.')); - return this; - } - - var argsList = utils.constructArgumentList(options); - - if(utils.isMountainLion()) { - utils.fileCommand(this.options.customPath || notifier, argsList, actionJackedCallback); - return this; - } - - if (fallbackNotifier || !!this.options.withFallback) { - fallbackNotifier = fallbackNotifier || new Growl(this.options); - return fallbackNotifier.notify(options, callback); - } - - callback(new Error(errorMessageOsX)); - return this; -}; - -function identificator () { - return { _ref: 'val' }; -} diff --git a/node_modules/node-notifier/notifiers/notifysend.js b/node_modules/node-notifier/notifiers/notifysend.js deleted file mode 100644 index fe8b880..0000000 --- a/node_modules/node-notifier/notifiers/notifysend.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Node.js wrapper for "notify-send". - */ -var os = require('os'), - which = require('which'), - utils = require('../lib/utils'), - cloneDeep = require('lodash.clonedeep'); - -var EventEmitter = require('events').EventEmitter; -var util = require('util'); - -var notifier = 'notify-send', hasNotifier = void 0; - -module.exports = NotifySend; - -function NotifySend (options) { - options = cloneDeep(options || {}); - if (!(this instanceof NotifySend)) { - return new NotifySend(options); - } - - this.options = options; - - EventEmitter.call(this); -} -util.inherits(NotifySend, EventEmitter); - -NotifySend.prototype.notify = function (options, callback) { - options = cloneDeep(options || {}); - callback = callback || function () {}; - - if (typeof options === 'string') options = { - title: 'node-notifier', - message: options - }; - - if (!options.message) { - callback(new Error('Message is required.')); - return this; - } - - if (os.type() !== 'Linux') { - callback(new Error('Only supported on Linux systems')); - return this; - } - - if (hasNotifier === false) { - callback(new Error('notify-send must be installed on the system.')); - return this; - } - - if (hasNotifier || !!this.options.suppressOsdCheck) { - doNotification(options, callback); - return this; - } - - try { - hasNotifier = !!which.sync(notifier); - doNotification(options, callback); - } catch (err) { - hasNotifier = false; - return callback(err); - }; - - return this; -}; - -var allowedArguments = [ - "urgency", - "expire-time", - "icon", - "category", - "hint" -]; - -function doNotification (options, callback) { - var initial, argsList; - - options = utils.mapToNotifySend(options); - options.title = options.title || 'Node Notification:'; - - initial = [options.title, options.message]; - delete options.title; - delete options.message; - - argsList = utils.constructArgumentList(options, { - initial: initial, - keyExtra: '-', - allowedArguments: allowedArguments - }); - - utils.command(notifier, argsList, callback); -} diff --git a/node_modules/node-notifier/notifiers/toaster.js b/node_modules/node-notifier/notifiers/toaster.js deleted file mode 100644 index 4b0ab49..0000000 --- a/node_modules/node-notifier/notifiers/toaster.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Wrapper for the toaster (https://github.com/nels-o/toaster) - */ -var path = require('path'), - notifier = path.resolve(__dirname, '../vendor/toaster/toast.exe'), - utils = require('../lib/utils'), - Balloon = require('./balloon'), - cloneDeep = require('lodash.clonedeep'); - -var EventEmitter = require('events').EventEmitter; -var util = require('util'); - -var fallback = void 0; - -module.exports = WindowsToaster; - -function WindowsToaster (options) { - options = cloneDeep(options || {}); - if (!(this instanceof WindowsToaster)) { - return new WindowsToaster(options); - } - - this.options = options; - - EventEmitter.call(this); -} -util.inherits(WindowsToaster, EventEmitter); - -WindowsToaster.prototype.notify = function (options, callback) { - options = cloneDeep(options || {}); - callback = callback || function () {}; - - if (typeof options === 'string') options = { - title: 'node-notifier', - message: options - }; - - var actionJackedCallback = utils.actionJackerDecorator(this, options, callback, function (data) { - if (data === 'activate') { - return 'click'; - } - if (data === 'timeout') { - return 'timeout'; - } - return false; - }); - - options.title = options.title || 'Node Notification:'; - - if (!options.message) { - callback(new Error('Message is required.')); - return this; - } - - if (!utils.isWin8() && !!this.options.withFallback) { - fallback = fallback || new Balloon(this.options); - return fallback.notify(options, callback); - } - - options = utils.mapToWin8(options); - var argsList = utils.constructArgumentList(options, { - wrapper: '', - noEscape: true - }); - utils.fileCommand(this.options.customPath || notifier, argsList, actionJackedCallback); - return this; -}; diff --git a/node_modules/node-notifier/package.json b/node_modules/node-notifier/package.json deleted file mode 100644 index d919f89..0000000 --- a/node_modules/node-notifier/package.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "node-notifier@^4.1.0", - "scope": null, - "escapedName": "node-notifier", - "name": "node-notifier", - "rawSpec": "^4.1.0", - "spec": ">=4.1.0 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-notify" - ] - ], - "_from": "node-notifier@>=4.1.0 <5.0.0", - "_id": "node-notifier@4.6.1", - "_inCache": true, - "_location": "/node-notifier", - "_nodeVersion": "6.3.1", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/node-notifier-4.6.1.tgz_1471811837812_0.47649690927937627" - }, - "_npmUser": { - "name": "mikaelb", - "email": "mikaelbre@gmail.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "node-notifier@^4.1.0", - "scope": null, - "escapedName": "node-notifier", - "name": "node-notifier", - "rawSpec": "^4.1.0", - "spec": ">=4.1.0 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-notify" - ], - "_resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-4.6.1.tgz", - "_shasum": "056d14244f3dcc1ceadfe68af9cff0c5473a33f3", - "_shrinkwrap": null, - "_spec": "node-notifier@^4.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-notify", - "author": { - "name": "Mikael Brevik" - }, - "bin": { - "notify": "./bin.js" - }, - "bugs": { - "url": "https://github.com/mikaelbr/node-notifier/issues" - }, - "dependencies": { - "cli-usage": "^0.1.1", - "growly": "^1.2.0", - "lodash.clonedeep": "^3.0.0", - "minimist": "^1.1.1", - "semver": "^5.1.0", - "shellwords": "^0.1.0", - "which": "^1.0.5" - }, - "description": "A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)", - "devDependencies": { - "mocha": "^3.0.0", - "should": "^4.0.4" - }, - "directories": { - "example": "example" - }, - "dist": { - "shasum": "056d14244f3dcc1ceadfe68af9cff0c5473a33f3", - "tarball": "https://registry.npmjs.org/node-notifier/-/node-notifier-4.6.1.tgz" - }, - "gitHead": "0dc7ea4dd5bcb9584e9dfda3b69e6f3bf2379968", - "homepage": "https://github.com/mikaelbr/node-notifier#readme", - "keywords": [ - "notification center", - "mac os x 10.8", - "notify", - "terminal-notifier", - "notify-send", - "growl", - "windows 8 notification", - "toaster", - "notification" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "mikaelb", - "email": "mikaelbre@gmail.com" - } - ], - "name": "node-notifier", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/mikaelbr/node-notifier.git" - }, - "scripts": { - "test": "mocha -R spec" - }, - "version": "4.6.1" -} diff --git a/node_modules/node-notifier/vendor/notifu/notifu.exe b/node_modules/node-notifier/vendor/notifu/notifu.exe deleted file mode 100755 index 33938d7..0000000 Binary files a/node_modules/node-notifier/vendor/notifu/notifu.exe and /dev/null differ diff --git a/node_modules/node-notifier/vendor/notifu/notifu64.exe b/node_modules/node-notifier/vendor/notifu/notifu64.exe deleted file mode 100755 index 32e80cc..0000000 Binary files a/node_modules/node-notifier/vendor/notifu/notifu64.exe and /dev/null differ diff --git a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Info.plist b/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Info.plist deleted file mode 100644 index fb76ab3..0000000 --- a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Info.plist +++ /dev/null @@ -1,56 +0,0 @@ - - - - - BuildMachineOSBuild - 15A278b - CFBundleDevelopmentRegion - en - CFBundleExecutable - terminal-notifier - CFBundleIconFile - Terminal - CFBundleIdentifier - nl.superalloy.oss.terminal-notifier - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - terminal-notifier - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.6.3 - CFBundleSignature - ???? - CFBundleSupportedPlatforms - - MacOSX - - CFBundleVersion - 14 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 7D1014 - DTPlatformVersion - GM - DTSDKBuild - 15E60 - DTSDKName - macosx10.11 - DTXcode - 0731 - DTXcodeBuild - 7D1014 - LSMinimumSystemVersion - 10.8 - LSUIElement - - NSHumanReadableCopyright - Copyright © 2012-2015 Eloy Durán, Julien Blanchard. All rights reserved. - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - - diff --git a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/MacOS/terminal-notifier b/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/MacOS/terminal-notifier deleted file mode 100755 index d9c9599..0000000 Binary files a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/MacOS/terminal-notifier and /dev/null differ diff --git a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/PkgInfo b/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/PkgInfo deleted file mode 100644 index bd04210..0000000 --- a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/PkgInfo +++ /dev/null @@ -1 +0,0 @@ -APPL???? \ No newline at end of file diff --git a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/Terminal.icns b/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/Terminal.icns deleted file mode 100644 index 8d8f5c2..0000000 Binary files a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/Terminal.icns and /dev/null differ diff --git a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf b/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf deleted file mode 100644 index 46576ef..0000000 --- a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +++ /dev/null @@ -1,29 +0,0 @@ -{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;} -{\colortbl;\red255\green255\blue255;} -\paperw9840\paperh8400 -\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural - -\f0\b\fs24 \cf0 Engineering: -\b0 \ - Some people\ -\ - -\b Human Interface Design: -\b0 \ - Some other people\ -\ - -\b Testing: -\b0 \ - Hopefully not nobody\ -\ - -\b Documentation: -\b0 \ - Whoever\ -\ - -\b With special thanks to: -\b0 \ - Mom\ -} diff --git a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings b/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings deleted file mode 100644 index 5e45963..0000000 Binary files a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings and /dev/null differ diff --git a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib b/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib deleted file mode 100644 index b19d0fc..0000000 Binary files a/node_modules/node-notifier/vendor/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib and /dev/null differ diff --git a/node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.Shell.dll b/node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.Shell.dll deleted file mode 100755 index 82f3356..0000000 Binary files a/node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.Shell.dll and /dev/null differ diff --git a/node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.dll b/node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.dll deleted file mode 100755 index 5b1b620..0000000 Binary files a/node_modules/node-notifier/vendor/toaster/Microsoft.WindowsAPICodePack.dll and /dev/null differ diff --git a/node_modules/node-notifier/vendor/toaster/toast.exe b/node_modules/node-notifier/vendor/toaster/toast.exe deleted file mode 100755 index eac669c..0000000 Binary files a/node_modules/node-notifier/vendor/toaster/toast.exe and /dev/null differ diff --git a/node_modules/node.extend/.eslintrc b/node_modules/node.extend/.eslintrc deleted file mode 100644 index ca48c03..0000000 --- a/node_modules/node.extend/.eslintrc +++ /dev/null @@ -1,17 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "complexity": [2, 16], - "eqeqeq": [2, "allow-null"], - "indent": [2, 2], - "max-depth": [2, 5], - "max-statements": [2, 29], - "no-continue": [1], - "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"], - "sort-keys": 0, - "spaced-comment": [1, "always", { "markers": ["*"] }] - } -} diff --git a/node_modules/node.extend/.jscs.json b/node_modules/node.extend/.jscs.json deleted file mode 100644 index 0284c86..0000000 --- a/node_modules/node.extend/.jscs.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "es3": true, - - "additionalRules": [], - - "requireSemicolons": true, - - "disallowMultipleSpaces": true, - - "disallowIdentifierNames": [], - - "requireCurlyBraces": { - "allExcept": [], - "keywords": ["if", "else", "for", "while", "do", "try", "catch"] - }, - - "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"], - - "disallowSpaceAfterKeywords": [], - - "disallowSpaceBeforeComma": true, - "disallowSpaceAfterComma": false, - "disallowSpaceBeforeSemicolon": true, - - "disallowNodeTypes": [ - "DebuggerStatement", - "LabeledStatement", - "SwitchCase", - "SwitchStatement", - "WithStatement" - ], - - "requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] }, - - "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true }, - "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true }, - "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true }, - "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true }, - "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true }, - - "requireSpaceBetweenArguments": true, - - "disallowSpacesInsideParentheses": true, - - "disallowSpacesInsideArrayBrackets": true, - - "disallowQuotedKeysInObjects": { "allExcept": ["reserved"] }, - - "disallowSpaceAfterObjectKeys": true, - - "requireCommaBeforeLineBreak": true, - - "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], - "requireSpaceAfterPrefixUnaryOperators": [], - - "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], - "requireSpaceBeforePostfixUnaryOperators": [], - - "disallowSpaceBeforeBinaryOperators": [], - "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="], - - "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="], - "disallowSpaceAfterBinaryOperators": [], - - "disallowImplicitTypeConversion": ["binary", "string"], - - "disallowKeywords": ["with", "eval"], - - "requireKeywordsOnNewLine": [], - "disallowKeywordsOnNewLine": ["else"], - - "requireLineFeedAtFileEnd": true, - - "disallowTrailingWhitespace": true, - - "disallowTrailingComma": true, - - "excludeFiles": ["node_modules/**", "vendor/**"], - - "disallowMultipleLineStrings": true, - - "requireDotNotation": { "allExcept": ["keywords"] }, - - "requireParenthesesAroundIIFE": true, - - "validateLineBreaks": "LF", - - "validateQuoteMarks": { - "escape": true, - "mark": "'" - }, - - "disallowOperatorBeforeLineBreak": [], - - "requireSpaceBeforeKeywords": [ - "do", - "for", - "if", - "else", - "switch", - "case", - "try", - "catch", - "finally", - "while", - "with", - "return" - ], - - "validateAlignedFunctionParameters": { - "lineBreakAfterOpeningBraces": true, - "lineBreakBeforeClosingBraces": true - }, - - "requirePaddingNewLinesBeforeExport": true, - - "validateNewlineAfterArrayElements": { - "maximum": 6 - }, - - "requirePaddingNewLinesAfterUseStrict": true, - - "disallowArrowFunctions": true, - - "disallowMultiLineTernary": true, - - "validateOrderInObjectKeys": false, - - "disallowIdenticalDestructuringNames": true, - - "disallowNestedTernaries": { "maxLevel": 1 }, - - "requireSpaceAfterComma": { "allExcept": ["trailing"] }, - "requireAlignedMultilineParams": false, - - "requireSpacesInGenerator": { - "afterStar": true - }, - - "disallowSpacesInGenerator": { - "beforeStar": true - }, - - "disallowVar": false, - - "requireArrayDestructuring": false, - - "requireEnhancedObjectLiterals": false, - - "requireObjectDestructuring": false, - - "requireEarlyReturn": false, - - "requireCapitalizedConstructorsNew": { - "allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"] - }, - - "requireImportAlphabetized": false, - - "requireSpaceBeforeObjectValues": true, - "requireSpaceBeforeDestructuredValues": true, - - "disallowSpacesInsideTemplateStringPlaceholders": true, - - "disallowArrayDestructuringReturn": false, - - "requireNewlineBeforeSingleStatementsInIf": false, - - "disallowUnusedVariables": true, - - "requireSpacesInsideImportedObjectBraces": true, - - "requireUseStrict": true -} - diff --git a/node_modules/node.extend/.npmignore b/node_modules/node.extend/.npmignore deleted file mode 100644 index f1250e5..0000000 --- a/node_modules/node.extend/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -support -test -examples -*.sock diff --git a/node_modules/node.extend/.travis.yml b/node_modules/node.extend/.travis.yml deleted file mode 100644 index dcc81c2..0000000 --- a/node_modules/node.extend/.travis.yml +++ /dev/null @@ -1,113 +0,0 @@ -language: node_js -node_js: - - "6.5" - - "6.4" - - "6.3" - - "6.2" - - "6.1" - - "6.0" - - "5.12" - - "5.11" - - "5.10" - - "5.9" - - "5.8" - - "5.7" - - "5.6" - - "5.5" - - "5.4" - - "5.3" - - "5.2" - - "5.1" - - "5.0" - - "4.5" - - "4.4" - - "4.3" - - "4.2" - - "4.1" - - "4.0" - - "iojs-v3.3" - - "iojs-v3.2" - - "iojs-v3.1" - - "iojs-v3.0" - - "iojs-v2.5" - - "iojs-v2.4" - - "iojs-v2.3" - - "iojs-v2.2" - - "iojs-v2.1" - - "iojs-v2.0" - - "iojs-v1.8" - - "iojs-v1.7" - - "iojs-v1.6" - - "iojs-v1.5" - - "iojs-v1.4" - - "iojs-v1.3" - - "iojs-v1.2" - - "iojs-v1.1" - - "iojs-v1.0" - - "0.12" - - "0.11" - - "0.10" - - "0.9" - - "0.8" - - "0.6" - - "0.4" -before_install: - - 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi' - - 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi' -script: - - 'if [ -n "${LINT-}" ]; then npm run lint ; fi' - - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi' - - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi' -sudo: false -env: - - TEST=true -matrix: - fast_finish: true - include: - - node_js: "node" - env: LINT=true - - node_js: "4" - env: COVERAGE=true - allow_failures: - - node_js: "6.4" - - node_js: "6.3" - - node_js: "6.2" - - node_js: "6.1" - - node_js: "6.0" - - node_js: "5.11" - - node_js: "5.10" - - node_js: "5.9" - - node_js: "5.8" - - node_js: "5.7" - - node_js: "5.6" - - node_js: "5.5" - - node_js: "5.4" - - node_js: "5.3" - - node_js: "5.2" - - node_js: "5.1" - - node_js: "5.0" - - node_js: "4.4" - - node_js: "4.3" - - node_js: "4.2" - - node_js: "4.1" - - node_js: "4.0" - - node_js: "iojs-v3.2" - - node_js: "iojs-v3.1" - - node_js: "iojs-v3.0" - - node_js: "iojs-v2.4" - - node_js: "iojs-v2.3" - - node_js: "iojs-v2.2" - - node_js: "iojs-v2.1" - - node_js: "iojs-v2.0" - - node_js: "iojs-v1.7" - - node_js: "iojs-v1.6" - - node_js: "iojs-v1.5" - - node_js: "iojs-v1.4" - - node_js: "iojs-v1.3" - - node_js: "iojs-v1.2" - - node_js: "iojs-v1.1" - - node_js: "iojs-v1.0" - - node_js: "0.11" - - node_js: "0.9" - - node_js: "0.6" - - node_js: "0.4" diff --git a/node_modules/node.extend/History.md b/node_modules/node.extend/History.md deleted file mode 100644 index 633fb93..0000000 --- a/node_modules/node.extend/History.md +++ /dev/null @@ -1,21 +0,0 @@ -## 1.0.1 / 2013-04-02 - - - Fix tests - - - -## 1.0.0 / 2012-02-28 - - - Add tests for the stable release - - - -## 0.0.2 / 2012-01-11 - - - Add repository to package.json - - - -## 0.0.1 / 2012-01-10 - - - Initial release diff --git a/node_modules/node.extend/Readme.md b/node_modules/node.extend/Readme.md deleted file mode 100644 index df4bf66..0000000 --- a/node_modules/node.extend/Readme.md +++ /dev/null @@ -1,77 +0,0 @@ -# node.extend - -A port of jQuery.extend that **actually works** on node.js - -[![Build Status][travis-svg]][travis-url] -[![dependency status][deps-svg]][deps-url] -[![dev dependency status][dev-deps-svg]][dev-deps-url] - -[![browser support][testling-png]][testling-url] - - -## Description - -None of the existing ones on npm really work therefore I ported it myself. - - - -## Usage - -To install this module in your current working directory (which should already contain a package.json), run - -``` -npm install node.extend -``` - -You can additionally just list the module in your [package.json](https://npmjs.org/doc/json.html) and run npm install. - -Then, require this package where you need it: - -``` -var extend = require('node.extend'); -``` - -The syntax for merging two objects is as follows: - -``` -var destObject = extend({}, sourceObject); -// Where sourceObject is the object whose properties will be copied into another. -// NOTE: In this situation, this is not a deep merge. See below on how to handle a deep merge. -``` - -For information about how the clone works internally, view source in lib/extend.js or checkout the doc from [jQuery][] - -### A Note About Deep Merge (avoiding pass-by-reference cloning) - -In order to force a deep merge, when extending an object, you must pass boolean true as the first argument to extend: - -``` -var destObject = extend(true, {}, sourceObject); -// Where sourceObject is the object whose properties will be copied into another. -``` - -See [this article](http://www.jon-carlos.com/2013/is-javascript-call-by-value-or-call-by-reference/) for more information about the need for deep merges in JavaScript. - -## Credit - -- Jordan Harband [@ljharb][] - - - -## License - -Copyright 2011, John Resig -Dual licensed under the MIT or GPL Version 2 licenses. -http://jquery.org/license - -[testling-png]: https://ci.testling.com/dreamerslab/node.extend.png -[testling-url]: https://ci.testling.com/dreamerslab/node.extend -[travis-svg]: https://travis-ci.org/dreamerslab/node.extend.svg -[travis-url]: https://travis-ci.org/dreamerslab/node.extend -[deps-svg]: https://david-dm.org/dreamerslab/node.extend.svg -[deps-url]: https://david-dm.org/dreamerslab/node.extend -[dev-deps-svg]: https://david-dm.org/dreamerslab/node.extend/dev-status.svg -[dev-deps-url]: https://david-dm.org/dreamerslab/node.extend#info=devDependencies -[jQuery]: http://api.jquery.com/jQuery.extend/ -[@ljharb]: https://twitter.com/ljharb - diff --git a/node_modules/node.extend/index.js b/node_modules/node.extend/index.js deleted file mode 100644 index 4343488..0000000 --- a/node_modules/node.extend/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./lib/extend'); diff --git a/node_modules/node.extend/lib/extend.js b/node_modules/node.extend/lib/extend.js deleted file mode 100644 index 56bbc75..0000000 --- a/node_modules/node.extend/lib/extend.js +++ /dev/null @@ -1,83 +0,0 @@ -'use strict'; - -/*! - * node.extend - * Copyright 2011, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * @fileoverview - * Port of jQuery.extend that actually works on node.js - */ -var is = require('is'); - -var extend = function extend() { - var target = arguments[0] || {}; - var i = 1; - var length = arguments.length; - var deep = false; - var options, name, src, copy, copyIsArray, clone; - - // Handle a deep copy situation - if (typeof target === 'boolean') { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if (typeof target !== 'object' && !is.fn(target)) { - target = {}; - } - - for (; i < length; i++) { - // Only deal with non-null/undefined values - options = arguments[i]; - if (options != null) { - if (typeof options === 'string') { - options = options.split(''); - } - // Extend the base object - for (name in options) { - src = target[name]; - copy = options[name]; - - // Prevent never-ending loop - if (target === copy) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if (deep && copy && (is.hash(copy) || (copyIsArray = is.array(copy)))) { - if (copyIsArray) { - copyIsArray = false; - clone = src && is.array(src) ? src : []; - } else { - clone = src && is.hash(src) ? src : {}; - } - - // Never move original objects, clone them - target[name] = extend(deep, clone, copy); - - // Don't bring in undefined values - } else if (typeof copy !== 'undefined') { - target[name] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -/** - * @public - */ -extend.version = '1.1.3'; - -/** - * Exports module. - */ -module.exports = extend; diff --git a/node_modules/node.extend/package.json b/node_modules/node.extend/package.json deleted file mode 100644 index ed47c51..0000000 --- a/node_modules/node.extend/package.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "node.extend@^1.1.3", - "scope": null, - "escapedName": "node.extend", - "name": "node.extend", - "rawSpec": "^1.1.3", - "spec": ">=1.1.3 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-notify" - ] - ], - "_from": "node.extend@>=1.1.3 <2.0.0", - "_id": "node.extend@1.1.6", - "_inCache": true, - "_location": "/node.extend", - "_nodeVersion": "6.5.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/node.extend-1.1.6.tgz_1473179454389_0.5775601353961974" - }, - "_npmUser": { - "name": "ljharb", - "email": "ljharb@gmail.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "node.extend@^1.1.3", - "scope": null, - "escapedName": "node.extend", - "name": "node.extend", - "rawSpec": "^1.1.3", - "spec": ">=1.1.3 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-notify" - ], - "_resolved": "https://registry.npmjs.org/node.extend/-/node.extend-1.1.6.tgz", - "_shasum": "a7b882c82d6c93a4863a5504bd5de8ec86258b96", - "_shrinkwrap": null, - "_spec": "node.extend@^1.1.3", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-notify", - "author": { - "name": "dreamerslab", - "email": "ben@dreamerslab.com" - }, - "bugs": { - "url": "https://github.com/dreamerslab/node.extend/issues" - }, - "contributors": [ - { - "name": "Jordan Harband" - } - ], - "dependencies": { - "is": "^3.1.0" - }, - "description": "A port of jQuery.extend that actually works on node.js", - "devDependencies": { - "@ljharb/eslint-config": "^8.0.0", - "covert": "^1.1.0", - "eslint": "^3.4.0", - "jscs": "^3.0.7", - "tape": "^4.6.0" - }, - "directories": {}, - "dist": { - "shasum": "a7b882c82d6c93a4863a5504bd5de8ec86258b96", - "tarball": "https://registry.npmjs.org/node.extend/-/node.extend-1.1.6.tgz" - }, - "engines": { - "node": ">=0.4.0" - }, - "gitHead": "c4131c74acef44f9ed0f9c30b10bdf496731f15f", - "homepage": "https://github.com/dreamerslab/node.extend#readme", - "keywords": [ - "extend", - "jQuery", - "jQuery extend", - "clone", - "copy", - "inherit" - ], - "license": "(MIT OR GPL-2.0)", - "main": "index", - "maintainers": [ - { - "name": "dreamerslab", - "email": "ben@dreamerslab.com" - }, - { - "name": "ljharb", - "email": "ljharb@gmail.com" - } - ], - "name": "node.extend", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/dreamerslab/node.extend.git" - }, - "scripts": { - "coverage": "covert test/index.js", - "coverage-quiet": "covert test/index.js --quiet", - "eslint": "eslint *.js */*.js", - "jscs": "jscs *.js */*.js", - "lint": "npm run jscs && npm run eslint", - "posttest": "npm run coverage-quiet", - "pretest": "npm run lint", - "test": "npm run --silent tests-only", - "tests-only": "node test" - }, - "testling": { - "files": "test/index.js", - "browsers": [ - "iexplore/6.0..latest", - "firefox/3.0..6.0", - "firefox/15.0..latest", - "firefox/nightly", - "chrome/4.0..10.0", - "chrome/20.0..latest", - "chrome/canary", - "opera/10.0..latest", - "opera/next", - "safari/4.0..latest", - "ipad/6.0..latest", - "iphone/6.0..latest" - ] - }, - "version": "1.1.6" -} diff --git a/node_modules/nopt/.npmignore b/node_modules/nopt/.npmignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/nopt/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/nopt/.travis.yml b/node_modules/nopt/.travis.yml deleted file mode 100644 index 99f2bbf..0000000 --- a/node_modules/nopt/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -language: node_js -node_js: - - '0.8' - - '0.10' - - '0.12' - - 'iojs' -before_install: - - npm install -g npm@latest diff --git a/node_modules/nopt/LICENSE b/node_modules/nopt/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/nopt/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/nopt/README.md b/node_modules/nopt/README.md deleted file mode 100644 index f21a4b3..0000000 --- a/node_modules/nopt/README.md +++ /dev/null @@ -1,211 +0,0 @@ -If you want to write an option parser, and have it be good, there are -two ways to do it. The Right Way, and the Wrong Way. - -The Wrong Way is to sit down and write an option parser. We've all done -that. - -The Right Way is to write some complex configurable program with so many -options that you hit the limit of your frustration just trying to -manage them all, and defer it with duct-tape solutions until you see -exactly to the core of the problem, and finally snap and write an -awesome option parser. - -If you want to write an option parser, don't write an option parser. -Write a package manager, or a source control system, or a service -restarter, or an operating system. You probably won't end up with a -good one of those, but if you don't give up, and you are relentless and -diligent enough in your procrastination, you may just end up with a very -nice option parser. - -## USAGE - - // my-program.js - var nopt = require("nopt") - , Stream = require("stream").Stream - , path = require("path") - , knownOpts = { "foo" : [String, null] - , "bar" : [Stream, Number] - , "baz" : path - , "bloo" : [ "big", "medium", "small" ] - , "flag" : Boolean - , "pick" : Boolean - , "many1" : [String, Array] - , "many2" : [path] - } - , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] - , "b7" : ["--bar", "7"] - , "m" : ["--bloo", "medium"] - , "p" : ["--pick"] - , "f" : ["--flag"] - } - // everything is optional. - // knownOpts and shorthands default to {} - // arg list defaults to process.argv - // slice defaults to 2 - , parsed = nopt(knownOpts, shortHands, process.argv, 2) - console.log(parsed) - -This would give you support for any of the following: - -```bash -$ node my-program.js --foo "blerp" --no-flag -{ "foo" : "blerp", "flag" : false } - -$ node my-program.js ---bar 7 --foo "Mr. Hand" --flag -{ bar: 7, foo: "Mr. Hand", flag: true } - -$ node my-program.js --foo "blerp" -f -----p -{ foo: "blerp", flag: true, pick: true } - -$ node my-program.js -fp --foofoo -{ foo: "Mr. Foo", flag: true, pick: true } - -$ node my-program.js --foofoo -- -fp # -- stops the flag parsing. -{ foo: "Mr. Foo", argv: { remain: ["-fp"] } } - -$ node my-program.js --blatzk -fp # unknown opts are ok. -{ blatzk: true, flag: true, pick: true } - -$ node my-program.js --blatzk=1000 -fp # but you need to use = if they have a value -{ blatzk: 1000, flag: true, pick: true } - -$ node my-program.js --no-blatzk -fp # unless they start with "no-" -{ blatzk: false, flag: true, pick: true } - -$ node my-program.js --baz b/a/z # known paths are resolved. -{ baz: "/Users/isaacs/b/a/z" } - -# if Array is one of the types, then it can take many -# values, and will always be an array. The other types provided -# specify what types are allowed in the list. - -$ node my-program.js --many1 5 --many1 null --many1 foo -{ many1: ["5", "null", "foo"] } - -$ node my-program.js --many2 foo --many2 bar -{ many2: ["/path/to/foo", "path/to/bar"] } -``` - -Read the tests at the bottom of `lib/nopt.js` for more examples of -what this puppy can do. - -## Types - -The following types are supported, and defined on `nopt.typeDefs` - -* String: A normal string. No parsing is done. -* path: A file system path. Gets resolved against cwd if not absolute. -* url: A url. If it doesn't parse, it isn't accepted. -* Number: Must be numeric. -* Date: Must parse as a date. If it does, and `Date` is one of the options, - then it will return a Date object, not a string. -* Boolean: Must be either `true` or `false`. If an option is a boolean, - then it does not need a value, and its presence will imply `true` as - the value. To negate boolean flags, do `--no-whatever` or `--whatever - false` -* NaN: Means that the option is strictly not allowed. Any value will - fail. -* Stream: An object matching the "Stream" class in node. Valuable - for use when validating programmatically. (npm uses this to let you - supply any WriteStream on the `outfd` and `logfd` config options.) -* Array: If `Array` is specified as one of the types, then the value - will be parsed as a list of options. This means that multiple values - can be specified, and that the value will always be an array. - -If a type is an array of values not on this list, then those are -considered valid values. For instance, in the example above, the -`--bloo` option can only be one of `"big"`, `"medium"`, or `"small"`, -and any other value will be rejected. - -When parsing unknown fields, `"true"`, `"false"`, and `"null"` will be -interpreted as their JavaScript equivalents. - -You can also mix types and values, or multiple types, in a list. For -instance `{ blah: [Number, null] }` would allow a value to be set to -either a Number or null. When types are ordered, this implies a -preference, and the first type that can be used to properly interpret -the value will be used. - -To define a new type, add it to `nopt.typeDefs`. Each item in that -hash is an object with a `type` member and a `validate` method. The -`type` member is an object that matches what goes in the type list. The -`validate` method is a function that gets called with `validate(data, -key, val)`. Validate methods should assign `data[key]` to the valid -value of `val` if it can be handled properly, or return boolean -`false` if it cannot. - -You can also call `nopt.clean(data, types, typeDefs)` to clean up a -config object and remove its invalid properties. - -## Error Handling - -By default, nopt outputs a warning to standard error when invalid values for -known options are found. You can change this behavior by assigning a method -to `nopt.invalidHandler`. This method will be called with -the offending `nopt.invalidHandler(key, val, types)`. - -If no `nopt.invalidHandler` is assigned, then it will console.error -its whining. If it is assigned to boolean `false` then the warning is -suppressed. - -## Abbreviations - -Yes, they are supported. If you define options like this: - -```javascript -{ "foolhardyelephants" : Boolean -, "pileofmonkeys" : Boolean } -``` - -Then this will work: - -```bash -node program.js --foolhar --pil -node program.js --no-f --pileofmon -# etc. -``` - -## Shorthands - -Shorthands are a hash of shorter option names to a snippet of args that -they expand to. - -If multiple one-character shorthands are all combined, and the -combination does not unambiguously match any other option or shorthand, -then they will be broken up into their constituent parts. For example: - -```json -{ "s" : ["--loglevel", "silent"] -, "g" : "--global" -, "f" : "--force" -, "p" : "--parseable" -, "l" : "--long" -} -``` - -```bash -npm ls -sgflp -# just like doing this: -npm ls --loglevel silent --global --force --long --parseable -``` - -## The Rest of the args - -The config object returned by nopt is given a special member called -`argv`, which is an object with the following fields: - -* `remain`: The remaining args after all the parsing has occurred. -* `original`: The args as they originally appeared. -* `cooked`: The args after flags and shorthands are expanded. - -## Slicing - -Node programs are called with more or less the exact argv as it appears -in C land, after the v8 and node-specific options have been plucked off. -As such, `argv[0]` is always `node` and `argv[1]` is always the -JavaScript program being run. - -That's usually not very useful to you. So they're sliced off by -default. If you want them, then you can pass in `0` as the last -argument, or any other number that you'd like to slice off the start of -the list. diff --git a/node_modules/nopt/bin/nopt.js b/node_modules/nopt/bin/nopt.js deleted file mode 100755 index 3232d4c..0000000 --- a/node_modules/nopt/bin/nopt.js +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env node -var nopt = require("../lib/nopt") - , path = require("path") - , types = { num: Number - , bool: Boolean - , help: Boolean - , list: Array - , "num-list": [Number, Array] - , "str-list": [String, Array] - , "bool-list": [Boolean, Array] - , str: String - , clear: Boolean - , config: Boolean - , length: Number - , file: path - } - , shorthands = { s: [ "--str", "astring" ] - , b: [ "--bool" ] - , nb: [ "--no-bool" ] - , tft: [ "--bool-list", "--no-bool-list", "--bool-list", "true" ] - , "?": ["--help"] - , h: ["--help"] - , H: ["--help"] - , n: [ "--num", "125" ] - , c: ["--config"] - , l: ["--length"] - , f: ["--file"] - } - , parsed = nopt( types - , shorthands - , process.argv - , 2 ) - -console.log("parsed", parsed) - -if (parsed.help) { - console.log("") - console.log("nopt cli tester") - console.log("") - console.log("types") - console.log(Object.keys(types).map(function M (t) { - var type = types[t] - if (Array.isArray(type)) { - return [t, type.map(function (type) { return type.name })] - } - return [t, type && type.name] - }).reduce(function (s, i) { - s[i[0]] = i[1] - return s - }, {})) - console.log("") - console.log("shorthands") - console.log(shorthands) -} diff --git a/node_modules/nopt/examples/my-program.js b/node_modules/nopt/examples/my-program.js deleted file mode 100755 index 142447e..0000000 --- a/node_modules/nopt/examples/my-program.js +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env node - -//process.env.DEBUG_NOPT = 1 - -// my-program.js -var nopt = require("../lib/nopt") - , Stream = require("stream").Stream - , path = require("path") - , knownOpts = { "foo" : [String, null] - , "bar" : [Stream, Number] - , "baz" : path - , "bloo" : [ "big", "medium", "small" ] - , "flag" : Boolean - , "pick" : Boolean - } - , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] - , "b7" : ["--bar", "7"] - , "m" : ["--bloo", "medium"] - , "p" : ["--pick"] - , "f" : ["--flag", "true"] - , "g" : ["--flag"] - , "s" : "--flag" - } - // everything is optional. - // knownOpts and shorthands default to {} - // arg list defaults to process.argv - // slice defaults to 2 - , parsed = nopt(knownOpts, shortHands, process.argv, 2) - -console.log("parsed =\n"+ require("util").inspect(parsed)) diff --git a/node_modules/nopt/lib/nopt.js b/node_modules/nopt/lib/nopt.js deleted file mode 100644 index 97707e7..0000000 --- a/node_modules/nopt/lib/nopt.js +++ /dev/null @@ -1,415 +0,0 @@ -// info about each config option. - -var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG - ? function () { console.error.apply(console, arguments) } - : function () {} - -var url = require("url") - , path = require("path") - , Stream = require("stream").Stream - , abbrev = require("abbrev") - -module.exports = exports = nopt -exports.clean = clean - -exports.typeDefs = - { String : { type: String, validate: validateString } - , Boolean : { type: Boolean, validate: validateBoolean } - , url : { type: url, validate: validateUrl } - , Number : { type: Number, validate: validateNumber } - , path : { type: path, validate: validatePath } - , Stream : { type: Stream, validate: validateStream } - , Date : { type: Date, validate: validateDate } - } - -function nopt (types, shorthands, args, slice) { - args = args || process.argv - types = types || {} - shorthands = shorthands || {} - if (typeof slice !== "number") slice = 2 - - debug(types, shorthands, args, slice) - - args = args.slice(slice) - var data = {} - , key - , remain = [] - , cooked = args - , original = args.slice(0) - - parse(args, data, remain, types, shorthands) - // now data is full - clean(data, types, exports.typeDefs) - data.argv = {remain:remain,cooked:cooked,original:original} - Object.defineProperty(data.argv, 'toString', { value: function () { - return this.original.map(JSON.stringify).join(" ") - }, enumerable: false }) - return data -} - -function clean (data, types, typeDefs) { - typeDefs = typeDefs || exports.typeDefs - var remove = {} - , typeDefault = [false, true, null, String, Array] - - Object.keys(data).forEach(function (k) { - if (k === "argv") return - var val = data[k] - , isArray = Array.isArray(val) - , type = types[k] - if (!isArray) val = [val] - if (!type) type = typeDefault - if (type === Array) type = typeDefault.concat(Array) - if (!Array.isArray(type)) type = [type] - - debug("val=%j", val) - debug("types=", type) - val = val.map(function (val) { - // if it's an unknown value, then parse false/true/null/numbers/dates - if (typeof val === "string") { - debug("string %j", val) - val = val.trim() - if ((val === "null" && ~type.indexOf(null)) - || (val === "true" && - (~type.indexOf(true) || ~type.indexOf(Boolean))) - || (val === "false" && - (~type.indexOf(false) || ~type.indexOf(Boolean)))) { - val = JSON.parse(val) - debug("jsonable %j", val) - } else if (~type.indexOf(Number) && !isNaN(val)) { - debug("convert to number", val) - val = +val - } else if (~type.indexOf(Date) && !isNaN(Date.parse(val))) { - debug("convert to date", val) - val = new Date(val) - } - } - - if (!types.hasOwnProperty(k)) { - return val - } - - // allow `--no-blah` to set 'blah' to null if null is allowed - if (val === false && ~type.indexOf(null) && - !(~type.indexOf(false) || ~type.indexOf(Boolean))) { - val = null - } - - var d = {} - d[k] = val - debug("prevalidated val", d, val, types[k]) - if (!validate(d, k, val, types[k], typeDefs)) { - if (exports.invalidHandler) { - exports.invalidHandler(k, val, types[k], data) - } else if (exports.invalidHandler !== false) { - debug("invalid: "+k+"="+val, types[k]) - } - return remove - } - debug("validated val", d, val, types[k]) - return d[k] - }).filter(function (val) { return val !== remove }) - - if (!val.length) delete data[k] - else if (isArray) { - debug(isArray, data[k], val) - data[k] = val - } else data[k] = val[0] - - debug("k=%s val=%j", k, val, data[k]) - }) -} - -function validateString (data, k, val) { - data[k] = String(val) -} - -function validatePath (data, k, val) { - if (val === true) return false - if (val === null) return true - - val = String(val) - var homePattern = process.platform === 'win32' ? /^~(\/|\\)/ : /^~\// - if (val.match(homePattern) && process.env.HOME) { - val = path.resolve(process.env.HOME, val.substr(2)) - } - data[k] = path.resolve(String(val)) - return true -} - -function validateNumber (data, k, val) { - debug("validate Number %j %j %j", k, val, isNaN(val)) - if (isNaN(val)) return false - data[k] = +val -} - -function validateDate (data, k, val) { - debug("validate Date %j %j %j", k, val, Date.parse(val)) - var s = Date.parse(val) - if (isNaN(s)) return false - data[k] = new Date(val) -} - -function validateBoolean (data, k, val) { - if (val instanceof Boolean) val = val.valueOf() - else if (typeof val === "string") { - if (!isNaN(val)) val = !!(+val) - else if (val === "null" || val === "false") val = false - else val = true - } else val = !!val - data[k] = val -} - -function validateUrl (data, k, val) { - val = url.parse(String(val)) - if (!val.host) return false - data[k] = val.href -} - -function validateStream (data, k, val) { - if (!(val instanceof Stream)) return false - data[k] = val -} - -function validate (data, k, val, type, typeDefs) { - // arrays are lists of types. - if (Array.isArray(type)) { - for (var i = 0, l = type.length; i < l; i ++) { - if (type[i] === Array) continue - if (validate(data, k, val, type[i], typeDefs)) return true - } - delete data[k] - return false - } - - // an array of anything? - if (type === Array) return true - - // NaN is poisonous. Means that something is not allowed. - if (type !== type) { - debug("Poison NaN", k, val, type) - delete data[k] - return false - } - - // explicit list of values - if (val === type) { - debug("Explicitly allowed %j", val) - // if (isArray) (data[k] = data[k] || []).push(val) - // else data[k] = val - data[k] = val - return true - } - - // now go through the list of typeDefs, validate against each one. - var ok = false - , types = Object.keys(typeDefs) - for (var i = 0, l = types.length; i < l; i ++) { - debug("test type %j %j %j", k, val, types[i]) - var t = typeDefs[types[i]] - if (t && - ((type && type.name && t.type && t.type.name) ? (type.name === t.type.name) : (type === t.type))) { - var d = {} - ok = false !== t.validate(d, k, val) - val = d[k] - if (ok) { - // if (isArray) (data[k] = data[k] || []).push(val) - // else data[k] = val - data[k] = val - break - } - } - } - debug("OK? %j (%j %j %j)", ok, k, val, types[i]) - - if (!ok) delete data[k] - return ok -} - -function parse (args, data, remain, types, shorthands) { - debug("parse", args, data, remain) - - var key = null - , abbrevs = abbrev(Object.keys(types)) - , shortAbbr = abbrev(Object.keys(shorthands)) - - for (var i = 0; i < args.length; i ++) { - var arg = args[i] - debug("arg", arg) - - if (arg.match(/^-{2,}$/)) { - // done with keys. - // the rest are args. - remain.push.apply(remain, args.slice(i + 1)) - args[i] = "--" - break - } - var hadEq = false - if (arg.charAt(0) === "-" && arg.length > 1) { - if (arg.indexOf("=") !== -1) { - hadEq = true - var v = arg.split("=") - arg = v.shift() - v = v.join("=") - args.splice.apply(args, [i, 1].concat([arg, v])) - } - - // see if it's a shorthand - // if so, splice and back up to re-parse it. - var shRes = resolveShort(arg, shorthands, shortAbbr, abbrevs) - debug("arg=%j shRes=%j", arg, shRes) - if (shRes) { - debug(arg, shRes) - args.splice.apply(args, [i, 1].concat(shRes)) - if (arg !== shRes[0]) { - i -- - continue - } - } - arg = arg.replace(/^-+/, "") - var no = null - while (arg.toLowerCase().indexOf("no-") === 0) { - no = !no - arg = arg.substr(3) - } - - if (abbrevs[arg]) arg = abbrevs[arg] - - var isArray = types[arg] === Array || - Array.isArray(types[arg]) && types[arg].indexOf(Array) !== -1 - - // allow unknown things to be arrays if specified multiple times. - if (!types.hasOwnProperty(arg) && data.hasOwnProperty(arg)) { - if (!Array.isArray(data[arg])) - data[arg] = [data[arg]] - isArray = true - } - - var val - , la = args[i + 1] - - var isBool = typeof no === 'boolean' || - types[arg] === Boolean || - Array.isArray(types[arg]) && types[arg].indexOf(Boolean) !== -1 || - (typeof types[arg] === 'undefined' && !hadEq) || - (la === "false" && - (types[arg] === null || - Array.isArray(types[arg]) && ~types[arg].indexOf(null))) - - if (isBool) { - // just set and move along - val = !no - // however, also support --bool true or --bool false - if (la === "true" || la === "false") { - val = JSON.parse(la) - la = null - if (no) val = !val - i ++ - } - - // also support "foo":[Boolean, "bar"] and "--foo bar" - if (Array.isArray(types[arg]) && la) { - if (~types[arg].indexOf(la)) { - // an explicit type - val = la - i ++ - } else if ( la === "null" && ~types[arg].indexOf(null) ) { - // null allowed - val = null - i ++ - } else if ( !la.match(/^-{2,}[^-]/) && - !isNaN(la) && - ~types[arg].indexOf(Number) ) { - // number - val = +la - i ++ - } else if ( !la.match(/^-[^-]/) && ~types[arg].indexOf(String) ) { - // string - val = la - i ++ - } - } - - if (isArray) (data[arg] = data[arg] || []).push(val) - else data[arg] = val - - continue - } - - if (types[arg] === String && la === undefined) - la = "" - - if (la && la.match(/^-{2,}$/)) { - la = undefined - i -- - } - - val = la === undefined ? true : la - if (isArray) (data[arg] = data[arg] || []).push(val) - else data[arg] = val - - i ++ - continue - } - remain.push(arg) - } -} - -function resolveShort (arg, shorthands, shortAbbr, abbrevs) { - // handle single-char shorthands glommed together, like - // npm ls -glp, but only if there is one dash, and only if - // all of the chars are single-char shorthands, and it's - // not a match to some other abbrev. - arg = arg.replace(/^-+/, '') - - // if it's an exact known option, then don't go any further - if (abbrevs[arg] === arg) - return null - - // if it's an exact known shortopt, same deal - if (shorthands[arg]) { - // make it an array, if it's a list of words - if (shorthands[arg] && !Array.isArray(shorthands[arg])) - shorthands[arg] = shorthands[arg].split(/\s+/) - - return shorthands[arg] - } - - // first check to see if this arg is a set of single-char shorthands - var singles = shorthands.___singles - if (!singles) { - singles = Object.keys(shorthands).filter(function (s) { - return s.length === 1 - }).reduce(function (l,r) { - l[r] = true - return l - }, {}) - shorthands.___singles = singles - debug('shorthand singles', singles) - } - - var chrs = arg.split("").filter(function (c) { - return singles[c] - }) - - if (chrs.join("") === arg) return chrs.map(function (c) { - return shorthands[c] - }).reduce(function (l, r) { - return l.concat(r) - }, []) - - - // if it's an arg abbrev, and not a literal shorthand, then prefer the arg - if (abbrevs[arg] && !shorthands[arg]) - return null - - // if it's an abbr for a shorthand, then use that - if (shortAbbr[arg]) - arg = shortAbbr[arg] - - // make it an array, if it's a list of words - if (shorthands[arg] && !Array.isArray(shorthands[arg])) - shorthands[arg] = shorthands[arg].split(/\s+/) - - return shorthands[arg] -} diff --git a/node_modules/nopt/package.json b/node_modules/nopt/package.json deleted file mode 100644 index bfda821..0000000 --- a/node_modules/nopt/package.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "nopt@~3.0.1", - "scope": null, - "escapedName": "nopt", - "name": "nopt", - "rawSpec": "~3.0.1", - "spec": ">=3.0.1 <3.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/js-beautify" - ] - ], - "_from": "nopt@>=3.0.1 <3.1.0", - "_id": "nopt@3.0.6", - "_inCache": true, - "_location": "/nopt", - "_nodeVersion": "4.2.1", - "_npmUser": { - "name": "othiym23", - "email": "ogd@aoaioxxysz.net" - }, - "_npmVersion": "2.14.10", - "_phantomChildren": {}, - "_requested": { - "raw": "nopt@~3.0.1", - "scope": null, - "escapedName": "nopt", - "name": "nopt", - "rawSpec": "~3.0.1", - "spec": ">=3.0.1 <3.1.0", - "type": "range" - }, - "_requiredBy": [ - "/js-beautify" - ], - "_resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "_shasum": "c6465dbf08abcd4db359317f79ac68a646b28ff9", - "_shrinkwrap": null, - "_spec": "nopt@~3.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/js-beautify", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bin": { - "nopt": "./bin/nopt.js" - }, - "bugs": { - "url": "https://github.com/npm/nopt/issues" - }, - "dependencies": { - "abbrev": "1" - }, - "description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.", - "devDependencies": { - "tap": "^1.2.0" - }, - "directories": {}, - "dist": { - "shasum": "c6465dbf08abcd4db359317f79ac68a646b28ff9", - "tarball": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz" - }, - "gitHead": "10a750c9bb99c1950160353459e733ac2aa18cb6", - "homepage": "https://github.com/npm/nopt#readme", - "license": "ISC", - "main": "lib/nopt.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - }, - { - "name": "othiym23", - "email": "ogd@aoaioxxysz.net" - }, - { - "name": "zkat", - "email": "kat@sykosomatic.org" - } - ], - "name": "nopt", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/npm/nopt.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "3.0.6" -} diff --git a/node_modules/nopt/test/basic.js b/node_modules/nopt/test/basic.js deleted file mode 100644 index d399de9..0000000 --- a/node_modules/nopt/test/basic.js +++ /dev/null @@ -1,273 +0,0 @@ -var nopt = require("../") - , test = require('tap').test - - -test("passing a string results in a string", function (t) { - var parsed = nopt({ key: String }, {}, ["--key", "myvalue"], 0) - t.same(parsed.key, "myvalue") - t.end() -}) - -// https://github.com/npm/nopt/issues/31 -test("Empty String results in empty string, not true", function (t) { - var parsed = nopt({ empty: String }, {}, ["--empty"], 0) - t.same(parsed.empty, "") - t.end() -}) - -test("~ path is resolved to $HOME", function (t) { - var path = require("path") - if (!process.env.HOME) process.env.HOME = "/tmp" - var parsed = nopt({key: path}, {}, ["--key=~/val"], 0) - t.same(parsed.key, path.resolve(process.env.HOME, "val")) - t.end() -}) - -// https://github.com/npm/nopt/issues/24 -test("Unknown options are not parsed as numbers", function (t) { - var parsed = nopt({"parse-me": Number}, null, ['--leave-as-is=1.20', '--parse-me=1.20'], 0) - t.equal(parsed['leave-as-is'], '1.20') - t.equal(parsed['parse-me'], 1.2) - t.end() -}); - -// https://github.com/npm/nopt/issues/48 -test("Check types based on name of type", function (t) { - var parsed = nopt({"parse-me": {name: "Number"}}, null, ['--parse-me=1.20'], 0) - t.equal(parsed['parse-me'], 1.2) - t.end() -}) - - -test("Missing types are not parsed", function (t) { - var parsed = nopt({"parse-me": {}}, null, ['--parse-me=1.20'], 0) - //should only contain argv - t.equal(Object.keys(parsed).length, 1) - t.end() -}) - -test("Types passed without a name are not parsed", function (t) { - var parsed = nopt({"parse-me": {}}, {}, ['--parse-me=1.20'], 0) - //should only contain argv - t.equal(Object.keys(parsed).length, 1) - t.end() -}) - -test("other tests", function (t) { - - var util = require("util") - , Stream = require("stream") - , path = require("path") - , url = require("url") - - , shorthands = - { s : ["--loglevel", "silent"] - , d : ["--loglevel", "info"] - , dd : ["--loglevel", "verbose"] - , ddd : ["--loglevel", "silly"] - , noreg : ["--no-registry"] - , reg : ["--registry"] - , "no-reg" : ["--no-registry"] - , silent : ["--loglevel", "silent"] - , verbose : ["--loglevel", "verbose"] - , h : ["--usage"] - , H : ["--usage"] - , "?" : ["--usage"] - , help : ["--usage"] - , v : ["--version"] - , f : ["--force"] - , desc : ["--description"] - , "no-desc" : ["--no-description"] - , "local" : ["--no-global"] - , l : ["--long"] - , p : ["--parseable"] - , porcelain : ["--parseable"] - , g : ["--global"] - } - - , types = - { aoa: Array - , nullstream: [null, Stream] - , date: Date - , str: String - , browser : String - , cache : path - , color : ["always", Boolean] - , depth : Number - , description : Boolean - , dev : Boolean - , editor : path - , force : Boolean - , global : Boolean - , globalconfig : path - , group : [String, Number] - , gzipbin : String - , logfd : [Number, Stream] - , loglevel : ["silent","win","error","warn","info","verbose","silly"] - , long : Boolean - , "node-version" : [false, String] - , npaturl : url - , npat : Boolean - , "onload-script" : [false, String] - , outfd : [Number, Stream] - , parseable : Boolean - , pre: Boolean - , prefix: path - , proxy : url - , "rebuild-bundle" : Boolean - , registry : url - , searchopts : String - , searchexclude: [null, String] - , shell : path - , t: [Array, String] - , tag : String - , tar : String - , tmp : path - , "unsafe-perm" : Boolean - , usage : Boolean - , user : String - , username : String - , userconfig : path - , version : Boolean - , viewer: path - , _exit : Boolean - , path: path - } - - ; [["-v", {version:true}, []] - ,["---v", {version:true}, []] - ,["ls -s --no-reg connect -d", - {loglevel:"info",registry:null},["ls","connect"]] - ,["ls ---s foo",{loglevel:"silent"},["ls","foo"]] - ,["ls --registry blargle", {}, ["ls"]] - ,["--no-registry", {registry:null}, []] - ,["--no-color true", {color:false}, []] - ,["--no-color false", {color:true}, []] - ,["--no-color", {color:false}, []] - ,["--color false", {color:false}, []] - ,["--color --logfd 7", {logfd:7,color:true}, []] - ,["--color=true", {color:true}, []] - ,["--logfd=10", {logfd:10}, []] - ,["--tmp=/tmp -tar=gtar",{tmp:"/tmp",tar:"gtar"},[]] - ,["--tmp=tmp -tar=gtar", - {tmp:path.resolve(process.cwd(), "tmp"),tar:"gtar"},[]] - ,["--logfd x", {}, []] - ,["a -true -- -no-false", {true:true},["a","-no-false"]] - ,["a -no-false", {false:false},["a"]] - ,["a -no-no-true", {true:true}, ["a"]] - ,["a -no-no-no-false", {false:false}, ["a"]] - ,["---NO-no-No-no-no-no-nO-no-no"+ - "-No-no-no-no-no-no-no-no-no"+ - "-no-no-no-no-NO-NO-no-no-no-no-no-no"+ - "-no-body-can-do-the-boogaloo-like-I-do" - ,{"body-can-do-the-boogaloo-like-I-do":false}, []] - ,["we are -no-strangers-to-love "+ - "--you-know=the-rules --and=so-do-i "+ - "---im-thinking-of=a-full-commitment "+ - "--no-you-would-get-this-from-any-other-guy "+ - "--no-gonna-give-you-up "+ - "-no-gonna-let-you-down=true "+ - "--no-no-gonna-run-around false "+ - "--desert-you=false "+ - "--make-you-cry false "+ - "--no-tell-a-lie "+ - "--no-no-and-hurt-you false" - ,{"strangers-to-love":false - ,"you-know":"the-rules" - ,"and":"so-do-i" - ,"you-would-get-this-from-any-other-guy":false - ,"gonna-give-you-up":false - ,"gonna-let-you-down":false - ,"gonna-run-around":false - ,"desert-you":false - ,"make-you-cry":false - ,"tell-a-lie":false - ,"and-hurt-you":false - },["we", "are"]] - ,["-t one -t two -t three" - ,{t: ["one", "two", "three"]} - ,[]] - ,["-t one -t null -t three four five null" - ,{t: ["one", "null", "three"]} - ,["four", "five", "null"]] - ,["-t foo" - ,{t:["foo"]} - ,[]] - ,["--no-t" - ,{t:["false"]} - ,[]] - ,["-no-no-t" - ,{t:["true"]} - ,[]] - ,["-aoa one -aoa null -aoa 100" - ,{aoa:["one", null, '100']} - ,[]] - ,["-str 100" - ,{str:"100"} - ,[]] - ,["--color always" - ,{color:"always"} - ,[]] - ,["--no-nullstream" - ,{nullstream:null} - ,[]] - ,["--nullstream false" - ,{nullstream:null} - ,[]] - ,["--notadate=2011-01-25" - ,{notadate: "2011-01-25"} - ,[]] - ,["--date 2011-01-25" - ,{date: new Date("2011-01-25")} - ,[]] - ,["-cl 1" - ,{config: true, length: 1} - ,[] - ,{config: Boolean, length: Number, clear: Boolean} - ,{c: "--config", l: "--length"}] - ,["--acount bla" - ,{"acount":true} - ,["bla"] - ,{account: Boolean, credentials: Boolean, options: String} - ,{a:"--account", c:"--credentials",o:"--options"}] - ,["--clear" - ,{clear:true} - ,[] - ,{clear:Boolean,con:Boolean,len:Boolean,exp:Boolean,add:Boolean,rep:Boolean} - ,{c:"--con",l:"--len",e:"--exp",a:"--add",r:"--rep"}] - ,["--file -" - ,{"file":"-"} - ,[] - ,{file:String} - ,{}] - ,["--file -" - ,{"file":true} - ,["-"] - ,{file:Boolean} - ,{}] - ,["--path" - ,{"path":null} - ,[]] - ,["--path ." - ,{"path":process.cwd()} - ,[]] - ].forEach(function (test) { - var argv = test[0].split(/\s+/) - , opts = test[1] - , rem = test[2] - , actual = nopt(test[3] || types, test[4] || shorthands, argv, 0) - , parsed = actual.argv - delete actual.argv - for (var i in opts) { - var e = JSON.stringify(opts[i]) - , a = JSON.stringify(actual[i] === undefined ? null : actual[i]) - if (e && typeof e === "object") { - t.deepEqual(e, a) - } else { - t.equal(e, a) - } - } - t.deepEqual(rem, parsed.remain) - }) - t.end() -}) diff --git a/node_modules/normalize-package-data/.npmignore b/node_modules/normalize-package-data/.npmignore deleted file mode 100644 index 096746c..0000000 --- a/node_modules/normalize-package-data/.npmignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules/ \ No newline at end of file diff --git a/node_modules/normalize-package-data/.travis.yml b/node_modules/normalize-package-data/.travis.yml deleted file mode 100644 index 6e5919d..0000000 --- a/node_modules/normalize-package-data/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "0.10" diff --git a/node_modules/normalize-package-data/AUTHORS b/node_modules/normalize-package-data/AUTHORS deleted file mode 100644 index 10860f7..0000000 --- a/node_modules/normalize-package-data/AUTHORS +++ /dev/null @@ -1,4 +0,0 @@ -# Names sorted by how much code was originally theirs. -Isaac Z. Schlueter -Meryn Stol -Robert Kowalski \ No newline at end of file diff --git a/node_modules/normalize-package-data/LICENSE b/node_modules/normalize-package-data/LICENSE deleted file mode 100644 index 9cea2e3..0000000 --- a/node_modules/normalize-package-data/LICENSE +++ /dev/null @@ -1,30 +0,0 @@ -This package contains code originally written by Isaac Z. Schlueter. -Used with permission. - -Copyright (c) Meryn Stol ("Author") -All rights reserved. - -The BSD License - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. 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. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. diff --git a/node_modules/normalize-package-data/README.md b/node_modules/normalize-package-data/README.md deleted file mode 100644 index 526745e..0000000 --- a/node_modules/normalize-package-data/README.md +++ /dev/null @@ -1,107 +0,0 @@ -# normalize-package-data [![Build Status](https://travis-ci.org/npm/normalize-package-data.png?branch=master)](https://travis-ci.org/npm/normalize-package-data) - -normalize-package data exports a function that normalizes package metadata. This data is typically found in a package.json file, but in principle could come from any source - for example the npm registry. - -normalize-package-data is used by [read-package-json](https://npmjs.org/package/read-package-json) to normalize the data it reads from a package.json file. In turn, read-package-json is used by [npm](https://npmjs.org/package/npm) and various npm-related tools. - -## Installation - -``` -npm install normalize-package-data -``` - -## Usage - -Basic usage is really simple. You call the function that normalize-package-data exports. Let's call it `normalizeData`. - -```javascript -normalizeData = require('normalize-package-data') -packageData = fs.readFileSync("package.json") -normalizeData(packageData) -// packageData is now normalized -``` - -#### Strict mode - -You may activate strict validation by passing true as the second argument. - -```javascript -normalizeData = require('normalize-package-data') -packageData = fs.readFileSync("package.json") -warnFn = function(msg) { console.error(msg) } -normalizeData(packageData, true) -// packageData is now normalized -``` - -If strict mode is activated, only Semver 2.0 version strings are accepted. Otherwise, Semver 1.0 strings are accepted as well. Packages must have a name, and the name field must not have contain leading or trailing whitespace. - -#### Warnings - -Optionally, you may pass a "warning" function. It gets called whenever the `normalizeData` function encounters something that doesn't look right. It indicates less than perfect input data. - -```javascript -normalizeData = require('normalize-package-data') -packageData = fs.readFileSync("package.json") -warnFn = function(msg) { console.error(msg) } -normalizeData(packageData, warnFn) -// packageData is now normalized. Any number of warnings may have been logged. -``` - -You may combine strict validation with warnings by passing `true` as the second argument, and `warnFn` as third. - -When `private` field is set to `true`, warnings will be suppressed. - -### Potential exceptions - -If the supplied data has an invalid name or version vield, `normalizeData` will throw an error. Depending on where you call `normalizeData`, you may want to catch these errors so can pass them to a callback. - -## What normalization (currently) entails - -* The value of `name` field gets trimmed (unless in strict mode). -* The value of the `version` field gets cleaned by `semver.clean`. See [documentation for the semver module](https://github.com/isaacs/node-semver). -* If `name` and/or `version` fields are missing, they are set to empty strings. -* If `files` field is not an array, it will be removed. -* If `bin` field is a string, then `bin` field will become an object with `name` set to the value of the `name` field, and `bin` set to the original string value. -* If `man` field is a string, it will become an array with the original string as its sole member. -* If `keywords` field is string, it is considered to be a list of keywords separated by one or more white-space characters. It gets converted to an array by splitting on `\s+`. -* All people fields (`author`, `maintainers`, `contributors`) get converted into objects with name, email and url properties. -* If `bundledDependencies` field (a typo) exists and `bundleDependencies` field does not, `bundledDependencies` will get renamed to `bundleDependencies`. -* If the value of any of the dependencies fields (`dependencies`, `devDependencies`, `optionalDependencies`) is a string, it gets converted into an object with familiar `name=>value` pairs. -* The values in `optionalDependencies` get added to `dependencies`. The `optionalDependencies` array is left untouched. -* As of v2: Dependencies that point at known hosted git providers (currently: github, bitbucket, gitlab) will have their URLs canonicalized, but protocols will be preserved. -* As of v2: Dependencies that use shortcuts for hosted git providers (`org/proj`, `github:org/proj`, `bitbucket:org/proj`, `gitlab:org/proj`, `gist:docid`) will have the shortcut left in place. (In the case of github, the `org/proj` form will be expanded to `github:org/proj`.) THIS MARKS A BREAKING CHANGE FROM V1, where the shorcut was previously expanded to a URL. -* If `description` field does not exist, but `readme` field does, then (more or less) the first paragraph of text that's found in the readme is taken as value for `description`. -* If `repository` field is a string, it will become an object with `url` set to the original string value, and `type` set to `"git"`. -* If `repository.url` is not a valid url, but in the style of "[owner-name]/[repo-name]", `repository.url` will be set to git+https://github.com/[owner-name]/[repo-name].git -* If `bugs` field is a string, the value of `bugs` field is changed into an object with `url` set to the original string value. -* If `bugs` field does not exist, but `repository` field points to a repository hosted on GitHub, the value of the `bugs` field gets set to an url in the form of https://github.com/[owner-name]/[repo-name]/issues . If the repository field points to a GitHub Gist repo url, the associated http url is chosen. -* If `bugs` field is an object, the resulting value only has email and url properties. If email and url properties are not strings, they are ignored. If no valid values for either email or url is found, bugs field will be removed. -* If `homepage` field is not a string, it will be removed. -* If the url in the `homepage` field does not specify a protocol, then http is assumed. For example, `myproject.org` will be changed to `http://myproject.org`. -* If `homepage` field does not exist, but `repository` field points to a repository hosted on GitHub, the value of the `homepage` field gets set to an url in the form of https://github.com/[owner-name]/[repo-name]/ . If the repository field points to a GitHub Gist repo url, the associated http url is chosen. - -### Rules for name field - -If `name` field is given, the value of the name field must be a string. The string may not: - -* start with a period. -* contain the following characters: `/@\s+%` -* contain and characters that would need to be encoded for use in urls. -* resemble the word `node_modules` or `favicon.ico` (case doesn't matter). - -### Rules for version field - -If `version` field is given, the value of the version field must be a valid *semver* string, as determined by the `semver.valid` method. See [documentation for the semver module](https://github.com/isaacs/node-semver). - -### Rules for license field - -The `license` field should be a valid *SPDX license expression* or one of the special values allowed by [validate-npm-package-license](https://npmjs.com/packages/validate-npm-package-license). See [documentation for the license field in package.json](https://docs.npmjs.com/files/package.json#license). - -## Credits - -This package contains code based on read-package-json written by Isaac Z. Schlueter. Used with permisson. - -## License - -normalize-package-data is released under the [BSD 2-Clause License](http://opensource.org/licenses/MIT). -Copyright (c) 2013 Meryn Stol diff --git a/node_modules/normalize-package-data/lib/extract_description.js b/node_modules/normalize-package-data/lib/extract_description.js deleted file mode 100644 index 83f10aa..0000000 --- a/node_modules/normalize-package-data/lib/extract_description.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = extractDescription - -// Extracts description from contents of a readme file in markdown format -function extractDescription (d) { - if (!d) return; - if (d === "ERROR: No README data found!") return; - // the first block of text before the first heading - // that isn't the first line heading - d = d.trim().split('\n') - for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s ++); - var l = d.length - for (var e = s + 1; e < l && d[e].trim(); e ++); - return d.slice(s, e).join(' ').trim() -} diff --git a/node_modules/normalize-package-data/lib/fixer.js b/node_modules/normalize-package-data/lib/fixer.js deleted file mode 100644 index 1409c69..0000000 --- a/node_modules/normalize-package-data/lib/fixer.js +++ /dev/null @@ -1,418 +0,0 @@ -var semver = require("semver") -var validateLicense = require('validate-npm-package-license'); -var hostedGitInfo = require("hosted-git-info") -var isBuiltinModule = require("is-builtin-module") -var depTypes = ["dependencies","devDependencies","optionalDependencies"] -var extractDescription = require("./extract_description") -var url = require("url") -var typos = require("./typos") - -var fixer = module.exports = { - // default warning function - warn: function() {}, - - fixRepositoryField: function(data) { - if (data.repositories) { - this.warn("repositories"); - data.repository = data.repositories[0] - } - if (!data.repository) return this.warn("missingRepository") - if (typeof data.repository === "string") { - data.repository = { - type: "git", - url: data.repository - } - } - var r = data.repository.url || "" - if (r) { - var hosted = hostedGitInfo.fromUrl(r) - if (hosted) { - r = data.repository.url - = hosted.getDefaultRepresentation() == "shortcut" ? hosted.https() : hosted.toString() - } - } - - if (r.match(/github.com\/[^\/]+\/[^\/]+\.git\.git$/)) { - this.warn("brokenGitUrl", r) - } - } - -, fixTypos: function(data) { - Object.keys(typos.topLevel).forEach(function (d) { - if (data.hasOwnProperty(d)) { - this.warn("typo", d, typos.topLevel[d]) - } - }, this) - } - -, fixScriptsField: function(data) { - if (!data.scripts) return - if (typeof data.scripts !== "object") { - this.warn("nonObjectScripts") - delete data.scripts - return - } - Object.keys(data.scripts).forEach(function (k) { - if (typeof data.scripts[k] !== "string") { - this.warn("nonStringScript") - delete data.scripts[k] - } else if (typos.script[k] && !data.scripts[typos.script[k]]) { - this.warn("typo", k, typos.script[k], "scripts") - } - }, this) - } - -, fixFilesField: function(data) { - var files = data.files - if (files && !Array.isArray(files)) { - this.warn("nonArrayFiles") - delete data.files - } else if (data.files) { - data.files = data.files.filter(function(file) { - if (!file || typeof file !== "string") { - this.warn("invalidFilename", file) - return false - } else { - return true - } - }, this) - } - } - -, fixBinField: function(data) { - if (!data.bin) return; - if (typeof data.bin === "string") { - var b = {} - var match - if (match = data.name.match(/^@[^/]+[/](.*)$/)) { - b[match[1]] = data.bin - } else { - b[data.name] = data.bin - } - data.bin = b - } - } - -, fixManField: function(data) { - if (!data.man) return; - if (typeof data.man === "string") { - data.man = [ data.man ] - } - } -, fixBundleDependenciesField: function(data) { - var bdd = "bundledDependencies" - var bd = "bundleDependencies" - if (data[bdd] && !data[bd]) { - data[bd] = data[bdd] - delete data[bdd] - } - if (data[bd] && !Array.isArray(data[bd])) { - this.warn("nonArrayBundleDependencies") - delete data[bd] - } else if (data[bd]) { - data[bd] = data[bd].filter(function(bd) { - if (!bd || typeof bd !== 'string') { - this.warn("nonStringBundleDependency", bd) - return false - } else { - if (!data.dependencies) { - data.dependencies = {} - } - if (!data.dependencies.hasOwnProperty(bd)) { - this.warn("nonDependencyBundleDependency", bd) - data.dependencies[bd] = "*" - } - return true - } - }, this) - } - } - -, fixDependencies: function(data, strict) { - var loose = !strict - objectifyDeps(data, this.warn) - addOptionalDepsToDeps(data, this.warn) - this.fixBundleDependenciesField(data) - - ;['dependencies','devDependencies'].forEach(function(deps) { - if (!(deps in data)) return - if (!data[deps] || typeof data[deps] !== "object") { - this.warn("nonObjectDependencies", deps) - delete data[deps] - return - } - Object.keys(data[deps]).forEach(function (d) { - var r = data[deps][d] - if (typeof r !== 'string') { - this.warn("nonStringDependency", d, JSON.stringify(r)) - delete data[deps][d] - } - var hosted = hostedGitInfo.fromUrl(data[deps][d]) - if (hosted) data[deps][d] = hosted.toString() - }, this) - }, this) - } - -, fixModulesField: function (data) { - if (data.modules) { - this.warn("deprecatedModules") - delete data.modules - } - } - -, fixKeywordsField: function (data) { - if (typeof data.keywords === "string") { - data.keywords = data.keywords.split(/,\s+/) - } - if (data.keywords && !Array.isArray(data.keywords)) { - delete data.keywords - this.warn("nonArrayKeywords") - } else if (data.keywords) { - data.keywords = data.keywords.filter(function(kw) { - if (typeof kw !== "string" || !kw) { - this.warn("nonStringKeyword"); - return false - } else { - return true - } - }, this) - } - } - -, fixVersionField: function(data, strict) { - // allow "loose" semver 1.0 versions in non-strict mode - // enforce strict semver 2.0 compliance in strict mode - var loose = !strict - if (!data.version) { - data.version = "" - return true - } - if (!semver.valid(data.version, loose)) { - throw new Error('Invalid version: "'+ data.version + '"') - } - data.version = semver.clean(data.version, loose) - return true - } - -, fixPeople: function(data) { - modifyPeople(data, unParsePerson) - modifyPeople(data, parsePerson) - } - -, fixNameField: function(data, options) { - if (typeof options === "boolean") options = {strict: options} - else if (typeof options === "undefined") options = {} - var strict = options.strict - if (!data.name && !strict) { - data.name = "" - return - } - if (typeof data.name !== "string") { - throw new Error("name field must be a string.") - } - if (!strict) - data.name = data.name.trim() - ensureValidName(data.name, strict, options.allowLegacyCase) - if (isBuiltinModule(data.name)) - this.warn("conflictingName", data.name) - } - - -, fixDescriptionField: function (data) { - if (data.description && typeof data.description !== 'string') { - this.warn("nonStringDescription") - delete data.description - } - if (data.readme && !data.description) - data.description = extractDescription(data.readme) - if(data.description === undefined) delete data.description; - if (!data.description) this.warn("missingDescription") - } - -, fixReadmeField: function (data) { - if (!data.readme) { - this.warn("missingReadme") - data.readme = "ERROR: No README data found!" - } - } - -, fixBugsField: function(data) { - if (!data.bugs && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url) - if(hosted && hosted.bugs()) { - data.bugs = {url: hosted.bugs()} - } - } - else if(data.bugs) { - var emailRe = /^.+@.*\..+$/ - if(typeof data.bugs == "string") { - if(emailRe.test(data.bugs)) - data.bugs = {email:data.bugs} - else if(url.parse(data.bugs).protocol) - data.bugs = {url: data.bugs} - else - this.warn("nonEmailUrlBugsString") - } - else { - bugsTypos(data.bugs, this.warn) - var oldBugs = data.bugs - data.bugs = {} - if(oldBugs.url) { - if(typeof(oldBugs.url) == "string" && url.parse(oldBugs.url).protocol) - data.bugs.url = oldBugs.url - else - this.warn("nonUrlBugsUrlField") - } - if(oldBugs.email) { - if(typeof(oldBugs.email) == "string" && emailRe.test(oldBugs.email)) - data.bugs.email = oldBugs.email - else - this.warn("nonEmailBugsEmailField") - } - } - if(!data.bugs.email && !data.bugs.url) { - delete data.bugs - this.warn("emptyNormalizedBugs") - } - } - } - -, fixHomepageField: function(data) { - if (!data.homepage && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url) - if (hosted && hosted.docs()) data.homepage = hosted.docs() - } - if (!data.homepage) return - - if(typeof data.homepage !== "string") { - this.warn("nonUrlHomepage") - return delete data.homepage - } - if(!url.parse(data.homepage).protocol) { - this.warn("missingProtocolHomepage") - data.homepage = "http://" + data.homepage - } - } - -, fixLicenseField: function(data) { - if (!data.license) { - return this.warn("missingLicense") - } else{ - if ( - typeof(data.license) !== 'string' || - data.license.length < 1 - ) { - this.warn("invalidLicense") - } else { - if (!validateLicense(data.license).validForNewPackages) - this.warn("invalidLicense") - } - } - } -} - -function isValidScopedPackageName(spec) { - if (spec.charAt(0) !== '@') return false - - var rest = spec.slice(1).split('/') - if (rest.length !== 2) return false - - return rest[0] && rest[1] && - rest[0] === encodeURIComponent(rest[0]) && - rest[1] === encodeURIComponent(rest[1]) -} - -function isCorrectlyEncodedName(spec) { - return !spec.match(/[\/@\s\+%:]/) && - spec === encodeURIComponent(spec) -} - -function ensureValidName (name, strict, allowLegacyCase) { - if (name.charAt(0) === "." || - !(isValidScopedPackageName(name) || isCorrectlyEncodedName(name)) || - (strict && (!allowLegacyCase) && name !== name.toLowerCase()) || - name.toLowerCase() === "node_modules" || - name.toLowerCase() === "favicon.ico") { - throw new Error("Invalid name: " + JSON.stringify(name)) - } -} - -function modifyPeople (data, fn) { - if (data.author) data.author = fn(data.author) - ;["maintainers", "contributors"].forEach(function (set) { - if (!Array.isArray(data[set])) return; - data[set] = data[set].map(fn) - }) - return data -} - -function unParsePerson (person) { - if (typeof person === "string") return person - var name = person.name || "" - var u = person.url || person.web - var url = u ? (" ("+u+")") : "" - var e = person.email || person.mail - var email = e ? (" <"+e+">") : "" - return name+email+url -} - -function parsePerson (person) { - if (typeof person !== "string") return person - var name = person.match(/^([^\(<]+)/) - var url = person.match(/\(([^\)]+)\)/) - var email = person.match(/<([^>]+)>/) - var obj = {} - if (name && name[0].trim()) obj.name = name[0].trim() - if (email) obj.email = email[1]; - if (url) obj.url = url[1]; - return obj -} - -function addOptionalDepsToDeps (data, warn) { - var o = data.optionalDependencies - if (!o) return; - var d = data.dependencies || {} - Object.keys(o).forEach(function (k) { - d[k] = o[k] - }) - data.dependencies = d -} - -function depObjectify (deps, type, warn) { - if (!deps) return {} - if (typeof deps === "string") { - deps = deps.trim().split(/[\n\r\s\t ,]+/) - } - if (!Array.isArray(deps)) return deps - warn("deprecatedArrayDependencies", type) - var o = {} - deps.filter(function (d) { - return typeof d === "string" - }).forEach(function(d) { - d = d.trim().split(/(:?[@\s><=])/) - var dn = d.shift() - var dv = d.join("") - dv = dv.trim() - dv = dv.replace(/^@/, "") - o[dn] = dv - }) - return o -} - -function objectifyDeps (data, warn) { - depTypes.forEach(function (type) { - if (!data[type]) return; - data[type] = depObjectify(data[type], type, warn) - }) -} - -function bugsTypos(bugs, warn) { - if (!bugs) return - Object.keys(bugs).forEach(function (k) { - if (typos.bugs[k]) { - warn("typo", k, typos.bugs[k], "bugs") - bugs[typos.bugs[k]] = bugs[k] - delete bugs[k] - } - }) -} diff --git a/node_modules/normalize-package-data/lib/make_warning.js b/node_modules/normalize-package-data/lib/make_warning.js deleted file mode 100644 index 0f3aad5..0000000 --- a/node_modules/normalize-package-data/lib/make_warning.js +++ /dev/null @@ -1,23 +0,0 @@ -var util = require("util") -var messages = require("./warning_messages.json") - -module.exports = function() { - var args = Array.prototype.slice.call(arguments, 0) - var warningName = args.shift() - if (warningName == "typo") { - return makeTypoWarning.apply(null,args) - } - else { - var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'" - args.unshift(msgTemplate) - return util.format.apply(null, args) - } -} - -function makeTypoWarning (providedName, probableName, field) { - if (field) { - providedName = field + "['" + providedName + "']" - probableName = field + "['" + probableName + "']" - } - return util.format(messages.typo, providedName, probableName) -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/lib/normalize.js b/node_modules/normalize-package-data/lib/normalize.js deleted file mode 100644 index 7e68c69..0000000 --- a/node_modules/normalize-package-data/lib/normalize.js +++ /dev/null @@ -1,39 +0,0 @@ -module.exports = normalize - -var fixer = require("./fixer") -normalize.fixer = fixer - -var makeWarning = require("./make_warning") - -var fieldsToFix = ['name','version','description','repository','modules','scripts' - ,'files','bin','man','bugs','keywords','readme','homepage','license'] -var otherThingsToFix = ['dependencies','people', 'typos'] - -var thingsToFix = fieldsToFix.map(function(fieldName) { - return ucFirst(fieldName) + "Field" -}) -// two ways to do this in CoffeeScript on only one line, sub-70 chars: -// thingsToFix = fieldsToFix.map (name) -> ucFirst(name) + "Field" -// thingsToFix = (ucFirst(name) + "Field" for name in fieldsToFix) -thingsToFix = thingsToFix.concat(otherThingsToFix) - -function normalize (data, warn, strict) { - if(warn === true) warn = null, strict = true - if(!strict) strict = false - if(!warn || data.private) warn = function(msg) { /* noop */ } - - if (data.scripts && - data.scripts.install === "node-gyp rebuild" && - !data.scripts.preinstall) { - data.gypfile = true - } - fixer.warn = function() { warn(makeWarning.apply(null, arguments)) } - thingsToFix.forEach(function(thingName) { - fixer["fix" + ucFirst(thingName)](data, strict) - }) - data._id = data.name + "@" + data.version -} - -function ucFirst (string) { - return string.charAt(0).toUpperCase() + string.slice(1); -} diff --git a/node_modules/normalize-package-data/lib/safe_format.js b/node_modules/normalize-package-data/lib/safe_format.js deleted file mode 100644 index 08517f1..0000000 --- a/node_modules/normalize-package-data/lib/safe_format.js +++ /dev/null @@ -1,9 +0,0 @@ -var util = require('util') - -module.exports = function() { - var args = Array.prototype.slice.call(arguments, 0) - args.forEach(function(arg) { - if (!arg) throw new TypeError('Bad arguments.') - }) - return util.format.apply(null, arguments) -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/lib/typos.json b/node_modules/normalize-package-data/lib/typos.json deleted file mode 100644 index 73590c0..0000000 --- a/node_modules/normalize-package-data/lib/typos.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "topLevel": { - "dependancies": "dependencies" - ,"dependecies": "dependencies" - ,"depdenencies": "dependencies" - ,"devEependencies": "devDependencies" - ,"depends": "dependencies" - ,"dev-dependencies": "devDependencies" - ,"devDependences": "devDependencies" - ,"devDepenencies": "devDependencies" - ,"devdependencies": "devDependencies" - ,"repostitory": "repository" - ,"repo": "repository" - ,"prefereGlobal": "preferGlobal" - ,"hompage": "homepage" - ,"hampage": "homepage" - ,"autohr": "author" - ,"autor": "author" - ,"contributers": "contributors" - ,"publicationConfig": "publishConfig" - ,"script": "scripts" - }, - "bugs": { "web": "url", "name": "url" }, - "script": { "server": "start", "tests": "test" } -} diff --git a/node_modules/normalize-package-data/lib/warning_messages.json b/node_modules/normalize-package-data/lib/warning_messages.json deleted file mode 100644 index 5fd19f3..0000000 --- a/node_modules/normalize-package-data/lib/warning_messages.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "repositories": "'repositories' (plural) Not supported. Please pick one as the 'repository' field" - ,"missingRepository": "No repository field." - ,"brokenGitUrl": "Probably broken git url: %s" - ,"nonObjectScripts": "scripts must be an object" - ,"nonStringScript": "script values must be string commands" - ,"nonArrayFiles": "Invalid 'files' member" - ,"invalidFilename": "Invalid filename in 'files' list: %s" - ,"nonArrayBundleDependencies": "Invalid 'bundleDependencies' list. Must be array of package names" - ,"nonStringBundleDependency": "Invalid bundleDependencies member: %s" - ,"nonDependencyBundleDependency": "Non-dependency in bundleDependencies: %s" - ,"nonObjectDependencies": "%s field must be an object" - ,"nonStringDependency": "Invalid dependency: %s %s" - ,"deprecatedArrayDependencies": "specifying %s as array is deprecated" - ,"deprecatedModules": "modules field is deprecated" - ,"nonArrayKeywords": "keywords should be an array of strings" - ,"nonStringKeyword": "keywords should be an array of strings" - ,"conflictingName": "%s is also the name of a node core module." - ,"nonStringDescription": "'description' field should be a string" - ,"missingDescription": "No description" - ,"missingReadme": "No README data" - ,"missingLicense": "No license field." - ,"nonEmailUrlBugsString": "Bug string field must be url, email, or {email,url}" - ,"nonUrlBugsUrlField": "bugs.url field must be a string url. Deleted." - ,"nonEmailBugsEmailField": "bugs.email field must be a string email. Deleted." - ,"emptyNormalizedBugs": "Normalized value of bugs field is an empty object. Deleted." - ,"nonUrlHomepage": "homepage field must be a string url. Deleted." - ,"invalidLicense": "license should be a valid SPDX license expression" - ,"missingProtocolHomepage": "homepage field must start with a protocol." - ,"typo": "%s should probably be %s." -} diff --git a/node_modules/normalize-package-data/package.json b/node_modules/normalize-package-data/package.json deleted file mode 100644 index 5b6ba2e..0000000 --- a/node_modules/normalize-package-data/package.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "normalize-package-data@^2.3.4", - "scope": null, - "escapedName": "normalize-package-data", - "name": "normalize-package-data", - "rawSpec": "^2.3.4", - "spec": ">=2.3.4 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/meow" - ] - ], - "_from": "normalize-package-data@>=2.3.4 <3.0.0", - "_id": "normalize-package-data@2.3.5", - "_inCache": true, - "_location": "/normalize-package-data", - "_nodeVersion": "5.0.0", - "_npmUser": { - "name": "iarna", - "email": "me@re-becca.org" - }, - "_npmVersion": "3.3.6", - "_phantomChildren": {}, - "_requested": { - "raw": "normalize-package-data@^2.3.4", - "scope": null, - "escapedName": "normalize-package-data", - "name": "normalize-package-data", - "rawSpec": "^2.3.4", - "spec": ">=2.3.4 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/meow", - "/read-pkg" - ], - "_resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.5.tgz", - "_shasum": "8d924f142960e1777e7ffe170543631cc7cb02df", - "_shrinkwrap": null, - "_spec": "normalize-package-data@^2.3.4", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/meow", - "author": { - "name": "Meryn Stol", - "email": "merynstol@gmail.com" - }, - "bugs": { - "url": "https://github.com/npm/normalize-package-data/issues" - }, - "contributors": [ - { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me" - }, - { - "name": "Meryn Stol", - "email": "merynstol@gmail.com" - }, - { - "name": "Robert Kowalski", - "email": "rok@kowalski.gd" - } - ], - "dependencies": { - "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - }, - "description": "Normalizes data that can be found in package.json files.", - "devDependencies": { - "async": "^1.5.0", - "tap": "^2.2.0", - "underscore": "^1.8.3" - }, - "directories": {}, - "dist": { - "shasum": "8d924f142960e1777e7ffe170543631cc7cb02df", - "tarball": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.5.tgz" - }, - "gitHead": "3dc7756af20b3b1b24c6d75302448ca3659e0a65", - "homepage": "https://github.com/npm/normalize-package-data#readme", - "license": "BSD-2-Clause", - "main": "lib/normalize.js", - "maintainers": [ - { - "name": "iarna", - "email": "me@re-becca.org" - }, - { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - { - "name": "meryn", - "email": "merynstol@gmail.com" - }, - { - "name": "othiym23", - "email": "ogd@aoaioxxysz.net" - }, - { - "name": "zkat", - "email": "kat@sykosomatic.org" - } - ], - "name": "normalize-package-data", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/npm/normalize-package-data.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "2.3.5" -} diff --git a/node_modules/normalize-package-data/test/basic.js b/node_modules/normalize-package-data/test/basic.js deleted file mode 100644 index 12c403e..0000000 --- a/node_modules/normalize-package-data/test/basic.js +++ /dev/null @@ -1,34 +0,0 @@ -var tap = require("tap") -var normalize = require("../lib/normalize") -var path = require("path") -var fs = require("fs") - -tap.test("basic test", function (t) { - var p = path.resolve(__dirname, "./fixtures/read-package-json.json") - fs.readFile (p, function (err, contents) { - if (err) throw err; - var originalData = JSON.parse(contents.toString()) - var data = JSON.parse(contents.toString()) - normalize(data) - t.ok(data) - verifyFields(t, data, originalData) - t.end() - }) -}) - -function verifyFields (t, normalized, original) { - t.equal(normalized.version, original.version, "Version field stays same") - t.equal(normalized._id, normalized.name + "@" + normalized.version, "It gets good id.") - t.equal(normalized.name, original.name, "Name stays the same.") - t.type(normalized.author, "object", "author field becomes object") - t.deepEqual(normalized.scripts, original.scripts, "scripts field (object) stays same") - t.equal(normalized.main, original.main) - // optional deps are folded in. - t.deepEqual(normalized.optionalDependencies, - original.optionalDependencies) - t.has(normalized.dependencies, original.optionalDependencies, "opt depedencies are copied into dependencies") - t.has(normalized.dependencies, original.dependencies, "regular depedencies stay in place") - t.deepEqual(normalized.devDependencies, original.devDependencies) - t.type(normalized.bugs, "object", "bugs should become object") - t.equal(normalized.bugs.url, "https://github.com/isaacs/read-package-json/issues") -} diff --git a/node_modules/normalize-package-data/test/consistency.js b/node_modules/normalize-package-data/test/consistency.js deleted file mode 100644 index 4082be2..0000000 --- a/node_modules/normalize-package-data/test/consistency.js +++ /dev/null @@ -1,36 +0,0 @@ -var tap = require("tap") -var normalize = require("../lib/normalize") -var path = require("path") -var fs = require("fs") -var _ = require("underscore") -var async = require("async") - -var data, clonedData -var warn - -tap.test("consistent normalization", function(t) { - path.resolve(__dirname, "./fixtures/read-package-json.json") - fs.readdir (__dirname + "/fixtures", function (err, entries) { - // entries = ['coffee-script.json'] // uncomment to limit to a specific file - verifyConsistency = function(entryName, next) { - warn = function(msg) { - // t.equal("",msg) // uncomment to have some kind of logging of warnings - } - filename = __dirname + "/fixtures/" + entryName - fs.readFile(filename, function(err, contents) { - if (err) return next(err) - data = JSON.parse(contents.toString()) - normalize(data, warn) - clonedData = _.clone(data) - normalize(data, warn) - t.deepEqual(clonedData, data, - "Normalization of " + entryName + " is consistent.") - next(null) - }) // fs.readFile - } // verifyConsistency - async.forEach(entries, verifyConsistency, function(err) { - if (err) throw err - t.end() - }) - }) // fs.readdir -}) // tap.test \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/dependencies.js b/node_modules/normalize-package-data/test/dependencies.js deleted file mode 100644 index 3e493ab..0000000 --- a/node_modules/normalize-package-data/test/dependencies.js +++ /dev/null @@ -1,44 +0,0 @@ -var tap = require("tap") -var normalize = require("../lib/normalize") - -var warningMessages = require("../lib/warning_messages.json") -var safeFormat = require("../lib/safe_format") - -tap.test("warn if dependency contains anything else but a string", function(t) { - var a - var warnings = [] - function warn(w) { - warnings.push(w) - } - normalize(a={ - dependencies: { "a": 123}, - devDependencies: { "b": 456}, - optionalDependencies: { "c": 789} - }, warn) - - var wanted1 = safeFormat(warningMessages.nonStringDependency, "a", 123) - var wanted2 = safeFormat(warningMessages.nonStringDependency, "b", 456) - var wanted3 = safeFormat(warningMessages.nonStringDependency, "c", 789) - t.ok(~warnings.indexOf(wanted1), wanted1) - t.ok(~warnings.indexOf(wanted2), wanted2) - t.ok(~warnings.indexOf(wanted3), wanted3) - t.end() -}) - -tap.test("warn if bundleDependencies array contains anything else but strings", function(t) { - var a - var warnings = [] - function warn(w) { - warnings.push(w) - } - normalize(a={ - bundleDependencies: ["abc", 123, {foo:"bar"}] - }, warn) - - var wanted1 = safeFormat(warningMessages.nonStringBundleDependency, 123) - var wanted2 = safeFormat(warningMessages.nonStringBundleDependency, {foo:"bar"}) - var wanted2 = safeFormat(warningMessages.nonDependencyBundleDependency, "abc") - t.ok(~warnings.indexOf(wanted1), wanted1) - t.ok(~warnings.indexOf(wanted2), wanted2) - t.end() -}) diff --git a/node_modules/normalize-package-data/test/fixtures/async.json b/node_modules/normalize-package-data/test/fixtures/async.json deleted file mode 100644 index 5e652a6..0000000 --- a/node_modules/normalize-package-data/test/fixtures/async.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "async", - "description": "Higher-order functions and common patterns for asynchronous code", - "main": "./lib/async", - "author": "Caolan McMahon", - "version": "0.2.6", - "repository" : { - "type" : "git", - "url" : "http://github.com/caolan/async.git" - }, - "bugs" : { - "url" : "http://github.com/caolan/async/issues" - }, - "licenses" : [ - { - "type" : "MIT", - "url" : "http://github.com/caolan/async/raw/master/LICENSE" - } - ], - "devDependencies": { - "nodeunit": ">0.0.0", - "uglify-js": "1.2.x", - "nodelint": ">0.0.0" - }, - "jam": { - "main": "lib/async.js", - "include": [ - "lib/async.js", - "README.md", - "LICENSE" - ] - }, - "scripts": { - "test": "nodeunit test/test-async.js" - } -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/badscripts.json b/node_modules/normalize-package-data/test/fixtures/badscripts.json deleted file mode 100644 index 25feb4c..0000000 --- a/node_modules/normalize-package-data/test/fixtures/badscripts.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "bad-scripts-package", - "version": "0.0.1", - "scripts": "foo" -} diff --git a/node_modules/normalize-package-data/test/fixtures/bcrypt.json b/node_modules/normalize-package-data/test/fixtures/bcrypt.json deleted file mode 100644 index 56e6d81..0000000 --- a/node_modules/normalize-package-data/test/fixtures/bcrypt.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "bcrypt", - "description": "A bcrypt library for NodeJS.", - "keywords": [ - "bcrypt", - "password", - "auth", - "authentication", - "encryption", - "crypt", - "crypto" - ], - "main": "./bcrypt", - "version": "0.7.5", - "author": "Nick Campbell (http://github.com/ncb000gt)", - "engines": { - "node": ">= 0.6.0" - }, - "repository": { - "type": "git", - "url": "http://github.com/ncb000gt/node.bcrypt.js.git" - }, - "licenses": [ - { - "type": "MIT" - } - ], - "bugs": { - "url": "http://github.com/ncb000gt/node.bcrypt.js/issues" - }, - "scripts": { - "test": "node-gyp configure build && nodeunit test" - }, - "dependencies": { - "bindings": "1.0.0" - }, - "devDependencies": { - "nodeunit": ">=0.6.4" - }, - "contributors": [ - "Antonio Salazar Cardozo (https://github.com/Shadowfiend)", - "Van Nguyen (https://github.com/thegoleffect)", - "David Trejo (https://github.com/dtrejo)", - "Ben Glow (https://github.com/pixelglow)", - "NewITFarmer.com <> (https://github.com/newitfarmer)", - "Alfred Westerveld (https://github.com/alfredwesterveld)", - "Vincent Côté-Roy (https://github.com/vincentcr)", - "Lloyd Hilaiel (https://github.com/lloyd)", - "Roman Shtylman (https://github.com/shtylman)", - "Vadim Graboys (https://github.com/vadimg)", - "Ben Noorduis <> (https://github.com/bnoordhuis)", - "Nate Rajlich (https://github.com/tootallnate)", - "Sean McArthur (https://github.com/seanmonstar)", - "Fanie Oosthuysen (https://github.com/weareu)" - ] -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/coffee-script.json b/node_modules/normalize-package-data/test/fixtures/coffee-script.json deleted file mode 100644 index a0b60a9..0000000 --- a/node_modules/normalize-package-data/test/fixtures/coffee-script.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "coffee-script", - "description": "Unfancy JavaScript", - "keywords": ["javascript", "language", "coffeescript", "compiler"], - "author": "Jeremy Ashkenas", - "version": "1.6.2", - "licenses": [{ - "type": "MIT", - "url": "https://raw.github.com/jashkenas/coffee-script/master/LICENSE" - }], - "engines": { - "node": ">=0.8.0" - }, - "directories" : { - "lib" : "./lib/coffee-script" - }, - "main" : "./lib/coffee-script/coffee-script", - "bin": { - "coffee": "./bin/coffee", - "cake": "./bin/cake" - }, - "scripts": { - "test": "node ./bin/cake test" - }, - "homepage": "http://coffeescript.org", - "bugs": "https://github.com/jashkenas/coffee-script/issues", - "repository": { - "type": "git", - "url": "git://github.com/jashkenas/coffee-script.git" - }, - "devDependencies": { - "uglify-js": "~2.2", - "jison": ">=0.2.0" - } -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/http-server.json b/node_modules/normalize-package-data/test/fixtures/http-server.json deleted file mode 100644 index 90c2886..0000000 --- a/node_modules/normalize-package-data/test/fixtures/http-server.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "http-server", - "preferGlobal": true, - "version": "0.3.0", - "author": "Nodejitsu ", - "description": "a simple zero-configuration command-line http server", - "contributors": [ - { - "name": "Marak Squires", - "email": "marak@nodejitsu.com" - } - ], - "bin": { - "http-server": "./bin/http-server" - }, - "scripts": { - "start": "node ./bin/http-server", - "test": "vows --spec --isolate", - "predeploy": "echo This will be run before deploying the app", - "postdeploy": "echo This will be run after deploying the app" - }, - "main": "./lib/http-server", - "repository": { - "type": "git", - "url": "https://github.com/nodejitsu/http-server.git" - }, - "keywords": [ - "cli", - "http", - "server" - ], - "dependencies" : { - "colors" : "*", - "flatiron" : "0.1.x", - "optimist" : "0.2.x", - "union" : "0.1.x", - "ecstatic" : "0.1.x", - "plates" : "https://github.com/flatiron/plates/tarball/master" - }, - "analyze": false, - "devDependencies": { - "vows" : "0.5.x", - "request" : "2.1.x" - }, - "bundledDependencies": [ - "union", - "ecstatic" - ], - "license": "MIT", - "engines": { - "node": ">=0.6" - } -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/movefile.json b/node_modules/normalize-package-data/test/fixtures/movefile.json deleted file mode 100644 index 5933875..0000000 --- a/node_modules/normalize-package-data/test/fixtures/movefile.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "movefile", - "description": "rename implementation working over devices", - "version": "0.2.0", - "author": "yazgazan ", - "main": "./build/Release/movefile", - "keywords": ["move", "file", "rename"], - "repository": "git://github.com/yazgazan/movefile.git", - "directories": { - "lib": "./build/Release/" - }, - "scripts": { - "install": "./node_modules/node-gyp/bin/node-gyp.js configure && ./node_modules/node-gyp/bin/node-gyp.js build" - }, - "engines": { - "node": "*" - }, - "dependencies": { - "node-gyp": "~0.9.1" - } -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/no-description.json b/node_modules/normalize-package-data/test/fixtures/no-description.json deleted file mode 100644 index 9ea70b6..0000000 --- a/node_modules/normalize-package-data/test/fixtures/no-description.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "foo-bar-package", - "version": "0.0.1" -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/node-module_exist.json b/node_modules/normalize-package-data/test/fixtures/node-module_exist.json deleted file mode 100644 index acc0538..0000000 --- a/node_modules/normalize-package-data/test/fixtures/node-module_exist.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "node-module_exist", - "description": "Find if a NodeJS module is available to require or not", - "version": "0.0.1", - "main": "module_exist.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git@gist.github.com:3135914.git" - }, - "homepage": "https://github.com/FGRibreau", - "author": { - "name": "Francois-Guillaume Ribreau", - "url": "http://fgribreau.com.com/" - }, - "devDependencies": { - "nodeunit": "~0.7.4" - }, - "keywords": [ - "core", - "modules" - ], - "license": "MIT" -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/npm.json b/node_modules/normalize-package-data/test/fixtures/npm.json deleted file mode 100644 index 2262b31..0000000 --- a/node_modules/normalize-package-data/test/fixtures/npm.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "version": "1.2.17", - "name": "npm", - "publishConfig": { - "proprietary-attribs": false - }, - "description": "A package manager for node", - "keywords": [ - "package manager", - "modules", - "install", - "package.json" - ], - "preferGlobal": true, - "config": { - "publishtest": false - }, - "homepage": "https://npmjs.org/doc/", - "author": "Isaac Z. Schlueter (http://blog.izs.me)", - "repository": { - "type": "git", - "url": "https://github.com/isaacs/npm" - }, - "bugs": { - "email": "npm-@googlegroups.com", - "url": "http://github.com/isaacs/npm/issues" - }, - "directories": { - "doc": "./doc", - "man": "./man", - "lib": "./lib", - "bin": "./bin" - }, - "main": "./lib/npm.js", - "bin": "./bin/npm-cli.js", - "dependencies": { - "semver": "~1.1.2", - "ini": "~1.1.0", - "slide": "1", - "abbrev": "~1.0.4", - "graceful-fs": "~1.2.0", - "minimatch": "~0.2.11", - "nopt": "~2.1.1", - "rimraf": "2", - "request": "~2.9", - "which": "1", - "tar": "~0.1.17", - "fstream": "~0.1.22", - "block-stream": "*", - "inherits": "1", - "mkdirp": "~0.3.3", - "read": "~1.0.4", - "lru-cache": "~2.3.0", - "node-gyp": "~0.9.3", - "fstream-npm": "~0.1.3", - "uid-number": "0", - "archy": "0", - "chownr": "0", - "npmlog": "0", - "ansi": "~0.1.2", - "npm-registry-client": "~0.2.18", - "read-package-json": "~0.3.0", - "read-installed": "0", - "glob": "~3.1.21", - "init-package-json": "0.0.6", - "osenv": "0", - "lockfile": "~0.3.0", - "retry": "~0.6.0", - "once": "~1.1.1", - "npmconf": "0", - "opener": "~1.3.0", - "chmodr": "~0.1.0", - "cmd-shim": "~1.1.0" - }, - "bundleDependencies": [ - "semver", - "ini", - "slide", - "abbrev", - "graceful-fs", - "minimatch", - "nopt", - "rimraf", - "request", - "which", - "tar", - "fstream", - "block-stream", - "inherits", - "mkdirp", - "read", - "lru-cache", - "node-gyp", - "fstream-npm", - "uid-number", - "archy", - "chownr", - "npmlog", - "ansi", - "npm-registry-client", - "read-package-json", - "read-installed", - "glob", - "init-package-json", - "osenv", - "lockfile", - "retry", - "once", - "npmconf", - "opener", - "chmodr", - "cmd-shim" - ], - "devDependencies": { - "ronn": "~0.3.6", - "tap": "~0.4.0" - }, - "engines": { - "node": ">=0.6", - "npm": "1" - }, - "scripts": { - "test": "node ./test/run.js && tap test/tap/*.js", - "tap": "tap test/tap/*.js", - "prepublish": "node bin/npm-cli.js prune ; rm -rf test/*/*/node_modules ; make -j4 doc", - "dumpconf": "env | grep npm | sort | uniq", - "echo": "node bin/npm-cli.js" - }, - "licenses": [ - { - "type": "MIT +no-false-attribs", - "url": "https://github.com/isaacs/npm/raw/master/LICENSE" - } - ] -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/read-package-json.json b/node_modules/normalize-package-data/test/fixtures/read-package-json.json deleted file mode 100644 index 7d0dae1..0000000 --- a/node_modules/normalize-package-data/test/fixtures/read-package-json.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "read-package-json", - "version": "0.1.1", - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "description": "The thing npm uses to read package.json files with semantics and defaults and validation", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/read-package-json.git" - }, - "license": "MIT", - "main": "read-json.js", - "scripts": { - "test": "tap test/*.js" - }, - "dependencies": { - "glob": "~3.1.9", - "lru-cache": "~1.1.0", - "semver": "~1.0.14", - "slide": "~1.1.3" - }, - "devDependencies": { - "tap": "~0.2.5" - }, - "optionalDependencies": { - "npmlog": "0", - "graceful-fs": "~1.1.8" - } -} diff --git a/node_modules/normalize-package-data/test/fixtures/request.json b/node_modules/normalize-package-data/test/fixtures/request.json deleted file mode 100644 index 24189a5..0000000 --- a/node_modules/normalize-package-data/test/fixtures/request.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "request", - "description": "Simplified HTTP request client.", - "tags": [ - "http", - "simple", - "util", - "utility" - ], - "version": "2.16.7", - "author": "Mikeal Rogers ", - "repository": { - "type": "git", - "url": "http://github.com/mikeal/request.git" - }, - "bugs": { - "url": "http://github.com/mikeal/request/issues" - }, - "engines": [ - "node >= 0.8.0" - ], - "main": "index.js", - "dependencies": { - "form-data": "~0.0.3", - "mime": "~1.2.7", - "hawk": "~0.10.2", - "node-uuid": "~1.4.0", - "cookie-jar": "~0.2.0", - "aws-sign": "~0.2.0", - "oauth-sign": "~0.2.0", - "forever-agent": "~0.2.0", - "tunnel-agent": "~0.2.0", - "json-stringify-safe": "~3.0.0", - "qs": "~0.5.4" - }, - "scripts": { - "test": "node tests/run.js" - } -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/fixtures/underscore.json b/node_modules/normalize-package-data/test/fixtures/underscore.json deleted file mode 100644 index bfc8b3d..0000000 --- a/node_modules/normalize-package-data/test/fixtures/underscore.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name" : "underscore", - "description" : "JavaScript's functional programming helper library.", - "homepage" : "http://underscorejs.org", - "keywords" : ["util", "functional", "server", "client", "browser"], - "author" : "Jeremy Ashkenas ", - "repository" : {"type": "git", "url": "git://github.com/documentcloud/underscore.git"}, - "main" : "underscore.js", - "version" : "1.4.4", - "devDependencies": { - "phantomjs": "1.9.0-1" - }, - "scripts": { - "test": "phantomjs test/vendor/runner.js test/index.html?noglobals=true" - }, - "license" : "MIT" -} \ No newline at end of file diff --git a/node_modules/normalize-package-data/test/github-urls.js b/node_modules/normalize-package-data/test/github-urls.js deleted file mode 100644 index da78160..0000000 --- a/node_modules/normalize-package-data/test/github-urls.js +++ /dev/null @@ -1,44 +0,0 @@ -var tap = require("tap") -var normalize = require("../lib/normalize") -var fs = require("fs") -var async = require("async") - -var data -var warn - -tap.test("consistent normalization", function(t) { - var entries = [ - 'read-package-json.json', - 'http-server.json', - "movefile.json", - "node-module_exist.json" - ] - var verifyConsistency = function(entryName, next) { - warn = function(msg) { - // t.equal("",msg) // uncomment to have some kind of logging of warnings - } - var filename = __dirname + "/fixtures/" + entryName - fs.readFile(filename, function(err, contents) { - if (err) return next(err) - data = JSON.parse(contents.toString()) - normalize(data, warn) - if(data.name == "node-module_exist") { - t.same(data.bugs.url, "https://gist.github.com/3135914") - } - if(data.name == "read-package-json") { - t.same(data.bugs.url, "https://github.com/isaacs/read-package-json/issues") - } - if(data.name == "http-server") { - t.same(data.bugs.url, "https://github.com/nodejitsu/http-server/issues") - } - if(data.name == "movefile") { - t.same(data.bugs.url, "https://github.com/yazgazan/movefile/issues") - } - next(null) - }) // fs.readFile - } // verifyConsistency - async.forEach(entries, verifyConsistency, function(err) { - if (err) throw err - t.end() - }) -}) // tap.test diff --git a/node_modules/normalize-package-data/test/mixedcase-names.js b/node_modules/normalize-package-data/test/mixedcase-names.js deleted file mode 100644 index a62b699..0000000 --- a/node_modules/normalize-package-data/test/mixedcase-names.js +++ /dev/null @@ -1,32 +0,0 @@ -var test = require('tap').test - -var normalize = require('../') -var fixer = normalize.fixer - -test('mixedcase', function (t) { - t.doesNotThrow(function () { - fixer.fixNameField({name: 'foo'}, true) - }) - - t.doesNotThrow(function () { - fixer.fixNameField({name: 'foo'}, false) - }) - - t.doesNotThrow(function () { - fixer.fixNameField({name: 'foo'}) - }) - - t.throws(function () { - fixer.fixNameField({name: 'Foo'}, true) - }, new Error('Invalid name: "Foo"'), 'should throw an error') - - t.throws(function () { - fixer.fixNameField({name: 'Foo'}, {strict: true}) - }, new Error('Invalid name: "Foo"'), 'should throw an error') - - t.doesNotThrow(function () { - fixer.fixNameField({name: 'Foo'}, {strict: true, allowLegacyCase: true}) - }) - - t.end() -}) diff --git a/node_modules/normalize-package-data/test/normalize.js b/node_modules/normalize-package-data/test/normalize.js deleted file mode 100644 index 3926938..0000000 --- a/node_modules/normalize-package-data/test/normalize.js +++ /dev/null @@ -1,246 +0,0 @@ -var tap = require("tap") -var fs = require("fs") -var path = require("path") - -var normalize = require("../lib/normalize") -var warningMessages = require("../lib/warning_messages.json") -var safeFormat = require("../lib/safe_format") - -var rpjPath = path.resolve(__dirname,"./fixtures/read-package-json.json") - -tap.test("normalize some package data", function(t) { - var packageData = require(rpjPath) - var warnings = [] - normalize(packageData, function(warning) { - warnings.push(warning) - }) - // there's no readme data in this particular object - t.equal( warnings.length, 1, "There's exactly one warning.") - fs.readFile(rpjPath, function(err, data) { - if(err) throw err - // Various changes have been made - t.notEqual(packageData, JSON.parse(data), "Output is different from input.") - t.end() - }) -}) - -tap.test("runs without passing warning function", function(t) { - var packageData = require(rpjPath) - fs.readFile(rpjPath, function(err, data) { - if(err) throw err - normalize(JSON.parse(data)) - t.ok(true, "If you read this, this means I'm still alive.") - t.end() - }) -}) - -tap.test("empty object", function(t) { - var packageData = {} - var expect = - { name: '', - version: '', - readme: 'ERROR: No README data found!', - _id: '@' } - - var warnings = [] - function warn(m) { - warnings.push(m) - } - normalize(packageData, warn) - t.same(packageData, expect) - t.same(warnings, [ - warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.missingReadme, - warningMessages.missingLicense - ]) - t.end() -}) - -tap.test("core module name", function(t) { - var warnings = [] - function warn(m) { - warnings.push(m) - } - var a - normalize(a={ - name: "http", - readme: "read yourself how about", - homepage: 123, - bugs: "what is this i don't even", - repository: "Hello." - }, warn) - - var expect = [ - safeFormat(warningMessages.conflictingName, 'http'), - warningMessages.nonEmailUrlBugsString, - warningMessages.emptyNormalizedBugs, - warningMessages.nonUrlHomepage, - warningMessages.missingLicense - ] - t.same(warnings, expect) - t.end() -}) - -tap.test("urls required", function(t) { - var warnings = [] - function warn(w) { - warnings.push(w) - } - normalize({ - bugs: { - url: "/1", - email: "not an email address" - } - }, warn) - var a - normalize(a={ - readme: "read yourself how about", - homepage: 123, - bugs: "what is this i don't even", - repository: "Hello." - }, warn) - - console.error(a) - - var expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.nonUrlBugsUrlField, - warningMessages.nonEmailBugsEmailField, - warningMessages.emptyNormalizedBugs, - warningMessages.missingReadme, - warningMessages.missingLicense, - warningMessages.nonEmailUrlBugsString, - warningMessages.emptyNormalizedBugs, - warningMessages.nonUrlHomepage, - warningMessages.missingLicense] - t.same(warnings, expect) - t.end() -}) - -tap.test("homepage field must start with a protocol.", function(t) { - var warnings = [] - function warn(w) { - warnings.push(w) - } - var a - normalize(a={ - homepage: 'example.org' - }, warn) - - console.error(a) - - var expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.missingReadme, - warningMessages.missingProtocolHomepage, - warningMessages.missingLicense] - t.same(warnings, expect) - t.same(a.homepage, 'http://example.org') - t.end() -}) - -tap.test("license field should be a valid SPDX expression", function(t) { - var warnings = [] - function warn(w) { - warnings.push(w) - } - var a - normalize(a={ - license: 'Apache 2' - }, warn) - - console.error(a) - - var expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.missingReadme, - warningMessages.invalidLicense] - t.same(warnings, expect) - t.end() -}) - -tap.test("gist bugs url", function(t) { - var d = { - repository: "git@gist.github.com:123456.git" - } - normalize(d) - t.same(d.repository, { type: 'git', url: 'git+ssh://git@gist.github.com/123456.git' }) - t.same(d.bugs, { url: 'https://gist.github.com/123456' }) - t.end(); -}); - -tap.test("singularize repositories", function(t) { - var d = {repositories:["git@gist.github.com:123456.git"]} - normalize(d) - t.same(d.repository, { type: 'git', url: 'git+ssh://git@gist.github.com/123456.git' }) - t.end() -}); - -tap.test("treat visionmedia/express as github repo", function(t) { - var d = {repository: {type: "git", url: "visionmedia/express"}} - normalize(d) - t.same(d.repository, { type: "git", url: "git+https://github.com/visionmedia/express.git" }) - t.end() -}); - -tap.test("treat isaacs/node-graceful-fs as github repo", function(t) { - var d = {repository: {type: "git", url: "isaacs/node-graceful-fs"}} - normalize(d) - t.same(d.repository, { type: "git", url: "git+https://github.com/isaacs/node-graceful-fs.git" }) - t.end() -}); - -tap.test("homepage field will set to github url if repository is a github repo", function(t) { - var a - normalize(a={ - repository: { type: "git", url: "https://github.com/isaacs/node-graceful-fs" } - }) - t.same(a.homepage, 'https://github.com/isaacs/node-graceful-fs#readme') - t.end() -}) - -tap.test("homepage field will set to github gist url if repository is a gist", function(t) { - var a - normalize(a={ - repository: { type: "git", url: "git@gist.github.com:123456.git" } - }) - t.same(a.homepage, 'https://gist.github.com/123456') - t.end() -}) - -tap.test("homepage field will set to github gist url if repository is a shorthand reference", function(t) { - var a - normalize(a={ - repository: { type: "git", url: "sindresorhus/chalk" } - }) - t.same(a.homepage, 'https://github.com/sindresorhus/chalk#readme') - t.end() -}) - -tap.test("don't mangle github shortcuts in dependencies", function(t) { - var d = {dependencies: {"node-graceful-fs": "isaacs/node-graceful-fs"}} - normalize(d) - t.same(d.dependencies, {"node-graceful-fs": "github:isaacs/node-graceful-fs" }) - t.end() -}); - -tap.test("deprecation warning for array in dependencies fields", function(t) { - var a - var warnings = [] - function warn(w) { - warnings.push(w) - } - normalize(a={ - dependencies: [], - devDependencies: [], - optionalDependencies: [] - }, warn) - t.ok(~warnings.indexOf(safeFormat(warningMessages.deprecatedArrayDependencies, 'dependencies')), "deprecation warning") - t.ok(~warnings.indexOf(safeFormat(warningMessages.deprecatedArrayDependencies, 'devDependencies')), "deprecation warning") - t.ok(~warnings.indexOf(safeFormat(warningMessages.deprecatedArrayDependencies, 'optionalDependencies')), "deprecation warning") - t.end() -}) diff --git a/node_modules/normalize-package-data/test/normalize.js~ b/node_modules/normalize-package-data/test/normalize.js~ deleted file mode 100644 index de6f1ce..0000000 --- a/node_modules/normalize-package-data/test/normalize.js~ +++ /dev/null @@ -1,253 +0,0 @@ -var tap = require("tap") -var fs = require("fs") -var path = require("path") - -var globals = Object.keys(global) - -var normalize = require("../lib/normalize") -var warningMessages = require("../lib/warning_messages.json") -var safeFormat = require("../lib/safe_format") - -var rpjPath = path.resolve(__dirname,"./fixtures/read-package-json.json") - -tap.test("normalize some package data", function(t) { - var packageData = require(rpjPath) - var warnings = [] - normalize(packageData, function(warning) { - warnings.push(warning) - }) - // there's no readme data in this particular object - t.equal( warnings.length, 1, "There's exactly one warning.") - fs.readFile(rpjPath, function(err, data) { - if(err) throw err - // Various changes have been made - t.notEqual(packageData, JSON.parse(data), "Output is different from input.") - t.end() - }) -}) - -tap.test("runs without passing warning function", function(t) { - var packageData = require(rpjPath) - fs.readFile(rpjPath, function(err, data) { - if(err) throw err - normalize(JSON.parse(data)) - t.ok(true, "If you read this, this means I'm still alive.") - t.end() - }) -}) - -tap.test("empty object", function(t) { - var packageData = {} - var expect = - { name: '', - version: '', - readme: 'ERROR: No README data found!', - _id: '@' } - - var warnings = [] - function warn(m) { - warnings.push(m) - } - normalize(packageData, warn) - t.same(packageData, expect) - t.same(warnings, [ - warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.missingReadme, - warningMessages.missingLicense - ]) - t.end() -}) - -tap.test("core module name", function(t) { - var warnings = [] - function warn(m) { - warnings.push(m) - } - var a - normalize(a={ - name: "http", - readme: "read yourself how about", - homepage: 123, - bugs: "what is this i don't even", - repository: "Hello." - }, warn) - - var expect = [ - safeFormat(warningMessages.conflictingName, 'http'), - warningMessages.nonEmailUrlBugsString, - warningMessages.emptyNormalizedBugs, - warningMessages.nonUrlHomepage, - warningMessages.missingLicense - ] - t.same(warnings, expect) - t.end() -}) - -tap.test("urls required", function(t) { - var warnings = [] - function warn(w) { - warnings.push(w) - } - normalize({ - bugs: { - url: "/1", - email: "not an email address" - } - }, warn) - var a - normalize(a={ - readme: "read yourself how about", - homepage: 123, - bugs: "what is this i don't even", - repository: "Hello." - }, warn) - - console.error(a) - - var expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.nonUrlBugsUrlField, - warningMessages.nonEmailBugsEmailField, - warningMessages.emptyNormalizedBugs, - warningMessages.missingReadme, - warningMessages.missingLicense, - warningMessages.nonEmailUrlBugsString, - warningMessages.emptyNormalizedBugs, - warningMessages.nonUrlHomepage, - warningMessages.missingLicense] - t.same(warnings, expect) - t.end() -}) - -tap.test("homepage field must start with a protocol.", function(t) { - var warnings = [] - function warn(w) { - warnings.push(w) - } - var a - normalize(a={ - homepage: 'example.org' - }, warn) - - console.error(a) - - var expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.missingReadme, - warningMessages.missingProtocolHomepage, - warningMessages.missingLicense] - t.same(warnings, expect) - t.same(a.homepage, 'http://example.org') - t.end() -}) - -tap.test("license field should be a valid SPDX expression", function(t) { - var warnings = [] - function warn(w) { - warnings.push(w) - } - var a - normalize(a={ - license: 'Apache 2' - }, warn) - - console.error(a) - - var expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.missingReadme, - warningMessages.invalidLicense] - t.same(warnings, expect) - t.end() -}) - -tap.test("gist bugs url", function(t) { - var d = { - repository: "git@gist.github.com:123456.git" - } - normalize(d) - t.same(d.repository, { type: 'git', url: 'git+ssh://git@gist.github.com/123456.git' }) - t.same(d.bugs, { url: 'https://gist.github.com/123456' }) - t.end(); -}); - -tap.test("singularize repositories", function(t) { - var d = {repositories:["git@gist.github.com:123456.git"]} - normalize(d) - t.same(d.repository, { type: 'git', url: 'git+ssh://git@gist.github.com/123456.git' }) - t.end() -}); - -tap.test("treat visionmedia/express as github repo", function(t) { - var d = {repository: {type: "git", url: "visionmedia/express"}} - normalize(d) - t.same(d.repository, { type: "git", url: "git+https://github.com/visionmedia/express.git" }) - t.end() -}); - -tap.test("treat isaacs/node-graceful-fs as github repo", function(t) { - var d = {repository: {type: "git", url: "isaacs/node-graceful-fs"}} - normalize(d) - t.same(d.repository, { type: "git", url: "git+https://github.com/isaacs/node-graceful-fs.git" }) - t.end() -}); - -tap.test("homepage field will set to github url if repository is a github repo", function(t) { - var a - normalize(a={ - repository: { type: "git", url: "https://github.com/isaacs/node-graceful-fs" } - }) - t.same(a.homepage, 'https://github.com/isaacs/node-graceful-fs#readme') - t.end() -}) - -tap.test("homepage field will set to github gist url if repository is a gist", function(t) { - var a - normalize(a={ - repository: { type: "git", url: "git@gist.github.com:123456.git" } - }) - t.same(a.homepage, 'https://gist.github.com/123456') - t.end() -}) - -tap.test("homepage field will set to github gist url if repository is a shorthand reference", function(t) { - var a - normalize(a={ - repository: { type: "git", url: "sindresorhus/chalk" } - }) - t.same(a.homepage, 'https://github.com/sindresorhus/chalk#readme') - t.end() -}) - -tap.test("don't mangle github shortcuts in dependencies", function(t) { - var d = {dependencies: {"node-graceful-fs": "isaacs/node-graceful-fs"}} - normalize(d) - t.same(d.dependencies, {"node-graceful-fs": "github:isaacs/node-graceful-fs" }) - t.end() -}); - -tap.test("deprecation warning for array in dependencies fields", function(t) { - var a - var warnings = [] - function warn(w) { - warnings.push(w) - } - normalize(a={ - dependencies: [], - devDependencies: [], - optionalDependencies: [] - }, warn) - t.ok(~warnings.indexOf(safeFormat(warningMessages.deprecatedArrayDependencies, 'dependencies')), "deprecation warning") - t.ok(~warnings.indexOf(safeFormat(warningMessages.deprecatedArrayDependencies, 'devDependencies')), "deprecation warning") - t.ok(~warnings.indexOf(safeFormat(warningMessages.deprecatedArrayDependencies, 'optionalDependencies')), "deprecation warning") - t.end() -}) - -tap.test('no new globals', function(t) { - t.same(Object.keys(global), globals) - t.end() -}) diff --git a/node_modules/normalize-package-data/test/scoped.js b/node_modules/normalize-package-data/test/scoped.js deleted file mode 100644 index 82d2a54..0000000 --- a/node_modules/normalize-package-data/test/scoped.js +++ /dev/null @@ -1,59 +0,0 @@ -var test = require("tap").test - -var fixNameField = require("../lib/fixer.js").fixNameField -var fixBinField = require("../lib/fixer.js").fixBinField - -test("a simple scoped module has a valid name", function (t) { - var data = {name : "@org/package"} - fixNameField(data, false) - t.equal(data.name, "@org/package", "name was unchanged") - - t.end() -}) - -test("'org@package' is not a valid name", function (t) { - t.throws(function () { - fixNameField({name : "org@package"}, false) - }, "blows up as expected") - - t.end() -}) - -test("'org=package' is not a valid name", function (t) { - t.throws(function () { - fixNameField({name : "org=package"}, false) - }, "blows up as expected") - - t.end() -}) - -test("'@org=sub/package' is not a valid name", function (t) { - t.throws(function () { - fixNameField({name : "@org=sub/package"}, false) - }, "blows up as expected") - - t.end() -}) - -test("'@org/' is not a valid name", function (t) { - t.throws(function () { - fixNameField({name : "@org/"}, false) - }, "blows up as expected") - - t.end() -}) - -test("'@/package' is not a valid name", function (t) { - t.throws(function () { - fixNameField({name : "@/package"}, false) - }, "blows up as expected") - - t.end() -}) - -test("name='@org/package', bin='bin.js' is bin={package:'bin.js'}", function (t) { - var obj = {name : "@org/package", bin: "bin.js"} - fixBinField(obj) - t.isDeeply(obj.bin, {package: 'bin.js'}) - t.end() -}) diff --git a/node_modules/normalize-package-data/test/scripts.js b/node_modules/normalize-package-data/test/scripts.js deleted file mode 100644 index 473596e..0000000 --- a/node_modules/normalize-package-data/test/scripts.js +++ /dev/null @@ -1,24 +0,0 @@ -var tap = require("tap") -var normalize = require("../lib/normalize") -var path = require("path") -var fs = require("fs") - -tap.test("bad scripts", function (t) { - var p = path.resolve(__dirname, "./fixtures/badscripts.json") - fs.readFile (p, function (err, contents) { - if (err) throw err - var originalData = JSON.parse(contents.toString()) - var data = JSON.parse(contents.toString()) - normalize(data) - t.ok(data) - verifyFields(t, data, originalData) - t.end() - }) -}) - -function verifyFields (t, normalized, original) { - t.equal(normalized.version, original.version, "Version field stays same") - t.equal(normalized.name, original.name, "Name stays the same.") - // scripts is not an object, so it should be deleted - t.notOk(normalized.scripts) -} diff --git a/node_modules/normalize-package-data/test/strict.js b/node_modules/normalize-package-data/test/strict.js deleted file mode 100644 index 40e09dc..0000000 --- a/node_modules/normalize-package-data/test/strict.js +++ /dev/null @@ -1,54 +0,0 @@ -var test = require("tap").test - -var normalize = require("../") - -test("strict", function(t) { - var threw - - try { - threw = false - normalize({name: "X"}, true) - } catch (er) { - threw = true - t.equal(er.message, 'Invalid name: "X"') - } finally { - t.equal(threw, true) - } - - try { - threw = false - normalize({name:" x "}, true) - } catch (er) { - threw = true - t.equal(er.message, 'Invalid name: " x "') - } finally { - t.equal(threw, true) - } - - try { - threw = false - normalize({name:"x",version:"01.02.03"}, true) - } catch (er) { - threw = true - t.equal(er.message, 'Invalid version: "01.02.03"') - } finally { - t.equal(threw, true) - } - - // these should not throw - var slob = {name:" X ",version:"01.02.03",dependencies:{ - y:">01.02.03", - z:"! 99 $$ASFJ(Aawenf90awenf as;naw.3j3qnraw || an elephant" - }} - normalize(slob, false) - t.same(slob, - { name: 'X', - version: '1.2.3', - dependencies: - { y: '>01.02.03', - z: '! 99 $$ASFJ(Aawenf90awenf as;naw.3j3qnraw || an elephant' }, - readme: 'ERROR: No README data found!', - _id: 'X@1.2.3' }) - - t.end() -}) diff --git a/node_modules/normalize-package-data/test/typo.js b/node_modules/normalize-package-data/test/typo.js deleted file mode 100644 index 0cd3eb4..0000000 --- a/node_modules/normalize-package-data/test/typo.js +++ /dev/null @@ -1,133 +0,0 @@ -var test = require('tap').test - -var normalize = require('../') -var typos = require('../lib/typos.json') -var warningMessages = require("../lib/warning_messages.json") -var safeFormat = require("../lib/safe_format") - -test('typos', function(t) { - var warnings = [] - function warn(m) { - warnings.push(m) - } - - var typoMessage = safeFormat.bind(undefined, warningMessages.typo) - - var expect = - [ warningMessages.missingRepository, - warningMessages.missingLicense, - typoMessage('dependancies', 'dependencies'), - typoMessage('dependecies', 'dependencies'), - typoMessage('depdenencies', 'dependencies'), - typoMessage('devEependencies', 'devDependencies'), - typoMessage('depends', 'dependencies'), - typoMessage('dev-dependencies', 'devDependencies'), - typoMessage('devDependences', 'devDependencies'), - typoMessage('devDepenencies', 'devDependencies'), - typoMessage('devdependencies', 'devDependencies'), - typoMessage('repostitory', 'repository'), - typoMessage('repo', 'repository'), - typoMessage('prefereGlobal', 'preferGlobal'), - typoMessage('hompage', 'homepage'), - typoMessage('hampage', 'homepage'), - typoMessage('autohr', 'author'), - typoMessage('autor', 'author'), - typoMessage('contributers', 'contributors'), - typoMessage('publicationConfig', 'publishConfig') ] - - normalize({"dependancies": "dependencies" - ,"dependecies": "dependencies" - ,"depdenencies": "dependencies" - ,"devEependencies": "devDependencies" - ,"depends": "dependencies" - ,"dev-dependencies": "devDependencies" - ,"devDependences": "devDependencies" - ,"devDepenencies": "devDependencies" - ,"devdependencies": "devDependencies" - ,"repostitory": "repository" - ,"repo": "repository" - ,"prefereGlobal": "preferGlobal" - ,"hompage": "homepage" - ,"hampage": "homepage" - ,"autohr": "author" - ,"autor": "author" - ,"contributers": "contributors" - ,"publicationConfig": "publishConfig" - ,readme:"asdf" - ,name:"name" - ,version:"1.2.5"}, warn) - - t.same(warnings, expect) - - warnings.length = 0 - var expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - typoMessage("bugs['web']", "bugs['url']"), - typoMessage("bugs['name']", "bugs['url']"), - warningMessages.nonUrlBugsUrlField, - warningMessages.emptyNormalizedBugs, - warningMessages.missingReadme, - warningMessages.missingLicense] - - normalize({name:"name" - ,version:"1.2.5" - ,bugs:{web:"url",name:"url"}}, warn) - - t.same(warnings, expect) - - warnings.length = 0 - var expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.missingReadme, - warningMessages.missingLicense, - typoMessage('script', 'scripts') ] - - normalize({name:"name" - ,version:"1.2.5" - ,script:{server:"start",tests:"test"}}, warn) - - t.same(warnings, expect) - - warnings.length = 0 - expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - typoMessage("scripts['server']", "scripts['start']"), - typoMessage("scripts['tests']", "scripts['test']"), - warningMessages.missingReadme, - warningMessages.missingLicense] - - normalize({name:"name" - ,version:"1.2.5" - ,scripts:{server:"start",tests:"test"}}, warn) - - t.same(warnings, expect) - - warnings.length = 0 - expect = - [ warningMessages.missingDescription, - warningMessages.missingRepository, - warningMessages.missingReadme, - warningMessages.missingLicense] - - normalize({name:"name" - ,version:"1.2.5" - ,scripts:{server:"start",tests:"test" - ,start:"start",test:"test"}}, warn) - - t.same(warnings, expect) - - warnings.length = 0 - expect = [] - - normalize({private: true - ,name:"name" - ,version:"1.2.5" - ,scripts:{server:"start",tests:"test"}}, warn) - - t.same(warnings, expect) - - t.end(); -}) diff --git a/node_modules/normalize-path/LICENSE b/node_modules/normalize-path/LICENSE deleted file mode 100644 index fa30c4c..0000000 --- a/node_modules/normalize-path/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/normalize-path/README.md b/node_modules/normalize-path/README.md deleted file mode 100644 index e75d4bd..0000000 --- a/node_modules/normalize-path/README.md +++ /dev/null @@ -1,75 +0,0 @@ -# normalize-path [![NPM version](https://badge.fury.io/js/normalize-path.svg)](http://badge.fury.io/js/normalize-path) [![Build Status](https://travis-ci.org/jonschlinkert/normalize-path.svg)](https://travis-ci.org/jonschlinkert/normalize-path) - -> Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes. - -## Install - -Install with [npm](https://www.npmjs.com/) - -```sh -$ npm i normalize-path --save -``` - -## Usage - -```js -var normalize = require('normalize-path'); - -normalize('\\foo\\bar\\baz\\'); -//=> '/foo/bar/baz' - -normalize('./foo/bar/baz/'); -//=> './foo/bar/baz' -``` - -Pass `false` as the last argument to **not** strip trailing slashes: - -```js -normalize('./foo/bar/baz/', false); -//=> './foo/bar/baz/' - -normalize('foo\\bar\\baz\\', false); -//=> 'foo/bar/baz/' -``` - -## Related - -Other useful libraries for working with paths in node.js: - -* [contains-path](https://www.npmjs.com/package/contains-path): Return true if a file path contains the given path. | [homepage](https://github.com/jonschlinkert/contains-path) -* [ends-with](https://www.npmjs.com/package/ends-with): Returns `true` if the given `string` or `array` ends with `suffix` using strict equality for… [more](https://www.npmjs.com/package/ends-with) | [homepage](https://github.com/jonschlinkert/ends-with) -* [is-absolute](https://www.npmjs.com/package/is-absolute): Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute) -* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative) -* [parse-filepath](https://www.npmjs.com/package/parse-filepath): Parse a filepath into an object. Falls back on the native node.js `path.parse` method if… [more](https://www.npmjs.com/package/parse-filepath) | [homepage](https://github.com/jonschlinkert/parse-filepath) -* [path-ends-with](https://www.npmjs.com/package/path-ends-with): Return `true` if a file path ends with the given string/suffix. | [homepage](https://github.com/jonschlinkert/path-ends-with) -* [path-segments](https://www.npmjs.com/package/path-segments): Get n specific segments of a file path, e.g. first 2, last 3, etc. | [homepage](https://github.com/jonschlinkert/path-segments) -* [rewrite-ext](https://www.npmjs.com/package/rewrite-ext): Automatically re-write the destination extension of a filepath based on the source extension. e.g … [more](https://www.npmjs.com/package/rewrite-ext) | [homepage](https://github.com/jonschlinkert/rewrite-ext) -* [unixify](https://www.npmjs.com/package/unixify): Convert Windows file paths to unix paths. | [homepage](https://github.com/jonschlinkert/unixify) - -## 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/normalize-path/issues/new). - -## Author - -**Jon Schlinkert** - -+ [github/jonschlinkert](https://github.com/jonschlinkert) -+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2015 Jon Schlinkert -Released under the MIT license. - -*** - -_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 17, 2015._ \ No newline at end of file diff --git a/node_modules/normalize-path/index.js b/node_modules/normalize-path/index.js deleted file mode 100644 index 137f601..0000000 --- a/node_modules/normalize-path/index.js +++ /dev/null @@ -1,17 +0,0 @@ -/*! - * normalize-path - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License - */ - -module.exports = function normalizePath(str, stripTrailing) { - if (typeof str !== 'string') { - throw new TypeError('expected a string'); - } - str = str.replace(/[\\\/]+/g, '/'); - if (stripTrailing !== false) { - str = str.replace(/\/$/, ''); - } - return str; -}; diff --git a/node_modules/normalize-path/package.json b/node_modules/normalize-path/package.json deleted file mode 100644 index 8c1a69c..0000000 --- a/node_modules/normalize-path/package.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "normalize-path@^2.0.1", - "scope": null, - "escapedName": "normalize-path", - "name": "normalize-path", - "rawSpec": "^2.0.1", - "spec": ">=2.0.1 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/micromatch" - ] - ], - "_from": "normalize-path@>=2.0.1 <3.0.0", - "_id": "normalize-path@2.0.1", - "_inCache": true, - "_location": "/normalize-path", - "_nodeVersion": "5.0.0", - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.3.6", - "_phantomChildren": {}, - "_requested": { - "raw": "normalize-path@^2.0.1", - "scope": null, - "escapedName": "normalize-path", - "name": "normalize-path", - "rawSpec": "^2.0.1", - "spec": ">=2.0.1 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/micromatch" - ], - "_resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz", - "_shasum": "47886ac1662760d4261b7d979d241709d3ce3f7a", - "_shrinkwrap": null, - "_spec": "normalize-path@^2.0.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/normalize-path/issues" - }, - "dependencies": {}, - "description": "Normalize file path slashes to be unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes.", - "devDependencies": { - "benchmarked": "^0.1.1", - "minimist": "^1.2.0", - "mocha": "*" - }, - "directories": {}, - "dist": { - "shasum": "47886ac1662760d4261b7d979d241709d3ce3f7a", - "tarball": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "ca536e0e8755d3ed04f3ba4d21cc9e122e0f749f", - "homepage": "https://github.com/jonschlinkert/normalize-path", - "keywords": [ - "backslash", - "file", - "filepath", - "fix", - "forward", - "fp", - "fs", - "normalize", - "path", - "slash", - "slashes", - "trailing", - "unix", - "urix" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - }, - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "normalize-path", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/normalize-path.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "related": { - "list": [ - "rewrite-ext", - "contains-path", - "ends-with", - "path-ends-with", - "path-segments", - "is-absolute", - "is-relative", - "parse-filepath", - "unixify" - ], - "description": "Other useful libraries for working with paths in node.js:" - } - }, - "version": "2.0.1" -} diff --git a/node_modules/normalize-range/index.js b/node_modules/normalize-range/index.js deleted file mode 100644 index d5a2ea8..0000000 --- a/node_modules/normalize-range/index.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict'; -module.exports = { - wrap: wrapRange, - limit: limitRange, - validate: validateRange, - test: testRange, - curry: curry, - name: name -}; - -function wrapRange(min, max, value) { - var maxLessMin = max - min; - return ((value - min) % maxLessMin + maxLessMin) % maxLessMin + min; -} - -function limitRange(min, max, value) { - return Math.max(min, Math.min(max, value)); -} - -function validateRange(min, max, value, minExclusive, maxExclusive) { - if (!testRange(min, max, value, minExclusive, maxExclusive)) { - throw new Error(value + ' is outside of range [' + min + ',' + max + ')'); - } - return value; -} - -function testRange(min, max, value, minExclusive, maxExclusive) { - return !( - value < min || - value > max || - (maxExclusive && (value === max)) || - (minExclusive && (value === min)) - ); -} - -function name(min, max, minExcl, maxExcl) { - return (minExcl ? '(' : '[') + min + ',' + max + (maxExcl ? ')' : ']'); -} - -function curry(min, max, minExclusive, maxExclusive) { - var boundNameFn = name.bind(null, min, max, minExclusive, maxExclusive); - return { - wrap: wrapRange.bind(null, min, max), - limit: limitRange.bind(null, min, max), - validate: function(value) { - return validateRange(min, max, value, minExclusive, maxExclusive); - }, - test: function(value) { - return testRange(min, max, value, minExclusive, maxExclusive); - }, - toString: boundNameFn, - name: boundNameFn - }; -} diff --git a/node_modules/normalize-range/license b/node_modules/normalize-range/license deleted file mode 100644 index ad5d021..0000000 --- a/node_modules/normalize-range/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) James Talmage (github.com/jamestalmage) - -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/normalize-range/package.json b/node_modules/normalize-range/package.json deleted file mode 100644 index f2488be..0000000 --- a/node_modules/normalize-range/package.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "normalize-range@^0.1.2", - "scope": null, - "escapedName": "normalize-range", - "name": "normalize-range", - "rawSpec": "^0.1.2", - "spec": ">=0.1.2 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/autoprefixer" - ] - ], - "_from": "normalize-range@>=0.1.2 <0.2.0", - "_id": "normalize-range@0.1.2", - "_inCache": true, - "_location": "/normalize-range", - "_nodeVersion": "0.12.7", - "_npmUser": { - "name": "james.talmage", - "email": "james@talmage.io" - }, - "_npmVersion": "2.14.2", - "_phantomChildren": {}, - "_requested": { - "raw": "normalize-range@^0.1.2", - "scope": null, - "escapedName": "normalize-range", - "name": "normalize-range", - "rawSpec": "^0.1.2", - "spec": ">=0.1.2 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/autoprefixer" - ], - "_resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "_shasum": "2d10c06bdfd312ea9777695a4d28439456b75942", - "_shrinkwrap": null, - "_spec": "normalize-range@^0.1.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/autoprefixer", - "author": { - "name": "James Talmage", - "email": "james@talmage.io", - "url": "github.com/jamestalmage" - }, - "bugs": { - "url": "https://github.com/jamestalmage/normalize-range/issues" - }, - "dependencies": {}, - "description": "Utility for normalizing a numeric range, with a wrapping function useful for polar coordinates", - "devDependencies": { - "almost-equal": "^1.0.0", - "codeclimate-test-reporter": "^0.1.0", - "coveralls": "^2.11.2", - "istanbul": "^0.3.17", - "jscs": "^2.1.1", - "jshint": "^2.8.0", - "jshint-stylish": "^2.0.1", - "mocha": "^2.2.5", - "stringify-pi": "0.0.3" - }, - "directories": {}, - "dist": { - "shasum": "2d10c06bdfd312ea9777695a4d28439456b75942", - "tarball": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "4add1b491840c17c80cd0ca8145505d663955861", - "homepage": "https://github.com/jamestalmage/normalize-range#readme", - "keywords": [ - "range", - "normalize", - "utility", - "angle", - "degrees", - "polar" - ], - "license": "MIT", - "maintainers": [ - { - "name": "james.talmage", - "email": "james@talmage.io" - } - ], - "name": "normalize-range", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jamestalmage/normalize-range.git" - }, - "scripts": { - "cover": "istanbul cover ./node_modules/.bin/_mocha", - "debug": "mocha", - "lint": "jshint --reporter=node_modules/jshint-stylish *.js test/*.js", - "style": "jscs *.js ./**/*.js && jscs ./test/** --config=./test/.jscsrc", - "test": "npm run cover && npm run lint && npm run style", - "watch": "mocha -w" - }, - "version": "0.1.2" -} diff --git a/node_modules/normalize-range/readme.md b/node_modules/normalize-range/readme.md deleted file mode 100644 index 29d84cd..0000000 --- a/node_modules/normalize-range/readme.md +++ /dev/null @@ -1,148 +0,0 @@ -# normalize-range - -Utility for normalizing a numeric range, with a wrapping function useful for polar coordinates. - -[![Build Status](https://travis-ci.org/jamestalmage/normalize-range.svg?branch=master)](https://travis-ci.org/jamestalmage/normalize-range) -[![Coverage Status](https://coveralls.io/repos/jamestalmage/normalize-range/badge.svg?branch=master&service=github)](https://coveralls.io/github/jamestalmage/normalize-range?branch=master) -[![Code Climate](https://codeclimate.com/github/jamestalmage/normalize-range/badges/gpa.svg)](https://codeclimate.com/github/jamestalmage/normalize-range) -[![Dependency Status](https://david-dm.org/jamestalmage/normalize-range.svg)](https://david-dm.org/jamestalmage/normalize-range) -[![devDependency Status](https://david-dm.org/jamestalmage/normalize-range/dev-status.svg)](https://david-dm.org/jamestalmage/normalize-range#info=devDependencies) - -[![NPM](https://nodei.co/npm/normalize-range.png)](https://nodei.co/npm/normalize-range/) - -## Usage - -```js -var nr = require('normalize-range'); - -nr.wrap(0, 360, 400); -//=> 40 - -nr.wrap(0, 360, -90); -//=> 270 - -nr.limit(0, 100, 500); -//=> 100 - -nr.limit(0, 100, -20); -//=> 0 - -// There is a convenient currying function -var wrapAngle = nr.curry(0, 360).wrap; -var limitTo10 = nr.curry(0, 10).limit; - -wrapAngle(-30); -//=> 330 -``` -## API - -### wrap(min, max, value) - -Normalizes a values that "wraps around". For example, in a polar coordinate system, 270˚ can also be -represented as -90˚. -For wrapping purposes we assume `max` is functionally equivalent to `min`, and that `wrap(max + 1) === wrap(min + 1)`. -Wrap always assumes that `min` is *inclusive*, and `max` is *exclusive*. -In other words, if `value === max` the function will wrap it, and return `min`, but `min` will not be wrapped. - -```js -nr.wrap(0, 360, 0) === 0; -nr.wrap(0, 360, 360) === 0; -nr.wrap(0, 360, 361) === 1; -nr.wrap(0, 360, -1) === 359; -``` - -You are not restricted to whole numbers, and ranges can be negative. - -```js -var π = Math.PI; -var radianRange = nr.curry(-π, π); - -redianRange.wrap(0) === 0; -nr.wrap(π) === -π; -nr.wrap(4 * π / 3) === -2 * π / 3; -``` - -### limit(min, max, value) - -Normalize the value by bringing it within the range. -If `value` is greater than `max`, `max` will be returned. -If `value` is less than `min`, `min` will be returned. -Otherwise, `value` is returned unaltered. -Both ends of this range are *inclusive*. - -### test(min, max, value, [minExclusive], [maxExclusive]) - -Returns `true` if `value` is within the range, `false` otherwise. -It defaults to `inclusive` on both ends of the range, but that can be -changed by setting `minExclusive` and/or `maxExclusive` to a truthy value. - -### validate(min, max, value, [minExclusive], [maxExclusive]) - -Returns `value` or throws an error if `value` is outside the specified range. - -### name(min, max, value, [minExclusive], [maxExclusive]) - -Returns a string representing this range in -[range notation](https://en.wikipedia.org/wiki/Interval_(mathematics)#Classification_of_intervals). - -### curry(min, max, [minExclusive], [maxExclusive]) - -Convenience method for currying all method arguments except `value`. - -```js -var angle = require('normalize-range').curry(-180, 180, false, true); - -angle.wrap(270) -//=> -90 - -angle.limit(200) -//=> 180 - -angle.test(0) -//=> true - -angle.validate(300) -//=> throws an Error - -angle.toString() // or angle.name() -//=> "[-180,180)" -``` - -#### min - -*Required* -Type: `number` - -The minimum value (inclusive) of the range. - -#### max - -*Required* -Type: `number` - -The maximum value (exclusive) of the range. - -#### value - -*Required* -Type: `number` - -The value to be normalized. - -#### returns - -Type: `number` - -The normalized value. - -## Building and Releasing - -- `npm test`: tests, linting, coverage and style checks. -- `npm run watch`: autotest mode for active development. -- `npm run debug`: run tests without coverage (istanbul can obscure line #'s) - -Release via `cut-release` tool. - -## License - -MIT © [James Talmage](http://github.com/jamestalmage) diff --git a/node_modules/num2fraction/.editorconfig b/node_modules/num2fraction/.editorconfig deleted file mode 100644 index 4a12c11..0000000 --- a/node_modules/num2fraction/.editorconfig +++ /dev/null @@ -1,14 +0,0 @@ -# editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -trim_trailing_whitespace = true -insert_final_newline = true - - -[*.md] -trim_trailing_whitespace = false diff --git a/node_modules/num2fraction/.npmignore b/node_modules/num2fraction/.npmignore deleted file mode 100644 index a8d3284..0000000 --- a/node_modules/num2fraction/.npmignore +++ /dev/null @@ -1,8 +0,0 @@ -.gitignore -.travis.yml - -node_modules/ -test/ - -gulpfile.js -Gruntfile.js diff --git a/node_modules/num2fraction/LICENSE b/node_modules/num2fraction/LICENSE deleted file mode 100644 index 9d10f01..0000000 --- a/node_modules/num2fraction/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 PostCSS - -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/num2fraction/README.md b/node_modules/num2fraction/README.md deleted file mode 100644 index aa47197..0000000 --- a/node_modules/num2fraction/README.md +++ /dev/null @@ -1,87 +0,0 @@ -# num2fraction - -[![Build Status](https://travis-ci.org/yisibl/num2fraction.svg)](https://travis-ci.org/yisibl/num2fraction) -[![NPM Downloads](https://img.shields.io/npm/dm/num2fraction.svg?style=flat)](https://www.npmjs.com/package/num2fraction) -[![NPM Version](http://img.shields.io/npm/v/num2fraction.svg?style=flat)](https://www.npmjs.com/package/num2fraction) -[![License](https://img.shields.io/npm/l/num2fraction.svg?style=flat)](http://opensource.org/licenses/MIT) - -> Converting Number to Fraction with Node.js. - -## Installation - -```console -npm install num2fraction -``` - -## Usage - -```js -var π = Math.PI -var n2f = require('num2fraction') - console.log(n2f(0)) // => 0 - console.log(n2f(.2)) // => 1/5 - console.log(n2f(1.1)) // => 11/10 - console.log(n2f(1.2)) // => 6/5 - console.log(n2f(1.3)) // => 13/10 - console.log(n2f(1.4)) // => 7/5 - console.log(n2f(1.5)) // => 3/2 - console.log(n2f(2)) // => 2/1 - console.log(n2f(2.1)) // => 21/10 - console.log(n2f(3)) // => 3/1 - console.log(n2f(2.555)) // => 511/200 - console.log(n2f(8.36)) // => 209/25 - console.log(n2f('3em')) // => 3/1 - console.log(n2f('1.5px')) // => 3/2 - console.log(n2f(7 / 9) // => 7/9 - console.log(n2f(8 / 9) // => 8/9 - console.log(n2f(512 / 999) // => 512/999 - console.log(n2f((2 * π / 3) / π) // => 2/3 - console.log(n2f((8 * 5) / (4 / 2)) // => 20/1 -``` - -## Example - -Opera [old versions](http://www.opera.com/docs/specs/presto28/css/o-vendor/) support the non-standard `-o-min-device-pixel-ratio` or `-o-max-device-pixel-ratio` in CSS media queries. - -```css -@media - only screen and (-webkit-min-device-pixel-ratio: 2), - only screen and ( min--moz-device-pixel-ratio: 2), - only screen and ( -o-min-device-pixel-ratio: 2/1), /* Opera */ - only screen and ( min-device-pixel-ratio: 2), - only screen and ( min-resolution: 192dpi), /* fallback */ - only screen and ( min-resolution: 2dppx) { - -} -``` - -## Changelog - -### v1.2.2 - -* \+ Remove: Debug log message. - -### v1.2.1 - -* \+ Fix: 0 must be converted to a string. - -### v1.2.0 - -* \+ Fix: Accomodate rounding errors. (by @jamestalmage) -* \+ Fix: The negative sign should be on numerator. (by @jamestalmage) - -### v1.1.0 - -* \+ Use more precise (not fixed) precision factor for the calculation - -### v1.0.1 - -* \- Remove "ci.testling.com" - -### V1.0.0 - -> First release. - -## License - -[MIT](LICENSE) diff --git a/node_modules/num2fraction/index.js b/node_modules/num2fraction/index.js deleted file mode 100644 index 659deca..0000000 --- a/node_modules/num2fraction/index.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict' - -var abs = Math.abs -var round = Math.round - -function almostEq(a, b) { - return abs(a - b) <= 9.5367432e-7 -} - -//最大公约数 Greatest Common Divisor -function GCD(a, b) { - if (almostEq(b, 0)) return a - return GCD(b, a % b) -} - -function findPrecision(n) { - var e = 1 - - while (!almostEq(round(n * e) / e, n)) { - e *= 10 - } - - return e -} - -function num2fraction(num) { - if (num === 0 || num === '0') return '0' - - if (typeof num === 'string') { - num = parseFloat(num) - } - - - var precision = findPrecision(num) //精确度 - var number = num * precision - var gcd = abs(GCD(number, precision)) - - //分子 - var numerator = number / gcd - //分母 - var denominator = precision / gcd - - //分数 - return round(numerator) + '/' + round(denominator) -} - -module.exports = num2fraction - diff --git a/node_modules/num2fraction/package.json b/node_modules/num2fraction/package.json deleted file mode 100644 index 29a0683..0000000 --- a/node_modules/num2fraction/package.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "num2fraction@^1.2.2", - "scope": null, - "escapedName": "num2fraction", - "name": "num2fraction", - "rawSpec": "^1.2.2", - "spec": ">=1.2.2 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/autoprefixer" - ] - ], - "_from": "num2fraction@>=1.2.2 <2.0.0", - "_id": "num2fraction@1.2.2", - "_inCache": true, - "_location": "/num2fraction", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "yisi", - "email": "yiorsi@gmail.com" - }, - "_npmVersion": "2.11.2", - "_phantomChildren": {}, - "_requested": { - "raw": "num2fraction@^1.2.2", - "scope": null, - "escapedName": "num2fraction", - "name": "num2fraction", - "rawSpec": "^1.2.2", - "spec": ">=1.2.2 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/autoprefixer" - ], - "_resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", - "_shasum": "6f682b6a027a4e9ddfa4564cd2589d1d4e669ede", - "_shrinkwrap": null, - "_spec": "num2fraction@^1.2.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/autoprefixer", - "author": { - "name": "yisi", - "email": "yiorsi@gmail.com", - "url": "http://iyunlu.com/view" - }, - "bugs": { - "url": "https://github.com/yisibl/num2fraction/issues" - }, - "dependencies": {}, - "description": "Convert number to fraction", - "devDependencies": { - "tape": "^3.0.0" - }, - "directories": {}, - "dist": { - "shasum": "6f682b6a027a4e9ddfa4564cd2589d1d4e669ede", - "tarball": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz" - }, - "gitHead": "df97795dd5a29466a4855794c1031ba869f0829c", - "homepage": "https://github.com/yisibl/num2fraction#readme", - "keywords": [ - "fraction", - "number", - "math", - "maths", - "arithmetic", - "gcd", - "rational" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "yisi", - "email": "yiorsi@gmail.com" - } - ], - "name": "num2fraction", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/yisibl/num2fraction.git" - }, - "scripts": { - "test": "tape test/*.js" - }, - "version": "1.2.2" -} diff --git a/node_modules/number-is-nan/index.js b/node_modules/number-is-nan/index.js deleted file mode 100644 index 79be4b9..0000000 --- a/node_modules/number-is-nan/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; -module.exports = Number.isNaN || function (x) { - return x !== x; -}; diff --git a/node_modules/number-is-nan/license b/node_modules/number-is-nan/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/number-is-nan/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/number-is-nan/package.json b/node_modules/number-is-nan/package.json deleted file mode 100644 index 74391e3..0000000 --- a/node_modules/number-is-nan/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "number-is-nan@^1.0.0", - "scope": null, - "escapedName": "number-is-nan", - "name": "number-is-nan", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/is-finite" - ] - ], - "_from": "number-is-nan@>=1.0.0 <2.0.0", - "_id": "number-is-nan@1.0.1", - "_inCache": true, - "_location": "/number-is-nan", - "_nodeVersion": "4.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/number-is-nan-1.0.1.tgz_1475212313367_0.9480371843092144" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.9", - "_phantomChildren": {}, - "_requested": { - "raw": "number-is-nan@^1.0.0", - "scope": null, - "escapedName": "number-is-nan", - "name": "number-is-nan", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/is-finite", - "/is-fullwidth-code-point" - ], - "_resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "_shasum": "097b602b53422a522c1afb8790318336941a011d", - "_shrinkwrap": null, - "_spec": "number-is-nan@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/is-finite", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/number-is-nan/issues" - }, - "dependencies": {}, - "description": "ES2015 Number.isNaN() ponyfill", - "devDependencies": { - "ava": "*" - }, - "directories": {}, - "dist": { - "shasum": "097b602b53422a522c1afb8790318336941a011d", - "tarball": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "ed9cdac3f428cc929b61bb230da42c87477af4b9", - "homepage": "https://github.com/sindresorhus/number-is-nan#readme", - "keywords": [ - "es2015", - "ecmascript", - "ponyfill", - "polyfill", - "shim", - "number", - "is", - "nan", - "not" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "number-is-nan", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/number-is-nan.git" - }, - "scripts": { - "test": "ava" - }, - "version": "1.0.1" -} diff --git a/node_modules/number-is-nan/readme.md b/node_modules/number-is-nan/readme.md deleted file mode 100644 index 2463508..0000000 --- a/node_modules/number-is-nan/readme.md +++ /dev/null @@ -1,28 +0,0 @@ -# number-is-nan [![Build Status](https://travis-ci.org/sindresorhus/number-is-nan.svg?branch=master)](https://travis-ci.org/sindresorhus/number-is-nan) - -> ES2015 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) [ponyfill](https://ponyfill.com) - - -## Install - -``` -$ npm install --save number-is-nan -``` - - -## Usage - -```js -var numberIsNan = require('number-is-nan'); - -numberIsNan(NaN); -//=> true - -numberIsNan('unicorn'); -//=> false -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/oauth-sign/LICENSE b/node_modules/oauth-sign/LICENSE deleted file mode 100644 index a4a9aee..0000000 --- a/node_modules/oauth-sign/LICENSE +++ /dev/null @@ -1,55 +0,0 @@ -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and - -You must cause any modified files to carry prominent notices stating that You changed the files; and - -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/node_modules/oauth-sign/README.md b/node_modules/oauth-sign/README.md deleted file mode 100644 index 34c4a85..0000000 --- a/node_modules/oauth-sign/README.md +++ /dev/null @@ -1,4 +0,0 @@ -oauth-sign -========== - -OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module. diff --git a/node_modules/oauth-sign/index.js b/node_modules/oauth-sign/index.js deleted file mode 100644 index dadcba9..0000000 --- a/node_modules/oauth-sign/index.js +++ /dev/null @@ -1,136 +0,0 @@ -var crypto = require('crypto') - , qs = require('querystring') - ; - -function sha1 (key, body) { - return crypto.createHmac('sha1', key).update(body).digest('base64') -} - -function rsa (key, body) { - return crypto.createSign("RSA-SHA1").update(body).sign(key, 'base64'); -} - -function rfc3986 (str) { - return encodeURIComponent(str) - .replace(/!/g,'%21') - .replace(/\*/g,'%2A') - .replace(/\(/g,'%28') - .replace(/\)/g,'%29') - .replace(/'/g,'%27') - ; -} - -// Maps object to bi-dimensional array -// Converts { foo: 'A', bar: [ 'b', 'B' ]} to -// [ ['foo', 'A'], ['bar', 'b'], ['bar', 'B'] ] -function map (obj) { - var key, val, arr = [] - for (key in obj) { - val = obj[key] - if (Array.isArray(val)) - for (var i = 0; i < val.length; i++) - arr.push([key, val[i]]) - else if (typeof val === "object") - for (var prop in val) - arr.push([key + '[' + prop + ']', val[prop]]); - else - arr.push([key, val]) - } - return arr -} - -// Compare function for sort -function compare (a, b) { - return a > b ? 1 : a < b ? -1 : 0 -} - -function generateBase (httpMethod, base_uri, params) { - // adapted from https://dev.twitter.com/docs/auth/oauth and - // https://dev.twitter.com/docs/auth/creating-signature - - // Parameter normalization - // http://tools.ietf.org/html/rfc5849#section-3.4.1.3.2 - var normalized = map(params) - // 1. First, the name and value of each parameter are encoded - .map(function (p) { - return [ rfc3986(p[0]), rfc3986(p[1] || '') ] - }) - // 2. The parameters are sorted by name, using ascending byte value - // ordering. If two or more parameters share the same name, they - // are sorted by their value. - .sort(function (a, b) { - return compare(a[0], b[0]) || compare(a[1], b[1]) - }) - // 3. The name of each parameter is concatenated to its corresponding - // value using an "=" character (ASCII code 61) as a separator, even - // if the value is empty. - .map(function (p) { return p.join('=') }) - // 4. The sorted name/value pairs are concatenated together into a - // single string by using an "&" character (ASCII code 38) as - // separator. - .join('&') - - var base = [ - rfc3986(httpMethod ? httpMethod.toUpperCase() : 'GET'), - rfc3986(base_uri), - rfc3986(normalized) - ].join('&') - - return base -} - -function hmacsign (httpMethod, base_uri, params, consumer_secret, token_secret) { - var base = generateBase(httpMethod, base_uri, params) - var key = [ - consumer_secret || '', - token_secret || '' - ].map(rfc3986).join('&') - - return sha1(key, base) -} - -function rsasign (httpMethod, base_uri, params, private_key, token_secret) { - var base = generateBase(httpMethod, base_uri, params) - var key = private_key || '' - - return rsa(key, base) -} - -function plaintext (consumer_secret, token_secret) { - var key = [ - consumer_secret || '', - token_secret || '' - ].map(rfc3986).join('&') - - return key -} - -function sign (signMethod, httpMethod, base_uri, params, consumer_secret, token_secret) { - var method - var skipArgs = 1 - - switch (signMethod) { - case 'RSA-SHA1': - method = rsasign - break - case 'HMAC-SHA1': - method = hmacsign - break - case 'PLAINTEXT': - method = plaintext - skipArgs = 4 - break - default: - throw new Error("Signature method not supported: " + signMethod) - } - - return method.apply(null, [].slice.call(arguments, skipArgs)) -} - -exports.hmacsign = hmacsign -exports.rsasign = rsasign -exports.plaintext = plaintext -exports.sign = sign -exports.rfc3986 = rfc3986 -exports.generateBase = generateBase - diff --git a/node_modules/oauth-sign/package.json b/node_modules/oauth-sign/package.json deleted file mode 100644 index d1931c3..0000000 --- a/node_modules/oauth-sign/package.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "oauth-sign@~0.8.1", - "scope": null, - "escapedName": "oauth-sign", - "name": "oauth-sign", - "rawSpec": "~0.8.1", - "spec": ">=0.8.1 <0.9.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/request" - ] - ], - "_from": "oauth-sign@>=0.8.1 <0.9.0", - "_id": "oauth-sign@0.8.2", - "_inCache": true, - "_location": "/oauth-sign", - "_nodeVersion": "5.9.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/oauth-sign-0.8.2.tgz_1462396399020_0.8175400267355144" - }, - "_npmUser": { - "name": "simov", - "email": "simeonvelichkov@gmail.com" - }, - "_npmVersion": "2.15.3", - "_phantomChildren": {}, - "_requested": { - "raw": "oauth-sign@~0.8.1", - "scope": null, - "escapedName": "oauth-sign", - "name": "oauth-sign", - "rawSpec": "~0.8.1", - "spec": ">=0.8.1 <0.9.0", - "type": "range" - }, - "_requiredBy": [ - "/request" - ], - "_resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "_shasum": "46a6ab7f0aead8deae9ec0565780b7d4efeb9d43", - "_shrinkwrap": null, - "_spec": "oauth-sign@~0.8.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/request", - "author": { - "name": "Mikeal Rogers", - "email": "mikeal.rogers@gmail.com", - "url": "http://www.futurealoof.com" - }, - "bugs": { - "url": "https://github.com/mikeal/oauth-sign/issues" - }, - "dependencies": {}, - "description": "OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module.", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "46a6ab7f0aead8deae9ec0565780b7d4efeb9d43", - "tarball": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz" - }, - "engines": { - "node": "*" - }, - "files": [ - "index.js" - ], - "gitHead": "0b034206316132f57e26970152c2fb18e71bddd5", - "homepage": "https://github.com/mikeal/oauth-sign#readme", - "license": "Apache-2.0", - "main": "index.js", - "maintainers": [ - { - "name": "mikeal", - "email": "mikeal.rogers@gmail.com" - }, - { - "name": "nylen", - "email": "jnylen@gmail.com" - }, - { - "name": "simov", - "email": "simeonvelichkov@gmail.com" - } - ], - "name": "oauth-sign", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "url": "git+https://github.com/mikeal/oauth-sign.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "0.8.2" -} diff --git a/node_modules/object-assign/index.js b/node_modules/object-assign/index.js deleted file mode 100644 index 0930cf8..0000000 --- a/node_modules/object-assign/index.js +++ /dev/null @@ -1,90 +0,0 @@ -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ - -'use strict'; -/* eslint-disable no-unused-vars */ -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var hasOwnProperty = Object.prototype.hasOwnProperty; -var propIsEnumerable = Object.prototype.propertyIsEnumerable; - -function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); -} - -function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } -} - -module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; -}; diff --git a/node_modules/object-assign/license b/node_modules/object-assign/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/object-assign/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/object-assign/package.json b/node_modules/object-assign/package.json deleted file mode 100644 index 4e2ed77..0000000 --- a/node_modules/object-assign/package.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "object-assign@^4.0.1", - "scope": null, - "escapedName": "object-assign", - "name": "object-assign", - "rawSpec": "^4.0.1", - "spec": ">=4.0.1 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/del" - ] - ], - "_from": "object-assign@>=4.0.1 <5.0.0", - "_id": "object-assign@4.1.1", - "_inCache": true, - "_location": "/object-assign", - "_nodeVersion": "4.6.2", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/object-assign-4.1.1.tgz_1484580915042_0.07107710791751742" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.11", - "_phantomChildren": {}, - "_requested": { - "raw": "object-assign@^4.0.1", - "scope": null, - "escapedName": "object-assign", - "name": "object-assign", - "rawSpec": "^4.0.1", - "spec": ">=4.0.1 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/del", - "/figures", - "/globby", - "/gulp-clean-css", - "/gulp-header", - "/gulp-less", - "/gulp-watch", - "/meow", - "/replacestream" - ], - "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "_shasum": "2109adc7965887cfc05cbbd442cac8bfbb360863", - "_shrinkwrap": null, - "_spec": "object-assign@^4.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/del", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/object-assign/issues" - }, - "dependencies": {}, - "description": "ES2015 `Object.assign()` ponyfill", - "devDependencies": { - "ava": "^0.16.0", - "lodash": "^4.16.4", - "matcha": "^0.7.0", - "xo": "^0.16.0" - }, - "directories": {}, - "dist": { - "shasum": "2109adc7965887cfc05cbbd442cac8bfbb360863", - "tarball": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "a89774b252c91612203876984bbd6addbe3b5a0e", - "homepage": "https://github.com/sindresorhus/object-assign#readme", - "keywords": [ - "object", - "assign", - "extend", - "properties", - "es2015", - "ecmascript", - "harmony", - "ponyfill", - "prollyfill", - "polyfill", - "shim", - "browser" - ], - "license": "MIT", - "maintainers": [ - { - "name": "gaearon", - "email": "dan.abramov@gmail.com" - }, - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - { - "name": "spicyj", - "email": "ben@benalpert.com" - } - ], - "name": "object-assign", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/object-assign.git" - }, - "scripts": { - "bench": "matcha bench.js", - "test": "xo && ava" - }, - "version": "4.1.1" -} diff --git a/node_modules/object-assign/readme.md b/node_modules/object-assign/readme.md deleted file mode 100644 index 1be09d3..0000000 --- a/node_modules/object-assign/readme.md +++ /dev/null @@ -1,61 +0,0 @@ -# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign) - -> ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com) - - -## Use the built-in - -Node.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari), -support `Object.assign()` :tada:. If you target only those environments, then by all -means, use `Object.assign()` instead of this package. - - -## Install - -``` -$ npm install --save object-assign -``` - - -## Usage - -```js -const objectAssign = require('object-assign'); - -objectAssign({foo: 0}, {bar: 1}); -//=> {foo: 0, bar: 1} - -// multiple sources -objectAssign({foo: 0}, {bar: 1}, {baz: 2}); -//=> {foo: 0, bar: 1, baz: 2} - -// overwrites equal keys -objectAssign({foo: 0}, {foo: 1}, {foo: 2}); -//=> {foo: 2} - -// ignores null and undefined sources -objectAssign({foo: 0}, null, {bar: 1}, undefined); -//=> {foo: 0, bar: 1} -``` - - -## API - -### objectAssign(target, [source, ...]) - -Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones. - - -## Resources - -- [ES2015 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign) - - -## Related - -- [deep-assign](https://github.com/sindresorhus/deep-assign) - Recursive `Object.assign()` - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/object-keys/.npmignore b/node_modules/object-keys/.npmignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/object-keys/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/object-keys/.travis.yml b/node_modules/object-keys/.travis.yml deleted file mode 100644 index 60d00ce..0000000 --- a/node_modules/object-keys/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "0.10" - - "0.8" - - "0.6" diff --git a/node_modules/object-keys/README.md b/node_modules/object-keys/README.md deleted file mode 100644 index ab32d0a..0000000 --- a/node_modules/object-keys/README.md +++ /dev/null @@ -1,39 +0,0 @@ -#object-keys [![Version Badge][2]][1] - -[![Build Status][3]][4] [![dependency status][5]][6] - -[![browser support][7]][8] - -An Object.keys shim. Uses Object.keys if available. - -## Example - -```js -var keys = require('object-keys'); -var assert = require('assert'); -var obj = { - a: true, - b: true, - c: true -}; - -assert.equal(keys(obj), ['a', 'b', 'c']); -``` - -## Source -Implementation taken directly from [es5-shim]([9]), with modifications, including from [lodash]([10]). - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -[1]: https://npmjs.org/package/object-keys -[2]: http://vb.teelaun.ch/ljharb/object-keys.svg -[3]: https://travis-ci.org/ljharb/object-keys.png -[4]: https://travis-ci.org/ljharb/object-keys -[5]: https://david-dm.org/ljharb/object-keys.png -[6]: https://david-dm.org/ljharb/object-keys -[7]: https://ci.testling.com/ljharb/object-keys.png -[8]: https://ci.testling.com/ljharb/object-keys -[9]: https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js#L542-589 -[10]: https://github.com/bestiejs/lodash - diff --git a/node_modules/object-keys/foreach.js b/node_modules/object-keys/foreach.js deleted file mode 100644 index db32d45..0000000 --- a/node_modules/object-keys/foreach.js +++ /dev/null @@ -1,40 +0,0 @@ -var hasOwn = Object.prototype.hasOwnProperty; -var toString = Object.prototype.toString; - -var isFunction = function (fn) { - var isFunc = (typeof fn === 'function' && !(fn instanceof RegExp)) || toString.call(fn) === '[object Function]'; - if (!isFunc && typeof window !== 'undefined') { - isFunc = fn === window.setTimeout || fn === window.alert || fn === window.confirm || fn === window.prompt; - } - return isFunc; -}; - -module.exports = function forEach(obj, fn) { - if (!isFunction(fn)) { - throw new TypeError('iterator must be a function'); - } - var i, k, - isString = typeof obj === 'string', - l = obj.length, - context = arguments.length > 2 ? arguments[2] : null; - if (l === +l) { - for (i = 0; i < l; i++) { - if (context === null) { - fn(isString ? obj.charAt(i) : obj[i], i, obj); - } else { - fn.call(context, isString ? obj.charAt(i) : obj[i], i, obj); - } - } - } else { - for (k in obj) { - if (hasOwn.call(obj, k)) { - if (context === null) { - fn(obj[k], k, obj); - } else { - fn.call(context, obj[k], k, obj); - } - } - } - } -}; - diff --git a/node_modules/object-keys/index.js b/node_modules/object-keys/index.js deleted file mode 100644 index f5b24b6..0000000 --- a/node_modules/object-keys/index.js +++ /dev/null @@ -1,2 +0,0 @@ -module.exports = Object.keys || require('./shim'); - diff --git a/node_modules/object-keys/isArguments.js b/node_modules/object-keys/isArguments.js deleted file mode 100644 index 74a0989..0000000 --- a/node_modules/object-keys/isArguments.js +++ /dev/null @@ -1,16 +0,0 @@ -var toString = Object.prototype.toString; - -module.exports = function isArguments(value) { - var str = toString.call(value); - var isArguments = str === '[object Arguments]'; - if (!isArguments) { - isArguments = str !== '[object Array]' - && value !== null - && typeof value === 'object' - && typeof value.length === 'number' - && value.length >= 0 - && toString.call(value.callee) === '[object Function]'; - } - return isArguments; -}; - diff --git a/node_modules/object-keys/package.json b/node_modules/object-keys/package.json deleted file mode 100644 index a4d3bb2..0000000 --- a/node_modules/object-keys/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "object-keys@~0.4.0", - "scope": null, - "escapedName": "object-keys", - "name": "object-keys", - "rawSpec": "~0.4.0", - "spec": ">=0.4.0 <0.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/through2/node_modules/xtend" - ] - ], - "_from": "object-keys@>=0.4.0 <0.5.0", - "_id": "object-keys@0.4.0", - "_inCache": true, - "_location": "/object-keys", - "_npmUser": { - "name": "ljharb", - "email": "ljharb@gmail.com" - }, - "_npmVersion": "1.3.5", - "_phantomChildren": {}, - "_requested": { - "raw": "object-keys@~0.4.0", - "scope": null, - "escapedName": "object-keys", - "name": "object-keys", - "rawSpec": "~0.4.0", - "spec": ">=0.4.0 <0.5.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-clone/through2/xtend" - ], - "_resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "_shasum": "28a6aae7428dd2c3a92f3d95f21335dd204e0336", - "_shrinkwrap": null, - "_spec": "object-keys@~0.4.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-clone/node_modules/through2/node_modules/xtend", - "author": { - "name": "Jordan Harband" - }, - "bugs": { - "url": "https://github.com/ljharb/object-keys/issues" - }, - "dependencies": {}, - "deprecated": "", - "description": "An Object.keys replacement, in case Object.keys is not available. From https://github.com/kriskowal/es5-shim", - "devDependencies": { - "foreach": "~2.0.3", - "indexof": "~0.0.1", - "is": "~0.2.6", - "tape": "~1.0.4" - }, - "directories": {}, - "dist": { - "shasum": "28a6aae7428dd2c3a92f3d95f21335dd204e0336", - "tarball": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz" - }, - "homepage": "https://github.com/ljharb/object-keys#readme", - "keywords": [ - "Object.keys", - "keys", - "ES5", - "shim" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "ljharb", - "email": "ljharb@gmail.com" - } - ], - "name": "object-keys", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/ljharb/object-keys.git" - }, - "scripts": { - "test": "node test/index.js" - }, - "testling": { - "files": "test/index.js", - "browsers": [ - "iexplore/6.0..latest", - "firefox/3.0..6.0", - "firefox/15.0..latest", - "firefox/nightly", - "chrome/4.0..10.0", - "chrome/20.0..latest", - "chrome/canary", - "opera/10.0..latest", - "opera/next", - "safari/4.0..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2" - ] - }, - "version": "0.4.0" -} diff --git a/node_modules/object-keys/shim.js b/node_modules/object-keys/shim.js deleted file mode 100644 index b88421b..0000000 --- a/node_modules/object-keys/shim.js +++ /dev/null @@ -1,62 +0,0 @@ -(function () { - "use strict"; - - // modified from https://github.com/kriskowal/es5-shim - var has = Object.prototype.hasOwnProperty, - toString = Object.prototype.toString, - forEach = require('./foreach'), - isArgs = require('./isArguments'), - hasDontEnumBug = !({'toString': null}).propertyIsEnumerable('toString'), - hasProtoEnumBug = (function () {}).propertyIsEnumerable('prototype'), - dontEnums = [ - "toString", - "toLocaleString", - "valueOf", - "hasOwnProperty", - "isPrototypeOf", - "propertyIsEnumerable", - "constructor" - ], - keysShim; - - keysShim = function keys(object) { - var isObject = object !== null && typeof object === 'object', - isFunction = toString.call(object) === '[object Function]', - isArguments = isArgs(object), - theKeys = []; - - if (!isObject && !isFunction && !isArguments) { - throw new TypeError("Object.keys called on a non-object"); - } - - if (isArguments) { - forEach(object, function (value) { - theKeys.push(value); - }); - } else { - var name, - skipProto = hasProtoEnumBug && isFunction; - - for (name in object) { - if (!(skipProto && name === 'prototype') && has.call(object, name)) { - theKeys.push(name); - } - } - } - - if (hasDontEnumBug) { - var ctor = object.constructor, - skipConstructor = ctor && ctor.prototype === object; - - forEach(dontEnums, function (dontEnum) { - if (!(skipConstructor && dontEnum === 'constructor') && has.call(object, dontEnum)) { - theKeys.push(dontEnum); - } - }); - } - return theKeys; - }; - - module.exports = keysShim; -}()); - diff --git a/node_modules/object-keys/test/foreach.js b/node_modules/object-keys/test/foreach.js deleted file mode 100644 index f29f065..0000000 --- a/node_modules/object-keys/test/foreach.js +++ /dev/null @@ -1,156 +0,0 @@ -var test = require('tape'); -var forEach = require('../foreach.js'); - -test('second argument: iterator', function (t) { - var arr = []; - t.throws(function () { forEach(arr); }, TypeError, 'undefined is not a function'); - t.throws(function () { forEach(arr, null); }, TypeError, 'null is not a function'); - t.throws(function () { forEach(arr, ''); }, TypeError, 'string is not a function'); - t.throws(function () { forEach(arr, /a/); }, TypeError, 'regex is not a function'); - t.throws(function () { forEach(arr, true); }, TypeError, 'true is not a function'); - t.throws(function () { forEach(arr, false); }, TypeError, 'false is not a function'); - t.throws(function () { forEach(arr, NaN); }, TypeError, 'NaN is not a function'); - t.throws(function () { forEach(arr, 42); }, TypeError, '42 is not a function'); - t.doesNotThrow(function () { forEach(arr, function () {}); }, 'function is a function'); - t.doesNotThrow(function () { forEach(arr, setTimeout); }, 'setTimeout is a function'); - if (typeof window !== 'undefined') { - t.doesNotThrow(function () { forEach(arr, window.alert); }, 'alert is a function'); - } - t.end(); -}); - -test('array', function (t) { - var arr = [1, 2, 3]; - - t.test('iterates over every item', function (st) { - var index = 0; - forEach(arr, function () { index += 1; }); - st.equal(index, arr.length, 'iterates ' + arr.length + ' times'); - st.end(); - }); - - t.test('first iterator argument', function (st) { - var index = 0; - st.plan(arr.length); - forEach(arr, function (item) { - st.equal(arr[index], item, 'item ' + index + ' is passed as first argument'); - index += 1; - }); - st.end(); - }); - - t.test('second iterator argument', function (st) { - var counter = 0; - st.plan(arr.length); - forEach(arr, function (item, index) { - st.equal(counter, index, 'index ' + index + ' is passed as second argument'); - counter += 1; - }); - st.end(); - }); - - t.test('third iterator argument', function (st) { - st.plan(arr.length); - forEach(arr, function (item, index, array) { - st.deepEqual(arr, array, 'array is passed as third argument'); - }); - st.end(); - }); - - t.test('context argument', function (st) { - var context = {}; - st.plan(arr.length); - forEach(arr, function () { - st.equal(this, context, '"this" is the passed context'); - }, context); - st.end(); - }); - - t.end(); -}); - -test('object', function (t) { - var obj = { - a: 1, - b: 2, - c: 3 - }; - var keys = ['a', 'b', 'c']; - - var F = function () { - this.a = 1; - this.b = 2; - }; - F.prototype.c = 3; - var fKeys = ['a', 'b']; - - t.test('iterates over every object literal key', function (st) { - var counter = 0; - forEach(obj, function () { counter += 1; }); - st.equal(counter, keys.length, 'iterated ' + counter + ' times'); - st.end(); - }); - - t.test('iterates only over own keys', function (st) { - var counter = 0; - forEach(new F(), function () { counter += 1; }); - st.equal(counter, fKeys.length, 'iterated ' + fKeys.length + ' times'); - st.end(); - }); - - t.test('first iterator argument', function (st) { - var index = 0; - st.plan(keys.length); - forEach(obj, function (item) { - st.equal(obj[keys[index]], item, 'item at key ' + keys[index] + ' is passed as first argument'); - index += 1; - }); - st.end(); - }); - - t.test('second iterator argument', function (st) { - var counter = 0; - st.plan(keys.length); - forEach(obj, function (item, key) { - st.equal(keys[counter], key, 'key ' + key + ' is passed as second argument'); - counter += 1; - }); - st.end(); - }); - - t.test('third iterator argument', function (st) { - st.plan(keys.length); - forEach(obj, function (item, key, object) { - st.deepEqual(obj, object, 'object is passed as third argument'); - }); - st.end(); - }); - - t.test('context argument', function (st) { - var context = {}; - st.plan(1); - forEach({foo: 'bar'}, function () { - st.equal(this, context, '"this" is the passed context'); - }, context); - st.end(); - }); - - t.end(); -}); - - -test('string', function (t) { - var str = 'str'; - t.test('second iterator argument', function (st) { - var counter = 0; - st.plan(str.length * 2 + 1); - forEach(str, function (item, index) { - st.equal(counter, index, 'index ' + index + ' is passed as second argument'); - st.equal(str.charAt(index), item); - counter += 1; - }); - st.equal(counter, str.length, 'iterates ' + str.length + ' times'); - }); - t.end(); -}); - diff --git a/node_modules/object-keys/test/index.js b/node_modules/object-keys/test/index.js deleted file mode 100644 index 8b77b1f..0000000 --- a/node_modules/object-keys/test/index.js +++ /dev/null @@ -1,6 +0,0 @@ - -require('./foreach'); -require('./isArguments'); - -require('./shim'); - diff --git a/node_modules/object-keys/test/isArguments.js b/node_modules/object-keys/test/isArguments.js deleted file mode 100644 index 62a07c2..0000000 --- a/node_modules/object-keys/test/isArguments.js +++ /dev/null @@ -1,10 +0,0 @@ -var test = require('tape'); -var isArguments = require('../isArguments'); - -test('is.arguments', function (t) { - t.notOk(isArguments([]), 'array is not arguments'); - (function () { t.ok(isArguments(arguments), 'arguments is arguments'); }()); - (function () { t.notOk(isArguments(Array.prototype.slice.call(arguments)), 'sliced arguments is not arguments'); }()); - t.end(); -}); - diff --git a/node_modules/object-keys/test/shim.js b/node_modules/object-keys/test/shim.js deleted file mode 100644 index 9d93271..0000000 --- a/node_modules/object-keys/test/shim.js +++ /dev/null @@ -1,134 +0,0 @@ -var test = require('tape'); -var shimmedKeys = require('../index.js'); -var is = require('is'); -var keys = require('../shim.js'); -var forEach = require('foreach'); -var indexOf = require('indexof'); - -var obj = { - "str": "boz", - "obj": {}, - "arr": [], - "bool": true, - "num": 42, - "aNull": null, - "undef": undefined -}; -var objKeys = ['str', 'obj', 'arr', 'bool', 'num', 'aNull', 'undef']; - -test('exports a function', function (t) { - if (Object.keys) { - t.equal(Object.keys, shimmedKeys, 'Object.keys is supported and exported'); - } else { - t.equal(keys, shimmedKeys, 'Object.keys is not supported; shim is exported'); - } - t.end(); -}); - -test('working with actual shim', function (t) { - t.notEqual(Object.keys, keys, 'keys shim is not native Object.keys'); - t.end(); -}); - -test('works with an object literal', function (t) { - var theKeys = keys(obj); - t.equal(is.array(theKeys), true, 'returns an array'); - t.deepEqual(theKeys, objKeys, 'Object has expected keys'); - t.end(); -}); - -test('works with an array', function (t) { - var arr = [1, 2, 3]; - var theKeys = keys(arr); - t.equal(is.array(theKeys), true, 'returns an array'); - t.deepEqual(theKeys, ['0', '1', '2'], 'Array has expected keys'); - t.end(); -}); - -test('works with a function', function (t) { - var foo = function () {}; - foo.a = true; - - t.doesNotThrow(function () { return keys(foo); }, 'does not throw an error'); - t.deepEqual(keys(foo), ['a'], 'returns expected keys'); - t.end(); -}); - -test('returns names which are own properties', function (t) { - forEach(keys(obj), function (name) { - t.equal(obj.hasOwnProperty(name), true, name + ' should be returned'); - }); - t.end(); -}); - -test('returns names which are enumerable', function (t) { - var k, loopedValues = []; - for (k in obj) { - loopedValues.push(k); - } - forEach(keys(obj), function (name) { - t.notEqual(indexOf(loopedValues, name), -1, name + ' is not enumerable'); - }); - t.end(); -}); - -test('throws an error for a non-object', function (t) { - t.throws( - function () { return keys(42); }, - new TypeError('Object.keys called on a non-object'), - 'throws on a non-object' - ); - t.end(); -}); - -test('works with an object instance', function (t) { - var Prototype = function () {}; - Prototype.prototype.foo = true; - var obj = new Prototype(); - obj.bar = true; - var theKeys = keys(obj); - t.equal(is.array(theKeys), true, 'returns an array'); - t.deepEqual(theKeys, ['bar'], 'Instance has expected keys'); - t.end(); -}); - -test('works in iOS 5 mobile Safari', function (t) { - var Foo = function () {}; - Foo.a = function () {}; - - // the bug is keys(Foo) => ['a', 'prototype'] instead of ['a'] - t.deepEqual(keys(Foo), ['a'], 'has expected keys'); - t.end(); -}); - -test('works in environments with the dontEnum bug (IE < 9)', function (t) { - var Foo = function () {}; - Foo.prototype.a = function () {}; - - // the bug is keys(Foo.prototype) => ['a', 'constructor'] instead of ['a'] - t.deepEqual(keys(Foo.prototype), ['a'], 'has expected keys'); - t.end(); -}); - -test('shadowed properties', function (t) { - var shadowedProps = [ - 'dummyControlProp', /* just to be sure */ - 'constructor', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'toLocaleString', - 'toString', - 'valueOf' - ]; - shadowedProps.sort(); - var shadowedObject = {}; - forEach(shadowedProps, function (value, index) { - shadowedObject[value] = index; - }); - var shadowedObjectKeys = keys(shadowedObject); - shadowedObjectKeys.sort(); - t.deepEqual(shadowedObjectKeys, shadowedProps, 'troublesome shadowed properties are keys of object literals'); - t.end(); -}); - diff --git a/node_modules/object.omit/LICENSE b/node_modules/object.omit/LICENSE deleted file mode 100644 index 842218c..0000000 --- a/node_modules/object.omit/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2016, 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/object.omit/README.md b/node_modules/object.omit/README.md deleted file mode 100644 index 246efe0..0000000 --- a/node_modules/object.omit/README.md +++ /dev/null @@ -1,118 +0,0 @@ -# object.omit [![NPM version](https://img.shields.io/npm/v/object.omit.svg?style=flat)](https://www.npmjs.com/package/object.omit) [![NPM monthly downloads](https://img.shields.io/npm/dm/object.omit.svg?style=flat)](https://npmjs.org/package/object.omit) [![NPM total downloads](https://img.shields.io/npm/dt/object.omit.svg?style=flat)](https://npmjs.org/package/object.omit) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/object.omit.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/object.omit) - -> Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save object.omit -``` - -## Usage - -```js -var omit = require('object.omit'); -``` - -Pass a string `key` to omit: - -```js -omit({a: 'a', b: 'b', c: 'c'}, 'a') -//=> { b: 'b', c: 'c' } -``` - -Pass an array of `keys` to omit: - -```js -omit({a: 'a', b: 'b', c: 'c'}, ['a', 'c']) -//=> { b: 'b' } -``` - -Returns the object if no keys are passed: - -```js -omit({a: 'a', b: 'b', c: 'c'}) -//=> {a: 'a', b: 'b', c: 'c'} -``` - -Returns an empty object if no value is passed. - -```js -omit() -//=> {} -``` - -### Filter function - -An optional filter function may be passed as the last argument, with or without keys passed on the arguments: - -**filter on keys** - -```js -var res = omit({a: 'a', b: 'b', c: 'c'}, function (val, key) { - return key === 'a'; -}); -//=> {a: 'a'} -``` - -**filter on values** - -```js -var fn = function() {}; -var obj = {a: 'a', b: 'b', c: fn}; - -var res = omit(obj, ['a'], function (val, key) { - return typeof val !== 'function'; -}); -//=> {b: 'b'} -``` - -## About - -### Related projects - -* [object.defaults](https://www.npmjs.com/package/object.defaults): Like `extend` but only copies missing properties/values to the target object. | [homepage](https://github.com/jonschlinkert/object.defaults "Like `extend` but only copies missing properties/values to the target object.") -* [object.filter](https://www.npmjs.com/package/object.filter): Create a new object filtered to have only properties for which the callback returns true. | [homepage](https://github.com/jonschlinkert/object.filter "Create a new object filtered to have only properties for which the callback returns true.") -* [object.pick](https://www.npmjs.com/package/object.pick): Returns a filtered copy of an object with only the specified keys, similar to `_.pick… [more](https://github.com/jonschlinkert/object.pick) | [homepage](https://github.com/jonschlinkert/object.pick "Returns a filtered copy of an object with only the specified keys, similar to`_.pick` from lodash / underscore.") -* [object.pluck](https://www.npmjs.com/package/object.pluck): Like pluck from underscore / lo-dash, but returns an object composed of specified properties, with… [more](https://github.com/jonschlinkert/object.pluck) | [homepage](https://github.com/jonschlinkert/object.pluck "Like pluck from underscore / lo-dash, but returns an object composed of specified properties, with values unmodified from those of the original object.") -* [object.reduce](https://www.npmjs.com/package/object.reduce): Reduces an object to a value that is the accumulated result of running each property… [more](https://github.com/jonschlinkert/object.reduce) | [homepage](https://github.com/jonschlinkert/object.reduce "Reduces an object to a value that is the accumulated result of running each property in the object through a callback.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -### License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/object.omit/blob/master/LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 27, 2016._ \ No newline at end of file diff --git a/node_modules/object.omit/index.js b/node_modules/object.omit/index.js deleted file mode 100644 index 503a3c3..0000000 --- a/node_modules/object.omit/index.js +++ /dev/null @@ -1,40 +0,0 @@ -/*! - * object.omit - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var isObject = require('is-extendable'); -var forOwn = require('for-own'); - -module.exports = function omit(obj, keys) { - if (!isObject(obj)) return {}; - - keys = [].concat.apply([], [].slice.call(arguments, 1)); - var last = keys[keys.length - 1]; - var res = {}, fn; - - if (typeof last === 'function') { - fn = keys.pop(); - } - - var isFunction = typeof fn === 'function'; - if (!keys.length && !isFunction) { - return obj; - } - - forOwn(obj, function(value, key) { - if (keys.indexOf(key) === -1) { - - if (!isFunction) { - res[key] = value; - } else if (fn(value, key, obj)) { - res[key] = value; - } - } - }); - return res; -}; diff --git a/node_modules/object.omit/package.json b/node_modules/object.omit/package.json deleted file mode 100644 index df44df5..0000000 --- a/node_modules/object.omit/package.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "object.omit@^2.0.0", - "scope": null, - "escapedName": "object.omit", - "name": "object.omit", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/micromatch" - ] - ], - "_from": "object.omit@>=2.0.0 <3.0.0", - "_id": "object.omit@2.0.1", - "_inCache": true, - "_location": "/object.omit", - "_nodeVersion": "6.7.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/object.omit-2.0.1.tgz_1477549482527_0.48828932945616543" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "object.omit@^2.0.0", - "scope": null, - "escapedName": "object.omit", - "name": "object.omit", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/micromatch" - ], - "_resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "_shasum": "1a9c744829f39dbb858c76ca3579ae2a54ebd1fa", - "_shrinkwrap": null, - "_spec": "object.omit@^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/object.omit/issues" - }, - "dependencies": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" - }, - "description": "Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.", - "devDependencies": { - "gulp-format-md": "^0.1.11", - "mocha": "^3.1.2", - "should": "^11.1.1" - }, - "directories": {}, - "dist": { - "shasum": "1a9c744829f39dbb858c76ca3579ae2a54ebd1fa", - "tarball": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "6634673e6e88c65796f1df4bcb787dede6dc7ffc", - "homepage": "https://github.com/jonschlinkert/object.omit", - "keywords": [ - "clear", - "delete", - "key", - "object", - "omit", - "property", - "remove", - "value" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], - "name": "object.omit", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/object.omit.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "related": { - "list": [ - "object.defaults", - "object.filter", - "object.pick", - "object.pluck", - "object.reduce" - ] - }, - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - }, - "reflinks": [ - "verb", - "verb-generate-readme" - ] - }, - "version": "2.0.1" -} diff --git a/node_modules/once/LICENSE b/node_modules/once/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/once/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/once/README.md b/node_modules/once/README.md deleted file mode 100644 index 1f1ffca..0000000 --- a/node_modules/once/README.md +++ /dev/null @@ -1,79 +0,0 @@ -# once - -Only call a function once. - -## usage - -```javascript -var once = require('once') - -function load (file, cb) { - cb = once(cb) - loader.load('file') - loader.once('load', cb) - loader.once('error', cb) -} -``` - -Or add to the Function.prototype in a responsible way: - -```javascript -// only has to be done once -require('once').proto() - -function load (file, cb) { - cb = cb.once() - loader.load('file') - loader.once('load', cb) - loader.once('error', cb) -} -``` - -Ironically, the prototype feature makes this module twice as -complicated as necessary. - -To check whether you function has been called, use `fn.called`. Once the -function is called for the first time the return value of the original -function is saved in `fn.value` and subsequent calls will continue to -return this value. - -```javascript -var once = require('once') - -function load (cb) { - cb = once(cb) - var stream = createStream() - stream.once('data', cb) - stream.once('end', function () { - if (!cb.called) cb(new Error('not found')) - }) -} -``` - -## `once.strict(func)` - -Throw an error if the function is called twice. - -Some functions are expected to be called only once. Using `once` for them would -potentially hide logical errors. - -In the example below, the `greet` function has to call the callback only once: - -```javascript -function greet (name, cb) { - // return is missing from the if statement - // when no name is passed, the callback is called twice - if (!name) cb('Hello anonymous') - cb('Hello ' + name) -} - -function log (msg) { - console.log(msg) -} - -// this will print 'Hello anonymous' but the logical error will be missed -greet(null, once(msg)) - -// once.strict will print 'Hello anonymous' and throw an error when the callback will be called the second time -greet(null, once.strict(msg)) -``` diff --git a/node_modules/once/once.js b/node_modules/once/once.js deleted file mode 100644 index 2354067..0000000 --- a/node_modules/once/once.js +++ /dev/null @@ -1,42 +0,0 @@ -var wrappy = require('wrappy') -module.exports = wrappy(once) -module.exports.strict = wrappy(onceStrict) - -once.proto = once(function () { - Object.defineProperty(Function.prototype, 'once', { - value: function () { - return once(this) - }, - configurable: true - }) - - Object.defineProperty(Function.prototype, 'onceStrict', { - value: function () { - return onceStrict(this) - }, - configurable: true - }) -}) - -function once (fn) { - var f = function () { - if (f.called) return f.value - f.called = true - return f.value = fn.apply(this, arguments) - } - f.called = false - return f -} - -function onceStrict (fn) { - var f = function () { - if (f.called) - throw new Error(f.onceError) - f.called = true - return f.value = fn.apply(this, arguments) - } - var name = fn.name || 'Function wrapped with `once`' - f.onceError = name + " shouldn't be called more than once" - f.called = false - return f -} diff --git a/node_modules/once/package.json b/node_modules/once/package.json deleted file mode 100644 index 24c9efd..0000000 --- a/node_modules/once/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "once@^1.3.0", - "scope": null, - "escapedName": "once", - "name": "once", - "rawSpec": "^1.3.0", - "spec": ">=1.3.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/glob" - ] - ], - "_from": "once@>=1.3.0 <2.0.0", - "_id": "once@1.4.0", - "_inCache": true, - "_location": "/once", - "_nodeVersion": "6.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/once-1.4.0.tgz_1473196269128_0.537820661207661" - }, - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.10.7", - "_phantomChildren": {}, - "_requested": { - "raw": "once@^1.3.0", - "scope": null, - "escapedName": "once", - "name": "once", - "rawSpec": "^1.3.0", - "spec": ">=1.3.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/glob", - "/glob-stream/glob", - "/inflight", - "/rework-import/glob", - "/run-async" - ], - "_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1", - "_shrinkwrap": null, - "_spec": "once@^1.3.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/glob", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/once/issues" - }, - "dependencies": { - "wrappy": "1" - }, - "description": "Run a function exactly one time", - "devDependencies": { - "tap": "^7.0.1" - }, - "directories": { - "test": "test" - }, - "dist": { - "shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1", - "tarball": "https://registry.npmjs.org/once/-/once-1.4.0.tgz" - }, - "files": [ - "once.js" - ], - "gitHead": "0e614d9f5a7e6f0305c625f6b581f6d80b33b8a6", - "homepage": "https://github.com/isaacs/once#readme", - "keywords": [ - "once", - "function", - "one", - "single" - ], - "license": "ISC", - "main": "once.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "once", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/once.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "1.4.0" -} diff --git a/node_modules/onetime/index.js b/node_modules/onetime/index.js deleted file mode 100644 index cc3c3ed..0000000 --- a/node_modules/onetime/index.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; -module.exports = function (fn, errMsg) { - if (typeof fn !== 'function') { - throw new TypeError('Expected a function'); - } - - var ret; - var called = false; - var fnName = fn.displayName || fn.name || (/function ([^\(]+)/.exec(fn.toString()) || [])[1]; - - var onetime = function () { - if (called) { - if (errMsg === true) { - fnName = fnName ? fnName + '()' : 'Function'; - throw new Error(fnName + ' can only be called once.'); - } - - return ret; - } - - called = true; - ret = fn.apply(this, arguments); - fn = null; - - return ret; - }; - - onetime.displayName = fnName; - - return onetime; -}; diff --git a/node_modules/onetime/license b/node_modules/onetime/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/onetime/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/onetime/package.json b/node_modules/onetime/package.json deleted file mode 100644 index e5c13c8..0000000 --- a/node_modules/onetime/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "onetime@^1.0.0", - "scope": null, - "escapedName": "onetime", - "name": "onetime", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/restore-cursor" - ] - ], - "_from": "onetime@>=1.0.0 <2.0.0", - "_id": "onetime@1.1.0", - "_inCache": true, - "_location": "/onetime", - "_nodeVersion": "4.2.1", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.7", - "_phantomChildren": {}, - "_requested": { - "raw": "onetime@^1.0.0", - "scope": null, - "escapedName": "onetime", - "name": "onetime", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/restore-cursor" - ], - "_resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", - "_shasum": "a1f7838f8314c516f05ecefcbc4ccfe04b4ed789", - "_shrinkwrap": null, - "_spec": "onetime@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/restore-cursor", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/onetime/issues" - }, - "dependencies": {}, - "description": "Only call a function once", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "a1f7838f8314c516f05ecefcbc4ccfe04b4ed789", - "tarball": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "6fae2fb77b95b49719d1c270d8ba07d9515bdfe8", - "homepage": "https://github.com/sindresorhus/onetime", - "keywords": [ - "once", - "one", - "single", - "call", - "function", - "prevent" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "onetime", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/onetime.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.1.0" -} diff --git a/node_modules/onetime/readme.md b/node_modules/onetime/readme.md deleted file mode 100644 index e27d2bc..0000000 --- a/node_modules/onetime/readme.md +++ /dev/null @@ -1,52 +0,0 @@ -# onetime [![Build Status](https://travis-ci.org/sindresorhus/onetime.svg?branch=master)](https://travis-ci.org/sindresorhus/onetime) - -> Only call a function once - -When called multiple times it will return the return value from the first call. - -*Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty extending `Function.prototype`.* - - -## Install - -``` -$ npm install --save onetime -``` - - -## Usage - -```js -let i = 0; - -const foo = onetime(() => i++); - -foo(); //=> 0 -foo(); //=> 0 -foo(); //=> 0 -``` - - -## API - -### onetime(function, [shouldThrow]) - -#### function - -Type: `function` - -Function that should only be called once. - -#### shouldThrow - -Type: `boolean` -Default: `false` - -![](screenshot-shouldthrow.png) - -Set to `true` if you want it to fail with a nice and descriptive error when called more than once. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/orchestrator/.npmignore b/node_modules/orchestrator/.npmignore deleted file mode 100644 index 094a5f3..0000000 --- a/node_modules/orchestrator/.npmignore +++ /dev/null @@ -1,10 +0,0 @@ -.DS_Store -*.log -node_modules -build -*.node -components -*.orig -.idea -test -.travis.yml diff --git a/node_modules/orchestrator/LICENSE b/node_modules/orchestrator/LICENSE deleted file mode 100644 index b7346ab..0000000 --- a/node_modules/orchestrator/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2013 [Richardson & Sons, LLC](http://richardsonandsons.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/orchestrator/README.md b/node_modules/orchestrator/README.md deleted file mode 100644 index d87844c..0000000 --- a/node_modules/orchestrator/README.md +++ /dev/null @@ -1,286 +0,0 @@ -[![Build Status](https://secure.travis-ci.org/robrich/orchestrator.svg?branch=master)](https://travis-ci.org/robrich/orchestrator) -[![Dependency Status](https://david-dm.org/robrich/orchestrator.svg)](https://david-dm.org/robrich/orchestrator) - -Orchestrator -============ - -A module for sequencing and executing tasks and dependencies in maximum concurrency - -Usage ------ - -### 1. Get a reference: - -```javascript -var Orchestrator = require('orchestrator'); -var orchestrator = new Orchestrator(); -``` - -### 2. Load it up with stuff to do: - -```javascript -orchestrator.add('thing1', function(){ - // do stuff -}); -orchestrator.add('thing2', function(){ - // do stuff -}); -``` - -### 3. Run the tasks: - -```javascript -orchestrator.start('thing1', 'thing2', function (err) { - // all done -}); -``` - -API ---- - -### orchestrator.add(name[, deps][, function]); - -Define a task - -```javascript -orchestrator.add('thing1', function(){ - // do stuff -}); -``` - -#### name -Type: `String` - -The name of the task. - -#### deps -Type: `Array` - -An array of task names to be executed and completed before your task will run. - -```javascript -orchestrator.add('mytask', ['array', 'of', 'task', 'names'], function() { - // Do stuff -}); -``` - -**Note:** Are your tasks running before the dependencies are complete? Make sure your dependency tasks -are correctly using the async run hints: take in a callback or return a promise or event stream. - -#### fn -Type: `function` - -The function that performs the task's operations. For asynchronous tasks, you need to provide a hint when the task is complete: - -- Take in a callback -- Return a stream or a promise - -#### examples: - -**Accept a callback:** - -```javascript -orchestrator.add('thing2', function(callback){ - // do stuff - callback(err); -}); -``` - -**Return a promise:** - -```javascript -var Q = require('q'); - -orchestrator.add('thing3', function(){ - var deferred = Q.defer(); - - // do async stuff - setTimeout(function () { - deferred.resolve(); - }, 1); - - return deferred.promise; -}); -``` - -**Return a stream:** (task is marked complete when stream ends) - -```javascript -var map = require('map-stream'); - -orchestrator.add('thing4', function(){ - var stream = map(function (args, cb) { - cb(null, args); - }); - // do stream stuff - return stream; -}); -``` - -**Note:** By default, tasks run with maximum concurrency -- e.g. it launches all the tasks at once and waits for nothing. -If you want to create a series where tasks run in a particular order, you need to do two things: - -- give it a hint to tell it when the task is done, -- and give it a hint that a task depends on completion of another. - -For these examples, let's presume you have two tasks, "one" and "two" that you specifically want to run in this order: - -1. In task "one" you add a hint to tell it when the task is done. Either take in a callback and call it when you're -done or return a promise or stream that the engine should wait to resolve or end respectively. - -2. In task "two" you add a hint telling the engine that it depends on completion of the first task. - -So this example would look like this: - -```javascript -var Orchestrator = require('orchestrator'); -var orchestrator = new Orchestrator(); - -// takes in a callback so the engine knows when it'll be done -orchestrator.add('one', function (cb) { - // do stuff -- async or otherwise - cb(err); // if err is not null or undefined, the orchestration will stop, and note that it failed -}); - -// identifies a dependent task must be complete before this one begins -orchestrator.add('two', ['one'], function () { - // task 'one' is done now -}); - -orchestrator.start('one', 'two'); -``` - -### orchestrator.hasTask(name); - -Have you defined a task with this name? - -#### name -Type: `String` - -The task name to query - -### orchestrator.start(tasks...[, cb]); - -Start running the tasks - -#### tasks -Type: `String` or `Array` of `String`s - -Tasks to be executed. You may pass any number of tasks as individual arguments. - -#### cb -Type: `function`: `function (err) {` - -Callback to call after run completed. - -Passes single argument: `err`: did the orchestration succeed? - -**Note:** Tasks run concurrently and therefore may not complete in order. -**Note:** Orchestrator uses `sequencify` to resolve dependencies before running, and therefore may not start in order. -Listen to orchestration events to watch task running. - -```javascript -orchestrator.start('thing1', 'thing2', 'thing3', 'thing4', function (err) { - // all done -}); -``` -```javascript -orchestrator.start(['thing1','thing2'], ['thing3','thing4']); -``` - -**FRAGILE:** Orchestrator catches exceptions on sync runs to pass to your callback -but doesn't hook to process.uncaughtException so it can't pass those exceptions -to your callback - -**FRAGILE:** Orchestrator will ensure each task and each dependency is run once during an orchestration run -even if you specify it to run more than once. (e.g. `orchestrator.start('thing1', 'thing1')` -will only run 'thing1' once.) If you need it to run a task multiple times, wait for -the orchestration to end (start's callback) then call start again. -(e.g. `orchestrator.start('thing1', function () {orchestrator.start('thing1');})`.) -Alternatively create a second orchestrator instance. - -### orchestrator.stop() - -Stop an orchestration run currently in process - -**Note:** It will call the `start()` callback with an `err` noting the orchestration was aborted - -### orchestrator.on(event, cb); - -Listen to orchestrator internals - -#### event -Type: `String` - -Event name to listen to: -- start: from start() method, shows you the task sequence -- stop: from stop() method, the queue finished successfully -- err: from stop() method, the queue was aborted due to a task error -- task_start: from _runTask() method, task was started -- task_stop: from _runTask() method, task completed successfully -- task_err: from _runTask() method, task errored -- task_not_found: from start() method, you're trying to start a task that doesn't exist -- task_recursion: from start() method, there are recursive dependencies in your task list - -#### cb -Type: `function`: `function (e) {` - -Passes single argument: `e`: event details - -```javascript -orchestrator.on('task_start', function (e) { - // e.message is the log message - // e.task is the task name if the message applies to a task else `undefined` - // e.err is the error if event is 'err' else `undefined` -}); -// for task_end and task_err: -orchestrator.on('task_stop', function (e) { - // e is the same object from task_start - // e.message is updated to show how the task ended - // e.duration is the task run duration (in seconds) -}); -``` - -**Note:** fires either *stop or *err but not both. - -### orchestrator.onAll(cb); - -Listen to all orchestrator events from one callback - -#### cb -Type: `function`: `function (e) {` - -Passes single argument: `e`: event details - -```javascript -orchestrator.onAll(function (e) { - // e is the original event args - // e.src is event name -}); -``` - -LICENSE -------- - -(MIT License) - -Copyright (c) 2013-2015 [Richardson & Sons, LLC](http://richardsonandsons.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/orchestrator/index.js b/node_modules/orchestrator/index.js deleted file mode 100644 index 89bc795..0000000 --- a/node_modules/orchestrator/index.js +++ /dev/null @@ -1,304 +0,0 @@ -/*jshint node:true */ - -"use strict"; - -var util = require('util'); -var events = require('events'); -var EventEmitter = events.EventEmitter; -var runTask = require('./lib/runTask'); - -var Orchestrator = function () { - EventEmitter.call(this); - this.doneCallback = undefined; // call this when all tasks in the queue are done - this.seq = []; // the order to run the tasks - this.tasks = {}; // task objects: name, dep (list of names of dependencies), fn (the task to run) - this.isRunning = false; // is the orchestrator running tasks? .start() to start, .stop() to stop -}; -util.inherits(Orchestrator, EventEmitter); - - Orchestrator.prototype.reset = function () { - if (this.isRunning) { - this.stop(null); - } - this.tasks = {}; - this.seq = []; - this.isRunning = false; - this.doneCallback = undefined; - return this; - }; - Orchestrator.prototype.add = function (name, dep, fn) { - if (!fn && typeof dep === 'function') { - fn = dep; - dep = undefined; - } - dep = dep || []; - fn = fn || function () {}; // no-op - if (!name) { - throw new Error('Task requires a name'); - } - // validate name is a string, dep is an array of strings, and fn is a function - if (typeof name !== 'string') { - throw new Error('Task requires a name that is a string'); - } - if (typeof fn !== 'function') { - throw new Error('Task '+name+' requires a function that is a function'); - } - if (!Array.isArray(dep)) { - throw new Error('Task '+name+' can\'t support dependencies that is not an array of strings'); - } - dep.forEach(function (item) { - if (typeof item !== 'string') { - throw new Error('Task '+name+' dependency '+item+' is not a string'); - } - }); - this.tasks[name] = { - fn: fn, - dep: dep, - name: name - }; - return this; - }; - Orchestrator.prototype.task = function (name, dep, fn) { - if (dep || fn) { - // alias for add, return nothing rather than this - this.add(name, dep, fn); - } else { - return this.tasks[name]; - } - }; - Orchestrator.prototype.hasTask = function (name) { - return !!this.tasks[name]; - }; - // tasks and optionally a callback - Orchestrator.prototype.start = function() { - var args, arg, names = [], lastTask, i, seq = []; - args = Array.prototype.slice.call(arguments, 0); - if (args.length) { - lastTask = args[args.length-1]; - if (typeof lastTask === 'function') { - this.doneCallback = lastTask; - args.pop(); - } - for (i = 0; i < args.length; i++) { - arg = args[i]; - if (typeof arg === 'string') { - names.push(arg); - } else if (Array.isArray(arg)) { - names = names.concat(arg); // FRAGILE: ASSUME: it's an array of strings - } else { - throw new Error('pass strings or arrays of strings'); - } - } - } - if (this.isRunning) { - // reset specified tasks (and dependencies) as not run - this._resetSpecificTasks(names); - } else { - // reset all tasks as not run - this._resetAllTasks(); - } - if (this.isRunning) { - // if you call start() again while a previous run is still in play - // prepend the new tasks to the existing task queue - names = names.concat(this.seq); - } - if (names.length < 1) { - // run all tasks - for (i in this.tasks) { - if (this.tasks.hasOwnProperty(i)) { - names.push(this.tasks[i].name); - } - } - } - seq = []; - try { - this.sequence(this.tasks, names, seq, []); - } catch (err) { - // Is this a known error? - if (err) { - if (err.missingTask) { - this.emit('task_not_found', {message: err.message, task:err.missingTask, err: err}); - } - if (err.recursiveTasks) { - this.emit('task_recursion', {message: err.message, recursiveTasks:err.recursiveTasks, err: err}); - } - } - this.stop(err); - return this; - } - this.seq = seq; - this.emit('start', {message:'seq: '+this.seq.join(',')}); - if (!this.isRunning) { - this.isRunning = true; - } - this._runStep(); - return this; - }; - Orchestrator.prototype.stop = function (err, successfulFinish) { - this.isRunning = false; - if (err) { - this.emit('err', {message:'orchestration failed', err:err}); - } else if (successfulFinish) { - this.emit('stop', {message:'orchestration succeeded'}); - } else { - // ASSUME - err = 'orchestration aborted'; - this.emit('err', {message:'orchestration aborted', err: err}); - } - if (this.doneCallback) { - // Avoid calling it multiple times - this.doneCallback(err); - } else if (err && !this.listeners('err').length) { - // No one is listening for the error so speak louder - throw err; - } - }; - Orchestrator.prototype.sequence = require('sequencify'); - Orchestrator.prototype.allDone = function () { - var i, task, allDone = true; // nothing disputed it yet - for (i = 0; i < this.seq.length; i++) { - task = this.tasks[this.seq[i]]; - if (!task.done) { - allDone = false; - break; - } - } - return allDone; - }; - Orchestrator.prototype._resetTask = function(task) { - if (task) { - if (task.done) { - task.done = false; - } - delete task.start; - delete task.stop; - delete task.duration; - delete task.hrDuration; - delete task.args; - } - }; - Orchestrator.prototype._resetAllTasks = function() { - var task; - for (task in this.tasks) { - if (this.tasks.hasOwnProperty(task)) { - this._resetTask(this.tasks[task]); - } - } - }; - Orchestrator.prototype._resetSpecificTasks = function (names) { - var i, name, t; - - if (names && names.length) { - for (i = 0; i < names.length; i++) { - name = names[i]; - t = this.tasks[name]; - if (t) { - this._resetTask(t); - if (t.dep && t.dep.length) { - this._resetSpecificTasks(t.dep); // recurse - } - //} else { - // FRAGILE: ignore that the task doesn't exist - } - } - } - }; - Orchestrator.prototype._runStep = function () { - var i, task; - if (!this.isRunning) { - return; // user aborted, ASSUME: stop called previously - } - for (i = 0; i < this.seq.length; i++) { - task = this.tasks[this.seq[i]]; - if (!task.done && !task.running && this._readyToRunTask(task)) { - this._runTask(task); - } - if (!this.isRunning) { - return; // task failed or user aborted, ASSUME: stop called previously - } - } - if (this.allDone()) { - this.stop(null, true); - } - }; - Orchestrator.prototype._readyToRunTask = function (task) { - var ready = true, // no one disproved it yet - i, name, t; - if (task.dep.length) { - for (i = 0; i < task.dep.length; i++) { - name = task.dep[i]; - t = this.tasks[name]; - if (!t) { - // FRAGILE: this should never happen - this.stop("can't run "+task.name+" because it depends on "+name+" which doesn't exist"); - ready = false; - break; - } - if (!t.done) { - ready = false; - break; - } - } - } - return ready; - }; - Orchestrator.prototype._stopTask = function (task, meta) { - task.duration = meta.duration; - task.hrDuration = meta.hrDuration; - task.running = false; - task.done = true; - }; - Orchestrator.prototype._emitTaskDone = function (task, message, err) { - if (!task.args) { - task.args = {task:task.name}; - } - task.args.duration = task.duration; - task.args.hrDuration = task.hrDuration; - task.args.message = task.name+' '+message; - var evt = 'stop'; - if (err) { - task.args.err = err; - evt = 'err'; - } - // 'task_stop' or 'task_err' - this.emit('task_'+evt, task.args); - }; - Orchestrator.prototype._runTask = function (task) { - var that = this; - - task.args = {task:task.name, message:task.name+' started'}; - this.emit('task_start', task.args); - task.running = true; - - runTask(task.fn.bind(this), function (err, meta) { - that._stopTask.call(that, task, meta); - that._emitTaskDone.call(that, task, meta.runMethod, err); - if (err) { - return that.stop.call(that, err); - } - that._runStep.call(that); - }); - }; - -// FRAGILE: ASSUME: this list is an exhaustive list of events emitted -var events = ['start','stop','err','task_start','task_stop','task_err','task_not_found','task_recursion']; - -var listenToEvent = function (target, event, callback) { - target.on(event, function (e) { - e.src = event; - callback(e); - }); -}; - - Orchestrator.prototype.onAll = function (callback) { - var i; - if (typeof callback !== 'function') { - throw new Error('No callback specified'); - } - - for (i = 0; i < events.length; i++) { - listenToEvent(this, events[i], callback); - } - }; - -module.exports = Orchestrator; diff --git a/node_modules/orchestrator/lib/runTask.js b/node_modules/orchestrator/lib/runTask.js deleted file mode 100644 index 41b2877..0000000 --- a/node_modules/orchestrator/lib/runTask.js +++ /dev/null @@ -1,66 +0,0 @@ -/*jshint node:true */ - -"use strict"; - -var eos = require('end-of-stream'); -var consume = require('stream-consume'); - -module.exports = function (task, done) { - var that = this, finish, cb, isDone = false, start, r; - - finish = function (err, runMethod) { - var hrDuration = process.hrtime(start); - - if (isDone && !err) { - err = new Error('task completion callback called too many times'); - } - isDone = true; - - var duration = hrDuration[0] + (hrDuration[1] / 1e9); // seconds - - done.call(that, err, { - duration: duration, // seconds - hrDuration: hrDuration, // [seconds,nanoseconds] - runMethod: runMethod - }); - }; - - cb = function (err) { - finish(err, 'callback'); - }; - - try { - start = process.hrtime(); - r = task(cb); - } catch (err) { - return finish(err, 'catch'); - } - - if (r && typeof r.then === 'function') { - // wait for promise to resolve - // FRAGILE: ASSUME: Promises/A+, see http://promises-aplus.github.io/promises-spec/ - r.then(function () { - finish(null, 'promise'); - }, function(err) { - finish(err, 'promise'); - }); - - } else if (r && typeof r.pipe === 'function') { - // wait for stream to end - - eos(r, { error: true, readable: r.readable, writable: r.writable && !r.readable }, function(err){ - finish(err, 'stream'); - }); - - // Ensure that the stream completes - consume(r); - - } else if (task.length === 0) { - // synchronous, function took in args.length parameters, and the callback was extra - finish(null, 'sync'); - - //} else { - // FRAGILE: ASSUME: callback - - } -}; diff --git a/node_modules/orchestrator/package.json b/node_modules/orchestrator/package.json deleted file mode 100644 index 0836c48..0000000 --- a/node_modules/orchestrator/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "orchestrator@^0.3.0", - "scope": null, - "escapedName": "orchestrator", - "name": "orchestrator", - "rawSpec": "^0.3.0", - "spec": ">=0.3.0 <0.4.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp" - ] - ], - "_from": "orchestrator@>=0.3.0 <0.4.0", - "_id": "orchestrator@0.3.8", - "_inCache": true, - "_location": "/orchestrator", - "_nodeVersion": "6.9.1", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/orchestrator-0.3.8.tgz_1478376952393_0.013398072216659784" - }, - "_npmUser": { - "name": "robrich", - "email": "robrich@robrich.org" - }, - "_npmVersion": "3.10.8", - "_phantomChildren": {}, - "_requested": { - "raw": "orchestrator@^0.3.0", - "scope": null, - "escapedName": "orchestrator", - "name": "orchestrator", - "rawSpec": "^0.3.0", - "spec": ">=0.3.0 <0.4.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp" - ], - "_resolved": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz", - "_shasum": "14e7e9e2764f7315fbac184e506c7aa6df94ad7e", - "_shrinkwrap": null, - "_spec": "orchestrator@^0.3.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp", - "author": { - "name": "Rob Richardson", - "url": "http://robrich.org/" - }, - "bugs": { - "url": "https://github.com/robrich/orchestrator/issues" - }, - "dependencies": { - "end-of-stream": "~0.1.5", - "sequencify": "~0.0.7", - "stream-consume": "~0.1.0" - }, - "description": "A module for sequencing and executing tasks and dependencies in maximum concurrency", - "devDependencies": { - "event-stream": "~3.3.4", - "gulp-uglify": "^2.0.0", - "jshint": "^2.9.4", - "map-stream": "~0.0.6", - "merge-stream": "~1.0.0", - "mocha": "~3.1.2", - "q": "~1.4.1", - "should": "~11.1.1", - "vinyl-fs": "~2.4.4" - }, - "directories": {}, - "dist": { - "shasum": "14e7e9e2764f7315fbac184e506c7aa6df94ad7e", - "tarball": "https://registry.npmjs.org/orchestrator/-/orchestrator-0.3.8.tgz" - }, - "gitHead": "8d14e9df94450edf5dae1a16b7a8f051f26670fa", - "homepage": "https://github.com/robrich/orchestrator", - "keywords": [ - "async", - "task", - "parallel", - "compose" - ], - "license": "MIT", - "main": "./index.js", - "maintainers": [ - { - "name": "robrich", - "email": "robrich@robrich.org" - } - ], - "name": "orchestrator", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/robrich/orchestrator.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "0.3.8" -} diff --git a/node_modules/ordered-read-streams/.npmignore b/node_modules/ordered-read-streams/.npmignore deleted file mode 100644 index a74dcac..0000000 --- a/node_modules/ordered-read-streams/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -lib-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz - -coverage -pids -logs -results -node_modules - -npm-debug.log diff --git a/node_modules/ordered-read-streams/.travis.yml b/node_modules/ordered-read-streams/.travis.yml deleted file mode 100644 index 18ae2d8..0000000 --- a/node_modules/ordered-read-streams/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.11" - - "0.10" diff --git a/node_modules/ordered-read-streams/LICENSE b/node_modules/ordered-read-streams/LICENSE deleted file mode 100644 index 16fd428..0000000 --- a/node_modules/ordered-read-streams/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Artem Medeusheyev - -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/ordered-read-streams/README.md b/node_modules/ordered-read-streams/README.md deleted file mode 100644 index 8f8be53..0000000 --- a/node_modules/ordered-read-streams/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# ordered-read-streams [![NPM version](https://badge.fury.io/js/ordered-read-streams.png)](http://badge.fury.io/js/ordered-read-streams) [![Build Status](https://travis-ci.org/armed/ordered-read-streams.png?branch=master)](https://travis-ci.org/armed/ordered-read-streams) - -Combines array of streams into one read stream in strict order. - -## Installation - -`npm install ordered-read-streams` - -## Overview - -`ordered-read-streams` handles all data/errors from input streams in parallel, but emits data/errors in strict order in which streams are passed to constructor. This is `objectMode = true` stream. - -## Example - -```js -var through = require('through2'); -var Ordered = require('ordered-read-streams'); - -var s1 = through.obj(function (data, enc, next) { - var self = this; - setTimeout(function () { - self.push(data); - next(); - }, 200) -}); -var s2 = through.obj(function (data, enc, next) { - var self = this; - setTimeout(function () { - self.push(data); - next(); - }, 30) -}); -var s3 = through.obj(function (data, enc, next) { - var self = this; - setTimeout(function () { - self.push(data); - next(); - }, 100) -}); - -var streams = new Ordered([s1, s2, s3]); -streams.on('data', function (data) { - console.log(data); -}) - -s1.write('stream 1'); -s1.end(); - -s2.write('stream 2'); -s2.end(); - -s3.write('stream 3'); -s3.end(); -``` -Ouput will be: - -``` -stream 1 -stream 2 -stream 3 -``` - -## Licence - -MIT diff --git a/node_modules/ordered-read-streams/index.js b/node_modules/ordered-read-streams/index.js deleted file mode 100644 index f58ccf1..0000000 --- a/node_modules/ordered-read-streams/index.js +++ /dev/null @@ -1,87 +0,0 @@ -var Readable = require('stream').Readable; -var util = require('util'); - - -function addStream(streams, stream) -{ - if(!stream.readable) throw new Error('All input streams must be readable'); - - if(this._readableState.ended) throw new Error('Adding streams after ended'); - - - var self = this; - - stream._buffer = []; - - stream.on('data', function(chunk) - { - if(this === streams[0]) - self.push(chunk); - - else - this._buffer.push(chunk); - }); - - stream.on('end', function() - { - for(var stream = streams[0]; - stream && stream._readableState.ended; - stream = streams[0]) - { - while(stream._buffer.length) - self.push(stream._buffer.shift()); - - streams.shift(); - } - - if(!streams.length) self.push(null); - }); - - stream.on('error', this.emit.bind(this, 'error')); - - - streams.push(stream); -} - - -function OrderedStreams(streams, options) { - if (!(this instanceof(OrderedStreams))) { - return new OrderedStreams(streams, options); - } - - streams = streams || []; - options = options || {}; - - options.objectMode = true; - - Readable.call(this, options); - - - if(!Array.isArray(streams)) streams = [streams]; - if(!streams.length) return this.push(null); // no streams, close - - - var addStream_bind = addStream.bind(this, []); - - - this.concat = function() - { - Array.prototype.forEach.call(arguments, function(item) - { - if(Array.isArray(item)) - item.forEach(addStream_bind); - - else - addStream_bind(item); - }); - }; - - - this.concat(streams); -} -util.inherits(OrderedStreams, Readable); - -OrderedStreams.prototype._read = function () {}; - - -module.exports = OrderedStreams; diff --git a/node_modules/ordered-read-streams/package.json b/node_modules/ordered-read-streams/package.json deleted file mode 100644 index 644c636..0000000 --- a/node_modules/ordered-read-streams/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "ordered-read-streams@^0.1.0", - "scope": null, - "escapedName": "ordered-read-streams", - "name": "ordered-read-streams", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/glob-stream" - ] - ], - "_from": "ordered-read-streams@>=0.1.0 <0.2.0", - "_id": "ordered-read-streams@0.1.0", - "_inCache": true, - "_location": "/ordered-read-streams", - "_npmUser": { - "name": "armed", - "email": "artem.medeusheyev@gmail.com" - }, - "_npmVersion": "1.4.14", - "_phantomChildren": {}, - "_requested": { - "raw": "ordered-read-streams@^0.1.0", - "scope": null, - "escapedName": "ordered-read-streams", - "name": "ordered-read-streams", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/glob-stream" - ], - "_resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz", - "_shasum": "fd565a9af8eb4473ba69b6ed8a34352cb552f126", - "_shrinkwrap": null, - "_spec": "ordered-read-streams@^0.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/glob-stream", - "author": { - "name": "Artem Medeusheyev", - "email": "artem.medeusheyev@gmail.com" - }, - "bugs": { - "url": "https://github.com/armed/ordered-read-streams/issues" - }, - "dependencies": {}, - "description": "Combines array of streams into one read stream in strict order", - "devDependencies": { - "jshint": "~2.4.1", - "mocha": "~1.17.0", - "pre-commit": "0.0.4", - "should": "~3.0.1", - "through2": "~0.4.0" - }, - "directories": {}, - "dist": { - "shasum": "fd565a9af8eb4473ba69b6ed8a34352cb552f126", - "tarball": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz" - }, - "gitHead": "0a7e487d8734978c0cc29d4dc3bfbdb8e82f865b", - "homepage": "https://github.com/armed/ordered-read-streams", - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "armed", - "email": "artem.medeusheyev@gmail.com" - } - ], - "name": "ordered-read-streams", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/armed/ordered-read-streams.git" - }, - "scripts": { - "test": "jshint *.js test/*.js && mocha -R spec" - }, - "version": "0.1.0" -} diff --git a/node_modules/ordered-read-streams/test/main.js b/node_modules/ordered-read-streams/test/main.js deleted file mode 100644 index 81f8040..0000000 --- a/node_modules/ordered-read-streams/test/main.js +++ /dev/null @@ -1,160 +0,0 @@ -var should = require('should'); -var through = require('through2'); -var OrderedStreams = require('../'); - -describe('ordered-read-streams', function () { - it('should end if no streams are given', function (done) { - var streams = OrderedStreams(); - streams.on('data', function () { - done('error'); - }); - streams.on('end', done); - }); - - it('should throw error if one or more streams are not readable', function (done) { - var writable = { readable: false }; - - try { - new OrderedStreams(writable); - } catch (e) { - e.message.should.equal('All input streams must be readable'); - done(); - } - }); - - it('should emit data from all streams', function(done) { - var s1 = through.obj(function (data, enc, next) { - this.push(data); - next(); - }); - var s2 = through.obj(function (data, enc, next) { - this.push(data); - next(); - }); - var s3 = through.obj(function (data, enc, next) { - this.push(data); - next(); - }); - - var streams = new OrderedStreams([s1, s2, s3]); - var results = []; - streams.on('data', function (data) { - results.push(data); - }); - streams.on('end', function () { - results.length.should.be.exactly(3); - results[0].should.equal('stream 1'); - results[1].should.equal('stream 2'); - results[2].should.equal('stream 3'); - done(); - }); - - s1.write('stream 1'); - s1.end(); - - s2.write('stream 2'); - s2.end(); - - s3.write('stream 3'); - s3.end(); - }); - - it('should emit all data event from each stream', function (done) { - var s = through.obj(function (data, enc, next) { - this.push(data); - next(); - }); - - var streams = new OrderedStreams(s); - var results = []; - streams.on('data', function (data) { - results.push(data); - }); - streams.on('end', function () { - results.length.should.be.exactly(3); - done(); - }); - - s.write('data1'); - s.write('data2'); - s.write('data3'); - s.end(); - }); - - it('should preserve streams order', function(done) { - var s1 = through.obj(function (data, enc, next) { - var self = this; - setTimeout(function () { - self.push(data); - next(); - }, 200); - }); - var s2 = through.obj(function (data, enc, next) { - var self = this; - setTimeout(function () { - self.push(data); - next(); - }, 30); - }); - var s3 = through.obj(function (data, enc, next) { - var self = this; - setTimeout(function () { - self.push(data); - next(); - }, 100); - }); - - var streams = new OrderedStreams([s1, s2, s3]); - var results = []; - streams.on('data', function (data) { - results.push(data); - }); - streams.on('end', function () { - results.length.should.be.exactly(3); - results[0].should.equal('stream 1'); - results[1].should.equal('stream 2'); - results[2].should.equal('stream 3'); - done(); - }); - - s1.write('stream 1'); - s1.end(); - - s2.write('stream 2'); - s2.end(); - - s3.write('stream 3'); - s3.end(); - }); - - it('should emit stream errors downstream', function (done) { - var s = through.obj(function (data, enc, next) { - this.emit('error', new Error('stahp!')); - next(); - }); - var s2 = through.obj(function (data, enc, next) { - this.push(data); - next(); - }); - - var errMsg; - var streamData; - var streams = new OrderedStreams([s, s2]); - streams.on('data', function (data) { - streamData = data; - }); - streams.on('error', function (err) { - errMsg = err.message; - }); - streams.on('end', function () { - errMsg.should.equal('stahp!'); - streamData.should.equal('Im ok!'); - done(); - }); - - s.write('go'); - s.end(); - s2.write('Im ok!'); - s2.end(); - }); -}); diff --git a/node_modules/os-homedir/index.js b/node_modules/os-homedir/index.js deleted file mode 100644 index 3306616..0000000 --- a/node_modules/os-homedir/index.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -var os = require('os'); - -function homedir() { - var env = process.env; - var home = env.HOME; - var user = env.LOGNAME || env.USER || env.LNAME || env.USERNAME; - - if (process.platform === 'win32') { - return env.USERPROFILE || env.HOMEDRIVE + env.HOMEPATH || home || null; - } - - if (process.platform === 'darwin') { - return home || (user ? '/Users/' + user : null); - } - - if (process.platform === 'linux') { - return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null)); - } - - return home || null; -} - -module.exports = typeof os.homedir === 'function' ? os.homedir : homedir; diff --git a/node_modules/os-homedir/license b/node_modules/os-homedir/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/os-homedir/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/os-homedir/package.json b/node_modules/os-homedir/package.json deleted file mode 100644 index cf376c0..0000000 --- a/node_modules/os-homedir/package.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "os-homedir@^1.0.1", - "scope": null, - "escapedName": "os-homedir", - "name": "os-homedir", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/expand-tilde" - ] - ], - "_from": "os-homedir@>=1.0.1 <2.0.0", - "_id": "os-homedir@1.0.2", - "_inCache": true, - "_location": "/os-homedir", - "_nodeVersion": "6.6.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/os-homedir-1.0.2.tgz_1475211519628_0.7873868853785098" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "os-homedir@^1.0.1", - "scope": null, - "escapedName": "os-homedir", - "name": "os-homedir", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/expand-tilde", - "/tildify" - ], - "_resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "_shasum": "ffbc4988336e0e833de0c168c7ef152121aa7fb3", - "_shrinkwrap": null, - "_spec": "os-homedir@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/expand-tilde", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/os-homedir/issues" - }, - "dependencies": {}, - "description": "Node.js 4 `os.homedir()` ponyfill", - "devDependencies": { - "ava": "*", - "path-exists": "^2.0.0", - "xo": "^0.16.0" - }, - "directories": {}, - "dist": { - "shasum": "ffbc4988336e0e833de0c168c7ef152121aa7fb3", - "tarball": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "b1b0ae70a5965fef7005ff6509a5dd1a78c95e36", - "homepage": "https://github.com/sindresorhus/os-homedir#readme", - "keywords": [ - "builtin", - "core", - "ponyfill", - "polyfill", - "shim", - "os", - "homedir", - "home", - "dir", - "directory", - "folder", - "user", - "path" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "os-homedir", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/os-homedir.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.2" -} diff --git a/node_modules/os-homedir/readme.md b/node_modules/os-homedir/readme.md deleted file mode 100644 index 856ae61..0000000 --- a/node_modules/os-homedir/readme.md +++ /dev/null @@ -1,31 +0,0 @@ -# os-homedir [![Build Status](https://travis-ci.org/sindresorhus/os-homedir.svg?branch=master)](https://travis-ci.org/sindresorhus/os-homedir) - -> Node.js 4 [`os.homedir()`](https://nodejs.org/api/os.html#os_os_homedir) [ponyfill](https://ponyfill.com) - - -## Install - -``` -$ npm install --save os-homedir -``` - - -## Usage - -```js -const osHomedir = require('os-homedir'); - -console.log(osHomedir()); -//=> '/Users/sindresorhus' -``` - - -## Related - -- [user-home](https://github.com/sindresorhus/user-home) - Same as this module but caches the result -- [home-or-tmp](https://github.com/sindresorhus/home-or-tmp) - Get the user home directory with fallback to the system temp directory - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/parse-filepath/LICENSE b/node_modules/parse-filepath/LICENSE deleted file mode 100644 index 39245ac..0000000 --- a/node_modules/parse-filepath/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2016, 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/parse-filepath/README.md b/node_modules/parse-filepath/README.md deleted file mode 100644 index 3eb7ce5..0000000 --- a/node_modules/parse-filepath/README.md +++ /dev/null @@ -1,111 +0,0 @@ -# parse-filepath [![NPM version](https://img.shields.io/npm/v/parse-filepath.svg?style=flat)](https://www.npmjs.com/package/parse-filepath) [![NPM downloads](https://img.shields.io/npm/dm/parse-filepath.svg?style=flat)](https://npmjs.org/package/parse-filepath) [![Build Status](https://img.shields.io/travis/jonschlinkert/parse-filepath.svg?style=flat)](https://travis-ci.org/jonschlinkert/parse-filepath) - -> Pollyfill for node.js `path.parse`, parses a filepath into an object. - -You might also be interested in [global-prefix](https://github.com/jonschlinkert/global-prefix). - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install parse-filepath --save -``` - -## Usage - -```js -var parsePath = require('parse-filepath'); -parsePath(filepath); -``` - -This can be used as a polyfill for the native node.js `path.parse()` method, and it also adds a few properties: - -* `path`: the original filepath -* `isAbsolute`: (getter) true if the given path is absolute -* `absolute`: (getter) fully resolved, absolute filepath -* `dirname`: alias for `dir` -* `basename`: alias for `base` -* `extname`: alias for `ext` -* `stem`: alias for `name` - -**Example** - -```js -var parsePath = require('parse-filepath'); -console.log(parsePath('foo/bar/baz/index.js')); -``` - -Returns: - -```js -{ root: '', - dir: 'foo/bar/baz', - base: 'index.js', - ext: '.js', - name: 'index', - - // aliases - extname: '.js', - basename: 'index.js', - dirname: 'foo/bar/baz', - stem: 'index', - - // original path - path: 'foo/bar/baz/index.js', - - // getters - absolute: [Getter/Setter], - isAbsolute: [Getter/Setter] } -``` - -## Related projects - -You might also be interested in these projects: - -* [global-prefix](https://www.npmjs.com/package/global-prefix): Get the npm global path prefix. | [homepage](https://github.com/jonschlinkert/global-prefix) -* [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute) -* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative) -* [relative](https://www.npmjs.com/package/relative): Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file,… [more](https://www.npmjs.com/package/relative) | [homepage](https://github.com/jonschlinkert/relative) - -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/parse-filepath/issues/new). - -## Building docs - -Generate readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install verb && npm run docs -``` - -Or, if [verb](https://github.com/verbose/verb) is installed globally: - -```sh -$ verb -``` - -## Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -## Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/parse-filepath/blob/master/LICENSE). - -*** - -_This file was generated by [verb](https://github.com/verbose/verb), v, on March 29, 2016._ \ No newline at end of file diff --git a/node_modules/parse-filepath/index.js b/node_modules/parse-filepath/index.js deleted file mode 100644 index fce6f2c..0000000 --- a/node_modules/parse-filepath/index.js +++ /dev/null @@ -1,90 +0,0 @@ -'use strict'; - -var path = require('path'); -var isAbsolute = require('is-absolute'); -var pathRoot = require('path-root'); -var MapCache = require('map-cache'); -var cache = new MapCache(); - -module.exports = function(filepath) { - if (typeof filepath !== 'string') { - throw new TypeError('parse-filepath expects a string'); - } - - if (cache.has(filepath)) { - return cache.get(filepath); - } - - var obj = {}; - if (typeof path.parse === 'function') { - obj = path.parse(filepath); - obj.extname = obj.ext; - obj.basename = obj.base; - obj.dirname = obj.dir; - obj.stem = obj.name; - - } else { - define(obj, 'root', function() { - return pathRoot(this.path); - }); - - define(obj, 'extname', function() { - return path.extname(filepath); - }); - - define(obj, 'ext', function() { - return this.extname; - }); - - define(obj, 'name', function() { - return path.basename(filepath, this.ext); - }); - - define(obj, 'stem', function() { - return this.name; - }); - - define(obj, 'base', function() { - return this.name + this.ext; - }); - - define(obj, 'basename', function() { - return this.base; - }); - - define(obj, 'dir', function() { - return path.dirname(filepath); - }); - - define(obj, 'dirname', function() { - return this.dir; - }); - } - - obj.path = filepath; - - define(obj, 'absolute', function() { - return path.resolve(this.path); - }); - - define(obj, 'isAbsolute', function() { - return isAbsolute(this.path); - }); - - cache.set(filepath, obj); - return obj; -}; - -function define(obj, prop, fn) { - var cached; - Object.defineProperty(obj, prop, { - configurable: true, - enumerable: true, - set: function(val) { - cached = val; - }, - get: function() { - return cached || (cached = fn.call(obj)); - } - }); -} diff --git a/node_modules/parse-filepath/package.json b/node_modules/parse-filepath/package.json deleted file mode 100644 index 0513706..0000000 --- a/node_modules/parse-filepath/package.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "parse-filepath@^1.0.1", - "scope": null, - "escapedName": "parse-filepath", - "name": "parse-filepath", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/fined" - ] - ], - "_from": "parse-filepath@>=1.0.1 <2.0.0", - "_id": "parse-filepath@1.0.1", - "_inCache": true, - "_location": "/parse-filepath", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/parse-filepath-1.0.1.tgz_1459236882404_0.5455310363322496" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.6.0", - "_phantomChildren": {}, - "_requested": { - "raw": "parse-filepath@^1.0.1", - "scope": null, - "escapedName": "parse-filepath", - "name": "parse-filepath", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/fined" - ], - "_resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.1.tgz", - "_shasum": "159d6155d43904d16c10ef698911da1e91969b73", - "_shrinkwrap": null, - "_spec": "parse-filepath@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/fined", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/parse-filepath/issues" - }, - "dependencies": { - "is-absolute": "^0.2.3", - "map-cache": "^0.2.0", - "path-root": "^0.1.1" - }, - "description": "Pollyfill for node.js `path.parse`, parses a filepath into an object.", - "devDependencies": { - "gulp-format-md": "^0.1.7", - "mocha": "^2.2.5", - "should": "^7.0.2" - }, - "directories": {}, - "dist": { - "shasum": "159d6155d43904d16c10ef698911da1e91969b73", - "tarball": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.1.tgz" - }, - "engines": { - "node": ">=0.8" - }, - "files": [ - "index.js" - ], - "gitHead": "dd14a3c2caecfb59a9bbdfca120e9009e4934c45", - "homepage": "https://github.com/jonschlinkert/parse-filepath", - "keywords": [ - "absolute", - "basename", - "dir", - "directory", - "dirname", - "ext", - "extension", - "extname", - "file", - "filename", - "filepath", - "is-absolute", - "name", - "object", - "parse", - "parser", - "parts", - "path", - "segment" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], - "name": "parse-filepath", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/parse-filepath.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "run": true, - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "highlight": "global-prefix", - "list": [ - "global-prefix", - "is-absolute", - "is-relative", - "relative" - ] - }, - "reflinks": [ - "verb" - ], - "lint": { - "reflinks": true - } - }, - "version": "1.0.1" -} diff --git a/node_modules/parse-glob/LICENSE b/node_modules/parse-glob/LICENSE deleted file mode 100644 index 65f90ac..0000000 --- a/node_modules/parse-glob/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/parse-glob/README.md b/node_modules/parse-glob/README.md deleted file mode 100644 index 000ccd9..0000000 --- a/node_modules/parse-glob/README.md +++ /dev/null @@ -1,115 +0,0 @@ -# parse-glob [![NPM version](https://badge.fury.io/js/parse-glob.svg)](http://badge.fury.io/js/parse-glob) [![Build Status](https://travis-ci.org/jonschlinkert/parse-glob.svg)](https://travis-ci.org/jonschlinkert/parse-glob) - -> Parse a glob pattern into an object of tokens. - -**Changes from v1.0.0 to v3.0.4** - -* all path-related properties are now on the `path` object -* all boolean properties are now on the `is` object -* adds `base` property - -See the [properties](#properties) section for details. - -Install with [npm](https://www.npmjs.com/) - -```sh -$ npm i parse-glob --save -``` - -* parses 1,000+ glob patterns in 29ms (2.3 GHz Intel Core i7) -* Extensive [unit tests](./test.js) (more than 1,000 lines), covering wildcards, globstars, character classes, brace patterns, extglobs, dotfiles and other complex patterns. - -See the tests for [hundreds of examples](./test.js). - -## Usage - -```js -var parseGlob = require('parse-glob'); -``` - -**Example** - -```js -parseGlob('a/b/c/**/*.{yml,json}'); -``` - -**Returns:** - -```js -{ orig: 'a/b/c/**/*.{yml,json}', - is: - { glob: true, - negated: false, - extglob: false, - braces: true, - brackets: false, - globstar: true, - dotfile: false, - dotdir: false }, - glob: '**/*.{yml,json}', - base: 'a/b/c', - path: - { dirname: 'a/b/c/**/', - basename: '*.{yml,json}', - filename: '*', - extname: '.{yml,json}', - ext: '{yml,json}' } } -``` - -## Properties - -The object returned by parseGlob has the following properties: - -* `orig`: a copy of the original, unmodified glob pattern -* `is`: an object with boolean information about the glob: - - `glob`: true if the pattern actually a glob pattern - - `negated`: true if it's a negation pattern (`!**/foo.js`) - - `extglob`: true if it has extglobs (`@(foo|bar)`) - - `braces`: true if it has braces (`{1..2}` or `.{txt,md}`) - - `brackets`: true if it has POSIX brackets (`[[:alpha:]]`) - - `globstar`: true if the pattern has a globstar (double star, `**`) - - `dotfile`: true if the pattern should match dotfiles - - `dotdir`: true if the pattern should match dot-directories (like `.git`) -* `glob`: the glob pattern part of the string, if any -* `base`: the non-glob part of the string, if any -* `path`: file path segments - - `dirname`: directory - - `basename`: file name with extension - - `filename`: file name without extension - - `extname`: file extension with dot - - `ext`: file extension without dot - -## Related -* [glob-base](https://www.npmjs.com/package/glob-base): Returns an object with the (non-glob) base path and the actual pattern. | [homepage](https://github.com/jonschlinkert/glob-base) -* [glob-parent](https://www.npmjs.com/package/glob-parent): Strips glob magic from a string to provide the parent path | [homepage](https://github.com/es128/glob-parent) -* [glob-path-regex](https://www.npmjs.com/package/glob-path-regex): Regular expression for matching the parts of glob pattern. | [homepage](https://github.com/regexps/glob-path-regex) -* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern. | [homepage](https://github.com/jonschlinkert/is-glob) -* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… [more](https://www.npmjs.com/package/micromatch) | [homepage](https://github.com/jonschlinkert/micromatch) - -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/parse-glob/issues/new). - -## Tests - -Install dev dependencies: - -```sh -$ npm i -d && npm test -``` - -## Author - -**Jon Schlinkert** - -+ [github/jonschlinkert](https://github.com/jonschlinkert) -+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2014-2015 Jon Schlinkert -Released under the MIT license. - -*** - -_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 22, 2015._ \ No newline at end of file diff --git a/node_modules/parse-glob/index.js b/node_modules/parse-glob/index.js deleted file mode 100644 index 4ab691a..0000000 --- a/node_modules/parse-glob/index.js +++ /dev/null @@ -1,156 +0,0 @@ -/*! - * parse-glob - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var isGlob = require('is-glob'); -var findBase = require('glob-base'); -var extglob = require('is-extglob'); -var dotfile = require('is-dotfile'); - -/** - * Expose `cache` - */ - -var cache = module.exports.cache = {}; - -/** - * Parse a glob pattern into tokens. - * - * When no paths or '**' are in the glob, we use a - * different strategy for parsing the filename, since - * file names can contain braces and other difficult - * patterns. such as: - * - * - `*.{a,b}` - * - `(**|*.js)` - */ - -module.exports = function parseGlob(glob) { - if (cache.hasOwnProperty(glob)) { - return cache[glob]; - } - - var tok = {}; - tok.orig = glob; - tok.is = {}; - - // unescape dots and slashes in braces/brackets - glob = escape(glob); - - var parsed = findBase(glob); - tok.is.glob = parsed.isGlob; - - tok.glob = parsed.glob; - tok.base = parsed.base; - var segs = /([^\/]*)$/.exec(glob); - - tok.path = {}; - tok.path.dirname = ''; - tok.path.basename = segs[1] || ''; - tok.path.dirname = glob.split(tok.path.basename).join('') || ''; - var basename = (tok.path.basename || '').split('.') || ''; - tok.path.filename = basename[0] || ''; - tok.path.extname = basename.slice(1).join('.') || ''; - tok.path.ext = ''; - - if (isGlob(tok.path.dirname) && !tok.path.basename) { - if (!/\/$/.test(tok.glob)) { - tok.path.basename = tok.glob; - } - tok.path.dirname = tok.base; - } - - if (glob.indexOf('/') === -1 && !tok.is.globstar) { - tok.path.dirname = ''; - tok.path.basename = tok.orig; - } - - var dot = tok.path.basename.indexOf('.'); - if (dot !== -1) { - tok.path.filename = tok.path.basename.slice(0, dot); - tok.path.extname = tok.path.basename.slice(dot); - } - - if (tok.path.extname.charAt(0) === '.') { - var exts = tok.path.extname.split('.'); - tok.path.ext = exts[exts.length - 1]; - } - - // unescape dots and slashes in braces/brackets - tok.glob = unescape(tok.glob); - tok.path.dirname = unescape(tok.path.dirname); - tok.path.basename = unescape(tok.path.basename); - tok.path.filename = unescape(tok.path.filename); - tok.path.extname = unescape(tok.path.extname); - - // Booleans - var is = (glob && tok.is.glob); - tok.is.negated = glob && glob.charAt(0) === '!'; - tok.is.extglob = glob && extglob(glob); - tok.is.braces = has(is, glob, '{'); - tok.is.brackets = has(is, glob, '[:'); - tok.is.globstar = has(is, glob, '**'); - tok.is.dotfile = dotfile(tok.path.basename) || dotfile(tok.path.filename); - tok.is.dotdir = dotdir(tok.path.dirname); - return (cache[glob] = tok); -} - -/** - * Returns true if the glob matches dot-directories. - * - * @param {Object} `tok` The tokens object - * @param {Object} `path` The path object - * @return {Object} - */ - -function dotdir(base) { - if (base.indexOf('/.') !== -1) { - return true; - } - if (base.charAt(0) === '.' && base.charAt(1) !== '/') { - return true; - } - return false; -} - -/** - * Returns true if the pattern has the given `ch`aracter(s) - * - * @param {Object} `glob` The glob pattern. - * @param {Object} `ch` The character to test for - * @return {Object} - */ - -function has(is, glob, ch) { - return is && glob.indexOf(ch) !== -1; -} - -/** - * Escape/unescape utils - */ - -function escape(str) { - var re = /\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g; - return str.replace(re, function (outter, braces, parens, brackets) { - var inner = braces || parens || brackets; - if (!inner) { return outter; } - return outter.split(inner).join(esc(inner)); - }); -} - -function esc(str) { - str = str.split('/').join('__SLASH__'); - str = str.split('.').join('__DOT__'); - return str; -} - -function unescape(str) { - str = str.split('__SLASH__').join('/'); - str = str.split('__DOT__').join('.'); - return str; -} diff --git a/node_modules/parse-glob/package.json b/node_modules/parse-glob/package.json deleted file mode 100644 index 5ccdb23..0000000 --- a/node_modules/parse-glob/package.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "parse-glob@^3.0.4", - "scope": null, - "escapedName": "parse-glob", - "name": "parse-glob", - "rawSpec": "^3.0.4", - "spec": ">=3.0.4 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/micromatch" - ] - ], - "_from": "parse-glob@>=3.0.4 <4.0.0", - "_id": "parse-glob@3.0.4", - "_inCache": true, - "_location": "/parse-glob", - "_nodeVersion": "0.12.4", - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "2.10.1", - "_phantomChildren": {}, - "_requested": { - "raw": "parse-glob@^3.0.4", - "scope": null, - "escapedName": "parse-glob", - "name": "parse-glob", - "rawSpec": "^3.0.4", - "spec": ">=3.0.4 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/micromatch" - ], - "_resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "_shasum": "b2c376cfb11f35513badd173ef0bb6e3a388391c", - "_shrinkwrap": null, - "_spec": "parse-glob@^3.0.4", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/micromatch", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/parse-glob/issues" - }, - "dependencies": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - }, - "description": "Parse a glob pattern into an object of tokens.", - "devDependencies": { - "browserify": "^9.0.3", - "lodash": "^3.3.1", - "mocha": "*" - }, - "directories": {}, - "dist": { - "shasum": "b2c376cfb11f35513badd173ef0bb6e3a388391c", - "tarball": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "9bfccb63acdeb3b1ed62035b3adef0e5081d8fc6", - "homepage": "https://github.com/jonschlinkert/parse-glob", - "keywords": [ - "glob", - "match", - "bash", - "expand", - "expansion", - "expression", - "file", - "files", - "filter", - "find", - "glob", - "globbing", - "globs", - "globstar", - "match", - "matcher", - "matches", - "matching", - "path", - "pattern", - "patterns", - "regex", - "regexp", - "regular", - "shell", - "wildcard" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "parse-glob", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/parse-glob.git" - }, - "scripts": { - "prepublish": "browserify -o browser.js -e index.js", - "test": "mocha" - }, - "version": "3.0.4" -} diff --git a/node_modules/parse-import/LICENSE.md b/node_modules/parse-import/LICENSE.md deleted file mode 100644 index 3beff79..0000000 --- a/node_modules/parse-import/LICENSE.md +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) Kevin Mårtensson - -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/parse-import/README.md b/node_modules/parse-import/README.md deleted file mode 100644 index 3840472..0000000 --- a/node_modules/parse-import/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# parse-import [![Build Status](http://img.shields.io/travis/kevva/parse-import.svg?style=flat)](https://travis-ci.org/kevva/parse-import) - -> Parse CSS `@import` statements. - -## Install - -```sh -$ npm install --save parse-import -``` - -## Usage - -```js -var parseImport = require('parse-import'); -var str = [ - '@import url("foo.css");', - '@import "bar.css" only screen and (min-width: 25em);' -].join(' '); - -parseImport(str); - -/* -[{ - path: 'foo.css', - condition: '', - rule: '@import url("foo.css")' -}, { - path: 'bar.css', - condition: 'only screen and (min-width: 25em)', - rule: '@import "bar.css" only screen and (min-width: 25em)' -}] - */ -``` - -## License - -MIT © [Kevin Mårtensson](https://github.com/kevva) diff --git a/node_modules/parse-import/index.js b/node_modules/parse-import/index.js deleted file mode 100644 index 1665bea..0000000 --- a/node_modules/parse-import/index.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -var getImports = require('get-imports'); - -/** - * Get path from @import - * - * @param {String} str - * @api private - */ - -function path(str) { - return /(?:url\()(?:.*?)(?:\))|(["\'])(?:[^"\')]+)\1/ig.exec(str)[0] - .replace(/(?:url\()/ig, '') - .replace(/(?:\))/g, '') - .replace(/(?:["\'])/g, '') - .trim(); -} - -/** - * Get condition from @import - * - * @param {String} str - * @api private - */ - -function condition(str) { - return str.replace(/(?:url\()(?:.*?)(?:\))|(["\'])(?:[^"\')]+)\1/ig, '') - .replace(/(?:@import)(?:\s)*/g, '') - .trim(); -} - -/** - * Parse @import statements - * - * @param {String} str - * @api public - */ - -module.exports = function (str) { - var imports = getImports(str); - - return imports.map(function (imp) { - imp = imp.replace(/(?:;)$/g, ''); - - return { - path: path(imp), - condition: condition(imp), - rule: imp - }; - }); -}; diff --git a/node_modules/parse-import/package.json b/node_modules/parse-import/package.json deleted file mode 100644 index c05968b..0000000 --- a/node_modules/parse-import/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "parse-import@^2.0.0", - "scope": null, - "escapedName": "parse-import", - "name": "parse-import", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css" - ] - ], - "_from": "parse-import@>=2.0.0 <3.0.0", - "_id": "parse-import@2.0.0", - "_inCache": true, - "_location": "/parse-import", - "_nodeVersion": "0.10.32", - "_npmUser": { - "name": "kevva", - "email": "kevinmartensson@gmail.com" - }, - "_npmVersion": "2.1.7", - "_phantomChildren": {}, - "_requested": { - "raw": "parse-import@^2.0.0", - "scope": null, - "escapedName": "parse-import", - "name": "parse-import", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat-css", - "/rework-import" - ], - "_resolved": "https://registry.npmjs.org/parse-import/-/parse-import-2.0.0.tgz", - "_shasum": "2b2474030e008ab98db76c4bcbf4db5ae7306f5f", - "_shrinkwrap": null, - "_spec": "parse-import@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "https://github.com/kevva" - }, - "bugs": { - "url": "https://github.com/kevva/parse-import/issues" - }, - "dependencies": { - "get-imports": "^1.0.0" - }, - "description": "Parse CSS @import statements", - "devDependencies": { - "ava": "^0.0.4" - }, - "directories": {}, - "dist": { - "shasum": "2b2474030e008ab98db76c4bcbf4db5ae7306f5f", - "tarball": "https://registry.npmjs.org/parse-import/-/parse-import-2.0.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "11f15aa21818adce1cd8cb3741a30c03a99e5975", - "homepage": "https://github.com/kevva/parse-import", - "keywords": [ - "css", - "import", - "object", - "parse" - ], - "license": "MIT", - "maintainers": [ - { - "name": "kevva", - "email": "kevinmartensson@gmail.com" - } - ], - "name": "parse-import", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/kevva/parse-import.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "2.0.0" -} diff --git a/node_modules/parse-json/index.js b/node_modules/parse-json/index.js deleted file mode 100644 index 04add8a..0000000 --- a/node_modules/parse-json/index.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; -var errorEx = require('error-ex'); -var fallback = require('./vendor/parse'); - -var JSONError = errorEx('JSONError', { - fileName: errorEx.append('in %s') -}); - -module.exports = function (x, reviver, filename) { - if (typeof reviver === 'string') { - filename = reviver; - reviver = null; - } - - try { - try { - return JSON.parse(x, reviver); - } catch (err) { - fallback.parse(x, { - mode: 'json', - reviver: reviver - }); - - throw err; - } - } catch (err) { - var jsonErr = new JSONError(err); - - if (filename) { - jsonErr.fileName = filename; - } - - throw jsonErr; - } -}; diff --git a/node_modules/parse-json/license b/node_modules/parse-json/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/parse-json/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/parse-json/package.json b/node_modules/parse-json/package.json deleted file mode 100644 index d1a6ec8..0000000 --- a/node_modules/parse-json/package.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "parse-json@^2.2.0", - "scope": null, - "escapedName": "parse-json", - "name": "parse-json", - "rawSpec": "^2.2.0", - "spec": ">=2.2.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/load-json-file" - ] - ], - "_from": "parse-json@>=2.2.0 <3.0.0", - "_id": "parse-json@2.2.0", - "_inCache": true, - "_location": "/parse-json", - "_nodeVersion": "0.12.7", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.11.3", - "_phantomChildren": {}, - "_requested": { - "raw": "parse-json@^2.2.0", - "scope": null, - "escapedName": "parse-json", - "name": "parse-json", - "rawSpec": "^2.2.0", - "spec": ">=2.2.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/load-json-file" - ], - "_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "_shasum": "f480f40434ef80741f8469099f8dea18f55a4dc9", - "_shrinkwrap": null, - "_spec": "parse-json@^2.2.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/load-json-file", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/parse-json/issues" - }, - "dependencies": { - "error-ex": "^1.2.0" - }, - "description": "Parse JSON with more helpful errors", - "devDependencies": { - "ava": "0.0.4", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "f480f40434ef80741f8469099f8dea18f55a4dc9", - "tarball": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js", - "vendor" - ], - "gitHead": "419b0cbb83e67af53f9fd3f7ff98605ea2020eb6", - "homepage": "https://github.com/sindresorhus/parse-json", - "keywords": [ - "parse", - "json", - "graceful", - "error", - "message", - "humanize", - "friendly", - "helpful", - "string", - "str" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "parse-json", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/parse-json.git" - }, - "scripts": { - "test": "xo && node test.js" - }, - "version": "2.2.0", - "xo": { - "ignores": [ - "vendor/**" - ] - } -} diff --git a/node_modules/parse-json/readme.md b/node_modules/parse-json/readme.md deleted file mode 100644 index ca96e60..0000000 --- a/node_modules/parse-json/readme.md +++ /dev/null @@ -1,83 +0,0 @@ -# parse-json [![Build Status](https://travis-ci.org/sindresorhus/parse-json.svg?branch=master)](https://travis-ci.org/sindresorhus/parse-json) - -> Parse JSON with more helpful errors - - -## Install - -``` -$ npm install --save parse-json -``` - - -## Usage - -```js -var parseJson = require('parse-json'); -var json = '{\n\t"foo": true,\n}'; - - -JSON.parse(json); -/* -undefined:3 -} -^ -SyntaxError: Unexpected token } -*/ - - -parseJson(json); -/* -JSONError: Trailing comma in object at 3:1 -} -^ -*/ - - -parseJson(json, 'foo.json'); -/* -JSONError: Trailing comma in object at 3:1 in foo.json -} -^ -*/ - - -// you can also add the filename at a later point -try { - parseJson(json); -} catch (err) { - err.fileName = 'foo.json'; - throw err; -} -/* -JSONError: Trailing comma in object at 3:1 in foo.json -} -^ -*/ -``` - -## API - -### parseJson(input, [reviver], [filename]) - -#### input - -Type: `string` - -#### reviver - -Type: `function` - -Prescribes how the value originally produced by parsing is transformed, before being returned. See [`JSON.parse` docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter -) for more. - -#### filename - -Type: `string` - -Filename displayed in the error message. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/parse-json/vendor/parse.js b/node_modules/parse-json/vendor/parse.js deleted file mode 100644 index 5f9fe99..0000000 --- a/node_modules/parse-json/vendor/parse.js +++ /dev/null @@ -1,752 +0,0 @@ -/* - * Author: Alex Kocharin - * GIT: https://github.com/rlidwka/jju - * License: WTFPL, grab your copy here: http://www.wtfpl.net/txt/copying/ - */ - -// RTFM: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - -var Uni = require('./unicode') - -function isHexDigit(x) { - return (x >= '0' && x <= '9') - || (x >= 'A' && x <= 'F') - || (x >= 'a' && x <= 'f') -} - -function isOctDigit(x) { - return x >= '0' && x <= '7' -} - -function isDecDigit(x) { - return x >= '0' && x <= '9' -} - -var unescapeMap = { - '\'': '\'', - '"' : '"', - '\\': '\\', - 'b' : '\b', - 'f' : '\f', - 'n' : '\n', - 'r' : '\r', - 't' : '\t', - 'v' : '\v', - '/' : '/', -} - -function formatError(input, msg, position, lineno, column, json5) { - var result = msg + ' at ' + (lineno + 1) + ':' + (column + 1) - , tmppos = position - column - 1 - , srcline = '' - , underline = '' - - var isLineTerminator = json5 ? Uni.isLineTerminator : Uni.isLineTerminatorJSON - - // output no more than 70 characters before the wrong ones - if (tmppos < position - 70) { - tmppos = position - 70 - } - - while (1) { - var chr = input[++tmppos] - - if (isLineTerminator(chr) || tmppos === input.length) { - if (position >= tmppos) { - // ending line error, so show it after the last char - underline += '^' - } - break - } - srcline += chr - - if (position === tmppos) { - underline += '^' - } else if (position > tmppos) { - underline += input[tmppos] === '\t' ? '\t' : ' ' - } - - // output no more than 78 characters on the string - if (srcline.length > 78) break - } - - return result + '\n' + srcline + '\n' + underline -} - -function parse(input, options) { - // parse as a standard JSON mode - var json5 = !(options.mode === 'json' || options.legacy) - var isLineTerminator = json5 ? Uni.isLineTerminator : Uni.isLineTerminatorJSON - var isWhiteSpace = json5 ? Uni.isWhiteSpace : Uni.isWhiteSpaceJSON - - var length = input.length - , lineno = 0 - , linestart = 0 - , position = 0 - , stack = [] - - var tokenStart = function() {} - var tokenEnd = function(v) {return v} - - /* tokenize({ - raw: '...', - type: 'whitespace'|'comment'|'key'|'literal'|'separator'|'newline', - value: 'number'|'string'|'whatever', - path: [...], - }) - */ - if (options._tokenize) { - ;(function() { - var start = null - tokenStart = function() { - if (start !== null) throw Error('internal error, token overlap') - start = position - } - - tokenEnd = function(v, type) { - if (start != position) { - var hash = { - raw: input.substr(start, position-start), - type: type, - stack: stack.slice(0), - } - if (v !== undefined) hash.value = v - options._tokenize.call(null, hash) - } - start = null - return v - } - })() - } - - function fail(msg) { - var column = position - linestart - - if (!msg) { - if (position < length) { - var token = '\'' + - JSON - .stringify(input[position]) - .replace(/^"|"$/g, '') - .replace(/'/g, "\\'") - .replace(/\\"/g, '"') - + '\'' - - if (!msg) msg = 'Unexpected token ' + token - } else { - if (!msg) msg = 'Unexpected end of input' - } - } - - var error = SyntaxError(formatError(input, msg, position, lineno, column, json5)) - error.row = lineno + 1 - error.column = column + 1 - throw error - } - - function newline(chr) { - // account for - if (chr === '\r' && input[position] === '\n') position++ - linestart = position - lineno++ - } - - function parseGeneric() { - var result - - while (position < length) { - tokenStart() - var chr = input[position++] - - if (chr === '"' || (chr === '\'' && json5)) { - return tokenEnd(parseString(chr), 'literal') - - } else if (chr === '{') { - tokenEnd(undefined, 'separator') - return parseObject() - - } else if (chr === '[') { - tokenEnd(undefined, 'separator') - return parseArray() - - } else if (chr === '-' - || chr === '.' - || isDecDigit(chr) - // + number Infinity NaN - || (json5 && (chr === '+' || chr === 'I' || chr === 'N')) - ) { - return tokenEnd(parseNumber(), 'literal') - - } else if (chr === 'n') { - parseKeyword('null') - return tokenEnd(null, 'literal') - - } else if (chr === 't') { - parseKeyword('true') - return tokenEnd(true, 'literal') - - } else if (chr === 'f') { - parseKeyword('false') - return tokenEnd(false, 'literal') - - } else { - position-- - return tokenEnd(undefined) - } - } - } - - function parseKey() { - var result - - while (position < length) { - tokenStart() - var chr = input[position++] - - if (chr === '"' || (chr === '\'' && json5)) { - return tokenEnd(parseString(chr), 'key') - - } else if (chr === '{') { - tokenEnd(undefined, 'separator') - return parseObject() - - } else if (chr === '[') { - tokenEnd(undefined, 'separator') - return parseArray() - - } else if (chr === '.' - || isDecDigit(chr) - ) { - return tokenEnd(parseNumber(true), 'key') - - } else if (json5 - && Uni.isIdentifierStart(chr) || (chr === '\\' && input[position] === 'u')) { - // unicode char or a unicode sequence - var rollback = position - 1 - var result = parseIdentifier() - - if (result === undefined) { - position = rollback - return tokenEnd(undefined) - } else { - return tokenEnd(result, 'key') - } - - } else { - position-- - return tokenEnd(undefined) - } - } - } - - function skipWhiteSpace() { - tokenStart() - while (position < length) { - var chr = input[position++] - - if (isLineTerminator(chr)) { - position-- - tokenEnd(undefined, 'whitespace') - tokenStart() - position++ - newline(chr) - tokenEnd(undefined, 'newline') - tokenStart() - - } else if (isWhiteSpace(chr)) { - // nothing - - } else if (chr === '/' - && json5 - && (input[position] === '/' || input[position] === '*') - ) { - position-- - tokenEnd(undefined, 'whitespace') - tokenStart() - position++ - skipComment(input[position++] === '*') - tokenEnd(undefined, 'comment') - tokenStart() - - } else { - position-- - break - } - } - return tokenEnd(undefined, 'whitespace') - } - - function skipComment(multi) { - while (position < length) { - var chr = input[position++] - - if (isLineTerminator(chr)) { - // LineTerminator is an end of singleline comment - if (!multi) { - // let parent function deal with newline - position-- - return - } - - newline(chr) - - } else if (chr === '*' && multi) { - // end of multiline comment - if (input[position] === '/') { - position++ - return - } - - } else { - // nothing - } - } - - if (multi) { - fail('Unclosed multiline comment') - } - } - - function parseKeyword(keyword) { - // keyword[0] is not checked because it should've checked earlier - var _pos = position - var len = keyword.length - for (var i=1; i= length || keyword[i] != input[position]) { - position = _pos-1 - fail() - } - position++ - } - } - - function parseObject() { - var result = options.null_prototype ? Object.create(null) : {} - , empty_object = {} - , is_non_empty = false - - while (position < length) { - skipWhiteSpace() - var item1 = parseKey() - skipWhiteSpace() - tokenStart() - var chr = input[position++] - tokenEnd(undefined, 'separator') - - if (chr === '}' && item1 === undefined) { - if (!json5 && is_non_empty) { - position-- - fail('Trailing comma in object') - } - return result - - } else if (chr === ':' && item1 !== undefined) { - skipWhiteSpace() - stack.push(item1) - var item2 = parseGeneric() - stack.pop() - - if (item2 === undefined) fail('No value found for key ' + item1) - if (typeof(item1) !== 'string') { - if (!json5 || typeof(item1) !== 'number') { - fail('Wrong key type: ' + item1) - } - } - - if ((item1 in empty_object || empty_object[item1] != null) && options.reserved_keys !== 'replace') { - if (options.reserved_keys === 'throw') { - fail('Reserved key: ' + item1) - } else { - // silently ignore it - } - } else { - if (typeof(options.reviver) === 'function') { - item2 = options.reviver.call(null, item1, item2) - } - - if (item2 !== undefined) { - is_non_empty = true - Object.defineProperty(result, item1, { - value: item2, - enumerable: true, - configurable: true, - writable: true, - }) - } - } - - skipWhiteSpace() - - tokenStart() - var chr = input[position++] - tokenEnd(undefined, 'separator') - - if (chr === ',') { - continue - - } else if (chr === '}') { - return result - - } else { - fail() - } - - } else { - position-- - fail() - } - } - - fail() - } - - function parseArray() { - var result = [] - - while (position < length) { - skipWhiteSpace() - stack.push(result.length) - var item = parseGeneric() - stack.pop() - skipWhiteSpace() - tokenStart() - var chr = input[position++] - tokenEnd(undefined, 'separator') - - if (item !== undefined) { - if (typeof(options.reviver) === 'function') { - item = options.reviver.call(null, String(result.length), item) - } - if (item === undefined) { - result.length++ - item = true // hack for check below, not included into result - } else { - result.push(item) - } - } - - if (chr === ',') { - if (item === undefined) { - fail('Elisions are not supported') - } - - } else if (chr === ']') { - if (!json5 && item === undefined && result.length) { - position-- - fail('Trailing comma in array') - } - return result - - } else { - position-- - fail() - } - } - } - - function parseNumber() { - // rewind because we don't know first char - position-- - - var start = position - , chr = input[position++] - , t - - var to_num = function(is_octal) { - var str = input.substr(start, position - start) - - if (is_octal) { - var result = parseInt(str.replace(/^0o?/, ''), 8) - } else { - var result = Number(str) - } - - if (Number.isNaN(result)) { - position-- - fail('Bad numeric literal - "' + input.substr(start, position - start + 1) + '"') - } else if (!json5 && !str.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i)) { - // additional restrictions imposed by json - position-- - fail('Non-json numeric literal - "' + input.substr(start, position - start + 1) + '"') - } else { - return result - } - } - - // ex: -5982475.249875e+29384 - // ^ skipping this - if (chr === '-' || (chr === '+' && json5)) chr = input[position++] - - if (chr === 'N' && json5) { - parseKeyword('NaN') - return NaN - } - - if (chr === 'I' && json5) { - parseKeyword('Infinity') - - // returning +inf or -inf - return to_num() - } - - if (chr >= '1' && chr <= '9') { - // ex: -5982475.249875e+29384 - // ^^^ skipping these - while (position < length && isDecDigit(input[position])) position++ - chr = input[position++] - } - - // special case for leading zero: 0.123456 - if (chr === '0') { - chr = input[position++] - - // new syntax, "0o777" old syntax, "0777" - var is_octal = chr === 'o' || chr === 'O' || isOctDigit(chr) - var is_hex = chr === 'x' || chr === 'X' - - if (json5 && (is_octal || is_hex)) { - while (position < length - && (is_hex ? isHexDigit : isOctDigit)( input[position] ) - ) position++ - - var sign = 1 - if (input[start] === '-') { - sign = -1 - start++ - } else if (input[start] === '+') { - start++ - } - - return sign * to_num(is_octal) - } - } - - if (chr === '.') { - // ex: -5982475.249875e+29384 - // ^^^ skipping these - while (position < length && isDecDigit(input[position])) position++ - chr = input[position++] - } - - if (chr === 'e' || chr === 'E') { - chr = input[position++] - if (chr === '-' || chr === '+') position++ - // ex: -5982475.249875e+29384 - // ^^^ skipping these - while (position < length && isDecDigit(input[position])) position++ - chr = input[position++] - } - - // we have char in the buffer, so count for it - position-- - return to_num() - } - - function parseIdentifier() { - // rewind because we don't know first char - position-- - - var result = '' - - while (position < length) { - var chr = input[position++] - - if (chr === '\\' - && input[position] === 'u' - && isHexDigit(input[position+1]) - && isHexDigit(input[position+2]) - && isHexDigit(input[position+3]) - && isHexDigit(input[position+4]) - ) { - // UnicodeEscapeSequence - chr = String.fromCharCode(parseInt(input.substr(position+1, 4), 16)) - position += 5 - } - - if (result.length) { - // identifier started - if (Uni.isIdentifierPart(chr)) { - result += chr - } else { - position-- - return result - } - - } else { - if (Uni.isIdentifierStart(chr)) { - result += chr - } else { - return undefined - } - } - } - - fail() - } - - function parseString(endChar) { - // 7.8.4 of ES262 spec - var result = '' - - while (position < length) { - var chr = input[position++] - - if (chr === endChar) { - return result - - } else if (chr === '\\') { - if (position >= length) fail() - chr = input[position++] - - if (unescapeMap[chr] && (json5 || (chr != 'v' && chr != "'"))) { - result += unescapeMap[chr] - - } else if (json5 && isLineTerminator(chr)) { - // line continuation - newline(chr) - - } else if (chr === 'u' || (chr === 'x' && json5)) { - // unicode/character escape sequence - var off = chr === 'u' ? 4 : 2 - - // validation for \uXXXX - for (var i=0; i= length) fail() - if (!isHexDigit(input[position])) fail('Bad escape sequence') - position++ - } - - result += String.fromCharCode(parseInt(input.substr(position-off, off), 16)) - } else if (json5 && isOctDigit(chr)) { - if (chr < '4' && isOctDigit(input[position]) && isOctDigit(input[position+1])) { - // three-digit octal - var digits = 3 - } else if (isOctDigit(input[position])) { - // two-digit octal - var digits = 2 - } else { - var digits = 1 - } - position += digits - 1 - result += String.fromCharCode(parseInt(input.substr(position-digits, digits), 8)) - /*if (!isOctDigit(input[position])) { - // \0 is allowed still - result += '\0' - } else { - fail('Octal literals are not supported') - }*/ - - } else if (json5) { - // \X -> x - result += chr - - } else { - position-- - fail() - } - - } else if (isLineTerminator(chr)) { - fail() - - } else { - if (!json5 && chr.charCodeAt(0) < 32) { - position-- - fail('Unexpected control character') - } - - // SourceCharacter but not one of " or \ or LineTerminator - result += chr - } - } - - fail() - } - - skipWhiteSpace() - var return_value = parseGeneric() - if (return_value !== undefined || position < length) { - skipWhiteSpace() - - if (position >= length) { - if (typeof(options.reviver) === 'function') { - return_value = options.reviver.call(null, '', return_value) - } - return return_value - } else { - fail() - } - - } else { - if (position) { - fail('No data, only a whitespace') - } else { - fail('No data, empty input') - } - } -} - -/* - * parse(text, options) - * or - * parse(text, reviver) - * - * where: - * text - string - * options - object - * reviver - function - */ -module.exports.parse = function parseJSON(input, options) { - // support legacy functions - if (typeof(options) === 'function') { - options = { - reviver: options - } - } - - if (input === undefined) { - // parse(stringify(x)) should be equal x - // with JSON functions it is not 'cause of undefined - // so we're fixing it - return undefined - } - - // JSON.parse compat - if (typeof(input) !== 'string') input = String(input) - if (options == null) options = {} - if (options.reserved_keys == null) options.reserved_keys = 'ignore' - - if (options.reserved_keys === 'throw' || options.reserved_keys === 'ignore') { - if (options.null_prototype == null) { - options.null_prototype = true - } - } - - try { - return parse(input, options) - } catch(err) { - // jju is a recursive parser, so JSON.parse("{{{{{{{") could blow up the stack - // - // this catch is used to skip all those internal calls - if (err instanceof SyntaxError && err.row != null && err.column != null) { - var old_err = err - err = SyntaxError(old_err.message) - err.column = old_err.column - err.row = old_err.row - } - throw err - } -} - -module.exports.tokenize = function tokenizeJSON(input, options) { - if (options == null) options = {} - - options._tokenize = function(smth) { - if (options._addstack) smth.stack.unshift.apply(smth.stack, options._addstack) - tokens.push(smth) - } - - var tokens = [] - tokens.data = module.exports.parse(input, options) - return tokens -} - diff --git a/node_modules/parse-json/vendor/unicode.js b/node_modules/parse-json/vendor/unicode.js deleted file mode 100644 index 1a29143..0000000 --- a/node_modules/parse-json/vendor/unicode.js +++ /dev/null @@ -1,71 +0,0 @@ - -// This is autogenerated with esprima tools, see: -// https://github.com/ariya/esprima/blob/master/esprima.js -// -// PS: oh God, I hate Unicode - -// ECMAScript 5.1/Unicode v6.3.0 NonAsciiIdentifierStart: - -var Uni = module.exports - -module.exports.isWhiteSpace = function isWhiteSpace(x) { - // section 7.2, table 2 - return x === '\u0020' - || x === '\u00A0' - || x === '\uFEFF' // <-- this is not a Unicode WS, only a JS one - || (x >= '\u0009' && x <= '\u000D') // 9 A B C D - - // + whitespace characters from unicode, category Zs - || x === '\u1680' - || x === '\u180E' - || (x >= '\u2000' && x <= '\u200A') // 0 1 2 3 4 5 6 7 8 9 A - || x === '\u2028' - || x === '\u2029' - || x === '\u202F' - || x === '\u205F' - || x === '\u3000' -} - -module.exports.isWhiteSpaceJSON = function isWhiteSpaceJSON(x) { - return x === '\u0020' - || x === '\u0009' - || x === '\u000A' - || x === '\u000D' -} - -module.exports.isLineTerminator = function isLineTerminator(x) { - // ok, here is the part when JSON is wrong - // section 7.3, table 3 - return x === '\u000A' - || x === '\u000D' - || x === '\u2028' - || x === '\u2029' -} - -module.exports.isLineTerminatorJSON = function isLineTerminatorJSON(x) { - return x === '\u000A' - || x === '\u000D' -} - -module.exports.isIdentifierStart = function isIdentifierStart(x) { - return x === '$' - || x === '_' - || (x >= 'A' && x <= 'Z') - || (x >= 'a' && x <= 'z') - || (x >= '\u0080' && Uni.NonAsciiIdentifierStart.test(x)) -} - -module.exports.isIdentifierPart = function isIdentifierPart(x) { - return x === '$' - || x === '_' - || (x >= 'A' && x <= 'Z') - || (x >= 'a' && x <= 'z') - || (x >= '0' && x <= '9') // <-- addition to Start - || (x >= '\u0080' && Uni.NonAsciiIdentifierPart.test(x)) -} - -module.exports.NonAsciiIdentifierStart = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/ - -// ECMAScript 5.1/Unicode v6.3.0 NonAsciiIdentifierPart: - -module.exports.NonAsciiIdentifierPart = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/ diff --git a/node_modules/parse-passwd/LICENSE b/node_modules/parse-passwd/LICENSE deleted file mode 100644 index f92fdcf..0000000 --- a/node_modules/parse-passwd/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Brian Woodward - -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/parse-passwd/README.md b/node_modules/parse-passwd/README.md deleted file mode 100644 index 31b1e79..0000000 --- a/node_modules/parse-passwd/README.md +++ /dev/null @@ -1,86 +0,0 @@ -# parse-passwd [![NPM version](https://img.shields.io/npm/v/parse-passwd.svg?style=flat)](https://www.npmjs.com/package/parse-passwd) [![NPM downloads](https://img.shields.io/npm/dm/parse-passwd.svg?style=flat)](https://npmjs.org/package/parse-passwd) [![Linux Build Status](https://img.shields.io/travis/doowb/parse-passwd.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/parse-passwd) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/parse-passwd.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/doowb/parse-passwd) - -> Parse a passwd file into a list of users. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save parse-passwd -``` - -## Usage - -```js -var parse = require('parse-passwd'); -``` - -## API - -**Example** - -```js -// assuming '/etc/passwd' contains: -// doowb:*:123:123:Brian Woodward:/Users/doowb:/bin/bash -console.log(parse(fs.readFileSync('/etc/passwd', 'utf8'))); - -//=> [ -//=> { -//=> username: 'doowb', -//=> password: '*', -//=> uid: '123', -//=> gid: '123', -//=> gecos: 'Brian Woodward', -//=> homedir: '/Users/doowb', -//=> shell: '/bin/bash' -//=> } -//=> ] -``` - -**Params** - -* `content` **{String}**: Content of a passwd file to parse. -* `returns` **{Array}**: Array of user objects parsed from the content. - -## About - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -Please read the [contributing guide](contributing.md) for avice on opening issues, pull requests, and coding standards. - -### Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Author - -**Brian Woodward** - -* [github/doowb](https://github.com/doowb) -* [twitter/doowb](http://twitter.com/doowb) - -### License - -Copyright © 2016, [Brian Woodward](https://github.com/doowb). -Released under the [MIT license](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 19, 2016._ \ No newline at end of file diff --git a/node_modules/parse-passwd/index.js b/node_modules/parse-passwd/index.js deleted file mode 100644 index 7524520..0000000 --- a/node_modules/parse-passwd/index.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -/** - * Parse the content of a passwd file into a list of user objects. - * This function ignores blank lines and comments. - * - * ```js - * // assuming '/etc/passwd' contains: - * // doowb:*:123:123:Brian Woodward:/Users/doowb:/bin/bash - * console.log(parse(fs.readFileSync('/etc/passwd', 'utf8'))); - * - * //=> [ - * //=> { - * //=> username: 'doowb', - * //=> password: '*', - * //=> uid: '123', - * //=> gid: '123', - * //=> gecos: 'Brian Woodward', - * //=> homedir: '/Users/doowb', - * //=> shell: '/bin/bash' - * //=> } - * //=> ] - * ``` - * @param {String} `content` Content of a passwd file to parse. - * @return {Array} Array of user objects parsed from the content. - * @api public - */ - -module.exports = function(content) { - if (typeof content !== 'string') { - throw new Error('expected a string'); - } - return content - .split('\n') - .map(user) - .filter(Boolean); -}; - -function user(line, i) { - if (!line || !line.length || line.charAt(0) === '#') { - return null; - } - - // see https://en.wikipedia.org/wiki/Passwd for field descriptions - var fields = line.split(':'); - return { - username: fields[0], - password: fields[1], - uid: fields[2], - gid: fields[3], - // see https://en.wikipedia.org/wiki/Gecos_field for GECOS field descriptions - gecos: fields[4], - homedir: fields[5], - shell: fields[6] - }; -} diff --git a/node_modules/parse-passwd/package.json b/node_modules/parse-passwd/package.json deleted file mode 100644 index baa7930..0000000 --- a/node_modules/parse-passwd/package.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "parse-passwd@^1.0.0", - "scope": null, - "escapedName": "parse-passwd", - "name": "parse-passwd", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/homedir-polyfill" - ] - ], - "_from": "parse-passwd@>=1.0.0 <2.0.0", - "_id": "parse-passwd@1.0.0", - "_inCache": true, - "_location": "/parse-passwd", - "_nodeVersion": "5.1.1", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/parse-passwd-1.0.0.tgz_1476899025854_0.2723590866662562" - }, - "_npmUser": { - "name": "doowb", - "email": "brian.woodward@gmail.com" - }, - "_npmVersion": "3.7.5", - "_phantomChildren": {}, - "_requested": { - "raw": "parse-passwd@^1.0.0", - "scope": null, - "escapedName": "parse-passwd", - "name": "parse-passwd", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/homedir-polyfill" - ], - "_resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "_shasum": "6d5b934a456993b23d37f40a382d6f1666a8e5c6", - "_shrinkwrap": null, - "_spec": "parse-passwd@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/homedir-polyfill", - "author": { - "name": "Brian Woodward", - "url": "https://github.com/doowb" - }, - "bugs": { - "url": "https://github.com/doowb/parse-passwd/issues" - }, - "dependencies": {}, - "description": "Parse a passwd file into a list of users.", - "devDependencies": { - "gulp-format-md": "^0.1.11", - "mocha": "^3.1.2" - }, - "directories": {}, - "dist": { - "shasum": "6d5b934a456993b23d37f40a382d6f1666a8e5c6", - "tarball": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js", - "LICENSE" - ], - "gitHead": "0c3c36bcb48d1af473f7f0665adb5b4c892cd506", - "homepage": "https://github.com/doowb/parse-passwd", - "keywords": [ - "etc", - "etc-passwd", - "etc/passwd", - "parse", - "parse-passwd", - "passwd" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], - "name": "parse-passwd", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/doowb/parse-passwd.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - }, - "related": { - "list": [] - }, - "reflinks": [ - "verb", - "verb-generate-readme" - ] - }, - "version": "1.0.0" -} diff --git a/node_modules/path-dirname/index.js b/node_modules/path-dirname/index.js deleted file mode 100644 index ed67817..0000000 --- a/node_modules/path-dirname/index.js +++ /dev/null @@ -1,143 +0,0 @@ -'use strict'; - -var path = require('path'); -var inspect = require('util').inspect; - -function assertPath(path) { - if (typeof path !== 'string') { - throw new TypeError('Path must be a string. Received ' + inspect(path)); - } -} - -function posix(path) { - assertPath(path); - if (path.length === 0) - return '.'; - var code = path.charCodeAt(0); - var hasRoot = (code === 47/*/*/); - var end = -1; - var matchedSlash = true; - for (var i = path.length - 1; i >= 1; --i) { - code = path.charCodeAt(i); - if (code === 47/*/*/) { - if (!matchedSlash) { - end = i; - break; - } - } else { - // We saw the first non-path separator - matchedSlash = false; - } - } - - if (end === -1) - return hasRoot ? '/' : '.'; - if (hasRoot && end === 1) - return '//'; - return path.slice(0, end); -} - -function win32(path) { - assertPath(path); - var len = path.length; - if (len === 0) - return '.'; - var rootEnd = -1; - var end = -1; - var matchedSlash = true; - var offset = 0; - var code = path.charCodeAt(0); - - // Try to match a root - if (len > 1) { - if (code === 47/*/*/ || code === 92/*\*/) { - // Possible UNC root - - rootEnd = offset = 1; - - code = path.charCodeAt(1); - if (code === 47/*/*/ || code === 92/*\*/) { - // Matched double path separator at beginning - var j = 2; - var last = j; - // Match 1 or more non-path separators - for (; j < len; ++j) { - code = path.charCodeAt(j); - if (code === 47/*/*/ || code === 92/*\*/) - break; - } - if (j < len && j !== last) { - // Matched! - last = j; - // Match 1 or more path separators - for (; j < len; ++j) { - code = path.charCodeAt(j); - if (code !== 47/*/*/ && code !== 92/*\*/) - break; - } - if (j < len && j !== last) { - // Matched! - last = j; - // Match 1 or more non-path separators - for (; j < len; ++j) { - code = path.charCodeAt(j); - if (code === 47/*/*/ || code === 92/*\*/) - break; - } - if (j === len) { - // We matched a UNC root only - return path; - } - if (j !== last) { - // We matched a UNC root with leftovers - - // Offset by 1 to include the separator after the UNC root to - // treat it as a "normal root" on top of a (UNC) root - rootEnd = offset = j + 1; - } - } - } - } - } else if ((code >= 65/*A*/ && code <= 90/*Z*/) || - (code >= 97/*a*/ && code <= 122/*z*/)) { - // Possible device root - - code = path.charCodeAt(1); - if (path.charCodeAt(1) === 58/*:*/) { - rootEnd = offset = 2; - if (len > 2) { - code = path.charCodeAt(2); - if (code === 47/*/*/ || code === 92/*\*/) - rootEnd = offset = 3; - } - } - } - } else if (code === 47/*/*/ || code === 92/*\*/) { - return path[0]; - } - - for (var i = len - 1; i >= offset; --i) { - code = path.charCodeAt(i); - if (code === 47/*/*/ || code === 92/*\*/) { - if (!matchedSlash) { - end = i; - break; - } - } else { - // We saw the first non-path separator - matchedSlash = false; - } - } - - if (end === -1) { - if (rootEnd === -1) - return '.'; - else - end = rootEnd; - } - return path.slice(0, end); -} - -module.exports = process.platform === 'win32' ? win32 : posix; -module.exports.posix = posix; -module.exports.win32 = win32; diff --git a/node_modules/path-dirname/license b/node_modules/path-dirname/license deleted file mode 100644 index 1981663..0000000 --- a/node_modules/path-dirname/license +++ /dev/null @@ -1,22 +0,0 @@ - -The MIT License (MIT) - -Copyright (c) Elan Shanker and Node.js 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/path-dirname/package.json b/node_modules/path-dirname/package.json deleted file mode 100644 index 87000ee..0000000 --- a/node_modules/path-dirname/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "path-dirname@^1.0.0", - "scope": null, - "escapedName": "path-dirname", - "name": "path-dirname", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-watch/node_modules/glob-parent" - ] - ], - "_from": "path-dirname@>=1.0.0 <2.0.0", - "_id": "path-dirname@1.0.2", - "_inCache": true, - "_location": "/path-dirname", - "_nodeVersion": "5.12.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/path-dirname-1.0.2.tgz_1476811621782_0.25002457783557475" - }, - "_npmUser": { - "name": "es128", - "email": "elan.shanker+npm@gmail.com" - }, - "_npmVersion": "3.8.6", - "_phantomChildren": {}, - "_requested": { - "raw": "path-dirname@^1.0.0", - "scope": null, - "escapedName": "path-dirname", - "name": "path-dirname", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-watch/glob-parent" - ], - "_resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "_shasum": "cc33d24d525e099a5388c0336c6e32b9160609e0", - "_shrinkwrap": null, - "_spec": "path-dirname@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-watch/node_modules/glob-parent", - "author": { - "name": "Elan Shanker" - }, - "bugs": { - "url": "https://github.com/es128/path-dirname/issues" - }, - "dependencies": {}, - "description": "Node.js path.dirname() ponyfill", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "cc33d24d525e099a5388c0336c6e32b9160609e0", - "tarball": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz" - }, - "files": [ - "index.js" - ], - "gitHead": "ba28247b19f27ec3fa187088d6169241b223f9f8", - "homepage": "https://github.com/es128/path-dirname#readme", - "keywords": [ - "dirname", - "dir", - "path", - "paths", - "file", - "built-in", - "util", - "utils", - "core", - "stdlib", - "ponyfill", - "polyfill", - "shim" - ], - "license": "MIT", - "maintainers": [ - { - "name": "es128", - "email": "elan.shanker+npm@gmail.com" - } - ], - "name": "path-dirname", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/es128/path-dirname.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.0.2" -} diff --git a/node_modules/path-dirname/readme.md b/node_modules/path-dirname/readme.md deleted file mode 100644 index 652a562..0000000 --- a/node_modules/path-dirname/readme.md +++ /dev/null @@ -1,53 +0,0 @@ -# path-dirname [![Build Status](https://travis-ci.org/es128/path-dirname.svg?branch=master)](https://travis-ci.org/es128/path-dirname) - -> Node.js [`path.dirname()`](https://nodejs.org/api/path.html#path_path_dirname_path) [ponyfill](https://ponyfill.com) - -This was needed in order to expose `path.posix.dirname()` on Node.js v0.10 - -## Install - -``` -$ npm install --save path-dirname -``` - - -## Usage - -```js -const pathDirname = require('path-dirname'); - -pathDirname('/home/foo'); -//=> '/home' -pathDirname('C:\\Users\\foo'); -//=> 'C:\\Users' -pathDirname('foo'); -//=> '.' -pathDirname('foo/bar'); -//=> 'foo' - -//Using posix version for consistent output when dealing with glob escape chars -pathDirname.win32('C:\\Users\\foo/\\*bar'); -//=> 'C:\\Users\\foo/' -pathDirname.posix('C:\\Users\\foo/\\*bar'); -//=> 'C:\\Users\\foo' -``` - - -## API - -See the [`path.dirname()` docs](https://nodejs.org/api/path.html#path_path_dirname_path). - -### pathDirname(path) - -### pathDirname.posix(path) - -POSIX specific version. - -### pathDirname.win32(path) - -Windows specific version. - - -## License - -MIT diff --git a/node_modules/path-exists/index.js b/node_modules/path-exists/index.js deleted file mode 100644 index a7e680a..0000000 --- a/node_modules/path-exists/index.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -var fs = require('fs'); -var Promise = require('pinkie-promise'); - -module.exports = function (fp) { - var fn = typeof fs.access === 'function' ? fs.access : fs.stat; - - return new Promise(function (resolve) { - fn(fp, function (err) { - resolve(!err); - }); - }); -}; - -module.exports.sync = function (fp) { - var fn = typeof fs.accessSync === 'function' ? fs.accessSync : fs.statSync; - - try { - fn(fp); - return true; - } catch (err) { - return false; - } -}; diff --git a/node_modules/path-exists/license b/node_modules/path-exists/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/path-exists/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/path-exists/package.json b/node_modules/path-exists/package.json deleted file mode 100644 index b2d7bb2..0000000 --- a/node_modules/path-exists/package.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "path-exists@^2.0.0", - "scope": null, - "escapedName": "path-exists", - "name": "path-exists", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/find-up" - ] - ], - "_from": "path-exists@>=2.0.0 <3.0.0", - "_id": "path-exists@2.1.0", - "_inCache": true, - "_location": "/path-exists", - "_nodeVersion": "4.2.1", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.7", - "_phantomChildren": {}, - "_requested": { - "raw": "path-exists@^2.0.0", - "scope": null, - "escapedName": "path-exists", - "name": "path-exists", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/find-up" - ], - "_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "_shasum": "0feb6c64f0fc518d9a754dd5efb62c7022761f4b", - "_shrinkwrap": null, - "_spec": "path-exists@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/find-up", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/path-exists/issues" - }, - "dependencies": { - "pinkie-promise": "^2.0.0" - }, - "description": "Check if a path exists", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "0feb6c64f0fc518d9a754dd5efb62c7022761f4b", - "tarball": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "3af423661e78466764f87c5712263c5d7a1ce5b7", - "homepage": "https://github.com/sindresorhus/path-exists", - "keywords": [ - "path", - "exists", - "exist", - "file", - "filepath", - "fs", - "filesystem", - "file-system", - "access", - "stat" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "path-exists", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/path-exists.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.1.0" -} diff --git a/node_modules/path-exists/readme.md b/node_modules/path-exists/readme.md deleted file mode 100644 index 8fbcd68..0000000 --- a/node_modules/path-exists/readme.md +++ /dev/null @@ -1,45 +0,0 @@ -# path-exists [![Build Status](https://travis-ci.org/sindresorhus/path-exists.svg?branch=master)](https://travis-ci.org/sindresorhus/path-exists) - -> Check if a path exists - -Because [`fs.exists()`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback) is being [deprecated](https://github.com/iojs/io.js/issues/103), but there's still a genuine use-case of being able to check if a path exists for other purposes than doing IO with it. - -Never use this before handling a file though: - -> In particular, checking if a file exists before opening it is an anti-pattern that leaves you vulnerable to race conditions: another process may remove the file between the calls to `fs.exists()` and `fs.open()`. Just open the file and handle the error when it's not there. - - -## Install - -``` -$ npm install --save path-exists -``` - - -## Usage - -```js -// foo.js -var pathExists = require('path-exists'); - -pathExists('foo.js').then(function (exists) { - console.log(exists); - //=> true -}); -``` - - -## API - -### pathExists(path) - -Returns a promise that resolves to a boolean of whether the path exists. - -### pathExists.sync(path) - -Returns a boolean of whether the path exists. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/path-is-absolute/index.js b/node_modules/path-is-absolute/index.js deleted file mode 100644 index 22aa6c3..0000000 --- a/node_modules/path-is-absolute/index.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -function posix(path) { - return path.charAt(0) === '/'; -} - -function win32(path) { - // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 - var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; - var result = splitDeviceRe.exec(path); - var device = result[1] || ''; - var isUnc = Boolean(device && device.charAt(1) !== ':'); - - // UNC paths are always absolute - return Boolean(result[2] || isUnc); -} - -module.exports = process.platform === 'win32' ? win32 : posix; -module.exports.posix = posix; -module.exports.win32 = win32; diff --git a/node_modules/path-is-absolute/license b/node_modules/path-is-absolute/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/path-is-absolute/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/path-is-absolute/package.json b/node_modules/path-is-absolute/package.json deleted file mode 100644 index 86448e5..0000000 --- a/node_modules/path-is-absolute/package.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "path-is-absolute@^1.0.0", - "scope": null, - "escapedName": "path-is-absolute", - "name": "path-is-absolute", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/glob" - ] - ], - "_from": "path-is-absolute@>=1.0.0 <2.0.0", - "_id": "path-is-absolute@1.0.1", - "_inCache": true, - "_location": "/path-is-absolute", - "_nodeVersion": "6.6.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/path-is-absolute-1.0.1.tgz_1475210523565_0.9876507974695414" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "path-is-absolute@^1.0.0", - "scope": null, - "escapedName": "path-is-absolute", - "name": "path-is-absolute", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/chokidar", - "/glob", - "/gulp-watch", - "/rework-import/glob" - ], - "_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "_shasum": "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f", - "_shrinkwrap": null, - "_spec": "path-is-absolute@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/glob", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/path-is-absolute/issues" - }, - "dependencies": {}, - "description": "Node.js 0.12 path.isAbsolute() ponyfill", - "devDependencies": { - "xo": "^0.16.0" - }, - "directories": {}, - "dist": { - "shasum": "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f", - "tarball": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "edc91d348b21dac2ab65ea2fbec2868e2eff5eb6", - "homepage": "https://github.com/sindresorhus/path-is-absolute#readme", - "keywords": [ - "path", - "paths", - "file", - "dir", - "absolute", - "isabsolute", - "is-absolute", - "built-in", - "util", - "utils", - "core", - "ponyfill", - "polyfill", - "shim", - "is", - "detect", - "check" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "path-is-absolute", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/path-is-absolute.git" - }, - "scripts": { - "test": "xo && node test.js" - }, - "version": "1.0.1" -} diff --git a/node_modules/path-is-absolute/readme.md b/node_modules/path-is-absolute/readme.md deleted file mode 100644 index 8dbdf5f..0000000 --- a/node_modules/path-is-absolute/readme.md +++ /dev/null @@ -1,59 +0,0 @@ -# path-is-absolute [![Build Status](https://travis-ci.org/sindresorhus/path-is-absolute.svg?branch=master)](https://travis-ci.org/sindresorhus/path-is-absolute) - -> Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) [ponyfill](https://ponyfill.com) - - -## Install - -``` -$ npm install --save path-is-absolute -``` - - -## Usage - -```js -const pathIsAbsolute = require('path-is-absolute'); - -// Running on Linux -pathIsAbsolute('/home/foo'); -//=> true -pathIsAbsolute('C:/Users/foo'); -//=> false - -// Running on Windows -pathIsAbsolute('C:/Users/foo'); -//=> true -pathIsAbsolute('/home/foo'); -//=> false - -// Running on any OS -pathIsAbsolute.posix('/home/foo'); -//=> true -pathIsAbsolute.posix('C:/Users/foo'); -//=> false -pathIsAbsolute.win32('C:/Users/foo'); -//=> true -pathIsAbsolute.win32('/home/foo'); -//=> false -``` - - -## API - -See the [`path.isAbsolute()` docs](http://nodejs.org/api/path.html#path_path_isabsolute_path). - -### pathIsAbsolute(path) - -### pathIsAbsolute.posix(path) - -POSIX specific version. - -### pathIsAbsolute.win32(path) - -Windows specific version. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/path-is-inside/LICENSE.txt b/node_modules/path-is-inside/LICENSE.txt deleted file mode 100644 index 0bdbb61..0000000 --- a/node_modules/path-is-inside/LICENSE.txt +++ /dev/null @@ -1,47 +0,0 @@ -Dual licensed under WTFPL and MIT: - ---- - -Copyright © 2013–2016 Domenic Denicola - -This work is free. You can redistribute it and/or modify it under the -terms of the Do What The Fuck You Want To Public License, Version 2, -as published by Sam Hocevar. See below for more details. - - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - Version 2, December 2004 - - Copyright (C) 2004 Sam Hocevar - - Everyone is permitted to copy and distribute verbatim or modified - copies of this license document, and changing it is allowed as long - as the name is changed. - - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. You just DO WHAT THE FUCK YOU WANT TO. - ---- - -The MIT License (MIT) - -Copyright © 2013–2016 Domenic Denicola - -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/path-is-inside/lib/path-is-inside.js b/node_modules/path-is-inside/lib/path-is-inside.js deleted file mode 100644 index 596dfd3..0000000 --- a/node_modules/path-is-inside/lib/path-is-inside.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -var path = require("path"); - -module.exports = function (thePath, potentialParent) { - // For inside-directory checking, we want to allow trailing slashes, so normalize. - thePath = stripTrailingSep(thePath); - potentialParent = stripTrailingSep(potentialParent); - - // Node treats only Windows as case-insensitive in its path module; we follow those conventions. - if (process.platform === "win32") { - thePath = thePath.toLowerCase(); - potentialParent = potentialParent.toLowerCase(); - } - - return thePath.lastIndexOf(potentialParent, 0) === 0 && - ( - thePath[potentialParent.length] === path.sep || - thePath[potentialParent.length] === undefined - ); -}; - -function stripTrailingSep(thePath) { - if (thePath[thePath.length - 1] === path.sep) { - return thePath.slice(0, -1); - } - return thePath; -} diff --git a/node_modules/path-is-inside/package.json b/node_modules/path-is-inside/package.json deleted file mode 100644 index 87f1ecb..0000000 --- a/node_modules/path-is-inside/package.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "path-is-inside@^1.0.1", - "scope": null, - "escapedName": "path-is-inside", - "name": "path-is-inside", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/is-path-inside" - ] - ], - "_from": "path-is-inside@>=1.0.1 <2.0.0", - "_id": "path-is-inside@1.0.2", - "_inCache": true, - "_location": "/path-is-inside", - "_nodeVersion": "6.2.2", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/path-is-inside-1.0.2.tgz_1473550509195_0.936812553787604" - }, - "_npmUser": { - "name": "domenic", - "email": "d@domenic.me" - }, - "_npmVersion": "3.9.5", - "_phantomChildren": {}, - "_requested": { - "raw": "path-is-inside@^1.0.1", - "scope": null, - "escapedName": "path-is-inside", - "name": "path-is-inside", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/is-path-inside" - ], - "_resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "_shasum": "365417dede44430d1c11af61027facf074bdfc53", - "_shrinkwrap": null, - "_spec": "path-is-inside@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/is-path-inside", - "author": { - "name": "Domenic Denicola", - "email": "d@domenic.me", - "url": "https://domenic.me" - }, - "bugs": { - "url": "https://github.com/domenic/path-is-inside/issues" - }, - "dependencies": {}, - "description": "Tests whether one path is inside another path", - "devDependencies": { - "jshint": "~2.3.0", - "mocha": "~1.15.1" - }, - "directories": {}, - "dist": { - "shasum": "365417dede44430d1c11af61027facf074bdfc53", - "tarball": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz" - }, - "files": [ - "lib" - ], - "gitHead": "05a9bf7c5e008505539e14e96c4d2fc8b2c6d058", - "homepage": "https://github.com/domenic/path-is-inside#readme", - "keywords": [ - "path", - "directory", - "folder", - "inside", - "relative" - ], - "license": "(WTFPL OR MIT)", - "main": "lib/path-is-inside.js", - "maintainers": [ - { - "name": "domenic", - "email": "domenic@domenicdenicola.com" - } - ], - "name": "path-is-inside", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/domenic/path-is-inside.git" - }, - "scripts": { - "lint": "jshint lib", - "test": "mocha" - }, - "version": "1.0.2" -} diff --git a/node_modules/path-parse/.travis.yml b/node_modules/path-parse/.travis.yml deleted file mode 100644 index dae31da..0000000 --- a/node_modules/path-parse/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: - - "0.12" - - "0.11" - - "0.10" - - "0.10.12" - - "0.8" - - "0.6" - - "iojs" diff --git a/node_modules/path-parse/README.md b/node_modules/path-parse/README.md deleted file mode 100644 index c6af02c..0000000 --- a/node_modules/path-parse/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# path-parse [![Build Status](https://travis-ci.org/jbgutierrez/path-parse.svg?branch=master)](https://travis-ci.org/jbgutierrez/path-parse) - -> Node.js [`path.parse(pathString)`](https://nodejs.org/api/path.html#path_path_parse_pathstring) ponyfill. - -> Ponyfill: A polyfill that doesn't overwrite the native method - -## Install - -``` -$ npm install --save path-parse -``` - -## Usage - -```js -var pathParse = require('path-parse'); - -pathParse('/home/user/dir/file.txt'); -//=> { -// root : "/", -// dir : "/home/user/dir", -// base : "file.txt", -// ext : ".txt", -// name : "file" -// } -``` - -## API - -See [`path.parse(pathString)`](https://nodejs.org/api/path.html#path_path_parse_pathstring) docs. - -### pathParse(path) - -### pathParse.posix(path) - -The Posix specific version. - -### pathParse.win32(path) - -The Windows specific version. - -## License - -MIT © [Javier Blanco](http://jbgutierrez.info) diff --git a/node_modules/path-parse/index.js b/node_modules/path-parse/index.js deleted file mode 100644 index 3b7601f..0000000 --- a/node_modules/path-parse/index.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; - -var isWindows = process.platform === 'win32'; - -// Regex to split a windows path into three parts: [*, device, slash, -// tail] windows-only -var splitDeviceRe = - /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; - -// Regex to split the tail part of the above into [*, dir, basename, ext] -var splitTailRe = - /^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/; - -var win32 = {}; - -// Function to split a filename into [root, dir, basename, ext] -function win32SplitPath(filename) { - // Separate device+slash from tail - var result = splitDeviceRe.exec(filename), - device = (result[1] || '') + (result[2] || ''), - tail = result[3] || ''; - // Split the tail into dir, basename and extension - var result2 = splitTailRe.exec(tail), - dir = result2[1], - basename = result2[2], - ext = result2[3]; - return [device, dir, basename, ext]; -} - -win32.parse = function(pathString) { - if (typeof pathString !== 'string') { - throw new TypeError( - "Parameter 'pathString' must be a string, not " + typeof pathString - ); - } - var allParts = win32SplitPath(pathString); - if (!allParts || allParts.length !== 4) { - throw new TypeError("Invalid path '" + pathString + "'"); - } - return { - root: allParts[0], - dir: allParts[0] + allParts[1].slice(0, -1), - base: allParts[2], - ext: allParts[3], - name: allParts[2].slice(0, allParts[2].length - allParts[3].length) - }; -}; - - - -// Split a filename into [root, dir, basename, ext], unix version -// 'root' is just a slash, or nothing. -var splitPathRe = - /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/; -var posix = {}; - - -function posixSplitPath(filename) { - return splitPathRe.exec(filename).slice(1); -} - - -posix.parse = function(pathString) { - if (typeof pathString !== 'string') { - throw new TypeError( - "Parameter 'pathString' must be a string, not " + typeof pathString - ); - } - var allParts = posixSplitPath(pathString); - if (!allParts || allParts.length !== 4) { - throw new TypeError("Invalid path '" + pathString + "'"); - } - allParts[1] = allParts[1] || ''; - allParts[2] = allParts[2] || ''; - allParts[3] = allParts[3] || ''; - - return { - root: allParts[0], - dir: allParts[0] + allParts[1].slice(0, -1), - base: allParts[2], - ext: allParts[3], - name: allParts[2].slice(0, allParts[2].length - allParts[3].length) - }; -}; - - -if (isWindows) - module.exports = win32.parse; -else /* posix */ - module.exports = posix.parse; - -module.exports.posix = posix.parse; -module.exports.win32 = win32.parse; diff --git a/node_modules/path-parse/index.min.js b/node_modules/path-parse/index.min.js deleted file mode 100644 index 027da51..0000000 --- a/node_modules/path-parse/index.min.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var isWindows=process.platform==="win32";var splitDeviceRe=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var splitTailRe=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;var win32={};function win32SplitPath(b){var a=splitDeviceRe.exec(b),g=(a[1]||"")+(a[2]||""),e=a[3]||"";var d=splitTailRe.exec(e),c=d[1],h=d[2],f=d[3];return[g,c,h,f]}win32.parse=function(b){if(typeof b!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof b)}var a=win32SplitPath(b);if(!a||a.length!==4){throw new TypeError("Invalid path '"+b+"'")}return{root:a[0],dir:a[0]+a[1].slice(0,-1),base:a[2],ext:a[3],name:a[2].slice(0,a[2].length-a[3].length)}};var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var posix={};function posixSplitPath(a){return splitPathRe.exec(a).slice(1)}posix.parse=function(b){if(typeof b!=="string"){throw new TypeError("Parameter 'pathString' must be a string, not "+typeof b)}var a=posixSplitPath(b);if(!a||a.length!==4){throw new TypeError("Invalid path '"+b+"'")}a[1]=a[1]||"";a[2]=a[2]||"";a[3]=a[3]||"";return{root:a[0],dir:a[0]+a[1].slice(0,-1),base:a[2],ext:a[3],name:a[2].slice(0,a[2].length-a[3].length)}};if(isWindows){module.exports=win32.parse}else{module.exports=posix.parse}module.exports.posix=posix.parse;module.exports.win32=win32.parse; \ No newline at end of file diff --git a/node_modules/path-parse/package.json b/node_modules/path-parse/package.json deleted file mode 100644 index 9046da7..0000000 --- a/node_modules/path-parse/package.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "path-parse@^1.0.5", - "scope": null, - "escapedName": "path-parse", - "name": "path-parse", - "rawSpec": "^1.0.5", - "spec": ">=1.0.5 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/resolve" - ] - ], - "_from": "path-parse@>=1.0.5 <2.0.0", - "_id": "path-parse@1.0.5", - "_inCache": true, - "_location": "/path-parse", - "_npmUser": { - "name": "jbgutierrez", - "email": "jbgutierrez@gmail.com" - }, - "_npmVersion": "1.4.9", - "_phantomChildren": {}, - "_requested": { - "raw": "path-parse@^1.0.5", - "scope": null, - "escapedName": "path-parse", - "name": "path-parse", - "rawSpec": "^1.0.5", - "spec": ">=1.0.5 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/resolve" - ], - "_resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "_shasum": "3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1", - "_shrinkwrap": null, - "_spec": "path-parse@^1.0.5", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/resolve", - "author": { - "name": "Javier Blanco", - "email": "http://jbgutierrez.info" - }, - "bugs": { - "url": "https://github.com/jbgutierrez/path-parse/issues" - }, - "dependencies": {}, - "description": "Node.js path.parse() ponyfill", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1", - "tarball": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz" - }, - "homepage": "https://github.com/jbgutierrez/path-parse#readme", - "keywords": [ - "path", - "paths", - "file", - "dir", - "parse", - "built-in", - "util", - "utils", - "core", - "ponyfill", - "polyfill", - "shim" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jbgutierrez", - "email": "jbgutierrez@gmail.com" - } - ], - "name": "path-parse", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jbgutierrez/path-parse.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.0.5" -} diff --git a/node_modules/path-parse/test.js b/node_modules/path-parse/test.js deleted file mode 100644 index 0b30c12..0000000 --- a/node_modules/path-parse/test.js +++ /dev/null @@ -1,77 +0,0 @@ -var assert = require('assert'); -var pathParse = require('./index'); - -var winParseTests = [ - [{ root: 'C:\\', dir: 'C:\\path\\dir', base: 'index.html', ext: '.html', name: 'index' }, 'C:\\path\\dir\\index.html'], - [{ root: 'C:\\', dir: 'C:\\another_path\\DIR\\1\\2\\33', base: 'index', ext: '', name: 'index' }, 'C:\\another_path\\DIR\\1\\2\\33\\index'], - [{ root: '', dir: 'another_path\\DIR with spaces\\1\\2\\33', base: 'index', ext: '', name: 'index' }, 'another_path\\DIR with spaces\\1\\2\\33\\index'], - [{ root: '\\', dir: '\\foo', base: 'C:', ext: '', name: 'C:' }, '\\foo\\C:'], - [{ root: '', dir: '', base: 'file', ext: '', name: 'file' }, 'file'], - [{ root: '', dir: '.', base: 'file', ext: '', name: 'file' }, '.\\file'], - - // unc - [{ root: '\\\\server\\share\\', dir: '\\\\server\\share\\', base: 'file_path', ext: '', name: 'file_path' }, '\\\\server\\share\\file_path'], - [{ root: '\\\\server two\\shared folder\\', dir: '\\\\server two\\shared folder\\', base: 'file path.zip', ext: '.zip', name: 'file path' }, '\\\\server two\\shared folder\\file path.zip'], - [{ root: '\\\\teela\\admin$\\', dir: '\\\\teela\\admin$\\', base: 'system32', ext: '', name: 'system32' }, '\\\\teela\\admin$\\system32'], - [{ root: '\\\\?\\UNC\\', dir: '\\\\?\\UNC\\server', base: 'share', ext: '', name: 'share' }, '\\\\?\\UNC\\server\\share'] -]; - -var winSpecialCaseFormatTests = [ - [{dir: 'some\\dir'}, 'some\\dir\\'], - [{base: 'index.html'}, 'index.html'], - [{}, ''] -]; - -var unixParseTests = [ - [{ root: '/', dir: '/home/user/dir', base: 'file.txt', ext: '.txt', name: 'file' }, '/home/user/dir/file.txt'], - [{ root: '/', dir: '/home/user/a dir', base: 'another File.zip', ext: '.zip', name: 'another File' }, '/home/user/a dir/another File.zip'], - [{ root: '/', dir: '/home/user/a dir/', base: 'another&File.', ext: '.', name: 'another&File' }, '/home/user/a dir//another&File.'], - [{ root: '/', dir: '/home/user/a$$$dir/', base: 'another File.zip', ext: '.zip', name: 'another File' }, '/home/user/a$$$dir//another File.zip'], - [{ root: '', dir: 'user/dir', base: 'another File.zip', ext: '.zip', name: 'another File' }, 'user/dir/another File.zip'], - [{ root: '', dir: '', base: 'file', ext: '', name: 'file' }, 'file'], - [{ root: '', dir: '', base: '.\\file', ext: '', name: '.\\file' }, '.\\file'], - [{ root: '', dir: '.', base: 'file', ext: '', name: 'file' }, './file'], - [{ root: '', dir: '', base: 'C:\\foo', ext: '', name: 'C:\\foo' }, 'C:\\foo'] -]; - -var unixSpecialCaseFormatTests = [ - [{dir: 'some/dir'}, 'some/dir/'], - [{base: 'index.html'}, 'index.html'], - [{}, ''] -]; - -var errors = [ - {input: null, message: /Parameter 'pathString' must be a string, not/}, - {input: {}, message: /Parameter 'pathString' must be a string, not object/}, - {input: true, message: /Parameter 'pathString' must be a string, not boolean/}, - {input: 1, message: /Parameter 'pathString' must be a string, not number/}, - {input: undefined, message: /Parameter 'pathString' must be a string, not undefined/}, -]; - -checkParseFormat(pathParse.win32, winParseTests); -checkParseFormat(pathParse.posix, unixParseTests); -checkErrors(pathParse.win32); -checkErrors(pathParse.posix); - -function checkErrors(parse) { - errors.forEach(function(errorCase) { - try { - parse(errorCase.input); - } catch(err) { - assert.ok(err instanceof TypeError); - assert.ok( - errorCase.message.test(err.message), - 'expected ' + errorCase.message + ' to match ' + err.message - ); - return; - } - - assert.fail('should have thrown'); - }); -} - -function checkParseFormat(parse, testCases) { - testCases.forEach(function(testCase) { - assert.deepEqual(parse(testCase[1]), testCase[0]); - }); -} diff --git a/node_modules/path-parse/test.min.js b/node_modules/path-parse/test.min.js deleted file mode 100644 index 90cc2b8..0000000 --- a/node_modules/path-parse/test.min.js +++ /dev/null @@ -1 +0,0 @@ -var assert=require("assert");var pathParse=require("./index");var winParseTests=[[{root:"C:\\",dir:"C:\\path\\dir",base:"index.html",ext:".html",name:"index"},"C:\\path\\dir\\index.html"],[{root:"C:\\",dir:"C:\\another_path\\DIR\\1\\2\\33",base:"index",ext:"",name:"index"},"C:\\another_path\\DIR\\1\\2\\33\\index"],[{root:"",dir:"another_path\\DIR with spaces\\1\\2\\33",base:"index",ext:"",name:"index"},"another_path\\DIR with spaces\\1\\2\\33\\index"],[{root:"\\",dir:"\\foo",base:"C:",ext:"",name:"C:"},"\\foo\\C:"],[{root:"",dir:"",base:"file",ext:"",name:"file"},"file"],[{root:"",dir:".",base:"file",ext:"",name:"file"},".\\file"],[{root:"\\\\server\\share\\",dir:"\\\\server\\share\\",base:"file_path",ext:"",name:"file_path"},"\\\\server\\share\\file_path"],[{root:"\\\\server two\\shared folder\\",dir:"\\\\server two\\shared folder\\",base:"file path.zip",ext:".zip",name:"file path"},"\\\\server two\\shared folder\\file path.zip"],[{root:"\\\\teela\\admin$\\",dir:"\\\\teela\\admin$\\",base:"system32",ext:"",name:"system32"},"\\\\teela\\admin$\\system32"],[{root:"\\\\?\\UNC\\",dir:"\\\\?\\UNC\\server",base:"share",ext:"",name:"share"},"\\\\?\\UNC\\server\\share"]];var winSpecialCaseFormatTests=[[{dir:"some\\dir"},"some\\dir\\"],[{base:"index.html"},"index.html"],[{},""]];var unixParseTests=[[{root:"/",dir:"/home/user/dir",base:"file.txt",ext:".txt",name:"file"},"/home/user/dir/file.txt"],[{root:"/",dir:"/home/user/a dir",base:"another File.zip",ext:".zip",name:"another File"},"/home/user/a dir/another File.zip"],[{root:"/",dir:"/home/user/a dir/",base:"another&File.",ext:".",name:"another&File"},"/home/user/a dir//another&File."],[{root:"/",dir:"/home/user/a$$$dir/",base:"another File.zip",ext:".zip",name:"another File"},"/home/user/a$$$dir//another File.zip"],[{root:"",dir:"user/dir",base:"another File.zip",ext:".zip",name:"another File"},"user/dir/another File.zip"],[{root:"",dir:"",base:"file",ext:"",name:"file"},"file"],[{root:"",dir:"",base:".\\file",ext:"",name:".\\file"},".\\file"],[{root:"",dir:".",base:"file",ext:"",name:"file"},"./file"],[{root:"",dir:"",base:"C:\\foo",ext:"",name:"C:\\foo"},"C:\\foo"]];var unixSpecialCaseFormatTests=[[{dir:"some/dir"},"some/dir/"],[{base:"index.html"},"index.html"],[{},""]];var errors=[{input:null,message:/Parameter 'pathString' must be a string, not/},{input:{},message:/Parameter 'pathString' must be a string, not object/},{input:true,message:/Parameter 'pathString' must be a string, not boolean/},{input:1,message:/Parameter 'pathString' must be a string, not number/},{input:undefined,message:/Parameter 'pathString' must be a string, not undefined/},];checkParseFormat(pathParse.win32,winParseTests);checkParseFormat(pathParse.posix,unixParseTests);checkErrors(pathParse.win32);checkErrors(pathParse.posix);function checkErrors(a){errors.forEach(function(c){try{a(c.input)}catch(b){assert.ok(b instanceof TypeError);assert.ok(c.message.test(b.message),"expected "+c.message+" to match "+b.message);return}assert.fail("should have thrown")})}function checkParseFormat(b,a){a.forEach(function(c){assert.deepEqual(b(c[1]),c[0])})}; \ No newline at end of file diff --git a/node_modules/path-root-regex/LICENSE b/node_modules/path-root-regex/LICENSE deleted file mode 100644 index e28e603..0000000 --- a/node_modules/path-root-regex/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016, 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/path-root-regex/README.md b/node_modules/path-root-regex/README.md deleted file mode 100644 index 9cc61ec..0000000 --- a/node_modules/path-root-regex/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# path-root-regex [![NPM version](https://img.shields.io/npm/v/path-root-regex.svg?style=flat)](https://www.npmjs.com/package/path-root-regex) [![NPM downloads](https://img.shields.io/npm/dm/path-root-regex.svg?style=flat)](https://npmjs.org/package/path-root-regex) [![Build Status](https://img.shields.io/travis/regexhq/path-root-regex.svg?style=flat)](https://travis-ci.org/regexhq/path-root-regex) - -> Regular expression for getting the root of a posix or windows filepath. - -You might also be interested in [path-root](https://github.com/jonschlinkert/path-root). - -## Usage - -The module exposes a function that must be called to get the regex (modified from the split device regex in the node.js path module); - -```js -var pathRootRegex = require('path-root-regex'); - -console.log(pathRootRegex() instanceof RegExp); -//=> true -``` - -See the [path-root](https://github.com/jonschlinkert/path-root) module for examples. - -## Related projects - -You might also be interested in these projects: - -* [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute) -* [parse-filepath](https://www.npmjs.com/package/parse-filepath): Parse a filepath into an object. Falls back on the native node.js `path.parse` method if… [more](https://www.npmjs.com/package/parse-filepath) | [homepage](https://github.com/jonschlinkert/parse-filepath) - -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/path-root-regex/issues/new). - -## Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -## Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/regexhq/path-root-regex/blob/master/LICENSE). - -*** - -_This file was generated by [verb](https://github.com/verbose/verb), v, on March 29, 2016._ \ No newline at end of file diff --git a/node_modules/path-root-regex/index.js b/node_modules/path-root-regex/index.js deleted file mode 100644 index b6eeea4..0000000 --- a/node_modules/path-root-regex/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/*! - * path-root-regex - * - * Copyright (c) 2016, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -module.exports = function() { - // Regex is modified from the split device regex in the node.js path module. - return /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?/; -}; diff --git a/node_modules/path-root-regex/package.json b/node_modules/path-root-regex/package.json deleted file mode 100644 index e22b842..0000000 --- a/node_modules/path-root-regex/package.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "path-root-regex@^0.1.0", - "scope": null, - "escapedName": "path-root-regex", - "name": "path-root-regex", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/path-root" - ] - ], - "_from": "path-root-regex@>=0.1.0 <0.2.0", - "_id": "path-root-regex@0.1.2", - "_inCache": true, - "_location": "/path-root-regex", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/path-root-regex-0.1.2.tgz_1459235194182_0.15893458318896592" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.6.0", - "_phantomChildren": {}, - "_requested": { - "raw": "path-root-regex@^0.1.0", - "scope": null, - "escapedName": "path-root-regex", - "name": "path-root-regex", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/path-root" - ], - "_resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", - "_shasum": "bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d", - "_shrinkwrap": null, - "_spec": "path-root-regex@^0.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/path-root", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/regexhq/path-root-regex/issues" - }, - "dependencies": {}, - "description": "Regular expression for getting the root of a posix or windows filepath.", - "devDependencies": { - "gulp-format-md": "^0.1.7", - "mocha": "^2.4.5" - }, - "directories": {}, - "dist": { - "shasum": "bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d", - "tarball": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "0b80fcc033e8eb960696672ed9b3f0262db48933", - "homepage": "https://github.com/regexhq/path-root-regex", - "keywords": [ - "detect", - "expression", - "file", - "filepath", - "match", - "parse", - "path", - "regex", - "regexp", - "regular", - "root", - "test" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "path-root-regex", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/regexhq/path-root-regex.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "run": true, - "toc": false, - "layout": false, - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "highlight": "path-root", - "list": [ - "parse-filepath", - "is-absolute" - ] - }, - "reflinks": [ - "verb", - "path-root" - ], - "lint": { - "reflinks": true - } - }, - "version": "0.1.2" -} diff --git a/node_modules/path-root/LICENSE b/node_modules/path-root/LICENSE deleted file mode 100644 index e28e603..0000000 --- a/node_modules/path-root/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016, 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/path-root/README.md b/node_modules/path-root/README.md deleted file mode 100644 index aa3c861..0000000 --- a/node_modules/path-root/README.md +++ /dev/null @@ -1,94 +0,0 @@ -# path-root [![NPM version](https://img.shields.io/npm/v/path-root.svg?style=flat)](https://www.npmjs.com/package/path-root) [![NPM downloads](https://img.shields.io/npm/dm/path-root.svg?style=flat)](https://npmjs.org/package/path-root) [![Build Status](https://img.shields.io/travis/jonschlinkert/path-root.svg?style=flat)](https://travis-ci.org/jonschlinkert/path-root) - -> Get the root of a posix or windows filepath. - -You might also be interested in [parse-filepath](https://github.com/jonschlinkert/parse-filepath). - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install path-root --save -``` - -## Usage - -```js -var pathRoot = require('path-root'); -``` - -**Examples** - -```js -pathRoot('\\\\server\\share\\abc'); -//=> '\\\\server\\share\\' - -pathRoot('\\\\server foo\\some folder\\base-file.js'); -//=> '\\\\server foo\\some folder\\' - -pathRoot('\\\\?\\UNC\\server\\share'); -//=> '\\\\?\\UNC\\' - -pathRoot('foo/bar/baz.js'); -//=> '' - -pathRoot('c:\\foo\\bar\\baz.js'); -//=> 'c:\\' - -pathRoot('\\\\slslslsl\\admin$\\system32'); -//=> '\\\\slslslsl\\admin$\\' - -pathRoot('/foo/bar/baz.js'); -//=> '/' -``` - -## Related projects - -You might also be interested in these projects: - -* [is-absolute](https://www.npmjs.com/package/is-absolute): Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute) -* [parse-filepath](https://www.npmjs.com/package/parse-filepath): Parse a filepath into an object. Falls back on the native node.js `path.parse` method if… [more](https://www.npmjs.com/package/parse-filepath) | [homepage](https://github.com/jonschlinkert/parse-filepath) -* [path-root-regex](https://www.npmjs.com/package/path-root-regex): Regular expression for getting the root of a posix or windows filepath. | [homepage](https://github.com/regexhq/path-root-regex) - -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/path-root/issues/new). - -## Building docs - -Generate readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install verb && npm run docs -``` - -Or, if [verb](https://github.com/verbose/verb) is installed globally: - -```sh -$ verb -``` - -## Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -## Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/path-root/blob/master/LICENSE). - -*** - -_This file was generated by [verb](https://github.com/verbose/verb), v, on March 29, 2016._ \ No newline at end of file diff --git a/node_modules/path-root/index.js b/node_modules/path-root/index.js deleted file mode 100644 index 8e141ba..0000000 --- a/node_modules/path-root/index.js +++ /dev/null @@ -1,21 +0,0 @@ -/*! - * path-root - * - * Copyright (c) 2016, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var pathRootRegex = require('path-root-regex'); - -module.exports = function(filepath) { - if (typeof filepath !== 'string') { - throw new TypeError('expected a string'); - } - - var match = pathRootRegex().exec(filepath); - if (match) { - return match[0]; - } -}; diff --git a/node_modules/path-root/package.json b/node_modules/path-root/package.json deleted file mode 100644 index 0175e83..0000000 --- a/node_modules/path-root/package.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "path-root@^0.1.1", - "scope": null, - "escapedName": "path-root", - "name": "path-root", - "rawSpec": "^0.1.1", - "spec": ">=0.1.1 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/parse-filepath" - ] - ], - "_from": "path-root@>=0.1.1 <0.2.0", - "_id": "path-root@0.1.1", - "_inCache": true, - "_location": "/path-root", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/path-root-0.1.1.tgz_1459235666528_0.13938825554214418" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.6.0", - "_phantomChildren": {}, - "_requested": { - "raw": "path-root@^0.1.1", - "scope": null, - "escapedName": "path-root", - "name": "path-root", - "rawSpec": "^0.1.1", - "spec": ">=0.1.1 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/parse-filepath" - ], - "_resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", - "_shasum": "9a4a6814cac1c0cd73360a95f32083c8ea4745b7", - "_shrinkwrap": null, - "_spec": "path-root@^0.1.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/parse-filepath", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/path-root/issues" - }, - "dependencies": { - "path-root-regex": "^0.1.0" - }, - "description": "Get the root of a posix or windows filepath.", - "devDependencies": { - "gulp-format-md": "^0.1.7", - "mocha": "^2.4.5" - }, - "directories": {}, - "dist": { - "shasum": "9a4a6814cac1c0cd73360a95f32083c8ea4745b7", - "tarball": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "2f1a3929dece0f8bb645b8eb6123dd53f05cd503", - "homepage": "https://github.com/jonschlinkert/path-root", - "keywords": [ - "path", - "root" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "path-root", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/path-root.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "run": true, - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "highlight": "parse-filepath", - "list": [ - "path-root-regex", - "parse-filepath", - "is-absolute" - ] - }, - "reflinks": [ - "verb" - ], - "lint": { - "reflinks": true - } - }, - "version": "0.1.1" -} diff --git a/node_modules/path-type/index.js b/node_modules/path-type/index.js deleted file mode 100644 index 207a1d1..0000000 --- a/node_modules/path-type/index.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; -var fs = require('graceful-fs'); -var Promise = require('pinkie-promise'); -var pify = require('pify'); - -function type(fn, fn2, fp) { - if (typeof fp !== 'string') { - return Promise.reject(new TypeError('Expected a string')); - } - - return pify(fs[fn], Promise)(fp).then(function (stats) { - return stats[fn2](); - }); -} - -function typeSync(fn, fn2, fp) { - if (typeof fp !== 'string') { - throw new TypeError('Expected a string'); - } - - return fs[fn](fp)[fn2](); -} - -exports.file = type.bind(null, 'stat', 'isFile'); -exports.dir = type.bind(null, 'stat', 'isDirectory'); -exports.symlink = type.bind(null, 'lstat', 'isSymbolicLink'); -exports.fileSync = typeSync.bind(null, 'statSync', 'isFile'); -exports.dirSync = typeSync.bind(null, 'statSync', 'isDirectory'); -exports.symlinkSync = typeSync.bind(null, 'lstatSync', 'isSymbolicLink'); diff --git a/node_modules/path-type/license b/node_modules/path-type/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/path-type/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/path-type/node_modules/graceful-fs/LICENSE b/node_modules/path-type/node_modules/graceful-fs/LICENSE deleted file mode 100644 index 9d2c803..0000000 --- a/node_modules/path-type/node_modules/graceful-fs/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, 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/path-type/node_modules/graceful-fs/README.md b/node_modules/path-type/node_modules/graceful-fs/README.md deleted file mode 100644 index 5273a50..0000000 --- a/node_modules/path-type/node_modules/graceful-fs/README.md +++ /dev/null @@ -1,133 +0,0 @@ -# graceful-fs - -graceful-fs functions as a drop-in replacement for the fs module, -making various improvements. - -The improvements are meant to normalize behavior across different -platforms and environments, and to make filesystem access more -resilient to errors. - -## Improvements over [fs module](https://nodejs.org/api/fs.html) - -* Queues up `open` and `readdir` calls, and retries them once - something closes if there is an EMFILE error from too many file - descriptors. -* fixes `lchmod` for Node versions prior to 0.6.2. -* implements `fs.lutimes` if possible. Otherwise it becomes a noop. -* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or - `lchown` if the user isn't root. -* makes `lchmod` and `lchown` become noops, if not available. -* retries reading a file if `read` results in EAGAIN error. - -On Windows, it retries renaming a file for up to one second if `EACCESS` -or `EPERM` error occurs, likely because antivirus software has locked -the directory. - -## USAGE - -```javascript -// use just like fs -var fs = require('graceful-fs') - -// now go and do stuff with it... -fs.readFileSync('some-file-or-whatever') -``` - -## Global Patching - -If you want to patch the global fs module (or any other fs-like -module) you can do this: - -```javascript -// Make sure to read the caveat below. -var realFs = require('fs') -var gracefulFs = require('graceful-fs') -gracefulFs.gracefulify(realFs) -``` - -This should only ever be done at the top-level application layer, in -order to delay on EMFILE errors from any fs-using dependencies. You -should **not** do this in a library, because it can cause unexpected -delays in other parts of the program. - -## Changes - -This module is fairly stable at this point, and used by a lot of -things. That being said, because it implements a subtle behavior -change in a core part of the node API, even modest changes can be -extremely breaking, and the versioning is thus biased towards -bumping the major when in doubt. - -The main change between major versions has been switching between -providing a fully-patched `fs` module vs monkey-patching the node core -builtin, and the approach by which a non-monkey-patched `fs` was -created. - -The goal is to trade `EMFILE` errors for slower fs operations. So, if -you try to open a zillion files, rather than crashing, `open` -operations will be queued up and wait for something else to `close`. - -There are advantages to each approach. Monkey-patching the fs means -that no `EMFILE` errors can possibly occur anywhere in your -application, because everything is using the same core `fs` module, -which is patched. However, it can also obviously cause undesirable -side-effects, especially if the module is loaded multiple times. - -Implementing a separate-but-identical patched `fs` module is more -surgical (and doesn't run the risk of patching multiple times), but -also imposes the challenge of keeping in sync with the core module. - -The current approach loads the `fs` module, and then creates a -lookalike object that has all the same methods, except a few that are -patched. It is safe to use in all versions of Node from 0.8 through -7.0. - -### v4 - -* Do not monkey-patch the fs module. This module may now be used as a - drop-in dep, and users can opt into monkey-patching the fs builtin - if their app requires it. - -### v3 - -* Monkey-patch fs, because the eval approach no longer works on recent - node. -* fixed possible type-error throw if rename fails on windows -* verify that we *never* get EMFILE errors -* Ignore ENOSYS from chmod/chown -* clarify that graceful-fs must be used as a drop-in - -### v2.1.0 - -* Use eval rather than monkey-patching fs. -* readdir: Always sort the results -* win32: requeue a file if error has an OK status - -### v2.0 - -* A return to monkey patching -* wrap process.cwd - -### v1.1 - -* wrap readFile -* Wrap fs.writeFile. -* readdir protection -* Don't clobber the fs builtin -* Handle fs.read EAGAIN errors by trying again -* Expose the curOpen counter -* No-op lchown/lchmod if not implemented -* fs.rename patch only for win32 -* Patch fs.rename to handle AV software on Windows -* Close #4 Chown should not fail on einval or eperm if non-root -* Fix isaacs/fstream#1 Only wrap fs one time -* Fix #3 Start at 1024 max files, then back off on EMFILE -* lutimes that doens't blow up on Linux -* A full on-rewrite using a queue instead of just swallowing the EMFILE error -* Wrap Read/Write streams as well - -### 1.0 - -* Update engines for node 0.6 -* Be lstat-graceful on Windows -* first diff --git a/node_modules/path-type/node_modules/graceful-fs/fs.js b/node_modules/path-type/node_modules/graceful-fs/fs.js deleted file mode 100644 index 8ad4a38..0000000 --- a/node_modules/path-type/node_modules/graceful-fs/fs.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict' - -var fs = require('fs') - -module.exports = clone(fs) - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: obj.__proto__ } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} diff --git a/node_modules/path-type/node_modules/graceful-fs/graceful-fs.js b/node_modules/path-type/node_modules/graceful-fs/graceful-fs.js deleted file mode 100644 index 33b30d2..0000000 --- a/node_modules/path-type/node_modules/graceful-fs/graceful-fs.js +++ /dev/null @@ -1,262 +0,0 @@ -var fs = require('fs') -var polyfills = require('./polyfills.js') -var legacy = require('./legacy-streams.js') -var queue = [] - -var util = require('util') - -function noop () {} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(queue) - require('assert').equal(queue.length, 0) - }) -} - -module.exports = patch(require('./fs.js')) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) { - module.exports = patch(fs) -} - -// Always patch fs.close/closeSync, because we want to -// retry() whenever a close happens *anywhere* in the program. -// This is essential when multiple graceful-fs instances are -// in play at the same time. -module.exports.close = -fs.close = (function (fs$close) { return function (fd, cb) { - return fs$close.call(fs, fd, function (err) { - if (!err) - retry() - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) -}})(fs.close) - -module.exports.closeSync = -fs.closeSync = (function (fs$closeSync) { return function (fd) { - // Note that graceful-fs also retries when fs.closeSync() fails. - // Looks like a bug to me, although it's probably a harmless one. - var rval = fs$closeSync.apply(fs, arguments) - retry() - return rval -}})(fs.closeSync) - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - fs.FileReadStream = ReadStream; // Legacy name. - fs.FileWriteStream = WriteStream; // Legacy name. - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - var args = [path] - if (typeof options !== 'function') { - args.push(options) - } else { - cb = options - } - args.push(go$readdir$cb) - - return go$readdir(args) - - function go$readdir$cb (err, files) { - if (files && files.sort) - files.sort() - - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [args]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - } - } - - function go$readdir (args) { - return fs$readdir.apply(fs, args) - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - - var fs$WriteStream = fs.WriteStream - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - - fs.ReadStream = ReadStream - fs.WriteStream = WriteStream - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - queue.push(elem) -} - -function retry () { - var elem = queue.shift() - if (elem) { - debug('RETRY', elem[0].name, elem[1]) - elem[0].apply(null, elem[1]) - } -} diff --git a/node_modules/path-type/node_modules/graceful-fs/legacy-streams.js b/node_modules/path-type/node_modules/graceful-fs/legacy-streams.js deleted file mode 100644 index d617b50..0000000 --- a/node_modules/path-type/node_modules/graceful-fs/legacy-streams.js +++ /dev/null @@ -1,118 +0,0 @@ -var Stream = require('stream').Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} diff --git a/node_modules/path-type/node_modules/graceful-fs/package.json b/node_modules/path-type/node_modules/graceful-fs/package.json deleted file mode 100644 index 502ad62..0000000 --- a/node_modules/path-type/node_modules/graceful-fs/package.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "graceful-fs@^4.1.2", - "scope": null, - "escapedName": "graceful-fs", - "name": "graceful-fs", - "rawSpec": "^4.1.2", - "spec": ">=4.1.2 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/path-type" - ] - ], - "_from": "graceful-fs@>=4.1.2 <5.0.0", - "_id": "graceful-fs@4.1.11", - "_inCache": true, - "_location": "/path-type/graceful-fs", - "_nodeVersion": "6.5.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/graceful-fs-4.1.11.tgz_1479843029430_0.2122855328489095" - }, - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.10.9", - "_phantomChildren": {}, - "_requested": { - "raw": "graceful-fs@^4.1.2", - "scope": null, - "escapedName": "graceful-fs", - "name": "graceful-fs", - "rawSpec": "^4.1.2", - "spec": ">=4.1.2 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/path-type" - ], - "_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "_shasum": "0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658", - "_shrinkwrap": null, - "_spec": "graceful-fs@^4.1.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/path-type", - "bugs": { - "url": "https://github.com/isaacs/node-graceful-fs/issues" - }, - "dependencies": {}, - "description": "A drop-in replacement for fs, making various improvements.", - "devDependencies": { - "mkdirp": "^0.5.0", - "rimraf": "^2.2.8", - "tap": "^5.4.2" - }, - "directories": { - "test": "test" - }, - "dist": { - "shasum": "0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658", - "tarball": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz" - }, - "engines": { - "node": ">=0.4.0" - }, - "files": [ - "fs.js", - "graceful-fs.js", - "legacy-streams.js", - "polyfills.js" - ], - "gitHead": "65cf80d1fd3413b823c16c626c1e7c326452bee5", - "homepage": "https://github.com/isaacs/node-graceful-fs#readme", - "keywords": [ - "fs", - "module", - "reading", - "retry", - "retries", - "queue", - "error", - "errors", - "handling", - "EMFILE", - "EAGAIN", - "EINVAL", - "EPERM", - "EACCESS" - ], - "license": "ISC", - "main": "graceful-fs.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "graceful-fs", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/node-graceful-fs.git" - }, - "scripts": { - "test": "node test.js | tap -" - }, - "version": "4.1.11" -} diff --git a/node_modules/path-type/node_modules/graceful-fs/polyfills.js b/node_modules/path-type/node_modules/graceful-fs/polyfills.js deleted file mode 100644 index 4c6aca7..0000000 --- a/node_modules/path-type/node_modules/graceful-fs/polyfills.js +++ /dev/null @@ -1,330 +0,0 @@ -var fs = require('./fs.js') -var constants = require('constants') - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -var chdir = process.chdir -process.chdir = function(d) { - cwd = null - chdir.call(process, d) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (!fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (!fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = (function (fs$rename) { return function (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - }})(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - }})(fs.read) - - fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) -} - -function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } -} - -function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK")) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } -} - -function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, cb) { - return orig.call(fs, target, function (er, stats) { - if (!stats) return cb.apply(this, arguments) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - if (cb) cb.apply(this, arguments) - }) - } -} - -function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target) { - var stats = orig.call(fs, target) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - return stats; - } -} - -// ENOSYS means that the fs doesn't support the op. Just ignore -// that, because it doesn't matter. -// -// if there's no getuid, or if getuid() is something other -// than 0, and the error is EINVAL or EPERM, then just ignore -// it. -// -// This specific case is a silent failure in cp, install, tar, -// and most other unix tools that manage permissions. -// -// When running as root, or if other types of errors are -// encountered, then it's strict. -function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false -} diff --git a/node_modules/path-type/package.json b/node_modules/path-type/package.json deleted file mode 100644 index e1bcc83..0000000 --- a/node_modules/path-type/package.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "path-type@^1.0.0", - "scope": null, - "escapedName": "path-type", - "name": "path-type", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/read-pkg" - ] - ], - "_from": "path-type@>=1.0.0 <2.0.0", - "_id": "path-type@1.1.0", - "_inCache": true, - "_location": "/path-type", - "_nodeVersion": "4.2.1", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.7", - "_phantomChildren": {}, - "_requested": { - "raw": "path-type@^1.0.0", - "scope": null, - "escapedName": "path-type", - "name": "path-type", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/read-pkg" - ], - "_resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "_shasum": "59c44f7ee491da704da415da5a4070ba4f8fe441", - "_shrinkwrap": null, - "_spec": "path-type@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/read-pkg", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/path-type/issues" - }, - "dependencies": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - }, - "description": "Check if a path is a file, directory, or symlink", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "59c44f7ee491da704da415da5a4070ba4f8fe441", - "tarball": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "dff5c2a62f89efe7e0cce600bf38e76196d8b4b2", - "homepage": "https://github.com/sindresorhus/path-type", - "keywords": [ - "path", - "fs", - "type", - "is", - "check", - "directory", - "dir", - "file", - "filepath", - "symlink", - "symbolic", - "link", - "stat", - "stats", - "filesystem" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "path-type", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/path-type.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.1.0", - "xo": { - "ignores": [ - "test.js" - ] - } -} diff --git a/node_modules/path-type/readme.md b/node_modules/path-type/readme.md deleted file mode 100644 index eac12d6..0000000 --- a/node_modules/path-type/readme.md +++ /dev/null @@ -1,42 +0,0 @@ -# path-type [![Build Status](https://travis-ci.org/sindresorhus/path-type.svg?branch=master)](https://travis-ci.org/sindresorhus/path-type) - -> Check if a path is a file, directory, or symlink - - -## Install - -``` -$ npm install --save path-type -``` - - -## Usage - -```js -var pathType = require('path-type'); - -pathType.file('package.json').then(function (isFile) { - console.log(isFile); - //=> true -}) -``` - - -## API - -### .file(path) -### .dir(path) -### .symlink(path) - -Returns a promise that resolves to a boolean of whether the path is the checked type. - -### .fileSync(path) -### .dirSync(path) -### .symlinkSync(path) - -Returns a boolean of whether the path is the checked type. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/pause-stream/.npmignore b/node_modules/pause-stream/.npmignore deleted file mode 100644 index 13abef4..0000000 --- a/node_modules/pause-stream/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -node_modules/* -npm_debug.log diff --git a/node_modules/pause-stream/LICENSE b/node_modules/pause-stream/LICENSE deleted file mode 100644 index 6a477d4..0000000 --- a/node_modules/pause-stream/LICENSE +++ /dev/null @@ -1,231 +0,0 @@ -Dual Licensed MIT and Apache 2 - -The MIT License - -Copyright (c) 2013 Dominic Tarr - -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. - - - ----------------------------------------------------------------------- - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2013 Dominic Tarr - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/pause-stream/index.js b/node_modules/pause-stream/index.js deleted file mode 100644 index 0e0bf96..0000000 --- a/node_modules/pause-stream/index.js +++ /dev/null @@ -1,3 +0,0 @@ -//through@2 handles this by default! -module.exports = require('through') - diff --git a/node_modules/pause-stream/package.json b/node_modules/pause-stream/package.json deleted file mode 100644 index 4df7bfb..0000000 --- a/node_modules/pause-stream/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "pause-stream@0.0.11", - "scope": null, - "escapedName": "pause-stream", - "name": "pause-stream", - "rawSpec": "0.0.11", - "spec": "0.0.11", - "type": "version" - }, - "/Users/jose/Documents/GitHub/About/node_modules/event-stream" - ] - ], - "_from": "pause-stream@0.0.11", - "_id": "pause-stream@0.0.11", - "_inCache": true, - "_location": "/pause-stream", - "_npmUser": { - "name": "dominictarr", - "email": "dominic.tarr@gmail.com" - }, - "_npmVersion": "1.3.6", - "_phantomChildren": {}, - "_requested": { - "raw": "pause-stream@0.0.11", - "scope": null, - "escapedName": "pause-stream", - "name": "pause-stream", - "rawSpec": "0.0.11", - "spec": "0.0.11", - "type": "version" - }, - "_requiredBy": [ - "/event-stream" - ], - "_resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "_shasum": "fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445", - "_shrinkwrap": null, - "_spec": "pause-stream@0.0.11", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/event-stream", - "author": { - "name": "Dominic Tarr", - "email": "dominic.tarr@gmail.com", - "url": "dominictarr.com" - }, - "bugs": { - "url": "https://github.com/dominictarr/pause-stream/issues" - }, - "dependencies": { - "through": "~2.3" - }, - "description": "a ThroughStream that strictly buffers all readable events when paused.", - "devDependencies": { - "stream-spec": "~0.2.0", - "stream-tester": "0.0.2" - }, - "directories": { - "test": "test" - }, - "dist": { - "shasum": "fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445", - "tarball": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz" - }, - "homepage": "https://github.com/dominictarr/pause-stream#readme", - "keywords": [ - "stream", - "pipe", - "pause", - "drain", - "buffer" - ], - "license": [ - "MIT", - "Apache2" - ], - "main": "index.js", - "maintainers": [ - { - "name": "dominictarr", - "email": "dominic.tarr@gmail.com" - } - ], - "name": "pause-stream", - "optionalDependencies": {}, - "readme": "# PauseStream\n\nThis is a `Stream` that will strictly buffer when paused.\nConnect it to anything you need buffered.\n\n``` js\n var ps = require('pause-stream')();\n\n badlyBehavedStream.pipe(ps.pause())\n\n aLittleLater(function (err, data) {\n ps.pipe(createAnotherStream(data))\n ps.resume()\n })\n```\n\n`PauseStream` will buffer whenever paused.\nit will buffer when yau have called `pause` manually.\nbut also when it's downstream `dest.write()===false`.\nit will attempt to drain the buffer when you call resume\nor the downstream emits `'drain'`\n\n`PauseStream` is tested using [stream-spec](https://github.com/dominictarr/stream-spec)\nand [stream-tester](https://github.com/dominictarr/stream-tester)\n\nThis is now the default case of \n[through](https://github.com/dominictarr/through)\n\nhttps://github.com/dominictarr/pause-stream/commit/4a6fe3dc2c11091b1efbfde912e0473719ed9cc0\n", - "readmeFilename": "readme.markdown", - "repository": { - "type": "git", - "url": "git://github.com/dominictarr/pause-stream.git" - }, - "scripts": { - "test": "node test/index.js && node test/pause-end.js" - }, - "version": "0.0.11" -} diff --git a/node_modules/pause-stream/readme.markdown b/node_modules/pause-stream/readme.markdown deleted file mode 100644 index 2366939..0000000 --- a/node_modules/pause-stream/readme.markdown +++ /dev/null @@ -1,29 +0,0 @@ -# PauseStream - -This is a `Stream` that will strictly buffer when paused. -Connect it to anything you need buffered. - -``` js - var ps = require('pause-stream')(); - - badlyBehavedStream.pipe(ps.pause()) - - aLittleLater(function (err, data) { - ps.pipe(createAnotherStream(data)) - ps.resume() - }) -``` - -`PauseStream` will buffer whenever paused. -it will buffer when yau have called `pause` manually. -but also when it's downstream `dest.write()===false`. -it will attempt to drain the buffer when you call resume -or the downstream emits `'drain'` - -`PauseStream` is tested using [stream-spec](https://github.com/dominictarr/stream-spec) -and [stream-tester](https://github.com/dominictarr/stream-tester) - -This is now the default case of -[through](https://github.com/dominictarr/through) - -https://github.com/dominictarr/pause-stream/commit/4a6fe3dc2c11091b1efbfde912e0473719ed9cc0 diff --git a/node_modules/pause-stream/test/index.js b/node_modules/pause-stream/test/index.js deleted file mode 100644 index db8778d..0000000 --- a/node_modules/pause-stream/test/index.js +++ /dev/null @@ -1,17 +0,0 @@ -var spec = require('stream-spec') -var tester = require('stream-tester') -var ps = require('..')() - -spec(ps) - .through({strict: false}) - .validateOnExit() - -var master = tester.createConsistent - -tester.createRandomStream(1000) //1k random numbers - .pipe(master = tester.createConsistentStream()) - .pipe(tester.createUnpauseStream()) - .pipe(ps) - .pipe(tester.createPauseStream()) - .pipe(master.createSlave()) - diff --git a/node_modules/pause-stream/test/pause-end.js b/node_modules/pause-stream/test/pause-end.js deleted file mode 100644 index a6c27ef..0000000 --- a/node_modules/pause-stream/test/pause-end.js +++ /dev/null @@ -1,33 +0,0 @@ - -var pause = require('..') -var assert = require('assert') - -var ps = pause() -var read = [], ended = false - -ps.on('data', function (i) { - read.push(i) -}) - -ps.on('end', function () { - ended = true -}) - -assert.deepEqual(read, []) - -ps.write(0) -ps.write(1) -ps.write(2) - -assert.deepEqual(read, [0, 1, 2]) - -ps.pause() - -assert.deepEqual(read, [0, 1, 2]) - -ps.end() -assert.equal(ended, false) -ps.resume() -assert.equal(ended, true) - - diff --git a/node_modules/pify/index.js b/node_modules/pify/index.js deleted file mode 100644 index 7c720eb..0000000 --- a/node_modules/pify/index.js +++ /dev/null @@ -1,68 +0,0 @@ -'use strict'; - -var processFn = function (fn, P, opts) { - return function () { - var that = this; - var args = new Array(arguments.length); - - for (var i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - - return new P(function (resolve, reject) { - args.push(function (err, result) { - if (err) { - reject(err); - } else if (opts.multiArgs) { - var results = new Array(arguments.length - 1); - - for (var i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - - resolve(results); - } else { - resolve(result); - } - }); - - fn.apply(that, args); - }); - }; -}; - -var pify = module.exports = function (obj, P, opts) { - if (typeof P !== 'function') { - opts = P; - P = Promise; - } - - opts = opts || {}; - opts.exclude = opts.exclude || [/.+Sync$/]; - - var filter = function (key) { - var match = function (pattern) { - return typeof pattern === 'string' ? key === pattern : pattern.test(key); - }; - - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - - var ret = typeof obj === 'function' ? function () { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - - return processFn(obj, P, opts).apply(this, arguments); - } : {}; - - return Object.keys(obj).reduce(function (ret, key) { - var x = obj[key]; - - ret[key] = typeof x === 'function' && filter(key) ? processFn(x, P, opts) : x; - - return ret; - }, ret); -}; - -pify.all = pify; diff --git a/node_modules/pify/license b/node_modules/pify/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/pify/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/pify/package.json b/node_modules/pify/package.json deleted file mode 100644 index 1e3dc97..0000000 --- a/node_modules/pify/package.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "pify@^2.0.0", - "scope": null, - "escapedName": "pify", - "name": "pify", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/del" - ] - ], - "_from": "pify@>=2.0.0 <3.0.0", - "_id": "pify@2.3.0", - "_inCache": true, - "_location": "/pify", - "_nodeVersion": "4.2.1", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.7", - "_phantomChildren": {}, - "_requested": { - "raw": "pify@^2.0.0", - "scope": null, - "escapedName": "pify", - "name": "pify", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/del", - "/globby", - "/load-json-file", - "/path-type", - "/vinyl-file" - ], - "_resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "_shasum": "ed141a6ac043a849ea588498e7dca8b15330e90c", - "_shrinkwrap": null, - "_spec": "pify@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/del", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/pify/issues" - }, - "dependencies": {}, - "description": "Promisify a callback-style function", - "devDependencies": { - "ava": "*", - "pinkie-promise": "^1.0.0", - "v8-natives": "0.0.2", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "ed141a6ac043a849ea588498e7dca8b15330e90c", - "tarball": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "2dd0d8b880e4ebcc5cc33ae126b02647418e4440", - "homepage": "https://github.com/sindresorhus/pify", - "keywords": [ - "promise", - "promises", - "promisify", - "denodify", - "denodeify", - "callback", - "cb", - "node", - "then", - "thenify", - "convert", - "transform", - "wrap", - "wrapper", - "bind", - "to", - "async", - "es2015" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "pify", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/pify.git" - }, - "scripts": { - "optimization-test": "node --allow-natives-syntax optimization-test.js", - "test": "xo && ava && npm run optimization-test" - }, - "version": "2.3.0" -} diff --git a/node_modules/pify/readme.md b/node_modules/pify/readme.md deleted file mode 100644 index c79ca8b..0000000 --- a/node_modules/pify/readme.md +++ /dev/null @@ -1,119 +0,0 @@ -# pify [![Build Status](https://travis-ci.org/sindresorhus/pify.svg?branch=master)](https://travis-ci.org/sindresorhus/pify) - -> Promisify a callback-style function - - -## Install - -``` -$ npm install --save pify -``` - - -## Usage - -```js -const fs = require('fs'); -const pify = require('pify'); - -// promisify a single function - -pify(fs.readFile)('package.json', 'utf8').then(data => { - console.log(JSON.parse(data).name); - //=> 'pify' -}); - -// or promisify all methods in a module - -pify(fs).readFile('package.json', 'utf8').then(data => { - console.log(JSON.parse(data).name); - //=> 'pify' -}); -``` - - -## API - -### pify(input, [promiseModule], [options]) - -Returns a promise wrapped version of the supplied function or module. - -#### input - -Type: `function`, `object` - -Callback-style function or module whose methods you want to promisify. - -#### promiseModule - -Type: `function` - -Custom promise module to use instead of the native one. - -Check out [`pinkie-promise`](https://github.com/floatdrop/pinkie-promise) if you need a tiny promise polyfill. - -#### options - -##### multiArgs - -Type: `boolean` -Default: `false` - -By default, the promisified function will only return the second argument from the callback, which works fine for most APIs. This option can be useful for modules like `request` that return multiple arguments. Turning this on will make it return an array of all arguments from the callback, excluding the error argument, instead of just the second argument. - -```js -const request = require('request'); -const pify = require('pify'); - -pify(request, {multiArgs: true})('https://sindresorhus.com').then(result => { - const [httpResponse, body] = result; -}); -``` - -##### include - -Type: `array` of (`string`|`regex`) - -Methods in a module to promisify. Remaining methods will be left untouched. - -##### exclude - -Type: `array` of (`string`|`regex`) -Default: `[/.+Sync$/]` - -Methods in a module **not** to promisify. Methods with names ending with `'Sync'` are excluded by default. - -##### excludeMain - -Type: `boolean` -Default: `false` - -By default, if given module is a function itself, this function will be promisified. Turn this option on if you want to promisify only methods of the module. - -```js -const pify = require('pify'); - -function fn() { - return true; -} - -fn.method = (data, callback) => { - setImmediate(() => { - callback(data, null); - }); -}; - -// promisify methods but not fn() -const promiseFn = pify(fn, {excludeMain: true}); - -if (promiseFn()) { - promiseFn.method('hi').then(data => { - console.log(data); - }); -} -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/pinkie-promise/index.js b/node_modules/pinkie-promise/index.js deleted file mode 100644 index 777377a..0000000 --- a/node_modules/pinkie-promise/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = typeof Promise === 'function' ? Promise : require('pinkie'); diff --git a/node_modules/pinkie-promise/license b/node_modules/pinkie-promise/license deleted file mode 100644 index 1aeb74f..0000000 --- a/node_modules/pinkie-promise/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Vsevolod Strukchinsky (github.com/floatdrop) - -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/pinkie-promise/package.json b/node_modules/pinkie-promise/package.json deleted file mode 100644 index 6b5fb9b..0000000 --- a/node_modules/pinkie-promise/package.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "pinkie-promise@^2.0.0", - "scope": null, - "escapedName": "pinkie-promise", - "name": "pinkie-promise", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/del" - ] - ], - "_from": "pinkie-promise@>=2.0.0 <3.0.0", - "_id": "pinkie-promise@2.0.1", - "_inCache": true, - "_location": "/pinkie-promise", - "_nodeVersion": "4.4.1", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/pinkie-promise-2.0.1.tgz_1460309839126_0.3422858319245279" - }, - "_npmUser": { - "name": "floatdrop", - "email": "floatdrop@gmail.com" - }, - "_npmVersion": "2.14.20", - "_phantomChildren": {}, - "_requested": { - "raw": "pinkie-promise@^2.0.0", - "scope": null, - "escapedName": "pinkie-promise", - "name": "pinkie-promise", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/del", - "/find-up", - "/globby", - "/har-validator", - "/load-json-file", - "/path-exists", - "/path-type", - "/vinyl-file" - ], - "_resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "_shasum": "2135d6dfa7a358c069ac9b178776288228450ffa", - "_shrinkwrap": null, - "_spec": "pinkie-promise@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/del", - "author": { - "name": "Vsevolod Strukchinsky", - "email": "floatdrop@gmail.com", - "url": "github.com/floatdrop" - }, - "bugs": { - "url": "https://github.com/floatdrop/pinkie-promise/issues" - }, - "dependencies": { - "pinkie": "^2.0.0" - }, - "description": "ES2015 Promise ponyfill", - "devDependencies": { - "mocha": "*" - }, - "directories": {}, - "dist": { - "shasum": "2135d6dfa7a358c069ac9b178776288228450ffa", - "tarball": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "4a936c09c34ad591a25db93f1216d242de0d6184", - "homepage": "https://github.com/floatdrop/pinkie-promise", - "keywords": [ - "promise", - "promises", - "es2015", - "es6", - "polyfill", - "ponyfill" - ], - "license": "MIT", - "maintainers": [ - { - "name": "floatdrop", - "email": "floatdrop@gmail.com" - } - ], - "name": "pinkie-promise", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/floatdrop/pinkie-promise.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "2.0.1" -} diff --git a/node_modules/pinkie-promise/readme.md b/node_modules/pinkie-promise/readme.md deleted file mode 100644 index 78477f4..0000000 --- a/node_modules/pinkie-promise/readme.md +++ /dev/null @@ -1,28 +0,0 @@ -# pinkie-promise [![Build Status](https://travis-ci.org/floatdrop/pinkie-promise.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie-promise) - -> [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) ponyfill - -Module exports global Promise object (if available) or [`pinkie`](http://github.com/floatdrop/pinkie) Promise polyfill. - -## Install - -``` -$ npm install --save pinkie-promise -``` - -## Usage - -```js -var Promise = require('pinkie-promise'); - -new Promise(function (resolve) { resolve('unicorns'); }); -//=> Promise { 'unicorns' } -``` - -## Related - -- [pify](https://github.com/sindresorhus/pify) - Promisify a callback-style function - -## License - -MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop) diff --git a/node_modules/pinkie/index.js b/node_modules/pinkie/index.js deleted file mode 100644 index 14ce1bf..0000000 --- a/node_modules/pinkie/index.js +++ /dev/null @@ -1,292 +0,0 @@ -'use strict'; - -var PENDING = 'pending'; -var SETTLED = 'settled'; -var FULFILLED = 'fulfilled'; -var REJECTED = 'rejected'; -var NOOP = function () {}; -var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function'; - -var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate; -var asyncQueue = []; -var asyncTimer; - -function asyncFlush() { - // run promise callbacks - for (var i = 0; i < asyncQueue.length; i++) { - asyncQueue[i][0](asyncQueue[i][1]); - } - - // reset async asyncQueue - asyncQueue = []; - asyncTimer = false; -} - -function asyncCall(callback, arg) { - asyncQueue.push([callback, arg]); - - if (!asyncTimer) { - asyncTimer = true; - asyncSetTimer(asyncFlush, 0); - } -} - -function invokeResolver(resolver, promise) { - function resolvePromise(value) { - resolve(promise, value); - } - - function rejectPromise(reason) { - reject(promise, reason); - } - - try { - resolver(resolvePromise, rejectPromise); - } catch (e) { - rejectPromise(e); - } -} - -function invokeCallback(subscriber) { - var owner = subscriber.owner; - var settled = owner._state; - var value = owner._data; - var callback = subscriber[settled]; - var promise = subscriber.then; - - if (typeof callback === 'function') { - settled = FULFILLED; - try { - value = callback(value); - } catch (e) { - reject(promise, e); - } - } - - if (!handleThenable(promise, value)) { - if (settled === FULFILLED) { - resolve(promise, value); - } - - if (settled === REJECTED) { - reject(promise, value); - } - } -} - -function handleThenable(promise, value) { - var resolved; - - try { - if (promise === value) { - throw new TypeError('A promises callback cannot return that same promise.'); - } - - if (value && (typeof value === 'function' || typeof value === 'object')) { - // then should be retrieved only once - var then = value.then; - - if (typeof then === 'function') { - then.call(value, function (val) { - if (!resolved) { - resolved = true; - - if (value === val) { - fulfill(promise, val); - } else { - resolve(promise, val); - } - } - }, function (reason) { - if (!resolved) { - resolved = true; - - reject(promise, reason); - } - }); - - return true; - } - } - } catch (e) { - if (!resolved) { - reject(promise, e); - } - - return true; - } - - return false; -} - -function resolve(promise, value) { - if (promise === value || !handleThenable(promise, value)) { - fulfill(promise, value); - } -} - -function fulfill(promise, value) { - if (promise._state === PENDING) { - promise._state = SETTLED; - promise._data = value; - - asyncCall(publishFulfillment, promise); - } -} - -function reject(promise, reason) { - if (promise._state === PENDING) { - promise._state = SETTLED; - promise._data = reason; - - asyncCall(publishRejection, promise); - } -} - -function publish(promise) { - promise._then = promise._then.forEach(invokeCallback); -} - -function publishFulfillment(promise) { - promise._state = FULFILLED; - publish(promise); -} - -function publishRejection(promise) { - promise._state = REJECTED; - publish(promise); - if (!promise._handled && isNode) { - global.process.emit('unhandledRejection', promise._data, promise); - } -} - -function notifyRejectionHandled(promise) { - global.process.emit('rejectionHandled', promise); -} - -/** - * @class - */ -function Promise(resolver) { - if (typeof resolver !== 'function') { - throw new TypeError('Promise resolver ' + resolver + ' is not a function'); - } - - if (this instanceof Promise === false) { - throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.'); - } - - this._then = []; - - invokeResolver(resolver, this); -} - -Promise.prototype = { - constructor: Promise, - - _state: PENDING, - _then: null, - _data: undefined, - _handled: false, - - then: function (onFulfillment, onRejection) { - var subscriber = { - owner: this, - then: new this.constructor(NOOP), - fulfilled: onFulfillment, - rejected: onRejection - }; - - if ((onRejection || onFulfillment) && !this._handled) { - this._handled = true; - if (this._state === REJECTED && isNode) { - asyncCall(notifyRejectionHandled, this); - } - } - - if (this._state === FULFILLED || this._state === REJECTED) { - // already resolved, call callback async - asyncCall(invokeCallback, subscriber); - } else { - // subscribe - this._then.push(subscriber); - } - - return subscriber.then; - }, - - catch: function (onRejection) { - return this.then(null, onRejection); - } -}; - -Promise.all = function (promises) { - if (!Array.isArray(promises)) { - throw new TypeError('You must pass an array to Promise.all().'); - } - - return new Promise(function (resolve, reject) { - var results = []; - var remaining = 0; - - function resolver(index) { - remaining++; - return function (value) { - results[index] = value; - if (!--remaining) { - resolve(results); - } - }; - } - - for (var i = 0, promise; i < promises.length; i++) { - promise = promises[i]; - - if (promise && typeof promise.then === 'function') { - promise.then(resolver(i), reject); - } else { - results[i] = promise; - } - } - - if (!remaining) { - resolve(results); - } - }); -}; - -Promise.race = function (promises) { - if (!Array.isArray(promises)) { - throw new TypeError('You must pass an array to Promise.race().'); - } - - return new Promise(function (resolve, reject) { - for (var i = 0, promise; i < promises.length; i++) { - promise = promises[i]; - - if (promise && typeof promise.then === 'function') { - promise.then(resolve, reject); - } else { - resolve(promise); - } - } - }); -}; - -Promise.resolve = function (value) { - if (value && typeof value === 'object' && value.constructor === Promise) { - return value; - } - - return new Promise(function (resolve) { - resolve(value); - }); -}; - -Promise.reject = function (reason) { - return new Promise(function (resolve, reject) { - reject(reason); - }); -}; - -module.exports = Promise; diff --git a/node_modules/pinkie/license b/node_modules/pinkie/license deleted file mode 100644 index 1aeb74f..0000000 --- a/node_modules/pinkie/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Vsevolod Strukchinsky (github.com/floatdrop) - -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/pinkie/package.json b/node_modules/pinkie/package.json deleted file mode 100644 index 0f30192..0000000 --- a/node_modules/pinkie/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "pinkie@^2.0.0", - "scope": null, - "escapedName": "pinkie", - "name": "pinkie", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/pinkie-promise" - ] - ], - "_from": "pinkie@>=2.0.0 <3.0.0", - "_id": "pinkie@2.0.4", - "_inCache": true, - "_location": "/pinkie", - "_nodeVersion": "4.2.4", - "_npmUser": { - "name": "floatdrop", - "email": "floatdrop@gmail.com" - }, - "_npmVersion": "2.14.12", - "_phantomChildren": {}, - "_requested": { - "raw": "pinkie@^2.0.0", - "scope": null, - "escapedName": "pinkie", - "name": "pinkie", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/pinkie-promise" - ], - "_resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "_shasum": "72556b80cfa0d48a974e80e77248e80ed4f7f870", - "_shrinkwrap": null, - "_spec": "pinkie@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/pinkie-promise", - "author": { - "name": "Vsevolod Strukchinsky", - "email": "floatdrop@gmail.com", - "url": "github.com/floatdrop" - }, - "bugs": { - "url": "https://github.com/floatdrop/pinkie/issues" - }, - "dependencies": {}, - "description": "Itty bitty little widdle twinkie pinkie ES2015 Promise implementation", - "devDependencies": { - "core-assert": "^0.1.1", - "coveralls": "^2.11.4", - "mocha": "*", - "nyc": "^3.2.2", - "promises-aplus-tests": "*", - "xo": "^0.10.1" - }, - "directories": {}, - "dist": { - "shasum": "72556b80cfa0d48a974e80e77248e80ed4f7f870", - "tarball": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "8d4a92447a5c62bff9f89756caeb4c9c8770579b", - "homepage": "https://github.com/floatdrop/pinkie", - "keywords": [ - "promise", - "promises", - "es2015", - "es6" - ], - "license": "MIT", - "maintainers": [ - { - "name": "floatdrop", - "email": "floatdrop@gmail.com" - } - ], - "name": "pinkie", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/floatdrop/pinkie.git" - }, - "scripts": { - "coverage": "nyc report --reporter=text-lcov | coveralls", - "test": "xo && nyc mocha" - }, - "version": "2.0.4" -} diff --git a/node_modules/pinkie/readme.md b/node_modules/pinkie/readme.md deleted file mode 100644 index 1565f95..0000000 --- a/node_modules/pinkie/readme.md +++ /dev/null @@ -1,83 +0,0 @@ -

    -
    - pinkie -
    -
    -

    - -> Itty bitty little widdle twinkie pinkie [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) implementation - -[![Build Status](https://travis-ci.org/floatdrop/pinkie.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie) [![Coverage Status](https://coveralls.io/repos/floatdrop/pinkie/badge.svg?branch=master&service=github)](https://coveralls.io/github/floatdrop/pinkie?branch=master) - -There are [tons of Promise implementations](https://github.com/promises-aplus/promises-spec/blob/master/implementations.md#standalone) out there, but all of them focus on browser compatibility and are often bloated with functionality. - -This module is an exact Promise specification polyfill (like [native-promise-only](https://github.com/getify/native-promise-only)), but in Node.js land (it should be browserify-able though). - - -## Install - -``` -$ npm install --save pinkie -``` - - -## Usage - -```js -var fs = require('fs'); -var Promise = require('pinkie'); - -new Promise(function (resolve, reject) { - fs.readFile('foo.json', 'utf8', function (err, data) { - if (err) { - reject(err); - return; - } - - resolve(data); - }); -}); -//=> Promise -``` - - -### API - -`pinkie` exports bare [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) implementation and polyfills [Node.js rejection events](https://nodejs.org/api/process.html#process_event_unhandledrejection). In case you forgot: - -#### new Promise(executor) - -Returns new instance of `Promise`. - -##### executor - -*Required* -Type: `function` - -Function with two arguments `resolve` and `reject`. The first argument fulfills the promise, the second argument rejects it. - -#### pinkie.all(promises) - -Returns a promise that resolves when all of the promises in the `promises` Array argument have resolved. - -#### pinkie.race(promises) - -Returns a promise that resolves or rejects as soon as one of the promises in the `promises` Array resolves or rejects, with the value or reason from that promise. - -#### pinkie.reject(reason) - -Returns a Promise object that is rejected with the given `reason`. - -#### pinkie.resolve(value) - -Returns a Promise object that is resolved with the given `value`. If the `value` is a thenable (i.e. has a then method), the returned promise will "follow" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the `value`. - - -## Related - -- [pinkie-promise](https://github.com/floatdrop/pinkie-promise) - Returns the native Promise or this module - - -## License - -MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop) diff --git a/node_modules/postcss-value-parser/LICENSE b/node_modules/postcss-value-parser/LICENSE deleted file mode 100644 index f37fd71..0000000 --- a/node_modules/postcss-value-parser/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) Bogdan Chadkin - -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/postcss-value-parser/README.md b/node_modules/postcss-value-parser/README.md deleted file mode 100644 index b73261a..0000000 --- a/node_modules/postcss-value-parser/README.md +++ /dev/null @@ -1,253 +0,0 @@ -# postcss-value-parser - -[![Travis CI](https://travis-ci.org/TrySound/postcss-value-parser.svg)](https://travis-ci.org/TrySound/postcss-value-parser) - -Transforms CSS declaration values and at-rule parameters into a tree of nodes, and provides a simple traversal API. - -## Usage - -```js -var valueParser = require('postcss-value-parser'); -var cssBackgroundValue = 'url(foo.png) no-repeat 40px 73%'; -var parsedValue = valueParser(cssBackgroundValue); -// parsedValue exposes an API described below, -// e.g. parsedValue.walk(..), parsedValue.toString(), etc. -``` - -For example, parsing the value `rgba(233, 45, 66, .5)` will return the following: - -```js -{ - nodes: [ - { - type: 'function', - value: 'rgba', - before: '', - after: '', - nodes: [ - { type: 'word', value: '233' }, - { type: 'div', value: ',', before: '', after: ' ' }, - { type: 'word', value: '45' }, - { type: 'div', value: ',', before: '', after: ' ' }, - { type: 'word', value: '66' }, - { type: 'div', value: ',', before: ' ', after: '' }, - { type: 'word', value: '.5' } - ] - } - ] -} -``` - -If you wanted to convert each `rgba()` value in `sourceCSS` to a hex value, you could do so like this: - -```js -var valueParser = require('postcss-value-parser'); - -var parsed = valueParser(sourceCSS); - -// walk() will visit all the of the nodes in the tree, -// invoking the callback for each. -parsed.walk(function (node) { - - // Since we only want to transform rgba() values, - // we can ignore anything else. - if (node.type !== 'function' && node.value !== 'rgba') return; - - // We can make an array of the rgba() arguments to feed to a - // convertToHex() function - var color = node.nodes.filter(function (node) { - return node.type === 'word'; - }).map(function (node) { - return Number(node.value); - }); // [233, 45, 66, .5] - - // Now we will transform the existing rgba() function node - // into a word node with the hex value - node.type = 'word'; - node.value = convertToHex(color); -}) - -parsed.toString(); // #E92D42 -``` - -## Nodes - -Each node is an object with these common properties: - -- **type**: The type of node (`word`, `string`, `div`, `space`, `comment`, or `function`). - Each type is documented below. -- **value**: Each node has a `value` property; but what exactly `value` means - is specific to the node type. Details are documented for each type below. -- **sourceIndex**: The starting index of the node within the original source - string. For example, given the source string `10px 20px`, the `word` node - whose value is `20px` will have a `sourceIndex` of `5`. - -### word - -The catch-all node type that includes keywords (e.g. `no-repeat`), -quantities (e.g. `20px`, `75%`, `1.5`), and hex colors (e.g. `#e6e6e6`). - -Node-specific properties: - -- **value**: The "word" itself. - -### string - -A quoted string value, e.g. `"something"` in `content: "something";`. - -Node-specific properties: - -- **value**: The text content of the string. -- **quote**: The quotation mark surrounding the string, either `"` or `'`. -- **unclosed**: `true` if the string was not closed properly. e.g. `"unclosed string `. - -### div - -A divider, for example - -- `,` in `animation-duration: 1s, 2s, 3s` -- `/` in `border-radius: 10px / 23px` -- `:` in `(min-width: 700px)` - -Node-specific properties: - -- **value**: The divider character. Either `,`, `/`, or `:` (see examples above). -- **before**: Whitespace before the divider. -- **after**: Whitespace after the divider. - -### space - -Whitespace used as a separator, e.g. ` ` occurring twice in `border: 1px solid black;`. - -Node-specific properties: - -- **value**: The whitespace itself. - -### comment - -A CSS comment starts with `/*` and ends with `*/` - -Node-specific properties: - -- **value**: The comment value without `/*` and `*/` -- **unclosed**: `true` if the comment was not closed properly. e.g. `/* comment without an end `. - -### function - -A CSS function, e.g. `rgb(0,0,0)` or `url(foo.bar)`. - -Function nodes have nodes nested within them: the function arguments. - -Additional properties: - -- **value**: The name of the function, e.g. `rgb` in `rgb(0,0,0)`. -- **before**: Whitespace after the opening parenthesis and before the first argument, - e.g. ` ` in `rgb( 0,0,0)`. -- **after**: Whitespace before the closing parenthesis and after the last argument, - e.g. ` ` in `rgb(0,0,0 )`. -- **nodes**: More nodes representing the arguments to the function. -- **unclosed**: `true` if the parentheses was not closed properly. e.g. `( unclosed-function `. - -Media features surrounded by parentheses are considered functions with an -empty value. For example, `(min-width: 700px)` parses to these nodes: - -```js -[ - { - type: 'function', value: '', before: '', after: '', - nodes: [ - { type: 'word', value: 'min-width' }, - { type: 'div', value: ':', before: '', after: ' ' }, - { type: 'word', value: '700px' } - ] - } -] -``` - -`url()` functions can be parsed a little bit differently depending on -whether the first character in the argument is a quotation mark. - -`url( /gfx/img/bg.jpg )` parses to: - -```js -{ type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [ - { type: 'word', sourceIndex: 5, value: '/gfx/img/bg.jpg' } -] } -``` - -`url( "/gfx/img/bg.jpg" )`, on the other hand, parses to: - -```js -{ type: 'function', sourceIndex: 0, value: 'url', before: ' ', after: ' ', nodes: [ - type: 'string', sourceIndex: 5, quote: '"', value: '/gfx/img/bg.jpg' }, -] } -``` - -## API - -``` -var valueParser = require('postcss-value-parser'); -``` - -### valueParser.unit(quantity) - -Parses `quantity`, distinguishing the number from the unit. Returns an object like the following: - -```js -// Given 2rem -{ - number: '2', - unit: 'rem' -} -``` - -If the `quantity` argument cannot be parsed as a number, returns `false`. - -*This function does not parse complete values*: you cannot pass it `1px solid black` and expect `px` as -the unit. Instead, you should pass it single quantities only. Parse `1px solid black`, then pass it -the stringified `1px` node (a `word` node) to parse the number and unit. - -### valueParser.stringify(nodes[, custom]) - -Stringifies a node or array of nodes. - -The `custom` function is called for each `node`; return a string to override the default behaviour. - -### valueParser.walk(nodes, callback[, bubble]) - -Walks each provided node, recursively walking all descendent nodes within functions. - -Returning `false` in the `callback` will prevent traversal of descendent nodes (within functions). -You can use this feature to for shallow iteration, walking over only the *immediate* children. -*Note: This only applies if `bubble` is `false` (which is the default).* - -By default, the tree is walked from the outermost node inwards. -To reverse the direction, pass `true` for the `bubble` argument. - -The `callback` is invoked with three arguments: `callback(node, index, nodes)`. - -- `node`: The current node. -- `index`: The index of the current node. -- `nodes`: The complete nodes array passed to `walk()`. - -Returns the `valueParser` instance. - -### var parsed = valueParser(value) - -Returns the parsed node tree. - -### parsed.nodes - -The array of nodes. - -### parsed.toString() - -Stringifies the node tree. - -### parsed.walk(callback[, bubble]) - -Walks each node inside `parsed.nodes`. See the documentation for `valueParser.walk()` above. - -# License - -MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru) diff --git a/node_modules/postcss-value-parser/lib/index.js b/node_modules/postcss-value-parser/lib/index.js deleted file mode 100644 index f2a53c9..0000000 --- a/node_modules/postcss-value-parser/lib/index.js +++ /dev/null @@ -1,28 +0,0 @@ -var parse = require('./parse'); -var walk = require('./walk'); -var stringify = require('./stringify'); - -function ValueParser(value) { - if (this instanceof ValueParser) { - this.nodes = parse(value); - return this; - } - return new ValueParser(value); -} - -ValueParser.prototype.toString = function () { - return Array.isArray(this.nodes) ? stringify(this.nodes) : ''; -}; - -ValueParser.prototype.walk = function (cb, bubble) { - walk(this.nodes, cb, bubble); - return this; -}; - -ValueParser.unit = require('./unit'); - -ValueParser.walk = walk; - -ValueParser.stringify = stringify; - -module.exports = ValueParser; diff --git a/node_modules/postcss-value-parser/lib/parse.js b/node_modules/postcss-value-parser/lib/parse.js deleted file mode 100644 index 340bddc..0000000 --- a/node_modules/postcss-value-parser/lib/parse.js +++ /dev/null @@ -1,242 +0,0 @@ -var openParentheses = '('.charCodeAt(0); -var closeParentheses = ')'.charCodeAt(0); -var singleQuote = '\''.charCodeAt(0); -var doubleQuote = '"'.charCodeAt(0); -var backslash = '\\'.charCodeAt(0); -var slash = '/'.charCodeAt(0); -var comma = ','.charCodeAt(0); -var colon = ':'.charCodeAt(0); -var star = '*'.charCodeAt(0); - -module.exports = function (input) { - var tokens = []; - var value = input; - - var next, quote, prev, token, escape, escapePos, whitespacePos; - var pos = 0; - var code = value.charCodeAt(pos); - var max = value.length; - var stack = [{ nodes: tokens }]; - var balanced = 0; - var parent; - - var name = ''; - var before = ''; - var after = ''; - - while (pos < max) { - // Whitespaces - if (code <= 32) { - next = pos; - do { - next += 1; - code = value.charCodeAt(next); - } while (code <= 32); - token = value.slice(pos, next); - - prev = tokens[tokens.length - 1]; - if (code === closeParentheses && balanced) { - after = token; - } else if (prev && prev.type === 'div') { - prev.after = token; - } else if (code === comma || code === colon || code === slash && value.charCodeAt(next + 1) !== star) { - before = token; - } else { - tokens.push({ - type: 'space', - sourceIndex: pos, - value: token - }); - } - - pos = next; - - // Quotes - } else if (code === singleQuote || code === doubleQuote) { - next = pos; - quote = code === singleQuote ? '\'' : '"'; - token = { - type: 'string', - sourceIndex: pos, - quote: quote - }; - do { - escape = false; - next = value.indexOf(quote, next + 1); - if (~next) { - escapePos = next; - while (value.charCodeAt(escapePos - 1) === backslash) { - escapePos -= 1; - escape = !escape; - } - } else { - value += quote; - next = value.length - 1; - token.unclosed = true; - } - } while (escape); - token.value = value.slice(pos + 1, next); - - tokens.push(token); - pos = next + 1; - code = value.charCodeAt(pos); - - // Comments - } else if (code === slash && value.charCodeAt(pos + 1) === star) { - token = { - type: 'comment', - sourceIndex: pos - }; - - next = value.indexOf('*/', pos); - if (next === -1) { - token.unclosed = true; - next = value.length; - } - - token.value = value.slice(pos + 2, next); - tokens.push(token); - - pos = next + 2; - code = value.charCodeAt(pos); - - // Dividers - } else if (code === slash || code === comma || code === colon) { - token = value[pos]; - - tokens.push({ - type: 'div', - sourceIndex: pos - before.length, - value: token, - before: before, - after: '' - }); - before = ''; - - pos += 1; - code = value.charCodeAt(pos); - - // Open parentheses - } else if (openParentheses === code) { - // Whitespaces after open parentheses - next = pos; - do { - next += 1; - code = value.charCodeAt(next); - } while (code <= 32); - token = { - type: 'function', - sourceIndex: pos - name.length, - value: name, - before: value.slice(pos + 1, next) - }; - pos = next; - - if (name === 'url' && code !== singleQuote && code !== doubleQuote) { - next -= 1; - do { - escape = false; - next = value.indexOf(')', next + 1); - if (~next) { - escapePos = next; - while (value.charCodeAt(escapePos - 1) === backslash) { - escapePos -= 1; - escape = !escape; - } - } else { - value += ')'; - next = value.length - 1; - token.unclosed = true; - } - } while (escape); - // Whitespaces before closed - whitespacePos = next; - do { - whitespacePos -= 1; - code = value.charCodeAt(whitespacePos); - } while (code <= 32); - if (pos !== whitespacePos + 1) { - token.nodes = [{ - type: 'word', - sourceIndex: pos, - value: value.slice(pos, whitespacePos + 1) - }]; - } else { - token.nodes = []; - } - if (token.unclosed && whitespacePos + 1 !== next) { - token.after = ''; - token.nodes.push({ - type: 'space', - sourceIndex: whitespacePos + 1, - value: value.slice(whitespacePos + 1, next) - }); - } else { - token.after = value.slice(whitespacePos + 1, next); - } - pos = next + 1; - code = value.charCodeAt(pos); - tokens.push(token); - } else { - balanced += 1; - token.after = ''; - tokens.push(token); - stack.push(token); - tokens = token.nodes = []; - parent = token; - } - name = ''; - - // Close parentheses - } else if (closeParentheses === code && balanced) { - pos += 1; - code = value.charCodeAt(pos); - - parent.after = after; - after = ''; - balanced -= 1; - stack.pop(); - parent = stack[balanced]; - tokens = parent.nodes; - - // Words - } else { - next = pos; - do { - if (code === backslash) { - next += 1; - } - next += 1; - code = value.charCodeAt(next); - } while (next < max && !( - code <= 32 || - code === singleQuote || - code === doubleQuote || - code === comma || - code === colon || - code === slash || - code === openParentheses || - code === closeParentheses && balanced - )); - token = value.slice(pos, next); - - if (openParentheses === code) { - name = token; - } else { - tokens.push({ - type: 'word', - sourceIndex: pos, - value: token - }); - } - - pos = next; - } - } - - for (pos = stack.length - 1; pos; pos -= 1) { - stack[pos].unclosed = true; - } - - return stack[0].nodes; -}; diff --git a/node_modules/postcss-value-parser/lib/stringify.js b/node_modules/postcss-value-parser/lib/stringify.js deleted file mode 100644 index 554c810..0000000 --- a/node_modules/postcss-value-parser/lib/stringify.js +++ /dev/null @@ -1,41 +0,0 @@ -function stringifyNode(node, custom) { - var type = node.type; - var value = node.value; - var buf; - var customResult; - - if (custom && (customResult = custom(node)) !== undefined) { - return customResult; - } else if (type === 'word' || type === 'space') { - return value; - } else if (type === 'string') { - buf = node.quote || ''; - return buf + value + (node.unclosed ? '' : buf); - } else if (type === 'comment') { - return '/*' + value + (node.unclosed ? '' : '*/'); - } else if (type === 'div') { - return (node.before || '') + value + (node.after || ''); - } else if (Array.isArray(node.nodes)) { - buf = stringify(node.nodes); - if (type !== 'function') { - return buf; - } - return value + '(' + (node.before || '') + buf + (node.after || '') + (node.unclosed ? '' : ')'); - } - return value; -} - -function stringify(nodes, custom) { - var result, i; - - if (Array.isArray(nodes)) { - result = ''; - for (i = nodes.length - 1; ~i; i -= 1) { - result = stringifyNode(nodes[i], custom) + result; - } - return result; - } - return stringifyNode(nodes, custom); -} - -module.exports = stringify; diff --git a/node_modules/postcss-value-parser/lib/unit.js b/node_modules/postcss-value-parser/lib/unit.js deleted file mode 100644 index c813057..0000000 --- a/node_modules/postcss-value-parser/lib/unit.js +++ /dev/null @@ -1,41 +0,0 @@ -var minus = '-'.charCodeAt(0); -var plus = '+'.charCodeAt(0); -var dot = '.'.charCodeAt(0); - -module.exports = function (value) { - var pos = 0; - var length = value.length; - var dotted = false; - var containsNumber = false; - var code; - var number = ''; - - while (pos < length) { - code = value.charCodeAt(pos); - - if (code >= 48 && code <= 57) { - number += value[pos]; - containsNumber = true; - } else if (code === dot) { - if (dotted) { - break; - } - dotted = true; - number += value[pos]; - } else if (code === plus || code === minus) { - if (pos !== 0) { - break; - } - number += value[pos]; - } else { - break; - } - - pos += 1; - } - - return containsNumber ? { - number: number, - unit: value.slice(pos) - } : false; -}; diff --git a/node_modules/postcss-value-parser/lib/walk.js b/node_modules/postcss-value-parser/lib/walk.js deleted file mode 100644 index a217f05..0000000 --- a/node_modules/postcss-value-parser/lib/walk.js +++ /dev/null @@ -1,18 +0,0 @@ -module.exports = function walk(nodes, cb, bubble) { - var i, max, node, result; - - for (i = 0, max = nodes.length; i < max; i += 1) { - node = nodes[i]; - if (!bubble) { - result = cb(node, i, nodes); - } - - if (result !== false && node.type === 'function' && Array.isArray(node.nodes)) { - walk(node.nodes, cb, bubble); - } - - if (bubble) { - cb(node, i, nodes); - } - } -}; diff --git a/node_modules/postcss-value-parser/package.json b/node_modules/postcss-value-parser/package.json deleted file mode 100644 index fc8a908..0000000 --- a/node_modules/postcss-value-parser/package.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "postcss-value-parser@^3.2.3", - "scope": null, - "escapedName": "postcss-value-parser", - "name": "postcss-value-parser", - "rawSpec": "^3.2.3", - "spec": ">=3.2.3 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/autoprefixer" - ] - ], - "_from": "postcss-value-parser@>=3.2.3 <4.0.0", - "_id": "postcss-value-parser@3.3.0", - "_inCache": true, - "_location": "/postcss-value-parser", - "_nodeVersion": "0.12.7", - "_npmOperationalInternal": { - "host": "packages-6-west.internal.npmjs.com", - "tmp": "tmp/postcss-value-parser-3.3.0.tgz_1455817254522_0.1339812579099089" - }, - "_npmUser": { - "name": "trysound", - "email": "trysound@yandex.ru" - }, - "_npmVersion": "3.7.2", - "_phantomChildren": {}, - "_requested": { - "raw": "postcss-value-parser@^3.2.3", - "scope": null, - "escapedName": "postcss-value-parser", - "name": "postcss-value-parser", - "rawSpec": "^3.2.3", - "spec": ">=3.2.3 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/autoprefixer" - ], - "_resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", - "_shasum": "87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15", - "_shrinkwrap": null, - "_spec": "postcss-value-parser@^3.2.3", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/autoprefixer", - "author": { - "name": "Bogdan Chadkin", - "email": "trysound@yandex.ru" - }, - "bugs": { - "url": "https://github.com/TrySound/postcss-value-parser/issues" - }, - "dependencies": {}, - "description": "Transforms css values and at-rule params into the tree", - "devDependencies": { - "eslint": "^2.1.0", - "eslint-config-postcss": "^2.0.0", - "tap-spec": "^4.1.0", - "tape": "^4.2.0" - }, - "directories": {}, - "dist": { - "shasum": "87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15", - "tarball": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz" - }, - "eslintConfig": { - "extends": "postcss/es5", - "rules": { - "max-len": 0, - "no-bitwise": 0, - "complexity": 0, - "no-use-before-define": 0, - "consistent-return": 0 - } - }, - "files": [ - "lib" - ], - "gitHead": "c2738fbc73bf1162481862ddce7d011cc0a57b15", - "homepage": "https://github.com/TrySound/postcss-value-parser", - "keywords": [ - "postcss", - "value", - "parser" - ], - "license": "MIT", - "main": "lib/index.js", - "maintainers": [ - { - "name": "trysound", - "email": "trysound@yandex.ru" - }, - { - "name": "beneb", - "email": "beneb.info@gmail.com" - } - ], - "name": "postcss-value-parser", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/TrySound/postcss-value-parser.git" - }, - "scripts": { - "posttest": "eslint .", - "test": "tape test/*.js | tap-spec" - }, - "version": "3.3.0" -} diff --git a/node_modules/postcss/CHANGELOG.md b/node_modules/postcss/CHANGELOG.md deleted file mode 100644 index b8c0382..0000000 --- a/node_modules/postcss/CHANGELOG.md +++ /dev/null @@ -1,451 +0,0 @@ -# Change Log -All notable changes to this project will be documented in this file. -This project adheres to [Semantic Versioning](http://semver.org/). - -## 5.2.15 -* Fix TypeScript definitions (by bumbleblym). - -## 5.2.14 -* Fix browser bundle building in webpack (by janschoenherr). - -## 5.2.13 -* Do not add comment to important raws. -* Fix JSDoc (by Dmitry Semigradsky). - -## 5.2.12 -* Fix typo in deprecation message (by Garet McKinley). - -## 5.2.11 -* Fix TypeScript definitions (by Jed Mao). - -## 5.2.10 -* Fix TypeScript definitions (by Jed Mao). - -## 5.2.9 -* Update TypeScript definitions (by Jed Mao). - -## 5.2.8 -* Fix error message (by Ben Briggs). - -## 5.2.7 -* Better error message on syntax object in plugins list. - -## 5.2.6 -* Fix `postcss.vendor` for values with spaces (by 刘祺). - -## 5.2.5 -* Better error message on unclosed string (by Ben Briggs). - -## 5.2.4 -* Improve terminal CSS syntax highlight (by Simon Lydell). - -## 5.2.3 -* Better color highlight in syntax error code frame. -* Fix color highlight support in old systems. - -## 5.2.2 -* Update `Processor#version`. - -## 5.2.1 -* Fix source map path for CSS without `from` option (by Michele Locati). - -## 5.2 “Duke Vapula” -* Add syntax highlight to code frame in syntax error (by Andrey Popp). -* Use Babel code frame style and size in syntax error. -* Add `[` and `]` tokens to parse `[attr=;] {}` correctly. -* Add `ignoreErrors` options to tokenizer (by Andrey Popp). -* Fix error position on tab indent (by Simon Lydell). - -## 5.1.2 -* Suggests SCSS/Less parsers on parse errors depends on file extension. - -## 5.1.1 -* Fix TypeScript definitions (by Efremov Alexey). - -## 5.1 “King and President Zagan” -* Add URI in source map support (by Mark Finger). -* Add `map.from` option (by Mark Finger). -* Add `` mappings for nodes without source (by Bogdan Chadkin). -* Add function value support to `map.prev` option (by Chris Montoro). -* Add declaration value type check in shortcut creating (by 刘祺). -* `Result#warn` now returns new created warning. -* Don’t call plugin creator in `postcss.plugin` call. -* Add source maps to PostCSS ES5 build. -* Add JSDoc to PostCSS classes. -* Clean npm package from unnecessary docs. - -## 5.0.21 -* Fix support with input source mao with `utf8` encoding name. - -## 5.0.20 -* Fix between raw value parsing (by David Clark). -* Update TypeScript definitions (by Jed Mao). -* Clean fake node.source after `append(string)`. - -## 5.0.19 -* Fix indent-based syntaxes support. - -## 5.0.18 -* Parse new lines according W3C CSS syntax specification. - -## 5.0.17 -* Fix options argument in `Node#warn` (by Ben Briggs). -* Fix TypeScript definitions (by Jed Mao). - -## 5.0.16 -* Fix CSS syntax error position on unclosed quotes. - -## 5.0.15 -* Fix `Node#clone()` on `null` value somewhere in node. - -## 5.0.14 -* Allow to use PostCSS in webpack bundle without JSON loader. - -## 5.0.13 -* Fix `index` and `word` options in `Warning#toString` (by Bogdan Chadkin). -* Fix input source content loading in errors. -* Fix map options on using `LazyResult` as input CSS. -* 100% test coverage. -* Use Babel 6. - -## 5.0.12 -* Allow passing a previous map with no mappings (by Andreas Lind). - -## 5.0.11 -* Increase plugins performance by 1.5 times. - -## 5.0.10 -* Fix warning from nodes without source. - -## 5.0.9 -* Fix source map type detection (by @asan). - -## 5.0.8 -* Fixed a missed step in `5.0.7` that caused the module to be published as - ES6 code. - -## 5.0.7 -* PostCSS now requires that node 0.12 is installed via the engines property - in package.json (by Howard Zuo). - -## 5.0.6 -* Fix parsing nested at-rule without semicolon (by Matt Drake). -* Trim `Declaration#value` (by Bogdan Chadkin). - -## 5.0.5 -* Fix multi-tokens property parsing (by Matt Drake). - -## 5.0.4 -* Fix start position in `Root#source`. -* Fix source map annotation, when CSS uses `\r\n` (by Mohammad Younes). - -## 5.0.3 -* Fix `url()` parsing. -* Fix using `selectors` in `Rule` constructor. -* Add start source to `Root` node. - -## 5.0.2 -* Fix `remove(index)` to be compatible with 4.x plugin. - -## 5.0.1 -* Fix PostCSS 4.x plugins compatibility. -* Fix type definition loading (by Jed Mao). - -## 5.0 “President Valac” -* Remove `safe` option. Move Safe Parser to separate project. -* `Node#toString` does not include `before` for root nodes. -* Remove plugin returning `Root` API. -* Remove Promise polyfill for node.js 0.10. -* Deprecate `eachInside`, `eachDecl`, `eachRule`, `eachAtRule` and `eachComment` - in favor of `walk`, `walkDecls`, `walkRules`, `walkAtRules` and `walkComments` - (by Jed Mao). -* Deprecate `Container#remove` and `Node#removeSelf` - in favor of `Container#removeChild` and `Node#remove` (by Ben Briggs). -* Deprecate `Node#replace` in favor of `replaceWith` (by Ben Briggs). -* Deprecate raw properties in favor of `Node#raws` object. -* Deprecate `Node#style` in favor of `raw`. -* Deprecate `CssSyntaxError#generated` in favor of `input`. -* Deprecate `Node#cleanStyles` in favor of `cleanRaws`. -* Deprecate `Root#prevMap` in favor of `Root.source.input.map`. -* Add `syntax`, `parser` and `stringifier` options for Custom Syntaxes. -* Add stringifier option to `Node#toString`. -* Add `Result#content` alias for non-CSS syntaxes. -* Add `plugin.process(css)` shortcut to every plugin function (by Ben Briggs). -* Add multiple nodes support to insert methods (by Jonathan Neal). -* Add `Node#warn` shortcut (by Ben Briggs). -* Add `word` and `index` options to errors and warnings (by David Clark). -* Add `line`, `column` properties to `Warning`. -* Use `supports-color` library to detect color support in error output. -* Add type definitions for TypeScript plugin developers (by Jed Mao). -* `Rule#selectors` setter detects separators. -* Add `postcss.stringify` method. -* Throw descriptive errors for incorrectly formatted plugins. -* Add docs to npm release. -* Fix `url()` parsing. -* Fix Windows support (by Jed Mao). - -## 4.1.16 -* Fix errors without stack trace. - -## 4.1.15 -* Allow asynchronous plugins to change processor plugins list (by Ben Briggs). - -## 4.1.14 -* Fix for plugins packs defined by `postcss.plugin`. - -## 4.1.13 -* Fix input inlined source maps with UTF-8 encoding. - -## 4.1.12 -* Update Promise polyfill. - -## 4.1.11 -* Fix error message on wrong plugin format. - -## 4.1.10 -* Fix Promise behavior on sync plugin errors. -* Automatically fill `plugin` field in `CssSyntaxError`. -* Fix warning message (by Ben Briggs). - -## 4.1.9 -* Speed up `node.clone()`. - -## 4.1.8 -* Accepts `Processor` instance in `postcss()` constructor too. - -## 4.1.7 -* Speed up `postcss.list` (by Bogdan Chadkin). - -## 4.1.6 -* Fix Promise behavior on parsing error. - -## 4.1.5 -* Parse at-words in declaration values. - -## 4.1.4 -* Fix Promise polyfill dependency (by Anton Yakushev and Matija Marohnić). - -## 4.1.3 -* Add Promise polyfill for node.js 0.10 and IE. - -## 4.1.2 -* List helpers can be accessed independently `var space = postcss.list.space`. - -## 4.1.1 -* Show deprecated message only once. - -## 4.1 “Marquis Andras” -* Asynchronous plugin support. -* Add warnings from plugins and `Result#messages`. -* Add `postcss.plugin()` to create plugins with a standard API. -* Insert nodes by CSS string. -* Show version warning message on error from an outdated plugin. -* Send `Result` instance to plugins as the second argument. -* Add `CssSyntaxError#plugin`. -* Add `CssSyntaxError#showSourceCode()`. -* Add `postcss.list` and `postcss.vendor` aliases. -* Add `Processor#version`. -* Parse wrong closing bracket. -* Parse `!important` statement with spaces and comments inside (by Ben Briggs). -* Throw an error on declaration without `prop` or `value` (by Philip Peterson). -* Fix source map mappings position. -* Add indexed source map support. -* Always set `error.generated`. -* Clean all source map annotation comments. - -## 4.0.6 -* Remove `babel` from released package dependencies (by Andres Suarez). - -## 4.0.5 -* Fix error message on double colon in declaration. - -## 4.0.4 -* Fix indent detection in some rare cases. - -## 4.0.3 -* Faster API with 6to5 Loose mode. -* Fix indexed source maps support. - -## 4.0.2 -* Do not copy IE hacks to code style. - -## 4.0.1 -* Add `source.input` to `Root` too. - -## 4.0 “Duke Flauros” -* Rename `Container#childs` to `nodes`. -* Rename `PostCSS#processors` to `plugins`. -* Add `Node#replaceValues()` method. -* Add `Node#moveTo()`, `moveBefore()` and `moveAfter()` methods. -* Add `Node#cloneBefore()` and `cloneAfter()` shortcuts. -* Add `Node#next()`, `prev()` and `root()` shortcuts. -* Add `Node#replaceWith()` method. -* Add `Node#error()` method. -* Add `Container#removeAll()` method. -* Add filter argument to `eachDecl()` and `eachAtRule()`. -* Add `Node#source.input` and move `source.file` or `source.id` to `input`. -* Change code indent, when node was moved. -* Better fix code style on `Rule`, `AtRule` and `Comment` nodes changes. -* Allow to create rules and at-rules by hash shortcut in append methods. -* Add class name to CSS syntax error output. - -## 3.0.7 -* Fix IE filter parsing with multiple commands. -* Safer way to consume PostCSS object as plugin (by Maxime Thirouin). - -## 3.0.6 -* Fix missing semicolon when comment comes after last declaration. -* Fix Safe Mode declaration parsing on unclosed blocks. - -## 3.0.5 -* Fix parser to support difficult cases with backslash escape and brackets. -* Add `CssSyntaxError#stack` (by Maxime Thirouin). - -## 3.0.4 -* Fix Safe Mode on unknown word before declaration. - -## 3.0.3 -* Increase tokenizer speed (by Roman Dvornov). - -## 3.0.2 -* Fix empty comment parsing. -* Fix `Root#normalize` in some inserts. - -## 3.0.1 -* Fix Rhino JS runtime support. -* Typo in deprecated warning (by Maxime Thirouin). - -## 3.0 “Marquis Andrealphus” -* New parser, which become the fastest ever CSS parser written in JavaScript. -* Parser can now parse declarations and rules in one parent (like in `@page`) - and nested declarations for plugins like `postcss-nested`. -* Child nodes array is now in `childs` property, instead of `decls` and `rules`. -* `map.inline` and `map.sourcesContent` options are now `true` by default. -* Fix iterators (`each`, `insertAfter`) on children array changes. -* Use previous source map to show origin source of CSS syntax error. -* Use 6to5 ES6 compiler, instead of ES6 Transpiler. -* Use code style for manually added rules from existing rules. -* Use `from` option from previous source map `file` field. -* Set `to` value to `from` if `to` option is missing. -* Use better node source name when missing `from` option. -* Show a syntax error when `;` is missed between declarations. -* Allow to pass `PostCSS` instance or list of plugins to `use()` method. -* Allow to pass `Result` instance to `process()` method. -* Trim Unicode BOM on source maps parsing. -* Parse at-rules without spaces like `@import"file"`. -* Better previous `sourceMappingURL` annotation comment cleaning. -* Do not remove previous `sourceMappingURL` comment on `map.annotation: false`. -* Parse nameless at-rules in Safe Mode. -* Fix source map generation for nodes without source. -* Fix next child `before` if `Root` first child got removed. - -## 2.2.6 -* Fix map generation for nodes without source (by Josiah Savary). - -## 2.2.5 -* Fix source map with BOM marker support (by Mohammad Younes). -* Fix source map paths (by Mohammad Younes). - -## 2.2.4 -* Fix `prepend()` on empty `Root`. - -## 2.2.3 -* Allow to use object shortcut in `use()` with functions like `autoprefixer`. - -## 2.2.2 -* Add shortcut to set processors in `use()` via object with `.postcss` property. - -## 2.2.1 -* Send `opts` from `Processor#process(css, opts)` to processors. - -## 2.2 “Marquis Cimeies” -* Use GNU style syntax error messages. -* Add `Node#replace` method. -* Add `CssSyntaxError#reason` property. - -## 2.1.2 -* Fix UTF-8 support in inline source map. -* Fix source map `sourcesContent` if there is no `from` and `to` options. - -## 2.1.1 -* Allow to miss `to` and `from` options for inline source maps. -* Add `Node#source.id` if file name is unknown. -* Better detect splitter between rules in CSS concatenation tools. -* Automatically clone node in insert methods. - -## 2.1 “King Amdusias” -* Change Traceur ES6 compiler to ES6 Transpiler. -* Show broken CSS line in syntax error. - -## 2.0 “King Belial” -* Project was rewritten from CoffeeScript to ES6. -* Add Safe Mode to works with live input or with hacks from legacy code. -* More safer parser to pass all hacks from Browserhacks.com. -* Use real properties instead of magic getter/setter for raw properties. - -## 1.0 “Marquis Decarabia” -* Save previous source map for each node to support CSS concatenation - with multiple previous maps. -* Add `map.sourcesContent` option to add origin content to `sourcesContent` - inside map. -* Allow to set different place of output map in annotation comment. -* Allow to use arrays and `Root` in `Container#append` and same methods. -* Add `Root#prevMap` with information about previous map. -* Allow to use latest PostCSS from GitHub by npm. -* `Result` now is lazy and it will generate output CSS only if you use `css` - or `map` property. -* Use separated `map.prev` option to set previous map. -* Rename `inlineMap` option to `map.inline`. -* Rename `mapAnnotation` option to `map.annotation`. -* `Result#map` now return `SourceMapGenerator` object, instead of string. -* Run previous map autodetect only if input CSS contains annotation comment. -* Add `map: 'inline'` shortcut for `map: { inline: true }` option. -* `Node#source.file` now will contains absolute path. -* Clean `Declaration#between` style on node clone. - -## 0.3.5 -* Allow to use `Root` or `Result` as first argument in `process()`. -* Save parsed AST to `Result#root`. - -## 0.3.4 -* Better space symbol detect to read UTF-8 BOM correctly. - -## 0.3.3 -* Remove source map hacks by using new Mozilla’s `source-map` (by Simon Lydell). - -## 0.3.2 -* Add URI encoding support for inline source maps. - -## 0.3.1 -* Fix relative paths from previous source map. -* Safer space split in `Rule#selectors` (by Simon Lydell). - -## 0.3 “Prince Seere” -* Add `Comment` node for comments between declarations or rules. -* Add source map annotation comment to output CSS. -* Allow to inline source map to annotation comment by data:uri. -* Fix source maps on Windows. -* Fix source maps for subdirectory (by Dmitry Nikitenko and Simon Lydell). -* Autodetect previous source map. -* Add `first` and `last` shortcuts to container nodes. -* Parse `!important` to separated property in `Declaration`. -* Allow to break iteration by returning `false`. -* Copy code style to new nodes. -* Add `eachInside` method to recursively iterate all nodes. -* Add `selectors` shortcut to get selectors array. -* Add `toResult` method to `Rule` to simplify work with several input files. -* Clean declaration’s `value`, rule’s `selector` and at-rule’s `params` - by storing spaces in `between` property. - -## 0.2 “Duke Dantalion” -* Add source map support. -* Add shortcuts to create nodes. -* Method `process()` now returns object with `css` and `map` keys. -* Origin CSS file option was renamed from `file` to `from`. -* Rename `Node#remove()` method to `removeSelf()` to fix name conflict. -* Node source was moved to `source` property with origin file - and node end position. -* You can set own CSS generate function. - -## 0.1 “Count Andromalius” -* Initial release. diff --git a/node_modules/postcss/LICENSE b/node_modules/postcss/LICENSE deleted file mode 100644 index da057b4..0000000 --- a/node_modules/postcss/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright 2013 Andrey Sitnik - -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/postcss/README.md b/node_modules/postcss/README.md deleted file mode 100644 index 746e2bc..0000000 --- a/node_modules/postcss/README.md +++ /dev/null @@ -1,354 +0,0 @@ -# PostCSS [![Travis Build Status][travis-img]][travis] [![AppVeyor Build Status][appveyor-img]][appveyor] [![Gitter][chat-img]][chat] - - - -[appveyor-img]: https://img.shields.io/appveyor/ci/ai/postcss.svg?label=windows -[travis-img]: https://img.shields.io/travis/postcss/postcss.svg?label=unix -[chat-img]: https://img.shields.io/badge/Gitter-Join_the_PostCSS_chat-brightgreen.svg -[appveyor]: https://ci.appveyor.com/project/ai/postcss -[travis]: https://travis-ci.org/postcss/postcss -[chat]: https://gitter.im/postcss/postcss - -PostCSS is a tool for transforming styles with JS plugins. -These plugins can lint your CSS, support variables and mixins, -transpile future CSS syntax, inline images, and more. - -PostCSS is used by industry leaders including Wikipedia, Twitter, Alibaba, -and JetBrains. The [Autoprefixer] PostCSS plugin is one of the most popular -CSS processors. - -Twitter account: [@postcss](https://twitter.com/postcss). -VK.com page: [postcss](https://vk.com/postcss). -Support / Discussion: [Gitter](https://gitter.im/postcss/postcss). - -For PostCSS commercial support (consulting, improving the front-end culture -of your company, PostCSS plugins), contact [Evil Martians](https://evilmartians.com/?utm_source=postcss) -at . - -[Autoprefixer]: https://github.com/postcss/autoprefixer - - - Sponsored by Evil Martians - - -## Plugins - -Currently, PostCSS has more than 200 plugins. You can find all of the plugins -in the [plugins list] or in the [searchable catalog]. Below is a list -of our favorite plugins — the best demonstrations of what can be built -on top of PostCSS. - -If you have any new ideas, [PostCSS plugin development] is really easy. - -[searchable catalog]: http://postcss.parts -[plugins list]: https://github.com/postcss/postcss/blob/master/docs/plugins.md - -### Solve Global CSS Problem - -* [`postcss-use`] allows you to explicitly set PostCSS plugins within CSS - and execute them only for the current file. -* [`postcss-modules`] and [`react-css-modules`] automatically isolate - selectors within components. -* [`postcss-autoreset`] is an alternative to using a global reset - that is better for isolatable components. -* [`postcss-initial`] adds `all: initial` support, which resets - all inherited styles. -* [`cq-prolyfill`] adds container query support, allowing styles that respond - to the width of the parent. - -### Use Future CSS, Today - -* [`autoprefixer`] adds vendor prefixes, using data from Can I Use. -* [`postcss-cssnext`] allows you to use future CSS features today - (includes `autoprefixer`). - -### Better CSS Readability - -* [`precss`] contains plugins for Sass-like features, like variables, nesting, - and mixins. -* [`postcss-sorting`] sorts the content of rules and at-rules. -* [`postcss-utilities`] includes the most commonly used shortcuts and helpers. -* [`short`] adds and extends numerous shorthand properties. - -### Images and Fonts - -* [`postcss-assets`] inserts image dimensions and inlines files. -* [`postcss-sprites`] generates image sprites. -* [`font-magician`] generates all the `@font-face` rules needed in CSS. -* [`postcss-inline-svg`] allows you to inline SVG and customize its styles. -* [`postcss-write-svg`] allows you to write simple SVG directly in your CSS. - -### Linters - -* [`stylelint`] is a modular stylesheet linter. -* [`stylefmt`] is a tool that automatically formats CSS - according `stylelint` rules. -* [`doiuse`] lints CSS for browser support, using data from Can I Use. -* [`colorguard`] helps you maintain a consistent color palette. - -### Other - -* [`postcss-rtl`] combines both-directional (left-to-right and right-to-left) styles in one CSS file. -* [`cssnano`] is a modular CSS minifier. -* [`lost`] is a feature-rich `calc()` grid system. -* [`rtlcss`] mirrors styles for right-to-left locales. - -[PostCSS plugin development]: https://github.com/postcss/postcss/blob/master/docs/writing-a-plugin.md -[`postcss-inline-svg`]: https://github.com/TrySound/postcss-inline-svg -[`react-css-modules`]: https://github.com/gajus/react-css-modules -[`postcss-autoreset`]: https://github.com/maximkoretskiy/postcss-autoreset -[`postcss-write-svg`]: https://github.com/jonathantneal/postcss-write-svg -[`postcss-utilities`]: https://github.com/ismamz/postcss-utilities -[`postcss-initial`]: https://github.com/maximkoretskiy/postcss-initial -[`postcss-sprites`]: https://github.com/2createStudio/postcss-sprites -[`postcss-modules`]: https://github.com/outpunk/postcss-modules -[`postcss-sorting`]: https://github.com/hudochenkov/postcss-sorting -[`postcss-cssnext`]: http://cssnext.io -[`postcss-assets`]: https://github.com/assetsjs/postcss-assets -[`font-magician`]: https://github.com/jonathantneal/postcss-font-magician -[`autoprefixer`]: https://github.com/postcss/autoprefixer -[`cq-prolyfill`]: https://github.com/ausi/cq-prolyfill -[`postcss-rtl`]: https://github.com/vkalinichev/postcss-rtl -[`postcss-use`]: https://github.com/postcss/postcss-use -[`css-modules`]: https://github.com/css-modules/css-modules -[`colorguard`]: https://github.com/SlexAxton/css-colorguard -[`stylelint`]: https://github.com/stylelint/stylelint -[`stylefmt`]: https://github.com/morishitter/stylefmt -[`cssnano`]: http://cssnano.co -[`precss`]: https://github.com/jonathantneal/precss -[`doiuse`]: https://github.com/anandthakker/doiuse -[`rtlcss`]: https://github.com/MohammadYounes/rtlcss -[`short`]: https://github.com/jonathantneal/postcss-short -[`lost`]: https://github.com/peterramsing/lost - -## Syntaxes - -PostCSS can transform styles in any syntax, not just CSS. -If there is not yet support for your favorite syntax, -you can write a parser and/or stringifier to extend PostCSS. - -* [`sugarss`] is a indent-based syntax like Sass or Stylus. -* [`postcss-scss`] allows you to work with SCSS - *(but does not compile SCSS to CSS)*. -* [`postcss-less`] allows you to work with Less - *(but does not compile LESS to CSS)*. -* [`postcss-less-engine`] allows you to work with Less - *(and DOES compile LESS to CSS using true Less.js evaluation)*. -* [`postcss-js`] allows you to write styles in JS or transform - React Inline Styles, Radium or JSS. -* [`postcss-safe-parser`] finds and fixes CSS syntax errors. -* [`midas`] converts a CSS string to highlighted HTML. - -[`postcss-safe-parser`]: https://github.com/postcss/postcss-safe-parser -[`postcss-less`]: https://github.com/webschik/postcss-less -[`postcss-less-engine`]: https://github.com/Crunch/postcss-less -[`postcss-scss`]: https://github.com/postcss/postcss-scss -[`postcss-js`]: https://github.com/postcss/postcss-js -[`sugarss`]: https://github.com/postcss/sugarss -[`midas`]: https://github.com/ben-eb/midas - -## Articles - -* [Some things you may think about PostCSS… and you might be wrong](http://julian.io/some-things-you-may-think-about-postcss-and-you-might-be-wrong) -* [What PostCSS Really Is; What It Really Does](http://davidtheclark.com/its-time-for-everyone-to-learn-about-postcss) -* [PostCSS Guides](http://webdesign.tutsplus.com/series/postcss-deep-dive--cms-889) -* [Mastering PostCSS for Web Design](https://www.packtpub.com/web-development/mastering-postcss-web-design) - -More articles and videos you can find on [awesome-postcss](https://github.com/jjaderg/awesome-postcss) list. - -## Usage - -You can start using PostCSS in just two steps: - -1. Find and add PostCSS extensions for your build tool. -2. [Select plugins] and add them to your PostCSS process. - -[Select plugins]: http://postcss.parts - -### Webpack - -Use [`postcss-loader`] in `webpack.config.js`: - -```js -module.exports = { - module: { - loaders: [ - { - test: /\.css$/, - loaders: [ - 'style-loader', - 'css-loader?importLoaders=1', - 'postcss-loader' - ] - } - ] - } -} -``` - -Then create `postcss.config.js`: - -```js -module.exports = { - plugins: [ - require('precss'), - require('autoprefixer') - ] -} -``` - -[`postcss-loader`]: https://github.com/postcss/postcss-loader - -### Gulp - -Use [`gulp-postcss`] and [`gulp-sourcemaps`]. - -```js -gulp.task('css', function () { - var postcss = require('gulp-postcss'); - var sourcemaps = require('gulp-sourcemaps'); - - return gulp.src('src/**/*.css') - .pipe( sourcemaps.init() ) - .pipe( postcss([ require('precss'), require('autoprefixer') ]) ) - .pipe( sourcemaps.write('.') ) - .pipe( gulp.dest('build/') ); -}); -``` - -[`gulp-sourcemaps`]: https://github.com/floridoo/gulp-sourcemaps -[`gulp-postcss`]: https://github.com/postcss/gulp-postcss - -### npm run / CLI - -To use PostCSS from your command-line interface or with npm scripts -there is [`postcss-cli`]. - -```sh -postcss --use autoprefixer -c options.json -o main.css css/*.css -``` - -[`postcss-cli`]: https://github.com/postcss/postcss-cli - -### Browser - -If you want to compile CSS string in browser (for instance, in live edit -tools like CodePen), just use [Browserify] or [webpack]. They will pack -PostCSS and plugins files into a single file. - -To apply PostCSS plugins to React Inline Styles, JSS, Radium -and other CSS-in-JS, you can use [`postcss-js`] and transforms style objects. - -```js -var postcss = require('postcss-js'); -var prefixer = postcss.sync([ require('autoprefixer') ]); - -prefixer({ display: 'flex' }); //=> { display: ['-webkit-box', '-webkit-flex', '-ms-flexbox', 'flex'] } -``` - -[`postcss-js`]: https://github.com/postcss/postcss-js -[Browserify]: http://browserify.org/ -[webpack]: https://webpack.github.io/ - -### Runners - -* **Grunt**: [`grunt-postcss`](https://github.com/nDmitry/grunt-postcss) -* **HTML**: [`posthtml-postcss`](https://github.com/posthtml/posthtml-postcss) -* **Stylus**: [`poststylus`](https://github.com/seaneking/poststylus) -* **Rollup**: [`rollup-plugin-postcss`](https://github.com/egoist/rollup-plugin-postcss) -* **Brunch**: [`postcss-brunch`](https://github.com/brunch/postcss-brunch) -* **Broccoli**: [`broccoli-postcss`](https://github.com/jeffjewiss/broccoli-postcss) -* **Meteor**: [`postcss`](https://atmospherejs.com/juliancwirko/postcss) -* **ENB**: [`enb-postcss`](https://github.com/awinogradov/enb-postcss) -* **Fly**: [`fly-postcss`](https://github.com/postcss/fly-postcss) -* **Start**: [`start-postcss`](https://github.com/start-runner/postcss) -* **Connect/Express**: [`postcss-middleware`](https://github.com/jedmao/postcss-middleware) - -### JS API - -For other environments, you can use the JS API: - -```js -const postcss = require('postcss'); -const precss = require('precss'); -const autoprefixer = require('autoprefixer'); - -fs.readFile('src/app.css', (err, css) => { - postcss([precss, autoprefixer]) - .process(css, { from: 'src/app.css', to: 'dest/app.css' }) - .then(result => { - fs.writeFile('dest/app.css', result.css); - if ( result.map ) fs.writeFile('dest/app.css.map', result.map); - }); -}); -``` - -Read the [PostCSS API documentation] for more details about the JS API. - -All PostCSS runners should pass [PostCSS Runner Guidelines]. - -[PostCSS Runner Guidelines]: https://github.com/postcss/postcss/blob/master/docs/guidelines/runner.md -[PostCSS API documentation]: http://api.postcss.org/postcss.html - -### Options - -Most PostCSS runners accept two parameters: - -* An array of plugins. -* An object of options. - -Common options: - -* `syntax`: an object providing a syntax parser and a stringifier. -* `parser`: a special syntax parser (for example, [SCSS]). -* `stringifier`: a special syntax output generator (for example, [Midas]). -* `map`: [source map options]. -* `from`: the input file name (most runners set it automatically). -* `to`: the output file name (most runners set it automatically). - -[source map options]: https://github.com/postcss/postcss/blob/master/docs/source-maps.md -[Midas]: https://github.com/ben-eb/midas -[SCSS]: https://github.com/postcss/postcss-scss - -### Node.js 0.10 and the Promise API - -If you want to run PostCSS in Node.js 0.10, add the [Promise polyfill]: - -```js -require('es6-promise').polyfill(); -var postcss = require('postcss'); -``` - -[Promise polyfill]: https://github.com/jakearchibald/es6-promise - -## IDE Integration - -### Atom - -* [`language-postcss`] adds PostCSS and [SugarSS] highlight. -* [`source-preview-postcss`] previews your output CSS in a separate, live pane. - -[SugarSS]: https://github.com/postcss/sugarss - -### Sublime Text - -* [`Syntax-highlighting-for-PostCSS`] adds PostCSS highlight. - -[`Syntax-highlighting-for-PostCSS`]: https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS -[`source-preview-postcss`]: https://atom.io/packages/source-preview-postcss -[`language-postcss`]: https://atom.io/packages/language-postcss - -### Vim - -* [`postcss.vim`] adds PostCSS highlight. - -[`postcss.vim`]: https://github.com/stephenway/postcss.vim - -### WebStorm - -WebStorm 2016.3 [has] built-in PostCSS support. - -[has]: https://blog.jetbrains.com/webstorm/2016/08/webstorm-2016-3-early-access-preview/ diff --git a/node_modules/postcss/docs/guidelines/plugin.md b/node_modules/postcss/docs/guidelines/plugin.md deleted file mode 100644 index 4814b0f..0000000 --- a/node_modules/postcss/docs/guidelines/plugin.md +++ /dev/null @@ -1,195 +0,0 @@ -# PostCSS Plugin Guidelines - -A PostCSS plugin is a function that receives and, usually, -transforms a CSS AST from the PostCSS parser. - -The rules below are *mandatory* for all PostCSS plugins. - -See also [ClojureWerkz’s recommendations] for open source projects. - -[ClojureWerkz’s recommendations]: http://blog.clojurewerkz.org/blog/2013/04/20/how-to-make-your-open-source-project-really-awesome/ - -## 1. API - -### 1.1 Clear name with `postcss-` prefix - -The plugin’s purpose should be clear just by reading its name. -If you wrote a transpiler for CSS 4 Custom Media, `postcss-custom-media` -would be a good name. If you wrote a plugin to support mixins, -`postcss-mixins` would be a good name. - -The prefix `postcss-` shows that the plugin is part of the PostCSS ecosystem. - -This rule is not mandatory for plugins that can run as independent tools, -without the user necessarily knowing that it is powered by -PostCSS — for example, [cssnext] and [Autoprefixer]. - -[Autoprefixer]: https://github.com/postcss/autoprefixer -[cssnext]: http://cssnext.io/ - -### 1.2. Do one thing, and do it well - -Do not create multitool plugins. Several small, one-purpose plugins bundled into -a plugin pack is usually a better solution. - -For example, [cssnext] contains many small plugins, -one for each W3C specification. And [cssnano] contains a separate plugin -for each of its optimization. - -[cssnext]: http://cssnext.io/ -[cssnano]: https://github.com/ben-eb/cssnano - -### 1.3. Do not use mixins - -Preprocessors libraries like Compass provide an API with mixins. - -PostCSS plugins are different. -A plugin cannot be just a set of mixins for [postcss-mixins]. - -To achieve your goal, consider transforming valid CSS -or using custom at-rules and custom properties. - -[postcss-mixins]: https://github.com/postcss/postcss-mixins - -### 1.4. Create plugin by `postcss.plugin` - -By wrapping your function in this method, -you are hooking into a common plugin API: - -```js -module.exports = postcss.plugin('plugin-name', function (opts) { - return function (root, result) { - // Plugin code - }; -}); -``` - -## 2. Processing - -### 2.1. Plugin must be tested - -A CI service like [Travis] is also recommended for testing code in -different environments. You should test in (at least) Node.js [active LTS](https://github.com/nodejs/LTS) and current stable version. - -[Travis]: https://travis-ci.org/ - -### 2.2. Use asynchronous methods whenever possible - -For example, use `fs.writeFile` instead of `fs.writeFileSync`: - -```js -postcss.plugin('plugin-sprite', function (opts) { - return function (root, result) { - - return new Promise(function (resolve, reject) { - var sprite = makeSprite(); - fs.writeFile(opts.file, function (err) { - if ( err ) return reject(err); - resolve(); - }) - }); - - }; -}); -``` - -### 2.3. Set `node.source` for new nodes - -Every node must have a relevant `source` so PostCSS can generate -an accurate source map. - -So if you add new declaration based on some existing declaration, you should -clone the existing declaration in order to save that original `source`. - -```js -if ( needPrefix(decl.prop) ) { - decl.cloneBefore({ prop: '-webkit-' + decl.prop }); -} -``` - -You can also set `source` directly, copying from some existing node: - -```js -if ( decl.prop === 'animation' ) { - var keyframe = createAnimationByName(decl.value); - keyframes.source = decl.source; - decl.root().append(keyframes); -} -``` - -### 2.4. Use only the public PostCSS API - -PostCSS plugins must not rely on undocumented properties or methods, -which may be subject to change in any minor release. The public API -is described in [API docs]. - -[API docs]: http://api.postcss.org/ - -## 3. Errors - -### 3.1. Use `node.error` on CSS relevant errors - -If you have an error because of input CSS (like an unknown name -in a mixin plugin) you should use `node.error` to create an error -that includes source position: - -```js -if ( typeof mixins[name] === 'undefined' ) { - throw decl.error('Unknown mixin ' + name, { plugin: 'postcss-mixins' }); -} -``` - -### 3.2. Use `result.warn` for warnings - -Do not print warnings with `console.log` or `console.warn`, -because some PostCSS runner may not allow console output. - -```js -if ( outdated(decl.prop) ) { - result.warn(decl.prop + ' is outdated', { node: decl }); -} -``` - -If CSS input is a source of the warning, the plugin must set the `node` option. - -## 4. Documentation - -### 4.1. Document your plugin in English - -PostCSS plugins must have their `README.md` written in English. Do not be afraid -of your English skills, as the open source community will fix your errors. - -Of course, you are welcome to write documentation in other languages; -just name them appropriately (e.g. `README.ja.md`). - -### 4.2. Include input and output examples - -The plugin's `README.md` must contain example input and output CSS. -A clear example is the best way to describe how your plugin works. - -The first section of the `README.md` is a good place to put examples. -See [postcss-opacity](https://github.com/iamvdo/postcss-opacity) for an example. - -Of course, this guideline does not apply if your plugin does not -transform the CSS. - -### 4.3. Maintain a changelog - -PostCSS plugins must describe the changes of all their releases -in a separate file, such as `CHANGELOG.md`, `History.md`, or [GitHub Releases]. -Visit [Keep A Changelog] for more information about how to write one of these. - -Of course, you should be using [SemVer]. - -[Keep A Changelog]: http://keepachangelog.com/ -[GitHub Releases]: https://help.github.com/articles/creating-releases/ -[SemVer]: http://semver.org/ - -### 4.4. Include `postcss-plugin` keyword in `package.json` - -PostCSS plugins written for npm must have the `postcss-plugin` keyword -in their `package.json`. This special keyword will be useful for feedback about -the PostCSS ecosystem. - -For packages not published to npm, this is not mandatory, but is recommended -if the package format can contain keywords. diff --git a/node_modules/postcss/docs/guidelines/runner.md b/node_modules/postcss/docs/guidelines/runner.md deleted file mode 100644 index 83f2087..0000000 --- a/node_modules/postcss/docs/guidelines/runner.md +++ /dev/null @@ -1,143 +0,0 @@ -# PostCSS Runner Guidelines - -A PostCSS runner is a tool that processes CSS through a user-defined list -of plugins; for example, [`postcss-cli`] or [`gulp‑postcss`]. -These rules are mandatory for any such runners. - -For single-plugin tools, like [`gulp-autoprefixer`], -these rules are not mandatory but are highly recommended. - -See also [ClojureWerkz’s recommendations] for open source projects. - -[ClojureWerkz’s recommendations]: http://blog.clojurewerkz.org/blog/2013/04/20/how-to-make-your-open-source-project-really-awesome/ -[`gulp-autoprefixer`]: https://github.com/sindresorhus/gulp-autoprefixer -[`gulp‑postcss`]: https://github.com/w0rm/gulp-postcss -[`postcss-cli`]: https://github.com/postcss/postcss-cli - -## 1. API - -### 1.1. Accept functions in plugin parameters - -If your runner uses a config file, it must be written in JavaScript, so that -it can support plugins which accept a function, such as [`postcss-assets`]: - -```js -module.exports = [ - require('postcss-assets')({ - cachebuster: function (file) { - return fs.statSync(file).mtime.getTime().toString(16); - } - }) -]; -``` - -[`postcss-assets`]: https://github.com/borodean/postcss-assets - -## 2. Processing - -### 2.1. Set `from` and `to` processing options - -To ensure that PostCSS generates source maps and displays better syntax errors, -runners must specify the `from` and `to` options. If your runner does not handle -writing to disk (for example, a gulp transform), you should set both options -to point to the same file: - -```js -processor.process({ from: file.path, to: file.path }); -``` - -### 2.2. Use only the asynchronous API - -PostCSS runners must use only the asynchronous API. -The synchronous API is provided only for debugging, is slower, -and can’t work with asynchronous plugins. - -```js -processor.process(opts).then(function (result) { - // processing is finished -}); -``` - -### 2.3. Use only the public PostCSS API - -PostCSS runners must not rely on undocumented properties or methods, -which may be subject to change in any minor release. The public API -is described in [API docs]. - -[API docs]: http://api.postcss.org/ - -## 3. Output - -### 3.1. Don’t show JS stack for `CssSyntaxError` - -PostCSS runners must not show a stack trace for CSS syntax errors, -as the runner can be used by developers who are not familiar with JavaScript. -Instead, handle such errors gracefully: - -```js -processor.process(opts).catch(function (error) { - if ( error.name === 'CssSyntaxError' ) { - process.stderr.write(error.message + error.showSourceCode()); - } else { - throw error; - } -}); -``` - -### 3.2. Display `result.warnings()` - -PostCSS runners must output warnings from `result.warnings()`: - -```js -result.warnings().forEach(function (warn) { - process.stderr.write(warn.toString()); -}); -``` - -See also [postcss-log-warnings] and [postcss-messages] plugins. - -[postcss-log-warnings]: https://github.com/davidtheclark/postcss-log-warnings -[postcss-messages]: https://github.com/postcss/postcss-messages - -### 3.3. Allow the user to write source maps to different files - -PostCSS by default will inline source maps in the generated file; however, -PostCSS runners must provide an option to save the source map in a different -file: - -```js -if ( result.map ) { - fs.writeFile(opts.to + '.map', result.map.toString()); -} -``` - -## 4. Documentation - -### 4.1. Document your runner in English - -PostCSS runners must have their `README.md` written in English. Do not be afraid -of your English skills, as the open source community will fix your errors. - -Of course, you are welcome to write documentation in other languages; -just name them appropriately (e.g. `README.ja.md`). - -### 4.2. Maintain a changelog - -PostCSS runners must describe changes of all releases in a separate file, -such as `ChangeLog.md`, `History.md`, or with [GitHub Releases]. -Visit [Keep A Changelog] for more information on how to write one of these. - -Of course you should use [SemVer]. - -[Keep A Changelog]: http://keepachangelog.com/ -[GitHub Releases]: https://help.github.com/articles/creating-releases/ -[SemVer]: http://semver.org/ - -### 4.3. `postcss-runner` keyword in `package.json` - -PostCSS runners written for npm must have the `postcss-runner` keyword -in their `package.json`. This special keyword will be useful for feedback about -the PostCSS ecosystem. - -For packages not published to npm, this is not mandatory, but recommended -if the package format is allowed to contain keywords. diff --git a/node_modules/postcss/docs/source-maps.md b/node_modules/postcss/docs/source-maps.md deleted file mode 100644 index 6b8e56b..0000000 --- a/node_modules/postcss/docs/source-maps.md +++ /dev/null @@ -1,72 +0,0 @@ -# PostCSS and Source Maps - -PostCSS has great [source maps] support. It can read and interpret maps -from previous transformation steps, autodetect the format that you expect, -and output both external and inline maps. - -To ensure that you generate an accurate source map, you must indicate the input -and output CSS file paths — using the options `from` and `to`, respectively. - -To generate a new source map with the default options, simply set `map: true`. -This will generate an inline source map that contains the source content. -If you don’t want the map inlined, you can set `map.inline: false`. - -```js -processor - .process(css, { - from: 'app.sass.css', - to: 'app.css', - map: { inline: false }, - }) - .then(function (result) { - result.map //=> '{ "version":3, - // "file":"app.css", - // "sources":["app.sass"], - // "mappings":"AAAA,KAAI" }' - }); -``` - -If PostCSS finds source maps from a previous transformation, -it will automatically update that source map with the same options. - -## Options - -If you want more control over source map generation, you can define the `map` -option as an object with the following parameters: - -* `inline` boolean: indicates that the source map should be embedded - in the output CSS as a Base64-encoded comment. By default, it is `true`. - But if all previous maps are external, not inline, PostCSS will not embed - the map even if you do not set this option. - - If you have an inline source map, the `result.map` property will be empty, - as the source map will be contained within the text of `result.css`. - -* `prev` string, object, boolean or function: source map content from - a previous processing step (for example, Sass compilation). - PostCSS will try to read the previous source map automatically - (based on comments within the source CSS), but you can use this option - to identify it manually. If desired, you can omit the previous map - with `prev: false`. - -* `sourcesContent` boolean: indicates that PostCSS should set the origin - content (for example, Sass source) of the source map. By default, - it is `true`. But if all previous maps do not contain sources content, - PostCSS will also leave it out even if you do not set this option. - -* `annotation` boolean or string: indicates that PostCSS should add annotation - comments to the CSS. By default, PostCSS will always add a comment with a path - to the source map. PostCSS will not add annotations to CSS files that - do not contain any comments. - - By default, PostCSS presumes that you want to save the source map as - `opts.to + '.map'` and will use this path in the annotation comment. - A different path can be set by providing a string value for `annotation`. - - If you have set `inline: true`, annotation cannot be disabled. - -* `from` string: by default, PostCSS will set the `sources` property of the map - to the value of the `from` option. If you want to override this behaviour, you - can use `map.from` to explicitly set the source map's `sources` property. - -[source maps]: http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ diff --git a/node_modules/postcss/docs/syntax.md b/node_modules/postcss/docs/syntax.md deleted file mode 100644 index 10818f7..0000000 --- a/node_modules/postcss/docs/syntax.md +++ /dev/null @@ -1,231 +0,0 @@ -# How to Write Custom Syntax - -PostCSS can transform styles in any syntax, and is not limited to just CSS. -By writing a custom syntax, you can transform styles in any desired format. - -Writing a custom syntax is much harder than writing a PostCSS plugin, but -it is an awesome adventure. - -There are 3 types of PostCSS syntax packages: - -* **Parser** to parse input string to node’s tree. -* **Stringifier** to generate output string by node’s tree. -* **Syntax** contains both parser and stringifier. - -## Syntax - -A good example of a custom syntax is [SCSS]. Some users may want to transform -SCSS sources with PostCSS plugins, for example if they need to add vendor -prefixes or change the property order. So this syntax should output SCSS from -an SCSS input. - -The syntax API is a very simple plain object, with `parse` & `stringify` -functions: - -```js -module.exports = { - parse: require('./parse'), - stringify: require('./stringify') -}; -``` - -[SCSS]: https://github.com/postcss/postcss-scss - -## Parser - -A good example of a parser is [Safe Parser], which parses malformed/broken CSS. -Because there is no point to generate broken output, this package only provides -a parser. - -The parser API is a function which receives a string & returns a [`Root`] node. -The second argument is a function which receives an object with PostCSS options. - -```js -var postcss = require('postcss'); - -module.exports = function (css, opts) { - var root = postcss.root(); - // Add other nodes to root - return root; -}; -``` - -[Safe Parser]: https://github.com/postcss/postcss-safe-parser -[`Root`]: http://api.postcss.org/Root.html - -### Main Theory - -There are many books about parsers; but do not worry because CSS syntax is -very easy, and so the parser will be much simpler than a programming language -parser. - -The default PostCSS parser contains two steps: - -1. [Tokenizer] which reads input string character by character and builds a - tokens array. For example, it joins space symbols to a `['space', '\n ']` - token, and detects strings to a `['string', '"\"{"']` token. -2. [Parser] which reads the tokens array, creates node instances and - builds a tree. - -[Tokenizer]: https://github.com/postcss/postcss/blob/master/lib/tokenize.es6 -[Parser]: https://github.com/postcss/postcss/blob/master/lib/parser.es6 - -### Performance - -Parsing input is often the most time consuming task in CSS processors. So it -is very important to have a fast parser. - -The main rule of optimization is that there is no performance without a -benchmark. You can look at [PostCSS benchmarks] to build your own. - -Of parsing tasks, the tokenize step will often take the most time, so its -performance should be prioritized. Unfortunately, classes, functions and -high level structures can slow down your tokenizer. Be ready to write dirty -code with repeated statements. This is why it is difficult to extend the -default [PostCSS tokenizer]; copy & paste will be a necessary evil. - -Second optimization is using character codes instead of strings. - -```js -// Slow -string[i] === '{'; - -// Fast -const OPEN_CURLY = 123; // `{' -string.charCodeAt(i) === OPEN_CURLY; -``` - -Third optimization is “fast jumps”. If you find open quotes, you can find -next closing quote much faster by `indexOf`: - -```js -// Simple jump -next = string.indexOf('"', currentPosition + 1); - -// Jump by RegExp -regexp.lastIndex = currentPosion + 1; -regexp.text(string); -next = regexp.lastIndex; -``` - -The parser can be a well written class. There is no need in copy-paste and -hardcore optimization there. You can extend the default [PostCSS parser]. - -[PostCSS benchmarks]: https://github.com/postcss/benchmark -[PostCSS tokenizer]: https://github.com/postcss/postcss/blob/master/lib/tokenize.es6 -[PostCSS parser]: https://github.com/postcss/postcss/blob/master/lib/parser.es6 - -### Node Source - -Every node should have `source` property to generate correct source map. -This property contains `start` and `end` properties with `{ line, column }`, -and `input` property with an [`Input`] instance. - -Your tokenizer should save the original position so that you can propagate -the values to the parser, to ensure that the source map is correctly updated. - -[`Input`]: https://github.com/postcss/postcss/blob/master/lib/input.es6 - -### Raw Values - -A good PostCSS parser should provide all information (including spaces symbols) -to generate byte-to-byte equal output. It is not so difficult, but respectful -for user input and allow integration smoke tests. - -A parser should save all additional symbols to `node.raws` object. -It is an open structure for you, you can add additional keys. -For example, [SCSS parser] saves comment types (`/* */` or `//`) -in `node.raws.inline`. - -The default parser cleans CSS values from comments and spaces. -It saves the original value with comments to `node.raws.value.raw` and uses it, -if the node value was not changed. - -[SCSS parser]: https://github.com/postcss/postcss-scss - -### Tests - -Of course, all parsers in the PostCSS ecosystem must have tests. - -If your parser just extends CSS syntax (like [SCSS] or [Safe Parser]), -you can use the [PostCSS Parser Tests]. It contains unit & integration tests. - -[PostCSS Parser Tests]: https://github.com/postcss/postcss-parser-tests - -## Stringifier - -A style guide generator is a good example of a stringifier. It generates output -HTML which contains CSS components. For this use case, a parser isn't necessary, -so the package should just contain a stringifier. - -The Stringifier API is little bit more complicated, than the parser API. -PostCSS generates a source map, so a stringifier can’t just return a string. -It must link every substring with its source node. - -A Stringifier is a function which receives [`Root`] node and builder callback. -Then it calls builder with every node’s string and node instance. - -```js -module.exports = function (root, builder) { - // Some magic - var string = decl.prop + ':' + decl.value + ';'; - builder(string, decl); - // Some science -}; -``` - -### Main Theory - -PostCSS [default stringifier] is just a class with a method for each node type -and many methods to detect raw properties. - -In most cases it will be enough just to extend this class, -like in [SCSS stringifier]. - -[default stringifier]: https://github.com/postcss/postcss/blob/master/lib/stringifier.es6 -[SCSS stringifier]: https://github.com/postcss/postcss-scss/blob/master/lib/scss-stringifier.es6 - -### Builder Function - -A builder function will be passed to `stringify` function as second argument. -For example, the default PostCSS stringifier class saves it -to `this.builder` property. - -Builder receives output substring and source node to append this substring -to the final output. - -Some nodes contain other nodes in the middle. For example, a rule has a `{` -at the beginning, many declarations inside and a closing `}`. - -For these cases, you should pass a third argument to builder function: -`'start'` or `'end'` string: - -```js -this.builder(rule.selector + '{', rule, 'start'); -// Stringify declarations inside -this.builder('}', rule, 'end'); -``` - -### Raw Values - -A good PostCSS custom syntax saves all symbols and provide byte-to-byte equal -output if there were no changes. - -This is why every node has `node.raws` object to store space symbol, etc. - -Be careful, because sometimes these raw properties will not be present; some -nodes may be built manually, or may lose their indentation when they are moved -to another parent node. - -This is why the default stringifier has a `raw()` method to autodetect raw -properties by other nodes. For example, it will look at other nodes to detect -indent size and them multiply it with the current node depth. - -### Tests - -A stringifier must have tests too. - -You can use unit and integration test cases from [PostCSS Parser Tests]. -Just compare input CSS with CSS after your parser and stringifier. - -[PostCSS Parser Tests]: https://github.com/postcss/postcss-parser-tests diff --git a/node_modules/postcss/lib/at-rule.js b/node_modules/postcss/lib/at-rule.js deleted file mode 100644 index 460c52d..0000000 --- a/node_modules/postcss/lib/at-rule.js +++ /dev/null @@ -1,159 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _container = require('./container'); - -var _container2 = _interopRequireDefault(_container); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents an at-rule. - * - * If it’s followed in the CSS by a {} block, this node will have - * a nodes property representing its children. - * - * @extends Container - * - * @example - * const root = postcss.parse('@charset "UTF-8"; @media print {}'); - * - * const charset = root.first; - * charset.type //=> 'atrule' - * charset.nodes //=> undefined - * - * const media = root.last; - * media.nodes //=> [] - */ -var AtRule = function (_Container) { - _inherits(AtRule, _Container); - - function AtRule(defaults) { - _classCallCheck(this, AtRule); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'atrule'; - return _this; - } - - AtRule.prototype.append = function append() { - var _Container$prototype$; - - if (!this.nodes) this.nodes = []; - - for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) { - children[_key] = arguments[_key]; - } - - return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children)); - }; - - AtRule.prototype.prepend = function prepend() { - var _Container$prototype$2; - - if (!this.nodes) this.nodes = []; - - for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - children[_key2] = arguments[_key2]; - } - - return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children)); - }; - - _createClass(AtRule, [{ - key: 'afterName', - get: function get() { - (0, _warnOnce2.default)('AtRule#afterName was deprecated. Use AtRule#raws.afterName'); - return this.raws.afterName; - }, - set: function set(val) { - (0, _warnOnce2.default)('AtRule#afterName was deprecated. Use AtRule#raws.afterName'); - this.raws.afterName = val; - } - }, { - key: '_params', - get: function get() { - (0, _warnOnce2.default)('AtRule#_params was deprecated. Use AtRule#raws.params'); - return this.raws.params; - }, - set: function set(val) { - (0, _warnOnce2.default)('AtRule#_params was deprecated. Use AtRule#raws.params'); - this.raws.params = val; - } - - /** - * @memberof AtRule# - * @member {string} name - the at-rule’s name immediately follows the `@` - * - * @example - * const root = postcss.parse('@media print {}'); - * media.name //=> 'media' - * const media = root.first; - */ - - /** - * @memberof AtRule# - * @member {string} params - the at-rule’s parameters, the values - * that follow the at-rule’s name but precede - * any {} block - * - * @example - * const root = postcss.parse('@media print, screen {}'); - * const media = root.first; - * media.params //=> 'print, screen' - */ - - /** - * @memberof AtRule# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * - * PostCSS cleans at-rule parameters from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse(' @media\nprint {\n}') - * root.first.first.raws //=> { before: ' ', - * // between: ' ', - * // afterName: '\n', - * // after: '\n' } - */ - - }]); - - return AtRule; -}(_container2.default); - -exports.default = AtRule; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImF0LXJ1bGUuZXM2Il0sIm5hbWVzIjpbIkF0UnVsZSIsImRlZmF1bHRzIiwidHlwZSIsImFwcGVuZCIsIm5vZGVzIiwiY2hpbGRyZW4iLCJwcmVwZW5kIiwicmF3cyIsImFmdGVyTmFtZSIsInZhbCIsInBhcmFtcyJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7Ozs7QUFDQTs7Ozs7Ozs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQWtCTUEsTTs7O0FBRUYsb0JBQVlDLFFBQVosRUFBc0I7QUFBQTs7QUFBQSxxREFDbEIsc0JBQU1BLFFBQU4sQ0FEa0I7O0FBRWxCLGNBQUtDLElBQUwsR0FBWSxRQUFaO0FBRmtCO0FBR3JCOztxQkFFREMsTSxxQkFBb0I7QUFBQTs7QUFDaEIsWUFBSyxDQUFDLEtBQUtDLEtBQVgsRUFBbUIsS0FBS0EsS0FBTCxHQUFhLEVBQWI7O0FBREgsMENBQVZDLFFBQVU7QUFBVkEsb0JBQVU7QUFBQTs7QUFFaEIsZUFBTyw4Q0FBTUYsTUFBTixrREFBZ0JFLFFBQWhCLEVBQVA7QUFDSCxLOztxQkFFREMsTyxzQkFBcUI7QUFBQTs7QUFDakIsWUFBSyxDQUFDLEtBQUtGLEtBQVgsRUFBbUIsS0FBS0EsS0FBTCxHQUFhLEVBQWI7O0FBREYsMkNBQVZDLFFBQVU7QUFBVkEsb0JBQVU7QUFBQTs7QUFFakIsZUFBTywrQ0FBTUMsT0FBTixtREFBaUJELFFBQWpCLEVBQVA7QUFDSCxLOzs7OzRCQUVlO0FBQ1osb0NBQVMsNERBQVQ7QUFDQSxtQkFBTyxLQUFLRSxJQUFMLENBQVVDLFNBQWpCO0FBQ0gsUzswQkFFYUMsRyxFQUFLO0FBQ2Ysb0NBQVMsNERBQVQ7QUFDQSxpQkFBS0YsSUFBTCxDQUFVQyxTQUFWLEdBQXNCQyxHQUF0QjtBQUNIOzs7NEJBRWE7QUFDVixvQ0FBUyx1REFBVDtBQUNBLG1CQUFPLEtBQUtGLElBQUwsQ0FBVUcsTUFBakI7QUFDSCxTOzBCQUVXRCxHLEVBQUs7QUFDYixvQ0FBUyx1REFBVDtBQUNBLGlCQUFLRixJQUFMLENBQVVHLE1BQVYsR0FBbUJELEdBQW5CO0FBQ0g7O0FBRUQ7Ozs7Ozs7Ozs7QUFVQTs7Ozs7Ozs7Ozs7O0FBWUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7a0JBaUNXVCxNIiwiZmlsZSI6ImF0LXJ1bGUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgQ29udGFpbmVyIGZyb20gJy4vY29udGFpbmVyJztcbmltcG9ydCB3YXJuT25jZSAgZnJvbSAnLi93YXJuLW9uY2UnO1xuXG4vKipcbiAqIFJlcHJlc2VudHMgYW4gYXQtcnVsZS5cbiAqXG4gKiBJZiBpdOKAmXMgZm9sbG93ZWQgaW4gdGhlIENTUyBieSBhIHt9IGJsb2NrLCB0aGlzIG5vZGUgd2lsbCBoYXZlXG4gKiBhIG5vZGVzIHByb3BlcnR5IHJlcHJlc2VudGluZyBpdHMgY2hpbGRyZW4uXG4gKlxuICogQGV4dGVuZHMgQ29udGFpbmVyXG4gKlxuICogQGV4YW1wbGVcbiAqIGNvbnN0IHJvb3QgPSBwb3N0Y3NzLnBhcnNlKCdAY2hhcnNldCBcIlVURi04XCI7IEBtZWRpYSBwcmludCB7fScpO1xuICpcbiAqIGNvbnN0IGNoYXJzZXQgPSByb290LmZpcnN0O1xuICogY2hhcnNldC50eXBlICAvLz0+ICdhdHJ1bGUnXG4gKiBjaGFyc2V0Lm5vZGVzIC8vPT4gdW5kZWZpbmVkXG4gKlxuICogY29uc3QgbWVkaWEgPSByb290Lmxhc3Q7XG4gKiBtZWRpYS5ub2RlcyAgIC8vPT4gW11cbiAqL1xuY2xhc3MgQXRSdWxlIGV4dGVuZHMgQ29udGFpbmVyIHtcblxuICAgIGNvbnN0cnVjdG9yKGRlZmF1bHRzKSB7XG4gICAgICAgIHN1cGVyKGRlZmF1bHRzKTtcbiAgICAgICAgdGhpcy50eXBlID0gJ2F0cnVsZSc7XG4gICAgfVxuXG4gICAgYXBwZW5kKC4uLmNoaWxkcmVuKSB7XG4gICAgICAgIGlmICggIXRoaXMubm9kZXMgKSB0aGlzLm5vZGVzID0gW107XG4gICAgICAgIHJldHVybiBzdXBlci5hcHBlbmQoLi4uY2hpbGRyZW4pO1xuICAgIH1cblxuICAgIHByZXBlbmQoLi4uY2hpbGRyZW4pIHtcbiAgICAgICAgaWYgKCAhdGhpcy5ub2RlcyApIHRoaXMubm9kZXMgPSBbXTtcbiAgICAgICAgcmV0dXJuIHN1cGVyLnByZXBlbmQoLi4uY2hpbGRyZW4pO1xuICAgIH1cblxuICAgIGdldCBhZnRlck5hbWUoKSB7XG4gICAgICAgIHdhcm5PbmNlKCdBdFJ1bGUjYWZ0ZXJOYW1lIHdhcyBkZXByZWNhdGVkLiBVc2UgQXRSdWxlI3Jhd3MuYWZ0ZXJOYW1lJyk7XG4gICAgICAgIHJldHVybiB0aGlzLnJhd3MuYWZ0ZXJOYW1lO1xuICAgIH1cblxuICAgIHNldCBhZnRlck5hbWUodmFsKSB7XG4gICAgICAgIHdhcm5PbmNlKCdBdFJ1bGUjYWZ0ZXJOYW1lIHdhcyBkZXByZWNhdGVkLiBVc2UgQXRSdWxlI3Jhd3MuYWZ0ZXJOYW1lJyk7XG4gICAgICAgIHRoaXMucmF3cy5hZnRlck5hbWUgPSB2YWw7XG4gICAgfVxuXG4gICAgZ2V0IF9wYXJhbXMoKSB7XG4gICAgICAgIHdhcm5PbmNlKCdBdFJ1bGUjX3BhcmFtcyB3YXMgZGVwcmVjYXRlZC4gVXNlIEF0UnVsZSNyYXdzLnBhcmFtcycpO1xuICAgICAgICByZXR1cm4gdGhpcy5yYXdzLnBhcmFtcztcbiAgICB9XG5cbiAgICBzZXQgX3BhcmFtcyh2YWwpIHtcbiAgICAgICAgd2Fybk9uY2UoJ0F0UnVsZSNfcGFyYW1zIHdhcyBkZXByZWNhdGVkLiBVc2UgQXRSdWxlI3Jhd3MucGFyYW1zJyk7XG4gICAgICAgIHRoaXMucmF3cy5wYXJhbXMgPSB2YWw7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIEF0UnVsZSNcbiAgICAgKiBAbWVtYmVyIHtzdHJpbmd9IG5hbWUgLSB0aGUgYXQtcnVsZeKAmXMgbmFtZSBpbW1lZGlhdGVseSBmb2xsb3dzIHRoZSBgQGBcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3Qgcm9vdCAgPSBwb3N0Y3NzLnBhcnNlKCdAbWVkaWEgcHJpbnQge30nKTtcbiAgICAgKiBtZWRpYS5uYW1lIC8vPT4gJ21lZGlhJ1xuICAgICAqIGNvbnN0IG1lZGlhID0gcm9vdC5maXJzdDtcbiAgICAgKi9cblxuICAgIC8qKlxuICAgICAqIEBtZW1iZXJvZiBBdFJ1bGUjXG4gICAgICogQG1lbWJlciB7c3RyaW5nfSBwYXJhbXMgLSB0aGUgYXQtcnVsZeKAmXMgcGFyYW1ldGVycywgdGhlIHZhbHVlc1xuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhhdCBmb2xsb3cgdGhlIGF0LXJ1bGXigJlzIG5hbWUgYnV0IHByZWNlZGVcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgIGFueSB7fSBibG9ja1xuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBjb25zdCByb290ICA9IHBvc3Rjc3MucGFyc2UoJ0BtZWRpYSBwcmludCwgc2NyZWVuIHt9Jyk7XG4gICAgICogY29uc3QgbWVkaWEgPSByb290LmZpcnN0O1xuICAgICAqIG1lZGlhLnBhcmFtcyAvLz0+ICdwcmludCwgc2NyZWVuJ1xuICAgICAqL1xuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIEF0UnVsZSNcbiAgICAgKiBAbWVtYmVyIHtvYmplY3R9IHJhd3MgLSBJbmZvcm1hdGlvbiB0byBnZW5lcmF0ZSBieXRlLXRvLWJ5dGUgZXF1YWxcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICBub2RlIHN0cmluZyBhcyBpdCB3YXMgaW4gdGhlIG9yaWdpbiBpbnB1dC5cbiAgICAgKlxuICAgICAqIEV2ZXJ5IHBhcnNlciBzYXZlcyBpdHMgb3duIHByb3BlcnRpZXMsXG4gICAgICogYnV0IHRoZSBkZWZhdWx0IENTUyBwYXJzZXIgdXNlczpcbiAgICAgKlxuICAgICAqICogYGJlZm9yZWA6IHRoZSBzcGFjZSBzeW1ib2xzIGJlZm9yZSB0aGUgbm9kZS4gSXQgYWxzbyBzdG9yZXMgYCpgXG4gICAgICogICBhbmQgYF9gIHN5bWJvbHMgYmVmb3JlIHRoZSBkZWNsYXJhdGlvbiAoSUUgaGFjaykuXG4gICAgICogKiBgYWZ0ZXJgOiB0aGUgc3BhY2Ugc3ltYm9scyBhZnRlciB0aGUgbGFzdCBjaGlsZCBvZiB0aGUgbm9kZVxuICAgICAqICAgdG8gdGhlIGVuZCBvZiB0aGUgbm9kZS5cbiAgICAgKiAqIGBiZXR3ZWVuYDogdGhlIHN5bWJvbHMgYmV0d2VlbiB0aGUgcHJvcGVydHkgYW5kIHZhbHVlXG4gICAgICogICBmb3IgZGVjbGFyYXRpb25zLCBzZWxlY3RvciBhbmQgYHtgIGZvciBydWxlcywgb3IgbGFzdCBwYXJhbWV0ZXJcbiAgICAgKiAgIGFuZCBge2AgZm9yIGF0LXJ1bGVzLlxuICAgICAqICogYHNlbWljb2xvbmA6IGNvbnRhaW5zIHRydWUgaWYgdGhlIGxhc3QgY2hpbGQgaGFzXG4gICAgICogICBhbiAob3B0aW9uYWwpIHNlbWljb2xvbi5cbiAgICAgKiAqIGBhZnRlck5hbWVgOiB0aGUgc3BhY2UgYmV0d2VlbiB0aGUgYXQtcnVsZSBuYW1lIGFuZCBpdHMgcGFyYW1ldGVycy5cbiAgICAgKlxuICAgICAqIFBvc3RDU1MgY2xlYW5zIGF0LXJ1bGUgcGFyYW1ldGVycyBmcm9tIGNvbW1lbnRzIGFuZCBleHRyYSBzcGFjZXMsXG4gICAgICogYnV0IGl0IHN0b3JlcyBvcmlnaW4gY29udGVudCBpbiByYXdzIHByb3BlcnRpZXMuXG4gICAgICogQXMgc3VjaCwgaWYgeW91IGRvbuKAmXQgY2hhbmdlIGEgZGVjbGFyYXRpb27igJlzIHZhbHVlLFxuICAgICAqIFBvc3RDU1Mgd2lsbCB1c2UgdGhlIHJhdyB2YWx1ZSB3aXRoIGNvbW1lbnRzLlxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnICBAbWVkaWFcXG5wcmludCB7XFxufScpXG4gICAgICogcm9vdC5maXJzdC5maXJzdC5yYXdzIC8vPT4geyBiZWZvcmU6ICcgICcsXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgIC8vICAgICBiZXR3ZWVuOiAnICcsXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgIC8vICAgICBhZnRlck5hbWU6ICdcXG4nLFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgYWZ0ZXI6ICdcXG4nIH1cbiAgICAgKi9cbn1cblxuZXhwb3J0IGRlZmF1bHQgQXRSdWxlO1xuIl19 diff --git a/node_modules/postcss/lib/comment.js b/node_modules/postcss/lib/comment.js deleted file mode 100644 index fdf54f5..0000000 --- a/node_modules/postcss/lib/comment.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _node = require('./node'); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a comment between declarations or statements (rule and at-rules). - * - * Comments inside selectors, at-rule parameters, or declaration values - * will be stored in the `raws` properties explained above. - * - * @extends Node - */ -var Comment = function (_Node) { - _inherits(Comment, _Node); - - function Comment(defaults) { - _classCallCheck(this, Comment); - - var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); - - _this.type = 'comment'; - return _this; - } - - _createClass(Comment, [{ - key: 'left', - get: function get() { - (0, _warnOnce2.default)('Comment#left was deprecated. Use Comment#raws.left'); - return this.raws.left; - }, - set: function set(val) { - (0, _warnOnce2.default)('Comment#left was deprecated. Use Comment#raws.left'); - this.raws.left = val; - } - }, { - key: 'right', - get: function get() { - (0, _warnOnce2.default)('Comment#right was deprecated. Use Comment#raws.right'); - return this.raws.right; - }, - set: function set(val) { - (0, _warnOnce2.default)('Comment#right was deprecated. Use Comment#raws.right'); - this.raws.right = val; - } - - /** - * @memberof Comment# - * @member {string} text - the comment’s text - */ - - /** - * @memberof Comment# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text. - */ - - }]); - - return Comment; -}(_node2.default); - -exports.default = Comment; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbW1lbnQuZXM2Il0sIm5hbWVzIjpbIkNvbW1lbnQiLCJkZWZhdWx0cyIsInR5cGUiLCJyYXdzIiwibGVmdCIsInZhbCIsInJpZ2h0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7SUFRTUEsTzs7O0FBRUYscUJBQVlDLFFBQVosRUFBc0I7QUFBQTs7QUFBQSxxREFDbEIsaUJBQU1BLFFBQU4sQ0FEa0I7O0FBRWxCLGNBQUtDLElBQUwsR0FBWSxTQUFaO0FBRmtCO0FBR3JCOzs7OzRCQUVVO0FBQ1Asb0NBQVMsb0RBQVQ7QUFDQSxtQkFBTyxLQUFLQyxJQUFMLENBQVVDLElBQWpCO0FBQ0gsUzswQkFFUUMsRyxFQUFLO0FBQ1Ysb0NBQVMsb0RBQVQ7QUFDQSxpQkFBS0YsSUFBTCxDQUFVQyxJQUFWLEdBQWlCQyxHQUFqQjtBQUNIOzs7NEJBRVc7QUFDUixvQ0FBUyxzREFBVDtBQUNBLG1CQUFPLEtBQUtGLElBQUwsQ0FBVUcsS0FBakI7QUFDSCxTOzBCQUVTRCxHLEVBQUs7QUFDWCxvQ0FBUyxzREFBVDtBQUNBLGlCQUFLRixJQUFMLENBQVVHLEtBQVYsR0FBa0JELEdBQWxCO0FBQ0g7O0FBRUQ7Ozs7O0FBS0E7Ozs7Ozs7Ozs7Ozs7Ozs7OztrQkFjV0wsTyIsImZpbGUiOiJjb21tZW50LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHdhcm5PbmNlIGZyb20gJy4vd2Fybi1vbmNlJztcbmltcG9ydCBOb2RlICAgICBmcm9tICcuL25vZGUnO1xuXG4vKipcbiAqIFJlcHJlc2VudHMgYSBjb21tZW50IGJldHdlZW4gZGVjbGFyYXRpb25zIG9yIHN0YXRlbWVudHMgKHJ1bGUgYW5kIGF0LXJ1bGVzKS5cbiAqXG4gKiBDb21tZW50cyBpbnNpZGUgc2VsZWN0b3JzLCBhdC1ydWxlIHBhcmFtZXRlcnMsIG9yIGRlY2xhcmF0aW9uIHZhbHVlc1xuICogd2lsbCBiZSBzdG9yZWQgaW4gdGhlIGByYXdzYCBwcm9wZXJ0aWVzIGV4cGxhaW5lZCBhYm92ZS5cbiAqXG4gKiBAZXh0ZW5kcyBOb2RlXG4gKi9cbmNsYXNzIENvbW1lbnQgZXh0ZW5kcyBOb2RlIHtcblxuICAgIGNvbnN0cnVjdG9yKGRlZmF1bHRzKSB7XG4gICAgICAgIHN1cGVyKGRlZmF1bHRzKTtcbiAgICAgICAgdGhpcy50eXBlID0gJ2NvbW1lbnQnO1xuICAgIH1cblxuICAgIGdldCBsZWZ0KCkge1xuICAgICAgICB3YXJuT25jZSgnQ29tbWVudCNsZWZ0IHdhcyBkZXByZWNhdGVkLiBVc2UgQ29tbWVudCNyYXdzLmxlZnQnKTtcbiAgICAgICAgcmV0dXJuIHRoaXMucmF3cy5sZWZ0O1xuICAgIH1cblxuICAgIHNldCBsZWZ0KHZhbCkge1xuICAgICAgICB3YXJuT25jZSgnQ29tbWVudCNsZWZ0IHdhcyBkZXByZWNhdGVkLiBVc2UgQ29tbWVudCNyYXdzLmxlZnQnKTtcbiAgICAgICAgdGhpcy5yYXdzLmxlZnQgPSB2YWw7XG4gICAgfVxuXG4gICAgZ2V0IHJpZ2h0KCkge1xuICAgICAgICB3YXJuT25jZSgnQ29tbWVudCNyaWdodCB3YXMgZGVwcmVjYXRlZC4gVXNlIENvbW1lbnQjcmF3cy5yaWdodCcpO1xuICAgICAgICByZXR1cm4gdGhpcy5yYXdzLnJpZ2h0O1xuICAgIH1cblxuICAgIHNldCByaWdodCh2YWwpIHtcbiAgICAgICAgd2Fybk9uY2UoJ0NvbW1lbnQjcmlnaHQgd2FzIGRlcHJlY2F0ZWQuIFVzZSBDb21tZW50I3Jhd3MucmlnaHQnKTtcbiAgICAgICAgdGhpcy5yYXdzLnJpZ2h0ID0gdmFsO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEBtZW1iZXJvZiBDb21tZW50I1xuICAgICAqIEBtZW1iZXIge3N0cmluZ30gdGV4dCAtIHRoZSBjb21tZW504oCZcyB0ZXh0XG4gICAgICovXG5cbiAgICAvKipcbiAgICAgKiBAbWVtYmVyb2YgQ29tbWVudCNcbiAgICAgKiBAbWVtYmVyIHtvYmplY3R9IHJhd3MgLSBJbmZvcm1hdGlvbiB0byBnZW5lcmF0ZSBieXRlLXRvLWJ5dGUgZXF1YWxcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICBub2RlIHN0cmluZyBhcyBpdCB3YXMgaW4gdGhlIG9yaWdpbiBpbnB1dC5cbiAgICAgKlxuICAgICAqIEV2ZXJ5IHBhcnNlciBzYXZlcyBpdHMgb3duIHByb3BlcnRpZXMsXG4gICAgICogYnV0IHRoZSBkZWZhdWx0IENTUyBwYXJzZXIgdXNlczpcbiAgICAgKlxuICAgICAqICogYGJlZm9yZWA6IHRoZSBzcGFjZSBzeW1ib2xzIGJlZm9yZSB0aGUgbm9kZS5cbiAgICAgKiAqIGBsZWZ0YDogdGhlIHNwYWNlIHN5bWJvbHMgYmV0d2VlbiBgLypgIGFuZCB0aGUgY29tbWVudOKAmXMgdGV4dC5cbiAgICAgKiAqIGByaWdodGA6IHRoZSBzcGFjZSBzeW1ib2xzIGJldHdlZW4gdGhlIGNvbW1lbnTigJlzIHRleHQuXG4gICAgICovXG59XG5cbmV4cG9ydCBkZWZhdWx0IENvbW1lbnQ7XG4iXX0= diff --git a/node_modules/postcss/lib/container.js b/node_modules/postcss/lib/container.js deleted file mode 100644 index 276b9b6..0000000 --- a/node_modules/postcss/lib/container.js +++ /dev/null @@ -1,935 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _declaration = require('./declaration'); - -var _declaration2 = _interopRequireDefault(_declaration); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _comment = require('./comment'); - -var _comment2 = _interopRequireDefault(_comment); - -var _node = require('./node'); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -function cleanSource(nodes) { - return nodes.map(function (i) { - if (i.nodes) i.nodes = cleanSource(i.nodes); - delete i.source; - return i; - }); -} - -/** - * The {@link Root}, {@link AtRule}, and {@link Rule} container nodes - * inherit some common methods to help work with their children. - * - * Note that all containers can store any content. If you write a rule inside - * a rule, PostCSS will parse it. - * - * @extends Node - * @abstract - */ - -var Container = function (_Node) { - _inherits(Container, _Node); - - function Container() { - _classCallCheck(this, Container); - - return _possibleConstructorReturn(this, _Node.apply(this, arguments)); - } - - Container.prototype.push = function push(child) { - child.parent = this; - this.nodes.push(child); - return this; - }; - - /** - * Iterates through the container’s immediate children, - * calling `callback` for each child. - * - * Returning `false` in the callback will break iteration. - * - * This method only iterates through the container’s immediate children. - * If you need to recursively iterate through all the container’s descendant - * nodes, use {@link Container#walk}. - * - * Unlike the for `{}`-cycle or `Array#forEach` this iterator is safe - * if you are mutating the array of child nodes during iteration. - * PostCSS will adjust the current index to match the mutations. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * const root = postcss.parse('a { color: black; z-index: 1 }'); - * const rule = root.first; - * - * for ( let decl of rule.nodes ) { - * decl.cloneBefore({ prop: '-webkit-' + decl.prop }); - * // Cycle will be infinite, because cloneBefore moves the current node - * // to the next index - * } - * - * rule.each(decl => { - * decl.cloneBefore({ prop: '-webkit-' + decl.prop }); - * // Will be executed only for color and z-index - * }); - */ - - - Container.prototype.each = function each(callback) { - if (!this.lastEach) this.lastEach = 0; - if (!this.indexes) this.indexes = {}; - - this.lastEach += 1; - var id = this.lastEach; - this.indexes[id] = 0; - - if (!this.nodes) return undefined; - - var index = void 0, - result = void 0; - while (this.indexes[id] < this.nodes.length) { - index = this.indexes[id]; - result = callback(this.nodes[index], index); - if (result === false) break; - - this.indexes[id] += 1; - } - - delete this.indexes[id]; - - return result; - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each node. - * - * Like container.each(), this method is safe to use - * if you are mutating arrays during iteration. - * - * If you only need to iterate through the container’s immediate children, - * use {@link Container#each}. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walk(node => { - * // Traverses all descendant nodes. - * }); - */ - - - Container.prototype.walk = function walk(callback) { - return this.each(function (child, i) { - var result = callback(child, i); - if (result !== false && child.walk) { - result = child.walk(callback); - } - return result; - }); - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each declaration node. - * - * If you pass a filter, iteration will only happen over declarations - * with matching properties. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [prop] - string or regular expression - * to filter declarations by property name - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkDecls(decl => { - * checkPropertySupport(decl.prop); - * }); - * - * root.walkDecls('border-radius', decl => { - * decl.remove(); - * }); - * - * root.walkDecls(/^background/, decl => { - * decl.value = takeFirstColorFromGradient(decl.value); - * }); - */ - - - Container.prototype.walkDecls = function walkDecls(prop, callback) { - if (!callback) { - callback = prop; - return this.walk(function (child, i) { - if (child.type === 'decl') { - return callback(child, i); - } - }); - } else if (prop instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'decl' && prop.test(child.prop)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'decl' && child.prop === prop) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each rule node. - * - * If you pass a filter, iteration will only happen over rules - * with matching selectors. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [selector] - string or regular expression - * to filter rules by selector - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * const selectors = []; - * root.walkRules(rule => { - * selectors.push(rule.selector); - * }); - * console.log(`Your CSS uses ${selectors.length} selectors`); - */ - - - Container.prototype.walkRules = function walkRules(selector, callback) { - if (!callback) { - callback = selector; - - return this.walk(function (child, i) { - if (child.type === 'rule') { - return callback(child, i); - } - }); - } else if (selector instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'rule' && selector.test(child.selector)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'rule' && child.selector === selector) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each at-rule node. - * - * If you pass a filter, iteration will only happen over at-rules - * that have matching names. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {string|RegExp} [name] - string or regular expression - * to filter at-rules by name - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkAtRules(rule => { - * if ( isOld(rule.name) ) rule.remove(); - * }); - * - * let first = false; - * root.walkAtRules('charset', rule => { - * if ( !first ) { - * first = true; - * } else { - * rule.remove(); - * } - * }); - */ - - - Container.prototype.walkAtRules = function walkAtRules(name, callback) { - if (!callback) { - callback = name; - return this.walk(function (child, i) { - if (child.type === 'atrule') { - return callback(child, i); - } - }); - } else if (name instanceof RegExp) { - return this.walk(function (child, i) { - if (child.type === 'atrule' && name.test(child.name)) { - return callback(child, i); - } - }); - } else { - return this.walk(function (child, i) { - if (child.type === 'atrule' && child.name === name) { - return callback(child, i); - } - }); - } - }; - - /** - * Traverses the container’s descendant nodes, calling callback - * for each comment node. - * - * Like {@link Container#each}, this method is safe - * to use if you are mutating arrays during iteration. - * - * @param {childIterator} callback - iterator receives each node and index - * - * @return {false|undefined} returns `false` if iteration was broke - * - * @example - * root.walkComments(comment => { - * comment.remove(); - * }); - */ - - - Container.prototype.walkComments = function walkComments(callback) { - return this.walk(function (child, i) { - if (child.type === 'comment') { - return callback(child, i); - } - }); - }; - - /** - * Inserts new nodes to the end of the container. - * - * @param {...(Node|object|string|Node[])} children - new nodes - * - * @return {Node} this node for methods chain - * - * @example - * const decl1 = postcss.decl({ prop: 'color', value: 'black' }); - * const decl2 = postcss.decl({ prop: 'background-color', value: 'white' }); - * rule.append(decl1, decl2); - * - * root.append({ name: 'charset', params: '"UTF-8"' }); // at-rule - * root.append({ selector: 'a' }); // rule - * rule.append({ prop: 'color', value: 'black' }); // declaration - * rule.append({ text: 'Comment' }) // comment - * - * root.append('a {}'); - * root.first.append('color: black; z-index: 1'); - */ - - - Container.prototype.append = function append() { - for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) { - children[_key] = arguments[_key]; - } - - for (var _iterator = children, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var child = _ref; - - var nodes = this.normalize(child, this.last); - for (var _iterator2 = nodes, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { - var _ref2; - - if (_isArray2) { - if (_i2 >= _iterator2.length) break; - _ref2 = _iterator2[_i2++]; - } else { - _i2 = _iterator2.next(); - if (_i2.done) break; - _ref2 = _i2.value; - } - - var node = _ref2; - this.nodes.push(node); - } - } - return this; - }; - - /** - * Inserts new nodes to the start of the container. - * - * @param {...(Node|object|string|Node[])} children - new nodes - * - * @return {Node} this node for methods chain - * - * @example - * const decl1 = postcss.decl({ prop: 'color', value: 'black' }); - * const decl2 = postcss.decl({ prop: 'background-color', value: 'white' }); - * rule.prepend(decl1, decl2); - * - * root.append({ name: 'charset', params: '"UTF-8"' }); // at-rule - * root.append({ selector: 'a' }); // rule - * rule.append({ prop: 'color', value: 'black' }); // declaration - * rule.append({ text: 'Comment' }) // comment - * - * root.append('a {}'); - * root.first.append('color: black; z-index: 1'); - */ - - - Container.prototype.prepend = function prepend() { - for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - children[_key2] = arguments[_key2]; - } - - children = children.reverse(); - for (var _iterator3 = children, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { - var _ref3; - - if (_isArray3) { - if (_i3 >= _iterator3.length) break; - _ref3 = _iterator3[_i3++]; - } else { - _i3 = _iterator3.next(); - if (_i3.done) break; - _ref3 = _i3.value; - } - - var child = _ref3; - - var nodes = this.normalize(child, this.first, 'prepend').reverse(); - for (var _iterator4 = nodes, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) { - var _ref4; - - if (_isArray4) { - if (_i4 >= _iterator4.length) break; - _ref4 = _iterator4[_i4++]; - } else { - _i4 = _iterator4.next(); - if (_i4.done) break; - _ref4 = _i4.value; - } - - var node = _ref4; - this.nodes.unshift(node); - }for (var id in this.indexes) { - this.indexes[id] = this.indexes[id] + nodes.length; - } - } - return this; - }; - - Container.prototype.cleanRaws = function cleanRaws(keepBetween) { - _Node.prototype.cleanRaws.call(this, keepBetween); - if (this.nodes) { - for (var _iterator5 = this.nodes, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) { - var _ref5; - - if (_isArray5) { - if (_i5 >= _iterator5.length) break; - _ref5 = _iterator5[_i5++]; - } else { - _i5 = _iterator5.next(); - if (_i5.done) break; - _ref5 = _i5.value; - } - - var node = _ref5; - node.cleanRaws(keepBetween); - } - } - }; - - /** - * Insert new node before old node within the container. - * - * @param {Node|number} exist - child or child’s index. - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain - * - * @example - * rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop })); - */ - - - Container.prototype.insertBefore = function insertBefore(exist, add) { - exist = this.index(exist); - - var type = exist === 0 ? 'prepend' : false; - var nodes = this.normalize(add, this.nodes[exist], type).reverse(); - for (var _iterator6 = nodes, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) { - var _ref6; - - if (_isArray6) { - if (_i6 >= _iterator6.length) break; - _ref6 = _iterator6[_i6++]; - } else { - _i6 = _iterator6.next(); - if (_i6.done) break; - _ref6 = _i6.value; - } - - var node = _ref6; - this.nodes.splice(exist, 0, node); - }var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (exist <= index) { - this.indexes[id] = index + nodes.length; - } - } - - return this; - }; - - /** - * Insert new node after old node within the container. - * - * @param {Node|number} exist - child or child’s index - * @param {Node|object|string|Node[]} add - new node - * - * @return {Node} this node for methods chain - */ - - - Container.prototype.insertAfter = function insertAfter(exist, add) { - exist = this.index(exist); - - var nodes = this.normalize(add, this.nodes[exist]).reverse(); - for (var _iterator7 = nodes, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) { - var _ref7; - - if (_isArray7) { - if (_i7 >= _iterator7.length) break; - _ref7 = _iterator7[_i7++]; - } else { - _i7 = _iterator7.next(); - if (_i7.done) break; - _ref7 = _i7.value; - } - - var node = _ref7; - this.nodes.splice(exist + 1, 0, node); - }var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (exist < index) { - this.indexes[id] = index + nodes.length; - } - } - - return this; - }; - - Container.prototype.remove = function remove(child) { - if (typeof child !== 'undefined') { - (0, _warnOnce2.default)('Container#remove is deprecated. ' + 'Use Container#removeChild'); - this.removeChild(child); - } else { - _Node.prototype.remove.call(this); - } - return this; - }; - - /** - * Removes node from the container and cleans the parent properties - * from the node and its children. - * - * @param {Node|number} child - child or child’s index - * - * @return {Node} this node for methods chain - * - * @example - * rule.nodes.length //=> 5 - * rule.removeChild(decl); - * rule.nodes.length //=> 4 - * decl.parent //=> undefined - */ - - - Container.prototype.removeChild = function removeChild(child) { - child = this.index(child); - this.nodes[child].parent = undefined; - this.nodes.splice(child, 1); - - var index = void 0; - for (var id in this.indexes) { - index = this.indexes[id]; - if (index >= child) { - this.indexes[id] = index - 1; - } - } - - return this; - }; - - /** - * Removes all children from the container - * and cleans their parent properties. - * - * @return {Node} this node for methods chain - * - * @example - * rule.removeAll(); - * rule.nodes.length //=> 0 - */ - - - Container.prototype.removeAll = function removeAll() { - for (var _iterator8 = this.nodes, _isArray8 = Array.isArray(_iterator8), _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) { - var _ref8; - - if (_isArray8) { - if (_i8 >= _iterator8.length) break; - _ref8 = _iterator8[_i8++]; - } else { - _i8 = _iterator8.next(); - if (_i8.done) break; - _ref8 = _i8.value; - } - - var node = _ref8; - node.parent = undefined; - }this.nodes = []; - return this; - }; - - /** - * Passes all declaration values within the container that match pattern - * through callback, replacing those values with the returned result - * of callback. - * - * This method is useful if you are using a custom unit or function - * and need to iterate through all values. - * - * @param {string|RegExp} pattern - replace pattern - * @param {object} opts - options to speed up the search - * @param {string|string[]} opts.props - an array of property names - * @param {string} opts.fast - string that’s used - * to narrow down values and speed up - the regexp search - * @param {function|string} callback - string to replace pattern - * or callback that returns a new - * value. - * The callback will receive - * the same arguments as those - * passed to a function parameter - * of `String#replace`. - * - * @return {Node} this node for methods chain - * - * @example - * root.replaceValues(/\d+rem/, { fast: 'rem' }, string => { - * return 15 * parseInt(string) + 'px'; - * }); - */ - - - Container.prototype.replaceValues = function replaceValues(pattern, opts, callback) { - if (!callback) { - callback = opts; - opts = {}; - } - - this.walkDecls(function (decl) { - if (opts.props && opts.props.indexOf(decl.prop) === -1) return; - if (opts.fast && decl.value.indexOf(opts.fast) === -1) return; - - decl.value = decl.value.replace(pattern, callback); - }); - - return this; - }; - - /** - * Returns `true` if callback returns `true` - * for all of the container’s children. - * - * @param {childCondition} condition - iterator returns true or false. - * - * @return {boolean} is every child pass condition - * - * @example - * const noPrefixes = rule.every(i => i.prop[0] !== '-'); - */ - - - Container.prototype.every = function every(condition) { - return this.nodes.every(condition); - }; - - /** - * Returns `true` if callback returns `true` for (at least) one - * of the container’s children. - * - * @param {childCondition} condition - iterator returns true or false. - * - * @return {boolean} is some child pass condition - * - * @example - * const hasPrefix = rule.some(i => i.prop[0] === '-'); - */ - - - Container.prototype.some = function some(condition) { - return this.nodes.some(condition); - }; - - /** - * Returns a `child`’s index within the {@link Container#nodes} array. - * - * @param {Node} child - child of the current container. - * - * @return {number} child index - * - * @example - * rule.index( rule.nodes[2] ) //=> 2 - */ - - - Container.prototype.index = function index(child) { - if (typeof child === 'number') { - return child; - } else { - return this.nodes.indexOf(child); - } - }; - - /** - * The container’s first child. - * - * @type {Node} - * - * @example - * rule.first == rules.nodes[0]; - */ - - - Container.prototype.normalize = function normalize(nodes, sample) { - var _this2 = this; - - if (typeof nodes === 'string') { - var parse = require('./parse'); - nodes = cleanSource(parse(nodes).nodes); - } else if (!Array.isArray(nodes)) { - if (nodes.type === 'root') { - nodes = nodes.nodes; - } else if (nodes.type) { - nodes = [nodes]; - } else if (nodes.prop) { - if (typeof nodes.value === 'undefined') { - throw new Error('Value field is missed in node creation'); - } else if (typeof nodes.value !== 'string') { - nodes.value = String(nodes.value); - } - nodes = [new _declaration2.default(nodes)]; - } else if (nodes.selector) { - var Rule = require('./rule'); - nodes = [new Rule(nodes)]; - } else if (nodes.name) { - var AtRule = require('./at-rule'); - nodes = [new AtRule(nodes)]; - } else if (nodes.text) { - nodes = [new _comment2.default(nodes)]; - } else { - throw new Error('Unknown node type in node creation'); - } - } - - var processed = nodes.map(function (i) { - if (typeof i.raws === 'undefined') i = _this2.rebuild(i); - - if (i.parent) i = i.clone(); - if (typeof i.raws.before === 'undefined') { - if (sample && typeof sample.raws.before !== 'undefined') { - i.raws.before = sample.raws.before.replace(/[^\s]/g, ''); - } - } - i.parent = _this2; - return i; - }); - - return processed; - }; - - Container.prototype.rebuild = function rebuild(node, parent) { - var _this3 = this; - - var fix = void 0; - if (node.type === 'root') { - var Root = require('./root'); - fix = new Root(); - } else if (node.type === 'atrule') { - var AtRule = require('./at-rule'); - fix = new AtRule(); - } else if (node.type === 'rule') { - var Rule = require('./rule'); - fix = new Rule(); - } else if (node.type === 'decl') { - fix = new _declaration2.default(); - } else if (node.type === 'comment') { - fix = new _comment2.default(); - } - - for (var i in node) { - if (i === 'nodes') { - fix.nodes = node.nodes.map(function (j) { - return _this3.rebuild(j, fix); - }); - } else if (i === 'parent' && parent) { - fix.parent = parent; - } else if (node.hasOwnProperty(i)) { - fix[i] = node[i]; - } - } - - return fix; - }; - - Container.prototype.eachInside = function eachInside(callback) { - (0, _warnOnce2.default)('Container#eachInside is deprecated. ' + 'Use Container#walk instead.'); - return this.walk(callback); - }; - - Container.prototype.eachDecl = function eachDecl(prop, callback) { - (0, _warnOnce2.default)('Container#eachDecl is deprecated. ' + 'Use Container#walkDecls instead.'); - return this.walkDecls(prop, callback); - }; - - Container.prototype.eachRule = function eachRule(selector, callback) { - (0, _warnOnce2.default)('Container#eachRule is deprecated. ' + 'Use Container#walkRules instead.'); - return this.walkRules(selector, callback); - }; - - Container.prototype.eachAtRule = function eachAtRule(name, callback) { - (0, _warnOnce2.default)('Container#eachAtRule is deprecated. ' + 'Use Container#walkAtRules instead.'); - return this.walkAtRules(name, callback); - }; - - Container.prototype.eachComment = function eachComment(callback) { - (0, _warnOnce2.default)('Container#eachComment is deprecated. ' + 'Use Container#walkComments instead.'); - return this.walkComments(callback); - }; - - _createClass(Container, [{ - key: 'first', - get: function get() { - if (!this.nodes) return undefined; - return this.nodes[0]; - } - - /** - * The container’s last child. - * - * @type {Node} - * - * @example - * rule.last == rule.nodes[rule.nodes.length - 1]; - */ - - }, { - key: 'last', - get: function get() { - if (!this.nodes) return undefined; - return this.nodes[this.nodes.length - 1]; - } - }, { - key: 'semicolon', - get: function get() { - (0, _warnOnce2.default)('Node#semicolon is deprecated. Use Node#raws.semicolon'); - return this.raws.semicolon; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#semicolon is deprecated. Use Node#raws.semicolon'); - this.raws.semicolon = val; - } - }, { - key: 'after', - get: function get() { - (0, _warnOnce2.default)('Node#after is deprecated. Use Node#raws.after'); - return this.raws.after; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#after is deprecated. Use Node#raws.after'); - this.raws.after = val; - } - - /** - * @memberof Container# - * @member {Node[]} nodes - an array containing the container’s children - * - * @example - * const root = postcss.parse('a { color: black }'); - * root.nodes.length //=> 1 - * root.nodes[0].selector //=> 'a' - * root.nodes[0].nodes[0].prop //=> 'color' - */ - - }]); - - return Container; -}(_node2.default); - -exports.default = Container; - -/** - * @callback childCondition - * @param {Node} node - container child - * @param {number} index - child index - * @param {Node[]} nodes - all container children - * @return {boolean} - */ - -/** - * @callback childIterator - * @param {Node} node - container child - * @param {number} index - child index - * @return {false|undefined} returning `false` will break iteration - */ - -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbnRhaW5lci5lczYiXSwibmFtZXMiOlsiY2xlYW5Tb3VyY2UiLCJub2RlcyIsIm1hcCIsImkiLCJzb3VyY2UiLCJDb250YWluZXIiLCJwdXNoIiwiY2hpbGQiLCJwYXJlbnQiLCJlYWNoIiwiY2FsbGJhY2siLCJsYXN0RWFjaCIsImluZGV4ZXMiLCJpZCIsInVuZGVmaW5lZCIsImluZGV4IiwicmVzdWx0IiwibGVuZ3RoIiwid2FsayIsIndhbGtEZWNscyIsInByb3AiLCJ0eXBlIiwiUmVnRXhwIiwidGVzdCIsIndhbGtSdWxlcyIsInNlbGVjdG9yIiwid2Fsa0F0UnVsZXMiLCJuYW1lIiwid2Fsa0NvbW1lbnRzIiwiYXBwZW5kIiwiY2hpbGRyZW4iLCJub3JtYWxpemUiLCJsYXN0Iiwibm9kZSIsInByZXBlbmQiLCJyZXZlcnNlIiwiZmlyc3QiLCJ1bnNoaWZ0IiwiY2xlYW5SYXdzIiwia2VlcEJldHdlZW4iLCJpbnNlcnRCZWZvcmUiLCJleGlzdCIsImFkZCIsInNwbGljZSIsImluc2VydEFmdGVyIiwicmVtb3ZlIiwicmVtb3ZlQ2hpbGQiLCJyZW1vdmVBbGwiLCJyZXBsYWNlVmFsdWVzIiwicGF0dGVybiIsIm9wdHMiLCJwcm9wcyIsImluZGV4T2YiLCJkZWNsIiwiZmFzdCIsInZhbHVlIiwicmVwbGFjZSIsImV2ZXJ5IiwiY29uZGl0aW9uIiwic29tZSIsInNhbXBsZSIsInBhcnNlIiwicmVxdWlyZSIsIkFycmF5IiwiaXNBcnJheSIsIkVycm9yIiwiU3RyaW5nIiwiUnVsZSIsIkF0UnVsZSIsInRleHQiLCJwcm9jZXNzZWQiLCJyYXdzIiwicmVidWlsZCIsImNsb25lIiwiYmVmb3JlIiwiZml4IiwiUm9vdCIsImoiLCJoYXNPd25Qcm9wZXJ0eSIsImVhY2hJbnNpZGUiLCJlYWNoRGVjbCIsImVhY2hSdWxlIiwiZWFjaEF0UnVsZSIsImVhY2hDb21tZW50Iiwic2VtaWNvbG9uIiwidmFsIiwiYWZ0ZXIiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7QUFFQSxTQUFTQSxXQUFULENBQXFCQyxLQUFyQixFQUE0QjtBQUN4QixXQUFPQSxNQUFNQyxHQUFOLENBQVcsYUFBSztBQUNuQixZQUFLQyxFQUFFRixLQUFQLEVBQWVFLEVBQUVGLEtBQUYsR0FBVUQsWUFBWUcsRUFBRUYsS0FBZCxDQUFWO0FBQ2YsZUFBT0UsRUFBRUMsTUFBVDtBQUNBLGVBQU9ELENBQVA7QUFDSCxLQUpNLENBQVA7QUFLSDs7QUFFRDs7Ozs7Ozs7Ozs7SUFVTUUsUzs7Ozs7Ozs7O3dCQUVGQyxJLGlCQUFLQyxLLEVBQU87QUFDUkEsY0FBTUMsTUFBTixHQUFlLElBQWY7QUFDQSxhQUFLUCxLQUFMLENBQVdLLElBQVgsQ0FBZ0JDLEtBQWhCO0FBQ0EsZUFBTyxJQUFQO0FBQ0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7d0JBaUNBRSxJLGlCQUFLQyxRLEVBQVU7QUFDWCxZQUFLLENBQUMsS0FBS0MsUUFBWCxFQUFzQixLQUFLQSxRQUFMLEdBQWdCLENBQWhCO0FBQ3RCLFlBQUssQ0FBQyxLQUFLQyxPQUFYLEVBQXFCLEtBQUtBLE9BQUwsR0FBZSxFQUFmOztBQUVyQixhQUFLRCxRQUFMLElBQWlCLENBQWpCO0FBQ0EsWUFBSUUsS0FBSyxLQUFLRixRQUFkO0FBQ0EsYUFBS0MsT0FBTCxDQUFhQyxFQUFiLElBQW1CLENBQW5COztBQUVBLFlBQUssQ0FBQyxLQUFLWixLQUFYLEVBQW1CLE9BQU9hLFNBQVA7O0FBRW5CLFlBQUlDLGNBQUo7QUFBQSxZQUFXQyxlQUFYO0FBQ0EsZUFBUSxLQUFLSixPQUFMLENBQWFDLEVBQWIsSUFBbUIsS0FBS1osS0FBTCxDQUFXZ0IsTUFBdEMsRUFBK0M7QUFDM0NGLG9CQUFTLEtBQUtILE9BQUwsQ0FBYUMsRUFBYixDQUFUO0FBQ0FHLHFCQUFTTixTQUFTLEtBQUtULEtBQUwsQ0FBV2MsS0FBWCxDQUFULEVBQTRCQSxLQUE1QixDQUFUO0FBQ0EsZ0JBQUtDLFdBQVcsS0FBaEIsRUFBd0I7O0FBRXhCLGlCQUFLSixPQUFMLENBQWFDLEVBQWIsS0FBb0IsQ0FBcEI7QUFDSDs7QUFFRCxlQUFPLEtBQUtELE9BQUwsQ0FBYUMsRUFBYixDQUFQOztBQUVBLGVBQU9HLE1BQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7d0JBbUJBRSxJLGlCQUFLUixRLEVBQVU7QUFDWCxlQUFPLEtBQUtELElBQUwsQ0FBVyxVQUFDRixLQUFELEVBQVFKLENBQVIsRUFBYztBQUM1QixnQkFBSWEsU0FBU04sU0FBU0gsS0FBVCxFQUFnQkosQ0FBaEIsQ0FBYjtBQUNBLGdCQUFLYSxXQUFXLEtBQVgsSUFBb0JULE1BQU1XLElBQS9CLEVBQXNDO0FBQ2xDRix5QkFBU1QsTUFBTVcsSUFBTixDQUFXUixRQUFYLENBQVQ7QUFDSDtBQUNELG1CQUFPTSxNQUFQO0FBQ0gsU0FOTSxDQUFQO0FBT0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozt3QkE2QkFHLFMsc0JBQVVDLEksRUFBTVYsUSxFQUFVO0FBQ3RCLFlBQUssQ0FBQ0EsUUFBTixFQUFpQjtBQUNiQSx1QkFBV1UsSUFBWDtBQUNBLG1CQUFPLEtBQUtGLElBQUwsQ0FBVyxVQUFDWCxLQUFELEVBQVFKLENBQVIsRUFBYztBQUM1QixvQkFBS0ksTUFBTWMsSUFBTixLQUFlLE1BQXBCLEVBQTZCO0FBQ3pCLDJCQUFPWCxTQUFTSCxLQUFULEVBQWdCSixDQUFoQixDQUFQO0FBQ0g7QUFDSixhQUpNLENBQVA7QUFLSCxTQVBELE1BT08sSUFBS2lCLGdCQUFnQkUsTUFBckIsRUFBOEI7QUFDakMsbUJBQU8sS0FBS0osSUFBTCxDQUFXLFVBQUNYLEtBQUQsRUFBUUosQ0FBUixFQUFjO0FBQzVCLG9CQUFLSSxNQUFNYyxJQUFOLEtBQWUsTUFBZixJQUF5QkQsS0FBS0csSUFBTCxDQUFVaEIsTUFBTWEsSUFBaEIsQ0FBOUIsRUFBc0Q7QUFDbEQsMkJBQU9WLFNBQVNILEtBQVQsRUFBZ0JKLENBQWhCLENBQVA7QUFDSDtBQUNKLGFBSk0sQ0FBUDtBQUtILFNBTk0sTUFNQTtBQUNILG1CQUFPLEtBQUtlLElBQUwsQ0FBVyxVQUFDWCxLQUFELEVBQVFKLENBQVIsRUFBYztBQUM1QixvQkFBS0ksTUFBTWMsSUFBTixLQUFlLE1BQWYsSUFBeUJkLE1BQU1hLElBQU4sS0FBZUEsSUFBN0MsRUFBb0Q7QUFDaEQsMkJBQU9WLFNBQVNILEtBQVQsRUFBZ0JKLENBQWhCLENBQVA7QUFDSDtBQUNKLGFBSk0sQ0FBUDtBQUtIO0FBQ0osSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozt3QkF1QkFxQixTLHNCQUFVQyxRLEVBQVVmLFEsRUFBVTtBQUMxQixZQUFLLENBQUNBLFFBQU4sRUFBaUI7QUFDYkEsdUJBQVdlLFFBQVg7O0FBRUEsbUJBQU8sS0FBS1AsSUFBTCxDQUFXLFVBQUNYLEtBQUQsRUFBUUosQ0FBUixFQUFjO0FBQzVCLG9CQUFLSSxNQUFNYyxJQUFOLEtBQWUsTUFBcEIsRUFBNkI7QUFDekIsMkJBQU9YLFNBQVNILEtBQVQsRUFBZ0JKLENBQWhCLENBQVA7QUFDSDtBQUNKLGFBSk0sQ0FBUDtBQUtILFNBUkQsTUFRTyxJQUFLc0Isb0JBQW9CSCxNQUF6QixFQUFrQztBQUNyQyxtQkFBTyxLQUFLSixJQUFMLENBQVcsVUFBQ1gsS0FBRCxFQUFRSixDQUFSLEVBQWM7QUFDNUIsb0JBQUtJLE1BQU1jLElBQU4sS0FBZSxNQUFmLElBQXlCSSxTQUFTRixJQUFULENBQWNoQixNQUFNa0IsUUFBcEIsQ0FBOUIsRUFBOEQ7QUFDMUQsMkJBQU9mLFNBQVNILEtBQVQsRUFBZ0JKLENBQWhCLENBQVA7QUFDSDtBQUNKLGFBSk0sQ0FBUDtBQUtILFNBTk0sTUFNQTtBQUNILG1CQUFPLEtBQUtlLElBQUwsQ0FBVyxVQUFDWCxLQUFELEVBQVFKLENBQVIsRUFBYztBQUM1QixvQkFBS0ksTUFBTWMsSUFBTixLQUFlLE1BQWYsSUFBeUJkLE1BQU1rQixRQUFOLEtBQW1CQSxRQUFqRCxFQUE0RDtBQUN4RCwyQkFBT2YsU0FBU0gsS0FBVCxFQUFnQkosQ0FBaEIsQ0FBUDtBQUNIO0FBQ0osYUFKTSxDQUFQO0FBS0g7QUFDSixLOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozt3QkE4QkF1QixXLHdCQUFZQyxJLEVBQU1qQixRLEVBQVU7QUFDeEIsWUFBSyxDQUFDQSxRQUFOLEVBQWlCO0FBQ2JBLHVCQUFXaUIsSUFBWDtBQUNBLG1CQUFPLEtBQUtULElBQUwsQ0FBVyxVQUFDWCxLQUFELEVBQVFKLENBQVIsRUFBYztBQUM1QixvQkFBS0ksTUFBTWMsSUFBTixLQUFlLFFBQXBCLEVBQStCO0FBQzNCLDJCQUFPWCxTQUFTSCxLQUFULEVBQWdCSixDQUFoQixDQUFQO0FBQ0g7QUFDSixhQUpNLENBQVA7QUFLSCxTQVBELE1BT08sSUFBS3dCLGdCQUFnQkwsTUFBckIsRUFBOEI7QUFDakMsbUJBQU8sS0FBS0osSUFBTCxDQUFXLFVBQUNYLEtBQUQsRUFBUUosQ0FBUixFQUFjO0FBQzVCLG9CQUFLSSxNQUFNYyxJQUFOLEtBQWUsUUFBZixJQUEyQk0sS0FBS0osSUFBTCxDQUFVaEIsTUFBTW9CLElBQWhCLENBQWhDLEVBQXdEO0FBQ3BELDJCQUFPakIsU0FBU0gsS0FBVCxFQUFnQkosQ0FBaEIsQ0FBUDtBQUNIO0FBQ0osYUFKTSxDQUFQO0FBS0gsU0FOTSxNQU1BO0FBQ0gsbUJBQU8sS0FBS2UsSUFBTCxDQUFXLFVBQUNYLEtBQUQsRUFBUUosQ0FBUixFQUFjO0FBQzVCLG9CQUFLSSxNQUFNYyxJQUFOLEtBQWUsUUFBZixJQUEyQmQsTUFBTW9CLElBQU4sS0FBZUEsSUFBL0MsRUFBc0Q7QUFDbEQsMkJBQU9qQixTQUFTSCxLQUFULEVBQWdCSixDQUFoQixDQUFQO0FBQ0g7QUFDSixhQUpNLENBQVA7QUFLSDtBQUNKLEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozt3QkFnQkF5QixZLHlCQUFhbEIsUSxFQUFVO0FBQ25CLGVBQU8sS0FBS1EsSUFBTCxDQUFXLFVBQUNYLEtBQUQsRUFBUUosQ0FBUixFQUFjO0FBQzVCLGdCQUFLSSxNQUFNYyxJQUFOLEtBQWUsU0FBcEIsRUFBZ0M7QUFDNUIsdUJBQU9YLFNBQVNILEtBQVQsRUFBZ0JKLENBQWhCLENBQVA7QUFDSDtBQUNKLFNBSk0sQ0FBUDtBQUtILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7d0JBb0JBMEIsTSxxQkFBb0I7QUFBQSwwQ0FBVkMsUUFBVTtBQUFWQSxvQkFBVTtBQUFBOztBQUNoQiw2QkFBbUJBLFFBQW5CLGtIQUE4QjtBQUFBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBQUEsZ0JBQXBCdkIsS0FBb0I7O0FBQzFCLGdCQUFJTixRQUFRLEtBQUs4QixTQUFMLENBQWV4QixLQUFmLEVBQXNCLEtBQUt5QixJQUEzQixDQUFaO0FBQ0Esa0NBQWtCL0IsS0FBbEI7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUFBLG9CQUFVZ0MsSUFBVjtBQUEwQixxQkFBS2hDLEtBQUwsQ0FBV0ssSUFBWCxDQUFnQjJCLElBQWhCO0FBQTFCO0FBQ0g7QUFDRCxlQUFPLElBQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3dCQW9CQUMsTyxzQkFBcUI7QUFBQSwyQ0FBVkosUUFBVTtBQUFWQSxvQkFBVTtBQUFBOztBQUNqQkEsbUJBQVdBLFNBQVNLLE9BQVQsRUFBWDtBQUNBLDhCQUFtQkwsUUFBbkIseUhBQThCO0FBQUE7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFBQSxnQkFBcEJ2QixLQUFvQjs7QUFDMUIsZ0JBQUlOLFFBQVEsS0FBSzhCLFNBQUwsQ0FBZXhCLEtBQWYsRUFBc0IsS0FBSzZCLEtBQTNCLEVBQWtDLFNBQWxDLEVBQTZDRCxPQUE3QyxFQUFaO0FBQ0Esa0NBQWtCbEMsS0FBbEI7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUFBLG9CQUFVZ0MsSUFBVjtBQUEwQixxQkFBS2hDLEtBQUwsQ0FBV29DLE9BQVgsQ0FBbUJKLElBQW5CO0FBQTFCLGFBQ0EsS0FBTSxJQUFJcEIsRUFBVixJQUFnQixLQUFLRCxPQUFyQixFQUErQjtBQUMzQixxQkFBS0EsT0FBTCxDQUFhQyxFQUFiLElBQW1CLEtBQUtELE9BQUwsQ0FBYUMsRUFBYixJQUFtQlosTUFBTWdCLE1BQTVDO0FBQ0g7QUFDSjtBQUNELGVBQU8sSUFBUDtBQUNILEs7O3dCQUVEcUIsUyxzQkFBVUMsVyxFQUFhO0FBQ25CLHdCQUFNRCxTQUFOLFlBQWdCQyxXQUFoQjtBQUNBLFlBQUssS0FBS3RDLEtBQVYsRUFBa0I7QUFDZCxrQ0FBa0IsS0FBS0EsS0FBdkI7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUFBLG9CQUFVZ0MsSUFBVjtBQUErQkEscUJBQUtLLFNBQUwsQ0FBZUMsV0FBZjtBQUEvQjtBQUNIO0FBQ0osSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozt3QkFXQUMsWSx5QkFBYUMsSyxFQUFPQyxHLEVBQUs7QUFDckJELGdCQUFRLEtBQUsxQixLQUFMLENBQVcwQixLQUFYLENBQVI7O0FBRUEsWUFBSXBCLE9BQVFvQixVQUFVLENBQVYsR0FBYyxTQUFkLEdBQTBCLEtBQXRDO0FBQ0EsWUFBSXhDLFFBQVEsS0FBSzhCLFNBQUwsQ0FBZVcsR0FBZixFQUFvQixLQUFLekMsS0FBTCxDQUFXd0MsS0FBWCxDQUFwQixFQUF1Q3BCLElBQXZDLEVBQTZDYyxPQUE3QyxFQUFaO0FBQ0EsOEJBQWtCbEMsS0FBbEI7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUFBLGdCQUFVZ0MsSUFBVjtBQUEwQixpQkFBS2hDLEtBQUwsQ0FBVzBDLE1BQVgsQ0FBa0JGLEtBQWxCLEVBQXlCLENBQXpCLEVBQTRCUixJQUE1QjtBQUExQixTQUVBLElBQUlsQixjQUFKO0FBQ0EsYUFBTSxJQUFJRixFQUFWLElBQWdCLEtBQUtELE9BQXJCLEVBQStCO0FBQzNCRyxvQkFBUSxLQUFLSCxPQUFMLENBQWFDLEVBQWIsQ0FBUjtBQUNBLGdCQUFLNEIsU0FBUzFCLEtBQWQsRUFBc0I7QUFDbEIscUJBQUtILE9BQUwsQ0FBYUMsRUFBYixJQUFtQkUsUUFBUWQsTUFBTWdCLE1BQWpDO0FBQ0g7QUFDSjs7QUFFRCxlQUFPLElBQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7O3dCQVFBMkIsVyx3QkFBWUgsSyxFQUFPQyxHLEVBQUs7QUFDcEJELGdCQUFRLEtBQUsxQixLQUFMLENBQVcwQixLQUFYLENBQVI7O0FBRUEsWUFBSXhDLFFBQVEsS0FBSzhCLFNBQUwsQ0FBZVcsR0FBZixFQUFvQixLQUFLekMsS0FBTCxDQUFXd0MsS0FBWCxDQUFwQixFQUF1Q04sT0FBdkMsRUFBWjtBQUNBLDhCQUFrQmxDLEtBQWxCO0FBQUE7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFBQSxnQkFBVWdDLElBQVY7QUFBMEIsaUJBQUtoQyxLQUFMLENBQVcwQyxNQUFYLENBQWtCRixRQUFRLENBQTFCLEVBQTZCLENBQTdCLEVBQWdDUixJQUFoQztBQUExQixTQUVBLElBQUlsQixjQUFKO0FBQ0EsYUFBTSxJQUFJRixFQUFWLElBQWdCLEtBQUtELE9BQXJCLEVBQStCO0FBQzNCRyxvQkFBUSxLQUFLSCxPQUFMLENBQWFDLEVBQWIsQ0FBUjtBQUNBLGdCQUFLNEIsUUFBUTFCLEtBQWIsRUFBcUI7QUFDakIscUJBQUtILE9BQUwsQ0FBYUMsRUFBYixJQUFtQkUsUUFBUWQsTUFBTWdCLE1BQWpDO0FBQ0g7QUFDSjs7QUFFRCxlQUFPLElBQVA7QUFDSCxLOzt3QkFFRDRCLE0sbUJBQU90QyxLLEVBQU87QUFDVixZQUFLLE9BQU9BLEtBQVAsS0FBaUIsV0FBdEIsRUFBb0M7QUFDaEMsb0NBQVMscUNBQ0EsMkJBRFQ7QUFFQSxpQkFBS3VDLFdBQUwsQ0FBaUJ2QyxLQUFqQjtBQUNILFNBSkQsTUFJTztBQUNILDRCQUFNc0MsTUFBTjtBQUNIO0FBQ0QsZUFBTyxJQUFQO0FBQ0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozt3QkFjQUMsVyx3QkFBWXZDLEssRUFBTztBQUNmQSxnQkFBUSxLQUFLUSxLQUFMLENBQVdSLEtBQVgsQ0FBUjtBQUNBLGFBQUtOLEtBQUwsQ0FBV00sS0FBWCxFQUFrQkMsTUFBbEIsR0FBMkJNLFNBQTNCO0FBQ0EsYUFBS2IsS0FBTCxDQUFXMEMsTUFBWCxDQUFrQnBDLEtBQWxCLEVBQXlCLENBQXpCOztBQUVBLFlBQUlRLGNBQUo7QUFDQSxhQUFNLElBQUlGLEVBQVYsSUFBZ0IsS0FBS0QsT0FBckIsRUFBK0I7QUFDM0JHLG9CQUFRLEtBQUtILE9BQUwsQ0FBYUMsRUFBYixDQUFSO0FBQ0EsZ0JBQUtFLFNBQVNSLEtBQWQsRUFBc0I7QUFDbEIscUJBQUtLLE9BQUwsQ0FBYUMsRUFBYixJQUFtQkUsUUFBUSxDQUEzQjtBQUNIO0FBQ0o7O0FBRUQsZUFBTyxJQUFQO0FBQ0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7O3dCQVVBZ0MsUyx3QkFBWTtBQUNSLDhCQUFrQixLQUFLOUMsS0FBdkI7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUFBLGdCQUFVZ0MsSUFBVjtBQUErQkEsaUJBQUt6QixNQUFMLEdBQWNNLFNBQWQ7QUFBL0IsU0FDQSxLQUFLYixLQUFMLEdBQWEsRUFBYjtBQUNBLGVBQU8sSUFBUDtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7d0JBNkJBK0MsYSwwQkFBY0MsTyxFQUFTQyxJLEVBQU14QyxRLEVBQVU7QUFDbkMsWUFBSyxDQUFDQSxRQUFOLEVBQWlCO0FBQ2JBLHVCQUFXd0MsSUFBWDtBQUNBQSxtQkFBTyxFQUFQO0FBQ0g7O0FBRUQsYUFBSy9CLFNBQUwsQ0FBZ0IsZ0JBQVE7QUFDcEIsZ0JBQUsrQixLQUFLQyxLQUFMLElBQWNELEtBQUtDLEtBQUwsQ0FBV0MsT0FBWCxDQUFtQkMsS0FBS2pDLElBQXhCLE1BQWtDLENBQUMsQ0FBdEQsRUFBMEQ7QUFDMUQsZ0JBQUs4QixLQUFLSSxJQUFMLElBQWNELEtBQUtFLEtBQUwsQ0FBV0gsT0FBWCxDQUFtQkYsS0FBS0ksSUFBeEIsTUFBa0MsQ0FBQyxDQUF0RCxFQUEwRDs7QUFFMURELGlCQUFLRSxLQUFMLEdBQWFGLEtBQUtFLEtBQUwsQ0FBV0MsT0FBWCxDQUFtQlAsT0FBbkIsRUFBNEJ2QyxRQUE1QixDQUFiO0FBQ0gsU0FMRDs7QUFPQSxlQUFPLElBQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7O3dCQVdBK0MsSyxrQkFBTUMsUyxFQUFXO0FBQ2IsZUFBTyxLQUFLekQsS0FBTCxDQUFXd0QsS0FBWCxDQUFpQkMsU0FBakIsQ0FBUDtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7d0JBV0FDLEksaUJBQUtELFMsRUFBVztBQUNaLGVBQU8sS0FBS3pELEtBQUwsQ0FBVzBELElBQVgsQ0FBZ0JELFNBQWhCLENBQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7d0JBVUEzQyxLLGtCQUFNUixLLEVBQU87QUFDVCxZQUFLLE9BQU9BLEtBQVAsS0FBaUIsUUFBdEIsRUFBaUM7QUFDN0IsbUJBQU9BLEtBQVA7QUFDSCxTQUZELE1BRU87QUFDSCxtQkFBTyxLQUFLTixLQUFMLENBQVdtRCxPQUFYLENBQW1CN0MsS0FBbkIsQ0FBUDtBQUNIO0FBQ0osSzs7QUFFRDs7Ozs7Ozs7Ozt3QkEwQkF3QixTLHNCQUFVOUIsSyxFQUFPMkQsTSxFQUFRO0FBQUE7O0FBQ3JCLFlBQUssT0FBTzNELEtBQVAsS0FBaUIsUUFBdEIsRUFBaUM7QUFDN0IsZ0JBQUk0RCxRQUFRQyxRQUFRLFNBQVIsQ0FBWjtBQUNBN0Qsb0JBQVFELFlBQVk2RCxNQUFNNUQsS0FBTixFQUFhQSxLQUF6QixDQUFSO0FBQ0gsU0FIRCxNQUdPLElBQUssQ0FBQzhELE1BQU1DLE9BQU4sQ0FBYy9ELEtBQWQsQ0FBTixFQUE2QjtBQUNoQyxnQkFBS0EsTUFBTW9CLElBQU4sS0FBZSxNQUFwQixFQUE2QjtBQUN6QnBCLHdCQUFRQSxNQUFNQSxLQUFkO0FBQ0gsYUFGRCxNQUVPLElBQUtBLE1BQU1vQixJQUFYLEVBQWtCO0FBQ3JCcEIsd0JBQVEsQ0FBQ0EsS0FBRCxDQUFSO0FBQ0gsYUFGTSxNQUVBLElBQUtBLE1BQU1tQixJQUFYLEVBQWtCO0FBQ3JCLG9CQUFLLE9BQU9uQixNQUFNc0QsS0FBYixLQUF1QixXQUE1QixFQUEwQztBQUN0QywwQkFBTSxJQUFJVSxLQUFKLENBQVUsd0NBQVYsQ0FBTjtBQUNILGlCQUZELE1BRU8sSUFBSyxPQUFPaEUsTUFBTXNELEtBQWIsS0FBdUIsUUFBNUIsRUFBdUM7QUFDMUN0RCwwQkFBTXNELEtBQU4sR0FBY1csT0FBT2pFLE1BQU1zRCxLQUFiLENBQWQ7QUFDSDtBQUNEdEQsd0JBQVEsQ0FBQywwQkFBZ0JBLEtBQWhCLENBQUQsQ0FBUjtBQUNILGFBUE0sTUFPQSxJQUFLQSxNQUFNd0IsUUFBWCxFQUFzQjtBQUN6QixvQkFBSTBDLE9BQU9MLFFBQVEsUUFBUixDQUFYO0FBQ0E3RCx3QkFBUSxDQUFDLElBQUlrRSxJQUFKLENBQVNsRSxLQUFULENBQUQsQ0FBUjtBQUNILGFBSE0sTUFHQSxJQUFLQSxNQUFNMEIsSUFBWCxFQUFrQjtBQUNyQixvQkFBSXlDLFNBQVNOLFFBQVEsV0FBUixDQUFiO0FBQ0E3RCx3QkFBUSxDQUFDLElBQUltRSxNQUFKLENBQVduRSxLQUFYLENBQUQsQ0FBUjtBQUNILGFBSE0sTUFHQSxJQUFLQSxNQUFNb0UsSUFBWCxFQUFrQjtBQUNyQnBFLHdCQUFRLENBQUMsc0JBQVlBLEtBQVosQ0FBRCxDQUFSO0FBQ0gsYUFGTSxNQUVBO0FBQ0gsc0JBQU0sSUFBSWdFLEtBQUosQ0FBVSxvQ0FBVixDQUFOO0FBQ0g7QUFDSjs7QUFFRCxZQUFJSyxZQUFZckUsTUFBTUMsR0FBTixDQUFXLGFBQUs7QUFDNUIsZ0JBQUssT0FBT0MsRUFBRW9FLElBQVQsS0FBa0IsV0FBdkIsRUFBcUNwRSxJQUFJLE9BQUtxRSxPQUFMLENBQWFyRSxDQUFiLENBQUo7O0FBRXJDLGdCQUFLQSxFQUFFSyxNQUFQLEVBQWdCTCxJQUFJQSxFQUFFc0UsS0FBRixFQUFKO0FBQ2hCLGdCQUFLLE9BQU90RSxFQUFFb0UsSUFBRixDQUFPRyxNQUFkLEtBQXlCLFdBQTlCLEVBQTRDO0FBQ3hDLG9CQUFLZCxVQUFVLE9BQU9BLE9BQU9XLElBQVAsQ0FBWUcsTUFBbkIsS0FBOEIsV0FBN0MsRUFBMkQ7QUFDdkR2RSxzQkFBRW9FLElBQUYsQ0FBT0csTUFBUCxHQUFnQmQsT0FBT1csSUFBUCxDQUFZRyxNQUFaLENBQW1CbEIsT0FBbkIsQ0FBMkIsUUFBM0IsRUFBcUMsRUFBckMsQ0FBaEI7QUFDSDtBQUNKO0FBQ0RyRCxjQUFFSyxNQUFGO0FBQ0EsbUJBQU9MLENBQVA7QUFDSCxTQVhlLENBQWhCOztBQWFBLGVBQU9tRSxTQUFQO0FBQ0gsSzs7d0JBRURFLE8sb0JBQVF2QyxJLEVBQU16QixNLEVBQVE7QUFBQTs7QUFDbEIsWUFBSW1FLFlBQUo7QUFDQSxZQUFLMUMsS0FBS1osSUFBTCxLQUFjLE1BQW5CLEVBQTRCO0FBQ3hCLGdCQUFJdUQsT0FBT2QsUUFBUSxRQUFSLENBQVg7QUFDQWEsa0JBQU0sSUFBSUMsSUFBSixFQUFOO0FBQ0gsU0FIRCxNQUdPLElBQUszQyxLQUFLWixJQUFMLEtBQWMsUUFBbkIsRUFBOEI7QUFDakMsZ0JBQUkrQyxTQUFTTixRQUFRLFdBQVIsQ0FBYjtBQUNBYSxrQkFBTSxJQUFJUCxNQUFKLEVBQU47QUFDSCxTQUhNLE1BR0EsSUFBS25DLEtBQUtaLElBQUwsS0FBYyxNQUFuQixFQUE0QjtBQUMvQixnQkFBSThDLE9BQU9MLFFBQVEsUUFBUixDQUFYO0FBQ0FhLGtCQUFNLElBQUlSLElBQUosRUFBTjtBQUNILFNBSE0sTUFHQSxJQUFLbEMsS0FBS1osSUFBTCxLQUFjLE1BQW5CLEVBQTRCO0FBQy9Cc0Qsa0JBQU0sMkJBQU47QUFDSCxTQUZNLE1BRUEsSUFBSzFDLEtBQUtaLElBQUwsS0FBYyxTQUFuQixFQUErQjtBQUNsQ3NELGtCQUFNLHVCQUFOO0FBQ0g7O0FBRUQsYUFBTSxJQUFJeEUsQ0FBVixJQUFlOEIsSUFBZixFQUFzQjtBQUNsQixnQkFBSzlCLE1BQU0sT0FBWCxFQUFxQjtBQUNqQndFLG9CQUFJMUUsS0FBSixHQUFZZ0MsS0FBS2hDLEtBQUwsQ0FBV0MsR0FBWCxDQUFnQjtBQUFBLDJCQUFLLE9BQUtzRSxPQUFMLENBQWFLLENBQWIsRUFBZ0JGLEdBQWhCLENBQUw7QUFBQSxpQkFBaEIsQ0FBWjtBQUNILGFBRkQsTUFFTyxJQUFLeEUsTUFBTSxRQUFOLElBQWtCSyxNQUF2QixFQUFnQztBQUNuQ21FLG9CQUFJbkUsTUFBSixHQUFhQSxNQUFiO0FBQ0gsYUFGTSxNQUVBLElBQUt5QixLQUFLNkMsY0FBTCxDQUFvQjNFLENBQXBCLENBQUwsRUFBOEI7QUFDakN3RSxvQkFBSXhFLENBQUosSUFBUzhCLEtBQUs5QixDQUFMLENBQVQ7QUFDSDtBQUNKOztBQUVELGVBQU93RSxHQUFQO0FBQ0gsSzs7d0JBRURJLFUsdUJBQVdyRSxRLEVBQVU7QUFDakIsZ0NBQVMseUNBQ0EsNkJBRFQ7QUFFQSxlQUFPLEtBQUtRLElBQUwsQ0FBVVIsUUFBVixDQUFQO0FBQ0gsSzs7d0JBRURzRSxRLHFCQUFTNUQsSSxFQUFNVixRLEVBQVU7QUFDckIsZ0NBQVMsdUNBQ0Esa0NBRFQ7QUFFQSxlQUFPLEtBQUtTLFNBQUwsQ0FBZUMsSUFBZixFQUFxQlYsUUFBckIsQ0FBUDtBQUNILEs7O3dCQUVEdUUsUSxxQkFBU3hELFEsRUFBVWYsUSxFQUFVO0FBQ3pCLGdDQUFTLHVDQUNBLGtDQURUO0FBRUEsZUFBTyxLQUFLYyxTQUFMLENBQWVDLFFBQWYsRUFBeUJmLFFBQXpCLENBQVA7QUFDSCxLOzt3QkFFRHdFLFUsdUJBQVd2RCxJLEVBQU1qQixRLEVBQVU7QUFDdkIsZ0NBQVMseUNBQ0Esb0NBRFQ7QUFFQSxlQUFPLEtBQUtnQixXQUFMLENBQWlCQyxJQUFqQixFQUF1QmpCLFFBQXZCLENBQVA7QUFDSCxLOzt3QkFFRHlFLFcsd0JBQVl6RSxRLEVBQVU7QUFDbEIsZ0NBQVMsMENBQ0EscUNBRFQ7QUFFQSxlQUFPLEtBQUtrQixZQUFMLENBQWtCbEIsUUFBbEIsQ0FBUDtBQUNILEs7Ozs7NEJBekhXO0FBQ1IsZ0JBQUssQ0FBQyxLQUFLVCxLQUFYLEVBQW1CLE9BQU9hLFNBQVA7QUFDbkIsbUJBQU8sS0FBS2IsS0FBTCxDQUFXLENBQVgsQ0FBUDtBQUNIOztBQUVEOzs7Ozs7Ozs7Ozs0QkFRVztBQUNQLGdCQUFLLENBQUMsS0FBS0EsS0FBWCxFQUFtQixPQUFPYSxTQUFQO0FBQ25CLG1CQUFPLEtBQUtiLEtBQUwsQ0FBVyxLQUFLQSxLQUFMLENBQVdnQixNQUFYLEdBQW9CLENBQS9CLENBQVA7QUFDSDs7OzRCQTJHZTtBQUNaLG9DQUFTLHVEQUFUO0FBQ0EsbUJBQU8sS0FBS3NELElBQUwsQ0FBVWEsU0FBakI7QUFDSCxTOzBCQUVhQyxHLEVBQUs7QUFDZixvQ0FBUyx1REFBVDtBQUNBLGlCQUFLZCxJQUFMLENBQVVhLFNBQVYsR0FBc0JDLEdBQXRCO0FBQ0g7Ozs0QkFFVztBQUNSLG9DQUFTLCtDQUFUO0FBQ0EsbUJBQU8sS0FBS2QsSUFBTCxDQUFVZSxLQUFqQjtBQUNILFM7MEJBRVNELEcsRUFBSztBQUNYLG9DQUFTLCtDQUFUO0FBQ0EsaUJBQUtkLElBQUwsQ0FBVWUsS0FBVixHQUFrQkQsR0FBbEI7QUFDSDs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7OztrQkFhV2hGLFM7O0FBR2Y7Ozs7Ozs7O0FBUUEiLCJmaWxlIjoiY29udGFpbmVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERlY2xhcmF0aW9uIGZyb20gJy4vZGVjbGFyYXRpb24nO1xuaW1wb3J0IHdhcm5PbmNlICAgIGZyb20gJy4vd2Fybi1vbmNlJztcbmltcG9ydCBDb21tZW50ICAgICBmcm9tICcuL2NvbW1lbnQnO1xuaW1wb3J0IE5vZGUgICAgICAgIGZyb20gJy4vbm9kZSc7XG5cbmZ1bmN0aW9uIGNsZWFuU291cmNlKG5vZGVzKSB7XG4gICAgcmV0dXJuIG5vZGVzLm1hcCggaSA9PiB7XG4gICAgICAgIGlmICggaS5ub2RlcyApIGkubm9kZXMgPSBjbGVhblNvdXJjZShpLm5vZGVzKTtcbiAgICAgICAgZGVsZXRlIGkuc291cmNlO1xuICAgICAgICByZXR1cm4gaTtcbiAgICB9KTtcbn1cblxuLyoqXG4gKiBUaGUge0BsaW5rIFJvb3R9LCB7QGxpbmsgQXRSdWxlfSwgYW5kIHtAbGluayBSdWxlfSBjb250YWluZXIgbm9kZXNcbiAqIGluaGVyaXQgc29tZSBjb21tb24gbWV0aG9kcyB0byBoZWxwIHdvcmsgd2l0aCB0aGVpciBjaGlsZHJlbi5cbiAqXG4gKiBOb3RlIHRoYXQgYWxsIGNvbnRhaW5lcnMgY2FuIHN0b3JlIGFueSBjb250ZW50LiBJZiB5b3Ugd3JpdGUgYSBydWxlIGluc2lkZVxuICogYSBydWxlLCBQb3N0Q1NTIHdpbGwgcGFyc2UgaXQuXG4gKlxuICogQGV4dGVuZHMgTm9kZVxuICogQGFic3RyYWN0XG4gKi9cbmNsYXNzIENvbnRhaW5lciBleHRlbmRzIE5vZGUge1xuXG4gICAgcHVzaChjaGlsZCkge1xuICAgICAgICBjaGlsZC5wYXJlbnQgPSB0aGlzO1xuICAgICAgICB0aGlzLm5vZGVzLnB1c2goY2hpbGQpO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBJdGVyYXRlcyB0aHJvdWdoIHRoZSBjb250YWluZXLigJlzIGltbWVkaWF0ZSBjaGlsZHJlbixcbiAgICAgKiBjYWxsaW5nIGBjYWxsYmFja2AgZm9yIGVhY2ggY2hpbGQuXG4gICAgICpcbiAgICAgKiBSZXR1cm5pbmcgYGZhbHNlYCBpbiB0aGUgY2FsbGJhY2sgd2lsbCBicmVhayBpdGVyYXRpb24uXG4gICAgICpcbiAgICAgKiBUaGlzIG1ldGhvZCBvbmx5IGl0ZXJhdGVzIHRocm91Z2ggdGhlIGNvbnRhaW5lcuKAmXMgaW1tZWRpYXRlIGNoaWxkcmVuLlxuICAgICAqIElmIHlvdSBuZWVkIHRvIHJlY3Vyc2l2ZWx5IGl0ZXJhdGUgdGhyb3VnaCBhbGwgdGhlIGNvbnRhaW5lcuKAmXMgZGVzY2VuZGFudFxuICAgICAqIG5vZGVzLCB1c2Uge0BsaW5rIENvbnRhaW5lciN3YWxrfS5cbiAgICAgKlxuICAgICAqIFVubGlrZSB0aGUgZm9yIGB7fWAtY3ljbGUgb3IgYEFycmF5I2ZvckVhY2hgIHRoaXMgaXRlcmF0b3IgaXMgc2FmZVxuICAgICAqIGlmIHlvdSBhcmUgbXV0YXRpbmcgdGhlIGFycmF5IG9mIGNoaWxkIG5vZGVzIGR1cmluZyBpdGVyYXRpb24uXG4gICAgICogUG9zdENTUyB3aWxsIGFkanVzdCB0aGUgY3VycmVudCBpbmRleCB0byBtYXRjaCB0aGUgbXV0YXRpb25zLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtjaGlsZEl0ZXJhdG9yfSBjYWxsYmFjayAtIGl0ZXJhdG9yIHJlY2VpdmVzIGVhY2ggbm9kZSBhbmQgaW5kZXhcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge2ZhbHNlfHVuZGVmaW5lZH0gcmV0dXJucyBgZmFsc2VgIGlmIGl0ZXJhdGlvbiB3YXMgYnJva2VcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoJ2EgeyBjb2xvcjogYmxhY2s7IHotaW5kZXg6IDEgfScpO1xuICAgICAqIGNvbnN0IHJ1bGUgPSByb290LmZpcnN0O1xuICAgICAqXG4gICAgICogZm9yICggbGV0IGRlY2wgb2YgcnVsZS5ub2RlcyApIHtcbiAgICAgKiAgICAgZGVjbC5jbG9uZUJlZm9yZSh7IHByb3A6ICctd2Via2l0LScgKyBkZWNsLnByb3AgfSk7XG4gICAgICogICAgIC8vIEN5Y2xlIHdpbGwgYmUgaW5maW5pdGUsIGJlY2F1c2UgY2xvbmVCZWZvcmUgbW92ZXMgdGhlIGN1cnJlbnQgbm9kZVxuICAgICAqICAgICAvLyB0byB0aGUgbmV4dCBpbmRleFxuICAgICAqIH1cbiAgICAgKlxuICAgICAqIHJ1bGUuZWFjaChkZWNsID0+IHtcbiAgICAgKiAgICAgZGVjbC5jbG9uZUJlZm9yZSh7IHByb3A6ICctd2Via2l0LScgKyBkZWNsLnByb3AgfSk7XG4gICAgICogICAgIC8vIFdpbGwgYmUgZXhlY3V0ZWQgb25seSBmb3IgY29sb3IgYW5kIHotaW5kZXhcbiAgICAgKiB9KTtcbiAgICAgKi9cbiAgICBlYWNoKGNhbGxiYWNrKSB7XG4gICAgICAgIGlmICggIXRoaXMubGFzdEVhY2ggKSB0aGlzLmxhc3RFYWNoID0gMDtcbiAgICAgICAgaWYgKCAhdGhpcy5pbmRleGVzICkgdGhpcy5pbmRleGVzID0geyB9O1xuXG4gICAgICAgIHRoaXMubGFzdEVhY2ggKz0gMTtcbiAgICAgICAgbGV0IGlkID0gdGhpcy5sYXN0RWFjaDtcbiAgICAgICAgdGhpcy5pbmRleGVzW2lkXSA9IDA7XG5cbiAgICAgICAgaWYgKCAhdGhpcy5ub2RlcyApIHJldHVybiB1bmRlZmluZWQ7XG5cbiAgICAgICAgbGV0IGluZGV4LCByZXN1bHQ7XG4gICAgICAgIHdoaWxlICggdGhpcy5pbmRleGVzW2lkXSA8IHRoaXMubm9kZXMubGVuZ3RoICkge1xuICAgICAgICAgICAgaW5kZXggID0gdGhpcy5pbmRleGVzW2lkXTtcbiAgICAgICAgICAgIHJlc3VsdCA9IGNhbGxiYWNrKHRoaXMubm9kZXNbaW5kZXhdLCBpbmRleCk7XG4gICAgICAgICAgICBpZiAoIHJlc3VsdCA9PT0gZmFsc2UgKSBicmVhaztcblxuICAgICAgICAgICAgdGhpcy5pbmRleGVzW2lkXSArPSAxO1xuICAgICAgICB9XG5cbiAgICAgICAgZGVsZXRlIHRoaXMuaW5kZXhlc1tpZF07XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBUcmF2ZXJzZXMgdGhlIGNvbnRhaW5lcuKAmXMgZGVzY2VuZGFudCBub2RlcywgY2FsbGluZyBjYWxsYmFja1xuICAgICAqIGZvciBlYWNoIG5vZGUuXG4gICAgICpcbiAgICAgKiBMaWtlIGNvbnRhaW5lci5lYWNoKCksIHRoaXMgbWV0aG9kIGlzIHNhZmUgdG8gdXNlXG4gICAgICogaWYgeW91IGFyZSBtdXRhdGluZyBhcnJheXMgZHVyaW5nIGl0ZXJhdGlvbi5cbiAgICAgKlxuICAgICAqIElmIHlvdSBvbmx5IG5lZWQgdG8gaXRlcmF0ZSB0aHJvdWdoIHRoZSBjb250YWluZXLigJlzIGltbWVkaWF0ZSBjaGlsZHJlbixcbiAgICAgKiB1c2Uge0BsaW5rIENvbnRhaW5lciNlYWNofS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7Y2hpbGRJdGVyYXRvcn0gY2FsbGJhY2sgLSBpdGVyYXRvciByZWNlaXZlcyBlYWNoIG5vZGUgYW5kIGluZGV4XG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtmYWxzZXx1bmRlZmluZWR9IHJldHVybnMgYGZhbHNlYCBpZiBpdGVyYXRpb24gd2FzIGJyb2tlXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHJvb3Qud2Fsayhub2RlID0+IHtcbiAgICAgKiAgIC8vIFRyYXZlcnNlcyBhbGwgZGVzY2VuZGFudCBub2Rlcy5cbiAgICAgKiB9KTtcbiAgICAgKi9cbiAgICB3YWxrKGNhbGxiYWNrKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmVhY2goIChjaGlsZCwgaSkgPT4ge1xuICAgICAgICAgICAgbGV0IHJlc3VsdCA9IGNhbGxiYWNrKGNoaWxkLCBpKTtcbiAgICAgICAgICAgIGlmICggcmVzdWx0ICE9PSBmYWxzZSAmJiBjaGlsZC53YWxrICkge1xuICAgICAgICAgICAgICAgIHJlc3VsdCA9IGNoaWxkLndhbGsoY2FsbGJhY2spO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogVHJhdmVyc2VzIHRoZSBjb250YWluZXLigJlzIGRlc2NlbmRhbnQgbm9kZXMsIGNhbGxpbmcgY2FsbGJhY2tcbiAgICAgKiBmb3IgZWFjaCBkZWNsYXJhdGlvbiBub2RlLlxuICAgICAqXG4gICAgICogSWYgeW91IHBhc3MgYSBmaWx0ZXIsIGl0ZXJhdGlvbiB3aWxsIG9ubHkgaGFwcGVuIG92ZXIgZGVjbGFyYXRpb25zXG4gICAgICogd2l0aCBtYXRjaGluZyBwcm9wZXJ0aWVzLlxuICAgICAqXG4gICAgICogTGlrZSB7QGxpbmsgQ29udGFpbmVyI2VhY2h9LCB0aGlzIG1ldGhvZCBpcyBzYWZlXG4gICAgICogdG8gdXNlIGlmIHlvdSBhcmUgbXV0YXRpbmcgYXJyYXlzIGR1cmluZyBpdGVyYXRpb24uXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge3N0cmluZ3xSZWdFeHB9IFtwcm9wXSAgIC0gc3RyaW5nIG9yIHJlZ3VsYXIgZXhwcmVzc2lvblxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0byBmaWx0ZXIgZGVjbGFyYXRpb25zIGJ5IHByb3BlcnR5IG5hbWVcbiAgICAgKiBAcGFyYW0ge2NoaWxkSXRlcmF0b3J9IGNhbGxiYWNrIC0gaXRlcmF0b3IgcmVjZWl2ZXMgZWFjaCBub2RlIGFuZCBpbmRleFxuICAgICAqXG4gICAgICogQHJldHVybiB7ZmFsc2V8dW5kZWZpbmVkfSByZXR1cm5zIGBmYWxzZWAgaWYgaXRlcmF0aW9uIHdhcyBicm9rZVxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiByb290LndhbGtEZWNscyhkZWNsID0+IHtcbiAgICAgKiAgIGNoZWNrUHJvcGVydHlTdXBwb3J0KGRlY2wucHJvcCk7XG4gICAgICogfSk7XG4gICAgICpcbiAgICAgKiByb290LndhbGtEZWNscygnYm9yZGVyLXJhZGl1cycsIGRlY2wgPT4ge1xuICAgICAqICAgZGVjbC5yZW1vdmUoKTtcbiAgICAgKiB9KTtcbiAgICAgKlxuICAgICAqIHJvb3Qud2Fsa0RlY2xzKC9eYmFja2dyb3VuZC8sIGRlY2wgPT4ge1xuICAgICAqICAgZGVjbC52YWx1ZSA9IHRha2VGaXJzdENvbG9yRnJvbUdyYWRpZW50KGRlY2wudmFsdWUpO1xuICAgICAqIH0pO1xuICAgICAqL1xuICAgIHdhbGtEZWNscyhwcm9wLCBjYWxsYmFjaykge1xuICAgICAgICBpZiAoICFjYWxsYmFjayApIHtcbiAgICAgICAgICAgIGNhbGxiYWNrID0gcHJvcDtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLndhbGsoIChjaGlsZCwgaSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICggY2hpbGQudHlwZSA9PT0gJ2RlY2wnICkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gY2FsbGJhY2soY2hpbGQsIGkpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2UgaWYgKCBwcm9wIGluc3RhbmNlb2YgUmVnRXhwICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMud2FsayggKGNoaWxkLCBpKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCBjaGlsZC50eXBlID09PSAnZGVjbCcgJiYgcHJvcC50ZXN0KGNoaWxkLnByb3ApICkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gY2FsbGJhY2soY2hpbGQsIGkpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMud2FsayggKGNoaWxkLCBpKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCBjaGlsZC50eXBlID09PSAnZGVjbCcgJiYgY2hpbGQucHJvcCA9PT0gcHJvcCApIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKGNoaWxkLCBpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFRyYXZlcnNlcyB0aGUgY29udGFpbmVy4oCZcyBkZXNjZW5kYW50IG5vZGVzLCBjYWxsaW5nIGNhbGxiYWNrXG4gICAgICogZm9yIGVhY2ggcnVsZSBub2RlLlxuICAgICAqXG4gICAgICogSWYgeW91IHBhc3MgYSBmaWx0ZXIsIGl0ZXJhdGlvbiB3aWxsIG9ubHkgaGFwcGVuIG92ZXIgcnVsZXNcbiAgICAgKiB3aXRoIG1hdGNoaW5nIHNlbGVjdG9ycy5cbiAgICAgKlxuICAgICAqIExpa2Uge0BsaW5rIENvbnRhaW5lciNlYWNofSwgdGhpcyBtZXRob2QgaXMgc2FmZVxuICAgICAqIHRvIHVzZSBpZiB5b3UgYXJlIG11dGF0aW5nIGFycmF5cyBkdXJpbmcgaXRlcmF0aW9uLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtzdHJpbmd8UmVnRXhwfSBbc2VsZWN0b3JdIC0gc3RyaW5nIG9yIHJlZ3VsYXIgZXhwcmVzc2lvblxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvIGZpbHRlciBydWxlcyBieSBzZWxlY3RvclxuICAgICAqIEBwYXJhbSB7Y2hpbGRJdGVyYXRvcn0gY2FsbGJhY2sgICAtIGl0ZXJhdG9yIHJlY2VpdmVzIGVhY2ggbm9kZSBhbmQgaW5kZXhcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge2ZhbHNlfHVuZGVmaW5lZH0gcmV0dXJucyBgZmFsc2VgIGlmIGl0ZXJhdGlvbiB3YXMgYnJva2VcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3Qgc2VsZWN0b3JzID0gW107XG4gICAgICogcm9vdC53YWxrUnVsZXMocnVsZSA9PiB7XG4gICAgICogICBzZWxlY3RvcnMucHVzaChydWxlLnNlbGVjdG9yKTtcbiAgICAgKiB9KTtcbiAgICAgKiBjb25zb2xlLmxvZyhgWW91ciBDU1MgdXNlcyAke3NlbGVjdG9ycy5sZW5ndGh9IHNlbGVjdG9yc2ApO1xuICAgICAqL1xuICAgIHdhbGtSdWxlcyhzZWxlY3RvciwgY2FsbGJhY2spIHtcbiAgICAgICAgaWYgKCAhY2FsbGJhY2sgKSB7XG4gICAgICAgICAgICBjYWxsYmFjayA9IHNlbGVjdG9yO1xuXG4gICAgICAgICAgICByZXR1cm4gdGhpcy53YWxrKCAoY2hpbGQsIGkpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIGNoaWxkLnR5cGUgPT09ICdydWxlJyApIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKGNoaWxkLCBpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIGlmICggc2VsZWN0b3IgaW5zdGFuY2VvZiBSZWdFeHAgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy53YWxrKCAoY2hpbGQsIGkpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIGNoaWxkLnR5cGUgPT09ICdydWxlJyAmJiBzZWxlY3Rvci50ZXN0KGNoaWxkLnNlbGVjdG9yKSApIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKGNoaWxkLCBpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLndhbGsoIChjaGlsZCwgaSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICggY2hpbGQudHlwZSA9PT0gJ3J1bGUnICYmIGNoaWxkLnNlbGVjdG9yID09PSBzZWxlY3RvciApIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKGNoaWxkLCBpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFRyYXZlcnNlcyB0aGUgY29udGFpbmVy4oCZcyBkZXNjZW5kYW50IG5vZGVzLCBjYWxsaW5nIGNhbGxiYWNrXG4gICAgICogZm9yIGVhY2ggYXQtcnVsZSBub2RlLlxuICAgICAqXG4gICAgICogSWYgeW91IHBhc3MgYSBmaWx0ZXIsIGl0ZXJhdGlvbiB3aWxsIG9ubHkgaGFwcGVuIG92ZXIgYXQtcnVsZXNcbiAgICAgKiB0aGF0IGhhdmUgbWF0Y2hpbmcgbmFtZXMuXG4gICAgICpcbiAgICAgKiBMaWtlIHtAbGluayBDb250YWluZXIjZWFjaH0sIHRoaXMgbWV0aG9kIGlzIHNhZmVcbiAgICAgKiB0byB1c2UgaWYgeW91IGFyZSBtdXRhdGluZyBhcnJheXMgZHVyaW5nIGl0ZXJhdGlvbi5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7c3RyaW5nfFJlZ0V4cH0gW25hbWVdICAgLSBzdHJpbmcgb3IgcmVndWxhciBleHByZXNzaW9uXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvIGZpbHRlciBhdC1ydWxlcyBieSBuYW1lXG4gICAgICogQHBhcmFtIHtjaGlsZEl0ZXJhdG9yfSBjYWxsYmFjayAtIGl0ZXJhdG9yIHJlY2VpdmVzIGVhY2ggbm9kZSBhbmQgaW5kZXhcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge2ZhbHNlfHVuZGVmaW5lZH0gcmV0dXJucyBgZmFsc2VgIGlmIGl0ZXJhdGlvbiB3YXMgYnJva2VcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcm9vdC53YWxrQXRSdWxlcyhydWxlID0+IHtcbiAgICAgKiAgIGlmICggaXNPbGQocnVsZS5uYW1lKSApIHJ1bGUucmVtb3ZlKCk7XG4gICAgICogfSk7XG4gICAgICpcbiAgICAgKiBsZXQgZmlyc3QgPSBmYWxzZTtcbiAgICAgKiByb290LndhbGtBdFJ1bGVzKCdjaGFyc2V0JywgcnVsZSA9PiB7XG4gICAgICogICBpZiAoICFmaXJzdCApIHtcbiAgICAgKiAgICAgZmlyc3QgPSB0cnVlO1xuICAgICAqICAgfSBlbHNlIHtcbiAgICAgKiAgICAgcnVsZS5yZW1vdmUoKTtcbiAgICAgKiAgIH1cbiAgICAgKiB9KTtcbiAgICAgKi9cbiAgICB3YWxrQXRSdWxlcyhuYW1lLCBjYWxsYmFjaykge1xuICAgICAgICBpZiAoICFjYWxsYmFjayApIHtcbiAgICAgICAgICAgIGNhbGxiYWNrID0gbmFtZTtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLndhbGsoIChjaGlsZCwgaSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICggY2hpbGQudHlwZSA9PT0gJ2F0cnVsZScgKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBjYWxsYmFjayhjaGlsZCwgaSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0gZWxzZSBpZiAoIG5hbWUgaW5zdGFuY2VvZiBSZWdFeHAgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy53YWxrKCAoY2hpbGQsIGkpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIGNoaWxkLnR5cGUgPT09ICdhdHJ1bGUnICYmIG5hbWUudGVzdChjaGlsZC5uYW1lKSApIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKGNoaWxkLCBpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLndhbGsoIChjaGlsZCwgaSkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICggY2hpbGQudHlwZSA9PT0gJ2F0cnVsZScgJiYgY2hpbGQubmFtZSA9PT0gbmFtZSApIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKGNoaWxkLCBpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFRyYXZlcnNlcyB0aGUgY29udGFpbmVy4oCZcyBkZXNjZW5kYW50IG5vZGVzLCBjYWxsaW5nIGNhbGxiYWNrXG4gICAgICogZm9yIGVhY2ggY29tbWVudCBub2RlLlxuICAgICAqXG4gICAgICogTGlrZSB7QGxpbmsgQ29udGFpbmVyI2VhY2h9LCB0aGlzIG1ldGhvZCBpcyBzYWZlXG4gICAgICogdG8gdXNlIGlmIHlvdSBhcmUgbXV0YXRpbmcgYXJyYXlzIGR1cmluZyBpdGVyYXRpb24uXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge2NoaWxkSXRlcmF0b3J9IGNhbGxiYWNrIC0gaXRlcmF0b3IgcmVjZWl2ZXMgZWFjaCBub2RlIGFuZCBpbmRleFxuICAgICAqXG4gICAgICogQHJldHVybiB7ZmFsc2V8dW5kZWZpbmVkfSByZXR1cm5zIGBmYWxzZWAgaWYgaXRlcmF0aW9uIHdhcyBicm9rZVxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiByb290LndhbGtDb21tZW50cyhjb21tZW50ID0+IHtcbiAgICAgKiAgIGNvbW1lbnQucmVtb3ZlKCk7XG4gICAgICogfSk7XG4gICAgICovXG4gICAgd2Fsa0NvbW1lbnRzKGNhbGxiYWNrKSB7XG4gICAgICAgIHJldHVybiB0aGlzLndhbGsoIChjaGlsZCwgaSkgPT4ge1xuICAgICAgICAgICAgaWYgKCBjaGlsZC50eXBlID09PSAnY29tbWVudCcgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKGNoaWxkLCBpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogSW5zZXJ0cyBuZXcgbm9kZXMgdG8gdGhlIGVuZCBvZiB0aGUgY29udGFpbmVyLlxuICAgICAqXG4gICAgICogQHBhcmFtIHsuLi4oTm9kZXxvYmplY3R8c3RyaW5nfE5vZGVbXSl9IGNoaWxkcmVuIC0gbmV3IG5vZGVzXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfSB0aGlzIG5vZGUgZm9yIG1ldGhvZHMgY2hhaW5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3QgZGVjbDEgPSBwb3N0Y3NzLmRlY2woeyBwcm9wOiAnY29sb3InLCB2YWx1ZTogJ2JsYWNrJyB9KTtcbiAgICAgKiBjb25zdCBkZWNsMiA9IHBvc3Rjc3MuZGVjbCh7IHByb3A6ICdiYWNrZ3JvdW5kLWNvbG9yJywgdmFsdWU6ICd3aGl0ZScgfSk7XG4gICAgICogcnVsZS5hcHBlbmQoZGVjbDEsIGRlY2wyKTtcbiAgICAgKlxuICAgICAqIHJvb3QuYXBwZW5kKHsgbmFtZTogJ2NoYXJzZXQnLCBwYXJhbXM6ICdcIlVURi04XCInIH0pOyAgLy8gYXQtcnVsZVxuICAgICAqIHJvb3QuYXBwZW5kKHsgc2VsZWN0b3I6ICdhJyB9KTsgICAgICAgICAgICAgICAgICAgICAgIC8vIHJ1bGVcbiAgICAgKiBydWxlLmFwcGVuZCh7IHByb3A6ICdjb2xvcicsIHZhbHVlOiAnYmxhY2snIH0pOyAgICAgICAvLyBkZWNsYXJhdGlvblxuICAgICAqIHJ1bGUuYXBwZW5kKHsgdGV4dDogJ0NvbW1lbnQnIH0pICAgICAgICAgICAgICAgICAgICAgIC8vIGNvbW1lbnRcbiAgICAgKlxuICAgICAqIHJvb3QuYXBwZW5kKCdhIHt9Jyk7XG4gICAgICogcm9vdC5maXJzdC5hcHBlbmQoJ2NvbG9yOiBibGFjazsgei1pbmRleDogMScpO1xuICAgICAqL1xuICAgIGFwcGVuZCguLi5jaGlsZHJlbikge1xuICAgICAgICBmb3IgKCBsZXQgY2hpbGQgb2YgY2hpbGRyZW4gKSB7XG4gICAgICAgICAgICBsZXQgbm9kZXMgPSB0aGlzLm5vcm1hbGl6ZShjaGlsZCwgdGhpcy5sYXN0KTtcbiAgICAgICAgICAgIGZvciAoIGxldCBub2RlIG9mIG5vZGVzICkgdGhpcy5ub2Rlcy5wdXNoKG5vZGUpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEluc2VydHMgbmV3IG5vZGVzIHRvIHRoZSBzdGFydCBvZiB0aGUgY29udGFpbmVyLlxuICAgICAqXG4gICAgICogQHBhcmFtIHsuLi4oTm9kZXxvYmplY3R8c3RyaW5nfE5vZGVbXSl9IGNoaWxkcmVuIC0gbmV3IG5vZGVzXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfSB0aGlzIG5vZGUgZm9yIG1ldGhvZHMgY2hhaW5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3QgZGVjbDEgPSBwb3N0Y3NzLmRlY2woeyBwcm9wOiAnY29sb3InLCB2YWx1ZTogJ2JsYWNrJyB9KTtcbiAgICAgKiBjb25zdCBkZWNsMiA9IHBvc3Rjc3MuZGVjbCh7IHByb3A6ICdiYWNrZ3JvdW5kLWNvbG9yJywgdmFsdWU6ICd3aGl0ZScgfSk7XG4gICAgICogcnVsZS5wcmVwZW5kKGRlY2wxLCBkZWNsMik7XG4gICAgICpcbiAgICAgKiByb290LmFwcGVuZCh7IG5hbWU6ICdjaGFyc2V0JywgcGFyYW1zOiAnXCJVVEYtOFwiJyB9KTsgIC8vIGF0LXJ1bGVcbiAgICAgKiByb290LmFwcGVuZCh7IHNlbGVjdG9yOiAnYScgfSk7ICAgICAgICAgICAgICAgICAgICAgICAvLyBydWxlXG4gICAgICogcnVsZS5hcHBlbmQoeyBwcm9wOiAnY29sb3InLCB2YWx1ZTogJ2JsYWNrJyB9KTsgICAgICAgLy8gZGVjbGFyYXRpb25cbiAgICAgKiBydWxlLmFwcGVuZCh7IHRleHQ6ICdDb21tZW50JyB9KSAgICAgICAgICAgICAgICAgICAgICAvLyBjb21tZW50XG4gICAgICpcbiAgICAgKiByb290LmFwcGVuZCgnYSB7fScpO1xuICAgICAqIHJvb3QuZmlyc3QuYXBwZW5kKCdjb2xvcjogYmxhY2s7IHotaW5kZXg6IDEnKTtcbiAgICAgKi9cbiAgICBwcmVwZW5kKC4uLmNoaWxkcmVuKSB7XG4gICAgICAgIGNoaWxkcmVuID0gY2hpbGRyZW4ucmV2ZXJzZSgpO1xuICAgICAgICBmb3IgKCBsZXQgY2hpbGQgb2YgY2hpbGRyZW4gKSB7XG4gICAgICAgICAgICBsZXQgbm9kZXMgPSB0aGlzLm5vcm1hbGl6ZShjaGlsZCwgdGhpcy5maXJzdCwgJ3ByZXBlbmQnKS5yZXZlcnNlKCk7XG4gICAgICAgICAgICBmb3IgKCBsZXQgbm9kZSBvZiBub2RlcyApIHRoaXMubm9kZXMudW5zaGlmdChub2RlKTtcbiAgICAgICAgICAgIGZvciAoIGxldCBpZCBpbiB0aGlzLmluZGV4ZXMgKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5pbmRleGVzW2lkXSA9IHRoaXMuaW5kZXhlc1tpZF0gKyBub2Rlcy5sZW5ndGg7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgY2xlYW5SYXdzKGtlZXBCZXR3ZWVuKSB7XG4gICAgICAgIHN1cGVyLmNsZWFuUmF3cyhrZWVwQmV0d2Vlbik7XG4gICAgICAgIGlmICggdGhpcy5ub2RlcyApIHtcbiAgICAgICAgICAgIGZvciAoIGxldCBub2RlIG9mIHRoaXMubm9kZXMgKSBub2RlLmNsZWFuUmF3cyhrZWVwQmV0d2Vlbik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBJbnNlcnQgbmV3IG5vZGUgYmVmb3JlIG9sZCBub2RlIHdpdGhpbiB0aGUgY29udGFpbmVyLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtOb2RlfG51bWJlcn0gZXhpc3QgICAgICAgICAgICAgLSBjaGlsZCBvciBjaGlsZOKAmXMgaW5kZXguXG4gICAgICogQHBhcmFtIHtOb2RlfG9iamVjdHxzdHJpbmd8Tm9kZVtdfSBhZGQgLSBuZXcgbm9kZVxuICAgICAqXG4gICAgICogQHJldHVybiB7Tm9kZX0gdGhpcyBub2RlIGZvciBtZXRob2RzIGNoYWluXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHJ1bGUuaW5zZXJ0QmVmb3JlKGRlY2wsIGRlY2wuY2xvbmUoeyBwcm9wOiAnLXdlYmtpdC0nICsgZGVjbC5wcm9wIH0pKTtcbiAgICAgKi9cbiAgICBpbnNlcnRCZWZvcmUoZXhpc3QsIGFkZCkge1xuICAgICAgICBleGlzdCA9IHRoaXMuaW5kZXgoZXhpc3QpO1xuXG4gICAgICAgIGxldCB0eXBlICA9IGV4aXN0ID09PSAwID8gJ3ByZXBlbmQnIDogZmFsc2U7XG4gICAgICAgIGxldCBub2RlcyA9IHRoaXMubm9ybWFsaXplKGFkZCwgdGhpcy5ub2Rlc1tleGlzdF0sIHR5cGUpLnJldmVyc2UoKTtcbiAgICAgICAgZm9yICggbGV0IG5vZGUgb2Ygbm9kZXMgKSB0aGlzLm5vZGVzLnNwbGljZShleGlzdCwgMCwgbm9kZSk7XG5cbiAgICAgICAgbGV0IGluZGV4O1xuICAgICAgICBmb3IgKCBsZXQgaWQgaW4gdGhpcy5pbmRleGVzICkge1xuICAgICAgICAgICAgaW5kZXggPSB0aGlzLmluZGV4ZXNbaWRdO1xuICAgICAgICAgICAgaWYgKCBleGlzdCA8PSBpbmRleCApIHtcbiAgICAgICAgICAgICAgICB0aGlzLmluZGV4ZXNbaWRdID0gaW5kZXggKyBub2Rlcy5sZW5ndGg7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBJbnNlcnQgbmV3IG5vZGUgYWZ0ZXIgb2xkIG5vZGUgd2l0aGluIHRoZSBjb250YWluZXIuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge05vZGV8bnVtYmVyfSBleGlzdCAgICAgICAgICAgICAtIGNoaWxkIG9yIGNoaWxk4oCZcyBpbmRleFxuICAgICAqIEBwYXJhbSB7Tm9kZXxvYmplY3R8c3RyaW5nfE5vZGVbXX0gYWRkIC0gbmV3IG5vZGVcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge05vZGV9IHRoaXMgbm9kZSBmb3IgbWV0aG9kcyBjaGFpblxuICAgICAqL1xuICAgIGluc2VydEFmdGVyKGV4aXN0LCBhZGQpIHtcbiAgICAgICAgZXhpc3QgPSB0aGlzLmluZGV4KGV4aXN0KTtcblxuICAgICAgICBsZXQgbm9kZXMgPSB0aGlzLm5vcm1hbGl6ZShhZGQsIHRoaXMubm9kZXNbZXhpc3RdKS5yZXZlcnNlKCk7XG4gICAgICAgIGZvciAoIGxldCBub2RlIG9mIG5vZGVzICkgdGhpcy5ub2Rlcy5zcGxpY2UoZXhpc3QgKyAxLCAwLCBub2RlKTtcblxuICAgICAgICBsZXQgaW5kZXg7XG4gICAgICAgIGZvciAoIGxldCBpZCBpbiB0aGlzLmluZGV4ZXMgKSB7XG4gICAgICAgICAgICBpbmRleCA9IHRoaXMuaW5kZXhlc1tpZF07XG4gICAgICAgICAgICBpZiAoIGV4aXN0IDwgaW5kZXggKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5pbmRleGVzW2lkXSA9IGluZGV4ICsgbm9kZXMubGVuZ3RoO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgcmVtb3ZlKGNoaWxkKSB7XG4gICAgICAgIGlmICggdHlwZW9mIGNoaWxkICE9PSAndW5kZWZpbmVkJyApIHtcbiAgICAgICAgICAgIHdhcm5PbmNlKCdDb250YWluZXIjcmVtb3ZlIGlzIGRlcHJlY2F0ZWQuICcgK1xuICAgICAgICAgICAgICAgICAgICAgJ1VzZSBDb250YWluZXIjcmVtb3ZlQ2hpbGQnKTtcbiAgICAgICAgICAgIHRoaXMucmVtb3ZlQ2hpbGQoY2hpbGQpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgc3VwZXIucmVtb3ZlKCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmVtb3ZlcyBub2RlIGZyb20gdGhlIGNvbnRhaW5lciBhbmQgY2xlYW5zIHRoZSBwYXJlbnQgcHJvcGVydGllc1xuICAgICAqIGZyb20gdGhlIG5vZGUgYW5kIGl0cyBjaGlsZHJlbi5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7Tm9kZXxudW1iZXJ9IGNoaWxkIC0gY2hpbGQgb3IgY2hpbGTigJlzIGluZGV4XG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfSB0aGlzIG5vZGUgZm9yIG1ldGhvZHMgY2hhaW5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcnVsZS5ub2Rlcy5sZW5ndGggIC8vPT4gNVxuICAgICAqIHJ1bGUucmVtb3ZlQ2hpbGQoZGVjbCk7XG4gICAgICogcnVsZS5ub2Rlcy5sZW5ndGggIC8vPT4gNFxuICAgICAqIGRlY2wucGFyZW50ICAgICAgICAvLz0+IHVuZGVmaW5lZFxuICAgICAqL1xuICAgIHJlbW92ZUNoaWxkKGNoaWxkKSB7XG4gICAgICAgIGNoaWxkID0gdGhpcy5pbmRleChjaGlsZCk7XG4gICAgICAgIHRoaXMubm9kZXNbY2hpbGRdLnBhcmVudCA9IHVuZGVmaW5lZDtcbiAgICAgICAgdGhpcy5ub2Rlcy5zcGxpY2UoY2hpbGQsIDEpO1xuXG4gICAgICAgIGxldCBpbmRleDtcbiAgICAgICAgZm9yICggbGV0IGlkIGluIHRoaXMuaW5kZXhlcyApIHtcbiAgICAgICAgICAgIGluZGV4ID0gdGhpcy5pbmRleGVzW2lkXTtcbiAgICAgICAgICAgIGlmICggaW5kZXggPj0gY2hpbGQgKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5pbmRleGVzW2lkXSA9IGluZGV4IC0gMTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJlbW92ZXMgYWxsIGNoaWxkcmVuIGZyb20gdGhlIGNvbnRhaW5lclxuICAgICAqIGFuZCBjbGVhbnMgdGhlaXIgcGFyZW50IHByb3BlcnRpZXMuXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfSB0aGlzIG5vZGUgZm9yIG1ldGhvZHMgY2hhaW5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcnVsZS5yZW1vdmVBbGwoKTtcbiAgICAgKiBydWxlLm5vZGVzLmxlbmd0aCAvLz0+IDBcbiAgICAgKi9cbiAgICByZW1vdmVBbGwoKSB7XG4gICAgICAgIGZvciAoIGxldCBub2RlIG9mIHRoaXMubm9kZXMgKSBub2RlLnBhcmVudCA9IHVuZGVmaW5lZDtcbiAgICAgICAgdGhpcy5ub2RlcyA9IFtdO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBQYXNzZXMgYWxsIGRlY2xhcmF0aW9uIHZhbHVlcyB3aXRoaW4gdGhlIGNvbnRhaW5lciB0aGF0IG1hdGNoIHBhdHRlcm5cbiAgICAgKiB0aHJvdWdoIGNhbGxiYWNrLCByZXBsYWNpbmcgdGhvc2UgdmFsdWVzIHdpdGggdGhlIHJldHVybmVkIHJlc3VsdFxuICAgICAqIG9mIGNhbGxiYWNrLlxuICAgICAqXG4gICAgICogVGhpcyBtZXRob2QgaXMgdXNlZnVsIGlmIHlvdSBhcmUgdXNpbmcgYSBjdXN0b20gdW5pdCBvciBmdW5jdGlvblxuICAgICAqIGFuZCBuZWVkIHRvIGl0ZXJhdGUgdGhyb3VnaCBhbGwgdmFsdWVzLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtzdHJpbmd8UmVnRXhwfSBwYXR0ZXJuICAgICAgLSByZXBsYWNlIHBhdHRlcm5cbiAgICAgKiBAcGFyYW0ge29iamVjdH0gb3B0cyAgICAgICAgICAgICAgICAtIG9wdGlvbnMgdG8gc3BlZWQgdXAgdGhlIHNlYXJjaFxuICAgICAqIEBwYXJhbSB7c3RyaW5nfHN0cmluZ1tdfSBvcHRzLnByb3BzIC0gYW4gYXJyYXkgb2YgcHJvcGVydHkgbmFtZXNcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gb3B0cy5mYXN0ICAgICAgICAgICAtIHN0cmluZyB0aGF04oCZcyB1c2VkXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0byBuYXJyb3cgZG93biB2YWx1ZXMgYW5kIHNwZWVkIHVwXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGUgcmVnZXhwIHNlYXJjaFxuICAgICAqIEBwYXJhbSB7ZnVuY3Rpb258c3RyaW5nfSBjYWxsYmFjayAgIC0gc3RyaW5nIHRvIHJlcGxhY2UgcGF0dGVyblxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3IgY2FsbGJhY2sgdGhhdCByZXR1cm5zIGEgbmV3XG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZS5cbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFRoZSBjYWxsYmFjayB3aWxsIHJlY2VpdmVcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZSBzYW1lIGFyZ3VtZW50cyBhcyB0aG9zZVxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFzc2VkIHRvIGEgZnVuY3Rpb24gcGFyYW1ldGVyXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvZiBgU3RyaW5nI3JlcGxhY2VgLlxuICAgICAqXG4gICAgICogQHJldHVybiB7Tm9kZX0gdGhpcyBub2RlIGZvciBtZXRob2RzIGNoYWluXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHJvb3QucmVwbGFjZVZhbHVlcygvXFxkK3JlbS8sIHsgZmFzdDogJ3JlbScgfSwgc3RyaW5nID0+IHtcbiAgICAgKiAgIHJldHVybiAxNSAqIHBhcnNlSW50KHN0cmluZykgKyAncHgnO1xuICAgICAqIH0pO1xuICAgICAqL1xuICAgIHJlcGxhY2VWYWx1ZXMocGF0dGVybiwgb3B0cywgY2FsbGJhY2spIHtcbiAgICAgICAgaWYgKCAhY2FsbGJhY2sgKSB7XG4gICAgICAgICAgICBjYWxsYmFjayA9IG9wdHM7XG4gICAgICAgICAgICBvcHRzID0geyB9O1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy53YWxrRGVjbHMoIGRlY2wgPT4ge1xuICAgICAgICAgICAgaWYgKCBvcHRzLnByb3BzICYmIG9wdHMucHJvcHMuaW5kZXhPZihkZWNsLnByb3ApID09PSAtMSApIHJldHVybjtcbiAgICAgICAgICAgIGlmICggb3B0cy5mYXN0ICAmJiBkZWNsLnZhbHVlLmluZGV4T2Yob3B0cy5mYXN0KSA9PT0gLTEgKSByZXR1cm47XG5cbiAgICAgICAgICAgIGRlY2wudmFsdWUgPSBkZWNsLnZhbHVlLnJlcGxhY2UocGF0dGVybiwgY2FsbGJhY2spO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIGB0cnVlYCBpZiBjYWxsYmFjayByZXR1cm5zIGB0cnVlYFxuICAgICAqIGZvciBhbGwgb2YgdGhlIGNvbnRhaW5lcuKAmXMgY2hpbGRyZW4uXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge2NoaWxkQ29uZGl0aW9ufSBjb25kaXRpb24gLSBpdGVyYXRvciByZXR1cm5zIHRydWUgb3IgZmFsc2UuXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtib29sZWFufSBpcyBldmVyeSBjaGlsZCBwYXNzIGNvbmRpdGlvblxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBjb25zdCBub1ByZWZpeGVzID0gcnVsZS5ldmVyeShpID0+IGkucHJvcFswXSAhPT0gJy0nKTtcbiAgICAgKi9cbiAgICBldmVyeShjb25kaXRpb24pIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubm9kZXMuZXZlcnkoY29uZGl0aW9uKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIGB0cnVlYCBpZiBjYWxsYmFjayByZXR1cm5zIGB0cnVlYCBmb3IgKGF0IGxlYXN0KSBvbmVcbiAgICAgKiBvZiB0aGUgY29udGFpbmVy4oCZcyBjaGlsZHJlbi5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7Y2hpbGRDb25kaXRpb259IGNvbmRpdGlvbiAtIGl0ZXJhdG9yIHJldHVybnMgdHJ1ZSBvciBmYWxzZS5cbiAgICAgKlxuICAgICAqIEByZXR1cm4ge2Jvb2xlYW59IGlzIHNvbWUgY2hpbGQgcGFzcyBjb25kaXRpb25cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3QgaGFzUHJlZml4ID0gcnVsZS5zb21lKGkgPT4gaS5wcm9wWzBdID09PSAnLScpO1xuICAgICAqL1xuICAgIHNvbWUoY29uZGl0aW9uKSB7XG4gICAgICAgIHJldHVybiB0aGlzLm5vZGVzLnNvbWUoY29uZGl0aW9uKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIGEgYGNoaWxkYOKAmXMgaW5kZXggd2l0aGluIHRoZSB7QGxpbmsgQ29udGFpbmVyI25vZGVzfSBhcnJheS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7Tm9kZX0gY2hpbGQgLSBjaGlsZCBvZiB0aGUgY3VycmVudCBjb250YWluZXIuXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtudW1iZXJ9IGNoaWxkIGluZGV4XG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHJ1bGUuaW5kZXgoIHJ1bGUubm9kZXNbMl0gKSAvLz0+IDJcbiAgICAgKi9cbiAgICBpbmRleChjaGlsZCkge1xuICAgICAgICBpZiAoIHR5cGVvZiBjaGlsZCA9PT0gJ251bWJlcicgKSB7XG4gICAgICAgICAgICByZXR1cm4gY2hpbGQ7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5ub2Rlcy5pbmRleE9mKGNoaWxkKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFRoZSBjb250YWluZXLigJlzIGZpcnN0IGNoaWxkLlxuICAgICAqXG4gICAgICogQHR5cGUge05vZGV9XG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHJ1bGUuZmlyc3QgPT0gcnVsZXMubm9kZXNbMF07XG4gICAgICovXG4gICAgZ2V0IGZpcnN0KCkge1xuICAgICAgICBpZiAoICF0aGlzLm5vZGVzICkgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgcmV0dXJuIHRoaXMubm9kZXNbMF07XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogVGhlIGNvbnRhaW5lcuKAmXMgbGFzdCBjaGlsZC5cbiAgICAgKlxuICAgICAqIEB0eXBlIHtOb2RlfVxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBydWxlLmxhc3QgPT0gcnVsZS5ub2Rlc1tydWxlLm5vZGVzLmxlbmd0aCAtIDFdO1xuICAgICAqL1xuICAgIGdldCBsYXN0KCkge1xuICAgICAgICBpZiAoICF0aGlzLm5vZGVzICkgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgICAgcmV0dXJuIHRoaXMubm9kZXNbdGhpcy5ub2Rlcy5sZW5ndGggLSAxXTtcbiAgICB9XG5cbiAgICBub3JtYWxpemUobm9kZXMsIHNhbXBsZSkge1xuICAgICAgICBpZiAoIHR5cGVvZiBub2RlcyA9PT0gJ3N0cmluZycgKSB7XG4gICAgICAgICAgICBsZXQgcGFyc2UgPSByZXF1aXJlKCcuL3BhcnNlJyk7XG4gICAgICAgICAgICBub2RlcyA9IGNsZWFuU291cmNlKHBhcnNlKG5vZGVzKS5ub2Rlcyk7XG4gICAgICAgIH0gZWxzZSBpZiAoICFBcnJheS5pc0FycmF5KG5vZGVzKSApIHtcbiAgICAgICAgICAgIGlmICggbm9kZXMudHlwZSA9PT0gJ3Jvb3QnICkge1xuICAgICAgICAgICAgICAgIG5vZGVzID0gbm9kZXMubm9kZXM7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCBub2Rlcy50eXBlICkge1xuICAgICAgICAgICAgICAgIG5vZGVzID0gW25vZGVzXTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIG5vZGVzLnByb3AgKSB7XG4gICAgICAgICAgICAgICAgaWYgKCB0eXBlb2Ygbm9kZXMudmFsdWUgPT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1ZhbHVlIGZpZWxkIGlzIG1pc3NlZCBpbiBub2RlIGNyZWF0aW9uJyk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmICggdHlwZW9mIG5vZGVzLnZhbHVlICE9PSAnc3RyaW5nJyApIHtcbiAgICAgICAgICAgICAgICAgICAgbm9kZXMudmFsdWUgPSBTdHJpbmcobm9kZXMudmFsdWUpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBub2RlcyA9IFtuZXcgRGVjbGFyYXRpb24obm9kZXMpXTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIG5vZGVzLnNlbGVjdG9yICkge1xuICAgICAgICAgICAgICAgIGxldCBSdWxlID0gcmVxdWlyZSgnLi9ydWxlJyk7XG4gICAgICAgICAgICAgICAgbm9kZXMgPSBbbmV3IFJ1bGUobm9kZXMpXTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIG5vZGVzLm5hbWUgKSB7XG4gICAgICAgICAgICAgICAgbGV0IEF0UnVsZSA9IHJlcXVpcmUoJy4vYXQtcnVsZScpO1xuICAgICAgICAgICAgICAgIG5vZGVzID0gW25ldyBBdFJ1bGUobm9kZXMpXTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIG5vZGVzLnRleHQgKSB7XG4gICAgICAgICAgICAgICAgbm9kZXMgPSBbbmV3IENvbW1lbnQobm9kZXMpXTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdVbmtub3duIG5vZGUgdHlwZSBpbiBub2RlIGNyZWF0aW9uJyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgcHJvY2Vzc2VkID0gbm9kZXMubWFwKCBpID0+IHtcbiAgICAgICAgICAgIGlmICggdHlwZW9mIGkucmF3cyA9PT0gJ3VuZGVmaW5lZCcgKSBpID0gdGhpcy5yZWJ1aWxkKGkpO1xuXG4gICAgICAgICAgICBpZiAoIGkucGFyZW50ICkgaSA9IGkuY2xvbmUoKTtcbiAgICAgICAgICAgIGlmICggdHlwZW9mIGkucmF3cy5iZWZvcmUgPT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgICAgIGlmICggc2FtcGxlICYmIHR5cGVvZiBzYW1wbGUucmF3cy5iZWZvcmUgIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgICAgICAgICBpLnJhd3MuYmVmb3JlID0gc2FtcGxlLnJhd3MuYmVmb3JlLnJlcGxhY2UoL1teXFxzXS9nLCAnJyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaS5wYXJlbnQgPSB0aGlzO1xuICAgICAgICAgICAgcmV0dXJuIGk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHJldHVybiBwcm9jZXNzZWQ7XG4gICAgfVxuXG4gICAgcmVidWlsZChub2RlLCBwYXJlbnQpIHtcbiAgICAgICAgbGV0IGZpeDtcbiAgICAgICAgaWYgKCBub2RlLnR5cGUgPT09ICdyb290JyApIHtcbiAgICAgICAgICAgIGxldCBSb290ID0gcmVxdWlyZSgnLi9yb290Jyk7XG4gICAgICAgICAgICBmaXggPSBuZXcgUm9vdCgpO1xuICAgICAgICB9IGVsc2UgaWYgKCBub2RlLnR5cGUgPT09ICdhdHJ1bGUnICkge1xuICAgICAgICAgICAgbGV0IEF0UnVsZSA9IHJlcXVpcmUoJy4vYXQtcnVsZScpO1xuICAgICAgICAgICAgZml4ID0gbmV3IEF0UnVsZSgpO1xuICAgICAgICB9IGVsc2UgaWYgKCBub2RlLnR5cGUgPT09ICdydWxlJyApIHtcbiAgICAgICAgICAgIGxldCBSdWxlID0gcmVxdWlyZSgnLi9ydWxlJyk7XG4gICAgICAgICAgICBmaXggPSBuZXcgUnVsZSgpO1xuICAgICAgICB9IGVsc2UgaWYgKCBub2RlLnR5cGUgPT09ICdkZWNsJyApIHtcbiAgICAgICAgICAgIGZpeCA9IG5ldyBEZWNsYXJhdGlvbigpO1xuICAgICAgICB9IGVsc2UgaWYgKCBub2RlLnR5cGUgPT09ICdjb21tZW50JyApIHtcbiAgICAgICAgICAgIGZpeCA9IG5ldyBDb21tZW50KCk7XG4gICAgICAgIH1cblxuICAgICAgICBmb3IgKCBsZXQgaSBpbiBub2RlICkge1xuICAgICAgICAgICAgaWYgKCBpID09PSAnbm9kZXMnICkge1xuICAgICAgICAgICAgICAgIGZpeC5ub2RlcyA9IG5vZGUubm9kZXMubWFwKCBqID0+IHRoaXMucmVidWlsZChqLCBmaXgpICk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCBpID09PSAncGFyZW50JyAmJiBwYXJlbnQgKSB7XG4gICAgICAgICAgICAgICAgZml4LnBhcmVudCA9IHBhcmVudDtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIG5vZGUuaGFzT3duUHJvcGVydHkoaSkgKSB7XG4gICAgICAgICAgICAgICAgZml4W2ldID0gbm9kZVtpXTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBmaXg7XG4gICAgfVxuXG4gICAgZWFjaEluc2lkZShjYWxsYmFjaykge1xuICAgICAgICB3YXJuT25jZSgnQ29udGFpbmVyI2VhY2hJbnNpZGUgaXMgZGVwcmVjYXRlZC4gJyArXG4gICAgICAgICAgICAgICAgICdVc2UgQ29udGFpbmVyI3dhbGsgaW5zdGVhZC4nKTtcbiAgICAgICAgcmV0dXJuIHRoaXMud2FsayhjYWxsYmFjayk7XG4gICAgfVxuXG4gICAgZWFjaERlY2wocHJvcCwgY2FsbGJhY2spIHtcbiAgICAgICAgd2Fybk9uY2UoJ0NvbnRhaW5lciNlYWNoRGVjbCBpcyBkZXByZWNhdGVkLiAnICtcbiAgICAgICAgICAgICAgICAgJ1VzZSBDb250YWluZXIjd2Fsa0RlY2xzIGluc3RlYWQuJyk7XG4gICAgICAgIHJldHVybiB0aGlzLndhbGtEZWNscyhwcm9wLCBjYWxsYmFjayk7XG4gICAgfVxuXG4gICAgZWFjaFJ1bGUoc2VsZWN0b3IsIGNhbGxiYWNrKSB7XG4gICAgICAgIHdhcm5PbmNlKCdDb250YWluZXIjZWFjaFJ1bGUgaXMgZGVwcmVjYXRlZC4gJyArXG4gICAgICAgICAgICAgICAgICdVc2UgQ29udGFpbmVyI3dhbGtSdWxlcyBpbnN0ZWFkLicpO1xuICAgICAgICByZXR1cm4gdGhpcy53YWxrUnVsZXMoc2VsZWN0b3IsIGNhbGxiYWNrKTtcbiAgICB9XG5cbiAgICBlYWNoQXRSdWxlKG5hbWUsIGNhbGxiYWNrKSB7XG4gICAgICAgIHdhcm5PbmNlKCdDb250YWluZXIjZWFjaEF0UnVsZSBpcyBkZXByZWNhdGVkLiAnICtcbiAgICAgICAgICAgICAgICAgJ1VzZSBDb250YWluZXIjd2Fsa0F0UnVsZXMgaW5zdGVhZC4nKTtcbiAgICAgICAgcmV0dXJuIHRoaXMud2Fsa0F0UnVsZXMobmFtZSwgY2FsbGJhY2spO1xuICAgIH1cblxuICAgIGVhY2hDb21tZW50KGNhbGxiYWNrKSB7XG4gICAgICAgIHdhcm5PbmNlKCdDb250YWluZXIjZWFjaENvbW1lbnQgaXMgZGVwcmVjYXRlZC4gJyArXG4gICAgICAgICAgICAgICAgICdVc2UgQ29udGFpbmVyI3dhbGtDb21tZW50cyBpbnN0ZWFkLicpO1xuICAgICAgICByZXR1cm4gdGhpcy53YWxrQ29tbWVudHMoY2FsbGJhY2spO1xuICAgIH1cblxuICAgIGdldCBzZW1pY29sb24oKSB7XG4gICAgICAgIHdhcm5PbmNlKCdOb2RlI3NlbWljb2xvbiBpcyBkZXByZWNhdGVkLiBVc2UgTm9kZSNyYXdzLnNlbWljb2xvbicpO1xuICAgICAgICByZXR1cm4gdGhpcy5yYXdzLnNlbWljb2xvbjtcbiAgICB9XG5cbiAgICBzZXQgc2VtaWNvbG9uKHZhbCkge1xuICAgICAgICB3YXJuT25jZSgnTm9kZSNzZW1pY29sb24gaXMgZGVwcmVjYXRlZC4gVXNlIE5vZGUjcmF3cy5zZW1pY29sb24nKTtcbiAgICAgICAgdGhpcy5yYXdzLnNlbWljb2xvbiA9IHZhbDtcbiAgICB9XG5cbiAgICBnZXQgYWZ0ZXIoKSB7XG4gICAgICAgIHdhcm5PbmNlKCdOb2RlI2FmdGVyIGlzIGRlcHJlY2F0ZWQuIFVzZSBOb2RlI3Jhd3MuYWZ0ZXInKTtcbiAgICAgICAgcmV0dXJuIHRoaXMucmF3cy5hZnRlcjtcbiAgICB9XG5cbiAgICBzZXQgYWZ0ZXIodmFsKSB7XG4gICAgICAgIHdhcm5PbmNlKCdOb2RlI2FmdGVyIGlzIGRlcHJlY2F0ZWQuIFVzZSBOb2RlI3Jhd3MuYWZ0ZXInKTtcbiAgICAgICAgdGhpcy5yYXdzLmFmdGVyID0gdmFsO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEBtZW1iZXJvZiBDb250YWluZXIjXG4gICAgICogQG1lbWJlciB7Tm9kZVtdfSBub2RlcyAtIGFuIGFycmF5IGNvbnRhaW5pbmcgdGhlIGNvbnRhaW5lcuKAmXMgY2hpbGRyZW5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoJ2EgeyBjb2xvcjogYmxhY2sgfScpO1xuICAgICAqIHJvb3Qubm9kZXMubGVuZ3RoICAgICAgICAgICAvLz0+IDFcbiAgICAgKiByb290Lm5vZGVzWzBdLnNlbGVjdG9yICAgICAgLy89PiAnYSdcbiAgICAgKiByb290Lm5vZGVzWzBdLm5vZGVzWzBdLnByb3AgLy89PiAnY29sb3InXG4gICAgICovXG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ29udGFpbmVyO1xuXG5cbi8qKlxuICogQGNhbGxiYWNrIGNoaWxkQ29uZGl0aW9uXG4gKiBAcGFyYW0ge05vZGV9IG5vZGUgICAgLSBjb250YWluZXIgY2hpbGRcbiAqIEBwYXJhbSB7bnVtYmVyfSBpbmRleCAtIGNoaWxkIGluZGV4XG4gKiBAcGFyYW0ge05vZGVbXX0gbm9kZXMgLSBhbGwgY29udGFpbmVyIGNoaWxkcmVuXG4gKiBAcmV0dXJuIHtib29sZWFufVxuICovXG5cbi8qKlxuICogQGNhbGxiYWNrIGNoaWxkSXRlcmF0b3JcbiAqIEBwYXJhbSB7Tm9kZX0gbm9kZSAgICAtIGNvbnRhaW5lciBjaGlsZFxuICogQHBhcmFtIHtudW1iZXJ9IGluZGV4IC0gY2hpbGQgaW5kZXhcbiAqIEByZXR1cm4ge2ZhbHNlfHVuZGVmaW5lZH0gcmV0dXJuaW5nIGBmYWxzZWAgd2lsbCBicmVhayBpdGVyYXRpb25cbiAqL1xuIl19 diff --git a/node_modules/postcss/lib/css-syntax-error.js b/node_modules/postcss/lib/css-syntax-error.js deleted file mode 100644 index d2ea798..0000000 --- a/node_modules/postcss/lib/css-syntax-error.js +++ /dev/null @@ -1,272 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _supportsColor = require('supports-color'); - -var _supportsColor2 = _interopRequireDefault(_supportsColor); - -var _chalk = require('chalk'); - -var _chalk2 = _interopRequireDefault(_chalk); - -var _terminalHighlight = require('./terminal-highlight'); - -var _terminalHighlight2 = _interopRequireDefault(_terminalHighlight); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * The CSS parser throws this error for broken CSS. - * - * Custom parsers can throw this error for broken custom syntax using - * the {@link Node#error} method. - * - * PostCSS will use the input source map to detect the original error location. - * If you wrote a Sass file, compiled it to CSS and then parsed it with PostCSS, - * PostCSS will show the original position in the Sass file. - * - * If you need the position in the PostCSS input - * (e.g., to debug the previous compiler), use `error.input.file`. - * - * @example - * // Catching and checking syntax error - * try { - * postcss.parse('a{') - * } catch (error) { - * if ( error.name === 'CssSyntaxError' ) { - * error //=> CssSyntaxError - * } - * } - * - * @example - * // Raising error from plugin - * throw node.error('Unknown variable', { plugin: 'postcss-vars' }); - */ -var CssSyntaxError = function () { - - /** - * @param {string} message - error message - * @param {number} [line] - source line of the error - * @param {number} [column] - source column of the error - * @param {string} [source] - source code of the broken file - * @param {string} [file] - absolute path to the broken file - * @param {string} [plugin] - PostCSS plugin name, if error came from plugin - */ - function CssSyntaxError(message, line, column, source, file, plugin) { - _classCallCheck(this, CssSyntaxError); - - /** - * @member {string} - Always equal to `'CssSyntaxError'`. You should - * always check error type - * by `error.name === 'CssSyntaxError'` instead of - * `error instanceof CssSyntaxError`, because - * npm could have several PostCSS versions. - * - * @example - * if ( error.name === 'CssSyntaxError' ) { - * error //=> CssSyntaxError - * } - */ - this.name = 'CssSyntaxError'; - /** - * @member {string} - Error message. - * - * @example - * error.message //=> 'Unclosed block' - */ - this.reason = message; - - if (file) { - /** - * @member {string} - Absolute path to the broken file. - * - * @example - * error.file //=> 'a.sass' - * error.input.file //=> 'a.css' - */ - this.file = file; - } - if (source) { - /** - * @member {string} - Source code of the broken file. - * - * @example - * error.source //=> 'a { b {} }' - * error.input.column //=> 'a b { }' - */ - this.source = source; - } - if (plugin) { - /** - * @member {string} - Plugin name, if error came from plugin. - * - * @example - * error.plugin //=> 'postcss-vars' - */ - this.plugin = plugin; - } - if (typeof line !== 'undefined' && typeof column !== 'undefined') { - /** - * @member {number} - Source line of the error. - * - * @example - * error.line //=> 2 - * error.input.line //=> 4 - */ - this.line = line; - /** - * @member {number} - Source column of the error. - * - * @example - * error.column //=> 1 - * error.input.column //=> 4 - */ - this.column = column; - } - - this.setMessage(); - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, CssSyntaxError); - } - } - - CssSyntaxError.prototype.setMessage = function setMessage() { - /** - * @member {string} - Full error text in the GNU error format - * with plugin, file, line and column. - * - * @example - * error.message //=> 'a.css:1:1: Unclosed block' - */ - this.message = this.plugin ? this.plugin + ': ' : ''; - this.message += this.file ? this.file : ''; - if (typeof this.line !== 'undefined') { - this.message += ':' + this.line + ':' + this.column; - } - this.message += ': ' + this.reason; - }; - - /** - * Returns a few lines of CSS source that caused the error. - * - * If the CSS has an input source map without `sourceContent`, - * this method will return an empty string. - * - * @param {boolean} [color] whether arrow will be colored red by terminal - * color codes. By default, PostCSS will detect - * color support by `process.stdout.isTTY` - * and `process.env.NODE_DISABLE_COLORS`. - * - * @example - * error.showSourceCode() //=> " 4 | } - * // 5 | a { - * // > 6 | bad - * // | ^ - * // 7 | } - * // 8 | b {" - * - * @return {string} few lines of CSS source that caused the error - */ - - - CssSyntaxError.prototype.showSourceCode = function showSourceCode(color) { - var _this = this; - - if (!this.source) return ''; - - var css = this.source; - if (typeof color === 'undefined') color = _supportsColor2.default; - if (color) css = (0, _terminalHighlight2.default)(css); - - var lines = css.split(/\r?\n/); - var start = Math.max(this.line - 3, 0); - var end = Math.min(this.line + 2, lines.length); - - var maxWidth = String(end).length; - var colors = new _chalk2.default.constructor({ enabled: true }); - - function mark(text) { - if (color) { - return colors.red.bold(text); - } else { - return text; - } - } - function aside(text) { - if (color) { - return colors.gray(text); - } else { - return text; - } - } - - return lines.slice(start, end).map(function (line, index) { - var number = start + 1 + index; - var gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '; - if (number === _this.line) { - var spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, _this.column - 1).replace(/[^\t]/g, ' '); - return mark('>') + aside(gutter) + line + '\n ' + spacing + mark('^'); - } else { - return ' ' + aside(gutter) + line; - } - }).join('\n'); - }; - - /** - * Returns error position, message and source code of the broken part. - * - * @example - * error.toString() //=> "CssSyntaxError: app.css:1:1: Unclosed block - * // > 1 | a { - * // | ^" - * - * @return {string} error position, message and source code - */ - - - CssSyntaxError.prototype.toString = function toString() { - var code = this.showSourceCode(); - if (code) { - code = '\n\n' + code + '\n'; - } - return this.name + ': ' + this.message + code; - }; - - _createClass(CssSyntaxError, [{ - key: 'generated', - get: function get() { - (0, _warnOnce2.default)('CssSyntaxError#generated is deprecated. Use input instead.'); - return this.input; - } - - /** - * @memberof CssSyntaxError# - * @member {Input} input - Input object with PostCSS internal information - * about input file. If input has source map - * from previous tool, PostCSS will use origin - * (for example, Sass) source. You can use this - * object to get PostCSS input source. - * - * @example - * error.input.file //=> 'a.css' - * error.file //=> 'a.sass' - */ - - }]); - - return CssSyntaxError; -}(); - -exports.default = CssSyntaxError; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNzcy1zeW50YXgtZXJyb3IuZXM2Il0sIm5hbWVzIjpbIkNzc1N5bnRheEVycm9yIiwibWVzc2FnZSIsImxpbmUiLCJjb2x1bW4iLCJzb3VyY2UiLCJmaWxlIiwicGx1Z2luIiwibmFtZSIsInJlYXNvbiIsInNldE1lc3NhZ2UiLCJFcnJvciIsImNhcHR1cmVTdGFja1RyYWNlIiwic2hvd1NvdXJjZUNvZGUiLCJjb2xvciIsImNzcyIsImxpbmVzIiwic3BsaXQiLCJzdGFydCIsIk1hdGgiLCJtYXgiLCJlbmQiLCJtaW4iLCJsZW5ndGgiLCJtYXhXaWR0aCIsIlN0cmluZyIsImNvbG9ycyIsImNvbnN0cnVjdG9yIiwiZW5hYmxlZCIsIm1hcmsiLCJ0ZXh0IiwicmVkIiwiYm9sZCIsImFzaWRlIiwiZ3JheSIsInNsaWNlIiwibWFwIiwiaW5kZXgiLCJudW1iZXIiLCJndXR0ZXIiLCJzcGFjaW5nIiwicmVwbGFjZSIsImpvaW4iLCJ0b1N0cmluZyIsImNvZGUiLCJpbnB1dCJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7Ozs7QUFDQTs7OztBQUVBOzs7O0FBQ0E7Ozs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQTJCTUEsYzs7QUFFRjs7Ozs7Ozs7QUFRQSw0QkFBWUMsT0FBWixFQUFxQkMsSUFBckIsRUFBMkJDLE1BQTNCLEVBQW1DQyxNQUFuQyxFQUEyQ0MsSUFBM0MsRUFBaURDLE1BQWpELEVBQXlEO0FBQUE7O0FBQ3JEOzs7Ozs7Ozs7Ozs7QUFZQSxhQUFLQyxJQUFMLEdBQWMsZ0JBQWQ7QUFDQTs7Ozs7O0FBTUEsYUFBS0MsTUFBTCxHQUFjUCxPQUFkOztBQUVBLFlBQUtJLElBQUwsRUFBWTtBQUNSOzs7Ozs7O0FBT0EsaUJBQUtBLElBQUwsR0FBWUEsSUFBWjtBQUNIO0FBQ0QsWUFBS0QsTUFBTCxFQUFjO0FBQ1Y7Ozs7Ozs7QUFPQSxpQkFBS0EsTUFBTCxHQUFjQSxNQUFkO0FBQ0g7QUFDRCxZQUFLRSxNQUFMLEVBQWM7QUFDVjs7Ozs7O0FBTUEsaUJBQUtBLE1BQUwsR0FBY0EsTUFBZDtBQUNIO0FBQ0QsWUFBSyxPQUFPSixJQUFQLEtBQWdCLFdBQWhCLElBQStCLE9BQU9DLE1BQVAsS0FBa0IsV0FBdEQsRUFBb0U7QUFDaEU7Ozs7Ozs7QUFPQSxpQkFBS0QsSUFBTCxHQUFjQSxJQUFkO0FBQ0E7Ozs7Ozs7QUFPQSxpQkFBS0MsTUFBTCxHQUFjQSxNQUFkO0FBQ0g7O0FBRUQsYUFBS00sVUFBTDs7QUFFQSxZQUFLQyxNQUFNQyxpQkFBWCxFQUErQjtBQUMzQkQsa0JBQU1DLGlCQUFOLENBQXdCLElBQXhCLEVBQThCWCxjQUE5QjtBQUNIO0FBQ0o7OzZCQUVEUyxVLHlCQUFhO0FBQ1Q7Ozs7Ozs7QUFPQSxhQUFLUixPQUFMLEdBQWdCLEtBQUtLLE1BQUwsR0FBYyxLQUFLQSxNQUFMLEdBQWMsSUFBNUIsR0FBbUMsRUFBbkQ7QUFDQSxhQUFLTCxPQUFMLElBQWdCLEtBQUtJLElBQUwsR0FBWSxLQUFLQSxJQUFqQixHQUF3QixhQUF4QztBQUNBLFlBQUssT0FBTyxLQUFLSCxJQUFaLEtBQXFCLFdBQTFCLEVBQXdDO0FBQ3BDLGlCQUFLRCxPQUFMLElBQWdCLE1BQU0sS0FBS0MsSUFBWCxHQUFrQixHQUFsQixHQUF3QixLQUFLQyxNQUE3QztBQUNIO0FBQ0QsYUFBS0YsT0FBTCxJQUFnQixPQUFPLEtBQUtPLE1BQTVCO0FBQ0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7NkJBcUJBSSxjLDJCQUFlQyxLLEVBQU87QUFBQTs7QUFDbEIsWUFBSyxDQUFDLEtBQUtULE1BQVgsRUFBb0IsT0FBTyxFQUFQOztBQUVwQixZQUFJVSxNQUFNLEtBQUtWLE1BQWY7QUFDQSxZQUFLLE9BQU9TLEtBQVAsS0FBaUIsV0FBdEIsRUFBb0NBO0FBQ3BDLFlBQUtBLEtBQUwsRUFBYUMsTUFBTSxpQ0FBa0JBLEdBQWxCLENBQU47O0FBRWIsWUFBSUMsUUFBUUQsSUFBSUUsS0FBSixDQUFVLE9BQVYsQ0FBWjtBQUNBLFlBQUlDLFFBQVFDLEtBQUtDLEdBQUwsQ0FBUyxLQUFLakIsSUFBTCxHQUFZLENBQXJCLEVBQXdCLENBQXhCLENBQVo7QUFDQSxZQUFJa0IsTUFBUUYsS0FBS0csR0FBTCxDQUFTLEtBQUtuQixJQUFMLEdBQVksQ0FBckIsRUFBd0JhLE1BQU1PLE1BQTlCLENBQVo7O0FBRUEsWUFBSUMsV0FBV0MsT0FBT0osR0FBUCxFQUFZRSxNQUEzQjtBQUNBLFlBQUlHLFNBQVMsSUFBSSxnQkFBTUMsV0FBVixDQUFzQixFQUFFQyxTQUFTLElBQVgsRUFBdEIsQ0FBYjs7QUFFQSxpQkFBU0MsSUFBVCxDQUFjQyxJQUFkLEVBQW9CO0FBQ2hCLGdCQUFLaEIsS0FBTCxFQUFhO0FBQ1QsdUJBQU9ZLE9BQU9LLEdBQVAsQ0FBV0MsSUFBWCxDQUFnQkYsSUFBaEIsQ0FBUDtBQUNILGFBRkQsTUFFTztBQUNILHVCQUFPQSxJQUFQO0FBQ0g7QUFDSjtBQUNELGlCQUFTRyxLQUFULENBQWVILElBQWYsRUFBcUI7QUFDakIsZ0JBQUtoQixLQUFMLEVBQWE7QUFDVCx1QkFBT1ksT0FBT1EsSUFBUCxDQUFZSixJQUFaLENBQVA7QUFDSCxhQUZELE1BRU87QUFDSCx1QkFBT0EsSUFBUDtBQUNIO0FBQ0o7O0FBRUQsZUFBT2QsTUFBTW1CLEtBQU4sQ0FBWWpCLEtBQVosRUFBbUJHLEdBQW5CLEVBQXdCZSxHQUF4QixDQUE2QixVQUFDakMsSUFBRCxFQUFPa0MsS0FBUCxFQUFpQjtBQUNqRCxnQkFBSUMsU0FBU3BCLFFBQVEsQ0FBUixHQUFZbUIsS0FBekI7QUFDQSxnQkFBSUUsU0FBUyxNQUFNLENBQUMsTUFBTUQsTUFBUCxFQUFlSCxLQUFmLENBQXFCLENBQUNYLFFBQXRCLENBQU4sR0FBd0MsS0FBckQ7QUFDQSxnQkFBS2MsV0FBVyxNQUFLbkMsSUFBckIsRUFBNEI7QUFDeEIsb0JBQUlxQyxVQUNBUCxNQUFNTSxPQUFPRSxPQUFQLENBQWUsS0FBZixFQUFzQixHQUF0QixDQUFOLElBQ0F0QyxLQUFLZ0MsS0FBTCxDQUFXLENBQVgsRUFBYyxNQUFLL0IsTUFBTCxHQUFjLENBQTVCLEVBQStCcUMsT0FBL0IsQ0FBdUMsUUFBdkMsRUFBaUQsR0FBakQsQ0FGSjtBQUdBLHVCQUFPWixLQUFLLEdBQUwsSUFBWUksTUFBTU0sTUFBTixDQUFaLEdBQTRCcEMsSUFBNUIsR0FBbUMsS0FBbkMsR0FDQXFDLE9BREEsR0FDVVgsS0FBSyxHQUFMLENBRGpCO0FBRUgsYUFORCxNQU1PO0FBQ0gsdUJBQU8sTUFBTUksTUFBTU0sTUFBTixDQUFOLEdBQXNCcEMsSUFBN0I7QUFDSDtBQUNKLFNBWk0sRUFZSnVDLElBWkksQ0FZQyxJQVpELENBQVA7QUFhSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7NkJBVUFDLFEsdUJBQVc7QUFDUCxZQUFJQyxPQUFPLEtBQUsvQixjQUFMLEVBQVg7QUFDQSxZQUFLK0IsSUFBTCxFQUFZO0FBQ1JBLG1CQUFPLFNBQVNBLElBQVQsR0FBZ0IsSUFBdkI7QUFDSDtBQUNELGVBQU8sS0FBS3BDLElBQUwsR0FBWSxJQUFaLEdBQW1CLEtBQUtOLE9BQXhCLEdBQWtDMEMsSUFBekM7QUFDSCxLOzs7OzRCQUVlO0FBQ1osb0NBQVMsNERBQVQ7QUFDQSxtQkFBTyxLQUFLQyxLQUFaO0FBQ0g7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7OztrQkFlVzVDLGMiLCJmaWxlIjoiY3NzLXN5bnRheC1lcnJvci5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdXBwb3J0c0NvbG9yIGZyb20gJ3N1cHBvcnRzLWNvbG9yJztcbmltcG9ydCBjaGFsayAgICAgICAgIGZyb20gJ2NoYWxrJztcblxuaW1wb3J0IHRlcm1pbmFsSGlnaGxpZ2h0IGZyb20gJy4vdGVybWluYWwtaGlnaGxpZ2h0JztcbmltcG9ydCB3YXJuT25jZSAgICAgICAgICBmcm9tICcuL3dhcm4tb25jZSc7XG5cbi8qKlxuICogVGhlIENTUyBwYXJzZXIgdGhyb3dzIHRoaXMgZXJyb3IgZm9yIGJyb2tlbiBDU1MuXG4gKlxuICogQ3VzdG9tIHBhcnNlcnMgY2FuIHRocm93IHRoaXMgZXJyb3IgZm9yIGJyb2tlbiBjdXN0b20gc3ludGF4IHVzaW5nXG4gKiB0aGUge0BsaW5rIE5vZGUjZXJyb3J9IG1ldGhvZC5cbiAqXG4gKiBQb3N0Q1NTIHdpbGwgdXNlIHRoZSBpbnB1dCBzb3VyY2UgbWFwIHRvIGRldGVjdCB0aGUgb3JpZ2luYWwgZXJyb3IgbG9jYXRpb24uXG4gKiBJZiB5b3Ugd3JvdGUgYSBTYXNzIGZpbGUsIGNvbXBpbGVkIGl0IHRvIENTUyBhbmQgdGhlbiBwYXJzZWQgaXQgd2l0aCBQb3N0Q1NTLFxuICogUG9zdENTUyB3aWxsIHNob3cgdGhlIG9yaWdpbmFsIHBvc2l0aW9uIGluIHRoZSBTYXNzIGZpbGUuXG4gKlxuICogSWYgeW91IG5lZWQgdGhlIHBvc2l0aW9uIGluIHRoZSBQb3N0Q1NTIGlucHV0XG4gKiAoZS5nLiwgdG8gZGVidWcgdGhlIHByZXZpb3VzIGNvbXBpbGVyKSwgdXNlIGBlcnJvci5pbnB1dC5maWxlYC5cbiAqXG4gKiBAZXhhbXBsZVxuICogLy8gQ2F0Y2hpbmcgYW5kIGNoZWNraW5nIHN5bnRheCBlcnJvclxuICogdHJ5IHtcbiAqICAgcG9zdGNzcy5wYXJzZSgnYXsnKVxuICogfSBjYXRjaCAoZXJyb3IpIHtcbiAqICAgaWYgKCBlcnJvci5uYW1lID09PSAnQ3NzU3ludGF4RXJyb3InICkge1xuICogICAgIGVycm9yIC8vPT4gQ3NzU3ludGF4RXJyb3JcbiAqICAgfVxuICogfVxuICpcbiAqIEBleGFtcGxlXG4gKiAvLyBSYWlzaW5nIGVycm9yIGZyb20gcGx1Z2luXG4gKiB0aHJvdyBub2RlLmVycm9yKCdVbmtub3duIHZhcmlhYmxlJywgeyBwbHVnaW46ICdwb3N0Y3NzLXZhcnMnIH0pO1xuICovXG5jbGFzcyBDc3NTeW50YXhFcnJvciB7XG5cbiAgICAvKipcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gbWVzc2FnZSAgLSBlcnJvciBtZXNzYWdlXG4gICAgICogQHBhcmFtIHtudW1iZXJ9IFtsaW5lXSAgIC0gc291cmNlIGxpbmUgb2YgdGhlIGVycm9yXG4gICAgICogQHBhcmFtIHtudW1iZXJ9IFtjb2x1bW5dIC0gc291cmNlIGNvbHVtbiBvZiB0aGUgZXJyb3JcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gW3NvdXJjZV0gLSBzb3VyY2UgY29kZSBvZiB0aGUgYnJva2VuIGZpbGVcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gW2ZpbGVdICAgLSBhYnNvbHV0ZSBwYXRoIHRvIHRoZSBicm9rZW4gZmlsZVxuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBbcGx1Z2luXSAtIFBvc3RDU1MgcGx1Z2luIG5hbWUsIGlmIGVycm9yIGNhbWUgZnJvbSBwbHVnaW5cbiAgICAgKi9cbiAgICBjb25zdHJ1Y3RvcihtZXNzYWdlLCBsaW5lLCBjb2x1bW4sIHNvdXJjZSwgZmlsZSwgcGx1Z2luKSB7XG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAbWVtYmVyIHtzdHJpbmd9IC0gQWx3YXlzIGVxdWFsIHRvIGAnQ3NzU3ludGF4RXJyb3InYC4gWW91IHNob3VsZFxuICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgYWx3YXlzIGNoZWNrIGVycm9yIHR5cGVcbiAgICAgICAgICogICAgICAgICAgICAgICAgICAgIGJ5IGBlcnJvci5uYW1lID09PSAnQ3NzU3ludGF4RXJyb3InYCBpbnN0ZWFkIG9mXG4gICAgICAgICAqICAgICAgICAgICAgICAgICAgICBgZXJyb3IgaW5zdGFuY2VvZiBDc3NTeW50YXhFcnJvcmAsIGJlY2F1c2VcbiAgICAgICAgICogICAgICAgICAgICAgICAgICAgIG5wbSBjb3VsZCBoYXZlIHNldmVyYWwgUG9zdENTUyB2ZXJzaW9ucy5cbiAgICAgICAgICpcbiAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICogaWYgKCBlcnJvci5uYW1lID09PSAnQ3NzU3ludGF4RXJyb3InICkge1xuICAgICAgICAgKiAgIGVycm9yIC8vPT4gQ3NzU3ludGF4RXJyb3JcbiAgICAgICAgICogfVxuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy5uYW1lICAgPSAnQ3NzU3ludGF4RXJyb3InO1xuICAgICAgICAvKipcbiAgICAgICAgICogQG1lbWJlciB7c3RyaW5nfSAtIEVycm9yIG1lc3NhZ2UuXG4gICAgICAgICAqXG4gICAgICAgICAqIEBleGFtcGxlXG4gICAgICAgICAqIGVycm9yLm1lc3NhZ2UgLy89PiAnVW5jbG9zZWQgYmxvY2snXG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnJlYXNvbiA9IG1lc3NhZ2U7XG5cbiAgICAgICAgaWYgKCBmaWxlICkge1xuICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgKiBAbWVtYmVyIHtzdHJpbmd9IC0gQWJzb2x1dGUgcGF0aCB0byB0aGUgYnJva2VuIGZpbGUuXG4gICAgICAgICAgICAgKlxuICAgICAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICAgICAqIGVycm9yLmZpbGUgICAgICAgLy89PiAnYS5zYXNzJ1xuICAgICAgICAgICAgICogZXJyb3IuaW5wdXQuZmlsZSAvLz0+ICdhLmNzcydcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgdGhpcy5maWxlID0gZmlsZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIHNvdXJjZSApIHtcbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogQG1lbWJlciB7c3RyaW5nfSAtIFNvdXJjZSBjb2RlIG9mIHRoZSBicm9rZW4gZmlsZS5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgICAgICogZXJyb3Iuc291cmNlICAgICAgIC8vPT4gJ2EgeyBiIHt9IH0nXG4gICAgICAgICAgICAgKiBlcnJvci5pbnB1dC5jb2x1bW4gLy89PiAnYSBiIHsgfSdcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgdGhpcy5zb3VyY2UgPSBzb3VyY2U7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCBwbHVnaW4gKSB7XG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIEBtZW1iZXIge3N0cmluZ30gLSBQbHVnaW4gbmFtZSwgaWYgZXJyb3IgY2FtZSBmcm9tIHBsdWdpbi5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgICAgICogZXJyb3IucGx1Z2luIC8vPT4gJ3Bvc3Rjc3MtdmFycydcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgdGhpcy5wbHVnaW4gPSBwbHVnaW47XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCB0eXBlb2YgbGluZSAhPT0gJ3VuZGVmaW5lZCcgJiYgdHlwZW9mIGNvbHVtbiAhPT0gJ3VuZGVmaW5lZCcgKSB7XG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIEBtZW1iZXIge251bWJlcn0gLSBTb3VyY2UgbGluZSBvZiB0aGUgZXJyb3IuXG4gICAgICAgICAgICAgKlxuICAgICAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICAgICAqIGVycm9yLmxpbmUgICAgICAgLy89PiAyXG4gICAgICAgICAgICAgKiBlcnJvci5pbnB1dC5saW5lIC8vPT4gNFxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICB0aGlzLmxpbmUgICA9IGxpbmU7XG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIEBtZW1iZXIge251bWJlcn0gLSBTb3VyY2UgY29sdW1uIG9mIHRoZSBlcnJvci5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgICAgICogZXJyb3IuY29sdW1uICAgICAgIC8vPT4gMVxuICAgICAgICAgICAgICogZXJyb3IuaW5wdXQuY29sdW1uIC8vPT4gNFxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuc2V0TWVzc2FnZSgpO1xuXG4gICAgICAgIGlmICggRXJyb3IuY2FwdHVyZVN0YWNrVHJhY2UgKSB7XG4gICAgICAgICAgICBFcnJvci5jYXB0dXJlU3RhY2tUcmFjZSh0aGlzLCBDc3NTeW50YXhFcnJvcik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBzZXRNZXNzYWdlKCkge1xuICAgICAgICAvKipcbiAgICAgICAgICogQG1lbWJlciB7c3RyaW5nfSAtIEZ1bGwgZXJyb3IgdGV4dCBpbiB0aGUgR05VIGVycm9yIGZvcm1hdFxuICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgd2l0aCBwbHVnaW4sIGZpbGUsIGxpbmUgYW5kIGNvbHVtbi5cbiAgICAgICAgICpcbiAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICogZXJyb3IubWVzc2FnZSAvLz0+ICdhLmNzczoxOjE6IFVuY2xvc2VkIGJsb2NrJ1xuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy5tZXNzYWdlICA9IHRoaXMucGx1Z2luID8gdGhpcy5wbHVnaW4gKyAnOiAnIDogJyc7XG4gICAgICAgIHRoaXMubWVzc2FnZSArPSB0aGlzLmZpbGUgPyB0aGlzLmZpbGUgOiAnPGNzcyBpbnB1dD4nO1xuICAgICAgICBpZiAoIHR5cGVvZiB0aGlzLmxpbmUgIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgdGhpcy5tZXNzYWdlICs9ICc6JyArIHRoaXMubGluZSArICc6JyArIHRoaXMuY29sdW1uO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMubWVzc2FnZSArPSAnOiAnICsgdGhpcy5yZWFzb247XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBhIGZldyBsaW5lcyBvZiBDU1Mgc291cmNlIHRoYXQgY2F1c2VkIHRoZSBlcnJvci5cbiAgICAgKlxuICAgICAqIElmIHRoZSBDU1MgaGFzIGFuIGlucHV0IHNvdXJjZSBtYXAgd2l0aG91dCBgc291cmNlQ29udGVudGAsXG4gICAgICogdGhpcyBtZXRob2Qgd2lsbCByZXR1cm4gYW4gZW1wdHkgc3RyaW5nLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtib29sZWFufSBbY29sb3JdIHdoZXRoZXIgYXJyb3cgd2lsbCBiZSBjb2xvcmVkIHJlZCBieSB0ZXJtaW5hbFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xvciBjb2Rlcy4gQnkgZGVmYXVsdCwgUG9zdENTUyB3aWxsIGRldGVjdFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xvciBzdXBwb3J0IGJ5IGBwcm9jZXNzLnN0ZG91dC5pc1RUWWBcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgYW5kIGBwcm9jZXNzLmVudi5OT0RFX0RJU0FCTEVfQ09MT1JTYC5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogZXJyb3Iuc2hvd1NvdXJjZUNvZGUoKSAvLz0+IFwiICA0IHwgfVxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICA1IHwgYSB7XG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAvLyAgICA+IDYgfCAgIGJhZFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgIHwgICBeXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgIDcgfCB9XG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgIDggfCBiIHtcIlxuICAgICAqXG4gICAgICogQHJldHVybiB7c3RyaW5nfSBmZXcgbGluZXMgb2YgQ1NTIHNvdXJjZSB0aGF0IGNhdXNlZCB0aGUgZXJyb3JcbiAgICAgKi9cbiAgICBzaG93U291cmNlQ29kZShjb2xvcikge1xuICAgICAgICBpZiAoICF0aGlzLnNvdXJjZSApIHJldHVybiAnJztcblxuICAgICAgICBsZXQgY3NzID0gdGhpcy5zb3VyY2U7XG4gICAgICAgIGlmICggdHlwZW9mIGNvbG9yID09PSAndW5kZWZpbmVkJyApIGNvbG9yID0gc3VwcG9ydHNDb2xvcjtcbiAgICAgICAgaWYgKCBjb2xvciApIGNzcyA9IHRlcm1pbmFsSGlnaGxpZ2h0KGNzcyk7XG5cbiAgICAgICAgbGV0IGxpbmVzID0gY3NzLnNwbGl0KC9cXHI/XFxuLyk7XG4gICAgICAgIGxldCBzdGFydCA9IE1hdGgubWF4KHRoaXMubGluZSAtIDMsIDApO1xuICAgICAgICBsZXQgZW5kICAgPSBNYXRoLm1pbih0aGlzLmxpbmUgKyAyLCBsaW5lcy5sZW5ndGgpO1xuXG4gICAgICAgIGxldCBtYXhXaWR0aCA9IFN0cmluZyhlbmQpLmxlbmd0aDtcbiAgICAgICAgbGV0IGNvbG9ycyA9IG5ldyBjaGFsay5jb25zdHJ1Y3Rvcih7IGVuYWJsZWQ6IHRydWUgfSk7XG5cbiAgICAgICAgZnVuY3Rpb24gbWFyayh0ZXh0KSB7XG4gICAgICAgICAgICBpZiAoIGNvbG9yICkge1xuICAgICAgICAgICAgICAgIHJldHVybiBjb2xvcnMucmVkLmJvbGQodGV4dCk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybiB0ZXh0O1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGZ1bmN0aW9uIGFzaWRlKHRleHQpIHtcbiAgICAgICAgICAgIGlmICggY29sb3IgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGNvbG9ycy5ncmF5KHRleHQpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGV4dDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBsaW5lcy5zbGljZShzdGFydCwgZW5kKS5tYXAoIChsaW5lLCBpbmRleCkgPT4ge1xuICAgICAgICAgICAgbGV0IG51bWJlciA9IHN0YXJ0ICsgMSArIGluZGV4O1xuICAgICAgICAgICAgbGV0IGd1dHRlciA9ICcgJyArICgnICcgKyBudW1iZXIpLnNsaWNlKC1tYXhXaWR0aCkgKyAnIHwgJztcbiAgICAgICAgICAgIGlmICggbnVtYmVyID09PSB0aGlzLmxpbmUgKSB7XG4gICAgICAgICAgICAgICAgbGV0IHNwYWNpbmcgPVxuICAgICAgICAgICAgICAgICAgICBhc2lkZShndXR0ZXIucmVwbGFjZSgvXFxkL2csICcgJykpICtcbiAgICAgICAgICAgICAgICAgICAgbGluZS5zbGljZSgwLCB0aGlzLmNvbHVtbiAtIDEpLnJlcGxhY2UoL1teXFx0XS9nLCAnICcpO1xuICAgICAgICAgICAgICAgIHJldHVybiBtYXJrKCc+JykgKyBhc2lkZShndXR0ZXIpICsgbGluZSArICdcXG4gJyArXG4gICAgICAgICAgICAgICAgICAgICAgIHNwYWNpbmcgKyBtYXJrKCdeJyk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybiAnICcgKyBhc2lkZShndXR0ZXIpICsgbGluZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSkuam9pbignXFxuJyk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBlcnJvciBwb3NpdGlvbiwgbWVzc2FnZSBhbmQgc291cmNlIGNvZGUgb2YgdGhlIGJyb2tlbiBwYXJ0LlxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBlcnJvci50b1N0cmluZygpIC8vPT4gXCJDc3NTeW50YXhFcnJvcjogYXBwLmNzczoxOjE6IFVuY2xvc2VkIGJsb2NrXG4gICAgICogICAgICAgICAgICAgICAgICAvLyAgICA+IDEgfCBhIHtcbiAgICAgKiAgICAgICAgICAgICAgICAgIC8vICAgICAgICB8IF5cIlxuICAgICAqXG4gICAgICogQHJldHVybiB7c3RyaW5nfSBlcnJvciBwb3NpdGlvbiwgbWVzc2FnZSBhbmQgc291cmNlIGNvZGVcbiAgICAgKi9cbiAgICB0b1N0cmluZygpIHtcbiAgICAgICAgbGV0IGNvZGUgPSB0aGlzLnNob3dTb3VyY2VDb2RlKCk7XG4gICAgICAgIGlmICggY29kZSApIHtcbiAgICAgICAgICAgIGNvZGUgPSAnXFxuXFxuJyArIGNvZGUgKyAnXFxuJztcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdGhpcy5uYW1lICsgJzogJyArIHRoaXMubWVzc2FnZSArIGNvZGU7XG4gICAgfVxuXG4gICAgZ2V0IGdlbmVyYXRlZCgpIHtcbiAgICAgICAgd2Fybk9uY2UoJ0Nzc1N5bnRheEVycm9yI2dlbmVyYXRlZCBpcyBkZXByZWNhdGVkLiBVc2UgaW5wdXQgaW5zdGVhZC4nKTtcbiAgICAgICAgcmV0dXJuIHRoaXMuaW5wdXQ7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIENzc1N5bnRheEVycm9yI1xuICAgICAqIEBtZW1iZXIge0lucHV0fSBpbnB1dCAtIElucHV0IG9iamVjdCB3aXRoIFBvc3RDU1MgaW50ZXJuYWwgaW5mb3JtYXRpb25cbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICBhYm91dCBpbnB1dCBmaWxlLiBJZiBpbnB1dCBoYXMgc291cmNlIG1hcFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgIGZyb20gcHJldmlvdXMgdG9vbCwgUG9zdENTUyB3aWxsIHVzZSBvcmlnaW5cbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAoZm9yIGV4YW1wbGUsIFNhc3MpIHNvdXJjZS4gWW91IGNhbiB1c2UgdGhpc1xuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgIG9iamVjdCB0byBnZXQgUG9zdENTUyBpbnB1dCBzb3VyY2UuXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGVycm9yLmlucHV0LmZpbGUgLy89PiAnYS5jc3MnXG4gICAgICogZXJyb3IuZmlsZSAgICAgICAvLz0+ICdhLnNhc3MnXG4gICAgICovXG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ3NzU3ludGF4RXJyb3I7XG4iXX0= diff --git a/node_modules/postcss/lib/declaration.js b/node_modules/postcss/lib/declaration.js deleted file mode 100644 index 6aa81d2..0000000 --- a/node_modules/postcss/lib/declaration.js +++ /dev/null @@ -1,131 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _node = require('./node'); - -var _node2 = _interopRequireDefault(_node); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS declaration. - * - * @extends Node - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.type //=> 'decl' - * decl.toString() //=> ' color: black' - */ -var Declaration = function (_Node) { - _inherits(Declaration, _Node); - - function Declaration(defaults) { - _classCallCheck(this, Declaration); - - var _this = _possibleConstructorReturn(this, _Node.call(this, defaults)); - - _this.type = 'decl'; - return _this; - } - - _createClass(Declaration, [{ - key: '_value', - get: function get() { - (0, _warnOnce2.default)('Node#_value was deprecated. Use Node#raws.value'); - return this.raws.value; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#_value was deprecated. Use Node#raws.value'); - this.raws.value = val; - } - }, { - key: '_important', - get: function get() { - (0, _warnOnce2.default)('Node#_important was deprecated. Use Node#raws.important'); - return this.raws.important; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#_important was deprecated. Use Node#raws.important'); - this.raws.important = val; - } - - /** - * @memberof Declaration# - * @member {string} prop - the declaration’s property name - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.prop //=> 'color' - */ - - /** - * @memberof Declaration# - * @member {string} value - the declaration’s value - * - * @example - * const root = postcss.parse('a { color: black }'); - * const decl = root.first.first; - * decl.value //=> 'black' - */ - - /** - * @memberof Declaration# - * @member {boolean} important - `true` if the declaration - * has an !important annotation. - * - * @example - * const root = postcss.parse('a { color: black !important; color: red }'); - * root.first.first.important //=> true - * root.first.last.important //=> undefined - */ - - /** - * @memberof Declaration# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS cleans declaration from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - */ - - }]); - - return Declaration; -}(_node2.default); - -exports.default = Declaration; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRlY2xhcmF0aW9uLmVzNiJdLCJuYW1lcyI6WyJEZWNsYXJhdGlvbiIsImRlZmF1bHRzIiwidHlwZSIsInJhd3MiLCJ2YWx1ZSIsInZhbCIsImltcG9ydGFudCJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7Ozs7QUFDQTs7Ozs7Ozs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7O0lBV01BLFc7OztBQUVGLHlCQUFZQyxRQUFaLEVBQXNCO0FBQUE7O0FBQUEscURBQ2xCLGlCQUFNQSxRQUFOLENBRGtCOztBQUVsQixjQUFLQyxJQUFMLEdBQVksTUFBWjtBQUZrQjtBQUdyQjs7Ozs0QkFFWTtBQUNULG9DQUFTLGlEQUFUO0FBQ0EsbUJBQU8sS0FBS0MsSUFBTCxDQUFVQyxLQUFqQjtBQUNILFM7MEJBRVVDLEcsRUFBSztBQUNaLG9DQUFTLGlEQUFUO0FBQ0EsaUJBQUtGLElBQUwsQ0FBVUMsS0FBVixHQUFrQkMsR0FBbEI7QUFDSDs7OzRCQUVnQjtBQUNiLG9DQUFTLHlEQUFUO0FBQ0EsbUJBQU8sS0FBS0YsSUFBTCxDQUFVRyxTQUFqQjtBQUNILFM7MEJBRWNELEcsRUFBSztBQUNoQixvQ0FBUyx5REFBVDtBQUNBLGlCQUFLRixJQUFMLENBQVVHLFNBQVYsR0FBc0JELEdBQXRCO0FBQ0g7O0FBRUQ7Ozs7Ozs7Ozs7QUFVQTs7Ozs7Ozs7OztBQVVBOzs7Ozs7Ozs7OztBQVdBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O2tCQTRCV0wsVyIsImZpbGUiOiJkZWNsYXJhdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB3YXJuT25jZSBmcm9tICcuL3dhcm4tb25jZSc7XG5pbXBvcnQgTm9kZSAgICAgZnJvbSAnLi9ub2RlJztcblxuLyoqXG4gKiBSZXByZXNlbnRzIGEgQ1NTIGRlY2xhcmF0aW9uLlxuICpcbiAqIEBleHRlbmRzIE5vZGVcbiAqXG4gKiBAZXhhbXBsZVxuICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoJ2EgeyBjb2xvcjogYmxhY2sgfScpO1xuICogY29uc3QgZGVjbCA9IHJvb3QuZmlyc3QuZmlyc3Q7XG4gKiBkZWNsLnR5cGUgICAgICAgLy89PiAnZGVjbCdcbiAqIGRlY2wudG9TdHJpbmcoKSAvLz0+ICcgY29sb3I6IGJsYWNrJ1xuICovXG5jbGFzcyBEZWNsYXJhdGlvbiBleHRlbmRzIE5vZGUge1xuXG4gICAgY29uc3RydWN0b3IoZGVmYXVsdHMpIHtcbiAgICAgICAgc3VwZXIoZGVmYXVsdHMpO1xuICAgICAgICB0aGlzLnR5cGUgPSAnZGVjbCc7XG4gICAgfVxuXG4gICAgZ2V0IF92YWx1ZSgpIHtcbiAgICAgICAgd2Fybk9uY2UoJ05vZGUjX3ZhbHVlIHdhcyBkZXByZWNhdGVkLiBVc2UgTm9kZSNyYXdzLnZhbHVlJyk7XG4gICAgICAgIHJldHVybiB0aGlzLnJhd3MudmFsdWU7XG4gICAgfVxuXG4gICAgc2V0IF92YWx1ZSh2YWwpIHtcbiAgICAgICAgd2Fybk9uY2UoJ05vZGUjX3ZhbHVlIHdhcyBkZXByZWNhdGVkLiBVc2UgTm9kZSNyYXdzLnZhbHVlJyk7XG4gICAgICAgIHRoaXMucmF3cy52YWx1ZSA9IHZhbDtcbiAgICB9XG5cbiAgICBnZXQgX2ltcG9ydGFudCgpIHtcbiAgICAgICAgd2Fybk9uY2UoJ05vZGUjX2ltcG9ydGFudCB3YXMgZGVwcmVjYXRlZC4gVXNlIE5vZGUjcmF3cy5pbXBvcnRhbnQnKTtcbiAgICAgICAgcmV0dXJuIHRoaXMucmF3cy5pbXBvcnRhbnQ7XG4gICAgfVxuXG4gICAgc2V0IF9pbXBvcnRhbnQodmFsKSB7XG4gICAgICAgIHdhcm5PbmNlKCdOb2RlI19pbXBvcnRhbnQgd2FzIGRlcHJlY2F0ZWQuIFVzZSBOb2RlI3Jhd3MuaW1wb3J0YW50Jyk7XG4gICAgICAgIHRoaXMucmF3cy5pbXBvcnRhbnQgPSB2YWw7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIERlY2xhcmF0aW9uI1xuICAgICAqIEBtZW1iZXIge3N0cmluZ30gcHJvcCAtIHRoZSBkZWNsYXJhdGlvbuKAmXMgcHJvcGVydHkgbmFtZVxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnYSB7IGNvbG9yOiBibGFjayB9Jyk7XG4gICAgICogY29uc3QgZGVjbCA9IHJvb3QuZmlyc3QuZmlyc3Q7XG4gICAgICogZGVjbC5wcm9wIC8vPT4gJ2NvbG9yJ1xuICAgICAqL1xuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIERlY2xhcmF0aW9uI1xuICAgICAqIEBtZW1iZXIge3N0cmluZ30gdmFsdWUgLSB0aGUgZGVjbGFyYXRpb27igJlzIHZhbHVlXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGNvbnN0IHJvb3QgPSBwb3N0Y3NzLnBhcnNlKCdhIHsgY29sb3I6IGJsYWNrIH0nKTtcbiAgICAgKiBjb25zdCBkZWNsID0gcm9vdC5maXJzdC5maXJzdDtcbiAgICAgKiBkZWNsLnZhbHVlIC8vPT4gJ2JsYWNrJ1xuICAgICAqL1xuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIERlY2xhcmF0aW9uI1xuICAgICAqIEBtZW1iZXIge2Jvb2xlYW59IGltcG9ydGFudCAtIGB0cnVlYCBpZiB0aGUgZGVjbGFyYXRpb25cbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXMgYW4gIWltcG9ydGFudCBhbm5vdGF0aW9uLlxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnYSB7IGNvbG9yOiBibGFjayAhaW1wb3J0YW50OyBjb2xvcjogcmVkIH0nKTtcbiAgICAgKiByb290LmZpcnN0LmZpcnN0LmltcG9ydGFudCAvLz0+IHRydWVcbiAgICAgKiByb290LmZpcnN0Lmxhc3QuaW1wb3J0YW50ICAvLz0+IHVuZGVmaW5lZFxuICAgICAqL1xuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIERlY2xhcmF0aW9uI1xuICAgICAqIEBtZW1iZXIge29iamVjdH0gcmF3cyAtIEluZm9ybWF0aW9uIHRvIGdlbmVyYXRlIGJ5dGUtdG8tYnl0ZSBlcXVhbFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUgc3RyaW5nIGFzIGl0IHdhcyBpbiB0aGUgb3JpZ2luIGlucHV0LlxuICAgICAqXG4gICAgICogRXZlcnkgcGFyc2VyIHNhdmVzIGl0cyBvd24gcHJvcGVydGllcyxcbiAgICAgKiBidXQgdGhlIGRlZmF1bHQgQ1NTIHBhcnNlciB1c2VzOlxuICAgICAqXG4gICAgICogKiBgYmVmb3JlYDogdGhlIHNwYWNlIHN5bWJvbHMgYmVmb3JlIHRoZSBub2RlLiBJdCBhbHNvIHN0b3JlcyBgKmBcbiAgICAgKiAgIGFuZCBgX2Agc3ltYm9scyBiZWZvcmUgdGhlIGRlY2xhcmF0aW9uIChJRSBoYWNrKS5cbiAgICAgKiAqIGBiZXR3ZWVuYDogdGhlIHN5bWJvbHMgYmV0d2VlbiB0aGUgcHJvcGVydHkgYW5kIHZhbHVlXG4gICAgICogICBmb3IgZGVjbGFyYXRpb25zLCBzZWxlY3RvciBhbmQgYHtgIGZvciBydWxlcywgb3IgbGFzdCBwYXJhbWV0ZXJcbiAgICAgKiAgIGFuZCBge2AgZm9yIGF0LXJ1bGVzLlxuICAgICAqICogYGltcG9ydGFudGA6IHRoZSBjb250ZW50IG9mIHRoZSBpbXBvcnRhbnQgc3RhdGVtZW50LFxuICAgICAqICAgaWYgaXQgaXMgbm90IGp1c3QgYCFpbXBvcnRhbnRgLlxuICAgICAqXG4gICAgICogUG9zdENTUyBjbGVhbnMgZGVjbGFyYXRpb24gZnJvbSBjb21tZW50cyBhbmQgZXh0cmEgc3BhY2VzLFxuICAgICAqIGJ1dCBpdCBzdG9yZXMgb3JpZ2luIGNvbnRlbnQgaW4gcmF3cyBwcm9wZXJ0aWVzLlxuICAgICAqIEFzIHN1Y2gsIGlmIHlvdSBkb27igJl0IGNoYW5nZSBhIGRlY2xhcmF0aW9u4oCZcyB2YWx1ZSxcbiAgICAgKiBQb3N0Q1NTIHdpbGwgdXNlIHRoZSByYXcgdmFsdWUgd2l0aCBjb21tZW50cy5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoJ2Ege1xcbiAgY29sb3I6YmxhY2tcXG59JylcbiAgICAgKiByb290LmZpcnN0LmZpcnN0LnJhd3MgLy89PiB7IGJlZm9yZTogJ1xcbiAgJywgYmV0d2VlbjogJzonIH1cbiAgICAgKi9cblxufVxuXG5leHBvcnQgZGVmYXVsdCBEZWNsYXJhdGlvbjtcbiJdfQ== diff --git a/node_modules/postcss/lib/input.js b/node_modules/postcss/lib/input.js deleted file mode 100644 index 7f9949f..0000000 --- a/node_modules/postcss/lib/input.js +++ /dev/null @@ -1,198 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _cssSyntaxError = require('./css-syntax-error'); - -var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); - -var _previousMap = require('./previous-map'); - -var _previousMap2 = _interopRequireDefault(_previousMap); - -var _path = require('path'); - -var _path2 = _interopRequireDefault(_path); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var sequence = 0; - -/** - * Represents the source CSS. - * - * @example - * const root = postcss.parse(css, { from: file }); - * const input = root.source.input; - */ - -var Input = function () { - - /** - * @param {string} css - input CSS source - * @param {object} [opts] - {@link Processor#process} options - */ - function Input(css) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Input); - - /** - * @member {string} - input CSS source - * - * @example - * const input = postcss.parse('a{}', { from: file }).input; - * input.css //=> "a{}"; - */ - this.css = css.toString(); - - if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') { - this.css = this.css.slice(1); - } - - if (opts.from) { - if (/^\w+:\/\//.test(opts.from)) { - /** - * @member {string} - The absolute path to the CSS source file - * defined with the `from` option. - * - * @example - * const root = postcss.parse(css, { from: 'a.css' }); - * root.source.input.file //=> '/home/ai/a.css' - */ - this.file = opts.from; - } else { - this.file = _path2.default.resolve(opts.from); - } - } - - var map = new _previousMap2.default(this.css, opts); - if (map.text) { - /** - * @member {PreviousMap} - The input source map passed from - * a compilation step before PostCSS - * (for example, from Sass compiler). - * - * @example - * root.source.input.map.consumer().sources //=> ['a.sass'] - */ - this.map = map; - var file = map.consumer().file; - if (!this.file && file) this.file = this.mapResolve(file); - } - - if (!this.file) { - sequence += 1; - /** - * @member {string} - The unique ID of the CSS source. It will be - * created if `from` option is not provided - * (because PostCSS does not know the file path). - * - * @example - * const root = postcss.parse(css); - * root.source.input.file //=> undefined - * root.source.input.id //=> "" - */ - this.id = ''; - } - if (this.map) this.map.file = this.from; - } - - Input.prototype.error = function error(message, line, column) { - var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - - var result = void 0; - var origin = this.origin(line, column); - if (origin) { - result = new _cssSyntaxError2.default(message, origin.line, origin.column, origin.source, origin.file, opts.plugin); - } else { - result = new _cssSyntaxError2.default(message, line, column, this.css, this.file, opts.plugin); - } - - result.input = { line: line, column: column, source: this.css }; - if (this.file) result.input.file = this.file; - - return result; - }; - - /** - * Reads the input source map and returns a symbol position - * in the input source (e.g., in a Sass file that was compiled - * to CSS before being passed to PostCSS). - * - * @param {number} line - line in input CSS - * @param {number} column - column in input CSS - * - * @return {filePosition} position in input source - * - * @example - * root.source.input.origin(1, 1) //=> { file: 'a.css', line: 3, column: 1 } - */ - - - Input.prototype.origin = function origin(line, column) { - if (!this.map) return false; - var consumer = this.map.consumer(); - - var from = consumer.originalPositionFor({ line: line, column: column }); - if (!from.source) return false; - - var result = { - file: this.mapResolve(from.source), - line: from.line, - column: from.column - }; - - var source = consumer.sourceContentFor(from.source); - if (source) result.source = source; - - return result; - }; - - Input.prototype.mapResolve = function mapResolve(file) { - if (/^\w+:\/\//.test(file)) { - return file; - } else { - return _path2.default.resolve(this.map.consumer().sourceRoot || '.', file); - } - }; - - /** - * The CSS source identifier. Contains {@link Input#file} if the user - * set the `from` option, or {@link Input#id} if they did not. - * @type {string} - * - * @example - * const root = postcss.parse(css, { from: 'a.css' }); - * root.source.input.from //=> "/home/ai/a.css" - * - * const root = postcss.parse(css); - * root.source.input.from //=> "" - */ - - - _createClass(Input, [{ - key: 'from', - get: function get() { - return this.file || this.id; - } - }]); - - return Input; -}(); - -exports.default = Input; - -/** - * @typedef {object} filePosition - * @property {string} file - path to file - * @property {number} line - source line in file - * @property {number} column - source column in file - */ - -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmVzNiJdLCJuYW1lcyI6WyJzZXF1ZW5jZSIsIklucHV0IiwiY3NzIiwib3B0cyIsInRvU3RyaW5nIiwic2xpY2UiLCJmcm9tIiwidGVzdCIsImZpbGUiLCJyZXNvbHZlIiwibWFwIiwidGV4dCIsImNvbnN1bWVyIiwibWFwUmVzb2x2ZSIsImlkIiwiZXJyb3IiLCJtZXNzYWdlIiwibGluZSIsImNvbHVtbiIsInJlc3VsdCIsIm9yaWdpbiIsInNvdXJjZSIsInBsdWdpbiIsImlucHV0Iiwib3JpZ2luYWxQb3NpdGlvbkZvciIsInNvdXJjZUNvbnRlbnRGb3IiLCJzb3VyY2VSb290Il0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBRUE7Ozs7Ozs7O0FBRUEsSUFBSUEsV0FBVyxDQUFmOztBQUVBOzs7Ozs7OztJQU9NQyxLOztBQUVGOzs7O0FBSUEsbUJBQVlDLEdBQVosRUFBNkI7QUFBQSxZQUFaQyxJQUFZLHVFQUFMLEVBQUs7O0FBQUE7O0FBQ3pCOzs7Ozs7O0FBT0EsYUFBS0QsR0FBTCxHQUFXQSxJQUFJRSxRQUFKLEVBQVg7O0FBRUEsWUFBSyxLQUFLRixHQUFMLENBQVMsQ0FBVCxNQUFnQixRQUFoQixJQUE0QixLQUFLQSxHQUFMLENBQVMsQ0FBVCxNQUFnQixRQUFqRCxFQUE0RDtBQUN4RCxpQkFBS0EsR0FBTCxHQUFXLEtBQUtBLEdBQUwsQ0FBU0csS0FBVCxDQUFlLENBQWYsQ0FBWDtBQUNIOztBQUVELFlBQUtGLEtBQUtHLElBQVYsRUFBaUI7QUFDYixnQkFBSyxZQUFZQyxJQUFaLENBQWlCSixLQUFLRyxJQUF0QixDQUFMLEVBQW1DO0FBQy9COzs7Ozs7OztBQVFBLHFCQUFLRSxJQUFMLEdBQVlMLEtBQUtHLElBQWpCO0FBQ0gsYUFWRCxNQVVPO0FBQ0gscUJBQUtFLElBQUwsR0FBWSxlQUFLQyxPQUFMLENBQWFOLEtBQUtHLElBQWxCLENBQVo7QUFDSDtBQUNKOztBQUVELFlBQUlJLE1BQU0sMEJBQWdCLEtBQUtSLEdBQXJCLEVBQTBCQyxJQUExQixDQUFWO0FBQ0EsWUFBS08sSUFBSUMsSUFBVCxFQUFnQjtBQUNaOzs7Ozs7OztBQVFBLGlCQUFLRCxHQUFMLEdBQVdBLEdBQVg7QUFDQSxnQkFBSUYsT0FBT0UsSUFBSUUsUUFBSixHQUFlSixJQUExQjtBQUNBLGdCQUFLLENBQUMsS0FBS0EsSUFBTixJQUFjQSxJQUFuQixFQUEwQixLQUFLQSxJQUFMLEdBQVksS0FBS0ssVUFBTCxDQUFnQkwsSUFBaEIsQ0FBWjtBQUM3Qjs7QUFFRCxZQUFLLENBQUMsS0FBS0EsSUFBWCxFQUFrQjtBQUNkUix3QkFBWSxDQUFaO0FBQ0E7Ozs7Ozs7Ozs7QUFVQSxpQkFBS2MsRUFBTCxHQUFZLGdCQUFnQmQsUUFBaEIsR0FBMkIsR0FBdkM7QUFDSDtBQUNELFlBQUssS0FBS1UsR0FBVixFQUFnQixLQUFLQSxHQUFMLENBQVNGLElBQVQsR0FBZ0IsS0FBS0YsSUFBckI7QUFDbkI7O29CQUVEUyxLLGtCQUFNQyxPLEVBQVNDLEksRUFBTUMsTSxFQUFvQjtBQUFBLFlBQVpmLElBQVksdUVBQUwsRUFBSzs7QUFDckMsWUFBSWdCLGVBQUo7QUFDQSxZQUFJQyxTQUFTLEtBQUtBLE1BQUwsQ0FBWUgsSUFBWixFQUFrQkMsTUFBbEIsQ0FBYjtBQUNBLFlBQUtFLE1BQUwsRUFBYztBQUNWRCxxQkFBUyw2QkFBbUJILE9BQW5CLEVBQTRCSSxPQUFPSCxJQUFuQyxFQUF5Q0csT0FBT0YsTUFBaEQsRUFDTEUsT0FBT0MsTUFERixFQUNVRCxPQUFPWixJQURqQixFQUN1QkwsS0FBS21CLE1BRDVCLENBQVQ7QUFFSCxTQUhELE1BR087QUFDSEgscUJBQVMsNkJBQW1CSCxPQUFuQixFQUE0QkMsSUFBNUIsRUFBa0NDLE1BQWxDLEVBQ0wsS0FBS2hCLEdBREEsRUFDSyxLQUFLTSxJQURWLEVBQ2dCTCxLQUFLbUIsTUFEckIsQ0FBVDtBQUVIOztBQUVESCxlQUFPSSxLQUFQLEdBQWUsRUFBRU4sVUFBRixFQUFRQyxjQUFSLEVBQWdCRyxRQUFRLEtBQUtuQixHQUE3QixFQUFmO0FBQ0EsWUFBSyxLQUFLTSxJQUFWLEVBQWlCVyxPQUFPSSxLQUFQLENBQWFmLElBQWIsR0FBb0IsS0FBS0EsSUFBekI7O0FBRWpCLGVBQU9XLE1BQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7b0JBYUFDLE0sbUJBQU9ILEksRUFBTUMsTSxFQUFRO0FBQ2pCLFlBQUssQ0FBQyxLQUFLUixHQUFYLEVBQWlCLE9BQU8sS0FBUDtBQUNqQixZQUFJRSxXQUFXLEtBQUtGLEdBQUwsQ0FBU0UsUUFBVCxFQUFmOztBQUVBLFlBQUlOLE9BQU9NLFNBQVNZLG1CQUFULENBQTZCLEVBQUVQLFVBQUYsRUFBUUMsY0FBUixFQUE3QixDQUFYO0FBQ0EsWUFBSyxDQUFDWixLQUFLZSxNQUFYLEVBQW9CLE9BQU8sS0FBUDs7QUFFcEIsWUFBSUYsU0FBUztBQUNUWCxrQkFBUSxLQUFLSyxVQUFMLENBQWdCUCxLQUFLZSxNQUFyQixDQURDO0FBRVRKLGtCQUFRWCxLQUFLVyxJQUZKO0FBR1RDLG9CQUFRWixLQUFLWTtBQUhKLFNBQWI7O0FBTUEsWUFBSUcsU0FBU1QsU0FBU2EsZ0JBQVQsQ0FBMEJuQixLQUFLZSxNQUEvQixDQUFiO0FBQ0EsWUFBS0EsTUFBTCxFQUFjRixPQUFPRSxNQUFQLEdBQWdCQSxNQUFoQjs7QUFFZCxlQUFPRixNQUFQO0FBQ0gsSzs7b0JBRUROLFUsdUJBQVdMLEksRUFBTTtBQUNiLFlBQUssWUFBWUQsSUFBWixDQUFpQkMsSUFBakIsQ0FBTCxFQUE4QjtBQUMxQixtQkFBT0EsSUFBUDtBQUNILFNBRkQsTUFFTztBQUNILG1CQUFPLGVBQUtDLE9BQUwsQ0FBYSxLQUFLQyxHQUFMLENBQVNFLFFBQVQsR0FBb0JjLFVBQXBCLElBQWtDLEdBQS9DLEVBQW9EbEIsSUFBcEQsQ0FBUDtBQUNIO0FBQ0osSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs0QkFZVztBQUNQLG1CQUFPLEtBQUtBLElBQUwsSUFBYSxLQUFLTSxFQUF6QjtBQUNIOzs7Ozs7a0JBSVViLEs7O0FBRWYiLCJmaWxlIjoiaW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgQ3NzU3ludGF4RXJyb3IgZnJvbSAnLi9jc3Mtc3ludGF4LWVycm9yJztcbmltcG9ydCBQcmV2aW91c01hcCAgICBmcm9tICcuL3ByZXZpb3VzLW1hcCc7XG5cbmltcG9ydCBwYXRoIGZyb20gJ3BhdGgnO1xuXG5sZXQgc2VxdWVuY2UgPSAwO1xuXG4vKipcbiAqIFJlcHJlc2VudHMgdGhlIHNvdXJjZSBDU1MuXG4gKlxuICogQGV4YW1wbGVcbiAqIGNvbnN0IHJvb3QgID0gcG9zdGNzcy5wYXJzZShjc3MsIHsgZnJvbTogZmlsZSB9KTtcbiAqIGNvbnN0IGlucHV0ID0gcm9vdC5zb3VyY2UuaW5wdXQ7XG4gKi9cbmNsYXNzIElucHV0IHtcblxuICAgIC8qKlxuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBjc3MgICAgLSBpbnB1dCBDU1Mgc291cmNlXG4gICAgICogQHBhcmFtIHtvYmplY3R9IFtvcHRzXSAtIHtAbGluayBQcm9jZXNzb3IjcHJvY2Vzc30gb3B0aW9uc1xuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKGNzcywgb3B0cyA9IHsgfSkge1xuICAgICAgICAvKipcbiAgICAgICAgICogQG1lbWJlciB7c3RyaW5nfSAtIGlucHV0IENTUyBzb3VyY2VcbiAgICAgICAgICpcbiAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICogY29uc3QgaW5wdXQgPSBwb3N0Y3NzLnBhcnNlKCdhe30nLCB7IGZyb206IGZpbGUgfSkuaW5wdXQ7XG4gICAgICAgICAqIGlucHV0LmNzcyAvLz0+IFwiYXt9XCI7XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLmNzcyA9IGNzcy50b1N0cmluZygpO1xuXG4gICAgICAgIGlmICggdGhpcy5jc3NbMF0gPT09ICdcXHVGRUZGJyB8fCB0aGlzLmNzc1swXSA9PT0gJ1xcdUZGRkUnICkge1xuICAgICAgICAgICAgdGhpcy5jc3MgPSB0aGlzLmNzcy5zbGljZSgxKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggb3B0cy5mcm9tICkge1xuICAgICAgICAgICAgaWYgKCAvXlxcdys6XFwvXFwvLy50ZXN0KG9wdHMuZnJvbSkgKSB7XG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogQG1lbWJlciB7c3RyaW5nfSAtIFRoZSBhYnNvbHV0ZSBwYXRoIHRvIHRoZSBDU1Mgc291cmNlIGZpbGVcbiAgICAgICAgICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgZGVmaW5lZCB3aXRoIHRoZSBgZnJvbWAgb3B0aW9uLlxuICAgICAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICAgICAgICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZShjc3MsIHsgZnJvbTogJ2EuY3NzJyB9KTtcbiAgICAgICAgICAgICAgICAgKiByb290LnNvdXJjZS5pbnB1dC5maWxlIC8vPT4gJy9ob21lL2FpL2EuY3NzJ1xuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgIHRoaXMuZmlsZSA9IG9wdHMuZnJvbTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5maWxlID0gcGF0aC5yZXNvbHZlKG9wdHMuZnJvbSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgbWFwID0gbmV3IFByZXZpb3VzTWFwKHRoaXMuY3NzLCBvcHRzKTtcbiAgICAgICAgaWYgKCBtYXAudGV4dCApIHtcbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogQG1lbWJlciB7UHJldmlvdXNNYXB9IC0gVGhlIGlucHV0IHNvdXJjZSBtYXAgcGFzc2VkIGZyb21cbiAgICAgICAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgIGEgY29tcGlsYXRpb24gc3RlcCBiZWZvcmUgUG9zdENTU1xuICAgICAgICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgKGZvciBleGFtcGxlLCBmcm9tIFNhc3MgY29tcGlsZXIpLlxuICAgICAgICAgICAgICpcbiAgICAgICAgICAgICAqIEBleGFtcGxlXG4gICAgICAgICAgICAgKiByb290LnNvdXJjZS5pbnB1dC5tYXAuY29uc3VtZXIoKS5zb3VyY2VzIC8vPT4gWydhLnNhc3MnXVxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICB0aGlzLm1hcCA9IG1hcDtcbiAgICAgICAgICAgIGxldCBmaWxlID0gbWFwLmNvbnN1bWVyKCkuZmlsZTtcbiAgICAgICAgICAgIGlmICggIXRoaXMuZmlsZSAmJiBmaWxlICkgdGhpcy5maWxlID0gdGhpcy5tYXBSZXNvbHZlKGZpbGUpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCAhdGhpcy5maWxlICkge1xuICAgICAgICAgICAgc2VxdWVuY2UgKz0gMTtcbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogQG1lbWJlciB7c3RyaW5nfSAtIFRoZSB1bmlxdWUgSUQgb2YgdGhlIENTUyBzb3VyY2UuIEl0IHdpbGwgYmVcbiAgICAgICAgICAgICAqICAgICAgICAgICAgICAgICAgICBjcmVhdGVkIGlmIGBmcm9tYCBvcHRpb24gaXMgbm90IHByb3ZpZGVkXG4gICAgICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgKGJlY2F1c2UgUG9zdENTUyBkb2VzIG5vdCBrbm93IHRoZSBmaWxlIHBhdGgpLlxuICAgICAgICAgICAgICpcbiAgICAgICAgICAgICAqIEBleGFtcGxlXG4gICAgICAgICAgICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZShjc3MpO1xuICAgICAgICAgICAgICogcm9vdC5zb3VyY2UuaW5wdXQuZmlsZSAvLz0+IHVuZGVmaW5lZFxuICAgICAgICAgICAgICogcm9vdC5zb3VyY2UuaW5wdXQuaWQgICAvLz0+IFwiPGlucHV0IGNzcyAxPlwiXG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIHRoaXMuaWQgICA9ICc8aW5wdXQgY3NzICcgKyBzZXF1ZW5jZSArICc+JztcbiAgICAgICAgfVxuICAgICAgICBpZiAoIHRoaXMubWFwICkgdGhpcy5tYXAuZmlsZSA9IHRoaXMuZnJvbTtcbiAgICB9XG5cbiAgICBlcnJvcihtZXNzYWdlLCBsaW5lLCBjb2x1bW4sIG9wdHMgPSB7IH0pIHtcbiAgICAgICAgbGV0IHJlc3VsdDtcbiAgICAgICAgbGV0IG9yaWdpbiA9IHRoaXMub3JpZ2luKGxpbmUsIGNvbHVtbik7XG4gICAgICAgIGlmICggb3JpZ2luICkge1xuICAgICAgICAgICAgcmVzdWx0ID0gbmV3IENzc1N5bnRheEVycm9yKG1lc3NhZ2UsIG9yaWdpbi5saW5lLCBvcmlnaW4uY29sdW1uLFxuICAgICAgICAgICAgICAgIG9yaWdpbi5zb3VyY2UsIG9yaWdpbi5maWxlLCBvcHRzLnBsdWdpbik7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXN1bHQgPSBuZXcgQ3NzU3ludGF4RXJyb3IobWVzc2FnZSwgbGluZSwgY29sdW1uLFxuICAgICAgICAgICAgICAgIHRoaXMuY3NzLCB0aGlzLmZpbGUsIG9wdHMucGx1Z2luKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJlc3VsdC5pbnB1dCA9IHsgbGluZSwgY29sdW1uLCBzb3VyY2U6IHRoaXMuY3NzIH07XG4gICAgICAgIGlmICggdGhpcy5maWxlICkgcmVzdWx0LmlucHV0LmZpbGUgPSB0aGlzLmZpbGU7XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZWFkcyB0aGUgaW5wdXQgc291cmNlIG1hcCBhbmQgcmV0dXJucyBhIHN5bWJvbCBwb3NpdGlvblxuICAgICAqIGluIHRoZSBpbnB1dCBzb3VyY2UgKGUuZy4sIGluIGEgU2FzcyBmaWxlIHRoYXQgd2FzIGNvbXBpbGVkXG4gICAgICogdG8gQ1NTIGJlZm9yZSBiZWluZyBwYXNzZWQgdG8gUG9zdENTUykuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge251bWJlcn0gbGluZSAgIC0gbGluZSBpbiBpbnB1dCBDU1NcbiAgICAgKiBAcGFyYW0ge251bWJlcn0gY29sdW1uIC0gY29sdW1uIGluIGlucHV0IENTU1xuICAgICAqXG4gICAgICogQHJldHVybiB7ZmlsZVBvc2l0aW9ufSBwb3NpdGlvbiBpbiBpbnB1dCBzb3VyY2VcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcm9vdC5zb3VyY2UuaW5wdXQub3JpZ2luKDEsIDEpIC8vPT4geyBmaWxlOiAnYS5jc3MnLCBsaW5lOiAzLCBjb2x1bW46IDEgfVxuICAgICAqL1xuICAgIG9yaWdpbihsaW5lLCBjb2x1bW4pIHtcbiAgICAgICAgaWYgKCAhdGhpcy5tYXAgKSByZXR1cm4gZmFsc2U7XG4gICAgICAgIGxldCBjb25zdW1lciA9IHRoaXMubWFwLmNvbnN1bWVyKCk7XG5cbiAgICAgICAgbGV0IGZyb20gPSBjb25zdW1lci5vcmlnaW5hbFBvc2l0aW9uRm9yKHsgbGluZSwgY29sdW1uIH0pO1xuICAgICAgICBpZiAoICFmcm9tLnNvdXJjZSApIHJldHVybiBmYWxzZTtcblxuICAgICAgICBsZXQgcmVzdWx0ID0ge1xuICAgICAgICAgICAgZmlsZTogICB0aGlzLm1hcFJlc29sdmUoZnJvbS5zb3VyY2UpLFxuICAgICAgICAgICAgbGluZTogICBmcm9tLmxpbmUsXG4gICAgICAgICAgICBjb2x1bW46IGZyb20uY29sdW1uXG4gICAgICAgIH07XG5cbiAgICAgICAgbGV0IHNvdXJjZSA9IGNvbnN1bWVyLnNvdXJjZUNvbnRlbnRGb3IoZnJvbS5zb3VyY2UpO1xuICAgICAgICBpZiAoIHNvdXJjZSApIHJlc3VsdC5zb3VyY2UgPSBzb3VyY2U7XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbiAgICBtYXBSZXNvbHZlKGZpbGUpIHtcbiAgICAgICAgaWYgKCAvXlxcdys6XFwvXFwvLy50ZXN0KGZpbGUpICkge1xuICAgICAgICAgICAgcmV0dXJuIGZpbGU7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gcGF0aC5yZXNvbHZlKHRoaXMubWFwLmNvbnN1bWVyKCkuc291cmNlUm9vdCB8fCAnLicsIGZpbGUpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogVGhlIENTUyBzb3VyY2UgaWRlbnRpZmllci4gQ29udGFpbnMge0BsaW5rIElucHV0I2ZpbGV9IGlmIHRoZSB1c2VyXG4gICAgICogc2V0IHRoZSBgZnJvbWAgb3B0aW9uLCBvciB7QGxpbmsgSW5wdXQjaWR9IGlmIHRoZXkgZGlkIG5vdC5cbiAgICAgKiBAdHlwZSB7c3RyaW5nfVxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZShjc3MsIHsgZnJvbTogJ2EuY3NzJyB9KTtcbiAgICAgKiByb290LnNvdXJjZS5pbnB1dC5mcm9tIC8vPT4gXCIvaG9tZS9haS9hLmNzc1wiXG4gICAgICpcbiAgICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZShjc3MpO1xuICAgICAqIHJvb3Quc291cmNlLmlucHV0LmZyb20gLy89PiBcIjxpbnB1dCBjc3MgMT5cIlxuICAgICAqL1xuICAgIGdldCBmcm9tKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5maWxlIHx8IHRoaXMuaWQ7XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IElucHV0O1xuXG4vKipcbiAqIEB0eXBlZGVmICB7b2JqZWN0fSBmaWxlUG9zaXRpb25cbiAqIEBwcm9wZXJ0eSB7c3RyaW5nfSBmaWxlICAgLSBwYXRoIHRvIGZpbGVcbiAqIEBwcm9wZXJ0eSB7bnVtYmVyfSBsaW5lICAgLSBzb3VyY2UgbGluZSBpbiBmaWxlXG4gKiBAcHJvcGVydHkge251bWJlcn0gY29sdW1uIC0gc291cmNlIGNvbHVtbiBpbiBmaWxlXG4gKi9cbiJdfQ== diff --git a/node_modules/postcss/lib/lazy-result.js b/node_modules/postcss/lib/lazy-result.js deleted file mode 100644 index 6fbd9bd..0000000 --- a/node_modules/postcss/lib/lazy-result.js +++ /dev/null @@ -1,432 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _mapGenerator = require('./map-generator'); - -var _mapGenerator2 = _interopRequireDefault(_mapGenerator); - -var _stringify2 = require('./stringify'); - -var _stringify3 = _interopRequireDefault(_stringify2); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _result = require('./result'); - -var _result2 = _interopRequireDefault(_result); - -var _parse = require('./parse'); - -var _parse2 = _interopRequireDefault(_parse); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function isPromise(obj) { - return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && typeof obj.then === 'function'; -} - -/** - * A Promise proxy for the result of PostCSS transformations. - * - * A `LazyResult` instance is returned by {@link Processor#process}. - * - * @example - * const lazy = postcss([cssnext]).process(css); - */ - -var LazyResult = function () { - function LazyResult(processor, css, opts) { - _classCallCheck(this, LazyResult); - - this.stringified = false; - this.processed = false; - - var root = void 0; - if ((typeof css === 'undefined' ? 'undefined' : _typeof(css)) === 'object' && css.type === 'root') { - root = css; - } else if (css instanceof LazyResult || css instanceof _result2.default) { - root = css.root; - if (css.map) { - if (typeof opts.map === 'undefined') opts.map = {}; - if (!opts.map.inline) opts.map.inline = false; - opts.map.prev = css.map; - } - } else { - var parser = _parse2.default; - if (opts.syntax) parser = opts.syntax.parse; - if (opts.parser) parser = opts.parser; - if (parser.parse) parser = parser.parse; - - try { - root = parser(css, opts); - } catch (error) { - this.error = error; - } - } - - this.result = new _result2.default(processor, root, opts); - } - - /** - * Returns a {@link Processor} instance, which will be used - * for CSS transformations. - * @type {Processor} - */ - - - /** - * Processes input CSS through synchronous plugins - * and calls {@link Result#warnings()}. - * - * @return {Warning[]} warnings from plugins - */ - LazyResult.prototype.warnings = function warnings() { - return this.sync().warnings(); - }; - - /** - * Alias for the {@link LazyResult#css} property. - * - * @example - * lazy + '' === lazy.css; - * - * @return {string} output CSS - */ - - - LazyResult.prototype.toString = function toString() { - return this.css; - }; - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls `onFulfilled` with a Result instance. If a plugin throws - * an error, the `onRejected` callback will be executed. - * - * It implements standard Promise API. - * - * @param {onFulfilled} onFulfilled - callback will be executed - * when all plugins will finish work - * @param {onRejected} onRejected - callback will be executed on any error - * - * @return {Promise} Promise API to make queue - * - * @example - * postcss([cssnext]).process(css).then(result => { - * console.log(result.css); - * }); - */ - - - LazyResult.prototype.then = function then(onFulfilled, onRejected) { - return this.async().then(onFulfilled, onRejected); - }; - - /** - * Processes input CSS through synchronous and asynchronous plugins - * and calls onRejected for each error thrown in any plugin. - * - * It implements standard Promise API. - * - * @param {onRejected} onRejected - callback will be executed on any error - * - * @return {Promise} Promise API to make queue - * - * @example - * postcss([cssnext]).process(css).then(result => { - * console.log(result.css); - * }).catch(error => { - * console.error(error); - * }); - */ - - - LazyResult.prototype.catch = function _catch(onRejected) { - return this.async().catch(onRejected); - }; - - LazyResult.prototype.handleError = function handleError(error, plugin) { - try { - this.error = error; - if (error.name === 'CssSyntaxError' && !error.plugin) { - error.plugin = plugin.postcssPlugin; - error.setMessage(); - } else if (plugin.postcssVersion) { - var pluginName = plugin.postcssPlugin; - var pluginVer = plugin.postcssVersion; - var runtimeVer = this.result.processor.version; - var a = pluginVer.split('.'); - var b = runtimeVer.split('.'); - - if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) { - (0, _warnOnce2.default)('Your current PostCSS version ' + 'is ' + runtimeVer + ', but ' + pluginName + ' ' + 'uses ' + pluginVer + '. Perhaps this is ' + 'the source of the error below.'); - } - } - } catch (err) { - if (console && console.error) console.error(err); - } - }; - - LazyResult.prototype.asyncTick = function asyncTick(resolve, reject) { - var _this = this; - - if (this.plugin >= this.processor.plugins.length) { - this.processed = true; - return resolve(); - } - - try { - var plugin = this.processor.plugins[this.plugin]; - var promise = this.run(plugin); - this.plugin += 1; - - if (isPromise(promise)) { - promise.then(function () { - _this.asyncTick(resolve, reject); - }).catch(function (error) { - _this.handleError(error, plugin); - _this.processed = true; - reject(error); - }); - } else { - this.asyncTick(resolve, reject); - } - } catch (error) { - this.processed = true; - reject(error); - } - }; - - LazyResult.prototype.async = function async() { - var _this2 = this; - - if (this.processed) { - return new Promise(function (resolve, reject) { - if (_this2.error) { - reject(_this2.error); - } else { - resolve(_this2.stringify()); - } - }); - } - if (this.processing) { - return this.processing; - } - - this.processing = new Promise(function (resolve, reject) { - if (_this2.error) return reject(_this2.error); - _this2.plugin = 0; - _this2.asyncTick(resolve, reject); - }).then(function () { - _this2.processed = true; - return _this2.stringify(); - }); - - return this.processing; - }; - - LazyResult.prototype.sync = function sync() { - if (this.processed) return this.result; - this.processed = true; - - if (this.processing) { - throw new Error('Use process(css).then(cb) to work with async plugins'); - } - - if (this.error) throw this.error; - - for (var _iterator = this.result.processor.plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var plugin = _ref; - - var promise = this.run(plugin); - if (isPromise(promise)) { - throw new Error('Use process(css).then(cb) to work with async plugins'); - } - } - - return this.result; - }; - - LazyResult.prototype.run = function run(plugin) { - this.result.lastPlugin = plugin; - - try { - return plugin(this.result.root, this.result); - } catch (error) { - this.handleError(error, plugin); - throw error; - } - }; - - LazyResult.prototype.stringify = function stringify() { - if (this.stringified) return this.result; - this.stringified = true; - - this.sync(); - - var opts = this.result.opts; - var str = _stringify3.default; - if (opts.syntax) str = opts.syntax.stringify; - if (opts.stringifier) str = opts.stringifier; - if (str.stringify) str = str.stringify; - - var map = new _mapGenerator2.default(str, this.result.root, this.result.opts); - var data = map.generate(); - this.result.css = data[0]; - this.result.map = data[1]; - - return this.result; - }; - - _createClass(LazyResult, [{ - key: 'processor', - get: function get() { - return this.result.processor; - } - - /** - * Options from the {@link Processor#process} call. - * @type {processOptions} - */ - - }, { - key: 'opts', - get: function get() { - return this.result.opts; - } - - /** - * Processes input CSS through synchronous plugins, converts `Root` - * to a CSS string and returns {@link Result#css}. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {string} - * @see Result#css - */ - - }, { - key: 'css', - get: function get() { - return this.stringify().css; - } - - /** - * An alias for the `css` property. Use it with syntaxes - * that generate non-CSS output. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {string} - * @see Result#content - */ - - }, { - key: 'content', - get: function get() { - return this.stringify().content; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#map}. - * - * This property will only work with synchronous plugins. - * If the processor contains any asynchronous plugins - * it will throw an error. This is why this method is only - * for debug purpose, you should always use {@link LazyResult#then}. - * - * @type {SourceMapGenerator} - * @see Result#map - */ - - }, { - key: 'map', - get: function get() { - return this.stringify().map; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#root}. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * This is why this method is only for debug purpose, - * you should always use {@link LazyResult#then}. - * - * @type {Root} - * @see Result#root - */ - - }, { - key: 'root', - get: function get() { - return this.sync().root; - } - - /** - * Processes input CSS through synchronous plugins - * and returns {@link Result#messages}. - * - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. - * - * This is why this method is only for debug purpose, - * you should always use {@link LazyResult#then}. - * - * @type {Message[]} - * @see Result#messages - */ - - }, { - key: 'messages', - get: function get() { - return this.sync().messages; - } - }]); - - return LazyResult; -}(); - -exports.default = LazyResult; - -/** - * @callback onFulfilled - * @param {Result} result - */ - -/** - * @callback onRejected - * @param {Error} error - */ - -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhenktcmVzdWx0LmVzNiJdLCJuYW1lcyI6WyJpc1Byb21pc2UiLCJvYmoiLCJ0aGVuIiwiTGF6eVJlc3VsdCIsInByb2Nlc3NvciIsImNzcyIsIm9wdHMiLCJzdHJpbmdpZmllZCIsInByb2Nlc3NlZCIsInJvb3QiLCJ0eXBlIiwibWFwIiwiaW5saW5lIiwicHJldiIsInBhcnNlciIsInN5bnRheCIsInBhcnNlIiwiZXJyb3IiLCJyZXN1bHQiLCJ3YXJuaW5ncyIsInN5bmMiLCJ0b1N0cmluZyIsIm9uRnVsZmlsbGVkIiwib25SZWplY3RlZCIsImFzeW5jIiwiY2F0Y2giLCJoYW5kbGVFcnJvciIsInBsdWdpbiIsIm5hbWUiLCJwb3N0Y3NzUGx1Z2luIiwic2V0TWVzc2FnZSIsInBvc3Rjc3NWZXJzaW9uIiwicGx1Z2luTmFtZSIsInBsdWdpblZlciIsInJ1bnRpbWVWZXIiLCJ2ZXJzaW9uIiwiYSIsInNwbGl0IiwiYiIsInBhcnNlSW50IiwiZXJyIiwiY29uc29sZSIsImFzeW5jVGljayIsInJlc29sdmUiLCJyZWplY3QiLCJwbHVnaW5zIiwibGVuZ3RoIiwicHJvbWlzZSIsInJ1biIsIlByb21pc2UiLCJzdHJpbmdpZnkiLCJwcm9jZXNzaW5nIiwiRXJyb3IiLCJsYXN0UGx1Z2luIiwic3RyIiwic3RyaW5naWZpZXIiLCJkYXRhIiwiZ2VuZXJhdGUiLCJjb250ZW50IiwibWVzc2FnZXMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7Ozs7QUFFQSxTQUFTQSxTQUFULENBQW1CQyxHQUFuQixFQUF3QjtBQUNwQixXQUFPLFFBQU9BLEdBQVAseUNBQU9BLEdBQVAsT0FBZSxRQUFmLElBQTJCLE9BQU9BLElBQUlDLElBQVgsS0FBb0IsVUFBdEQ7QUFDSDs7QUFFRDs7Ozs7Ozs7O0lBUU1DLFU7QUFFRix3QkFBWUMsU0FBWixFQUF1QkMsR0FBdkIsRUFBNEJDLElBQTVCLEVBQWtDO0FBQUE7O0FBQzlCLGFBQUtDLFdBQUwsR0FBbUIsS0FBbkI7QUFDQSxhQUFLQyxTQUFMLEdBQW1CLEtBQW5COztBQUVBLFlBQUlDLGFBQUo7QUFDQSxZQUFLLFFBQU9KLEdBQVAseUNBQU9BLEdBQVAsT0FBZSxRQUFmLElBQTJCQSxJQUFJSyxJQUFKLEtBQWEsTUFBN0MsRUFBc0Q7QUFDbERELG1CQUFPSixHQUFQO0FBQ0gsU0FGRCxNQUVPLElBQUtBLGVBQWVGLFVBQWYsSUFBNkJFLCtCQUFsQyxFQUEwRDtBQUM3REksbUJBQU9KLElBQUlJLElBQVg7QUFDQSxnQkFBS0osSUFBSU0sR0FBVCxFQUFlO0FBQ1gsb0JBQUssT0FBT0wsS0FBS0ssR0FBWixLQUFvQixXQUF6QixFQUF1Q0wsS0FBS0ssR0FBTCxHQUFXLEVBQVg7QUFDdkMsb0JBQUssQ0FBQ0wsS0FBS0ssR0FBTCxDQUFTQyxNQUFmLEVBQXdCTixLQUFLSyxHQUFMLENBQVNDLE1BQVQsR0FBa0IsS0FBbEI7QUFDeEJOLHFCQUFLSyxHQUFMLENBQVNFLElBQVQsR0FBZ0JSLElBQUlNLEdBQXBCO0FBQ0g7QUFDSixTQVBNLE1BT0E7QUFDSCxnQkFBSUcsd0JBQUo7QUFDQSxnQkFBS1IsS0FBS1MsTUFBVixFQUFvQkQsU0FBU1IsS0FBS1MsTUFBTCxDQUFZQyxLQUFyQjtBQUNwQixnQkFBS1YsS0FBS1EsTUFBVixFQUFvQkEsU0FBU1IsS0FBS1EsTUFBZDtBQUNwQixnQkFBS0EsT0FBT0UsS0FBWixFQUFvQkYsU0FBU0EsT0FBT0UsS0FBaEI7O0FBRXBCLGdCQUFJO0FBQ0FQLHVCQUFPSyxPQUFPVCxHQUFQLEVBQVlDLElBQVosQ0FBUDtBQUNILGFBRkQsQ0FFRSxPQUFPVyxLQUFQLEVBQWM7QUFDWixxQkFBS0EsS0FBTCxHQUFhQSxLQUFiO0FBQ0g7QUFDSjs7QUFFRCxhQUFLQyxNQUFMLEdBQWMscUJBQVdkLFNBQVgsRUFBc0JLLElBQXRCLEVBQTRCSCxJQUE1QixDQUFkO0FBQ0g7O0FBRUQ7Ozs7Ozs7QUFtR0E7Ozs7Ozt5QkFNQWEsUSx1QkFBVztBQUNQLGVBQU8sS0FBS0MsSUFBTCxHQUFZRCxRQUFaLEVBQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7O3lCQVFBRSxRLHVCQUFXO0FBQ1AsZUFBTyxLQUFLaEIsR0FBWjtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3lCQWtCQUgsSSxpQkFBS29CLFcsRUFBYUMsVSxFQUFZO0FBQzFCLGVBQU8sS0FBS0MsS0FBTCxHQUFhdEIsSUFBYixDQUFrQm9CLFdBQWxCLEVBQStCQyxVQUEvQixDQUFQO0FBQ0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozt5QkFpQkFFLEssbUJBQU1GLFUsRUFBWTtBQUNkLGVBQU8sS0FBS0MsS0FBTCxHQUFhQyxLQUFiLENBQW1CRixVQUFuQixDQUFQO0FBQ0gsSzs7eUJBRURHLFcsd0JBQVlULEssRUFBT1UsTSxFQUFRO0FBQ3ZCLFlBQUk7QUFDQSxpQkFBS1YsS0FBTCxHQUFhQSxLQUFiO0FBQ0EsZ0JBQUtBLE1BQU1XLElBQU4sS0FBZSxnQkFBZixJQUFtQyxDQUFDWCxNQUFNVSxNQUEvQyxFQUF3RDtBQUNwRFYsc0JBQU1VLE1BQU4sR0FBZUEsT0FBT0UsYUFBdEI7QUFDQVosc0JBQU1hLFVBQU47QUFDSCxhQUhELE1BR08sSUFBS0gsT0FBT0ksY0FBWixFQUE2QjtBQUNoQyxvQkFBSUMsYUFBYUwsT0FBT0UsYUFBeEI7QUFDQSxvQkFBSUksWUFBYU4sT0FBT0ksY0FBeEI7QUFDQSxvQkFBSUcsYUFBYSxLQUFLaEIsTUFBTCxDQUFZZCxTQUFaLENBQXNCK0IsT0FBdkM7QUFDQSxvQkFBSUMsSUFBSUgsVUFBVUksS0FBVixDQUFnQixHQUFoQixDQUFSO0FBQ0Esb0JBQUlDLElBQUlKLFdBQVdHLEtBQVgsQ0FBaUIsR0FBakIsQ0FBUjs7QUFFQSxvQkFBS0QsRUFBRSxDQUFGLE1BQVNFLEVBQUUsQ0FBRixDQUFULElBQWlCQyxTQUFTSCxFQUFFLENBQUYsQ0FBVCxJQUFpQkcsU0FBU0QsRUFBRSxDQUFGLENBQVQsQ0FBdkMsRUFBd0Q7QUFDcEQsNENBQVMsa0NBQ0EsS0FEQSxHQUNRSixVQURSLEdBQ3FCLFFBRHJCLEdBQ2dDRixVQURoQyxHQUM2QyxHQUQ3QyxHQUVBLE9BRkEsR0FFVUMsU0FGVixHQUVzQixvQkFGdEIsR0FHQSxnQ0FIVDtBQUlIO0FBQ0o7QUFDSixTQW5CRCxDQW1CRSxPQUFPTyxHQUFQLEVBQVk7QUFDVixnQkFBS0MsV0FBV0EsUUFBUXhCLEtBQXhCLEVBQWdDd0IsUUFBUXhCLEtBQVIsQ0FBY3VCLEdBQWQ7QUFDbkM7QUFDSixLOzt5QkFFREUsUyxzQkFBVUMsTyxFQUFTQyxNLEVBQVE7QUFBQTs7QUFDdkIsWUFBSyxLQUFLakIsTUFBTCxJQUFlLEtBQUt2QixTQUFMLENBQWV5QyxPQUFmLENBQXVCQyxNQUEzQyxFQUFvRDtBQUNoRCxpQkFBS3RDLFNBQUwsR0FBaUIsSUFBakI7QUFDQSxtQkFBT21DLFNBQVA7QUFDSDs7QUFFRCxZQUFJO0FBQ0EsZ0JBQUloQixTQUFVLEtBQUt2QixTQUFMLENBQWV5QyxPQUFmLENBQXVCLEtBQUtsQixNQUE1QixDQUFkO0FBQ0EsZ0JBQUlvQixVQUFVLEtBQUtDLEdBQUwsQ0FBU3JCLE1BQVQsQ0FBZDtBQUNBLGlCQUFLQSxNQUFMLElBQWUsQ0FBZjs7QUFFQSxnQkFBSzNCLFVBQVUrQyxPQUFWLENBQUwsRUFBMEI7QUFDdEJBLHdCQUFRN0MsSUFBUixDQUFjLFlBQU07QUFDaEIsMEJBQUt3QyxTQUFMLENBQWVDLE9BQWYsRUFBd0JDLE1BQXhCO0FBQ0gsaUJBRkQsRUFFR25CLEtBRkgsQ0FFVSxpQkFBUztBQUNmLDBCQUFLQyxXQUFMLENBQWlCVCxLQUFqQixFQUF3QlUsTUFBeEI7QUFDQSwwQkFBS25CLFNBQUwsR0FBaUIsSUFBakI7QUFDQW9DLDJCQUFPM0IsS0FBUDtBQUNILGlCQU5EO0FBT0gsYUFSRCxNQVFPO0FBQ0gscUJBQUt5QixTQUFMLENBQWVDLE9BQWYsRUFBd0JDLE1BQXhCO0FBQ0g7QUFFSixTQWpCRCxDQWlCRSxPQUFPM0IsS0FBUCxFQUFjO0FBQ1osaUJBQUtULFNBQUwsR0FBaUIsSUFBakI7QUFDQW9DLG1CQUFPM0IsS0FBUDtBQUNIO0FBQ0osSzs7eUJBRURPLEssb0JBQVE7QUFBQTs7QUFDSixZQUFLLEtBQUtoQixTQUFWLEVBQXNCO0FBQ2xCLG1CQUFPLElBQUl5QyxPQUFKLENBQWEsVUFBQ04sT0FBRCxFQUFVQyxNQUFWLEVBQXFCO0FBQ3JDLG9CQUFLLE9BQUszQixLQUFWLEVBQWtCO0FBQ2QyQiwyQkFBTyxPQUFLM0IsS0FBWjtBQUNILGlCQUZELE1BRU87QUFDSDBCLDRCQUFRLE9BQUtPLFNBQUwsRUFBUjtBQUNIO0FBQ0osYUFOTSxDQUFQO0FBT0g7QUFDRCxZQUFLLEtBQUtDLFVBQVYsRUFBdUI7QUFDbkIsbUJBQU8sS0FBS0EsVUFBWjtBQUNIOztBQUVELGFBQUtBLFVBQUwsR0FBa0IsSUFBSUYsT0FBSixDQUFhLFVBQUNOLE9BQUQsRUFBVUMsTUFBVixFQUFxQjtBQUNoRCxnQkFBSyxPQUFLM0IsS0FBVixFQUFrQixPQUFPMkIsT0FBTyxPQUFLM0IsS0FBWixDQUFQO0FBQ2xCLG1CQUFLVSxNQUFMLEdBQWMsQ0FBZDtBQUNBLG1CQUFLZSxTQUFMLENBQWVDLE9BQWYsRUFBd0JDLE1BQXhCO0FBQ0gsU0FKaUIsRUFJZjFDLElBSmUsQ0FJVCxZQUFNO0FBQ1gsbUJBQUtNLFNBQUwsR0FBaUIsSUFBakI7QUFDQSxtQkFBTyxPQUFLMEMsU0FBTCxFQUFQO0FBQ0gsU0FQaUIsQ0FBbEI7O0FBU0EsZUFBTyxLQUFLQyxVQUFaO0FBQ0gsSzs7eUJBRUQvQixJLG1CQUFPO0FBQ0gsWUFBSyxLQUFLWixTQUFWLEVBQXNCLE9BQU8sS0FBS1UsTUFBWjtBQUN0QixhQUFLVixTQUFMLEdBQWlCLElBQWpCOztBQUVBLFlBQUssS0FBSzJDLFVBQVYsRUFBdUI7QUFDbkIsa0JBQU0sSUFBSUMsS0FBSixDQUNGLHNEQURFLENBQU47QUFFSDs7QUFFRCxZQUFLLEtBQUtuQyxLQUFWLEVBQWtCLE1BQU0sS0FBS0EsS0FBWDs7QUFFbEIsNkJBQW9CLEtBQUtDLE1BQUwsQ0FBWWQsU0FBWixDQUFzQnlDLE9BQTFDLGtIQUFvRDtBQUFBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBQUEsZ0JBQTFDbEIsTUFBMEM7O0FBQ2hELGdCQUFJb0IsVUFBVSxLQUFLQyxHQUFMLENBQVNyQixNQUFULENBQWQ7QUFDQSxnQkFBSzNCLFVBQVUrQyxPQUFWLENBQUwsRUFBMEI7QUFDdEIsc0JBQU0sSUFBSUssS0FBSixDQUNGLHNEQURFLENBQU47QUFFSDtBQUNKOztBQUVELGVBQU8sS0FBS2xDLE1BQVo7QUFDSCxLOzt5QkFFRDhCLEcsZ0JBQUlyQixNLEVBQVE7QUFDUixhQUFLVCxNQUFMLENBQVltQyxVQUFaLEdBQXlCMUIsTUFBekI7O0FBRUEsWUFBSTtBQUNBLG1CQUFPQSxPQUFPLEtBQUtULE1BQUwsQ0FBWVQsSUFBbkIsRUFBeUIsS0FBS1MsTUFBOUIsQ0FBUDtBQUNILFNBRkQsQ0FFRSxPQUFPRCxLQUFQLEVBQWM7QUFDWixpQkFBS1MsV0FBTCxDQUFpQlQsS0FBakIsRUFBd0JVLE1BQXhCO0FBQ0Esa0JBQU1WLEtBQU47QUFDSDtBQUNKLEs7O3lCQUVEaUMsUyx3QkFBWTtBQUNSLFlBQUssS0FBSzNDLFdBQVYsRUFBd0IsT0FBTyxLQUFLVyxNQUFaO0FBQ3hCLGFBQUtYLFdBQUwsR0FBbUIsSUFBbkI7O0FBRUEsYUFBS2EsSUFBTDs7QUFFQSxZQUFJZCxPQUFPLEtBQUtZLE1BQUwsQ0FBWVosSUFBdkI7QUFDQSxZQUFJZ0QseUJBQUo7QUFDQSxZQUFLaEQsS0FBS1MsTUFBVixFQUF3QnVDLE1BQU1oRCxLQUFLUyxNQUFMLENBQVltQyxTQUFsQjtBQUN4QixZQUFLNUMsS0FBS2lELFdBQVYsRUFBd0JELE1BQU1oRCxLQUFLaUQsV0FBWDtBQUN4QixZQUFLRCxJQUFJSixTQUFULEVBQXdCSSxNQUFNQSxJQUFJSixTQUFWOztBQUV4QixZQUFJdkMsTUFBTywyQkFBaUIyQyxHQUFqQixFQUFzQixLQUFLcEMsTUFBTCxDQUFZVCxJQUFsQyxFQUF3QyxLQUFLUyxNQUFMLENBQVlaLElBQXBELENBQVg7QUFDQSxZQUFJa0QsT0FBTzdDLElBQUk4QyxRQUFKLEVBQVg7QUFDQSxhQUFLdkMsTUFBTCxDQUFZYixHQUFaLEdBQWtCbUQsS0FBSyxDQUFMLENBQWxCO0FBQ0EsYUFBS3RDLE1BQUwsQ0FBWVAsR0FBWixHQUFrQjZDLEtBQUssQ0FBTCxDQUFsQjs7QUFFQSxlQUFPLEtBQUt0QyxNQUFaO0FBQ0gsSzs7Ozs0QkFsU2U7QUFDWixtQkFBTyxLQUFLQSxNQUFMLENBQVlkLFNBQW5CO0FBQ0g7O0FBRUQ7Ozs7Ozs7NEJBSVc7QUFDUCxtQkFBTyxLQUFLYyxNQUFMLENBQVlaLElBQW5CO0FBQ0g7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs0QkFZVTtBQUNOLG1CQUFPLEtBQUs0QyxTQUFMLEdBQWlCN0MsR0FBeEI7QUFDSDs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7OzRCQVljO0FBQ1YsbUJBQU8sS0FBSzZDLFNBQUwsR0FBaUJRLE9BQXhCO0FBQ0g7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs0QkFZVTtBQUNOLG1CQUFPLEtBQUtSLFNBQUwsR0FBaUJ2QyxHQUF4QjtBQUNIOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7OzRCQWFXO0FBQ1AsbUJBQU8sS0FBS1MsSUFBTCxHQUFZWCxJQUFuQjtBQUNIOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7OzRCQWFlO0FBQ1gsbUJBQU8sS0FBS1csSUFBTCxHQUFZdUMsUUFBbkI7QUFDSDs7Ozs7O2tCQTBNVXhELFU7O0FBRWY7Ozs7O0FBS0EiLCJmaWxlIjoibGF6eS1yZXN1bHQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgTWFwR2VuZXJhdG9yIGZyb20gJy4vbWFwLWdlbmVyYXRvcic7XG5pbXBvcnQgc3RyaW5naWZ5ICAgIGZyb20gJy4vc3RyaW5naWZ5JztcbmltcG9ydCB3YXJuT25jZSAgICAgZnJvbSAnLi93YXJuLW9uY2UnO1xuaW1wb3J0IFJlc3VsdCAgICAgICBmcm9tICcuL3Jlc3VsdCc7XG5pbXBvcnQgcGFyc2UgICAgICAgIGZyb20gJy4vcGFyc2UnO1xuXG5mdW5jdGlvbiBpc1Byb21pc2Uob2JqKSB7XG4gICAgcmV0dXJuIHR5cGVvZiBvYmogPT09ICdvYmplY3QnICYmIHR5cGVvZiBvYmoudGhlbiA9PT0gJ2Z1bmN0aW9uJztcbn1cblxuLyoqXG4gKiBBIFByb21pc2UgcHJveHkgZm9yIHRoZSByZXN1bHQgb2YgUG9zdENTUyB0cmFuc2Zvcm1hdGlvbnMuXG4gKlxuICogQSBgTGF6eVJlc3VsdGAgaW5zdGFuY2UgaXMgcmV0dXJuZWQgYnkge0BsaW5rIFByb2Nlc3NvciNwcm9jZXNzfS5cbiAqXG4gKiBAZXhhbXBsZVxuICogY29uc3QgbGF6eSA9IHBvc3Rjc3MoW2Nzc25leHRdKS5wcm9jZXNzKGNzcyk7XG4gKi9cbmNsYXNzIExhenlSZXN1bHQge1xuXG4gICAgY29uc3RydWN0b3IocHJvY2Vzc29yLCBjc3MsIG9wdHMpIHtcbiAgICAgICAgdGhpcy5zdHJpbmdpZmllZCA9IGZhbHNlO1xuICAgICAgICB0aGlzLnByb2Nlc3NlZCAgID0gZmFsc2U7XG5cbiAgICAgICAgbGV0IHJvb3Q7XG4gICAgICAgIGlmICggdHlwZW9mIGNzcyA9PT0gJ29iamVjdCcgJiYgY3NzLnR5cGUgPT09ICdyb290JyApIHtcbiAgICAgICAgICAgIHJvb3QgPSBjc3M7XG4gICAgICAgIH0gZWxzZSBpZiAoIGNzcyBpbnN0YW5jZW9mIExhenlSZXN1bHQgfHwgY3NzIGluc3RhbmNlb2YgUmVzdWx0ICkge1xuICAgICAgICAgICAgcm9vdCA9IGNzcy5yb290O1xuICAgICAgICAgICAgaWYgKCBjc3MubWFwICkge1xuICAgICAgICAgICAgICAgIGlmICggdHlwZW9mIG9wdHMubWFwID09PSAndW5kZWZpbmVkJyApIG9wdHMubWFwID0geyB9O1xuICAgICAgICAgICAgICAgIGlmICggIW9wdHMubWFwLmlubGluZSApIG9wdHMubWFwLmlubGluZSA9IGZhbHNlO1xuICAgICAgICAgICAgICAgIG9wdHMubWFwLnByZXYgPSBjc3MubWFwO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbGV0IHBhcnNlciA9IHBhcnNlO1xuICAgICAgICAgICAgaWYgKCBvcHRzLnN5bnRheCApICBwYXJzZXIgPSBvcHRzLnN5bnRheC5wYXJzZTtcbiAgICAgICAgICAgIGlmICggb3B0cy5wYXJzZXIgKSAgcGFyc2VyID0gb3B0cy5wYXJzZXI7XG4gICAgICAgICAgICBpZiAoIHBhcnNlci5wYXJzZSApIHBhcnNlciA9IHBhcnNlci5wYXJzZTtcblxuICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICByb290ID0gcGFyc2VyKGNzcywgb3B0cyk7XG4gICAgICAgICAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgICAgICAgICAgIHRoaXMuZXJyb3IgPSBlcnJvcjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMucmVzdWx0ID0gbmV3IFJlc3VsdChwcm9jZXNzb3IsIHJvb3QsIG9wdHMpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgYSB7QGxpbmsgUHJvY2Vzc29yfSBpbnN0YW5jZSwgd2hpY2ggd2lsbCBiZSB1c2VkXG4gICAgICogZm9yIENTUyB0cmFuc2Zvcm1hdGlvbnMuXG4gICAgICogQHR5cGUge1Byb2Nlc3Nvcn1cbiAgICAgKi9cbiAgICBnZXQgcHJvY2Vzc29yKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5yZXN1bHQucHJvY2Vzc29yO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIE9wdGlvbnMgZnJvbSB0aGUge0BsaW5rIFByb2Nlc3NvciNwcm9jZXNzfSBjYWxsLlxuICAgICAqIEB0eXBlIHtwcm9jZXNzT3B0aW9uc31cbiAgICAgKi9cbiAgICBnZXQgb3B0cygpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMucmVzdWx0Lm9wdHM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUHJvY2Vzc2VzIGlucHV0IENTUyB0aHJvdWdoIHN5bmNocm9ub3VzIHBsdWdpbnMsIGNvbnZlcnRzIGBSb290YFxuICAgICAqIHRvIGEgQ1NTIHN0cmluZyBhbmQgcmV0dXJucyB7QGxpbmsgUmVzdWx0I2Nzc30uXG4gICAgICpcbiAgICAgKiBUaGlzIHByb3BlcnR5IHdpbGwgb25seSB3b3JrIHdpdGggc3luY2hyb25vdXMgcGx1Z2lucy5cbiAgICAgKiBJZiB0aGUgcHJvY2Vzc29yIGNvbnRhaW5zIGFueSBhc3luY2hyb25vdXMgcGx1Z2luc1xuICAgICAqIGl0IHdpbGwgdGhyb3cgYW4gZXJyb3IuIFRoaXMgaXMgd2h5IHRoaXMgbWV0aG9kIGlzIG9ubHlcbiAgICAgKiBmb3IgZGVidWcgcHVycG9zZSwgeW91IHNob3VsZCBhbHdheXMgdXNlIHtAbGluayBMYXp5UmVzdWx0I3RoZW59LlxuICAgICAqXG4gICAgICogQHR5cGUge3N0cmluZ31cbiAgICAgKiBAc2VlIFJlc3VsdCNjc3NcbiAgICAgKi9cbiAgICBnZXQgY3NzKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5zdHJpbmdpZnkoKS5jc3M7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQW4gYWxpYXMgZm9yIHRoZSBgY3NzYCBwcm9wZXJ0eS4gVXNlIGl0IHdpdGggc3ludGF4ZXNcbiAgICAgKiB0aGF0IGdlbmVyYXRlIG5vbi1DU1Mgb3V0cHV0LlxuICAgICAqXG4gICAgICogVGhpcyBwcm9wZXJ0eSB3aWxsIG9ubHkgd29yayB3aXRoIHN5bmNocm9ub3VzIHBsdWdpbnMuXG4gICAgICogSWYgdGhlIHByb2Nlc3NvciBjb250YWlucyBhbnkgYXN5bmNocm9ub3VzIHBsdWdpbnNcbiAgICAgKiBpdCB3aWxsIHRocm93IGFuIGVycm9yLiBUaGlzIGlzIHdoeSB0aGlzIG1ldGhvZCBpcyBvbmx5XG4gICAgICogZm9yIGRlYnVnIHB1cnBvc2UsIHlvdSBzaG91bGQgYWx3YXlzIHVzZSB7QGxpbmsgTGF6eVJlc3VsdCN0aGVufS5cbiAgICAgKlxuICAgICAqIEB0eXBlIHtzdHJpbmd9XG4gICAgICogQHNlZSBSZXN1bHQjY29udGVudFxuICAgICAqL1xuICAgIGdldCBjb250ZW50KCkge1xuICAgICAgICByZXR1cm4gdGhpcy5zdHJpbmdpZnkoKS5jb250ZW50O1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFByb2Nlc3NlcyBpbnB1dCBDU1MgdGhyb3VnaCBzeW5jaHJvbm91cyBwbHVnaW5zXG4gICAgICogYW5kIHJldHVybnMge0BsaW5rIFJlc3VsdCNtYXB9LlxuICAgICAqXG4gICAgICogVGhpcyBwcm9wZXJ0eSB3aWxsIG9ubHkgd29yayB3aXRoIHN5bmNocm9ub3VzIHBsdWdpbnMuXG4gICAgICogSWYgdGhlIHByb2Nlc3NvciBjb250YWlucyBhbnkgYXN5bmNocm9ub3VzIHBsdWdpbnNcbiAgICAgKiBpdCB3aWxsIHRocm93IGFuIGVycm9yLiBUaGlzIGlzIHdoeSB0aGlzIG1ldGhvZCBpcyBvbmx5XG4gICAgICogZm9yIGRlYnVnIHB1cnBvc2UsIHlvdSBzaG91bGQgYWx3YXlzIHVzZSB7QGxpbmsgTGF6eVJlc3VsdCN0aGVufS5cbiAgICAgKlxuICAgICAqIEB0eXBlIHtTb3VyY2VNYXBHZW5lcmF0b3J9XG4gICAgICogQHNlZSBSZXN1bHQjbWFwXG4gICAgICovXG4gICAgZ2V0IG1hcCgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuc3RyaW5naWZ5KCkubWFwO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFByb2Nlc3NlcyBpbnB1dCBDU1MgdGhyb3VnaCBzeW5jaHJvbm91cyBwbHVnaW5zXG4gICAgICogYW5kIHJldHVybnMge0BsaW5rIFJlc3VsdCNyb290fS5cbiAgICAgKlxuICAgICAqIFRoaXMgcHJvcGVydHkgd2lsbCBvbmx5IHdvcmsgd2l0aCBzeW5jaHJvbm91cyBwbHVnaW5zLiBJZiB0aGUgcHJvY2Vzc29yXG4gICAgICogY29udGFpbnMgYW55IGFzeW5jaHJvbm91cyBwbHVnaW5zIGl0IHdpbGwgdGhyb3cgYW4gZXJyb3IuXG4gICAgICpcbiAgICAgKiBUaGlzIGlzIHdoeSB0aGlzIG1ldGhvZCBpcyBvbmx5IGZvciBkZWJ1ZyBwdXJwb3NlLFxuICAgICAqIHlvdSBzaG91bGQgYWx3YXlzIHVzZSB7QGxpbmsgTGF6eVJlc3VsdCN0aGVufS5cbiAgICAgKlxuICAgICAqIEB0eXBlIHtSb290fVxuICAgICAqIEBzZWUgUmVzdWx0I3Jvb3RcbiAgICAgKi9cbiAgICBnZXQgcm9vdCgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuc3luYygpLnJvb3Q7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUHJvY2Vzc2VzIGlucHV0IENTUyB0aHJvdWdoIHN5bmNocm9ub3VzIHBsdWdpbnNcbiAgICAgKiBhbmQgcmV0dXJucyB7QGxpbmsgUmVzdWx0I21lc3NhZ2VzfS5cbiAgICAgKlxuICAgICAqIFRoaXMgcHJvcGVydHkgd2lsbCBvbmx5IHdvcmsgd2l0aCBzeW5jaHJvbm91cyBwbHVnaW5zLiBJZiB0aGUgcHJvY2Vzc29yXG4gICAgICogY29udGFpbnMgYW55IGFzeW5jaHJvbm91cyBwbHVnaW5zIGl0IHdpbGwgdGhyb3cgYW4gZXJyb3IuXG4gICAgICpcbiAgICAgKiBUaGlzIGlzIHdoeSB0aGlzIG1ldGhvZCBpcyBvbmx5IGZvciBkZWJ1ZyBwdXJwb3NlLFxuICAgICAqIHlvdSBzaG91bGQgYWx3YXlzIHVzZSB7QGxpbmsgTGF6eVJlc3VsdCN0aGVufS5cbiAgICAgKlxuICAgICAqIEB0eXBlIHtNZXNzYWdlW119XG4gICAgICogQHNlZSBSZXN1bHQjbWVzc2FnZXNcbiAgICAgKi9cbiAgICBnZXQgbWVzc2FnZXMoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLnN5bmMoKS5tZXNzYWdlcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBQcm9jZXNzZXMgaW5wdXQgQ1NTIHRocm91Z2ggc3luY2hyb25vdXMgcGx1Z2luc1xuICAgICAqIGFuZCBjYWxscyB7QGxpbmsgUmVzdWx0I3dhcm5pbmdzKCl9LlxuICAgICAqXG4gICAgICogQHJldHVybiB7V2FybmluZ1tdfSB3YXJuaW5ncyBmcm9tIHBsdWdpbnNcbiAgICAgKi9cbiAgICB3YXJuaW5ncygpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuc3luYygpLndhcm5pbmdzKCk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQWxpYXMgZm9yIHRoZSB7QGxpbmsgTGF6eVJlc3VsdCNjc3N9IHByb3BlcnR5LlxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBsYXp5ICsgJycgPT09IGxhenkuY3NzO1xuICAgICAqXG4gICAgICogQHJldHVybiB7c3RyaW5nfSBvdXRwdXQgQ1NTXG4gICAgICovXG4gICAgdG9TdHJpbmcoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmNzcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBQcm9jZXNzZXMgaW5wdXQgQ1NTIHRocm91Z2ggc3luY2hyb25vdXMgYW5kIGFzeW5jaHJvbm91cyBwbHVnaW5zXG4gICAgICogYW5kIGNhbGxzIGBvbkZ1bGZpbGxlZGAgd2l0aCBhIFJlc3VsdCBpbnN0YW5jZS4gSWYgYSBwbHVnaW4gdGhyb3dzXG4gICAgICogYW4gZXJyb3IsIHRoZSBgb25SZWplY3RlZGAgY2FsbGJhY2sgd2lsbCBiZSBleGVjdXRlZC5cbiAgICAgKlxuICAgICAqIEl0IGltcGxlbWVudHMgc3RhbmRhcmQgUHJvbWlzZSBBUEkuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge29uRnVsZmlsbGVkfSBvbkZ1bGZpbGxlZCAtIGNhbGxiYWNrIHdpbGwgYmUgZXhlY3V0ZWRcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdoZW4gYWxsIHBsdWdpbnMgd2lsbCBmaW5pc2ggd29ya1xuICAgICAqIEBwYXJhbSB7b25SZWplY3RlZH0gIG9uUmVqZWN0ZWQgIC0gY2FsbGJhY2sgd2lsbCBiZSBleGVjdXRlZCBvbiBhbnkgZXJyb3JcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge1Byb21pc2V9IFByb21pc2UgQVBJIHRvIG1ha2UgcXVldWVcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcG9zdGNzcyhbY3NzbmV4dF0pLnByb2Nlc3MoY3NzKS50aGVuKHJlc3VsdCA9PiB7XG4gICAgICogICBjb25zb2xlLmxvZyhyZXN1bHQuY3NzKTtcbiAgICAgKiB9KTtcbiAgICAgKi9cbiAgICB0aGVuKG9uRnVsZmlsbGVkLCBvblJlamVjdGVkKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmFzeW5jKCkudGhlbihvbkZ1bGZpbGxlZCwgb25SZWplY3RlZCk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUHJvY2Vzc2VzIGlucHV0IENTUyB0aHJvdWdoIHN5bmNocm9ub3VzIGFuZCBhc3luY2hyb25vdXMgcGx1Z2luc1xuICAgICAqIGFuZCBjYWxscyBvblJlamVjdGVkIGZvciBlYWNoIGVycm9yIHRocm93biBpbiBhbnkgcGx1Z2luLlxuICAgICAqXG4gICAgICogSXQgaW1wbGVtZW50cyBzdGFuZGFyZCBQcm9taXNlIEFQSS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7b25SZWplY3RlZH0gb25SZWplY3RlZCAtIGNhbGxiYWNrIHdpbGwgYmUgZXhlY3V0ZWQgb24gYW55IGVycm9yXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtQcm9taXNlfSBQcm9taXNlIEFQSSB0byBtYWtlIHF1ZXVlXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHBvc3Rjc3MoW2Nzc25leHRdKS5wcm9jZXNzKGNzcykudGhlbihyZXN1bHQgPT4ge1xuICAgICAqICAgY29uc29sZS5sb2cocmVzdWx0LmNzcyk7XG4gICAgICogfSkuY2F0Y2goZXJyb3IgPT4ge1xuICAgICAqICAgY29uc29sZS5lcnJvcihlcnJvcik7XG4gICAgICogfSk7XG4gICAgICovXG4gICAgY2F0Y2gob25SZWplY3RlZCkge1xuICAgICAgICByZXR1cm4gdGhpcy5hc3luYygpLmNhdGNoKG9uUmVqZWN0ZWQpO1xuICAgIH1cblxuICAgIGhhbmRsZUVycm9yKGVycm9yLCBwbHVnaW4pIHtcbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHRoaXMuZXJyb3IgPSBlcnJvcjtcbiAgICAgICAgICAgIGlmICggZXJyb3IubmFtZSA9PT0gJ0Nzc1N5bnRheEVycm9yJyAmJiAhZXJyb3IucGx1Z2luICkge1xuICAgICAgICAgICAgICAgIGVycm9yLnBsdWdpbiA9IHBsdWdpbi5wb3N0Y3NzUGx1Z2luO1xuICAgICAgICAgICAgICAgIGVycm9yLnNldE1lc3NhZ2UoKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIHBsdWdpbi5wb3N0Y3NzVmVyc2lvbiApIHtcbiAgICAgICAgICAgICAgICBsZXQgcGx1Z2luTmFtZSA9IHBsdWdpbi5wb3N0Y3NzUGx1Z2luO1xuICAgICAgICAgICAgICAgIGxldCBwbHVnaW5WZXIgID0gcGx1Z2luLnBvc3Rjc3NWZXJzaW9uO1xuICAgICAgICAgICAgICAgIGxldCBydW50aW1lVmVyID0gdGhpcy5yZXN1bHQucHJvY2Vzc29yLnZlcnNpb247XG4gICAgICAgICAgICAgICAgbGV0IGEgPSBwbHVnaW5WZXIuc3BsaXQoJy4nKTtcbiAgICAgICAgICAgICAgICBsZXQgYiA9IHJ1bnRpbWVWZXIuc3BsaXQoJy4nKTtcblxuICAgICAgICAgICAgICAgIGlmICggYVswXSAhPT0gYlswXSB8fCBwYXJzZUludChhWzFdKSA+IHBhcnNlSW50KGJbMV0pICkge1xuICAgICAgICAgICAgICAgICAgICB3YXJuT25jZSgnWW91ciBjdXJyZW50IFBvc3RDU1MgdmVyc2lvbiAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2lzICcgKyBydW50aW1lVmVyICsgJywgYnV0ICcgKyBwbHVnaW5OYW1lICsgJyAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3VzZXMgJyArIHBsdWdpblZlciArICcuIFBlcmhhcHMgdGhpcyBpcyAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3RoZSBzb3VyY2Ugb2YgdGhlIGVycm9yIGJlbG93LicpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICAgICAgICBpZiAoIGNvbnNvbGUgJiYgY29uc29sZS5lcnJvciApIGNvbnNvbGUuZXJyb3IoZXJyKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFzeW5jVGljayhyZXNvbHZlLCByZWplY3QpIHtcbiAgICAgICAgaWYgKCB0aGlzLnBsdWdpbiA+PSB0aGlzLnByb2Nlc3Nvci5wbHVnaW5zLmxlbmd0aCApIHtcbiAgICAgICAgICAgIHRoaXMucHJvY2Vzc2VkID0gdHJ1ZTtcbiAgICAgICAgICAgIHJldHVybiByZXNvbHZlKCk7XG4gICAgICAgIH1cblxuICAgICAgICB0cnkge1xuICAgICAgICAgICAgbGV0IHBsdWdpbiAgPSB0aGlzLnByb2Nlc3Nvci5wbHVnaW5zW3RoaXMucGx1Z2luXTtcbiAgICAgICAgICAgIGxldCBwcm9taXNlID0gdGhpcy5ydW4ocGx1Z2luKTtcbiAgICAgICAgICAgIHRoaXMucGx1Z2luICs9IDE7XG5cbiAgICAgICAgICAgIGlmICggaXNQcm9taXNlKHByb21pc2UpICkge1xuICAgICAgICAgICAgICAgIHByb21pc2UudGhlbiggKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmFzeW5jVGljayhyZXNvbHZlLCByZWplY3QpO1xuICAgICAgICAgICAgICAgIH0pLmNhdGNoKCBlcnJvciA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaGFuZGxlRXJyb3IoZXJyb3IsIHBsdWdpbik7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucHJvY2Vzc2VkID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgcmVqZWN0KGVycm9yKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5hc3luY1RpY2socmVzb2x2ZSwgcmVqZWN0KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgICAgICAgdGhpcy5wcm9jZXNzZWQgPSB0cnVlO1xuICAgICAgICAgICAgcmVqZWN0KGVycm9yKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFzeW5jKCkge1xuICAgICAgICBpZiAoIHRoaXMucHJvY2Vzc2VkICkge1xuICAgICAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKCAocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCB0aGlzLmVycm9yICkge1xuICAgICAgICAgICAgICAgICAgICByZWplY3QodGhpcy5lcnJvcik7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSh0aGlzLnN0cmluZ2lmeSgpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIHRoaXMucHJvY2Vzc2luZyApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnByb2Nlc3Npbmc7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnByb2Nlc3NpbmcgPSBuZXcgUHJvbWlzZSggKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICAgICAgaWYgKCB0aGlzLmVycm9yICkgcmV0dXJuIHJlamVjdCh0aGlzLmVycm9yKTtcbiAgICAgICAgICAgIHRoaXMucGx1Z2luID0gMDtcbiAgICAgICAgICAgIHRoaXMuYXN5bmNUaWNrKHJlc29sdmUsIHJlamVjdCk7XG4gICAgICAgIH0pLnRoZW4oICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMucHJvY2Vzc2VkID0gdHJ1ZTtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnN0cmluZ2lmeSgpO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcy5wcm9jZXNzaW5nO1xuICAgIH1cblxuICAgIHN5bmMoKSB7XG4gICAgICAgIGlmICggdGhpcy5wcm9jZXNzZWQgKSByZXR1cm4gdGhpcy5yZXN1bHQ7XG4gICAgICAgIHRoaXMucHJvY2Vzc2VkID0gdHJ1ZTtcblxuICAgICAgICBpZiAoIHRoaXMucHJvY2Vzc2luZyApIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgICAgICAgICAnVXNlIHByb2Nlc3MoY3NzKS50aGVuKGNiKSB0byB3b3JrIHdpdGggYXN5bmMgcGx1Z2lucycpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCB0aGlzLmVycm9yICkgdGhyb3cgdGhpcy5lcnJvcjtcblxuICAgICAgICBmb3IgKCBsZXQgcGx1Z2luIG9mIHRoaXMucmVzdWx0LnByb2Nlc3Nvci5wbHVnaW5zICkge1xuICAgICAgICAgICAgbGV0IHByb21pc2UgPSB0aGlzLnJ1bihwbHVnaW4pO1xuICAgICAgICAgICAgaWYgKCBpc1Byb21pc2UocHJvbWlzZSkgKSB7XG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICAgICAgICAgICAgICAnVXNlIHByb2Nlc3MoY3NzKS50aGVuKGNiKSB0byB3b3JrIHdpdGggYXN5bmMgcGx1Z2lucycpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMucmVzdWx0O1xuICAgIH1cblxuICAgIHJ1bihwbHVnaW4pIHtcbiAgICAgICAgdGhpcy5yZXN1bHQubGFzdFBsdWdpbiA9IHBsdWdpbjtcblxuICAgICAgICB0cnkge1xuICAgICAgICAgICAgcmV0dXJuIHBsdWdpbih0aGlzLnJlc3VsdC5yb290LCB0aGlzLnJlc3VsdCk7XG4gICAgICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICAgICAgICB0aGlzLmhhbmRsZUVycm9yKGVycm9yLCBwbHVnaW4pO1xuICAgICAgICAgICAgdGhyb3cgZXJyb3I7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBzdHJpbmdpZnkoKSB7XG4gICAgICAgIGlmICggdGhpcy5zdHJpbmdpZmllZCApIHJldHVybiB0aGlzLnJlc3VsdDtcbiAgICAgICAgdGhpcy5zdHJpbmdpZmllZCA9IHRydWU7XG5cbiAgICAgICAgdGhpcy5zeW5jKCk7XG5cbiAgICAgICAgbGV0IG9wdHMgPSB0aGlzLnJlc3VsdC5vcHRzO1xuICAgICAgICBsZXQgc3RyICA9IHN0cmluZ2lmeTtcbiAgICAgICAgaWYgKCBvcHRzLnN5bnRheCApICAgICAgc3RyID0gb3B0cy5zeW50YXguc3RyaW5naWZ5O1xuICAgICAgICBpZiAoIG9wdHMuc3RyaW5naWZpZXIgKSBzdHIgPSBvcHRzLnN0cmluZ2lmaWVyO1xuICAgICAgICBpZiAoIHN0ci5zdHJpbmdpZnkgKSAgICBzdHIgPSBzdHIuc3RyaW5naWZ5O1xuXG4gICAgICAgIGxldCBtYXAgID0gbmV3IE1hcEdlbmVyYXRvcihzdHIsIHRoaXMucmVzdWx0LnJvb3QsIHRoaXMucmVzdWx0Lm9wdHMpO1xuICAgICAgICBsZXQgZGF0YSA9IG1hcC5nZW5lcmF0ZSgpO1xuICAgICAgICB0aGlzLnJlc3VsdC5jc3MgPSBkYXRhWzBdO1xuICAgICAgICB0aGlzLnJlc3VsdC5tYXAgPSBkYXRhWzFdO1xuXG4gICAgICAgIHJldHVybiB0aGlzLnJlc3VsdDtcbiAgICB9XG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgTGF6eVJlc3VsdDtcblxuLyoqXG4gKiBAY2FsbGJhY2sgb25GdWxmaWxsZWRcbiAqIEBwYXJhbSB7UmVzdWx0fSByZXN1bHRcbiAqL1xuXG4vKipcbiAqIEBjYWxsYmFjayBvblJlamVjdGVkXG4gKiBAcGFyYW0ge0Vycm9yfSBlcnJvclxuICovXG4iXX0= diff --git a/node_modules/postcss/lib/list.js b/node_modules/postcss/lib/list.js deleted file mode 100644 index ac1e9d6..0000000 --- a/node_modules/postcss/lib/list.js +++ /dev/null @@ -1,95 +0,0 @@ -'use strict'; - -exports.__esModule = true; -/** - * Contains helpers for safely splitting lists of CSS values, - * preserving parentheses and quotes. - * - * @example - * const list = postcss.list; - * - * @namespace list - */ -var list = { - split: function split(string, separators, last) { - var array = []; - var current = ''; - var split = false; - - var func = 0; - var quote = false; - var escape = false; - - for (var i = 0; i < string.length; i++) { - var letter = string[i]; - - if (quote) { - if (escape) { - escape = false; - } else if (letter === '\\') { - escape = true; - } else if (letter === quote) { - quote = false; - } - } else if (letter === '"' || letter === '\'') { - quote = letter; - } else if (letter === '(') { - func += 1; - } else if (letter === ')') { - if (func > 0) func -= 1; - } else if (func === 0) { - if (separators.indexOf(letter) !== -1) split = true; - } - - if (split) { - if (current !== '') array.push(current.trim()); - current = ''; - split = false; - } else { - current += letter; - } - } - - if (last || current !== '') array.push(current.trim()); - return array; - }, - - - /** - * Safely splits space-separated values (such as those for `background`, - * `border-radius`, and other shorthand properties). - * - * @param {string} string - space-separated values - * - * @return {string[]} split values - * - * @example - * postcss.list.space('1px calc(10% + 1px)') //=> ['1px', 'calc(10% + 1px)'] - */ - space: function space(string) { - var spaces = [' ', '\n', '\t']; - return list.split(string, spaces); - }, - - - /** - * Safely splits comma-separated values (such as those for `transition-*` - * and `background` properties). - * - * @param {string} string - comma-separated values - * - * @return {string[]} split values - * - * @example - * postcss.list.comma('black, linear-gradient(white, black)') - * //=> ['black', 'linear-gradient(white, black)'] - */ - comma: function comma(string) { - var comma = ','; - return list.split(string, [comma], true); - } -}; - -exports.default = list; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpc3QuZXM2Il0sIm5hbWVzIjpbImxpc3QiLCJzcGxpdCIsInN0cmluZyIsInNlcGFyYXRvcnMiLCJsYXN0IiwiYXJyYXkiLCJjdXJyZW50IiwiZnVuYyIsInF1b3RlIiwiZXNjYXBlIiwiaSIsImxlbmd0aCIsImxldHRlciIsImluZGV4T2YiLCJwdXNoIiwidHJpbSIsInNwYWNlIiwic3BhY2VzIiwiY29tbWEiXSwibWFwcGluZ3MiOiI7OztBQUFBOzs7Ozs7Ozs7QUFTQSxJQUFJQSxPQUFPO0FBRVBDLFNBRk8saUJBRURDLE1BRkMsRUFFT0MsVUFGUCxFQUVtQkMsSUFGbkIsRUFFeUI7QUFDNUIsWUFBSUMsUUFBVSxFQUFkO0FBQ0EsWUFBSUMsVUFBVSxFQUFkO0FBQ0EsWUFBSUwsUUFBVSxLQUFkOztBQUVBLFlBQUlNLE9BQVUsQ0FBZDtBQUNBLFlBQUlDLFFBQVUsS0FBZDtBQUNBLFlBQUlDLFNBQVUsS0FBZDs7QUFFQSxhQUFNLElBQUlDLElBQUksQ0FBZCxFQUFpQkEsSUFBSVIsT0FBT1MsTUFBNUIsRUFBb0NELEdBQXBDLEVBQTBDO0FBQ3RDLGdCQUFJRSxTQUFTVixPQUFPUSxDQUFQLENBQWI7O0FBRUEsZ0JBQUtGLEtBQUwsRUFBYTtBQUNULG9CQUFLQyxNQUFMLEVBQWM7QUFDVkEsNkJBQVMsS0FBVDtBQUNILGlCQUZELE1BRU8sSUFBS0csV0FBVyxJQUFoQixFQUF1QjtBQUMxQkgsNkJBQVMsSUFBVDtBQUNILGlCQUZNLE1BRUEsSUFBS0csV0FBV0osS0FBaEIsRUFBd0I7QUFDM0JBLDRCQUFRLEtBQVI7QUFDSDtBQUNKLGFBUkQsTUFRTyxJQUFLSSxXQUFXLEdBQVgsSUFBa0JBLFdBQVcsSUFBbEMsRUFBeUM7QUFDNUNKLHdCQUFRSSxNQUFSO0FBQ0gsYUFGTSxNQUVBLElBQUtBLFdBQVcsR0FBaEIsRUFBc0I7QUFDekJMLHdCQUFRLENBQVI7QUFDSCxhQUZNLE1BRUEsSUFBS0ssV0FBVyxHQUFoQixFQUFzQjtBQUN6QixvQkFBS0wsT0FBTyxDQUFaLEVBQWdCQSxRQUFRLENBQVI7QUFDbkIsYUFGTSxNQUVBLElBQUtBLFNBQVMsQ0FBZCxFQUFrQjtBQUNyQixvQkFBS0osV0FBV1UsT0FBWCxDQUFtQkQsTUFBbkIsTUFBK0IsQ0FBQyxDQUFyQyxFQUF5Q1gsUUFBUSxJQUFSO0FBQzVDOztBQUVELGdCQUFLQSxLQUFMLEVBQWE7QUFDVCxvQkFBS0ssWUFBWSxFQUFqQixFQUFzQkQsTUFBTVMsSUFBTixDQUFXUixRQUFRUyxJQUFSLEVBQVg7QUFDdEJULDBCQUFVLEVBQVY7QUFDQUwsd0JBQVUsS0FBVjtBQUNILGFBSkQsTUFJTztBQUNISywyQkFBV00sTUFBWDtBQUNIO0FBQ0o7O0FBRUQsWUFBS1IsUUFBUUUsWUFBWSxFQUF6QixFQUE4QkQsTUFBTVMsSUFBTixDQUFXUixRQUFRUyxJQUFSLEVBQVg7QUFDOUIsZUFBT1YsS0FBUDtBQUNILEtBM0NNOzs7QUE2Q1A7Ozs7Ozs7Ozs7O0FBV0FXLFNBeERPLGlCQXdERGQsTUF4REMsRUF3RE87QUFDVixZQUFJZSxTQUFTLENBQUMsR0FBRCxFQUFNLElBQU4sRUFBWSxJQUFaLENBQWI7QUFDQSxlQUFPakIsS0FBS0MsS0FBTCxDQUFXQyxNQUFYLEVBQW1CZSxNQUFuQixDQUFQO0FBQ0gsS0EzRE07OztBQTZEUDs7Ozs7Ozs7Ozs7O0FBWUFDLFNBekVPLGlCQXlFRGhCLE1BekVDLEVBeUVPO0FBQ1YsWUFBSWdCLFFBQVEsR0FBWjtBQUNBLGVBQU9sQixLQUFLQyxLQUFMLENBQVdDLE1BQVgsRUFBbUIsQ0FBQ2dCLEtBQUQsQ0FBbkIsRUFBNEIsSUFBNUIsQ0FBUDtBQUNIO0FBNUVNLENBQVg7O2tCQWdGZWxCLEkiLCJmaWxlIjoibGlzdC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29udGFpbnMgaGVscGVycyBmb3Igc2FmZWx5IHNwbGl0dGluZyBsaXN0cyBvZiBDU1MgdmFsdWVzLFxuICogcHJlc2VydmluZyBwYXJlbnRoZXNlcyBhbmQgcXVvdGVzLlxuICpcbiAqIEBleGFtcGxlXG4gKiBjb25zdCBsaXN0ID0gcG9zdGNzcy5saXN0O1xuICpcbiAqIEBuYW1lc3BhY2UgbGlzdFxuICovXG5sZXQgbGlzdCA9IHtcblxuICAgIHNwbGl0KHN0cmluZywgc2VwYXJhdG9ycywgbGFzdCkge1xuICAgICAgICBsZXQgYXJyYXkgICA9IFtdO1xuICAgICAgICBsZXQgY3VycmVudCA9ICcnO1xuICAgICAgICBsZXQgc3BsaXQgICA9IGZhbHNlO1xuXG4gICAgICAgIGxldCBmdW5jICAgID0gMDtcbiAgICAgICAgbGV0IHF1b3RlICAgPSBmYWxzZTtcbiAgICAgICAgbGV0IGVzY2FwZSAgPSBmYWxzZTtcblxuICAgICAgICBmb3IgKCBsZXQgaSA9IDA7IGkgPCBzdHJpbmcubGVuZ3RoOyBpKysgKSB7XG4gICAgICAgICAgICBsZXQgbGV0dGVyID0gc3RyaW5nW2ldO1xuXG4gICAgICAgICAgICBpZiAoIHF1b3RlICkge1xuICAgICAgICAgICAgICAgIGlmICggZXNjYXBlICkge1xuICAgICAgICAgICAgICAgICAgICBlc2NhcGUgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCBsZXR0ZXIgPT09ICdcXFxcJyApIHtcbiAgICAgICAgICAgICAgICAgICAgZXNjYXBlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCBsZXR0ZXIgPT09IHF1b3RlICkge1xuICAgICAgICAgICAgICAgICAgICBxdW90ZSA9IGZhbHNlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIGxldHRlciA9PT0gJ1wiJyB8fCBsZXR0ZXIgPT09ICdcXCcnICkge1xuICAgICAgICAgICAgICAgIHF1b3RlID0gbGV0dGVyO1xuICAgICAgICAgICAgfSBlbHNlIGlmICggbGV0dGVyID09PSAnKCcgKSB7XG4gICAgICAgICAgICAgICAgZnVuYyArPSAxO1xuICAgICAgICAgICAgfSBlbHNlIGlmICggbGV0dGVyID09PSAnKScgKSB7XG4gICAgICAgICAgICAgICAgaWYgKCBmdW5jID4gMCApIGZ1bmMgLT0gMTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIGZ1bmMgPT09IDAgKSB7XG4gICAgICAgICAgICAgICAgaWYgKCBzZXBhcmF0b3JzLmluZGV4T2YobGV0dGVyKSAhPT0gLTEgKSBzcGxpdCA9IHRydWU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICggc3BsaXQgKSB7XG4gICAgICAgICAgICAgICAgaWYgKCBjdXJyZW50ICE9PSAnJyApIGFycmF5LnB1c2goY3VycmVudC50cmltKCkpO1xuICAgICAgICAgICAgICAgIGN1cnJlbnQgPSAnJztcbiAgICAgICAgICAgICAgICBzcGxpdCAgID0gZmFsc2U7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGN1cnJlbnQgKz0gbGV0dGVyO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBsYXN0IHx8IGN1cnJlbnQgIT09ICcnICkgYXJyYXkucHVzaChjdXJyZW50LnRyaW0oKSk7XG4gICAgICAgIHJldHVybiBhcnJheTtcbiAgICB9LFxuXG4gICAgLyoqXG4gICAgICogU2FmZWx5IHNwbGl0cyBzcGFjZS1zZXBhcmF0ZWQgdmFsdWVzIChzdWNoIGFzIHRob3NlIGZvciBgYmFja2dyb3VuZGAsXG4gICAgICogYGJvcmRlci1yYWRpdXNgLCBhbmQgb3RoZXIgc2hvcnRoYW5kIHByb3BlcnRpZXMpLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IHN0cmluZyAtIHNwYWNlLXNlcGFyYXRlZCB2YWx1ZXNcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge3N0cmluZ1tdfSBzcGxpdCB2YWx1ZXNcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcG9zdGNzcy5saXN0LnNwYWNlKCcxcHggY2FsYygxMCUgKyAxcHgpJykgLy89PiBbJzFweCcsICdjYWxjKDEwJSArIDFweCknXVxuICAgICAqL1xuICAgIHNwYWNlKHN0cmluZykge1xuICAgICAgICBsZXQgc3BhY2VzID0gWycgJywgJ1xcbicsICdcXHQnXTtcbiAgICAgICAgcmV0dXJuIGxpc3Quc3BsaXQoc3RyaW5nLCBzcGFjZXMpO1xuICAgIH0sXG5cbiAgICAvKipcbiAgICAgKiBTYWZlbHkgc3BsaXRzIGNvbW1hLXNlcGFyYXRlZCB2YWx1ZXMgKHN1Y2ggYXMgdGhvc2UgZm9yIGB0cmFuc2l0aW9uLSpgXG4gICAgICogYW5kIGBiYWNrZ3JvdW5kYCBwcm9wZXJ0aWVzKS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBzdHJpbmcgLSBjb21tYS1zZXBhcmF0ZWQgdmFsdWVzXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtzdHJpbmdbXX0gc3BsaXQgdmFsdWVzXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHBvc3Rjc3MubGlzdC5jb21tYSgnYmxhY2ssIGxpbmVhci1ncmFkaWVudCh3aGl0ZSwgYmxhY2spJylcbiAgICAgKiAvLz0+IFsnYmxhY2snLCAnbGluZWFyLWdyYWRpZW50KHdoaXRlLCBibGFjayknXVxuICAgICAqL1xuICAgIGNvbW1hKHN0cmluZykge1xuICAgICAgICBsZXQgY29tbWEgPSAnLCc7XG4gICAgICAgIHJldHVybiBsaXN0LnNwbGl0KHN0cmluZywgW2NvbW1hXSwgdHJ1ZSk7XG4gICAgfVxuXG59O1xuXG5leHBvcnQgZGVmYXVsdCBsaXN0O1xuIl19 diff --git a/node_modules/postcss/lib/map-generator.js b/node_modules/postcss/lib/map-generator.js deleted file mode 100644 index 93c4029..0000000 --- a/node_modules/postcss/lib/map-generator.js +++ /dev/null @@ -1,312 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _jsBase = require('js-base64'); - -var _sourceMap = require('source-map'); - -var _sourceMap2 = _interopRequireDefault(_sourceMap); - -var _path = require('path'); - -var _path2 = _interopRequireDefault(_path); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var MapGenerator = function () { - function MapGenerator(stringify, root, opts) { - _classCallCheck(this, MapGenerator); - - this.stringify = stringify; - this.mapOpts = opts.map || {}; - this.root = root; - this.opts = opts; - } - - MapGenerator.prototype.isMap = function isMap() { - if (typeof this.opts.map !== 'undefined') { - return !!this.opts.map; - } else { - return this.previous().length > 0; - } - }; - - MapGenerator.prototype.previous = function previous() { - var _this = this; - - if (!this.previousMaps) { - this.previousMaps = []; - this.root.walk(function (node) { - if (node.source && node.source.input.map) { - var map = node.source.input.map; - if (_this.previousMaps.indexOf(map) === -1) { - _this.previousMaps.push(map); - } - } - }); - } - - return this.previousMaps; - }; - - MapGenerator.prototype.isInline = function isInline() { - if (typeof this.mapOpts.inline !== 'undefined') { - return this.mapOpts.inline; - } - - var annotation = this.mapOpts.annotation; - if (typeof annotation !== 'undefined' && annotation !== true) { - return false; - } - - if (this.previous().length) { - return this.previous().some(function (i) { - return i.inline; - }); - } else { - return true; - } - }; - - MapGenerator.prototype.isSourcesContent = function isSourcesContent() { - if (typeof this.mapOpts.sourcesContent !== 'undefined') { - return this.mapOpts.sourcesContent; - } - if (this.previous().length) { - return this.previous().some(function (i) { - return i.withContent(); - }); - } else { - return true; - } - }; - - MapGenerator.prototype.clearAnnotation = function clearAnnotation() { - if (this.mapOpts.annotation === false) return; - - var node = void 0; - for (var i = this.root.nodes.length - 1; i >= 0; i--) { - node = this.root.nodes[i]; - if (node.type !== 'comment') continue; - if (node.text.indexOf('# sourceMappingURL=') === 0) { - this.root.removeChild(i); - } - } - }; - - MapGenerator.prototype.setSourcesContent = function setSourcesContent() { - var _this2 = this; - - var already = {}; - this.root.walk(function (node) { - if (node.source) { - var from = node.source.input.from; - if (from && !already[from]) { - already[from] = true; - var relative = _this2.relative(from); - _this2.map.setSourceContent(relative, node.source.input.css); - } - } - }); - }; - - MapGenerator.prototype.applyPrevMaps = function applyPrevMaps() { - for (var _iterator = this.previous(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var prev = _ref; - - var from = this.relative(prev.file); - var root = prev.root || _path2.default.dirname(prev.file); - var map = void 0; - - if (this.mapOpts.sourcesContent === false) { - map = new _sourceMap2.default.SourceMapConsumer(prev.text); - if (map.sourcesContent) { - map.sourcesContent = map.sourcesContent.map(function () { - return null; - }); - } - } else { - map = prev.consumer(); - } - - this.map.applySourceMap(map, from, this.relative(root)); - } - }; - - MapGenerator.prototype.isAnnotation = function isAnnotation() { - if (this.isInline()) { - return true; - } else if (typeof this.mapOpts.annotation !== 'undefined') { - return this.mapOpts.annotation; - } else if (this.previous().length) { - return this.previous().some(function (i) { - return i.annotation; - }); - } else { - return true; - } - }; - - MapGenerator.prototype.addAnnotation = function addAnnotation() { - var content = void 0; - - if (this.isInline()) { - content = 'data:application/json;base64,' + _jsBase.Base64.encode(this.map.toString()); - } else if (typeof this.mapOpts.annotation === 'string') { - content = this.mapOpts.annotation; - } else { - content = this.outputFile() + '.map'; - } - - var eol = '\n'; - if (this.css.indexOf('\r\n') !== -1) eol = '\r\n'; - - this.css += eol + '/*# sourceMappingURL=' + content + ' */'; - }; - - MapGenerator.prototype.outputFile = function outputFile() { - if (this.opts.to) { - return this.relative(this.opts.to); - } else if (this.opts.from) { - return this.relative(this.opts.from); - } else { - return 'to.css'; - } - }; - - MapGenerator.prototype.generateMap = function generateMap() { - this.generateString(); - if (this.isSourcesContent()) this.setSourcesContent(); - if (this.previous().length > 0) this.applyPrevMaps(); - if (this.isAnnotation()) this.addAnnotation(); - - if (this.isInline()) { - return [this.css]; - } else { - return [this.css, this.map]; - } - }; - - MapGenerator.prototype.relative = function relative(file) { - if (file.indexOf('<') === 0) return file; - if (/^\w+:\/\//.test(file)) return file; - - var from = this.opts.to ? _path2.default.dirname(this.opts.to) : '.'; - - if (typeof this.mapOpts.annotation === 'string') { - from = _path2.default.dirname(_path2.default.resolve(from, this.mapOpts.annotation)); - } - - file = _path2.default.relative(from, file); - if (_path2.default.sep === '\\') { - return file.replace(/\\/g, '/'); - } else { - return file; - } - }; - - MapGenerator.prototype.sourcePath = function sourcePath(node) { - if (this.mapOpts.from) { - return this.mapOpts.from; - } else { - return this.relative(node.source.input.from); - } - }; - - MapGenerator.prototype.generateString = function generateString() { - var _this3 = this; - - this.css = ''; - this.map = new _sourceMap2.default.SourceMapGenerator({ file: this.outputFile() }); - - var line = 1; - var column = 1; - - var lines = void 0, - last = void 0; - this.stringify(this.root, function (str, node, type) { - _this3.css += str; - - if (node && type !== 'end') { - if (node.source && node.source.start) { - _this3.map.addMapping({ - source: _this3.sourcePath(node), - generated: { line: line, column: column - 1 }, - original: { - line: node.source.start.line, - column: node.source.start.column - 1 - } - }); - } else { - _this3.map.addMapping({ - source: '', - original: { line: 1, column: 0 }, - generated: { line: line, column: column - 1 } - }); - } - } - - lines = str.match(/\n/g); - if (lines) { - line += lines.length; - last = str.lastIndexOf('\n'); - column = str.length - last; - } else { - column += str.length; - } - - if (node && type !== 'start') { - if (node.source && node.source.end) { - _this3.map.addMapping({ - source: _this3.sourcePath(node), - generated: { line: line, column: column - 1 }, - original: { - line: node.source.end.line, - column: node.source.end.column - } - }); - } else { - _this3.map.addMapping({ - source: '', - original: { line: 1, column: 0 }, - generated: { line: line, column: column - 1 } - }); - } - } - }); - }; - - MapGenerator.prototype.generate = function generate() { - this.clearAnnotation(); - - if (this.isMap()) { - return this.generateMap(); - } else { - var result = ''; - this.stringify(this.root, function (i) { - result += i; - }); - return [result]; - } - }; - - return MapGenerator; -}(); - -exports.default = MapGenerator; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1hcC1nZW5lcmF0b3IuZXM2Il0sIm5hbWVzIjpbIk1hcEdlbmVyYXRvciIsInN0cmluZ2lmeSIsInJvb3QiLCJvcHRzIiwibWFwT3B0cyIsIm1hcCIsImlzTWFwIiwicHJldmlvdXMiLCJsZW5ndGgiLCJwcmV2aW91c01hcHMiLCJ3YWxrIiwibm9kZSIsInNvdXJjZSIsImlucHV0IiwiaW5kZXhPZiIsInB1c2giLCJpc0lubGluZSIsImlubGluZSIsImFubm90YXRpb24iLCJzb21lIiwiaSIsImlzU291cmNlc0NvbnRlbnQiLCJzb3VyY2VzQ29udGVudCIsIndpdGhDb250ZW50IiwiY2xlYXJBbm5vdGF0aW9uIiwibm9kZXMiLCJ0eXBlIiwidGV4dCIsInJlbW92ZUNoaWxkIiwic2V0U291cmNlc0NvbnRlbnQiLCJhbHJlYWR5IiwiZnJvbSIsInJlbGF0aXZlIiwic2V0U291cmNlQ29udGVudCIsImNzcyIsImFwcGx5UHJldk1hcHMiLCJwcmV2IiwiZmlsZSIsImRpcm5hbWUiLCJTb3VyY2VNYXBDb25zdW1lciIsImNvbnN1bWVyIiwiYXBwbHlTb3VyY2VNYXAiLCJpc0Fubm90YXRpb24iLCJhZGRBbm5vdGF0aW9uIiwiY29udGVudCIsImVuY29kZSIsInRvU3RyaW5nIiwib3V0cHV0RmlsZSIsImVvbCIsInRvIiwiZ2VuZXJhdGVNYXAiLCJnZW5lcmF0ZVN0cmluZyIsInRlc3QiLCJyZXNvbHZlIiwic2VwIiwicmVwbGFjZSIsInNvdXJjZVBhdGgiLCJTb3VyY2VNYXBHZW5lcmF0b3IiLCJsaW5lIiwiY29sdW1uIiwibGluZXMiLCJsYXN0Iiwic3RyIiwic3RhcnQiLCJhZGRNYXBwaW5nIiwiZ2VuZXJhdGVkIiwib3JpZ2luYWwiLCJtYXRjaCIsImxhc3RJbmRleE9mIiwiZW5kIiwiZ2VuZXJhdGUiLCJyZXN1bHQiXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7QUFDQTs7OztBQUNBOzs7Ozs7OztJQUVxQkEsWTtBQUVqQiwwQkFBWUMsU0FBWixFQUF1QkMsSUFBdkIsRUFBNkJDLElBQTdCLEVBQW1DO0FBQUE7O0FBQy9CLGFBQUtGLFNBQUwsR0FBaUJBLFNBQWpCO0FBQ0EsYUFBS0csT0FBTCxHQUFpQkQsS0FBS0UsR0FBTCxJQUFZLEVBQTdCO0FBQ0EsYUFBS0gsSUFBTCxHQUFpQkEsSUFBakI7QUFDQSxhQUFLQyxJQUFMLEdBQWlCQSxJQUFqQjtBQUNIOzsyQkFFREcsSyxvQkFBUTtBQUNKLFlBQUssT0FBTyxLQUFLSCxJQUFMLENBQVVFLEdBQWpCLEtBQXlCLFdBQTlCLEVBQTRDO0FBQ3hDLG1CQUFPLENBQUMsQ0FBQyxLQUFLRixJQUFMLENBQVVFLEdBQW5CO0FBQ0gsU0FGRCxNQUVPO0FBQ0gsbUJBQU8sS0FBS0UsUUFBTCxHQUFnQkMsTUFBaEIsR0FBeUIsQ0FBaEM7QUFDSDtBQUNKLEs7OzJCQUVERCxRLHVCQUFXO0FBQUE7O0FBQ1AsWUFBSyxDQUFDLEtBQUtFLFlBQVgsRUFBMEI7QUFDdEIsaUJBQUtBLFlBQUwsR0FBb0IsRUFBcEI7QUFDQSxpQkFBS1AsSUFBTCxDQUFVUSxJQUFWLENBQWdCLGdCQUFRO0FBQ3BCLG9CQUFLQyxLQUFLQyxNQUFMLElBQWVELEtBQUtDLE1BQUwsQ0FBWUMsS0FBWixDQUFrQlIsR0FBdEMsRUFBNEM7QUFDeEMsd0JBQUlBLE1BQU1NLEtBQUtDLE1BQUwsQ0FBWUMsS0FBWixDQUFrQlIsR0FBNUI7QUFDQSx3QkFBSyxNQUFLSSxZQUFMLENBQWtCSyxPQUFsQixDQUEwQlQsR0FBMUIsTUFBbUMsQ0FBQyxDQUF6QyxFQUE2QztBQUN6Qyw4QkFBS0ksWUFBTCxDQUFrQk0sSUFBbEIsQ0FBdUJWLEdBQXZCO0FBQ0g7QUFDSjtBQUNKLGFBUEQ7QUFRSDs7QUFFRCxlQUFPLEtBQUtJLFlBQVo7QUFDSCxLOzsyQkFFRE8sUSx1QkFBVztBQUNQLFlBQUssT0FBTyxLQUFLWixPQUFMLENBQWFhLE1BQXBCLEtBQStCLFdBQXBDLEVBQWtEO0FBQzlDLG1CQUFPLEtBQUtiLE9BQUwsQ0FBYWEsTUFBcEI7QUFDSDs7QUFFRCxZQUFJQyxhQUFhLEtBQUtkLE9BQUwsQ0FBYWMsVUFBOUI7QUFDQSxZQUFLLE9BQU9BLFVBQVAsS0FBc0IsV0FBdEIsSUFBcUNBLGVBQWUsSUFBekQsRUFBZ0U7QUFDNUQsbUJBQU8sS0FBUDtBQUNIOztBQUVELFlBQUssS0FBS1gsUUFBTCxHQUFnQkMsTUFBckIsRUFBOEI7QUFDMUIsbUJBQU8sS0FBS0QsUUFBTCxHQUFnQlksSUFBaEIsQ0FBc0I7QUFBQSx1QkFBS0MsRUFBRUgsTUFBUDtBQUFBLGFBQXRCLENBQVA7QUFDSCxTQUZELE1BRU87QUFDSCxtQkFBTyxJQUFQO0FBQ0g7QUFDSixLOzsyQkFFREksZ0IsK0JBQW1CO0FBQ2YsWUFBSyxPQUFPLEtBQUtqQixPQUFMLENBQWFrQixjQUFwQixLQUF1QyxXQUE1QyxFQUEwRDtBQUN0RCxtQkFBTyxLQUFLbEIsT0FBTCxDQUFha0IsY0FBcEI7QUFDSDtBQUNELFlBQUssS0FBS2YsUUFBTCxHQUFnQkMsTUFBckIsRUFBOEI7QUFDMUIsbUJBQU8sS0FBS0QsUUFBTCxHQUFnQlksSUFBaEIsQ0FBc0I7QUFBQSx1QkFBS0MsRUFBRUcsV0FBRixFQUFMO0FBQUEsYUFBdEIsQ0FBUDtBQUNILFNBRkQsTUFFTztBQUNILG1CQUFPLElBQVA7QUFDSDtBQUNKLEs7OzJCQUVEQyxlLDhCQUFrQjtBQUNkLFlBQUssS0FBS3BCLE9BQUwsQ0FBYWMsVUFBYixLQUE0QixLQUFqQyxFQUF5Qzs7QUFFekMsWUFBSVAsYUFBSjtBQUNBLGFBQU0sSUFBSVMsSUFBSSxLQUFLbEIsSUFBTCxDQUFVdUIsS0FBVixDQUFnQmpCLE1BQWhCLEdBQXlCLENBQXZDLEVBQTBDWSxLQUFLLENBQS9DLEVBQWtEQSxHQUFsRCxFQUF3RDtBQUNwRFQsbUJBQU8sS0FBS1QsSUFBTCxDQUFVdUIsS0FBVixDQUFnQkwsQ0FBaEIsQ0FBUDtBQUNBLGdCQUFLVCxLQUFLZSxJQUFMLEtBQWMsU0FBbkIsRUFBK0I7QUFDL0IsZ0JBQUtmLEtBQUtnQixJQUFMLENBQVViLE9BQVYsQ0FBa0IscUJBQWxCLE1BQTZDLENBQWxELEVBQXNEO0FBQ2xELHFCQUFLWixJQUFMLENBQVUwQixXQUFWLENBQXNCUixDQUF0QjtBQUNIO0FBQ0o7QUFDSixLOzsyQkFFRFMsaUIsZ0NBQW9CO0FBQUE7O0FBQ2hCLFlBQUlDLFVBQVUsRUFBZDtBQUNBLGFBQUs1QixJQUFMLENBQVVRLElBQVYsQ0FBZ0IsZ0JBQVE7QUFDcEIsZ0JBQUtDLEtBQUtDLE1BQVYsRUFBbUI7QUFDZixvQkFBSW1CLE9BQU9wQixLQUFLQyxNQUFMLENBQVlDLEtBQVosQ0FBa0JrQixJQUE3QjtBQUNBLG9CQUFLQSxRQUFRLENBQUNELFFBQVFDLElBQVIsQ0FBZCxFQUE4QjtBQUMxQkQsNEJBQVFDLElBQVIsSUFBZ0IsSUFBaEI7QUFDQSx3QkFBSUMsV0FBVyxPQUFLQSxRQUFMLENBQWNELElBQWQsQ0FBZjtBQUNBLDJCQUFLMUIsR0FBTCxDQUFTNEIsZ0JBQVQsQ0FBMEJELFFBQTFCLEVBQW9DckIsS0FBS0MsTUFBTCxDQUFZQyxLQUFaLENBQWtCcUIsR0FBdEQ7QUFDSDtBQUNKO0FBQ0osU0FURDtBQVVILEs7OzJCQUVEQyxhLDRCQUFnQjtBQUNaLDZCQUFrQixLQUFLNUIsUUFBTCxFQUFsQixrSEFBb0M7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUFBLGdCQUExQjZCLElBQTBCOztBQUNoQyxnQkFBSUwsT0FBTyxLQUFLQyxRQUFMLENBQWNJLEtBQUtDLElBQW5CLENBQVg7QUFDQSxnQkFBSW5DLE9BQU9rQyxLQUFLbEMsSUFBTCxJQUFhLGVBQUtvQyxPQUFMLENBQWFGLEtBQUtDLElBQWxCLENBQXhCO0FBQ0EsZ0JBQUloQyxZQUFKOztBQUVBLGdCQUFLLEtBQUtELE9BQUwsQ0FBYWtCLGNBQWIsS0FBZ0MsS0FBckMsRUFBNkM7QUFDekNqQixzQkFBTSxJQUFJLG9CQUFRa0MsaUJBQVosQ0FBOEJILEtBQUtULElBQW5DLENBQU47QUFDQSxvQkFBS3RCLElBQUlpQixjQUFULEVBQTBCO0FBQ3RCakIsd0JBQUlpQixjQUFKLEdBQXFCakIsSUFBSWlCLGNBQUosQ0FBbUJqQixHQUFuQixDQUF3QjtBQUFBLCtCQUFNLElBQU47QUFBQSxxQkFBeEIsQ0FBckI7QUFDSDtBQUNKLGFBTEQsTUFLTztBQUNIQSxzQkFBTStCLEtBQUtJLFFBQUwsRUFBTjtBQUNIOztBQUVELGlCQUFLbkMsR0FBTCxDQUFTb0MsY0FBVCxDQUF3QnBDLEdBQXhCLEVBQTZCMEIsSUFBN0IsRUFBbUMsS0FBS0MsUUFBTCxDQUFjOUIsSUFBZCxDQUFuQztBQUNIO0FBQ0osSzs7MkJBRUR3QyxZLDJCQUFlO0FBQ1gsWUFBSyxLQUFLMUIsUUFBTCxFQUFMLEVBQXVCO0FBQ25CLG1CQUFPLElBQVA7QUFDSCxTQUZELE1BRU8sSUFBSyxPQUFPLEtBQUtaLE9BQUwsQ0FBYWMsVUFBcEIsS0FBbUMsV0FBeEMsRUFBc0Q7QUFDekQsbUJBQU8sS0FBS2QsT0FBTCxDQUFhYyxVQUFwQjtBQUNILFNBRk0sTUFFQSxJQUFLLEtBQUtYLFFBQUwsR0FBZ0JDLE1BQXJCLEVBQThCO0FBQ2pDLG1CQUFPLEtBQUtELFFBQUwsR0FBZ0JZLElBQWhCLENBQXNCO0FBQUEsdUJBQUtDLEVBQUVGLFVBQVA7QUFBQSxhQUF0QixDQUFQO0FBQ0gsU0FGTSxNQUVBO0FBQ0gsbUJBQU8sSUFBUDtBQUNIO0FBQ0osSzs7MkJBRUR5QixhLDRCQUFnQjtBQUNaLFlBQUlDLGdCQUFKOztBQUVBLFlBQUssS0FBSzVCLFFBQUwsRUFBTCxFQUF1QjtBQUNuQjRCLHNCQUFVLGtDQUNDLGVBQU9DLE1BQVAsQ0FBZSxLQUFLeEMsR0FBTCxDQUFTeUMsUUFBVCxFQUFmLENBRFg7QUFHSCxTQUpELE1BSU8sSUFBSyxPQUFPLEtBQUsxQyxPQUFMLENBQWFjLFVBQXBCLEtBQW1DLFFBQXhDLEVBQW1EO0FBQ3REMEIsc0JBQVUsS0FBS3hDLE9BQUwsQ0FBYWMsVUFBdkI7QUFFSCxTQUhNLE1BR0E7QUFDSDBCLHNCQUFVLEtBQUtHLFVBQUwsS0FBb0IsTUFBOUI7QUFDSDs7QUFFRCxZQUFJQyxNQUFRLElBQVo7QUFDQSxZQUFLLEtBQUtkLEdBQUwsQ0FBU3BCLE9BQVQsQ0FBaUIsTUFBakIsTUFBNkIsQ0FBQyxDQUFuQyxFQUF1Q2tDLE1BQU0sTUFBTjs7QUFFdkMsYUFBS2QsR0FBTCxJQUFZYyxNQUFNLHVCQUFOLEdBQWdDSixPQUFoQyxHQUEwQyxLQUF0RDtBQUNILEs7OzJCQUVERyxVLHlCQUFhO0FBQ1QsWUFBSyxLQUFLNUMsSUFBTCxDQUFVOEMsRUFBZixFQUFvQjtBQUNoQixtQkFBTyxLQUFLakIsUUFBTCxDQUFjLEtBQUs3QixJQUFMLENBQVU4QyxFQUF4QixDQUFQO0FBQ0gsU0FGRCxNQUVPLElBQUssS0FBSzlDLElBQUwsQ0FBVTRCLElBQWYsRUFBc0I7QUFDekIsbUJBQU8sS0FBS0MsUUFBTCxDQUFjLEtBQUs3QixJQUFMLENBQVU0QixJQUF4QixDQUFQO0FBQ0gsU0FGTSxNQUVBO0FBQ0gsbUJBQU8sUUFBUDtBQUNIO0FBQ0osSzs7MkJBRURtQixXLDBCQUFjO0FBQ1YsYUFBS0MsY0FBTDtBQUNBLFlBQUssS0FBSzlCLGdCQUFMLEVBQUwsRUFBa0MsS0FBS1EsaUJBQUw7QUFDbEMsWUFBSyxLQUFLdEIsUUFBTCxHQUFnQkMsTUFBaEIsR0FBeUIsQ0FBOUIsRUFBa0MsS0FBSzJCLGFBQUw7QUFDbEMsWUFBSyxLQUFLTyxZQUFMLEVBQUwsRUFBa0MsS0FBS0MsYUFBTDs7QUFFbEMsWUFBSyxLQUFLM0IsUUFBTCxFQUFMLEVBQXVCO0FBQ25CLG1CQUFPLENBQUMsS0FBS2tCLEdBQU4sQ0FBUDtBQUNILFNBRkQsTUFFTztBQUNILG1CQUFPLENBQUMsS0FBS0EsR0FBTixFQUFXLEtBQUs3QixHQUFoQixDQUFQO0FBQ0g7QUFDSixLOzsyQkFFRDJCLFEscUJBQVNLLEksRUFBTTtBQUNYLFlBQUtBLEtBQUt2QixPQUFMLENBQWEsR0FBYixNQUFzQixDQUEzQixFQUErQixPQUFPdUIsSUFBUDtBQUMvQixZQUFLLFlBQVllLElBQVosQ0FBaUJmLElBQWpCLENBQUwsRUFBOEIsT0FBT0EsSUFBUDs7QUFFOUIsWUFBSU4sT0FBTyxLQUFLNUIsSUFBTCxDQUFVOEMsRUFBVixHQUFlLGVBQUtYLE9BQUwsQ0FBYSxLQUFLbkMsSUFBTCxDQUFVOEMsRUFBdkIsQ0FBZixHQUE0QyxHQUF2RDs7QUFFQSxZQUFLLE9BQU8sS0FBSzdDLE9BQUwsQ0FBYWMsVUFBcEIsS0FBbUMsUUFBeEMsRUFBbUQ7QUFDL0NhLG1CQUFPLGVBQUtPLE9BQUwsQ0FBYyxlQUFLZSxPQUFMLENBQWF0QixJQUFiLEVBQW1CLEtBQUszQixPQUFMLENBQWFjLFVBQWhDLENBQWQsQ0FBUDtBQUNIOztBQUVEbUIsZUFBTyxlQUFLTCxRQUFMLENBQWNELElBQWQsRUFBb0JNLElBQXBCLENBQVA7QUFDQSxZQUFLLGVBQUtpQixHQUFMLEtBQWEsSUFBbEIsRUFBeUI7QUFDckIsbUJBQU9qQixLQUFLa0IsT0FBTCxDQUFhLEtBQWIsRUFBb0IsR0FBcEIsQ0FBUDtBQUNILFNBRkQsTUFFTztBQUNILG1CQUFPbEIsSUFBUDtBQUNIO0FBQ0osSzs7MkJBRURtQixVLHVCQUFXN0MsSSxFQUFNO0FBQ2IsWUFBSyxLQUFLUCxPQUFMLENBQWEyQixJQUFsQixFQUF5QjtBQUNyQixtQkFBTyxLQUFLM0IsT0FBTCxDQUFhMkIsSUFBcEI7QUFDSCxTQUZELE1BRU87QUFDSCxtQkFBTyxLQUFLQyxRQUFMLENBQWNyQixLQUFLQyxNQUFMLENBQVlDLEtBQVosQ0FBa0JrQixJQUFoQyxDQUFQO0FBQ0g7QUFDSixLOzsyQkFFRG9CLGMsNkJBQWlCO0FBQUE7O0FBQ2IsYUFBS2pCLEdBQUwsR0FBVyxFQUFYO0FBQ0EsYUFBSzdCLEdBQUwsR0FBVyxJQUFJLG9CQUFRb0Qsa0JBQVosQ0FBK0IsRUFBRXBCLE1BQU0sS0FBS1UsVUFBTCxFQUFSLEVBQS9CLENBQVg7O0FBRUEsWUFBSVcsT0FBUyxDQUFiO0FBQ0EsWUFBSUMsU0FBUyxDQUFiOztBQUVBLFlBQUlDLGNBQUo7QUFBQSxZQUFXQyxhQUFYO0FBQ0EsYUFBSzVELFNBQUwsQ0FBZSxLQUFLQyxJQUFwQixFQUEwQixVQUFDNEQsR0FBRCxFQUFNbkQsSUFBTixFQUFZZSxJQUFaLEVBQXFCO0FBQzNDLG1CQUFLUSxHQUFMLElBQVk0QixHQUFaOztBQUVBLGdCQUFLbkQsUUFBUWUsU0FBUyxLQUF0QixFQUE4QjtBQUMxQixvQkFBS2YsS0FBS0MsTUFBTCxJQUFlRCxLQUFLQyxNQUFMLENBQVltRCxLQUFoQyxFQUF3QztBQUNwQywyQkFBSzFELEdBQUwsQ0FBUzJELFVBQVQsQ0FBb0I7QUFDaEJwRCxnQ0FBVyxPQUFLNEMsVUFBTCxDQUFnQjdDLElBQWhCLENBREs7QUFFaEJzRCxtQ0FBVyxFQUFFUCxVQUFGLEVBQVFDLFFBQVFBLFNBQVMsQ0FBekIsRUFGSztBQUdoQk8sa0NBQVc7QUFDUFIsa0NBQVEvQyxLQUFLQyxNQUFMLENBQVltRCxLQUFaLENBQWtCTCxJQURuQjtBQUVQQyxvQ0FBUWhELEtBQUtDLE1BQUwsQ0FBWW1ELEtBQVosQ0FBa0JKLE1BQWxCLEdBQTJCO0FBRjVCO0FBSEsscUJBQXBCO0FBUUgsaUJBVEQsTUFTTztBQUNILDJCQUFLdEQsR0FBTCxDQUFTMkQsVUFBVCxDQUFvQjtBQUNoQnBELGdDQUFXLGFBREs7QUFFaEJzRCxrQ0FBVyxFQUFFUixNQUFNLENBQVIsRUFBV0MsUUFBUSxDQUFuQixFQUZLO0FBR2hCTSxtQ0FBVyxFQUFFUCxVQUFGLEVBQVFDLFFBQVFBLFNBQVMsQ0FBekI7QUFISyxxQkFBcEI7QUFLSDtBQUNKOztBQUVEQyxvQkFBUUUsSUFBSUssS0FBSixDQUFVLEtBQVYsQ0FBUjtBQUNBLGdCQUFLUCxLQUFMLEVBQWE7QUFDVEYsd0JBQVNFLE1BQU1wRCxNQUFmO0FBQ0FxRCx1QkFBU0MsSUFBSU0sV0FBSixDQUFnQixJQUFoQixDQUFUO0FBQ0FULHlCQUFTRyxJQUFJdEQsTUFBSixHQUFhcUQsSUFBdEI7QUFDSCxhQUpELE1BSU87QUFDSEYsMEJBQVVHLElBQUl0RCxNQUFkO0FBQ0g7O0FBRUQsZ0JBQUtHLFFBQVFlLFNBQVMsT0FBdEIsRUFBZ0M7QUFDNUIsb0JBQUtmLEtBQUtDLE1BQUwsSUFBZUQsS0FBS0MsTUFBTCxDQUFZeUQsR0FBaEMsRUFBc0M7QUFDbEMsMkJBQUtoRSxHQUFMLENBQVMyRCxVQUFULENBQW9CO0FBQ2hCcEQsZ0NBQVcsT0FBSzRDLFVBQUwsQ0FBZ0I3QyxJQUFoQixDQURLO0FBRWhCc0QsbUNBQVcsRUFBRVAsVUFBRixFQUFRQyxRQUFRQSxTQUFTLENBQXpCLEVBRks7QUFHaEJPLGtDQUFXO0FBQ1BSLGtDQUFRL0MsS0FBS0MsTUFBTCxDQUFZeUQsR0FBWixDQUFnQlgsSUFEakI7QUFFUEMsb0NBQVFoRCxLQUFLQyxNQUFMLENBQVl5RCxHQUFaLENBQWdCVjtBQUZqQjtBQUhLLHFCQUFwQjtBQVFILGlCQVRELE1BU087QUFDSCwyQkFBS3RELEdBQUwsQ0FBUzJELFVBQVQsQ0FBb0I7QUFDaEJwRCxnQ0FBVyxhQURLO0FBRWhCc0Qsa0NBQVcsRUFBRVIsTUFBTSxDQUFSLEVBQVdDLFFBQVEsQ0FBbkIsRUFGSztBQUdoQk0sbUNBQVcsRUFBRVAsVUFBRixFQUFRQyxRQUFRQSxTQUFTLENBQXpCO0FBSEsscUJBQXBCO0FBS0g7QUFDSjtBQUNKLFNBakREO0FBa0RILEs7OzJCQUVEVyxRLHVCQUFXO0FBQ1AsYUFBSzlDLGVBQUw7O0FBRUEsWUFBSyxLQUFLbEIsS0FBTCxFQUFMLEVBQW9CO0FBQ2hCLG1CQUFPLEtBQUs0QyxXQUFMLEVBQVA7QUFDSCxTQUZELE1BRU87QUFDSCxnQkFBSXFCLFNBQVMsRUFBYjtBQUNBLGlCQUFLdEUsU0FBTCxDQUFlLEtBQUtDLElBQXBCLEVBQTBCLGFBQUs7QUFDM0JxRSwwQkFBVW5ELENBQVY7QUFDSCxhQUZEO0FBR0EsbUJBQU8sQ0FBQ21ELE1BQUQsQ0FBUDtBQUNIO0FBQ0osSzs7Ozs7a0JBcFFnQnZFLFkiLCJmaWxlIjoibWFwLWdlbmVyYXRvci5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2U2NCB9IGZyb20gJ2pzLWJhc2U2NCc7XG5pbXBvcnQgICBtb3ppbGxhICBmcm9tICdzb3VyY2UtbWFwJztcbmltcG9ydCAgIHBhdGggICAgIGZyb20gJ3BhdGgnO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBNYXBHZW5lcmF0b3Ige1xuXG4gICAgY29uc3RydWN0b3Ioc3RyaW5naWZ5LCByb290LCBvcHRzKSB7XG4gICAgICAgIHRoaXMuc3RyaW5naWZ5ID0gc3RyaW5naWZ5O1xuICAgICAgICB0aGlzLm1hcE9wdHMgICA9IG9wdHMubWFwIHx8IHsgfTtcbiAgICAgICAgdGhpcy5yb290ICAgICAgPSByb290O1xuICAgICAgICB0aGlzLm9wdHMgICAgICA9IG9wdHM7XG4gICAgfVxuXG4gICAgaXNNYXAoKSB7XG4gICAgICAgIGlmICggdHlwZW9mIHRoaXMub3B0cy5tYXAgIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgcmV0dXJuICEhdGhpcy5vcHRzLm1hcDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnByZXZpb3VzKCkubGVuZ3RoID4gMDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByZXZpb3VzKCkge1xuICAgICAgICBpZiAoICF0aGlzLnByZXZpb3VzTWFwcyApIHtcbiAgICAgICAgICAgIHRoaXMucHJldmlvdXNNYXBzID0gW107XG4gICAgICAgICAgICB0aGlzLnJvb3Qud2Fsayggbm9kZSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCBub2RlLnNvdXJjZSAmJiBub2RlLnNvdXJjZS5pbnB1dC5tYXAgKSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBtYXAgPSBub2RlLnNvdXJjZS5pbnB1dC5tYXA7XG4gICAgICAgICAgICAgICAgICAgIGlmICggdGhpcy5wcmV2aW91c01hcHMuaW5kZXhPZihtYXApID09PSAtMSApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucHJldmlvdXNNYXBzLnB1c2gobWFwKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMucHJldmlvdXNNYXBzO1xuICAgIH1cblxuICAgIGlzSW5saW5lKCkge1xuICAgICAgICBpZiAoIHR5cGVvZiB0aGlzLm1hcE9wdHMuaW5saW5lICE9PSAndW5kZWZpbmVkJyApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLm1hcE9wdHMuaW5saW5lO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGFubm90YXRpb24gPSB0aGlzLm1hcE9wdHMuYW5ub3RhdGlvbjtcbiAgICAgICAgaWYgKCB0eXBlb2YgYW5ub3RhdGlvbiAhPT0gJ3VuZGVmaW5lZCcgJiYgYW5ub3RhdGlvbiAhPT0gdHJ1ZSApIHtcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggdGhpcy5wcmV2aW91cygpLmxlbmd0aCApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnByZXZpb3VzKCkuc29tZSggaSA9PiBpLmlubGluZSApO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBpc1NvdXJjZXNDb250ZW50KCkge1xuICAgICAgICBpZiAoIHR5cGVvZiB0aGlzLm1hcE9wdHMuc291cmNlc0NvbnRlbnQgIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMubWFwT3B0cy5zb3VyY2VzQ29udGVudDtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIHRoaXMucHJldmlvdXMoKS5sZW5ndGggKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5wcmV2aW91cygpLnNvbWUoIGkgPT4gaS53aXRoQ29udGVudCgpICk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNsZWFyQW5ub3RhdGlvbigpIHtcbiAgICAgICAgaWYgKCB0aGlzLm1hcE9wdHMuYW5ub3RhdGlvbiA9PT0gZmFsc2UgKSByZXR1cm47XG5cbiAgICAgICAgbGV0IG5vZGU7XG4gICAgICAgIGZvciAoIGxldCBpID0gdGhpcy5yb290Lm5vZGVzLmxlbmd0aCAtIDE7IGkgPj0gMDsgaS0tICkge1xuICAgICAgICAgICAgbm9kZSA9IHRoaXMucm9vdC5ub2Rlc1tpXTtcbiAgICAgICAgICAgIGlmICggbm9kZS50eXBlICE9PSAnY29tbWVudCcgKSBjb250aW51ZTtcbiAgICAgICAgICAgIGlmICggbm9kZS50ZXh0LmluZGV4T2YoJyMgc291cmNlTWFwcGluZ1VSTD0nKSA9PT0gMCApIHtcbiAgICAgICAgICAgICAgICB0aGlzLnJvb3QucmVtb3ZlQ2hpbGQoaSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBzZXRTb3VyY2VzQ29udGVudCgpIHtcbiAgICAgICAgbGV0IGFscmVhZHkgPSB7IH07XG4gICAgICAgIHRoaXMucm9vdC53YWxrKCBub2RlID0+IHtcbiAgICAgICAgICAgIGlmICggbm9kZS5zb3VyY2UgKSB7XG4gICAgICAgICAgICAgICAgbGV0IGZyb20gPSBub2RlLnNvdXJjZS5pbnB1dC5mcm9tO1xuICAgICAgICAgICAgICAgIGlmICggZnJvbSAmJiAhYWxyZWFkeVtmcm9tXSApIHtcbiAgICAgICAgICAgICAgICAgICAgYWxyZWFkeVtmcm9tXSA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIGxldCByZWxhdGl2ZSA9IHRoaXMucmVsYXRpdmUoZnJvbSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubWFwLnNldFNvdXJjZUNvbnRlbnQocmVsYXRpdmUsIG5vZGUuc291cmNlLmlucHV0LmNzcyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBhcHBseVByZXZNYXBzKCkge1xuICAgICAgICBmb3IgKCBsZXQgcHJldiBvZiB0aGlzLnByZXZpb3VzKCkgKSB7XG4gICAgICAgICAgICBsZXQgZnJvbSA9IHRoaXMucmVsYXRpdmUocHJldi5maWxlKTtcbiAgICAgICAgICAgIGxldCByb290ID0gcHJldi5yb290IHx8IHBhdGguZGlybmFtZShwcmV2LmZpbGUpO1xuICAgICAgICAgICAgbGV0IG1hcDtcblxuICAgICAgICAgICAgaWYgKCB0aGlzLm1hcE9wdHMuc291cmNlc0NvbnRlbnQgPT09IGZhbHNlICkge1xuICAgICAgICAgICAgICAgIG1hcCA9IG5ldyBtb3ppbGxhLlNvdXJjZU1hcENvbnN1bWVyKHByZXYudGV4dCk7XG4gICAgICAgICAgICAgICAgaWYgKCBtYXAuc291cmNlc0NvbnRlbnQgKSB7XG4gICAgICAgICAgICAgICAgICAgIG1hcC5zb3VyY2VzQ29udGVudCA9IG1hcC5zb3VyY2VzQ29udGVudC5tYXAoICgpID0+IG51bGwgKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIG1hcCA9IHByZXYuY29uc3VtZXIoKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5tYXAuYXBwbHlTb3VyY2VNYXAobWFwLCBmcm9tLCB0aGlzLnJlbGF0aXZlKHJvb3QpKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGlzQW5ub3RhdGlvbigpIHtcbiAgICAgICAgaWYgKCB0aGlzLmlzSW5saW5lKCkgKSB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfSBlbHNlIGlmICggdHlwZW9mIHRoaXMubWFwT3B0cy5hbm5vdGF0aW9uICE9PSAndW5kZWZpbmVkJyApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLm1hcE9wdHMuYW5ub3RhdGlvbjtcbiAgICAgICAgfSBlbHNlIGlmICggdGhpcy5wcmV2aW91cygpLmxlbmd0aCApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnByZXZpb3VzKCkuc29tZSggaSA9PiBpLmFubm90YXRpb24gKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYWRkQW5ub3RhdGlvbigpIHtcbiAgICAgICAgbGV0IGNvbnRlbnQ7XG5cbiAgICAgICAgaWYgKCB0aGlzLmlzSW5saW5lKCkgKSB7XG4gICAgICAgICAgICBjb250ZW50ID0gJ2RhdGE6YXBwbGljYXRpb24vanNvbjtiYXNlNjQsJyArXG4gICAgICAgICAgICAgICAgICAgICAgIEJhc2U2NC5lbmNvZGUoIHRoaXMubWFwLnRvU3RyaW5nKCkgKTtcblxuICAgICAgICB9IGVsc2UgaWYgKCB0eXBlb2YgdGhpcy5tYXBPcHRzLmFubm90YXRpb24gPT09ICdzdHJpbmcnICkge1xuICAgICAgICAgICAgY29udGVudCA9IHRoaXMubWFwT3B0cy5hbm5vdGF0aW9uO1xuXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBjb250ZW50ID0gdGhpcy5vdXRwdXRGaWxlKCkgKyAnLm1hcCc7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgZW9sICAgPSAnXFxuJztcbiAgICAgICAgaWYgKCB0aGlzLmNzcy5pbmRleE9mKCdcXHJcXG4nKSAhPT0gLTEgKSBlb2wgPSAnXFxyXFxuJztcblxuICAgICAgICB0aGlzLmNzcyArPSBlb2wgKyAnLyojIHNvdXJjZU1hcHBpbmdVUkw9JyArIGNvbnRlbnQgKyAnICovJztcbiAgICB9XG5cbiAgICBvdXRwdXRGaWxlKCkge1xuICAgICAgICBpZiAoIHRoaXMub3B0cy50byApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnJlbGF0aXZlKHRoaXMub3B0cy50byk7XG4gICAgICAgIH0gZWxzZSBpZiAoIHRoaXMub3B0cy5mcm9tICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMucmVsYXRpdmUodGhpcy5vcHRzLmZyb20pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuICd0by5jc3MnO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZ2VuZXJhdGVNYXAoKSB7XG4gICAgICAgIHRoaXMuZ2VuZXJhdGVTdHJpbmcoKTtcbiAgICAgICAgaWYgKCB0aGlzLmlzU291cmNlc0NvbnRlbnQoKSApICAgIHRoaXMuc2V0U291cmNlc0NvbnRlbnQoKTtcbiAgICAgICAgaWYgKCB0aGlzLnByZXZpb3VzKCkubGVuZ3RoID4gMCApIHRoaXMuYXBwbHlQcmV2TWFwcygpO1xuICAgICAgICBpZiAoIHRoaXMuaXNBbm5vdGF0aW9uKCkgKSAgICAgICAgdGhpcy5hZGRBbm5vdGF0aW9uKCk7XG5cbiAgICAgICAgaWYgKCB0aGlzLmlzSW5saW5lKCkgKSB7XG4gICAgICAgICAgICByZXR1cm4gW3RoaXMuY3NzXTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiBbdGhpcy5jc3MsIHRoaXMubWFwXTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJlbGF0aXZlKGZpbGUpIHtcbiAgICAgICAgaWYgKCBmaWxlLmluZGV4T2YoJzwnKSA9PT0gMCApIHJldHVybiBmaWxlO1xuICAgICAgICBpZiAoIC9eXFx3KzpcXC9cXC8vLnRlc3QoZmlsZSkgKSByZXR1cm4gZmlsZTtcblxuICAgICAgICBsZXQgZnJvbSA9IHRoaXMub3B0cy50byA/IHBhdGguZGlybmFtZSh0aGlzLm9wdHMudG8pIDogJy4nO1xuXG4gICAgICAgIGlmICggdHlwZW9mIHRoaXMubWFwT3B0cy5hbm5vdGF0aW9uID09PSAnc3RyaW5nJyApIHtcbiAgICAgICAgICAgIGZyb20gPSBwYXRoLmRpcm5hbWUoIHBhdGgucmVzb2x2ZShmcm9tLCB0aGlzLm1hcE9wdHMuYW5ub3RhdGlvbikgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGZpbGUgPSBwYXRoLnJlbGF0aXZlKGZyb20sIGZpbGUpO1xuICAgICAgICBpZiAoIHBhdGguc2VwID09PSAnXFxcXCcgKSB7XG4gICAgICAgICAgICByZXR1cm4gZmlsZS5yZXBsYWNlKC9cXFxcL2csICcvJyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gZmlsZTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHNvdXJjZVBhdGgobm9kZSkge1xuICAgICAgICBpZiAoIHRoaXMubWFwT3B0cy5mcm9tICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMubWFwT3B0cy5mcm9tO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMucmVsYXRpdmUobm9kZS5zb3VyY2UuaW5wdXQuZnJvbSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZW5lcmF0ZVN0cmluZygpIHtcbiAgICAgICAgdGhpcy5jc3MgPSAnJztcbiAgICAgICAgdGhpcy5tYXAgPSBuZXcgbW96aWxsYS5Tb3VyY2VNYXBHZW5lcmF0b3IoeyBmaWxlOiB0aGlzLm91dHB1dEZpbGUoKSB9KTtcblxuICAgICAgICBsZXQgbGluZSAgID0gMTtcbiAgICAgICAgbGV0IGNvbHVtbiA9IDE7XG5cbiAgICAgICAgbGV0IGxpbmVzLCBsYXN0O1xuICAgICAgICB0aGlzLnN0cmluZ2lmeSh0aGlzLnJvb3QsIChzdHIsIG5vZGUsIHR5cGUpID0+IHtcbiAgICAgICAgICAgIHRoaXMuY3NzICs9IHN0cjtcblxuICAgICAgICAgICAgaWYgKCBub2RlICYmIHR5cGUgIT09ICdlbmQnICkge1xuICAgICAgICAgICAgICAgIGlmICggbm9kZS5zb3VyY2UgJiYgbm9kZS5zb3VyY2Uuc3RhcnQgKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubWFwLmFkZE1hcHBpbmcoe1xuICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlOiAgICB0aGlzLnNvdXJjZVBhdGgobm9kZSksXG4gICAgICAgICAgICAgICAgICAgICAgICBnZW5lcmF0ZWQ6IHsgbGluZSwgY29sdW1uOiBjb2x1bW4gLSAxIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBvcmlnaW5hbDogIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsaW5lOiAgIG5vZGUuc291cmNlLnN0YXJ0LmxpbmUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uOiBub2RlLnNvdXJjZS5zdGFydC5jb2x1bW4gLSAxXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubWFwLmFkZE1hcHBpbmcoe1xuICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlOiAgICAnPG5vIHNvdXJjZT4nLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luYWw6ICB7IGxpbmU6IDEsIGNvbHVtbjogMCB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgZ2VuZXJhdGVkOiB7IGxpbmUsIGNvbHVtbjogY29sdW1uIC0gMSB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgbGluZXMgPSBzdHIubWF0Y2goL1xcbi9nKTtcbiAgICAgICAgICAgIGlmICggbGluZXMgKSB7XG4gICAgICAgICAgICAgICAgbGluZSAgKz0gbGluZXMubGVuZ3RoO1xuICAgICAgICAgICAgICAgIGxhc3QgICA9IHN0ci5sYXN0SW5kZXhPZignXFxuJyk7XG4gICAgICAgICAgICAgICAgY29sdW1uID0gc3RyLmxlbmd0aCAtIGxhc3Q7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGNvbHVtbiArPSBzdHIubGVuZ3RoO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoIG5vZGUgJiYgdHlwZSAhPT0gJ3N0YXJ0JyApIHtcbiAgICAgICAgICAgICAgICBpZiAoIG5vZGUuc291cmNlICYmIG5vZGUuc291cmNlLmVuZCApIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5tYXAuYWRkTWFwcGluZyh7XG4gICAgICAgICAgICAgICAgICAgICAgICBzb3VyY2U6ICAgIHRoaXMuc291cmNlUGF0aChub2RlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGdlbmVyYXRlZDogeyBsaW5lLCBjb2x1bW46IGNvbHVtbiAtIDEgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG9yaWdpbmFsOiAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxpbmU6ICAgbm9kZS5zb3VyY2UuZW5kLmxpbmUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uOiBub2RlLnNvdXJjZS5lbmQuY29sdW1uXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubWFwLmFkZE1hcHBpbmcoe1xuICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlOiAgICAnPG5vIHNvdXJjZT4nLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luYWw6ICB7IGxpbmU6IDEsIGNvbHVtbjogMCB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgZ2VuZXJhdGVkOiB7IGxpbmUsIGNvbHVtbjogY29sdW1uIC0gMSB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgZ2VuZXJhdGUoKSB7XG4gICAgICAgIHRoaXMuY2xlYXJBbm5vdGF0aW9uKCk7XG5cbiAgICAgICAgaWYgKCB0aGlzLmlzTWFwKCkgKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5nZW5lcmF0ZU1hcCgpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbGV0IHJlc3VsdCA9ICcnO1xuICAgICAgICAgICAgdGhpcy5zdHJpbmdpZnkodGhpcy5yb290LCBpID0+IHtcbiAgICAgICAgICAgICAgICByZXN1bHQgKz0gaTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcmV0dXJuIFtyZXN1bHRdO1xuICAgICAgICB9XG4gICAgfVxuXG59XG4iXX0= diff --git a/node_modules/postcss/lib/node.js b/node_modules/postcss/lib/node.js deleted file mode 100644 index a22a35b..0000000 --- a/node_modules/postcss/lib/node.js +++ /dev/null @@ -1,669 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _cssSyntaxError = require('./css-syntax-error'); - -var _cssSyntaxError2 = _interopRequireDefault(_cssSyntaxError); - -var _stringifier = require('./stringifier'); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -var _stringify = require('./stringify'); - -var _stringify2 = _interopRequireDefault(_stringify); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var cloneNode = function cloneNode(obj, parent) { - var cloned = new obj.constructor(); - - for (var i in obj) { - if (!obj.hasOwnProperty(i)) continue; - var value = obj[i]; - var type = typeof value === 'undefined' ? 'undefined' : _typeof(value); - - if (i === 'parent' && type === 'object') { - if (parent) cloned[i] = parent; - } else if (i === 'source') { - cloned[i] = value; - } else if (value instanceof Array) { - cloned[i] = value.map(function (j) { - return cloneNode(j, cloned); - }); - } else if (i !== 'before' && i !== 'after' && i !== 'between' && i !== 'semicolon') { - if (type === 'object' && value !== null) value = cloneNode(value); - cloned[i] = value; - } - } - - return cloned; -}; - -/** - * All node classes inherit the following common methods. - * - * @abstract - */ - -var Node = function () { - - /** - * @param {object} [defaults] - value for node properties - */ - function Node() { - var defaults = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - _classCallCheck(this, Node); - - this.raws = {}; - for (var name in defaults) { - this[name] = defaults[name]; - } - } - - /** - * Returns a CssSyntaxError instance containing the original position - * of the node in the source, showing line and column numbers and also - * a small excerpt to facilitate debugging. - * - * If present, an input source map will be used to get the original position - * of the source, even from a previous compilation step - * (e.g., from Sass compilation). - * - * This method produces very useful error messages. - * - * @param {string} message - error description - * @param {object} [opts] - options - * @param {string} opts.plugin - plugin name that created this error. - * PostCSS will set it automatically. - * @param {string} opts.word - a word inside a node’s string that should - * be highlighted as the source of the error - * @param {number} opts.index - an index inside a node’s string that should - * be highlighted as the source of the error - * - * @return {CssSyntaxError} error object to throw it - * - * @example - * if ( !variables[name] ) { - * throw decl.error('Unknown variable ' + name, { word: name }); - * // CssSyntaxError: postcss-vars:a.sass:4:3: Unknown variable $black - * // color: $black - * // a - * // ^ - * // background: white - * } - */ - - - Node.prototype.error = function error(message) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (this.source) { - var pos = this.positionBy(opts); - return this.source.input.error(message, pos.line, pos.column, opts); - } else { - return new _cssSyntaxError2.default(message); - } - }; - - /** - * This method is provided as a convenience wrapper for {@link Result#warn}. - * - * @param {Result} result - the {@link Result} instance - * that will receive the warning - * @param {string} text - warning message - * @param {object} [opts] - options - * @param {string} opts.plugin - plugin name that created this warning. - * PostCSS will set it automatically. - * @param {string} opts.word - a word inside a node’s string that should - * be highlighted as the source of the warning - * @param {number} opts.index - an index inside a node’s string that should - * be highlighted as the source of the warning - * - * @return {Warning} created warning object - * - * @example - * const plugin = postcss.plugin('postcss-deprecated', () => { - * return (root, result) => { - * root.walkDecls('bad', decl => { - * decl.warn(result, 'Deprecated property bad'); - * }); - * }; - * }); - */ - - - Node.prototype.warn = function warn(result, text, opts) { - var data = { node: this }; - for (var i in opts) { - data[i] = opts[i]; - }return result.warn(text, data); - }; - - /** - * Removes the node from its parent and cleans the parent properties - * from the node and its children. - * - * @example - * if ( decl.prop.match(/^-webkit-/) ) { - * decl.remove(); - * } - * - * @return {Node} node to make calls chain - */ - - - Node.prototype.remove = function remove() { - if (this.parent) { - this.parent.removeChild(this); - } - this.parent = undefined; - return this; - }; - - /** - * Returns a CSS string representing the node. - * - * @param {stringifier|syntax} [stringifier] - a syntax to use - * in string generation - * - * @return {string} CSS string of this node - * - * @example - * postcss.rule({ selector: 'a' }).toString() //=> "a {}" - */ - - - Node.prototype.toString = function toString() { - var stringifier = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _stringify2.default; - - if (stringifier.stringify) stringifier = stringifier.stringify; - var result = ''; - stringifier(this, function (i) { - result += i; - }); - return result; - }; - - /** - * Returns a clone of the node. - * - * The resulting cloned node and its (cloned) children will have - * a clean parent and code style properties. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @example - * const cloned = decl.clone({ prop: '-moz-' + decl.prop }); - * cloned.raws.before //=> undefined - * cloned.parent //=> undefined - * cloned.toString() //=> -moz-transform: scale(0) - * - * @return {Node} clone of the node - */ - - - Node.prototype.clone = function clone() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = cloneNode(this); - for (var name in overrides) { - cloned[name] = overrides[name]; - } - return cloned; - }; - - /** - * Shortcut to clone the node and insert the resulting cloned node - * before the current node. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @example - * decl.cloneBefore({ prop: '-moz-' + decl.prop }); - * - * @return {Node} - new node - */ - - - Node.prototype.cloneBefore = function cloneBefore() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = this.clone(overrides); - this.parent.insertBefore(this, cloned); - return cloned; - }; - - /** - * Shortcut to clone the node and insert the resulting cloned node - * after the current node. - * - * @param {object} [overrides] - new properties to override in the clone. - * - * @return {Node} - new node - */ - - - Node.prototype.cloneAfter = function cloneAfter() { - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var cloned = this.clone(overrides); - this.parent.insertAfter(this, cloned); - return cloned; - }; - - /** - * Inserts node(s) before the current node and removes the current node. - * - * @param {...Node} nodes - node(s) to replace current one - * - * @example - * if ( atrule.name == 'mixin' ) { - * atrule.replaceWith(mixinRules[atrule.params]); - * } - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.replaceWith = function replaceWith() { - if (this.parent) { - for (var _len = arguments.length, nodes = Array(_len), _key = 0; _key < _len; _key++) { - nodes[_key] = arguments[_key]; - } - - for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - this.parent.insertBefore(this, node); - } - - this.remove(); - } - - return this; - }; - - /** - * Removes the node from its current parent and inserts it - * at the end of `newParent`. - * - * This will clean the `before` and `after` code {@link Node#raws} data - * from the node and replace them with the indentation style of `newParent`. - * It will also clean the `between` property - * if `newParent` is in another {@link Root}. - * - * @param {Container} newParent - container node where the current node - * will be moved - * - * @example - * atrule.moveTo(atrule.root()); - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.moveTo = function moveTo(newParent) { - this.cleanRaws(this.root() === newParent.root()); - this.remove(); - newParent.append(this); - return this; - }; - - /** - * Removes the node from its current parent and inserts it into - * a new parent before `otherNode`. - * - * This will also clean the node’s code style properties just as it would - * in {@link Node#moveTo}. - * - * @param {Node} otherNode - node that will be before current node - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.moveBefore = function moveBefore(otherNode) { - this.cleanRaws(this.root() === otherNode.root()); - this.remove(); - otherNode.parent.insertBefore(otherNode, this); - return this; - }; - - /** - * Removes the node from its current parent and inserts it into - * a new parent after `otherNode`. - * - * This will also clean the node’s code style properties just as it would - * in {@link Node#moveTo}. - * - * @param {Node} otherNode - node that will be after current node - * - * @return {Node} current node to methods chain - */ - - - Node.prototype.moveAfter = function moveAfter(otherNode) { - this.cleanRaws(this.root() === otherNode.root()); - this.remove(); - otherNode.parent.insertAfter(otherNode, this); - return this; - }; - - /** - * Returns the next child of the node’s parent. - * Returns `undefined` if the current node is the last child. - * - * @return {Node|undefined} next node - * - * @example - * if ( comment.text === 'delete next' ) { - * const next = comment.next(); - * if ( next ) { - * next.remove(); - * } - * } - */ - - - Node.prototype.next = function next() { - var index = this.parent.index(this); - return this.parent.nodes[index + 1]; - }; - - /** - * Returns the previous child of the node’s parent. - * Returns `undefined` if the current node is the first child. - * - * @return {Node|undefined} previous node - * - * @example - * const annotation = decl.prev(); - * if ( annotation.type == 'comment' ) { - * readAnnotation(annotation.text); - * } - */ - - - Node.prototype.prev = function prev() { - var index = this.parent.index(this); - return this.parent.nodes[index - 1]; - }; - - Node.prototype.toJSON = function toJSON() { - var fixed = {}; - - for (var name in this) { - if (!this.hasOwnProperty(name)) continue; - if (name === 'parent') continue; - var value = this[name]; - - if (value instanceof Array) { - fixed[name] = value.map(function (i) { - if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && i.toJSON) { - return i.toJSON(); - } else { - return i; - } - }); - } else if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value.toJSON) { - fixed[name] = value.toJSON(); - } else { - fixed[name] = value; - } - } - - return fixed; - }; - - /** - * Returns a {@link Node#raws} value. If the node is missing - * the code style property (because the node was manually built or cloned), - * PostCSS will try to autodetect the code style property by looking - * at other nodes in the tree. - * - * @param {string} prop - name of code style property - * @param {string} [defaultType] - name of default value, it can be missed - * if the value is the same as prop - * - * @example - * const root = postcss.parse('a { background: white }'); - * root.nodes[0].append({ prop: 'color', value: 'black' }); - * root.nodes[0].nodes[1].raws.before //=> undefined - * root.nodes[0].nodes[1].raw('before') //=> ' ' - * - * @return {string} code style value - */ - - - Node.prototype.raw = function raw(prop, defaultType) { - var str = new _stringifier2.default(); - return str.raw(this, prop, defaultType); - }; - - /** - * Finds the Root instance of the node’s tree. - * - * @example - * root.nodes[0].nodes[0].root() === root - * - * @return {Root} root parent - */ - - - Node.prototype.root = function root() { - var result = this; - while (result.parent) { - result = result.parent; - }return result; - }; - - Node.prototype.cleanRaws = function cleanRaws(keepBetween) { - delete this.raws.before; - delete this.raws.after; - if (!keepBetween) delete this.raws.between; - }; - - Node.prototype.positionInside = function positionInside(index) { - var string = this.toString(); - var column = this.source.start.column; - var line = this.source.start.line; - - for (var i = 0; i < index; i++) { - if (string[i] === '\n') { - column = 1; - line += 1; - } else { - column += 1; - } - } - - return { line: line, column: column }; - }; - - Node.prototype.positionBy = function positionBy(opts) { - var pos = this.source.start; - if (opts.index) { - pos = this.positionInside(opts.index); - } else if (opts.word) { - var index = this.toString().indexOf(opts.word); - if (index !== -1) pos = this.positionInside(index); - } - return pos; - }; - - Node.prototype.removeSelf = function removeSelf() { - (0, _warnOnce2.default)('Node#removeSelf is deprecated. Use Node#remove.'); - return this.remove(); - }; - - Node.prototype.replace = function replace(nodes) { - (0, _warnOnce2.default)('Node#replace is deprecated. Use Node#replaceWith'); - return this.replaceWith(nodes); - }; - - Node.prototype.style = function style(own, detect) { - (0, _warnOnce2.default)('Node#style() is deprecated. Use Node#raw()'); - return this.raw(own, detect); - }; - - Node.prototype.cleanStyles = function cleanStyles(keepBetween) { - (0, _warnOnce2.default)('Node#cleanStyles() is deprecated. Use Node#cleanRaws()'); - return this.cleanRaws(keepBetween); - }; - - _createClass(Node, [{ - key: 'before', - get: function get() { - (0, _warnOnce2.default)('Node#before is deprecated. Use Node#raws.before'); - return this.raws.before; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#before is deprecated. Use Node#raws.before'); - this.raws.before = val; - } - }, { - key: 'between', - get: function get() { - (0, _warnOnce2.default)('Node#between is deprecated. Use Node#raws.between'); - return this.raws.between; - }, - set: function set(val) { - (0, _warnOnce2.default)('Node#between is deprecated. Use Node#raws.between'); - this.raws.between = val; - } - - /** - * @memberof Node# - * @member {string} type - String representing the node’s type. - * Possible values are `root`, `atrule`, `rule`, - * `decl`, or `comment`. - * - * @example - * postcss.decl({ prop: 'color', value: 'black' }).type //=> 'decl' - */ - - /** - * @memberof Node# - * @member {Container} parent - the node’s parent node. - * - * @example - * root.nodes[0].parent == root; - */ - - /** - * @memberof Node# - * @member {source} source - the input source of the node - * - * The property is used in source map generation. - * - * If you create a node manually (e.g., with `postcss.decl()`), - * that node will not have a `source` property and will be absent - * from the source map. For this reason, the plugin developer should - * consider cloning nodes to create new ones (in which case the new node’s - * source will reference the original, cloned node) or setting - * the `source` property manually. - * - * ```js - * // Bad - * const prefixed = postcss.decl({ - * prop: '-moz-' + decl.prop, - * value: decl.value - * }); - * - * // Good - * const prefixed = decl.clone({ prop: '-moz-' + decl.prop }); - * ``` - * - * ```js - * if ( atrule.name == 'add-link' ) { - * const rule = postcss.rule({ selector: 'a', source: atrule.source }); - * atrule.parent.insertBefore(atrule, rule); - * } - * ``` - * - * @example - * decl.source.input.from //=> '/home/ai/a.sass' - * decl.source.start //=> { line: 10, column: 2 } - * decl.source.end //=> { line: 10, column: 12 } - */ - - /** - * @memberof Node# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * * `afterName`: the space between the at-rule name and its parameters. - * * `left`: the space symbols between `/*` and the comment’s text. - * * `right`: the space symbols between the comment’s text - * and */. - * * `important`: the content of the important statement, - * if it is not just `!important`. - * - * PostCSS cleans selectors, declaration values and at-rule parameters - * from comments and extra spaces, but it stores origin content in raws - * properties. As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '\n ', between: ':' } - */ - - }]); - - return Node; -}(); - -exports.default = Node; - -/** - * @typedef {object} position - * @property {number} line - source line in file - * @property {number} column - source column in file - */ - -/** - * @typedef {object} source - * @property {Input} input - {@link Input} with input file - * @property {position} start - The starting position of the node’s source - * @property {position} end - The ending position of the node’s source - */ - -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGUuZXM2Il0sIm5hbWVzIjpbImNsb25lTm9kZSIsIm9iaiIsInBhcmVudCIsImNsb25lZCIsImNvbnN0cnVjdG9yIiwiaSIsImhhc093blByb3BlcnR5IiwidmFsdWUiLCJ0eXBlIiwiQXJyYXkiLCJtYXAiLCJqIiwiTm9kZSIsImRlZmF1bHRzIiwicmF3cyIsIm5hbWUiLCJlcnJvciIsIm1lc3NhZ2UiLCJvcHRzIiwic291cmNlIiwicG9zIiwicG9zaXRpb25CeSIsImlucHV0IiwibGluZSIsImNvbHVtbiIsIndhcm4iLCJyZXN1bHQiLCJ0ZXh0IiwiZGF0YSIsIm5vZGUiLCJyZW1vdmUiLCJyZW1vdmVDaGlsZCIsInVuZGVmaW5lZCIsInRvU3RyaW5nIiwic3RyaW5naWZpZXIiLCJzdHJpbmdpZnkiLCJjbG9uZSIsIm92ZXJyaWRlcyIsImNsb25lQmVmb3JlIiwiaW5zZXJ0QmVmb3JlIiwiY2xvbmVBZnRlciIsImluc2VydEFmdGVyIiwicmVwbGFjZVdpdGgiLCJub2RlcyIsIm1vdmVUbyIsIm5ld1BhcmVudCIsImNsZWFuUmF3cyIsInJvb3QiLCJhcHBlbmQiLCJtb3ZlQmVmb3JlIiwib3RoZXJOb2RlIiwibW92ZUFmdGVyIiwibmV4dCIsImluZGV4IiwicHJldiIsInRvSlNPTiIsImZpeGVkIiwicmF3IiwicHJvcCIsImRlZmF1bHRUeXBlIiwic3RyIiwia2VlcEJldHdlZW4iLCJiZWZvcmUiLCJhZnRlciIsImJldHdlZW4iLCJwb3NpdGlvbkluc2lkZSIsInN0cmluZyIsInN0YXJ0Iiwid29yZCIsImluZGV4T2YiLCJyZW1vdmVTZWxmIiwicmVwbGFjZSIsInN0eWxlIiwib3duIiwiZGV0ZWN0IiwiY2xlYW5TdHlsZXMiLCJ2YWwiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7O0FBRUEsSUFBSUEsWUFBWSxTQUFaQSxTQUFZLENBQVVDLEdBQVYsRUFBZUMsTUFBZixFQUF1QjtBQUNuQyxRQUFJQyxTQUFTLElBQUlGLElBQUlHLFdBQVIsRUFBYjs7QUFFQSxTQUFNLElBQUlDLENBQVYsSUFBZUosR0FBZixFQUFxQjtBQUNqQixZQUFLLENBQUNBLElBQUlLLGNBQUosQ0FBbUJELENBQW5CLENBQU4sRUFBOEI7QUFDOUIsWUFBSUUsUUFBUU4sSUFBSUksQ0FBSixDQUFaO0FBQ0EsWUFBSUcsY0FBZUQsS0FBZix5Q0FBZUEsS0FBZixDQUFKOztBQUVBLFlBQUtGLE1BQU0sUUFBTixJQUFrQkcsU0FBUyxRQUFoQyxFQUEyQztBQUN2QyxnQkFBSU4sTUFBSixFQUFZQyxPQUFPRSxDQUFQLElBQVlILE1BQVo7QUFDZixTQUZELE1BRU8sSUFBS0csTUFBTSxRQUFYLEVBQXNCO0FBQ3pCRixtQkFBT0UsQ0FBUCxJQUFZRSxLQUFaO0FBQ0gsU0FGTSxNQUVBLElBQUtBLGlCQUFpQkUsS0FBdEIsRUFBOEI7QUFDakNOLG1CQUFPRSxDQUFQLElBQVlFLE1BQU1HLEdBQU4sQ0FBVztBQUFBLHVCQUFLVixVQUFVVyxDQUFWLEVBQWFSLE1BQWIsQ0FBTDtBQUFBLGFBQVgsQ0FBWjtBQUNILFNBRk0sTUFFQSxJQUFLRSxNQUFNLFFBQU4sSUFBbUJBLE1BQU0sT0FBekIsSUFDQUEsTUFBTSxTQUROLElBQ21CQSxNQUFNLFdBRDlCLEVBQzRDO0FBQy9DLGdCQUFLRyxTQUFTLFFBQVQsSUFBcUJELFVBQVUsSUFBcEMsRUFBMkNBLFFBQVFQLFVBQVVPLEtBQVYsQ0FBUjtBQUMzQ0osbUJBQU9FLENBQVAsSUFBWUUsS0FBWjtBQUNIO0FBQ0o7O0FBRUQsV0FBT0osTUFBUDtBQUNILENBdEJEOztBQXdCQTs7Ozs7O0lBS01TLEk7O0FBRUY7OztBQUdBLG9CQUE0QjtBQUFBLFlBQWhCQyxRQUFnQix1RUFBTCxFQUFLOztBQUFBOztBQUN4QixhQUFLQyxJQUFMLEdBQVksRUFBWjtBQUNBLGFBQU0sSUFBSUMsSUFBVixJQUFrQkYsUUFBbEIsRUFBNkI7QUFDekIsaUJBQUtFLElBQUwsSUFBYUYsU0FBU0UsSUFBVCxDQUFiO0FBQ0g7QUFDSjs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzttQkFnQ0FDLEssa0JBQU1DLE8sRUFBcUI7QUFBQSxZQUFaQyxJQUFZLHVFQUFMLEVBQUs7O0FBQ3ZCLFlBQUssS0FBS0MsTUFBVixFQUFtQjtBQUNmLGdCQUFJQyxNQUFNLEtBQUtDLFVBQUwsQ0FBZ0JILElBQWhCLENBQVY7QUFDQSxtQkFBTyxLQUFLQyxNQUFMLENBQVlHLEtBQVosQ0FBa0JOLEtBQWxCLENBQXdCQyxPQUF4QixFQUFpQ0csSUFBSUcsSUFBckMsRUFBMkNILElBQUlJLE1BQS9DLEVBQXVETixJQUF2RCxDQUFQO0FBQ0gsU0FIRCxNQUdPO0FBQ0gsbUJBQU8sNkJBQW1CRCxPQUFuQixDQUFQO0FBQ0g7QUFDSixLOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7bUJBeUJBUSxJLGlCQUFLQyxNLEVBQVFDLEksRUFBTVQsSSxFQUFNO0FBQ3JCLFlBQUlVLE9BQU8sRUFBRUMsTUFBTSxJQUFSLEVBQVg7QUFDQSxhQUFNLElBQUl4QixDQUFWLElBQWVhLElBQWY7QUFBc0JVLGlCQUFLdkIsQ0FBTCxJQUFVYSxLQUFLYixDQUFMLENBQVY7QUFBdEIsU0FDQSxPQUFPcUIsT0FBT0QsSUFBUCxDQUFZRSxJQUFaLEVBQWtCQyxJQUFsQixDQUFQO0FBQ0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7OzttQkFXQUUsTSxxQkFBUztBQUNMLFlBQUssS0FBSzVCLE1BQVYsRUFBbUI7QUFDZixpQkFBS0EsTUFBTCxDQUFZNkIsV0FBWixDQUF3QixJQUF4QjtBQUNIO0FBQ0QsYUFBSzdCLE1BQUwsR0FBYzhCLFNBQWQ7QUFDQSxlQUFPLElBQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7O21CQVdBQyxRLHVCQUFrQztBQUFBLFlBQXpCQyxXQUF5Qjs7QUFDOUIsWUFBS0EsWUFBWUMsU0FBakIsRUFBNkJELGNBQWNBLFlBQVlDLFNBQTFCO0FBQzdCLFlBQUlULFNBQVUsRUFBZDtBQUNBUSxvQkFBWSxJQUFaLEVBQWtCLGFBQUs7QUFDbkJSLHNCQUFVckIsQ0FBVjtBQUNILFNBRkQ7QUFHQSxlQUFPcUIsTUFBUDtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7OzttQkFnQkFVLEssb0JBQXVCO0FBQUEsWUFBakJDLFNBQWlCLHVFQUFMLEVBQUs7O0FBQ25CLFlBQUlsQyxTQUFTSCxVQUFVLElBQVYsQ0FBYjtBQUNBLGFBQU0sSUFBSWUsSUFBVixJQUFrQnNCLFNBQWxCLEVBQThCO0FBQzFCbEMsbUJBQU9ZLElBQVAsSUFBZXNCLFVBQVV0QixJQUFWLENBQWY7QUFDSDtBQUNELGVBQU9aLE1BQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7O21CQVdBbUMsVywwQkFBNkI7QUFBQSxZQUFqQkQsU0FBaUIsdUVBQUwsRUFBSzs7QUFDekIsWUFBSWxDLFNBQVMsS0FBS2lDLEtBQUwsQ0FBV0MsU0FBWCxDQUFiO0FBQ0EsYUFBS25DLE1BQUwsQ0FBWXFDLFlBQVosQ0FBeUIsSUFBekIsRUFBK0JwQyxNQUEvQjtBQUNBLGVBQU9BLE1BQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7O21CQVFBcUMsVSx5QkFBNEI7QUFBQSxZQUFqQkgsU0FBaUIsdUVBQUwsRUFBSzs7QUFDeEIsWUFBSWxDLFNBQVMsS0FBS2lDLEtBQUwsQ0FBV0MsU0FBWCxDQUFiO0FBQ0EsYUFBS25DLE1BQUwsQ0FBWXVDLFdBQVosQ0FBd0IsSUFBeEIsRUFBOEJ0QyxNQUE5QjtBQUNBLGVBQU9BLE1BQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7OzttQkFZQXVDLFcsMEJBQXNCO0FBQ2xCLFlBQUksS0FBS3hDLE1BQVQsRUFBaUI7QUFBQSw4Q0FETnlDLEtBQ007QUFETkEscUJBQ007QUFBQTs7QUFDYixpQ0FBaUJBLEtBQWpCLGtIQUF3QjtBQUFBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBQUEsb0JBQWZkLElBQWU7O0FBQ3BCLHFCQUFLM0IsTUFBTCxDQUFZcUMsWUFBWixDQUF5QixJQUF6QixFQUErQlYsSUFBL0I7QUFDSDs7QUFFRCxpQkFBS0MsTUFBTDtBQUNIOztBQUVELGVBQU8sSUFBUDtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7bUJBaUJBYyxNLG1CQUFPQyxTLEVBQVc7QUFDZCxhQUFLQyxTQUFMLENBQWUsS0FBS0MsSUFBTCxPQUFnQkYsVUFBVUUsSUFBVixFQUEvQjtBQUNBLGFBQUtqQixNQUFMO0FBQ0FlLGtCQUFVRyxNQUFWLENBQWlCLElBQWpCO0FBQ0EsZUFBTyxJQUFQO0FBQ0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7OzttQkFXQUMsVSx1QkFBV0MsUyxFQUFXO0FBQ2xCLGFBQUtKLFNBQUwsQ0FBZSxLQUFLQyxJQUFMLE9BQWdCRyxVQUFVSCxJQUFWLEVBQS9CO0FBQ0EsYUFBS2pCLE1BQUw7QUFDQW9CLGtCQUFVaEQsTUFBVixDQUFpQnFDLFlBQWpCLENBQThCVyxTQUE5QixFQUF5QyxJQUF6QztBQUNBLGVBQU8sSUFBUDtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7bUJBV0FDLFMsc0JBQVVELFMsRUFBVztBQUNqQixhQUFLSixTQUFMLENBQWUsS0FBS0MsSUFBTCxPQUFnQkcsVUFBVUgsSUFBVixFQUEvQjtBQUNBLGFBQUtqQixNQUFMO0FBQ0FvQixrQkFBVWhELE1BQVYsQ0FBaUJ1QyxXQUFqQixDQUE2QlMsU0FBN0IsRUFBd0MsSUFBeEM7QUFDQSxlQUFPLElBQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7O21CQWNBRSxJLG1CQUFPO0FBQ0gsWUFBSUMsUUFBUSxLQUFLbkQsTUFBTCxDQUFZbUQsS0FBWixDQUFrQixJQUFsQixDQUFaO0FBQ0EsZUFBTyxLQUFLbkQsTUFBTCxDQUFZeUMsS0FBWixDQUFrQlUsUUFBUSxDQUExQixDQUFQO0FBQ0gsSzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7bUJBWUFDLEksbUJBQU87QUFDSCxZQUFJRCxRQUFRLEtBQUtuRCxNQUFMLENBQVltRCxLQUFaLENBQWtCLElBQWxCLENBQVo7QUFDQSxlQUFPLEtBQUtuRCxNQUFMLENBQVl5QyxLQUFaLENBQWtCVSxRQUFRLENBQTFCLENBQVA7QUFDSCxLOzttQkFFREUsTSxxQkFBUztBQUNMLFlBQUlDLFFBQVEsRUFBWjs7QUFFQSxhQUFNLElBQUl6QyxJQUFWLElBQWtCLElBQWxCLEVBQXlCO0FBQ3JCLGdCQUFLLENBQUMsS0FBS1QsY0FBTCxDQUFvQlMsSUFBcEIsQ0FBTixFQUFrQztBQUNsQyxnQkFBS0EsU0FBUyxRQUFkLEVBQXlCO0FBQ3pCLGdCQUFJUixRQUFRLEtBQUtRLElBQUwsQ0FBWjs7QUFFQSxnQkFBS1IsaUJBQWlCRSxLQUF0QixFQUE4QjtBQUMxQitDLHNCQUFNekMsSUFBTixJQUFjUixNQUFNRyxHQUFOLENBQVcsYUFBSztBQUMxQix3QkFBSyxRQUFPTCxDQUFQLHlDQUFPQSxDQUFQLE9BQWEsUUFBYixJQUF5QkEsRUFBRWtELE1BQWhDLEVBQXlDO0FBQ3JDLCtCQUFPbEQsRUFBRWtELE1BQUYsRUFBUDtBQUNILHFCQUZELE1BRU87QUFDSCwrQkFBT2xELENBQVA7QUFDSDtBQUNKLGlCQU5hLENBQWQ7QUFPSCxhQVJELE1BUU8sSUFBSyxRQUFPRSxLQUFQLHlDQUFPQSxLQUFQLE9BQWlCLFFBQWpCLElBQTZCQSxNQUFNZ0QsTUFBeEMsRUFBaUQ7QUFDcERDLHNCQUFNekMsSUFBTixJQUFjUixNQUFNZ0QsTUFBTixFQUFkO0FBQ0gsYUFGTSxNQUVBO0FBQ0hDLHNCQUFNekMsSUFBTixJQUFjUixLQUFkO0FBQ0g7QUFDSjs7QUFFRCxlQUFPaUQsS0FBUDtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O21CQWtCQUMsRyxnQkFBSUMsSSxFQUFNQyxXLEVBQWE7QUFDbkIsWUFBSUMsTUFBTSwyQkFBVjtBQUNBLGVBQU9BLElBQUlILEdBQUosQ0FBUSxJQUFSLEVBQWNDLElBQWQsRUFBb0JDLFdBQXBCLENBQVA7QUFDSCxLOztBQUVEOzs7Ozs7Ozs7O21CQVFBWixJLG1CQUFPO0FBQ0gsWUFBSXJCLFNBQVMsSUFBYjtBQUNBLGVBQVFBLE9BQU94QixNQUFmO0FBQXdCd0IscUJBQVNBLE9BQU94QixNQUFoQjtBQUF4QixTQUNBLE9BQU93QixNQUFQO0FBQ0gsSzs7bUJBRURvQixTLHNCQUFVZSxXLEVBQWE7QUFDbkIsZUFBTyxLQUFLL0MsSUFBTCxDQUFVZ0QsTUFBakI7QUFDQSxlQUFPLEtBQUtoRCxJQUFMLENBQVVpRCxLQUFqQjtBQUNBLFlBQUssQ0FBQ0YsV0FBTixFQUFvQixPQUFPLEtBQUsvQyxJQUFMLENBQVVrRCxPQUFqQjtBQUN2QixLOzttQkFFREMsYywyQkFBZVosSyxFQUFPO0FBQ2xCLFlBQUlhLFNBQVMsS0FBS2pDLFFBQUwsRUFBYjtBQUNBLFlBQUlULFNBQVMsS0FBS0wsTUFBTCxDQUFZZ0QsS0FBWixDQUFrQjNDLE1BQS9CO0FBQ0EsWUFBSUQsT0FBUyxLQUFLSixNQUFMLENBQVlnRCxLQUFaLENBQWtCNUMsSUFBL0I7O0FBRUEsYUFBTSxJQUFJbEIsSUFBSSxDQUFkLEVBQWlCQSxJQUFJZ0QsS0FBckIsRUFBNEJoRCxHQUE1QixFQUFrQztBQUM5QixnQkFBSzZELE9BQU83RCxDQUFQLE1BQWMsSUFBbkIsRUFBMEI7QUFDdEJtQix5QkFBUyxDQUFUO0FBQ0FELHdCQUFTLENBQVQ7QUFDSCxhQUhELE1BR087QUFDSEMsMEJBQVUsQ0FBVjtBQUNIO0FBQ0o7O0FBRUQsZUFBTyxFQUFFRCxVQUFGLEVBQVFDLGNBQVIsRUFBUDtBQUNILEs7O21CQUVESCxVLHVCQUFXSCxJLEVBQU07QUFDYixZQUFJRSxNQUFNLEtBQUtELE1BQUwsQ0FBWWdELEtBQXRCO0FBQ0EsWUFBS2pELEtBQUttQyxLQUFWLEVBQWtCO0FBQ2RqQyxrQkFBTSxLQUFLNkMsY0FBTCxDQUFvQi9DLEtBQUttQyxLQUF6QixDQUFOO0FBQ0gsU0FGRCxNQUVPLElBQUtuQyxLQUFLa0QsSUFBVixFQUFpQjtBQUNwQixnQkFBSWYsUUFBUSxLQUFLcEIsUUFBTCxHQUFnQm9DLE9BQWhCLENBQXdCbkQsS0FBS2tELElBQTdCLENBQVo7QUFDQSxnQkFBS2YsVUFBVSxDQUFDLENBQWhCLEVBQW9CakMsTUFBTSxLQUFLNkMsY0FBTCxDQUFvQlosS0FBcEIsQ0FBTjtBQUN2QjtBQUNELGVBQU9qQyxHQUFQO0FBQ0gsSzs7bUJBRURrRCxVLHlCQUFhO0FBQ1QsZ0NBQVMsaURBQVQ7QUFDQSxlQUFPLEtBQUt4QyxNQUFMLEVBQVA7QUFDSCxLOzttQkFFRHlDLE8sb0JBQVE1QixLLEVBQU87QUFDWCxnQ0FBUyxrREFBVDtBQUNBLGVBQU8sS0FBS0QsV0FBTCxDQUFpQkMsS0FBakIsQ0FBUDtBQUNILEs7O21CQUVENkIsSyxrQkFBTUMsRyxFQUFLQyxNLEVBQVE7QUFDZixnQ0FBUyw0Q0FBVDtBQUNBLGVBQU8sS0FBS2pCLEdBQUwsQ0FBU2dCLEdBQVQsRUFBY0MsTUFBZCxDQUFQO0FBQ0gsSzs7bUJBRURDLFcsd0JBQVlkLFcsRUFBYTtBQUNyQixnQ0FBUyx3REFBVDtBQUNBLGVBQU8sS0FBS2YsU0FBTCxDQUFlZSxXQUFmLENBQVA7QUFDSCxLOzs7OzRCQUVZO0FBQ1Qsb0NBQVMsaURBQVQ7QUFDQSxtQkFBTyxLQUFLL0MsSUFBTCxDQUFVZ0QsTUFBakI7QUFDSCxTOzBCQUVVYyxHLEVBQUs7QUFDWixvQ0FBUyxpREFBVDtBQUNBLGlCQUFLOUQsSUFBTCxDQUFVZ0QsTUFBVixHQUFtQmMsR0FBbkI7QUFDSDs7OzRCQUVhO0FBQ1Ysb0NBQVMsbURBQVQ7QUFDQSxtQkFBTyxLQUFLOUQsSUFBTCxDQUFVa0QsT0FBakI7QUFDSCxTOzBCQUVXWSxHLEVBQUs7QUFDYixvQ0FBUyxtREFBVDtBQUNBLGlCQUFLOUQsSUFBTCxDQUFVa0QsT0FBVixHQUFvQlksR0FBcEI7QUFDSDs7QUFFRDs7Ozs7Ozs7OztBQVVBOzs7Ozs7OztBQVFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBcUNBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7a0JBb0NXaEUsSTs7QUFFZjs7Ozs7O0FBTUEiLCJmaWxlIjoibm9kZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBDc3NTeW50YXhFcnJvciBmcm9tICcuL2Nzcy1zeW50YXgtZXJyb3InO1xuaW1wb3J0IFN0cmluZ2lmaWVyICAgIGZyb20gJy4vc3RyaW5naWZpZXInO1xuaW1wb3J0IHN0cmluZ2lmeSAgICAgIGZyb20gJy4vc3RyaW5naWZ5JztcbmltcG9ydCB3YXJuT25jZSAgICAgICBmcm9tICcuL3dhcm4tb25jZSc7XG5cbmxldCBjbG9uZU5vZGUgPSBmdW5jdGlvbiAob2JqLCBwYXJlbnQpIHtcbiAgICBsZXQgY2xvbmVkID0gbmV3IG9iai5jb25zdHJ1Y3RvcigpO1xuXG4gICAgZm9yICggbGV0IGkgaW4gb2JqICkge1xuICAgICAgICBpZiAoICFvYmouaGFzT3duUHJvcGVydHkoaSkgKSBjb250aW51ZTtcbiAgICAgICAgbGV0IHZhbHVlID0gb2JqW2ldO1xuICAgICAgICBsZXQgdHlwZSAgPSB0eXBlb2YgdmFsdWU7XG5cbiAgICAgICAgaWYgKCBpID09PSAncGFyZW50JyAmJiB0eXBlID09PSAnb2JqZWN0JyApIHtcbiAgICAgICAgICAgIGlmIChwYXJlbnQpIGNsb25lZFtpXSA9IHBhcmVudDtcbiAgICAgICAgfSBlbHNlIGlmICggaSA9PT0gJ3NvdXJjZScgKSB7XG4gICAgICAgICAgICBjbG9uZWRbaV0gPSB2YWx1ZTtcbiAgICAgICAgfSBlbHNlIGlmICggdmFsdWUgaW5zdGFuY2VvZiBBcnJheSApIHtcbiAgICAgICAgICAgIGNsb25lZFtpXSA9IHZhbHVlLm1hcCggaiA9PiBjbG9uZU5vZGUoaiwgY2xvbmVkKSApO1xuICAgICAgICB9IGVsc2UgaWYgKCBpICE9PSAnYmVmb3JlJyAgJiYgaSAhPT0gJ2FmdGVyJyAmJlxuICAgICAgICAgICAgICAgICAgICBpICE9PSAnYmV0d2VlbicgJiYgaSAhPT0gJ3NlbWljb2xvbicgKSB7XG4gICAgICAgICAgICBpZiAoIHR5cGUgPT09ICdvYmplY3QnICYmIHZhbHVlICE9PSBudWxsICkgdmFsdWUgPSBjbG9uZU5vZGUodmFsdWUpO1xuICAgICAgICAgICAgY2xvbmVkW2ldID0gdmFsdWU7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gY2xvbmVkO1xufTtcblxuLyoqXG4gKiBBbGwgbm9kZSBjbGFzc2VzIGluaGVyaXQgdGhlIGZvbGxvd2luZyBjb21tb24gbWV0aG9kcy5cbiAqXG4gKiBAYWJzdHJhY3RcbiAqL1xuY2xhc3MgTm9kZSB7XG5cbiAgICAvKipcbiAgICAgKiBAcGFyYW0ge29iamVjdH0gW2RlZmF1bHRzXSAtIHZhbHVlIGZvciBub2RlIHByb3BlcnRpZXNcbiAgICAgKi9cbiAgICBjb25zdHJ1Y3RvcihkZWZhdWx0cyA9IHsgfSkge1xuICAgICAgICB0aGlzLnJhd3MgPSB7IH07XG4gICAgICAgIGZvciAoIGxldCBuYW1lIGluIGRlZmF1bHRzICkge1xuICAgICAgICAgICAgdGhpc1tuYW1lXSA9IGRlZmF1bHRzW25hbWVdO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBhIENzc1N5bnRheEVycm9yIGluc3RhbmNlIGNvbnRhaW5pbmcgdGhlIG9yaWdpbmFsIHBvc2l0aW9uXG4gICAgICogb2YgdGhlIG5vZGUgaW4gdGhlIHNvdXJjZSwgc2hvd2luZyBsaW5lIGFuZCBjb2x1bW4gbnVtYmVycyBhbmQgYWxzb1xuICAgICAqIGEgc21hbGwgZXhjZXJwdCB0byBmYWNpbGl0YXRlIGRlYnVnZ2luZy5cbiAgICAgKlxuICAgICAqIElmIHByZXNlbnQsIGFuIGlucHV0IHNvdXJjZSBtYXAgd2lsbCBiZSB1c2VkIHRvIGdldCB0aGUgb3JpZ2luYWwgcG9zaXRpb25cbiAgICAgKiBvZiB0aGUgc291cmNlLCBldmVuIGZyb20gYSBwcmV2aW91cyBjb21waWxhdGlvbiBzdGVwXG4gICAgICogKGUuZy4sIGZyb20gU2FzcyBjb21waWxhdGlvbikuXG4gICAgICpcbiAgICAgKiBUaGlzIG1ldGhvZCBwcm9kdWNlcyB2ZXJ5IHVzZWZ1bCBlcnJvciBtZXNzYWdlcy5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBtZXNzYWdlICAgICAtIGVycm9yIGRlc2NyaXB0aW9uXG4gICAgICogQHBhcmFtIHtvYmplY3R9IFtvcHRzXSAgICAgIC0gb3B0aW9uc1xuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBvcHRzLnBsdWdpbiAtIHBsdWdpbiBuYW1lIHRoYXQgY3JlYXRlZCB0aGlzIGVycm9yLlxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFBvc3RDU1Mgd2lsbCBzZXQgaXQgYXV0b21hdGljYWxseS5cbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gb3B0cy53b3JkICAgLSBhIHdvcmQgaW5zaWRlIGEgbm9kZeKAmXMgc3RyaW5nIHRoYXQgc2hvdWxkXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmUgaGlnaGxpZ2h0ZWQgYXMgdGhlIHNvdXJjZSBvZiB0aGUgZXJyb3JcbiAgICAgKiBAcGFyYW0ge251bWJlcn0gb3B0cy5pbmRleCAgLSBhbiBpbmRleCBpbnNpZGUgYSBub2Rl4oCZcyBzdHJpbmcgdGhhdCBzaG91bGRcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiZSBoaWdobGlnaHRlZCBhcyB0aGUgc291cmNlIG9mIHRoZSBlcnJvclxuICAgICAqXG4gICAgICogQHJldHVybiB7Q3NzU3ludGF4RXJyb3J9IGVycm9yIG9iamVjdCB0byB0aHJvdyBpdFxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBpZiAoICF2YXJpYWJsZXNbbmFtZV0gKSB7XG4gICAgICogICB0aHJvdyBkZWNsLmVycm9yKCdVbmtub3duIHZhcmlhYmxlICcgKyBuYW1lLCB7IHdvcmQ6IG5hbWUgfSk7XG4gICAgICogICAvLyBDc3NTeW50YXhFcnJvcjogcG9zdGNzcy12YXJzOmEuc2Fzczo0OjM6IFVua25vd24gdmFyaWFibGUgJGJsYWNrXG4gICAgICogICAvLyAgIGNvbG9yOiAkYmxhY2tcbiAgICAgKiAgIC8vIGFcbiAgICAgKiAgIC8vICAgICAgICAgIF5cbiAgICAgKiAgIC8vICAgYmFja2dyb3VuZDogd2hpdGVcbiAgICAgKiB9XG4gICAgICovXG4gICAgZXJyb3IobWVzc2FnZSwgb3B0cyA9IHsgfSkge1xuICAgICAgICBpZiAoIHRoaXMuc291cmNlICkge1xuICAgICAgICAgICAgbGV0IHBvcyA9IHRoaXMucG9zaXRpb25CeShvcHRzKTtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnNvdXJjZS5pbnB1dC5lcnJvcihtZXNzYWdlLCBwb3MubGluZSwgcG9zLmNvbHVtbiwgb3B0cyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gbmV3IENzc1N5bnRheEVycm9yKG1lc3NhZ2UpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogVGhpcyBtZXRob2QgaXMgcHJvdmlkZWQgYXMgYSBjb252ZW5pZW5jZSB3cmFwcGVyIGZvciB7QGxpbmsgUmVzdWx0I3dhcm59LlxuICAgICAqXG4gICAgICogQHBhcmFtIHtSZXN1bHR9IHJlc3VsdCAgICAgIC0gdGhlIHtAbGluayBSZXN1bHR9IGluc3RhbmNlXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhhdCB3aWxsIHJlY2VpdmUgdGhlIHdhcm5pbmdcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gdGV4dCAgICAgICAgLSB3YXJuaW5nIG1lc3NhZ2VcbiAgICAgKiBAcGFyYW0ge29iamVjdH0gW29wdHNdICAgICAgLSBvcHRpb25zXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IG9wdHMucGx1Z2luIC0gcGx1Z2luIG5hbWUgdGhhdCBjcmVhdGVkIHRoaXMgd2FybmluZy5cbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBQb3N0Q1NTIHdpbGwgc2V0IGl0IGF1dG9tYXRpY2FsbHkuXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IG9wdHMud29yZCAgIC0gYSB3b3JkIGluc2lkZSBhIG5vZGXigJlzIHN0cmluZyB0aGF0IHNob3VsZFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJlIGhpZ2hsaWdodGVkIGFzIHRoZSBzb3VyY2Ugb2YgdGhlIHdhcm5pbmdcbiAgICAgKiBAcGFyYW0ge251bWJlcn0gb3B0cy5pbmRleCAgLSBhbiBpbmRleCBpbnNpZGUgYSBub2Rl4oCZcyBzdHJpbmcgdGhhdCBzaG91bGRcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiZSBoaWdobGlnaHRlZCBhcyB0aGUgc291cmNlIG9mIHRoZSB3YXJuaW5nXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtXYXJuaW5nfSBjcmVhdGVkIHdhcm5pbmcgb2JqZWN0XG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGNvbnN0IHBsdWdpbiA9IHBvc3Rjc3MucGx1Z2luKCdwb3N0Y3NzLWRlcHJlY2F0ZWQnLCAoKSA9PiB7XG4gICAgICogICByZXR1cm4gKHJvb3QsIHJlc3VsdCkgPT4ge1xuICAgICAqICAgICByb290LndhbGtEZWNscygnYmFkJywgZGVjbCA9PiB7XG4gICAgICogICAgICAgZGVjbC53YXJuKHJlc3VsdCwgJ0RlcHJlY2F0ZWQgcHJvcGVydHkgYmFkJyk7XG4gICAgICogICAgIH0pO1xuICAgICAqICAgfTtcbiAgICAgKiB9KTtcbiAgICAgKi9cbiAgICB3YXJuKHJlc3VsdCwgdGV4dCwgb3B0cykge1xuICAgICAgICBsZXQgZGF0YSA9IHsgbm9kZTogdGhpcyB9O1xuICAgICAgICBmb3IgKCBsZXQgaSBpbiBvcHRzICkgZGF0YVtpXSA9IG9wdHNbaV07XG4gICAgICAgIHJldHVybiByZXN1bHQud2Fybih0ZXh0LCBkYXRhKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZW1vdmVzIHRoZSBub2RlIGZyb20gaXRzIHBhcmVudCBhbmQgY2xlYW5zIHRoZSBwYXJlbnQgcHJvcGVydGllc1xuICAgICAqIGZyb20gdGhlIG5vZGUgYW5kIGl0cyBjaGlsZHJlbi5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogaWYgKCBkZWNsLnByb3AubWF0Y2goL14td2Via2l0LS8pICkge1xuICAgICAqICAgZGVjbC5yZW1vdmUoKTtcbiAgICAgKiB9XG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfSBub2RlIHRvIG1ha2UgY2FsbHMgY2hhaW5cbiAgICAgKi9cbiAgICByZW1vdmUoKSB7XG4gICAgICAgIGlmICggdGhpcy5wYXJlbnQgKSB7XG4gICAgICAgICAgICB0aGlzLnBhcmVudC5yZW1vdmVDaGlsZCh0aGlzKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnBhcmVudCA9IHVuZGVmaW5lZDtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBhIENTUyBzdHJpbmcgcmVwcmVzZW50aW5nIHRoZSBub2RlLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtzdHJpbmdpZmllcnxzeW50YXh9IFtzdHJpbmdpZmllcl0gLSBhIHN5bnRheCB0byB1c2VcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluIHN0cmluZyBnZW5lcmF0aW9uXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtzdHJpbmd9IENTUyBzdHJpbmcgb2YgdGhpcyBub2RlXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHBvc3Rjc3MucnVsZSh7IHNlbGVjdG9yOiAnYScgfSkudG9TdHJpbmcoKSAvLz0+IFwiYSB7fVwiXG4gICAgICovXG4gICAgdG9TdHJpbmcoc3RyaW5naWZpZXIgPSBzdHJpbmdpZnkpIHtcbiAgICAgICAgaWYgKCBzdHJpbmdpZmllci5zdHJpbmdpZnkgKSBzdHJpbmdpZmllciA9IHN0cmluZ2lmaWVyLnN0cmluZ2lmeTtcbiAgICAgICAgbGV0IHJlc3VsdCAgPSAnJztcbiAgICAgICAgc3RyaW5naWZpZXIodGhpcywgaSA9PiB7XG4gICAgICAgICAgICByZXN1bHQgKz0gaTtcbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBhIGNsb25lIG9mIHRoZSBub2RlLlxuICAgICAqXG4gICAgICogVGhlIHJlc3VsdGluZyBjbG9uZWQgbm9kZSBhbmQgaXRzIChjbG9uZWQpIGNoaWxkcmVuIHdpbGwgaGF2ZVxuICAgICAqIGEgY2xlYW4gcGFyZW50IGFuZCBjb2RlIHN0eWxlIHByb3BlcnRpZXMuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge29iamVjdH0gW292ZXJyaWRlc10gLSBuZXcgcHJvcGVydGllcyB0byBvdmVycmlkZSBpbiB0aGUgY2xvbmUuXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGNvbnN0IGNsb25lZCA9IGRlY2wuY2xvbmUoeyBwcm9wOiAnLW1vei0nICsgZGVjbC5wcm9wIH0pO1xuICAgICAqIGNsb25lZC5yYXdzLmJlZm9yZSAgLy89PiB1bmRlZmluZWRcbiAgICAgKiBjbG9uZWQucGFyZW50ICAgICAgIC8vPT4gdW5kZWZpbmVkXG4gICAgICogY2xvbmVkLnRvU3RyaW5nKCkgICAvLz0+IC1tb3otdHJhbnNmb3JtOiBzY2FsZSgwKVxuICAgICAqXG4gICAgICogQHJldHVybiB7Tm9kZX0gY2xvbmUgb2YgdGhlIG5vZGVcbiAgICAgKi9cbiAgICBjbG9uZShvdmVycmlkZXMgPSB7IH0pIHtcbiAgICAgICAgbGV0IGNsb25lZCA9IGNsb25lTm9kZSh0aGlzKTtcbiAgICAgICAgZm9yICggbGV0IG5hbWUgaW4gb3ZlcnJpZGVzICkge1xuICAgICAgICAgICAgY2xvbmVkW25hbWVdID0gb3ZlcnJpZGVzW25hbWVdO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjbG9uZWQ7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogU2hvcnRjdXQgdG8gY2xvbmUgdGhlIG5vZGUgYW5kIGluc2VydCB0aGUgcmVzdWx0aW5nIGNsb25lZCBub2RlXG4gICAgICogYmVmb3JlIHRoZSBjdXJyZW50IG5vZGUuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge29iamVjdH0gW292ZXJyaWRlc10gLSBuZXcgcHJvcGVydGllcyB0byBvdmVycmlkZSBpbiB0aGUgY2xvbmUuXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGRlY2wuY2xvbmVCZWZvcmUoeyBwcm9wOiAnLW1vei0nICsgZGVjbC5wcm9wIH0pO1xuICAgICAqXG4gICAgICogQHJldHVybiB7Tm9kZX0gLSBuZXcgbm9kZVxuICAgICAqL1xuICAgIGNsb25lQmVmb3JlKG92ZXJyaWRlcyA9IHsgfSkge1xuICAgICAgICBsZXQgY2xvbmVkID0gdGhpcy5jbG9uZShvdmVycmlkZXMpO1xuICAgICAgICB0aGlzLnBhcmVudC5pbnNlcnRCZWZvcmUodGhpcywgY2xvbmVkKTtcbiAgICAgICAgcmV0dXJuIGNsb25lZDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBTaG9ydGN1dCB0byBjbG9uZSB0aGUgbm9kZSBhbmQgaW5zZXJ0IHRoZSByZXN1bHRpbmcgY2xvbmVkIG5vZGVcbiAgICAgKiBhZnRlciB0aGUgY3VycmVudCBub2RlLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtvYmplY3R9IFtvdmVycmlkZXNdIC0gbmV3IHByb3BlcnRpZXMgdG8gb3ZlcnJpZGUgaW4gdGhlIGNsb25lLlxuICAgICAqXG4gICAgICogQHJldHVybiB7Tm9kZX0gLSBuZXcgbm9kZVxuICAgICAqL1xuICAgIGNsb25lQWZ0ZXIob3ZlcnJpZGVzID0geyB9KSB7XG4gICAgICAgIGxldCBjbG9uZWQgPSB0aGlzLmNsb25lKG92ZXJyaWRlcyk7XG4gICAgICAgIHRoaXMucGFyZW50Lmluc2VydEFmdGVyKHRoaXMsIGNsb25lZCk7XG4gICAgICAgIHJldHVybiBjbG9uZWQ7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogSW5zZXJ0cyBub2RlKHMpIGJlZm9yZSB0aGUgY3VycmVudCBub2RlIGFuZCByZW1vdmVzIHRoZSBjdXJyZW50IG5vZGUuXG4gICAgICpcbiAgICAgKiBAcGFyYW0gey4uLk5vZGV9IG5vZGVzIC0gbm9kZShzKSB0byByZXBsYWNlIGN1cnJlbnQgb25lXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGlmICggYXRydWxlLm5hbWUgPT0gJ21peGluJyApIHtcbiAgICAgKiAgIGF0cnVsZS5yZXBsYWNlV2l0aChtaXhpblJ1bGVzW2F0cnVsZS5wYXJhbXNdKTtcbiAgICAgKiB9XG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfSBjdXJyZW50IG5vZGUgdG8gbWV0aG9kcyBjaGFpblxuICAgICAqL1xuICAgIHJlcGxhY2VXaXRoKC4uLm5vZGVzKSB7XG4gICAgICAgIGlmICh0aGlzLnBhcmVudCkge1xuICAgICAgICAgICAgZm9yIChsZXQgbm9kZSBvZiBub2Rlcykge1xuICAgICAgICAgICAgICAgIHRoaXMucGFyZW50Lmluc2VydEJlZm9yZSh0aGlzLCBub2RlKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5yZW1vdmUoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJlbW92ZXMgdGhlIG5vZGUgZnJvbSBpdHMgY3VycmVudCBwYXJlbnQgYW5kIGluc2VydHMgaXRcbiAgICAgKiBhdCB0aGUgZW5kIG9mIGBuZXdQYXJlbnRgLlxuICAgICAqXG4gICAgICogVGhpcyB3aWxsIGNsZWFuIHRoZSBgYmVmb3JlYCBhbmQgYGFmdGVyYCBjb2RlIHtAbGluayBOb2RlI3Jhd3N9IGRhdGFcbiAgICAgKiBmcm9tIHRoZSBub2RlIGFuZCByZXBsYWNlIHRoZW0gd2l0aCB0aGUgaW5kZW50YXRpb24gc3R5bGUgb2YgYG5ld1BhcmVudGAuXG4gICAgICogSXQgd2lsbCBhbHNvIGNsZWFuIHRoZSBgYmV0d2VlbmAgcHJvcGVydHlcbiAgICAgKiBpZiBgbmV3UGFyZW50YCBpcyBpbiBhbm90aGVyIHtAbGluayBSb290fS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7Q29udGFpbmVyfSBuZXdQYXJlbnQgLSBjb250YWluZXIgbm9kZSB3aGVyZSB0aGUgY3VycmVudCBub2RlXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpbGwgYmUgbW92ZWRcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogYXRydWxlLm1vdmVUbyhhdHJ1bGUucm9vdCgpKTtcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge05vZGV9IGN1cnJlbnQgbm9kZSB0byBtZXRob2RzIGNoYWluXG4gICAgICovXG4gICAgbW92ZVRvKG5ld1BhcmVudCkge1xuICAgICAgICB0aGlzLmNsZWFuUmF3cyh0aGlzLnJvb3QoKSA9PT0gbmV3UGFyZW50LnJvb3QoKSk7XG4gICAgICAgIHRoaXMucmVtb3ZlKCk7XG4gICAgICAgIG5ld1BhcmVudC5hcHBlbmQodGhpcyk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJlbW92ZXMgdGhlIG5vZGUgZnJvbSBpdHMgY3VycmVudCBwYXJlbnQgYW5kIGluc2VydHMgaXQgaW50b1xuICAgICAqIGEgbmV3IHBhcmVudCBiZWZvcmUgYG90aGVyTm9kZWAuXG4gICAgICpcbiAgICAgKiBUaGlzIHdpbGwgYWxzbyBjbGVhbiB0aGUgbm9kZeKAmXMgY29kZSBzdHlsZSBwcm9wZXJ0aWVzIGp1c3QgYXMgaXQgd291bGRcbiAgICAgKiBpbiB7QGxpbmsgTm9kZSNtb3ZlVG99LlxuICAgICAqXG4gICAgICogQHBhcmFtIHtOb2RlfSBvdGhlck5vZGUgLSBub2RlIHRoYXQgd2lsbCBiZSBiZWZvcmUgY3VycmVudCBub2RlXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfSBjdXJyZW50IG5vZGUgdG8gbWV0aG9kcyBjaGFpblxuICAgICAqL1xuICAgIG1vdmVCZWZvcmUob3RoZXJOb2RlKSB7XG4gICAgICAgIHRoaXMuY2xlYW5SYXdzKHRoaXMucm9vdCgpID09PSBvdGhlck5vZGUucm9vdCgpKTtcbiAgICAgICAgdGhpcy5yZW1vdmUoKTtcbiAgICAgICAgb3RoZXJOb2RlLnBhcmVudC5pbnNlcnRCZWZvcmUob3RoZXJOb2RlLCB0aGlzKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmVtb3ZlcyB0aGUgbm9kZSBmcm9tIGl0cyBjdXJyZW50IHBhcmVudCBhbmQgaW5zZXJ0cyBpdCBpbnRvXG4gICAgICogYSBuZXcgcGFyZW50IGFmdGVyIGBvdGhlck5vZGVgLlxuICAgICAqXG4gICAgICogVGhpcyB3aWxsIGFsc28gY2xlYW4gdGhlIG5vZGXigJlzIGNvZGUgc3R5bGUgcHJvcGVydGllcyBqdXN0IGFzIGl0IHdvdWxkXG4gICAgICogaW4ge0BsaW5rIE5vZGUjbW92ZVRvfS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7Tm9kZX0gb3RoZXJOb2RlIC0gbm9kZSB0aGF0IHdpbGwgYmUgYWZ0ZXIgY3VycmVudCBub2RlXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfSBjdXJyZW50IG5vZGUgdG8gbWV0aG9kcyBjaGFpblxuICAgICAqL1xuICAgIG1vdmVBZnRlcihvdGhlck5vZGUpIHtcbiAgICAgICAgdGhpcy5jbGVhblJhd3ModGhpcy5yb290KCkgPT09IG90aGVyTm9kZS5yb290KCkpO1xuICAgICAgICB0aGlzLnJlbW92ZSgpO1xuICAgICAgICBvdGhlck5vZGUucGFyZW50Lmluc2VydEFmdGVyKG90aGVyTm9kZSwgdGhpcyk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIG5leHQgY2hpbGQgb2YgdGhlIG5vZGXigJlzIHBhcmVudC5cbiAgICAgKiBSZXR1cm5zIGB1bmRlZmluZWRgIGlmIHRoZSBjdXJyZW50IG5vZGUgaXMgdGhlIGxhc3QgY2hpbGQuXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtOb2RlfHVuZGVmaW5lZH0gbmV4dCBub2RlXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGlmICggY29tbWVudC50ZXh0ID09PSAnZGVsZXRlIG5leHQnICkge1xuICAgICAqICAgY29uc3QgbmV4dCA9IGNvbW1lbnQubmV4dCgpO1xuICAgICAqICAgaWYgKCBuZXh0ICkge1xuICAgICAqICAgICBuZXh0LnJlbW92ZSgpO1xuICAgICAqICAgfVxuICAgICAqIH1cbiAgICAgKi9cbiAgICBuZXh0KCkge1xuICAgICAgICBsZXQgaW5kZXggPSB0aGlzLnBhcmVudC5pbmRleCh0aGlzKTtcbiAgICAgICAgcmV0dXJuIHRoaXMucGFyZW50Lm5vZGVzW2luZGV4ICsgMV07XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB0aGUgcHJldmlvdXMgY2hpbGQgb2YgdGhlIG5vZGXigJlzIHBhcmVudC5cbiAgICAgKiBSZXR1cm5zIGB1bmRlZmluZWRgIGlmIHRoZSBjdXJyZW50IG5vZGUgaXMgdGhlIGZpcnN0IGNoaWxkLlxuICAgICAqXG4gICAgICogQHJldHVybiB7Tm9kZXx1bmRlZmluZWR9IHByZXZpb3VzIG5vZGVcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3QgYW5ub3RhdGlvbiA9IGRlY2wucHJldigpO1xuICAgICAqIGlmICggYW5ub3RhdGlvbi50eXBlID09ICdjb21tZW50JyApIHtcbiAgICAgKiAgcmVhZEFubm90YXRpb24oYW5ub3RhdGlvbi50ZXh0KTtcbiAgICAgKiB9XG4gICAgICovXG4gICAgcHJldigpIHtcbiAgICAgICAgbGV0IGluZGV4ID0gdGhpcy5wYXJlbnQuaW5kZXgodGhpcyk7XG4gICAgICAgIHJldHVybiB0aGlzLnBhcmVudC5ub2Rlc1tpbmRleCAtIDFdO1xuICAgIH1cblxuICAgIHRvSlNPTigpIHtcbiAgICAgICAgbGV0IGZpeGVkID0geyB9O1xuXG4gICAgICAgIGZvciAoIGxldCBuYW1lIGluIHRoaXMgKSB7XG4gICAgICAgICAgICBpZiAoICF0aGlzLmhhc093blByb3BlcnR5KG5hbWUpICkgY29udGludWU7XG4gICAgICAgICAgICBpZiAoIG5hbWUgPT09ICdwYXJlbnQnICkgY29udGludWU7XG4gICAgICAgICAgICBsZXQgdmFsdWUgPSB0aGlzW25hbWVdO1xuXG4gICAgICAgICAgICBpZiAoIHZhbHVlIGluc3RhbmNlb2YgQXJyYXkgKSB7XG4gICAgICAgICAgICAgICAgZml4ZWRbbmFtZV0gPSB2YWx1ZS5tYXAoIGkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIHR5cGVvZiBpID09PSAnb2JqZWN0JyAmJiBpLnRvSlNPTiApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBpLnRvSlNPTigpO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIHR5cGVvZiB2YWx1ZSA9PT0gJ29iamVjdCcgJiYgdmFsdWUudG9KU09OICkge1xuICAgICAgICAgICAgICAgIGZpeGVkW25hbWVdID0gdmFsdWUudG9KU09OKCk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGZpeGVkW25hbWVdID0gdmFsdWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZml4ZWQ7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyBhIHtAbGluayBOb2RlI3Jhd3N9IHZhbHVlLiBJZiB0aGUgbm9kZSBpcyBtaXNzaW5nXG4gICAgICogdGhlIGNvZGUgc3R5bGUgcHJvcGVydHkgKGJlY2F1c2UgdGhlIG5vZGUgd2FzIG1hbnVhbGx5IGJ1aWx0IG9yIGNsb25lZCksXG4gICAgICogUG9zdENTUyB3aWxsIHRyeSB0byBhdXRvZGV0ZWN0IHRoZSBjb2RlIHN0eWxlIHByb3BlcnR5IGJ5IGxvb2tpbmdcbiAgICAgKiBhdCBvdGhlciBub2RlcyBpbiB0aGUgdHJlZS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBwcm9wICAgICAgICAgIC0gbmFtZSBvZiBjb2RlIHN0eWxlIHByb3BlcnR5XG4gICAgICogQHBhcmFtIHtzdHJpbmd9IFtkZWZhdWx0VHlwZV0gLSBuYW1lIG9mIGRlZmF1bHQgdmFsdWUsIGl0IGNhbiBiZSBtaXNzZWRcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHRoZSB2YWx1ZSBpcyB0aGUgc2FtZSBhcyBwcm9wXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGNvbnN0IHJvb3QgPSBwb3N0Y3NzLnBhcnNlKCdhIHsgYmFja2dyb3VuZDogd2hpdGUgfScpO1xuICAgICAqIHJvb3Qubm9kZXNbMF0uYXBwZW5kKHsgcHJvcDogJ2NvbG9yJywgdmFsdWU6ICdibGFjaycgfSk7XG4gICAgICogcm9vdC5ub2Rlc1swXS5ub2Rlc1sxXS5yYXdzLmJlZm9yZSAgIC8vPT4gdW5kZWZpbmVkXG4gICAgICogcm9vdC5ub2Rlc1swXS5ub2Rlc1sxXS5yYXcoJ2JlZm9yZScpIC8vPT4gJyAnXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtzdHJpbmd9IGNvZGUgc3R5bGUgdmFsdWVcbiAgICAgKi9cbiAgICByYXcocHJvcCwgZGVmYXVsdFR5cGUpIHtcbiAgICAgICAgbGV0IHN0ciA9IG5ldyBTdHJpbmdpZmllcigpO1xuICAgICAgICByZXR1cm4gc3RyLnJhdyh0aGlzLCBwcm9wLCBkZWZhdWx0VHlwZSk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogRmluZHMgdGhlIFJvb3QgaW5zdGFuY2Ugb2YgdGhlIG5vZGXigJlzIHRyZWUuXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHJvb3Qubm9kZXNbMF0ubm9kZXNbMF0ucm9vdCgpID09PSByb290XG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtSb290fSByb290IHBhcmVudFxuICAgICAqL1xuICAgIHJvb3QoKSB7XG4gICAgICAgIGxldCByZXN1bHQgPSB0aGlzO1xuICAgICAgICB3aGlsZSAoIHJlc3VsdC5wYXJlbnQgKSByZXN1bHQgPSByZXN1bHQucGFyZW50O1xuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIGNsZWFuUmF3cyhrZWVwQmV0d2Vlbikge1xuICAgICAgICBkZWxldGUgdGhpcy5yYXdzLmJlZm9yZTtcbiAgICAgICAgZGVsZXRlIHRoaXMucmF3cy5hZnRlcjtcbiAgICAgICAgaWYgKCAha2VlcEJldHdlZW4gKSBkZWxldGUgdGhpcy5yYXdzLmJldHdlZW47XG4gICAgfVxuXG4gICAgcG9zaXRpb25JbnNpZGUoaW5kZXgpIHtcbiAgICAgICAgbGV0IHN0cmluZyA9IHRoaXMudG9TdHJpbmcoKTtcbiAgICAgICAgbGV0IGNvbHVtbiA9IHRoaXMuc291cmNlLnN0YXJ0LmNvbHVtbjtcbiAgICAgICAgbGV0IGxpbmUgICA9IHRoaXMuc291cmNlLnN0YXJ0LmxpbmU7XG5cbiAgICAgICAgZm9yICggbGV0IGkgPSAwOyBpIDwgaW5kZXg7IGkrKyApIHtcbiAgICAgICAgICAgIGlmICggc3RyaW5nW2ldID09PSAnXFxuJyApIHtcbiAgICAgICAgICAgICAgICBjb2x1bW4gPSAxO1xuICAgICAgICAgICAgICAgIGxpbmUgICs9IDE7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGNvbHVtbiArPSAxO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHsgbGluZSwgY29sdW1uIH07XG4gICAgfVxuXG4gICAgcG9zaXRpb25CeShvcHRzKSB7XG4gICAgICAgIGxldCBwb3MgPSB0aGlzLnNvdXJjZS5zdGFydDtcbiAgICAgICAgaWYgKCBvcHRzLmluZGV4ICkge1xuICAgICAgICAgICAgcG9zID0gdGhpcy5wb3NpdGlvbkluc2lkZShvcHRzLmluZGV4KTtcbiAgICAgICAgfSBlbHNlIGlmICggb3B0cy53b3JkICkge1xuICAgICAgICAgICAgbGV0IGluZGV4ID0gdGhpcy50b1N0cmluZygpLmluZGV4T2Yob3B0cy53b3JkKTtcbiAgICAgICAgICAgIGlmICggaW5kZXggIT09IC0xICkgcG9zID0gdGhpcy5wb3NpdGlvbkluc2lkZShpbmRleCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHBvcztcbiAgICB9XG5cbiAgICByZW1vdmVTZWxmKCkge1xuICAgICAgICB3YXJuT25jZSgnTm9kZSNyZW1vdmVTZWxmIGlzIGRlcHJlY2F0ZWQuIFVzZSBOb2RlI3JlbW92ZS4nKTtcbiAgICAgICAgcmV0dXJuIHRoaXMucmVtb3ZlKCk7XG4gICAgfVxuXG4gICAgcmVwbGFjZShub2Rlcykge1xuICAgICAgICB3YXJuT25jZSgnTm9kZSNyZXBsYWNlIGlzIGRlcHJlY2F0ZWQuIFVzZSBOb2RlI3JlcGxhY2VXaXRoJyk7XG4gICAgICAgIHJldHVybiB0aGlzLnJlcGxhY2VXaXRoKG5vZGVzKTtcbiAgICB9XG5cbiAgICBzdHlsZShvd24sIGRldGVjdCkge1xuICAgICAgICB3YXJuT25jZSgnTm9kZSNzdHlsZSgpIGlzIGRlcHJlY2F0ZWQuIFVzZSBOb2RlI3JhdygpJyk7XG4gICAgICAgIHJldHVybiB0aGlzLnJhdyhvd24sIGRldGVjdCk7XG4gICAgfVxuXG4gICAgY2xlYW5TdHlsZXMoa2VlcEJldHdlZW4pIHtcbiAgICAgICAgd2Fybk9uY2UoJ05vZGUjY2xlYW5TdHlsZXMoKSBpcyBkZXByZWNhdGVkLiBVc2UgTm9kZSNjbGVhblJhd3MoKScpO1xuICAgICAgICByZXR1cm4gdGhpcy5jbGVhblJhd3Moa2VlcEJldHdlZW4pO1xuICAgIH1cblxuICAgIGdldCBiZWZvcmUoKSB7XG4gICAgICAgIHdhcm5PbmNlKCdOb2RlI2JlZm9yZSBpcyBkZXByZWNhdGVkLiBVc2UgTm9kZSNyYXdzLmJlZm9yZScpO1xuICAgICAgICByZXR1cm4gdGhpcy5yYXdzLmJlZm9yZTtcbiAgICB9XG5cbiAgICBzZXQgYmVmb3JlKHZhbCkge1xuICAgICAgICB3YXJuT25jZSgnTm9kZSNiZWZvcmUgaXMgZGVwcmVjYXRlZC4gVXNlIE5vZGUjcmF3cy5iZWZvcmUnKTtcbiAgICAgICAgdGhpcy5yYXdzLmJlZm9yZSA9IHZhbDtcbiAgICB9XG5cbiAgICBnZXQgYmV0d2VlbigpIHtcbiAgICAgICAgd2Fybk9uY2UoJ05vZGUjYmV0d2VlbiBpcyBkZXByZWNhdGVkLiBVc2UgTm9kZSNyYXdzLmJldHdlZW4nKTtcbiAgICAgICAgcmV0dXJuIHRoaXMucmF3cy5iZXR3ZWVuO1xuICAgIH1cblxuICAgIHNldCBiZXR3ZWVuKHZhbCkge1xuICAgICAgICB3YXJuT25jZSgnTm9kZSNiZXR3ZWVuIGlzIGRlcHJlY2F0ZWQuIFVzZSBOb2RlI3Jhd3MuYmV0d2VlbicpO1xuICAgICAgICB0aGlzLnJhd3MuYmV0d2VlbiA9IHZhbDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBAbWVtYmVyb2YgTm9kZSNcbiAgICAgKiBAbWVtYmVyIHtzdHJpbmd9IHR5cGUgLSBTdHJpbmcgcmVwcmVzZW50aW5nIHRoZSBub2Rl4oCZcyB0eXBlLlxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgIFBvc3NpYmxlIHZhbHVlcyBhcmUgYHJvb3RgLCBgYXRydWxlYCwgYHJ1bGVgLFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgIGBkZWNsYCwgb3IgYGNvbW1lbnRgLlxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBwb3N0Y3NzLmRlY2woeyBwcm9wOiAnY29sb3InLCB2YWx1ZTogJ2JsYWNrJyB9KS50eXBlIC8vPT4gJ2RlY2wnXG4gICAgICovXG5cbiAgICAvKipcbiAgICAgKiBAbWVtYmVyb2YgTm9kZSNcbiAgICAgKiBAbWVtYmVyIHtDb250YWluZXJ9IHBhcmVudCAtIHRoZSBub2Rl4oCZcyBwYXJlbnQgbm9kZS5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcm9vdC5ub2Rlc1swXS5wYXJlbnQgPT0gcm9vdDtcbiAgICAgKi9cblxuICAgIC8qKlxuICAgICAqIEBtZW1iZXJvZiBOb2RlI1xuICAgICAqIEBtZW1iZXIge3NvdXJjZX0gc291cmNlIC0gdGhlIGlucHV0IHNvdXJjZSBvZiB0aGUgbm9kZVxuICAgICAqXG4gICAgICogVGhlIHByb3BlcnR5IGlzIHVzZWQgaW4gc291cmNlIG1hcCBnZW5lcmF0aW9uLlxuICAgICAqXG4gICAgICogSWYgeW91IGNyZWF0ZSBhIG5vZGUgbWFudWFsbHkgKGUuZy4sIHdpdGggYHBvc3Rjc3MuZGVjbCgpYCksXG4gICAgICogdGhhdCBub2RlIHdpbGwgbm90IGhhdmUgYSBgc291cmNlYCBwcm9wZXJ0eSBhbmQgd2lsbCBiZSBhYnNlbnRcbiAgICAgKiBmcm9tIHRoZSBzb3VyY2UgbWFwLiBGb3IgdGhpcyByZWFzb24sIHRoZSBwbHVnaW4gZGV2ZWxvcGVyIHNob3VsZFxuICAgICAqIGNvbnNpZGVyIGNsb25pbmcgbm9kZXMgdG8gY3JlYXRlIG5ldyBvbmVzIChpbiB3aGljaCBjYXNlIHRoZSBuZXcgbm9kZeKAmXNcbiAgICAgKiBzb3VyY2Ugd2lsbCByZWZlcmVuY2UgdGhlIG9yaWdpbmFsLCBjbG9uZWQgbm9kZSkgb3Igc2V0dGluZ1xuICAgICAqIHRoZSBgc291cmNlYCBwcm9wZXJ0eSBtYW51YWxseS5cbiAgICAgKlxuICAgICAqIGBgYGpzXG4gICAgICogLy8gQmFkXG4gICAgICogY29uc3QgcHJlZml4ZWQgPSBwb3N0Y3NzLmRlY2woe1xuICAgICAqICAgcHJvcDogJy1tb3otJyArIGRlY2wucHJvcCxcbiAgICAgKiAgIHZhbHVlOiBkZWNsLnZhbHVlXG4gICAgICogfSk7XG4gICAgICpcbiAgICAgKiAvLyBHb29kXG4gICAgICogY29uc3QgcHJlZml4ZWQgPSBkZWNsLmNsb25lKHsgcHJvcDogJy1tb3otJyArIGRlY2wucHJvcCB9KTtcbiAgICAgKiBgYGBcbiAgICAgKlxuICAgICAqIGBgYGpzXG4gICAgICogaWYgKCBhdHJ1bGUubmFtZSA9PSAnYWRkLWxpbmsnICkge1xuICAgICAqICAgY29uc3QgcnVsZSA9IHBvc3Rjc3MucnVsZSh7IHNlbGVjdG9yOiAnYScsIHNvdXJjZTogYXRydWxlLnNvdXJjZSB9KTtcbiAgICAgKiAgIGF0cnVsZS5wYXJlbnQuaW5zZXJ0QmVmb3JlKGF0cnVsZSwgcnVsZSk7XG4gICAgICogfVxuICAgICAqIGBgYFxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBkZWNsLnNvdXJjZS5pbnB1dC5mcm9tIC8vPT4gJy9ob21lL2FpL2Euc2FzcydcbiAgICAgKiBkZWNsLnNvdXJjZS5zdGFydCAgICAgIC8vPT4geyBsaW5lOiAxMCwgY29sdW1uOiAyIH1cbiAgICAgKiBkZWNsLnNvdXJjZS5lbmQgICAgICAgIC8vPT4geyBsaW5lOiAxMCwgY29sdW1uOiAxMiB9XG4gICAgICovXG5cbiAgICAvKipcbiAgICAgKiBAbWVtYmVyb2YgTm9kZSNcbiAgICAgKiBAbWVtYmVyIHtvYmplY3R9IHJhd3MgLSBJbmZvcm1hdGlvbiB0byBnZW5lcmF0ZSBieXRlLXRvLWJ5dGUgZXF1YWxcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICBub2RlIHN0cmluZyBhcyBpdCB3YXMgaW4gdGhlIG9yaWdpbiBpbnB1dC5cbiAgICAgKlxuICAgICAqIEV2ZXJ5IHBhcnNlciBzYXZlcyBpdHMgb3duIHByb3BlcnRpZXMsXG4gICAgICogYnV0IHRoZSBkZWZhdWx0IENTUyBwYXJzZXIgdXNlczpcbiAgICAgKlxuICAgICAqICogYGJlZm9yZWA6IHRoZSBzcGFjZSBzeW1ib2xzIGJlZm9yZSB0aGUgbm9kZS4gSXQgYWxzbyBzdG9yZXMgYCpgXG4gICAgICogICBhbmQgYF9gIHN5bWJvbHMgYmVmb3JlIHRoZSBkZWNsYXJhdGlvbiAoSUUgaGFjaykuXG4gICAgICogKiBgYWZ0ZXJgOiB0aGUgc3BhY2Ugc3ltYm9scyBhZnRlciB0aGUgbGFzdCBjaGlsZCBvZiB0aGUgbm9kZVxuICAgICAqICAgdG8gdGhlIGVuZCBvZiB0aGUgbm9kZS5cbiAgICAgKiAqIGBiZXR3ZWVuYDogdGhlIHN5bWJvbHMgYmV0d2VlbiB0aGUgcHJvcGVydHkgYW5kIHZhbHVlXG4gICAgICogICBmb3IgZGVjbGFyYXRpb25zLCBzZWxlY3RvciBhbmQgYHtgIGZvciBydWxlcywgb3IgbGFzdCBwYXJhbWV0ZXJcbiAgICAgKiAgIGFuZCBge2AgZm9yIGF0LXJ1bGVzLlxuICAgICAqICogYHNlbWljb2xvbmA6IGNvbnRhaW5zIHRydWUgaWYgdGhlIGxhc3QgY2hpbGQgaGFzXG4gICAgICogICBhbiAob3B0aW9uYWwpIHNlbWljb2xvbi5cbiAgICAgKiAqIGBhZnRlck5hbWVgOiB0aGUgc3BhY2UgYmV0d2VlbiB0aGUgYXQtcnVsZSBuYW1lIGFuZCBpdHMgcGFyYW1ldGVycy5cbiAgICAgKiAqIGBsZWZ0YDogdGhlIHNwYWNlIHN5bWJvbHMgYmV0d2VlbiBgLypgIGFuZCB0aGUgY29tbWVudOKAmXMgdGV4dC5cbiAgICAgKiAqIGByaWdodGA6IHRoZSBzcGFjZSBzeW1ib2xzIGJldHdlZW4gdGhlIGNvbW1lbnTigJlzIHRleHRcbiAgICAgKiAgIGFuZCA8Y29kZT4qJiM0Nzs8L2NvZGU+LlxuICAgICAqICogYGltcG9ydGFudGA6IHRoZSBjb250ZW50IG9mIHRoZSBpbXBvcnRhbnQgc3RhdGVtZW50LFxuICAgICAqICAgaWYgaXQgaXMgbm90IGp1c3QgYCFpbXBvcnRhbnRgLlxuICAgICAqXG4gICAgICogUG9zdENTUyBjbGVhbnMgc2VsZWN0b3JzLCBkZWNsYXJhdGlvbiB2YWx1ZXMgYW5kIGF0LXJ1bGUgcGFyYW1ldGVyc1xuICAgICAqIGZyb20gY29tbWVudHMgYW5kIGV4dHJhIHNwYWNlcywgYnV0IGl0IHN0b3JlcyBvcmlnaW4gY29udGVudCBpbiByYXdzXG4gICAgICogcHJvcGVydGllcy4gQXMgc3VjaCwgaWYgeW91IGRvbuKAmXQgY2hhbmdlIGEgZGVjbGFyYXRpb27igJlzIHZhbHVlLFxuICAgICAqIFBvc3RDU1Mgd2lsbCB1c2UgdGhlIHJhdyB2YWx1ZSB3aXRoIGNvbW1lbnRzLlxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnYSB7XFxuICBjb2xvcjpibGFja1xcbn0nKVxuICAgICAqIHJvb3QuZmlyc3QuZmlyc3QucmF3cyAvLz0+IHsgYmVmb3JlOiAnXFxuICAnLCBiZXR3ZWVuOiAnOicgfVxuICAgICAqL1xuXG59XG5cbmV4cG9ydCBkZWZhdWx0IE5vZGU7XG5cbi8qKlxuICogQHR5cGVkZWYge29iamVjdH0gcG9zaXRpb25cbiAqIEBwcm9wZXJ0eSB7bnVtYmVyfSBsaW5lICAgLSBzb3VyY2UgbGluZSBpbiBmaWxlXG4gKiBAcHJvcGVydHkge251bWJlcn0gY29sdW1uIC0gc291cmNlIGNvbHVtbiBpbiBmaWxlXG4gKi9cblxuLyoqXG4gKiBAdHlwZWRlZiB7b2JqZWN0fSBzb3VyY2VcbiAqIEBwcm9wZXJ0eSB7SW5wdXR9IGlucHV0ICAgIC0ge0BsaW5rIElucHV0fSB3aXRoIGlucHV0IGZpbGVcbiAqIEBwcm9wZXJ0eSB7cG9zaXRpb259IHN0YXJ0IC0gVGhlIHN0YXJ0aW5nIHBvc2l0aW9uIG9mIHRoZSBub2Rl4oCZcyBzb3VyY2VcbiAqIEBwcm9wZXJ0eSB7cG9zaXRpb259IGVuZCAgIC0gVGhlIGVuZGluZyBwb3NpdGlvbiBvZiB0aGUgbm9kZeKAmXMgc291cmNlXG4gKi9cbiJdfQ== diff --git a/node_modules/postcss/lib/parse.js b/node_modules/postcss/lib/parse.js deleted file mode 100644 index a178a71..0000000 --- a/node_modules/postcss/lib/parse.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -exports.__esModule = true; -exports.default = parse; - -var _parser = require('./parser'); - -var _parser2 = _interopRequireDefault(_parser); - -var _input = require('./input'); - -var _input2 = _interopRequireDefault(_input); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function parse(css, opts) { - if (opts && opts.safe) { - throw new Error('Option safe was removed. ' + 'Use parser: require("postcss-safe-parser")'); - } - - var input = new _input2.default(css, opts); - - var parser = new _parser2.default(input); - try { - parser.tokenize(); - parser.loop(); - } catch (e) { - if (e.name === 'CssSyntaxError' && opts && opts.from) { - if (/\.scss$/i.test(opts.from)) { - e.message += '\nYou tried to parse SCSS with ' + 'the standard CSS parser; ' + 'try again with the postcss-scss parser'; - } else if (/\.less$/i.test(opts.from)) { - e.message += '\nYou tried to parse Less with ' + 'the standard CSS parser; ' + 'try again with the postcss-less parser'; - } - } - throw e; - } - - return parser.root; -} -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhcnNlLmVzNiJdLCJuYW1lcyI6WyJwYXJzZSIsImNzcyIsIm9wdHMiLCJzYWZlIiwiRXJyb3IiLCJpbnB1dCIsInBhcnNlciIsInRva2VuaXplIiwibG9vcCIsImUiLCJuYW1lIiwiZnJvbSIsInRlc3QiLCJtZXNzYWdlIiwicm9vdCJdLCJtYXBwaW5ncyI6Ijs7O2tCQUd3QkEsSzs7QUFIeEI7Ozs7QUFDQTs7Ozs7O0FBRWUsU0FBU0EsS0FBVCxDQUFlQyxHQUFmLEVBQW9CQyxJQUFwQixFQUEwQjtBQUNyQyxRQUFLQSxRQUFRQSxLQUFLQyxJQUFsQixFQUF5QjtBQUNyQixjQUFNLElBQUlDLEtBQUosQ0FBVSw4QkFDQSw0Q0FEVixDQUFOO0FBRUg7O0FBRUQsUUFBSUMsUUFBUSxvQkFBVUosR0FBVixFQUFlQyxJQUFmLENBQVo7O0FBRUEsUUFBSUksU0FBUyxxQkFBV0QsS0FBWCxDQUFiO0FBQ0EsUUFBSTtBQUNBQyxlQUFPQyxRQUFQO0FBQ0FELGVBQU9FLElBQVA7QUFDSCxLQUhELENBR0UsT0FBT0MsQ0FBUCxFQUFVO0FBQ1IsWUFBS0EsRUFBRUMsSUFBRixLQUFXLGdCQUFYLElBQStCUixJQUEvQixJQUF1Q0EsS0FBS1MsSUFBakQsRUFBd0Q7QUFDcEQsZ0JBQUssV0FBV0MsSUFBWCxDQUFnQlYsS0FBS1MsSUFBckIsQ0FBTCxFQUFrQztBQUM5QkYsa0JBQUVJLE9BQUYsSUFBYSxvQ0FDQSwyQkFEQSxHQUVBLHdDQUZiO0FBR0gsYUFKRCxNQUlPLElBQUssV0FBV0QsSUFBWCxDQUFnQlYsS0FBS1MsSUFBckIsQ0FBTCxFQUFrQztBQUNyQ0Ysa0JBQUVJLE9BQUYsSUFBYSxvQ0FDQSwyQkFEQSxHQUVBLHdDQUZiO0FBR0g7QUFDSjtBQUNELGNBQU1KLENBQU47QUFDSDs7QUFFRCxXQUFPSCxPQUFPUSxJQUFkO0FBQ0giLCJmaWxlIjoicGFyc2UuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUGFyc2VyIGZyb20gJy4vcGFyc2VyJztcbmltcG9ydCBJbnB1dCAgZnJvbSAnLi9pbnB1dCc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIHBhcnNlKGNzcywgb3B0cykge1xuICAgIGlmICggb3B0cyAmJiBvcHRzLnNhZmUgKSB7XG4gICAgICAgIHRocm93IG5ldyBFcnJvcignT3B0aW9uIHNhZmUgd2FzIHJlbW92ZWQuICcgK1xuICAgICAgICAgICAgICAgICAgICAgICAgJ1VzZSBwYXJzZXI6IHJlcXVpcmUoXCJwb3N0Y3NzLXNhZmUtcGFyc2VyXCIpJyk7XG4gICAgfVxuXG4gICAgbGV0IGlucHV0ID0gbmV3IElucHV0KGNzcywgb3B0cyk7XG5cbiAgICBsZXQgcGFyc2VyID0gbmV3IFBhcnNlcihpbnB1dCk7XG4gICAgdHJ5IHtcbiAgICAgICAgcGFyc2VyLnRva2VuaXplKCk7XG4gICAgICAgIHBhcnNlci5sb29wKCk7XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgICBpZiAoIGUubmFtZSA9PT0gJ0Nzc1N5bnRheEVycm9yJyAmJiBvcHRzICYmIG9wdHMuZnJvbSApIHtcbiAgICAgICAgICAgIGlmICggL1xcLnNjc3MkL2kudGVzdChvcHRzLmZyb20pICkge1xuICAgICAgICAgICAgICAgIGUubWVzc2FnZSArPSAnXFxuWW91IHRyaWVkIHRvIHBhcnNlIFNDU1Mgd2l0aCAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3RoZSBzdGFuZGFyZCBDU1MgcGFyc2VyOyAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3RyeSBhZ2FpbiB3aXRoIHRoZSBwb3N0Y3NzLXNjc3MgcGFyc2VyJztcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIC9cXC5sZXNzJC9pLnRlc3Qob3B0cy5mcm9tKSApIHtcbiAgICAgICAgICAgICAgICBlLm1lc3NhZ2UgKz0gJ1xcbllvdSB0cmllZCB0byBwYXJzZSBMZXNzIHdpdGggJyArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICd0aGUgc3RhbmRhcmQgQ1NTIHBhcnNlcjsgJyArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICd0cnkgYWdhaW4gd2l0aCB0aGUgcG9zdGNzcy1sZXNzIHBhcnNlcic7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgdGhyb3cgZTtcbiAgICB9XG5cbiAgICByZXR1cm4gcGFyc2VyLnJvb3Q7XG59XG4iXX0= diff --git a/node_modules/postcss/lib/parser.js b/node_modules/postcss/lib/parser.js deleted file mode 100644 index 7320196..0000000 --- a/node_modules/postcss/lib/parser.js +++ /dev/null @@ -1,514 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _declaration = require('./declaration'); - -var _declaration2 = _interopRequireDefault(_declaration); - -var _tokenize = require('./tokenize'); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _comment = require('./comment'); - -var _comment2 = _interopRequireDefault(_comment); - -var _atRule = require('./at-rule'); - -var _atRule2 = _interopRequireDefault(_atRule); - -var _root = require('./root'); - -var _root2 = _interopRequireDefault(_root); - -var _rule = require('./rule'); - -var _rule2 = _interopRequireDefault(_rule); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var Parser = function () { - function Parser(input) { - _classCallCheck(this, Parser); - - this.input = input; - - this.pos = 0; - this.root = new _root2.default(); - this.current = this.root; - this.spaces = ''; - this.semicolon = false; - - this.root.source = { input: input, start: { line: 1, column: 1 } }; - } - - Parser.prototype.tokenize = function tokenize() { - this.tokens = (0, _tokenize2.default)(this.input); - }; - - Parser.prototype.loop = function loop() { - var token = void 0; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - - switch (token[0]) { - - case 'space': - case ';': - this.spaces += token[1]; - break; - - case '}': - this.end(token); - break; - - case 'comment': - this.comment(token); - break; - - case 'at-word': - this.atrule(token); - break; - - case '{': - this.emptyRule(token); - break; - - default: - this.other(); - break; - } - - this.pos += 1; - } - this.endFile(); - }; - - Parser.prototype.comment = function comment(token) { - var node = new _comment2.default(); - this.init(node, token[2], token[3]); - node.source.end = { line: token[4], column: token[5] }; - - var text = token[1].slice(2, -2); - if (/^\s*$/.test(text)) { - node.text = ''; - node.raws.left = text; - node.raws.right = ''; - } else { - var match = text.match(/^(\s*)([^]*[^\s])(\s*)$/); - node.text = match[2]; - node.raws.left = match[1]; - node.raws.right = match[3]; - } - }; - - Parser.prototype.emptyRule = function emptyRule(token) { - var node = new _rule2.default(); - this.init(node, token[2], token[3]); - node.selector = ''; - node.raws.between = ''; - this.current = node; - }; - - Parser.prototype.other = function other() { - var token = void 0; - var end = false; - var type = null; - var colon = false; - var bracket = null; - var brackets = []; - - var start = this.pos; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - type = token[0]; - - if (type === '(' || type === '[') { - if (!bracket) bracket = token; - brackets.push(type === '(' ? ')' : ']'); - } else if (brackets.length === 0) { - if (type === ';') { - if (colon) { - this.decl(this.tokens.slice(start, this.pos + 1)); - return; - } else { - break; - } - } else if (type === '{') { - this.rule(this.tokens.slice(start, this.pos + 1)); - return; - } else if (type === '}') { - this.pos -= 1; - end = true; - break; - } else if (type === ':') { - colon = true; - } - } else if (type === brackets[brackets.length - 1]) { - brackets.pop(); - if (brackets.length === 0) bracket = null; - } - - this.pos += 1; - } - if (this.pos === this.tokens.length) { - this.pos -= 1; - end = true; - } - - if (brackets.length > 0) this.unclosedBracket(bracket); - - if (end && colon) { - while (this.pos > start) { - token = this.tokens[this.pos][0]; - if (token !== 'space' && token !== 'comment') break; - this.pos -= 1; - } - this.decl(this.tokens.slice(start, this.pos + 1)); - return; - } - - this.unknownWord(start); - }; - - Parser.prototype.rule = function rule(tokens) { - tokens.pop(); - - var node = new _rule2.default(); - this.init(node, tokens[0][2], tokens[0][3]); - - node.raws.between = this.spacesAndCommentsFromEnd(tokens); - this.raw(node, 'selector', tokens); - this.current = node; - }; - - Parser.prototype.decl = function decl(tokens) { - var node = new _declaration2.default(); - this.init(node); - - var last = tokens[tokens.length - 1]; - if (last[0] === ';') { - this.semicolon = true; - tokens.pop(); - } - if (last[4]) { - node.source.end = { line: last[4], column: last[5] }; - } else { - node.source.end = { line: last[2], column: last[3] }; - } - - while (tokens[0][0] !== 'word') { - node.raws.before += tokens.shift()[1]; - } - node.source.start = { line: tokens[0][2], column: tokens[0][3] }; - - node.prop = ''; - while (tokens.length) { - var type = tokens[0][0]; - if (type === ':' || type === 'space' || type === 'comment') { - break; - } - node.prop += tokens.shift()[1]; - } - - node.raws.between = ''; - - var token = void 0; - while (tokens.length) { - token = tokens.shift(); - - if (token[0] === ':') { - node.raws.between += token[1]; - break; - } else { - node.raws.between += token[1]; - } - } - - if (node.prop[0] === '_' || node.prop[0] === '*') { - node.raws.before += node.prop[0]; - node.prop = node.prop.slice(1); - } - node.raws.between += this.spacesAndCommentsFromStart(tokens); - this.precheckMissedSemicolon(tokens); - - for (var i = tokens.length - 1; i > 0; i--) { - token = tokens[i]; - if (token[1] === '!important') { - node.important = true; - var string = this.stringFrom(tokens, i); - string = this.spacesFromEnd(tokens) + string; - if (string !== ' !important') node.raws.important = string; - break; - } else if (token[1] === 'important') { - var cache = tokens.slice(0); - var str = ''; - for (var j = i; j > 0; j--) { - var _type = cache[j][0]; - if (str.trim().indexOf('!') === 0 && _type !== 'space') { - break; - } - str = cache.pop()[1] + str; - } - if (str.trim().indexOf('!') === 0) { - node.important = true; - node.raws.important = str; - tokens = cache; - } - } - - if (token[0] !== 'space' && token[0] !== 'comment') { - break; - } - } - - this.raw(node, 'value', tokens); - - if (node.value.indexOf(':') !== -1) this.checkMissedSemicolon(tokens); - }; - - Parser.prototype.atrule = function atrule(token) { - var node = new _atRule2.default(); - node.name = token[1].slice(1); - if (node.name === '') { - this.unnamedAtrule(node, token); - } - this.init(node, token[2], token[3]); - - var last = false; - var open = false; - var params = []; - - this.pos += 1; - while (this.pos < this.tokens.length) { - token = this.tokens[this.pos]; - - if (token[0] === ';') { - node.source.end = { line: token[2], column: token[3] }; - this.semicolon = true; - break; - } else if (token[0] === '{') { - open = true; - break; - } else if (token[0] === '}') { - this.end(token); - break; - } else { - params.push(token); - } - - this.pos += 1; - } - if (this.pos === this.tokens.length) { - last = true; - } - - node.raws.between = this.spacesAndCommentsFromEnd(params); - if (params.length) { - node.raws.afterName = this.spacesAndCommentsFromStart(params); - this.raw(node, 'params', params); - if (last) { - token = params[params.length - 1]; - node.source.end = { line: token[4], column: token[5] }; - this.spaces = node.raws.between; - node.raws.between = ''; - } - } else { - node.raws.afterName = ''; - node.params = ''; - } - - if (open) { - node.nodes = []; - this.current = node; - } - }; - - Parser.prototype.end = function end(token) { - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon; - } - this.semicolon = false; - - this.current.raws.after = (this.current.raws.after || '') + this.spaces; - this.spaces = ''; - - if (this.current.parent) { - this.current.source.end = { line: token[2], column: token[3] }; - this.current = this.current.parent; - } else { - this.unexpectedClose(token); - } - }; - - Parser.prototype.endFile = function endFile() { - if (this.current.parent) this.unclosedBlock(); - if (this.current.nodes && this.current.nodes.length) { - this.current.raws.semicolon = this.semicolon; - } - this.current.raws.after = (this.current.raws.after || '') + this.spaces; - }; - - // Helpers - - Parser.prototype.init = function init(node, line, column) { - this.current.push(node); - - node.source = { start: { line: line, column: column }, input: this.input }; - node.raws.before = this.spaces; - this.spaces = ''; - if (node.type !== 'comment') this.semicolon = false; - }; - - Parser.prototype.raw = function raw(node, prop, tokens) { - var token = void 0, - type = void 0; - var length = tokens.length; - var value = ''; - var clean = true; - for (var i = 0; i < length; i += 1) { - token = tokens[i]; - type = token[0]; - if (type === 'comment' || type === 'space' && i === length - 1) { - clean = false; - } else { - value += token[1]; - } - } - if (!clean) { - var raw = tokens.reduce(function (all, i) { - return all + i[1]; - }, ''); - node.raws[prop] = { value: value, raw: raw }; - } - node[prop] = value; - }; - - Parser.prototype.spacesAndCommentsFromEnd = function spacesAndCommentsFromEnd(tokens) { - var lastTokenType = void 0; - var spaces = ''; - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0]; - if (lastTokenType !== 'space' && lastTokenType !== 'comment') break; - spaces = tokens.pop()[1] + spaces; - } - return spaces; - }; - - Parser.prototype.spacesAndCommentsFromStart = function spacesAndCommentsFromStart(tokens) { - var next = void 0; - var spaces = ''; - while (tokens.length) { - next = tokens[0][0]; - if (next !== 'space' && next !== 'comment') break; - spaces += tokens.shift()[1]; - } - return spaces; - }; - - Parser.prototype.spacesFromEnd = function spacesFromEnd(tokens) { - var lastTokenType = void 0; - var spaces = ''; - while (tokens.length) { - lastTokenType = tokens[tokens.length - 1][0]; - if (lastTokenType !== 'space') break; - spaces = tokens.pop()[1] + spaces; - } - return spaces; - }; - - Parser.prototype.stringFrom = function stringFrom(tokens, from) { - var result = ''; - for (var i = from; i < tokens.length; i++) { - result += tokens[i][1]; - } - tokens.splice(from, tokens.length - from); - return result; - }; - - Parser.prototype.colon = function colon(tokens) { - var brackets = 0; - var token = void 0, - type = void 0, - prev = void 0; - for (var i = 0; i < tokens.length; i++) { - token = tokens[i]; - type = token[0]; - - if (type === '(') { - brackets += 1; - } else if (type === ')') { - brackets -= 1; - } else if (brackets === 0 && type === ':') { - if (!prev) { - this.doubleColon(token); - } else if (prev[0] === 'word' && prev[1] === 'progid') { - continue; - } else { - return i; - } - } - - prev = token; - } - return false; - }; - - // Errors - - Parser.prototype.unclosedBracket = function unclosedBracket(bracket) { - throw this.input.error('Unclosed bracket', bracket[2], bracket[3]); - }; - - Parser.prototype.unknownWord = function unknownWord(start) { - var token = this.tokens[start]; - throw this.input.error('Unknown word', token[2], token[3]); - }; - - Parser.prototype.unexpectedClose = function unexpectedClose(token) { - throw this.input.error('Unexpected }', token[2], token[3]); - }; - - Parser.prototype.unclosedBlock = function unclosedBlock() { - var pos = this.current.source.start; - throw this.input.error('Unclosed block', pos.line, pos.column); - }; - - Parser.prototype.doubleColon = function doubleColon(token) { - throw this.input.error('Double colon', token[2], token[3]); - }; - - Parser.prototype.unnamedAtrule = function unnamedAtrule(node, token) { - throw this.input.error('At-rule without name', token[2], token[3]); - }; - - Parser.prototype.precheckMissedSemicolon = function precheckMissedSemicolon(tokens) { - // Hook for Safe Parser - tokens; - }; - - Parser.prototype.checkMissedSemicolon = function checkMissedSemicolon(tokens) { - var colon = this.colon(tokens); - if (colon === false) return; - - var founded = 0; - var token = void 0; - for (var j = colon - 1; j >= 0; j--) { - token = tokens[j]; - if (token[0] !== 'space') { - founded += 1; - if (founded === 2) break; - } - } - throw this.input.error('Missed semicolon', token[2], token[3]); - }; - - return Parser; -}(); - -exports.default = Parser; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhcnNlci5lczYiXSwibmFtZXMiOlsiUGFyc2VyIiwiaW5wdXQiLCJwb3MiLCJyb290IiwiY3VycmVudCIsInNwYWNlcyIsInNlbWljb2xvbiIsInNvdXJjZSIsInN0YXJ0IiwibGluZSIsImNvbHVtbiIsInRva2VuaXplIiwidG9rZW5zIiwibG9vcCIsInRva2VuIiwibGVuZ3RoIiwiZW5kIiwiY29tbWVudCIsImF0cnVsZSIsImVtcHR5UnVsZSIsIm90aGVyIiwiZW5kRmlsZSIsIm5vZGUiLCJpbml0IiwidGV4dCIsInNsaWNlIiwidGVzdCIsInJhd3MiLCJsZWZ0IiwicmlnaHQiLCJtYXRjaCIsInNlbGVjdG9yIiwiYmV0d2VlbiIsInR5cGUiLCJjb2xvbiIsImJyYWNrZXQiLCJicmFja2V0cyIsInB1c2giLCJkZWNsIiwicnVsZSIsInBvcCIsInVuY2xvc2VkQnJhY2tldCIsInVua25vd25Xb3JkIiwic3BhY2VzQW5kQ29tbWVudHNGcm9tRW5kIiwicmF3IiwibGFzdCIsImJlZm9yZSIsInNoaWZ0IiwicHJvcCIsInNwYWNlc0FuZENvbW1lbnRzRnJvbVN0YXJ0IiwicHJlY2hlY2tNaXNzZWRTZW1pY29sb24iLCJpIiwiaW1wb3J0YW50Iiwic3RyaW5nIiwic3RyaW5nRnJvbSIsInNwYWNlc0Zyb21FbmQiLCJjYWNoZSIsInN0ciIsImoiLCJ0cmltIiwiaW5kZXhPZiIsInZhbHVlIiwiY2hlY2tNaXNzZWRTZW1pY29sb24iLCJuYW1lIiwidW5uYW1lZEF0cnVsZSIsIm9wZW4iLCJwYXJhbXMiLCJhZnRlck5hbWUiLCJub2RlcyIsImFmdGVyIiwicGFyZW50IiwidW5leHBlY3RlZENsb3NlIiwidW5jbG9zZWRCbG9jayIsImNsZWFuIiwicmVkdWNlIiwiYWxsIiwibGFzdFRva2VuVHlwZSIsIm5leHQiLCJmcm9tIiwicmVzdWx0Iiwic3BsaWNlIiwicHJldiIsImRvdWJsZUNvbG9uIiwiZXJyb3IiLCJmb3VuZGVkIl0sIm1hcHBpbmdzIjoiOzs7O0FBQUE7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7OztJQUVxQkEsTTtBQUVqQixvQkFBWUMsS0FBWixFQUFtQjtBQUFBOztBQUNmLGFBQUtBLEtBQUwsR0FBYUEsS0FBYjs7QUFFQSxhQUFLQyxHQUFMLEdBQWlCLENBQWpCO0FBQ0EsYUFBS0MsSUFBTCxHQUFpQixvQkFBakI7QUFDQSxhQUFLQyxPQUFMLEdBQWlCLEtBQUtELElBQXRCO0FBQ0EsYUFBS0UsTUFBTCxHQUFpQixFQUFqQjtBQUNBLGFBQUtDLFNBQUwsR0FBaUIsS0FBakI7O0FBRUEsYUFBS0gsSUFBTCxDQUFVSSxNQUFWLEdBQW1CLEVBQUVOLFlBQUYsRUFBU08sT0FBTyxFQUFFQyxNQUFNLENBQVIsRUFBV0MsUUFBUSxDQUFuQixFQUFoQixFQUFuQjtBQUNIOztxQkFFREMsUSx1QkFBVztBQUNQLGFBQUtDLE1BQUwsR0FBYyx3QkFBVSxLQUFLWCxLQUFmLENBQWQ7QUFDSCxLOztxQkFFRFksSSxtQkFBTztBQUNILFlBQUlDLGNBQUo7QUFDQSxlQUFRLEtBQUtaLEdBQUwsR0FBVyxLQUFLVSxNQUFMLENBQVlHLE1BQS9CLEVBQXdDO0FBQ3BDRCxvQkFBUSxLQUFLRixNQUFMLENBQVksS0FBS1YsR0FBakIsQ0FBUjs7QUFFQSxvQkFBU1ksTUFBTSxDQUFOLENBQVQ7O0FBRUEscUJBQUssT0FBTDtBQUNBLHFCQUFLLEdBQUw7QUFDSSx5QkFBS1QsTUFBTCxJQUFlUyxNQUFNLENBQU4sQ0FBZjtBQUNBOztBQUVKLHFCQUFLLEdBQUw7QUFDSSx5QkFBS0UsR0FBTCxDQUFTRixLQUFUO0FBQ0E7O0FBRUoscUJBQUssU0FBTDtBQUNJLHlCQUFLRyxPQUFMLENBQWFILEtBQWI7QUFDQTs7QUFFSixxQkFBSyxTQUFMO0FBQ0kseUJBQUtJLE1BQUwsQ0FBWUosS0FBWjtBQUNBOztBQUVKLHFCQUFLLEdBQUw7QUFDSSx5QkFBS0ssU0FBTCxDQUFlTCxLQUFmO0FBQ0E7O0FBRUo7QUFDSSx5QkFBS00sS0FBTDtBQUNBO0FBekJKOztBQTRCQSxpQkFBS2xCLEdBQUwsSUFBWSxDQUFaO0FBQ0g7QUFDRCxhQUFLbUIsT0FBTDtBQUNILEs7O3FCQUVESixPLG9CQUFRSCxLLEVBQU87QUFDWCxZQUFJUSxPQUFPLHVCQUFYO0FBQ0EsYUFBS0MsSUFBTCxDQUFVRCxJQUFWLEVBQWdCUixNQUFNLENBQU4sQ0FBaEIsRUFBMEJBLE1BQU0sQ0FBTixDQUExQjtBQUNBUSxhQUFLZixNQUFMLENBQVlTLEdBQVosR0FBa0IsRUFBRVAsTUFBTUssTUFBTSxDQUFOLENBQVIsRUFBa0JKLFFBQVFJLE1BQU0sQ0FBTixDQUExQixFQUFsQjs7QUFFQSxZQUFJVSxPQUFPVixNQUFNLENBQU4sRUFBU1csS0FBVCxDQUFlLENBQWYsRUFBa0IsQ0FBQyxDQUFuQixDQUFYO0FBQ0EsWUFBSyxRQUFRQyxJQUFSLENBQWFGLElBQWIsQ0FBTCxFQUEwQjtBQUN0QkYsaUJBQUtFLElBQUwsR0FBa0IsRUFBbEI7QUFDQUYsaUJBQUtLLElBQUwsQ0FBVUMsSUFBVixHQUFrQkosSUFBbEI7QUFDQUYsaUJBQUtLLElBQUwsQ0FBVUUsS0FBVixHQUFrQixFQUFsQjtBQUNILFNBSkQsTUFJTztBQUNILGdCQUFJQyxRQUFRTixLQUFLTSxLQUFMLENBQVcseUJBQVgsQ0FBWjtBQUNBUixpQkFBS0UsSUFBTCxHQUFrQk0sTUFBTSxDQUFOLENBQWxCO0FBQ0FSLGlCQUFLSyxJQUFMLENBQVVDLElBQVYsR0FBa0JFLE1BQU0sQ0FBTixDQUFsQjtBQUNBUixpQkFBS0ssSUFBTCxDQUFVRSxLQUFWLEdBQWtCQyxNQUFNLENBQU4sQ0FBbEI7QUFDSDtBQUNKLEs7O3FCQUVEWCxTLHNCQUFVTCxLLEVBQU87QUFDYixZQUFJUSxPQUFPLG9CQUFYO0FBQ0EsYUFBS0MsSUFBTCxDQUFVRCxJQUFWLEVBQWdCUixNQUFNLENBQU4sQ0FBaEIsRUFBMEJBLE1BQU0sQ0FBTixDQUExQjtBQUNBUSxhQUFLUyxRQUFMLEdBQWdCLEVBQWhCO0FBQ0FULGFBQUtLLElBQUwsQ0FBVUssT0FBVixHQUFvQixFQUFwQjtBQUNBLGFBQUs1QixPQUFMLEdBQWVrQixJQUFmO0FBQ0gsSzs7cUJBRURGLEssb0JBQVE7QUFDSixZQUFJTixjQUFKO0FBQ0EsWUFBSUUsTUFBVyxLQUFmO0FBQ0EsWUFBSWlCLE9BQVcsSUFBZjtBQUNBLFlBQUlDLFFBQVcsS0FBZjtBQUNBLFlBQUlDLFVBQVcsSUFBZjtBQUNBLFlBQUlDLFdBQVcsRUFBZjs7QUFFQSxZQUFJNUIsUUFBUSxLQUFLTixHQUFqQjtBQUNBLGVBQVEsS0FBS0EsR0FBTCxHQUFXLEtBQUtVLE1BQUwsQ0FBWUcsTUFBL0IsRUFBd0M7QUFDcENELG9CQUFRLEtBQUtGLE1BQUwsQ0FBWSxLQUFLVixHQUFqQixDQUFSO0FBQ0ErQixtQkFBUW5CLE1BQU0sQ0FBTixDQUFSOztBQUVBLGdCQUFLbUIsU0FBUyxHQUFULElBQWdCQSxTQUFTLEdBQTlCLEVBQW9DO0FBQ2hDLG9CQUFLLENBQUNFLE9BQU4sRUFBZ0JBLFVBQVVyQixLQUFWO0FBQ2hCc0IseUJBQVNDLElBQVQsQ0FBY0osU0FBUyxHQUFULEdBQWUsR0FBZixHQUFxQixHQUFuQztBQUVILGFBSkQsTUFJTyxJQUFLRyxTQUFTckIsTUFBVCxLQUFvQixDQUF6QixFQUE2QjtBQUNoQyxvQkFBS2tCLFNBQVMsR0FBZCxFQUFvQjtBQUNoQix3QkFBS0MsS0FBTCxFQUFhO0FBQ1QsNkJBQUtJLElBQUwsQ0FBVSxLQUFLMUIsTUFBTCxDQUFZYSxLQUFaLENBQWtCakIsS0FBbEIsRUFBeUIsS0FBS04sR0FBTCxHQUFXLENBQXBDLENBQVY7QUFDQTtBQUNILHFCQUhELE1BR087QUFDSDtBQUNIO0FBRUosaUJBUkQsTUFRTyxJQUFLK0IsU0FBUyxHQUFkLEVBQW9CO0FBQ3ZCLHlCQUFLTSxJQUFMLENBQVUsS0FBSzNCLE1BQUwsQ0FBWWEsS0FBWixDQUFrQmpCLEtBQWxCLEVBQXlCLEtBQUtOLEdBQUwsR0FBVyxDQUFwQyxDQUFWO0FBQ0E7QUFFSCxpQkFKTSxNQUlBLElBQUsrQixTQUFTLEdBQWQsRUFBb0I7QUFDdkIseUJBQUsvQixHQUFMLElBQVksQ0FBWjtBQUNBYywwQkFBTSxJQUFOO0FBQ0E7QUFFSCxpQkFMTSxNQUtBLElBQUtpQixTQUFTLEdBQWQsRUFBb0I7QUFDdkJDLDRCQUFRLElBQVI7QUFDSDtBQUVKLGFBdEJNLE1Bc0JBLElBQUtELFNBQVNHLFNBQVNBLFNBQVNyQixNQUFULEdBQWtCLENBQTNCLENBQWQsRUFBOEM7QUFDakRxQix5QkFBU0ksR0FBVDtBQUNBLG9CQUFLSixTQUFTckIsTUFBVCxLQUFvQixDQUF6QixFQUE2Qm9CLFVBQVUsSUFBVjtBQUNoQzs7QUFFRCxpQkFBS2pDLEdBQUwsSUFBWSxDQUFaO0FBQ0g7QUFDRCxZQUFLLEtBQUtBLEdBQUwsS0FBYSxLQUFLVSxNQUFMLENBQVlHLE1BQTlCLEVBQXVDO0FBQ25DLGlCQUFLYixHQUFMLElBQVksQ0FBWjtBQUNBYyxrQkFBTSxJQUFOO0FBQ0g7O0FBRUQsWUFBS29CLFNBQVNyQixNQUFULEdBQWtCLENBQXZCLEVBQTJCLEtBQUswQixlQUFMLENBQXFCTixPQUFyQjs7QUFFM0IsWUFBS25CLE9BQU9rQixLQUFaLEVBQW9CO0FBQ2hCLG1CQUFRLEtBQUtoQyxHQUFMLEdBQVdNLEtBQW5CLEVBQTJCO0FBQ3ZCTSx3QkFBUSxLQUFLRixNQUFMLENBQVksS0FBS1YsR0FBakIsRUFBc0IsQ0FBdEIsQ0FBUjtBQUNBLG9CQUFLWSxVQUFVLE9BQVYsSUFBcUJBLFVBQVUsU0FBcEMsRUFBZ0Q7QUFDaEQscUJBQUtaLEdBQUwsSUFBWSxDQUFaO0FBQ0g7QUFDRCxpQkFBS29DLElBQUwsQ0FBVSxLQUFLMUIsTUFBTCxDQUFZYSxLQUFaLENBQWtCakIsS0FBbEIsRUFBeUIsS0FBS04sR0FBTCxHQUFXLENBQXBDLENBQVY7QUFDQTtBQUNIOztBQUVELGFBQUt3QyxXQUFMLENBQWlCbEMsS0FBakI7QUFDSCxLOztxQkFFRCtCLEksaUJBQUszQixNLEVBQVE7QUFDVEEsZUFBTzRCLEdBQVA7O0FBRUEsWUFBSWxCLE9BQU8sb0JBQVg7QUFDQSxhQUFLQyxJQUFMLENBQVVELElBQVYsRUFBZ0JWLE9BQU8sQ0FBUCxFQUFVLENBQVYsQ0FBaEIsRUFBOEJBLE9BQU8sQ0FBUCxFQUFVLENBQVYsQ0FBOUI7O0FBRUFVLGFBQUtLLElBQUwsQ0FBVUssT0FBVixHQUFvQixLQUFLVyx3QkFBTCxDQUE4Qi9CLE1BQTlCLENBQXBCO0FBQ0EsYUFBS2dDLEdBQUwsQ0FBU3RCLElBQVQsRUFBZSxVQUFmLEVBQTJCVixNQUEzQjtBQUNBLGFBQUtSLE9BQUwsR0FBZWtCLElBQWY7QUFDSCxLOztxQkFFRGdCLEksaUJBQUsxQixNLEVBQVE7QUFDVCxZQUFJVSxPQUFPLDJCQUFYO0FBQ0EsYUFBS0MsSUFBTCxDQUFVRCxJQUFWOztBQUVBLFlBQUl1QixPQUFPakMsT0FBT0EsT0FBT0csTUFBUCxHQUFnQixDQUF2QixDQUFYO0FBQ0EsWUFBSzhCLEtBQUssQ0FBTCxNQUFZLEdBQWpCLEVBQXVCO0FBQ25CLGlCQUFLdkMsU0FBTCxHQUFpQixJQUFqQjtBQUNBTSxtQkFBTzRCLEdBQVA7QUFDSDtBQUNELFlBQUtLLEtBQUssQ0FBTCxDQUFMLEVBQWU7QUFDWHZCLGlCQUFLZixNQUFMLENBQVlTLEdBQVosR0FBa0IsRUFBRVAsTUFBTW9DLEtBQUssQ0FBTCxDQUFSLEVBQWlCbkMsUUFBUW1DLEtBQUssQ0FBTCxDQUF6QixFQUFsQjtBQUNILFNBRkQsTUFFTztBQUNIdkIsaUJBQUtmLE1BQUwsQ0FBWVMsR0FBWixHQUFrQixFQUFFUCxNQUFNb0MsS0FBSyxDQUFMLENBQVIsRUFBaUJuQyxRQUFRbUMsS0FBSyxDQUFMLENBQXpCLEVBQWxCO0FBQ0g7O0FBRUQsZUFBUWpDLE9BQU8sQ0FBUCxFQUFVLENBQVYsTUFBaUIsTUFBekIsRUFBa0M7QUFDOUJVLGlCQUFLSyxJQUFMLENBQVVtQixNQUFWLElBQW9CbEMsT0FBT21DLEtBQVAsR0FBZSxDQUFmLENBQXBCO0FBQ0g7QUFDRHpCLGFBQUtmLE1BQUwsQ0FBWUMsS0FBWixHQUFvQixFQUFFQyxNQUFNRyxPQUFPLENBQVAsRUFBVSxDQUFWLENBQVIsRUFBc0JGLFFBQVFFLE9BQU8sQ0FBUCxFQUFVLENBQVYsQ0FBOUIsRUFBcEI7O0FBRUFVLGFBQUswQixJQUFMLEdBQVksRUFBWjtBQUNBLGVBQVFwQyxPQUFPRyxNQUFmLEVBQXdCO0FBQ3BCLGdCQUFJa0IsT0FBT3JCLE9BQU8sQ0FBUCxFQUFVLENBQVYsQ0FBWDtBQUNBLGdCQUFLcUIsU0FBUyxHQUFULElBQWdCQSxTQUFTLE9BQXpCLElBQW9DQSxTQUFTLFNBQWxELEVBQThEO0FBQzFEO0FBQ0g7QUFDRFgsaUJBQUswQixJQUFMLElBQWFwQyxPQUFPbUMsS0FBUCxHQUFlLENBQWYsQ0FBYjtBQUNIOztBQUVEekIsYUFBS0ssSUFBTCxDQUFVSyxPQUFWLEdBQW9CLEVBQXBCOztBQUVBLFlBQUlsQixjQUFKO0FBQ0EsZUFBUUYsT0FBT0csTUFBZixFQUF3QjtBQUNwQkQsb0JBQVFGLE9BQU9tQyxLQUFQLEVBQVI7O0FBRUEsZ0JBQUtqQyxNQUFNLENBQU4sTUFBYSxHQUFsQixFQUF3QjtBQUNwQlEscUJBQUtLLElBQUwsQ0FBVUssT0FBVixJQUFxQmxCLE1BQU0sQ0FBTixDQUFyQjtBQUNBO0FBQ0gsYUFIRCxNQUdPO0FBQ0hRLHFCQUFLSyxJQUFMLENBQVVLLE9BQVYsSUFBcUJsQixNQUFNLENBQU4sQ0FBckI7QUFDSDtBQUNKOztBQUVELFlBQUtRLEtBQUswQixJQUFMLENBQVUsQ0FBVixNQUFpQixHQUFqQixJQUF3QjFCLEtBQUswQixJQUFMLENBQVUsQ0FBVixNQUFpQixHQUE5QyxFQUFvRDtBQUNoRDFCLGlCQUFLSyxJQUFMLENBQVVtQixNQUFWLElBQW9CeEIsS0FBSzBCLElBQUwsQ0FBVSxDQUFWLENBQXBCO0FBQ0ExQixpQkFBSzBCLElBQUwsR0FBWTFCLEtBQUswQixJQUFMLENBQVV2QixLQUFWLENBQWdCLENBQWhCLENBQVo7QUFDSDtBQUNESCxhQUFLSyxJQUFMLENBQVVLLE9BQVYsSUFBcUIsS0FBS2lCLDBCQUFMLENBQWdDckMsTUFBaEMsQ0FBckI7QUFDQSxhQUFLc0MsdUJBQUwsQ0FBNkJ0QyxNQUE3Qjs7QUFFQSxhQUFNLElBQUl1QyxJQUFJdkMsT0FBT0csTUFBUCxHQUFnQixDQUE5QixFQUFpQ29DLElBQUksQ0FBckMsRUFBd0NBLEdBQXhDLEVBQThDO0FBQzFDckMsb0JBQVFGLE9BQU91QyxDQUFQLENBQVI7QUFDQSxnQkFBS3JDLE1BQU0sQ0FBTixNQUFhLFlBQWxCLEVBQWlDO0FBQzdCUSxxQkFBSzhCLFNBQUwsR0FBaUIsSUFBakI7QUFDQSxvQkFBSUMsU0FBUyxLQUFLQyxVQUFMLENBQWdCMUMsTUFBaEIsRUFBd0J1QyxDQUF4QixDQUFiO0FBQ0FFLHlCQUFTLEtBQUtFLGFBQUwsQ0FBbUIzQyxNQUFuQixJQUE2QnlDLE1BQXRDO0FBQ0Esb0JBQUtBLFdBQVcsYUFBaEIsRUFBZ0MvQixLQUFLSyxJQUFMLENBQVV5QixTQUFWLEdBQXNCQyxNQUF0QjtBQUNoQztBQUVILGFBUEQsTUFPTyxJQUFJdkMsTUFBTSxDQUFOLE1BQWEsV0FBakIsRUFBOEI7QUFDakMsb0JBQUkwQyxRQUFRNUMsT0FBT2EsS0FBUCxDQUFhLENBQWIsQ0FBWjtBQUNBLG9CQUFJZ0MsTUFBUSxFQUFaO0FBQ0EscUJBQU0sSUFBSUMsSUFBSVAsQ0FBZCxFQUFpQk8sSUFBSSxDQUFyQixFQUF3QkEsR0FBeEIsRUFBOEI7QUFDMUIsd0JBQUl6QixRQUFPdUIsTUFBTUUsQ0FBTixFQUFTLENBQVQsQ0FBWDtBQUNBLHdCQUFLRCxJQUFJRSxJQUFKLEdBQVdDLE9BQVgsQ0FBbUIsR0FBbkIsTUFBNEIsQ0FBNUIsSUFBaUMzQixVQUFTLE9BQS9DLEVBQXlEO0FBQ3JEO0FBQ0g7QUFDRHdCLDBCQUFNRCxNQUFNaEIsR0FBTixHQUFZLENBQVosSUFBaUJpQixHQUF2QjtBQUNIO0FBQ0Qsb0JBQUtBLElBQUlFLElBQUosR0FBV0MsT0FBWCxDQUFtQixHQUFuQixNQUE0QixDQUFqQyxFQUFxQztBQUNqQ3RDLHlCQUFLOEIsU0FBTCxHQUFpQixJQUFqQjtBQUNBOUIseUJBQUtLLElBQUwsQ0FBVXlCLFNBQVYsR0FBc0JLLEdBQXRCO0FBQ0E3Qyw2QkFBUzRDLEtBQVQ7QUFDSDtBQUNKOztBQUVELGdCQUFLMUMsTUFBTSxDQUFOLE1BQWEsT0FBYixJQUF3QkEsTUFBTSxDQUFOLE1BQWEsU0FBMUMsRUFBc0Q7QUFDbEQ7QUFDSDtBQUNKOztBQUVELGFBQUs4QixHQUFMLENBQVN0QixJQUFULEVBQWUsT0FBZixFQUF3QlYsTUFBeEI7O0FBRUEsWUFBS1UsS0FBS3VDLEtBQUwsQ0FBV0QsT0FBWCxDQUFtQixHQUFuQixNQUE0QixDQUFDLENBQWxDLEVBQXNDLEtBQUtFLG9CQUFMLENBQTBCbEQsTUFBMUI7QUFDekMsSzs7cUJBRURNLE0sbUJBQU9KLEssRUFBTztBQUNWLFlBQUlRLE9BQVEsc0JBQVo7QUFDQUEsYUFBS3lDLElBQUwsR0FBWWpELE1BQU0sQ0FBTixFQUFTVyxLQUFULENBQWUsQ0FBZixDQUFaO0FBQ0EsWUFBS0gsS0FBS3lDLElBQUwsS0FBYyxFQUFuQixFQUF3QjtBQUNwQixpQkFBS0MsYUFBTCxDQUFtQjFDLElBQW5CLEVBQXlCUixLQUF6QjtBQUNIO0FBQ0QsYUFBS1MsSUFBTCxDQUFVRCxJQUFWLEVBQWdCUixNQUFNLENBQU4sQ0FBaEIsRUFBMEJBLE1BQU0sQ0FBTixDQUExQjs7QUFFQSxZQUFJK0IsT0FBUyxLQUFiO0FBQ0EsWUFBSW9CLE9BQVMsS0FBYjtBQUNBLFlBQUlDLFNBQVMsRUFBYjs7QUFFQSxhQUFLaEUsR0FBTCxJQUFZLENBQVo7QUFDQSxlQUFRLEtBQUtBLEdBQUwsR0FBVyxLQUFLVSxNQUFMLENBQVlHLE1BQS9CLEVBQXdDO0FBQ3BDRCxvQkFBUSxLQUFLRixNQUFMLENBQVksS0FBS1YsR0FBakIsQ0FBUjs7QUFFQSxnQkFBS1ksTUFBTSxDQUFOLE1BQWEsR0FBbEIsRUFBd0I7QUFDcEJRLHFCQUFLZixNQUFMLENBQVlTLEdBQVosR0FBa0IsRUFBRVAsTUFBTUssTUFBTSxDQUFOLENBQVIsRUFBa0JKLFFBQVFJLE1BQU0sQ0FBTixDQUExQixFQUFsQjtBQUNBLHFCQUFLUixTQUFMLEdBQWlCLElBQWpCO0FBQ0E7QUFDSCxhQUpELE1BSU8sSUFBS1EsTUFBTSxDQUFOLE1BQWEsR0FBbEIsRUFBd0I7QUFDM0JtRCx1QkFBTyxJQUFQO0FBQ0E7QUFDSCxhQUhNLE1BR0EsSUFBS25ELE1BQU0sQ0FBTixNQUFhLEdBQWxCLEVBQXVCO0FBQzFCLHFCQUFLRSxHQUFMLENBQVNGLEtBQVQ7QUFDQTtBQUNILGFBSE0sTUFHQTtBQUNIb0QsdUJBQU83QixJQUFQLENBQVl2QixLQUFaO0FBQ0g7O0FBRUQsaUJBQUtaLEdBQUwsSUFBWSxDQUFaO0FBQ0g7QUFDRCxZQUFLLEtBQUtBLEdBQUwsS0FBYSxLQUFLVSxNQUFMLENBQVlHLE1BQTlCLEVBQXVDO0FBQ25DOEIsbUJBQU8sSUFBUDtBQUNIOztBQUVEdkIsYUFBS0ssSUFBTCxDQUFVSyxPQUFWLEdBQW9CLEtBQUtXLHdCQUFMLENBQThCdUIsTUFBOUIsQ0FBcEI7QUFDQSxZQUFLQSxPQUFPbkQsTUFBWixFQUFxQjtBQUNqQk8saUJBQUtLLElBQUwsQ0FBVXdDLFNBQVYsR0FBc0IsS0FBS2xCLDBCQUFMLENBQWdDaUIsTUFBaEMsQ0FBdEI7QUFDQSxpQkFBS3RCLEdBQUwsQ0FBU3RCLElBQVQsRUFBZSxRQUFmLEVBQXlCNEMsTUFBekI7QUFDQSxnQkFBS3JCLElBQUwsRUFBWTtBQUNSL0Isd0JBQVFvRCxPQUFPQSxPQUFPbkQsTUFBUCxHQUFnQixDQUF2QixDQUFSO0FBQ0FPLHFCQUFLZixNQUFMLENBQVlTLEdBQVosR0FBb0IsRUFBRVAsTUFBTUssTUFBTSxDQUFOLENBQVIsRUFBa0JKLFFBQVFJLE1BQU0sQ0FBTixDQUExQixFQUFwQjtBQUNBLHFCQUFLVCxNQUFMLEdBQW9CaUIsS0FBS0ssSUFBTCxDQUFVSyxPQUE5QjtBQUNBVixxQkFBS0ssSUFBTCxDQUFVSyxPQUFWLEdBQW9CLEVBQXBCO0FBQ0g7QUFDSixTQVRELE1BU087QUFDSFYsaUJBQUtLLElBQUwsQ0FBVXdDLFNBQVYsR0FBc0IsRUFBdEI7QUFDQTdDLGlCQUFLNEMsTUFBTCxHQUFzQixFQUF0QjtBQUNIOztBQUVELFlBQUtELElBQUwsRUFBWTtBQUNSM0MsaUJBQUs4QyxLQUFMLEdBQWUsRUFBZjtBQUNBLGlCQUFLaEUsT0FBTCxHQUFla0IsSUFBZjtBQUNIO0FBQ0osSzs7cUJBRUROLEcsZ0JBQUlGLEssRUFBTztBQUNQLFlBQUssS0FBS1YsT0FBTCxDQUFhZ0UsS0FBYixJQUFzQixLQUFLaEUsT0FBTCxDQUFhZ0UsS0FBYixDQUFtQnJELE1BQTlDLEVBQXVEO0FBQ25ELGlCQUFLWCxPQUFMLENBQWF1QixJQUFiLENBQWtCckIsU0FBbEIsR0FBOEIsS0FBS0EsU0FBbkM7QUFDSDtBQUNELGFBQUtBLFNBQUwsR0FBaUIsS0FBakI7O0FBRUEsYUFBS0YsT0FBTCxDQUFhdUIsSUFBYixDQUFrQjBDLEtBQWxCLEdBQTBCLENBQUMsS0FBS2pFLE9BQUwsQ0FBYXVCLElBQWIsQ0FBa0IwQyxLQUFsQixJQUEyQixFQUE1QixJQUFrQyxLQUFLaEUsTUFBakU7QUFDQSxhQUFLQSxNQUFMLEdBQWMsRUFBZDs7QUFFQSxZQUFLLEtBQUtELE9BQUwsQ0FBYWtFLE1BQWxCLEVBQTJCO0FBQ3ZCLGlCQUFLbEUsT0FBTCxDQUFhRyxNQUFiLENBQW9CUyxHQUFwQixHQUEwQixFQUFFUCxNQUFNSyxNQUFNLENBQU4sQ0FBUixFQUFrQkosUUFBUUksTUFBTSxDQUFOLENBQTFCLEVBQTFCO0FBQ0EsaUJBQUtWLE9BQUwsR0FBZSxLQUFLQSxPQUFMLENBQWFrRSxNQUE1QjtBQUNILFNBSEQsTUFHTztBQUNILGlCQUFLQyxlQUFMLENBQXFCekQsS0FBckI7QUFDSDtBQUNKLEs7O3FCQUVETyxPLHNCQUFVO0FBQ04sWUFBSyxLQUFLakIsT0FBTCxDQUFha0UsTUFBbEIsRUFBMkIsS0FBS0UsYUFBTDtBQUMzQixZQUFLLEtBQUtwRSxPQUFMLENBQWFnRSxLQUFiLElBQXNCLEtBQUtoRSxPQUFMLENBQWFnRSxLQUFiLENBQW1CckQsTUFBOUMsRUFBdUQ7QUFDbkQsaUJBQUtYLE9BQUwsQ0FBYXVCLElBQWIsQ0FBa0JyQixTQUFsQixHQUE4QixLQUFLQSxTQUFuQztBQUNIO0FBQ0QsYUFBS0YsT0FBTCxDQUFhdUIsSUFBYixDQUFrQjBDLEtBQWxCLEdBQTBCLENBQUMsS0FBS2pFLE9BQUwsQ0FBYXVCLElBQWIsQ0FBa0IwQyxLQUFsQixJQUEyQixFQUE1QixJQUFrQyxLQUFLaEUsTUFBakU7QUFDSCxLOztBQUVEOztxQkFFQWtCLEksaUJBQUtELEksRUFBTWIsSSxFQUFNQyxNLEVBQVE7QUFDckIsYUFBS04sT0FBTCxDQUFhaUMsSUFBYixDQUFrQmYsSUFBbEI7O0FBRUFBLGFBQUtmLE1BQUwsR0FBYyxFQUFFQyxPQUFPLEVBQUVDLFVBQUYsRUFBUUMsY0FBUixFQUFULEVBQTJCVCxPQUFPLEtBQUtBLEtBQXZDLEVBQWQ7QUFDQXFCLGFBQUtLLElBQUwsQ0FBVW1CLE1BQVYsR0FBbUIsS0FBS3pDLE1BQXhCO0FBQ0EsYUFBS0EsTUFBTCxHQUFjLEVBQWQ7QUFDQSxZQUFLaUIsS0FBS1csSUFBTCxLQUFjLFNBQW5CLEVBQStCLEtBQUszQixTQUFMLEdBQWlCLEtBQWpCO0FBQ2xDLEs7O3FCQUVEc0MsRyxnQkFBSXRCLEksRUFBTTBCLEksRUFBTXBDLE0sRUFBUTtBQUNwQixZQUFJRSxjQUFKO0FBQUEsWUFBV21CLGFBQVg7QUFDQSxZQUFJbEIsU0FBU0gsT0FBT0csTUFBcEI7QUFDQSxZQUFJOEMsUUFBUyxFQUFiO0FBQ0EsWUFBSVksUUFBUyxJQUFiO0FBQ0EsYUFBTSxJQUFJdEIsSUFBSSxDQUFkLEVBQWlCQSxJQUFJcEMsTUFBckIsRUFBNkJvQyxLQUFLLENBQWxDLEVBQXNDO0FBQ2xDckMsb0JBQVFGLE9BQU91QyxDQUFQLENBQVI7QUFDQWxCLG1CQUFRbkIsTUFBTSxDQUFOLENBQVI7QUFDQSxnQkFBS21CLFNBQVMsU0FBVCxJQUFzQkEsU0FBUyxPQUFULElBQW9Ca0IsTUFBTXBDLFNBQVMsQ0FBOUQsRUFBa0U7QUFDOUQwRCx3QkFBUSxLQUFSO0FBQ0gsYUFGRCxNQUVPO0FBQ0haLHlCQUFTL0MsTUFBTSxDQUFOLENBQVQ7QUFDSDtBQUNKO0FBQ0QsWUFBSyxDQUFDMkQsS0FBTixFQUFjO0FBQ1YsZ0JBQUk3QixNQUFNaEMsT0FBTzhELE1BQVAsQ0FBZSxVQUFDQyxHQUFELEVBQU14QixDQUFOO0FBQUEsdUJBQVl3QixNQUFNeEIsRUFBRSxDQUFGLENBQWxCO0FBQUEsYUFBZixFQUF1QyxFQUF2QyxDQUFWO0FBQ0E3QixpQkFBS0ssSUFBTCxDQUFVcUIsSUFBVixJQUFrQixFQUFFYSxZQUFGLEVBQVNqQixRQUFULEVBQWxCO0FBQ0g7QUFDRHRCLGFBQUswQixJQUFMLElBQWFhLEtBQWI7QUFDSCxLOztxQkFFRGxCLHdCLHFDQUF5Qi9CLE0sRUFBUTtBQUM3QixZQUFJZ0Usc0JBQUo7QUFDQSxZQUFJdkUsU0FBUyxFQUFiO0FBQ0EsZUFBUU8sT0FBT0csTUFBZixFQUF3QjtBQUNwQjZELDRCQUFnQmhFLE9BQU9BLE9BQU9HLE1BQVAsR0FBZ0IsQ0FBdkIsRUFBMEIsQ0FBMUIsQ0FBaEI7QUFDQSxnQkFBSzZELGtCQUFrQixPQUFsQixJQUNEQSxrQkFBa0IsU0FEdEIsRUFDa0M7QUFDbEN2RSxxQkFBU08sT0FBTzRCLEdBQVAsR0FBYSxDQUFiLElBQWtCbkMsTUFBM0I7QUFDSDtBQUNELGVBQU9BLE1BQVA7QUFDSCxLOztxQkFFRDRDLDBCLHVDQUEyQnJDLE0sRUFBUTtBQUMvQixZQUFJaUUsYUFBSjtBQUNBLFlBQUl4RSxTQUFTLEVBQWI7QUFDQSxlQUFRTyxPQUFPRyxNQUFmLEVBQXdCO0FBQ3BCOEQsbUJBQU9qRSxPQUFPLENBQVAsRUFBVSxDQUFWLENBQVA7QUFDQSxnQkFBS2lFLFNBQVMsT0FBVCxJQUFvQkEsU0FBUyxTQUFsQyxFQUE4QztBQUM5Q3hFLHNCQUFVTyxPQUFPbUMsS0FBUCxHQUFlLENBQWYsQ0FBVjtBQUNIO0FBQ0QsZUFBTzFDLE1BQVA7QUFDSCxLOztxQkFFRGtELGEsMEJBQWMzQyxNLEVBQVE7QUFDbEIsWUFBSWdFLHNCQUFKO0FBQ0EsWUFBSXZFLFNBQVMsRUFBYjtBQUNBLGVBQVFPLE9BQU9HLE1BQWYsRUFBd0I7QUFDcEI2RCw0QkFBZ0JoRSxPQUFPQSxPQUFPRyxNQUFQLEdBQWdCLENBQXZCLEVBQTBCLENBQTFCLENBQWhCO0FBQ0EsZ0JBQUs2RCxrQkFBa0IsT0FBdkIsRUFBaUM7QUFDakN2RSxxQkFBU08sT0FBTzRCLEdBQVAsR0FBYSxDQUFiLElBQWtCbkMsTUFBM0I7QUFDSDtBQUNELGVBQU9BLE1BQVA7QUFDSCxLOztxQkFFRGlELFUsdUJBQVcxQyxNLEVBQVFrRSxJLEVBQU07QUFDckIsWUFBSUMsU0FBUyxFQUFiO0FBQ0EsYUFBTSxJQUFJNUIsSUFBSTJCLElBQWQsRUFBb0IzQixJQUFJdkMsT0FBT0csTUFBL0IsRUFBdUNvQyxHQUF2QyxFQUE2QztBQUN6QzRCLHNCQUFVbkUsT0FBT3VDLENBQVAsRUFBVSxDQUFWLENBQVY7QUFDSDtBQUNEdkMsZUFBT29FLE1BQVAsQ0FBY0YsSUFBZCxFQUFvQmxFLE9BQU9HLE1BQVAsR0FBZ0IrRCxJQUFwQztBQUNBLGVBQU9DLE1BQVA7QUFDSCxLOztxQkFFRDdDLEssa0JBQU10QixNLEVBQVE7QUFDVixZQUFJd0IsV0FBVyxDQUFmO0FBQ0EsWUFBSXRCLGNBQUo7QUFBQSxZQUFXbUIsYUFBWDtBQUFBLFlBQWlCZ0QsYUFBakI7QUFDQSxhQUFNLElBQUk5QixJQUFJLENBQWQsRUFBaUJBLElBQUl2QyxPQUFPRyxNQUE1QixFQUFvQ29DLEdBQXBDLEVBQTBDO0FBQ3RDckMsb0JBQVFGLE9BQU91QyxDQUFQLENBQVI7QUFDQWxCLG1CQUFRbkIsTUFBTSxDQUFOLENBQVI7O0FBRUEsZ0JBQUttQixTQUFTLEdBQWQsRUFBb0I7QUFDaEJHLDRCQUFZLENBQVo7QUFDSCxhQUZELE1BRU8sSUFBS0gsU0FBUyxHQUFkLEVBQW9CO0FBQ3ZCRyw0QkFBWSxDQUFaO0FBQ0gsYUFGTSxNQUVBLElBQUtBLGFBQWEsQ0FBYixJQUFrQkgsU0FBUyxHQUFoQyxFQUFzQztBQUN6QyxvQkFBSyxDQUFDZ0QsSUFBTixFQUFhO0FBQ1QseUJBQUtDLFdBQUwsQ0FBaUJwRSxLQUFqQjtBQUNILGlCQUZELE1BRU8sSUFBS21FLEtBQUssQ0FBTCxNQUFZLE1BQVosSUFBc0JBLEtBQUssQ0FBTCxNQUFZLFFBQXZDLEVBQWtEO0FBQ3JEO0FBQ0gsaUJBRk0sTUFFQTtBQUNILDJCQUFPOUIsQ0FBUDtBQUNIO0FBQ0o7O0FBRUQ4QixtQkFBT25FLEtBQVA7QUFDSDtBQUNELGVBQU8sS0FBUDtBQUNILEs7O0FBRUQ7O3FCQUVBMkIsZSw0QkFBZ0JOLE8sRUFBUztBQUNyQixjQUFNLEtBQUtsQyxLQUFMLENBQVdrRixLQUFYLENBQWlCLGtCQUFqQixFQUFxQ2hELFFBQVEsQ0FBUixDQUFyQyxFQUFpREEsUUFBUSxDQUFSLENBQWpELENBQU47QUFDSCxLOztxQkFFRE8sVyx3QkFBWWxDLEssRUFBTztBQUNmLFlBQUlNLFFBQVEsS0FBS0YsTUFBTCxDQUFZSixLQUFaLENBQVo7QUFDQSxjQUFNLEtBQUtQLEtBQUwsQ0FBV2tGLEtBQVgsQ0FBaUIsY0FBakIsRUFBaUNyRSxNQUFNLENBQU4sQ0FBakMsRUFBMkNBLE1BQU0sQ0FBTixDQUEzQyxDQUFOO0FBQ0gsSzs7cUJBRUR5RCxlLDRCQUFnQnpELEssRUFBTztBQUNuQixjQUFNLEtBQUtiLEtBQUwsQ0FBV2tGLEtBQVgsQ0FBaUIsY0FBakIsRUFBaUNyRSxNQUFNLENBQU4sQ0FBakMsRUFBMkNBLE1BQU0sQ0FBTixDQUEzQyxDQUFOO0FBQ0gsSzs7cUJBRUQwRCxhLDRCQUFnQjtBQUNaLFlBQUl0RSxNQUFNLEtBQUtFLE9BQUwsQ0FBYUcsTUFBYixDQUFvQkMsS0FBOUI7QUFDQSxjQUFNLEtBQUtQLEtBQUwsQ0FBV2tGLEtBQVgsQ0FBaUIsZ0JBQWpCLEVBQW1DakYsSUFBSU8sSUFBdkMsRUFBNkNQLElBQUlRLE1BQWpELENBQU47QUFDSCxLOztxQkFFRHdFLFcsd0JBQVlwRSxLLEVBQU87QUFDZixjQUFNLEtBQUtiLEtBQUwsQ0FBV2tGLEtBQVgsQ0FBaUIsY0FBakIsRUFBaUNyRSxNQUFNLENBQU4sQ0FBakMsRUFBMkNBLE1BQU0sQ0FBTixDQUEzQyxDQUFOO0FBQ0gsSzs7cUJBRURrRCxhLDBCQUFjMUMsSSxFQUFNUixLLEVBQU87QUFDdkIsY0FBTSxLQUFLYixLQUFMLENBQVdrRixLQUFYLENBQWlCLHNCQUFqQixFQUF5Q3JFLE1BQU0sQ0FBTixDQUF6QyxFQUFtREEsTUFBTSxDQUFOLENBQW5ELENBQU47QUFDSCxLOztxQkFFRG9DLHVCLG9DQUF3QnRDLE0sRUFBUTtBQUM1QjtBQUNBQTtBQUNILEs7O3FCQUVEa0Qsb0IsaUNBQXFCbEQsTSxFQUFRO0FBQ3pCLFlBQUlzQixRQUFRLEtBQUtBLEtBQUwsQ0FBV3RCLE1BQVgsQ0FBWjtBQUNBLFlBQUtzQixVQUFVLEtBQWYsRUFBdUI7O0FBRXZCLFlBQUlrRCxVQUFVLENBQWQ7QUFDQSxZQUFJdEUsY0FBSjtBQUNBLGFBQU0sSUFBSTRDLElBQUl4QixRQUFRLENBQXRCLEVBQXlCd0IsS0FBSyxDQUE5QixFQUFpQ0EsR0FBakMsRUFBdUM7QUFDbkM1QyxvQkFBUUYsT0FBTzhDLENBQVAsQ0FBUjtBQUNBLGdCQUFLNUMsTUFBTSxDQUFOLE1BQWEsT0FBbEIsRUFBNEI7QUFDeEJzRSwyQkFBVyxDQUFYO0FBQ0Esb0JBQUtBLFlBQVksQ0FBakIsRUFBcUI7QUFDeEI7QUFDSjtBQUNELGNBQU0sS0FBS25GLEtBQUwsQ0FBV2tGLEtBQVgsQ0FBaUIsa0JBQWpCLEVBQXFDckUsTUFBTSxDQUFOLENBQXJDLEVBQStDQSxNQUFNLENBQU4sQ0FBL0MsQ0FBTjtBQUNILEs7Ozs7O2tCQTNkZ0JkLE0iLCJmaWxlIjoicGFyc2VyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERlY2xhcmF0aW9uIGZyb20gJy4vZGVjbGFyYXRpb24nO1xuaW1wb3J0IHRva2VuaXplciAgIGZyb20gJy4vdG9rZW5pemUnO1xuaW1wb3J0IENvbW1lbnQgICAgIGZyb20gJy4vY29tbWVudCc7XG5pbXBvcnQgQXRSdWxlICAgICAgZnJvbSAnLi9hdC1ydWxlJztcbmltcG9ydCBSb290ICAgICAgICBmcm9tICcuL3Jvb3QnO1xuaW1wb3J0IFJ1bGUgICAgICAgIGZyb20gJy4vcnVsZSc7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIFBhcnNlciB7XG5cbiAgICBjb25zdHJ1Y3RvcihpbnB1dCkge1xuICAgICAgICB0aGlzLmlucHV0ID0gaW5wdXQ7XG5cbiAgICAgICAgdGhpcy5wb3MgICAgICAgPSAwO1xuICAgICAgICB0aGlzLnJvb3QgICAgICA9IG5ldyBSb290KCk7XG4gICAgICAgIHRoaXMuY3VycmVudCAgID0gdGhpcy5yb290O1xuICAgICAgICB0aGlzLnNwYWNlcyAgICA9ICcnO1xuICAgICAgICB0aGlzLnNlbWljb2xvbiA9IGZhbHNlO1xuXG4gICAgICAgIHRoaXMucm9vdC5zb3VyY2UgPSB7IGlucHV0LCBzdGFydDogeyBsaW5lOiAxLCBjb2x1bW46IDEgfSB9O1xuICAgIH1cblxuICAgIHRva2VuaXplKCkge1xuICAgICAgICB0aGlzLnRva2VucyA9IHRva2VuaXplcih0aGlzLmlucHV0KTtcbiAgICB9XG5cbiAgICBsb29wKCkge1xuICAgICAgICBsZXQgdG9rZW47XG4gICAgICAgIHdoaWxlICggdGhpcy5wb3MgPCB0aGlzLnRva2Vucy5sZW5ndGggKSB7XG4gICAgICAgICAgICB0b2tlbiA9IHRoaXMudG9rZW5zW3RoaXMucG9zXTtcblxuICAgICAgICAgICAgc3dpdGNoICggdG9rZW5bMF0gKSB7XG5cbiAgICAgICAgICAgIGNhc2UgJ3NwYWNlJzpcbiAgICAgICAgICAgIGNhc2UgJzsnOlxuICAgICAgICAgICAgICAgIHRoaXMuc3BhY2VzICs9IHRva2VuWzFdO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICd9JzpcbiAgICAgICAgICAgICAgICB0aGlzLmVuZCh0b2tlbik7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ2NvbW1lbnQnOlxuICAgICAgICAgICAgICAgIHRoaXMuY29tbWVudCh0b2tlbik7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ2F0LXdvcmQnOlxuICAgICAgICAgICAgICAgIHRoaXMuYXRydWxlKHRva2VuKTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAneyc6XG4gICAgICAgICAgICAgICAgdGhpcy5lbXB0eVJ1bGUodG9rZW4pO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHRoaXMub3RoZXIoKTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5wb3MgKz0gMTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLmVuZEZpbGUoKTtcbiAgICB9XG5cbiAgICBjb21tZW50KHRva2VuKSB7XG4gICAgICAgIGxldCBub2RlID0gbmV3IENvbW1lbnQoKTtcbiAgICAgICAgdGhpcy5pbml0KG5vZGUsIHRva2VuWzJdLCB0b2tlblszXSk7XG4gICAgICAgIG5vZGUuc291cmNlLmVuZCA9IHsgbGluZTogdG9rZW5bNF0sIGNvbHVtbjogdG9rZW5bNV0gfTtcblxuICAgICAgICBsZXQgdGV4dCA9IHRva2VuWzFdLnNsaWNlKDIsIC0yKTtcbiAgICAgICAgaWYgKCAvXlxccyokLy50ZXN0KHRleHQpICkge1xuICAgICAgICAgICAgbm9kZS50ZXh0ICAgICAgID0gJyc7XG4gICAgICAgICAgICBub2RlLnJhd3MubGVmdCAgPSB0ZXh0O1xuICAgICAgICAgICAgbm9kZS5yYXdzLnJpZ2h0ID0gJyc7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsZXQgbWF0Y2ggPSB0ZXh0Lm1hdGNoKC9eKFxccyopKFteXSpbXlxcc10pKFxccyopJC8pO1xuICAgICAgICAgICAgbm9kZS50ZXh0ICAgICAgID0gbWF0Y2hbMl07XG4gICAgICAgICAgICBub2RlLnJhd3MubGVmdCAgPSBtYXRjaFsxXTtcbiAgICAgICAgICAgIG5vZGUucmF3cy5yaWdodCA9IG1hdGNoWzNdO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZW1wdHlSdWxlKHRva2VuKSB7XG4gICAgICAgIGxldCBub2RlID0gbmV3IFJ1bGUoKTtcbiAgICAgICAgdGhpcy5pbml0KG5vZGUsIHRva2VuWzJdLCB0b2tlblszXSk7XG4gICAgICAgIG5vZGUuc2VsZWN0b3IgPSAnJztcbiAgICAgICAgbm9kZS5yYXdzLmJldHdlZW4gPSAnJztcbiAgICAgICAgdGhpcy5jdXJyZW50ID0gbm9kZTtcbiAgICB9XG5cbiAgICBvdGhlcigpIHtcbiAgICAgICAgbGV0IHRva2VuO1xuICAgICAgICBsZXQgZW5kICAgICAgPSBmYWxzZTtcbiAgICAgICAgbGV0IHR5cGUgICAgID0gbnVsbDtcbiAgICAgICAgbGV0IGNvbG9uICAgID0gZmFsc2U7XG4gICAgICAgIGxldCBicmFja2V0ICA9IG51bGw7XG4gICAgICAgIGxldCBicmFja2V0cyA9IFtdO1xuXG4gICAgICAgIGxldCBzdGFydCA9IHRoaXMucG9zO1xuICAgICAgICB3aGlsZSAoIHRoaXMucG9zIDwgdGhpcy50b2tlbnMubGVuZ3RoICkge1xuICAgICAgICAgICAgdG9rZW4gPSB0aGlzLnRva2Vuc1t0aGlzLnBvc107XG4gICAgICAgICAgICB0eXBlICA9IHRva2VuWzBdO1xuXG4gICAgICAgICAgICBpZiAoIHR5cGUgPT09ICcoJyB8fCB0eXBlID09PSAnWycgKSB7XG4gICAgICAgICAgICAgICAgaWYgKCAhYnJhY2tldCApIGJyYWNrZXQgPSB0b2tlbjtcbiAgICAgICAgICAgICAgICBicmFja2V0cy5wdXNoKHR5cGUgPT09ICcoJyA/ICcpJyA6ICddJyk7XG5cbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIGJyYWNrZXRzLmxlbmd0aCA9PT0gMCApIHtcbiAgICAgICAgICAgICAgICBpZiAoIHR5cGUgPT09ICc7JyApIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCBjb2xvbiApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZGVjbCh0aGlzLnRva2Vucy5zbGljZShzdGFydCwgdGhpcy5wb3MgKyAxKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmICggdHlwZSA9PT0gJ3snICkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnJ1bGUodGhpcy50b2tlbnMuc2xpY2Uoc3RhcnQsIHRoaXMucG9zICsgMSkpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG5cbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCB0eXBlID09PSAnfScgKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucG9zIC09IDE7XG4gICAgICAgICAgICAgICAgICAgIGVuZCA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmICggdHlwZSA9PT0gJzonICkge1xuICAgICAgICAgICAgICAgICAgICBjb2xvbiA9IHRydWU7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB9IGVsc2UgaWYgKCB0eXBlID09PSBicmFja2V0c1ticmFja2V0cy5sZW5ndGggLSAxXSApIHtcbiAgICAgICAgICAgICAgICBicmFja2V0cy5wb3AoKTtcbiAgICAgICAgICAgICAgICBpZiAoIGJyYWNrZXRzLmxlbmd0aCA9PT0gMCApIGJyYWNrZXQgPSBudWxsO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLnBvcyArPSAxO1xuICAgICAgICB9XG4gICAgICAgIGlmICggdGhpcy5wb3MgPT09IHRoaXMudG9rZW5zLmxlbmd0aCApIHtcbiAgICAgICAgICAgIHRoaXMucG9zIC09IDE7XG4gICAgICAgICAgICBlbmQgPSB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBicmFja2V0cy5sZW5ndGggPiAwICkgdGhpcy51bmNsb3NlZEJyYWNrZXQoYnJhY2tldCk7XG5cbiAgICAgICAgaWYgKCBlbmQgJiYgY29sb24gKSB7XG4gICAgICAgICAgICB3aGlsZSAoIHRoaXMucG9zID4gc3RhcnQgKSB7XG4gICAgICAgICAgICAgICAgdG9rZW4gPSB0aGlzLnRva2Vuc1t0aGlzLnBvc11bMF07XG4gICAgICAgICAgICAgICAgaWYgKCB0b2tlbiAhPT0gJ3NwYWNlJyAmJiB0b2tlbiAhPT0gJ2NvbW1lbnQnICkgYnJlYWs7XG4gICAgICAgICAgICAgICAgdGhpcy5wb3MgLT0gMTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuZGVjbCh0aGlzLnRva2Vucy5zbGljZShzdGFydCwgdGhpcy5wb3MgKyAxKSk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnVua25vd25Xb3JkKHN0YXJ0KTtcbiAgICB9XG5cbiAgICBydWxlKHRva2Vucykge1xuICAgICAgICB0b2tlbnMucG9wKCk7XG5cbiAgICAgICAgbGV0IG5vZGUgPSBuZXcgUnVsZSgpO1xuICAgICAgICB0aGlzLmluaXQobm9kZSwgdG9rZW5zWzBdWzJdLCB0b2tlbnNbMF1bM10pO1xuXG4gICAgICAgIG5vZGUucmF3cy5iZXR3ZWVuID0gdGhpcy5zcGFjZXNBbmRDb21tZW50c0Zyb21FbmQodG9rZW5zKTtcbiAgICAgICAgdGhpcy5yYXcobm9kZSwgJ3NlbGVjdG9yJywgdG9rZW5zKTtcbiAgICAgICAgdGhpcy5jdXJyZW50ID0gbm9kZTtcbiAgICB9XG5cbiAgICBkZWNsKHRva2Vucykge1xuICAgICAgICBsZXQgbm9kZSA9IG5ldyBEZWNsYXJhdGlvbigpO1xuICAgICAgICB0aGlzLmluaXQobm9kZSk7XG5cbiAgICAgICAgbGV0IGxhc3QgPSB0b2tlbnNbdG9rZW5zLmxlbmd0aCAtIDFdO1xuICAgICAgICBpZiAoIGxhc3RbMF0gPT09ICc7JyApIHtcbiAgICAgICAgICAgIHRoaXMuc2VtaWNvbG9uID0gdHJ1ZTtcbiAgICAgICAgICAgIHRva2Vucy5wb3AoKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoIGxhc3RbNF0gKSB7XG4gICAgICAgICAgICBub2RlLnNvdXJjZS5lbmQgPSB7IGxpbmU6IGxhc3RbNF0sIGNvbHVtbjogbGFzdFs1XSB9O1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbm9kZS5zb3VyY2UuZW5kID0geyBsaW5lOiBsYXN0WzJdLCBjb2x1bW46IGxhc3RbM10gfTtcbiAgICAgICAgfVxuXG4gICAgICAgIHdoaWxlICggdG9rZW5zWzBdWzBdICE9PSAnd29yZCcgKSB7XG4gICAgICAgICAgICBub2RlLnJhd3MuYmVmb3JlICs9IHRva2Vucy5zaGlmdCgpWzFdO1xuICAgICAgICB9XG4gICAgICAgIG5vZGUuc291cmNlLnN0YXJ0ID0geyBsaW5lOiB0b2tlbnNbMF1bMl0sIGNvbHVtbjogdG9rZW5zWzBdWzNdIH07XG5cbiAgICAgICAgbm9kZS5wcm9wID0gJyc7XG4gICAgICAgIHdoaWxlICggdG9rZW5zLmxlbmd0aCApIHtcbiAgICAgICAgICAgIGxldCB0eXBlID0gdG9rZW5zWzBdWzBdO1xuICAgICAgICAgICAgaWYgKCB0eXBlID09PSAnOicgfHwgdHlwZSA9PT0gJ3NwYWNlJyB8fCB0eXBlID09PSAnY29tbWVudCcgKSB7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBub2RlLnByb3AgKz0gdG9rZW5zLnNoaWZ0KClbMV07XG4gICAgICAgIH1cblxuICAgICAgICBub2RlLnJhd3MuYmV0d2VlbiA9ICcnO1xuXG4gICAgICAgIGxldCB0b2tlbjtcbiAgICAgICAgd2hpbGUgKCB0b2tlbnMubGVuZ3RoICkge1xuICAgICAgICAgICAgdG9rZW4gPSB0b2tlbnMuc2hpZnQoKTtcblxuICAgICAgICAgICAgaWYgKCB0b2tlblswXSA9PT0gJzonICkge1xuICAgICAgICAgICAgICAgIG5vZGUucmF3cy5iZXR3ZWVuICs9IHRva2VuWzFdO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBub2RlLnJhd3MuYmV0d2VlbiArPSB0b2tlblsxXTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggbm9kZS5wcm9wWzBdID09PSAnXycgfHwgbm9kZS5wcm9wWzBdID09PSAnKicgKSB7XG4gICAgICAgICAgICBub2RlLnJhd3MuYmVmb3JlICs9IG5vZGUucHJvcFswXTtcbiAgICAgICAgICAgIG5vZGUucHJvcCA9IG5vZGUucHJvcC5zbGljZSgxKTtcbiAgICAgICAgfVxuICAgICAgICBub2RlLnJhd3MuYmV0d2VlbiArPSB0aGlzLnNwYWNlc0FuZENvbW1lbnRzRnJvbVN0YXJ0KHRva2Vucyk7XG4gICAgICAgIHRoaXMucHJlY2hlY2tNaXNzZWRTZW1pY29sb24odG9rZW5zKTtcblxuICAgICAgICBmb3IgKCBsZXQgaSA9IHRva2Vucy5sZW5ndGggLSAxOyBpID4gMDsgaS0tICkge1xuICAgICAgICAgICAgdG9rZW4gPSB0b2tlbnNbaV07XG4gICAgICAgICAgICBpZiAoIHRva2VuWzFdID09PSAnIWltcG9ydGFudCcgKSB7XG4gICAgICAgICAgICAgICAgbm9kZS5pbXBvcnRhbnQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIGxldCBzdHJpbmcgPSB0aGlzLnN0cmluZ0Zyb20odG9rZW5zLCBpKTtcbiAgICAgICAgICAgICAgICBzdHJpbmcgPSB0aGlzLnNwYWNlc0Zyb21FbmQodG9rZW5zKSArIHN0cmluZztcbiAgICAgICAgICAgICAgICBpZiAoIHN0cmluZyAhPT0gJyAhaW1wb3J0YW50JyApIG5vZGUucmF3cy5pbXBvcnRhbnQgPSBzdHJpbmc7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIH0gZWxzZSBpZiAodG9rZW5bMV0gPT09ICdpbXBvcnRhbnQnKSB7XG4gICAgICAgICAgICAgICAgbGV0IGNhY2hlID0gdG9rZW5zLnNsaWNlKDApO1xuICAgICAgICAgICAgICAgIGxldCBzdHIgICA9ICcnO1xuICAgICAgICAgICAgICAgIGZvciAoIGxldCBqID0gaTsgaiA+IDA7IGotLSApIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHR5cGUgPSBjYWNoZVtqXVswXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCBzdHIudHJpbSgpLmluZGV4T2YoJyEnKSA9PT0gMCAmJiB0eXBlICE9PSAnc3BhY2UnICkge1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgc3RyID0gY2FjaGUucG9wKClbMV0gKyBzdHI7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmICggc3RyLnRyaW0oKS5pbmRleE9mKCchJykgPT09IDAgKSB7XG4gICAgICAgICAgICAgICAgICAgIG5vZGUuaW1wb3J0YW50ID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgbm9kZS5yYXdzLmltcG9ydGFudCA9IHN0cjtcbiAgICAgICAgICAgICAgICAgICAgdG9rZW5zID0gY2FjaGU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoIHRva2VuWzBdICE9PSAnc3BhY2UnICYmIHRva2VuWzBdICE9PSAnY29tbWVudCcgKSB7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnJhdyhub2RlLCAndmFsdWUnLCB0b2tlbnMpO1xuXG4gICAgICAgIGlmICggbm9kZS52YWx1ZS5pbmRleE9mKCc6JykgIT09IC0xICkgdGhpcy5jaGVja01pc3NlZFNlbWljb2xvbih0b2tlbnMpO1xuICAgIH1cblxuICAgIGF0cnVsZSh0b2tlbikge1xuICAgICAgICBsZXQgbm9kZSAgPSBuZXcgQXRSdWxlKCk7XG4gICAgICAgIG5vZGUubmFtZSA9IHRva2VuWzFdLnNsaWNlKDEpO1xuICAgICAgICBpZiAoIG5vZGUubmFtZSA9PT0gJycgKSB7XG4gICAgICAgICAgICB0aGlzLnVubmFtZWRBdHJ1bGUobm9kZSwgdG9rZW4pO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuaW5pdChub2RlLCB0b2tlblsyXSwgdG9rZW5bM10pO1xuXG4gICAgICAgIGxldCBsYXN0ICAgPSBmYWxzZTtcbiAgICAgICAgbGV0IG9wZW4gICA9IGZhbHNlO1xuICAgICAgICBsZXQgcGFyYW1zID0gW107XG5cbiAgICAgICAgdGhpcy5wb3MgKz0gMTtcbiAgICAgICAgd2hpbGUgKCB0aGlzLnBvcyA8IHRoaXMudG9rZW5zLmxlbmd0aCApIHtcbiAgICAgICAgICAgIHRva2VuID0gdGhpcy50b2tlbnNbdGhpcy5wb3NdO1xuXG4gICAgICAgICAgICBpZiAoIHRva2VuWzBdID09PSAnOycgKSB7XG4gICAgICAgICAgICAgICAgbm9kZS5zb3VyY2UuZW5kID0geyBsaW5lOiB0b2tlblsyXSwgY29sdW1uOiB0b2tlblszXSB9O1xuICAgICAgICAgICAgICAgIHRoaXMuc2VtaWNvbG9uID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIHRva2VuWzBdID09PSAneycgKSB7XG4gICAgICAgICAgICAgICAgb3BlbiA9IHRydWU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCB0b2tlblswXSA9PT0gJ30nKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5lbmQodG9rZW4pO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBwYXJhbXMucHVzaCh0b2tlbik7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMucG9zICs9IDE7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCB0aGlzLnBvcyA9PT0gdGhpcy50b2tlbnMubGVuZ3RoICkge1xuICAgICAgICAgICAgbGFzdCA9IHRydWU7XG4gICAgICAgIH1cblxuICAgICAgICBub2RlLnJhd3MuYmV0d2VlbiA9IHRoaXMuc3BhY2VzQW5kQ29tbWVudHNGcm9tRW5kKHBhcmFtcyk7XG4gICAgICAgIGlmICggcGFyYW1zLmxlbmd0aCApIHtcbiAgICAgICAgICAgIG5vZGUucmF3cy5hZnRlck5hbWUgPSB0aGlzLnNwYWNlc0FuZENvbW1lbnRzRnJvbVN0YXJ0KHBhcmFtcyk7XG4gICAgICAgICAgICB0aGlzLnJhdyhub2RlLCAncGFyYW1zJywgcGFyYW1zKTtcbiAgICAgICAgICAgIGlmICggbGFzdCApIHtcbiAgICAgICAgICAgICAgICB0b2tlbiA9IHBhcmFtc1twYXJhbXMubGVuZ3RoIC0gMV07XG4gICAgICAgICAgICAgICAgbm9kZS5zb3VyY2UuZW5kICAgPSB7IGxpbmU6IHRva2VuWzRdLCBjb2x1bW46IHRva2VuWzVdIH07XG4gICAgICAgICAgICAgICAgdGhpcy5zcGFjZXMgICAgICAgPSBub2RlLnJhd3MuYmV0d2VlbjtcbiAgICAgICAgICAgICAgICBub2RlLnJhd3MuYmV0d2VlbiA9ICcnO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbm9kZS5yYXdzLmFmdGVyTmFtZSA9ICcnO1xuICAgICAgICAgICAgbm9kZS5wYXJhbXMgICAgICAgICA9ICcnO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBvcGVuICkge1xuICAgICAgICAgICAgbm9kZS5ub2RlcyAgID0gW107XG4gICAgICAgICAgICB0aGlzLmN1cnJlbnQgPSBub2RlO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZW5kKHRva2VuKSB7XG4gICAgICAgIGlmICggdGhpcy5jdXJyZW50Lm5vZGVzICYmIHRoaXMuY3VycmVudC5ub2Rlcy5sZW5ndGggKSB7XG4gICAgICAgICAgICB0aGlzLmN1cnJlbnQucmF3cy5zZW1pY29sb24gPSB0aGlzLnNlbWljb2xvbjtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnNlbWljb2xvbiA9IGZhbHNlO1xuXG4gICAgICAgIHRoaXMuY3VycmVudC5yYXdzLmFmdGVyID0gKHRoaXMuY3VycmVudC5yYXdzLmFmdGVyIHx8ICcnKSArIHRoaXMuc3BhY2VzO1xuICAgICAgICB0aGlzLnNwYWNlcyA9ICcnO1xuXG4gICAgICAgIGlmICggdGhpcy5jdXJyZW50LnBhcmVudCApIHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudC5zb3VyY2UuZW5kID0geyBsaW5lOiB0b2tlblsyXSwgY29sdW1uOiB0b2tlblszXSB9O1xuICAgICAgICAgICAgdGhpcy5jdXJyZW50ID0gdGhpcy5jdXJyZW50LnBhcmVudDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMudW5leHBlY3RlZENsb3NlKHRva2VuKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGVuZEZpbGUoKSB7XG4gICAgICAgIGlmICggdGhpcy5jdXJyZW50LnBhcmVudCApIHRoaXMudW5jbG9zZWRCbG9jaygpO1xuICAgICAgICBpZiAoIHRoaXMuY3VycmVudC5ub2RlcyAmJiB0aGlzLmN1cnJlbnQubm9kZXMubGVuZ3RoICkge1xuICAgICAgICAgICAgdGhpcy5jdXJyZW50LnJhd3Muc2VtaWNvbG9uID0gdGhpcy5zZW1pY29sb247XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5jdXJyZW50LnJhd3MuYWZ0ZXIgPSAodGhpcy5jdXJyZW50LnJhd3MuYWZ0ZXIgfHwgJycpICsgdGhpcy5zcGFjZXM7XG4gICAgfVxuXG4gICAgLy8gSGVscGVyc1xuXG4gICAgaW5pdChub2RlLCBsaW5lLCBjb2x1bW4pIHtcbiAgICAgICAgdGhpcy5jdXJyZW50LnB1c2gobm9kZSk7XG5cbiAgICAgICAgbm9kZS5zb3VyY2UgPSB7IHN0YXJ0OiB7IGxpbmUsIGNvbHVtbiB9LCBpbnB1dDogdGhpcy5pbnB1dCB9O1xuICAgICAgICBub2RlLnJhd3MuYmVmb3JlID0gdGhpcy5zcGFjZXM7XG4gICAgICAgIHRoaXMuc3BhY2VzID0gJyc7XG4gICAgICAgIGlmICggbm9kZS50eXBlICE9PSAnY29tbWVudCcgKSB0aGlzLnNlbWljb2xvbiA9IGZhbHNlO1xuICAgIH1cblxuICAgIHJhdyhub2RlLCBwcm9wLCB0b2tlbnMpIHtcbiAgICAgICAgbGV0IHRva2VuLCB0eXBlO1xuICAgICAgICBsZXQgbGVuZ3RoID0gdG9rZW5zLmxlbmd0aDtcbiAgICAgICAgbGV0IHZhbHVlICA9ICcnO1xuICAgICAgICBsZXQgY2xlYW4gID0gdHJ1ZTtcbiAgICAgICAgZm9yICggbGV0IGkgPSAwOyBpIDwgbGVuZ3RoOyBpICs9IDEgKSB7XG4gICAgICAgICAgICB0b2tlbiA9IHRva2Vuc1tpXTtcbiAgICAgICAgICAgIHR5cGUgID0gdG9rZW5bMF07XG4gICAgICAgICAgICBpZiAoIHR5cGUgPT09ICdjb21tZW50JyB8fCB0eXBlID09PSAnc3BhY2UnICYmIGkgPT09IGxlbmd0aCAtIDEgKSB7XG4gICAgICAgICAgICAgICAgY2xlYW4gPSBmYWxzZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdmFsdWUgKz0gdG9rZW5bMV07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCAhY2xlYW4gKSB7XG4gICAgICAgICAgICBsZXQgcmF3ID0gdG9rZW5zLnJlZHVjZSggKGFsbCwgaSkgPT4gYWxsICsgaVsxXSwgJycpO1xuICAgICAgICAgICAgbm9kZS5yYXdzW3Byb3BdID0geyB2YWx1ZSwgcmF3IH07XG4gICAgICAgIH1cbiAgICAgICAgbm9kZVtwcm9wXSA9IHZhbHVlO1xuICAgIH1cblxuICAgIHNwYWNlc0FuZENvbW1lbnRzRnJvbUVuZCh0b2tlbnMpIHtcbiAgICAgICAgbGV0IGxhc3RUb2tlblR5cGU7XG4gICAgICAgIGxldCBzcGFjZXMgPSAnJztcbiAgICAgICAgd2hpbGUgKCB0b2tlbnMubGVuZ3RoICkge1xuICAgICAgICAgICAgbGFzdFRva2VuVHlwZSA9IHRva2Vuc1t0b2tlbnMubGVuZ3RoIC0gMV1bMF07XG4gICAgICAgICAgICBpZiAoIGxhc3RUb2tlblR5cGUgIT09ICdzcGFjZScgJiZcbiAgICAgICAgICAgICAgICBsYXN0VG9rZW5UeXBlICE9PSAnY29tbWVudCcgKSBicmVhaztcbiAgICAgICAgICAgIHNwYWNlcyA9IHRva2Vucy5wb3AoKVsxXSArIHNwYWNlcztcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gc3BhY2VzO1xuICAgIH1cblxuICAgIHNwYWNlc0FuZENvbW1lbnRzRnJvbVN0YXJ0KHRva2Vucykge1xuICAgICAgICBsZXQgbmV4dDtcbiAgICAgICAgbGV0IHNwYWNlcyA9ICcnO1xuICAgICAgICB3aGlsZSAoIHRva2Vucy5sZW5ndGggKSB7XG4gICAgICAgICAgICBuZXh0ID0gdG9rZW5zWzBdWzBdO1xuICAgICAgICAgICAgaWYgKCBuZXh0ICE9PSAnc3BhY2UnICYmIG5leHQgIT09ICdjb21tZW50JyApIGJyZWFrO1xuICAgICAgICAgICAgc3BhY2VzICs9IHRva2Vucy5zaGlmdCgpWzFdO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBzcGFjZXM7XG4gICAgfVxuXG4gICAgc3BhY2VzRnJvbUVuZCh0b2tlbnMpIHtcbiAgICAgICAgbGV0IGxhc3RUb2tlblR5cGU7XG4gICAgICAgIGxldCBzcGFjZXMgPSAnJztcbiAgICAgICAgd2hpbGUgKCB0b2tlbnMubGVuZ3RoICkge1xuICAgICAgICAgICAgbGFzdFRva2VuVHlwZSA9IHRva2Vuc1t0b2tlbnMubGVuZ3RoIC0gMV1bMF07XG4gICAgICAgICAgICBpZiAoIGxhc3RUb2tlblR5cGUgIT09ICdzcGFjZScgKSBicmVhaztcbiAgICAgICAgICAgIHNwYWNlcyA9IHRva2Vucy5wb3AoKVsxXSArIHNwYWNlcztcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gc3BhY2VzO1xuICAgIH1cblxuICAgIHN0cmluZ0Zyb20odG9rZW5zLCBmcm9tKSB7XG4gICAgICAgIGxldCByZXN1bHQgPSAnJztcbiAgICAgICAgZm9yICggbGV0IGkgPSBmcm9tOyBpIDwgdG9rZW5zLmxlbmd0aDsgaSsrICkge1xuICAgICAgICAgICAgcmVzdWx0ICs9IHRva2Vuc1tpXVsxXTtcbiAgICAgICAgfVxuICAgICAgICB0b2tlbnMuc3BsaWNlKGZyb20sIHRva2Vucy5sZW5ndGggLSBmcm9tKTtcbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbiAgICBjb2xvbih0b2tlbnMpIHtcbiAgICAgICAgbGV0IGJyYWNrZXRzID0gMDtcbiAgICAgICAgbGV0IHRva2VuLCB0eXBlLCBwcmV2O1xuICAgICAgICBmb3IgKCBsZXQgaSA9IDA7IGkgPCB0b2tlbnMubGVuZ3RoOyBpKysgKSB7XG4gICAgICAgICAgICB0b2tlbiA9IHRva2Vuc1tpXTtcbiAgICAgICAgICAgIHR5cGUgID0gdG9rZW5bMF07XG5cbiAgICAgICAgICAgIGlmICggdHlwZSA9PT0gJygnICkge1xuICAgICAgICAgICAgICAgIGJyYWNrZXRzICs9IDE7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCB0eXBlID09PSAnKScgKSB7XG4gICAgICAgICAgICAgICAgYnJhY2tldHMgLT0gMTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIGJyYWNrZXRzID09PSAwICYmIHR5cGUgPT09ICc6JyApIHtcbiAgICAgICAgICAgICAgICBpZiAoICFwcmV2ICkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmRvdWJsZUNvbG9uKHRva2VuKTtcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCBwcmV2WzBdID09PSAnd29yZCcgJiYgcHJldlsxXSA9PT0gJ3Byb2dpZCcgKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcHJldiA9IHRva2VuO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICAvLyBFcnJvcnNcblxuICAgIHVuY2xvc2VkQnJhY2tldChicmFja2V0KSB7XG4gICAgICAgIHRocm93IHRoaXMuaW5wdXQuZXJyb3IoJ1VuY2xvc2VkIGJyYWNrZXQnLCBicmFja2V0WzJdLCBicmFja2V0WzNdKTtcbiAgICB9XG5cbiAgICB1bmtub3duV29yZChzdGFydCkge1xuICAgICAgICBsZXQgdG9rZW4gPSB0aGlzLnRva2Vuc1tzdGFydF07XG4gICAgICAgIHRocm93IHRoaXMuaW5wdXQuZXJyb3IoJ1Vua25vd24gd29yZCcsIHRva2VuWzJdLCB0b2tlblszXSk7XG4gICAgfVxuXG4gICAgdW5leHBlY3RlZENsb3NlKHRva2VuKSB7XG4gICAgICAgIHRocm93IHRoaXMuaW5wdXQuZXJyb3IoJ1VuZXhwZWN0ZWQgfScsIHRva2VuWzJdLCB0b2tlblszXSk7XG4gICAgfVxuXG4gICAgdW5jbG9zZWRCbG9jaygpIHtcbiAgICAgICAgbGV0IHBvcyA9IHRoaXMuY3VycmVudC5zb3VyY2Uuc3RhcnQ7XG4gICAgICAgIHRocm93IHRoaXMuaW5wdXQuZXJyb3IoJ1VuY2xvc2VkIGJsb2NrJywgcG9zLmxpbmUsIHBvcy5jb2x1bW4pO1xuICAgIH1cblxuICAgIGRvdWJsZUNvbG9uKHRva2VuKSB7XG4gICAgICAgIHRocm93IHRoaXMuaW5wdXQuZXJyb3IoJ0RvdWJsZSBjb2xvbicsIHRva2VuWzJdLCB0b2tlblszXSk7XG4gICAgfVxuXG4gICAgdW5uYW1lZEF0cnVsZShub2RlLCB0b2tlbikge1xuICAgICAgICB0aHJvdyB0aGlzLmlucHV0LmVycm9yKCdBdC1ydWxlIHdpdGhvdXQgbmFtZScsIHRva2VuWzJdLCB0b2tlblszXSk7XG4gICAgfVxuXG4gICAgcHJlY2hlY2tNaXNzZWRTZW1pY29sb24odG9rZW5zKSB7XG4gICAgICAgIC8vIEhvb2sgZm9yIFNhZmUgUGFyc2VyXG4gICAgICAgIHRva2VucztcbiAgICB9XG5cbiAgICBjaGVja01pc3NlZFNlbWljb2xvbih0b2tlbnMpIHtcbiAgICAgICAgbGV0IGNvbG9uID0gdGhpcy5jb2xvbih0b2tlbnMpO1xuICAgICAgICBpZiAoIGNvbG9uID09PSBmYWxzZSApIHJldHVybjtcblxuICAgICAgICBsZXQgZm91bmRlZCA9IDA7XG4gICAgICAgIGxldCB0b2tlbjtcbiAgICAgICAgZm9yICggbGV0IGogPSBjb2xvbiAtIDE7IGogPj0gMDsgai0tICkge1xuICAgICAgICAgICAgdG9rZW4gPSB0b2tlbnNbal07XG4gICAgICAgICAgICBpZiAoIHRva2VuWzBdICE9PSAnc3BhY2UnICkge1xuICAgICAgICAgICAgICAgIGZvdW5kZWQgKz0gMTtcbiAgICAgICAgICAgICAgICBpZiAoIGZvdW5kZWQgPT09IDIgKSBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0aHJvdyB0aGlzLmlucHV0LmVycm9yKCdNaXNzZWQgc2VtaWNvbG9uJywgdG9rZW5bMl0sIHRva2VuWzNdKTtcbiAgICB9XG5cbn1cbiJdfQ== diff --git a/node_modules/postcss/lib/postcss.d.ts b/node_modules/postcss/lib/postcss.d.ts deleted file mode 100644 index 83e14d0..0000000 --- a/node_modules/postcss/lib/postcss.d.ts +++ /dev/null @@ -1,1307 +0,0 @@ -declare module "postcss" { - /** - * @param plugins Can also be included with the Processor#use method. - * @returns A processor that will apply plugins as CSS processors. - */ - function postcss(plugins?: postcss.AcceptedPlugin[]): postcss.Processor; - function postcss(...plugins: postcss.AcceptedPlugin[]): postcss.Processor; - namespace postcss { - type AcceptedPlugin = Plugin | Transformer | { - postcss: TransformCallback | Processor; - } | Processor; - /** - * Creates a PostCSS plugin with a standard API. - * @param name Plugin name. Same as in name property in package.json. It will - * be saved in plugin.postcssPlugin property. - * @param initializer Will receive plugin options and should return functions - * to modify nodes in input CSS. - */ - function plugin(name: string, initializer: PluginInitializer): Plugin; - interface Plugin extends Transformer { - (opts?: T): Transformer; - postcss: Transformer; - process: (css: string | { - toString(): string; - } | Result, opts?: any) => LazyResult; - } - interface Transformer extends TransformCallback { - postcssPlugin?: string; - postcssVersion?: string; - } - interface TransformCallback { - /** - * @returns Asynchronous plugins should return a promise. - */ - (root: Root, result?: Result): void | Function | any; - } - interface PluginInitializer { - (pluginOptions?: T): Transformer; - } - /** - * Contains helpers for working with vendor prefixes. - */ - export namespace vendor { - /** - * @returns The vendor prefix extracted from the input string. - */ - function prefix(prop: string): string; - /** - * @returns The input string stripped of its vendor prefix. - */ - function unprefixed(prop: string): string; - } - export class Stringifier { - builder: Stringifier.Builder; - constructor(builder?: Stringifier.Builder); - stringify(node: Node, semicolon?: boolean): void; - root(node: any): void; - comment(node: any): void; - decl(node: any, semicolon: any): void; - rule(node: any): void; - atrule(node: any, semicolon: any): void; - body(node: any): void; - block(node: any, start: any): void; - raw(node: Node, own: string, detect?: string): any; - rawSemicolon(root: any): any; - rawEmptyBody(root: any): any; - rawIndent(root: any): any; - rawBeforeComment(root: any, node: any): any; - rawBeforeDecl(root: any, node: any): any; - rawBeforeRule(root: any): any; - rawBeforeClose(root: any): any; - rawBeforeOpen(root: any): any; - rawColon(root: any): any; - beforeAfter(node: any, detect: any): any; - rawValue(node: any, prop: any): any; - } - export namespace Stringifier { - interface Builder { - (str: string, node?: Node, str2?: string): void; - } - } - /** - * Default function to convert a node tree into a CSS string. - */ - function stringify(node: Node, builder: Stringifier.Builder): void; - /** - * Parses source CSS. - * @param css The CSS to parse. - * @param options - * @returns {} A new Root node, which contains the source CSS nodes. - */ - function parse(css: string | { - toString(): string; - } | LazyResult | Result, options?: { - from?: string; - map?: postcss.SourceMapOptions; - }): Root; - /** - * Contains helpers for safely splitting lists of CSS values, preserving - * parentheses and quotes. - */ - export namespace list { - /** - * Safely splits space-separated values (such as those for background, - * border-radius and other shorthand properties). - */ - function space(str: string): string[]; - /** - * Safely splits comma-separated values (such as those for transition-* and - * background properties). - */ - function comma(str: string): string[]; - } - /** - * Creates a new Comment node. - * @param defaults Properties for the new Comment node. - * @returns The new node. - */ - function comment(defaults?: CommentNewProps): Comment; - /** - * Creates a new AtRule node. - * @param defaults Properties for the new AtRule node. - * @returns The new node. - */ - function atRule(defaults?: AtRuleNewProps): AtRule; - /** - * Creates a new Declaration node. - * @param defaults Properties for the new Declaration node. - * @returns The new node. - */ - function decl(defaults?: DeclarationNewProps): Declaration; - /** - * Creates a new Rule node. - * @param defaults Properties for the new Rule node. - * @returns The new node. - */ - function rule(defaults?: RuleNewProps): Rule; - /** - * Creates a new Root node. - * @param defaults Properties for the new Root node. - * @returns The new node. - */ - function root(defaults?: Object): Root; - interface SourceMapOptions { - /** - * Indicates that the source map should be embedded in the output CSS as a - * Base64-encoded comment. By default, it is true. But if all previous maps - * are external, not inline, PostCSS will not embed the map even if you do - * not set this option. - * - * If you have an inline source map, the result.map property will be empty, - * as the source map will be contained within the text of result.css. - */ - inline?: boolean; - /** - * Source map content from a previous processing step (e.g., Sass compilation). - * PostCSS will try to read the previous source map automatically (based on comments - * within the source CSS), but you can use this option to identify it manually. - * If desired, you can omit the previous map with prev: false. - */ - prev?: any; - /** - * Indicates that PostCSS should set the origin content (e.g., Sass source) - * of the source map. By default, it is true. But if all previous maps do not - * contain sources content, PostCSS will also leave it out even if you do not set - * this option. - */ - sourcesContent?: boolean; - /** - * Indicates that PostCSS should add annotation comments to the CSS. By default, - * PostCSS will always add a comment with a path to the source map. PostCSS will - * not add annotations to CSS files that do not contain any comments. - * - * By default, PostCSS presumes that you want to save the source map as - * opts.to + '.map' and will use this path in the annotation comment. A different - * path can be set by providing a string value for annotation. - * - * If you have set inline: true, annotation cannot be disabled. - */ - annotation?: boolean | string; - /** - * If true, PostCSS will try to correct any syntax errors that it finds in the CSS. - * This is useful for legacy code filled with hacks. Another use-case is interactive - * tools with live input — for example, the Autoprefixer demo. - */ - safe?: boolean; - } - /** - * A Processor instance contains plugins to process CSS. Create one - * Processor instance, initialize its plugins, and then use that instance - * on numerous CSS files. - */ - interface Processor { - /** - * Adds a plugin to be used as a CSS processor. Plugins can also be - * added by passing them as arguments when creating a postcss instance. - */ - use(plugin: AcceptedPlugin): Processor; - /** - * Parses source CSS. Because some plugins can be asynchronous it doesn't - * make any transformations. Transformations will be applied in LazyResult's - * methods. - * @param css Input CSS or any object with toString() method, like a file - * stream. If a Result instance is passed the processor will take the - * existing Root parser from it. - */ - process(css: string | { - toString(): string; - } | Result, options?: ProcessOptions): LazyResult; - /** - * Contains plugins added to this processor. - */ - plugins: Plugin[]; - /** - * Contains the current version of PostCSS (e.g., "4.0.5"). - */ - version: string; - } - interface ProcessOptions extends Syntax { - /** - * The path of the CSS source file. You should always set from, because it is - * used in source map generation and syntax error messages. - */ - from?: string; - /** - * The path where you'll put the output CSS file. You should always set it - * to generate correct source maps. - */ - to?: string; - syntax?: Syntax; - /** - * Enable Safe Mode, in which PostCSS will try to fix CSS syntax errors. - */ - safe?: boolean; - map?: postcss.SourceMapOptions; - /** - * Function to generate AST by string. - */ - parser?: Parse | Syntax; - /** - * Class to generate string by AST. - */ - stringifier?: Stringify | Syntax; - } - interface Syntax { - /** - * Function to generate AST by string. - */ - parse?: Parse; - /** - * Class to generate string by AST. - */ - stringify?: Stringify; - } - interface Parse { - (css?: string, opts?: postcss.SourceMapOptions): Root; - } - interface Stringify { - (node?: postcss.Node, builder?: any): postcss.Result | void; - } - /** - * A promise proxy for the result of PostCSS transformations. - */ - interface LazyResult { - /** - * Processes input CSS through synchronous and asynchronous plugins. - * @param onRejected Called if any plugin throws an error. - */ - then(onFulfilled: (result: Result) => void, onRejected?: (error: Error) => void): Function | any; - /** - * Processes input CSS through synchronous and asynchronous plugins. - * @param onRejected Called if any plugin throws an error. - */ - catch(onRejected: (error: Error) => void): Function | any; - /** - * Alias for css property. - */ - toString(): string; - /** - * Processes input CSS through synchronous plugins and converts Root to - * CSS string. This property will only work with synchronous plugins. If - * the processor contains any asynchronous plugins it will throw an error. - * In this case, you should use LazyResult#then() instead. - * @returns Result#css. - */ - css: string; - /** - * Alias for css property to use when syntaxes generate non-CSS output. - */ - content: string; - /** - * Processes input CSS through synchronous plugins. This property will - * work only with synchronous plugins. If processor contains any - * asynchronous plugins it will throw an error. You should use - * LazyResult#then() instead. - */ - map: ResultMap; - /** - * Processes input CSS through synchronous plugins. This property will work - * only with synchronous plugins. If processor contains any asynchronous - * plugins it will throw an error. You should use LazyResult#then() instead. - */ - root: Root; - /** - * Processes input CSS through synchronous plugins and calls Result#warnings(). - * This property will only work with synchronous plugins. If the processor - * contains any asynchronous plugins it will throw an error. In this case, - * you should use LazyResult#then() instead. - */ - warnings(): ResultMessage[]; - /** - * Processes input CSS through synchronous plugins. This property will work - * only with synchronous plugins. If processor contains any asynchronous - * plugins it will throw an error. You should use LazyResult#then() instead. - */ - messages: ResultMessage[]; - /** - * @returns A processor used for CSS transformations. - */ - processor: Processor; - /** - * @returns Options from the Processor#process(css, opts) call that produced - * this Result instance. - */ - opts: ResultOptions; - } - /** - * Provides the result of the PostCSS transformations. - */ - interface Result { - /** - * Alias for css property. - */ - toString(): string; - /** - * Creates an instance of Warning and adds it to messages. - * @param message Used in the text property of the message object. - * @param options Properties for Message object. - */ - warn(message: string, options?: WarningOptions): void; - /** - * @returns Warnings from plugins, filtered from messages. - */ - warnings(): ResultMessage[]; - /** - * A CSS string representing this Result's Root instance. - */ - css: string; - /** - * Alias for css property to use with syntaxes that generate non-CSS output. - */ - content: string; - /** - * An instance of the SourceMapGenerator class from the source-map library, - * representing changes to the Result's Root instance. - * This property will have a value only if the user does not want an inline - * source map. By default, PostCSS generates inline source maps, written - * directly into the processed CSS. The map property will be empty by default. - * An external source map will be generated — and assigned to map — only if - * the user has set the map.inline option to false, or if PostCSS was passed - * an external input source map. - */ - map: ResultMap; - /** - * Contains the Root node after all transformations. - */ - root?: Root; - /** - * Contains messages from plugins (e.g., warnings or custom messages). - * Add a warning using Result#warn() and get all warnings - * using the Result#warnings() method. - */ - messages: ResultMessage[]; - /** - * The Processor instance used for this transformation. - */ - processor?: Processor; - /** - * Options from the Processor#process(css, opts) or Root#toResult(opts) call - * that produced this Result instance. - */ - opts?: ResultOptions; - } - interface ResultOptions extends ProcessOptions { - /** - * The CSS node that was the source of the warning. - */ - node?: postcss.Node; - /** - * Name of plugin that created this warning. Result#warn() will fill it - * automatically with plugin.postcssPlugin value. - */ - plugin?: string; - } - interface ResultMap { - /** - * Add a single mapping from original source line and column to the generated - * source's line and column for this source map being created. The mapping - * object should have the following properties: - * @param mapping - * @returns {} - */ - addMapping(mapping: { - generated: { - line: number; - column: number; - }; - original: { - line: number; - column: number; - }; - /** - * The original source file (relative to the sourceRoot). - */ - source: string; - name?: string; - }): void; - /** - * Set the source content for an original source file. - * @param sourceFile The URL of the original source file. - * @param sourceContent The content of the source file. - */ - setSourceContent(sourceFile: string, sourceContent: string): void; - /** - * Applies a SourceMap for a source file to the SourceMap. Each mapping to - * the supplied source file is rewritten using the supplied SourceMap. - * Note: The resolution for the resulting mappings is the minimium of this - * map and the supplied map. - * @param sourceMapConsumer The SourceMap to be applied. - * @param sourceFile The filename of the source file. If omitted, sourceMapConsumer - * file will be used, if it exists. Otherwise an error will be thrown. - * @param sourceMapPath The dirname of the path to the SourceMap to be applied. - * If relative, it is relative to the SourceMap. This parameter is needed when - * the two SourceMaps aren't in the same directory, and the SourceMap to be - * applied contains relative source paths. If so, those relative source paths - * need to be rewritten relative to the SourceMap. - * If omitted, it is assumed that both SourceMaps are in the same directory; - * thus, not needing any rewriting (Supplying '.' has the same effect). - */ - applySourceMap(sourceMapConsumer: any, sourceFile?: string, sourceMapPath?: string): void; - /** - * Renders the source map being generated to JSON. - */ - toJSON: () => any; - /** - * Renders the source map being generated to a string. - */ - toString: () => string; - } - interface ResultMessage { - type: string; - text?: string; - plugin?: string; - browsers?: string[]; - } - /** - * Represents a plugin warning. It can be created using Result#warn(). - */ - interface Warning { - /** - * @returns Error position, message. - */ - toString(): string; - /** - * Contains the warning message. - */ - text: string; - /** - * Contains the name of the plugin that created this warning. When you - * call Result#warn(), it will fill this property automatically. - */ - plugin: string; - /** - * The CSS node that caused the warning. - */ - node: Node; - /** - * The line in the input file with this warning's source. - */ - line: number; - /** - * Column in the input file with this warning's source. - */ - column: number; - } - interface WarningOptions extends ResultOptions { - /** - * A word inside a node's string that should be highlighted as source - * of warning. - */ - word?: string; - /** - * The index inside a node's string that should be highlighted as - * source of warning. - */ - index?: number; - } - /** - * The CSS parser throws this error for broken CSS. - */ - interface CssSyntaxError extends InputOrigin { - name: string; - /** - * @returns Error position, message and source code of broken part. - */ - toString(): string; - /** - * @param color Whether arrow should be colored red by terminal color codes. - * By default, PostCSS will use process.stdout.isTTY and - * process.env.NODE_DISABLE_COLORS. - * @returns A few lines of CSS source that caused the error. If CSS has - * input source map without sourceContent this method will return an empty - * string. - */ - showSourceCode(color?: boolean): string; - /** - * Contains full error text in the GNU error format. - */ - message: string; - /** - * Contains only the error description. - */ - reason: string; - /** - * Contains the PostCSS plugin name if the error didn't come from the - * CSS parser. - */ - plugin?: string; - input?: InputOrigin; - } - interface InputOrigin { - /** - * If parser's from option is set, contains the absolute path to the - * broken file. PostCSS will use the input source map to detect the - * original error location. If you wrote a Sass file, then compiled it - * to CSS and parsed it with PostCSS, PostCSS will show the original - * position in the Sass file. If you need the position in the PostCSS - * input (e.g., to debug the previous compiler), use error.input.file. - */ - file?: string; - /** - * Contains the source line of the error. PostCSS will use the input - * source map to detect the original error location. If you wrote a Sass - * file, then compiled it to CSS and parsed it with PostCSS, PostCSS - * will show the original position in the Sass file. If you need the - * position in the PostCSS input (e.g., to debug the previous - * compiler), use error.input.line. - */ - line?: number; - /** - * Contains the source column of the error. PostCSS will use input - * source map to detect the original error location. If you wrote a - * Sass file, then compiled it to CSS and parsed it with PostCSS, - * PostCSS will show the original position in the Sass file. If you - * need the position in the PostCSS input (e.g., to debug the - * previous compiler), use error.input.column. - */ - column?: number; - /** - * Contains the source code of the broken file. PostCSS will use the - * input source map to detect the original error location. If you wrote - * a Sass file, then compiled it to CSS and parsed it with PostCSS, - * PostCSS will show the original position in the Sass file. If you need - * the position in the PostCSS input (e.g., to debug the previous - * compiler), use error.input.source. - */ - source?: string; - } - export class PreviousMap { - private inline; - annotation: string; - root: string; - private consumerCache; - text: string; - file: string; - constructor(css: any, opts: any); - consumer(): any; - withContent(): boolean; - startWith(string: any, start: any): boolean; - loadAnnotation(css: any): void; - decodeInline(text: any): any; - loadMap(file: any, prev: any): any; - isMap(map: any): boolean; - } - /** - * Represents the source CSS. - */ - interface Input { - /** - * The absolute path to the CSS source file defined with the "from" option. - */ - file: string; - /** - * The unique ID of the CSS source. Used if "from" option is not provided - * (because PostCSS does not know the file path). - */ - id: string; - /** - * The CSS source identifier. Contains input.file if the user set the - * "from" option, or input.id if they did not. - */ - from: string; - /** - * Represents the input source map passed from a compilation step before - * PostCSS (e.g., from the Sass compiler). - */ - map: PreviousMap; - /** - * Reads the input source map. - * @returns A symbol position in the input source (e.g., in a Sass file - * that was compiled to CSS before being passed to PostCSS): - */ - origin(line: number, column: number): InputOrigin; - } - interface Node { - /** - * Returns a string representing the node's type. Possible values are - * root, atrule, rule, decl or comment. - */ - type: string; - /** - * Returns the node's parent node. - */ - parent: Container; - /** - * Returns the input source of the node. The property is used in source - * map generation. If you create a node manually - * (e.g., with postcss.decl() ), that node will not have a source - * property and will be absent from the source map. For this reason, the - * plugin developer should consider cloning nodes to create new ones - * (in which case the new node's source will reference the original, - * cloned node) or setting the source property manually. - */ - source: NodeSource; - /** - * Contains information to generate byte-to-byte equal node string as it - * was in origin input. - */ - raws: NodeRaws; - /** - * @returns A CSS string representing the node. - */ - toString(): string; - /** - * This method produces very useful error messages. If present, an input - * source map will be used to get the original position of the source, even - * from a previous compilation step (e.g., from Sass compilation). - * @returns The original position of the node in the source, showing line - * and column numbers and also a small excerpt to facilitate debugging. - */ - error( - /** - * Error description. - */ - message: string, options?: NodeErrorOptions): CssSyntaxError; - /** - * Creates an instance of Warning and adds it to messages. This method is - * provided as a convenience wrapper for Result#warn. - * Note that `opts.node` is automatically passed to Result#warn for you. - * @param result The result that will receive the warning. - * @param text Warning message. It will be used in the `text` property of - * the message object. - * @param opts Properties to assign to the message object. - */ - warn(result: Result, text: string, opts?: WarningOptions): void; - /** - * @returns The next child of the node's parent; or, returns undefined if - * the current node is the last child. - */ - next(): Node; - /** - * @returns The previous child of the node's parent; or, returns undefined - * if the current node is the first child. - */ - prev(): Node; - /** - * @returns The Root instance of the node's tree. - */ - root(): Root; - /** - * Removes the node from its parent and cleans the parent property in the - * node and its children. - * @returns This node for chaining. - */ - remove(): this; - /** - * Inserts node(s) before the current node and removes the current node. - * @returns This node for chaining. - */ - replaceWith(...nodes: (Node | Object)[]): this; - /** - * @param overrides New properties to override in the clone. - * @returns A clone of this node. The node and its (cloned) children will - * have a clean parent and code style properties. - */ - clone(overrides?: Object): this; - /** - * Shortcut to clone the node and insert the resulting cloned node before - * the current node. - * @param overrides New Properties to override in the clone. - * @returns The cloned node. - */ - cloneBefore(overrides?: Object): this; - /** - * Shortcut to clone the node and insert the resulting cloned node after - * the current node. - * @param overrides New Properties to override in the clone. - * @returns The cloned node. - */ - cloneAfter(overrides?: Object): this; - /** - * Removes the node from its current parent and inserts it at the end of - * newParent. This will clean the before and after code style properties - * from the node and replace them with the indentation style of newParent. - * It will also clean the between property if newParent is in another Root. - * @param newParent Where the current node will be moved. - * @returns This node for chaining. - */ - moveTo(newParent: Container): this; - /** - * Removes the node from its current parent and inserts it into a new - * parent before otherNode. This will also clean the node's code style - * properties just as it would in node.moveTo(newParent). - * @param otherNode Will be after the current node after moving. - * @returns This node for chaining. - */ - moveBefore(otherNode: Node): this; - /** - * Removes the node from its current parent and inserts it into a new - * parent after otherNode. This will also clean the node's code style - * properties just as it would in node.moveTo(newParent). - * @param otherNode Will be before the current node after moving. - * @returns This node for chaining. - */ - moveAfter(otherNode: Node): this; - /** - * @param prop Name or code style property. - * @param defaultType Name of default value. It can be easily missed if the - * value is the same as prop. - * @returns A code style property value. If the node is missing the code - * style property (because the node was manually built or cloned), PostCSS - * will try to autodetect the code style property by looking at other nodes - * in the tree. - */ - raw(prop: string, defaultType?: string): any; - } - interface NodeNewProps { - raws?: NodeRaws; - } - interface NodeRaws { - /** - * The space symbols before the node. It also stores `*` and `_` - * symbols before the declaration (IE hack). - */ - before?: string; - /** - * The space symbols after the last child of the node to the end of - * the node. - */ - after?: string; - /** - * The symbols between the property and value for declarations, - * selector and "{" for rules, last parameter and "{" for at-rules. - */ - between?: string; - /** - * True if last child has (optional) semicolon. - */ - semicolon?: boolean; - /** - * The space between the at-rule's name and parameters. - */ - afterName?: string; - /** - * The space symbols between "/*" and comment's text. - */ - left?: string; - /** - * The space symbols between comment's text and "*\/". - */ - right?: string; - /** - * The content of important statement, if it is not just "!important". - */ - important?: string; - } - interface NodeSource { - input: Input; - /** - * The starting position of the node's source. - */ - start?: { - column: number; - line: number; - }; - /** - * The ending position of the node's source. - */ - end?: { - column: number; - line: number; - }; - } - interface NodeErrorOptions { - /** - * Plugin name that created this error. PostCSS will set it automatically. - */ - plugin?: string; - /** - * A word inside a node's string, that should be highlighted as source - * of error. - */ - word?: string; - /** - * An index inside a node's string that should be highlighted as source - * of error. - */ - index?: number; - } - interface JsonNode { - /** - * Returns a string representing the node's type. Possible values are - * root, atrule, rule, decl or comment. - */ - type?: string; - /** - * Returns the node's parent node. - */ - parent?: JsonContainer; - /** - * Returns the input source of the node. The property is used in source - * map generation. If you create a node manually (e.g., with - * postcss.decl() ), that node will not have a source property and - * will be absent from the source map. For this reason, the plugin - * developer should consider cloning nodes to create new ones (in which - * case the new node's source will reference the original, cloned node) - * or setting the source property manually. - */ - source?: NodeSource; - /** - * Contains information to generate byte-to-byte equal node string as it - * was in origin input. - */ - raws?: NodeRaws; - } - /** - * Containers can store any content. If you write a rule inside a rule, - * PostCSS will parse it. - */ - interface Container extends Node { - /** - * Returns the container's parent node. - */ - parent: Container; - /** - * Contains the container's children. - */ - nodes?: Node[]; - /** - * @returns The container's first child. - */ - first?: Node; - /** - * @returns The container's last child. - */ - last?: Node; - /** - * @param overrides New properties to override in the clone. - * @returns A clone of this node. The node and its (cloned) children will - * have a clean parent and code style properties. - */ - clone(overrides?: Object): this; - /** - * @param child Child of the current container. - * @returns The child's index within the container's "nodes" array. - */ - index(child: Node | number): number; - /** - * Determines whether all child nodes satisfy the specified test. - * @param callback A function that accepts up to three arguments. The - * every method calls the callback function for each node until the - * callback returns false, or until the end of the array. - * @returns True if the callback returns true for all of the container's - * children. - */ - every(callback: (node: Node, index: number, nodes: Node[]) => any, thisArg?: any): boolean; - /** - * Determines whether the specified callback returns true for any child node. - * @param callback A function that accepts up to three arguments. The some - * method calls the callback for each node until the callback returns true, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the - * callback function. If thisArg is omitted, undefined is used as the - * this value. - * @returns True if callback returns true for (at least) one of the - * container's children. - */ - some(callback: (node: Node, index: number, nodes: Node[]) => boolean, thisArg?: any): boolean; - /** - * Iterates through the container's immediate children, calling the - * callback function for each child. If you need to recursively iterate - * through all the container's descendant nodes, use container.walk(). - * Unlike the for {} -cycle or Array#forEach() this iterator is safe if - * you are mutating the array of child nodes during iteration. - * @param callback Iterator. Returning false will break iteration. Safe - * if you are mutating the array of child nodes during iteration. PostCSS - * will adjust the current index to match the mutations. - * @returns False if the callback returns false during iteration. - */ - each(callback: (node: Node, index: number) => any): boolean | void; - /** - * Traverses the container's descendant nodes, calling `callback` for each - * node. Like container.each(), this method is safe to use if you are - * mutating arrays during iteration. If you only need to iterate through - * the container's immediate children, use container.each(). - * @param callback Iterator. - */ - walk(callback: (node: Node, index: number) => any): boolean | void; - /** - * Traverses the container's descendant nodes, calling `callback` for each - * declaration. Like container.each(), this method is safe to use if you - * are mutating arrays during iteration. - * @param propFilter Filters declarations by property name. Only those - * declarations whose property matches propFilter will be iterated over. - * @param callback Called for each declaration node within the container. - */ - walkDecls(propFilter: string | RegExp, callback?: (decl: Declaration, index: number) => any): boolean | void; - walkDecls(callback: (decl: Declaration, index: number) => any): boolean | void; - /** - * Traverses the container's descendant nodes, calling `callback` for each - * at-rule. Like container.each(), this method is safe to use if you are - * mutating arrays during iteration. - * @param nameFilter Filters at-rules by name. If provided, iteration - * will only happen over at-rules that have matching names. - * @param callback Iterator called for each at-rule node within the - * container. - */ - walkAtRules(nameFilter: string | RegExp, callback: (atRule: AtRule, index: number) => any): boolean | void; - walkAtRules(callback: (atRule: AtRule, index: number) => any): boolean | void; - /** - * Traverses the container's descendant nodes, calling `callback` for each - * rule. Like container.each(), this method is safe to use if you are - * mutating arrays during iteration. - * @param selectorFilter Filters rules by selector. If provided, - * iteration will only happen over rules that have matching names. - * @param callback Iterator called for each rule node within the - * container. - */ - walkRules(selectorFilter: string | RegExp, callback: (atRule: Rule, index: number) => any): boolean | void; - walkRules(callback: (atRule: Rule, index: number) => any): boolean | void; - walkRules(selectorFilter: any, callback?: (atRule: Rule, index: number) => any): boolean | void; - /** - * Traverses the container's descendant nodes, calling `callback` for each - * comment. Like container.each(), this method is safe to use if you are - * mutating arrays during iteration. - * @param callback Iterator called for each comment node within the container. - */ - walkComments(callback: (comment: Comment, indexed: number) => any): void | boolean; - /** - * Passes all declaration values within the container that match pattern - * through the callback, replacing those values with the returned result of - * callback. This method is useful if you are using a custom unit or - * function and need to iterate through all values. - * @param pattern Pattern that we need to replace. - * @param options Options to speed up the search. - * @param callbackOrReplaceValue String to replace pattern or callback - * that will return a new value. The callback will receive the same - * arguments as those passed to a function parameter of String#replace. - */ - replaceValues(pattern: string | RegExp, options: { - /** - * Property names. The method will only search for values that match - * regexp within declarations of listed properties. - */ - props?: string[]; - /** - * Used to narrow down values and speed up the regexp search. Searching - * every single value with a regexp can be slow. If you pass a fast - * string, PostCSS will first check whether the value contains the fast - * string; and only if it does will PostCSS check that value against - * regexp. For example, instead of just checking for /\d+rem/ on all - * values, set fast: 'rem' to first check whether a value has the rem - * unit, and only if it does perform the regexp check. - */ - fast?: string; - }, callbackOrReplaceValue: string | { - (substring: string, ...args: any[]): string; - }): this; - replaceValues(pattern: string | RegExp, callbackOrReplaceValue: string | { - (substring: string, ...args: any[]): string; - }): this; - /** - * Inserts new nodes to the beginning of the container. - * Because each node class is identifiable by unique properties, use the - * following shortcuts to create nodes in insert methods: - * root.prepend({ name: '@charset', params: '"UTF-8"' }); // at-rule - * root.prepend({ selector: 'a' }); // rule - * rule.prepend({ prop: 'color', value: 'black' }); // declaration - * rule.prepend({ text: 'Comment' }) // comment - * A string containing the CSS of the new element can also be used. This - * approach is slower than the above shortcuts. - * root.prepend('a {}'); - * root.first.prepend('color: black; z-index: 1'); - * @param nodes New nodes. - * @returns This container for chaining. - */ - prepend(...nodes: (Node | Object | string)[]): this; - /** - * Inserts new nodes to the end of the container. - * Because each node class is identifiable by unique properties, use the - * following shortcuts to create nodes in insert methods: - * root.append({ name: '@charset', params: '"UTF-8"' }); // at-rule - * root.append({ selector: 'a' }); // rule - * rule.append({ prop: 'color', value: 'black' }); // declaration - * rule.append({ text: 'Comment' }) // comment - * A string containing the CSS of the new element can also be used. This - * approach is slower than the above shortcuts. - * root.append('a {}'); - * root.first.append('color: black; z-index: 1'); - * @param nodes New nodes. - * @returns This container for chaining. - */ - append(...nodes: (Node | Object | string)[]): this; - /** - * Insert newNode before oldNode within the container. - * @param oldNode Child or child's index. - * @returns This container for chaining. - */ - insertBefore(oldNode: Node | number, newNode: Node | Object | string): this; - /** - * Insert newNode after oldNode within the container. - * @param oldNode Child or child's index. - * @returns This container for chaining. - */ - insertAfter(oldNode: Node | number, newNode: Node | Object | string): this; - /** - * Removes the container from its parent and cleans the parent property in the - * container and its children. - * @returns This container for chaining. - */ - remove(): this; - /** - * Removes child from the container and cleans the parent properties - * from the node and its children. - * @param child Child or child's index. - * @returns This container for chaining. - */ - removeChild(child: Node | number): this; - /** - * Removes all children from the container and cleans their parent - * properties. - * @returns This container for chaining. - */ - removeAll(): this; - } - interface ContainerNewProps extends NodeNewProps { - /** - * Contains the container's children. - */ - nodes?: Node[]; - raws?: ContainerRaws; - } - interface ContainerRaws extends NodeRaws { - indent?: string; - } - interface JsonContainer extends JsonNode { - /** - * Contains the container's children. - */ - nodes?: Node[]; - /** - * @returns The container's first child. - */ - first?: Node; - /** - * @returns The container's last child. - */ - last?: Node; - } - /** - * Represents a CSS file and contains all its parsed nodes. - */ - interface Root extends Container { - /** - * Inherited from Container. Should always be undefined for a Root node. - */ - parent: Container; - /** - * @param overrides New properties to override in the clone. - * @returns A clone of this node. The node and its (cloned) children will - * have a clean parent and code style properties. - */ - clone(overrides?: Object): this; - /** - * @returns A Result instance representing the root's CSS. - */ - toResult(options?: { - /** - * The path where you'll put the output CSS file. You should always - * set "to" to generate correct source maps. - */ - to?: string; - map?: SourceMapOptions; - }): Result; - /** - * Deprecated. Use Root#removeChild. - */ - remove(child?: Node | number): this; - /** - * Removes child from the root node, and the parent properties of node and - * its children. - * @param child Child or child's index. - * @returns This root node for chaining. - */ - removeChild(child: Node | number): this; - } - interface RootNewProps extends ContainerNewProps { - } - interface JsonRoot extends JsonContainer { - } - /** - * Represents an at-rule. If it's followed in the CSS by a {} block, this - * node will have a nodes property representing its children. - */ - interface AtRule extends Container { - /** - * The identifier that immediately follows the @. - */ - name: string; - /** - * These are the values that follow the at-rule's name, but precede any {} - * block. The spec refers to this area as the at-rule's "prelude". - */ - params: string; - /** - * @param overrides New properties to override in the clone. - * @returns A clone of this node. The node and its (cloned) children will - * have a clean parent and code style properties. - */ - clone(overrides?: Object): this; - } - interface AtRuleNewProps extends ContainerNewProps { - /** - * The identifier that immediately follows the @. - */ - name?: string; - /** - * These are the values that follow the at-rule's name, but precede any {} - * block. The spec refers to this area as the at-rule's "prelude". - */ - params?: string | number; - raws?: AtRuleRaws; - } - interface AtRuleRaws extends NodeRaws { - params?: string; - } - interface JsonAtRule extends JsonContainer { - /** - * The identifier that immediately follows the @. - */ - name?: string; - /** - * These are the values that follow the at-rule's name, but precede any {} - * block. The spec refers to this area as the at-rule's "prelude". - */ - params?: string; - } - /** - * Represents a CSS rule: a selector followed by a declaration block. - */ - interface Rule extends Container { - /** - * Returns the rule's parent node. - */ - parent: Container; - /** - * The rule's full selector. If there are multiple comma-separated selectors, - * the entire group will be included. - */ - selector: string; - /** - * An array containing the rule's individual selectors. - * Groups of selectors are split at commas. - */ - selectors?: string[]; - /** - * @param overrides New properties to override in the clone. - * @returns A clone of this node. The node and its (cloned) children will - * have a clean parent and code style properties. - */ - clone(overrides?: Object): this; - } - interface RuleNewProps extends ContainerNewProps { - /** - * The rule's full selector. If there are multiple comma-separated selectors, - * the entire group will be included. - */ - selector?: string; - /** - * An array containing the rule's individual selectors. Groups of selectors - * are split at commas. - */ - selectors?: string[]; - raws?: RuleRaws; - } - interface RuleRaws extends ContainerRaws { - /** - * The rule's full selector. If there are multiple comma-separated selectors, - * the entire group will be included. - */ - selector?: string; - } - interface JsonRule extends JsonContainer { - /** - * The rule's full selector. If there are multiple comma-separated selectors, - * the entire group will be included. - */ - selector?: string; - /** - * An array containing the rule's individual selectors. - * Groups of selectors are split at commas. - */ - selectors?: string[]; - } - /** - * Represents a CSS declaration. - */ - interface Declaration extends Node { - /** - * The declaration's property name. - */ - prop: string; - /** - * The declaration's value. This value will be cleaned of comments. If the - * source value contained comments, those comments will be available in the - * _value.raws property. If you have not changed the value, the result of - * decl.toString() will include the original raws value (comments and all). - */ - value: string; - /** - * True if the declaration has an !important annotation. - */ - important: boolean; - /** - * @param overrides New properties to override in the clone. - * @returns A clone of this node. The node and its (cloned) children will - * have a clean parent and code style properties. - */ - clone(overrides?: Object): this; - } - interface DeclarationNewProps { - /** - * The declaration's property name. - */ - prop?: string; - /** - * The declaration's value. This value will be cleaned of comments. If the - * source value contained comments, those comments will be available in the - * _value.raws property. If you have not changed the value, the result of - * decl.toString() will include the original raws value (comments and all). - */ - value?: string; - raws?: DeclarationRaws; - } - interface DeclarationRaws extends NodeRaws { - /** - * The declaration's value. This value will be cleaned of comments. - * If the source value contained comments, those comments will be - * available in the _value.raws property. If you have not changed the value, the result of - * decl.toString() will include the original raws value (comments and all). - */ - value?: string; - } - interface JsonDeclaration extends JsonNode { - /** - * True if the declaration has an !important annotation. - */ - important?: boolean; - } - /** - * Represents a comment between declarations or statements (rule and at-rules). - * Comments inside selectors, at-rule parameters, or declaration values will - * be stored in the Node#raws properties. - */ - interface Comment extends Node { - /** - * The comment's text. - */ - text: string; - /** - * @param overrides New properties to override in the clone. - * @returns A clone of this node. The node and its (cloned) children will - * have a clean parent and code style properties. - */ - clone(overrides?: Object): this; - } - interface CommentNewProps { - /** - * The comment's text. - */ - text?: string; - } - interface JsonComment extends JsonNode { - } - } - export = postcss; -} diff --git a/node_modules/postcss/lib/postcss.js b/node_modules/postcss/lib/postcss.js deleted file mode 100644 index b0be50d..0000000 --- a/node_modules/postcss/lib/postcss.js +++ /dev/null @@ -1,292 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _declaration = require('./declaration'); - -var _declaration2 = _interopRequireDefault(_declaration); - -var _processor = require('./processor'); - -var _processor2 = _interopRequireDefault(_processor); - -var _stringify = require('./stringify'); - -var _stringify2 = _interopRequireDefault(_stringify); - -var _comment = require('./comment'); - -var _comment2 = _interopRequireDefault(_comment); - -var _atRule = require('./at-rule'); - -var _atRule2 = _interopRequireDefault(_atRule); - -var _vendor = require('./vendor'); - -var _vendor2 = _interopRequireDefault(_vendor); - -var _parse = require('./parse'); - -var _parse2 = _interopRequireDefault(_parse); - -var _list = require('./list'); - -var _list2 = _interopRequireDefault(_list); - -var _rule = require('./rule'); - -var _rule2 = _interopRequireDefault(_rule); - -var _root = require('./root'); - -var _root2 = _interopRequireDefault(_root); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Create a new {@link Processor} instance that will apply `plugins` - * as CSS processors. - * - * @param {Array.|Processor} plugins - PostCSS - * plugins. See {@link Processor#use} for plugin format. - * - * @return {Processor} Processor to process multiple CSS - * - * @example - * import postcss from 'postcss'; - * - * postcss(plugins).process(css, { from, to }).then(result => { - * console.log(result.css); - * }); - * - * @namespace postcss - */ -function postcss() { - for (var _len = arguments.length, plugins = Array(_len), _key = 0; _key < _len; _key++) { - plugins[_key] = arguments[_key]; - } - - if (plugins.length === 1 && Array.isArray(plugins[0])) { - plugins = plugins[0]; - } - return new _processor2.default(plugins); -} - -/** - * Creates a PostCSS plugin with a standard API. - * - * The newly-wrapped function will provide both the name and PostCSS - * version of the plugin. - * - * ```js - * const processor = postcss([replace]); - * processor.plugins[0].postcssPlugin //=> 'postcss-replace' - * processor.plugins[0].postcssVersion //=> '5.1.0' - * ``` - * - * The plugin function receives 2 arguments: {@link Root} - * and {@link Result} instance. The function should mutate the provided - * `Root` node. Alternatively, you can create a new `Root` node - * and override the `result.root` property. - * - * ```js - * const cleaner = postcss.plugin('postcss-cleaner', () => { - * return (root, result) => { - * result.root = postcss.root(); - * }; - * }); - * ``` - * - * As a convenience, plugins also expose a `process` method so that you can use - * them as standalone tools. - * - * ```js - * cleaner.process(css, options); - * // This is equivalent to: - * postcss([ cleaner(options) ]).process(css); - * ``` - * - * Asynchronous plugins should return a `Promise` instance. - * - * ```js - * postcss.plugin('postcss-import', () => { - * return (root, result) => { - * return new Promise( (resolve, reject) => { - * fs.readFile('base.css', (base) => { - * root.prepend(base); - * resolve(); - * }); - * }); - * }; - * }); - * ``` - * - * Add warnings using the {@link Node#warn} method. - * Send data to other plugins using the {@link Result#messages} array. - * - * ```js - * postcss.plugin('postcss-caniuse-test', () => { - * return (root, result) => { - * css.walkDecls(decl => { - * if ( !caniuse.support(decl.prop) ) { - * decl.warn(result, 'Some browsers do not support ' + decl.prop); - * } - * }); - * }; - * }); - * ``` - * - * @param {string} name - PostCSS plugin name. Same as in `name` - * property in `package.json`. It will be saved - * in `plugin.postcssPlugin` property. - * @param {function} initializer - will receive plugin options - * and should return {@link pluginFunction} - * - * @return {Plugin} PostCSS plugin - */ -postcss.plugin = function plugin(name, initializer) { - var creator = function creator() { - var transformer = initializer.apply(undefined, arguments); - transformer.postcssPlugin = name; - transformer.postcssVersion = new _processor2.default().version; - return transformer; - }; - - var cache = void 0; - Object.defineProperty(creator, 'postcss', { - get: function get() { - if (!cache) cache = creator(); - return cache; - } - }); - - creator.process = function (root, opts) { - return postcss([creator(opts)]).process(root, opts); - }; - - return creator; -}; - -/** - * Default function to convert a node tree into a CSS string. - * - * @param {Node} node - start node for stringifing. Usually {@link Root}. - * @param {builder} builder - function to concatenate CSS from node’s parts - * or generate string and source map - * - * @return {void} - * - * @function - */ -postcss.stringify = _stringify2.default; - -/** - * Parses source css and returns a new {@link Root} node, - * which contains the source CSS nodes. - * - * @param {string|toString} css - string with input CSS or any object - * with toString() method, like a Buffer - * @param {processOptions} [opts] - options with only `from` and `map` keys - * - * @return {Root} PostCSS AST - * - * @example - * // Simple CSS concatenation with source map support - * const root1 = postcss.parse(css1, { from: file1 }); - * const root2 = postcss.parse(css2, { from: file2 }); - * root1.append(root2).toResult().css; - * - * @function - */ -postcss.parse = _parse2.default; - -/** - * @member {vendor} - Contains the {@link vendor} module. - * - * @example - * postcss.vendor.unprefixed('-moz-tab') //=> ['tab'] - */ -postcss.vendor = _vendor2.default; - -/** - * @member {list} - Contains the {@link list} module. - * - * @example - * postcss.list.space('5px calc(10% + 5px)') //=> ['5px', 'calc(10% + 5px)'] - */ -postcss.list = _list2.default; - -/** - * Creates a new {@link Comment} node. - * - * @param {object} [defaults] - properties for the new node. - * - * @return {Comment} new Comment node - * - * @example - * postcss.comment({ text: 'test' }) - */ -postcss.comment = function (defaults) { - return new _comment2.default(defaults); -}; - -/** - * Creates a new {@link AtRule} node. - * - * @param {object} [defaults] - properties for the new node. - * - * @return {AtRule} new AtRule node - * - * @example - * postcss.atRule({ name: 'charset' }).toString() //=> "@charset" - */ -postcss.atRule = function (defaults) { - return new _atRule2.default(defaults); -}; - -/** - * Creates a new {@link Declaration} node. - * - * @param {object} [defaults] - properties for the new node. - * - * @return {Declaration} new Declaration node - * - * @example - * postcss.decl({ prop: 'color', value: 'red' }).toString() //=> "color: red" - */ -postcss.decl = function (defaults) { - return new _declaration2.default(defaults); -}; - -/** - * Creates a new {@link Rule} node. - * - * @param {object} [defaults] - properties for the new node. - * - * @return {AtRule} new Rule node - * - * @example - * postcss.rule({ selector: 'a' }).toString() //=> "a {\n}" - */ -postcss.rule = function (defaults) { - return new _rule2.default(defaults); -}; - -/** - * Creates a new {@link Root} node. - * - * @param {object} [defaults] - properties for the new node. - * - * @return {Root} new Root node - * - * @example - * postcss.root({ after: '\n' }).toString() //=> "\n" - */ -postcss.root = function (defaults) { - return new _root2.default(defaults); -}; - -exports.default = postcss; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBvc3Rjc3MuZXM2Il0sIm5hbWVzIjpbInBvc3Rjc3MiLCJwbHVnaW5zIiwibGVuZ3RoIiwiQXJyYXkiLCJpc0FycmF5IiwicGx1Z2luIiwibmFtZSIsImluaXRpYWxpemVyIiwiY3JlYXRvciIsInRyYW5zZm9ybWVyIiwicG9zdGNzc1BsdWdpbiIsInBvc3Rjc3NWZXJzaW9uIiwidmVyc2lvbiIsImNhY2hlIiwiT2JqZWN0IiwiZGVmaW5lUHJvcGVydHkiLCJnZXQiLCJwcm9jZXNzIiwicm9vdCIsIm9wdHMiLCJzdHJpbmdpZnkiLCJwYXJzZSIsInZlbmRvciIsImxpc3QiLCJjb21tZW50IiwiZGVmYXVsdHMiLCJhdFJ1bGUiLCJkZWNsIiwicnVsZSJdLCJtYXBwaW5ncyI6Ijs7OztBQUFBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBa0JBLFNBQVNBLE9BQVQsR0FBNkI7QUFBQSxvQ0FBVEMsT0FBUztBQUFUQSxXQUFTO0FBQUE7O0FBQ3pCLE1BQUtBLFFBQVFDLE1BQVIsS0FBbUIsQ0FBbkIsSUFBd0JDLE1BQU1DLE9BQU4sQ0FBY0gsUUFBUSxDQUFSLENBQWQsQ0FBN0IsRUFBeUQ7QUFDckRBLGNBQVVBLFFBQVEsQ0FBUixDQUFWO0FBQ0g7QUFDRCxTQUFPLHdCQUFjQSxPQUFkLENBQVA7QUFDSDs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBd0VBRCxRQUFRSyxNQUFSLEdBQWlCLFNBQVNBLE1BQVQsQ0FBZ0JDLElBQWhCLEVBQXNCQyxXQUF0QixFQUFtQztBQUNoRCxNQUFJQyxVQUFVLFNBQVZBLE9BQVUsR0FBbUI7QUFDN0IsUUFBSUMsY0FBY0YsdUNBQWxCO0FBQ0FFLGdCQUFZQyxhQUFaLEdBQTZCSixJQUE3QjtBQUNBRyxnQkFBWUUsY0FBWixHQUE4Qix5QkFBRCxDQUFrQkMsT0FBL0M7QUFDQSxXQUFPSCxXQUFQO0FBQ0gsR0FMRDs7QUFPQSxNQUFJSSxjQUFKO0FBQ0FDLFNBQU9DLGNBQVAsQ0FBc0JQLE9BQXRCLEVBQStCLFNBQS9CLEVBQTBDO0FBQ3RDUSxPQURzQyxpQkFDaEM7QUFDRixVQUFLLENBQUNILEtBQU4sRUFBY0EsUUFBUUwsU0FBUjtBQUNkLGFBQU9LLEtBQVA7QUFDSDtBQUpxQyxHQUExQzs7QUFPQUwsVUFBUVMsT0FBUixHQUFrQixVQUFVQyxJQUFWLEVBQWdCQyxJQUFoQixFQUFzQjtBQUNwQyxXQUFPbkIsUUFBUSxDQUFFUSxRQUFRVyxJQUFSLENBQUYsQ0FBUixFQUEyQkYsT0FBM0IsQ0FBbUNDLElBQW5DLEVBQXlDQyxJQUF6QyxDQUFQO0FBQ0gsR0FGRDs7QUFJQSxTQUFPWCxPQUFQO0FBQ0gsQ0FyQkQ7O0FBdUJBOzs7Ozs7Ozs7OztBQVdBUixRQUFRb0IsU0FBUjs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBa0JBcEIsUUFBUXFCLEtBQVI7O0FBRUE7Ozs7OztBQU1BckIsUUFBUXNCLE1BQVI7O0FBRUE7Ozs7OztBQU1BdEIsUUFBUXVCLElBQVI7O0FBRUE7Ozs7Ozs7Ozs7QUFVQXZCLFFBQVF3QixPQUFSLEdBQWtCO0FBQUEsU0FBWSxzQkFBWUMsUUFBWixDQUFaO0FBQUEsQ0FBbEI7O0FBRUE7Ozs7Ozs7Ozs7QUFVQXpCLFFBQVEwQixNQUFSLEdBQWlCO0FBQUEsU0FBWSxxQkFBV0QsUUFBWCxDQUFaO0FBQUEsQ0FBakI7O0FBRUE7Ozs7Ozs7Ozs7QUFVQXpCLFFBQVEyQixJQUFSLEdBQWU7QUFBQSxTQUFZLDBCQUFnQkYsUUFBaEIsQ0FBWjtBQUFBLENBQWY7O0FBRUE7Ozs7Ozs7Ozs7QUFVQXpCLFFBQVE0QixJQUFSLEdBQWU7QUFBQSxTQUFZLG1CQUFTSCxRQUFULENBQVo7QUFBQSxDQUFmOztBQUVBOzs7Ozs7Ozs7O0FBVUF6QixRQUFRa0IsSUFBUixHQUFlO0FBQUEsU0FBWSxtQkFBU08sUUFBVCxDQUFaO0FBQUEsQ0FBZjs7a0JBRWV6QixPIiwiZmlsZSI6InBvc3Rjc3MuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgRGVjbGFyYXRpb24gZnJvbSAnLi9kZWNsYXJhdGlvbic7XG5pbXBvcnQgUHJvY2Vzc29yICAgZnJvbSAnLi9wcm9jZXNzb3InO1xuaW1wb3J0IHN0cmluZ2lmeSAgIGZyb20gJy4vc3RyaW5naWZ5JztcbmltcG9ydCBDb21tZW50ICAgICBmcm9tICcuL2NvbW1lbnQnO1xuaW1wb3J0IEF0UnVsZSAgICAgIGZyb20gJy4vYXQtcnVsZSc7XG5pbXBvcnQgdmVuZG9yICAgICAgZnJvbSAnLi92ZW5kb3InO1xuaW1wb3J0IHBhcnNlICAgICAgIGZyb20gJy4vcGFyc2UnO1xuaW1wb3J0IGxpc3QgICAgICAgIGZyb20gJy4vbGlzdCc7XG5pbXBvcnQgUnVsZSAgICAgICAgZnJvbSAnLi9ydWxlJztcbmltcG9ydCBSb290ICAgICAgICBmcm9tICcuL3Jvb3QnO1xuXG4vKipcbiAqIENyZWF0ZSBhIG5ldyB7QGxpbmsgUHJvY2Vzc29yfSBpbnN0YW5jZSB0aGF0IHdpbGwgYXBwbHkgYHBsdWdpbnNgXG4gKiBhcyBDU1MgcHJvY2Vzc29ycy5cbiAqXG4gKiBAcGFyYW0ge0FycmF5LjxQbHVnaW58cGx1Z2luRnVuY3Rpb24+fFByb2Nlc3Nvcn0gcGx1Z2lucyAtIFBvc3RDU1NcbiAqICAgICAgICBwbHVnaW5zLiBTZWUge0BsaW5rIFByb2Nlc3NvciN1c2V9IGZvciBwbHVnaW4gZm9ybWF0LlxuICpcbiAqIEByZXR1cm4ge1Byb2Nlc3Nvcn0gUHJvY2Vzc29yIHRvIHByb2Nlc3MgbXVsdGlwbGUgQ1NTXG4gKlxuICogQGV4YW1wbGVcbiAqIGltcG9ydCBwb3N0Y3NzIGZyb20gJ3Bvc3Rjc3MnO1xuICpcbiAqIHBvc3Rjc3MocGx1Z2lucykucHJvY2Vzcyhjc3MsIHsgZnJvbSwgdG8gfSkudGhlbihyZXN1bHQgPT4ge1xuICogICBjb25zb2xlLmxvZyhyZXN1bHQuY3NzKTtcbiAqIH0pO1xuICpcbiAqIEBuYW1lc3BhY2UgcG9zdGNzc1xuICovXG5mdW5jdGlvbiBwb3N0Y3NzKC4uLnBsdWdpbnMpIHtcbiAgICBpZiAoIHBsdWdpbnMubGVuZ3RoID09PSAxICYmIEFycmF5LmlzQXJyYXkocGx1Z2luc1swXSkgKSB7XG4gICAgICAgIHBsdWdpbnMgPSBwbHVnaW5zWzBdO1xuICAgIH1cbiAgICByZXR1cm4gbmV3IFByb2Nlc3NvcihwbHVnaW5zKTtcbn1cblxuLyoqXG4gKiBDcmVhdGVzIGEgUG9zdENTUyBwbHVnaW4gd2l0aCBhIHN0YW5kYXJkIEFQSS5cbiAqXG4gKiBUaGUgbmV3bHktd3JhcHBlZCBmdW5jdGlvbiB3aWxsIHByb3ZpZGUgYm90aCB0aGUgbmFtZSBhbmQgUG9zdENTU1xuICogdmVyc2lvbiBvZiB0aGUgcGx1Z2luLlxuICpcbiAqIGBgYGpzXG4gKiAgY29uc3QgcHJvY2Vzc29yID0gcG9zdGNzcyhbcmVwbGFjZV0pO1xuICogIHByb2Nlc3Nvci5wbHVnaW5zWzBdLnBvc3Rjc3NQbHVnaW4gIC8vPT4gJ3Bvc3Rjc3MtcmVwbGFjZSdcbiAqICBwcm9jZXNzb3IucGx1Z2luc1swXS5wb3N0Y3NzVmVyc2lvbiAvLz0+ICc1LjEuMCdcbiAqIGBgYFxuICpcbiAqIFRoZSBwbHVnaW4gZnVuY3Rpb24gcmVjZWl2ZXMgMiBhcmd1bWVudHM6IHtAbGluayBSb290fVxuICogYW5kIHtAbGluayBSZXN1bHR9IGluc3RhbmNlLiBUaGUgZnVuY3Rpb24gc2hvdWxkIG11dGF0ZSB0aGUgcHJvdmlkZWRcbiAqIGBSb290YCBub2RlLiBBbHRlcm5hdGl2ZWx5LCB5b3UgY2FuIGNyZWF0ZSBhIG5ldyBgUm9vdGAgbm9kZVxuICogYW5kIG92ZXJyaWRlIHRoZSBgcmVzdWx0LnJvb3RgIHByb3BlcnR5LlxuICpcbiAqIGBgYGpzXG4gKiBjb25zdCBjbGVhbmVyID0gcG9zdGNzcy5wbHVnaW4oJ3Bvc3Rjc3MtY2xlYW5lcicsICgpID0+IHtcbiAqICAgcmV0dXJuIChyb290LCByZXN1bHQpID0+IHtcbiAqICAgICByZXN1bHQucm9vdCA9IHBvc3Rjc3Mucm9vdCgpO1xuICogICB9O1xuICogfSk7XG4gKiBgYGBcbiAqXG4gKiBBcyBhIGNvbnZlbmllbmNlLCBwbHVnaW5zIGFsc28gZXhwb3NlIGEgYHByb2Nlc3NgIG1ldGhvZCBzbyB0aGF0IHlvdSBjYW4gdXNlXG4gKiB0aGVtIGFzIHN0YW5kYWxvbmUgdG9vbHMuXG4gKlxuICogYGBganNcbiAqIGNsZWFuZXIucHJvY2Vzcyhjc3MsIG9wdGlvbnMpO1xuICogLy8gVGhpcyBpcyBlcXVpdmFsZW50IHRvOlxuICogcG9zdGNzcyhbIGNsZWFuZXIob3B0aW9ucykgXSkucHJvY2Vzcyhjc3MpO1xuICogYGBgXG4gKlxuICogQXN5bmNocm9ub3VzIHBsdWdpbnMgc2hvdWxkIHJldHVybiBhIGBQcm9taXNlYCBpbnN0YW5jZS5cbiAqXG4gKiBgYGBqc1xuICogcG9zdGNzcy5wbHVnaW4oJ3Bvc3Rjc3MtaW1wb3J0JywgKCkgPT4ge1xuICogICByZXR1cm4gKHJvb3QsIHJlc3VsdCkgPT4ge1xuICogICAgIHJldHVybiBuZXcgUHJvbWlzZSggKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICogICAgICAgZnMucmVhZEZpbGUoJ2Jhc2UuY3NzJywgKGJhc2UpID0+IHtcbiAqICAgICAgICAgcm9vdC5wcmVwZW5kKGJhc2UpO1xuICogICAgICAgICByZXNvbHZlKCk7XG4gKiAgICAgICB9KTtcbiAqICAgICB9KTtcbiAqICAgfTtcbiAqIH0pO1xuICogYGBgXG4gKlxuICogQWRkIHdhcm5pbmdzIHVzaW5nIHRoZSB7QGxpbmsgTm9kZSN3YXJufSBtZXRob2QuXG4gKiBTZW5kIGRhdGEgdG8gb3RoZXIgcGx1Z2lucyB1c2luZyB0aGUge0BsaW5rIFJlc3VsdCNtZXNzYWdlc30gYXJyYXkuXG4gKlxuICogYGBganNcbiAqIHBvc3Rjc3MucGx1Z2luKCdwb3N0Y3NzLWNhbml1c2UtdGVzdCcsICgpID0+IHtcbiAqICAgcmV0dXJuIChyb290LCByZXN1bHQpID0+IHtcbiAqICAgICBjc3Mud2Fsa0RlY2xzKGRlY2wgPT4ge1xuICogICAgICAgaWYgKCAhY2FuaXVzZS5zdXBwb3J0KGRlY2wucHJvcCkgKSB7XG4gKiAgICAgICAgIGRlY2wud2FybihyZXN1bHQsICdTb21lIGJyb3dzZXJzIGRvIG5vdCBzdXBwb3J0ICcgKyBkZWNsLnByb3ApO1xuICogICAgICAgfVxuICogICAgIH0pO1xuICogICB9O1xuICogfSk7XG4gKiBgYGBcbiAqXG4gKiBAcGFyYW0ge3N0cmluZ30gbmFtZSAgICAgICAgICAtIFBvc3RDU1MgcGx1Z2luIG5hbWUuIFNhbWUgYXMgaW4gYG5hbWVgXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3BlcnR5IGluIGBwYWNrYWdlLmpzb25gLiBJdCB3aWxsIGJlIHNhdmVkXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluIGBwbHVnaW4ucG9zdGNzc1BsdWdpbmAgcHJvcGVydHkuXG4gKiBAcGFyYW0ge2Z1bmN0aW9ufSBpbml0aWFsaXplciAtIHdpbGwgcmVjZWl2ZSBwbHVnaW4gb3B0aW9uc1xuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbmQgc2hvdWxkIHJldHVybiB7QGxpbmsgcGx1Z2luRnVuY3Rpb259XG4gKlxuICogQHJldHVybiB7UGx1Z2lufSBQb3N0Q1NTIHBsdWdpblxuICovXG5wb3N0Y3NzLnBsdWdpbiA9IGZ1bmN0aW9uIHBsdWdpbihuYW1lLCBpbml0aWFsaXplcikge1xuICAgIGxldCBjcmVhdG9yID0gZnVuY3Rpb24gKC4uLmFyZ3MpIHtcbiAgICAgICAgbGV0IHRyYW5zZm9ybWVyID0gaW5pdGlhbGl6ZXIoLi4uYXJncyk7XG4gICAgICAgIHRyYW5zZm9ybWVyLnBvc3Rjc3NQbHVnaW4gID0gbmFtZTtcbiAgICAgICAgdHJhbnNmb3JtZXIucG9zdGNzc1ZlcnNpb24gPSAobmV3IFByb2Nlc3NvcigpKS52ZXJzaW9uO1xuICAgICAgICByZXR1cm4gdHJhbnNmb3JtZXI7XG4gICAgfTtcblxuICAgIGxldCBjYWNoZTtcbiAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY3JlYXRvciwgJ3Bvc3Rjc3MnLCB7XG4gICAgICAgIGdldCgpIHtcbiAgICAgICAgICAgIGlmICggIWNhY2hlICkgY2FjaGUgPSBjcmVhdG9yKCk7XG4gICAgICAgICAgICByZXR1cm4gY2FjaGU7XG4gICAgICAgIH1cbiAgICB9KTtcblxuICAgIGNyZWF0b3IucHJvY2VzcyA9IGZ1bmN0aW9uIChyb290LCBvcHRzKSB7XG4gICAgICAgIHJldHVybiBwb3N0Y3NzKFsgY3JlYXRvcihvcHRzKSBdKS5wcm9jZXNzKHJvb3QsIG9wdHMpO1xuICAgIH07XG5cbiAgICByZXR1cm4gY3JlYXRvcjtcbn07XG5cbi8qKlxuICogRGVmYXVsdCBmdW5jdGlvbiB0byBjb252ZXJ0IGEgbm9kZSB0cmVlIGludG8gYSBDU1Mgc3RyaW5nLlxuICpcbiAqIEBwYXJhbSB7Tm9kZX0gbm9kZSAgICAgICAtIHN0YXJ0IG5vZGUgZm9yIHN0cmluZ2lmaW5nLiBVc3VhbGx5IHtAbGluayBSb290fS5cbiAqIEBwYXJhbSB7YnVpbGRlcn0gYnVpbGRlciAtIGZ1bmN0aW9uIHRvIGNvbmNhdGVuYXRlIENTUyBmcm9tIG5vZGXigJlzIHBhcnRzXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvciBnZW5lcmF0ZSBzdHJpbmcgYW5kIHNvdXJjZSBtYXBcbiAqXG4gKiBAcmV0dXJuIHt2b2lkfVxuICpcbiAqIEBmdW5jdGlvblxuICovXG5wb3N0Y3NzLnN0cmluZ2lmeSA9IHN0cmluZ2lmeTtcblxuLyoqXG4gKiBQYXJzZXMgc291cmNlIGNzcyBhbmQgcmV0dXJucyBhIG5ldyB7QGxpbmsgUm9vdH0gbm9kZSxcbiAqIHdoaWNoIGNvbnRhaW5zIHRoZSBzb3VyY2UgQ1NTIG5vZGVzLlxuICpcbiAqIEBwYXJhbSB7c3RyaW5nfHRvU3RyaW5nfSBjc3MgICAtIHN0cmluZyB3aXRoIGlucHV0IENTUyBvciBhbnkgb2JqZWN0XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aXRoIHRvU3RyaW5nKCkgbWV0aG9kLCBsaWtlIGEgQnVmZmVyXG4gKiBAcGFyYW0ge3Byb2Nlc3NPcHRpb25zfSBbb3B0c10gLSBvcHRpb25zIHdpdGggb25seSBgZnJvbWAgYW5kIGBtYXBgIGtleXNcbiAqXG4gKiBAcmV0dXJuIHtSb290fSBQb3N0Q1NTIEFTVFxuICpcbiAqIEBleGFtcGxlXG4gKiAvLyBTaW1wbGUgQ1NTIGNvbmNhdGVuYXRpb24gd2l0aCBzb3VyY2UgbWFwIHN1cHBvcnRcbiAqIGNvbnN0IHJvb3QxID0gcG9zdGNzcy5wYXJzZShjc3MxLCB7IGZyb206IGZpbGUxIH0pO1xuICogY29uc3Qgcm9vdDIgPSBwb3N0Y3NzLnBhcnNlKGNzczIsIHsgZnJvbTogZmlsZTIgfSk7XG4gKiByb290MS5hcHBlbmQocm9vdDIpLnRvUmVzdWx0KCkuY3NzO1xuICpcbiAqIEBmdW5jdGlvblxuICovXG5wb3N0Y3NzLnBhcnNlID0gcGFyc2U7XG5cbi8qKlxuICogQG1lbWJlciB7dmVuZG9yfSAtIENvbnRhaW5zIHRoZSB7QGxpbmsgdmVuZG9yfSBtb2R1bGUuXG4gKlxuICogQGV4YW1wbGVcbiAqIHBvc3Rjc3MudmVuZG9yLnVucHJlZml4ZWQoJy1tb3otdGFiJykgLy89PiBbJ3RhYiddXG4gKi9cbnBvc3Rjc3MudmVuZG9yID0gdmVuZG9yO1xuXG4vKipcbiAqIEBtZW1iZXIge2xpc3R9IC0gQ29udGFpbnMgdGhlIHtAbGluayBsaXN0fSBtb2R1bGUuXG4gKlxuICogQGV4YW1wbGVcbiAqIHBvc3Rjc3MubGlzdC5zcGFjZSgnNXB4IGNhbGMoMTAlICsgNXB4KScpIC8vPT4gWyc1cHgnLCAnY2FsYygxMCUgKyA1cHgpJ11cbiAqL1xucG9zdGNzcy5saXN0ID0gbGlzdDtcblxuLyoqXG4gKiBDcmVhdGVzIGEgbmV3IHtAbGluayBDb21tZW50fSBub2RlLlxuICpcbiAqIEBwYXJhbSB7b2JqZWN0fSBbZGVmYXVsdHNdIC0gcHJvcGVydGllcyBmb3IgdGhlIG5ldyBub2RlLlxuICpcbiAqIEByZXR1cm4ge0NvbW1lbnR9IG5ldyBDb21tZW50IG5vZGVcbiAqXG4gKiBAZXhhbXBsZVxuICogcG9zdGNzcy5jb21tZW50KHsgdGV4dDogJ3Rlc3QnIH0pXG4gKi9cbnBvc3Rjc3MuY29tbWVudCA9IGRlZmF1bHRzID0+IG5ldyBDb21tZW50KGRlZmF1bHRzKTtcblxuLyoqXG4gKiBDcmVhdGVzIGEgbmV3IHtAbGluayBBdFJ1bGV9IG5vZGUuXG4gKlxuICogQHBhcmFtIHtvYmplY3R9IFtkZWZhdWx0c10gLSBwcm9wZXJ0aWVzIGZvciB0aGUgbmV3IG5vZGUuXG4gKlxuICogQHJldHVybiB7QXRSdWxlfSBuZXcgQXRSdWxlIG5vZGVcbiAqXG4gKiBAZXhhbXBsZVxuICogcG9zdGNzcy5hdFJ1bGUoeyBuYW1lOiAnY2hhcnNldCcgfSkudG9TdHJpbmcoKSAvLz0+IFwiQGNoYXJzZXRcIlxuICovXG5wb3N0Y3NzLmF0UnVsZSA9IGRlZmF1bHRzID0+IG5ldyBBdFJ1bGUoZGVmYXVsdHMpO1xuXG4vKipcbiAqIENyZWF0ZXMgYSBuZXcge0BsaW5rIERlY2xhcmF0aW9ufSBub2RlLlxuICpcbiAqIEBwYXJhbSB7b2JqZWN0fSBbZGVmYXVsdHNdIC0gcHJvcGVydGllcyBmb3IgdGhlIG5ldyBub2RlLlxuICpcbiAqIEByZXR1cm4ge0RlY2xhcmF0aW9ufSBuZXcgRGVjbGFyYXRpb24gbm9kZVxuICpcbiAqIEBleGFtcGxlXG4gKiBwb3N0Y3NzLmRlY2woeyBwcm9wOiAnY29sb3InLCB2YWx1ZTogJ3JlZCcgfSkudG9TdHJpbmcoKSAvLz0+IFwiY29sb3I6IHJlZFwiXG4gKi9cbnBvc3Rjc3MuZGVjbCA9IGRlZmF1bHRzID0+IG5ldyBEZWNsYXJhdGlvbihkZWZhdWx0cyk7XG5cbi8qKlxuICogQ3JlYXRlcyBhIG5ldyB7QGxpbmsgUnVsZX0gbm9kZS5cbiAqXG4gKiBAcGFyYW0ge29iamVjdH0gW2RlZmF1bHRzXSAtIHByb3BlcnRpZXMgZm9yIHRoZSBuZXcgbm9kZS5cbiAqXG4gKiBAcmV0dXJuIHtBdFJ1bGV9IG5ldyBSdWxlIG5vZGVcbiAqXG4gKiBAZXhhbXBsZVxuICogcG9zdGNzcy5ydWxlKHsgc2VsZWN0b3I6ICdhJyB9KS50b1N0cmluZygpIC8vPT4gXCJhIHtcXG59XCJcbiAqL1xucG9zdGNzcy5ydWxlID0gZGVmYXVsdHMgPT4gbmV3IFJ1bGUoZGVmYXVsdHMpO1xuXG4vKipcbiAqIENyZWF0ZXMgYSBuZXcge0BsaW5rIFJvb3R9IG5vZGUuXG4gKlxuICogQHBhcmFtIHtvYmplY3R9IFtkZWZhdWx0c10gLSBwcm9wZXJ0aWVzIGZvciB0aGUgbmV3IG5vZGUuXG4gKlxuICogQHJldHVybiB7Um9vdH0gbmV3IFJvb3Qgbm9kZVxuICpcbiAqIEBleGFtcGxlXG4gKiBwb3N0Y3NzLnJvb3QoeyBhZnRlcjogJ1xcbicgfSkudG9TdHJpbmcoKSAvLz0+IFwiXFxuXCJcbiAqL1xucG9zdGNzcy5yb290ID0gZGVmYXVsdHMgPT4gbmV3IFJvb3QoZGVmYXVsdHMpO1xuXG5leHBvcnQgZGVmYXVsdCBwb3N0Y3NzO1xuIl19 diff --git a/node_modules/postcss/lib/previous-map.js b/node_modules/postcss/lib/previous-map.js deleted file mode 100644 index 71b8e26..0000000 --- a/node_modules/postcss/lib/previous-map.js +++ /dev/null @@ -1,162 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _jsBase = require('js-base64'); - -var _sourceMap = require('source-map'); - -var _sourceMap2 = _interopRequireDefault(_sourceMap); - -var _path = require('path'); - -var _path2 = _interopRequireDefault(_path); - -var _fs = require('fs'); - -var _fs2 = _interopRequireDefault(_fs); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Source map information from input CSS. - * For example, source map after Sass compiler. - * - * This class will automatically find source map in input CSS or in file system - * near input file (according `from` option). - * - * @example - * const root = postcss.parse(css, { from: 'a.sass.css' }); - * root.input.map //=> PreviousMap - */ -var PreviousMap = function () { - - /** - * @param {string} css - input CSS source - * @param {processOptions} [opts] - {@link Processor#process} options - */ - function PreviousMap(css, opts) { - _classCallCheck(this, PreviousMap); - - this.loadAnnotation(css); - /** - * @member {boolean} - Was source map inlined by data-uri to input CSS. - */ - this.inline = this.startWith(this.annotation, 'data:'); - - var prev = opts.map ? opts.map.prev : undefined; - var text = this.loadMap(opts.from, prev); - if (text) this.text = text; - } - - /** - * Create a instance of `SourceMapGenerator` class - * from the `source-map` library to work with source map information. - * - * It is lazy method, so it will create object only on first call - * and then it will use cache. - * - * @return {SourceMapGenerator} object with source map information - */ - - - PreviousMap.prototype.consumer = function consumer() { - if (!this.consumerCache) { - this.consumerCache = new _sourceMap2.default.SourceMapConsumer(this.text); - } - return this.consumerCache; - }; - - /** - * Does source map contains `sourcesContent` with input source text. - * - * @return {boolean} Is `sourcesContent` present - */ - - - PreviousMap.prototype.withContent = function withContent() { - return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0); - }; - - PreviousMap.prototype.startWith = function startWith(string, start) { - if (!string) return false; - return string.substr(0, start.length) === start; - }; - - PreviousMap.prototype.loadAnnotation = function loadAnnotation(css) { - var match = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//); - if (match) this.annotation = match[1].trim(); - }; - - PreviousMap.prototype.decodeInline = function decodeInline(text) { - var utfd64 = 'data:application/json;charset=utf-8;base64,'; - var utf64 = 'data:application/json;charset=utf8;base64,'; - var b64 = 'data:application/json;base64,'; - var uri = 'data:application/json,'; - - if (this.startWith(text, uri)) { - return decodeURIComponent(text.substr(uri.length)); - } else if (this.startWith(text, b64)) { - return _jsBase.Base64.decode(text.substr(b64.length)); - } else if (this.startWith(text, utf64)) { - return _jsBase.Base64.decode(text.substr(utf64.length)); - } else if (this.startWith(text, utfd64)) { - return _jsBase.Base64.decode(text.substr(utfd64.length)); - } else { - var encoding = text.match(/data:application\/json;([^,]+),/)[1]; - throw new Error('Unsupported source map encoding ' + encoding); - } - }; - - PreviousMap.prototype.loadMap = function loadMap(file, prev) { - if (prev === false) return false; - - if (prev) { - if (typeof prev === 'string') { - return prev; - } else if (typeof prev === 'function') { - var prevPath = prev(file); - if (prevPath && _fs2.default.existsSync && _fs2.default.existsSync(prevPath)) { - return _fs2.default.readFileSync(prevPath, 'utf-8').toString().trim(); - } else { - throw new Error('Unable to load previous source map: ' + prevPath.toString()); - } - } else if (prev instanceof _sourceMap2.default.SourceMapConsumer) { - return _sourceMap2.default.SourceMapGenerator.fromSourceMap(prev).toString(); - } else if (prev instanceof _sourceMap2.default.SourceMapGenerator) { - return prev.toString(); - } else if (this.isMap(prev)) { - return JSON.stringify(prev); - } else { - throw new Error('Unsupported previous source map format: ' + prev.toString()); - } - } else if (this.inline) { - return this.decodeInline(this.annotation); - } else if (this.annotation) { - var map = this.annotation; - if (file) map = _path2.default.join(_path2.default.dirname(file), map); - - this.root = _path2.default.dirname(map); - if (_fs2.default.existsSync && _fs2.default.existsSync(map)) { - return _fs2.default.readFileSync(map, 'utf-8').toString().trim(); - } else { - return false; - } - } - }; - - PreviousMap.prototype.isMap = function isMap(map) { - if ((typeof map === 'undefined' ? 'undefined' : _typeof(map)) !== 'object') return false; - return typeof map.mappings === 'string' || typeof map._mappings === 'string'; - }; - - return PreviousMap; -}(); - -exports.default = PreviousMap; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByZXZpb3VzLW1hcC5lczYiXSwibmFtZXMiOlsiUHJldmlvdXNNYXAiLCJjc3MiLCJvcHRzIiwibG9hZEFubm90YXRpb24iLCJpbmxpbmUiLCJzdGFydFdpdGgiLCJhbm5vdGF0aW9uIiwicHJldiIsIm1hcCIsInVuZGVmaW5lZCIsInRleHQiLCJsb2FkTWFwIiwiZnJvbSIsImNvbnN1bWVyIiwiY29uc3VtZXJDYWNoZSIsIlNvdXJjZU1hcENvbnN1bWVyIiwid2l0aENvbnRlbnQiLCJzb3VyY2VzQ29udGVudCIsImxlbmd0aCIsInN0cmluZyIsInN0YXJ0Iiwic3Vic3RyIiwibWF0Y2giLCJ0cmltIiwiZGVjb2RlSW5saW5lIiwidXRmZDY0IiwidXRmNjQiLCJiNjQiLCJ1cmkiLCJkZWNvZGVVUklDb21wb25lbnQiLCJkZWNvZGUiLCJlbmNvZGluZyIsIkVycm9yIiwiZmlsZSIsInByZXZQYXRoIiwiZXhpc3RzU3luYyIsInJlYWRGaWxlU3luYyIsInRvU3RyaW5nIiwiU291cmNlTWFwR2VuZXJhdG9yIiwiZnJvbVNvdXJjZU1hcCIsImlzTWFwIiwiSlNPTiIsInN0cmluZ2lmeSIsImpvaW4iLCJkaXJuYW1lIiwicm9vdCIsIm1hcHBpbmdzIiwiX21hcHBpbmdzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7O0lBV01BLFc7O0FBRUY7Ozs7QUFJQSx5QkFBWUMsR0FBWixFQUFpQkMsSUFBakIsRUFBdUI7QUFBQTs7QUFDbkIsYUFBS0MsY0FBTCxDQUFvQkYsR0FBcEI7QUFDQTs7O0FBR0EsYUFBS0csTUFBTCxHQUFjLEtBQUtDLFNBQUwsQ0FBZSxLQUFLQyxVQUFwQixFQUFnQyxPQUFoQyxDQUFkOztBQUVBLFlBQUlDLE9BQU9MLEtBQUtNLEdBQUwsR0FBV04sS0FBS00sR0FBTCxDQUFTRCxJQUFwQixHQUEyQkUsU0FBdEM7QUFDQSxZQUFJQyxPQUFPLEtBQUtDLE9BQUwsQ0FBYVQsS0FBS1UsSUFBbEIsRUFBd0JMLElBQXhCLENBQVg7QUFDQSxZQUFLRyxJQUFMLEVBQVksS0FBS0EsSUFBTCxHQUFZQSxJQUFaO0FBQ2Y7O0FBRUQ7Ozs7Ozs7Ozs7OzBCQVNBRyxRLHVCQUFXO0FBQ1AsWUFBSyxDQUFDLEtBQUtDLGFBQVgsRUFBMkI7QUFDdkIsaUJBQUtBLGFBQUwsR0FBcUIsSUFBSSxvQkFBUUMsaUJBQVosQ0FBOEIsS0FBS0wsSUFBbkMsQ0FBckI7QUFDSDtBQUNELGVBQU8sS0FBS0ksYUFBWjtBQUNILEs7O0FBRUQ7Ozs7Ozs7MEJBS0FFLFcsMEJBQWM7QUFDVixlQUFPLENBQUMsRUFBRSxLQUFLSCxRQUFMLEdBQWdCSSxjQUFoQixJQUNBLEtBQUtKLFFBQUwsR0FBZ0JJLGNBQWhCLENBQStCQyxNQUEvQixHQUF3QyxDQUQxQyxDQUFSO0FBRUgsSzs7MEJBRURiLFMsc0JBQVVjLE0sRUFBUUMsSyxFQUFPO0FBQ3JCLFlBQUssQ0FBQ0QsTUFBTixFQUFlLE9BQU8sS0FBUDtBQUNmLGVBQU9BLE9BQU9FLE1BQVAsQ0FBYyxDQUFkLEVBQWlCRCxNQUFNRixNQUF2QixNQUFtQ0UsS0FBMUM7QUFDSCxLOzswQkFFRGpCLGMsMkJBQWVGLEcsRUFBSztBQUNoQixZQUFJcUIsUUFBUXJCLElBQUlxQixLQUFKLENBQVUsdUNBQVYsQ0FBWjtBQUNBLFlBQUtBLEtBQUwsRUFBYSxLQUFLaEIsVUFBTCxHQUFrQmdCLE1BQU0sQ0FBTixFQUFTQyxJQUFULEVBQWxCO0FBQ2hCLEs7OzBCQUVEQyxZLHlCQUFhZCxJLEVBQU07QUFDZixZQUFJZSxTQUFTLDZDQUFiO0FBQ0EsWUFBSUMsUUFBUyw0Q0FBYjtBQUNBLFlBQUlDLE1BQVMsK0JBQWI7QUFDQSxZQUFJQyxNQUFTLHdCQUFiOztBQUVBLFlBQUssS0FBS3ZCLFNBQUwsQ0FBZUssSUFBZixFQUFxQmtCLEdBQXJCLENBQUwsRUFBaUM7QUFDN0IsbUJBQU9DLG1CQUFvQm5CLEtBQUtXLE1BQUwsQ0FBWU8sSUFBSVYsTUFBaEIsQ0FBcEIsQ0FBUDtBQUVILFNBSEQsTUFHTyxJQUFLLEtBQUtiLFNBQUwsQ0FBZUssSUFBZixFQUFxQmlCLEdBQXJCLENBQUwsRUFBaUM7QUFDcEMsbUJBQU8sZUFBT0csTUFBUCxDQUFlcEIsS0FBS1csTUFBTCxDQUFZTSxJQUFJVCxNQUFoQixDQUFmLENBQVA7QUFFSCxTQUhNLE1BR0EsSUFBSyxLQUFLYixTQUFMLENBQWVLLElBQWYsRUFBcUJnQixLQUFyQixDQUFMLEVBQW1DO0FBQ3RDLG1CQUFPLGVBQU9JLE1BQVAsQ0FBZXBCLEtBQUtXLE1BQUwsQ0FBWUssTUFBTVIsTUFBbEIsQ0FBZixDQUFQO0FBRUgsU0FITSxNQUdBLElBQUssS0FBS2IsU0FBTCxDQUFlSyxJQUFmLEVBQXFCZSxNQUFyQixDQUFMLEVBQW9DO0FBQ3ZDLG1CQUFPLGVBQU9LLE1BQVAsQ0FBZXBCLEtBQUtXLE1BQUwsQ0FBWUksT0FBT1AsTUFBbkIsQ0FBZixDQUFQO0FBRUgsU0FITSxNQUdBO0FBQ0gsZ0JBQUlhLFdBQVdyQixLQUFLWSxLQUFMLENBQVcsaUNBQVgsRUFBOEMsQ0FBOUMsQ0FBZjtBQUNBLGtCQUFNLElBQUlVLEtBQUosQ0FBVSxxQ0FBcUNELFFBQS9DLENBQU47QUFDSDtBQUNKLEs7OzBCQUVEcEIsTyxvQkFBUXNCLEksRUFBTTFCLEksRUFBTTtBQUNoQixZQUFLQSxTQUFTLEtBQWQsRUFBc0IsT0FBTyxLQUFQOztBQUV0QixZQUFLQSxJQUFMLEVBQVk7QUFDUixnQkFBSyxPQUFPQSxJQUFQLEtBQWdCLFFBQXJCLEVBQWdDO0FBQzVCLHVCQUFPQSxJQUFQO0FBQ0gsYUFGRCxNQUVPLElBQUssT0FBT0EsSUFBUCxLQUFnQixVQUFyQixFQUFrQztBQUNyQyxvQkFBSTJCLFdBQVczQixLQUFLMEIsSUFBTCxDQUFmO0FBQ0Esb0JBQUtDLFlBQVksYUFBR0MsVUFBZixJQUE2QixhQUFHQSxVQUFILENBQWNELFFBQWQsQ0FBbEMsRUFBNEQ7QUFDeEQsMkJBQU8sYUFBR0UsWUFBSCxDQUFnQkYsUUFBaEIsRUFBMEIsT0FBMUIsRUFBbUNHLFFBQW5DLEdBQThDZCxJQUE5QyxFQUFQO0FBQ0gsaUJBRkQsTUFFTztBQUNILDBCQUFNLElBQUlTLEtBQUosQ0FBVSx5Q0FDaEJFLFNBQVNHLFFBQVQsRUFETSxDQUFOO0FBRUg7QUFDSixhQVJNLE1BUUEsSUFBSzlCLGdCQUFnQixvQkFBUVEsaUJBQTdCLEVBQWlEO0FBQ3BELHVCQUFPLG9CQUFRdUIsa0JBQVIsQ0FDRkMsYUFERSxDQUNZaEMsSUFEWixFQUNrQjhCLFFBRGxCLEVBQVA7QUFFSCxhQUhNLE1BR0EsSUFBSzlCLGdCQUFnQixvQkFBUStCLGtCQUE3QixFQUFrRDtBQUNyRCx1QkFBTy9CLEtBQUs4QixRQUFMLEVBQVA7QUFDSCxhQUZNLE1BRUEsSUFBSyxLQUFLRyxLQUFMLENBQVdqQyxJQUFYLENBQUwsRUFBd0I7QUFDM0IsdUJBQU9rQyxLQUFLQyxTQUFMLENBQWVuQyxJQUFmLENBQVA7QUFDSCxhQUZNLE1BRUE7QUFDSCxzQkFBTSxJQUFJeUIsS0FBSixDQUFVLDZDQUNaekIsS0FBSzhCLFFBQUwsRUFERSxDQUFOO0FBRUg7QUFFSixTQXZCRCxNQXVCTyxJQUFLLEtBQUtqQyxNQUFWLEVBQW1CO0FBQ3RCLG1CQUFPLEtBQUtvQixZQUFMLENBQWtCLEtBQUtsQixVQUF2QixDQUFQO0FBRUgsU0FITSxNQUdBLElBQUssS0FBS0EsVUFBVixFQUF1QjtBQUMxQixnQkFBSUUsTUFBTSxLQUFLRixVQUFmO0FBQ0EsZ0JBQUsyQixJQUFMLEVBQVl6QixNQUFNLGVBQUttQyxJQUFMLENBQVUsZUFBS0MsT0FBTCxDQUFhWCxJQUFiLENBQVYsRUFBOEJ6QixHQUE5QixDQUFOOztBQUVaLGlCQUFLcUMsSUFBTCxHQUFZLGVBQUtELE9BQUwsQ0FBYXBDLEdBQWIsQ0FBWjtBQUNBLGdCQUFLLGFBQUcyQixVQUFILElBQWlCLGFBQUdBLFVBQUgsQ0FBYzNCLEdBQWQsQ0FBdEIsRUFBMkM7QUFDdkMsdUJBQU8sYUFBRzRCLFlBQUgsQ0FBZ0I1QixHQUFoQixFQUFxQixPQUFyQixFQUE4QjZCLFFBQTlCLEdBQXlDZCxJQUF6QyxFQUFQO0FBQ0gsYUFGRCxNQUVPO0FBQ0gsdUJBQU8sS0FBUDtBQUNIO0FBQ0o7QUFDSixLOzswQkFFRGlCLEssa0JBQU1oQyxHLEVBQUs7QUFDUCxZQUFLLFFBQU9BLEdBQVAseUNBQU9BLEdBQVAsT0FBZSxRQUFwQixFQUErQixPQUFPLEtBQVA7QUFDL0IsZUFBTyxPQUFPQSxJQUFJc0MsUUFBWCxLQUF3QixRQUF4QixJQUNBLE9BQU90QyxJQUFJdUMsU0FBWCxLQUF5QixRQURoQztBQUVILEs7Ozs7O2tCQUdVL0MsVyIsImZpbGUiOiJwcmV2aW91cy1tYXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlNjQgfSBmcm9tICdqcy1iYXNlNjQnO1xuaW1wb3J0ICAgbW96aWxsYSAgZnJvbSAnc291cmNlLW1hcCc7XG5pbXBvcnQgICBwYXRoICAgICBmcm9tICdwYXRoJztcbmltcG9ydCAgIGZzICAgICAgIGZyb20gJ2ZzJztcblxuLyoqXG4gKiBTb3VyY2UgbWFwIGluZm9ybWF0aW9uIGZyb20gaW5wdXQgQ1NTLlxuICogRm9yIGV4YW1wbGUsIHNvdXJjZSBtYXAgYWZ0ZXIgU2FzcyBjb21waWxlci5cbiAqXG4gKiBUaGlzIGNsYXNzIHdpbGwgYXV0b21hdGljYWxseSBmaW5kIHNvdXJjZSBtYXAgaW4gaW5wdXQgQ1NTIG9yIGluIGZpbGUgc3lzdGVtXG4gKiBuZWFyIGlucHV0IGZpbGUgKGFjY29yZGluZyBgZnJvbWAgb3B0aW9uKS5cbiAqXG4gKiBAZXhhbXBsZVxuICogY29uc3Qgcm9vdCA9IHBvc3Rjc3MucGFyc2UoY3NzLCB7IGZyb206ICdhLnNhc3MuY3NzJyB9KTtcbiAqIHJvb3QuaW5wdXQubWFwIC8vPT4gUHJldmlvdXNNYXBcbiAqL1xuY2xhc3MgUHJldmlvdXNNYXAge1xuXG4gICAgLyoqXG4gICAgICogQHBhcmFtIHtzdHJpbmd9ICAgICAgICAgY3NzICAgIC0gaW5wdXQgQ1NTIHNvdXJjZVxuICAgICAqIEBwYXJhbSB7cHJvY2Vzc09wdGlvbnN9IFtvcHRzXSAtIHtAbGluayBQcm9jZXNzb3IjcHJvY2Vzc30gb3B0aW9uc1xuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKGNzcywgb3B0cykge1xuICAgICAgICB0aGlzLmxvYWRBbm5vdGF0aW9uKGNzcyk7XG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAbWVtYmVyIHtib29sZWFufSAtIFdhcyBzb3VyY2UgbWFwIGlubGluZWQgYnkgZGF0YS11cmkgdG8gaW5wdXQgQ1NTLlxuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy5pbmxpbmUgPSB0aGlzLnN0YXJ0V2l0aCh0aGlzLmFubm90YXRpb24sICdkYXRhOicpO1xuXG4gICAgICAgIGxldCBwcmV2ID0gb3B0cy5tYXAgPyBvcHRzLm1hcC5wcmV2IDogdW5kZWZpbmVkO1xuICAgICAgICBsZXQgdGV4dCA9IHRoaXMubG9hZE1hcChvcHRzLmZyb20sIHByZXYpO1xuICAgICAgICBpZiAoIHRleHQgKSB0aGlzLnRleHQgPSB0ZXh0O1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIENyZWF0ZSBhIGluc3RhbmNlIG9mIGBTb3VyY2VNYXBHZW5lcmF0b3JgIGNsYXNzXG4gICAgICogZnJvbSB0aGUgYHNvdXJjZS1tYXBgIGxpYnJhcnkgdG8gd29yayB3aXRoIHNvdXJjZSBtYXAgaW5mb3JtYXRpb24uXG4gICAgICpcbiAgICAgKiBJdCBpcyBsYXp5IG1ldGhvZCwgc28gaXQgd2lsbCBjcmVhdGUgb2JqZWN0IG9ubHkgb24gZmlyc3QgY2FsbFxuICAgICAqIGFuZCB0aGVuIGl0IHdpbGwgdXNlIGNhY2hlLlxuICAgICAqXG4gICAgICogQHJldHVybiB7U291cmNlTWFwR2VuZXJhdG9yfSBvYmplY3Qgd2l0aCBzb3VyY2UgbWFwIGluZm9ybWF0aW9uXG4gICAgICovXG4gICAgY29uc3VtZXIoKSB7XG4gICAgICAgIGlmICggIXRoaXMuY29uc3VtZXJDYWNoZSApIHtcbiAgICAgICAgICAgIHRoaXMuY29uc3VtZXJDYWNoZSA9IG5ldyBtb3ppbGxhLlNvdXJjZU1hcENvbnN1bWVyKHRoaXMudGV4dCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRoaXMuY29uc3VtZXJDYWNoZTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBEb2VzIHNvdXJjZSBtYXAgY29udGFpbnMgYHNvdXJjZXNDb250ZW50YCB3aXRoIGlucHV0IHNvdXJjZSB0ZXh0LlxuICAgICAqXG4gICAgICogQHJldHVybiB7Ym9vbGVhbn0gSXMgYHNvdXJjZXNDb250ZW50YCBwcmVzZW50XG4gICAgICovXG4gICAgd2l0aENvbnRlbnQoKSB7XG4gICAgICAgIHJldHVybiAhISh0aGlzLmNvbnN1bWVyKCkuc291cmNlc0NvbnRlbnQgJiZcbiAgICAgICAgICAgICAgICAgIHRoaXMuY29uc3VtZXIoKS5zb3VyY2VzQ29udGVudC5sZW5ndGggPiAwKTtcbiAgICB9XG5cbiAgICBzdGFydFdpdGgoc3RyaW5nLCBzdGFydCkge1xuICAgICAgICBpZiAoICFzdHJpbmcgKSByZXR1cm4gZmFsc2U7XG4gICAgICAgIHJldHVybiBzdHJpbmcuc3Vic3RyKDAsIHN0YXJ0Lmxlbmd0aCkgPT09IHN0YXJ0O1xuICAgIH1cblxuICAgIGxvYWRBbm5vdGF0aW9uKGNzcykge1xuICAgICAgICBsZXQgbWF0Y2ggPSBjc3MubWF0Y2goL1xcL1xcKlxccyojIHNvdXJjZU1hcHBpbmdVUkw9KC4qKVxccypcXCpcXC8vKTtcbiAgICAgICAgaWYgKCBtYXRjaCApIHRoaXMuYW5ub3RhdGlvbiA9IG1hdGNoWzFdLnRyaW0oKTtcbiAgICB9XG5cbiAgICBkZWNvZGVJbmxpbmUodGV4dCkge1xuICAgICAgICBsZXQgdXRmZDY0ID0gJ2RhdGE6YXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04O2Jhc2U2NCwnO1xuICAgICAgICBsZXQgdXRmNjQgID0gJ2RhdGE6YXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zjg7YmFzZTY0LCc7XG4gICAgICAgIGxldCBiNjQgICAgPSAnZGF0YTphcHBsaWNhdGlvbi9qc29uO2Jhc2U2NCwnO1xuICAgICAgICBsZXQgdXJpICAgID0gJ2RhdGE6YXBwbGljYXRpb24vanNvbiwnO1xuXG4gICAgICAgIGlmICggdGhpcy5zdGFydFdpdGgodGV4dCwgdXJpKSApIHtcbiAgICAgICAgICAgIHJldHVybiBkZWNvZGVVUklDb21wb25lbnQoIHRleHQuc3Vic3RyKHVyaS5sZW5ndGgpICk7XG5cbiAgICAgICAgfSBlbHNlIGlmICggdGhpcy5zdGFydFdpdGgodGV4dCwgYjY0KSApIHtcbiAgICAgICAgICAgIHJldHVybiBCYXNlNjQuZGVjb2RlKCB0ZXh0LnN1YnN0cihiNjQubGVuZ3RoKSApO1xuXG4gICAgICAgIH0gZWxzZSBpZiAoIHRoaXMuc3RhcnRXaXRoKHRleHQsIHV0ZjY0KSApIHtcbiAgICAgICAgICAgIHJldHVybiBCYXNlNjQuZGVjb2RlKCB0ZXh0LnN1YnN0cih1dGY2NC5sZW5ndGgpICk7XG5cbiAgICAgICAgfSBlbHNlIGlmICggdGhpcy5zdGFydFdpdGgodGV4dCwgdXRmZDY0KSApIHtcbiAgICAgICAgICAgIHJldHVybiBCYXNlNjQuZGVjb2RlKCB0ZXh0LnN1YnN0cih1dGZkNjQubGVuZ3RoKSApO1xuXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsZXQgZW5jb2RpbmcgPSB0ZXh0Lm1hdGNoKC9kYXRhOmFwcGxpY2F0aW9uXFwvanNvbjsoW14sXSspLC8pWzFdO1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdVbnN1cHBvcnRlZCBzb3VyY2UgbWFwIGVuY29kaW5nICcgKyBlbmNvZGluZyk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBsb2FkTWFwKGZpbGUsIHByZXYpIHtcbiAgICAgICAgaWYgKCBwcmV2ID09PSBmYWxzZSApIHJldHVybiBmYWxzZTtcblxuICAgICAgICBpZiAoIHByZXYgKSB7XG4gICAgICAgICAgICBpZiAoIHR5cGVvZiBwcmV2ID09PSAnc3RyaW5nJyApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gcHJldjtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIHR5cGVvZiBwcmV2ID09PSAnZnVuY3Rpb24nICkge1xuICAgICAgICAgICAgICAgIGxldCBwcmV2UGF0aCA9IHByZXYoZmlsZSk7XG4gICAgICAgICAgICAgICAgaWYgKCBwcmV2UGF0aCAmJiBmcy5leGlzdHNTeW5jICYmIGZzLmV4aXN0c1N5bmMocHJldlBhdGgpICkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZnMucmVhZEZpbGVTeW5jKHByZXZQYXRoLCAndXRmLTgnKS50b1N0cmluZygpLnRyaW0oKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1VuYWJsZSB0byBsb2FkIHByZXZpb3VzIHNvdXJjZSBtYXA6ICcgK1xuICAgICAgICAgICAgICAgICAgICBwcmV2UGF0aC50b1N0cmluZygpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCBwcmV2IGluc3RhbmNlb2YgbW96aWxsYS5Tb3VyY2VNYXBDb25zdW1lciApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gbW96aWxsYS5Tb3VyY2VNYXBHZW5lcmF0b3JcbiAgICAgICAgICAgICAgICAgICAgLmZyb21Tb3VyY2VNYXAocHJldikudG9TdHJpbmcoKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAoIHByZXYgaW5zdGFuY2VvZiBtb3ppbGxhLlNvdXJjZU1hcEdlbmVyYXRvciApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gcHJldi50b1N0cmluZygpO1xuICAgICAgICAgICAgfSBlbHNlIGlmICggdGhpcy5pc01hcChwcmV2KSApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkocHJldik7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignVW5zdXBwb3J0ZWQgcHJldmlvdXMgc291cmNlIG1hcCBmb3JtYXQ6ICcgK1xuICAgICAgICAgICAgICAgICAgICBwcmV2LnRvU3RyaW5nKCkpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgIH0gZWxzZSBpZiAoIHRoaXMuaW5saW5lICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuZGVjb2RlSW5saW5lKHRoaXMuYW5ub3RhdGlvbik7XG5cbiAgICAgICAgfSBlbHNlIGlmICggdGhpcy5hbm5vdGF0aW9uICkge1xuICAgICAgICAgICAgbGV0IG1hcCA9IHRoaXMuYW5ub3RhdGlvbjtcbiAgICAgICAgICAgIGlmICggZmlsZSApIG1hcCA9IHBhdGguam9pbihwYXRoLmRpcm5hbWUoZmlsZSksIG1hcCk7XG5cbiAgICAgICAgICAgIHRoaXMucm9vdCA9IHBhdGguZGlybmFtZShtYXApO1xuICAgICAgICAgICAgaWYgKCBmcy5leGlzdHNTeW5jICYmIGZzLmV4aXN0c1N5bmMobWFwKSApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZnMucmVhZEZpbGVTeW5jKG1hcCwgJ3V0Zi04JykudG9TdHJpbmcoKS50cmltKCk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIGlzTWFwKG1hcCkge1xuICAgICAgICBpZiAoIHR5cGVvZiBtYXAgIT09ICdvYmplY3QnICkgcmV0dXJuIGZhbHNlO1xuICAgICAgICByZXR1cm4gdHlwZW9mIG1hcC5tYXBwaW5ncyA9PT0gJ3N0cmluZycgfHxcbiAgICAgICAgICAgICAgIHR5cGVvZiBtYXAuX21hcHBpbmdzID09PSAnc3RyaW5nJztcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IFByZXZpb3VzTWFwO1xuIl19 diff --git a/node_modules/postcss/lib/processor.js b/node_modules/postcss/lib/processor.js deleted file mode 100644 index ecf220c..0000000 --- a/node_modules/postcss/lib/processor.js +++ /dev/null @@ -1,240 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _lazyResult = require('./lazy-result'); - -var _lazyResult2 = _interopRequireDefault(_lazyResult); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Contains plugins to process CSS. Create one `Processor` instance, - * initialize its plugins, and then use that instance on numerous CSS files. - * - * @example - * const processor = postcss([autoprefixer, precss]); - * processor.process(css1).then(result => console.log(result.css)); - * processor.process(css2).then(result => console.log(result.css)); - */ -var Processor = function () { - - /** - * @param {Array.|Processor} plugins - PostCSS - * plugins. See {@link Processor#use} for plugin format. - */ - function Processor() { - var plugins = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - - _classCallCheck(this, Processor); - - /** - * @member {string} - Current PostCSS version. - * - * @example - * if ( result.processor.version.split('.')[0] !== '5' ) { - * throw new Error('This plugin works only with PostCSS 5'); - * } - */ - this.version = '5.2.15'; - /** - * @member {pluginFunction[]} - Plugins added to this processor. - * - * @example - * const processor = postcss([autoprefixer, precss]); - * processor.plugins.length //=> 2 - */ - this.plugins = this.normalize(plugins); - } - - /** - * Adds a plugin to be used as a CSS processor. - * - * PostCSS plugin can be in 4 formats: - * * A plugin created by {@link postcss.plugin} method. - * * A function. PostCSS will pass the function a @{link Root} - * as the first argument and current {@link Result} instance - * as the second. - * * An object with a `postcss` method. PostCSS will use that method - * as described in #2. - * * Another {@link Processor} instance. PostCSS will copy plugins - * from that instance into this one. - * - * Plugins can also be added by passing them as arguments when creating - * a `postcss` instance (see [`postcss(plugins)`]). - * - * Asynchronous plugins should return a `Promise` instance. - * - * @param {Plugin|pluginFunction|Processor} plugin - PostCSS plugin - * or {@link Processor} - * with plugins - * - * @example - * const processor = postcss() - * .use(autoprefixer) - * .use(precss); - * - * @return {Processes} current processor to make methods chain - */ - - - Processor.prototype.use = function use(plugin) { - this.plugins = this.plugins.concat(this.normalize([plugin])); - return this; - }; - - /** - * Parses source CSS and returns a {@link LazyResult} Promise proxy. - * Because some plugins can be asynchronous it doesn’t make - * any transformations. Transformations will be applied - * in the {@link LazyResult} methods. - * - * @param {string|toString|Result} css - String with input CSS or - * any object with a `toString()` - * method, like a Buffer. - * Optionally, send a {@link Result} - * instance and the processor will - * take the {@link Root} from it. - * @param {processOptions} [opts] - options - * - * @return {LazyResult} Promise proxy - * - * @example - * processor.process(css, { from: 'a.css', to: 'a.out.css' }) - * .then(result => { - * console.log(result.css); - * }); - */ - - - Processor.prototype.process = function process(css) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - return new _lazyResult2.default(this, css, opts); - }; - - Processor.prototype.normalize = function normalize(plugins) { - var normalized = []; - for (var _iterator = plugins, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var i = _ref; - - if (i.postcss) i = i.postcss; - - if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && Array.isArray(i.plugins)) { - normalized = normalized.concat(i.plugins); - } else if (typeof i === 'function') { - normalized.push(i); - } else if ((typeof i === 'undefined' ? 'undefined' : _typeof(i)) === 'object' && (i.parse || i.stringify)) { - throw new Error('PostCSS syntaxes cannot be used as plugins. ' + 'Instead, please use one of the ' + 'syntax/parser/stringifier options as ' + 'outlined in your PostCSS ' + 'runner documentation.'); - } else { - throw new Error(i + ' is not a PostCSS plugin'); - } - } - return normalized; - }; - - return Processor; -}(); - -exports.default = Processor; - -/** - * @callback builder - * @param {string} part - part of generated CSS connected to this node - * @param {Node} node - AST node - * @param {"start"|"end"} [type] - node’s part type - */ - -/** - * @callback parser - * - * @param {string|toString} css - string with input CSS or any object - * with toString() method, like a Buffer - * @param {processOptions} [opts] - options with only `from` and `map` keys - * - * @return {Root} PostCSS AST - */ - -/** - * @callback stringifier - * - * @param {Node} node - start node for stringifing. Usually {@link Root}. - * @param {builder} builder - function to concatenate CSS from node’s parts - * or generate string and source map - * - * @return {void} - */ - -/** - * @typedef {object} syntax - * @property {parser} parse - function to generate AST by string - * @property {stringifier} stringify - function to generate string by AST - */ - -/** - * @typedef {object} toString - * @property {function} toString - */ - -/** - * @callback pluginFunction - * @param {Root} root - parsed input CSS - * @param {Result} result - result to set warnings or check other plugins - */ - -/** - * @typedef {object} Plugin - * @property {function} postcss - PostCSS plugin function - */ - -/** - * @typedef {object} processOptions - * @property {string} from - the path of the CSS source file. - * You should always set `from`, - * because it is used in source map - * generation and syntax error messages. - * @property {string} to - the path where you’ll put the output - * CSS file. You should always set `to` - * to generate correct source maps. - * @property {parser} parser - function to generate AST by string - * @property {stringifier} stringifier - class to generate string by AST - * @property {syntax} syntax - object with `parse` and `stringify` - * @property {object} map - source map options - * @property {boolean} map.inline - does source map should - * be embedded in the output - * CSS as a base64-encoded - * comment - * @property {string|object|false|function} map.prev - source map content - * from a previous - * processing step - * (for example, Sass). - * PostCSS will try to find - * previous map - * automatically, so you - * could disable it by - * `false` value. - * @property {boolean} map.sourcesContent - does PostCSS should set - * the origin content to map - * @property {string|false} map.annotation - does PostCSS should set - * annotation comment to map - * @property {string} map.from - override `from` in map’s - * `sources` - */ - -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2Nlc3Nvci5lczYiXSwibmFtZXMiOlsiUHJvY2Vzc29yIiwicGx1Z2lucyIsInZlcnNpb24iLCJub3JtYWxpemUiLCJ1c2UiLCJwbHVnaW4iLCJjb25jYXQiLCJwcm9jZXNzIiwiY3NzIiwib3B0cyIsIm5vcm1hbGl6ZWQiLCJpIiwicG9zdGNzcyIsIkFycmF5IiwiaXNBcnJheSIsInB1c2giLCJwYXJzZSIsInN0cmluZ2lmeSIsIkVycm9yIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7O0lBU01BLFM7O0FBRUY7Ozs7QUFJQSx1QkFBMEI7QUFBQSxRQUFkQyxPQUFjLHVFQUFKLEVBQUk7O0FBQUE7O0FBQ3RCOzs7Ozs7OztBQVFBLFNBQUtDLE9BQUwsR0FBZSxRQUFmO0FBQ0E7Ozs7Ozs7QUFPQSxTQUFLRCxPQUFMLEdBQWUsS0FBS0UsU0FBTCxDQUFlRixPQUFmLENBQWY7QUFDSDs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztzQkE2QkFHLEcsZ0JBQUlDLE0sRUFBUTtBQUNSLFNBQUtKLE9BQUwsR0FBZSxLQUFLQSxPQUFMLENBQWFLLE1BQWIsQ0FBb0IsS0FBS0gsU0FBTCxDQUFlLENBQUNFLE1BQUQsQ0FBZixDQUFwQixDQUFmO0FBQ0EsV0FBTyxJQUFQO0FBQ0gsRzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O3NCQXNCQUUsTyxvQkFBUUMsRyxFQUFpQjtBQUFBLFFBQVpDLElBQVksdUVBQUwsRUFBSzs7QUFDckIsV0FBTyx5QkFBZSxJQUFmLEVBQXFCRCxHQUFyQixFQUEwQkMsSUFBMUIsQ0FBUDtBQUNILEc7O3NCQUVETixTLHNCQUFVRixPLEVBQVM7QUFDZixRQUFJUyxhQUFhLEVBQWpCO0FBQ0EseUJBQWVULE9BQWYsa0hBQXlCO0FBQUE7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFBQSxVQUFmVSxDQUFlOztBQUNyQixVQUFLQSxFQUFFQyxPQUFQLEVBQWlCRCxJQUFJQSxFQUFFQyxPQUFOOztBQUVqQixVQUFLLFFBQU9ELENBQVAseUNBQU9BLENBQVAsT0FBYSxRQUFiLElBQXlCRSxNQUFNQyxPQUFOLENBQWNILEVBQUVWLE9BQWhCLENBQTlCLEVBQXlEO0FBQ3JEUyxxQkFBYUEsV0FBV0osTUFBWCxDQUFrQkssRUFBRVYsT0FBcEIsQ0FBYjtBQUNILE9BRkQsTUFFTyxJQUFLLE9BQU9VLENBQVAsS0FBYSxVQUFsQixFQUErQjtBQUNsQ0QsbUJBQVdLLElBQVgsQ0FBZ0JKLENBQWhCO0FBQ0gsT0FGTSxNQUVBLElBQUssUUFBT0EsQ0FBUCx5Q0FBT0EsQ0FBUCxPQUFhLFFBQWIsS0FBMEJBLEVBQUVLLEtBQUYsSUFBV0wsRUFBRU0sU0FBdkMsQ0FBTCxFQUF5RDtBQUM1RCxjQUFNLElBQUlDLEtBQUosQ0FBVSxpREFDQSxpQ0FEQSxHQUVBLHVDQUZBLEdBR0EsMkJBSEEsR0FJQSx1QkFKVixDQUFOO0FBS0gsT0FOTSxNQU1BO0FBQ0gsY0FBTSxJQUFJQSxLQUFKLENBQVVQLElBQUksMEJBQWQsQ0FBTjtBQUNIO0FBQ0o7QUFDRCxXQUFPRCxVQUFQO0FBQ0gsRzs7Ozs7a0JBSVVWLFM7O0FBRWY7Ozs7Ozs7QUFPQTs7Ozs7Ozs7OztBQVVBOzs7Ozs7Ozs7O0FBVUE7Ozs7OztBQU1BOzs7OztBQUtBOzs7Ozs7QUFNQTs7Ozs7QUFLQSIsImZpbGUiOiJwcm9jZXNzb3IuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgTGF6eVJlc3VsdCAgZnJvbSAnLi9sYXp5LXJlc3VsdCc7XG5cbi8qKlxuICogQ29udGFpbnMgcGx1Z2lucyB0byBwcm9jZXNzIENTUy4gQ3JlYXRlIG9uZSBgUHJvY2Vzc29yYCBpbnN0YW5jZSxcbiAqIGluaXRpYWxpemUgaXRzIHBsdWdpbnMsIGFuZCB0aGVuIHVzZSB0aGF0IGluc3RhbmNlIG9uIG51bWVyb3VzIENTUyBmaWxlcy5cbiAqXG4gKiBAZXhhbXBsZVxuICogY29uc3QgcHJvY2Vzc29yID0gcG9zdGNzcyhbYXV0b3ByZWZpeGVyLCBwcmVjc3NdKTtcbiAqIHByb2Nlc3Nvci5wcm9jZXNzKGNzczEpLnRoZW4ocmVzdWx0ID0+IGNvbnNvbGUubG9nKHJlc3VsdC5jc3MpKTtcbiAqIHByb2Nlc3Nvci5wcm9jZXNzKGNzczIpLnRoZW4ocmVzdWx0ID0+IGNvbnNvbGUubG9nKHJlc3VsdC5jc3MpKTtcbiAqL1xuY2xhc3MgUHJvY2Vzc29yIHtcblxuICAgIC8qKlxuICAgICAqIEBwYXJhbSB7QXJyYXkuPFBsdWdpbnxwbHVnaW5GdW5jdGlvbj58UHJvY2Vzc29yfSBwbHVnaW5zIC0gUG9zdENTU1xuICAgICAqICAgICAgICBwbHVnaW5zLiBTZWUge0BsaW5rIFByb2Nlc3NvciN1c2V9IGZvciBwbHVnaW4gZm9ybWF0LlxuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKHBsdWdpbnMgPSBbXSkge1xuICAgICAgICAvKipcbiAgICAgICAgICogQG1lbWJlciB7c3RyaW5nfSAtIEN1cnJlbnQgUG9zdENTUyB2ZXJzaW9uLlxuICAgICAgICAgKlxuICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgKiBpZiAoIHJlc3VsdC5wcm9jZXNzb3IudmVyc2lvbi5zcGxpdCgnLicpWzBdICE9PSAnNScgKSB7XG4gICAgICAgICAqICAgdGhyb3cgbmV3IEVycm9yKCdUaGlzIHBsdWdpbiB3b3JrcyBvbmx5IHdpdGggUG9zdENTUyA1Jyk7XG4gICAgICAgICAqIH1cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMudmVyc2lvbiA9ICc1LjIuMTUnO1xuICAgICAgICAvKipcbiAgICAgICAgICogQG1lbWJlciB7cGx1Z2luRnVuY3Rpb25bXX0gLSBQbHVnaW5zIGFkZGVkIHRvIHRoaXMgcHJvY2Vzc29yLlxuICAgICAgICAgKlxuICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgKiBjb25zdCBwcm9jZXNzb3IgPSBwb3N0Y3NzKFthdXRvcHJlZml4ZXIsIHByZWNzc10pO1xuICAgICAgICAgKiBwcm9jZXNzb3IucGx1Z2lucy5sZW5ndGggLy89PiAyXG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnBsdWdpbnMgPSB0aGlzLm5vcm1hbGl6ZShwbHVnaW5zKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBBZGRzIGEgcGx1Z2luIHRvIGJlIHVzZWQgYXMgYSBDU1MgcHJvY2Vzc29yLlxuICAgICAqXG4gICAgICogUG9zdENTUyBwbHVnaW4gY2FuIGJlIGluIDQgZm9ybWF0czpcbiAgICAgKiAqIEEgcGx1Z2luIGNyZWF0ZWQgYnkge0BsaW5rIHBvc3Rjc3MucGx1Z2lufSBtZXRob2QuXG4gICAgICogKiBBIGZ1bmN0aW9uLiBQb3N0Q1NTIHdpbGwgcGFzcyB0aGUgZnVuY3Rpb24gYSBAe2xpbmsgUm9vdH1cbiAgICAgKiAgIGFzIHRoZSBmaXJzdCBhcmd1bWVudCBhbmQgY3VycmVudCB7QGxpbmsgUmVzdWx0fSBpbnN0YW5jZVxuICAgICAqICAgYXMgdGhlIHNlY29uZC5cbiAgICAgKiAqIEFuIG9iamVjdCB3aXRoIGEgYHBvc3Rjc3NgIG1ldGhvZC4gUG9zdENTUyB3aWxsIHVzZSB0aGF0IG1ldGhvZFxuICAgICAqICAgYXMgZGVzY3JpYmVkIGluICMyLlxuICAgICAqICogQW5vdGhlciB7QGxpbmsgUHJvY2Vzc29yfSBpbnN0YW5jZS4gUG9zdENTUyB3aWxsIGNvcHkgcGx1Z2luc1xuICAgICAqICAgZnJvbSB0aGF0IGluc3RhbmNlIGludG8gdGhpcyBvbmUuXG4gICAgICpcbiAgICAgKiBQbHVnaW5zIGNhbiBhbHNvIGJlIGFkZGVkIGJ5IHBhc3NpbmcgdGhlbSBhcyBhcmd1bWVudHMgd2hlbiBjcmVhdGluZ1xuICAgICAqIGEgYHBvc3Rjc3NgIGluc3RhbmNlIChzZWUgW2Bwb3N0Y3NzKHBsdWdpbnMpYF0pLlxuICAgICAqXG4gICAgICogQXN5bmNocm9ub3VzIHBsdWdpbnMgc2hvdWxkIHJldHVybiBhIGBQcm9taXNlYCBpbnN0YW5jZS5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7UGx1Z2lufHBsdWdpbkZ1bmN0aW9ufFByb2Nlc3Nvcn0gcGx1Z2luIC0gUG9zdENTUyBwbHVnaW5cbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yIHtAbGluayBQcm9jZXNzb3J9XG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aXRoIHBsdWdpbnNcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogY29uc3QgcHJvY2Vzc29yID0gcG9zdGNzcygpXG4gICAgICogICAudXNlKGF1dG9wcmVmaXhlcilcbiAgICAgKiAgIC51c2UocHJlY3NzKTtcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge1Byb2Nlc3Nlc30gY3VycmVudCBwcm9jZXNzb3IgdG8gbWFrZSBtZXRob2RzIGNoYWluXG4gICAgICovXG4gICAgdXNlKHBsdWdpbikge1xuICAgICAgICB0aGlzLnBsdWdpbnMgPSB0aGlzLnBsdWdpbnMuY29uY2F0KHRoaXMubm9ybWFsaXplKFtwbHVnaW5dKSk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFBhcnNlcyBzb3VyY2UgQ1NTIGFuZCByZXR1cm5zIGEge0BsaW5rIExhenlSZXN1bHR9IFByb21pc2UgcHJveHkuXG4gICAgICogQmVjYXVzZSBzb21lIHBsdWdpbnMgY2FuIGJlIGFzeW5jaHJvbm91cyBpdCBkb2VzbuKAmXQgbWFrZVxuICAgICAqIGFueSB0cmFuc2Zvcm1hdGlvbnMuIFRyYW5zZm9ybWF0aW9ucyB3aWxsIGJlIGFwcGxpZWRcbiAgICAgKiBpbiB0aGUge0BsaW5rIExhenlSZXN1bHR9IG1ldGhvZHMuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge3N0cmluZ3x0b1N0cmluZ3xSZXN1bHR9IGNzcyAtIFN0cmluZyB3aXRoIGlucHV0IENTUyBvclxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYW55IG9iamVjdCB3aXRoIGEgYHRvU3RyaW5nKClgXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXRob2QsIGxpa2UgYSBCdWZmZXIuXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBPcHRpb25hbGx5LCBzZW5kIGEge0BsaW5rIFJlc3VsdH1cbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGluc3RhbmNlIGFuZCB0aGUgcHJvY2Vzc29yIHdpbGxcbiAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRha2UgdGhlIHtAbGluayBSb290fSBmcm9tIGl0LlxuICAgICAqIEBwYXJhbSB7cHJvY2Vzc09wdGlvbnN9IFtvcHRzXSAgICAgIC0gb3B0aW9uc1xuICAgICAqXG4gICAgICogQHJldHVybiB7TGF6eVJlc3VsdH0gUHJvbWlzZSBwcm94eVxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiBwcm9jZXNzb3IucHJvY2Vzcyhjc3MsIHsgZnJvbTogJ2EuY3NzJywgdG86ICdhLm91dC5jc3MnIH0pXG4gICAgICogICAudGhlbihyZXN1bHQgPT4ge1xuICAgICAqICAgICAgY29uc29sZS5sb2cocmVzdWx0LmNzcyk7XG4gICAgICogICB9KTtcbiAgICAgKi9cbiAgICBwcm9jZXNzKGNzcywgb3B0cyA9IHsgfSkge1xuICAgICAgICByZXR1cm4gbmV3IExhenlSZXN1bHQodGhpcywgY3NzLCBvcHRzKTtcbiAgICB9XG5cbiAgICBub3JtYWxpemUocGx1Z2lucykge1xuICAgICAgICBsZXQgbm9ybWFsaXplZCA9IFtdO1xuICAgICAgICBmb3IgKCBsZXQgaSBvZiBwbHVnaW5zICkge1xuICAgICAgICAgICAgaWYgKCBpLnBvc3Rjc3MgKSBpID0gaS5wb3N0Y3NzO1xuXG4gICAgICAgICAgICBpZiAoIHR5cGVvZiBpID09PSAnb2JqZWN0JyAmJiBBcnJheS5pc0FycmF5KGkucGx1Z2lucykgKSB7XG4gICAgICAgICAgICAgICAgbm9ybWFsaXplZCA9IG5vcm1hbGl6ZWQuY29uY2F0KGkucGx1Z2lucyk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCB0eXBlb2YgaSA9PT0gJ2Z1bmN0aW9uJyApIHtcbiAgICAgICAgICAgICAgICBub3JtYWxpemVkLnB1c2goaSk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKCB0eXBlb2YgaSA9PT0gJ29iamVjdCcgJiYgKGkucGFyc2UgfHwgaS5zdHJpbmdpZnkpICkge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcignUG9zdENTUyBzeW50YXhlcyBjYW5ub3QgYmUgdXNlZCBhcyBwbHVnaW5zLiAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ0luc3RlYWQsIHBsZWFzZSB1c2Ugb25lIG9mIHRoZSAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3N5bnRheC9wYXJzZXIvc3RyaW5naWZpZXIgb3B0aW9ucyBhcyAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ291dGxpbmVkIGluIHlvdXIgUG9zdENTUyAnICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3J1bm5lciBkb2N1bWVudGF0aW9uLicpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoaSArICcgaXMgbm90IGEgUG9zdENTUyBwbHVnaW4nKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbm9ybWFsaXplZDtcbiAgICB9XG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgUHJvY2Vzc29yO1xuXG4vKipcbiAqIEBjYWxsYmFjayBidWlsZGVyXG4gKiBAcGFyYW0ge3N0cmluZ30gcGFydCAgICAgICAgICAtIHBhcnQgb2YgZ2VuZXJhdGVkIENTUyBjb25uZWN0ZWQgdG8gdGhpcyBub2RlXG4gKiBAcGFyYW0ge05vZGV9ICAgbm9kZSAgICAgICAgICAtIEFTVCBub2RlXG4gKiBAcGFyYW0ge1wic3RhcnRcInxcImVuZFwifSBbdHlwZV0gLSBub2Rl4oCZcyBwYXJ0IHR5cGVcbiAqL1xuXG4vKipcbiAqIEBjYWxsYmFjayBwYXJzZXJcbiAqXG4gKiBAcGFyYW0ge3N0cmluZ3x0b1N0cmluZ30gY3NzICAgLSBzdHJpbmcgd2l0aCBpbnB1dCBDU1Mgb3IgYW55IG9iamVjdFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2l0aCB0b1N0cmluZygpIG1ldGhvZCwgbGlrZSBhIEJ1ZmZlclxuICogQHBhcmFtIHtwcm9jZXNzT3B0aW9uc30gW29wdHNdIC0gb3B0aW9ucyB3aXRoIG9ubHkgYGZyb21gIGFuZCBgbWFwYCBrZXlzXG4gKlxuICogQHJldHVybiB7Um9vdH0gUG9zdENTUyBBU1RcbiAqL1xuXG4vKipcbiAqIEBjYWxsYmFjayBzdHJpbmdpZmllclxuICpcbiAqIEBwYXJhbSB7Tm9kZX0gbm9kZSAgICAgICAtIHN0YXJ0IG5vZGUgZm9yIHN0cmluZ2lmaW5nLiBVc3VhbGx5IHtAbGluayBSb290fS5cbiAqIEBwYXJhbSB7YnVpbGRlcn0gYnVpbGRlciAtIGZ1bmN0aW9uIHRvIGNvbmNhdGVuYXRlIENTUyBmcm9tIG5vZGXigJlzIHBhcnRzXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvciBnZW5lcmF0ZSBzdHJpbmcgYW5kIHNvdXJjZSBtYXBcbiAqXG4gKiBAcmV0dXJuIHt2b2lkfVxuICovXG5cbi8qKlxuICogQHR5cGVkZWYge29iamVjdH0gc3ludGF4XG4gKiBAcHJvcGVydHkge3BhcnNlcn0gcGFyc2UgICAgICAgICAgLSBmdW5jdGlvbiB0byBnZW5lcmF0ZSBBU1QgYnkgc3RyaW5nXG4gKiBAcHJvcGVydHkge3N0cmluZ2lmaWVyfSBzdHJpbmdpZnkgLSBmdW5jdGlvbiB0byBnZW5lcmF0ZSBzdHJpbmcgYnkgQVNUXG4gKi9cblxuLyoqXG4gKiBAdHlwZWRlZiB7b2JqZWN0fSB0b1N0cmluZ1xuICogQHByb3BlcnR5IHtmdW5jdGlvbn0gdG9TdHJpbmdcbiAqL1xuXG4vKipcbiAqIEBjYWxsYmFjayBwbHVnaW5GdW5jdGlvblxuICogQHBhcmFtIHtSb290fSByb290ICAgICAtIHBhcnNlZCBpbnB1dCBDU1NcbiAqIEBwYXJhbSB7UmVzdWx0fSByZXN1bHQgLSByZXN1bHQgdG8gc2V0IHdhcm5pbmdzIG9yIGNoZWNrIG90aGVyIHBsdWdpbnNcbiAqL1xuXG4vKipcbiAqIEB0eXBlZGVmIHtvYmplY3R9IFBsdWdpblxuICogQHByb3BlcnR5IHtmdW5jdGlvbn0gcG9zdGNzcyAtIFBvc3RDU1MgcGx1Z2luIGZ1bmN0aW9uXG4gKi9cblxuLyoqXG4gKiBAdHlwZWRlZiB7b2JqZWN0fSBwcm9jZXNzT3B0aW9uc1xuICogQHByb3BlcnR5IHtzdHJpbmd9IGZyb20gICAgICAgICAgICAgLSB0aGUgcGF0aCBvZiB0aGUgQ1NTIHNvdXJjZSBmaWxlLlxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3Ugc2hvdWxkIGFsd2F5cyBzZXQgYGZyb21gLFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiZWNhdXNlIGl0IGlzIHVzZWQgaW4gc291cmNlIG1hcFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnZW5lcmF0aW9uIGFuZCBzeW50YXggZXJyb3IgbWVzc2FnZXMuXG4gKiBAcHJvcGVydHkge3N0cmluZ30gdG8gICAgICAgICAgICAgICAtIHRoZSBwYXRoIHdoZXJlIHlvdeKAmWxsIHB1dCB0aGUgb3V0cHV0XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENTUyBmaWxlLiBZb3Ugc2hvdWxkIGFsd2F5cyBzZXQgYHRvYFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0byBnZW5lcmF0ZSBjb3JyZWN0IHNvdXJjZSBtYXBzLlxuICogQHByb3BlcnR5IHtwYXJzZXJ9IHBhcnNlciAgICAgICAgICAgLSBmdW5jdGlvbiB0byBnZW5lcmF0ZSBBU1QgYnkgc3RyaW5nXG4gKiBAcHJvcGVydHkge3N0cmluZ2lmaWVyfSBzdHJpbmdpZmllciAtIGNsYXNzIHRvIGdlbmVyYXRlIHN0cmluZyBieSBBU1RcbiAqIEBwcm9wZXJ0eSB7c3ludGF4fSBzeW50YXggICAgICAgICAgIC0gb2JqZWN0IHdpdGggYHBhcnNlYCBhbmQgYHN0cmluZ2lmeWBcbiAqIEBwcm9wZXJ0eSB7b2JqZWN0fSBtYXAgICAgICAgICAgICAgIC0gc291cmNlIG1hcCBvcHRpb25zXG4gKiBAcHJvcGVydHkge2Jvb2xlYW59IG1hcC5pbmxpbmUgICAgICAgICAgICAgICAgICAgIC0gZG9lcyBzb3VyY2UgbWFwIHNob3VsZFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJlIGVtYmVkZGVkIGluIHRoZSBvdXRwdXRcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBDU1MgYXMgYSBiYXNlNjQtZW5jb2RlZFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbW1lbnRcbiAqIEBwcm9wZXJ0eSB7c3RyaW5nfG9iamVjdHxmYWxzZXxmdW5jdGlvbn0gbWFwLnByZXYgLSBzb3VyY2UgbWFwIGNvbnRlbnRcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmcm9tIGEgcHJldmlvdXNcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9jZXNzaW5nIHN0ZXBcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZm9yIGV4YW1wbGUsIFNhc3MpLlxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFBvc3RDU1Mgd2lsbCB0cnkgdG8gZmluZFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByZXZpb3VzIG1hcFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF1dG9tYXRpY2FsbHksIHNvIHlvdVxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvdWxkIGRpc2FibGUgaXQgYnlcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBgZmFsc2VgIHZhbHVlLlxuICogQHByb3BlcnR5IHtib29sZWFufSBtYXAuc291cmNlc0NvbnRlbnQgICAgICAgICAgICAtIGRvZXMgUG9zdENTUyBzaG91bGQgc2V0XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlIG9yaWdpbiBjb250ZW50IHRvIG1hcFxuICogQHByb3BlcnR5IHtzdHJpbmd8ZmFsc2V9IG1hcC5hbm5vdGF0aW9uICAgICAgICAgICAtIGRvZXMgUG9zdENTUyBzaG91bGQgc2V0XG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYW5ub3RhdGlvbiBjb21tZW50IHRvIG1hcFxuICogQHByb3BlcnR5IHtzdHJpbmd9IG1hcC5mcm9tICAgICAgICAgICAgICAgICAgICAgICAtIG92ZXJyaWRlIGBmcm9tYCBpbiBtYXDigJlzXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYHNvdXJjZXNgXG4gKi9cbiJdfQ== diff --git a/node_modules/postcss/lib/result.js b/node_modules/postcss/lib/result.js deleted file mode 100644 index 2b3da76..0000000 --- a/node_modules/postcss/lib/result.js +++ /dev/null @@ -1,206 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _warning = require('./warning'); - -var _warning2 = _interopRequireDefault(_warning); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Provides the result of the PostCSS transformations. - * - * A Result instance is returned by {@link LazyResult#then} - * or {@link Root#toResult} methods. - * - * @example - * postcss([cssnext]).process(css).then(function (result) { - * console.log(result.css); - * }); - * - * @example - * var result2 = postcss.parse(css).toResult(); - */ -var Result = function () { - - /** - * @param {Processor} processor - processor used for this transformation. - * @param {Root} root - Root node after all transformations. - * @param {processOptions} opts - options from the {@link Processor#process} - * or {@link Root#toResult} - */ - function Result(processor, root, opts) { - _classCallCheck(this, Result); - - /** - * @member {Processor} - The Processor instance used - * for this transformation. - * - * @example - * for ( let plugin of result.processor.plugins) { - * if ( plugin.postcssPlugin === 'postcss-bad' ) { - * throw 'postcss-good is incompatible with postcss-bad'; - * } - * }); - */ - this.processor = processor; - /** - * @member {Message[]} - Contains messages from plugins - * (e.g., warnings or custom messages). - * Each message should have type - * and plugin properties. - * - * @example - * postcss.plugin('postcss-min-browser', () => { - * return (root, result) => { - * var browsers = detectMinBrowsersByCanIUse(root); - * result.messages.push({ - * type: 'min-browser', - * plugin: 'postcss-min-browser', - * browsers: browsers - * }); - * }; - * }); - */ - this.messages = []; - /** - * @member {Root} - Root node after all transformations. - * - * @example - * root.toResult().root == root; - */ - this.root = root; - /** - * @member {processOptions} - Options from the {@link Processor#process} - * or {@link Root#toResult} call - * that produced this Result instance. - * - * @example - * root.toResult(opts).opts == opts; - */ - this.opts = opts; - /** - * @member {string} - A CSS string representing of {@link Result#root}. - * - * @example - * postcss.parse('a{}').toResult().css //=> "a{}" - */ - this.css = undefined; - /** - * @member {SourceMapGenerator} - An instance of `SourceMapGenerator` - * class from the `source-map` library, - * representing changes - * to the {@link Result#root} instance. - * - * @example - * result.map.toJSON() //=> { version: 3, file: 'a.css', … } - * - * @example - * if ( result.map ) { - * fs.writeFileSync(result.opts.to + '.map', result.map.toString()); - * } - */ - this.map = undefined; - } - - /** - * Returns for @{link Result#css} content. - * - * @example - * result + '' === result.css - * - * @return {string} string representing of {@link Result#root} - */ - - - Result.prototype.toString = function toString() { - return this.css; - }; - - /** - * Creates an instance of {@link Warning} and adds it - * to {@link Result#messages}. - * - * @param {string} text - warning message - * @param {Object} [opts] - warning options - * @param {Node} opts.node - CSS node that caused the warning - * @param {string} opts.word - word in CSS source that caused the warning - * @param {number} opts.index - index in CSS node string that caused - * the warning - * @param {string} opts.plugin - name of the plugin that created - * this warning. {@link Result#warn} fills - * this property automatically. - * - * @return {Warning} created warning - */ - - - Result.prototype.warn = function warn(text) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (!opts.plugin) { - if (this.lastPlugin && this.lastPlugin.postcssPlugin) { - opts.plugin = this.lastPlugin.postcssPlugin; - } - } - - var warning = new _warning2.default(text, opts); - this.messages.push(warning); - - return warning; - }; - - /** - * Returns warnings from plugins. Filters {@link Warning} instances - * from {@link Result#messages}. - * - * @example - * result.warnings().forEach(warn => { - * console.warn(warn.toString()); - * }); - * - * @return {Warning[]} warnings from plugins - */ - - - Result.prototype.warnings = function warnings() { - return this.messages.filter(function (i) { - return i.type === 'warning'; - }); - }; - - /** - * An alias for the {@link Result#css} property. - * Use it with syntaxes that generate non-CSS output. - * @type {string} - * - * @example - * result.css === result.content; - */ - - - _createClass(Result, [{ - key: 'content', - get: function get() { - return this.css; - } - }]); - - return Result; -}(); - -exports.default = Result; - -/** - * @typedef {object} Message - * @property {string} type - message type - * @property {string} plugin - source PostCSS plugin name - */ - -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc3VsdC5lczYiXSwibmFtZXMiOlsiUmVzdWx0IiwicHJvY2Vzc29yIiwicm9vdCIsIm9wdHMiLCJtZXNzYWdlcyIsImNzcyIsInVuZGVmaW5lZCIsIm1hcCIsInRvU3RyaW5nIiwid2FybiIsInRleHQiLCJwbHVnaW4iLCJsYXN0UGx1Z2luIiwicG9zdGNzc1BsdWdpbiIsIndhcm5pbmciLCJwdXNoIiwid2FybmluZ3MiLCJmaWx0ZXIiLCJpIiwidHlwZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7Ozs7Ozs7O0FBRUE7Ozs7Ozs7Ozs7Ozs7O0lBY01BLE07O0FBRUY7Ozs7OztBQU1BLGtCQUFZQyxTQUFaLEVBQXVCQyxJQUF2QixFQUE2QkMsSUFBN0IsRUFBbUM7QUFBQTs7QUFDL0I7Ozs7Ozs7Ozs7O0FBV0EsU0FBS0YsU0FBTCxHQUFpQkEsU0FBakI7QUFDQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBa0JBLFNBQUtHLFFBQUwsR0FBZ0IsRUFBaEI7QUFDQTs7Ozs7O0FBTUEsU0FBS0YsSUFBTCxHQUFZQSxJQUFaO0FBQ0E7Ozs7Ozs7O0FBUUEsU0FBS0MsSUFBTCxHQUFZQSxJQUFaO0FBQ0E7Ozs7OztBQU1BLFNBQUtFLEdBQUwsR0FBV0MsU0FBWDtBQUNBOzs7Ozs7Ozs7Ozs7OztBQWNBLFNBQUtDLEdBQUwsR0FBV0QsU0FBWDtBQUNIOztBQUVEOzs7Ozs7Ozs7O21CQVFBRSxRLHVCQUFXO0FBQ1AsV0FBTyxLQUFLSCxHQUFaO0FBQ0gsRzs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7O21CQWdCQUksSSxpQkFBS0MsSSxFQUFrQjtBQUFBLFFBQVpQLElBQVksdUVBQUwsRUFBSzs7QUFDbkIsUUFBSyxDQUFDQSxLQUFLUSxNQUFYLEVBQW9CO0FBQ2hCLFVBQUssS0FBS0MsVUFBTCxJQUFtQixLQUFLQSxVQUFMLENBQWdCQyxhQUF4QyxFQUF3RDtBQUNwRFYsYUFBS1EsTUFBTCxHQUFjLEtBQUtDLFVBQUwsQ0FBZ0JDLGFBQTlCO0FBQ0g7QUFDSjs7QUFFRCxRQUFJQyxVQUFVLHNCQUFZSixJQUFaLEVBQWtCUCxJQUFsQixDQUFkO0FBQ0EsU0FBS0MsUUFBTCxDQUFjVyxJQUFkLENBQW1CRCxPQUFuQjs7QUFFQSxXQUFPQSxPQUFQO0FBQ0gsRzs7QUFFRDs7Ozs7Ozs7Ozs7OzttQkFXQUUsUSx1QkFBVztBQUNQLFdBQU8sS0FBS1osUUFBTCxDQUFjYSxNQUFkLENBQXNCO0FBQUEsYUFBS0MsRUFBRUMsSUFBRixLQUFXLFNBQWhCO0FBQUEsS0FBdEIsQ0FBUDtBQUNILEc7O0FBRUQ7Ozs7Ozs7Ozs7Ozt3QkFRYztBQUNWLGFBQU8sS0FBS2QsR0FBWjtBQUNIOzs7Ozs7a0JBSVVMLE07O0FBRWYiLCJmaWxlIjoicmVzdWx0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFdhcm5pbmcgZnJvbSAnLi93YXJuaW5nJztcblxuLyoqXG4gKiBQcm92aWRlcyB0aGUgcmVzdWx0IG9mIHRoZSBQb3N0Q1NTIHRyYW5zZm9ybWF0aW9ucy5cbiAqXG4gKiBBIFJlc3VsdCBpbnN0YW5jZSBpcyByZXR1cm5lZCBieSB7QGxpbmsgTGF6eVJlc3VsdCN0aGVufVxuICogb3Ige0BsaW5rIFJvb3QjdG9SZXN1bHR9IG1ldGhvZHMuXG4gKlxuICogQGV4YW1wbGVcbiAqIHBvc3Rjc3MoW2Nzc25leHRdKS5wcm9jZXNzKGNzcykudGhlbihmdW5jdGlvbiAocmVzdWx0KSB7XG4gKiAgICBjb25zb2xlLmxvZyhyZXN1bHQuY3NzKTtcbiAqIH0pO1xuICpcbiAqIEBleGFtcGxlXG4gKiB2YXIgcmVzdWx0MiA9IHBvc3Rjc3MucGFyc2UoY3NzKS50b1Jlc3VsdCgpO1xuICovXG5jbGFzcyBSZXN1bHQge1xuXG4gICAgLyoqXG4gICAgICogQHBhcmFtIHtQcm9jZXNzb3J9IHByb2Nlc3NvciAtIHByb2Nlc3NvciB1c2VkIGZvciB0aGlzIHRyYW5zZm9ybWF0aW9uLlxuICAgICAqIEBwYXJhbSB7Um9vdH0gICAgICByb290ICAgICAgLSBSb290IG5vZGUgYWZ0ZXIgYWxsIHRyYW5zZm9ybWF0aW9ucy5cbiAgICAgKiBAcGFyYW0ge3Byb2Nlc3NPcHRpb25zfSBvcHRzIC0gb3B0aW9ucyBmcm9tIHRoZSB7QGxpbmsgUHJvY2Vzc29yI3Byb2Nlc3N9XG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9yIHtAbGluayBSb290I3RvUmVzdWx0fVxuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKHByb2Nlc3Nvciwgcm9vdCwgb3B0cykge1xuICAgICAgICAvKipcbiAgICAgICAgICogQG1lbWJlciB7UHJvY2Vzc29yfSAtIFRoZSBQcm9jZXNzb3IgaW5zdGFuY2UgdXNlZFxuICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgZm9yIHRoaXMgdHJhbnNmb3JtYXRpb24uXG4gICAgICAgICAqXG4gICAgICAgICAqIEBleGFtcGxlXG4gICAgICAgICAqIGZvciAoIGxldCBwbHVnaW4gb2YgcmVzdWx0LnByb2Nlc3Nvci5wbHVnaW5zKSB7XG4gICAgICAgICAqICAgaWYgKCBwbHVnaW4ucG9zdGNzc1BsdWdpbiA9PT0gJ3Bvc3Rjc3MtYmFkJyApIHtcbiAgICAgICAgICogICAgIHRocm93ICdwb3N0Y3NzLWdvb2QgaXMgaW5jb21wYXRpYmxlIHdpdGggcG9zdGNzcy1iYWQnO1xuICAgICAgICAgKiAgIH1cbiAgICAgICAgICogfSk7XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnByb2Nlc3NvciA9IHByb2Nlc3NvcjtcbiAgICAgICAgLyoqXG4gICAgICAgICAqIEBtZW1iZXIge01lc3NhZ2VbXX0gLSBDb250YWlucyBtZXNzYWdlcyBmcm9tIHBsdWdpbnNcbiAgICAgICAgICogICAgICAgICAgICAgICAgICAgICAgIChlLmcuLCB3YXJuaW5ncyBvciBjdXN0b20gbWVzc2FnZXMpLlxuICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgRWFjaCBtZXNzYWdlIHNob3VsZCBoYXZlIHR5cGVcbiAgICAgICAgICogICAgICAgICAgICAgICAgICAgICAgIGFuZCBwbHVnaW4gcHJvcGVydGllcy5cbiAgICAgICAgICpcbiAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICogcG9zdGNzcy5wbHVnaW4oJ3Bvc3Rjc3MtbWluLWJyb3dzZXInLCAoKSA9PiB7XG4gICAgICAgICAqICAgcmV0dXJuIChyb290LCByZXN1bHQpID0+IHtcbiAgICAgICAgICogICAgIHZhciBicm93c2VycyA9IGRldGVjdE1pbkJyb3dzZXJzQnlDYW5JVXNlKHJvb3QpO1xuICAgICAgICAgKiAgICAgcmVzdWx0Lm1lc3NhZ2VzLnB1c2goe1xuICAgICAgICAgKiAgICAgICB0eXBlOiAgICAnbWluLWJyb3dzZXInLFxuICAgICAgICAgKiAgICAgICBwbHVnaW46ICAncG9zdGNzcy1taW4tYnJvd3NlcicsXG4gICAgICAgICAqICAgICAgIGJyb3dzZXJzOiBicm93c2Vyc1xuICAgICAgICAgKiAgICAgfSk7XG4gICAgICAgICAqICAgfTtcbiAgICAgICAgICogfSk7XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLm1lc3NhZ2VzID0gW107XG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAbWVtYmVyIHtSb290fSAtIFJvb3Qgbm9kZSBhZnRlciBhbGwgdHJhbnNmb3JtYXRpb25zLlxuICAgICAgICAgKlxuICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgKiByb290LnRvUmVzdWx0KCkucm9vdCA9PSByb290O1xuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy5yb290ID0gcm9vdDtcbiAgICAgICAgLyoqXG4gICAgICAgICAqIEBtZW1iZXIge3Byb2Nlc3NPcHRpb25zfSAtIE9wdGlvbnMgZnJvbSB0aGUge0BsaW5rIFByb2Nlc3NvciNwcm9jZXNzfVxuICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvciB7QGxpbmsgUm9vdCN0b1Jlc3VsdH0gY2FsbFxuICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGF0IHByb2R1Y2VkIHRoaXMgUmVzdWx0IGluc3RhbmNlLlxuICAgICAgICAgKlxuICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgKiByb290LnRvUmVzdWx0KG9wdHMpLm9wdHMgPT0gb3B0cztcbiAgICAgICAgICovXG4gICAgICAgIHRoaXMub3B0cyA9IG9wdHM7XG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAbWVtYmVyIHtzdHJpbmd9IC0gQSBDU1Mgc3RyaW5nIHJlcHJlc2VudGluZyBvZiB7QGxpbmsgUmVzdWx0I3Jvb3R9LlxuICAgICAgICAgKlxuICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgKiBwb3N0Y3NzLnBhcnNlKCdhe30nKS50b1Jlc3VsdCgpLmNzcyAvLz0+IFwiYXt9XCJcbiAgICAgICAgICovXG4gICAgICAgIHRoaXMuY3NzID0gdW5kZWZpbmVkO1xuICAgICAgICAvKipcbiAgICAgICAgICogQG1lbWJlciB7U291cmNlTWFwR2VuZXJhdG9yfSAtIEFuIGluc3RhbmNlIG9mIGBTb3VyY2VNYXBHZW5lcmF0b3JgXG4gICAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcyBmcm9tIHRoZSBgc291cmNlLW1hcGAgbGlicmFyeSxcbiAgICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlcHJlc2VudGluZyBjaGFuZ2VzXG4gICAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0byB0aGUge0BsaW5rIFJlc3VsdCNyb290fSBpbnN0YW5jZS5cbiAgICAgICAgICpcbiAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICogcmVzdWx0Lm1hcC50b0pTT04oKSAvLz0+IHsgdmVyc2lvbjogMywgZmlsZTogJ2EuY3NzJywg4oCmIH1cbiAgICAgICAgICpcbiAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICogaWYgKCByZXN1bHQubWFwICkge1xuICAgICAgICAgKiAgIGZzLndyaXRlRmlsZVN5bmMocmVzdWx0Lm9wdHMudG8gKyAnLm1hcCcsIHJlc3VsdC5tYXAudG9TdHJpbmcoKSk7XG4gICAgICAgICAqIH1cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMubWFwID0gdW5kZWZpbmVkO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgZm9yIEB7bGluayBSZXN1bHQjY3NzfSBjb250ZW50LlxuICAgICAqXG4gICAgICogQGV4YW1wbGVcbiAgICAgKiByZXN1bHQgKyAnJyA9PT0gcmVzdWx0LmNzc1xuICAgICAqXG4gICAgICogQHJldHVybiB7c3RyaW5nfSBzdHJpbmcgcmVwcmVzZW50aW5nIG9mIHtAbGluayBSZXN1bHQjcm9vdH1cbiAgICAgKi9cbiAgICB0b1N0cmluZygpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY3NzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIENyZWF0ZXMgYW4gaW5zdGFuY2Ugb2Yge0BsaW5rIFdhcm5pbmd9IGFuZCBhZGRzIGl0XG4gICAgICogdG8ge0BsaW5rIFJlc3VsdCNtZXNzYWdlc30uXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gdGV4dCAgICAgICAgLSB3YXJuaW5nIG1lc3NhZ2VcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gW29wdHNdICAgICAgLSB3YXJuaW5nIG9wdGlvbnNcbiAgICAgKiBAcGFyYW0ge05vZGV9ICAgb3B0cy5ub2RlICAgLSBDU1Mgbm9kZSB0aGF0IGNhdXNlZCB0aGUgd2FybmluZ1xuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBvcHRzLndvcmQgICAtIHdvcmQgaW4gQ1NTIHNvdXJjZSB0aGF0IGNhdXNlZCB0aGUgd2FybmluZ1xuICAgICAqIEBwYXJhbSB7bnVtYmVyfSBvcHRzLmluZGV4ICAtIGluZGV4IGluIENTUyBub2RlIHN0cmluZyB0aGF0IGNhdXNlZFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZSB3YXJuaW5nXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IG9wdHMucGx1Z2luIC0gbmFtZSBvZiB0aGUgcGx1Z2luIHRoYXQgY3JlYXRlZFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMgd2FybmluZy4ge0BsaW5rIFJlc3VsdCN3YXJufSBmaWxsc1xuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMgcHJvcGVydHkgYXV0b21hdGljYWxseS5cbiAgICAgKlxuICAgICAqIEByZXR1cm4ge1dhcm5pbmd9IGNyZWF0ZWQgd2FybmluZ1xuICAgICAqL1xuICAgIHdhcm4odGV4dCwgb3B0cyA9IHsgfSkge1xuICAgICAgICBpZiAoICFvcHRzLnBsdWdpbiApIHtcbiAgICAgICAgICAgIGlmICggdGhpcy5sYXN0UGx1Z2luICYmIHRoaXMubGFzdFBsdWdpbi5wb3N0Y3NzUGx1Z2luICkge1xuICAgICAgICAgICAgICAgIG9wdHMucGx1Z2luID0gdGhpcy5sYXN0UGx1Z2luLnBvc3Rjc3NQbHVnaW47XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgd2FybmluZyA9IG5ldyBXYXJuaW5nKHRleHQsIG9wdHMpO1xuICAgICAgICB0aGlzLm1lc3NhZ2VzLnB1c2god2FybmluZyk7XG5cbiAgICAgICAgcmV0dXJuIHdhcm5pbmc7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB3YXJuaW5ncyBmcm9tIHBsdWdpbnMuIEZpbHRlcnMge0BsaW5rIFdhcm5pbmd9IGluc3RhbmNlc1xuICAgICAqIGZyb20ge0BsaW5rIFJlc3VsdCNtZXNzYWdlc30uXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHJlc3VsdC53YXJuaW5ncygpLmZvckVhY2god2FybiA9PiB7XG4gICAgICogICBjb25zb2xlLndhcm4od2Fybi50b1N0cmluZygpKTtcbiAgICAgKiB9KTtcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge1dhcm5pbmdbXX0gd2FybmluZ3MgZnJvbSBwbHVnaW5zXG4gICAgICovXG4gICAgd2FybmluZ3MoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLm1lc3NhZ2VzLmZpbHRlciggaSA9PiBpLnR5cGUgPT09ICd3YXJuaW5nJyApO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIEFuIGFsaWFzIGZvciB0aGUge0BsaW5rIFJlc3VsdCNjc3N9IHByb3BlcnR5LlxuICAgICAqIFVzZSBpdCB3aXRoIHN5bnRheGVzIHRoYXQgZ2VuZXJhdGUgbm9uLUNTUyBvdXRwdXQuXG4gICAgICogQHR5cGUge3N0cmluZ31cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcmVzdWx0LmNzcyA9PT0gcmVzdWx0LmNvbnRlbnQ7XG4gICAgICovXG4gICAgZ2V0IGNvbnRlbnQoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmNzcztcbiAgICB9XG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgUmVzdWx0O1xuXG4vKipcbiAqIEB0eXBlZGVmICB7b2JqZWN0fSBNZXNzYWdlXG4gKiBAcHJvcGVydHkge3N0cmluZ30gdHlwZSAgIC0gbWVzc2FnZSB0eXBlXG4gKiBAcHJvcGVydHkge3N0cmluZ30gcGx1Z2luIC0gc291cmNlIFBvc3RDU1MgcGx1Z2luIG5hbWVcbiAqL1xuIl19 diff --git a/node_modules/postcss/lib/root.js b/node_modules/postcss/lib/root.js deleted file mode 100644 index 0e7b136..0000000 --- a/node_modules/postcss/lib/root.js +++ /dev/null @@ -1,143 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _container = require('./container'); - -var _container2 = _interopRequireDefault(_container); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS file and contains all its parsed nodes. - * - * @extends Container - * - * @example - * const root = postcss.parse('a{color:black} b{z-index:2}'); - * root.type //=> 'root' - * root.nodes.length //=> 2 - */ -var Root = function (_Container) { - _inherits(Root, _Container); - - function Root(defaults) { - _classCallCheck(this, Root); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'root'; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - Root.prototype.removeChild = function removeChild(child) { - child = this.index(child); - - if (child === 0 && this.nodes.length > 1) { - this.nodes[1].raws.before = this.nodes[child].raws.before; - } - - return _Container.prototype.removeChild.call(this, child); - }; - - Root.prototype.normalize = function normalize(child, sample, type) { - var nodes = _Container.prototype.normalize.call(this, child); - - if (sample) { - if (type === 'prepend') { - if (this.nodes.length > 1) { - sample.raws.before = this.nodes[1].raws.before; - } else { - delete sample.raws.before; - } - } else if (this.first !== sample) { - for (var _iterator = nodes, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { - var _ref; - - if (_isArray) { - if (_i >= _iterator.length) break; - _ref = _iterator[_i++]; - } else { - _i = _iterator.next(); - if (_i.done) break; - _ref = _i.value; - } - - var node = _ref; - - node.raws.before = sample.raws.before; - } - } - } - - return nodes; - }; - - /** - * Returns a {@link Result} instance representing the root’s CSS. - * - * @param {processOptions} [opts] - options with only `to` and `map` keys - * - * @return {Result} result with current root’s CSS - * - * @example - * const root1 = postcss.parse(css1, { from: 'a.css' }); - * const root2 = postcss.parse(css2, { from: 'b.css' }); - * root1.append(root2); - * const result = root1.toResult({ to: 'all.css', map: true }); - */ - - - Root.prototype.toResult = function toResult() { - var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var LazyResult = require('./lazy-result'); - var Processor = require('./processor'); - - var lazy = new LazyResult(new Processor(), this, opts); - return lazy.stringify(); - }; - - Root.prototype.remove = function remove(child) { - (0, _warnOnce2.default)('Root#remove is deprecated. Use Root#removeChild'); - this.removeChild(child); - }; - - Root.prototype.prevMap = function prevMap() { - (0, _warnOnce2.default)('Root#prevMap is deprecated. Use Root#source.input.map'); - return this.source.input.map; - }; - - /** - * @memberof Root# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `after`: the space symbols after the last child to the end of file. - * * `semicolon`: is the last child has an (optional) semicolon. - * - * @example - * postcss.parse('a {}\n').raws //=> { after: '\n' } - * postcss.parse('a {}').raws //=> { after: '' } - */ - - return Root; -}(_container2.default); - -exports.default = Root; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvb3QuZXM2Il0sIm5hbWVzIjpbIlJvb3QiLCJkZWZhdWx0cyIsInR5cGUiLCJub2RlcyIsInJlbW92ZUNoaWxkIiwiY2hpbGQiLCJpbmRleCIsImxlbmd0aCIsInJhd3MiLCJiZWZvcmUiLCJub3JtYWxpemUiLCJzYW1wbGUiLCJmaXJzdCIsIm5vZGUiLCJ0b1Jlc3VsdCIsIm9wdHMiLCJMYXp5UmVzdWx0IiwicmVxdWlyZSIsIlByb2Nlc3NvciIsImxhenkiLCJzdHJpbmdpZnkiLCJyZW1vdmUiLCJwcmV2TWFwIiwic291cmNlIiwiaW5wdXQiLCJtYXAiXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7OztJQVVNQSxJOzs7QUFFRixrQkFBWUMsUUFBWixFQUFzQjtBQUFBOztBQUFBLHFEQUNsQixzQkFBTUEsUUFBTixDQURrQjs7QUFFbEIsY0FBS0MsSUFBTCxHQUFZLE1BQVo7QUFDQSxZQUFLLENBQUMsTUFBS0MsS0FBWCxFQUFtQixNQUFLQSxLQUFMLEdBQWEsRUFBYjtBQUhEO0FBSXJCOzttQkFFREMsVyx3QkFBWUMsSyxFQUFPO0FBQ2ZBLGdCQUFRLEtBQUtDLEtBQUwsQ0FBV0QsS0FBWCxDQUFSOztBQUVBLFlBQUtBLFVBQVUsQ0FBVixJQUFlLEtBQUtGLEtBQUwsQ0FBV0ksTUFBWCxHQUFvQixDQUF4QyxFQUE0QztBQUN4QyxpQkFBS0osS0FBTCxDQUFXLENBQVgsRUFBY0ssSUFBZCxDQUFtQkMsTUFBbkIsR0FBNEIsS0FBS04sS0FBTCxDQUFXRSxLQUFYLEVBQWtCRyxJQUFsQixDQUF1QkMsTUFBbkQ7QUFDSDs7QUFFRCxlQUFPLHFCQUFNTCxXQUFOLFlBQWtCQyxLQUFsQixDQUFQO0FBQ0gsSzs7bUJBRURLLFMsc0JBQVVMLEssRUFBT00sTSxFQUFRVCxJLEVBQU07QUFDM0IsWUFBSUMsUUFBUSxxQkFBTU8sU0FBTixZQUFnQkwsS0FBaEIsQ0FBWjs7QUFFQSxZQUFLTSxNQUFMLEVBQWM7QUFDVixnQkFBS1QsU0FBUyxTQUFkLEVBQTBCO0FBQ3RCLG9CQUFLLEtBQUtDLEtBQUwsQ0FBV0ksTUFBWCxHQUFvQixDQUF6QixFQUE2QjtBQUN6QkksMkJBQU9ILElBQVAsQ0FBWUMsTUFBWixHQUFxQixLQUFLTixLQUFMLENBQVcsQ0FBWCxFQUFjSyxJQUFkLENBQW1CQyxNQUF4QztBQUNILGlCQUZELE1BRU87QUFDSCwyQkFBT0UsT0FBT0gsSUFBUCxDQUFZQyxNQUFuQjtBQUNIO0FBQ0osYUFORCxNQU1PLElBQUssS0FBS0csS0FBTCxLQUFlRCxNQUFwQixFQUE2QjtBQUNoQyxxQ0FBa0JSLEtBQWxCLGtIQUEwQjtBQUFBOztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBQUEsd0JBQWhCVSxJQUFnQjs7QUFDdEJBLHlCQUFLTCxJQUFMLENBQVVDLE1BQVYsR0FBbUJFLE9BQU9ILElBQVAsQ0FBWUMsTUFBL0I7QUFDSDtBQUNKO0FBQ0o7O0FBRUQsZUFBT04sS0FBUDtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7OzttQkFhQVcsUSx1QkFBcUI7QUFBQSxZQUFaQyxJQUFZLHVFQUFMLEVBQUs7O0FBQ2pCLFlBQUlDLGFBQWFDLFFBQVEsZUFBUixDQUFqQjtBQUNBLFlBQUlDLFlBQWFELFFBQVEsYUFBUixDQUFqQjs7QUFFQSxZQUFJRSxPQUFPLElBQUlILFVBQUosQ0FBZSxJQUFJRSxTQUFKLEVBQWYsRUFBZ0MsSUFBaEMsRUFBc0NILElBQXRDLENBQVg7QUFDQSxlQUFPSSxLQUFLQyxTQUFMLEVBQVA7QUFDSCxLOzttQkFFREMsTSxtQkFBT2hCLEssRUFBTztBQUNWLGdDQUFTLGlEQUFUO0FBQ0EsYUFBS0QsV0FBTCxDQUFpQkMsS0FBakI7QUFDSCxLOzttQkFFRGlCLE8sc0JBQVU7QUFDTixnQ0FBUyx1REFBVDtBQUNBLGVBQU8sS0FBS0MsTUFBTCxDQUFZQyxLQUFaLENBQWtCQyxHQUF6QjtBQUNILEs7O0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7a0JBa0JXekIsSSIsImZpbGUiOiJyb290LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IENvbnRhaW5lciBmcm9tICcuL2NvbnRhaW5lcic7XG5pbXBvcnQgd2Fybk9uY2UgIGZyb20gJy4vd2Fybi1vbmNlJztcblxuLyoqXG4gKiBSZXByZXNlbnRzIGEgQ1NTIGZpbGUgYW5kIGNvbnRhaW5zIGFsbCBpdHMgcGFyc2VkIG5vZGVzLlxuICpcbiAqIEBleHRlbmRzIENvbnRhaW5lclxuICpcbiAqIEBleGFtcGxlXG4gKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnYXtjb2xvcjpibGFja30gYnt6LWluZGV4OjJ9Jyk7XG4gKiByb290LnR5cGUgICAgICAgICAvLz0+ICdyb290J1xuICogcm9vdC5ub2Rlcy5sZW5ndGggLy89PiAyXG4gKi9cbmNsYXNzIFJvb3QgZXh0ZW5kcyBDb250YWluZXIge1xuXG4gICAgY29uc3RydWN0b3IoZGVmYXVsdHMpIHtcbiAgICAgICAgc3VwZXIoZGVmYXVsdHMpO1xuICAgICAgICB0aGlzLnR5cGUgPSAncm9vdCc7XG4gICAgICAgIGlmICggIXRoaXMubm9kZXMgKSB0aGlzLm5vZGVzID0gW107XG4gICAgfVxuXG4gICAgcmVtb3ZlQ2hpbGQoY2hpbGQpIHtcbiAgICAgICAgY2hpbGQgPSB0aGlzLmluZGV4KGNoaWxkKTtcblxuICAgICAgICBpZiAoIGNoaWxkID09PSAwICYmIHRoaXMubm9kZXMubGVuZ3RoID4gMSApIHtcbiAgICAgICAgICAgIHRoaXMubm9kZXNbMV0ucmF3cy5iZWZvcmUgPSB0aGlzLm5vZGVzW2NoaWxkXS5yYXdzLmJlZm9yZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBzdXBlci5yZW1vdmVDaGlsZChjaGlsZCk7XG4gICAgfVxuXG4gICAgbm9ybWFsaXplKGNoaWxkLCBzYW1wbGUsIHR5cGUpIHtcbiAgICAgICAgbGV0IG5vZGVzID0gc3VwZXIubm9ybWFsaXplKGNoaWxkKTtcblxuICAgICAgICBpZiAoIHNhbXBsZSApIHtcbiAgICAgICAgICAgIGlmICggdHlwZSA9PT0gJ3ByZXBlbmQnICkge1xuICAgICAgICAgICAgICAgIGlmICggdGhpcy5ub2Rlcy5sZW5ndGggPiAxICkge1xuICAgICAgICAgICAgICAgICAgICBzYW1wbGUucmF3cy5iZWZvcmUgPSB0aGlzLm5vZGVzWzFdLnJhd3MuYmVmb3JlO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBzYW1wbGUucmF3cy5iZWZvcmU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIGlmICggdGhpcy5maXJzdCAhPT0gc2FtcGxlICkge1xuICAgICAgICAgICAgICAgIGZvciAoIGxldCBub2RlIG9mIG5vZGVzICkge1xuICAgICAgICAgICAgICAgICAgICBub2RlLnJhd3MuYmVmb3JlID0gc2FtcGxlLnJhd3MuYmVmb3JlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBub2RlcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIGEge0BsaW5rIFJlc3VsdH0gaW5zdGFuY2UgcmVwcmVzZW50aW5nIHRoZSByb2904oCZcyBDU1MuXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge3Byb2Nlc3NPcHRpb25zfSBbb3B0c10gLSBvcHRpb25zIHdpdGggb25seSBgdG9gIGFuZCBgbWFwYCBrZXlzXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtSZXN1bHR9IHJlc3VsdCB3aXRoIGN1cnJlbnQgcm9vdOKAmXMgQ1NTXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGNvbnN0IHJvb3QxID0gcG9zdGNzcy5wYXJzZShjc3MxLCB7IGZyb206ICdhLmNzcycgfSk7XG4gICAgICogY29uc3Qgcm9vdDIgPSBwb3N0Y3NzLnBhcnNlKGNzczIsIHsgZnJvbTogJ2IuY3NzJyB9KTtcbiAgICAgKiByb290MS5hcHBlbmQocm9vdDIpO1xuICAgICAqIGNvbnN0IHJlc3VsdCA9IHJvb3QxLnRvUmVzdWx0KHsgdG86ICdhbGwuY3NzJywgbWFwOiB0cnVlIH0pO1xuICAgICAqL1xuICAgIHRvUmVzdWx0KG9wdHMgPSB7IH0pIHtcbiAgICAgICAgbGV0IExhenlSZXN1bHQgPSByZXF1aXJlKCcuL2xhenktcmVzdWx0Jyk7XG4gICAgICAgIGxldCBQcm9jZXNzb3IgID0gcmVxdWlyZSgnLi9wcm9jZXNzb3InKTtcblxuICAgICAgICBsZXQgbGF6eSA9IG5ldyBMYXp5UmVzdWx0KG5ldyBQcm9jZXNzb3IoKSwgdGhpcywgb3B0cyk7XG4gICAgICAgIHJldHVybiBsYXp5LnN0cmluZ2lmeSgpO1xuICAgIH1cblxuICAgIHJlbW92ZShjaGlsZCkge1xuICAgICAgICB3YXJuT25jZSgnUm9vdCNyZW1vdmUgaXMgZGVwcmVjYXRlZC4gVXNlIFJvb3QjcmVtb3ZlQ2hpbGQnKTtcbiAgICAgICAgdGhpcy5yZW1vdmVDaGlsZChjaGlsZCk7XG4gICAgfVxuXG4gICAgcHJldk1hcCgpIHtcbiAgICAgICAgd2Fybk9uY2UoJ1Jvb3QjcHJldk1hcCBpcyBkZXByZWNhdGVkLiBVc2UgUm9vdCNzb3VyY2UuaW5wdXQubWFwJyk7XG4gICAgICAgIHJldHVybiB0aGlzLnNvdXJjZS5pbnB1dC5tYXA7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIFJvb3QjXG4gICAgICogQG1lbWJlciB7b2JqZWN0fSByYXdzIC0gSW5mb3JtYXRpb24gdG8gZ2VuZXJhdGUgYnl0ZS10by1ieXRlIGVxdWFsXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgbm9kZSBzdHJpbmcgYXMgaXQgd2FzIGluIHRoZSBvcmlnaW4gaW5wdXQuXG4gICAgICpcbiAgICAgKiBFdmVyeSBwYXJzZXIgc2F2ZXMgaXRzIG93biBwcm9wZXJ0aWVzLFxuICAgICAqIGJ1dCB0aGUgZGVmYXVsdCBDU1MgcGFyc2VyIHVzZXM6XG4gICAgICpcbiAgICAgKiAqIGBhZnRlcmA6IHRoZSBzcGFjZSBzeW1ib2xzIGFmdGVyIHRoZSBsYXN0IGNoaWxkIHRvIHRoZSBlbmQgb2YgZmlsZS5cbiAgICAgKiAqIGBzZW1pY29sb25gOiBpcyB0aGUgbGFzdCBjaGlsZCBoYXMgYW4gKG9wdGlvbmFsKSBzZW1pY29sb24uXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHBvc3Rjc3MucGFyc2UoJ2Ege31cXG4nKS5yYXdzIC8vPT4geyBhZnRlcjogJ1xcbicgfVxuICAgICAqIHBvc3Rjc3MucGFyc2UoJ2Ege30nKS5yYXdzICAgLy89PiB7IGFmdGVyOiAnJyB9XG4gICAgICovXG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgUm9vdDtcbiJdfQ== diff --git a/node_modules/postcss/lib/rule.js b/node_modules/postcss/lib/rule.js deleted file mode 100644 index 2935bff..0000000 --- a/node_modules/postcss/lib/rule.js +++ /dev/null @@ -1,136 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _container = require('./container'); - -var _container2 = _interopRequireDefault(_container); - -var _warnOnce = require('./warn-once'); - -var _warnOnce2 = _interopRequireDefault(_warnOnce); - -var _list = require('./list'); - -var _list2 = _interopRequireDefault(_list); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Represents a CSS rule: a selector followed by a declaration block. - * - * @extends Container - * - * @example - * const root = postcss.parse('a{}'); - * const rule = root.first; - * rule.type //=> 'rule' - * rule.toString() //=> 'a{}' - */ -var Rule = function (_Container) { - _inherits(Rule, _Container); - - function Rule(defaults) { - _classCallCheck(this, Rule); - - var _this = _possibleConstructorReturn(this, _Container.call(this, defaults)); - - _this.type = 'rule'; - if (!_this.nodes) _this.nodes = []; - return _this; - } - - /** - * An array containing the rule’s individual selectors. - * Groups of selectors are split at commas. - * - * @type {string[]} - * - * @example - * const root = postcss.parse('a, b { }'); - * const rule = root.first; - * - * rule.selector //=> 'a, b' - * rule.selectors //=> ['a', 'b'] - * - * rule.selectors = ['a', 'strong']; - * rule.selector //=> 'a, strong' - */ - - - _createClass(Rule, [{ - key: 'selectors', - get: function get() { - return _list2.default.comma(this.selector); - }, - set: function set(values) { - var match = this.selector ? this.selector.match(/,\s*/) : null; - var sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen'); - this.selector = values.join(sep); - } - }, { - key: '_selector', - get: function get() { - (0, _warnOnce2.default)('Rule#_selector is deprecated. Use Rule#raws.selector'); - return this.raws.selector; - }, - set: function set(val) { - (0, _warnOnce2.default)('Rule#_selector is deprecated. Use Rule#raws.selector'); - this.raws.selector = val; - } - - /** - * @memberof Rule# - * @member {string} selector - the rule’s full selector represented - * as a string - * - * @example - * const root = postcss.parse('a, b { }'); - * const rule = root.first; - * rule.selector //=> 'a, b' - */ - - /** - * @memberof Rule# - * @member {object} raws - Information to generate byte-to-byte equal - * node string as it was in the origin input. - * - * Every parser saves its own properties, - * but the default CSS parser uses: - * - * * `before`: the space symbols before the node. It also stores `*` - * and `_` symbols before the declaration (IE hack). - * * `after`: the space symbols after the last child of the node - * to the end of the node. - * * `between`: the symbols between the property and value - * for declarations, selector and `{` for rules, or last parameter - * and `{` for at-rules. - * * `semicolon`: contains true if the last child has - * an (optional) semicolon. - * - * PostCSS cleans selectors from comments and extra spaces, - * but it stores origin content in raws properties. - * As such, if you don’t change a declaration’s value, - * PostCSS will use the raw value with comments. - * - * @example - * const root = postcss.parse('a {\n color:black\n}') - * root.first.first.raws //=> { before: '', between: ' ', after: '\n' } - */ - - }]); - - return Rule; -}(_container2.default); - -exports.default = Rule; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGUuZXM2Il0sIm5hbWVzIjpbIlJ1bGUiLCJkZWZhdWx0cyIsInR5cGUiLCJub2RlcyIsImNvbW1hIiwic2VsZWN0b3IiLCJ2YWx1ZXMiLCJtYXRjaCIsInNlcCIsInJhdyIsImpvaW4iLCJyYXdzIiwidmFsIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7Ozs7OztBQUVBOzs7Ozs7Ozs7OztJQVdNQSxJOzs7QUFFRixrQkFBWUMsUUFBWixFQUFzQjtBQUFBOztBQUFBLHFEQUNsQixzQkFBTUEsUUFBTixDQURrQjs7QUFFbEIsY0FBS0MsSUFBTCxHQUFZLE1BQVo7QUFDQSxZQUFLLENBQUMsTUFBS0MsS0FBWCxFQUFtQixNQUFLQSxLQUFMLEdBQWEsRUFBYjtBQUhEO0FBSXJCOztBQUVEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs0QkFnQmdCO0FBQ1osbUJBQU8sZUFBS0MsS0FBTCxDQUFXLEtBQUtDLFFBQWhCLENBQVA7QUFDSCxTOzBCQUVhQyxNLEVBQVE7QUFDbEIsZ0JBQUlDLFFBQVEsS0FBS0YsUUFBTCxHQUFnQixLQUFLQSxRQUFMLENBQWNFLEtBQWQsQ0FBb0IsTUFBcEIsQ0FBaEIsR0FBOEMsSUFBMUQ7QUFDQSxnQkFBSUMsTUFBUUQsUUFBUUEsTUFBTSxDQUFOLENBQVIsR0FBbUIsTUFBTSxLQUFLRSxHQUFMLENBQVMsU0FBVCxFQUFvQixZQUFwQixDQUFyQztBQUNBLGlCQUFLSixRQUFMLEdBQWdCQyxPQUFPSSxJQUFQLENBQVlGLEdBQVosQ0FBaEI7QUFDSDs7OzRCQUVlO0FBQ1osb0NBQVMsc0RBQVQ7QUFDQSxtQkFBTyxLQUFLRyxJQUFMLENBQVVOLFFBQWpCO0FBQ0gsUzswQkFFYU8sRyxFQUFLO0FBQ2Ysb0NBQVMsc0RBQVQ7QUFDQSxpQkFBS0QsSUFBTCxDQUFVTixRQUFWLEdBQXFCTyxHQUFyQjtBQUNIOztBQUVEOzs7Ozs7Ozs7OztBQVdBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7a0JBOEJXWixJIiwiZmlsZSI6InJ1bGUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgQ29udGFpbmVyIGZyb20gJy4vY29udGFpbmVyJztcbmltcG9ydCB3YXJuT25jZSAgZnJvbSAnLi93YXJuLW9uY2UnO1xuaW1wb3J0IGxpc3QgICAgICBmcm9tICcuL2xpc3QnO1xuXG4vKipcbiAqIFJlcHJlc2VudHMgYSBDU1MgcnVsZTogYSBzZWxlY3RvciBmb2xsb3dlZCBieSBhIGRlY2xhcmF0aW9uIGJsb2NrLlxuICpcbiAqIEBleHRlbmRzIENvbnRhaW5lclxuICpcbiAqIEBleGFtcGxlXG4gKiBjb25zdCByb290ID0gcG9zdGNzcy5wYXJzZSgnYXt9Jyk7XG4gKiBjb25zdCBydWxlID0gcm9vdC5maXJzdDtcbiAqIHJ1bGUudHlwZSAgICAgICAvLz0+ICdydWxlJ1xuICogcnVsZS50b1N0cmluZygpIC8vPT4gJ2F7fSdcbiAqL1xuY2xhc3MgUnVsZSBleHRlbmRzIENvbnRhaW5lciB7XG5cbiAgICBjb25zdHJ1Y3RvcihkZWZhdWx0cykge1xuICAgICAgICBzdXBlcihkZWZhdWx0cyk7XG4gICAgICAgIHRoaXMudHlwZSA9ICdydWxlJztcbiAgICAgICAgaWYgKCAhdGhpcy5ub2RlcyApIHRoaXMubm9kZXMgPSBbXTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBBbiBhcnJheSBjb250YWluaW5nIHRoZSBydWxl4oCZcyBpbmRpdmlkdWFsIHNlbGVjdG9ycy5cbiAgICAgKiBHcm91cHMgb2Ygc2VsZWN0b3JzIGFyZSBzcGxpdCBhdCBjb21tYXMuXG4gICAgICpcbiAgICAgKiBAdHlwZSB7c3RyaW5nW119XG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGNvbnN0IHJvb3QgPSBwb3N0Y3NzLnBhcnNlKCdhLCBiIHsgfScpO1xuICAgICAqIGNvbnN0IHJ1bGUgPSByb290LmZpcnN0O1xuICAgICAqXG4gICAgICogcnVsZS5zZWxlY3RvciAgLy89PiAnYSwgYidcbiAgICAgKiBydWxlLnNlbGVjdG9ycyAvLz0+IFsnYScsICdiJ11cbiAgICAgKlxuICAgICAqIHJ1bGUuc2VsZWN0b3JzID0gWydhJywgJ3N0cm9uZyddO1xuICAgICAqIHJ1bGUuc2VsZWN0b3IgLy89PiAnYSwgc3Ryb25nJ1xuICAgICAqL1xuICAgIGdldCBzZWxlY3RvcnMoKSB7XG4gICAgICAgIHJldHVybiBsaXN0LmNvbW1hKHRoaXMuc2VsZWN0b3IpO1xuICAgIH1cblxuICAgIHNldCBzZWxlY3RvcnModmFsdWVzKSB7XG4gICAgICAgIGxldCBtYXRjaCA9IHRoaXMuc2VsZWN0b3IgPyB0aGlzLnNlbGVjdG9yLm1hdGNoKC8sXFxzKi8pIDogbnVsbDtcbiAgICAgICAgbGV0IHNlcCAgID0gbWF0Y2ggPyBtYXRjaFswXSA6ICcsJyArIHRoaXMucmF3KCdiZXR3ZWVuJywgJ2JlZm9yZU9wZW4nKTtcbiAgICAgICAgdGhpcy5zZWxlY3RvciA9IHZhbHVlcy5qb2luKHNlcCk7XG4gICAgfVxuXG4gICAgZ2V0IF9zZWxlY3RvcigpIHtcbiAgICAgICAgd2Fybk9uY2UoJ1J1bGUjX3NlbGVjdG9yIGlzIGRlcHJlY2F0ZWQuIFVzZSBSdWxlI3Jhd3Muc2VsZWN0b3InKTtcbiAgICAgICAgcmV0dXJuIHRoaXMucmF3cy5zZWxlY3RvcjtcbiAgICB9XG5cbiAgICBzZXQgX3NlbGVjdG9yKHZhbCkge1xuICAgICAgICB3YXJuT25jZSgnUnVsZSNfc2VsZWN0b3IgaXMgZGVwcmVjYXRlZC4gVXNlIFJ1bGUjcmF3cy5zZWxlY3RvcicpO1xuICAgICAgICB0aGlzLnJhd3Muc2VsZWN0b3IgPSB2YWw7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIFJ1bGUjXG4gICAgICogQG1lbWJlciB7c3RyaW5nfSBzZWxlY3RvciAtIHRoZSBydWxl4oCZcyBmdWxsIHNlbGVjdG9yIHJlcHJlc2VudGVkXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFzIGEgc3RyaW5nXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGNvbnN0IHJvb3QgPSBwb3N0Y3NzLnBhcnNlKCdhLCBiIHsgfScpO1xuICAgICAqIGNvbnN0IHJ1bGUgPSByb290LmZpcnN0O1xuICAgICAqIHJ1bGUuc2VsZWN0b3IgLy89PiAnYSwgYidcbiAgICAgKi9cblxuICAgIC8qKlxuICAgICAqIEBtZW1iZXJvZiBSdWxlI1xuICAgICAqIEBtZW1iZXIge29iamVjdH0gcmF3cyAtIEluZm9ybWF0aW9uIHRvIGdlbmVyYXRlIGJ5dGUtdG8tYnl0ZSBlcXVhbFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUgc3RyaW5nIGFzIGl0IHdhcyBpbiB0aGUgb3JpZ2luIGlucHV0LlxuICAgICAqXG4gICAgICogRXZlcnkgcGFyc2VyIHNhdmVzIGl0cyBvd24gcHJvcGVydGllcyxcbiAgICAgKiBidXQgdGhlIGRlZmF1bHQgQ1NTIHBhcnNlciB1c2VzOlxuICAgICAqXG4gICAgICogKiBgYmVmb3JlYDogdGhlIHNwYWNlIHN5bWJvbHMgYmVmb3JlIHRoZSBub2RlLiBJdCBhbHNvIHN0b3JlcyBgKmBcbiAgICAgKiAgIGFuZCBgX2Agc3ltYm9scyBiZWZvcmUgdGhlIGRlY2xhcmF0aW9uIChJRSBoYWNrKS5cbiAgICAgKiAqIGBhZnRlcmA6IHRoZSBzcGFjZSBzeW1ib2xzIGFmdGVyIHRoZSBsYXN0IGNoaWxkIG9mIHRoZSBub2RlXG4gICAgICogICB0byB0aGUgZW5kIG9mIHRoZSBub2RlLlxuICAgICAqICogYGJldHdlZW5gOiB0aGUgc3ltYm9scyBiZXR3ZWVuIHRoZSBwcm9wZXJ0eSBhbmQgdmFsdWVcbiAgICAgKiAgIGZvciBkZWNsYXJhdGlvbnMsIHNlbGVjdG9yIGFuZCBge2AgZm9yIHJ1bGVzLCBvciBsYXN0IHBhcmFtZXRlclxuICAgICAqICAgYW5kIGB7YCBmb3IgYXQtcnVsZXMuXG4gICAgICogKiBgc2VtaWNvbG9uYDogY29udGFpbnMgdHJ1ZSBpZiB0aGUgbGFzdCBjaGlsZCBoYXNcbiAgICAgKiAgIGFuIChvcHRpb25hbCkgc2VtaWNvbG9uLlxuICAgICAqXG4gICAgICogUG9zdENTUyBjbGVhbnMgc2VsZWN0b3JzIGZyb20gY29tbWVudHMgYW5kIGV4dHJhIHNwYWNlcyxcbiAgICAgKiBidXQgaXQgc3RvcmVzIG9yaWdpbiBjb250ZW50IGluIHJhd3MgcHJvcGVydGllcy5cbiAgICAgKiBBcyBzdWNoLCBpZiB5b3UgZG9u4oCZdCBjaGFuZ2UgYSBkZWNsYXJhdGlvbuKAmXMgdmFsdWUsXG4gICAgICogUG9zdENTUyB3aWxsIHVzZSB0aGUgcmF3IHZhbHVlIHdpdGggY29tbWVudHMuXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGNvbnN0IHJvb3QgPSBwb3N0Y3NzLnBhcnNlKCdhIHtcXG4gIGNvbG9yOmJsYWNrXFxufScpXG4gICAgICogcm9vdC5maXJzdC5maXJzdC5yYXdzIC8vPT4geyBiZWZvcmU6ICcnLCBiZXR3ZWVuOiAnICcsIGFmdGVyOiAnXFxuJyB9XG4gICAgICovXG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgUnVsZTtcbiJdfQ== diff --git a/node_modules/postcss/lib/stringifier.js b/node_modules/postcss/lib/stringifier.js deleted file mode 100644 index f8db1cd..0000000 --- a/node_modules/postcss/lib/stringifier.js +++ /dev/null @@ -1,335 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var defaultRaw = { - colon: ': ', - indent: ' ', - beforeDecl: '\n', - beforeRule: '\n', - beforeOpen: ' ', - beforeClose: '\n', - beforeComment: '\n', - after: '\n', - emptyBody: '', - commentLeft: ' ', - commentRight: ' ' -}; - -function capitalize(str) { - return str[0].toUpperCase() + str.slice(1); -} - -var Stringifier = function () { - function Stringifier(builder) { - _classCallCheck(this, Stringifier); - - this.builder = builder; - } - - Stringifier.prototype.stringify = function stringify(node, semicolon) { - this[node.type](node, semicolon); - }; - - Stringifier.prototype.root = function root(node) { - this.body(node); - if (node.raws.after) this.builder(node.raws.after); - }; - - Stringifier.prototype.comment = function comment(node) { - var left = this.raw(node, 'left', 'commentLeft'); - var right = this.raw(node, 'right', 'commentRight'); - this.builder('/*' + left + node.text + right + '*/', node); - }; - - Stringifier.prototype.decl = function decl(node, semicolon) { - var between = this.raw(node, 'between', 'colon'); - var string = node.prop + between + this.rawValue(node, 'value'); - - if (node.important) { - string += node.raws.important || ' !important'; - } - - if (semicolon) string += ';'; - this.builder(string, node); - }; - - Stringifier.prototype.rule = function rule(node) { - this.block(node, this.rawValue(node, 'selector')); - }; - - Stringifier.prototype.atrule = function atrule(node, semicolon) { - var name = '@' + node.name; - var params = node.params ? this.rawValue(node, 'params') : ''; - - if (typeof node.raws.afterName !== 'undefined') { - name += node.raws.afterName; - } else if (params) { - name += ' '; - } - - if (node.nodes) { - this.block(node, name + params); - } else { - var end = (node.raws.between || '') + (semicolon ? ';' : ''); - this.builder(name + params + end, node); - } - }; - - Stringifier.prototype.body = function body(node) { - var last = node.nodes.length - 1; - while (last > 0) { - if (node.nodes[last].type !== 'comment') break; - last -= 1; - } - - var semicolon = this.raw(node, 'semicolon'); - for (var i = 0; i < node.nodes.length; i++) { - var child = node.nodes[i]; - var before = this.raw(child, 'before'); - if (before) this.builder(before); - this.stringify(child, last !== i || semicolon); - } - }; - - Stringifier.prototype.block = function block(node, start) { - var between = this.raw(node, 'between', 'beforeOpen'); - this.builder(start + between + '{', node, 'start'); - - var after = void 0; - if (node.nodes && node.nodes.length) { - this.body(node); - after = this.raw(node, 'after'); - } else { - after = this.raw(node, 'after', 'emptyBody'); - } - - if (after) this.builder(after); - this.builder('}', node, 'end'); - }; - - Stringifier.prototype.raw = function raw(node, own, detect) { - var value = void 0; - if (!detect) detect = own; - - // Already had - if (own) { - value = node.raws[own]; - if (typeof value !== 'undefined') return value; - } - - var parent = node.parent; - - // Hack for first rule in CSS - if (detect === 'before') { - if (!parent || parent.type === 'root' && parent.first === node) { - return ''; - } - } - - // Floating child without parent - if (!parent) return defaultRaw[detect]; - - // Detect style by other nodes - var root = node.root(); - if (!root.rawCache) root.rawCache = {}; - if (typeof root.rawCache[detect] !== 'undefined') { - return root.rawCache[detect]; - } - - if (detect === 'before' || detect === 'after') { - return this.beforeAfter(node, detect); - } else { - var method = 'raw' + capitalize(detect); - if (this[method]) { - value = this[method](root, node); - } else { - root.walk(function (i) { - value = i.raws[own]; - if (typeof value !== 'undefined') return false; - }); - } - } - - if (typeof value === 'undefined') value = defaultRaw[detect]; - - root.rawCache[detect] = value; - return value; - }; - - Stringifier.prototype.rawSemicolon = function rawSemicolon(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length && i.last.type === 'decl') { - value = i.raws.semicolon; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawEmptyBody = function rawEmptyBody(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length === 0) { - value = i.raws.after; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawIndent = function rawIndent(root) { - if (root.raws.indent) return root.raws.indent; - var value = void 0; - root.walk(function (i) { - var p = i.parent; - if (p && p !== root && p.parent && p.parent === root) { - if (typeof i.raws.before !== 'undefined') { - var parts = i.raws.before.split('\n'); - value = parts[parts.length - 1]; - value = value.replace(/[^\s]/g, ''); - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeComment = function rawBeforeComment(root, node) { - var value = void 0; - root.walkComments(function (i) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - }); - if (typeof value === 'undefined') { - value = this.raw(node, null, 'beforeDecl'); - } - return value; - }; - - Stringifier.prototype.rawBeforeDecl = function rawBeforeDecl(root, node) { - var value = void 0; - root.walkDecls(function (i) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - }); - if (typeof value === 'undefined') { - value = this.raw(node, null, 'beforeRule'); - } - return value; - }; - - Stringifier.prototype.rawBeforeRule = function rawBeforeRule(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && (i.parent !== root || root.first !== i)) { - if (typeof i.raws.before !== 'undefined') { - value = i.raws.before; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeClose = function rawBeforeClose(root) { - var value = void 0; - root.walk(function (i) { - if (i.nodes && i.nodes.length > 0) { - if (typeof i.raws.after !== 'undefined') { - value = i.raws.after; - if (value.indexOf('\n') !== -1) { - value = value.replace(/[^\n]+$/, ''); - } - return false; - } - } - }); - return value; - }; - - Stringifier.prototype.rawBeforeOpen = function rawBeforeOpen(root) { - var value = void 0; - root.walk(function (i) { - if (i.type !== 'decl') { - value = i.raws.between; - if (typeof value !== 'undefined') return false; - } - }); - return value; - }; - - Stringifier.prototype.rawColon = function rawColon(root) { - var value = void 0; - root.walkDecls(function (i) { - if (typeof i.raws.between !== 'undefined') { - value = i.raws.between.replace(/[^\s:]/g, ''); - return false; - } - }); - return value; - }; - - Stringifier.prototype.beforeAfter = function beforeAfter(node, detect) { - var value = void 0; - if (node.type === 'decl') { - value = this.raw(node, null, 'beforeDecl'); - } else if (node.type === 'comment') { - value = this.raw(node, null, 'beforeComment'); - } else if (detect === 'before') { - value = this.raw(node, null, 'beforeRule'); - } else { - value = this.raw(node, null, 'beforeClose'); - } - - var buf = node.parent; - var depth = 0; - while (buf && buf.type !== 'root') { - depth += 1; - buf = buf.parent; - } - - if (value.indexOf('\n') !== -1) { - var indent = this.raw(node, null, 'indent'); - if (indent.length) { - for (var step = 0; step < depth; step++) { - value += indent; - } - } - } - - return value; - }; - - Stringifier.prototype.rawValue = function rawValue(node, prop) { - var value = node[prop]; - var raw = node.raws[prop]; - if (raw && raw.value === value) { - return raw.raw; - } else { - return value; - } - }; - - return Stringifier; -}(); - -exports.default = Stringifier; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0cmluZ2lmaWVyLmVzNiJdLCJuYW1lcyI6WyJkZWZhdWx0UmF3IiwiY29sb24iLCJpbmRlbnQiLCJiZWZvcmVEZWNsIiwiYmVmb3JlUnVsZSIsImJlZm9yZU9wZW4iLCJiZWZvcmVDbG9zZSIsImJlZm9yZUNvbW1lbnQiLCJhZnRlciIsImVtcHR5Qm9keSIsImNvbW1lbnRMZWZ0IiwiY29tbWVudFJpZ2h0IiwiY2FwaXRhbGl6ZSIsInN0ciIsInRvVXBwZXJDYXNlIiwic2xpY2UiLCJTdHJpbmdpZmllciIsImJ1aWxkZXIiLCJzdHJpbmdpZnkiLCJub2RlIiwic2VtaWNvbG9uIiwidHlwZSIsInJvb3QiLCJib2R5IiwicmF3cyIsImNvbW1lbnQiLCJsZWZ0IiwicmF3IiwicmlnaHQiLCJ0ZXh0IiwiZGVjbCIsImJldHdlZW4iLCJzdHJpbmciLCJwcm9wIiwicmF3VmFsdWUiLCJpbXBvcnRhbnQiLCJydWxlIiwiYmxvY2siLCJhdHJ1bGUiLCJuYW1lIiwicGFyYW1zIiwiYWZ0ZXJOYW1lIiwibm9kZXMiLCJlbmQiLCJsYXN0IiwibGVuZ3RoIiwiaSIsImNoaWxkIiwiYmVmb3JlIiwic3RhcnQiLCJvd24iLCJkZXRlY3QiLCJ2YWx1ZSIsInBhcmVudCIsImZpcnN0IiwicmF3Q2FjaGUiLCJiZWZvcmVBZnRlciIsIm1ldGhvZCIsIndhbGsiLCJyYXdTZW1pY29sb24iLCJyYXdFbXB0eUJvZHkiLCJyYXdJbmRlbnQiLCJwIiwicGFydHMiLCJzcGxpdCIsInJlcGxhY2UiLCJyYXdCZWZvcmVDb21tZW50Iiwid2Fsa0NvbW1lbnRzIiwiaW5kZXhPZiIsInJhd0JlZm9yZURlY2wiLCJ3YWxrRGVjbHMiLCJyYXdCZWZvcmVSdWxlIiwicmF3QmVmb3JlQ2xvc2UiLCJyYXdCZWZvcmVPcGVuIiwicmF3Q29sb24iLCJidWYiLCJkZXB0aCIsInN0ZXAiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLElBQU1BLGFBQWE7QUFDZkMsV0FBZSxJQURBO0FBRWZDLFlBQWUsTUFGQTtBQUdmQyxnQkFBZSxJQUhBO0FBSWZDLGdCQUFlLElBSkE7QUFLZkMsZ0JBQWUsR0FMQTtBQU1mQyxpQkFBZSxJQU5BO0FBT2ZDLG1CQUFlLElBUEE7QUFRZkMsV0FBZSxJQVJBO0FBU2ZDLGVBQWUsRUFUQTtBQVVmQyxpQkFBZSxHQVZBO0FBV2ZDLGtCQUFlO0FBWEEsQ0FBbkI7O0FBY0EsU0FBU0MsVUFBVCxDQUFvQkMsR0FBcEIsRUFBeUI7QUFDckIsV0FBT0EsSUFBSSxDQUFKLEVBQU9DLFdBQVAsS0FBdUJELElBQUlFLEtBQUosQ0FBVSxDQUFWLENBQTlCO0FBQ0g7O0lBRUtDLFc7QUFFRix5QkFBWUMsT0FBWixFQUFxQjtBQUFBOztBQUNqQixhQUFLQSxPQUFMLEdBQWVBLE9BQWY7QUFDSDs7MEJBRURDLFMsc0JBQVVDLEksRUFBTUMsUyxFQUFXO0FBQ3ZCLGFBQUtELEtBQUtFLElBQVYsRUFBZ0JGLElBQWhCLEVBQXNCQyxTQUF0QjtBQUNILEs7OzBCQUVERSxJLGlCQUFLSCxJLEVBQU07QUFDUCxhQUFLSSxJQUFMLENBQVVKLElBQVY7QUFDQSxZQUFLQSxLQUFLSyxJQUFMLENBQVVoQixLQUFmLEVBQXVCLEtBQUtTLE9BQUwsQ0FBYUUsS0FBS0ssSUFBTCxDQUFVaEIsS0FBdkI7QUFDMUIsSzs7MEJBRURpQixPLG9CQUFRTixJLEVBQU07QUFDVixZQUFJTyxPQUFRLEtBQUtDLEdBQUwsQ0FBU1IsSUFBVCxFQUFlLE1BQWYsRUFBd0IsYUFBeEIsQ0FBWjtBQUNBLFlBQUlTLFFBQVEsS0FBS0QsR0FBTCxDQUFTUixJQUFULEVBQWUsT0FBZixFQUF3QixjQUF4QixDQUFaO0FBQ0EsYUFBS0YsT0FBTCxDQUFhLE9BQU9TLElBQVAsR0FBY1AsS0FBS1UsSUFBbkIsR0FBMEJELEtBQTFCLEdBQWtDLElBQS9DLEVBQXFEVCxJQUFyRDtBQUNILEs7OzBCQUVEVyxJLGlCQUFLWCxJLEVBQU1DLFMsRUFBVztBQUNsQixZQUFJVyxVQUFVLEtBQUtKLEdBQUwsQ0FBU1IsSUFBVCxFQUFlLFNBQWYsRUFBMEIsT0FBMUIsQ0FBZDtBQUNBLFlBQUlhLFNBQVViLEtBQUtjLElBQUwsR0FBWUYsT0FBWixHQUFzQixLQUFLRyxRQUFMLENBQWNmLElBQWQsRUFBb0IsT0FBcEIsQ0FBcEM7O0FBRUEsWUFBS0EsS0FBS2dCLFNBQVYsRUFBc0I7QUFDbEJILHNCQUFVYixLQUFLSyxJQUFMLENBQVVXLFNBQVYsSUFBdUIsYUFBakM7QUFDSDs7QUFFRCxZQUFLZixTQUFMLEVBQWlCWSxVQUFVLEdBQVY7QUFDakIsYUFBS2YsT0FBTCxDQUFhZSxNQUFiLEVBQXFCYixJQUFyQjtBQUNILEs7OzBCQUVEaUIsSSxpQkFBS2pCLEksRUFBTTtBQUNQLGFBQUtrQixLQUFMLENBQVdsQixJQUFYLEVBQWlCLEtBQUtlLFFBQUwsQ0FBY2YsSUFBZCxFQUFvQixVQUFwQixDQUFqQjtBQUNILEs7OzBCQUVEbUIsTSxtQkFBT25CLEksRUFBTUMsUyxFQUFXO0FBQ3BCLFlBQUltQixPQUFTLE1BQU1wQixLQUFLb0IsSUFBeEI7QUFDQSxZQUFJQyxTQUFTckIsS0FBS3FCLE1BQUwsR0FBYyxLQUFLTixRQUFMLENBQWNmLElBQWQsRUFBb0IsUUFBcEIsQ0FBZCxHQUE4QyxFQUEzRDs7QUFFQSxZQUFLLE9BQU9BLEtBQUtLLElBQUwsQ0FBVWlCLFNBQWpCLEtBQStCLFdBQXBDLEVBQWtEO0FBQzlDRixvQkFBUXBCLEtBQUtLLElBQUwsQ0FBVWlCLFNBQWxCO0FBQ0gsU0FGRCxNQUVPLElBQUtELE1BQUwsRUFBYztBQUNqQkQsb0JBQVEsR0FBUjtBQUNIOztBQUVELFlBQUtwQixLQUFLdUIsS0FBVixFQUFrQjtBQUNkLGlCQUFLTCxLQUFMLENBQVdsQixJQUFYLEVBQWlCb0IsT0FBT0MsTUFBeEI7QUFDSCxTQUZELE1BRU87QUFDSCxnQkFBSUcsTUFBTSxDQUFDeEIsS0FBS0ssSUFBTCxDQUFVTyxPQUFWLElBQXFCLEVBQXRCLEtBQTZCWCxZQUFZLEdBQVosR0FBa0IsRUFBL0MsQ0FBVjtBQUNBLGlCQUFLSCxPQUFMLENBQWFzQixPQUFPQyxNQUFQLEdBQWdCRyxHQUE3QixFQUFrQ3hCLElBQWxDO0FBQ0g7QUFDSixLOzswQkFFREksSSxpQkFBS0osSSxFQUFNO0FBQ1AsWUFBSXlCLE9BQU96QixLQUFLdUIsS0FBTCxDQUFXRyxNQUFYLEdBQW9CLENBQS9CO0FBQ0EsZUFBUUQsT0FBTyxDQUFmLEVBQW1CO0FBQ2YsZ0JBQUt6QixLQUFLdUIsS0FBTCxDQUFXRSxJQUFYLEVBQWlCdkIsSUFBakIsS0FBMEIsU0FBL0IsRUFBMkM7QUFDM0N1QixvQkFBUSxDQUFSO0FBQ0g7O0FBRUQsWUFBSXhCLFlBQVksS0FBS08sR0FBTCxDQUFTUixJQUFULEVBQWUsV0FBZixDQUFoQjtBQUNBLGFBQU0sSUFBSTJCLElBQUksQ0FBZCxFQUFpQkEsSUFBSTNCLEtBQUt1QixLQUFMLENBQVdHLE1BQWhDLEVBQXdDQyxHQUF4QyxFQUE4QztBQUMxQyxnQkFBSUMsUUFBUzVCLEtBQUt1QixLQUFMLENBQVdJLENBQVgsQ0FBYjtBQUNBLGdCQUFJRSxTQUFTLEtBQUtyQixHQUFMLENBQVNvQixLQUFULEVBQWdCLFFBQWhCLENBQWI7QUFDQSxnQkFBS0MsTUFBTCxFQUFjLEtBQUsvQixPQUFMLENBQWErQixNQUFiO0FBQ2QsaUJBQUs5QixTQUFMLENBQWU2QixLQUFmLEVBQXNCSCxTQUFTRSxDQUFULElBQWMxQixTQUFwQztBQUNIO0FBQ0osSzs7MEJBRURpQixLLGtCQUFNbEIsSSxFQUFNOEIsSyxFQUFPO0FBQ2YsWUFBSWxCLFVBQVUsS0FBS0osR0FBTCxDQUFTUixJQUFULEVBQWUsU0FBZixFQUEwQixZQUExQixDQUFkO0FBQ0EsYUFBS0YsT0FBTCxDQUFhZ0MsUUFBUWxCLE9BQVIsR0FBa0IsR0FBL0IsRUFBb0NaLElBQXBDLEVBQTBDLE9BQTFDOztBQUVBLFlBQUlYLGNBQUo7QUFDQSxZQUFLVyxLQUFLdUIsS0FBTCxJQUFjdkIsS0FBS3VCLEtBQUwsQ0FBV0csTUFBOUIsRUFBdUM7QUFDbkMsaUJBQUt0QixJQUFMLENBQVVKLElBQVY7QUFDQVgsb0JBQVEsS0FBS21CLEdBQUwsQ0FBU1IsSUFBVCxFQUFlLE9BQWYsQ0FBUjtBQUNILFNBSEQsTUFHTztBQUNIWCxvQkFBUSxLQUFLbUIsR0FBTCxDQUFTUixJQUFULEVBQWUsT0FBZixFQUF3QixXQUF4QixDQUFSO0FBQ0g7O0FBRUQsWUFBS1gsS0FBTCxFQUFhLEtBQUtTLE9BQUwsQ0FBYVQsS0FBYjtBQUNiLGFBQUtTLE9BQUwsQ0FBYSxHQUFiLEVBQWtCRSxJQUFsQixFQUF3QixLQUF4QjtBQUNILEs7OzBCQUVEUSxHLGdCQUFJUixJLEVBQU0rQixHLEVBQUtDLE0sRUFBUTtBQUNuQixZQUFJQyxjQUFKO0FBQ0EsWUFBSyxDQUFDRCxNQUFOLEVBQWVBLFNBQVNELEdBQVQ7O0FBRWY7QUFDQSxZQUFLQSxHQUFMLEVBQVc7QUFDUEUsb0JBQVFqQyxLQUFLSyxJQUFMLENBQVUwQixHQUFWLENBQVI7QUFDQSxnQkFBSyxPQUFPRSxLQUFQLEtBQWlCLFdBQXRCLEVBQW9DLE9BQU9BLEtBQVA7QUFDdkM7O0FBRUQsWUFBSUMsU0FBU2xDLEtBQUtrQyxNQUFsQjs7QUFFQTtBQUNBLFlBQUtGLFdBQVcsUUFBaEIsRUFBMkI7QUFDdkIsZ0JBQUssQ0FBQ0UsTUFBRCxJQUFXQSxPQUFPaEMsSUFBUCxLQUFnQixNQUFoQixJQUEwQmdDLE9BQU9DLEtBQVAsS0FBaUJuQyxJQUEzRCxFQUFrRTtBQUM5RCx1QkFBTyxFQUFQO0FBQ0g7QUFDSjs7QUFFRDtBQUNBLFlBQUssQ0FBQ2tDLE1BQU4sRUFBZSxPQUFPckQsV0FBV21ELE1BQVgsQ0FBUDs7QUFFZjtBQUNBLFlBQUk3QixPQUFPSCxLQUFLRyxJQUFMLEVBQVg7QUFDQSxZQUFLLENBQUNBLEtBQUtpQyxRQUFYLEVBQXNCakMsS0FBS2lDLFFBQUwsR0FBZ0IsRUFBaEI7QUFDdEIsWUFBSyxPQUFPakMsS0FBS2lDLFFBQUwsQ0FBY0osTUFBZCxDQUFQLEtBQWlDLFdBQXRDLEVBQW9EO0FBQ2hELG1CQUFPN0IsS0FBS2lDLFFBQUwsQ0FBY0osTUFBZCxDQUFQO0FBQ0g7O0FBRUQsWUFBS0EsV0FBVyxRQUFYLElBQXVCQSxXQUFXLE9BQXZDLEVBQWlEO0FBQzdDLG1CQUFPLEtBQUtLLFdBQUwsQ0FBaUJyQyxJQUFqQixFQUF1QmdDLE1BQXZCLENBQVA7QUFDSCxTQUZELE1BRU87QUFDSCxnQkFBSU0sU0FBUyxRQUFRN0MsV0FBV3VDLE1BQVgsQ0FBckI7QUFDQSxnQkFBSyxLQUFLTSxNQUFMLENBQUwsRUFBb0I7QUFDaEJMLHdCQUFRLEtBQUtLLE1BQUwsRUFBYW5DLElBQWIsRUFBbUJILElBQW5CLENBQVI7QUFDSCxhQUZELE1BRU87QUFDSEcscUJBQUtvQyxJQUFMLENBQVcsYUFBSztBQUNaTiw0QkFBUU4sRUFBRXRCLElBQUYsQ0FBTzBCLEdBQVAsQ0FBUjtBQUNBLHdCQUFLLE9BQU9FLEtBQVAsS0FBaUIsV0FBdEIsRUFBb0MsT0FBTyxLQUFQO0FBQ3ZDLGlCQUhEO0FBSUg7QUFDSjs7QUFFRCxZQUFLLE9BQU9BLEtBQVAsS0FBaUIsV0FBdEIsRUFBb0NBLFFBQVFwRCxXQUFXbUQsTUFBWCxDQUFSOztBQUVwQzdCLGFBQUtpQyxRQUFMLENBQWNKLE1BQWQsSUFBd0JDLEtBQXhCO0FBQ0EsZUFBT0EsS0FBUDtBQUNILEs7OzBCQUVETyxZLHlCQUFhckMsSSxFQUFNO0FBQ2YsWUFBSThCLGNBQUo7QUFDQTlCLGFBQUtvQyxJQUFMLENBQVcsYUFBSztBQUNaLGdCQUFLWixFQUFFSixLQUFGLElBQVdJLEVBQUVKLEtBQUYsQ0FBUUcsTUFBbkIsSUFBNkJDLEVBQUVGLElBQUYsQ0FBT3ZCLElBQVAsS0FBZ0IsTUFBbEQsRUFBMkQ7QUFDdkQrQix3QkFBUU4sRUFBRXRCLElBQUYsQ0FBT0osU0FBZjtBQUNBLG9CQUFLLE9BQU9nQyxLQUFQLEtBQWlCLFdBQXRCLEVBQW9DLE9BQU8sS0FBUDtBQUN2QztBQUNKLFNBTEQ7QUFNQSxlQUFPQSxLQUFQO0FBQ0gsSzs7MEJBRURRLFkseUJBQWF0QyxJLEVBQU07QUFDZixZQUFJOEIsY0FBSjtBQUNBOUIsYUFBS29DLElBQUwsQ0FBVyxhQUFLO0FBQ1osZ0JBQUtaLEVBQUVKLEtBQUYsSUFBV0ksRUFBRUosS0FBRixDQUFRRyxNQUFSLEtBQW1CLENBQW5DLEVBQXVDO0FBQ25DTyx3QkFBUU4sRUFBRXRCLElBQUYsQ0FBT2hCLEtBQWY7QUFDQSxvQkFBSyxPQUFPNEMsS0FBUCxLQUFpQixXQUF0QixFQUFvQyxPQUFPLEtBQVA7QUFDdkM7QUFDSixTQUxEO0FBTUEsZUFBT0EsS0FBUDtBQUNILEs7OzBCQUVEUyxTLHNCQUFVdkMsSSxFQUFNO0FBQ1osWUFBS0EsS0FBS0UsSUFBTCxDQUFVdEIsTUFBZixFQUF3QixPQUFPb0IsS0FBS0UsSUFBTCxDQUFVdEIsTUFBakI7QUFDeEIsWUFBSWtELGNBQUo7QUFDQTlCLGFBQUtvQyxJQUFMLENBQVcsYUFBSztBQUNaLGdCQUFJSSxJQUFJaEIsRUFBRU8sTUFBVjtBQUNBLGdCQUFLUyxLQUFLQSxNQUFNeEMsSUFBWCxJQUFtQndDLEVBQUVULE1BQXJCLElBQStCUyxFQUFFVCxNQUFGLEtBQWEvQixJQUFqRCxFQUF3RDtBQUNwRCxvQkFBSyxPQUFPd0IsRUFBRXRCLElBQUYsQ0FBT3dCLE1BQWQsS0FBeUIsV0FBOUIsRUFBNEM7QUFDeEMsd0JBQUllLFFBQVFqQixFQUFFdEIsSUFBRixDQUFPd0IsTUFBUCxDQUFjZ0IsS0FBZCxDQUFvQixJQUFwQixDQUFaO0FBQ0FaLDRCQUFRVyxNQUFNQSxNQUFNbEIsTUFBTixHQUFlLENBQXJCLENBQVI7QUFDQU8sNEJBQVFBLE1BQU1hLE9BQU4sQ0FBYyxRQUFkLEVBQXdCLEVBQXhCLENBQVI7QUFDQSwyQkFBTyxLQUFQO0FBQ0g7QUFDSjtBQUNKLFNBVkQ7QUFXQSxlQUFPYixLQUFQO0FBQ0gsSzs7MEJBRURjLGdCLDZCQUFpQjVDLEksRUFBTUgsSSxFQUFNO0FBQ3pCLFlBQUlpQyxjQUFKO0FBQ0E5QixhQUFLNkMsWUFBTCxDQUFtQixhQUFLO0FBQ3BCLGdCQUFLLE9BQU9yQixFQUFFdEIsSUFBRixDQUFPd0IsTUFBZCxLQUF5QixXQUE5QixFQUE0QztBQUN4Q0ksd0JBQVFOLEVBQUV0QixJQUFGLENBQU93QixNQUFmO0FBQ0Esb0JBQUtJLE1BQU1nQixPQUFOLENBQWMsSUFBZCxNQUF3QixDQUFDLENBQTlCLEVBQWtDO0FBQzlCaEIsNEJBQVFBLE1BQU1hLE9BQU4sQ0FBYyxTQUFkLEVBQXlCLEVBQXpCLENBQVI7QUFDSDtBQUNELHVCQUFPLEtBQVA7QUFDSDtBQUNKLFNBUkQ7QUFTQSxZQUFLLE9BQU9iLEtBQVAsS0FBaUIsV0FBdEIsRUFBb0M7QUFDaENBLG9CQUFRLEtBQUt6QixHQUFMLENBQVNSLElBQVQsRUFBZSxJQUFmLEVBQXFCLFlBQXJCLENBQVI7QUFDSDtBQUNELGVBQU9pQyxLQUFQO0FBQ0gsSzs7MEJBRURpQixhLDBCQUFjL0MsSSxFQUFNSCxJLEVBQU07QUFDdEIsWUFBSWlDLGNBQUo7QUFDQTlCLGFBQUtnRCxTQUFMLENBQWdCLGFBQUs7QUFDakIsZ0JBQUssT0FBT3hCLEVBQUV0QixJQUFGLENBQU93QixNQUFkLEtBQXlCLFdBQTlCLEVBQTRDO0FBQ3hDSSx3QkFBUU4sRUFBRXRCLElBQUYsQ0FBT3dCLE1BQWY7QUFDQSxvQkFBS0ksTUFBTWdCLE9BQU4sQ0FBYyxJQUFkLE1BQXdCLENBQUMsQ0FBOUIsRUFBa0M7QUFDOUJoQiw0QkFBUUEsTUFBTWEsT0FBTixDQUFjLFNBQWQsRUFBeUIsRUFBekIsQ0FBUjtBQUNIO0FBQ0QsdUJBQU8sS0FBUDtBQUNIO0FBQ0osU0FSRDtBQVNBLFlBQUssT0FBT2IsS0FBUCxLQUFpQixXQUF0QixFQUFvQztBQUNoQ0Esb0JBQVEsS0FBS3pCLEdBQUwsQ0FBU1IsSUFBVCxFQUFlLElBQWYsRUFBcUIsWUFBckIsQ0FBUjtBQUNIO0FBQ0QsZUFBT2lDLEtBQVA7QUFDSCxLOzswQkFFRG1CLGEsMEJBQWNqRCxJLEVBQU07QUFDaEIsWUFBSThCLGNBQUo7QUFDQTlCLGFBQUtvQyxJQUFMLENBQVcsYUFBSztBQUNaLGdCQUFLWixFQUFFSixLQUFGLEtBQVlJLEVBQUVPLE1BQUYsS0FBYS9CLElBQWIsSUFBcUJBLEtBQUtnQyxLQUFMLEtBQWVSLENBQWhELENBQUwsRUFBMEQ7QUFDdEQsb0JBQUssT0FBT0EsRUFBRXRCLElBQUYsQ0FBT3dCLE1BQWQsS0FBeUIsV0FBOUIsRUFBNEM7QUFDeENJLDRCQUFRTixFQUFFdEIsSUFBRixDQUFPd0IsTUFBZjtBQUNBLHdCQUFLSSxNQUFNZ0IsT0FBTixDQUFjLElBQWQsTUFBd0IsQ0FBQyxDQUE5QixFQUFrQztBQUM5QmhCLGdDQUFRQSxNQUFNYSxPQUFOLENBQWMsU0FBZCxFQUF5QixFQUF6QixDQUFSO0FBQ0g7QUFDRCwyQkFBTyxLQUFQO0FBQ0g7QUFDSjtBQUNKLFNBVkQ7QUFXQSxlQUFPYixLQUFQO0FBQ0gsSzs7MEJBRURvQixjLDJCQUFlbEQsSSxFQUFNO0FBQ2pCLFlBQUk4QixjQUFKO0FBQ0E5QixhQUFLb0MsSUFBTCxDQUFXLGFBQUs7QUFDWixnQkFBS1osRUFBRUosS0FBRixJQUFXSSxFQUFFSixLQUFGLENBQVFHLE1BQVIsR0FBaUIsQ0FBakMsRUFBcUM7QUFDakMsb0JBQUssT0FBT0MsRUFBRXRCLElBQUYsQ0FBT2hCLEtBQWQsS0FBd0IsV0FBN0IsRUFBMkM7QUFDdkM0Qyw0QkFBUU4sRUFBRXRCLElBQUYsQ0FBT2hCLEtBQWY7QUFDQSx3QkFBSzRDLE1BQU1nQixPQUFOLENBQWMsSUFBZCxNQUF3QixDQUFDLENBQTlCLEVBQWtDO0FBQzlCaEIsZ0NBQVFBLE1BQU1hLE9BQU4sQ0FBYyxTQUFkLEVBQXlCLEVBQXpCLENBQVI7QUFDSDtBQUNELDJCQUFPLEtBQVA7QUFDSDtBQUNKO0FBQ0osU0FWRDtBQVdBLGVBQU9iLEtBQVA7QUFDSCxLOzswQkFFRHFCLGEsMEJBQWNuRCxJLEVBQU07QUFDaEIsWUFBSThCLGNBQUo7QUFDQTlCLGFBQUtvQyxJQUFMLENBQVcsYUFBSztBQUNaLGdCQUFLWixFQUFFekIsSUFBRixLQUFXLE1BQWhCLEVBQXlCO0FBQ3JCK0Isd0JBQVFOLEVBQUV0QixJQUFGLENBQU9PLE9BQWY7QUFDQSxvQkFBSyxPQUFPcUIsS0FBUCxLQUFpQixXQUF0QixFQUFvQyxPQUFPLEtBQVA7QUFDdkM7QUFDSixTQUxEO0FBTUEsZUFBT0EsS0FBUDtBQUNILEs7OzBCQUVEc0IsUSxxQkFBU3BELEksRUFBTTtBQUNYLFlBQUk4QixjQUFKO0FBQ0E5QixhQUFLZ0QsU0FBTCxDQUFnQixhQUFLO0FBQ2pCLGdCQUFLLE9BQU94QixFQUFFdEIsSUFBRixDQUFPTyxPQUFkLEtBQTBCLFdBQS9CLEVBQTZDO0FBQ3pDcUIsd0JBQVFOLEVBQUV0QixJQUFGLENBQU9PLE9BQVAsQ0FBZWtDLE9BQWYsQ0FBdUIsU0FBdkIsRUFBa0MsRUFBbEMsQ0FBUjtBQUNBLHVCQUFPLEtBQVA7QUFDSDtBQUNKLFNBTEQ7QUFNQSxlQUFPYixLQUFQO0FBQ0gsSzs7MEJBRURJLFcsd0JBQVlyQyxJLEVBQU1nQyxNLEVBQVE7QUFDdEIsWUFBSUMsY0FBSjtBQUNBLFlBQUtqQyxLQUFLRSxJQUFMLEtBQWMsTUFBbkIsRUFBNEI7QUFDeEIrQixvQkFBUSxLQUFLekIsR0FBTCxDQUFTUixJQUFULEVBQWUsSUFBZixFQUFxQixZQUFyQixDQUFSO0FBQ0gsU0FGRCxNQUVPLElBQUtBLEtBQUtFLElBQUwsS0FBYyxTQUFuQixFQUErQjtBQUNsQytCLG9CQUFRLEtBQUt6QixHQUFMLENBQVNSLElBQVQsRUFBZSxJQUFmLEVBQXFCLGVBQXJCLENBQVI7QUFDSCxTQUZNLE1BRUEsSUFBS2dDLFdBQVcsUUFBaEIsRUFBMkI7QUFDOUJDLG9CQUFRLEtBQUt6QixHQUFMLENBQVNSLElBQVQsRUFBZSxJQUFmLEVBQXFCLFlBQXJCLENBQVI7QUFDSCxTQUZNLE1BRUE7QUFDSGlDLG9CQUFRLEtBQUt6QixHQUFMLENBQVNSLElBQVQsRUFBZSxJQUFmLEVBQXFCLGFBQXJCLENBQVI7QUFDSDs7QUFFRCxZQUFJd0QsTUFBUXhELEtBQUtrQyxNQUFqQjtBQUNBLFlBQUl1QixRQUFRLENBQVo7QUFDQSxlQUFRRCxPQUFPQSxJQUFJdEQsSUFBSixLQUFhLE1BQTVCLEVBQXFDO0FBQ2pDdUQscUJBQVMsQ0FBVDtBQUNBRCxrQkFBTUEsSUFBSXRCLE1BQVY7QUFDSDs7QUFFRCxZQUFLRCxNQUFNZ0IsT0FBTixDQUFjLElBQWQsTUFBd0IsQ0FBQyxDQUE5QixFQUFrQztBQUM5QixnQkFBSWxFLFNBQVMsS0FBS3lCLEdBQUwsQ0FBU1IsSUFBVCxFQUFlLElBQWYsRUFBcUIsUUFBckIsQ0FBYjtBQUNBLGdCQUFLakIsT0FBTzJDLE1BQVosRUFBcUI7QUFDakIscUJBQU0sSUFBSWdDLE9BQU8sQ0FBakIsRUFBb0JBLE9BQU9ELEtBQTNCLEVBQWtDQyxNQUFsQztBQUEyQ3pCLDZCQUFTbEQsTUFBVDtBQUEzQztBQUNIO0FBQ0o7O0FBRUQsZUFBT2tELEtBQVA7QUFDSCxLOzswQkFFRGxCLFEscUJBQVNmLEksRUFBTWMsSSxFQUFNO0FBQ2pCLFlBQUltQixRQUFRakMsS0FBS2MsSUFBTCxDQUFaO0FBQ0EsWUFBSU4sTUFBUVIsS0FBS0ssSUFBTCxDQUFVUyxJQUFWLENBQVo7QUFDQSxZQUFLTixPQUFPQSxJQUFJeUIsS0FBSixLQUFjQSxLQUExQixFQUFrQztBQUM5QixtQkFBT3pCLElBQUlBLEdBQVg7QUFDSCxTQUZELE1BRU87QUFDSCxtQkFBT3lCLEtBQVA7QUFDSDtBQUNKLEs7Ozs7O2tCQUlVcEMsVyIsImZpbGUiOiJzdHJpbmdpZmllci5qcyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IGRlZmF1bHRSYXcgPSB7XG4gICAgY29sb246ICAgICAgICAgJzogJyxcbiAgICBpbmRlbnQ6ICAgICAgICAnICAgICcsXG4gICAgYmVmb3JlRGVjbDogICAgJ1xcbicsXG4gICAgYmVmb3JlUnVsZTogICAgJ1xcbicsXG4gICAgYmVmb3JlT3BlbjogICAgJyAnLFxuICAgIGJlZm9yZUNsb3NlOiAgICdcXG4nLFxuICAgIGJlZm9yZUNvbW1lbnQ6ICdcXG4nLFxuICAgIGFmdGVyOiAgICAgICAgICdcXG4nLFxuICAgIGVtcHR5Qm9keTogICAgICcnLFxuICAgIGNvbW1lbnRMZWZ0OiAgICcgJyxcbiAgICBjb21tZW50UmlnaHQ6ICAnICdcbn07XG5cbmZ1bmN0aW9uIGNhcGl0YWxpemUoc3RyKSB7XG4gICAgcmV0dXJuIHN0clswXS50b1VwcGVyQ2FzZSgpICsgc3RyLnNsaWNlKDEpO1xufVxuXG5jbGFzcyBTdHJpbmdpZmllciB7XG5cbiAgICBjb25zdHJ1Y3RvcihidWlsZGVyKSB7XG4gICAgICAgIHRoaXMuYnVpbGRlciA9IGJ1aWxkZXI7XG4gICAgfVxuXG4gICAgc3RyaW5naWZ5KG5vZGUsIHNlbWljb2xvbikge1xuICAgICAgICB0aGlzW25vZGUudHlwZV0obm9kZSwgc2VtaWNvbG9uKTtcbiAgICB9XG5cbiAgICByb290KG5vZGUpIHtcbiAgICAgICAgdGhpcy5ib2R5KG5vZGUpO1xuICAgICAgICBpZiAoIG5vZGUucmF3cy5hZnRlciApIHRoaXMuYnVpbGRlcihub2RlLnJhd3MuYWZ0ZXIpO1xuICAgIH1cblxuICAgIGNvbW1lbnQobm9kZSkge1xuICAgICAgICBsZXQgbGVmdCAgPSB0aGlzLnJhdyhub2RlLCAnbGVmdCcsICAnY29tbWVudExlZnQnKTtcbiAgICAgICAgbGV0IHJpZ2h0ID0gdGhpcy5yYXcobm9kZSwgJ3JpZ2h0JywgJ2NvbW1lbnRSaWdodCcpO1xuICAgICAgICB0aGlzLmJ1aWxkZXIoJy8qJyArIGxlZnQgKyBub2RlLnRleHQgKyByaWdodCArICcqLycsIG5vZGUpO1xuICAgIH1cblxuICAgIGRlY2wobm9kZSwgc2VtaWNvbG9uKSB7XG4gICAgICAgIGxldCBiZXR3ZWVuID0gdGhpcy5yYXcobm9kZSwgJ2JldHdlZW4nLCAnY29sb24nKTtcbiAgICAgICAgbGV0IHN0cmluZyAgPSBub2RlLnByb3AgKyBiZXR3ZWVuICsgdGhpcy5yYXdWYWx1ZShub2RlLCAndmFsdWUnKTtcblxuICAgICAgICBpZiAoIG5vZGUuaW1wb3J0YW50ICkge1xuICAgICAgICAgICAgc3RyaW5nICs9IG5vZGUucmF3cy5pbXBvcnRhbnQgfHwgJyAhaW1wb3J0YW50JztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggc2VtaWNvbG9uICkgc3RyaW5nICs9ICc7JztcbiAgICAgICAgdGhpcy5idWlsZGVyKHN0cmluZywgbm9kZSk7XG4gICAgfVxuXG4gICAgcnVsZShub2RlKSB7XG4gICAgICAgIHRoaXMuYmxvY2sobm9kZSwgdGhpcy5yYXdWYWx1ZShub2RlLCAnc2VsZWN0b3InKSk7XG4gICAgfVxuXG4gICAgYXRydWxlKG5vZGUsIHNlbWljb2xvbikge1xuICAgICAgICBsZXQgbmFtZSAgID0gJ0AnICsgbm9kZS5uYW1lO1xuICAgICAgICBsZXQgcGFyYW1zID0gbm9kZS5wYXJhbXMgPyB0aGlzLnJhd1ZhbHVlKG5vZGUsICdwYXJhbXMnKSA6ICcnO1xuXG4gICAgICAgIGlmICggdHlwZW9mIG5vZGUucmF3cy5hZnRlck5hbWUgIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgbmFtZSArPSBub2RlLnJhd3MuYWZ0ZXJOYW1lO1xuICAgICAgICB9IGVsc2UgaWYgKCBwYXJhbXMgKSB7XG4gICAgICAgICAgICBuYW1lICs9ICcgJztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICggbm9kZS5ub2RlcyApIHtcbiAgICAgICAgICAgIHRoaXMuYmxvY2sobm9kZSwgbmFtZSArIHBhcmFtcyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsZXQgZW5kID0gKG5vZGUucmF3cy5iZXR3ZWVuIHx8ICcnKSArIChzZW1pY29sb24gPyAnOycgOiAnJyk7XG4gICAgICAgICAgICB0aGlzLmJ1aWxkZXIobmFtZSArIHBhcmFtcyArIGVuZCwgbm9kZSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBib2R5KG5vZGUpIHtcbiAgICAgICAgbGV0IGxhc3QgPSBub2RlLm5vZGVzLmxlbmd0aCAtIDE7XG4gICAgICAgIHdoaWxlICggbGFzdCA+IDAgKSB7XG4gICAgICAgICAgICBpZiAoIG5vZGUubm9kZXNbbGFzdF0udHlwZSAhPT0gJ2NvbW1lbnQnICkgYnJlYWs7XG4gICAgICAgICAgICBsYXN0IC09IDE7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgc2VtaWNvbG9uID0gdGhpcy5yYXcobm9kZSwgJ3NlbWljb2xvbicpO1xuICAgICAgICBmb3IgKCBsZXQgaSA9IDA7IGkgPCBub2RlLm5vZGVzLmxlbmd0aDsgaSsrICkge1xuICAgICAgICAgICAgbGV0IGNoaWxkICA9IG5vZGUubm9kZXNbaV07XG4gICAgICAgICAgICBsZXQgYmVmb3JlID0gdGhpcy5yYXcoY2hpbGQsICdiZWZvcmUnKTtcbiAgICAgICAgICAgIGlmICggYmVmb3JlICkgdGhpcy5idWlsZGVyKGJlZm9yZSk7XG4gICAgICAgICAgICB0aGlzLnN0cmluZ2lmeShjaGlsZCwgbGFzdCAhPT0gaSB8fCBzZW1pY29sb24pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYmxvY2sobm9kZSwgc3RhcnQpIHtcbiAgICAgICAgbGV0IGJldHdlZW4gPSB0aGlzLnJhdyhub2RlLCAnYmV0d2VlbicsICdiZWZvcmVPcGVuJyk7XG4gICAgICAgIHRoaXMuYnVpbGRlcihzdGFydCArIGJldHdlZW4gKyAneycsIG5vZGUsICdzdGFydCcpO1xuXG4gICAgICAgIGxldCBhZnRlcjtcbiAgICAgICAgaWYgKCBub2RlLm5vZGVzICYmIG5vZGUubm9kZXMubGVuZ3RoICkge1xuICAgICAgICAgICAgdGhpcy5ib2R5KG5vZGUpO1xuICAgICAgICAgICAgYWZ0ZXIgPSB0aGlzLnJhdyhub2RlLCAnYWZ0ZXInKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGFmdGVyID0gdGhpcy5yYXcobm9kZSwgJ2FmdGVyJywgJ2VtcHR5Qm9keScpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCBhZnRlciApIHRoaXMuYnVpbGRlcihhZnRlcik7XG4gICAgICAgIHRoaXMuYnVpbGRlcignfScsIG5vZGUsICdlbmQnKTtcbiAgICB9XG5cbiAgICByYXcobm9kZSwgb3duLCBkZXRlY3QpIHtcbiAgICAgICAgbGV0IHZhbHVlO1xuICAgICAgICBpZiAoICFkZXRlY3QgKSBkZXRlY3QgPSBvd247XG5cbiAgICAgICAgLy8gQWxyZWFkeSBoYWRcbiAgICAgICAgaWYgKCBvd24gKSB7XG4gICAgICAgICAgICB2YWx1ZSA9IG5vZGUucmF3c1tvd25dO1xuICAgICAgICAgICAgaWYgKCB0eXBlb2YgdmFsdWUgIT09ICd1bmRlZmluZWQnICkgcmV0dXJuIHZhbHVlO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHBhcmVudCA9IG5vZGUucGFyZW50O1xuXG4gICAgICAgIC8vIEhhY2sgZm9yIGZpcnN0IHJ1bGUgaW4gQ1NTXG4gICAgICAgIGlmICggZGV0ZWN0ID09PSAnYmVmb3JlJyApIHtcbiAgICAgICAgICAgIGlmICggIXBhcmVudCB8fCBwYXJlbnQudHlwZSA9PT0gJ3Jvb3QnICYmIHBhcmVudC5maXJzdCA9PT0gbm9kZSApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAvLyBGbG9hdGluZyBjaGlsZCB3aXRob3V0IHBhcmVudFxuICAgICAgICBpZiAoICFwYXJlbnQgKSByZXR1cm4gZGVmYXVsdFJhd1tkZXRlY3RdO1xuXG4gICAgICAgIC8vIERldGVjdCBzdHlsZSBieSBvdGhlciBub2Rlc1xuICAgICAgICBsZXQgcm9vdCA9IG5vZGUucm9vdCgpO1xuICAgICAgICBpZiAoICFyb290LnJhd0NhY2hlICkgcm9vdC5yYXdDYWNoZSA9IHsgfTtcbiAgICAgICAgaWYgKCB0eXBlb2Ygcm9vdC5yYXdDYWNoZVtkZXRlY3RdICE9PSAndW5kZWZpbmVkJyApIHtcbiAgICAgICAgICAgIHJldHVybiByb290LnJhd0NhY2hlW2RldGVjdF07XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIGRldGVjdCA9PT0gJ2JlZm9yZScgfHwgZGV0ZWN0ID09PSAnYWZ0ZXInICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuYmVmb3JlQWZ0ZXIobm9kZSwgZGV0ZWN0KTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGxldCBtZXRob2QgPSAncmF3JyArIGNhcGl0YWxpemUoZGV0ZWN0KTtcbiAgICAgICAgICAgIGlmICggdGhpc1ttZXRob2RdICkge1xuICAgICAgICAgICAgICAgIHZhbHVlID0gdGhpc1ttZXRob2RdKHJvb3QsIG5vZGUpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByb290LndhbGsoIGkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IGkucmF3c1tvd25dO1xuICAgICAgICAgICAgICAgICAgICBpZiAoIHR5cGVvZiB2YWx1ZSAhPT0gJ3VuZGVmaW5lZCcgKSByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIHR5cGVvZiB2YWx1ZSA9PT0gJ3VuZGVmaW5lZCcgKSB2YWx1ZSA9IGRlZmF1bHRSYXdbZGV0ZWN0XTtcblxuICAgICAgICByb290LnJhd0NhY2hlW2RldGVjdF0gPSB2YWx1ZTtcbiAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgIH1cblxuICAgIHJhd1NlbWljb2xvbihyb290KSB7XG4gICAgICAgIGxldCB2YWx1ZTtcbiAgICAgICAgcm9vdC53YWxrKCBpID0+IHtcbiAgICAgICAgICAgIGlmICggaS5ub2RlcyAmJiBpLm5vZGVzLmxlbmd0aCAmJiBpLmxhc3QudHlwZSA9PT0gJ2RlY2wnICkge1xuICAgICAgICAgICAgICAgIHZhbHVlID0gaS5yYXdzLnNlbWljb2xvbjtcbiAgICAgICAgICAgICAgICBpZiAoIHR5cGVvZiB2YWx1ZSAhPT0gJ3VuZGVmaW5lZCcgKSByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgICByZXR1cm4gdmFsdWU7XG4gICAgfVxuXG4gICAgcmF3RW1wdHlCb2R5KHJvb3QpIHtcbiAgICAgICAgbGV0IHZhbHVlO1xuICAgICAgICByb290LndhbGsoIGkgPT4ge1xuICAgICAgICAgICAgaWYgKCBpLm5vZGVzICYmIGkubm9kZXMubGVuZ3RoID09PSAwICkge1xuICAgICAgICAgICAgICAgIHZhbHVlID0gaS5yYXdzLmFmdGVyO1xuICAgICAgICAgICAgICAgIGlmICggdHlwZW9mIHZhbHVlICE9PSAndW5kZWZpbmVkJyApIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICB9XG5cbiAgICByYXdJbmRlbnQocm9vdCkge1xuICAgICAgICBpZiAoIHJvb3QucmF3cy5pbmRlbnQgKSByZXR1cm4gcm9vdC5yYXdzLmluZGVudDtcbiAgICAgICAgbGV0IHZhbHVlO1xuICAgICAgICByb290LndhbGsoIGkgPT4ge1xuICAgICAgICAgICAgbGV0IHAgPSBpLnBhcmVudDtcbiAgICAgICAgICAgIGlmICggcCAmJiBwICE9PSByb290ICYmIHAucGFyZW50ICYmIHAucGFyZW50ID09PSByb290ICkge1xuICAgICAgICAgICAgICAgIGlmICggdHlwZW9mIGkucmF3cy5iZWZvcmUgIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgICAgICAgICBsZXQgcGFydHMgPSBpLnJhd3MuYmVmb3JlLnNwbGl0KCdcXG4nKTtcbiAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSBwYXJ0c1twYXJ0cy5sZW5ndGggLSAxXTtcbiAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSB2YWx1ZS5yZXBsYWNlKC9bXlxcc10vZywgJycpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgIH1cblxuICAgIHJhd0JlZm9yZUNvbW1lbnQocm9vdCwgbm9kZSkge1xuICAgICAgICBsZXQgdmFsdWU7XG4gICAgICAgIHJvb3Qud2Fsa0NvbW1lbnRzKCBpID0+IHtcbiAgICAgICAgICAgIGlmICggdHlwZW9mIGkucmF3cy5iZWZvcmUgIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgICAgIHZhbHVlID0gaS5yYXdzLmJlZm9yZTtcbiAgICAgICAgICAgICAgICBpZiAoIHZhbHVlLmluZGV4T2YoJ1xcbicpICE9PSAtMSApIHtcbiAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSB2YWx1ZS5yZXBsYWNlKC9bXlxcbl0rJC8sICcnKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgaWYgKCB0eXBlb2YgdmFsdWUgPT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgdmFsdWUgPSB0aGlzLnJhdyhub2RlLCBudWxsLCAnYmVmb3JlRGVjbCcpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICB9XG5cbiAgICByYXdCZWZvcmVEZWNsKHJvb3QsIG5vZGUpIHtcbiAgICAgICAgbGV0IHZhbHVlO1xuICAgICAgICByb290LndhbGtEZWNscyggaSA9PiB7XG4gICAgICAgICAgICBpZiAoIHR5cGVvZiBpLnJhd3MuYmVmb3JlICE9PSAndW5kZWZpbmVkJyApIHtcbiAgICAgICAgICAgICAgICB2YWx1ZSA9IGkucmF3cy5iZWZvcmU7XG4gICAgICAgICAgICAgICAgaWYgKCB2YWx1ZS5pbmRleE9mKCdcXG4nKSAhPT0gLTEgKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhbHVlID0gdmFsdWUucmVwbGFjZSgvW15cXG5dKyQvLCAnJyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIGlmICggdHlwZW9mIHZhbHVlID09PSAndW5kZWZpbmVkJyApIHtcbiAgICAgICAgICAgIHZhbHVlID0gdGhpcy5yYXcobm9kZSwgbnVsbCwgJ2JlZm9yZVJ1bGUnKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdmFsdWU7XG4gICAgfVxuXG4gICAgcmF3QmVmb3JlUnVsZShyb290KSB7XG4gICAgICAgIGxldCB2YWx1ZTtcbiAgICAgICAgcm9vdC53YWxrKCBpID0+IHtcbiAgICAgICAgICAgIGlmICggaS5ub2RlcyAmJiAoaS5wYXJlbnQgIT09IHJvb3QgfHwgcm9vdC5maXJzdCAhPT0gaSkgKSB7XG4gICAgICAgICAgICAgICAgaWYgKCB0eXBlb2YgaS5yYXdzLmJlZm9yZSAhPT0gJ3VuZGVmaW5lZCcgKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhbHVlID0gaS5yYXdzLmJlZm9yZTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCB2YWx1ZS5pbmRleE9mKCdcXG4nKSAhPT0gLTEgKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IHZhbHVlLnJlcGxhY2UoL1teXFxuXSskLywgJycpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgICByZXR1cm4gdmFsdWU7XG4gICAgfVxuXG4gICAgcmF3QmVmb3JlQ2xvc2Uocm9vdCkge1xuICAgICAgICBsZXQgdmFsdWU7XG4gICAgICAgIHJvb3Qud2FsayggaSA9PiB7XG4gICAgICAgICAgICBpZiAoIGkubm9kZXMgJiYgaS5ub2Rlcy5sZW5ndGggPiAwICkge1xuICAgICAgICAgICAgICAgIGlmICggdHlwZW9mIGkucmF3cy5hZnRlciAhPT0gJ3VuZGVmaW5lZCcgKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhbHVlID0gaS5yYXdzLmFmdGVyO1xuICAgICAgICAgICAgICAgICAgICBpZiAoIHZhbHVlLmluZGV4T2YoJ1xcbicpICE9PSAtMSApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gdmFsdWUucmVwbGFjZSgvW15cXG5dKyQvLCAnJyk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICB9XG5cbiAgICByYXdCZWZvcmVPcGVuKHJvb3QpIHtcbiAgICAgICAgbGV0IHZhbHVlO1xuICAgICAgICByb290LndhbGsoIGkgPT4ge1xuICAgICAgICAgICAgaWYgKCBpLnR5cGUgIT09ICdkZWNsJyApIHtcbiAgICAgICAgICAgICAgICB2YWx1ZSA9IGkucmF3cy5iZXR3ZWVuO1xuICAgICAgICAgICAgICAgIGlmICggdHlwZW9mIHZhbHVlICE9PSAndW5kZWZpbmVkJyApIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICB9XG5cbiAgICByYXdDb2xvbihyb290KSB7XG4gICAgICAgIGxldCB2YWx1ZTtcbiAgICAgICAgcm9vdC53YWxrRGVjbHMoIGkgPT4ge1xuICAgICAgICAgICAgaWYgKCB0eXBlb2YgaS5yYXdzLmJldHdlZW4gIT09ICd1bmRlZmluZWQnICkge1xuICAgICAgICAgICAgICAgIHZhbHVlID0gaS5yYXdzLmJldHdlZW4ucmVwbGFjZSgvW15cXHM6XS9nLCAnJyk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgIH1cblxuICAgIGJlZm9yZUFmdGVyKG5vZGUsIGRldGVjdCkge1xuICAgICAgICBsZXQgdmFsdWU7XG4gICAgICAgIGlmICggbm9kZS50eXBlID09PSAnZGVjbCcgKSB7XG4gICAgICAgICAgICB2YWx1ZSA9IHRoaXMucmF3KG5vZGUsIG51bGwsICdiZWZvcmVEZWNsJyk7XG4gICAgICAgIH0gZWxzZSBpZiAoIG5vZGUudHlwZSA9PT0gJ2NvbW1lbnQnICkge1xuICAgICAgICAgICAgdmFsdWUgPSB0aGlzLnJhdyhub2RlLCBudWxsLCAnYmVmb3JlQ29tbWVudCcpO1xuICAgICAgICB9IGVsc2UgaWYgKCBkZXRlY3QgPT09ICdiZWZvcmUnICkge1xuICAgICAgICAgICAgdmFsdWUgPSB0aGlzLnJhdyhub2RlLCBudWxsLCAnYmVmb3JlUnVsZScpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdmFsdWUgPSB0aGlzLnJhdyhub2RlLCBudWxsLCAnYmVmb3JlQ2xvc2UnKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBidWYgICA9IG5vZGUucGFyZW50O1xuICAgICAgICBsZXQgZGVwdGggPSAwO1xuICAgICAgICB3aGlsZSAoIGJ1ZiAmJiBidWYudHlwZSAhPT0gJ3Jvb3QnICkge1xuICAgICAgICAgICAgZGVwdGggKz0gMTtcbiAgICAgICAgICAgIGJ1ZiA9IGJ1Zi5wYXJlbnQ7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoIHZhbHVlLmluZGV4T2YoJ1xcbicpICE9PSAtMSApIHtcbiAgICAgICAgICAgIGxldCBpbmRlbnQgPSB0aGlzLnJhdyhub2RlLCBudWxsLCAnaW5kZW50Jyk7XG4gICAgICAgICAgICBpZiAoIGluZGVudC5sZW5ndGggKSB7XG4gICAgICAgICAgICAgICAgZm9yICggbGV0IHN0ZXAgPSAwOyBzdGVwIDwgZGVwdGg7IHN0ZXArKyApIHZhbHVlICs9IGluZGVudDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICB9XG5cbiAgICByYXdWYWx1ZShub2RlLCBwcm9wKSB7XG4gICAgICAgIGxldCB2YWx1ZSA9IG5vZGVbcHJvcF07XG4gICAgICAgIGxldCByYXcgICA9IG5vZGUucmF3c1twcm9wXTtcbiAgICAgICAgaWYgKCByYXcgJiYgcmF3LnZhbHVlID09PSB2YWx1ZSApIHtcbiAgICAgICAgICAgIHJldHVybiByYXcucmF3O1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgICB9XG4gICAgfVxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IFN0cmluZ2lmaWVyO1xuIl19 diff --git a/node_modules/postcss/lib/stringify.js b/node_modules/postcss/lib/stringify.js deleted file mode 100644 index 239fad4..0000000 --- a/node_modules/postcss/lib/stringify.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -exports.__esModule = true; -exports.default = stringify; - -var _stringifier = require('./stringifier'); - -var _stringifier2 = _interopRequireDefault(_stringifier); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stringify(node, builder) { - var str = new _stringifier2.default(builder); - str.stringify(node); -} -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0cmluZ2lmeS5lczYiXSwibmFtZXMiOlsic3RyaW5naWZ5Iiwibm9kZSIsImJ1aWxkZXIiLCJzdHIiXSwibWFwcGluZ3MiOiI7OztrQkFFd0JBLFM7O0FBRnhCOzs7Ozs7QUFFZSxTQUFTQSxTQUFULENBQW1CQyxJQUFuQixFQUF5QkMsT0FBekIsRUFBa0M7QUFDN0MsUUFBSUMsTUFBTSwwQkFBZ0JELE9BQWhCLENBQVY7QUFDQUMsUUFBSUgsU0FBSixDQUFjQyxJQUFkO0FBQ0giLCJmaWxlIjoic3RyaW5naWZ5LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFN0cmluZ2lmaWVyIGZyb20gJy4vc3RyaW5naWZpZXInO1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBzdHJpbmdpZnkobm9kZSwgYnVpbGRlcikge1xuICAgIGxldCBzdHIgPSBuZXcgU3RyaW5naWZpZXIoYnVpbGRlcik7XG4gICAgc3RyLnN0cmluZ2lmeShub2RlKTtcbn1cbiJdfQ== diff --git a/node_modules/postcss/lib/terminal-highlight.js b/node_modules/postcss/lib/terminal-highlight.js deleted file mode 100644 index 7617474..0000000 --- a/node_modules/postcss/lib/terminal-highlight.js +++ /dev/null @@ -1,76 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -var _chalk = require('chalk'); - -var _chalk2 = _interopRequireDefault(_chalk); - -var _tokenize = require('./tokenize'); - -var _tokenize2 = _interopRequireDefault(_tokenize); - -var _input = require('./input'); - -var _input2 = _interopRequireDefault(_input); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var colors = new _chalk2.default.constructor({ enabled: true }); - -var HIGHLIGHT_THEME = { - 'brackets': colors.cyan, - 'at-word': colors.cyan, - 'call': colors.cyan, - 'comment': colors.gray, - 'string': colors.green, - 'class': colors.yellow, - 'hash': colors.magenta, - '(': colors.cyan, - ')': colors.cyan, - '{': colors.yellow, - '}': colors.yellow, - '[': colors.yellow, - ']': colors.yellow, - ':': colors.yellow, - ';': colors.yellow -}; - -function getTokenType(_ref, index, tokens) { - var type = _ref[0], - value = _ref[1]; - - if (type === 'word') { - if (value[0] === '.') { - return 'class'; - } - if (value[0] === '#') { - return 'hash'; - } - } - - var nextToken = tokens[index + 1]; - if (nextToken && (nextToken[0] === 'brackets' || nextToken[0] === '(')) { - return 'call'; - } - - return type; -} - -function terminalHighlight(css) { - var tokens = (0, _tokenize2.default)(new _input2.default(css), { ignoreErrors: true }); - return tokens.map(function (token, index) { - var color = HIGHLIGHT_THEME[getTokenType(token, index, tokens)]; - if (color) { - return token[1].split(/\r?\n/).map(function (i) { - return color(i); - }).join('\n'); - } else { - return token[1]; - } - }).join(''); -} - -exports.default = terminalHighlight; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlcm1pbmFsLWhpZ2hsaWdodC5lczYiXSwibmFtZXMiOlsiY29sb3JzIiwiY29uc3RydWN0b3IiLCJlbmFibGVkIiwiSElHSExJR0hUX1RIRU1FIiwiY3lhbiIsImdyYXkiLCJncmVlbiIsInllbGxvdyIsIm1hZ2VudGEiLCJnZXRUb2tlblR5cGUiLCJpbmRleCIsInRva2VucyIsInR5cGUiLCJ2YWx1ZSIsIm5leHRUb2tlbiIsInRlcm1pbmFsSGlnaGxpZ2h0IiwiY3NzIiwiaWdub3JlRXJyb3JzIiwibWFwIiwidG9rZW4iLCJjb2xvciIsInNwbGl0IiwiaSIsImpvaW4iXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7OztBQUVBOzs7O0FBQ0E7Ozs7OztBQUVBLElBQUlBLFNBQVMsSUFBSSxnQkFBTUMsV0FBVixDQUFzQixFQUFFQyxTQUFTLElBQVgsRUFBdEIsQ0FBYjs7QUFFQSxJQUFNQyxrQkFBa0I7QUFDcEIsZ0JBQVlILE9BQU9JLElBREM7QUFFcEIsZUFBWUosT0FBT0ksSUFGQztBQUdwQixZQUFZSixPQUFPSSxJQUhDO0FBSXBCLGVBQVlKLE9BQU9LLElBSkM7QUFLcEIsY0FBWUwsT0FBT00sS0FMQztBQU1wQixhQUFZTixPQUFPTyxNQU5DO0FBT3BCLFlBQVlQLE9BQU9RLE9BUEM7QUFRcEIsU0FBWVIsT0FBT0ksSUFSQztBQVNwQixTQUFZSixPQUFPSSxJQVRDO0FBVXBCLFNBQVlKLE9BQU9PLE1BVkM7QUFXcEIsU0FBWVAsT0FBT08sTUFYQztBQVlwQixTQUFZUCxPQUFPTyxNQVpDO0FBYXBCLFNBQVlQLE9BQU9PLE1BYkM7QUFjcEIsU0FBWVAsT0FBT08sTUFkQztBQWVwQixTQUFZUCxPQUFPTztBQWZDLENBQXhCOztBQWtCQSxTQUFTRSxZQUFULE9BQXFDQyxLQUFyQyxFQUE0Q0MsTUFBNUMsRUFBb0Q7QUFBQSxRQUE3QkMsSUFBNkI7QUFBQSxRQUF2QkMsS0FBdUI7O0FBQ2hELFFBQUlELFNBQVMsTUFBYixFQUFxQjtBQUNqQixZQUFJQyxNQUFNLENBQU4sTUFBYSxHQUFqQixFQUFzQjtBQUNsQixtQkFBTyxPQUFQO0FBQ0g7QUFDRCxZQUFJQSxNQUFNLENBQU4sTUFBYSxHQUFqQixFQUFzQjtBQUNsQixtQkFBTyxNQUFQO0FBQ0g7QUFDSjs7QUFFRCxRQUFJQyxZQUFZSCxPQUFPRCxRQUFRLENBQWYsQ0FBaEI7QUFDQSxRQUFJSSxjQUFjQSxVQUFVLENBQVYsTUFBaUIsVUFBakIsSUFBK0JBLFVBQVUsQ0FBVixNQUFpQixHQUE5RCxDQUFKLEVBQXdFO0FBQ3BFLGVBQU8sTUFBUDtBQUNIOztBQUVELFdBQU9GLElBQVA7QUFDSDs7QUFFRCxTQUFTRyxpQkFBVCxDQUEyQkMsR0FBM0IsRUFBZ0M7QUFDNUIsUUFBSUwsU0FBUyx3QkFBUyxvQkFBVUssR0FBVixDQUFULEVBQXlCLEVBQUVDLGNBQWMsSUFBaEIsRUFBekIsQ0FBYjtBQUNBLFdBQU9OLE9BQU9PLEdBQVAsQ0FBVyxVQUFDQyxLQUFELEVBQVFULEtBQVIsRUFBa0I7QUFDaEMsWUFBSVUsUUFBUWpCLGdCQUFnQk0sYUFBYVUsS0FBYixFQUFvQlQsS0FBcEIsRUFBMkJDLE1BQTNCLENBQWhCLENBQVo7QUFDQSxZQUFLUyxLQUFMLEVBQWE7QUFDVCxtQkFBT0QsTUFBTSxDQUFOLEVBQVNFLEtBQVQsQ0FBZSxPQUFmLEVBQ0pILEdBREksQ0FDQztBQUFBLHVCQUFLRSxNQUFNRSxDQUFOLENBQUw7QUFBQSxhQURELEVBRUpDLElBRkksQ0FFQyxJQUZELENBQVA7QUFHSCxTQUpELE1BSU87QUFDSCxtQkFBT0osTUFBTSxDQUFOLENBQVA7QUFDSDtBQUNKLEtBVE0sRUFTSkksSUFUSSxDQVNDLEVBVEQsQ0FBUDtBQVVIOztrQkFFY1IsaUIiLCJmaWxlIjoidGVybWluYWwtaGlnaGxpZ2h0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGNoYWxrIGZyb20gJ2NoYWxrJztcblxuaW1wb3J0IHRva2VuaXplIGZyb20gJy4vdG9rZW5pemUnO1xuaW1wb3J0IElucHV0ICAgIGZyb20gJy4vaW5wdXQnO1xuXG5sZXQgY29sb3JzID0gbmV3IGNoYWxrLmNvbnN0cnVjdG9yKHsgZW5hYmxlZDogdHJ1ZSB9KTtcblxuY29uc3QgSElHSExJR0hUX1RIRU1FID0ge1xuICAgICdicmFja2V0cyc6IGNvbG9ycy5jeWFuLFxuICAgICdhdC13b3JkJzogIGNvbG9ycy5jeWFuLFxuICAgICdjYWxsJzogICAgIGNvbG9ycy5jeWFuLFxuICAgICdjb21tZW50JzogIGNvbG9ycy5ncmF5LFxuICAgICdzdHJpbmcnOiAgIGNvbG9ycy5ncmVlbixcbiAgICAnY2xhc3MnOiAgICBjb2xvcnMueWVsbG93LFxuICAgICdoYXNoJzogICAgIGNvbG9ycy5tYWdlbnRhLFxuICAgICcoJzogICAgICAgIGNvbG9ycy5jeWFuLFxuICAgICcpJzogICAgICAgIGNvbG9ycy5jeWFuLFxuICAgICd7JzogICAgICAgIGNvbG9ycy55ZWxsb3csXG4gICAgJ30nOiAgICAgICAgY29sb3JzLnllbGxvdyxcbiAgICAnWyc6ICAgICAgICBjb2xvcnMueWVsbG93LFxuICAgICddJzogICAgICAgIGNvbG9ycy55ZWxsb3csXG4gICAgJzonOiAgICAgICAgY29sb3JzLnllbGxvdyxcbiAgICAnOyc6ICAgICAgICBjb2xvcnMueWVsbG93XG59O1xuXG5mdW5jdGlvbiBnZXRUb2tlblR5cGUoW3R5cGUsIHZhbHVlXSwgaW5kZXgsIHRva2Vucykge1xuICAgIGlmICh0eXBlID09PSAnd29yZCcpIHtcbiAgICAgICAgaWYgKHZhbHVlWzBdID09PSAnLicpIHtcbiAgICAgICAgICAgIHJldHVybiAnY2xhc3MnO1xuICAgICAgICB9XG4gICAgICAgIGlmICh2YWx1ZVswXSA9PT0gJyMnKSB7XG4gICAgICAgICAgICByZXR1cm4gJ2hhc2gnO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgbGV0IG5leHRUb2tlbiA9IHRva2Vuc1tpbmRleCArIDFdO1xuICAgIGlmIChuZXh0VG9rZW4gJiYgKG5leHRUb2tlblswXSA9PT0gJ2JyYWNrZXRzJyB8fCBuZXh0VG9rZW5bMF0gPT09ICcoJykpIHtcbiAgICAgICAgcmV0dXJuICdjYWxsJztcbiAgICB9XG5cbiAgICByZXR1cm4gdHlwZTtcbn1cblxuZnVuY3Rpb24gdGVybWluYWxIaWdobGlnaHQoY3NzKSB7XG4gICAgbGV0IHRva2VucyA9IHRva2VuaXplKG5ldyBJbnB1dChjc3MpLCB7IGlnbm9yZUVycm9yczogdHJ1ZSB9KTtcbiAgICByZXR1cm4gdG9rZW5zLm1hcCgodG9rZW4sIGluZGV4KSA9PiB7XG4gICAgICAgIGxldCBjb2xvciA9IEhJR0hMSUdIVF9USEVNRVtnZXRUb2tlblR5cGUodG9rZW4sIGluZGV4LCB0b2tlbnMpXTtcbiAgICAgICAgaWYgKCBjb2xvciApIHtcbiAgICAgICAgICAgIHJldHVybiB0b2tlblsxXS5zcGxpdCgvXFxyP1xcbi8pXG4gICAgICAgICAgICAgIC5tYXAoIGkgPT4gY29sb3IoaSkgKVxuICAgICAgICAgICAgICAuam9pbignXFxuJyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gdG9rZW5bMV07XG4gICAgICAgIH1cbiAgICB9KS5qb2luKCcnKTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgdGVybWluYWxIaWdobGlnaHQ7XG4iXX0= diff --git a/node_modules/postcss/lib/tokenize.js b/node_modules/postcss/lib/tokenize.js deleted file mode 100644 index 994f163..0000000 --- a/node_modules/postcss/lib/tokenize.js +++ /dev/null @@ -1,273 +0,0 @@ -'use strict'; - -exports.__esModule = true; -exports.default = tokenize; -var SINGLE_QUOTE = 39; -var DOUBLE_QUOTE = 34; -var BACKSLASH = 92; -var SLASH = 47; -var NEWLINE = 10; -var SPACE = 32; -var FEED = 12; -var TAB = 9; -var CR = 13; -var OPEN_SQUARE = 91; -var CLOSE_SQUARE = 93; -var OPEN_PARENTHESES = 40; -var CLOSE_PARENTHESES = 41; -var OPEN_CURLY = 123; -var CLOSE_CURLY = 125; -var SEMICOLON = 59; -var ASTERISK = 42; -var COLON = 58; -var AT = 64; - -var RE_AT_END = /[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g; -var RE_WORD_END = /[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g; -var RE_BAD_BRACKET = /.[\\\/\("'\n]/; - -function tokenize(input) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var tokens = []; - var css = input.css.valueOf(); - - var ignore = options.ignoreErrors; - - var code = void 0, - next = void 0, - quote = void 0, - lines = void 0, - last = void 0, - content = void 0, - escape = void 0, - nextLine = void 0, - nextOffset = void 0, - escaped = void 0, - escapePos = void 0, - prev = void 0, - n = void 0; - - var length = css.length; - var offset = -1; - var line = 1; - var pos = 0; - - function unclosed(what) { - throw input.error('Unclosed ' + what, line, pos - offset); - } - - while (pos < length) { - code = css.charCodeAt(pos); - - if (code === NEWLINE || code === FEED || code === CR && css.charCodeAt(pos + 1) !== NEWLINE) { - offset = pos; - line += 1; - } - - switch (code) { - case NEWLINE: - case SPACE: - case TAB: - case CR: - case FEED: - next = pos; - do { - next += 1; - code = css.charCodeAt(next); - if (code === NEWLINE) { - offset = next; - line += 1; - } - } while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED); - - tokens.push(['space', css.slice(pos, next)]); - pos = next - 1; - break; - - case OPEN_SQUARE: - tokens.push(['[', '[', line, pos - offset]); - break; - - case CLOSE_SQUARE: - tokens.push([']', ']', line, pos - offset]); - break; - - case OPEN_CURLY: - tokens.push(['{', '{', line, pos - offset]); - break; - - case CLOSE_CURLY: - tokens.push(['}', '}', line, pos - offset]); - break; - - case COLON: - tokens.push([':', ':', line, pos - offset]); - break; - - case SEMICOLON: - tokens.push([';', ';', line, pos - offset]); - break; - - case OPEN_PARENTHESES: - prev = tokens.length ? tokens[tokens.length - 1][1] : ''; - n = css.charCodeAt(pos + 1); - if (prev === 'url' && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) { - next = pos; - do { - escaped = false; - next = css.indexOf(')', next + 1); - if (next === -1) { - if (ignore) { - next = pos; - break; - } else { - unclosed('bracket'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - tokens.push(['brackets', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - } else { - next = css.indexOf(')', pos + 1); - content = css.slice(pos, next + 1); - - if (next === -1 || RE_BAD_BRACKET.test(content)) { - tokens.push(['(', '(', line, pos - offset]); - } else { - tokens.push(['brackets', content, line, pos - offset, line, next - offset]); - pos = next; - } - } - - break; - - case CLOSE_PARENTHESES: - tokens.push([')', ')', line, pos - offset]); - break; - - case SINGLE_QUOTE: - case DOUBLE_QUOTE: - quote = code === SINGLE_QUOTE ? '\'' : '"'; - next = pos; - do { - escaped = false; - next = css.indexOf(quote, next + 1); - if (next === -1) { - if (ignore) { - next = pos + 1; - break; - } else { - unclosed('string'); - } - } - escapePos = next; - while (css.charCodeAt(escapePos - 1) === BACKSLASH) { - escapePos -= 1; - escaped = !escaped; - } - } while (escaped); - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, nextLine, next - nextOffset]); - - offset = nextOffset; - line = nextLine; - pos = next; - break; - - case AT: - RE_AT_END.lastIndex = pos + 1; - RE_AT_END.test(css); - if (RE_AT_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_AT_END.lastIndex - 2; - } - tokens.push(['at-word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - break; - - case BACKSLASH: - next = pos; - escape = true; - while (css.charCodeAt(next + 1) === BACKSLASH) { - next += 1; - escape = !escape; - } - code = css.charCodeAt(next + 1); - if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) { - next += 1; - } - tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - break; - - default: - if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) { - next = css.indexOf('*/', pos + 2) + 1; - if (next === 0) { - if (ignore) { - next = css.length; - } else { - unclosed('comment'); - } - } - - content = css.slice(pos, next + 1); - lines = content.split('\n'); - last = lines.length - 1; - - if (last > 0) { - nextLine = line + last; - nextOffset = next - lines[last].length; - } else { - nextLine = line; - nextOffset = offset; - } - - tokens.push(['comment', content, line, pos - offset, nextLine, next - nextOffset]); - - offset = nextOffset; - line = nextLine; - pos = next; - } else { - RE_WORD_END.lastIndex = pos + 1; - RE_WORD_END.test(css); - if (RE_WORD_END.lastIndex === 0) { - next = css.length - 1; - } else { - next = RE_WORD_END.lastIndex - 2; - } - - tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); - pos = next; - } - - break; - } - - pos++; - } - - return tokens; -} -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRva2VuaXplLmVzNiJdLCJuYW1lcyI6WyJ0b2tlbml6ZSIsIlNJTkdMRV9RVU9URSIsIkRPVUJMRV9RVU9URSIsIkJBQ0tTTEFTSCIsIlNMQVNIIiwiTkVXTElORSIsIlNQQUNFIiwiRkVFRCIsIlRBQiIsIkNSIiwiT1BFTl9TUVVBUkUiLCJDTE9TRV9TUVVBUkUiLCJPUEVOX1BBUkVOVEhFU0VTIiwiQ0xPU0VfUEFSRU5USEVTRVMiLCJPUEVOX0NVUkxZIiwiQ0xPU0VfQ1VSTFkiLCJTRU1JQ09MT04iLCJBU1RFUklTSyIsIkNPTE9OIiwiQVQiLCJSRV9BVF9FTkQiLCJSRV9XT1JEX0VORCIsIlJFX0JBRF9CUkFDS0VUIiwiaW5wdXQiLCJvcHRpb25zIiwidG9rZW5zIiwiY3NzIiwidmFsdWVPZiIsImlnbm9yZSIsImlnbm9yZUVycm9ycyIsImNvZGUiLCJuZXh0IiwicXVvdGUiLCJsaW5lcyIsImxhc3QiLCJjb250ZW50IiwiZXNjYXBlIiwibmV4dExpbmUiLCJuZXh0T2Zmc2V0IiwiZXNjYXBlZCIsImVzY2FwZVBvcyIsInByZXYiLCJuIiwibGVuZ3RoIiwib2Zmc2V0IiwibGluZSIsInBvcyIsInVuY2xvc2VkIiwid2hhdCIsImVycm9yIiwiY2hhckNvZGVBdCIsInB1c2giLCJzbGljZSIsImluZGV4T2YiLCJ0ZXN0Iiwic3BsaXQiLCJsYXN0SW5kZXgiXSwibWFwcGluZ3MiOiI7OztrQkF3QndCQSxRO0FBeEJ4QixJQUFNQyxpQkFBTjtBQUNBLElBQU1DLGlCQUFOO0FBQ0EsSUFBTUMsY0FBTjtBQUNBLElBQU1DLFVBQU47QUFDQSxJQUFNQyxZQUFOO0FBQ0EsSUFBTUMsVUFBTjtBQUNBLElBQU1DLFNBQU47QUFDQSxJQUFNQyxPQUFOO0FBQ0EsSUFBTUMsT0FBTjtBQUNBLElBQU1DLGdCQUFOO0FBQ0EsSUFBTUMsaUJBQU47QUFDQSxJQUFNQyxxQkFBTjtBQUNBLElBQU1DLHNCQUFOO0FBQ0EsSUFBTUMsZ0JBQU47QUFDQSxJQUFNQyxpQkFBTjtBQUNBLElBQU1DLGNBQU47QUFDQSxJQUFNQyxhQUFOO0FBQ0EsSUFBTUMsVUFBTjtBQUNBLElBQU1DLE9BQU47O0FBRUEsSUFBTUMsWUFBaUIsK0JBQXZCO0FBQ0EsSUFBTUMsY0FBaUIsNENBQXZCO0FBQ0EsSUFBTUMsaUJBQWlCLGVBQXZCOztBQUVlLFNBQVN0QixRQUFULENBQWtCdUIsS0FBbEIsRUFBd0M7QUFBQSxRQUFmQyxPQUFlLHVFQUFMLEVBQUs7O0FBQ25ELFFBQUlDLFNBQVMsRUFBYjtBQUNBLFFBQUlDLE1BQVNILE1BQU1HLEdBQU4sQ0FBVUMsT0FBVixFQUFiOztBQUVBLFFBQUlDLFNBQVNKLFFBQVFLLFlBQXJCOztBQUVBLFFBQUlDLGFBQUo7QUFBQSxRQUFVQyxhQUFWO0FBQUEsUUFBZ0JDLGNBQWhCO0FBQUEsUUFBdUJDLGNBQXZCO0FBQUEsUUFBOEJDLGFBQTlCO0FBQUEsUUFBb0NDLGdCQUFwQztBQUFBLFFBQTZDQyxlQUE3QztBQUFBLFFBQ0lDLGlCQURKO0FBQUEsUUFDY0MsbUJBRGQ7QUFBQSxRQUMwQkMsZ0JBRDFCO0FBQUEsUUFDbUNDLGtCQURuQztBQUFBLFFBQzhDQyxhQUQ5QztBQUFBLFFBQ29EQyxVQURwRDs7QUFHQSxRQUFJQyxTQUFTakIsSUFBSWlCLE1BQWpCO0FBQ0EsUUFBSUMsU0FBUyxDQUFDLENBQWQ7QUFDQSxRQUFJQyxPQUFVLENBQWQ7QUFDQSxRQUFJQyxNQUFVLENBQWQ7O0FBRUEsYUFBU0MsUUFBVCxDQUFrQkMsSUFBbEIsRUFBd0I7QUFDcEIsY0FBTXpCLE1BQU0wQixLQUFOLENBQVksY0FBY0QsSUFBMUIsRUFBZ0NILElBQWhDLEVBQXNDQyxNQUFNRixNQUE1QyxDQUFOO0FBQ0g7O0FBRUQsV0FBUUUsTUFBTUgsTUFBZCxFQUF1QjtBQUNuQmIsZUFBT0osSUFBSXdCLFVBQUosQ0FBZUosR0FBZixDQUFQOztBQUVBLFlBQUtoQixTQUFTekIsT0FBVCxJQUFvQnlCLFNBQVN2QixJQUE3QixJQUNBdUIsU0FBU3JCLEVBQVQsSUFBZWlCLElBQUl3QixVQUFKLENBQWVKLE1BQU0sQ0FBckIsTUFBNEJ6QyxPQURoRCxFQUMwRDtBQUN0RHVDLHFCQUFTRSxHQUFUO0FBQ0FELG9CQUFTLENBQVQ7QUFDSDs7QUFFRCxnQkFBU2YsSUFBVDtBQUNBLGlCQUFLekIsT0FBTDtBQUNBLGlCQUFLQyxLQUFMO0FBQ0EsaUJBQUtFLEdBQUw7QUFDQSxpQkFBS0MsRUFBTDtBQUNBLGlCQUFLRixJQUFMO0FBQ0l3Qix1QkFBT2UsR0FBUDtBQUNBLG1CQUFHO0FBQ0NmLDRCQUFRLENBQVI7QUFDQUQsMkJBQU9KLElBQUl3QixVQUFKLENBQWVuQixJQUFmLENBQVA7QUFDQSx3QkFBS0QsU0FBU3pCLE9BQWQsRUFBd0I7QUFDcEJ1QyxpQ0FBU2IsSUFBVDtBQUNBYyxnQ0FBUyxDQUFUO0FBQ0g7QUFDSixpQkFQRCxRQU9VZixTQUFTeEIsS0FBVCxJQUNBd0IsU0FBU3pCLE9BRFQsSUFFQXlCLFNBQVN0QixHQUZULElBR0FzQixTQUFTckIsRUFIVCxJQUlBcUIsU0FBU3ZCLElBWG5COztBQWFBa0IsdUJBQU8wQixJQUFQLENBQVksQ0FBQyxPQUFELEVBQVV6QixJQUFJMEIsS0FBSixDQUFVTixHQUFWLEVBQWVmLElBQWYsQ0FBVixDQUFaO0FBQ0FlLHNCQUFNZixPQUFPLENBQWI7QUFDQTs7QUFFSixpQkFBS3JCLFdBQUw7QUFDSWUsdUJBQU8wQixJQUFQLENBQVksQ0FBQyxHQUFELEVBQU0sR0FBTixFQUFXTixJQUFYLEVBQWlCQyxNQUFNRixNQUF2QixDQUFaO0FBQ0E7O0FBRUosaUJBQUtqQyxZQUFMO0FBQ0ljLHVCQUFPMEIsSUFBUCxDQUFZLENBQUMsR0FBRCxFQUFNLEdBQU4sRUFBV04sSUFBWCxFQUFpQkMsTUFBTUYsTUFBdkIsQ0FBWjtBQUNBOztBQUVKLGlCQUFLOUIsVUFBTDtBQUNJVyx1QkFBTzBCLElBQVAsQ0FBWSxDQUFDLEdBQUQsRUFBTSxHQUFOLEVBQVdOLElBQVgsRUFBaUJDLE1BQU1GLE1BQXZCLENBQVo7QUFDQTs7QUFFSixpQkFBSzdCLFdBQUw7QUFDSVUsdUJBQU8wQixJQUFQLENBQVksQ0FBQyxHQUFELEVBQU0sR0FBTixFQUFXTixJQUFYLEVBQWlCQyxNQUFNRixNQUF2QixDQUFaO0FBQ0E7O0FBRUosaUJBQUsxQixLQUFMO0FBQ0lPLHVCQUFPMEIsSUFBUCxDQUFZLENBQUMsR0FBRCxFQUFNLEdBQU4sRUFBV04sSUFBWCxFQUFpQkMsTUFBTUYsTUFBdkIsQ0FBWjtBQUNBOztBQUVKLGlCQUFLNUIsU0FBTDtBQUNJUyx1QkFBTzBCLElBQVAsQ0FBWSxDQUFDLEdBQUQsRUFBTSxHQUFOLEVBQVdOLElBQVgsRUFBaUJDLE1BQU1GLE1BQXZCLENBQVo7QUFDQTs7QUFFSixpQkFBS2hDLGdCQUFMO0FBQ0k2Qix1QkFBT2hCLE9BQU9rQixNQUFQLEdBQWdCbEIsT0FBT0EsT0FBT2tCLE1BQVAsR0FBZ0IsQ0FBdkIsRUFBMEIsQ0FBMUIsQ0FBaEIsR0FBK0MsRUFBdEQ7QUFDQUQsb0JBQU9oQixJQUFJd0IsVUFBSixDQUFlSixNQUFNLENBQXJCLENBQVA7QUFDQSxvQkFBS0wsU0FBUyxLQUFULElBQWtCQyxNQUFNekMsWUFBeEIsSUFBd0N5QyxNQUFNeEMsWUFBOUMsSUFDa0J3QyxNQUFNcEMsS0FEeEIsSUFDaUNvQyxNQUFNckMsT0FEdkMsSUFDa0RxQyxNQUFNbEMsR0FEeEQsSUFFa0JrQyxNQUFNbkMsSUFGeEIsSUFFZ0NtQyxNQUFNakMsRUFGM0MsRUFFZ0Q7QUFDNUNzQiwyQkFBT2UsR0FBUDtBQUNBLHVCQUFHO0FBQ0NQLGtDQUFVLEtBQVY7QUFDQVIsK0JBQVVMLElBQUkyQixPQUFKLENBQVksR0FBWixFQUFpQnRCLE9BQU8sQ0FBeEIsQ0FBVjtBQUNBLDRCQUFLQSxTQUFTLENBQUMsQ0FBZixFQUFtQjtBQUNmLGdDQUFLSCxNQUFMLEVBQWM7QUFDVkcsdUNBQU9lLEdBQVA7QUFDQTtBQUNILDZCQUhELE1BR087QUFDSEMseUNBQVMsU0FBVDtBQUNIO0FBQ0o7QUFDRFAsb0NBQVlULElBQVo7QUFDQSwrQkFBUUwsSUFBSXdCLFVBQUosQ0FBZVYsWUFBWSxDQUEzQixNQUFrQ3JDLFNBQTFDLEVBQXNEO0FBQ2xEcUMseUNBQWEsQ0FBYjtBQUNBRCxzQ0FBVSxDQUFDQSxPQUFYO0FBQ0g7QUFDSixxQkFoQkQsUUFnQlVBLE9BaEJWOztBQWtCQWQsMkJBQU8wQixJQUFQLENBQVksQ0FBQyxVQUFELEVBQWF6QixJQUFJMEIsS0FBSixDQUFVTixHQUFWLEVBQWVmLE9BQU8sQ0FBdEIsQ0FBYixFQUNSYyxJQURRLEVBQ0ZDLE1BQU9GLE1BREwsRUFFUkMsSUFGUSxFQUVGZCxPQUFPYSxNQUZMLENBQVo7QUFJQUUsMEJBQU1mLElBQU47QUFFSCxpQkE1QkQsTUE0Qk87QUFDSEEsMkJBQVVMLElBQUkyQixPQUFKLENBQVksR0FBWixFQUFpQlAsTUFBTSxDQUF2QixDQUFWO0FBQ0FYLDhCQUFVVCxJQUFJMEIsS0FBSixDQUFVTixHQUFWLEVBQWVmLE9BQU8sQ0FBdEIsQ0FBVjs7QUFFQSx3QkFBS0EsU0FBUyxDQUFDLENBQVYsSUFBZVQsZUFBZWdDLElBQWYsQ0FBb0JuQixPQUFwQixDQUFwQixFQUFtRDtBQUMvQ1YsK0JBQU8wQixJQUFQLENBQVksQ0FBQyxHQUFELEVBQU0sR0FBTixFQUFXTixJQUFYLEVBQWlCQyxNQUFNRixNQUF2QixDQUFaO0FBQ0gscUJBRkQsTUFFTztBQUNIbkIsK0JBQU8wQixJQUFQLENBQVksQ0FBQyxVQUFELEVBQWFoQixPQUFiLEVBQ1JVLElBRFEsRUFDRkMsTUFBT0YsTUFETCxFQUVSQyxJQUZRLEVBRUZkLE9BQU9hLE1BRkwsQ0FBWjtBQUlBRSw4QkFBTWYsSUFBTjtBQUNIO0FBQ0o7O0FBRUQ7O0FBRUosaUJBQUtsQixpQkFBTDtBQUNJWSx1QkFBTzBCLElBQVAsQ0FBWSxDQUFDLEdBQUQsRUFBTSxHQUFOLEVBQVdOLElBQVgsRUFBaUJDLE1BQU1GLE1BQXZCLENBQVo7QUFDQTs7QUFFSixpQkFBSzNDLFlBQUw7QUFDQSxpQkFBS0MsWUFBTDtBQUNJOEIsd0JBQVFGLFNBQVM3QixZQUFULEdBQXdCLElBQXhCLEdBQStCLEdBQXZDO0FBQ0E4Qix1QkFBUWUsR0FBUjtBQUNBLG1CQUFHO0FBQ0NQLDhCQUFVLEtBQVY7QUFDQVIsMkJBQVVMLElBQUkyQixPQUFKLENBQVlyQixLQUFaLEVBQW1CRCxPQUFPLENBQTFCLENBQVY7QUFDQSx3QkFBS0EsU0FBUyxDQUFDLENBQWYsRUFBbUI7QUFDZiw0QkFBS0gsTUFBTCxFQUFjO0FBQ1ZHLG1DQUFPZSxNQUFNLENBQWI7QUFDQTtBQUNILHlCQUhELE1BR087QUFDSEMscUNBQVMsUUFBVDtBQUNIO0FBQ0o7QUFDRFAsZ0NBQVlULElBQVo7QUFDQSwyQkFBUUwsSUFBSXdCLFVBQUosQ0FBZVYsWUFBWSxDQUEzQixNQUFrQ3JDLFNBQTFDLEVBQXNEO0FBQ2xEcUMscUNBQWEsQ0FBYjtBQUNBRCxrQ0FBVSxDQUFDQSxPQUFYO0FBQ0g7QUFDSixpQkFoQkQsUUFnQlVBLE9BaEJWOztBQWtCQUosMEJBQVVULElBQUkwQixLQUFKLENBQVVOLEdBQVYsRUFBZWYsT0FBTyxDQUF0QixDQUFWO0FBQ0FFLHdCQUFVRSxRQUFRb0IsS0FBUixDQUFjLElBQWQsQ0FBVjtBQUNBckIsdUJBQVVELE1BQU1VLE1BQU4sR0FBZSxDQUF6Qjs7QUFFQSxvQkFBS1QsT0FBTyxDQUFaLEVBQWdCO0FBQ1pHLCtCQUFhUSxPQUFPWCxJQUFwQjtBQUNBSSxpQ0FBYVAsT0FBT0UsTUFBTUMsSUFBTixFQUFZUyxNQUFoQztBQUNILGlCQUhELE1BR087QUFDSE4sK0JBQWFRLElBQWI7QUFDQVAsaUNBQWFNLE1BQWI7QUFDSDs7QUFFRG5CLHVCQUFPMEIsSUFBUCxDQUFZLENBQUMsUUFBRCxFQUFXekIsSUFBSTBCLEtBQUosQ0FBVU4sR0FBVixFQUFlZixPQUFPLENBQXRCLENBQVgsRUFDUmMsSUFEUSxFQUNGQyxNQUFPRixNQURMLEVBRVJQLFFBRlEsRUFFRU4sT0FBT08sVUFGVCxDQUFaOztBQUtBTSx5QkFBU04sVUFBVDtBQUNBTyx1QkFBU1IsUUFBVDtBQUNBUyxzQkFBU2YsSUFBVDtBQUNBOztBQUVKLGlCQUFLWixFQUFMO0FBQ0lDLDBCQUFVb0MsU0FBVixHQUFzQlYsTUFBTSxDQUE1QjtBQUNBMUIsMEJBQVVrQyxJQUFWLENBQWU1QixHQUFmO0FBQ0Esb0JBQUtOLFVBQVVvQyxTQUFWLEtBQXdCLENBQTdCLEVBQWlDO0FBQzdCekIsMkJBQU9MLElBQUlpQixNQUFKLEdBQWEsQ0FBcEI7QUFDSCxpQkFGRCxNQUVPO0FBQ0haLDJCQUFPWCxVQUFVb0MsU0FBVixHQUFzQixDQUE3QjtBQUNIO0FBQ0QvQix1QkFBTzBCLElBQVAsQ0FBWSxDQUFDLFNBQUQsRUFBWXpCLElBQUkwQixLQUFKLENBQVVOLEdBQVYsRUFBZWYsT0FBTyxDQUF0QixDQUFaLEVBQ1JjLElBRFEsRUFDRkMsTUFBT0YsTUFETCxFQUVSQyxJQUZRLEVBRUZkLE9BQU9hLE1BRkwsQ0FBWjtBQUlBRSxzQkFBTWYsSUFBTjtBQUNBOztBQUVKLGlCQUFLNUIsU0FBTDtBQUNJNEIsdUJBQVNlLEdBQVQ7QUFDQVYseUJBQVMsSUFBVDtBQUNBLHVCQUFRVixJQUFJd0IsVUFBSixDQUFlbkIsT0FBTyxDQUF0QixNQUE2QjVCLFNBQXJDLEVBQWlEO0FBQzdDNEIsNEJBQVMsQ0FBVDtBQUNBSyw2QkFBUyxDQUFDQSxNQUFWO0FBQ0g7QUFDRE4sdUJBQU9KLElBQUl3QixVQUFKLENBQWVuQixPQUFPLENBQXRCLENBQVA7QUFDQSxvQkFBS0ssVUFBV04sU0FBUzFCLEtBQVQsSUFDQTBCLFNBQVN4QixLQURULElBRUF3QixTQUFTekIsT0FGVCxJQUdBeUIsU0FBU3RCLEdBSFQsSUFJQXNCLFNBQVNyQixFQUpULElBS0FxQixTQUFTdkIsSUFMekIsRUFLa0M7QUFDOUJ3Qiw0QkFBUSxDQUFSO0FBQ0g7QUFDRE4sdUJBQU8wQixJQUFQLENBQVksQ0FBQyxNQUFELEVBQVN6QixJQUFJMEIsS0FBSixDQUFVTixHQUFWLEVBQWVmLE9BQU8sQ0FBdEIsQ0FBVCxFQUNSYyxJQURRLEVBQ0ZDLE1BQU9GLE1BREwsRUFFUkMsSUFGUSxFQUVGZCxPQUFPYSxNQUZMLENBQVo7QUFJQUUsc0JBQU1mLElBQU47QUFDQTs7QUFFSjtBQUNJLG9CQUFLRCxTQUFTMUIsS0FBVCxJQUFrQnNCLElBQUl3QixVQUFKLENBQWVKLE1BQU0sQ0FBckIsTUFBNEI3QixRQUFuRCxFQUE4RDtBQUMxRGMsMkJBQU9MLElBQUkyQixPQUFKLENBQVksSUFBWixFQUFrQlAsTUFBTSxDQUF4QixJQUE2QixDQUFwQztBQUNBLHdCQUFLZixTQUFTLENBQWQsRUFBa0I7QUFDZCw0QkFBS0gsTUFBTCxFQUFjO0FBQ1ZHLG1DQUFPTCxJQUFJaUIsTUFBWDtBQUNILHlCQUZELE1BRU87QUFDSEkscUNBQVMsU0FBVDtBQUNIO0FBQ0o7O0FBRURaLDhCQUFVVCxJQUFJMEIsS0FBSixDQUFVTixHQUFWLEVBQWVmLE9BQU8sQ0FBdEIsQ0FBVjtBQUNBRSw0QkFBVUUsUUFBUW9CLEtBQVIsQ0FBYyxJQUFkLENBQVY7QUFDQXJCLDJCQUFVRCxNQUFNVSxNQUFOLEdBQWUsQ0FBekI7O0FBRUEsd0JBQUtULE9BQU8sQ0FBWixFQUFnQjtBQUNaRyxtQ0FBYVEsT0FBT1gsSUFBcEI7QUFDQUkscUNBQWFQLE9BQU9FLE1BQU1DLElBQU4sRUFBWVMsTUFBaEM7QUFDSCxxQkFIRCxNQUdPO0FBQ0hOLG1DQUFhUSxJQUFiO0FBQ0FQLHFDQUFhTSxNQUFiO0FBQ0g7O0FBRURuQiwyQkFBTzBCLElBQVAsQ0FBWSxDQUFDLFNBQUQsRUFBWWhCLE9BQVosRUFDUlUsSUFEUSxFQUNFQyxNQUFPRixNQURULEVBRVJQLFFBRlEsRUFFRU4sT0FBT08sVUFGVCxDQUFaOztBQUtBTSw2QkFBU04sVUFBVDtBQUNBTywyQkFBU1IsUUFBVDtBQUNBUywwQkFBU2YsSUFBVDtBQUVILGlCQS9CRCxNQStCTztBQUNIVixnQ0FBWW1DLFNBQVosR0FBd0JWLE1BQU0sQ0FBOUI7QUFDQXpCLGdDQUFZaUMsSUFBWixDQUFpQjVCLEdBQWpCO0FBQ0Esd0JBQUtMLFlBQVltQyxTQUFaLEtBQTBCLENBQS9CLEVBQW1DO0FBQy9CekIsK0JBQU9MLElBQUlpQixNQUFKLEdBQWEsQ0FBcEI7QUFDSCxxQkFGRCxNQUVPO0FBQ0haLCtCQUFPVixZQUFZbUMsU0FBWixHQUF3QixDQUEvQjtBQUNIOztBQUVEL0IsMkJBQU8wQixJQUFQLENBQVksQ0FBQyxNQUFELEVBQVN6QixJQUFJMEIsS0FBSixDQUFVTixHQUFWLEVBQWVmLE9BQU8sQ0FBdEIsQ0FBVCxFQUNSYyxJQURRLEVBQ0ZDLE1BQU9GLE1BREwsRUFFUkMsSUFGUSxFQUVGZCxPQUFPYSxNQUZMLENBQVo7QUFJQUUsMEJBQU1mLElBQU47QUFDSDs7QUFFRDtBQXRPSjs7QUF5T0FlO0FBQ0g7O0FBRUQsV0FBT3JCLE1BQVA7QUFDSCIsImZpbGUiOiJ0b2tlbml6ZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IFNJTkdMRV9RVU9URSAgICAgID0gJ1xcJycuY2hhckNvZGVBdCgwKTtcbmNvbnN0IERPVUJMRV9RVU9URSAgICAgID0gICdcIicuY2hhckNvZGVBdCgwKTtcbmNvbnN0IEJBQ0tTTEFTSCAgICAgICAgID0gJ1xcXFwnLmNoYXJDb2RlQXQoMCk7XG5jb25zdCBTTEFTSCAgICAgICAgICAgICA9ICAnLycuY2hhckNvZGVBdCgwKTtcbmNvbnN0IE5FV0xJTkUgICAgICAgICAgID0gJ1xcbicuY2hhckNvZGVBdCgwKTtcbmNvbnN0IFNQQUNFICAgICAgICAgICAgID0gICcgJy5jaGFyQ29kZUF0KDApO1xuY29uc3QgRkVFRCAgICAgICAgICAgICAgPSAnXFxmJy5jaGFyQ29kZUF0KDApO1xuY29uc3QgVEFCICAgICAgICAgICAgICAgPSAnXFx0Jy5jaGFyQ29kZUF0KDApO1xuY29uc3QgQ1IgICAgICAgICAgICAgICAgPSAnXFxyJy5jaGFyQ29kZUF0KDApO1xuY29uc3QgT1BFTl9TUVVBUkUgICAgICAgPSAgJ1snLmNoYXJDb2RlQXQoMCk7XG5jb25zdCBDTE9TRV9TUVVBUkUgICAgICA9ICAnXScuY2hhckNvZGVBdCgwKTtcbmNvbnN0IE9QRU5fUEFSRU5USEVTRVMgID0gICcoJy5jaGFyQ29kZUF0KDApO1xuY29uc3QgQ0xPU0VfUEFSRU5USEVTRVMgPSAgJyknLmNoYXJDb2RlQXQoMCk7XG5jb25zdCBPUEVOX0NVUkxZICAgICAgICA9ICAneycuY2hhckNvZGVBdCgwKTtcbmNvbnN0IENMT1NFX0NVUkxZICAgICAgID0gICd9Jy5jaGFyQ29kZUF0KDApO1xuY29uc3QgU0VNSUNPTE9OICAgICAgICAgPSAgJzsnLmNoYXJDb2RlQXQoMCk7XG5jb25zdCBBU1RFUklTSyAgICAgICAgICA9ICAnKicuY2hhckNvZGVBdCgwKTtcbmNvbnN0IENPTE9OICAgICAgICAgICAgID0gICc6Jy5jaGFyQ29kZUF0KDApO1xuY29uc3QgQVQgICAgICAgICAgICAgICAgPSAgJ0AnLmNoYXJDb2RlQXQoMCk7XG5cbmNvbnN0IFJFX0FUX0VORCAgICAgID0gL1sgXFxuXFx0XFxyXFxmXFx7XFwoXFwpJ1wiXFxcXDsvXFxbXFxdI10vZztcbmNvbnN0IFJFX1dPUkRfRU5EICAgID0gL1sgXFxuXFx0XFxyXFxmXFwoXFwpXFx7XFx9OjtAISdcIlxcXFxcXF1cXFsjXXxcXC8oPz1cXCopL2c7XG5jb25zdCBSRV9CQURfQlJBQ0tFVCA9IC8uW1xcXFxcXC9cXChcIidcXG5dLztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gdG9rZW5pemUoaW5wdXQsIG9wdGlvbnMgPSB7IH0pIHtcbiAgICBsZXQgdG9rZW5zID0gW107XG4gICAgbGV0IGNzcyAgICA9IGlucHV0LmNzcy52YWx1ZU9mKCk7XG5cbiAgICBsZXQgaWdub3JlID0gb3B0aW9ucy5pZ25vcmVFcnJvcnM7XG5cbiAgICBsZXQgY29kZSwgbmV4dCwgcXVvdGUsIGxpbmVzLCBsYXN0LCBjb250ZW50LCBlc2NhcGUsXG4gICAgICAgIG5leHRMaW5lLCBuZXh0T2Zmc2V0LCBlc2NhcGVkLCBlc2NhcGVQb3MsIHByZXYsIG47XG5cbiAgICBsZXQgbGVuZ3RoID0gY3NzLmxlbmd0aDtcbiAgICBsZXQgb2Zmc2V0ID0gLTE7XG4gICAgbGV0IGxpbmUgICA9ICAxO1xuICAgIGxldCBwb3MgICAgPSAgMDtcblxuICAgIGZ1bmN0aW9uIHVuY2xvc2VkKHdoYXQpIHtcbiAgICAgICAgdGhyb3cgaW5wdXQuZXJyb3IoJ1VuY2xvc2VkICcgKyB3aGF0LCBsaW5lLCBwb3MgLSBvZmZzZXQpO1xuICAgIH1cblxuICAgIHdoaWxlICggcG9zIDwgbGVuZ3RoICkge1xuICAgICAgICBjb2RlID0gY3NzLmNoYXJDb2RlQXQocG9zKTtcblxuICAgICAgICBpZiAoIGNvZGUgPT09IE5FV0xJTkUgfHwgY29kZSA9PT0gRkVFRCB8fFxuICAgICAgICAgICAgIGNvZGUgPT09IENSICYmIGNzcy5jaGFyQ29kZUF0KHBvcyArIDEpICE9PSBORVdMSU5FICkge1xuICAgICAgICAgICAgb2Zmc2V0ID0gcG9zO1xuICAgICAgICAgICAgbGluZSAgKz0gMTtcbiAgICAgICAgfVxuXG4gICAgICAgIHN3aXRjaCAoIGNvZGUgKSB7XG4gICAgICAgIGNhc2UgTkVXTElORTpcbiAgICAgICAgY2FzZSBTUEFDRTpcbiAgICAgICAgY2FzZSBUQUI6XG4gICAgICAgIGNhc2UgQ1I6XG4gICAgICAgIGNhc2UgRkVFRDpcbiAgICAgICAgICAgIG5leHQgPSBwb3M7XG4gICAgICAgICAgICBkbyB7XG4gICAgICAgICAgICAgICAgbmV4dCArPSAxO1xuICAgICAgICAgICAgICAgIGNvZGUgPSBjc3MuY2hhckNvZGVBdChuZXh0KTtcbiAgICAgICAgICAgICAgICBpZiAoIGNvZGUgPT09IE5FV0xJTkUgKSB7XG4gICAgICAgICAgICAgICAgICAgIG9mZnNldCA9IG5leHQ7XG4gICAgICAgICAgICAgICAgICAgIGxpbmUgICs9IDE7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSB3aGlsZSAoIGNvZGUgPT09IFNQQUNFICAgfHxcbiAgICAgICAgICAgICAgICAgICAgICBjb2RlID09PSBORVdMSU5FIHx8XG4gICAgICAgICAgICAgICAgICAgICAgY29kZSA9PT0gVEFCICAgICB8fFxuICAgICAgICAgICAgICAgICAgICAgIGNvZGUgPT09IENSICAgICAgfHxcbiAgICAgICAgICAgICAgICAgICAgICBjb2RlID09PSBGRUVEICk7XG5cbiAgICAgICAgICAgIHRva2Vucy5wdXNoKFsnc3BhY2UnLCBjc3Muc2xpY2UocG9zLCBuZXh0KV0pO1xuICAgICAgICAgICAgcG9zID0gbmV4dCAtIDE7XG4gICAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIE9QRU5fU1FVQVJFOlxuICAgICAgICAgICAgdG9rZW5zLnB1c2goWydbJywgJ1snLCBsaW5lLCBwb3MgLSBvZmZzZXRdKTtcbiAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgQ0xPU0VfU1FVQVJFOlxuICAgICAgICAgICAgdG9rZW5zLnB1c2goWyddJywgJ10nLCBsaW5lLCBwb3MgLSBvZmZzZXRdKTtcbiAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgT1BFTl9DVVJMWTpcbiAgICAgICAgICAgIHRva2Vucy5wdXNoKFsneycsICd7JywgbGluZSwgcG9zIC0gb2Zmc2V0XSk7XG4gICAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIENMT1NFX0NVUkxZOlxuICAgICAgICAgICAgdG9rZW5zLnB1c2goWyd9JywgJ30nLCBsaW5lLCBwb3MgLSBvZmZzZXRdKTtcbiAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgQ09MT046XG4gICAgICAgICAgICB0b2tlbnMucHVzaChbJzonLCAnOicsIGxpbmUsIHBvcyAtIG9mZnNldF0pO1xuICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBTRU1JQ09MT046XG4gICAgICAgICAgICB0b2tlbnMucHVzaChbJzsnLCAnOycsIGxpbmUsIHBvcyAtIG9mZnNldF0pO1xuICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBPUEVOX1BBUkVOVEhFU0VTOlxuICAgICAgICAgICAgcHJldiA9IHRva2Vucy5sZW5ndGggPyB0b2tlbnNbdG9rZW5zLmxlbmd0aCAtIDFdWzFdIDogJyc7XG4gICAgICAgICAgICBuICAgID0gY3NzLmNoYXJDb2RlQXQocG9zICsgMSk7XG4gICAgICAgICAgICBpZiAoIHByZXYgPT09ICd1cmwnICYmIG4gIT09IFNJTkdMRV9RVU9URSAmJiBuICE9PSBET1VCTEVfUVVPVEUgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbiAhPT0gU1BBQ0UgJiYgbiAhPT0gTkVXTElORSAmJiBuICE9PSBUQUIgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbiAhPT0gRkVFRCAmJiBuICE9PSBDUiApIHtcbiAgICAgICAgICAgICAgICBuZXh0ID0gcG9zO1xuICAgICAgICAgICAgICAgIGRvIHtcbiAgICAgICAgICAgICAgICAgICAgZXNjYXBlZCA9IGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICBuZXh0ICAgID0gY3NzLmluZGV4T2YoJyknLCBuZXh0ICsgMSk7XG4gICAgICAgICAgICAgICAgICAgIGlmICggbmV4dCA9PT0gLTEgKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoIGlnbm9yZSApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXh0ID0gcG9zO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmNsb3NlZCgnYnJhY2tldCcpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVzY2FwZVBvcyA9IG5leHQ7XG4gICAgICAgICAgICAgICAgICAgIHdoaWxlICggY3NzLmNoYXJDb2RlQXQoZXNjYXBlUG9zIC0gMSkgPT09IEJBQ0tTTEFTSCApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGVzY2FwZVBvcyAtPSAxO1xuICAgICAgICAgICAgICAgICAgICAgICAgZXNjYXBlZCA9ICFlc2NhcGVkO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSB3aGlsZSAoIGVzY2FwZWQgKTtcblxuICAgICAgICAgICAgICAgIHRva2Vucy5wdXNoKFsnYnJhY2tldHMnLCBjc3Muc2xpY2UocG9zLCBuZXh0ICsgMSksXG4gICAgICAgICAgICAgICAgICAgIGxpbmUsIHBvcyAgLSBvZmZzZXQsXG4gICAgICAgICAgICAgICAgICAgIGxpbmUsIG5leHQgLSBvZmZzZXRcbiAgICAgICAgICAgICAgICBdKTtcbiAgICAgICAgICAgICAgICBwb3MgPSBuZXh0O1xuXG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIG5leHQgICAgPSBjc3MuaW5kZXhPZignKScsIHBvcyArIDEpO1xuICAgICAgICAgICAgICAgIGNvbnRlbnQgPSBjc3Muc2xpY2UocG9zLCBuZXh0ICsgMSk7XG5cbiAgICAgICAgICAgICAgICBpZiAoIG5leHQgPT09IC0xIHx8IFJFX0JBRF9CUkFDS0VULnRlc3QoY29udGVudCkgKSB7XG4gICAgICAgICAgICAgICAgICAgIHRva2Vucy5wdXNoKFsnKCcsICcoJywgbGluZSwgcG9zIC0gb2Zmc2V0XSk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdG9rZW5zLnB1c2goWydicmFja2V0cycsIGNvbnRlbnQsXG4gICAgICAgICAgICAgICAgICAgICAgICBsaW5lLCBwb3MgIC0gb2Zmc2V0LFxuICAgICAgICAgICAgICAgICAgICAgICAgbGluZSwgbmV4dCAtIG9mZnNldFxuICAgICAgICAgICAgICAgICAgICBdKTtcbiAgICAgICAgICAgICAgICAgICAgcG9zID0gbmV4dDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgQ0xPU0VfUEFSRU5USEVTRVM6XG4gICAgICAgICAgICB0b2tlbnMucHVzaChbJyknLCAnKScsIGxpbmUsIHBvcyAtIG9mZnNldF0pO1xuICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgY2FzZSBTSU5HTEVfUVVPVEU6XG4gICAgICAgIGNhc2UgRE9VQkxFX1FVT1RFOlxuICAgICAgICAgICAgcXVvdGUgPSBjb2RlID09PSBTSU5HTEVfUVVPVEUgPyAnXFwnJyA6ICdcIic7XG4gICAgICAgICAgICBuZXh0ICA9IHBvcztcbiAgICAgICAgICAgIGRvIHtcbiAgICAgICAgICAgICAgICBlc2NhcGVkID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgbmV4dCAgICA9IGNzcy5pbmRleE9mKHF1b3RlLCBuZXh0ICsgMSk7XG4gICAgICAgICAgICAgICAgaWYgKCBuZXh0ID09PSAtMSApIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCBpZ25vcmUgKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBuZXh0ID0gcG9zICsgMTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgdW5jbG9zZWQoJ3N0cmluZycpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVzY2FwZVBvcyA9IG5leHQ7XG4gICAgICAgICAgICAgICAgd2hpbGUgKCBjc3MuY2hhckNvZGVBdChlc2NhcGVQb3MgLSAxKSA9PT0gQkFDS1NMQVNIICkge1xuICAgICAgICAgICAgICAgICAgICBlc2NhcGVQb3MgLT0gMTtcbiAgICAgICAgICAgICAgICAgICAgZXNjYXBlZCA9ICFlc2NhcGVkO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gd2hpbGUgKCBlc2NhcGVkICk7XG5cbiAgICAgICAgICAgIGNvbnRlbnQgPSBjc3Muc2xpY2UocG9zLCBuZXh0ICsgMSk7XG4gICAgICAgICAgICBsaW5lcyAgID0gY29udGVudC5zcGxpdCgnXFxuJyk7XG4gICAgICAgICAgICBsYXN0ICAgID0gbGluZXMubGVuZ3RoIC0gMTtcblxuICAgICAgICAgICAgaWYgKCBsYXN0ID4gMCApIHtcbiAgICAgICAgICAgICAgICBuZXh0TGluZSAgID0gbGluZSArIGxhc3Q7XG4gICAgICAgICAgICAgICAgbmV4dE9mZnNldCA9IG5leHQgLSBsaW5lc1tsYXN0XS5sZW5ndGg7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIG5leHRMaW5lICAgPSBsaW5lO1xuICAgICAgICAgICAgICAgIG5leHRPZmZzZXQgPSBvZmZzZXQ7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRva2Vucy5wdXNoKFsnc3RyaW5nJywgY3NzLnNsaWNlKHBvcywgbmV4dCArIDEpLFxuICAgICAgICAgICAgICAgIGxpbmUsIHBvcyAgLSBvZmZzZXQsXG4gICAgICAgICAgICAgICAgbmV4dExpbmUsIG5leHQgLSBuZXh0T2Zmc2V0XG4gICAgICAgICAgICBdKTtcblxuICAgICAgICAgICAgb2Zmc2V0ID0gbmV4dE9mZnNldDtcbiAgICAgICAgICAgIGxpbmUgICA9IG5leHRMaW5lO1xuICAgICAgICAgICAgcG9zICAgID0gbmV4dDtcbiAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgIGNhc2UgQVQ6XG4gICAgICAgICAgICBSRV9BVF9FTkQubGFzdEluZGV4ID0gcG9zICsgMTtcbiAgICAgICAgICAgIFJFX0FUX0VORC50ZXN0KGNzcyk7XG4gICAgICAgICAgICBpZiAoIFJFX0FUX0VORC5sYXN0SW5kZXggPT09IDAgKSB7XG4gICAgICAgICAgICAgICAgbmV4dCA9IGNzcy5sZW5ndGggLSAxO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBuZXh0ID0gUkVfQVRfRU5ELmxhc3RJbmRleCAtIDI7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0b2tlbnMucHVzaChbJ2F0LXdvcmQnLCBjc3Muc2xpY2UocG9zLCBuZXh0ICsgMSksXG4gICAgICAgICAgICAgICAgbGluZSwgcG9zICAtIG9mZnNldCxcbiAgICAgICAgICAgICAgICBsaW5lLCBuZXh0IC0gb2Zmc2V0XG4gICAgICAgICAgICBdKTtcbiAgICAgICAgICAgIHBvcyA9IG5leHQ7XG4gICAgICAgICAgICBicmVhaztcblxuICAgICAgICBjYXNlIEJBQ0tTTEFTSDpcbiAgICAgICAgICAgIG5leHQgICA9IHBvcztcbiAgICAgICAgICAgIGVzY2FwZSA9IHRydWU7XG4gICAgICAgICAgICB3aGlsZSAoIGNzcy5jaGFyQ29kZUF0KG5leHQgKyAxKSA9PT0gQkFDS1NMQVNIICkge1xuICAgICAgICAgICAgICAgIG5leHQgICs9IDE7XG4gICAgICAgICAgICAgICAgZXNjYXBlID0gIWVzY2FwZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGNvZGUgPSBjc3MuY2hhckNvZGVBdChuZXh0ICsgMSk7XG4gICAgICAgICAgICBpZiAoIGVzY2FwZSAmJiAoY29kZSAhPT0gU0xBU0ggICAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvZGUgIT09IFNQQUNFICAgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2RlICE9PSBORVdMSU5FICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29kZSAhPT0gVEFCICAgICAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvZGUgIT09IENSICAgICAgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2RlICE9PSBGRUVEICkgKSB7XG4gICAgICAgICAgICAgICAgbmV4dCArPSAxO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdG9rZW5zLnB1c2goWyd3b3JkJywgY3NzLnNsaWNlKHBvcywgbmV4dCArIDEpLFxuICAgICAgICAgICAgICAgIGxpbmUsIHBvcyAgLSBvZmZzZXQsXG4gICAgICAgICAgICAgICAgbGluZSwgbmV4dCAtIG9mZnNldFxuICAgICAgICAgICAgXSk7XG4gICAgICAgICAgICBwb3MgPSBuZXh0O1xuICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgIGlmICggY29kZSA9PT0gU0xBU0ggJiYgY3NzLmNoYXJDb2RlQXQocG9zICsgMSkgPT09IEFTVEVSSVNLICkge1xuICAgICAgICAgICAgICAgIG5leHQgPSBjc3MuaW5kZXhPZignKi8nLCBwb3MgKyAyKSArIDE7XG4gICAgICAgICAgICAgICAgaWYgKCBuZXh0ID09PSAwICkge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIGlnbm9yZSApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG5leHQgPSBjc3MubGVuZ3RoO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgdW5jbG9zZWQoJ2NvbW1lbnQnKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGNvbnRlbnQgPSBjc3Muc2xpY2UocG9zLCBuZXh0ICsgMSk7XG4gICAgICAgICAgICAgICAgbGluZXMgICA9IGNvbnRlbnQuc3BsaXQoJ1xcbicpO1xuICAgICAgICAgICAgICAgIGxhc3QgICAgPSBsaW5lcy5sZW5ndGggLSAxO1xuXG4gICAgICAgICAgICAgICAgaWYgKCBsYXN0ID4gMCApIHtcbiAgICAgICAgICAgICAgICAgICAgbmV4dExpbmUgICA9IGxpbmUgKyBsYXN0O1xuICAgICAgICAgICAgICAgICAgICBuZXh0T2Zmc2V0ID0gbmV4dCAtIGxpbmVzW2xhc3RdLmxlbmd0aDtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBuZXh0TGluZSAgID0gbGluZTtcbiAgICAgICAgICAgICAgICAgICAgbmV4dE9mZnNldCA9IG9mZnNldDtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB0b2tlbnMucHVzaChbJ2NvbW1lbnQnLCBjb250ZW50LFxuICAgICAgICAgICAgICAgICAgICBsaW5lLCAgICAgcG9zICAtIG9mZnNldCxcbiAgICAgICAgICAgICAgICAgICAgbmV4dExpbmUsIG5leHQgLSBuZXh0T2Zmc2V0XG4gICAgICAgICAgICAgICAgXSk7XG5cbiAgICAgICAgICAgICAgICBvZmZzZXQgPSBuZXh0T2Zmc2V0O1xuICAgICAgICAgICAgICAgIGxpbmUgICA9IG5leHRMaW5lO1xuICAgICAgICAgICAgICAgIHBvcyAgICA9IG5leHQ7XG5cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgUkVfV09SRF9FTkQubGFzdEluZGV4ID0gcG9zICsgMTtcbiAgICAgICAgICAgICAgICBSRV9XT1JEX0VORC50ZXN0KGNzcyk7XG4gICAgICAgICAgICAgICAgaWYgKCBSRV9XT1JEX0VORC5sYXN0SW5kZXggPT09IDAgKSB7XG4gICAgICAgICAgICAgICAgICAgIG5leHQgPSBjc3MubGVuZ3RoIC0gMTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBuZXh0ID0gUkVfV09SRF9FTkQubGFzdEluZGV4IC0gMjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB0b2tlbnMucHVzaChbJ3dvcmQnLCBjc3Muc2xpY2UocG9zLCBuZXh0ICsgMSksXG4gICAgICAgICAgICAgICAgICAgIGxpbmUsIHBvcyAgLSBvZmZzZXQsXG4gICAgICAgICAgICAgICAgICAgIGxpbmUsIG5leHQgLSBvZmZzZXRcbiAgICAgICAgICAgICAgICBdKTtcbiAgICAgICAgICAgICAgICBwb3MgPSBuZXh0O1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuXG4gICAgICAgIHBvcysrO1xuICAgIH1cblxuICAgIHJldHVybiB0b2tlbnM7XG59XG4iXX0= diff --git a/node_modules/postcss/lib/vendor.js b/node_modules/postcss/lib/vendor.js deleted file mode 100644 index e8f342e..0000000 --- a/node_modules/postcss/lib/vendor.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -exports.__esModule = true; -/** - * Contains helpers for working with vendor prefixes. - * - * @example - * const vendor = postcss.vendor; - * - * @namespace vendor - */ -var vendor = { - - /** - * Returns the vendor prefix extracted from an input string. - * - * @param {string} prop - string with or without vendor prefix - * - * @return {string} vendor prefix or empty string - * - * @example - * postcss.vendor.prefix('-moz-tab-size') //=> '-moz-' - * postcss.vendor.prefix('tab-size') //=> '' - */ - prefix: function prefix(prop) { - var match = prop.match(/^(-\w+-)/); - if (match) { - return match[0]; - } else { - return ''; - } - }, - - - /** - * Returns the input string stripped of its vendor prefix. - * - * @param {string} prop - string with or without vendor prefix - * - * @return {string} string name without vendor prefixes - * - * @example - * postcss.vendor.unprefixed('-moz-tab-size') //=> 'tab-size' - */ - unprefixed: function unprefixed(prop) { - return prop.replace(/^-\w+-/, ''); - } -}; - -exports.default = vendor; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZlbmRvci5lczYiXSwibmFtZXMiOlsidmVuZG9yIiwicHJlZml4IiwicHJvcCIsIm1hdGNoIiwidW5wcmVmaXhlZCIsInJlcGxhY2UiXSwibWFwcGluZ3MiOiI7OztBQUFBOzs7Ozs7OztBQVFBLElBQUlBLFNBQVM7O0FBRVQ7Ozs7Ozs7Ozs7O0FBV0FDLFVBYlMsa0JBYUZDLElBYkUsRUFhSTtBQUNULFlBQUlDLFFBQVFELEtBQUtDLEtBQUwsQ0FBVyxVQUFYLENBQVo7QUFDQSxZQUFLQSxLQUFMLEVBQWE7QUFDVCxtQkFBT0EsTUFBTSxDQUFOLENBQVA7QUFDSCxTQUZELE1BRU87QUFDSCxtQkFBTyxFQUFQO0FBQ0g7QUFDSixLQXBCUTs7O0FBc0JUOzs7Ozs7Ozs7O0FBVUFDLGNBaENTLHNCQWdDRUYsSUFoQ0YsRUFnQ1E7QUFDYixlQUFPQSxLQUFLRyxPQUFMLENBQWEsUUFBYixFQUF1QixFQUF2QixDQUFQO0FBQ0g7QUFsQ1EsQ0FBYjs7a0JBc0NlTCxNIiwiZmlsZSI6InZlbmRvci5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29udGFpbnMgaGVscGVycyBmb3Igd29ya2luZyB3aXRoIHZlbmRvciBwcmVmaXhlcy5cbiAqXG4gKiBAZXhhbXBsZVxuICogY29uc3QgdmVuZG9yID0gcG9zdGNzcy52ZW5kb3I7XG4gKlxuICogQG5hbWVzcGFjZSB2ZW5kb3JcbiAqL1xubGV0IHZlbmRvciA9IHtcblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIHZlbmRvciBwcmVmaXggZXh0cmFjdGVkIGZyb20gYW4gaW5wdXQgc3RyaW5nLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IHByb3AgLSBzdHJpbmcgd2l0aCBvciB3aXRob3V0IHZlbmRvciBwcmVmaXhcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge3N0cmluZ30gdmVuZG9yIHByZWZpeCBvciBlbXB0eSBzdHJpbmdcbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogcG9zdGNzcy52ZW5kb3IucHJlZml4KCctbW96LXRhYi1zaXplJykgLy89PiAnLW1vei0nXG4gICAgICogcG9zdGNzcy52ZW5kb3IucHJlZml4KCd0YWItc2l6ZScpICAgICAgLy89PiAnJ1xuICAgICAqL1xuICAgIHByZWZpeChwcm9wKSB7XG4gICAgICAgIGxldCBtYXRjaCA9IHByb3AubWF0Y2goL14oLVxcdystKS8pO1xuICAgICAgICBpZiAoIG1hdGNoICkge1xuICAgICAgICAgICAgcmV0dXJuIG1hdGNoWzBdO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuICcnO1xuICAgICAgICB9XG4gICAgfSxcblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIGlucHV0IHN0cmluZyBzdHJpcHBlZCBvZiBpdHMgdmVuZG9yIHByZWZpeC5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBwcm9wIC0gc3RyaW5nIHdpdGggb3Igd2l0aG91dCB2ZW5kb3IgcHJlZml4XG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtzdHJpbmd9IHN0cmluZyBuYW1lIHdpdGhvdXQgdmVuZG9yIHByZWZpeGVzXG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHBvc3Rjc3MudmVuZG9yLnVucHJlZml4ZWQoJy1tb3otdGFiLXNpemUnKSAvLz0+ICd0YWItc2l6ZSdcbiAgICAgKi9cbiAgICB1bnByZWZpeGVkKHByb3ApIHtcbiAgICAgICAgcmV0dXJuIHByb3AucmVwbGFjZSgvXi1cXHcrLS8sICcnKTtcbiAgICB9XG5cbn07XG5cbmV4cG9ydCBkZWZhdWx0IHZlbmRvcjtcbiJdfQ== diff --git a/node_modules/postcss/lib/warn-once.js b/node_modules/postcss/lib/warn-once.js deleted file mode 100644 index 00b2e77..0000000 --- a/node_modules/postcss/lib/warn-once.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -exports.__esModule = true; -exports.default = warnOnce; -var printed = {}; - -function warnOnce(message) { - if (printed[message]) return; - printed[message] = true; - - if (typeof console !== 'undefined' && console.warn) console.warn(message); -} -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndhcm4tb25jZS5lczYiXSwibmFtZXMiOlsid2Fybk9uY2UiLCJwcmludGVkIiwibWVzc2FnZSIsImNvbnNvbGUiLCJ3YXJuIl0sIm1hcHBpbmdzIjoiOzs7a0JBRXdCQSxRO0FBRnhCLElBQUlDLFVBQVUsRUFBZDs7QUFFZSxTQUFTRCxRQUFULENBQWtCRSxPQUFsQixFQUEyQjtBQUN0QyxRQUFLRCxRQUFRQyxPQUFSLENBQUwsRUFBd0I7QUFDeEJELFlBQVFDLE9BQVIsSUFBbUIsSUFBbkI7O0FBRUEsUUFBSyxPQUFPQyxPQUFQLEtBQW1CLFdBQW5CLElBQWtDQSxRQUFRQyxJQUEvQyxFQUFzREQsUUFBUUMsSUFBUixDQUFhRixPQUFiO0FBQ3pEIiwiZmlsZSI6Indhcm4tb25jZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImxldCBwcmludGVkID0geyB9O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiB3YXJuT25jZShtZXNzYWdlKSB7XG4gICAgaWYgKCBwcmludGVkW21lc3NhZ2VdICkgcmV0dXJuO1xuICAgIHByaW50ZWRbbWVzc2FnZV0gPSB0cnVlO1xuXG4gICAgaWYgKCB0eXBlb2YgY29uc29sZSAhPT0gJ3VuZGVmaW5lZCcgJiYgY29uc29sZS53YXJuICkgY29uc29sZS53YXJuKG1lc3NhZ2UpO1xufVxuIl19 diff --git a/node_modules/postcss/lib/warning.js b/node_modules/postcss/lib/warning.js deleted file mode 100644 index bcf0a8b..0000000 --- a/node_modules/postcss/lib/warning.js +++ /dev/null @@ -1,122 +0,0 @@ -'use strict'; - -exports.__esModule = true; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Represents a plugin’s warning. It can be created using {@link Node#warn}. - * - * @example - * if ( decl.important ) { - * decl.warn(result, 'Avoid !important', { word: '!important' }); - * } - */ -var Warning = function () { - - /** - * @param {string} text - warning message - * @param {Object} [opts] - warning options - * @param {Node} opts.node - CSS node that caused the warning - * @param {string} opts.word - word in CSS source that caused the warning - * @param {number} opts.index - index in CSS node string that caused - * the warning - * @param {string} opts.plugin - name of the plugin that created - * this warning. {@link Result#warn} fills - * this property automatically. - */ - function Warning(text) { - var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Warning); - - /** - * @member {string} - Type to filter warnings from - * {@link Result#messages}. Always equal - * to `"warning"`. - * - * @example - * const nonWarning = result.messages.filter(i => i.type !== 'warning') - */ - this.type = 'warning'; - /** - * @member {string} - The warning message. - * - * @example - * warning.text //=> 'Try to avoid !important' - */ - this.text = text; - - if (opts.node && opts.node.source) { - var pos = opts.node.positionBy(opts); - /** - * @member {number} - Line in the input file - * with this warning’s source - * - * @example - * warning.line //=> 5 - */ - this.line = pos.line; - /** - * @member {number} - Column in the input file - * with this warning’s source. - * - * @example - * warning.column //=> 6 - */ - this.column = pos.column; - } - - for (var opt in opts) { - this[opt] = opts[opt]; - } - } - - /** - * Returns a warning position and message. - * - * @example - * warning.toString() //=> 'postcss-lint:a.css:10:14: Avoid !important' - * - * @return {string} warning position and message - */ - - - Warning.prototype.toString = function toString() { - if (this.node) { - return this.node.error(this.text, { - plugin: this.plugin, - index: this.index, - word: this.word - }).message; - } else if (this.plugin) { - return this.plugin + ': ' + this.text; - } else { - return this.text; - } - }; - - /** - * @memberof Warning# - * @member {string} plugin - The name of the plugin that created - * it will fill this property automatically. - * this warning. When you call {@link Node#warn} - * - * @example - * warning.plugin //=> 'postcss-important' - */ - - /** - * @memberof Warning# - * @member {Node} node - Contains the CSS node that caused the warning. - * - * @example - * warning.node.toString() //=> 'color: white !important' - */ - - return Warning; -}(); - -exports.default = Warning; -module.exports = exports['default']; -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndhcm5pbmcuZXM2Il0sIm5hbWVzIjpbIldhcm5pbmciLCJ0ZXh0Iiwib3B0cyIsInR5cGUiLCJub2RlIiwic291cmNlIiwicG9zIiwicG9zaXRpb25CeSIsImxpbmUiLCJjb2x1bW4iLCJvcHQiLCJ0b1N0cmluZyIsImVycm9yIiwicGx1Z2luIiwiaW5kZXgiLCJ3b3JkIiwibWVzc2FnZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7Ozs7Ozs7O0lBUU1BLE87O0FBRUY7Ozs7Ozs7Ozs7O0FBV0EsbUJBQVlDLElBQVosRUFBOEI7QUFBQSxRQUFaQyxJQUFZLHVFQUFMLEVBQUs7O0FBQUE7O0FBQzFCOzs7Ozs7OztBQVFBLFNBQUtDLElBQUwsR0FBWSxTQUFaO0FBQ0E7Ozs7OztBQU1BLFNBQUtGLElBQUwsR0FBWUEsSUFBWjs7QUFFQSxRQUFLQyxLQUFLRSxJQUFMLElBQWFGLEtBQUtFLElBQUwsQ0FBVUMsTUFBNUIsRUFBcUM7QUFDakMsVUFBSUMsTUFBVUosS0FBS0UsSUFBTCxDQUFVRyxVQUFWLENBQXFCTCxJQUFyQixDQUFkO0FBQ0E7Ozs7Ozs7QUFPQSxXQUFLTSxJQUFMLEdBQWNGLElBQUlFLElBQWxCO0FBQ0E7Ozs7Ozs7QUFPQSxXQUFLQyxNQUFMLEdBQWNILElBQUlHLE1BQWxCO0FBQ0g7O0FBRUQsU0FBTSxJQUFJQyxHQUFWLElBQWlCUixJQUFqQjtBQUF3QixXQUFLUSxHQUFMLElBQVlSLEtBQUtRLEdBQUwsQ0FBWjtBQUF4QjtBQUNIOztBQUVEOzs7Ozs7Ozs7O29CQVFBQyxRLHVCQUFXO0FBQ1AsUUFBSyxLQUFLUCxJQUFWLEVBQWlCO0FBQ2IsYUFBTyxLQUFLQSxJQUFMLENBQVVRLEtBQVYsQ0FBZ0IsS0FBS1gsSUFBckIsRUFBMkI7QUFDOUJZLGdCQUFRLEtBQUtBLE1BRGlCO0FBRTlCQyxlQUFRLEtBQUtBLEtBRmlCO0FBRzlCQyxjQUFRLEtBQUtBO0FBSGlCLE9BQTNCLEVBSUpDLE9BSkg7QUFLSCxLQU5ELE1BTU8sSUFBSyxLQUFLSCxNQUFWLEVBQW1CO0FBQ3RCLGFBQU8sS0FBS0EsTUFBTCxHQUFjLElBQWQsR0FBcUIsS0FBS1osSUFBakM7QUFDSCxLQUZNLE1BRUE7QUFDSCxhQUFPLEtBQUtBLElBQVo7QUFDSDtBQUNKLEc7O0FBRUQ7Ozs7Ozs7Ozs7QUFVQTs7Ozs7Ozs7Ozs7a0JBVVdELE8iLCJmaWxlIjoid2FybmluZy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogUmVwcmVzZW50cyBhIHBsdWdpbuKAmXMgd2FybmluZy4gSXQgY2FuIGJlIGNyZWF0ZWQgdXNpbmcge0BsaW5rIE5vZGUjd2Fybn0uXG4gKlxuICogQGV4YW1wbGVcbiAqIGlmICggZGVjbC5pbXBvcnRhbnQgKSB7XG4gKiAgICAgZGVjbC53YXJuKHJlc3VsdCwgJ0F2b2lkICFpbXBvcnRhbnQnLCB7IHdvcmQ6ICchaW1wb3J0YW50JyB9KTtcbiAqIH1cbiAqL1xuY2xhc3MgV2FybmluZyB7XG5cbiAgICAvKipcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gdGV4dCAgICAgICAgLSB3YXJuaW5nIG1lc3NhZ2VcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gW29wdHNdICAgICAgLSB3YXJuaW5nIG9wdGlvbnNcbiAgICAgKiBAcGFyYW0ge05vZGV9ICAgb3B0cy5ub2RlICAgLSBDU1Mgbm9kZSB0aGF0IGNhdXNlZCB0aGUgd2FybmluZ1xuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBvcHRzLndvcmQgICAtIHdvcmQgaW4gQ1NTIHNvdXJjZSB0aGF0IGNhdXNlZCB0aGUgd2FybmluZ1xuICAgICAqIEBwYXJhbSB7bnVtYmVyfSBvcHRzLmluZGV4ICAtIGluZGV4IGluIENTUyBub2RlIHN0cmluZyB0aGF0IGNhdXNlZFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZSB3YXJuaW5nXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IG9wdHMucGx1Z2luIC0gbmFtZSBvZiB0aGUgcGx1Z2luIHRoYXQgY3JlYXRlZFxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMgd2FybmluZy4ge0BsaW5rIFJlc3VsdCN3YXJufSBmaWxsc1xuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMgcHJvcGVydHkgYXV0b21hdGljYWxseS5cbiAgICAgKi9cbiAgICBjb25zdHJ1Y3Rvcih0ZXh0LCBvcHRzID0geyB9KSB7XG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAbWVtYmVyIHtzdHJpbmd9IC0gVHlwZSB0byBmaWx0ZXIgd2FybmluZ3MgZnJvbVxuICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAge0BsaW5rIFJlc3VsdCNtZXNzYWdlc30uIEFsd2F5cyBlcXVhbFxuICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgdG8gYFwid2FybmluZ1wiYC5cbiAgICAgICAgICpcbiAgICAgICAgICogQGV4YW1wbGVcbiAgICAgICAgICogY29uc3Qgbm9uV2FybmluZyA9IHJlc3VsdC5tZXNzYWdlcy5maWx0ZXIoaSA9PiBpLnR5cGUgIT09ICd3YXJuaW5nJylcbiAgICAgICAgICovXG4gICAgICAgIHRoaXMudHlwZSA9ICd3YXJuaW5nJztcbiAgICAgICAgLyoqXG4gICAgICAgICAqIEBtZW1iZXIge3N0cmluZ30gLSBUaGUgd2FybmluZyBtZXNzYWdlLlxuICAgICAgICAgKlxuICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgKiB3YXJuaW5nLnRleHQgLy89PiAnVHJ5IHRvIGF2b2lkICFpbXBvcnRhbnQnXG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnRleHQgPSB0ZXh0O1xuXG4gICAgICAgIGlmICggb3B0cy5ub2RlICYmIG9wdHMubm9kZS5zb3VyY2UgKSB7XG4gICAgICAgICAgICBsZXQgcG9zICAgICA9IG9wdHMubm9kZS5wb3NpdGlvbkJ5KG9wdHMpO1xuICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgKiBAbWVtYmVyIHtudW1iZXJ9IC0gTGluZSBpbiB0aGUgaW5wdXQgZmlsZVxuICAgICAgICAgICAgICogICAgICAgICAgICAgICAgICAgIHdpdGggdGhpcyB3YXJuaW5n4oCZcyBzb3VyY2VcbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgICAgICogd2FybmluZy5saW5lIC8vPT4gNVxuICAgICAgICAgICAgICovXG4gICAgICAgICAgICB0aGlzLmxpbmUgICA9IHBvcy5saW5lO1xuICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgKiBAbWVtYmVyIHtudW1iZXJ9IC0gQ29sdW1uIGluIHRoZSBpbnB1dCBmaWxlXG4gICAgICAgICAgICAgKiAgICAgICAgICAgICAgICAgICAgd2l0aCB0aGlzIHdhcm5pbmfigJlzIHNvdXJjZS5cbiAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgKiBAZXhhbXBsZVxuICAgICAgICAgICAgICogd2FybmluZy5jb2x1bW4gLy89PiA2XG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIHRoaXMuY29sdW1uID0gcG9zLmNvbHVtbjtcbiAgICAgICAgfVxuXG4gICAgICAgIGZvciAoIGxldCBvcHQgaW4gb3B0cyApIHRoaXNbb3B0XSA9IG9wdHNbb3B0XTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZXR1cm5zIGEgd2FybmluZyBwb3NpdGlvbiBhbmQgbWVzc2FnZS5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogd2FybmluZy50b1N0cmluZygpIC8vPT4gJ3Bvc3Rjc3MtbGludDphLmNzczoxMDoxNDogQXZvaWQgIWltcG9ydGFudCdcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge3N0cmluZ30gd2FybmluZyBwb3NpdGlvbiBhbmQgbWVzc2FnZVxuICAgICAqL1xuICAgIHRvU3RyaW5nKCkge1xuICAgICAgICBpZiAoIHRoaXMubm9kZSApIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLm5vZGUuZXJyb3IodGhpcy50ZXh0LCB7XG4gICAgICAgICAgICAgICAgcGx1Z2luOiB0aGlzLnBsdWdpbixcbiAgICAgICAgICAgICAgICBpbmRleDogIHRoaXMuaW5kZXgsXG4gICAgICAgICAgICAgICAgd29yZDogICB0aGlzLndvcmRcbiAgICAgICAgICAgIH0pLm1lc3NhZ2U7XG4gICAgICAgIH0gZWxzZSBpZiAoIHRoaXMucGx1Z2luICkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMucGx1Z2luICsgJzogJyArIHRoaXMudGV4dDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnRleHQ7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBAbWVtYmVyb2YgV2FybmluZyNcbiAgICAgKiBAbWVtYmVyIHtzdHJpbmd9IHBsdWdpbiAtIFRoZSBuYW1lIG9mIHRoZSBwbHVnaW4gdGhhdCBjcmVhdGVkXG4gICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICBpdCB3aWxsIGZpbGwgdGhpcyBwcm9wZXJ0eSBhdXRvbWF0aWNhbGx5LlxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcyB3YXJuaW5nLiBXaGVuIHlvdSBjYWxsIHtAbGluayBOb2RlI3dhcm59XG4gICAgICpcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIHdhcm5pbmcucGx1Z2luIC8vPT4gJ3Bvc3Rjc3MtaW1wb3J0YW50J1xuICAgICAqL1xuXG4gICAgLyoqXG4gICAgICogQG1lbWJlcm9mIFdhcm5pbmcjXG4gICAgICogQG1lbWJlciB7Tm9kZX0gbm9kZSAtIENvbnRhaW5zIHRoZSBDU1Mgbm9kZSB0aGF0IGNhdXNlZCB0aGUgd2FybmluZy5cbiAgICAgKlxuICAgICAqIEBleGFtcGxlXG4gICAgICogd2FybmluZy5ub2RlLnRvU3RyaW5nKCkgLy89PiAnY29sb3I6IHdoaXRlICFpbXBvcnRhbnQnXG4gICAgICovXG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgV2FybmluZztcbiJdfQ== diff --git a/node_modules/postcss/node_modules/supports-color/browser.js b/node_modules/postcss/node_modules/supports-color/browser.js deleted file mode 100644 index ae7c87b..0000000 --- a/node_modules/postcss/node_modules/supports-color/browser.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = false; diff --git a/node_modules/postcss/node_modules/supports-color/index.js b/node_modules/postcss/node_modules/supports-color/index.js deleted file mode 100644 index 2571c73..0000000 --- a/node_modules/postcss/node_modules/supports-color/index.js +++ /dev/null @@ -1,84 +0,0 @@ -'use strict'; -var hasFlag = require('has-flag'); - -var support = function (level) { - if (level === 0) { - return false; - } - - return { - level: level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -}; - -var supportLevel = (function () { - if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - return 0; - } - - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - - if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - return 1; - } - - if (process.stdout && !process.stdout.isTTY) { - return 0; - } - - if (process.platform === 'win32') { - return 1; - } - - if ('CI' in process.env) { - if ('TRAVIS' in process.env || process.env.CI === 'Travis') { - return 1; - } - - return 0; - } - - if ('TEAMCITY_VERSION' in process.env) { - return process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/) === null ? 0 : 1; - } - - if (/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { - return 1; - } - - if ('COLORTERM' in process.env) { - return 1; - } - - if (process.env.TERM === 'dumb') { - return 0; - } - - return 0; -})(); - -if (supportLevel === 0 && 'FORCE_COLOR' in process.env) { - supportLevel = 1; -} - -module.exports = process && support(supportLevel); diff --git a/node_modules/postcss/node_modules/supports-color/license b/node_modules/postcss/node_modules/supports-color/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/postcss/node_modules/supports-color/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/postcss/node_modules/supports-color/package.json b/node_modules/postcss/node_modules/supports-color/package.json deleted file mode 100644 index 0f58595..0000000 --- a/node_modules/postcss/node_modules/supports-color/package.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "supports-color@^3.2.3", - "scope": null, - "escapedName": "supports-color", - "name": "supports-color", - "rawSpec": "^3.2.3", - "spec": ">=3.2.3 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/postcss" - ] - ], - "_from": "supports-color@>=3.2.3 <4.0.0", - "_id": "supports-color@3.2.3", - "_inCache": true, - "_location": "/postcss/supports-color", - "_nodeVersion": "7.2.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/supports-color-3.2.3.tgz_1484526472497_0.7697830176912248" - }, - "_npmUser": { - "name": "qix", - "email": "i.am.qix@gmail.com" - }, - "_npmVersion": "3.10.9", - "_phantomChildren": {}, - "_requested": { - "raw": "supports-color@^3.2.3", - "scope": null, - "escapedName": "supports-color", - "name": "supports-color", - "rawSpec": "^3.2.3", - "spec": ">=3.2.3 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/postcss" - ], - "_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "_shasum": "65ac0504b3954171d8a64946b2ae3cbb8a5f54f6", - "_shrinkwrap": null, - "_spec": "supports-color@^3.2.3", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/postcss", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "browser": "browser.js", - "bugs": { - "url": "https://github.com/chalk/supports-color/issues" - }, - "dependencies": { - "has-flag": "^1.0.0" - }, - "description": "Detect whether a terminal supports color", - "devDependencies": { - "mocha": "*", - "require-uncached": "^1.0.2", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "65ac0504b3954171d8a64946b2ae3cbb8a5f54f6", - "tarball": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz" - }, - "engines": { - "node": ">=0.8.0" - }, - "files": [ - "index.js", - "browser.js" - ], - "gitHead": "c2394c1f77a0f64c4b2d0db33a3df3b841e6fc15", - "homepage": "https://github.com/chalk/supports-color#readme", - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m", - "million" - ], - "license": "MIT", - "maintainers": [ - { - "name": "qix", - "email": "i.am.qix@gmail.com" - }, - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "supports-color", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/chalk/supports-color.git" - }, - "scripts": { - "test": "xo && mocha", - "travis": "mocha" - }, - "version": "3.2.3", - "xo": { - "envs": [ - "node", - "mocha" - ] - } -} diff --git a/node_modules/postcss/node_modules/supports-color/readme.md b/node_modules/postcss/node_modules/supports-color/readme.md deleted file mode 100644 index f7bae4c..0000000 --- a/node_modules/postcss/node_modules/supports-color/readme.md +++ /dev/null @@ -1,60 +0,0 @@ -# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color) - -> Detect whether a terminal supports color - - -## Install - -``` -$ npm install --save supports-color -``` - - -## Usage - -```js -var supportsColor = require('supports-color'); - -if (supportsColor) { - console.log('Terminal supports color'); -} - -if (supportsColor.has256) { - console.log('Terminal supports 256 colors'); -} - -if (supportsColor.has16m) { - console.log('Terminal supports 16 million colors (truecolor)'); -} -``` - - -## API - -Returns an `object`, or `false` if color is not supported. - -The returned object specifies a level of support for color through a `.level` property and a corresponding flag: - -- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors) -- `.level = 2` and `.has256 = true`: 256 color support -- `.level = 3` and `.has16m = true`: 16 million (truecolor) support - - -## Info - -It obeys the `--color` and `--no-color` CLI flags. - -For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`. - -Explicit 256/truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively. - - -## Related - -- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module -- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/postcss/package.json b/node_modules/postcss/package.json deleted file mode 100644 index 6fdf71f..0000000 --- a/node_modules/postcss/package.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "postcss@^5.0.4", - "scope": null, - "escapedName": "postcss", - "name": "postcss", - "rawSpec": "^5.0.4", - "spec": ">=5.0.4 <6.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-autoprefixer" - ] - ], - "_from": "postcss@>=5.0.4 <6.0.0", - "_id": "postcss@5.2.15", - "_inCache": true, - "_location": "/postcss", - "_nodeVersion": "7.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/postcss-5.2.15.tgz_1487764828888_0.8921894764062017" - }, - "_npmUser": { - "name": "ai", - "email": "andrey@sitnik.ru" - }, - "_npmVersion": "4.1.2", - "_phantomChildren": { - "has-flag": "1.0.0" - }, - "_requested": { - "raw": "postcss@^5.0.4", - "scope": null, - "escapedName": "postcss", - "name": "postcss", - "rawSpec": "^5.0.4", - "spec": ">=5.0.4 <6.0.0", - "type": "range" - }, - "_requiredBy": [ - "/autoprefixer", - "/gulp-autoprefixer", - "/rtlcss" - ], - "_resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.15.tgz", - "_shasum": "a9e8685e50e06cc5b3fdea5297273246c26f5b30", - "_shrinkwrap": null, - "_spec": "postcss@^5.0.4", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-autoprefixer", - "author": { - "name": "Andrey Sitnik", - "email": "andrey@sitnik.ru" - }, - "browser": { - "fs": false - }, - "bugs": { - "url": "https://github.com/postcss/postcss/issues" - }, - "dependencies": { - "chalk": "^1.1.3", - "js-base64": "^2.1.9", - "source-map": "^0.5.6", - "supports-color": "^3.2.3" - }, - "description": "Tool for transforming styles with JS plugins", - "devDependencies": { - "ava": "^0.17.0", - "babel-core": "^6.23.1", - "babel-eslint": "^7.1.1", - "babel-plugin-add-module-exports": "^0.2.1", - "babel-plugin-precompile-charcodes": "^1.0.0", - "babel-preset-es2015": "^6.22.0", - "chalk": "^1.1.3", - "concat-with-sourcemaps": "^1.0.4", - "del": "^2.2.2", - "docdash": "^0.4.0", - "eslint": "^3.16.0", - "eslint-config-postcss": "^2.0.2", - "fs-extra": "^2.0.0", - "gulp": "^3.9.1", - "gulp-ava": "^0.15.0", - "gulp-babel": "^6.1.2", - "gulp-changed": "^1.3.2", - "gulp-eslint": "^3.0.1", - "gulp-run": "^1.7.1", - "gulp-sourcemaps": "^2.4.1", - "jsdoc": "^3.4.3", - "lint-staged": "^3.3.1", - "postcss-parser-tests": "^5.0.11", - "pre-commit": "^1.2.2", - "run-sequence": "^1.2.2", - "sinon": "^1.17.7", - "strip-ansi": "^3.0.1", - "yaspeller": "^3.0.0" - }, - "directories": {}, - "dist": { - "shasum": "a9e8685e50e06cc5b3fdea5297273246c26f5b30", - "tarball": "https://registry.npmjs.org/postcss/-/postcss-5.2.15.tgz" - }, - "engines": { - "node": ">=0.12" - }, - "homepage": "http://postcss.org/", - "keywords": [ - "css", - "postcss", - "rework", - "preprocessor", - "parser", - "source map", - "transform", - "manipulation", - "transpiler" - ], - "license": "MIT", - "lint-staged": { - "test/*.js": "eslint", - "lib/*.es6": "eslint", - "*.md": "yaspeller" - }, - "main": "lib/postcss", - "maintainers": [ - { - "name": "ai", - "email": "andrey@sitnik.ru" - }, - { - "name": "beneb", - "email": "beneb.info@gmail.com" - } - ], - "name": "postcss", - "optionalDependencies": {}, - "pre-commit": [ - "lint-staged" - ], - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/postcss/postcss.git" - }, - "scripts": { - "lint-staged": "lint-staged", - "test": "gulp" - }, - "types": "lib/postcss.d.ts", - "version": "5.2.15" -} diff --git a/node_modules/preserve/.gitattributes b/node_modules/preserve/.gitattributes deleted file mode 100644 index 759c2c5..0000000 --- a/node_modules/preserve/.gitattributes +++ /dev/null @@ -1,14 +0,0 @@ -# Enforce Unix newlines -*.* text eol=lf -*.css text eol=lf -*.html text eol=lf -*.js text eol=lf -*.json text eol=lf -*.less text eol=lf -*.md text eol=lf -*.yml text eol=lf - -*.jpg binary -*.gif binary -*.png binary -*.jpeg binary \ No newline at end of file diff --git a/node_modules/preserve/.jshintrc b/node_modules/preserve/.jshintrc deleted file mode 100644 index e72045d..0000000 --- a/node_modules/preserve/.jshintrc +++ /dev/null @@ -1,24 +0,0 @@ -{ - "asi": false, - "boss": true, - "curly": true, - "eqeqeq": true, - "eqnull": true, - "esnext": true, - "immed": true, - "latedef": true, - "laxcomma": false, - "newcap": true, - "noarg": true, - "node": true, - "sub": true, - "undef": true, - "unused": true, - "globals": { - "define": true, - "before": true, - "after": true, - "describe": true, - "it": true - } -} \ No newline at end of file diff --git a/node_modules/preserve/.npmignore b/node_modules/preserve/.npmignore deleted file mode 100644 index 1a2e47f..0000000 --- a/node_modules/preserve/.npmignore +++ /dev/null @@ -1,53 +0,0 @@ -# Numerous always-ignore extensions -*.csv -*.dat -*.diff -*.err -*.gz -*.log -*.orig -*.out -*.pid -*.rar -*.rej -*.seed -*.swo -*.swp -*.vi -*.yo-rc.json -*.zip -*~ -.ruby-version -lib-cov -npm-debug.log - -# Always-ignore dirs -/bower_components/ -/node_modules/ -/temp/ -/tmp/ -/vendor/ -_gh_pages - -# OS or Editor folders -*.esproj -*.komodoproject -.komodotools -*.sublime-* -._* -.cache -.DS_Store -.idea -.project -.settings -.tmproj -nbproject -Thumbs.db - -# grunt-html-validation -validation-status.json -validation-report.json - -# misc -TODO.md -benchmark \ No newline at end of file diff --git a/node_modules/preserve/.travis.yml b/node_modules/preserve/.travis.yml deleted file mode 100644 index ff74a05..0000000 --- a/node_modules/preserve/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - '0.10' \ No newline at end of file diff --git a/node_modules/preserve/.verb.md b/node_modules/preserve/.verb.md deleted file mode 100644 index 72344a9..0000000 --- a/node_modules/preserve/.verb.md +++ /dev/null @@ -1,59 +0,0 @@ -# {%= name %} {%= badge("fury") %} - -> {%= description %} - -Useful for protecting tokens, like templates in HTML, from being mutated when the string is transformed in some way, like from a formatter/beautifier. - -**Example without `preserve`** - -Let's say you want to use [js-beautify] on a string of html with Lo-Dash/Underscore templates, such as: `
    • <%= name %>
    `: - -js-beautify will render the template unusable (and apply incorrect formatting because of the unfamiliar syntax from the Lo-Dash template): - -```html -
      -
    • - <%=n ame %> -
    • -
    -``` - -**Example with `preserve`** - -Correct. - -```html -
      -
    • <%= name %>
    • -
    -``` - -For the record, this is just a random example, I've had very few issues with js-beautify in general. But with or without js-beautify, this kind of token mangling does happen sometimes when you use formatters, beautifiers or similar tools. - -## Install -{%= include("install-npm", {save: true}) %} - -## Run tests - -```bash -npm test -``` - -## API -{%= apidocs("index.js") %} - -## Contributing -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue]({%= bugs.url %}) - -## Author -{%= include("author") %} - -## License -{%= copyright() %} -{%= license() %} - -*** - -{%= include("footer") %} - -[js-beautify]: https://github.com/beautify-web/js-beautify \ No newline at end of file diff --git a/node_modules/preserve/LICENSE b/node_modules/preserve/LICENSE deleted file mode 100644 index 5a9956a..0000000 --- a/node_modules/preserve/LICENSE +++ /dev/null @@ -1,24 +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/preserve/README.md b/node_modules/preserve/README.md deleted file mode 100644 index 75000b9..0000000 --- a/node_modules/preserve/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# preserve [![NPM version](https://badge.fury.io/js/preserve.svg)](http://badge.fury.io/js/preserve) - -> Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string. - -Useful for protecting tokens, like templates in HTML, from being mutated when the string is transformed in some way, like from a formatter/beautifier. - -**Example without `preserve`** - -Let's say you want to use [js-beautify] on a string of html with Lo-Dash/Underscore templates, such as: `
    • <%= name %>
    `: - -js-beautify will render the template unusable (and apply incorrect formatting because of the unfamiliar syntax from the Lo-Dash template): - -```html -
      -
    • - <%=n ame %> -
    • -
    -``` - -**Example with `preserve`** - -Correct. - -```html -
      -
    • <%= name %>
    • -
    -``` - -For the record, this is just a random example, I've had very few issues with js-beautify in general. But with or without js-beautify, this kind of token mangling does happen sometimes when you use formatters, beautifiers or similar tools. - -## Install -## Install with [npm](npmjs.org) - -```bash -npm i preserve --save -``` - -## Run tests - -```bash -npm test -``` - -## API -### [.before](index.js#L23) - -Replace tokens in `str` with a temporary, heuristic placeholder. - -* `str` **{String}** -* `returns` **{String}**: String with placeholders. - -```js -tokens.before('{a\\,b}'); -//=> '{__ID1__}' -``` - -### [.after](index.js#L44) - -Replace placeholders in `str` with original tokens. - -* `str` **{String}**: String with placeholders -* `returns` **{String}** `str`: String with original tokens. - -```js -tokens.after('{__ID1__}'); -//=> '{a\\,b}' -``` - - -## Contributing -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/preserve/issues) - -## Author - -**Jon Schlinkert** - -+ [github/jonschlinkert](https://github.com/jonschlinkert) -+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License -Copyright (c) 2015-2015, Jon Schlinkert. -Released under the MIT license - -*** - -_This file was generated by [verb](https://github.com/assemble/verb) on January 10, 2015._ - -[js-beautify]: https://github.com/beautify-web/js-beautify \ No newline at end of file diff --git a/node_modules/preserve/index.js b/node_modules/preserve/index.js deleted file mode 100644 index a6c5d48..0000000 --- a/node_modules/preserve/index.js +++ /dev/null @@ -1,54 +0,0 @@ -/*! - * preserve - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT license. - */ - -'use strict'; - -/** - * Replace tokens in `str` with a temporary, heuristic placeholder. - * - * ```js - * tokens.before('{a\\,b}'); - * //=> '{__ID1__}' - * ``` - * - * @param {String} `str` - * @return {String} String with placeholders. - * @api public - */ - -exports.before = function before(str, re) { - return str.replace(re, function (match) { - var id = randomize(); - cache[id] = match; - return '__ID' + id + '__'; - }); -}; - -/** - * Replace placeholders in `str` with original tokens. - * - * ```js - * tokens.after('{__ID1__}'); - * //=> '{a\\,b}' - * ``` - * - * @param {String} `str` String with placeholders - * @return {String} `str` String with original tokens. - * @api public - */ - -exports.after = function after(str) { - return str.replace(/__ID(.{5})__/g, function (_, id) { - return cache[id]; - }); -}; - -function randomize() { - return Math.random().toString().slice(2, 7); -} - -var cache = {}; \ No newline at end of file diff --git a/node_modules/preserve/package.json b/node_modules/preserve/package.json deleted file mode 100644 index 6ae7bc5..0000000 --- a/node_modules/preserve/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "preserve@^0.2.0", - "scope": null, - "escapedName": "preserve", - "name": "preserve", - "rawSpec": "^0.2.0", - "spec": ">=0.2.0 <0.3.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/braces" - ] - ], - "_from": "preserve@>=0.2.0 <0.3.0", - "_id": "preserve@0.2.0", - "_inCache": true, - "_location": "/preserve", - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "1.4.23", - "_phantomChildren": {}, - "_requested": { - "raw": "preserve@^0.2.0", - "scope": null, - "escapedName": "preserve", - "name": "preserve", - "rawSpec": "^0.2.0", - "spec": ">=0.2.0 <0.3.0", - "type": "range" - }, - "_requiredBy": [ - "/braces" - ], - "_resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "_shasum": "815ed1f6ebc65926f865b310c0713bcb3315ce4b", - "_shrinkwrap": null, - "_spec": "preserve@^0.2.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/braces", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/preserve/issues" - }, - "dependencies": {}, - "description": "Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.", - "devDependencies": { - "benchmarked": "^0.1.3", - "chalk": "^0.5.1", - "js-beautify": "^1.5.4", - "mocha": "*", - "should": "*" - }, - "directories": {}, - "dist": { - "shasum": "815ed1f6ebc65926f865b310c0713bcb3315ce4b", - "tarball": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "gitHead": "1bf405d35e4aea06a2ee83db2d34dc54abc0a1f9", - "homepage": "https://github.com/jonschlinkert/preserve", - "keywords": [ - "escape", - "format", - "placeholder", - "placeholders", - "prettify", - "regex", - "replace", - "template", - "templates", - "token", - "tokens" - ], - "license": { - "type": "MIT", - "url": "https://github.com/jonschlinkert/preserve/blob/master/LICENSE-MIT" - }, - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "preserve", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/jonschlinkert/preserve.git" - }, - "scripts": { - "test": "mocha -R spec" - }, - "version": "0.2.0" -} diff --git a/node_modules/preserve/test.js b/node_modules/preserve/test.js deleted file mode 100644 index 9bf174f..0000000 --- a/node_modules/preserve/test.js +++ /dev/null @@ -1,48 +0,0 @@ -/*! - * preserve - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License - */ - -'use strict'; - -var should = require('should'); -var tokens = require('./'); - -var re = /<%=\s*[^>]+%>/g; -var pretty = function(str) { - return require('js-beautify').html(str, { - indent_char: ' ', - indent_size: 2, - }); -}; - -describe('preserve tokens', function () { - var testRe = /__ID.{5}__\n__ID.{5}__\n__ID.{5}__/; - var re = /<%=\s*[^>]+%>/g; - - it('should (e.g. shouldn\'t, but will) mangle tokens in the given string', function () { - var html = pretty('
    • <%= name %>
    '); - html.should.equal('
      \n
    • \n <%=n ame %>\n
    • \n
    '); - }); - - it('should preserve tokens in the given string', function () { - var html = tokens.after(pretty(tokens.before('
    • <%= name %>
    ', re))); - html.should.equal('
      \n
    • <%= name %>
    • \n
    '); - }); - - describe('.before()', function () { - it('should replace matches with placeholder tokens:', function () { - tokens.before('<%= a %>\n<%= b %>\n<%= c %>', re).should.match(testRe); - }); - }); - - describe('tokens.after()', function () { - it('should replace placeholder tokens with original values:', function () { - var before = tokens.before('<%= a %>\n<%= b %>\n<%= c %>', re); - before.should.match(testRe); - tokens.after(before).should.equal('<%= a %>\n<%= b %>\n<%= c %>'); - }); - }); -}); diff --git a/node_modules/pretty-hrtime/.jshintignore b/node_modules/pretty-hrtime/.jshintignore deleted file mode 100644 index cb28eb3..0000000 --- a/node_modules/pretty-hrtime/.jshintignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/** diff --git a/node_modules/pretty-hrtime/.npmignore b/node_modules/pretty-hrtime/.npmignore deleted file mode 100644 index 094a5f3..0000000 --- a/node_modules/pretty-hrtime/.npmignore +++ /dev/null @@ -1,10 +0,0 @@ -.DS_Store -*.log -node_modules -build -*.node -components -*.orig -.idea -test -.travis.yml diff --git a/node_modules/pretty-hrtime/LICENSE b/node_modules/pretty-hrtime/LICENSE deleted file mode 100644 index b7346ab..0000000 --- a/node_modules/pretty-hrtime/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2013 [Richardson & Sons, LLC](http://richardsonandsons.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/pretty-hrtime/README.md b/node_modules/pretty-hrtime/README.md deleted file mode 100644 index f4be28d..0000000 --- a/node_modules/pretty-hrtime/README.md +++ /dev/null @@ -1,57 +0,0 @@ -[![Build Status](https://secure.travis-ci.org/robrich/pretty-hrtime.png?branch=master)](https://travis-ci.org/robrich/pretty-hrtime) -[![Dependency Status](https://david-dm.org/robrich/pretty-hrtime.png)](https://david-dm.org/robrich/pretty-hrtime) - -pretty-hrtime -============ - -[process.hrtime()](http://nodejs.org/api/process.html#process_process_hrtime) to words - -Usage ------ - -```javascript -var prettyHrtime = require('pretty-hrtime'); - -var start = process.hrtime(); -// do stuff -var end = process.hrtime(start); - -var words = prettyHrtime(end); -console.log(words); // '1.2 ms' - -words = prettyHrtime(end, {verbose:true}); -console.log(words); // '1 millisecond 209 microseconds' - -words = prettyHrtime(end, {precise:true}); -console.log(words); // '1.20958 ms' -``` - -Note: process.hrtime() has been available since 0.7.6. -See [http://nodejs.org/changelog.html](http://nodejs.org/changelog.html) -and [https://github.com/joyent/node/commit/f06abd](https://github.com/joyent/node/commit/f06abd). - -LICENSE -------- - -(MIT License) - -Copyright (c) 2013 [Richardson & Sons, LLC](http://richardsonandsons.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/pretty-hrtime/index.js b/node_modules/pretty-hrtime/index.js deleted file mode 100644 index bed3f89..0000000 --- a/node_modules/pretty-hrtime/index.js +++ /dev/null @@ -1,80 +0,0 @@ -/*jshint node:true */ - -"use strict"; - -var minimalDesc = ['h', 'min', 's', 'ms', 'μs', 'ns']; -var verboseDesc = ['hour', 'minute', 'second', 'millisecond', 'microsecond', 'nanosecond']; -var convert = [60*60, 60, 1, 1e6, 1e3, 1]; - -module.exports = function (source, opts) { - var verbose, precise, i, spot, sourceAtStep, valAtStep, decimals, strAtStep, results, totalSeconds; - - verbose = false; - precise = false; - if (opts) { - verbose = opts.verbose || false; - precise = opts.precise || false; - } - - if (!Array.isArray(source) || source.length !== 2) { - return ''; - } - if (typeof source[0] !== 'number' || typeof source[1] !== 'number') { - return ''; - } - - // normalize source array due to changes in node v5.4+ - if (source[1] < 0) { - totalSeconds = source[0] + source[1] / 1e9; - source[0] = parseInt(totalSeconds); - source[1] = parseFloat((totalSeconds % 1).toPrecision(9)) * 1e9; - } - - results = ''; - - // foreach unit - for (i = 0; i < 6; i++) { - spot = i < 3 ? 0 : 1; // grabbing first or second spot in source array - sourceAtStep = source[spot]; - if (i !== 3 && i !== 0) { - sourceAtStep = sourceAtStep % convert[i-1]; // trim off previous portions - } - if (i === 2) { - sourceAtStep += source[1]/1e9; // get partial seconds from other portion of the array - } - valAtStep = sourceAtStep / convert[i]; // val at this unit - if (valAtStep >= 1) { - if (verbose) { - valAtStep = Math.floor(valAtStep); // deal in whole units, subsequent laps will get the decimal portion - } - if (!precise) { - // don't fling too many decimals - decimals = valAtStep >= 10 ? 0 : 2; - strAtStep = valAtStep.toFixed(decimals); - } else { - strAtStep = valAtStep.toString(); - } - if (strAtStep.indexOf('.') > -1 && strAtStep[strAtStep.length-1] === '0') { - strAtStep = strAtStep.replace(/\.?0+$/,''); // remove trailing zeros - } - if (results) { - results += ' '; // append space if we have a previous value - } - results += strAtStep; // append the value - // append units - if (verbose) { - results += ' '+verboseDesc[i]; - if (strAtStep !== '1') { - results += 's'; - } - } else { - results += ' '+minimalDesc[i]; - } - if (!verbose) { - break; // verbose gets as many groups as necessary, the rest get only one - } - } - } - - return results; -}; diff --git a/node_modules/pretty-hrtime/package.json b/node_modules/pretty-hrtime/package.json deleted file mode 100644 index 3b32dc0..0000000 --- a/node_modules/pretty-hrtime/package.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "pretty-hrtime@^1.0.0", - "scope": null, - "escapedName": "pretty-hrtime", - "name": "pretty-hrtime", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp" - ] - ], - "_from": "pretty-hrtime@>=1.0.0 <2.0.0", - "_id": "pretty-hrtime@1.0.3", - "_inCache": true, - "_location": "/pretty-hrtime", - "_nodeVersion": "6.9.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/pretty-hrtime-1.0.3.tgz_1478374729207_0.19822899298742414" - }, - "_npmUser": { - "name": "robrich", - "email": "robrich@robrich.org" - }, - "_npmVersion": "3.10.8", - "_phantomChildren": {}, - "_requested": { - "raw": "pretty-hrtime@^1.0.0", - "scope": null, - "escapedName": "pretty-hrtime", - "name": "pretty-hrtime", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp" - ], - "_resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", - "_shasum": "b7e3ea42435a4c9b2759d99e0f201eb195802ee1", - "_shrinkwrap": null, - "_spec": "pretty-hrtime@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp", - "author": { - "name": "Rob Richardson", - "url": "http://robrich.org/" - }, - "bugs": { - "url": "https://github.com/robrich/pretty-hrtime/issues" - }, - "dependencies": {}, - "description": "process.hrtime() to words", - "devDependencies": { - "jshint": "^2.9.4", - "mocha": "^3.1.2", - "should": "^11.1.1" - }, - "directories": {}, - "dist": { - "shasum": "b7e3ea42435a4c9b2759d99e0f201eb195802ee1", - "tarball": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz" - }, - "engines": { - "node": ">= 0.8" - }, - "gitHead": "fc030888103dff4a22004935ce4d15dd8f34a956", - "homepage": "https://github.com/robrich/pretty-hrtime", - "keywords": [ - "hrtime", - "benchmark" - ], - "license": "MIT", - "main": "./index.js", - "maintainers": [ - { - "name": "robrich", - "email": "robrich@robrich.org" - } - ], - "name": "pretty-hrtime", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/robrich/pretty-hrtime.git" - }, - "scripts": { - "test": "mocha && jshint ." - }, - "version": "1.0.3" -} diff --git a/node_modules/process-nextick-args/.travis.yml b/node_modules/process-nextick-args/.travis.yml deleted file mode 100644 index 36201b1..0000000 --- a/node_modules/process-nextick-args/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" - - "0.11" - - "0.12" - - "1.7.1" - - 1 - - 2 - - 3 - - 4 - - 5 diff --git a/node_modules/process-nextick-args/index.js b/node_modules/process-nextick-args/index.js deleted file mode 100644 index a4f40f8..0000000 --- a/node_modules/process-nextick-args/index.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -if (!process.version || - process.version.indexOf('v0.') === 0 || - process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { - module.exports = nextTick; -} else { - module.exports = process.nextTick; -} - -function nextTick(fn, arg1, arg2, arg3) { - if (typeof fn !== 'function') { - throw new TypeError('"callback" argument must be a function'); - } - var len = arguments.length; - var args, i; - switch (len) { - case 0: - case 1: - return process.nextTick(fn); - case 2: - return process.nextTick(function afterTickOne() { - fn.call(null, arg1); - }); - case 3: - return process.nextTick(function afterTickTwo() { - fn.call(null, arg1, arg2); - }); - case 4: - return process.nextTick(function afterTickThree() { - fn.call(null, arg1, arg2, arg3); - }); - default: - args = new Array(len - 1); - i = 0; - while (i < args.length) { - args[i++] = arguments[i]; - } - return process.nextTick(function afterTick() { - fn.apply(null, args); - }); - } -} diff --git a/node_modules/process-nextick-args/license.md b/node_modules/process-nextick-args/license.md deleted file mode 100644 index c67e353..0000000 --- a/node_modules/process-nextick-args/license.md +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2015 Calvin Metcalf - -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/process-nextick-args/package.json b/node_modules/process-nextick-args/package.json deleted file mode 100644 index f52c50c..0000000 --- a/node_modules/process-nextick-args/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "process-nextick-args@~1.0.6", - "scope": null, - "escapedName": "process-nextick-args", - "name": "process-nextick-args", - "rawSpec": "~1.0.6", - "spec": ">=1.0.6 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/through2/node_modules/readable-stream" - ] - ], - "_from": "process-nextick-args@>=1.0.6 <1.1.0", - "_id": "process-nextick-args@1.0.7", - "_inCache": true, - "_location": "/process-nextick-args", - "_nodeVersion": "5.11.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/process-nextick-args-1.0.7.tgz_1462394251778_0.36989671061746776" - }, - "_npmUser": { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - }, - "_npmVersion": "3.8.6", - "_phantomChildren": {}, - "_requested": { - "raw": "process-nextick-args@~1.0.6", - "scope": null, - "escapedName": "process-nextick-args", - "name": "process-nextick-args", - "rawSpec": "~1.0.6", - "spec": ">=1.0.6 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/cloneable-readable", - "/duplexify/readable-stream", - "/gulp-replace/readable-stream", - "/gulp-watch/readable-stream", - "/merge-stream/readable-stream", - "/readdirp/readable-stream", - "/replacestream/readable-stream", - "/strip-bom-stream/readable-stream", - "/through2/readable-stream" - ], - "_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", - "_shasum": "150e20b756590ad3f91093f25a4f2ad8bff30ba3", - "_shrinkwrap": null, - "_spec": "process-nextick-args@~1.0.6", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/through2/node_modules/readable-stream", - "author": "", - "bugs": { - "url": "https://github.com/calvinmetcalf/process-nextick-args/issues" - }, - "dependencies": {}, - "description": "process.nextTick but always with args", - "devDependencies": { - "tap": "~0.2.6" - }, - "directories": {}, - "dist": { - "shasum": "150e20b756590ad3f91093f25a4f2ad8bff30ba3", - "tarball": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz" - }, - "gitHead": "5c00899ab01dd32f93ad4b5743da33da91404f39", - "homepage": "https://github.com/calvinmetcalf/process-nextick-args", - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - } - ], - "name": "process-nextick-args", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/calvinmetcalf/process-nextick-args.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.0.7" -} diff --git a/node_modules/process-nextick-args/readme.md b/node_modules/process-nextick-args/readme.md deleted file mode 100644 index 78e7cfa..0000000 --- a/node_modules/process-nextick-args/readme.md +++ /dev/null @@ -1,18 +0,0 @@ -process-nextick-args -===== - -[![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args) - -```bash -npm install --save process-nextick-args -``` - -Always be able to pass arguments to process.nextTick, no matter the platform - -```js -var nextTick = require('process-nextick-args'); - -nextTick(function (a, b, c) { - console.log(a, b, c); -}, 'step', 3, 'profit'); -``` diff --git a/node_modules/process-nextick-args/test.js b/node_modules/process-nextick-args/test.js deleted file mode 100644 index ef15721..0000000 --- a/node_modules/process-nextick-args/test.js +++ /dev/null @@ -1,24 +0,0 @@ -var test = require("tap").test; -var nextTick = require('./'); - -test('should work', function (t) { - t.plan(5); - nextTick(function (a) { - t.ok(a); - nextTick(function (thing) { - t.equals(thing, 7); - }, 7); - }, true); - nextTick(function (a, b, c) { - t.equals(a, 'step'); - t.equals(b, 3); - t.equals(c, 'profit'); - }, 'step', 3, 'profit'); -}); - -test('correct number of arguments', function (t) { - t.plan(1); - nextTick(function () { - t.equals(2, arguments.length, 'correct number'); - }, 1, 2); -}); diff --git a/node_modules/promise/.jshintrc b/node_modules/promise/.jshintrc deleted file mode 100644 index 47c256f..0000000 --- a/node_modules/promise/.jshintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "asi": true, - "node": true, - "strict": true -} diff --git a/node_modules/promise/.npmignore b/node_modules/promise/.npmignore deleted file mode 100644 index ad5be4a..0000000 --- a/node_modules/promise/.npmignore +++ /dev/null @@ -1,7 +0,0 @@ -components -node_modules -test -.gitignore -.travis.yml -component.json -coverage diff --git a/node_modules/promise/LICENSE b/node_modules/promise/LICENSE deleted file mode 100644 index 7a1f763..0000000 --- a/node_modules/promise/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2014 Forbes Lindesay - -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/promise/Readme.md b/node_modules/promise/Readme.md deleted file mode 100644 index 61ec052..0000000 --- a/node_modules/promise/Readme.md +++ /dev/null @@ -1,231 +0,0 @@ - -# promise - -This is a simple implementation of Promises. It is a super set of ES6 Promises designed to have readable, performant code and to provide just the extensions that are absolutely necessary for using promises today. - -For detailed tutorials on its use, see www.promisejs.org - -**N.B.** This promise exposes internals via underscore (`_`) prefixed properties. If you use these, your code will break with each new release. - -[![travis][travis-image]][travis-url] -[![dep][dep-image]][dep-url] -[![npm][npm-image]][npm-url] -[![downloads][downloads-image]][downloads-url] - -[travis-image]: https://img.shields.io/travis/then/promise.svg?style=flat -[travis-url]: https://travis-ci.org/then/promise -[dep-image]: https://img.shields.io/gemnasium/then/promise.svg?style=flat -[dep-url]: https://gemnasium.com/then/promise -[npm-image]: https://img.shields.io/npm/v/promise.svg?style=flat -[npm-url]: https://npmjs.org/package/promise -[downloads-image]: https://img.shields.io/npm/dm/promise.svg?style=flat -[downloads-url]: https://npmjs.org/package/promise - -## Installation - -**Server:** - - $ npm install promise - -**Client:** - -You can use browserify on the client, or use the pre-compiled script that acts as a polyfill. - -```html - -``` - -Note that the [es5-shim](https://github.com/es-shims/es5-shim) must be loaded before this library to support browsers pre IE9. - -```html - -``` - -## Usage - -The example below shows how you can load the promise library (in a way that works on both client and server using node or browserify). It then demonstrates creating a promise from scratch. You simply call `new Promise(fn)`. There is a complete specification for what is returned by this method in [Promises/A+](http://promises-aplus.github.com/promises-spec/). - -```javascript -var Promise = require('promise'); - -var promise = new Promise(function (resolve, reject) { - get('http://www.google.com', function (err, res) { - if (err) reject(err); - else resolve(res); - }); -}); -``` - -If you need [domains](https://iojs.org/api/domain.html) support, you should instead use: - -```js -var Promise = require('promise/domains'); -``` - -If you are in an environment that implements `setImmediate` and don't want the optimisations provided by asap, you can use: - -```js -var Promise = require('promise/setimmediate'); -``` - -If you only want part of the features, e.g. just a pure ES6 polyfill: - -```js -var Promise = require('promise/lib/es6-extensions'); -// or require('promise/domains/es6-extensions'); -// or require('promise/setimmediate/es6-extensions'); -``` - -## Unhandled Rejections - -By default, promises silence any unhandled rejections. - -You can enable logging of unhandled ReferenceErrors and TypeErrors via: - -```js -require('promise/lib/rejection-tracking').enable(); -``` - -Due to the performance cost, you should only do this during development. - -You can enable logging of all unhandled rejections if you need to debug an exception you think is being swallowed by promises: - -```js -require('promise/lib/rejection-tracking').enable( - {allRejections: true} -); -``` - -Due to the high probability of false positives, I only recommend using this when debugging specific issues that you think may be being swallowed. For the preferred debugging method, see `Promise#done(onFulfilled, onRejected)`. - -`rejection-tracking.enable(options)` takes the following options: - - - allRejections (`boolean`) - track all exceptions, not just reference errors and type errors. Note that this has a high probability of resulting in false positives if your code loads data optimisticly - - whitelist (`Array`) - this defaults to `[ReferenceError, TypeError]` but you can override it with your own list of error constructors to track. - - `onUnhandled(id, error)` and `onHandled(id, error)` - you can use these to provide your own customised display for errors. Note that if possible you should indicate that the error was a false positive if `onHandled` is called. `onHandled` is only called if `onUnhandled` has already been called. - -To reduce the chance of false-positives there is a delay of up to 2 seconds before errors are logged. This means that if you attach an error handler within 2 seconds, it won't be logged as a false positive. ReferenceErrors and TypeErrors are only subject to a 100ms delay due to the higher likelihood that the error is due to programmer error. - -## API - -Before all examples, you will need: - -```js -var Promise = require('promise'); -``` - -### new Promise(resolver) - -This creates and returns a new promise. `resolver` must be a function. The `resolver` function is passed two arguments: - - 1. `resolve` should be called with a single argument. If it is called with a non-promise value then the promise is fulfilled with that value. If it is called with a promise (A) then the returned promise takes on the state of that new promise (A). - 2. `reject` should be called with a single argument. The returned promise will be rejected with that argument. - -### Static Functions - - These methods are invoked by calling `Promise.methodName`. - -#### Promise.resolve(value) - -(deprecated aliases: `Promise.from(value)`, `Promise.cast(value)`) - -Converts values and foreign promises into Promises/A+ promises. If you pass it a value then it returns a Promise for that value. If you pass it something that is close to a promise (such as a jQuery attempt at a promise) it returns a Promise that takes on the state of `value` (rejected or fulfilled). - -#### Promise.reject(value) - -Returns a rejected promise with the given value. - -#### Promise.all(array) - -Returns a promise for an array. If it is called with a single argument that `Array.isArray` then this returns a promise for a copy of that array with any promises replaced by their fulfilled values. e.g. - -```js -Promise.all([Promise.resolve('a'), 'b', Promise.resolve('c')]) - .then(function (res) { - assert(res[0] === 'a') - assert(res[1] === 'b') - assert(res[2] === 'c') - }) -``` - -#### Promise.denodeify(fn) - -_Non Standard_ - -Takes a function which accepts a node style callback and returns a new function that returns a promise instead. - -e.g. - -```javascript -var fs = require('fs') - -var read = Promise.denodeify(fs.readFile) -var write = Promise.denodeify(fs.writeFile) - -var p = read('foo.json', 'utf8') - .then(function (str) { - return write('foo.json', JSON.stringify(JSON.parse(str), null, ' '), 'utf8') - }) -``` - -#### Promise.nodeify(fn) - -_Non Standard_ - -The twin to `denodeify` is useful when you want to export an API that can be used by people who haven't learnt about the brilliance of promises yet. - -```javascript -module.exports = Promise.nodeify(awesomeAPI) -function awesomeAPI(a, b) { - return download(a, b) -} -``` - -If the last argument passed to `module.exports` is a function, then it will be treated like a node.js callback and not parsed on to the child function, otherwise the API will just return a promise. - -### Prototype Methods - -These methods are invoked on a promise instance by calling `myPromise.methodName` - -### Promise#then(onFulfilled, onRejected) - -This method follows the [Promises/A+ spec](http://promises-aplus.github.io/promises-spec/). It explains things very clearly so I recommend you read it. - -Either `onFulfilled` or `onRejected` will be called and they will not be called more than once. They will be passed a single argument and will always be called asynchronously (in the next turn of the event loop). - -If the promise is fulfilled then `onFulfilled` is called. If the promise is rejected then `onRejected` is called. - -The call to `.then` also returns a promise. If the handler that is called returns a promise, the promise returned by `.then` takes on the state of that returned promise. If the handler that is called returns a value that is not a promise, the promise returned by `.then` will be fulfilled with that value. If the handler that is called throws an exception then the promise returned by `.then` is rejected with that exception. - -#### Promise#catch(onRejected) - -Sugar for `Promise#then(null, onRejected)`, to mirror `catch` in synchronous code. - -#### Promise#done(onFulfilled, onRejected) - -_Non Standard_ - -The same semantics as `.then` except that it does not return a promise and any exceptions are re-thrown so that they can be logged (crashing the application in non-browser environments) - -#### Promise#nodeify(callback) - -_Non Standard_ - -If `callback` is `null` or `undefined` it just returns `this`. If `callback` is a function it is called with rejection reason as the first argument and result as the second argument (as per the node.js convention). - -This lets you write API functions that look like: - -```javascript -function awesomeAPI(foo, bar, callback) { - return internalAPI(foo, bar) - .then(parseResult) - .then(null, retryErrors) - .nodeify(callback) -} -``` - -People who use typical node.js style callbacks will be able to just pass a callback and get the expected behavior. The enlightened people can not pass a callback and will get awesome promises. - -## License - - MIT diff --git a/node_modules/promise/build.js b/node_modules/promise/build.js deleted file mode 100644 index 1e028e9..0000000 --- a/node_modules/promise/build.js +++ /dev/null @@ -1,69 +0,0 @@ -'use strict'; - -var fs = require('fs'); -var rimraf = require('rimraf'); -var acorn = require('acorn'); -var walk = require('acorn/dist/walk'); - -var ids = []; -var names = {}; - -function getIdFor(name) { - if (name in names) return names[name]; - var id; - do { - id = '_' + Math.floor(Math.random() * 100); - } while (ids.indexOf(id) !== -1) - ids.push(id); - names[name] = id; - return id; -} - -function fixup(src) { - var ast = acorn.parse(src); - src = src.split(''); - walk.simple(ast, { - MemberExpression: function (node) { - if (node.computed) return; - if (node.property.type !== 'Identifier') return; - if (node.property.name[0] !== '_') return; - replace(node.property, getIdFor(node.property.name)); - } - }); - function source(node) { - return src.slice(node.start, node.end).join(''); - } - function replace(node, str) { - for (var i = node.start; i < node.end; i++) { - src[i] = ''; - } - src[node.start] = str; - } - return src.join(''); -} -rimraf.sync(__dirname + '/lib/'); -fs.mkdirSync(__dirname + '/lib/'); -fs.readdirSync(__dirname + '/src').forEach(function (filename) { - var src = fs.readFileSync(__dirname + '/src/' + filename, 'utf8'); - var out = fixup(src); - fs.writeFileSync(__dirname + '/lib/' + filename, out); -}); - -rimraf.sync(__dirname + '/domains/'); -fs.mkdirSync(__dirname + '/domains/'); -fs.readdirSync(__dirname + '/src').forEach(function (filename) { - var src = fs.readFileSync(__dirname + '/src/' + filename, 'utf8'); - var out = fixup(src); - out = out.replace(/require\(\'asap\/raw\'\)/g, "require('asap')"); - fs.writeFileSync(__dirname + '/domains/' + filename, out); -}); - -rimraf.sync(__dirname + '/setimmediate/'); -fs.mkdirSync(__dirname + '/setimmediate/'); -fs.readdirSync(__dirname + '/src').forEach(function (filename) { - var src = fs.readFileSync(__dirname + '/src/' + filename, 'utf8'); - var out = fixup(src); - out = out.replace(/var asap \= require\(\'([a-z\/]+)\'\);/g, ''); - out = out.replace(/asap/g, "setImmediate"); - fs.writeFileSync(__dirname + '/setimmediate/' + filename, out); -}); diff --git a/node_modules/promise/core.js b/node_modules/promise/core.js deleted file mode 100644 index 5f332a2..0000000 --- a/node_modules/promise/core.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = require('./lib/core.js'); - -console.error('require("promise/core") is deprecated, use require("promise/lib/core") instead.'); diff --git a/node_modules/promise/domains/core.js b/node_modules/promise/domains/core.js deleted file mode 100644 index bcf1168..0000000 --- a/node_modules/promise/domains/core.js +++ /dev/null @@ -1,213 +0,0 @@ -'use strict'; - -var asap = require('asap'); - -function noop() {} - -// States: -// -// 0 - pending -// 1 - fulfilled with _value -// 2 - rejected with _value -// 3 - adopted the state of another promise, _value -// -// once the state is no longer pending (0) it is immutable - -// All `_` prefixed properties will be reduced to `_{random number}` -// at build time to obfuscate them and discourage their use. -// We don't use symbols or Object.defineProperty to fully hide them -// because the performance isn't good enough. - - -// to avoid using try/catch inside critical functions, we -// extract them to here. -var LAST_ERROR = null; -var IS_ERROR = {}; -function getThen(obj) { - try { - return obj.then; - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} - -function tryCallOne(fn, a) { - try { - return fn(a); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} -function tryCallTwo(fn, a, b) { - try { - fn(a, b); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} - -module.exports = Promise; - -function Promise(fn) { - if (typeof this !== 'object') { - throw new TypeError('Promises must be constructed via new'); - } - if (typeof fn !== 'function') { - throw new TypeError('not a function'); - } - this._45 = 0; - this._81 = 0; - this._65 = null; - this._54 = null; - if (fn === noop) return; - doResolve(fn, this); -} -Promise._10 = null; -Promise._97 = null; -Promise._61 = noop; - -Promise.prototype.then = function(onFulfilled, onRejected) { - if (this.constructor !== Promise) { - return safeThen(this, onFulfilled, onRejected); - } - var res = new Promise(noop); - handle(this, new Handler(onFulfilled, onRejected, res)); - return res; -}; - -function safeThen(self, onFulfilled, onRejected) { - return new self.constructor(function (resolve, reject) { - var res = new Promise(noop); - res.then(resolve, reject); - handle(self, new Handler(onFulfilled, onRejected, res)); - }); -}; -function handle(self, deferred) { - while (self._81 === 3) { - self = self._65; - } - if (Promise._10) { - Promise._10(self); - } - if (self._81 === 0) { - if (self._45 === 0) { - self._45 = 1; - self._54 = deferred; - return; - } - if (self._45 === 1) { - self._45 = 2; - self._54 = [self._54, deferred]; - return; - } - self._54.push(deferred); - return; - } - handleResolved(self, deferred); -} - -function handleResolved(self, deferred) { - asap(function() { - var cb = self._81 === 1 ? deferred.onFulfilled : deferred.onRejected; - if (cb === null) { - if (self._81 === 1) { - resolve(deferred.promise, self._65); - } else { - reject(deferred.promise, self._65); - } - return; - } - var ret = tryCallOne(cb, self._65); - if (ret === IS_ERROR) { - reject(deferred.promise, LAST_ERROR); - } else { - resolve(deferred.promise, ret); - } - }); -} -function resolve(self, newValue) { - // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure - if (newValue === self) { - return reject( - self, - new TypeError('A promise cannot be resolved with itself.') - ); - } - if ( - newValue && - (typeof newValue === 'object' || typeof newValue === 'function') - ) { - var then = getThen(newValue); - if (then === IS_ERROR) { - return reject(self, LAST_ERROR); - } - if ( - then === self.then && - newValue instanceof Promise - ) { - self._81 = 3; - self._65 = newValue; - finale(self); - return; - } else if (typeof then === 'function') { - doResolve(then.bind(newValue), self); - return; - } - } - self._81 = 1; - self._65 = newValue; - finale(self); -} - -function reject(self, newValue) { - self._81 = 2; - self._65 = newValue; - if (Promise._97) { - Promise._97(self, newValue); - } - finale(self); -} -function finale(self) { - if (self._45 === 1) { - handle(self, self._54); - self._54 = null; - } - if (self._45 === 2) { - for (var i = 0; i < self._54.length; i++) { - handle(self, self._54[i]); - } - self._54 = null; - } -} - -function Handler(onFulfilled, onRejected, promise){ - this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; - this.onRejected = typeof onRejected === 'function' ? onRejected : null; - this.promise = promise; -} - -/** - * Take a potentially misbehaving resolver function and make sure - * onFulfilled and onRejected are only called once. - * - * Makes no guarantees about asynchrony. - */ -function doResolve(fn, promise) { - var done = false; - var res = tryCallTwo(fn, function (value) { - if (done) return; - done = true; - resolve(promise, value); - }, function (reason) { - if (done) return; - done = true; - reject(promise, reason); - }) - if (!done && res === IS_ERROR) { - done = true; - reject(promise, LAST_ERROR); - } -} diff --git a/node_modules/promise/domains/done.js b/node_modules/promise/domains/done.js deleted file mode 100644 index f879317..0000000 --- a/node_modules/promise/domains/done.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.prototype.done = function (onFulfilled, onRejected) { - var self = arguments.length ? this.then.apply(this, arguments) : this; - self.then(null, function (err) { - setTimeout(function () { - throw err; - }, 0); - }); -}; diff --git a/node_modules/promise/domains/es6-extensions.js b/node_modules/promise/domains/es6-extensions.js deleted file mode 100644 index 1ab6eae..0000000 --- a/node_modules/promise/domains/es6-extensions.js +++ /dev/null @@ -1,107 +0,0 @@ -'use strict'; - -//This file contains the ES6 extensions to the core Promises/A+ API - -var Promise = require('./core.js'); - -module.exports = Promise; - -/* Static Functions */ - -var TRUE = valuePromise(true); -var FALSE = valuePromise(false); -var NULL = valuePromise(null); -var UNDEFINED = valuePromise(undefined); -var ZERO = valuePromise(0); -var EMPTYSTRING = valuePromise(''); - -function valuePromise(value) { - var p = new Promise(Promise._61); - p._81 = 1; - p._65 = value; - return p; -} -Promise.resolve = function (value) { - if (value instanceof Promise) return value; - - if (value === null) return NULL; - if (value === undefined) return UNDEFINED; - if (value === true) return TRUE; - if (value === false) return FALSE; - if (value === 0) return ZERO; - if (value === '') return EMPTYSTRING; - - if (typeof value === 'object' || typeof value === 'function') { - try { - var then = value.then; - if (typeof then === 'function') { - return new Promise(then.bind(value)); - } - } catch (ex) { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } - } - return valuePromise(value); -}; - -Promise.all = function (arr) { - var args = Array.prototype.slice.call(arr); - - return new Promise(function (resolve, reject) { - if (args.length === 0) return resolve([]); - var remaining = args.length; - function res(i, val) { - if (val && (typeof val === 'object' || typeof val === 'function')) { - if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._81 === 3) { - val = val._65; - } - if (val._81 === 1) return res(i, val._65); - if (val._81 === 2) reject(val._65); - val.then(function (val) { - res(i, val); - }, reject); - return; - } else { - var then = val.then; - if (typeof then === 'function') { - var p = new Promise(then.bind(val)); - p.then(function (val) { - res(i, val); - }, reject); - return; - } - } - } - args[i] = val; - if (--remaining === 0) { - resolve(args); - } - } - for (var i = 0; i < args.length; i++) { - res(i, args[i]); - } - }); -}; - -Promise.reject = function (value) { - return new Promise(function (resolve, reject) { - reject(value); - }); -}; - -Promise.race = function (values) { - return new Promise(function (resolve, reject) { - values.forEach(function(value){ - Promise.resolve(value).then(resolve, reject); - }); - }); -}; - -/* Prototype Methods */ - -Promise.prototype['catch'] = function (onRejected) { - return this.then(null, onRejected); -}; diff --git a/node_modules/promise/domains/finally.js b/node_modules/promise/domains/finally.js deleted file mode 100644 index f5ee0b9..0000000 --- a/node_modules/promise/domains/finally.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.prototype['finally'] = function (f) { - return this.then(function (value) { - return Promise.resolve(f()).then(function () { - return value; - }); - }, function (err) { - return Promise.resolve(f()).then(function () { - throw err; - }); - }); -}; diff --git a/node_modules/promise/domains/index.js b/node_modules/promise/domains/index.js deleted file mode 100644 index 6e674f3..0000000 --- a/node_modules/promise/domains/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = require('./core.js'); -require('./done.js'); -require('./finally.js'); -require('./es6-extensions.js'); -require('./node-extensions.js'); -require('./synchronous.js'); diff --git a/node_modules/promise/domains/node-extensions.js b/node_modules/promise/domains/node-extensions.js deleted file mode 100644 index 890ae45..0000000 --- a/node_modules/promise/domains/node-extensions.js +++ /dev/null @@ -1,130 +0,0 @@ -'use strict'; - -// This file contains then/promise specific extensions that are only useful -// for node.js interop - -var Promise = require('./core.js'); -var asap = require('asap'); - -module.exports = Promise; - -/* Static Functions */ - -Promise.denodeify = function (fn, argumentCount) { - if ( - typeof argumentCount === 'number' && argumentCount !== Infinity - ) { - return denodeifyWithCount(fn, argumentCount); - } else { - return denodeifyWithoutCount(fn); - } -} - -var callbackFn = ( - 'function (err, res) {' + - 'if (err) { rj(err); } else { rs(res); }' + - '}' -); -function denodeifyWithCount(fn, argumentCount) { - var args = []; - for (var i = 0; i < argumentCount; i++) { - args.push('a' + i); - } - var body = [ - 'return function (' + args.join(',') + ') {', - 'var self = this;', - 'return new Promise(function (rs, rj) {', - 'var res = fn.call(', - ['self'].concat(args).concat([callbackFn]).join(','), - ');', - 'if (res &&', - '(typeof res === "object" || typeof res === "function") &&', - 'typeof res.then === "function"', - ') {rs(res);}', - '});', - '};' - ].join(''); - return Function(['Promise', 'fn'], body)(Promise, fn); -} -function denodeifyWithoutCount(fn) { - var fnLength = Math.max(fn.length - 1, 3); - var args = []; - for (var i = 0; i < fnLength; i++) { - args.push('a' + i); - } - var body = [ - 'return function (' + args.join(',') + ') {', - 'var self = this;', - 'var args;', - 'var argLength = arguments.length;', - 'if (arguments.length > ' + fnLength + ') {', - 'args = new Array(arguments.length + 1);', - 'for (var i = 0; i < arguments.length; i++) {', - 'args[i] = arguments[i];', - '}', - '}', - 'return new Promise(function (rs, rj) {', - 'var cb = ' + callbackFn + ';', - 'var res;', - 'switch (argLength) {', - args.concat(['extra']).map(function (_, index) { - return ( - 'case ' + (index) + ':' + - 'res = fn.call(' + ['self'].concat(args.slice(0, index)).concat('cb').join(',') + ');' + - 'break;' - ); - }).join(''), - 'default:', - 'args[argLength] = cb;', - 'res = fn.apply(self, args);', - '}', - - 'if (res &&', - '(typeof res === "object" || typeof res === "function") &&', - 'typeof res.then === "function"', - ') {rs(res);}', - '});', - '};' - ].join(''); - - return Function( - ['Promise', 'fn'], - body - )(Promise, fn); -} - -Promise.nodeify = function (fn) { - return function () { - var args = Array.prototype.slice.call(arguments); - var callback = - typeof args[args.length - 1] === 'function' ? args.pop() : null; - var ctx = this; - try { - return fn.apply(this, arguments).nodeify(callback, ctx); - } catch (ex) { - if (callback === null || typeof callback == 'undefined') { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } else { - asap(function () { - callback.call(ctx, ex); - }) - } - } - } -} - -Promise.prototype.nodeify = function (callback, ctx) { - if (typeof callback != 'function') return this; - - this.then(function (value) { - asap(function () { - callback.call(ctx, null, value); - }); - }, function (err) { - asap(function () { - callback.call(ctx, err); - }); - }); -} diff --git a/node_modules/promise/domains/rejection-tracking.js b/node_modules/promise/domains/rejection-tracking.js deleted file mode 100644 index 088a0de..0000000 --- a/node_modules/promise/domains/rejection-tracking.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -var Promise = require('./core'); - -var DEFAULT_WHITELIST = [ - ReferenceError, - TypeError, - RangeError -]; - -var enabled = false; -exports.disable = disable; -function disable() { - enabled = false; - Promise._10 = null; - Promise._97 = null; -} - -exports.enable = enable; -function enable(options) { - options = options || {}; - if (enabled) disable(); - enabled = true; - var id = 0; - var displayId = 0; - var rejections = {}; - Promise._10 = function (promise) { - if ( - promise._81 === 2 && // IS REJECTED - rejections[promise._72] - ) { - if (rejections[promise._72].logged) { - onHandled(promise._72); - } else { - clearTimeout(rejections[promise._72].timeout); - } - delete rejections[promise._72]; - } - }; - Promise._97 = function (promise, err) { - if (promise._45 === 0) { // not yet handled - promise._72 = id++; - rejections[promise._72] = { - displayId: null, - error: err, - timeout: setTimeout( - onUnhandled.bind(null, promise._72), - // For reference errors and type errors, this almost always - // means the programmer made a mistake, so log them after just - // 100ms - // otherwise, wait 2 seconds to see if they get handled - matchWhitelist(err, DEFAULT_WHITELIST) - ? 100 - : 2000 - ), - logged: false - }; - } - }; - function onUnhandled(id) { - if ( - options.allRejections || - matchWhitelist( - rejections[id].error, - options.whitelist || DEFAULT_WHITELIST - ) - ) { - rejections[id].displayId = displayId++; - if (options.onUnhandled) { - rejections[id].logged = true; - options.onUnhandled( - rejections[id].displayId, - rejections[id].error - ); - } else { - rejections[id].logged = true; - logError( - rejections[id].displayId, - rejections[id].error - ); - } - } - } - function onHandled(id) { - if (rejections[id].logged) { - if (options.onHandled) { - options.onHandled(rejections[id].displayId, rejections[id].error); - } else if (!rejections[id].onUnhandled) { - console.warn( - 'Promise Rejection Handled (id: ' + rejections[id].displayId + '):' - ); - console.warn( - ' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + - rejections[id].displayId + '.' - ); - } - } - } -} - -function logError(id, error) { - console.warn('Possible Unhandled Promise Rejection (id: ' + id + '):'); - var errStr = (error && (error.stack || error)) + ''; - errStr.split('\n').forEach(function (line) { - console.warn(' ' + line); - }); -} - -function matchWhitelist(error, list) { - return list.some(function (cls) { - return error instanceof cls; - }); -} \ No newline at end of file diff --git a/node_modules/promise/domains/synchronous.js b/node_modules/promise/domains/synchronous.js deleted file mode 100644 index 2f97451..0000000 --- a/node_modules/promise/domains/synchronous.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.enableSynchronous = function () { - Promise.prototype.isPending = function() { - return this.getState() == 0; - }; - - Promise.prototype.isFulfilled = function() { - return this.getState() == 1; - }; - - Promise.prototype.isRejected = function() { - return this.getState() == 2; - }; - - Promise.prototype.getValue = function () { - if (this._81 === 3) { - return this._65.getValue(); - } - - if (!this.isFulfilled()) { - throw new Error('Cannot get a value of an unfulfilled promise.'); - } - - return this._65; - }; - - Promise.prototype.getReason = function () { - if (this._81 === 3) { - return this._65.getReason(); - } - - if (!this.isRejected()) { - throw new Error('Cannot get a rejection reason of a non-rejected promise.'); - } - - return this._65; - }; - - Promise.prototype.getState = function () { - if (this._81 === 3) { - return this._65.getState(); - } - if (this._81 === -1 || this._81 === -2) { - return 0; - } - - return this._81; - }; -}; - -Promise.disableSynchronous = function() { - Promise.prototype.isPending = undefined; - Promise.prototype.isFulfilled = undefined; - Promise.prototype.isRejected = undefined; - Promise.prototype.getValue = undefined; - Promise.prototype.getReason = undefined; - Promise.prototype.getState = undefined; -}; diff --git a/node_modules/promise/index.js b/node_modules/promise/index.js deleted file mode 100644 index 1c38e46..0000000 --- a/node_modules/promise/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./lib') diff --git a/node_modules/promise/lib/core.js b/node_modules/promise/lib/core.js deleted file mode 100644 index 207fb81..0000000 --- a/node_modules/promise/lib/core.js +++ /dev/null @@ -1,213 +0,0 @@ -'use strict'; - -var asap = require('asap/raw'); - -function noop() {} - -// States: -// -// 0 - pending -// 1 - fulfilled with _value -// 2 - rejected with _value -// 3 - adopted the state of another promise, _value -// -// once the state is no longer pending (0) it is immutable - -// All `_` prefixed properties will be reduced to `_{random number}` -// at build time to obfuscate them and discourage their use. -// We don't use symbols or Object.defineProperty to fully hide them -// because the performance isn't good enough. - - -// to avoid using try/catch inside critical functions, we -// extract them to here. -var LAST_ERROR = null; -var IS_ERROR = {}; -function getThen(obj) { - try { - return obj.then; - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} - -function tryCallOne(fn, a) { - try { - return fn(a); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} -function tryCallTwo(fn, a, b) { - try { - fn(a, b); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} - -module.exports = Promise; - -function Promise(fn) { - if (typeof this !== 'object') { - throw new TypeError('Promises must be constructed via new'); - } - if (typeof fn !== 'function') { - throw new TypeError('not a function'); - } - this._45 = 0; - this._81 = 0; - this._65 = null; - this._54 = null; - if (fn === noop) return; - doResolve(fn, this); -} -Promise._10 = null; -Promise._97 = null; -Promise._61 = noop; - -Promise.prototype.then = function(onFulfilled, onRejected) { - if (this.constructor !== Promise) { - return safeThen(this, onFulfilled, onRejected); - } - var res = new Promise(noop); - handle(this, new Handler(onFulfilled, onRejected, res)); - return res; -}; - -function safeThen(self, onFulfilled, onRejected) { - return new self.constructor(function (resolve, reject) { - var res = new Promise(noop); - res.then(resolve, reject); - handle(self, new Handler(onFulfilled, onRejected, res)); - }); -}; -function handle(self, deferred) { - while (self._81 === 3) { - self = self._65; - } - if (Promise._10) { - Promise._10(self); - } - if (self._81 === 0) { - if (self._45 === 0) { - self._45 = 1; - self._54 = deferred; - return; - } - if (self._45 === 1) { - self._45 = 2; - self._54 = [self._54, deferred]; - return; - } - self._54.push(deferred); - return; - } - handleResolved(self, deferred); -} - -function handleResolved(self, deferred) { - asap(function() { - var cb = self._81 === 1 ? deferred.onFulfilled : deferred.onRejected; - if (cb === null) { - if (self._81 === 1) { - resolve(deferred.promise, self._65); - } else { - reject(deferred.promise, self._65); - } - return; - } - var ret = tryCallOne(cb, self._65); - if (ret === IS_ERROR) { - reject(deferred.promise, LAST_ERROR); - } else { - resolve(deferred.promise, ret); - } - }); -} -function resolve(self, newValue) { - // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure - if (newValue === self) { - return reject( - self, - new TypeError('A promise cannot be resolved with itself.') - ); - } - if ( - newValue && - (typeof newValue === 'object' || typeof newValue === 'function') - ) { - var then = getThen(newValue); - if (then === IS_ERROR) { - return reject(self, LAST_ERROR); - } - if ( - then === self.then && - newValue instanceof Promise - ) { - self._81 = 3; - self._65 = newValue; - finale(self); - return; - } else if (typeof then === 'function') { - doResolve(then.bind(newValue), self); - return; - } - } - self._81 = 1; - self._65 = newValue; - finale(self); -} - -function reject(self, newValue) { - self._81 = 2; - self._65 = newValue; - if (Promise._97) { - Promise._97(self, newValue); - } - finale(self); -} -function finale(self) { - if (self._45 === 1) { - handle(self, self._54); - self._54 = null; - } - if (self._45 === 2) { - for (var i = 0; i < self._54.length; i++) { - handle(self, self._54[i]); - } - self._54 = null; - } -} - -function Handler(onFulfilled, onRejected, promise){ - this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; - this.onRejected = typeof onRejected === 'function' ? onRejected : null; - this.promise = promise; -} - -/** - * Take a potentially misbehaving resolver function and make sure - * onFulfilled and onRejected are only called once. - * - * Makes no guarantees about asynchrony. - */ -function doResolve(fn, promise) { - var done = false; - var res = tryCallTwo(fn, function (value) { - if (done) return; - done = true; - resolve(promise, value); - }, function (reason) { - if (done) return; - done = true; - reject(promise, reason); - }) - if (!done && res === IS_ERROR) { - done = true; - reject(promise, LAST_ERROR); - } -} diff --git a/node_modules/promise/lib/done.js b/node_modules/promise/lib/done.js deleted file mode 100644 index f879317..0000000 --- a/node_modules/promise/lib/done.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.prototype.done = function (onFulfilled, onRejected) { - var self = arguments.length ? this.then.apply(this, arguments) : this; - self.then(null, function (err) { - setTimeout(function () { - throw err; - }, 0); - }); -}; diff --git a/node_modules/promise/lib/es6-extensions.js b/node_modules/promise/lib/es6-extensions.js deleted file mode 100644 index 1ab6eae..0000000 --- a/node_modules/promise/lib/es6-extensions.js +++ /dev/null @@ -1,107 +0,0 @@ -'use strict'; - -//This file contains the ES6 extensions to the core Promises/A+ API - -var Promise = require('./core.js'); - -module.exports = Promise; - -/* Static Functions */ - -var TRUE = valuePromise(true); -var FALSE = valuePromise(false); -var NULL = valuePromise(null); -var UNDEFINED = valuePromise(undefined); -var ZERO = valuePromise(0); -var EMPTYSTRING = valuePromise(''); - -function valuePromise(value) { - var p = new Promise(Promise._61); - p._81 = 1; - p._65 = value; - return p; -} -Promise.resolve = function (value) { - if (value instanceof Promise) return value; - - if (value === null) return NULL; - if (value === undefined) return UNDEFINED; - if (value === true) return TRUE; - if (value === false) return FALSE; - if (value === 0) return ZERO; - if (value === '') return EMPTYSTRING; - - if (typeof value === 'object' || typeof value === 'function') { - try { - var then = value.then; - if (typeof then === 'function') { - return new Promise(then.bind(value)); - } - } catch (ex) { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } - } - return valuePromise(value); -}; - -Promise.all = function (arr) { - var args = Array.prototype.slice.call(arr); - - return new Promise(function (resolve, reject) { - if (args.length === 0) return resolve([]); - var remaining = args.length; - function res(i, val) { - if (val && (typeof val === 'object' || typeof val === 'function')) { - if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._81 === 3) { - val = val._65; - } - if (val._81 === 1) return res(i, val._65); - if (val._81 === 2) reject(val._65); - val.then(function (val) { - res(i, val); - }, reject); - return; - } else { - var then = val.then; - if (typeof then === 'function') { - var p = new Promise(then.bind(val)); - p.then(function (val) { - res(i, val); - }, reject); - return; - } - } - } - args[i] = val; - if (--remaining === 0) { - resolve(args); - } - } - for (var i = 0; i < args.length; i++) { - res(i, args[i]); - } - }); -}; - -Promise.reject = function (value) { - return new Promise(function (resolve, reject) { - reject(value); - }); -}; - -Promise.race = function (values) { - return new Promise(function (resolve, reject) { - values.forEach(function(value){ - Promise.resolve(value).then(resolve, reject); - }); - }); -}; - -/* Prototype Methods */ - -Promise.prototype['catch'] = function (onRejected) { - return this.then(null, onRejected); -}; diff --git a/node_modules/promise/lib/finally.js b/node_modules/promise/lib/finally.js deleted file mode 100644 index f5ee0b9..0000000 --- a/node_modules/promise/lib/finally.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.prototype['finally'] = function (f) { - return this.then(function (value) { - return Promise.resolve(f()).then(function () { - return value; - }); - }, function (err) { - return Promise.resolve(f()).then(function () { - throw err; - }); - }); -}; diff --git a/node_modules/promise/lib/index.js b/node_modules/promise/lib/index.js deleted file mode 100644 index 6e674f3..0000000 --- a/node_modules/promise/lib/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = require('./core.js'); -require('./done.js'); -require('./finally.js'); -require('./es6-extensions.js'); -require('./node-extensions.js'); -require('./synchronous.js'); diff --git a/node_modules/promise/lib/node-extensions.js b/node_modules/promise/lib/node-extensions.js deleted file mode 100644 index 890ae45..0000000 --- a/node_modules/promise/lib/node-extensions.js +++ /dev/null @@ -1,130 +0,0 @@ -'use strict'; - -// This file contains then/promise specific extensions that are only useful -// for node.js interop - -var Promise = require('./core.js'); -var asap = require('asap'); - -module.exports = Promise; - -/* Static Functions */ - -Promise.denodeify = function (fn, argumentCount) { - if ( - typeof argumentCount === 'number' && argumentCount !== Infinity - ) { - return denodeifyWithCount(fn, argumentCount); - } else { - return denodeifyWithoutCount(fn); - } -} - -var callbackFn = ( - 'function (err, res) {' + - 'if (err) { rj(err); } else { rs(res); }' + - '}' -); -function denodeifyWithCount(fn, argumentCount) { - var args = []; - for (var i = 0; i < argumentCount; i++) { - args.push('a' + i); - } - var body = [ - 'return function (' + args.join(',') + ') {', - 'var self = this;', - 'return new Promise(function (rs, rj) {', - 'var res = fn.call(', - ['self'].concat(args).concat([callbackFn]).join(','), - ');', - 'if (res &&', - '(typeof res === "object" || typeof res === "function") &&', - 'typeof res.then === "function"', - ') {rs(res);}', - '});', - '};' - ].join(''); - return Function(['Promise', 'fn'], body)(Promise, fn); -} -function denodeifyWithoutCount(fn) { - var fnLength = Math.max(fn.length - 1, 3); - var args = []; - for (var i = 0; i < fnLength; i++) { - args.push('a' + i); - } - var body = [ - 'return function (' + args.join(',') + ') {', - 'var self = this;', - 'var args;', - 'var argLength = arguments.length;', - 'if (arguments.length > ' + fnLength + ') {', - 'args = new Array(arguments.length + 1);', - 'for (var i = 0; i < arguments.length; i++) {', - 'args[i] = arguments[i];', - '}', - '}', - 'return new Promise(function (rs, rj) {', - 'var cb = ' + callbackFn + ';', - 'var res;', - 'switch (argLength) {', - args.concat(['extra']).map(function (_, index) { - return ( - 'case ' + (index) + ':' + - 'res = fn.call(' + ['self'].concat(args.slice(0, index)).concat('cb').join(',') + ');' + - 'break;' - ); - }).join(''), - 'default:', - 'args[argLength] = cb;', - 'res = fn.apply(self, args);', - '}', - - 'if (res &&', - '(typeof res === "object" || typeof res === "function") &&', - 'typeof res.then === "function"', - ') {rs(res);}', - '});', - '};' - ].join(''); - - return Function( - ['Promise', 'fn'], - body - )(Promise, fn); -} - -Promise.nodeify = function (fn) { - return function () { - var args = Array.prototype.slice.call(arguments); - var callback = - typeof args[args.length - 1] === 'function' ? args.pop() : null; - var ctx = this; - try { - return fn.apply(this, arguments).nodeify(callback, ctx); - } catch (ex) { - if (callback === null || typeof callback == 'undefined') { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } else { - asap(function () { - callback.call(ctx, ex); - }) - } - } - } -} - -Promise.prototype.nodeify = function (callback, ctx) { - if (typeof callback != 'function') return this; - - this.then(function (value) { - asap(function () { - callback.call(ctx, null, value); - }); - }, function (err) { - asap(function () { - callback.call(ctx, err); - }); - }); -} diff --git a/node_modules/promise/lib/rejection-tracking.js b/node_modules/promise/lib/rejection-tracking.js deleted file mode 100644 index 088a0de..0000000 --- a/node_modules/promise/lib/rejection-tracking.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -var Promise = require('./core'); - -var DEFAULT_WHITELIST = [ - ReferenceError, - TypeError, - RangeError -]; - -var enabled = false; -exports.disable = disable; -function disable() { - enabled = false; - Promise._10 = null; - Promise._97 = null; -} - -exports.enable = enable; -function enable(options) { - options = options || {}; - if (enabled) disable(); - enabled = true; - var id = 0; - var displayId = 0; - var rejections = {}; - Promise._10 = function (promise) { - if ( - promise._81 === 2 && // IS REJECTED - rejections[promise._72] - ) { - if (rejections[promise._72].logged) { - onHandled(promise._72); - } else { - clearTimeout(rejections[promise._72].timeout); - } - delete rejections[promise._72]; - } - }; - Promise._97 = function (promise, err) { - if (promise._45 === 0) { // not yet handled - promise._72 = id++; - rejections[promise._72] = { - displayId: null, - error: err, - timeout: setTimeout( - onUnhandled.bind(null, promise._72), - // For reference errors and type errors, this almost always - // means the programmer made a mistake, so log them after just - // 100ms - // otherwise, wait 2 seconds to see if they get handled - matchWhitelist(err, DEFAULT_WHITELIST) - ? 100 - : 2000 - ), - logged: false - }; - } - }; - function onUnhandled(id) { - if ( - options.allRejections || - matchWhitelist( - rejections[id].error, - options.whitelist || DEFAULT_WHITELIST - ) - ) { - rejections[id].displayId = displayId++; - if (options.onUnhandled) { - rejections[id].logged = true; - options.onUnhandled( - rejections[id].displayId, - rejections[id].error - ); - } else { - rejections[id].logged = true; - logError( - rejections[id].displayId, - rejections[id].error - ); - } - } - } - function onHandled(id) { - if (rejections[id].logged) { - if (options.onHandled) { - options.onHandled(rejections[id].displayId, rejections[id].error); - } else if (!rejections[id].onUnhandled) { - console.warn( - 'Promise Rejection Handled (id: ' + rejections[id].displayId + '):' - ); - console.warn( - ' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + - rejections[id].displayId + '.' - ); - } - } - } -} - -function logError(id, error) { - console.warn('Possible Unhandled Promise Rejection (id: ' + id + '):'); - var errStr = (error && (error.stack || error)) + ''; - errStr.split('\n').forEach(function (line) { - console.warn(' ' + line); - }); -} - -function matchWhitelist(error, list) { - return list.some(function (cls) { - return error instanceof cls; - }); -} \ No newline at end of file diff --git a/node_modules/promise/lib/synchronous.js b/node_modules/promise/lib/synchronous.js deleted file mode 100644 index 2f97451..0000000 --- a/node_modules/promise/lib/synchronous.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.enableSynchronous = function () { - Promise.prototype.isPending = function() { - return this.getState() == 0; - }; - - Promise.prototype.isFulfilled = function() { - return this.getState() == 1; - }; - - Promise.prototype.isRejected = function() { - return this.getState() == 2; - }; - - Promise.prototype.getValue = function () { - if (this._81 === 3) { - return this._65.getValue(); - } - - if (!this.isFulfilled()) { - throw new Error('Cannot get a value of an unfulfilled promise.'); - } - - return this._65; - }; - - Promise.prototype.getReason = function () { - if (this._81 === 3) { - return this._65.getReason(); - } - - if (!this.isRejected()) { - throw new Error('Cannot get a rejection reason of a non-rejected promise.'); - } - - return this._65; - }; - - Promise.prototype.getState = function () { - if (this._81 === 3) { - return this._65.getState(); - } - if (this._81 === -1 || this._81 === -2) { - return 0; - } - - return this._81; - }; -}; - -Promise.disableSynchronous = function() { - Promise.prototype.isPending = undefined; - Promise.prototype.isFulfilled = undefined; - Promise.prototype.isRejected = undefined; - Promise.prototype.getValue = undefined; - Promise.prototype.getReason = undefined; - Promise.prototype.getState = undefined; -}; diff --git a/node_modules/promise/package.json b/node_modules/promise/package.json deleted file mode 100644 index 4bbd4e2..0000000 --- a/node_modules/promise/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "promise@^7.1.1", - "scope": null, - "escapedName": "promise", - "name": "promise", - "rawSpec": "^7.1.1", - "spec": ">=7.1.1 <8.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/less" - ] - ], - "_from": "promise@>=7.1.1 <8.0.0", - "_id": "promise@7.1.1", - "_inCache": true, - "_location": "/promise", - "_nodeVersion": "1.6.2", - "_npmUser": { - "name": "forbeslindesay", - "email": "forbes@lindesay.co.uk" - }, - "_npmVersion": "2.7.1", - "_phantomChildren": {}, - "_requested": { - "raw": "promise@^7.1.1", - "scope": null, - "escapedName": "promise", - "name": "promise", - "rawSpec": "^7.1.1", - "spec": ">=7.1.1 <8.0.0", - "type": "range" - }, - "_requiredBy": [ - "/less" - ], - "_resolved": "https://registry.npmjs.org/promise/-/promise-7.1.1.tgz", - "_shasum": "489654c692616b8aa55b0724fa809bb7db49c5bf", - "_shrinkwrap": null, - "_spec": "promise@^7.1.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/less", - "author": { - "name": "ForbesLindesay" - }, - "bugs": { - "url": "https://github.com/then/promise/issues" - }, - "dependencies": { - "asap": "~2.0.3" - }, - "description": "Bare bones Promises/A+ implementation", - "devDependencies": { - "acorn": "^1.0.1", - "better-assert": "*", - "istanbul": "^0.3.13", - "mocha": "*", - "promises-aplus-tests": "*", - "rimraf": "^2.3.2" - }, - "directories": {}, - "dist": { - "shasum": "489654c692616b8aa55b0724fa809bb7db49c5bf", - "tarball": "https://registry.npmjs.org/promise/-/promise-7.1.1.tgz" - }, - "gitHead": "90757a38c86975f36893012581b72315b352d482", - "homepage": "https://github.com/then/promise", - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "forbeslindesay", - "email": "forbes@lindesay.co.uk" - }, - { - "name": "nathan7", - "email": "nathan@nathan7.eu" - } - ], - "name": "promise", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/then/promise.git" - }, - "scripts": { - "coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --bail --timeout 200 --slow 99999 -R dot", - "prepublish": "node build", - "pretest": "node build", - "pretest-extensions": "node build", - "pretest-memory-leak": "node build", - "pretest-resolve": "node build", - "test": "mocha --bail --timeout 200 --slow 99999 -R dot && npm run test-memory-leak", - "test-extensions": "mocha test/extensions-tests.js --timeout 200 --slow 999999", - "test-memory-leak": "node --expose-gc test/memory-leak.js", - "test-resolve": "mocha test/resolver-tests.js --timeout 200 --slow 999999" - }, - "version": "7.1.1" -} diff --git a/node_modules/promise/polyfill-done.js b/node_modules/promise/polyfill-done.js deleted file mode 100644 index e50b4c0..0000000 --- a/node_modules/promise/polyfill-done.js +++ /dev/null @@ -1,12 +0,0 @@ -// should work in any browser without browserify - -if (typeof Promise.prototype.done !== 'function') { - Promise.prototype.done = function (onFulfilled, onRejected) { - var self = arguments.length ? this.then.apply(this, arguments) : this - self.then(null, function (err) { - setTimeout(function () { - throw err - }, 0) - }) - } -} \ No newline at end of file diff --git a/node_modules/promise/polyfill.js b/node_modules/promise/polyfill.js deleted file mode 100644 index db099f8..0000000 --- a/node_modules/promise/polyfill.js +++ /dev/null @@ -1,10 +0,0 @@ -// not "use strict" so we can declare global "Promise" - -var asap = require('asap'); - -if (typeof Promise === 'undefined') { - Promise = require('./lib/core.js') - require('./lib/es6-extensions.js') -} - -require('./polyfill-done.js'); diff --git a/node_modules/promise/setimmediate/core.js b/node_modules/promise/setimmediate/core.js deleted file mode 100644 index 46c6a2c..0000000 --- a/node_modules/promise/setimmediate/core.js +++ /dev/null @@ -1,213 +0,0 @@ -'use strict'; - - - -function noop() {} - -// States: -// -// 0 - pending -// 1 - fulfilled with _value -// 2 - rejected with _value -// 3 - adopted the state of another promise, _value -// -// once the state is no longer pending (0) it is immutable - -// All `_` prefixed properties will be reduced to `_{random number}` -// at build time to obfuscate them and discourage their use. -// We don't use symbols or Object.defineProperty to fully hide them -// because the performance isn't good enough. - - -// to avoid using try/catch inside critical functions, we -// extract them to here. -var LAST_ERROR = null; -var IS_ERROR = {}; -function getThen(obj) { - try { - return obj.then; - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} - -function tryCallOne(fn, a) { - try { - return fn(a); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} -function tryCallTwo(fn, a, b) { - try { - fn(a, b); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} - -module.exports = Promise; - -function Promise(fn) { - if (typeof this !== 'object') { - throw new TypeError('Promises must be constructed via new'); - } - if (typeof fn !== 'function') { - throw new TypeError('not a function'); - } - this._45 = 0; - this._81 = 0; - this._65 = null; - this._54 = null; - if (fn === noop) return; - doResolve(fn, this); -} -Promise._10 = null; -Promise._97 = null; -Promise._61 = noop; - -Promise.prototype.then = function(onFulfilled, onRejected) { - if (this.constructor !== Promise) { - return safeThen(this, onFulfilled, onRejected); - } - var res = new Promise(noop); - handle(this, new Handler(onFulfilled, onRejected, res)); - return res; -}; - -function safeThen(self, onFulfilled, onRejected) { - return new self.constructor(function (resolve, reject) { - var res = new Promise(noop); - res.then(resolve, reject); - handle(self, new Handler(onFulfilled, onRejected, res)); - }); -}; -function handle(self, deferred) { - while (self._81 === 3) { - self = self._65; - } - if (Promise._10) { - Promise._10(self); - } - if (self._81 === 0) { - if (self._45 === 0) { - self._45 = 1; - self._54 = deferred; - return; - } - if (self._45 === 1) { - self._45 = 2; - self._54 = [self._54, deferred]; - return; - } - self._54.push(deferred); - return; - } - handleResolved(self, deferred); -} - -function handleResolved(self, deferred) { - setImmediate(function() { - var cb = self._81 === 1 ? deferred.onFulfilled : deferred.onRejected; - if (cb === null) { - if (self._81 === 1) { - resolve(deferred.promise, self._65); - } else { - reject(deferred.promise, self._65); - } - return; - } - var ret = tryCallOne(cb, self._65); - if (ret === IS_ERROR) { - reject(deferred.promise, LAST_ERROR); - } else { - resolve(deferred.promise, ret); - } - }); -} -function resolve(self, newValue) { - // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure - if (newValue === self) { - return reject( - self, - new TypeError('A promise cannot be resolved with itself.') - ); - } - if ( - newValue && - (typeof newValue === 'object' || typeof newValue === 'function') - ) { - var then = getThen(newValue); - if (then === IS_ERROR) { - return reject(self, LAST_ERROR); - } - if ( - then === self.then && - newValue instanceof Promise - ) { - self._81 = 3; - self._65 = newValue; - finale(self); - return; - } else if (typeof then === 'function') { - doResolve(then.bind(newValue), self); - return; - } - } - self._81 = 1; - self._65 = newValue; - finale(self); -} - -function reject(self, newValue) { - self._81 = 2; - self._65 = newValue; - if (Promise._97) { - Promise._97(self, newValue); - } - finale(self); -} -function finale(self) { - if (self._45 === 1) { - handle(self, self._54); - self._54 = null; - } - if (self._45 === 2) { - for (var i = 0; i < self._54.length; i++) { - handle(self, self._54[i]); - } - self._54 = null; - } -} - -function Handler(onFulfilled, onRejected, promise){ - this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; - this.onRejected = typeof onRejected === 'function' ? onRejected : null; - this.promise = promise; -} - -/** - * Take a potentially misbehaving resolver function and make sure - * onFulfilled and onRejected are only called once. - * - * Makes no guarantees about asynchrony. - */ -function doResolve(fn, promise) { - var done = false; - var res = tryCallTwo(fn, function (value) { - if (done) return; - done = true; - resolve(promise, value); - }, function (reason) { - if (done) return; - done = true; - reject(promise, reason); - }) - if (!done && res === IS_ERROR) { - done = true; - reject(promise, LAST_ERROR); - } -} diff --git a/node_modules/promise/setimmediate/done.js b/node_modules/promise/setimmediate/done.js deleted file mode 100644 index f879317..0000000 --- a/node_modules/promise/setimmediate/done.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.prototype.done = function (onFulfilled, onRejected) { - var self = arguments.length ? this.then.apply(this, arguments) : this; - self.then(null, function (err) { - setTimeout(function () { - throw err; - }, 0); - }); -}; diff --git a/node_modules/promise/setimmediate/es6-extensions.js b/node_modules/promise/setimmediate/es6-extensions.js deleted file mode 100644 index 1ab6eae..0000000 --- a/node_modules/promise/setimmediate/es6-extensions.js +++ /dev/null @@ -1,107 +0,0 @@ -'use strict'; - -//This file contains the ES6 extensions to the core Promises/A+ API - -var Promise = require('./core.js'); - -module.exports = Promise; - -/* Static Functions */ - -var TRUE = valuePromise(true); -var FALSE = valuePromise(false); -var NULL = valuePromise(null); -var UNDEFINED = valuePromise(undefined); -var ZERO = valuePromise(0); -var EMPTYSTRING = valuePromise(''); - -function valuePromise(value) { - var p = new Promise(Promise._61); - p._81 = 1; - p._65 = value; - return p; -} -Promise.resolve = function (value) { - if (value instanceof Promise) return value; - - if (value === null) return NULL; - if (value === undefined) return UNDEFINED; - if (value === true) return TRUE; - if (value === false) return FALSE; - if (value === 0) return ZERO; - if (value === '') return EMPTYSTRING; - - if (typeof value === 'object' || typeof value === 'function') { - try { - var then = value.then; - if (typeof then === 'function') { - return new Promise(then.bind(value)); - } - } catch (ex) { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } - } - return valuePromise(value); -}; - -Promise.all = function (arr) { - var args = Array.prototype.slice.call(arr); - - return new Promise(function (resolve, reject) { - if (args.length === 0) return resolve([]); - var remaining = args.length; - function res(i, val) { - if (val && (typeof val === 'object' || typeof val === 'function')) { - if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._81 === 3) { - val = val._65; - } - if (val._81 === 1) return res(i, val._65); - if (val._81 === 2) reject(val._65); - val.then(function (val) { - res(i, val); - }, reject); - return; - } else { - var then = val.then; - if (typeof then === 'function') { - var p = new Promise(then.bind(val)); - p.then(function (val) { - res(i, val); - }, reject); - return; - } - } - } - args[i] = val; - if (--remaining === 0) { - resolve(args); - } - } - for (var i = 0; i < args.length; i++) { - res(i, args[i]); - } - }); -}; - -Promise.reject = function (value) { - return new Promise(function (resolve, reject) { - reject(value); - }); -}; - -Promise.race = function (values) { - return new Promise(function (resolve, reject) { - values.forEach(function(value){ - Promise.resolve(value).then(resolve, reject); - }); - }); -}; - -/* Prototype Methods */ - -Promise.prototype['catch'] = function (onRejected) { - return this.then(null, onRejected); -}; diff --git a/node_modules/promise/setimmediate/finally.js b/node_modules/promise/setimmediate/finally.js deleted file mode 100644 index f5ee0b9..0000000 --- a/node_modules/promise/setimmediate/finally.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.prototype['finally'] = function (f) { - return this.then(function (value) { - return Promise.resolve(f()).then(function () { - return value; - }); - }, function (err) { - return Promise.resolve(f()).then(function () { - throw err; - }); - }); -}; diff --git a/node_modules/promise/setimmediate/index.js b/node_modules/promise/setimmediate/index.js deleted file mode 100644 index 6e674f3..0000000 --- a/node_modules/promise/setimmediate/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = require('./core.js'); -require('./done.js'); -require('./finally.js'); -require('./es6-extensions.js'); -require('./node-extensions.js'); -require('./synchronous.js'); diff --git a/node_modules/promise/setimmediate/node-extensions.js b/node_modules/promise/setimmediate/node-extensions.js deleted file mode 100644 index 14a0302..0000000 --- a/node_modules/promise/setimmediate/node-extensions.js +++ /dev/null @@ -1,130 +0,0 @@ -'use strict'; - -// This file contains then/promise specific extensions that are only useful -// for node.js interop - -var Promise = require('./core.js'); - - -module.exports = Promise; - -/* Static Functions */ - -Promise.denodeify = function (fn, argumentCount) { - if ( - typeof argumentCount === 'number' && argumentCount !== Infinity - ) { - return denodeifyWithCount(fn, argumentCount); - } else { - return denodeifyWithoutCount(fn); - } -} - -var callbackFn = ( - 'function (err, res) {' + - 'if (err) { rj(err); } else { rs(res); }' + - '}' -); -function denodeifyWithCount(fn, argumentCount) { - var args = []; - for (var i = 0; i < argumentCount; i++) { - args.push('a' + i); - } - var body = [ - 'return function (' + args.join(',') + ') {', - 'var self = this;', - 'return new Promise(function (rs, rj) {', - 'var res = fn.call(', - ['self'].concat(args).concat([callbackFn]).join(','), - ');', - 'if (res &&', - '(typeof res === "object" || typeof res === "function") &&', - 'typeof res.then === "function"', - ') {rs(res);}', - '});', - '};' - ].join(''); - return Function(['Promise', 'fn'], body)(Promise, fn); -} -function denodeifyWithoutCount(fn) { - var fnLength = Math.max(fn.length - 1, 3); - var args = []; - for (var i = 0; i < fnLength; i++) { - args.push('a' + i); - } - var body = [ - 'return function (' + args.join(',') + ') {', - 'var self = this;', - 'var args;', - 'var argLength = arguments.length;', - 'if (arguments.length > ' + fnLength + ') {', - 'args = new Array(arguments.length + 1);', - 'for (var i = 0; i < arguments.length; i++) {', - 'args[i] = arguments[i];', - '}', - '}', - 'return new Promise(function (rs, rj) {', - 'var cb = ' + callbackFn + ';', - 'var res;', - 'switch (argLength) {', - args.concat(['extra']).map(function (_, index) { - return ( - 'case ' + (index) + ':' + - 'res = fn.call(' + ['self'].concat(args.slice(0, index)).concat('cb').join(',') + ');' + - 'break;' - ); - }).join(''), - 'default:', - 'args[argLength] = cb;', - 'res = fn.apply(self, args);', - '}', - - 'if (res &&', - '(typeof res === "object" || typeof res === "function") &&', - 'typeof res.then === "function"', - ') {rs(res);}', - '});', - '};' - ].join(''); - - return Function( - ['Promise', 'fn'], - body - )(Promise, fn); -} - -Promise.nodeify = function (fn) { - return function () { - var args = Array.prototype.slice.call(arguments); - var callback = - typeof args[args.length - 1] === 'function' ? args.pop() : null; - var ctx = this; - try { - return fn.apply(this, arguments).nodeify(callback, ctx); - } catch (ex) { - if (callback === null || typeof callback == 'undefined') { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } else { - setImmediate(function () { - callback.call(ctx, ex); - }) - } - } - } -} - -Promise.prototype.nodeify = function (callback, ctx) { - if (typeof callback != 'function') return this; - - this.then(function (value) { - setImmediate(function () { - callback.call(ctx, null, value); - }); - }, function (err) { - setImmediate(function () { - callback.call(ctx, err); - }); - }); -} diff --git a/node_modules/promise/setimmediate/rejection-tracking.js b/node_modules/promise/setimmediate/rejection-tracking.js deleted file mode 100644 index 088a0de..0000000 --- a/node_modules/promise/setimmediate/rejection-tracking.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -var Promise = require('./core'); - -var DEFAULT_WHITELIST = [ - ReferenceError, - TypeError, - RangeError -]; - -var enabled = false; -exports.disable = disable; -function disable() { - enabled = false; - Promise._10 = null; - Promise._97 = null; -} - -exports.enable = enable; -function enable(options) { - options = options || {}; - if (enabled) disable(); - enabled = true; - var id = 0; - var displayId = 0; - var rejections = {}; - Promise._10 = function (promise) { - if ( - promise._81 === 2 && // IS REJECTED - rejections[promise._72] - ) { - if (rejections[promise._72].logged) { - onHandled(promise._72); - } else { - clearTimeout(rejections[promise._72].timeout); - } - delete rejections[promise._72]; - } - }; - Promise._97 = function (promise, err) { - if (promise._45 === 0) { // not yet handled - promise._72 = id++; - rejections[promise._72] = { - displayId: null, - error: err, - timeout: setTimeout( - onUnhandled.bind(null, promise._72), - // For reference errors and type errors, this almost always - // means the programmer made a mistake, so log them after just - // 100ms - // otherwise, wait 2 seconds to see if they get handled - matchWhitelist(err, DEFAULT_WHITELIST) - ? 100 - : 2000 - ), - logged: false - }; - } - }; - function onUnhandled(id) { - if ( - options.allRejections || - matchWhitelist( - rejections[id].error, - options.whitelist || DEFAULT_WHITELIST - ) - ) { - rejections[id].displayId = displayId++; - if (options.onUnhandled) { - rejections[id].logged = true; - options.onUnhandled( - rejections[id].displayId, - rejections[id].error - ); - } else { - rejections[id].logged = true; - logError( - rejections[id].displayId, - rejections[id].error - ); - } - } - } - function onHandled(id) { - if (rejections[id].logged) { - if (options.onHandled) { - options.onHandled(rejections[id].displayId, rejections[id].error); - } else if (!rejections[id].onUnhandled) { - console.warn( - 'Promise Rejection Handled (id: ' + rejections[id].displayId + '):' - ); - console.warn( - ' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + - rejections[id].displayId + '.' - ); - } - } - } -} - -function logError(id, error) { - console.warn('Possible Unhandled Promise Rejection (id: ' + id + '):'); - var errStr = (error && (error.stack || error)) + ''; - errStr.split('\n').forEach(function (line) { - console.warn(' ' + line); - }); -} - -function matchWhitelist(error, list) { - return list.some(function (cls) { - return error instanceof cls; - }); -} \ No newline at end of file diff --git a/node_modules/promise/setimmediate/synchronous.js b/node_modules/promise/setimmediate/synchronous.js deleted file mode 100644 index 2f97451..0000000 --- a/node_modules/promise/setimmediate/synchronous.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.enableSynchronous = function () { - Promise.prototype.isPending = function() { - return this.getState() == 0; - }; - - Promise.prototype.isFulfilled = function() { - return this.getState() == 1; - }; - - Promise.prototype.isRejected = function() { - return this.getState() == 2; - }; - - Promise.prototype.getValue = function () { - if (this._81 === 3) { - return this._65.getValue(); - } - - if (!this.isFulfilled()) { - throw new Error('Cannot get a value of an unfulfilled promise.'); - } - - return this._65; - }; - - Promise.prototype.getReason = function () { - if (this._81 === 3) { - return this._65.getReason(); - } - - if (!this.isRejected()) { - throw new Error('Cannot get a rejection reason of a non-rejected promise.'); - } - - return this._65; - }; - - Promise.prototype.getState = function () { - if (this._81 === 3) { - return this._65.getState(); - } - if (this._81 === -1 || this._81 === -2) { - return 0; - } - - return this._81; - }; -}; - -Promise.disableSynchronous = function() { - Promise.prototype.isPending = undefined; - Promise.prototype.isFulfilled = undefined; - Promise.prototype.isRejected = undefined; - Promise.prototype.getValue = undefined; - Promise.prototype.getReason = undefined; - Promise.prototype.getState = undefined; -}; diff --git a/node_modules/promise/src/core.js b/node_modules/promise/src/core.js deleted file mode 100644 index 7513f27..0000000 --- a/node_modules/promise/src/core.js +++ /dev/null @@ -1,213 +0,0 @@ -'use strict'; - -var asap = require('asap/raw'); - -function noop() {} - -// States: -// -// 0 - pending -// 1 - fulfilled with _value -// 2 - rejected with _value -// 3 - adopted the state of another promise, _value -// -// once the state is no longer pending (0) it is immutable - -// All `_` prefixed properties will be reduced to `_{random number}` -// at build time to obfuscate them and discourage their use. -// We don't use symbols or Object.defineProperty to fully hide them -// because the performance isn't good enough. - - -// to avoid using try/catch inside critical functions, we -// extract them to here. -var LAST_ERROR = null; -var IS_ERROR = {}; -function getThen(obj) { - try { - return obj.then; - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} - -function tryCallOne(fn, a) { - try { - return fn(a); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} -function tryCallTwo(fn, a, b) { - try { - fn(a, b); - } catch (ex) { - LAST_ERROR = ex; - return IS_ERROR; - } -} - -module.exports = Promise; - -function Promise(fn) { - if (typeof this !== 'object') { - throw new TypeError('Promises must be constructed via new'); - } - if (typeof fn !== 'function') { - throw new TypeError('not a function'); - } - this._deferredState = 0; - this._state = 0; - this._value = null; - this._deferreds = null; - if (fn === noop) return; - doResolve(fn, this); -} -Promise._onHandle = null; -Promise._onReject = null; -Promise._noop = noop; - -Promise.prototype.then = function(onFulfilled, onRejected) { - if (this.constructor !== Promise) { - return safeThen(this, onFulfilled, onRejected); - } - var res = new Promise(noop); - handle(this, new Handler(onFulfilled, onRejected, res)); - return res; -}; - -function safeThen(self, onFulfilled, onRejected) { - return new self.constructor(function (resolve, reject) { - var res = new Promise(noop); - res.then(resolve, reject); - handle(self, new Handler(onFulfilled, onRejected, res)); - }); -}; -function handle(self, deferred) { - while (self._state === 3) { - self = self._value; - } - if (Promise._onHandle) { - Promise._onHandle(self); - } - if (self._state === 0) { - if (self._deferredState === 0) { - self._deferredState = 1; - self._deferreds = deferred; - return; - } - if (self._deferredState === 1) { - self._deferredState = 2; - self._deferreds = [self._deferreds, deferred]; - return; - } - self._deferreds.push(deferred); - return; - } - handleResolved(self, deferred); -} - -function handleResolved(self, deferred) { - asap(function() { - var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected; - if (cb === null) { - if (self._state === 1) { - resolve(deferred.promise, self._value); - } else { - reject(deferred.promise, self._value); - } - return; - } - var ret = tryCallOne(cb, self._value); - if (ret === IS_ERROR) { - reject(deferred.promise, LAST_ERROR); - } else { - resolve(deferred.promise, ret); - } - }); -} -function resolve(self, newValue) { - // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure - if (newValue === self) { - return reject( - self, - new TypeError('A promise cannot be resolved with itself.') - ); - } - if ( - newValue && - (typeof newValue === 'object' || typeof newValue === 'function') - ) { - var then = getThen(newValue); - if (then === IS_ERROR) { - return reject(self, LAST_ERROR); - } - if ( - then === self.then && - newValue instanceof Promise - ) { - self._state = 3; - self._value = newValue; - finale(self); - return; - } else if (typeof then === 'function') { - doResolve(then.bind(newValue), self); - return; - } - } - self._state = 1; - self._value = newValue; - finale(self); -} - -function reject(self, newValue) { - self._state = 2; - self._value = newValue; - if (Promise._onReject) { - Promise._onReject(self, newValue); - } - finale(self); -} -function finale(self) { - if (self._deferredState === 1) { - handle(self, self._deferreds); - self._deferreds = null; - } - if (self._deferredState === 2) { - for (var i = 0; i < self._deferreds.length; i++) { - handle(self, self._deferreds[i]); - } - self._deferreds = null; - } -} - -function Handler(onFulfilled, onRejected, promise){ - this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; - this.onRejected = typeof onRejected === 'function' ? onRejected : null; - this.promise = promise; -} - -/** - * Take a potentially misbehaving resolver function and make sure - * onFulfilled and onRejected are only called once. - * - * Makes no guarantees about asynchrony. - */ -function doResolve(fn, promise) { - var done = false; - var res = tryCallTwo(fn, function (value) { - if (done) return; - done = true; - resolve(promise, value); - }, function (reason) { - if (done) return; - done = true; - reject(promise, reason); - }) - if (!done && res === IS_ERROR) { - done = true; - reject(promise, LAST_ERROR); - } -} diff --git a/node_modules/promise/src/done.js b/node_modules/promise/src/done.js deleted file mode 100644 index f879317..0000000 --- a/node_modules/promise/src/done.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.prototype.done = function (onFulfilled, onRejected) { - var self = arguments.length ? this.then.apply(this, arguments) : this; - self.then(null, function (err) { - setTimeout(function () { - throw err; - }, 0); - }); -}; diff --git a/node_modules/promise/src/es6-extensions.js b/node_modules/promise/src/es6-extensions.js deleted file mode 100644 index 0435813..0000000 --- a/node_modules/promise/src/es6-extensions.js +++ /dev/null @@ -1,107 +0,0 @@ -'use strict'; - -//This file contains the ES6 extensions to the core Promises/A+ API - -var Promise = require('./core.js'); - -module.exports = Promise; - -/* Static Functions */ - -var TRUE = valuePromise(true); -var FALSE = valuePromise(false); -var NULL = valuePromise(null); -var UNDEFINED = valuePromise(undefined); -var ZERO = valuePromise(0); -var EMPTYSTRING = valuePromise(''); - -function valuePromise(value) { - var p = new Promise(Promise._noop); - p._state = 1; - p._value = value; - return p; -} -Promise.resolve = function (value) { - if (value instanceof Promise) return value; - - if (value === null) return NULL; - if (value === undefined) return UNDEFINED; - if (value === true) return TRUE; - if (value === false) return FALSE; - if (value === 0) return ZERO; - if (value === '') return EMPTYSTRING; - - if (typeof value === 'object' || typeof value === 'function') { - try { - var then = value.then; - if (typeof then === 'function') { - return new Promise(then.bind(value)); - } - } catch (ex) { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } - } - return valuePromise(value); -}; - -Promise.all = function (arr) { - var args = Array.prototype.slice.call(arr); - - return new Promise(function (resolve, reject) { - if (args.length === 0) return resolve([]); - var remaining = args.length; - function res(i, val) { - if (val && (typeof val === 'object' || typeof val === 'function')) { - if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._state === 3) { - val = val._value; - } - if (val._state === 1) return res(i, val._value); - if (val._state === 2) reject(val._value); - val.then(function (val) { - res(i, val); - }, reject); - return; - } else { - var then = val.then; - if (typeof then === 'function') { - var p = new Promise(then.bind(val)); - p.then(function (val) { - res(i, val); - }, reject); - return; - } - } - } - args[i] = val; - if (--remaining === 0) { - resolve(args); - } - } - for (var i = 0; i < args.length; i++) { - res(i, args[i]); - } - }); -}; - -Promise.reject = function (value) { - return new Promise(function (resolve, reject) { - reject(value); - }); -}; - -Promise.race = function (values) { - return new Promise(function (resolve, reject) { - values.forEach(function(value){ - Promise.resolve(value).then(resolve, reject); - }); - }); -}; - -/* Prototype Methods */ - -Promise.prototype['catch'] = function (onRejected) { - return this.then(null, onRejected); -}; diff --git a/node_modules/promise/src/finally.js b/node_modules/promise/src/finally.js deleted file mode 100644 index f5ee0b9..0000000 --- a/node_modules/promise/src/finally.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.prototype['finally'] = function (f) { - return this.then(function (value) { - return Promise.resolve(f()).then(function () { - return value; - }); - }, function (err) { - return Promise.resolve(f()).then(function () { - throw err; - }); - }); -}; diff --git a/node_modules/promise/src/index.js b/node_modules/promise/src/index.js deleted file mode 100644 index 6e674f3..0000000 --- a/node_modules/promise/src/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = require('./core.js'); -require('./done.js'); -require('./finally.js'); -require('./es6-extensions.js'); -require('./node-extensions.js'); -require('./synchronous.js'); diff --git a/node_modules/promise/src/node-extensions.js b/node_modules/promise/src/node-extensions.js deleted file mode 100644 index 890ae45..0000000 --- a/node_modules/promise/src/node-extensions.js +++ /dev/null @@ -1,130 +0,0 @@ -'use strict'; - -// This file contains then/promise specific extensions that are only useful -// for node.js interop - -var Promise = require('./core.js'); -var asap = require('asap'); - -module.exports = Promise; - -/* Static Functions */ - -Promise.denodeify = function (fn, argumentCount) { - if ( - typeof argumentCount === 'number' && argumentCount !== Infinity - ) { - return denodeifyWithCount(fn, argumentCount); - } else { - return denodeifyWithoutCount(fn); - } -} - -var callbackFn = ( - 'function (err, res) {' + - 'if (err) { rj(err); } else { rs(res); }' + - '}' -); -function denodeifyWithCount(fn, argumentCount) { - var args = []; - for (var i = 0; i < argumentCount; i++) { - args.push('a' + i); - } - var body = [ - 'return function (' + args.join(',') + ') {', - 'var self = this;', - 'return new Promise(function (rs, rj) {', - 'var res = fn.call(', - ['self'].concat(args).concat([callbackFn]).join(','), - ');', - 'if (res &&', - '(typeof res === "object" || typeof res === "function") &&', - 'typeof res.then === "function"', - ') {rs(res);}', - '});', - '};' - ].join(''); - return Function(['Promise', 'fn'], body)(Promise, fn); -} -function denodeifyWithoutCount(fn) { - var fnLength = Math.max(fn.length - 1, 3); - var args = []; - for (var i = 0; i < fnLength; i++) { - args.push('a' + i); - } - var body = [ - 'return function (' + args.join(',') + ') {', - 'var self = this;', - 'var args;', - 'var argLength = arguments.length;', - 'if (arguments.length > ' + fnLength + ') {', - 'args = new Array(arguments.length + 1);', - 'for (var i = 0; i < arguments.length; i++) {', - 'args[i] = arguments[i];', - '}', - '}', - 'return new Promise(function (rs, rj) {', - 'var cb = ' + callbackFn + ';', - 'var res;', - 'switch (argLength) {', - args.concat(['extra']).map(function (_, index) { - return ( - 'case ' + (index) + ':' + - 'res = fn.call(' + ['self'].concat(args.slice(0, index)).concat('cb').join(',') + ');' + - 'break;' - ); - }).join(''), - 'default:', - 'args[argLength] = cb;', - 'res = fn.apply(self, args);', - '}', - - 'if (res &&', - '(typeof res === "object" || typeof res === "function") &&', - 'typeof res.then === "function"', - ') {rs(res);}', - '});', - '};' - ].join(''); - - return Function( - ['Promise', 'fn'], - body - )(Promise, fn); -} - -Promise.nodeify = function (fn) { - return function () { - var args = Array.prototype.slice.call(arguments); - var callback = - typeof args[args.length - 1] === 'function' ? args.pop() : null; - var ctx = this; - try { - return fn.apply(this, arguments).nodeify(callback, ctx); - } catch (ex) { - if (callback === null || typeof callback == 'undefined') { - return new Promise(function (resolve, reject) { - reject(ex); - }); - } else { - asap(function () { - callback.call(ctx, ex); - }) - } - } - } -} - -Promise.prototype.nodeify = function (callback, ctx) { - if (typeof callback != 'function') return this; - - this.then(function (value) { - asap(function () { - callback.call(ctx, null, value); - }); - }, function (err) { - asap(function () { - callback.call(ctx, err); - }); - }); -} diff --git a/node_modules/promise/src/rejection-tracking.js b/node_modules/promise/src/rejection-tracking.js deleted file mode 100644 index 33a59a1..0000000 --- a/node_modules/promise/src/rejection-tracking.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -var Promise = require('./core'); - -var DEFAULT_WHITELIST = [ - ReferenceError, - TypeError, - RangeError -]; - -var enabled = false; -exports.disable = disable; -function disable() { - enabled = false; - Promise._onHandle = null; - Promise._onReject = null; -} - -exports.enable = enable; -function enable(options) { - options = options || {}; - if (enabled) disable(); - enabled = true; - var id = 0; - var displayId = 0; - var rejections = {}; - Promise._onHandle = function (promise) { - if ( - promise._state === 2 && // IS REJECTED - rejections[promise._rejectionId] - ) { - if (rejections[promise._rejectionId].logged) { - onHandled(promise._rejectionId); - } else { - clearTimeout(rejections[promise._rejectionId].timeout); - } - delete rejections[promise._rejectionId]; - } - }; - Promise._onReject = function (promise, err) { - if (promise._deferredState === 0) { // not yet handled - promise._rejectionId = id++; - rejections[promise._rejectionId] = { - displayId: null, - error: err, - timeout: setTimeout( - onUnhandled.bind(null, promise._rejectionId), - // For reference errors and type errors, this almost always - // means the programmer made a mistake, so log them after just - // 100ms - // otherwise, wait 2 seconds to see if they get handled - matchWhitelist(err, DEFAULT_WHITELIST) - ? 100 - : 2000 - ), - logged: false - }; - } - }; - function onUnhandled(id) { - if ( - options.allRejections || - matchWhitelist( - rejections[id].error, - options.whitelist || DEFAULT_WHITELIST - ) - ) { - rejections[id].displayId = displayId++; - if (options.onUnhandled) { - rejections[id].logged = true; - options.onUnhandled( - rejections[id].displayId, - rejections[id].error - ); - } else { - rejections[id].logged = true; - logError( - rejections[id].displayId, - rejections[id].error - ); - } - } - } - function onHandled(id) { - if (rejections[id].logged) { - if (options.onHandled) { - options.onHandled(rejections[id].displayId, rejections[id].error); - } else if (!rejections[id].onUnhandled) { - console.warn( - 'Promise Rejection Handled (id: ' + rejections[id].displayId + '):' - ); - console.warn( - ' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' + - rejections[id].displayId + '.' - ); - } - } - } -} - -function logError(id, error) { - console.warn('Possible Unhandled Promise Rejection (id: ' + id + '):'); - var errStr = (error && (error.stack || error)) + ''; - errStr.split('\n').forEach(function (line) { - console.warn(' ' + line); - }); -} - -function matchWhitelist(error, list) { - return list.some(function (cls) { - return error instanceof cls; - }); -} \ No newline at end of file diff --git a/node_modules/promise/src/synchronous.js b/node_modules/promise/src/synchronous.js deleted file mode 100644 index 38b228f..0000000 --- a/node_modules/promise/src/synchronous.js +++ /dev/null @@ -1,62 +0,0 @@ -'use strict'; - -var Promise = require('./core.js'); - -module.exports = Promise; -Promise.enableSynchronous = function () { - Promise.prototype.isPending = function() { - return this.getState() == 0; - }; - - Promise.prototype.isFulfilled = function() { - return this.getState() == 1; - }; - - Promise.prototype.isRejected = function() { - return this.getState() == 2; - }; - - Promise.prototype.getValue = function () { - if (this._state === 3) { - return this._value.getValue(); - } - - if (!this.isFulfilled()) { - throw new Error('Cannot get a value of an unfulfilled promise.'); - } - - return this._value; - }; - - Promise.prototype.getReason = function () { - if (this._state === 3) { - return this._value.getReason(); - } - - if (!this.isRejected()) { - throw new Error('Cannot get a rejection reason of a non-rejected promise.'); - } - - return this._value; - }; - - Promise.prototype.getState = function () { - if (this._state === 3) { - return this._value.getState(); - } - if (this._state === -1 || this._state === -2) { - return 0; - } - - return this._state; - }; -}; - -Promise.disableSynchronous = function() { - Promise.prototype.isPending = undefined; - Promise.prototype.isFulfilled = undefined; - Promise.prototype.isRejected = undefined; - Promise.prototype.getValue = undefined; - Promise.prototype.getReason = undefined; - Promise.prototype.getState = undefined; -}; diff --git a/node_modules/proto-list/LICENSE b/node_modules/proto-list/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/proto-list/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/proto-list/README.md b/node_modules/proto-list/README.md deleted file mode 100644 index 43cfa35..0000000 --- a/node_modules/proto-list/README.md +++ /dev/null @@ -1,3 +0,0 @@ -A list of objects, bound by their prototype chain. - -Used in npm's config stuff. diff --git a/node_modules/proto-list/package.json b/node_modules/proto-list/package.json deleted file mode 100644 index e950f6e..0000000 --- a/node_modules/proto-list/package.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "proto-list@~1.2.1", - "scope": null, - "escapedName": "proto-list", - "name": "proto-list", - "rawSpec": "~1.2.1", - "spec": ">=1.2.1 <1.3.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/config-chain" - ] - ], - "_from": "proto-list@>=1.2.1 <1.3.0", - "_id": "proto-list@1.2.4", - "_inCache": true, - "_location": "/proto-list", - "_nodeVersion": "2.0.1", - "_npmUser": { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - "_npmVersion": "2.10.0", - "_phantomChildren": {}, - "_requested": { - "raw": "proto-list@~1.2.1", - "scope": null, - "escapedName": "proto-list", - "name": "proto-list", - "rawSpec": "~1.2.1", - "spec": ">=1.2.1 <1.3.0", - "type": "range" - }, - "_requiredBy": [ - "/config-chain" - ], - "_resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", - "_shasum": "212d5bfe1318306a420f6402b8e26ff39647a849", - "_shrinkwrap": null, - "_spec": "proto-list@~1.2.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/config-chain", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/proto-list/issues" - }, - "dependencies": {}, - "description": "A utility for managing a prototype chain", - "devDependencies": { - "tap": "0" - }, - "directories": {}, - "dist": { - "shasum": "212d5bfe1318306a420f6402b8e26ff39647a849", - "tarball": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz" - }, - "gitHead": "9e4af12d4dddee2fd531f0fe0c21c9cfacb78ac0", - "homepage": "https://github.com/isaacs/proto-list#readme", - "license": "ISC", - "main": "./proto-list.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "proto-list", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/proto-list.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "1.2.4" -} diff --git a/node_modules/proto-list/proto-list.js b/node_modules/proto-list/proto-list.js deleted file mode 100644 index b55c25c..0000000 --- a/node_modules/proto-list/proto-list.js +++ /dev/null @@ -1,88 +0,0 @@ - -module.exports = ProtoList - -function setProto(obj, proto) { - if (typeof Object.setPrototypeOf === "function") - return Object.setPrototypeOf(obj, proto) - else - obj.__proto__ = proto -} - -function ProtoList () { - this.list = [] - var root = null - Object.defineProperty(this, 'root', { - get: function () { return root }, - set: function (r) { - root = r - if (this.list.length) { - setProto(this.list[this.list.length - 1], r) - } - }, - enumerable: true, - configurable: true - }) -} - -ProtoList.prototype = - { get length () { return this.list.length } - , get keys () { - var k = [] - for (var i in this.list[0]) k.push(i) - return k - } - , get snapshot () { - var o = {} - this.keys.forEach(function (k) { o[k] = this.get(k) }, this) - return o - } - , get store () { - return this.list[0] - } - , push : function (obj) { - if (typeof obj !== "object") obj = {valueOf:obj} - if (this.list.length >= 1) { - setProto(this.list[this.list.length - 1], obj) - } - setProto(obj, this.root) - return this.list.push(obj) - } - , pop : function () { - if (this.list.length >= 2) { - setProto(this.list[this.list.length - 2], this.root) - } - return this.list.pop() - } - , unshift : function (obj) { - setProto(obj, this.list[0] || this.root) - return this.list.unshift(obj) - } - , shift : function () { - if (this.list.length === 1) { - setProto(this.list[0], this.root) - } - return this.list.shift() - } - , get : function (key) { - return this.list[0][key] - } - , set : function (key, val, save) { - if (!this.length) this.push({}) - if (save && this.list[0].hasOwnProperty(key)) this.push({}) - return this.list[0][key] = val - } - , forEach : function (fn, thisp) { - for (var key in this.list[0]) fn.call(thisp, key, this.list[0][key]) - } - , slice : function () { - return this.list.slice.apply(this.list, arguments) - } - , splice : function () { - // handle injections - var ret = this.list.splice.apply(this.list, arguments) - for (var i = 0, l = this.list.length; i < l; i++) { - setProto(this.list[i], this.list[i + 1] || this.root) - } - return ret - } - } diff --git a/node_modules/proto-list/test/basic.js b/node_modules/proto-list/test/basic.js deleted file mode 100644 index 5cd66be..0000000 --- a/node_modules/proto-list/test/basic.js +++ /dev/null @@ -1,61 +0,0 @@ -var tap = require("tap") - , test = tap.test - , ProtoList = require("../proto-list.js") - -tap.plan(1) - -tap.test("protoList tests", function (t) { - var p = new ProtoList - p.push({foo:"bar"}) - p.push({}) - p.set("foo", "baz") - t.equal(p.get("foo"), "baz") - - var p = new ProtoList - p.push({foo:"bar"}) - p.set("foo", "baz") - t.equal(p.get("foo"), "baz") - t.equal(p.length, 1) - p.pop() - t.equal(p.length, 0) - p.set("foo", "asdf") - t.equal(p.length, 1) - t.equal(p.get("foo"), "asdf") - p.push({bar:"baz"}) - t.equal(p.length, 2) - t.equal(p.get("foo"), "asdf") - p.shift() - t.equal(p.length, 1) - t.equal(p.get("foo"), undefined) - - - p.unshift({foo:"blo", bar:"rab"}) - p.unshift({foo:"boo"}) - t.equal(p.length, 3) - t.equal(p.get("foo"), "boo") - t.equal(p.get("bar"), "rab") - - var ret = p.splice(1, 1, {bar:"bar"}) - t.same(ret, [{foo:"blo", bar:"rab"}]) - t.equal(p.get("bar"), "bar") - - // should not inherit default object properties - t.equal(p.get('hasOwnProperty'), undefined) - - // unless we give it those. - p.root = {} - t.equal(p.get('hasOwnProperty'), {}.hasOwnProperty) - - p.root = {default:'monkey'} - t.equal(p.get('default'), 'monkey') - - p.push({red:'blue'}) - p.push({red:'blue'}) - p.push({red:'blue'}) - while (p.length) { - t.equal(p.get('default'), 'monkey') - p.shift() - } - - t.end() -}) diff --git a/node_modules/prr/.jshintrc b/node_modules/prr/.jshintrc deleted file mode 100644 index 6a7a956..0000000 --- a/node_modules/prr/.jshintrc +++ /dev/null @@ -1,61 +0,0 @@ -{ - "predef": [ ] - , "bitwise": false - , "camelcase": false - , "curly": false - , "eqeqeq": false - , "forin": false - , "immed": false - , "latedef": false - , "newcap": true - , "noarg": true - , "noempty": true - , "nonew": true - , "plusplus": false - , "quotmark": true - , "regexp": false - , "undef": true - , "unused": true - , "strict": false - , "trailing": true - , "maxlen": 120 - , "asi": true - , "boss": true - , "debug": true - , "eqnull": true - , "es5": true - , "esnext": true - , "evil": true - , "expr": true - , "funcscope": false - , "globalstrict": false - , "iterator": false - , "lastsemic": true - , "laxbreak": true - , "laxcomma": true - , "loopfunc": true - , "multistr": false - , "onecase": false - , "proto": false - , "regexdash": false - , "scripturl": true - , "smarttabs": false - , "shadow": false - , "sub": true - , "supernew": false - , "validthis": true - , "browser": true - , "couch": false - , "devel": false - , "dojo": false - , "mootools": false - , "node": true - , "nonstandard": true - , "prototypejs": false - , "rhino": false - , "worker": true - , "wsh": false - , "nomen": false - , "onevar": true - , "passfail": false -} \ No newline at end of file diff --git a/node_modules/prr/.npmignore b/node_modules/prr/.npmignore deleted file mode 100644 index b512c09..0000000 --- a/node_modules/prr/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules \ No newline at end of file diff --git a/node_modules/prr/.travis.yml b/node_modules/prr/.travis.yml deleted file mode 100644 index fe3f4eb..0000000 --- a/node_modules/prr/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: node_js -node_js: - - 0.8 - - "0.10" -branches: - only: - - master -notifications: - email: - - rod@vagg.org diff --git a/node_modules/prr/LICENSE b/node_modules/prr/LICENSE deleted file mode 100644 index f6a0029..0000000 --- a/node_modules/prr/LICENSE +++ /dev/null @@ -1,39 +0,0 @@ -Copyright 2013, Rod Vagg (the "Original Author") -All rights reserved. - -MIT +no-false-attribs 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. - -Distributions of all or part of the Software intended to be used -by the recipients as they would use the unmodified Software, -containing modifications that substantially alter, remove, or -disable functionality of the Software, outside of the documented -configuration mechanisms provided by the Software, shall be -modified such that the Original Author's bug reporting email -addresses and urls are either replaced with the contact information -of the parties responsible for the changes, or removed entirely. - -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. - - -Except where noted, this license applies to any and all software -programs and associated documentation files created by the -Original Author, when distributed with the Software. \ No newline at end of file diff --git a/node_modules/prr/README.md b/node_modules/prr/README.md deleted file mode 100644 index 3e709e3..0000000 --- a/node_modules/prr/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# prr [![Build Status](https://secure.travis-ci.org/rvagg/prr.png)](http://travis-ci.org/rvagg/prr) - -An sensible alternative to `Object.defineProperty()`. Available in npm and Ender as **prr**. - -## Usage - -Set the property `'foo'` (`obj.foo`) to have the value `'bar'` with default options (*enumerable, configurable and writable are all false*): - -```js -prr(obj, 'foo', 'bar') -``` - -Adjust the default options: - -```js -prr(obj, 'foo', 'bar', { enumerable: true, writable: true }) -``` - -Do the same operation for multiple properties: - -```js -prr(obj, { one: 'one', two: 'two' }) -// or with options: -prr(obj, { one: 'one', two: 'two' }, { enumerable: true, writable: true }) -``` - -But obviously, having to write out the full options object makes it nearly as bad as the original `Object.defineProperty()` so we can **simplify**. - -As an alternative method we can use an options string where each character represents a option: `'e'=='enumerable'`, `'c'=='configurable'` and `'w'=='writable'`: - -```js -prr(obj, 'foo', 'bar', 'ew') // enumerable and writable but not configurable -// muliple properties: -prr(obj, { one: 'one', two: 'two' }, 'ewc') // configurable too -``` - -## Where can I use it? - -Anywhere! For pre-ES5 environments *prr* will simply fall-back to an `object[property] = value` so you can get close to what you want. - -*prr* is Ender-compatible so you can include it in your Ender build and `$.prr(...)` or `var prr = require('prr'); prr(...)`. - -## Licence - -prr is Copyright (c) 2013 Rod Vagg [@rvagg](https://twitter.com/rvagg) and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details. \ No newline at end of file diff --git a/node_modules/prr/package.json b/node_modules/prr/package.json deleted file mode 100644 index 3472b1c..0000000 --- a/node_modules/prr/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "prr@~0.0.0", - "scope": null, - "escapedName": "prr", - "name": "prr", - "rawSpec": "~0.0.0", - "spec": ">=0.0.0 <0.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/errno" - ] - ], - "_from": "prr@>=0.0.0 <0.1.0", - "_id": "prr@0.0.0", - "_inCache": true, - "_location": "/prr", - "_npmUser": { - "name": "rvagg", - "email": "rod@vagg.org" - }, - "_npmVersion": "1.2.15", - "_phantomChildren": {}, - "_requested": { - "raw": "prr@~0.0.0", - "scope": null, - "escapedName": "prr", - "name": "prr", - "rawSpec": "~0.0.0", - "spec": ">=0.0.0 <0.1.0", - "type": "range" - }, - "_requiredBy": [ - "/errno" - ], - "_resolved": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz", - "_shasum": "1a84b85908325501411853d0081ee3fa86e2926a", - "_shrinkwrap": null, - "_spec": "prr@~0.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/errno", - "authors": [ - "Rod Vagg (https://github.com/rvagg)" - ], - "bugs": { - "url": "https://github.com/rvagg/prr/issues" - }, - "dependencies": {}, - "description": "A better Object.defineProperty()", - "devDependencies": { - "tap": "*" - }, - "directories": {}, - "dist": { - "shasum": "1a84b85908325501411853d0081ee3fa86e2926a", - "tarball": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz" - }, - "homepage": "https://github.com/rvagg/prr", - "keywords": [ - "property", - "properties", - "defineProperty", - "ender" - ], - "license": "MIT", - "main": "./prr.js", - "maintainers": [ - { - "name": "rvagg", - "email": "rod@vagg.org" - } - ], - "name": "prr", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/rvagg/prr.git" - }, - "scripts": { - "test": "node ./test.js" - }, - "version": "0.0.0" -} diff --git a/node_modules/prr/prr.js b/node_modules/prr/prr.js deleted file mode 100644 index 94f5862..0000000 --- a/node_modules/prr/prr.js +++ /dev/null @@ -1,63 +0,0 @@ -/*! - * prr - * (c) 2013 Rod Vagg - * https://github.com/rvagg/prr - * License: MIT - */ - -(function (name, context, definition) { - if (typeof module != 'undefined' && module.exports) - module.exports = definition() - else - context[name] = definition() -})('prr', this, function() { - - var setProperty = typeof Object.defineProperty == 'function' - ? function (obj, key, options) { - Object.defineProperty(obj, key, options) - return obj - } - : function (obj, key, options) { // < es5 - obj[key] = options.value - return obj - } - - , makeOptions = function (value, options) { - var oo = typeof options == 'object' - , os = !oo && typeof options == 'string' - , op = function (p) { - return oo - ? !!options[p] - : os - ? options.indexOf(p[0]) > -1 - : false - } - - return { - enumerable : op('enumerable') - , configurable : op('configurable') - , writable : op('writable') - , value : value - } - } - - , prr = function (obj, key, value, options) { - var k - - options = makeOptions(value, options) - - if (typeof key == 'object') { - for (k in key) { - if (Object.hasOwnProperty.call(key, k)) { - options.value = key[k] - setProperty(obj, k, options) - } - } - return obj - } - - return setProperty(obj, key, options) - } - - return prr -}) \ No newline at end of file diff --git a/node_modules/prr/test.js b/node_modules/prr/test.js deleted file mode 100644 index 5222e30..0000000 --- a/node_modules/prr/test.js +++ /dev/null @@ -1,169 +0,0 @@ -const test = require('tap').test - , prr = require('./') - -test('test prr(o, key, value) form', function (t) { - t.plan(2) - - var o = {} - prr(o, 'foo', 'bar') - t.equal(o.foo, 'bar', 'correct value') - t.deepEqual( - Object.getOwnPropertyDescriptor(o, 'foo') - , { - enumerable : false - , configurable : false - , writable : false - , value : 'bar' - } - , 'correct property descriptor' - ) - t.end() -}) - -test('test prr(o, { key: value }) form', function (t) { - t.plan(2) - - var o = {} - prr(o, { foo: 'bar' }) - - t.equal(o.foo, 'bar', 'correct value') - t.deepEqual( - Object.getOwnPropertyDescriptor(o, 'foo') - , { - enumerable : false - , configurable : false - , writable : false - , value : 'bar' - } - , 'correct property descriptor' - ) - t.end() -}) - -test('test multiple key:value pairs', function (t) { - var o = { foo: 'bar' } - - prr(o, { one: 'ONE', two: 'TWO', obj: { o: 'o' }}) - - t.deepEqual(o, { foo: 'bar' }, 'properties are not enumerable') - t.equal(o.one, 'ONE', 'correctly set property') - t.equal(o.two, 'TWO', 'correctly set property') - t.deepEqual(o.obj, { o: 'o' }, 'correctly set property') - - ;[ 'one', 'two', 'obj' ].forEach(function (p) { - t.deepEqual( - Object.getOwnPropertyDescriptor(o, p) - , { - enumerable : false - , configurable : false - , writable : false - , value : p == 'obj' ? { o: 'o' } : p.toUpperCase() - } - , 'correct property descriptor' - ) - }) - - t.end() -}) - -test('test descriptor options', function (t) { - var o = {} - - prr(o, 'foo', 'bar', { - enumerable : true - , configurable : false - }) - t.equal(o.foo, 'bar', 'correct value') - t.deepEqual( - Object.getOwnPropertyDescriptor(o, 'foo') - , { - enumerable : true - , configurable : false - , writable : false - , value : 'bar' - } - , 'correct property descriptor' - ) - - prr(o, 'foo2', 'bar2', { - enumerable : true - , configurable : true - , writable : false - }) - t.equal(o.foo2, 'bar2', 'correct value') - t.deepEqual( - Object.getOwnPropertyDescriptor(o, 'foo2') - , { - enumerable : true - , configurable : true - , writable : false - , value : 'bar2' - } - , 'correct property descriptor' - ) - - prr(o, 'foo3', 'bar3', { - enumerable : true - , configurable : true - , writable : true - }) - t.equal(o.foo3, 'bar3', 'correct value') - t.deepEqual( - Object.getOwnPropertyDescriptor(o, 'foo3') - , { - enumerable : true - , configurable : true - , writable : true - , value : 'bar3' - } - , 'correct property descriptor' - ) - - t.end() -}) - - -test('test descriptor options, string form', function (t) { - var o = {} - - prr(o, 'foo', 'bar', 'e') - t.equal(o.foo, 'bar', 'correct value') - t.deepEqual( - Object.getOwnPropertyDescriptor(o, 'foo') - , { - enumerable : true - , configurable : false - , writable : false - , value : 'bar' - } - , 'correct property descriptor' - ) - - prr(o, 'foo2', 'bar2', 'ec') - t.equal(o.foo2, 'bar2', 'correct value') - t.deepEqual( - Object.getOwnPropertyDescriptor(o, 'foo2') - , { - enumerable : true - , configurable : true - , writable : false - , value : 'bar2' - } - , 'correct property descriptor' - ) - - prr(o, 'foo3', 'bar3', 'ecw') - t.equal(o.foo3, 'bar3', 'correct value') - t.deepEqual( - Object.getOwnPropertyDescriptor(o, 'foo3') - , { - enumerable : true - , configurable : true - , writable : true - , value : 'bar3' - } - , 'correct property descriptor' - ) - - t.end() -}) diff --git a/node_modules/punycode/LICENSE-MIT.txt b/node_modules/punycode/LICENSE-MIT.txt deleted file mode 100644 index a41e0a7..0000000 --- a/node_modules/punycode/LICENSE-MIT.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright Mathias Bynens - -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/punycode/README.md b/node_modules/punycode/README.md deleted file mode 100644 index 7ad7d1f..0000000 --- a/node_modules/punycode/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# Punycode.js [![Build status](https://travis-ci.org/bestiejs/punycode.js.svg?branch=master)](https://travis-ci.org/bestiejs/punycode.js) [![Code coverage status](http://img.shields.io/coveralls/bestiejs/punycode.js/master.svg)](https://coveralls.io/r/bestiejs/punycode.js) [![Dependency status](https://gemnasium.com/bestiejs/punycode.js.svg)](https://gemnasium.com/bestiejs/punycode.js) - -A robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891), and works on nearly all JavaScript platforms. - -This JavaScript library is the result of comparing, optimizing and documenting different open-source implementations of the Punycode algorithm: - -* [The C example code from RFC 3492](https://tools.ietf.org/html/rfc3492#appendix-C) -* [`punycode.c` by _Markus W. Scherer_ (IBM)](http://opensource.apple.com/source/ICU/ICU-400.42/icuSources/common/punycode.c) -* [`punycode.c` by _Ben Noordhuis_](https://github.com/bnoordhuis/punycode/blob/master/punycode.c) -* [JavaScript implementation by _some_](http://stackoverflow.com/questions/183485/can-anyone-recommend-a-good-free-javascript-for-punycode-to-unicode-conversion/301287#301287) -* [`punycode.js` by _Ben Noordhuis_](https://github.com/joyent/node/blob/426298c8c1c0d5b5224ac3658c41e7c2a3fe9377/lib/punycode.js) (note: [not fully compliant](https://github.com/joyent/node/issues/2072)) - -This project is [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with [Node.js v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) and [io.js v1.0.0+](https://github.com/iojs/io.js/blob/v1.x/lib/punycode.js). - -## Installation - -Via [npm](https://www.npmjs.com/) (only required for Node.js releases older than v0.6.2): - -```bash -npm install punycode -``` - -Via [Bower](http://bower.io/): - -```bash -bower install punycode -``` - -Via [Component](https://github.com/component/component): - -```bash -component install bestiejs/punycode.js -``` - -In a browser: - -```html - -``` - -In [Node.js](https://nodejs.org/), [io.js](https://iojs.org/), [Narwhal](http://narwhaljs.org/), and [RingoJS](http://ringojs.org/): - -```js -var punycode = require('punycode'); -``` - -In [Rhino](http://www.mozilla.org/rhino/): - -```js -load('punycode.js'); -``` - -Using an AMD loader like [RequireJS](http://requirejs.org/): - -```js -require( - { - 'paths': { - 'punycode': 'path/to/punycode' - } - }, - ['punycode'], - function(punycode) { - console.log(punycode); - } -); -``` - -## API - -### `punycode.decode(string)` - -Converts a Punycode string of ASCII symbols to a string of Unicode symbols. - -```js -// decode domain name parts -punycode.decode('maana-pta'); // 'mañana' -punycode.decode('--dqo34k'); // '☃-⌘' -``` - -### `punycode.encode(string)` - -Converts a string of Unicode symbols to a Punycode string of ASCII symbols. - -```js -// encode domain name parts -punycode.encode('mañana'); // 'maana-pta' -punycode.encode('☃-⌘'); // '--dqo34k' -``` - -### `punycode.toUnicode(input)` - -Converts a Punycode string representing a domain name or an email address to Unicode. Only the Punycoded parts of the input will be converted, i.e. it doesn’t matter if you call it on a string that has already been converted to Unicode. - -```js -// decode domain names -punycode.toUnicode('xn--maana-pta.com'); -// → 'mañana.com' -punycode.toUnicode('xn----dqo34k.com'); -// → '☃-⌘.com' - -// decode email addresses -punycode.toUnicode('джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq'); -// → 'джумла@джpумлатест.bрфa' -``` - -### `punycode.toASCII(input)` - -Converts a lowercased Unicode string representing a domain name or an email address to Punycode. Only the non-ASCII parts of the input will be converted, i.e. it doesn’t matter if you call it with a domain that’s already in ASCII. - -```js -// encode domain names -punycode.toASCII('mañana.com'); -// → 'xn--maana-pta.com' -punycode.toASCII('☃-⌘.com'); -// → 'xn----dqo34k.com' - -// encode email addresses -punycode.toASCII('джумла@джpумлатест.bрфa'); -// → 'джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq' -``` - -### `punycode.ucs2` - -#### `punycode.ucs2.decode(string)` - -Creates an array containing the numeric code point values of each Unicode symbol in the string. While [JavaScript uses UCS-2 internally](https://mathiasbynens.be/notes/javascript-encoding), this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16. - -```js -punycode.ucs2.decode('abc'); -// → [0x61, 0x62, 0x63] -// surrogate pair for U+1D306 TETRAGRAM FOR CENTRE: -punycode.ucs2.decode('\uD834\uDF06'); -// → [0x1D306] -``` - -#### `punycode.ucs2.encode(codePoints)` - -Creates a string based on an array of numeric code point values. - -```js -punycode.ucs2.encode([0x61, 0x62, 0x63]); -// → 'abc' -punycode.ucs2.encode([0x1D306]); -// → '\uD834\uDF06' -``` - -### `punycode.version` - -A string representing the current Punycode.js version number. - -## Unit tests & code coverage - -After cloning this repository, run `npm install --dev` to install the dependencies needed for Punycode.js development and testing. You may want to install Istanbul _globally_ using `npm install istanbul -g`. - -Once that’s done, you can run the unit tests in Node using `npm test` or `node tests/tests.js`. To run the tests in Rhino, Ringo, Narwhal, PhantomJS, and web browsers as well, use `grunt test`. - -To generate the code coverage report, use `grunt cover`. - -Feel free to fork if you see possible improvements! - -## Author - -| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---| -| [Mathias Bynens](https://mathiasbynens.be/) | - -## Contributors - -| [![twitter/jdalton](https://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") | -|---| -| [John-David Dalton](http://allyoucanleet.com/) | - -## License - -Punycode.js is available under the [MIT](https://mths.be/mit) license. diff --git a/node_modules/punycode/package.json b/node_modules/punycode/package.json deleted file mode 100644 index ab8f3a7..0000000 --- a/node_modules/punycode/package.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "punycode@^1.4.1", - "scope": null, - "escapedName": "punycode", - "name": "punycode", - "rawSpec": "^1.4.1", - "spec": ">=1.4.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/tough-cookie" - ] - ], - "_from": "punycode@>=1.4.1 <2.0.0", - "_id": "punycode@1.4.1", - "_inCache": true, - "_location": "/punycode", - "_nodeVersion": "5.2.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/punycode-1.4.1.tgz_1458437236261_0.07678767060860991" - }, - "_npmUser": { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - "_npmVersion": "3.8.2", - "_phantomChildren": {}, - "_requested": { - "raw": "punycode@^1.4.1", - "scope": null, - "escapedName": "punycode", - "name": "punycode", - "rawSpec": "^1.4.1", - "spec": ">=1.4.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/tough-cookie" - ], - "_resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "_shasum": "c0d5a63b2718800ad8e1eb0fa5269c84dd41845e", - "_shrinkwrap": null, - "_spec": "punycode@^1.4.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/tough-cookie", - "author": { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - }, - "bugs": { - "url": "https://github.com/bestiejs/punycode.js/issues" - }, - "contributors": [ - { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - }, - { - "name": "John-David Dalton", - "url": "http://allyoucanleet.com/" - } - ], - "dependencies": {}, - "description": "A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.", - "devDependencies": { - "coveralls": "^2.11.4", - "grunt": "^0.4.5", - "grunt-contrib-uglify": "^0.11.0", - "grunt-shell": "^1.1.2", - "istanbul": "^0.4.1", - "qunit-extras": "^1.4.4", - "qunitjs": "~1.11.0", - "requirejs": "^2.1.22" - }, - "directories": {}, - "dist": { - "shasum": "c0d5a63b2718800ad8e1eb0fa5269c84dd41845e", - "tarball": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz" - }, - "files": [ - "LICENSE-MIT.txt", - "punycode.js" - ], - "gitHead": "0fbadd6e81f3a0ce06c38998040d6db6bdfbc5c9", - "homepage": "https://mths.be/punycode", - "jspm": { - "map": { - "./punycode.js": { - "node": "@node/punycode" - } - } - }, - "keywords": [ - "punycode", - "unicode", - "idn", - "idna", - "dns", - "url", - "domain" - ], - "license": "MIT", - "main": "punycode.js", - "maintainers": [ - { - "name": "mathias", - "email": "mathias@qiwi.be" - }, - { - "name": "reconbot", - "email": "wizard@roborooter.com" - } - ], - "name": "punycode", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/bestiejs/punycode.js.git" - }, - "scripts": { - "test": "node tests/tests.js" - }, - "version": "1.4.1" -} diff --git a/node_modules/punycode/punycode.js b/node_modules/punycode/punycode.js deleted file mode 100644 index 2c87f6c..0000000 --- a/node_modules/punycode/punycode.js +++ /dev/null @@ -1,533 +0,0 @@ -/*! https://mths.be/punycode v1.4.1 by @mathias */ -;(function(root) { - - /** Detect free variables */ - var freeExports = typeof exports == 'object' && exports && - !exports.nodeType && exports; - var freeModule = typeof module == 'object' && module && - !module.nodeType && module; - var freeGlobal = typeof global == 'object' && global; - if ( - freeGlobal.global === freeGlobal || - freeGlobal.window === freeGlobal || - freeGlobal.self === freeGlobal - ) { - root = freeGlobal; - } - - /** - * The `punycode` object. - * @name punycode - * @type Object - */ - var punycode, - - /** Highest positive signed 32-bit float value */ - maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 - - /** Bootstring parameters */ - base = 36, - tMin = 1, - tMax = 26, - skew = 38, - damp = 700, - initialBias = 72, - initialN = 128, // 0x80 - delimiter = '-', // '\x2D' - - /** Regular expressions */ - regexPunycode = /^xn--/, - regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars - regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators - - /** Error messages */ - errors = { - 'overflow': 'Overflow: input needs wider integers to process', - 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', - 'invalid-input': 'Invalid input' - }, - - /** Convenience shortcuts */ - baseMinusTMin = base - tMin, - floor = Math.floor, - stringFromCharCode = String.fromCharCode, - - /** Temporary variable */ - key; - - /*--------------------------------------------------------------------------*/ - - /** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */ - function error(type) { - throw new RangeError(errors[type]); - } - - /** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */ - function map(array, fn) { - var length = array.length; - var result = []; - while (length--) { - result[length] = fn(array[length]); - } - return result; - } - - /** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {Array} A new string of characters returned by the callback - * function. - */ - function mapDomain(string, fn) { - var parts = string.split('@'); - var result = ''; - if (parts.length > 1) { - // In email addresses, only the domain name should be punycoded. Leave - // the local part (i.e. everything up to `@`) intact. - result = parts[0] + '@'; - string = parts[1]; - } - // Avoid `split(regex)` for IE8 compatibility. See #17. - string = string.replace(regexSeparators, '\x2E'); - var labels = string.split('.'); - var encoded = map(labels, fn).join('.'); - return result + encoded; - } - - /** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */ - function ucs2decode(string) { - var output = [], - counter = 0, - length = string.length, - value, - extra; - while (counter < length) { - value = string.charCodeAt(counter++); - if (value >= 0xD800 && value <= 0xDBFF && counter < length) { - // high surrogate, and there is a next character - extra = string.charCodeAt(counter++); - if ((extra & 0xFC00) == 0xDC00) { // low surrogate - output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); - } else { - // unmatched surrogate; only append this code unit, in case the next - // code unit is the high surrogate of a surrogate pair - output.push(value); - counter--; - } - } else { - output.push(value); - } - } - return output; - } - - /** - * Creates a string based on an array of numeric code points. - * @see `punycode.ucs2.decode` - * @memberOf punycode.ucs2 - * @name encode - * @param {Array} codePoints The array of numeric code points. - * @returns {String} The new Unicode string (UCS-2). - */ - function ucs2encode(array) { - return map(array, function(value) { - var output = ''; - if (value > 0xFFFF) { - value -= 0x10000; - output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); - value = 0xDC00 | value & 0x3FF; - } - output += stringFromCharCode(value); - return output; - }).join(''); - } - - /** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */ - function basicToDigit(codePoint) { - if (codePoint - 48 < 10) { - return codePoint - 22; - } - if (codePoint - 65 < 26) { - return codePoint - 65; - } - if (codePoint - 97 < 26) { - return codePoint - 97; - } - return base; - } - - /** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */ - function digitToBasic(digit, flag) { - // 0..25 map to ASCII a..z or A..Z - // 26..35 map to ASCII 0..9 - return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); - } - - /** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */ - function adapt(delta, numPoints, firstTime) { - var k = 0; - delta = firstTime ? floor(delta / damp) : delta >> 1; - delta += floor(delta / numPoints); - for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { - delta = floor(delta / baseMinusTMin); - } - return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); - } - - /** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */ - function decode(input) { - // Don't use UCS-2 - var output = [], - inputLength = input.length, - out, - i = 0, - n = initialN, - bias = initialBias, - basic, - j, - index, - oldi, - w, - k, - digit, - t, - /** Cached calculation results */ - baseMinusT; - - // Handle the basic code points: let `basic` be the number of input code - // points before the last delimiter, or `0` if there is none, then copy - // the first basic code points to the output. - - basic = input.lastIndexOf(delimiter); - if (basic < 0) { - basic = 0; - } - - for (j = 0; j < basic; ++j) { - // if it's not a basic code point - if (input.charCodeAt(j) >= 0x80) { - error('not-basic'); - } - output.push(input.charCodeAt(j)); - } - - // Main decoding loop: start just after the last delimiter if any basic code - // points were copied; start at the beginning otherwise. - - for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { - - // `index` is the index of the next character to be consumed. - // Decode a generalized variable-length integer into `delta`, - // which gets added to `i`. The overflow checking is easier - // if we increase `i` as we go, then subtract off its starting - // value at the end to obtain `delta`. - for (oldi = i, w = 1, k = base; /* no condition */; k += base) { - - if (index >= inputLength) { - error('invalid-input'); - } - - digit = basicToDigit(input.charCodeAt(index++)); - - if (digit >= base || digit > floor((maxInt - i) / w)) { - error('overflow'); - } - - i += digit * w; - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - - if (digit < t) { - break; - } - - baseMinusT = base - t; - if (w > floor(maxInt / baseMinusT)) { - error('overflow'); - } - - w *= baseMinusT; - - } - - out = output.length + 1; - bias = adapt(i - oldi, out, oldi == 0); - - // `i` was supposed to wrap around from `out` to `0`, - // incrementing `n` each time, so we'll fix that now: - if (floor(i / out) > maxInt - n) { - error('overflow'); - } - - n += floor(i / out); - i %= out; - - // Insert `n` at position `i` of the output - output.splice(i++, 0, n); - - } - - return ucs2encode(output); - } - - /** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */ - function encode(input) { - var n, - delta, - handledCPCount, - basicLength, - bias, - j, - m, - q, - k, - t, - currentValue, - output = [], - /** `inputLength` will hold the number of code points in `input`. */ - inputLength, - /** Cached calculation results */ - handledCPCountPlusOne, - baseMinusT, - qMinusT; - - // Convert the input in UCS-2 to Unicode - input = ucs2decode(input); - - // Cache the length - inputLength = input.length; - - // Initialize the state - n = initialN; - delta = 0; - bias = initialBias; - - // Handle the basic code points - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue < 0x80) { - output.push(stringFromCharCode(currentValue)); - } - } - - handledCPCount = basicLength = output.length; - - // `handledCPCount` is the number of code points that have been handled; - // `basicLength` is the number of basic code points. - - // Finish the basic string - if it is not empty - with a delimiter - if (basicLength) { - output.push(delimiter); - } - - // Main encoding loop: - while (handledCPCount < inputLength) { - - // All non-basic code points < n have been handled already. Find the next - // larger one: - for (m = maxInt, j = 0; j < inputLength; ++j) { - currentValue = input[j]; - if (currentValue >= n && currentValue < m) { - m = currentValue; - } - } - - // Increase `delta` enough to advance the decoder's state to , - // but guard against overflow - handledCPCountPlusOne = handledCPCount + 1; - if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { - error('overflow'); - } - - delta += (m - n) * handledCPCountPlusOne; - n = m; - - for (j = 0; j < inputLength; ++j) { - currentValue = input[j]; - - if (currentValue < n && ++delta > maxInt) { - error('overflow'); - } - - if (currentValue == n) { - // Represent delta as a generalized variable-length integer - for (q = delta, k = base; /* no condition */; k += base) { - t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); - if (q < t) { - break; - } - qMinusT = q - t; - baseMinusT = base - t; - output.push( - stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) - ); - q = floor(qMinusT / baseMinusT); - } - - output.push(stringFromCharCode(digitToBasic(q, 0))); - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); - delta = 0; - ++handledCPCount; - } - } - - ++delta; - ++n; - - } - return output.join(''); - } - - /** - * Converts a Punycode string representing a domain name or an email address - * to Unicode. Only the Punycoded parts of the input will be converted, i.e. - * it doesn't matter if you call it on a string that has already been - * converted to Unicode. - * @memberOf punycode - * @param {String} input The Punycoded domain name or email address to - * convert to Unicode. - * @returns {String} The Unicode representation of the given Punycode - * string. - */ - function toUnicode(input) { - return mapDomain(input, function(string) { - return regexPunycode.test(string) - ? decode(string.slice(4).toLowerCase()) - : string; - }); - } - - /** - * Converts a Unicode string representing a domain name or an email address to - * Punycode. Only the non-ASCII parts of the domain name will be converted, - * i.e. it doesn't matter if you call it with a domain that's already in - * ASCII. - * @memberOf punycode - * @param {String} input The domain name or email address to convert, as a - * Unicode string. - * @returns {String} The Punycode representation of the given domain name or - * email address. - */ - function toASCII(input) { - return mapDomain(input, function(string) { - return regexNonASCII.test(string) - ? 'xn--' + encode(string) - : string; - }); - } - - /*--------------------------------------------------------------------------*/ - - /** Define the public API */ - punycode = { - /** - * A string representing the current Punycode.js version number. - * @memberOf punycode - * @type String - */ - 'version': '1.4.1', - /** - * An object of methods to convert from JavaScript's internal character - * representation (UCS-2) to Unicode code points, and back. - * @see - * @memberOf punycode - * @type Object - */ - 'ucs2': { - 'decode': ucs2decode, - 'encode': ucs2encode - }, - 'decode': decode, - 'encode': encode, - 'toASCII': toASCII, - 'toUnicode': toUnicode - }; - - /** Expose `punycode` */ - // Some AMD build optimizers, like r.js, check for specific condition patterns - // like the following: - if ( - typeof define == 'function' && - typeof define.amd == 'object' && - define.amd - ) { - define('punycode', function() { - return punycode; - }); - } else if (freeExports && freeModule) { - if (module.exports == freeExports) { - // in Node.js, io.js, or RingoJS v0.8.0+ - freeModule.exports = punycode; - } else { - // in Narwhal or RingoJS v0.7.0- - for (key in punycode) { - punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]); - } - } - } else { - // in Rhino or a web browser - root.punycode = punycode; - } - -}(this)); diff --git a/node_modules/qs/.eslintignore b/node_modules/qs/.eslintignore deleted file mode 100644 index 1521c8b..0000000 --- a/node_modules/qs/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -dist diff --git a/node_modules/qs/.eslintrc b/node_modules/qs/.eslintrc deleted file mode 100644 index 9856017..0000000 --- a/node_modules/qs/.eslintrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "complexity": [2, 25], - "consistent-return": 1, - "id-length": [2, { "min": 1, "max": 25, "properties": "never" }], - "indent": [2, 4], - "max-params": [2, 11], - "max-statements": [2, 42], - "no-extra-parens": 1, - "no-continue": 1, - "no-magic-numbers": 0, - "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], - "operator-linebreak": 1 - } -} diff --git a/node_modules/qs/CHANGELOG.md b/node_modules/qs/CHANGELOG.md deleted file mode 100644 index fd50ed8..0000000 --- a/node_modules/qs/CHANGELOG.md +++ /dev/null @@ -1,156 +0,0 @@ -## **6.3.1** -- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties (thanks, @snyk!) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `iconv-lite`, `qs-iconv`, `tape` -- [Tests] on all node minors; improve test matrix -- [Docs] document stringify option `allowDots` (#195) -- [Docs] add empty object and array values example (#195) -- [Docs] Fix minor inconsistency/typo (#192) -- [Docs] document stringify option `sort` (#191) -- [Refactor] `stringify`: throw faster with an invalid encoder -- [Refactor] remove unnecessary escapes (#184) -- Remove contributing.md, since `qs` is no longer part of `hapi` (#183) - -## **6.3.0** -- [New] Add support for RFC 1738 (#174, #173) -- [New] `stringify`: Add `serializeDate` option to customize Date serialization (#159) -- [Fix] ensure `utils.merge` handles merging two arrays -- [Refactor] only constructors should be capitalized -- [Refactor] capitalized var names are for constructors only -- [Refactor] avoid using a sparse array -- [Robustness] `formats`: cache `String#replace` -- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`; add `safe-publish-latest` -- [Tests] up to `node` `v6.8`, `v4.6`; improve test matrix -- [Tests] flesh out arrayLimit/arrayFormat tests (#107) -- [Tests] skip Object.create tests when null objects are not available -- [Tests] Turn on eslint for test files (#175) - -## **6.2.1** -- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values -- [Refactor] Be explicit and use `Object.prototype.hasOwnProperty.call` -- [Tests] remove `parallelshell` since it does not reliably report failures -- [Tests] up to `node` `v6.3`, `v5.12` -- [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `qs-iconv` - -## [**6.2.0**](https://github.com/ljharb/qs/issues?milestone=36&state=closed) -- [New] pass Buffers to the encoder/decoder directly (#161) -- [New] add "encoder" and "decoder" options, for custom param encoding/decoding (#160) -- [Fix] fix compacting of nested sparse arrays (#150) - -## [**6.1.0**](https://github.com/ljharb/qs/issues?milestone=35&state=closed) -- [New] allowDots option for `stringify` (#151) -- [Fix] "sort" option should work at a depth of 3 or more (#151) -- [Fix] Restore `dist` directory; will be removed in v7 (#148) - -## [**6.0.2**](https://github.com/ljharb/qs/issues?milestone=33&state=closed) -- Revert ES6 requirement and restore support for node down to v0.8. - -## [**6.0.1**](https://github.com/ljharb/qs/issues?milestone=32&state=closed) -- [**#127**](https://github.com/ljharb/qs/pull/127) Fix engines definition in package.json - -## [**6.0.0**](https://github.com/ljharb/qs/issues?milestone=31&state=closed) -- [**#124**](https://github.com/ljharb/qs/issues/124) Use ES6 and drop support for node < v4 - -## **5.2.1** -- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values - -## [**5.2.0**](https://github.com/ljharb/qs/issues?milestone=30&state=closed) -- [**#64**](https://github.com/ljharb/qs/issues/64) Add option to sort object keys in the query string - -## [**5.1.0**](https://github.com/ljharb/qs/issues?milestone=29&state=closed) -- [**#117**](https://github.com/ljharb/qs/issues/117) make URI encoding stringified results optional -- [**#106**](https://github.com/ljharb/qs/issues/106) Add flag `skipNulls` to optionally skip null values in stringify - -## [**5.0.0**](https://github.com/ljharb/qs/issues?milestone=28&state=closed) -- [**#114**](https://github.com/ljharb/qs/issues/114) default allowDots to false -- [**#100**](https://github.com/ljharb/qs/issues/100) include dist to npm - -## [**4.0.0**](https://github.com/ljharb/qs/issues?milestone=26&state=closed) -- [**#98**](https://github.com/ljharb/qs/issues/98) make returning plain objects and allowing prototype overwriting properties optional - -## [**3.1.0**](https://github.com/ljharb/qs/issues?milestone=24&state=closed) -- [**#89**](https://github.com/ljharb/qs/issues/89) Add option to disable "Transform dot notation to bracket notation" - -## [**3.0.0**](https://github.com/ljharb/qs/issues?milestone=23&state=closed) -- [**#80**](https://github.com/ljharb/qs/issues/80) qs.parse silently drops properties -- [**#77**](https://github.com/ljharb/qs/issues/77) Perf boost -- [**#60**](https://github.com/ljharb/qs/issues/60) Add explicit option to disable array parsing -- [**#74**](https://github.com/ljharb/qs/issues/74) Bad parse when turning array into object -- [**#81**](https://github.com/ljharb/qs/issues/81) Add a `filter` option -- [**#68**](https://github.com/ljharb/qs/issues/68) Fixed issue with recursion and passing strings into objects. -- [**#66**](https://github.com/ljharb/qs/issues/66) Add mixed array and object dot notation support Closes: #47 -- [**#76**](https://github.com/ljharb/qs/issues/76) RFC 3986 -- [**#85**](https://github.com/ljharb/qs/issues/85) No equal sign -- [**#84**](https://github.com/ljharb/qs/issues/84) update license attribute - -## [**2.4.1**](https://github.com/ljharb/qs/issues?milestone=20&state=closed) -- [**#73**](https://github.com/ljharb/qs/issues/73) Property 'hasOwnProperty' of object # is not a function - -## [**2.4.0**](https://github.com/ljharb/qs/issues?milestone=19&state=closed) -- [**#70**](https://github.com/ljharb/qs/issues/70) Add arrayFormat option - -## [**2.3.3**](https://github.com/ljharb/qs/issues?milestone=18&state=closed) -- [**#59**](https://github.com/ljharb/qs/issues/59) make sure array indexes are >= 0, closes #57 -- [**#58**](https://github.com/ljharb/qs/issues/58) make qs usable for browser loader - -## [**2.3.2**](https://github.com/ljharb/qs/issues?milestone=17&state=closed) -- [**#55**](https://github.com/ljharb/qs/issues/55) allow merging a string into an object - -## [**2.3.1**](https://github.com/ljharb/qs/issues?milestone=16&state=closed) -- [**#52**](https://github.com/ljharb/qs/issues/52) Return "undefined" and "false" instead of throwing "TypeError". - -## [**2.3.0**](https://github.com/ljharb/qs/issues?milestone=15&state=closed) -- [**#50**](https://github.com/ljharb/qs/issues/50) add option to omit array indices, closes #46 - -## [**2.2.5**](https://github.com/ljharb/qs/issues?milestone=14&state=closed) -- [**#39**](https://github.com/ljharb/qs/issues/39) Is there an alternative to Buffer.isBuffer? -- [**#49**](https://github.com/ljharb/qs/issues/49) refactor utils.merge, fixes #45 -- [**#41**](https://github.com/ljharb/qs/issues/41) avoid browserifying Buffer, for #39 - -## [**2.2.4**](https://github.com/ljharb/qs/issues?milestone=13&state=closed) -- [**#38**](https://github.com/ljharb/qs/issues/38) how to handle object keys beginning with a number - -## [**2.2.3**](https://github.com/ljharb/qs/issues?milestone=12&state=closed) -- [**#37**](https://github.com/ljharb/qs/issues/37) parser discards first empty value in array -- [**#36**](https://github.com/ljharb/qs/issues/36) Update to lab 4.x - -## [**2.2.2**](https://github.com/ljharb/qs/issues?milestone=11&state=closed) -- [**#33**](https://github.com/ljharb/qs/issues/33) Error when plain object in a value -- [**#34**](https://github.com/ljharb/qs/issues/34) use Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty -- [**#24**](https://github.com/ljharb/qs/issues/24) Changelog? Semver? - -## [**2.2.1**](https://github.com/ljharb/qs/issues?milestone=10&state=closed) -- [**#32**](https://github.com/ljharb/qs/issues/32) account for circular references properly, closes #31 -- [**#31**](https://github.com/ljharb/qs/issues/31) qs.parse stackoverflow on circular objects - -## [**2.2.0**](https://github.com/ljharb/qs/issues?milestone=9&state=closed) -- [**#26**](https://github.com/ljharb/qs/issues/26) Don't use Buffer global if it's not present -- [**#30**](https://github.com/ljharb/qs/issues/30) Bug when merging non-object values into arrays -- [**#29**](https://github.com/ljharb/qs/issues/29) Don't call Utils.clone at the top of Utils.merge -- [**#23**](https://github.com/ljharb/qs/issues/23) Ability to not limit parameters? - -## [**2.1.0**](https://github.com/ljharb/qs/issues?milestone=8&state=closed) -- [**#22**](https://github.com/ljharb/qs/issues/22) Enable using a RegExp as delimiter - -## [**2.0.0**](https://github.com/ljharb/qs/issues?milestone=7&state=closed) -- [**#18**](https://github.com/ljharb/qs/issues/18) Why is there arrayLimit? -- [**#20**](https://github.com/ljharb/qs/issues/20) Configurable parametersLimit -- [**#21**](https://github.com/ljharb/qs/issues/21) make all limits optional, for #18, for #20 - -## [**1.2.2**](https://github.com/ljharb/qs/issues?milestone=6&state=closed) -- [**#19**](https://github.com/ljharb/qs/issues/19) Don't overwrite null values - -## [**1.2.1**](https://github.com/ljharb/qs/issues?milestone=5&state=closed) -- [**#16**](https://github.com/ljharb/qs/issues/16) ignore non-string delimiters -- [**#15**](https://github.com/ljharb/qs/issues/15) Close code block - -## [**1.2.0**](https://github.com/ljharb/qs/issues?milestone=4&state=closed) -- [**#12**](https://github.com/ljharb/qs/issues/12) Add optional delim argument -- [**#13**](https://github.com/ljharb/qs/issues/13) fix #11: flattened keys in array are now correctly parsed - -## [**1.1.0**](https://github.com/ljharb/qs/issues?milestone=3&state=closed) -- [**#7**](https://github.com/ljharb/qs/issues/7) Empty values of a POST array disappear after being submitted -- [**#9**](https://github.com/ljharb/qs/issues/9) Should not omit equals signs (=) when value is null -- [**#6**](https://github.com/ljharb/qs/issues/6) Minor grammar fix in README - -## [**1.0.2**](https://github.com/ljharb/qs/issues?milestone=2&state=closed) -- [**#5**](https://github.com/ljharb/qs/issues/5) array holes incorrectly copied into object on large index diff --git a/node_modules/qs/LICENSE b/node_modules/qs/LICENSE deleted file mode 100644 index d456948..0000000 --- a/node_modules/qs/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ -Copyright (c) 2014 Nathan LaFreniere and other contributors. -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. - * The names of any contributors may not 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 HOLDERS AND 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. - - * * * - -The complete list of contributors can be found at: https://github.com/hapijs/qs/graphs/contributors diff --git a/node_modules/qs/README.md b/node_modules/qs/README.md deleted file mode 100644 index 1ec7462..0000000 --- a/node_modules/qs/README.md +++ /dev/null @@ -1,431 +0,0 @@ -# qs - -A querystring parsing and stringifying library with some added security. - -[![Build Status](https://api.travis-ci.org/ljharb/qs.svg)](http://travis-ci.org/ljharb/qs) - -Lead Maintainer: [Jordan Harband](https://github.com/ljharb) - -The **qs** module was originally created and maintained by [TJ Holowaychuk](https://github.com/visionmedia/node-querystring). - -## Usage - -```javascript -var qs = require('qs'); -var assert = require('assert'); - -var obj = qs.parse('a=c'); -assert.deepEqual(obj, { a: 'c' }); - -var str = qs.stringify(obj); -assert.equal(str, 'a=c'); -``` - -### Parsing Objects - -[](#preventEval) -```javascript -qs.parse(string, [options]); -``` - -**qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`. -For example, the string `'foo[bar]=baz'` converts to: - -```javascript -assert.deepEqual(qs.parse('foo[bar]=baz'), { - foo: { - bar: 'baz' - } -}); -``` - -When using the `plainObjects` option the parsed value is returned as a null object, created via `Object.create(null)` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like: - -```javascript -var nullObject = qs.parse('a[hasOwnProperty]=b', { plainObjects: true }); -assert.deepEqual(nullObject, { a: { hasOwnProperty: 'b' } }); -``` - -By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use `plainObjects` as mentioned above, or set `allowPrototypes` to `true` which will allow user input to overwrite those properties. *WARNING* It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. Always be careful with this option. - -```javascript -var protoObject = qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }); -assert.deepEqual(protoObject, { a: { hasOwnProperty: 'b' } }); -``` - -URI encoded strings work too: - -```javascript -assert.deepEqual(qs.parse('a%5Bb%5D=c'), { - a: { b: 'c' } -}); -``` - -You can also nest your objects, like `'foo[bar][baz]=foobarbaz'`: - -```javascript -assert.deepEqual(qs.parse('foo[bar][baz]=foobarbaz'), { - foo: { - bar: { - baz: 'foobarbaz' - } - } -}); -``` - -By default, when nesting objects **qs** will only parse up to 5 children deep. This means if you attempt to parse a string like -`'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be: - -```javascript -var expected = { - a: { - b: { - c: { - d: { - e: { - f: { - '[g][h][i]': 'j' - } - } - } - } - } - } -}; -var string = 'a[b][c][d][e][f][g][h][i]=j'; -assert.deepEqual(qs.parse(string), expected); -``` - -This depth can be overridden by passing a `depth` option to `qs.parse(string, [options])`: - -```javascript -var deep = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 }); -assert.deepEqual(deep, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } }); -``` - -The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number. - -For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option: - -```javascript -var limited = qs.parse('a=b&c=d', { parameterLimit: 1 }); -assert.deepEqual(limited, { a: 'b' }); -``` - -An optional delimiter can also be passed: - -```javascript -var delimited = qs.parse('a=b;c=d', { delimiter: ';' }); -assert.deepEqual(delimited, { a: 'b', c: 'd' }); -``` - -Delimiters can be a regular expression too: - -```javascript -var regexed = qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ }); -assert.deepEqual(regexed, { a: 'b', c: 'd', e: 'f' }); -``` - -Option `allowDots` can be used to enable dot notation: - -```javascript -var withDots = qs.parse('a.b=c', { allowDots: true }); -assert.deepEqual(withDots, { a: { b: 'c' } }); -``` - -### Parsing Arrays - -**qs** can also parse arrays using a similar `[]` notation: - -```javascript -var withArray = qs.parse('a[]=b&a[]=c'); -assert.deepEqual(withArray, { a: ['b', 'c'] }); -``` - -You may specify an index as well: - -```javascript -var withIndexes = qs.parse('a[1]=c&a[0]=b'); -assert.deepEqual(withIndexes, { a: ['b', 'c'] }); -``` - -Note that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number -to create an array. When creating arrays with specific indices, **qs** will compact a sparse array to only the existing values preserving -their order: - -```javascript -var noSparse = qs.parse('a[1]=b&a[15]=c'); -assert.deepEqual(noSparse, { a: ['b', 'c'] }); -``` - -Note that an empty string is also a value, and will be preserved: - -```javascript -var withEmptyString = qs.parse('a[]=&a[]=b'); -assert.deepEqual(withEmptyString, { a: ['', 'b'] }); - -var withIndexedEmptyString = qs.parse('a[0]=b&a[1]=&a[2]=c'); -assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] }); -``` - -**qs** will also limit specifying indices in an array to a maximum index of `20`. Any array members with an index of greater than `20` will -instead be converted to an object with the index as the key: - -```javascript -var withMaxIndex = qs.parse('a[100]=b'); -assert.deepEqual(withMaxIndex, { a: { '100': 'b' } }); -``` - -This limit can be overridden by passing an `arrayLimit` option: - -```javascript -var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 }); -assert.deepEqual(withArrayLimit, { a: { '1': 'b' } }); -``` - -To disable array parsing entirely, set `parseArrays` to `false`. - -```javascript -var noParsingArrays = qs.parse('a[]=b', { parseArrays: false }); -assert.deepEqual(noParsingArrays, { a: { '0': 'b' } }); -``` - -If you mix notations, **qs** will merge the two items into an object: - -```javascript -var mixedNotation = qs.parse('a[0]=b&a[b]=c'); -assert.deepEqual(mixedNotation, { a: { '0': 'b', b: 'c' } }); -``` - -You can also create arrays of objects: - -```javascript -var arraysOfObjects = qs.parse('a[][b]=c'); -assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] }); -``` - -### Stringifying - -[](#preventEval) -```javascript -qs.stringify(object, [options]); -``` - -When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect: - -```javascript -assert.equal(qs.stringify({ a: 'b' }), 'a=b'); -assert.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); -``` - -This encoding can be disabled by setting the `encode` option to `false`: - -```javascript -var unencoded = qs.stringify({ a: { b: 'c' } }, { encode: false }); -assert.equal(unencoded, 'a[b]=c'); -``` - -This encoding can also be replaced by a custom encoding method set as `encoder` option: - -```javascript -var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) { - // Passed in values `a`, `b`, `c` - return // Return encoded string -}}) -``` - -_(Note: the `encoder` option does not apply if `encode` is `false`)_ - -Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values: - -```javascript -var decoded = qs.parse('x=z', { decoder: function (str) { - // Passed in values `x`, `z` - return // Return decoded string -}}) -``` - -Examples beyond this point will be shown as though the output is not URI encoded for clarity. Please note that the return values in these cases *will* be URI encoded during real usage. - -When arrays are stringified, by default they are given explicit indices: - -```javascript -qs.stringify({ a: ['b', 'c', 'd'] }); -// 'a[0]=b&a[1]=c&a[2]=d' -``` - -You may override this by setting the `indices` option to `false`: - -```javascript -qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }); -// 'a=b&a=c&a=d' -``` - -You may use the `arrayFormat` option to specify the format of the output array: - -```javascript -qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }) -// 'a[0]=b&a[1]=c' -qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }) -// 'a[]=b&a[]=c' -qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }) -// 'a=b&a=c' -``` - -When objects are stringified, by default they use bracket notation: - -```javascript -qs.stringify({ a: { b: { c: 'd', e: 'f' } } }); -// 'a[b][c]=d&a[b][e]=f' -``` - -You may override this to use dot notation by setting the `allowDots` option to `true`: - -```javascript -qs.stringify({ a: { b: { c: 'd', e: 'f' } } }, { allowDots: true }); -// 'a.b.c=d&a.b.e=f' -``` - -Empty strings and null values will omit the value, but the equals sign (=) remains in place: - -```javascript -assert.equal(qs.stringify({ a: '' }), 'a='); -``` - -Key with no values (such as an empty object or array) will return nothing: - -```javascript -assert.equal(qs.stringify({ a: [] }), ''); -assert.equal(qs.stringify({ a: {} }), ''); -assert.equal(qs.stringify({ a: [{}] }), ''); -assert.equal(qs.stringify({ a: { b: []} }), ''); -assert.equal(qs.stringify({ a: { b: {}} }), ''); -``` - -Properties that are set to `undefined` will be omitted entirely: - -```javascript -assert.equal(qs.stringify({ a: null, b: undefined }), 'a='); -``` - -The delimiter may be overridden with stringify as well: - -```javascript -assert.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d'); -``` - -If you only want to override the serialization of `Date` objects, you can provide a `serializeDate` option: - -```javascript -var date = new Date(7); -assert.equal(qs.stringify({ a: date }), 'a=1970-01-01T00:00:00.007Z'.replace(/:/g, '%3A')); -assert.equal( - qs.stringify({ a: date }, { serializeDate: function (d) { return d.getTime(); } }), - 'a=7' -); -``` - -You may use the `sort` option to affect the order of parameter keys: - -```javascript -function alphabeticalSort(a, b) { - return a.localeCompare(b); -} -assert.equal(qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort: alphabeticalSort }), 'a=c&b=f&z=y'); -``` - -Finally, you can use the `filter` option to restrict which keys will be included in the stringified output. -If you pass a function, it will be called for each key to obtain the replacement value. Otherwise, if you -pass an array, it will be used to select properties and array indices for stringification: - -```javascript -function filterFunc(prefix, value) { - if (prefix == 'b') { - // Return an `undefined` value to omit a property. - return; - } - if (prefix == 'e[f]') { - return value.getTime(); - } - if (prefix == 'e[g][0]') { - return value * 2; - } - return value; -} -qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc }); -// 'a=b&c=d&e[f]=123&e[g][0]=4' -qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] }); -// 'a=b&e=f' -qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] }); -// 'a[0]=b&a[2]=d' -``` - -### Handling of `null` values - -By default, `null` values are treated like empty strings: - -```javascript -var withNull = qs.stringify({ a: null, b: '' }); -assert.equal(withNull, 'a=&b='); -``` - -Parsing does not distinguish between parameters with and without equal signs. Both are converted to empty strings. - -```javascript -var equalsInsensitive = qs.parse('a&b='); -assert.deepEqual(equalsInsensitive, { a: '', b: '' }); -``` - -To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null` -values have no `=` sign: - -```javascript -var strictNull = qs.stringify({ a: null, b: '' }, { strictNullHandling: true }); -assert.equal(strictNull, 'a&b='); -``` - -To parse values without `=` back to `null` use the `strictNullHandling` flag: - -```javascript -var parsedStrictNull = qs.parse('a&b=', { strictNullHandling: true }); -assert.deepEqual(parsedStrictNull, { a: null, b: '' }); -``` - -To completely skip rendering keys with `null` values, use the `skipNulls` flag: - -```javascript -var nullsSkipped = qs.stringify({ a: 'b', c: null}, { skipNulls: true }); -assert.equal(nullsSkipped, 'a=b'); -``` - -### Dealing with special character sets - -By default the encoding and decoding of characters is done in `utf-8`. If you -wish to encode querystrings to a different character set (i.e. -[Shift JIS](https://en.wikipedia.org/wiki/Shift_JIS)) you can use the -[`qs-iconv`](https://github.com/martinheidegger/qs-iconv) library: - -```javascript -var encoder = require('qs-iconv/encoder')('shift_jis'); -var shiftJISEncoded = qs.stringify({ a: 'こんにちは!' }, { encoder: encoder }); -assert.equal(shiftJISEncoded, 'a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I'); -``` - -This also works for decoding of query strings: - -```javascript -var decoder = require('qs-iconv/decoder')('shift_jis'); -var obj = qs.parse('a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I', { decoder: decoder }); -assert.deepEqual(obj, { a: 'こんにちは!' }); -``` - -### RFC 3986 and RFC 1738 space encoding - -RFC3986 used as default option and encodes ' ' to *%20* which is backward compatible. -In the same time, output can be stringified as per RFC1738 with ' ' equal to '+'. - -``` -assert.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); -assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c'); -assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c'); -``` diff --git a/node_modules/qs/dist/qs.js b/node_modules/qs/dist/qs.js deleted file mode 100644 index 3d2c211..0000000 --- a/node_modules/qs/dist/qs.js +++ /dev/null @@ -1,587 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o= 0 && - (options.parseArrays && index <= options.arrayLimit) - ) { - obj = []; - obj[index] = parseObject(chain, val, options); - } else { - obj[cleanRoot] = parseObject(chain, val, options); - } - } - - return obj; -}; - -var parseKeys = function parseQueryStringKeys(givenKey, val, options) { - if (!givenKey) { - return; - } - - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - - // The regex chunks - - var parent = /^([^[]*)/; - var child = /(\[[^[\]]*])/g; - - // Get the parent - - var segment = parent.exec(key); - - // Stash the parent if it exists - - var keys = []; - if (segment[1]) { - // If we aren't using plain objects, optionally prefix keys - // that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, segment[1])) { - if (!options.allowPrototypes) { - return; - } - } - - keys.push(segment[1]); - } - - // Loop through children appending to the array until we hit depth - - var i = 0; - while ((segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(segment[1]); - } - - // If there's a remainder, just add whatever is left - - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } - - return parseObject(keys, val, options); -}; - -module.exports = function (str, opts) { - var options = opts || {}; - - if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } - - options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter; - options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth; - options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit; - options.parseArrays = options.parseArrays !== false; - options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder; - options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots; - options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects; - options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes; - options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit; - options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling; - - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } - - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; - - // Iterate over the keys and setup the new object - - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options); - obj = utils.merge(obj, newObj, options); - } - - return utils.compact(obj); -}; - -},{"./utils":5}],4:[function(require,module,exports){ -'use strict'; - -var utils = require('./utils'); -var formats = require('./formats'); - -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { // eslint-disable-line func-name-matching - return prefix + '[]'; - }, - indices: function indices(prefix, key) { // eslint-disable-line func-name-matching - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { // eslint-disable-line func-name-matching - return prefix; - } -}; - -var toISO = Date.prototype.toISOString; - -var defaults = { - delimiter: '&', - encode: true, - encoder: utils.encode, - serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; - -var stringify = function stringify( // eslint-disable-line func-name-matching - object, - prefix, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter -) { - var obj = object; - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (obj === null) { - if (strictNullHandling) { - return encoder ? encoder(prefix) : prefix; - } - - obj = ''; - } - - if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) { - if (encoder) { - return [formatter(encoder(prefix)) + '=' + formatter(encoder(obj))]; - } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - - var values = []; - - if (typeof obj === 'undefined') { - return values; - } - - var objKeys; - if (Array.isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (skipNulls && obj[key] === null) { - continue; - } - - if (Array.isArray(obj)) { - values = values.concat(stringify( - obj[key], - generateArrayPrefix(prefix, key), - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter - )); - } else { - values = values.concat(stringify( - obj[key], - prefix + (allowDots ? '.' + key : '[' + key + ']'), - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter - )); - } - } - - return values; -}; - -module.exports = function (object, opts) { - var obj = object; - var options = opts || {}; - - if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } - - var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter; - var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling; - var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls; - var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode; - var encoder = encode ? (typeof options.encoder === 'function' ? options.encoder : defaults.encoder) : null; - var sort = typeof options.sort === 'function' ? options.sort : null; - var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots; - var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate; - if (typeof options.format === 'undefined') { - options.format = formats.default; - } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) { - throw new TypeError('Unknown format option provided.'); - } - var formatter = formats.formatters[options.format]; - var objKeys; - var filter; - - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (Array.isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - - var keys = []; - - if (typeof obj !== 'object' || obj === null) { - return ''; - } - - var arrayFormat; - if (options.arrayFormat in arrayPrefixGenerators) { - arrayFormat = options.arrayFormat; - } else if ('indices' in options) { - arrayFormat = options.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = 'indices'; - } - - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - - if (!objKeys) { - objKeys = Object.keys(obj); - } - - if (sort) { - objKeys.sort(sort); - } - - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (skipNulls && obj[key] === null) { - continue; - } - - keys = keys.concat(stringify( - obj[key], - key, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter - )); - } - - return keys.join(delimiter); -}; - -},{"./formats":1,"./utils":5}],5:[function(require,module,exports){ -'use strict'; - -var has = Object.prototype.hasOwnProperty; - -var hexTable = (function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - - return array; -}()); - -exports.arrayToObject = function (source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } - - return obj; -}; - -exports.merge = function (target, source, options) { - if (!source) { - return target; - } - - if (typeof source !== 'object') { - if (Array.isArray(target)) { - target.push(source); - } else if (typeof target === 'object') { - target[source] = true; - } else { - return [target, source]; - } - - return target; - } - - if (typeof target !== 'object') { - return [target].concat(source); - } - - var mergeTarget = target; - if (Array.isArray(target) && !Array.isArray(source)) { - mergeTarget = exports.arrayToObject(target, options); - } - - if (Array.isArray(target) && Array.isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - if (target[i] && typeof target[i] === 'object') { - target[i] = exports.merge(target[i], item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; - } - - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; - - if (Object.prototype.hasOwnProperty.call(acc, key)) { - acc[key] = exports.merge(acc[key], value, options); - } else { - acc[key] = value; - } - return acc; - }, mergeTarget); -}; - -exports.decode = function (str) { - try { - return decodeURIComponent(str.replace(/\+/g, ' ')); - } catch (e) { - return str; - } -}; - -exports.encode = function (str) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - - var string = typeof str === 'string' ? str : String(str); - - var out = ''; - for (var i = 0; i < string.length; ++i) { - var c = string.charCodeAt(i); - - if ( - c === 0x2D || // - - c === 0x2E || // . - c === 0x5F || // _ - c === 0x7E || // ~ - (c >= 0x30 && c <= 0x39) || // 0-9 - (c >= 0x41 && c <= 0x5A) || // a-z - (c >= 0x61 && c <= 0x7A) // A-Z - ) { - out += string.charAt(i); - continue; - } - - if (c < 0x80) { - out = out + hexTable[c]; - continue; - } - - if (c < 0x800) { - out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - if (c < 0xD800 || c >= 0xE000) { - out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - i += 1; - c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); - out += hexTable[0xF0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3F)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]; // eslint-disable-line max-len - } - - return out; -}; - -exports.compact = function (obj, references) { - if (typeof obj !== 'object' || obj === null) { - return obj; - } - - var refs = references || []; - var lookup = refs.indexOf(obj); - if (lookup !== -1) { - return refs[lookup]; - } - - refs.push(obj); - - if (Array.isArray(obj)) { - var compacted = []; - - for (var i = 0; i < obj.length; ++i) { - if (obj[i] && typeof obj[i] === 'object') { - compacted.push(exports.compact(obj[i], refs)); - } else if (typeof obj[i] !== 'undefined') { - compacted.push(obj[i]); - } - } - - return compacted; - } - - var keys = Object.keys(obj); - keys.forEach(function (key) { - obj[key] = exports.compact(obj[key], refs); - }); - - return obj; -}; - -exports.isRegExp = function (obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; - -exports.isBuffer = function (obj) { - if (obj === null || typeof obj === 'undefined') { - return false; - } - - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; - -},{}]},{},[2])(2) -}); \ No newline at end of file diff --git a/node_modules/qs/lib/formats.js b/node_modules/qs/lib/formats.js deleted file mode 100644 index df45997..0000000 --- a/node_modules/qs/lib/formats.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -var replace = String.prototype.replace; -var percentTwenties = /%20/g; - -module.exports = { - 'default': 'RFC3986', - formatters: { - RFC1738: function (value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function (value) { - return value; - } - }, - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' -}; diff --git a/node_modules/qs/lib/index.js b/node_modules/qs/lib/index.js deleted file mode 100755 index 0d6a97d..0000000 --- a/node_modules/qs/lib/index.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -var stringify = require('./stringify'); -var parse = require('./parse'); -var formats = require('./formats'); - -module.exports = { - formats: formats, - parse: parse, - stringify: stringify -}; diff --git a/node_modules/qs/lib/parse.js b/node_modules/qs/lib/parse.js deleted file mode 100755 index 9530ad4..0000000 --- a/node_modules/qs/lib/parse.js +++ /dev/null @@ -1,166 +0,0 @@ -'use strict'; - -var utils = require('./utils'); - -var has = Object.prototype.hasOwnProperty; - -var defaults = { - allowDots: false, - allowPrototypes: false, - arrayLimit: 20, - decoder: utils.decode, - delimiter: '&', - depth: 5, - parameterLimit: 1000, - plainObjects: false, - strictNullHandling: false -}; - -var parseValues = function parseQueryStringValues(str, options) { - var obj = {}; - var parts = str.split(options.delimiter, options.parameterLimit === Infinity ? undefined : options.parameterLimit); - - for (var i = 0; i < parts.length; ++i) { - var part = parts[i]; - var pos = part.indexOf(']=') === -1 ? part.indexOf('=') : part.indexOf(']=') + 1; - - var key, val; - if (pos === -1) { - key = options.decoder(part); - val = options.strictNullHandling ? null : ''; - } else { - key = options.decoder(part.slice(0, pos)); - val = options.decoder(part.slice(pos + 1)); - } - if (has.call(obj, key)) { - obj[key] = [].concat(obj[key]).concat(val); - } else { - obj[key] = val; - } - } - - return obj; -}; - -var parseObject = function parseObjectRecursive(chain, val, options) { - if (!chain.length) { - return val; - } - - var root = chain.shift(); - - var obj; - if (root === '[]') { - obj = []; - obj = obj.concat(parseObject(chain, val, options)); - } else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; - var index = parseInt(cleanRoot, 10); - if ( - !isNaN(index) && - root !== cleanRoot && - String(index) === cleanRoot && - index >= 0 && - (options.parseArrays && index <= options.arrayLimit) - ) { - obj = []; - obj[index] = parseObject(chain, val, options); - } else { - obj[cleanRoot] = parseObject(chain, val, options); - } - } - - return obj; -}; - -var parseKeys = function parseQueryStringKeys(givenKey, val, options) { - if (!givenKey) { - return; - } - - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; - - // The regex chunks - - var parent = /^([^[]*)/; - var child = /(\[[^[\]]*])/g; - - // Get the parent - - var segment = parent.exec(key); - - // Stash the parent if it exists - - var keys = []; - if (segment[1]) { - // If we aren't using plain objects, optionally prefix keys - // that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, segment[1])) { - if (!options.allowPrototypes) { - return; - } - } - - keys.push(segment[1]); - } - - // Loop through children appending to the array until we hit depth - - var i = 0; - while ((segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(segment[1]); - } - - // If there's a remainder, just add whatever is left - - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } - - return parseObject(keys, val, options); -}; - -module.exports = function (str, opts) { - var options = opts || {}; - - if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } - - options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter; - options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth; - options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit; - options.parseArrays = options.parseArrays !== false; - options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder; - options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots; - options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects; - options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes; - options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit; - options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling; - - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } - - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; - - // Iterate over the keys and setup the new object - - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options); - obj = utils.merge(obj, newObj, options); - } - - return utils.compact(obj); -}; diff --git a/node_modules/qs/lib/stringify.js b/node_modules/qs/lib/stringify.js deleted file mode 100755 index 8b5c848..0000000 --- a/node_modules/qs/lib/stringify.js +++ /dev/null @@ -1,200 +0,0 @@ -'use strict'; - -var utils = require('./utils'); -var formats = require('./formats'); - -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { // eslint-disable-line func-name-matching - return prefix + '[]'; - }, - indices: function indices(prefix, key) { // eslint-disable-line func-name-matching - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { // eslint-disable-line func-name-matching - return prefix; - } -}; - -var toISO = Date.prototype.toISOString; - -var defaults = { - delimiter: '&', - encode: true, - encoder: utils.encode, - serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; - -var stringify = function stringify( // eslint-disable-line func-name-matching - object, - prefix, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter -) { - var obj = object; - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (obj === null) { - if (strictNullHandling) { - return encoder ? encoder(prefix) : prefix; - } - - obj = ''; - } - - if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) { - if (encoder) { - return [formatter(encoder(prefix)) + '=' + formatter(encoder(obj))]; - } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - - var values = []; - - if (typeof obj === 'undefined') { - return values; - } - - var objKeys; - if (Array.isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (skipNulls && obj[key] === null) { - continue; - } - - if (Array.isArray(obj)) { - values = values.concat(stringify( - obj[key], - generateArrayPrefix(prefix, key), - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter - )); - } else { - values = values.concat(stringify( - obj[key], - prefix + (allowDots ? '.' + key : '[' + key + ']'), - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter - )); - } - } - - return values; -}; - -module.exports = function (object, opts) { - var obj = object; - var options = opts || {}; - - if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } - - var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter; - var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling; - var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls; - var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode; - var encoder = encode ? (typeof options.encoder === 'function' ? options.encoder : defaults.encoder) : null; - var sort = typeof options.sort === 'function' ? options.sort : null; - var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots; - var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate; - if (typeof options.format === 'undefined') { - options.format = formats.default; - } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) { - throw new TypeError('Unknown format option provided.'); - } - var formatter = formats.formatters[options.format]; - var objKeys; - var filter; - - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (Array.isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - - var keys = []; - - if (typeof obj !== 'object' || obj === null) { - return ''; - } - - var arrayFormat; - if (options.arrayFormat in arrayPrefixGenerators) { - arrayFormat = options.arrayFormat; - } else if ('indices' in options) { - arrayFormat = options.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = 'indices'; - } - - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - - if (!objKeys) { - objKeys = Object.keys(obj); - } - - if (sort) { - objKeys.sort(sort); - } - - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - - if (skipNulls && obj[key] === null) { - continue; - } - - keys = keys.concat(stringify( - obj[key], - key, - generateArrayPrefix, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - formatter - )); - } - - return keys.join(delimiter); -}; diff --git a/node_modules/qs/lib/utils.js b/node_modules/qs/lib/utils.js deleted file mode 100755 index 0d410c6..0000000 --- a/node_modules/qs/lib/utils.js +++ /dev/null @@ -1,180 +0,0 @@ -'use strict'; - -var has = Object.prototype.hasOwnProperty; - -var hexTable = (function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - - return array; -}()); - -exports.arrayToObject = function (source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } - - return obj; -}; - -exports.merge = function (target, source, options) { - if (!source) { - return target; - } - - if (typeof source !== 'object') { - if (Array.isArray(target)) { - target.push(source); - } else if (typeof target === 'object') { - target[source] = true; - } else { - return [target, source]; - } - - return target; - } - - if (typeof target !== 'object') { - return [target].concat(source); - } - - var mergeTarget = target; - if (Array.isArray(target) && !Array.isArray(source)) { - mergeTarget = exports.arrayToObject(target, options); - } - - if (Array.isArray(target) && Array.isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - if (target[i] && typeof target[i] === 'object') { - target[i] = exports.merge(target[i], item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; - } - - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; - - if (Object.prototype.hasOwnProperty.call(acc, key)) { - acc[key] = exports.merge(acc[key], value, options); - } else { - acc[key] = value; - } - return acc; - }, mergeTarget); -}; - -exports.decode = function (str) { - try { - return decodeURIComponent(str.replace(/\+/g, ' ')); - } catch (e) { - return str; - } -}; - -exports.encode = function (str) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - - var string = typeof str === 'string' ? str : String(str); - - var out = ''; - for (var i = 0; i < string.length; ++i) { - var c = string.charCodeAt(i); - - if ( - c === 0x2D || // - - c === 0x2E || // . - c === 0x5F || // _ - c === 0x7E || // ~ - (c >= 0x30 && c <= 0x39) || // 0-9 - (c >= 0x41 && c <= 0x5A) || // a-z - (c >= 0x61 && c <= 0x7A) // A-Z - ) { - out += string.charAt(i); - continue; - } - - if (c < 0x80) { - out = out + hexTable[c]; - continue; - } - - if (c < 0x800) { - out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - if (c < 0xD800 || c >= 0xE000) { - out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); - continue; - } - - i += 1; - c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); - out += hexTable[0xF0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3F)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]; // eslint-disable-line max-len - } - - return out; -}; - -exports.compact = function (obj, references) { - if (typeof obj !== 'object' || obj === null) { - return obj; - } - - var refs = references || []; - var lookup = refs.indexOf(obj); - if (lookup !== -1) { - return refs[lookup]; - } - - refs.push(obj); - - if (Array.isArray(obj)) { - var compacted = []; - - for (var i = 0; i < obj.length; ++i) { - if (obj[i] && typeof obj[i] === 'object') { - compacted.push(exports.compact(obj[i], refs)); - } else if (typeof obj[i] !== 'undefined') { - compacted.push(obj[i]); - } - } - - return compacted; - } - - var keys = Object.keys(obj); - keys.forEach(function (key) { - obj[key] = exports.compact(obj[key], refs); - }); - - return obj; -}; - -exports.isRegExp = function (obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; - -exports.isBuffer = function (obj) { - if (obj === null || typeof obj === 'undefined') { - return false; - } - - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; diff --git a/node_modules/qs/package.json b/node_modules/qs/package.json deleted file mode 100644 index 1ed4222..0000000 --- a/node_modules/qs/package.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "qs@~6.3.0", - "scope": null, - "escapedName": "qs", - "name": "qs", - "rawSpec": "~6.3.0", - "spec": ">=6.3.0 <6.4.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/request" - ] - ], - "_from": "qs@>=6.3.0 <6.4.0", - "_id": "qs@6.3.1", - "_inCache": true, - "_location": "/qs", - "_nodeVersion": "7.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/qs-6.3.1.tgz_1487220058786_0.35462796757929027" - }, - "_npmUser": { - "name": "ljharb", - "email": "ljharb@gmail.com" - }, - "_npmVersion": "4.1.2", - "_phantomChildren": {}, - "_requested": { - "raw": "qs@~6.3.0", - "scope": null, - "escapedName": "qs", - "name": "qs", - "rawSpec": "~6.3.0", - "spec": ">=6.3.0 <6.4.0", - "type": "range" - }, - "_requiredBy": [ - "/request" - ], - "_resolved": "https://registry.npmjs.org/qs/-/qs-6.3.1.tgz", - "_shasum": "918c0b3bcd36679772baf135b1acb4c1651ed79d", - "_shrinkwrap": null, - "_spec": "qs@~6.3.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/request", - "bugs": { - "url": "https://github.com/ljharb/qs/issues" - }, - "contributors": [ - { - "name": "Jordan Harband", - "email": "ljharb@gmail.com", - "url": "http://ljharb.codes" - } - ], - "dependencies": {}, - "description": "A querystring parser that supports nesting and arrays, with a depth limit", - "devDependencies": { - "@ljharb/eslint-config": "^11.0.0", - "browserify": "^14.1.0", - "covert": "^1.1.0", - "eslint": "^3.15.0", - "evalmd": "^0.0.17", - "iconv-lite": "^0.4.15", - "mkdirp": "^0.5.1", - "parallelshell": "^2.0.0", - "qs-iconv": "^1.0.4", - "safe-publish-latest": "^1.1.1", - "tape": "^4.6.3" - }, - "directories": {}, - "dist": { - "shasum": "918c0b3bcd36679772baf135b1acb4c1651ed79d", - "tarball": "https://registry.npmjs.org/qs/-/qs-6.3.1.tgz" - }, - "engines": { - "node": ">=0.6" - }, - "gitHead": "153ce84948845330d90178cbad982fc7371df538", - "homepage": "https://github.com/ljharb/qs", - "keywords": [ - "querystring", - "qs" - ], - "license": "BSD-3-Clause", - "main": "lib/index.js", - "maintainers": [ - { - "name": "hueniverse", - "email": "eran@hammer.io" - }, - { - "name": "ljharb", - "email": "ljharb@gmail.com" - }, - { - "name": "nlf", - "email": "quitlahok@gmail.com" - } - ], - "name": "qs", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/ljharb/qs.git" - }, - "scripts": { - "coverage": "covert test", - "dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js", - "lint": "eslint lib/*.js test/*.js", - "prepublish": "safe-publish-latest && npm run dist", - "pretest": "npm run --silent readme && npm run --silent lint", - "readme": "evalmd README.md", - "test": "npm run --silent coverage", - "tests-only": "node test" - }, - "version": "6.3.1" -} diff --git a/node_modules/qs/test/.eslintrc b/node_modules/qs/test/.eslintrc deleted file mode 100644 index 1b6df61..0000000 --- a/node_modules/qs/test/.eslintrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "rules": { - "consistent-return": 2, - "max-lines": 0, - "max-nested-callbacks": [2, 3], - "max-statements": 0, - "no-extend-native": 0, - "sort-keys": 1 - } -} diff --git a/node_modules/qs/test/index.js b/node_modules/qs/test/index.js deleted file mode 100644 index 5e6bc8f..0000000 --- a/node_modules/qs/test/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -require('./parse'); - -require('./stringify'); - -require('./utils'); diff --git a/node_modules/qs/test/parse.js b/node_modules/qs/test/parse.js deleted file mode 100755 index 84e06b6..0000000 --- a/node_modules/qs/test/parse.js +++ /dev/null @@ -1,484 +0,0 @@ -'use strict'; - -var test = require('tape'); -var qs = require('../'); -var iconv = require('iconv-lite'); - -test('parse()', function (t) { - t.test('parses a simple string', function (st) { - st.deepEqual(qs.parse('0=foo'), { 0: 'foo' }); - st.deepEqual(qs.parse('foo=c++'), { foo: 'c ' }); - st.deepEqual(qs.parse('a[>=]=23'), { a: { '>=': '23' } }); - st.deepEqual(qs.parse('a[<=>]==23'), { a: { '<=>': '=23' } }); - st.deepEqual(qs.parse('a[==]=23'), { a: { '==': '23' } }); - st.deepEqual(qs.parse('foo', { strictNullHandling: true }), { foo: null }); - st.deepEqual(qs.parse('foo'), { foo: '' }); - st.deepEqual(qs.parse('foo='), { foo: '' }); - st.deepEqual(qs.parse('foo=bar'), { foo: 'bar' }); - st.deepEqual(qs.parse(' foo = bar = baz '), { ' foo ': ' bar = baz ' }); - st.deepEqual(qs.parse('foo=bar=baz'), { foo: 'bar=baz' }); - st.deepEqual(qs.parse('foo=bar&bar=baz'), { foo: 'bar', bar: 'baz' }); - st.deepEqual(qs.parse('foo2=bar2&baz2='), { foo2: 'bar2', baz2: '' }); - st.deepEqual(qs.parse('foo=bar&baz', { strictNullHandling: true }), { foo: 'bar', baz: null }); - st.deepEqual(qs.parse('foo=bar&baz'), { foo: 'bar', baz: '' }); - st.deepEqual(qs.parse('cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World'), { - cht: 'p3', - chd: 't:60,40', - chs: '250x100', - chl: 'Hello|World' - }); - st.end(); - }); - - t.test('allows enabling dot notation', function (st) { - st.deepEqual(qs.parse('a.b=c'), { 'a.b': 'c' }); - st.deepEqual(qs.parse('a.b=c', { allowDots: true }), { a: { b: 'c' } }); - st.end(); - }); - - t.deepEqual(qs.parse('a[b]=c'), { a: { b: 'c' } }, 'parses a single nested string'); - t.deepEqual(qs.parse('a[b][c]=d'), { a: { b: { c: 'd' } } }, 'parses a double nested string'); - t.deepEqual( - qs.parse('a[b][c][d][e][f][g][h]=i'), - { a: { b: { c: { d: { e: { f: { '[g][h]': 'i' } } } } } } }, - 'defaults to a depth of 5' - ); - - t.test('only parses one level when depth = 1', function (st) { - st.deepEqual(qs.parse('a[b][c]=d', { depth: 1 }), { a: { b: { '[c]': 'd' } } }); - st.deepEqual(qs.parse('a[b][c][d]=e', { depth: 1 }), { a: { b: { '[c][d]': 'e' } } }); - st.end(); - }); - - t.deepEqual(qs.parse('a=b&a=c'), { a: ['b', 'c'] }, 'parses a simple array'); - - t.test('parses an explicit array', function (st) { - st.deepEqual(qs.parse('a[]=b'), { a: ['b'] }); - st.deepEqual(qs.parse('a[]=b&a[]=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[]=b&a[]=c&a[]=d'), { a: ['b', 'c', 'd'] }); - st.end(); - }); - - t.test('parses a mix of simple and explicit arrays', function (st) { - st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[0]=b&a=c'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b&a[0]=c'), { a: ['b', 'c'] }); - - st.deepEqual(qs.parse('a[1]=b&a=c', { arrayLimit: 20 }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[]=b&a=c', { arrayLimit: 0 }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] }); - - st.deepEqual(qs.parse('a=b&a[1]=c', { arrayLimit: 20 }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b&a[]=c', { arrayLimit: 0 }), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] }); - - st.end(); - }); - - t.test('parses a nested array', function (st) { - st.deepEqual(qs.parse('a[b][]=c&a[b][]=d'), { a: { b: ['c', 'd'] } }); - st.deepEqual(qs.parse('a[>=]=25'), { a: { '>=': '25' } }); - st.end(); - }); - - t.test('allows to specify array indices', function (st) { - st.deepEqual(qs.parse('a[1]=c&a[0]=b&a[2]=d'), { a: ['b', 'c', 'd'] }); - st.deepEqual(qs.parse('a[1]=c&a[0]=b'), { a: ['b', 'c'] }); - st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 20 }), { a: ['c'] }); - st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 0 }), { a: { 1: 'c' } }); - st.deepEqual(qs.parse('a[1]=c'), { a: ['c'] }); - st.end(); - }); - - t.test('limits specific array indices to arrayLimit', function (st) { - st.deepEqual(qs.parse('a[20]=a', { arrayLimit: 20 }), { a: ['a'] }); - st.deepEqual(qs.parse('a[21]=a', { arrayLimit: 20 }), { a: { 21: 'a' } }); - st.end(); - }); - - t.deepEqual(qs.parse('a[12b]=c'), { a: { '12b': 'c' } }, 'supports keys that begin with a number'); - - t.test('supports encoded = signs', function (st) { - st.deepEqual(qs.parse('he%3Dllo=th%3Dere'), { 'he=llo': 'th=ere' }); - st.end(); - }); - - t.test('is ok with url encoded strings', function (st) { - st.deepEqual(qs.parse('a[b%20c]=d'), { a: { 'b c': 'd' } }); - st.deepEqual(qs.parse('a[b]=c%20d'), { a: { b: 'c d' } }); - st.end(); - }); - - t.test('allows brackets in the value', function (st) { - st.deepEqual(qs.parse('pets=["tobi"]'), { pets: '["tobi"]' }); - st.deepEqual(qs.parse('operators=[">=", "<="]'), { operators: '[">=", "<="]' }); - st.end(); - }); - - t.test('allows empty values', function (st) { - st.deepEqual(qs.parse(''), {}); - st.deepEqual(qs.parse(null), {}); - st.deepEqual(qs.parse(undefined), {}); - st.end(); - }); - - t.test('transforms arrays to objects', function (st) { - st.deepEqual(qs.parse('foo[0]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } }); - st.deepEqual(qs.parse('foo[bad]=baz&foo[0]=bar'), { foo: { bad: 'baz', 0: 'bar' } }); - st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar'), { foo: { bad: 'baz', 0: 'bar' } }); - st.deepEqual(qs.parse('foo[]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } }); - st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar&foo[]=foo'), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } }); - st.deepEqual(qs.parse('foo[0][a]=a&foo[0][b]=b&foo[1][a]=aa&foo[1][b]=bb'), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] }); - - st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: false }), { a: { 0: 'b', t: 'u' } }); - st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: true }), { a: { 0: 'b', t: 'u', hasOwnProperty: 'c' } }); - st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: false }), { a: { 0: 'b', x: 'y' } }); - st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: true }), { a: { 0: 'b', hasOwnProperty: 'c', x: 'y' } }); - st.end(); - }); - - t.test('transforms arrays to objects (dot notation)', function (st) { - st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: 'baz' } }); - st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad.boo=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: { boo: 'baz' } } }); - st.deepEqual(qs.parse('foo[0][0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [[{ baz: 'bar' }]], fool: { bad: 'baz' } }); - st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15'], bar: '2' }] }); - st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].baz[1]=16&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15', '16'], bar: '2' }] }); - st.deepEqual(qs.parse('foo.bad=baz&foo[0]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } }); - st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } }); - st.deepEqual(qs.parse('foo[]=bar&foo.bad=baz', { allowDots: true }), { foo: { 0: 'bar', bad: 'baz' } }); - st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar&foo[]=foo', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } }); - st.deepEqual(qs.parse('foo[0].a=a&foo[0].b=b&foo[1].a=aa&foo[1].b=bb', { allowDots: true }), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] }); - st.end(); - }); - - t.deepEqual(qs.parse('a[b]=c&a=d'), { a: { b: 'c', d: true } }, 'can add keys to objects'); - - t.test('correctly prunes undefined values when converting an array to an object', function (st) { - st.deepEqual(qs.parse('a[2]=b&a[99999999]=c'), { a: { 2: 'b', 99999999: 'c' } }); - st.end(); - }); - - t.test('supports malformed uri characters', function (st) { - st.deepEqual(qs.parse('{%:%}', { strictNullHandling: true }), { '{%:%}': null }); - st.deepEqual(qs.parse('{%:%}='), { '{%:%}': '' }); - st.deepEqual(qs.parse('foo=%:%}'), { foo: '%:%}' }); - st.end(); - }); - - t.test('doesn\'t produce empty keys', function (st) { - st.deepEqual(qs.parse('_r=1&'), { _r: '1' }); - st.end(); - }); - - t.test('cannot access Object prototype', function (st) { - qs.parse('constructor[prototype][bad]=bad'); - qs.parse('bad[constructor][prototype][bad]=bad'); - st.equal(typeof Object.prototype.bad, 'undefined'); - st.end(); - }); - - t.test('parses arrays of objects', function (st) { - st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] }); - st.deepEqual(qs.parse('a[0][b]=c'), { a: [{ b: 'c' }] }); - st.end(); - }); - - t.test('allows for empty strings in arrays', function (st) { - st.deepEqual(qs.parse('a[]=b&a[]=&a[]=c'), { a: ['b', '', 'c'] }); - - st.deepEqual( - qs.parse('a[0]=b&a[1]&a[2]=c&a[19]=', { strictNullHandling: true, arrayLimit: 20 }), - { a: ['b', null, 'c', ''] }, - 'with arrayLimit 20 + array indices: null then empty string works' - ); - st.deepEqual( - qs.parse('a[]=b&a[]&a[]=c&a[]=', { strictNullHandling: true, arrayLimit: 0 }), - { a: ['b', null, 'c', ''] }, - 'with arrayLimit 0 + array brackets: null then empty string works' - ); - - st.deepEqual( - qs.parse('a[0]=b&a[1]=&a[2]=c&a[19]', { strictNullHandling: true, arrayLimit: 20 }), - { a: ['b', '', 'c', null] }, - 'with arrayLimit 20 + array indices: empty string then null works' - ); - st.deepEqual( - qs.parse('a[]=b&a[]=&a[]=c&a[]', { strictNullHandling: true, arrayLimit: 0 }), - { a: ['b', '', 'c', null] }, - 'with arrayLimit 0 + array brackets: empty string then null works' - ); - - st.deepEqual( - qs.parse('a[]=&a[]=b&a[]=c'), - { a: ['', 'b', 'c'] }, - 'array brackets: empty strings work' - ); - st.end(); - }); - - t.test('compacts sparse arrays', function (st) { - st.deepEqual(qs.parse('a[10]=1&a[2]=2', { arrayLimit: 20 }), { a: ['2', '1'] }); - st.deepEqual(qs.parse('a[1][b][2][c]=1', { arrayLimit: 20 }), { a: [{ b: [{ c: '1' }] }] }); - st.deepEqual(qs.parse('a[1][2][3][c]=1', { arrayLimit: 20 }), { a: [[[{ c: '1' }]]] }); - st.deepEqual(qs.parse('a[1][2][3][c][1]=1', { arrayLimit: 20 }), { a: [[[{ c: ['1'] }]]] }); - st.end(); - }); - - t.test('parses semi-parsed strings', function (st) { - st.deepEqual(qs.parse({ 'a[b]': 'c' }), { a: { b: 'c' } }); - st.deepEqual(qs.parse({ 'a[b]': 'c', 'a[d]': 'e' }), { a: { b: 'c', d: 'e' } }); - st.end(); - }); - - t.test('parses buffers correctly', function (st) { - var b = new Buffer('test'); - st.deepEqual(qs.parse({ a: b }), { a: b }); - st.end(); - }); - - t.test('continues parsing when no parent is found', function (st) { - st.deepEqual(qs.parse('[]=&a=b'), { 0: '', a: 'b' }); - st.deepEqual(qs.parse('[]&a=b', { strictNullHandling: true }), { 0: null, a: 'b' }); - st.deepEqual(qs.parse('[foo]=bar'), { foo: 'bar' }); - st.end(); - }); - - t.test('does not error when parsing a very long array', function (st) { - var str = 'a[]=a'; - while (Buffer.byteLength(str) < 128 * 1024) { - str = str + '&' + str; - } - - st.doesNotThrow(function () { - qs.parse(str); - }); - - st.end(); - }); - - t.test('should not throw when a native prototype has an enumerable property', { parallel: false }, function (st) { - Object.prototype.crash = ''; - Array.prototype.crash = ''; - st.doesNotThrow(qs.parse.bind(null, 'a=b')); - st.deepEqual(qs.parse('a=b'), { a: 'b' }); - st.doesNotThrow(qs.parse.bind(null, 'a[][b]=c')); - st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] }); - delete Object.prototype.crash; - delete Array.prototype.crash; - st.end(); - }); - - t.test('parses a string with an alternative string delimiter', function (st) { - st.deepEqual(qs.parse('a=b;c=d', { delimiter: ';' }), { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('parses a string with an alternative RegExp delimiter', function (st) { - st.deepEqual(qs.parse('a=b; c=d', { delimiter: /[;,] */ }), { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('does not use non-splittable objects as delimiters', function (st) { - st.deepEqual(qs.parse('a=b&c=d', { delimiter: true }), { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('allows overriding parameter limit', function (st) { - st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: 1 }), { a: 'b' }); - st.end(); - }); - - t.test('allows setting the parameter limit to Infinity', function (st) { - st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: Infinity }), { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('allows overriding array limit', function (st) { - st.deepEqual(qs.parse('a[0]=b', { arrayLimit: -1 }), { a: { 0: 'b' } }); - st.deepEqual(qs.parse('a[-1]=b', { arrayLimit: -1 }), { a: { '-1': 'b' } }); - st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayLimit: 0 }), { a: { 0: 'b', 1: 'c' } }); - st.end(); - }); - - t.test('allows disabling array parsing', function (st) { - st.deepEqual(qs.parse('a[0]=b&a[1]=c', { parseArrays: false }), { a: { 0: 'b', 1: 'c' } }); - st.end(); - }); - - t.test('parses an object', function (st) { - var input = { - 'user[name]': { 'pop[bob]': 3 }, - 'user[email]': null - }; - - var expected = { - user: { - name: { 'pop[bob]': 3 }, - email: null - } - }; - - var result = qs.parse(input); - - st.deepEqual(result, expected); - st.end(); - }); - - t.test('parses an object in dot notation', function (st) { - var input = { - 'user.name': { 'pop[bob]': 3 }, - 'user.email.': null - }; - - var expected = { - user: { - name: { 'pop[bob]': 3 }, - email: null - } - }; - - var result = qs.parse(input, { allowDots: true }); - - st.deepEqual(result, expected); - st.end(); - }); - - t.test('parses an object and not child values', function (st) { - var input = { - 'user[name]': { 'pop[bob]': { test: 3 } }, - 'user[email]': null - }; - - var expected = { - user: { - name: { 'pop[bob]': { test: 3 } }, - email: null - } - }; - - var result = qs.parse(input); - - st.deepEqual(result, expected); - st.end(); - }); - - t.test('does not blow up when Buffer global is missing', function (st) { - var tempBuffer = global.Buffer; - delete global.Buffer; - var result = qs.parse('a=b&c=d'); - global.Buffer = tempBuffer; - st.deepEqual(result, { a: 'b', c: 'd' }); - st.end(); - }); - - t.test('does not crash when parsing circular references', function (st) { - var a = {}; - a.b = a; - - var parsed; - - st.doesNotThrow(function () { - parsed = qs.parse({ 'foo[bar]': 'baz', 'foo[baz]': a }); - }); - - st.equal('foo' in parsed, true, 'parsed has "foo" property'); - st.equal('bar' in parsed.foo, true); - st.equal('baz' in parsed.foo, true); - st.equal(parsed.foo.bar, 'baz'); - st.deepEqual(parsed.foo.baz, a); - st.end(); - }); - - t.test('parses null objects correctly', { skip: !Object.create }, function (st) { - var a = Object.create(null); - a.b = 'c'; - - st.deepEqual(qs.parse(a), { b: 'c' }); - var result = qs.parse({ a: a }); - st.equal('a' in result, true, 'result has "a" property'); - st.deepEqual(result.a, a); - st.end(); - }); - - t.test('parses dates correctly', function (st) { - var now = new Date(); - st.deepEqual(qs.parse({ a: now }), { a: now }); - st.end(); - }); - - t.test('parses regular expressions correctly', function (st) { - var re = /^test$/; - st.deepEqual(qs.parse({ a: re }), { a: re }); - st.end(); - }); - - t.test('does not allow overwriting prototype properties', function (st) { - st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: false }), {}); - st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: false }), {}); - - st.deepEqual( - qs.parse('toString', { allowPrototypes: false }), - {}, - 'bare "toString" results in {}' - ); - - st.end(); - }); - - t.test('can allow overwriting prototype properties', function (st) { - st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }), { a: { hasOwnProperty: 'b' } }); - st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: true }), { hasOwnProperty: 'b' }); - - st.deepEqual( - qs.parse('toString', { allowPrototypes: true }), - { toString: '' }, - 'bare "toString" results in { toString: "" }' - ); - - st.end(); - }); - - t.test('params starting with a closing bracket', function (st) { - st.deepEqual(qs.parse(']=toString'), { ']': 'toString' }); - st.end(); - }); - - t.test('can return null objects', { skip: !Object.create }, function (st) { - var expected = Object.create(null); - expected.a = Object.create(null); - expected.a.b = 'c'; - expected.a.hasOwnProperty = 'd'; - st.deepEqual(qs.parse('a[b]=c&a[hasOwnProperty]=d', { plainObjects: true }), expected); - st.deepEqual(qs.parse(null, { plainObjects: true }), Object.create(null)); - var expectedArray = Object.create(null); - expectedArray.a = Object.create(null); - expectedArray.a[0] = 'b'; - expectedArray.a.c = 'd'; - st.deepEqual(qs.parse('a[]=b&a[c]=d', { plainObjects: true }), expectedArray); - st.end(); - }); - - t.test('can parse with custom encoding', function (st) { - st.deepEqual(qs.parse('%8c%a7=%91%e5%8d%e3%95%7b', { - decoder: function (str) { - var reg = /%([0-9A-F]{2})/ig; - var result = []; - var parts = reg.exec(str); - while (parts) { - result.push(parseInt(parts[1], 16)); - parts = reg.exec(str); - } - return iconv.decode(new Buffer(result), 'shift_jis').toString(); - } - }), { 県: '大阪府' }); - st.end(); - }); - - t.test('throws error with wrong decoder', function (st) { - st.throws(function () { - qs.parse({}, { decoder: 'string' }); - }, new TypeError('Decoder has to be a function.')); - st.end(); - }); -}); diff --git a/node_modules/qs/test/stringify.js b/node_modules/qs/test/stringify.js deleted file mode 100755 index c3dd095..0000000 --- a/node_modules/qs/test/stringify.js +++ /dev/null @@ -1,538 +0,0 @@ -'use strict'; - -var test = require('tape'); -var qs = require('../'); -var iconv = require('iconv-lite'); - -test('stringify()', function (t) { - t.test('stringifies a querystring object', function (st) { - st.equal(qs.stringify({ a: 'b' }), 'a=b'); - st.equal(qs.stringify({ a: 1 }), 'a=1'); - st.equal(qs.stringify({ a: 1, b: 2 }), 'a=1&b=2'); - st.equal(qs.stringify({ a: 'A_Z' }), 'a=A_Z'); - st.equal(qs.stringify({ a: '€' }), 'a=%E2%82%AC'); - st.equal(qs.stringify({ a: '' }), 'a=%EE%80%80'); - st.equal(qs.stringify({ a: 'א' }), 'a=%D7%90'); - st.equal(qs.stringify({ a: '𐐷' }), 'a=%F0%90%90%B7'); - st.end(); - }); - - t.test('stringifies a nested object', function (st) { - st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); - st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e'); - st.end(); - }); - - t.test('stringifies a nested object with dots notation', function (st) { - st.equal(qs.stringify({ a: { b: 'c' } }, { allowDots: true }), 'a.b=c'); - st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }, { allowDots: true }), 'a.b.c.d=e'); - st.end(); - }); - - t.test('stringifies an array value', function (st) { - st.equal( - qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'indices' }), - 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d', - 'indices => indices' - ); - st.equal( - qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'brackets' }), - 'a%5B%5D=b&a%5B%5D=c&a%5B%5D=d', - 'brackets => brackets' - ); - st.equal( - qs.stringify({ a: ['b', 'c', 'd'] }), - 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d', - 'default => indices' - ); - st.end(); - }); - - t.test('omits nulls when asked', function (st) { - st.equal(qs.stringify({ a: 'b', c: null }, { skipNulls: true }), 'a=b'); - st.end(); - }); - - t.test('omits nested nulls when asked', function (st) { - st.equal(qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true }), 'a%5Bb%5D=c'); - st.end(); - }); - - t.test('omits array indices when asked', function (st) { - st.equal(qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }), 'a=b&a=c&a=d'); - st.end(); - }); - - t.test('stringifies a nested array value', function (st) { - st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'indices' }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d'); - st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'brackets' }), 'a%5Bb%5D%5B%5D=c&a%5Bb%5D%5B%5D=d'); - st.equal(qs.stringify({ a: { b: ['c', 'd'] } }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d'); - st.end(); - }); - - t.test('stringifies a nested array value with dots notation', function (st) { - st.equal( - qs.stringify( - { a: { b: ['c', 'd'] } }, - { allowDots: true, encode: false, arrayFormat: 'indices' } - ), - 'a.b[0]=c&a.b[1]=d', - 'indices: stringifies with dots + indices' - ); - st.equal( - qs.stringify( - { a: { b: ['c', 'd'] } }, - { allowDots: true, encode: false, arrayFormat: 'brackets' } - ), - 'a.b[]=c&a.b[]=d', - 'brackets: stringifies with dots + brackets' - ); - st.equal( - qs.stringify( - { a: { b: ['c', 'd'] } }, - { allowDots: true, encode: false } - ), - 'a.b[0]=c&a.b[1]=d', - 'default: stringifies with dots + indices' - ); - st.end(); - }); - - t.test('stringifies an object inside an array', function (st) { - st.equal( - qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'indices' }), - 'a%5B0%5D%5Bb%5D=c', - 'indices => brackets' - ); - st.equal( - qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'brackets' }), - 'a%5B%5D%5Bb%5D=c', - 'brackets => brackets' - ); - st.equal( - qs.stringify({ a: [{ b: 'c' }] }), - 'a%5B0%5D%5Bb%5D=c', - 'default => indices' - ); - - st.equal( - qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'indices' }), - 'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1', - 'indices => indices' - ); - - st.equal( - qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'brackets' }), - 'a%5B%5D%5Bb%5D%5Bc%5D%5B%5D=1', - 'brackets => brackets' - ); - - st.equal( - qs.stringify({ a: [{ b: { c: [1] } }] }), - 'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1', - 'default => indices' - ); - - st.end(); - }); - - t.test('stringifies an array with mixed objects and primitives', function (st) { - st.equal( - qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false, arrayFormat: 'indices' }), - 'a[0][b]=1&a[1]=2&a[2]=3', - 'indices => indices' - ); - st.equal( - qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false, arrayFormat: 'brackets' }), - 'a[][b]=1&a[]=2&a[]=3', - 'brackets => brackets' - ); - st.equal( - qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false }), - 'a[0][b]=1&a[1]=2&a[2]=3', - 'default => indices' - ); - - st.end(); - }); - - t.test('stringifies an object inside an array with dots notation', function (st) { - st.equal( - qs.stringify( - { a: [{ b: 'c' }] }, - { allowDots: true, encode: false, arrayFormat: 'indices' } - ), - 'a[0].b=c', - 'indices => indices' - ); - st.equal( - qs.stringify( - { a: [{ b: 'c' }] }, - { allowDots: true, encode: false, arrayFormat: 'brackets' } - ), - 'a[].b=c', - 'brackets => brackets' - ); - st.equal( - qs.stringify( - { a: [{ b: 'c' }] }, - { allowDots: true, encode: false } - ), - 'a[0].b=c', - 'default => indices' - ); - - st.equal( - qs.stringify( - { a: [{ b: { c: [1] } }] }, - { allowDots: true, encode: false, arrayFormat: 'indices' } - ), - 'a[0].b.c[0]=1', - 'indices => indices' - ); - st.equal( - qs.stringify( - { a: [{ b: { c: [1] } }] }, - { allowDots: true, encode: false, arrayFormat: 'brackets' } - ), - 'a[].b.c[]=1', - 'brackets => brackets' - ); - st.equal( - qs.stringify( - { a: [{ b: { c: [1] } }] }, - { allowDots: true, encode: false } - ), - 'a[0].b.c[0]=1', - 'default => indices' - ); - - st.end(); - }); - - t.test('does not omit object keys when indices = false', function (st) { - st.equal(qs.stringify({ a: [{ b: 'c' }] }, { indices: false }), 'a%5Bb%5D=c'); - st.end(); - }); - - t.test('uses indices notation for arrays when indices=true', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }, { indices: true }), 'a%5B0%5D=b&a%5B1%5D=c'); - st.end(); - }); - - t.test('uses indices notation for arrays when no arrayFormat is specified', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }), 'a%5B0%5D=b&a%5B1%5D=c'); - st.end(); - }); - - t.test('uses indices notation for arrays when no arrayFormat=indices', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }), 'a%5B0%5D=b&a%5B1%5D=c'); - st.end(); - }); - - t.test('uses repeat notation for arrays when no arrayFormat=repeat', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }), 'a=b&a=c'); - st.end(); - }); - - t.test('uses brackets notation for arrays when no arrayFormat=brackets', function (st) { - st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }), 'a%5B%5D=b&a%5B%5D=c'); - st.end(); - }); - - t.test('stringifies a complicated object', function (st) { - st.equal(qs.stringify({ a: { b: 'c', d: 'e' } }), 'a%5Bb%5D=c&a%5Bd%5D=e'); - st.end(); - }); - - t.test('stringifies an empty value', function (st) { - st.equal(qs.stringify({ a: '' }), 'a='); - st.equal(qs.stringify({ a: null }, { strictNullHandling: true }), 'a'); - - st.equal(qs.stringify({ a: '', b: '' }), 'a=&b='); - st.equal(qs.stringify({ a: null, b: '' }, { strictNullHandling: true }), 'a&b='); - - st.equal(qs.stringify({ a: { b: '' } }), 'a%5Bb%5D='); - st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: true }), 'a%5Bb%5D'); - st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: false }), 'a%5Bb%5D='); - - st.end(); - }); - - t.test('stringifies a null object', { skip: !Object.create }, function (st) { - var obj = Object.create(null); - obj.a = 'b'; - st.equal(qs.stringify(obj), 'a=b'); - st.end(); - }); - - t.test('returns an empty string for invalid input', function (st) { - st.equal(qs.stringify(undefined), ''); - st.equal(qs.stringify(false), ''); - st.equal(qs.stringify(null), ''); - st.equal(qs.stringify(''), ''); - st.end(); - }); - - t.test('stringifies an object with a null object as a child', { skip: !Object.create }, function (st) { - var obj = { a: Object.create(null) }; - - obj.a.b = 'c'; - st.equal(qs.stringify(obj), 'a%5Bb%5D=c'); - st.end(); - }); - - t.test('drops keys with a value of undefined', function (st) { - st.equal(qs.stringify({ a: undefined }), ''); - - st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: true }), 'a%5Bc%5D'); - st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: false }), 'a%5Bc%5D='); - st.equal(qs.stringify({ a: { b: undefined, c: '' } }), 'a%5Bc%5D='); - st.end(); - }); - - t.test('url encodes values', function (st) { - st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); - st.end(); - }); - - t.test('stringifies a date', function (st) { - var now = new Date(); - var str = 'a=' + encodeURIComponent(now.toISOString()); - st.equal(qs.stringify({ a: now }), str); - st.end(); - }); - - t.test('stringifies the weird object from qs', function (st) { - st.equal(qs.stringify({ 'my weird field': '~q1!2"\'w$5&7/z8)?' }), 'my%20weird%20field=~q1%212%22%27w%245%267%2Fz8%29%3F'); - st.end(); - }); - - t.test('skips properties that are part of the object prototype', function (st) { - Object.prototype.crash = 'test'; - st.equal(qs.stringify({ a: 'b' }), 'a=b'); - st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c'); - delete Object.prototype.crash; - st.end(); - }); - - t.test('stringifies boolean values', function (st) { - st.equal(qs.stringify({ a: true }), 'a=true'); - st.equal(qs.stringify({ a: { b: true } }), 'a%5Bb%5D=true'); - st.equal(qs.stringify({ b: false }), 'b=false'); - st.equal(qs.stringify({ b: { c: false } }), 'b%5Bc%5D=false'); - st.end(); - }); - - t.test('stringifies buffer values', function (st) { - st.equal(qs.stringify({ a: new Buffer('test') }), 'a=test'); - st.equal(qs.stringify({ a: { b: new Buffer('test') } }), 'a%5Bb%5D=test'); - st.end(); - }); - - t.test('stringifies an object using an alternative delimiter', function (st) { - st.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d'); - st.end(); - }); - - t.test('doesn\'t blow up when Buffer global is missing', function (st) { - var tempBuffer = global.Buffer; - delete global.Buffer; - var result = qs.stringify({ a: 'b', c: 'd' }); - global.Buffer = tempBuffer; - st.equal(result, 'a=b&c=d'); - st.end(); - }); - - t.test('selects properties when filter=array', function (st) { - st.equal(qs.stringify({ a: 'b' }, { filter: ['a'] }), 'a=b'); - st.equal(qs.stringify({ a: 1 }, { filter: [] }), ''); - - st.equal( - qs.stringify( - { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, - { filter: ['a', 'b', 0, 2], arrayFormat: 'indices' } - ), - 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3', - 'indices => indices' - ); - st.equal( - qs.stringify( - { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, - { filter: ['a', 'b', 0, 2], arrayFormat: 'brackets' } - ), - 'a%5Bb%5D%5B%5D=1&a%5Bb%5D%5B%5D=3', - 'brackets => brackets' - ); - st.equal( - qs.stringify( - { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, - { filter: ['a', 'b', 0, 2] } - ), - 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3', - 'default => indices' - ); - - st.end(); - }); - - t.test('supports custom representations when filter=function', function (st) { - var calls = 0; - var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } }; - var filterFunc = function (prefix, value) { - calls += 1; - if (calls === 1) { - st.equal(prefix, '', 'prefix is empty'); - st.equal(value, obj); - } else if (prefix === 'c') { - return void 0; - } else if (value instanceof Date) { - st.equal(prefix, 'e[f]'); - return value.getTime(); - } - return value; - }; - - st.equal(qs.stringify(obj, { filter: filterFunc }), 'a=b&e%5Bf%5D=1257894000000'); - st.equal(calls, 5); - st.end(); - }); - - t.test('can disable uri encoding', function (st) { - st.equal(qs.stringify({ a: 'b' }, { encode: false }), 'a=b'); - st.equal(qs.stringify({ a: { b: 'c' } }, { encode: false }), 'a[b]=c'); - st.equal(qs.stringify({ a: 'b', c: null }, { strictNullHandling: true, encode: false }), 'a=b&c'); - st.end(); - }); - - t.test('can sort the keys', function (st) { - var sort = function (a, b) { - return a.localeCompare(b); - }; - st.equal(qs.stringify({ a: 'c', z: 'y', b: 'f' }, { sort: sort }), 'a=c&b=f&z=y'); - st.equal(qs.stringify({ a: 'c', z: { j: 'a', i: 'b' }, b: 'f' }, { sort: sort }), 'a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a'); - st.end(); - }); - - t.test('can sort the keys at depth 3 or more too', function (st) { - var sort = function (a, b) { - return a.localeCompare(b); - }; - st.equal( - qs.stringify( - { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' }, - { sort: sort, encode: false } - ), - 'a=a&b=b&z[zi][zia]=zia&z[zi][zib]=zib&z[zj][zja]=zja&z[zj][zjb]=zjb' - ); - st.equal( - qs.stringify( - { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' }, - { sort: null, encode: false } - ), - 'a=a&z[zj][zjb]=zjb&z[zj][zja]=zja&z[zi][zib]=zib&z[zi][zia]=zia&b=b' - ); - st.end(); - }); - - t.test('can stringify with custom encoding', function (st) { - st.equal(qs.stringify({ 県: '大阪府', '': '' }, { - encoder: function (str) { - if (str.length === 0) { - return ''; - } - var buf = iconv.encode(str, 'shiftjis'); - var result = []; - for (var i = 0; i < buf.length; ++i) { - result.push(buf.readUInt8(i).toString(16)); - } - return '%' + result.join('%'); - } - }), '%8c%a7=%91%e5%8d%e3%95%7b&='); - st.end(); - }); - - t.test('throws error with wrong encoder', function (st) { - st.throws(function () { - qs.stringify({}, { encoder: 'string' }); - }, new TypeError('Encoder has to be a function.')); - st.end(); - }); - - t.test('can use custom encoder for a buffer object', { skip: typeof Buffer === 'undefined' }, function (st) { - st.equal(qs.stringify({ a: new Buffer([1]) }, { - encoder: function (buffer) { - if (typeof buffer === 'string') { - return buffer; - } - return String.fromCharCode(buffer.readUInt8(0) + 97); - } - }), 'a=b'); - st.end(); - }); - - t.test('serializeDate option', function (st) { - var date = new Date(); - st.equal( - qs.stringify({ a: date }), - 'a=' + date.toISOString().replace(/:/g, '%3A'), - 'default is toISOString' - ); - - var mutatedDate = new Date(); - mutatedDate.toISOString = function () { - throw new SyntaxError(); - }; - st.throws(function () { - mutatedDate.toISOString(); - }, SyntaxError); - st.equal( - qs.stringify({ a: mutatedDate }), - 'a=' + Date.prototype.toISOString.call(mutatedDate).replace(/:/g, '%3A'), - 'toISOString works even when method is not locally present' - ); - - var specificDate = new Date(6); - st.equal( - qs.stringify( - { a: specificDate }, - { serializeDate: function (d) { return d.getTime() * 7; } } - ), - 'a=42', - 'custom serializeDate function called' - ); - - st.end(); - }); - - t.test('RFC 1738 spaces serialization', function (st) { - st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC1738 }), 'a=b+c'); - st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC1738 }), 'a+b=c+d'); - st.end(); - }); - - t.test('RFC 3986 spaces serialization', function (st) { - st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC3986 }), 'a=b%20c'); - st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC3986 }), 'a%20b=c%20d'); - st.end(); - }); - - t.test('Backward compatibility to RFC 3986', function (st) { - st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c'); - st.end(); - }); - - t.test('Edge cases and unknown formats', function (st) { - ['UFO1234', false, 1234, null, {}, []].forEach( - function (format) { - st.throws( - function () { - qs.stringify({ a: 'b c' }, { format: format }); - }, - new TypeError('Unknown format option provided.') - ); - } - ); - st.end(); - }); -}); diff --git a/node_modules/qs/test/utils.js b/node_modules/qs/test/utils.js deleted file mode 100755 index 0721dd8..0000000 --- a/node_modules/qs/test/utils.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -var test = require('tape'); -var utils = require('../lib/utils'); - -test('merge()', function (t) { - t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key'); - - var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } }); - t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array'); - - var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } }); - t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array'); - - var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' }); - t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array'); - - var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] }); - t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] }); - - t.end(); -}); diff --git a/node_modules/randomatic/LICENSE b/node_modules/randomatic/LICENSE deleted file mode 100755 index 4a3d2da..0000000 --- a/node_modules/randomatic/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013-2016, 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/randomatic/README.md b/node_modules/randomatic/README.md deleted file mode 100644 index 1c5202a..0000000 --- a/node_modules/randomatic/README.md +++ /dev/null @@ -1,152 +0,0 @@ -# randomatic [![NPM version](https://img.shields.io/npm/v/randomatic.svg?style=flat)](https://www.npmjs.com/package/randomatic) [![NPM monthly downloads](https://img.shields.io/npm/dm/randomatic.svg?style=flat)](https://npmjs.org/package/randomatic) [![NPM total downloads](https://img.shields.io/npm/dt/randomatic.svg?style=flat)](https://npmjs.org/package/randomatic) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/randomatic.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/randomatic) - -> Generate randomized strings of a specified length, fast. Only the length is necessary, but you can optionally generate patterns using any combination of numeric, alpha-numeric, alphabetical, special or custom characters. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save randomatic -``` - -## Usage - -```js -var randomize = require('randomatic'); -``` - -## API - -```js -randomize(pattern, length, options); -``` - -* `pattern` **{String}**: The pattern to use for randomizing -* `length` **{Object}**: The length of the string to generate - -### pattern - -> The pattern to use for randomizing - -Patterns can contain any combination of the below characters, specified in any order. - -**Example:** - -To generate a 10-character randomized string using all available characters: - -```js -randomize('*', 10); -//=> - -randomize('Aa0!', 10); -//=> -``` - -* `a`: Lowercase alpha characters (`abcdefghijklmnopqrstuvwxyz'`) -* `A`: Uppercase alpha characters (`ABCDEFGHIJKLMNOPQRSTUVWXYZ'`) -* `0`: Numeric characters (`0123456789'`) -* `!`: Special characters (`~!@#$%^&()_+-={}[];\',.`) -* `*`: All characters (all of the above combined) -* `?`: Custom characters (pass a string of custom characters to the options) - -### length - -> the length of the string to generate - -**Examples:** - -* `randomize('A', 5)` will generate a 5-character, uppercase, alphabetical, randomized string, e.g. `KDJWJ`. -* `randomize('0', 2)` will generate a 2-digit random number -* `randomize('0', 3)` will generate a 3-digit random number -* `randomize('0', 12)` will generate a 12-digit random number -* `randomize('A0', 16)` will generate a 16-character, alpha-numeric randomized string - -If `length` is left undefined, the length of the pattern in the first parameter will be used. For example: - -* `randomize('00')` will generate a 2-digit random number -* `randomize('000')` will generate a 3-digit random number -* `randomize('0000')` will generate a 4-digit random number... -* `randomize('AAAAA')` will generate a 5-character, uppercase alphabetical random string... - -These are just examples, [see the tests](./test.js) for more use cases and examples. - -#### chars - -Type: `String` - -Default: `undefined` - -Define a custom string to be randomized. - -**Example:** - -* `randomize('?', 20, {chars: 'jonschlinkert'})` will generate a 20-character randomized string from the letters contained in `jonschlinkert`. -* `randomize('?', {chars: 'jonschlinkert'})` will generate a 13-character randomized string from the letters contained in `jonschlinkert`. - -## Usage Examples - -* `randomize('A', 4)` (_whitespace insenstive_) would result in randomized 4-digit uppercase letters, like, `ZAKH`, `UJSL`... etc. -* `randomize('AAAA')` is equivelant to `randomize('A', 4)` -* `randomize('AAA0')` and `randomize('AA00')` and `randomize('A0A0')` are equivelant to `randomize('A0', 4)` -* `randomize('aa')`: results in double-digit, randomized, lower-case letters (`abcdefghijklmnopqrstuvwxyz`) -* `randomize('AAA')`: results in triple-digit, randomized, upper-case letters (`ABCDEFGHIJKLMNOPQRSTUVWXYZ`) -* `randomize('0', 6)`: results in six-digit, randomized nubmers (`0123456789`) -* `randomize('!', 5)`: results in single-digit randomized, _valid_ non-letter characters (`~!@#$%^&()_+-={}[];\',.`) -* `randomize('A!a0', 9)`: results in nine-digit, randomized characters (any of the above) - -_The order in which the characters are defined is insignificant._ - -## About - -### Related projects - -* [pad-left](https://www.npmjs.com/package/pad-left): Left pad a string with zeros or a specified string. Fastest implementation. | [homepage](https://github.com/jonschlinkert/pad-left "Left pad a string with zeros or a specified string. Fastest implementation.") -* [pad-right](https://www.npmjs.com/package/pad-right): Right pad a string with zeros or a specified string. Fastest implementation. | [homepage](https://github.com/jonschlinkert/pad-right "Right pad a string with zeros or a specified string. Fastest implementation.") -* [repeat-string](https://www.npmjs.com/package/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string. | [homepage](https://github.com/jonschlinkert/repeat-string "Repeat the given string n times. Fastest implementation for repeating a string.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Contributors - -| **Commits** | **Contributor**
    | -| --- | --- | -| 36 | [jonschlinkert](https://github.com/jonschlinkert) | -| 1 | [TrySound](https://github.com/TrySound) | -| 1 | [paulmillr](https://github.com/paulmillr) | - -### Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -### License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/randomatic/blob/master/LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on November 24, 2016._ \ No newline at end of file diff --git a/node_modules/randomatic/index.js b/node_modules/randomatic/index.js deleted file mode 100644 index 85dbe21..0000000 --- a/node_modules/randomatic/index.js +++ /dev/null @@ -1,83 +0,0 @@ -/*! - * randomatic - * - * This was originally inspired by - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License (MIT) - */ - -'use strict'; - -var isNumber = require('is-number'); -var typeOf = require('kind-of'); - -/** - * Expose `randomatic` - */ - -module.exports = randomatic; - -/** - * Available mask characters - */ - -var type = { - lower: 'abcdefghijklmnopqrstuvwxyz', - upper: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', - number: '0123456789', - special: '~!@#$%^&()_+-={}[];\',.' -}; - -type.all = type.lower + type.upper + type.number; - -/** - * Generate random character sequences of a specified `length`, - * based on the given `pattern`. - * - * @param {String} `pattern` The pattern to use for generating the random string. - * @param {String} `length` The length of the string to generate. - * @param {String} `options` - * @return {String} - * @api public - */ - -function randomatic(pattern, length, options) { - if (typeof pattern === 'undefined') { - throw new Error('randomatic expects a string or number.'); - } - - var custom = false; - if (arguments.length === 1) { - if (typeof pattern === 'string') { - length = pattern.length; - - } else if (isNumber(pattern)) { - options = {}; length = pattern; pattern = '*'; - } - } - - if (typeOf(length) === 'object' && length.hasOwnProperty('chars')) { - options = length; - pattern = options.chars; - length = pattern.length; - custom = true; - } - - var opts = options || {}; - var mask = ''; - var res = ''; - - // Characters to be used - if (pattern.indexOf('?') !== -1) mask += opts.chars; - if (pattern.indexOf('a') !== -1) mask += type.lower; - if (pattern.indexOf('A') !== -1) mask += type.upper; - if (pattern.indexOf('0') !== -1) mask += type.number; - if (pattern.indexOf('!') !== -1) mask += type.special; - if (pattern.indexOf('*') !== -1) mask += type.all; - if (custom) mask += pattern; - - while (length--) { - res += mask.charAt(parseInt(Math.random() * mask.length, 10)); - } - return res; -}; diff --git a/node_modules/randomatic/package.json b/node_modules/randomatic/package.json deleted file mode 100644 index 738a4f8..0000000 --- a/node_modules/randomatic/package.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "randomatic@^1.1.3", - "scope": null, - "escapedName": "randomatic", - "name": "randomatic", - "rawSpec": "^1.1.3", - "spec": ">=1.1.3 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/fill-range" - ] - ], - "_from": "randomatic@>=1.1.3 <2.0.0", - "_id": "randomatic@1.1.6", - "_inCache": true, - "_location": "/randomatic", - "_nodeVersion": "6.7.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/randomatic-1.1.6.tgz_1480022662943_0.08446102566085756" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "randomatic@^1.1.3", - "scope": null, - "escapedName": "randomatic", - "name": "randomatic", - "rawSpec": "^1.1.3", - "spec": ">=1.1.3 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/fill-range" - ], - "_resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.6.tgz", - "_shasum": "110dcabff397e9dcff7c0789ccc0a49adf1ec5bb", - "_shrinkwrap": null, - "_spec": "randomatic@^1.1.3", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/fill-range", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/randomatic/issues" - }, - "dependencies": { - "is-number": "^2.0.2", - "kind-of": "^3.0.2" - }, - "description": "Generate randomized strings of a specified length, fast. Only the length is necessary, but you can optionally generate patterns using any combination of numeric, alpha-numeric, alphabetical, special or custom characters.", - "devDependencies": { - "ansi-bold": "^0.1.1", - "benchmarked": "^0.1.4", - "glob": "^5.0.15", - "gulp-format-md": "^0.1.11", - "mocha": "*", - "should": "*" - }, - "directories": {}, - "dist": { - "shasum": "110dcabff397e9dcff7c0789ccc0a49adf1ec5bb", - "tarball": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.6.tgz" - }, - "engines": { - "node": ">= 0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "80065df04deaa8f7a405d2689aaaef57117c6a94", - "homepage": "https://github.com/jonschlinkert/randomatic", - "keywords": [ - "alpha", - "alpha-numeric", - "alphanumeric", - "characters", - "chars", - "numeric", - "rand", - "random", - "randomatic", - "randomize", - "randomized" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - }, - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "randomatic", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/randomatic.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "pad-left", - "pad-right", - "repeat-string" - ] - }, - "lint": { - "reflinks": true - }, - "reflinks": [ - "verb", - "verb-generate-readme" - ] - }, - "version": "1.1.6" -} diff --git a/node_modules/read-pkg-up/index.js b/node_modules/read-pkg-up/index.js deleted file mode 100644 index beb3d48..0000000 --- a/node_modules/read-pkg-up/index.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; -var findUp = require('find-up'); -var readPkg = require('read-pkg'); - -module.exports = function (opts) { - return findUp('package.json', opts).then(function (fp) { - if (!fp) { - return {}; - } - - return readPkg(fp, opts).then(function (pkg) { - return { - pkg: pkg, - path: fp - }; - }); - }); -}; - -module.exports.sync = function (opts) { - var fp = findUp.sync('package.json', opts); - - if (!fp) { - return {}; - } - - return { - pkg: readPkg.sync(fp, opts), - path: fp - }; -}; diff --git a/node_modules/read-pkg-up/license b/node_modules/read-pkg-up/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/read-pkg-up/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/read-pkg-up/package.json b/node_modules/read-pkg-up/package.json deleted file mode 100644 index 9686757..0000000 --- a/node_modules/read-pkg-up/package.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "read-pkg-up@^1.0.1", - "scope": null, - "escapedName": "read-pkg-up", - "name": "read-pkg-up", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/meow" - ] - ], - "_from": "read-pkg-up@>=1.0.1 <2.0.0", - "_id": "read-pkg-up@1.0.1", - "_inCache": true, - "_location": "/read-pkg-up", - "_nodeVersion": "0.12.7", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.11.3", - "_phantomChildren": {}, - "_requested": { - "raw": "read-pkg-up@^1.0.1", - "scope": null, - "escapedName": "read-pkg-up", - "name": "read-pkg-up", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/meow" - ], - "_resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "_shasum": "9d63c13276c065918d57f002a57f40a1b643fb02", - "_shrinkwrap": null, - "_spec": "read-pkg-up@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/meow", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/read-pkg-up/issues" - }, - "dependencies": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - }, - "description": "Read the closest package.json file", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "9d63c13276c065918d57f002a57f40a1b643fb02", - "tarball": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "27ec7c844b495a39eea7859c5f4d4721ebf60e8e", - "homepage": "https://github.com/sindresorhus/read-pkg-up", - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load", - "pkg", - "package", - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "dir", - "walk", - "walking", - "path" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "read-pkg-up", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/read-pkg-up.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.1" -} diff --git a/node_modules/read-pkg-up/readme.md b/node_modules/read-pkg-up/readme.md deleted file mode 100644 index dbd88f3..0000000 --- a/node_modules/read-pkg-up/readme.md +++ /dev/null @@ -1,79 +0,0 @@ -# read-pkg-up [![Build Status](https://travis-ci.org/sindresorhus/read-pkg-up.svg?branch=master)](https://travis-ci.org/sindresorhus/read-pkg-up) - -> Read the closest package.json file - - -## Why - -- [Finds the closest package.json](https://github.com/sindresorhus/find-up) -- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs) -- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom) -- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json) -- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) - - -## Install - -``` -$ npm install --save read-pkg-up -``` - - -## Usage - -```js -var readPkgUp = require('read-pkg-up'); - -readPkgUp().then(function (result) { - console.log(result); - /* - { - pkg: { - name: 'awesome-package', - version: '1.0.0', - ... - }, - path: '/Users/sindresorhus/dev/awesome-package' - } - */ -}); -``` - - -## API - -### readPkgUp([options]) - -Returns a promise that resolves to a result object. - -### readPkgUp.sync([options]) - -Returns a result object. - -#### options - -##### cwd - -Type: `string` -Default: `.` - -Directory to start looking for a package.json file. - -##### normalize - -Type: `boolean` -Default: `true` - -[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data. - - -## Related - -- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a package.json file -- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories -- [pkg-conf](https://github.com/sindresorhus/pkg-conf) - Get namespaced config from the closest package.json - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/read-pkg/index.js b/node_modules/read-pkg/index.js deleted file mode 100644 index c5c3afa..0000000 --- a/node_modules/read-pkg/index.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict'; -var path = require('path'); -var loadJsonFile = require('load-json-file'); -var normalizePackageData = require('normalize-package-data'); -var pathType = require('path-type'); - -module.exports = function (fp, opts) { - if (typeof fp !== 'string') { - opts = fp; - fp = '.'; - } - - opts = opts || {}; - - return pathType.dir(fp) - .then(function (isDir) { - if (isDir) { - fp = path.join(fp, 'package.json'); - } - - return loadJsonFile(fp); - }) - .then(function (x) { - if (opts.normalize !== false) { - normalizePackageData(x); - } - - return x; - }); -}; - -module.exports.sync = function (fp, opts) { - if (typeof fp !== 'string') { - opts = fp; - fp = '.'; - } - - opts = opts || {}; - fp = pathType.dirSync(fp) ? path.join(fp, 'package.json') : fp; - - var x = loadJsonFile.sync(fp); - - if (opts.normalize !== false) { - normalizePackageData(x); - } - - return x; -}; diff --git a/node_modules/read-pkg/license b/node_modules/read-pkg/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/read-pkg/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/read-pkg/package.json b/node_modules/read-pkg/package.json deleted file mode 100644 index f29ab40..0000000 --- a/node_modules/read-pkg/package.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "read-pkg@^1.0.0", - "scope": null, - "escapedName": "read-pkg", - "name": "read-pkg", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/read-pkg-up" - ] - ], - "_from": "read-pkg@>=1.0.0 <2.0.0", - "_id": "read-pkg@1.1.0", - "_inCache": true, - "_location": "/read-pkg", - "_nodeVersion": "3.0.0", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.13.3", - "_phantomChildren": {}, - "_requested": { - "raw": "read-pkg@^1.0.0", - "scope": null, - "escapedName": "read-pkg", - "name": "read-pkg", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/read-pkg-up" - ], - "_resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "_shasum": "f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28", - "_shrinkwrap": null, - "_spec": "read-pkg@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/read-pkg-up", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/read-pkg/issues" - }, - "dependencies": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - }, - "description": "Read a package.json file", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28", - "tarball": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "9448d32b2ebcd65fc0547def3cfe5b28ef522e68", - "homepage": "https://github.com/sindresorhus/read-pkg", - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load", - "pkg", - "package", - "normalize" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "read-pkg", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/read-pkg.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.1.0" -} diff --git a/node_modules/read-pkg/readme.md b/node_modules/read-pkg/readme.md deleted file mode 100644 index 9a0d4cc..0000000 --- a/node_modules/read-pkg/readme.md +++ /dev/null @@ -1,79 +0,0 @@ -# read-pkg [![Build Status](https://travis-ci.org/sindresorhus/read-pkg.svg?branch=master)](https://travis-ci.org/sindresorhus/read-pkg) - -> Read a package.json file - - -## Why - -- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs) -- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom) -- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json) -- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) - - -## Install - -``` -$ npm install --save read-pkg -``` - - -## Usage - -```js -var readPkg = require('read-pkg'); - -readPkg().then(function (pkg) { - console.log(pkg); - //=> {name: 'read-pkg', ...} -}); - -readPkg(__dirname).then(function (pkg) { - console.log(pkg); - //=> {name: 'read-pkg', ...} -}); - -readPkg(path.join('unicorn', 'package.json')).then(function (pkg) { - console.log(pkg); - //=> {name: 'read-pkg', ...} -}); -``` - - -## API - -### readPkg([path], [options]) - -Returns a promise that resolves to the parsed JSON. - -### readPkg.sync([path], [options]) - -Returns the parsed JSON. - -#### path - -Type: `string` -Default: `.` - -Path to a `package.json` file or its directory. - -#### options - -##### normalize - -Type: `boolean` -Default: `true` - -[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data. - - -## Related - -- [read-pkg-up](https://github.com/sindresorhus/read-pkg-up) - Read the closest package.json file -- [write-pkg](https://github.com/sindresorhus/write-pkg) - Write a `package.json` file -- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/readable-stream/.npmignore b/node_modules/readable-stream/.npmignore deleted file mode 100644 index 38344f8..0000000 --- a/node_modules/readable-stream/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -build/ -test/ -examples/ -fs.js -zlib.js \ No newline at end of file diff --git a/node_modules/readable-stream/LICENSE b/node_modules/readable-stream/LICENSE deleted file mode 100644 index e3d4e69..0000000 --- a/node_modules/readable-stream/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -Copyright Joyent, Inc. and other Node 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/readable-stream/README.md b/node_modules/readable-stream/README.md deleted file mode 100644 index e46b823..0000000 --- a/node_modules/readable-stream/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# readable-stream - -***Node-core streams for userland*** - -[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/) -[![NPM](https://nodei.co/npm-dl/readable-stream.png&months=6&height=3)](https://nodei.co/npm/readable-stream/) - -This package is a mirror of the Streams2 and Streams3 implementations in Node-core. - -If you want to guarantee a stable streams base, regardless of what version of Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core. - -**readable-stream** comes in two major versions, v1.0.x and v1.1.x. The former tracks the Streams2 implementation in Node 0.10, including bug-fixes and minor improvements as they are added. The latter tracks Streams3 as it develops in Node 0.11; we will likely see a v1.2.x branch for Node 0.12. - -**readable-stream** uses proper patch-level versioning so if you pin to `"~1.0.0"` you’ll get the latest Node 0.10 Streams2 implementation, including any fixes and minor non-breaking improvements. The patch-level versions of 1.0.x and 1.1.x should mirror the patch-level versions of Node-core releases. You should prefer the **1.0.x** releases for now and when you’re ready to start using Streams3, pin to `"~1.1.0"` - diff --git a/node_modules/readable-stream/duplex.js b/node_modules/readable-stream/duplex.js deleted file mode 100644 index ca807af..0000000 --- a/node_modules/readable-stream/duplex.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_duplex.js") diff --git a/node_modules/readable-stream/float.patch b/node_modules/readable-stream/float.patch deleted file mode 100644 index b984607..0000000 --- a/node_modules/readable-stream/float.patch +++ /dev/null @@ -1,923 +0,0 @@ -diff --git a/lib/_stream_duplex.js b/lib/_stream_duplex.js -index c5a741c..a2e0d8e 100644 ---- a/lib/_stream_duplex.js -+++ b/lib/_stream_duplex.js -@@ -26,8 +26,8 @@ - - module.exports = Duplex; - var util = require('util'); --var Readable = require('_stream_readable'); --var Writable = require('_stream_writable'); -+var Readable = require('./_stream_readable'); -+var Writable = require('./_stream_writable'); - - util.inherits(Duplex, Readable); - -diff --git a/lib/_stream_passthrough.js b/lib/_stream_passthrough.js -index a5e9864..330c247 100644 ---- a/lib/_stream_passthrough.js -+++ b/lib/_stream_passthrough.js -@@ -25,7 +25,7 @@ - - module.exports = PassThrough; - --var Transform = require('_stream_transform'); -+var Transform = require('./_stream_transform'); - var util = require('util'); - util.inherits(PassThrough, Transform); - -diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js -index 0c3fe3e..90a8298 100644 ---- a/lib/_stream_readable.js -+++ b/lib/_stream_readable.js -@@ -23,10 +23,34 @@ module.exports = Readable; - Readable.ReadableState = ReadableState; - - var EE = require('events').EventEmitter; -+if (!EE.listenerCount) EE.listenerCount = function(emitter, type) { -+ return emitter.listeners(type).length; -+}; -+ -+if (!global.setImmediate) global.setImmediate = function setImmediate(fn) { -+ return setTimeout(fn, 0); -+}; -+if (!global.clearImmediate) global.clearImmediate = function clearImmediate(i) { -+ return clearTimeout(i); -+}; -+ - var Stream = require('stream'); - var util = require('util'); -+if (!util.isUndefined) { -+ var utilIs = require('core-util-is'); -+ for (var f in utilIs) { -+ util[f] = utilIs[f]; -+ } -+} - var StringDecoder; --var debug = util.debuglog('stream'); -+var debug; -+if (util.debuglog) -+ debug = util.debuglog('stream'); -+else try { -+ debug = require('debuglog')('stream'); -+} catch (er) { -+ debug = function() {}; -+} - - util.inherits(Readable, Stream); - -@@ -380,7 +404,7 @@ function chunkInvalid(state, chunk) { - - - function onEofChunk(stream, state) { -- if (state.decoder && !state.ended) { -+ if (state.decoder && !state.ended && state.decoder.end) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); -diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js -index b1f9fcc..b0caf57 100644 ---- a/lib/_stream_transform.js -+++ b/lib/_stream_transform.js -@@ -64,8 +64,14 @@ - - module.exports = Transform; - --var Duplex = require('_stream_duplex'); -+var Duplex = require('./_stream_duplex'); - var util = require('util'); -+if (!util.isUndefined) { -+ var utilIs = require('core-util-is'); -+ for (var f in utilIs) { -+ util[f] = utilIs[f]; -+ } -+} - util.inherits(Transform, Duplex); - - -diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js -index ba2e920..f49288b 100644 ---- a/lib/_stream_writable.js -+++ b/lib/_stream_writable.js -@@ -27,6 +27,12 @@ module.exports = Writable; - Writable.WritableState = WritableState; - - var util = require('util'); -+if (!util.isUndefined) { -+ var utilIs = require('core-util-is'); -+ for (var f in utilIs) { -+ util[f] = utilIs[f]; -+ } -+} - var Stream = require('stream'); - - util.inherits(Writable, Stream); -@@ -119,7 +125,7 @@ function WritableState(options, stream) { - function Writable(options) { - // Writable ctor is applied to Duplexes, though they're not - // instanceof Writable, they're instanceof Readable. -- if (!(this instanceof Writable) && !(this instanceof Stream.Duplex)) -+ if (!(this instanceof Writable) && !(this instanceof require('./_stream_duplex'))) - return new Writable(options); - - this._writableState = new WritableState(options, this); -diff --git a/test/simple/test-stream-big-push.js b/test/simple/test-stream-big-push.js -index e3787e4..8cd2127 100644 ---- a/test/simple/test-stream-big-push.js -+++ b/test/simple/test-stream-big-push.js -@@ -21,7 +21,7 @@ - - var common = require('../common'); - var assert = require('assert'); --var stream = require('stream'); -+var stream = require('../../'); - var str = 'asdfasdfasdfasdfasdf'; - - var r = new stream.Readable({ -diff --git a/test/simple/test-stream-end-paused.js b/test/simple/test-stream-end-paused.js -index bb73777..d40efc7 100644 ---- a/test/simple/test-stream-end-paused.js -+++ b/test/simple/test-stream-end-paused.js -@@ -25,7 +25,7 @@ var gotEnd = false; - - // Make sure we don't miss the end event for paused 0-length streams - --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - var stream = new Readable(); - var calledRead = false; - stream._read = function() { -diff --git a/test/simple/test-stream-pipe-after-end.js b/test/simple/test-stream-pipe-after-end.js -index b46ee90..0be8366 100644 ---- a/test/simple/test-stream-pipe-after-end.js -+++ b/test/simple/test-stream-pipe-after-end.js -@@ -22,8 +22,8 @@ - var common = require('../common'); - var assert = require('assert'); - --var Readable = require('_stream_readable'); --var Writable = require('_stream_writable'); -+var Readable = require('../../lib/_stream_readable'); -+var Writable = require('../../lib/_stream_writable'); - var util = require('util'); - - util.inherits(TestReadable, Readable); -diff --git a/test/simple/test-stream-pipe-cleanup.js b/test/simple/test-stream-pipe-cleanup.js -deleted file mode 100644 -index f689358..0000000 ---- a/test/simple/test-stream-pipe-cleanup.js -+++ /dev/null -@@ -1,122 +0,0 @@ --// Copyright Joyent, Inc. and other Node contributors. --// --// 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. -- --// This test asserts that Stream.prototype.pipe does not leave listeners --// hanging on the source or dest. -- --var common = require('../common'); --var stream = require('stream'); --var assert = require('assert'); --var util = require('util'); -- --function Writable() { -- this.writable = true; -- this.endCalls = 0; -- stream.Stream.call(this); --} --util.inherits(Writable, stream.Stream); --Writable.prototype.end = function() { -- this.endCalls++; --}; -- --Writable.prototype.destroy = function() { -- this.endCalls++; --}; -- --function Readable() { -- this.readable = true; -- stream.Stream.call(this); --} --util.inherits(Readable, stream.Stream); -- --function Duplex() { -- this.readable = true; -- Writable.call(this); --} --util.inherits(Duplex, Writable); -- --var i = 0; --var limit = 100; -- --var w = new Writable(); -- --var r; -- --for (i = 0; i < limit; i++) { -- r = new Readable(); -- r.pipe(w); -- r.emit('end'); --} --assert.equal(0, r.listeners('end').length); --assert.equal(limit, w.endCalls); -- --w.endCalls = 0; -- --for (i = 0; i < limit; i++) { -- r = new Readable(); -- r.pipe(w); -- r.emit('close'); --} --assert.equal(0, r.listeners('close').length); --assert.equal(limit, w.endCalls); -- --w.endCalls = 0; -- --r = new Readable(); -- --for (i = 0; i < limit; i++) { -- w = new Writable(); -- r.pipe(w); -- w.emit('close'); --} --assert.equal(0, w.listeners('close').length); -- --r = new Readable(); --w = new Writable(); --var d = new Duplex(); --r.pipe(d); // pipeline A --d.pipe(w); // pipeline B --assert.equal(r.listeners('end').length, 2); // A.onend, A.cleanup --assert.equal(r.listeners('close').length, 2); // A.onclose, A.cleanup --assert.equal(d.listeners('end').length, 2); // B.onend, B.cleanup --assert.equal(d.listeners('close').length, 3); // A.cleanup, B.onclose, B.cleanup --assert.equal(w.listeners('end').length, 0); --assert.equal(w.listeners('close').length, 1); // B.cleanup -- --r.emit('end'); --assert.equal(d.endCalls, 1); --assert.equal(w.endCalls, 0); --assert.equal(r.listeners('end').length, 0); --assert.equal(r.listeners('close').length, 0); --assert.equal(d.listeners('end').length, 2); // B.onend, B.cleanup --assert.equal(d.listeners('close').length, 2); // B.onclose, B.cleanup --assert.equal(w.listeners('end').length, 0); --assert.equal(w.listeners('close').length, 1); // B.cleanup -- --d.emit('end'); --assert.equal(d.endCalls, 1); --assert.equal(w.endCalls, 1); --assert.equal(r.listeners('end').length, 0); --assert.equal(r.listeners('close').length, 0); --assert.equal(d.listeners('end').length, 0); --assert.equal(d.listeners('close').length, 0); --assert.equal(w.listeners('end').length, 0); --assert.equal(w.listeners('close').length, 0); -diff --git a/test/simple/test-stream-pipe-error-handling.js b/test/simple/test-stream-pipe-error-handling.js -index c5d724b..c7d6b7d 100644 ---- a/test/simple/test-stream-pipe-error-handling.js -+++ b/test/simple/test-stream-pipe-error-handling.js -@@ -21,7 +21,7 @@ - - var common = require('../common'); - var assert = require('assert'); --var Stream = require('stream').Stream; -+var Stream = require('../../').Stream; - - (function testErrorListenerCatches() { - var source = new Stream(); -diff --git a/test/simple/test-stream-pipe-event.js b/test/simple/test-stream-pipe-event.js -index cb9d5fe..56f8d61 100644 ---- a/test/simple/test-stream-pipe-event.js -+++ b/test/simple/test-stream-pipe-event.js -@@ -20,7 +20,7 @@ - // USE OR OTHER DEALINGS IN THE SOFTWARE. - - var common = require('../common'); --var stream = require('stream'); -+var stream = require('../../'); - var assert = require('assert'); - var util = require('util'); - -diff --git a/test/simple/test-stream-push-order.js b/test/simple/test-stream-push-order.js -index f2e6ec2..a5c9bf9 100644 ---- a/test/simple/test-stream-push-order.js -+++ b/test/simple/test-stream-push-order.js -@@ -20,7 +20,7 @@ - // USE OR OTHER DEALINGS IN THE SOFTWARE. - - var common = require('../common.js'); --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - var assert = require('assert'); - - var s = new Readable({ -diff --git a/test/simple/test-stream-push-strings.js b/test/simple/test-stream-push-strings.js -index 06f43dc..1701a9a 100644 ---- a/test/simple/test-stream-push-strings.js -+++ b/test/simple/test-stream-push-strings.js -@@ -22,7 +22,7 @@ - var common = require('../common'); - var assert = require('assert'); - --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - var util = require('util'); - - util.inherits(MyStream, Readable); -diff --git a/test/simple/test-stream-readable-event.js b/test/simple/test-stream-readable-event.js -index ba6a577..a8e6f7b 100644 ---- a/test/simple/test-stream-readable-event.js -+++ b/test/simple/test-stream-readable-event.js -@@ -22,7 +22,7 @@ - var common = require('../common'); - var assert = require('assert'); - --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - - (function first() { - // First test, not reading when the readable is added. -diff --git a/test/simple/test-stream-readable-flow-recursion.js b/test/simple/test-stream-readable-flow-recursion.js -index 2891ad6..11689ba 100644 ---- a/test/simple/test-stream-readable-flow-recursion.js -+++ b/test/simple/test-stream-readable-flow-recursion.js -@@ -27,7 +27,7 @@ var assert = require('assert'); - // more data continuously, but without triggering a nextTick - // warning or RangeError. - --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - - // throw an error if we trigger a nextTick warning. - process.throwDeprecation = true; -diff --git a/test/simple/test-stream-unshift-empty-chunk.js b/test/simple/test-stream-unshift-empty-chunk.js -index 0c96476..7827538 100644 ---- a/test/simple/test-stream-unshift-empty-chunk.js -+++ b/test/simple/test-stream-unshift-empty-chunk.js -@@ -24,7 +24,7 @@ var assert = require('assert'); - - // This test verifies that stream.unshift(Buffer(0)) or - // stream.unshift('') does not set state.reading=false. --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - - var r = new Readable(); - var nChunks = 10; -diff --git a/test/simple/test-stream-unshift-read-race.js b/test/simple/test-stream-unshift-read-race.js -index 83fd9fa..17c18aa 100644 ---- a/test/simple/test-stream-unshift-read-race.js -+++ b/test/simple/test-stream-unshift-read-race.js -@@ -29,7 +29,7 @@ var assert = require('assert'); - // 3. push() after the EOF signaling null is an error. - // 4. _read() is not called after pushing the EOF null chunk. - --var stream = require('stream'); -+var stream = require('../../'); - var hwm = 10; - var r = stream.Readable({ highWaterMark: hwm }); - var chunks = 10; -@@ -51,7 +51,14 @@ r._read = function(n) { - - function push(fast) { - assert(!pushedNull, 'push() after null push'); -- var c = pos >= data.length ? null : data.slice(pos, pos + n); -+ var c; -+ if (pos >= data.length) -+ c = null; -+ else { -+ if (n + pos > data.length) -+ n = data.length - pos; -+ c = data.slice(pos, pos + n); -+ } - pushedNull = c === null; - if (fast) { - pos += n; -diff --git a/test/simple/test-stream-writev.js b/test/simple/test-stream-writev.js -index 5b49e6e..b5321f3 100644 ---- a/test/simple/test-stream-writev.js -+++ b/test/simple/test-stream-writev.js -@@ -22,7 +22,7 @@ - var common = require('../common'); - var assert = require('assert'); - --var stream = require('stream'); -+var stream = require('../../'); - - var queue = []; - for (var decode = 0; decode < 2; decode++) { -diff --git a/test/simple/test-stream2-basic.js b/test/simple/test-stream2-basic.js -index 3814bf0..248c1be 100644 ---- a/test/simple/test-stream2-basic.js -+++ b/test/simple/test-stream2-basic.js -@@ -21,7 +21,7 @@ - - - var common = require('../common.js'); --var R = require('_stream_readable'); -+var R = require('../../lib/_stream_readable'); - var assert = require('assert'); - - var util = require('util'); -diff --git a/test/simple/test-stream2-compatibility.js b/test/simple/test-stream2-compatibility.js -index 6cdd4e9..f0fa84b 100644 ---- a/test/simple/test-stream2-compatibility.js -+++ b/test/simple/test-stream2-compatibility.js -@@ -21,7 +21,7 @@ - - - var common = require('../common.js'); --var R = require('_stream_readable'); -+var R = require('../../lib/_stream_readable'); - var assert = require('assert'); - - var util = require('util'); -diff --git a/test/simple/test-stream2-finish-pipe.js b/test/simple/test-stream2-finish-pipe.js -index 39b274f..006a19b 100644 ---- a/test/simple/test-stream2-finish-pipe.js -+++ b/test/simple/test-stream2-finish-pipe.js -@@ -20,7 +20,7 @@ - // USE OR OTHER DEALINGS IN THE SOFTWARE. - - var common = require('../common.js'); --var stream = require('stream'); -+var stream = require('../../'); - var Buffer = require('buffer').Buffer; - - var r = new stream.Readable(); -diff --git a/test/simple/test-stream2-fs.js b/test/simple/test-stream2-fs.js -deleted file mode 100644 -index e162406..0000000 ---- a/test/simple/test-stream2-fs.js -+++ /dev/null -@@ -1,72 +0,0 @@ --// Copyright Joyent, Inc. and other Node contributors. --// --// 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. -- -- --var common = require('../common.js'); --var R = require('_stream_readable'); --var assert = require('assert'); -- --var fs = require('fs'); --var FSReadable = fs.ReadStream; -- --var path = require('path'); --var file = path.resolve(common.fixturesDir, 'x1024.txt'); -- --var size = fs.statSync(file).size; -- --var expectLengths = [1024]; -- --var util = require('util'); --var Stream = require('stream'); -- --util.inherits(TestWriter, Stream); -- --function TestWriter() { -- Stream.apply(this); -- this.buffer = []; -- this.length = 0; --} -- --TestWriter.prototype.write = function(c) { -- this.buffer.push(c.toString()); -- this.length += c.length; -- return true; --}; -- --TestWriter.prototype.end = function(c) { -- if (c) this.buffer.push(c.toString()); -- this.emit('results', this.buffer); --} -- --var r = new FSReadable(file); --var w = new TestWriter(); -- --w.on('results', function(res) { -- console.error(res, w.length); -- assert.equal(w.length, size); -- var l = 0; -- assert.deepEqual(res.map(function (c) { -- return c.length; -- }), expectLengths); -- console.log('ok'); --}); -- --r.pipe(w); -diff --git a/test/simple/test-stream2-httpclient-response-end.js b/test/simple/test-stream2-httpclient-response-end.js -deleted file mode 100644 -index 15cffc2..0000000 ---- a/test/simple/test-stream2-httpclient-response-end.js -+++ /dev/null -@@ -1,52 +0,0 @@ --// Copyright Joyent, Inc. and other Node contributors. --// --// 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. -- --var common = require('../common.js'); --var assert = require('assert'); --var http = require('http'); --var msg = 'Hello'; --var readable_event = false; --var end_event = false; --var server = http.createServer(function(req, res) { -- res.writeHead(200, {'Content-Type': 'text/plain'}); -- res.end(msg); --}).listen(common.PORT, function() { -- http.get({port: common.PORT}, function(res) { -- var data = ''; -- res.on('readable', function() { -- console.log('readable event'); -- readable_event = true; -- data += res.read(); -- }); -- res.on('end', function() { -- console.log('end event'); -- end_event = true; -- assert.strictEqual(msg, data); -- server.close(); -- }); -- }); --}); -- --process.on('exit', function() { -- assert(readable_event); -- assert(end_event); --}); -- -diff --git a/test/simple/test-stream2-large-read-stall.js b/test/simple/test-stream2-large-read-stall.js -index 2fbfbca..667985b 100644 ---- a/test/simple/test-stream2-large-read-stall.js -+++ b/test/simple/test-stream2-large-read-stall.js -@@ -30,7 +30,7 @@ var PUSHSIZE = 20; - var PUSHCOUNT = 1000; - var HWM = 50; - --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - var r = new Readable({ - highWaterMark: HWM - }); -@@ -39,23 +39,23 @@ var rs = r._readableState; - r._read = push; - - r.on('readable', function() { -- console.error('>> readable'); -+ //console.error('>> readable'); - do { -- console.error(' > read(%d)', READSIZE); -+ //console.error(' > read(%d)', READSIZE); - var ret = r.read(READSIZE); -- console.error(' < %j (%d remain)', ret && ret.length, rs.length); -+ //console.error(' < %j (%d remain)', ret && ret.length, rs.length); - } while (ret && ret.length === READSIZE); - -- console.error('<< after read()', -- ret && ret.length, -- rs.needReadable, -- rs.length); -+ //console.error('<< after read()', -+ // ret && ret.length, -+ // rs.needReadable, -+ // rs.length); - }); - - var endEmitted = false; - r.on('end', function() { - endEmitted = true; -- console.error('end'); -+ //console.error('end'); - }); - - var pushes = 0; -@@ -64,11 +64,11 @@ function push() { - return; - - if (pushes++ === PUSHCOUNT) { -- console.error(' push(EOF)'); -+ //console.error(' push(EOF)'); - return r.push(null); - } - -- console.error(' push #%d', pushes); -+ //console.error(' push #%d', pushes); - if (r.push(new Buffer(PUSHSIZE))) - setTimeout(push); - } -diff --git a/test/simple/test-stream2-objects.js b/test/simple/test-stream2-objects.js -index 3e6931d..ff47d89 100644 ---- a/test/simple/test-stream2-objects.js -+++ b/test/simple/test-stream2-objects.js -@@ -21,8 +21,8 @@ - - - var common = require('../common.js'); --var Readable = require('_stream_readable'); --var Writable = require('_stream_writable'); -+var Readable = require('../../lib/_stream_readable'); -+var Writable = require('../../lib/_stream_writable'); - var assert = require('assert'); - - // tiny node-tap lookalike. -diff --git a/test/simple/test-stream2-pipe-error-handling.js b/test/simple/test-stream2-pipe-error-handling.js -index cf7531c..e3f3e4e 100644 ---- a/test/simple/test-stream2-pipe-error-handling.js -+++ b/test/simple/test-stream2-pipe-error-handling.js -@@ -21,7 +21,7 @@ - - var common = require('../common'); - var assert = require('assert'); --var stream = require('stream'); -+var stream = require('../../'); - - (function testErrorListenerCatches() { - var count = 1000; -diff --git a/test/simple/test-stream2-pipe-error-once-listener.js b/test/simple/test-stream2-pipe-error-once-listener.js -index 5e8e3cb..53b2616 100755 ---- a/test/simple/test-stream2-pipe-error-once-listener.js -+++ b/test/simple/test-stream2-pipe-error-once-listener.js -@@ -24,7 +24,7 @@ var common = require('../common.js'); - var assert = require('assert'); - - var util = require('util'); --var stream = require('stream'); -+var stream = require('../../'); - - - var Read = function() { -diff --git a/test/simple/test-stream2-push.js b/test/simple/test-stream2-push.js -index b63edc3..eb2b0e9 100644 ---- a/test/simple/test-stream2-push.js -+++ b/test/simple/test-stream2-push.js -@@ -20,7 +20,7 @@ - // USE OR OTHER DEALINGS IN THE SOFTWARE. - - var common = require('../common.js'); --var stream = require('stream'); -+var stream = require('../../'); - var Readable = stream.Readable; - var Writable = stream.Writable; - var assert = require('assert'); -diff --git a/test/simple/test-stream2-read-sync-stack.js b/test/simple/test-stream2-read-sync-stack.js -index e8a7305..9740a47 100644 ---- a/test/simple/test-stream2-read-sync-stack.js -+++ b/test/simple/test-stream2-read-sync-stack.js -@@ -21,7 +21,7 @@ - - var common = require('../common'); - var assert = require('assert'); --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - var r = new Readable(); - var N = 256 * 1024; - -diff --git a/test/simple/test-stream2-readable-empty-buffer-no-eof.js b/test/simple/test-stream2-readable-empty-buffer-no-eof.js -index cd30178..4b1659d 100644 ---- a/test/simple/test-stream2-readable-empty-buffer-no-eof.js -+++ b/test/simple/test-stream2-readable-empty-buffer-no-eof.js -@@ -22,10 +22,9 @@ - var common = require('../common'); - var assert = require('assert'); - --var Readable = require('stream').Readable; -+var Readable = require('../../').Readable; - - test1(); --test2(); - - function test1() { - var r = new Readable(); -@@ -88,31 +87,3 @@ function test1() { - console.log('ok'); - }); - } -- --function test2() { -- var r = new Readable({ encoding: 'base64' }); -- var reads = 5; -- r._read = function(n) { -- if (!reads--) -- return r.push(null); // EOF -- else -- return r.push(new Buffer('x')); -- }; -- -- var results = []; -- function flow() { -- var chunk; -- while (null !== (chunk = r.read())) -- results.push(chunk + ''); -- } -- r.on('readable', flow); -- r.on('end', function() { -- results.push('EOF'); -- }); -- flow(); -- -- process.on('exit', function() { -- assert.deepEqual(results, [ 'eHh4', 'eHg=', 'EOF' ]); -- console.log('ok'); -- }); --} -diff --git a/test/simple/test-stream2-readable-from-list.js b/test/simple/test-stream2-readable-from-list.js -index 7c96ffe..04a96f5 100644 ---- a/test/simple/test-stream2-readable-from-list.js -+++ b/test/simple/test-stream2-readable-from-list.js -@@ -21,7 +21,7 @@ - - var assert = require('assert'); - var common = require('../common.js'); --var fromList = require('_stream_readable')._fromList; -+var fromList = require('../../lib/_stream_readable')._fromList; - - // tiny node-tap lookalike. - var tests = []; -diff --git a/test/simple/test-stream2-readable-legacy-drain.js b/test/simple/test-stream2-readable-legacy-drain.js -index 675da8e..51fd3d5 100644 ---- a/test/simple/test-stream2-readable-legacy-drain.js -+++ b/test/simple/test-stream2-readable-legacy-drain.js -@@ -22,7 +22,7 @@ - var common = require('../common'); - var assert = require('assert'); - --var Stream = require('stream'); -+var Stream = require('../../'); - var Readable = Stream.Readable; - - var r = new Readable(); -diff --git a/test/simple/test-stream2-readable-non-empty-end.js b/test/simple/test-stream2-readable-non-empty-end.js -index 7314ae7..c971898 100644 ---- a/test/simple/test-stream2-readable-non-empty-end.js -+++ b/test/simple/test-stream2-readable-non-empty-end.js -@@ -21,7 +21,7 @@ - - var assert = require('assert'); - var common = require('../common.js'); --var Readable = require('_stream_readable'); -+var Readable = require('../../lib/_stream_readable'); - - var len = 0; - var chunks = new Array(10); -diff --git a/test/simple/test-stream2-readable-wrap-empty.js b/test/simple/test-stream2-readable-wrap-empty.js -index 2e5cf25..fd8a3dc 100644 ---- a/test/simple/test-stream2-readable-wrap-empty.js -+++ b/test/simple/test-stream2-readable-wrap-empty.js -@@ -22,7 +22,7 @@ - var common = require('../common'); - var assert = require('assert'); - --var Readable = require('_stream_readable'); -+var Readable = require('../../lib/_stream_readable'); - var EE = require('events').EventEmitter; - - var oldStream = new EE(); -diff --git a/test/simple/test-stream2-readable-wrap.js b/test/simple/test-stream2-readable-wrap.js -index 90eea01..6b177f7 100644 ---- a/test/simple/test-stream2-readable-wrap.js -+++ b/test/simple/test-stream2-readable-wrap.js -@@ -22,8 +22,8 @@ - var common = require('../common'); - var assert = require('assert'); - --var Readable = require('_stream_readable'); --var Writable = require('_stream_writable'); -+var Readable = require('../../lib/_stream_readable'); -+var Writable = require('../../lib/_stream_writable'); - var EE = require('events').EventEmitter; - - var testRuns = 0, completedRuns = 0; -diff --git a/test/simple/test-stream2-set-encoding.js b/test/simple/test-stream2-set-encoding.js -index 5d2c32a..685531b 100644 ---- a/test/simple/test-stream2-set-encoding.js -+++ b/test/simple/test-stream2-set-encoding.js -@@ -22,7 +22,7 @@ - - var common = require('../common.js'); - var assert = require('assert'); --var R = require('_stream_readable'); -+var R = require('../../lib/_stream_readable'); - var util = require('util'); - - // tiny node-tap lookalike. -diff --git a/test/simple/test-stream2-transform.js b/test/simple/test-stream2-transform.js -index 9c9ddd8..a0cacc6 100644 ---- a/test/simple/test-stream2-transform.js -+++ b/test/simple/test-stream2-transform.js -@@ -21,8 +21,8 @@ - - var assert = require('assert'); - var common = require('../common.js'); --var PassThrough = require('_stream_passthrough'); --var Transform = require('_stream_transform'); -+var PassThrough = require('../../').PassThrough; -+var Transform = require('../../').Transform; - - // tiny node-tap lookalike. - var tests = []; -diff --git a/test/simple/test-stream2-unpipe-drain.js b/test/simple/test-stream2-unpipe-drain.js -index d66dc3c..365b327 100644 ---- a/test/simple/test-stream2-unpipe-drain.js -+++ b/test/simple/test-stream2-unpipe-drain.js -@@ -22,7 +22,7 @@ - - var common = require('../common.js'); - var assert = require('assert'); --var stream = require('stream'); -+var stream = require('../../'); - var crypto = require('crypto'); - - var util = require('util'); -diff --git a/test/simple/test-stream2-unpipe-leak.js b/test/simple/test-stream2-unpipe-leak.js -index 99f8746..17c92ae 100644 ---- a/test/simple/test-stream2-unpipe-leak.js -+++ b/test/simple/test-stream2-unpipe-leak.js -@@ -22,7 +22,7 @@ - - var common = require('../common.js'); - var assert = require('assert'); --var stream = require('stream'); -+var stream = require('../../'); - - var chunk = new Buffer('hallo'); - -diff --git a/test/simple/test-stream2-writable.js b/test/simple/test-stream2-writable.js -index 704100c..209c3a6 100644 ---- a/test/simple/test-stream2-writable.js -+++ b/test/simple/test-stream2-writable.js -@@ -20,8 +20,8 @@ - // USE OR OTHER DEALINGS IN THE SOFTWARE. - - var common = require('../common.js'); --var W = require('_stream_writable'); --var D = require('_stream_duplex'); -+var W = require('../../').Writable; -+var D = require('../../').Duplex; - var assert = require('assert'); - - var util = require('util'); -diff --git a/test/simple/test-stream3-pause-then-read.js b/test/simple/test-stream3-pause-then-read.js -index b91bde3..2f72c15 100644 ---- a/test/simple/test-stream3-pause-then-read.js -+++ b/test/simple/test-stream3-pause-then-read.js -@@ -22,7 +22,7 @@ - var common = require('../common'); - var assert = require('assert'); - --var stream = require('stream'); -+var stream = require('../../'); - var Readable = stream.Readable; - var Writable = stream.Writable; - diff --git a/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/readable-stream/lib/_stream_duplex.js deleted file mode 100644 index b513d61..0000000 --- a/node_modules/readable-stream/lib/_stream_duplex.js +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. - -module.exports = Duplex; - -/**/ -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) keys.push(key); - return keys; -} -/**/ - - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -var Readable = require('./_stream_readable'); -var Writable = require('./_stream_writable'); - -util.inherits(Duplex, Readable); - -forEach(objectKeys(Writable.prototype), function(method) { - if (!Duplex.prototype[method]) - Duplex.prototype[method] = Writable.prototype[method]; -}); - -function Duplex(options) { - if (!(this instanceof Duplex)) - return new Duplex(options); - - Readable.call(this, options); - Writable.call(this, options); - - if (options && options.readable === false) - this.readable = false; - - if (options && options.writable === false) - this.writable = false; - - this.allowHalfOpen = true; - if (options && options.allowHalfOpen === false) - this.allowHalfOpen = false; - - this.once('end', onend); -} - -// the no-half-open enforcer -function onend() { - // if we allow half-open state, or if the writable side ended, - // then we're ok. - if (this.allowHalfOpen || this._writableState.ended) - return; - - // no more data can be written. - // But allow more writes to happen in this tick. - process.nextTick(this.end.bind(this)); -} - -function forEach (xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} diff --git a/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/readable-stream/lib/_stream_passthrough.js deleted file mode 100644 index 895ca50..0000000 --- a/node_modules/readable-stream/lib/_stream_passthrough.js +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - -// a passthrough stream. -// basically just the most minimal sort of Transform stream. -// Every written chunk gets output as-is. - -module.exports = PassThrough; - -var Transform = require('./_stream_transform'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -util.inherits(PassThrough, Transform); - -function PassThrough(options) { - if (!(this instanceof PassThrough)) - return new PassThrough(options); - - Transform.call(this, options); -} - -PassThrough.prototype._transform = function(chunk, encoding, cb) { - cb(null, chunk); -}; diff --git a/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/readable-stream/lib/_stream_readable.js deleted file mode 100644 index 19ab358..0000000 --- a/node_modules/readable-stream/lib/_stream_readable.js +++ /dev/null @@ -1,951 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - -module.exports = Readable; - -/**/ -var isArray = require('isarray'); -/**/ - - -/**/ -var Buffer = require('buffer').Buffer; -/**/ - -Readable.ReadableState = ReadableState; - -var EE = require('events').EventEmitter; - -/**/ -if (!EE.listenerCount) EE.listenerCount = function(emitter, type) { - return emitter.listeners(type).length; -}; -/**/ - -var Stream = require('stream'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -var StringDecoder; - - -/**/ -var debug = require('util'); -if (debug && debug.debuglog) { - debug = debug.debuglog('stream'); -} else { - debug = function () {}; -} -/**/ - - -util.inherits(Readable, Stream); - -function ReadableState(options, stream) { - var Duplex = require('./_stream_duplex'); - - options = options || {}; - - // the point at which it stops calling _read() to fill the buffer - // Note: 0 is a valid value, means "don't call _read preemptively ever" - var hwm = options.highWaterMark; - var defaultHwm = options.objectMode ? 16 : 16 * 1024; - this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm; - - // cast to ints. - this.highWaterMark = ~~this.highWaterMark; - - this.buffer = []; - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // whenever we return null, then we set a flag to say - // that we're awaiting a 'readable' event emission. - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - - - // object stream flag. Used to make read(n) ignore n and to - // make all the buffer merging and length checks go away - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) - this.objectMode = this.objectMode || !!options.readableObjectMode; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // when piping, we only care about 'readable' events that happen - // after read()ing all the bytes and not getting any pushback. - this.ranOut = false; - - // the number of writers that are awaiting a drain event in .pipe()s - this.awaitDrain = 0; - - // if true, a maybeReadMore has been scheduled - this.readingMore = false; - - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) - StringDecoder = require('string_decoder/').StringDecoder; - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } -} - -function Readable(options) { - var Duplex = require('./_stream_duplex'); - - if (!(this instanceof Readable)) - return new Readable(options); - - this._readableState = new ReadableState(options, this); - - // legacy - this.readable = true; - - Stream.call(this); -} - -// Manually shove something into the read() buffer. -// This returns true if the highWaterMark has not been hit yet, -// similar to how Writable.write() returns true if you should -// write() some more. -Readable.prototype.push = function(chunk, encoding) { - var state = this._readableState; - - if (util.isString(chunk) && !state.objectMode) { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = new Buffer(chunk, encoding); - encoding = ''; - } - } - - return readableAddChunk(this, state, chunk, encoding, false); -}; - -// Unshift should *always* be something directly out of read() -Readable.prototype.unshift = function(chunk) { - var state = this._readableState; - return readableAddChunk(this, state, chunk, '', true); -}; - -function readableAddChunk(stream, state, chunk, encoding, addToFront) { - var er = chunkInvalid(state, chunk); - if (er) { - stream.emit('error', er); - } else if (util.isNullOrUndefined(chunk)) { - state.reading = false; - if (!state.ended) - onEofChunk(stream, state); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (state.ended && !addToFront) { - var e = new Error('stream.push() after EOF'); - stream.emit('error', e); - } else if (state.endEmitted && addToFront) { - var e = new Error('stream.unshift() after end event'); - stream.emit('error', e); - } else { - if (state.decoder && !addToFront && !encoding) - chunk = state.decoder.write(chunk); - - if (!addToFront) - state.reading = false; - - // if we want the data now, just emit it. - if (state.flowing && state.length === 0 && !state.sync) { - stream.emit('data', chunk); - stream.read(0); - } else { - // update the buffer info. - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) - state.buffer.unshift(chunk); - else - state.buffer.push(chunk); - - if (state.needReadable) - emitReadable(stream); - } - - maybeReadMore(stream, state); - } - } else if (!addToFront) { - state.reading = false; - } - - return needMoreData(state); -} - - - -// if it's past the high water mark, we can push in some more. -// Also, if we have no data yet, we can stand some -// more bytes. This is to work around cases where hwm=0, -// such as the repl. Also, if the push() triggered a -// readable event, and the user called read(largeNumber) such that -// needReadable was set, then we ought to push more, so that another -// 'readable' event will be triggered. -function needMoreData(state) { - return !state.ended && - (state.needReadable || - state.length < state.highWaterMark || - state.length === 0); -} - -// backwards compatibility. -Readable.prototype.setEncoding = function(enc) { - if (!StringDecoder) - StringDecoder = require('string_decoder/').StringDecoder; - this._readableState.decoder = new StringDecoder(enc); - this._readableState.encoding = enc; - return this; -}; - -// Don't raise the hwm > 128MB -var MAX_HWM = 0x800000; -function roundUpToNextPowerOf2(n) { - if (n >= MAX_HWM) { - n = MAX_HWM; - } else { - // Get the next highest power of 2 - n--; - for (var p = 1; p < 32; p <<= 1) n |= n >> p; - n++; - } - return n; -} - -function howMuchToRead(n, state) { - if (state.length === 0 && state.ended) - return 0; - - if (state.objectMode) - return n === 0 ? 0 : 1; - - if (isNaN(n) || util.isNull(n)) { - // only flow one buffer at a time - if (state.flowing && state.buffer.length) - return state.buffer[0].length; - else - return state.length; - } - - if (n <= 0) - return 0; - - // If we're asking for more than the target buffer level, - // then raise the water mark. Bump up to the next highest - // power of 2, to prevent increasing it excessively in tiny - // amounts. - if (n > state.highWaterMark) - state.highWaterMark = roundUpToNextPowerOf2(n); - - // don't have that much. return null, unless we've ended. - if (n > state.length) { - if (!state.ended) { - state.needReadable = true; - return 0; - } else - return state.length; - } - - return n; -} - -// you can override either this method, or the async _read(n) below. -Readable.prototype.read = function(n) { - debug('read', n); - var state = this._readableState; - var nOrig = n; - - if (!util.isNumber(n) || n > 0) - state.emittedReadable = false; - - // if we're doing read(0) to trigger a readable event, but we - // already have a bunch of data in the buffer, then just trigger - // the 'readable' event and move on. - if (n === 0 && - state.needReadable && - (state.length >= state.highWaterMark || state.ended)) { - debug('read: emitReadable', state.length, state.ended); - if (state.length === 0 && state.ended) - endReadable(this); - else - emitReadable(this); - return null; - } - - n = howMuchToRead(n, state); - - // if we've ended, and we're now clear, then finish it up. - if (n === 0 && state.ended) { - if (state.length === 0) - endReadable(this); - return null; - } - - // All the actual chunk generation logic needs to be - // *below* the call to _read. The reason is that in certain - // synthetic stream cases, such as passthrough streams, _read - // may be a completely synchronous operation which may change - // the state of the read buffer, providing enough data when - // before there was *not* enough. - // - // So, the steps are: - // 1. Figure out what the state of things will be after we do - // a read from the buffer. - // - // 2. If that resulting state will trigger a _read, then call _read. - // Note that this may be asynchronous, or synchronous. Yes, it is - // deeply ugly to write APIs this way, but that still doesn't mean - // that the Readable class should behave improperly, as streams are - // designed to be sync/async agnostic. - // Take note if the _read call is sync or async (ie, if the read call - // has returned yet), so that we know whether or not it's safe to emit - // 'readable' etc. - // - // 3. Actually pull the requested chunks out of the buffer and return. - - // if we need a readable event, then we need to do some reading. - var doRead = state.needReadable; - debug('need readable', doRead); - - // if we currently have less than the highWaterMark, then also read some - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug('length less than watermark', doRead); - } - - // however, if we've ended, then there's no point, and if we're already - // reading, then it's unnecessary. - if (state.ended || state.reading) { - doRead = false; - debug('reading or ended', doRead); - } - - if (doRead) { - debug('do read'); - state.reading = true; - state.sync = true; - // if the length is currently zero, then we *need* a readable event. - if (state.length === 0) - state.needReadable = true; - // call internal read method - this._read(state.highWaterMark); - state.sync = false; - } - - // If _read pushed data synchronously, then `reading` will be false, - // and we need to re-evaluate how much data we can return to the user. - if (doRead && !state.reading) - n = howMuchToRead(nOrig, state); - - var ret; - if (n > 0) - ret = fromList(n, state); - else - ret = null; - - if (util.isNull(ret)) { - state.needReadable = true; - n = 0; - } - - state.length -= n; - - // If we have nothing in the buffer, then we want to know - // as soon as we *do* get something into the buffer. - if (state.length === 0 && !state.ended) - state.needReadable = true; - - // If we tried to read() past the EOF, then emit end on the next tick. - if (nOrig !== n && state.ended && state.length === 0) - endReadable(this); - - if (!util.isNull(ret)) - this.emit('data', ret); - - return ret; -}; - -function chunkInvalid(state, chunk) { - var er = null; - if (!util.isBuffer(chunk) && - !util.isString(chunk) && - !util.isNullOrUndefined(chunk) && - !state.objectMode) { - er = new TypeError('Invalid non-string/buffer chunk'); - } - return er; -} - - -function onEofChunk(stream, state) { - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - - // emit 'readable' now to make sure it gets picked up. - emitReadable(stream); -} - -// Don't emit readable right away in sync mode, because this can trigger -// another read() call => stack overflow. This way, it might trigger -// a nextTick recursion warning, but that's not so bad. -function emitReadable(stream) { - var state = stream._readableState; - state.needReadable = false; - if (!state.emittedReadable) { - debug('emitReadable', state.flowing); - state.emittedReadable = true; - if (state.sync) - process.nextTick(function() { - emitReadable_(stream); - }); - else - emitReadable_(stream); - } -} - -function emitReadable_(stream) { - debug('emit readable'); - stream.emit('readable'); - flow(stream); -} - - -// at this point, the user has presumably seen the 'readable' event, -// and called read() to consume some data. that may have triggered -// in turn another _read(n) call, in which case reading = true if -// it's in progress. -// However, if we're not ended, or reading, and the length < hwm, -// then go ahead and try to read some more preemptively. -function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - process.nextTick(function() { - maybeReadMore_(stream, state); - }); - } -} - -function maybeReadMore_(stream, state) { - var len = state.length; - while (!state.reading && !state.flowing && !state.ended && - state.length < state.highWaterMark) { - debug('maybeReadMore read 0'); - stream.read(0); - if (len === state.length) - // didn't get any data, stop spinning. - break; - else - len = state.length; - } - state.readingMore = false; -} - -// abstract method. to be overridden in specific implementation classes. -// call cb(er, data) where data is <= n in length. -// for virtual (non-string, non-buffer) streams, "length" is somewhat -// arbitrary, and perhaps not very meaningful. -Readable.prototype._read = function(n) { - this.emit('error', new Error('not implemented')); -}; - -Readable.prototype.pipe = function(dest, pipeOpts) { - var src = this; - var state = this._readableState; - - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); - - var doEnd = (!pipeOpts || pipeOpts.end !== false) && - dest !== process.stdout && - dest !== process.stderr; - - var endFn = doEnd ? onend : cleanup; - if (state.endEmitted) - process.nextTick(endFn); - else - src.once('end', endFn); - - dest.on('unpipe', onunpipe); - function onunpipe(readable) { - debug('onunpipe'); - if (readable === src) { - cleanup(); - } - } - - function onend() { - debug('onend'); - dest.end(); - } - - // when the dest drains, it reduces the awaitDrain counter - // on the source. This would be more elegant with a .once() - // handler in flow(), but adding and removing repeatedly is - // too slow. - var ondrain = pipeOnDrain(src); - dest.on('drain', ondrain); - - function cleanup() { - debug('cleanup'); - // cleanup event handlers once the pipe is broken - dest.removeListener('close', onclose); - dest.removeListener('finish', onfinish); - dest.removeListener('drain', ondrain); - dest.removeListener('error', onerror); - dest.removeListener('unpipe', onunpipe); - src.removeListener('end', onend); - src.removeListener('end', cleanup); - src.removeListener('data', ondata); - - // if the reader is waiting for a drain event from this - // specific writer, then it would cause it to never start - // flowing again. - // So, if this is awaiting a drain, then we just call it now. - // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && - (!dest._writableState || dest._writableState.needDrain)) - ondrain(); - } - - src.on('data', ondata); - function ondata(chunk) { - debug('ondata'); - var ret = dest.write(chunk); - if (false === ret) { - debug('false write response, pause', - src._readableState.awaitDrain); - src._readableState.awaitDrain++; - src.pause(); - } - } - - // if the dest has an error, then stop piping into it. - // however, don't suppress the throwing behavior for this. - function onerror(er) { - debug('onerror', er); - unpipe(); - dest.removeListener('error', onerror); - if (EE.listenerCount(dest, 'error') === 0) - dest.emit('error', er); - } - // This is a brutally ugly hack to make sure that our error handler - // is attached before any userland ones. NEVER DO THIS. - if (!dest._events || !dest._events.error) - dest.on('error', onerror); - else if (isArray(dest._events.error)) - dest._events.error.unshift(onerror); - else - dest._events.error = [onerror, dest._events.error]; - - - - // Both close and finish should trigger unpipe, but only once. - function onclose() { - dest.removeListener('finish', onfinish); - unpipe(); - } - dest.once('close', onclose); - function onfinish() { - debug('onfinish'); - dest.removeListener('close', onclose); - unpipe(); - } - dest.once('finish', onfinish); - - function unpipe() { - debug('unpipe'); - src.unpipe(dest); - } - - // tell the dest that it's being piped to - dest.emit('pipe', src); - - // start the flow if it hasn't been started already. - if (!state.flowing) { - debug('pipe resume'); - src.resume(); - } - - return dest; -}; - -function pipeOnDrain(src) { - return function() { - var state = src._readableState; - debug('pipeOnDrain', state.awaitDrain); - if (state.awaitDrain) - state.awaitDrain--; - if (state.awaitDrain === 0 && EE.listenerCount(src, 'data')) { - state.flowing = true; - flow(src); - } - }; -} - - -Readable.prototype.unpipe = function(dest) { - var state = this._readableState; - - // if we're not piping anywhere, then do nothing. - if (state.pipesCount === 0) - return this; - - // just one destination. most common case. - if (state.pipesCount === 1) { - // passed in one, but it's not the right one. - if (dest && dest !== state.pipes) - return this; - - if (!dest) - dest = state.pipes; - - // got a match. - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) - dest.emit('unpipe', this); - return this; - } - - // slow case. multiple pipe destinations. - - if (!dest) { - // remove all. - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - - for (var i = 0; i < len; i++) - dests[i].emit('unpipe', this); - return this; - } - - // try to find the right one. - var i = indexOf(state.pipes, dest); - if (i === -1) - return this; - - state.pipes.splice(i, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) - state.pipes = state.pipes[0]; - - dest.emit('unpipe', this); - - return this; -}; - -// set up data events if they are asked for -// Ensure readable listeners eventually get something -Readable.prototype.on = function(ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - - // If listening to data, and it has not explicitly been paused, - // then call resume to start the flow of data on the next tick. - if (ev === 'data' && false !== this._readableState.flowing) { - this.resume(); - } - - if (ev === 'readable' && this.readable) { - var state = this._readableState; - if (!state.readableListening) { - state.readableListening = true; - state.emittedReadable = false; - state.needReadable = true; - if (!state.reading) { - var self = this; - process.nextTick(function() { - debug('readable nexttick read 0'); - self.read(0); - }); - } else if (state.length) { - emitReadable(this, state); - } - } - } - - return res; -}; -Readable.prototype.addListener = Readable.prototype.on; - -// pause() and resume() are remnants of the legacy readable stream API -// If the user uses them, then switch into old mode. -Readable.prototype.resume = function() { - var state = this._readableState; - if (!state.flowing) { - debug('resume'); - state.flowing = true; - if (!state.reading) { - debug('resume read 0'); - this.read(0); - } - resume(this, state); - } - return this; -}; - -function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - process.nextTick(function() { - resume_(stream, state); - }); - } -} - -function resume_(stream, state) { - state.resumeScheduled = false; - stream.emit('resume'); - flow(stream); - if (state.flowing && !state.reading) - stream.read(0); -} - -Readable.prototype.pause = function() { - debug('call pause flowing=%j', this._readableState.flowing); - if (false !== this._readableState.flowing) { - debug('pause'); - this._readableState.flowing = false; - this.emit('pause'); - } - return this; -}; - -function flow(stream) { - var state = stream._readableState; - debug('flow', state.flowing); - if (state.flowing) { - do { - var chunk = stream.read(); - } while (null !== chunk && state.flowing); - } -} - -// wrap an old-style stream as the async data source. -// This is *not* part of the readable stream interface. -// It is an ugly unfortunate mess of history. -Readable.prototype.wrap = function(stream) { - var state = this._readableState; - var paused = false; - - var self = this; - stream.on('end', function() { - debug('wrapped end'); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) - self.push(chunk); - } - - self.push(null); - }); - - stream.on('data', function(chunk) { - debug('wrapped data'); - if (state.decoder) - chunk = state.decoder.write(chunk); - if (!chunk || !state.objectMode && !chunk.length) - return; - - var ret = self.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); - - // proxy all the other methods. - // important when wrapping filters and duplexes. - for (var i in stream) { - if (util.isFunction(stream[i]) && util.isUndefined(this[i])) { - this[i] = function(method) { return function() { - return stream[method].apply(stream, arguments); - }}(i); - } - } - - // proxy certain important events. - var events = ['error', 'close', 'destroy', 'pause', 'resume']; - forEach(events, function(ev) { - stream.on(ev, self.emit.bind(self, ev)); - }); - - // when we try to consume some more bytes, simply unpause the - // underlying stream. - self._read = function(n) { - debug('wrapped _read', n); - if (paused) { - paused = false; - stream.resume(); - } - }; - - return self; -}; - - - -// exposed for testing purposes only. -Readable._fromList = fromList; - -// Pluck off n bytes from an array of buffers. -// Length is the combined lengths of all the buffers in the list. -function fromList(n, state) { - var list = state.buffer; - var length = state.length; - var stringMode = !!state.decoder; - var objectMode = !!state.objectMode; - var ret; - - // nothing in the list, definitely empty. - if (list.length === 0) - return null; - - if (length === 0) - ret = null; - else if (objectMode) - ret = list.shift(); - else if (!n || n >= length) { - // read it all, truncate the array. - if (stringMode) - ret = list.join(''); - else - ret = Buffer.concat(list, length); - list.length = 0; - } else { - // read just some of it. - if (n < list[0].length) { - // just take a part of the first list item. - // slice is the same for buffers and strings. - var buf = list[0]; - ret = buf.slice(0, n); - list[0] = buf.slice(n); - } else if (n === list[0].length) { - // first list is a perfect match - ret = list.shift(); - } else { - // complex case. - // we have enough to cover it, but it spans past the first buffer. - if (stringMode) - ret = ''; - else - ret = new Buffer(n); - - var c = 0; - for (var i = 0, l = list.length; i < l && c < n; i++) { - var buf = list[0]; - var cpy = Math.min(n - c, buf.length); - - if (stringMode) - ret += buf.slice(0, cpy); - else - buf.copy(ret, c, 0, cpy); - - if (cpy < buf.length) - list[0] = buf.slice(cpy); - else - list.shift(); - - c += cpy; - } - } - } - - return ret; -} - -function endReadable(stream) { - var state = stream._readableState; - - // If we get here before consuming all the bytes, then that is a - // bug in node. Should never happen. - if (state.length > 0) - throw new Error('endReadable called on non-empty stream'); - - if (!state.endEmitted) { - state.ended = true; - process.nextTick(function() { - // Check that we didn't get one last unshift. - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit('end'); - } - }); - } -} - -function forEach (xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} - -function indexOf (xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) return i; - } - return -1; -} diff --git a/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/readable-stream/lib/_stream_transform.js deleted file mode 100644 index 905c5e4..0000000 --- a/node_modules/readable-stream/lib/_stream_transform.js +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - - -// a transform stream is a readable/writable stream where you do -// something with the data. Sometimes it's called a "filter", -// but that's not a great name for it, since that implies a thing where -// some bits pass through, and others are simply ignored. (That would -// be a valid example of a transform, of course.) -// -// While the output is causally related to the input, it's not a -// necessarily symmetric or synchronous transformation. For example, -// a zlib stream might take multiple plain-text writes(), and then -// emit a single compressed chunk some time in the future. -// -// Here's how this works: -// -// The Transform stream has all the aspects of the readable and writable -// stream classes. When you write(chunk), that calls _write(chunk,cb) -// internally, and returns false if there's a lot of pending writes -// buffered up. When you call read(), that calls _read(n) until -// there's enough pending readable data buffered up. -// -// In a transform stream, the written data is placed in a buffer. When -// _read(n) is called, it transforms the queued up data, calling the -// buffered _write cb's as it consumes chunks. If consuming a single -// written chunk would result in multiple output chunks, then the first -// outputted bit calls the readcb, and subsequent chunks just go into -// the read buffer, and will cause it to emit 'readable' if necessary. -// -// This way, back-pressure is actually determined by the reading side, -// since _read has to be called to start processing a new chunk. However, -// a pathological inflate type of transform can cause excessive buffering -// here. For example, imagine a stream where every byte of input is -// interpreted as an integer from 0-255, and then results in that many -// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in -// 1kb of data being output. In this case, you could write a very small -// amount of input, and end up with a very large amount of output. In -// such a pathological inflating mechanism, there'd be no way to tell -// the system to stop doing the transform. A single 4MB write could -// cause the system to run out of memory. -// -// However, even in such a pathological case, only a single written chunk -// would be consumed, and then the rest would wait (un-transformed) until -// the results of the previous transformed chunk were consumed. - -module.exports = Transform; - -var Duplex = require('./_stream_duplex'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -util.inherits(Transform, Duplex); - - -function TransformState(options, stream) { - this.afterTransform = function(er, data) { - return afterTransform(stream, er, data); - }; - - this.needTransform = false; - this.transforming = false; - this.writecb = null; - this.writechunk = null; -} - -function afterTransform(stream, er, data) { - var ts = stream._transformState; - ts.transforming = false; - - var cb = ts.writecb; - - if (!cb) - return stream.emit('error', new Error('no writecb in Transform class')); - - ts.writechunk = null; - ts.writecb = null; - - if (!util.isNullOrUndefined(data)) - stream.push(data); - - if (cb) - cb(er); - - var rs = stream._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - stream._read(rs.highWaterMark); - } -} - - -function Transform(options) { - if (!(this instanceof Transform)) - return new Transform(options); - - Duplex.call(this, options); - - this._transformState = new TransformState(options, this); - - // when the writable side finishes, then flush out anything remaining. - var stream = this; - - // start out asking for a readable event once data is transformed. - this._readableState.needReadable = true; - - // we have implemented the _read method, and done the other things - // that Readable wants before the first _read call, so unset the - // sync guard flag. - this._readableState.sync = false; - - this.once('prefinish', function() { - if (util.isFunction(this._flush)) - this._flush(function(er) { - done(stream, er); - }); - else - done(stream); - }); -} - -Transform.prototype.push = function(chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); -}; - -// This is the part where you do stuff! -// override this function in implementation classes. -// 'chunk' is an input chunk. -// -// Call `push(newChunk)` to pass along transformed output -// to the readable side. You may call 'push' zero or more times. -// -// Call `cb(err)` when you are done with this chunk. If you pass -// an error, then that'll put the hurt on the whole operation. If you -// never call cb(), then you'll never get another chunk. -Transform.prototype._transform = function(chunk, encoding, cb) { - throw new Error('not implemented'); -}; - -Transform.prototype._write = function(chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || - rs.needReadable || - rs.length < rs.highWaterMark) - this._read(rs.highWaterMark); - } -}; - -// Doesn't matter what the args are here. -// _transform does all the work. -// That we got here means that the readable side wants more data. -Transform.prototype._read = function(n) { - var ts = this._transformState; - - if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - // mark that we need a transform, so that any data that comes in - // will get processed, now that we've asked for it. - ts.needTransform = true; - } -}; - - -function done(stream, er) { - if (er) - return stream.emit('error', er); - - // if there's nothing in the write buffer, then that means - // that nothing more will ever be provided - var ws = stream._writableState; - var ts = stream._transformState; - - if (ws.length) - throw new Error('calling transform done when ws.length != 0'); - - if (ts.transforming) - throw new Error('calling transform done when still transforming'); - - return stream.push(null); -} diff --git a/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/readable-stream/lib/_stream_writable.js deleted file mode 100644 index db8539c..0000000 --- a/node_modules/readable-stream/lib/_stream_writable.js +++ /dev/null @@ -1,477 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - -// A bit simpler than readable streams. -// Implement an async ._write(chunk, cb), and it'll handle all -// the drain event emission and buffering. - -module.exports = Writable; - -/**/ -var Buffer = require('buffer').Buffer; -/**/ - -Writable.WritableState = WritableState; - - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -var Stream = require('stream'); - -util.inherits(Writable, Stream); - -function WriteReq(chunk, encoding, cb) { - this.chunk = chunk; - this.encoding = encoding; - this.callback = cb; -} - -function WritableState(options, stream) { - var Duplex = require('./_stream_duplex'); - - options = options || {}; - - // the point at which write() starts returning false - // Note: 0 is a valid value, means that we always return false if - // the entire buffer is not flushed immediately on write() - var hwm = options.highWaterMark; - var defaultHwm = options.objectMode ? 16 : 16 * 1024; - this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm; - - // object stream flag to indicate whether or not this stream - // contains buffers or objects. - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) - this.objectMode = this.objectMode || !!options.writableObjectMode; - - // cast to ints. - this.highWaterMark = ~~this.highWaterMark; - - this.needDrain = false; - // at the start of calling end() - this.ending = false; - // when end() has been called, and returned - this.ended = false; - // when 'finish' is emitted - this.finished = false; - - // should we decode strings into buffers before passing to _write? - // this is here so that some node-core streams can optimize string - // handling at a lower level. - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // not an actual buffer we keep track of, but a measurement - // of how much we're waiting to get pushed to some underlying - // socket or file. - this.length = 0; - - // a flag to see when we're in the middle of a write. - this.writing = false; - - // when true all writes will be buffered until .uncork() call - this.corked = 0; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // a flag to know if we're processing previously buffered items, which - // may call the _write() callback in the same tick, so that we don't - // end up in an overlapped onwrite situation. - this.bufferProcessing = false; - - // the callback that's passed to _write(chunk,cb) - this.onwrite = function(er) { - onwrite(stream, er); - }; - - // the callback that the user supplies to write(chunk,encoding,cb) - this.writecb = null; - - // the amount that is being written when _write is called. - this.writelen = 0; - - this.buffer = []; - - // number of pending user-supplied write callbacks - // this must be 0 before 'finish' can be emitted - this.pendingcb = 0; - - // emit prefinish if the only thing we're waiting for is _write cbs - // This is relevant for synchronous Transform streams - this.prefinished = false; - - // True if the error was already emitted and should not be thrown again - this.errorEmitted = false; -} - -function Writable(options) { - var Duplex = require('./_stream_duplex'); - - // Writable ctor is applied to Duplexes, though they're not - // instanceof Writable, they're instanceof Readable. - if (!(this instanceof Writable) && !(this instanceof Duplex)) - return new Writable(options); - - this._writableState = new WritableState(options, this); - - // legacy. - this.writable = true; - - Stream.call(this); -} - -// Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe = function() { - this.emit('error', new Error('Cannot pipe. Not readable.')); -}; - - -function writeAfterEnd(stream, state, cb) { - var er = new Error('write after end'); - // TODO: defer error events consistently everywhere, not just the cb - stream.emit('error', er); - process.nextTick(function() { - cb(er); - }); -} - -// If we get something that is not a buffer, string, null, or undefined, -// and we're not in objectMode, then that's an error. -// Otherwise stream chunks are all considered to be of length=1, and the -// watermarks determine how many objects to keep in the buffer, rather than -// how many bytes or characters. -function validChunk(stream, state, chunk, cb) { - var valid = true; - if (!util.isBuffer(chunk) && - !util.isString(chunk) && - !util.isNullOrUndefined(chunk) && - !state.objectMode) { - var er = new TypeError('Invalid non-string/buffer chunk'); - stream.emit('error', er); - process.nextTick(function() { - cb(er); - }); - valid = false; - } - return valid; -} - -Writable.prototype.write = function(chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - - if (util.isFunction(encoding)) { - cb = encoding; - encoding = null; - } - - if (util.isBuffer(chunk)) - encoding = 'buffer'; - else if (!encoding) - encoding = state.defaultEncoding; - - if (!util.isFunction(cb)) - cb = function() {}; - - if (state.ended) - writeAfterEnd(this, state, cb); - else if (validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, chunk, encoding, cb); - } - - return ret; -}; - -Writable.prototype.cork = function() { - var state = this._writableState; - - state.corked++; -}; - -Writable.prototype.uncork = function() { - var state = this._writableState; - - if (state.corked) { - state.corked--; - - if (!state.writing && - !state.corked && - !state.finished && - !state.bufferProcessing && - state.buffer.length) - clearBuffer(this, state); - } -}; - -function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && - state.decodeStrings !== false && - util.isString(chunk)) { - chunk = new Buffer(chunk, encoding); - } - return chunk; -} - -// if we're already writing something, then just put this -// in the queue, and wait our turn. Otherwise, call _write -// If we return false, then we need a drain event, so set that flag. -function writeOrBuffer(stream, state, chunk, encoding, cb) { - chunk = decodeChunk(state, chunk, encoding); - if (util.isBuffer(chunk)) - encoding = 'buffer'; - var len = state.objectMode ? 1 : chunk.length; - - state.length += len; - - var ret = state.length < state.highWaterMark; - // we must ensure that previous needDrain will not be reset to false. - if (!ret) - state.needDrain = true; - - if (state.writing || state.corked) - state.buffer.push(new WriteReq(chunk, encoding, cb)); - else - doWrite(stream, state, false, len, chunk, encoding, cb); - - return ret; -} - -function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (writev) - stream._writev(chunk, state.onwrite); - else - stream._write(chunk, encoding, state.onwrite); - state.sync = false; -} - -function onwriteError(stream, state, sync, er, cb) { - if (sync) - process.nextTick(function() { - state.pendingcb--; - cb(er); - }); - else { - state.pendingcb--; - cb(er); - } - - stream._writableState.errorEmitted = true; - stream.emit('error', er); -} - -function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; -} - -function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - - onwriteStateUpdate(state); - - if (er) - onwriteError(stream, state, sync, er, cb); - else { - // Check if we're actually ready to finish, but don't emit yet - var finished = needFinish(stream, state); - - if (!finished && - !state.corked && - !state.bufferProcessing && - state.buffer.length) { - clearBuffer(stream, state); - } - - if (sync) { - process.nextTick(function() { - afterWrite(stream, state, finished, cb); - }); - } else { - afterWrite(stream, state, finished, cb); - } - } -} - -function afterWrite(stream, state, finished, cb) { - if (!finished) - onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); -} - -// Must force callback to be called on nextTick, so that we don't -// emit 'drain' before the write() consumer gets the 'false' return -// value, and has a chance to attach a 'drain' listener. -function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit('drain'); - } -} - - -// if there's something in the buffer waiting, then process it -function clearBuffer(stream, state) { - state.bufferProcessing = true; - - if (stream._writev && state.buffer.length > 1) { - // Fast case, write everything using _writev() - var cbs = []; - for (var c = 0; c < state.buffer.length; c++) - cbs.push(state.buffer[c].callback); - - // count the one we are adding, as well. - // TODO(isaacs) clean this up - state.pendingcb++; - doWrite(stream, state, true, state.length, state.buffer, '', function(err) { - for (var i = 0; i < cbs.length; i++) { - state.pendingcb--; - cbs[i](err); - } - }); - - // Clear buffer - state.buffer = []; - } else { - // Slow case, write chunks one-by-one - for (var c = 0; c < state.buffer.length; c++) { - var entry = state.buffer[c]; - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - - doWrite(stream, state, false, len, chunk, encoding, cb); - - // if we didn't call the onwrite immediately, then - // it means that we need to wait until it does. - // also, that means that the chunk and cb are currently - // being processed, so move the buffer counter past them. - if (state.writing) { - c++; - break; - } - } - - if (c < state.buffer.length) - state.buffer = state.buffer.slice(c); - else - state.buffer.length = 0; - } - - state.bufferProcessing = false; -} - -Writable.prototype._write = function(chunk, encoding, cb) { - cb(new Error('not implemented')); - -}; - -Writable.prototype._writev = null; - -Writable.prototype.end = function(chunk, encoding, cb) { - var state = this._writableState; - - if (util.isFunction(chunk)) { - cb = chunk; - chunk = null; - encoding = null; - } else if (util.isFunction(encoding)) { - cb = encoding; - encoding = null; - } - - if (!util.isNullOrUndefined(chunk)) - this.write(chunk, encoding); - - // .end() fully uncorks - if (state.corked) { - state.corked = 1; - this.uncork(); - } - - // ignore unnecessary end() calls. - if (!state.ending && !state.finished) - endWritable(this, state, cb); -}; - - -function needFinish(stream, state) { - return (state.ending && - state.length === 0 && - !state.finished && - !state.writing); -} - -function prefinish(stream, state) { - if (!state.prefinished) { - state.prefinished = true; - stream.emit('prefinish'); - } -} - -function finishMaybe(stream, state) { - var need = needFinish(stream, state); - if (need) { - if (state.pendingcb === 0) { - prefinish(stream, state); - state.finished = true; - stream.emit('finish'); - } else - prefinish(stream, state); - } - return need; -} - -function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) - process.nextTick(cb); - else - stream.once('finish', cb); - } - state.ended = true; -} diff --git a/node_modules/readable-stream/package.json b/node_modules/readable-stream/package.json deleted file mode 100644 index 8570a82..0000000 --- a/node_modules/readable-stream/package.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "readable-stream@~1.1.9", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "~1.1.9", - "spec": ">=1.1.9 <1.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/duplexer2" - ] - ], - "_from": "readable-stream@>=1.1.9 <1.2.0", - "_id": "readable-stream@1.1.14", - "_inCache": true, - "_location": "/readable-stream", - "_nodeVersion": "5.10.1", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/readable-stream-1.1.14.tgz_1460563293219_0.5682175166439265" - }, - "_npmUser": { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - }, - "_npmVersion": "3.8.3", - "_phantomChildren": {}, - "_requested": { - "raw": "readable-stream@~1.1.9", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "~1.1.9", - "spec": ">=1.1.9 <1.2.0", - "type": "range" - }, - "_requiredBy": [ - "/duplexer2", - "/gulp-concat-css/through2" - ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "_shasum": "7cf4c54ef648e3813084c636dd2079e166c081d9", - "_shrinkwrap": null, - "_spec": "readable-stream@~1.1.9", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/duplexer2", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "browser": { - "util": false - }, - "bugs": { - "url": "https://github.com/isaacs/readable-stream/issues" - }, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - }, - "description": "Streams3, a user-land copy of the stream library from Node.js v0.11.x", - "devDependencies": { - "tap": "~0.2.6" - }, - "directories": {}, - "dist": { - "shasum": "7cf4c54ef648e3813084c636dd2079e166c081d9", - "tarball": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz" - }, - "gitHead": "52550840cb1d6e8a98ef9a909a4bea360bc6f7da", - "homepage": "https://github.com/isaacs/readable-stream#readme", - "keywords": [ - "readable", - "stream", - "pipe" - ], - "license": "MIT", - "main": "readable.js", - "maintainers": [ - { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - { - "name": "tootallnate", - "email": "nathan@tootallnate.net" - }, - { - "name": "rvagg", - "email": "rod@vagg.org" - }, - { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - } - ], - "name": "readable-stream", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/readable-stream.git" - }, - "scripts": { - "test": "tap test/simple/*.js" - }, - "version": "1.1.14" -} diff --git a/node_modules/readable-stream/passthrough.js b/node_modules/readable-stream/passthrough.js deleted file mode 100644 index 27e8d8a..0000000 --- a/node_modules/readable-stream/passthrough.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_passthrough.js") diff --git a/node_modules/readable-stream/readable.js b/node_modules/readable-stream/readable.js deleted file mode 100644 index 2a8b5c6..0000000 --- a/node_modules/readable-stream/readable.js +++ /dev/null @@ -1,10 +0,0 @@ -exports = module.exports = require('./lib/_stream_readable.js'); -exports.Stream = require('stream'); -exports.Readable = exports; -exports.Writable = require('./lib/_stream_writable.js'); -exports.Duplex = require('./lib/_stream_duplex.js'); -exports.Transform = require('./lib/_stream_transform.js'); -exports.PassThrough = require('./lib/_stream_passthrough.js'); -if (!process.browser && process.env.READABLE_STREAM === 'disable') { - module.exports = require('stream'); -} diff --git a/node_modules/readable-stream/transform.js b/node_modules/readable-stream/transform.js deleted file mode 100644 index 5d482f0..0000000 --- a/node_modules/readable-stream/transform.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_transform.js") diff --git a/node_modules/readable-stream/writable.js b/node_modules/readable-stream/writable.js deleted file mode 100644 index e1e9efd..0000000 --- a/node_modules/readable-stream/writable.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_writable.js") diff --git a/node_modules/readdirp/.npmignore b/node_modules/readdirp/.npmignore deleted file mode 100644 index 7dccd97..0000000 --- a/node_modules/readdirp/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -lib-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz - -pids -logs -results - -node_modules -npm-debug.log \ No newline at end of file diff --git a/node_modules/readdirp/.travis.yml b/node_modules/readdirp/.travis.yml deleted file mode 100644 index 0cdb6c3..0000000 --- a/node_modules/readdirp/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: - - "0.10" - - "0.12" - - "4.4" - - "6.2" diff --git a/node_modules/readdirp/LICENSE b/node_modules/readdirp/LICENSE deleted file mode 100644 index 8a63b80..0000000 --- a/node_modules/readdirp/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -This software is released under the MIT license: - -Copyright (c) 2012-2015 Thorsten Lorenz - -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/readdirp/README.md b/node_modules/readdirp/README.md deleted file mode 100644 index b0c1626..0000000 --- a/node_modules/readdirp/README.md +++ /dev/null @@ -1,233 +0,0 @@ -# readdirp [![Build Status](https://secure.travis-ci.org/thlorenz/readdirp.png)](http://travis-ci.org/thlorenz/readdirp) - -[![NPM](https://nodei.co/npm/readdirp.png?downloads=true&stars=true)](https://nodei.co/npm/readdirp/) - -Recursive version of [fs.readdir](http://nodejs.org/docs/latest/api/fs.html#fs_fs_readdir_path_callback). Exposes a **stream api**. - -```javascript -var readdirp = require('readdirp') - , path = require('path') - , es = require('event-stream'); - -// print out all JavaScript files along with their size - -var stream = readdirp({ root: path.join(__dirname), fileFilter: '*.js' }); -stream - .on('warn', function (err) { - console.error('non-fatal error', err); - // optionally call stream.destroy() here in order to abort and cause 'close' to be emitted - }) - .on('error', function (err) { console.error('fatal error', err); }) - .pipe(es.mapSync(function (entry) { - return { path: entry.path, size: entry.stat.size }; - })) - .pipe(es.stringify()) - .pipe(process.stdout); -``` - -Meant to be one of the recursive versions of [fs](http://nodejs.org/docs/latest/api/fs.html) functions, e.g., like [mkdirp](https://github.com/substack/node-mkdirp). - -**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)* - -- [Installation](#installation) -- [API](#api) - - [entry stream](#entry-stream) - - [options](#options) - - [entry info](#entry-info) - - [Filters](#filters) - - [Callback API](#callback-api) - - [allProcessed ](#allprocessed) - - [fileProcessed](#fileprocessed) -- [More Examples](#more-examples) - - [stream api](#stream-api) - - [stream api pipe](#stream-api-pipe) - - [grep](#grep) - - [using callback api](#using-callback-api) - - [tests](#tests) - - -# Installation - - npm install readdirp - -# API - -***var entryStream = readdirp (options)*** - -Reads given root recursively and returns a `stream` of [entry info](#entry-info)s. - -## entry stream - -Behaves as follows: - -- `emit('data')` passes an [entry info](#entry-info) whenever one is found -- `emit('warn')` passes a non-fatal `Error` that prevents a file/directory from being processed (i.e., if it is - inaccessible to the user) -- `emit('error')` passes a fatal `Error` which also ends the stream (i.e., when illegal options where passed) -- `emit('end')` called when all entries were found and no more will be emitted (i.e., we are done) -- `emit('close')` called when the stream is destroyed via `stream.destroy()` (which could be useful if you want to - manually abort even on a non fatal error) - at that point the stream is no longer `readable` and no more entries, - warning or errors are emitted -- to learn more about streams, consult the very detailed - [nodejs streams documentation](http://nodejs.org/api/stream.html) or the - [stream-handbook](https://github.com/substack/stream-handbook) - - -## options - -- **root**: path in which to start reading and recursing into subdirectories - -- **fileFilter**: filter to include/exclude files found (see [Filters](#filters) for more) - -- **directoryFilter**: filter to include/exclude directories found and to recurse into (see [Filters](#filters) for more) - -- **depth**: depth at which to stop recursing even if more subdirectories are found - -- **entryType**: determines if data events on the stream should be emitted for `'files'`, `'directories'`, `'both'`, or `'all'`. Setting to `'all'` will also include entries for other types of file descriptors like character devices, unix sockets and named pipes. Defaults to `'files'`. - -- **lstat**: if `true`, readdirp uses `fs.lstat` instead of `fs.stat` in order to stat files and includes symlink entries in the stream along with files. - -## entry info - -Has the following properties: - -- **parentDir** : directory in which entry was found (relative to given root) -- **fullParentDir** : full path to parent directory -- **name** : name of the file/directory -- **path** : path to the file/directory (relative to given root) -- **fullPath** : full path to the file/directory found -- **stat** : built in [stat object](http://nodejs.org/docs/v0.4.9/api/fs.html#fs.Stats) -- **Example**: (assuming root was `/User/dev/readdirp`) - - parentDir : 'test/bed/root_dir1', - fullParentDir : '/User/dev/readdirp/test/bed/root_dir1', - name : 'root_dir1_subdir1', - path : 'test/bed/root_dir1/root_dir1_subdir1', - fullPath : '/User/dev/readdirp/test/bed/root_dir1/root_dir1_subdir1', - stat : [ ... ] - -## Filters - -There are three different ways to specify filters for files and directories respectively. - -- **function**: a function that takes an entry info as a parameter and returns true to include or false to exclude the entry - -- **glob string**: a string (e.g., `*.js`) which is matched using [minimatch](https://github.com/isaacs/minimatch), so go there for more - information. - - Globstars (`**`) are not supported since specifiying a recursive pattern for an already recursive function doesn't make sense. - - Negated globs (as explained in the minimatch documentation) are allowed, e.g., `!*.txt` matches everything but text files. - -- **array of glob strings**: either need to be all inclusive or all exclusive (negated) patterns otherwise an error is thrown. - - `[ '*.json', '*.js' ]` includes all JavaScript and Json files. - - - `[ '!.git', '!node_modules' ]` includes all directories except the '.git' and 'node_modules'. - -Directories that do not pass a filter will not be recursed into. - -## Callback API - -Although the stream api is recommended, readdirp also exposes a callback based api. - -***readdirp (options, callback1 [, callback2])*** - -If callback2 is given, callback1 functions as the **fileProcessed** callback, and callback2 as the **allProcessed** callback. - -If only callback1 is given, it functions as the **allProcessed** callback. - -### allProcessed - -- function with err and res parameters, e.g., `function (err, res) { ... }` -- **err**: array of errors that occurred during the operation, **res may still be present, even if errors occurred** -- **res**: collection of file/directory [entry infos](#entry-info) - -### fileProcessed - -- function with [entry info](#entry-info) parameter e.g., `function (entryInfo) { ... }` - - -# More Examples - -`on('error', ..)`, `on('warn', ..)` and `on('end', ..)` handling omitted for brevity - -```javascript -var readdirp = require('readdirp'); - -// Glob file filter -readdirp({ root: './test/bed', fileFilter: '*.js' }) - .on('data', function (entry) { - // do something with each JavaScript file entry - }); - -// Combined glob file filters -readdirp({ root: './test/bed', fileFilter: [ '*.js', '*.json' ] }) - .on('data', function (entry) { - // do something with each JavaScript and Json file entry - }); - -// Combined negated directory filters -readdirp({ root: './test/bed', directoryFilter: [ '!.git', '!*modules' ] }) - .on('data', function (entry) { - // do something with each file entry found outside '.git' or any modules directory - }); - -// Function directory filter -readdirp({ root: './test/bed', directoryFilter: function (di) { return di.name.length === 9; } }) - .on('data', function (entry) { - // do something with each file entry found inside directories whose name has length 9 - }); - -// Limiting depth -readdirp({ root: './test/bed', depth: 1 }) - .on('data', function (entry) { - // do something with each file entry found up to 1 subdirectory deep - }); - -// callback api -readdirp( - { root: '.' } - , function(fileInfo) { - // do something with file entry here - } - , function (err, res) { - // all done, move on or do final step for all file entries here - } -); -``` - -Try more examples by following [instructions](https://github.com/thlorenz/readdirp/blob/master/examples/Readme.md) -on how to get going. - -## stream api - -[stream-api.js](https://github.com/thlorenz/readdirp/blob/master/examples/stream-api.js) - -Demonstrates error and data handling by listening to events emitted from the readdirp stream. - -## stream api pipe - -[stream-api-pipe.js](https://github.com/thlorenz/readdirp/blob/master/examples/stream-api-pipe.js) - -Demonstrates error handling by listening to events emitted from the readdirp stream and how to pipe the data stream into -another destination stream. - -## grep - -[grep.js](https://github.com/thlorenz/readdirp/blob/master/examples/grep.js) - -Very naive implementation of grep, for demonstration purposes only. - -## using callback api - -[callback-api.js](https://github.com/thlorenz/readdirp/blob/master/examples/callback-api.js) - -Shows how to pass callbacks in order to handle errors and/or data. - -## tests - -The [readdirp tests](https://github.com/thlorenz/readdirp/blob/master/test/readdirp.js) also will give you a good idea on -how things work. - diff --git a/node_modules/readdirp/examples/Readme.md b/node_modules/readdirp/examples/Readme.md deleted file mode 100644 index 55fc461..0000000 --- a/node_modules/readdirp/examples/Readme.md +++ /dev/null @@ -1,37 +0,0 @@ -# readdirp examples - -## How to run the examples - -Assuming you installed readdirp (`npm install readdirp`), you can do the following: - -1. `npm explore readdirp` -2. `cd examples` -3. `npm install` - -At that point you can run the examples with node, i.e., `node grep`. - -## stream api - -[stream-api.js](https://github.com/thlorenz/readdirp/blob/master/examples/stream-api.js) - -Demonstrates error and data handling by listening to events emitted from the readdirp stream. - -## stream api pipe - -[stream-api-pipe.js](https://github.com/thlorenz/readdirp/blob/master/examples/stream-api-pipe.js) - -Demonstrates error handling by listening to events emitted from the readdirp stream and how to pipe the data stream into -another destination stream. - -## grep - -[grep.js](https://github.com/thlorenz/readdirp/blob/master/examples/grep.js) - -Very naive implementation of grep, for demonstration purposes only. - -## using callback api - -[callback-api.js](https://github.com/thlorenz/readdirp/blob/master/examples/callback-api.js) - -Shows how to pass callbacks in order to handle errors and/or data. - diff --git a/node_modules/readdirp/examples/callback-api.js b/node_modules/readdirp/examples/callback-api.js deleted file mode 100644 index 39bd2d7..0000000 --- a/node_modules/readdirp/examples/callback-api.js +++ /dev/null @@ -1,10 +0,0 @@ -var readdirp = require('..'); - -readdirp({ root: '.', fileFilter: '*.js' }, function (errors, res) { - if (errors) { - errors.forEach(function (err) { - console.error('Error: ', err); - }); - } - console.log('all javascript files', res); -}); diff --git a/node_modules/readdirp/examples/grep.js b/node_modules/readdirp/examples/grep.js deleted file mode 100644 index 01d5f29..0000000 --- a/node_modules/readdirp/examples/grep.js +++ /dev/null @@ -1,71 +0,0 @@ -'use strict'; -var readdirp = require('..') - , util = require('util') - , fs = require('fs') - , path = require('path') - , es = require('event-stream') - ; - -function findLinesMatching (searchTerm) { - - return es.through(function (entry) { - var lineno = 0 - , matchingLines = [] - , fileStream = this; - - function filter () { - return es.mapSync(function (line) { - lineno++; - return ~line.indexOf(searchTerm) ? lineno + ': ' + line : undefined; - }); - } - - function aggregate () { - return es.through( - function write (data) { - matchingLines.push(data); - } - , function end () { - - // drop files that had no matches - if (matchingLines.length) { - var result = { file: entry, lines: matchingLines }; - - // pass result on to file stream - fileStream.emit('data', result); - } - this.emit('end'); - } - ); - } - - fs.createReadStream(entry.fullPath, { encoding: 'utf-8' }) - - // handle file contents line by line - .pipe(es.split('\n')) - - // keep only the lines that matched the term - .pipe(filter()) - - // aggregate all matching lines and delegate control back to the file stream - .pipe(aggregate()) - ; - }); -} - -console.log('grepping for "arguments"'); - -// create a stream of all javascript files found in this and all sub directories -readdirp({ root: path.join(__dirname), fileFilter: '*.js' }) - - // find all lines matching the term for each file (if none found, that file is ignored) - .pipe(findLinesMatching('arguments')) - - // format the results and output - .pipe( - es.mapSync(function (res) { - return '\n\n' + res.file.path + '\n\t' + res.lines.join('\n\t'); - }) - ) - .pipe(process.stdout) - ; diff --git a/node_modules/readdirp/examples/package.json b/node_modules/readdirp/examples/package.json deleted file mode 100644 index 2d9b341..0000000 --- a/node_modules/readdirp/examples/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "readdirp-examples", - "version": "0.0.0", - "description": "Examples for readdirp.", - "dependencies": { - "tap-stream": "~0.1.0", - "event-stream": "~3.0.7" - } -} diff --git a/node_modules/readdirp/examples/stream-api-pipe.js b/node_modules/readdirp/examples/stream-api-pipe.js deleted file mode 100644 index 4003be8..0000000 --- a/node_modules/readdirp/examples/stream-api-pipe.js +++ /dev/null @@ -1,19 +0,0 @@ -var readdirp = require('..') - , path = require('path') - , through = require('through2') - -// print out all JavaScript files along with their size -readdirp({ root: path.join(__dirname), fileFilter: '*.js' }) - .on('warn', function (err) { console.error('non-fatal error', err); }) - .on('error', function (err) { console.error('fatal error', err); }) - .pipe(through.obj(function (entry, _, cb) { - this.push({ path: entry.path, size: entry.stat.size }); - cb(); - })) - .pipe(through.obj( - function (res, _, cb) { - this.push(JSON.stringify(res) + '\n'); - cb(); - }) - ) - .pipe(process.stdout); diff --git a/node_modules/readdirp/examples/stream-api.js b/node_modules/readdirp/examples/stream-api.js deleted file mode 100644 index 0f7b327..0000000 --- a/node_modules/readdirp/examples/stream-api.js +++ /dev/null @@ -1,15 +0,0 @@ -var readdirp = require('..') - , path = require('path'); - -readdirp({ root: path.join(__dirname), fileFilter: '*.js' }) - .on('warn', function (err) { - console.error('something went wrong when processing an entry', err); - }) - .on('error', function (err) { - console.error('something went fatally wrong and the stream was aborted', err); - }) - .on('data', function (entry) { - console.log('%s is ready for processing', entry.path); - // process entry here - }); - diff --git a/node_modules/readdirp/node_modules/graceful-fs/LICENSE b/node_modules/readdirp/node_modules/graceful-fs/LICENSE deleted file mode 100644 index 9d2c803..0000000 --- a/node_modules/readdirp/node_modules/graceful-fs/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, 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/readdirp/node_modules/graceful-fs/README.md b/node_modules/readdirp/node_modules/graceful-fs/README.md deleted file mode 100644 index 5273a50..0000000 --- a/node_modules/readdirp/node_modules/graceful-fs/README.md +++ /dev/null @@ -1,133 +0,0 @@ -# graceful-fs - -graceful-fs functions as a drop-in replacement for the fs module, -making various improvements. - -The improvements are meant to normalize behavior across different -platforms and environments, and to make filesystem access more -resilient to errors. - -## Improvements over [fs module](https://nodejs.org/api/fs.html) - -* Queues up `open` and `readdir` calls, and retries them once - something closes if there is an EMFILE error from too many file - descriptors. -* fixes `lchmod` for Node versions prior to 0.6.2. -* implements `fs.lutimes` if possible. Otherwise it becomes a noop. -* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or - `lchown` if the user isn't root. -* makes `lchmod` and `lchown` become noops, if not available. -* retries reading a file if `read` results in EAGAIN error. - -On Windows, it retries renaming a file for up to one second if `EACCESS` -or `EPERM` error occurs, likely because antivirus software has locked -the directory. - -## USAGE - -```javascript -// use just like fs -var fs = require('graceful-fs') - -// now go and do stuff with it... -fs.readFileSync('some-file-or-whatever') -``` - -## Global Patching - -If you want to patch the global fs module (or any other fs-like -module) you can do this: - -```javascript -// Make sure to read the caveat below. -var realFs = require('fs') -var gracefulFs = require('graceful-fs') -gracefulFs.gracefulify(realFs) -``` - -This should only ever be done at the top-level application layer, in -order to delay on EMFILE errors from any fs-using dependencies. You -should **not** do this in a library, because it can cause unexpected -delays in other parts of the program. - -## Changes - -This module is fairly stable at this point, and used by a lot of -things. That being said, because it implements a subtle behavior -change in a core part of the node API, even modest changes can be -extremely breaking, and the versioning is thus biased towards -bumping the major when in doubt. - -The main change between major versions has been switching between -providing a fully-patched `fs` module vs monkey-patching the node core -builtin, and the approach by which a non-monkey-patched `fs` was -created. - -The goal is to trade `EMFILE` errors for slower fs operations. So, if -you try to open a zillion files, rather than crashing, `open` -operations will be queued up and wait for something else to `close`. - -There are advantages to each approach. Monkey-patching the fs means -that no `EMFILE` errors can possibly occur anywhere in your -application, because everything is using the same core `fs` module, -which is patched. However, it can also obviously cause undesirable -side-effects, especially if the module is loaded multiple times. - -Implementing a separate-but-identical patched `fs` module is more -surgical (and doesn't run the risk of patching multiple times), but -also imposes the challenge of keeping in sync with the core module. - -The current approach loads the `fs` module, and then creates a -lookalike object that has all the same methods, except a few that are -patched. It is safe to use in all versions of Node from 0.8 through -7.0. - -### v4 - -* Do not monkey-patch the fs module. This module may now be used as a - drop-in dep, and users can opt into monkey-patching the fs builtin - if their app requires it. - -### v3 - -* Monkey-patch fs, because the eval approach no longer works on recent - node. -* fixed possible type-error throw if rename fails on windows -* verify that we *never* get EMFILE errors -* Ignore ENOSYS from chmod/chown -* clarify that graceful-fs must be used as a drop-in - -### v2.1.0 - -* Use eval rather than monkey-patching fs. -* readdir: Always sort the results -* win32: requeue a file if error has an OK status - -### v2.0 - -* A return to monkey patching -* wrap process.cwd - -### v1.1 - -* wrap readFile -* Wrap fs.writeFile. -* readdir protection -* Don't clobber the fs builtin -* Handle fs.read EAGAIN errors by trying again -* Expose the curOpen counter -* No-op lchown/lchmod if not implemented -* fs.rename patch only for win32 -* Patch fs.rename to handle AV software on Windows -* Close #4 Chown should not fail on einval or eperm if non-root -* Fix isaacs/fstream#1 Only wrap fs one time -* Fix #3 Start at 1024 max files, then back off on EMFILE -* lutimes that doens't blow up on Linux -* A full on-rewrite using a queue instead of just swallowing the EMFILE error -* Wrap Read/Write streams as well - -### 1.0 - -* Update engines for node 0.6 -* Be lstat-graceful on Windows -* first diff --git a/node_modules/readdirp/node_modules/graceful-fs/fs.js b/node_modules/readdirp/node_modules/graceful-fs/fs.js deleted file mode 100644 index 8ad4a38..0000000 --- a/node_modules/readdirp/node_modules/graceful-fs/fs.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict' - -var fs = require('fs') - -module.exports = clone(fs) - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: obj.__proto__ } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} diff --git a/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js b/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js deleted file mode 100644 index 33b30d2..0000000 --- a/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js +++ /dev/null @@ -1,262 +0,0 @@ -var fs = require('fs') -var polyfills = require('./polyfills.js') -var legacy = require('./legacy-streams.js') -var queue = [] - -var util = require('util') - -function noop () {} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(queue) - require('assert').equal(queue.length, 0) - }) -} - -module.exports = patch(require('./fs.js')) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) { - module.exports = patch(fs) -} - -// Always patch fs.close/closeSync, because we want to -// retry() whenever a close happens *anywhere* in the program. -// This is essential when multiple graceful-fs instances are -// in play at the same time. -module.exports.close = -fs.close = (function (fs$close) { return function (fd, cb) { - return fs$close.call(fs, fd, function (err) { - if (!err) - retry() - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) -}})(fs.close) - -module.exports.closeSync = -fs.closeSync = (function (fs$closeSync) { return function (fd) { - // Note that graceful-fs also retries when fs.closeSync() fails. - // Looks like a bug to me, although it's probably a harmless one. - var rval = fs$closeSync.apply(fs, arguments) - retry() - return rval -}})(fs.closeSync) - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - fs.FileReadStream = ReadStream; // Legacy name. - fs.FileWriteStream = WriteStream; // Legacy name. - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - function readdir (path, options, cb) { - var args = [path] - if (typeof options !== 'function') { - args.push(options) - } else { - cb = options - } - args.push(go$readdir$cb) - - return go$readdir(args) - - function go$readdir$cb (err, files) { - if (files && files.sort) - files.sort() - - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readdir, [args]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - } - } - - function go$readdir (args) { - return fs$readdir.apply(fs, args) - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - - var fs$WriteStream = fs.WriteStream - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - - fs.ReadStream = ReadStream - fs.WriteStream = WriteStream - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb]]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - retry() - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - queue.push(elem) -} - -function retry () { - var elem = queue.shift() - if (elem) { - debug('RETRY', elem[0].name, elem[1]) - elem[0].apply(null, elem[1]) - } -} diff --git a/node_modules/readdirp/node_modules/graceful-fs/legacy-streams.js b/node_modules/readdirp/node_modules/graceful-fs/legacy-streams.js deleted file mode 100644 index d617b50..0000000 --- a/node_modules/readdirp/node_modules/graceful-fs/legacy-streams.js +++ /dev/null @@ -1,118 +0,0 @@ -var Stream = require('stream').Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} diff --git a/node_modules/readdirp/node_modules/graceful-fs/package.json b/node_modules/readdirp/node_modules/graceful-fs/package.json deleted file mode 100644 index 1480e11..0000000 --- a/node_modules/readdirp/node_modules/graceful-fs/package.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "graceful-fs@^4.1.2", - "scope": null, - "escapedName": "graceful-fs", - "name": "graceful-fs", - "rawSpec": "^4.1.2", - "spec": ">=4.1.2 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/readdirp" - ] - ], - "_from": "graceful-fs@>=4.1.2 <5.0.0", - "_id": "graceful-fs@4.1.11", - "_inCache": true, - "_location": "/readdirp/graceful-fs", - "_nodeVersion": "6.5.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/graceful-fs-4.1.11.tgz_1479843029430_0.2122855328489095" - }, - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.10.9", - "_phantomChildren": {}, - "_requested": { - "raw": "graceful-fs@^4.1.2", - "scope": null, - "escapedName": "graceful-fs", - "name": "graceful-fs", - "rawSpec": "^4.1.2", - "spec": ">=4.1.2 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/readdirp" - ], - "_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "_shasum": "0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658", - "_shrinkwrap": null, - "_spec": "graceful-fs@^4.1.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/readdirp", - "bugs": { - "url": "https://github.com/isaacs/node-graceful-fs/issues" - }, - "dependencies": {}, - "description": "A drop-in replacement for fs, making various improvements.", - "devDependencies": { - "mkdirp": "^0.5.0", - "rimraf": "^2.2.8", - "tap": "^5.4.2" - }, - "directories": { - "test": "test" - }, - "dist": { - "shasum": "0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658", - "tarball": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz" - }, - "engines": { - "node": ">=0.4.0" - }, - "files": [ - "fs.js", - "graceful-fs.js", - "legacy-streams.js", - "polyfills.js" - ], - "gitHead": "65cf80d1fd3413b823c16c626c1e7c326452bee5", - "homepage": "https://github.com/isaacs/node-graceful-fs#readme", - "keywords": [ - "fs", - "module", - "reading", - "retry", - "retries", - "queue", - "error", - "errors", - "handling", - "EMFILE", - "EAGAIN", - "EINVAL", - "EPERM", - "EACCESS" - ], - "license": "ISC", - "main": "graceful-fs.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "graceful-fs", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/node-graceful-fs.git" - }, - "scripts": { - "test": "node test.js | tap -" - }, - "version": "4.1.11" -} diff --git a/node_modules/readdirp/node_modules/graceful-fs/polyfills.js b/node_modules/readdirp/node_modules/graceful-fs/polyfills.js deleted file mode 100644 index 4c6aca7..0000000 --- a/node_modules/readdirp/node_modules/graceful-fs/polyfills.js +++ /dev/null @@ -1,330 +0,0 @@ -var fs = require('./fs.js') -var constants = require('constants') - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -var chdir = process.chdir -process.chdir = function(d) { - cwd = null - chdir.call(process, d) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (!fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (!fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = (function (fs$rename) { return function (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - }})(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - }})(fs.read) - - fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) -} - -function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } -} - -function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK")) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } -} - -function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } -} - -function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } -} - - -function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, cb) { - return orig.call(fs, target, function (er, stats) { - if (!stats) return cb.apply(this, arguments) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - if (cb) cb.apply(this, arguments) - }) - } -} - -function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target) { - var stats = orig.call(fs, target) - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - return stats; - } -} - -// ENOSYS means that the fs doesn't support the op. Just ignore -// that, because it doesn't matter. -// -// if there's no getuid, or if getuid() is something other -// than 0, and the error is EINVAL or EPERM, then just ignore -// it. -// -// This specific case is a silent failure in cp, install, tar, -// and most other unix tools that manage permissions. -// -// When running as root, or if other types of errors are -// encountered, then it's strict. -function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false -} diff --git a/node_modules/readdirp/node_modules/isarray/.npmignore b/node_modules/readdirp/node_modules/isarray/.npmignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/readdirp/node_modules/isarray/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/readdirp/node_modules/isarray/.travis.yml b/node_modules/readdirp/node_modules/isarray/.travis.yml deleted file mode 100644 index cc4dba2..0000000 --- a/node_modules/readdirp/node_modules/isarray/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" diff --git a/node_modules/readdirp/node_modules/isarray/Makefile b/node_modules/readdirp/node_modules/isarray/Makefile deleted file mode 100644 index 787d56e..0000000 --- a/node_modules/readdirp/node_modules/isarray/Makefile +++ /dev/null @@ -1,6 +0,0 @@ - -test: - @node_modules/.bin/tape test.js - -.PHONY: test - diff --git a/node_modules/readdirp/node_modules/isarray/README.md b/node_modules/readdirp/node_modules/isarray/README.md deleted file mode 100644 index 16d2c59..0000000 --- a/node_modules/readdirp/node_modules/isarray/README.md +++ /dev/null @@ -1,60 +0,0 @@ - -# isarray - -`Array#isArray` for older browsers. - -[![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) -[![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) - -[![browser support](https://ci.testling.com/juliangruber/isarray.png) -](https://ci.testling.com/juliangruber/isarray) - -## Usage - -```js -var isArray = require('isarray'); - -console.log(isArray([])); // => true -console.log(isArray({})); // => false -``` - -## Installation - -With [npm](http://npmjs.org) do - -```bash -$ npm install isarray -``` - -Then bundle for the browser with -[browserify](https://github.com/substack/browserify). - -With [component](http://component.io) do - -```bash -$ component install juliangruber/isarray -``` - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.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/readdirp/node_modules/isarray/component.json b/node_modules/readdirp/node_modules/isarray/component.json deleted file mode 100644 index 9e31b68..0000000 --- a/node_modules/readdirp/node_modules/isarray/component.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name" : "isarray", - "description" : "Array#isArray for older browsers", - "version" : "0.0.1", - "repository" : "juliangruber/isarray", - "homepage": "https://github.com/juliangruber/isarray", - "main" : "index.js", - "scripts" : [ - "index.js" - ], - "dependencies" : {}, - "keywords": ["browser","isarray","array"], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT" -} diff --git a/node_modules/readdirp/node_modules/isarray/index.js b/node_modules/readdirp/node_modules/isarray/index.js deleted file mode 100644 index a57f634..0000000 --- a/node_modules/readdirp/node_modules/isarray/index.js +++ /dev/null @@ -1,5 +0,0 @@ -var toString = {}.toString; - -module.exports = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; -}; diff --git a/node_modules/readdirp/node_modules/isarray/package.json b/node_modules/readdirp/node_modules/isarray/package.json deleted file mode 100644 index fb70aee..0000000 --- a/node_modules/readdirp/node_modules/isarray/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "isarray@~1.0.0", - "scope": null, - "escapedName": "isarray", - "name": "isarray", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/readdirp/node_modules/readable-stream" - ] - ], - "_from": "isarray@>=1.0.0 <1.1.0", - "_id": "isarray@1.0.0", - "_inCache": true, - "_location": "/readdirp/isarray", - "_nodeVersion": "5.1.0", - "_npmUser": { - "name": "juliangruber", - "email": "julian@juliangruber.com" - }, - "_npmVersion": "3.3.12", - "_phantomChildren": {}, - "_requested": { - "raw": "isarray@~1.0.0", - "scope": null, - "escapedName": "isarray", - "name": "isarray", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/readdirp/readable-stream" - ], - "_resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "_shasum": "bb935d48582cba168c06834957a54a3e07124f11", - "_shrinkwrap": null, - "_spec": "isarray@~1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/readdirp/node_modules/readable-stream", - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "bugs": { - "url": "https://github.com/juliangruber/isarray/issues" - }, - "dependencies": {}, - "description": "Array#isArray for older browsers", - "devDependencies": { - "tape": "~2.13.4" - }, - "directories": {}, - "dist": { - "shasum": "bb935d48582cba168c06834957a54a3e07124f11", - "tarball": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" - }, - "gitHead": "2a23a281f369e9ae06394c0fb4d2381355a6ba33", - "homepage": "https://github.com/juliangruber/isarray", - "keywords": [ - "browser", - "isarray", - "array" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "juliangruber", - "email": "julian@juliangruber.com" - } - ], - "name": "isarray", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/isarray.git" - }, - "scripts": { - "test": "tape test.js" - }, - "testling": { - "files": "test.js", - "browsers": [ - "ie/8..latest", - "firefox/17..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "version": "1.0.0" -} diff --git a/node_modules/readdirp/node_modules/isarray/test.js b/node_modules/readdirp/node_modules/isarray/test.js deleted file mode 100644 index e0c3444..0000000 --- a/node_modules/readdirp/node_modules/isarray/test.js +++ /dev/null @@ -1,20 +0,0 @@ -var isArray = require('./'); -var test = require('tape'); - -test('is array', function(t){ - t.ok(isArray([])); - t.notOk(isArray({})); - t.notOk(isArray(null)); - t.notOk(isArray(false)); - - var obj = {}; - obj[0] = true; - t.notOk(isArray(obj)); - - var arr = []; - arr.foo = 'bar'; - t.ok(isArray(arr)); - - t.end(); -}); - diff --git a/node_modules/readdirp/node_modules/readable-stream/.npmignore b/node_modules/readdirp/node_modules/readable-stream/.npmignore deleted file mode 100644 index 6d270c6..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/.npmignore +++ /dev/null @@ -1,9 +0,0 @@ -build/ -test/ -examples/ -fs.js -zlib.js -.zuul.yml -.nyc_output -coverage -docs/ diff --git a/node_modules/readdirp/node_modules/readable-stream/.travis.yml b/node_modules/readdirp/node_modules/readable-stream/.travis.yml deleted file mode 100644 index 84504c9..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -sudo: false -language: node_js -before_install: - - npm install -g npm@2 - - npm install -g npm -notifications: - email: false -matrix: - fast_finish: true - include: - - node_js: '0.8' - env: TASK=test - - node_js: '0.10' - env: TASK=test - - node_js: '0.11' - env: TASK=test - - node_js: '0.12' - env: TASK=test - - node_js: 1 - env: TASK=test - - node_js: 2 - env: TASK=test - - node_js: 3 - env: TASK=test - - node_js: 4 - env: TASK=test - - node_js: 5 - env: TASK=test - - node_js: 6 - env: TASK=test - - node_js: 5 - env: TASK=browser BROWSER_NAME=android BROWSER_VERSION="4.0..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=ie BROWSER_VERSION="9..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=opera BROWSER_VERSION="11..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=chrome BROWSER_VERSION="-3..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=firefox BROWSER_VERSION="-3..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=safari BROWSER_VERSION="5..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=microsoftedge BROWSER_VERSION=latest -script: "npm run $TASK" -env: - global: - - secure: rE2Vvo7vnjabYNULNyLFxOyt98BoJexDqsiOnfiD6kLYYsiQGfr/sbZkPMOFm9qfQG7pjqx+zZWZjGSswhTt+626C0t/njXqug7Yps4c3dFblzGfreQHp7wNX5TFsvrxd6dAowVasMp61sJcRnB2w8cUzoe3RAYUDHyiHktwqMc= - - secure: g9YINaKAdMatsJ28G9jCGbSaguXCyxSTy+pBO6Ch0Cf57ZLOTka3HqDj8p3nV28LUIHZ3ut5WO43CeYKwt4AUtLpBS3a0dndHdY6D83uY6b2qh5hXlrcbeQTq2cvw2y95F7hm4D1kwrgZ7ViqaKggRcEupAL69YbJnxeUDKWEdI= diff --git a/node_modules/readdirp/node_modules/readable-stream/CONTRIBUTING.md b/node_modules/readdirp/node_modules/readable-stream/CONTRIBUTING.md deleted file mode 100644 index f478d58..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/CONTRIBUTING.md +++ /dev/null @@ -1,38 +0,0 @@ -# Developer's Certificate of Origin 1.1 - -By making a contribution to this project, I certify that: - -* (a) The contribution was created in whole or in part by me and I - have the right to submit it under the open source license - indicated in the file; or - -* (b) The contribution is based upon previous work that, to the best - of my knowledge, is covered under an appropriate open source - license and I have the right under that license to submit that - work with modifications, whether created in whole or in part - by me, under the same open source license (unless I am - permitted to submit under a different license), as indicated - in the file; or - -* (c) The contribution was provided directly to me by some other - person who certified (a), (b) or (c) and I have not modified - it. - -* (d) I understand and agree that this project and the contribution - are public and that a record of the contribution (including all - personal information I submit with it, including my sign-off) is - maintained indefinitely and may be redistributed consistent with - this project or the open source license(s) involved. - -## Moderation Policy - -The [Node.js Moderation Policy] applies to this WG. - -## Code of Conduct - -The [Node.js Code of Conduct][] applies to this WG. - -[Node.js Code of Conduct]: -https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md -[Node.js Moderation Policy]: -https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md diff --git a/node_modules/readdirp/node_modules/readable-stream/GOVERNANCE.md b/node_modules/readdirp/node_modules/readable-stream/GOVERNANCE.md deleted file mode 100644 index 16ffb93..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/GOVERNANCE.md +++ /dev/null @@ -1,136 +0,0 @@ -### Streams Working Group - -The Node.js Streams is jointly governed by a Working Group -(WG) -that is responsible for high-level guidance of the project. - -The WG has final authority over this project including: - -* Technical direction -* Project governance and process (including this policy) -* Contribution policy -* GitHub repository hosting -* Conduct guidelines -* Maintaining the list of additional Collaborators - -For the current list of WG members, see the project -[README.md](./README.md#current-project-team-members). - -### Collaborators - -The readable-stream GitHub repository is -maintained by the WG and additional Collaborators who are added by the -WG on an ongoing basis. - -Individuals making significant and valuable contributions are made -Collaborators and given commit-access to the project. These -individuals are identified by the WG and their addition as -Collaborators is discussed during the WG meeting. - -_Note:_ If you make a significant contribution and are not considered -for commit-access log an issue or contact a WG member directly and it -will be brought up in the next WG meeting. - -Modifications of the contents of the readable-stream repository are -made on -a collaborative basis. Anybody with a GitHub account may propose a -modification via pull request and it will be considered by the project -Collaborators. All pull requests must be reviewed and accepted by a -Collaborator with sufficient expertise who is able to take full -responsibility for the change. In the case of pull requests proposed -by an existing Collaborator, an additional Collaborator is required -for sign-off. Consensus should be sought if additional Collaborators -participate and there is disagreement around a particular -modification. See _Consensus Seeking Process_ below for further detail -on the consensus model used for governance. - -Collaborators may opt to elevate significant or controversial -modifications, or modifications that have not found consensus to the -WG for discussion by assigning the ***WG-agenda*** tag to a pull -request or issue. The WG should serve as the final arbiter where -required. - -For the current list of Collaborators, see the project -[README.md](./README.md#members). - -### WG Membership - -WG seats are not time-limited. There is no fixed size of the WG. -However, the expected target is between 6 and 12, to ensure adequate -coverage of important areas of expertise, balanced with the ability to -make decisions efficiently. - -There is no specific set of requirements or qualifications for WG -membership beyond these rules. - -The WG may add additional members to the WG by unanimous consensus. - -A WG member may be removed from the WG by voluntary resignation, or by -unanimous consensus of all other WG members. - -Changes to WG membership should be posted in the agenda, and may be -suggested as any other agenda item (see "WG Meetings" below). - -If an addition or removal is proposed during a meeting, and the full -WG is not in attendance to participate, then the addition or removal -is added to the agenda for the subsequent meeting. This is to ensure -that all members are given the opportunity to participate in all -membership decisions. If a WG member is unable to attend a meeting -where a planned membership decision is being made, then their consent -is assumed. - -No more than 1/3 of the WG members may be affiliated with the same -employer. If removal or resignation of a WG member, or a change of -employment by a WG member, creates a situation where more than 1/3 of -the WG membership shares an employer, then the situation must be -immediately remedied by the resignation or removal of one or more WG -members affiliated with the over-represented employer(s). - -### WG Meetings - -The WG meets occasionally on a Google Hangout On Air. A designated moderator -approved by the WG runs the meeting. Each meeting should be -published to YouTube. - -Items are added to the WG agenda that are considered contentious or -are modifications of governance, contribution policy, WG membership, -or release process. - -The intention of the agenda is not to approve or review all patches; -that should happen continuously on GitHub and be handled by the larger -group of Collaborators. - -Any community member or contributor can ask that something be added to -the next meeting's agenda by logging a GitHub Issue. Any Collaborator, -WG member or the moderator can add the item to the agenda by adding -the ***WG-agenda*** tag to the issue. - -Prior to each WG meeting the moderator will share the Agenda with -members of the WG. WG members can add any items they like to the -agenda at the beginning of each meeting. The moderator and the WG -cannot veto or remove items. - -The WG may invite persons or representatives from certain projects to -participate in a non-voting capacity. - -The moderator is responsible for summarizing the discussion of each -agenda item and sends it as a pull request after the meeting. - -### Consensus Seeking Process - -The WG follows a -[Consensus -Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making) -decision-making model. - -When an agenda item has appeared to reach a consensus the moderator -will ask "Does anyone object?" as a final call for dissent from the -consensus. - -If an agenda item cannot reach a consensus a WG member can call for -either a closing vote or a vote to table the issue to the next -meeting. The call for a vote must be seconded by a majority of the WG -or else the discussion will continue. Simple majority wins. - -Note that changes to WG membership require a majority consensus. See -"WG Membership" above. diff --git a/node_modules/readdirp/node_modules/readable-stream/LICENSE b/node_modules/readdirp/node_modules/readable-stream/LICENSE deleted file mode 100644 index 2873b3b..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Node.js is licensed for use as follows: - -""" -Copyright Node.js 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. -""" - -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: - -""" -Copyright Joyent, Inc. and other Node 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/readdirp/node_modules/readable-stream/README.md b/node_modules/readdirp/node_modules/readable-stream/README.md deleted file mode 100644 index 6cc54ca..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# readable-stream - -***Node-core v7.0.0 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream) - - -[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/) -[![NPM](https://nodei.co/npm-dl/readable-stream.png?&months=6&height=3)](https://nodei.co/npm/readable-stream/) - - -[![Sauce Test Status](https://saucelabs.com/browser-matrix/readable-stream.svg)](https://saucelabs.com/u/readable-stream) - -```bash -npm install --save readable-stream -``` - -***Node-core streams for userland*** - -This package is a mirror of the Streams2 and Streams3 implementations in -Node-core. - -Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v7.3.0/docs/api/). - -If you want to guarantee a stable streams base, regardless of what version of -Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html). - -As of version 2.0.0 **readable-stream** uses semantic versioning. - -# Streams Working Group - -`readable-stream` is maintained by the Streams Working Group, which -oversees the development and maintenance of the Streams API within -Node.js. The responsibilities of the Streams Working Group include: - -* Addressing stream issues on the Node.js issue tracker. -* Authoring and editing stream documentation within the Node.js project. -* Reviewing changes to stream subclasses within the Node.js project. -* Redirecting changes to streams from the Node.js project to this - project. -* Assisting in the implementation of stream providers within Node.js. -* Recommending versions of `readable-stream` to be included in Node.js. -* Messaging about the future of streams to give the community advance - notice of changes. - - -## Team Members - -* **Chris Dickinson** ([@chrisdickinson](https://github.com/chrisdickinson)) <christopher.s.dickinson@gmail.com> - - Release GPG key: 9554F04D7259F04124DE6B476D5A82AC7E37093B -* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) <calvin.metcalf@gmail.com> - - Release GPG key: F3EF5F62A87FC27A22E643F714CE4FF5015AA242 -* **Rod Vagg** ([@rvagg](https://github.com/rvagg)) <rod@vagg.org> - - Release GPG key: DD8F2338BAE7501E3DD5AC78C273792F7D83545D -* **Sam Newman** ([@sonewman](https://github.com/sonewman)) <newmansam@outlook.com> -* **Mathias Buus** ([@mafintosh](https://github.com/mafintosh)) <mathiasbuus@gmail.com> -* **Domenic Denicola** ([@domenic](https://github.com/domenic)) <d@domenic.me> -* **Matteo Collina** ([@mcollina](https://github.com/mcollina)) <matteo.collina@gmail.com> - - Release GPG key: 3ABC01543F22DD2239285CDD818674489FBC127E diff --git a/node_modules/readdirp/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md b/node_modules/readdirp/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md deleted file mode 100644 index 83275f1..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +++ /dev/null @@ -1,60 +0,0 @@ -# streams WG Meeting 2015-01-30 - -## Links - -* **Google Hangouts Video**: http://www.youtube.com/watch?v=I9nDOSGfwZg -* **GitHub Issue**: https://github.com/iojs/readable-stream/issues/106 -* **Original Minutes Google Doc**: https://docs.google.com/document/d/17aTgLnjMXIrfjgNaTUnHQO7m3xgzHR2VXBTmi03Qii4/ - -## Agenda - -Extracted from https://github.com/iojs/readable-stream/labels/wg-agenda prior to meeting. - -* adopt a charter [#105](https://github.com/iojs/readable-stream/issues/105) -* release and versioning strategy [#101](https://github.com/iojs/readable-stream/issues/101) -* simpler stream creation [#102](https://github.com/iojs/readable-stream/issues/102) -* proposal: deprecate implicit flowing of streams [#99](https://github.com/iojs/readable-stream/issues/99) - -## Minutes - -### adopt a charter - -* group: +1's all around - -### What versioning scheme should be adopted? -* group: +1’s 3.0.0 -* domenic+group: pulling in patches from other sources where appropriate -* mikeal: version independently, suggesting versions for io.js -* mikeal+domenic: work with TC to notify in advance of changes -simpler stream creation - -### streamline creation of streams -* sam: streamline creation of streams -* domenic: nice simple solution posted - but, we lose the opportunity to change the model - may not be backwards incompatible (double check keys) - - **action item:** domenic will check - -### remove implicit flowing of streams on(‘data’) -* add isFlowing / isPaused -* mikeal: worrying that we’re documenting polyfill methods – confuses users -* domenic: more reflective API is probably good, with warning labels for users -* new section for mad scientists (reflective stream access) -* calvin: name the “third state” -* mikeal: maybe borrow the name from whatwg? -* domenic: we’re missing the “third state” -* consensus: kind of difficult to name the third state -* mikeal: figure out differences in states / compat -* mathias: always flow on data – eliminates third state - * explore what it breaks - -**action items:** -* ask isaac for ability to list packages by what public io.js APIs they use (esp. Stream) -* ask rod/build for infrastructure -* **chris**: explore the “flow on data” approach -* add isPaused/isFlowing -* add new docs section -* move isPaused to that section - - diff --git a/node_modules/readdirp/node_modules/readable-stream/duplex.js b/node_modules/readdirp/node_modules/readable-stream/duplex.js deleted file mode 100644 index ca807af..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/duplex.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_duplex.js") diff --git a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/readdirp/node_modules/readable-stream/lib/_stream_duplex.js deleted file mode 100644 index 736693b..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_duplex.js +++ /dev/null @@ -1,75 +0,0 @@ -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. - -'use strict'; - -/**/ - -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) { - keys.push(key); - }return keys; -}; -/**/ - -module.exports = Duplex; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -var Readable = require('./_stream_readable'); -var Writable = require('./_stream_writable'); - -util.inherits(Duplex, Readable); - -var keys = objectKeys(Writable.prototype); -for (var v = 0; v < keys.length; v++) { - var method = keys[v]; - if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; -} - -function Duplex(options) { - if (!(this instanceof Duplex)) return new Duplex(options); - - Readable.call(this, options); - Writable.call(this, options); - - if (options && options.readable === false) this.readable = false; - - if (options && options.writable === false) this.writable = false; - - this.allowHalfOpen = true; - if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; - - this.once('end', onend); -} - -// the no-half-open enforcer -function onend() { - // if we allow half-open state, or if the writable side ended, - // then we're ok. - if (this.allowHalfOpen || this._writableState.ended) return; - - // no more data can be written. - // But allow more writes to happen in this tick. - processNextTick(onEndNT, this); -} - -function onEndNT(self) { - self.end(); -} - -function forEach(xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} \ No newline at end of file diff --git a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/readdirp/node_modules/readable-stream/lib/_stream_passthrough.js deleted file mode 100644 index d06f71f..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_passthrough.js +++ /dev/null @@ -1,26 +0,0 @@ -// a passthrough stream. -// basically just the most minimal sort of Transform stream. -// Every written chunk gets output as-is. - -'use strict'; - -module.exports = PassThrough; - -var Transform = require('./_stream_transform'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -util.inherits(PassThrough, Transform); - -function PassThrough(options) { - if (!(this instanceof PassThrough)) return new PassThrough(options); - - Transform.call(this, options); -} - -PassThrough.prototype._transform = function (chunk, encoding, cb) { - cb(null, chunk); -}; \ No newline at end of file diff --git a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js deleted file mode 100644 index 3a7d42d..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js +++ /dev/null @@ -1,941 +0,0 @@ -'use strict'; - -module.exports = Readable; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var isArray = require('isarray'); -/**/ - -/**/ -var Duplex; -/**/ - -Readable.ReadableState = ReadableState; - -/**/ -var EE = require('events').EventEmitter; - -var EElistenerCount = function (emitter, type) { - return emitter.listeners(type).length; -}; -/**/ - -/**/ -var Stream; -(function () { - try { - Stream = require('st' + 'ream'); - } catch (_) {} finally { - if (!Stream) Stream = require('events').EventEmitter; - } -})(); -/**/ - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -/**/ -var debugUtil = require('util'); -var debug = void 0; -if (debugUtil && debugUtil.debuglog) { - debug = debugUtil.debuglog('stream'); -} else { - debug = function () {}; -} -/**/ - -var BufferList = require('./internal/streams/BufferList'); -var StringDecoder; - -util.inherits(Readable, Stream); - -function prependListener(emitter, event, fn) { - // Sadly this is not cacheable as some libraries bundle their own - // event emitter implementation with them. - if (typeof emitter.prependListener === 'function') { - return emitter.prependListener(event, fn); - } else { - // This is a hack to make sure that our error handler is attached before any - // userland ones. NEVER DO THIS. This is here only because this code needs - // to continue to work with older versions of Node.js that do not include - // the prependListener() method. The goal is to eventually remove this hack. - if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; - } -} - -function ReadableState(options, stream) { - Duplex = Duplex || require('./_stream_duplex'); - - options = options || {}; - - // object stream flag. Used to make read(n) ignore n and to - // make all the buffer merging and length checks go away - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode; - - // the point at which it stops calling _read() to fill the buffer - // Note: 0 is a valid value, means "don't call _read preemptively ever" - var hwm = options.highWaterMark; - var defaultHwm = this.objectMode ? 16 : 16 * 1024; - this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; - - // cast to ints. - this.highWaterMark = ~ ~this.highWaterMark; - - // A linked list is used to store data chunks instead of an array because the - // linked list can remove elements from the beginning faster than - // array.shift() - this.buffer = new BufferList(); - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // whenever we return null, then we set a flag to say - // that we're awaiting a 'readable' event emission. - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - this.resumeScheduled = false; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // when piping, we only care about 'readable' events that happen - // after read()ing all the bytes and not getting any pushback. - this.ranOut = false; - - // the number of writers that are awaiting a drain event in .pipe()s - this.awaitDrain = 0; - - // if true, a maybeReadMore has been scheduled - this.readingMore = false; - - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } -} - -function Readable(options) { - Duplex = Duplex || require('./_stream_duplex'); - - if (!(this instanceof Readable)) return new Readable(options); - - this._readableState = new ReadableState(options, this); - - // legacy - this.readable = true; - - if (options && typeof options.read === 'function') this._read = options.read; - - Stream.call(this); -} - -// Manually shove something into the read() buffer. -// This returns true if the highWaterMark has not been hit yet, -// similar to how Writable.write() returns true if you should -// write() some more. -Readable.prototype.push = function (chunk, encoding) { - var state = this._readableState; - - if (!state.objectMode && typeof chunk === 'string') { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = bufferShim.from(chunk, encoding); - encoding = ''; - } - } - - return readableAddChunk(this, state, chunk, encoding, false); -}; - -// Unshift should *always* be something directly out of read() -Readable.prototype.unshift = function (chunk) { - var state = this._readableState; - return readableAddChunk(this, state, chunk, '', true); -}; - -Readable.prototype.isPaused = function () { - return this._readableState.flowing === false; -}; - -function readableAddChunk(stream, state, chunk, encoding, addToFront) { - var er = chunkInvalid(state, chunk); - if (er) { - stream.emit('error', er); - } else if (chunk === null) { - state.reading = false; - onEofChunk(stream, state); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (state.ended && !addToFront) { - var e = new Error('stream.push() after EOF'); - stream.emit('error', e); - } else if (state.endEmitted && addToFront) { - var _e = new Error('stream.unshift() after end event'); - stream.emit('error', _e); - } else { - var skipAdd; - if (state.decoder && !addToFront && !encoding) { - chunk = state.decoder.write(chunk); - skipAdd = !state.objectMode && chunk.length === 0; - } - - if (!addToFront) state.reading = false; - - // Don't add to the buffer if we've decoded to an empty string chunk and - // we're not in object mode - if (!skipAdd) { - // if we want the data now, just emit it. - if (state.flowing && state.length === 0 && !state.sync) { - stream.emit('data', chunk); - stream.read(0); - } else { - // update the buffer info. - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); - - if (state.needReadable) emitReadable(stream); - } - } - - maybeReadMore(stream, state); - } - } else if (!addToFront) { - state.reading = false; - } - - return needMoreData(state); -} - -// if it's past the high water mark, we can push in some more. -// Also, if we have no data yet, we can stand some -// more bytes. This is to work around cases where hwm=0, -// such as the repl. Also, if the push() triggered a -// readable event, and the user called read(largeNumber) such that -// needReadable was set, then we ought to push more, so that another -// 'readable' event will be triggered. -function needMoreData(state) { - return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); -} - -// backwards compatibility. -Readable.prototype.setEncoding = function (enc) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; - this._readableState.decoder = new StringDecoder(enc); - this._readableState.encoding = enc; - return this; -}; - -// Don't raise the hwm > 8MB -var MAX_HWM = 0x800000; -function computeNewHighWaterMark(n) { - if (n >= MAX_HWM) { - n = MAX_HWM; - } else { - // Get the next highest power of 2 to prevent increasing hwm excessively in - // tiny amounts - n--; - n |= n >>> 1; - n |= n >>> 2; - n |= n >>> 4; - n |= n >>> 8; - n |= n >>> 16; - n++; - } - return n; -} - -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function howMuchToRead(n, state) { - if (n <= 0 || state.length === 0 && state.ended) return 0; - if (state.objectMode) return 1; - if (n !== n) { - // Only flow one buffer at a time - if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; - } - // If we're asking for more than the current hwm, then raise the hwm. - if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); - if (n <= state.length) return n; - // Don't have enough - if (!state.ended) { - state.needReadable = true; - return 0; - } - return state.length; -} - -// you can override either this method, or the async _read(n) below. -Readable.prototype.read = function (n) { - debug('read', n); - n = parseInt(n, 10); - var state = this._readableState; - var nOrig = n; - - if (n !== 0) state.emittedReadable = false; - - // if we're doing read(0) to trigger a readable event, but we - // already have a bunch of data in the buffer, then just trigger - // the 'readable' event and move on. - if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { - debug('read: emitReadable', state.length, state.ended); - if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); - return null; - } - - n = howMuchToRead(n, state); - - // if we've ended, and we're now clear, then finish it up. - if (n === 0 && state.ended) { - if (state.length === 0) endReadable(this); - return null; - } - - // All the actual chunk generation logic needs to be - // *below* the call to _read. The reason is that in certain - // synthetic stream cases, such as passthrough streams, _read - // may be a completely synchronous operation which may change - // the state of the read buffer, providing enough data when - // before there was *not* enough. - // - // So, the steps are: - // 1. Figure out what the state of things will be after we do - // a read from the buffer. - // - // 2. If that resulting state will trigger a _read, then call _read. - // Note that this may be asynchronous, or synchronous. Yes, it is - // deeply ugly to write APIs this way, but that still doesn't mean - // that the Readable class should behave improperly, as streams are - // designed to be sync/async agnostic. - // Take note if the _read call is sync or async (ie, if the read call - // has returned yet), so that we know whether or not it's safe to emit - // 'readable' etc. - // - // 3. Actually pull the requested chunks out of the buffer and return. - - // if we need a readable event, then we need to do some reading. - var doRead = state.needReadable; - debug('need readable', doRead); - - // if we currently have less than the highWaterMark, then also read some - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug('length less than watermark', doRead); - } - - // however, if we've ended, then there's no point, and if we're already - // reading, then it's unnecessary. - if (state.ended || state.reading) { - doRead = false; - debug('reading or ended', doRead); - } else if (doRead) { - debug('do read'); - state.reading = true; - state.sync = true; - // if the length is currently zero, then we *need* a readable event. - if (state.length === 0) state.needReadable = true; - // call internal read method - this._read(state.highWaterMark); - state.sync = false; - // If _read pushed data synchronously, then `reading` will be false, - // and we need to re-evaluate how much data we can return to the user. - if (!state.reading) n = howMuchToRead(nOrig, state); - } - - var ret; - if (n > 0) ret = fromList(n, state);else ret = null; - - if (ret === null) { - state.needReadable = true; - n = 0; - } else { - state.length -= n; - } - - if (state.length === 0) { - // If we have nothing in the buffer, then we want to know - // as soon as we *do* get something into the buffer. - if (!state.ended) state.needReadable = true; - - // If we tried to read() past the EOF, then emit end on the next tick. - if (nOrig !== n && state.ended) endReadable(this); - } - - if (ret !== null) this.emit('data', ret); - - return ret; -}; - -function chunkInvalid(state, chunk) { - var er = null; - if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { - er = new TypeError('Invalid non-string/buffer chunk'); - } - return er; -} - -function onEofChunk(stream, state) { - if (state.ended) return; - if (state.decoder) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - - // emit 'readable' now to make sure it gets picked up. - emitReadable(stream); -} - -// Don't emit readable right away in sync mode, because this can trigger -// another read() call => stack overflow. This way, it might trigger -// a nextTick recursion warning, but that's not so bad. -function emitReadable(stream) { - var state = stream._readableState; - state.needReadable = false; - if (!state.emittedReadable) { - debug('emitReadable', state.flowing); - state.emittedReadable = true; - if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream); - } -} - -function emitReadable_(stream) { - debug('emit readable'); - stream.emit('readable'); - flow(stream); -} - -// at this point, the user has presumably seen the 'readable' event, -// and called read() to consume some data. that may have triggered -// in turn another _read(n) call, in which case reading = true if -// it's in progress. -// However, if we're not ended, or reading, and the length < hwm, -// then go ahead and try to read some more preemptively. -function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - processNextTick(maybeReadMore_, stream, state); - } -} - -function maybeReadMore_(stream, state) { - var len = state.length; - while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { - debug('maybeReadMore read 0'); - stream.read(0); - if (len === state.length) - // didn't get any data, stop spinning. - break;else len = state.length; - } - state.readingMore = false; -} - -// abstract method. to be overridden in specific implementation classes. -// call cb(er, data) where data is <= n in length. -// for virtual (non-string, non-buffer) streams, "length" is somewhat -// arbitrary, and perhaps not very meaningful. -Readable.prototype._read = function (n) { - this.emit('error', new Error('_read() is not implemented')); -}; - -Readable.prototype.pipe = function (dest, pipeOpts) { - var src = this; - var state = this._readableState; - - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); - - var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; - - var endFn = doEnd ? onend : cleanup; - if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn); - - dest.on('unpipe', onunpipe); - function onunpipe(readable) { - debug('onunpipe'); - if (readable === src) { - cleanup(); - } - } - - function onend() { - debug('onend'); - dest.end(); - } - - // when the dest drains, it reduces the awaitDrain counter - // on the source. This would be more elegant with a .once() - // handler in flow(), but adding and removing repeatedly is - // too slow. - var ondrain = pipeOnDrain(src); - dest.on('drain', ondrain); - - var cleanedUp = false; - function cleanup() { - debug('cleanup'); - // cleanup event handlers once the pipe is broken - dest.removeListener('close', onclose); - dest.removeListener('finish', onfinish); - dest.removeListener('drain', ondrain); - dest.removeListener('error', onerror); - dest.removeListener('unpipe', onunpipe); - src.removeListener('end', onend); - src.removeListener('end', cleanup); - src.removeListener('data', ondata); - - cleanedUp = true; - - // if the reader is waiting for a drain event from this - // specific writer, then it would cause it to never start - // flowing again. - // So, if this is awaiting a drain, then we just call it now. - // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); - } - - // If the user pushes more data while we're writing to dest then we'll end up - // in ondata again. However, we only want to increase awaitDrain once because - // dest will only emit one 'drain' event for the multiple writes. - // => Introduce a guard on increasing awaitDrain. - var increasedAwaitDrain = false; - src.on('data', ondata); - function ondata(chunk) { - debug('ondata'); - increasedAwaitDrain = false; - var ret = dest.write(chunk); - if (false === ret && !increasedAwaitDrain) { - // If the user unpiped during `dest.write()`, it is possible - // to get stuck in a permanently paused state if that write - // also returned false. - // => Check whether `dest` is still a piping destination. - if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { - debug('false write response, pause', src._readableState.awaitDrain); - src._readableState.awaitDrain++; - increasedAwaitDrain = true; - } - src.pause(); - } - } - - // if the dest has an error, then stop piping into it. - // however, don't suppress the throwing behavior for this. - function onerror(er) { - debug('onerror', er); - unpipe(); - dest.removeListener('error', onerror); - if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); - } - - // Make sure our error handler is attached before userland ones. - prependListener(dest, 'error', onerror); - - // Both close and finish should trigger unpipe, but only once. - function onclose() { - dest.removeListener('finish', onfinish); - unpipe(); - } - dest.once('close', onclose); - function onfinish() { - debug('onfinish'); - dest.removeListener('close', onclose); - unpipe(); - } - dest.once('finish', onfinish); - - function unpipe() { - debug('unpipe'); - src.unpipe(dest); - } - - // tell the dest that it's being piped to - dest.emit('pipe', src); - - // start the flow if it hasn't been started already. - if (!state.flowing) { - debug('pipe resume'); - src.resume(); - } - - return dest; -}; - -function pipeOnDrain(src) { - return function () { - var state = src._readableState; - debug('pipeOnDrain', state.awaitDrain); - if (state.awaitDrain) state.awaitDrain--; - if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { - state.flowing = true; - flow(src); - } - }; -} - -Readable.prototype.unpipe = function (dest) { - var state = this._readableState; - - // if we're not piping anywhere, then do nothing. - if (state.pipesCount === 0) return this; - - // just one destination. most common case. - if (state.pipesCount === 1) { - // passed in one, but it's not the right one. - if (dest && dest !== state.pipes) return this; - - if (!dest) dest = state.pipes; - - // got a match. - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) dest.emit('unpipe', this); - return this; - } - - // slow case. multiple pipe destinations. - - if (!dest) { - // remove all. - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - - for (var i = 0; i < len; i++) { - dests[i].emit('unpipe', this); - }return this; - } - - // try to find the right one. - var index = indexOf(state.pipes, dest); - if (index === -1) return this; - - state.pipes.splice(index, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) state.pipes = state.pipes[0]; - - dest.emit('unpipe', this); - - return this; -}; - -// set up data events if they are asked for -// Ensure readable listeners eventually get something -Readable.prototype.on = function (ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - - if (ev === 'data') { - // Start flowing on next tick if stream isn't explicitly paused - if (this._readableState.flowing !== false) this.resume(); - } else if (ev === 'readable') { - var state = this._readableState; - if (!state.endEmitted && !state.readableListening) { - state.readableListening = state.needReadable = true; - state.emittedReadable = false; - if (!state.reading) { - processNextTick(nReadingNextTick, this); - } else if (state.length) { - emitReadable(this, state); - } - } - } - - return res; -}; -Readable.prototype.addListener = Readable.prototype.on; - -function nReadingNextTick(self) { - debug('readable nexttick read 0'); - self.read(0); -} - -// pause() and resume() are remnants of the legacy readable stream API -// If the user uses them, then switch into old mode. -Readable.prototype.resume = function () { - var state = this._readableState; - if (!state.flowing) { - debug('resume'); - state.flowing = true; - resume(this, state); - } - return this; -}; - -function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - processNextTick(resume_, stream, state); - } -} - -function resume_(stream, state) { - if (!state.reading) { - debug('resume read 0'); - stream.read(0); - } - - state.resumeScheduled = false; - state.awaitDrain = 0; - stream.emit('resume'); - flow(stream); - if (state.flowing && !state.reading) stream.read(0); -} - -Readable.prototype.pause = function () { - debug('call pause flowing=%j', this._readableState.flowing); - if (false !== this._readableState.flowing) { - debug('pause'); - this._readableState.flowing = false; - this.emit('pause'); - } - return this; -}; - -function flow(stream) { - var state = stream._readableState; - debug('flow', state.flowing); - while (state.flowing && stream.read() !== null) {} -} - -// wrap an old-style stream as the async data source. -// This is *not* part of the readable stream interface. -// It is an ugly unfortunate mess of history. -Readable.prototype.wrap = function (stream) { - var state = this._readableState; - var paused = false; - - var self = this; - stream.on('end', function () { - debug('wrapped end'); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) self.push(chunk); - } - - self.push(null); - }); - - stream.on('data', function (chunk) { - debug('wrapped data'); - if (state.decoder) chunk = state.decoder.write(chunk); - - // don't skip over falsy values in objectMode - if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; - - var ret = self.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); - - // proxy all the other methods. - // important when wrapping filters and duplexes. - for (var i in stream) { - if (this[i] === undefined && typeof stream[i] === 'function') { - this[i] = function (method) { - return function () { - return stream[method].apply(stream, arguments); - }; - }(i); - } - } - - // proxy certain important events. - var events = ['error', 'close', 'destroy', 'pause', 'resume']; - forEach(events, function (ev) { - stream.on(ev, self.emit.bind(self, ev)); - }); - - // when we try to consume some more bytes, simply unpause the - // underlying stream. - self._read = function (n) { - debug('wrapped _read', n); - if (paused) { - paused = false; - stream.resume(); - } - }; - - return self; -}; - -// exposed for testing purposes only. -Readable._fromList = fromList; - -// Pluck off n bytes from an array of buffers. -// Length is the combined lengths of all the buffers in the list. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function fromList(n, state) { - // nothing buffered - if (state.length === 0) return null; - - var ret; - if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { - // read it all, truncate the list - if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length); - state.buffer.clear(); - } else { - // read part of list - ret = fromListPartial(n, state.buffer, state.decoder); - } - - return ret; -} - -// Extracts only enough buffered data to satisfy the amount requested. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function fromListPartial(n, list, hasStrings) { - var ret; - if (n < list.head.data.length) { - // slice is the same for buffers and strings - ret = list.head.data.slice(0, n); - list.head.data = list.head.data.slice(n); - } else if (n === list.head.data.length) { - // first chunk is a perfect match - ret = list.shift(); - } else { - // result spans more than one buffer - ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); - } - return ret; -} - -// Copies a specified amount of characters from the list of buffered data -// chunks. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function copyFromBufferString(n, list) { - var p = list.head; - var c = 1; - var ret = p.data; - n -= ret.length; - while (p = p.next) { - var str = p.data; - var nb = n > str.length ? str.length : n; - if (nb === str.length) ret += str;else ret += str.slice(0, n); - n -= nb; - if (n === 0) { - if (nb === str.length) { - ++c; - if (p.next) list.head = p.next;else list.head = list.tail = null; - } else { - list.head = p; - p.data = str.slice(nb); - } - break; - } - ++c; - } - list.length -= c; - return ret; -} - -// Copies a specified amount of bytes from the list of buffered data chunks. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function copyFromBuffer(n, list) { - var ret = bufferShim.allocUnsafe(n); - var p = list.head; - var c = 1; - p.data.copy(ret); - n -= p.data.length; - while (p = p.next) { - var buf = p.data; - var nb = n > buf.length ? buf.length : n; - buf.copy(ret, ret.length - n, 0, nb); - n -= nb; - if (n === 0) { - if (nb === buf.length) { - ++c; - if (p.next) list.head = p.next;else list.head = list.tail = null; - } else { - list.head = p; - p.data = buf.slice(nb); - } - break; - } - ++c; - } - list.length -= c; - return ret; -} - -function endReadable(stream) { - var state = stream._readableState; - - // If we get here before consuming all the bytes, then that is a - // bug in node. Should never happen. - if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); - - if (!state.endEmitted) { - state.ended = true; - processNextTick(endReadableNT, state, stream); - } -} - -function endReadableNT(state, stream) { - // Check that we didn't get one last unshift. - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit('end'); - } -} - -function forEach(xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} - -function indexOf(xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) return i; - } - return -1; -} \ No newline at end of file diff --git a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/readdirp/node_modules/readable-stream/lib/_stream_transform.js deleted file mode 100644 index cd25832..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_transform.js +++ /dev/null @@ -1,182 +0,0 @@ -// a transform stream is a readable/writable stream where you do -// something with the data. Sometimes it's called a "filter", -// but that's not a great name for it, since that implies a thing where -// some bits pass through, and others are simply ignored. (That would -// be a valid example of a transform, of course.) -// -// While the output is causally related to the input, it's not a -// necessarily symmetric or synchronous transformation. For example, -// a zlib stream might take multiple plain-text writes(), and then -// emit a single compressed chunk some time in the future. -// -// Here's how this works: -// -// The Transform stream has all the aspects of the readable and writable -// stream classes. When you write(chunk), that calls _write(chunk,cb) -// internally, and returns false if there's a lot of pending writes -// buffered up. When you call read(), that calls _read(n) until -// there's enough pending readable data buffered up. -// -// In a transform stream, the written data is placed in a buffer. When -// _read(n) is called, it transforms the queued up data, calling the -// buffered _write cb's as it consumes chunks. If consuming a single -// written chunk would result in multiple output chunks, then the first -// outputted bit calls the readcb, and subsequent chunks just go into -// the read buffer, and will cause it to emit 'readable' if necessary. -// -// This way, back-pressure is actually determined by the reading side, -// since _read has to be called to start processing a new chunk. However, -// a pathological inflate type of transform can cause excessive buffering -// here. For example, imagine a stream where every byte of input is -// interpreted as an integer from 0-255, and then results in that many -// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in -// 1kb of data being output. In this case, you could write a very small -// amount of input, and end up with a very large amount of output. In -// such a pathological inflating mechanism, there'd be no way to tell -// the system to stop doing the transform. A single 4MB write could -// cause the system to run out of memory. -// -// However, even in such a pathological case, only a single written chunk -// would be consumed, and then the rest would wait (un-transformed) until -// the results of the previous transformed chunk were consumed. - -'use strict'; - -module.exports = Transform; - -var Duplex = require('./_stream_duplex'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -util.inherits(Transform, Duplex); - -function TransformState(stream) { - this.afterTransform = function (er, data) { - return afterTransform(stream, er, data); - }; - - this.needTransform = false; - this.transforming = false; - this.writecb = null; - this.writechunk = null; - this.writeencoding = null; -} - -function afterTransform(stream, er, data) { - var ts = stream._transformState; - ts.transforming = false; - - var cb = ts.writecb; - - if (!cb) return stream.emit('error', new Error('no writecb in Transform class')); - - ts.writechunk = null; - ts.writecb = null; - - if (data !== null && data !== undefined) stream.push(data); - - cb(er); - - var rs = stream._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - stream._read(rs.highWaterMark); - } -} - -function Transform(options) { - if (!(this instanceof Transform)) return new Transform(options); - - Duplex.call(this, options); - - this._transformState = new TransformState(this); - - var stream = this; - - // start out asking for a readable event once data is transformed. - this._readableState.needReadable = true; - - // we have implemented the _read method, and done the other things - // that Readable wants before the first _read call, so unset the - // sync guard flag. - this._readableState.sync = false; - - if (options) { - if (typeof options.transform === 'function') this._transform = options.transform; - - if (typeof options.flush === 'function') this._flush = options.flush; - } - - // When the writable side finishes, then flush out anything remaining. - this.once('prefinish', function () { - if (typeof this._flush === 'function') this._flush(function (er, data) { - done(stream, er, data); - });else done(stream); - }); -} - -Transform.prototype.push = function (chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); -}; - -// This is the part where you do stuff! -// override this function in implementation classes. -// 'chunk' is an input chunk. -// -// Call `push(newChunk)` to pass along transformed output -// to the readable side. You may call 'push' zero or more times. -// -// Call `cb(err)` when you are done with this chunk. If you pass -// an error, then that'll put the hurt on the whole operation. If you -// never call cb(), then you'll never get another chunk. -Transform.prototype._transform = function (chunk, encoding, cb) { - throw new Error('_transform() is not implemented'); -}; - -Transform.prototype._write = function (chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); - } -}; - -// Doesn't matter what the args are here. -// _transform does all the work. -// That we got here means that the readable side wants more data. -Transform.prototype._read = function (n) { - var ts = this._transformState; - - if (ts.writechunk !== null && ts.writecb && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - // mark that we need a transform, so that any data that comes in - // will get processed, now that we've asked for it. - ts.needTransform = true; - } -}; - -function done(stream, er, data) { - if (er) return stream.emit('error', er); - - if (data !== null && data !== undefined) stream.push(data); - - // if there's nothing in the write buffer, then that means - // that nothing more will ever be provided - var ws = stream._writableState; - var ts = stream._transformState; - - if (ws.length) throw new Error('Calling transform done when ws.length != 0'); - - if (ts.transforming) throw new Error('Calling transform done when still transforming'); - - return stream.push(null); -} \ No newline at end of file diff --git a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/readdirp/node_modules/readable-stream/lib/_stream_writable.js deleted file mode 100644 index 4d9c62b..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/lib/_stream_writable.js +++ /dev/null @@ -1,554 +0,0 @@ -// A bit simpler than readable streams. -// Implement an async ._write(chunk, encoding, cb), and it'll handle all -// the drain event emission and buffering. - -'use strict'; - -module.exports = Writable; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick; -/**/ - -/**/ -var Duplex; -/**/ - -Writable.WritableState = WritableState; - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -/**/ -var internalUtil = { - deprecate: require('util-deprecate') -}; -/**/ - -/**/ -var Stream; -(function () { - try { - Stream = require('st' + 'ream'); - } catch (_) {} finally { - if (!Stream) Stream = require('events').EventEmitter; - } -})(); -/**/ - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -util.inherits(Writable, Stream); - -function nop() {} - -function WriteReq(chunk, encoding, cb) { - this.chunk = chunk; - this.encoding = encoding; - this.callback = cb; - this.next = null; -} - -function WritableState(options, stream) { - Duplex = Duplex || require('./_stream_duplex'); - - options = options || {}; - - // object stream flag to indicate whether or not this stream - // contains buffers or objects. - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode; - - // the point at which write() starts returning false - // Note: 0 is a valid value, means that we always return false if - // the entire buffer is not flushed immediately on write() - var hwm = options.highWaterMark; - var defaultHwm = this.objectMode ? 16 : 16 * 1024; - this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; - - // cast to ints. - this.highWaterMark = ~ ~this.highWaterMark; - - // drain event flag. - this.needDrain = false; - // at the start of calling end() - this.ending = false; - // when end() has been called, and returned - this.ended = false; - // when 'finish' is emitted - this.finished = false; - - // should we decode strings into buffers before passing to _write? - // this is here so that some node-core streams can optimize string - // handling at a lower level. - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // not an actual buffer we keep track of, but a measurement - // of how much we're waiting to get pushed to some underlying - // socket or file. - this.length = 0; - - // a flag to see when we're in the middle of a write. - this.writing = false; - - // when true all writes will be buffered until .uncork() call - this.corked = 0; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // a flag to know if we're processing previously buffered items, which - // may call the _write() callback in the same tick, so that we don't - // end up in an overlapped onwrite situation. - this.bufferProcessing = false; - - // the callback that's passed to _write(chunk,cb) - this.onwrite = function (er) { - onwrite(stream, er); - }; - - // the callback that the user supplies to write(chunk,encoding,cb) - this.writecb = null; - - // the amount that is being written when _write is called. - this.writelen = 0; - - this.bufferedRequest = null; - this.lastBufferedRequest = null; - - // number of pending user-supplied write callbacks - // this must be 0 before 'finish' can be emitted - this.pendingcb = 0; - - // emit prefinish if the only thing we're waiting for is _write cbs - // This is relevant for synchronous Transform streams - this.prefinished = false; - - // True if the error was already emitted and should not be thrown again - this.errorEmitted = false; - - // count buffered requests - this.bufferedRequestCount = 0; - - // allocate the first CorkedRequest, there is always - // one allocated and free to use, and we maintain at most two - this.corkedRequestsFree = new CorkedRequest(this); -} - -WritableState.prototype.getBuffer = function getBuffer() { - var current = this.bufferedRequest; - var out = []; - while (current) { - out.push(current); - current = current.next; - } - return out; -}; - -(function () { - try { - Object.defineProperty(WritableState.prototype, 'buffer', { - get: internalUtil.deprecate(function () { - return this.getBuffer(); - }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.') - }); - } catch (_) {} -})(); - -// Test _writableState for inheritance to account for Duplex streams, -// whose prototype chain only points to Readable. -var realHasInstance; -if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { - realHasInstance = Function.prototype[Symbol.hasInstance]; - Object.defineProperty(Writable, Symbol.hasInstance, { - value: function (object) { - if (realHasInstance.call(this, object)) return true; - - return object && object._writableState instanceof WritableState; - } - }); -} else { - realHasInstance = function (object) { - return object instanceof this; - }; -} - -function Writable(options) { - Duplex = Duplex || require('./_stream_duplex'); - - // Writable ctor is applied to Duplexes, too. - // `realHasInstance` is necessary because using plain `instanceof` - // would return false, as no `_writableState` property is attached. - - // Trying to use the custom `instanceof` for Writable here will also break the - // Node.js LazyTransform implementation, which has a non-trivial getter for - // `_writableState` that would lead to infinite recursion. - if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) { - return new Writable(options); - } - - this._writableState = new WritableState(options, this); - - // legacy. - this.writable = true; - - if (options) { - if (typeof options.write === 'function') this._write = options.write; - - if (typeof options.writev === 'function') this._writev = options.writev; - } - - Stream.call(this); -} - -// Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe = function () { - this.emit('error', new Error('Cannot pipe, not readable')); -}; - -function writeAfterEnd(stream, cb) { - var er = new Error('write after end'); - // TODO: defer error events consistently everywhere, not just the cb - stream.emit('error', er); - processNextTick(cb, er); -} - -// If we get something that is not a buffer, string, null, or undefined, -// and we're not in objectMode, then that's an error. -// Otherwise stream chunks are all considered to be of length=1, and the -// watermarks determine how many objects to keep in the buffer, rather than -// how many bytes or characters. -function validChunk(stream, state, chunk, cb) { - var valid = true; - var er = false; - // Always throw error if a null is written - // if we are not in object mode then throw - // if it is not a buffer, string, or undefined. - if (chunk === null) { - er = new TypeError('May not write null values to stream'); - } else if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { - er = new TypeError('Invalid non-string/buffer chunk'); - } - if (er) { - stream.emit('error', er); - processNextTick(cb, er); - valid = false; - } - return valid; -} - -Writable.prototype.write = function (chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - - if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - - if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; - - if (typeof cb !== 'function') cb = nop; - - if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, chunk, encoding, cb); - } - - return ret; -}; - -Writable.prototype.cork = function () { - var state = this._writableState; - - state.corked++; -}; - -Writable.prototype.uncork = function () { - var state = this._writableState; - - if (state.corked) { - state.corked--; - - if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); - } -}; - -Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { - // node::ParseEncoding() requires lower case. - if (typeof encoding === 'string') encoding = encoding.toLowerCase(); - if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); - this._writableState.defaultEncoding = encoding; - return this; -}; - -function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { - chunk = bufferShim.from(chunk, encoding); - } - return chunk; -} - -// if we're already writing something, then just put this -// in the queue, and wait our turn. Otherwise, call _write -// If we return false, then we need a drain event, so set that flag. -function writeOrBuffer(stream, state, chunk, encoding, cb) { - chunk = decodeChunk(state, chunk, encoding); - - if (Buffer.isBuffer(chunk)) encoding = 'buffer'; - var len = state.objectMode ? 1 : chunk.length; - - state.length += len; - - var ret = state.length < state.highWaterMark; - // we must ensure that previous needDrain will not be reset to false. - if (!ret) state.needDrain = true; - - if (state.writing || state.corked) { - var last = state.lastBufferedRequest; - state.lastBufferedRequest = new WriteReq(chunk, encoding, cb); - if (last) { - last.next = state.lastBufferedRequest; - } else { - state.bufferedRequest = state.lastBufferedRequest; - } - state.bufferedRequestCount += 1; - } else { - doWrite(stream, state, false, len, chunk, encoding, cb); - } - - return ret; -} - -function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); - state.sync = false; -} - -function onwriteError(stream, state, sync, er, cb) { - --state.pendingcb; - if (sync) processNextTick(cb, er);else cb(er); - - stream._writableState.errorEmitted = true; - stream.emit('error', er); -} - -function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; -} - -function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - - onwriteStateUpdate(state); - - if (er) onwriteError(stream, state, sync, er, cb);else { - // Check if we're actually ready to finish, but don't emit yet - var finished = needFinish(state); - - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { - clearBuffer(stream, state); - } - - if (sync) { - /**/ - asyncWrite(afterWrite, stream, state, finished, cb); - /**/ - } else { - afterWrite(stream, state, finished, cb); - } - } -} - -function afterWrite(stream, state, finished, cb) { - if (!finished) onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); -} - -// Must force callback to be called on nextTick, so that we don't -// emit 'drain' before the write() consumer gets the 'false' return -// value, and has a chance to attach a 'drain' listener. -function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit('drain'); - } -} - -// if there's something in the buffer waiting, then process it -function clearBuffer(stream, state) { - state.bufferProcessing = true; - var entry = state.bufferedRequest; - - if (stream._writev && entry && entry.next) { - // Fast case, write everything using _writev() - var l = state.bufferedRequestCount; - var buffer = new Array(l); - var holder = state.corkedRequestsFree; - holder.entry = entry; - - var count = 0; - while (entry) { - buffer[count] = entry; - entry = entry.next; - count += 1; - } - - doWrite(stream, state, true, state.length, buffer, '', holder.finish); - - // doWrite is almost always async, defer these to save a bit of time - // as the hot path ends with doWrite - state.pendingcb++; - state.lastBufferedRequest = null; - if (holder.next) { - state.corkedRequestsFree = holder.next; - holder.next = null; - } else { - state.corkedRequestsFree = new CorkedRequest(state); - } - } else { - // Slow case, write chunks one-by-one - while (entry) { - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - - doWrite(stream, state, false, len, chunk, encoding, cb); - entry = entry.next; - // if we didn't call the onwrite immediately, then - // it means that we need to wait until it does. - // also, that means that the chunk and cb are currently - // being processed, so move the buffer counter past them. - if (state.writing) { - break; - } - } - - if (entry === null) state.lastBufferedRequest = null; - } - - state.bufferedRequestCount = 0; - state.bufferedRequest = entry; - state.bufferProcessing = false; -} - -Writable.prototype._write = function (chunk, encoding, cb) { - cb(new Error('_write() is not implemented')); -}; - -Writable.prototype._writev = null; - -Writable.prototype.end = function (chunk, encoding, cb) { - var state = this._writableState; - - if (typeof chunk === 'function') { - cb = chunk; - chunk = null; - encoding = null; - } else if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - - if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); - - // .end() fully uncorks - if (state.corked) { - state.corked = 1; - this.uncork(); - } - - // ignore unnecessary end() calls. - if (!state.ending && !state.finished) endWritable(this, state, cb); -}; - -function needFinish(state) { - return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; -} - -function prefinish(stream, state) { - if (!state.prefinished) { - state.prefinished = true; - stream.emit('prefinish'); - } -} - -function finishMaybe(stream, state) { - var need = needFinish(state); - if (need) { - if (state.pendingcb === 0) { - prefinish(stream, state); - state.finished = true; - stream.emit('finish'); - } else { - prefinish(stream, state); - } - } - return need; -} - -function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) processNextTick(cb);else stream.once('finish', cb); - } - state.ended = true; - stream.writable = false; -} - -// It seems a linked list but it is not -// there will be only 2 of these for each stream -function CorkedRequest(state) { - var _this = this; - - this.next = null; - this.entry = null; - - this.finish = function (err) { - var entry = _this.entry; - _this.entry = null; - while (entry) { - var cb = entry.callback; - state.pendingcb--; - cb(err); - entry = entry.next; - } - if (state.corkedRequestsFree) { - state.corkedRequestsFree.next = _this; - } else { - state.corkedRequestsFree = _this; - } - }; -} \ No newline at end of file diff --git a/node_modules/readdirp/node_modules/readable-stream/lib/internal/streams/BufferList.js b/node_modules/readdirp/node_modules/readable-stream/lib/internal/streams/BufferList.js deleted file mode 100644 index e4bfcf0..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/lib/internal/streams/BufferList.js +++ /dev/null @@ -1,64 +0,0 @@ -'use strict'; - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -module.exports = BufferList; - -function BufferList() { - this.head = null; - this.tail = null; - this.length = 0; -} - -BufferList.prototype.push = function (v) { - var entry = { data: v, next: null }; - if (this.length > 0) this.tail.next = entry;else this.head = entry; - this.tail = entry; - ++this.length; -}; - -BufferList.prototype.unshift = function (v) { - var entry = { data: v, next: this.head }; - if (this.length === 0) this.tail = entry; - this.head = entry; - ++this.length; -}; - -BufferList.prototype.shift = function () { - if (this.length === 0) return; - var ret = this.head.data; - if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; - --this.length; - return ret; -}; - -BufferList.prototype.clear = function () { - this.head = this.tail = null; - this.length = 0; -}; - -BufferList.prototype.join = function (s) { - if (this.length === 0) return ''; - var p = this.head; - var ret = '' + p.data; - while (p = p.next) { - ret += s + p.data; - }return ret; -}; - -BufferList.prototype.concat = function (n) { - if (this.length === 0) return bufferShim.alloc(0); - if (this.length === 1) return this.head.data; - var ret = bufferShim.allocUnsafe(n >>> 0); - var p = this.head; - var i = 0; - while (p) { - p.data.copy(ret, i); - i += p.data.length; - p = p.next; - } - return ret; -}; \ No newline at end of file diff --git a/node_modules/readdirp/node_modules/readable-stream/package.json b/node_modules/readdirp/node_modules/readable-stream/package.json deleted file mode 100644 index 847077c..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/package.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "readable-stream@^2.0.2", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "^2.0.2", - "spec": ">=2.0.2 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/readdirp" - ] - ], - "_from": "readable-stream@>=2.0.2 <3.0.0", - "_id": "readable-stream@2.2.3", - "_inCache": true, - "_location": "/readdirp/readable-stream", - "_nodeVersion": "6.9.2", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/readable-stream-2.2.3.tgz_1487688066228_0.35690787457861006" - }, - "_npmUser": { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - }, - "_npmVersion": "4.0.5", - "_phantomChildren": {}, - "_requested": { - "raw": "readable-stream@^2.0.2", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "^2.0.2", - "spec": ">=2.0.2 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/readdirp" - ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz", - "_shasum": "9cf49463985df016c8ae8813097a9293a9b33729", - "_shrinkwrap": null, - "_spec": "readable-stream@^2.0.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/readdirp", - "browser": { - "util": false - }, - "bugs": { - "url": "https://github.com/nodejs/readable-stream/issues" - }, - "dependencies": { - "buffer-shims": "^1.0.0", - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "string_decoder": "~0.10.x", - "util-deprecate": "~1.0.1" - }, - "description": "Streams3, a user-land copy of the stream library from Node.js", - "devDependencies": { - "assert": "~1.4.0", - "babel-polyfill": "^6.9.1", - "buffer": "^4.9.0", - "nyc": "^6.4.0", - "tap": "~0.7.1", - "tape": "~4.5.1", - "zuul": "~3.10.0" - }, - "directories": {}, - "dist": { - "shasum": "9cf49463985df016c8ae8813097a9293a9b33729", - "tarball": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz" - }, - "gitHead": "4dbe6e20051e44025d3cbec3ed9603483d8b27cb", - "homepage": "https://github.com/nodejs/readable-stream#readme", - "keywords": [ - "readable", - "stream", - "pipe" - ], - "license": "MIT", - "main": "readable.js", - "maintainers": [ - { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - { - "name": "tootallnate", - "email": "nathan@tootallnate.net" - }, - { - "name": "rvagg", - "email": "rod@vagg.org" - }, - { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - } - ], - "name": "readable-stream", - "nyc": { - "include": [ - "lib/**.js" - ] - }, - "optionalDependencies": {}, - "react-native": { - "stream": false - }, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/nodejs/readable-stream.git" - }, - "scripts": { - "browser": "npm run write-zuul && zuul --browser-retries 2 -- test/browser.js", - "cover": "nyc npm test", - "local": "zuul --local 3000 --no-coverage -- test/browser.js", - "report": "nyc report --reporter=lcov", - "test": "tap test/parallel/*.js test/ours/*.js", - "write-zuul": "printf \"ui: tape\nbrowsers:\n - name: $BROWSER_NAME\n version: $BROWSER_VERSION\n\">.zuul.yml" - }, - "version": "2.2.3" -} diff --git a/node_modules/readdirp/node_modules/readable-stream/passthrough.js b/node_modules/readdirp/node_modules/readable-stream/passthrough.js deleted file mode 100644 index 27e8d8a..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/passthrough.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_passthrough.js") diff --git a/node_modules/readdirp/node_modules/readable-stream/readable.js b/node_modules/readdirp/node_modules/readable-stream/readable.js deleted file mode 100644 index be2688a..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/readable.js +++ /dev/null @@ -1,16 +0,0 @@ -var Stream = (function (){ - try { - return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify - } catch(_){} -}()); -exports = module.exports = require('./lib/_stream_readable.js'); -exports.Stream = Stream || exports; -exports.Readable = exports; -exports.Writable = require('./lib/_stream_writable.js'); -exports.Duplex = require('./lib/_stream_duplex.js'); -exports.Transform = require('./lib/_stream_transform.js'); -exports.PassThrough = require('./lib/_stream_passthrough.js'); - -if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) { - module.exports = Stream; -} diff --git a/node_modules/readdirp/node_modules/readable-stream/transform.js b/node_modules/readdirp/node_modules/readable-stream/transform.js deleted file mode 100644 index 5d482f0..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/transform.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_transform.js") diff --git a/node_modules/readdirp/node_modules/readable-stream/writable.js b/node_modules/readdirp/node_modules/readable-stream/writable.js deleted file mode 100644 index e1e9efd..0000000 --- a/node_modules/readdirp/node_modules/readable-stream/writable.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_writable.js") diff --git a/node_modules/readdirp/package.json b/node_modules/readdirp/package.json deleted file mode 100644 index 9d750d3..0000000 --- a/node_modules/readdirp/package.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "readdirp@^2.0.0", - "scope": null, - "escapedName": "readdirp", - "name": "readdirp", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/chokidar" - ] - ], - "_from": "readdirp@>=2.0.0 <3.0.0", - "_id": "readdirp@2.1.0", - "_inCache": true, - "_location": "/readdirp", - "_nodeVersion": "4.4.6", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/readdirp-2.1.0.tgz_1467053820730_0.8782131769694388" - }, - "_npmUser": { - "name": "thlorenz", - "email": "thlorenz@gmx.de" - }, - "_npmVersion": "2.15.6", - "_phantomChildren": { - "buffer-shims": "1.0.0", - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" - }, - "_requested": { - "raw": "readdirp@^2.0.0", - "scope": null, - "escapedName": "readdirp", - "name": "readdirp", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/chokidar" - ], - "_resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "_shasum": "4ed0ad060df3073300c48440373f72d1cc642d78", - "_shrinkwrap": null, - "_spec": "readdirp@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/chokidar", - "author": { - "name": "Thorsten Lorenz", - "email": "thlorenz@gmx.de", - "url": "thlorenz.com" - }, - "bugs": { - "url": "https://github.com/thlorenz/readdirp/issues" - }, - "dependencies": { - "graceful-fs": "^4.1.2", - "minimatch": "^3.0.2", - "readable-stream": "^2.0.2", - "set-immediate-shim": "^1.0.1" - }, - "description": "Recursive version of fs.readdir with streaming api.", - "devDependencies": { - "nave": "^0.5.1", - "proxyquire": "^1.7.9", - "tap": "1.3.2", - "through2": "^2.0.0" - }, - "directories": {}, - "dist": { - "shasum": "4ed0ad060df3073300c48440373f72d1cc642d78", - "tarball": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz" - }, - "engines": { - "node": ">=0.6" - }, - "gitHead": "5a3751f86a1c2bbbb8e3a42685d4191992631e6c", - "homepage": "https://github.com/thlorenz/readdirp", - "keywords": [ - "recursive", - "fs", - "stream", - "streams", - "readdir", - "filesystem", - "find", - "filter" - ], - "license": "MIT", - "main": "readdirp.js", - "maintainers": [ - { - "name": "thlorenz", - "email": "thlorenz@gmx.de" - } - ], - "name": "readdirp", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/thlorenz/readdirp.git" - }, - "scripts": { - "test": "if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi", - "test-0.10": "nave use 0.10 npm run test-main", - "test-0.12": "nave use 0.12 npm run test-main", - "test-4": "nave use 4.4 npm run test-main", - "test-6": "nave use 6.2 npm run test-main", - "test-all": "npm run test-main && npm run test-0.10 && npm run test-0.12 && npm run test-4 && npm run test-6", - "test-main": "(cd test && set -e; for t in ./*.js; do node $t; done)" - }, - "version": "2.1.0" -} diff --git a/node_modules/readdirp/readdirp.js b/node_modules/readdirp/readdirp.js deleted file mode 100644 index b6b21e4..0000000 --- a/node_modules/readdirp/readdirp.js +++ /dev/null @@ -1,300 +0,0 @@ -'use strict'; - -var fs = require('graceful-fs') - , path = require('path') - , minimatch = require('minimatch') - , toString = Object.prototype.toString - , si = require('set-immediate-shim') - ; - - -// Standard helpers -function isFunction (obj) { - return toString.call(obj) === '[object Function]'; -} - -function isString (obj) { - return toString.call(obj) === '[object String]'; -} - -function isRegExp (obj) { - return toString.call(obj) === '[object RegExp]'; -} - -function isUndefined (obj) { - return obj === void 0; -} - -/** - * Main function which ends up calling readdirRec and reads all files and directories in given root recursively. - * @param { Object } opts Options to specify root (start directory), filters and recursion depth - * @param { function } callback1 When callback2 is given calls back for each processed file - function (fileInfo) { ... }, - * when callback2 is not given, it behaves like explained in callback2 - * @param { function } callback2 Calls back once all files have been processed with an array of errors and file infos - * function (err, fileInfos) { ... } - */ -function readdir(opts, callback1, callback2) { - var stream - , handleError - , handleFatalError - , pending = 0 - , errors = [] - , readdirResult = { - directories: [] - , files: [] - } - , fileProcessed - , allProcessed - , realRoot - , aborted = false - , paused = false - ; - - // If no callbacks were given we will use a streaming interface - if (isUndefined(callback1)) { - var api = require('./stream-api')(); - stream = api.stream; - callback1 = api.processEntry; - callback2 = api.done; - handleError = api.handleError; - handleFatalError = api.handleFatalError; - - stream.on('close', function () { aborted = true; }); - stream.on('pause', function () { paused = true; }); - stream.on('resume', function () { paused = false; }); - } else { - handleError = function (err) { errors.push(err); }; - handleFatalError = function (err) { - handleError(err); - allProcessed(errors, null); - }; - } - - if (isUndefined(opts)){ - handleFatalError(new Error ( - 'Need to pass at least one argument: opts! \n' + - 'https://github.com/thlorenz/readdirp#options' - ) - ); - return stream; - } - - opts.root = opts.root || '.'; - opts.fileFilter = opts.fileFilter || function() { return true; }; - opts.directoryFilter = opts.directoryFilter || function() { return true; }; - opts.depth = typeof opts.depth === 'undefined' ? 999999999 : opts.depth; - opts.entryType = opts.entryType || 'files'; - - var statfn = opts.lstat === true ? fs.lstat.bind(fs) : fs.stat.bind(fs); - - if (isUndefined(callback2)) { - fileProcessed = function() { }; - allProcessed = callback1; - } else { - fileProcessed = callback1; - allProcessed = callback2; - } - - function normalizeFilter (filter) { - - if (isUndefined(filter)) return undefined; - - function isNegated (filters) { - - function negated(f) { - return f.indexOf('!') === 0; - } - - var some = filters.some(negated); - if (!some) { - return false; - } else { - if (filters.every(negated)) { - return true; - } else { - // if we detect illegal filters, bail out immediately - throw new Error( - 'Cannot mix negated with non negated glob filters: ' + filters + '\n' + - 'https://github.com/thlorenz/readdirp#filters' - ); - } - } - } - - // Turn all filters into a function - if (isFunction(filter)) { - - return filter; - - } else if (isString(filter)) { - - return function (entryInfo) { - return minimatch(entryInfo.name, filter.trim()); - }; - - } else if (filter && Array.isArray(filter)) { - - if (filter) filter = filter.map(function (f) { - return f.trim(); - }); - - return isNegated(filter) ? - // use AND to concat multiple negated filters - function (entryInfo) { - return filter.every(function (f) { - return minimatch(entryInfo.name, f); - }); - } - : - // use OR to concat multiple inclusive filters - function (entryInfo) { - return filter.some(function (f) { - return minimatch(entryInfo.name, f); - }); - }; - } - } - - function processDir(currentDir, entries, callProcessed) { - if (aborted) return; - var total = entries.length - , processed = 0 - , entryInfos = [] - ; - - fs.realpath(currentDir, function(err, realCurrentDir) { - if (aborted) return; - if (err) { - handleError(err); - callProcessed(entryInfos); - return; - } - - var relDir = path.relative(realRoot, realCurrentDir); - - if (entries.length === 0) { - callProcessed([]); - } else { - entries.forEach(function (entry) { - - var fullPath = path.join(realCurrentDir, entry) - , relPath = path.join(relDir, entry); - - statfn(fullPath, function (err, stat) { - if (err) { - handleError(err); - } else { - entryInfos.push({ - name : entry - , path : relPath // relative to root - , fullPath : fullPath - - , parentDir : relDir // relative to root - , fullParentDir : realCurrentDir - - , stat : stat - }); - } - processed++; - if (processed === total) callProcessed(entryInfos); - }); - }); - } - }); - } - - function readdirRec(currentDir, depth, callCurrentDirProcessed) { - var args = arguments; - if (aborted) return; - if (paused) { - si(function () { - readdirRec.apply(null, args); - }) - return; - } - - fs.readdir(currentDir, function (err, entries) { - if (err) { - handleError(err); - callCurrentDirProcessed(); - return; - } - - processDir(currentDir, entries, function(entryInfos) { - - var subdirs = entryInfos - .filter(function (ei) { return ei.stat.isDirectory() && opts.directoryFilter(ei); }); - - subdirs.forEach(function (di) { - if(opts.entryType === 'directories' || opts.entryType === 'both' || opts.entryType === 'all') { - fileProcessed(di); - } - readdirResult.directories.push(di); - }); - - entryInfos - .filter(function(ei) { - var isCorrectType = opts.entryType === 'all' ? - !ei.stat.isDirectory() : ei.stat.isFile() || ei.stat.isSymbolicLink(); - return isCorrectType && opts.fileFilter(ei); - }) - .forEach(function (fi) { - if(opts.entryType === 'files' || opts.entryType === 'both' || opts.entryType === 'all') { - fileProcessed(fi); - } - readdirResult.files.push(fi); - }); - - var pendingSubdirs = subdirs.length; - - // Be done if no more subfolders exist or we reached the maximum desired depth - if(pendingSubdirs === 0 || depth === opts.depth) { - callCurrentDirProcessed(); - } else { - // recurse into subdirs, keeping track of which ones are done - // and call back once all are processed - subdirs.forEach(function (subdir) { - readdirRec(subdir.fullPath, depth + 1, function () { - pendingSubdirs = pendingSubdirs - 1; - if(pendingSubdirs === 0) { - callCurrentDirProcessed(); - } - }); - }); - } - }); - }); - } - - // Validate and normalize filters - try { - opts.fileFilter = normalizeFilter(opts.fileFilter); - opts.directoryFilter = normalizeFilter(opts.directoryFilter); - } catch (err) { - // if we detect illegal filters, bail out immediately - handleFatalError(err); - return stream; - } - - // If filters were valid get on with the show - fs.realpath(opts.root, function(err, res) { - if (err) { - handleFatalError(err); - return stream; - } - - realRoot = res; - readdirRec(opts.root, 0, function () { - // All errors are collected into the errors array - if (errors.length > 0) { - allProcessed(errors, readdirResult); - } else { - allProcessed(null, readdirResult); - } - }); - }); - - return stream; -} - -module.exports = readdir; diff --git a/node_modules/readdirp/stream-api.js b/node_modules/readdirp/stream-api.js deleted file mode 100644 index 91c6808..0000000 --- a/node_modules/readdirp/stream-api.js +++ /dev/null @@ -1,99 +0,0 @@ -'use strict'; - -var si = require('set-immediate-shim'); -var stream = require('readable-stream'); -var util = require('util'); - -var Readable = stream.Readable; - -module.exports = ReaddirpReadable; - -util.inherits(ReaddirpReadable, Readable); - -function ReaddirpReadable (opts) { - if (!(this instanceof ReaddirpReadable)) return new ReaddirpReadable(opts); - - opts = opts || {}; - - opts.objectMode = true; - Readable.call(this, opts); - - // backpressure not implemented at this point - this.highWaterMark = Infinity; - - this._destroyed = false; - this._paused = false; - this._warnings = []; - this._errors = []; - - this._pauseResumeErrors(); -} - -var proto = ReaddirpReadable.prototype; - -proto._pauseResumeErrors = function () { - var self = this; - self.on('pause', function () { self._paused = true }); - self.on('resume', function () { - if (self._destroyed) return; - self._paused = false; - - self._warnings.forEach(function (err) { self.emit('warn', err) }); - self._warnings.length = 0; - - self._errors.forEach(function (err) { self.emit('error', err) }); - self._errors.length = 0; - }) -} - -// called for each entry -proto._processEntry = function (entry) { - if (this._destroyed) return; - this.push(entry); -} - -proto._read = function () { } - -proto.destroy = function () { - // when stream is destroyed it will emit nothing further, not even errors or warnings - this.push(null); - this.readable = false; - this._destroyed = true; - this.emit('close'); -} - -proto._done = function () { - this.push(null); -} - -// we emit errors and warnings async since we may handle errors like invalid args -// within the initial event loop before any event listeners subscribed -proto._handleError = function (err) { - var self = this; - si(function () { - if (self._paused) return self._warnings.push(err); - if (!self._destroyed) self.emit('warn', err); - }); -} - -proto._handleFatalError = function (err) { - var self = this; - si(function () { - if (self._paused) return self._errors.push(err); - if (!self._destroyed) self.emit('error', err); - }); -} - -function createStreamAPI () { - var stream = new ReaddirpReadable(); - - return { - stream : stream - , processEntry : stream._processEntry.bind(stream) - , done : stream._done.bind(stream) - , handleError : stream._handleError.bind(stream) - , handleFatalError : stream._handleFatalError.bind(stream) - }; -} - -module.exports = createStreamAPI; diff --git a/node_modules/readdirp/test/bed/root_dir1/root_dir1_file1.ext1 b/node_modules/readdirp/test/bed/root_dir1/root_dir1_file1.ext1 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/bed/root_dir1/root_dir1_file2.ext2 b/node_modules/readdirp/test/bed/root_dir1/root_dir1_file2.ext2 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/bed/root_dir1/root_dir1_file3.ext3 b/node_modules/readdirp/test/bed/root_dir1/root_dir1_file3.ext3 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/bed/root_dir1/root_dir1_subdir1/root1_dir1_subdir1_file1.ext1 b/node_modules/readdirp/test/bed/root_dir1/root_dir1_subdir1/root1_dir1_subdir1_file1.ext1 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/bed/root_dir2/root_dir2_file1.ext1 b/node_modules/readdirp/test/bed/root_dir2/root_dir2_file1.ext1 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/bed/root_dir2/root_dir2_file2.ext2 b/node_modules/readdirp/test/bed/root_dir2/root_dir2_file2.ext2 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/bed/root_file1.ext1 b/node_modules/readdirp/test/bed/root_file1.ext1 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/bed/root_file2.ext2 b/node_modules/readdirp/test/bed/root_file2.ext2 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/bed/root_file3.ext3 b/node_modules/readdirp/test/bed/root_file3.ext3 deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/readdirp/test/readdirp-stream.js b/node_modules/readdirp/test/readdirp-stream.js deleted file mode 100644 index c43d132..0000000 --- a/node_modules/readdirp/test/readdirp-stream.js +++ /dev/null @@ -1,338 +0,0 @@ -/*jshint asi:true */ - -var debug //= true; -var test = debug ? function () {} : require('tap').test -var test_ = !debug ? function () {} : require('tap').test - , path = require('path') - , fs = require('fs') - , util = require('util') - , TransformStream = require('readable-stream').Transform - , through = require('through2') - , proxyquire = require('proxyquire') - , streamapi = require('../stream-api') - , readdirp = require('..') - , root = path.join(__dirname, 'bed') - , totalDirs = 6 - , totalFiles = 12 - , ext1Files = 4 - , ext2Files = 3 - , ext3Files = 2 - ; - -// see test/readdirp.js for test bed layout - -function opts (extend) { - var o = { root: root }; - - if (extend) { - for (var prop in extend) { - o[prop] = extend[prop]; - } - } - return o; -} - -function capture () { - var result = { entries: [], errors: [], ended: false } - , dst = new TransformStream({ objectMode: true }); - - dst._transform = function (entry, _, cb) { - result.entries.push(entry); - cb(); - } - - dst._flush = function (cb) { - result.ended = true; - this.push(result); - cb(); - } - - return dst; -} - -test('\nintegrated', function (t) { - t.test('\n# reading root without filter', function (t) { - t.plan(2); - - readdirp(opts()) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .pipe(capture()) - .pipe(through.obj( - function (result, _ , cb) { - t.equals(result.entries.length, totalFiles, 'emits all files'); - t.ok(result.ended, 'ends stream'); - t.end(); - cb(); - } - )); - }) - - t.test('\n# normal: ["*.ext1", "*.ext3"]', function (t) { - t.plan(2); - - readdirp(opts( { fileFilter: [ '*.ext1', '*.ext3' ] } )) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .pipe(capture()) - .pipe(through.obj( - function (result, _ , cb) { - t.equals(result.entries.length, ext1Files + ext3Files, 'all ext1 and ext3 files'); - t.ok(result.ended, 'ends stream'); - t.end(); - cb(); - } - )) - }) - - t.test('\n# files only', function (t) { - t.plan(2); - - readdirp(opts( { entryType: 'files' } )) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .pipe(capture()) - .pipe(through.obj( - function (result, _ , cb) { - t.equals(result.entries.length, totalFiles, 'returned files'); - t.ok(result.ended, 'ends stream'); - t.end(); - cb(); - } - )) - }) - - t.test('\n# directories only', function (t) { - t.plan(2); - - readdirp(opts( { entryType: 'directories' } )) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .pipe(capture()) - .pipe(through.obj( - function (result, _ , cb) { - t.equals(result.entries.length, totalDirs, 'returned directories'); - t.ok(result.ended, 'ends stream'); - t.end(); - cb(); - } - )) - }) - - t.test('\n# both directories + files', function (t) { - t.plan(2); - - readdirp(opts( { entryType: 'both' } )) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .pipe(capture()) - .pipe(through.obj( - function (result, _ , cb) { - t.equals(result.entries.length, totalDirs + totalFiles, 'returned everything'); - t.ok(result.ended, 'ends stream'); - t.end(); - cb(); - } - )) - }) - - t.test('\n# directory filter with directories only', function (t) { - t.plan(2); - - readdirp(opts( { entryType: 'directories', directoryFilter: [ 'root_dir1', '*dir1_subdir1' ] } )) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .pipe(capture()) - .pipe(through.obj( - function (result, _ , cb) { - t.equals(result.entries.length, 2, 'two directories'); - t.ok(result.ended, 'ends stream'); - t.end(); - cb(); - } - )) - }) - - t.test('\n# directory and file filters with both entries', function (t) { - t.plan(2); - - readdirp(opts( { entryType: 'both', directoryFilter: [ 'root_dir1', '*dir1_subdir1' ], fileFilter: [ '!*.ext1' ] } )) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .pipe(capture()) - .pipe(through.obj( - function (result, _ , cb) { - t.equals(result.entries.length, 6, '2 directories and 4 files'); - t.ok(result.ended, 'ends stream'); - t.end(); - cb(); - } - )) - }) - - t.test('\n# negated: ["!*.ext1", "!*.ext3"]', function (t) { - t.plan(2); - - readdirp(opts( { fileFilter: [ '!*.ext1', '!*.ext3' ] } )) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .pipe(capture()) - .pipe(through.obj( - function (result, _ , cb) { - t.equals(result.entries.length, totalFiles - ext1Files - ext3Files, 'all but ext1 and ext3 files'); - t.ok(result.ended, 'ends stream'); - t.end(); - } - )) - }) - - t.test('\n# no options given', function (t) { - t.plan(1); - readdirp() - .on('error', function (err) { - t.similar(err.toString() , /Need to pass at least one argument/ , 'emits meaningful error'); - t.end(); - }) - }) - - t.test('\n# mixed: ["*.ext1", "!*.ext3"]', function (t) { - t.plan(1); - - readdirp(opts( { fileFilter: [ '*.ext1', '!*.ext3' ] } )) - .on('error', function (err) { - t.similar(err.toString() , /Cannot mix negated with non negated glob filters/ , 'emits meaningful error'); - t.end(); - }) - }) -}) - - -test('\napi separately', function (t) { - - t.test('\n# handleError', function (t) { - t.plan(1); - - var api = streamapi() - , warning = new Error('some file caused problems'); - - api.stream - .on('warn', function (err) { - t.equals(err, warning, 'warns with the handled error'); - }) - api.handleError(warning); - }) - - t.test('\n# when stream is paused and then resumed', function (t) { - t.plan(6); - var api = streamapi() - , resumed = false - , fatalError = new Error('fatal!') - , nonfatalError = new Error('nonfatal!') - , processedData = 'some data' - ; - - api.stream - .on('warn', function (err) { - t.equals(err, nonfatalError, 'emits the buffered warning'); - t.ok(resumed, 'emits warning only after it was resumed'); - }) - .on('error', function (err) { - t.equals(err, fatalError, 'emits the buffered fatal error'); - t.ok(resumed, 'emits errors only after it was resumed'); - }) - .on('data', function (data) { - t.equals(data, processedData, 'emits the buffered data'); - t.ok(resumed, 'emits data only after it was resumed'); - }) - .pause() - - api.processEntry(processedData); - api.handleError(nonfatalError); - api.handleFatalError(fatalError); - - setTimeout(function () { - resumed = true; - api.stream.resume(); - }, 1) - }) - - t.test('\n# when a stream is paused it stops walking the fs', function (t) { - var resumed = false, - mockedAPI = streamapi(); - - mockedAPI.processEntry = function (entry) { - if (!resumed) t.notOk(true, 'should not emit while paused') - t.ok(entry, 'emitted while resumed') - }.bind(mockedAPI.stream) - - function wrapper () { - return mockedAPI - } - - var readdirp = proxyquire('../readdirp', {'./stream-api': wrapper}) - , stream = readdirp(opts()) - .on('error', function (err) { - t.fail('should not throw error', err); - }) - .on('end', function () { - t.end() - }) - .pause(); - - setTimeout(function () { - resumed = true; - stream.resume(); - }, 5) - }) - - t.test('\n# when a stream is destroyed, it emits "closed", but no longer emits "data", "warn" and "error"', function (t) { - var api = streamapi() - , fatalError = new Error('fatal!') - , nonfatalError = new Error('nonfatal!') - , processedData = 'some data' - , plan = 0; - - t.plan(6) - var stream = api.stream - .on('warn', function (err) { - t.ok(!stream._destroyed, 'emits warning until destroyed'); - }) - .on('error', function (err) { - t.ok(!stream._destroyed, 'emits errors until destroyed'); - }) - .on('data', function (data) { - t.ok(!stream._destroyed, 'emits data until destroyed'); - }) - .on('close', function () { - t.ok(stream._destroyed, 'emits close when stream is destroyed'); - }) - - - api.processEntry(processedData); - api.handleError(nonfatalError); - api.handleFatalError(fatalError); - - setTimeout(function () { - stream.destroy() - - t.notOk(stream.readable, 'stream is no longer readable after it is destroyed') - - api.processEntry(processedData); - api.handleError(nonfatalError); - api.handleFatalError(fatalError); - - process.nextTick(function () { - t.pass('emits no more data, warn or error events after it was destroyed') - t.end(); - }) - }, 10) - }) -}) diff --git a/node_modules/readdirp/test/readdirp.js b/node_modules/readdirp/test/readdirp.js deleted file mode 100644 index 812afbb..0000000 --- a/node_modules/readdirp/test/readdirp.js +++ /dev/null @@ -1,289 +0,0 @@ -/*jshint asi:true */ - -var test = require('tap').test - , path = require('path') - , fs = require('fs') - , util = require('util') - , net = require('net') - , readdirp = require('../readdirp.js') - , root = path.join(__dirname, '../test/bed') - , totalDirs = 6 - , totalFiles = 12 - , ext1Files = 4 - , ext2Files = 3 - , ext3Files = 2 - , rootDir2Files = 2 - , nameHasLength9Dirs = 2 - , depth1Files = 8 - , depth0Files = 3 - ; - -/* -Structure of test bed: - . - ├── root_dir1 - │   ├── root_dir1_file1.ext1 - │   ├── root_dir1_file2.ext2 - │   ├── root_dir1_file3.ext3 - │   ├── root_dir1_subdir1 - │   │   └── root1_dir1_subdir1_file1.ext1 - │   └── root_dir1_subdir2 - │   └── .gitignore - ├── root_dir2 - │   ├── root_dir2_file1.ext1 - │   ├── root_dir2_file2.ext2 - │   ├── root_dir2_subdir1 - │   │   └── .gitignore - │   └── root_dir2_subdir2 - │   └── .gitignore - ├── root_file1.ext1 - ├── root_file2.ext2 - └── root_file3.ext3 - - 6 directories, 13 files -*/ - -// console.log('\033[2J'); // clear console - -function opts (extend) { - var o = { root: root }; - - if (extend) { - for (var prop in extend) { - o[prop] = extend[prop]; - } - } - return o; -} - -test('\nreading root without filter', function (t) { - t.plan(2); - readdirp(opts(), function (err, res) { - t.equals(res.directories.length, totalDirs, 'all directories'); - t.equals(res.files.length, totalFiles, 'all files'); - t.end(); - }) -}) - -test('\nreading root without filter using lstat', function (t) { - t.plan(2); - readdirp(opts({ lstat: true }), function (err, res) { - t.equals(res.directories.length, totalDirs, 'all directories'); - t.equals(res.files.length, totalFiles, 'all files'); - t.end(); - }) -}) - -test('\nreading root with symlinks using lstat', function (t) { - t.plan(2); - fs.symlinkSync(path.join(root, 'root_dir1'), path.join(root, 'dirlink')); - fs.symlinkSync(path.join(root, 'root_file1.ext1'), path.join(root, 'link.ext1')); - readdirp(opts({ lstat: true }), function (err, res) { - t.equals(res.directories.length, totalDirs, 'all directories'); - t.equals(res.files.length, totalFiles + 2, 'all files + symlinks'); - fs.unlinkSync(path.join(root, 'dirlink')); - fs.unlinkSync(path.join(root, 'link.ext1')); - t.end(); - }) -}) - -test('\nreading non-standard fds', function (t) { - t.plan(2); - var server = net.createServer().listen(path.join(root, 'test.sock'), function(){ - readdirp(opts({ entryType: 'all' }), function (err, res) { - t.equals(res.files.length, totalFiles + 1, 'all files + socket'); - readdirp(opts({ entryType: 'both' }), function (err, res) { - t.equals(res.files.length, totalFiles, 'all regular files only'); - server.close(); - t.end(); - }) - }) - }); -}) - -test('\nreading root using glob filter', function (t) { - // normal - t.test('\n# "*.ext1"', function (t) { - t.plan(1); - readdirp(opts( { fileFilter: '*.ext1' } ), function (err, res) { - t.equals(res.files.length, ext1Files, 'all ext1 files'); - t.end(); - }) - }) - t.test('\n# ["*.ext1", "*.ext3"]', function (t) { - t.plan(1); - readdirp(opts( { fileFilter: [ '*.ext1', '*.ext3' ] } ), function (err, res) { - t.equals(res.files.length, ext1Files + ext3Files, 'all ext1 and ext3 files'); - t.end(); - }) - }) - t.test('\n# "root_dir1"', function (t) { - t.plan(1); - readdirp(opts( { directoryFilter: 'root_dir1' }), function (err, res) { - t.equals(res.directories.length, 1, 'one directory'); - t.end(); - }) - }) - t.test('\n# ["root_dir1", "*dir1_subdir1"]', function (t) { - t.plan(1); - readdirp(opts( { directoryFilter: [ 'root_dir1', '*dir1_subdir1' ]}), function (err, res) { - t.equals(res.directories.length, 2, 'two directories'); - t.end(); - }) - }) - - t.test('\n# negated: "!*.ext1"', function (t) { - t.plan(1); - readdirp(opts( { fileFilter: '!*.ext1' } ), function (err, res) { - t.equals(res.files.length, totalFiles - ext1Files, 'all but ext1 files'); - t.end(); - }) - }) - t.test('\n# negated: ["!*.ext1", "!*.ext3"]', function (t) { - t.plan(1); - readdirp(opts( { fileFilter: [ '!*.ext1', '!*.ext3' ] } ), function (err, res) { - t.equals(res.files.length, totalFiles - ext1Files - ext3Files, 'all but ext1 and ext3 files'); - t.end(); - }) - }) - - t.test('\n# mixed: ["*.ext1", "!*.ext3"]', function (t) { - t.plan(1); - readdirp(opts( { fileFilter: [ '*.ext1', '!*.ext3' ] } ), function (err, res) { - t.similar(err[0].toString(), /Cannot mix negated with non negated glob filters/, 'returns meaningfull error'); - t.end(); - }) - }) - - t.test('\n# leading and trailing spaces: [" *.ext1", "*.ext3 "]', function (t) { - t.plan(1); - readdirp(opts( { fileFilter: [ ' *.ext1', '*.ext3 ' ] } ), function (err, res) { - t.equals(res.files.length, ext1Files + ext3Files, 'all ext1 and ext3 files'); - t.end(); - }) - }) - t.test('\n# leading and trailing spaces: [" !*.ext1", " !*.ext3 "]', function (t) { - t.plan(1); - readdirp(opts( { fileFilter: [ ' !*.ext1', ' !*.ext3' ] } ), function (err, res) { - t.equals(res.files.length, totalFiles - ext1Files - ext3Files, 'all but ext1 and ext3 files'); - t.end(); - }) - }) - - t.test('\n# ** glob pattern', function (t) { - t.plan(1); - readdirp(opts( { fileFilter: '**/*.ext1' } ), function (err, res) { - t.equals(res.files.length, ext1Files, 'ignores ** in **/*.ext1 -> only *.ext1 files'); - t.end(); - }) - }) -}) - -test('\n\nreading root using function filter', function (t) { - t.test('\n# file filter -> "contains root_dir2"', function (t) { - t.plan(1); - readdirp( - opts( { fileFilter: function (fi) { return fi.name.indexOf('root_dir2') >= 0; } }) - , function (err, res) { - t.equals(res.files.length, rootDir2Files, 'all rootDir2Files'); - t.end(); - } - ) - }) - - t.test('\n# directory filter -> "name has length 9"', function (t) { - t.plan(1); - readdirp( - opts( { directoryFilter: function (di) { return di.name.length === 9; } }) - , function (err, res) { - t.equals(res.directories.length, nameHasLength9Dirs, 'all all dirs with name length 9'); - t.end(); - } - ) - }) -}) - -test('\nreading root specifying maximum depth', function (t) { - t.test('\n# depth 1', function (t) { - t.plan(1); - readdirp(opts( { depth: 1 } ), function (err, res) { - t.equals(res.files.length, depth1Files, 'does not return files at depth 2'); - }) - }) -}) - -test('\nreading root with no recursion', function (t) { - t.test('\n# depth 0', function (t) { - t.plan(1); - readdirp(opts( { depth: 0 } ), function (err, res) { - t.equals(res.files.length, depth0Files, 'does not return files at depth 0'); - }) - }) -}) - -test('\nprogress callbacks', function (t) { - t.plan(2); - - var pluckName = function(fi) { return fi.name; } - , processedFiles = []; - - readdirp( - opts() - , function(fi) { - processedFiles.push(fi); - } - , function (err, res) { - t.equals(processedFiles.length, res.files.length, 'calls back for each file processed'); - t.deepEquals(processedFiles.map(pluckName).sort(),res.files.map(pluckName).sort(), 'same file names'); - t.end(); - } - ) -}) - -test('resolving of name, full and relative paths', function (t) { - var expected = { - name : 'root_dir1_file1.ext1' - , parentDirName : 'root_dir1' - , path : 'root_dir1/root_dir1_file1.ext1' - , fullPath : 'test/bed/root_dir1/root_dir1_file1.ext1' - } - , opts = [ - { root: './bed' , prefix: '' } - , { root: './bed/' , prefix: '' } - , { root: 'bed' , prefix: '' } - , { root: 'bed/' , prefix: '' } - , { root: '../test/bed/' , prefix: '' } - , { root: '.' , prefix: 'bed' } - ] - t.plan(opts.length); - - opts.forEach(function (op) { - op.fileFilter = 'root_dir1_file1.ext1'; - - t.test('\n' + util.inspect(op), function (t) { - t.plan(4); - - readdirp (op, function(err, res) { - t.equals(res.files[0].name, expected.name, 'correct name'); - t.equals(res.files[0].path, path.join(op.prefix, expected.path), 'correct path'); - }) - - fs.realpath(op.root, function(err, fullRoot) { - readdirp (op, function(err, res) { - t.equals( - res.files[0].fullParentDir - , path.join(fullRoot, op.prefix, expected.parentDirName) - , 'correct parentDir' - ); - t.equals( - res.files[0].fullPath - , path.join(fullRoot, op.prefix, expected.parentDirName, expected.name) - , 'correct fullPath' - ); - }) - }) - }) - }) -}) - - diff --git a/node_modules/readline2/README.md b/node_modules/readline2/README.md deleted file mode 100644 index 5a677a4..0000000 --- a/node_modules/readline2/README.md +++ /dev/null @@ -1,33 +0,0 @@ -readline2 [![Build Status](https://travis-ci.org/SBoudrias/readline2.png?branch=master)](https://travis-ci.org/SBoudrias/readline2) -========= - -Node.js (v0.8 and v0.10) had some bugs and issues with the default [Readline](http://nodejs.org/api/readline.html) module. - -This module include fixes seen in later version (0.11-0.12 and iojs) and ease some undesirable behavior one could see using the readline to create interatives prompts. This means `readline2` change some behaviors and as so is **not** meant to be an exact drop-in replacement. - -This project is extracted from the core of [Inquirer.js interactive prompt interface](https://github.com/SBoudrias/Inquirer.js) to be available as a standalone module. - - -Documentation -------------- - -**Installation**: `npm install --save readline2` - -### readline2.createInterface(options); -> {Interface} - -Present the same API as [Node.js `readline.createInterface()`](http://nodejs.org/api/readline.html) - -#### Improvements -- Default `options.input` as `process.stdin` -- Default `options.output` as `process.stdout` -- `interface.stdout` is wrapped in a [MuteStream](https://github.com/isaacs/mute-stream) -- Prevent `up` and `down` keys from moving through history inside the readline -- Fix cursor position after a line refresh when the `Interface` prompt contains ANSI colors -- Correctly return the cursor position when faced with implicit line returns - - -License -------------- - -Copyright (c) 2012 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart)) -Licensed under the MIT license. diff --git a/node_modules/readline2/index.js b/node_modules/readline2/index.js deleted file mode 100644 index 050965f..0000000 --- a/node_modules/readline2/index.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Readline API façade to fix some issues - * @Note: May look a bit like Monkey patching... if you know a better way let me know. - */ - -"use strict"; -var readline = require("readline"); -var MuteStream = require("mute-stream"); -var codePointAt = require("code-point-at"); -var isFullwidthCodePoint = require("is-fullwidth-code-point"); - -var Interface = module.exports = {}; - - -/** - * Create a readline interface - * @param {Object} opt Readline option hash - * @return {readline} the new readline interface - */ - -Interface.createInterface = function( opt ) { - opt || (opt = {}); - var filteredOpt = opt; - - // Default `input` to stdin - filteredOpt.input = opt.input || process.stdin; - - // Add mute capabilities to the output - var ms = new MuteStream(); - ms.pipe( opt.output || process.stdout ); - filteredOpt.output = ms; - - // Create the readline - var rl = readline.createInterface( filteredOpt ); - - // Fix bug with refreshLine - var _refreshLine = rl._refreshLine; - rl._refreshLine = function() { - _refreshLine.call(rl); - - var line = this._prompt + this.line; - var cursorPos = this._getCursorPos(); - - readline.moveCursor(this.output, -line.length, 0); - readline.moveCursor(this.output, cursorPos.cols, 0); - }; - - // Returns current cursor's position and line - rl._getCursorPos = function() { - var columns = this.columns; - var strBeforeCursor = this._prompt + this.line.substring(0, this.cursor); - var dispPos = this._getDisplayPos(strBeforeCursor); - var cols = dispPos.cols; - var rows = dispPos.rows; - // If the cursor is on a full-width character which steps over the line, - // move the cursor to the beginning of the next line. - if (cols + 1 === columns && - this.cursor < this.line.length && - isFullwidthCodePoint(codePointAt(this.line, this.cursor))) { - rows++; - cols = 0; - } - return {cols: cols, rows: rows}; - }; - - // Returns the last character's display position of the given string - rl._getDisplayPos = function(str) { - var offset = 0; - var col = this.columns; - var row = 0; - var code; - str = stripVTControlCharacters(str); - for (var i = 0, len = str.length; i < len; i++) { - code = codePointAt(str, i); - if (code >= 0x10000) { // surrogates - i++; - } - if (code === 0x0a) { // new line \n - offset = 0; - row += 1; - continue; - } - if (isFullwidthCodePoint(code)) { - if ((offset + 1) % col === 0) { - offset++; - } - offset += 2; - } else { - offset++; - } - } - var cols = offset % col; - var rows = row + (offset - cols) / col; - return {cols: cols, rows: rows}; - }; - - // Prevent arrows from breaking the question line - var origWrite = rl._ttyWrite; - rl._ttyWrite = function( s, key ) { - key || (key = {}); - - if ( key.name === "up" ) return; - if ( key.name === "down" ) return; - - origWrite.apply( this, arguments ); - }; - - return rl; -}; - -// Regexes used for ansi escape code splitting -var metaKeyCodeReAnywhere = /(?:\x1b)([a-zA-Z0-9])/; -var functionKeyCodeReAnywhere = new RegExp('(?:\x1b+)(O|N|\\[|\\[\\[)(?:' + [ - '(\\d+)(?:;(\\d+))?([~^$])', - '(?:M([@ #!a`])(.)(.))', // mouse - '(?:1;)?(\\d+)?([a-zA-Z])' -].join('|') + ')'); - -/** - * Tries to remove all VT control characters. Use to estimate displayed - * string width. May be buggy due to not running a real state machine - */ -function stripVTControlCharacters (str) { - str = str.replace(new RegExp(functionKeyCodeReAnywhere.source, 'g'), ''); - return str.replace(new RegExp(metaKeyCodeReAnywhere.source, 'g'), ''); -} diff --git a/node_modules/readline2/package.json b/node_modules/readline2/package.json deleted file mode 100644 index cc73ae3..0000000 --- a/node_modules/readline2/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "readline2@^1.0.1", - "scope": null, - "escapedName": "readline2", - "name": "readline2", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/inquirer" - ] - ], - "_from": "readline2@>=1.0.1 <2.0.0", - "_id": "readline2@1.0.1", - "_inCache": true, - "_location": "/readline2", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "sboudrias", - "email": "admin@simonboudrias.com" - }, - "_npmVersion": "2.11.2", - "_phantomChildren": {}, - "_requested": { - "raw": "readline2@^1.0.1", - "scope": null, - "escapedName": "readline2", - "name": "readline2", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/inquirer" - ], - "_resolved": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz", - "_shasum": "41059608ffc154757b715d9989d199ffbf372e35", - "_shrinkwrap": null, - "_spec": "readline2@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/inquirer", - "author": { - "name": "Simon Boudrias", - "email": "admin@simonboudrias.com" - }, - "bugs": { - "url": "https://github.com/sboudrias/readline2/issues" - }, - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "mute-stream": "0.0.5" - }, - "description": "Readline Façade fixing bugs and issues found in releases 0.8 and 0.10", - "devDependencies": { - "chalk": "^1.1.0", - "mocha": "^2.1.0", - "sinon": "^1.7.3" - }, - "directories": {}, - "dist": { - "shasum": "41059608ffc154757b715d9989d199ffbf372e35", - "tarball": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz" - }, - "files": [ - "index.js" - ], - "gitHead": "32aa9851e2cbb0610364d5009165be6fb2fed4ef", - "homepage": "https://github.com/sboudrias/readline2#readme", - "keywords": [ - "cli", - "terminal", - "readline", - "tty", - "ansi" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sboudrias", - "email": "admin@simonboudrias.com" - } - ], - "name": "readline2", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sboudrias/readline2.git" - }, - "scripts": { - "test": "mocha -R spec" - }, - "version": "1.0.1" -} diff --git a/node_modules/rechoir/.npmignore b/node_modules/rechoir/.npmignore deleted file mode 100644 index 9daeafb..0000000 --- a/node_modules/rechoir/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test diff --git a/node_modules/rechoir/.travis.yml b/node_modules/rechoir/.travis.yml deleted file mode 100644 index 57e9fda..0000000 --- a/node_modules/rechoir/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -sudo: false -language: node_js -node_js: - - "0.10" - - "0.12" -env: - global: - - REMOVE_DEPS="" - matrix: - - "CUSTOM_DEPS=coffee-script@~1.3" - - "CUSTOM_DEPS=coffee-script@~1.5" - - "CUSTOM_DEPS=coffee-script@~1.7" - - "CUSTOM_DEPS=coffee-script@latest" - - "CUSTOM_DEPS=iced-coffee-script@1.6.3-j" - - "CUSTOM_DEPS=iced-coffee-script@latest" - - "CUSTOM_DEPS=LiveScript@1.3.1 REMOVE_DEPS=livescript" - - "CUSTOM_DEPS=typescript-require REMOVE_DEPS=typescript-register" -matrix: - fast_finish: true -before_install: - - "npm install -g npm" # needs the newest version of npm -before_script: - - "[ \"${REMOVE_DEPS}\" == \"\" ] || npm rm $REMOVE_DEPS" - - "npm install $CUSTOM_DEPS" # install a specific version of dependencies diff --git a/node_modules/rechoir/CHANGELOG b/node_modules/rechoir/CHANGELOG deleted file mode 100644 index e10327b..0000000 --- a/node_modules/rechoir/CHANGELOG +++ /dev/null @@ -1,38 +0,0 @@ -v0.6.2: - date: 2015-07-22 - changes: - - Return `undefined` when an unknown extension is provided to prepare and - the `nothrow` option is specified. -v0.6.1: - date: 2015-05-22 - changes: - - Add option for not throwing. -v0.6.0: - date: 2015-05-20 - changes: - - Include module name when prepare is successful. -v0.5.0: - date: 2015-05-20 - changes: - - Overhaul to support interpret 0.6.0. -v0.3.0: - date: 2015-01-10 - changes: - - Breaking: `load` method removed. - - Improved extension recognition. - - No longer fails upon dots in filenames. - - Support confuration objects. - - Support and test ES6. - - Support legacy module loading. -v0.2.2: - date: 2014-12-17 - changes: - - Expose interpret. -v0.2.0: - date: 2014-04-20 - changes: - - Simplify loading of coffee-script and iced-coffee-script. -v0.1.0: - date: 2014-04-20 - changes: - - Initial public release. diff --git a/node_modules/rechoir/LICENSE b/node_modules/rechoir/LICENSE deleted file mode 100644 index f467993..0000000 --- a/node_modules/rechoir/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2015 Tyler Kellen - -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/rechoir/README.md b/node_modules/rechoir/README.md deleted file mode 100644 index 32280c0..0000000 --- a/node_modules/rechoir/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# rechoir [![Build Status](https://secure.travis-ci.org/tkellen/js-rechoir.png)](http://travis-ci.org/tkellen/js-rechoir) -> Require any supported file as a node module. - -[![NPM](https://nodei.co/npm/rechoir.png)](https://nodei.co/npm/rechoir/) - -## What is it? -This module, in conjunction with [interpret]-like objects can register any file type the npm ecosystem has a module loader for. This library is a dependency of [Liftoff]. - -## API - -### prepare(config, filepath, requireFrom) -Look for a module loader associated with the provided file and attempt require it. If necessary, run any setup required to inject it into [require.extensions](http://nodejs.org/api/globals.html#globals_require_extensions). - -`config` An [interpret]-like configuration object. - -`filepath` A file whose type you'd like to register a module loader for. - -`requireFrom` An optional path to start searching for the module required to load the requested file. Defaults to the directory of `filepath`. - -If calling this method is successful (aka: it doesn't throw), you can now require files of the type you requested natively. - -An error with a `failures` property will be thrown if the module loader(s) configured for a given extension cannot be registered. - -If a loader is already registered, this will simply return `true`. - -**Note:** While rechoir will automatically load and register transpilers like `coffee-script`, you must provide a local installation. The transpilers are **not** bundled with this module. - -#### Usage -```js -const config = require('interpret').extensions; -const rechoir = require('rechoir'); -rechoir.prepare(config, './test/fixtures/test.coffee'); -rechoir.prepare(config, './test/fixtures/test.csv'); -rechoir.prepare(config, './test/fixtures/test.toml'); - -console.log(require('./test/fixtures/test.coffee')); -console.log(require('./test/fixtures/test.csv')); -console.log(require('./test/fixtures/test.toml')); -``` - -[interpret]: http://github.com/tkellen/js-interpret -[Liftoff]: http://github.com/tkellen/js-liftoff diff --git a/node_modules/rechoir/index.js b/node_modules/rechoir/index.js deleted file mode 100644 index 0c36d05..0000000 --- a/node_modules/rechoir/index.js +++ /dev/null @@ -1,59 +0,0 @@ -const path = require('path'); - -const extension = require('./lib/extension'); -const normalize = require('./lib/normalize'); -const register = require('./lib/register'); - -exports.prepare = function (extensions, filepath, cwd, nothrow) { - var option, attempt; - var attempts = []; - var err; - var onlyErrors = false; - var ext = extension(filepath); - if (Object.keys(require.extensions).indexOf(ext) !== -1) { - return true; - } - var config = normalize(extensions[ext]); - if (!config) { - if (nothrow) { - return; - } else { - throw new Error('No module loader found for "'+ext+'".'); - } - } - if (!cwd) { - cwd = path.dirname(path.resolve(filepath)); - } - if (!Array.isArray(config)) { - config = [config]; - } - for (var i in config) { - option = config[i]; - attempt = register(cwd, option.module, option.register); - error = (attempt instanceof Error) ? attempt : null; - if (error) { - attempt = null; - } - attempts.push({ - moduleName: option.module, - module: attempt, - error: error - }); - if (!error) { - onlyErrors = false; - break; - } else { - onlyErrors = true; - } - } - if (onlyErrors) { - err = new Error('Unable to use specified module loaders for "'+ext+'".'); - err.failures = attempts; - if (nothrow) { - return err; - } else { - throw err; - } - } - return attempts; -}; diff --git a/node_modules/rechoir/lib/extension.js b/node_modules/rechoir/lib/extension.js deleted file mode 100644 index 60f19da..0000000 --- a/node_modules/rechoir/lib/extension.js +++ /dev/null @@ -1,11 +0,0 @@ -const path = require('path'); - -const EXTRE = /^[.]?[^.]+([.].*)$/; - -module.exports = function (input) { - var extension = EXTRE.exec(path.basename(input)); - if (!extension) { - return; - } - return extension[1]; -}; diff --git a/node_modules/rechoir/lib/normalize.js b/node_modules/rechoir/lib/normalize.js deleted file mode 100644 index 0da5e58..0000000 --- a/node_modules/rechoir/lib/normalize.js +++ /dev/null @@ -1,15 +0,0 @@ -function normalizer (config) { - if (typeof config === 'string') { - return { - module: config - } - } - return config; -}; - -module.exports = function (config) { - if (Array.isArray(config)) { - return config.map(normalizer); - } - return normalizer(config); -}; diff --git a/node_modules/rechoir/lib/register.js b/node_modules/rechoir/lib/register.js deleted file mode 100644 index 20e8ca7..0000000 --- a/node_modules/rechoir/lib/register.js +++ /dev/null @@ -1,15 +0,0 @@ -const path = require('path'); -const resolve = require('resolve'); - -module.exports = function (cwd, moduleName, register) { - try { - var modulePath = resolve.sync(moduleName, {basedir: cwd}); - var result = require(modulePath); - if (typeof register === 'function') { - register(result); - } - } catch (e) { - result = e; - } - return result; -}; diff --git a/node_modules/rechoir/package.json b/node_modules/rechoir/package.json deleted file mode 100644 index 151a5de..0000000 --- a/node_modules/rechoir/package.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rechoir@^0.6.2", - "scope": null, - "escapedName": "rechoir", - "name": "rechoir", - "rawSpec": "^0.6.2", - "spec": ">=0.6.2 <0.7.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/liftoff" - ] - ], - "_from": "rechoir@>=0.6.2 <0.7.0", - "_id": "rechoir@0.6.2", - "_inCache": true, - "_location": "/rechoir", - "_nodeVersion": "0.12.4", - "_npmUser": { - "name": "tkellen", - "email": "tyler@sleekcode.net" - }, - "_npmVersion": "2.7.4", - "_phantomChildren": {}, - "_requested": { - "raw": "rechoir@^0.6.2", - "scope": null, - "escapedName": "rechoir", - "name": "rechoir", - "rawSpec": "^0.6.2", - "spec": ">=0.6.2 <0.7.0", - "type": "range" - }, - "_requiredBy": [ - "/liftoff" - ], - "_resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "_shasum": "85204b54dba82d5742e28c96756ef43af50e3384", - "_shrinkwrap": null, - "_spec": "rechoir@^0.6.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/liftoff", - "author": { - "name": "Tyler Kellen", - "url": "http://goingslowly.com/" - }, - "bugs": { - "url": "https://github.com/tkellen/node-rechoir/issues" - }, - "dependencies": { - "resolve": "^1.1.6" - }, - "description": "Require any supported file as a node module.", - "devDependencies": { - "babel": "^5.4.3", - "chai": "^2.3.0", - "coco": "^0.9.1", - "coffee-script": "^1.9.2", - "earlgrey": "0.0.9", - "iced-coffee-script": "^1.8.0-d", - "interpret": "^0.6.1", - "json5": "^0.4.0", - "livescript": "^1.4.0", - "mocha": "^2.2.5", - "node-jsx": "^0.13.3", - "require-csv": "0.0.1", - "require-ini": "0.0.1", - "require-uncached": "^1.0.2", - "require-xml": "0.0.1", - "require-yaml": "0.0.1", - "rimraf": "^2.3.4", - "semver": "^4.3.4", - "sinon": "^1.14.1", - "toml-require": "^1.0.1", - "typescript-register": "^1.1.0" - }, - "directories": {}, - "dist": { - "shasum": "85204b54dba82d5742e28c96756ef43af50e3384", - "tarball": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz" - }, - "engines": { - "node": ">= 0.10" - }, - "gitHead": "1aafd85aac487171be71891b916c9136c620ac0e", - "homepage": "https://github.com/tkellen/node-rechoir", - "keywords": [ - "require", - "cjsx", - "co", - "coco", - "coffee-script", - "coffee", - "coffee.md", - "csv", - "earlgrey", - "es", - "es6", - "iced", - "iced.md", - "iced-coffee-script", - "ini", - "js", - "json", - "json5", - "jsx", - "react", - "litcoffee", - "liticed", - "ls", - "livescript", - "toml", - "ts", - "typescript", - "xml", - "yaml", - "yml" - ], - "licenses": [ - { - "type": "MIT", - "url": "https://github.com/tkellen/node-rechoir/blob/master/LICENSE" - } - ], - "main": "index.js", - "maintainers": [ - { - "name": "tkellen", - "email": "tyler@sleekcode.net" - }, - { - "name": "phated", - "email": "blaine@iceddev.com" - } - ], - "name": "rechoir", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/tkellen/node-rechoir.git" - }, - "scripts": { - "test": "mocha -R spec test/index.js" - }, - "version": "0.6.2" -} diff --git a/node_modules/redent/index.js b/node_modules/redent/index.js deleted file mode 100644 index 2b92020..0000000 --- a/node_modules/redent/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; -var stripIndent = require('strip-indent'); -var indentString = require('indent-string'); - -module.exports = function (str, count, indent) { - return indentString(stripIndent(str), indent || ' ', count || 0); -}; diff --git a/node_modules/redent/license b/node_modules/redent/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/redent/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/redent/package.json b/node_modules/redent/package.json deleted file mode 100644 index a2e477c..0000000 --- a/node_modules/redent/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "redent@^1.0.0", - "scope": null, - "escapedName": "redent", - "name": "redent", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/meow" - ] - ], - "_from": "redent@>=1.0.0 <2.0.0", - "_id": "redent@1.0.0", - "_inCache": true, - "_location": "/redent", - "_nodeVersion": "4.1.1", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.4", - "_phantomChildren": {}, - "_requested": { - "raw": "redent@^1.0.0", - "scope": null, - "escapedName": "redent", - "name": "redent", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/meow" - ], - "_resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", - "_shasum": "cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde", - "_shrinkwrap": null, - "_spec": "redent@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/meow", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/redent/issues" - }, - "dependencies": { - "indent-string": "^2.1.0", - "strip-indent": "^1.0.1" - }, - "description": "Strip redundant indentation and indent the string", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde", - "tarball": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "97d9db1dbd5894fe1b14e01040da283b8d53409d", - "homepage": "https://github.com/sindresorhus/redent", - "keywords": [ - "string", - "str", - "strip", - "trim", - "indent", - "indentation", - "add", - "reindent", - "normalize", - "remove", - "whitespace", - "space" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "redent", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/redent.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.0" -} diff --git a/node_modules/redent/readme.md b/node_modules/redent/readme.md deleted file mode 100644 index 8e7a807..0000000 --- a/node_modules/redent/readme.md +++ /dev/null @@ -1,48 +0,0 @@ -# redent [![Build Status](https://travis-ci.org/sindresorhus/redent.svg?branch=master)](https://travis-ci.org/sindresorhus/redent) - -> [Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string) - - -## Install - -``` -$ npm install --save redent -``` - - -## Usage - -```js -const redent = require('redent'); - -redent('\n foo\n bar\n', 1); -//=> '\n foo\n bar\n' -``` - - -## API - -### redent(input, [count], [indent]) - -#### input - -Type: `string` - -#### count - -Type: `number` -Default: `0` - -How many times you want `indent` repeated. - -#### indent - -Type: `string` -Default: `' '` - -The string to use for the indent. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/redeyed/.npmignore b/node_modules/redeyed/.npmignore deleted file mode 100644 index 7dccd97..0000000 --- a/node_modules/redeyed/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -lib-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz - -pids -logs -results - -node_modules -npm-debug.log \ No newline at end of file diff --git a/node_modules/redeyed/.travis.yml b/node_modules/redeyed/.travis.yml deleted file mode 100644 index 39e163e..0000000 --- a/node_modules/redeyed/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false -language: node_js -node_js: - - "4" - - "6" -before_install: - - npm install -g npm@2 diff --git a/node_modules/redeyed/LICENSE b/node_modules/redeyed/LICENSE deleted file mode 100644 index 19c037f..0000000 --- a/node_modules/redeyed/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -Copyright 2012 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/redeyed/README.md b/node_modules/redeyed/README.md deleted file mode 100644 index dfcfa5e..0000000 --- a/node_modules/redeyed/README.md +++ /dev/null @@ -1,199 +0,0 @@ -# redeyed [![build status](https://secure.travis-ci.org/thlorenz/redeyed.png?branch=master)](http://travis-ci.org/thlorenz/redeyed) - -*Add color to your JavaScript!* - -![frog](http://allaboutfrogs.org/gallery/photos/redeyes/red1.gif) - -[Red Eyed Tree Frog](http://allaboutfrogs.org/info/species/redeye.html) *(Agalychnis callidryas)* - -## What? - -Takes JavaScript code, along with a config and returns the original code with tokens wrapped and/or replaced as configured. - -## Where? - -- server side using nodejs -- in the [browser](#browser-support) - -## What for? - -One usecase is adding metadata to your code that can then be used to apply syntax highlighting. - -## How? - -- copy the [config.js](https://github.com/thlorenz/redeyed/blob/master/config.js) and edit it in order to specify how - certain tokens are to be surrounded/replaced -- replace the `undefined` of each token you want to configure with one of the following - -### {String} config - -`'before:after'` - -wraps the token inside before/after - -### {Object} config - -`{ _before: 'before', _after: 'after' }` - -wraps token inside before/after - -#### Missing before and after resolution for {String} and {Object} config - -For the `{String}` and `{Object}` configurations, 'before' or 'after' may be omitted: - -- `{String}`: - - `'before:'` (omitting 'after') - - `':after'` (omitting 'before') -- `{Object}`: - - `{ _before: 'before' }` (omitting '_after') - - `{ _after: 'after' }` (omitting '_before') - -In these cases the missing half is resolved as follows: - -- from the `parent._default` (i.e., `Keyword._default`) if found -- otherwise from the `config._default` if found -- otherwise `''` (empty string) - -### {Function} config - -`function (tokenString, info) { return {String}|{Object}; }` - -#### Inputs - -- tokenString: the content of the token that is currently being processed -- info: an object with the following structure - -```js -{ - // {Int} - // the index of the token being processed inside tokens - tokenIndex - - // {Array} - // all tokens that are being processed including comments - // (i.e. the result of merging esprima tokens and comments) - , tokens - - // {Object} - // the abstract syntax tree of the parsed code - , ast - - // {String} - // the code that was parsed (same string as the one passed to redeyed(code ..) - , code -} -``` - -In most cases the `tokenString` is all you need. The extra info object is passed in case you need to gather more -information about the `token`'s surroundings in order to decide how to transform it. -See: [replace-log-example](https://github.com/thlorenz/redeyed/blob/master/examples/replace-log.js) - -#### Output - -You can return a {String} or an {Object} from a {Function} config. - -- when returning a {String}, the token value will be replaced with it -- when returning an {Object}, it should be of the following form: - -```js -{ - // {String} - // the string that should be substituted for the value of the current and all skipped tokens - replacement - - // {Object} (Token) - // the token after which processing should continue - // all tokens in between the current one and this one inclusive will be ignored - , skipPastToken -} -``` - -### Transforming JavaScript code - -***redeyed(code, config[, opts])*** - -Invoke redeyed with your **config**uration, a **code** snippet and maybe **opts** as in the below example: - -```javascript -var redeyed = require('redeyed') - , config = require('./path/to/config') - , code = 'var a = 3;' - , result; - -// redeyed will throw an error (caused by the esprima parser) if the code has invalid javascript -try { - result = redeyed(code, config); - console.log(result.code); -} catch(err) { - console.error(err); -} -``` - -***opts***: -```js -{ // {Boolean} - // if true `result.ast` property contains the abstract syntax tree of the code - // if false (default) `result.ast` is not assigned and therefore `undefined` - buildAst: true|false - // {Boolean} - // if true `result.code` is not assigned and therefore `undefined` - // if false (default) `result.code` property contains the result of `split.join` - nojoin: true|false - // {Object} - // overrides default parser `esprima-fb` and needs to be compatible with it - parser: require('esprima') -} -``` - -***return value***: - -```js -{ ast - , tokens - , comments - , splits - , code -} -``` - -- ast `{Array}`: [abstract syntax tree](http://en.wikipedia.org/wiki/Abstract_syntax_tree) as returned by [esprima - parse](http://en.wikipedia.org/wiki/Abstract_syntax_tree) -- tokens `{Array}`: [tokens](http://en.wikipedia.org/wiki/Token_(parser)) provided by esprima (excluding - comments) -- comments `{Array}`: block and line comments as provided by esprima -- splits `{Array}`: code pieces split up, some of which where transformed as configured -- code `{String}`: transformed code, same as `splits.join('')` unless this step has been skipped (see opts) - -## Browser Support - -### AMD - -Ensure to include [esprima](https://github.com/ariya/esprima) as one of your dependencies - -```js -define(['redeyed'], function (redeyed) { - [ .. ] -}); -``` - -### Attached to global window object - -The `redeyed {Function}` will be exposed globally as `window.redeyed` - big surprise! - -```html - - -``` - -## redeyed in the wild - -- [cardinal](https://github.com/thlorenz/cardinal): Syntax highlights JavaScript code with ANSI colors to be printed to - the terminal -- [peacock](http://thlorenz.github.com/peacock/): JavaScript syntax highlighter that generates html that is compatible - with pygments styles. - -## Examples - -- `npm explore redeyed; npm demo` will let you try the [browser example](https://github.com/thlorenz/redeyed/tree/master/examples/browser) -- `npm explore redeyed; npm demo-log` will let you try the [replace log example](https://github.com/thlorenz/redeyed/blob/master/examples/replace-log.js) - diff --git a/node_modules/redeyed/config-es5.js b/node_modules/redeyed/config-es5.js deleted file mode 100644 index e0a90f5..0000000 --- a/node_modules/redeyed/config-es5.js +++ /dev/null @@ -1,140 +0,0 @@ -/* - * This config only contains ES5 tokens while the default config.js contains - * ES6 tokens as well. - * - * Copy this file and use it as a starting point for your redeyed config. - * Just fill in the tokens you want to surround/replace. - * Keep in mind that more specific configurations override less specific ones. - */ - -module.exports = { - - 'Boolean': { - 'true' : undefined - , 'false' : undefined - , _default : undefined - } - - , 'Identifier': { - _default: undefined - } - - , 'Null': { - _default: undefined - } - - , 'Numeric': { - _default: undefined - } - - , 'String': { - _default: undefined - } - - , 'Keyword': { - 'break' : undefined - - , 'case' : undefined - , 'catch' : undefined - , 'continue' : undefined - - , 'debugger' : undefined - , 'default' : undefined - , 'delete' : undefined - , 'do' : undefined - - , 'else' : undefined - - , 'finally' : undefined - , 'for' : undefined - , 'function' : undefined - - , 'if' : undefined - , 'in' : undefined - , 'instanceof' : undefined - - , 'new' : undefined - , 'return' : undefined - , 'switch' : undefined - - , 'this' : undefined - , 'throw' : undefined - , 'try' : undefined - , 'typeof' : undefined - - , 'var' : undefined - , 'void' : undefined - - , 'while' : undefined - , 'with' : undefined - , _default : undefined - } - , 'Punctuator': { - ';': undefined - , '.': undefined - , ',': undefined - - , '{': undefined - , '}': undefined - , '(': undefined - , ')': undefined - , '[': undefined - , ']': undefined - - , '<': undefined - , '>': undefined - , '+': undefined - , '-': undefined - , '*': undefined - , '%': undefined - , '&': undefined - , '|': undefined - , '^': undefined - , '!': undefined - , '~': undefined - , '?': undefined - , ':': undefined - , '=': undefined - - , '<=': undefined - , '>=': undefined - , '==': undefined - , '!=': undefined - , '++': undefined - , '--': undefined - , '<<': undefined - , '>>': undefined - , '&&': undefined - , '||': undefined - , '+=': undefined - , '-=': undefined - , '*=': undefined - , '%=': undefined - , '&=': undefined - , '|=': undefined - , '^=': undefined - , '/=': undefined - - , '===': undefined - , '!==': undefined - , '>>>': undefined - , '<<=': undefined - , '>>=': undefined - - , '>>>=': undefined - - , _default: undefined - } - - // line comment - , Line: { - _default: undefined - } - - /* block comment */ - , Block: { - _default: undefined - } - - , _default: undefined -}; diff --git a/node_modules/redeyed/config.js b/node_modules/redeyed/config.js deleted file mode 100644 index ad65724..0000000 --- a/node_modules/redeyed/config.js +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copy this file and use it as a starting point for your redeyed config. - * Just fill in the tokens you want to surround/replace. - * Keep in mind that more specific configurations override less specific ones. - */ - -module.exports = { - - 'Boolean': { - 'true' : undefined - , 'false' : undefined - , _default : undefined - } - - , 'Identifier': { - _default: undefined - } - - , 'Null': { - _default: undefined - } - - , 'Numeric': { - _default: undefined - } - - , 'String': { - _default: undefined - } - - , 'Keyword': { - 'break' : undefined - - , 'case' : undefined - , 'catch' : undefined - , 'class' : undefined - , 'const' : undefined - , 'continue' : undefined - - , 'debugger' : undefined - , 'default' : undefined - , 'delete' : undefined - , 'do' : undefined - - , 'else' : undefined - , 'enum' : undefined - , 'export' : undefined - , 'extends' : undefined - - , 'finally' : undefined - , 'for' : undefined - , 'function' : undefined - - , 'if' : undefined - , 'implements' : undefined - , 'import' : undefined - , 'in' : undefined - , 'instanceof' : undefined - , 'interface' : undefined - , 'let' : undefined - , 'new' : undefined - - , 'package' : undefined - , 'private' : undefined - , 'protected' : undefined - , 'public' : undefined - - , 'return' : undefined - , 'static' : undefined - , 'super' : undefined - , 'switch' : undefined - - , 'this' : undefined - , 'throw' : undefined - , 'try' : undefined - , 'typeof' : undefined - - , 'var' : undefined - , 'void' : undefined - - , 'while' : undefined - , 'with' : undefined - , 'yield' : undefined - , _default : undefined - } - , 'Punctuator': { - ';': undefined - , '.': undefined - , ',': undefined - - , '{': undefined - , '}': undefined - , '(': undefined - , ')': undefined - , '[': undefined - , ']': undefined - - , '<': undefined - , '>': undefined - , '+': undefined - , '-': undefined - , '*': undefined - , '%': undefined - , '&': undefined - , '|': undefined - , '^': undefined - , '!': undefined - , '~': undefined - , '?': undefined - , ':': undefined - , '=': undefined - - , '<=': undefined - , '>=': undefined - , '==': undefined - , '!=': undefined - , '++': undefined - , '--': undefined - , '<<': undefined - , '>>': undefined - , '&&': undefined - , '||': undefined - , '+=': undefined - , '-=': undefined - , '*=': undefined - , '%=': undefined - , '&=': undefined - , '|=': undefined - , '^=': undefined - , '/=': undefined - , '=>': undefined - , '**': undefined - - , '===': undefined - , '!==': undefined - , '>>>': undefined - , '<<=': undefined - , '>>=': undefined - , '...': undefined - , '**=': undefined - - , '>>>=': undefined - - - , _default: undefined - } - - // line comment - , Line: { - _default: undefined - } - - /* block comment */ - , Block: { - _default: undefined - } - - , _default: undefined -}; diff --git a/node_modules/redeyed/examples/browser/index.css b/node_modules/redeyed/examples/browser/index.css deleted file mode 100644 index fc9206e..0000000 --- a/node_modules/redeyed/examples/browser/index.css +++ /dev/null @@ -1,31 +0,0 @@ -.code { - width: 500px; - height: 500px; - display: block; -} - -.config { - width: 500px; - height: 400px; - display: block; -} - -.go { - display: block; - float: right; - font-size: 18px; -} - -.result { - width: 500px; - height: 1000px; - display: block; -} - -.edit { - float: left; -} - -.results { - float: left; -} diff --git a/node_modules/redeyed/examples/browser/index.html b/node_modules/redeyed/examples/browser/index.html deleted file mode 100644 index 9c5568c..0000000 --- a/node_modules/redeyed/examples/browser/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - -
    - Change the config and/or the original code in order to affect the "redeyed" result -
    -
    -
    -

    Redeyed Config

    - - -
    -
    -

    Original Code

    - -
    -
    -
    -

    Result

    - -
    - - - - - - - - - diff --git a/node_modules/redeyed/examples/browser/index.js b/node_modules/redeyed/examples/browser/index.js deleted file mode 100644 index 82fd22f..0000000 --- a/node_modules/redeyed/examples/browser/index.js +++ /dev/null @@ -1,33 +0,0 @@ -var $code = $('.code') - , $config = $('.config') - , $result = $('.result') - ; - -function go () { - var config; - try { - config = JSON.parse($config.val()); - } catch (e) { - $result.val('In "Redeyed Config": ' + e.toString()); - return; - } - - try { - var code = $code.val() - , result = redeyed(code, config); - - $result.val(result.code); - } catch (e) { - $result.val('In "Original Code": ' + e.toString()); - } -} - -$code.val(window.redeyed.toString()); - -$config.val(JSON.stringify(window.sampleConfig, false, 2)); - -$('.go').click(go); - -go(); - - diff --git a/node_modules/redeyed/examples/browser/sample-config.js b/node_modules/redeyed/examples/browser/sample-config.js deleted file mode 100644 index 47456ef..0000000 --- a/node_modules/redeyed/examples/browser/sample-config.js +++ /dev/null @@ -1,131 +0,0 @@ -window.sampleConfig = { - - 'Boolean': { - 'true' : undefined - , 'false' : undefined - , _default : '?:?' - } - - , 'Identifier': { - _default: '-> : <-' - } - - , 'Null': { - _default: '**:**' - } - - , 'Numeric': { - _default: 'n:N' - } - - , 'String': { - _default: 'string -> :' - } - - , 'Keyword': { - 'break' : undefined - - , 'case' : undefined - , 'catch' : undefined - , 'continue' : undefined - - , 'debugger' : undefined - , 'default' : undefined - , 'delete' : undefined - , 'do' : undefined - - , 'else' : undefined - - , 'finally' : undefined - , 'for' : undefined - , 'function' : undefined - - , 'if' : undefined - , 'in' : undefined - , 'instanceof' : undefined - - , 'new' : undefined - , 'return' : undefined - , 'switch' : undefined - - , 'this' : undefined - , 'throw' : undefined - , 'try' : undefined - , 'typeof' : undefined - - , 'var' : undefined - , 'void' : undefined - - , 'while' : undefined - , 'with' : undefined - , _default : ': <- keyword' - } - , 'Punctuator': { - ';': undefined - , '.': undefined - , ',': undefined - - , '{': undefined - , '}': undefined - , '(': undefined - , ')': undefined - , '[': undefined - , ']': undefined - - , '<': undefined - , '>': undefined - , '+': undefined - , '-': undefined - , '*': undefined - , '%': undefined - , '&': undefined - , '|': undefined - , '^': undefined - , '!': undefined - , '~': undefined - , '?': undefined - , ':': undefined - , '=': undefined - - , '<=': undefined - , '>=': undefined - , '==': undefined - , '!=': undefined - , '++': undefined - , '--': undefined - , '<<': undefined - , '>>': undefined - , '&&': undefined - , '||': undefined - , '+=': undefined - , '-=': undefined - , '*=': undefined - , '%=': undefined - , '&=': undefined - , '|=': undefined - , '^=': undefined - , '/=': undefined - - , '===': undefined - , '!==': undefined - , '>>>': undefined - , '<<=': undefined - , '>>=': undefined - - , '>>>=': undefined - - , _default: undefined - } - - // line comment - , Line: { - _default: undefined - } - - /* block comment */ - , Block: { - _default: undefined - } - - , _default: undefined -}; diff --git a/node_modules/redeyed/examples/replace-log.js b/node_modules/redeyed/examples/replace-log.js deleted file mode 100644 index 4b12ccf..0000000 --- a/node_modules/redeyed/examples/replace-log.js +++ /dev/null @@ -1,61 +0,0 @@ -var path = require('path') - , fs = require('fs') - , redeyed = require('..') - , vm = require('vm') - ; - -var samplePath = path.join(__dirname, 'sources', 'log.js') - , origCode = fs.readFileSync(samplePath, 'utf-8') - , kinds = ['silly', 'info', 'warn', 'error' ] - ; - -function replaceConsole(s, info) { - var code = info.code - , idx = info.tokenIndex - , tokens = info.tokens - , next = tokens[idx + 1].value - , kind = tokens[idx + 2].value - , openParen = tokens[idx + 3].value - , firstArgTkn = tokens[idx + 4] - , argIdx = idx + 3 - , open - , tkn - ; - - if (kind === 'log') kind = 'silly'; - - // not a console.xxx(...) statement? -> just return original - if (next !== '.' || !~kinds.indexOf(kind) || openParen !== '(') return s; - - // skip past arguments to console.xxx all args from ( to ) - open = 1; - while (open) { - tkn = tokens[++argIdx]; - - // count open parens vs. closed ones to handle things like console.log(new Error('..')); - if (tkn.value === '(') open++; - if (tkn.value === ')') open--; - } - - // tkn now is the last closing paren - var argsIncludingClosingParen = code.slice(firstArgTkn.range[0], tkn.range[1]) - , result = 'log.' + kind + '("main-logger", ' + argsIncludingClosingParen; - - // tell redeyed to skip the entire console.xxx(..) statement since we are replacing it all - return { replacement: result, skipPastToken: tkn }; -} - -function transformAndRun () { - var config = { - Identifier: { console: replaceConsole } - } - , code = redeyed(origCode, config).code - , context = vm.createContext({ require: require }); - - console.log('Original code:\n', origCode); - console.log('\nlog calls replaced:\n', code); - console.log('\nLets run it:'); - vm.runInContext(code, context, 'transformed-log.vm'); -} - -transformAndRun(); diff --git a/node_modules/redeyed/examples/sources/log.js b/node_modules/redeyed/examples/sources/log.js deleted file mode 100644 index 7994d2f..0000000 --- a/node_modules/redeyed/examples/sources/log.js +++ /dev/null @@ -1,8 +0,0 @@ -// First two lines will be needed when we replaced all console.xxx statements with log.xxx -var log = require('npmlog'); -log.level = 'silly'; - -console.info('info ', 1); -console.log('log ', 2); -console.warn('warn ', 3); -console.error('error ', new Error('oh my!')); diff --git a/node_modules/redeyed/package.json b/node_modules/redeyed/package.json deleted file mode 100644 index 6a705c5..0000000 --- a/node_modules/redeyed/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "redeyed@~1.0.0", - "scope": null, - "escapedName": "redeyed", - "name": "redeyed", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/cardinal" - ] - ], - "_from": "redeyed@>=1.0.0 <1.1.0", - "_id": "redeyed@1.0.1", - "_inCache": true, - "_location": "/redeyed", - "_nodeVersion": "6.9.2-pre", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/redeyed-1.0.1.tgz_1477504514782_0.6673275073990226" - }, - "_npmUser": { - "name": "thlorenz", - "email": "thlorenz@gmx.de" - }, - "_npmVersion": "2.15.11", - "_phantomChildren": {}, - "_requested": { - "raw": "redeyed@~1.0.0", - "scope": null, - "escapedName": "redeyed", - "name": "redeyed", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/cardinal" - ], - "_resolved": "https://registry.npmjs.org/redeyed/-/redeyed-1.0.1.tgz", - "_shasum": "e96c193b40c0816b00aec842698e61185e55498a", - "_shrinkwrap": null, - "_spec": "redeyed@~1.0.0", - "_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/redeyed/issues" - }, - "dependencies": { - "esprima": "~3.0.0" - }, - "description": "Takes JavaScript code, along with a config and returns the original code with tokens wrapped as configured.", - "devDependencies": { - "cardinal": "~0.4.4", - "readdirp": "~0.3.3", - "tap": "~5.7.0" - }, - "directories": {}, - "dist": { - "shasum": "e96c193b40c0816b00aec842698e61185e55498a", - "tarball": "https://registry.npmjs.org/redeyed/-/redeyed-1.0.1.tgz" - }, - "gitHead": "8e0a38c0e512cb52da4d204d8e2f9c9dfd81bc0b", - "homepage": "https://github.com/thlorenz/redeyed#readme", - "keywords": [ - "ast", - "syntax", - "tree", - "source", - "wrap", - "metadata" - ], - "license": "MIT", - "main": "redeyed.js", - "maintainers": [ - { - "name": "thlorenz", - "email": "thlorenz@gmx.de" - } - ], - "name": "redeyed", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/thlorenz/redeyed.git" - }, - "scripts": { - "demo": "cd examples/browser; open index.html", - "demo-log": "node examples/replace-log", - "test": "tap test/*.js" - }, - "version": "1.0.1" -} diff --git a/node_modules/redeyed/redeyed.js b/node_modules/redeyed/redeyed.js deleted file mode 100644 index 6c6f773..0000000 --- a/node_modules/redeyed/redeyed.js +++ /dev/null @@ -1,324 +0,0 @@ -;(function () { - -'use strict'; -/*jshint laxbreak: true, browser:true */ -/*global define*/ - -var esprima - , exportFn - , toString = Object.prototype.toString - ; - -if (typeof module === 'object' && typeof module.exports === 'object' && typeof require === 'function') { - // server side - esprima = require('esprima'); - exportFn = function (redeyed) { module.exports = redeyed; }; - bootstrap(esprima, exportFn); -} else if (typeof define === 'function' && define.amd) { - // client side - // amd - define(['esprima'], function (esprima) { - return bootstrap(esprima); - }); -} else if (typeof window === 'object') { - // no amd -> attach to window if it exists - // Note that this requires 'esprima' to be defined on the window, so that script has to be loaded first - window.redeyed = bootstrap(window.esprima); -} - -function bootstrap(esprima, exportFn) { - - function isFunction (obj) { - return toString.call(obj) === '[object Function]'; - } - - function isString (obj) { - return toString.call(obj) === '[object String]'; - } - - function isNumber (obj) { - return toString.call(obj) === '[object Number]'; - } - - function isObject (obj) { - return toString.call(obj) === '[object Object]'; - } - - function surroundWith (before, after) { - return function (s) { return before + s + after; }; - } - - function isNonCircular(key) { - return key !== '_parent'; - } - - function objectizeString (value) { - var vals = value.split(':'); - - if (0 === vals.length || vals.length > 2) - throw new Error( - 'illegal string config: ' + value + - '\nShould be of format "before:after"' - ); - - if (vals.length === 1 || vals[1].length === 0) { - return vals.indexOf(':') < 0 ? { _before: vals[0] } : { _after: vals[0] }; - } else { - return { _before: vals[0], _after: vals[1] }; - } - } - - function objectize (node) { - - // Converts 'bef:aft' to { _before: bef, _after: aft } - // and resolves undefined before/after from parent or root - - function resolve (value, key) { - // resolve before/after from root or parent if it isn't present on the current node - if (!value._parent) return undefined; - - // Immediate parent - if (value._parent._default && value._parent._default[key]) return value._parent._default[key]; - - // Root - var root = value._parent._parent; - if (!root) return undefined; - - return root._default ? root._default[key] : undefined; - } - - function process (key) { - var value = node[key]; - - if (!value) return; - if (isFunction(value)) return; - - // normalize all strings to objects - if (isString(value)) { - node[key] = value = objectizeString(value); - } - - value._parent = node; - if (isObject(value)) { - if (!value._before && !value._after) return objectize (value); - - // resolve missing _before or _after from parent(s) - // in case we only have either one on this node - value._before = value._before || resolve(value, '_before'); - value._after = value._after || resolve(value, '_after'); - - return; - } - - throw new Error('nodes need to be either {String}, {Object} or {Function}.' + value + ' is neither.'); - } - - // Process _default ones first so children can resolve missing before/after from them - if (node._default) process('_default'); - - Object.keys(node) - .filter(function (key) { - return isNonCircular(key) - && node.hasOwnProperty(key) - && key !== '_before' - && key !== '_after' - && key !== '_default'; - }) - .forEach(process); - } - - function functionize (node) { - Object.keys(node) - .filter(function (key) { - return isNonCircular(key) && node.hasOwnProperty(key); - }) - .forEach(function (key) { - var value = node[key]; - - if (isFunction(value)) return; - - if (isObject(value)) { - - if (!value._before && !value._after) return functionize(value); - - // at this point before/after were "inherited" from the parent or root - // (see objectize) - var before = value._before || ''; - var after = value._after || ''; - - node[key] = surroundWith (before, after); - return node[key]; - } - }); - } - - function normalize (root) { - objectize(root); - functionize(root); - } - - function mergeTokensAndComments(tokens, comments) { - var all = {}; - - function addToAllByRangeStart(t) { all[ t.range[0] ] = t; } - - tokens.forEach(addToAllByRangeStart); - comments.forEach(addToAllByRangeStart); - - // keys are sorted automatically - return Object.keys(all) - .map(function (k) { return all[k]; }); - } - - function redeyed (code, config, opts) { - opts = opts || {}; - var parser = opts.parser || esprima; - var buildAst = !!opts.buildAst; - - var hashbang = '' - , ast - , tokens - , comments - , lastSplitEnd = 0 - , splits = [] - , transformedCode - , all - , info - ; - - // Replace hashbang line with empty whitespaces to preserve token locations - if (code[0] === '#' && code[1] === '!') { - hashbang = code.substr(0, code.indexOf('\n') + 1); - code = Array.apply(0, Array(hashbang.length)).join(' ') + '\n' + code.substr(hashbang.length); - } - - if (buildAst) { - ast = parser.parse(code, { tokens: true, comment: true, range: true, tolerant: true }); - tokens = ast.tokens; - comments = ast.comments; - } else { - tokens = []; - comments = []; - parser.tokenize(code, { range: true, comment: true }, function (token) { - if (token.type === 'LineComment') { - token.type = 'Line'; - comments.push(token) - } else if (token.type === 'BlockComment') { - token.type = 'Block'; - comments.push(token) - } else { - // Optimistically upgrade 'static' to a keyword - if (token.type === 'Identifier' && token.value === 'static') token.type = 'Keyword'; - tokens.push(token); - } - }); - } - - normalize(config); - - function tokenIndex(tokens, tkn, start) { - var current - , rangeStart = tkn.range[0]; - - for (current = start; current < tokens.length; current++) { - if (tokens[current].range[0] === rangeStart) return current; - } - - throw new Error('Token %s not found at or after index: %d', tkn, start); - } - - function process(surround) { - var result - , currentIndex - , nextIndex - , skip = 0 - , splitEnd - ; - - result = surround(code.slice(start, end), info); - if (isObject(result)) { - splits.push(result.replacement); - - currentIndex = info.tokenIndex; - nextIndex = tokenIndex(info.tokens, result.skipPastToken, currentIndex); - skip = nextIndex - currentIndex; - splitEnd = skip > 0 ? tokens[nextIndex - 1].range[1] : end; - } else { - splits.push(result); - splitEnd = end; - } - - return { skip: skip, splitEnd: splitEnd }; - } - - function addSplit (start, end, surround, info) { - var result - , nextIndex - , skip = 0 - ; - - if (start >= end) return; - if (surround) { - result = process(surround); - skip = result.skip; - lastSplitEnd = result.splitEnd; - } else { - splits.push(code.slice(start, end)); - lastSplitEnd = end; - } - - return skip; - } - - all = mergeTokensAndComments(tokens, comments); - for (var tokenIdx = 0; tokenIdx < all.length; tokenIdx++) { - var token = all[tokenIdx] - , surroundForType = config[token.type] - , surround - , start - , end; - - // At least the type (e.g., 'Keyword') needs to be specified for the token to be surrounded - if (surroundForType) { - - // root defaults are only taken into account while resolving before/after otherwise - // a root default would apply to everything, even if no type default was specified - surround = surroundForType - && surroundForType.hasOwnProperty(token.value) - && surroundForType[token.value] - && isFunction(surroundForType[token.value]) - ? surroundForType[token.value] - : surroundForType._default; - - start = token.range[0]; - end = token.range[1]; - - addSplit(lastSplitEnd, start); - info = { tokenIndex: tokenIdx, tokens: all, ast: ast, code: code }; - tokenIdx += addSplit(start, end, surround, info); - } - } - - if (lastSplitEnd < code.length) { - addSplit(lastSplitEnd, code.length); - } - - if (!opts.nojoin) { - transformedCode = splits.join(''); - if (hashbang.length > 0) { - transformedCode = hashbang + transformedCode.substr(hashbang.length); - } - } - - return { - ast : ast - , tokens : tokens - , comments : comments - , splits : splits - , code : transformedCode - }; - } - - return exportFn ? exportFn(redeyed) : redeyed; -} -})(); diff --git a/node_modules/redeyed/test/redeyed-before-after-config.js b/node_modules/redeyed/test/redeyed-before-after-config.js deleted file mode 100644 index e5c53c2..0000000 --- a/node_modules/redeyed/test/redeyed-before-after-config.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var result = redeyed(code, opts).code - this.equals(result, expected, inspect(code) + ' => ' + inspect(expected)) - return this; - } - - t.end() -}) -test('\nbefore/after config, keywords', function (t) { - - var opts001 = { Keyword: { _default: { _before: '*', _after: '&' } } }; - t.test('\n# ' + inspect(opts001), function (t) { - t.assertSurrounds('this', opts001, '*this&') - t.assertSurrounds('if (a == 1) return', opts001, '*if& (a == 1) *return&') - t.assertSurrounds('var n = new Test();', opts001, '*var& n = *new& Test();') - t.end() - }) - - var opts002 = { - Keyword: { - 'function': { _before: '^' } - , 'return': { _before: '(', _after: ')' } - , _default: { _before: '*' , _after: '&' } - } - }; - - t.test('\n# ' + inspect(opts002), function (t) { - t.assertSurrounds( - [ 'function foo (bar) {' - , ' var a = 3;' - , ' return bar + a;' - , '}' - ].join('\n') - , opts002 - , [ '^function& foo (bar) {' - , ' *var& a = 3;' - , ' (return) bar + a;' - , '}' - ].join('\n')) - t.end() - }) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-browser.js b/node_modules/redeyed/test/redeyed-browser.js deleted file mode 100644 index ddb25ce..0000000 --- a/node_modules/redeyed/test/redeyed-browser.js +++ /dev/null @@ -1,69 +0,0 @@ -'use strict' -/*jshint asi: true, browser: true*/ -/*global define window */ - -var test = require('tap').test - , util = require('util') - , redeyedExport = require('..') - , redeyedkey = require.resolve('..') - , esprima = require('esprima') - -function setup() { - // remove redeyed from require cache to force re-require for each test - delete require.cache[redeyedkey]; - - // remove globals - delete global.window; - delete global.define; -} - -// TODO: need to run in vm in order to properly simulate require and module not being present -return; -test('define and window exist', function (t) { - var defineCb - , deps - - setup() - - // declare browser globals - global.window = { } - - global.define = function (deps_, cb) { - deps_ = deps - defineCb = cb - } - - define.amd = true - - var redeyed = require('..') - , definedredeyed = defineCb(esprima) - - t.equal(window.redeyed, undefined, 'redeyed is not attached to window') - t.notEqual(redeyed.toString(), redeyedExport.toString(), 'redeyed is not exported') - t.equal(definedredeyed.toString(), redeyedExport.toString(), 'redeyed is defined') - - t.end() -}) - -test('window exists, but define doesn\'t', function (t) { - setup() - - // declare browser globals - global.window = { esprima: esprima } - - var redeyed = require('..') - - t.equal(window.redeyed.toString(), redeyedExport.toString(), 'redeyed is attached to window') - t.notEqual(redeyed.toString(), redeyedExport.toString(), 'redeyed is not exported') - t.end() -}) - -test('neither window nor define exist', function (t) { - setup() - - var redeyed = require('..') - - t.equal(redeyed.toString(), redeyedExport.toString(), 'redeyed is exported') - t.end() -}) - diff --git a/node_modules/redeyed/test/redeyed-comments.js b/node_modules/redeyed/test/redeyed-comments.js deleted file mode 100644 index b9162ce..0000000 --- a/node_modules/redeyed/test/redeyed-comments.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var result = redeyed(code, opts) - this.equals(result.code, expected, inspect(code) + ' => ' + inspect(expected)) - return this; - } - - t.end() -}) - -test('\nstring config, Line comments', function (t) { - var opts = { Line: { _default: '*:&' } }; - t.test('\n# ' + inspect(opts), function (t) { - - t.assertSurrounds( - '// a comment' - , opts - , '*// a comment&' - ) - t.assertSurrounds( - '// comment then new line\nif (a == 1) return' - , opts - , '*// comment then new line&\nif (a == 1) return' - ) - t.assertSurrounds( - 'var n = new Test();// some comment after\n//more comment\nvar s = 3;' - , opts - , 'var n = new Test();*// some comment after&\n*//more comment&\nvar s = 3;' - ) - t.end() - }) - - t.end() -}) - -test('\nstring config, Block comments', function (t) { - var opts = { Block: { _default: '_:-' } }; - t.test('\n# ' + inspect(opts), function (t) { - - t.assertSurrounds( - '/* a comment */' - , opts - , '_/* a comment */-' - ) - t.assertSurrounds( - '/* comment then new line*/\nif (a == 1) /* inline */ return' - , opts - , '_/* comment then new line*/-\nif (a == 1) _/* inline */- return' - ) - t.assertSurrounds( - 'var n = new Test();/* some comment after*/\n/*more comment*/\nvar s = 3;' - , opts - , 'var n = new Test();_/* some comment after*/-\n_/*more comment*/-\nvar s = 3;' - ) - t.assertSurrounds( - 'var a = 4;\n/* Multi line comment\n * Next line\n * and another\n*/ var morecode = "here";' - , opts - , 'var a = 4;\n_/* Multi line comment\n * Next line\n * and another\n*/- var morecode = "here";' - ) - t.end() - }) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-config-with-undefineds.js b/node_modules/redeyed/test/redeyed-config-with-undefineds.js deleted file mode 100644 index 5ddc40d..0000000 --- a/node_modules/redeyed/test/redeyed-config-with-undefineds.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var optsi = inspect(opts); - var result = redeyed(code, opts).code - - this.equals( result - , expected - , util.format('%s: %s => %s', optsi, inspect(code), inspect(expected)) - ) - return this; - } - - t.end() -}) - -test('\n undefineds only', function (t) { - t.assertSurrounds('1 + 2', { Numeric: { _default: undefined } }, '1 + 2') - t.assertSurrounds('1 + 2', { Numeric: { _default: undefined }, _default: undefined }, '1 + 2') - - t.assertSurrounds( - 'return true' - , { 'Boolean': { 'true': undefined, 'false': undefined, _default: undefined } , _default: undefined } - , 'return true' - ) - - t.end() -}) - -test('\n mixed', function (t) { - t.assertSurrounds( - 'return true || false' - , { 'Boolean': { 'true': '&:', 'false': undefined, _default: undefined } , _default: undefined } - , 'return &true || false' - ) - - t.assertSurrounds( - 'return true || false' - , { 'Boolean': { 'true': '&:', 'false': undefined, _default: ':?' } , _default: undefined } - , 'return &true? || false?' - ) - - t.assertSurrounds( - 'return true || false' - , { 'Boolean': { 'true': '&:', 'false': undefined, _default: undefined } , _default: ':?' } - , 'return &true? || false' - ) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-function-config-extra-params.js b/node_modules/redeyed/test/redeyed-function-config-extra-params.js deleted file mode 100644 index e223cda..0000000 --- a/node_modules/redeyed/test/redeyed-function-config-extra-params.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('function - config passing idx and tokens', function (t) { - - var args = [] - , opts001 = { - Boolean: { - _default: identity - } - , Keyword: { - _default: identity - } - , Identifier: { - _default: identity - } - , Punctuator: { - _default: identity - } - } - , code = 'var fn = function () { return true; }' - - function identity (s, info) { - args.push( { value: s, idx: info.tokenIndex, tokens: info.tokens, code: info.code }) - // returning unchanged string will keep the splits be equal to the original tokens - return s - } - - function tokenValue (t) { return t.value; } - - t.test(inspect(opts001) + ' -- ' + code, function (t) { - - var result = redeyed(code, opts001, { splits: true }) - , tokens = result.tokens - - t.equals(args.length, tokens.length, 'called with all tokens') - - for (var i = 0; i < tokens.length; i++) { - var token = tokens[i] - , arg = args[i] - - t.equals(arg.value, token.value, 'passes correct value: ' + inspect([ arg.value, token.value ])) - t.equals(arg.idx, i, 'passes correct index') - t.equals(arg.code, code, 'passes code') - t.deepEquals(arg.tokens, tokens, 'passes all tokens') - } - t.end() - }) - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-function-config-skipping-tokens.js b/node_modules/redeyed/test/redeyed-function-config-skipping-tokens.js deleted file mode 100644 index ff14273..0000000 --- a/node_modules/redeyed/test/redeyed-function-config-skipping-tokens.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - - -test('given i skip 2 more tokens after each semicolon', function (t) { - var calls = 0 - , opts = { - Punctuator: { - ';': function identity (s, info) { - // tell it to skip past second to last token that is 2 ahead of the current one - calls++ - var skipToken = info.tokens[info.tokenIndex + 2] - return skipToken ? { replacement: s, skipPastToken: skipToken } : s; - } - } - } - ; - - [ { code: ';;;' , expectedCalls: 1 } - , { code: ';;;;' , expectedCalls: 2 } - , { code: '; ; ; ;' , expectedCalls: 2 } - , { code: ';;; ;;; ;;; ;' , expectedCalls: 4 } - , { code: ';;; ;;; ;;; ;;; ;' , expectedCalls: 5 } - , { code: ';;; ;;; ;;; ;;; ;;;' , expectedCalls: 5 } - , { code: ';;; ;;; ;;; ;;; ;;; ;' , expectedCalls: 6 } - ].forEach(function (x) { - calls = 0 - redeyed(x.code, opts); - t.equals(calls, x.expectedCalls, 'calls ' + x.expectedCalls + ' times for ' + x.code) - }); - t.end() -}) - -test('replace log', function (t) { - var kinds = [ 'info', 'warn', 'error' ] - , opts = { - Identifier: { - console: function replaceLog(s, info) { - var code = info.code - , idx = info.tokenIndex - , tokens = info.tokens - , kind = tokens[idx + 2].value - , openParen = tokens[idx + 3].value - , firstArgTkn = tokens[idx + 4] - , argIdx = idx + 3 - , open - , tkn - ; - - open = 1; - while (open) { - tkn = tokens[++argIdx]; - - if (tkn.value === '(') open++; - if (tkn.value === ')') open--; - } - - var argsIncludingClosingParen = code.slice(firstArgTkn.range[0], tkn.range[1]) - , result = 'log.' + kind + '("main-logger", ' + argsIncludingClosingParen; - - return { replacement: result, skipPastToken: tkn }; - } - } - } - - , origCode = [ - 'console.info("info ", 1);' - , 'console.warn("warn ", 3);' - , 'console.error("error ", new Error("oh my!"));' - ].join('\n') - - , expectedCode = [ - 'log.info("main-logger", "info ", 1));' - , 'log.warn("main-logger", "warn ", 3));' - , 'log.error("main-logger", "error ", new Error("oh my!")));' - ].join('\n') - , code = redeyed(origCode, opts).code - - t.equals(code, expectedCode, 'transforms all log statements') - t.end() -}); diff --git a/node_modules/redeyed/test/redeyed-function-config.js b/node_modules/redeyed/test/redeyed-function-config.js deleted file mode 100644 index 042c482..0000000 --- a/node_modules/redeyed/test/redeyed-function-config.js +++ /dev/null @@ -1,148 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var result = redeyed(code, opts).code - this.equals(result, expected, inspect(code) + ' => ' + inspect(expected)) - return this; - } - - t.end() -}) - -test('\nfunction config, keywords', function (t) { - - var opts001 = { Keyword: { _default: function (s) { return '*' + s + '&'; } } }; - t.test('\n# ' + inspect(opts001), function (t) { - t.assertSurrounds('this', opts001, '*this&') - - t.assertSurrounds('this ', opts001, '*this& ') - t.assertSurrounds(' this', opts001, ' *this&') - t.assertSurrounds(' this ', opts001, ' *this& ') - t.assertSurrounds('if (a == 1) return', opts001, '*if& (a == 1) *return&') - t.assertSurrounds('var n = new Test();', opts001, '*var& n = *new& Test();') - t.assertSurrounds( - [ 'function foo (bar) {' - , ' var a = 3;' - , ' return bar + a;' - , '}' - ].join('\n') - , opts001 - , [ '*function& foo (bar) {' - , ' *var& a = 3;' - , ' *return& bar + a;' - , '}' - ].join('\n')) - t.end() - }) - - var opts002 = { - Keyword: { - 'function': function (s) { return '^' + s + '&' } - , 'return': function (s) { return '(' + s + ')' } - , _default: function (s) { return '*' + s + '&' } - } - }; - - t.test('\n# ' + inspect(opts002), function (t) { - t.assertSurrounds( - [ 'function foo (bar) {' - , ' var a = 3;' - , ' return bar + a;' - , '}' - ].join('\n') - , opts002 - , [ '^function& foo (bar) {' - , ' *var& a = 3;' - , ' (return) bar + a;' - , '}' - ].join('\n')) - t.end() - }) - - t.end() -}) - -test('#\n functin config - resolving', function (t) { - var opts001 = { - Keyword: { - 'var': function (s) { return '^' + s + '&' } - } - , _default: function (s) { return '*' + s + '&' } - }; - t.test('\n# specific but no type default and root default - root default not applied' + inspect(opts001), function (t) { - t.assertSurrounds('var n = new Test();', opts001, '^var& n = new Test();').end(); - }) - - var opts002 = { - Keyword: { - 'var': function (s) { return '^' + s + '&' } - , _default: function (s) { return '*' + s + '&' } - } - , _default: function (s) { return '(' + s + ')' } - }; - t.test('\n# no type default but root default' + inspect(opts002), function (t) { - t.assertSurrounds('var n = new Test();', opts002, '^var& n = *new& Test();').end(); - }) - - t.end() -}) - -test('#\n function config - replacing', function (t) { - var opts001 = { - Keyword: { - 'var': function () { return 'const' } - } - }; - t.test('\n# type default and root default (type wins)' + inspect(opts001), function (t) { - t.assertSurrounds('var n = new Test();', opts001, 'const n = new Test();').end(); - }) - - var opts002 = { - Keyword: { - _default: function () { return 'const' } - } - }; - t.test('\n# type default' + inspect(opts002), function (t) { - t.assertSurrounds('var n = new Test();', opts002, 'const n = const Test();').end(); - }) - - var opts003 = { - Keyword: { - 'new': function () { return 'NEW'; } - , _default: function () { return 'const' } - } - }; - t.test('\n# specific and type default' + inspect(opts003), function (t) { - t.assertSurrounds('var n = new Test();', opts003, 'const n = NEW Test();').end(); - }) - - var opts004 = { - Keyword: { - _default: function (s) { return s.toUpperCase() } - } - , _default: function (s) { return 'not applied'; } - }; - t.test('\n# type default and root default (type wins)' + inspect(opts004), function (t) { - t.assertSurrounds('var n = new Test();', opts004, 'VAR n = NEW Test();').end(); - }) - - var opts005 = { - Keyword: { } - , _default: function (s) { return s.toUpperCase() } - }; - t.test('\n# no type default only root default - not applied' + inspect(opts005), function (t) { - t.assertSurrounds('var n = new Test();', opts005, 'var n = new Test();').end(); - }) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-incomplete.js b/node_modules/redeyed/test/redeyed-incomplete.js deleted file mode 100644 index 4ae1278..0000000 --- a/node_modules/redeyed/test/redeyed-incomplete.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var optsi = inspect(opts); - var result = redeyed(code, opts).code - - this.equals( result - , expected - , util.format('%s: %s => %s', optsi, inspect(code), inspect(expected)) - ) - return this; - } - - t.end() -}) - -test('incomplete statement', function (t) { - t.test('\n# Keyword', function (t) { - var keyconfig = { 'Keyword': { _default: '$:%' } }; - t.assertSurrounds('if(foo) { x', keyconfig, '$if%(foo) { x') - t.assertSurrounds('class Foo { constructor(name)', keyconfig, '$class% Foo { constructor(name)') - t.assertSurrounds('const x = ', keyconfig, '$const% x = ') - t.assertSurrounds('function g() { yield', keyconfig, '$function% g() { $yield%') - t.end() - }) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-keywords.js b/node_modules/redeyed/test/redeyed-keywords.js deleted file mode 100644 index e66d3ba..0000000 --- a/node_modules/redeyed/test/redeyed-keywords.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var optsi = inspect(opts); - var result = redeyed(code, opts).code - - this.equals( result - , expected - , util.format('%s: %s => %s', optsi, inspect(code), inspect(expected)) - ) - return this; - } - - t.end() -}) - -test('types', function (t) { - t.test('\n# Keyword', function (t) { - var keyconfig = { 'Keyword': { _default: '$:%' } }; - t.assertSurrounds('import foo from \'foo\';', keyconfig, '$import% foo from \'foo\';') - t.assertSurrounds('export default foo;', keyconfig, '$export% $default% foo;') - t.assertSurrounds('if(foo) { let bar = 1;}', keyconfig, '$if%(foo) { $let% bar = 1;}') - t.assertSurrounds('const x = "foo";', keyconfig, '$const% x = "foo";') - t.assertSurrounds('"use strict";(function* () { yield *v })', keyconfig, '"use strict";($function%* () { $yield% *v })') - t.assertSurrounds('"use strict"; (class A { static constructor() { super() }})', keyconfig - ,'"use strict"; ($class% A { $static% constructor() { $super%() }})') - t.assertSurrounds('class Foo { constructor(name){this.name = name;}}', keyconfig - , '$class% Foo { constructor(name){$this%.name = name;}}') - t.assertSurrounds('class Foo extends Bar { constructor(name,value){super(value);this.name = name;}}', keyconfig - , '$class% Foo $extends% Bar { constructor(name,value){$super%(value);$this%.name = name;}}') - t.end() - }) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-mixed.js b/node_modules/redeyed/test/redeyed-mixed.js deleted file mode 100644 index 8aef4aa..0000000 --- a/node_modules/redeyed/test/redeyed-mixed.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var result = redeyed(code, opts).code - this.equals(result, expected, inspect(code) + ' => ' + inspect(expected)) - return this; - } - - t.end() -}) - -test('\nmixed config, keywords', function (t) { - var opts001 = { - Keyword: { - 'this': function (s) { return '_' + s; } - , 'if': { _before: '^' } - , _default: '*:&' - } - }; - t.test('\n# ' + inspect(opts001), function (t) { - t.assertSurrounds('if (this.hello) return "world";', opts001, '^if& (_this.hello) *return& "world";').end() - }) - - var opts002 = { - Keyword: { - 'this': function (s) { return '_' + s; } - , 'if': { _before: '^' } - , 'return': ':)' - , _default: ':&' - } - , _default: '*:&' - }; - t.test('\n# ' + inspect(opts002), function (t) { - t.assertSurrounds('if (this.hello) return "world";', opts002, '^if& (_this.hello) *return) "world";').end() - }) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-result.js b/node_modules/redeyed/test/redeyed-result.js deleted file mode 100644 index d1c8e70..0000000 --- a/node_modules/redeyed/test/redeyed-result.js +++ /dev/null @@ -1,65 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - , esprima = require('esprima') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('redeyed result does not have esprima ast by default', function (t) { - var code = '// a comment\nvar a = 3;' - , conf = { Keyword: { _default: '_:-' } } - - , ast = esprima.parse(code, { tokens: true, comment: true, range: true, tolerant: true }) - , tokens = ast.tokens - , comments = ast.comments - - , result = redeyed(code, conf) - - t.type(result.ast, 'undefined', 'ast') - t.deepEquals(result.tokens, tokens, 'tokens') - t.deepEquals(result.comments, comments, 'comments') - t.notEquals(result.code, undefined, 'code') - t.end() -}); - -test('redeyed result has esprima ast, tokens, comments and splits and transformed code', function (t) { - var code = '// a comment\nvar a = 3;' - , conf = { Keyword: { _default: '_:-' } } - - , ast = esprima.parse(code, { tokens: true, comment: true, range: true, tolerant: true }) - , tokens = ast.tokens - , comments = ast.comments - - , result = redeyed(code, conf, { buildAst: true } ) - - console.log(ast) - t.deepEquals(result.ast, ast, 'ast') - t.deepEquals(result.tokens, tokens, 'tokens') - t.deepEquals(result.comments, comments, 'comments') - t.notEquals(result.code, undefined, 'code') - - t.end() -}); - -test('redeyed result - { nojoin } has esprima ast, tokens, comments and splits but no transformed code', function (t) { - var code = '// a comment\nvar a = 3;' - , conf = { Keyword: { _default: '_:-' } } - - , ast = esprima.parse(code, { tokens: true, comment: true, range: true, tolerant: true }) - , tokens = ast.tokens - , comments = ast.comments - - , result = redeyed(code, conf, { nojoin: true, buildAst: true }) - - t.deepEquals(result.ast, ast, 'ast') - t.deepEquals(result.tokens, tokens, 'tokens') - t.deepEquals(result.comments, comments, 'comments') - t.equals(result.code, undefined, 'code') - - t.end() -}); diff --git a/node_modules/redeyed/test/redeyed-script-level-return.js b/node_modules/redeyed/test/redeyed-script-level-return.js deleted file mode 100644 index bbdbbb7..0000000 --- a/node_modules/redeyed/test/redeyed-script-level-return.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('properly handles script level return -- no blow up', function (t) { - var code = [ - , 'return 1;' - ].join('\n') - , opts = { Keyword: { 'return': '%:^' } } - , expected = '\n%return^ 1;' - , res = redeyed(code, opts).code - - t.equals(res, expected, inspect(code) + ' opts: ' + inspect(opts) + ' => ' + inspect(expected)) - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-shebang.js b/node_modules/redeyed/test/redeyed-shebang.js deleted file mode 100644 index 4bf6c8d..0000000 --- a/node_modules/redeyed/test/redeyed-shebang.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('preserves shebang', function (t) { - var code = [ - '#!/usr/bin/env node' - , 'var util = require("util");' - ].join('\n') - , opts = { Keyword: { 'var': '%:^' } } - , expected = [ - '#!/usr/bin/env node' - , '%var^ util = require("util");' - ].join('\n') - , res = redeyed(code, opts).code - - t.equals(res, expected, inspect(code) + ' opts: ' + inspect(opts) + ' => ' + inspect(expected)) - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-smoke.js b/node_modules/redeyed/test/redeyed-smoke.js deleted file mode 100644 index 755b460..0000000 --- a/node_modules/redeyed/test/redeyed-smoke.js +++ /dev/null @@ -1,78 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -// applying redeyed to a bunch of files of contained libraries as a smoke test -var test = require('tap').test - , path = require('path') - , fs = require('fs') - , readdirp = require('readdirp') - , redeyed = require('..') - , esprima = require('esprima') - , node_modules = path.join(__dirname, '..', 'node_modules') - , tapdir = path.join(node_modules, 'tap') - , esprimadir = path.join(node_modules, 'esprima') - -test('tap', function (t) { - var invalidTapFiles = [ - , 'slide/lib/async-map-ordered.js' - ] - - function shouldProcess (path) { - var include = true - - invalidTapFiles.every(function (entry) { - return include = (path.indexOf(entry) < 0) - }); - - return include - } - - function containsVarKeyword(code) { - code = code.replace(/^#!([^\r\n]+)/, function(match, captured) { return "//" + captured; }); - return esprima.tokenize(code).some(function (t) { - return t.type === 'Keyword' && t.value === 'var' - }) - } - - readdirp({ root: tapdir, fileFilter: '*.js' }) - .on('data', function (entry) { - var code = fs.readFileSync(entry.fullPath, 'utf-8') - - if (!shouldProcess(entry.fullPath) || !containsVarKeyword(code)) return - - var resultAst = redeyed(code, { Keyword: { 'var': '+:-' } }, { buildAst: true }).code - , resultTokenize = redeyed(code, { Keyword: { 'var': '+:-' } }, { buildAst: false }).code - - t.assert(~resultAst.indexOf('+var-') || !(~resultAst.indexOf('var ')), 'redeyed ' + entry.path) - t.assert(~resultTokenize.indexOf('+var-') || !(~resultTokenize.indexOf('var ')), 'redeyed ' + entry.path) - }) - .on('end', t.end.bind(t)) -}) - -test('esprima', function (t) { - - readdirp({ root: esprimadir, fileFilter: '*.js' }) - .on('data', function (entry) { - - var code = fs.readFileSync(entry.fullPath, 'utf-8') - , resultAst = redeyed(code, { Keyword: { 'var': '+:-' } }, { buildAst: true }).code - , resultTokenize = redeyed(code, { Keyword: { 'var': '+:-' } }, { buildAst: false }).code - - t.assert(~resultAst.indexOf('+var-') || !(~resultAst.indexOf('var ')), 'redeyed ' + entry.path) - t.assert(~resultTokenize.indexOf('+var-') || !(~resultTokenize.indexOf('var ')), 'redeyed ' + entry.path) - }) - .on('end', t.end.bind(t)) -}) - -test('redeyed', function (t) { - - readdirp({ root: path.join(__dirname, '..'), fileFilter: '*.js', directoryFilter: ['!.git', '!node_modules' ] }) - .on('data', function (entry) { - - var code = fs.readFileSync(entry.fullPath, 'utf-8') - , result = redeyed(code, { Keyword: { 'var': '+:-' } }).code - - t.assert(~result.indexOf('+var-') || !(~result.indexOf('var ')), 'redeyed ' + entry.path) - }) - .on('end', t.end.bind(t)) -}) diff --git a/node_modules/redeyed/test/redeyed-string-config.js b/node_modules/redeyed/test/redeyed-string-config.js deleted file mode 100644 index 44bdbf7..0000000 --- a/node_modules/redeyed/test/redeyed-string-config.js +++ /dev/null @@ -1,127 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var result = redeyed(code, opts).code - this.equals(result, expected, inspect(code) + ' => ' + inspect(expected)) - return this; - } - - t.end() -}) - -test('\nstring config, keywords', function (t) { - - var opts001 = { Keyword: { _default: '*:&' } }; - t.test('\n# ' + inspect(opts001), function (t) { - t.assertSurrounds('this', opts001, '*this&') - t.assertSurrounds('if (a == 1) return', opts001, '*if& (a == 1) *return&') - t.assertSurrounds('var n = new Test();', opts001, '*var& n = *new& Test();') - t.end() - }) - - var opts002 = { - Keyword: { - 'function': '^:' - , 'return': '(:)' - , _default: '*:&' - } - }; - - t.test('\n# ' + inspect(opts002), function (t) { - t.assertSurrounds( - [ 'function foo (bar) {' - , ' var a = 3;' - , ' return bar + a;' - , '}' - ].join('\n') - , opts002 - , [ '^function& foo (bar) {' - , ' *var& a = 3;' - , ' (return) bar + a;' - , '}' - ].join('\n')) - t.end() - }) - - t.end() -}) - -test('\nstring configs resolve from type and root', function (t) { - var code = 'var a = new Test();' - - function run(t, conf, expected, code_) { - t.test('\n# ' + inspect(conf), function (t) { - t.assertSurrounds(code_ || code, conf, expected); - t.end() - }) - } - - // at least the token kind has to be configured in order for the root_default to be applied - // otherwise a root._default would affect all tokens, even the ones we want to leave unchanged - run(t, { _default: '*:' }, 'var a = new Test();') - - t.test('\n\n# only before or after specified, but no root._default', function (t) { - run(t, { Keyword: { _default: '*:' } }, '*var a = *new Test();') - run(t, { Keyword: { _default: ':-' } }, 'var- a = new- Test();') - t.end() - }) - - t.test('\n\n# resolve missing from root._default', function (t) { - run(t, { Keyword: { _default: '*:' }, _default: '(:-' }, '*var- a = *new- Test();') - run(t, { Keyword: { _default: ':-' }, _default: '*:)' }, '*var- a = *new- Test();') - t.end() - }) - - t.test('\n\n# no resolve if all specified', function (t) { - run(t, { Keyword: { _default: '+:-' }, _default: '*:)' }, '+var- a = +new- Test();') - run(t, { Keyword: { _default: ':-' }, _default: ':)' }, 'var- a = new- Test();') - t.end() - }) - - t.test('\n\n# resolve specific token no defaults', function (t) { - run(t, { Keyword: { 'var': '*:' } }, '*var a = new Test();') - run(t, { Keyword: { 'var': ':-' } }, 'var- a = new Test();') - t.end() - }) - - t.test('\n\n# resolve specific token with type defaults', function (t) { - run(t, { Keyword: { 'var': '*:', _default: ':-' } }, '*var- a = new- Test();') - run(t, { Keyword: { 'var': '*:', _default: '(:-' } }, '*var- a = (new- Test();') - run(t, { Keyword: { 'var': ':-', _default: '*:' } }, '*var- a = *new Test();') - run(t, { Keyword: { 'var': ':-', _default: '*:)' } }, '*var- a = *new) Test();') - run(t, { Keyword: { 'var': ':-', 'new': ':&', _default: '*:' } }, '*var- a = *new& Test();') - t.end() - }) - - t.test( - '\n\n# resolve specific token with root defaults, but no type default - root default not applied to unspecified tokens' - , function (t) { - run(t, { Keyword: { 'var': '*:' }, _default: ':-' }, '*var- a = new Test();') - run(t, { Keyword: { 'var': ':-' }, _default: '*:' }, '*var- a = new Test();') - t.end() - } - ) - - t.test('\n\n# resolve specific token with type and root defaults', function (t) { - run(t, { Keyword: { 'var': '*:', _default: '+:-' }, _default: ':)' }, '*var- a = +new- Test();') - run(t, { Keyword: { 'var': ':-', _default: '*:+' }, _default: '(:' }, '*var- a = *new+ Test();') - t.end() - }) - - t.test('all exact tokens undefined, but type default', function (t) { - run(t, { 'Boolean': { 'true': undefined, 'false': undefined, _default: '+:-' } }, 'return +true- || +false-;', 'return true || false;') - t.end() - }) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-types.js b/node_modules/redeyed/test/redeyed-types.js deleted file mode 100644 index 61abdb6..0000000 --- a/node_modules/redeyed/test/redeyed-types.js +++ /dev/null @@ -1,77 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var optsi = inspect(opts); - var result = redeyed(code, opts).code - - this.equals( result - , expected - , util.format('%s: %s => %s', optsi, inspect(code), inspect(expected)) - ) - return this; - } - - t.end() -}) - -test('types', function (t) { - t.test('\n# Boolean', function (t) { - t.assertSurrounds('return true;', { 'Boolean': { _default: '$:%' } }, 'return $true%;') - t.assertSurrounds( 'return true; return false;' - , { 'Boolean': { 'false': '#:', _default: '$:%' } } - , 'return $true%; return #false%;') - t.end() - }) - - t.test('\n# Identifier', function (t) { - t.assertSurrounds('var a = 1;', { 'Identifier': { _default: '$:%' } }, 'var $a% = 1;') - t.assertSurrounds( 'var a = 1; const b = 2;' - , { 'Identifier': { 'b': '#:', _default: '$:%' } } - , 'var $a% = 1; const #b% = 2;') - t.end() - }) - - t.test('\n# Null', function (t) { - t.assertSurrounds('return null;', { 'Null': { _default: '$:%' } }, 'return $null%;').end() - }) - - t.test('\n# Numeric', function (t) { - t.assertSurrounds('return 1;', { 'Numeric': { _default: '$:%' } }, 'return $1%;') - t.assertSurrounds( 'return 1; return 2;' - , { 'Numeric': { '2': '#:', _default: '$:%' } } - , 'return $1%; return #2%;') - t.end() - }) - - t.test('\n# Punctuator', function (t) { - var punctuator = { 'Punctuator': { _default: '$:%' } }; - t.assertSurrounds('return 2 * 2;', punctuator, 'return 2 $*% 2$;%') - t.assertSurrounds( 'return 2 * 2;' - , { 'Punctuator': {'*': '#:', _default: '$:%' } } - , 'return 2 #*% 2$;%') - t.assertSurrounds('var {op, lhs, rhs} = getASTNode()', punctuator, 'var ${%op$,% lhs$,% rhs$}% $=% getASTNode$(%$)%') - t.assertSurrounds('function f(x, y=12) { return x + y;}', punctuator, 'function f$(%x$,% y$=%12$)% ${% return x $+% y$;%$}%') - t.assertSurrounds('function f(x, ...y) { return x * y.length;}', punctuator, 'function f$(%x$,% $...%y$)% ${% return x $*% y$.%length$;%$}%') - t.end() - }) - - t.test('\n# String', function (t) { - t.assertSurrounds('return "hello";', { 'String': { _default: '$:%' } }, 'return $"hello"%;') - t.assertSurrounds( 'return "hello"; return "world";' - , { 'String': { '"world"': '#:', _default: '$:%' } } - , 'return $"hello"%; return #"world"%;') - t.end() - }) - - t.end() -}) diff --git a/node_modules/redeyed/test/redeyed-upcoming.js b/node_modules/redeyed/test/redeyed-upcoming.js deleted file mode 100644 index 5425833..0000000 --- a/node_modules/redeyed/test/redeyed-upcoming.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; -/*jshint asi: true*/ - -var test = require('tap').test - , util = require('util') - , redeyed = require('..') - -function inspect (obj) { - return util.inspect(obj, false, 5, true) -} - -test('adding custom asserts ... ', function (t) { - t.constructor.prototype.assertSurrounds = function (code, opts, expected) { - var optsi = inspect(opts); - var result = redeyed(code, opts).code - - this.equals( result - , expected - , util.format('%s: %s => %s', optsi, inspect(code), inspect(expected)) - ) - return this; - } - - t.end() -}) - -test('upcoming syntax: rest and spread properties', function (t) { - - t.test('\n# Punctuator', function (t) { - var punctuator = { 'Punctuator': { _default: '$:%' } }; - t.assertSurrounds('{a,...b} = c', punctuator, '${%a$,%$...%b$}% $=% c') - t.assertSurrounds('x={y,...z}', punctuator, 'x$=%${%y$,%$...%z$}%') - t.assertSurrounds('x ** y', punctuator, 'x $**% y'); - t.assertSurrounds('x **= y', punctuator, 'x $**=% y'); - t.end() - }) - - t.test('\n# Identifier', function (t) { - var identifier = { 'Identifier': { _default: '$:%' } }; - t.assertSurrounds('{a,...b} = c', identifier, '{$a%,...$b%} = $c%') - t.assertSurrounds('x={y,...z}', identifier, '$x%={$y%,...$z%}') - t.end() - }) - - t.end() -}) diff --git a/node_modules/regex-cache/LICENSE b/node_modules/regex-cache/LICENSE deleted file mode 100644 index 1e49edf..0000000 --- a/node_modules/regex-cache/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-2016, 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/regex-cache/README.md b/node_modules/regex-cache/README.md deleted file mode 100644 index ab19174..0000000 --- a/node_modules/regex-cache/README.md +++ /dev/null @@ -1,160 +0,0 @@ -# regex-cache [![NPM version](https://img.shields.io/npm/v/regex-cache.svg?style=flat)](https://www.npmjs.com/package/regex-cache) [![NPM downloads](https://img.shields.io/npm/dm/regex-cache.svg?style=flat)](https://npmjs.org/package/regex-cache) [![Build Status](https://img.shields.io/travis/jonschlinkert/regex-cache.svg?style=flat)](https://travis-ci.org/jonschlinkert/regex-cache) - -> Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in suprising performance improvements. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install regex-cache --save -``` - -* Read [what this does](#what-this-does). -* See [the benchmarks](#benchmarks) - -## Usage - -Wrap a function like this: - -```js -var cache = require('regex-cache'); -var someRegex = cache(require('some-regex-lib')); -``` - -**Caching a regex** - -If you want to cache a regex after calling `new RegExp()`, or you're requiring a module that returns a regex, wrap it with a function first: - -```js -var cache = require('regex-cache'); - -function yourRegex(str, opts) { - // do stuff to str and opts - return new RegExp(str, opts.flags); -} - -var regex = cache(yourRegex); -``` - -## Recommendations - -### Use this when... - -* **No options are passed** to the function that creates the regex. Regardless of how big or small the regex is, when zero options are passed, caching will be faster than not. -* **A few options are passed**, and the values are primitives. The limited benchmarks I did show that caching is beneficial when up to 8 or 9 options are passed. - -### Do not use this when... - -* **The values of options are not primitives**. When non-primitives must be compared for equality, the time to compare the options is most likely as long or longer than the time to just create a new regex. - -### Example benchmarks - -Performance results, with and without regex-cache: - -```bash -# no args passed (defaults) - with-cache x 8,699,231 ops/sec ±0.86% (93 runs sampled) - without-cache x 2,777,551 ops/sec ±0.63% (95 runs sampled) - -# string and six options passed - with-cache x 1,885,934 ops/sec ±0.80% (93 runs sampled) - without-cache x 1,256,893 ops/sec ±0.65% (97 runs sampled) - -# string only - with-cache x 7,723,256 ops/sec ±0.87% (92 runs sampled) - without-cache x 2,303,060 ops/sec ±0.47% (99 runs sampled) - -# one option passed - with-cache x 4,179,877 ops/sec ±0.53% (100 runs sampled) - without-cache x 2,198,422 ops/sec ±0.47% (95 runs sampled) - -# two options passed - with-cache x 3,256,222 ops/sec ±0.51% (99 runs sampled) - without-cache x 2,121,401 ops/sec ±0.79% (97 runs sampled) - -# six options passed - with-cache x 1,816,018 ops/sec ±1.08% (96 runs sampled) - without-cache x 1,157,176 ops/sec ±0.53% (100 runs sampled) - -# -# diminishing returns happen about here -# - -# ten options passed - with-cache x 1,210,598 ops/sec ±0.56% (92 runs sampled) - without-cache x 1,665,588 ops/sec ±1.07% (100 runs sampled) - -# twelve options passed - with-cache x 1,042,096 ops/sec ±0.68% (92 runs sampled) - without-cache x 1,389,414 ops/sec ±0.68% (97 runs sampled) - -# twenty options passed - with-cache x 661,125 ops/sec ±0.80% (93 runs sampled) - without-cache x 1,208,757 ops/sec ±0.65% (97 runs sampled) - -# -# when non-primitive values are compared -# - -# single value on the options is an object - with-cache x 1,398,313 ops/sec ±1.05% (95 runs sampled) - without-cache x 2,228,281 ops/sec ±0.56% (99 runs sampled) -``` - -## Run benchmarks - -Install dev dependencies: - -```bash -npm i -d && npm run benchmarks -``` - -## What this does - -If you're using `new RegExp('foo')` instead of a regex literal, it's probably because you need to dyamically generate a regex based on user options or some other potentially changing factors. - -When your function creates a string based on user inputs and passes it to the `RegExp` constructor, regex-cache caches the results. The next time the function is called if the key of a cached regex matches the user input (or no input was given), the cached regex is returned, avoiding unnecessary runtime compilation. - -Using the RegExp constructor offers a lot of flexibility, but the runtime compilation comes at a price - it's slow. Not specifically because of the call to the RegExp constructor, but **because you have to build up the string before `new RegExp()` is even called**. -## Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/regex-cache/issues/new). - -## Building docs - -Generate readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install verb && npm run docs -``` - -Or, if [verb](https://github.com/verbose/verb) is installed globally: - -```sh -$ verb -``` - -## Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -## Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/regex-cache/blob/master/LICENSE). - -*** - -_This file was generated by [verb](https://github.com/verbose/verb), v, on April 01, 2016._ \ No newline at end of file diff --git a/node_modules/regex-cache/index.js b/node_modules/regex-cache/index.js deleted file mode 100644 index 13d2022..0000000 --- a/node_modules/regex-cache/index.js +++ /dev/null @@ -1,69 +0,0 @@ -/*! - * regex-cache - * - * Copyright (c) 2015 Jon Schlinkert. - * Licensed under the MIT license. - */ - -'use strict'; - -var isPrimitive = require('is-primitive'); -var equal = require('is-equal-shallow'); -var basic = {}; -var cache = {}; - -/** - * Expose `regexCache` - */ - -module.exports = regexCache; - -/** - * Memoize the results of a call to the new RegExp constructor. - * - * @param {Function} fn [description] - * @param {String} str [description] - * @param {Options} options [description] - * @param {Boolean} nocompare [description] - * @return {RegExp} - */ - -function regexCache(fn, str, opts) { - var key = '_default_', regex, cached; - - if (!str && !opts) { - if (typeof fn !== 'function') { - return fn; - } - return basic[key] || (basic[key] = fn(str)); - } - - var isString = typeof str === 'string'; - if (isString) { - if (!opts) { - return basic[str] || (basic[str] = fn(str)); - } - key = str; - } else { - opts = str; - } - - cached = cache[key]; - if (cached && equal(cached.opts, opts)) { - return cached.regex; - } - - memo(key, opts, (regex = fn(str, opts))); - return regex; -} - -function memo(key, opts, regex) { - cache[key] = {regex: regex, opts: opts}; -} - -/** - * Expose `cache` - */ - -module.exports.cache = cache; -module.exports.basic = basic; diff --git a/node_modules/regex-cache/package.json b/node_modules/regex-cache/package.json deleted file mode 100644 index 834cb7c..0000000 --- a/node_modules/regex-cache/package.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "regex-cache@^0.4.2", - "scope": null, - "escapedName": "regex-cache", - "name": "regex-cache", - "rawSpec": "^0.4.2", - "spec": ">=0.4.2 <0.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/micromatch" - ] - ], - "_from": "regex-cache@>=0.4.2 <0.5.0", - "_id": "regex-cache@0.4.3", - "_inCache": true, - "_location": "/regex-cache", - "_nodeVersion": "5.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/regex-cache-0.4.3.tgz_1459536604904_0.22530420310795307" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.6.0", - "_phantomChildren": {}, - "_requested": { - "raw": "regex-cache@^0.4.2", - "scope": null, - "escapedName": "regex-cache", - "name": "regex-cache", - "rawSpec": "^0.4.2", - "spec": ">=0.4.2 <0.5.0", - "type": "range" - }, - "_requiredBy": [ - "/micromatch" - ], - "_resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.3.tgz", - "_shasum": "9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145", - "_shrinkwrap": null, - "_spec": "regex-cache@^0.4.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/micromatch", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/regex-cache/issues" - }, - "dependencies": { - "is-equal-shallow": "^0.1.3", - "is-primitive": "^2.0.0" - }, - "description": "Memoize the results of a call to the RegExp constructor, avoiding repetitious runtime compilation of the same string and options, resulting in suprising performance improvements.", - "devDependencies": { - "benchmarked": "^0.1.5", - "chalk": "^1.1.3", - "gulp-format-md": "^0.1.7", - "micromatch": "^2.3.7", - "should": "^8.3.0" - }, - "directories": {}, - "dist": { - "shasum": "9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145", - "tarball": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.3.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "06ce46bda29a19064a968bd5d2d5596440be05ca", - "homepage": "https://github.com/jonschlinkert/regex-cache", - "keywords": [ - "cache", - "expression", - "regex", - "regexp", - "regular", - "regular expression", - "store", - "to-regex" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], - "name": "regex-cache", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/regex-cache.git" - }, - "scripts": { - "benchmarks": "node benchmark", - "test": "mocha" - }, - "verb": { - "run": true, - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "reflinks": [ - "verb" - ], - "lint": { - "reflinks": true - } - }, - "version": "0.4.3" -} diff --git a/node_modules/remove-trailing-separator/history.md b/node_modules/remove-trailing-separator/history.md deleted file mode 100644 index a9ca222..0000000 --- a/node_modules/remove-trailing-separator/history.md +++ /dev/null @@ -1,9 +0,0 @@ -## History - -### 1.0.1 - 25th Sep 2016 - -- [b78606d](https://github.com/darsain/remove-trailing-separator/commit/af90b4e153a4527894741af6c7005acaeb78606d) Remove backslash only on win32 systems - -### 1.0.0 - 24th Sep 2016 - -Initial release. \ No newline at end of file diff --git a/node_modules/remove-trailing-separator/index.js b/node_modules/remove-trailing-separator/index.js deleted file mode 100644 index 1ed8e93..0000000 --- a/node_modules/remove-trailing-separator/index.js +++ /dev/null @@ -1,13 +0,0 @@ -const isWin = process.platform === 'win32'; - -module.exports = function (str) { - while (endsInSeparator(str)) { - str = str.slice(0, -1); - } - return str; -}; - -function endsInSeparator(str) { - var last = str[str.length - 1]; - return str.length > 1 && (last === '/' || (isWin && last === '\\')); -} diff --git a/node_modules/remove-trailing-separator/license b/node_modules/remove-trailing-separator/license deleted file mode 100644 index a169aff..0000000 --- a/node_modules/remove-trailing-separator/license +++ /dev/null @@ -1,3 +0,0 @@ -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. \ No newline at end of file diff --git a/node_modules/remove-trailing-separator/package.json b/node_modules/remove-trailing-separator/package.json deleted file mode 100644 index bf2d10f..0000000 --- a/node_modules/remove-trailing-separator/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "remove-trailing-separator@^1.0.1", - "scope": null, - "escapedName": "remove-trailing-separator", - "name": "remove-trailing-separator", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat/node_modules/vinyl" - ] - ], - "_from": "remove-trailing-separator@>=1.0.1 <2.0.0", - "_id": "remove-trailing-separator@1.0.1", - "_inCache": true, - "_location": "/remove-trailing-separator", - "_nodeVersion": "6.4.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/remove-trailing-separator-1.0.1.tgz_1474797962066_0.45308714639395475" - }, - "_npmUser": { - "name": "darsain", - "email": "darsain@gmail.com" - }, - "_npmVersion": "3.10.5", - "_phantomChildren": {}, - "_requested": { - "raw": "remove-trailing-separator@^1.0.1", - "scope": null, - "escapedName": "remove-trailing-separator", - "name": "remove-trailing-separator", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat/vinyl" - ], - "_resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.0.1.tgz", - "_shasum": "615ebb96af559552d4bf4057c8436d486ab63cc4", - "_shrinkwrap": null, - "_spec": "remove-trailing-separator@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat/node_modules/vinyl", - "author": { - "name": "darsain" - }, - "bugs": { - "url": "https://github.com/darsain/remove-trailing-separator/issues" - }, - "dependencies": {}, - "description": "Removes separators from the end of the string.", - "devDependencies": { - "ava": "^0.16.0", - "coveralls": "^2.11.14", - "nyc": "^8.3.0", - "xo": "^0.16.0" - }, - "directories": {}, - "dist": { - "shasum": "615ebb96af559552d4bf4057c8436d486ab63cc4", - "tarball": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.0.1.tgz" - }, - "files": [ - "index.js" - ], - "gitHead": "8a5da3ac1efb1314d55e50a2a923b068d500d77a", - "homepage": "https://github.com/darsain/remove-trailing-separator#readme", - "keywords": [ - "remove", - "strip", - "trailing", - "separator" - ], - "license": "ISC", - "main": "index.js", - "maintainers": [ - { - "name": "darsain", - "email": "darsain@gmail.com" - } - ], - "name": "remove-trailing-separator", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/darsain/remove-trailing-separator.git" - }, - "scripts": { - "lint": "xo", - "pretest": "npm run lint", - "report": "nyc report --reporter=html", - "test": "nyc ava" - }, - "version": "1.0.1" -} diff --git a/node_modules/remove-trailing-separator/readme.md b/node_modules/remove-trailing-separator/readme.md deleted file mode 100644 index 8c643d4..0000000 --- a/node_modules/remove-trailing-separator/readme.md +++ /dev/null @@ -1,51 +0,0 @@ -# remove-trailing-separator - -[![NPM version][npm-img]][npm-url] [![Build Status: Linux][travis-img]][travis-url] [![Build Status: Windows][appveyor-img]][appveyor-url] [![Coverage Status][coveralls-img]][coveralls-url] - -Removes all separators from the end of a string. - -## Install - -``` -npm install remove-trailing-separator -``` - -## Examples - -```js -const removeTrailingSeparator = require('remove-trailing-separator'); - -removeTrailingSeparator('/foo/bar/') // '/foo/bar' -removeTrailingSeparator('/foo/bar///') // '/foo/bar' - -// leaves only/last separator -removeTrailingSeparator('/') // '/' -removeTrailingSeparator('///') // '/' - -// returns empty string -removeTrailingSeparator('') // '' -``` - -## Backslash, or win32 separator - -`\` is considered a separator only on WIN32 systems. All UNIX compliant systems -see backslash as a valid file name character, so it would break UNIX compliance -to remove it there. - -In practice, this means that this code will return different things depending on -what system it runs on: - -``` -removeTrailingSeparator('\\foo\\') -// UNIX => '\\foo\\' -// WIN32 => '\\foo' -``` - -[npm-url]: https://npmjs.org/package/remove-trailing-separator -[npm-img]: https://badge.fury.io/js/remove-trailing-separator.svg -[travis-url]: https://travis-ci.org/darsain/remove-trailing-separator -[travis-img]: https://travis-ci.org/darsain/remove-trailing-separator.svg?branch=master -[appveyor-url]: https://ci.appveyor.com/project/darsain/remove-trailing-separator/branch/master -[appveyor-img]: https://ci.appveyor.com/api/projects/status/wvg9a93rrq95n2xl/branch/master?svg=true -[coveralls-url]: https://coveralls.io/github/darsain/remove-trailing-separator?branch=master -[coveralls-img]: https://coveralls.io/repos/github/darsain/remove-trailing-separator/badge.svg?branch=master \ No newline at end of file diff --git a/node_modules/repeat-element/LICENSE b/node_modules/repeat-element/LICENSE deleted file mode 100644 index 33754da..0000000 --- a/node_modules/repeat-element/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/repeat-element/README.md b/node_modules/repeat-element/README.md deleted file mode 100644 index 008e20e..0000000 --- a/node_modules/repeat-element/README.md +++ /dev/null @@ -1,71 +0,0 @@ -# repeat-element [![NPM version](https://badge.fury.io/js/repeat-element.svg)](http://badge.fury.io/js/repeat-element) - -> Create an array by repeating the given value n times. - -## Install - -Install with [npm](https://www.npmjs.com/) - -```bash -npm i repeat-element --save -``` - -## Usage - -```js -var repeat = require('repeat-element'); - -repeat('a', 5); -//=> ['a', 'a', 'a', 'a', 'a'] - -repeat('a', 1); -//=> ['a'] - -repeat('a', 0); -//=> [] - -repeat(null, 5) -//» [ null, null, null, null, null ] - -repeat({some: 'object'}, 5) -//» [ { some: 'object' }, -// { some: 'object' }, -// { some: 'object' }, -// { some: 'object' }, -// { some: 'object' } ] - -repeat(5, 5) -//» [ 5, 5, 5, 5, 5 ] -``` - -## Related projects - -[repeat-string](https://github.com/jonschlinkert/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string. - -## Running 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/repeat-element/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 May 06, 2015._ diff --git a/node_modules/repeat-element/index.js b/node_modules/repeat-element/index.js deleted file mode 100644 index 0ad45ab..0000000 --- a/node_modules/repeat-element/index.js +++ /dev/null @@ -1,18 +0,0 @@ -/*! - * repeat-element - * - * Copyright (c) 2015 Jon Schlinkert. - * Licensed under the MIT license. - */ - -'use strict'; - -module.exports = function repeat(ele, num) { - var arr = new Array(num); - - for (var i = 0; i < num; i++) { - arr[i] = ele; - } - - return arr; -}; diff --git a/node_modules/repeat-element/package.json b/node_modules/repeat-element/package.json deleted file mode 100644 index bb4738e..0000000 --- a/node_modules/repeat-element/package.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "repeat-element@^1.1.2", - "scope": null, - "escapedName": "repeat-element", - "name": "repeat-element", - "rawSpec": "^1.1.2", - "spec": ">=1.1.2 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/braces" - ] - ], - "_from": "repeat-element@>=1.1.2 <2.0.0", - "_id": "repeat-element@1.1.2", - "_inCache": true, - "_location": "/repeat-element", - "_nodeVersion": "0.12.0", - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "2.5.1", - "_phantomChildren": {}, - "_requested": { - "raw": "repeat-element@^1.1.2", - "scope": null, - "escapedName": "repeat-element", - "name": "repeat-element", - "rawSpec": "^1.1.2", - "spec": ">=1.1.2 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/braces", - "/fill-range" - ], - "_resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "_shasum": "ef089a178d1483baae4d93eb98b4f9e4e11d990a", - "_shrinkwrap": null, - "_spec": "repeat-element@^1.1.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/braces", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/repeat-element/issues" - }, - "dependencies": {}, - "description": "Create an array by repeating the given value n times.", - "devDependencies": { - "benchmarked": "^0.1.4", - "chalk": "^1.0.0", - "glob": "^5.0.5", - "minimist": "^1.1.1", - "mocha": "^2.2.4" - }, - "directories": {}, - "dist": { - "shasum": "ef089a178d1483baae4d93eb98b4f9e4e11d990a", - "tarball": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "7a6b21d58eafcc44fc8de133c70a8398ee9fdd8d", - "homepage": "https://github.com/jonschlinkert/repeat-element", - "keywords": [ - "array", - "element", - "repeat", - "string" - ], - "license": { - "type": "MIT", - "url": "https://github.com/jonschlinkert/repeat-element/blob/master/LICENSE" - }, - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "repeat-element", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/jonschlinkert/repeat-element.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "1.1.2" -} diff --git a/node_modules/repeat-string/LICENSE b/node_modules/repeat-string/LICENSE deleted file mode 100644 index 39245ac..0000000 --- a/node_modules/repeat-string/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2016, 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/repeat-string/README.md b/node_modules/repeat-string/README.md deleted file mode 100644 index aaa5e91..0000000 --- a/node_modules/repeat-string/README.md +++ /dev/null @@ -1,136 +0,0 @@ -# repeat-string [![NPM version](https://img.shields.io/npm/v/repeat-string.svg?style=flat)](https://www.npmjs.com/package/repeat-string) [![NPM monthly downloads](https://img.shields.io/npm/dm/repeat-string.svg?style=flat)](https://npmjs.org/package/repeat-string) [![NPM total downloads](https://img.shields.io/npm/dt/repeat-string.svg?style=flat)](https://npmjs.org/package/repeat-string) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/repeat-string.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/repeat-string) - -> Repeat the given string n times. Fastest implementation for repeating a string. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save repeat-string -``` - -## Usage - -### [repeat](index.js#L41) - -Repeat the given `string` the specified `number` of times. - -**Example:** - -**Example** - -```js -var repeat = require('repeat-string'); -repeat('A', 5); -//=> AAAAA -``` - -**Params** - -* `string` **{String}**: The string to repeat -* `number` **{Number}**: The number of times to repeat the string -* `returns` **{String}**: Repeated string - -## Benchmarks - -Repeat string is significantly faster than the native method (which is itself faster than [repeating](https://github.com/sindresorhus/repeating)): - -```sh -# 2x -repeat-string █████████████████████████ (26,953,977 ops/sec) -repeating █████████ (9,855,695 ops/sec) -native ██████████████████ (19,453,895 ops/sec) - -# 3x -repeat-string █████████████████████████ (19,445,252 ops/sec) -repeating ███████████ (8,661,565 ops/sec) -native ████████████████████ (16,020,598 ops/sec) - -# 10x -repeat-string █████████████████████████ (23,792,521 ops/sec) -repeating █████████ (8,571,332 ops/sec) -native ███████████████ (14,582,955 ops/sec) - -# 50x -repeat-string █████████████████████████ (23,640,179 ops/sec) -repeating █████ (5,505,509 ops/sec) -native ██████████ (10,085,557 ops/sec) - -# 250x -repeat-string █████████████████████████ (23,489,618 ops/sec) -repeating ████ (3,962,937 ops/sec) -native ████████ (7,724,892 ops/sec) - -# 2000x -repeat-string █████████████████████████ (20,315,172 ops/sec) -repeating ████ (3,297,079 ops/sec) -native ███████ (6,203,331 ops/sec) - -# 20000x -repeat-string █████████████████████████ (23,382,915 ops/sec) -repeating ███ (2,980,058 ops/sec) -native █████ (5,578,808 ops/sec) -``` - -**Run the benchmarks** - -Install dev dependencies: - -```sh -npm i -d && node benchmark -``` - -## About - -### Related projects - -[repeat-element](https://www.npmjs.com/package/repeat-element): Create an array by repeating the given value n times. | [homepage](https://github.com/jonschlinkert/repeat-element "Create an array by repeating the given value n times.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Contributors - -| **Commits** | **Contributor**
    | -| --- | --- | -| 51 | [jonschlinkert](https://github.com/jonschlinkert) | -| 2 | [LinusU](https://github.com/LinusU) | -| 2 | [tbusser](https://github.com/tbusser) | -| 1 | [doowb](https://github.com/doowb) | -| 1 | [wooorm](https://github.com/wooorm) | - -### Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -### License - -Copyright © 2016, [Jon Schlinkert](http://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/repeat-string/blob/master/LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 23, 2016._ \ No newline at end of file diff --git a/node_modules/repeat-string/index.js b/node_modules/repeat-string/index.js deleted file mode 100644 index 4459afd..0000000 --- a/node_modules/repeat-string/index.js +++ /dev/null @@ -1,70 +0,0 @@ -/*! - * repeat-string - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -/** - * Results cache - */ - -var res = ''; -var cache; - -/** - * Expose `repeat` - */ - -module.exports = repeat; - -/** - * Repeat the given `string` the specified `number` - * of times. - * - * **Example:** - * - * ```js - * var repeat = require('repeat-string'); - * repeat('A', 5); - * //=> AAAAA - * ``` - * - * @param {String} `string` The string to repeat - * @param {Number} `number` The number of times to repeat the string - * @return {String} Repeated string - * @api public - */ - -function repeat(str, num) { - if (typeof str !== 'string') { - throw new TypeError('expected a string'); - } - - // cover common, quick use cases - if (num === 1) return str; - if (num === 2) return str + str; - - var max = str.length * num; - if (cache !== str || typeof cache === 'undefined') { - cache = str; - res = ''; - } else if (res.length >= max) { - return res.substr(0, max); - } - - while (max > res.length && num > 1) { - if (num & 1) { - res += str; - } - - num >>= 1; - str += str; - } - - res += str; - res = res.substr(0, max); - return res; -} diff --git a/node_modules/repeat-string/package.json b/node_modules/repeat-string/package.json deleted file mode 100644 index 8d8be82..0000000 --- a/node_modules/repeat-string/package.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "repeat-string@^1.5.2", - "scope": null, - "escapedName": "repeat-string", - "name": "repeat-string", - "rawSpec": "^1.5.2", - "spec": ">=1.5.2 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/fill-range" - ] - ], - "_from": "repeat-string@>=1.5.2 <2.0.0", - "_id": "repeat-string@1.6.1", - "_inCache": true, - "_location": "/repeat-string", - "_nodeVersion": "6.7.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/repeat-string-1.6.1.tgz_1477241638674_0.3764322670176625" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "repeat-string@^1.5.2", - "scope": null, - "escapedName": "repeat-string", - "name": "repeat-string", - "rawSpec": "^1.5.2", - "spec": ">=1.5.2 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/align-text", - "/fill-range" - ], - "_resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "_shasum": "8dcae470e1c88abc2d600fff4a776286da75e637", - "_shrinkwrap": null, - "_spec": "repeat-string@^1.5.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/fill-range", - "author": { - "name": "Jon Schlinkert", - "url": "http://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/repeat-string/issues" - }, - "contributors": [ - { - "name": "Brian Woodward", - "email": "brian.woodward@gmail.com", - "url": "https://github.com/doowb" - }, - { - "name": "Jon Schlinkert", - "email": "jon.schlinkert@sellside.com", - "url": "http://twitter.com/jonschlinkert" - }, - { - "name": "Linus Unnebäck", - "email": "linus@folkdatorn.se", - "url": "http://linus.unnebäck.se" - }, - { - "name": "Thijs Busser", - "email": "tbusser@gmail.com", - "url": "http://tbusser.net" - }, - { - "name": "Titus", - "email": "tituswormer@gmail.com", - "url": "wooorm.com" - } - ], - "dependencies": {}, - "description": "Repeat the given string n times. Fastest implementation for repeating a string.", - "devDependencies": { - "ansi-cyan": "^0.1.1", - "benchmarked": "^0.2.5", - "gulp-format-md": "^0.1.11", - "isobject": "^2.1.0", - "mocha": "^3.1.2", - "repeating": "^3.0.0", - "text-table": "^0.2.0", - "yargs-parser": "^4.0.2" - }, - "directories": {}, - "dist": { - "shasum": "8dcae470e1c88abc2d600fff4a776286da75e637", - "tarball": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz" - }, - "engines": { - "node": ">=0.10" - }, - "files": [ - "index.js" - ], - "gitHead": "1a95c5d99a02999ccd2cf4663959a18bd2def7b8", - "homepage": "https://github.com/jonschlinkert/repeat-string", - "keywords": [ - "fast", - "fastest", - "fill", - "left", - "left-pad", - "multiple", - "pad", - "padding", - "repeat", - "repeating", - "repetition", - "right", - "right-pad", - "string", - "times" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - { - "name": "doowb", - "email": "brian.woodward@gmail.com" - } - ], - "name": "repeat-string", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/repeat-string.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "repeat-element" - ] - }, - "helpers": [ - "./benchmark/helper.js" - ], - "reflinks": [ - "verb" - ] - }, - "version": "1.6.1" -} diff --git a/node_modules/repeating/index.js b/node_modules/repeating/index.js deleted file mode 100644 index ccae0d7..0000000 --- a/node_modules/repeating/index.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -var isFinite = require('is-finite'); - -module.exports = function (str, n) { - if (typeof str !== 'string') { - throw new TypeError('Expected `input` to be a string'); - } - - if (n < 0 || !isFinite(n)) { - throw new TypeError('Expected `count` to be a positive finite number'); - } - - var ret = ''; - - do { - if (n & 1) { - ret += str; - } - - str += str; - } while ((n >>= 1)); - - return ret; -}; diff --git a/node_modules/repeating/license b/node_modules/repeating/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/repeating/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/repeating/package.json b/node_modules/repeating/package.json deleted file mode 100644 index 1c73f66..0000000 --- a/node_modules/repeating/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "repeating@^2.0.0", - "scope": null, - "escapedName": "repeating", - "name": "repeating", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/indent-string" - ] - ], - "_from": "repeating@>=2.0.0 <3.0.0", - "_id": "repeating@2.0.1", - "_inCache": true, - "_location": "/repeating", - "_nodeVersion": "4.4.2", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/repeating-2.0.1.tgz_1460395966602_0.9193919147364795" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "3.8.6", - "_phantomChildren": {}, - "_requested": { - "raw": "repeating@^2.0.0", - "scope": null, - "escapedName": "repeating", - "name": "repeating", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/indent-string" - ], - "_resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "_shasum": "5214c53a926d3552707527fbab415dbc08d06dda", - "_shrinkwrap": null, - "_spec": "repeating@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/indent-string", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/repeating/issues" - }, - "dependencies": { - "is-finite": "^1.0.0" - }, - "description": "Repeat a string - fast", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "5214c53a926d3552707527fbab415dbc08d06dda", - "tarball": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "be02bcaf9a674b3c155477b3bf282136bcf44770", - "homepage": "https://github.com/sindresorhus/repeating#readme", - "keywords": [ - "repeat", - "string", - "repeating", - "str", - "text", - "fill", - "pad" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "repeating", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/repeating.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.0.1" -} diff --git a/node_modules/repeating/readme.md b/node_modules/repeating/readme.md deleted file mode 100644 index 06f0b69..0000000 --- a/node_modules/repeating/readme.md +++ /dev/null @@ -1,30 +0,0 @@ -# repeating [![Build Status](https://travis-ci.org/sindresorhus/repeating.svg?branch=master)](https://travis-ci.org/sindresorhus/repeating) - -> Repeat a string - fast - - -## Install - -``` -$ npm install --save repeating -``` - - -## Usage - -```js -const repeating = require('repeating'); - -repeating('unicorn ', 100); -//=> 'unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn ' -``` - - -## Related - -- [repeating-cli](https://github.com/sindresorhus/repeating-cli) - CLI for this module - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/replace-ext/.npmignore b/node_modules/replace-ext/.npmignore deleted file mode 100644 index b5ef13a..0000000 --- a/node_modules/replace-ext/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -.DS_Store -*.log -node_modules -build -*.node -components \ No newline at end of file diff --git a/node_modules/replace-ext/.travis.yml b/node_modules/replace-ext/.travis.yml deleted file mode 100644 index 8101b9f..0000000 --- a/node_modules/replace-ext/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "0.7" - - "0.8" - - "0.9" - - "0.10" -after_script: - - npm run coveralls \ No newline at end of file diff --git a/node_modules/replace-ext/LICENSE b/node_modules/replace-ext/LICENSE deleted file mode 100755 index 7cbe012..0000000 --- a/node_modules/replace-ext/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2014 Fractal - -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/replace-ext/README.md b/node_modules/replace-ext/README.md deleted file mode 100644 index 05b5d21..0000000 --- a/node_modules/replace-ext/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# replace-ext [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url] - - -## Information - - - - - - - - - - - - - -
    Packagereplace-ext
    DescriptionReplaces a file extension with another one
    Node Version>= 0.4
    - -## Usage - -```javascript -var replaceExt = require('replace-ext'); - -var path = '/some/dir/file.js'; -var npath = replaceExt(path, '.coffee'); - -console.log(npath); // /some/dir/file.coffee -``` - -[npm-url]: https://npmjs.org/package/replace-ext -[npm-image]: https://badge.fury.io/js/replace-ext.png - -[travis-url]: https://travis-ci.org/wearefractal/replace-ext -[travis-image]: https://travis-ci.org/wearefractal/replace-ext.png?branch=master - -[coveralls-url]: https://coveralls.io/r/wearefractal/replace-ext -[coveralls-image]: https://coveralls.io/repos/wearefractal/replace-ext/badge.png - -[depstat-url]: https://david-dm.org/wearefractal/replace-ext -[depstat-image]: https://david-dm.org/wearefractal/replace-ext.png - -[david-url]: https://david-dm.org/wearefractal/replace-ext -[david-image]: https://david-dm.org/wearefractal/replace-ext.png?theme=shields.io \ No newline at end of file diff --git a/node_modules/replace-ext/index.js b/node_modules/replace-ext/index.js deleted file mode 100644 index 3f76938..0000000 --- a/node_modules/replace-ext/index.js +++ /dev/null @@ -1,9 +0,0 @@ -var path = require('path'); - -module.exports = function(npath, ext) { - if (typeof npath !== 'string') return npath; - if (npath.length === 0) return npath; - - var nFileName = path.basename(npath, path.extname(npath))+ext; - return path.join(path.dirname(npath), nFileName); -}; \ No newline at end of file diff --git a/node_modules/replace-ext/package.json b/node_modules/replace-ext/package.json deleted file mode 100644 index 40049fa..0000000 --- a/node_modules/replace-ext/package.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "replace-ext@0.0.1", - "scope": null, - "escapedName": "replace-ext", - "name": "replace-ext", - "rawSpec": "0.0.1", - "spec": "0.0.1", - "type": "version" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-util" - ] - ], - "_from": "replace-ext@0.0.1", - "_id": "replace-ext@0.0.1", - "_inCache": true, - "_location": "/replace-ext", - "_npmUser": { - "name": "fractal", - "email": "contact@wearefractal.com" - }, - "_npmVersion": "1.4.4", - "_phantomChildren": {}, - "_requested": { - "raw": "replace-ext@0.0.1", - "scope": null, - "escapedName": "replace-ext", - "name": "replace-ext", - "rawSpec": "0.0.1", - "spec": "0.0.1", - "type": "version" - }, - "_requiredBy": [ - "/gulp-util", - "/gulp-watch/vinyl", - "/vinyl", - "/vinyl-file/vinyl" - ], - "_resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", - "_shasum": "29bbd92078a739f0bcce2b4ee41e837953522924", - "_shrinkwrap": null, - "_spec": "replace-ext@0.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-util", - "author": { - "name": "Fractal", - "email": "contact@wearefractal.com", - "url": "http://wearefractal.com/" - }, - "bugs": { - "url": "https://github.com/wearefractal/replace-ext/issues" - }, - "dependencies": {}, - "description": "Replaces a file extension with another one", - "devDependencies": { - "coveralls": "~2.6.1", - "istanbul": "~0.2.3", - "jshint": "~2.4.1", - "mocha": "~1.17.0", - "mocha-lcov-reporter": "~0.0.1", - "rimraf": "~2.2.5", - "should": "~3.1.0" - }, - "directories": {}, - "dist": { - "shasum": "29bbd92078a739f0bcce2b4ee41e837953522924", - "tarball": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz" - }, - "engines": { - "node": ">= 0.4" - }, - "homepage": "http://github.com/wearefractal/replace-ext", - "licenses": [ - { - "type": "MIT", - "url": "http://github.com/wearefractal/replace-ext/raw/master/LICENSE" - } - ], - "main": "./index.js", - "maintainers": [ - { - "name": "fractal", - "email": "contact@wearefractal.com" - } - ], - "name": "replace-ext", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/wearefractal/replace-ext.git" - }, - "scripts": { - "coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", - "test": "mocha --reporter spec && jshint" - }, - "version": "0.0.1" -} diff --git a/node_modules/replace-ext/test/main.js b/node_modules/replace-ext/test/main.js deleted file mode 100644 index 5137702..0000000 --- a/node_modules/replace-ext/test/main.js +++ /dev/null @@ -1,51 +0,0 @@ -var replaceExt = require('../'); -var path = require('path'); -var should = require('should'); -require('mocha'); - -describe('replace-ext', function() { - it('should return a valid replaced extension on nested', function(done) { - var fname = path.join(__dirname, './fixtures/test.coffee'); - var expected = path.join(__dirname, './fixtures/test.js'); - var nu = replaceExt(fname, '.js'); - should.exist(nu); - nu.should.equal(expected); - done(); - }); - - it('should return a valid replaced extension on flat', function(done) { - var fname = 'test.coffee'; - var expected = 'test.js'; - var nu = replaceExt(fname, '.js'); - should.exist(nu); - nu.should.equal(expected); - done(); - }); - - it('should not return a valid replaced extension on empty string', function(done) { - var fname = ''; - var expected = ''; - var nu = replaceExt(fname, '.js'); - should.exist(nu); - nu.should.equal(expected); - done(); - }); - - it('should return a valid removed extension on nested', function(done) { - var fname = path.join(__dirname, './fixtures/test.coffee'); - var expected = path.join(__dirname, './fixtures/test'); - var nu = replaceExt(fname, ''); - should.exist(nu); - nu.should.equal(expected); - done(); - }); - - it('should return a valid added extension on nested', function(done) { - var fname = path.join(__dirname, './fixtures/test'); - var expected = path.join(__dirname, './fixtures/test.js'); - var nu = replaceExt(fname, '.js'); - should.exist(nu); - nu.should.equal(expected); - done(); - }); -}); diff --git a/node_modules/replacestream/LICENSE b/node_modules/replacestream/LICENSE deleted file mode 100644 index 577fa2f..0000000 --- a/node_modules/replacestream/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -Copyright (c) 2014, Eugene Ware -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. 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. -3. Neither the name of Eugene Ware 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 EUGENE WARE ''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 EUGENE WARE 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. diff --git a/node_modules/replacestream/README.md b/node_modules/replacestream/README.md deleted file mode 100644 index 3adaabe..0000000 --- a/node_modules/replacestream/README.md +++ /dev/null @@ -1,298 +0,0 @@ -# replacestream - -A [node.js transform stream](https://nodejs.org/api/stream.html#stream_class_stream_transform) for basic streaming text search/replacement friendy with chunk boundary. - -[![build status](https://secure.travis-ci.org/eugeneware/replacestream.svg)](http://travis-ci.org/eugeneware/replacestream) -[![Coverage Status](https://coveralls.io/repos/eugeneware/replacestream/badge.svg?branch=master)](https://coveralls.io/r/eugeneware/replacestream?branch=master) - -## Installation - -Install via [npm](https://www.npmjs.com/): - -``` shell -$ npm install replacestream -``` - -## Examples - -### Search and replace over a test file - -Say we want to do a search and replace over the following file: - -``` -// happybirthday.txt -Happy birthday to you! -Happy birthday to you! -Happy birthday to dear Liza! -Happy birthday to you! -``` - -``` js -var replaceStream = require('replacestream') - , fs = require('fs') - , path = require('path'); - -// Replace all the instances of 'birthday' with 'earthday' -fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream('birthday', 'earthday')) - .pipe(process.stdout); -``` - -Running this will print out: - -``` bash -$ node simple.js -Happy earthday to you! -Happy earthday to you! -Happy earthday to dear Liza! -Happy earthday to you! -``` - -You can also limit the number of replaces to first ```n```: - -``` js -// Replace the first 2 of the instances of 'birthday' with 'earthday' -fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream('birthday', 'earthday', { limit: 2 } )) - .pipe(process.stdout); -``` - -Which would output: - -``` bash -$ node simple.js -Happy earthday to you! -Happy earthday to you! -Happy birthday to dear Liza! -Happy birthday to you! -``` - -And you can also pass in a replacement function which will get called for each -replacement: - -``` js -// Replace the word 'Happy' with a different word each time -var words = ['Awesome', 'Good', 'Super', 'Joyous']; -function replaceFn(match) { - return words.shift(); -} -fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream('Happy', replaceFn)) - .pipe(process.stdout); -``` - -Which would output: - -``` bash -$ node simple.js -Awesome birthday to you! -Good birthday to you! -Super birthday to dear Liza! -Joyous birthday to you! -``` - -### Search and replace with Regular Expressions - -Here's the same example, but with RegEx: - -``` -// happybirthday.txt -Happy birthday to you! -Happy birthday to you! -Happy birthday to dear Liza! -Happy birthday to you! -``` - -``` js -var replaceStream = require('replacestream') - , fs = require('fs') - , path = require('path'); - -// Replace any word that has an 'o' with 'oh' -fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream(/\w*o\w*/g, 'oh')) - .pipe(process.stdout); -``` - -Running this will print out: - -``` bash -$ node simple.js -Happy birthday oh oh! -Happy birthday oh oh! -Happy birthday oh dear Liza! -Happy birthday oh oh! -``` - -You can also insert captures using the $1 ($index) notation. This is similar the built in method [replace](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter). - -``` -// happybirthday.txt -Happy birthday to you! -Happy birthday to you! -Happy birthday to dear Liza! -Happy birthday to you! -``` - -``` js -var replaceStream = require('replacestream') - , fs = require('fs') - , path = require('path'); - -// Replace any word that has an 'o' with 'oh' -fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream(/(dear) (Liza!)/, 'my very good and $1 friend $2')) - .pipe(process.stdout); -``` - -Running this will print: - -``` bash -$ node simple.js -Happy birthday to you! -Happy birthday to you! -Happy birthday to my very good and dear friend Liza! -Happy birthday to you! -``` - -You can also pass in a replacement function. The function will be passed parameters just like [String.prototype.replace](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) (e.g. replaceFunction(match, p1, p2, offset, string)). In this case the matched string is limited to the buffer the match is found on, not the entire stream. - -``` js -function replaceFn() { - return arguments[2] + ' to ' + arguments[1] -} -fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream(/(birt\w*)\sto\s(you)/g, replaceFn)) - .pipe(process.stdout); -``` - -Which would output: - -``` bash -$ node simple.js -Happy you to birthday! -Happy you to birthday! -Happy birthday to dear Liza! -Happy you to birthday! -``` - -### Web server search and replace over a test file - -Here's the same example, but kicked off from a HTTP server: - -``` js -// server.js -var http = require('http') - , fs = require('fs') - , path = require('path') - , replaceStream = require('replacestream'); - -var app = function (req, res) { - if (req.url.match(/^\/happybirthday\.txt$/)) { - res.writeHead(200, { 'Content-Type': 'text/plain' }); - fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream('birthday', 'earthday')) - .pipe(res); - } else { - res.writeHead(200, { 'Content-Type': 'text/plain' }); - res.end('File not found'); - } -}; -var server = http.createServer(app).listen(3000); -``` - -When you request the file: -``` -$ curl -i "http://localhost:3000/happybirthday.txt" -HTTP/1.1 200 OK -Content-Type: text/plain -Date: Mon, 08 Jul 2013 06:45:21 GMT -Connection: keep-alive -Transfer-Encoding: chunked - -Happy earthday to you! -Happy earthday to you! -Happy earthday to dear Liza! -Happy earthday to you! -``` - -NB: If your readable Stream that you're piping through the `replacestream` is -paused, then you may have to call the `.resume()` method on it. - -## Configuration - -### Changing the encoding - -You can also change the text encoding of the search and replace by setting an -encoding property on the options object: - -``` js -// Replace the first 2 of the instances of 'birthday' with 'earthday' -fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream('birthday', 'earthday', { limit: 2, encoding: 'ascii' } )) - .pipe(process.stdout); -``` - -By default the encoding will be set to 'utf8'. - -## List of options - -Option | Default | Description ------- | ------- | ----------- -limit | Infinity | Sets a limit on the number of times the replacement will be made. This is forced to one when a regex without the global flag is provided. -encoding | utf8 | The text encoding used during search and replace. -maxMatchLen | 100 | When doing cross-chunk replacing, this sets the maximum length match that will be supported. -ignoreCase | true | When doing string match (not relevant for regex matching) whether to do a case insensitive search. -regExpOptions | undefined | (Deprecated) When provided, these flags will be used when creating the search regexes internally. This functionality is deprecated as the flags set on the regex provided are no longer mutated if this is not provided. - -## FAQ - -### What does "chunk boundary friendly" mean? - -It means that a replace should happen even if the string to be replaced is between streaming chunks of data. For example, say I do something like this - -```js -fs.createReadStream(path.join(__dirname, 'happybirthday.txt')) - .pipe(replaceStream('birthday', 'earthday')) - .pipe(process.stdout); -``` - -Here i am trying to replace all instances of `'birthday'` with `'earthday'`. Let's say the first chunk of data that is available is `'happy birth'` and the second chunk of data available is `'day'`. In this case the replace will happen successfully, the same as it would have if the chunk contained the entire string that was to be replaced (e.g. `chunk1 = 'happy' chunk2 = 'birthday'`) - -### Does that apply across more than 2 chunks? How does it work with regexes? - -It does apply across multiple chunks. By default, however, the maximum match length (`maxMatchLen`) is set to 100 characters. You can increase this by adding `maxMatchLen: x` to your options: - -```js -replacestream('hi', 'bye', {maxMatchLen: 1000}) -``` - -A string the size of `maxMatchLen` will be saved in memory so it shouldn't be set too high. `maxMatchLen` is what allows us to have a match between chunks. We are saving `maxMatchLen` characters in a string (the last `maxMatchLen` characters from the previous chunks) that we prepend to the current chunk, then attempt to find a match. - -As for regex it works exactly the same except you would pass a regular expression into replacestream: - -```js -replacestream(/a+/, 'b') -``` - -## Contributing - -replacestream is an **OPEN Open Source Project**. This means that: - -> Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project. - -See the [CONTRIBUTING.md](https://github.com/eugeneware/replacestream/blob/master/CONTRIBUTING.md) file for more details. - -### Contributors - -replacestream is only possible due to the excellent work of the following contributors: - - - - - - - - - -
    Eugene WareGitHub/eugeneware
    Ryan MehtaGitHub/mehtaphysical
    Tim ChaplinGitHub/tjchaplin
    Bryce GibsonGitHub/bryce-gibson
    RomainGitHub/Filirom1
    Shinnosuke WatanabeGitHub/shinnn
    Steve MaoGitHub/stevemao
    diff --git a/node_modules/replacestream/index.js b/node_modules/replacestream/index.js deleted file mode 100644 index 8b0124a..0000000 --- a/node_modules/replacestream/index.js +++ /dev/null @@ -1,141 +0,0 @@ -'use strict'; - -var escapeRegExp = require('escape-string-regexp'); -var objectAssign = require('object-assign'); -var Transform = require('readable-stream/transform'); - -module.exports = function ReplaceStream(search, replace, options) { - var tail = ''; - var totalMatches = 0; - var isRegex = search instanceof RegExp; - - options = objectAssign({ - limit: Infinity, - encoding: 'utf8', - maxMatchLen: 100 - }, options); - - var replaceFn = replace; - - replaceFn = createReplaceFn(replace, isRegex); - - var match; - if (isRegex) { - match = matchFromRegex(search, options) - } else { - match = matchFromString(search, options); - options.maxMatchLen = search.length; - } - - function transform(buf, enc, cb) { - var matches; - var lastPos = 0; - var runningMatch = ''; - var matchCount = 0; - var rewritten = ''; - var haystack = tail + buf.toString(options.encoding); - tail = ''; - - while (totalMatches < options.limit && - (matches = match.exec(haystack)) !== null) { - - matchCount++; - var before = haystack.slice(lastPos, matches.index); - var regexMatch = matches; - lastPos = matches.index + regexMatch[0].length; - - if (lastPos > haystack.length && regexMatch[0].length < options.maxMatchLen) { - tail = regexMatch[0] - } else { - var dataToAppend = getDataToAppend(before,regexMatch); - rewritten += dataToAppend; - } - } - - if (tail.length < 1) - tail = haystack.slice(lastPos) > options.maxMatchLen ? haystack.slice(lastPos).slice(0 - options.maxMatchLen) : haystack.slice(lastPos) - - var dataToQueue = getDataToQueue(matchCount,haystack,rewritten,lastPos); - cb(null, dataToQueue); - } - - function getDataToAppend(before, match) { - var dataToAppend = before; - - totalMatches++; - - dataToAppend += isRegex ? replaceFn.apply(this, match.concat([match.index, match.input])) : replaceFn(match[0]); - - return dataToAppend; - } - - function getDataToQueue(matchCount, haystack, rewritten, lastPos) { - if (matchCount > 0) { - if (haystack.length > tail.length) { - return rewritten + haystack.slice(lastPos, haystack.length - tail.length); - } - - return rewritten; - } - - return haystack.slice(0, haystack.length - tail.length); - } - - function flush(cb) { - if (tail) { - this.push(tail); - } - cb(); - } - - return new Transform({ - transform: transform, - flush: flush - }); -}; - -function createReplaceFn(replace, isRegEx) { - var regexReplaceFunction = function () { - var newReplace = replace; - // ability to us $1 with captures - // Start at 1 and end at length - 2 to avoid the match parameter and offset - // And string parameters - var paramLength = arguments.length - 2; - for (var i = 1; i < paramLength; i++) { - newReplace = newReplace.replace(new RegExp('\\$' + i, 'g'), arguments[i] || '') - } - return newReplace; - }; - - if (isRegEx && !(replace instanceof Function)) { - return regexReplaceFunction; - } - - if (!(replace instanceof Function)) { - return function stringReplaceFunction() { - return replace; - }; - } - - return replace; -} - -function matchFromRegex(regex, options) { - if (options.regExpOptions) { - regex = new RegExp(regex.source, options.regExpOptions) - } - - // If there is no global flag then there can only be one match - if (!regex.global) { - options.limit = 1; - } - return regex; -} - -function matchFromString(s, options) { - if (options.regExpOptions) { - return new RegExp(escapeRegExp(s), options.regExpOptions); - } - - return new RegExp(escapeRegExp(s), options.ignoreCase === false ? 'gm' : 'gmi'); -} diff --git a/node_modules/replacestream/node_modules/isarray/.npmignore b/node_modules/replacestream/node_modules/isarray/.npmignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/replacestream/node_modules/isarray/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/replacestream/node_modules/isarray/.travis.yml b/node_modules/replacestream/node_modules/isarray/.travis.yml deleted file mode 100644 index cc4dba2..0000000 --- a/node_modules/replacestream/node_modules/isarray/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" diff --git a/node_modules/replacestream/node_modules/isarray/Makefile b/node_modules/replacestream/node_modules/isarray/Makefile deleted file mode 100644 index 787d56e..0000000 --- a/node_modules/replacestream/node_modules/isarray/Makefile +++ /dev/null @@ -1,6 +0,0 @@ - -test: - @node_modules/.bin/tape test.js - -.PHONY: test - diff --git a/node_modules/replacestream/node_modules/isarray/README.md b/node_modules/replacestream/node_modules/isarray/README.md deleted file mode 100644 index 16d2c59..0000000 --- a/node_modules/replacestream/node_modules/isarray/README.md +++ /dev/null @@ -1,60 +0,0 @@ - -# isarray - -`Array#isArray` for older browsers. - -[![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) -[![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) - -[![browser support](https://ci.testling.com/juliangruber/isarray.png) -](https://ci.testling.com/juliangruber/isarray) - -## Usage - -```js -var isArray = require('isarray'); - -console.log(isArray([])); // => true -console.log(isArray({})); // => false -``` - -## Installation - -With [npm](http://npmjs.org) do - -```bash -$ npm install isarray -``` - -Then bundle for the browser with -[browserify](https://github.com/substack/browserify). - -With [component](http://component.io) do - -```bash -$ component install juliangruber/isarray -``` - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.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/replacestream/node_modules/isarray/component.json b/node_modules/replacestream/node_modules/isarray/component.json deleted file mode 100644 index 9e31b68..0000000 --- a/node_modules/replacestream/node_modules/isarray/component.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name" : "isarray", - "description" : "Array#isArray for older browsers", - "version" : "0.0.1", - "repository" : "juliangruber/isarray", - "homepage": "https://github.com/juliangruber/isarray", - "main" : "index.js", - "scripts" : [ - "index.js" - ], - "dependencies" : {}, - "keywords": ["browser","isarray","array"], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT" -} diff --git a/node_modules/replacestream/node_modules/isarray/index.js b/node_modules/replacestream/node_modules/isarray/index.js deleted file mode 100644 index a57f634..0000000 --- a/node_modules/replacestream/node_modules/isarray/index.js +++ /dev/null @@ -1,5 +0,0 @@ -var toString = {}.toString; - -module.exports = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; -}; diff --git a/node_modules/replacestream/node_modules/isarray/package.json b/node_modules/replacestream/node_modules/isarray/package.json deleted file mode 100644 index cafa996..0000000 --- a/node_modules/replacestream/node_modules/isarray/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "isarray@~1.0.0", - "scope": null, - "escapedName": "isarray", - "name": "isarray", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/replacestream/node_modules/readable-stream" - ] - ], - "_from": "isarray@>=1.0.0 <1.1.0", - "_id": "isarray@1.0.0", - "_inCache": true, - "_location": "/replacestream/isarray", - "_nodeVersion": "5.1.0", - "_npmUser": { - "name": "juliangruber", - "email": "julian@juliangruber.com" - }, - "_npmVersion": "3.3.12", - "_phantomChildren": {}, - "_requested": { - "raw": "isarray@~1.0.0", - "scope": null, - "escapedName": "isarray", - "name": "isarray", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/replacestream/readable-stream" - ], - "_resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "_shasum": "bb935d48582cba168c06834957a54a3e07124f11", - "_shrinkwrap": null, - "_spec": "isarray@~1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/replacestream/node_modules/readable-stream", - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "bugs": { - "url": "https://github.com/juliangruber/isarray/issues" - }, - "dependencies": {}, - "description": "Array#isArray for older browsers", - "devDependencies": { - "tape": "~2.13.4" - }, - "directories": {}, - "dist": { - "shasum": "bb935d48582cba168c06834957a54a3e07124f11", - "tarball": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz" - }, - "gitHead": "2a23a281f369e9ae06394c0fb4d2381355a6ba33", - "homepage": "https://github.com/juliangruber/isarray", - "keywords": [ - "browser", - "isarray", - "array" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "juliangruber", - "email": "julian@juliangruber.com" - } - ], - "name": "isarray", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/isarray.git" - }, - "scripts": { - "test": "tape test.js" - }, - "testling": { - "files": "test.js", - "browsers": [ - "ie/8..latest", - "firefox/17..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "version": "1.0.0" -} diff --git a/node_modules/replacestream/node_modules/isarray/test.js b/node_modules/replacestream/node_modules/isarray/test.js deleted file mode 100644 index e0c3444..0000000 --- a/node_modules/replacestream/node_modules/isarray/test.js +++ /dev/null @@ -1,20 +0,0 @@ -var isArray = require('./'); -var test = require('tape'); - -test('is array', function(t){ - t.ok(isArray([])); - t.notOk(isArray({})); - t.notOk(isArray(null)); - t.notOk(isArray(false)); - - var obj = {}; - obj[0] = true; - t.notOk(isArray(obj)); - - var arr = []; - arr.foo = 'bar'; - t.ok(isArray(arr)); - - t.end(); -}); - diff --git a/node_modules/replacestream/node_modules/readable-stream/.npmignore b/node_modules/replacestream/node_modules/readable-stream/.npmignore deleted file mode 100644 index 6d270c6..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/.npmignore +++ /dev/null @@ -1,9 +0,0 @@ -build/ -test/ -examples/ -fs.js -zlib.js -.zuul.yml -.nyc_output -coverage -docs/ diff --git a/node_modules/replacestream/node_modules/readable-stream/.travis.yml b/node_modules/replacestream/node_modules/readable-stream/.travis.yml deleted file mode 100644 index 84504c9..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -sudo: false -language: node_js -before_install: - - npm install -g npm@2 - - npm install -g npm -notifications: - email: false -matrix: - fast_finish: true - include: - - node_js: '0.8' - env: TASK=test - - node_js: '0.10' - env: TASK=test - - node_js: '0.11' - env: TASK=test - - node_js: '0.12' - env: TASK=test - - node_js: 1 - env: TASK=test - - node_js: 2 - env: TASK=test - - node_js: 3 - env: TASK=test - - node_js: 4 - env: TASK=test - - node_js: 5 - env: TASK=test - - node_js: 6 - env: TASK=test - - node_js: 5 - env: TASK=browser BROWSER_NAME=android BROWSER_VERSION="4.0..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=ie BROWSER_VERSION="9..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=opera BROWSER_VERSION="11..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=chrome BROWSER_VERSION="-3..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=firefox BROWSER_VERSION="-3..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=safari BROWSER_VERSION="5..latest" - - node_js: 5 - env: TASK=browser BROWSER_NAME=microsoftedge BROWSER_VERSION=latest -script: "npm run $TASK" -env: - global: - - secure: rE2Vvo7vnjabYNULNyLFxOyt98BoJexDqsiOnfiD6kLYYsiQGfr/sbZkPMOFm9qfQG7pjqx+zZWZjGSswhTt+626C0t/njXqug7Yps4c3dFblzGfreQHp7wNX5TFsvrxd6dAowVasMp61sJcRnB2w8cUzoe3RAYUDHyiHktwqMc= - - secure: g9YINaKAdMatsJ28G9jCGbSaguXCyxSTy+pBO6Ch0Cf57ZLOTka3HqDj8p3nV28LUIHZ3ut5WO43CeYKwt4AUtLpBS3a0dndHdY6D83uY6b2qh5hXlrcbeQTq2cvw2y95F7hm4D1kwrgZ7ViqaKggRcEupAL69YbJnxeUDKWEdI= diff --git a/node_modules/replacestream/node_modules/readable-stream/CONTRIBUTING.md b/node_modules/replacestream/node_modules/readable-stream/CONTRIBUTING.md deleted file mode 100644 index f478d58..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/CONTRIBUTING.md +++ /dev/null @@ -1,38 +0,0 @@ -# Developer's Certificate of Origin 1.1 - -By making a contribution to this project, I certify that: - -* (a) The contribution was created in whole or in part by me and I - have the right to submit it under the open source license - indicated in the file; or - -* (b) The contribution is based upon previous work that, to the best - of my knowledge, is covered under an appropriate open source - license and I have the right under that license to submit that - work with modifications, whether created in whole or in part - by me, under the same open source license (unless I am - permitted to submit under a different license), as indicated - in the file; or - -* (c) The contribution was provided directly to me by some other - person who certified (a), (b) or (c) and I have not modified - it. - -* (d) I understand and agree that this project and the contribution - are public and that a record of the contribution (including all - personal information I submit with it, including my sign-off) is - maintained indefinitely and may be redistributed consistent with - this project or the open source license(s) involved. - -## Moderation Policy - -The [Node.js Moderation Policy] applies to this WG. - -## Code of Conduct - -The [Node.js Code of Conduct][] applies to this WG. - -[Node.js Code of Conduct]: -https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md -[Node.js Moderation Policy]: -https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md diff --git a/node_modules/replacestream/node_modules/readable-stream/GOVERNANCE.md b/node_modules/replacestream/node_modules/readable-stream/GOVERNANCE.md deleted file mode 100644 index 16ffb93..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/GOVERNANCE.md +++ /dev/null @@ -1,136 +0,0 @@ -### Streams Working Group - -The Node.js Streams is jointly governed by a Working Group -(WG) -that is responsible for high-level guidance of the project. - -The WG has final authority over this project including: - -* Technical direction -* Project governance and process (including this policy) -* Contribution policy -* GitHub repository hosting -* Conduct guidelines -* Maintaining the list of additional Collaborators - -For the current list of WG members, see the project -[README.md](./README.md#current-project-team-members). - -### Collaborators - -The readable-stream GitHub repository is -maintained by the WG and additional Collaborators who are added by the -WG on an ongoing basis. - -Individuals making significant and valuable contributions are made -Collaborators and given commit-access to the project. These -individuals are identified by the WG and their addition as -Collaborators is discussed during the WG meeting. - -_Note:_ If you make a significant contribution and are not considered -for commit-access log an issue or contact a WG member directly and it -will be brought up in the next WG meeting. - -Modifications of the contents of the readable-stream repository are -made on -a collaborative basis. Anybody with a GitHub account may propose a -modification via pull request and it will be considered by the project -Collaborators. All pull requests must be reviewed and accepted by a -Collaborator with sufficient expertise who is able to take full -responsibility for the change. In the case of pull requests proposed -by an existing Collaborator, an additional Collaborator is required -for sign-off. Consensus should be sought if additional Collaborators -participate and there is disagreement around a particular -modification. See _Consensus Seeking Process_ below for further detail -on the consensus model used for governance. - -Collaborators may opt to elevate significant or controversial -modifications, or modifications that have not found consensus to the -WG for discussion by assigning the ***WG-agenda*** tag to a pull -request or issue. The WG should serve as the final arbiter where -required. - -For the current list of Collaborators, see the project -[README.md](./README.md#members). - -### WG Membership - -WG seats are not time-limited. There is no fixed size of the WG. -However, the expected target is between 6 and 12, to ensure adequate -coverage of important areas of expertise, balanced with the ability to -make decisions efficiently. - -There is no specific set of requirements or qualifications for WG -membership beyond these rules. - -The WG may add additional members to the WG by unanimous consensus. - -A WG member may be removed from the WG by voluntary resignation, or by -unanimous consensus of all other WG members. - -Changes to WG membership should be posted in the agenda, and may be -suggested as any other agenda item (see "WG Meetings" below). - -If an addition or removal is proposed during a meeting, and the full -WG is not in attendance to participate, then the addition or removal -is added to the agenda for the subsequent meeting. This is to ensure -that all members are given the opportunity to participate in all -membership decisions. If a WG member is unable to attend a meeting -where a planned membership decision is being made, then their consent -is assumed. - -No more than 1/3 of the WG members may be affiliated with the same -employer. If removal or resignation of a WG member, or a change of -employment by a WG member, creates a situation where more than 1/3 of -the WG membership shares an employer, then the situation must be -immediately remedied by the resignation or removal of one or more WG -members affiliated with the over-represented employer(s). - -### WG Meetings - -The WG meets occasionally on a Google Hangout On Air. A designated moderator -approved by the WG runs the meeting. Each meeting should be -published to YouTube. - -Items are added to the WG agenda that are considered contentious or -are modifications of governance, contribution policy, WG membership, -or release process. - -The intention of the agenda is not to approve or review all patches; -that should happen continuously on GitHub and be handled by the larger -group of Collaborators. - -Any community member or contributor can ask that something be added to -the next meeting's agenda by logging a GitHub Issue. Any Collaborator, -WG member or the moderator can add the item to the agenda by adding -the ***WG-agenda*** tag to the issue. - -Prior to each WG meeting the moderator will share the Agenda with -members of the WG. WG members can add any items they like to the -agenda at the beginning of each meeting. The moderator and the WG -cannot veto or remove items. - -The WG may invite persons or representatives from certain projects to -participate in a non-voting capacity. - -The moderator is responsible for summarizing the discussion of each -agenda item and sends it as a pull request after the meeting. - -### Consensus Seeking Process - -The WG follows a -[Consensus -Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making) -decision-making model. - -When an agenda item has appeared to reach a consensus the moderator -will ask "Does anyone object?" as a final call for dissent from the -consensus. - -If an agenda item cannot reach a consensus a WG member can call for -either a closing vote or a vote to table the issue to the next -meeting. The call for a vote must be seconded by a majority of the WG -or else the discussion will continue. Simple majority wins. - -Note that changes to WG membership require a majority consensus. See -"WG Membership" above. diff --git a/node_modules/replacestream/node_modules/readable-stream/LICENSE b/node_modules/replacestream/node_modules/readable-stream/LICENSE deleted file mode 100644 index 2873b3b..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Node.js is licensed for use as follows: - -""" -Copyright Node.js 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. -""" - -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: - -""" -Copyright Joyent, Inc. and other Node 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/replacestream/node_modules/readable-stream/README.md b/node_modules/replacestream/node_modules/readable-stream/README.md deleted file mode 100644 index 6cc54ca..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# readable-stream - -***Node-core v7.0.0 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream) - - -[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/) -[![NPM](https://nodei.co/npm-dl/readable-stream.png?&months=6&height=3)](https://nodei.co/npm/readable-stream/) - - -[![Sauce Test Status](https://saucelabs.com/browser-matrix/readable-stream.svg)](https://saucelabs.com/u/readable-stream) - -```bash -npm install --save readable-stream -``` - -***Node-core streams for userland*** - -This package is a mirror of the Streams2 and Streams3 implementations in -Node-core. - -Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v7.3.0/docs/api/). - -If you want to guarantee a stable streams base, regardless of what version of -Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html). - -As of version 2.0.0 **readable-stream** uses semantic versioning. - -# Streams Working Group - -`readable-stream` is maintained by the Streams Working Group, which -oversees the development and maintenance of the Streams API within -Node.js. The responsibilities of the Streams Working Group include: - -* Addressing stream issues on the Node.js issue tracker. -* Authoring and editing stream documentation within the Node.js project. -* Reviewing changes to stream subclasses within the Node.js project. -* Redirecting changes to streams from the Node.js project to this - project. -* Assisting in the implementation of stream providers within Node.js. -* Recommending versions of `readable-stream` to be included in Node.js. -* Messaging about the future of streams to give the community advance - notice of changes. - - -## Team Members - -* **Chris Dickinson** ([@chrisdickinson](https://github.com/chrisdickinson)) <christopher.s.dickinson@gmail.com> - - Release GPG key: 9554F04D7259F04124DE6B476D5A82AC7E37093B -* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) <calvin.metcalf@gmail.com> - - Release GPG key: F3EF5F62A87FC27A22E643F714CE4FF5015AA242 -* **Rod Vagg** ([@rvagg](https://github.com/rvagg)) <rod@vagg.org> - - Release GPG key: DD8F2338BAE7501E3DD5AC78C273792F7D83545D -* **Sam Newman** ([@sonewman](https://github.com/sonewman)) <newmansam@outlook.com> -* **Mathias Buus** ([@mafintosh](https://github.com/mafintosh)) <mathiasbuus@gmail.com> -* **Domenic Denicola** ([@domenic](https://github.com/domenic)) <d@domenic.me> -* **Matteo Collina** ([@mcollina](https://github.com/mcollina)) <matteo.collina@gmail.com> - - Release GPG key: 3ABC01543F22DD2239285CDD818674489FBC127E diff --git a/node_modules/replacestream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md b/node_modules/replacestream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md deleted file mode 100644 index 83275f1..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +++ /dev/null @@ -1,60 +0,0 @@ -# streams WG Meeting 2015-01-30 - -## Links - -* **Google Hangouts Video**: http://www.youtube.com/watch?v=I9nDOSGfwZg -* **GitHub Issue**: https://github.com/iojs/readable-stream/issues/106 -* **Original Minutes Google Doc**: https://docs.google.com/document/d/17aTgLnjMXIrfjgNaTUnHQO7m3xgzHR2VXBTmi03Qii4/ - -## Agenda - -Extracted from https://github.com/iojs/readable-stream/labels/wg-agenda prior to meeting. - -* adopt a charter [#105](https://github.com/iojs/readable-stream/issues/105) -* release and versioning strategy [#101](https://github.com/iojs/readable-stream/issues/101) -* simpler stream creation [#102](https://github.com/iojs/readable-stream/issues/102) -* proposal: deprecate implicit flowing of streams [#99](https://github.com/iojs/readable-stream/issues/99) - -## Minutes - -### adopt a charter - -* group: +1's all around - -### What versioning scheme should be adopted? -* group: +1’s 3.0.0 -* domenic+group: pulling in patches from other sources where appropriate -* mikeal: version independently, suggesting versions for io.js -* mikeal+domenic: work with TC to notify in advance of changes -simpler stream creation - -### streamline creation of streams -* sam: streamline creation of streams -* domenic: nice simple solution posted - but, we lose the opportunity to change the model - may not be backwards incompatible (double check keys) - - **action item:** domenic will check - -### remove implicit flowing of streams on(‘data’) -* add isFlowing / isPaused -* mikeal: worrying that we’re documenting polyfill methods – confuses users -* domenic: more reflective API is probably good, with warning labels for users -* new section for mad scientists (reflective stream access) -* calvin: name the “third state” -* mikeal: maybe borrow the name from whatwg? -* domenic: we’re missing the “third state” -* consensus: kind of difficult to name the third state -* mikeal: figure out differences in states / compat -* mathias: always flow on data – eliminates third state - * explore what it breaks - -**action items:** -* ask isaac for ability to list packages by what public io.js APIs they use (esp. Stream) -* ask rod/build for infrastructure -* **chris**: explore the “flow on data” approach -* add isPaused/isFlowing -* add new docs section -* move isPaused to that section - - diff --git a/node_modules/replacestream/node_modules/readable-stream/duplex.js b/node_modules/replacestream/node_modules/readable-stream/duplex.js deleted file mode 100644 index ca807af..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/duplex.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_duplex.js") diff --git a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/replacestream/node_modules/readable-stream/lib/_stream_duplex.js deleted file mode 100644 index 736693b..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_duplex.js +++ /dev/null @@ -1,75 +0,0 @@ -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. - -'use strict'; - -/**/ - -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) { - keys.push(key); - }return keys; -}; -/**/ - -module.exports = Duplex; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -var Readable = require('./_stream_readable'); -var Writable = require('./_stream_writable'); - -util.inherits(Duplex, Readable); - -var keys = objectKeys(Writable.prototype); -for (var v = 0; v < keys.length; v++) { - var method = keys[v]; - if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; -} - -function Duplex(options) { - if (!(this instanceof Duplex)) return new Duplex(options); - - Readable.call(this, options); - Writable.call(this, options); - - if (options && options.readable === false) this.readable = false; - - if (options && options.writable === false) this.writable = false; - - this.allowHalfOpen = true; - if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; - - this.once('end', onend); -} - -// the no-half-open enforcer -function onend() { - // if we allow half-open state, or if the writable side ended, - // then we're ok. - if (this.allowHalfOpen || this._writableState.ended) return; - - // no more data can be written. - // But allow more writes to happen in this tick. - processNextTick(onEndNT, this); -} - -function onEndNT(self) { - self.end(); -} - -function forEach(xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} \ No newline at end of file diff --git a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/replacestream/node_modules/readable-stream/lib/_stream_passthrough.js deleted file mode 100644 index d06f71f..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_passthrough.js +++ /dev/null @@ -1,26 +0,0 @@ -// a passthrough stream. -// basically just the most minimal sort of Transform stream. -// Every written chunk gets output as-is. - -'use strict'; - -module.exports = PassThrough; - -var Transform = require('./_stream_transform'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -util.inherits(PassThrough, Transform); - -function PassThrough(options) { - if (!(this instanceof PassThrough)) return new PassThrough(options); - - Transform.call(this, options); -} - -PassThrough.prototype._transform = function (chunk, encoding, cb) { - cb(null, chunk); -}; \ No newline at end of file diff --git a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/replacestream/node_modules/readable-stream/lib/_stream_readable.js deleted file mode 100644 index 3a7d42d..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_readable.js +++ /dev/null @@ -1,941 +0,0 @@ -'use strict'; - -module.exports = Readable; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var isArray = require('isarray'); -/**/ - -/**/ -var Duplex; -/**/ - -Readable.ReadableState = ReadableState; - -/**/ -var EE = require('events').EventEmitter; - -var EElistenerCount = function (emitter, type) { - return emitter.listeners(type).length; -}; -/**/ - -/**/ -var Stream; -(function () { - try { - Stream = require('st' + 'ream'); - } catch (_) {} finally { - if (!Stream) Stream = require('events').EventEmitter; - } -})(); -/**/ - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -/**/ -var debugUtil = require('util'); -var debug = void 0; -if (debugUtil && debugUtil.debuglog) { - debug = debugUtil.debuglog('stream'); -} else { - debug = function () {}; -} -/**/ - -var BufferList = require('./internal/streams/BufferList'); -var StringDecoder; - -util.inherits(Readable, Stream); - -function prependListener(emitter, event, fn) { - // Sadly this is not cacheable as some libraries bundle their own - // event emitter implementation with them. - if (typeof emitter.prependListener === 'function') { - return emitter.prependListener(event, fn); - } else { - // This is a hack to make sure that our error handler is attached before any - // userland ones. NEVER DO THIS. This is here only because this code needs - // to continue to work with older versions of Node.js that do not include - // the prependListener() method. The goal is to eventually remove this hack. - if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; - } -} - -function ReadableState(options, stream) { - Duplex = Duplex || require('./_stream_duplex'); - - options = options || {}; - - // object stream flag. Used to make read(n) ignore n and to - // make all the buffer merging and length checks go away - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode; - - // the point at which it stops calling _read() to fill the buffer - // Note: 0 is a valid value, means "don't call _read preemptively ever" - var hwm = options.highWaterMark; - var defaultHwm = this.objectMode ? 16 : 16 * 1024; - this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; - - // cast to ints. - this.highWaterMark = ~ ~this.highWaterMark; - - // A linked list is used to store data chunks instead of an array because the - // linked list can remove elements from the beginning faster than - // array.shift() - this.buffer = new BufferList(); - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // whenever we return null, then we set a flag to say - // that we're awaiting a 'readable' event emission. - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - this.resumeScheduled = false; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // when piping, we only care about 'readable' events that happen - // after read()ing all the bytes and not getting any pushback. - this.ranOut = false; - - // the number of writers that are awaiting a drain event in .pipe()s - this.awaitDrain = 0; - - // if true, a maybeReadMore has been scheduled - this.readingMore = false; - - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } -} - -function Readable(options) { - Duplex = Duplex || require('./_stream_duplex'); - - if (!(this instanceof Readable)) return new Readable(options); - - this._readableState = new ReadableState(options, this); - - // legacy - this.readable = true; - - if (options && typeof options.read === 'function') this._read = options.read; - - Stream.call(this); -} - -// Manually shove something into the read() buffer. -// This returns true if the highWaterMark has not been hit yet, -// similar to how Writable.write() returns true if you should -// write() some more. -Readable.prototype.push = function (chunk, encoding) { - var state = this._readableState; - - if (!state.objectMode && typeof chunk === 'string') { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = bufferShim.from(chunk, encoding); - encoding = ''; - } - } - - return readableAddChunk(this, state, chunk, encoding, false); -}; - -// Unshift should *always* be something directly out of read() -Readable.prototype.unshift = function (chunk) { - var state = this._readableState; - return readableAddChunk(this, state, chunk, '', true); -}; - -Readable.prototype.isPaused = function () { - return this._readableState.flowing === false; -}; - -function readableAddChunk(stream, state, chunk, encoding, addToFront) { - var er = chunkInvalid(state, chunk); - if (er) { - stream.emit('error', er); - } else if (chunk === null) { - state.reading = false; - onEofChunk(stream, state); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (state.ended && !addToFront) { - var e = new Error('stream.push() after EOF'); - stream.emit('error', e); - } else if (state.endEmitted && addToFront) { - var _e = new Error('stream.unshift() after end event'); - stream.emit('error', _e); - } else { - var skipAdd; - if (state.decoder && !addToFront && !encoding) { - chunk = state.decoder.write(chunk); - skipAdd = !state.objectMode && chunk.length === 0; - } - - if (!addToFront) state.reading = false; - - // Don't add to the buffer if we've decoded to an empty string chunk and - // we're not in object mode - if (!skipAdd) { - // if we want the data now, just emit it. - if (state.flowing && state.length === 0 && !state.sync) { - stream.emit('data', chunk); - stream.read(0); - } else { - // update the buffer info. - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); - - if (state.needReadable) emitReadable(stream); - } - } - - maybeReadMore(stream, state); - } - } else if (!addToFront) { - state.reading = false; - } - - return needMoreData(state); -} - -// if it's past the high water mark, we can push in some more. -// Also, if we have no data yet, we can stand some -// more bytes. This is to work around cases where hwm=0, -// such as the repl. Also, if the push() triggered a -// readable event, and the user called read(largeNumber) such that -// needReadable was set, then we ought to push more, so that another -// 'readable' event will be triggered. -function needMoreData(state) { - return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); -} - -// backwards compatibility. -Readable.prototype.setEncoding = function (enc) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; - this._readableState.decoder = new StringDecoder(enc); - this._readableState.encoding = enc; - return this; -}; - -// Don't raise the hwm > 8MB -var MAX_HWM = 0x800000; -function computeNewHighWaterMark(n) { - if (n >= MAX_HWM) { - n = MAX_HWM; - } else { - // Get the next highest power of 2 to prevent increasing hwm excessively in - // tiny amounts - n--; - n |= n >>> 1; - n |= n >>> 2; - n |= n >>> 4; - n |= n >>> 8; - n |= n >>> 16; - n++; - } - return n; -} - -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function howMuchToRead(n, state) { - if (n <= 0 || state.length === 0 && state.ended) return 0; - if (state.objectMode) return 1; - if (n !== n) { - // Only flow one buffer at a time - if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; - } - // If we're asking for more than the current hwm, then raise the hwm. - if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); - if (n <= state.length) return n; - // Don't have enough - if (!state.ended) { - state.needReadable = true; - return 0; - } - return state.length; -} - -// you can override either this method, or the async _read(n) below. -Readable.prototype.read = function (n) { - debug('read', n); - n = parseInt(n, 10); - var state = this._readableState; - var nOrig = n; - - if (n !== 0) state.emittedReadable = false; - - // if we're doing read(0) to trigger a readable event, but we - // already have a bunch of data in the buffer, then just trigger - // the 'readable' event and move on. - if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { - debug('read: emitReadable', state.length, state.ended); - if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); - return null; - } - - n = howMuchToRead(n, state); - - // if we've ended, and we're now clear, then finish it up. - if (n === 0 && state.ended) { - if (state.length === 0) endReadable(this); - return null; - } - - // All the actual chunk generation logic needs to be - // *below* the call to _read. The reason is that in certain - // synthetic stream cases, such as passthrough streams, _read - // may be a completely synchronous operation which may change - // the state of the read buffer, providing enough data when - // before there was *not* enough. - // - // So, the steps are: - // 1. Figure out what the state of things will be after we do - // a read from the buffer. - // - // 2. If that resulting state will trigger a _read, then call _read. - // Note that this may be asynchronous, or synchronous. Yes, it is - // deeply ugly to write APIs this way, but that still doesn't mean - // that the Readable class should behave improperly, as streams are - // designed to be sync/async agnostic. - // Take note if the _read call is sync or async (ie, if the read call - // has returned yet), so that we know whether or not it's safe to emit - // 'readable' etc. - // - // 3. Actually pull the requested chunks out of the buffer and return. - - // if we need a readable event, then we need to do some reading. - var doRead = state.needReadable; - debug('need readable', doRead); - - // if we currently have less than the highWaterMark, then also read some - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug('length less than watermark', doRead); - } - - // however, if we've ended, then there's no point, and if we're already - // reading, then it's unnecessary. - if (state.ended || state.reading) { - doRead = false; - debug('reading or ended', doRead); - } else if (doRead) { - debug('do read'); - state.reading = true; - state.sync = true; - // if the length is currently zero, then we *need* a readable event. - if (state.length === 0) state.needReadable = true; - // call internal read method - this._read(state.highWaterMark); - state.sync = false; - // If _read pushed data synchronously, then `reading` will be false, - // and we need to re-evaluate how much data we can return to the user. - if (!state.reading) n = howMuchToRead(nOrig, state); - } - - var ret; - if (n > 0) ret = fromList(n, state);else ret = null; - - if (ret === null) { - state.needReadable = true; - n = 0; - } else { - state.length -= n; - } - - if (state.length === 0) { - // If we have nothing in the buffer, then we want to know - // as soon as we *do* get something into the buffer. - if (!state.ended) state.needReadable = true; - - // If we tried to read() past the EOF, then emit end on the next tick. - if (nOrig !== n && state.ended) endReadable(this); - } - - if (ret !== null) this.emit('data', ret); - - return ret; -}; - -function chunkInvalid(state, chunk) { - var er = null; - if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { - er = new TypeError('Invalid non-string/buffer chunk'); - } - return er; -} - -function onEofChunk(stream, state) { - if (state.ended) return; - if (state.decoder) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - - // emit 'readable' now to make sure it gets picked up. - emitReadable(stream); -} - -// Don't emit readable right away in sync mode, because this can trigger -// another read() call => stack overflow. This way, it might trigger -// a nextTick recursion warning, but that's not so bad. -function emitReadable(stream) { - var state = stream._readableState; - state.needReadable = false; - if (!state.emittedReadable) { - debug('emitReadable', state.flowing); - state.emittedReadable = true; - if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream); - } -} - -function emitReadable_(stream) { - debug('emit readable'); - stream.emit('readable'); - flow(stream); -} - -// at this point, the user has presumably seen the 'readable' event, -// and called read() to consume some data. that may have triggered -// in turn another _read(n) call, in which case reading = true if -// it's in progress. -// However, if we're not ended, or reading, and the length < hwm, -// then go ahead and try to read some more preemptively. -function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - processNextTick(maybeReadMore_, stream, state); - } -} - -function maybeReadMore_(stream, state) { - var len = state.length; - while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { - debug('maybeReadMore read 0'); - stream.read(0); - if (len === state.length) - // didn't get any data, stop spinning. - break;else len = state.length; - } - state.readingMore = false; -} - -// abstract method. to be overridden in specific implementation classes. -// call cb(er, data) where data is <= n in length. -// for virtual (non-string, non-buffer) streams, "length" is somewhat -// arbitrary, and perhaps not very meaningful. -Readable.prototype._read = function (n) { - this.emit('error', new Error('_read() is not implemented')); -}; - -Readable.prototype.pipe = function (dest, pipeOpts) { - var src = this; - var state = this._readableState; - - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); - - var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; - - var endFn = doEnd ? onend : cleanup; - if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn); - - dest.on('unpipe', onunpipe); - function onunpipe(readable) { - debug('onunpipe'); - if (readable === src) { - cleanup(); - } - } - - function onend() { - debug('onend'); - dest.end(); - } - - // when the dest drains, it reduces the awaitDrain counter - // on the source. This would be more elegant with a .once() - // handler in flow(), but adding and removing repeatedly is - // too slow. - var ondrain = pipeOnDrain(src); - dest.on('drain', ondrain); - - var cleanedUp = false; - function cleanup() { - debug('cleanup'); - // cleanup event handlers once the pipe is broken - dest.removeListener('close', onclose); - dest.removeListener('finish', onfinish); - dest.removeListener('drain', ondrain); - dest.removeListener('error', onerror); - dest.removeListener('unpipe', onunpipe); - src.removeListener('end', onend); - src.removeListener('end', cleanup); - src.removeListener('data', ondata); - - cleanedUp = true; - - // if the reader is waiting for a drain event from this - // specific writer, then it would cause it to never start - // flowing again. - // So, if this is awaiting a drain, then we just call it now. - // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); - } - - // If the user pushes more data while we're writing to dest then we'll end up - // in ondata again. However, we only want to increase awaitDrain once because - // dest will only emit one 'drain' event for the multiple writes. - // => Introduce a guard on increasing awaitDrain. - var increasedAwaitDrain = false; - src.on('data', ondata); - function ondata(chunk) { - debug('ondata'); - increasedAwaitDrain = false; - var ret = dest.write(chunk); - if (false === ret && !increasedAwaitDrain) { - // If the user unpiped during `dest.write()`, it is possible - // to get stuck in a permanently paused state if that write - // also returned false. - // => Check whether `dest` is still a piping destination. - if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { - debug('false write response, pause', src._readableState.awaitDrain); - src._readableState.awaitDrain++; - increasedAwaitDrain = true; - } - src.pause(); - } - } - - // if the dest has an error, then stop piping into it. - // however, don't suppress the throwing behavior for this. - function onerror(er) { - debug('onerror', er); - unpipe(); - dest.removeListener('error', onerror); - if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); - } - - // Make sure our error handler is attached before userland ones. - prependListener(dest, 'error', onerror); - - // Both close and finish should trigger unpipe, but only once. - function onclose() { - dest.removeListener('finish', onfinish); - unpipe(); - } - dest.once('close', onclose); - function onfinish() { - debug('onfinish'); - dest.removeListener('close', onclose); - unpipe(); - } - dest.once('finish', onfinish); - - function unpipe() { - debug('unpipe'); - src.unpipe(dest); - } - - // tell the dest that it's being piped to - dest.emit('pipe', src); - - // start the flow if it hasn't been started already. - if (!state.flowing) { - debug('pipe resume'); - src.resume(); - } - - return dest; -}; - -function pipeOnDrain(src) { - return function () { - var state = src._readableState; - debug('pipeOnDrain', state.awaitDrain); - if (state.awaitDrain) state.awaitDrain--; - if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { - state.flowing = true; - flow(src); - } - }; -} - -Readable.prototype.unpipe = function (dest) { - var state = this._readableState; - - // if we're not piping anywhere, then do nothing. - if (state.pipesCount === 0) return this; - - // just one destination. most common case. - if (state.pipesCount === 1) { - // passed in one, but it's not the right one. - if (dest && dest !== state.pipes) return this; - - if (!dest) dest = state.pipes; - - // got a match. - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) dest.emit('unpipe', this); - return this; - } - - // slow case. multiple pipe destinations. - - if (!dest) { - // remove all. - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - - for (var i = 0; i < len; i++) { - dests[i].emit('unpipe', this); - }return this; - } - - // try to find the right one. - var index = indexOf(state.pipes, dest); - if (index === -1) return this; - - state.pipes.splice(index, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) state.pipes = state.pipes[0]; - - dest.emit('unpipe', this); - - return this; -}; - -// set up data events if they are asked for -// Ensure readable listeners eventually get something -Readable.prototype.on = function (ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - - if (ev === 'data') { - // Start flowing on next tick if stream isn't explicitly paused - if (this._readableState.flowing !== false) this.resume(); - } else if (ev === 'readable') { - var state = this._readableState; - if (!state.endEmitted && !state.readableListening) { - state.readableListening = state.needReadable = true; - state.emittedReadable = false; - if (!state.reading) { - processNextTick(nReadingNextTick, this); - } else if (state.length) { - emitReadable(this, state); - } - } - } - - return res; -}; -Readable.prototype.addListener = Readable.prototype.on; - -function nReadingNextTick(self) { - debug('readable nexttick read 0'); - self.read(0); -} - -// pause() and resume() are remnants of the legacy readable stream API -// If the user uses them, then switch into old mode. -Readable.prototype.resume = function () { - var state = this._readableState; - if (!state.flowing) { - debug('resume'); - state.flowing = true; - resume(this, state); - } - return this; -}; - -function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - processNextTick(resume_, stream, state); - } -} - -function resume_(stream, state) { - if (!state.reading) { - debug('resume read 0'); - stream.read(0); - } - - state.resumeScheduled = false; - state.awaitDrain = 0; - stream.emit('resume'); - flow(stream); - if (state.flowing && !state.reading) stream.read(0); -} - -Readable.prototype.pause = function () { - debug('call pause flowing=%j', this._readableState.flowing); - if (false !== this._readableState.flowing) { - debug('pause'); - this._readableState.flowing = false; - this.emit('pause'); - } - return this; -}; - -function flow(stream) { - var state = stream._readableState; - debug('flow', state.flowing); - while (state.flowing && stream.read() !== null) {} -} - -// wrap an old-style stream as the async data source. -// This is *not* part of the readable stream interface. -// It is an ugly unfortunate mess of history. -Readable.prototype.wrap = function (stream) { - var state = this._readableState; - var paused = false; - - var self = this; - stream.on('end', function () { - debug('wrapped end'); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) self.push(chunk); - } - - self.push(null); - }); - - stream.on('data', function (chunk) { - debug('wrapped data'); - if (state.decoder) chunk = state.decoder.write(chunk); - - // don't skip over falsy values in objectMode - if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; - - var ret = self.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); - - // proxy all the other methods. - // important when wrapping filters and duplexes. - for (var i in stream) { - if (this[i] === undefined && typeof stream[i] === 'function') { - this[i] = function (method) { - return function () { - return stream[method].apply(stream, arguments); - }; - }(i); - } - } - - // proxy certain important events. - var events = ['error', 'close', 'destroy', 'pause', 'resume']; - forEach(events, function (ev) { - stream.on(ev, self.emit.bind(self, ev)); - }); - - // when we try to consume some more bytes, simply unpause the - // underlying stream. - self._read = function (n) { - debug('wrapped _read', n); - if (paused) { - paused = false; - stream.resume(); - } - }; - - return self; -}; - -// exposed for testing purposes only. -Readable._fromList = fromList; - -// Pluck off n bytes from an array of buffers. -// Length is the combined lengths of all the buffers in the list. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function fromList(n, state) { - // nothing buffered - if (state.length === 0) return null; - - var ret; - if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { - // read it all, truncate the list - if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length); - state.buffer.clear(); - } else { - // read part of list - ret = fromListPartial(n, state.buffer, state.decoder); - } - - return ret; -} - -// Extracts only enough buffered data to satisfy the amount requested. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function fromListPartial(n, list, hasStrings) { - var ret; - if (n < list.head.data.length) { - // slice is the same for buffers and strings - ret = list.head.data.slice(0, n); - list.head.data = list.head.data.slice(n); - } else if (n === list.head.data.length) { - // first chunk is a perfect match - ret = list.shift(); - } else { - // result spans more than one buffer - ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); - } - return ret; -} - -// Copies a specified amount of characters from the list of buffered data -// chunks. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function copyFromBufferString(n, list) { - var p = list.head; - var c = 1; - var ret = p.data; - n -= ret.length; - while (p = p.next) { - var str = p.data; - var nb = n > str.length ? str.length : n; - if (nb === str.length) ret += str;else ret += str.slice(0, n); - n -= nb; - if (n === 0) { - if (nb === str.length) { - ++c; - if (p.next) list.head = p.next;else list.head = list.tail = null; - } else { - list.head = p; - p.data = str.slice(nb); - } - break; - } - ++c; - } - list.length -= c; - return ret; -} - -// Copies a specified amount of bytes from the list of buffered data chunks. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function copyFromBuffer(n, list) { - var ret = bufferShim.allocUnsafe(n); - var p = list.head; - var c = 1; - p.data.copy(ret); - n -= p.data.length; - while (p = p.next) { - var buf = p.data; - var nb = n > buf.length ? buf.length : n; - buf.copy(ret, ret.length - n, 0, nb); - n -= nb; - if (n === 0) { - if (nb === buf.length) { - ++c; - if (p.next) list.head = p.next;else list.head = list.tail = null; - } else { - list.head = p; - p.data = buf.slice(nb); - } - break; - } - ++c; - } - list.length -= c; - return ret; -} - -function endReadable(stream) { - var state = stream._readableState; - - // If we get here before consuming all the bytes, then that is a - // bug in node. Should never happen. - if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); - - if (!state.endEmitted) { - state.ended = true; - processNextTick(endReadableNT, state, stream); - } -} - -function endReadableNT(state, stream) { - // Check that we didn't get one last unshift. - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit('end'); - } -} - -function forEach(xs, f) { - for (var i = 0, l = xs.length; i < l; i++) { - f(xs[i], i); - } -} - -function indexOf(xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) return i; - } - return -1; -} \ No newline at end of file diff --git a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/replacestream/node_modules/readable-stream/lib/_stream_transform.js deleted file mode 100644 index cd25832..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_transform.js +++ /dev/null @@ -1,182 +0,0 @@ -// a transform stream is a readable/writable stream where you do -// something with the data. Sometimes it's called a "filter", -// but that's not a great name for it, since that implies a thing where -// some bits pass through, and others are simply ignored. (That would -// be a valid example of a transform, of course.) -// -// While the output is causally related to the input, it's not a -// necessarily symmetric or synchronous transformation. For example, -// a zlib stream might take multiple plain-text writes(), and then -// emit a single compressed chunk some time in the future. -// -// Here's how this works: -// -// The Transform stream has all the aspects of the readable and writable -// stream classes. When you write(chunk), that calls _write(chunk,cb) -// internally, and returns false if there's a lot of pending writes -// buffered up. When you call read(), that calls _read(n) until -// there's enough pending readable data buffered up. -// -// In a transform stream, the written data is placed in a buffer. When -// _read(n) is called, it transforms the queued up data, calling the -// buffered _write cb's as it consumes chunks. If consuming a single -// written chunk would result in multiple output chunks, then the first -// outputted bit calls the readcb, and subsequent chunks just go into -// the read buffer, and will cause it to emit 'readable' if necessary. -// -// This way, back-pressure is actually determined by the reading side, -// since _read has to be called to start processing a new chunk. However, -// a pathological inflate type of transform can cause excessive buffering -// here. For example, imagine a stream where every byte of input is -// interpreted as an integer from 0-255, and then results in that many -// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in -// 1kb of data being output. In this case, you could write a very small -// amount of input, and end up with a very large amount of output. In -// such a pathological inflating mechanism, there'd be no way to tell -// the system to stop doing the transform. A single 4MB write could -// cause the system to run out of memory. -// -// However, even in such a pathological case, only a single written chunk -// would be consumed, and then the rest would wait (un-transformed) until -// the results of the previous transformed chunk were consumed. - -'use strict'; - -module.exports = Transform; - -var Duplex = require('./_stream_duplex'); - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -util.inherits(Transform, Duplex); - -function TransformState(stream) { - this.afterTransform = function (er, data) { - return afterTransform(stream, er, data); - }; - - this.needTransform = false; - this.transforming = false; - this.writecb = null; - this.writechunk = null; - this.writeencoding = null; -} - -function afterTransform(stream, er, data) { - var ts = stream._transformState; - ts.transforming = false; - - var cb = ts.writecb; - - if (!cb) return stream.emit('error', new Error('no writecb in Transform class')); - - ts.writechunk = null; - ts.writecb = null; - - if (data !== null && data !== undefined) stream.push(data); - - cb(er); - - var rs = stream._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - stream._read(rs.highWaterMark); - } -} - -function Transform(options) { - if (!(this instanceof Transform)) return new Transform(options); - - Duplex.call(this, options); - - this._transformState = new TransformState(this); - - var stream = this; - - // start out asking for a readable event once data is transformed. - this._readableState.needReadable = true; - - // we have implemented the _read method, and done the other things - // that Readable wants before the first _read call, so unset the - // sync guard flag. - this._readableState.sync = false; - - if (options) { - if (typeof options.transform === 'function') this._transform = options.transform; - - if (typeof options.flush === 'function') this._flush = options.flush; - } - - // When the writable side finishes, then flush out anything remaining. - this.once('prefinish', function () { - if (typeof this._flush === 'function') this._flush(function (er, data) { - done(stream, er, data); - });else done(stream); - }); -} - -Transform.prototype.push = function (chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); -}; - -// This is the part where you do stuff! -// override this function in implementation classes. -// 'chunk' is an input chunk. -// -// Call `push(newChunk)` to pass along transformed output -// to the readable side. You may call 'push' zero or more times. -// -// Call `cb(err)` when you are done with this chunk. If you pass -// an error, then that'll put the hurt on the whole operation. If you -// never call cb(), then you'll never get another chunk. -Transform.prototype._transform = function (chunk, encoding, cb) { - throw new Error('_transform() is not implemented'); -}; - -Transform.prototype._write = function (chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); - } -}; - -// Doesn't matter what the args are here. -// _transform does all the work. -// That we got here means that the readable side wants more data. -Transform.prototype._read = function (n) { - var ts = this._transformState; - - if (ts.writechunk !== null && ts.writecb && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - // mark that we need a transform, so that any data that comes in - // will get processed, now that we've asked for it. - ts.needTransform = true; - } -}; - -function done(stream, er, data) { - if (er) return stream.emit('error', er); - - if (data !== null && data !== undefined) stream.push(data); - - // if there's nothing in the write buffer, then that means - // that nothing more will ever be provided - var ws = stream._writableState; - var ts = stream._transformState; - - if (ws.length) throw new Error('Calling transform done when ws.length != 0'); - - if (ts.transforming) throw new Error('Calling transform done when still transforming'); - - return stream.push(null); -} \ No newline at end of file diff --git a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/replacestream/node_modules/readable-stream/lib/_stream_writable.js deleted file mode 100644 index 4d9c62b..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/lib/_stream_writable.js +++ /dev/null @@ -1,554 +0,0 @@ -// A bit simpler than readable streams. -// Implement an async ._write(chunk, encoding, cb), and it'll handle all -// the drain event emission and buffering. - -'use strict'; - -module.exports = Writable; - -/**/ -var processNextTick = require('process-nextick-args'); -/**/ - -/**/ -var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick; -/**/ - -/**/ -var Duplex; -/**/ - -Writable.WritableState = WritableState; - -/**/ -var util = require('core-util-is'); -util.inherits = require('inherits'); -/**/ - -/**/ -var internalUtil = { - deprecate: require('util-deprecate') -}; -/**/ - -/**/ -var Stream; -(function () { - try { - Stream = require('st' + 'ream'); - } catch (_) {} finally { - if (!Stream) Stream = require('events').EventEmitter; - } -})(); -/**/ - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -util.inherits(Writable, Stream); - -function nop() {} - -function WriteReq(chunk, encoding, cb) { - this.chunk = chunk; - this.encoding = encoding; - this.callback = cb; - this.next = null; -} - -function WritableState(options, stream) { - Duplex = Duplex || require('./_stream_duplex'); - - options = options || {}; - - // object stream flag to indicate whether or not this stream - // contains buffers or objects. - this.objectMode = !!options.objectMode; - - if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode; - - // the point at which write() starts returning false - // Note: 0 is a valid value, means that we always return false if - // the entire buffer is not flushed immediately on write() - var hwm = options.highWaterMark; - var defaultHwm = this.objectMode ? 16 : 16 * 1024; - this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; - - // cast to ints. - this.highWaterMark = ~ ~this.highWaterMark; - - // drain event flag. - this.needDrain = false; - // at the start of calling end() - this.ending = false; - // when end() has been called, and returned - this.ended = false; - // when 'finish' is emitted - this.finished = false; - - // should we decode strings into buffers before passing to _write? - // this is here so that some node-core streams can optimize string - // handling at a lower level. - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // not an actual buffer we keep track of, but a measurement - // of how much we're waiting to get pushed to some underlying - // socket or file. - this.length = 0; - - // a flag to see when we're in the middle of a write. - this.writing = false; - - // when true all writes will be buffered until .uncork() call - this.corked = 0; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // a flag to know if we're processing previously buffered items, which - // may call the _write() callback in the same tick, so that we don't - // end up in an overlapped onwrite situation. - this.bufferProcessing = false; - - // the callback that's passed to _write(chunk,cb) - this.onwrite = function (er) { - onwrite(stream, er); - }; - - // the callback that the user supplies to write(chunk,encoding,cb) - this.writecb = null; - - // the amount that is being written when _write is called. - this.writelen = 0; - - this.bufferedRequest = null; - this.lastBufferedRequest = null; - - // number of pending user-supplied write callbacks - // this must be 0 before 'finish' can be emitted - this.pendingcb = 0; - - // emit prefinish if the only thing we're waiting for is _write cbs - // This is relevant for synchronous Transform streams - this.prefinished = false; - - // True if the error was already emitted and should not be thrown again - this.errorEmitted = false; - - // count buffered requests - this.bufferedRequestCount = 0; - - // allocate the first CorkedRequest, there is always - // one allocated and free to use, and we maintain at most two - this.corkedRequestsFree = new CorkedRequest(this); -} - -WritableState.prototype.getBuffer = function getBuffer() { - var current = this.bufferedRequest; - var out = []; - while (current) { - out.push(current); - current = current.next; - } - return out; -}; - -(function () { - try { - Object.defineProperty(WritableState.prototype, 'buffer', { - get: internalUtil.deprecate(function () { - return this.getBuffer(); - }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.') - }); - } catch (_) {} -})(); - -// Test _writableState for inheritance to account for Duplex streams, -// whose prototype chain only points to Readable. -var realHasInstance; -if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { - realHasInstance = Function.prototype[Symbol.hasInstance]; - Object.defineProperty(Writable, Symbol.hasInstance, { - value: function (object) { - if (realHasInstance.call(this, object)) return true; - - return object && object._writableState instanceof WritableState; - } - }); -} else { - realHasInstance = function (object) { - return object instanceof this; - }; -} - -function Writable(options) { - Duplex = Duplex || require('./_stream_duplex'); - - // Writable ctor is applied to Duplexes, too. - // `realHasInstance` is necessary because using plain `instanceof` - // would return false, as no `_writableState` property is attached. - - // Trying to use the custom `instanceof` for Writable here will also break the - // Node.js LazyTransform implementation, which has a non-trivial getter for - // `_writableState` that would lead to infinite recursion. - if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) { - return new Writable(options); - } - - this._writableState = new WritableState(options, this); - - // legacy. - this.writable = true; - - if (options) { - if (typeof options.write === 'function') this._write = options.write; - - if (typeof options.writev === 'function') this._writev = options.writev; - } - - Stream.call(this); -} - -// Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe = function () { - this.emit('error', new Error('Cannot pipe, not readable')); -}; - -function writeAfterEnd(stream, cb) { - var er = new Error('write after end'); - // TODO: defer error events consistently everywhere, not just the cb - stream.emit('error', er); - processNextTick(cb, er); -} - -// If we get something that is not a buffer, string, null, or undefined, -// and we're not in objectMode, then that's an error. -// Otherwise stream chunks are all considered to be of length=1, and the -// watermarks determine how many objects to keep in the buffer, rather than -// how many bytes or characters. -function validChunk(stream, state, chunk, cb) { - var valid = true; - var er = false; - // Always throw error if a null is written - // if we are not in object mode then throw - // if it is not a buffer, string, or undefined. - if (chunk === null) { - er = new TypeError('May not write null values to stream'); - } else if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { - er = new TypeError('Invalid non-string/buffer chunk'); - } - if (er) { - stream.emit('error', er); - processNextTick(cb, er); - valid = false; - } - return valid; -} - -Writable.prototype.write = function (chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - - if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - - if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; - - if (typeof cb !== 'function') cb = nop; - - if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, chunk, encoding, cb); - } - - return ret; -}; - -Writable.prototype.cork = function () { - var state = this._writableState; - - state.corked++; -}; - -Writable.prototype.uncork = function () { - var state = this._writableState; - - if (state.corked) { - state.corked--; - - if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); - } -}; - -Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { - // node::ParseEncoding() requires lower case. - if (typeof encoding === 'string') encoding = encoding.toLowerCase(); - if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); - this._writableState.defaultEncoding = encoding; - return this; -}; - -function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { - chunk = bufferShim.from(chunk, encoding); - } - return chunk; -} - -// if we're already writing something, then just put this -// in the queue, and wait our turn. Otherwise, call _write -// If we return false, then we need a drain event, so set that flag. -function writeOrBuffer(stream, state, chunk, encoding, cb) { - chunk = decodeChunk(state, chunk, encoding); - - if (Buffer.isBuffer(chunk)) encoding = 'buffer'; - var len = state.objectMode ? 1 : chunk.length; - - state.length += len; - - var ret = state.length < state.highWaterMark; - // we must ensure that previous needDrain will not be reset to false. - if (!ret) state.needDrain = true; - - if (state.writing || state.corked) { - var last = state.lastBufferedRequest; - state.lastBufferedRequest = new WriteReq(chunk, encoding, cb); - if (last) { - last.next = state.lastBufferedRequest; - } else { - state.bufferedRequest = state.lastBufferedRequest; - } - state.bufferedRequestCount += 1; - } else { - doWrite(stream, state, false, len, chunk, encoding, cb); - } - - return ret; -} - -function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); - state.sync = false; -} - -function onwriteError(stream, state, sync, er, cb) { - --state.pendingcb; - if (sync) processNextTick(cb, er);else cb(er); - - stream._writableState.errorEmitted = true; - stream.emit('error', er); -} - -function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; -} - -function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - - onwriteStateUpdate(state); - - if (er) onwriteError(stream, state, sync, er, cb);else { - // Check if we're actually ready to finish, but don't emit yet - var finished = needFinish(state); - - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { - clearBuffer(stream, state); - } - - if (sync) { - /**/ - asyncWrite(afterWrite, stream, state, finished, cb); - /**/ - } else { - afterWrite(stream, state, finished, cb); - } - } -} - -function afterWrite(stream, state, finished, cb) { - if (!finished) onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); -} - -// Must force callback to be called on nextTick, so that we don't -// emit 'drain' before the write() consumer gets the 'false' return -// value, and has a chance to attach a 'drain' listener. -function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit('drain'); - } -} - -// if there's something in the buffer waiting, then process it -function clearBuffer(stream, state) { - state.bufferProcessing = true; - var entry = state.bufferedRequest; - - if (stream._writev && entry && entry.next) { - // Fast case, write everything using _writev() - var l = state.bufferedRequestCount; - var buffer = new Array(l); - var holder = state.corkedRequestsFree; - holder.entry = entry; - - var count = 0; - while (entry) { - buffer[count] = entry; - entry = entry.next; - count += 1; - } - - doWrite(stream, state, true, state.length, buffer, '', holder.finish); - - // doWrite is almost always async, defer these to save a bit of time - // as the hot path ends with doWrite - state.pendingcb++; - state.lastBufferedRequest = null; - if (holder.next) { - state.corkedRequestsFree = holder.next; - holder.next = null; - } else { - state.corkedRequestsFree = new CorkedRequest(state); - } - } else { - // Slow case, write chunks one-by-one - while (entry) { - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - - doWrite(stream, state, false, len, chunk, encoding, cb); - entry = entry.next; - // if we didn't call the onwrite immediately, then - // it means that we need to wait until it does. - // also, that means that the chunk and cb are currently - // being processed, so move the buffer counter past them. - if (state.writing) { - break; - } - } - - if (entry === null) state.lastBufferedRequest = null; - } - - state.bufferedRequestCount = 0; - state.bufferedRequest = entry; - state.bufferProcessing = false; -} - -Writable.prototype._write = function (chunk, encoding, cb) { - cb(new Error('_write() is not implemented')); -}; - -Writable.prototype._writev = null; - -Writable.prototype.end = function (chunk, encoding, cb) { - var state = this._writableState; - - if (typeof chunk === 'function') { - cb = chunk; - chunk = null; - encoding = null; - } else if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - - if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); - - // .end() fully uncorks - if (state.corked) { - state.corked = 1; - this.uncork(); - } - - // ignore unnecessary end() calls. - if (!state.ending && !state.finished) endWritable(this, state, cb); -}; - -function needFinish(state) { - return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; -} - -function prefinish(stream, state) { - if (!state.prefinished) { - state.prefinished = true; - stream.emit('prefinish'); - } -} - -function finishMaybe(stream, state) { - var need = needFinish(state); - if (need) { - if (state.pendingcb === 0) { - prefinish(stream, state); - state.finished = true; - stream.emit('finish'); - } else { - prefinish(stream, state); - } - } - return need; -} - -function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) processNextTick(cb);else stream.once('finish', cb); - } - state.ended = true; - stream.writable = false; -} - -// It seems a linked list but it is not -// there will be only 2 of these for each stream -function CorkedRequest(state) { - var _this = this; - - this.next = null; - this.entry = null; - - this.finish = function (err) { - var entry = _this.entry; - _this.entry = null; - while (entry) { - var cb = entry.callback; - state.pendingcb--; - cb(err); - entry = entry.next; - } - if (state.corkedRequestsFree) { - state.corkedRequestsFree.next = _this; - } else { - state.corkedRequestsFree = _this; - } - }; -} \ No newline at end of file diff --git a/node_modules/replacestream/node_modules/readable-stream/lib/internal/streams/BufferList.js b/node_modules/replacestream/node_modules/readable-stream/lib/internal/streams/BufferList.js deleted file mode 100644 index e4bfcf0..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/lib/internal/streams/BufferList.js +++ /dev/null @@ -1,64 +0,0 @@ -'use strict'; - -var Buffer = require('buffer').Buffer; -/**/ -var bufferShim = require('buffer-shims'); -/**/ - -module.exports = BufferList; - -function BufferList() { - this.head = null; - this.tail = null; - this.length = 0; -} - -BufferList.prototype.push = function (v) { - var entry = { data: v, next: null }; - if (this.length > 0) this.tail.next = entry;else this.head = entry; - this.tail = entry; - ++this.length; -}; - -BufferList.prototype.unshift = function (v) { - var entry = { data: v, next: this.head }; - if (this.length === 0) this.tail = entry; - this.head = entry; - ++this.length; -}; - -BufferList.prototype.shift = function () { - if (this.length === 0) return; - var ret = this.head.data; - if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; - --this.length; - return ret; -}; - -BufferList.prototype.clear = function () { - this.head = this.tail = null; - this.length = 0; -}; - -BufferList.prototype.join = function (s) { - if (this.length === 0) return ''; - var p = this.head; - var ret = '' + p.data; - while (p = p.next) { - ret += s + p.data; - }return ret; -}; - -BufferList.prototype.concat = function (n) { - if (this.length === 0) return bufferShim.alloc(0); - if (this.length === 1) return this.head.data; - var ret = bufferShim.allocUnsafe(n >>> 0); - var p = this.head; - var i = 0; - while (p) { - p.data.copy(ret, i); - i += p.data.length; - p = p.next; - } - return ret; -}; \ No newline at end of file diff --git a/node_modules/replacestream/node_modules/readable-stream/package.json b/node_modules/replacestream/node_modules/readable-stream/package.json deleted file mode 100644 index e05f339..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/package.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "readable-stream@^2.0.2", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "^2.0.2", - "spec": ">=2.0.2 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/replacestream" - ] - ], - "_from": "readable-stream@>=2.0.2 <3.0.0", - "_id": "readable-stream@2.2.3", - "_inCache": true, - "_location": "/replacestream/readable-stream", - "_nodeVersion": "6.9.2", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/readable-stream-2.2.3.tgz_1487688066228_0.35690787457861006" - }, - "_npmUser": { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - }, - "_npmVersion": "4.0.5", - "_phantomChildren": {}, - "_requested": { - "raw": "readable-stream@^2.0.2", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "^2.0.2", - "spec": ">=2.0.2 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/replacestream" - ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz", - "_shasum": "9cf49463985df016c8ae8813097a9293a9b33729", - "_shrinkwrap": null, - "_spec": "readable-stream@^2.0.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/replacestream", - "browser": { - "util": false - }, - "bugs": { - "url": "https://github.com/nodejs/readable-stream/issues" - }, - "dependencies": { - "buffer-shims": "^1.0.0", - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "~1.0.0", - "process-nextick-args": "~1.0.6", - "string_decoder": "~0.10.x", - "util-deprecate": "~1.0.1" - }, - "description": "Streams3, a user-land copy of the stream library from Node.js", - "devDependencies": { - "assert": "~1.4.0", - "babel-polyfill": "^6.9.1", - "buffer": "^4.9.0", - "nyc": "^6.4.0", - "tap": "~0.7.1", - "tape": "~4.5.1", - "zuul": "~3.10.0" - }, - "directories": {}, - "dist": { - "shasum": "9cf49463985df016c8ae8813097a9293a9b33729", - "tarball": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.3.tgz" - }, - "gitHead": "4dbe6e20051e44025d3cbec3ed9603483d8b27cb", - "homepage": "https://github.com/nodejs/readable-stream#readme", - "keywords": [ - "readable", - "stream", - "pipe" - ], - "license": "MIT", - "main": "readable.js", - "maintainers": [ - { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - { - "name": "tootallnate", - "email": "nathan@tootallnate.net" - }, - { - "name": "rvagg", - "email": "rod@vagg.org" - }, - { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - } - ], - "name": "readable-stream", - "nyc": { - "include": [ - "lib/**.js" - ] - }, - "optionalDependencies": {}, - "react-native": { - "stream": false - }, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/nodejs/readable-stream.git" - }, - "scripts": { - "browser": "npm run write-zuul && zuul --browser-retries 2 -- test/browser.js", - "cover": "nyc npm test", - "local": "zuul --local 3000 --no-coverage -- test/browser.js", - "report": "nyc report --reporter=lcov", - "test": "tap test/parallel/*.js test/ours/*.js", - "write-zuul": "printf \"ui: tape\nbrowsers:\n - name: $BROWSER_NAME\n version: $BROWSER_VERSION\n\">.zuul.yml" - }, - "version": "2.2.3" -} diff --git a/node_modules/replacestream/node_modules/readable-stream/passthrough.js b/node_modules/replacestream/node_modules/readable-stream/passthrough.js deleted file mode 100644 index 27e8d8a..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/passthrough.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_passthrough.js") diff --git a/node_modules/replacestream/node_modules/readable-stream/readable.js b/node_modules/replacestream/node_modules/readable-stream/readable.js deleted file mode 100644 index be2688a..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/readable.js +++ /dev/null @@ -1,16 +0,0 @@ -var Stream = (function (){ - try { - return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify - } catch(_){} -}()); -exports = module.exports = require('./lib/_stream_readable.js'); -exports.Stream = Stream || exports; -exports.Readable = exports; -exports.Writable = require('./lib/_stream_writable.js'); -exports.Duplex = require('./lib/_stream_duplex.js'); -exports.Transform = require('./lib/_stream_transform.js'); -exports.PassThrough = require('./lib/_stream_passthrough.js'); - -if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) { - module.exports = Stream; -} diff --git a/node_modules/replacestream/node_modules/readable-stream/transform.js b/node_modules/replacestream/node_modules/readable-stream/transform.js deleted file mode 100644 index 5d482f0..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/transform.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_transform.js") diff --git a/node_modules/replacestream/node_modules/readable-stream/writable.js b/node_modules/replacestream/node_modules/readable-stream/writable.js deleted file mode 100644 index e1e9efd..0000000 --- a/node_modules/replacestream/node_modules/readable-stream/writable.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require("./lib/_stream_writable.js") diff --git a/node_modules/replacestream/package.json b/node_modules/replacestream/package.json deleted file mode 100644 index a2540a8..0000000 --- a/node_modules/replacestream/package.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "replacestream@^4.0.0", - "scope": null, - "escapedName": "replacestream", - "name": "replacestream", - "rawSpec": "^4.0.0", - "spec": ">=4.0.0 <5.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-replace" - ] - ], - "_from": "replacestream@>=4.0.0 <5.0.0", - "_id": "replacestream@4.0.2", - "_inCache": true, - "_location": "/replacestream", - "_nodeVersion": "6.4.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/replacestream-4.0.2.tgz_1471707020936_0.9477545130066574" - }, - "_npmUser": { - "name": "mehtaphysical", - "email": "me@ryanmehta.me" - }, - "_npmVersion": "3.10.6", - "_phantomChildren": { - "buffer-shims": "1.0.0", - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" - }, - "_requested": { - "raw": "replacestream@^4.0.0", - "scope": null, - "escapedName": "replacestream", - "name": "replacestream", - "rawSpec": "^4.0.0", - "spec": ">=4.0.0 <5.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-replace" - ], - "_resolved": "https://registry.npmjs.org/replacestream/-/replacestream-4.0.2.tgz", - "_shasum": "0c4140707e4f0323f50de044851708cf58bc37bd", - "_shrinkwrap": null, - "_spec": "replacestream@^4.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-replace", - "author": { - "name": "Eugene Ware", - "email": "eugene@noblesamurai.com" - }, - "bugs": { - "url": "https://github.com/eugeneware/replacestream/issues" - }, - "dependencies": { - "escape-string-regexp": "^1.0.3", - "object-assign": "^4.0.1", - "readable-stream": "^2.0.2" - }, - "description": "A node.js through stream that does basic streaming text search and replace and is chunk boundary friendly", - "devDependencies": { - "chai": "^3.2.0", - "concat-stream": "^1.5.0", - "istanbul": "^0.3.18", - "istanbul-coveralls": "^1.0.3", - "mocha": "^2.2.5" - }, - "directories": {}, - "dist": { - "shasum": "0c4140707e4f0323f50de044851708cf58bc37bd", - "tarball": "https://registry.npmjs.org/replacestream/-/replacestream-4.0.2.tgz" - }, - "files": [ - "index.js" - ], - "gitHead": "807e7e0e7e409cd0b58780394d9946bcefed943c", - "homepage": "https://github.com/eugeneware/replacestream#readme", - "keywords": [ - "replace", - "text", - "regex", - "stream", - "streams", - "streaming", - "search" - ], - "license": "BSD-3-Clause", - "maintainers": [ - { - "name": "eugeneware", - "email": "eugene@noblesamurai.com" - }, - { - "name": "mehtaphysical", - "email": "me@ryanmehta.me" - }, - { - "name": "shinnn", - "email": "snnskwtnb@gmail.com" - } - ], - "name": "replacestream", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/eugeneware/replacestream.git" - }, - "scripts": { - "coverage": "istanbul cover _mocha", - "coveralls": "${npm_package_scripts_coverage} && istanbul-coveralls", - "test": "mocha --growl --full-trace" - }, - "version": "4.0.2" -} diff --git a/node_modules/request/CHANGELOG.md b/node_modules/request/CHANGELOG.md deleted file mode 100644 index 7a9b2ab..0000000 --- a/node_modules/request/CHANGELOG.md +++ /dev/null @@ -1,662 +0,0 @@ -## Change Log - -### v2.79.0 (2016/11/18) -- [#2368](https://github.com/request/request/pull/2368) Fix typeof check in test-pool.js (@forivall) -- [#2394](https://github.com/request/request/pull/2394) Use `files` in package.json (@SimenB) -- [#2463](https://github.com/request/request/pull/2463) AWS support for session tokens for temporary credentials (@simov) -- [#2467](https://github.com/request/request/pull/2467) Migrate to uuid (@simov, @antialias) -- [#2459](https://github.com/request/request/pull/2459) Update taper to version 0.5.0 🚀 (@greenkeeperio-bot) -- [#2448](https://github.com/request/request/pull/2448) Make other connect timeout test more reliable too (@mscdex) - -### v2.78.0 (2016/11/03) -- [#2447](https://github.com/request/request/pull/2447) Always set request timeout on keep-alive connections (@mscdex) - -### v2.77.0 (2016/11/03) -- [#2439](https://github.com/request/request/pull/2439) Fix socket 'connect' listener handling (@mscdex) -- [#2442](https://github.com/request/request/pull/2442) 👻😱 Node.js 0.10 is unmaintained 😱👻 (@greenkeeperio-bot) -- [#2435](https://github.com/request/request/pull/2435) Add followOriginalHttpMethod to redirect to original HTTP method (@kirrg001) -- [#2414](https://github.com/request/request/pull/2414) Improve test-timeout reliability (@mscdex) - -### v2.76.0 (2016/10/25) -- [#2424](https://github.com/request/request/pull/2424) Handle buffers directly instead of using "bl" (@zertosh) -- [#2415](https://github.com/request/request/pull/2415) Re-enable timeout tests on Travis + other fixes (@mscdex) -- [#2431](https://github.com/request/request/pull/2431) Improve timeouts accuracy and node v6.8.0+ compatibility (@mscdex, @greenkeeperio-bot) -- [#2428](https://github.com/request/request/pull/2428) Update qs to version 6.3.0 🚀 (@greenkeeperio-bot) -- [#2420](https://github.com/request/request/pull/2420) change .on to .once, remove possible memory leaks (@duereg) -- [#2426](https://github.com/request/request/pull/2426) Remove "isFunction" helper in favor of "typeof" check (@zertosh) -- [#2425](https://github.com/request/request/pull/2425) Simplify "defer" helper creation (@zertosh) -- [#2402](https://github.com/request/request/pull/2402) form-data@2.1.1 breaks build 🚨 (@greenkeeperio-bot) -- [#2393](https://github.com/request/request/pull/2393) Update form-data to version 2.1.0 🚀 (@greenkeeperio-bot) - -### v2.75.0 (2016/09/17) -- [#2381](https://github.com/request/request/pull/2381) Drop support for Node 0.10 (@simov) -- [#2377](https://github.com/request/request/pull/2377) Update form-data to version 2.0.0 🚀 (@greenkeeperio-bot) -- [#2353](https://github.com/request/request/pull/2353) Add greenkeeper ignored packages (@simov) -- [#2351](https://github.com/request/request/pull/2351) Update karma-tap to version 3.0.1 🚀 (@greenkeeperio-bot) -- [#2348](https://github.com/request/request/pull/2348) form-data@1.0.1 breaks build 🚨 (@greenkeeperio-bot) -- [#2349](https://github.com/request/request/pull/2349) Check error type instead of string (@scotttrinh) - -### v2.74.0 (2016/07/22) -- [#2295](https://github.com/request/request/pull/2295) Update tough-cookie to 2.3.0 (@stash-sfdc) -- [#2280](https://github.com/request/request/pull/2280) Update karma-tap to version 2.0.1 🚀 (@greenkeeperio-bot) - -### v2.73.0 (2016/07/09) -- [#2240](https://github.com/request/request/pull/2240) Remove connectionErrorHandler to fix #1903 (@zarenner) -- [#2251](https://github.com/request/request/pull/2251) tape@4.6.0 breaks build 🚨 (@greenkeeperio-bot) -- [#2225](https://github.com/request/request/pull/2225) Update docs (@ArtskydJ) -- [#2203](https://github.com/request/request/pull/2203) Update browserify to version 13.0.1 🚀 (@greenkeeperio-bot) -- [#2275](https://github.com/request/request/pull/2275) Update karma to version 1.1.1 🚀 (@greenkeeperio-bot) -- [#2204](https://github.com/request/request/pull/2204) Add codecov.yml and disable PR comments (@simov) -- [#2212](https://github.com/request/request/pull/2212) Fix link to http.IncomingMessage documentation (@nazieb) -- [#2208](https://github.com/request/request/pull/2208) Update to form-data RC4 and pass null values to it (@simov) -- [#2207](https://github.com/request/request/pull/2207) Move aws4 require statement to the top (@simov) -- [#2199](https://github.com/request/request/pull/2199) Update karma-coverage to version 1.0.0 🚀 (@greenkeeperio-bot) -- [#2206](https://github.com/request/request/pull/2206) Update qs to version 6.2.0 🚀 (@greenkeeperio-bot) -- [#2205](https://github.com/request/request/pull/2205) Use server-destory to close hanging sockets in tests (@simov) -- [#2200](https://github.com/request/request/pull/2200) Update karma-cli to version 1.0.0 🚀 (@greenkeeperio-bot) - -### v2.72.0 (2016/04/17) -- [#2176](https://github.com/request/request/pull/2176) Do not try to pipe Gzip responses with no body (@simov) -- [#2175](https://github.com/request/request/pull/2175) Add 'delete' alias for the 'del' API method (@simov, @MuhanZou) -- [#2172](https://github.com/request/request/pull/2172) Add support for deflate content encoding (@czardoz) -- [#2169](https://github.com/request/request/pull/2169) Add callback option (@simov) -- [#2165](https://github.com/request/request/pull/2165) Check for self.req existence inside the write method (@simov) -- [#2167](https://github.com/request/request/pull/2167) Fix TravisCI badge reference master branch (@a0viedo) - -### v2.71.0 (2016/04/12) -- [#2164](https://github.com/request/request/pull/2164) Catch errors from the underlying http module (@simov) - -### v2.70.0 (2016/04/05) -- [#2147](https://github.com/request/request/pull/2147) Update eslint to version 2.5.3 🚀 (@simov, @greenkeeperio-bot) -- [#2009](https://github.com/request/request/pull/2009) Support JSON stringify replacer argument. (@elyobo) -- [#2142](https://github.com/request/request/pull/2142) Update eslint to version 2.5.1 🚀 (@greenkeeperio-bot) -- [#2128](https://github.com/request/request/pull/2128) Update browserify-istanbul to version 2.0.0 🚀 (@greenkeeperio-bot) -- [#2115](https://github.com/request/request/pull/2115) Update eslint to version 2.3.0 🚀 (@simov, @greenkeeperio-bot) -- [#2089](https://github.com/request/request/pull/2089) Fix badges (@simov) -- [#2092](https://github.com/request/request/pull/2092) Update browserify-istanbul to version 1.0.0 🚀 (@greenkeeperio-bot) -- [#2079](https://github.com/request/request/pull/2079) Accept read stream as body option (@simov) -- [#2070](https://github.com/request/request/pull/2070) Update bl to version 1.1.2 🚀 (@greenkeeperio-bot) -- [#2063](https://github.com/request/request/pull/2063) Up bluebird and oauth-sign (@simov) -- [#2058](https://github.com/request/request/pull/2058) Karma fixes for latest versions (@eiriksm) -- [#2057](https://github.com/request/request/pull/2057) Update contributing guidelines (@simov) -- [#2054](https://github.com/request/request/pull/2054) Update qs to version 6.1.0 🚀 (@greenkeeperio-bot) - -### v2.69.0 (2016/01/27) -- [#2041](https://github.com/request/request/pull/2041) restore aws4 as regular dependency (@rmg) - -### v2.68.0 (2016/01/27) -- [#2036](https://github.com/request/request/pull/2036) Add AWS Signature Version 4 (@simov, @mirkods) -- [#2022](https://github.com/request/request/pull/2022) Convert numeric multipart bodies to string (@simov, @feross) -- [#2024](https://github.com/request/request/pull/2024) Update har-validator dependency for nsp advisory #76 (@TylerDixon) -- [#2016](https://github.com/request/request/pull/2016) Update qs to version 6.0.2 🚀 (@greenkeeperio-bot) -- [#2007](https://github.com/request/request/pull/2007) Use the `extend` module instead of util._extend (@simov) -- [#2003](https://github.com/request/request/pull/2003) Update browserify to version 13.0.0 🚀 (@greenkeeperio-bot) -- [#1989](https://github.com/request/request/pull/1989) Update buffer-equal to version 1.0.0 🚀 (@greenkeeperio-bot) -- [#1956](https://github.com/request/request/pull/1956) Check form-data content-length value before setting up the header (@jongyoonlee) -- [#1958](https://github.com/request/request/pull/1958) Use IncomingMessage.destroy method (@simov) -- [#1952](https://github.com/request/request/pull/1952) Adds example for Tor proxy (@prometheansacrifice) -- [#1943](https://github.com/request/request/pull/1943) Update eslint to version 1.10.3 🚀 (@simov, @greenkeeperio-bot) -- [#1924](https://github.com/request/request/pull/1924) Update eslint to version 1.10.1 🚀 (@greenkeeperio-bot) -- [#1915](https://github.com/request/request/pull/1915) Remove content-length and transfer-encoding headers from defaultProxyHeaderWhiteList (@yaxia) - -### v2.67.0 (2015/11/19) -- [#1913](https://github.com/request/request/pull/1913) Update http-signature to version 1.1.0 🚀 (@greenkeeperio-bot) - -### v2.66.0 (2015/11/18) -- [#1906](https://github.com/request/request/pull/1906) Update README URLs based on HTTP redirects (@ReadmeCritic) -- [#1905](https://github.com/request/request/pull/1905) Convert typed arrays into regular buffers (@simov) -- [#1902](https://github.com/request/request/pull/1902) node-uuid@1.4.7 breaks build 🚨 (@greenkeeperio-bot) -- [#1894](https://github.com/request/request/pull/1894) Fix tunneling after redirection from https (Original: #1881) (@simov, @falms) -- [#1893](https://github.com/request/request/pull/1893) Update eslint to version 1.9.0 🚀 (@greenkeeperio-bot) -- [#1852](https://github.com/request/request/pull/1852) Update eslint to version 1.7.3 🚀 (@simov, @greenkeeperio-bot, @paulomcnally, @michelsalib, @arbaaz, @vladimirich, @LoicMahieu, @JoshWillik, @jzaefferer, @ryanwholey, @djchie, @thisconnect, @mgenereu, @acroca, @Sebmaster, @KoltesDigital) -- [#1876](https://github.com/request/request/pull/1876) Implement loose matching for har mime types (@simov) -- [#1875](https://github.com/request/request/pull/1875) Update bluebird to version 3.0.2 🚀 (@simov, @greenkeeperio-bot) -- [#1871](https://github.com/request/request/pull/1871) Update browserify to version 12.0.1 🚀 (@greenkeeperio-bot) -- [#1866](https://github.com/request/request/pull/1866) Add missing quotes on x-token property in README (@miguelmota) -- [#1874](https://github.com/request/request/pull/1874) Fix typo in README.md (@gswalden) -- [#1860](https://github.com/request/request/pull/1860) Improve referer header tests and docs (@simov) -- [#1861](https://github.com/request/request/pull/1861) Remove redundant call to Stream constructor (@watson) -- [#1857](https://github.com/request/request/pull/1857) Fix Referer header to point to the original host name (@simov) -- [#1850](https://github.com/request/request/pull/1850) Update karma-coverage to version 0.5.3 🚀 (@greenkeeperio-bot) -- [#1847](https://github.com/request/request/pull/1847) Use node's latest version when building (@simov) -- [#1836](https://github.com/request/request/pull/1836) Tunnel: fix wrong property name (@KoltesDigital) -- [#1820](https://github.com/request/request/pull/1820) Set href as request.js uses it (@mgenereu) -- [#1840](https://github.com/request/request/pull/1840) Update http-signature to version 1.0.2 🚀 (@greenkeeperio-bot) -- [#1845](https://github.com/request/request/pull/1845) Update istanbul to version 0.4.0 🚀 (@greenkeeperio-bot) - -### v2.65.0 (2015/10/11) -- [#1833](https://github.com/request/request/pull/1833) Update aws-sign2 to version 0.6.0 🚀 (@greenkeeperio-bot) -- [#1811](https://github.com/request/request/pull/1811) Enable loose cookie parsing in tough-cookie (@Sebmaster) -- [#1830](https://github.com/request/request/pull/1830) Bring back tilde ranges for all dependencies (@simov) -- [#1821](https://github.com/request/request/pull/1821) Implement support for RFC 2617 MD5-sess algorithm. (@BigDSK) -- [#1828](https://github.com/request/request/pull/1828) Updated qs dependency to 5.2.0 (@acroca) -- [#1818](https://github.com/request/request/pull/1818) Extract `readResponseBody` method out of `onRequestResponse` (@pvoisin) -- [#1819](https://github.com/request/request/pull/1819) Run stringify once (@mgenereu) -- [#1814](https://github.com/request/request/pull/1814) Updated har-validator to version 2.0.2 (@greenkeeperio-bot) -- [#1807](https://github.com/request/request/pull/1807) Updated tough-cookie to version 2.1.0 (@greenkeeperio-bot) -- [#1800](https://github.com/request/request/pull/1800) Add caret ranges for devDependencies, except eslint (@simov) -- [#1799](https://github.com/request/request/pull/1799) Updated karma-browserify to version 4.4.0 (@greenkeeperio-bot) -- [#1797](https://github.com/request/request/pull/1797) Updated tape to version 4.2.0 (@greenkeeperio-bot) -- [#1788](https://github.com/request/request/pull/1788) Pinned all dependencies (@greenkeeperio-bot) - -### v2.64.0 (2015/09/25) -- [#1787](https://github.com/request/request/pull/1787) npm ignore examples, release.sh and disabled.appveyor.yml (@thisconnect) -- [#1775](https://github.com/request/request/pull/1775) Fix typo in README.md (@djchie) -- [#1776](https://github.com/request/request/pull/1776) Changed word 'conjuction' to read 'conjunction' in README.md (@ryanwholey) -- [#1785](https://github.com/request/request/pull/1785) Revert: Set default application/json content-type when using json option #1772 (@simov) - -### v2.63.0 (2015/09/21) -- [#1772](https://github.com/request/request/pull/1772) Set default application/json content-type when using json option (@jzaefferer) - -### v2.62.0 (2015/09/15) -- [#1768](https://github.com/request/request/pull/1768) Add node 4.0 to the list of build targets (@simov) -- [#1767](https://github.com/request/request/pull/1767) Query strings now cooperate with unix sockets (@JoshWillik) -- [#1750](https://github.com/request/request/pull/1750) Revert doc about installation of tough-cookie added in #884 (@LoicMahieu) -- [#1746](https://github.com/request/request/pull/1746) Missed comma in Readme (@vladimirich) -- [#1743](https://github.com/request/request/pull/1743) Fix options not being initialized in defaults method (@simov) - -### v2.61.0 (2015/08/19) -- [#1721](https://github.com/request/request/pull/1721) Minor fix in README.md (@arbaaz) -- [#1733](https://github.com/request/request/pull/1733) Avoid useless Buffer transformation (@michelsalib) -- [#1726](https://github.com/request/request/pull/1726) Update README.md (@paulomcnally) -- [#1715](https://github.com/request/request/pull/1715) Fix forever option in node > 0.10 #1709 (@calibr) -- [#1716](https://github.com/request/request/pull/1716) Do not create Buffer from Object in setContentLength(iojs v3.0 issue) (@calibr) -- [#1711](https://github.com/request/request/pull/1711) Add ability to detect connect timeouts (@kevinburke) -- [#1712](https://github.com/request/request/pull/1712) Set certificate expiration to August 2, 2018 (@kevinburke) -- [#1700](https://github.com/request/request/pull/1700) debug() when JSON.parse() on a response body fails (@phillipj) - -### v2.60.0 (2015/07/21) -- [#1687](https://github.com/request/request/pull/1687) Fix caseless bug - content-type not being set for multipart/form-data (@simov, @garymathews) - -### v2.59.0 (2015/07/20) -- [#1671](https://github.com/request/request/pull/1671) Add tests and docs for using the agent, agentClass, agentOptions and forever options. Forever option defaults to using http(s).Agent in node 0.12+ (@simov) -- [#1679](https://github.com/request/request/pull/1679) Fix - do not remove OAuth param when using OAuth realm (@simov, @jhalickman) -- [#1668](https://github.com/request/request/pull/1668) updated dependencies (@deamme) -- [#1656](https://github.com/request/request/pull/1656) Fix form method (@simov) -- [#1651](https://github.com/request/request/pull/1651) Preserve HEAD method when using followAllRedirects (@simov) -- [#1652](https://github.com/request/request/pull/1652) Update `encoding` option documentation in README.md (@daniel347x) -- [#1650](https://github.com/request/request/pull/1650) Allow content-type overriding when using the `form` option (@simov) -- [#1646](https://github.com/request/request/pull/1646) Clarify the nature of setting `ca` in `agentOptions` (@jeffcharles) - -### v2.58.0 (2015/06/16) -- [#1638](https://github.com/request/request/pull/1638) Use the `extend` module to deep extend in the defaults method (@simov) -- [#1631](https://github.com/request/request/pull/1631) Move tunnel logic into separate module (@simov) -- [#1634](https://github.com/request/request/pull/1634) Fix OAuth query transport_method (@simov) -- [#1603](https://github.com/request/request/pull/1603) Add codecov (@simov) - -### v2.57.0 (2015/05/31) -- [#1615](https://github.com/request/request/pull/1615) Replace '.client' with '.socket' as the former was deprecated in 2.2.0. (@ChALkeR) - -### v2.56.0 (2015/05/28) -- [#1610](https://github.com/request/request/pull/1610) Bump module dependencies (@simov) -- [#1600](https://github.com/request/request/pull/1600) Extract the querystring logic into separate module (@simov) -- [#1607](https://github.com/request/request/pull/1607) Re-generate certificates (@simov) -- [#1599](https://github.com/request/request/pull/1599) Move getProxyFromURI logic below the check for Invaild URI (#1595) (@simov) -- [#1598](https://github.com/request/request/pull/1598) Fix the way http verbs are defined in order to please intellisense IDEs (@simov, @flannelJesus) -- [#1591](https://github.com/request/request/pull/1591) A few minor fixes: (@simov) -- [#1584](https://github.com/request/request/pull/1584) Refactor test-default tests (according to comments in #1430) (@simov) -- [#1585](https://github.com/request/request/pull/1585) Fixing documentation regarding TLS options (#1583) (@mainakae) -- [#1574](https://github.com/request/request/pull/1574) Refresh the oauth_nonce on redirect (#1573) (@simov) -- [#1570](https://github.com/request/request/pull/1570) Discovered tests that weren't properly running (@seanstrom) -- [#1569](https://github.com/request/request/pull/1569) Fix pause before response arrives (@kevinoid) -- [#1558](https://github.com/request/request/pull/1558) Emit error instead of throw (@simov) -- [#1568](https://github.com/request/request/pull/1568) Fix stall when piping gzipped response (@kevinoid) -- [#1560](https://github.com/request/request/pull/1560) Update combined-stream (@apechimp) -- [#1543](https://github.com/request/request/pull/1543) Initial support for oauth_body_hash on json payloads (@simov, @aesopwolf) -- [#1541](https://github.com/request/request/pull/1541) Fix coveralls (@simov) -- [#1540](https://github.com/request/request/pull/1540) Fix recursive defaults for convenience methods (@simov) -- [#1536](https://github.com/request/request/pull/1536) More eslint style rules (@froatsnook) -- [#1533](https://github.com/request/request/pull/1533) Adding dependency status bar to README.md (@YasharF) -- [#1539](https://github.com/request/request/pull/1539) ensure the latest version of har-validator is included (@ahmadnassri) -- [#1516](https://github.com/request/request/pull/1516) forever+pool test (@devTristan) - -### v2.55.0 (2015/04/05) -- [#1520](https://github.com/request/request/pull/1520) Refactor defaults (@simov) -- [#1525](https://github.com/request/request/pull/1525) Delete request headers with undefined value. (@froatsnook) -- [#1521](https://github.com/request/request/pull/1521) Add promise tests (@simov) -- [#1518](https://github.com/request/request/pull/1518) Fix defaults (@simov) -- [#1515](https://github.com/request/request/pull/1515) Allow static invoking of convenience methods (@simov) -- [#1505](https://github.com/request/request/pull/1505) Fix multipart boundary extraction regexp (@simov) -- [#1510](https://github.com/request/request/pull/1510) Fix basic auth form data (@simov) - -### v2.54.0 (2015/03/24) -- [#1501](https://github.com/request/request/pull/1501) HTTP Archive 1.2 support (@ahmadnassri) -- [#1486](https://github.com/request/request/pull/1486) Add a test for the forever agent (@akshayp) -- [#1500](https://github.com/request/request/pull/1500) Adding handling for no auth method and null bearer (@philberg) -- [#1498](https://github.com/request/request/pull/1498) Add table of contents in readme (@simov) -- [#1477](https://github.com/request/request/pull/1477) Add support for qs options via qsOptions key (@simov) -- [#1496](https://github.com/request/request/pull/1496) Parameters encoded to base 64 should be decoded as UTF-8, not ASCII. (@albanm) -- [#1494](https://github.com/request/request/pull/1494) Update eslint (@froatsnook) -- [#1474](https://github.com/request/request/pull/1474) Require Colon in Basic Auth (@erykwalder) -- [#1481](https://github.com/request/request/pull/1481) Fix baseUrl and redirections. (@burningtree) -- [#1469](https://github.com/request/request/pull/1469) Feature/base url (@froatsnook) -- [#1459](https://github.com/request/request/pull/1459) Add option to time request/response cycle (including rollup of redirects) (@aaron-em) -- [#1468](https://github.com/request/request/pull/1468) Re-enable io.js/node 0.12 build (@simov, @mikeal, @BBB) -- [#1442](https://github.com/request/request/pull/1442) Fixed the issue with strictSSL tests on 0.12 & io.js by explicitly setting a cipher that matches the cert. (@BBB, @nickmccurdy, @demohi, @simov, @0x4139) -- [#1460](https://github.com/request/request/pull/1460) localAddress or proxy config is lost when redirecting (@simov, @0x4139) -- [#1453](https://github.com/request/request/pull/1453) Test on Node.js 0.12 and io.js with allowed failures (@nickmccurdy, @demohi) -- [#1426](https://github.com/request/request/pull/1426) Fixing tests to pass on io.js and node 0.12 (only test-https.js stiff failing) (@mikeal) -- [#1446](https://github.com/request/request/pull/1446) Missing HTTP referer header with redirects Fixes #1038 (@simov, @guimon) -- [#1428](https://github.com/request/request/pull/1428) Deprecate Node v0.8.x (@nylen) -- [#1436](https://github.com/request/request/pull/1436) Add ability to set a requester without setting default options (@tikotzky) -- [#1435](https://github.com/request/request/pull/1435) dry up verb methods (@sethpollack) -- [#1423](https://github.com/request/request/pull/1423) Allow fully qualified multipart content-type header (@simov) -- [#1430](https://github.com/request/request/pull/1430) Fix recursive requester (@tikotzky) -- [#1429](https://github.com/request/request/pull/1429) Throw error when making HEAD request with a body (@tikotzky) -- [#1419](https://github.com/request/request/pull/1419) Add note that the project is broken in 0.12.x (@nylen) -- [#1413](https://github.com/request/request/pull/1413) Fix basic auth (@simov) -- [#1397](https://github.com/request/request/pull/1397) Improve pipe-from-file tests (@nylen) - -### v2.53.0 (2015/02/02) -- [#1396](https://github.com/request/request/pull/1396) Do not rfc3986 escape JSON bodies (@nylen, @simov) -- [#1392](https://github.com/request/request/pull/1392) Improve `timeout` option description (@watson) - -### v2.52.0 (2015/02/02) -- [#1383](https://github.com/request/request/pull/1383) Add missing HTTPS options that were not being passed to tunnel (@brichard19) (@nylen) -- [#1388](https://github.com/request/request/pull/1388) Upgrade mime-types package version (@roderickhsiao) -- [#1389](https://github.com/request/request/pull/1389) Revise Setup Tunnel Function (@seanstrom) -- [#1374](https://github.com/request/request/pull/1374) Allow explicitly disabling tunneling for proxied https destinations (@nylen) -- [#1376](https://github.com/request/request/pull/1376) Use karma-browserify for tests. Add browser test coverage reporter. (@eiriksm) -- [#1366](https://github.com/request/request/pull/1366) Refactor OAuth into separate module (@simov) -- [#1373](https://github.com/request/request/pull/1373) Rewrite tunnel test to be pure Node.js (@nylen) -- [#1371](https://github.com/request/request/pull/1371) Upgrade test reporter (@nylen) -- [#1360](https://github.com/request/request/pull/1360) Refactor basic, bearer, digest auth logic into separate class (@simov) -- [#1354](https://github.com/request/request/pull/1354) Remove circular dependency from debugging code (@nylen) -- [#1351](https://github.com/request/request/pull/1351) Move digest auth into private prototype method (@simov) -- [#1352](https://github.com/request/request/pull/1352) Update hawk dependency to ~2.3.0 (@mridgway) -- [#1353](https://github.com/request/request/pull/1353) Correct travis-ci badge (@dogancelik) -- [#1349](https://github.com/request/request/pull/1349) Make sure we return on errored browser requests. (@eiriksm) -- [#1346](https://github.com/request/request/pull/1346) getProxyFromURI Extraction Refactor (@seanstrom) -- [#1337](https://github.com/request/request/pull/1337) Standardize test ports on 6767 (@nylen) -- [#1341](https://github.com/request/request/pull/1341) Emit FormData error events as Request error events (@nylen, @rwky) -- [#1343](https://github.com/request/request/pull/1343) Clean up readme badges, and add Travis and Coveralls badges (@nylen) -- [#1345](https://github.com/request/request/pull/1345) Update README.md (@Aaron-Hartwig) -- [#1338](https://github.com/request/request/pull/1338) Always wait for server.close() callback in tests (@nylen) -- [#1342](https://github.com/request/request/pull/1342) Add mock https server and redo start of browser tests for this purpose. (@eiriksm) -- [#1339](https://github.com/request/request/pull/1339) Improve auth docs (@nylen) -- [#1335](https://github.com/request/request/pull/1335) Add support for OAuth plaintext signature method (@simov) -- [#1332](https://github.com/request/request/pull/1332) Add clean script to remove test-browser.js after the tests run (@seanstrom) -- [#1327](https://github.com/request/request/pull/1327) Fix errors generating coverage reports. (@nylen) -- [#1330](https://github.com/request/request/pull/1330) Return empty buffer upon empty response body and encoding is set to null (@seanstrom) -- [#1326](https://github.com/request/request/pull/1326) Use faster container-based infrastructure on Travis (@nylen) -- [#1315](https://github.com/request/request/pull/1315) Implement rfc3986 option (@simov, @nylen, @apoco, @DullReferenceException, @mmalecki, @oliamb, @cliffcrosland, @LewisJEllis, @eiriksm, @poislagarde) -- [#1314](https://github.com/request/request/pull/1314) Detect urlencoded form data header via regex (@simov) -- [#1317](https://github.com/request/request/pull/1317) Improve OAuth1.0 server side flow example (@simov) - -### v2.51.0 (2014/12/10) -- [#1310](https://github.com/request/request/pull/1310) Revert changes introduced in https://github.com/request/request/pull/1282 (@simov) - -### v2.50.0 (2014/12/09) -- [#1308](https://github.com/request/request/pull/1308) Add browser test to keep track of browserify compability. (@eiriksm) -- [#1299](https://github.com/request/request/pull/1299) Add optional support for jsonReviver (@poislagarde) -- [#1277](https://github.com/request/request/pull/1277) Add Coveralls configuration (@simov) -- [#1307](https://github.com/request/request/pull/1307) Upgrade form-data, add back browserify compability. Fixes #455. (@eiriksm) -- [#1305](https://github.com/request/request/pull/1305) Fix typo in README.md (@LewisJEllis) -- [#1288](https://github.com/request/request/pull/1288) Update README.md to explain custom file use case (@cliffcrosland) - -### v2.49.0 (2014/11/28) -- [#1295](https://github.com/request/request/pull/1295) fix(proxy): no-proxy false positive (@oliamb) -- [#1292](https://github.com/request/request/pull/1292) Upgrade `caseless` to 0.8.1 (@mmalecki) -- [#1276](https://github.com/request/request/pull/1276) Set transfer encoding for multipart/related to chunked by default (@simov) -- [#1275](https://github.com/request/request/pull/1275) Fix multipart content-type headers detection (@simov) -- [#1269](https://github.com/request/request/pull/1269) adds streams example for review (@tbuchok) -- [#1238](https://github.com/request/request/pull/1238) Add examples README.md (@simov) - -### v2.48.0 (2014/11/12) -- [#1263](https://github.com/request/request/pull/1263) Fixed a syntax error / typo in README.md (@xna2) -- [#1253](https://github.com/request/request/pull/1253) Add multipart chunked flag (@simov, @nylen) -- [#1251](https://github.com/request/request/pull/1251) Clarify that defaults() does not modify global defaults (@nylen) -- [#1250](https://github.com/request/request/pull/1250) Improve documentation for pool and maxSockets options (@nylen) -- [#1237](https://github.com/request/request/pull/1237) Documenting error handling when using streams (@vmattos) -- [#1244](https://github.com/request/request/pull/1244) Finalize changelog command (@nylen) -- [#1241](https://github.com/request/request/pull/1241) Fix typo (@alexanderGugel) -- [#1223](https://github.com/request/request/pull/1223) Show latest version number instead of "upcoming" in changelog (@nylen) -- [#1236](https://github.com/request/request/pull/1236) Document how to use custom CA in README (#1229) (@hypesystem) -- [#1228](https://github.com/request/request/pull/1228) Support for oauth with RSA-SHA1 signing (@nylen) -- [#1216](https://github.com/request/request/pull/1216) Made json and multipart options coexist (@nylen, @simov) -- [#1225](https://github.com/request/request/pull/1225) Allow header white/exclusive lists in any case. (@RReverser) - -### v2.47.0 (2014/10/26) -- [#1222](https://github.com/request/request/pull/1222) Move from mikeal/request to request/request (@nylen) -- [#1220](https://github.com/request/request/pull/1220) update qs dependency to 2.3.1 (@FredKSchott) -- [#1212](https://github.com/request/request/pull/1212) Improve tests/test-timeout.js (@nylen) -- [#1219](https://github.com/request/request/pull/1219) remove old globalAgent workaround for node 0.4 (@request) -- [#1214](https://github.com/request/request/pull/1214) Remove cruft left over from optional dependencies (@nylen) -- [#1215](https://github.com/request/request/pull/1215) Add proxyHeaderExclusiveList option for proxy-only headers. (@RReverser) -- [#1211](https://github.com/request/request/pull/1211) Allow 'Host' header instead of 'host' and remember case across redirects (@nylen) -- [#1208](https://github.com/request/request/pull/1208) Improve release script (@nylen) -- [#1213](https://github.com/request/request/pull/1213) Support for custom cookie store (@nylen, @mitsuru) -- [#1197](https://github.com/request/request/pull/1197) Clean up some code around setting the agent (@FredKSchott) -- [#1209](https://github.com/request/request/pull/1209) Improve multipart form append test (@simov) -- [#1207](https://github.com/request/request/pull/1207) Update changelog (@nylen) -- [#1185](https://github.com/request/request/pull/1185) Stream multipart/related bodies (@simov) - -### v2.46.0 (2014/10/23) -- [#1198](https://github.com/request/request/pull/1198) doc for TLS/SSL protocol options (@shawnzhu) -- [#1200](https://github.com/request/request/pull/1200) Add a Gitter chat badge to README.md (@gitter-badger) -- [#1196](https://github.com/request/request/pull/1196) Upgrade taper test reporter to v0.3.0 (@nylen) -- [#1199](https://github.com/request/request/pull/1199) Fix lint error: undeclared var i (@nylen) -- [#1191](https://github.com/request/request/pull/1191) Move self.proxy decision logic out of init and into a helper (@FredKSchott) -- [#1190](https://github.com/request/request/pull/1190) Move _buildRequest() logic back into init (@FredKSchott) -- [#1186](https://github.com/request/request/pull/1186) Support Smarter Unix URL Scheme (@FredKSchott) -- [#1178](https://github.com/request/request/pull/1178) update form documentation for new usage (@FredKSchott) -- [#1180](https://github.com/request/request/pull/1180) Enable no-mixed-requires linting rule (@nylen) -- [#1184](https://github.com/request/request/pull/1184) Don't forward authorization header across redirects to different hosts (@nylen) -- [#1183](https://github.com/request/request/pull/1183) Correct README about pre and postamble CRLF using multipart and not mult... (@netpoetica) -- [#1179](https://github.com/request/request/pull/1179) Lint tests directory (@nylen) -- [#1169](https://github.com/request/request/pull/1169) add metadata for form-data file field (@dotcypress) -- [#1173](https://github.com/request/request/pull/1173) remove optional dependencies (@seanstrom) -- [#1165](https://github.com/request/request/pull/1165) Cleanup event listeners and remove function creation from init (@FredKSchott) -- [#1174](https://github.com/request/request/pull/1174) update the request.cookie docs to have a valid cookie example (@seanstrom) -- [#1168](https://github.com/request/request/pull/1168) create a detach helper and use detach helper in replace of nextTick (@seanstrom) -- [#1171](https://github.com/request/request/pull/1171) in post can send form data and use callback (@MiroRadenovic) -- [#1159](https://github.com/request/request/pull/1159) accept charset for x-www-form-urlencoded content-type (@seanstrom) -- [#1157](https://github.com/request/request/pull/1157) Update README.md: body with json=true (@Rob--W) -- [#1164](https://github.com/request/request/pull/1164) Disable tests/test-timeout.js on Travis (@nylen) -- [#1153](https://github.com/request/request/pull/1153) Document how to run a single test (@nylen) -- [#1144](https://github.com/request/request/pull/1144) adds documentation for the "response" event within the streaming section (@tbuchok) -- [#1162](https://github.com/request/request/pull/1162) Update eslintrc file to no longer allow past errors (@FredKSchott) -- [#1155](https://github.com/request/request/pull/1155) Support/use self everywhere (@seanstrom) -- [#1161](https://github.com/request/request/pull/1161) fix no-use-before-define lint warnings (@emkay) -- [#1156](https://github.com/request/request/pull/1156) adding curly brackets to get rid of lint errors (@emkay) -- [#1151](https://github.com/request/request/pull/1151) Fix localAddress test on OS X (@nylen) -- [#1145](https://github.com/request/request/pull/1145) documentation: fix outdated reference to setCookieSync old name in README (@FredKSchott) -- [#1131](https://github.com/request/request/pull/1131) Update pool documentation (@FredKSchott) -- [#1143](https://github.com/request/request/pull/1143) Rewrite all tests to use tape (@nylen) -- [#1137](https://github.com/request/request/pull/1137) Add ability to specifiy querystring lib in options. (@jgrund) -- [#1138](https://github.com/request/request/pull/1138) allow hostname and port in place of host on uri (@cappslock) -- [#1134](https://github.com/request/request/pull/1134) Fix multiple redirects and `self.followRedirect` (@blakeembrey) -- [#1130](https://github.com/request/request/pull/1130) documentation fix: add note about npm test for contributing (@FredKSchott) -- [#1120](https://github.com/request/request/pull/1120) Support/refactor request setup tunnel (@seanstrom) -- [#1129](https://github.com/request/request/pull/1129) linting fix: convert double quote strings to use single quotes (@FredKSchott) -- [#1124](https://github.com/request/request/pull/1124) linting fix: remove unneccesary semi-colons (@FredKSchott) - -### v2.45.0 (2014/10/06) -- [#1128](https://github.com/request/request/pull/1128) Add test for setCookie regression (@nylen) -- [#1127](https://github.com/request/request/pull/1127) added tests around using objects as values in a query string (@bcoe) -- [#1103](https://github.com/request/request/pull/1103) Support/refactor request constructor (@nylen, @seanstrom) -- [#1119](https://github.com/request/request/pull/1119) add basic linting to request library (@FredKSchott) -- [#1121](https://github.com/request/request/pull/1121) Revert "Explicitly use sync versions of cookie functions" (@nylen) -- [#1118](https://github.com/request/request/pull/1118) linting fix: Restructure bad empty if statement (@FredKSchott) -- [#1117](https://github.com/request/request/pull/1117) Fix a bad check for valid URIs (@FredKSchott) -- [#1113](https://github.com/request/request/pull/1113) linting fix: space out operators (@FredKSchott) -- [#1116](https://github.com/request/request/pull/1116) Fix typo in `noProxyHost` definition (@FredKSchott) -- [#1114](https://github.com/request/request/pull/1114) linting fix: Added a `new` operator that was missing when creating and throwing a new error (@FredKSchott) -- [#1096](https://github.com/request/request/pull/1096) No_proxy support (@samcday) -- [#1107](https://github.com/request/request/pull/1107) linting-fix: remove unused variables (@FredKSchott) -- [#1112](https://github.com/request/request/pull/1112) linting fix: Make return values consistent and more straitforward (@FredKSchott) -- [#1111](https://github.com/request/request/pull/1111) linting fix: authPieces was getting redeclared (@FredKSchott) -- [#1105](https://github.com/request/request/pull/1105) Use strict mode in request (@FredKSchott) -- [#1110](https://github.com/request/request/pull/1110) linting fix: replace lazy '==' with more strict '===' (@FredKSchott) -- [#1109](https://github.com/request/request/pull/1109) linting fix: remove function call from if-else conditional statement (@FredKSchott) -- [#1102](https://github.com/request/request/pull/1102) Fix to allow setting a `requester` on recursive calls to `request.defaults` (@tikotzky) -- [#1095](https://github.com/request/request/pull/1095) Tweaking engines in package.json (@pdehaan) -- [#1082](https://github.com/request/request/pull/1082) Forward the socket event from the httpModule request (@seanstrom) -- [#972](https://github.com/request/request/pull/972) Clarify gzip handling in the README (@kevinoid) -- [#1089](https://github.com/request/request/pull/1089) Mention that encoding defaults to utf8, not Buffer (@stuartpb) -- [#1088](https://github.com/request/request/pull/1088) Fix cookie example in README.md and make it more clear (@pipi32167) -- [#1027](https://github.com/request/request/pull/1027) Add support for multipart form data in request options. (@crocket) -- [#1076](https://github.com/request/request/pull/1076) use Request.abort() to abort the request when the request has timed-out (@seanstrom) -- [#1068](https://github.com/request/request/pull/1068) add optional postamble required by .NET multipart requests (@netpoetica) - -### v2.43.0 (2014/09/18) -- [#1057](https://github.com/request/request/pull/1057) Defaults should not overwrite defined options (@davidwood) -- [#1046](https://github.com/request/request/pull/1046) Propagate datastream errors, useful in case gzip fails. (@ZJONSSON, @Janpot) -- [#1063](https://github.com/request/request/pull/1063) copy the input headers object #1060 (@finnp) -- [#1031](https://github.com/request/request/pull/1031) Explicitly use sync versions of cookie functions (@ZJONSSON) -- [#1056](https://github.com/request/request/pull/1056) Fix redirects when passing url.parse(x) as URL to convenience method (@nylen) - -### v2.42.0 (2014/09/04) -- [#1053](https://github.com/request/request/pull/1053) Fix #1051 Parse auth properly when using non-tunneling proxy (@isaacs) - -### v2.41.0 (2014/09/04) -- [#1050](https://github.com/request/request/pull/1050) Pass whitelisted headers to tunneling proxy. Organize all tunneling logic. (@isaacs, @Feldhacker) -- [#1035](https://github.com/request/request/pull/1035) souped up nodei.co badge (@rvagg) -- [#1048](https://github.com/request/request/pull/1048) Aws is now possible over a proxy (@steven-aerts) -- [#1039](https://github.com/request/request/pull/1039) extract out helper functions to a helper file (@seanstrom) -- [#1021](https://github.com/request/request/pull/1021) Support/refactor indexjs (@seanstrom) -- [#1033](https://github.com/request/request/pull/1033) Improve and document debug options (@nylen) -- [#1034](https://github.com/request/request/pull/1034) Fix readme headings (@nylen) -- [#1030](https://github.com/request/request/pull/1030) Allow recursive request.defaults (@tikotzky) -- [#1029](https://github.com/request/request/pull/1029) Fix a couple of typos (@nylen) -- [#675](https://github.com/request/request/pull/675) Checking for SSL fault on connection before reading SSL properties (@VRMink) -- [#989](https://github.com/request/request/pull/989) Added allowRedirect function. Should return true if redirect is allowed or false otherwise (@doronin) -- [#1025](https://github.com/request/request/pull/1025) [fixes #1023] Set self._ended to true once response has ended (@mridgway) -- [#1020](https://github.com/request/request/pull/1020) Add back removed debug metadata (@FredKSchott) -- [#1008](https://github.com/request/request/pull/1008) Moving to module instead of cutomer buffer concatenation. (@mikeal) -- [#770](https://github.com/request/request/pull/770) Added dependency badge for README file; (@timgluz, @mafintosh, @lalitkapoor, @stash, @bobyrizov) -- [#1016](https://github.com/request/request/pull/1016) toJSON no longer results in an infinite loop, returns simple objects (@FredKSchott) -- [#1018](https://github.com/request/request/pull/1018) Remove pre-0.4.4 HTTPS fix (@mmalecki) -- [#1006](https://github.com/request/request/pull/1006) Migrate to caseless, fixes #1001 (@mikeal) -- [#995](https://github.com/request/request/pull/995) Fix parsing array of objects (@sjonnet19) -- [#999](https://github.com/request/request/pull/999) Fix fallback for browserify for optional modules. (@eiriksm) -- [#996](https://github.com/request/request/pull/996) Wrong oauth signature when multiple same param keys exist [updated] (@bengl, @hyjin) - -### v2.40.0 (2014/08/06) -- [#992](https://github.com/request/request/pull/992) Fix security vulnerability. Update qs (@poeticninja) -- [#988](https://github.com/request/request/pull/988) “--” -> “—” (@upisfree) -- [#987](https://github.com/request/request/pull/987) Show optional modules as being loaded by the module that reqeusted them (@iarna) - -### v2.39.0 (2014/07/24) -- [#976](https://github.com/request/request/pull/976) Update README.md (@pvoznenko) - -### v2.38.0 (2014/07/22) -- [#952](https://github.com/request/request/pull/952) Adding support to client certificate with proxy use case (@ofirshaked) -- [#884](https://github.com/request/request/pull/884) Documented tough-cookie installation. (@wbyoung) -- [#935](https://github.com/request/request/pull/935) Correct repository url (@fritx) -- [#963](https://github.com/request/request/pull/963) Update changelog (@nylen) -- [#960](https://github.com/request/request/pull/960) Support gzip with encoding on node pre-v0.9.4 (@kevinoid) -- [#953](https://github.com/request/request/pull/953) Add async Content-Length computation when using form-data (@LoicMahieu) -- [#844](https://github.com/request/request/pull/844) Add support for HTTP[S]_PROXY environment variables. Fixes #595. (@jvmccarthy) -- [#946](https://github.com/request/request/pull/946) defaults: merge headers (@aj0strow) - -### v2.37.0 (2014/07/07) -- [#957](https://github.com/request/request/pull/957) Silence EventEmitter memory leak warning #311 (@watson) -- [#955](https://github.com/request/request/pull/955) check for content-length header before setting it in nextTick (@camilleanne) -- [#951](https://github.com/request/request/pull/951) Add support for gzip content decoding (@kevinoid) -- [#949](https://github.com/request/request/pull/949) Manually enter querystring in form option (@charlespwd) -- [#944](https://github.com/request/request/pull/944) Make request work with browserify (@eiriksm) -- [#943](https://github.com/request/request/pull/943) New mime module (@eiriksm) -- [#927](https://github.com/request/request/pull/927) Bump version of hawk dep. (@samccone) -- [#907](https://github.com/request/request/pull/907) append secureOptions to poolKey (@medovob) - -### v2.35.0 (2014/05/17) -- [#901](https://github.com/request/request/pull/901) Fixes #555 (@pigulla) -- [#897](https://github.com/request/request/pull/897) merge with default options (@vohof) -- [#891](https://github.com/request/request/pull/891) fixes 857 - options object is mutated by calling request (@lalitkapoor) -- [#869](https://github.com/request/request/pull/869) Pipefilter test (@tgohn) -- [#866](https://github.com/request/request/pull/866) Fix typo (@dandv) -- [#861](https://github.com/request/request/pull/861) Add support for RFC 6750 Bearer Tokens (@phedny) -- [#809](https://github.com/request/request/pull/809) upgrade tunnel-proxy to 0.4.0 (@ksato9700) -- [#850](https://github.com/request/request/pull/850) Fix word consistency in readme (@0xNobody) -- [#810](https://github.com/request/request/pull/810) add some exposition to mpu example in README.md (@mikermcneil) -- [#840](https://github.com/request/request/pull/840) improve error reporting for invalid protocols (@FND) -- [#821](https://github.com/request/request/pull/821) added secureOptions back (@nw) -- [#815](https://github.com/request/request/pull/815) Create changelog based on pull requests (@lalitkapoor) - -### v2.34.0 (2014/02/18) -- [#516](https://github.com/request/request/pull/516) UNIX Socket URL Support (@lyuzashi) -- [#801](https://github.com/request/request/pull/801) 794 ignore cookie parsing and domain errors (@lalitkapoor) -- [#802](https://github.com/request/request/pull/802) Added the Apache license to the package.json. (@keskival) -- [#793](https://github.com/request/request/pull/793) Adds content-length calculation when submitting forms using form-data li... (@Juul) -- [#785](https://github.com/request/request/pull/785) Provide ability to override content-type when `json` option used (@vvo) -- [#781](https://github.com/request/request/pull/781) simpler isReadStream function (@joaojeronimo) - -### v2.32.0 (2014/01/16) -- [#767](https://github.com/request/request/pull/767) Use tough-cookie CookieJar sync API (@stash) -- [#764](https://github.com/request/request/pull/764) Case-insensitive authentication scheme (@bobyrizov) -- [#763](https://github.com/request/request/pull/763) Upgrade tough-cookie to 0.10.0 (@stash) -- [#744](https://github.com/request/request/pull/744) Use Cookie.parse (@lalitkapoor) -- [#757](https://github.com/request/request/pull/757) require aws-sign2 (@mafintosh) - -### v2.31.0 (2014/01/08) -- [#645](https://github.com/request/request/pull/645) update twitter api url to v1.1 (@mick) -- [#746](https://github.com/request/request/pull/746) README: Markdown code highlight (@weakish) -- [#745](https://github.com/request/request/pull/745) updating setCookie example to make it clear that the callback is required (@emkay) -- [#742](https://github.com/request/request/pull/742) Add note about JSON output body type (@iansltx) -- [#741](https://github.com/request/request/pull/741) README example is using old cookie jar api (@emkay) -- [#736](https://github.com/request/request/pull/736) Fix callback arguments documentation (@mmalecki) - -### v2.30.0 (2013/12/13) -- [#732](https://github.com/request/request/pull/732) JSHINT: Creating global 'for' variable. Should be 'for (var ...'. (@Fritz-Lium) -- [#730](https://github.com/request/request/pull/730) better HTTP DIGEST support (@dai-shi) -- [#728](https://github.com/request/request/pull/728) Fix TypeError when calling request.cookie (@scarletmeow) - -### v2.29.0 (2013/12/06) -- [#727](https://github.com/request/request/pull/727) fix requester bug (@jchris) -### v2.28.0 (2013/12/04) -- [#724](https://github.com/request/request/pull/724) README.md: add custom HTTP Headers example. (@tcort) -- [#719](https://github.com/request/request/pull/719) Made a comment gender neutral. (@unsetbit) -- [#715](https://github.com/request/request/pull/715) Request.multipart no longer crashes when header 'Content-type' present (@pastaclub) -- [#710](https://github.com/request/request/pull/710) Fixing listing in callback part of docs. (@lukasz-zak) -- [#696](https://github.com/request/request/pull/696) Edited README.md for formatting and clarity of phrasing (@Zearin) -- [#694](https://github.com/request/request/pull/694) Typo in README (@VRMink) -- [#690](https://github.com/request/request/pull/690) Handle blank password in basic auth. (@diversario) -- [#682](https://github.com/request/request/pull/682) Optional dependencies (@Turbo87) -- [#683](https://github.com/request/request/pull/683) Travis CI support (@Turbo87) -- [#674](https://github.com/request/request/pull/674) change cookie module,to tough-cookie.please check it . (@sxyizhiren) -- [#666](https://github.com/request/request/pull/666) make `ciphers` and `secureProtocol` to work in https request (@richarddong) -- [#656](https://github.com/request/request/pull/656) Test case for #304. (@diversario) -- [#662](https://github.com/request/request/pull/662) option.tunnel to explicitly disable tunneling (@seanmonstar) -- [#659](https://github.com/request/request/pull/659) fix failure when running with NODE_DEBUG=request, and a test for that (@jrgm) -- [#630](https://github.com/request/request/pull/630) Send random cnonce for HTTP Digest requests (@wprl) -- [#619](https://github.com/request/request/pull/619) decouple things a bit (@joaojeronimo) -- [#613](https://github.com/request/request/pull/613) Fixes #583, moved initialization of self.uri.pathname (@lexander) -- [#605](https://github.com/request/request/pull/605) Only include ":" + pass in Basic Auth if it's defined (fixes #602) (@bendrucker) -- [#596](https://github.com/request/request/pull/596) Global agent is being used when pool is specified (@Cauldrath) -- [#594](https://github.com/request/request/pull/594) Emit complete event when there is no callback (@RomainLK) -- [#601](https://github.com/request/request/pull/601) Fixed a small typo (@michalstanko) -- [#589](https://github.com/request/request/pull/589) Prevent setting headers after they are sent (@geek) -- [#587](https://github.com/request/request/pull/587) Global cookie jar disabled by default (@threepointone) -- [#544](https://github.com/request/request/pull/544) Update http-signature version. (@davidlehn) -- [#581](https://github.com/request/request/pull/581) Fix spelling of "ignoring." (@bigeasy) -- [#568](https://github.com/request/request/pull/568) use agentOptions to create agent when specified in request (@SamPlacette) -- [#564](https://github.com/request/request/pull/564) Fix redirections (@criloz) -- [#541](https://github.com/request/request/pull/541) The exported request function doesn't have an auth method (@tschaub) -- [#542](https://github.com/request/request/pull/542) Expose Request class (@regality) -- [#536](https://github.com/request/request/pull/536) Allow explicitly empty user field for basic authentication. (@mikeando) -- [#532](https://github.com/request/request/pull/532) fix typo (@fredericosilva) -- [#497](https://github.com/request/request/pull/497) Added redirect event (@Cauldrath) -- [#503](https://github.com/request/request/pull/503) Fix basic auth for passwords that contain colons (@tonistiigi) -- [#521](https://github.com/request/request/pull/521) Improving test-localAddress.js (@noway421) -- [#529](https://github.com/request/request/pull/529) dependencies versions bump (@jodaka) -- [#523](https://github.com/request/request/pull/523) Updating dependencies (@noway421) -- [#520](https://github.com/request/request/pull/520) Fixing test-tunnel.js (@noway421) -- [#519](https://github.com/request/request/pull/519) Update internal path state on post-creation QS changes (@jblebrun) -- [#510](https://github.com/request/request/pull/510) Add HTTP Signature support. (@davidlehn) -- [#502](https://github.com/request/request/pull/502) Fix POST (and probably other) requests that are retried after 401 Unauthorized (@nylen) -- [#508](https://github.com/request/request/pull/508) Honor the .strictSSL option when using proxies (tunnel-agent) (@jhs) -- [#512](https://github.com/request/request/pull/512) Make password optional to support the format: http://username@hostname/ (@pajato1) -- [#513](https://github.com/request/request/pull/513) add 'localAddress' support (@yyfrankyy) -- [#498](https://github.com/request/request/pull/498) Moving response emit above setHeaders on destination streams (@kenperkins) -- [#490](https://github.com/request/request/pull/490) Empty response body (3-rd argument) must be passed to callback as an empty string (@Olegas) -- [#479](https://github.com/request/request/pull/479) Changing so if Accept header is explicitly set, sending json does not ov... (@RoryH) -- [#475](https://github.com/request/request/pull/475) Use `unescape` from `querystring` (@shimaore) -- [#473](https://github.com/request/request/pull/473) V0.10 compat (@isaacs) -- [#471](https://github.com/request/request/pull/471) Using querystring library from visionmedia (@kbackowski) -- [#461](https://github.com/request/request/pull/461) Strip the UTF8 BOM from a UTF encoded response (@kppullin) -- [#460](https://github.com/request/request/pull/460) hawk 0.10.0 (@hueniverse) -- [#462](https://github.com/request/request/pull/462) if query params are empty, then request path shouldn't end with a '?' (merges cleanly now) (@jaipandya) -- [#456](https://github.com/request/request/pull/456) hawk 0.9.0 (@hueniverse) -- [#429](https://github.com/request/request/pull/429) Copy options before adding callback. (@nrn, @nfriedly, @youurayy, @jplock, @kapetan, @landeiro, @othiym23, @mmalecki) -- [#454](https://github.com/request/request/pull/454) Destroy the response if present when destroying the request (clean merge) (@mafintosh) -- [#310](https://github.com/request/request/pull/310) Twitter Oauth Stuff Out of Date; Now Updated (@joemccann, @isaacs, @mscdex) -- [#413](https://github.com/request/request/pull/413) rename googledoodle.png to .jpg (@nfriedly, @youurayy, @jplock, @kapetan, @landeiro, @othiym23, @mmalecki) -- [#448](https://github.com/request/request/pull/448) Convenience method for PATCH (@mloar) -- [#444](https://github.com/request/request/pull/444) protect against double callbacks on error path (@spollack) -- [#433](https://github.com/request/request/pull/433) Added support for HTTPS cert & key (@mmalecki) -- [#430](https://github.com/request/request/pull/430) Respect specified {Host,host} headers, not just {host} (@andrewschaaf) -- [#415](https://github.com/request/request/pull/415) Fixed a typo. (@jerem) -- [#338](https://github.com/request/request/pull/338) Add more auth options, including digest support (@nylen) -- [#403](https://github.com/request/request/pull/403) Optimize environment lookup to happen once only (@mmalecki) -- [#398](https://github.com/request/request/pull/398) Add more reporting to tests (@mmalecki) -- [#388](https://github.com/request/request/pull/388) Ensure "safe" toJSON doesn't break EventEmitters (@othiym23) -- [#381](https://github.com/request/request/pull/381) Resolving "Invalid signature. Expected signature base string: " (@landeiro) -- [#380](https://github.com/request/request/pull/380) Fixes missing host header on retried request when using forever agent (@mac-) -- [#376](https://github.com/request/request/pull/376) Headers lost on redirect (@kapetan) -- [#375](https://github.com/request/request/pull/375) Fix for missing oauth_timestamp parameter (@jplock) -- [#374](https://github.com/request/request/pull/374) Correct Host header for proxy tunnel CONNECT (@youurayy) -- [#370](https://github.com/request/request/pull/370) Twitter reverse auth uses x_auth_mode not x_auth_type (@drudge) -- [#369](https://github.com/request/request/pull/369) Don't remove x_auth_mode for Twitter reverse auth (@drudge) -- [#344](https://github.com/request/request/pull/344) Make AWS auth signing find headers correctly (@nlf) -- [#363](https://github.com/request/request/pull/363) rfc3986 on base_uri, now passes tests (@jeffmarshall) -- [#362](https://github.com/request/request/pull/362) Running `rfc3986` on `base_uri` in `oauth.hmacsign` instead of just `encodeURIComponent` (@jeffmarshall) -- [#361](https://github.com/request/request/pull/361) Don't create a Content-Length header if we already have it set (@danjenkins) -- [#360](https://github.com/request/request/pull/360) Delete self._form along with everything else on redirect (@jgautier) -- [#355](https://github.com/request/request/pull/355) stop sending erroneous headers on redirected requests (@azylman) -- [#332](https://github.com/request/request/pull/332) Fix #296 - Only set Content-Type if body exists (@Marsup) -- [#343](https://github.com/request/request/pull/343) Allow AWS to work in more situations, added a note in the README on its usage (@nlf) -- [#320](https://github.com/request/request/pull/320) request.defaults() doesn't need to wrap jar() (@StuartHarris) -- [#322](https://github.com/request/request/pull/322) Fix + test for piped into request bumped into redirect. #321 (@alexindigo) -- [#326](https://github.com/request/request/pull/326) Do not try to remove listener from an undefined connection (@CartoDB) -- [#318](https://github.com/request/request/pull/318) Pass servername to tunneling secure socket creation (@isaacs) -- [#317](https://github.com/request/request/pull/317) Workaround for #313 (@isaacs) -- [#293](https://github.com/request/request/pull/293) Allow parser errors to bubble up to request (@mscdex) -- [#290](https://github.com/request/request/pull/290) A test for #289 (@isaacs) -- [#280](https://github.com/request/request/pull/280) Like in node.js print options if NODE_DEBUG contains the word request (@Filirom1) -- [#207](https://github.com/request/request/pull/207) Fix #206 Change HTTP/HTTPS agent when redirecting between protocols (@isaacs) -- [#214](https://github.com/request/request/pull/214) documenting additional behavior of json option (@jphaas, @vpulim) -- [#272](https://github.com/request/request/pull/272) Boundary begins with CRLF? (@elspoono, @timshadel, @naholyr, @nanodocumet, @TehShrike) -- [#284](https://github.com/request/request/pull/284) Remove stray `console.log()` call in multipart generator. (@bcherry) -- [#241](https://github.com/request/request/pull/241) Composability updates suggested by issue #239 (@polotek) -- [#282](https://github.com/request/request/pull/282) OAuth Authorization header contains non-"oauth_" parameters (@jplock) -- [#279](https://github.com/request/request/pull/279) fix tests with boundary by injecting boundry from header (@benatkin) -- [#273](https://github.com/request/request/pull/273) Pipe back pressure issue (@mafintosh) -- [#268](https://github.com/request/request/pull/268) I'm not OCD seriously (@TehShrike) -- [#263](https://github.com/request/request/pull/263) Bug in OAuth key generation for sha1 (@nanodocumet) -- [#265](https://github.com/request/request/pull/265) uncaughtException when redirected to invalid URI (@naholyr) -- [#262](https://github.com/request/request/pull/262) JSON test should check for equality (@timshadel) -- [#261](https://github.com/request/request/pull/261) Setting 'pool' to 'false' does NOT disable Agent pooling (@timshadel) -- [#249](https://github.com/request/request/pull/249) Fix for the fix of your (closed) issue #89 where self.headers[content-length] is set to 0 for all methods (@sethbridges, @polotek, @zephrax, @jeromegn) -- [#255](https://github.com/request/request/pull/255) multipart allow body === '' ( the empty string ) (@Filirom1) -- [#260](https://github.com/request/request/pull/260) fixed just another leak of 'i' (@sreuter) -- [#246](https://github.com/request/request/pull/246) Fixing the set-cookie header (@jeromegn) -- [#243](https://github.com/request/request/pull/243) Dynamic boundary (@zephrax) -- [#240](https://github.com/request/request/pull/240) don't error when null is passed for options (@polotek) -- [#211](https://github.com/request/request/pull/211) Replace all occurrences of special chars in RFC3986 (@chriso, @vpulim) -- [#224](https://github.com/request/request/pull/224) Multipart content-type change (@janjongboom) -- [#217](https://github.com/request/request/pull/217) need to use Authorization (titlecase) header with Tumblr OAuth (@visnup) -- [#203](https://github.com/request/request/pull/203) Fix cookie and redirect bugs and add auth support for HTTPS tunnel (@vpulim) -- [#199](https://github.com/request/request/pull/199) Tunnel (@isaacs) -- [#198](https://github.com/request/request/pull/198) Bugfix on forever usage of util.inherits (@isaacs) -- [#197](https://github.com/request/request/pull/197) Make ForeverAgent work with HTTPS (@isaacs) -- [#193](https://github.com/request/request/pull/193) Fixes GH-119 (@goatslacker) -- [#188](https://github.com/request/request/pull/188) Add abort support to the returned request (@itay) -- [#176](https://github.com/request/request/pull/176) Querystring option (@csainty) -- [#182](https://github.com/request/request/pull/182) Fix request.defaults to support (uri, options, callback) api (@twilson63) -- [#180](https://github.com/request/request/pull/180) Modified the post, put, head and del shortcuts to support uri optional param (@twilson63) -- [#179](https://github.com/request/request/pull/179) fix to add opts in .pipe(stream, opts) (@substack) -- [#177](https://github.com/request/request/pull/177) Issue #173 Support uri as first and optional config as second argument (@twilson63) -- [#170](https://github.com/request/request/pull/170) can't create a cookie in a wrapped request (defaults) (@fabianonunes) -- [#168](https://github.com/request/request/pull/168) Picking off an EasyFix by adding some missing mimetypes. (@serby) -- [#161](https://github.com/request/request/pull/161) Fix cookie jar/headers.cookie collision (#125) (@papandreou) -- [#162](https://github.com/request/request/pull/162) Fix issue #159 (@dpetukhov) -- [#90](https://github.com/request/request/pull/90) add option followAllRedirects to follow post/put redirects (@jroes) -- [#148](https://github.com/request/request/pull/148) Retry Agent (@thejh) -- [#146](https://github.com/request/request/pull/146) Multipart should respect content-type if previously set (@apeace) -- [#144](https://github.com/request/request/pull/144) added "form" option to readme (@petejkim) -- [#133](https://github.com/request/request/pull/133) Fixed cookies parsing (@afanasy) -- [#135](https://github.com/request/request/pull/135) host vs hostname (@iangreenleaf) -- [#132](https://github.com/request/request/pull/132) return the body as a Buffer when encoding is set to null (@jahewson) -- [#112](https://github.com/request/request/pull/112) Support using a custom http-like module (@jhs) -- [#104](https://github.com/request/request/pull/104) Cookie handling contains bugs (@janjongboom) -- [#121](https://github.com/request/request/pull/121) Another patch for cookie handling regression (@jhurliman) -- [#117](https://github.com/request/request/pull/117) Remove the global `i` (@3rd-Eden) -- [#110](https://github.com/request/request/pull/110) Update to Iris Couch URL (@jhs) -- [#86](https://github.com/request/request/pull/86) Can't post binary to multipart requests (@kkaefer) -- [#105](https://github.com/request/request/pull/105) added test for proxy option. (@dominictarr) -- [#102](https://github.com/request/request/pull/102) Implemented cookies - closes issue 82: https://github.com/mikeal/request/issues/82 (@alessioalex) -- [#97](https://github.com/request/request/pull/97) Typo in previous pull causes TypeError in non-0.5.11 versions (@isaacs) -- [#96](https://github.com/request/request/pull/96) Authless parsed url host support (@isaacs) -- [#81](https://github.com/request/request/pull/81) Enhance redirect handling (@danmactough) -- [#78](https://github.com/request/request/pull/78) Don't try to do strictSSL for non-ssl connections (@isaacs) -- [#76](https://github.com/request/request/pull/76) Bug when a request fails and a timeout is set (@Marsup) -- [#70](https://github.com/request/request/pull/70) add test script to package.json (@isaacs, @aheckmann) -- [#73](https://github.com/request/request/pull/73) Fix #71 Respect the strictSSL flag (@isaacs) -- [#69](https://github.com/request/request/pull/69) Flatten chunked requests properly (@isaacs) -- [#67](https://github.com/request/request/pull/67) fixed global variable leaks (@aheckmann) -- [#66](https://github.com/request/request/pull/66) Do not overwrite established content-type headers for read stream deliver (@voodootikigod) -- [#53](https://github.com/request/request/pull/53) Parse json: Issue #51 (@benatkin) -- [#45](https://github.com/request/request/pull/45) Added timeout option (@mbrevoort) -- [#35](https://github.com/request/request/pull/35) The "end" event isn't emitted for some responses (@voxpelli) -- [#31](https://github.com/request/request/pull/31) Error on piping a request to a destination (@tobowers) \ No newline at end of file diff --git a/node_modules/request/LICENSE b/node_modules/request/LICENSE deleted file mode 100644 index a4a9aee..0000000 --- a/node_modules/request/LICENSE +++ /dev/null @@ -1,55 +0,0 @@ -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and - -You must cause any modified files to carry prominent notices stating that You changed the files; and - -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/node_modules/request/README.md b/node_modules/request/README.md deleted file mode 100644 index 2ddfe72..0000000 --- a/node_modules/request/README.md +++ /dev/null @@ -1,1098 +0,0 @@ - -# Request - Simplified HTTP client - -[![npm package](https://nodei.co/npm/request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/request/) - -[![Build status](https://img.shields.io/travis/request/request/master.svg?style=flat-square)](https://travis-ci.org/request/request) -[![Coverage](https://img.shields.io/codecov/c/github/request/request.svg?style=flat-square)](https://codecov.io/github/request/request?branch=master) -[![Coverage](https://img.shields.io/coveralls/request/request.svg?style=flat-square)](https://coveralls.io/r/request/request) -[![Dependency Status](https://img.shields.io/david/request/request.svg?style=flat-square)](https://david-dm.org/request/request) -[![Known Vulnerabilities](https://snyk.io/test/npm/request/badge.svg?style=flat-square)](https://snyk.io/test/npm/request) -[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/request/request?utm_source=badge) - - -## Super simple to use - -Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default. - -```js -var request = require('request'); -request('http://www.google.com', function (error, response, body) { - if (!error && response.statusCode == 200) { - console.log(body) // Show the HTML for the Google homepage. - } -}) -``` - - -## Table of contents - -- [Streaming](#streaming) -- [Forms](#forms) -- [HTTP Authentication](#http-authentication) -- [Custom HTTP Headers](#custom-http-headers) -- [OAuth Signing](#oauth-signing) -- [Proxies](#proxies) -- [Unix Domain Sockets](#unix-domain-sockets) -- [TLS/SSL Protocol](#tlsssl-protocol) -- [Support for HAR 1.2](#support-for-har-12) -- [**All Available Options**](#requestoptions-callback) - -Request also offers [convenience methods](#convenience-methods) like -`request.defaults` and `request.post`, and there are -lots of [usage examples](#examples) and several -[debugging techniques](#debugging). - - ---- - - -## Streaming - -You can stream any response to a file stream. - -```js -request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png')) -``` - -You can also stream a file to a PUT or POST request. This method will also check the file extension against a mapping of file extensions to content-types (in this case `application/json`) and use the proper `content-type` in the PUT request (if the headers don’t already provide one). - -```js -fs.createReadStream('file.json').pipe(request.put('http://mysite.com/obj.json')) -``` - -Request can also `pipe` to itself. When doing so, `content-type` and `content-length` are preserved in the PUT headers. - -```js -request.get('http://google.com/img.png').pipe(request.put('http://mysite.com/img.png')) -``` - -Request emits a "response" event when a response is received. The `response` argument will be an instance of [http.IncomingMessage](https://nodejs.org/api/http.html#http_class_http_incomingmessage). - -```js -request - .get('http://google.com/img.png') - .on('response', function(response) { - console.log(response.statusCode) // 200 - console.log(response.headers['content-type']) // 'image/png' - }) - .pipe(request.put('http://mysite.com/img.png')) -``` - -To easily handle errors when streaming requests, listen to the `error` event before piping: - -```js -request - .get('http://mysite.com/doodle.png') - .on('error', function(err) { - console.log(err) - }) - .pipe(fs.createWriteStream('doodle.png')) -``` - -Now let’s get fancy. - -```js -http.createServer(function (req, resp) { - if (req.url === '/doodle.png') { - if (req.method === 'PUT') { - req.pipe(request.put('http://mysite.com/doodle.png')) - } else if (req.method === 'GET' || req.method === 'HEAD') { - request.get('http://mysite.com/doodle.png').pipe(resp) - } - } -}) -``` - -You can also `pipe()` from `http.ServerRequest` instances, as well as to `http.ServerResponse` instances. The HTTP method, headers, and entity-body data will be sent. Which means that, if you don't really care about security, you can do: - -```js -http.createServer(function (req, resp) { - if (req.url === '/doodle.png') { - var x = request('http://mysite.com/doodle.png') - req.pipe(x) - x.pipe(resp) - } -}) -``` - -And since `pipe()` returns the destination stream in ≥ Node 0.5.x you can do one line proxying. :) - -```js -req.pipe(request('http://mysite.com/doodle.png')).pipe(resp) -``` - -Also, none of this new functionality conflicts with requests previous features, it just expands them. - -```js -var r = request.defaults({'proxy':'http://localproxy.com'}) - -http.createServer(function (req, resp) { - if (req.url === '/doodle.png') { - r.get('http://google.com/doodle.png').pipe(resp) - } -}) -``` - -You can still use intermediate proxies, the requests will still follow HTTP forwards, etc. - -[back to top](#table-of-contents) - - ---- - - -## Forms - -`request` supports `application/x-www-form-urlencoded` and `multipart/form-data` form uploads. For `multipart/related` refer to the `multipart` API. - - -#### application/x-www-form-urlencoded (URL-Encoded Forms) - -URL-encoded forms are simple. - -```js -request.post('http://service.com/upload', {form:{key:'value'}}) -// or -request.post('http://service.com/upload').form({key:'value'}) -// or -request.post({url:'http://service.com/upload', form: {key:'value'}}, function(err,httpResponse,body){ /* ... */ }) -``` - - -#### multipart/form-data (Multipart Form Uploads) - -For `multipart/form-data` we use the [form-data](https://github.com/form-data/form-data) library by [@felixge](https://github.com/felixge). For the most cases, you can pass your upload form data via the `formData` option. - - -```js -var formData = { - // Pass a simple key-value pair - my_field: 'my_value', - // Pass data via Buffers - my_buffer: new Buffer([1, 2, 3]), - // Pass data via Streams - my_file: fs.createReadStream(__dirname + '/unicycle.jpg'), - // Pass multiple values /w an Array - attachments: [ - fs.createReadStream(__dirname + '/attachment1.jpg'), - fs.createReadStream(__dirname + '/attachment2.jpg') - ], - // Pass optional meta-data with an 'options' object with style: {value: DATA, options: OPTIONS} - // Use case: for some types of streams, you'll need to provide "file"-related information manually. - // See the `form-data` README for more information about options: https://github.com/form-data/form-data - custom_file: { - value: fs.createReadStream('/dev/urandom'), - options: { - filename: 'topsecret.jpg', - contentType: 'image/jpg' - } - } -}; -request.post({url:'http://service.com/upload', formData: formData}, function optionalCallback(err, httpResponse, body) { - if (err) { - return console.error('upload failed:', err); - } - console.log('Upload successful! Server responded with:', body); -}); -``` - -For advanced cases, you can access the form-data object itself via `r.form()`. This can be modified until the request is fired on the next cycle of the event-loop. (Note that this calling `form()` will clear the currently set form data for that request.) - -```js -// NOTE: Advanced use-case, for normal use see 'formData' usage above -var r = request.post('http://service.com/upload', function optionalCallback(err, httpResponse, body) {...}) -var form = r.form(); -form.append('my_field', 'my_value'); -form.append('my_buffer', new Buffer([1, 2, 3])); -form.append('custom_file', fs.createReadStream(__dirname + '/unicycle.jpg'), {filename: 'unicycle.jpg'}); -``` -See the [form-data README](https://github.com/form-data/form-data) for more information & examples. - - -#### multipart/related - -Some variations in different HTTP implementations require a newline/CRLF before, after, or both before and after the boundary of a `multipart/related` request (using the multipart option). This has been observed in the .NET WebAPI version 4.0. You can turn on a boundary preambleCRLF or postamble by passing them as `true` to your request options. - -```js - request({ - method: 'PUT', - preambleCRLF: true, - postambleCRLF: true, - uri: 'http://service.com/upload', - multipart: [ - { - 'content-type': 'application/json', - body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}}) - }, - { body: 'I am an attachment' }, - { body: fs.createReadStream('image.png') } - ], - // alternatively pass an object containing additional options - multipart: { - chunked: false, - data: [ - { - 'content-type': 'application/json', - body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}}) - }, - { body: 'I am an attachment' } - ] - } - }, - function (error, response, body) { - if (error) { - return console.error('upload failed:', error); - } - console.log('Upload successful! Server responded with:', body); - }) -``` - -[back to top](#table-of-contents) - - ---- - - -## HTTP Authentication - -```js -request.get('http://some.server.com/').auth('username', 'password', false); -// or -request.get('http://some.server.com/', { - 'auth': { - 'user': 'username', - 'pass': 'password', - 'sendImmediately': false - } -}); -// or -request.get('http://some.server.com/').auth(null, null, true, 'bearerToken'); -// or -request.get('http://some.server.com/', { - 'auth': { - 'bearer': 'bearerToken' - } -}); -``` - -If passed as an option, `auth` should be a hash containing values: - -- `user` || `username` -- `pass` || `password` -- `sendImmediately` (optional) -- `bearer` (optional) - -The method form takes parameters -`auth(username, password, sendImmediately, bearer)`. - -`sendImmediately` defaults to `true`, which causes a basic or bearer -authentication header to be sent. If `sendImmediately` is `false`, then -`request` will retry with a proper authentication header after receiving a -`401` response from the server (which must contain a `WWW-Authenticate` header -indicating the required authentication method). - -Note that you can also specify basic authentication using the URL itself, as -detailed in [RFC 1738](http://www.ietf.org/rfc/rfc1738.txt). Simply pass the -`user:password` before the host with an `@` sign: - -```js -var username = 'username', - password = 'password', - url = 'http://' + username + ':' + password + '@some.server.com'; - -request({url: url}, function (error, response, body) { - // Do more stuff with 'body' here -}); -``` - -Digest authentication is supported, but it only works with `sendImmediately` -set to `false`; otherwise `request` will send basic authentication on the -initial request, which will probably cause the request to fail. - -Bearer authentication is supported, and is activated when the `bearer` value is -available. The value may be either a `String` or a `Function` returning a -`String`. Using a function to supply the bearer token is particularly useful if -used in conjunction with `defaults` to allow a single function to supply the -last known token at the time of sending a request, or to compute one on the fly. - -[back to top](#table-of-contents) - - ---- - - -## Custom HTTP Headers - -HTTP Headers, such as `User-Agent`, can be set in the `options` object. -In the example below, we call the github API to find out the number -of stars and forks for the request repository. This requires a -custom `User-Agent` header as well as https. - -```js -var request = require('request'); - -var options = { - url: 'https://api.github.com/repos/request/request', - headers: { - 'User-Agent': 'request' - } -}; - -function callback(error, response, body) { - if (!error && response.statusCode == 200) { - var info = JSON.parse(body); - console.log(info.stargazers_count + " Stars"); - console.log(info.forks_count + " Forks"); - } -} - -request(options, callback); -``` - -[back to top](#table-of-contents) - - ---- - - -## OAuth Signing - -[OAuth version 1.0](https://tools.ietf.org/html/rfc5849) is supported. The -default signing algorithm is -[HMAC-SHA1](https://tools.ietf.org/html/rfc5849#section-3.4.2): - -```js -// OAuth1.0 - 3-legged server side flow (Twitter example) -// step 1 -var qs = require('querystring') - , oauth = - { callback: 'http://mysite.com/callback/' - , consumer_key: CONSUMER_KEY - , consumer_secret: CONSUMER_SECRET - } - , url = 'https://api.twitter.com/oauth/request_token' - ; -request.post({url:url, oauth:oauth}, function (e, r, body) { - // Ideally, you would take the body in the response - // and construct a URL that a user clicks on (like a sign in button). - // The verifier is only available in the response after a user has - // verified with twitter that they are authorizing your app. - - // step 2 - var req_data = qs.parse(body) - var uri = 'https://api.twitter.com/oauth/authenticate' - + '?' + qs.stringify({oauth_token: req_data.oauth_token}) - // redirect the user to the authorize uri - - // step 3 - // after the user is redirected back to your server - var auth_data = qs.parse(body) - , oauth = - { consumer_key: CONSUMER_KEY - , consumer_secret: CONSUMER_SECRET - , token: auth_data.oauth_token - , token_secret: req_data.oauth_token_secret - , verifier: auth_data.oauth_verifier - } - , url = 'https://api.twitter.com/oauth/access_token' - ; - request.post({url:url, oauth:oauth}, function (e, r, body) { - // ready to make signed requests on behalf of the user - var perm_data = qs.parse(body) - , oauth = - { consumer_key: CONSUMER_KEY - , consumer_secret: CONSUMER_SECRET - , token: perm_data.oauth_token - , token_secret: perm_data.oauth_token_secret - } - , url = 'https://api.twitter.com/1.1/users/show.json' - , qs = - { screen_name: perm_data.screen_name - , user_id: perm_data.user_id - } - ; - request.get({url:url, oauth:oauth, qs:qs, json:true}, function (e, r, user) { - console.log(user) - }) - }) -}) -``` - -For [RSA-SHA1 signing](https://tools.ietf.org/html/rfc5849#section-3.4.3), make -the following changes to the OAuth options object: -* Pass `signature_method : 'RSA-SHA1'` -* Instead of `consumer_secret`, specify a `private_key` string in - [PEM format](http://how2ssl.com/articles/working_with_pem_files/) - -For [PLAINTEXT signing](http://oauth.net/core/1.0/#anchor22), make -the following changes to the OAuth options object: -* Pass `signature_method : 'PLAINTEXT'` - -To send OAuth parameters via query params or in a post body as described in The -[Consumer Request Parameters](http://oauth.net/core/1.0/#consumer_req_param) -section of the oauth1 spec: -* Pass `transport_method : 'query'` or `transport_method : 'body'` in the OAuth - options object. -* `transport_method` defaults to `'header'` - -To use [Request Body Hash](https://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/oauth-bodyhash.html) you can either -* Manually generate the body hash and pass it as a string `body_hash: '...'` -* Automatically generate the body hash by passing `body_hash: true` - -[back to top](#table-of-contents) - - ---- - - -## Proxies - -If you specify a `proxy` option, then the request (and any subsequent -redirects) will be sent via a connection to the proxy server. - -If your endpoint is an `https` url, and you are using a proxy, then -request will send a `CONNECT` request to the proxy server *first*, and -then use the supplied connection to connect to the endpoint. - -That is, first it will make a request like: - -``` -HTTP/1.1 CONNECT endpoint-server.com:80 -Host: proxy-server.com -User-Agent: whatever user agent you specify -``` - -and then the proxy server make a TCP connection to `endpoint-server` -on port `80`, and return a response that looks like: - -``` -HTTP/1.1 200 OK -``` - -At this point, the connection is left open, and the client is -communicating directly with the `endpoint-server.com` machine. - -See [the wikipedia page on HTTP Tunneling](https://en.wikipedia.org/wiki/HTTP_tunnel) -for more information. - -By default, when proxying `http` traffic, request will simply make a -standard proxied `http` request. This is done by making the `url` -section of the initial line of the request a fully qualified url to -the endpoint. - -For example, it will make a single request that looks like: - -``` -HTTP/1.1 GET http://endpoint-server.com/some-url -Host: proxy-server.com -Other-Headers: all go here - -request body or whatever -``` - -Because a pure "http over http" tunnel offers no additional security -or other features, it is generally simpler to go with a -straightforward HTTP proxy in this case. However, if you would like -to force a tunneling proxy, you may set the `tunnel` option to `true`. - -You can also make a standard proxied `http` request by explicitly setting -`tunnel : false`, but **note that this will allow the proxy to see the traffic -to/from the destination server**. - -If you are using a tunneling proxy, you may set the -`proxyHeaderWhiteList` to share certain headers with the proxy. - -You can also set the `proxyHeaderExclusiveList` to share certain -headers only with the proxy and not with destination host. - -By default, this set is: - -``` -accept -accept-charset -accept-encoding -accept-language -accept-ranges -cache-control -content-encoding -content-language -content-length -content-location -content-md5 -content-range -content-type -connection -date -expect -max-forwards -pragma -proxy-authorization -referer -te -transfer-encoding -user-agent -via -``` - -Note that, when using a tunneling proxy, the `proxy-authorization` -header and any headers from custom `proxyHeaderExclusiveList` are -*never* sent to the endpoint server, but only to the proxy server. - - -### Controlling proxy behaviour using environment variables - -The following environment variables are respected by `request`: - - * `HTTP_PROXY` / `http_proxy` - * `HTTPS_PROXY` / `https_proxy` - * `NO_PROXY` / `no_proxy` - -When `HTTP_PROXY` / `http_proxy` are set, they will be used to proxy non-SSL requests that do not have an explicit `proxy` configuration option present. Similarly, `HTTPS_PROXY` / `https_proxy` will be respected for SSL requests that do not have an explicit `proxy` configuration option. It is valid to define a proxy in one of the environment variables, but then override it for a specific request, using the `proxy` configuration option. Furthermore, the `proxy` configuration option can be explicitly set to false / null to opt out of proxying altogether for that request. - -`request` is also aware of the `NO_PROXY`/`no_proxy` environment variables. These variables provide a granular way to opt out of proxying, on a per-host basis. It should contain a comma separated list of hosts to opt out of proxying. It is also possible to opt of proxying when a particular destination port is used. Finally, the variable may be set to `*` to opt out of the implicit proxy configuration of the other environment variables. - -Here's some examples of valid `no_proxy` values: - - * `google.com` - don't proxy HTTP/HTTPS requests to Google. - * `google.com:443` - don't proxy HTTPS requests to Google, but *do* proxy HTTP requests to Google. - * `google.com:443, yahoo.com:80` - don't proxy HTTPS requests to Google, and don't proxy HTTP requests to Yahoo! - * `*` - ignore `https_proxy`/`http_proxy` environment variables altogether. - -[back to top](#table-of-contents) - - ---- - - -## UNIX Domain Sockets - -`request` supports making requests to [UNIX Domain Sockets](https://en.wikipedia.org/wiki/Unix_domain_socket). To make one, use the following URL scheme: - -```js -/* Pattern */ 'http://unix:SOCKET:PATH' -/* Example */ request.get('http://unix:/absolute/path/to/unix.socket:/request/path') -``` - -Note: The `SOCKET` path is assumed to be absolute to the root of the host file system. - -[back to top](#table-of-contents) - - ---- - - -## TLS/SSL Protocol - -TLS/SSL Protocol options, such as `cert`, `key` and `passphrase`, can be -set directly in `options` object, in the `agentOptions` property of the `options` object, or even in `https.globalAgent.options`. Keep in mind that, although `agentOptions` allows for a slightly wider range of configurations, the recommended way is via `options` object directly, as using `agentOptions` or `https.globalAgent.options` would not be applied in the same way in proxied environments (as data travels through a TLS connection instead of an http/https agent). - -```js -var fs = require('fs') - , path = require('path') - , certFile = path.resolve(__dirname, 'ssl/client.crt') - , keyFile = path.resolve(__dirname, 'ssl/client.key') - , caFile = path.resolve(__dirname, 'ssl/ca.cert.pem') - , request = require('request'); - -var options = { - url: 'https://api.some-server.com/', - cert: fs.readFileSync(certFile), - key: fs.readFileSync(keyFile), - passphrase: 'password', - ca: fs.readFileSync(caFile) -}; - -request.get(options); -``` - -### Using `options.agentOptions` - -In the example below, we call an API requires client side SSL certificate -(in PEM format) with passphrase protected private key (in PEM format) and disable the SSLv3 protocol: - -```js -var fs = require('fs') - , path = require('path') - , certFile = path.resolve(__dirname, 'ssl/client.crt') - , keyFile = path.resolve(__dirname, 'ssl/client.key') - , request = require('request'); - -var options = { - url: 'https://api.some-server.com/', - agentOptions: { - cert: fs.readFileSync(certFile), - key: fs.readFileSync(keyFile), - // Or use `pfx` property replacing `cert` and `key` when using private key, certificate and CA certs in PFX or PKCS12 format: - // pfx: fs.readFileSync(pfxFilePath), - passphrase: 'password', - securityOptions: 'SSL_OP_NO_SSLv3' - } -}; - -request.get(options); -``` - -It is able to force using SSLv3 only by specifying `secureProtocol`: - -```js -request.get({ - url: 'https://api.some-server.com/', - agentOptions: { - secureProtocol: 'SSLv3_method' - } -}); -``` - -It is possible to accept other certificates than those signed by generally allowed Certificate Authorities (CAs). -This can be useful, for example, when using self-signed certificates. -To require a different root certificate, you can specify the signing CA by adding the contents of the CA's certificate file to the `agentOptions`. -The certificate the domain presents must be signed by the root certificate specified: - -```js -request.get({ - url: 'https://api.some-server.com/', - agentOptions: { - ca: fs.readFileSync('ca.cert.pem') - } -}); -``` - -[back to top](#table-of-contents) - - ---- - -## Support for HAR 1.2 - -The `options.har` property will override the values: `url`, `method`, `qs`, `headers`, `form`, `formData`, `body`, `json`, as well as construct multipart data and read files from disk when `request.postData.params[].fileName` is present without a matching `value`. - -a validation step will check if the HAR Request format matches the latest spec (v1.2) and will skip parsing if not matching. - -```js - var request = require('request') - request({ - // will be ignored - method: 'GET', - uri: 'http://www.google.com', - - // HTTP Archive Request Object - har: { - url: 'http://www.mockbin.com/har', - method: 'POST', - headers: [ - { - name: 'content-type', - value: 'application/x-www-form-urlencoded' - } - ], - postData: { - mimeType: 'application/x-www-form-urlencoded', - params: [ - { - name: 'foo', - value: 'bar' - }, - { - name: 'hello', - value: 'world' - } - ] - } - } - }) - - // a POST request will be sent to http://www.mockbin.com - // with body an application/x-www-form-urlencoded body: - // foo=bar&hello=world -``` - -[back to top](#table-of-contents) - - ---- - -## request(options, callback) - -The first argument can be either a `url` or an `options` object. The only required option is `uri`; all others are optional. - -- `uri` || `url` - fully qualified uri or a parsed url object from `url.parse()` -- `baseUrl` - fully qualified uri string used as the base url. Most useful with `request.defaults`, for example when you want to do many requests to the same domain. If `baseUrl` is `https://example.com/api/`, then requesting `/end/point?test=true` will fetch `https://example.com/api/end/point?test=true`. When `baseUrl` is given, `uri` must also be a string. -- `method` - http method (default: `"GET"`) -- `headers` - http headers (default: `{}`) - ---- - -- `qs` - object containing querystring values to be appended to the `uri` -- `qsParseOptions` - object containing options to pass to the [qs.parse](https://github.com/hapijs/qs#parsing-objects) method. Alternatively pass options to the [querystring.parse](https://nodejs.org/docs/v0.12.0/api/querystring.html#querystring_querystring_parse_str_sep_eq_options) method using this format `{sep:';', eq:':', options:{}}` -- `qsStringifyOptions` - object containing options to pass to the [qs.stringify](https://github.com/hapijs/qs#stringifying) method. Alternatively pass options to the [querystring.stringify](https://nodejs.org/docs/v0.12.0/api/querystring.html#querystring_querystring_stringify_obj_sep_eq_options) method using this format `{sep:';', eq:':', options:{}}`. For example, to change the way arrays are converted to query strings using the `qs` module pass the `arrayFormat` option with one of `indices|brackets|repeat` -- `useQuerystring` - If true, use `querystring` to stringify and parse - querystrings, otherwise use `qs` (default: `false`). Set this option to - `true` if you need arrays to be serialized as `foo=bar&foo=baz` instead of the - default `foo[0]=bar&foo[1]=baz`. - ---- - -- `body` - entity body for PATCH, POST and PUT requests. Must be a `Buffer`, `String` or `ReadStream`. If `json` is `true`, then `body` must be a JSON-serializable object. -- `form` - when passed an object or a querystring, this sets `body` to a querystring representation of value, and adds `Content-type: application/x-www-form-urlencoded` header. When passed no options, a `FormData` instance is returned (and is piped to request). See "Forms" section above. -- `formData` - Data to pass for a `multipart/form-data` request. See - [Forms](#forms) section above. -- `multipart` - array of objects which contain their own headers and `body` - attributes. Sends a `multipart/related` request. See [Forms](#forms) section - above. - - Alternatively you can pass in an object `{chunked: false, data: []}` where - `chunked` is used to specify whether the request is sent in - [chunked transfer encoding](https://en.wikipedia.org/wiki/Chunked_transfer_encoding) - In non-chunked requests, data items with body streams are not allowed. -- `preambleCRLF` - append a newline/CRLF before the boundary of your `multipart/form-data` request. -- `postambleCRLF` - append a newline/CRLF at the end of the boundary of your `multipart/form-data` request. -- `json` - sets `body` to JSON representation of value and adds `Content-type: application/json` header. Additionally, parses the response body as JSON. -- `jsonReviver` - a [reviver function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) that will be passed to `JSON.parse()` when parsing a JSON response body. -- `jsonReplacer` - a [replacer function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) that will be passed to `JSON.stringify()` when stringifying a JSON request body. - ---- - -- `auth` - A hash containing values `user` || `username`, `pass` || `password`, and `sendImmediately` (optional). See documentation above. -- `oauth` - Options for OAuth HMAC-SHA1 signing. See documentation above. -- `hawk` - Options for [Hawk signing](https://github.com/hueniverse/hawk). The `credentials` key must contain the necessary signing info, [see hawk docs for details](https://github.com/hueniverse/hawk#usage-example). -- `aws` - `object` containing AWS signing information. Should have the properties `key`, `secret`, and optionally `session` (note that this only works for services that require session as part of the canonical string). Also requires the property `bucket`, unless you’re specifying your `bucket` as part of the path, or the request doesn’t use a bucket (i.e. GET Services). If you want to use AWS sign version 4 use the parameter `sign_version` with value `4` otherwise the default is version 2. **Note:** you need to `npm install aws4` first. -- `httpSignature` - Options for the [HTTP Signature Scheme](https://github.com/joyent/node-http-signature/blob/master/http_signing.md) using [Joyent's library](https://github.com/joyent/node-http-signature). The `keyId` and `key` properties must be specified. See the docs for other options. - ---- - -- `followRedirect` - follow HTTP 3xx responses as redirects (default: `true`). This property can also be implemented as function which gets `response` object as a single argument and should return `true` if redirects should continue or `false` otherwise. -- `followAllRedirects` - follow non-GET HTTP 3xx responses as redirects (default: `false`) -- `followOriginalHttpMethod` - by default we redirect to HTTP method GET. you can enable this property to redirect to the original HTTP method (default: `false`) -- `maxRedirects` - the maximum number of redirects to follow (default: `10`) -- `removeRefererHeader` - removes the referer header when a redirect happens (default: `false`). **Note:** if true, referer header set in the initial request is preserved during redirect chain. - ---- - -- `encoding` - Encoding to be used on `setEncoding` of response data. If `null`, the `body` is returned as a `Buffer`. Anything else **(including the default value of `undefined`)** will be passed as the [encoding](http://nodejs.org/api/buffer.html#buffer_buffer) parameter to `toString()` (meaning this is effectively `utf8` by default). (**Note:** if you expect binary data, you should set `encoding: null`.) -- `gzip` - If `true`, add an `Accept-Encoding` header to request compressed content encodings from the server (if not already present) and decode supported content encodings in the response. **Note:** Automatic decoding of the response content is performed on the body data returned through `request` (both through the `request` stream and passed to the callback function) but is not performed on the `response` stream (available from the `response` event) which is the unmodified `http.IncomingMessage` object which may contain compressed data. See example below. -- `jar` - If `true`, remember cookies for future use (or define your custom cookie jar; see examples section) - ---- - -- `agent` - `http(s).Agent` instance to use -- `agentClass` - alternatively specify your agent's class name -- `agentOptions` - and pass its options. **Note:** for HTTPS see [tls API doc for TLS/SSL options](http://nodejs.org/api/tls.html#tls_tls_connect_options_callback) and the [documentation above](#using-optionsagentoptions). -- `forever` - set to `true` to use the [forever-agent](https://github.com/request/forever-agent) **Note:** Defaults to `http(s).Agent({keepAlive:true})` in node 0.12+ -- `pool` - An object describing which agents to use for the request. If this option is omitted the request will use the global agent (as long as your options allow for it). Otherwise, request will search the pool for your custom agent. If no custom agent is found, a new agent will be created and added to the pool. **Note:** `pool` is used only when the `agent` option is not specified. - - A `maxSockets` property can also be provided on the `pool` object to set the max number of sockets for all agents created (ex: `pool: {maxSockets: Infinity}`). - - Note that if you are sending multiple requests in a loop and creating - multiple new `pool` objects, `maxSockets` will not work as intended. To - work around this, either use [`request.defaults`](#requestdefaultsoptions) - with your pool options or create the pool object with the `maxSockets` - property outside of the loop. -- `timeout` - Integer containing the number of milliseconds to wait for a -server to send response headers (and start the response body) before aborting -the request. Note that if the underlying TCP connection cannot be established, -the OS-wide TCP connection timeout will overrule the `timeout` option ([the -default in Linux can be anywhere from 20-120 seconds][linux-timeout]). - -[linux-timeout]: http://www.sekuda.com/overriding_the_default_linux_kernel_20_second_tcp_socket_connect_timeout - ---- - -- `localAddress` - Local interface to bind for network connections. -- `proxy` - An HTTP proxy to be used. Supports proxy Auth with Basic Auth, identical to support for the `url` parameter (by embedding the auth info in the `uri`) -- `strictSSL` - If `true`, requires SSL certificates be valid. **Note:** to use your own certificate authority, you need to specify an agent that was created with that CA as an option. -- `tunnel` - controls the behavior of - [HTTP `CONNECT` tunneling](https://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling) - as follows: - - `undefined` (default) - `true` if the destination is `https`, `false` otherwise - - `true` - always tunnel to the destination by making a `CONNECT` request to - the proxy - - `false` - request the destination as a `GET` request. -- `proxyHeaderWhiteList` - A whitelist of headers to send to a - tunneling proxy. -- `proxyHeaderExclusiveList` - A whitelist of headers to send - exclusively to a tunneling proxy and not to destination. - ---- - -- `time` - If `true`, the request-response cycle (including all redirects) is timed at millisecond resolution, and the result provided on the response's `elapsedTime` property. The `responseStartTime` property is also available to indicate the timestamp when the response begins. -- `har` - A [HAR 1.2 Request Object](http://www.softwareishard.com/blog/har-12-spec/#request), will be processed from HAR format into options overwriting matching values *(see the [HAR 1.2 section](#support-for-har-1.2) for details)* -- `callback` - alternatively pass the request's callback in the options object - -The callback argument gets 3 arguments: - -1. An `error` when applicable (usually from [`http.ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest) object) -2. An [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) object -3. The third is the `response` body (`String` or `Buffer`, or JSON object if the `json` option is supplied) - -[back to top](#table-of-contents) - - ---- - -## Convenience methods - -There are also shorthand methods for different HTTP METHODs and some other conveniences. - - -### request.defaults(options) - -This method **returns a wrapper** around the normal request API that defaults -to whatever options you pass to it. - -**Note:** `request.defaults()` **does not** modify the global request API; -instead, it **returns a wrapper** that has your default settings applied to it. - -**Note:** You can call `.defaults()` on the wrapper that is returned from -`request.defaults` to add/override defaults that were previously defaulted. - -For example: -```js -//requests using baseRequest() will set the 'x-token' header -var baseRequest = request.defaults({ - headers: {'x-token': 'my-token'} -}) - -//requests using specialRequest() will include the 'x-token' header set in -//baseRequest and will also include the 'special' header -var specialRequest = baseRequest.defaults({ - headers: {special: 'special value'} -}) -``` - -### request.put - -Same as `request()`, but defaults to `method: "PUT"`. - -```js -request.put(url) -``` - -### request.patch - -Same as `request()`, but defaults to `method: "PATCH"`. - -```js -request.patch(url) -``` - -### request.post - -Same as `request()`, but defaults to `method: "POST"`. - -```js -request.post(url) -``` - -### request.head - -Same as `request()`, but defaults to `method: "HEAD"`. - -```js -request.head(url) -``` - -### request.del / request.delete - -Same as `request()`, but defaults to `method: "DELETE"`. - -```js -request.del(url) -request.delete(url) -``` - -### request.get - -Same as `request()` (for uniformity). - -```js -request.get(url) -``` -### request.cookie - -Function that creates a new cookie. - -```js -request.cookie('key1=value1') -``` -### request.jar() - -Function that creates a new cookie jar. - -```js -request.jar() -``` - -[back to top](#table-of-contents) - - ---- - - -## Debugging - -There are at least three ways to debug the operation of `request`: - -1. Launch the node process like `NODE_DEBUG=request node script.js` - (`lib,request,otherlib` works too). - -2. Set `require('request').debug = true` at any time (this does the same thing - as #1). - -3. Use the [request-debug module](https://github.com/request/request-debug) to - view request and response headers and bodies. - -[back to top](#table-of-contents) - - ---- - -## Timeouts - -Most requests to external servers should have a timeout attached, in case the -server is not responding in a timely manner. Without a timeout, your code may -have a socket open/consume resources for minutes or more. - -There are two main types of timeouts: **connection timeouts** and **read -timeouts**. A connect timeout occurs if the timeout is hit while your client is -attempting to establish a connection to a remote machine (corresponding to the -[connect() call][connect] on the socket). A read timeout occurs any time the -server is too slow to send back a part of the response. - -These two situations have widely different implications for what went wrong -with the request, so it's useful to be able to distinguish them. You can detect -timeout errors by checking `err.code` for an 'ETIMEDOUT' value. Further, you -can detect whether the timeout was a connection timeout by checking if the -`err.connect` property is set to `true`. - -```js -request.get('http://10.255.255.1', {timeout: 1500}, function(err) { - console.log(err.code === 'ETIMEDOUT'); - // Set to `true` if the timeout was a connection timeout, `false` or - // `undefined` otherwise. - console.log(err.connect === true); - process.exit(0); -}); -``` - -[connect]: http://linux.die.net/man/2/connect - -## Examples: - -```js - var request = require('request') - , rand = Math.floor(Math.random()*100000000).toString() - ; - request( - { method: 'PUT' - , uri: 'http://mikeal.iriscouch.com/testjs/' + rand - , multipart: - [ { 'content-type': 'application/json' - , body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}}) - } - , { body: 'I am an attachment' } - ] - } - , function (error, response, body) { - if(response.statusCode == 201){ - console.log('document saved as: http://mikeal.iriscouch.com/testjs/'+ rand) - } else { - console.log('error: '+ response.statusCode) - console.log(body) - } - } - ) -``` - -For backwards-compatibility, response compression is not supported by default. -To accept gzip-compressed responses, set the `gzip` option to `true`. Note -that the body data passed through `request` is automatically decompressed -while the response object is unmodified and will contain compressed data if -the server sent a compressed response. - -```js - var request = require('request') - request( - { method: 'GET' - , uri: 'http://www.google.com' - , gzip: true - } - , function (error, response, body) { - // body is the decompressed response body - console.log('server encoded the data as: ' + (response.headers['content-encoding'] || 'identity')) - console.log('the decoded data is: ' + body) - } - ).on('data', function(data) { - // decompressed data as it is received - console.log('decoded chunk: ' + data) - }) - .on('response', function(response) { - // unmodified http.IncomingMessage object - response.on('data', function(data) { - // compressed data as it is received - console.log('received ' + data.length + ' bytes of compressed data') - }) - }) -``` - -Cookies are disabled by default (else, they would be used in subsequent requests). To enable cookies, set `jar` to `true` (either in `defaults` or `options`). - -```js -var request = request.defaults({jar: true}) -request('http://www.google.com', function () { - request('http://images.google.com') -}) -``` - -To use a custom cookie jar (instead of `request`’s global cookie jar), set `jar` to an instance of `request.jar()` (either in `defaults` or `options`) - -```js -var j = request.jar() -var request = request.defaults({jar:j}) -request('http://www.google.com', function () { - request('http://images.google.com') -}) -``` - -OR - -```js -var j = request.jar(); -var cookie = request.cookie('key1=value1'); -var url = 'http://www.google.com'; -j.setCookie(cookie, url); -request({url: url, jar: j}, function () { - request('http://images.google.com') -}) -``` - -To use a custom cookie store (such as a -[`FileCookieStore`](https://github.com/mitsuru/tough-cookie-filestore) -which supports saving to and restoring from JSON files), pass it as a parameter -to `request.jar()`: - -```js -var FileCookieStore = require('tough-cookie-filestore'); -// NOTE - currently the 'cookies.json' file must already exist! -var j = request.jar(new FileCookieStore('cookies.json')); -request = request.defaults({ jar : j }) -request('http://www.google.com', function() { - request('http://images.google.com') -}) -``` - -The cookie store must be a -[`tough-cookie`](https://github.com/SalesforceEng/tough-cookie) -store and it must support synchronous operations; see the -[`CookieStore` API docs](https://github.com/SalesforceEng/tough-cookie#cookiestore-api) -for details. - -To inspect your cookie jar after a request: - -```js -var j = request.jar() -request({url: 'http://www.google.com', jar: j}, function () { - var cookie_string = j.getCookieString(url); // "key1=value1; key2=value2; ..." - var cookies = j.getCookies(url); - // [{key: 'key1', value: 'value1', domain: "www.google.com", ...}, ...] -}) -``` - -[back to top](#table-of-contents) diff --git a/node_modules/request/index.js b/node_modules/request/index.js deleted file mode 100755 index 9ec65ea..0000000 --- a/node_modules/request/index.js +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright 2010-2012 Mikeal Rogers -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -'use strict' - -var extend = require('extend') - , cookies = require('./lib/cookies') - , helpers = require('./lib/helpers') - -var paramsHaveRequestBody = helpers.paramsHaveRequestBody - - -// organize params for patch, post, put, head, del -function initParams(uri, options, callback) { - if (typeof options === 'function') { - callback = options - } - - var params = {} - if (typeof options === 'object') { - extend(params, options, {uri: uri}) - } else if (typeof uri === 'string') { - extend(params, {uri: uri}) - } else { - extend(params, uri) - } - - params.callback = callback || params.callback - return params -} - -function request (uri, options, callback) { - if (typeof uri === 'undefined') { - throw new Error('undefined is not a valid uri or options object.') - } - - var params = initParams(uri, options, callback) - - if (params.method === 'HEAD' && paramsHaveRequestBody(params)) { - throw new Error('HTTP HEAD requests MUST NOT include a request body.') - } - - return new request.Request(params) -} - -function verbFunc (verb) { - var method = verb.toUpperCase() - return function (uri, options, callback) { - var params = initParams(uri, options, callback) - params.method = method - return request(params, params.callback) - } -} - -// define like this to please codeintel/intellisense IDEs -request.get = verbFunc('get') -request.head = verbFunc('head') -request.post = verbFunc('post') -request.put = verbFunc('put') -request.patch = verbFunc('patch') -request.del = verbFunc('delete') -request['delete'] = verbFunc('delete') - -request.jar = function (store) { - return cookies.jar(store) -} - -request.cookie = function (str) { - return cookies.parse(str) -} - -function wrapRequestMethod (method, options, requester, verb) { - - return function (uri, opts, callback) { - var params = initParams(uri, opts, callback) - - var target = {} - extend(true, target, options, params) - - target.pool = params.pool || options.pool - - if (verb) { - target.method = verb.toUpperCase() - } - - if (typeof requester === 'function') { - method = requester - } - - return method(target, target.callback) - } -} - -request.defaults = function (options, requester) { - var self = this - - options = options || {} - - if (typeof options === 'function') { - requester = options - options = {} - } - - var defaults = wrapRequestMethod(self, options, requester) - - var verbs = ['get', 'head', 'post', 'put', 'patch', 'del', 'delete'] - verbs.forEach(function(verb) { - defaults[verb] = wrapRequestMethod(self[verb], options, requester, verb) - }) - - defaults.cookie = wrapRequestMethod(self.cookie, options, requester) - defaults.jar = self.jar - defaults.defaults = self.defaults - return defaults -} - -request.forever = function (agentOptions, optionsArg) { - var options = {} - if (optionsArg) { - extend(options, optionsArg) - } - if (agentOptions) { - options.agentOptions = agentOptions - } - - options.forever = true - return request.defaults(options) -} - -// Exports - -module.exports = request -request.Request = require('./request') -request.initParams = initParams - -// Backwards compatibility for request.debug -Object.defineProperty(request, 'debug', { - enumerable : true, - get : function() { - return request.Request.debug - }, - set : function(debug) { - request.Request.debug = debug - } -}) diff --git a/node_modules/request/lib/auth.js b/node_modules/request/lib/auth.js deleted file mode 100644 index 559ca57..0000000 --- a/node_modules/request/lib/auth.js +++ /dev/null @@ -1,168 +0,0 @@ -'use strict' - -var caseless = require('caseless') - , uuid = require('uuid') - , helpers = require('./helpers') - -var md5 = helpers.md5 - , toBase64 = helpers.toBase64 - - -function Auth (request) { - // define all public properties here - this.request = request - this.hasAuth = false - this.sentAuth = false - this.bearerToken = null - this.user = null - this.pass = null -} - -Auth.prototype.basic = function (user, pass, sendImmediately) { - var self = this - if (typeof user !== 'string' || (pass !== undefined && typeof pass !== 'string')) { - self.request.emit('error', new Error('auth() received invalid user or password')) - } - self.user = user - self.pass = pass - self.hasAuth = true - var header = user + ':' + (pass || '') - if (sendImmediately || typeof sendImmediately === 'undefined') { - var authHeader = 'Basic ' + toBase64(header) - self.sentAuth = true - return authHeader - } -} - -Auth.prototype.bearer = function (bearer, sendImmediately) { - var self = this - self.bearerToken = bearer - self.hasAuth = true - if (sendImmediately || typeof sendImmediately === 'undefined') { - if (typeof bearer === 'function') { - bearer = bearer() - } - var authHeader = 'Bearer ' + (bearer || '') - self.sentAuth = true - return authHeader - } -} - -Auth.prototype.digest = function (method, path, authHeader) { - // TODO: More complete implementation of RFC 2617. - // - handle challenge.domain - // - support qop="auth-int" only - // - handle Authentication-Info (not necessarily?) - // - check challenge.stale (not necessarily?) - // - increase nc (not necessarily?) - // For reference: - // http://tools.ietf.org/html/rfc2617#section-3 - // https://github.com/bagder/curl/blob/master/lib/http_digest.c - - var self = this - - var challenge = {} - var re = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi - for (;;) { - var match = re.exec(authHeader) - if (!match) { - break - } - challenge[match[1]] = match[2] || match[3] - } - - /** - * RFC 2617: handle both MD5 and MD5-sess algorithms. - * - * If the algorithm directive's value is "MD5" or unspecified, then HA1 is - * HA1=MD5(username:realm:password) - * If the algorithm directive's value is "MD5-sess", then HA1 is - * HA1=MD5(MD5(username:realm:password):nonce:cnonce) - */ - var ha1Compute = function (algorithm, user, realm, pass, nonce, cnonce) { - var ha1 = md5(user + ':' + realm + ':' + pass) - if (algorithm && algorithm.toLowerCase() === 'md5-sess') { - return md5(ha1 + ':' + nonce + ':' + cnonce) - } else { - return ha1 - } - } - - var qop = /(^|,)\s*auth\s*($|,)/.test(challenge.qop) && 'auth' - var nc = qop && '00000001' - var cnonce = qop && uuid().replace(/-/g, '') - var ha1 = ha1Compute(challenge.algorithm, self.user, challenge.realm, self.pass, challenge.nonce, cnonce) - var ha2 = md5(method + ':' + path) - var digestResponse = qop - ? md5(ha1 + ':' + challenge.nonce + ':' + nc + ':' + cnonce + ':' + qop + ':' + ha2) - : md5(ha1 + ':' + challenge.nonce + ':' + ha2) - var authValues = { - username: self.user, - realm: challenge.realm, - nonce: challenge.nonce, - uri: path, - qop: qop, - response: digestResponse, - nc: nc, - cnonce: cnonce, - algorithm: challenge.algorithm, - opaque: challenge.opaque - } - - authHeader = [] - for (var k in authValues) { - if (authValues[k]) { - if (k === 'qop' || k === 'nc' || k === 'algorithm') { - authHeader.push(k + '=' + authValues[k]) - } else { - authHeader.push(k + '="' + authValues[k] + '"') - } - } - } - authHeader = 'Digest ' + authHeader.join(', ') - self.sentAuth = true - return authHeader -} - -Auth.prototype.onRequest = function (user, pass, sendImmediately, bearer) { - var self = this - , request = self.request - - var authHeader - if (bearer === undefined && user === undefined) { - self.request.emit('error', new Error('no auth mechanism defined')) - } else if (bearer !== undefined) { - authHeader = self.bearer(bearer, sendImmediately) - } else { - authHeader = self.basic(user, pass, sendImmediately) - } - if (authHeader) { - request.setHeader('authorization', authHeader) - } -} - -Auth.prototype.onResponse = function (response) { - var self = this - , request = self.request - - if (!self.hasAuth || self.sentAuth) { return null } - - var c = caseless(response.headers) - - var authHeader = c.get('www-authenticate') - var authVerb = authHeader && authHeader.split(' ')[0].toLowerCase() - request.debug('reauth', authVerb) - - switch (authVerb) { - case 'basic': - return self.basic(self.user, self.pass, true) - - case 'bearer': - return self.bearer(self.bearerToken, true) - - case 'digest': - return self.digest(request.method, request.path, authHeader) - } -} - -exports.Auth = Auth diff --git a/node_modules/request/lib/cookies.js b/node_modules/request/lib/cookies.js deleted file mode 100644 index 412c07d..0000000 --- a/node_modules/request/lib/cookies.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict' - -var tough = require('tough-cookie') - -var Cookie = tough.Cookie - , CookieJar = tough.CookieJar - - -exports.parse = function(str) { - if (str && str.uri) { - str = str.uri - } - if (typeof str !== 'string') { - throw new Error('The cookie function only accepts STRING as param') - } - return Cookie.parse(str, {loose: true}) -} - -// Adapt the sometimes-Async api of tough.CookieJar to our requirements -function RequestJar(store) { - var self = this - self._jar = new CookieJar(store, {looseMode: true}) -} -RequestJar.prototype.setCookie = function(cookieOrStr, uri, options) { - var self = this - return self._jar.setCookieSync(cookieOrStr, uri, options || {}) -} -RequestJar.prototype.getCookieString = function(uri) { - var self = this - return self._jar.getCookieStringSync(uri) -} -RequestJar.prototype.getCookies = function(uri) { - var self = this - return self._jar.getCookiesSync(uri) -} - -exports.jar = function(store) { - return new RequestJar(store) -} diff --git a/node_modules/request/lib/getProxyFromURI.js b/node_modules/request/lib/getProxyFromURI.js deleted file mode 100644 index c2013a6..0000000 --- a/node_modules/request/lib/getProxyFromURI.js +++ /dev/null @@ -1,79 +0,0 @@ -'use strict' - -function formatHostname(hostname) { - // canonicalize the hostname, so that 'oogle.com' won't match 'google.com' - return hostname.replace(/^\.*/, '.').toLowerCase() -} - -function parseNoProxyZone(zone) { - zone = zone.trim().toLowerCase() - - var zoneParts = zone.split(':', 2) - , zoneHost = formatHostname(zoneParts[0]) - , zonePort = zoneParts[1] - , hasPort = zone.indexOf(':') > -1 - - return {hostname: zoneHost, port: zonePort, hasPort: hasPort} -} - -function uriInNoProxy(uri, noProxy) { - var port = uri.port || (uri.protocol === 'https:' ? '443' : '80') - , hostname = formatHostname(uri.hostname) - , noProxyList = noProxy.split(',') - - // iterate through the noProxyList until it finds a match. - return noProxyList.map(parseNoProxyZone).some(function(noProxyZone) { - var isMatchedAt = hostname.indexOf(noProxyZone.hostname) - , hostnameMatched = ( - isMatchedAt > -1 && - (isMatchedAt === hostname.length - noProxyZone.hostname.length) - ) - - if (noProxyZone.hasPort) { - return (port === noProxyZone.port) && hostnameMatched - } - - return hostnameMatched - }) -} - -function getProxyFromURI(uri) { - // Decide the proper request proxy to use based on the request URI object and the - // environmental variables (NO_PROXY, HTTP_PROXY, etc.) - // respect NO_PROXY environment variables (see: http://lynx.isc.org/current/breakout/lynx_help/keystrokes/environments.html) - - var noProxy = process.env.NO_PROXY || process.env.no_proxy || '' - - // if the noProxy is a wildcard then return null - - if (noProxy === '*') { - return null - } - - // if the noProxy is not empty and the uri is found return null - - if (noProxy !== '' && uriInNoProxy(uri, noProxy)) { - return null - } - - // Check for HTTP or HTTPS Proxy in environment Else default to null - - if (uri.protocol === 'http:') { - return process.env.HTTP_PROXY || - process.env.http_proxy || null - } - - if (uri.protocol === 'https:') { - return process.env.HTTPS_PROXY || - process.env.https_proxy || - process.env.HTTP_PROXY || - process.env.http_proxy || null - } - - // if none of that works, return null - // (What uri protocol are you using then?) - - return null -} - -module.exports = getProxyFromURI diff --git a/node_modules/request/lib/har.js b/node_modules/request/lib/har.js deleted file mode 100644 index 3059574..0000000 --- a/node_modules/request/lib/har.js +++ /dev/null @@ -1,215 +0,0 @@ -'use strict' - -var fs = require('fs') -var qs = require('querystring') -var validate = require('har-validator') -var extend = require('extend') - -function Har (request) { - this.request = request -} - -Har.prototype.reducer = function (obj, pair) { - // new property ? - if (obj[pair.name] === undefined) { - obj[pair.name] = pair.value - return obj - } - - // existing? convert to array - var arr = [ - obj[pair.name], - pair.value - ] - - obj[pair.name] = arr - - return obj -} - -Har.prototype.prep = function (data) { - // construct utility properties - data.queryObj = {} - data.headersObj = {} - data.postData.jsonObj = false - data.postData.paramsObj = false - - // construct query objects - if (data.queryString && data.queryString.length) { - data.queryObj = data.queryString.reduce(this.reducer, {}) - } - - // construct headers objects - if (data.headers && data.headers.length) { - // loweCase header keys - data.headersObj = data.headers.reduceRight(function (headers, header) { - headers[header.name] = header.value - return headers - }, {}) - } - - // construct Cookie header - if (data.cookies && data.cookies.length) { - var cookies = data.cookies.map(function (cookie) { - return cookie.name + '=' + cookie.value - }) - - if (cookies.length) { - data.headersObj.cookie = cookies.join('; ') - } - } - - // prep body - function some (arr) { - return arr.some(function (type) { - return data.postData.mimeType.indexOf(type) === 0 - }) - } - - if (some([ - 'multipart/mixed', - 'multipart/related', - 'multipart/form-data', - 'multipart/alternative'])) { - - // reset values - data.postData.mimeType = 'multipart/form-data' - } - - else if (some([ - 'application/x-www-form-urlencoded'])) { - - if (!data.postData.params) { - data.postData.text = '' - } else { - data.postData.paramsObj = data.postData.params.reduce(this.reducer, {}) - - // always overwrite - data.postData.text = qs.stringify(data.postData.paramsObj) - } - } - - else if (some([ - 'text/json', - 'text/x-json', - 'application/json', - 'application/x-json'])) { - - data.postData.mimeType = 'application/json' - - if (data.postData.text) { - try { - data.postData.jsonObj = JSON.parse(data.postData.text) - } catch (e) { - this.request.debug(e) - - // force back to text/plain - data.postData.mimeType = 'text/plain' - } - } - } - - return data -} - -Har.prototype.options = function (options) { - // skip if no har property defined - if (!options.har) { - return options - } - - var har = {} - extend(har, options.har) - - // only process the first entry - if (har.log && har.log.entries) { - har = har.log.entries[0] - } - - // add optional properties to make validation successful - har.url = har.url || options.url || options.uri || options.baseUrl || '/' - har.httpVersion = har.httpVersion || 'HTTP/1.1' - har.queryString = har.queryString || [] - har.headers = har.headers || [] - har.cookies = har.cookies || [] - har.postData = har.postData || {} - har.postData.mimeType = har.postData.mimeType || 'application/octet-stream' - - har.bodySize = 0 - har.headersSize = 0 - har.postData.size = 0 - - if (!validate.request(har)) { - return options - } - - // clean up and get some utility properties - var req = this.prep(har) - - // construct new options - if (req.url) { - options.url = req.url - } - - if (req.method) { - options.method = req.method - } - - if (Object.keys(req.queryObj).length) { - options.qs = req.queryObj - } - - if (Object.keys(req.headersObj).length) { - options.headers = req.headersObj - } - - function test (type) { - return req.postData.mimeType.indexOf(type) === 0 - } - if (test('application/x-www-form-urlencoded')) { - options.form = req.postData.paramsObj - } - else if (test('application/json')) { - if (req.postData.jsonObj) { - options.body = req.postData.jsonObj - options.json = true - } - } - else if (test('multipart/form-data')) { - options.formData = {} - - req.postData.params.forEach(function (param) { - var attachment = {} - - if (!param.fileName && !param.fileName && !param.contentType) { - options.formData[param.name] = param.value - return - } - - // attempt to read from disk! - if (param.fileName && !param.value) { - attachment.value = fs.createReadStream(param.fileName) - } else if (param.value) { - attachment.value = param.value - } - - if (param.fileName) { - attachment.options = { - filename: param.fileName, - contentType: param.contentType ? param.contentType : null - } - } - - options.formData[param.name] = attachment - }) - } - else { - if (req.postData.text) { - options.body = req.postData.text - } - } - - return options -} - -exports.Har = Har diff --git a/node_modules/request/lib/helpers.js b/node_modules/request/lib/helpers.js deleted file mode 100644 index f9d727e..0000000 --- a/node_modules/request/lib/helpers.js +++ /dev/null @@ -1,65 +0,0 @@ -'use strict' - -var jsonSafeStringify = require('json-stringify-safe') - , crypto = require('crypto') - -var defer = typeof setImmediate === 'undefined' - ? process.nextTick - : setImmediate - -function paramsHaveRequestBody(params) { - return ( - params.body || - params.requestBodyStream || - (params.json && typeof params.json !== 'boolean') || - params.multipart - ) -} - -function safeStringify (obj, replacer) { - var ret - try { - ret = JSON.stringify(obj, replacer) - } catch (e) { - ret = jsonSafeStringify(obj, replacer) - } - return ret -} - -function md5 (str) { - return crypto.createHash('md5').update(str).digest('hex') -} - -function isReadStream (rs) { - return rs.readable && rs.path && rs.mode -} - -function toBase64 (str) { - return (new Buffer(str || '', 'utf8')).toString('base64') -} - -function copy (obj) { - var o = {} - Object.keys(obj).forEach(function (i) { - o[i] = obj[i] - }) - return o -} - -function version () { - var numbers = process.version.replace('v', '').split('.') - return { - major: parseInt(numbers[0], 10), - minor: parseInt(numbers[1], 10), - patch: parseInt(numbers[2], 10) - } -} - -exports.paramsHaveRequestBody = paramsHaveRequestBody -exports.safeStringify = safeStringify -exports.md5 = md5 -exports.isReadStream = isReadStream -exports.toBase64 = toBase64 -exports.copy = copy -exports.version = version -exports.defer = defer diff --git a/node_modules/request/lib/multipart.js b/node_modules/request/lib/multipart.js deleted file mode 100644 index 3b605bd..0000000 --- a/node_modules/request/lib/multipart.js +++ /dev/null @@ -1,112 +0,0 @@ -'use strict' - -var uuid = require('uuid') - , CombinedStream = require('combined-stream') - , isstream = require('isstream') - - -function Multipart (request) { - this.request = request - this.boundary = uuid() - this.chunked = false - this.body = null -} - -Multipart.prototype.isChunked = function (options) { - var self = this - , chunked = false - , parts = options.data || options - - if (!parts.forEach) { - self.request.emit('error', new Error('Argument error, options.multipart.')) - } - - if (options.chunked !== undefined) { - chunked = options.chunked - } - - if (self.request.getHeader('transfer-encoding') === 'chunked') { - chunked = true - } - - if (!chunked) { - parts.forEach(function (part) { - if (typeof part.body === 'undefined') { - self.request.emit('error', new Error('Body attribute missing in multipart.')) - } - if (isstream(part.body)) { - chunked = true - } - }) - } - - return chunked -} - -Multipart.prototype.setHeaders = function (chunked) { - var self = this - - if (chunked && !self.request.hasHeader('transfer-encoding')) { - self.request.setHeader('transfer-encoding', 'chunked') - } - - var header = self.request.getHeader('content-type') - - if (!header || header.indexOf('multipart') === -1) { - self.request.setHeader('content-type', 'multipart/related; boundary=' + self.boundary) - } else { - if (header.indexOf('boundary') !== -1) { - self.boundary = header.replace(/.*boundary=([^\s;]+).*/, '$1') - } else { - self.request.setHeader('content-type', header + '; boundary=' + self.boundary) - } - } -} - -Multipart.prototype.build = function (parts, chunked) { - var self = this - var body = chunked ? new CombinedStream() : [] - - function add (part) { - if (typeof part === 'number') { - part = part.toString() - } - return chunked ? body.append(part) : body.push(new Buffer(part)) - } - - if (self.request.preambleCRLF) { - add('\r\n') - } - - parts.forEach(function (part) { - var preamble = '--' + self.boundary + '\r\n' - Object.keys(part).forEach(function (key) { - if (key === 'body') { return } - preamble += key + ': ' + part[key] + '\r\n' - }) - preamble += '\r\n' - add(preamble) - add(part.body) - add('\r\n') - }) - add('--' + self.boundary + '--') - - if (self.request.postambleCRLF) { - add('\r\n') - } - - return body -} - -Multipart.prototype.onRequest = function (options) { - var self = this - - var chunked = self.isChunked(options) - , parts = options.data || options - - self.setHeaders(chunked) - self.chunked = chunked - self.body = self.build(parts, chunked) -} - -exports.Multipart = Multipart diff --git a/node_modules/request/lib/oauth.js b/node_modules/request/lib/oauth.js deleted file mode 100644 index 56b39b0..0000000 --- a/node_modules/request/lib/oauth.js +++ /dev/null @@ -1,147 +0,0 @@ -'use strict' - -var url = require('url') - , qs = require('qs') - , caseless = require('caseless') - , uuid = require('uuid') - , oauth = require('oauth-sign') - , crypto = require('crypto') - - -function OAuth (request) { - this.request = request - this.params = null -} - -OAuth.prototype.buildParams = function (_oauth, uri, method, query, form, qsLib) { - var oa = {} - for (var i in _oauth) { - oa['oauth_' + i] = _oauth[i] - } - if (!oa.oauth_version) { - oa.oauth_version = '1.0' - } - if (!oa.oauth_timestamp) { - oa.oauth_timestamp = Math.floor( Date.now() / 1000 ).toString() - } - if (!oa.oauth_nonce) { - oa.oauth_nonce = uuid().replace(/-/g, '') - } - if (!oa.oauth_signature_method) { - oa.oauth_signature_method = 'HMAC-SHA1' - } - - var consumer_secret_or_private_key = oa.oauth_consumer_secret || oa.oauth_private_key - delete oa.oauth_consumer_secret - delete oa.oauth_private_key - - var token_secret = oa.oauth_token_secret - delete oa.oauth_token_secret - - var realm = oa.oauth_realm - delete oa.oauth_realm - delete oa.oauth_transport_method - - var baseurl = uri.protocol + '//' + uri.host + uri.pathname - var params = qsLib.parse([].concat(query, form, qsLib.stringify(oa)).join('&')) - - oa.oauth_signature = oauth.sign( - oa.oauth_signature_method, - method, - baseurl, - params, - consumer_secret_or_private_key, - token_secret) - - if (realm) { - oa.realm = realm - } - - return oa -} - -OAuth.prototype.buildBodyHash = function(_oauth, body) { - if (['HMAC-SHA1', 'RSA-SHA1'].indexOf(_oauth.signature_method || 'HMAC-SHA1') < 0) { - this.request.emit('error', new Error('oauth: ' + _oauth.signature_method + - ' signature_method not supported with body_hash signing.')) - } - - var shasum = crypto.createHash('sha1') - shasum.update(body || '') - var sha1 = shasum.digest('hex') - - return new Buffer(sha1).toString('base64') -} - -OAuth.prototype.concatParams = function (oa, sep, wrap) { - wrap = wrap || '' - - var params = Object.keys(oa).filter(function (i) { - return i !== 'realm' && i !== 'oauth_signature' - }).sort() - - if (oa.realm) { - params.splice(0, 0, 'realm') - } - params.push('oauth_signature') - - return params.map(function (i) { - return i + '=' + wrap + oauth.rfc3986(oa[i]) + wrap - }).join(sep) -} - -OAuth.prototype.onRequest = function (_oauth) { - var self = this - self.params = _oauth - - var uri = self.request.uri || {} - , method = self.request.method || '' - , headers = caseless(self.request.headers) - , body = self.request.body || '' - , qsLib = self.request.qsLib || qs - - var form - , query - , contentType = headers.get('content-type') || '' - , formContentType = 'application/x-www-form-urlencoded' - , transport = _oauth.transport_method || 'header' - - if (contentType.slice(0, formContentType.length) === formContentType) { - contentType = formContentType - form = body - } - if (uri.query) { - query = uri.query - } - if (transport === 'body' && (method !== 'POST' || contentType !== formContentType)) { - self.request.emit('error', new Error('oauth: transport_method of body requires POST ' + - 'and content-type ' + formContentType)) - } - - if (!form && typeof _oauth.body_hash === 'boolean') { - _oauth.body_hash = self.buildBodyHash(_oauth, self.request.body.toString()) - } - - var oa = self.buildParams(_oauth, uri, method, query, form, qsLib) - - switch (transport) { - case 'header': - self.request.setHeader('Authorization', 'OAuth ' + self.concatParams(oa, ',', '"')) - break - - case 'query': - var href = self.request.uri.href += (query ? '&' : '?') + self.concatParams(oa, '&') - self.request.uri = url.parse(href) - self.request.path = self.request.uri.path - break - - case 'body': - self.request.body = (form ? form + '&' : '') + self.concatParams(oa, '&') - break - - default: - self.request.emit('error', new Error('oauth: transport_method invalid')) - } -} - -exports.OAuth = OAuth diff --git a/node_modules/request/lib/querystring.js b/node_modules/request/lib/querystring.js deleted file mode 100644 index baf5e80..0000000 --- a/node_modules/request/lib/querystring.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict' - -var qs = require('qs') - , querystring = require('querystring') - - -function Querystring (request) { - this.request = request - this.lib = null - this.useQuerystring = null - this.parseOptions = null - this.stringifyOptions = null -} - -Querystring.prototype.init = function (options) { - if (this.lib) {return} - - this.useQuerystring = options.useQuerystring - this.lib = (this.useQuerystring ? querystring : qs) - - this.parseOptions = options.qsParseOptions || {} - this.stringifyOptions = options.qsStringifyOptions || {} -} - -Querystring.prototype.stringify = function (obj) { - return (this.useQuerystring) - ? this.rfc3986(this.lib.stringify(obj, - this.stringifyOptions.sep || null, - this.stringifyOptions.eq || null, - this.stringifyOptions)) - : this.lib.stringify(obj, this.stringifyOptions) -} - -Querystring.prototype.parse = function (str) { - return (this.useQuerystring) - ? this.lib.parse(str, - this.parseOptions.sep || null, - this.parseOptions.eq || null, - this.parseOptions) - : this.lib.parse(str, this.parseOptions) -} - -Querystring.prototype.rfc3986 = function (str) { - return str.replace(/[!'()*]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase() - }) -} - -Querystring.prototype.unescape = querystring.unescape - -exports.Querystring = Querystring diff --git a/node_modules/request/lib/redirect.js b/node_modules/request/lib/redirect.js deleted file mode 100644 index f860449..0000000 --- a/node_modules/request/lib/redirect.js +++ /dev/null @@ -1,157 +0,0 @@ -'use strict' - -var url = require('url') -var isUrl = /^https?:/ - -function Redirect (request) { - this.request = request - this.followRedirect = true - this.followRedirects = true - this.followAllRedirects = false - this.followOriginalHttpMethod = false - this.allowRedirect = function () {return true} - this.maxRedirects = 10 - this.redirects = [] - this.redirectsFollowed = 0 - this.removeRefererHeader = false -} - -Redirect.prototype.onRequest = function (options) { - var self = this - - if (options.maxRedirects !== undefined) { - self.maxRedirects = options.maxRedirects - } - if (typeof options.followRedirect === 'function') { - self.allowRedirect = options.followRedirect - } - if (options.followRedirect !== undefined) { - self.followRedirects = !!options.followRedirect - } - if (options.followAllRedirects !== undefined) { - self.followAllRedirects = options.followAllRedirects - } - if (self.followRedirects || self.followAllRedirects) { - self.redirects = self.redirects || [] - } - if (options.removeRefererHeader !== undefined) { - self.removeRefererHeader = options.removeRefererHeader - } - if (options.followOriginalHttpMethod !== undefined) { - self.followOriginalHttpMethod = options.followOriginalHttpMethod - } -} - -Redirect.prototype.redirectTo = function (response) { - var self = this - , request = self.request - - var redirectTo = null - if (response.statusCode >= 300 && response.statusCode < 400 && response.caseless.has('location')) { - var location = response.caseless.get('location') - request.debug('redirect', location) - - if (self.followAllRedirects) { - redirectTo = location - } else if (self.followRedirects) { - switch (request.method) { - case 'PATCH': - case 'PUT': - case 'POST': - case 'DELETE': - // Do not follow redirects - break - default: - redirectTo = location - break - } - } - } else if (response.statusCode === 401) { - var authHeader = request._auth.onResponse(response) - if (authHeader) { - request.setHeader('authorization', authHeader) - redirectTo = request.uri - } - } - return redirectTo -} - -Redirect.prototype.onResponse = function (response) { - var self = this - , request = self.request - - var redirectTo = self.redirectTo(response) - if (!redirectTo || !self.allowRedirect.call(request, response)) { - return false - } - - request.debug('redirect to', redirectTo) - - // ignore any potential response body. it cannot possibly be useful - // to us at this point. - // response.resume should be defined, but check anyway before calling. Workaround for browserify. - if (response.resume) { - response.resume() - } - - if (self.redirectsFollowed >= self.maxRedirects) { - request.emit('error', new Error('Exceeded maxRedirects. Probably stuck in a redirect loop ' + request.uri.href)) - return false - } - self.redirectsFollowed += 1 - - if (!isUrl.test(redirectTo)) { - redirectTo = url.resolve(request.uri.href, redirectTo) - } - - var uriPrev = request.uri - request.uri = url.parse(redirectTo) - - // handle the case where we change protocol from https to http or vice versa - if (request.uri.protocol !== uriPrev.protocol) { - delete request.agent - } - - self.redirects.push( - { statusCode : response.statusCode - , redirectUri: redirectTo - } - ) - if (self.followAllRedirects && request.method !== 'HEAD' - && response.statusCode !== 401 && response.statusCode !== 307) { - request.method = self.followOriginalHttpMethod ? request.method : 'GET' - } - // request.method = 'GET' // Force all redirects to use GET || commented out fixes #215 - delete request.src - delete request.req - delete request._started - if (response.statusCode !== 401 && response.statusCode !== 307) { - // Remove parameters from the previous response, unless this is the second request - // for a server that requires digest authentication. - delete request.body - delete request._form - if (request.headers) { - request.removeHeader('host') - request.removeHeader('content-type') - request.removeHeader('content-length') - if (request.uri.hostname !== request.originalHost.split(':')[0]) { - // Remove authorization if changing hostnames (but not if just - // changing ports or protocols). This matches the behavior of curl: - // https://github.com/bagder/curl/blob/6beb0eee/lib/http.c#L710 - request.removeHeader('authorization') - } - } - } - - if (!self.removeRefererHeader) { - request.setHeader('referer', uriPrev.href) - } - - request.emit('redirect') - - request.init() - - return true -} - -exports.Redirect = Redirect diff --git a/node_modules/request/lib/tunnel.js b/node_modules/request/lib/tunnel.js deleted file mode 100644 index bf96a8f..0000000 --- a/node_modules/request/lib/tunnel.js +++ /dev/null @@ -1,176 +0,0 @@ -'use strict' - -var url = require('url') - , tunnel = require('tunnel-agent') - -var defaultProxyHeaderWhiteList = [ - 'accept', - 'accept-charset', - 'accept-encoding', - 'accept-language', - 'accept-ranges', - 'cache-control', - 'content-encoding', - 'content-language', - 'content-location', - 'content-md5', - 'content-range', - 'content-type', - 'connection', - 'date', - 'expect', - 'max-forwards', - 'pragma', - 'referer', - 'te', - 'user-agent', - 'via' -] - -var defaultProxyHeaderExclusiveList = [ - 'proxy-authorization' -] - -function constructProxyHost(uriObject) { - var port = uriObject.port - , protocol = uriObject.protocol - , proxyHost = uriObject.hostname + ':' - - if (port) { - proxyHost += port - } else if (protocol === 'https:') { - proxyHost += '443' - } else { - proxyHost += '80' - } - - return proxyHost -} - -function constructProxyHeaderWhiteList(headers, proxyHeaderWhiteList) { - var whiteList = proxyHeaderWhiteList - .reduce(function (set, header) { - set[header.toLowerCase()] = true - return set - }, {}) - - return Object.keys(headers) - .filter(function (header) { - return whiteList[header.toLowerCase()] - }) - .reduce(function (set, header) { - set[header] = headers[header] - return set - }, {}) -} - -function constructTunnelOptions (request, proxyHeaders) { - var proxy = request.proxy - - var tunnelOptions = { - proxy : { - host : proxy.hostname, - port : +proxy.port, - proxyAuth : proxy.auth, - headers : proxyHeaders - }, - headers : request.headers, - ca : request.ca, - cert : request.cert, - key : request.key, - passphrase : request.passphrase, - pfx : request.pfx, - ciphers : request.ciphers, - rejectUnauthorized : request.rejectUnauthorized, - secureOptions : request.secureOptions, - secureProtocol : request.secureProtocol - } - - return tunnelOptions -} - -function constructTunnelFnName(uri, proxy) { - var uriProtocol = (uri.protocol === 'https:' ? 'https' : 'http') - var proxyProtocol = (proxy.protocol === 'https:' ? 'Https' : 'Http') - return [uriProtocol, proxyProtocol].join('Over') -} - -function getTunnelFn(request) { - var uri = request.uri - var proxy = request.proxy - var tunnelFnName = constructTunnelFnName(uri, proxy) - return tunnel[tunnelFnName] -} - - -function Tunnel (request) { - this.request = request - this.proxyHeaderWhiteList = defaultProxyHeaderWhiteList - this.proxyHeaderExclusiveList = [] - if (typeof request.tunnel !== 'undefined') { - this.tunnelOverride = request.tunnel - } -} - -Tunnel.prototype.isEnabled = function () { - var self = this - , request = self.request - // Tunnel HTTPS by default. Allow the user to override this setting. - - // If self.tunnelOverride is set (the user specified a value), use it. - if (typeof self.tunnelOverride !== 'undefined') { - return self.tunnelOverride - } - - // If the destination is HTTPS, tunnel. - if (request.uri.protocol === 'https:') { - return true - } - - // Otherwise, do not use tunnel. - return false -} - -Tunnel.prototype.setup = function (options) { - var self = this - , request = self.request - - options = options || {} - - if (typeof request.proxy === 'string') { - request.proxy = url.parse(request.proxy) - } - - if (!request.proxy || !request.tunnel) { - return false - } - - // Setup Proxy Header Exclusive List and White List - if (options.proxyHeaderWhiteList) { - self.proxyHeaderWhiteList = options.proxyHeaderWhiteList - } - if (options.proxyHeaderExclusiveList) { - self.proxyHeaderExclusiveList = options.proxyHeaderExclusiveList - } - - var proxyHeaderExclusiveList = self.proxyHeaderExclusiveList.concat(defaultProxyHeaderExclusiveList) - var proxyHeaderWhiteList = self.proxyHeaderWhiteList.concat(proxyHeaderExclusiveList) - - // Setup Proxy Headers and Proxy Headers Host - // Only send the Proxy White Listed Header names - var proxyHeaders = constructProxyHeaderWhiteList(request.headers, proxyHeaderWhiteList) - proxyHeaders.host = constructProxyHost(request.uri) - - proxyHeaderExclusiveList.forEach(request.removeHeader, request) - - // Set Agent from Tunnel Data - var tunnelFn = getTunnelFn(request) - var tunnelOptions = constructTunnelOptions(request, proxyHeaders) - request.agent = tunnelFn(tunnelOptions) - - return true -} - -Tunnel.defaultProxyHeaderWhiteList = defaultProxyHeaderWhiteList -Tunnel.defaultProxyHeaderExclusiveList = defaultProxyHeaderExclusiveList -exports.Tunnel = Tunnel diff --git a/node_modules/request/package.json b/node_modules/request/package.json deleted file mode 100644 index 5e0ece4..0000000 --- a/node_modules/request/package.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "request@^2.72.0", - "scope": null, - "escapedName": "request", - "name": "request", - "rawSpec": "^2.72.0", - "spec": ">=2.72.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/less" - ] - ], - "_from": "request@>=2.72.0 <3.0.0", - "_id": "request@2.79.0", - "_inCache": true, - "_location": "/request", - "_nodeVersion": "6.3.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/request-2.79.0.tgz_1479489666177_0.7806831058114767" - }, - "_npmUser": { - "name": "simov", - "email": "simeonvelichkov@gmail.com" - }, - "_npmVersion": "2.15.9", - "_phantomChildren": {}, - "_requested": { - "raw": "request@^2.72.0", - "scope": null, - "escapedName": "request", - "name": "request", - "rawSpec": "^2.72.0", - "spec": ">=2.72.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/less" - ], - "_resolved": "https://registry.npmjs.org/request/-/request-2.79.0.tgz", - "_shasum": "4dfe5bf6be8b8cdc37fcf93e04b65577722710de", - "_shrinkwrap": null, - "_spec": "request@^2.72.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/less", - "author": { - "name": "Mikeal Rogers", - "email": "mikeal.rogers@gmail.com" - }, - "bugs": { - "url": "http://github.com/request/request/issues" - }, - "dependencies": { - "aws-sign2": "~0.6.0", - "aws4": "^1.2.1", - "caseless": "~0.11.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.0", - "forever-agent": "~0.6.1", - "form-data": "~2.1.1", - "har-validator": "~2.0.6", - "hawk": "~3.1.3", - "http-signature": "~1.1.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.7", - "oauth-sign": "~0.8.1", - "qs": "~6.3.0", - "stringstream": "~0.0.4", - "tough-cookie": "~2.3.0", - "tunnel-agent": "~0.4.1", - "uuid": "^3.0.0" - }, - "description": "Simplified HTTP request client.", - "devDependencies": { - "bluebird": "^3.2.1", - "browserify": "^13.0.1", - "browserify-istanbul": "^2.0.0", - "buffer-equal": "^1.0.0", - "codecov": "^1.0.1", - "coveralls": "^2.11.4", - "eslint": "^2.5.3", - "function-bind": "^1.0.2", - "istanbul": "^0.4.0", - "karma": "^1.1.1", - "karma-browserify": "^5.0.1", - "karma-cli": "^1.0.0", - "karma-coverage": "^1.0.0", - "karma-phantomjs-launcher": "^1.0.0", - "karma-tap": "^3.0.1", - "phantomjs-prebuilt": "^2.1.3", - "rimraf": "^2.2.8", - "server-destroy": "^1.0.1", - "tape": "^4.6.0", - "taper": "^0.5.0" - }, - "directories": {}, - "dist": { - "shasum": "4dfe5bf6be8b8cdc37fcf93e04b65577722710de", - "tarball": "https://registry.npmjs.org/request/-/request-2.79.0.tgz" - }, - "engines": { - "node": ">= 4" - }, - "files": [ - "lib/", - "index.js", - "request.js" - ], - "gitHead": "ff729c6f1a87237060d075908563ce13386395ac", - "greenkeeper": { - "ignore": [ - "eslint", - "hawk", - "har-validator" - ] - }, - "homepage": "https://github.com/request/request#readme", - "license": "Apache-2.0", - "main": "index.js", - "maintainers": [ - { - "name": "mikeal", - "email": "mikeal.rogers@gmail.com" - }, - { - "name": "nylen", - "email": "jnylen@gmail.com" - }, - { - "name": "fredkschott", - "email": "fkschott@gmail.com" - }, - { - "name": "simov", - "email": "simeonvelichkov@gmail.com" - } - ], - "name": "request", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/request/request.git" - }, - "scripts": { - "lint": "eslint lib/ *.js tests/ && echo Lint passed.", - "test": "npm run lint && npm run test-ci && npm run test-browser", - "test-browser": "node tests/browser/start.js", - "test-ci": "taper tests/test-*.js", - "test-cov": "istanbul cover tape tests/test-*.js" - }, - "tags": [ - "http", - "simple", - "util", - "utility" - ], - "version": "2.79.0" -} diff --git a/node_modules/request/request.js b/node_modules/request/request.js deleted file mode 100644 index 26f70c2..0000000 --- a/node_modules/request/request.js +++ /dev/null @@ -1,1475 +0,0 @@ -'use strict' - -var http = require('http') - , https = require('https') - , url = require('url') - , util = require('util') - , stream = require('stream') - , zlib = require('zlib') - , hawk = require('hawk') - , aws2 = require('aws-sign2') - , aws4 = require('aws4') - , httpSignature = require('http-signature') - , mime = require('mime-types') - , stringstream = require('stringstream') - , caseless = require('caseless') - , ForeverAgent = require('forever-agent') - , FormData = require('form-data') - , extend = require('extend') - , isstream = require('isstream') - , isTypedArray = require('is-typedarray').strict - , helpers = require('./lib/helpers') - , cookies = require('./lib/cookies') - , getProxyFromURI = require('./lib/getProxyFromURI') - , Querystring = require('./lib/querystring').Querystring - , Har = require('./lib/har').Har - , Auth = require('./lib/auth').Auth - , OAuth = require('./lib/oauth').OAuth - , Multipart = require('./lib/multipart').Multipart - , Redirect = require('./lib/redirect').Redirect - , Tunnel = require('./lib/tunnel').Tunnel - -var safeStringify = helpers.safeStringify - , isReadStream = helpers.isReadStream - , toBase64 = helpers.toBase64 - , defer = helpers.defer - , copy = helpers.copy - , version = helpers.version - , globalCookieJar = cookies.jar() - - -var globalPool = {} - -function filterForNonReserved(reserved, options) { - // Filter out properties that are not reserved. - // Reserved values are passed in at call site. - - var object = {} - for (var i in options) { - var notReserved = (reserved.indexOf(i) === -1) - if (notReserved) { - object[i] = options[i] - } - } - return object -} - -function filterOutReservedFunctions(reserved, options) { - // Filter out properties that are functions and are reserved. - // Reserved values are passed in at call site. - - var object = {} - for (var i in options) { - var isReserved = !(reserved.indexOf(i) === -1) - var isFunction = (typeof options[i] === 'function') - if (!(isReserved && isFunction)) { - object[i] = options[i] - } - } - return object - -} - -// Return a simpler request object to allow serialization -function requestToJSON() { - var self = this - return { - uri: self.uri, - method: self.method, - headers: self.headers - } -} - -// Return a simpler response object to allow serialization -function responseToJSON() { - var self = this - return { - statusCode: self.statusCode, - body: self.body, - headers: self.headers, - request: requestToJSON.call(self.request) - } -} - -function Request (options) { - // if given the method property in options, set property explicitMethod to true - - // extend the Request instance with any non-reserved properties - // remove any reserved functions from the options object - // set Request instance to be readable and writable - // call init - - var self = this - - // start with HAR, then override with additional options - if (options.har) { - self._har = new Har(self) - options = self._har.options(options) - } - - stream.Stream.call(self) - var reserved = Object.keys(Request.prototype) - var nonReserved = filterForNonReserved(reserved, options) - - extend(self, nonReserved) - options = filterOutReservedFunctions(reserved, options) - - self.readable = true - self.writable = true - if (options.method) { - self.explicitMethod = true - } - self._qs = new Querystring(self) - self._auth = new Auth(self) - self._oauth = new OAuth(self) - self._multipart = new Multipart(self) - self._redirect = new Redirect(self) - self._tunnel = new Tunnel(self) - self.init(options) -} - -util.inherits(Request, stream.Stream) - -// Debugging -Request.debug = process.env.NODE_DEBUG && /\brequest\b/.test(process.env.NODE_DEBUG) -function debug() { - if (Request.debug) { - console.error('REQUEST %s', util.format.apply(util, arguments)) - } -} -Request.prototype.debug = debug - -Request.prototype.init = function (options) { - // init() contains all the code to setup the request object. - // the actual outgoing request is not started until start() is called - // this function is called from both the constructor and on redirect. - var self = this - if (!options) { - options = {} - } - self.headers = self.headers ? copy(self.headers) : {} - - // Delete headers with value undefined since they break - // ClientRequest.OutgoingMessage.setHeader in node 0.12 - for (var headerName in self.headers) { - if (typeof self.headers[headerName] === 'undefined') { - delete self.headers[headerName] - } - } - - caseless.httpify(self, self.headers) - - if (!self.method) { - self.method = options.method || 'GET' - } - if (!self.localAddress) { - self.localAddress = options.localAddress - } - - self._qs.init(options) - - debug(options) - if (!self.pool && self.pool !== false) { - self.pool = globalPool - } - self.dests = self.dests || [] - self.__isRequestRequest = true - - // Protect against double callback - if (!self._callback && self.callback) { - self._callback = self.callback - self.callback = function () { - if (self._callbackCalled) { - return // Print a warning maybe? - } - self._callbackCalled = true - self._callback.apply(self, arguments) - } - self.on('error', self.callback.bind()) - self.on('complete', self.callback.bind(self, null)) - } - - // People use this property instead all the time, so support it - if (!self.uri && self.url) { - self.uri = self.url - delete self.url - } - - // If there's a baseUrl, then use it as the base URL (i.e. uri must be - // specified as a relative path and is appended to baseUrl). - if (self.baseUrl) { - if (typeof self.baseUrl !== 'string') { - return self.emit('error', new Error('options.baseUrl must be a string')) - } - - if (typeof self.uri !== 'string') { - return self.emit('error', new Error('options.uri must be a string when using options.baseUrl')) - } - - if (self.uri.indexOf('//') === 0 || self.uri.indexOf('://') !== -1) { - return self.emit('error', new Error('options.uri must be a path when using options.baseUrl')) - } - - // Handle all cases to make sure that there's only one slash between - // baseUrl and uri. - var baseUrlEndsWithSlash = self.baseUrl.lastIndexOf('/') === self.baseUrl.length - 1 - var uriStartsWithSlash = self.uri.indexOf('/') === 0 - - if (baseUrlEndsWithSlash && uriStartsWithSlash) { - self.uri = self.baseUrl + self.uri.slice(1) - } else if (baseUrlEndsWithSlash || uriStartsWithSlash) { - self.uri = self.baseUrl + self.uri - } else if (self.uri === '') { - self.uri = self.baseUrl - } else { - self.uri = self.baseUrl + '/' + self.uri - } - delete self.baseUrl - } - - // A URI is needed by this point, emit error if we haven't been able to get one - if (!self.uri) { - return self.emit('error', new Error('options.uri is a required argument')) - } - - // If a string URI/URL was given, parse it into a URL object - if (typeof self.uri === 'string') { - self.uri = url.parse(self.uri) - } - - // Some URL objects are not from a URL parsed string and need href added - if (!self.uri.href) { - self.uri.href = url.format(self.uri) - } - - // DEPRECATED: Warning for users of the old Unix Sockets URL Scheme - if (self.uri.protocol === 'unix:') { - return self.emit('error', new Error('`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`')) - } - - // Support Unix Sockets - if (self.uri.host === 'unix') { - self.enableUnixSocket() - } - - if (self.strictSSL === false) { - self.rejectUnauthorized = false - } - - if (!self.uri.pathname) {self.uri.pathname = '/'} - - if (!(self.uri.host || (self.uri.hostname && self.uri.port)) && !self.uri.isUnix) { - // Invalid URI: it may generate lot of bad errors, like 'TypeError: Cannot call method `indexOf` of undefined' in CookieJar - // Detect and reject it as soon as possible - var faultyUri = url.format(self.uri) - var message = 'Invalid URI "' + faultyUri + '"' - if (Object.keys(options).length === 0) { - // No option ? This can be the sign of a redirect - // As this is a case where the user cannot do anything (they didn't call request directly with this URL) - // they should be warned that it can be caused by a redirection (can save some hair) - message += '. This can be caused by a crappy redirection.' - } - // This error was fatal - self.abort() - return self.emit('error', new Error(message)) - } - - if (!self.hasOwnProperty('proxy')) { - self.proxy = getProxyFromURI(self.uri) - } - - self.tunnel = self._tunnel.isEnabled() - if (self.proxy) { - self._tunnel.setup(options) - } - - self._redirect.onRequest(options) - - self.setHost = false - if (!self.hasHeader('host')) { - var hostHeaderName = self.originalHostHeaderName || 'host' - self.setHeader(hostHeaderName, self.uri.hostname) - if (self.uri.port) { - if ( !(self.uri.port === 80 && self.uri.protocol === 'http:') && - !(self.uri.port === 443 && self.uri.protocol === 'https:') ) { - self.setHeader(hostHeaderName, self.getHeader('host') + (':' + self.uri.port) ) - } - } - self.setHost = true - } - - self.jar(self._jar || options.jar) - - if (!self.uri.port) { - if (self.uri.protocol === 'http:') {self.uri.port = 80} - else if (self.uri.protocol === 'https:') {self.uri.port = 443} - } - - if (self.proxy && !self.tunnel) { - self.port = self.proxy.port - self.host = self.proxy.hostname - } else { - self.port = self.uri.port - self.host = self.uri.hostname - } - - if (options.form) { - self.form(options.form) - } - - if (options.formData) { - var formData = options.formData - var requestForm = self.form() - var appendFormValue = function (key, value) { - if (value && value.hasOwnProperty('value') && value.hasOwnProperty('options')) { - requestForm.append(key, value.value, value.options) - } else { - requestForm.append(key, value) - } - } - for (var formKey in formData) { - if (formData.hasOwnProperty(formKey)) { - var formValue = formData[formKey] - if (formValue instanceof Array) { - for (var j = 0; j < formValue.length; j++) { - appendFormValue(formKey, formValue[j]) - } - } else { - appendFormValue(formKey, formValue) - } - } - } - } - - if (options.qs) { - self.qs(options.qs) - } - - if (self.uri.path) { - self.path = self.uri.path - } else { - self.path = self.uri.pathname + (self.uri.search || '') - } - - if (self.path.length === 0) { - self.path = '/' - } - - // Auth must happen last in case signing is dependent on other headers - if (options.aws) { - self.aws(options.aws) - } - - if (options.hawk) { - self.hawk(options.hawk) - } - - if (options.httpSignature) { - self.httpSignature(options.httpSignature) - } - - if (options.auth) { - if (Object.prototype.hasOwnProperty.call(options.auth, 'username')) { - options.auth.user = options.auth.username - } - if (Object.prototype.hasOwnProperty.call(options.auth, 'password')) { - options.auth.pass = options.auth.password - } - - self.auth( - options.auth.user, - options.auth.pass, - options.auth.sendImmediately, - options.auth.bearer - ) - } - - if (self.gzip && !self.hasHeader('accept-encoding')) { - self.setHeader('accept-encoding', 'gzip, deflate') - } - - if (self.uri.auth && !self.hasHeader('authorization')) { - var uriAuthPieces = self.uri.auth.split(':').map(function(item) {return self._qs.unescape(item)}) - self.auth(uriAuthPieces[0], uriAuthPieces.slice(1).join(':'), true) - } - - if (!self.tunnel && self.proxy && self.proxy.auth && !self.hasHeader('proxy-authorization')) { - var proxyAuthPieces = self.proxy.auth.split(':').map(function(item) {return self._qs.unescape(item)}) - var authHeader = 'Basic ' + toBase64(proxyAuthPieces.join(':')) - self.setHeader('proxy-authorization', authHeader) - } - - if (self.proxy && !self.tunnel) { - self.path = (self.uri.protocol + '//' + self.uri.host + self.path) - } - - if (options.json) { - self.json(options.json) - } - if (options.multipart) { - self.multipart(options.multipart) - } - - if (options.time) { - self.timing = true - self.elapsedTime = self.elapsedTime || 0 - } - - function setContentLength () { - if (isTypedArray(self.body)) { - self.body = new Buffer(self.body) - } - - if (!self.hasHeader('content-length')) { - var length - if (typeof self.body === 'string') { - length = Buffer.byteLength(self.body) - } - else if (Array.isArray(self.body)) { - length = self.body.reduce(function (a, b) {return a + b.length}, 0) - } - else { - length = self.body.length - } - - if (length) { - self.setHeader('content-length', length) - } else { - self.emit('error', new Error('Argument error, options.body.')) - } - } - } - if (self.body && !isstream(self.body)) { - setContentLength() - } - - if (options.oauth) { - self.oauth(options.oauth) - } else if (self._oauth.params && self.hasHeader('authorization')) { - self.oauth(self._oauth.params) - } - - var protocol = self.proxy && !self.tunnel ? self.proxy.protocol : self.uri.protocol - , defaultModules = {'http:':http, 'https:':https} - , httpModules = self.httpModules || {} - - self.httpModule = httpModules[protocol] || defaultModules[protocol] - - if (!self.httpModule) { - return self.emit('error', new Error('Invalid protocol: ' + protocol)) - } - - if (options.ca) { - self.ca = options.ca - } - - if (!self.agent) { - if (options.agentOptions) { - self.agentOptions = options.agentOptions - } - - if (options.agentClass) { - self.agentClass = options.agentClass - } else if (options.forever) { - var v = version() - // use ForeverAgent in node 0.10- only - if (v.major === 0 && v.minor <= 10) { - self.agentClass = protocol === 'http:' ? ForeverAgent : ForeverAgent.SSL - } else { - self.agentClass = self.httpModule.Agent - self.agentOptions = self.agentOptions || {} - self.agentOptions.keepAlive = true - } - } else { - self.agentClass = self.httpModule.Agent - } - } - - if (self.pool === false) { - self.agent = false - } else { - self.agent = self.agent || self.getNewAgent() - } - - self.on('pipe', function (src) { - if (self.ntick && self._started) { - self.emit('error', new Error('You cannot pipe to this stream after the outbound request has started.')) - } - self.src = src - if (isReadStream(src)) { - if (!self.hasHeader('content-type')) { - self.setHeader('content-type', mime.lookup(src.path)) - } - } else { - if (src.headers) { - for (var i in src.headers) { - if (!self.hasHeader(i)) { - self.setHeader(i, src.headers[i]) - } - } - } - if (self._json && !self.hasHeader('content-type')) { - self.setHeader('content-type', 'application/json') - } - if (src.method && !self.explicitMethod) { - self.method = src.method - } - } - - // self.on('pipe', function () { - // console.error('You have already piped to this stream. Pipeing twice is likely to break the request.') - // }) - }) - - defer(function () { - if (self._aborted) { - return - } - - var end = function () { - if (self._form) { - if (!self._auth.hasAuth) { - self._form.pipe(self) - } - else if (self._auth.hasAuth && self._auth.sentAuth) { - self._form.pipe(self) - } - } - if (self._multipart && self._multipart.chunked) { - self._multipart.body.pipe(self) - } - if (self.body) { - if (isstream(self.body)) { - self.body.pipe(self) - } else { - setContentLength() - if (Array.isArray(self.body)) { - self.body.forEach(function (part) { - self.write(part) - }) - } else { - self.write(self.body) - } - self.end() - } - } else if (self.requestBodyStream) { - console.warn('options.requestBodyStream is deprecated, please pass the request object to stream.pipe.') - self.requestBodyStream.pipe(self) - } else if (!self.src) { - if (self._auth.hasAuth && !self._auth.sentAuth) { - self.end() - return - } - if (self.method !== 'GET' && typeof self.method !== 'undefined') { - self.setHeader('content-length', 0) - } - self.end() - } - } - - if (self._form && !self.hasHeader('content-length')) { - // Before ending the request, we had to compute the length of the whole form, asyncly - self.setHeader(self._form.getHeaders(), true) - self._form.getLength(function (err, length) { - if (!err && !isNaN(length)) { - self.setHeader('content-length', length) - } - end() - }) - } else { - end() - } - - self.ntick = true - }) - -} - -Request.prototype.getNewAgent = function () { - var self = this - var Agent = self.agentClass - var options = {} - if (self.agentOptions) { - for (var i in self.agentOptions) { - options[i] = self.agentOptions[i] - } - } - if (self.ca) { - options.ca = self.ca - } - if (self.ciphers) { - options.ciphers = self.ciphers - } - if (self.secureProtocol) { - options.secureProtocol = self.secureProtocol - } - if (self.secureOptions) { - options.secureOptions = self.secureOptions - } - if (typeof self.rejectUnauthorized !== 'undefined') { - options.rejectUnauthorized = self.rejectUnauthorized - } - - if (self.cert && self.key) { - options.key = self.key - options.cert = self.cert - } - - if (self.pfx) { - options.pfx = self.pfx - } - - if (self.passphrase) { - options.passphrase = self.passphrase - } - - var poolKey = '' - - // different types of agents are in different pools - if (Agent !== self.httpModule.Agent) { - poolKey += Agent.name - } - - // ca option is only relevant if proxy or destination are https - var proxy = self.proxy - if (typeof proxy === 'string') { - proxy = url.parse(proxy) - } - var isHttps = (proxy && proxy.protocol === 'https:') || this.uri.protocol === 'https:' - - if (isHttps) { - if (options.ca) { - if (poolKey) { - poolKey += ':' - } - poolKey += options.ca - } - - if (typeof options.rejectUnauthorized !== 'undefined') { - if (poolKey) { - poolKey += ':' - } - poolKey += options.rejectUnauthorized - } - - if (options.cert) { - if (poolKey) { - poolKey += ':' - } - poolKey += options.cert.toString('ascii') + options.key.toString('ascii') - } - - if (options.pfx) { - if (poolKey) { - poolKey += ':' - } - poolKey += options.pfx.toString('ascii') - } - - if (options.ciphers) { - if (poolKey) { - poolKey += ':' - } - poolKey += options.ciphers - } - - if (options.secureProtocol) { - if (poolKey) { - poolKey += ':' - } - poolKey += options.secureProtocol - } - - if (options.secureOptions) { - if (poolKey) { - poolKey += ':' - } - poolKey += options.secureOptions - } - } - - if (self.pool === globalPool && !poolKey && Object.keys(options).length === 0 && self.httpModule.globalAgent) { - // not doing anything special. Use the globalAgent - return self.httpModule.globalAgent - } - - // we're using a stored agent. Make sure it's protocol-specific - poolKey = self.uri.protocol + poolKey - - // generate a new agent for this setting if none yet exists - if (!self.pool[poolKey]) { - self.pool[poolKey] = new Agent(options) - // properly set maxSockets on new agents - if (self.pool.maxSockets) { - self.pool[poolKey].maxSockets = self.pool.maxSockets - } - } - - return self.pool[poolKey] -} - -Request.prototype.start = function () { - // start() is called once we are ready to send the outgoing HTTP request. - // this is usually called on the first write(), end() or on nextTick() - var self = this - - if (self._aborted) { - return - } - - self._started = true - self.method = self.method || 'GET' - self.href = self.uri.href - - if (self.src && self.src.stat && self.src.stat.size && !self.hasHeader('content-length')) { - self.setHeader('content-length', self.src.stat.size) - } - if (self._aws) { - self.aws(self._aws, true) - } - - // We have a method named auth, which is completely different from the http.request - // auth option. If we don't remove it, we're gonna have a bad time. - var reqOptions = copy(self) - delete reqOptions.auth - - debug('make request', self.uri.href) - - // node v6.8.0 now supports a `timeout` value in `http.request()`, but we - // should delete it for now since we handle timeouts manually for better - // consistency with node versions before v6.8.0 - delete reqOptions.timeout - - try { - self.req = self.httpModule.request(reqOptions) - } catch (err) { - self.emit('error', err) - return - } - - if (self.timing) { - self.startTime = new Date().getTime() - } - - var timeout - if (self.timeout && !self.timeoutTimer) { - if (self.timeout < 0) { - timeout = 0 - } else if (typeof self.timeout === 'number' && isFinite(self.timeout)) { - timeout = self.timeout - } - } - - self.req.on('response', self.onRequestResponse.bind(self)) - self.req.on('error', self.onRequestError.bind(self)) - self.req.on('drain', function() { - self.emit('drain') - }) - self.req.on('socket', function(socket) { - var setReqTimeout = function() { - // This timeout sets the amount of time to wait *between* bytes sent - // from the server once connected. - // - // In particular, it's useful for erroring if the server fails to send - // data halfway through streaming a response. - self.req.setTimeout(timeout, function () { - if (self.req) { - self.abort() - var e = new Error('ESOCKETTIMEDOUT') - e.code = 'ESOCKETTIMEDOUT' - e.connect = false - self.emit('error', e) - } - }) - } - // `._connecting` was the old property which was made public in node v6.1.0 - var isConnecting = socket._connecting || socket.connecting - if (timeout !== undefined) { - // Only start the connection timer if we're actually connecting a new - // socket, otherwise if we're already connected (because this is a - // keep-alive connection) do not bother. This is important since we won't - // get a 'connect' event for an already connected socket. - if (isConnecting) { - var onReqSockConnect = function() { - socket.removeListener('connect', onReqSockConnect) - clearTimeout(self.timeoutTimer) - self.timeoutTimer = null - setReqTimeout() - } - - socket.on('connect', onReqSockConnect) - - self.req.on('error', function(err) { - socket.removeListener('connect', onReqSockConnect) - }) - - // Set a timeout in memory - this block will throw if the server takes more - // than `timeout` to write the HTTP status and headers (corresponding to - // the on('response') event on the client). NB: this measures wall-clock - // time, not the time between bytes sent by the server. - self.timeoutTimer = setTimeout(function () { - socket.removeListener('connect', onReqSockConnect) - self.abort() - var e = new Error('ETIMEDOUT') - e.code = 'ETIMEDOUT' - e.connect = true - self.emit('error', e) - }, timeout) - } else { - // We're already connected - setReqTimeout() - } - } - self.emit('socket', socket) - }) - - self.emit('request', self.req) -} - -Request.prototype.onRequestError = function (error) { - var self = this - if (self._aborted) { - return - } - if (self.req && self.req._reusedSocket && error.code === 'ECONNRESET' - && self.agent.addRequestNoreuse) { - self.agent = { addRequest: self.agent.addRequestNoreuse.bind(self.agent) } - self.start() - self.req.end() - return - } - if (self.timeout && self.timeoutTimer) { - clearTimeout(self.timeoutTimer) - self.timeoutTimer = null - } - self.emit('error', error) -} - -Request.prototype.onRequestResponse = function (response) { - var self = this - debug('onRequestResponse', self.uri.href, response.statusCode, response.headers) - response.on('end', function() { - if (self.timing) { - self.elapsedTime += (new Date().getTime() - self.startTime) - debug('elapsed time', self.elapsedTime) - response.elapsedTime = self.elapsedTime - } - debug('response end', self.uri.href, response.statusCode, response.headers) - }) - - if (self._aborted) { - debug('aborted', self.uri.href) - response.resume() - return - } - - self.response = response - response.request = self - response.toJSON = responseToJSON - - // XXX This is different on 0.10, because SSL is strict by default - if (self.httpModule === https && - self.strictSSL && (!response.hasOwnProperty('socket') || - !response.socket.authorized)) { - debug('strict ssl error', self.uri.href) - var sslErr = response.hasOwnProperty('socket') ? response.socket.authorizationError : self.uri.href + ' does not support SSL' - self.emit('error', new Error('SSL Error: ' + sslErr)) - return - } - - // Save the original host before any redirect (if it changes, we need to - // remove any authorization headers). Also remember the case of the header - // name because lots of broken servers expect Host instead of host and we - // want the caller to be able to specify this. - self.originalHost = self.getHeader('host') - if (!self.originalHostHeaderName) { - self.originalHostHeaderName = self.hasHeader('host') - } - if (self.setHost) { - self.removeHeader('host') - } - if (self.timeout && self.timeoutTimer) { - clearTimeout(self.timeoutTimer) - self.timeoutTimer = null - } - - var targetCookieJar = (self._jar && self._jar.setCookie) ? self._jar : globalCookieJar - var addCookie = function (cookie) { - //set the cookie if it's domain in the href's domain. - try { - targetCookieJar.setCookie(cookie, self.uri.href, {ignoreError: true}) - } catch (e) { - self.emit('error', e) - } - } - - response.caseless = caseless(response.headers) - - if (response.caseless.has('set-cookie') && (!self._disableCookies)) { - var headerName = response.caseless.has('set-cookie') - if (Array.isArray(response.headers[headerName])) { - response.headers[headerName].forEach(addCookie) - } else { - addCookie(response.headers[headerName]) - } - } - - if (self._redirect.onResponse(response)) { - return // Ignore the rest of the response - } else { - // Be a good stream and emit end when the response is finished. - // Hack to emit end on close because of a core bug that never fires end - response.on('close', function () { - if (!self._ended) { - self.response.emit('end') - } - }) - - response.once('end', function () { - self._ended = true - }) - - var noBody = function (code) { - return ( - self.method === 'HEAD' - // Informational - || (code >= 100 && code < 200) - // No Content - || code === 204 - // Not Modified - || code === 304 - ) - } - - var responseContent - if (self.gzip && !noBody(response.statusCode)) { - var contentEncoding = response.headers['content-encoding'] || 'identity' - contentEncoding = contentEncoding.trim().toLowerCase() - - if (contentEncoding === 'gzip') { - responseContent = zlib.createGunzip() - response.pipe(responseContent) - } else if (contentEncoding === 'deflate') { - responseContent = zlib.createInflate() - response.pipe(responseContent) - } else { - // Since previous versions didn't check for Content-Encoding header, - // ignore any invalid values to preserve backwards-compatibility - if (contentEncoding !== 'identity') { - debug('ignoring unrecognized Content-Encoding ' + contentEncoding) - } - responseContent = response - } - } else { - responseContent = response - } - - if (self.encoding) { - if (self.dests.length !== 0) { - console.error('Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.') - } else if (responseContent.setEncoding) { - responseContent.setEncoding(self.encoding) - } else { - // Should only occur on node pre-v0.9.4 (joyent/node@9b5abe5) with - // zlib streams. - // If/When support for 0.9.4 is dropped, this should be unnecessary. - responseContent = responseContent.pipe(stringstream(self.encoding)) - } - } - - if (self._paused) { - responseContent.pause() - } - - self.responseContent = responseContent - - self.emit('response', response) - - self.dests.forEach(function (dest) { - self.pipeDest(dest) - }) - - responseContent.on('data', function (chunk) { - if (self.timing && !self.responseStarted) { - self.responseStartTime = (new Date()).getTime() - response.responseStartTime = self.responseStartTime - } - self._destdata = true - self.emit('data', chunk) - }) - responseContent.once('end', function (chunk) { - self.emit('end', chunk) - }) - responseContent.on('error', function (error) { - self.emit('error', error) - }) - responseContent.on('close', function () {self.emit('close')}) - - if (self.callback) { - self.readResponseBody(response) - } - //if no callback - else { - self.on('end', function () { - if (self._aborted) { - debug('aborted', self.uri.href) - return - } - self.emit('complete', response) - }) - } - } - debug('finish init function', self.uri.href) -} - -Request.prototype.readResponseBody = function (response) { - var self = this - debug('reading response\'s body') - var buffers = [] - , bufferLength = 0 - , strings = [] - - self.on('data', function (chunk) { - if (!Buffer.isBuffer(chunk)) { - strings.push(chunk) - } else if (chunk.length) { - bufferLength += chunk.length - buffers.push(chunk) - } - }) - self.on('end', function () { - debug('end event', self.uri.href) - if (self._aborted) { - debug('aborted', self.uri.href) - // `buffer` is defined in the parent scope and used in a closure it exists for the life of the request. - // This can lead to leaky behavior if the user retains a reference to the request object. - buffers = [] - bufferLength = 0 - return - } - - if (bufferLength) { - debug('has body', self.uri.href, bufferLength) - response.body = Buffer.concat(buffers, bufferLength) - if (self.encoding !== null) { - response.body = response.body.toString(self.encoding) - } - // `buffer` is defined in the parent scope and used in a closure it exists for the life of the Request. - // This can lead to leaky behavior if the user retains a reference to the request object. - buffers = [] - bufferLength = 0 - } else if (strings.length) { - // The UTF8 BOM [0xEF,0xBB,0xBF] is converted to [0xFE,0xFF] in the JS UTC16/UCS2 representation. - // Strip this value out when the encoding is set to 'utf8', as upstream consumers won't expect it and it breaks JSON.parse(). - if (self.encoding === 'utf8' && strings[0].length > 0 && strings[0][0] === '\uFEFF') { - strings[0] = strings[0].substring(1) - } - response.body = strings.join('') - } - - if (self._json) { - try { - response.body = JSON.parse(response.body, self._jsonReviver) - } catch (e) { - debug('invalid JSON received', self.uri.href) - } - } - debug('emitting complete', self.uri.href) - if (typeof response.body === 'undefined' && !self._json) { - response.body = self.encoding === null ? new Buffer(0) : '' - } - self.emit('complete', response, response.body) - }) -} - -Request.prototype.abort = function () { - var self = this - self._aborted = true - - if (self.req) { - self.req.abort() - } - else if (self.response) { - self.response.destroy() - } - - self.emit('abort') -} - -Request.prototype.pipeDest = function (dest) { - var self = this - var response = self.response - // Called after the response is received - if (dest.headers && !dest.headersSent) { - if (response.caseless.has('content-type')) { - var ctname = response.caseless.has('content-type') - if (dest.setHeader) { - dest.setHeader(ctname, response.headers[ctname]) - } - else { - dest.headers[ctname] = response.headers[ctname] - } - } - - if (response.caseless.has('content-length')) { - var clname = response.caseless.has('content-length') - if (dest.setHeader) { - dest.setHeader(clname, response.headers[clname]) - } else { - dest.headers[clname] = response.headers[clname] - } - } - } - if (dest.setHeader && !dest.headersSent) { - for (var i in response.headers) { - // If the response content is being decoded, the Content-Encoding header - // of the response doesn't represent the piped content, so don't pass it. - if (!self.gzip || i !== 'content-encoding') { - dest.setHeader(i, response.headers[i]) - } - } - dest.statusCode = response.statusCode - } - if (self.pipefilter) { - self.pipefilter(response, dest) - } -} - -Request.prototype.qs = function (q, clobber) { - var self = this - var base - if (!clobber && self.uri.query) { - base = self._qs.parse(self.uri.query) - } else { - base = {} - } - - for (var i in q) { - base[i] = q[i] - } - - var qs = self._qs.stringify(base) - - if (qs === '') { - return self - } - - self.uri = url.parse(self.uri.href.split('?')[0] + '?' + qs) - self.url = self.uri - self.path = self.uri.path - - if (self.uri.host === 'unix') { - self.enableUnixSocket() - } - - return self -} -Request.prototype.form = function (form) { - var self = this - if (form) { - if (!/^application\/x-www-form-urlencoded\b/.test(self.getHeader('content-type'))) { - self.setHeader('content-type', 'application/x-www-form-urlencoded') - } - self.body = (typeof form === 'string') - ? self._qs.rfc3986(form.toString('utf8')) - : self._qs.stringify(form).toString('utf8') - return self - } - // create form-data object - self._form = new FormData() - self._form.on('error', function(err) { - err.message = 'form-data: ' + err.message - self.emit('error', err) - self.abort() - }) - return self._form -} -Request.prototype.multipart = function (multipart) { - var self = this - - self._multipart.onRequest(multipart) - - if (!self._multipart.chunked) { - self.body = self._multipart.body - } - - return self -} -Request.prototype.json = function (val) { - var self = this - - if (!self.hasHeader('accept')) { - self.setHeader('accept', 'application/json') - } - - if (typeof self.jsonReplacer === 'function') { - self._jsonReplacer = self.jsonReplacer - } - - self._json = true - if (typeof val === 'boolean') { - if (self.body !== undefined) { - if (!/^application\/x-www-form-urlencoded\b/.test(self.getHeader('content-type'))) { - self.body = safeStringify(self.body, self._jsonReplacer) - } else { - self.body = self._qs.rfc3986(self.body) - } - if (!self.hasHeader('content-type')) { - self.setHeader('content-type', 'application/json') - } - } - } else { - self.body = safeStringify(val, self._jsonReplacer) - if (!self.hasHeader('content-type')) { - self.setHeader('content-type', 'application/json') - } - } - - if (typeof self.jsonReviver === 'function') { - self._jsonReviver = self.jsonReviver - } - - return self -} -Request.prototype.getHeader = function (name, headers) { - var self = this - var result, re, match - if (!headers) { - headers = self.headers - } - Object.keys(headers).forEach(function (key) { - if (key.length !== name.length) { - return - } - re = new RegExp(name, 'i') - match = key.match(re) - if (match) { - result = headers[key] - } - }) - return result -} -Request.prototype.enableUnixSocket = function () { - // Get the socket & request paths from the URL - var unixParts = this.uri.path.split(':') - , host = unixParts[0] - , path = unixParts[1] - // Apply unix properties to request - this.socketPath = host - this.uri.pathname = path - this.uri.path = path - this.uri.host = host - this.uri.hostname = host - this.uri.isUnix = true -} - - -Request.prototype.auth = function (user, pass, sendImmediately, bearer) { - var self = this - - self._auth.onRequest(user, pass, sendImmediately, bearer) - - return self -} -Request.prototype.aws = function (opts, now) { - var self = this - - if (!now) { - self._aws = opts - return self - } - - if (opts.sign_version == 4 || opts.sign_version == '4') { - // use aws4 - var options = { - host: self.uri.host, - path: self.uri.path, - method: self.method, - headers: { - 'content-type': self.getHeader('content-type') || '' - }, - body: self.body - } - var signRes = aws4.sign(options, { - accessKeyId: opts.key, - secretAccessKey: opts.secret, - sessionToken: opts.session - }) - self.setHeader('authorization', signRes.headers.Authorization) - self.setHeader('x-amz-date', signRes.headers['X-Amz-Date']) - if (signRes.headers['X-Amz-Security-Token']) { - self.setHeader('x-amz-security-token', signRes.headers['X-Amz-Security-Token']) - } - } - else { - // default: use aws-sign2 - var date = new Date() - self.setHeader('date', date.toUTCString()) - var auth = - { key: opts.key - , secret: opts.secret - , verb: self.method.toUpperCase() - , date: date - , contentType: self.getHeader('content-type') || '' - , md5: self.getHeader('content-md5') || '' - , amazonHeaders: aws2.canonicalizeHeaders(self.headers) - } - var path = self.uri.path - if (opts.bucket && path) { - auth.resource = '/' + opts.bucket + path - } else if (opts.bucket && !path) { - auth.resource = '/' + opts.bucket - } else if (!opts.bucket && path) { - auth.resource = path - } else if (!opts.bucket && !path) { - auth.resource = '/' - } - auth.resource = aws2.canonicalizeResource(auth.resource) - self.setHeader('authorization', aws2.authorization(auth)) - } - - return self -} -Request.prototype.httpSignature = function (opts) { - var self = this - httpSignature.signRequest({ - getHeader: function(header) { - return self.getHeader(header, self.headers) - }, - setHeader: function(header, value) { - self.setHeader(header, value) - }, - method: self.method, - path: self.path - }, opts) - debug('httpSignature authorization', self.getHeader('authorization')) - - return self -} -Request.prototype.hawk = function (opts) { - var self = this - self.setHeader('Authorization', hawk.client.header(self.uri, self.method, opts).field) -} -Request.prototype.oauth = function (_oauth) { - var self = this - - self._oauth.onRequest(_oauth) - - return self -} - -Request.prototype.jar = function (jar) { - var self = this - var cookies - - if (self._redirect.redirectsFollowed === 0) { - self.originalCookieHeader = self.getHeader('cookie') - } - - if (!jar) { - // disable cookies - cookies = false - self._disableCookies = true - } else { - var targetCookieJar = (jar && jar.getCookieString) ? jar : globalCookieJar - var urihref = self.uri.href - //fetch cookie in the Specified host - if (targetCookieJar) { - cookies = targetCookieJar.getCookieString(urihref) - } - } - - //if need cookie and cookie is not empty - if (cookies && cookies.length) { - if (self.originalCookieHeader) { - // Don't overwrite existing Cookie header - self.setHeader('cookie', self.originalCookieHeader + '; ' + cookies) - } else { - self.setHeader('cookie', cookies) - } - } - self._jar = jar - return self -} - - -// Stream API -Request.prototype.pipe = function (dest, opts) { - var self = this - - if (self.response) { - if (self._destdata) { - self.emit('error', new Error('You cannot pipe after data has been emitted from the response.')) - } else if (self._ended) { - self.emit('error', new Error('You cannot pipe after the response has been ended.')) - } else { - stream.Stream.prototype.pipe.call(self, dest, opts) - self.pipeDest(dest) - return dest - } - } else { - self.dests.push(dest) - stream.Stream.prototype.pipe.call(self, dest, opts) - return dest - } -} -Request.prototype.write = function () { - var self = this - if (self._aborted) {return} - - if (!self._started) { - self.start() - } - if (self.req) { - return self.req.write.apply(self.req, arguments) - } -} -Request.prototype.end = function (chunk) { - var self = this - if (self._aborted) {return} - - if (chunk) { - self.write(chunk) - } - if (!self._started) { - self.start() - } - if (self.req) { - self.req.end() - } -} -Request.prototype.pause = function () { - var self = this - if (!self.responseContent) { - self._paused = true - } else { - self.responseContent.pause.apply(self.responseContent, arguments) - } -} -Request.prototype.resume = function () { - var self = this - if (!self.responseContent) { - self._paused = false - } else { - self.responseContent.resume.apply(self.responseContent, arguments) - } -} -Request.prototype.destroy = function () { - var self = this - if (!self._ended) { - self.end() - } else if (self.response) { - self.response.destroy() - } -} - -Request.defaultProxyHeaderWhiteList = - Tunnel.defaultProxyHeaderWhiteList.slice() - -Request.defaultProxyHeaderExclusiveList = - Tunnel.defaultProxyHeaderExclusiveList.slice() - -// Exports - -Request.prototype.toJSON = requestToJSON -module.exports = Request diff --git a/node_modules/require-dot-file/.npmignore b/node_modules/require-dot-file/.npmignore deleted file mode 100644 index 59d842b..0000000 --- a/node_modules/require-dot-file/.npmignore +++ /dev/null @@ -1,28 +0,0 @@ -# Logs -logs -*.log - -# Runtime data -pids -*.pid -*.seed - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directory -# Commenting this out is preferred by some people, see -# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- -node_modules - -# Users Environment Variables -.lock-wscript diff --git a/node_modules/require-dot-file/LICENSE b/node_modules/require-dot-file/LICENSE deleted file mode 100755 index afd8b31..0000000 --- a/node_modules/require-dot-file/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Jack Lukic - -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/require-dot-file/README.md b/node_modules/require-dot-file/README.md deleted file mode 100755 index 88a4e36..0000000 --- a/node_modules/require-dot-file/README.md +++ /dev/null @@ -1,23 +0,0 @@ -## Install - -```javascript -npm install require-dot-file -``` - -## Usage - -This is a simple module used for recursively searching across all parent folders for a file to require. - -For example you may want to allow a user to [include a dotfile](http://askubuntu.com/questions/94780/what-are-dot-files) to allow users to configure your project that they can include in their project root. - -```javascript -var - requireDotFile = require('require-dot-file') -; - -// searches for .myconfig in all parent dir recursively (including current dir) -var config = requireDotFile('.myconfig'); - -// searches for .myconfig file in /path/to/start and its parent dirs -var config = requireDotFile('.myconfig', '/path/to/start'); -``` \ No newline at end of file diff --git a/node_modules/require-dot-file/index.js b/node_modules/require-dot-file/index.js deleted file mode 100755 index 0f3811c..0000000 --- a/node_modules/require-dot-file/index.js +++ /dev/null @@ -1,48 +0,0 @@ -var - fs = require('fs'), - path = require('path') -; - -// walks parent folders until a dot file is found -module.exports = function(file, directory, maxSteps) { - var - steps = 0, - requirePath, - walk - ; - - // recursion safety-net - maxSteps = maxSteps || 20; - - walk = function(directory) { - var - nextDirectory = path.resolve( path.join(directory, path.sep, '..') ), - currentPath = path.normalize( path.join(directory, file) ) - ; - if( fs.existsSync(currentPath) ) { - // found file - requirePath = path.normalize(currentPath); - return; - } - else { - // reached file system root, let's stop - if(nextDirectory == directory || steps >= maxSteps ) { - return; - } - // otherwise recurse - steps++; - walk(nextDirectory, file); - } - }; - - // start walk from outside require-dot-files directory - directory = directory || path.join(__dirname, path.sep , '..'); - walk(directory); - - if(!requirePath) { - // throw new Error('Unable to find: ' + file); - return false; - } - return require(requirePath); - -}; \ No newline at end of file diff --git a/node_modules/require-dot-file/package.json b/node_modules/require-dot-file/package.json deleted file mode 100755 index fa04d79..0000000 --- a/node_modules/require-dot-file/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "require-dot-file@^0.4.0", - "scope": null, - "escapedName": "require-dot-file", - "name": "require-dot-file", - "rawSpec": "^0.4.0", - "spec": ">=0.4.0 <0.5.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui" - ] - ], - "_from": "require-dot-file@>=0.4.0 <0.5.0", - "_id": "require-dot-file@0.4.0", - "_inCache": true, - "_location": "/require-dot-file", - "_nodeVersion": "0.10.33", - "_npmUser": { - "name": "semantic-bot", - "email": "bot@semantic-ui.com" - }, - "_npmVersion": "2.1.6", - "_phantomChildren": {}, - "_requested": { - "raw": "require-dot-file@^0.4.0", - "scope": null, - "escapedName": "require-dot-file", - "name": "require-dot-file", - "rawSpec": "^0.4.0", - "spec": ">=0.4.0 <0.5.0", - "type": "range" - }, - "_requiredBy": [ - "/semantic-ui" - ], - "_resolved": "https://registry.npmjs.org/require-dot-file/-/require-dot-file-0.4.0.tgz", - "_shasum": "b5bf556a55895c2d590e5decad4535717850a9e9", - "_shrinkwrap": null, - "_spec": "require-dot-file@^0.4.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui", - "author": { - "name": "Jack Lukic", - "email": "jack@semantic-ui.com" - }, - "bugs": { - "url": "https://github.com/jlukic/require-dot-file/issues" - }, - "dependencies": {}, - "description": "Recursively walks parent folders looking for a config file", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "b5bf556a55895c2d590e5decad4535717850a9e9", - "tarball": "https://registry.npmjs.org/require-dot-file/-/require-dot-file-0.4.0.tgz" - }, - "gitHead": "0e9573350393c0d51ef538931dd885f01481e308", - "homepage": "http://github.com/jlukic/require-dot-file/", - "license": "MIT", - "maintainers": [ - { - "name": "jlukic", - "email": "jack@semantic-ui.com" - }, - { - "name": "semantic-bot", - "email": "bot@semantic-ui.com" - } - ], - "name": "require-dot-file", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/jlukic/require-dot-file.git" - }, - "scripts": {}, - "title": "Require Dot File", - "version": "0.4.0" -} diff --git a/node_modules/resolve-dir/LICENSE b/node_modules/resolve-dir/LICENSE deleted file mode 100644 index 6525171..0000000 --- a/node_modules/resolve-dir/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-2016, 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/resolve-dir/README.md b/node_modules/resolve-dir/README.md deleted file mode 100644 index 220178d..0000000 --- a/node_modules/resolve-dir/README.md +++ /dev/null @@ -1,88 +0,0 @@ -# resolve-dir [![NPM version](https://img.shields.io/npm/v/resolve-dir.svg?style=flat)](https://www.npmjs.com/package/resolve-dir) [![NPM downloads](https://img.shields.io/npm/dm/resolve-dir.svg?style=flat)](https://npmjs.org/package/resolve-dir) [![Build Status](https://img.shields.io/travis/jonschlinkert/resolve-dir.svg?style=flat)](https://travis-ci.org/jonschlinkert/resolve-dir) - -Resolve a directory that is either local, global or in the user's home directory. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save resolve-dir -``` - -## Usage - -```js -var resolve = require('resolve-dir'); -``` - -Returns a local directory path unchanged - -```js -resolve('a') -//=> 'a' -``` - -Resolves the path to user home - -```js -resolve('~') -//=> '/Users/jonschlinkert' -resolve('~/foo') -//=> '/Users/jonschlinkert/foo' -``` - -Resolves the path to global npm modules - -```js -resolve('@') -//=> '/usr/local/lib/node_modules' -resolve('@/foo') -//=> '/usr/local/lib/node_modules/foo' -``` - -## About - -### Related projects - -* [expand-tilde](https://www.npmjs.com/package/expand-tilde): Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the… [more](https://github.com/jonschlinkert/expand-tilde) | [homepage](https://github.com/jonschlinkert/expand-tilde "Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.") -* [findup-sync](https://www.npmjs.com/package/findup-sync): Find the first file matching a given pattern in the current directory or the nearest… [more](https://github.com/cowboy/node-findup-sync) | [homepage](https://github.com/cowboy/node-findup-sync "Find the first file matching a given pattern in the current directory or the nearest ancestor directory.") -* [resolve-modules](https://www.npmjs.com/package/resolve-modules): Resolves local and global npm modules that match specified patterns, and returns a configuration object… [more](https://github.com/jonschlinkert/resolve-modules) | [homepage](https://github.com/jonschlinkert/resolve-modules "Resolves local and global npm modules that match specified patterns, and returns a configuration object for each resolved module.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Building docs - -_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ - -To generate the readme and API documentation with [verb](https://github.com/verbose/verb): - -```sh -$ npm install -g verb verb-generate-readme && verb -``` - -### Running tests - -Install dev dependencies: - -```sh -$ npm install -d && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -### License - -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/resolve-dir/blob/master/LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.28, on July 29, 2016._ \ No newline at end of file diff --git a/node_modules/resolve-dir/index.js b/node_modules/resolve-dir/index.js deleted file mode 100644 index 3fe5366..0000000 --- a/node_modules/resolve-dir/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * resolve-dir - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var path = require('path'); -var expand = require('expand-tilde'); -var gm = require('global-modules'); - -module.exports = function resolveDir(dir) { - if (dir.charAt(0) === '~') { - dir = expand(dir); - } - if (dir.charAt(0) === '@') { - dir = path.join(gm, dir.slice(1)); - } - return dir; -}; diff --git a/node_modules/resolve-dir/package.json b/node_modules/resolve-dir/package.json deleted file mode 100644 index de18bf6..0000000 --- a/node_modules/resolve-dir/package.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "resolve-dir@^0.1.0", - "scope": null, - "escapedName": "resolve-dir", - "name": "resolve-dir", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/findup-sync" - ] - ], - "_from": "resolve-dir@>=0.1.0 <0.2.0", - "_id": "resolve-dir@0.1.1", - "_inCache": true, - "_location": "/resolve-dir", - "_nodeVersion": "6.3.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/resolve-dir-0.1.1.tgz_1469811619883_0.7320640422403812" - }, - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "3.10.3", - "_phantomChildren": {}, - "_requested": { - "raw": "resolve-dir@^0.1.0", - "scope": null, - "escapedName": "resolve-dir", - "name": "resolve-dir", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/findup-sync" - ], - "_resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz", - "_shasum": "b219259a5602fac5c5c496ad894a6e8cc430261e", - "_shrinkwrap": null, - "_spec": "resolve-dir@^0.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/findup-sync", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/resolve-dir/issues" - }, - "dependencies": { - "expand-tilde": "^1.2.2", - "global-modules": "^0.2.3" - }, - "description": "Resolve a directory that is either local, global or in the user's home directory.", - "devDependencies": { - "gulp-format-md": "^0.1.9", - "mocha": "^2.5.3" - }, - "directories": {}, - "dist": { - "shasum": "b219259a5602fac5c5c496ad894a6e8cc430261e", - "tarball": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-0.1.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js", - "LICENSE", - "README.md" - ], - "gitHead": "a9ba6b37227d5b708c3606bc97ff62b1a679ef56", - "homepage": "https://github.com/jonschlinkert/resolve-dir", - "keywords": [ - "dir", - "directory", - "expansion", - "file", - "filepath", - "fp", - "global", - "home", - "modules", - "npm", - "path", - "resolve", - "tilde", - "user", - "user-home", - "userhome" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "resolve-dir", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/resolve-dir.git" - }, - "scripts": { - "test": "mocha" - }, - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "findup-sync", - "expand-tilde", - "resolve-modules" - ] - }, - "reflinks": [ - "verb", - "verb-generate-readme" - ], - "lint": { - "reflinks": true - } - }, - "version": "0.1.1" -} diff --git a/node_modules/resolve-url/.jshintrc b/node_modules/resolve-url/.jshintrc deleted file mode 100644 index aaf3358..0000000 --- a/node_modules/resolve-url/.jshintrc +++ /dev/null @@ -1,44 +0,0 @@ -{ - "bitwise": true, - "camelcase": true, - "curly": false, - "eqeqeq": true, - "es3": true, - "forin": true, - "immed": false, - "indent": false, - "latedef": "nofunc", - "newcap": false, - "noarg": true, - "noempty": true, - "nonew": false, - "plusplus": false, - "quotmark": false, - "undef": true, - "unused": "vars", - "strict": false, - "trailing": true, - "maxparams": 5, - "maxdepth": false, - "maxstatements": false, - "maxcomplexity": false, - "maxlen": 100, - - "asi": true, - "expr": true, - "globalstrict": true, - "smarttabs": true, - "sub": true, - - "node": true, - "browser": true, - "globals": { - "describe": false, - "it": false, - "before": false, - "beforeEach": false, - "after": false, - "afterEach": false, - "define": false - } -} diff --git a/node_modules/resolve-url/LICENSE b/node_modules/resolve-url/LICENSE deleted file mode 100644 index 0595be3..0000000 --- a/node_modules/resolve-url/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Simon Lydell - -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/resolve-url/bower.json b/node_modules/resolve-url/bower.json deleted file mode 100644 index 31aa6f4..0000000 --- a/node_modules/resolve-url/bower.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "resolve-url", - "version": "0.2.1", - "description": "Like Node.js’ `path.resolve`/`url.resolve` for the browser.", - "authors": ["Simon Lydell"], - "license": "MIT", - "main": "resolve-url.js", - "keywords": [ - "resolve", - "url" - ], - "ignore": [ - ".*" - ] -} diff --git a/node_modules/resolve-url/changelog.md b/node_modules/resolve-url/changelog.md deleted file mode 100644 index 2a4a630..0000000 --- a/node_modules/resolve-url/changelog.md +++ /dev/null @@ -1,15 +0,0 @@ -### Version 0.2.1 (2014-02-25) ### - -- Fix edge case when (accidentally) supplying only one argument, and that - argument happens to be a falsy value such as `undefined` or `null`. - - -### Version 0.2.0 (2014-02-24) ### - -- Disallow passing 0 arguments. It’s weird and inconsistent between browsers. - (Backwards incompatible change.) - - -### Version 0.1.0 (2014-02-23) ### - -- Initial release. diff --git a/node_modules/resolve-url/component.json b/node_modules/resolve-url/component.json deleted file mode 100644 index f37cf00..0000000 --- a/node_modules/resolve-url/component.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "resolve-url", - "version": "0.2.1", - "license": "MIT", - "description": "Like Node.js’ `path.resolve`/`url.resolve` for the browser.", - "main": "resolve-url.js", - "repo": "lydell/resolve-url", - "keywords": [ - "resolve", - "url" - ], - "scripts": [ - "resolve-url.js" - ] -} diff --git a/node_modules/resolve-url/package.json b/node_modules/resolve-url/package.json deleted file mode 100644 index 18a580a..0000000 --- a/node_modules/resolve-url/package.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "resolve-url@~0.2.1", - "scope": null, - "escapedName": "resolve-url", - "name": "resolve-url", - "rawSpec": "~0.2.1", - "spec": ">=0.2.1 <0.3.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/source-map-resolve" - ] - ], - "_from": "resolve-url@>=0.2.1 <0.3.0", - "_id": "resolve-url@0.2.1", - "_inCache": true, - "_location": "/resolve-url", - "_npmUser": { - "name": "lydell", - "email": "simon.lydell@gmail.com" - }, - "_npmVersion": "1.4.4", - "_phantomChildren": {}, - "_requested": { - "raw": "resolve-url@~0.2.1", - "scope": null, - "escapedName": "resolve-url", - "name": "resolve-url", - "rawSpec": "~0.2.1", - "spec": ">=0.2.1 <0.3.0", - "type": "range" - }, - "_requiredBy": [ - "/source-map-resolve" - ], - "_resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "_shasum": "2c637fe77c893afd2a663fe21aa9080068e2052a", - "_shrinkwrap": null, - "_spec": "resolve-url@~0.2.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/source-map-resolve", - "author": { - "name": "Simon Lydell" - }, - "bugs": { - "url": "https://github.com/lydell/resolve-url/issues" - }, - "dependencies": {}, - "description": "Like Node.js’ `path.resolve`/`url.resolve` for the browser.", - "devDependencies": { - "jshint": "~2.4.3", - "tape": "~2.5.0", - "testling": "~1.6.0" - }, - "directories": {}, - "dist": { - "shasum": "2c637fe77c893afd2a663fe21aa9080068e2052a", - "tarball": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz" - }, - "homepage": "https://github.com/lydell/resolve-url", - "keywords": [ - "resolve", - "url" - ], - "license": "MIT", - "main": "resolve-url.js", - "maintainers": [ - { - "name": "lydell", - "email": "simon.lydell@gmail.com" - } - ], - "name": "resolve-url", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/lydell/resolve-url.git" - }, - "scripts": { - "test": "jshint resolve-url.js test/ && testling -u" - }, - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "chrome/latest", - "firefox/latest", - "opera/12", - "opera/latest", - "safari/5", - "iphone/6", - "android-browser/4" - ] - }, - "version": "0.2.1" -} diff --git a/node_modules/resolve-url/readme.md b/node_modules/resolve-url/readme.md deleted file mode 100644 index edfff73..0000000 --- a/node_modules/resolve-url/readme.md +++ /dev/null @@ -1,83 +0,0 @@ -Overview -======== - -[![browser support](https://ci.testling.com/lydell/resolve-url.png)](https://ci.testling.com/lydell/resolve-url) - -Like Node.js’ [`path.resolve`]/[`url.resolve`] for the browser. - -```js -var resolveUrl = require("resolve-url") - -window.location -// https://example.com/articles/resolving-urls/edit - -resolveUrl("remove") -// https://example.com/articles/resolving-urls/remove - -resolveUrl("/static/scripts/app.js") -// https://example.com/static/scripts/app.js - -// Imagine /static/scripts/app.js contains `//# sourceMappingURL=../source-maps/app.js.map` -resolveUrl("/static/scripts/app.js", "../source-maps/app.js.map") -// https://example.com/static/source-maps/app.js.map - -resolveUrl("/static/scripts/app.js", "../source-maps/app.js.map", "../coffee/app.coffee") -// https://example.com/static/coffee/app.coffee - -resolveUrl("//cdn.example.com/jquery.js") -// https://cdn.example.com/jquery.js - -resolveUrl("http://foo.org/") -// http://foo.org/ -``` - - -Installation -============ - -- `npm install resolve-url` -- `bower install resolve-url` -- `component install lydell/resolve-url` - -Works with CommonJS, AMD and browser globals, through UMD. - - -Usage -===== - -### `resolveUrl(...urls)` ### - -Pass one or more urls. Resolves the last one to an absolute url, using the -previous ones and `window.location`. - -It’s like starting out on `window.location`, and then clicking links with the -urls as `href` attributes in order, from left to right. - -Unlike Node.js’ [`path.resolve`], this function always goes through all of the -arguments, from left to right. `path.resolve` goes from right to left and only -in the worst case goes through them all. Should that matter. - -Actually, the function is _really_ like clicking a lot of links in series: An -actual `` gets its `href` attribute set for each url! This means that the -url resolution of the browser is used, which makes this module really -light-weight. - -Also note that this functions deals with urls, not paths, so in that respect it -has more in common with Node.js’ [`url.resolve`]. But the arguments are more -like [`path.resolve`]. - -[`path.resolve`]: http://nodejs.org/api/path.html#path_path_resolve_from_to -[`url.resolve`]: http://nodejs.org/api/url.html#url_url_resolve_from_to - - -Tests -===== - -Run `npm test`, which lints the code and then gives you a link to open in a -browser of choice (using `testling`). - - -License -======= - -[The X11 (“MIT”) License](LICENSE). diff --git a/node_modules/resolve-url/resolve-url.js b/node_modules/resolve-url/resolve-url.js deleted file mode 100644 index 19e8d04..0000000 --- a/node_modules/resolve-url/resolve-url.js +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2014 Simon Lydell -// X11 (“MIT”) Licensed. (See LICENSE.) - -void (function(root, factory) { - if (typeof define === "function" && define.amd) { - define(factory) - } else if (typeof exports === "object") { - module.exports = factory() - } else { - root.resolveUrl = factory() - } -}(this, function() { - - function resolveUrl(/* ...urls */) { - var numUrls = arguments.length - - if (numUrls === 0) { - throw new Error("resolveUrl requires at least one argument; got none.") - } - - var base = document.createElement("base") - base.href = arguments[0] - - if (numUrls === 1) { - return base.href - } - - var head = document.getElementsByTagName("head")[0] - head.insertBefore(base, head.firstChild) - - var a = document.createElement("a") - var resolved - - for (var index = 1; index < numUrls; index++) { - a.href = arguments[index] - resolved = a.href - base.href = resolved - } - - head.removeChild(base) - - return resolved - } - - return resolveUrl - -})); diff --git a/node_modules/resolve-url/test/resolve-url.js b/node_modules/resolve-url/test/resolve-url.js deleted file mode 100644 index 18532ed..0000000 --- a/node_modules/resolve-url/test/resolve-url.js +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2014 Simon Lydell -// X11 (“MIT”) Licensed. (See LICENSE.) - -var test = require("tape") - -var resolveUrl = require("../") - -"use strict" - -test("resolveUrl", function(t) { - - t.plan(7) - - t.equal(typeof resolveUrl, "function", "is a function") - - t.equal( - resolveUrl("https://example.com/"), - "https://example.com/" - ) - - var loc = "https://example.com/articles/resolving-urls/edit" - - t.equal( - resolveUrl(loc, "remove"), - "https://example.com/articles/resolving-urls/remove" - ) - - t.equal( - resolveUrl(loc, "/static/scripts/app.js"), - "https://example.com/static/scripts/app.js" - ) - - t.equal( - resolveUrl(loc, "/static/scripts/app.js", "../source-maps/app.js.map"), - "https://example.com/static/source-maps/app.js.map" - ) - - t.equal( - resolveUrl(loc, "/static/scripts/app.js", "../source-maps/app.js.map", "../coffee/app.coffee"), - "https://example.com/static/coffee/app.coffee" - ) - - t.equal( - resolveUrl(loc, "//cdn.example.com/jquery.js"), - "https://cdn.example.com/jquery.js" - ) - -}) - -test("edge cases", function(t) { - - t.plan(4) - - t["throws"](resolveUrl, /at least one argument/, "throws with no arguments") - - var accidentallyUndefined - var result - t.doesNotThrow( - function() { result = resolveUrl(accidentallyUndefined) }, - "undefined is still an argument" - ) - t.ok(result.match(/\/undefined$/), "undefined is stringified") - - t.equal( - resolveUrl("http://foo.org/test", undefined, {}, ["a/b"], null), - "http://foo.org/a/null", - "arguments are stringified" - ) - -}) diff --git a/node_modules/resolve/.eslintignore b/node_modules/resolve/.eslintignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/resolve/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/resolve/.eslintrc b/node_modules/resolve/.eslintrc deleted file mode 100644 index 910974f..0000000 --- a/node_modules/resolve/.eslintrc +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": "@ljharb", - "rules": { - "indent": [2, 4], - "strict": 0, - "curly": 0, - "max-params": 0, - "max-statements": 0, - "no-magic-numbers": 0, - "global-require": 0, - "no-console": 0, - "no-shadow": 0, - "no-unused-vars": [2, { "vars": "all", "args": "none" }], - "sort-keys": 0, - "max-statements-per-line": [2, { "max": 2 }], - "func-name-matching": 0, - "func-style": 0, - "object-curly-newline": 0, - "no-use-before-define": 1, - "complexity": 0, - "consistent-return": 0 - } -} diff --git a/node_modules/resolve/.npmignore b/node_modules/resolve/.npmignore deleted file mode 100644 index 3c3629e..0000000 --- a/node_modules/resolve/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/resolve/.travis.yml b/node_modules/resolve/.travis.yml deleted file mode 100644 index 9355df5..0000000 --- a/node_modules/resolve/.travis.yml +++ /dev/null @@ -1,152 +0,0 @@ -language: node_js -os: - - linux -node_js: - - "7.2" - - "6.9" - - "5.12" - - "4.6" - - "iojs-v3.3" - - "iojs-v2.5" - - "iojs-v1.8" - - "0.12" - - "0.10" - - "0.8" - - "0.6" -before_install: - - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi' - - 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi' -script: - - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi' - - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi' - - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi' - - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi' -sudo: false -env: - - TEST=true -matrix: - fast_finish: true - include: - - node_js: "7.1" - env: TEST=true ALLOW_FAILURE=true - - node_js: "7.0" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.8" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.7" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.6" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.5" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.4" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.3" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.2" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.1" - env: TEST=true ALLOW_FAILURE=true - - node_js: "6.0" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.11" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.10" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.9" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.8" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.7" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.6" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.5" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.4" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.3" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.2" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.1" - env: TEST=true ALLOW_FAILURE=true - - node_js: "5.0" - env: TEST=true ALLOW_FAILURE=true - - node_js: "4.5" - env: TEST=true ALLOW_FAILURE=true - - node_js: "4.4" - env: TEST=true ALLOW_FAILURE=true - - node_js: "4.3" - env: TEST=true ALLOW_FAILURE=true - - node_js: "4.2" - env: TEST=true ALLOW_FAILURE=true - - node_js: "4.1" - env: TEST=true ALLOW_FAILURE=true - - node_js: "4.0" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v3.2" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v3.1" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v3.0" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v2.4" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v2.3" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v2.2" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v2.1" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v2.0" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v1.7" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v1.6" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v1.5" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v1.4" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v1.3" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v1.2" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v1.1" - env: TEST=true ALLOW_FAILURE=true - - node_js: "iojs-v1.0" - env: TEST=true ALLOW_FAILURE=true - - node_js: "0.11" - env: TEST=true ALLOW_FAILURE=true - - node_js: "0.9" - env: TEST=true ALLOW_FAILURE=true - - node_js: "0.4" - env: TEST=true ALLOW_FAILURE=true - - node_js: "7" - env: TEST=true - os: osx - - node_js: "6" - env: TEST=true - os: osx - - node_js: "5" - env: TEST=true - os: osx - - node_js: "4" - env: TEST=true - os: osx - - node_js: "iojs" - env: TEST=true - os: osx - - node_js: "0.12" - env: TEST=true - os: osx - - node_js: "0.10" - env: TEST=true - os: osx - - node_js: "0.8" - env: TEST=true - os: osx - allow_failures: - - os: osx - - env: TEST=true ALLOW_FAILURE=true diff --git a/node_modules/resolve/LICENSE b/node_modules/resolve/LICENSE deleted file mode 100644 index ee27ba4..0000000 --- a/node_modules/resolve/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/resolve/appveyor.yml b/node_modules/resolve/appveyor.yml deleted file mode 100644 index f54a1b6..0000000 --- a/node_modules/resolve/appveyor.yml +++ /dev/null @@ -1,44 +0,0 @@ -version: 1.0.{build} -skip_branch_with_pr: true -build: off - -environment: - matrix: - - nodejs_version: "7" - - nodejs_version: "6" - - nodejs_version: "5" - - nodejs_version: "4" - - nodejs_version: "3" - - nodejs_version: "2" - - nodejs_version: "1" - - nodejs_version: "0.12" - - nodejs_version: "0.10" - - nodejs_version: "0.8" - - nodejs_version: "0.6" -matrix: - # fast_finish: true - allow_failures: - - nodejs_version: "0.6" - -platform: - - x86 - - x64 - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version $env:platform - - IF %nodejs_version% EQU 0.6 npm -g install npm@1.3 - - IF %nodejs_version% EQU 0.8 npm -g install npm@2 - - set PATH=%APPDATA%\npm;%PATH% - #- IF %nodejs_version% NEQ 0.6 AND %nodejs_version% NEQ 0.8 npm -g install npm - # install modules - - npm install - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - node --version - - npm --version - # run tests - - npm run tests-only diff --git a/node_modules/resolve/example/async.js b/node_modules/resolve/example/async.js deleted file mode 100644 index 20e65dc..0000000 --- a/node_modules/resolve/example/async.js +++ /dev/null @@ -1,5 +0,0 @@ -var resolve = require('../'); -resolve('tap', { basedir: __dirname }, function (err, res) { - if (err) console.error(err); - else console.log(res); -}); diff --git a/node_modules/resolve/example/sync.js b/node_modules/resolve/example/sync.js deleted file mode 100644 index 54b2cc1..0000000 --- a/node_modules/resolve/example/sync.js +++ /dev/null @@ -1,3 +0,0 @@ -var resolve = require('../'); -var res = resolve.sync('tap', { basedir: __dirname }); -console.log(res); diff --git a/node_modules/resolve/index.js b/node_modules/resolve/index.js deleted file mode 100644 index bfbd7cd..0000000 --- a/node_modules/resolve/index.js +++ /dev/null @@ -1,5 +0,0 @@ -var core = require('./lib/core'); -exports = module.exports = require('./lib/async'); -exports.core = core; -exports.isCore = function isCore(x) { return core[x]; }; -exports.sync = require('./lib/sync'); diff --git a/node_modules/resolve/lib/async.js b/node_modules/resolve/lib/async.js deleted file mode 100644 index dcf867d..0000000 --- a/node_modules/resolve/lib/async.js +++ /dev/null @@ -1,198 +0,0 @@ -var core = require('./core'); -var fs = require('fs'); -var path = require('path'); -var caller = require('./caller.js'); -var nodeModulesPaths = require('./node-modules-paths.js'); - -module.exports = function resolve(x, options, callback) { - var cb = callback; - var opts = options || {}; - if (typeof opts === 'function') { - cb = opts; - opts = {}; - } - if (typeof x !== 'string') { - var err = new TypeError('path must be a string'); - return process.nextTick(function () { - cb(err); - }); - } - - var isFile = opts.isFile || function (file, cb) { - fs.stat(file, function (err, stat) { - if (err && err.code === 'ENOENT') cb(null, false); - else if (err) cb(err); - else cb(null, stat.isFile() || stat.isFIFO()); - }); - }; - var readFile = opts.readFile || fs.readFile; - - var extensions = opts.extensions || ['.js']; - var y = opts.basedir || path.dirname(caller()); - - opts.paths = opts.paths || []; - - if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[\\\/])/.test(x)) { - var res = path.resolve(y, x); - if (x === '..') res += '/'; - if (/\/$/.test(x) && res === y) { - loadAsDirectory(res, opts.package, onfile); - } else loadAsFile(res, opts.package, onfile); - } else loadNodeModules(x, y, function (err, n, pkg) { - if (err) cb(err); - else if (n) cb(null, n, pkg); - else if (core[x]) return cb(null, x); - else { - var moduleError = new Error("Cannot find module '" + x + "' from '" + y + "'"); - moduleError.code = 'MODULE_NOT_FOUND'; - cb(moduleError); - } - }); - - function onfile(err, m, pkg) { - if (err) cb(err); - else if (m) cb(null, m, pkg); - else loadAsDirectory(res, function (err, d, pkg) { - if (err) cb(err); - else if (d) cb(null, d, pkg); - else { - var moduleError = new Error("Cannot find module '" + x + "' from '" + y + "'"); - moduleError.code = 'MODULE_NOT_FOUND'; - cb(moduleError); - } - }); - } - - function loadAsFile(x, pkg, callback) { - var cb = callback; - if (typeof pkg === 'function') { - cb = pkg; - pkg = undefined; - } - - var exts = [''].concat(extensions); - load(exts, x, pkg); - - function load(exts, x, pkg) { - if (exts.length === 0) return cb(null, undefined, pkg); - var file = x + exts[0]; - - if (pkg) onpkg(null, pkg); - else loadpkg(path.dirname(file), onpkg); - - function onpkg(err, pkg_, dir) { - pkg = pkg_; - if (err) return cb(err); - if (dir && pkg && opts.pathFilter) { - var rfile = path.relative(dir, file); - var rel = rfile.slice(0, rfile.length - exts[0].length); - var r = opts.pathFilter(pkg, x, rel); - if (r) return load( - [''].concat(extensions.slice()), - path.resolve(dir, r), - pkg - ); - } - isFile(file, onex); - } - function onex(err, ex) { - if (err) cb(err); - else if (!ex) load(exts.slice(1), x, pkg); - else cb(null, file, pkg); - } - } - } - - function loadpkg(dir, cb) { - if (dir === '' || dir === '/') return cb(null); - if (process.platform === 'win32' && (/^\w:[\\\/]*$/).test(dir)) { - return cb(null); - } - if (/[\\\/]node_modules[\\\/]*$/.test(dir)) return cb(null); - - var pkgfile = path.join(dir, 'package.json'); - isFile(pkgfile, function (err, ex) { - // on err, ex is false - if (!ex) return loadpkg(path.dirname(dir), cb); - - readFile(pkgfile, function (err, body) { - if (err) cb(err); - try { var pkg = JSON.parse(body); } catch (jsonErr) {} - - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, pkgfile); - } - cb(null, pkg, dir); - }); - }); - } - - function loadAsDirectory(x, fpkg, callback) { - var cb = callback; - if (typeof fpkg === 'function') { - cb = fpkg; - fpkg = opts.package; - } - - var pkgfile = path.join(x, 'package.json'); - isFile(pkgfile, function (err, ex) { - if (err) return cb(err); - if (!ex) return loadAsFile(path.join(x, 'index'), fpkg, cb); - - readFile(pkgfile, function (err, body) { - if (err) return cb(err); - try { - var pkg = JSON.parse(body); - } catch (jsonErr) {} - - if (opts.packageFilter) { - pkg = opts.packageFilter(pkg, pkgfile); - } - - if (pkg.main) { - if (pkg.main === '.' || pkg.main === './') { - pkg.main = 'index'; - } - loadAsFile(path.resolve(x, pkg.main), pkg, function (err, m, pkg) { - if (err) return cb(err); - if (m) return cb(null, m, pkg); - if (!pkg) return loadAsFile(path.join(x, 'index'), pkg, cb); - - var dir = path.resolve(x, pkg.main); - loadAsDirectory(dir, pkg, function (err, n, pkg) { - if (err) return cb(err); - if (n) return cb(null, n, pkg); - loadAsFile(path.join(x, 'index'), pkg, cb); - }); - }); - return; - } - - loadAsFile(path.join(x, '/index'), pkg, cb); - }); - }); - } - - function processDirs(cb, dirs) { - if (dirs.length === 0) return cb(null, undefined); - var dir = dirs[0]; - - var file = path.join(dir, x); - loadAsFile(file, undefined, onfile); - - function onfile(err, m, pkg) { - if (err) return cb(err); - if (m) return cb(null, m, pkg); - loadAsDirectory(path.join(dir, x), undefined, ondir); - } - - function ondir(err, n, pkg) { - if (err) return cb(err); - if (n) return cb(null, n, pkg); - processDirs(cb, dirs.slice(1)); - } - } - function loadNodeModules(x, start, cb) { - processDirs(cb, nodeModulesPaths(start, opts)); - } -}; diff --git a/node_modules/resolve/lib/caller.js b/node_modules/resolve/lib/caller.js deleted file mode 100644 index b14a280..0000000 --- a/node_modules/resolve/lib/caller.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = function () { - // see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi - var origPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = function (_, stack) { return stack; }; - var stack = (new Error()).stack; - Error.prepareStackTrace = origPrepareStackTrace; - return stack[2].getFileName(); -}; diff --git a/node_modules/resolve/lib/core.js b/node_modules/resolve/lib/core.js deleted file mode 100644 index 6f5b1f2..0000000 --- a/node_modules/resolve/lib/core.js +++ /dev/null @@ -1,22 +0,0 @@ -var current = process.versions.node.split('.'); - -function versionIncluded(version) { - if (version === '*') return true; - var versionParts = version.split('.'); - for (var i = 0; i < 3; ++i) { - if ((current[i] || 0) >= (versionParts[i] || 0)) return true; - } - return false; -} - -var data = require('./core.json'); - -var core = {}; -for (var version in data) { - if (Object.prototype.hasOwnProperty.call(data, version) && versionIncluded(version)) { - for (var i = 0; i < data[version].length; ++i) { - core[data[version][i]] = true; - } - } -} -module.exports = core; diff --git a/node_modules/resolve/lib/core.json b/node_modules/resolve/lib/core.json deleted file mode 100644 index 843844e..0000000 --- a/node_modules/resolve/lib/core.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "*": [ - "assert", - "buffer_ieee754", - "buffer", - "child_process", - "cluster", - "console", - "constants", - "crypto", - "_debugger", - "dgram", - "dns", - "domain", - "events", - "freelist", - "fs", - "http", - "https", - "_linklist", - "module", - "net", - "os", - "path", - "punycode", - "querystring", - "readline", - "repl", - "stream", - "string_decoder", - "sys", - "timers", - "tls", - "tty", - "url", - "util", - "vm", - "zlib" - ], - "0.11": [ - "_http_server" - ], - "1.0": [ - "process", - "v8" - ] -} diff --git a/node_modules/resolve/lib/node-modules-paths.js b/node_modules/resolve/lib/node-modules-paths.js deleted file mode 100644 index 1d17249..0000000 --- a/node_modules/resolve/lib/node-modules-paths.js +++ /dev/null @@ -1,35 +0,0 @@ -var path = require('path'); -var parse = path.parse || require('path-parse'); - -module.exports = function nodeModulesPaths(start, opts) { - var modules = opts && opts.moduleDirectory - ? [].concat(opts.moduleDirectory) - : ['node_modules'] - ; - - // ensure that `start` is an absolute path at this point, - // resolving against the process' current working directory - start = path.resolve(start); - - var prefix = '/'; - if (/^([A-Za-z]:)/.test(start)) { - prefix = ''; - } else if (/^\\\\/.test(start)) { - prefix = '\\\\'; - } - - var paths = [start]; - var parsed = parse(start); - while (parsed.dir !== paths[paths.length - 1]) { - paths.push(parsed.dir); - parsed = parse(parsed.dir); - } - - var dirs = paths.reduce(function (dirs, aPath) { - return dirs.concat(modules.map(function (moduleDir) { - return path.join(prefix, aPath, moduleDir); - })); - }, []); - - return opts && opts.paths ? dirs.concat(opts.paths) : dirs; -}; diff --git a/node_modules/resolve/lib/sync.js b/node_modules/resolve/lib/sync.js deleted file mode 100644 index 37066ed..0000000 --- a/node_modules/resolve/lib/sync.js +++ /dev/null @@ -1,86 +0,0 @@ -var core = require('./core'); -var fs = require('fs'); -var path = require('path'); -var caller = require('./caller.js'); -var nodeModulesPaths = require('./node-modules-paths.js'); - -module.exports = function (x, options) { - var opts = options || {}; - var isFile = opts.isFile || function (file) { - try { - var stat = fs.statSync(file); - } catch (e) { - if (e && e.code === 'ENOENT') return false; - throw e; - } - return stat.isFile() || stat.isFIFO(); - }; - var readFileSync = opts.readFileSync || fs.readFileSync; - - var extensions = opts.extensions || ['.js']; - var y = opts.basedir || path.dirname(caller()); - - opts.paths = opts.paths || []; - - if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[\\\/])/.test(x)) { - var res = path.resolve(y, x); - if (x === '..') res += '/'; - var m = loadAsFileSync(res) || loadAsDirectorySync(res); - if (m) return m; - } else { - var n = loadNodeModulesSync(x, y); - if (n) return n; - } - - if (core[x]) return x; - - var err = new Error("Cannot find module '" + x + "' from '" + y + "'"); - err.code = 'MODULE_NOT_FOUND'; - throw err; - - function loadAsFileSync(x) { - if (isFile(x)) { - return x; - } - - for (var i = 0; i < extensions.length; i++) { - var file = x + extensions[i]; - if (isFile(file)) { - return file; - } - } - } - - function loadAsDirectorySync(x) { - var pkgfile = path.join(x, '/package.json'); - if (isFile(pkgfile)) { - var body = readFileSync(pkgfile, 'utf8'); - try { - var pkg = JSON.parse(body); - if (opts.packageFilter) { - pkg = opts.packageFilter(pkg, x); - } - - if (pkg.main) { - var m = loadAsFileSync(path.resolve(x, pkg.main)); - if (m) return m; - var n = loadAsDirectorySync(path.resolve(x, pkg.main)); - if (n) return n; - } - } catch (e) {} - } - - return loadAsFileSync(path.join(x, '/index')); - } - - function loadNodeModulesSync(x, start) { - var dirs = nodeModulesPaths(start, opts); - for (var i = 0; i < dirs.length; i++) { - var dir = dirs[i]; - var m = loadAsFileSync(path.join(dir, '/', x)); - if (m) return m; - var n = loadAsDirectorySync(path.join(dir, '/', x)); - if (n) return n; - } - } -}; diff --git a/node_modules/resolve/package.json b/node_modules/resolve/package.json deleted file mode 100644 index 70f8a29..0000000 --- a/node_modules/resolve/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "resolve@^1.1.7", - "scope": null, - "escapedName": "resolve", - "name": "resolve", - "rawSpec": "^1.1.7", - "spec": ">=1.1.7 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/liftoff" - ] - ], - "_from": "resolve@>=1.1.7 <2.0.0", - "_id": "resolve@1.3.1", - "_inCache": true, - "_location": "/resolve", - "_nodeVersion": "7.6.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/resolve-1.3.1.tgz_1487930636460_0.8978362330235541" - }, - "_npmUser": { - "name": "ljharb", - "email": "ljharb@gmail.com" - }, - "_npmVersion": "4.1.2", - "_phantomChildren": {}, - "_requested": { - "raw": "resolve@^1.1.7", - "scope": null, - "escapedName": "resolve", - "name": "resolve", - "rawSpec": "^1.1.7", - "spec": ">=1.1.7 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/accord", - "/liftoff", - "/rechoir" - ], - "_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.3.1.tgz", - "_shasum": "5d0a1632609b6b00a22284293db1d5d973676314", - "_shrinkwrap": null, - "_spec": "resolve@^1.1.7", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/liftoff", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bugs": { - "url": "https://github.com/substack/node-resolve/issues" - }, - "dependencies": { - "path-parse": "^1.0.5" - }, - "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", - "devDependencies": { - "object-keys": "^1.0.11", - "safe-publish-latest": "^1.1.1", - "tap": "0.4.13", - "tape": "^4.6.3" - }, - "directories": {}, - "dist": { - "shasum": "5d0a1632609b6b00a22284293db1d5d973676314", - "tarball": "https://registry.npmjs.org/resolve/-/resolve-1.3.1.tgz" - }, - "gitHead": "05a5ab961b5720bdcf1a641c093a4789af700506", - "homepage": "https://github.com/substack/node-resolve#readme", - "keywords": [ - "resolve", - "require", - "node", - "module" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "ljharb", - "email": "ljharb@gmail.com" - }, - { - "name": "substack", - "email": "substack@gmail.com" - } - ], - "name": "resolve", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/substack/node-resolve.git" - }, - "scripts": { - "prepublish": "! type safe-publish-latest >/dev/null 2>&1 || safe-publish-latest", - "test": "npm run --silent tests-only", - "tests-only": "tape test/*.js" - }, - "version": "1.3.1" -} diff --git a/node_modules/resolve/readme.markdown b/node_modules/resolve/readme.markdown deleted file mode 100644 index db0d69f..0000000 --- a/node_modules/resolve/readme.markdown +++ /dev/null @@ -1,148 +0,0 @@ -# resolve - -implements the [node `require.resolve()` -algorithm](https://nodejs.org/api/modules.html#modules_all_together) -such that you can `require.resolve()` on behalf of a file asynchronously and -synchronously - -[![build status](https://secure.travis-ci.org/substack/node-resolve.png)](http://travis-ci.org/substack/node-resolve) - -# example - -asynchronously resolve: - -``` js -var resolve = require('resolve'); -resolve('tap', { basedir: __dirname }, function (err, res) { - if (err) console.error(err) - else console.log(res) -}); -``` - -``` -$ node example/async.js -/home/substack/projects/node-resolve/node_modules/tap/lib/main.js -``` - -synchronously resolve: - -``` js -var resolve = require('resolve'); -var res = resolve.sync('tap', { basedir: __dirname }); -console.log(res); -``` - -``` -$ node example/sync.js -/home/substack/projects/node-resolve/node_modules/tap/lib/main.js -``` - -# methods - -``` js -var resolve = require('resolve') -``` - -## resolve(id, opts={}, cb) - -Asynchronously resolve the module path string `id` into `cb(err, res [, pkg])`, where `pkg` (if defined) is the data from `package.json`. - -options are: - -* opts.basedir - directory to begin resolving from - -* opts.package - `package.json` data applicable to the module being loaded - -* opts.extensions - array of file extensions to search in order - -* opts.readFile - how to read files asynchronously - -* opts.isFile - function to asynchronously test whether a file exists - -* opts.packageFilter - transform the parsed package.json contents before looking -at the "main" field - -* opts.pathFilter(pkg, path, relativePath) - transform a path within a package - * pkg - package data - * path - the path being resolved - * relativePath - the path relative from the package.json location - * returns - a relative path that will be joined from the package.json location - -* opts.paths - require.paths array to use if nothing is found on the normal -node_modules recursive walk (probably don't use this) - -* opts.moduleDirectory - directory (or directories) in which to recursively look for modules. default: `"node_modules"` - -default `opts` values: - -``` javascript -{ - paths: [], - basedir: __dirname, - extensions: [ '.js' ], - readFile: fs.readFile, - isFile: function (file, cb) { - fs.stat(file, function (err, stat) { - if (err && err.code === 'ENOENT') cb(null, false) - else if (err) cb(err) - else cb(null, stat.isFile()) - }); - }, - moduleDirectory: 'node_modules' -} -``` - -## resolve.sync(id, opts) - -Synchronously resolve the module path string `id`, returning the result and -throwing an error when `id` can't be resolved. - -options are: - -* opts.basedir - directory to begin resolving from - -* opts.extensions - array of file extensions to search in order - -* opts.readFile - how to read files synchronously - -* opts.isFile - function to synchronously test whether a file exists - -* `opts.packageFilter(pkg, pkgfile)` - transform the parsed package.json -* contents before looking at the "main" field - -* opts.paths - require.paths array to use if nothing is found on the normal -node_modules recursive walk (probably don't use this) - -* opts.moduleDirectory - directory (or directories) in which to recursively look for modules. default: `"node_modules"` - -default `opts` values: - -``` javascript -{ - paths: [], - basedir: __dirname, - extensions: [ '.js' ], - readFileSync: fs.readFileSync, - isFile: function (file) { - try { return fs.statSync(file).isFile() } - catch (e) { return false } - }, - moduleDirectory: 'node_modules' -} -```` - -## resolve.isCore(pkg) - -Return whether a package is in core. - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install resolve -``` - -# license - -MIT diff --git a/node_modules/resolve/test/.eslintrc b/node_modules/resolve/test/.eslintrc deleted file mode 100644 index 4b44622..0000000 --- a/node_modules/resolve/test/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rules": { - "max-nested-callbacks": 0 - } -} diff --git a/node_modules/resolve/test/core.js b/node_modules/resolve/test/core.js deleted file mode 100644 index 1bd0034..0000000 --- a/node_modules/resolve/test/core.js +++ /dev/null @@ -1,29 +0,0 @@ -var test = require('tape'); -var resolve = require('../'); - -test('core modules', function (t) { - t.test('isCore()', function (st) { - st.ok(resolve.isCore('fs')); - st.ok(resolve.isCore('net')); - st.ok(resolve.isCore('http')); - - st.ok(!resolve.isCore('seq')); - st.ok(!resolve.isCore('../')); - st.end(); - }); - - t.test('core list', function (st) { - st.plan(resolve.core.length); - - for (var i = 0; i < resolve.core.length; ++i) { - st.doesNotThrow( - function () { require(resolve.core[i]); }, - 'requiring ' + resolve.core[i] + ' does not throw' - ); - } - - st.end(); - }); - - t.end(); -}); diff --git a/node_modules/resolve/test/dotdot.js b/node_modules/resolve/test/dotdot.js deleted file mode 100644 index 3080665..0000000 --- a/node_modules/resolve/test/dotdot.js +++ /dev/null @@ -1,29 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('dotdot', function (t) { - t.plan(4); - var dir = path.join(__dirname, '/dotdot/abc'); - - resolve('..', { basedir: dir }, function (err, res, pkg) { - t.ifError(err); - t.equal(res, path.join(__dirname, 'dotdot/index.js')); - }); - - resolve('.', { basedir: dir }, function (err, res, pkg) { - t.ifError(err); - t.equal(res, path.join(dir, 'index.js')); - }); -}); - -test('dotdot sync', function (t) { - t.plan(2); - var dir = path.join(__dirname, '/dotdot/abc'); - - var a = resolve.sync('..', { basedir: dir }); - t.equal(a, path.join(__dirname, 'dotdot/index.js')); - - var b = resolve.sync('.', { basedir: dir }); - t.equal(b, path.join(dir, 'index.js')); -}); diff --git a/node_modules/resolve/test/dotdot/abc/index.js b/node_modules/resolve/test/dotdot/abc/index.js deleted file mode 100644 index 67f2534..0000000 --- a/node_modules/resolve/test/dotdot/abc/index.js +++ /dev/null @@ -1,2 +0,0 @@ -var x = require('..'); -console.log(x); diff --git a/node_modules/resolve/test/dotdot/index.js b/node_modules/resolve/test/dotdot/index.js deleted file mode 100644 index 643f9fc..0000000 --- a/node_modules/resolve/test/dotdot/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 'whatever'; diff --git a/node_modules/resolve/test/faulty_basedir.js b/node_modules/resolve/test/faulty_basedir.js deleted file mode 100644 index e20d937..0000000 --- a/node_modules/resolve/test/faulty_basedir.js +++ /dev/null @@ -1,13 +0,0 @@ -var test = require('tape'); -var resolve = require('../'); - -test('faulty basedir must produce error in windows', { skip: process.platform !== 'win32' }, function (t) { - t.plan(1); - - var resolverDir = 'C:\\a\\b\\c\\d'; - - resolve('tape/lib/test.js', { basedir: resolverDir }, function (err, res, pkg) { - t.equal(true, !!err); - }); - -}); diff --git a/node_modules/resolve/test/filter.js b/node_modules/resolve/test/filter.js deleted file mode 100644 index 51a753f..0000000 --- a/node_modules/resolve/test/filter.js +++ /dev/null @@ -1,19 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('filter', function (t) { - t.plan(2); - var dir = path.join(__dirname, 'resolver'); - resolve('./baz', { - basedir: dir, - packageFilter: function (pkg) { - pkg.main = 'doom'; - return pkg; - } - }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'baz/doom.js')); - t.equal(pkg.main, 'doom'); - }); -}); diff --git a/node_modules/resolve/test/filter_sync.js b/node_modules/resolve/test/filter_sync.js deleted file mode 100644 index fd4e97c..0000000 --- a/node_modules/resolve/test/filter_sync.js +++ /dev/null @@ -1,16 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('filter', function (t) { - var dir = path.join(__dirname, 'resolver'); - var res = resolve.sync('./baz', { - basedir: dir, - packageFilter: function (pkg) { - pkg.main = 'doom'; - return pkg; - } - }); - t.equal(res, path.join(dir, 'baz/doom.js')); - t.end(); -}); diff --git a/node_modules/resolve/test/mock.js b/node_modules/resolve/test/mock.js deleted file mode 100644 index a88059d..0000000 --- a/node_modules/resolve/test/mock.js +++ /dev/null @@ -1,143 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('mock', function (t) { - t.plan(8); - - var files = {}; - files[path.resolve('/foo/bar/baz.js')] = 'beep'; - - function opts(basedir) { - return { - basedir: path.resolve(basedir), - isFile: function (file, cb) { - cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file))); - }, - readFile: function (file, cb) { - cb(null, files[path.resolve(file)]); - } - }; - } - - resolve('./baz', opts('/foo/bar'), function (err, res, pkg) { - if (err) return t.fail(err); - t.equal(res, path.resolve('/foo/bar/baz.js')); - t.equal(pkg, undefined); - }); - - resolve('./baz.js', opts('/foo/bar'), function (err, res, pkg) { - if (err) return t.fail(err); - t.equal(res, path.resolve('/foo/bar/baz.js')); - t.equal(pkg, undefined); - }); - - resolve('baz', opts('/foo/bar'), function (err, res) { - t.equal(err.message, "Cannot find module 'baz' from '" + path.resolve('/foo/bar') + "'"); - t.equal(err.code, 'MODULE_NOT_FOUND'); - }); - - resolve('../baz', opts('/foo/bar'), function (err, res) { - t.equal(err.message, "Cannot find module '../baz' from '" + path.resolve('/foo/bar') + "'"); - t.equal(err.code, 'MODULE_NOT_FOUND'); - }); -}); - -test('mock from package', function (t) { - t.plan(8); - - var files = {}; - files[path.resolve('/foo/bar/baz.js')] = 'beep'; - - function opts(basedir) { - return { - basedir: path.resolve(basedir), - isFile: function (file, cb) { - cb(null, Object.prototype.hasOwnProperty.call(files, file)); - }, - 'package': { main: 'bar' }, - readFile: function (file, cb) { - cb(null, files[file]); - } - }; - } - - resolve('./baz', opts('/foo/bar'), function (err, res, pkg) { - if (err) return t.fail(err); - t.equal(res, path.resolve('/foo/bar/baz.js')); - t.equal(pkg && pkg.main, 'bar'); - }); - - resolve('./baz.js', opts('/foo/bar'), function (err, res, pkg) { - if (err) return t.fail(err); - t.equal(res, path.resolve('/foo/bar/baz.js')); - t.equal(pkg && pkg.main, 'bar'); - }); - - resolve('baz', opts('/foo/bar'), function (err, res) { - t.equal(err.message, "Cannot find module 'baz' from '" + path.resolve('/foo/bar') + "'"); - t.equal(err.code, 'MODULE_NOT_FOUND'); - }); - - resolve('../baz', opts('/foo/bar'), function (err, res) { - t.equal(err.message, "Cannot find module '../baz' from '" + path.resolve('/foo/bar') + "'"); - t.equal(err.code, 'MODULE_NOT_FOUND'); - }); -}); - -test('mock package', function (t) { - t.plan(2); - - var files = {}; - files[path.resolve('/foo/node_modules/bar/baz.js')] = 'beep'; - files[path.resolve('/foo/node_modules/bar/package.json')] = JSON.stringify({ - main: './baz.js' - }); - - function opts(basedir) { - return { - basedir: path.resolve(basedir), - isFile: function (file, cb) { - cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file))); - }, - readFile: function (file, cb) { - cb(null, files[path.resolve(file)]); - } - }; - } - - resolve('bar', opts('/foo'), function (err, res, pkg) { - if (err) return t.fail(err); - t.equal(res, path.resolve('/foo/node_modules/bar/baz.js')); - t.equal(pkg && pkg.main, './baz.js'); - }); -}); - -test('mock package from package', function (t) { - t.plan(2); - - var files = {}; - files[path.resolve('/foo/node_modules/bar/baz.js')] = 'beep'; - files[path.resolve('/foo/node_modules/bar/package.json')] = JSON.stringify({ - main: './baz.js' - }); - - function opts(basedir) { - return { - basedir: path.resolve(basedir), - isFile: function (file, cb) { - cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file))); - }, - 'package': { main: 'bar' }, - readFile: function (file, cb) { - cb(null, files[path.resolve(file)]); - } - }; - } - - resolve('bar', opts('/foo'), function (err, res, pkg) { - if (err) return t.fail(err); - t.equal(res, path.resolve('/foo/node_modules/bar/baz.js')); - t.equal(pkg && pkg.main, './baz.js'); - }); -}); diff --git a/node_modules/resolve/test/mock_sync.js b/node_modules/resolve/test/mock_sync.js deleted file mode 100644 index 43af102..0000000 --- a/node_modules/resolve/test/mock_sync.js +++ /dev/null @@ -1,67 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('mock', function (t) { - t.plan(4); - - var files = {}; - files[path.resolve('/foo/bar/baz.js')] = 'beep'; - - function opts(basedir) { - return { - basedir: path.resolve(basedir), - isFile: function (file) { - return Object.prototype.hasOwnProperty.call(files, file); - }, - readFileSync: function (file) { - return files[file]; - } - }; - } - - t.equal( - resolve.sync('./baz', opts('/foo/bar')), - path.resolve('/foo/bar/baz.js') - ); - - t.equal( - resolve.sync('./baz.js', opts('/foo/bar')), - path.resolve('/foo/bar/baz.js') - ); - - t.throws(function () { - resolve.sync('baz', opts('/foo/bar')); - }); - - t.throws(function () { - resolve.sync('../baz', opts('/foo/bar')); - }); -}); - -test('mock package', function (t) { - t.plan(1); - - var files = {}; - files[path.resolve('/foo/node_modules/bar/baz.js')] = 'beep'; - files[path.resolve('/foo/node_modules/bar/package.json')] = JSON.stringify({ - main: './baz.js' - }); - - function opts(basedir) { - return { - basedir: path.resolve(basedir), - isFile: function (file) { - return Object.prototype.hasOwnProperty.call(files, file); - }, - readFileSync: function (file) { - return files[file]; - } - }; - } - - t.equal( - resolve.sync('bar', opts('/foo')), - path.resolve('/foo/node_modules/bar/baz.js') - ); -}); diff --git a/node_modules/resolve/test/module_dir.js b/node_modules/resolve/test/module_dir.js deleted file mode 100644 index b50e5bb..0000000 --- a/node_modules/resolve/test/module_dir.js +++ /dev/null @@ -1,56 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('moduleDirectory strings', function (t) { - t.plan(4); - var dir = path.join(__dirname, 'module_dir'); - var xopts = { - basedir: dir, - moduleDirectory: 'xmodules' - }; - resolve('aaa', xopts, function (err, res, pkg) { - t.ifError(err); - t.equal(res, path.join(dir, '/xmodules/aaa/index.js')); - }); - - var yopts = { - basedir: dir, - moduleDirectory: 'ymodules' - }; - resolve('aaa', yopts, function (err, res, pkg) { - t.ifError(err); - t.equal(res, path.join(dir, '/ymodules/aaa/index.js')); - }); -}); - -test('moduleDirectory array', function (t) { - t.plan(6); - var dir = path.join(__dirname, 'module_dir'); - var aopts = { - basedir: dir, - moduleDirectory: ['xmodules', 'ymodules', 'zmodules'] - }; - resolve('aaa', aopts, function (err, res, pkg) { - t.ifError(err); - t.equal(res, path.join(dir, '/xmodules/aaa/index.js')); - }); - - var bopts = { - basedir: dir, - moduleDirectory: ['zmodules', 'ymodules', 'xmodules'] - }; - resolve('aaa', bopts, function (err, res, pkg) { - t.ifError(err); - t.equal(res, path.join(dir, '/ymodules/aaa/index.js')); - }); - - var copts = { - basedir: dir, - moduleDirectory: ['xmodules', 'ymodules', 'zmodules'] - }; - resolve('bbb', copts, function (err, res, pkg) { - t.ifError(err); - t.equal(res, path.join(dir, '/zmodules/bbb/main.js')); - }); -}); diff --git a/node_modules/resolve/test/module_dir/xmodules/aaa/index.js b/node_modules/resolve/test/module_dir/xmodules/aaa/index.js deleted file mode 100644 index dd7cf7b..0000000 --- a/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = function (x) { return x * 100; }; diff --git a/node_modules/resolve/test/module_dir/ymodules/aaa/index.js b/node_modules/resolve/test/module_dir/ymodules/aaa/index.js deleted file mode 100644 index ef2d4d4..0000000 --- a/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = function (x) { return x + 100; }; diff --git a/node_modules/resolve/test/module_dir/zmodules/bbb/main.js b/node_modules/resolve/test/module_dir/zmodules/bbb/main.js deleted file mode 100644 index e8ba629..0000000 --- a/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = function (n) { return n * 111; }; diff --git a/node_modules/resolve/test/module_dir/zmodules/bbb/package.json b/node_modules/resolve/test/module_dir/zmodules/bbb/package.json deleted file mode 100644 index c13b8cf..0000000 --- a/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "main": "main.js" -} diff --git a/node_modules/resolve/test/node-modules-paths.js b/node_modules/resolve/test/node-modules-paths.js deleted file mode 100644 index aa6d632..0000000 --- a/node_modules/resolve/test/node-modules-paths.js +++ /dev/null @@ -1,94 +0,0 @@ -var test = require('tape'); -var path = require('path'); -var parse = path.parse || require('path-parse'); -var keys = require('object-keys'); - -var nodeModulesPaths = require('../lib/node-modules-paths'); - -var verifyDirs = function verifyDirs(t, start, dirs, moduleDirectories, paths) { - moduleDirectories = [].concat(moduleDirectories || 'node_modules'); - if (!paths) { paths = []; } - - var foundModuleDirs = {}; - var uniqueDirs = {}; - var parsedDirs = {}; - for (var i = 0; i < dirs.length; ++i) { - var parsed = parse(dirs[i]); - if (!foundModuleDirs[parsed.base]) { foundModuleDirs[parsed.base] = 0; } - foundModuleDirs[parsed.base] += 1; - parsedDirs[parsed.dir] = true; - uniqueDirs[dirs[i]] = true; - } - t.equal(keys(parsedDirs).length >= start.split(path.sep).length, true, 'there are >= dirs than "start" has'); - var foundModuleDirNames = keys(foundModuleDirs); - t.deepEqual(foundModuleDirNames, moduleDirectories.concat(paths), 'all desired module dirs were found'); - t.equal(keys(uniqueDirs).length, dirs.length, 'all dirs provided were unique'); - - var counts = {}; - for (var j = 0; j < foundModuleDirNames.length; ++j) { - counts[foundModuleDirs[j]] = true; - } - t.equal(keys(counts).length, 1, 'all found module directories had the same count'); -}; - -test('node-modules-paths', function (t) { - t.test('no options', function (t) { - var start = path.join(__dirname, 'resolver'); - var dirs = nodeModulesPaths(start); - - verifyDirs(t, start, dirs); - - t.end(); - }); - - t.test('empty options', function (t) { - var start = path.join(__dirname, 'resolver'); - var dirs = nodeModulesPaths(start, {}); - - verifyDirs(t, start, dirs); - - t.end(); - }); - - t.test('with paths option', function (t) { - var start = path.join(__dirname, 'resolver'); - var paths = ['a', 'b']; - var dirs = nodeModulesPaths(start, { paths: paths }); - - verifyDirs(t, start, dirs, null, paths); - - t.end(); - }); - - t.test('with moduleDirectory option', function (t) { - var start = path.join(__dirname, 'resolver'); - var moduleDirectory = 'not node modules'; - var dirs = nodeModulesPaths(start, { moduleDirectory: moduleDirectory }); - - verifyDirs(t, start, dirs, moduleDirectory); - - t.end(); - }); - - t.test('with 1 moduleDirectory and paths options', function (t) { - var start = path.join(__dirname, 'resolver'); - var paths = ['a', 'b']; - var moduleDirectory = 'not node modules'; - var dirs = nodeModulesPaths(start, { paths: paths, moduleDirectory: moduleDirectory }); - - verifyDirs(t, start, dirs, moduleDirectory, paths); - - t.end(); - }); - - t.test('with 1+ moduleDirectory and paths options', function (t) { - var start = path.join(__dirname, 'resolver'); - var paths = ['a', 'b']; - var moduleDirectories = ['not node modules', 'other modules']; - var dirs = nodeModulesPaths(start, { paths: paths, moduleDirectory: moduleDirectories }); - - verifyDirs(t, start, dirs, moduleDirectories, paths); - - t.end(); - }); -}); diff --git a/node_modules/resolve/test/node_path.js b/node_modules/resolve/test/node_path.js deleted file mode 100644 index becd0cf..0000000 --- a/node_modules/resolve/test/node_path.js +++ /dev/null @@ -1,49 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('$NODE_PATH', function (t) { - t.plan(4); - - resolve('aaa', { - paths: [ - path.join(__dirname, '/node_path/x'), - path.join(__dirname, '/node_path/y') - ], - basedir: __dirname - }, function (err, res) { - t.equal(res, path.join(__dirname, '/node_path/x/aaa/index.js')); - }); - - resolve('bbb', { - paths: [ - path.join(__dirname, '/node_path/x'), - path.join(__dirname, '/node_path/y') - ], - basedir: __dirname - }, function (err, res) { - t.equal(res, path.join(__dirname, '/node_path/y/bbb/index.js')); - }); - - resolve('ccc', { - paths: [ - path.join(__dirname, '/node_path/x'), - path.join(__dirname, '/node_path/y') - ], - basedir: __dirname - }, function (err, res) { - t.equal(res, path.join(__dirname, '/node_path/x/ccc/index.js')); - }); - - // ensure that relative paths still resolve against the - // regular `node_modules` correctly - resolve('tap', { - paths: [ - 'node_path' - ], - basedir: 'node_path/x' - }, function (err, res) { - var root = require('tap/package.json').main; - t.equal(res, path.resolve(__dirname, '..', 'node_modules/tap', root)); - }); -}); diff --git a/node_modules/resolve/test/node_path/x/aaa/index.js b/node_modules/resolve/test/node_path/x/aaa/index.js deleted file mode 100644 index ad70d0b..0000000 --- a/node_modules/resolve/test/node_path/x/aaa/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 'A'; diff --git a/node_modules/resolve/test/node_path/x/ccc/index.js b/node_modules/resolve/test/node_path/x/ccc/index.js deleted file mode 100644 index a64132e..0000000 --- a/node_modules/resolve/test/node_path/x/ccc/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 'C'; diff --git a/node_modules/resolve/test/node_path/y/bbb/index.js b/node_modules/resolve/test/node_path/y/bbb/index.js deleted file mode 100644 index 4d0f32e..0000000 --- a/node_modules/resolve/test/node_path/y/bbb/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 'B'; diff --git a/node_modules/resolve/test/node_path/y/ccc/index.js b/node_modules/resolve/test/node_path/y/ccc/index.js deleted file mode 100644 index 793315e..0000000 --- a/node_modules/resolve/test/node_path/y/ccc/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 'CY'; diff --git a/node_modules/resolve/test/nonstring.js b/node_modules/resolve/test/nonstring.js deleted file mode 100644 index ef63c40..0000000 --- a/node_modules/resolve/test/nonstring.js +++ /dev/null @@ -1,9 +0,0 @@ -var test = require('tape'); -var resolve = require('../'); - -test('nonstring', function (t) { - t.plan(1); - resolve(555, function (err, res, pkg) { - t.ok(err); - }); -}); diff --git a/node_modules/resolve/test/pathfilter.js b/node_modules/resolve/test/pathfilter.js deleted file mode 100644 index 733045a..0000000 --- a/node_modules/resolve/test/pathfilter.js +++ /dev/null @@ -1,42 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('#62: deep module references and the pathFilter', function (t) { - t.plan(9); - - var resolverDir = path.join(__dirname, '/pathfilter/deep_ref'); - var pathFilter = function (pkg, x, remainder) { - t.equal(pkg.version, '1.2.3'); - t.equal(x, path.join(resolverDir, 'node_modules/deep/ref')); - t.equal(remainder, 'ref'); - return 'alt'; - }; - - resolve('deep/ref', { basedir: resolverDir }, function (err, res, pkg) { - if (err) t.fail(err); - - t.equal(pkg.version, '1.2.3'); - t.equal(res, path.join(resolverDir, 'node_modules/deep/ref.js')); - }); - - resolve( - 'deep/deeper/ref', - { basedir: resolverDir }, - function (err, res, pkg) { - if (err) t.fail(err); - t.notEqual(pkg, undefined); - t.equal(pkg.version, '1.2.3'); - t.equal(res, path.join(resolverDir, 'node_modules/deep/deeper/ref.js')); - } - ); - - resolve( - 'deep/ref', - { basedir: resolverDir, pathFilter: pathFilter }, - function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(resolverDir, 'node_modules/deep/alt.js')); - } - ); -}); diff --git a/node_modules/resolve/test/pathfilter/deep_ref/main.js b/node_modules/resolve/test/pathfilter/deep_ref/main.js deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/resolve/test/precedence.js b/node_modules/resolve/test/precedence.js deleted file mode 100644 index 9494e97..0000000 --- a/node_modules/resolve/test/precedence.js +++ /dev/null @@ -1,23 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('precedence', function (t) { - t.plan(3); - var dir = path.join(__dirname, 'precedence/aaa'); - - resolve('./', { basedir: dir }, function (err, res, pkg) { - t.ifError(err); - t.equal(res, path.join(dir, 'index.js')); - t.equal(pkg.name, 'resolve'); - }); -}); - -test('./ should not load ${dir}.js', function (t) { - t.plan(1); - var dir = path.join(__dirname, 'precedence/bbb'); - - resolve('./', { basedir: dir }, function (err, res, pkg) { - t.ok(err); - }); -}); diff --git a/node_modules/resolve/test/precedence/aaa.js b/node_modules/resolve/test/precedence/aaa.js deleted file mode 100644 index b83a3e7..0000000 --- a/node_modules/resolve/test/precedence/aaa.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 'wtf'; diff --git a/node_modules/resolve/test/precedence/aaa/index.js b/node_modules/resolve/test/precedence/aaa/index.js deleted file mode 100644 index e0f8f6a..0000000 --- a/node_modules/resolve/test/precedence/aaa/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 'okok'; diff --git a/node_modules/resolve/test/precedence/aaa/main.js b/node_modules/resolve/test/precedence/aaa/main.js deleted file mode 100644 index 93542a9..0000000 --- a/node_modules/resolve/test/precedence/aaa/main.js +++ /dev/null @@ -1 +0,0 @@ -console.log(require('./')); diff --git a/node_modules/resolve/test/precedence/bbb.js b/node_modules/resolve/test/precedence/bbb.js deleted file mode 100644 index 2298f47..0000000 --- a/node_modules/resolve/test/precedence/bbb.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = '>_<'; diff --git a/node_modules/resolve/test/precedence/bbb/main.js b/node_modules/resolve/test/precedence/bbb/main.js deleted file mode 100644 index 716b81d..0000000 --- a/node_modules/resolve/test/precedence/bbb/main.js +++ /dev/null @@ -1 +0,0 @@ -console.log(require('./')); // should throw diff --git a/node_modules/resolve/test/resolver.js b/node_modules/resolve/test/resolver.js deleted file mode 100644 index 00836b4..0000000 --- a/node_modules/resolve/test/resolver.js +++ /dev/null @@ -1,280 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('async foo', function (t) { - t.plan(10); - var dir = path.join(__dirname, 'resolver'); - - resolve('./foo', { basedir: dir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'foo.js')); - t.equal(pkg.name, 'resolve'); - }); - - resolve('./foo.js', { basedir: dir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'foo.js')); - t.equal(pkg.name, 'resolve'); - }); - - resolve('./foo', { basedir: dir, 'package': { main: 'resolver' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'foo.js')); - t.equal(pkg.main, 'resolver'); - }); - - resolve('./foo.js', { basedir: dir, 'package': { main: 'resolver' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'foo.js')); - t.equal(pkg.main, 'resolver'); - }); - - resolve('foo', { basedir: dir }, function (err) { - t.equal(err.message, "Cannot find module 'foo' from '" + path.resolve(dir) + "'"); - t.equal(err.code, 'MODULE_NOT_FOUND'); - }); -}); - -test('bar', function (t) { - t.plan(6); - var dir = path.join(__dirname, 'resolver'); - - resolve('foo', { basedir: dir + '/bar' }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'bar/node_modules/foo/index.js')); - t.equal(pkg, undefined); - }); - - resolve('foo', { basedir: dir + '/bar' }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'bar/node_modules/foo/index.js')); - t.equal(pkg, undefined); - }); - - resolve('foo', { basedir: dir + '/bar', 'package': { main: 'bar' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'bar/node_modules/foo/index.js')); - t.equal(pkg, undefined); - }); -}); - -test('baz', function (t) { - t.plan(4); - var dir = path.join(__dirname, 'resolver'); - - resolve('./baz', { basedir: dir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'baz/quux.js')); - t.equal(pkg.main, 'quux.js'); - }); - - resolve('./baz', { basedir: dir, 'package': { main: 'resolver' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'baz/quux.js')); - t.equal(pkg.main, 'quux.js'); - }); -}); - -test('biz', function (t) { - t.plan(24); - var dir = path.join(__dirname, 'resolver/biz/node_modules'); - - resolve('./grux', { basedir: dir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'grux/index.js')); - t.equal(pkg, undefined); - }); - - resolve('./grux', { basedir: dir, 'package': { main: 'biz' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'grux/index.js')); - t.equal(pkg.main, 'biz'); - }); - - resolve('./garply', { basedir: dir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'garply/lib/index.js')); - t.equal(pkg.main, './lib'); - }); - - resolve('./garply', { basedir: dir, 'package': { main: 'biz' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'garply/lib/index.js')); - t.equal(pkg.main, './lib'); - }); - - resolve('tiv', { basedir: dir + '/grux' }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'tiv/index.js')); - t.equal(pkg, undefined); - }); - - resolve('tiv', { basedir: dir + '/grux', 'package': { main: 'grux' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'tiv/index.js')); - t.equal(pkg, undefined); - }); - - resolve('tiv', { basedir: dir + '/garply' }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'tiv/index.js')); - t.equal(pkg, undefined); - }); - - resolve('tiv', { basedir: dir + '/garply', 'package': { main: './lib' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'tiv/index.js')); - t.equal(pkg, undefined); - }); - - resolve('grux', { basedir: dir + '/tiv' }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'grux/index.js')); - t.equal(pkg, undefined); - }); - - resolve('grux', { basedir: dir + '/tiv', 'package': { main: 'tiv' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'grux/index.js')); - t.equal(pkg, undefined); - }); - - resolve('garply', { basedir: dir + '/tiv' }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'garply/lib/index.js')); - t.equal(pkg.main, './lib'); - }); - - resolve('garply', { basedir: dir + '/tiv', 'package': { main: 'tiv' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'garply/lib/index.js')); - t.equal(pkg.main, './lib'); - }); -}); - -test('quux', function (t) { - t.plan(2); - var dir = path.join(__dirname, 'resolver/quux'); - - resolve('./foo', { basedir: dir, 'package': { main: 'quux' } }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'foo/index.js')); - t.equal(pkg.main, 'quux'); - }); -}); - -test('normalize', function (t) { - t.plan(2); - var dir = path.join(__dirname, 'resolver/biz/node_modules/grux'); - - resolve('../grux', { basedir: dir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'index.js')); - t.equal(pkg, undefined); - }); -}); - -test('cup', function (t) { - t.plan(4); - var dir = path.join(__dirname, 'resolver'); - - resolve('./cup', { basedir: dir, extensions: ['.js', '.coffee'] }, function (err, res) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'cup.coffee')); - }); - - resolve('./cup.coffee', { basedir: dir }, function (err, res) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'cup.coffee')); - }); - - resolve('./cup', { basedir: dir, extensions: ['.js'] }, function (err, res) { - t.equal(err.message, "Cannot find module './cup' from '" + path.resolve(dir) + "'"); - t.equal(err.code, 'MODULE_NOT_FOUND'); - }); -}); - -test('mug', function (t) { - t.plan(3); - var dir = path.join(__dirname, 'resolver'); - - resolve('./mug', { basedir: dir }, function (err, res) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'mug.js')); - }); - - resolve('./mug', { basedir: dir, extensions: ['.coffee', '.js'] }, function (err, res) { - if (err) t.fail(err); - t.equal(res, path.join(dir, '/mug.coffee')); - }); - - resolve('./mug', { basedir: dir, extensions: ['.js', '.coffee'] }, function (err, res) { - t.equal(res, path.join(dir, '/mug.js')); - }); -}); - -test('other path', function (t) { - t.plan(6); - var resolverDir = path.join(__dirname, 'resolver'); - var dir = path.join(resolverDir, 'bar'); - var otherDir = path.join(resolverDir, 'other_path'); - - resolve('root', { basedir: dir, paths: [otherDir] }, function (err, res) { - if (err) t.fail(err); - t.equal(res, path.join(resolverDir, 'other_path/root.js')); - }); - - resolve('lib/other-lib', { basedir: dir, paths: [otherDir] }, function (err, res) { - if (err) t.fail(err); - t.equal(res, path.join(resolverDir, 'other_path/lib/other-lib.js')); - }); - - resolve('root', { basedir: dir }, function (err, res) { - t.equal(err.message, "Cannot find module 'root' from '" + path.resolve(dir) + "'"); - t.equal(err.code, 'MODULE_NOT_FOUND'); - }); - - resolve('zzz', { basedir: dir, paths: [otherDir] }, function (err, res) { - t.equal(err.message, "Cannot find module 'zzz' from '" + path.resolve(dir) + "'"); - t.equal(err.code, 'MODULE_NOT_FOUND'); - }); -}); - -test('incorrect main', function (t) { - t.plan(1); - - var resolverDir = path.join(__dirname, 'resolver'); - var dir = path.join(resolverDir, 'incorrect_main'); - - resolve('./incorrect_main', { basedir: resolverDir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(dir, 'index.js')); - }); -}); - -test('without basedir', function (t) { - t.plan(1); - - var dir = path.join(__dirname, 'resolver/without_basedir'); - var tester = require(path.join(dir, 'main.js')); - - tester(t, function (err, res, pkg) { - if (err) { - t.fail(err); - } else { - t.equal(res, path.join(dir, 'node_modules/mymodule.js')); - } - }); -}); - -test('#25: node modules with the same name as node stdlib modules', function (t) { - t.plan(1); - - var resolverDir = path.join(__dirname, 'resolver/punycode'); - - resolve('punycode', { basedir: resolverDir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(resolverDir, 'node_modules/punycode/index.js')); - }); -}); diff --git a/node_modules/resolve/test/resolver/baz/doom.js b/node_modules/resolve/test/resolver/baz/doom.js deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/resolve/test/resolver/baz/package.json b/node_modules/resolve/test/resolver/baz/package.json deleted file mode 100644 index c41e4db..0000000 --- a/node_modules/resolve/test/resolver/baz/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "main": "quux.js" -} diff --git a/node_modules/resolve/test/resolver/baz/quux.js b/node_modules/resolve/test/resolver/baz/quux.js deleted file mode 100644 index bd816ea..0000000 --- a/node_modules/resolve/test/resolver/baz/quux.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 1; diff --git a/node_modules/resolve/test/resolver/cup.coffee b/node_modules/resolve/test/resolver/cup.coffee deleted file mode 100644 index 8b13789..0000000 --- a/node_modules/resolve/test/resolver/cup.coffee +++ /dev/null @@ -1 +0,0 @@ - diff --git a/node_modules/resolve/test/resolver/foo.js b/node_modules/resolve/test/resolver/foo.js deleted file mode 100644 index bd816ea..0000000 --- a/node_modules/resolve/test/resolver/foo.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 1; diff --git a/node_modules/resolve/test/resolver/incorrect_main/index.js b/node_modules/resolve/test/resolver/incorrect_main/index.js deleted file mode 100644 index bc1fb0a..0000000 --- a/node_modules/resolve/test/resolver/incorrect_main/index.js +++ /dev/null @@ -1,2 +0,0 @@ -// this is the actual main file 'index.js', not 'wrong.js' like the package.json would indicate -module.exports = 1; diff --git a/node_modules/resolve/test/resolver/incorrect_main/package.json b/node_modules/resolve/test/resolver/incorrect_main/package.json deleted file mode 100644 index b718804..0000000 --- a/node_modules/resolve/test/resolver/incorrect_main/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "main": "wrong.js" -} diff --git a/node_modules/resolve/test/resolver/mug.coffee b/node_modules/resolve/test/resolver/mug.coffee deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/resolve/test/resolver/mug.js b/node_modules/resolve/test/resolver/mug.js deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/resolve/test/resolver/other_path/lib/other-lib.js b/node_modules/resolve/test/resolver/other_path/lib/other-lib.js deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/resolve/test/resolver/other_path/root.js b/node_modules/resolve/test/resolver/other_path/root.js deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/resolve/test/resolver/quux/foo/index.js b/node_modules/resolve/test/resolver/quux/foo/index.js deleted file mode 100644 index bd816ea..0000000 --- a/node_modules/resolve/test/resolver/quux/foo/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = 1; diff --git a/node_modules/resolve/test/resolver/without_basedir/main.js b/node_modules/resolve/test/resolver/without_basedir/main.js deleted file mode 100644 index 5b31975..0000000 --- a/node_modules/resolve/test/resolver/without_basedir/main.js +++ /dev/null @@ -1,5 +0,0 @@ -var resolve = require('../../../'); - -module.exports = function (t, cb) { - resolve('mymodule', null, cb); -}; diff --git a/node_modules/resolve/test/resolver_sync.js b/node_modules/resolve/test/resolver_sync.js deleted file mode 100644 index ac9c758..0000000 --- a/node_modules/resolve/test/resolver_sync.js +++ /dev/null @@ -1,206 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var resolve = require('../'); - -test('foo', function (t) { - var dir = path.join(__dirname, 'resolver'); - - t.equal( - resolve.sync('./foo', { basedir: dir }), - path.join(dir, 'foo.js') - ); - - t.equal( - resolve.sync('./foo.js', { basedir: dir }), - path.join(dir, 'foo.js') - ); - - t.throws(function () { - resolve.sync('foo', { basedir: dir }); - }); - - t.end(); -}); - -test('bar', function (t) { - var dir = path.join(__dirname, 'resolver'); - - t.equal( - resolve.sync('foo', { basedir: path.join(dir, 'bar') }), - path.join(dir, 'bar/node_modules/foo/index.js') - ); - t.end(); -}); - -test('baz', function (t) { - var dir = path.join(__dirname, 'resolver'); - - t.equal( - resolve.sync('./baz', { basedir: dir }), - path.join(dir, 'baz/quux.js') - ); - t.end(); -}); - -test('biz', function (t) { - var dir = path.join(__dirname, 'resolver/biz/node_modules'); - t.equal( - resolve.sync('./grux', { basedir: dir }), - path.join(dir, 'grux/index.js') - ); - - t.equal( - resolve.sync('tiv', { basedir: path.join(dir, 'grux') }), - path.join(dir, 'tiv/index.js') - ); - - t.equal( - resolve.sync('grux', { basedir: path.join(dir, 'tiv') }), - path.join(dir, 'grux/index.js') - ); - t.end(); -}); - -test('normalize', function (t) { - var dir = path.join(__dirname, 'resolver/biz/node_modules/grux'); - t.equal( - resolve.sync('../grux', { basedir: dir }), - path.join(dir, 'index.js') - ); - t.end(); -}); - -test('cup', function (t) { - var dir = path.join(__dirname, 'resolver'); - t.equal( - resolve.sync('./cup', { - basedir: dir, - extensions: ['.js', '.coffee'] - }), - path.join(dir, 'cup.coffee') - ); - - t.equal( - resolve.sync('./cup.coffee', { basedir: dir }), - path.join(dir, 'cup.coffee') - ); - - t.throws(function () { - resolve.sync('./cup', { - basedir: dir, - extensions: ['.js'] - }); - }); - - t.end(); -}); - -test('mug', function (t) { - var dir = path.join(__dirname, 'resolver'); - t.equal( - resolve.sync('./mug', { basedir: dir }), - path.join(dir, 'mug.js') - ); - - t.equal( - resolve.sync('./mug', { - basedir: dir, - extensions: ['.coffee', '.js'] - }), - path.join(dir, 'mug.coffee') - ); - - t.equal( - resolve.sync('./mug', { - basedir: dir, - extensions: ['.js', '.coffee'] - }), - path.join(dir, 'mug.js') - ); - - t.end(); -}); - -test('other path', function (t) { - var resolverDir = path.join(__dirname, 'resolver'); - var dir = path.join(resolverDir, 'bar'); - var otherDir = path.join(resolverDir, 'other_path'); - - t.equal( - resolve.sync('root', { - basedir: dir, - paths: [otherDir] - }), - path.join(resolverDir, 'other_path/root.js') - ); - - t.equal( - resolve.sync('lib/other-lib', { - basedir: dir, - paths: [otherDir] - }), - path.join(resolverDir, 'other_path/lib/other-lib.js') - ); - - t.throws(function () { - resolve.sync('root', { basedir: dir }); - }); - - t.throws(function () { - resolve.sync('zzz', { - basedir: dir, - paths: [otherDir] - }); - }); - - t.end(); -}); - -test('incorrect main', function (t) { - var resolverDir = path.join(__dirname, 'resolver'); - var dir = path.join(resolverDir, 'incorrect_main'); - - t.equal( - resolve.sync('./incorrect_main', { basedir: resolverDir }), - path.join(dir, 'index.js') - ); - - t.end(); -}); - -test('#25: node modules with the same name as node stdlib modules', function (t) { - var resolverDir = path.join(__dirname, 'resolver/punycode'); - - t.equal( - resolve.sync('punycode', { basedir: resolverDir }), - path.join(resolverDir, 'node_modules/punycode/index.js') - ); - - t.end(); -}); - -var stubStatSync = function stubStatSync(fn) { - var fs = require('fs'); - var statSync = fs.statSync; - try { - fs.statSync = function () { - throw new EvalError('Unknown Error'); - }; - return fn(); - } finally { - fs.statSync = statSync; - } -}; - -test('#79 - re-throw non ENOENT errors from stat', function (t) { - var dir = path.join(__dirname, 'resolver'); - - stubStatSync(function () { - t.throws(function () { - resolve.sync('foo', { basedir: dir }); - }, /Unknown Error/); - }); - - t.end(); -}); - diff --git a/node_modules/resolve/test/subdirs.js b/node_modules/resolve/test/subdirs.js deleted file mode 100644 index b7b8450..0000000 --- a/node_modules/resolve/test/subdirs.js +++ /dev/null @@ -1,13 +0,0 @@ -var test = require('tape'); -var resolve = require('../'); -var path = require('path'); - -test('subdirs', function (t) { - t.plan(2); - - var dir = path.join(__dirname, '/subdirs'); - resolve('a/b/c/x.json', { basedir: dir }, function (err, res) { - t.ifError(err); - t.equal(res, path.join(dir, 'node_modules/a/b/c/x.json')); - }); -}); diff --git a/node_modules/restore-cursor/index.js b/node_modules/restore-cursor/index.js deleted file mode 100644 index c3da545..0000000 --- a/node_modules/restore-cursor/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; -var onetime = require('onetime'); -var exitHook = require('exit-hook'); - -module.exports = onetime(function () { - exitHook(function () { - process.stdout.write('\u001b[?25h'); - }); -}); diff --git a/node_modules/restore-cursor/license b/node_modules/restore-cursor/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/restore-cursor/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/restore-cursor/package.json b/node_modules/restore-cursor/package.json deleted file mode 100644 index bb662dd..0000000 --- a/node_modules/restore-cursor/package.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "restore-cursor@^1.0.1", - "scope": null, - "escapedName": "restore-cursor", - "name": "restore-cursor", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/cli-cursor" - ] - ], - "_from": "restore-cursor@>=1.0.1 <2.0.0", - "_id": "restore-cursor@1.0.1", - "_inCache": true, - "_location": "/restore-cursor", - "_nodeVersion": "4.1.0", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.14.3", - "_phantomChildren": {}, - "_requested": { - "raw": "restore-cursor@^1.0.1", - "scope": null, - "escapedName": "restore-cursor", - "name": "restore-cursor", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/cli-cursor" - ], - "_resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", - "_shasum": "34661f46886327fed2991479152252df92daa541", - "_shrinkwrap": null, - "_spec": "restore-cursor@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/cli-cursor", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/restore-cursor/issues" - }, - "dependencies": { - "exit-hook": "^1.0.0", - "onetime": "^1.0.0" - }, - "description": "Gracefully restore the CLI cursor on exit", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "34661f46886327fed2991479152252df92daa541", - "tarball": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "91542e5be16d7ccda8e42a63d56cc783d2cfaba2", - "homepage": "https://github.com/sindresorhus/restore-cursor#readme", - "keywords": [ - "exit", - "quit", - "process", - "graceful", - "shutdown", - "sigterm", - "sigint", - "terminate", - "kill", - "stop", - "cli", - "cursor", - "ansi", - "show", - "term", - "terminal", - "console", - "tty", - "shell", - "command-line" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "restore-cursor", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/restore-cursor.git" - }, - "scripts": {}, - "version": "1.0.1" -} diff --git a/node_modules/restore-cursor/readme.md b/node_modules/restore-cursor/readme.md deleted file mode 100644 index be08560..0000000 --- a/node_modules/restore-cursor/readme.md +++ /dev/null @@ -1,25 +0,0 @@ -# restore-cursor - -> Gracefully restore the CLI cursor on exit - -Prevent the cursor you've hidden interactively to remain hidden if the process crashes. - - -## Install - -```sh -$ npm install --save restore-cursor -``` - - -## Usage - -```js -var restoreCursor = require('restore-cursor'); -restoreCursor(); -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/rework-import/CHANGELOG.md b/node_modules/rework-import/CHANGELOG.md deleted file mode 100644 index c85aeb9..0000000 --- a/node_modules/rework-import/CHANGELOG.md +++ /dev/null @@ -1,50 +0,0 @@ -# 2.0.0 / 2014-11-27 - -* Use `url-regex` to check for @imports containing URLs -* Update `parse-import` to `2.0.0` -* Major improvements to code and tests - -# 1.2.0 / 2014-07-04 - -* Update `css` to `2.0.0` ([ref](https://github.com/segmentio/myth/issues/86)) - -# 1.1.3 / 2014-06-27 - -* Fix a path stack issue - -# 1.1.2 / 2014-06-26 - -* Drop graceful-fs to allow browser usage ([ref](https://github.com/segmentio/myth/issues/76)) - -# 1.1.1 / 2014-06-26 - -* Ignore protocol base URL - -# 1.1.0 / 2014-06-25 - -* Better automatic path (using rework/css.parse source option) -* Better stack trace -* `transform` option (mainly to use [`css-whitespace`](https://github.com/reworkcss/css-whitespace)) - -# 1.0.0 / 2014-06-14 - -Merge with [rework-inline](https://www.npmjs.org/package/rework-inline) bring the following: - -* Support media queries -* Add encoding option -* Use [find-file](https://www.npmjs.org/package/find-file) to lookup imports -* Automated tests -* Relative `@import` -* Better error reporting - -# 0.0.3 / 2013-08-07 - -* Fix unused referenced package - -# 0.0.2 / 2013-08-07 - -* Allow nested imports - -# 0.0.1 / 2013-08-06 - -Initial release diff --git a/node_modules/rework-import/LICENSE.md b/node_modules/rework-import/LICENSE.md deleted file mode 100644 index 9c652c3..0000000 --- a/node_modules/rework-import/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Jason Campbell and Kevin Mårtensson - -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/rework-import/README.md b/node_modules/rework-import/README.md deleted file mode 100644 index 21d0e16..0000000 --- a/node_modules/rework-import/README.md +++ /dev/null @@ -1,81 +0,0 @@ -# rework-import [![Build Status](http://img.shields.io/travis/reworkcss/rework-import.svg?style=flat)](https://travis-ci.org/reworkcss/rework-import) - -> Import stylesheets using `@import` and an optional media query - - -## Install - -```bash -$ npm install --save rework-import -``` - - -## Usage - -```js -var data = require('fs').readFileSync('index.css'); -var imprt = require('rework-import'); -var rework = require('rework'); - -rework(data) - .use(imprt({path: 'app/stylesheets'})) - .toString(); -``` - - -## Options - -### encoding - -Type: `String` -Default: `utf8` - -Use if your CSS is encoded in anything other than `UTF-8`. - -### path - -Type: `Array|String` -Default: `process.cwd()` or `__dirname` of [the rework source](https://github.com/reworkcss/css#cssparsecode-options) - -A string or an array of paths in where to look for files. - -_Note: nested `@import` will additionally benefit of the relative dirname of imported files._ - -### transform - -Type: `Function` - -A function to transform the content of imported files. Takes one argument and should return the modified content. Useful if you use [`css-whitespace`](https://github.com/reworkcss/css-whitespace). - -## Example - -```css -@import 'foo.css' (min-width: 25em); - -body { - background: black; -} -``` - -yields: - -```css -@media (min-width: 25em) { - body { - background: red; - } - - h1 { - color: grey; - } -} - -body { - background: black; -} -``` - - -## License - -MIT © [Jason Campbell](https://github.com/jxson) and [Kevin Mårtensson](http://github.com/kevva) diff --git a/node_modules/rework-import/index.js b/node_modules/rework-import/index.js deleted file mode 100644 index be7f38d..0000000 --- a/node_modules/rework-import/index.js +++ /dev/null @@ -1,194 +0,0 @@ -'use strict'; -var fs = require('fs'); -var path = require('path'); -var css = require('css'); -var globby = require('globby'); -var parse = require('parse-import'); -var urlRegex = require('url-regex'); - -/** - * Get options - * - * @param {Array} rules - * @param {Object} opts - * @api private - */ - -function getOptions(rules, opts) { - var dir; - var obj = { - source: opts.source, - transform: opts.transform || function (val) { - return val; - } - }; - - obj.path = opts.path || []; - obj.path = Array.isArray(obj.path) ? obj.path : [obj.path]; - - if (rules.length && rules[0].position && rules[0].position.source) { - dir = path.dirname(rules[0].position.source); - } - - if (dir && obj.path.indexOf(dir) === -1) { - obj.path.unshift(dir); - } - - if (!obj.path.length) { - obj.path.push(process.cwd()); - } - - return obj; -} - -/** - * Create error - * - * @param {String} file - * @param {String} src - * @param {Array} paths - * @api private - */ - -function createError(file, src, paths) { - var err = ['Failed to find ' + file]; - - if (src) { - err.push('from ' + src); - } - - err.push([ - 'in [', - ' ' + paths.join(',\n '), - ']' - ].join('\n')); - - return err.join(' '); -} - -/** - * Create bad import rule error - * - * @param {String} rule - * @api private - */ - -function createImportError(rule) { - var url = rule.import ? rule.import.replace(/\r?\n/g, '\\n') : ''; - var err = ['Bad import url: @import ' + url]; - - if (rule.position) { - err.push(' starting at line ' + rule.position.start.line + ' column ' + rule.position.start.column); - err.push(' ending at line ' + rule.position.end.line + ' column ' + rule.position.end.column); - - if (rule.position.source) { - err.push(' in ' + rule.position.source); - } - } - - return err.join('\n'); - } - -/** - * Check if a file exists - * - * @param {String} file - * @param {String} src - * @param {Object} opts - * @api private - */ - -function exists(file, src, opts) { - var files = opts.path.map(function (dir) { - return path.join(dir, file); - }); - - files = globby.sync(files); - - if (!files.length) { - throw new Error(createError(file, src, opts.path)); - } - - return files[0]; -} - -/** - * Read the contents of a file - * - * @param {String} file - * @param {Object} opts - * @api private - */ - -function read(file, opts) { - var encoding = opts.encoding || 'utf8'; - var data = opts.transform(fs.readFileSync(file, encoding)); - return css.parse(data, {source: file}).stylesheet; -} - -/** - * Run - * - * @param {Object} style - * @param {Object} opts - * @api private - */ - -function run(style, opts) { - opts = getOptions(style.rules, opts || {}); - - var rules = style.rules || []; - var ret = []; - - rules.forEach(function (rule) { - if (rule.type !== 'import') { - ret.push(rule); - return; - } - - var importRule = '@import ' + rule.import + ';'; - var data = parse(importRule)[0]; - var pos = rule.position ? rule.position.source : null; - - if (!data) { - throw Error(createImportError(rule)); - } - - if (urlRegex({ exact: true }).test(data.path)) { - ret.push(rule); - return; - } - - opts.source = exists(data.path, pos, opts); - - if (opts.path.indexOf(path.dirname(opts.source)) === -1) { - opts.path.unshift(path.dirname(opts.source)); - } - - var content = read(opts.source, opts); - run(content, opts); - - if (!data.condition || !data.condition.length) { - ret = ret.concat(content.rules); - return; - } - - ret.push({ - media: data.condition, - rules: content.rules, - type: 'media' - }); - }); - - style.rules = ret; -} - -/** - * Module exports - */ - -module.exports = function (opts) { - return function (style) { - run(style, opts); - }; -}; diff --git a/node_modules/rework-import/node_modules/glob/LICENSE b/node_modules/rework-import/node_modules/glob/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/rework-import/node_modules/glob/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/rework-import/node_modules/glob/README.md b/node_modules/rework-import/node_modules/glob/README.md deleted file mode 100644 index 063cf95..0000000 --- a/node_modules/rework-import/node_modules/glob/README.md +++ /dev/null @@ -1,377 +0,0 @@ -[![Build Status](https://travis-ci.org/isaacs/node-glob.svg?branch=master)](https://travis-ci.org/isaacs/node-glob/) [![Dependency Status](https://david-dm.org/isaacs/node-glob.svg)](https://david-dm.org/isaacs/node-glob) [![devDependency Status](https://david-dm.org/isaacs/node-glob/dev-status.svg)](https://david-dm.org/isaacs/node-glob#info=devDependencies) [![optionalDependency Status](https://david-dm.org/isaacs/node-glob/optional-status.svg)](https://david-dm.org/isaacs/node-glob#info=optionalDependencies) - -# Glob - -Match files using the patterns the shell uses, like stars and stuff. - -This is a glob implementation in JavaScript. It uses the `minimatch` -library to do its matching. - -![](oh-my-glob.gif) - -## Usage - -```javascript -var glob = require("glob") - -// options is optional -glob("**/*.js", options, function (er, files) { - // files is an array of filenames. - // If the `nonull` option is set, and nothing - // was found, then files is ["**/*.js"] - // er is an error object or null. -}) -``` - -## Glob Primer - -"Globs" are the patterns you type when you do stuff like `ls *.js` on -the command line, or put `build/*` in a `.gitignore` file. - -Before parsing the path part patterns, braced sections are expanded -into a set. Braced sections start with `{` and end with `}`, with any -number of comma-delimited sections within. Braced sections may contain -slash characters, so `a{/b/c,bcd}` would expand into `a/b/c` and `abcd`. - -The following characters have special magic meaning when used in a -path portion: - -* `*` Matches 0 or more characters in a single path portion -* `?` Matches 1 character -* `[...]` Matches a range of characters, similar to a RegExp range. - If the first character of the range is `!` or `^` then it matches - any character not in the range. -* `!(pattern|pattern|pattern)` Matches anything that does not match - any of the patterns provided. -* `?(pattern|pattern|pattern)` Matches zero or one occurrence of the - patterns provided. -* `+(pattern|pattern|pattern)` Matches one or more occurrences of the - patterns provided. -* `*(a|b|c)` Matches zero or more occurrences of the patterns provided -* `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns - provided -* `**` If a "globstar" is alone in a path portion, then it matches - zero or more directories and subdirectories searching for matches. - It does not crawl symlinked directories. - -### Dots - -If a file or directory path portion has a `.` as the first character, -then it will not match any glob pattern unless that pattern's -corresponding path part also has a `.` as its first character. - -For example, the pattern `a/.*/c` would match the file at `a/.b/c`. -However the pattern `a/*/c` would not, because `*` does not start with -a dot character. - -You can make glob treat dots as normal characters by setting -`dot:true` in the options. - -### Basename Matching - -If you set `matchBase:true` in the options, and the pattern has no -slashes in it, then it will seek for any file anywhere in the tree -with a matching basename. For example, `*.js` would match -`test/simple/basic.js`. - -### Negation - -The intent for negation would be for a pattern starting with `!` to -match everything that *doesn't* match the supplied pattern. However, -the implementation is weird, and for the time being, this should be -avoided. The behavior is deprecated in version 5, and will be removed -entirely in version 6. - -### Empty Sets - -If no matching files are found, then an empty array is returned. This -differs from the shell, where the pattern itself is returned. For -example: - - $ echo a*s*d*f - a*s*d*f - -To get the bash-style behavior, set the `nonull:true` in the options. - -### See Also: - -* `man sh` -* `man bash` (Search for "Pattern Matching") -* `man 3 fnmatch` -* `man 5 gitignore` -* [minimatch documentation](https://github.com/isaacs/minimatch) - -## glob.hasMagic(pattern, [options]) - -Returns `true` if there are any special characters in the pattern, and -`false` otherwise. - -Note that the options affect the results. If `noext:true` is set in -the options object, then `+(a|b)` will not be considered a magic -pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}` -then that is considered magical, unless `nobrace:true` is set in the -options. - -## glob(pattern, [options], cb) - -* `pattern` {String} Pattern to be matched -* `options` {Object} -* `cb` {Function} - * `err` {Error | null} - * `matches` {Array} filenames found matching the pattern - -Perform an asynchronous glob search. - -## glob.sync(pattern, [options]) - -* `pattern` {String} Pattern to be matched -* `options` {Object} -* return: {Array} filenames found matching the pattern - -Perform a synchronous glob search. - -## Class: glob.Glob - -Create a Glob object by instantiating the `glob.Glob` class. - -```javascript -var Glob = require("glob").Glob -var mg = new Glob(pattern, options, cb) -``` - -It's an EventEmitter, and starts walking the filesystem to find matches -immediately. - -### new glob.Glob(pattern, [options], [cb]) - -* `pattern` {String} pattern to search for -* `options` {Object} -* `cb` {Function} Called when an error occurs, or matches are found - * `err` {Error | null} - * `matches` {Array} filenames found matching the pattern - -Note that if the `sync` flag is set in the options, then matches will -be immediately available on the `g.found` member. - -### Properties - -* `minimatch` The minimatch object that the glob uses. -* `options` The options object passed in. -* `aborted` Boolean which is set to true when calling `abort()`. There - is no way at this time to continue a glob search after aborting, but - you can re-use the statCache to avoid having to duplicate syscalls. -* `cache` Convenience object. Each field has the following possible - values: - * `false` - Path does not exist - * `true` - Path exists - * `'DIR'` - Path exists, and is not a directory - * `'FILE'` - Path exists, and is a directory - * `[file, entries, ...]` - Path exists, is a directory, and the - array value is the results of `fs.readdir` -* `statCache` Cache of `fs.stat` results, to prevent statting the same - path multiple times. -* `symlinks` A record of which paths are symbolic links, which is - relevant in resolving `**` patterns. -* `realpathCache` An optional object which is passed to `fs.realpath` - to minimize unnecessary syscalls. It is stored on the instantiated - Glob object, and may be re-used. - -### Events - -* `end` When the matching is finished, this is emitted with all the - matches found. If the `nonull` option is set, and no match was found, - then the `matches` list contains the original pattern. The matches - are sorted, unless the `nosort` flag is set. -* `match` Every time a match is found, this is emitted with the matched. -* `error` Emitted when an unexpected error is encountered, or whenever - any fs error occurs if `options.strict` is set. -* `abort` When `abort()` is called, this event is raised. - -### Methods - -* `pause` Temporarily stop the search -* `resume` Resume the search -* `abort` Stop the search forever - -### Options - -All the options that can be passed to Minimatch can also be passed to -Glob to change pattern matching behavior. Also, some have been added, -or have glob-specific ramifications. - -All options are false by default, unless otherwise noted. - -All options are added to the Glob object, as well. - -If you are running many `glob` operations, you can pass a Glob object -as the `options` argument to a subsequent operation to shortcut some -`stat` and `readdir` calls. At the very least, you may pass in shared -`symlinks`, `statCache`, `realpathCache`, and `cache` options, so that -parallel glob operations will be sped up by sharing information about -the filesystem. - -* `cwd` The current working directory in which to search. Defaults - to `process.cwd()`. -* `root` The place where patterns starting with `/` will be mounted - onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix - systems, and `C:\` or some such on Windows.) -* `dot` Include `.dot` files in normal matches and `globstar` matches. - Note that an explicit dot in a portion of the pattern will always - match dot files. -* `nomount` By default, a pattern starting with a forward-slash will be - "mounted" onto the root setting, so that a valid filesystem path is - returned. Set this flag to disable that behavior. -* `mark` Add a `/` character to directory matches. Note that this - requires additional stat calls. -* `nosort` Don't sort the results. -* `stat` Set to true to stat *all* results. This reduces performance - somewhat, and is completely unnecessary, unless `readdir` is presumed - to be an untrustworthy indicator of file existence. -* `silent` When an unusual error is encountered when attempting to - read a directory, a warning will be printed to stderr. Set the - `silent` option to true to suppress these warnings. -* `strict` When an unusual error is encountered when attempting to - read a directory, the process will just continue on in search of - other matches. Set the `strict` option to raise an error in these - cases. -* `cache` See `cache` property above. Pass in a previously generated - cache object to save some fs calls. -* `statCache` A cache of results of filesystem information, to prevent - unnecessary stat calls. While it should not normally be necessary - to set this, you may pass the statCache from one glob() call to the - options object of another, if you know that the filesystem will not - change between calls. (See "Race Conditions" below.) -* `symlinks` A cache of known symbolic links. You may pass in a - previously generated `symlinks` object to save `lstat` calls when - resolving `**` matches. -* `sync` DEPRECATED: use `glob.sync(pattern, opts)` instead. -* `nounique` In some cases, brace-expanded patterns can result in the - same file showing up multiple times in the result set. By default, - this implementation prevents duplicates in the result set. Set this - flag to disable that behavior. -* `nonull` Set to never return an empty set, instead returning a set - containing the pattern itself. This is the default in glob(3). -* `debug` Set to enable debug logging in minimatch and glob. -* `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets. -* `noglobstar` Do not match `**` against multiple filenames. (Ie, - treat it as a normal `*` instead.) -* `noext` Do not match `+(a|b)` "extglob" patterns. -* `nocase` Perform a case-insensitive match. Note: on - case-insensitive filesystems, non-magic patterns will match by - default, since `stat` and `readdir` will not raise errors. -* `matchBase` Perform a basename-only match if the pattern does not - contain any slash characters. That is, `*.js` would be treated as - equivalent to `**/*.js`, matching all js files in all directories. -* `nodir` Do not match directories, only files. (Note: to match - *only* directories, simply put a `/` at the end of the pattern.) -* `ignore` Add a pattern or an array of patterns to exclude matches. -* `follow` Follow symlinked directories when expanding `**` patterns. - Note that this can result in a lot of duplicate references in the - presence of cyclic links. -* `realpath` Set to true to call `fs.realpath` on all of the results. - In the case of a symlink that cannot be resolved, the full absolute - path to the matched entry is returned (though it will usually be a - broken symlink) -* `nonegate` Suppress deprecated `negate` behavior. (See below.) - Default=true -* `nocomment` Suppress deprecated `comment` behavior. (See below.) - Default=true - -## Comparisons to other fnmatch/glob implementations - -While strict compliance with the existing standards is a worthwhile -goal, some discrepancies exist between node-glob and other -implementations, and are intentional. - -The double-star character `**` is supported by default, unless the -`noglobstar` flag is set. This is supported in the manner of bsdglob -and bash 4.3, where `**` only has special significance if it is the only -thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but -`a/**b` will not. - -Note that symlinked directories are not crawled as part of a `**`, -though their contents may match against subsequent portions of the -pattern. This prevents infinite loops and duplicates and the like. - -If an escaped pattern has no matches, and the `nonull` flag is set, -then glob returns the pattern as-provided, rather than -interpreting the character escapes. For example, -`glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than -`"*a?"`. This is akin to setting the `nullglob` option in bash, except -that it does not resolve escaped pattern characters. - -If brace expansion is not disabled, then it is performed before any -other interpretation of the glob pattern. Thus, a pattern like -`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded -**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are -checked for validity. Since those two are valid, matching proceeds. - -### Comments and Negation - -**Note**: In version 5 of this module, negation and comments are -**disabled** by default. You can explicitly set `nonegate:false` or -`nocomment:false` to re-enable them. They are going away entirely in -version 6. - -The intent for negation would be for a pattern starting with `!` to -match everything that *doesn't* match the supplied pattern. However, -the implementation is weird. It is better to use the `ignore` option -to set a pattern or set of patterns to exclude from matches. If you -want the "everything except *x*" type of behavior, you can use `**` as -the main pattern, and set an `ignore` for the things to exclude. - -The comments feature is added in minimatch, primarily to more easily -support use cases like ignore files, where a `#` at the start of a -line makes the pattern "empty". However, in the context of a -straightforward filesystem globber, "comments" don't make much sense. - -## Windows - -**Please only use forward-slashes in glob expressions.** - -Though windows uses either `/` or `\` as its path separator, only `/` -characters are used by this glob implementation. You must use -forward-slashes **only** in glob expressions. Back-slashes will always -be interpreted as escape characters, not path separators. - -Results from absolute patterns such as `/foo/*` are mounted onto the -root setting using `path.join`. On windows, this will by default result -in `/foo/*` matching `C:\foo\bar.txt`. - -## Race Conditions - -Glob searching, by its very nature, is susceptible to race conditions, -since it relies on directory walking and such. - -As a result, it is possible that a file that exists when glob looks for -it may have been deleted or modified by the time it returns the result. - -As part of its internal implementation, this program caches all stat -and readdir calls that it makes, in order to cut down on system -overhead. However, this also makes it even more susceptible to races, -especially if the cache or statCache objects are reused between glob -calls. - -Users are thus advised not to use a glob result as a guarantee of -filesystem state in the face of rapid changes. For the vast majority -of operations, this is never a problem. - -## Contributing - -Any change to behavior (including bugfixes) must come with a test. - -Patches that fail tests or reduce performance will be rejected. - -``` -# to run tests -npm test - -# to re-generate test fixtures -npm run test-regen - -# to benchmark against bash/zsh -npm run bench - -# to profile javascript -npm run prof -``` diff --git a/node_modules/rework-import/node_modules/glob/common.js b/node_modules/rework-import/node_modules/glob/common.js deleted file mode 100644 index e36a631..0000000 --- a/node_modules/rework-import/node_modules/glob/common.js +++ /dev/null @@ -1,245 +0,0 @@ -exports.alphasort = alphasort -exports.alphasorti = alphasorti -exports.setopts = setopts -exports.ownProp = ownProp -exports.makeAbs = makeAbs -exports.finish = finish -exports.mark = mark -exports.isIgnored = isIgnored -exports.childrenIgnored = childrenIgnored - -function ownProp (obj, field) { - return Object.prototype.hasOwnProperty.call(obj, field) -} - -var path = require("path") -var minimatch = require("minimatch") -var isAbsolute = require("path-is-absolute") -var Minimatch = minimatch.Minimatch - -function alphasorti (a, b) { - return a.toLowerCase().localeCompare(b.toLowerCase()) -} - -function alphasort (a, b) { - return a.localeCompare(b) -} - -function setupIgnores (self, options) { - self.ignore = options.ignore || [] - - if (!Array.isArray(self.ignore)) - self.ignore = [self.ignore] - - if (self.ignore.length) { - self.ignore = self.ignore.map(ignoreMap) - } -} - -function ignoreMap (pattern) { - var gmatcher = null - if (pattern.slice(-3) === '/**') { - var gpattern = pattern.replace(/(\/\*\*)+$/, '') - gmatcher = new Minimatch(gpattern) - } - - return { - matcher: new Minimatch(pattern), - gmatcher: gmatcher - } -} - -function setopts (self, pattern, options) { - if (!options) - options = {} - - // base-matching: just use globstar for that. - if (options.matchBase && -1 === pattern.indexOf("/")) { - if (options.noglobstar) { - throw new Error("base matching requires globstar") - } - pattern = "**/" + pattern - } - - self.silent = !!options.silent - self.pattern = pattern - self.strict = options.strict !== false - self.realpath = !!options.realpath - self.realpathCache = options.realpathCache || Object.create(null) - self.follow = !!options.follow - self.dot = !!options.dot - self.mark = !!options.mark - self.nodir = !!options.nodir - if (self.nodir) - self.mark = true - self.sync = !!options.sync - self.nounique = !!options.nounique - self.nonull = !!options.nonull - self.nosort = !!options.nosort - self.nocase = !!options.nocase - self.stat = !!options.stat - self.noprocess = !!options.noprocess - - self.maxLength = options.maxLength || Infinity - self.cache = options.cache || Object.create(null) - self.statCache = options.statCache || Object.create(null) - self.symlinks = options.symlinks || Object.create(null) - - setupIgnores(self, options) - - self.changedCwd = false - var cwd = process.cwd() - if (!ownProp(options, "cwd")) - self.cwd = cwd - else { - self.cwd = options.cwd - self.changedCwd = path.resolve(options.cwd) !== cwd - } - - self.root = options.root || path.resolve(self.cwd, "/") - self.root = path.resolve(self.root) - if (process.platform === "win32") - self.root = self.root.replace(/\\/g, "/") - - self.nomount = !!options.nomount - - // disable comments and negation unless the user explicitly - // passes in false as the option. - options.nonegate = options.nonegate === false ? false : true - options.nocomment = options.nocomment === false ? false : true - deprecationWarning(options) - - self.minimatch = new Minimatch(pattern, options) - self.options = self.minimatch.options -} - -// TODO(isaacs): remove entirely in v6 -// exported to reset in tests -exports.deprecationWarned -function deprecationWarning(options) { - if (!options.nonegate || !options.nocomment) { - if (process.noDeprecation !== true && !exports.deprecationWarned) { - var msg = 'glob WARNING: comments and negation will be disabled in v6' - if (process.throwDeprecation) - throw new Error(msg) - else if (process.traceDeprecation) - console.trace(msg) - else - console.error(msg) - - exports.deprecationWarned = true - } - } -} - -function finish (self) { - var nou = self.nounique - var all = nou ? [] : Object.create(null) - - for (var i = 0, l = self.matches.length; i < l; i ++) { - var matches = self.matches[i] - if (!matches || Object.keys(matches).length === 0) { - if (self.nonull) { - // do like the shell, and spit out the literal glob - var literal = self.minimatch.globSet[i] - if (nou) - all.push(literal) - else - all[literal] = true - } - } else { - // had matches - var m = Object.keys(matches) - if (nou) - all.push.apply(all, m) - else - m.forEach(function (m) { - all[m] = true - }) - } - } - - if (!nou) - all = Object.keys(all) - - if (!self.nosort) - all = all.sort(self.nocase ? alphasorti : alphasort) - - // at *some* point we statted all of these - if (self.mark) { - for (var i = 0; i < all.length; i++) { - all[i] = self._mark(all[i]) - } - if (self.nodir) { - all = all.filter(function (e) { - return !(/\/$/.test(e)) - }) - } - } - - if (self.ignore.length) - all = all.filter(function(m) { - return !isIgnored(self, m) - }) - - self.found = all -} - -function mark (self, p) { - var abs = makeAbs(self, p) - var c = self.cache[abs] - var m = p - if (c) { - var isDir = c === 'DIR' || Array.isArray(c) - var slash = p.slice(-1) === '/' - - if (isDir && !slash) - m += '/' - else if (!isDir && slash) - m = m.slice(0, -1) - - if (m !== p) { - var mabs = makeAbs(self, m) - self.statCache[mabs] = self.statCache[abs] - self.cache[mabs] = self.cache[abs] - } - } - - return m -} - -// lotta situps... -function makeAbs (self, f) { - var abs = f - if (f.charAt(0) === '/') { - abs = path.join(self.root, f) - } else if (isAbsolute(f) || f === '') { - abs = f - } else if (self.changedCwd) { - abs = path.resolve(self.cwd, f) - } else { - abs = path.resolve(f) - } - return abs -} - - -// Return true, if pattern ends with globstar '**', for the accompanying parent directory. -// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents -function isIgnored (self, path) { - if (!self.ignore.length) - return false - - return self.ignore.some(function(item) { - return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path)) - }) -} - -function childrenIgnored (self, path) { - if (!self.ignore.length) - return false - - return self.ignore.some(function(item) { - return !!(item.gmatcher && item.gmatcher.match(path)) - }) -} diff --git a/node_modules/rework-import/node_modules/glob/glob.js b/node_modules/rework-import/node_modules/glob/glob.js deleted file mode 100644 index 022d2ac..0000000 --- a/node_modules/rework-import/node_modules/glob/glob.js +++ /dev/null @@ -1,752 +0,0 @@ -// Approach: -// -// 1. Get the minimatch set -// 2. For each pattern in the set, PROCESS(pattern, false) -// 3. Store matches per-set, then uniq them -// -// PROCESS(pattern, inGlobStar) -// Get the first [n] items from pattern that are all strings -// Join these together. This is PREFIX. -// If there is no more remaining, then stat(PREFIX) and -// add to matches if it succeeds. END. -// -// If inGlobStar and PREFIX is symlink and points to dir -// set ENTRIES = [] -// else readdir(PREFIX) as ENTRIES -// If fail, END -// -// with ENTRIES -// If pattern[n] is GLOBSTAR -// // handle the case where the globstar match is empty -// // by pruning it out, and testing the resulting pattern -// PROCESS(pattern[0..n] + pattern[n+1 .. $], false) -// // handle other cases. -// for ENTRY in ENTRIES (not dotfiles) -// // attach globstar + tail onto the entry -// // Mark that this entry is a globstar match -// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true) -// -// else // not globstar -// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot) -// Test ENTRY against pattern[n] -// If fails, continue -// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $]) -// -// Caveat: -// Cache all stats and readdirs results to minimize syscall. Since all -// we ever care about is existence and directory-ness, we can just keep -// `true` for files, and [children,...] for directories, or `false` for -// things that don't exist. - -module.exports = glob - -var fs = require('fs') -var minimatch = require('minimatch') -var Minimatch = minimatch.Minimatch -var inherits = require('inherits') -var EE = require('events').EventEmitter -var path = require('path') -var assert = require('assert') -var isAbsolute = require('path-is-absolute') -var globSync = require('./sync.js') -var common = require('./common.js') -var alphasort = common.alphasort -var alphasorti = common.alphasorti -var setopts = common.setopts -var ownProp = common.ownProp -var inflight = require('inflight') -var util = require('util') -var childrenIgnored = common.childrenIgnored -var isIgnored = common.isIgnored - -var once = require('once') - -function glob (pattern, options, cb) { - if (typeof options === 'function') cb = options, options = {} - if (!options) options = {} - - if (options.sync) { - if (cb) - throw new TypeError('callback provided to sync glob') - return globSync(pattern, options) - } - - return new Glob(pattern, options, cb) -} - -glob.sync = globSync -var GlobSync = glob.GlobSync = globSync.GlobSync - -// old api surface -glob.glob = glob - -glob.hasMagic = function (pattern, options_) { - var options = util._extend({}, options_) - options.noprocess = true - - var g = new Glob(pattern, options) - var set = g.minimatch.set - if (set.length > 1) - return true - - for (var j = 0; j < set[0].length; j++) { - if (typeof set[0][j] !== 'string') - return true - } - - return false -} - -glob.Glob = Glob -inherits(Glob, EE) -function Glob (pattern, options, cb) { - if (typeof options === 'function') { - cb = options - options = null - } - - if (options && options.sync) { - if (cb) - throw new TypeError('callback provided to sync glob') - return new GlobSync(pattern, options) - } - - if (!(this instanceof Glob)) - return new Glob(pattern, options, cb) - - setopts(this, pattern, options) - this._didRealPath = false - - // process each pattern in the minimatch set - var n = this.minimatch.set.length - - // The matches are stored as {: true,...} so that - // duplicates are automagically pruned. - // Later, we do an Object.keys() on these. - // Keep them as a list so we can fill in when nonull is set. - this.matches = new Array(n) - - if (typeof cb === 'function') { - cb = once(cb) - this.on('error', cb) - this.on('end', function (matches) { - cb(null, matches) - }) - } - - var self = this - var n = this.minimatch.set.length - this._processing = 0 - this.matches = new Array(n) - - this._emitQueue = [] - this._processQueue = [] - this.paused = false - - if (this.noprocess) - return this - - if (n === 0) - return done() - - for (var i = 0; i < n; i ++) { - this._process(this.minimatch.set[i], i, false, done) - } - - function done () { - --self._processing - if (self._processing <= 0) - self._finish() - } -} - -Glob.prototype._finish = function () { - assert(this instanceof Glob) - if (this.aborted) - return - - if (this.realpath && !this._didRealpath) - return this._realpath() - - common.finish(this) - this.emit('end', this.found) -} - -Glob.prototype._realpath = function () { - if (this._didRealpath) - return - - this._didRealpath = true - - var n = this.matches.length - if (n === 0) - return this._finish() - - var self = this - for (var i = 0; i < this.matches.length; i++) - this._realpathSet(i, next) - - function next () { - if (--n === 0) - self._finish() - } -} - -Glob.prototype._realpathSet = function (index, cb) { - var matchset = this.matches[index] - if (!matchset) - return cb() - - var found = Object.keys(matchset) - var self = this - var n = found.length - - if (n === 0) - return cb() - - var set = this.matches[index] = Object.create(null) - found.forEach(function (p, i) { - // If there's a problem with the stat, then it means that - // one or more of the links in the realpath couldn't be - // resolved. just return the abs value in that case. - p = self._makeAbs(p) - fs.realpath(p, self.realpathCache, function (er, real) { - if (!er) - set[real] = true - else if (er.syscall === 'stat') - set[p] = true - else - self.emit('error', er) // srsly wtf right here - - if (--n === 0) { - self.matches[index] = set - cb() - } - }) - }) -} - -Glob.prototype._mark = function (p) { - return common.mark(this, p) -} - -Glob.prototype._makeAbs = function (f) { - return common.makeAbs(this, f) -} - -Glob.prototype.abort = function () { - this.aborted = true - this.emit('abort') -} - -Glob.prototype.pause = function () { - if (!this.paused) { - this.paused = true - this.emit('pause') - } -} - -Glob.prototype.resume = function () { - if (this.paused) { - this.emit('resume') - this.paused = false - if (this._emitQueue.length) { - var eq = this._emitQueue.slice(0) - this._emitQueue.length = 0 - for (var i = 0; i < eq.length; i ++) { - var e = eq[i] - this._emitMatch(e[0], e[1]) - } - } - if (this._processQueue.length) { - var pq = this._processQueue.slice(0) - this._processQueue.length = 0 - for (var i = 0; i < pq.length; i ++) { - var p = pq[i] - this._processing-- - this._process(p[0], p[1], p[2], p[3]) - } - } - } -} - -Glob.prototype._process = function (pattern, index, inGlobStar, cb) { - assert(this instanceof Glob) - assert(typeof cb === 'function') - - if (this.aborted) - return - - this._processing++ - if (this.paused) { - this._processQueue.push([pattern, index, inGlobStar, cb]) - return - } - - //console.error('PROCESS %d', this._processing, pattern) - - // Get the first [n] parts of pattern that are all strings. - var n = 0 - while (typeof pattern[n] === 'string') { - n ++ - } - // now n is the index of the first one that is *not* a string. - - // see if there's anything else - var prefix - switch (n) { - // if not, then this is rather simple - case pattern.length: - this._processSimple(pattern.join('/'), index, cb) - return - - case 0: - // pattern *starts* with some non-trivial item. - // going to readdir(cwd), but not include the prefix in matches. - prefix = null - break - - default: - // pattern has some string bits in the front. - // whatever it starts with, whether that's 'absolute' like /foo/bar, - // or 'relative' like '../baz' - prefix = pattern.slice(0, n).join('/') - break - } - - var remain = pattern.slice(n) - - // get the list of entries. - var read - if (prefix === null) - read = '.' - else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) { - if (!prefix || !isAbsolute(prefix)) - prefix = '/' + prefix - read = prefix - } else - read = prefix - - var abs = this._makeAbs(read) - - //if ignored, skip _processing - if (childrenIgnored(this, read)) - return cb() - - var isGlobStar = remain[0] === minimatch.GLOBSTAR - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb) - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb) -} - -Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this - this._readdir(abs, inGlobStar, function (er, entries) { - return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb) - }) -} - -Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { - - // if the abs isn't a dir, then nothing can match! - if (!entries) - return cb() - - // It will only match dot entries if it starts with a dot, or if - // dot is set. Stuff like @(.foo|.bar) isn't allowed. - var pn = remain[0] - var negate = !!this.minimatch.negate - var rawGlob = pn._glob - var dotOk = this.dot || rawGlob.charAt(0) === '.' - - var matchedEntries = [] - for (var i = 0; i < entries.length; i++) { - var e = entries[i] - if (e.charAt(0) !== '.' || dotOk) { - var m - if (negate && !prefix) { - m = !e.match(pn) - } else { - m = e.match(pn) - } - if (m) - matchedEntries.push(e) - } - } - - //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries) - - var len = matchedEntries.length - // If there are no matched entries, then nothing matches. - if (len === 0) - return cb() - - // if this is the last remaining pattern bit, then no need for - // an additional stat *unless* the user has specified mark or - // stat explicitly. We know they exist, since readdir returned - // them. - - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - if (prefix) { - if (prefix !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - - if (e.charAt(0) === '/' && !this.nomount) { - e = path.join(this.root, e) - } - this._emitMatch(index, e) - } - // This was the last one, and no stats were needed - return cb() - } - - // now test all matched entries as stand-ins for that part - // of the pattern. - remain.shift() - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - var newPattern - if (prefix) { - if (prefix !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - this._process([e].concat(remain), index, inGlobStar, cb) - } - cb() -} - -Glob.prototype._emitMatch = function (index, e) { - if (this.aborted) - return - - if (this.matches[index][e]) - return - - if (isIgnored(this, e)) - return - - if (this.paused) { - this._emitQueue.push([index, e]) - return - } - - var abs = this._makeAbs(e) - - if (this.nodir) { - var c = this.cache[abs] - if (c === 'DIR' || Array.isArray(c)) - return - } - - if (this.mark) - e = this._mark(e) - - this.matches[index][e] = true - - var st = this.statCache[abs] - if (st) - this.emit('stat', e, st) - - this.emit('match', e) -} - -Glob.prototype._readdirInGlobStar = function (abs, cb) { - if (this.aborted) - return - - // follow all symlinked directories forever - // just proceed as if this is a non-globstar situation - if (this.follow) - return this._readdir(abs, false, cb) - - var lstatkey = 'lstat\0' + abs - var self = this - var lstatcb = inflight(lstatkey, lstatcb_) - - if (lstatcb) - fs.lstat(abs, lstatcb) - - function lstatcb_ (er, lstat) { - if (er) - return cb() - - var isSym = lstat.isSymbolicLink() - self.symlinks[abs] = isSym - - // If it's not a symlink or a dir, then it's definitely a regular file. - // don't bother doing a readdir in that case. - if (!isSym && !lstat.isDirectory()) { - self.cache[abs] = 'FILE' - cb() - } else - self._readdir(abs, false, cb) - } -} - -Glob.prototype._readdir = function (abs, inGlobStar, cb) { - if (this.aborted) - return - - cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb) - if (!cb) - return - - //console.error('RD %j %j', +inGlobStar, abs) - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs, cb) - - if (ownProp(this.cache, abs)) { - var c = this.cache[abs] - if (!c || c === 'FILE') - return cb() - - if (Array.isArray(c)) - return cb(null, c) - } - - var self = this - fs.readdir(abs, readdirCb(this, abs, cb)) -} - -function readdirCb (self, abs, cb) { - return function (er, entries) { - if (er) - self._readdirError(abs, er, cb) - else - self._readdirEntries(abs, entries, cb) - } -} - -Glob.prototype._readdirEntries = function (abs, entries, cb) { - if (this.aborted) - return - - // if we haven't asked to stat everything, then just - // assume that everything in there exists, so we can avoid - // having to stat it a second time. - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i ++) { - var e = entries[i] - if (abs === '/') - e = abs + e - else - e = abs + '/' + e - this.cache[e] = true - } - } - - this.cache[abs] = entries - return cb(null, entries) -} - -Glob.prototype._readdirError = function (f, er, cb) { - if (this.aborted) - return - - // handle errors, and cache the information - switch (er.code) { - case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 - case 'ENOTDIR': // totally normal. means it *does* exist. - this.cache[this._makeAbs(f)] = 'FILE' - break - - case 'ENOENT': // not terribly unusual - case 'ELOOP': - case 'ENAMETOOLONG': - case 'UNKNOWN': - this.cache[this._makeAbs(f)] = false - break - - default: // some unusual error. Treat as failure. - this.cache[this._makeAbs(f)] = false - if (this.strict) { - this.emit('error', er) - // If the error is handled, then we abort - // if not, we threw out of here - this.abort() - } - if (!this.silent) - console.error('glob error', er) - break - } - - return cb() -} - -Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this - this._readdir(abs, inGlobStar, function (er, entries) { - self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb) - }) -} - - -Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { - //console.error('pgs2', prefix, remain[0], entries) - - // no entries means not a dir, so it can never have matches - // foo.txt/** doesn't match foo.txt - if (!entries) - return cb() - - // test without the globstar, and with every child both below - // and replacing the globstar. - var remainWithoutGlobStar = remain.slice(1) - var gspref = prefix ? [ prefix ] : [] - var noGlobStar = gspref.concat(remainWithoutGlobStar) - - // the noGlobStar pattern exits the inGlobStar state - this._process(noGlobStar, index, false, cb) - - var isSym = this.symlinks[abs] - var len = entries.length - - // If it's a symlink, and we're in a globstar, then stop - if (isSym && inGlobStar) - return cb() - - for (var i = 0; i < len; i++) { - var e = entries[i] - if (e.charAt(0) === '.' && !this.dot) - continue - - // these two cases enter the inGlobStar state - var instead = gspref.concat(entries[i], remainWithoutGlobStar) - this._process(instead, index, true, cb) - - var below = gspref.concat(entries[i], remain) - this._process(below, index, true, cb) - } - - cb() -} - -Glob.prototype._processSimple = function (prefix, index, cb) { - // XXX review this. Shouldn't it be doing the mounting etc - // before doing stat? kinda weird? - var self = this - this._stat(prefix, function (er, exists) { - self._processSimple2(prefix, index, er, exists, cb) - }) -} -Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) { - - //console.error('ps2', prefix, exists) - - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - // If it doesn't exist, then just mark the lack of results - if (!exists) - return cb() - - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix) - if (prefix.charAt(0) === '/') { - prefix = path.join(this.root, prefix) - } else { - prefix = path.resolve(this.root, prefix) - if (trail) - prefix += '/' - } - } - - if (process.platform === 'win32') - prefix = prefix.replace(/\\/g, '/') - - // Mark this as a match - this._emitMatch(index, prefix) - cb() -} - -// Returns either 'DIR', 'FILE', or false -Glob.prototype._stat = function (f, cb) { - var abs = this._makeAbs(f) - var needDir = f.slice(-1) === '/' - - if (f.length > this.maxLength) - return cb() - - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs] - - if (Array.isArray(c)) - c = 'DIR' - - // It exists, but maybe not how we need it - if (!needDir || c === 'DIR') - return cb(null, c) - - if (needDir && c === 'FILE') - return cb() - - // otherwise we have to stat, because maybe c=true - // if we know it exists, but not what it is. - } - - var exists - var stat = this.statCache[abs] - if (stat !== undefined) { - if (stat === false) - return cb(null, stat) - else { - var type = stat.isDirectory() ? 'DIR' : 'FILE' - if (needDir && type === 'FILE') - return cb() - else - return cb(null, type, stat) - } - } - - var self = this - var statcb = inflight('stat\0' + abs, lstatcb_) - if (statcb) - fs.lstat(abs, statcb) - - function lstatcb_ (er, lstat) { - if (lstat && lstat.isSymbolicLink()) { - // If it's a symlink, then treat it as the target, unless - // the target does not exist, then treat it as a file. - return fs.stat(abs, function (er, stat) { - if (er) - self._stat2(f, abs, null, lstat, cb) - else - self._stat2(f, abs, er, stat, cb) - }) - } else { - self._stat2(f, abs, er, lstat, cb) - } - } -} - -Glob.prototype._stat2 = function (f, abs, er, stat, cb) { - if (er) { - this.statCache[abs] = false - return cb() - } - - var needDir = f.slice(-1) === '/' - this.statCache[abs] = stat - - if (abs.slice(-1) === '/' && !stat.isDirectory()) - return cb(null, false, stat) - - var c = stat.isDirectory() ? 'DIR' : 'FILE' - this.cache[abs] = this.cache[abs] || c - - if (needDir && c !== 'DIR') - return cb() - - return cb(null, c, stat) -} diff --git a/node_modules/rework-import/node_modules/glob/package.json b/node_modules/rework-import/node_modules/glob/package.json deleted file mode 100644 index 6a5d9d7..0000000 --- a/node_modules/rework-import/node_modules/glob/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "glob@^5.0.3", - "scope": null, - "escapedName": "glob", - "name": "glob", - "rawSpec": "^5.0.3", - "spec": ">=5.0.3 <6.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/rework-import/node_modules/globby" - ] - ], - "_from": "glob@>=5.0.3 <6.0.0", - "_id": "glob@5.0.15", - "_inCache": true, - "_location": "/rework-import/glob", - "_nodeVersion": "4.0.0", - "_npmUser": { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - "_npmVersion": "3.3.2", - "_phantomChildren": {}, - "_requested": { - "raw": "glob@^5.0.3", - "scope": null, - "escapedName": "glob", - "name": "glob", - "rawSpec": "^5.0.3", - "spec": ">=5.0.3 <6.0.0", - "type": "range" - }, - "_requiredBy": [ - "/rework-import/globby" - ], - "_resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "_shasum": "1bc936b9e02f4a603fcc222ecf7633d30b8b93b1", - "_shrinkwrap": null, - "_spec": "glob@^5.0.3", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/rework-import/node_modules/globby", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/node-glob/issues" - }, - "dependencies": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "description": "a little globber", - "devDependencies": { - "mkdirp": "0", - "rimraf": "^2.2.8", - "tap": "^1.1.4", - "tick": "0.0.6" - }, - "directories": {}, - "dist": { - "shasum": "1bc936b9e02f4a603fcc222ecf7633d30b8b93b1", - "tarball": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz" - }, - "engines": { - "node": "*" - }, - "files": [ - "glob.js", - "sync.js", - "common.js" - ], - "gitHead": "3a7e71d453dd80e75b196fd262dd23ed54beeceb", - "homepage": "https://github.com/isaacs/node-glob#readme", - "license": "ISC", - "main": "glob.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "glob", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/node-glob.git" - }, - "scripts": { - "bench": "bash benchmark.sh", - "benchclean": "node benchclean.js", - "prepublish": "npm run benchclean", - "prof": "bash prof.sh && cat profile.txt", - "profclean": "rm -f v8.log profile.txt", - "test": "tap test/*.js --cov", - "test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js" - }, - "version": "5.0.15" -} diff --git a/node_modules/rework-import/node_modules/glob/sync.js b/node_modules/rework-import/node_modules/glob/sync.js deleted file mode 100644 index 09883d2..0000000 --- a/node_modules/rework-import/node_modules/glob/sync.js +++ /dev/null @@ -1,460 +0,0 @@ -module.exports = globSync -globSync.GlobSync = GlobSync - -var fs = require('fs') -var minimatch = require('minimatch') -var Minimatch = minimatch.Minimatch -var Glob = require('./glob.js').Glob -var util = require('util') -var path = require('path') -var assert = require('assert') -var isAbsolute = require('path-is-absolute') -var common = require('./common.js') -var alphasort = common.alphasort -var alphasorti = common.alphasorti -var setopts = common.setopts -var ownProp = common.ownProp -var childrenIgnored = common.childrenIgnored - -function globSync (pattern, options) { - if (typeof options === 'function' || arguments.length === 3) - throw new TypeError('callback provided to sync glob\n'+ - 'See: https://github.com/isaacs/node-glob/issues/167') - - return new GlobSync(pattern, options).found -} - -function GlobSync (pattern, options) { - if (!pattern) - throw new Error('must provide pattern') - - if (typeof options === 'function' || arguments.length === 3) - throw new TypeError('callback provided to sync glob\n'+ - 'See: https://github.com/isaacs/node-glob/issues/167') - - if (!(this instanceof GlobSync)) - return new GlobSync(pattern, options) - - setopts(this, pattern, options) - - if (this.noprocess) - return this - - var n = this.minimatch.set.length - this.matches = new Array(n) - for (var i = 0; i < n; i ++) { - this._process(this.minimatch.set[i], i, false) - } - this._finish() -} - -GlobSync.prototype._finish = function () { - assert(this instanceof GlobSync) - if (this.realpath) { - var self = this - this.matches.forEach(function (matchset, index) { - var set = self.matches[index] = Object.create(null) - for (var p in matchset) { - try { - p = self._makeAbs(p) - var real = fs.realpathSync(p, self.realpathCache) - set[real] = true - } catch (er) { - if (er.syscall === 'stat') - set[self._makeAbs(p)] = true - else - throw er - } - } - }) - } - common.finish(this) -} - - -GlobSync.prototype._process = function (pattern, index, inGlobStar) { - assert(this instanceof GlobSync) - - // Get the first [n] parts of pattern that are all strings. - var n = 0 - while (typeof pattern[n] === 'string') { - n ++ - } - // now n is the index of the first one that is *not* a string. - - // See if there's anything else - var prefix - switch (n) { - // if not, then this is rather simple - case pattern.length: - this._processSimple(pattern.join('/'), index) - return - - case 0: - // pattern *starts* with some non-trivial item. - // going to readdir(cwd), but not include the prefix in matches. - prefix = null - break - - default: - // pattern has some string bits in the front. - // whatever it starts with, whether that's 'absolute' like /foo/bar, - // or 'relative' like '../baz' - prefix = pattern.slice(0, n).join('/') - break - } - - var remain = pattern.slice(n) - - // get the list of entries. - var read - if (prefix === null) - read = '.' - else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) { - if (!prefix || !isAbsolute(prefix)) - prefix = '/' + prefix - read = prefix - } else - read = prefix - - var abs = this._makeAbs(read) - - //if ignored, skip processing - if (childrenIgnored(this, read)) - return - - var isGlobStar = remain[0] === minimatch.GLOBSTAR - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar) - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar) -} - - -GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) { - var entries = this._readdir(abs, inGlobStar) - - // if the abs isn't a dir, then nothing can match! - if (!entries) - return - - // It will only match dot entries if it starts with a dot, or if - // dot is set. Stuff like @(.foo|.bar) isn't allowed. - var pn = remain[0] - var negate = !!this.minimatch.negate - var rawGlob = pn._glob - var dotOk = this.dot || rawGlob.charAt(0) === '.' - - var matchedEntries = [] - for (var i = 0; i < entries.length; i++) { - var e = entries[i] - if (e.charAt(0) !== '.' || dotOk) { - var m - if (negate && !prefix) { - m = !e.match(pn) - } else { - m = e.match(pn) - } - if (m) - matchedEntries.push(e) - } - } - - var len = matchedEntries.length - // If there are no matched entries, then nothing matches. - if (len === 0) - return - - // if this is the last remaining pattern bit, then no need for - // an additional stat *unless* the user has specified mark or - // stat explicitly. We know they exist, since readdir returned - // them. - - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - if (prefix) { - if (prefix.slice(-1) !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - - if (e.charAt(0) === '/' && !this.nomount) { - e = path.join(this.root, e) - } - this.matches[index][e] = true - } - // This was the last one, and no stats were needed - return - } - - // now test all matched entries as stand-ins for that part - // of the pattern. - remain.shift() - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - var newPattern - if (prefix) - newPattern = [prefix, e] - else - newPattern = [e] - this._process(newPattern.concat(remain), index, inGlobStar) - } -} - - -GlobSync.prototype._emitMatch = function (index, e) { - var abs = this._makeAbs(e) - if (this.mark) - e = this._mark(e) - - if (this.matches[index][e]) - return - - if (this.nodir) { - var c = this.cache[this._makeAbs(e)] - if (c === 'DIR' || Array.isArray(c)) - return - } - - this.matches[index][e] = true - if (this.stat) - this._stat(e) -} - - -GlobSync.prototype._readdirInGlobStar = function (abs) { - // follow all symlinked directories forever - // just proceed as if this is a non-globstar situation - if (this.follow) - return this._readdir(abs, false) - - var entries - var lstat - var stat - try { - lstat = fs.lstatSync(abs) - } catch (er) { - // lstat failed, doesn't exist - return null - } - - var isSym = lstat.isSymbolicLink() - this.symlinks[abs] = isSym - - // If it's not a symlink or a dir, then it's definitely a regular file. - // don't bother doing a readdir in that case. - if (!isSym && !lstat.isDirectory()) - this.cache[abs] = 'FILE' - else - entries = this._readdir(abs, false) - - return entries -} - -GlobSync.prototype._readdir = function (abs, inGlobStar) { - var entries - - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs) - - if (ownProp(this.cache, abs)) { - var c = this.cache[abs] - if (!c || c === 'FILE') - return null - - if (Array.isArray(c)) - return c - } - - try { - return this._readdirEntries(abs, fs.readdirSync(abs)) - } catch (er) { - this._readdirError(abs, er) - return null - } -} - -GlobSync.prototype._readdirEntries = function (abs, entries) { - // if we haven't asked to stat everything, then just - // assume that everything in there exists, so we can avoid - // having to stat it a second time. - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i ++) { - var e = entries[i] - if (abs === '/') - e = abs + e - else - e = abs + '/' + e - this.cache[e] = true - } - } - - this.cache[abs] = entries - - // mark and cache dir-ness - return entries -} - -GlobSync.prototype._readdirError = function (f, er) { - // handle errors, and cache the information - switch (er.code) { - case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 - case 'ENOTDIR': // totally normal. means it *does* exist. - this.cache[this._makeAbs(f)] = 'FILE' - break - - case 'ENOENT': // not terribly unusual - case 'ELOOP': - case 'ENAMETOOLONG': - case 'UNKNOWN': - this.cache[this._makeAbs(f)] = false - break - - default: // some unusual error. Treat as failure. - this.cache[this._makeAbs(f)] = false - if (this.strict) - throw er - if (!this.silent) - console.error('glob error', er) - break - } -} - -GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) { - - var entries = this._readdir(abs, inGlobStar) - - // no entries means not a dir, so it can never have matches - // foo.txt/** doesn't match foo.txt - if (!entries) - return - - // test without the globstar, and with every child both below - // and replacing the globstar. - var remainWithoutGlobStar = remain.slice(1) - var gspref = prefix ? [ prefix ] : [] - var noGlobStar = gspref.concat(remainWithoutGlobStar) - - // the noGlobStar pattern exits the inGlobStar state - this._process(noGlobStar, index, false) - - var len = entries.length - var isSym = this.symlinks[abs] - - // If it's a symlink, and we're in a globstar, then stop - if (isSym && inGlobStar) - return - - for (var i = 0; i < len; i++) { - var e = entries[i] - if (e.charAt(0) === '.' && !this.dot) - continue - - // these two cases enter the inGlobStar state - var instead = gspref.concat(entries[i], remainWithoutGlobStar) - this._process(instead, index, true) - - var below = gspref.concat(entries[i], remain) - this._process(below, index, true) - } -} - -GlobSync.prototype._processSimple = function (prefix, index) { - // XXX review this. Shouldn't it be doing the mounting etc - // before doing stat? kinda weird? - var exists = this._stat(prefix) - - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - // If it doesn't exist, then just mark the lack of results - if (!exists) - return - - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix) - if (prefix.charAt(0) === '/') { - prefix = path.join(this.root, prefix) - } else { - prefix = path.resolve(this.root, prefix) - if (trail) - prefix += '/' - } - } - - if (process.platform === 'win32') - prefix = prefix.replace(/\\/g, '/') - - // Mark this as a match - this.matches[index][prefix] = true -} - -// Returns either 'DIR', 'FILE', or false -GlobSync.prototype._stat = function (f) { - var abs = this._makeAbs(f) - var needDir = f.slice(-1) === '/' - - if (f.length > this.maxLength) - return false - - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs] - - if (Array.isArray(c)) - c = 'DIR' - - // It exists, but maybe not how we need it - if (!needDir || c === 'DIR') - return c - - if (needDir && c === 'FILE') - return false - - // otherwise we have to stat, because maybe c=true - // if we know it exists, but not what it is. - } - - var exists - var stat = this.statCache[abs] - if (!stat) { - var lstat - try { - lstat = fs.lstatSync(abs) - } catch (er) { - return false - } - - if (lstat.isSymbolicLink()) { - try { - stat = fs.statSync(abs) - } catch (er) { - stat = lstat - } - } else { - stat = lstat - } - } - - this.statCache[abs] = stat - - var c = stat.isDirectory() ? 'DIR' : 'FILE' - this.cache[abs] = this.cache[abs] || c - - if (needDir && c !== 'DIR') - return false - - return c -} - -GlobSync.prototype._mark = function (p) { - return common.mark(this, p) -} - -GlobSync.prototype._makeAbs = function (f) { - return common.makeAbs(this, f) -} diff --git a/node_modules/rework-import/node_modules/globby/index.js b/node_modules/rework-import/node_modules/globby/index.js deleted file mode 100644 index db03850..0000000 --- a/node_modules/rework-import/node_modules/globby/index.js +++ /dev/null @@ -1,88 +0,0 @@ -'use strict'; -var union = require('array-union'); -var assign = require('object-assign'); -var async = require('async'); -var glob = require('glob'); - -function arrayify(arr) { - return Array.isArray(arr) ? arr : [arr]; -} - -function sortPatterns(patterns) { - patterns = arrayify(patterns); - - var positives = []; - var negatives = []; - - patterns.forEach(function (pattern, index) { - var isNegative = pattern[0] === '!'; - (isNegative ? negatives : positives).push({ - index: index, - pattern: isNegative ? pattern.slice(1) : pattern - }); - }); - - return { - positives: positives, - negatives: negatives - }; -} - -function setIgnore(opts, negatives, positiveIndex) { - opts = assign({}, opts); - - var negativePatterns = negatives.filter(function (negative) { - return negative.index > positiveIndex; - }).map(function (negative) { - return negative.pattern; - }); - - opts.ignore = (opts.ignore || []).concat(negativePatterns); - return opts; -} - -module.exports = function (patterns, opts, cb) { - var sortedPatterns = sortPatterns(patterns); - - if (typeof opts === 'function') { - cb = opts; - opts = {}; - } - - if (sortedPatterns.positives.length === 0) { - cb(null, []); - return; - } - - async.parallel(sortedPatterns.positives.map(function (positive) { - return function (cb2) { - glob(positive.pattern, setIgnore(opts, sortedPatterns.negatives, positive.index), function (err, paths) { - if (err) { - cb2(err); - return; - } - - cb2(null, paths); - }); - }; - }), function (err, paths) { - if (err) { - cb(err); - return; - } - - cb(null, union.apply(null, paths)); - }); -}; - -module.exports.sync = function (patterns, opts) { - var sortedPatterns = sortPatterns(patterns); - - if (sortedPatterns.positives.length === 0) { - return []; - } - - return sortedPatterns.positives.reduce(function (ret, positive) { - return union(ret, glob.sync(positive.pattern, setIgnore(opts, sortedPatterns.negatives, positive.index))); - }, []); -}; diff --git a/node_modules/rework-import/node_modules/globby/license b/node_modules/rework-import/node_modules/globby/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/rework-import/node_modules/globby/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/rework-import/node_modules/globby/package.json b/node_modules/rework-import/node_modules/globby/package.json deleted file mode 100644 index 79f4420..0000000 --- a/node_modules/rework-import/node_modules/globby/package.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "globby@^2.0.0", - "scope": null, - "escapedName": "globby", - "name": "globby", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/rework-import" - ] - ], - "_from": "globby@>=2.0.0 <3.0.0", - "_id": "globby@2.1.0", - "_inCache": true, - "_location": "/rework-import/globby", - "_nodeVersion": "0.12.5", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.11.2", - "_phantomChildren": {}, - "_requested": { - "raw": "globby@^2.0.0", - "scope": null, - "escapedName": "globby", - "name": "globby", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/rework-import" - ], - "_resolved": "https://registry.npmjs.org/globby/-/globby-2.1.0.tgz", - "_shasum": "9e9192bcd33f4ab6a4f894e5e7ea8b713213c482", - "_shrinkwrap": null, - "_spec": "globby@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/rework-import", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/globby/issues" - }, - "dependencies": { - "array-union": "^1.0.1", - "async": "^1.2.1", - "glob": "^5.0.3", - "object-assign": "^3.0.0" - }, - "description": "Extends `glob` with support for multiple patterns", - "devDependencies": { - "glob-stream": "git+https://github.com/wearefractal/glob-stream.git#master", - "globby": "git+https://github.com/sindresorhus/globby.git#master", - "matcha": "^0.6.0", - "mocha": "*", - "rimraf": "^2.2.8" - }, - "directories": {}, - "dist": { - "shasum": "9e9192bcd33f4ab6a4f894e5e7ea8b713213c482", - "tarball": "https://registry.npmjs.org/globby/-/globby-2.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "2b49f02ac7211b8de3eb570e0d81d8733b249a9b", - "homepage": "https://github.com/sindresorhus/globby", - "keywords": [ - "glob", - "globs", - "globbing", - "minimatch", - "match", - "matcher", - "pattern", - "patterns", - "find", - "paths", - "files", - "folders", - "dirs", - "directories", - "wildcard", - "wildcards", - "expand", - "multi", - "multiple", - "array", - "all", - "gulpfriendly", - "fnmatch", - "traverse", - "filesystem", - "fs", - "filter", - "util", - "utility" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "globby", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/globby.git" - }, - "scripts": { - "bench": "npm update globby glob-stream && matcha bench.js", - "test": "mocha" - }, - "version": "2.1.0" -} diff --git a/node_modules/rework-import/node_modules/globby/readme.md b/node_modules/rework-import/node_modules/globby/readme.md deleted file mode 100644 index 864d186..0000000 --- a/node_modules/rework-import/node_modules/globby/readme.md +++ /dev/null @@ -1,74 +0,0 @@ -# globby [![Build Status](https://travis-ci.org/sindresorhus/globby.svg?branch=master)](https://travis-ci.org/sindresorhus/globby) - -> Extends [glob](https://github.com/isaacs/node-glob) with support for multiple patterns - - -## Install - -``` -$ npm install --save globby -``` - - -## Usage - -``` -├── unicorn -├── cake -└── rainbow -``` - -```js -var globby = require('globby'); - -globby(['*', '!cake'], function (err, paths) { - console.log(paths); - //=> ['unicorn', 'rainbows'] -}); -``` - - -## API - -### globby(patterns, [options], callback) - -### globby.sync(patterns, [options]) - -#### patterns - -*Required* -Type: `string`, `array` - -See supported minimatch [patterns](https://github.com/isaacs/minimatch#usage). - -#### options - -Type: `object` - -See the node-glob [options](https://github.com/isaacs/node-glob#options). - -#### callback(err, paths) - - -## Globbing patterns - -Just a quick overview. - -- `*` matches any number of characters, but not `/` -- `?` matches a single character, but not `/` -- `**` matches any number of characters, including `/`, as long as it's the only thing in a path part -- `{}` allows for a comma-separated list of "or" expressions -- `!` at the beginning of a pattern will negate the match - -[Various patterns and expected matches](https://github.com/sindresorhus/multimatch/blob/master/test.js). - - -## Related - -- [multimatch](https://github.com/sindresorhus/multimatch) - Match against a list instead of the filesystem. -- [glob-stream](https://github.com/wearefractal/glob-stream) - Streaming alternative. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/rework-import/node_modules/object-assign/index.js b/node_modules/rework-import/node_modules/object-assign/index.js deleted file mode 100644 index 2164f93..0000000 --- a/node_modules/rework-import/node_modules/object-assign/index.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; -var propIsEnumerable = Object.prototype.propertyIsEnumerable; - -function ToObject(val) { - if (val == null) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); -} - -function ownEnumerableKeys(obj) { - var keys = Object.getOwnPropertyNames(obj); - - if (Object.getOwnPropertySymbols) { - keys = keys.concat(Object.getOwnPropertySymbols(obj)); - } - - return keys.filter(function (key) { - return propIsEnumerable.call(obj, key); - }); -} - -module.exports = Object.assign || function (target, source) { - var from; - var keys; - var to = ToObject(target); - - for (var s = 1; s < arguments.length; s++) { - from = arguments[s]; - keys = ownEnumerableKeys(Object(from)); - - for (var i = 0; i < keys.length; i++) { - to[keys[i]] = from[keys[i]]; - } - } - - return to; -}; diff --git a/node_modules/rework-import/node_modules/object-assign/license b/node_modules/rework-import/node_modules/object-assign/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/rework-import/node_modules/object-assign/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/rework-import/node_modules/object-assign/package.json b/node_modules/rework-import/node_modules/object-assign/package.json deleted file mode 100644 index a47f2c2..0000000 --- a/node_modules/rework-import/node_modules/object-assign/package.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "object-assign@^3.0.0", - "scope": null, - "escapedName": "object-assign", - "name": "object-assign", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/rework-import/node_modules/globby" - ] - ], - "_from": "object-assign@>=3.0.0 <4.0.0", - "_id": "object-assign@3.0.0", - "_inCache": true, - "_location": "/rework-import/object-assign", - "_nodeVersion": "0.12.4", - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.10.1", - "_phantomChildren": {}, - "_requested": { - "raw": "object-assign@^3.0.0", - "scope": null, - "escapedName": "object-assign", - "name": "object-assign", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/rework-import/globby" - ], - "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "_shasum": "9bedd5ca0897949bca47e7ff408062d549f587f2", - "_shrinkwrap": null, - "_spec": "object-assign@^3.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/rework-import/node_modules/globby", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/object-assign/issues" - }, - "dependencies": {}, - "description": "ES6 Object.assign() ponyfill", - "devDependencies": { - "mocha": "*" - }, - "directories": {}, - "dist": { - "shasum": "9bedd5ca0897949bca47e7ff408062d549f587f2", - "tarball": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "02622dcb0d82bd81a071ed0b04fedf5e5eea7059", - "homepage": "https://github.com/sindresorhus/object-assign", - "keywords": [ - "object", - "assign", - "extend", - "properties", - "es6", - "ecmascript", - "harmony", - "ponyfill", - "prollyfill", - "polyfill", - "shim", - "browser" - ], - "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], - "name": "object-assign", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/object-assign.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "3.0.0" -} diff --git a/node_modules/rework-import/node_modules/object-assign/readme.md b/node_modules/rework-import/node_modules/object-assign/readme.md deleted file mode 100644 index aee51c1..0000000 --- a/node_modules/rework-import/node_modules/object-assign/readme.md +++ /dev/null @@ -1,51 +0,0 @@ -# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign) - -> ES6 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) ponyfill - -> Ponyfill: A polyfill that doesn't overwrite the native method - - -## Install - -```sh -$ npm install --save object-assign -``` - - -## Usage - -```js -var objectAssign = require('object-assign'); - -objectAssign({foo: 0}, {bar: 1}); -//=> {foo: 0, bar: 1} - -// multiple sources -objectAssign({foo: 0}, {bar: 1}, {baz: 2}); -//=> {foo: 0, bar: 1, baz: 2} - -// overwrites equal keys -objectAssign({foo: 0}, {foo: 1}, {foo: 2}); -//=> {foo: 2} - -// ignores null and undefined sources -objectAssign({foo: 0}, null, {bar: 1}, undefined); -//=> {foo: 0, bar: 1} -``` - - -## API - -### objectAssign(target, source, [source, ...]) - -Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones. - - -## Resources - -- [ES6 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign) - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/rework-import/package.json b/node_modules/rework-import/package.json deleted file mode 100644 index ac2e22e..0000000 --- a/node_modules/rework-import/package.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rework-import@^2.0.0", - "scope": null, - "escapedName": "rework-import", - "name": "rework-import", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css" - ] - ], - "_from": "rework-import@>=2.0.0 <3.0.0", - "_id": "rework-import@2.1.0", - "_inCache": true, - "_location": "/rework-import", - "_nodeVersion": "2.3.0", - "_npmUser": { - "name": "kevva", - "email": "kevinmartensson@gmail.com" - }, - "_npmVersion": "3.1.0", - "_phantomChildren": { - "array-union": "1.0.2", - "async": "1.5.2", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.3", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - }, - "_requested": { - "raw": "rework-import@^2.0.0", - "scope": null, - "escapedName": "rework-import", - "name": "rework-import", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat-css" - ], - "_resolved": "https://registry.npmjs.org/rework-import/-/rework-import-2.1.0.tgz", - "_shasum": "c26ed2b53159ac7be2ec60da223ef89603c1ef1f", - "_shrinkwrap": null, - "_spec": "rework-import@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css", - "authors": [ - "Kevin Mårtensson ", - "Jason Campbell ", - "Maxime Thirouin " - ], - "bugs": { - "url": "https://github.com/reworkcss/rework-import/issues" - }, - "dependencies": { - "css": "^2.0.0", - "globby": "^2.0.0", - "parse-import": "^2.0.0", - "url-regex": "^3.0.0" - }, - "description": "A rework plugin to read and inline CSS files via @import", - "devDependencies": { - "ava": "^0.0.4", - "css-whitespace": "^1.1.0", - "rework": "^1.0.0" - }, - "directories": {}, - "dist": { - "shasum": "c26ed2b53159ac7be2ec60da223ef89603c1ef1f", - "tarball": "https://registry.npmjs.org/rework-import/-/rework-import-2.1.0.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "320f55acce97acae75ba341d0616037f5af67e43", - "homepage": "https://github.com/reworkcss/rework-import#readme", - "keywords": [ - "css", - "import", - "media", - "rework" - ], - "license": "MIT", - "maintainers": [ - { - "name": "jxson", - "email": "jason@js.la" - }, - { - "name": "moox", - "email": "m@moox.io" - }, - { - "name": "kevva", - "email": "kevinmartensson@gmail.com" - } - ], - "name": "rework-import", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/reworkcss/rework-import.git" - }, - "scripts": { - "test": "node test/test.js" - }, - "version": "2.1.0" -} diff --git a/node_modules/rework-plugin-function/.npmignore b/node_modules/rework-plugin-function/.npmignore deleted file mode 100644 index 30d74d2..0000000 --- a/node_modules/rework-plugin-function/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test \ No newline at end of file diff --git a/node_modules/rework-plugin-function/.travis.yml b/node_modules/rework-plugin-function/.travis.yml deleted file mode 100644 index 6e5919d..0000000 --- a/node_modules/rework-plugin-function/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "0.10" diff --git a/node_modules/rework-plugin-function/LICENSE b/node_modules/rework-plugin-function/LICENSE deleted file mode 100644 index d764ecd..0000000 --- a/node_modules/rework-plugin-function/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 reworkcss - -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. \ No newline at end of file diff --git a/node_modules/rework-plugin-function/README.md b/node_modules/rework-plugin-function/README.md deleted file mode 100644 index 86a5d99..0000000 --- a/node_modules/rework-plugin-function/README.md +++ /dev/null @@ -1,68 +0,0 @@ -rework-plugin-function -==================== - -[![Build Status](https://travis-ci.org/reworkcss/rework-plugin-function.png)](https://travis-ci.org/reworkcss/rework-plugin-function) - -function() plugin for rework, formerly included in core - -Add user-defined CSS functions. - -For example create `black(0.5)` shortcut, to replace -long `rgba(0, 0, 0, 0.5)`. - -```js -var rework = require('rework'), -var reworkFunction = require('rework-plugin-function'); - -var css = rework(css) - .use(reworkFunction({ black: black })) - .toString() - -function black(opacity) { - return 'rgba(0, 0, 0, ' + opacity + ')'; -} -``` - -User code will receive CSS arguments and replace user-defined function -by returned code. - -```css -input { - box-shadow: 0 0 5px black(0.7); -} -``` - -yields: - -```css -input { - box-shadow: 0 0 5px rgba(0, 0, 0, 0.7); -} -``` - -Nested functions works well too: - -```javascript -var css = rework(css) - .use(reworkFunction({ - subtract: function(a, b) { return a - b }, - multiply: function(a, b) { return a * b }, - divide: function(a, b) { return a / b }, - floor: Math.floor - })) -.toString() -``` - -```css -input { - top: divide(subtract(30, floor(multiply(20, 10))), 2); -} -``` - -Would yield: - -```css -input { - top: -85; -} -``` diff --git a/node_modules/rework-plugin-function/index.js b/node_modules/rework-plugin-function/index.js deleted file mode 100644 index f6c9289..0000000 --- a/node_modules/rework-plugin-function/index.js +++ /dev/null @@ -1,102 +0,0 @@ - -/** - * Module dependencies. - */ - -var visit = require('rework-visit'); - -/** - * Define custom function. - */ - -module.exports = function(functions, args) { - if (!functions) throw new Error('functions object required'); - return function(style){ - var functionMatcher = functionMatcherBuilder(Object.keys(functions).join('|')); - - visit(style, function(declarations){ - func(declarations, functions, functionMatcher, args); - }); - } -}; - -/** - * Visit declarations and apply functions. - * - * @param {Array} declarations - * @param {Object} functions - * @param {RegExp} functionMatcher - * @param {Boolean} [parseArgs] - * @api private - */ - -function func(declarations, functions, functionMatcher, parseArgs) { - if (!declarations) return; - if (false !== parseArgs) parseArgs = true; - - declarations.forEach(function(decl){ - if ('comment' == decl.type) return; - var generatedFuncs = [], result, generatedFunc; - - while (decl.value.match(functionMatcher)) { - decl.value = decl.value.replace(functionMatcher, function(_, name, args){ - if (parseArgs) { - args = args.split(/\s*,\s*/).map(strip); - } else { - args = [strip(args)]; - } - // Ensure result is string - result = '' + functions[name].apply(decl, args); - - // Prevent fall into infinite loop like this: - // - // { - // url: function(path) { - // return 'url(' + '/some/prefix' + path + ')' - // } - // } - // - generatedFunc = {from: name, to: name + getRandomString()}; - result = result.replace(functionMatcherBuilder(name), generatedFunc.to + '($2)'); - generatedFuncs.push(generatedFunc); - return result; - }); - } - - generatedFuncs.forEach(function(func) { - decl.value = decl.value.replace(func.to, func.from); - }) - }); -} - -/** - * Build function regexp - * - * @param {String} name - * @api private - */ - -function functionMatcherBuilder(name) { - // /(?!\W+)(\w+)\(([^()]+)\)/ - return new RegExp("(?!\\W+)(" + name + ")\\(([^\(\)]+)\\)"); -} - -/** - * get random string - * - * @api private - */ - -function getRandomString() { - return Math.random().toString(36).slice(2); -} - -/** - * strip quotes from string - * @api private - */ - -function strip(str) { - if ('"' == str[0] || "'" == str[0]) return str.slice(1, -1); - return str; -} diff --git a/node_modules/rework-plugin-function/package.json b/node_modules/rework-plugin-function/package.json deleted file mode 100644 index 9909614..0000000 --- a/node_modules/rework-plugin-function/package.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rework-plugin-function@^1.0.0", - "scope": null, - "escapedName": "rework-plugin-function", - "name": "rework-plugin-function", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/rework-plugin-url" - ] - ], - "_from": "rework-plugin-function@>=1.0.0 <2.0.0", - "_id": "rework-plugin-function@1.0.2", - "_inCache": true, - "_location": "/rework-plugin-function", - "_nodeVersion": "0.10.32", - "_npmUser": { - "name": "bclinkinbeard", - "email": "ben.clinkinbeard@gmail.com" - }, - "_npmVersion": "2.5.0", - "_phantomChildren": {}, - "_requested": { - "raw": "rework-plugin-function@^1.0.0", - "scope": null, - "escapedName": "rework-plugin-function", - "name": "rework-plugin-function", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/rework-plugin-url" - ], - "_resolved": "https://registry.npmjs.org/rework-plugin-function/-/rework-plugin-function-1.0.2.tgz", - "_shasum": "12ce46fb5b29b5d935146683f6b98cf49d2373b9", - "_shrinkwrap": null, - "_spec": "rework-plugin-function@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/rework-plugin-url", - "author": { - "name": "reworkcss" - }, - "bugs": { - "url": "https://github.com/reworkcss/rework-plugin-function/issues" - }, - "dependencies": { - "rework-visit": "^1.0.0" - }, - "description": "function() plugin for rework, formerly included in core", - "devDependencies": { - "mocha": "^1.17.1", - "rework": "^1.0.0", - "should": "^3.1.3" - }, - "directories": {}, - "dist": { - "shasum": "12ce46fb5b29b5d935146683f6b98cf49d2373b9", - "tarball": "https://registry.npmjs.org/rework-plugin-function/-/rework-plugin-function-1.0.2.tgz" - }, - "gitHead": "a5b83c1e3a103bad7ec21afba44c7aa015151e30", - "homepage": "https://github.com/reworkcss/rework-plugin-function", - "keywords": [ - "browser", - "server", - "css", - "preprocess", - "transform" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "bclinkinbeard", - "email": "ben.clinkinbeard@gmail.com" - }, - { - "name": "jongleberry", - "email": "jonathanrichardong@gmail.com" - }, - { - "name": "conradz", - "email": "me@conradz.com" - }, - { - "name": "necolas", - "email": "nicolasgallagher@gmail.com" - }, - { - "name": "slexaxton", - "email": "alexsexton@gmail.com" - } - ], - "name": "rework-plugin-function", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/reworkcss/rework-plugin-function.git" - }, - "scripts": { - "test": "mocha --require should --reporter spec" - }, - "version": "1.0.2" -} diff --git a/node_modules/rework-plugin-url/.npmignore b/node_modules/rework-plugin-url/.npmignore deleted file mode 100644 index 30d74d2..0000000 --- a/node_modules/rework-plugin-url/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test \ No newline at end of file diff --git a/node_modules/rework-plugin-url/.travis.yml b/node_modules/rework-plugin-url/.travis.yml deleted file mode 100644 index 6e5919d..0000000 --- a/node_modules/rework-plugin-url/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "0.10" diff --git a/node_modules/rework-plugin-url/LICENSE b/node_modules/rework-plugin-url/LICENSE deleted file mode 100644 index d764ecd..0000000 --- a/node_modules/rework-plugin-url/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 reworkcss - -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. \ No newline at end of file diff --git a/node_modules/rework-plugin-url/README.md b/node_modules/rework-plugin-url/README.md deleted file mode 100644 index 437f9bd..0000000 --- a/node_modules/rework-plugin-url/README.md +++ /dev/null @@ -1,28 +0,0 @@ -rework-plugin-url -==================== - -[![Build Status](https://travis-ci.org/reworkcss/rework-plugin-url.png)](https://travis-ci.org/reworkcss/rework-plugin-url) - -Map `url()` calls. Replace all `url()`s using a given function. - -```js -var css = rework(read(css)) - .use(rework.url(function(url){ - return 'http://example.com' + url; - })) - .toString() -``` - -```css -body { - background: url(/images/bg.png); -} -``` - -yields: - -```css -body { - background: url(http://example.com/images/bg.png); -} -``` diff --git a/node_modules/rework-plugin-url/index.js b/node_modules/rework-plugin-url/index.js deleted file mode 100644 index a7076d7..0000000 --- a/node_modules/rework-plugin-url/index.js +++ /dev/null @@ -1,31 +0,0 @@ - -/** - * Module dependencies. - */ - -var func = require('rework-plugin-function'); - -/** - * Map `url()` calls. - * - * body { - * background: url(/images/bg.png); - * } - * - * yields: - * - * body { - * background: url(http://example.com/images/bg.png); - * } - * - */ - -module.exports = function(fn) { - return func({ - url: function(path){ - path = path.split('"').join(''); - path = path.split('\'').join(''); - return 'url("' + fn.call(this, path.trim()) + '")'; - } - }, false); -}; diff --git a/node_modules/rework-plugin-url/package.json b/node_modules/rework-plugin-url/package.json deleted file mode 100644 index 5c05d5d..0000000 --- a/node_modules/rework-plugin-url/package.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rework-plugin-url@^1.0.1", - "scope": null, - "escapedName": "rework-plugin-url", - "name": "rework-plugin-url", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css" - ] - ], - "_from": "rework-plugin-url@>=1.0.1 <2.0.0", - "_id": "rework-plugin-url@1.1.0", - "_inCache": true, - "_location": "/rework-plugin-url", - "_nodeVersion": "2.3.1", - "_npmUser": { - "name": "conradz", - "email": "me@conradz.com" - }, - "_npmVersion": "3.1.2", - "_phantomChildren": {}, - "_requested": { - "raw": "rework-plugin-url@^1.0.1", - "scope": null, - "escapedName": "rework-plugin-url", - "name": "rework-plugin-url", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat-css" - ], - "_resolved": "https://registry.npmjs.org/rework-plugin-url/-/rework-plugin-url-1.1.0.tgz", - "_shasum": "ab53e8b1057b9d5ecc1c8273ff7db18608375c45", - "_shrinkwrap": null, - "_spec": "rework-plugin-url@^1.0.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css", - "author": { - "name": "reworkcss" - }, - "bugs": { - "url": "https://github.com/reworkcss/rework-plugin-url/issues" - }, - "dependencies": { - "rework-plugin-function": "^1.0.0" - }, - "description": "url() plugin for rework, formerly included in core", - "devDependencies": { - "mocha": "^1.17.1", - "rework": "^1.0.0", - "should": "^3.1.3" - }, - "directories": {}, - "dist": { - "shasum": "ab53e8b1057b9d5ecc1c8273ff7db18608375c45", - "tarball": "https://registry.npmjs.org/rework-plugin-url/-/rework-plugin-url-1.1.0.tgz" - }, - "gitHead": "80d1bf7c4d681cd82c09f1ec12c4d6e7b3588e4b", - "homepage": "https://github.com/reworkcss/rework-plugin-url", - "keywords": [ - "browser", - "server", - "css", - "preprocess", - "transform" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "bclinkinbeard", - "email": "ben.clinkinbeard@gmail.com" - }, - { - "name": "slexaxton", - "email": "alexsexton@gmail.com" - }, - { - "name": "necolas", - "email": "nicolasgallagher@gmail.com" - }, - { - "name": "conradz", - "email": "me@conradz.com" - }, - { - "name": "jongleberry", - "email": "jonathanrichardong@gmail.com" - } - ], - "name": "rework-plugin-url", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/reworkcss/rework-plugin-url.git" - }, - "scripts": { - "test": "mocha --require should --reporter spec" - }, - "version": "1.1.0" -} diff --git a/node_modules/rework-visit/Makefile b/node_modules/rework-visit/Makefile deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/rework-visit/Readme.md b/node_modules/rework-visit/Readme.md deleted file mode 100644 index a44283b..0000000 --- a/node_modules/rework-visit/Readme.md +++ /dev/null @@ -1,8 +0,0 @@ - -# rework-visit - - Rework declaration visitor for plugins (and rework core). - -# License - - MIT diff --git a/node_modules/rework-visit/component.json b/node_modules/rework-visit/component.json deleted file mode 100644 index 112ce86..0000000 --- a/node_modules/rework-visit/component.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "rework-visit", - "repo": "visionmedia/rework-visit", - "version": "1.0.0", - "description": "Rework declaration visitor utility", - "keywords": ["css", "rework"], - "license": "MIT", - "scripts": ["index.js"] -} diff --git a/node_modules/rework-visit/index.js b/node_modules/rework-visit/index.js deleted file mode 100644 index ea75955..0000000 --- a/node_modules/rework-visit/index.js +++ /dev/null @@ -1,38 +0,0 @@ - -/** - * Expose `visit()`. - */ - -module.exports = visit; - -/** - * Visit `node`'s declarations recursively and - * invoke `fn(declarations, node)`. - * - * @param {Object} node - * @param {Function} fn - * @api private - */ - -function visit(node, fn){ - node.rules.forEach(function(rule){ - // @media etc - if (rule.rules) { - visit(rule, fn); - return; - } - - // keyframes - if (rule.keyframes) { - rule.keyframes.forEach(function(keyframe){ - fn(keyframe.declarations, rule); - }); - return; - } - - // @charset, @import etc - if (!rule.declarations) return; - - fn(rule.declarations, node); - }); -}; diff --git a/node_modules/rework-visit/package.json b/node_modules/rework-visit/package.json deleted file mode 100644 index 23257fa..0000000 --- a/node_modules/rework-visit/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rework-visit@^1.0.0", - "scope": null, - "escapedName": "rework-visit", - "name": "rework-visit", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/rework-plugin-function" - ] - ], - "_from": "rework-visit@>=1.0.0 <2.0.0", - "_id": "rework-visit@1.0.0", - "_inCache": true, - "_location": "/rework-visit", - "_npmUser": { - "name": "tjholowaychuk", - "email": "tj@vision-media.ca" - }, - "_npmVersion": "1.2.14", - "_phantomChildren": {}, - "_requested": { - "raw": "rework-visit@^1.0.0", - "scope": null, - "escapedName": "rework-visit", - "name": "rework-visit", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/rework-plugin-function" - ], - "_resolved": "https://registry.npmjs.org/rework-visit/-/rework-visit-1.0.0.tgz", - "_shasum": "9945b2803f219e2f7aca00adb8bc9f640f842c9a", - "_shrinkwrap": null, - "_spec": "rework-visit@^1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/rework-plugin-function", - "dependencies": {}, - "description": "Rework declaration visitor utility", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "9945b2803f219e2f7aca00adb8bc9f640f842c9a", - "tarball": "https://registry.npmjs.org/rework-visit/-/rework-visit-1.0.0.tgz" - }, - "keywords": [ - "css", - "rework" - ], - "license": "MIT", - "maintainers": [ - { - "name": "tjholowaychuk", - "email": "tj@vision-media.ca" - } - ], - "name": "rework-visit", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "version": "1.0.0" -} diff --git a/node_modules/rework/Readme.md b/node_modules/rework/Readme.md deleted file mode 100644 index cdb6d40..0000000 --- a/node_modules/rework/Readme.md +++ /dev/null @@ -1,101 +0,0 @@ -# rework [![Build Status](https://travis-ci.org/reworkcss/rework.png)](https://travis-ci.org/reworkcss/rework) - -CSS manipulations built on [`css`](https://github.com/reworkcss/css), allowing -you to automate vendor prefixing, create your own properties, inline images, -anything you can imagine! - -Please refer to [`css`](https://github.com/reworkcss/css) for AST documentation -and to report parser/stringifier issues. - -## Installation - - $ npm install rework - -## Usage - -```js -var rework = require('rework'); -var pluginA = require('pluginA'); -var pluginB = require('pluginB'); - -rework('body { font-size: 12px; }', { source: 'source.css' }) - .use(pluginA) - .use(pluginB) - .toString({ sourcemap: true }) -``` - -## API - -### rework(code, [options]) - -Accepts a CSS string and returns a new `Rework` instance. The `options` are -passed directly to `css.parse`. - -### Rework#use(fn) - -Use the given plugin `fn`. A rework "plugin" is simply a function accepting the -stylesheet root node and the `Rework` instance. - -### Rework#toString([options]) - -Returns the string representation of the manipulated CSS. The `options` are -passed directly to `css.stringify`. - -Unlike `css.stringify`, if you pass `sourcemap: true` a string will still be -returned, with the source map inlined. Also use `sourcemapAsObject: true` if -you want the `css.stringify` return value. - -## Plugins - -Rework has a rich collection of plugins and mixins. Browse all the [Rework -plugins](https://www.npmjs.org/search?q=rework) available on npm. - -Plugins of particular note: - -- [at2x](https://github.com/reworkcss/rework-plugin-at2x/) – serve high resolution images -- [calc](https://github.com/reworkcss/rework-calc) – resolve simple `calc()` expressions -- [colors](https://github.com/reworkcss/rework-plugin-colors/) – color helpers like `rgba(#fc0, .5)` -- [ease](https://github.com/reworkcss/rework-plugin-ease/) – several additional easing functions -- [extend](https://github.com/reworkcss/rework-inherit/) – `extend: selector` support -- [function](https://github.com/reworkcss/rework-plugin-function/) – user-defined CSS functions -- [import](https://github.com/reworkcss/rework-import) – read and inline CSS via `@import` -- [inline](https://github.com/reworkcss/rework-plugin-inline) – inline assets as data URIs -- [mixin](https://github.com/reworkcss/rework-plugin-mixin/) – custom property logic with mixins -- [npm](https://github.com/reworkcss/rework-npm) - inline CSS via `@import` using node's module resolver -- [references](https://github.com/reworkcss/rework-plugin-references/) – property references like `height: @width` -- [url](https://github.com/reworkcss/rework-plugin-url/) – rewrite `url()`s with a given function -- [variables](https://github.com/reworkcss/rework-vars/) – W3C-style variables - -## Built with rework - -- [styl](https://github.com/visionmedia/styl) -- [rework-pure-css](https://github.com/ianstormtaylor/rework-pure-css) -- [rework-suit](https://github.com/suitcss/rework-suit) -- [resin](https://github.com/topcoat/resin) -- [Myth](https://github.com/segmentio/myth) - -## License - -(The MIT License) - -Copyright (c) 2012–2013 TJ Holowaychuk - -Copyright (c) 2014 Contributors - -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/rework/index.js b/node_modules/rework/index.js deleted file mode 100644 index 183d637..0000000 --- a/node_modules/rework/index.js +++ /dev/null @@ -1,82 +0,0 @@ - -/** - * Module dependencies. - */ - -var css = require('css'); -var convertSourceMap = require('convert-source-map'); -var parse = css.parse; -var stringify = css.stringify; - -/** - * Expose `rework`. - */ - -exports = module.exports = rework; - -/** - * Initialize a new stylesheet `Rework` with `str`. - * - * @param {String} str - * @param {Object} options - * @return {Rework} - * @api public - */ - -function rework(str, options) { - return new Rework(parse(str, options)); -} - -/** - * Initialize a new stylesheet `Rework` with `obj`. - * - * @param {Object} obj - * @api private - */ - -function Rework(obj) { - this.obj = obj; -} - -/** - * Use the given plugin `fn(style, rework)`. - * - * @param {Function} fn - * @return {Rework} - * @api public - */ - -Rework.prototype.use = function(fn){ - fn(this.obj.stylesheet, this); - return this; -}; - -/** - * Stringify the stylesheet. - * - * @param {Object} options - * @return {String} - * @api public - */ - -Rework.prototype.toString = function(options){ - options = options || {}; - var result = stringify(this.obj, options); - if (options.sourcemap && !options.sourcemapAsObject) { - result = result.code + '\n' + sourcemapToComment(result.map); - } - return result; -}; - -/** - * Convert sourcemap to base64-encoded comment - * - * @param {Object} map - * @return {String} - * @api private - */ - -function sourcemapToComment(map) { - var content = convertSourceMap.fromObject(map).toBase64(); - return '/*# sourceMappingURL=data:application/json;base64,' + content + ' */'; -} diff --git a/node_modules/rework/package.json b/node_modules/rework/package.json deleted file mode 100644 index 65b9f92..0000000 --- a/node_modules/rework/package.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rework@~1.0.0", - "scope": null, - "escapedName": "rework", - "name": "rework", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css" - ] - ], - "_from": "rework@>=1.0.0 <1.1.0", - "_id": "rework@1.0.1", - "_inCache": true, - "_location": "/rework", - "_npmUser": { - "name": "necolas", - "email": "nicolasgallagher@gmail.com" - }, - "_npmVersion": "1.4.3", - "_phantomChildren": {}, - "_requested": { - "raw": "rework@~1.0.0", - "scope": null, - "escapedName": "rework", - "name": "rework", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-concat-css" - ], - "_resolved": "https://registry.npmjs.org/rework/-/rework-1.0.1.tgz", - "_shasum": "30806a841342b54510aa4110850cd48534144aa7", - "_shrinkwrap": null, - "_spec": "rework@~1.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-concat-css", - "author": { - "name": "TJ Holowaychuk", - "email": "tj@vision-media.ca" - }, - "bugs": { - "url": "https://github.com/reworkcss/rework/issues" - }, - "dependencies": { - "convert-source-map": "^0.3.3", - "css": "^2.0.0" - }, - "description": "Plugin framework for CSS preprocessing", - "devDependencies": { - "mocha": "^1.20.1", - "should": "^4.0.4" - }, - "directories": {}, - "dist": { - "shasum": "30806a841342b54510aa4110850cd48534144aa7", - "tarball": "https://registry.npmjs.org/rework/-/rework-1.0.1.tgz" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/reworkcss/rework", - "keywords": [ - "css", - "manipulation", - "preprocess", - "transform", - "server" - ], - "main": "index", - "maintainers": [ - { - "name": "tjholowaychuk", - "email": "tj@vision-media.ca" - }, - { - "name": "jonathanong", - "email": "jonathanrichardong@gmail.com" - }, - { - "name": "jongleberry", - "email": "jonathanrichardong@gmail.com" - }, - { - "name": "conradz", - "email": "me@conradz.com" - }, - { - "name": "necolas", - "email": "nicolasgallagher@gmail.com" - }, - { - "name": "anthonyshort", - "email": "antshort@gmail.com" - }, - { - "name": "ianstormtaylor", - "email": "ian@ianstormtaylor.com" - }, - { - "name": "moox", - "email": "m@moox.io" - }, - { - "name": "clintwood", - "email": "clint@anotherway.co.za" - }, - { - "name": "lydell", - "email": "simon.lydell@gmail.com" - }, - { - "name": "slexaxton", - "email": "alexsexton@gmail.com" - } - ], - "name": "rework", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/reworkcss/rework.git" - }, - "scripts": { - "test": "mocha --require should --reporter spec" - }, - "version": "1.0.1" -} diff --git a/node_modules/right-align/LICENSE b/node_modules/right-align/LICENSE deleted file mode 100644 index 65f90ac..0000000 --- a/node_modules/right-align/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/right-align/README.md b/node_modules/right-align/README.md deleted file mode 100644 index 3abdfb3..0000000 --- a/node_modules/right-align/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# right-align [![NPM version](https://badge.fury.io/js/right-align.svg)](http://badge.fury.io/js/right-align) - -> Right-align the text in a string. - -Install with [npm](https://www.npmjs.com/) - -```sh -$ npm i right-align --save -``` - -## Usage - -```js -var rightAlign = require('right-align'); -rightAlign(string); -``` - -**Example** - -If used on the following: - -``` -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 -``` - -The result would be: - -``` - 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 - -* [align-text](https://github.com/jonschlinkert/align-text): Align the text in a string. -* [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 -* [repeat-string](https://github.com/jonschlinkert/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string. -* [repeat-element](https://github.com/jonschlinkert/repeat-element): Create an array by repeating the given value n times. -* [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/right-align/issues/new) - -## Author - -**Jon Schlinkert** - -+ [github/jonschlinkert](https://github.com/jonschlinkert) -+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) - -## License - -Copyright © 2015 Jon Schlinkert -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/right-align/index.js b/node_modules/right-align/index.js deleted file mode 100644 index ad54f5f..0000000 --- a/node_modules/right-align/index.js +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * right-align - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */ - -'use strict'; - -var align = require('align-text'); - -module.exports = function rightAlign(val) { - return align(val, function (len, longest) { - return longest - len; - }); -}; diff --git a/node_modules/right-align/package.json b/node_modules/right-align/package.json deleted file mode 100644 index 87ce77b..0000000 --- a/node_modules/right-align/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "right-align@^0.1.1", - "scope": null, - "escapedName": "right-align", - "name": "right-align", - "rawSpec": "^0.1.1", - "spec": ">=0.1.1 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/cliui" - ] - ], - "_from": "right-align@>=0.1.1 <0.2.0", - "_id": "right-align@0.1.3", - "_inCache": true, - "_location": "/right-align", - "_nodeVersion": "0.12.4", - "_npmUser": { - "name": "jonschlinkert", - "email": "github@sellside.com" - }, - "_npmVersion": "2.10.1", - "_phantomChildren": {}, - "_requested": { - "raw": "right-align@^0.1.1", - "scope": null, - "escapedName": "right-align", - "name": "right-align", - "rawSpec": "^0.1.1", - "spec": ">=0.1.1 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/cliui" - ], - "_resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "_shasum": "61339b722fe6a3515689210d24e14c96148613ef", - "_shrinkwrap": null, - "_spec": "right-align@^0.1.1", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/cliui", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/right-align/issues" - }, - "dependencies": { - "align-text": "^0.1.1" - }, - "description": "Right-align the text in a string.", - "devDependencies": { - "mocha": "*", - "should": "*" - }, - "directories": {}, - "dist": { - "shasum": "61339b722fe6a3515689210d24e14c96148613ef", - "tarball": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "gitHead": "23ee38d6eedbcbfed241ace6587ce5730684dd18", - "homepage": "https://github.com/jonschlinkert/right-align", - "keywords": [ - "align", - "align-center", - "center", - "center-align", - "right", - "right-align", - "text", - "typography" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "jonschlinkert", - "email": "github@sellside.com" - } - ], - "name": "right-align", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/jonschlinkert/right-align.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "0.1.3" -} diff --git a/node_modules/rimraf/LICENSE b/node_modules/rimraf/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/rimraf/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/rimraf/README.md b/node_modules/rimraf/README.md deleted file mode 100644 index 423b8cf..0000000 --- a/node_modules/rimraf/README.md +++ /dev/null @@ -1,101 +0,0 @@ -[![Build Status](https://travis-ci.org/isaacs/rimraf.svg?branch=master)](https://travis-ci.org/isaacs/rimraf) [![Dependency Status](https://david-dm.org/isaacs/rimraf.svg)](https://david-dm.org/isaacs/rimraf) [![devDependency Status](https://david-dm.org/isaacs/rimraf/dev-status.svg)](https://david-dm.org/isaacs/rimraf#info=devDependencies) - -The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node. - -Install with `npm install rimraf`, or just drop rimraf.js somewhere. - -## API - -`rimraf(f, [opts], callback)` - -The first parameter will be interpreted as a globbing pattern for files. If you -want to disable globbing you can do so with `opts.disableGlob` (defaults to -`false`). This might be handy, for instance, if you have filenames that contain -globbing wildcard characters. - -The callback will be called with an error if there is one. Certain -errors are handled for you: - -* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of - `opts.maxBusyTries` times before giving up, adding 100ms of wait - between each attempt. The default `maxBusyTries` is 3. -* `ENOENT` - If the file doesn't exist, rimraf will return - successfully, since your desired outcome is already the case. -* `EMFILE` - Since `readdir` requires opening a file descriptor, it's - possible to hit `EMFILE` if too many file descriptors are in use. - In the sync case, there's nothing to be done for this. But in the - async case, rimraf will gradually back off with timeouts up to - `opts.emfileWait` ms, which defaults to 1000. - -## options - -* unlink, chmod, stat, lstat, rmdir, readdir, - unlinkSync, chmodSync, statSync, lstatSync, rmdirSync, readdirSync - - In order to use a custom file system library, you can override - specific fs functions on the options object. - - If any of these functions are present on the options object, then - the supplied function will be used instead of the default fs - method. - - Sync methods are only relevant for `rimraf.sync()`, of course. - - For example: - - ```javascript - var myCustomFS = require('some-custom-fs') - - rimraf('some-thing', myCustomFS, callback) - ``` - -* maxBusyTries - - If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error code is encountered - on Windows systems, then rimraf will retry with a linear backoff - wait of 100ms longer on each try. The default maxBusyTries is 3. - - Only relevant for async usage. - -* emfileWait - - If an `EMFILE` error is encountered, then rimraf will retry - repeatedly with a linear backoff of 1ms longer on each try, until - the timeout counter hits this max. The default limit is 1000. - - If you repeatedly encounter `EMFILE` errors, then consider using - [graceful-fs](http://npm.im/graceful-fs) in your program. - - Only relevant for async usage. - -* glob - - Set to `false` to disable [glob](http://npm.im/glob) pattern - matching. - - Set to an object to pass options to the glob module. The default - glob options are `{ nosort: true, silent: true }`. - - Glob version 6 is used in this module. - - Relevant for both sync and async usage. - -* disableGlob - - Set to any non-falsey value to disable globbing entirely. - (Equivalent to setting `glob: false`.) - -## rimraf.sync - -It can remove stuff synchronously, too. But that's not so good. Use -the async API. It's better. - -## CLI - -If installed with `npm install rimraf -g` it can be used as a global -command `rimraf [ ...]` which is useful for cross platform support. - -## mkdirp - -If you need to create a directory recursively, check out -[mkdirp](https://github.com/substack/node-mkdirp). diff --git a/node_modules/rimraf/bin.js b/node_modules/rimraf/bin.js deleted file mode 100755 index 0d1e17b..0000000 --- a/node_modules/rimraf/bin.js +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env node - -var rimraf = require('./') - -var help = false -var dashdash = false -var noglob = false -var args = process.argv.slice(2).filter(function(arg) { - if (dashdash) - return !!arg - else if (arg === '--') - dashdash = true - else if (arg === '--no-glob' || arg === '-G') - noglob = true - else if (arg === '--glob' || arg === '-g') - noglob = false - else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/)) - help = true - else - return !!arg -}) - -if (help || args.length === 0) { - // If they didn't ask for help, then this is not a "success" - var log = help ? console.log : console.error - log('Usage: rimraf [ ...]') - log('') - log(' Deletes all files and folders at "path" recursively.') - log('') - log('Options:') - log('') - log(' -h, --help Display this usage info') - log(' -G, --no-glob Do not expand glob patterns in arguments') - log(' -g, --glob Expand glob patterns in arguments (default)') - process.exit(help ? 0 : 1) -} else - go(0) - -function go (n) { - if (n >= args.length) - return - var options = {} - if (noglob) - options = { glob: false } - rimraf(args[n], options, function (er) { - if (er) - throw er - go(n+1) - }) -} diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json deleted file mode 100644 index c2a5581..0000000 --- a/node_modules/rimraf/package.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rimraf@^2.2.8", - "scope": null, - "escapedName": "rimraf", - "name": "rimraf", - "rawSpec": "^2.2.8", - "spec": ">=2.2.8 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/del" - ] - ], - "_from": "rimraf@>=2.2.8 <3.0.0", - "_id": "rimraf@2.6.1", - "_inCache": true, - "_location": "/rimraf", - "_nodeVersion": "8.0.0-pre", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/rimraf-2.6.1.tgz_1487908074285_0.8205490333493799" - }, - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "4.3.0", - "_phantomChildren": {}, - "_requested": { - "raw": "rimraf@^2.2.8", - "scope": null, - "escapedName": "rimraf", - "name": "rimraf", - "rawSpec": "^2.2.8", - "spec": ">=2.2.8 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/del" - ], - "_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz", - "_shasum": "c2338ec643df7a1b7fe5c54fa86f57428a55f33d", - "_shrinkwrap": null, - "_spec": "rimraf@^2.2.8", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/del", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bin": { - "rimraf": "./bin.js" - }, - "bugs": { - "url": "https://github.com/isaacs/rimraf/issues" - }, - "dependencies": { - "glob": "^7.0.5" - }, - "description": "A deep deletion module for node (like `rm -rf`)", - "devDependencies": { - "mkdirp": "^0.5.1", - "tap": "^10.1.2" - }, - "directories": {}, - "dist": { - "shasum": "c2338ec643df7a1b7fe5c54fa86f57428a55f33d", - "tarball": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz" - }, - "files": [ - "LICENSE", - "README.md", - "bin.js", - "rimraf.js" - ], - "gitHead": "d84fe2cc6646d30a401baadcee22ae105a2d4909", - "homepage": "https://github.com/isaacs/rimraf#readme", - "license": "ISC", - "main": "rimraf.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "rimraf", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/rimraf.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "2.6.1" -} diff --git a/node_modules/rimraf/rimraf.js b/node_modules/rimraf/rimraf.js deleted file mode 100644 index c263312..0000000 --- a/node_modules/rimraf/rimraf.js +++ /dev/null @@ -1,363 +0,0 @@ -module.exports = rimraf -rimraf.sync = rimrafSync - -var assert = require("assert") -var path = require("path") -var fs = require("fs") -var glob = require("glob") - -var defaultGlobOpts = { - nosort: true, - silent: true -} - -// for EMFILE handling -var timeout = 0 - -var isWindows = (process.platform === "win32") - -function defaults (options) { - var methods = [ - 'unlink', - 'chmod', - 'stat', - 'lstat', - 'rmdir', - 'readdir' - ] - methods.forEach(function(m) { - options[m] = options[m] || fs[m] - m = m + 'Sync' - options[m] = options[m] || fs[m] - }) - - options.maxBusyTries = options.maxBusyTries || 3 - options.emfileWait = options.emfileWait || 1000 - if (options.glob === false) { - options.disableGlob = true - } - options.disableGlob = options.disableGlob || false - options.glob = options.glob || defaultGlobOpts -} - -function rimraf (p, options, cb) { - if (typeof options === 'function') { - cb = options - options = {} - } - - assert(p, 'rimraf: missing path') - assert.equal(typeof p, 'string', 'rimraf: path should be a string') - assert.equal(typeof cb, 'function', 'rimraf: callback function required') - assert(options, 'rimraf: invalid options argument provided') - assert.equal(typeof options, 'object', 'rimraf: options should be object') - - defaults(options) - - var busyTries = 0 - var errState = null - var n = 0 - - if (options.disableGlob || !glob.hasMagic(p)) - return afterGlob(null, [p]) - - options.lstat(p, function (er, stat) { - if (!er) - return afterGlob(null, [p]) - - glob(p, options.glob, afterGlob) - }) - - function next (er) { - errState = errState || er - if (--n === 0) - cb(errState) - } - - function afterGlob (er, results) { - if (er) - return cb(er) - - n = results.length - if (n === 0) - return cb() - - results.forEach(function (p) { - rimraf_(p, options, function CB (er) { - if (er) { - if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") && - busyTries < options.maxBusyTries) { - busyTries ++ - var time = busyTries * 100 - // try again, with the same exact callback as this one. - return setTimeout(function () { - rimraf_(p, options, CB) - }, time) - } - - // this one won't happen if graceful-fs is used. - if (er.code === "EMFILE" && timeout < options.emfileWait) { - return setTimeout(function () { - rimraf_(p, options, CB) - }, timeout ++) - } - - // already gone - if (er.code === "ENOENT") er = null - } - - timeout = 0 - next(er) - }) - }) - } -} - -// Two possible strategies. -// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR -// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR -// -// Both result in an extra syscall when you guess wrong. However, there -// are likely far more normal files in the world than directories. This -// is based on the assumption that a the average number of files per -// directory is >= 1. -// -// If anyone ever complains about this, then I guess the strategy could -// be made configurable somehow. But until then, YAGNI. -function rimraf_ (p, options, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - - // sunos lets the root user unlink directories, which is... weird. - // so we have to lstat here and make sure it's not a dir. - options.lstat(p, function (er, st) { - if (er && er.code === "ENOENT") - return cb(null) - - // Windows can EPERM on stat. Life is suffering. - if (er && er.code === "EPERM" && isWindows) - fixWinEPERM(p, options, er, cb) - - if (st && st.isDirectory()) - return rmdir(p, options, er, cb) - - options.unlink(p, function (er) { - if (er) { - if (er.code === "ENOENT") - return cb(null) - if (er.code === "EPERM") - return (isWindows) - ? fixWinEPERM(p, options, er, cb) - : rmdir(p, options, er, cb) - if (er.code === "EISDIR") - return rmdir(p, options, er, cb) - } - return cb(er) - }) - }) -} - -function fixWinEPERM (p, options, er, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - if (er) - assert(er instanceof Error) - - options.chmod(p, 666, function (er2) { - if (er2) - cb(er2.code === "ENOENT" ? null : er) - else - options.stat(p, function(er3, stats) { - if (er3) - cb(er3.code === "ENOENT" ? null : er) - else if (stats.isDirectory()) - rmdir(p, options, er, cb) - else - options.unlink(p, cb) - }) - }) -} - -function fixWinEPERMSync (p, options, er) { - assert(p) - assert(options) - if (er) - assert(er instanceof Error) - - try { - options.chmodSync(p, 666) - } catch (er2) { - if (er2.code === "ENOENT") - return - else - throw er - } - - try { - var stats = options.statSync(p) - } catch (er3) { - if (er3.code === "ENOENT") - return - else - throw er - } - - if (stats.isDirectory()) - rmdirSync(p, options, er) - else - options.unlinkSync(p) -} - -function rmdir (p, options, originalEr, cb) { - assert(p) - assert(options) - if (originalEr) - assert(originalEr instanceof Error) - assert(typeof cb === 'function') - - // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS) - // if we guessed wrong, and it's not a directory, then - // raise the original error. - options.rmdir(p, function (er) { - if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) - rmkids(p, options, cb) - else if (er && er.code === "ENOTDIR") - cb(originalEr) - else - cb(er) - }) -} - -function rmkids(p, options, cb) { - assert(p) - assert(options) - assert(typeof cb === 'function') - - options.readdir(p, function (er, files) { - if (er) - return cb(er) - var n = files.length - if (n === 0) - return options.rmdir(p, cb) - var errState - files.forEach(function (f) { - rimraf(path.join(p, f), options, function (er) { - if (errState) - return - if (er) - return cb(errState = er) - if (--n === 0) - options.rmdir(p, cb) - }) - }) - }) -} - -// this looks simpler, and is strictly *faster*, but will -// tie up the JavaScript thread and fail on excessively -// deep directory trees. -function rimrafSync (p, options) { - options = options || {} - defaults(options) - - assert(p, 'rimraf: missing path') - assert.equal(typeof p, 'string', 'rimraf: path should be a string') - assert(options, 'rimraf: missing options') - assert.equal(typeof options, 'object', 'rimraf: options should be object') - - var results - - if (options.disableGlob || !glob.hasMagic(p)) { - results = [p] - } else { - try { - options.lstatSync(p) - results = [p] - } catch (er) { - results = glob.sync(p, options.glob) - } - } - - if (!results.length) - return - - for (var i = 0; i < results.length; i++) { - var p = results[i] - - try { - var st = options.lstatSync(p) - } catch (er) { - if (er.code === "ENOENT") - return - - // Windows can EPERM on stat. Life is suffering. - if (er.code === "EPERM" && isWindows) - fixWinEPERMSync(p, options, er) - } - - try { - // sunos lets the root user unlink directories, which is... weird. - if (st && st.isDirectory()) - rmdirSync(p, options, null) - else - options.unlinkSync(p) - } catch (er) { - if (er.code === "ENOENT") - return - if (er.code === "EPERM") - return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er) - if (er.code !== "EISDIR") - throw er - - rmdirSync(p, options, er) - } - } -} - -function rmdirSync (p, options, originalEr) { - assert(p) - assert(options) - if (originalEr) - assert(originalEr instanceof Error) - - try { - options.rmdirSync(p) - } catch (er) { - if (er.code === "ENOENT") - return - if (er.code === "ENOTDIR") - throw originalEr - if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") - rmkidsSync(p, options) - } -} - -function rmkidsSync (p, options) { - assert(p) - assert(options) - options.readdirSync(p).forEach(function (f) { - rimrafSync(path.join(p, f), options) - }) - - // We only end up here once we got ENOTEMPTY at least once, and - // at this point, we are guaranteed to have removed all the kids. - // So, we know that it won't be ENOENT or ENOTDIR or anything else. - // try really hard to delete stuff on windows, because it has a - // PROFOUNDLY annoying habit of not closing handles promptly when - // files are deleted, resulting in spurious ENOTEMPTY errors. - var retries = isWindows ? 100 : 1 - var i = 0 - do { - var threw = true - try { - var ret = options.rmdirSync(p, options) - threw = false - return ret - } finally { - if (++i < retries && threw) - continue - } - } while (true) -} diff --git a/node_modules/rtlcss/.gitattributes b/node_modules/rtlcss/.gitattributes deleted file mode 100644 index 99d81a1..0000000 --- a/node_modules/rtlcss/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -bin/rtlcss.js text eol=lf -test/css/*.css css eol=lf \ No newline at end of file diff --git a/node_modules/rtlcss/.npmignore b/node_modules/rtlcss/.npmignore deleted file mode 100644 index efa0ae9..0000000 --- a/node_modules/rtlcss/.npmignore +++ /dev/null @@ -1,17 +0,0 @@ -lib-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz - -pids -logs -results - -npm-debug.log -node_modules - -.vscode \ No newline at end of file diff --git a/node_modules/rtlcss/.rtlcssrc b/node_modules/rtlcss/.rtlcssrc deleted file mode 100644 index 776a901..0000000 --- a/node_modules/rtlcss/.rtlcssrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "options": { - "autoRename": false, - "autoRenameStrict": false, - "blacklist":{}, - "clean": true, - "greedy": false, - "processUrls": false, - "stringMap":[] - }, - "plugins": [ ], - "map": false -} diff --git a/node_modules/rtlcss/.travis.yml b/node_modules/rtlcss/.travis.yml deleted file mode 100644 index 7c3c5a1..0000000 --- a/node_modules/rtlcss/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - "6" - - "5" - - "4" diff --git a/node_modules/rtlcss/CHANGELOG.md b/node_modules/rtlcss/CHANGELOG.md deleted file mode 100644 index 7e3e6a1..0000000 --- a/node_modules/rtlcss/CHANGELOG.md +++ /dev/null @@ -1,191 +0,0 @@ -## 2.1.2 - 31 Dec. 2016 - * Internal code update. - -## 2.1.1 - 28 Dec. 2016 - * Fixes a bug in self closing ignore directive (Fixes [#88](https://github.com/MohammadYounes/rtlcss/issues/88)). - -## 2.1.0 - 30 Nov. 2016 - * Support CSS `background-position` edge offsets. - -### 2.0.7 - 16 Nov. 2016 - * Fixes a bug in flipping backgrounds having url placed first (Fixes [#84](https://github.com/MohammadYounes/rtlcss/issues/84)). - * Update `node.value` so changes will be picked up by other processors (Closes [#85](https://github.com/MohammadYounes/rtlcss/issues/85)). - -### 2.0.6 - 12 Jul. 2016 - * README updates. - -### 2.0.5 - 17 May. 2016 - * Fixes a bug in complementing calc values (Fixes [#71](https://github.com/MohammadYounes/rtlcss/issues/71)). - -### 2.0.4 - 25 Apr. 2016 - * Fixes a bug in flipping cursor value (Fixes [#68](https://github.com/MohammadYounes/rtlcss/issues/68)). - -### 2.0.3 - 23 Mar. 2016 - * Guard against flipping tokens, e.g: [shadows starting with a color function](https://github.com/MohammadYounes/rtlcss/blob/master/test/data/special.js#L2-L7). - -### 2.0.2 - 05 Mar. 2016 - * Fixes a bug in flipping background with a hex color value (Fixes [#60](https://github.com/MohammadYounes/rtlcss/issues/60)). - -### 2.0.1 - 23 Feb. 2016 - * Fixes a bug when having `decl` nodes inside `atrule`s and `autoRename` enabled. - * Fixes a bug in flipping multi-valued transforms. - -# 2.0.0 - 18 Feb. 2016 - - * Support for control directive blocks, e.g. `/*rtl:begin:ignore*/ ... /*rtl:end:ignore*/`. - * Suppor for strict auto renaming, Which ensures `autoRename` is applied only when a pair exists. - * New directives: - * `config` - * `options` - * `raw` - * `remove` - * Support for [Plugins](docs/writing-a-plugin.md). - -#### Upgrading from version 1.0 - -Options and config settings have changed. However, you need not to worry about your CSS files as all directives are backward-compatible. This is a summary of what's changed: - - * New Options: - * `autoRenameStrict` (default: `false`) to apply auto rename only when a pair exists. - * `blacklist` to prevent execution of certian directives. - * `clean` (default: `true`), to remove directives from output CSS. - * `processUrls` (default: `false`) to control URL updates. You can also target specific node types using an object literal. e.g. `{'atrule': true, 'decl': false}`. - - * Updated Options: - * `autoRename` new default is `false`. - * `stringMap`: - * added `priority` attribute to control maps execution order. - * added `exclusive` attribute, which determines if a map execution should stop iterating over other maps. - * dropped 'west-east' map from the default map collection. - - * Removed Options: - * `enableLogging`, still warnings and errors are reported directly to postcss. - * `minify`, it wasn't actual minification after all! - * `swapLeftRightInUrl`, `swapLtrRtlInUrl` and `swapWestEastInUrl` in favor of `processUrls` option. - * `preserveComments`, comments inside declaration values will always be preserved. - * `preserveDirectives`, in favor of `clean` option. - - * Constructor arguments `rules`, `declarations` and `properties` are now replaced with `plugins`. - -### v1.7.4 - 23 Feb. 2016 - * Fixes a bug in flipping multiple transforms. - -### v1.7.3 - 30 Jan. 2016 - * Fixes a bug in flipping N-Values containing comments. - -### 1.7.2 - 30 Jan. 2016 - * Fixes a bug in flipping N-Values containing comments. - -### 1.7.2 - 04 Dec. 2015 - * Fixes a compatibility issue with postcss-js (Fixes [#48](https://github.com/MohammadYounes/rtlcss/issues/48)). - -### 1.7.1 - 10 Nov. 2015 - * Fixed a bug in flipping backgrounds having functions (Issue [#45](https://github.com/MohammadYounes/rtlcss/issues/45)). - -## 1.7.0 - 19 Sep. 2015 - * Add `calc` support. - * Mark rule as flipped when values are updated by decl. directives. - * Allow further processing for rules that uses `rename` directive. - -### 1.6.3 - 28 Aug. 2015 - * CLI: fix source map option (issue #40). - * Upgrade to [POSTCSS] v5.0.x - -### 1.6.2 - 21 Jul. 2015 - * CLI: fix loading custom configuration file manually via the --config flag. **Thanks @KeyKaKiTO** - -### 1.6.1 - 17 Mar. 2015 - * Fixed flipping units having more than 1 digit before the decimal point. - -## 1.6.0 - 15 Mar. 2015 - * Support flipping `matrix3d` transform. - -### 1.5.2 - 28 Feb. 2015 - * Fix flipping string maps containing regular expressions special characters (Fixes [#24](https://github.com/MohammadYounes/rtlcss/issues/24)). - -### 1.5.1 - 14 Feb. 2015 - * Fix flipping multiple shadows when a hex color was used. **Thanks @ocean90** - -## 1.5.0 - 30 Jan. 2015 - * CLI: New option `-e,--ext` to set output files extension when processing a directory. - -### 1.4.3 - 24 Jan. 2015 - * Upgrade to [POSTCSS] v4.0.x **Thanks @necolas** - -### 1.4.2 - 24 Oct. 2014 - * CLI: Switch to Unix line endings (Fixes [#14](https://github.com/MohammadYounes/rtlcss/issues/14)) - -### 1.4.1 - 24 Oct. 2014 - * CLI: Print processing errors. - -## 1.4.0 - 10 Oct. 2014 - * CLI: Support processing a directory. see [CLI documentation](https://github.com/MohammadYounes/rtlcss/blob/master/CLI.md#directory) - -### 1.3.1 - 29 Sep. 2014 - * Update README.md (typos). - -## 1.3.0 - 28 Sep. 2014 - * New feature - String Maps. Add your own set of swappable strings, for example (prev/next). - * Preserves lowercase, UPPERCASE and Capitalization when swapping ***left***, ***right***, ***ltr***, ***rtl***, ***west*** and ***east***. - -## 1.2.0 - 26 Sep. 2014 - * Support !important comments for directives (enables flipping minified stylesheets). - -## 1.1.0 - 26 Sep. 2014 - * Upgrade to [POSTCSS] v2.2.5 - * Support flipping `border-color`, `border-style` and `background-position-x` - -# 1.0.0 - 24 Aug. 2014 - * Upgrade to [POSTCSS] v2.2.1 - * Support flipping urls in '@import' rule. - * Fix JSON parse error when configuration file is UTF-8 encoded. - * Better minification. - -## 0.9.0 - 10 Aug. 2014 - * New configuration loader. - * CLI configuration can be set using one of the following methods: - * Specify the configuration file manually via the --config flag. - * Put your config into your projects package.json file under the `rtlcssConfig` property - * Use a special file `.rtlcssrc` or `.rtlcssrc.json` - -## 0.8.0 - 8 Aug. 2014 - * Fix source map generation. - -## 0.7.0 - 4 Jul. 2014 - * Fix flipping linear-gradient. - -## 0.6.0 - 4 Jul. 2014 - * Allow additional comments inside `ignore`/`rename` rule level directives. - -## 0.5.0 - 11 Jun. 2014 - * Add CLI support. - -## 0.4.0 - 5 Apr. 2014 - * Fix flipping transform-origin. - * Update autoRename to search for all swappable words. - -## 0.3.0 - 5 Apr. 2014 - * Support flipping rotateZ. - * Fix flipping rotate3d. - * Fix flipping skew, skewX and skewY. - * Fix flipping cursor value. - * Fix flipping translate3d. - * Update flipping background horizontal position to treat 0 as 0% - -### 0.2.1 - 20 Mar. 2014 - * Upgrade to [POSTCSS] v0.3.4 - -## 0.2.0 - 20 Mar. 2014 - * Support combining with other processors. - * Support rad, grad & turn angle units when flipping linear-gradient - * Fix typo in config.js - -### 0.1.3 - 7 Mar. 2014 - * Fix missing include in rules.js - -### 0.1.2 - 5 Mar. 2014 - * New option: minify output CSS. - * Updated README.md - -### 0.1.1 - 4 Mar. 2014 - * Initial commit. diff --git a/node_modules/rtlcss/LICENSE b/node_modules/rtlcss/LICENSE deleted file mode 100644 index 9971c86..0000000 --- a/node_modules/rtlcss/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2016 Mohammad Younes - -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/rtlcss/README.md b/node_modules/rtlcss/README.md deleted file mode 100644 index 2bb47f0..0000000 --- a/node_modules/rtlcss/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# RTLCSS - -[![Join the chat at https://gitter.im/MohammadYounes/rtlcss](https://badges.gitter.im/MohammadYounes/rtlcss.svg)](https://gitter.im/MohammadYounes/rtlcss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - - - -[![GitHub version](https://badge.fury.io/gh/MohammadYounes%2Frtlcss.svg)](http://badge.fury.io/gh/MohammadYounes%2Frtlcss) -[![NPM version](https://badge.fury.io/js/rtlcss.svg)](http://badge.fury.io/js/rtlcss) -[![Build Status](https://travis-ci.org/MohammadYounes/rtlcss.svg?branch=master)](https://travis-ci.org/MohammadYounes/rtlcss) -[![DEPENDENCIES](https://david-dm.org/MohammadYounes/rtlcss.svg)](https://david-dm.org/MohammadYounes/rtlcss) - -[![js-standard-style](https://img.shields.io/badge/code%20style-standard-blue.svg)](http://standardjs.com/) -[![editor](https://img.shields.io/badge/editor-vscode-blue.svg)](https://code.visualstudio.com/) -[![Twitter](https://img.shields.io/badge/follow-%40rtlcss-blue.svg)](https://twitter.com/rtlcss) - -RTLCSS is a framework for converting Left-To-Right (LTR) Cascading Style Sheets(CSS) to Right-To-Left (RTL). - -## Documentation - -Visit http://rtlcss.com/learn - -## Playground - -Visit http://rtlcss.com/playground - -## Bugs and Issues - -Have a bug or a feature request? please feel free to [open a new issue](https://github.com/MohammadYounes/rtlcss/issues/new) . - -## Release Notes - -To view changes in recent versions, see the [CHANGELOG](CHANGELOG.md). - -## Support RTLCSS Development - -Submit a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YC28CZLKL4LMC) :) - -> If you get a message that I can't accept funds right now or I need to setup my account or something! You can send the donation directly to the email address mentioned in the donations page. - diff --git a/node_modules/rtlcss/bin/rtlcss.js b/node_modules/rtlcss/bin/rtlcss.js deleted file mode 100755 index b13c160..0000000 --- a/node_modules/rtlcss/bin/rtlcss.js +++ /dev/null @@ -1,274 +0,0 @@ -#!/usr/bin/env node - -var path = require('path') -var fs = require('fs') -var sys = require('util') -var chalk = require('chalk') -var mkdirp = require('mkdirp') -var postcss = require('postcss') -var rtlcss = require('../lib/rtlcss') -var configLoader = require('../lib/config-loader') - -var input, output, directory, ext, config, currentErrorcode, arg -var args = process.argv.slice(2) -var shouldBreak = false - -process.on('exit', function () { process.reallyExit(currentErrorcode) }) - -function printWarning () { - console.warn(chalk.yellow.apply(this, printWarning.arguments)) -} - -function printInfo () { - console.info(chalk.green.apply(this, printInfo.arguments)) -} - -function printError () { - console.error(chalk.red.apply(this, printError.arguments)) -} - -function printHelp () { - console.log('Usage: rtlcss [option option=parameter ...] [source] [destination]') - console.log('') - /*eslint-disable*/ - var options = [ - 'Option ' , 'Description ', - '--------------', '----------------------------------------------', - '-h,--help' , 'Print help (this message) and exit.', - '-v,--version' , 'Print version number and exit.', - '-c,--config' , 'Path to configuration settings file.', - '- ,--stdin' , 'Read from stdin stream.', - '-d,--dirctory' , 'Process all *.css files from input directory (recursive).', - '-e,--ext' , 'Used with -d option to set the output files extension.\n\t\t Default: ".rtl.css".', - '-s,--silent' , 'Silent mode, no warnings or errors are printed.' - ] - /*eslint-enable */ - for (var x = 0; x < options.length; x++) { - console.log(options[x++], '\t', options[x]) - } - console.log('') - console.log('*If no destination is specified, output will be written to the same input folder as {source}.rtl.{ext}') - console.log('') - printInfo('RTLCSS version: ' + require('../package.json').version) - printInfo('Report issues to: https://github.com/MohammadYounes/rtlcss/issues') -} -while ((arg = args.shift())) { - switch (arg) { - case '-h': - case '--help': - printHelp() - shouldBreak = true - break - case '-v': - case '--version': - printInfo('rtlcss version: ' + require('../package.json').version) - shouldBreak = true - break - case '-c': - case '--config': - arg = args.shift() - try { - config = configLoader.load(path.resolve(arg)) - } catch (e) { - printError('rtlcss: invalid config file. ', e) - shouldBreak = true - currentErrorcode = 1 - } - break - case '-d': - case '--directory': - directory = true - break - case '-e': - case '--ext': - ext = args.shift() - break - case '-s': - case '--silent': - console.log = console.info = console.warn = function () {} - break - case '-': - case '--stdin': - input = '-' - break - default: - if (arg[0] === '-') { - printError('rtlcss: unknown option. ' + arg) - shouldBreak = true - } else { - if (!input) { - input = path.resolve(arg) - } else if (!output) { - output = path.resolve(arg) - } - } - break - } -} - -if (!shouldBreak) { - if (!directory && !input) { - printError('rtlcss: no input file') - console.log('') - printHelp() - shouldBreak = true - } - if (!config && input !== '-') { - try { - var cwd = input - if (directory !== true) { - cwd = path.dirname(input) - } - config = configLoader.load(null, cwd) - } catch (e) { - printError('rtlcss: invalid config file. ', e) - currentErrorcode = 1 - shouldBreak = true - } - } -} - -if (!shouldBreak) { - if (!output && input !== '-') { - if (directory !== true) { - output = path.extname(input) ? input.replace(/\.[^.]*$/, function (ext) { return '.rtl' + ext }) : input + '.rtl' - } else { - output = input - } - } - - var processCSSFile = function (e, data, outputName) { - if (e) { - printError('rtlcss: ' + e.message) - return - } - var result - var opt = { map: false } - if (input !== '-') { - opt.from = input - opt.to = output - } - if (!config) { - printWarning('rtlcss: Warning! No config present, using defaults.') - result = postcss([rtlcss]).process(data, opt) - } else { - if ('map' in config === true && input !== '-') { - opt.map = config.map - } - result = postcss([rtlcss.configure(config)]).process(data, opt) - } - - if (output) { - var savePath = outputName - if (directory !== true) { - savePath = output - } - printInfo('Saving:', savePath) - fs.writeFile(savePath, result.css, 'utf8', function (err) { err && printError(err) }) - if (result.map) { - fs.writeFile(savePath + '.map', result.map, 'utf8', function (err) { err && printError(err) }) - } - } else { - sys.print(result.css) - } - } - - var walk = function (dir, done) { - fs.readdir(dir, function (error, list) { - if (error) { - return done(error) - } - var i = 0 - ;(function next () { - var file = list[i++] - if (!file) { - return done(null) - } - file = dir + path.sep + file - fs.stat(file, function (err, stat) { - if (err) { - printError(err) - } else if (stat && stat.isDirectory()) { - walk(file, function (err) { - if (err) { - printError(err) - } else { - next() - } - }) - } else { - // process only *.css - if (/\.(css)$/.test(file)) { - // compute output directory - var relativePath = path.relative(input, file).split(path.sep) - relativePath.pop() - relativePath.push(path.basename(file).replace('.css', ext || '.rtl.css')) - - // set rtl file name - var rtlFile = path.join(output, relativePath.join(path.sep)) - - // create output directory if it does not exist - var dirName = path.dirname(rtlFile) - if (!fs.existsSync(dirName)) { - mkdirp.sync(dirName) - } - - // read and process the file. - fs.readFile(file, 'utf8', function (e, data) { - try { - processCSSFile(e, data, rtlFile) - } catch (e) { - printError('rtlcss: error processing file', file) - printError(e) - } - }) - } - next() - } - }) - })() - }) - } - - if (input !== '-') { - if (directory !== true) { - fs.stat(input, function (error, stat) { - if (error) { - printError(error) - } else if (stat && stat.isDirectory()) { - printError('rtlcss: Input expected to be a file, use -d option to process a directory.') - } else { - fs.readFile(input, 'utf8', function (e, data) { - try { - processCSSFile(e, data) - } catch (e) { - printError('rtlcss: error processing file', input) - printError(e) - } - }) - } - }) - } else { - walk(input, function (error) { - if (error) { - printError('rtlcss: ' + error) - } - }) - } - } else { - process.stdin.resume() - process.stdin.setEncoding('utf8') - - var buffer = '' - process.stdin.on('data', function (data) { - buffer += data - }) - process.on('SIGINT', function () { - processCSSFile(false, buffer) - process.exit() - }) - process.stdin.on('end', function () { - processCSSFile(false, buffer) - }) - } -} diff --git a/node_modules/rtlcss/docs/CLI.md b/node_modules/rtlcss/docs/CLI.md deleted file mode 100644 index 48b548a..0000000 --- a/node_modules/rtlcss/docs/CLI.md +++ /dev/null @@ -1,10 +0,0 @@ -RTLCSS CLI -====== - -## Documentation - -Visit http://rtlcss.com/learn/usage-guide/cli/ - -## Support RTLCSS Development - -Submit a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YC28CZLKL4LMC) :) diff --git a/node_modules/rtlcss/docs/writing-a-plugin.md b/node_modules/rtlcss/docs/writing-a-plugin.md deleted file mode 100644 index 46d76a9..0000000 --- a/node_modules/rtlcss/docs/writing-a-plugin.md +++ /dev/null @@ -1,10 +0,0 @@ -Writing an RTLCSS Plugin -===== - -## Documentation - -Visit http://rtlcss.com/learn/extending-rtlcss/writing-a-plugin/ - -## Support RTLCSS Development - -Submit a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YC28CZLKL4LMC) :) diff --git a/node_modules/rtlcss/lib/config-loader.js b/node_modules/rtlcss/lib/config-loader.js deleted file mode 100644 index d7aeaa5..0000000 --- a/node_modules/rtlcss/lib/config-loader.js +++ /dev/null @@ -1,81 +0,0 @@ -/* global process */ -'use strict' -var fs = require('fs') -var path = require('path') -var findup = require('findup') -var stripJSONComments = require('strip-json-comments') -var config = {} -var configSources = ['package.json', '.rtlcssrc', '.rtlcss.json'] - -module.exports.load = function (configFilePath, cwd, overrides) { - if (configFilePath) { - return override( - JSON.parse( - stripJSONComments( - fs.readFileSync(configFilePath, 'utf-8').trim())), overrides) - } - - var directory = cwd || process.cwd() - config = loadConfig(directory) - if (!config) { - var evns = [process.env.USERPROFILE, process.env.HOMEPATH, process.env.HOME] - for (var x = 0; x < evns.length; x++) { - if (!evns[x]) { - continue - } - config = loadConfig(evns[x]) - if (config) { - break - } - } - } - - if (config) { - override(config, overrides) - } - return config -} - -function loadConfig (dir) { - for (var x = 0; x < configSources.length; x++) { - var found - var source = configSources[x] - try { - found = findup.sync(dir, source) - } catch (e) { - continue - } - - if (found) { - var configFilePath = path.normalize(path.join(found, source)) - try { - config = JSON.parse( - stripJSONComments( - fs.readFileSync(configFilePath, 'utf-8').trim())) - } catch (e) { - throw new Error(e + ' ' + configFilePath) - } - - if (source === 'package.json') { - config = config.rtlcssConfig - } - - if (config) { - return config - } - } - } -} - -function override (to, from) { - if (to && from) { - for (var p in from) { - if (typeof to[p] === 'object') { - override(to[p], from[p]) - } else { - to[p] = from[p] - } - } - } - return to -} diff --git a/node_modules/rtlcss/lib/config.js b/node_modules/rtlcss/lib/config.js deleted file mode 100644 index ebb82f5..0000000 --- a/node_modules/rtlcss/lib/config.js +++ /dev/null @@ -1,74 +0,0 @@ -'use strict' -var options -var config = {} -var corePlugin = require('./plugin.js') - -function optionOrDefault (option, def) { - return option in options ? options[option] : def -} - -function addKey (key, def) { - config[key] = optionOrDefault(key, def) -} - -function main (opts, plugins) { - options = opts || {} - addKey('autoRename', false) - addKey('autoRenameStrict', false) - addKey('blacklist', {}) - addKey('clean', true) - addKey('greedy', false) - addKey('processUrls', false) - addKey('stringMap', []) - - // default strings map - if (Array.isArray(config.stringMap)) { - var hasLeftRight, hasLtrRtl - for (var x = 0; x < config.stringMap.length; x++) { - var map = config.stringMap[x] - if (hasLeftRight && hasLtrRtl) { - break - } else if (map.name === 'left-right') { - hasLeftRight = true - } else if (map.name === 'ltr-rtl') { - hasLtrRtl = true - } - } - if (!hasLeftRight) { - config.stringMap.push({ - 'name': 'left-right', - 'priority': 100, - 'exclusive': false, - 'search': ['left', 'Left', 'LEFT'], - 'replace': ['right', 'Right', 'RIGHT'], - 'options': { 'scope': '*', 'ignoreCase': false } - }) - } - if (!hasLtrRtl) { - config.stringMap.push({ - 'name': 'ltr-rtl', - 'priority': 100, - 'exclusive': false, - 'search': ['ltr', 'Ltr', 'LTR'], - 'replace': ['rtl', 'Rtl', 'RTL'], - 'options': { 'scope': '*', 'ignoreCase': false } - }) - } - config.stringMap.sort(function (a, b) { return a.priority - b.priority }) - } - - // plugins - config.plugins = [] - - if (Array.isArray(plugins)) { - if (!plugins.some(function (plugin) { return plugin.name === 'rtlcss' })) { - config.plugins.push(corePlugin) - } - config.plugins = config.plugins.concat(plugins) - } else if (!plugins || plugins.name !== 'rtlcss') { - config.plugins.push(corePlugin) - } - config.plugins.sort(function (a, b) { return a.priority - b.priority }) - return config -} -module.exports.configure = main diff --git a/node_modules/rtlcss/lib/directive-parser.js b/node_modules/rtlcss/lib/directive-parser.js deleted file mode 100644 index dafd33a..0000000 --- a/node_modules/rtlcss/lib/directive-parser.js +++ /dev/null @@ -1,43 +0,0 @@ -module.exports = function (comment) { - var pos = 0 - var value = comment.text - var prefix = value.charAt(0) === '!' ? '!rtl:' : 'rtl:' - var meta - - if (value.indexOf(prefix) === 0) { - meta = { - 'source': comment, - 'name': '', - 'param': '', - 'begin': true, - 'end': true, - 'blacklist': false, - 'preserve': false - } - value = value.slice(prefix.length) - pos = value.indexOf(':') - - if (pos > -1) { - meta.name = value.slice(0, pos) - // begin/end are always true, unless one of them actually exists. - meta.begin = meta.name !== 'end' - meta.end = meta.name !== 'begin' - if (meta.name === 'begin' || meta.name === 'end') { - value = value.slice(meta.name.length + 1) - pos = value.indexOf(':') - if (pos > -1) { - meta.name = value.slice(0, pos) - value = value.slice(pos) - meta.param = value.slice(1) - } else { - meta.name = value - } - } else { - meta.param = value.slice(pos + 1) - } - } else { - meta.name = value - } - } - return meta -} diff --git a/node_modules/rtlcss/lib/plugin.js b/node_modules/rtlcss/lib/plugin.js deleted file mode 100644 index f6a5819..0000000 --- a/node_modules/rtlcss/lib/plugin.js +++ /dev/null @@ -1,500 +0,0 @@ -'use strict' -var config = require('./config.js') -var util = require('./util.js') -module.exports = { - 'name': 'rtlcss', - 'priority': 100, - 'directives': { - 'control': { - 'ignore': { - 'expect': { 'atrule': true, 'comment': true, 'decl': true, 'rule': true }, - 'endNode': null, - 'begin': function (node, metadata, context) { - // find the ending node in case of self closing directive - if (!this.endNode && metadata.begin && metadata.end) { - var n = node - while (n && n.nodes) { - n = n.nodes[n.nodes.length - 1] - } - this.endNode = n - } - var prevent = true - if (node.type === 'comment' && (node.text === '!rtl:end:ignore' || node.text === 'rtl:end:ignore')) { - prevent = false - } - return prevent - }, - 'end': function (node, metadata, context) { - // end if: - // 1. block directive and the node is comment - // 2. self closing directive and node is endNode - if (metadata.begin !== metadata.end && node.type === 'comment' || metadata.begin && metadata.end && node === this.endNode) { - // clear ending node - this.endNode = null - return true - } - return false - } - }, - 'rename': { - 'expect': {'rule': true}, - 'begin': function (node, metadata, context) { - node.selector = context.util.applyStringMap(node.selector, false) - return false - }, - 'end': function (node, context) { - return true - } - }, - 'raw': { - 'expect': {'self': true}, - 'begin': function (node, metadata, context) { - var nodes = context.postcss.parse(metadata.param) - node.parent.insertBefore(node, nodes) - return true - }, - 'end': function (node, context) { - return true - } - }, - 'remove': { - 'expect': {'atrule': true, 'rule': true, 'decl': true}, - 'begin': function (node, metadata, context) { - var prevent = false - switch (node.type) { - case 'atrule': - case 'rule': - case 'decl': - prevent = true - node.remove() - } - return prevent - }, - 'end': function (node, metadata, context) { - return true - } - }, - 'options': { - 'expect': {'self': true}, - 'stack': [], - 'begin': function (node, metadata, context) { - this.stack.push(util.extend({}, context.config)) - var options - try { - options = JSON.parse(metadata.param) - } catch (e) { - throw node.error('Invlaid options object', { 'details': e }) - } - context.config = config.configure(options, context.config.plugins) - context.util = util.configure(context.config) - return true - }, - 'end': function (node, metadata, context) { - var config = this.stack.pop() - if (config && !metadata.begin) { - context.config = config - context.util = util.configure(context.config) - } - return true - } - }, - 'config': { - 'expect': {'self': true}, - 'expr': { - 'fn': /function([^\(]*)\(([^\(\)]*?)\)[^\{]*\{([^]*)\}/ig, - 'rx': /\/([^\/]*)\/(.*)/ig - }, - 'stack': [], - 'begin': function (node, metadata, context) { - this.stack.push(util.extend({}, context.config)) - var configuration - try { - configuration = eval('(' + metadata.param + ')') // eslint-disable-line no-eval - } catch (e) { - throw node.error('Invlaid config object', { 'details': e }) - } - context.config = config.configure(configuration.options, configuration.plugins) - context.util = util.configure(context.config) - return true - }, - 'end': function (node, metadata, context) { - var config = this.stack.pop() - if (config && !metadata.begin) { - context.config = config - context.util = util.configure(context.config) - } - return true - } - } - }, - 'value': [ - { - 'name': 'ignore', - 'action': function (decl, expr, context) { - return true - } - }, - { - 'name': 'prepend', - 'action': function (decl, expr, context) { - var prefix = '' - decl.raws.value.raw.replace(expr, function (m, v) { - prefix += v - }) - decl.value = decl.raws.value.raw = prefix + decl.raws.value.raw - return true - } - }, - { - 'name': 'append', - 'action': function (decl, expr, context) { - decl.value = decl.raws.value.raw = decl.raws.value.raw.replace(expr, function (match, value) { - return match + value - }) - return true - } - }, - { - 'name': 'insert', - 'action': function (decl, expr, context) { - decl.value = decl.raws.value.raw = decl.raws.value.raw.replace(expr, function (match, value) { - return value + match - }) - return true - } - }, - { - 'name': '', - 'action': function (decl, expr, context) { - decl.raws.value.raw.replace(expr, function (match, value) { - decl.value = decl.raws.value.raw = value + match - }) - return true - } - } - ] - }, - 'processors': [ - { - 'name': 'direction', - 'expr': /direction/im, - 'action': function (prop, value, context) { - return { 'prop': prop, 'value': context.util.swapLtrRtl(value) } - } - }, - { - 'name': 'left', - 'expr': /left/im, - 'action': function (prop, value, context) { - return { 'prop': prop.replace(this.expr, function () { return 'right' }), 'value': value } - } - }, - { - 'name': 'right', - 'expr': /right/im, - 'action': function (prop, value, context) { - return { 'prop': prop.replace(this.expr, function () { return 'left' }), 'value': value } - } - }, - { - 'name': 'four-value syntax', - 'expr': /^(margin|padding|border-(color|style|width))$/ig, - 'cache': null, - 'action': function (prop, value, context) { - if (this.cache === null) { - this.cache = { - 'match': /[^\s\uFFFD]+/g - } - } - var state = context.util.guardFunctions(value) - var result = state.value.match(this.cache.match) - if (result && result.length === 4 && (state.store.length > 0 || result[1] !== result[3])) { - var i = 0 - state.value = state.value.replace(this.cache.match, function () { - return result[(4 - i++) % 4] - }) - } - return { 'prop': prop, 'value': context.util.unguardFunctions(state) } - } - }, - { - 'name': 'border radius', - 'expr': /border-radius/ig, - 'cache': null, - 'flip': function (value) { - var parts = value.match(this.cache.match) - var i - if (parts) { - switch (parts.length) { - case 2: - i = 1 - if (parts[0] !== parts[1]) { - value = value.replace(this.cache.match, function () { - return parts[i--] - }) - } - break - case 3: - // preserve leading whitespace. - value = value.replace(this.cache.white, function (m) { - return m + parts[1] + ' ' - }) - break - case 4: - i = 0 - if (parts[0] !== parts[1] || parts[2] !== parts[3]) { - value = value.replace(this.cache.match, function () { - return parts[(5 - i++) % 4] - }) - } - break - } - } - return value - }, - 'action': function (prop, value, context) { - if (this.cache === null) { - this.cache = { - 'match': /[^\s\uFFFD]+/g, - 'slash': /[^\/]+/g, - 'white': /(^\s*)/ - } - } - var state = context.util.guardFunctions(value) - state.value = state.value.replace(this.cache.slash, function (m) { - return this.flip(m) - }.bind(this)) - return { 'prop': prop, 'value': context.util.unguardFunctions(state) } - } - }, - { - 'name': 'shadow', - 'expr': /shadow/ig, - 'cache': null, - 'action': function (prop, value, context) { - if (this.cache === null) { - this.cache = { - 'replace': /[^,]+/g - } - } - var colorSafe = context.util.guardHexColors(value) - var funcSafe = context.util.guardFunctions(colorSafe.value) - funcSafe.value = funcSafe.value.replace(this.cache.replace, function (m) { return context.util.negate(m) }) - colorSafe.value = context.util.unguardFunctions(funcSafe) - return { 'prop': prop, 'value': context.util.unguardHexColors(colorSafe) } - } - }, - { - 'name': 'transform origin', - 'expr': /transform-origin/ig, - 'cache': null, - 'flip': function (value, context) { - if (value === '0') { - value = '100%' - } else if (value.match(this.cache.percent)) { - value = context.util.complement(value) - } - return value - }, - 'action': function (prop, value, context) { - if (this.cache === null) { - this.cache = { - 'match': context.util.regex(['calc', 'percent', 'length'], 'g'), - 'percent': context.util.regex(['calc', 'percent'], 'i'), - 'xKeyword': /(left|right)/i - } - } - if (value.match(this.cache.xKeyword)) { - value = context.util.swapLeftRight(value) - } else { - var state = context.util.guardFunctions(value) - var parts = state.value.match(this.cache.match) - if (parts && parts.length > 0) { - parts[0] = this.flip(parts[0], context) - state.value = state.value.replace(this.cache.match, function () { return parts.shift() }) - value = context.util.unguardFunctions(state) - } - } - return { 'prop': prop, 'value': value } - } - }, - { - 'name': 'transform', - 'expr': /^(?!text\-).*?transform$/ig, - 'cache': null, - 'flip': function (value, process, context) { - var i = 0 - return value.replace(this.cache.unit, function (num) { - return process(++i, num) - }) - }, - 'flipMatrix': function (value, context) { - return this.flip(value, function (i, num) { - if (i === 2 || i === 3 || i === 5) { - return context.util.negate(num) - } - return num - }, context) - }, - 'flipMatrix3D': function (value, context) { - return this.flip(value, function (i, num) { - if (i === 2 || i === 4 || i === 5 || i === 13) { - return context.util.negate(num) - } - return num - }, context) - }, - 'flipRotate3D': function (value, context) { - return this.flip(value, function (i, num) { - if (i === 2 || i === 4) { - return context.util.negate(num) - } - return num - }, context) - }, - 'action': function (prop, value, context) { - if (this.cache === null) { - this.cache = { - 'negatable': /((translate)(x|3d)?|rotate(z)?)$/ig, - 'unit': context.util.regex(['calc', 'number'], 'g'), - 'matrix': /matrix$/i, - 'matrix3D': /matrix3d$/i, - 'skewXY': /skew(x|y)?$/i, - 'rotate3D': /rotate3d$/i - } - } - var state = context.util.guardFunctions(value) - return { - 'prop': prop, - 'value': context.util.unguardFunctions(state, function (v, n) { - if (n.length) { - if (n.match(this.cache.matrix3D)) { - v = this.flipMatrix3D(v, context) - } else if (n.match(this.cache.matrix)) { - v = this.flipMatrix(v, context) - } else if (n.match(this.cache.rotate3D)) { - v = this.flipRotate3D(v, context) - } else if (n.match(this.cache.skewXY)) { - v = context.util.negateAll(v) - } else if (n.match(this.cache.negatable)) { - v = context.util.negate(v) - } - } - return v - }.bind(this)) - } - } - }, - { - 'name': 'transition', - 'expr': /transition(-property)?$/i, - 'action': function (prop, value, context) { - return { 'prop': prop, 'value': context.util.swapLeftRight(value) } - } - }, - { - 'name': 'background', - 'expr': /background(-position(-x)?|-image)?$/i, - 'cache': null, - 'flip': function (value, context, isPosition) { - var state = util.saveTokens(value, true) - var parts = state.value.match(this.cache.match) - if (parts && parts.length > 0) { - if (isPosition && parts.length >= 3) { - state.value = util.swapLeftRight(state.value) - } else { - parts[0] = parts[0] === '0' - ? '100%' - : (parts[0].match(this.cache.percent) - ? context.util.complement(parts[0]) - : context.util.swapLeftRight(parts[0])) - state.value = state.value.replace(this.cache.match, function () { return parts.shift() }) - } - } - return util.restoreTokens(state) - }, - 'update': function (context, value, name) { - if (name.match(this.cache.gradient)) { - value = context.util.swapLeftRight(value) - if (value.match(this.cache.angle)) { - value = context.util.negate(value) - } - } else if (context.config.processUrls === true || context.config.processUrls.decl === true && name.match(this.cache.url)) { - value = context.util.applyStringMap(value, true) - } - return value - }, - 'action': function (prop, value, context) { - if (this.cache === null) { - this.cache = { - 'match': context.util.regex(['position', 'percent', 'length', 'calc'], 'ig'), - 'percent': context.util.regex(['calc', 'percent'], 'i'), - 'gradient': /gradient$/i, - 'angle': /\d+(deg|g?rad|turn)/i, - 'url': /^url/i - } - } - var colorSafe = context.util.guardHexColors(value) - var funcSafe = context.util.guardFunctions(colorSafe.value) - var parts = funcSafe.value.split(',') - var lprop = prop.toLowerCase() - if (lprop !== 'background-image') { - var isPosition = lprop === 'background-position' - for (var x = 0; x < parts.length; x++) { - parts[x] = this.flip(parts[x], context, isPosition) - } - } - funcSafe.value = parts.join(',') - colorSafe.value = context.util.unguardFunctions(funcSafe, this.update.bind(this, context)) - return { - 'prop': prop, - 'value': context.util.unguardHexColors(colorSafe) - } - } - }, - { - 'name': 'keyword', - 'expr': /float|clear|text-align/i, - 'action': function (prop, value, context) { - return { 'prop': prop, 'value': context.util.swapLeftRight(value) } - } - }, - { - 'name': 'cursor', - 'expr': /cursor/i, - 'cache': null, - 'update': function (context, value, name) { - if (context.config.processUrls === true || context.config.processUrls.decl === true && name.match(this.cache.url)) { - value = context.util.applyStringMap(value, true) - } - return value - }, - 'flip': function (value) { - return value.replace(this.cache.replace, function (s, m) { - return s.replace(m, m.replace(this.cache.e, '*').replace(this.cache.w, 'e').replace(this.cache.star, 'w')) - }.bind(this)) - }, - 'action': function (prop, value, context) { - if (this.cache === null) { - this.cache = { - 'replace': /\b(ne|nw|se|sw|nesw|nwse)-resize/ig, - 'url': /^url/i, - 'e': /e/i, - 'w': /w/i, - 'star': /\*/i - } - } - var state = context.util.guardFunctions(value) - var parts = state.value.split(',') - for (var x = 0; x < parts.length; x++) { - parts[x] = this.flip(parts[x]) - } - state.value = parts.join(',') - return { - 'prop': prop, - 'value': context.util.unguardFunctions(state, this.update.bind(this, context)) - } - } - } - ] -} diff --git a/node_modules/rtlcss/lib/rtlcss.js b/node_modules/rtlcss/lib/rtlcss.js deleted file mode 100644 index 550233b..0000000 --- a/node_modules/rtlcss/lib/rtlcss.js +++ /dev/null @@ -1,187 +0,0 @@ -/* - * RTLCSS 2.0.5 https://github.com/MohammadYounes/rtlcss - * Framework for transforming Cascading Style Sheets (CSS) from Left-To-Right (LTR) to Right-To-Left (RTL). - * Copyright 2016 Mohammad Younes. - * Licensed under MIT - * */ -'use strict' -var postcss = require('postcss') -// var directiveParser = require('./directive-parser.js') -var state = require('./state.js') -var config = require('./config.js') -var util = require('./util.js') - -module.exports = postcss.plugin('rtlcss', function (options, plugins) { - var configuration = config.configure(options, plugins) - var context = { - // provides access to postcss - 'postcss': postcss, - // provides access to the current configuration - 'config': configuration, - // provides access to utilities object - 'util': util.configure(configuration) - } - return function (css, result) { - var flipped = 0 - var toBeRenamed = {} - css.walk(function (node) { - var prevent = false - state.walk(function (current) { - // check if current directive is expecting this node - if (!current.metadata.blacklist && current.directive.expect[node.type]) { - // perform action and prevent further processing if result equals true - if (current.directive.begin(node, current.metadata, context)) { - prevent = true - } - // if should end? end it. - if (current.metadata.end && current.directive.end(node, current.metadata, context)) { - state.pop(current) - } - } - }) - - if (prevent === false) { - switch (node.type) { - case 'atrule': - // @rules requires url flipping only - if (context.config.processUrls === true || context.config.processUrls.atrule === true) { - var params = context.util.applyStringMap(node.params, true) - node.params = params - } - break - case 'comment': - state.parse(node, result, function (current) { - var push = true - if (current.directive === null) { - current.preserve = !context.config.clean - context.util.each(context.config.plugins, function (plugin) { - var blacklist = context.config.blacklist[plugin.name] - if (blacklist && blacklist[current.metadata.name] === true) { - current.metadata.blacklist = true - if (current.metadata.end) { - push = false - } - if (current.metadata.begin) { - result.warn('directive "' + plugin.name + '.' + current.metadata.name + '" is blacklisted.', {node: current.source}) - } - // break each - return false - } - current.directive = plugin.directives.control[current.metadata.name] - if (current.directive) { - // break each - return false - } - }) - } - if (current.directive) { - if (!current.metadata.begin && current.metadata.end) { - if (current.directive.end(node, current.metadata, context)) { - state.pop(current) - } - push = false - } else if (current.directive.expect.self && current.directive.begin(node, current.metadata, context)) { - if (current.metadata.end && current.directive.end(node, current.metadata, context)) { - push = false - } - } - } else if (!current.metadata.blacklist) { - push = false - result.warn('unsupported directive "' + current.metadata.name + '".', {node: current.source}) - } - return push - }) - break - case 'decl': - // if broken by a matching value directive .. break - if (!context.util.each(context.config.plugins, - function (plugin) { - return context.util.each(plugin.directives.value, function (directive) { - if (node.raws.value && node.raws.value.raw) { - var expr = context.util.regexDirective(directive.name) - if (expr.test(node.raws.value.raw)) { - expr.lastIndex = 0 - if (directive.action(node, expr, context)) { - if (context.config.clean) { - node.value = node.raws.value.raw = context.util.trimDirective(node.raws.value.raw) - } - flipped++ - // break - return false - } - } - } - }) - })) break - // loop over all plugins/property processors - context.util.each(context.config.plugins, function (plugin) { - return context.util.each(plugin.processors, function (directive) { - if (node.prop.match(directive.expr)) { - var raw = node.raws.value && node.raws.value.raw ? node.raws.value.raw : node.value - var state = context.util.saveComments(raw) - var pair = directive.action(node.prop, state.value, context) - state.value = pair.value - pair.value = context.util.restoreComments(state) - if (pair.prop !== node.prop || pair.value !== raw) { - flipped++ - node.prop = pair.prop - node.value = pair.value - } - // match found, break - return false - } - }) - }) - // if last decl, apply auto rename - // decl. may be found inside @rules - if (context.config.autoRename && !flipped && node.parent.type === 'rule' && context.util.isLastOfType(node)) { - var renamed = context.util.applyStringMap(node.parent.selector) - if (context.config.autoRenameStrict === true) { - var pair = toBeRenamed[renamed] - if (pair) { - pair.selector = node.parent.selector - node.parent.selector = renamed - } else { - toBeRenamed[node.parent.selector] = node.parent - } - } else { - node.parent.selector = renamed - } - } - break - case 'rule': - // new rule, reset flipped decl count to zero - flipped = 0 - break - } - } - }) - state.walk(function (item) { - result.warn('unclosed directive "' + item.metadata.name + '".', {node: item.source}) - }) - Object.keys(toBeRenamed).forEach(function (key) { - result.warn('renaming skipped due to lack of a matching pair.', {node: toBeRenamed[key]}) - }) - } -}) - -/** - * Creates a new RTLCSS instance, process the input and return its result. - * @param {String} css A string containing input CSS. - * @param {Object} options An object containing RTLCSS settings. - * @param {Object|Array} plugins An array containing a list of RTLCSS plugins or a single RTLCSS plugin. - * @returns {String} A string contining the RTLed css. - */ -module.exports.process = function (css, options, plugins) { - return postcss([this(options, plugins)]).process(css).css -} - -/** - * Creates a new instance of RTLCSS using the passed configuration object - * @param {Object} config An object containing RTLCSS options and plugins. - * @returns {Object} A new RTLCSS instance. - */ -module.exports.configure = function (config) { - config = config || {} - return postcss([this(config.options, config.plugins)]) -} diff --git a/node_modules/rtlcss/lib/state.js b/node_modules/rtlcss/lib/state.js deleted file mode 100644 index 67cd4f6..0000000 --- a/node_modules/rtlcss/lib/state.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict' -var directiveParser = require('./directive-parser.js') -module.exports = { - stack: [], - pop: function (current) { - var index = this.stack.indexOf(current) - if (index !== -1) { - this.stack.splice(index, 1) - } - if (!current.preserve) { - current.source.remove() - } - }, - parse: function (node, lazyResult, callback) { - var current - var metadata = directiveParser(node) - if (metadata) { - if (!metadata.begin && metadata.end) { - this.walk(function (item) { - if (metadata.name === item.metadata.name) { - this.pop(item) - current = {'metadata': metadata, 'directive': item.directive, 'source': node, 'preserve': item.preserve} - return false - } - }.bind(this)) - } else { - current = {'metadata': metadata, 'directive': null, 'source': node, 'preserve': null} - } - - if (current === undefined) { - lazyResult.warn('found end "' + metadata.name + '" without a matching begin.', {node: node}) - } else if (callback(current)) { - this.stack.push(current) - } else if (!current.preserve) { - current.source.remove() - } - } - }, - walk: function (callback) { - var len = this.stack.length - while (--len > -1) { - if (!callback(this.stack[len])) { - break - } - } - } -} diff --git a/node_modules/rtlcss/lib/util.js b/node_modules/rtlcss/lib/util.js deleted file mode 100644 index b1571b7..0000000 --- a/node_modules/rtlcss/lib/util.js +++ /dev/null @@ -1,264 +0,0 @@ -'use strict' -var config -var CHAR_COMMENT_REPLACEMENT = '\uFFFD' // � -var CHAR_TOKEN_REPLACEMENT = '\u00A4'// ¤ -var CHAR_TOKEN_START = '\u00AB' // « -var CHAR_TOKEN_END = '\u00BB' // » - -var REGEX_COMMENT_REPLACEMENT = new RegExp(CHAR_COMMENT_REPLACEMENT, 'ig') -var REGEX_TOKEN_REPLACEMENT = new RegExp(CHAR_TOKEN_REPLACEMENT, 'ig') - -var PATTERN_NUMBER = '\\-?(\\d*?\\.\\d+|\\d+)' -var PATTERN_NUMBER_WITH_CALC = '(calc' + CHAR_TOKEN_REPLACEMENT + ')|(' + PATTERN_NUMBER + ')(?!d\\()' -var PATTERN_TOKEN = CHAR_TOKEN_START + '\\d+:\\d+' + CHAR_TOKEN_END // «offset:index» -var PATTERN_TOKEN_WITH_NAME = '\\w*?' + CHAR_TOKEN_START + '\\d+:\\d+' + CHAR_TOKEN_END // «offset:index» - -var REGEX_COMMENT = /\/\*[^]*?\*\//igm // none-greedy -var REGEX_DIRECTIVE = /\/\*(?:!)?rtl:[^]*?\*\//img -var REGEX_ESCAPE = /[.*+?^${}()|[\]\\]/g -var REGEX_FUNCTION = /\([^\(\)]+\)/i -var REGEX_HEX_COLOR = /#[a-f0-9]{3,6}/ig -var REGEX_CALC = /calc/ -var REGEX_TOKENS = new RegExp(PATTERN_TOKEN, 'ig') -var REGEX_TOKENS_WITH_NAME = new RegExp(PATTERN_TOKEN_WITH_NAME, 'ig') - -var REGEX_COMPLEMENT = new RegExp(PATTERN_NUMBER_WITH_CALC, 'i') -var REGEX_NEGATE_ALL = new RegExp(PATTERN_NUMBER_WITH_CALC, 'ig') -var REGEX_NEGATE_ONE = new RegExp(PATTERN_NUMBER_WITH_CALC, 'i') - -var DEFAULT_STRING_MAP_OPTIONS = { scope: '*', ignoreCase: true } -var TOKEN_ID = 0 - -function compare (what, to, ignoreCase) { - if (ignoreCase) { - return what.toLowerCase() === to.toLowerCase() - } - return what === to -} - -function escapeRegExp (string) { - return string.replace(REGEX_ESCAPE, '\\$&') -} - -module.exports = { - extend: function (dest, src) { - if (typeof dest === 'undefined' || typeof dest !== 'object') { - dest = {} - } - for (var prop in src) { - if (!dest.hasOwnProperty(prop)) { - dest[prop] = src[prop] - } - } - return dest - }, - swap: function (value, a, b, options) { - var expr = escapeRegExp(a) + '|' + escapeRegExp(b) - options = options || DEFAULT_STRING_MAP_OPTIONS - var greedy = options.hasOwnProperty('greedy') ? options.greedy : config.greedy - if (!greedy) { - expr = '\\b(' + expr + ')\\b' - } - var flags = options.ignoreCase ? 'img' : 'mg' - return value.replace(new RegExp(expr, flags), function (m) { return compare(m, a, options.ignoreCase) ? b : a }) - }, - swapLeftRight: function (value) { - return this.swap(value, 'left', 'right') - }, - swapLtrRtl: function (value) { - return this.swap(value, 'ltr', 'rtl') - }, - applyStringMap: function (value, isUrl) { - var result = value - for (var x = 0; x < config.stringMap.length; x++) { - var map = config.stringMap[x] - var options = this.extend(map.options, DEFAULT_STRING_MAP_OPTIONS) - if (options.scope === '*' || (isUrl && options.scope === 'url') || (!isUrl && options.scope === 'selector')) { - if (Array.isArray(map.search) && Array.isArray(map.replace)) { - for (var mapIndex = 0; mapIndex < map.search.length; mapIndex++) { - result = this.swap(result, map.search[mapIndex], map.replace[mapIndex % map.search.length], options) - } - } else { - result = this.swap(result, map.search, map.replace, options) - } - if (map.exclusive === true) { - break - } - } - } - return result - }, - negate: function (value) { - var state = this.saveTokens(value) - state.value = state.value.replace(REGEX_NEGATE_ONE, function (num) { - return REGEX_TOKEN_REPLACEMENT.test(num) ? num.replace(REGEX_TOKEN_REPLACEMENT, function (m) { return '(-1*' + m + ')' }) : parseFloat(num, 10) * -1 - }) - return this.restoreTokens(state) - }, - negateAll: function (value) { - var state = this.saveTokens(value) - state.value = state.value.replace(REGEX_NEGATE_ALL, function (num) { - return REGEX_TOKEN_REPLACEMENT.test(num) ? num.replace(REGEX_TOKEN_REPLACEMENT, function (m) { return '(-1*' + m + ')' }) : parseFloat(num, 10) * -1 - }) - return this.restoreTokens(state) - }, - complement: function (value) { - var state = this.saveTokens(value) - state.value = state.value.replace(REGEX_COMPLEMENT, function (num) { - return REGEX_TOKEN_REPLACEMENT.test(num) ? num.replace(REGEX_TOKEN_REPLACEMENT, function (m) { return '(100% - ' + m + ')' }) : 100 - parseFloat(num, 10) - }) - return this.restoreTokens(state) - }, - save: function (what, who, replacement, restorer, exclude) { - var state = { - value: who, - store: [], - replacement: replacement, - restorer: restorer - } - state.value = state.value.replace(what, function (c) { - if (exclude && c.match(exclude)) { - return c - } else { - state.store.push(c); return state.replacement - } - }) - return state - }, - restore: function (state) { - var index = 0 - var result = state.value.replace(state.restorer, function () { - return state.store[index++] - }) - state.store.length = 0 - return result - }, - saveComments: function (value) { - return this.save(REGEX_COMMENT, value, CHAR_COMMENT_REPLACEMENT, REGEX_COMMENT_REPLACEMENT) - }, - restoreComments: function (state) { - return this.restore(state) - }, - saveTokens: function (value, excludeCalc) { - return excludeCalc === true - ? this.save(REGEX_TOKENS_WITH_NAME, value, CHAR_TOKEN_REPLACEMENT, REGEX_TOKEN_REPLACEMENT, REGEX_CALC) - : this.save(REGEX_TOKENS, value, CHAR_TOKEN_REPLACEMENT, REGEX_TOKEN_REPLACEMENT) - }, - restoreTokens: function (state) { - return this.restore(state) - }, - guard: function (what, who, indexed) { - var state = { - value: who, - store: [], - offset: TOKEN_ID++, - token: CHAR_TOKEN_START + TOKEN_ID, - indexed: indexed === true - } - if (state.indexed === true) { - while (what.test(state.value)) { - state.value = state.value.replace(what, function (m) { state.store.push(m); return state.token + ':' + state.store.length + CHAR_TOKEN_END }) - } - } else { - state.value = state.value.replace(what, function (m) { state.store.push(m); return state.token + CHAR_TOKEN_END }) - } - return state - }, - unguard: function (state, callback) { - if (state.indexed === true) { - var detokenizer = new RegExp('(\\w*?)' + state.token + ':(\\d+)' + CHAR_TOKEN_END, 'i') - while (detokenizer.test(state.value)) { - state.value = state.value.replace(detokenizer, function (match, name, index) { - var value = state.store[index - 1] - if (typeof callback === 'function') { - return name + callback(value, name) - } - return name + value - }) - } - return state.value - } else { - return state.value.replace(new RegExp('(\\w*?)' + state.token + CHAR_TOKEN_END, 'i'), function (match, name) { - var value = state.store.shift() - if (typeof callback === 'function') { - return name + callback(value, name) - } - return name + value - }) - } - }, - guardHexColors: function (value) { - return this.guard(REGEX_HEX_COLOR, value, true) - }, - unguardHexColors: function (state, callback) { - return this.unguard(state, callback) - }, - guardFunctions: function (value) { - return this.guard(REGEX_FUNCTION, value, true) - }, - unguardFunctions: function (state, callback) { - return this.unguard(state, callback) - }, - trimDirective: function (value) { - return value.replace(REGEX_DIRECTIVE, '') - }, - regexCache: {}, - regexDirective: function (name) { - // /(?:\/\*(?:!)?rtl:ignore(?::)?)([^]*?)(?:\*\/)/img - this.regexCache[name] = this.regexCache[name] || new RegExp('(?:\\/\\*(?:!)?rtl:' + (name ? escapeRegExp(name) + '(?::)?' : '') + ')([^]*?)(?:\\*\\/)', 'img') - return this.regexCache[name] - }, - regex: function (what, options) { - what = what || [] - var expression = '' - for (var x = 0; x < what.length; x++) { - switch (what[x]) { - case 'percent': - expression += '|(' + PATTERN_NUMBER + '%)' - break - case 'length': - expression += '|(' + PATTERN_NUMBER + ')(?:ex|ch|r?em|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc)?' - break - case 'number': - expression += '|(' + PATTERN_NUMBER + ')' - break - case 'position': - expression += '|(left|center|right|top|bottom)' - break - case 'calc': - expression += '|(calc' + PATTERN_TOKEN + ')' - break - } - } - return new RegExp(expression.slice(1), options) - }, - isLastOfType: function (node) { - var isLast = true - var next = node.next() - while (next) { - if (next && next.type === node.type) { - isLast = false - break - } - next = next.next() - } - return isLast - }, - /** - * Simple breakable each: returning false in the callback will break the loop - * returns false if the loop was broken, otherwise true - */ - each: function (array, callback) { - for (var len = 0; len < array.length; len++) { - if (callback(array[len]) === false) { - return false - } - } - return true - } -} - -module.exports.configure = function (configuration) { - config = configuration - return this -} diff --git a/node_modules/rtlcss/package.json b/node_modules/rtlcss/package.json deleted file mode 100644 index 888b896..0000000 --- a/node_modules/rtlcss/package.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rtlcss@^2.0.0", - "scope": null, - "escapedName": "rtlcss", - "name": "rtlcss", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/gulp-rtlcss" - ] - ], - "_from": "rtlcss@>=2.0.0 <3.0.0", - "_id": "rtlcss@2.1.2", - "_inCache": true, - "_location": "/rtlcss", - "_nodeVersion": "5.10.1", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/rtlcss-2.1.2.tgz_1483214922179_0.505813839379698" - }, - "_npmUser": { - "name": "myounes", - "email": "myounes@gmail.com" - }, - "_npmVersion": "4.0.3", - "_phantomChildren": {}, - "_requested": { - "raw": "rtlcss@^2.0.0", - "scope": null, - "escapedName": "rtlcss", - "name": "rtlcss", - "rawSpec": "^2.0.0", - "spec": ">=2.0.0 <3.0.0", - "type": "range" - }, - "_requiredBy": [ - "/gulp-rtlcss" - ], - "_resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-2.1.2.tgz", - "_shasum": "a5626edc9e7f6017f2d8df30c8bf622bd193a8fc", - "_shrinkwrap": null, - "_spec": "rtlcss@^2.0.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/gulp-rtlcss", - "author": { - "name": "Mohammad Younes" - }, - "bin": { - "rtlcss": "./bin/rtlcss.js" - }, - "bugs": { - "url": "https://github.com/MohammadYounes/rtlcss/issues?state=open" - }, - "dependencies": { - "chalk": "^1.0.0", - "findup": "^0.1.5", - "mkdirp": "^0.5.1", - "postcss": "^5.0.0", - "strip-json-comments": "^2.0.0" - }, - "description": "Framework for transforming cascading style sheets (CSS) from left-to-right (LTR) to right-to-left (RTL)", - "devDependencies": { - "mocha": "^2.0.0", - "standard": "^6.0.0" - }, - "directories": {}, - "dist": { - "shasum": "a5626edc9e7f6017f2d8df30c8bf622bd193a8fc", - "tarball": "https://registry.npmjs.org/rtlcss/-/rtlcss-2.1.2.tgz" - }, - "gitHead": "5894fcfb864aabe2b5671a3df9ad195b84df97aa", - "homepage": "http://rtlcss.com/", - "keywords": [ - "rtl", - "css", - "ltr", - "rtlcss", - "framework", - "style", - "mirror", - "flip", - "convert", - "transform" - ], - "license": "MIT", - "main": "./lib/rtlcss.js", - "maintainers": [ - { - "name": "myounes", - "email": "myounes@gmail.com" - } - ], - "name": "rtlcss", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/MohammadYounes/rtlcss.git" - }, - "scripts": { - "lint": "standard && node ./lib/rtlcss.js", - "test": "npm run lint && mocha -R spec" - }, - "version": "2.1.2" -} diff --git a/node_modules/rtlcss/test/cli.js b/node_modules/rtlcss/test/cli.js deleted file mode 100644 index d69041e..0000000 --- a/node_modules/rtlcss/test/cli.js +++ /dev/null @@ -1,38 +0,0 @@ -/* global process */ -/* global describe */ -/* global it */ -var assert = require('assert') -var spawn = require('child_process').spawn -var fs = require('fs') - -function run_cmd (cmd, args, done) { - var child = spawn(cmd, args) - var resp = '' - var err = '' - child.stderr.on('data', function (error) { err += error }) - child.stdout.on('data', function (buffer) { resp += buffer.toString() }) - child.stdout.on('end', function () { done(err, resp) }) -} - -var configPath = './test/css/config.json' -var inputPath = './test/css/input.css' -var expectedPath = './test/css/input.expected.css' -var outputPath = './test/css/input.rtl.css' - -describe('# CLI', function () { - it('Should succeed', function (done) { - run_cmd('node', ['./bin/rtlcss.js', inputPath, '--config', configPath, '--silent', ''], function (err, resp) { - if (err) throw new Error(err) - fs.readFile(expectedPath, 'utf-8', function (err, expected) { - if (err) throw new Error(err) - fs.readFile(outputPath, 'utf-8', function (err, output) { - if (err) throw new Error(err) - assert.equal(expected, output) - fs.unlink(outputPath, function () { - done() - }) - }) - }) - }) - }) -}) diff --git a/node_modules/rtlcss/test/css/config.json b/node_modules/rtlcss/test/css/config.json deleted file mode 100644 index 16a83fc..0000000 --- a/node_modules/rtlcss/test/css/config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "options": { - "autoRename": true, - "processUrls": true, - "greedy": true, - "stringMap": [] - }, - "plugins": [], - "map": true // used by CLI -} \ No newline at end of file diff --git a/node_modules/rtlcss/test/css/input.css b/node_modules/rtlcss/test/css/input.css deleted file mode 100644 index dc5165b..0000000 --- a/node_modules/rtlcss/test/css/input.css +++ /dev/null @@ -1,120 +0,0 @@ -/* - -Preserves orignal formatting - - */ -/* declarations can exist inside atrules */ -@font-face { - font-family: 'Test font'; -} - -/* comment before rule */ -body/* comment after rule name */{ - /* comment before decl */ - padding /* comment after prop */ : /* comment before val */ 0 /* comment after val */ 1px /* another comment */ 2px /* one more */ 3px /* last one*/; - /* comment after decl */ - - margin: - 0 /*top*/ - 1px /*right - multi-line - comment - */ - 2px /*bottom*/ - 3px /*left*/; - - border-left/* comment after prop */: none; -} - -/* empty options forces defaults */ -/*rtl:begin:options: {}*/ -/* should not process urls - default */ -@import url("rtl-right-east.css"); -/*rtl:end:options*/ - -/*rtl:begin:config: -{ - "options":{ - "autoRename": true, - "stringMap":[ - { - "name" : "prev-next", - "search" : ["prev", "Prev", "PREV"], - "replace" : ["next", "Next", "NEXT"], - "options" : {"ignoreCase":false} - } - ] - }, - "plugins":[ - { - "name": "test", - "directives":{ - "control": {}, - "value": [] - }, - "processors": [ - { - "name": "content", - "expr": /content/im, - "action": function (prop, value, cxt) { - if (value === '"A"') { - return { 'prop': prop, 'value': '"ABC"' } - } else if (value === '"ABC"') { - return { 'prop': prop, 'value': '"A"' } - } - return { 'prop': prop, 'value': value } - } - } - ] - } - ] -}*/ -div:before { content: "A";} div:after { content: "ABC";} - -.demo-prev, .demo-Prev, .demo-PREV { content: 'p'; } -.demo-next, .demo-Next, .demo-NEXT { content: 'n'; } - -/*rtl:end:config*/ - -/*!rtl:begin:remove*/ -@import url(/test.css); -i { - color: blue; -} -/*rtl:end:remove*/ - - -div { - /*rtl:remove*/ - direction: rtl; - text-align: right; - padding: 10px; -} - -/*rtl:begin:ignore*/ -.sample { - text-align: left; -} -/*rtl:end:ignore*/ - - -/*rtl:begin:options:{"autoRename":false, "clean": false}*/ -.right { display:inline;} -/*rtl:begin:options:{"autoRename":true, "greedy": true}*/ -.bright { display:inline;} -/*rtl:end:options*/ -.brighter { display:inline;} -/*rtl:end:options*/ - -/* auto rename only if a pair exists */ - -/*rtl:begin:options:{"autoRename":true, "autoRenameStrict": true}*/ - -/* The following should not be renamed */ -.ltr{ display: inline-flex;} - -/* But these should */ -.right{ display: inline-flex;} -.left { display: block;} - -/*rtl:end:options*/ \ No newline at end of file diff --git a/node_modules/rtlcss/test/css/input.expected.css b/node_modules/rtlcss/test/css/input.expected.css deleted file mode 100644 index fbb4efc..0000000 --- a/node_modules/rtlcss/test/css/input.expected.css +++ /dev/null @@ -1,59 +0,0 @@ -/* - -Preserves orignal formatting - - */ -/* declarations can exist inside atrules */ -@font-face { - font-family: 'Test font'; -} - -/* comment before rule */ -body/* comment after rule name */{ - /* comment before decl */ - padding /* comment after prop */ : /* comment before val */ 0 /* comment after val */ 3px /* another comment */ 2px /* one more */ 1px /* last one*/; - /* comment after decl */ - - margin: - 0 /*top*/ - 3px /*right - multi-line - comment - */ - 2px /*bottom*/ - 1px /*left*/; - - border-right/* comment after prop */: none; -} - -/* empty options forces defaults */ -/* should not process urls - default */ -@import url("rtl-right-east.css"); -div:before { content: "ABC";} div:after { content: "A";} - -.demo-next, .demo-Next, .demo-NEXT { content: 'p'; } -.demo-prev, .demo-Prev, .demo-PREV { content: 'n'; } - - -div { - text-align: left; - padding: 10px; -} -.sample { - text-align: left; -} -.right { display:inline;} -/*rtl:begin:options:{"autoRename":true, "greedy": true}*/ -.bleft { display:inline;} -/*rtl:end:options*/ -.brighter { display:inline;} - -/* auto rename only if a pair exists */ - -/* The following should not be renamed */ -.ltr{ display: inline-flex;} - -/* But these should */ -.left{ display: inline-flex;} -.right { display: block;} -/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7OztHQUlHO0FBQ0gsMkNBQTJDO0FBQzNDO0VBQ0UseUJBQXlCO0NBQzFCOztBQUVELHlCQUF5QjtBQUN6QjtJQUNJLHlCQUF5QjtJQUN6Qix3SkFBd0o7SUFDeEosd0JBQXdCOztJQUV4Qjs7Ozs7OztxQkFPaUI7O0lBRWpCLDRDQUEyQztDQUM5Qzs7QUFFRCxtQ0FBbUM7QUFFbkMsdUNBQXVDO0FBQ3ZDLGtDQUFrQztBQXdDbEMsYUFBYSxlQUFhLENBQUMsQ0FBQyxZQUFZLGFBQWUsQ0FBQzs7QUFFeEQscUNBQXFDLGFBQWEsRUFBRTtBQUNwRCxxQ0FBcUMsYUFBYSxFQUFFOzs7QUFZcEQ7RUFHRSxpQkFBa0I7RUFDbEIsY0FBYztDQUNmO0FBR0Q7SUFDSSxpQkFBaUI7Q0FDcEI7QUFLRCxTQUFTLGVBQWUsQ0FBQztBQUN6Qix5REFBeUQ7QUFDekQsU0FBVSxlQUFlLENBQUM7QUFDMUIsbUJBQW1CO0FBQ25CLFlBQVksZUFBZSxDQUFDOztBQUc1Qix1Q0FBdUM7O0FBSXZDLHlDQUF5QztBQUN6QyxNQUFNLHFCQUFxQixDQUFDOztBQUU1QixzQkFBc0I7QUFDdEIsT0FBUSxxQkFBcUIsQ0FBQztBQUM5QixTQUFRLGVBQWUsQ0FBQyIsImZpbGUiOiJpbnB1dC5ydGwuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLypcblxuUHJlc2VydmVzIG9yaWduYWwgZm9ybWF0dGluZ1xuXG4gKi9cbi8qIGRlY2xhcmF0aW9ucyBjYW4gZXhpc3QgaW5zaWRlIGF0cnVsZXMgKi9cbkBmb250LWZhY2Uge1xuICBmb250LWZhbWlseTogJ1Rlc3QgZm9udCc7XG59XG5cbi8qIGNvbW1lbnQgYmVmb3JlIHJ1bGUgKi9cbmJvZHkvKiBjb21tZW50IGFmdGVyIHJ1bGUgbmFtZSAqL3tcbiAgICAvKiBjb21tZW50IGJlZm9yZSBkZWNsICovXG4gICAgcGFkZGluZyAvKiAgY29tbWVudCBhZnRlciBwcm9wICovIDogLyogIGNvbW1lbnQgYmVmb3JlIHZhbCAqLyAwIC8qICBjb21tZW50IGFmdGVyIHZhbCAqLyAxcHggLyogYW5vdGhlciBjb21tZW50ICovIDJweCAvKiBvbmUgbW9yZSAqLyAzcHggLyogbGFzdCBvbmUqLztcbiAgICAvKiBjb21tZW50IGFmdGVyIGRlY2wgKi9cblxuICAgIG1hcmdpbjpcbiAgICAgICAgMCAvKnRvcCovXG4gICAgICAgIDFweCAvKnJpZ2h0XG4gICAgICAgIG11bHRpLWxpbmVcbiAgICAgICAgY29tbWVudFxuICAgICAgICAqL1xuICAgICAgICAycHggLypib3R0b20qL1xuICAgICAgICAzcHggLypsZWZ0Ki87XG5cbiAgICBib3JkZXItbGVmdC8qICBjb21tZW50IGFmdGVyIHByb3AgKi86IG5vbmU7XG59XG5cbi8qIGVtcHR5IG9wdGlvbnMgZm9yY2VzIGRlZmF1bHRzICovXG4vKnJ0bDpiZWdpbjpvcHRpb25zOiB7fSovXG4vKiBzaG91bGQgbm90IHByb2Nlc3MgdXJscyAtIGRlZmF1bHQgKi9cbkBpbXBvcnQgdXJsKFwicnRsLXJpZ2h0LWVhc3QuY3NzXCIpO1xuLypydGw6ZW5kOm9wdGlvbnMqL1xuXG4vKnJ0bDpiZWdpbjpjb25maWc6XG57XG4gICAgXCJvcHRpb25zXCI6e1xuICAgICAgICBcImF1dG9SZW5hbWVcIjogdHJ1ZSxcbiAgICAgICAgXCJzdHJpbmdNYXBcIjpbXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICBcIm5hbWVcIiAgICA6IFwicHJldi1uZXh0XCIsXG4gICAgICAgICAgICBcInNlYXJjaFwiICA6IFtcInByZXZcIiwgXCJQcmV2XCIsIFwiUFJFVlwiXSxcbiAgICAgICAgICAgIFwicmVwbGFjZVwiIDogW1wibmV4dFwiLCBcIk5leHRcIiwgXCJORVhUXCJdLFxuICAgICAgICAgICAgXCJvcHRpb25zXCIgOiB7XCJpZ25vcmVDYXNlXCI6ZmFsc2V9XG4gICAgICAgICAgICB9XG4gICAgICAgIF1cbiAgICB9LFxuICAgIFwicGx1Z2luc1wiOltcbiAgICAgIHtcbiAgICAgICAgXCJuYW1lXCI6IFwidGVzdFwiLFxuICAgICAgICBcImRpcmVjdGl2ZXNcIjp7XG4gICAgICAgICAgXCJjb250cm9sXCI6IHt9LFxuICAgICAgICAgIFwidmFsdWVcIjogW11cbiAgICAgICAgfSxcbiAgICAgICAgXCJwcm9jZXNzb3JzXCI6IFtcbiAgICAgICAgICB7XG4gICAgICAgICAgICBcIm5hbWVcIjogXCJjb250ZW50XCIsXG4gICAgICAgICAgICBcImV4cHJcIjogL2NvbnRlbnQvaW0sXG4gICAgICAgICAgICBcImFjdGlvblwiOiBmdW5jdGlvbiAocHJvcCwgdmFsdWUsIGN4dCkge1xuICAgICAgICAgICAgICBpZiAodmFsdWUgPT09ICdcIkFcIicpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4geyAncHJvcCc6IHByb3AsICd2YWx1ZSc6ICdcIkFCQ1wiJyB9XG4gICAgICAgICAgICAgIH0gZWxzZSBpZiAodmFsdWUgPT09ICdcIkFCQ1wiJykge1xuICAgICAgICAgICAgICAgIHJldHVybiB7ICdwcm9wJzogcHJvcCwgJ3ZhbHVlJzogJ1wiQVwiJyB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgcmV0dXJuIHsgJ3Byb3AnOiBwcm9wLCAndmFsdWUnOiB2YWx1ZSB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICBdXG4gICAgICB9XG4gICAgXVxufSovXG5kaXY6YmVmb3JlIHsgY29udGVudDogXCJBXCI7fSBkaXY6YWZ0ZXIgeyBjb250ZW50OiBcIkFCQ1wiO31cblxuLmRlbW8tcHJldiwgLmRlbW8tUHJldiwgLmRlbW8tUFJFViB7IGNvbnRlbnQ6ICdwJzsgfVxuLmRlbW8tbmV4dCwgLmRlbW8tTmV4dCwgLmRlbW8tTkVYVCB7IGNvbnRlbnQ6ICduJzsgfVxuXG4vKnJ0bDplbmQ6Y29uZmlnKi9cblxuLyohcnRsOmJlZ2luOnJlbW92ZSovXG5AaW1wb3J0IHVybCgvdGVzdC5jc3MpO1xuaSB7XG4gIGNvbG9yOiBibHVlOyAgXG59XG4vKnJ0bDplbmQ6cmVtb3ZlKi9cblxuXG5kaXYge1xuICAvKnJ0bDpyZW1vdmUqL1xuICBkaXJlY3Rpb246IHJ0bDtcbiAgdGV4dC1hbGlnbjogcmlnaHQ7XG4gIHBhZGRpbmc6IDEwcHg7XG59XG5cbi8qcnRsOmJlZ2luOmlnbm9yZSovXG4uc2FtcGxlIHtcbiAgICB0ZXh0LWFsaWduOiBsZWZ0O1xufVxuLypydGw6ZW5kOmlnbm9yZSovXG5cblxuLypydGw6YmVnaW46b3B0aW9uczp7XCJhdXRvUmVuYW1lXCI6ZmFsc2UsIFwiY2xlYW5cIjogZmFsc2V9Ki9cbi5yaWdodCB7IGRpc3BsYXk6aW5saW5lO31cbi8qcnRsOmJlZ2luOm9wdGlvbnM6e1wiYXV0b1JlbmFtZVwiOnRydWUsIFwiZ3JlZWR5XCI6IHRydWV9Ki9cbi5icmlnaHQgeyBkaXNwbGF5OmlubGluZTt9XG4vKnJ0bDplbmQ6b3B0aW9ucyovXG4uYnJpZ2h0ZXIgeyBkaXNwbGF5OmlubGluZTt9XG4vKnJ0bDplbmQ6b3B0aW9ucyovXG5cbi8qIGF1dG8gcmVuYW1lIG9ubHkgaWYgYSBwYWlyIGV4aXN0cyAqL1xuXG4vKnJ0bDpiZWdpbjpvcHRpb25zOntcImF1dG9SZW5hbWVcIjp0cnVlLCBcImF1dG9SZW5hbWVTdHJpY3RcIjogdHJ1ZX0qL1xuXG4vKiBUaGUgZm9sbG93aW5nIHNob3VsZCBub3QgYmUgcmVuYW1lZCAqL1xuLmx0cnsgZGlzcGxheTogaW5saW5lLWZsZXg7fVxuXG4vKiBCdXQgdGhlc2Ugc2hvdWxkICovXG4ucmlnaHR7IGRpc3BsYXk6IGlubGluZS1mbGV4O31cbi5sZWZ0IHsgZGlzcGxheTogYmxvY2s7fVxuXG4vKnJ0bDplbmQ6b3B0aW9ucyovIl19 */ \ No newline at end of file diff --git a/node_modules/rtlcss/test/data/background-image.js b/node_modules/rtlcss/test/data/background-image.js deleted file mode 100644 index cc70bb3..0000000 --- a/node_modules/rtlcss/test/data/background-image.js +++ /dev/null @@ -1,27 +0,0 @@ -module.exports = [ - { - 'should': 'Should process string map in url (processUrls:true)', - 'expected': 'div { background-image: url(images/rtl.png), url(images/right.png);}', - 'input': 'div { background-image: url(images/ltr.png), url(images/left.png);}', - 'reversable': true, - 'options': { 'processUrls': true } - }, - { - 'should': 'Should not negate color value for linear gradient', - 'expected': 'div { background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, #ff8 100%);}', - 'input': 'div { background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, #ff8 100%);}', - 'reversable': true - }, - { - 'should': 'Should not negate color value for linear gradient with calc', - 'expected': 'div { background-image: linear-gradient(rgba(255, 255, calc((125 * 2) + 5), 0.3) 0%, #ff8 100%);}', - 'input': 'div { background-image: linear-gradient(rgba(255, 255, calc((125 * 2) + 5), 0.3) 0%, #ff8 100%);}', - 'reversable': true - }, - { - 'should': 'Should negate angle value for linear gradient', - 'expected': 'div { background-image: linear-gradient(13.25deg, rgba(255, 255, 255, .15) 25%, transparent 25%);}', - 'input': 'div { background-image: linear-gradient(-13.25deg, rgba(255, 255, 255, .15) 25%, transparent 25%);}', - 'reversable': true - } -] diff --git a/node_modules/rtlcss/test/data/background-position.js b/node_modules/rtlcss/test/data/background-position.js deleted file mode 100644 index 3a34889..0000000 --- a/node_modules/rtlcss/test/data/background-position.js +++ /dev/null @@ -1,86 +0,0 @@ -module.exports = [ - { - 'should': 'Should complement percentage horizontal position ', - 'expected': 'div {background-position:100% 75%;}', - 'input': 'div {background-position:0 75%;}', - 'reversable': false - }, - { - 'should': 'Should complement percentage horizontal position with calc', - 'expected': 'div {background-position:calc(100% - (30% + 50px)) 75%;}', - 'input': 'div {background-position:calc(30% + 50px) 75%;}', - 'reversable': false - }, - { - 'should': 'Should complement percentage horizontal position ', - 'expected': 'div {background-position:81.25% 75%, 10.75% top;}', - 'input': 'div {background-position:18.75% 75%, 89.25% top;}', - 'reversable': true - }, - { - 'should': 'Should complement percentage horizontal position with calc', - 'expected': 'div {background-position:calc(100% - (30% + 50px)) calc(30% + 50px), 10.75% top;}', - 'input': 'div {background-position:calc(30% + 50px) calc(30% + 50px), 89.25% top;}', - 'reversable': false - }, - { - 'should': 'Should mirror background-position', - 'expected': 'div {background-position:right 75%, left top;}', - 'input': 'div {background-position:left 75%, right top;}', - 'reversable': true - }, - { - 'should': 'Should mirror background-position (calc)', - 'expected': 'div {background-position:right -ms-calc(30% + 50px), left top;}', - 'input': 'div {background-position:left -ms-calc(30% + 50px), right top;}', - 'reversable': true - }, - { - 'should': 'Should complement percentage: position-x (treat 0 as 0%)', - 'expected': 'div {background-position-x:100%, 0%;}', - 'input': 'div {background-position-x:0, 100%;}', - 'reversable': false - }, - { - 'should': 'Should complement percentage: position-x', - 'expected': 'div {background-position-x:81.75%, 11%;}', - 'input': 'div {background-position-x:18.25%, 89%;}', - 'reversable': true - }, - { - 'should': 'Should complement percentage with calc: position-x', - 'expected': 'div {background-position-x:calc(100% - (30% + 50px)), -webkit-calc(100% - (30% + 50px));}', - 'input': 'div {background-position-x:calc(30% + 50px), -webkit-calc(30% + 50px);}', - 'reversable': false - }, - { - 'should': 'Should mirror position-x', - 'expected': 'div {background-position-x:right, left;}', - 'input': 'div {background-position-x:left, right;}', - 'reversable': true - }, - { - 'should': 'Should mirror position-x (calc)', - 'expected': 'div {background-position-x:calc(100% - (30% + 50px)), calc(100% - (50px * 5));}', - 'input': 'div {background-position-x:calc(30% + 50px), calc(50px * 5);}', - 'reversable': false - }, - { - 'should': 'Should keep as is: position-x', - 'expected': 'div {background-position-x:100px, 0px;}', - 'input': 'div {background-position-x:100px, 0px;}', - 'reversable': true - }, - { - 'should': 'Should mirror background-position edge offsets (4 values)', - 'expected': 'div {background-position: left 5px bottom 5px, bottom 15px right 15px;}', - 'input': 'div {background-position: right 5px bottom 5px, bottom 15px left 15px;}', - 'reversable': true - }, - { - 'should': 'Should mirror background-position edge offsets (3 values)', - 'expected': 'div {background-position: left 5px bottom, top 15px right;}', - 'input': 'div {background-position: right 5px bottom, top 15px left;}', - 'reversable': true - } -] diff --git a/node_modules/rtlcss/test/data/background.js b/node_modules/rtlcss/test/data/background.js deleted file mode 100644 index 441ecc6..0000000 --- a/node_modules/rtlcss/test/data/background.js +++ /dev/null @@ -1,84 +0,0 @@ -module.exports = [ - { - 'should': 'Should treat 0 as 0%', - 'expected': '.banner { background: 100% top url(topbanner.png) #00D repeat-y fixed; }', - 'input': '.banner { background: 0 top url(topbanner.png) #00D repeat-y fixed; }', - 'reversable': false - }, - { - 'should': 'Should complement percentage horizontal position', - 'expected': '.banner { background: 81% top url(topbanner.png) #00D repeat-y fixed; }', - 'input': '.banner { background: 19% top url(topbanner.png) #00D repeat-y fixed; }', - 'reversable': true - }, - { - 'should': 'Should complement calc horizontal position', - 'expected': '.banner { background: calc(100% - (19% + 2px)) top url(topbanner.png) #00D repeat-y fixed; }', - 'input': '.banner { background: calc(19% + 2px) top url(topbanner.png) #00D repeat-y fixed; }', - 'reversable': false - }, - { - 'should': 'Should mirror keyword horizontal position', - 'expected': '.banner { background: right top url(topbanner.png) #00D repeat-y fixed; }', - 'input': '.banner { background: left top url(topbanner.png) #00D repeat-y fixed; }', - 'reversable': true - }, - { - 'should': 'Should not process string map in url (default)', - 'expected': '.banner { background: 10px top url(ltr-top-right-banner.png) #00D repeat-y fixed; }', - 'input': '.banner { background: 10px top url(ltr-top-right-banner.png) #00D repeat-y fixed; }', - 'reversable': true - }, - { - 'should': 'Should process string map in url (processUrls:true)', - 'expected': '.banner { background: 10px top url(rtl-top-left-banner.png) #00D repeat-y fixed; }', - 'input': '.banner { background: 10px top url(ltr-top-right-banner.png) #00D repeat-y fixed; }', - 'reversable': true, - 'options': { 'processUrls': true } - }, - { - 'should': 'Should process string map in url (processUrls:{decl:true})', - 'expected': '.banner { background: 10px top url(rtl-top-left-banner.png) #00D repeat-y fixed; }', - 'input': '.banner { background: 10px top url(ltr-top-right-banner.png) #00D repeat-y fixed; }', - 'reversable': true, - 'options': { 'processUrls': { 'decl': true } } - }, - { - 'should': 'Should not process string map in url (processUrls:{atrule:true})', - 'expected': '.banner { background: 10px top url(ltr-top-right-banner.png) #00D repeat-y fixed; }', - 'input': '.banner { background: 10px top url(ltr-top-right-banner.png) #00D repeat-y fixed; }', - 'reversable': true, - 'options': { 'processUrls': { 'atrule': true } } - }, - { - 'should': 'Should not swap bright:bleft, ultra:urtla', - 'expected': '.banner { background: 10px top url(ultra/bright.png) #00D repeat-y fixed; }', - 'input': '.banner { background: 10px top url(ultra/bright.png) #00D repeat-y fixed; }', - 'reversable': true - }, - { - 'should': 'Should swap bright:bleft, ultra:urtla (processUrls: true, greedy)', - 'expected': '.banner { background: 10px top url(urtla/bleft.png) #00D repeat-y fixed; }', - 'input': '.banner { background: 10px top url(ultra/bright.png) #00D repeat-y fixed; }', - 'reversable': true, - 'options': { 'processUrls': true, 'greedy': true } - }, - { - 'should': 'Should not flip hex colors ', - 'expected': '.banner { background: #ff0; }', - 'input': '.banner { background: #ff0; }', - 'reversable': true - }, - { - 'should': 'Should treat 0 as 0% (url first)', - 'expected': '.banner { background: url(topbanner.png) 100% top #00D repeat-y fixed; }', - 'input': '.banner { background: url(topbanner.png) 0 top #00D repeat-y fixed; }', - 'reversable': false - }, - { - 'should': 'Should complement calc horizontal position (url first)', - 'expected': '.banner { background: url(topbanner.png) calc(100% - (19% + 2px)) top #00D repeat-y fixed; }', - 'input': '.banner { background: url(topbanner.png) calc(19% + 2px) top #00D repeat-y fixed; }', - 'reversable': false - } -] diff --git a/node_modules/rtlcss/test/data/properties.js b/node_modules/rtlcss/test/data/properties.js deleted file mode 100644 index cf4398e..0000000 --- a/node_modules/rtlcss/test/data/properties.js +++ /dev/null @@ -1,56 +0,0 @@ -module.exports = [ - { - 'should': 'Should mirror property name: border-top-right-radius', - 'expected': 'div { border-top-left-radius:15px; }', - 'input': 'div { border-top-right-radius:15px; }', - 'reversable': true - }, - { - 'should': 'Should mirror property name: border-bottom-right-radius', - 'expected': 'div { border-bottom-left-radius:15px; }', - 'input': 'div { border-bottom-right-radius:15px; }', - 'reversable': true - }, - { - 'should': 'Should mirror property name: border-left', - 'expected': 'div { border-right:1px solid black; }', - 'input': 'div { border-left:1px solid black; }', - 'reversable': true - }, - { - 'should': 'Should mirror property name: border-left-color', - 'expected': 'div { border-right-color:black; }', - 'input': 'div { border-left-color:black; }', - 'reversable': true - }, - { - 'should': 'Should mirror property name: border-left-style', - 'expected': 'div { border-right-style:solid; }', - 'input': 'div { border-left-style:solid; }', - 'reversable': true - }, - { - 'should': 'Should mirror property name: border-left-width', - 'expected': 'div { border-right-width:1em; }', - 'input': 'div { border-left-width:1em; }', - 'reversable': true - }, - { - 'should': 'Should mirror property name: left', - 'expected': 'div { right:auto; }', - 'input': 'div { left:auto; }', - 'reversable': true - }, - { - 'should': 'Should mirror property name: margin-left', - 'expected': 'div { margin-right:2em; }', - 'input': 'div { margin-left:2em; }', - 'reversable': true - }, - { - 'should': 'Should mirror property name: padding-left', - 'expected': 'div { padding-right:2em; }', - 'input': 'div { padding-left:2em; }', - 'reversable': true - } -] diff --git a/node_modules/rtlcss/test/data/rtlcss-directives.js b/node_modules/rtlcss/test/data/rtlcss-directives.js deleted file mode 100644 index 8ebb19d..0000000 --- a/node_modules/rtlcss/test/data/rtlcss-directives.js +++ /dev/null @@ -1,408 +0,0 @@ -module.exports = [ - { - 'should': 'Should auto rename selectors having no directional decl. unless forced to ignore. (autoRename:true)', - 'expected': '.right .rtl .bright .ultra { display:block; }', - 'input': '/*rtl:ignore*/ .right .rtl .bright .ultra { display:block; }', - 'reversable': false, - 'options': { 'autoRename': true } - }, - { - 'should': 'Should auto rename selectors having no directional decl. unless forced to ignore. (autoRename:true, clean: false)', - 'expected': '/*rtl:ignore*/ .right .rtl .bright .ultra { display:block; }', - 'input': '/*rtl:ignore*/ .right .rtl .bright .ultra { display:block; }', - 'reversable': false, - 'options': { 'autoRename': true, 'clean': false } - }, - { - 'should': 'Should auto rename selectors having no directional decl. unless forced to ignore. (autoRename:true, !important comment)', - 'expected': '.right .rtl .bright .ultra { display:block; }', - 'input': '/*!rtl:ignore*/ .right .rtl .bright .ultra { display:block; }', - 'reversable': false, - 'options': { 'autoRename': true } - }, - { - 'should': 'Should auto rename selectors having no directional decl. unless forced to ignore. (autoRename:true, clean:false, !important comment)', - 'expected': '/*!rtl:ignore*/ .right .rtl .bright .ultra { display:block; }', - 'input': '/*!rtl:ignore*/ .right .rtl .bright .ultra { display:block; }', - 'reversable': false, - 'options': { 'autoRename': true, 'clean': false } - }, - { - 'should': 'Should auto rename selectors having no directional decl. unless forced to ignore. (autoRename:true,greedy)', - 'expected': '.right .rtl .bright .ultra { display:block; }', - 'input': '/*rtl:ignore*/ .right .rtl .bright .ultra { display:block; }', - 'reversable': false, - 'options': { 'autoRename': true, 'greedy': true } - }, - { - 'should': 'Should auto rename selectors having no directional decl. unless forced to ignore. (autoRename:true, greedy, !important comment)', - 'expected': '.right .rtl .bright .ultra { display:block; }', - 'input': '/*!rtl:ignore*/ .right .rtl .bright .ultra { display:block; }', - 'reversable': false, - 'options': { 'autoRename': true, 'greedy': true } - }, - { - 'should': 'Should rename selectors when forced. (default)', - 'expected': '.left .ltr .bright .ultra { display:block; }', - 'input': '/*rtl:rename*/.right .rtl .bright .ultra { display:block; }', - 'reversable': false - }, - { - 'should': 'Should rename selectors when forced. (clean:false)', - 'expected': '/*rtl:rename*/.left .ltr .bright .ultra { display:block; left:0;}', - 'input': '/*rtl:rename*/.right .rtl .bright .ultra { display:block; right:0;}', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should rename selectors when forced. (!important comment)', - 'expected': '.left .ltr .bright .ultra { display:block; left:0; }', - 'input': '/*!rtl:rename*/.right .rtl .bright .ultra { display:block; right:0; }', - 'reversable': false - }, - { - 'should': 'Should rename selectors when forced. (clean:false, !important comment)', - 'expected': '/*!rtl:rename*/.left .ltr .bright .ultra { display:block; left:0; }', - 'input': '/*!rtl:rename*/.right .rtl .bright .ultra { display:block; right:0; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should rename selectors when forced. (greedy)', - 'expected': '.left .ltr .bleft .urtla { display:block; left:0; }', - 'input': '/*rtl:rename*/.right .rtl .bright .ultra { display:block; right:0; }', - 'reversable': false, - 'options': { 'greedy': true } - }, - { - 'should': 'Should rename selectors when forced. (greedy, !important comment)', - 'expected': '.left .ltr .bleft .urtla { display:block; left:0; }', - 'input': '/*!rtl:rename*/.right .rtl .bright .ultra { display:block; right:0; }', - 'reversable': false, - 'options': { 'greedy': true } - }, - { - 'should': 'Should prepend value. (default)', - 'expected': 'div { font-family: "Droid Arabic Kufi", "Droid Sans", Tahoma; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*rtl:prepend:"Droid Arabic Kufi", */; }', - 'reversable': false - }, - { - 'should': 'Should prepend value. (clean:false)', - 'expected': 'div { font-family: "Droid Arabic Kufi", "Droid Sans", Tahoma/*rtl:prepend:"Droid Arabic Kufi", */; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*rtl:prepend:"Droid Arabic Kufi", */; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should prepend value (!important comment)', - 'expected': 'div { font-family: "Droid Arabic Kufi", "Droid Sans", Tahoma; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*!rtl:prepend:"Droid Arabic Kufi", */; }', - 'reversable': false - }, - { - 'should': 'Should prepend value (clean:false, !important comment)', - 'expected': 'div { font-family: "Droid Arabic Kufi", "Droid Sans", Tahoma/*!rtl:prepend:"Droid Arabic Kufi", */; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*!rtl:prepend:"Droid Arabic Kufi", */; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should replace value.', - 'expected': 'div { font-family: "Droid Arabic Kufi"; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*rtl:"Droid Arabic Kufi"*/; }', - 'reversable': false - }, - { - 'should': 'Should replace value.(clean:false)', - 'expected': 'div { font-family: "Droid Arabic Kufi"/*rtl:"Droid Arabic Kufi"*/; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*rtl:"Droid Arabic Kufi"*/; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should replace value. (!important comment)', - 'expected': 'div { font-family: "Droid Arabic Kufi"; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*!rtl:"Droid Arabic Kufi"*/; }', - 'reversable': false - }, - { - 'should': 'Should replace value. (clean:false, !important comment)', - 'expected': 'div { font-family: "Droid Arabic Kufi"/*!rtl:"Droid Arabic Kufi"*/; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*!rtl:"Droid Arabic Kufi"*/; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should append value. (default)', - 'expected': 'div { font-family: "Droid Sans", Tahoma, "Droid Arabic Kufi"; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*rtl:append:, "Droid Arabic Kufi"*/; }', - 'reversable': false - }, - { - 'should': 'Should append value. (clean:false)', - 'expected': 'div { font-family: "Droid Sans", Tahoma/*rtl:append:, "Droid Arabic Kufi"*/, "Droid Arabic Kufi"; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*rtl:append:, "Droid Arabic Kufi"*/; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should append value. (!important comment)', - 'expected': 'div { font-family: "Droid Sans", Tahoma, "Droid Arabic Kufi"; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*!rtl:append:, "Droid Arabic Kufi"*/; }', - 'reversable': false - }, - { - 'should': 'Should append value. (clean:false, !important comment)', - 'expected': 'div { font-family: "Droid Sans", Tahoma/*!rtl:append:, "Droid Arabic Kufi"*/, "Droid Arabic Kufi"; }', - 'input': 'div { font-family: "Droid Sans", Tahoma/*!rtl:append:, "Droid Arabic Kufi"*/; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should insert value. (default)', - 'expected': 'div { font-family: "Droid Sans", "Droid Arabic Kufi", Tahoma; }', - 'input': 'div { font-family: "Droid Sans"/*rtl:insert:, "Droid Arabic Kufi"*/, Tahoma; }', - 'reversable': false - }, - { - 'should': 'Should insert value. (clean:false)', - 'expected': 'div { font-family: "Droid Sans", "Droid Arabic Kufi"/*rtl:insert:, "Droid Arabic Kufi"*/, Tahoma; }', - 'input': 'div { font-family: "Droid Sans"/*rtl:insert:, "Droid Arabic Kufi"*/, Tahoma; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should insert value. (!important comment)', - 'expected': 'div { font-family: "Droid Sans", "Droid Arabic Kufi", Tahoma; }', - 'input': 'div { font-family: "Droid Sans"/*!rtl:insert:, "Droid Arabic Kufi"*/, Tahoma; }', - 'reversable': false - }, - { - 'should': 'Should insert value. (clean:false, !important comment)', - 'expected': 'div { font-family: "Droid Sans", "Droid Arabic Kufi"/*!rtl:insert:, "Droid Arabic Kufi"*/, Tahoma; }', - 'input': 'div { font-family: "Droid Sans"/*!rtl:insert:, "Droid Arabic Kufi"*/, Tahoma; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should ignore flipping - rule level (default)', - 'expected': 'div { left:10px; text-align:right;}', - 'input': '/*rtl:ignore*/div { left:10px; text-align:right;}', - 'reversable': false - }, - { - 'should': 'Should ignore flipping - rule level (clean:false)', - 'expected': '/*rtl:ignore*/div { left:10px; text-align:right;}', - 'input': '/*rtl:ignore*/div { left:10px; text-align:right;}', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should ignore flipping - rule level (default, !important comment)', - 'expected': 'div { left:10px; text-align:right;}', - 'input': '/*!rtl:ignore*/div { left:10px; text-align:right;}', - 'reversable': false - }, - { - 'should': 'Should ignore flipping - rule level (clean:false , !important comment)', - 'expected': '/*!rtl:ignore*/div { left:10px; text-align:right;}', - 'input': '/*!rtl:ignore*/div { left:10px; text-align:right;}', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should ignore flipping - decl. level (default)', - 'expected': 'div { left:10px;text-align:left;}', - 'input': 'div { left:10px/*rtl:ignore*/;text-align:right;}', - 'reversable': false - }, - { - 'should': 'Should ignore flipping - decl. level (clean:false)', - 'expected': 'div { left:10px/*rtl:ignore*/;text-align:left;}', - 'input': 'div { left:10px/*rtl:ignore*/;text-align:right;}', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should ignore flipping - decl. level (default, !important comment)', - 'expected': 'div { left:10px;text-align:left;}', - 'input': 'div { left:10px/*!rtl:ignore*/;text-align:right;}', - 'reversable': false - }, - { - 'should': 'Should ignore flipping - decl. level (clean:false, !important comment)', - 'expected': 'div { left:10px/*!rtl:ignore*/;text-align:left;}', - 'input': 'div { left:10px/*!rtl:ignore*/;text-align:right;}', - 'options': { 'clean': false } - }, - { - 'should': 'Should add raw css rules', - 'expected': 'div {left:10px;text-align:right;} a {display:block;}', - 'input': '/*rtl:raw: div { left:10px;text-align:right;}*/ a {display:block;}', - 'reversable': false - }, - { - 'should': 'Should add raw css declarations', - 'expected': 'div { font-family:"Droid Kufi Arabic"; right:10px;text-align:left;}', - 'input': 'div { /*rtl:raw: font-family: "Droid Kufi Arabic";*/ left:10px;text-align:right;}', - 'reversable': false - }, - { - 'should': 'Should add raw css (clean:false)', - 'expected': 'div {left:10px;text-align:right;} /*rtl:raw: div { left:10px;text-align:right;}*/ a {display:block;}', - 'input': '/*rtl:raw: div { left:10px;text-align:right;}*/ a {display:block;}', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should add raw css declarations (clean:false)', - 'expected': 'div { font-family:"Droid Kufi Arabic"; /*rtl:raw: font-family: "Droid Kufi Arabic";*/ right:10px;text-align:left;}', - 'input': 'div { /*rtl:raw: font-family: "Droid Kufi Arabic";*/ left:10px;text-align:right;}', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should support block-style', - 'expected': ' div {left:10px; text-align:right;}', - 'input': ' div {/*rtl:begin:ignore*/left:10px;/*rtl:end:ignore*/ text-align:left;}', - 'reversable': false - }, - { - 'should': 'Should support none block-style', - 'expected': ' div {left:10px; text-align:left;}', - 'input': ' /*rtl:ignore*/div {left:10px; text-align:left;}', - 'reversable': false - }, - { - 'should': 'Should remove rules (block-style)', - 'expected': ' b{float:right;}', - 'input': ' /*rtl:begin:remove*/div {left:10px; text-align:left;} a { display:block;} /*rtl:end:remove*/ b{float:left;}', - 'reversable': false - }, - { - 'should': 'Should remove rules', - 'expected': ' a { display:block;} b{float:right;}', - 'input': ' /*rtl:remove*/div {left:10px; text-align:left;} a { display:block;} b{float:left;}', - 'reversable': false - }, - { - 'should': 'Should remove declarations', - 'expected': ' div { text-align:right;}', - 'input': ' div {/*rtl:remove*/left:10px; text-align:left;}', - 'reversable': false - }, - { - 'should': 'Should remove declarations (block-style)', - 'expected': ' div { display:inline;}', - 'input': ' div {/*rtl:begin:remove*/left:10px; text-align:left;/*rtl:end:remove*/ display:inline;}', - 'reversable': false - }, - { - 'should': 'Should override options', - 'expected': '.right { display:inline;}', - 'input': '/*rtl:options:{"autoRename":false}*/ .right { display:inline;}', - 'reversable': false, - 'options': { 'autoRename': true } - }, - { - 'should': 'Should support nested options override', - 'expected': '.right { display:inline;}.bleft { display:inline;}', - 'input': '/*rtl:begin:options:{"autoRename":false}*/ .right { display:inline;} /*rtl:begin:options:{"autoRename":true, "greedy": true}*/.bright { display:inline;}/*rtl:end:options*//*rtl:end:options*/', - 'reversable': false, - 'options': { 'autoRename': true } - }, - { - 'should': 'Should ignore the target node (decl)', - 'expected': ` - .code { - direction:ltr; - text-align:left; - float: right; - text-align: left; - } - `, - 'input': ` - .code { - /*rtl:ignore*/ - direction:ltr; - /*rtl:ignore*/ - text-align:left; - /*rtl:ignore*/ - float: right; - /*rtl:ignore*/ - text-align: left; - } - `, - 'reversable': false - }, - { - 'should': 'Should ignore the target node (rule)', - 'expected': ` - .example-1 { - text-align:right; - left:10px; - } - .example-2 { - left:10px; - text-align:right; - } - .example-3 { - right:10px; - text-align:left; - } - `, - 'input': ` - /*rtl:ignore*/ - .example-1 { - text-align:right; - left:10px; - } - /*rtl:ignore*/ - .example-2 { - left:10px; - text-align:right; - } - .example-3 { - left:10px; - text-align:right; - } - `, - 'reversable': false - }, - { - 'should': 'Should ignore the target node (atrule)', - 'expected': ` - @media screen and (max-width: 568px) { - .example { - left:10px; - text-align:right; - } - } - - @media screen and (max-width: 568px) { - .example { - right:10px; - text-align:left; - } - } - `, - 'input': ` - /*rtl:ignore*/ - @media screen and (max-width: 568px) { - .example { - left:10px; - text-align:right; - } - } - - @media screen and (max-width: 568px) { - .example { - left:10px; - text-align:right; - } - } - `, - 'reversable': false - } -] diff --git a/node_modules/rtlcss/test/data/rtlcss-options.js b/node_modules/rtlcss/test/data/rtlcss-options.js deleted file mode 100644 index 52c4614..0000000 --- a/node_modules/rtlcss/test/data/rtlcss-options.js +++ /dev/null @@ -1,123 +0,0 @@ -module.exports = [ - { - 'should': 'Should not rename selectors unless a pair exits (autoRename:true,autoRenameStrict:true )', - 'expected': '.right .rtl .bright .ultra { display:block; }', - 'input': '.right .rtl .bright .ultra { display:block; }', - 'reversable': true, - 'options': { 'autoRename': true, 'autoRenameStrict': true } - }, - { - 'should': 'Should rename selectors only if a pair exits (autoRename:true,autoRenameStrict:true )', - 'expected': '.left { display:block; } .right { display:none; }', - 'input': '.right { display:block; } .left { display:none; }', - 'reversable': true, - 'options': { 'autoRename': true, 'autoRenameStrict': true } - }, - { - 'should': 'Should not rename selectors having directional decl. (default)', - 'expected': '.right .rtl .bright .ultra { display:block; right:0; }', - 'input': '.right .rtl .bright .ultra { display:block; left:0; }', - 'reversable': true - }, - { - 'should': 'Should not auto rename selectors having no directional decl. (default)', - 'expected': '.right .rtl .bright .ultra { display:block; }', - 'input': '.right .rtl .bright .ultra { display:block; }', - 'reversable': true - }, - { - 'should': 'Should not auto rename selectors having no directional decl. (greedy)', - 'expected': '.right .rtl .bright .ultra { display:block; }', - 'input': '.right .rtl .bright .ultra { display:block; }', - 'reversable': true, - 'options': { 'greedy': true } - }, - { - 'should': 'Should auto rename selectors having no directional decl. (autoRename:true)', - 'expected': '.left .ltr .bright .ultra { display:block; }', - 'input': '.right .rtl .bright .ultra { display:block; }', - 'reversable': true, - 'options': { 'autoRename': true } - }, - { - 'should': 'Should auto rename selectors having no directional decl. (autoRename:true,greedy)', - 'expected': '.left .ltr .bleft .urtla { display:block; }', - 'input': '.right .rtl .bright .ultra { display:block; }', - 'reversable': true, - 'options': { 'autoRename': true, 'greedy': true } - }, - { - 'should': 'Should not auto rename when rules are flipped via directives (autoRename:true)', - 'expected': 'div.right { display:block; font-family: "Droid Sans", Tahoma, "Droid Arabic Kufi"; }', - 'input': 'div.right { display:block; font-family: "Droid Sans", Tahoma/*!rtl:append:, "Droid Arabic Kufi"*/; }', - 'reversable': false, - 'options': { 'autoRename': true } - }, - { - 'should': 'Should not preserve processing directive. (default)', - 'expected': 'div { left:0; }', - 'input': '/*rtl:ignore*/div { left:0; }', - 'reversable': false - }, - { - 'should': 'Should preserve processing directive. (clean:false)', - 'expected': '/*rtl:ignore*/div { left:0; }', - 'input': '/*rtl:ignore*/div { left:0; }', - 'reversable': false, - 'options': { 'clean': false } - }, - { - 'should': 'Should not process string map in url (default)', - 'expected': 'div { background-image: url(ltr/left.png); right:0; }', - 'input': 'div { background-image: url(ltr/left.png); left:0; }', - 'reversable': true - }, - { - 'should': 'Should process urls (processUrls:true)', - 'expected': 'div { background-image: url(rtl/right.png); right:0; }', - 'input': 'div { background-image: url(ltr/left.png); left:0; }', - 'reversable': true, - 'options': { 'processUrls': true } - }, - { - 'should': 'Should process urls in declarations (processUrls:{decl:true})', - 'expected': 'div { background-image: url(rtl/right.png); right:0; }', - 'input': 'div { background-image: url(ltr/left.png); left:0; }', - 'reversable': true, - 'options': { 'processUrls': { 'decl': true } } - }, - { - 'should': 'Should process @import url (processUrls:true)', - 'expected': 'div{display:none;} @import url("rtl/right.css");', - 'input': 'div{display:none;} @import url("ltr/left.css");', - 'reversable': true, - 'options': { 'processUrls': true } - }, - { - 'should': 'Should process url in atrule (processUrls:{atrule:true})', - 'expected': 'div{display:none;} @import url("rtl/right.css");', - 'input': 'div{display:none;} @import url("ltr/left.css");', - 'reversable': true, - 'options': { 'processUrls': { 'atrule': true } } - }, - { - 'should': 'Should respect word boundaries when processing @import url (processUrls:true,greedy:false)', - 'expected': 'div{display:none;} @import url("ultr/bright.css");', - 'input': 'div{display:none;} @import url("ultr/bright.css");', - 'reversable': true, - 'options': { 'processUrls': true, 'greedy': false } - }, - { - 'should': 'Should not respect word boundaries when processing @import url (processUrls:true,greedy:true)', - 'expected': 'div{display:none;} @import url("urtla/bleft.css");', - 'input': 'div{display:none;} @import url("ultra/bright.css");', - 'reversable': true, - 'options': { 'processUrls': true, 'greedy': true } - }, - { - 'should': 'Should preserve comments inside declarations', - 'expected': 'div { border-radius: 40.25px 10.5px /*comment*/ 10.75px 40.3px; }', - 'input': 'div { border-radius: 10.5px 40.25px /*comment*/ 40.3px 10.75px; }', - 'reversable': true - } -] diff --git a/node_modules/rtlcss/test/data/rtlcss-plugins.js b/node_modules/rtlcss/test/data/rtlcss-plugins.js deleted file mode 100644 index eaf6117..0000000 --- a/node_modules/rtlcss/test/data/rtlcss-plugins.js +++ /dev/null @@ -1,46 +0,0 @@ -module.exports = [ - { - 'should': 'Should support plugins', - 'expected': 'div:before { content: "ABC";} div:after { content: "B";}', - 'input': 'div:before { content: "A";} div:after { content: "B";}', - 'reversable': true, - 'plugins': [ - { - 'name': 'test', - 'directives': { - 'control': {}, - 'value': [] - }, - 'processors': [ - { - 'name': 'content', - 'expr': /content/im, - 'action': function (prop, value, cxt) { - if (value === '"A"') { - return { 'prop': prop, 'value': '"ABC"' } - } else if (value === '"ABC"') { - return { 'prop': prop, 'value': '"A"' } - } - return { 'prop': prop, 'value': value } - } - } - ] - } - ] - }, - { - 'should': 'Should allow overriding default plugin', - 'expected': 'div { text-align:right;}', - 'input': 'div { text-align:right;}', - 'plugins': [ - { - 'name': 'rtlcss', - 'directives': { - 'control': {}, - 'value': [] - }, - 'processors': [] - } - ] - } -] diff --git a/node_modules/rtlcss/test/data/rtlcss-stringMap.js b/node_modules/rtlcss/test/data/rtlcss-stringMap.js deleted file mode 100644 index 395b990..0000000 --- a/node_modules/rtlcss/test/data/rtlcss-stringMap.js +++ /dev/null @@ -1,99 +0,0 @@ -module.exports = [ - { - 'should': 'Should rename "left", "Left", "LEFT" (autoRename:true). ', - 'expected': 'div.right, div.Right, div.RIGHT, div.respectLeft { width:10px;}', - 'input': 'div.left, div.Left, div.LEFT, div.respectLeft { width:10px;}', - 'reversable': true, - 'options': { 'autoRename': true } - }, - { - 'should': 'Should rename "left", "Left", "LEFT" (autoRename:true, greedy). ', - 'expected': 'div.right, div.Right, div.RIGHT, div.respectRight { width:10px;}', - 'input': 'div.left, div.Left, div.LEFT, div.respectLeft { width:10px;}', - 'reversable': true, - 'options': { - 'autoRename': true, - 'greedy': true - } - }, - { - 'should': 'Should rename "ltr", "Ltr", "LTR" (autoRename:true). ', - 'expected': 'div.rtl, div.Rtl, div.RTL, div.Ultra { width:10px;}', - 'input': 'div.ltr, div.Ltr, div.LTR, div.Ultra { width:10px;}', - 'reversable': true, - 'options': { 'autoRename': true } - }, - { - 'should': 'Should rename "ltr", "Ltr", "LTR" (autoRename:true, greedy). ', - 'expected': 'div.rtl, div.Rtl, div.RTL, div.Urtla { width:10px;}', - 'input': 'div.ltr, div.Ltr, div.LTR, div.Ultra { width:10px;}', - 'reversable': true, - 'options': { - 'autoRename': true, - 'greedy': true - } - }, - { - 'should': 'Should rename "prev"/"next" (autoRename:true, custom stringMap - *)', - 'expected': 'div.next, div.Right { width:10px;}', - 'input': 'div.prev, div.Left { width:10px;}', - 'reversable': true, - 'options': { 'autoRename': true, 'stringMap': [{ 'search': 'prev', 'replace': 'next', 'options': { scope: '*' } }] } - }, - { - 'should': 'Should rename "prev"/"next" (autoRename:true, custom stringMap - selector)', - 'expected': 'div.next, div.Right { width:10px;}', - 'input': 'div.prev, div.Left { width:10px;}', - 'reversable': true, - 'options': { 'autoRename': true, 'stringMap': [{ 'search': 'prev', 'replace': 'next', 'options': { scope: 'selector' } }] } - }, - { - 'should': 'Should not rename "prev"/"next" (autoRename:true, custom stringMap - url)', - 'expected': 'div.prev, div.Right { width:10px;}', - 'input': 'div.prev, div.Left { width:10px;}', - 'reversable': true, - 'options': { 'autoRename': true, 'stringMap': [{ 'search': 'prev', 'replace': 'next', 'options': { scope: 'url' } }] } - }, - { - 'should': 'Should not swap "prev"/"next" in Url or Selector (autoRename:true, custom stringMap - url)', - 'expected': 'div.prev { background-image: url(/content/pix/prev.png);}', - 'input': 'div.prev { background-image: url(/content/pix/prev.png);}', - 'reversable': true, - 'options': { 'autoRename': true, 'stringMap': [{ 'search': 'prev', 'replace': 'next', 'options': { scope: 'url' } }] } - }, - { - 'should': 'Should not swap "prev"/"next" in Url and Rename in selector (autoRename:true, custom stringMap - *)', - 'expected': 'div.next { display:block }; div.next { background-image: url(/content/pix/next.png);}', - 'input': 'div.prev { display:block }; div.prev { background-image: url(/content/pix/next.png);}', - 'reversable': true, - 'options': { 'autoRename': true, 'stringMap': [{ 'search': 'prev', 'replace': 'next', 'options': { scope: '*' } }] } - }, - { - 'should': 'Should swap "prev"/"next" in Url (autoRename:true, processUrls:true)', - 'expected': 'div.prev { background-image: url(/content/pix/next.png);}', - 'input': 'div.prev { background-image: url(/content/pix/prev.png);}', - 'reversable': true, - 'options': { 'autoRename': true, 'processUrls': true, 'stringMap': [{ 'search': 'prev', 'replace': 'next', 'options': { scope: 'url' } }] } - }, - { - 'should': 'Should swap "prev"/"next" in Url and Rename in selector (autoRename:true, processUrls:true)', - 'expected': 'div.next { display:block }; div.prev { background-image: url(/content/pix/prev.png);}', - 'input': 'div.prev { display:block }; div.prev { background-image: url(/content/pix/next.png);}', - 'reversable': true, - 'options': { 'autoRename': true, 'processUrls': true, 'stringMap': [{ 'search': 'prev', 'replace': 'next', 'options': { scope: '*' } }] } - }, - { - 'should': 'Should rename "previous" to "nextious" (autoRename:true, greedy: true)', - 'expected': 'div.nextious{ width:10px;}', - 'input': 'div.previous{ width:10px;}', - 'reversable': true, - 'options': { 'autoRename': true, 'stringMap': [{ 'name': 'prev-next', 'search': 'prev', 'replace': 'next', 'options': { 'greedy': true } }] } - }, - { - 'should': 'Should escape strings used in stringMap (processUrls: true, custom stringMap)', - 'expected': '@import url("//a.b/c-rtl.css"); @import url("//a.b/css");', - 'input': '@import url("//a.b/c.css"); @import url("//a.b/css");', - 'reversable': true, - 'options': { 'processUrls': true, 'stringMap': [{ 'name': 'import-stylesheet', 'priority': 1, 'exclusive': true, 'search': ['.css'], 'replace': ['-rtl.css'], 'options': { 'scope': 'url' } }] } - } -] diff --git a/node_modules/rtlcss/test/data/special.js b/node_modules/rtlcss/test/data/special.js deleted file mode 100644 index 2baf081..0000000 --- a/node_modules/rtlcss/test/data/special.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = [ - { - 'should': 'Should not negate tokens', - 'expected': 'div { box-shadow: rgba(0, 128, 128, 0.98) inset -5em 1em 0;}', - 'input': 'div { box-shadow: rgba(0, 128, 128, 0.98) inset 5em 1em 0;}', - 'reversable': true - } -] diff --git a/node_modules/rtlcss/test/data/transform-origin.js b/node_modules/rtlcss/test/data/transform-origin.js deleted file mode 100644 index 0347d73..0000000 --- a/node_modules/rtlcss/test/data/transform-origin.js +++ /dev/null @@ -1,146 +0,0 @@ -module.exports = [ - { - 'should': 'Should mirror (x-offset: 0 means 0%)', - 'expected': 'div { transform-origin:100%; }', - 'input': 'div { transform-origin:0; }', - 'reversable': false - }, - { - 'should': 'Should mirror (x-offset)', - 'expected': 'div { transform-origin:90.25%; }', - 'input': 'div { transform-origin:9.75%; }', - 'reversable': true - }, - { - 'should': 'Should mirror calc (x-offset)', - 'expected': 'div { transform-origin: -moz-calc(100% - (((25%/2) * 10px))); }', - 'input': 'div { transform-origin: -moz-calc(((25%/2) * 10px)); }', - 'reversable': false - }, - { - 'should': 'Should not mirror (x-offset: not percent, not calc)', - 'expected': 'div { transform-origin:10.75px; }', - 'input': 'div { transform-origin:10.75px; }', - 'reversable': false - }, - { - 'should': 'Should mirror (offset-keyword)', - 'expected': 'div { transform-origin:right; }', - 'input': 'div { transform-origin:left; }', - 'reversable': true - }, - { - 'should': 'Should mirror (x-offset y-offset: 0 means 0%)', - 'expected': 'div { transform-origin:100% 0; }', - 'input': 'div { transform-origin:0 0; }', - 'reversable': false - }, - { - 'should': 'Should mirror with y being calc (x-offset y-offset: 0 means 0%)', - 'expected': 'div { transform-origin:100% -webkit-calc(15% * (3/2)); }', - 'input': 'div { transform-origin:0 -webkit-calc(15% * (3/2)); }', - 'reversable': false - }, - { - 'should': 'Should mirror percent (x-offset y-offset)', - 'expected': 'div { transform-origin:30.25% 10%; }', - 'input': 'div { transform-origin:69.75% 10%; }', - 'reversable': true - }, - { - 'should': 'Should mirror with x being calc (x-offset y-offset)', - 'expected': 'div { transform-origin: -webkit-calc(100% - (15% * (3/2))) 30.25%; }', - 'input': 'div { transform-origin: -webkit-calc(15% * (3/2)) 30.25%; }', - 'reversable': false - }, - { - 'should': 'Should mirror with y being calc (x-offset y-offset)', - 'expected': 'div { transform-origin:30.25% calc(15% * (3/2)); }', - 'input': 'div { transform-origin:69.75% calc(15% * (3/2)); }', - 'reversable': true - }, - { - 'should': 'Should mirror (y-offset x-offset-keyword)', - 'expected': 'div { transform-origin:70% right; }', - 'input': 'div { transform-origin:70% left; }', - 'reversable': true - }, - { - 'should': 'Should mirror with calc (y-offset x-offset-keyword)', - 'expected': 'div { transform-origin:-ms-calc(140%/2) right; }', - 'input': 'div { transform-origin:-ms-calc(140%/2) left; }', - 'reversable': true - }, - { - 'should': 'Should mirror (x-offset-keyword y-offset)', - 'expected': 'div { transform-origin:right 70%; }', - 'input': 'div { transform-origin:left 70%; }', - 'reversable': true - }, - { - 'should': 'Should mirror with calc (x-offset-keyword y-offset)', - 'expected': 'div { transform-origin:right -moz-calc(((140%/2))); }', - 'input': 'div { transform-origin:left -moz-calc(((140%/2))); }', - 'reversable': true - }, - { - 'should': 'Should mirror (y-offset-keyword x-offset)', - 'expected': 'div { transform-origin:top 30.25%; }', - 'input': 'div { transform-origin:top 69.75%; }', - 'reversable': true - }, - { - 'should': 'Should not mirror with x being calc (y-offset-keyword x-offset)', - 'expected': 'div { transform-origin:top calc(100% - (((140%/2)))); }', - 'input': 'div { transform-origin:top calc(((140%/2))); }', - 'reversable': false - }, - { - 'should': 'Should mirror (x-offset-keyword y-offset-keyword)', - 'expected': 'div { transform-origin:right top; }', - 'input': 'div { transform-origin:left top; }', - 'reversable': true - }, - { - 'should': 'Should mirror (y-offset-keyword x-offset-keyword)', - 'expected': 'div { transform-origin:top right; }', - 'input': 'div { transform-origin:top left; }', - 'reversable': true - }, - { - 'should': 'Should mirror (x-offset y-offset z-offset)', - 'expected': 'div { transform-origin:80.25% 30% 10%; }', - 'input': 'div { transform-origin:19.75% 30% 10%; }', - 'reversable': true - }, - { - 'should': 'Should mirror with x being calc (x-offset y-offset z-offset)', - 'expected': 'div { transform-origin: calc(100% - (25% * 3 + 20px)) 30% 10%; }', - 'input': 'div { transform-origin: calc(25% * 3 + 20px) 30% 10%; }', - 'reversable': false - }, - { - 'should': 'Should mirror (y-offset x-offset-keyword z-offset)', - 'expected': 'div { transform-origin:20% right 10%; }', - 'input': 'div { transform-origin:20% left 10%; }', - 'reversable': true - }, - { - 'should': 'Should mirror (x-offset-keyword y-offset z-offset)', - 'expected': 'div { transform-origin:left 20% 10%; }', - 'input': 'div { transform-origin:right 20% 10%; }', - 'reversable': true - }, - { - 'should': 'Should mirror (x-offset-keyword y-offset-keyword z-offset)', - 'expected': 'div { transform-origin:left bottom 10%; }', - 'input': 'div { transform-origin:right bottom 10%; }', - 'reversable': true - }, - { - 'should': 'Should mirror (y-offset-keyword x-offset-keyword z-offset)', - 'expected': 'div { transform-origin:bottom left 10%; }', - 'input': 'div { transform-origin:bottom right 10%; }', - 'reversable': true - } -] diff --git a/node_modules/rtlcss/test/data/transforms.js b/node_modules/rtlcss/test/data/transforms.js deleted file mode 100644 index 6e20d48..0000000 --- a/node_modules/rtlcss/test/data/transforms.js +++ /dev/null @@ -1,236 +0,0 @@ -module.exports = [ - { - 'should': 'Should mirror transform : matrix', - 'expected': 'div { transform: matrix(2, 0.1, 20.75, 2, 2, 2); }', - 'input': 'div { transform: matrix(2, -0.1, -20.75, 2, -2, 2); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): matrix', - 'expected': 'div { transform: matrix(2, 0.1, 0.75, 2, 2, 2); }', - 'input': 'div { transform: matrix(2, -0.1, -.75, 2, -2, 2); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: matrix', - 'expected': 'div { transform: matrix( -moz-calc(((25%/2) * 10px)), calc(-1*(((25%/2) * 10px))), 20.75, 2, 2, 2 ); }', - 'input': 'div { transform: matrix( -moz-calc(((25%/2) * 10px)), calc(((25%/2) * 10px)), -20.75, 2, -2, 2 ); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : matrix3d', - 'expected': 'div { transform:matrix3d(0.227114470162179, 0.127248412323519, 0, 0.000811630714323203, 0.113139853456515, 1.53997196559414, 0, 0.000596368270149729, 0, 0, 1, 0, -165, 67, 0, 1); }', - 'input': 'div { transform:matrix3d(0.227114470162179, -0.127248412323519, 0, -0.000811630714323203, -0.113139853456515, 1.53997196559414, 0, 0.000596368270149729, 0, 0, 1, 0, 165, 67, 0, 1); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): matrix3d', - 'expected': 'div { transform:matrix3d(0.227114470162179, 0.127248412323519, 0, 0.000811630714323203, 0.113139853456515, 1.53997196559414, 0, 0.000596368270149729, 0, 0, 1, 0, -165, 67, 0, 1); }', - 'input': 'div { transform:matrix3d(0.227114470162179, -.127248412323519, 0, -0.000811630714323203, -0.113139853456515, 1.53997196559414, 0, 0.000596368270149729, 0, 0, 1, 0, 165, 67, 0, 1); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc : matrix3d', - 'expected': 'div { transform:matrix3d(0.227114470162179, 0.127248412323519, 0, 0.000811630714323203, 0.113139853456515, 1.53997196559414, 0, 0.000596368270149729, 0, 0, 1, 0, calc(-1*(((25%/2) * 10px))), 67, 0, 1); }', - 'input': 'div { transform:matrix3d(0.227114470162179, -0.127248412323519, 0, -0.000811630714323203, -0.113139853456515, 1.53997196559414, 0, 0.000596368270149729, 0, 0, 1, 0, calc(((25%/2) * 10px)), 67, 0, 1); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : translate', - 'expected': 'div { transform: translate(-10.75px); }', - 'input': 'div { transform: translate(10.75px); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): translate', - 'expected': 'div { transform: translate(-0.75px); }', - 'input': 'div { transform: translate(.75px); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: translate', - 'expected': 'div { transform: translate(-moz-calc(-1*(((25%/2) * 10px)))); }', - 'input': 'div { transform: translate(-moz-calc(((25%/2) * 10px))); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : translateX', - 'expected': 'div { transform: translateX(-50.25px); }', - 'input': 'div { transform: translateX(50.25px); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): translateX', - 'expected': 'div { transform: translateX(-0.25px); }', - 'input': 'div { transform: translateX(.25px); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc : translateX', - 'expected': 'div { transform: translateX(-ms-calc(-1*(((25%/2) * 10px))))); }', - 'input': 'div { transform: translateX(-ms-calc(((25%/2) * 10px)))); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : translate3d', - 'expected': 'div { transform: translate3d(-12.75px, 50%, 3em); }', - 'input': 'div { transform: translate3d(12.75px, 50%, 3em); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): translate3d', - 'expected': 'div { transform: translate3d(-0.75px, 50%, 3em); }', - 'input': 'div { transform: translate3d(.75px, 50%, 3em); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: translate3d', - 'expected': 'div { transform: translate3d(-webkit-calc(-1*(((25%/2) * 10px))))), 50%, calc(((25%/2) * 10px))))); }', - 'input': 'div { transform: translate3d(-webkit-calc(((25%/2) * 10px)))), 50%, calc(((25%/2) * 10px))))); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : rotate', - 'expected': 'div { transform: rotate(-20.75deg); }', - 'input': 'div { transform: rotate(20.75deg); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): rotate', - 'expected': 'div { transform: rotate(-0.75deg); }', - 'input': 'div { transform: rotate(.75deg); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: rotate', - 'expected': 'div { transform: rotate(calc(-1*(((25%/2) * 10deg)))); }', - 'input': 'div { transform: rotate(calc(((25%/2) * 10deg))); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : rotate3d', - 'expected': 'div { transform: rotate3d(10, -20.15, 10, -45.14deg); }', - 'input': 'div { transform: rotate3d(10, 20.15, 10, 45.14deg); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): rotate3d', - 'expected': 'div { transform: rotate3d(10, -20, 10, -0.14deg); }', - 'input': 'div { transform: rotate3d(10, 20, 10, .14deg); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: rotate3d', - 'expected': 'div { transform: rotate3d(10, -20.15, 10, calc(-1*(((25%/2) * 10deg)))); }', - 'input': 'div { transform: rotate3d(10, 20.15, 10, calc(((25%/2) * 10deg))); }', - 'reversable': false - }, - { - 'should': 'Should not mirror transform : rotateX', - 'expected': 'div { transform: rotateX(45deg); }', - 'input': 'div { transform: rotateX(45deg); }', - 'reversable': false - }, - { - 'should': 'Should not mirror transform with calc: rotateX', - 'expected': 'div { transform: rotateX(calc(((25%/2) * 10deg))); }', - 'input': 'div { transform: rotateX(calc(((25%/2) * 10deg))); }', - 'reversable': false - }, - { - 'should': 'Should not mirror transform : rotateY', - 'expected': 'div { transform: rotateY(45deg); }', - 'input': 'div { transform: rotateY(45deg); }', - 'reversable': false - }, - { - 'should': 'Should not mirror transform with calc: rotateY', - 'expected': 'div { transform: rotateY(calc(((25%/2) * 10deg))); }', - 'input': 'div { transform: rotateY(calc(((25%/2) * 10deg))); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : rotateZ', - 'expected': 'div { transform: rotateZ(-45.75deg); }', - 'input': 'div { transform: rotateZ(45.75deg); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): rotateZ', - 'expected': 'div { transform: rotateZ(-0.75deg); }', - 'input': 'div { transform: rotateZ(.75deg); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: rotateZ', - 'expected': 'div { transform: rotateZ(-ms-calc(-1*(((25%/2) * 10deg)))); }', - 'input': 'div { transform: rotateZ(-ms-calc(((25%/2) * 10deg))); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : skew', - 'expected': 'div { transform: skew(-20.25rad,-30deg); }', - 'input': 'div { transform: skew(20.25rad,30deg); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): skew', - 'expected': 'div { transform: skew(-0.25rad,-30deg); }', - 'input': 'div { transform: skew(.25rad,30deg); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: skew', - 'expected': 'div { transform: skew(calc(-1*(((25%/2) * 10rad))),calc(-1*(((25%/2) * 10deg)))); }', - 'input': 'div { transform: skew(calc(((25%/2) * 10rad)),calc(((25%/2) * 10deg))); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : skewX', - 'expected': 'div { transform: skewX(-20.75rad); }', - 'input': 'div { transform: skewX(20.75rad); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): skewX', - 'expected': 'div { transform: skewX(-0.75rad); }', - 'input': 'div { transform: skewX(.75rad); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: skewX', - 'expected': 'div { transform: skewX(-moz-calc(-1*(((25%/2) * 10rad)))); }', - 'input': 'div { transform: skewX(-moz-calc(((25%/2) * 10rad))); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform : skewY', - 'expected': 'div { transform: skewY(-10.75grad); }', - 'input': 'div { transform: skewY(10.75grad); }', - 'reversable': true - }, - { - 'should': 'Should mirror transform (with no digits before dot): skewY', - 'expected': 'div { transform: skewY(-0.75grad); }', - 'input': 'div { transform: skewY(.75grad); }', - 'reversable': false - }, - { - 'should': 'Should mirror transform with calc: skewY', - 'expected': 'div { transform: skewY(calc(-1*(((25%/2) * 10grad)))); }', - 'input': 'div { transform: skewY(calc(((25%/2) * 10grad))); }', - 'reversable': false - }, - { - 'should': 'Should mirror multiple transforms : translateX translateY Rotate', - 'expected': 'div { transform: translateX(-50.25px) translateY(50.25px) rotate(-20.75deg); }', - 'input': 'div { transform: translateX(50.25px) translateY(50.25px) rotate(20.75deg); }', - 'reversable': true - }, - { - 'should': 'Should mirror multiple transforms with calc : translateX translateY Rotate', - 'expected': 'div { transform: translateX(-ms-calc(-1*(((25%/2) * 10px)))) translateY(-moz-calc(((25%/2) * 10rad))) rotate(calc(-1*(((25%/2) * 10grad)))); }', - 'input': 'div { transform: translateX(-ms-calc(((25%/2) * 10px))) translateY(-moz-calc(((25%/2) * 10rad))) rotate(calc(((25%/2) * 10grad))); }', - 'reversable': false - } -] diff --git a/node_modules/rtlcss/test/data/values-n-syntax.js b/node_modules/rtlcss/test/data/values-n-syntax.js deleted file mode 100644 index a075b9f..0000000 --- a/node_modules/rtlcss/test/data/values-n-syntax.js +++ /dev/null @@ -1,104 +0,0 @@ -module.exports = [ - { - 'should': 'Should mirror property value: border-radius (4 values)', - 'expected': 'div { border-radius: 40.25px 10.5px 10.75px 40.3px; }', - 'input': 'div { border-radius: 10.5px 40.25px 40.3px 10.75px; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: border-radius (3 values)', - 'expected': 'div { border-radius: 40.75px 10.75px 40.75px 40.3px; }', - 'input': 'div { border-radius: 10.75px 40.75px 40.3px; }', - 'reversable': false - }, - { - 'should': 'Should mirror property value: border-radius (2 values)', - 'expected': 'div { border-radius: 40.25px 10.75px; }', - 'input': 'div { border-radius: 10.75px 40.25px; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: border-radius (4 values - double)', - 'expected': 'div { border-radius: 40.25px 10.75px .5px 40.75px / .4em 1em 1em 4.5em; }', - 'input': 'div { border-radius: 10.75px 40.25px 40.75px .5px / 1em .4em 4.5em 1em; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: border-radius (3 values - double)', - 'expected': 'div { border-radius: .40px 10.5px .40px 40px / 4em 1em 4em 3em; }', - 'input': 'div { border-radius: 10.5px .40px 40px / 1em 4em 3em; }', - 'reversable': false - }, - { - 'should': 'Should mirror property value: border-radius (2 values- double)', - 'expected': 'div { border-radius: 40px 10px / 2.5em .75em; }', - 'input': 'div { border-radius: 10px 40px / .75em 2.5em; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: border-width', - 'expected': 'div { border-width: 1px 4px .3em 2.5em; }', - 'input': 'div { border-width: 1px 2.5em .3em 4px; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: border-width (none length)', - 'expected': 'div { border-width: thin medium thick none; }', - 'input': 'div { border-width: thin none thick medium; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: border-style (4 values)', - 'expected': 'div { border-style: none dashed dotted solid; }', - 'input': 'div { border-style: none solid dotted dashed; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: border-color (4 values)', - 'expected': 'div { border-color: rgba(255, 255, 255, 1) rgb( 0, 0, 0) #000 hsla(0, 100%, 50%, 1); }', - 'input': 'div { border-color: rgba(255, 255, 255, 1) hsla(0, 100%, 50%, 1) #000 rgb( 0, 0, 0); }', - 'reversable': true - }, - { - 'should': 'Should not mirror property value: border-color (3 values)', - 'expected': 'div { border-color: #000 rgb( 0, 0, 0) hsla(0, 100%, 50%, 1); }', - 'input': 'div { border-color: #000 rgb( 0, 0, 0) hsla(0, 100%, 50%, 1); }', - 'reversable': false - }, - { - 'should': 'Should not mirror property value: border-color (2 values)', - 'expected': 'div { border-color:rgb( 0, 0, 0) hsla(0, 100%, 50%, 1); }', - 'input': 'div { border-color:rgb( 0, 0, 0) hsla(0, 100%, 50%, 1); }', - 'reversable': false - }, - { - 'should': 'Should mirror property value: margin', - 'expected': 'div { margin: .1em auto 3.5rem 2px; }', - 'input': 'div { margin: .1em 2px 3.5rem auto; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: padding', - 'expected': 'div { padding: 1px 4px .3rem 2.5em; }', - 'input': 'div { padding: 1px 2.5em .3rem 4px; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: box-shadow', - 'expected': 'div { box-shadow: -60px -16px rgba(0, 128, 128, 0.98), -10.25px 5px 5px #ff0, inset -0.5em 1em 0 white; }', - 'input': 'div { box-shadow: 60px -16px rgba(0, 128, 128, 0.98), 10.25px 5px 5px #ff0, inset 0.5em 1em 0 white; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: text-shadow', - 'expected': 'div { text-shadow: -60px -16px rgba(0, 128, 128, 0.98), -10.25px 5px 5px #ff0, inset -0.5em 1em 0 white; }', - 'input': 'div { text-shadow: 60px -16px rgba(0, 128, 128, 0.98), 10.25px 5px 5px #ff0, inset 0.5em 1em 0 white; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value (no digit before the dot): box-shadow, text-shadow', - 'expected': 'div { box-shadow: inset -0.5em 1em 0 white; text-shadow: inset -0.5em 1em 0 white; }', - 'input': 'div { box-shadow: inset .5em 1em 0 white; text-shadow: inset .5em 1em 0 white; }', - 'reversable': false - } -] diff --git a/node_modules/rtlcss/test/data/values.js b/node_modules/rtlcss/test/data/values.js deleted file mode 100644 index eaa51ae..0000000 --- a/node_modules/rtlcss/test/data/values.js +++ /dev/null @@ -1,69 +0,0 @@ -module.exports = [ - { - 'should': 'Should mirror property value: clear', - 'expected': 'div { clear:right; }', - 'input': 'div { clear:left; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: direction', - 'expected': 'div { direction:ltr; }', - 'input': 'div { direction:rtl; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: float', - 'expected': 'div { float:right; }', - 'input': 'div { float:left; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: text-align', - 'expected': 'div { text-align:right; }', - 'input': 'div { text-align:left; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: cursor nw', - 'expected': 'div { cursor:nw-resize; }', - 'input': 'div { cursor:ne-resize; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: cursor sw', - 'expected': 'div { cursor:sw-resize; }', - 'input': 'div { cursor:se-resize; }', - 'reversable': true - }, - { - 'should': 'Should mirror property value: cursor nesw', - 'expected': 'div { cursor:nesw-resize; }', - 'input': 'div { cursor:nwse-resize; }', - 'reversable': true - }, - { - 'should': 'Should keep property value as is: cursor ew', - 'expected': 'div { cursor:ew-resize; }', - 'input': 'div { cursor:ew-resize; }', - 'reversable': false - }, - { - 'should': 'Should process string map in url: cursor (processUrls: true)', - 'expected': '.foo { cursor: url(right.cur), url(rtl.cur), se-resize, auto }', - 'input': '.foo { cursor: url(left.cur), url(ltr.cur), sw-resize, auto }', - 'reversable': true, - 'options': { 'processUrls': true } - }, - { - 'should': 'Should mirror property value: transition', - 'expected': '.foo { transition: right .3s ease .1s, left .3s ease .1s, margin-right .3s ease, margin-left .3s ease, padding-right .3s ease, padding-left .3s ease}', - 'input': '.foo { transition: left .3s ease .1s, right .3s ease .1s, margin-left .3s ease, margin-right .3s ease, padding-left .3s ease, padding-right .3s ease}', - 'reversable': true - }, - { - 'should': 'Should mirror property value: transition-property', - 'expected': '.foo { transition-property: right; }', - 'input': '.foo { transition-property: left; }', - 'reversable': true - } -] diff --git a/node_modules/rtlcss/test/test.js b/node_modules/rtlcss/test/test.js deleted file mode 100644 index 8736fae..0000000 --- a/node_modules/rtlcss/test/test.js +++ /dev/null @@ -1,42 +0,0 @@ -/* global describe */ -/* global it */ -var assert = require('assert') -var rtlcss = require('../lib/rtlcss.js') -var tests = { - '# Background:': require('./data/background.js'), - '# Background Image:': require('./data/background-image.js'), - '# Background Position:': require('./data/background-position.js'), - '# Properties:': require('./data/properties.js'), - '# Values:': require('./data/values.js'), - '# Values (N Value Syntax):': require('./data/values-n-syntax.js'), - '# Transforms:': require('./data/transforms.js'), - '# Transform Origin:': require('./data/transform-origin.js'), - '# RTLCSS (Options):': require('./data/rtlcss-options.js'), - '# RTLCSS (Directives):': require('./data/rtlcss-directives.js'), - '# RTLCSS (String Map):': require('./data/rtlcss-stringMap.js'), - '# RTLCSS (Plugins):': require('./data/rtlcss-plugins.js'), - '# Special:': require('./data/special.js') -} -var key -for (key in tests) { - var group = tests[key] - describe(key, function () { - for (var i = 0; i < group.length; i++) { - var item = group[i] - ;(function (test) { - it(test.should, function (done) { - assert.equal(rtlcss.process(test.input, test.options, test.plugins), test.expected) - done() - }) - })(item) - if (item.reversable) { - (function (test) { - it(test.should + ' ', function (done) { - assert.equal(rtlcss.process(test.expected, test.options, test.plugins), test.input) - done() - }) - })(item) - } - } - }) -} diff --git a/node_modules/run-async/.editorconfig b/node_modules/run-async/.editorconfig deleted file mode 100644 index 6d740d5..0000000 --- a/node_modules/run-async/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -# editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false diff --git a/node_modules/run-async/.gitattributes b/node_modules/run-async/.gitattributes deleted file mode 100644 index 176a458..0000000 --- a/node_modules/run-async/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto diff --git a/node_modules/run-async/.jshintrc b/node_modules/run-async/.jshintrc deleted file mode 100644 index 3e4ba5a..0000000 --- a/node_modules/run-async/.jshintrc +++ /dev/null @@ -1,20 +0,0 @@ -{ - "node": true, - "esnext": true, - "bitwise": false, - "curly": false, - "eqeqeq": true, - "eqnull": true, - "immed": true, - "latedef": false, - "newcap": true, - "noarg": true, - "undef": true, - "strict": true, - "trailing": true, - "smarttabs": true, - "indent": 2, - "quotmark": "single", - "scripturl": true, - "globals": [ "describe", "it" ] -} diff --git a/node_modules/run-async/.npmignore b/node_modules/run-async/.npmignore deleted file mode 100644 index c2658d7..0000000 --- a/node_modules/run-async/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/node_modules/run-async/.travis.yml b/node_modules/run-async/.travis.yml deleted file mode 100644 index 244b7e8..0000000 --- a/node_modules/run-async/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - '0.10' diff --git a/node_modules/run-async/LICENSE b/node_modules/run-async/LICENSE deleted file mode 100644 index e895e99..0000000 --- a/node_modules/run-async/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Simon Boudrias - -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/run-async/README.md b/node_modules/run-async/README.md deleted file mode 100644 index d89123c..0000000 --- a/node_modules/run-async/README.md +++ /dev/null @@ -1,50 +0,0 @@ -Run Async -========= - -[![npm](https://badge.fury.io/js/run-async.svg)](http://badge.fury.io/js/run-async) [![tests](https://travis-ci.org/SBoudrias/run-async.svg?branch=master)](http://travis-ci.org/SBoudrias/run-async) [![dependencies](https://david-dm.org/SBoudrias/run-async.svg?theme=shields.io)](https://david-dm.org/SBoudrias/run-async) - -Utility method to run function either synchronously or asynchronously using the common `this.async()` style. - -This is useful for library author accepting sync or async functions as parameter. `runAsync` will always run them as async method, and normalize the function handling. - -Installation -========= - -```bash -npm install --save run-async -``` - -Usage -========= - -```js -var runAsync = require('run-async'); - -// In Async mode: -var asyncFn = function (a) { - var done = this.async(); - - setTimeout(function () { - done('running: ' + a); - }, 10); -}; - -runAsync(asyncFn, function (answer) { - console.log(answer); // 'running: async' -}, 'async'); - -// In Sync mode: -var syncFn = function (a) { - return 'running: ' + a; -}; - -runAsync(asyncFn, function (answer) { - console.log(answer); // 'running: sync' -}, 'sync'); -``` - -Licence -======== - -Copyright (c) 2014 Simon Boudrias (twitter: @vaxilart) -Licensed under the MIT license. diff --git a/node_modules/run-async/index.js b/node_modules/run-async/index.js deleted file mode 100644 index a47d677..0000000 --- a/node_modules/run-async/index.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -var once = require('once'); - -/** - * Run a function asynchronously or synchronously - * @param {Function} func Function to run - * @param {Function} cb Callback function passed the `func` returned value - * @...rest {Mixed} rest Arguments to pass to `func` - * @return {Null} - */ - -module.exports = function (func, cb) { - var async = false; - var answer = func.apply({ - async: function () { - async = true; - return once(cb); - } - }, Array.prototype.slice.call(arguments, 2) ); - - if (!async) { - cb(answer); - } -}; diff --git a/node_modules/run-async/package.json b/node_modules/run-async/package.json deleted file mode 100644 index 6983b6a..0000000 --- a/node_modules/run-async/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "run-async@^0.1.0", - "scope": null, - "escapedName": "run-async", - "name": "run-async", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/inquirer" - ] - ], - "_from": "run-async@>=0.1.0 <0.2.0", - "_id": "run-async@0.1.0", - "_inCache": true, - "_location": "/run-async", - "_npmUser": { - "name": "sboudrias", - "email": "admin@simonboudrias.com" - }, - "_npmVersion": "1.4.6", - "_phantomChildren": {}, - "_requested": { - "raw": "run-async@^0.1.0", - "scope": null, - "escapedName": "run-async", - "name": "run-async", - "rawSpec": "^0.1.0", - "spec": ">=0.1.0 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/inquirer" - ], - "_resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz", - "_shasum": "c8ad4a5e110661e402a7d21b530e009f25f8e389", - "_shrinkwrap": null, - "_spec": "run-async@^0.1.0", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/inquirer", - "author": { - "name": "Simon Boudrias", - "email": "admin@simonboudrias.com" - }, - "bugs": { - "url": "https://github.com/SBoudrias/run-async/issues" - }, - "dependencies": { - "once": "^1.3.0" - }, - "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.", - "devDependencies": { - "mocha": "^1.21.4" - }, - "directories": {}, - "dist": { - "shasum": "c8ad4a5e110661e402a7d21b530e009f25f8e389", - "tarball": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz" - }, - "homepage": "https://github.com/SBoudrias/run-async", - "keywords": [ - "flow", - "flow-control", - "async" - ], - "license": "MIT", - "main": "index.js", - "maintainers": [ - { - "name": "sboudrias", - "email": "admin@simonboudrias.com" - } - ], - "name": "run-async", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/SBoudrias/run-async.git" - }, - "scripts": { - "test": "mocha -R spec" - }, - "version": "0.1.0" -} diff --git a/node_modules/run-async/test.js b/node_modules/run-async/test.js deleted file mode 100644 index 0a82fed..0000000 --- a/node_modules/run-async/test.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -var assert = require('assert'); -var runAsync = require('./index'); - -describe('runAsync', function () { - it('run synchronous method', function (done) { - var aFunc = function () { - return 'pass1'; - }; - runAsync(aFunc, function (val) { - assert.equal(val, 'pass1'); - done(); - }); - }); - - it('run asynchronous method', function (done) { - var aFunc = function () { - var returns = this.async(); - setTimeout(returns.bind(null, 'pass2'), 0); - }; - - runAsync(aFunc, function (val) { - assert.equal(val, 'pass2'); - done(); - }); - }); - - it('pass arguments', function (done) { - var aFunc = function (a, b) { - assert.equal(a, 1); - assert.equal(b, 'bar'); - return 'pass1'; - }; - runAsync(aFunc, function (val) { - done(); - }, 1, 'bar'); - }); - - it('allow only callback once', function (done) { - var aFunc = function () { - var returns = this.async(); - returns(); - returns(); - }; - - runAsync(aFunc, function (val) { - done(); - }); - }); -}); diff --git a/node_modules/run-sequence/.npmignore b/node_modules/run-sequence/.npmignore deleted file mode 100644 index 2eef5cf..0000000 --- a/node_modules/run-sequence/.npmignore +++ /dev/null @@ -1,10 +0,0 @@ -.DS_Store -*.log -node_modules -build -*.node -components -*.orig -.idea -temp.txt* -test diff --git a/node_modules/run-sequence/.travis.yml b/node_modules/run-sequence/.travis.yml deleted file mode 100644 index b9bfb92..0000000 --- a/node_modules/run-sequence/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -sudo: false -language: node_js -node_js: - - "0.10" - - "0.12" - - "4" diff --git a/node_modules/run-sequence/LICENSE b/node_modules/run-sequence/LICENSE deleted file mode 100644 index ea286a0..0000000 --- a/node_modules/run-sequence/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2014 [Phil DeJarnett](http://overzealous.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/run-sequence/README.md b/node_modules/run-sequence/README.md deleted file mode 100644 index 3a994e5..0000000 --- a/node_modules/run-sequence/README.md +++ /dev/null @@ -1,114 +0,0 @@ -# run-sequence - -[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] - -Runs a sequence of gulp tasks in the specified order. This function is designed to solve the situation where you have defined run-order, but choose not to or cannot use dependencies. - -> ### Please Note -> -> This is intended to be a temporary solution until the release of [gulp 4.0](https://github.com/gulpjs/gulp/tree/4.0) which has support for defining task dependencies in [series](https://github.com/gulpjs/gulp/blob/4.0/docs/API.md#gulpseriestasks) or in [parallel](https://github.com/gulpjs/gulp/blob/4.0/docs/API.md#gulpparalleltasks). -> -> Be aware that this solution is a hack, and may stop working with a future update to gulp. - -Each argument to `run-sequence` is run in order. This works by listening to the `task_stop` and `task_err` events, and keeping track of which tasks have been completed. You can still run some of the tasks in parallel, by providing an array of task names for one or more of the arguments. - -If the final argument is a function, it will be used as a callback after all the functions are either finished or an error has occurred. - -## Possible Breaking Change in version 1.0.0 - -In version 1.0 I've added a check that prevents the same task from showing up within any sequence. This is to help reduce typo errors, as well as prevent the [silent exit bug when the same task occurred twice in a parallel sequence](https://github.com/OverZealous/run-sequence/issues/13). The sequence will now fail immediately during the validation stage. - -If this breaking change affects you, you'll need to take one of several actions: - -1. Remove duplicate tasks if they are a mistake. -2. Filter unneeded duplicate tasks before passing them to `run-sequence`. -3. Rewrite your tasks or wrap your tasks within functions that can be called multiple times if for some reason you rely on this functionality. -4. Continue using `run-sequence` version 0.3.7 if it was working for you. - -[I welcome feedback](https://github.com/OverZealous/run-sequence/issues) if this change is a problem for your setup! - -## Usage - -First, install `run-sequence` as a development dependency: - -```shell -npm install --save-dev run-sequence -``` - -Then add use it in your gulpfile, like so (note these are only examples, please check the documentation for your functions for the correct way to use them): - -```js -var gulp = require('gulp'); -var runSequence = require('run-sequence'); -var del = require('del'); -var fs = require('fs'); - -// This will run in this order: -// * build-clean -// * build-scripts and build-styles in parallel -// * build-html -// * Finally call the callback function -gulp.task('build', function(callback) { - runSequence('build-clean', - ['build-scripts', 'build-styles'], - 'build-html', - callback); -}); - -// configure build-clean, build-scripts, build-styles, build-html as you wish, -// but make sure they either return a stream or promise, or handle the callback -// Example: - -gulp.task('build-clean', function() { - // Return the Promise from del() - return del([BUILD_DIRECTORY]); -// ^^^^^^ -// This is the key here, to make sure asynchronous tasks are done! -}); - -gulp.task('build-scripts', function() { - // Return the stream from gulp - return gulp.src(SCRIPTS_SRC).pipe(...)... -// ^^^^^^ -// This is the key here, to make sure tasks run to completion! -}); - -gulp.task('callback-example', function(callback) { - // Use the callback in the async function - fs.readFile('...', function(err, file) { - console.log(file); - callback(); -// ^^^^^^^^^^ -// This is what lets gulp know this task is complete! - }); -}); -``` - -### Using within gulp submodules - -If you have a complex gulp setup with your tasks split up across different files, you may get the error that `run-sequence` is unable to find your tasks. In this case, you can configure `run-sequence` to look at the gulp within the submodule, like so: - -```js -// submodule tasks/mygulptask.js - -var gulp = require('gulp'), // might be a different instance than the toplevel one - // this uses the gulp you provide - runSequence = require('run-sequence').use(gulp); - - // ...and then use normally - runSequence('subtask1', 'subtask2'); -``` - -## LICENSE - -[MIT License](http://en.wikipedia.org/wiki/MIT_License) - - -[npm-url]: https://npmjs.org/package/run-sequence -[npm-image]: https://badge.fury.io/js/run-sequence.png - -[travis-url]: http://travis-ci.org/OverZealous/run-sequence -[travis-image]: https://secure.travis-ci.org/OverZealous/run-sequence.png?branch=master - -[gratipay-url]: https://www.gratipay.com/OverZealous/ -[gratipay-image]: https://img.shields.io/gratipay/OverZealous.svg diff --git a/node_modules/run-sequence/index.js b/node_modules/run-sequence/index.js deleted file mode 100644 index fc70545..0000000 --- a/node_modules/run-sequence/index.js +++ /dev/null @@ -1,103 +0,0 @@ -/*jshint node:true */ - -"use strict"; - -var colors = require('chalk'); -var gutil = require('gulp-util'); - -function verifyTaskSets(gulp, taskSets, skipArrays) { - if(taskSets.length === 0) { - throw new Error('No tasks were provided to run-sequence'); - } - var foundTasks = {}; - taskSets.forEach(function(t) { - var isTask = typeof t === "string", - isArray = !skipArrays && Array.isArray(t); - if(!isTask && !isArray) { - throw new Error("Task "+t+" is not a valid task string."); - } - if(isTask && !gulp.hasTask(t)) { - throw new Error("Task "+t+" is not configured as a task on gulp. If this is a submodule, you may need to use require('run-sequence').use(gulp)."); - } - if(skipArrays && isTask) { - if(foundTasks[t]) { - throw new Error("Task "+t+" is listed more than once. This is probably a typo."); - } - foundTasks[t] = true; - } - if(isArray) { - if(t.length === 0) { - throw new Error("An empty array was provided as a task set"); - } - verifyTaskSets(gulp, t, true, foundTasks); - } - }); -} - -function runSequence(gulp) { - // load gulp directly when no external was passed - if(gulp === undefined) { - gulp = require('gulp'); - } - - // Slice and dice the input to prevent modification of parallel arrays. - var taskSets = Array.prototype.slice.call(arguments, 1).map(function(task) { - return Array.isArray(task) ? task.slice() : task; - }), - callBack = typeof taskSets[taskSets.length-1] === 'function' ? taskSets.pop() : false, - currentTaskSet, - - finish = function(e) { - gulp.removeListener('task_stop', onTaskEnd); - gulp.removeListener('task_err', onError); - - var error; - if (e && e.err) { - error = new gutil.PluginError('run-sequence(' + e.task + ')', e.err, {showStack: true}); - } - - if(callBack) { - callBack(error); - } else if(error) { - gutil.log(colors.red(error.toString())); - } - }, - - onError = function(err) { - finish(err); - }, - onTaskEnd = function(event) { - var idx = currentTaskSet.indexOf(event.task); - if(idx > -1) { - currentTaskSet.splice(idx,1); - } - if(currentTaskSet.length === 0) { - runNextSet(); - } - }, - - runNextSet = function() { - if(taskSets.length) { - var command = taskSets.shift(); - if(!Array.isArray(command)) { - command = [command]; - } - currentTaskSet = command; - gulp.start.apply(gulp, command); - } else { - finish(); - } - }; - - verifyTaskSets(gulp, taskSets); - - gulp.on('task_stop', onTaskEnd); - gulp.on('task_err', onError); - - runNextSet(); -} - -module.exports = runSequence.bind(null, undefined); -module.exports.use = function(gulp) { - return runSequence.bind(null, gulp); -}; diff --git a/node_modules/run-sequence/package.json b/node_modules/run-sequence/package.json deleted file mode 100644 index e1584a4..0000000 --- a/node_modules/run-sequence/package.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "run-sequence@^1.2.2", - "scope": null, - "escapedName": "run-sequence", - "name": "run-sequence", - "rawSpec": "^1.2.2", - "spec": ">=1.2.2 <2.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui" - ] - ], - "_from": "run-sequence@>=1.2.2 <2.0.0", - "_id": "run-sequence@1.2.2", - "_inCache": true, - "_location": "/run-sequence", - "_nodeVersion": "5.11.1", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/run-sequence-1.2.2.tgz_1467208581638_0.25349971698597074" - }, - "_npmUser": { - "name": "overzealous", - "email": "phil@overzealous.com" - }, - "_npmVersion": "3.8.6", - "_phantomChildren": {}, - "_requested": { - "raw": "run-sequence@^1.2.2", - "scope": null, - "escapedName": "run-sequence", - "name": "run-sequence", - "rawSpec": "^1.2.2", - "spec": ">=1.2.2 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/semantic-ui" - ], - "_resolved": "https://registry.npmjs.org/run-sequence/-/run-sequence-1.2.2.tgz", - "_shasum": "5095a0bebe98733b0140bd08dd80ec030ddacdeb", - "_shrinkwrap": null, - "_spec": "run-sequence@^1.2.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/semantic-ui", - "author": { - "name": "Phil DeJarnett", - "url": "http://overzealous.com/" - }, - "bugs": { - "url": "https://github.com/OverZealous/run-sequence/issues" - }, - "dependencies": { - "chalk": "*", - "gulp-util": "*" - }, - "description": "Run a series of dependent gulp tasks in order", - "devDependencies": { - "gulp": "*", - "mocha": "*", - "should": "*" - }, - "directories": {}, - "dist": { - "shasum": "5095a0bebe98733b0140bd08dd80ec030ddacdeb", - "tarball": "https://registry.npmjs.org/run-sequence/-/run-sequence-1.2.2.tgz" - }, - "engines": { - "node": ">= 0.8.0" - }, - "gitHead": "2238f6aea94c201173a99a4ccc1f2791c38531a1", - "homepage": "https://github.com/OverZealous/run-sequence", - "keywords": [ - "gulpfriendly", - "pipe", - "sequence", - "gulp", - "orchestrator" - ], - "license": "MIT", - "main": "./index.js", - "maintainers": [ - { - "name": "overzealous", - "email": "phil@overzealous.com" - } - ], - "name": "run-sequence", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/OverZealous/run-sequence.git" - }, - "scripts": { - "test": "mocha --reporter spec" - }, - "version": "1.2.2" -} diff --git a/node_modules/rx-lite/package.json b/node_modules/rx-lite/package.json deleted file mode 100644 index 70831c3..0000000 --- a/node_modules/rx-lite/package.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "rx-lite@^3.1.2", - "scope": null, - "escapedName": "rx-lite", - "name": "rx-lite", - "rawSpec": "^3.1.2", - "spec": ">=3.1.2 <4.0.0", - "type": "range" - }, - "/Users/jose/Documents/GitHub/About/node_modules/inquirer" - ] - ], - "_from": "rx-lite@>=3.1.2 <4.0.0", - "_id": "rx-lite@3.1.2", - "_inCache": true, - "_location": "/rx-lite", - "_nodeVersion": "0.12.7", - "_npmUser": { - "name": "mattpodwysocki", - "email": "matthew.podwysocki@gmail.com" - }, - "_npmVersion": "3.1.1", - "_phantomChildren": {}, - "_requested": { - "raw": "rx-lite@^3.1.2", - "scope": null, - "escapedName": "rx-lite", - "name": "rx-lite", - "rawSpec": "^3.1.2", - "spec": ">=3.1.2 <4.0.0", - "type": "range" - }, - "_requiredBy": [ - "/inquirer" - ], - "_resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-3.1.2.tgz", - "_shasum": "19ce502ca572665f3b647b10939f97fd1615f102", - "_shrinkwrap": null, - "_spec": "rx-lite@^3.1.2", - "_where": "/Users/jose/Documents/GitHub/About/node_modules/inquirer", - "author": { - "name": "Cloud Programmability Team", - "url": "https://github.com/Reactive-Extensions/RxJS/blob/master/authors.txt" - }, - "browser": { - "index.js": "rx.lite.js" - }, - "bugs": { - "url": "https://github.com/Reactive-Extensions/RxJS/issues" - }, - "dependencies": {}, - "description": "Lightweight library for composing asynchronous and event-based operations in JavaScript", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "19ce502ca572665f3b647b10939f97fd1615f102", - "tarball": "https://registry.npmjs.org/rx-lite/-/rx-lite-3.1.2.tgz" - }, - "homepage": "https://github.com/Reactive-Extensions/RxJS", - "jam": { - "main": "rx.lite.js" - }, - "keywords": [ - "React", - "Reactive", - "Events", - "Rx", - "RxJS" - ], - "licenses": [ - { - "type": "Apache License, Version 2.0", - "url": "http://www.apache.org/licenses/LICENSE-2.0.html" - } - ], - "main": "rx.lite.js", - "maintainers": [ - { - "name": "mattpodwysocki", - "email": "matthew.podwysocki@gmail.com" - } - ], - "name": "rx-lite", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git+https://github.com/Reactive-Extensions/RxJS.git" - }, - "scripts": {}, - "title": "Reactive Extensions for JavaScript (RxJS) Lite", - "version": "3.1.2" -} diff --git a/node_modules/rx-lite/readme.md b/node_modules/rx-lite/readme.md deleted file mode 100644 index 8143ccc..0000000 --- a/node_modules/rx-lite/readme.md +++ /dev/null @@ -1,174 +0,0 @@ -# RxJS Lite Module # - -The Reactive Extensions for JavaScript Lite version is a lightweight version of the Reactive Extensions for JavaScript which covers most of the day to day operators you might use all in a single library. Functionality such as bridging to events, promises, callbacks, Node.js-style callbacks, time-based operations and more are built right in. This comes with `rx.lite.js` which is for use in modern development environments such as > IE9 and server-side environments such as Node.js. - -## Getting Started - -There are a number of ways to get started with RxJS. - -### Installing with [NPM](https://npmjs.org/) - -```bash` -$ npm install rx-lite -$ npm install -g rx-lite -``` - -### Using with Node.js and Ringo.js - -```js -var Rx = require('rx-lite'); -``` - -### In a Browser: - -```html - - -``` - -## Included Observable Operators ## - -### `Observable Methods` -- [`catch | catchException`](../../doc/api/core/operators/catch.md) -- [`concat`](../../doc/api/core/operators/concat.md) -- [`create | createWithDisposable`](../../doc/api/core/operators/create.md) -- [`defer`](../../doc/api/core/operators/defer.md) -- [`empty`](../../doc/api/core/operators/empty.md) -- [`from`](../../doc/api/core/operators/from.md) -- [`fromArray`](../../doc/api/core/operators/fromarray.md) -- [`fromCallback`](../../doc/api/core/operators/fromcallback.md) -- [`fromEvent`](../../doc/api/core/operators/fromevent.md) -- [`fromEventPattern`](../../doc/api/core/operators/fromeventpattern.md) -- [`fromNodeCallback`](../../doc/api/core/operators/fromnodecallback.md) -- [`fromPromise`](../../doc/api/core/operators/frompromise.md) -- [`interval`](../../doc/api/core/operators/interval.md) -- [`just`](../../doc/api/core/operators/return.md) -- [`merge`](../../doc/api/core/operators/merge.md) -- [`mergeDelayError`](../../doc/api/core/operators/mergedelayerror.md) -- [`never`](../../doc/api/core/operators/never.md) -- [`of`](../../doc/api/core/operators/of.md) -- [`ofWithScheduler`](../../doc/api/core/operators/ofwithscheduler.md) -- [`range`](../../doc/api/core/operators/range.md) -- [`repeat`](../../doc/api/core/operators/repeat.md) -- [`return | returnValue`](../../doc/api/core/operators/return.md) -- [`throw | throwError | throwException`](../../doc/api/core/operators/throw.md) -- [`timer`](../../doc/api/core/operators/timer.md) -- [`zip`](../../doc/api/core/operators/zip.md) -- [`zipArray`](../../doc/api/core/operators/ziparray.md) - -### `Observable Instance Methods` -- [`asObservable`](../../doc/api/core/operators/asobservable.md) -- [`catch | catchException`](../../doc/api/core/operators/catchproto.md) -- [`combineLatest`](../../doc/api/core/operators/combinelatest.md) -- [`concat`](../../doc/api/core/operators/concatproto.md) -- [`concatMap`](../../doc/api/core/operators/concatmap.md) -- [`connect`](../../doc/api/core/operators/connect.md) -- [`debounce`](../../doc/api/core/operators/debounce.md) -- [`defaultIfEmpty`](../../doc/api/core/operators/defaultifempty.md) -- [`delay`](../../doc/api/core/operators/delay.md) -- [`dematerialize`](../../doc/api/core/operators/dematerialize.md) -- [`distinctUntilChanged`](../../doc/api/core/operators/distinctuntilchanged.md) -- [`do | doAction`](../../doc/api/core/operators/do.md) -- [`doOnNext`](../../doc/api/core/operators/doonnext.md) -- [`doOnError`](../../doc/api/core/operators/doonerror.md) -- [`doOnCompleted`](../../doc/api/core/operators/dooncompleted.md) -- [`filter`](../../doc/api/core/operators/where.md) -- [`finally | finallyAction`](../../doc/api/core/operators/finally.md) -- [`flatMap`](../../doc/api/core/operators/selectmany.md) -- [`flatMapLatest`](../../doc/api/core/operators/flatmaplatest.md) -- [`ignoreElements`](../../doc/api/core/operators/ignoreelements.md) -- [`map`](../../doc/api/core/operators/select.md) -- [`merge`](../../doc/api/core/operators/mergeproto.md) -- [`mergeObservable | mergeAll`](../../doc/api/core/operators/mergeall.md) -- [`multicast`](../../doc/api/core/operators/multicast.md) -- [`publish`](../../doc/api/core/operators/publish.md) -- [`publishLast`](../../doc/api/core/operators/publishlast.md) -- [`publishValue`](../../doc/api/core/operators/publishvalue.md) -- [`refCount`](../../doc/api/core/operators/refcount.md) -- [`repeat`](../../doc/api/core/operators/repeat.md) -- [`replay`](../../doc/api/core/operators/replay.md) -- [`retry`](../../doc/api/core/operators/retry.md) -- [`retryWhen`](../../doc/api/core/operators/retrywhen.md) -- [`sample`](../../doc/api/core/operators/sample.md) -- [`scan`](../../doc/api/core/operators/scan.md) -- [`select`](../../doc/api/core/operators/select.md) -- [`selectConcat`](../../doc/api/core/operators/concatmap.md) -- [`selectMany`](../../doc/api/core/operators/selectmany.md) -- [`selectSwitch`](../../doc/api/core/operators/flatmaplatest.md) -- [`singleInstance`](../../doc/api/core/operators/singleinstance.md) -- [`skip`](../../doc/api/core/operators/skip.md) -- [`skipLast`](../../doc/api/core/operators/skiplast.md) -- [`skipUntil`](../../doc/api/core/operators/skipuntil.md) -- [`skipWhile`](../../doc/api/core/operators/skipwhile.md) -- [`startWith`](../../doc/api/core/operators/startwith.md) -- [`subscribe | forEach`](../../doc/api/core/operators/subscribe.md) -- [`subscribeOnNext`](../../doc/api/core/operators/subscribeonnext.md) -- [`subscribeOnError`](../../doc/api/core/operators/subscribeonerror.md) -- [`subscribeOnCompleted`](../../doc/api/core/operators/subscribeoncompleted.md) -- [`switch | switchLatest`](../../doc/api/core/operators/switch.md) -- [`take`](../../doc/api/core/operators/take.md) -- [`takeLast`](../../doc/api/core/operators/takelast.md) -- [`takeUntil`](../../doc/api/core/operators/takeuntil.md) -- [`takeWhile`](../../doc/api/core/operators/takewhile.md) -- [`tap`](../../doc/api/core/operators/do.md) -- [`tapOnNext`](../../doc/api/core/operators/doonnext.md) -- [`tapOnError`](../../doc/api/core/operators/doonerror.md) -- [`tapOnCompleted`](../../doc/api/core/operators/dooncompleted.md) -- [`throttle`](../../doc/api/core/operators/throttle.md) -- [`throttleFirst`](../../doc/api/core/operators/throttlefirst.md) -- [`timeout`](../../doc/api/core/operators/timeout.md) -- [`timestamp`](../../doc/api/core/operators/timestamp.md) -- [`toArray`](../../doc/api/core/operators/toarray.md) -- [`transduce`](../../doc/api/core/operators/transduce.md) -- [`where`](../../doc/api/core/operators/where.md) -- [`withLatestFrom`](../../doc/api/core/operators/withlatestfrom.md) -- [`zip`](../../doc/api/core/operators/zipproto.md) - -## Included Classes ## - -### Core Objects -- [`Rx.Observer`](../../doc/api/core/observer.md) -- [`Rx.Notification`](../../doc/api/core/notification.md) - -### Subjects - -- [`Rx.AsyncSubject`](../../doc/api/subjects/asyncsubject.md) -- [`Rx.BehaviorSubject`](../../doc/api/subjects/behaviorsubject.md) -- [`Rx.ReplaySubject`](../../doc/api/subjects/replaysubject.md) -- [`Rx.Subject`](../../doc/api/subjects/subject.md) - -### Schedulers - -- [`Rx.Scheduler`](../../doc/api/schedulers/scheduler.md) - -### Disposables - -- [`Rx.CompositeDisposable`](../../doc/api/disposables/compositedisposable.md) -- [`Rx.Disposable`](../../doc/api/disposables/disposable.md) -- [`Rx.RefCountDisposable`](../../doc/api/disposables/refcountdisposable.md) -- [`Rx.SerialDisposable`](../../doc/api/disposables/serialdisposable.md) -- [`Rx.SingleAssignmentDisposable`](../../doc/api/disposables/singleassignmentdisposable.md) - -## Contributing ## - -There are lots of ways to contribute to the project, and we appreciate our [contributors](https://github.com/Reactive-Extensions/RxJS/wiki/Contributors). If you wish to contribute, check out our [style guide]((https://github.com/Reactive-Extensions/RxJS/tree/master/doc/contributing)). - -You can contribute by reviewing and sending feedback on code checkins, suggesting and trying out new features as they are implemented, submit bugs and help us verify fixes as they are checked in, as well as submit code fixes or code contributions of your own. Note that all code submissions will be rigorously reviewed and tested by the Rx Team, and only those that meet an extremely high bar for both quality and design/roadmap appropriateness will be merged into the source. - -## License ## - -Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. -Microsoft Open Technologies would like to thank its contributors, a list -of whom are at https://github.com/Reactive-Extensions/RxJS/wiki/Contributors. - -Licensed under the Apache License, Version 2.0 (the "License"); you -may not use this file except in compliance with the License. You may -obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -implied. See the License for the specific language governing permissions -and limitations under the License. diff --git a/node_modules/rx-lite/rx.lite.js b/node_modules/rx-lite/rx.lite.js deleted file mode 100644 index c06f934..0000000 --- a/node_modules/rx-lite/rx.lite.js +++ /dev/null @@ -1,6366 +0,0 @@ -// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. - -;(function (undefined) { - - var objectTypes = { - 'function': true, - 'object': true - }; - - var - freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports, - freeSelf = objectTypes[typeof self] && self.Object && self, - freeWindow = objectTypes[typeof window] && window && window.Object && window, - freeModule = objectTypes[typeof module] && module && !module.nodeType && module, - moduleExports = freeModule && freeModule.exports === freeExports && freeExports, - freeGlobal = freeExports && freeModule && typeof global == 'object' && global && global.Object && global; - - var root = root = freeGlobal || ((freeWindow !== (this && this.window)) && freeWindow) || freeSelf || this; - - var Rx = { - internals: {}, - config: { - Promise: root.Promise - }, - helpers: { } - }; - - // Defaults - var noop = Rx.helpers.noop = function () { }, - identity = Rx.helpers.identity = function (x) { return x; }, - defaultNow = Rx.helpers.defaultNow = Date.now, - defaultComparer = Rx.helpers.defaultComparer = function (x, y) { return isEqual(x, y); }, - defaultSubComparer = Rx.helpers.defaultSubComparer = function (x, y) { return x > y ? 1 : (x < y ? -1 : 0); }, - defaultKeySerializer = Rx.helpers.defaultKeySerializer = function (x) { return x.toString(); }, - defaultError = Rx.helpers.defaultError = function (err) { throw err; }, - isPromise = Rx.helpers.isPromise = function (p) { return !!p && typeof p.subscribe !== 'function' && typeof p.then === 'function'; }, - isFunction = Rx.helpers.isFunction = (function () { - - var isFn = function (value) { - return typeof value == 'function' || false; - } - - // fallback for older versions of Chrome and Safari - if (isFn(/x/)) { - isFn = function(value) { - return typeof value == 'function' && toString.call(value) == '[object Function]'; - }; - } - - return isFn; - }()); - - function cloneArray(arr) { - var len = arr.length, a = new Array(len); - for(var i = 0; i < len; i++) { a[i] = arr[i]; } - return a; - } - - var errorObj = {e: {}}; - function tryCatcherGen(tryCatchTarget) { - return function tryCatcher() { - try { - return tryCatchTarget.apply(this, arguments); - } catch (e) { - errorObj.e = e; - return errorObj; - } - } - } - var tryCatch = Rx.internals.tryCatch = function tryCatch(fn) { - if (!isFunction(fn)) { throw new TypeError('fn must be a function'); } - return tryCatcherGen(fn); - } - function thrower(e) { - throw e; - } - - Rx.config.longStackSupport = false; - var hasStacks = false, stacks = tryCatch(function () { throw new Error(); })(); - hasStacks = !!stacks.e && !!stacks.e.stack; - - // All code after this point will be filtered from stack traces reported by RxJS - var rStartingLine = captureLine(), rFileName; - - var STACK_JUMP_SEPARATOR = 'From previous event:'; - - function makeStackTraceLong(error, observable) { - // If possible, transform the error stack trace by removing Node and RxJS - // cruft, then concatenating with the stack trace of `observable`. - if (hasStacks && - observable.stack && - typeof error === 'object' && - error !== null && - error.stack && - error.stack.indexOf(STACK_JUMP_SEPARATOR) === -1 - ) { - var stacks = []; - for (var o = observable; !!o; o = o.source) { - if (o.stack) { - stacks.unshift(o.stack); - } - } - stacks.unshift(error.stack); - - var concatedStacks = stacks.join('\n' + STACK_JUMP_SEPARATOR + '\n'); - error.stack = filterStackString(concatedStacks); - } - } - - function filterStackString(stackString) { - var lines = stackString.split('\n'), desiredLines = []; - for (var i = 0, len = lines.length; i < len; i++) { - var line = lines[i]; - - if (!isInternalFrame(line) && !isNodeFrame(line) && line) { - desiredLines.push(line); - } - } - return desiredLines.join('\n'); - } - - function isInternalFrame(stackLine) { - var fileNameAndLineNumber = getFileNameAndLineNumber(stackLine); - if (!fileNameAndLineNumber) { - return false; - } - var fileName = fileNameAndLineNumber[0], lineNumber = fileNameAndLineNumber[1]; - - return fileName === rFileName && - lineNumber >= rStartingLine && - lineNumber <= rEndingLine; - } - - function isNodeFrame(stackLine) { - return stackLine.indexOf('(module.js:') !== -1 || - stackLine.indexOf('(node.js:') !== -1; - } - - function captureLine() { - if (!hasStacks) { return; } - - try { - throw new Error(); - } catch (e) { - var lines = e.stack.split('\n'); - var firstLine = lines[0].indexOf('@') > 0 ? lines[1] : lines[2]; - var fileNameAndLineNumber = getFileNameAndLineNumber(firstLine); - if (!fileNameAndLineNumber) { return; } - - rFileName = fileNameAndLineNumber[0]; - return fileNameAndLineNumber[1]; - } - } - - function getFileNameAndLineNumber(stackLine) { - // Named functions: 'at functionName (filename:lineNumber:columnNumber)' - var attempt1 = /at .+ \((.+):(\d+):(?:\d+)\)$/.exec(stackLine); - if (attempt1) { return [attempt1[1], Number(attempt1[2])]; } - - // Anonymous functions: 'at filename:lineNumber:columnNumber' - var attempt2 = /at ([^ ]+):(\d+):(?:\d+)$/.exec(stackLine); - if (attempt2) { return [attempt2[1], Number(attempt2[2])]; } - - // Firefox style: 'function@filename:lineNumber or @filename:lineNumber' - var attempt3 = /.*@(.+):(\d+)$/.exec(stackLine); - if (attempt3) { return [attempt3[1], Number(attempt3[2])]; } - } - - var EmptyError = Rx.EmptyError = function() { - this.message = 'Sequence contains no elements.'; - this.name = 'EmptyError'; - Error.call(this); - }; - EmptyError.prototype = Object.create(Error.prototype); - - var ObjectDisposedError = Rx.ObjectDisposedError = function() { - this.message = 'Object has been disposed'; - this.name = 'ObjectDisposedError'; - Error.call(this); - }; - ObjectDisposedError.prototype = Object.create(Error.prototype); - - var ArgumentOutOfRangeError = Rx.ArgumentOutOfRangeError = function () { - this.message = 'Argument out of range'; - this.name = 'ArgumentOutOfRangeError'; - Error.call(this); - }; - ArgumentOutOfRangeError.prototype = Object.create(Error.prototype); - - var NotSupportedError = Rx.NotSupportedError = function (message) { - this.message = message || 'This operation is not supported'; - this.name = 'NotSupportedError'; - Error.call(this); - }; - NotSupportedError.prototype = Object.create(Error.prototype); - - var NotImplementedError = Rx.NotImplementedError = function (message) { - this.message = message || 'This operation is not implemented'; - this.name = 'NotImplementedError'; - Error.call(this); - }; - NotImplementedError.prototype = Object.create(Error.prototype); - - var notImplemented = Rx.helpers.notImplemented = function () { - throw new NotImplementedError(); - }; - - var notSupported = Rx.helpers.notSupported = function () { - throw new NotSupportedError(); - }; - - // Shim in iterator support - var $iterator$ = (typeof Symbol === 'function' && Symbol.iterator) || - '_es6shim_iterator_'; - // Bug for mozilla version - if (root.Set && typeof new root.Set()['@@iterator'] === 'function') { - $iterator$ = '@@iterator'; - } - - var doneEnumerator = Rx.doneEnumerator = { done: true, value: undefined }; - - var isIterable = Rx.helpers.isIterable = function (o) { - return o[$iterator$] !== undefined; - } - - var isArrayLike = Rx.helpers.isArrayLike = function (o) { - return o && o.length !== undefined; - } - - Rx.helpers.iterator = $iterator$; - - var bindCallback = Rx.internals.bindCallback = function (func, thisArg, argCount) { - if (typeof thisArg === 'undefined') { return func; } - switch(argCount) { - case 0: - return function() { - return func.call(thisArg) - }; - case 1: - return function(arg) { - return func.call(thisArg, arg); - } - case 2: - return function(value, index) { - return func.call(thisArg, value, index); - }; - case 3: - return function(value, index, collection) { - return func.call(thisArg, value, index, collection); - }; - } - - return function() { - return func.apply(thisArg, arguments); - }; - }; - - /** Used to determine if values are of the language type Object */ - var dontEnums = ['toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor'], - dontEnumsLength = dontEnums.length; - - /** `Object#toString` result shortcuts */ - var argsClass = '[object Arguments]', - arrayClass = '[object Array]', - boolClass = '[object Boolean]', - dateClass = '[object Date]', - errorClass = '[object Error]', - funcClass = '[object Function]', - numberClass = '[object Number]', - objectClass = '[object Object]', - regexpClass = '[object RegExp]', - stringClass = '[object String]'; - - var toString = Object.prototype.toString, - hasOwnProperty = Object.prototype.hasOwnProperty, - supportsArgsClass = toString.call(arguments) == argsClass, // For less -1); - } - }); - } - } - stackA.pop(); - stackB.pop(); - - return result; - } - - var hasProp = {}.hasOwnProperty, - slice = Array.prototype.slice; - - var inherits = Rx.internals.inherits = function (child, parent) { - function __() { this.constructor = child; } - __.prototype = parent.prototype; - child.prototype = new __(); - }; - - var addProperties = Rx.internals.addProperties = function (obj) { - for(var sources = [], i = 1, len = arguments.length; i < len; i++) { sources.push(arguments[i]); } - for (var idx = 0, ln = sources.length; idx < ln; idx++) { - var source = sources[idx]; - for (var prop in source) { - obj[prop] = source[prop]; - } - } - }; - - // Rx Utils - var addRef = Rx.internals.addRef = function (xs, r) { - return new AnonymousObservable(function (observer) { - return new CompositeDisposable(r.getDisposable(), xs.subscribe(observer)); - }); - }; - - function arrayInitialize(count, factory) { - var a = new Array(count); - for (var i = 0; i < count; i++) { - a[i] = factory(); - } - return a; - } - - /** - * Represents a group of disposable resources that are disposed together. - * @constructor - */ - var CompositeDisposable = Rx.CompositeDisposable = function () { - var args = [], i, len; - if (Array.isArray(arguments[0])) { - args = arguments[0]; - len = args.length; - } else { - len = arguments.length; - args = new Array(len); - for(i = 0; i < len; i++) { args[i] = arguments[i]; } - } - for(i = 0; i < len; i++) { - if (!isDisposable(args[i])) { throw new TypeError('Not a disposable'); } - } - this.disposables = args; - this.isDisposed = false; - this.length = args.length; - }; - - var CompositeDisposablePrototype = CompositeDisposable.prototype; - - /** - * Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed. - * @param {Mixed} item Disposable to add. - */ - CompositeDisposablePrototype.add = function (item) { - if (this.isDisposed) { - item.dispose(); - } else { - this.disposables.push(item); - this.length++; - } - }; - - /** - * Removes and disposes the first occurrence of a disposable from the CompositeDisposable. - * @param {Mixed} item Disposable to remove. - * @returns {Boolean} true if found; false otherwise. - */ - CompositeDisposablePrototype.remove = function (item) { - var shouldDispose = false; - if (!this.isDisposed) { - var idx = this.disposables.indexOf(item); - if (idx !== -1) { - shouldDispose = true; - this.disposables.splice(idx, 1); - this.length--; - item.dispose(); - } - } - return shouldDispose; - }; - - /** - * Disposes all disposables in the group and removes them from the group. - */ - CompositeDisposablePrototype.dispose = function () { - if (!this.isDisposed) { - this.isDisposed = true; - var len = this.disposables.length, currentDisposables = new Array(len); - for(var i = 0; i < len; i++) { currentDisposables[i] = this.disposables[i]; } - this.disposables = []; - this.length = 0; - - for (i = 0; i < len; i++) { - currentDisposables[i].dispose(); - } - } - }; - - /** - * Provides a set of static methods for creating Disposables. - * @param {Function} dispose Action to run during the first call to dispose. The action is guaranteed to be run at most once. - */ - var Disposable = Rx.Disposable = function (action) { - this.isDisposed = false; - this.action = action || noop; - }; - - /** Performs the task of cleaning up resources. */ - Disposable.prototype.dispose = function () { - if (!this.isDisposed) { - this.action(); - this.isDisposed = true; - } - }; - - /** - * Creates a disposable object that invokes the specified action when disposed. - * @param {Function} dispose Action to run during the first call to dispose. The action is guaranteed to be run at most once. - * @return {Disposable} The disposable object that runs the given action upon disposal. - */ - var disposableCreate = Disposable.create = function (action) { return new Disposable(action); }; - - /** - * Gets the disposable that does nothing when disposed. - */ - var disposableEmpty = Disposable.empty = { dispose: noop }; - - /** - * Validates whether the given object is a disposable - * @param {Object} Object to test whether it has a dispose method - * @returns {Boolean} true if a disposable object, else false. - */ - var isDisposable = Disposable.isDisposable = function (d) { - return d && isFunction(d.dispose); - }; - - var checkDisposed = Disposable.checkDisposed = function (disposable) { - if (disposable.isDisposed) { throw new ObjectDisposedError(); } - }; - - // Single assignment - var SingleAssignmentDisposable = Rx.SingleAssignmentDisposable = function () { - this.isDisposed = false; - this.current = null; - }; - SingleAssignmentDisposable.prototype.getDisposable = function () { - return this.current; - }; - SingleAssignmentDisposable.prototype.setDisposable = function (value) { - if (this.current) { throw new Error('Disposable has already been assigned'); } - var shouldDispose = this.isDisposed; - !shouldDispose && (this.current = value); - shouldDispose && value && value.dispose(); - }; - SingleAssignmentDisposable.prototype.dispose = function () { - if (!this.isDisposed) { - this.isDisposed = true; - var old = this.current; - this.current = null; - } - old && old.dispose(); - }; - - // Multiple assignment disposable - var SerialDisposable = Rx.SerialDisposable = function () { - this.isDisposed = false; - this.current = null; - }; - SerialDisposable.prototype.getDisposable = function () { - return this.current; - }; - SerialDisposable.prototype.setDisposable = function (value) { - var shouldDispose = this.isDisposed; - if (!shouldDispose) { - var old = this.current; - this.current = value; - } - old && old.dispose(); - shouldDispose && value && value.dispose(); - }; - SerialDisposable.prototype.dispose = function () { - if (!this.isDisposed) { - this.isDisposed = true; - var old = this.current; - this.current = null; - } - old && old.dispose(); - }; - - /** - * Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed. - */ - var RefCountDisposable = Rx.RefCountDisposable = (function () { - - function InnerDisposable(disposable) { - this.disposable = disposable; - this.disposable.count++; - this.isInnerDisposed = false; - } - - InnerDisposable.prototype.dispose = function () { - if (!this.disposable.isDisposed && !this.isInnerDisposed) { - this.isInnerDisposed = true; - this.disposable.count--; - if (this.disposable.count === 0 && this.disposable.isPrimaryDisposed) { - this.disposable.isDisposed = true; - this.disposable.underlyingDisposable.dispose(); - } - } - }; - - /** - * Initializes a new instance of the RefCountDisposable with the specified disposable. - * @constructor - * @param {Disposable} disposable Underlying disposable. - */ - function RefCountDisposable(disposable) { - this.underlyingDisposable = disposable; - this.isDisposed = false; - this.isPrimaryDisposed = false; - this.count = 0; - } - - /** - * Disposes the underlying disposable only when all dependent disposables have been disposed - */ - RefCountDisposable.prototype.dispose = function () { - if (!this.isDisposed && !this.isPrimaryDisposed) { - this.isPrimaryDisposed = true; - if (this.count === 0) { - this.isDisposed = true; - this.underlyingDisposable.dispose(); - } - } - }; - - /** - * Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable. - * @returns {Disposable} A dependent disposable contributing to the reference count that manages the underlying disposable's lifetime. - */ - RefCountDisposable.prototype.getDisposable = function () { - return this.isDisposed ? disposableEmpty : new InnerDisposable(this); - }; - - return RefCountDisposable; - })(); - - var ScheduledItem = Rx.internals.ScheduledItem = function (scheduler, state, action, dueTime, comparer) { - this.scheduler = scheduler; - this.state = state; - this.action = action; - this.dueTime = dueTime; - this.comparer = comparer || defaultSubComparer; - this.disposable = new SingleAssignmentDisposable(); - } - - ScheduledItem.prototype.invoke = function () { - this.disposable.setDisposable(this.invokeCore()); - }; - - ScheduledItem.prototype.compareTo = function (other) { - return this.comparer(this.dueTime, other.dueTime); - }; - - ScheduledItem.prototype.isCancelled = function () { - return this.disposable.isDisposed; - }; - - ScheduledItem.prototype.invokeCore = function () { - return this.action(this.scheduler, this.state); - }; - - /** Provides a set of static properties to access commonly used schedulers. */ - var Scheduler = Rx.Scheduler = (function () { - - function Scheduler(now, schedule, scheduleRelative, scheduleAbsolute) { - this.now = now; - this._schedule = schedule; - this._scheduleRelative = scheduleRelative; - this._scheduleAbsolute = scheduleAbsolute; - } - - /** Determines whether the given object is a scheduler */ - Scheduler.isScheduler = function (s) { - return s instanceof Scheduler; - } - - function invokeAction(scheduler, action) { - action(); - return disposableEmpty; - } - - var schedulerProto = Scheduler.prototype; - - /** - * Schedules an action to be executed. - * @param {Function} action Action to execute. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.schedule = function (action) { - return this._schedule(action, invokeAction); - }; - - /** - * Schedules an action to be executed. - * @param state State passed to the action to be executed. - * @param {Function} action Action to be executed. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleWithState = function (state, action) { - return this._schedule(state, action); - }; - - /** - * Schedules an action to be executed after the specified relative due time. - * @param {Function} action Action to execute. - * @param {Number} dueTime Relative time after which to execute the action. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleWithRelative = function (dueTime, action) { - return this._scheduleRelative(action, dueTime, invokeAction); - }; - - /** - * Schedules an action to be executed after dueTime. - * @param state State passed to the action to be executed. - * @param {Function} action Action to be executed. - * @param {Number} dueTime Relative time after which to execute the action. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleWithRelativeAndState = function (state, dueTime, action) { - return this._scheduleRelative(state, dueTime, action); - }; - - /** - * Schedules an action to be executed at the specified absolute due time. - * @param {Function} action Action to execute. - * @param {Number} dueTime Absolute time at which to execute the action. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleWithAbsolute = function (dueTime, action) { - return this._scheduleAbsolute(action, dueTime, invokeAction); - }; - - /** - * Schedules an action to be executed at dueTime. - * @param {Mixed} state State passed to the action to be executed. - * @param {Function} action Action to be executed. - * @param {Number}dueTime Absolute time at which to execute the action. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleWithAbsoluteAndState = function (state, dueTime, action) { - return this._scheduleAbsolute(state, dueTime, action); - }; - - /** Gets the current time according to the local machine's system clock. */ - Scheduler.now = defaultNow; - - /** - * Normalizes the specified TimeSpan value to a positive value. - * @param {Number} timeSpan The time span value to normalize. - * @returns {Number} The specified TimeSpan value if it is zero or positive; otherwise, 0 - */ - Scheduler.normalize = function (timeSpan) { - timeSpan < 0 && (timeSpan = 0); - return timeSpan; - }; - - return Scheduler; - }()); - - var normalizeTime = Scheduler.normalize, isScheduler = Scheduler.isScheduler; - - (function (schedulerProto) { - - function invokeRecImmediate(scheduler, pair) { - var state = pair[0], action = pair[1], group = new CompositeDisposable(); - action(state, innerAction); - return group; - - function innerAction(state2) { - var isAdded = false, isDone = false; - - var d = scheduler.scheduleWithState(state2, scheduleWork); - if (!isDone) { - group.add(d); - isAdded = true; - } - - function scheduleWork(_, state3) { - if (isAdded) { - group.remove(d); - } else { - isDone = true; - } - action(state3, innerAction); - return disposableEmpty; - } - } - } - - function invokeRecDate(scheduler, pair, method) { - var state = pair[0], action = pair[1], group = new CompositeDisposable(); - action(state, innerAction); - return group; - - function innerAction(state2, dueTime1) { - var isAdded = false, isDone = false; - - var d = scheduler[method](state2, dueTime1, scheduleWork); - if (!isDone) { - group.add(d); - isAdded = true; - } - - function scheduleWork(_, state3) { - if (isAdded) { - group.remove(d); - } else { - isDone = true; - } - action(state3, innerAction); - return disposableEmpty; - } - } - } - - function invokeRecDateRelative(s, p) { - return invokeRecDate(s, p, 'scheduleWithRelativeAndState'); - } - - function invokeRecDateAbsolute(s, p) { - return invokeRecDate(s, p, 'scheduleWithAbsoluteAndState'); - } - - function scheduleInnerRecursive(action, self) { - action(function(dt) { self(action, dt); }); - } - - /** - * Schedules an action to be executed recursively. - * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleRecursive = function (action) { - return this.scheduleRecursiveWithState(action, scheduleInnerRecursive); - }; - - /** - * Schedules an action to be executed recursively. - * @param {Mixed} state State passed to the action to be executed. - * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in recursive invocation state. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleRecursiveWithState = function (state, action) { - return this.scheduleWithState([state, action], invokeRecImmediate); - }; - - /** - * Schedules an action to be executed recursively after a specified relative due time. - * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action at the specified relative time. - * @param {Number}dueTime Relative time after which to execute the action for the first time. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleRecursiveWithRelative = function (dueTime, action) { - return this.scheduleRecursiveWithRelativeAndState(action, dueTime, scheduleInnerRecursive); - }; - - /** - * Schedules an action to be executed recursively after a specified relative due time. - * @param {Mixed} state State passed to the action to be executed. - * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in the recursive due time and invocation state. - * @param {Number}dueTime Relative time after which to execute the action for the first time. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleRecursiveWithRelativeAndState = function (state, dueTime, action) { - return this._scheduleRelative([state, action], dueTime, invokeRecDateRelative); - }; - - /** - * Schedules an action to be executed recursively at a specified absolute due time. - * @param {Function} action Action to execute recursively. The parameter passed to the action is used to trigger recursive scheduling of the action at the specified absolute time. - * @param {Number}dueTime Absolute time at which to execute the action for the first time. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleRecursiveWithAbsolute = function (dueTime, action) { - return this.scheduleRecursiveWithAbsoluteAndState(action, dueTime, scheduleInnerRecursive); - }; - - /** - * Schedules an action to be executed recursively at a specified absolute due time. - * @param {Mixed} state State passed to the action to be executed. - * @param {Function} action Action to execute recursively. The last parameter passed to the action is used to trigger recursive scheduling of the action, passing in the recursive due time and invocation state. - * @param {Number}dueTime Absolute time at which to execute the action for the first time. - * @returns {Disposable} The disposable object used to cancel the scheduled action (best effort). - */ - schedulerProto.scheduleRecursiveWithAbsoluteAndState = function (state, dueTime, action) { - return this._scheduleAbsolute([state, action], dueTime, invokeRecDateAbsolute); - }; - }(Scheduler.prototype)); - - (function (schedulerProto) { - - /** - * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation. - * @param {Number} period Period for running the work periodically. - * @param {Function} action Action to be executed. - * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort). - */ - Scheduler.prototype.schedulePeriodic = function (period, action) { - return this.schedulePeriodicWithState(null, period, action); - }; - - /** - * Schedules a periodic piece of work by dynamically discovering the scheduler's capabilities. The periodic task will be scheduled using window.setInterval for the base implementation. - * @param {Mixed} state Initial state passed to the action upon the first iteration. - * @param {Number} period Period for running the work periodically. - * @param {Function} action Action to be executed, potentially updating the state. - * @returns {Disposable} The disposable object used to cancel the scheduled recurring action (best effort). - */ - Scheduler.prototype.schedulePeriodicWithState = function(state, period, action) { - if (typeof root.setInterval === 'undefined') { throw new NotSupportedError(); } - period = normalizeTime(period); - var s = state, id = root.setInterval(function () { s = action(s); }, period); - return disposableCreate(function () { root.clearInterval(id); }); - }; - - }(Scheduler.prototype)); - - /** Gets a scheduler that schedules work immediately on the current thread. */ - var immediateScheduler = Scheduler.immediate = (function () { - function scheduleNow(state, action) { return action(this, state); } - return new Scheduler(defaultNow, scheduleNow, notSupported, notSupported); - }()); - - /** - * Gets a scheduler that schedules work as soon as possible on the current thread. - */ - var currentThreadScheduler = Scheduler.currentThread = (function () { - var queue; - - function runTrampoline () { - while (queue.length > 0) { - var item = queue.shift(); - !item.isCancelled() && item.invoke(); - } - } - - function scheduleNow(state, action) { - var si = new ScheduledItem(this, state, action, this.now()); - - if (!queue) { - queue = [si]; - - var result = tryCatch(runTrampoline)(); - queue = null; - if (result === errorObj) { return thrower(result.e); } - } else { - queue.push(si); - } - return si.disposable; - } - - var currentScheduler = new Scheduler(defaultNow, scheduleNow, notSupported, notSupported); - currentScheduler.scheduleRequired = function () { return !queue; }; - - return currentScheduler; - }()); - - var SchedulePeriodicRecursive = Rx.internals.SchedulePeriodicRecursive = (function () { - function tick(command, recurse) { - recurse(0, this._period); - try { - this._state = this._action(this._state); - } catch (e) { - this._cancel.dispose(); - throw e; - } - } - - function SchedulePeriodicRecursive(scheduler, state, period, action) { - this._scheduler = scheduler; - this._state = state; - this._period = period; - this._action = action; - } - - SchedulePeriodicRecursive.prototype.start = function () { - var d = new SingleAssignmentDisposable(); - this._cancel = d; - d.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0, this._period, tick.bind(this))); - - return d; - }; - - return SchedulePeriodicRecursive; - }()); - - var scheduleMethod, clearMethod; - - var localTimer = (function () { - var localSetTimeout, localClearTimeout = noop; - if (!!root.setTimeout) { - localSetTimeout = root.setTimeout; - localClearTimeout = root.clearTimeout; - } else if (!!root.WScript) { - localSetTimeout = function (fn, time) { - root.WScript.Sleep(time); - fn(); - }; - } else { - throw new NotSupportedError(); - } - - return { - setTimeout: localSetTimeout, - clearTimeout: localClearTimeout - }; - }()); - var localSetTimeout = localTimer.setTimeout, - localClearTimeout = localTimer.clearTimeout; - - (function () { - - var nextHandle = 1, tasksByHandle = {}, currentlyRunning = false; - - clearMethod = function (handle) { - delete tasksByHandle[handle]; - }; - - function runTask(handle) { - if (currentlyRunning) { - localSetTimeout(function () { runTask(handle) }, 0); - } else { - var task = tasksByHandle[handle]; - if (task) { - currentlyRunning = true; - var result = tryCatch(task)(); - clearMethod(handle); - currentlyRunning = false; - if (result === errorObj) { return thrower(result.e); } - } - } - } - - var reNative = RegExp('^' + - String(toString) - .replace(/[.*+?^${}()|[\]\\]/g, '\\$&') - .replace(/toString| for [^\]]+/g, '.*?') + '$' - ); - - var setImmediate = typeof (setImmediate = freeGlobal && moduleExports && freeGlobal.setImmediate) == 'function' && - !reNative.test(setImmediate) && setImmediate; - - function postMessageSupported () { - // Ensure not in a worker - if (!root.postMessage || root.importScripts) { return false; } - var isAsync = false, oldHandler = root.onmessage; - // Test for async - root.onmessage = function () { isAsync = true; }; - root.postMessage('', '*'); - root.onmessage = oldHandler; - - return isAsync; - } - - // Use in order, setImmediate, nextTick, postMessage, MessageChannel, script readystatechanged, setTimeout - if (isFunction(setImmediate)) { - scheduleMethod = function (action) { - var id = nextHandle++; - tasksByHandle[id] = action; - setImmediate(function () { runTask(id); }); - - return id; - }; - } else if (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]') { - scheduleMethod = function (action) { - var id = nextHandle++; - tasksByHandle[id] = action; - process.nextTick(function () { runTask(id); }); - - return id; - }; - } else if (postMessageSupported()) { - var MSG_PREFIX = 'ms.rx.schedule' + Math.random(); - - function onGlobalPostMessage(event) { - // Only if we're a match to avoid any other global events - if (typeof event.data === 'string' && event.data.substring(0, MSG_PREFIX.length) === MSG_PREFIX) { - runTask(event.data.substring(MSG_PREFIX.length)); - } - } - - if (root.addEventListener) { - root.addEventListener('message', onGlobalPostMessage, false); - } else if (root.attachEvent) { - root.attachEvent('onmessage', onGlobalPostMessage); - } else { - root.onmessage = onGlobalPostMessage; - } - - scheduleMethod = function (action) { - var id = nextHandle++; - tasksByHandle[id] = action; - root.postMessage(MSG_PREFIX + currentId, '*'); - return id; - }; - } else if (!!root.MessageChannel) { - var channel = new root.MessageChannel(); - - channel.port1.onmessage = function (e) { runTask(e.data); }; - - scheduleMethod = function (action) { - var id = nextHandle++; - tasksByHandle[id] = action; - channel.port2.postMessage(id); - return id; - }; - } else if ('document' in root && 'onreadystatechange' in root.document.createElement('script')) { - - scheduleMethod = function (action) { - var scriptElement = root.document.createElement('script'); - var id = nextHandle++; - tasksByHandle[id] = action; - - scriptElement.onreadystatechange = function () { - runTask(id); - scriptElement.onreadystatechange = null; - scriptElement.parentNode.removeChild(scriptElement); - scriptElement = null; - }; - root.document.documentElement.appendChild(scriptElement); - return id; - }; - - } else { - scheduleMethod = function (action) { - var id = nextHandle++; - tasksByHandle[id] = action; - localSetTimeout(function () { - runTask(id); - }, 0); - - return id; - }; - } - }()); - - /** - * Gets a scheduler that schedules work via a timed callback based upon platform. - */ - var timeoutScheduler = Scheduler.timeout = Scheduler['default'] = (function () { - - function scheduleNow(state, action) { - var scheduler = this, disposable = new SingleAssignmentDisposable(); - var id = scheduleMethod(function () { - !disposable.isDisposed && disposable.setDisposable(action(scheduler, state)); - }); - return new CompositeDisposable(disposable, disposableCreate(function () { - clearMethod(id); - })); - } - - function scheduleRelative(state, dueTime, action) { - var scheduler = this, dt = Scheduler.normalize(dueTime), disposable = new SingleAssignmentDisposable(); - if (dt === 0) { return scheduler.scheduleWithState(state, action); } - var id = localSetTimeout(function () { - !disposable.isDisposed && disposable.setDisposable(action(scheduler, state)); - }, dt); - return new CompositeDisposable(disposable, disposableCreate(function () { - localClearTimeout(id); - })); - } - - function scheduleAbsolute(state, dueTime, action) { - return this.scheduleWithRelativeAndState(state, dueTime - this.now(), action); - } - - return new Scheduler(defaultNow, scheduleNow, scheduleRelative, scheduleAbsolute); - })(); - - /** - * Represents a notification to an observer. - */ - var Notification = Rx.Notification = (function () { - function Notification(kind, value, exception, accept, acceptObservable, toString) { - this.kind = kind; - this.value = value; - this.exception = exception; - this._accept = accept; - this._acceptObservable = acceptObservable; - this.toString = toString; - } - - /** - * Invokes the delegate corresponding to the notification or the observer's method corresponding to the notification and returns the produced result. - * - * @memberOf Notification - * @param {Any} observerOrOnNext Delegate to invoke for an OnNext notification or Observer to invoke the notification on.. - * @param {Function} onError Delegate to invoke for an OnError notification. - * @param {Function} onCompleted Delegate to invoke for an OnCompleted notification. - * @returns {Any} Result produced by the observation. - */ - Notification.prototype.accept = function (observerOrOnNext, onError, onCompleted) { - return observerOrOnNext && typeof observerOrOnNext === 'object' ? - this._acceptObservable(observerOrOnNext) : - this._accept(observerOrOnNext, onError, onCompleted); - }; - - /** - * Returns an observable sequence with a single notification. - * - * @memberOf Notifications - * @param {Scheduler} [scheduler] Scheduler to send out the notification calls on. - * @returns {Observable} The observable sequence that surfaces the behavior of the notification upon subscription. - */ - Notification.prototype.toObservable = function (scheduler) { - var self = this; - isScheduler(scheduler) || (scheduler = immediateScheduler); - return new AnonymousObservable(function (observer) { - return scheduler.scheduleWithState(self, function (_, notification) { - notification._acceptObservable(observer); - notification.kind === 'N' && observer.onCompleted(); - }); - }); - }; - - return Notification; - })(); - - /** - * Creates an object that represents an OnNext notification to an observer. - * @param {Any} value The value contained in the notification. - * @returns {Notification} The OnNext notification containing the value. - */ - var notificationCreateOnNext = Notification.createOnNext = (function () { - function _accept(onNext) { return onNext(this.value); } - function _acceptObservable(observer) { return observer.onNext(this.value); } - function toString() { return 'OnNext(' + this.value + ')'; } - - return function (value) { - return new Notification('N', value, null, _accept, _acceptObservable, toString); - }; - }()); - - /** - * Creates an object that represents an OnError notification to an observer. - * @param {Any} error The exception contained in the notification. - * @returns {Notification} The OnError notification containing the exception. - */ - var notificationCreateOnError = Notification.createOnError = (function () { - function _accept (onNext, onError) { return onError(this.exception); } - function _acceptObservable(observer) { return observer.onError(this.exception); } - function toString () { return 'OnError(' + this.exception + ')'; } - - return function (e) { - return new Notification('E', null, e, _accept, _acceptObservable, toString); - }; - }()); - - /** - * Creates an object that represents an OnCompleted notification to an observer. - * @returns {Notification} The OnCompleted notification. - */ - var notificationCreateOnCompleted = Notification.createOnCompleted = (function () { - function _accept (onNext, onError, onCompleted) { return onCompleted(); } - function _acceptObservable(observer) { return observer.onCompleted(); } - function toString () { return 'OnCompleted()'; } - - return function () { - return new Notification('C', null, null, _accept, _acceptObservable, toString); - }; - }()); - - /** - * Supports push-style iteration over an observable sequence. - */ - var Observer = Rx.Observer = function () { }; - - /** - * Creates an observer from the specified OnNext, along with optional OnError, and OnCompleted actions. - * @param {Function} [onNext] Observer's OnNext action implementation. - * @param {Function} [onError] Observer's OnError action implementation. - * @param {Function} [onCompleted] Observer's OnCompleted action implementation. - * @returns {Observer} The observer object implemented using the given actions. - */ - var observerCreate = Observer.create = function (onNext, onError, onCompleted) { - onNext || (onNext = noop); - onError || (onError = defaultError); - onCompleted || (onCompleted = noop); - return new AnonymousObserver(onNext, onError, onCompleted); - }; - - /** - * Abstract base class for implementations of the Observer class. - * This base class enforces the grammar of observers where OnError and OnCompleted are terminal messages. - */ - var AbstractObserver = Rx.internals.AbstractObserver = (function (__super__) { - inherits(AbstractObserver, __super__); - - /** - * Creates a new observer in a non-stopped state. - */ - function AbstractObserver() { - this.isStopped = false; - } - - // Must be implemented by other observers - AbstractObserver.prototype.next = notImplemented; - AbstractObserver.prototype.error = notImplemented; - AbstractObserver.prototype.completed = notImplemented; - - /** - * Notifies the observer of a new element in the sequence. - * @param {Any} value Next element in the sequence. - */ - AbstractObserver.prototype.onNext = function (value) { - !this.isStopped && this.next(value); - }; - - /** - * Notifies the observer that an exception has occurred. - * @param {Any} error The error that has occurred. - */ - AbstractObserver.prototype.onError = function (error) { - if (!this.isStopped) { - this.isStopped = true; - this.error(error); - } - }; - - /** - * Notifies the observer of the end of the sequence. - */ - AbstractObserver.prototype.onCompleted = function () { - if (!this.isStopped) { - this.isStopped = true; - this.completed(); - } - }; - - /** - * Disposes the observer, causing it to transition to the stopped state. - */ - AbstractObserver.prototype.dispose = function () { this.isStopped = true; }; - - AbstractObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.error(e); - return true; - } - - return false; - }; - - return AbstractObserver; - }(Observer)); - - /** - * Class to create an Observer instance from delegate-based implementations of the on* methods. - */ - var AnonymousObserver = Rx.AnonymousObserver = (function (__super__) { - inherits(AnonymousObserver, __super__); - - /** - * Creates an observer from the specified OnNext, OnError, and OnCompleted actions. - * @param {Any} onNext Observer's OnNext action implementation. - * @param {Any} onError Observer's OnError action implementation. - * @param {Any} onCompleted Observer's OnCompleted action implementation. - */ - function AnonymousObserver(onNext, onError, onCompleted) { - __super__.call(this); - this._onNext = onNext; - this._onError = onError; - this._onCompleted = onCompleted; - } - - /** - * Calls the onNext action. - * @param {Any} value Next element in the sequence. - */ - AnonymousObserver.prototype.next = function (value) { - this._onNext(value); - }; - - /** - * Calls the onError action. - * @param {Any} error The error that has occurred. - */ - AnonymousObserver.prototype.error = function (error) { - this._onError(error); - }; - - /** - * Calls the onCompleted action. - */ - AnonymousObserver.prototype.completed = function () { - this._onCompleted(); - }; - - return AnonymousObserver; - }(AbstractObserver)); - - var observableProto; - - /** - * Represents a push-style collection. - */ - var Observable = Rx.Observable = (function () { - - function makeSubscribe(self, subscribe) { - return function (o) { - var oldOnError = o.onError; - o.onError = function (e) { - makeStackTraceLong(e, self); - oldOnError.call(o, e); - }; - - return subscribe.call(self, o); - }; - } - - function Observable(subscribe) { - if (Rx.config.longStackSupport && hasStacks) { - var e = tryCatch(thrower)(new Error()).e; - this.stack = e.stack.substring(e.stack.indexOf('\n') + 1); - this._subscribe = makeSubscribe(this, subscribe); - } else { - this._subscribe = subscribe; - } - } - - observableProto = Observable.prototype; - - /** - * Determines whether the given object is an Observable - * @param {Any} An object to determine whether it is an Observable - * @returns {Boolean} true if an Observable, else false. - */ - Observable.isObservable = function (o) { - return o && isFunction(o.subscribe); - } - - /** - * Subscribes an o to the observable sequence. - * @param {Mixed} [oOrOnNext] The object that is to receive notifications or an action to invoke for each element in the observable sequence. - * @param {Function} [onError] Action to invoke upon exceptional termination of the observable sequence. - * @param {Function} [onCompleted] Action to invoke upon graceful termination of the observable sequence. - * @returns {Diposable} A disposable handling the subscriptions and unsubscriptions. - */ - observableProto.subscribe = observableProto.forEach = function (oOrOnNext, onError, onCompleted) { - return this._subscribe(typeof oOrOnNext === 'object' ? - oOrOnNext : - observerCreate(oOrOnNext, onError, onCompleted)); - }; - - /** - * Subscribes to the next value in the sequence with an optional "this" argument. - * @param {Function} onNext The function to invoke on each element in the observable sequence. - * @param {Any} [thisArg] Object to use as this when executing callback. - * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions. - */ - observableProto.subscribeOnNext = function (onNext, thisArg) { - return this._subscribe(observerCreate(typeof thisArg !== 'undefined' ? function(x) { onNext.call(thisArg, x); } : onNext)); - }; - - /** - * Subscribes to an exceptional condition in the sequence with an optional "this" argument. - * @param {Function} onError The function to invoke upon exceptional termination of the observable sequence. - * @param {Any} [thisArg] Object to use as this when executing callback. - * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions. - */ - observableProto.subscribeOnError = function (onError, thisArg) { - return this._subscribe(observerCreate(null, typeof thisArg !== 'undefined' ? function(e) { onError.call(thisArg, e); } : onError)); - }; - - /** - * Subscribes to the next value in the sequence with an optional "this" argument. - * @param {Function} onCompleted The function to invoke upon graceful termination of the observable sequence. - * @param {Any} [thisArg] Object to use as this when executing callback. - * @returns {Disposable} A disposable handling the subscriptions and unsubscriptions. - */ - observableProto.subscribeOnCompleted = function (onCompleted, thisArg) { - return this._subscribe(observerCreate(null, null, typeof thisArg !== 'undefined' ? function() { onCompleted.call(thisArg); } : onCompleted)); - }; - - return Observable; - })(); - - var ScheduledObserver = Rx.internals.ScheduledObserver = (function (__super__) { - inherits(ScheduledObserver, __super__); - - function ScheduledObserver(scheduler, observer) { - __super__.call(this); - this.scheduler = scheduler; - this.observer = observer; - this.isAcquired = false; - this.hasFaulted = false; - this.queue = []; - this.disposable = new SerialDisposable(); - } - - ScheduledObserver.prototype.next = function (value) { - var self = this; - this.queue.push(function () { self.observer.onNext(value); }); - }; - - ScheduledObserver.prototype.error = function (e) { - var self = this; - this.queue.push(function () { self.observer.onError(e); }); - }; - - ScheduledObserver.prototype.completed = function () { - var self = this; - this.queue.push(function () { self.observer.onCompleted(); }); - }; - - ScheduledObserver.prototype.ensureActive = function () { - var isOwner = false; - if (!this.hasFaulted && this.queue.length > 0) { - isOwner = !this.isAcquired; - this.isAcquired = true; - } - if (isOwner) { - this.disposable.setDisposable(this.scheduler.scheduleRecursiveWithState(this, function (parent, self) { - var work; - if (parent.queue.length > 0) { - work = parent.queue.shift(); - } else { - parent.isAcquired = false; - return; - } - var res = tryCatch(work)(); - if (res === errorObj) { - parent.queue = []; - parent.hasFaulted = true; - return thrower(res.e); - } - self(parent); - })); - } - }; - - ScheduledObserver.prototype.dispose = function () { - __super__.prototype.dispose.call(this); - this.disposable.dispose(); - }; - - return ScheduledObserver; - }(AbstractObserver)); - - var ObservableBase = Rx.ObservableBase = (function (__super__) { - inherits(ObservableBase, __super__); - - function fixSubscriber(subscriber) { - return subscriber && isFunction(subscriber.dispose) ? subscriber : - isFunction(subscriber) ? disposableCreate(subscriber) : disposableEmpty; - } - - function setDisposable(s, state) { - var ado = state[0], self = state[1]; - var sub = tryCatch(self.subscribeCore).call(self, ado); - - if (sub === errorObj) { - if(!ado.fail(errorObj.e)) { return thrower(errorObj.e); } - } - ado.setDisposable(fixSubscriber(sub)); - } - - function subscribe(observer) { - var ado = new AutoDetachObserver(observer), state = [ado, this]; - - if (currentThreadScheduler.scheduleRequired()) { - currentThreadScheduler.scheduleWithState(state, setDisposable); - } else { - setDisposable(null, state); - } - return ado; - } - - function ObservableBase() { - __super__.call(this, subscribe); - } - - ObservableBase.prototype.subscribeCore = notImplemented; - - return ObservableBase; - }(Observable)); - -var FlatMapObservable = (function(__super__){ - - inherits(FlatMapObservable, __super__); - - function FlatMapObservable(source, selector, resultSelector, thisArg) { - this.resultSelector = Rx.helpers.isFunction(resultSelector) ? - resultSelector : null; - - this.selector = Rx.internals.bindCallback(Rx.helpers.isFunction(selector) ? selector : function() { return selector; }, thisArg, 3); - this.source = source; - - __super__.call(this); - - } - - FlatMapObservable.prototype.subscribeCore = function(o) { - return this.source.subscribe(new InnerObserver(o, this.selector, this.resultSelector, this)); - }; - - function InnerObserver(observer, selector, resultSelector, source) { - this.i = 0; - this.selector = selector; - this.resultSelector = resultSelector; - this.source = source; - this.isStopped = false; - this.o = observer; - } - - InnerObserver.prototype._wrapResult = function(result, x, i) { - return this.resultSelector ? - result.map(function(y, i2) { return this.resultSelector(x, y, i, i2); }, this) : - result; - }; - - InnerObserver.prototype.onNext = function(x) { - - if (this.isStopped) return; - - var i = this.i++; - var result = tryCatch(this.selector)(x, i, this.source); - - if (result === errorObj) { - return this.o.onError(result.e); - } - - Rx.helpers.isPromise(result) && (result = Rx.Observable.fromPromise(result)); - (Rx.helpers.isArrayLike(result) || Rx.helpers.isIterable(result)) && (result = Rx.Observable.from(result)); - - this.o.onNext(this._wrapResult(result, x, i)); - - }; - - InnerObserver.prototype.onError = function(e) { - if(!this.isStopped) { this.isStopped = true; this.o.onError(e); } - }; - - InnerObserver.prototype.onCompleted = function() { - if (!this.isStopped) {this.isStopped = true; this.o.onCompleted(); } - }; - - return FlatMapObservable; - -}(ObservableBase)); - - var Enumerable = Rx.internals.Enumerable = function () { }; - - var ConcatEnumerableObservable = (function(__super__) { - inherits(ConcatEnumerableObservable, __super__); - function ConcatEnumerableObservable(sources) { - this.sources = sources; - __super__.call(this); - } - - ConcatEnumerableObservable.prototype.subscribeCore = function (o) { - var isDisposed, subscription = new SerialDisposable(); - var cancelable = immediateScheduler.scheduleRecursiveWithState(this.sources[$iterator$](), function (e, self) { - if (isDisposed) { return; } - var currentItem = tryCatch(e.next).call(e); - if (currentItem === errorObj) { return o.onError(currentItem.e); } - - if (currentItem.done) { - return o.onCompleted(); - } - - // Check if promise - var currentValue = currentItem.value; - isPromise(currentValue) && (currentValue = observableFromPromise(currentValue)); - - var d = new SingleAssignmentDisposable(); - subscription.setDisposable(d); - d.setDisposable(currentValue.subscribe(new InnerObserver(o, self, e))); - }); - - return new CompositeDisposable(subscription, cancelable, disposableCreate(function () { - isDisposed = true; - })); - }; - - function InnerObserver(o, s, e) { - this.o = o; - this.s = s; - this.e = e; - this.isStopped = false; - } - InnerObserver.prototype.onNext = function (x) { if(!this.isStopped) { this.o.onNext(x); } }; - InnerObserver.prototype.onError = function (err) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(err); - } - }; - InnerObserver.prototype.onCompleted = function () { - if (!this.isStopped) { - this.isStopped = true; - this.s(this.e); - } - }; - InnerObserver.prototype.dispose = function () { this.isStopped = true; }; - InnerObserver.prototype.fail = function (err) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(err); - return true; - } - return false; - }; - - return ConcatEnumerableObservable; - }(ObservableBase)); - - Enumerable.prototype.concat = function () { - return new ConcatEnumerableObservable(this); - }; - - var CatchErrorObservable = (function(__super__) { - inherits(CatchErrorObservable, __super__); - function CatchErrorObservable(sources) { - this.sources = sources; - __super__.call(this); - } - - CatchErrorObservable.prototype.subscribeCore = function (o) { - var e = this.sources[$iterator$](); - - var isDisposed, subscription = new SerialDisposable(); - var cancelable = immediateScheduler.scheduleRecursiveWithState(null, function (lastException, self) { - if (isDisposed) { return; } - var currentItem = tryCatch(e.next).call(e); - if (currentItem === errorObj) { return o.onError(currentItem.e); } - - if (currentItem.done) { - return lastException !== null ? o.onError(lastException) : o.onCompleted(); - } - - // Check if promise - var currentValue = currentItem.value; - isPromise(currentValue) && (currentValue = observableFromPromise(currentValue)); - - var d = new SingleAssignmentDisposable(); - subscription.setDisposable(d); - d.setDisposable(currentValue.subscribe( - function(x) { o.onNext(x); }, - self, - function() { o.onCompleted(); })); - }); - return new CompositeDisposable(subscription, cancelable, disposableCreate(function () { - isDisposed = true; - })); - }; - - return CatchErrorObservable; - }(ObservableBase)); - - Enumerable.prototype.catchError = function () { - return new CatchErrorObservable(this); - }; - - Enumerable.prototype.catchErrorWhen = function (notificationHandler) { - var sources = this; - return new AnonymousObservable(function (o) { - var exceptions = new Subject(), - notifier = new Subject(), - handled = notificationHandler(exceptions), - notificationDisposable = handled.subscribe(notifier); - - var e = sources[$iterator$](); - - var isDisposed, - lastException, - subscription = new SerialDisposable(); - var cancelable = immediateScheduler.scheduleRecursive(function (self) { - if (isDisposed) { return; } - var currentItem = tryCatch(e.next).call(e); - if (currentItem === errorObj) { return o.onError(currentItem.e); } - - if (currentItem.done) { - if (lastException) { - o.onError(lastException); - } else { - o.onCompleted(); - } - return; - } - - // Check if promise - var currentValue = currentItem.value; - isPromise(currentValue) && (currentValue = observableFromPromise(currentValue)); - - var outer = new SingleAssignmentDisposable(); - var inner = new SingleAssignmentDisposable(); - subscription.setDisposable(new CompositeDisposable(inner, outer)); - outer.setDisposable(currentValue.subscribe( - function(x) { o.onNext(x); }, - function (exn) { - inner.setDisposable(notifier.subscribe(self, function(ex) { - o.onError(ex); - }, function() { - o.onCompleted(); - })); - - exceptions.onNext(exn); - }, - function() { o.onCompleted(); })); - }); - - return new CompositeDisposable(notificationDisposable, subscription, cancelable, disposableCreate(function () { - isDisposed = true; - })); - }); - }; - - var RepeatEnumerable = (function (__super__) { - inherits(RepeatEnumerable, __super__); - - function RepeatEnumerable(v, c) { - this.v = v; - this.c = c == null ? -1 : c; - } - RepeatEnumerable.prototype[$iterator$] = function () { - return new RepeatEnumerator(this); - }; - - function RepeatEnumerator(p) { - this.v = p.v; - this.l = p.c; - } - RepeatEnumerator.prototype.next = function () { - if (this.l === 0) { return doneEnumerator; } - if (this.l > 0) { this.l--; } - return { done: false, value: this.v }; - }; - - return RepeatEnumerable; - }(Enumerable)); - - var enumerableRepeat = Enumerable.repeat = function (value, repeatCount) { - return new RepeatEnumerable(value, repeatCount); - }; - - var OfEnumerable = (function(__super__) { - inherits(OfEnumerable, __super__); - function OfEnumerable(s, fn, thisArg) { - this.s = s; - this.fn = fn ? bindCallback(fn, thisArg, 3) : null; - } - OfEnumerable.prototype[$iterator$] = function () { - return new OfEnumerator(this); - }; - - function OfEnumerator(p) { - this.i = -1; - this.s = p.s; - this.l = this.s.length; - this.fn = p.fn; - } - OfEnumerator.prototype.next = function () { - return ++this.i < this.l ? - { done: false, value: !this.fn ? this.s[this.i] : this.fn(this.s[this.i], this.i, this.s) } : - doneEnumerator; - }; - - return OfEnumerable; - }(Enumerable)); - - var enumerableOf = Enumerable.of = function (source, selector, thisArg) { - return new OfEnumerable(source, selector, thisArg); - }; - - var ToArrayObservable = (function(__super__) { - inherits(ToArrayObservable, __super__); - function ToArrayObservable(source) { - this.source = source; - __super__.call(this); - } - - ToArrayObservable.prototype.subscribeCore = function(o) { - return this.source.subscribe(new InnerObserver(o)); - }; - - function InnerObserver(o) { - this.o = o; - this.a = []; - this.isStopped = false; - } - InnerObserver.prototype.onNext = function (x) { if(!this.isStopped) { this.a.push(x); } }; - InnerObserver.prototype.onError = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - } - }; - InnerObserver.prototype.onCompleted = function () { - if (!this.isStopped) { - this.isStopped = true; - this.o.onNext(this.a); - this.o.onCompleted(); - } - }; - InnerObserver.prototype.dispose = function () { this.isStopped = true; } - InnerObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - return true; - } - - return false; - }; - - return ToArrayObservable; - }(ObservableBase)); - - /** - * Creates an array from an observable sequence. - * @returns {Observable} An observable sequence containing a single element with a list containing all the elements of the source sequence. - */ - observableProto.toArray = function () { - return new ToArrayObservable(this); - }; - - /** - * Creates an observable sequence from a specified subscribe method implementation. - * @example - * var res = Rx.Observable.create(function (observer) { return function () { } ); - * var res = Rx.Observable.create(function (observer) { return Rx.Disposable.empty; } ); - * var res = Rx.Observable.create(function (observer) { } ); - * @param {Function} subscribe Implementation of the resulting observable sequence's subscribe method, returning a function that will be wrapped in a Disposable. - * @returns {Observable} The observable sequence with the specified implementation for the Subscribe method. - */ - Observable.create = function (subscribe, parent) { - return new AnonymousObservable(subscribe, parent); - }; - - /** - * Returns an observable sequence that invokes the specified factory function whenever a new observer subscribes. - * - * @example - * var res = Rx.Observable.defer(function () { return Rx.Observable.fromArray([1,2,3]); }); - * @param {Function} observableFactory Observable factory function to invoke for each observer that subscribes to the resulting sequence or Promise. - * @returns {Observable} An observable sequence whose observers trigger an invocation of the given observable factory function. - */ - var observableDefer = Observable.defer = function (observableFactory) { - return new AnonymousObservable(function (observer) { - var result; - try { - result = observableFactory(); - } catch (e) { - return observableThrow(e).subscribe(observer); - } - isPromise(result) && (result = observableFromPromise(result)); - return result.subscribe(observer); - }); - }; - - var EmptyObservable = (function(__super__) { - inherits(EmptyObservable, __super__); - function EmptyObservable(scheduler) { - this.scheduler = scheduler; - __super__.call(this); - } - - EmptyObservable.prototype.subscribeCore = function (observer) { - var sink = new EmptySink(observer, this.scheduler); - return sink.run(); - }; - - function EmptySink(observer, scheduler) { - this.observer = observer; - this.scheduler = scheduler; - } - - function scheduleItem(s, state) { - state.onCompleted(); - return disposableEmpty; - } - - EmptySink.prototype.run = function () { - return this.scheduler.scheduleWithState(this.observer, scheduleItem); - }; - - return EmptyObservable; - }(ObservableBase)); - - var EMPTY_OBSERVABLE = new EmptyObservable(immediateScheduler); - - /** - * Returns an empty observable sequence, using the specified scheduler to send out the single OnCompleted message. - * - * @example - * var res = Rx.Observable.empty(); - * var res = Rx.Observable.empty(Rx.Scheduler.timeout); - * @param {Scheduler} [scheduler] Scheduler to send the termination call on. - * @returns {Observable} An observable sequence with no elements. - */ - var observableEmpty = Observable.empty = function (scheduler) { - isScheduler(scheduler) || (scheduler = immediateScheduler); - return scheduler === immediateScheduler ? EMPTY_OBSERVABLE : new EmptyObservable(scheduler); - }; - - var FromObservable = (function(__super__) { - inherits(FromObservable, __super__); - function FromObservable(iterable, mapper, scheduler) { - this.iterable = iterable; - this.mapper = mapper; - this.scheduler = scheduler; - __super__.call(this); - } - - FromObservable.prototype.subscribeCore = function (o) { - var sink = new FromSink(o, this); - return sink.run(); - }; - - return FromObservable; - }(ObservableBase)); - - var FromSink = (function () { - function FromSink(o, parent) { - this.o = o; - this.parent = parent; - } - - FromSink.prototype.run = function () { - var list = Object(this.parent.iterable), - it = getIterable(list), - o = this.o, - mapper = this.parent.mapper; - - function loopRecursive(i, recurse) { - var next = tryCatch(it.next).call(it); - if (next === errorObj) { return o.onError(next.e); } - if (next.done) { return o.onCompleted(); } - - var result = next.value; - - if (isFunction(mapper)) { - result = tryCatch(mapper)(result, i); - if (result === errorObj) { return o.onError(result.e); } - } - - o.onNext(result); - recurse(i + 1); - } - - return this.parent.scheduler.scheduleRecursiveWithState(0, loopRecursive); - }; - - return FromSink; - }()); - - var maxSafeInteger = Math.pow(2, 53) - 1; - - function StringIterable(s) { - this._s = s; - } - - StringIterable.prototype[$iterator$] = function () { - return new StringIterator(this._s); - }; - - function StringIterator(s) { - this._s = s; - this._l = s.length; - this._i = 0; - } - - StringIterator.prototype[$iterator$] = function () { - return this; - }; - - StringIterator.prototype.next = function () { - return this._i < this._l ? { done: false, value: this._s.charAt(this._i++) } : doneEnumerator; - }; - - function ArrayIterable(a) { - this._a = a; - } - - ArrayIterable.prototype[$iterator$] = function () { - return new ArrayIterator(this._a); - }; - - function ArrayIterator(a) { - this._a = a; - this._l = toLength(a); - this._i = 0; - } - - ArrayIterator.prototype[$iterator$] = function () { - return this; - }; - - ArrayIterator.prototype.next = function () { - return this._i < this._l ? { done: false, value: this._a[this._i++] } : doneEnumerator; - }; - - function numberIsFinite(value) { - return typeof value === 'number' && root.isFinite(value); - } - - function isNan(n) { - return n !== n; - } - - function getIterable(o) { - var i = o[$iterator$], it; - if (!i && typeof o === 'string') { - it = new StringIterable(o); - return it[$iterator$](); - } - if (!i && o.length !== undefined) { - it = new ArrayIterable(o); - return it[$iterator$](); - } - if (!i) { throw new TypeError('Object is not iterable'); } - return o[$iterator$](); - } - - function sign(value) { - var number = +value; - if (number === 0) { return number; } - if (isNaN(number)) { return number; } - return number < 0 ? -1 : 1; - } - - function toLength(o) { - var len = +o.length; - if (isNaN(len)) { return 0; } - if (len === 0 || !numberIsFinite(len)) { return len; } - len = sign(len) * Math.floor(Math.abs(len)); - if (len <= 0) { return 0; } - if (len > maxSafeInteger) { return maxSafeInteger; } - return len; - } - - /** - * This method creates a new Observable sequence from an array-like or iterable object. - * @param {Any} arrayLike An array-like or iterable object to convert to an Observable sequence. - * @param {Function} [mapFn] Map function to call on every element of the array. - * @param {Any} [thisArg] The context to use calling the mapFn if provided. - * @param {Scheduler} [scheduler] Optional scheduler to use for scheduling. If not provided, defaults to Scheduler.currentThread. - */ - var observableFrom = Observable.from = function (iterable, mapFn, thisArg, scheduler) { - if (iterable == null) { - throw new Error('iterable cannot be null.') - } - if (mapFn && !isFunction(mapFn)) { - throw new Error('mapFn when provided must be a function'); - } - if (mapFn) { - var mapper = bindCallback(mapFn, thisArg, 2); - } - isScheduler(scheduler) || (scheduler = currentThreadScheduler); - return new FromObservable(iterable, mapper, scheduler); - } - - var FromArrayObservable = (function(__super__) { - inherits(FromArrayObservable, __super__); - function FromArrayObservable(args, scheduler) { - this.args = args; - this.scheduler = scheduler; - __super__.call(this); - } - - FromArrayObservable.prototype.subscribeCore = function (observer) { - var sink = new FromArraySink(observer, this); - return sink.run(); - }; - - return FromArrayObservable; - }(ObservableBase)); - - function FromArraySink(observer, parent) { - this.observer = observer; - this.parent = parent; - } - - FromArraySink.prototype.run = function () { - var observer = this.observer, args = this.parent.args, len = args.length; - function loopRecursive(i, recurse) { - if (i < len) { - observer.onNext(args[i]); - recurse(i + 1); - } else { - observer.onCompleted(); - } - } - - return this.parent.scheduler.scheduleRecursiveWithState(0, loopRecursive); - }; - - /** - * Converts an array to an observable sequence, using an optional scheduler to enumerate the array. - * @deprecated use Observable.from or Observable.of - * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on. - * @returns {Observable} The observable sequence whose elements are pulled from the given enumerable sequence. - */ - var observableFromArray = Observable.fromArray = function (array, scheduler) { - isScheduler(scheduler) || (scheduler = currentThreadScheduler); - return new FromArrayObservable(array, scheduler) - }; - - var NeverObservable = (function(__super__) { - inherits(NeverObservable, __super__); - function NeverObservable() { - __super__.call(this); - } - - NeverObservable.prototype.subscribeCore = function (observer) { - return disposableEmpty; - }; - - return NeverObservable; - }(ObservableBase)); - - var NEVER_OBSERVABLE = new NeverObservable(); - - /** - * Returns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins). - * @returns {Observable} An observable sequence whose observers will never get called. - */ - var observableNever = Observable.never = function () { - return NEVER_OBSERVABLE; - }; - - function observableOf (scheduler, array) { - isScheduler(scheduler) || (scheduler = currentThreadScheduler); - return new FromArrayObservable(array, scheduler); - } - - /** - * This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. - * @returns {Observable} The observable sequence whose elements are pulled from the given arguments. - */ - Observable.of = function () { - var len = arguments.length, args = new Array(len); - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - return new FromArrayObservable(args, currentThreadScheduler); - }; - - /** - * This method creates a new Observable instance with a variable number of arguments, regardless of number or type of the arguments. - * @param {Scheduler} scheduler A scheduler to use for scheduling the arguments. - * @returns {Observable} The observable sequence whose elements are pulled from the given arguments. - */ - Observable.ofWithScheduler = function (scheduler) { - var len = arguments.length, args = new Array(len - 1); - for(var i = 1; i < len; i++) { args[i - 1] = arguments[i]; } - return new FromArrayObservable(args, scheduler); - }; - - var PairsObservable = (function(__super__) { - inherits(PairsObservable, __super__); - function PairsObservable(obj, scheduler) { - this.obj = obj; - this.keys = Object.keys(obj); - this.scheduler = scheduler; - __super__.call(this); - } - - PairsObservable.prototype.subscribeCore = function (observer) { - var sink = new PairsSink(observer, this); - return sink.run(); - }; - - return PairsObservable; - }(ObservableBase)); - - function PairsSink(observer, parent) { - this.observer = observer; - this.parent = parent; - } - - PairsSink.prototype.run = function () { - var observer = this.observer, obj = this.parent.obj, keys = this.parent.keys, len = keys.length; - function loopRecursive(i, recurse) { - if (i < len) { - var key = keys[i]; - observer.onNext([key, obj[key]]); - recurse(i + 1); - } else { - observer.onCompleted(); - } - } - - return this.parent.scheduler.scheduleRecursiveWithState(0, loopRecursive); - }; - - /** - * Convert an object into an observable sequence of [key, value] pairs. - * @param {Object} obj The object to inspect. - * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on. - * @returns {Observable} An observable sequence of [key, value] pairs from the object. - */ - Observable.pairs = function (obj, scheduler) { - scheduler || (scheduler = currentThreadScheduler); - return new PairsObservable(obj, scheduler); - }; - - var RangeObservable = (function(__super__) { - inherits(RangeObservable, __super__); - function RangeObservable(start, count, scheduler) { - this.start = start; - this.rangeCount = count; - this.scheduler = scheduler; - __super__.call(this); - } - - RangeObservable.prototype.subscribeCore = function (observer) { - var sink = new RangeSink(observer, this); - return sink.run(); - }; - - return RangeObservable; - }(ObservableBase)); - - var RangeSink = (function () { - function RangeSink(observer, parent) { - this.observer = observer; - this.parent = parent; - } - - RangeSink.prototype.run = function () { - var start = this.parent.start, count = this.parent.rangeCount, observer = this.observer; - function loopRecursive(i, recurse) { - if (i < count) { - observer.onNext(start + i); - recurse(i + 1); - } else { - observer.onCompleted(); - } - } - - return this.parent.scheduler.scheduleRecursiveWithState(0, loopRecursive); - }; - - return RangeSink; - }()); - - /** - * Generates an observable sequence of integral numbers within a specified range, using the specified scheduler to send out observer messages. - * @param {Number} start The value of the first integer in the sequence. - * @param {Number} count The number of sequential integers to generate. - * @param {Scheduler} [scheduler] Scheduler to run the generator loop on. If not specified, defaults to Scheduler.currentThread. - * @returns {Observable} An observable sequence that contains a range of sequential integral numbers. - */ - Observable.range = function (start, count, scheduler) { - isScheduler(scheduler) || (scheduler = currentThreadScheduler); - return new RangeObservable(start, count, scheduler); - }; - - var RepeatObservable = (function(__super__) { - inherits(RepeatObservable, __super__); - function RepeatObservable(value, repeatCount, scheduler) { - this.value = value; - this.repeatCount = repeatCount == null ? -1 : repeatCount; - this.scheduler = scheduler; - __super__.call(this); - } - - RepeatObservable.prototype.subscribeCore = function (observer) { - var sink = new RepeatSink(observer, this); - return sink.run(); - }; - - return RepeatObservable; - }(ObservableBase)); - - function RepeatSink(observer, parent) { - this.observer = observer; - this.parent = parent; - } - - RepeatSink.prototype.run = function () { - var observer = this.observer, value = this.parent.value; - function loopRecursive(i, recurse) { - if (i === -1 || i > 0) { - observer.onNext(value); - i > 0 && i--; - } - if (i === 0) { return observer.onCompleted(); } - recurse(i); - } - - return this.parent.scheduler.scheduleRecursiveWithState(this.parent.repeatCount, loopRecursive); - }; - - /** - * Generates an observable sequence that repeats the given element the specified number of times, using the specified scheduler to send out observer messages. - * @param {Mixed} value Element to repeat. - * @param {Number} repeatCount [Optiona] Number of times to repeat the element. If not specified, repeats indefinitely. - * @param {Scheduler} scheduler Scheduler to run the producer loop on. If not specified, defaults to Scheduler.immediate. - * @returns {Observable} An observable sequence that repeats the given element the specified number of times. - */ - Observable.repeat = function (value, repeatCount, scheduler) { - isScheduler(scheduler) || (scheduler = currentThreadScheduler); - return new RepeatObservable(value, repeatCount, scheduler); - }; - - var JustObservable = (function(__super__) { - inherits(JustObservable, __super__); - function JustObservable(value, scheduler) { - this.value = value; - this.scheduler = scheduler; - __super__.call(this); - } - - JustObservable.prototype.subscribeCore = function (observer) { - var sink = new JustSink(observer, this.value, this.scheduler); - return sink.run(); - }; - - function JustSink(observer, value, scheduler) { - this.observer = observer; - this.value = value; - this.scheduler = scheduler; - } - - function scheduleItem(s, state) { - var value = state[0], observer = state[1]; - observer.onNext(value); - observer.onCompleted(); - return disposableEmpty; - } - - JustSink.prototype.run = function () { - var state = [this.value, this.observer]; - return this.scheduler === immediateScheduler ? - scheduleItem(null, state) : - this.scheduler.scheduleWithState(state, scheduleItem); - }; - - return JustObservable; - }(ObservableBase)); - - /** - * Returns an observable sequence that contains a single element, using the specified scheduler to send out observer messages. - * There is an alias called 'just' or browsers 0) { - parent.handleSubscribe(parent.q.shift()); - } else { - parent.activeCount--; - parent.done && parent.activeCount === 0 && parent.o.onCompleted(); - } - } - }; - InnerObserver.prototype.dispose = function() { this.isStopped = true; }; - InnerObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.parent.o.onError(e); - return true; - } - - return false; - }; - - return MergeObserver; - }()); - - - - - - /** - * Merges an observable sequence of observable sequences into an observable sequence, limiting the number of concurrent subscriptions to inner sequences. - * Or merges two observable sequences into a single observable sequence. - * - * @example - * 1 - merged = sources.merge(1); - * 2 - merged = source.merge(otherSource); - * @param {Mixed} [maxConcurrentOrOther] Maximum number of inner observable sequences being subscribed to concurrently or the second observable sequence. - * @returns {Observable} The observable sequence that merges the elements of the inner sequences. - */ - observableProto.merge = function (maxConcurrentOrOther) { - return typeof maxConcurrentOrOther !== 'number' ? - observableMerge(this, maxConcurrentOrOther) : - new MergeObservable(this, maxConcurrentOrOther); - }; - - /** - * Merges all the observable sequences into a single observable sequence. - * The scheduler is optional and if not specified, the immediate scheduler is used. - * @returns {Observable} The observable sequence that merges the elements of the observable sequences. - */ - var observableMerge = Observable.merge = function () { - var scheduler, sources = [], i, len = arguments.length; - if (!arguments[0]) { - scheduler = immediateScheduler; - for(i = 1; i < len; i++) { sources.push(arguments[i]); } - } else if (isScheduler(arguments[0])) { - scheduler = arguments[0]; - for(i = 1; i < len; i++) { sources.push(arguments[i]); } - } else { - scheduler = immediateScheduler; - for(i = 0; i < len; i++) { sources.push(arguments[i]); } - } - if (Array.isArray(sources[0])) { - sources = sources[0]; - } - return observableOf(scheduler, sources).mergeAll(); - }; - - var CompositeError = Rx.CompositeError = function(errors) { - this.name = "NotImplementedError"; - this.innerErrors = errors; - this.message = 'This contains multiple errors. Check the innerErrors'; - Error.call(this); - } - CompositeError.prototype = Error.prototype; - - /** - * Flattens an Observable that emits Observables into one Observable, in a way that allows an Observer to - * receive all successfully emitted items from all of the source Observables without being interrupted by - * an error notification from one of them. - * - * This behaves like Observable.prototype.mergeAll except that if any of the merged Observables notify of an - * error via the Observer's onError, mergeDelayError will refrain from propagating that - * error notification until all of the merged Observables have finished emitting items. - * @param {Array | Arguments} args Arguments or an array to merge. - * @returns {Observable} an Observable that emits all of the items emitted by the Observables emitted by the Observable - */ - Observable.mergeDelayError = function() { - var args; - if (Array.isArray(arguments[0])) { - args = arguments[0]; - } else { - var len = arguments.length; - args = new Array(len); - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - } - var source = observableOf(null, args); - - return new AnonymousObservable(function (o) { - var group = new CompositeDisposable(), - m = new SingleAssignmentDisposable(), - isStopped = false, - errors = []; - - function setCompletion() { - if (errors.length === 0) { - o.onCompleted(); - } else if (errors.length === 1) { - o.onError(errors[0]); - } else { - o.onError(new CompositeError(errors)); - } - } - - group.add(m); - - m.setDisposable(source.subscribe( - function (innerSource) { - var innerSubscription = new SingleAssignmentDisposable(); - group.add(innerSubscription); - - // Check for promises support - isPromise(innerSource) && (innerSource = observableFromPromise(innerSource)); - - innerSubscription.setDisposable(innerSource.subscribe( - function (x) { o.onNext(x); }, - function (e) { - errors.push(e); - group.remove(innerSubscription); - isStopped && group.length === 1 && setCompletion(); - }, - function () { - group.remove(innerSubscription); - isStopped && group.length === 1 && setCompletion(); - })); - }, - function (e) { - errors.push(e); - isStopped = true; - group.length === 1 && setCompletion(); - }, - function () { - isStopped = true; - group.length === 1 && setCompletion(); - })); - return group; - }); - }; - - var MergeAllObservable = (function (__super__) { - inherits(MergeAllObservable, __super__); - - function MergeAllObservable(source) { - this.source = source; - __super__.call(this); - } - - MergeAllObservable.prototype.subscribeCore = function (observer) { - var g = new CompositeDisposable(), m = new SingleAssignmentDisposable(); - g.add(m); - m.setDisposable(this.source.subscribe(new MergeAllObserver(observer, g))); - return g; - }; - - function MergeAllObserver(o, g) { - this.o = o; - this.g = g; - this.isStopped = false; - this.done = false; - } - MergeAllObserver.prototype.onNext = function(innerSource) { - if(this.isStopped) { return; } - var sad = new SingleAssignmentDisposable(); - this.g.add(sad); - - isPromise(innerSource) && (innerSource = observableFromPromise(innerSource)); - - sad.setDisposable(innerSource.subscribe(new InnerObserver(this, sad))); - }; - MergeAllObserver.prototype.onError = function (e) { - if(!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - } - }; - MergeAllObserver.prototype.onCompleted = function () { - if(!this.isStopped) { - this.isStopped = true; - this.done = true; - this.g.length === 1 && this.o.onCompleted(); - } - }; - MergeAllObserver.prototype.dispose = function() { this.isStopped = true; }; - MergeAllObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - return true; - } - - return false; - }; - - function InnerObserver(parent, sad) { - this.parent = parent; - this.sad = sad; - this.isStopped = false; - } - InnerObserver.prototype.onNext = function (x) { if (!this.isStopped) { this.parent.o.onNext(x); } }; - InnerObserver.prototype.onError = function (e) { - if(!this.isStopped) { - this.isStopped = true; - this.parent.o.onError(e); - } - }; - InnerObserver.prototype.onCompleted = function () { - if(!this.isStopped) { - var parent = this.parent; - this.isStopped = true; - parent.g.remove(this.sad); - parent.done && parent.g.length === 1 && parent.o.onCompleted(); - } - }; - InnerObserver.prototype.dispose = function() { this.isStopped = true; }; - InnerObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.parent.o.onError(e); - return true; - } - - return false; - }; - - return MergeAllObservable; - }(ObservableBase)); - - /** - * Merges an observable sequence of observable sequences into an observable sequence. - * @returns {Observable} The observable sequence that merges the elements of the inner sequences. - */ - observableProto.mergeAll = function () { - return new MergeAllObservable(this); - }; - - /** - * Returns the values from the source observable sequence only after the other observable sequence produces a value. - * @param {Observable | Promise} other The observable sequence or Promise that triggers propagation of elements of the source sequence. - * @returns {Observable} An observable sequence containing the elements of the source sequence starting from the point the other sequence triggered propagation. - */ - observableProto.skipUntil = function (other) { - var source = this; - return new AnonymousObservable(function (o) { - var isOpen = false; - var disposables = new CompositeDisposable(source.subscribe(function (left) { - isOpen && o.onNext(left); - }, function (e) { o.onError(e); }, function () { - isOpen && o.onCompleted(); - })); - - isPromise(other) && (other = observableFromPromise(other)); - - var rightSubscription = new SingleAssignmentDisposable(); - disposables.add(rightSubscription); - rightSubscription.setDisposable(other.subscribe(function () { - isOpen = true; - rightSubscription.dispose(); - }, function (e) { o.onError(e); }, function () { - rightSubscription.dispose(); - })); - - return disposables; - }, source); - }; - - var SwitchObservable = (function(__super__) { - inherits(SwitchObservable, __super__); - function SwitchObservable(source) { - this.source = source; - __super__.call(this); - } - - SwitchObservable.prototype.subscribeCore = function (o) { - var inner = new SerialDisposable(), s = this.source.subscribe(new SwitchObserver(o, inner)); - return new CompositeDisposable(s, inner); - }; - - function SwitchObserver(o, inner) { - this.o = o; - this.inner = inner; - this.stopped = false; - this.latest = 0; - this.hasLatest = false; - this.isStopped = false; - } - SwitchObserver.prototype.onNext = function (innerSource) { - if (this.isStopped) { return; } - var d = new SingleAssignmentDisposable(), id = ++this.latest; - this.hasLatest = true; - this.inner.setDisposable(d); - isPromise(innerSource) && (innerSource = observableFromPromise(innerSource)); - d.setDisposable(innerSource.subscribe(new InnerObserver(this, id))); - }; - SwitchObserver.prototype.onError = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - } - }; - SwitchObserver.prototype.onCompleted = function () { - if (!this.isStopped) { - this.isStopped = true; - this.stopped = true; - !this.hasLatest && this.o.onCompleted(); - } - }; - SwitchObserver.prototype.dispose = function () { this.isStopped = true; }; - SwitchObserver.prototype.fail = function (e) { - if(!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - return true; - } - return false; - }; - - function InnerObserver(parent, id) { - this.parent = parent; - this.id = id; - this.isStopped = false; - } - InnerObserver.prototype.onNext = function (x) { - if (this.isStopped) { return; } - this.parent.latest === this.id && this.parent.o.onNext(x); - }; - InnerObserver.prototype.onError = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.parent.latest === this.id && this.parent.o.onError(e); - } - }; - InnerObserver.prototype.onCompleted = function () { - if (!this.isStopped) { - this.isStopped = true; - if (this.parent.latest === this.id) { - this.parent.hasLatest = false; - this.parent.isStopped && this.parent.o.onCompleted(); - } - } - }; - InnerObserver.prototype.dispose = function () { this.isStopped = true; } - InnerObserver.prototype.fail = function (e) { - if(!this.isStopped) { - this.isStopped = true; - this.parent.o.onError(e); - return true; - } - return false; - }; - - return SwitchObservable; - }(ObservableBase)); - - /** - * Transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence. - * @returns {Observable} The observable sequence that at any point in time produces the elements of the most recent inner observable sequence that has been received. - */ - observableProto['switch'] = observableProto.switchLatest = function () { - return new SwitchObservable(this); - }; - - var TakeUntilObservable = (function(__super__) { - inherits(TakeUntilObservable, __super__); - - function TakeUntilObservable(source, other) { - this.source = source; - this.other = isPromise(other) ? observableFromPromise(other) : other; - __super__.call(this); - } - - TakeUntilObservable.prototype.subscribeCore = function(o) { - return new CompositeDisposable( - this.source.subscribe(o), - this.other.subscribe(new InnerObserver(o)) - ); - }; - - function InnerObserver(o) { - this.o = o; - this.isStopped = false; - } - InnerObserver.prototype.onNext = function (x) { - if (this.isStopped) { return; } - this.o.onCompleted(); - }; - InnerObserver.prototype.onError = function (err) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(err); - } - }; - InnerObserver.prototype.onCompleted = function () { - !this.isStopped && (this.isStopped = true); - }; - InnerObserver.prototype.dispose = function() { this.isStopped = true; }; - InnerObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - return true; - } - return false; - }; - - return TakeUntilObservable; - }(ObservableBase)); - - /** - * Returns the values from the source observable sequence until the other observable sequence produces a value. - * @param {Observable | Promise} other Observable sequence or Promise that terminates propagation of elements of the source sequence. - * @returns {Observable} An observable sequence containing the elements of the source sequence up to the point the other sequence interrupted further propagation. - */ - observableProto.takeUntil = function (other) { - return new TakeUntilObservable(this, other); - }; - - function falseFactory() { return false; } - - /** - * Merges the specified observable sequences into one observable sequence by using the selector function only when the (first) source observable sequence produces an element. - * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - observableProto.withLatestFrom = function () { - var len = arguments.length, args = new Array(len) - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - var resultSelector = args.pop(), source = this; - Array.isArray(args[0]) && (args = args[0]); - - return new AnonymousObservable(function (observer) { - var n = args.length, - hasValue = arrayInitialize(n, falseFactory), - hasValueAll = false, - values = new Array(n); - - var subscriptions = new Array(n + 1); - for (var idx = 0; idx < n; idx++) { - (function (i) { - var other = args[i], sad = new SingleAssignmentDisposable(); - isPromise(other) && (other = observableFromPromise(other)); - sad.setDisposable(other.subscribe(function (x) { - values[i] = x; - hasValue[i] = true; - hasValueAll = hasValue.every(identity); - }, function (e) { observer.onError(e); }, noop)); - subscriptions[i] = sad; - }(idx)); - } - - var sad = new SingleAssignmentDisposable(); - sad.setDisposable(source.subscribe(function (x) { - var allValues = [x].concat(values); - if (!hasValueAll) { return; } - var res = tryCatch(resultSelector).apply(null, allValues); - if (res === errorObj) { return observer.onError(res.e); } - observer.onNext(res); - }, function (e) { observer.onError(e); }, function () { - observer.onCompleted(); - })); - subscriptions[n] = sad; - - return new CompositeDisposable(subscriptions); - }, this); - }; - - function falseFactory() { return false; } - function emptyArrayFactory() { return []; } - function argumentsToArray() { - var len = arguments.length, args = new Array(len); - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - return args; - } - - /** - * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences or an array have produced an element at a corresponding index. - * The last element in the arguments must be a function to invoke for each series of elements at corresponding indexes in the args. - * @returns {Observable} An observable sequence containing the result of combining elements of the args using the specified result selector function. - */ - observableProto.zip = function () { - if (arguments.length === 0) { throw new Error('invalid arguments'); } - - var len = arguments.length, args = new Array(len); - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - var resultSelector = isFunction(args[len - 1]) ? args.pop() : argumentsToArray; - Array.isArray(args[0]) && (args = args[0]); - - var parent = this; - args.unshift(parent); - return new AnonymousObservable(function (o) { - var n = args.length, - queues = arrayInitialize(n, emptyArrayFactory), - isDone = arrayInitialize(n, falseFactory); - - var subscriptions = new Array(n); - for (var idx = 0; idx < n; idx++) { - (function (i) { - var source = args[i], sad = new SingleAssignmentDisposable(); - - isPromise(source) && (source = observableFromPromise(source)); - - sad.setDisposable(source.subscribe(function (x) { - queues[i].push(x); - if (queues.every(function (x) { return x.length > 0; })) { - var queuedValues = queues.map(function (x) { return x.shift(); }), - res = tryCatch(resultSelector).apply(parent, queuedValues); - if (res === errorObj) { return o.onError(res.e); } - o.onNext(res); - } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) { - o.onCompleted(); - } - }, function (e) { o.onError(e); }, function () { - isDone[i] = true; - isDone.every(identity) && o.onCompleted(); - })); - subscriptions[i] = sad; - })(idx); - } - - return new CompositeDisposable(subscriptions); - }, parent); - }; - - /** - * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences have produced an element at a corresponding index. - * @param arguments Observable sources. - * @param {Function} resultSelector Function to invoke for each series of elements at corresponding indexes in the sources. - * @returns {Observable} An observable sequence containing the result of combining elements of the sources using the specified result selector function. - */ - Observable.zip = function () { - var len = arguments.length, args = new Array(len); - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - if (Array.isArray(args[0])) { - args = isFunction(args[1]) ? args[0].concat(args[1]) : args[0]; - } - var first = args.shift(); - return first.zip.apply(first, args); - }; - -function falseFactory() { return false; } -function emptyArrayFactory() { return []; } -function argumentsToArray() { - var len = arguments.length, args = new Array(len); - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - return args; -} - -/** - * Merges the specified observable sequences into one observable sequence by using the selector function whenever all of the observable sequences or an array have produced an element at a corresponding index. - * The last element in the arguments must be a function to invoke for each series of elements at corresponding indexes in the args. - * @returns {Observable} An observable sequence containing the result of combining elements of the args using the specified result selector function. - */ -observableProto.zipIterable = function () { - if (arguments.length === 0) { throw new Error('invalid arguments'); } - - var len = arguments.length, args = new Array(len); - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - var resultSelector = isFunction(args[len - 1]) ? args.pop() : argumentsToArray; - - var parent = this; - args.unshift(parent); - return new AnonymousObservable(function (o) { - var n = args.length, - queues = arrayInitialize(n, emptyArrayFactory), - isDone = arrayInitialize(n, falseFactory); - - var subscriptions = new Array(n); - for (var idx = 0; idx < n; idx++) { - (function (i) { - var source = args[i], sad = new SingleAssignmentDisposable(); - - (isArrayLike(source) || isIterable(source)) && (source = observableFrom(source)); - - sad.setDisposable(source.subscribe(function (x) { - queues[i].push(x); - if (queues.every(function (x) { return x.length > 0; })) { - var queuedValues = queues.map(function (x) { return x.shift(); }), - res = tryCatch(resultSelector).apply(parent, queuedValues); - if (res === errorObj) { return o.onError(res.e); } - o.onNext(res); - } else if (isDone.filter(function (x, j) { return j !== i; }).every(identity)) { - o.onCompleted(); - } - }, function (e) { o.onError(e); }, function () { - isDone[i] = true; - isDone.every(identity) && o.onCompleted(); - })); - subscriptions[i] = sad; - })(idx); - } - - return new CompositeDisposable(subscriptions); - }, parent); -}; - - function asObservable(source) { - return function subscribe(o) { return source.subscribe(o); }; - } - - /** - * Hides the identity of an observable sequence. - * @returns {Observable} An observable sequence that hides the identity of the source sequence. - */ - observableProto.asObservable = function () { - return new AnonymousObservable(asObservable(this), this); - }; - - /** - * Dematerializes the explicit notification values of an observable sequence as implicit notifications. - * @returns {Observable} An observable sequence exhibiting the behavior corresponding to the source sequence's notification values. - */ - observableProto.dematerialize = function () { - var source = this; - return new AnonymousObservable(function (o) { - return source.subscribe(function (x) { return x.accept(o); }, function(e) { o.onError(e); }, function () { o.onCompleted(); }); - }, this); - }; - - var DistinctUntilChangedObservable = (function(__super__) { - inherits(DistinctUntilChangedObservable, __super__); - function DistinctUntilChangedObservable(source, keyFn, comparer) { - this.source = source; - this.keyFn = keyFn; - this.comparer = comparer; - __super__.call(this); - } - - DistinctUntilChangedObservable.prototype.subscribeCore = function (o) { - return this.source.subscribe(new DistinctUntilChangedObserver(o, this.keyFn, this.comparer)); - }; - - return DistinctUntilChangedObservable; - }(ObservableBase)); - - var DistinctUntilChangedObserver = (function(__super__) { - inherits(DistinctUntilChangedObserver, __super__); - function DistinctUntilChangedObserver(o, keyFn, comparer) { - this.o = o; - this.keyFn = keyFn; - this.comparer = comparer; - this.hasCurrentKey = false; - this.currentKey = null; - __super__.call(this); - } - - DistinctUntilChangedObserver.prototype.next = function (x) { - var key = x, comparerEquals; - if (isFunction(this.keyFn)) { - key = tryCatch(this.keyFn)(x); - if (key === errorObj) { return this.o.onError(key.e); } - } - if (this.hasCurrentKey) { - comparerEquals = tryCatch(this.comparer)(this.currentKey, key); - if (comparerEquals === errorObj) { return this.o.onError(comparerEquals.e); } - } - if (!this.hasCurrentKey || !comparerEquals) { - this.hasCurrentKey = true; - this.currentKey = key; - this.o.onNext(x); - } - }; - DistinctUntilChangedObserver.prototype.error = function(e) { - this.o.onError(e); - }; - DistinctUntilChangedObserver.prototype.completed = function () { - this.o.onCompleted(); - }; - - return DistinctUntilChangedObserver; - }(AbstractObserver)); - - /** - * Returns an observable sequence that contains only distinct contiguous elements according to the keyFn and the comparer. - * @param {Function} [keyFn] A function to compute the comparison key for each element. If not provided, it projects the value. - * @param {Function} [comparer] Equality comparer for computed key values. If not provided, defaults to an equality comparer function. - * @returns {Observable} An observable sequence only containing the distinct contiguous elements, based on a computed key value, from the source sequence. - */ - observableProto.distinctUntilChanged = function (keyFn, comparer) { - comparer || (comparer = defaultComparer); - return new DistinctUntilChangedObservable(this, keyFn, comparer); - }; - - var TapObservable = (function(__super__) { - inherits(TapObservable,__super__); - function TapObservable(source, observerOrOnNext, onError, onCompleted) { - this.source = source; - this._oN = observerOrOnNext; - this._oE = onError; - this._oC = onCompleted; - __super__.call(this); - } - - TapObservable.prototype.subscribeCore = function(o) { - return this.source.subscribe(new InnerObserver(o, this)); - }; - - function InnerObserver(o, p) { - this.o = o; - this.t = !p._oN || isFunction(p._oN) ? - observerCreate(p._oN || noop, p._oE || noop, p._oC || noop) : - p._oN; - this.isStopped = false; - } - InnerObserver.prototype.onNext = function(x) { - if (this.isStopped) { return; } - var res = tryCatch(this.t.onNext).call(this.t, x); - if (res === errorObj) { this.o.onError(res.e); } - this.o.onNext(x); - }; - InnerObserver.prototype.onError = function(err) { - if (!this.isStopped) { - this.isStopped = true; - var res = tryCatch(this.t.onError).call(this.t, err); - if (res === errorObj) { return this.o.onError(res.e); } - this.o.onError(err); - } - }; - InnerObserver.prototype.onCompleted = function() { - if (!this.isStopped) { - this.isStopped = true; - var res = tryCatch(this.t.onCompleted).call(this.t); - if (res === errorObj) { return this.o.onError(res.e); } - this.o.onCompleted(); - } - }; - InnerObserver.prototype.dispose = function() { this.isStopped = true; }; - InnerObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - return true; - } - return false; - }; - - return TapObservable; - }(ObservableBase)); - - /** - * Invokes an action for each element in the observable sequence and invokes an action upon graceful or exceptional termination of the observable sequence. - * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. - * @param {Function | Observer} observerOrOnNext Action to invoke for each element in the observable sequence or an o. - * @param {Function} [onError] Action to invoke upon exceptional termination of the observable sequence. Used if only the observerOrOnNext parameter is also a function. - * @param {Function} [onCompleted] Action to invoke upon graceful termination of the observable sequence. Used if only the observerOrOnNext parameter is also a function. - * @returns {Observable} The source sequence with the side-effecting behavior applied. - */ - observableProto['do'] = observableProto.tap = observableProto.doAction = function (observerOrOnNext, onError, onCompleted) { - return new TapObservable(this, observerOrOnNext, onError, onCompleted); - }; - - /** - * Invokes an action for each element in the observable sequence. - * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. - * @param {Function} onNext Action to invoke for each element in the observable sequence. - * @param {Any} [thisArg] Object to use as this when executing callback. - * @returns {Observable} The source sequence with the side-effecting behavior applied. - */ - observableProto.doOnNext = observableProto.tapOnNext = function (onNext, thisArg) { - return this.tap(typeof thisArg !== 'undefined' ? function (x) { onNext.call(thisArg, x); } : onNext); - }; - - /** - * Invokes an action upon exceptional termination of the observable sequence. - * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. - * @param {Function} onError Action to invoke upon exceptional termination of the observable sequence. - * @param {Any} [thisArg] Object to use as this when executing callback. - * @returns {Observable} The source sequence with the side-effecting behavior applied. - */ - observableProto.doOnError = observableProto.tapOnError = function (onError, thisArg) { - return this.tap(noop, typeof thisArg !== 'undefined' ? function (e) { onError.call(thisArg, e); } : onError); - }; - - /** - * Invokes an action upon graceful termination of the observable sequence. - * This method can be used for debugging, logging, etc. of query behavior by intercepting the message stream to run arbitrary actions for messages on the pipeline. - * @param {Function} onCompleted Action to invoke upon graceful termination of the observable sequence. - * @param {Any} [thisArg] Object to use as this when executing callback. - * @returns {Observable} The source sequence with the side-effecting behavior applied. - */ - observableProto.doOnCompleted = observableProto.tapOnCompleted = function (onCompleted, thisArg) { - return this.tap(noop, null, typeof thisArg !== 'undefined' ? function () { onCompleted.call(thisArg); } : onCompleted); - }; - - /** - * Invokes a specified action after the source observable sequence terminates gracefully or exceptionally. - * @param {Function} finallyAction Action to invoke after the source observable sequence terminates. - * @returns {Observable} Source sequence with the action-invoking termination behavior applied. - */ - observableProto['finally'] = function (action) { - var source = this; - return new AnonymousObservable(function (observer) { - var subscription = tryCatch(source.subscribe).call(source, observer); - if (subscription === errorObj) { - action(); - return thrower(subscription.e); - } - return disposableCreate(function () { - var r = tryCatch(subscription.dispose).call(subscription); - action(); - r === errorObj && thrower(r.e); - }); - }, this); - }; - - var IgnoreElementsObservable = (function(__super__) { - inherits(IgnoreElementsObservable, __super__); - - function IgnoreElementsObservable(source) { - this.source = source; - __super__.call(this); - } - - IgnoreElementsObservable.prototype.subscribeCore = function (o) { - return this.source.subscribe(new InnerObserver(o)); - }; - - function InnerObserver(o) { - this.o = o; - this.isStopped = false; - } - InnerObserver.prototype.onNext = noop; - InnerObserver.prototype.onError = function (err) { - if(!this.isStopped) { - this.isStopped = true; - this.o.onError(err); - } - }; - InnerObserver.prototype.onCompleted = function () { - if(!this.isStopped) { - this.isStopped = true; - this.o.onCompleted(); - } - }; - InnerObserver.prototype.dispose = function() { this.isStopped = true; }; - InnerObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.observer.onError(e); - return true; - } - - return false; - }; - - return IgnoreElementsObservable; - }(ObservableBase)); - - /** - * Ignores all elements in an observable sequence leaving only the termination messages. - * @returns {Observable} An empty observable sequence that signals termination, successful or exceptional, of the source sequence. - */ - observableProto.ignoreElements = function () { - return new IgnoreElementsObservable(this); - }; - - /** - * Materializes the implicit notifications of an observable sequence as explicit notification values. - * @returns {Observable} An observable sequence containing the materialized notification values from the source sequence. - */ - observableProto.materialize = function () { - var source = this; - return new AnonymousObservable(function (observer) { - return source.subscribe(function (value) { - observer.onNext(notificationCreateOnNext(value)); - }, function (e) { - observer.onNext(notificationCreateOnError(e)); - observer.onCompleted(); - }, function () { - observer.onNext(notificationCreateOnCompleted()); - observer.onCompleted(); - }); - }, source); - }; - - /** - * Repeats the observable sequence a specified number of times. If the repeat count is not specified, the sequence repeats indefinitely. - * @param {Number} [repeatCount] Number of times to repeat the sequence. If not provided, repeats the sequence indefinitely. - * @returns {Observable} The observable sequence producing the elements of the given sequence repeatedly. - */ - observableProto.repeat = function (repeatCount) { - return enumerableRepeat(this, repeatCount).concat(); - }; - - /** - * Repeats the source observable sequence the specified number of times or until it successfully terminates. If the retry count is not specified, it retries indefinitely. - * Note if you encounter an error and want it to retry once, then you must use .retry(2); - * - * @example - * var res = retried = retry.repeat(); - * var res = retried = retry.repeat(2); - * @param {Number} [retryCount] Number of times to retry the sequence. If not provided, retry the sequence indefinitely. - * @returns {Observable} An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully. - */ - observableProto.retry = function (retryCount) { - return enumerableRepeat(this, retryCount).catchError(); - }; - - /** - * Repeats the source observable sequence upon error each time the notifier emits or until it successfully terminates. - * if the notifier completes, the observable sequence completes. - * - * @example - * var timer = Observable.timer(500); - * var source = observable.retryWhen(timer); - * @param {Observable} [notifier] An observable that triggers the retries or completes the observable with onNext or onCompleted respectively. - * @returns {Observable} An observable sequence producing the elements of the given sequence repeatedly until it terminates successfully. - */ - observableProto.retryWhen = function (notifier) { - return enumerableRepeat(this).catchErrorWhen(notifier); - }; - var ScanObservable = (function(__super__) { - inherits(ScanObservable, __super__); - function ScanObservable(source, accumulator, hasSeed, seed) { - this.source = source; - this.accumulator = accumulator; - this.hasSeed = hasSeed; - this.seed = seed; - __super__.call(this); - } - - ScanObservable.prototype.subscribeCore = function(o) { - return this.source.subscribe(new InnerObserver(o,this)); - }; - - return ScanObservable; - }(ObservableBase)); - - function InnerObserver(o, parent) { - this.o = o; - this.accumulator = parent.accumulator; - this.hasSeed = parent.hasSeed; - this.seed = parent.seed; - this.hasAccumulation = false; - this.accumulation = null; - this.hasValue = false; - this.isStopped = false; - } - InnerObserver.prototype = { - onNext: function (x) { - if (this.isStopped) { return; } - !this.hasValue && (this.hasValue = true); - if (this.hasAccumulation) { - this.accumulation = tryCatch(this.accumulator)(this.accumulation, x); - } else { - this.accumulation = this.hasSeed ? tryCatch(this.accumulator)(this.seed, x) : x; - this.hasAccumulation = true; - } - if (this.accumulation === errorObj) { return this.o.onError(this.accumulation.e); } - this.o.onNext(this.accumulation); - }, - onError: function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - } - }, - onCompleted: function () { - if (!this.isStopped) { - this.isStopped = true; - !this.hasValue && this.hasSeed && this.o.onNext(this.seed); - this.o.onCompleted(); - } - }, - dispose: function() { this.isStopped = true; }, - fail: function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - return true; - } - return false; - } - }; - - /** - * Applies an accumulator function over an observable sequence and returns each intermediate result. The optional seed value is used as the initial accumulator value. - * For aggregation behavior with no intermediate results, see Observable.aggregate. - * @param {Mixed} [seed] The initial accumulator value. - * @param {Function} accumulator An accumulator function to be invoked on each element. - * @returns {Observable} An observable sequence containing the accumulated values. - */ - observableProto.scan = function () { - var hasSeed = false, seed, accumulator = arguments[0]; - if (arguments.length === 2) { - hasSeed = true; - seed = arguments[1]; - } - return new ScanObservable(this, accumulator, hasSeed, seed); - }; - - /** - * Bypasses a specified number of elements at the end of an observable sequence. - * @description - * This operator accumulates a queue with a length enough to store the first `count` elements. As more elements are - * received, elements are taken from the front of the queue and produced on the result sequence. This causes elements to be delayed. - * @param count Number of elements to bypass at the end of the source sequence. - * @returns {Observable} An observable sequence containing the source sequence elements except for the bypassed ones at the end. - */ - observableProto.skipLast = function (count) { - if (count < 0) { throw new ArgumentOutOfRangeError(); } - var source = this; - return new AnonymousObservable(function (o) { - var q = []; - return source.subscribe(function (x) { - q.push(x); - q.length > count && o.onNext(q.shift()); - }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); - }, source); - }; - - /** - * Prepends a sequence of values to an observable sequence with an optional scheduler and an argument list of values to prepend. - * @example - * var res = source.startWith(1, 2, 3); - * var res = source.startWith(Rx.Scheduler.timeout, 1, 2, 3); - * @param {Arguments} args The specified values to prepend to the observable sequence - * @returns {Observable} The source sequence prepended with the specified values. - */ - observableProto.startWith = function () { - var values, scheduler, start = 0; - if (!!arguments.length && isScheduler(arguments[0])) { - scheduler = arguments[0]; - start = 1; - } else { - scheduler = immediateScheduler; - } - for(var args = [], i = start, len = arguments.length; i < len; i++) { args.push(arguments[i]); } - return enumerableOf([observableFromArray(args, scheduler), this]).concat(); - }; - - /** - * Returns a specified number of contiguous elements from the end of an observable sequence. - * @description - * This operator accumulates a buffer with a length enough to store elements count elements. Upon completion of - * the source sequence, this buffer is drained on the result sequence. This causes the elements to be delayed. - * @param {Number} count Number of elements to take from the end of the source sequence. - * @returns {Observable} An observable sequence containing the specified number of elements from the end of the source sequence. - */ - observableProto.takeLast = function (count) { - if (count < 0) { throw new ArgumentOutOfRangeError(); } - var source = this; - return new AnonymousObservable(function (o) { - var q = []; - return source.subscribe(function (x) { - q.push(x); - q.length > count && q.shift(); - }, function (e) { o.onError(e); }, function () { - while (q.length > 0) { o.onNext(q.shift()); } - o.onCompleted(); - }); - }, source); - }; - -observableProto.flatMapConcat = observableProto.concatMap = function(selector, resultSelector, thisArg) { - return new FlatMapObservable(this, selector, resultSelector, thisArg).merge(1); -}; - var MapObservable = (function (__super__) { - inherits(MapObservable, __super__); - - function MapObservable(source, selector, thisArg) { - this.source = source; - this.selector = bindCallback(selector, thisArg, 3); - __super__.call(this); - } - - function innerMap(selector, self) { - return function (x, i, o) { return selector.call(this, self.selector(x, i, o), i, o); } - } - - MapObservable.prototype.internalMap = function (selector, thisArg) { - return new MapObservable(this.source, innerMap(selector, this), thisArg); - }; - - MapObservable.prototype.subscribeCore = function (o) { - return this.source.subscribe(new InnerObserver(o, this.selector, this)); - }; - - function InnerObserver(o, selector, source) { - this.o = o; - this.selector = selector; - this.source = source; - this.i = 0; - this.isStopped = false; - } - - InnerObserver.prototype.onNext = function(x) { - if (this.isStopped) { return; } - var result = tryCatch(this.selector)(x, this.i++, this.source); - if (result === errorObj) { return this.o.onError(result.e); } - this.o.onNext(result); - }; - InnerObserver.prototype.onError = function (e) { - if(!this.isStopped) { this.isStopped = true; this.o.onError(e); } - }; - InnerObserver.prototype.onCompleted = function () { - if(!this.isStopped) { this.isStopped = true; this.o.onCompleted(); } - }; - InnerObserver.prototype.dispose = function() { this.isStopped = true; }; - InnerObserver.prototype.fail = function (e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - return true; - } - - return false; - }; - - return MapObservable; - - }(ObservableBase)); - - /** - * Projects each element of an observable sequence into a new form by incorporating the element's index. - * @param {Function} selector A transform function to apply to each source element; the second parameter of the function represents the index of the source element. - * @param {Any} [thisArg] Object to use as this when executing callback. - * @returns {Observable} An observable sequence whose elements are the result of invoking the transform function on each element of source. - */ - observableProto.map = observableProto.select = function (selector, thisArg) { - var selectorFn = typeof selector === 'function' ? selector : function () { return selector; }; - return this instanceof MapObservable ? - this.internalMap(selectorFn, thisArg) : - new MapObservable(this, selectorFn, thisArg); - }; - - function plucker(args, len) { - return function mapper(x) { - var currentProp = x; - for (var i = 0; i < len; i++) { - var p = currentProp[args[i]]; - if (typeof p !== 'undefined') { - currentProp = p; - } else { - return undefined; - } - } - return currentProp; - } - } - - /** - * Retrieves the value of a specified nested property from all elements in - * the Observable sequence. - * @param {Arguments} arguments The nested properties to pluck. - * @returns {Observable} Returns a new Observable sequence of property values. - */ - observableProto.pluck = function () { - var len = arguments.length, args = new Array(len); - if (len === 0) { throw new Error('List of properties cannot be empty.'); } - for(var i = 0; i < len; i++) { args[i] = arguments[i]; } - return this.map(plucker(args, len)); - }; - -observableProto.flatMap = observableProto.selectMany = function(selector, resultSelector, thisArg) { - return new FlatMapObservable(this, selector, resultSelector, thisArg).mergeAll(); -}; - - -// -//Rx.Observable.prototype.flatMapWithMaxConcurrent = function(limit, selector, resultSelector, thisArg) { -// return new FlatMapObservable(this, selector, resultSelector, thisArg).merge(limit); -//}; -// - -Rx.Observable.prototype.flatMapLatest = function(selector, resultSelector, thisArg) { - return new FlatMapObservable(this, selector, resultSelector, thisArg).switchLatest(); -}; - var SkipObservable = (function(__super__) { - inherits(SkipObservable, __super__); - function SkipObservable(source, count) { - this.source = source; - this.skipCount = count; - __super__.call(this); - } - - SkipObservable.prototype.subscribeCore = function (o) { - return this.source.subscribe(new InnerObserver(o, this.skipCount)); - }; - - function InnerObserver(o, c) { - this.c = c; - this.r = c; - this.o = o; - this.isStopped = false; - } - InnerObserver.prototype.onNext = function (x) { - if (this.isStopped) { return; } - if (this.r <= 0) { - this.o.onNext(x); - } else { - this.r--; - } - }; - InnerObserver.prototype.onError = function(e) { - if (!this.isStopped) { this.isStopped = true; this.o.onError(e); } - }; - InnerObserver.prototype.onCompleted = function() { - if (!this.isStopped) { this.isStopped = true; this.o.onCompleted(); } - }; - InnerObserver.prototype.dispose = function() { this.isStopped = true; }; - InnerObserver.prototype.fail = function(e) { - if (!this.isStopped) { - this.isStopped = true; - this.o.onError(e); - return true; - } - return false; - }; - - return SkipObservable; - }(ObservableBase)); - - /** - * Bypasses a specified number of elements in an observable sequence and then returns the remaining elements. - * @param {Number} count The number of elements to skip before returning the remaining elements. - * @returns {Observable} An observable sequence that contains the elements that occur after the specified index in the input sequence. - */ - observableProto.skip = function (count) { - if (count < 0) { throw new ArgumentOutOfRangeError(); } - return new SkipObservable(this, count); - }; - /** - * Bypasses elements in an observable sequence as long as a specified condition is true and then returns the remaining elements. - * The element's index is used in the logic of the predicate function. - * - * var res = source.skipWhile(function (value) { return value < 10; }); - * var res = source.skipWhile(function (value, index) { return value < 10 || index < 10; }); - * @param {Function} predicate A function to test each element for a condition; the second parameter of the function represents the index of the source element. - * @param {Any} [thisArg] Object to use as this when executing callback. - * @returns {Observable} An observable sequence that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate. - */ - observableProto.skipWhile = function (predicate, thisArg) { - var source = this, - callback = bindCallback(predicate, thisArg, 3); - return new AnonymousObservable(function (o) { - var i = 0, running = false; - return source.subscribe(function (x) { - if (!running) { - try { - running = !callback(x, i++, source); - } catch (e) { - o.onError(e); - return; - } - } - running && o.onNext(x); - }, function (e) { o.onError(e); }, function () { o.onCompleted(); }); - }, source); - }; - - /** - * Returns a specified number of contiguous elements from the start of an observable sequence, using the specified scheduler for the edge case of take(0). - * - * var res = source.take(5); - * var res = source.take(0, Rx.Scheduler.timeout); - * @param {Number} count The number of elements to return. - * @param {Scheduler} [scheduler] Scheduler used to produce an OnCompleted message in case 0) { - var now = scheduler.now(); - d = d + p; - d <= now && (d = now + p); - } - observer.onNext(count); - self(count + 1, d); - }); - }); - } - - function observableTimerTimeSpan(dueTime, scheduler) { - return new AnonymousObservable(function (observer) { - return scheduler.scheduleWithRelative(normalizeTime(dueTime), function () { - observer.onNext(0); - observer.onCompleted(); - }); - }); - } - - function observableTimerTimeSpanAndPeriod(dueTime, period, scheduler) { - return dueTime === period ? - new AnonymousObservable(function (observer) { - return scheduler.schedulePeriodicWithState(0, period, function (count) { - observer.onNext(count); - return count + 1; - }); - }) : - observableDefer(function () { - return observableTimerDateAndPeriod(scheduler.now() + dueTime, period, scheduler); - }); - } - - /** - * Returns an observable sequence that produces a value after each period. - * - * @example - * 1 - res = Rx.Observable.interval(1000); - * 2 - res = Rx.Observable.interval(1000, Rx.Scheduler.timeout); - * - * @param {Number} period Period for producing the values in the resulting sequence (specified as an integer denoting milliseconds). - * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, Rx.Scheduler.timeout is used. - * @returns {Observable} An observable sequence that produces a value after each period. - */ - var observableinterval = Observable.interval = function (period, scheduler) { - return observableTimerTimeSpanAndPeriod(period, period, isScheduler(scheduler) ? scheduler : timeoutScheduler); - }; - - /** - * Returns an observable sequence that produces a value after dueTime has elapsed and then after each period. - * @param {Number} dueTime Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) at which to produce the first value. - * @param {Mixed} [periodOrScheduler] Period to produce subsequent values (specified as an integer denoting milliseconds), or the scheduler to run the timer on. If not specified, the resulting timer is not recurring. - * @param {Scheduler} [scheduler] Scheduler to run the timer on. If not specified, the timeout scheduler is used. - * @returns {Observable} An observable sequence that produces a value after due time has elapsed and then each period. - */ - var observableTimer = Observable.timer = function (dueTime, periodOrScheduler, scheduler) { - var period; - isScheduler(scheduler) || (scheduler = timeoutScheduler); - if (periodOrScheduler != null && typeof periodOrScheduler === 'number') { - period = periodOrScheduler; - } else if (isScheduler(periodOrScheduler)) { - scheduler = periodOrScheduler; - } - if (dueTime instanceof Date && period === undefined) { - return observableTimerDate(dueTime.getTime(), scheduler); - } - if (dueTime instanceof Date && period !== undefined) { - return observableTimerDateAndPeriod(dueTime.getTime(), periodOrScheduler, scheduler); - } - return period === undefined ? - observableTimerTimeSpan(dueTime, scheduler) : - observableTimerTimeSpanAndPeriod(dueTime, period, scheduler); - }; - - function observableDelayRelative(source, dueTime, scheduler) { - return new AnonymousObservable(function (o) { - var active = false, - cancelable = new SerialDisposable(), - exception = null, - q = [], - running = false, - subscription; - subscription = source.materialize().timestamp(scheduler).subscribe(function (notification) { - var d, shouldRun; - if (notification.value.kind === 'E') { - q = []; - q.push(notification); - exception = notification.value.exception; - shouldRun = !running; - } else { - q.push({ value: notification.value, timestamp: notification.timestamp + dueTime }); - shouldRun = !active; - active = true; - } - if (shouldRun) { - if (exception !== null) { - o.onError(exception); - } else { - d = new SingleAssignmentDisposable(); - cancelable.setDisposable(d); - d.setDisposable(scheduler.scheduleRecursiveWithRelative(dueTime, function (self) { - var e, recurseDueTime, result, shouldRecurse; - if (exception !== null) { - return; - } - running = true; - do { - result = null; - if (q.length > 0 && q[0].timestamp - scheduler.now() <= 0) { - result = q.shift().value; - } - if (result !== null) { - result.accept(o); - } - } while (result !== null); - shouldRecurse = false; - recurseDueTime = 0; - if (q.length > 0) { - shouldRecurse = true; - recurseDueTime = Math.max(0, q[0].timestamp - scheduler.now()); - } else { - active = false; - } - e = exception; - running = false; - if (e !== null) { - o.onError(e); - } else if (shouldRecurse) { - self(recurseDueTime); - } - })); - } - } - }); - return new CompositeDisposable(subscription, cancelable); - }, source); - } - - function observableDelayAbsolute(source, dueTime, scheduler) { - return observableDefer(function () { - return observableDelayRelative(source, dueTime - scheduler.now(), scheduler); - }); - } - - function delayWithSelector(source, subscriptionDelay, delayDurationSelector) { - var subDelay, selector; - if (isFunction(subscriptionDelay)) { - selector = subscriptionDelay; - } else { - subDelay = subscriptionDelay; - selector = delayDurationSelector; - } - return new AnonymousObservable(function (o) { - var delays = new CompositeDisposable(), atEnd = false, subscription = new SerialDisposable(); - - function start() { - subscription.setDisposable(source.subscribe( - function (x) { - var delay = tryCatch(selector)(x); - if (delay === errorObj) { return o.onError(delay.e); } - var d = new SingleAssignmentDisposable(); - delays.add(d); - d.setDisposable(delay.subscribe( - function () { - o.onNext(x); - delays.remove(d); - done(); - }, - function (e) { o.onError(e); }, - function () { - o.onNext(x); - delays.remove(d); - done(); - } - )); - }, - function (e) { o.onError(e); }, - function () { - atEnd = true; - subscription.dispose(); - done(); - } - )); - } - - function done () { - atEnd && delays.length === 0 && o.onCompleted(); - } - - if (!subDelay) { - start(); - } else { - subscription.setDisposable(subDelay.subscribe(start, function (e) { o.onError(e); }, start)); - } - - return new CompositeDisposable(subscription, delays); - }, this); - } - - /** - * Time shifts the observable sequence by dueTime. - * The relative time intervals between the values are preserved. - * - * @param {Number} dueTime Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) by which to shift the observable sequence. - * @param {Scheduler} [scheduler] Scheduler to run the delay timers on. If not specified, the timeout scheduler is used. - * @returns {Observable} Time-shifted sequence. - */ - observableProto.delay = function () { - if (typeof arguments[0] === 'number' || arguments[0] instanceof Date) { - var dueTime = arguments[0], scheduler = arguments[1]; - isScheduler(scheduler) || (scheduler = timeoutScheduler); - return dueTime instanceof Date ? - observableDelayAbsolute(this, dueTime, scheduler) : - observableDelayRelative(this, dueTime, scheduler); - } else if (isFunction(arguments[0])) { - return delayWithSelector(this, arguments[0], arguments[1]); - } else { - throw new Error('Invalid arguments'); - } - }; - - function debounce(source, dueTime, scheduler) { - isScheduler(scheduler) || (scheduler = timeoutScheduler); - return new AnonymousObservable(function (observer) { - var cancelable = new SerialDisposable(), hasvalue = false, value, id = 0; - var subscription = source.subscribe( - function (x) { - hasvalue = true; - value = x; - id++; - var currentId = id, - d = new SingleAssignmentDisposable(); - cancelable.setDisposable(d); - d.setDisposable(scheduler.scheduleWithRelative(dueTime, function () { - hasvalue && id === currentId && observer.onNext(value); - hasvalue = false; - })); - }, - function (e) { - cancelable.dispose(); - observer.onError(e); - hasvalue = false; - id++; - }, - function () { - cancelable.dispose(); - hasvalue && observer.onNext(value); - observer.onCompleted(); - hasvalue = false; - id++; - }); - return new CompositeDisposable(subscription, cancelable); - }, this); - } - - function debounceWithSelector(source, durationSelector) { - return new AnonymousObservable(function (o) { - var value, hasValue = false, cancelable = new SerialDisposable(), id = 0; - var subscription = source.subscribe( - function (x) { - var throttle = tryCatch(durationSelector)(x); - if (throttle === errorObj) { return o.onError(throttle.e); } - - isPromise(throttle) && (throttle = observableFromPromise(throttle)); - - hasValue = true; - value = x; - id++; - var currentid = id, d = new SingleAssignmentDisposable(); - cancelable.setDisposable(d); - d.setDisposable(throttle.subscribe( - function () { - hasValue && id === currentid && o.onNext(value); - hasValue = false; - d.dispose(); - }, - function (e) { o.onError(e); }, - function () { - hasValue && id === currentid && o.onNext(value); - hasValue = false; - d.dispose(); - } - )); - }, - function (e) { - cancelable.dispose(); - o.onError(e); - hasValue = false; - id++; - }, - function () { - cancelable.dispose(); - hasValue && o.onNext(value); - o.onCompleted(); - hasValue = false; - id++; - } - ); - return new CompositeDisposable(subscription, cancelable); - }, source); - } - - observableProto.debounce = function () { - if (isFunction (arguments[0])) { - return debounceWithSelector(this, arguments[0]); - } else if (typeof arguments[0] === 'number') { - return debounce(this, arguments[0], arguments[1]); - } else { - throw new Error('Invalid arguments'); - } - }; - - /** - * Records the timestamp for each value in an observable sequence. - * - * @example - * 1 - res = source.timestamp(); // produces { value: x, timestamp: ts } - * 2 - res = source.timestamp(Rx.Scheduler.default); - * - * @param {Scheduler} [scheduler] Scheduler used to compute timestamps. If not specified, the default scheduler is used. - * @returns {Observable} An observable sequence with timestamp information on values. - */ - observableProto.timestamp = function (scheduler) { - isScheduler(scheduler) || (scheduler = timeoutScheduler); - return this.map(function (x) { - return { value: x, timestamp: scheduler.now() }; - }); - }; - - function sampleObservable(source, sampler) { - return new AnonymousObservable(function (o) { - var atEnd = false, value, hasValue = false; - - function sampleSubscribe() { - if (hasValue) { - hasValue = false; - o.onNext(value); - } - atEnd && o.onCompleted(); - } - - var sourceSubscription = new SingleAssignmentDisposable(); - sourceSubscription.setDisposable(source.subscribe( - function (newValue) { - hasValue = true; - value = newValue; - }, - function (e) { o.onError(e); }, - function () { - atEnd = true; - sourceSubscription.dispose(); - } - )); - - return new CompositeDisposable( - sourceSubscription, - sampler.subscribe(sampleSubscribe, function (e) { o.onError(e); }, sampleSubscribe) - ); - }, source); - } - - /** - * Samples the observable sequence at each interval. - * - * @example - * 1 - res = source.sample(sampleObservable); // Sampler tick sequence - * 2 - res = source.sample(5000); // 5 seconds - * 2 - res = source.sample(5000, Rx.Scheduler.timeout); // 5 seconds - * - * @param {Mixed} intervalOrSampler Interval at which to sample (specified as an integer denoting milliseconds) or Sampler Observable. - * @param {Scheduler} [scheduler] Scheduler to run the sampling timer on. If not specified, the timeout scheduler is used. - * @returns {Observable} Sampled observable sequence. - */ - observableProto.sample = observableProto.throttleLatest = function (intervalOrSampler, scheduler) { - isScheduler(scheduler) || (scheduler = timeoutScheduler); - return typeof intervalOrSampler === 'number' ? - sampleObservable(this, observableinterval(intervalOrSampler, scheduler)) : - sampleObservable(this, intervalOrSampler); - }; - - var TimeoutError = Rx.TimeoutError = function(message) { - this.message = message || 'Timeout has occurred'; - this.name = 'TimeoutError'; - Error.call(this); - }; - TimeoutError.prototype = Object.create(Error.prototype); - - function timeoutWithSelector(source, firstTimeout, timeoutDurationSelector, other) { - if (isFunction(firstTimeout)) { - other = timeoutDurationSelector; - timeoutDurationSelector = firstTimeout; - firstTimeout = observableNever(); - } - other || (other = observableThrow(new TimeoutError())); - return new AnonymousObservable(function (o) { - var subscription = new SerialDisposable(), timer = new SerialDisposable(), original = new SingleAssignmentDisposable(); - - subscription.setDisposable(original); - - var id = 0, switched = false; - - function setTimer(timeout) { - var myId = id, d = new SingleAssignmentDisposable(); - timer.setDisposable(d); - d.setDisposable(timeout.subscribe(function () { - id === myId && subscription.setDisposable(other.subscribe(o)); - d.dispose(); - }, function (e) { - id === myId && o.onError(e); - }, function () { - id === myId && subscription.setDisposable(other.subscribe(o)); - })); - }; - - setTimer(firstTimeout); - - function oWins() { - var res = !switched; - if (res) { id++; } - return res; - } - - original.setDisposable(source.subscribe(function (x) { - if (oWins()) { - o.onNext(x); - var timeout = tryCatch(timeoutDurationSelector)(x); - if (timeout === errorObj) { return o.onError(timeout.e); } - setTimer(isPromise(timeout) ? observableFromPromise(timeout) : timeout); - } - }, function (e) { - oWins() && o.onError(e); - }, function () { - oWins() && o.onCompleted(); - })); - return new CompositeDisposable(subscription, timer); - }, source); - } - - function timeout(source, dueTime, other, scheduler) { - if (other == null) { throw new Error('other or scheduler must be specified'); } - if (isScheduler(other)) { - scheduler = other; - other = observableThrow(new TimeoutError()); - } - if (other instanceof Error) { other = observableThrow(other); } - isScheduler(scheduler) || (scheduler = timeoutScheduler); - - var schedulerMethod = dueTime instanceof Date ? - 'scheduleWithAbsolute' : - 'scheduleWithRelative'; - - return new AnonymousObservable(function (o) { - var id = 0, - original = new SingleAssignmentDisposable(), - subscription = new SerialDisposable(), - switched = false, - timer = new SerialDisposable(); - - subscription.setDisposable(original); - - function createTimer() { - var myId = id; - timer.setDisposable(scheduler[schedulerMethod](dueTime, function () { - if (id === myId) { - isPromise(other) && (other = observableFromPromise(other)); - subscription.setDisposable(other.subscribe(o)); - } - })); - } - - createTimer(); - - original.setDisposable(source.subscribe(function (x) { - if (!switched) { - id++; - o.onNext(x); - createTimer(); - } - }, function (e) { - if (!switched) { - id++; - o.onError(e); - } - }, function () { - if (!switched) { - id++; - o.onCompleted(); - } - })); - return new CompositeDisposable(subscription, timer); - }, source); - } - - observableProto.timeout = function () { - var firstArg = arguments[0]; - if (firstArg instanceof Date || typeof firstArg === 'number') { - return timeout(this, firstArg, arguments[1], arguments[2]); - } else if (Observable.isObservable(firstArg) || isFunction(firstArg)) { - return timeoutWithSelector(this, firstArg, arguments[1], arguments[2]); - } else { - throw new Error('Invalid arguments'); - } - }; - - /** - * Returns an Observable that emits only the first item emitted by the source Observable during sequential time windows of a specified duration. - * @param {Number} windowDuration time to wait before emitting another item after emitting the last item - * @param {Scheduler} [scheduler] the Scheduler to use internally to manage the timers that handle timeout for each item. If not provided, defaults to Scheduler.timeout. - * @returns {Observable} An Observable that performs the throttle operation. - */ - observableProto.throttle = function (windowDuration, scheduler) { - isScheduler(scheduler) || (scheduler = timeoutScheduler); - var duration = +windowDuration || 0; - if (duration <= 0) { throw new RangeError('windowDuration cannot be less or equal zero.'); } - var source = this; - return new AnonymousObservable(function (o) { - var lastOnNext = 0; - return source.subscribe( - function (x) { - var now = scheduler.now(); - if (lastOnNext === 0 || now - lastOnNext >= duration) { - lastOnNext = now; - o.onNext(x); - } - },function (e) { o.onError(e); }, function () { o.onCompleted(); } - ); - }, source); - }; - - var PausableObservable = (function (__super__) { - - inherits(PausableObservable, __super__); - - function subscribe(observer) { - var conn = this.source.publish(), - subscription = conn.subscribe(observer), - connection = disposableEmpty; - - var pausable = this.pauser.distinctUntilChanged().subscribe(function (b) { - if (b) { - connection = conn.connect(); - } else { - connection.dispose(); - connection = disposableEmpty; - } - }); - - return new CompositeDisposable(subscription, connection, pausable); - } - - function PausableObservable(source, pauser) { - this.source = source; - this.controller = new Subject(); - - if (pauser && pauser.subscribe) { - this.pauser = this.controller.merge(pauser); - } else { - this.pauser = this.controller; - } - - __super__.call(this, subscribe, source); - } - - PausableObservable.prototype.pause = function () { - this.controller.onNext(false); - }; - - PausableObservable.prototype.resume = function () { - this.controller.onNext(true); - }; - - return PausableObservable; - - }(Observable)); - - /** - * Pauses the underlying observable sequence based upon the observable sequence which yields true/false. - * @example - * var pauser = new Rx.Subject(); - * var source = Rx.Observable.interval(100).pausable(pauser); - * @param {Observable} pauser The observable sequence used to pause the underlying sequence. - * @returns {Observable} The observable sequence which is paused based upon the pauser. - */ - observableProto.pausable = function (pauser) { - return new PausableObservable(this, pauser); - }; - - function combineLatestSource(source, subject, resultSelector) { - return new AnonymousObservable(function (o) { - var hasValue = [false, false], - hasValueAll = false, - isDone = false, - values = new Array(2), - err; - - function next(x, i) { - values[i] = x; - hasValue[i] = true; - if (hasValueAll || (hasValueAll = hasValue.every(identity))) { - if (err) { return o.onError(err); } - var res = tryCatch(resultSelector).apply(null, values); - if (res === errorObj) { return o.onError(res.e); } - o.onNext(res); - } - isDone && values[1] && o.onCompleted(); - } - - return new CompositeDisposable( - source.subscribe( - function (x) { - next(x, 0); - }, - function (e) { - if (values[1]) { - o.onError(e); - } else { - err = e; - } - }, - function () { - isDone = true; - values[1] && o.onCompleted(); - }), - subject.subscribe( - function (x) { - next(x, 1); - }, - function (e) { o.onError(e); }, - function () { - isDone = true; - next(true, 1); - }) - ); - }, source); - } - - var PausableBufferedObservable = (function (__super__) { - - inherits(PausableBufferedObservable, __super__); - - function subscribe(o) { - var q = [], previousShouldFire; - - function drainQueue() { while (q.length > 0) { o.onNext(q.shift()); } } - - var subscription = - combineLatestSource( - this.source, - this.pauser.startWith(false).distinctUntilChanged(), - function (data, shouldFire) { - return { data: data, shouldFire: shouldFire }; - }) - .subscribe( - function (results) { - if (previousShouldFire !== undefined && results.shouldFire != previousShouldFire) { - previousShouldFire = results.shouldFire; - // change in shouldFire - if (results.shouldFire) { drainQueue(); } - } else { - previousShouldFire = results.shouldFire; - // new data - if (results.shouldFire) { - o.onNext(results.data); - } else { - q.push(results.data); - } - } - }, - function (err) { - drainQueue(); - o.onError(err); - }, - function () { - drainQueue(); - o.onCompleted(); - } - ); - return subscription; - } - - function PausableBufferedObservable(source, pauser) { - this.source = source; - this.controller = new Subject(); - - if (pauser && pauser.subscribe) { - this.pauser = this.controller.merge(pauser); - } else { - this.pauser = this.controller; - } - - __super__.call(this, subscribe, source); - } - - PausableBufferedObservable.prototype.pause = function () { - this.controller.onNext(false); - }; - - PausableBufferedObservable.prototype.resume = function () { - this.controller.onNext(true); - }; - - return PausableBufferedObservable; - - }(Observable)); - - /** - * Pauses the underlying observable sequence based upon the observable sequence which yields true/false, - * and yields the values that were buffered while paused. - * @example - * var pauser = new Rx.Subject(); - * var source = Rx.Observable.interval(100).pausableBuffered(pauser); - * @param {Observable} pauser The observable sequence used to pause the underlying sequence. - * @returns {Observable} The observable sequence which is paused based upon the pauser. - */ - observableProto.pausableBuffered = function (subject) { - return new PausableBufferedObservable(this, subject); - }; - -var ControlledObservable = (function (__super__) { - - inherits(ControlledObservable, __super__); - - function subscribe (observer) { - return this.source.subscribe(observer); - } - - function ControlledObservable (source, enableQueue, scheduler) { - __super__.call(this, subscribe, source); - this.subject = new ControlledSubject(enableQueue, scheduler); - this.source = source.multicast(this.subject).refCount(); - } - - ControlledObservable.prototype.request = function (numberOfItems) { - return this.subject.request(numberOfItems == null ? -1 : numberOfItems); - }; - - return ControlledObservable; - -}(Observable)); - -var ControlledSubject = (function (__super__) { - - function subscribe (observer) { - return this.subject.subscribe(observer); - } - - inherits(ControlledSubject, __super__); - - function ControlledSubject(enableQueue, scheduler) { - enableQueue == null && (enableQueue = true); - - __super__.call(this, subscribe); - this.subject = new Subject(); - this.enableQueue = enableQueue; - this.queue = enableQueue ? [] : null; - this.requestedCount = 0; - this.requestedDisposable = null; - this.error = null; - this.hasFailed = false; - this.hasCompleted = false; - this.scheduler = scheduler || currentThreadScheduler; - } - - addProperties(ControlledSubject.prototype, Observer, { - onCompleted: function () { - this.hasCompleted = true; - if (!this.enableQueue || this.queue.length === 0) { - this.subject.onCompleted(); - this.disposeCurrentRequest() - } else { - this.queue.push(Notification.createOnCompleted()); - } - }, - onError: function (error) { - this.hasFailed = true; - this.error = error; - if (!this.enableQueue || this.queue.length === 0) { - this.subject.onError(error); - this.disposeCurrentRequest() - } else { - this.queue.push(Notification.createOnError(error)); - } - }, - onNext: function (value) { - if (this.requestedCount <= 0) { - this.enableQueue && this.queue.push(Notification.createOnNext(value)); - } else { - (this.requestedCount-- === 0) && this.disposeCurrentRequest(); - this.subject.onNext(value); - } - }, - _processRequest: function (numberOfItems) { - if (this.enableQueue) { - while (this.queue.length > 0 && (numberOfItems > 0 || this.queue[0].kind !== 'N')) { - var first = this.queue.shift(); - first.accept(this.subject); - if (first.kind === 'N') { - numberOfItems--; - } else { - this.disposeCurrentRequest(); - this.queue = []; - } - } - } - - return numberOfItems; - }, - request: function (number) { - this.disposeCurrentRequest(); - var self = this; - - this.requestedDisposable = this.scheduler.scheduleWithState(number, - function(s, i) { - var remaining = self._processRequest(i); - var stopped = self.hasCompleted || self.hasFailed - if (!stopped && remaining > 0) { - self.requestedCount = remaining; - - return disposableCreate(function () { - self.requestedCount = 0; - }); - // Scheduled item is still in progress. Return a new - // disposable to allow the request to be interrupted - // via dispose. - } - }); - - return this.requestedDisposable; - }, - disposeCurrentRequest: function () { - if (this.requestedDisposable) { - this.requestedDisposable.dispose(); - this.requestedDisposable = null; - } - } - }); - - return ControlledSubject; -}(Observable)); - -/** - * Attaches a controller to the observable sequence with the ability to queue. - * @example - * var source = Rx.Observable.interval(100).controlled(); - * source.request(3); // Reads 3 values - * @param {bool} enableQueue truthy value to determine if values should be queued pending the next request - * @param {Scheduler} scheduler determines how the requests will be scheduled - * @returns {Observable} The observable sequence which only propagates values on request. - */ -observableProto.controlled = function (enableQueue, scheduler) { - - if (enableQueue && isScheduler(enableQueue)) { - scheduler = enableQueue; - enableQueue = true; - } - - if (enableQueue == null) { enableQueue = true; } - return new ControlledObservable(this, enableQueue, scheduler); -}; - - /** - * Pipes the existing Observable sequence into a Node.js Stream. - * @param {Stream} dest The destination Node.js stream. - * @returns {Stream} The destination stream. - */ - observableProto.pipe = function (dest) { - var source = this.pausableBuffered(); - - function onDrain() { - source.resume(); - } - - dest.addListener('drain', onDrain); - - source.subscribe( - function (x) { - !dest.write(String(x)) && source.pause(); - }, - function (err) { - dest.emit('error', err); - }, - function () { - // Hack check because STDIO is not closable - !dest._isStdio && dest.end(); - dest.removeListener('drain', onDrain); - }); - - source.resume(); - - return dest; - }; - - /** - * Executes a transducer to transform the observable sequence - * @param {Transducer} transducer A transducer to execute - * @returns {Observable} An Observable sequence containing the results from the transducer. - */ - observableProto.transduce = function(transducer) { - var source = this; - - function transformForObserver(o) { - return { - '@@transducer/init': function() { - return o; - }, - '@@transducer/step': function(obs, input) { - return obs.onNext(input); - }, - '@@transducer/result': function(obs) { - return obs.onCompleted(); - } - }; - } - - return new AnonymousObservable(function(o) { - var xform = transducer(transformForObserver(o)); - return source.subscribe( - function(v) { - var res = tryCatch(xform['@@transducer/step']).call(xform, o, v); - if (res === errorObj) { o.onError(res.e); } - }, - function (e) { o.onError(e); }, - function() { xform['@@transducer/result'](o); } - ); - }, source); - }; - - var AnonymousObservable = Rx.AnonymousObservable = (function (__super__) { - inherits(AnonymousObservable, __super__); - - // Fix subscriber to check for undefined or function returned to decorate as Disposable - function fixSubscriber(subscriber) { - return subscriber && isFunction(subscriber.dispose) ? subscriber : - isFunction(subscriber) ? disposableCreate(subscriber) : disposableEmpty; - } - - function setDisposable(s, state) { - var ado = state[0], self = state[1]; - var sub = tryCatch(self.__subscribe).call(self, ado); - - if (sub === errorObj) { - if(!ado.fail(errorObj.e)) { return thrower(errorObj.e); } - } - ado.setDisposable(fixSubscriber(sub)); - } - - function innerSubscribe(observer) { - var ado = new AutoDetachObserver(observer), state = [ado, this]; - - if (currentThreadScheduler.scheduleRequired()) { - currentThreadScheduler.scheduleWithState(state, setDisposable); - } else { - setDisposable(null, state); - } - return ado; - } - - function AnonymousObservable(subscribe, parent) { - this.source = parent; - this.__subscribe = subscribe; - __super__.call(this, innerSubscribe); - } - - return AnonymousObservable; - - }(Observable)); - - var AutoDetachObserver = (function (__super__) { - inherits(AutoDetachObserver, __super__); - - function AutoDetachObserver(observer) { - __super__.call(this); - this.observer = observer; - this.m = new SingleAssignmentDisposable(); - } - - var AutoDetachObserverPrototype = AutoDetachObserver.prototype; - - AutoDetachObserverPrototype.next = function (value) { - var result = tryCatch(this.observer.onNext).call(this.observer, value); - if (result === errorObj) { - this.dispose(); - thrower(result.e); - } - }; - - AutoDetachObserverPrototype.error = function (err) { - var result = tryCatch(this.observer.onError).call(this.observer, err); - this.dispose(); - result === errorObj && thrower(result.e); - }; - - AutoDetachObserverPrototype.completed = function () { - var result = tryCatch(this.observer.onCompleted).call(this.observer); - this.dispose(); - result === errorObj && thrower(result.e); - }; - - AutoDetachObserverPrototype.setDisposable = function (value) { this.m.setDisposable(value); }; - AutoDetachObserverPrototype.getDisposable = function () { return this.m.getDisposable(); }; - - AutoDetachObserverPrototype.dispose = function () { - __super__.prototype.dispose.call(this); - this.m.dispose(); - }; - - return AutoDetachObserver; - }(AbstractObserver)); - - var InnerSubscription = function (subject, observer) { - this.subject = subject; - this.observer = observer; - }; - - InnerSubscription.prototype.dispose = function () { - if (!this.subject.isDisposed && this.observer !== null) { - var idx = this.subject.observers.indexOf(this.observer); - this.subject.observers.splice(idx, 1); - this.observer = null; - } - }; - - /** - * Represents an object that is both an observable sequence as well as an observer. - * Each notification is broadcasted to all subscribed observers. - */ - var Subject = Rx.Subject = (function (__super__) { - function subscribe(observer) { - checkDisposed(this); - if (!this.isStopped) { - this.observers.push(observer); - return new InnerSubscription(this, observer); - } - if (this.hasError) { - observer.onError(this.error); - return disposableEmpty; - } - observer.onCompleted(); - return disposableEmpty; - } - - inherits(Subject, __super__); - - /** - * Creates a subject. - */ - function Subject() { - __super__.call(this, subscribe); - this.isDisposed = false, - this.isStopped = false, - this.observers = []; - this.hasError = false; - } - - addProperties(Subject.prototype, Observer.prototype, { - /** - * Indicates whether the subject has observers subscribed to it. - * @returns {Boolean} Indicates whether the subject has observers subscribed to it. - */ - hasObservers: function () { return this.observers.length > 0; }, - /** - * Notifies all subscribed observers about the end of the sequence. - */ - onCompleted: function () { - checkDisposed(this); - if (!this.isStopped) { - this.isStopped = true; - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - os[i].onCompleted(); - } - - this.observers.length = 0; - } - }, - /** - * Notifies all subscribed observers about the exception. - * @param {Mixed} error The exception to send to all observers. - */ - onError: function (error) { - checkDisposed(this); - if (!this.isStopped) { - this.isStopped = true; - this.error = error; - this.hasError = true; - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - os[i].onError(error); - } - - this.observers.length = 0; - } - }, - /** - * Notifies all subscribed observers about the arrival of the specified element in the sequence. - * @param {Mixed} value The value to send to all observers. - */ - onNext: function (value) { - checkDisposed(this); - if (!this.isStopped) { - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - os[i].onNext(value); - } - } - }, - /** - * Unsubscribe all observers and release resources. - */ - dispose: function () { - this.isDisposed = true; - this.observers = null; - } - }); - - /** - * Creates a subject from the specified observer and observable. - * @param {Observer} observer The observer used to send messages to the subject. - * @param {Observable} observable The observable used to subscribe to messages sent from the subject. - * @returns {Subject} Subject implemented using the given observer and observable. - */ - Subject.create = function (observer, observable) { - return new AnonymousSubject(observer, observable); - }; - - return Subject; - }(Observable)); - - /** - * Represents the result of an asynchronous operation. - * The last value before the OnCompleted notification, or the error received through OnError, is sent to all subscribed observers. - */ - var AsyncSubject = Rx.AsyncSubject = (function (__super__) { - - function subscribe(observer) { - checkDisposed(this); - - if (!this.isStopped) { - this.observers.push(observer); - return new InnerSubscription(this, observer); - } - - if (this.hasError) { - observer.onError(this.error); - } else if (this.hasValue) { - observer.onNext(this.value); - observer.onCompleted(); - } else { - observer.onCompleted(); - } - - return disposableEmpty; - } - - inherits(AsyncSubject, __super__); - - /** - * Creates a subject that can only receive one value and that value is cached for all future observations. - * @constructor - */ - function AsyncSubject() { - __super__.call(this, subscribe); - - this.isDisposed = false; - this.isStopped = false; - this.hasValue = false; - this.observers = []; - this.hasError = false; - } - - addProperties(AsyncSubject.prototype, Observer, { - /** - * Indicates whether the subject has observers subscribed to it. - * @returns {Boolean} Indicates whether the subject has observers subscribed to it. - */ - hasObservers: function () { - checkDisposed(this); - return this.observers.length > 0; - }, - /** - * Notifies all subscribed observers about the end of the sequence, also causing the last received value to be sent out (if any). - */ - onCompleted: function () { - var i, len; - checkDisposed(this); - if (!this.isStopped) { - this.isStopped = true; - var os = cloneArray(this.observers), len = os.length; - - if (this.hasValue) { - for (i = 0; i < len; i++) { - var o = os[i]; - o.onNext(this.value); - o.onCompleted(); - } - } else { - for (i = 0; i < len; i++) { - os[i].onCompleted(); - } - } - - this.observers.length = 0; - } - }, - /** - * Notifies all subscribed observers about the error. - * @param {Mixed} error The Error to send to all observers. - */ - onError: function (error) { - checkDisposed(this); - if (!this.isStopped) { - this.isStopped = true; - this.hasError = true; - this.error = error; - - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - os[i].onError(error); - } - - this.observers.length = 0; - } - }, - /** - * Sends a value to the subject. The last value received before successful termination will be sent to all subscribed and future observers. - * @param {Mixed} value The value to store in the subject. - */ - onNext: function (value) { - checkDisposed(this); - if (this.isStopped) { return; } - this.value = value; - this.hasValue = true; - }, - /** - * Unsubscribe all observers and release resources. - */ - dispose: function () { - this.isDisposed = true; - this.observers = null; - this.exception = null; - this.value = null; - } - }); - - return AsyncSubject; - }(Observable)); - - var AnonymousSubject = Rx.AnonymousSubject = (function (__super__) { - inherits(AnonymousSubject, __super__); - - function subscribe(observer) { - return this.observable.subscribe(observer); - } - - function AnonymousSubject(observer, observable) { - this.observer = observer; - this.observable = observable; - __super__.call(this, subscribe); - } - - addProperties(AnonymousSubject.prototype, Observer.prototype, { - onCompleted: function () { - this.observer.onCompleted(); - }, - onError: function (error) { - this.observer.onError(error); - }, - onNext: function (value) { - this.observer.onNext(value); - } - }); - - return AnonymousSubject; - }(Observable)); - - /** - * Represents a value that changes over time. - * Observers can subscribe to the subject to receive the last (or initial) value and all subsequent notifications. - */ - var BehaviorSubject = Rx.BehaviorSubject = (function (__super__) { - function subscribe(observer) { - checkDisposed(this); - if (!this.isStopped) { - this.observers.push(observer); - observer.onNext(this.value); - return new InnerSubscription(this, observer); - } - if (this.hasError) { - observer.onError(this.error); - } else { - observer.onCompleted(); - } - return disposableEmpty; - } - - inherits(BehaviorSubject, __super__); - - /** - * Initializes a new instance of the BehaviorSubject class which creates a subject that caches its last value and starts with the specified value. - * @param {Mixed} value Initial value sent to observers when no other value has been received by the subject yet. - */ - function BehaviorSubject(value) { - __super__.call(this, subscribe); - this.value = value, - this.observers = [], - this.isDisposed = false, - this.isStopped = false, - this.hasError = false; - } - - addProperties(BehaviorSubject.prototype, Observer, { - /** - * Gets the current value or throws an exception. - * Value is frozen after onCompleted is called. - * After onError is called always throws the specified exception. - * An exception is always thrown after dispose is called. - * @returns {Mixed} The initial value passed to the constructor until onNext is called; after which, the last value passed to onNext. - */ - getValue: function () { - checkDisposed(this); - if (this.hasError) { - throw this.error; - } - return this.value; - }, - /** - * Indicates whether the subject has observers subscribed to it. - * @returns {Boolean} Indicates whether the subject has observers subscribed to it. - */ - hasObservers: function () { return this.observers.length > 0; }, - /** - * Notifies all subscribed observers about the end of the sequence. - */ - onCompleted: function () { - checkDisposed(this); - if (this.isStopped) { return; } - this.isStopped = true; - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - os[i].onCompleted(); - } - - this.observers.length = 0; - }, - /** - * Notifies all subscribed observers about the exception. - * @param {Mixed} error The exception to send to all observers. - */ - onError: function (error) { - checkDisposed(this); - if (this.isStopped) { return; } - this.isStopped = true; - this.hasError = true; - this.error = error; - - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - os[i].onError(error); - } - - this.observers.length = 0; - }, - /** - * Notifies all subscribed observers about the arrival of the specified element in the sequence. - * @param {Mixed} value The value to send to all observers. - */ - onNext: function (value) { - checkDisposed(this); - if (this.isStopped) { return; } - this.value = value; - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - os[i].onNext(value); - } - }, - /** - * Unsubscribe all observers and release resources. - */ - dispose: function () { - this.isDisposed = true; - this.observers = null; - this.value = null; - this.exception = null; - } - }); - - return BehaviorSubject; - }(Observable)); - - /** - * Represents an object that is both an observable sequence as well as an observer. - * Each notification is broadcasted to all subscribed and future observers, subject to buffer trimming policies. - */ - var ReplaySubject = Rx.ReplaySubject = (function (__super__) { - - var maxSafeInteger = Math.pow(2, 53) - 1; - - function createRemovableDisposable(subject, observer) { - return disposableCreate(function () { - observer.dispose(); - !subject.isDisposed && subject.observers.splice(subject.observers.indexOf(observer), 1); - }); - } - - function subscribe(observer) { - var so = new ScheduledObserver(this.scheduler, observer), - subscription = createRemovableDisposable(this, so); - checkDisposed(this); - this._trim(this.scheduler.now()); - this.observers.push(so); - - for (var i = 0, len = this.q.length; i < len; i++) { - so.onNext(this.q[i].value); - } - - if (this.hasError) { - so.onError(this.error); - } else if (this.isStopped) { - so.onCompleted(); - } - - so.ensureActive(); - return subscription; - } - - inherits(ReplaySubject, __super__); - - /** - * Initializes a new instance of the ReplaySubject class with the specified buffer size, window size and scheduler. - * @param {Number} [bufferSize] Maximum element count of the replay buffer. - * @param {Number} [windowSize] Maximum time length of the replay buffer. - * @param {Scheduler} [scheduler] Scheduler the observers are invoked on. - */ - function ReplaySubject(bufferSize, windowSize, scheduler) { - this.bufferSize = bufferSize == null ? maxSafeInteger : bufferSize; - this.windowSize = windowSize == null ? maxSafeInteger : windowSize; - this.scheduler = scheduler || currentThreadScheduler; - this.q = []; - this.observers = []; - this.isStopped = false; - this.isDisposed = false; - this.hasError = false; - this.error = null; - __super__.call(this, subscribe); - } - - addProperties(ReplaySubject.prototype, Observer.prototype, { - /** - * Indicates whether the subject has observers subscribed to it. - * @returns {Boolean} Indicates whether the subject has observers subscribed to it. - */ - hasObservers: function () { - return this.observers.length > 0; - }, - _trim: function (now) { - while (this.q.length > this.bufferSize) { - this.q.shift(); - } - while (this.q.length > 0 && (now - this.q[0].interval) > this.windowSize) { - this.q.shift(); - } - }, - /** - * Notifies all subscribed observers about the arrival of the specified element in the sequence. - * @param {Mixed} value The value to send to all observers. - */ - onNext: function (value) { - checkDisposed(this); - if (this.isStopped) { return; } - var now = this.scheduler.now(); - this.q.push({ interval: now, value: value }); - this._trim(now); - - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - var observer = os[i]; - observer.onNext(value); - observer.ensureActive(); - } - }, - /** - * Notifies all subscribed observers about the exception. - * @param {Mixed} error The exception to send to all observers. - */ - onError: function (error) { - checkDisposed(this); - if (this.isStopped) { return; } - this.isStopped = true; - this.error = error; - this.hasError = true; - var now = this.scheduler.now(); - this._trim(now); - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - var observer = os[i]; - observer.onError(error); - observer.ensureActive(); - } - this.observers.length = 0; - }, - /** - * Notifies all subscribed observers about the end of the sequence. - */ - onCompleted: function () { - checkDisposed(this); - if (this.isStopped) { return; } - this.isStopped = true; - var now = this.scheduler.now(); - this._trim(now); - for (var i = 0, os = cloneArray(this.observers), len = os.length; i < len; i++) { - var observer = os[i]; - observer.onCompleted(); - observer.ensureActive(); - } - this.observers.length = 0; - }, - /** - * Unsubscribe all observers and release resources. - */ - dispose: function () { - this.isDisposed = true; - this.observers = null; - } - }); - - return ReplaySubject; - }(Observable)); - - /** - * Used to pause and resume streams. - */ - Rx.Pauser = (function (__super__) { - inherits(Pauser, __super__); - - function Pauser() { - __super__.call(this); - } - - /** - * Pauses the underlying sequence. - */ - Pauser.prototype.pause = function () { this.onNext(false); }; - - /** - * Resumes the underlying sequence. - */ - Pauser.prototype.resume = function () { this.onNext(true); }; - - return Pauser; - }(Subject)); - - if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { - root.Rx = Rx; - - define(function() { - return Rx; - }); - } else if (freeExports && freeModule) { - // in Node.js or RingoJS - if (moduleExports) { - (freeModule.exports = Rx).Rx = Rx; - } else { - freeExports.Rx = Rx; - } - } else { - // in a browser or Rhino - root.Rx = Rx; - } - - // All code before this point will be filtered from stack traces. - var rEndingLine = captureLine(); - -}.call(this)); diff --git a/node_modules/rx-lite/rx.lite.map b/node_modules/rx-lite/rx.lite.map deleted file mode 100644 index f3dc95d..0000000 --- a/node_modules/rx-lite/rx.lite.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rx.lite.min.js","sources":["rx.lite.js"],"names":["undefined","cloneArray","arr","len","length","a","Array","i","tryCatcherGen","tryCatchTarget","apply","this","arguments","e","errorObj","thrower","makeStackTraceLong","error","observable","hasStacks","stack","indexOf","STACK_JUMP_SEPARATOR","stacks","o","source","unshift","concatedStacks","join","filterStackString","stackString","lines","split","desiredLines","line","isInternalFrame","isNodeFrame","push","stackLine","fileNameAndLineNumber","getFileNameAndLineNumber","fileName","lineNumber","rFileName","rStartingLine","rEndingLine","captureLine","Error","firstLine","attempt1","exec","Number","attempt2","attempt3","keysIn","object","result","isObject","support","nonEnumArgs","isArguments","slice","call","skipProto","enumPrototypes","skipErrorProps","enumErrorProps","errorProto","key","nonEnumShadows","objectProto","ctor","constructor","index","dontEnumsLength","prototype","className","stringProto","stringClass","errorClass","toString","nonEnum","nonEnumProps","dontEnums","hasOwnProperty","internalFor","callback","keysFunc","props","internalForIn","isNode","value","deepEquals","b","stackA","stackB","type","otherType","otherClass","argsClass","objectClass","boolClass","dateClass","numberClass","regexpClass","String","isArr","arrayClass","nodeClass","ctorA","argsObject","Object","ctorB","isFunction","size","pop","arrayInitialize","count","factory","StringIterable","s","_s","StringIterator","_l","_i","ArrayIterable","_a","ArrayIterator","toLength","numberIsFinite","root","isFinite","getIterable","it","$iterator$","TypeError","sign","number","isNaN","Math","floor","abs","maxSafeInteger","FromArraySink","observer","parent","observableOf","scheduler","array","isScheduler","currentThreadScheduler","FromArrayObservable","PairsSink","RepeatSink","observableCatchHandler","handler","AnonymousObservable","d1","SingleAssignmentDisposable","subscription","SerialDisposable","setDisposable","subscribe","CatchObserver","falseFactory","argumentsToArray","args","emptyArrayFactory","asObservable","InnerObserver","accumulator","hasSeed","seed","hasAccumulation","accumulation","hasValue","isStopped","plucker","x","currentProp","p","createCbObservable","fn","ctx","selector","AsyncSubject","createCbHandler","results","tryCatch","onError","onNext","onCompleted","createNodeObservable","createNodeHandler","err","ListenDisposable","n","_e","_n","_fn","addEventListener","isDisposed","createEventListener","el","eventName","disposables","CompositeDisposable","elemToString","add","item","eventHandler","observableTimerDate","dueTime","scheduleWithAbsolute","observableTimerDateAndPeriod","period","d","normalizeTime","scheduleRecursiveWithAbsoluteAndState","self","now","observableTimerTimeSpan","scheduleWithRelative","observableTimerTimeSpanAndPeriod","schedulePeriodicWithState","observableDefer","observableDelayRelative","active","cancelable","exception","q","running","materialize","timestamp","notification","shouldRun","kind","scheduleRecursiveWithRelative","recurseDueTime","shouldRecurse","shift","accept","max","observableDelayAbsolute","delayWithSelector","subscriptionDelay","delayDurationSelector","subDelay","start","delay","delays","remove","done","atEnd","dispose","debounce","timeoutScheduler","hasvalue","id","currentId","debounceWithSelector","durationSelector","throttle","isPromise","observableFromPromise","currentid","sampleObservable","sampler","sampleSubscribe","sourceSubscription","newValue","timeoutWithSelector","firstTimeout","timeoutDurationSelector","other","observableNever","observableThrow","TimeoutError","setTimer","timeout","myId","timer","oWins","res","switched","original","schedulerMethod","Date","createTimer","combineLatestSource","subject","resultSelector","next","values","hasValueAll","every","identity","isDone","objectTypes","function","freeExports","exports","nodeType","freeSelf","freeWindow","window","freeModule","module","moduleExports","freeGlobal","global","Rx","internals","config","Promise","helpers","noop","defaultNow","defaultComparer","y","isEqual","defaultSubComparer","defaultError","defaultKeySerializer","then","isFn","longStackSupport","EmptyError","message","name","create","ObjectDisposedError","ArgumentOutOfRangeError","NotSupportedError","NotImplementedError","notImplemented","notSupported","Symbol","iterator","Set","doneEnumerator","isIterable","isArrayLike","supportNodeClass","bindCallback","func","thisArg","argCount","arg","collection","funcClass","supportsArgsClass","propertyIsEnumerable","document","toLocaleString","valueOf","test","inherits","child","__","addProperties","obj","sources","idx","ln","prop","addRef","xs","r","getDisposable","isArray","isDisposable","CompositeDisposablePrototype","shouldDispose","splice","currentDisposables","Disposable","action","disposableCreate","disposableEmpty","empty","checkDisposed","disposable","current","old","ScheduledItem","RefCountDisposable","InnerDisposable","isInnerDisposed","underlyingDisposable","isPrimaryDisposed","state","comparer","invoke","invokeCore","compareTo","isCancelled","Scheduler","schedule","scheduleRelative","scheduleAbsolute","_schedule","_scheduleRelative","_scheduleAbsolute","invokeAction","schedulerProto","scheduleWithState","scheduleWithRelativeAndState","scheduleWithAbsoluteAndState","normalize","timeSpan","invokeRecImmediate","pair","innerAction","state2","scheduleWork","_","state3","isAdded","group","invokeRecDate","method","dueTime1","invokeRecDateRelative","invokeRecDateAbsolute","scheduleInnerRecursive","dt","scheduleRecursive","scheduleRecursiveWithState","scheduleRecursiveWithRelativeAndState","scheduleRecursiveWithAbsolute","schedulePeriodic","setInterval","clearInterval","scheduleMethod","clearMethod","immediateScheduler","immediate","scheduleNow","currentThread","runTrampoline","queue","si","currentScheduler","scheduleRequired","localTimer","SchedulePeriodicRecursive","tick","command","recurse","_period","_state","_action","_cancel","_scheduler","bind","localSetTimeout","localClearTimeout","setTimeout","clearTimeout","WScript","time","Sleep","runTask","handle","currentlyRunning","task","tasksByHandle","postMessageSupported","postMessage","importScripts","isAsync","oldHandler","onmessage","onGlobalPostMessage","event","data","substring","MSG_PREFIX","nextHandle","reNative","RegExp","replace","setImmediate","process","nextTick","random","attachEvent","MessageChannel","channel","port1","port2","createElement","scriptElement","onreadystatechange","parentNode","removeChild","documentElement","appendChild","observableProto","Notification","acceptObservable","_accept","_acceptObservable","observerOrOnNext","toObservable","notificationCreateOnNext","createOnNext","notificationCreateOnError","createOnError","notificationCreateOnCompleted","createOnCompleted","Observer","observerCreate","AnonymousObserver","AbstractObserver","__super__","completed","fail","_onNext","_onError","_onCompleted","Observable","makeSubscribe","oldOnError","_subscribe","isObservable","forEach","oOrOnNext","subscribeOnNext","subscribeOnError","subscribeOnCompleted","ScheduledObserver","isAcquired","hasFaulted","ensureActive","isOwner","work","ObservableBase","fixSubscriber","subscriber","ado","sub","subscribeCore","AutoDetachObserver","FlatMapObservable","_wrapResult","map","i2","fromPromise","from","Enumerable","ConcatEnumerableObservable","currentItem","currentValue","concat","CatchErrorObservable","lastException","catchError","catchErrorWhen","notificationHandler","exceptions","Subject","notifier","handled","notificationDisposable","outer","inner","exn","ex","RepeatEnumerable","v","c","RepeatEnumerator","l","enumerableRepeat","repeat","repeatCount","OfEnumerable","OfEnumerator","enumerableOf","of","ToArrayObservable","toArray","defer","observableFactory","EmptyObservable","EmptySink","scheduleItem","sink","run","EMPTY_OBSERVABLE","observableEmpty","FromObservable","iterable","mapper","FromSink","loopRecursive","list","pow","charAt","observableFrom","mapFn","observableFromArray","fromArray","NeverObservable","NEVER_OBSERVABLE","never","ofWithScheduler","PairsObservable","keys","pairs","RangeObservable","rangeCount","RangeSink","range","RepeatObservable","JustObservable","JustSink","ThrowObservable","just","ThrowSink","_o","handlerOrSecond","observableCatch","items","combineLatest","filter","j","subscriptions","sad","observableConcat","ConcatObservable","ConcatSink","concatAll","merge","MergeObservable","maxConcurrent","g","MergeObserver","activeCount","handleSubscribe","innerSource","maxConcurrentOrOther","observableMerge","mergeAll","CompositeError","errors","innerErrors","mergeDelayError","setCompletion","m","innerSubscription","MergeAllObservable","MergeAllObserver","skipUntil","isOpen","left","rightSubscription","SwitchObservable","SwitchObserver","stopped","latest","hasLatest","switchLatest","TakeUntilObservable","takeUntil","withLatestFrom","allValues","zip","queues","queuedValues","first","zipIterable","dematerialize","DistinctUntilChangedObservable","keyFn","DistinctUntilChangedObserver","hasCurrentKey","currentKey","comparerEquals","distinctUntilChanged","TapObservable","_oN","_oE","_oC","t","tap","doAction","doOnNext","tapOnNext","doOnError","tapOnError","doOnCompleted","tapOnCompleted","IgnoreElementsObservable","ignoreElements","retry","retryCount","retryWhen","ScanObservable","scan","skipLast","startWith","takeLast","flatMapConcat","concatMap","MapObservable","innerMap","internalMap","select","selectorFn","pluck","flatMap","selectMany","flatMapLatest","SkipObservable","skipCount","skip","skipWhile","predicate","take","remaining","takeWhile","FilterObservable","innerPredicate","internalFilter","shouldYield","where","fromCallback","fromNodeCallback","removeEventListener","useNativeEvents","fromEvent","element","addListener","fromEventPattern","h","removeListener","on","off","publish","refCount","addHandler","removeHandler","innerHandler","returnValue","FromPromiseObservable","promise","toPromise","promiseCtor","resolve","reject","startAsync","functionAsync","multicast","subjectOrSubjectSelector","connectable","connect","ConnectableObservable","share","publishLast","publishValue","initialValueOrSelector","initialValue","BehaviorSubject","shareValue","replay","bufferSize","windowSize","ReplaySubject","shareReplay","hasSubscription","sourceObservable","connectableSubscription","shouldConnect","observableinterval","interval","periodOrScheduler","getTime","sample","throttleLatest","intervalOrSampler","firstArg","windowDuration","duration","RangeError","lastOnNext","PausableObservable","conn","connection","pausable","pauser","controller","pause","resume","PausableBufferedObservable","drainQueue","previousShouldFire","shouldFire","pausableBuffered","ControlledObservable","enableQueue","ControlledSubject","request","numberOfItems","requestedCount","requestedDisposable","hasFailed","hasCompleted","disposeCurrentRequest","_processRequest","controlled","pipe","dest","onDrain","write","emit","_isStdio","end","transduce","transducer","transformForObserver","@@transducer/init","@@transducer/step","obs","input","@@transducer/result","xform","__subscribe","innerSubscribe","AutoDetachObserverPrototype","InnerSubscription","observers","hasError","hasObservers","os","AnonymousSubject","getValue","createRemovableDisposable","so","_trim","Pauser","define","amd"],"mappings":";CAEE,SAAUA,GAkDR,QAASC,GAAWC,GAElB,IAAI,GADAC,GAAMD,EAAIE,OAAQC,EAAI,GAAIC,OAAMH,GAC5BI,EAAI,EAAOJ,EAAJI,EAASA,IAAOF,EAAEE,GAAKL,EAAIK,EAC1C,OAAOF,GAIX,QAASG,GAAcC,GACrB,MAAO,YACL,IACE,MAAOA,GAAeC,MAAMC,KAAMC,WAClC,MAAOC,GAEP,MADAC,IAASD,EAAIA,EACNC,KAQb,QAASC,GAAQF,GACf,KAAMA,GAYR,QAASG,GAAmBC,EAAOC,GAGjC,GAAIC,IACAD,EAAWE,OACM,gBAAVH,IACG,OAAVA,GACAA,EAAMG,OACwC,KAA9CH,EAAMG,MAAMC,QAAQC,IACtB,CAEA,IAAK,GADDC,MACKC,EAAIN,EAAcM,EAAGA,EAAIA,EAAEC,OAC9BD,EAAEJ,OACJG,EAAOG,QAAQF,EAAEJ,MAGrBG,GAAOG,QAAQT,EAAMG,MAErB,IAAIO,GAAiBJ,EAAOK,KAAK,KAAON,GAAuB,KAC/DL,GAAMG,MAAQS,EAAkBF,IAIpC,QAASE,GAAkBC,GAEzB,IAAK,GADDC,GAAQD,EAAYE,MAAM,MAAOC,KAC5B1B,EAAI,EAAGJ,EAAM4B,EAAM3B,OAAYD,EAAJI,EAASA,IAAK,CAChD,GAAI2B,GAAOH,EAAMxB,EAEZ4B,GAAgBD,IAAUE,EAAYF,KAASA,GAClDD,EAAaI,KAAKH,GAGtB,MAAOD,GAAaL,KAAK,MAG3B,QAASO,GAAgBG,GACvB,GAAIC,GAAwBC,EAAyBF,EACrD,KAAKC,EACH,OAAO,CAET,IAAIE,GAAWF,EAAsB,GAAIG,EAAaH,EAAsB,EAE5E,OAAOE,KAAaE,IAClBD,GAAcE,IACAC,IAAdH,EAGJ,QAASN,GAAYE,GACnB,MAA4C,KAArCA,EAAUjB,QAAQ,gBACY,KAAnCiB,EAAUjB,QAAQ,aAGtB,QAASyB,KACP,GAAK3B,GAEL,IACE,KAAM,IAAI4B,OACV,MAAOlC,GACP,GAAIkB,GAAQlB,EAAEO,MAAMY,MAAM,MACtBgB,EAAYjB,EAAM,GAAGV,QAAQ,KAAO,EAAIU,EAAM,GAAKA,EAAM,GACzDQ,EAAwBC,EAAyBQ,EACrD,KAAKT,EAAyB,MAG9B,OADAI,IAAYJ,EAAsB,GAC3BA,EAAsB,IAIjC,QAASC,GAAyBF,GAEhC,GAAIW,GAAW,gCAAgCC,KAAKZ,EACpD,IAAIW,EAAY,OAAQA,EAAS,GAAIE,OAAOF,EAAS,IAGrD,IAAIG,GAAW,4BAA4BF,KAAKZ,EAChD,IAAIc,EAAY,OAAQA,EAAS,GAAID,OAAOC,EAAS,IAGrD,IAAIC,GAAW,iBAAiBH,KAAKZ,EACrC,OAAIe,IAAoBA,EAAS,GAAIF,OAAOE,EAAS,KAArD,OAkKF,QAASC,GAAOC,GACd,GAAIC,KACJ,KAAKC,GAASF,GACZ,MAAOC,EAELE,IAAQC,aAAeJ,EAAOnD,QAAUwD,GAAYL,KACtDA,EAASM,GAAMC,KAAKP,GAEtB,IAAIQ,GAAYL,GAAQM,gBAAmC,kBAAVT,GAC7CU,EAAiBP,GAAQQ,iBAAmBX,IAAWY,IAAcZ,YAAkBR,OAE3F,KAAK,GAAIqB,KAAOb,GACRQ,GAAoB,aAAPK,GACbH,IAA0B,WAAPG,GAA2B,QAAPA,IAC3CZ,EAAOnB,KAAK+B,EAIhB,IAAIV,GAAQW,gBAAkBd,IAAWe,GAAa,CACpD,GAAIC,GAAOhB,EAAOiB,YACdC,EAAQ,GACRrE,EAASsE,EAEb,IAAInB,KAAYgB,GAAQA,EAAKI,WAC3B,GAAIC,GAAYrB,IAAWsB,GAAcC,GAAcvB,IAAWY,GAAaY,GAAaC,GAASlB,KAAKP,GACtG0B,EAAUC,GAAaN,EAE7B,QAASH,EAAQrE,GACfgE,EAAMe,GAAUV,GACVQ,GAAWA,EAAQb,KAASgB,GAAetB,KAAKP,EAAQa,IAC5DZ,EAAOnB,KAAK+B,GAIlB,MAAOZ,GAGT,QAAS6B,GAAY9B,EAAQ+B,EAAUC,GAKrC,IAJA,GAAId,GAAQ,GACVe,EAAQD,EAAShC,GACjBnD,EAASoF,EAAMpF,SAERqE,EAAQrE,GAAQ,CACvB,GAAIgE,GAAMoB,EAAMf,EAChB,IAAIa,EAAS/B,EAAOa,GAAMA,EAAKb,MAAY,EACzC,MAGJ,MAAOA,GAGT,QAASkC,GAAclC,EAAQ+B,GAC7B,MAAOD,GAAY9B,EAAQ+B,EAAUhC,GAGvC,QAASoC,GAAOC,GAGd,MAAgC,kBAAlBA,GAAMX,UAAiD,iBAAfW,EAAQ,IAqBhE,QAASC,GAAWvF,EAAGwF,EAAGC,EAAQC,GAEhC,GAAI1F,IAAMwF,EAER,MAAa,KAANxF,GAAY,EAAIA,GAAK,EAAIwF,CAGlC,IAAIG,SAAc3F,GACd4F,QAAmBJ,EAGvB,IAAIxF,IAAMA,IAAW,MAALA,GAAkB,MAALwF,GAChB,YAARG,GAA8B,UAARA,GAAiC,YAAbC,GAAwC,UAAbA,GACxE,OAAO,CAIT,IAAIrB,GAAYI,GAASlB,KAAKzD,GAC1B6F,EAAalB,GAASlB,KAAK+B,EAQ/B,IANIjB,GAAauB,KACfvB,EAAYwB,IAEVF,GAAcC,KAChBD,EAAaE,IAEXxB,GAAasB,EACf,OAAO,CAET,QAAQtB,GACN,IAAKyB,IACL,IAAKC,IAGH,OAAQjG,IAAMwF,CAEhB,KAAKU,IAEH,MAAQlG,KAAMA,EACZwF,IAAMA,EAEA,GAALxF,EAAU,EAAIA,GAAK,EAAIwF,EAAKxF,IAAMwF,CAEvC,KAAKW,IACL,IAAK1B,IAGH,MAAOzE,IAAKoG,OAAOZ,GAEvB,GAAIa,GAAQ9B,GAAa+B,EACzB,KAAKD,EAAO,CAGV,GAAI9B,GAAawB,KAAiB1C,GAAQkD,YAAclB,EAAOrF,IAAMqF,EAAOG,IAC1E,OAAO,CAGT,IAAIgB,IAASnD,GAAQoD,YAAclD,GAAYvD,GAAK0G,OAAS1G,EAAEmE,YAC3DwC,GAAStD,GAAQoD,YAAclD,GAAYiC,GAAKkB,OAASlB,EAAErB,WAG/D,MAAIqC,GAASG,GACL5B,GAAetB,KAAKzD,EAAG,gBAAkB+E,GAAetB,KAAK+B,EAAG,gBAChEoB,GAAWJ,IAAUA,YAAiBA,IAASI,GAAWD,IAAUA,YAAiBA,MACtF,eAAiB3G,IAAK,eAAiBwF,KAE5C,OAAO,EAOXC,IAAWA,MACXC,IAAWA,KAGX,KADA,GAAI3F,GAAS0F,EAAO1F,OACbA,KACL,GAAI0F,EAAO1F,IAAWC,EACpB,MAAO0F,GAAO3F,IAAWyF,CAG7B,IAAIqB,GAAO,EACP1D,GAAS,CAOb,IAJAsC,EAAOzD,KAAKhC,GACZ0F,EAAO1D,KAAKwD,GAGRa,GAMF,GAJAtG,EAASC,EAAED,OACX8G,EAAOrB,EAAEzF,OACToD,EAAS0D,GAAQ9G,EAIf,KAAO8G,KAAQ,CACb,GACIvB,GAAQE,EAAEqB,EAEd,MAAM1D,EAASoC,EAAWvF,EAAE6G,GAAOvB,EAAOG,EAAQC,IAChD,WAQNN,GAAcI,EAAG,SAASF,EAAOvB,EAAKyB,GACpC,MAAIT,IAAetB,KAAK+B,EAAGzB,IAEzB8C,IAEQ1D,EAAS4B,GAAetB,KAAKzD,EAAG+D,IAAQwB,EAAWvF,EAAE+D,GAAMuB,EAAOG,EAAQC,IAJpF,SAQEvC,GAEFiC,EAAcpF,EAAG,SAASsF,EAAOvB,EAAK/D,GACpC,MAAI+E,IAAetB,KAAKzD,EAAG+D,GAEjBZ,IAAW0D,EAAO,GAF5B,QAUN,OAHApB,GAAOqB,MACPpB,EAAOoB,MAEA3D,EA6BT,QAAS4D,GAAgBC,EAAOC,GAE9B,IAAK,GADDjH,GAAI,GAAIC,OAAM+G,GACT9G,EAAI,EAAO8G,EAAJ9G,EAAWA,IACzBF,EAAEE,GAAK+G,GAET,OAAOjH,GAwmDT,QAASkH,GAAeC,GACtB7G,KAAK8G,GAAKD,EAOZ,QAASE,GAAeF,GACtB7G,KAAK8G,GAAKD,EACV7G,KAAKgH,GAAKH,EAAEpH,OACZO,KAAKiH,GAAK,EAWZ,QAASC,GAAcxH,GACrBM,KAAKmH,GAAKzH,EAOZ,QAAS0H,GAAc1H,GACrBM,KAAKmH,GAAKzH,EACVM,KAAKgH,GAAKK,EAAS3H,GACnBM,KAAKiH,GAAK,EAWZ,QAASK,GAAetC,GACtB,MAAwB,gBAAVA,IAAsBuC,GAAKC,SAASxC,GAOpD,QAASyC,GAAY5G,GACnB,GAAuB6G,GAAnB9H,EAAIiB,EAAE8G,GACV,KAAK/H,GAAkB,gBAANiB,GAEf,MADA6G,GAAK,GAAId,GAAe/F,GACjB6G,EAAGC,KAEZ,KAAK/H,GAAKiB,EAAEpB,SAAWJ,EAErB,MADAqI,GAAK,GAAIR,GAAcrG,GAChB6G,EAAGC,KAEZ,KAAK/H,EAAK,KAAM,IAAIgI,WAAU,yBAC9B,OAAO/G,GAAE8G,MAGX,QAASE,GAAK7C,GACZ,GAAI8C,IAAU9C,CACd,OAAe,KAAX8C,EAAuBA,EACvBC,MAAMD,GAAkBA,EACZ,EAATA,EAAa,GAAK,EAG3B,QAAST,GAASxG,GAChB,GAAIrB,IAAOqB,EAAEpB,MACb,OAAIsI,OAAMvI,GAAe,EACb,IAARA,GAAc8H,EAAe9H,IACjCA,EAAMqI,EAAKrI,GAAOwI,KAAKC,MAAMD,KAAKE,IAAI1I,IAC3B,GAAPA,EAAmB,EACnBA,EAAM2I,GAAyBA,GAC5B3I,GAJyCA,EA4ClD,QAAS4I,GAAcC,EAAUC,GAC/BtI,KAAKqI,SAAWA,EAChBrI,KAAKsI,OAASA,EAmDhB,QAASC,GAAcC,EAAWC,GAEhC,MADAC,IAAYF,KAAeA,EAAYG,IAChC,GAAIC,IAAoBH,EAAOD,GAyCxC,QAASK,GAAUR,EAAUC,GAC3BtI,KAAKqI,SAAWA,EAChBrI,KAAKsI,OAASA,EAkGhB,QAASQ,GAAWT,EAAUC,GAC5BtI,KAAKqI,SAAWA,EAChBrI,KAAKsI,OAASA,EA+IhB,QAASS,GAAuBjI,EAAQkI,GACtC,MAAO,IAAIC,IAAoB,SAAUpI,GACvC,GAAIqI,GAAK,GAAIC,IAA8BC,EAAe,GAAIC,GAG9D,OAFAD,GAAaE,cAAcJ,GAC3BA,EAAGI,cAAcxI,EAAOyI,UAAU,GAAIC,IAAc3I,EAAGuI,EAAcJ,KAC9DI,GACNtI,GAiDL,QAAS2I,KAAiB,OAAO,EACjC,QAASC,KAEP,IAAI,GADAlK,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,OAAO+J,GA2oBT,QAASF,KAAiB,OAAO,EAgDjC,QAASA,KAAiB,OAAO,EACjC,QAASG,KAAsB,SAC/B,QAASF,KAEP,IAAI,GADAlK,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,OAAO+J,GAoEX,QAASF,KAAiB,OAAO,EACjC,QAASG,KAAsB,SAC/B,QAASF,KAEP,IAAI,GADAlK,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,OAAO+J,GAmDP,QAASE,GAAa/I,GACpB,MAAO,UAAmBD,GAAK,MAAOC,GAAOyI,UAAU1I,IA2UzD,QAASiJ,GAAcjJ,EAAGyH,GACxBtI,KAAKa,EAAIA,EACTb,KAAK+J,YAAczB,EAAOyB,YAC1B/J,KAAKgK,QAAU1B,EAAO0B,QACtBhK,KAAKiK,KAAO3B,EAAO2B,KACnBjK,KAAKkK,iBAAkB,EACvBlK,KAAKmK,aAAe,KACpBnK,KAAKoK,UAAW,EAChBpK,KAAKqK,WAAY,EA8LnB,QAASC,GAAQX,EAAMnK,GACrB,MAAO,UAAgB+K,GAErB,IAAK,GADDC,GAAcD,EACT3K,EAAI,EAAOJ,EAAJI,EAASA,IAAK,CAC5B,GAAI6K,GAAID,EAAYb,EAAK/J,GACzB,IAAiB,mBAAN6K,GAGT,MAAOpL,EAFPmL,GAAcC,EAKlB,MAAOD,IA4Ob,QAASE,GAAmBC,EAAIC,EAAKC,EAAUlB,GAC7C,GAAI9I,GAAI,GAAIiK,GAKZ,OAHAnB,GAAKjI,KAAKqJ,EAAgBlK,EAAG+J,EAAKC,IAClCF,EAAG5K,MAAM6K,EAAKjB,GAEP9I,EAAEgJ,eAGX,QAASkB,GAAgBlK,EAAG+J,EAAKC,GAC/B,MAAO,YAEL,IAAI,GADArL,GAAMS,UAAUR,OAAQuL,EAAU,GAAIrL,OAAMH,GACxCI,EAAI,EAAOJ,EAAJI,EAASA,IAAOoL,EAAQpL,GAAKK,UAAUL,EAEtD,IAAI0G,GAAWuE,GAAW,CAExB,GADAG,EAAUC,GAASJ,GAAU9K,MAAM6K,EAAKI,GACpCA,IAAY7K,GAAY,MAAOU,GAAEqK,QAAQF,EAAQ9K,EACrDW,GAAEsK,OAAOH,OAELA,GAAQvL,QAAU,EACpBoB,EAAEsK,OAAOH,EAAQ,IAEjBnK,EAAEsK,OAAOH,EAIbnK,GAAEuK,eAsBN,QAASC,GAAqBV,EAAIC,EAAKC,EAAUlB,GAC/C,GAAI9I,GAAI,GAAIiK,GAKZ,OAHAnB,GAAKjI,KAAK4J,EAAkBzK,EAAG+J,EAAKC,IACpCF,EAAG5K,MAAM6K,EAAKjB,GAEP9I,EAAEgJ,eAGX,QAASyB,GAAkBzK,EAAG+J,EAAKC,GACjC,MAAO,YACL,GAAIU,GAAMtL,UAAU,EACpB,IAAIsL,EAAO,MAAO1K,GAAEqK,QAAQK,EAG5B,KAAI,GADA/L,GAAMS,UAAUR,OAAQuL,KACpBpL,EAAI,EAAOJ,EAAJI,EAASA,IAAOoL,EAAQpL,EAAI,GAAKK,UAAUL,EAE1D,IAAI0G,GAAWuE,GAAW,CACxB,GAAIG,GAAUC,GAASJ,GAAU9K,MAAM6K,EAAKI,EAC5C,IAAIA,IAAY7K,GAAY,MAAOU,GAAEqK,QAAQF,EAAQ9K,EACrDW,GAAEsK,OAAOH,OAELA,GAAQvL,QAAU,EACpBoB,EAAEsK,OAAOH,EAAQ,IAEjBnK,EAAEsK,OAAOH,EAIbnK,GAAEuK,eAoBJ,QAASI,GAAiBtL,EAAGuL,EAAGd,GAC9B3K,KAAK0L,GAAKxL,EACVF,KAAK2L,GAAKF,EACVzL,KAAK4L,IAAMjB,EACX3K,KAAK0L,GAAGG,iBAAiB7L,KAAK2L,GAAI3L,KAAK4L,KAAK,GAC5C5L,KAAK8L,YAAa,EASpB,QAASC,GAAqBC,EAAIC,EAAWjD,GAC3C,GAAIkD,GAAc,GAAIC,IAGlBC,EAAehG,OAAOpC,UAAUK,SAASlB,KAAK6I,EAClD,IAAqB,sBAAjBI,GAAyD,4BAAjBA,EAC1C,IAAK,GAAIxM,GAAI,EAAGJ,EAAMwM,EAAGvM,OAAYD,EAAJI,EAASA,IACxCsM,EAAYG,IAAIN,EAAoBC,EAAGM,KAAK1M,GAAIqM,EAAWjD,QAEpDgD,IACTE,EAAYG,IAAI,GAAIb,GAAiBQ,EAAIC,EAAWjD,GAGtD,OAAOkD,GAQT,QAASK,GAAa1L,EAAGgK,GACvB,MAAO,YACL,GAAIG,GAAU/K,UAAU,EACxB,OAAIqG,IAAWuE,KACbG,EAAUC,GAASJ,GAAU9K,MAAM,KAAME,WACrC+K,IAAY7K,IAAmBU,EAAEqK,QAAQF,EAAQ9K,OAEvDW,GAAEsK,OAAOH,IAwTb,QAASwB,GAAoBC,EAASjE,GACpC,MAAO,IAAIS,IAAoB,SAAUZ,GACvC,MAAOG,GAAUkE,qBAAqBD,EAAS,WAC7CpE,EAAS8C,OAAO,GAChB9C,EAAS+C,kBAKf,QAASuB,GAA6BF,EAASG,EAAQpE,GACrD,MAAO,IAAIS,IAAoB,SAAUZ,GACvC,GAAIwE,GAAIJ,EAAShC,EAAIqC,GAAcF,EACnC,OAAOpE,GAAUuE,sCAAsC,EAAGF,EAAG,SAAUnG,EAAOsG,GAC5E,GAAIvC,EAAI,EAAG,CACT,GAAIwC,GAAMzE,EAAUyE,KACpBJ,IAAQpC,EACHwC,GAALJ,IAAaA,EAAII,EAAMxC,GAEzBpC,EAAS8C,OAAOzE,GAChBsG,EAAKtG,EAAQ,EAAGmG,OAKtB,QAASK,GAAwBT,EAASjE,GACxC,MAAO,IAAIS,IAAoB,SAAUZ,GACvC,MAAOG,GAAU2E,qBAAqBL,GAAcL,GAAU,WAC5DpE,EAAS8C,OAAO,GAChB9C,EAAS+C,kBAKf,QAASgC,GAAiCX,EAASG,EAAQpE,GACzD,MAAOiE,KAAYG,EACjB,GAAI3D,IAAoB,SAAUZ,GAChC,MAAOG,GAAU6E,0BAA0B,EAAGT,EAAQ,SAAUlG,GAE9D,MADA2B,GAAS8C,OAAOzE,GACTA,EAAQ,MAGnB4G,GAAgB,WACd,MAAOX,GAA6BnE,EAAUyE,MAAQR,EAASG,EAAQpE,KA6C7E,QAAS+E,GAAwBzM,EAAQ2L,EAASjE,GAChD,MAAO,IAAIS,IAAoB,SAAUpI,GACvC,GAKEuI,GALEoE,GAAS,EACXC,EAAa,GAAIpE,IACjBqE,EAAY,KACZC,KACAC,GAAU,CAsDZ,OApDAxE,GAAetI,EAAO+M,cAAcC,UAAUtF,GAAWe,UAAU,SAAUwE,GAC3E,GAAIlB,GAAGmB,CACyB,OAA5BD,EAAa/I,MAAMiJ,MACrBN,KACAA,EAAEjM,KAAKqM,GACPL,EAAYK,EAAa/I,MAAM0I,UAC/BM,GAAaJ,IAEbD,EAAEjM,MAAOsD,MAAO+I,EAAa/I,MAAO8I,UAAWC,EAAaD,UAAYrB,IACxEuB,GAAaR,EACbA,GAAS,GAEPQ,IACgB,OAAdN,EACF7M,EAAEqK,QAAQwC,IAEVb,EAAI,GAAI1D,IACRsE,EAAWnE,cAAcuD,GACzBA,EAAEvD,cAAcd,EAAU0F,8BAA8BzB,EAAS,SAAUO,GACzE,GAAI9M,GAAGiO,EAAgBtL,EAAQuL,CAC/B,IAAkB,OAAdV,EAAJ,CAGAE,GAAU,CACV,GACE/K,GAAS,KACL8K,EAAElO,OAAS,GAAKkO,EAAE,GAAGG,UAAYtF,EAAUyE,OAAS,IACtDpK,EAAS8K,EAAEU,QAAQrJ,OAEN,OAAXnC,GACFA,EAAOyL,OAAOzN,SAEE,OAAXgC,EACTuL,IAAgB,EAChBD,EAAiB,EACbR,EAAElO,OAAS,GACb2O,GAAgB,EAChBD,EAAiBnG,KAAKuG,IAAI,EAAGZ,EAAE,GAAGG,UAAYtF,EAAUyE,QAExDO,GAAS,EAEXtN,EAAIwN,EACJE,GAAU,EACA,OAAN1N,EACFW,EAAEqK,QAAQhL,GACDkO,GACTpB,EAAKmB,WAMR,GAAIhC,IAAoB/C,EAAcqE,IAC5C3M,GAGL,QAAS0N,GAAwB1N,EAAQ2L,EAASjE,GAChD,MAAO8E,IAAgB,WACrB,MAAOC,GAAwBzM,EAAQ2L,EAAUjE,EAAUyE,MAAOzE,KAItE,QAASiG,GAAkB3N,EAAQ4N,EAAmBC,GACpD,GAAIC,GAAU/D,CAOd,OANIvE,IAAWoI,GACb7D,EAAW6D,GAEXE,EAAWF,EACX7D,EAAW8D,GAEN,GAAI1F,IAAoB,SAAUpI,GAGvC,QAASgO,KACPzF,EAAaE,cAAcxI,EAAOyI,UAChC,SAAUgB,GACR,GAAIuE,GAAQ7D,GAASJ,GAAUN,EAC/B,IAAIuE,IAAU3O,GAAY,MAAOU,GAAEqK,QAAQ4D,EAAM5O,EACjD,IAAI2M,GAAI,GAAI1D,GACZ4F,GAAO1C,IAAIQ,GACXA,EAAEvD,cAAcwF,EAAMvF,UACpB,WACE1I,EAAEsK,OAAOZ,GACTwE,EAAOC,OAAOnC,GACdoC,KAEF,SAAU/O,GAAKW,EAAEqK,QAAQhL,IACzB,WACEW,EAAEsK,OAAOZ,GACTwE,EAAOC,OAAOnC,GACdoC,QAIN,SAAU/O,GAAKW,EAAEqK,QAAQhL,IACzB,WACEgP,GAAQ,EACR9F,EAAa+F,UACbF,OAKN,QAASA,KACPC,GAA2B,IAAlBH,EAAOtP,QAAgBoB,EAAEuK,cAjCpC,GAAI2D,GAAS,GAAI5C,IAAuB+C,GAAQ,EAAO9F,EAAe,GAAIC,GA0C1E,OANKuF,GAGHxF,EAAaE,cAAcsF,EAASrF,UAAUsF,EAAO,SAAU3O,GAAKW,EAAEqK,QAAQhL,IAAO2O,IAFrFA,IAKK,GAAI1C,IAAoB/C,EAAc2F,IAC5C/O,MAyBL,QAASoP,GAAStO,EAAQ2L,EAASjE,GAEjC,MADAE,IAAYF,KAAeA,EAAY6G,IAChC,GAAIpG,IAAoB,SAAUZ,GACvC,GAA2DrD,GAAvDyI,EAAa,GAAIpE,IAAoBiG,GAAW,EAAcC,EAAK,EACnEnG,EAAetI,EAAOyI,UACxB,SAAUgB,GACR+E,GAAW,EACXtK,EAAQuF,EACRgF,GACA,IAAIC,GAAYD,EACd1C,EAAI,GAAI1D,GACVsE,GAAWnE,cAAcuD,GACzBA,EAAEvD,cAAcd,EAAU2E,qBAAqBV,EAAS,WACtD6C,GAAYC,IAAOC,GAAanH,EAAS8C,OAAOnG,GAChDsK,GAAW,MAGf,SAAUpP,GACRuN,EAAW0B,UACX9G,EAAS6C,QAAQhL,GACjBoP,GAAW,EACXC,KAEF,WACE9B,EAAW0B,UACXG,GAAYjH,EAAS8C,OAAOnG,GAC5BqD,EAAS+C,cACTkE,GAAW,EACXC,KAEJ,OAAO,IAAIpD,IAAoB/C,EAAcqE,IAC5CzN,MAGL,QAASyP,GAAqB3O,EAAQ4O,GACpC,MAAO,IAAIzG,IAAoB,SAAUpI,GACvC,GAAImE,GAAOoF,GAAW,EAAOqD,EAAa,GAAIpE,IAAoBkG,EAAK,EACnEnG,EAAetI,EAAOyI,UACxB,SAAUgB,GACR,GAAIoF,GAAW1E,GAASyE,GAAkBnF,EAC1C,IAAIoF,IAAaxP,GAAY,MAAOU,GAAEqK,QAAQyE,EAASzP,EAEvD0P,IAAUD,KAAcA,EAAWE,GAAsBF,IAEzDvF,GAAW,EACXpF,EAAQuF,EACRgF,GACA,IAAIO,GAAYP,EAAI1C,EAAI,GAAI1D,GAC5BsE,GAAWnE,cAAcuD,GACzBA,EAAEvD,cAAcqG,EAASpG,UACvB,WACEa,GAAYmF,IAAOO,GAAajP,EAAEsK,OAAOnG,GACzCoF,GAAW,EACXyC,EAAEsC,WAEJ,SAAUjP,GAAKW,EAAEqK,QAAQhL,IACzB,WACEkK,GAAYmF,IAAOO,GAAajP,EAAEsK,OAAOnG,GACzCoF,GAAW,EACXyC,EAAEsC,cAIR,SAAUjP,GACRuN,EAAW0B,UACXtO,EAAEqK,QAAQhL,GACVkK,GAAW,EACXmF,KAEF,WACE9B,EAAW0B,UACX/E,GAAYvJ,EAAEsK,OAAOnG,GACrBnE,EAAEuK,cACFhB,GAAW,EACXmF,KAGJ,OAAO,IAAIpD,IAAoB/C,EAAcqE,IAC5C3M,GA8BL,QAASiP,GAAiBjP,EAAQkP,GAChC,MAAO,IAAI/G,IAAoB,SAAUpI,GAGvC,QAASoP,KACH7F,IACFA,GAAW,EACXvJ,EAAEsK,OAAOnG,IAEXkK,GAASrO,EAAEuK,cAPb,GAAmBpG,GAAfkK,GAAQ,EAAc9E,GAAW,EAUjC8F,EAAqB,GAAI/G,GAa7B,OAZA+G,GAAmB5G,cAAcxI,EAAOyI,UACtC,SAAU4G,GACR/F,GAAW,EACXpF,EAAQmL,GAEV,SAAUjQ,GAAKW,EAAEqK,QAAQhL,IACzB,WACEgP,GAAQ,EACRgB,EAAmBf,aAIhB,GAAIhD,IACT+D,EACAF,EAAQzG,UAAU0G,EAAiB,SAAU/P,GAAKW,EAAEqK,QAAQhL,IAAO+P,KAEpEnP,GA6BL,QAASsP,GAAoBtP,EAAQuP,EAAcC,EAAyBC,GAO1E,MANIjK,IAAW+J,KACbE,EAAQD,EACRA,EAA0BD,EAC1BA,EAAeG,MAEjBD,IAAUA,EAAQE,GAAgB,GAAIC,MAC/B,GAAIzH,IAAoB,SAAUpI,GAOvC,QAAS8P,GAASC,GAChB,GAAIC,GAAOtB,EAAI1C,EAAI,GAAI1D,GACvB2H,GAAMxH,cAAcuD,GACpBA,EAAEvD,cAAcsH,EAAQrH,UAAU,WAChCgG,IAAOsB,GAAQzH,EAAaE,cAAciH,EAAMhH,UAAU1I,IAC1DgM,EAAEsC,WACD,SAAUjP,GACXqP,IAAOsB,GAAQhQ,EAAEqK,QAAQhL,IACxB,WACDqP,IAAOsB,GAAQzH,EAAaE,cAAciH,EAAMhH,UAAU1I,OAM9D,QAASkQ,KACP,GAAIC,IAAOC,CAEX,OADID,IAAOzB,IACJyB,EAxBT,GAAI5H,GAAe,GAAIC,IAAoByH,EAAQ,GAAIzH,IAAoB6H,EAAW,GAAI/H,GAE1FC,GAAaE,cAAc4H,EAE3B,IAAI3B,GAAK,EAAG0B,GAAW,CAmCvB,OApBAN,GAASN,GAQTa,EAAS5H,cAAcxI,EAAOyI,UAAU,SAAUgB,GAChD,GAAIwG,IAAS,CACXlQ,EAAEsK,OAAOZ,EACT,IAAIqG,GAAU3F,GAASqF,GAAyB/F,EAChD,IAAIqG,IAAYzQ,GAAY,MAAOU,GAAEqK,QAAQ0F,EAAQ1Q,EACrDyQ,GAASf,GAAUgB,GAAWf,GAAsBe,GAAWA,KAEhE,SAAU1Q,GACX6Q,KAAWlQ,EAAEqK,QAAQhL,IACpB,WACD6Q,KAAWlQ,EAAEuK,iBAER,GAAIe,IAAoB/C,EAAc0H,IAC5ChQ,GAGL,QAAS8P,GAAQ9P,EAAQ2L,EAAS8D,EAAO/H,GACvC,GAAa,MAAT+H,EAAiB,KAAM,IAAInO,OAAM,uCACjCsG,IAAY6H,KACd/H,EAAY+H,EACZA,EAAQE,GAAgB,GAAIC,MAE1BH,YAAiBnO,SAASmO,EAAQE,GAAgBF,IACtD7H,GAAYF,KAAeA,EAAY6G,GAEvC,IAAI8B,GAAkB1E,YAAmB2E,MACvC,uBACA,sBAEF,OAAO,IAAInI,IAAoB,SAAUpI,GASvC,QAASwQ,KACP,GAAIR,GAAOtB,CACXuB,GAAMxH,cAAcd,EAAU2I,GAAiB1E,EAAS,WAClD8C,IAAOsB,IACTjB,GAAUW,KAAWA,EAAQV,GAAsBU,IACnDnH,EAAaE,cAAciH,EAAMhH,UAAU1I,QAbjD,GAAI0O,GAAK,EACP2B,EAAW,GAAI/H,IACfC,EAAe,GAAIC,IACnB4H,GAAW,EACXH,EAAQ,GAAIzH,GAiCd,OA/BAD,GAAaE,cAAc4H,GAY3BG,IAEAH,EAAS5H,cAAcxI,EAAOyI,UAAU,SAAUgB,GAC3C0G,IACH1B,IACA1O,EAAEsK,OAAOZ,GACT8G,MAED,SAAUnR,GACN+Q,IACH1B,IACA1O,EAAEqK,QAAQhL,KAEX,WACI+Q,IACH1B,IACA1O,EAAEuK,kBAGC,GAAIe,IAAoB/C,EAAc0H,IAC5ChQ,GAiGL,QAASwQ,IAAoBxQ,EAAQyQ,EAASC,GAC5C,MAAO,IAAIvI,IAAoB,SAAUpI,GAOvC,QAAS4Q,GAAKlH,EAAG3K,GAGf,GAFA8R,EAAO9R,GAAK2K,EACZH,EAASxK,IAAK,EACV+R,IAAgBA,EAAcvH,EAASwH,MAAMC,KAAY,CAC3D,GAAItG,EAAO,MAAO1K,GAAEqK,QAAQK,EAC5B,IAAIyF,GAAM/F,GAASuG,GAAgBzR,MAAM,KAAM2R,EAC/C,IAAIV,IAAQ7Q,GAAY,MAAOU,GAAEqK,QAAQ8F,EAAI9Q,EAC7CW,GAAEsK,OAAO6F,GAEXc,GAAUJ,EAAO,IAAM7Q,EAAEuK,cAf3B,GAIEG,GAJEnB,IAAY,GAAO,GACrBuH,GAAc,EACdG,GAAS,EACTJ,EAAS,GAAI/R,OAAM,EAerB,OAAO,IAAIwM,IACTrL,EAAOyI,UACL,SAAUgB,GACRkH,EAAKlH,EAAG,IAEV,SAAUrK,GACJwR,EAAO,GACT7Q,EAAEqK,QAAQhL,GAEVqL,EAAMrL,GAGV,WACE4R,GAAS,EACTJ,EAAO,IAAM7Q,EAAEuK,gBAEnBmG,EAAQhI,UACN,SAAUgB,GACRkH,EAAKlH,EAAG,IAEV,SAAUrK,GAAKW,EAAEqK,QAAQhL,IACzB,WACE4R,GAAS,EACTL,GAAK,EAAM,OAGhB3Q,GAvzKL,GAAIiR,KACFC,YAAY,EACZpP,QAAU,GAIVqP,GAAcF,SAAmBG,WAAYA,UAAYA,QAAQC,UAAYD,QAC7EE,GAAWL,SAAmB/E,QAASA,KAAK5G,QAAU4G,KACtDqF,GAAaN,SAAmBO,UAAWA,QAAUA,OAAOlM,QAAUkM,OACtEC,GAAaR,SAAmBS,UAAWA,SAAWA,OAAOL,UAAYK,OACzEC,GAAgBF,IAAcA,GAAWL,UAAYD,IAAeA,GACpES,GAAaT,IAAeM,IAA+B,gBAAVI,SAAsBA,QAAUA,OAAOvM,QAAUuM,OAEhGpL,GAAOA,GAAOmL,IAAgBL,MAAgBrS,MAAQA,KAAKsS,SAAYD,IAAeD,IAAYpS,KAElG4S,IACFC,aACAC,QACEC,QAASxL,GAAKwL,SAEhBC,YAIEC,GAAOL,GAAGI,QAAQC,KAAO,aAC3BpB,GAAWe,GAAGI,QAAQnB,SAAW,SAAUtH,GAAK,MAAOA,IACvD2I,GAAaN,GAAGI,QAAQE,WAAa9B,KAAKnE,IAC1CkG,GAAkBP,GAAGI,QAAQG,gBAAkB,SAAU5I,EAAG6I,GAAK,MAAOC,IAAQ9I,EAAG6I,IACnFE,GAAqBV,GAAGI,QAAQM,mBAAqB,SAAU/I,EAAG6I,GAAK,MAAO7I,GAAI6I,EAAI,EAASA,EAAJ7I,EAAQ,GAAK,GAExGgJ,IADuBX,GAAGI,QAAQQ,qBAAuB,SAAUjJ,GAAK,MAAOA,GAAElG,YAClEuO,GAAGI,QAAQO,aAAe,SAAUhI,GAAO,KAAMA,KAChEqE,GAAYgD,GAAGI,QAAQpD,UAAY,SAAUnF,GAAK,QAASA,GAA4B,kBAAhBA,GAAElB,WAA8C,kBAAXkB,GAAEgJ,MAC9GnN,GAAasM,GAAGI,QAAQ1M,WAAc,WAEpC,GAAIoN,GAAO,SAAU1O,GACnB,MAAuB,kBAATA,KAAuB,EAUvC,OANI0O,GAAK,OACPA,EAAO,SAAS1O,GACd,MAAuB,kBAATA,IAA+C,qBAAxBX,GAASlB,KAAK6B,KAIhD0O,KASPvT,IAAYD,MAWZ+K,GAAW2H,GAAGC,UAAU5H,SAAW,SAAkBN,GACvD,IAAKrE,GAAWqE,GAAO,KAAM,IAAI/C,WAAU,wBAC3C,OAAO/H,GAAc8K,GAMvBiI,IAAGE,OAAOa,kBAAmB,CAC7B,IAAInT,KAAY,EAAOI,GAASqK,GAAS,WAAc,KAAM,IAAI7I,UACjE5B,MAAcI,GAAOV,KAAOU,GAAOV,EAAEO,KAGrC,IAAmCuB,IAA/BC,GAAgBE,IAEhBxB,GAAuB,uBAoFvBiT,GAAahB,GAAGgB,WAAa,WAC/B5T,KAAK6T,QAAU,iCACf7T,KAAK8T,KAAO,aACZ1R,MAAMe,KAAKnD,MAEb4T,IAAW5P,UAAYoC,OAAO2N,OAAO3R,MAAM4B,UAE3C,IAAIgQ,IAAsBpB,GAAGoB,oBAAsB,WACjDhU,KAAK6T,QAAU,2BACf7T,KAAK8T,KAAO,sBACZ1R,MAAMe,KAAKnD,MAEbgU,IAAoBhQ,UAAYoC,OAAO2N,OAAO3R,MAAM4B,UAEpD,IAAIiQ,IAA0BrB,GAAGqB,wBAA0B,WACzDjU,KAAK6T,QAAU,wBACf7T,KAAK8T,KAAO,0BACZ1R,MAAMe,KAAKnD,MAEbiU,IAAwBjQ,UAAYoC,OAAO2N,OAAO3R,MAAM4B,UAExD,IAAIkQ,IAAoBtB,GAAGsB,kBAAoB,SAAUL,GACvD7T,KAAK6T,QAAUA,GAAW,kCAC1B7T,KAAK8T,KAAO,oBACZ1R,MAAMe,KAAKnD,MAEbkU,IAAkBlQ,UAAYoC,OAAO2N,OAAO3R,MAAM4B,UAElD,IAAImQ,IAAsBvB,GAAGuB,oBAAsB,SAAUN,GAC3D7T,KAAK6T,QAAUA,GAAW,oCAC1B7T,KAAK8T,KAAO,sBACZ1R,MAAMe,KAAKnD,MAEbmU,IAAoBnQ,UAAYoC,OAAO2N,OAAO3R,MAAM4B,UAEpD,IAAIoQ,IAAiBxB,GAAGI,QAAQoB,eAAiB,WAC/C,KAAM,IAAID,KAGRE,GAAezB,GAAGI,QAAQqB,aAAe,WAC3C,KAAM,IAAIH,KAIRvM,GAAgC,kBAAX2M,SAAyBA,OAAOC,UACvD,oBAEEhN,IAAKiN,KAA+C,mBAAjC,GAAIjN,IAAKiN,KAAM,gBACpC7M,GAAa,aAGf,IAAI8M,IAAiB7B,GAAG6B,gBAAmBxF,MAAM,EAAMjK,MAAO3F,GAE1DqV,GAAa9B,GAAGI,QAAQ0B,WAAa,SAAU7T,GACjD,MAAOA,GAAE8G,MAAgBtI,GAGvBsV,GAAc/B,GAAGI,QAAQ2B,YAAc,SAAU9T,GACnD,MAAOA,IAAKA,EAAEpB,SAAWJ,EAG3BuT,IAAGI,QAAQuB,SAAW5M,EAEtB,IAmDEiN,IAnDEC,GAAejC,GAAGC,UAAUgC,aAAe,SAAUC,EAAMC,EAASC,GACtE,GAAuB,mBAAZD,GAA2B,MAAOD,EAC7C,QAAOE,GACL,IAAK,GACH,MAAO,YACL,MAAOF,GAAK3R,KAAK4R,GAErB,KAAK,GACH,MAAO,UAASE,GACd,MAAOH,GAAK3R,KAAK4R,EAASE,GAE9B,KAAK,GACH,MAAO,UAASjQ,EAAOlB,GACrB,MAAOgR,GAAK3R,KAAK4R,EAAS/P,EAAOlB,GAErC,KAAK,GACH,MAAO,UAASkB,EAAOlB,EAAOoR,GAC5B,MAAOJ,GAAK3R,KAAK4R,EAAS/P,EAAOlB,EAAOoR,IAI9C,MAAO,YACL,MAAOJ,GAAK/U,MAAMgV,EAAS9U,aAK3BuE,IAAa,WACf,iBACA,UACA,iBACA,gBACA,uBACA,eACFT,GAAkBS,GAAU/E,OAGxB+F,GAAY,qBACdQ,GAAa,iBACbN,GAAY,mBACZC,GAAY,gBACZvB,GAAa,iBACb+Q,GAAY,oBACZvP,GAAc,kBACdH,GAAc,kBACdI,GAAc,kBACd1B,GAAc,kBAEZE,GAAW+B,OAAOpC,UAAUK,SAC9BI,GAAiB2B,OAAOpC,UAAUS,eAClC2Q,GAAoB/Q,GAASlB,KAAKlD,YAAcuF,GAEhDhC,GAAapB,MAAM4B,UACnBL,GAAcyC,OAAOpC,UACrBE,GAAc4B,OAAO9B,UACrBqR,GAAuB1R,GAAY0R,oBAErC,KACET,KAAqBvQ,GAASlB,KAAKmS,WAAa7P,OAAmBpB,SAAY,GAAM,KACrF,MAAOnE,IACP0U,IAAmB,EAGrB,GAAIrQ,MACJA,IAAayB,IAAczB,GAAaoB,IAAapB,GAAaqB,KAAiB/B,aAAe,EAAM0R,gBAAkB,EAAMlR,UAAY,EAAMmR,SAAW,GAC7JjR,GAAamB,IAAanB,GAAaJ,KAAiBN,aAAe,EAAMQ,UAAY,EAAMmR,SAAW,GAC1GjR,GAAaH,IAAcG,GAAa4Q,IAAa5Q,GAAasB,KAAiBhC,aAAe,EAAMQ,UAAY,GACpHE,GAAakB,KAAiB5B,aAAe,EAE7C,IAAId,QACH,WACC,GAAIa,GAAO,WAAa5D,KAAKuK,EAAI,GAC/B1F,IAEFjB,GAAKI,WAAcwR,QAAW,EAAGpC,EAAK,EACtC,KAAK,GAAI3P,KAAO,IAAIG,GAAQiB,EAAMnD,KAAK+B,EACvC,KAAKA,IAAOxD,YAGZ8C,GAAQQ,eAAiB8R,GAAqBlS,KAAKK,GAAY,YAAc6R,GAAqBlS,KAAKK,GAAY,QAGnHT,GAAQM,eAAiBgS,GAAqBlS,KAAKS,EAAM,aAGzDb,GAAQC,YAAqB,GAAPS,EAGtBV,GAAQW,gBAAkB,UAAU+R,KAAK5Q,IACzC,EAEF,IAAI/B,IAAW8P,GAAGC,UAAU/P,SAAW,SAASkC,GAC9C,GAAIK,SAAcL,EAClB,OAAOA,KAAkB,YAARK,GAA8B,UAARA,KAAqB,GAgE1DpC,GAAc,SAAS+B,GACzB,MAAQA,IAAyB,gBAATA,GAAqBX,GAASlB,KAAK6B,IAAUQ,IAAY,EAI9E4P,MACHnS,GAAc,SAAS+B,GACrB,MAAQA,IAAyB,gBAATA,GAAqBP,GAAetB,KAAK6B,EAAO,WAAY,GAIxF,IAAIqO,IAAUT,GAAGC,UAAUQ,QAAU,SAAU9I,EAAG6I,GAChD,MAAOnO,GAAWsF,EAAG6I,UA+InBlQ,OADauB,eACL9E,MAAMqE,UAAUd,OAExBwS,GAAW9C,GAAGC,UAAU6C,SAAW,SAAUC,EAAOrN,GACtD,QAASsN,KAAO5V,KAAK6D,YAAc8R,EACnCC,EAAG5R,UAAYsE,EAAOtE,UACtB2R,EAAM3R,UAAY,GAAI4R,IAGpBC,GAAgBjD,GAAGC,UAAUgD,cAAgB,SAAUC,GACzD,IAAI,GAAIC,MAAcnW,EAAI,EAAGJ,EAAMS,UAAUR,OAAYD,EAAJI,EAASA,IAAOmW,EAAQrU,KAAKzB,UAAUL,GAC5F,KAAK,GAAIoW,GAAM,EAAGC,EAAKF,EAAQtW,OAAcwW,EAAND,EAAUA,IAAO,CACtD,GAAIlV,GAASiV,EAAQC,EACrB,KAAK,GAAIE,KAAQpV,GACfgV,EAAII,GAAQpV,EAAOoV,KAwBrB/J,IAlBSyG,GAAGC,UAAUsD,OAAS,SAAUC,EAAIC,GAC/C,MAAO,IAAIpN,IAAoB,SAAUZ,GACvC,MAAO,IAAI8D,IAAoBkK,EAAEC,gBAAiBF,EAAG7M,UAAUlB,OAgBzCuK,GAAGzG,oBAAsB,WACjD,GAAevM,GAAGJ,EAAdmK,IACJ,IAAIhK,MAAM4W,QAAQtW,UAAU,IAC1B0J,EAAO1J,UAAU,GACjBT,EAAMmK,EAAKlK,WAIX,KAFAD,EAAMS,UAAUR,OAChBkK,EAAO,GAAIhK,OAAMH,GACbI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EAEjD,KAAIA,EAAI,EAAOJ,EAAJI,EAASA,IAClB,IAAK4W,GAAa7M,EAAK/J,IAAO,KAAM,IAAIgI,WAAU,mBAEpD5H,MAAKkM,YAAcvC,EACnB3J,KAAK8L,YAAa,EAClB9L,KAAKP,OAASkK,EAAKlK,SAGjBgX,GAA+BtK,GAAoBnI,SAMvDyS,IAA6BpK,IAAM,SAAUC,GACvCtM,KAAK8L,WACPQ,EAAK6C,WAELnP,KAAKkM,YAAYxK,KAAK4K,GACtBtM,KAAKP,WASTgX,GAA6BzH,OAAS,SAAU1C,GAC9C,GAAIoK,IAAgB,CACpB,KAAK1W,KAAK8L,WAAY,CACpB,GAAIkK,GAAMhW,KAAKkM,YAAYxL,QAAQ4L,EACvB,MAAR0J,IACFU,GAAgB,EAChB1W,KAAKkM,YAAYyK,OAAOX,EAAK,GAC7BhW,KAAKP,SACL6M,EAAK6C,WAGT,MAAOuH,IAMTD,GAA6BtH,QAAU,WACrC,IAAKnP,KAAK8L,WAAY,CACpB9L,KAAK8L,YAAa,CAElB,KAAI,GADAtM,GAAMQ,KAAKkM,YAAYzM,OAAQmX,EAAqB,GAAIjX,OAAMH,GAC1DI,EAAI,EAAOJ,EAAJI,EAASA,IAAOgX,EAAmBhX,GAAKI,KAAKkM,YAAYtM,EAIxE,KAHAI,KAAKkM,eACLlM,KAAKP,OAAS,EAETG,EAAI,EAAOJ,EAAJI,EAASA,IACnBgX,EAAmBhX,GAAGuP,WAS5B,IAAI0H,IAAajE,GAAGiE,WAAa,SAAUC,GACzC9W,KAAK8L,YAAa,EAClB9L,KAAK8W,OAASA,GAAU7D,GAI1B4D,IAAW7S,UAAUmL,QAAU,WACxBnP,KAAK8L,aACR9L,KAAK8W,SACL9W,KAAK8L,YAAa,GAStB,IAAIiL,IAAmBF,GAAW9C,OAAS,SAAU+C,GAAU,MAAO,IAAID,IAAWC,IAKjFE,GAAkBH,GAAWI,OAAU9H,QAAS8D,IAOhDuD,GAAeK,GAAWL,aAAe,SAAU3J,GACrD,MAAOA,IAAKvG,GAAWuG,EAAEsC,UAGvB+H,GAAgBL,GAAWK,cAAgB,SAAUC,GACvD,GAAIA,EAAWrL,WAAc,KAAM,IAAIkI,KAIrC7K,GAA6ByJ,GAAGzJ,2BAA6B,WAC/DnJ,KAAK8L,YAAa,EAClB9L,KAAKoX,QAAU,KAEjBjO,IAA2BnF,UAAUsS,cAAgB,WACnD,MAAOtW,MAAKoX,SAEdjO,GAA2BnF,UAAUsF,cAAgB,SAAUtE,GAC7D,GAAIhF,KAAKoX,QAAW,KAAM,IAAIhV,OAAM,uCACpC,IAAIsU,GAAgB1W,KAAK8L,YACxB4K,IAAkB1W,KAAKoX,QAAUpS,GAClC0R,GAAiB1R,GAASA,EAAMmK,WAElChG,GAA2BnF,UAAUmL,QAAU,WAC7C,IAAKnP,KAAK8L,WAAY,CACpB9L,KAAK8L,YAAa,CAClB,IAAIuL,GAAMrX,KAAKoX,OACfpX,MAAKoX,QAAU,KAEjBC,GAAOA,EAAIlI,UAIb,IAAI9F,IAAmBuJ,GAAGvJ,iBAAmB,WAC3CrJ,KAAK8L,YAAa,EAClB9L,KAAKoX,QAAU,KAEjB/N,IAAiBrF,UAAUsS,cAAgB,WACzC,MAAOtW,MAAKoX,SAEd/N,GAAiBrF,UAAUsF,cAAgB,SAAUtE,GACnD,GAAI0R,GAAgB1W,KAAK8L,UACzB,KAAK4K,EAAe,CAClB,GAAIW,GAAMrX,KAAKoX,OACfpX,MAAKoX,QAAUpS,EAEjBqS,GAAOA,EAAIlI,UACXuH,GAAiB1R,GAASA,EAAMmK,WAElC9F,GAAiBrF,UAAUmL,QAAU,WACnC,IAAKnP,KAAK8L,WAAY,CACpB9L,KAAK8L,YAAa,CAClB,IAAIuL,GAAMrX,KAAKoX,OACfpX,MAAKoX,QAAU,KAEjBC,GAAOA,EAAIlI,UAMb,IAuDImI,KAvDqB1E,GAAG2E,mBAAqB,WAE/C,QAASC,GAAgBL,GACvBnX,KAAKmX,WAAaA,EAClBnX,KAAKmX,WAAWzQ,QAChB1G,KAAKyX,iBAAkB,EAmBzB,QAASF,GAAmBJ,GAC1BnX,KAAK0X,qBAAuBP,EAC5BnX,KAAK8L,YAAa,EAClB9L,KAAK2X,mBAAoB,EACzB3X,KAAK0G,MAAQ,EAwBf,MA5CA8Q,GAAgBxT,UAAUmL,QAAU,WAC7BnP,KAAKmX,WAAWrL,YAAe9L,KAAKyX,kBACvCzX,KAAKyX,iBAAkB,EACvBzX,KAAKmX,WAAWzQ,QACc,IAA1B1G,KAAKmX,WAAWzQ,OAAe1G,KAAKmX,WAAWQ,oBACjD3X,KAAKmX,WAAWrL,YAAa,EAC7B9L,KAAKmX,WAAWO,qBAAqBvI,aAoB3CoI,EAAmBvT,UAAUmL,QAAU,WAChCnP,KAAK8L,YAAe9L,KAAK2X,oBAC5B3X,KAAK2X,mBAAoB,EACN,IAAf3X,KAAK0G,QACP1G,KAAK8L,YAAa,EAClB9L,KAAK0X,qBAAqBvI,aAShCoI,EAAmBvT,UAAUsS,cAAgB,WAC3C,MAAOtW,MAAK8L,WAAakL,GAAkB,GAAIQ,GAAgBxX,OAG1DuX,KAGW3E,GAAGC,UAAUyE,cAAgB,SAAU9O,EAAWoP,EAAOd,EAAQrK,EAASoL,GAC5F7X,KAAKwI,UAAYA,EACjBxI,KAAK4X,MAAQA,EACb5X,KAAK8W,OAASA,EACd9W,KAAKyM,QAAUA,EACfzM,KAAK6X,SAAWA,GAAYvE,GAC5BtT,KAAKmX,WAAa,GAAIhO,KAGxBmO,IAActT,UAAU8T,OAAS,WAC/B9X,KAAKmX,WAAW7N,cAActJ,KAAK+X,eAGrCT,GAActT,UAAUgU,UAAY,SAAUzH,GAC5C,MAAOvQ,MAAK6X,SAAS7X,KAAKyM,QAAS8D,EAAM9D,UAG3C6K,GAActT,UAAUiU,YAAc,WACpC,MAAOjY,MAAKmX,WAAWrL,YAGzBwL,GAActT,UAAU+T,WAAa,WACnC,MAAO/X,MAAK8W,OAAO9W,KAAKwI,UAAWxI,KAAK4X,OAI1C,IAAIM,IAAYtF,GAAGsF,UAAa,WAE9B,QAASA,GAAUjL,EAAKkL,EAAUC,EAAkBC,GAClDrY,KAAKiN,IAAMA,EACXjN,KAAKsY,UAAYH,EACjBnY,KAAKuY,kBAAoBH,EACzBpY,KAAKwY,kBAAoBH,EAQ3B,QAASI,GAAajQ,EAAWsO,GAE/B,MADAA,KACOE,GANTkB,EAAUxP,YAAc,SAAU7B,GAChC,MAAOA,aAAaqR,GAQtB,IAAIQ,GAAiBR,EAAUlU,SA4E/B,OArEA0U,GAAeP,SAAW,SAAUrB,GAClC,MAAO9W,MAAKsY,UAAUxB,EAAQ2B,IAShCC,EAAeC,kBAAoB,SAAUf,EAAOd,GAClD,MAAO9W,MAAKsY,UAAUV,EAAOd,IAS/B4B,EAAevL,qBAAuB,SAAUV,EAASqK,GACvD,MAAO9W,MAAKuY,kBAAkBzB,EAAQrK,EAASgM,IAUjDC,EAAeE,6BAA+B,SAAUhB,EAAOnL,EAASqK,GACtE,MAAO9W,MAAKuY,kBAAkBX,EAAOnL,EAASqK,IAShD4B,EAAehM,qBAAuB,SAAUD,EAASqK,GACvD,MAAO9W,MAAKwY,kBAAkB1B,EAAQrK,EAASgM,IAUjDC,EAAeG,6BAA+B,SAAUjB,EAAOnL,EAASqK,GACtE,MAAO9W,MAAKwY,kBAAkBZ,EAAOnL,EAASqK,IAIhDoB,EAAUjL,IAAMiG,GAOhBgF,EAAUY,UAAY,SAAUC,GAE9B,MADW,GAAXA,IAAiBA,EAAW,GACrBA,GAGFb,KAGLpL,GAAgBoL,GAAUY,UAAWpQ,GAAcwP,GAAUxP,aAEhE,SAAUgQ,GAET,QAASM,GAAmBxQ,EAAWyQ,GAKrC,QAASC,GAAYC,GASnB,QAASC,GAAaC,EAAGC,GAOvB,MANIC,GACFC,EAAMxK,OAAOnC,GAEbiF,GAAS,EAEXgF,EAAOwC,EAAQJ,GACRlC,GAfT,GAAIuC,IAAU,EAAOzH,GAAS,EAE1BjF,EAAIrE,EAAUmQ,kBAAkBQ,EAAQC,EACvCtH,KACH0H,EAAMnN,IAAIQ,GACV0M,GAAU,GAVd,GAAI3B,GAAQqB,EAAK,GAAInC,EAASmC,EAAK,GAAIO,EAAQ,GAAIrN,GAEnD,OADA2K,GAAOc,EAAOsB,GACPM,EAuBT,QAASC,GAAcjR,EAAWyQ,EAAMS,GAKtC,QAASR,GAAYC,EAAQQ,GAS3B,QAASP,GAAaC,EAAGC,GAOvB,MANIC,GACFC,EAAMxK,OAAOnC,GAEbiF,GAAS,EAEXgF,EAAOwC,EAAQJ,GACRlC,GAfT,GAAIuC,IAAU,EAAOzH,GAAS,EAE1BjF,EAAIrE,EAAUkR,GAAQP,EAAQQ,EAAUP,EACvCtH,KACH0H,EAAMnN,IAAIQ,GACV0M,GAAU,GAVd,GAAI3B,GAAQqB,EAAK,GAAInC,EAASmC,EAAK,GAAIO,EAAQ,GAAIrN,GAEnD,OADA2K,GAAOc,EAAOsB,GACPM,EAuBT,QAASI,GAAsB/S,EAAG4D,GAChC,MAAOgP,GAAc5S,EAAG4D,EAAG,gCAG7B,QAASoP,GAAsBhT,EAAG4D,GAChC,MAAOgP,GAAc5S,EAAG4D,EAAG,gCAG7B,QAASqP,GAAuBhD,EAAQ9J,GACtC8J,EAAO,SAASiD,GAAM/M,EAAK8J,EAAQiD,KAQrCrB,EAAesB,kBAAoB,SAAUlD,GAC3C,MAAO9W,MAAKia,2BAA2BnD,EAAQgD,IASjDpB,EAAeuB,2BAA6B,SAAUrC,EAAOd,GAC3D,MAAO9W,MAAK2Y,mBAAmBf,EAAOd,GAASkC,IASjDN,EAAexK,8BAAgC,SAAUzB,EAASqK,GAChE,MAAO9W,MAAKka,sCAAsCpD,EAAQrK,EAASqN,IAUrEpB,EAAewB,sCAAwC,SAAUtC,EAAOnL,EAASqK,GAC/E,MAAO9W,MAAKuY,mBAAmBX,EAAOd,GAASrK,EAASmN,IAS1DlB,EAAeyB,8BAAgC,SAAU1N,EAASqK,GAChE,MAAO9W,MAAK+M,sCAAsC+J,EAAQrK,EAASqN,IAUrEpB,EAAe3L,sCAAwC,SAAU6K,EAAOnL,EAASqK,GAC/E,MAAO9W,MAAKwY,mBAAmBZ,EAAOd,GAASrK,EAASoN,KAE1D3B,GAAUlU,WAEX,SAAU0U,GAQTR,GAAUlU,UAAUoW,iBAAmB,SAAUxN,EAAQkK,GACvD,MAAO9W,MAAKqN,0BAA0B,KAAMT,EAAQkK,IAUtDoB,GAAUlU,UAAUqJ,0BAA4B,SAASuK,EAAOhL,EAAQkK,GACtE,GAAgC,mBAArBvP,IAAK8S,YAA+B,KAAM,IAAInG,GACzDtH,GAASE,GAAcF,EACvB,IAAI/F,GAAI+Q,EAAOrI,EAAKhI,GAAK8S,YAAY,WAAcxT,EAAIiQ,EAAOjQ,IAAO+F,EACrE,OAAOmK,IAAiB,WAAcxP,GAAK+S,cAAc/K,OAG3D2I,GAAUlU,UAGZ,IAoEIuW,IAAgBC,GApEhBC,GAAqBvC,GAAUwC,UAAa,WAC9C,QAASC,GAAY/C,EAAOd,GAAU,MAAOA,GAAO9W,KAAM4X,GAC1D,MAAO,IAAIM,IAAUhF,GAAYyH,EAAatG,GAAcA,OAM1D1L,GAAyBuP,GAAU0C,cAAiB,WAGtD,QAASC,KACP,KAAOC,EAAMrb,OAAS,GAAG,CACvB,GAAI6M,GAAOwO,EAAMzM,SAChB/B,EAAK2L,eAAiB3L,EAAKwL,UAIhC,QAAS6C,GAAY/C,EAAOd,GAC1B,GAAIiE,GAAK,GAAIzD,IAActX,KAAM4X,EAAOd,EAAQ9W,KAAKiN,MAErD,IAAK6N,EAOHA,EAAMpZ,KAAKqZ,OAPD,CACVD,GAASC,EAET,IAAIlY,GAASoI,GAAS4P,IAEtB,IADAC,EAAQ,KACJjY,IAAW1C,GAAY,MAAOC,GAAQyC,EAAO3C,GAInD,MAAO6a,GAAG5D,WArBZ,GAAI2D,GAwBAE,EAAmB,GAAI9C,IAAUhF,GAAYyH,EAAatG,GAAcA,GAG5E,OAFA2G,GAAiBC,iBAAmB,WAAc,OAAQH,GAEnDE,KAkCLE,IA/B4BtI,GAAGC,UAAUsI,0BAA6B,WACxE,QAASC,GAAKC,EAASC,GACrBA,EAAQ,EAAGtb,KAAKub,QAChB,KACEvb,KAAKwb,OAASxb,KAAKyb,QAAQzb,KAAKwb,QAChC,MAAOtb,GAEP,KADAF,MAAK0b,QAAQvM,UACPjP,GAIV,QAASib,GAA0B3S,EAAWoP,EAAOhL,EAAQkK,GAC3D9W,KAAK2b,WAAanT,EAClBxI,KAAKwb,OAAS5D,EACd5X,KAAKub,QAAU3O,EACf5M,KAAKyb,QAAU3E,EAWjB,MARAqE,GAA0BnX,UAAU6K,MAAQ,WAC1C,GAAIhC,GAAI,GAAI1D,GAIZ,OAHAnJ,MAAK0b,QAAU7O,EACfA,EAAEvD,cAActJ,KAAK2b,WAAWzB,sCAAsC,EAAGla,KAAKub,QAASH,EAAKQ,KAAK5b,QAE1F6M,GAGFsO,KAKS,WAChB,GAAIU,GAAiBC,EAAoB7I,EACzC,IAAM1L,GAAKwU,WACTF,EAAkBtU,GAAKwU,WACvBD,EAAoBvU,GAAKyU,iBACpB,CAAA,IAAMzU,GAAK0U,QAMhB,KAAM,IAAI/H,GALV2H,GAAkB,SAAUlR,EAAIuR,GAC9B3U,GAAK0U,QAAQE,MAAMD,GACnBvR,KAMJ,OACEoR,WAAYF,EACZG,aAAcF,OAGdD,GAAkBX,GAAWa,WAC/BD,GAAoBZ,GAAWc,cAEhC,WAQC,QAASI,GAAQC,GACf,GAAIC,EACFT,GAAgB,WAAcO,EAAQC,IAAW,OAC5C,CACL,GAAIE,GAAOC,EAAcH,EACzB,IAAIE,EAAM,CACRD,GAAmB,CACnB,IAAIzZ,GAASoI,GAASsR,IAGtB,IAFA/B,GAAY6B,GACZC,GAAmB,EACfzZ,IAAW1C,GAAY,MAAOC,GAAQyC,EAAO3C,KAcvD,QAASuc,KAEP,IAAKlV,GAAKmV,aAAenV,GAAKoV,cAAiB,OAAO,CACtD,IAAIC,IAAU,EAAOC,EAAatV,GAAKuV,SAMvC,OAJAvV,IAAKuV,UAAY,WAAcF,GAAU,GACzCrV,GAAKmV,YAAY,GAAI,KACrBnV,GAAKuV,UAAYD,EAEVD,EAuBP,QAASG,GAAoBC,GAED,gBAAfA,GAAMC,MAAqBD,EAAMC,KAAKC,UAAU,EAAGC,EAAW1d,UAAY0d,GACnFf,EAAQY,EAAMC,KAAKC,UAAUC,EAAW1d,SAjE9C,GAAI2d,GAAa,EAAGZ,KAAoBF,GAAmB,CAE3D9B,IAAc,SAAU6B,SACfG,GAAcH,GAkBvB,IAAIgB,GAAWC,OAAO,IACpBxX,OAAOzB,IACJkZ,QAAQ,sBAAuB,QAC/BA,QAAQ,wBAAyB,OAAS,KAG3CC,EAAiG,mBAA1EA,EAAe9K,IAAcD,IAAiBC,GAAW8K,gBACjFH,EAAS5H,KAAK+H,IAAiBA,CAelC,IAAIlX,GAAWkX,GACbjD,GAAiB,SAAUzD,GACzB,GAAIvH,GAAK6N,GAIT,OAHAZ,GAAcjN,GAAMuH,EACpB0G,EAAa,WAAcpB,EAAQ7M,KAE5BA,OAEJ,IAAuB,mBAAZkO,UAAyD,wBAA3BpZ,SAASlB,KAAKsa,SAC5DlD,GAAiB,SAAUzD,GACzB,GAAIvH,GAAK6N,GAIT,OAHAZ,GAAcjN,GAAMuH,EACpB2G,QAAQC,SAAS,WAActB,EAAQ7M,KAEhCA,OAEJ,IAAIkN,IAAwB,CACjC,GAAIU,GAAa,iBAAmBnV,KAAK2V,QASrCpW,IAAKsE,iBACPtE,GAAKsE,iBAAiB,UAAWkR,GAAqB,GAC7CxV,GAAKqW,YACdrW,GAAKqW,YAAY,YAAab,GAE9BxV,GAAKuV,UAAYC,EAGnBxC,GAAiB,SAAUzD,GACzB,GAAIvH,GAAK6N,GAGT,OAFAZ,GAAcjN,GAAMuH,EACpBvP,GAAKmV,YAAYS,EAAa3N,UAAW,KAClCD,OAEJ,IAAMhI,GAAKsW,eAAgB,CAChC,GAAIC,GAAU,GAAIvW,IAAKsW,cAEvBC,GAAQC,MAAMjB,UAAY,SAAU5c,GAAKkc,EAAQlc,EAAE+c,OAEnD1C,GAAiB,SAAUzD,GACzB,GAAIvH,GAAK6N,GAGT,OAFAZ,GAAcjN,GAAMuH,EACpBgH,EAAQE,MAAMtB,YAAYnN,GACnBA,OAITgL,IAFS,YAAchT,KAAQ,sBAAwBA,IAAK+N,SAAS2I,cAAc,UAElE,SAAUnH,GACzB,GAAIoH,GAAgB3W,GAAK+N,SAAS2I,cAAc,UAC5C1O,EAAK6N,GAUT,OATAZ,GAAcjN,GAAMuH,EAEpBoH,EAAcC,mBAAqB,WACjC/B,EAAQ7M,GACR2O,EAAcC,mBAAqB,KACnCD,EAAcE,WAAWC,YAAYH,GACrCA,EAAgB,MAElB3W,GAAK+N,SAASgJ,gBAAgBC,YAAYL,GACnC3O,GAIQ,SAAUuH,GACzB,GAAIvH,GAAK6N,GAMT,OALAZ,GAAcjN,GAAMuH,EACpB+E,GAAgB,WACdO,EAAQ7M,IACP,GAEIA,KAQb,IA6PIiP,IA7PAnP,GAAmB6I,GAAUtH,QAAUsH,GAAU,WAAa,WAEhE,QAASyC,GAAY/C,EAAOd,GAC1B,GAAItO,GAAYxI,KAAMmX,EAAa,GAAIhO,IACnCoG,EAAKgL,GAAe,YACrBpD,EAAWrL,YAAcqL,EAAW7N,cAAcwN,EAAOtO,EAAWoP,KAEvE,OAAO,IAAIzL,IAAoBgL,EAAYJ,GAAiB,WAC1DyD,GAAYjL,MAIhB,QAAS6I,GAAiBR,EAAOnL,EAASqK,GACxC,GAAItO,GAAYxI,KAAM+Z,EAAK7B,GAAUY,UAAUrM,GAAU0K,EAAa,GAAIhO,GAC1E,IAAW,IAAP4Q,EAAY,MAAOvR,GAAUmQ,kBAAkBf,EAAOd,EAC1D,IAAIvH,GAAKsM,GAAgB,YACtB1E,EAAWrL,YAAcqL,EAAW7N,cAAcwN,EAAOtO,EAAWoP,KACpEmC,EACH,OAAO,IAAI5N,IAAoBgL,EAAYJ,GAAiB,WAC1D+E,GAAkBvM,MAItB,QAAS8I,GAAiBT,EAAOnL,EAASqK,GACxC,MAAO9W,MAAK4Y,6BAA6BhB,EAAOnL,EAAUzM,KAAKiN,MAAO6J,GAGxE,MAAO,IAAIoB,IAAUhF,GAAYyH,EAAavC,EAAkBC,MAM9DoG,GAAe7L,GAAG6L,aAAe,WACnC,QAASA,GAAaxQ,EAAMjJ,EAAO0I,EAAWY,EAAQoQ,EAAkBra,GACtErE,KAAKiO,KAAOA,EACZjO,KAAKgF,MAAQA,EACbhF,KAAK0N,UAAYA,EACjB1N,KAAK2e,QAAUrQ,EACftO,KAAK4e,kBAAoBF,EACzB1e,KAAKqE,SAAWA,EAoClB,MAxBAoa,GAAaza,UAAUsK,OAAS,SAAUuQ,EAAkB3T,EAASE,GACnE,MAAOyT,IAAgD,gBAArBA,GAChC7e,KAAK4e,kBAAkBC,GACvB7e,KAAK2e,QAAQE,EAAkB3T,EAASE,IAU5CqT,EAAaza,UAAU8a,aAAe,SAAUtW,GAC9C,GAAIwE,GAAOhN,IAEX,OADA0I,IAAYF,KAAeA,EAAYiS,IAChC,GAAIxR,IAAoB,SAAUZ,GACvC,MAAOG,GAAUmQ,kBAAkB3L,EAAM,SAAUqM,EAAGtL,GACpDA,EAAa6Q,kBAAkBvW,GACT,MAAtB0F,EAAaE,MAAgB5F,EAAS+C,mBAKrCqT,KAQLM,GAA2BN,GAAaO,aAAgB,WACxD,QAASL,GAAQxT,GAAU,MAAOA,GAAOnL,KAAKgF,OAC9C,QAAS4Z,GAAkBvW,GAAY,MAAOA,GAAS8C,OAAOnL,KAAKgF,OACnE,QAASX,KAAa,MAAO,UAAYrE,KAAKgF,MAAQ,IAEtD,MAAO,UAAUA,GACf,MAAO,IAAIyZ,IAAa,IAAKzZ,EAAO,KAAM2Z,EAASC,EAAmBva,OASxE4a,GAA4BR,GAAaS,cAAiB,WAC5D,QAASP,GAASxT,EAAQD,GAAW,MAAOA,GAAQlL,KAAK0N,WACzD,QAASkR,GAAkBvW,GAAY,MAAOA,GAAS6C,QAAQlL,KAAK0N,WACpE,QAASrJ,KAAc,MAAO,WAAarE,KAAK0N,UAAY,IAE5D,MAAO,UAAUxN,GACf,MAAO,IAAIue,IAAa,IAAK,KAAMve,EAAGye,EAASC,EAAmBva,OAQlE8a,GAAgCV,GAAaW,kBAAqB,WACpE,QAAST,GAASxT,EAAQD,EAASE,GAAe,MAAOA,KACzD,QAASwT,GAAkBvW,GAAY,MAAOA,GAAS+C,cACvD,QAAS/G,KAAc,MAAO,gBAE9B,MAAO,YACL,MAAO,IAAIoa,IAAa,IAAK,KAAM,KAAME,EAASC,EAAmBva,OAOrEgb,GAAWzM,GAAGyM,SAAW,aASzBC,GAAiBD,GAAStL,OAAS,SAAU5I,EAAQD,EAASE,GAIhE,MAHAD,KAAWA,EAAS8H,IACpB/H,IAAYA,EAAUqI,IACtBnI,IAAgBA,EAAc6H,IACvB,GAAIsM,IAAkBpU,EAAQD,EAASE,IAO5CoU,GAAmB5M,GAAGC,UAAU2M,iBAAoB,SAAUC,GAMhE,QAASD,KACPxf,KAAKqK,WAAY,EAoDnB,MA1DAqL,IAAS8J,EAAkBC,GAU3BD,EAAiBxb,UAAUyN,KAAO2C,GAClCoL,EAAiBxb,UAAU1D,MAAQ8T,GACnCoL,EAAiBxb,UAAU0b,UAAYtL,GAMvCoL,EAAiBxb,UAAUmH,OAAS,SAAUnG,IAC3ChF,KAAKqK,WAAarK,KAAKyR,KAAKzM,IAO/Bwa,EAAiBxb,UAAUkH,QAAU,SAAU5K,GACxCN,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKM,MAAMA,KAOfkf,EAAiBxb,UAAUoH,YAAc,WAClCpL,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAK0f,cAOTF,EAAiBxb,UAAUmL,QAAU,WAAcnP,KAAKqK,WAAY,GAEpEmV,EAAiBxb,UAAU2b,KAAO,SAAUzf,GAC1C,MAAKF,MAAKqK,WAMH,GALLrK,KAAKqK,WAAY,EACjBrK,KAAKM,MAAMJ,IACJ,IAMJsf,GACPH,IAKEE,GAAoB3M,GAAG2M,kBAAqB,SAAUE,GASxD,QAASF,GAAkBpU,EAAQD,EAASE,GAC1CqU,EAAUtc,KAAKnD,MACfA,KAAK4f,QAAUzU,EACfnL,KAAK6f,SAAW3U,EAChBlL,KAAK8f,aAAe1U,EA0BtB,MAtCAsK,IAAS6J,EAAmBE,GAmB5BF,EAAkBvb,UAAUyN,KAAO,SAAUzM,GAC3ChF,KAAK4f,QAAQ5a,IAOfua,EAAkBvb,UAAU1D,MAAQ,SAAUA,GAC5CN,KAAK6f,SAASvf,IAMhBif,EAAkBvb,UAAU0b,UAAY,WACtC1f,KAAK8f,gBAGAP,GACPC,IAOEO,GAAanN,GAAGmN,WAAa,WAE/B,QAASC,GAAchT,EAAMzD,GAC3B,MAAO,UAAU1I,GACf,GAAIof,GAAapf,EAAEqK,OAMnB,OALArK,GAAEqK,QAAU,SAAUhL,GACpBG,EAAmBH,EAAG8M,GACtBiT,EAAW9c,KAAKtC,EAAGX,IAGdqJ,EAAUpG,KAAK6J,EAAMnM,IAIhC,QAASkf,GAAWxW,GAClB,GAAIqJ,GAAGE,OAAOa,kBAAoBnT,GAAW,CAC3C,GAAIN,GAAI+K,GAAS7K,GAAS,GAAIgC,QAASlC,CACvCF,MAAKS,MAAQP,EAAEO,MAAMyc,UAAUhd,EAAEO,MAAMC,QAAQ,MAAQ,GACvDV,KAAKkgB,WAAaF,EAAchgB,KAAMuJ,OAEtCvJ,MAAKkgB,WAAa3W,EA0DtB,MAtDAiV,IAAkBuB,EAAW/b,UAO7B+b,EAAWI,aAAe,SAAUtf,GAClC,MAAOA,IAAKyF,GAAWzF,EAAE0I,YAU3BiV,GAAgBjV,UAAYiV,GAAgB4B,QAAU,SAAUC,EAAWnV,EAASE,GAClF,MAAOpL,MAAKkgB,WAAgC,gBAAdG,GAC5BA,EACAf,GAAee,EAAWnV,EAASE,KASvCoT,GAAgB8B,gBAAkB,SAAUnV,EAAQ4J,GAClD,MAAO/U,MAAKkgB,WAAWZ,GAAkC,mBAAZvK,GAA0B,SAASxK,GAAKY,EAAOhI,KAAK4R,EAASxK,IAAQY,KASpHqT,GAAgB+B,iBAAmB,SAAUrV,EAAS6J,GACpD,MAAO/U,MAAKkgB,WAAWZ,GAAe,KAAyB,mBAAZvK,GAA0B,SAAS7U,GAAKgL,EAAQ/H,KAAK4R,EAAS7U,IAAQgL,KAS3HsT,GAAgBgC,qBAAuB,SAAUpV,EAAa2J,GAC5D,MAAO/U,MAAKkgB,WAAWZ,GAAe,KAAM,KAAyB,mBAAZvK,GAA0B,WAAa3J,EAAYjI,KAAK4R,IAAc3J,KAG1H2U,KAGLU,GAAoB7N,GAAGC,UAAU4N,kBAAqB,SAAUhB,GAGlE,QAASgB,GAAkBjY,EAAWH,GACpCoX,EAAUtc,KAAKnD,MACfA,KAAKwI,UAAYA,EACjBxI,KAAKqI,SAAWA,EAChBrI,KAAK0gB,YAAa,EAClB1gB,KAAK2gB,YAAa,EAClB3gB,KAAK8a,SACL9a,KAAKmX,WAAa,GAAI9N,IAiDxB,MA1DAqM,IAAS+K,EAAmBhB,GAY5BgB,EAAkBzc,UAAUyN,KAAO,SAAUzM,GAC3C,GAAIgI,GAAOhN,IACXA,MAAK8a,MAAMpZ,KAAK,WAAcsL,EAAK3E,SAAS8C,OAAOnG,MAGrDyb,EAAkBzc,UAAU1D,MAAQ,SAAUJ,GAC5C,GAAI8M,GAAOhN,IACXA,MAAK8a,MAAMpZ,KAAK,WAAcsL,EAAK3E,SAAS6C,QAAQhL,MAGtDugB,EAAkBzc,UAAU0b,UAAY,WACtC,GAAI1S,GAAOhN,IACXA,MAAK8a,MAAMpZ,KAAK,WAAcsL,EAAK3E,SAAS+C,iBAG9CqV,EAAkBzc,UAAU4c,aAAe,WACzC,GAAIC,IAAU,GACT7gB,KAAK2gB,YAAc3gB,KAAK8a,MAAMrb,OAAS,IAC1CohB,GAAW7gB,KAAK0gB,WAChB1gB,KAAK0gB,YAAa,GAEhBG,GACF7gB,KAAKmX,WAAW7N,cAActJ,KAAKwI,UAAUyR,2BAA2Bja,KAAM,SAAUsI,EAAQ0E,GAC9F,GAAI8T,EACJ,MAAIxY,EAAOwS,MAAMrb,OAAS,GAIxB,YADA6I,EAAOoY,YAAa,EAFpBI,GAAOxY,EAAOwS,MAAMzM,OAKtB,IAAI2C,GAAM/F,GAAS6V,IACnB,OAAI9P,KAAQ7Q,IACVmI,EAAOwS,SACPxS,EAAOqY,YAAa,EACbvgB,EAAQ4Q,EAAI9Q,QAErB8M,GAAK1E,OAKXmY,EAAkBzc,UAAUmL,QAAU,WACpCsQ,EAAUzb,UAAUmL,QAAQhM,KAAKnD,MACjCA,KAAKmX,WAAWhI,WAGXsR,GACPjB,IAEEuB,GAAiBnO,GAAGmO,eAAkB,SAAUtB,GAGlD,QAASuB,GAAcC,GACrB,MAAOA,IAAc3a,GAAW2a,EAAW9R,SAAW8R,EACpD3a,GAAW2a,GAAclK,GAAiBkK,GAAcjK,GAG5D,QAAS1N,GAAczC,EAAG+Q,GACxB,GAAIsJ,GAAMtJ,EAAM,GAAI5K,EAAO4K,EAAM,GAC7BuJ,EAAMlW,GAAS+B,EAAKoU,eAAeje,KAAK6J,EAAMkU,EAElD,OAAIC,KAAQhhB,IACN+gB,EAAIvB,KAAKxf,GAASD,OAExBghB,GAAI5X,cAAc0X,EAAcG,IAFK/gB,EAAQD,GAASD,GAKxD,QAASqJ,GAAUlB,GACjB,GAAI6Y,GAAM,GAAIG,IAAmBhZ,GAAWuP,GAASsJ,EAAKlhB,KAO1D,OALI2I,IAAuBsS,mBACzBtS,GAAuBgQ,kBAAkBf,EAAOtO,GAEhDA,EAAc,KAAMsO,GAEfsJ,EAGT,QAASH,KACPtB,EAAUtc,KAAKnD,KAAMuJ,GAKvB,MAlCAmM,IAASqL,EAAgBtB,GAgCzBsB,EAAe/c,UAAUod,cAAgBhN,GAElC2M,GACPhB,IAEAuB,GAAqB,SAAS7B,GAI9B,QAAS6B,GAAkBxgB,EAAQ+J,EAAU2G,EAAgBuD,GACzD/U,KAAKwR,eAAiBoB,GAAGI,QAAQ1M,WAAWkL,GACxCA,EAAiB,KAErBxR,KAAK6K,SAAW+H,GAAGC,UAAUgC,aAAajC,GAAGI,QAAQ1M,WAAWuE,GAAYA,EAAW,WAAa,MAAOA,IAAakK,EAAS,GACjI/U,KAAKc,OAASA,EAEd2e,EAAUtc,KAAKnD,MAQnB,QAAS8J,GAAczB,EAAUwC,EAAU2G,EAAgB1Q,GACvDd,KAAKJ,EAAI,EACTI,KAAK6K,SAAWA,EAChB7K,KAAKwR,eAAiBA,EACtBxR,KAAKc,OAASA,EACdd,KAAKqK,WAAY,EACjBrK,KAAKa,EAAIwH,EAmCb,MA1DAqN,IAAS4L,EAAmB7B,GAa5B6B,EAAkBtd,UAAUod,cAAgB,SAASvgB,GACjD,MAAOb,MAAKc,OAAOyI,UAAU,GAAIO,GAAcjJ,EAAGb,KAAK6K,SAAU7K,KAAKwR,eAAgBxR,QAY1F8J,EAAc9F,UAAUud,YAAc,SAAS1e,EAAQ0H,EAAG3K,GACtD,MAAOI,MAAKwR,eACR3O,EAAO2e,IAAI,SAASpO,EAAGqO,GAAM,MAAOzhB,MAAKwR,eAAejH,EAAG6I,EAAGxT,EAAG6hB,IAAQzhB,MACzE6C,GAGRiH,EAAc9F,UAAUmH,OAAS,SAASZ,GAEtC,IAAIvK,KAAKqK,UAAT,CAEA,GAAIzK,GAAII,KAAKJ,IACTiD,EAASoI,GAASjL,KAAK6K,UAAUN,EAAG3K,EAAGI,KAAKc,OAEhD,IAAI+B,IAAW1C,GACX,MAAOH,MAAKa,EAAEqK,QAAQrI,EAAO3C,EAGjC0S,IAAGI,QAAQpD,UAAU/M,KAAYA,EAAS+P,GAAGmN,WAAW2B,YAAY7e,KACnE+P,GAAGI,QAAQ2B,YAAY9R,IAAW+P,GAAGI,QAAQ0B,WAAW7R,MAAaA,EAAS+P,GAAGmN,WAAW4B,KAAK9e,IAElG7C,KAAKa,EAAEsK,OAAOnL,KAAKuhB,YAAY1e,EAAQ0H,EAAG3K,MAI9CkK,EAAc9F,UAAUkH,QAAU,SAAShL,GACnCF,KAAKqK,YAAarK,KAAKqK,WAAY,EAAMrK,KAAKa,EAAEqK,QAAQhL,KAGhE4J,EAAc9F,UAAUoH,YAAc,WAC7BpL,KAAKqK,YAAYrK,KAAKqK,WAAY,EAAMrK,KAAKa,EAAEuK,gBAGjDkW,GAETP,IAEIa,GAAahP,GAAGC,UAAU+O,WAAa,aAEvCC,GAA8B,SAASpC,GAEzC,QAASoC,GAA2B9L,GAClC/V,KAAK+V,QAAUA,EACf0J,EAAUtc,KAAKnD,MA4BjB,QAAS8J,GAAcjJ,EAAGgG,EAAG3G,GAC3BF,KAAKa,EAAIA,EACTb,KAAK6G,EAAIA,EACT7G,KAAKE,EAAIA,EACTF,KAAKqK,WAAY,EAyBnB,MA5DAqL,IAASmM,EAA4BpC,GAMrCoC,EAA2B7d,UAAUod,cAAgB,SAAUvgB,GAC7D,GAAIiL,GAAY1C,EAAe,GAAIC,IAC/BoE,EAAagN,GAAmBR,2BAA2Bja,KAAK+V,QAAQpO,MAAe,SAAUzH,EAAG8M,GACtG,IAAIlB,EAAJ,CACA,GAAIgW,GAAc7W,GAAS/K,EAAEuR,MAAMtO,KAAKjD,EACxC,IAAI4hB,IAAgB3hB,GAAY,MAAOU,GAAEqK,QAAQ4W,EAAY5hB,EAE7D,IAAI4hB,EAAY7S,KACd,MAAOpO,GAAEuK,aAIX,IAAI2W,GAAeD,EAAY9c,KAC/B4K,IAAUmS,KAAkBA,EAAelS,GAAsBkS,GAEjE,IAAIlV,GAAI,GAAI1D,GACZC,GAAaE,cAAcuD,GAC3BA,EAAEvD,cAAcyY,EAAaxY,UAAU,GAAIO,GAAcjJ,EAAGmM,EAAM9M,OAGpE,OAAO,IAAIiM,IAAoB/C,EAAcqE,EAAYsJ,GAAiB,WACxEjL,GAAa,MAUjBhC,EAAc9F,UAAUmH,OAAS,SAAUZ,GAASvK,KAAKqK,WAAarK,KAAKa,EAAEsK,OAAOZ,IACpFT,EAAc9F,UAAUkH,QAAU,SAAUK,GACrCvL,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQK,KAGnBzB,EAAc9F,UAAUoH,YAAc,WAC/BpL,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAK6G,EAAE7G,KAAKE,KAGhB4J,EAAc9F,UAAUmL,QAAU,WAAcnP,KAAKqK,WAAY,GACjEP,EAAc9F,UAAU2b,KAAO,SAAUpU,GACvC,MAAKvL,MAAKqK,WAKH,GAJLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQK,IACR,IAKJsW,GACPd,GAEFa,IAAW5d,UAAUge,OAAS,WAC5B,MAAO,IAAIH,IAA2B7hB,MAGxC,IAAIiiB,IAAwB,SAASxC,GAEnC,QAASwC,GAAqBlM,GAC5B/V,KAAK+V,QAAUA,EACf0J,EAAUtc,KAAKnD,MAgCjB,MAnCA0V,IAASuM,EAAsBxC,GAM/BwC,EAAqBje,UAAUod,cAAgB,SAAUvgB,GACvD,GAEIiL,GAFA5L,EAAIF,KAAK+V,QAAQpO,MAELyB,EAAe,GAAIC,IAC/BoE,EAAagN,GAAmBR,2BAA2B,KAAM,SAAUiI,EAAelV,GAC5F,IAAIlB,EAAJ,CACA,GAAIgW,GAAc7W,GAAS/K,EAAEuR,MAAMtO,KAAKjD,EACxC,IAAI4hB,IAAgB3hB,GAAY,MAAOU,GAAEqK,QAAQ4W,EAAY5hB,EAE7D,IAAI4hB,EAAY7S,KACd,MAAyB,QAAlBiT,EAAyBrhB,EAAEqK,QAAQgX,GAAiBrhB,EAAEuK,aAI/D,IAAI2W,GAAeD,EAAY9c,KAC/B4K,IAAUmS,KAAkBA,EAAelS,GAAsBkS,GAEjE,IAAIlV,GAAI,GAAI1D,GACZC,GAAaE,cAAcuD,GAC3BA,EAAEvD,cAAcyY,EAAaxY,UAC3B,SAASgB,GAAK1J,EAAEsK,OAAOZ,IACvByC,EACA,WAAanM,EAAEuK,mBAEnB,OAAO,IAAIe,IAAoB/C,EAAcqE,EAAYsJ,GAAiB,WACxEjL,GAAa,MAIVmW,GACPlB,GAEFa,IAAW5d,UAAUme,WAAa,WAChC,MAAO,IAAIF,IAAqBjiB,OAGlC4hB,GAAW5d,UAAUoe,eAAiB,SAAUC,GAC9C,GAAItM,GAAU/V,IACd,OAAO,IAAIiJ,IAAoB,SAAUpI,GACvC,GAOIiL,GACFoW,EAREI,EAAa,GAAIC,IACnBC,EAAW,GAAID,IACfE,EAAUJ,EAAoBC,GAC9BI,EAAyBD,EAAQlZ,UAAUiZ,GAEzCtiB,EAAI6V,EAAQpO,MAIdyB,EAAe,GAAIC,IACjBoE,EAAagN,GAAmBT,kBAAkB,SAAUhN,GAC9D,IAAIlB,EAAJ,CACA,GAAIgW,GAAc7W,GAAS/K,EAAEuR,MAAMtO,KAAKjD,EACxC,IAAI4hB,IAAgB3hB,GAAY,MAAOU,GAAEqK,QAAQ4W,EAAY5hB,EAE7D,IAAI4hB,EAAY7S,KAMd,YALIiT,EACFrhB,EAAEqK,QAAQgX,GAEVrhB,EAAEuK,cAMN,IAAI2W,GAAeD,EAAY9c,KAC/B4K,IAAUmS,KAAkBA,EAAelS,GAAsBkS,GAEjE,IAAIY,GAAQ,GAAIxZ,IACZyZ,EAAQ,GAAIzZ,GAChBC,GAAaE,cAAc,GAAI6C,IAAoByW,EAAOD,IAC1DA,EAAMrZ,cAAcyY,EAAaxY,UAC/B,SAASgB,GAAK1J,EAAEsK,OAAOZ,IACvB,SAAUsY,GACRD,EAAMtZ,cAAckZ,EAASjZ,UAAUyD,EAAM,SAAS8V,GACpDjiB,EAAEqK,QAAQ4X,IACT,WACDjiB,EAAEuK,iBAGJkX,EAAWnX,OAAO0X,IAEpB,WAAahiB,EAAEuK,mBAGnB,OAAO,IAAIe,IAAoBuW,EAAwBtZ,EAAcqE,EAAYsJ,GAAiB,WAChGjL,GAAa,OAKnB,IAAIiX,IAAoB,SAAUtD,GAGhC,QAASsD,GAAiBC,EAAGC,GAC3BjjB,KAAKgjB,EAAIA,EACThjB,KAAKijB,EAAS,MAALA,EAAY,GAAKA,EAM5B,QAASC,GAAiBzY,GACxBzK,KAAKgjB,EAAIvY,EAAEuY,EACXhjB,KAAKmjB,EAAI1Y,EAAEwY,EAQb,MApBAvN,IAASqN,EAAkBtD,GAM3BsD,EAAiB/e,UAAU2D,IAAc,WACvC,MAAO,IAAIub,GAAiBljB,OAO9BkjB,EAAiBlf,UAAUyN,KAAO,WAChC,MAAe,KAAXzR,KAAKmjB,EAAkB1O,IACvBzU,KAAKmjB,EAAI,GAAKnjB,KAAKmjB,KACdlU,MAAM,EAAOjK,MAAOhF,KAAKgjB,KAG7BD,GACPnB,IAEEwB,GAAmBxB,GAAWyB,OAAS,SAAUre,EAAOse,GAC1D,MAAO,IAAIP,IAAiB/d,EAAOse,IAGjCC,GAAgB,SAAS9D,GAE3B,QAAS8D,GAAa1c,EAAG8D,EAAIoK,GAC3B/U,KAAK6G,EAAIA,EACT7G,KAAK2K,GAAKA,EAAKkK,GAAalK,EAAIoK,EAAS,GAAK,KAMhD,QAASyO,GAAa/Y,GACpBzK,KAAKJ,EAAI,GACTI,KAAK6G,EAAI4D,EAAE5D,EACX7G,KAAKmjB,EAAInjB,KAAK6G,EAAEpH,OAChBO,KAAK2K,GAAKF,EAAEE,GAQd,MArBA+K,IAAS6N,EAAc9D,GAKvB8D,EAAavf,UAAU2D,IAAc,WACnC,MAAO,IAAI6b,GAAaxjB,OAS1BwjB,EAAaxf,UAAUyN,KAAO,WAC7B,QAASzR,KAAKJ,EAAII,KAAKmjB,GACnBlU,MAAM,EAAOjK,MAAQhF,KAAK2K,GAAsB3K,KAAK2K,GAAG3K,KAAK6G,EAAE7G,KAAKJ,GAAII,KAAKJ,EAAGI,KAAK6G,GAAtD7G,KAAK6G,EAAE7G,KAAKJ,IAC7C6U,IAGI8O,GACP3B,IAEE6B,GAAe7B,GAAW8B,GAAK,SAAU5iB,EAAQ+J,EAAUkK;AAC7D,MAAO,IAAIwO,IAAaziB,EAAQ+J,EAAUkK,IAGxC4O,GAAqB,SAASlE,GAEhC,QAASkE,GAAkB7iB,GACzBd,KAAKc,OAASA,EACd2e,EAAUtc,KAAKnD,MAOjB,QAAS8J,GAAcjJ,GACrBb,KAAKa,EAAIA,EACTb,KAAKN,KACLM,KAAKqK,WAAY,EA2BnB,MAxCAqL,IAASiO,EAAmBlE,GAM5BkE,EAAkB3f,UAAUod,cAAgB,SAASvgB,GACnD,MAAOb,MAAKc,OAAOyI,UAAU,GAAIO,GAAcjJ,KAQjDiJ,EAAc9F,UAAUmH,OAAS,SAAUZ,GAASvK,KAAKqK,WAAarK,KAAKN,EAAEgC,KAAK6I,IAClFT,EAAc9F,UAAUkH,QAAU,SAAUhL,GACrCF,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,KAGnB4J,EAAc9F,UAAUoH,YAAc,WAC/BpL,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEsK,OAAOnL,KAAKN,GACnBM,KAAKa,EAAEuK,gBAGXtB,EAAc9F,UAAUmL,QAAU,WAAcnP,KAAKqK,WAAY,GACjEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAMH,GALLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAMJyjB,GACP5C,GAMFvC,IAAgBoF,QAAU,WACxB,MAAO,IAAID,IAAkB3jB,OAY/B+f,GAAWhM,OAAS,SAAUxK,EAAWjB,GACvC,MAAO,IAAIW,IAAoBM,EAAWjB,GAW5C,IAAIgF,IAAkByS,GAAW8D,MAAQ,SAAUC,GACjD,MAAO,IAAI7a,IAAoB,SAAUZ,GACvC,GAAIxF,EACJ,KACEA,EAASihB,IACT,MAAO5jB,GACP,MAAOuQ,IAAgBvQ,GAAGqJ,UAAUlB,GAGtC,MADAuH,IAAU/M,KAAYA,EAASgN,GAAsBhN,IAC9CA,EAAO0G,UAAUlB,MAIxB0b,GAAmB,SAAStE,GAE9B,QAASsE,GAAgBvb,GACvBxI,KAAKwI,UAAYA,EACjBiX,EAAUtc,KAAKnD,MAQjB,QAASgkB,GAAU3b,EAAUG,GAC3BxI,KAAKqI,SAAWA,EAChBrI,KAAKwI,UAAYA,EAGnB,QAASyb,GAAapd,EAAG+Q,GAEvB,MADAA,GAAMxM,cACC4L,GAOT,MAzBAtB,IAASqO,EAAiBtE,GAM1BsE,EAAgB/f,UAAUod,cAAgB,SAAU/Y,GAClD,GAAI6b,GAAO,GAAIF,GAAU3b,EAAUrI,KAAKwI,UACxC,OAAO0b,GAAKC,OAadH,EAAUhgB,UAAUmgB,IAAM,WACxB,MAAOnkB,MAAKwI,UAAUmQ,kBAAkB3Y,KAAKqI,SAAU4b,IAGlDF,GACPhD,IAEEqD,GAAmB,GAAIL,IAAgBtJ,IAWvC4J,GAAkBtE,GAAW9I,MAAQ,SAAUzO,GAEjD,MADAE,IAAYF,KAAeA,EAAYiS,IAChCjS,IAAciS,GAAqB2J,GAAmB,GAAIL,IAAgBvb,IAG/E8b,GAAkB,SAAS7E,GAE7B,QAAS6E,GAAeC,EAAUC,EAAQhc,GACxCxI,KAAKukB,SAAWA,EAChBvkB,KAAKwkB,OAASA,EACdxkB,KAAKwI,UAAYA,EACjBiX,EAAUtc,KAAKnD,MAQjB,MAbA0V,IAAS4O,EAAgB7E,GAQzB6E,EAAetgB,UAAUod,cAAgB,SAAUvgB,GACjD,GAAIqjB,GAAO,GAAIO,IAAS5jB,EAAGb,KAC3B,OAAOkkB,GAAKC,OAGPG,GACPvD,IAEE0D,GAAY,WACd,QAASA,GAAS5jB,EAAGyH,GACnBtI,KAAKa,EAAIA,EACTb,KAAKsI,OAASA,EA4BhB,MAzBAmc,GAASzgB,UAAUmgB,IAAM,WAMvB,QAASO,GAAc9kB,EAAG0b,GACxB,GAAI7J,GAAOxG,GAASvD,EAAG+J,MAAMtO,KAAKuE,EAClC,IAAI+J,IAAStR,GAAY,MAAOU,GAAEqK,QAAQuG,EAAKvR,EAC/C,IAAIuR,EAAKxC,KAAQ,MAAOpO,GAAEuK,aAE1B,IAAIvI,GAAS4O,EAAKzM,KAElB,OAAIsB,IAAWke,KACb3hB,EAASoI,GAASuZ,GAAQ3hB,EAAQjD,GAC9BiD,IAAW1C,IAAmBU,EAAEqK,QAAQrI,EAAO3C,IAGrDW,EAAEsK,OAAOtI,OACTyY,GAAQ1b,EAAI,IAlBd,GAAI+kB,GAAOve,OAAOpG,KAAKsI,OAAOic,UAC1B7c,EAAKD,EAAYkd,GACjB9jB,EAAIb,KAAKa,EACT2jB,EAASxkB,KAAKsI,OAAOkc,MAkBzB,OAAOxkB,MAAKsI,OAAOE,UAAUyR,2BAA2B,EAAGyK,IAGtDD,KAGLtc,GAAiBH,KAAK4c,IAAI,EAAG,IAAM,CAMvChe,GAAe5C,UAAU2D,IAAc,WACrC,MAAO,IAAIZ,GAAe/G,KAAK8G,KASjCC,EAAe/C,UAAU2D,IAAc,WACrC,MAAO3H,OAGT+G,EAAe/C,UAAUyN,KAAO,WAC9B,MAAOzR,MAAKiH,GAAKjH,KAAKgH,IAAOiI,MAAM,EAAOjK,MAAOhF,KAAK8G,GAAG+d,OAAO7kB,KAAKiH,OAAUwN,IAOjFvN,EAAclD,UAAU2D,IAAc,WACpC,MAAO,IAAIP,GAAcpH,KAAKmH,KAShCC,EAAcpD,UAAU2D,IAAc,WACpC,MAAO3H,OAGToH,EAAcpD,UAAUyN,KAAO,WAC7B,MAAOzR,MAAKiH,GAAKjH,KAAKgH,IAAOiI,MAAM,EAAOjK,MAAOhF,KAAKmH,GAAGnH,KAAKiH,OAAUwN,GAiD1E,IAAIqQ,IAAiB/E,GAAW4B,KAAO,SAAU4C,EAAUQ,EAAOhQ,EAASvM,GACzE,GAAgB,MAAZ+b,EACF,KAAM,IAAIniB,OAAM,2BAElB,IAAI2iB,IAAUze,GAAWye,GACvB,KAAM,IAAI3iB,OAAM,yCAElB,IAAI2iB,EACF,GAAIP,GAAS3P,GAAakQ,EAAOhQ,EAAS,EAG5C,OADArM,IAAYF,KAAeA,EAAYG,IAChC,GAAI2b,IAAeC,EAAUC,EAAQhc,IAG1CI,GAAuB,SAAS6W,GAElC,QAAS7W,GAAoBe,EAAMnB,GACjCxI,KAAK2J,KAAOA,EACZ3J,KAAKwI,UAAYA,EACjBiX,EAAUtc,KAAKnD,MAQjB,MAZA0V,IAAS9M,EAAqB6W,GAO9B7W,EAAoB5E,UAAUod,cAAgB,SAAU/Y,GACtD,GAAI6b,GAAO,GAAI9b,GAAcC,EAAUrI,KACvC,OAAOkkB,GAAKC,OAGPvb,GACPmY,GAOF3Y,GAAcpE,UAAUmgB,IAAM,WAE5B,QAASO,GAAc9kB,EAAG0b,GAChB9b,EAAJI,GACFyI,EAAS8C,OAAOxB,EAAK/J,IACrB0b,EAAQ1b,EAAI,IAEZyI,EAAS+C,cANb,GAAI/C,GAAWrI,KAAKqI,SAAUsB,EAAO3J,KAAKsI,OAAOqB,KAAMnK,EAAMmK,EAAKlK,MAUlE,OAAOO,MAAKsI,OAAOE,UAAUyR,2BAA2B,EAAGyK,GAS7D,IAAIM,IAAsBjF,GAAWkF,UAAY,SAAUxc,EAAOD,GAEhE,MADAE,IAAYF,KAAeA,EAAYG,IAChC,GAAIC,IAAoBH,EAAOD,IAGpC0c,GAAmB,SAASzF,GAE9B,QAASyF,KACPzF,EAAUtc,KAAKnD,MAOjB,MATA0V,IAASwP,EAAiBzF,GAK1ByF,EAAgBlhB,UAAUod,cAAgB,SAAU/Y,GAClD,MAAO2O,KAGFkO,GACPnE,IAEEoE,GAAmB,GAAID,IAMvB1U,GAAkBuP,GAAWqF,MAAQ,WACvC,MAAOD,IAYTpF,IAAW2D,GAAK,WAEd,IAAI,GADAlkB,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,OAAO,IAAIgJ,IAAoBe,EAAMhB,KAQvCoX,GAAWsF,gBAAkB,SAAU7c,GAErC,IAAI,GADAhJ,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,EAAM,GAC3CI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,EAAI,GAAKK,UAAUL,EACvD,OAAO,IAAIgJ,IAAoBe,EAAMnB,GAGvC,IAAI8c,IAAmB,SAAS7F,GAE9B,QAAS6F,GAAgBxP,EAAKtN,GAC5BxI,KAAK8V,IAAMA,EACX9V,KAAKulB,KAAOnf,OAAOmf,KAAKzP,GACxB9V,KAAKwI,UAAYA,EACjBiX,EAAUtc,KAAKnD,MAQjB,MAbA0V,IAAS4P,EAAiB7F,GAQ1B6F,EAAgBthB,UAAUod,cAAgB,SAAU/Y,GAClD,GAAI6b,GAAO,GAAIrb,GAAUR,EAAUrI,KACnC,OAAOkkB,GAAKC,OAGPmB,GACPvE,GAOFlY,GAAU7E,UAAUmgB,IAAM,WAExB,QAASO,GAAc9kB,EAAG0b,GACxB,GAAQ9b,EAAJI,EAAS,CACX,GAAI6D,GAAM8hB,EAAK3lB,EACfyI,GAAS8C,QAAQ1H,EAAKqS,EAAIrS,KAC1B6X,EAAQ1b,EAAI,OAEZyI,GAAS+C,cAPb,GAAI/C,GAAWrI,KAAKqI,SAAUyN,EAAM9V,KAAKsI,OAAOwN,IAAKyP,EAAOvlB,KAAKsI,OAAOid,KAAM/lB,EAAM+lB,EAAK9lB,MAWzF,OAAOO,MAAKsI,OAAOE,UAAUyR,2BAA2B,EAAGyK,IAS7D3E,GAAWyF,MAAQ,SAAU1P,EAAKtN,GAEhC,MADAA,KAAcA,EAAYG,IACnB,GAAI2c,IAAgBxP,EAAKtN,GAGhC,IAAIid,IAAmB,SAAShG,GAEhC,QAASgG,GAAgB5W,EAAOnI,EAAO8B,GACrCxI,KAAK6O,MAAQA,EACb7O,KAAK0lB,WAAahf,EAClB1G,KAAKwI,UAAYA,EACjBiX,EAAUtc,KAAKnD,MAQjB,MAbA0V,IAAS+P,EAAiBhG,GAQ1BgG,EAAgBzhB,UAAUod,cAAgB,SAAU/Y,GAClD,GAAI6b,GAAO,GAAIyB,IAAUtd,EAAUrI,KACnC,OAAOkkB,GAAKC,OAGPsB,GACP1E,IAEE4E,GAAa,WACf,QAASA,GAAUtd,EAAUC,GAC3BtI,KAAKqI,SAAWA,EAChBrI,KAAKsI,OAASA,EAiBhB,MAdAqd,GAAU3hB,UAAUmgB,IAAM,WAExB,QAASO,GAAc9kB,EAAG0b,GAChB5U,EAAJ9G,GACFyI,EAAS8C,OAAO0D,EAAQjP,GACxB0b,EAAQ1b,EAAI,IAEZyI,EAAS+C,cANb,GAAIyD,GAAQ7O,KAAKsI,OAAOuG,MAAOnI,EAAQ1G,KAAKsI,OAAOod,WAAYrd,EAAWrI,KAAKqI,QAU/E,OAAOrI,MAAKsI,OAAOE,UAAUyR,2BAA2B,EAAGyK,IAGtDiB,IAUT5F,IAAW6F,MAAQ,SAAU/W,EAAOnI,EAAO8B,GAEzC,MADAE,IAAYF,KAAeA,EAAYG,IAChC,GAAI8c,IAAgB5W,EAAOnI,EAAO8B,GAG3C,IAAIqd,IAAoB,SAASpG,GAE/B,QAASoG,GAAiB7gB,EAAOse,EAAa9a,GAC5CxI,KAAKgF,MAAQA,EACbhF,KAAKsjB,YAA6B,MAAfA,EAAsB,GAAKA,EAC9CtjB,KAAKwI,UAAYA,EACjBiX,EAAUtc,KAAKnD,MAQjB,MAbA0V,IAASmQ,EAAkBpG,GAQ3BoG,EAAiB7hB,UAAUod,cAAgB,SAAU/Y,GACnD,GAAI6b,GAAO,GAAIpb,GAAWT,EAAUrI,KACpC,OAAOkkB,GAAKC,OAGP0B,GACP9E,GAOFjY,GAAW9E,UAAUmgB,IAAM,WAEzB,QAASO,GAAc9kB,EAAG0b,GAKxB,OAJU,KAAN1b,GAAYA,EAAI,KAClByI,EAAS8C,OAAOnG,GAChBpF,EAAI,GAAKA,KAED,IAANA,EAAkByI,EAAS+C,kBAC/BkQ,GAAQ1b,GAPV,GAAIyI,GAAWrI,KAAKqI,SAAUrD,EAAQhF,KAAKsI,OAAOtD,KAUlD,OAAOhF,MAAKsI,OAAOE,UAAUyR,2BAA2Bja,KAAKsI,OAAOgb,YAAaoB,IAUnF3E,GAAWsD,OAAS,SAAUre,EAAOse,EAAa9a,GAEhD,MADAE,IAAYF,KAAeA,EAAYG,IAChC,GAAIkd,IAAiB7gB,EAAOse,EAAa9a,GAGlD,IAAIsd,IAAkB,SAASrG,GAE7B,QAASqG,GAAe9gB,EAAOwD,GAC7BxI,KAAKgF,MAAQA,EACbhF,KAAKwI,UAAYA,EACjBiX,EAAUtc,KAAKnD,MAQjB,QAAS+lB,GAAS1d,EAAUrD,EAAOwD,GACjCxI,KAAKqI,SAAWA,EAChBrI,KAAKgF,MAAQA,EACbhF,KAAKwI,UAAYA,EAGnB,QAASyb,GAAapd,EAAG+Q,GACvB,GAAI5S,GAAQ4S,EAAM,GAAIvP,EAAWuP,EAAM,EAGvC,OAFAvP,GAAS8C,OAAOnG,GAChBqD,EAAS+C,cACF4L,GAUT,MAhCAtB,IAASoQ,EAAgBrG,GAOzBqG,EAAe9hB,UAAUod,cAAgB,SAAU/Y,GACjD,GAAI6b,GAAO,GAAI6B,GAAS1d,EAAUrI,KAAKgF,MAAOhF,KAAKwI,UACnD,OAAO0b,GAAKC,OAgBd4B,EAAS/hB,UAAUmgB,IAAM,WACvB,GAAIvM,IAAS5X,KAAKgF,MAAOhF,KAAKqI,SAC9B,OAAOrI,MAAKwI,YAAciS,GACxBwJ,EAAa,KAAMrM,GACnB5X,KAAKwI,UAAUmQ,kBAAkBf,EAAOqM,IAGrC6B,GACP/E,IAcEiF,IALmBjG,GAAW,UAAYA,GAAWkG,KAAO,SAAUjhB,EAAOwD,GAE/E,MADAE,IAAYF,KAAeA,EAAYiS,IAChC,GAAIqL,IAAe9gB,EAAOwD,IAGZ,SAASiX,GAE9B,QAASuG,GAAgB1lB,EAAOkI,GAC9BxI,KAAKM,MAAQA,EACbN,KAAKwI,UAAYA,EACjBiX,EAAUtc,KAAKnD,MAQjB,QAASkmB,GAAUrlB,EAAG4J,GACpBzK,KAAKa,EAAIA,EACTb,KAAKyK,EAAIA,EAGX,QAASwZ,GAAapd,EAAG+Q,GACvB,GAAI1X,GAAI0X,EAAM,GAAI/W,EAAI+W,EAAM,EAC5B/W,GAAEqK,QAAQhL,GAOZ,MA1BAwV,IAASsQ,EAAiBvG,GAO1BuG,EAAgBhiB,UAAUod,cAAgB,SAAUvgB,GAClD,GAAIqjB,GAAO,GAAIgC,GAAUrlB,EAAGb,KAC5B,OAAOkkB,GAAKC,OAad+B,EAAUliB,UAAUmgB,IAAM,WACxB,MAAOnkB,MAAKyK,EAAEjC,UAAUmQ,mBAAmB3Y,KAAKyK,EAAEnK,MAAON,KAAKa,GAAIojB,IAG7D+B,GACPjF,KASEtQ,GAAkBsP,GAAW,SAAW,SAAUzf,EAAOkI,GAE3D,MADAE,IAAYF,KAAeA,EAAYiS,IAChC,GAAIuL,IAAgB1lB,EAAOkI,IAGhCgB,GAAiB,SAASiW,GAE5B,QAASjW,GAAc3I,EAAGgG,EAAG8D,GAC3B3K,KAAKmmB,GAAKtlB,EACVb,KAAK8G,GAAKD,EACV7G,KAAK4L,IAAMjB,EACX8U,EAAUtc,KAAKnD,MAejB,MApBA0V,IAASlM,EAAeiW,GAQxBjW,EAAcxF,UAAUyN,KAAO,SAAUlH,GAAKvK,KAAKmmB,GAAGhb,OAAOZ,IAC7Df,EAAcxF,UAAU0b,UAAY,WAAc,MAAO1f,MAAKmmB,GAAG/a,eACjE5B,EAAcxF,UAAU1D,MAAQ,SAAUJ,GACxC,GAAI2C,GAASoI,GAASjL,KAAK4L,KAAK1L,EAChC,IAAI2C,IAAW1C,GAAY,MAAOH,MAAKmmB,GAAGjb,QAAQrI,EAAO3C,EACzD0P,IAAU/M,KAAYA,EAASgN,GAAsBhN,GAErD,IAAIgK,GAAI,GAAI1D,GACZnJ,MAAK8G,GAAGwC,cAAcuD,GACtBA,EAAEvD,cAAczG,EAAO0G,UAAUvJ,KAAKmmB,MAGjC3c,GACPgW,GAgBFhB,IAAgB,SAAW,SAAU4H,GACnC,MAAO9f,IAAW8f,GAAmBrd,EAAuB/I,KAAMomB,GAAmBC,IAAiBrmB,KAAMomB,IAQ9G,IAAIC,IAAkBtG,GAAW,SAAW,WAC1C,GAAIuG,EACJ,IAAI3mB,MAAM4W,QAAQtW,UAAU,IAC1BqmB,EAAQrmB,UAAU,OACb,CACL,GAAIT,GAAMS,UAAUR,MACpB6mB,GAAQ,GAAI3mB,OAAMH,EAClB,KAAI,GAAII,GAAI,EAAOJ,EAAJI,EAASA,IAAO0mB,EAAM1mB,GAAKK,UAAUL,GAEtD,MAAO6jB,IAAa6C,GAAOnE,aAY7B3D,IAAgB+H,cAAgB,WAE9B,IAAI,GADA/mB,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EAMnD,OALID,OAAM4W,QAAQ5M,EAAK,IACrBA,EAAK,GAAG5I,QAAQf,MAEhB2J,EAAK5I,QAAQf,MAERumB,GAAcxmB,MAAMC,KAAM2J,GAkBnC,IAAI4c,IAAgBxG,GAAWwG,cAAgB,WAE7C,IAAI,GADA/mB,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,IAAI4R,GAAiBlL,GAAWqD,EAAKnK,EAAM,IAAMmK,EAAKnD,MAAQkD,CAG9D,OAFA/J,OAAM4W,QAAQ5M,EAAK,MAAQA,EAAOA,EAAK,IAEhC,GAAIV,IAAoB,SAAUpI,GAOvC,QAAS4Q,GAAK7R,GAEZ,GADAwK,EAASxK,IAAK,EACV+R,IAAgBA,EAAcvH,EAASwH,MAAMC,KAAY,CAC3D,IACE,GAAIb,GAAMQ,EAAezR,MAAM,KAAM2R,GACrC,MAAOxR,GACP,MAAOW,GAAEqK,QAAQhL,GAEnBW,EAAEsK,OAAO6F,OACAc,GAAO0U,OAAO,SAAUjc,EAAGkc,GAAK,MAAOA,KAAM7mB,IAAMgS,MAAMC,KAClEhR,EAAEuK,cAIN,QAAS6D,GAAMrP,GACbkS,EAAOlS,IAAK,EACZkS,EAAOF,MAAMC,KAAahR,EAAEuK,cAI9B,IAAK,GA1BDK,GAAI9B,EAAKlK,OACX2K,EAAW3D,EAAgBgF,EAAGhC,GAC9BkI,GAAc,EACdG,EAASrL,EAAgBgF,EAAGhC,GAC5BiI,EAAS,GAAI/R,OAAM8L,GAqBjBib,EAAgB,GAAI/mB,OAAM8L,GACrBuK,EAAM,EAASvK,EAANuK,EAASA,KACxB,SAAUpW,GACT,GAAIkB,GAAS6I,EAAK/J,GAAI+mB,EAAM,GAAIxd,GAChCyG,IAAU9O,KAAYA,EAAS+O,GAAsB/O,IACrD6lB,EAAIrd,cAAcxI,EAAOyI,UAAU,SAAUgB,GACzCmH,EAAO9R,GAAK2K,EACZkH,EAAK7R,IAEP,SAASM,GAAKW,EAAEqK,QAAQhL,IACxB,WAAc+O,EAAKrP,MAErB8mB,EAAc9mB,GAAK+mB,GACnB3Q,EAGJ,OAAO,IAAI7J,IAAoBua,IAC9B1mB,MAOLwe,IAAgBwD,OAAS,WACvB,IAAI,GAAIrY,MAAW/J,EAAI,EAAGJ,EAAMS,UAAUR,OAAYD,EAAJI,EAASA,IAAO+J,EAAKjI,KAAKzB,UAAUL,GAEtF,OADA+J,GAAK5I,QAAQf,MACN4mB,GAAiB7mB,MAAM,KAAM4J,GAGtC,IAAIkd,IAAoB,SAASpH,GAE/B,QAASoH,GAAiB9Q,GACxB/V,KAAK+V,QAAUA,EACf0J,EAAUtc,KAAKnD,MAQjB,QAAS8mB,GAAW/Q,EAASlV,GAC3Bb,KAAK+V,QAAUA,EACf/V,KAAKa,EAAIA,EA6BX,MA1CA6U,IAASmR,EAAkBpH,GAM3BoH,EAAiB7iB,UAAUod,cAAgB,SAASvgB,GAClD,GAAIqjB,GAAO,GAAI4C,GAAW9mB,KAAK+V,QAASlV,EACxC,OAAOqjB,GAAKC,OAOd2C,EAAW9iB,UAAUmgB,IAAM,WACzB,GAAIrY,GAAY1C,EAAe,GAAIC,IAAoB0M,EAAU/V,KAAK+V,QAAStW,EAASsW,EAAQtW,OAAQoB,EAAIb,KAAKa,EAC7G4M,EAAagN,GAAmBR,2BAA2B,EAAG,SAAUra,EAAGoN,GAC7E,IAAIlB,EAAJ,CACA,GAAIlM,IAAMH,EACR,MAAOoB,GAAEuK,aAIX,IAAI2W,GAAehM,EAAQnW,EAC3BgQ,IAAUmS,KAAkBA,EAAelS,GAAsBkS,GAEjE,IAAIlV,GAAI,GAAI1D,GACZC,GAAaE,cAAcuD,GAC3BA,EAAEvD,cAAcyY,EAAaxY,UAC3B,SAAUgB,GAAK1J,EAAEsK,OAAOZ,IACxB,SAAUrK,GAAKW,EAAEqK,QAAQhL,IACzB,WAAc8M,EAAKpN,EAAI,QAI3B,OAAO,IAAIuM,IAAoB/C,EAAcqE,EAAYsJ,GAAiB,WACxEjL,GAAa,MAKV+a,GACP9F,IAOE6F,GAAmB7G,GAAWiC,OAAS,WACzC,GAAIrY,EACJ,IAAIhK,MAAM4W,QAAQtW,UAAU,IAC1B0J,EAAO1J,UAAU,OACZ,CACL0J,EAAO,GAAIhK,OAAMM,UAAUR,OAC3B,KAAI,GAAIG,GAAI,EAAGJ,EAAMS,UAAUR,OAAYD,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,GAE7E,MAAO,IAAIinB,IAAiBld,GAO9B6U,IAAgBuI,UAAY,WAC1B,MAAO/mB,MAAKgnB,MAAM,GAGpB,IAAIC,IAAmB,SAAUxH,GAG/B,QAASwH,GAAgBnmB,EAAQomB,GAC/BlnB,KAAKc,OAASA,EACdd,KAAKknB,cAAgBA,EACrBzH,EAAUtc,KAAKnD,MASjB,MAdA0V,IAASuR,EAAiBxH,GAQ1BwH,EAAgBjjB,UAAUod,cAAgB,SAAS/Y,GACjD,GAAI8e,GAAI,GAAIhb,GAEZ,OADAgb,GAAE9a,IAAIrM,KAAKc,OAAOyI,UAAU,GAAI6d,IAAc/e,EAAUrI,KAAKknB,cAAeC,KACrEA,GAGFF,GAEPlG,IAEEqG,GAAiB,WACnB,QAASA,GAAcvmB,EAAG0N,EAAK4Y,GAC7BnnB,KAAKa,EAAIA,EACTb,KAAKuO,IAAMA,EACXvO,KAAKmnB,EAAIA,EACTnnB,KAAKiP,MAAO,EACZjP,KAAK2N,KACL3N,KAAKqnB,YAAc,EACnBrnB,KAAKqK,WAAY,EAyCjB,QAASP,GAAcxB,EAAQqe,GAC7B3mB,KAAKsI,OAASA,EACdtI,KAAK2mB,IAAMA,EACX3mB,KAAKqK,WAAY,EAiCnB,MA3EF+c,GAAcpjB,UAAUsjB,gBAAkB,SAAUlR,GAClD,GAAIuQ,GAAM,GAAIxd,GACdnJ,MAAKmnB,EAAE9a,IAAIsa,GACX/W,GAAUwG,KAAQA,EAAKvG,GAAsBuG,IAC7CuQ,EAAIrd,cAAc8M,EAAG7M,UAAU,GAAIO,GAAc9J,KAAM2mB,MAEzDS,EAAcpjB,UAAUmH,OAAS,SAAUoc,GACrCvnB,KAAKqK,YACJrK,KAAKqnB,YAAcrnB,KAAKuO,KACzBvO,KAAKqnB,cACLrnB,KAAKsnB,gBAAgBC,IAErBvnB,KAAK2N,EAAEjM,KAAK6lB,KAGhBH,EAAcpjB,UAAUkH,QAAU,SAAUhL,GACrCF,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,KAGnBknB,EAAcpjB,UAAUoH,YAAc,WAC/BpL,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKiP,MAAO,EACS,IAArBjP,KAAKqnB,aAAqBrnB,KAAKa,EAAEuK,gBAGrCgc,EAAcpjB,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChE+c,EAAcpjB,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAMH,GALLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAWX4J,EAAc9F,UAAUmH,OAAS,SAAUZ,GAASvK,KAAKqK,WAAarK,KAAKsI,OAAOzH,EAAEsK,OAAOZ,IAC3FT,EAAc9F,UAAUkH,QAAU,SAAUhL,GACrCF,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKsI,OAAOzH,EAAEqK,QAAQhL,KAG1B4J,EAAc9F,UAAUoH,YAAc,WACpC,IAAIpL,KAAKqK,UAAW,CAClBrK,KAAKqK,WAAY,CACjB,IAAI/B,GAAStI,KAAKsI,MAClBA,GAAO6e,EAAEnY,OAAOhP,KAAK2mB,KACjBre,EAAOqF,EAAElO,OAAS,EACpB6I,EAAOgf,gBAAgBhf,EAAOqF,EAAEU,UAEhC/F,EAAO+e,cACP/e,EAAO2G,MAA+B,IAAvB3G,EAAO+e,aAAqB/e,EAAOzH,EAAEuK,iBAI1DtB,EAAc9F,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAMH,GALLrK,KAAKqK,WAAY,EACjBrK,KAAKsI,OAAOzH,EAAEqK,QAAQhL,IACf,IAMJknB,IAiBX5I,IAAgBwI,MAAQ,SAAUQ,GAChC,MAAuC,gBAAzBA,GACZC,GAAgBznB,KAAMwnB,GACtB,GAAIP,IAAgBjnB,KAAMwnB,GAQ9B,IAAIC,IAAkB1H,GAAWiH,MAAQ,WACvC,GAAIxe,GAAyB5I,EAAdmW,KAAiBvW,EAAMS,UAAUR,MAChD,IAAKQ,UAAU,GAGR,GAAIyI,GAAYzI,UAAU,IAE/B,IADAuI,EAAYvI,UAAU,GAClBL,EAAI,EAAOJ,EAAJI,EAASA,IAAOmW,EAAQrU,KAAKzB,UAAUL,QAGlD,KADA4I,EAAYiS,GACR7a,EAAI,EAAOJ,EAAJI,EAASA,IAAOmW,EAAQrU,KAAKzB,UAAUL,QANlD,KADA4I,EAAYiS,GACR7a,EAAI,EAAOJ,EAAJI,EAASA,IAAOmW,EAAQrU,KAAKzB,UAAUL,GAWpD,OAHID,OAAM4W,QAAQR,EAAQ,MACxBA,EAAUA,EAAQ,IAEbxN,EAAaC,EAAWuN,GAAS2R,YAGtCC,GAAiB/U,GAAG+U,eAAiB,SAASC,GAChD5nB,KAAK8T,KAAO,sBACZ9T,KAAK6nB,YAAcD,EACnB5nB,KAAK6T,QAAU,uDACfzR,MAAMe,KAAKnD,MAEb2nB,IAAe3jB,UAAY5B,MAAM4B,UAajC+b,GAAW+H,gBAAkB,WAC3B,GAAIne,EACJ,IAAIhK,MAAM4W,QAAQtW,UAAU,IAC1B0J,EAAO1J,UAAU,OACZ,CACL,GAAIT,GAAMS,UAAUR,MACpBkK,GAAO,GAAIhK,OAAMH,EACjB,KAAI,GAAII,GAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,GAErD,GAAIkB,GAASyH,EAAa,KAAMoB,EAEhC,OAAO,IAAIV,IAAoB,SAAUpI,GAMvC,QAASknB,KACe,IAAlBH,EAAOnoB,OACToB,EAAEuK,cACyB,IAAlBwc,EAAOnoB,OAChBoB,EAAEqK,QAAQ0c,EAAO,IAEjB/mB,EAAEqK,QAAQ,GAAIyc,IAAeC,IAXjC,GAAIpO,GAAQ,GAAIrN,IACd6b,EAAI,GAAI7e,IACRkB,GAAY,EACZud,IA2CF,OA/BApO,GAAMnN,IAAI2b,GAEVA,EAAE1e,cAAcxI,EAAOyI,UACrB,SAAUge,GACR,GAAIU,GAAoB,GAAI9e,GAC5BqQ,GAAMnN,IAAI4b,GAGVrY,GAAU2X,KAAiBA,EAAc1X,GAAsB0X,IAE/DU,EAAkB3e,cAAcie,EAAYhe,UAC1C,SAAUgB,GAAK1J,EAAEsK,OAAOZ,IACxB,SAAUrK,GACR0nB,EAAOlmB,KAAKxB,GACZsZ,EAAMxK,OAAOiZ,GACb5d,GAA8B,IAAjBmP,EAAM/Z,QAAgBsoB,KAErC,WACEvO,EAAMxK,OAAOiZ,GACb5d,GAA8B,IAAjBmP,EAAM/Z,QAAgBsoB,QAGzC,SAAU7nB,GACR0nB,EAAOlmB,KAAKxB,GACZmK,GAAY,EACK,IAAjBmP,EAAM/Z,QAAgBsoB,KAExB,WACE1d,GAAY,EACK,IAAjBmP,EAAM/Z,QAAgBsoB,OAEnBvO,IAIX,IAAI0O,IAAsB,SAAUzI,GAGlC,QAASyI,GAAmBpnB,GAC1Bd,KAAKc,OAASA,EACd2e,EAAUtc,KAAKnD,MAUjB,QAASmoB,GAAiBtnB,EAAGsmB,GAC3BnnB,KAAKa,EAAIA,EACTb,KAAKmnB,EAAIA,EACTnnB,KAAKqK,WAAY,EACjBrK,KAAKiP,MAAO,EAmCd,QAASnF,GAAcxB,EAAQqe,GAC7B3mB,KAAKsI,OAASA,EACdtI,KAAK2mB,IAAMA,EACX3mB,KAAKqK,WAAY,EA4BnB,MApFAqL,IAASwS,EAAoBzI,GAO7ByI,EAAmBlkB,UAAUod,cAAgB,SAAU/Y,GACrD,GAAI8e,GAAI,GAAIhb,IAAuB6b,EAAI,GAAI7e,GAG3C,OAFAge,GAAE9a,IAAI2b,GACNA,EAAE1e,cAActJ,KAAKc,OAAOyI,UAAU,GAAI4e,GAAiB9f,EAAU8e,KAC9DA,GASTgB,EAAiBnkB,UAAUmH,OAAS,SAASoc,GAC3C,IAAGvnB,KAAKqK,UAAR,CACA,GAAIsc,GAAM,GAAIxd,GACdnJ,MAAKmnB,EAAE9a,IAAIsa,GAEX/W,GAAU2X,KAAiBA,EAAc1X,GAAsB0X,IAE/DZ,EAAIrd,cAAcie,EAAYhe,UAAU,GAAIO,GAAc9J,KAAM2mB,OAElEwB,EAAiBnkB,UAAUkH,QAAU,SAAUhL,GACzCF,KAAKqK,YACPrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,KAGnBioB,EAAiBnkB,UAAUoH,YAAc,WACnCpL,KAAKqK,YACPrK,KAAKqK,WAAY,EACjBrK,KAAKiP,MAAO,EACM,IAAlBjP,KAAKmnB,EAAE1nB,QAAgBO,KAAKa,EAAEuK,gBAGlC+c,EAAiBnkB,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GACnE8d,EAAiBnkB,UAAU2b,KAAO,SAAUzf,GAC1C,MAAKF,MAAKqK,WAMH,GALLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAWX4J,EAAc9F,UAAUmH,OAAS,SAAUZ,GAAUvK,KAAKqK,WAAarK,KAAKsI,OAAOzH,EAAEsK,OAAOZ,IAC5FT,EAAc9F,UAAUkH,QAAU,SAAUhL,GACtCF,KAAKqK,YACPrK,KAAKqK,WAAY,EACjBrK,KAAKsI,OAAOzH,EAAEqK,QAAQhL,KAG1B4J,EAAc9F,UAAUoH,YAAc,WACpC,IAAIpL,KAAKqK,UAAW,CAClB,GAAI/B,GAAStI,KAAKsI,MAClBtI,MAAKqK,WAAY,EACjB/B,EAAO6e,EAAEnY,OAAOhP,KAAK2mB,KACrBre,EAAO2G,MAA4B,IAApB3G,EAAO6e,EAAE1nB,QAAgB6I,EAAOzH,EAAEuK,gBAGrDtB,EAAc9F,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAMH,GALLrK,KAAKqK,WAAY,EACjBrK,KAAKsI,OAAOzH,EAAEqK,QAAQhL,IACf,IAMJgoB,GACPnH,GAMFvC,IAAgBkJ,SAAW,WACzB,MAAO,IAAIQ,IAAmBloB,OAQhCwe,GAAgB4J,UAAY,SAAU7X,GACpC,GAAIzP,GAASd,IACb,OAAO,IAAIiJ,IAAoB,SAAUpI,GACvC,GAAIwnB,IAAS,EACTnc,EAAc,GAAIC,IAAoBrL,EAAOyI,UAAU,SAAU+e,GACnED,GAAUxnB,EAAEsK,OAAOmd,IAClB,SAAUpoB,GAAKW,EAAEqK,QAAQhL,IAAO,WACjCmoB,GAAUxnB,EAAEuK,gBAGdwE,IAAUW,KAAWA,EAAQV,GAAsBU,GAEnD,IAAIgY,GAAoB,GAAIpf,GAS5B,OARA+C,GAAYG,IAAIkc,GAChBA,EAAkBjf,cAAciH,EAAMhH,UAAU,WAC9C8e,GAAS,EACTE,EAAkBpZ,WACjB,SAAUjP,GAAKW,EAAEqK,QAAQhL,IAAO,WACjCqoB,EAAkBpZ,aAGbjD,GACNpL,GAGL,IAAI0nB,IAAoB,SAAS/I,GAE/B,QAAS+I,GAAiB1nB,GACxBd,KAAKc,OAASA,EACd2e,EAAUtc,KAAKnD,MAQjB,QAASyoB,GAAe5nB,EAAG+hB,GACzB5iB,KAAKa,EAAIA,EACTb,KAAK4iB,MAAQA,EACb5iB,KAAK0oB,SAAU,EACf1oB,KAAK2oB,OAAS,EACd3oB,KAAK4oB,WAAY,EACjB5oB,KAAKqK,WAAY,EAiCnB,QAASP,GAAcxB,EAAQiH,GAC7BvP,KAAKsI,OAASA,EACdtI,KAAKuP,GAAKA,EACVvP,KAAKqK,WAAY,EA+BnB,MApFAqL,IAAS8S,EAAkB/I,GAM3B+I,EAAiBxkB,UAAUod,cAAgB,SAAUvgB,GACnD,GAAI+hB,GAAQ,GAAIvZ,IAAoBxC,EAAI7G,KAAKc,OAAOyI,UAAU,GAAIkf,GAAe5nB,EAAG+hB,GACpF,OAAO,IAAIzW,IAAoBtF,EAAG+b,IAWpC6F,EAAezkB,UAAUmH,OAAS,SAAUoc,GAC1C,IAAIvnB,KAAKqK,UAAT,CACA,GAAIwC,GAAI,GAAI1D,IAA8BoG,IAAOvP,KAAK2oB,MACtD3oB,MAAK4oB,WAAY,EACjB5oB,KAAK4iB,MAAMtZ,cAAcuD,GACzB+C,GAAU2X,KAAiBA,EAAc1X,GAAsB0X,IAC/D1a,EAAEvD,cAAcie,EAAYhe,UAAU,GAAIO,GAAc9J,KAAMuP,OAEhEkZ,EAAezkB,UAAUkH,QAAU,SAAUhL,GACtCF,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,KAGnBuoB,EAAezkB,UAAUoH,YAAc,WAChCpL,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAK0oB,SAAU,GACd1oB,KAAK4oB,WAAa5oB,KAAKa,EAAEuK,gBAG9Bqd,EAAezkB,UAAUmL,QAAU,WAAcnP,KAAKqK,WAAY,GAClEoe,EAAezkB,UAAU2b,KAAO,SAAUzf,GACxC,MAAIF,MAAKqK,WAKF,GAJLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAUX4J,EAAc9F,UAAUmH,OAAS,SAAUZ,GACrCvK,KAAKqK,WACTrK,KAAKsI,OAAOqgB,SAAW3oB,KAAKuP,IAAMvP,KAAKsI,OAAOzH,EAAEsK,OAAOZ,IAEzDT,EAAc9F,UAAUkH,QAAU,SAAUhL,GACrCF,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKsI,OAAOqgB,SAAW3oB,KAAKuP,IAAMvP,KAAKsI,OAAOzH,EAAEqK,QAAQhL,KAG5D4J,EAAc9F,UAAUoH,YAAc,WAC/BpL,KAAKqK,YACRrK,KAAKqK,WAAY,EACbrK,KAAKsI,OAAOqgB,SAAW3oB,KAAKuP,KAC9BvP,KAAKsI,OAAOsgB,WAAY,EACxB5oB,KAAKsI,OAAO+B,WAAarK,KAAKsI,OAAOzH,EAAEuK,iBAI7CtB,EAAc9F,UAAUmL,QAAU,WAAcnP,KAAKqK,WAAY,GACjEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAIF,MAAKqK,WAKF,GAJLrK,KAAKqK,WAAY,EACjBrK,KAAKsI,OAAOzH,EAAEqK,QAAQhL,IACf,IAKJsoB,GACPzH,GAMFvC,IAAgB,UAAYA,GAAgBqK,aAAe,WACzD,MAAO,IAAIL,IAAiBxoB,MAG9B,IAAI8oB,IAAuB,SAASrJ,GAGlC,QAASqJ,GAAoBhoB,EAAQyP,GACnCvQ,KAAKc,OAASA,EACdd,KAAKuQ,MAAQX,GAAUW,GAASV,GAAsBU,GAASA,EAC/DkP,EAAUtc,KAAKnD,MAUjB,QAAS8J,GAAcjJ,GACrBb,KAAKa,EAAIA,EACTb,KAAKqK,WAAY,EAyBnB,MA1CAqL,IAASoT,EAAqBrJ,GAQ9BqJ,EAAoB9kB,UAAUod,cAAgB,SAASvgB,GACrD,MAAO,IAAIsL,IACTnM,KAAKc,OAAOyI,UAAU1I,GACtBb,KAAKuQ,MAAMhH,UAAU,GAAIO,GAAcjJ,MAQ3CiJ,EAAc9F,UAAUmH,OAAS,SAAUZ,GACrCvK,KAAKqK,WACTrK,KAAKa,EAAEuK,eAETtB,EAAc9F,UAAUkH,QAAU,SAAUK,GACrCvL,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQK,KAGnBzB,EAAc9F,UAAUoH,YAAc,YACnCpL,KAAKqK,YAAcrK,KAAKqK,WAAY,IAEvCP,EAAc9F,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAKH,GAJLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAKJ4oB,GACP/H,GAOFvC,IAAgBuK,UAAY,SAAUxY,GACpC,MAAO,IAAIuY,IAAoB9oB,KAAMuQ,IASvCiO,GAAgBwK,eAAiB,WAE/B,IAAI,GADAxpB,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,IAAI4R,GAAiB7H,EAAKnD,MAAO1F,EAASd,IAG1C,OAFAL,OAAM4W,QAAQ5M,EAAK,MAAQA,EAAOA,EAAK,IAEhC,GAAIV,IAAoB,SAAUZ,GAOvC,IAAK,GANDoD,GAAI9B,EAAKlK,OACX2K,EAAW3D,EAAgBgF,EAAGhC,GAC9BkI,GAAc,EACdD,EAAS,GAAI/R,OAAM8L,GAEjBib,EAAgB,GAAI/mB,OAAM8L,EAAI,GACzBuK,EAAM,EAASvK,EAANuK,EAASA,KACxB,SAAUpW,GACT,GAAI2Q,GAAQ5G,EAAK/J,GAAI+mB,EAAM,GAAIxd,GAC/ByG,IAAUW,KAAWA,EAAQV,GAAsBU,IACnDoW,EAAIrd,cAAciH,EAAMhH,UAAU,SAAUgB,GAC1CmH,EAAO9R,GAAK2K,EACZH,EAASxK,IAAK,EACd+R,EAAcvH,EAASwH,MAAMC,KAC5B,SAAU3R,GAAKmI,EAAS6C,QAAQhL,IAAO+S,KAC1CyT,EAAc9mB,GAAK+mB,GACnB3Q,EAGJ,IAAI2Q,GAAM,GAAIxd,GAYd,OAXAwd,GAAIrd,cAAcxI,EAAOyI,UAAU,SAAUgB,GAC3C,GAAI0e,IAAa1e,GAAGyX,OAAOtQ,EAC3B,IAAKC,EAAL,CACA,GAAIX,GAAM/F,GAASuG,GAAgBzR,MAAM,KAAMkpB,EAC/C,OAAIjY,KAAQ7Q,GAAmBkI,EAAS6C,QAAQ8F,EAAI9Q,OACpDmI,GAAS8C,OAAO6F,KACf,SAAU9Q,GAAKmI,EAAS6C,QAAQhL,IAAO,WACxCmI,EAAS+C,iBAEXsb,EAAcjb,GAAKkb,EAEZ,GAAIxa,IAAoBua,IAC9B1mB,OAgBLwe,GAAgB0K,IAAM,WACpB,GAAyB,IAArBjpB,UAAUR,OAAgB,KAAM,IAAI2C,OAAM,oBAG9C,KAAI,GADA5C,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,IAAI4R,GAAiBlL,GAAWqD,EAAKnK,EAAM,IAAMmK,EAAKnD,MAAQkD,CAC9D/J,OAAM4W,QAAQ5M,EAAK,MAAQA,EAAOA,EAAK,GAEvC,IAAIrB,GAAStI,IAEb,OADA2J,GAAK5I,QAAQuH,GACN,GAAIW,IAAoB,SAAUpI,GAMvC,IAAK,GALD4K,GAAI9B,EAAKlK,OACX0pB,EAAS1iB,EAAgBgF,EAAG7B,GAC5BkI,EAASrL,EAAgBgF,EAAGhC,GAE1Bid,EAAgB,GAAI/mB,OAAM8L,GACrBuK,EAAM,EAASvK,EAANuK,EAASA,KACzB,SAAWpW,GACT,GAAIkB,GAAS6I,EAAK/J,GAAI+mB,EAAM,GAAIxd,GAEhCyG,IAAU9O,KAAYA,EAAS+O,GAAsB/O,IAErD6lB,EAAIrd,cAAcxI,EAAOyI,UAAU,SAAUgB,GAE3C,GADA4e,EAAOvpB,GAAG8B,KAAK6I,GACX4e,EAAOvX,MAAM,SAAUrH,GAAK,MAAOA,GAAE9K,OAAS,IAAO,CACvD,GAAI2pB,GAAeD,EAAO3H,IAAI,SAAUjX,GAAK,MAAOA,GAAE8D,UAClD2C,EAAM/F,GAASuG,GAAgBzR,MAAMuI,EAAQ8gB,EACjD,IAAIpY,IAAQ7Q,GAAY,MAAOU,GAAEqK,QAAQ8F,EAAI9Q,EAC7CW,GAAEsK,OAAO6F,OACAc,GAAO0U,OAAO,SAAUjc,EAAGkc,GAAK,MAAOA,KAAM7mB,IAAMgS,MAAMC,KAClEhR,EAAEuK,eAEH,SAAUlL,GAAKW,EAAEqK,QAAQhL,IAAO,WACjC4R,EAAOlS,IAAK,EACZkS,EAAOF,MAAMC,KAAahR,EAAEuK,iBAE9Bsb,EAAc9mB,GAAK+mB,GAClB3Q,EAGL,OAAO,IAAI7J,IAAoBua,IAC9Bpe,IASLyX,GAAWmJ,IAAM,WAEf,IAAI,GADA1pB,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EAC/CD,OAAM4W,QAAQ5M,EAAK,MACrBA,EAAOrD,GAAWqD,EAAK,IAAMA,EAAK,GAAGqY,OAAOrY,EAAK,IAAMA,EAAK,GAE9D,IAAI0f,GAAQ1f,EAAK0E,OACjB,OAAOgb,GAAMH,IAAInpB,MAAMspB,EAAO1f,IAgBlC6U,GAAgB8K,YAAc,WAC5B,GAAyB,IAArBrpB,UAAUR,OAAgB,KAAM,IAAI2C,OAAM,oBAG9C,KAAI,GADA5C,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,IAAI4R,GAAiBlL,GAAWqD,EAAKnK,EAAM,IAAMmK,EAAKnD,MAAQkD,EAE1DpB,EAAStI,IAEb,OADA2J,GAAK5I,QAAQuH,GACN,GAAIW,IAAoB,SAAUpI,GAMvC,IAAK,GALD4K,GAAI9B,EAAKlK,OACX0pB,EAAS1iB,EAAgBgF,EAAG7B,GAC5BkI,EAASrL,EAAgBgF,EAAGhC,GAE1Bid,EAAgB,GAAI/mB,OAAM8L,GACrBuK,EAAM,EAASvK,EAANuK,EAASA,KACzB,SAAWpW,GACT,GAAIkB,GAAS6I,EAAK/J,GAAI+mB,EAAM,GAAIxd,KAE/BwL,GAAY7T,IAAW4T,GAAW5T,MAAaA,EAASgkB,GAAehkB,IAExE6lB,EAAIrd,cAAcxI,EAAOyI,UAAU,SAAUgB,GAE3C,GADA4e,EAAOvpB,GAAG8B,KAAK6I,GACX4e,EAAOvX,MAAM,SAAUrH,GAAK,MAAOA,GAAE9K,OAAS,IAAO,CACvD,GAAI2pB,GAAeD,EAAO3H,IAAI,SAAUjX,GAAK,MAAOA,GAAE8D,UAClD2C,EAAM/F,GAASuG,GAAgBzR,MAAMuI,EAAQ8gB,EACjD,IAAIpY,IAAQ7Q,GAAY,MAAOU,GAAEqK,QAAQ8F,EAAI9Q,EAC7CW,GAAEsK,OAAO6F,OACAc,GAAO0U,OAAO,SAAUjc,EAAGkc,GAAK,MAAOA,KAAM7mB,IAAMgS,MAAMC,KAClEhR,EAAEuK,eAEH,SAAUlL,GAAKW,EAAEqK,QAAQhL,IAAO,WACjC4R,EAAOlS,IAAK,EACZkS,EAAOF,MAAMC,KAAahR,EAAEuK,iBAE9Bsb,EAAc9mB,GAAK+mB,GAClB3Q,EAGL,OAAO,IAAI7J,IAAoBua,IAC9Bpe,IAWHkW,GAAgB3U,aAAe,WAC7B,MAAO,IAAIZ,IAAoBY,EAAa7J,MAAOA,OAOrDwe,GAAgB+K,cAAgB,WAC9B,GAAIzoB,GAASd,IACb,OAAO,IAAIiJ,IAAoB,SAAUpI,GACvC,MAAOC,GAAOyI,UAAU,SAAUgB,GAAK,MAAOA,GAAE+D,OAAOzN,IAAO,SAASX,GAAKW,EAAEqK,QAAQhL,IAAO,WAAcW,EAAEuK,iBAC5GpL,MAGL,IAAIwpB,IAAkC,SAAS/J,GAE7C,QAAS+J,GAA+B1oB,EAAQ2oB,EAAO5R,GACrD7X,KAAKc,OAASA,EACdd,KAAKypB,MAAQA,EACbzpB,KAAK6X,SAAWA,EAChB4H,EAAUtc,KAAKnD,MAOjB,MAZA0V,IAAS8T,EAAgC/J,GAQzC+J,EAA+BxlB,UAAUod,cAAgB,SAAUvgB,GACjE,MAAOb,MAAKc,OAAOyI,UAAU,GAAImgB,IAA6B7oB,EAAGb,KAAKypB,MAAOzpB,KAAK6X,YAG7E2R,GACPzI,IAEE2I,GAAgC,SAASjK,GAE3C,QAASiK,GAA6B7oB,EAAG4oB,EAAO5R,GAC9C7X,KAAKa,EAAIA,EACTb,KAAKypB,MAAQA,EACbzpB,KAAK6X,SAAWA,EAChB7X,KAAK2pB,eAAgB,EACrB3pB,KAAK4pB,WAAa,KAClBnK,EAAUtc,KAAKnD,MA0BjB,MAjCA0V,IAASgU,EAA8BjK,GAUvCiK,EAA6B1lB,UAAUyN,KAAO,SAAUlH,GACtD,GAAasf,GAATpmB,EAAM8G,CACV,OAAIjE,IAAWtG,KAAKypB,SAClBhmB,EAAMwH,GAASjL,KAAKypB,OAAOlf,GACvB9G,IAAQtD,IAAmBH,KAAKa,EAAEqK,QAAQzH,EAAIvD,GAEhDF,KAAK2pB,gBACPE,EAAiB5e,GAASjL,KAAK6X,UAAU7X,KAAK4pB,WAAYnmB,GACtDomB,IAAmB1pB,IAAmBH,KAAKa,EAAEqK,QAAQ2e,EAAe3pB,QAErEF,KAAK2pB,eAAkBE,IAC1B7pB,KAAK2pB,eAAgB,EACrB3pB,KAAK4pB,WAAanmB,EAClBzD,KAAKa,EAAEsK,OAAOZ,MAGlBmf,EAA6B1lB,UAAU1D,MAAQ,SAASJ,GACtDF,KAAKa,EAAEqK,QAAQhL,IAEjBwpB,EAA6B1lB,UAAU0b,UAAY,WACjD1f,KAAKa,EAAEuK,eAGFse,GACPlK,GAQFhB,IAAgBsL,qBAAuB,SAAUL,EAAO5R,GAEtD,MADAA,KAAaA,EAAW1E,IACjB,GAAIqW,IAA+BxpB,KAAMypB,EAAO5R,GAGzD,IAAIkS,IAAiB,SAAStK,GAE5B,QAASsK,GAAcjpB,EAAQ+d,EAAkB3T,EAASE,GACxDpL,KAAKc,OAASA,EACdd,KAAKgqB,IAAMnL,EACX7e,KAAKiqB,IAAM/e,EACXlL,KAAKkqB,IAAM9e,EACXqU,EAAUtc,KAAKnD,MAOjB,QAAS8J,GAAcjJ,EAAG4J,GACxBzK,KAAKa,EAAIA,EACTb,KAAKmqB,GAAK1f,EAAEuf,KAAO1jB,GAAWmE,EAAEuf,KAC9B1K,GAAe7U,EAAEuf,KAAO/W,GAAMxI,EAAEwf,KAAOhX,GAAMxI,EAAEyf,KAAOjX,IACtDxI,EAAEuf,IACJhqB,KAAKqK,WAAY,EAkCnB,MApDAqL,IAASqU,EAActK,GASvBsK,EAAc/lB,UAAUod,cAAgB,SAASvgB,GAC/C,MAAOb,MAAKc,OAAOyI,UAAU,GAAIO,GAAcjJ,EAAGb,QAUpD8J,EAAc9F,UAAUmH,OAAS,SAASZ,GACxC,IAAIvK,KAAKqK,UAAT,CACA,GAAI2G,GAAM/F,GAASjL,KAAKmqB,EAAEhf,QAAQhI,KAAKnD,KAAKmqB,EAAG5f,EAC3CyG,KAAQ7Q,IAAYH,KAAKa,EAAEqK,QAAQ8F,EAAI9Q,GAC3CF,KAAKa,EAAEsK,OAAOZ,KAEhBT,EAAc9F,UAAUkH,QAAU,SAASK,GACzC,IAAKvL,KAAKqK,UAAW,CACnBrK,KAAKqK,WAAY,CACjB,IAAI2G,GAAM/F,GAASjL,KAAKmqB,EAAEjf,SAAS/H,KAAKnD,KAAKmqB,EAAG5e,EAChD,IAAIyF,IAAQ7Q,GAAY,MAAOH,MAAKa,EAAEqK,QAAQ8F,EAAI9Q,EAClDF,MAAKa,EAAEqK,QAAQK,KAGnBzB,EAAc9F,UAAUoH,YAAc,WACpC,IAAKpL,KAAKqK,UAAW,CACnBrK,KAAKqK,WAAY,CACjB,IAAI2G,GAAM/F,GAASjL,KAAKmqB,EAAE/e,aAAajI,KAAKnD,KAAKmqB,EACjD,IAAInZ,IAAQ7Q,GAAY,MAAOH,MAAKa,EAAEqK,QAAQ8F,EAAI9Q,EAClDF,MAAKa,EAAEuK,gBAGXtB,EAAc9F,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAKH,GAJLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAKJ6pB,GACPhJ,GAUFvC,IAAgB,MAAQA,GAAgB4L,IAAM5L,GAAgB6L,SAAW,SAAUxL,EAAkB3T,EAASE,GAC5G,MAAO,IAAI2e,IAAc/pB,KAAM6e,EAAkB3T,EAASE,IAU5DoT,GAAgB8L,SAAW9L,GAAgB+L,UAAY,SAAUpf,EAAQ4J,GACvE,MAAO/U,MAAKoqB,IAAuB,mBAAZrV,GAA0B,SAAUxK,GAAKY,EAAOhI,KAAK4R,EAASxK,IAAQY,IAU/FqT,GAAgBgM,UAAYhM,GAAgBiM,WAAa,SAAUvf,EAAS6J,GAC1E,MAAO/U,MAAKoqB,IAAInX,GAAyB,mBAAZ8B,GAA0B,SAAU7U,GAAKgL,EAAQ/H,KAAK4R,EAAS7U,IAAQgL,IAUtGsT,GAAgBkM,cAAgBlM,GAAgBmM,eAAiB,SAAUvf,EAAa2J,GACtF,MAAO/U,MAAKoqB,IAAInX,GAAM,KAAyB,mBAAZ8B,GAA0B,WAAc3J,EAAYjI,KAAK4R,IAAc3J,IAQ5GoT,GAAgB,WAAa,SAAU1H,GACrC,GAAIhW,GAASd,IACb,OAAO,IAAIiJ,IAAoB,SAAUZ,GACvC,GAAIe,GAAe6B,GAASnK,EAAOyI,WAAWpG,KAAKrC,EAAQuH,EAC3D,OAAIe,KAAiBjJ,IACnB2W,IACO1W,EAAQgJ,EAAalJ,IAEvB6W,GAAiB,WACtB,GAAIV,GAAIpL,GAAS7B,EAAa+F,SAAShM,KAAKiG,EAC5C0N,KACAT,IAAMlW,IAAYC,EAAQiW,EAAEnW,MAE7BF,MAGL,IAAI4qB,IAA4B,SAASnL,GAGvC,QAASmL,GAAyB9pB,GAChCd,KAAKc,OAASA,EACd2e,EAAUtc,KAAKnD,MAOjB,QAAS8J,GAAcjJ,GACrBb,KAAKa,EAAIA,EACTb,KAAKqK,WAAY,EA0BnB,MAvCAqL,IAASkV,EAA0BnL,GAOnCmL,EAAyB5mB,UAAUod,cAAgB,SAAUvgB,GAC3D,MAAOb,MAAKc,OAAOyI,UAAU,GAAIO,GAAcjJ,KAOjDiJ,EAAc9F,UAAUmH,OAAS8H,GACjCnJ,EAAc9F,UAAUkH,QAAU,SAAUK,GACtCvL,KAAKqK,YACPrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQK,KAGnBzB,EAAc9F,UAAUoH,YAAc,WAChCpL,KAAKqK,YACPrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEuK,gBAGXtB,EAAc9F,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAMH,GALLrK,KAAKqK,WAAY,EACjBrK,KAAKqI,SAAS6C,QAAQhL,IACf,IAMJ0qB,GACP7J,GAMFvC,IAAgBqM,eAAiB,WAC/B,MAAO,IAAID,IAAyB5qB,OAOtCwe,GAAgB3Q,YAAc,WAC5B,GAAI/M,GAASd,IACb,OAAO,IAAIiJ,IAAoB,SAAUZ,GACvC,MAAOvH,GAAOyI,UAAU,SAAUvE,GAChCqD,EAAS8C,OAAO4T,GAAyB/Z,KACxC,SAAU9E,GACXmI,EAAS8C,OAAO8T,GAA0B/e,IAC1CmI,EAAS+C,eACR,WACD/C,EAAS8C,OAAOgU,MAChB9W,EAAS+C,iBAEVtK,IAQL0d,GAAgB6E,OAAS,SAAUC,GACjC,MAAOF,IAAiBpjB,KAAMsjB,GAAatB,UAa7CxD,GAAgBsM,MAAQ,SAAUC,GAChC,MAAO3H,IAAiBpjB,KAAM+qB,GAAY5I,cAa5C3D,GAAgBwM,UAAY,SAAUxI,GACpC,MAAOY,IAAiBpjB,MAAMoiB,eAAeI,GAE/C,IAAIyI,IAAkB,SAASxL,GAE7B,QAASwL,GAAenqB,EAAQiJ,EAAaC,EAASC,GACpDjK,KAAKc,OAASA,EACdd,KAAK+J,YAAcA,EACnB/J,KAAKgK,QAAUA,EACfhK,KAAKiK,KAAOA,EACZwV,EAAUtc,KAAKnD,MAOjB,MAbA0V,IAASuV,EAAgBxL,GASzBwL,EAAejnB,UAAUod,cAAgB,SAASvgB,GAChD,MAAOb,MAAKc,OAAOyI,UAAU,GAAIO,GAAcjJ,EAAEb,QAG5CirB,GACPlK,GAYFjX,GAAc9F,WACZmH,OAAQ,SAAUZ,GAChB,MAAIvK,MAAKqK,UAAT,SACCrK,KAAKoK,WAAapK,KAAKoK,UAAW,GAC/BpK,KAAKkK,gBACPlK,KAAKmK,aAAec,GAASjL,KAAK+J,aAAa/J,KAAKmK,aAAcI,IAElEvK,KAAKmK,aAAenK,KAAKgK,QAAUiB,GAASjL,KAAK+J,aAAa/J,KAAKiK,KAAMM,GAAKA,EAC9EvK,KAAKkK,iBAAkB,GAErBlK,KAAKmK,eAAiBhK,GAAmBH,KAAKa,EAAEqK,QAAQlL,KAAKmK,aAAajK,OAC9EF,MAAKa,EAAEsK,OAAOnL,KAAKmK,gBAErBe,QAAS,SAAUhL,GACZF,KAAKqK,YACRrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,KAGnBkL,YAAa,WACNpL,KAAKqK,YACRrK,KAAKqK,WAAY,GAChBrK,KAAKoK,UAAYpK,KAAKgK,SAAWhK,KAAKa,EAAEsK,OAAOnL,KAAKiK,MACrDjK,KAAKa,EAAEuK,gBAGX+D,QAAS,WAAanP,KAAKqK,WAAY,GACvCsV,KAAM,SAAUzf,GACd,MAAKF,MAAKqK,WAKH,GAJLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,KAabse,GAAgB0M,KAAO,WACrB,GAAqBjhB,GAAjBD,GAAU,EAAaD,EAAc9J,UAAU,EAKnD,OAJyB,KAArBA,UAAUR,SACZuK,GAAU,EACVC,EAAOhK,UAAU,IAEZ,GAAIgrB,IAAejrB,KAAM+J,EAAaC,EAASC,IAWxDuU,GAAgB2M,SAAW,SAAUzkB,GACnC,GAAY,EAARA,EAAa,KAAM,IAAIuN,GAC3B,IAAInT,GAASd,IACb,OAAO,IAAIiJ,IAAoB,SAAUpI,GACvC,GAAI8M,KACJ,OAAO7M,GAAOyI,UAAU,SAAUgB,GAChCoD,EAAEjM,KAAK6I,GACPoD,EAAElO,OAASiH,GAAS7F,EAAEsK,OAAOwC,EAAEU,UAC9B,SAAUnO,GAAKW,EAAEqK,QAAQhL,IAAO,WAAcW,EAAEuK,iBAClDtK,IAWL0d,GAAgB4M,UAAY,WAC1B,GAAY5iB,GAAWqG,EAAQ,CACzB5O,WAAUR,QAAUiJ,GAAYzI,UAAU,KAC9CuI,EAAYvI,UAAU,GACtB4O,EAAQ,GAERrG,EAAYiS,EAEd,KAAI,GAAI9Q,MAAW/J,EAAIiP,EAAOrP,EAAMS,UAAUR,OAAYD,EAAJI,EAASA,IAAO+J,EAAKjI,KAAKzB,UAAUL,GAC1F,OAAO6jB,KAAcuB,GAAoBrb,EAAMnB,GAAYxI,OAAOgiB,UAWpExD,GAAgB6M,SAAW,SAAU3kB,GACnC,GAAY,EAARA,EAAa,KAAM,IAAIuN,GAC3B,IAAInT,GAASd,IACb,OAAO,IAAIiJ,IAAoB,SAAUpI,GACvC,GAAI8M,KACJ,OAAO7M,GAAOyI,UAAU,SAAUgB,GAChCoD,EAAEjM,KAAK6I,GACPoD,EAAElO,OAASiH,GAASiH,EAAEU,SACrB,SAAUnO,GAAKW,EAAEqK,QAAQhL,IAAO,WACjC,KAAOyN,EAAElO,OAAS,GAAKoB,EAAEsK,OAAOwC,EAAEU,QAClCxN,GAAEuK,iBAEHtK,IAGP0d,GAAgB8M,cAAgB9M,GAAgB+M,UAAY,SAAS1gB,EAAU2G,EAAgBuD,GAC3F,MAAO,IAAIuM,IAAkBthB,KAAM6K,EAAU2G,EAAgBuD,GAASiS,MAAM,GAE9E,IAAIwE,IAAiB,SAAU/L,GAG7B,QAAS+L,GAAc1qB,EAAQ+J,EAAUkK,GACvC/U,KAAKc,OAASA,EACdd,KAAK6K,SAAWgK,GAAahK,EAAUkK,EAAS,GAChD0K,EAAUtc,KAAKnD,MAGjB,QAASyrB,GAAS5gB,EAAUmC,GAC1B,MAAO,UAAUzC,EAAG3K,EAAGiB,GAAK,MAAOgK,GAAS1H,KAAKnD,KAAMgN,EAAKnC,SAASN,EAAG3K,EAAGiB,GAAIjB,EAAGiB,IAWpF,QAASiJ,GAAcjJ,EAAGgK,EAAU/J,GAClCd,KAAKa,EAAIA,EACTb,KAAK6K,SAAWA,EAChB7K,KAAKc,OAASA,EACdd,KAAKJ,EAAI,EACTI,KAAKqK,WAAY,EA0BnB,MAnDAqL,IAAS8V,EAAe/L,GAYxB+L,EAAcxnB,UAAU0nB,YAAc,SAAU7gB,EAAUkK,GACxD,MAAO,IAAIyW,GAAcxrB,KAAKc,OAAQ2qB,EAAS5gB,EAAU7K,MAAO+U,IAGlEyW,EAAcxnB,UAAUod,cAAgB,SAAUvgB,GAChD,MAAOb,MAAKc,OAAOyI,UAAU,GAAIO,GAAcjJ,EAAGb,KAAK6K,SAAU7K,QAWnE8J,EAAc9F,UAAUmH,OAAS,SAASZ,GACxC,IAAIvK,KAAKqK,UAAT,CACA,GAAIxH,GAASoI,GAASjL,KAAK6K,UAAUN,EAAGvK,KAAKJ,IAAKI,KAAKc,OACvD,OAAI+B,KAAW1C,GAAmBH,KAAKa,EAAEqK,QAAQrI,EAAO3C,OACxDF,MAAKa,EAAEsK,OAAOtI,KAEhBiH,EAAc9F,UAAUkH,QAAU,SAAUhL,GACtCF,KAAKqK,YAAarK,KAAKqK,WAAY,EAAMrK,KAAKa,EAAEqK,QAAQhL,KAE9D4J,EAAc9F,UAAUoH,YAAc,WAChCpL,KAAKqK,YAAarK,KAAKqK,WAAY,EAAMrK,KAAKa,EAAEuK,gBAEtDtB,EAAc9F,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAMH,GALLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAMJsrB,GAEPzK,GAQFvC,IAAgBgD,IAAMhD,GAAgBmN,OAAS,SAAU9gB,EAAUkK,GACjE,GAAI6W,GAAiC,kBAAb/gB,GAA0BA,EAAW,WAAc,MAAOA,GAClF,OAAO7K,gBAAgBwrB,IACrBxrB,KAAK0rB,YAAYE,EAAY7W,GAC7B,GAAIyW,IAAcxrB,KAAM4rB,EAAY7W,IAwBxCyJ,GAAgBqN,MAAQ,WACtB,GAAIrsB,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,EAC7C,IAAY,IAARA,EAAa,KAAM,IAAI4C,OAAM,sCACjC,KAAI,GAAIxC,GAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,OAAOI,MAAKwhB,IAAIlX,EAAQX,EAAMnK,KAGlCgf,GAAgBsN,QAAUtN,GAAgBuN,WAAa,SAASlhB,EAAU2G,EAAgBuD,GACtF,MAAO,IAAIuM,IAAkBthB,KAAM6K,EAAU2G,EAAgBuD,GAAS2S,YAU1E9U,GAAGmN,WAAW/b,UAAUgoB,cAAgB,SAASnhB,EAAU2G,EAAgBuD,GACvE,MAAO,IAAIuM,IAAkBthB,KAAM6K,EAAU2G,EAAgBuD,GAAS8T,eAExE,IAAIoD,IAAkB,SAASxM,GAE7B,QAASwM,GAAenrB,EAAQ4F,GAC9B1G,KAAKc,OAASA,EACdd,KAAKksB,UAAYxlB,EACjB+Y,EAAUtc,KAAKnD,MAOjB,QAAS8J,GAAcjJ,EAAGoiB,GACxBjjB,KAAKijB,EAAIA,EACTjjB,KAAKqW,EAAI4M,EACTjjB,KAAKa,EAAIA,EACTb,KAAKqK,WAAY,EA0BnB,MAzCAqL,IAASuW,EAAgBxM,GAOzBwM,EAAejoB,UAAUod,cAAgB,SAAUvgB,GACjD,MAAOb,MAAKc,OAAOyI,UAAU,GAAIO,GAAcjJ,EAAGb,KAAKksB,aASzDpiB,EAAc9F,UAAUmH,OAAS,SAAUZ,GACrCvK,KAAKqK,YACLrK,KAAKqW,GAAK,EACZrW,KAAKa,EAAEsK,OAAOZ,GAEdvK,KAAKqW,MAGTvM,EAAc9F,UAAUkH,QAAU,SAAShL,GACpCF,KAAKqK,YAAarK,KAAKqK,WAAY,EAAMrK,KAAKa,EAAEqK,QAAQhL,KAE/D4J,EAAc9F,UAAUoH,YAAc,WAC/BpL,KAAKqK,YAAarK,KAAKqK,WAAY,EAAMrK,KAAKa,EAAEuK,gBAEvDtB,EAAc9F,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChEP,EAAc9F,UAAU2b,KAAO,SAASzf,GACtC,MAAKF,MAAKqK,WAKH,GAJLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAKJ+rB,GACPlL,GAOFvC,IAAgB2N,KAAO,SAAUzlB,GAC/B,GAAY,EAARA,EAAa,KAAM,IAAIuN,GAC3B,OAAO,IAAIgY,IAAejsB,KAAM0G,IAYlC8X,GAAgB4N,UAAY,SAAUC,EAAWtX,GAC/C,GAAIjU,GAASd,KACT2E,EAAWkQ,GAAawX,EAAWtX,EAAS,EAChD,OAAO,IAAI9L,IAAoB,SAAUpI,GACvC,GAAIjB,GAAI,EAAGgO,GAAU,CACrB,OAAO9M,GAAOyI,UAAU,SAAUgB,GAChC,IAAKqD,EACH,IACEA,GAAWjJ,EAAS4F,EAAG3K,IAAKkB,GAC5B,MAAOZ,GAEP,WADAW,GAAEqK,QAAQhL,GAId0N,GAAW/M,EAAEsK,OAAOZ,IACnB,SAAUrK,GAAKW,EAAEqK,QAAQhL,IAAO,WAAcW,EAAEuK,iBAClDtK,IAYL0d,GAAgB8N,KAAO,SAAU5lB,EAAO8B,GACtC,GAAY,EAAR9B,EAAa,KAAM,IAAIuN,GAC3B,IAAc,IAAVvN,EAAe,MAAO2d,IAAgB7b,EAC1C,IAAI1H,GAASd,IACb,OAAO,IAAIiJ,IAAoB,SAAUpI,GACvC,GAAI0rB,GAAY7lB,CAChB,OAAO5F,GAAOyI,UAAU,SAAUgB,GAC5BgiB,IAAc,IAChB1rB,EAAEsK,OAAOZ,GACI,GAAbgiB,GAAkB1rB,EAAEuK,gBAErB,SAAUlL,GAAKW,EAAEqK,QAAQhL,IAAO,WAAcW,EAAEuK,iBAClDtK,IAUL0d,GAAgBgO,UAAY,SAAUH,EAAWtX,GAC/C,GAAIjU,GAASd,KACT2E,EAAWkQ,GAAawX,EAAWtX,EAAS,EAChD,OAAO,IAAI9L,IAAoB,SAAUpI,GACvC,GAAIjB,GAAI,EAAGgO,GAAU,CACrB,OAAO9M,GAAOyI,UAAU,SAAUgB,GAChC,GAAIqD,EAAS,CACX,IACEA,EAAUjJ,EAAS4F,EAAG3K,IAAKkB,GAC3B,MAAOZ,GAEP,WADAW,GAAEqK,QAAQhL,GAGR0N,EACF/M,EAAEsK,OAAOZ,GAET1J,EAAEuK,gBAGL,SAAUlL,GAAKW,EAAEqK,QAAQhL,IAAO,WAAcW,EAAEuK,iBAClDtK,GAGL,IAAI2rB,IAAoB,SAAUhN,GAGhC,QAASgN,GAAiB3rB,EAAQurB,EAAWtX,GAC3C/U,KAAKc,OAASA,EACdd,KAAKqsB,UAAYxX,GAAawX,EAAWtX,EAAS,GAClD0K,EAAUtc,KAAKnD,MAOjB,QAAS0sB,GAAeL,EAAWrf,GACjC,MAAO,UAASzC,EAAG3K,EAAGiB,GAAK,MAAOmM,GAAKqf,UAAU9hB,EAAG3K,EAAGiB,IAAMwrB,EAAUlpB,KAAKnD,KAAMuK,EAAG3K,EAAGiB,IAO1F,QAASiJ,GAAcjJ,EAAGwrB,EAAWvrB,GACnCd,KAAKa,EAAIA,EACTb,KAAKqsB,UAAYA,EACjBrsB,KAAKc,OAASA,EACdd,KAAKJ,EAAI,EACTI,KAAKqK,WAAY,EA2BnB,MApDAqL,IAAS+W,EAAkBhN,GAQ3BgN,EAAiBzoB,UAAUod,cAAgB,SAAUvgB,GACnD,MAAOb,MAAKc,OAAOyI,UAAU,GAAIO,GAAcjJ,EAAGb,KAAKqsB,UAAWrsB,QAOpEysB,EAAiBzoB,UAAU2oB,eAAiB,SAASN,EAAWtX,GAC9D,MAAO,IAAI0X,GAAiBzsB,KAAKc,OAAQ4rB,EAAeL,EAAWrsB,MAAO+U,IAW5EjL,EAAc9F,UAAUmH,OAAS,SAASZ,GACxC,IAAIvK,KAAKqK,UAAT,CACA,GAAIuiB,GAAc3hB,GAASjL,KAAKqsB,WAAW9hB,EAAGvK,KAAKJ,IAAKI,KAAKc,OAC7D,OAAI8rB,KAAgBzsB,GACXH,KAAKa,EAAEqK,QAAQ0hB,EAAY1sB,QAEpC0sB,GAAe5sB,KAAKa,EAAEsK,OAAOZ,MAE/BT,EAAc9F,UAAUkH,QAAU,SAAUhL,GACtCF,KAAKqK,YAAarK,KAAKqK,WAAY,EAAMrK,KAAKa,EAAEqK,QAAQhL,KAE9D4J,EAAc9F,UAAUoH,YAAc,WAChCpL,KAAKqK,YAAarK,KAAKqK,WAAY,EAAMrK,KAAKa,EAAEuK,gBAEtDtB,EAAc9F,UAAUmL,QAAU,WAAanP,KAAKqK,WAAY,GAChEP,EAAc9F,UAAU2b,KAAO,SAAUzf,GACvC,MAAKF,MAAKqK,WAKH,GAJLrK,KAAKqK,WAAY,EACjBrK,KAAKa,EAAEqK,QAAQhL,IACR,IAKJusB,GAEP1L,GAQFvC,IAAgBgI,OAAShI,GAAgBqO,MAAQ,SAAUR,EAAWtX,GACpE,MAAO/U,gBAAgBysB,IAAmBzsB,KAAK2sB,eAAeN,EAAWtX,GACvE,GAAI0X,IAAiBzsB,KAAMqsB,EAAWtX,IAyC5CgL,GAAW+M,aAAe,SAAUniB,EAAIC,EAAKC,GAC3C,MAAO,YACU,mBAARD,KAAwBA,EAAM5K,KAGrC,KAAI,GADAR,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,OAAO8K,GAAmBC,EAAIC,EAAKC,EAAUlB,KA4CjDoW,GAAWgN,iBAAmB,SAAUpiB,EAAIC,EAAKC,GAC/C,MAAO,YACU,mBAARD,KAAwBA,EAAM5K,KAErC,KAAI,GADAR,GAAMS,UAAUR,OAAQkK,EAAO,GAAIhK,OAAMH,GACrCI,EAAI,EAAOJ,EAAJI,EAASA,IAAO+J,EAAK/J,GAAKK,UAAUL,EACnD,OAAOyL,GAAqBV,EAAIC,EAAKC,EAAUlB,KAWjD6B,EAAiBxH,UAAUmL,QAAU,WAC9BnP,KAAK8L,aACR9L,KAAK0L,GAAGshB,oBAAoBhtB,KAAK2L,GAAI3L,KAAK4L,KAAK,GAC/C5L,KAAK8L,YAAa,IAuBtB8G,GAAGE,OAAOma,iBAAkB,EAoB5BlN,GAAWmN,UAAY,SAAUC,EAASlhB,EAAWpB,GAEnD,MAAIsiB,GAAQC,YACHC,GACL,SAAUC,GAAKH,EAAQC,YAAYnhB,EAAWqhB,IAC9C,SAAUA,GAAKH,EAAQI,eAAethB,EAAWqhB,IACjDziB,GAIC+H,GAAGE,OAAOma,iBAEa,kBAAfE,GAAQK,IAA4C,kBAAhBL,GAAQM,IAQlD,GAAIxkB,IAAoB,SAAUpI,GACvC,MAAOkL,GACLohB,EACAlhB,EACAM,EAAa1L,EAAGgK,MACjB6iB,UAAUC,WAZFN,GACL,SAAUC,GAAKH,EAAQK,GAAGvhB,EAAWqhB,IACrC,SAAUA,GAAKH,EAAQM,IAAIxhB,EAAWqhB,IACtCziB,GAoBR,IAAIwiB,IAAmBtN,GAAWsN,iBAAmB,SAAUO,EAAYC,EAAehjB,EAAUrC,GAElG,MADAE,IAAYF,KAAeA,EAAYiS,IAChC,GAAIxR,IAAoB,SAAUpI,GACvC,QAASitB,KACP,GAAIjrB,GAAS5C,UAAU,EACvB,OAAIqG,IAAWuE,KACbhI,EAASoI,GAASJ,GAAU9K,MAAM,KAAME,WACpC4C,IAAW1C,IAAmBU,EAAEqK,QAAQrI,EAAO3C,OAErDW,GAAEsK,OAAOtI,GAGX,GAAIkrB,GAAcH,EAAWE,EAC7B,OAAO/W,IAAiB,WACtBzQ,GAAWunB,IAAkBA,EAAcC,EAAcC,OAE1DL,UAAUC,YAGXK,GAAyB,SAASvO,GAEpC,QAASuO,GAAsBvjB,GAC7BzK,KAAKyK,EAAIA,EACTgV,EAAUtc,KAAKnD,MAWjB,MAdA0V,IAASsY,EAAuBvO,GAMhCuO,EAAsBhqB,UAAUod,cAAgB,SAASvgB,GAKvD,MAJAb,MAAKyK,EAAEgJ,KAAK,SAAUwJ,GACpBpc,EAAEsK,OAAO8R,GACTpc,EAAEuK,eACD,SAAUG,GAAO1K,EAAEqK,QAAQK,KACvByL,IAGFgX,GACPjN,IAOElR,GAAwBkQ,GAAW2B,YAAc,SAAUuM,GAC7D,MAAO,IAAID,IAAsBC,GAanCzP,IAAgB0P,UAAY,SAAUC,GAEpC,GADAA,IAAgBA,EAAcvb,GAAGE,OAAOC,UACnCob,EAAe,KAAM,IAAIja,IAAkB,qDAChD,IAAIpT,GAASd,IACb,OAAO,IAAImuB,GAAY,SAAUC,EAASC,GAExC,GAAIrpB,GAAOoF,GAAW,CACtBtJ,GAAOyI,UAAU,SAAUyZ,GACzBhe,EAAQge,EACR5Y,GAAW,GACVikB,EAAQ,WACTjkB,GAAYgkB,EAAQppB,QAU1B+a,GAAWuO,WAAa,SAAUC,GAChC,GAAIN,EACJ,KACEA,EAAUM,IACV,MAAOruB,GACP,MAAOuQ,IAAgBvQ,GAEzB,MAAO2P,IAAsBoe,IAoB/BzP,GAAgBgQ,UAAY,SAAUC,EAA0B5jB,GAC9D,GAAI/J,GAASd,IACb,OAA2C,kBAA7ByuB,GACZ,GAAIxlB,IAAoB,SAAUZ,GAChC,GAAIqmB,GAAc5tB,EAAO0tB,UAAUC,IACnC,OAAO,IAAItiB,IAAoBtB,EAAS6jB,GAAanlB,UAAUlB,GAAWqmB,EAAYC,YACrF7tB,GACH,GAAI8tB,IAAsB9tB,EAAQ2tB,IActCjQ,GAAgBkP,QAAU,SAAU7iB,GAClC,MAAOA,IAAYvE,GAAWuE,GAC5B7K,KAAKwuB,UAAU,WAAc,MAAO,IAAIjM,KAAc1X,GACtD7K,KAAKwuB,UAAU,GAAIjM,MAQvB/D,GAAgBqQ,MAAQ,WACtB,MAAO7uB,MAAK0tB,UAAUC,YAcxBnP,GAAgBsQ,YAAc,SAAUjkB,GACtC,MAAOA,IAAYvE,GAAWuE,GAC5B7K,KAAKwuB,UAAU,WAAc,MAAO,IAAI1jB,KAAmBD,GAC3D7K,KAAKwuB,UAAU,GAAI1jB,MAevB0T,GAAgBuQ,aAAe,SAAUC,EAAwBC,GAC/D,MAA4B,KAArBhvB,UAAUR,OACfO,KAAKwuB,UAAU,WACb,MAAO,IAAIU,IAAgBD,IAC1BD,GACHhvB,KAAKwuB,UAAU,GAAIU,IAAgBF,KASvCxQ,GAAgB2Q,WAAa,SAAUF,GACrC,MAAOjvB,MAAK+uB,aAAaE,GAActB,YAmBzCnP,GAAgB4Q,OAAS,SAAUvkB,EAAUwkB,EAAYC,EAAY9mB,GACnE,MAAOqC,IAAYvE,GAAWuE,GAC5B7K,KAAKwuB,UAAU,WAAc,MAAO,IAAIe,IAAcF,EAAYC,EAAY9mB,IAAeqC,GAC7F7K,KAAKwuB,UAAU,GAAIe,IAAcF,EAAYC,EAAY9mB,KAkB7DgW,GAAgBgR,YAAc,SAAUH,EAAYC,EAAY9mB,GAC9D,MAAOxI,MAAKovB,OAAO,KAAMC,EAAYC,EAAY9mB,GAAWmlB,WAG9D,IAAIiB,IAAwBhc,GAAGgc,sBAAyB,SAAUnP,GAGhE,QAASmP,GAAsB9tB,EAAQyQ,GACrC,GACEnI,GADEqmB,GAAkB,EAEpBC,EAAmB5uB,EAAO+I,cAE5B7J,MAAK2uB,QAAU,WAOb,MANKc,KACHA,GAAkB,EAClBrmB,EAAe,GAAI+C,IAAoBujB,EAAiBnmB,UAAUgI,GAAUwF,GAAiB,WAC3F0Y,GAAkB,MAGfrmB,GAGTqW,EAAUtc,KAAKnD,KAAM,SAAUa,GAAK,MAAO0Q,GAAQhI,UAAU1I,KAgB/D,MAjCA6U,IAASkZ,EAAuBnP,GAoBhCmP,EAAsB5qB,UAAU2pB,SAAW,WACzC,GAAIgC,GAAyBjpB,EAAQ,EAAG5F,EAASd,IACjD,OAAO,IAAIiJ,IAAoB,SAAUZ,GACrC,GAAIunB,GAA4B,MAAVlpB,EACpB0C,EAAetI,EAAOyI,UAAUlB,EAElC,OADAunB,KAAkBD,EAA0B7uB,EAAO6tB,WAC5C,WACLvlB,EAAa+F,UACD,MAAVzI,GAAeipB,EAAwBxgB,cAK1Cyf,GACP7O,IA2DE8P,GAAqB9P,GAAW+P,SAAW,SAAUljB,EAAQpE,GAC/D,MAAO4E,GAAiCR,EAAQA,EAAQlE,GAAYF,GAAaA,EAAY6G,IAUzE0Q,IAAWjP,MAAQ,SAAUrE,EAASsjB,EAAmBvnB,GAC7E,GAAIoE,EAOJ,OANAlE,IAAYF,KAAeA,EAAY6G,IACd,MAArB0gB,GAA0D,gBAAtBA,GACtCnjB,EAASmjB,EACArnB,GAAYqnB,KACrBvnB,EAAYunB,GAEVtjB,YAAmB2E,OAAQxE,IAAWvN,EACjCmN,EAAoBC,EAAQujB,UAAWxnB,GAE5CiE,YAAmB2E,OAAQxE,IAAWvN,EACjCsN,EAA6BF,EAAQujB,UAAWD,EAAmBvnB,GAErEoE,IAAWvN,EAChB6N,EAAwBT,EAASjE,GACjC4E,EAAiCX,EAASG,EAAQpE,GAwItDgW,IAAgB1P,MAAQ,WACtB,GAA4B,gBAAjB7O,WAAU,IAAmBA,UAAU,YAAcmR,MAAM,CACpE,GAAI3E,GAAUxM,UAAU,GAAIuI,EAAYvI,UAAU,EAElD,OADAyI,IAAYF,KAAeA,EAAY6G,IAChC5C,YAAmB2E,MACxB5C,EAAwBxO,KAAMyM,EAASjE,GACvC+E,EAAwBvN,KAAMyM,EAASjE,GACpC,GAAIlC,GAAWrG,UAAU,IAC9B,MAAOwO,GAAkBzO,KAAMC,UAAU,GAAIA,UAAU,GAEvD,MAAM,IAAImC,OAAM,sBAqFpBoc,GAAgBpP,SAAW,WACzB,GAAI9I,GAAYrG,UAAU,IACxB,MAAOwP,GAAqBzP,KAAMC,UAAU,GACvC,IAA4B,gBAAjBA,WAAU,GAC1B,MAAOmP,GAASpP,KAAMC,UAAU,GAAIA,UAAU,GAE9C,MAAM,IAAImC,OAAM,sBAcpBoc,GAAgB1Q,UAAY,SAAUtF,GAEpC,MADAE,IAAYF,KAAeA,EAAY6G,IAChCrP,KAAKwhB,IAAI,SAAUjX,GACxB,OAASvF,MAAOuF,EAAGuD,UAAWtF,EAAUyE,UAgD5CuR,GAAgByR,OAASzR,GAAgB0R,eAAiB,SAAUC,EAAmB3nB,GAErF,MADAE,IAAYF,KAAeA,EAAY6G,IACH,gBAAtB8gB,GACZpgB,EAAiB/P,KAAM6vB,GAAmBM,EAAmB3nB,IAC7DuH,EAAiB/P,KAAMmwB,GAG3B,IAAIzf,IAAekC,GAAGlC,aAAe,SAASmD,GAC5C7T,KAAK6T,QAAUA,GAAW,uBAC1B7T,KAAK8T,KAAO,eACZ1R,MAAMe,KAAKnD,MAEb0Q,IAAa1M,UAAYoC,OAAO2N,OAAO3R,MAAM4B,WA4G7Cwa,GAAgB5N,QAAU,WACxB,GAAIwf,GAAWnwB,UAAU,EACzB,IAAImwB,YAAoBhf,OAA4B,gBAAbgf,GACrC,MAAOxf,GAAQ5Q,KAAMowB,EAAUnwB,UAAU,GAAIA,UAAU,GAClD,IAAI8f,GAAWI,aAAaiQ,IAAa9pB,GAAW8pB,GACzD,MAAOhgB,GAAoBpQ,KAAMowB,EAAUnwB,UAAU,GAAIA,UAAU,GAEnE,MAAM,IAAImC,OAAM,sBAUpBoc,GAAgB7O,SAAW,SAAU0gB,EAAgB7nB,GACnDE,GAAYF,KAAeA,EAAY6G,GACvC,IAAIihB,IAAYD,GAAkB,CAClC,IAAgB,GAAZC,EAAiB,KAAM,IAAIC,YAAW,+CAC1C,IAAIzvB,GAASd,IACb,OAAO,IAAIiJ,IAAoB,SAAUpI,GACvC,GAAI2vB,GAAa,CACjB,OAAO1vB,GAAOyI,UACZ,SAAUgB,GACR,GAAI0C,GAAMzE,EAAUyE,OACD,IAAfujB,GAAoBvjB,EAAMujB,GAAcF,KAC1CE,EAAavjB,EACbpM,EAAEsK,OAAOZ,KAEX,SAAUrK,GAAKW,EAAEqK,QAAQhL,IAAO,WAAcW,EAAEuK,iBAEnDtK,GAGL,IAAI2vB,IAAsB,SAAUhR,GAIlC,QAASlW,GAAUlB,GACjB,GAAIqoB,GAAO1wB,KAAKc,OAAO4sB,UACrBtkB,EAAesnB,EAAKnnB,UAAUlB,GAC9BsoB,EAAa3Z,GAEX4Z,EAAW5wB,KAAK6wB,OAAO/G,uBAAuBvgB,UAAU,SAAUrE,GAChEA,EACFyrB,EAAaD,EAAK/B,WAElBgC,EAAWxhB,UACXwhB,EAAa3Z,KAIjB,OAAO,IAAI7K,IAAoB/C,EAAcunB,EAAYC,GAG3D,QAASH,GAAmB3vB,EAAQ+vB,GAClC7wB,KAAKc,OAASA,EACdd,KAAK8wB,WAAa,GAAIvO,IAElBsO,GAAUA,EAAOtnB,UACnBvJ,KAAK6wB,OAAS7wB,KAAK8wB,WAAW9J,MAAM6J,GAEpC7wB,KAAK6wB,OAAS7wB,KAAK8wB,WAGrBrR,EAAUtc,KAAKnD,KAAMuJ,EAAWzI,GAWlC,MAxCA4U,IAAS+a,EAAoBhR,GAgC7BgR,EAAmBzsB,UAAU+sB,MAAQ,WACnC/wB,KAAK8wB,WAAW3lB,QAAO,IAGzBslB,EAAmBzsB,UAAUgtB,OAAS,WACpChxB,KAAK8wB,WAAW3lB,QAAO,IAGlBslB,GAEP1Q,GAUFvB,IAAgBoS,SAAW,SAAUC,GACnC,MAAO,IAAIJ,IAAmBzwB,KAAM6wB,GAoDtC,IAAII,IAA8B,SAAUxR,GAI1C,QAASlW,GAAU1I,GAGjB,QAASqwB,KAAe,KAAOvjB,EAAElO,OAAS,GAAKoB,EAAEsK,OAAOwC,EAAEU,SAF1D,GAAY8iB,GAARxjB,KAIAvE,EACFkI,GACEtR,KAAKc,OACLd,KAAK6wB,OAAOzF,WAAU,GAAOtB,uBAC7B,SAAU7M,EAAMmU,GACd,OAASnU,KAAMA,EAAMmU,WAAYA,KAElC7nB,UACC,SAAUyB;AACJmmB,IAAuB9xB,GAAa2L,EAAQomB,YAAcD,GAC5DA,EAAqBnmB,EAAQomB,WAEzBpmB,EAAQomB,YAAcF,MAE1BC,EAAqBnmB,EAAQomB,WAEzBpmB,EAAQomB,WACVvwB,EAAEsK,OAAOH,EAAQiS,MAEjBtP,EAAEjM,KAAKsJ,EAAQiS,QAIrB,SAAU1R,GACR2lB,IACArwB,EAAEqK,QAAQK,IAEZ,WACE2lB,IACArwB,EAAEuK,eAGV,OAAOhC,GAGT,QAAS6nB,GAA2BnwB,EAAQ+vB,GAC1C7wB,KAAKc,OAASA,EACdd,KAAK8wB,WAAa,GAAIvO,IAElBsO,GAAUA,EAAOtnB,UACnBvJ,KAAK6wB,OAAS7wB,KAAK8wB,WAAW9J,MAAM6J,GAEpC7wB,KAAK6wB,OAAS7wB,KAAK8wB,WAGrBrR,EAAUtc,KAAKnD,KAAMuJ,EAAWzI,GAWlC,MA/DA4U,IAASub,EAA4BxR,GAuDrCwR,EAA2BjtB,UAAU+sB,MAAQ,WAC3C/wB,KAAK8wB,WAAW3lB,QAAO,IAGzB8lB,EAA2BjtB,UAAUgtB,OAAS,WAC5ChxB,KAAK8wB,WAAW3lB,QAAO,IAGlB8lB,GAEPlR,GAWFvB,IAAgB6S,iBAAmB,SAAU9f,GAC3C,MAAO,IAAI0f,IAA2BjxB,KAAMuR,GAGhD,IAAI+f,IAAwB,SAAU7R,GAIpC,QAASlW,GAAWlB,GAClB,MAAOrI,MAAKc,OAAOyI,UAAUlB,GAG/B,QAASipB,GAAsBxwB,EAAQywB,EAAa/oB,GAClDiX,EAAUtc,KAAKnD,KAAMuJ,EAAWzI,GAChCd,KAAKuR,QAAU,GAAIigB,IAAkBD,EAAa/oB,GAClDxI,KAAKc,OAASA,EAAO0tB,UAAUxuB,KAAKuR,SAASoc,WAO/C,MAhBAjY,IAAS4b,EAAsB7R,GAY/B6R,EAAqBttB,UAAUytB,QAAU,SAAUC,GACjD,MAAO1xB,MAAKuR,QAAQkgB,QAAyB,MAAjBC,EAAwB,GAAKA,IAGpDJ,GAEPvR,IAEEyR,GAAqB,SAAU/R,GAEjC,QAASlW,GAAWlB,GAClB,MAAOrI,MAAKuR,QAAQhI,UAAUlB,GAKhC,QAASmpB,GAAkBD,EAAa/oB,GACvB,MAAf+oB,IAAwBA,GAAc,GAEtC9R,EAAUtc,KAAKnD,KAAMuJ,GACrBvJ,KAAKuR,QAAU,GAAIgR,IACnBviB,KAAKuxB,YAAcA,EACnBvxB,KAAK8a,MAAQyW,KAAmB,KAChCvxB,KAAK2xB,eAAiB,EACtB3xB,KAAK4xB,oBAAsB,KAC3B5xB,KAAKM,MAAQ,KACbN,KAAK6xB,WAAY,EACjB7xB,KAAK8xB,cAAe,EACpB9xB,KAAKwI,UAAYA,GAAaG,GA6EhC,MA3FA+M,IAAS8b,EAAmB/R,GAiB5B5J,GAAc2b,EAAkBxtB,UAAWqb,IACzCjU,YAAa,WACXpL,KAAK8xB,cAAe,EACf9xB,KAAKuxB,aAAqC,IAAtBvxB,KAAK8a,MAAMrb,OAIlCO,KAAK8a,MAAMpZ,KAAK+c,GAAaW,sBAH7Bpf,KAAKuR,QAAQnG,cACbpL,KAAK+xB,0BAKT7mB,QAAS,SAAU5K,GACjBN,KAAK6xB,WAAY,EACjB7xB,KAAKM,MAAQA,EACRN,KAAKuxB,aAAqC,IAAtBvxB,KAAK8a,MAAMrb,OAIlCO,KAAK8a,MAAMpZ,KAAK+c,GAAaS,cAAc5e,KAH3CN,KAAKuR,QAAQrG,QAAQ5K,GACrBN,KAAK+xB,0BAKT5mB,OAAQ,SAAUnG,GACZhF,KAAK2xB,gBAAkB,EACzB3xB,KAAKuxB,aAAevxB,KAAK8a,MAAMpZ,KAAK+c,GAAaO,aAAaha,KAEnC,IAA1BhF,KAAK2xB,kBAA2B3xB,KAAK+xB,wBACtC/xB,KAAKuR,QAAQpG,OAAOnG,KAGxBgtB,gBAAiB,SAAUN,GACzB,GAAI1xB,KAAKuxB,YACP,KAAOvxB,KAAK8a,MAAMrb,OAAS,IAAMiyB,EAAgB,GAA4B,MAAvB1xB,KAAK8a,MAAM,GAAG7M,OAAe,CACjF,GAAIob,GAAQrpB,KAAK8a,MAAMzM,OACvBgb,GAAM/a,OAAOtO,KAAKuR,SACC,MAAf8X,EAAMpb,KACRyjB,KAEA1xB,KAAK+xB,wBACL/xB,KAAK8a,UAKX,MAAO4W,IAETD,QAAS,SAAU3pB,GACjB9H,KAAK+xB,uBACL,IAAI/kB,GAAOhN,IAkBX,OAhBAA,MAAK4xB,oBAAsB5xB,KAAKwI,UAAUmQ,kBAAkB7Q,EAC5D,SAASjB,EAAGjH,GACV,GAAI2sB,GAAYvf,EAAKglB,gBAAgBpyB,GACjC8oB,EAAU1b,EAAK8kB,cAAgB9kB,EAAK6kB,SACxC,QAAKnJ,GAAW6D,EAAY,GAC1Bvf,EAAK2kB,eAAiBpF,EAEfxV,GAAiB,WACtB/J,EAAK2kB,eAAiB,KAJ1B,SAYK3xB,KAAK4xB,qBAEdG,sBAAuB,WACjB/xB,KAAK4xB,sBACP5xB,KAAK4xB,oBAAoBziB,UACzBnP,KAAK4xB,oBAAsB,SAK1BJ,GACPzR,GAWFvB,IAAgByT,WAAa,SAAUV,EAAa/oB,GAQlD,MANI+oB,IAAe7oB,GAAY6oB,KAC3B/oB,EAAY+oB,EACZA,GAAc,GAGC,MAAfA,IAAwBA,GAAc,GACnC,GAAID,IAAqBtxB,KAAMuxB,EAAa/oB,IAQnDgW,GAAgB0T,KAAO,SAAUC,GAG/B,QAASC,KACPtxB,EAAOkwB,SAHT,GAAIlwB,GAASd,KAAKqxB,kBAuBlB,OAjBAc,GAAK/E,YAAY,QAASgF,GAE1BtxB,EAAOyI,UACL,SAAUgB,IACP4nB,EAAKE,MAAMvsB,OAAOyE,KAAOzJ,EAAOiwB,SAEnC,SAAUxlB,GACR4mB,EAAKG,KAAK,QAAS/mB,IAErB,YAEG4mB,EAAKI,UAAYJ,EAAKK,MACvBL,EAAK5E,eAAe,QAAS6E,KAGjCtxB,EAAOkwB,SAEAmB,GAQT3T,GAAgBiU,UAAY,SAASC,GAGnC,QAASC,GAAqB9xB,GAC5B,OACE+xB,oBAAqB,WACnB,MAAO/xB,IAETgyB,oBAAqB,SAASC,EAAKC,GACjC,MAAOD,GAAI3nB,OAAO4nB,IAEpBC,sBAAuB,SAASF,GAC9B,MAAOA,GAAI1nB,gBAXjB,GAAItK,GAASd,IAgBb,OAAO,IAAIiJ,IAAoB,SAASpI,GACtC,GAAIoyB,GAAQP,EAAWC,EAAqB9xB,GAC5C,OAAOC,GAAOyI,UACZ,SAASyZ,GACP,GAAIhS,GAAM/F,GAASgoB,EAAM,sBAAsB9vB,KAAK8vB,EAAOpyB,EAAGmiB,EAC1DhS,KAAQ7Q,IAAYU,EAAEqK,QAAQ8F,EAAI9Q,IAExC,SAAUA,GAAKW,EAAEqK,QAAQhL,IACzB,WAAa+yB,EAAM,uBAAuBpyB,MAE3CC,GAGL,IAAImI,IAAsB2J,GAAG3J,oBAAuB,SAAUwW,GAI5D,QAASuB,GAAcC,GACrB,MAAOA,IAAc3a,GAAW2a,EAAW9R,SAAW8R,EACpD3a,GAAW2a,GAAclK,GAAiBkK,GAAcjK,GAG5D,QAAS1N,GAAczC,EAAG+Q,GACxB,GAAIsJ,GAAMtJ,EAAM,GAAI5K,EAAO4K,EAAM,GAC7BuJ,EAAMlW,GAAS+B,EAAKkmB,aAAa/vB,KAAK6J,EAAMkU,EAEhD,OAAIC,KAAQhhB,IACN+gB,EAAIvB,KAAKxf,GAASD,OAExBghB,GAAI5X,cAAc0X,EAAcG,IAFK/gB,EAAQD,GAASD,GAKxD,QAASizB,GAAe9qB,GACtB,GAAI6Y,GAAM,GAAIG,IAAmBhZ,GAAWuP,GAASsJ,EAAKlhB,KAO1D,OALI2I,IAAuBsS,mBACzBtS,GAAuBgQ,kBAAkBf,EAAOtO,GAEhDA,EAAc,KAAMsO,GAEfsJ,EAGT,QAASjY,GAAoBM,EAAWjB,GACtCtI,KAAKc,OAASwH,EACdtI,KAAKkzB,YAAc3pB,EACnBkW,EAAUtc,KAAKnD,KAAMmzB,GAGvB,MAnCAzd,IAASzM,EAAqBwW,GAmCvBxW,GAEP8W,IAEEsB,GAAsB,SAAU5B,GAGlC,QAAS4B,GAAmBhZ,GAC1BoX,EAAUtc,KAAKnD,MACfA,KAAKqI,SAAWA,EAChBrI,KAAKgoB,EAAI,GAAI7e,IALfuM,GAAS2L,EAAoB5B,EAQ7B,IAAI2T,GAA8B/R,EAAmBrd,SA8BrD,OA5BAovB,GAA4B3hB,KAAO,SAAUzM,GAC3C,GAAInC,GAASoI,GAASjL,KAAKqI,SAAS8C,QAAQhI,KAAKnD,KAAKqI,SAAUrD,EAC5DnC,KAAW1C,KACbH,KAAKmP,UACL/O,EAAQyC,EAAO3C,KAInBkzB,EAA4B9yB,MAAQ,SAAUiL,GAC5C,GAAI1I,GAASoI,GAASjL,KAAKqI,SAAS6C,SAAS/H,KAAKnD,KAAKqI,SAAUkD,EACjEvL,MAAKmP,UACLtM,IAAW1C,IAAYC,EAAQyC,EAAO3C,IAGxCkzB,EAA4B1T,UAAY,WACtC,GAAI7c,GAASoI,GAASjL,KAAKqI,SAAS+C,aAAajI,KAAKnD,KAAKqI,SAC3DrI,MAAKmP,UACLtM,IAAW1C,IAAYC,EAAQyC,EAAO3C,IAGxCkzB,EAA4B9pB,cAAgB,SAAUtE,GAAShF,KAAKgoB,EAAE1e,cAActE,IACpFouB,EAA4B9c,cAAgB,WAAc,MAAOtW,MAAKgoB,EAAE1R,iBAExE8c,EAA4BjkB,QAAU,WACpCsQ,EAAUzb,UAAUmL,QAAQhM,KAAKnD,MACjCA,KAAKgoB,EAAE7Y,WAGFkS,GACP7B,IAEE6T,GAAoB,SAAU9hB,EAASlJ,GACzCrI,KAAKuR,QAAUA,EACfvR,KAAKqI,SAAWA,EAGlBgrB,IAAkBrvB,UAAUmL,QAAU,WACpC,IAAKnP,KAAKuR,QAAQzF,YAAgC,OAAlB9L,KAAKqI,SAAmB,CACtD,GAAI2N,GAAMhW,KAAKuR,QAAQ+hB,UAAU5yB,QAAQV,KAAKqI,SAC9CrI,MAAKuR,QAAQ+hB,UAAU3c,OAAOX,EAAK,GACnChW,KAAKqI,SAAW,MAQpB,IAAIka,IAAU3P,GAAG2P,QAAW,SAAU9C,GACpC,QAASlW,GAAUlB,GAEjB,MADA6O,IAAclX,MACTA,KAAKqK,UAINrK,KAAKuzB,UACPlrB,EAAS6C,QAAQlL,KAAKM,OACf0W,KAET3O,EAAS+C,cACF4L,KARLhX,KAAKszB,UAAU5xB,KAAK2G,GACb,GAAIgrB,IAAkBrzB,KAAMqI,IAevC,QAASka,KACP9C,EAAUtc,KAAKnD,KAAMuJ,GACrBvJ,KAAK8L,YAAa,EAClB9L,KAAKqK,WAAY,EACjBrK,KAAKszB,aACLtzB,KAAKuzB,UAAW,EAuElB,MAjFA7d,IAAS6M,EAAS9C,GAalB5J,GAAc0M,EAAQve,UAAWqb,GAASrb,WAKxCwvB,aAAc,WAAc,MAAOxzB,MAAKszB,UAAU7zB,OAAS,GAI3D2L,YAAa,WAEX,GADA8L,GAAclX,OACTA,KAAKqK,UAAW,CACnBrK,KAAKqK,WAAY,CACjB,KAAK,GAAIzK,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IACzE6zB,EAAG7zB,GAAGwL,aAGRpL,MAAKszB,UAAU7zB,OAAS,IAO5ByL,QAAS,SAAU5K,GAEjB,GADA4W,GAAclX,OACTA,KAAKqK,UAAW,CACnBrK,KAAKqK,WAAY,EACjBrK,KAAKM,MAAQA,EACbN,KAAKuzB,UAAW,CAChB,KAAK,GAAI3zB,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IACzE6zB,EAAG7zB,GAAGsL,QAAQ5K,EAGhBN,MAAKszB,UAAU7zB,OAAS,IAO5B0L,OAAQ,SAAUnG,GAEhB,GADAkS,GAAclX,OACTA,KAAKqK,UACR,IAAK,GAAIzK,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IACzE6zB,EAAG7zB,GAAGuL,OAAOnG,IAOnBmK,QAAS,WACPnP,KAAK8L,YAAa,EAClB9L,KAAKszB,UAAY,QAUrB/Q,EAAQxO,OAAS,SAAU1L,EAAU9H,GACnC,MAAO,IAAImzB,IAAiBrrB,EAAU9H,IAGjCgiB,GACPxC,IAMEjV,GAAe8H,GAAG9H,aAAgB,SAAU2U,GAE9C,QAASlW,GAAUlB,GAGjB,MAFA6O,IAAclX,MAETA,KAAKqK,WAKNrK,KAAKuzB,SACPlrB,EAAS6C,QAAQlL,KAAKM,OACbN,KAAKoK,UACd/B,EAAS8C,OAAOnL,KAAKgF,OACrBqD,EAAS+C,eAET/C,EAAS+C,cAGJ4L,KAbLhX,KAAKszB,UAAU5xB,KAAK2G,GACb,GAAIgrB,IAAkBrzB,KAAMqI,IAqBvC,QAASyC,KACP2U,EAAUtc,KAAKnD,KAAMuJ,GAErBvJ,KAAK8L,YAAa,EAClB9L,KAAKqK,WAAY,EACjBrK,KAAKoK,UAAW,EAChBpK,KAAKszB,aACLtzB,KAAKuzB,UAAW,EA4ElB,MAzFA7d,IAAS5K,EAAc2U,GAgBvB5J,GAAc/K,EAAa9G,UAAWqb,IAKpCmU,aAAc,WAEZ,MADAtc,IAAclX,MACPA,KAAKszB,UAAU7zB,OAAS,GAKjC2L,YAAa,WACX,GAAIxL,GAAGJ,CAEP,IADA0X,GAAclX,OACTA,KAAKqK,UAAW,CACnBrK,KAAKqK,WAAY,CACjB,IAAIopB,GAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,MAE9C,IAAIO,KAAKoK,SACP,IAAKxK,EAAI,EAAOJ,EAAJI,EAASA,IAAK,CACxB,GAAIiB,GAAI4yB,EAAG7zB,EACXiB,GAAEsK,OAAOnL,KAAKgF,OACdnE,EAAEuK,kBAGJ,KAAKxL,EAAI,EAAOJ,EAAJI,EAASA,IACnB6zB,EAAG7zB,GAAGwL,aAIVpL,MAAKszB,UAAU7zB,OAAS,IAO5ByL,QAAS,SAAU5K,GAEjB,GADA4W,GAAclX,OACTA,KAAKqK,UAAW,CACnBrK,KAAKqK,WAAY,EACjBrK,KAAKuzB,UAAW,EAChBvzB,KAAKM,MAAQA,CAEb,KAAK,GAAIV,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IACzE6zB,EAAG7zB,GAAGsL,QAAQ5K,EAGhBN,MAAKszB,UAAU7zB,OAAS,IAO5B0L,OAAQ,SAAUnG,GAChBkS,GAAclX,MACVA,KAAKqK,YACTrK,KAAKgF,MAAQA,EACbhF,KAAKoK,UAAW,IAKlB+E,QAAS,WACPnP,KAAK8L,YAAa,EAClB9L,KAAKszB,UAAY,KACjBtzB,KAAK0N,UAAY,KACjB1N,KAAKgF,MAAQ,QAIV8F,GACPiV,IAEE2T,GAAmB9gB,GAAG8gB,iBAAoB,SAAUjU,GAGtD,QAASlW,GAAUlB,GACjB,MAAOrI,MAAKO,WAAWgJ,UAAUlB,GAGnC,QAASqrB,GAAiBrrB,EAAU9H,GAClCP,KAAKqI,SAAWA,EAChBrI,KAAKO,WAAaA,EAClBkf,EAAUtc,KAAKnD,KAAMuJ,GAevB,MAxBAmM,IAASge,EAAkBjU,GAY3B5J,GAAc6d,EAAiB1vB,UAAWqb,GAASrb,WACjDoH,YAAa,WACXpL,KAAKqI,SAAS+C,eAEhBF,QAAS,SAAU5K,GACjBN,KAAKqI,SAAS6C,QAAQ5K,IAExB6K,OAAQ,SAAUnG,GAChBhF,KAAKqI,SAAS8C,OAAOnG,MAIlB0uB,GACP3T,IAMEmP,GAAkBtc,GAAGsc,gBAAmB,SAAUzP,GACpD,QAASlW,GAAUlB,GAEjB,MADA6O,IAAclX,MACTA,KAAKqK,WAKNrK,KAAKuzB,SACPlrB,EAAS6C,QAAQlL,KAAKM,OAEtB+H,EAAS+C,cAEJ4L,KATLhX,KAAKszB,UAAU5xB,KAAK2G,GACpBA,EAAS8C,OAAOnL,KAAKgF,OACd,GAAIquB,IAAkBrzB,KAAMqI,IAgBvC,QAAS6mB,GAAgBlqB,GACvBya,EAAUtc,KAAKnD,KAAMuJ,GACrBvJ,KAAKgF,MAAQA,EACbhF,KAAKszB,aACLtzB,KAAK8L,YAAa,EAClB9L,KAAKqK,WAAY,EACjBrK,KAAKuzB,UAAW,EA4ElB,MAxFA7d,IAASwZ,EAAiBzP,GAe1B5J,GAAcqZ,EAAgBlrB,UAAWqb,IAQvCsU,SAAU,WAEN,GADAzc,GAAclX,MACVA,KAAKuzB,SACL,KAAMvzB,MAAKM,KAEf,OAAON,MAAKgF,OAMhBwuB,aAAc,WAAc,MAAOxzB,MAAKszB,UAAU7zB,OAAS,GAI3D2L,YAAa,WAEX,GADA8L,GAAclX,OACVA,KAAKqK,UAAT,CACArK,KAAKqK,WAAY,CACjB,KAAK,GAAIzK,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IACzE6zB,EAAG7zB,GAAGwL,aAGRpL,MAAKszB,UAAU7zB,OAAS,IAM1ByL,QAAS,SAAU5K,GAEjB,GADA4W,GAAclX,OACVA,KAAKqK,UAAT,CACArK,KAAKqK,WAAY,EACjBrK,KAAKuzB,UAAW,EAChBvzB,KAAKM,MAAQA,CAEb,KAAK,GAAIV,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IACzE6zB,EAAG7zB,GAAGsL,QAAQ5K,EAGhBN,MAAKszB,UAAU7zB,OAAS,IAM1B0L,OAAQ,SAAUnG,GAEhB,GADAkS,GAAclX,OACVA,KAAKqK,UAAT,CACArK,KAAKgF,MAAQA,CACb,KAAK,GAAIpF,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IACzE6zB,EAAG7zB,GAAGuL,OAAOnG,KAMjBmK,QAAS,WACPnP,KAAK8L,YAAa,EAClB9L,KAAKszB,UAAY,KACjBtzB,KAAKgF,MAAQ,KACbhF,KAAK0N,UAAY,QAIdwhB,GACPnP,IAMEwP,GAAgB3c,GAAG2c,cAAiB,SAAU9P,GAIhD,QAASmU,GAA0BriB,EAASlJ,GAC1C,MAAO0O,IAAiB,WACtB1O,EAAS8G,WACRoC,EAAQzF,YAAcyF,EAAQ+hB,UAAU3c,OAAOpF,EAAQ+hB,UAAU5yB,QAAQ2H,GAAW,KAIzF,QAASkB,GAAUlB,GACjB,GAAIwrB,GAAK,GAAIpT,IAAkBzgB,KAAKwI,UAAWH,GAC7Ce,EAAewqB,EAA0B5zB,KAAM6zB,EACjD3c,IAAclX,MACdA,KAAK8zB,MAAM9zB,KAAKwI,UAAUyE,OAC1BjN,KAAKszB,UAAU5xB,KAAKmyB,EAEpB,KAAK,GAAIj0B,GAAI,EAAGJ,EAAMQ,KAAK2N,EAAElO,OAAYD,EAAJI,EAASA,IAC5Ci0B,EAAG1oB,OAAOnL,KAAK2N,EAAE/N,GAAGoF,MAUtB,OAPIhF,MAAKuzB,SACPM,EAAG3oB,QAAQlL,KAAKM,OACPN,KAAKqK,WACdwpB,EAAGzoB,cAGLyoB,EAAGjT,eACIxX,EAWT,QAASmmB,GAAcF,EAAYC,EAAY9mB,GAC7CxI,KAAKqvB,WAA2B,MAAdA,EAAqBlnB,EAAiBknB,EACxDrvB,KAAKsvB,WAA2B,MAAdA,EAAqBnnB,EAAiBmnB,EACxDtvB,KAAKwI,UAAYA,GAAaG,GAC9B3I,KAAK2N,KACL3N,KAAKszB,aACLtzB,KAAKqK,WAAY,EACjBrK,KAAK8L,YAAa,EAClB9L,KAAKuzB,UAAW,EAChBvzB,KAAKM,MAAQ,KACbmf,EAAUtc,KAAKnD,KAAMuJ,GAhDvB,GAAIpB,GAAiBH,KAAK4c,IAAI,EAAG,IAAM,CAgIvC,OAlGAlP,IAAS6Z,EAAe9P,GAqBxB5J,GAAc0Z,EAAcvrB,UAAWqb,GAASrb,WAK9CwvB,aAAc,WACZ,MAAOxzB,MAAKszB,UAAU7zB,OAAS,GAEjCq0B,MAAO,SAAU7mB,GACf,KAAOjN,KAAK2N,EAAElO,OAASO,KAAKqvB,YAC1BrvB,KAAK2N,EAAEU,OAET,MAAOrO,KAAK2N,EAAElO,OAAS,GAAMwN,EAAMjN,KAAK2N,EAAE,GAAGmiB,SAAY9vB,KAAKsvB,YAC5DtvB,KAAK2N,EAAEU,SAOXlD,OAAQ,SAAUnG,GAEhB,GADAkS,GAAclX,OACVA,KAAKqK,UAAT,CACA,GAAI4C,GAAMjN,KAAKwI,UAAUyE,KACzBjN,MAAK2N,EAAEjM,MAAOouB,SAAU7iB,EAAKjI,MAAOA,IACpChF,KAAK8zB,MAAM7mB,EAEX,KAAK,GAAIrN,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IAAK,CAC9E,GAAIyI,GAAWorB,EAAG7zB,EAClByI,GAAS8C,OAAOnG,GAChBqD,EAASuY,kBAOb1V,QAAS,SAAU5K,GAEjB,GADA4W,GAAclX,OACVA,KAAKqK,UAAT,CACArK,KAAKqK,WAAY,EACjBrK,KAAKM,MAAQA,EACbN,KAAKuzB,UAAW,CAChB,IAAItmB,GAAMjN,KAAKwI,UAAUyE,KACzBjN,MAAK8zB,MAAM7mB,EACX,KAAK,GAAIrN,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IAAK,CAC9E,GAAIyI,GAAWorB,EAAG7zB,EAClByI,GAAS6C,QAAQ5K,GACjB+H,EAASuY,eAEX5gB,KAAKszB,UAAU7zB,OAAS,IAK1B2L,YAAa,WAEX,GADA8L,GAAclX,OACVA,KAAKqK,UAAT,CACArK,KAAKqK,WAAY,CACjB,IAAI4C,GAAMjN,KAAKwI,UAAUyE,KACzBjN,MAAK8zB,MAAM7mB,EACX,KAAK,GAAIrN,GAAI,EAAG6zB,EAAKn0B,EAAWU,KAAKszB,WAAY9zB,EAAMi0B,EAAGh0B,OAAYD,EAAJI,EAASA,IAAK,CAC9E,GAAIyI,GAAWorB,EAAG7zB,EAClByI,GAAS+C,cACT/C,EAASuY,eAEX5gB,KAAKszB,UAAU7zB,OAAS,IAK1B0P,QAAS,WACPnP,KAAK8L,YAAa,EAClB9L,KAAKszB,UAAY,QAId/D,GACPxP,GAKFnN,IAAGmhB,OAAU,SAAUtU,GAGrB,QAASsU,KACPtU,EAAUtc,KAAKnD,MAajB,MAhBA0V,IAASqe,EAAQtU,GASjBsU,EAAO/vB,UAAU+sB,MAAQ,WAAc/wB,KAAKmL,QAAO,IAKnD4oB,EAAO/vB,UAAUgtB,OAAS,WAAchxB,KAAKmL,QAAO,IAE7C4oB,GACPxR,IAEmB,kBAAVyR,SAA6C,gBAAdA,QAAOC,KAAmBD,OAAOC,KACzE1sB,GAAKqL,GAAKA,GAEVohB,OAAO,WACL,MAAOphB,OAEAX,IAAeM,GAEpBE,IACDF,GAAWL,QAAUU,IAAIA,GAAKA,GAE/BX,GAAYW,GAAKA,GAInBrL,GAAKqL,GAAKA,EAIZ,IAAI1Q,IAAcC,MAElBgB,KAAKnD"} \ No newline at end of file diff --git a/node_modules/rx-lite/rx.lite.min.js b/node_modules/rx-lite/rx.lite.min.js deleted file mode 100644 index ed43db2..0000000 --- a/node_modules/rx-lite/rx.lite.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/ -(function(a){function b(a){for(var b=a.length,c=new Array(b),d=0;b>d;d++)c[d]=a[d];return c}function c(a){return function(){try{return a.apply(this,arguments)}catch(b){return sa.e=b,sa}}}function d(a){throw a}function e(a,b){if(ua&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(ya)){for(var c=[],d=b;d;d=d.source)d.stack&&c.unshift(d.stack);c.unshift(a.stack);var e=c.join("\n"+ya+"\n");a.stack=f(e)}}function f(a){for(var b=a.split("\n"),c=[],d=0,e=b.length;e>d;d++){var f=b[d];g(f)||h(f)||!f||c.push(f)}return c.join("\n")}function g(a){var b=j(a);if(!b)return!1;var c=b[0],d=b[1];return c===wa&&d>=xa&&ed>=d}function h(a){return-1!==a.indexOf("(module.js:")||-1!==a.indexOf("(node.js:")}function i(){if(ua)try{throw new Error}catch(a){var b=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=j(c);if(!d)return;return wa=d[0],d[1]}}function j(a){var b=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(a);if(b)return[b[1],Number(b[2])];var c=/at ([^ ]+):(\d+):(?:\d+)$/.exec(a);if(c)return[c[1],Number(c[2])];var d=/.*@(.+):(\d+)$/.exec(a);return d?[d[1],Number(d[2])]:void 0}function k(a){var b=[];if(!gb(a))return b;fb.nonEnumArgs&&a.length&&hb(a)&&(a=jb.call(a));var c=fb.enumPrototypes&&"function"==typeof a,d=fb.enumErrorProps&&(a===_a||a instanceof Error);for(var e in a)c&&"prototype"==e||d&&("message"==e||"name"==e)||b.push(e);if(fb.nonEnumShadows&&a!==ab){var f=a.constructor,g=-1,h=Na;if(a===(f&&f.prototype))var i=a===bb?Xa:a===_a?Sa:Ya.call(a),j=eb[i];for(;++g-1:void 0});return c.pop(),d.pop(),q}function p(a,b){for(var c=new Array(a),d=0;a>d;d++)c[d]=b();return c}function q(a){this._s=a}function r(a){this._s=a,this._l=a.length,this._i=0}function s(a){this._a=a}function t(a){this._a=a,this._l=x(a),this._i=0}function u(a){return"number"==typeof a&&ia.isFinite(a)}function v(b){var c,d=b[Ga];if(!d&&"string"==typeof b)return c=new q(b),c[Ga]();if(!d&&b.length!==a)return c=new s(b),c[Ga]();if(!d)throw new TypeError("Object is not iterable");return b[Ga]()}function w(a){var b=+a;return 0===b?b:isNaN(b)?b:0>b?-1:1}function x(a){var b=+a.length;return isNaN(b)?0:0!==b&&u(b)?(b=w(b)*Math.floor(Math.abs(b)),0>=b?0:b>gc?gc:b):b}function y(a,b){this.observer=a,this.parent=b}function z(a,b){return yb(a)||(a=Cb),new ic(b,a)}function A(a,b){this.observer=a,this.parent=b}function B(a,b){this.observer=a,this.parent=b}function C(a,b){return new Yc(function(c){var d=new tb,e=new ub;return e.setDisposable(d),d.setDisposable(a.subscribe(new uc(c,e,b))),e},a)}function D(){return!1}function E(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function D(){return!1}function D(){return!1}function F(){return[]}function E(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function D(){return!1}function F(){return[]}function E(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b}function G(a){return function(b){return a.subscribe(b)}}function H(a,b){this.o=a,this.accumulator=b.accumulator,this.hasSeed=b.hasSeed,this.seed=b.seed,this.hasAccumulation=!1,this.accumulation=null,this.hasValue=!1,this.isStopped=!1}function I(b,c){return function(d){for(var e=d,f=0;c>f;f++){var g=e[b[f]];if("undefined"==typeof g)return a;e=g}return e}}function J(a,b,c,d){var e=new ad;return d.push(K(e,b,c)),a.apply(b,d),e.asObservable()}function K(a,b,c){return function(){for(var d=arguments.length,e=new Array(d),f=0;d>f;f++)e[f]=arguments[f];if(ra(c)){if(e=ta(c).apply(b,e),e===sa)return a.onError(e.e);a.onNext(e)}else e.length<=1?a.onNext(e[0]):a.onNext(e);a.onCompleted()}}function L(a,b,c,d){var e=new ad;return d.push(M(e,b,c)),a.apply(b,d),e.asObservable()}function M(a,b,c){return function(){var d=arguments[0];if(d)return a.onError(d);for(var e=arguments.length,f=[],g=1;e>g;g++)f[g-1]=arguments[g];if(ra(c)){var f=ta(c).apply(b,f);if(f===sa)return a.onError(f.e);a.onNext(f)}else f.length<=1?a.onNext(f[0]):a.onNext(f);a.onCompleted()}}function N(a,b,c){this._e=a,this._n=b,this._fn=c,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function O(a,b,c){var d=new mb,e=Object.prototype.toString.call(a);if("[object NodeList]"===e||"[object HTMLCollection]"===e)for(var f=0,g=a.length;g>f;f++)d.add(O(a.item(f),b,c));else a&&d.add(new N(a,b,c));return d}function P(a,b){return function(){var c=arguments[0];return ra(b)&&(c=ta(b).apply(null,arguments),c===sa)?a.onError(c.e):void a.onNext(c)}}function Q(a,b){return new Yc(function(c){return b.scheduleWithAbsolute(a,function(){c.onNext(0),c.onCompleted()})})}function R(a,b,c){return new Yc(function(d){var e=a,f=xb(b);return c.scheduleRecursiveWithAbsoluteAndState(0,e,function(a,b){if(f>0){var g=c.now();e+=f,g>=e&&(e=g+f)}d.onNext(a),b(a+1,e)})})}function S(a,b){return new Yc(function(c){return b.scheduleWithRelative(xb(a),function(){c.onNext(0),c.onCompleted()})})}function T(a,b,c){return a===b?new Yc(function(a){return c.schedulePeriodicWithState(0,b,function(b){return a.onNext(b),b+1})}):ac(function(){return R(c.now()+a,b,c)})}function U(a,b,c){return new Yc(function(d){var e,f=!1,g=new ub,h=null,i=[],j=!1;return e=a.materialize().timestamp(c).subscribe(function(a){var e,k;"E"===a.value.kind?(i=[],i.push(a),h=a.value.exception,k=!j):(i.push({value:a.value,timestamp:a.timestamp+b}),k=!f,f=!0),k&&(null!==h?d.onError(h):(e=new tb,g.setDisposable(e),e.setDisposable(c.scheduleRecursiveWithRelative(b,function(a){var b,e,g,k;if(null===h){j=!0;do g=null,i.length>0&&i[0].timestamp-c.now()<=0&&(g=i.shift().value),null!==g&&g.accept(d);while(null!==g);k=!1,e=0,i.length>0?(k=!0,e=Math.max(0,i[0].timestamp-c.now())):f=!1,b=h,j=!1,null!==b?d.onError(b):k&&a(e)}}))))}),new mb(e,g)},a)}function V(a,b,c){return ac(function(){return U(a,b-c.now(),c)})}function W(a,b,c){var d,e;return ra(b)?e=b:(d=b,e=c),new Yc(function(b){function c(){i.setDisposable(a.subscribe(function(a){var c=ta(e)(a);if(c===sa)return b.onError(c.e);var d=new tb;g.add(d),d.setDisposable(c.subscribe(function(){b.onNext(a),g.remove(d),f()},function(a){b.onError(a)},function(){b.onNext(a),g.remove(d),f()}))},function(a){b.onError(a)},function(){h=!0,i.dispose(),f()}))}function f(){h&&0===g.length&&b.onCompleted()}var g=new mb,h=!1,i=new ub;return d?i.setDisposable(d.subscribe(c,function(a){b.onError(a)},c)):c(),new mb(i,g)},this)}function X(a,b,c){return yb(c)||(c=Hb),new Yc(function(d){var e,f=new ub,g=!1,h=0,i=a.subscribe(function(a){g=!0,e=a,h++;var i=h,j=new tb;f.setDisposable(j),j.setDisposable(c.scheduleWithRelative(b,function(){g&&h===i&&d.onNext(e),g=!1}))},function(a){f.dispose(),d.onError(a),g=!1,h++},function(){f.dispose(),g&&d.onNext(e),d.onCompleted(),g=!1,h++});return new mb(i,f)},this)}function Y(a,b){return new Yc(function(c){var d,e=!1,f=new ub,g=0,h=a.subscribe(function(a){var h=ta(b)(a);if(h===sa)return c.onError(h.e);qa(h)&&(h=Qc(h)),e=!0,d=a,g++;var i=g,j=new tb;f.setDisposable(j),j.setDisposable(h.subscribe(function(){e&&g===i&&c.onNext(d),e=!1,j.dispose()},function(a){c.onError(a)},function(){e&&g===i&&c.onNext(d),e=!1,j.dispose()}))},function(a){f.dispose(),c.onError(a),e=!1,g++},function(){f.dispose(),e&&c.onNext(d),c.onCompleted(),e=!1,g++});return new mb(h,f)},a)}function Z(a,b){return new Yc(function(c){function d(){g&&(g=!1,c.onNext(e)),f&&c.onCompleted()}var e,f=!1,g=!1,h=new tb;return h.setDisposable(a.subscribe(function(a){g=!0,e=a},function(a){c.onError(a)},function(){f=!0,h.dispose()})),new mb(h,b.subscribe(d,function(a){c.onError(a)},d))},a)}function $(a,b,c,d){return ra(b)&&(d=c,c=b,b=mc()),d||(d=tc(new Tc)),new Yc(function(e){function f(a){var b=k,c=new tb;i.setDisposable(c),c.setDisposable(a.subscribe(function(){k===b&&h.setDisposable(d.subscribe(e)),c.dispose()},function(a){k===b&&e.onError(a)},function(){k===b&&h.setDisposable(d.subscribe(e))}))}function g(){var a=!l;return a&&k++,a}var h=new ub,i=new ub,j=new tb;h.setDisposable(j);var k=0,l=!1;return f(b),j.setDisposable(a.subscribe(function(a){if(g()){e.onNext(a);var b=ta(c)(a);if(b===sa)return e.onError(b.e);f(qa(b)?Qc(b):b)}},function(a){g()&&e.onError(a)},function(){g()&&e.onCompleted()})),new mb(h,i)},a)}function _(a,b,c,d){if(null==c)throw new Error("other or scheduler must be specified");yb(c)&&(d=c,c=tc(new Tc)),c instanceof Error&&(c=tc(c)),yb(d)||(d=Hb);var e=b instanceof Date?"scheduleWithAbsolute":"scheduleWithRelative";return new Yc(function(f){function g(){var a=h;l.setDisposable(d[e](b,function(){h===a&&(qa(c)&&(c=Qc(c)),j.setDisposable(c.subscribe(f)))}))}var h=0,i=new tb,j=new ub,k=!1,l=new ub;return j.setDisposable(i),g(),i.setDisposable(a.subscribe(function(a){k||(h++,f.onNext(a),g())},function(a){k||(h++,f.onError(a))},function(){k||(h++,f.onCompleted())})),new mb(j,l)},a)}function aa(a,b,c){return new Yc(function(d){function e(a,b){if(j[b]=a,g[b]=!0,h||(h=g.every(la))){if(f)return d.onError(f);var e=ta(c).apply(null,j);if(e===sa)return d.onError(e.e);d.onNext(e)}i&&j[1]&&d.onCompleted()}var f,g=[!1,!1],h=!1,i=!1,j=new Array(2);return new mb(a.subscribe(function(a){e(a,0)},function(a){j[1]?d.onError(a):f=a},function(){i=!0,j[1]&&d.onCompleted()}),b.subscribe(function(a){e(a,1)},function(a){d.onError(a)},function(){i=!0,e(!0,1)}))},a)}var ba={"function":!0,object:!0},ca=ba[typeof exports]&&exports&&!exports.nodeType&&exports,da=ba[typeof self]&&self.Object&&self,ea=ba[typeof window]&&window&&window.Object&&window,fa=ba[typeof module]&&module&&!module.nodeType&&module,ga=fa&&fa.exports===ca&&ca,ha=ca&&fa&&"object"==typeof global&&global&&global.Object&&global,ia=ia=ha||ea!==(this&&this.window)&&ea||da||this,ja={internals:{},config:{Promise:ia.Promise},helpers:{}},ka=ja.helpers.noop=function(){},la=ja.helpers.identity=function(a){return a},ma=ja.helpers.defaultNow=Date.now,na=ja.helpers.defaultComparer=function(a,b){return ib(a,b)},oa=ja.helpers.defaultSubComparer=function(a,b){return a>b?1:b>a?-1:0},pa=(ja.helpers.defaultKeySerializer=function(a){return a.toString()},ja.helpers.defaultError=function(a){throw a}),qa=ja.helpers.isPromise=function(a){return!!a&&"function"!=typeof a.subscribe&&"function"==typeof a.then},ra=ja.helpers.isFunction=function(){var a=function(a){return"function"==typeof a||!1};return a(/x/)&&(a=function(a){return"function"==typeof a&&"[object Function]"==Ya.call(a)}),a}(),sa={e:{}},ta=ja.internals.tryCatch=function(a){if(!ra(a))throw new TypeError("fn must be a function");return c(a)};ja.config.longStackSupport=!1;var ua=!1,va=ta(function(){throw new Error})();ua=!!va.e&&!!va.e.stack;var wa,xa=i(),ya="From previous event:",za=ja.EmptyError=function(){this.message="Sequence contains no elements.",this.name="EmptyError",Error.call(this)};za.prototype=Object.create(Error.prototype);var Aa=ja.ObjectDisposedError=function(){this.message="Object has been disposed",this.name="ObjectDisposedError",Error.call(this)};Aa.prototype=Object.create(Error.prototype);var Ba=ja.ArgumentOutOfRangeError=function(){this.message="Argument out of range",this.name="ArgumentOutOfRangeError",Error.call(this)};Ba.prototype=Object.create(Error.prototype);var Ca=ja.NotSupportedError=function(a){this.message=a||"This operation is not supported",this.name="NotSupportedError",Error.call(this)};Ca.prototype=Object.create(Error.prototype);var Da=ja.NotImplementedError=function(a){this.message=a||"This operation is not implemented",this.name="NotImplementedError",Error.call(this)};Da.prototype=Object.create(Error.prototype);var Ea=ja.helpers.notImplemented=function(){throw new Da},Fa=ja.helpers.notSupported=function(){throw new Ca},Ga="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";ia.Set&&"function"==typeof(new ia.Set)["@@iterator"]&&(Ga="@@iterator");var Ha=ja.doneEnumerator={done:!0,value:a},Ia=ja.helpers.isIterable=function(b){return b[Ga]!==a},Ja=ja.helpers.isArrayLike=function(b){return b&&b.length!==a};ja.helpers.iterator=Ga;var Ka,La=ja.internals.bindCallback=function(a,b,c){if("undefined"==typeof b)return a;switch(c){case 0:return function(){return a.call(b)};case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}},Ma=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Na=Ma.length,Oa="[object Arguments]",Pa="[object Array]",Qa="[object Boolean]",Ra="[object Date]",Sa="[object Error]",Ta="[object Function]",Ua="[object Number]",Va="[object Object]",Wa="[object RegExp]",Xa="[object String]",Ya=Object.prototype.toString,Za=Object.prototype.hasOwnProperty,$a=Ya.call(arguments)==Oa,_a=Error.prototype,ab=Object.prototype,bb=String.prototype,cb=ab.propertyIsEnumerable;try{Ka=!(Ya.call(document)==Va&&!({toString:0}+""))}catch(db){Ka=!0}var eb={};eb[Pa]=eb[Ra]=eb[Ua]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},eb[Qa]=eb[Xa]={constructor:!0,toString:!0,valueOf:!0},eb[Sa]=eb[Ta]=eb[Wa]={constructor:!0,toString:!0},eb[Va]={constructor:!0};var fb={};!function(){var a=function(){this.x=1},b=[];a.prototype={valueOf:1,y:1};for(var c in new a)b.push(c);for(c in arguments);fb.enumErrorProps=cb.call(_a,"message")||cb.call(_a,"name"),fb.enumPrototypes=cb.call(a,"prototype"),fb.nonEnumArgs=0!=c,fb.nonEnumShadows=!/valueOf/.test(b)}(1);var gb=ja.internals.isObject=function(a){var b=typeof a;return a&&("function"==b||"object"==b)||!1},hb=function(a){return a&&"object"==typeof a?Ya.call(a)==Oa:!1};$a||(hb=function(a){return a&&"object"==typeof a?Za.call(a,"callee"):!1});var ib=ja.internals.isEqual=function(a,b){return o(a,b,[],[])},jb=({}.hasOwnProperty,Array.prototype.slice),kb=ja.internals.inherits=function(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c},lb=ja.internals.addProperties=function(a){for(var b=[],c=1,d=arguments.length;d>c;c++)b.push(arguments[c]);for(var e=0,f=b.length;f>e;e++){var g=b[e];for(var h in g)a[h]=g[h]}},mb=(ja.internals.addRef=function(a,b){return new Yc(function(c){return new mb(b.getDisposable(),a.subscribe(c))})},ja.CompositeDisposable=function(){var a,b,c=[];if(Array.isArray(arguments[0]))c=arguments[0],b=c.length;else for(b=arguments.length,c=new Array(b),a=0;b>a;a++)c[a]=arguments[a];for(a=0;b>a;a++)if(!rb(c[a]))throw new TypeError("Not a disposable");this.disposables=c,this.isDisposed=!1,this.length=c.length}),nb=mb.prototype;nb.add=function(a){this.isDisposed?a.dispose():(this.disposables.push(a),this.length++)},nb.remove=function(a){var b=!1;if(!this.isDisposed){var c=this.disposables.indexOf(a);-1!==c&&(b=!0,this.disposables.splice(c,1),this.length--,a.dispose())}return b},nb.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var a=this.disposables.length,b=new Array(a),c=0;a>c;c++)b[c]=this.disposables[c];for(this.disposables=[],this.length=0,c=0;a>c;c++)b[c].dispose()}};var ob=ja.Disposable=function(a){this.isDisposed=!1,this.action=a||ka};ob.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var pb=ob.create=function(a){return new ob(a)},qb=ob.empty={dispose:ka},rb=ob.isDisposable=function(a){return a&&ra(a.dispose)},sb=ob.checkDisposed=function(a){if(a.isDisposed)throw new Aa},tb=ja.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};tb.prototype.getDisposable=function(){return this.current},tb.prototype.setDisposable=function(a){if(this.current)throw new Error("Disposable has already been assigned");var b=this.isDisposed;!b&&(this.current=a),b&&a&&a.dispose()},tb.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var a=this.current;this.current=null}a&&a.dispose()};var ub=ja.SerialDisposable=function(){this.isDisposed=!1,this.current=null};ub.prototype.getDisposable=function(){return this.current},ub.prototype.setDisposable=function(a){var b=this.isDisposed;if(!b){var c=this.current;this.current=a}c&&c.dispose(),b&&a&&a.dispose()},ub.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var a=this.current;this.current=null}a&&a.dispose()};var vb=(ja.RefCountDisposable=function(){function a(a){this.disposable=a,this.disposable.count++,this.isInnerDisposed=!1}function b(a){this.underlyingDisposable=a,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}return a.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},b.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},b.prototype.getDisposable=function(){return this.isDisposed?qb:new a(this)},b}(),ja.internals.ScheduledItem=function(a,b,c,d,e){this.scheduler=a,this.state=b,this.action=c,this.dueTime=d,this.comparer=e||oa,this.disposable=new tb});vb.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},vb.prototype.compareTo=function(a){return this.comparer(this.dueTime,a.dueTime)},vb.prototype.isCancelled=function(){return this.disposable.isDisposed},vb.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var wb=ja.Scheduler=function(){function a(a,b,c,d){this.now=a,this._schedule=b,this._scheduleRelative=c,this._scheduleAbsolute=d}function b(a,b){return b(),qb}a.isScheduler=function(b){return b instanceof a};var c=a.prototype;return c.schedule=function(a){return this._schedule(a,b)},c.scheduleWithState=function(a,b){return this._schedule(a,b)},c.scheduleWithRelative=function(a,c){return this._scheduleRelative(c,a,b)},c.scheduleWithRelativeAndState=function(a,b,c){return this._scheduleRelative(a,b,c)},c.scheduleWithAbsolute=function(a,c){return this._scheduleAbsolute(c,a,b)},c.scheduleWithAbsoluteAndState=function(a,b,c){return this._scheduleAbsolute(a,b,c)},a.now=ma,a.normalize=function(a){return 0>a&&(a=0),a},a}(),xb=wb.normalize,yb=wb.isScheduler;!function(a){function b(a,b){function c(b){function d(a,b){return g?f.remove(i):h=!0,e(b,c),qb}var g=!1,h=!1,i=a.scheduleWithState(b,d);h||(f.add(i),g=!0)}var d=b[0],e=b[1],f=new mb;return e(d,c),f}function c(a,b,c){function d(b,e){function h(a,b){return i?g.remove(k):j=!0,f(b,d),qb}var i=!1,j=!1,k=a[c](b,e,h);j||(g.add(k),i=!0)}var e=b[0],f=b[1],g=new mb;return f(e,d),g}function d(a,b){return c(a,b,"scheduleWithRelativeAndState")}function e(a,b){return c(a,b,"scheduleWithAbsoluteAndState")}function f(a,b){a(function(c){b(a,c)})}a.scheduleRecursive=function(a){return this.scheduleRecursiveWithState(a,f)},a.scheduleRecursiveWithState=function(a,c){return this.scheduleWithState([a,c],b)},a.scheduleRecursiveWithRelative=function(a,b){return this.scheduleRecursiveWithRelativeAndState(b,a,f)},a.scheduleRecursiveWithRelativeAndState=function(a,b,c){return this._scheduleRelative([a,c],b,d)},a.scheduleRecursiveWithAbsolute=function(a,b){return this.scheduleRecursiveWithAbsoluteAndState(b,a,f)},a.scheduleRecursiveWithAbsoluteAndState=function(a,b,c){return this._scheduleAbsolute([a,c],b,e)}}(wb.prototype),function(a){wb.prototype.schedulePeriodic=function(a,b){return this.schedulePeriodicWithState(null,a,b)},wb.prototype.schedulePeriodicWithState=function(a,b,c){if("undefined"==typeof ia.setInterval)throw new Ca;b=xb(b);var d=a,e=ia.setInterval(function(){d=c(d)},b);return pb(function(){ia.clearInterval(e)})}}(wb.prototype);var zb,Ab,Bb=wb.immediate=function(){function a(a,b){return b(this,a)}return new wb(ma,a,Fa,Fa)}(),Cb=wb.currentThread=function(){function a(){for(;c.length>0;){var a=c.shift();!a.isCancelled()&&a.invoke()}}function b(b,e){var f=new vb(this,b,e,this.now());if(c)c.push(f);else{c=[f];var g=ta(a)();if(c=null,g===sa)return d(g.e)}return f.disposable}var c,e=new wb(ma,b,Fa,Fa);return e.scheduleRequired=function(){return!c},e}(),Db=(ja.internals.SchedulePeriodicRecursive=function(){function a(a,b){b(0,this._period);try{this._state=this._action(this._state)}catch(c){throw this._cancel.dispose(),c}}function b(a,b,c,d){this._scheduler=a,this._state=b,this._period=c,this._action=d}return b.prototype.start=function(){var b=new tb;return this._cancel=b,b.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,a.bind(this))),b},b}(),function(){var a,b=ka;if(ia.setTimeout)a=ia.setTimeout,b=ia.clearTimeout;else{if(!ia.WScript)throw new Ca;a=function(a,b){ia.WScript.Sleep(b),a()}}return{setTimeout:a,clearTimeout:b}}()),Eb=Db.setTimeout,Fb=Db.clearTimeout;!function(){function a(b){if(g)Eb(function(){a(b)},0);else{var c=f[b];if(c){g=!0;var e=ta(c)();if(Ab(b),g=!1,e===sa)return d(e.e)}}}function b(){if(!ia.postMessage||ia.importScripts)return!1;var a=!1,b=ia.onmessage;return ia.onmessage=function(){a=!0},ia.postMessage("","*"),ia.onmessage=b,a}function c(b){"string"==typeof b.data&&b.data.substring(0,j.length)===j&&a(b.data.substring(j.length))}var e=1,f={},g=!1;Ab=function(a){delete f[a]};var h=RegExp("^"+String(Ya).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),i="function"==typeof(i=ha&&ga&&ha.setImmediate)&&!h.test(i)&&i;if(ra(i))zb=function(b){var c=e++;return f[c]=b,i(function(){a(c)}),c};else if("undefined"!=typeof process&&"[object process]"==={}.toString.call(process))zb=function(b){var c=e++;return f[c]=b,process.nextTick(function(){a(c)}),c};else if(b()){var j="ms.rx.schedule"+Math.random();ia.addEventListener?ia.addEventListener("message",c,!1):ia.attachEvent?ia.attachEvent("onmessage",c):ia.onmessage=c,zb=function(a){var b=e++;return f[b]=a,ia.postMessage(j+currentId,"*"),b}}else if(ia.MessageChannel){var k=new ia.MessageChannel;k.port1.onmessage=function(b){a(b.data)},zb=function(a){var b=e++;return f[b]=a,k.port2.postMessage(b),b}}else zb="document"in ia&&"onreadystatechange"in ia.document.createElement("script")?function(b){var c=ia.document.createElement("script"),d=e++;return f[d]=b,c.onreadystatechange=function(){a(d),c.onreadystatechange=null,c.parentNode.removeChild(c),c=null},ia.document.documentElement.appendChild(c),d}:function(b){var c=e++;return f[c]=b,Eb(function(){a(c)},0),c}}();var Gb,Hb=wb.timeout=wb["default"]=function(){function a(a,b){var c=this,d=new tb,e=zb(function(){!d.isDisposed&&d.setDisposable(b(c,a))});return new mb(d,pb(function(){Ab(e)}))}function b(a,b,c){var d=this,e=wb.normalize(b),f=new tb;if(0===e)return d.scheduleWithState(a,c);var g=Eb(function(){!f.isDisposed&&f.setDisposable(c(d,a))},e);return new mb(f,pb(function(){Fb(g)}))}function c(a,b,c){return this.scheduleWithRelativeAndState(a,b-this.now(),c)}return new wb(ma,a,b,c)}(),Ib=ja.Notification=function(){function a(a,b,c,d,e,f){this.kind=a,this.value=b,this.exception=c,this._accept=d,this._acceptObservable=e,this.toString=f}return a.prototype.accept=function(a,b,c){return a&&"object"==typeof a?this._acceptObservable(a):this._accept(a,b,c)},a.prototype.toObservable=function(a){var b=this;return yb(a)||(a=Bb),new Yc(function(c){return a.scheduleWithState(b,function(a,b){b._acceptObservable(c),"N"===b.kind&&c.onCompleted()})})},a}(),Jb=Ib.createOnNext=function(){function a(a){return a(this.value)}function b(a){return a.onNext(this.value)}function c(){return"OnNext("+this.value+")"}return function(d){return new Ib("N",d,null,a,b,c)}}(),Kb=Ib.createOnError=function(){function a(a,b){return b(this.exception)}function b(a){return a.onError(this.exception)}function c(){return"OnError("+this.exception+")"}return function(d){return new Ib("E",null,d,a,b,c)}}(),Lb=Ib.createOnCompleted=function(){function a(a,b,c){return c()}function b(a){return a.onCompleted()}function c(){return"OnCompleted()"}return function(){return new Ib("C",null,null,a,b,c)}}(),Mb=ja.Observer=function(){},Nb=Mb.create=function(a,b,c){return a||(a=ka),b||(b=pa),c||(c=ka),new Pb(a,b,c)},Ob=ja.internals.AbstractObserver=function(a){function b(){this.isStopped=!1}return kb(b,a),b.prototype.next=Ea,b.prototype.error=Ea,b.prototype.completed=Ea,b.prototype.onNext=function(a){!this.isStopped&&this.next(a)},b.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.error(a))},b.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},b.prototype.dispose=function(){this.isStopped=!0},b.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.error(a),!0)},b}(Mb),Pb=ja.AnonymousObserver=function(a){function b(b,c,d){a.call(this),this._onNext=b,this._onError=c,this._onCompleted=d}return kb(b,a),b.prototype.next=function(a){this._onNext(a)},b.prototype.error=function(a){this._onError(a)},b.prototype.completed=function(){this._onCompleted()},b}(Ob),Qb=ja.Observable=function(){function a(a,b){return function(c){var d=c.onError;return c.onError=function(b){e(b,a),d.call(c,b)},b.call(a,c)}}function b(b){if(ja.config.longStackSupport&&ua){var c=ta(d)(new Error).e;this.stack=c.stack.substring(c.stack.indexOf("\n")+1),this._subscribe=a(this,b)}else this._subscribe=b}return Gb=b.prototype,b.isObservable=function(a){return a&&ra(a.subscribe)},Gb.subscribe=Gb.forEach=function(a,b,c){return this._subscribe("object"==typeof a?a:Nb(a,b,c))},Gb.subscribeOnNext=function(a,b){return this._subscribe(Nb("undefined"!=typeof b?function(c){a.call(b,c)}:a))},Gb.subscribeOnError=function(a,b){return this._subscribe(Nb(null,"undefined"!=typeof b?function(c){a.call(b,c)}:a))},Gb.subscribeOnCompleted=function(a,b){return this._subscribe(Nb(null,null,"undefined"!=typeof b?function(){a.call(b)}:a))},b}(),Rb=ja.internals.ScheduledObserver=function(a){function b(b,c){a.call(this),this.scheduler=b,this.observer=c,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new ub}return kb(b,a),b.prototype.next=function(a){var b=this;this.queue.push(function(){b.observer.onNext(a)})},b.prototype.error=function(a){var b=this;this.queue.push(function(){b.observer.onError(a)})},b.prototype.completed=function(){var a=this;this.queue.push(function(){a.observer.onCompleted()})},b.prototype.ensureActive=function(){var a=!1;!this.hasFaulted&&this.queue.length>0&&(a=!this.isAcquired,this.isAcquired=!0),a&&this.disposable.setDisposable(this.scheduler.scheduleRecursiveWithState(this,function(a,b){var c;if(!(a.queue.length>0))return void(a.isAcquired=!1);c=a.queue.shift();var e=ta(c)();return e===sa?(a.queue=[],a.hasFaulted=!0,d(e.e)):void b(a)}))},b.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposable.dispose()},b}(Ob),Sb=ja.ObservableBase=function(a){function b(a){return a&&ra(a.dispose)?a:ra(a)?pb(a):qb}function c(a,c){var e=c[0],f=c[1],g=ta(f.subscribeCore).call(f,e);return g!==sa||e.fail(sa.e)?void e.setDisposable(b(g)):d(sa.e)}function e(a){var b=new Zc(a),d=[b,this];return Cb.scheduleRequired()?Cb.scheduleWithState(d,c):c(null,d),b}function f(){a.call(this,e)}return kb(f,a),f.prototype.subscribeCore=Ea,f}(Qb),Tb=function(a){function b(b,c,d,e){this.resultSelector=ja.helpers.isFunction(d)?d:null,this.selector=ja.internals.bindCallback(ja.helpers.isFunction(c)?c:function(){return c},e,3),this.source=b,a.call(this)}function c(a,b,c,d){this.i=0,this.selector=b,this.resultSelector=c,this.source=d,this.isStopped=!1,this.o=a}return kb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this.selector,this.resultSelector,this))},c.prototype._wrapResult=function(a,b,c){return this.resultSelector?a.map(function(a,d){return this.resultSelector(b,a,c,d)},this):a},c.prototype.onNext=function(a){if(!this.isStopped){var b=this.i++,c=ta(this.selector)(a,b,this.source);if(c===sa)return this.o.onError(c.e);ja.helpers.isPromise(c)&&(c=ja.Observable.fromPromise(c)),(ja.helpers.isArrayLike(c)||ja.helpers.isIterable(c))&&(c=ja.Observable.from(c)),this.o.onNext(this._wrapResult(c,a,b))}},c.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},c.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},b}(Sb),Ub=ja.internals.Enumerable=function(){},Vb=function(a){function b(b){this.sources=b,a.call(this)}function c(a,b,c){this.o=a,this.s=b,this.e=c,this.isStopped=!1}return kb(b,a),b.prototype.subscribeCore=function(a){var b,d=new ub,e=Bb.scheduleRecursiveWithState(this.sources[Ga](),function(e,f){if(!b){var g=ta(e.next).call(e);if(g===sa)return a.onError(g.e);if(g.done)return a.onCompleted();var h=g.value;qa(h)&&(h=Qc(h));var i=new tb;d.setDisposable(i),i.setDisposable(h.subscribe(new c(a,f,e)))}});return new mb(d,e,pb(function(){b=!0}))},c.prototype.onNext=function(a){this.isStopped||this.o.onNext(a)},c.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},c.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.s(this.e))},c.prototype.dispose=function(){this.isStopped=!0},c.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},b}(Sb);Ub.prototype.concat=function(){return new Vb(this)};var Wb=function(a){function b(b){this.sources=b,a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){var b,c=this.sources[Ga](),d=new ub,e=Bb.scheduleRecursiveWithState(null,function(e,f){if(!b){var g=ta(c.next).call(c);if(g===sa)return a.onError(g.e);if(g.done)return null!==e?a.onError(e):a.onCompleted();var h=g.value;qa(h)&&(h=Qc(h));var i=new tb;d.setDisposable(i),i.setDisposable(h.subscribe(function(b){a.onNext(b)},f,function(){a.onCompleted()}))}});return new mb(d,e,pb(function(){b=!0}))},b}(Sb);Ub.prototype.catchError=function(){return new Wb(this)},Ub.prototype.catchErrorWhen=function(a){var b=this;return new Yc(function(c){var d,e,f=new _c,g=new _c,h=a(f),i=h.subscribe(g),j=b[Ga](),k=new ub,l=Bb.scheduleRecursive(function(a){if(!d){var b=ta(j.next).call(j);if(b===sa)return c.onError(b.e);if(b.done)return void(e?c.onError(e):c.onCompleted());var h=b.value;qa(h)&&(h=Qc(h));var i=new tb,l=new tb;k.setDisposable(new mb(l,i)),i.setDisposable(h.subscribe(function(a){c.onNext(a)},function(b){l.setDisposable(g.subscribe(a,function(a){c.onError(a)},function(){c.onCompleted()})),f.onNext(b)},function(){c.onCompleted()}))}});return new mb(i,k,l,pb(function(){d=!0}))})};var Xb=function(a){function b(a,b){this.v=a,this.c=null==b?-1:b}function c(a){this.v=a.v,this.l=a.c}return kb(b,a),b.prototype[Ga]=function(){return new c(this)},c.prototype.next=function(){return 0===this.l?Ha:(this.l>0&&this.l--,{done:!1,value:this.v})},b}(Ub),Yb=Ub.repeat=function(a,b){return new Xb(a,b)},Zb=function(a){function b(a,b,c){this.s=a,this.fn=b?La(b,c,3):null}function c(a){this.i=-1,this.s=a.s,this.l=this.s.length,this.fn=a.fn}return kb(b,a),b.prototype[Ga]=function(){return new c(this)},c.prototype.next=function(){return++this.ia?(b.onNext(c[a]),e(a+1)):b.onCompleted()}var b=this.observer,c=this.parent.args,d=c.length;return this.parent.scheduler.scheduleRecursiveWithState(0,a)};var jc=Qb.fromArray=function(a,b){return yb(b)||(b=Cb),new ic(a,b)},kc=function(a){function b(){a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){return qb},b}(Sb),lc=new kc,mc=Qb.never=function(){return lc};Qb.of=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return new ic(b,Cb)},Qb.ofWithScheduler=function(a){for(var b=arguments.length,c=new Array(b-1),d=1;b>d;d++)c[d-1]=arguments[d];return new ic(c,a)};var nc=function(a){function b(b,c){this.obj=b,this.keys=Object.keys(b),this.scheduler=c,a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new A(a,this);return b.run()},b}(Sb);A.prototype.run=function(){function a(a,f){if(e>a){var g=d[a];b.onNext([g,c[g]]),f(a+1)}else b.onCompleted()}var b=this.observer,c=this.parent.obj,d=this.parent.keys,e=d.length;return this.parent.scheduler.scheduleRecursiveWithState(0,a)},Qb.pairs=function(a,b){return b||(b=Cb),new nc(a,b)};var oc=function(a){function b(b,c,d){this.start=b,this.rangeCount=c,this.scheduler=d,a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new pc(a,this);return b.run()},b}(Sb),pc=function(){function a(a,b){this.observer=a,this.parent=b}return a.prototype.run=function(){function a(a,e){c>a?(d.onNext(b+a),e(a+1)):d.onCompleted()}var b=this.parent.start,c=this.parent.rangeCount,d=this.observer;return this.parent.scheduler.scheduleRecursiveWithState(0,a)},a}();Qb.range=function(a,b,c){return yb(c)||(c=Cb),new oc(a,b,c)};var qc=function(a){function b(b,c,d){this.value=b,this.repeatCount=null==c?-1:c,this.scheduler=d,a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new B(a,this);return b.run()},b}(Sb);B.prototype.run=function(){function a(a,d){return(-1===a||a>0)&&(b.onNext(c),a>0&&a--),0===a?b.onCompleted():void d(a)}var b=this.observer,c=this.parent.value;return this.parent.scheduler.scheduleRecursiveWithState(this.parent.repeatCount,a)},Qb.repeat=function(a,b,c){return yb(c)||(c=Cb),new qc(a,b,c)};var rc=function(a){function b(b,c){this.value=b,this.scheduler=c,a.call(this)}function c(a,b,c){this.observer=a,this.value=b,this.scheduler=c}function d(a,b){var c=b[0],d=b[1];return d.onNext(c),d.onCompleted(),qb}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new c(a,this.value,this.scheduler);return b.run()},c.prototype.run=function(){var a=[this.value,this.observer];return this.scheduler===Bb?d(null,a):this.scheduler.scheduleWithState(a,d)},b}(Sb),sc=(Qb["return"]=Qb.just=function(a,b){return yb(b)||(b=Bb),new rc(a,b)},function(a){function b(b,c){this.error=b,this.scheduler=c,a.call(this)}function c(a,b){this.o=a,this.p=b}function d(a,b){var c=b[0],d=b[1];d.onError(c)}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new c(a,this);return b.run()},c.prototype.run=function(){return this.p.scheduler.scheduleWithState([this.p.error,this.o],d)},b}(Sb)),tc=Qb["throw"]=function(a,b){return yb(b)||(b=Bb),new sc(a,b)},uc=function(a){function b(b,c,d){this._o=b,this._s=c,this._fn=d,a.call(this)}return kb(b,a),b.prototype.next=function(a){this._o.onNext(a)},b.prototype.completed=function(){return this._o.onCompleted()},b.prototype.error=function(a){var b=ta(this._fn)(a);if(b===sa)return this._o.onError(b.e);qa(b)&&(b=Qc(b));var c=new tb;this._s.setDisposable(c),c.setDisposable(b.subscribe(this._o))},b}(Ob);Gb["catch"]=function(a){return ra(a)?C(this,a):vc([this,a])};var vc=Qb["catch"]=function(){var a;if(Array.isArray(arguments[0]))a=arguments[0];else{var b=arguments.length;a=new Array(b);for(var c=0;b>c;c++)a[c]=arguments[c]}return $b(a).catchError()};Gb.combineLatest=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return Array.isArray(b[0])?b[0].unshift(this):b.unshift(this),wc.apply(this,b)};var wc=Qb.combineLatest=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=ra(b[a-1])?b.pop():E;return Array.isArray(b[0])&&(b=b[0]),new Yc(function(a){function c(b){if(g[b]=!0,h||(h=g.every(la))){try{var c=d.apply(null,j)}catch(e){return a.onError(e)}a.onNext(c)}else i.filter(function(a,c){return c!==b}).every(la)&&a.onCompleted()}function e(b){i[b]=!0,i.every(la)&&a.onCompleted()}for(var f=b.length,g=p(f,D),h=!1,i=p(f,D),j=new Array(f),k=new Array(f),l=0;f>l;l++)!function(d){var f=b[d],g=new tb;qa(f)&&(f=Qc(f)),g.setDisposable(f.subscribe(function(a){j[d]=a,c(d)},function(b){a.onError(b)},function(){e(d)})),k[d]=g}(l);return new mb(k)},this)};Gb.concat=function(){for(var a=[],b=0,c=arguments.length;c>b;b++)a.push(arguments[b]);return a.unshift(this),yc.apply(null,a)};var xc=function(a){function b(b){this.sources=b,a.call(this)}function c(a,b){this.sources=a,this.o=b}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new c(this.sources,a);return b.run()},c.prototype.run=function(){var a,b=new ub,c=this.sources,d=c.length,e=this.o,f=Bb.scheduleRecursiveWithState(0,function(f,g){if(!a){if(f===d)return e.onCompleted();var h=c[f];qa(h)&&(h=Qc(h));var i=new tb;b.setDisposable(i),i.setDisposable(h.subscribe(function(a){e.onNext(a)},function(a){e.onError(a)},function(){g(f+1)}))}});return new mb(b,f,pb(function(){a=!0}))},b}(Sb),yc=Qb.concat=function(){var a;if(Array.isArray(arguments[0]))a=arguments[0];else{a=new Array(arguments.length);for(var b=0,c=arguments.length;c>b;b++)a[b]=arguments[b]}return new xc(a)};Gb.concatAll=function(){return this.merge(1)};var zc=function(a){function b(b,c){this.source=b,this.maxConcurrent=c,a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new mb;return b.add(this.source.subscribe(new Ac(a,this.maxConcurrent,b))),b},b}(Sb),Ac=function(){function a(a,b,c){this.o=a,this.max=b,this.g=c,this.done=!1,this.q=[],this.activeCount=0,this.isStopped=!1}function b(a,b){this.parent=a,this.sad=b,this.isStopped=!1}return a.prototype.handleSubscribe=function(a){var c=new tb;this.g.add(c),qa(a)&&(a=Qc(a)),c.setDisposable(a.subscribe(new b(this,c)))},a.prototype.onNext=function(a){this.isStopped||(this.activeCount0?a.handleSubscribe(a.q.shift()):(a.activeCount--,a.done&&0===a.activeCount&&a.o.onCompleted())}},b.prototype.dispose=function(){this.isStopped=!0},b.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(a),!0)},a}();Gb.merge=function(a){return"number"!=typeof a?Bc(this,a):new zc(this,a)};var Bc=Qb.merge=function(){var a,b,c=[],d=arguments.length;if(arguments[0])if(yb(arguments[0]))for(a=arguments[0],b=1;d>b;b++)c.push(arguments[b]);else for(a=Bb,b=0;d>b;b++)c.push(arguments[b]);else for(a=Bb,b=1;d>b;b++)c.push(arguments[b]);return Array.isArray(c[0])&&(c=c[0]),z(a,c).mergeAll()},Cc=ja.CompositeError=function(a){this.name="NotImplementedError",this.innerErrors=a,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};Cc.prototype=Error.prototype,Qb.mergeDelayError=function(){var a;if(Array.isArray(arguments[0]))a=arguments[0];else{var b=arguments.length;a=new Array(b);for(var c=0;b>c;c++)a[c]=arguments[c]}var d=z(null,a);return new Yc(function(a){function b(){0===g.length?a.onCompleted():1===g.length?a.onError(g[0]):a.onError(new Cc(g))}var c=new mb,e=new tb,f=!1,g=[];return c.add(e),e.setDisposable(d.subscribe(function(d){var e=new tb;c.add(e),qa(d)&&(d=Qc(d)),e.setDisposable(d.subscribe(function(b){a.onNext(b)},function(a){g.push(a),c.remove(e),f&&1===c.length&&b()},function(){c.remove(e),f&&1===c.length&&b()}))},function(a){g.push(a),f=!0,1===c.length&&b()},function(){f=!0,1===c.length&&b()})),c})};var Dc=function(a){function b(b){this.source=b,a.call(this)}function c(a,b){this.o=a,this.g=b,this.isStopped=!1,this.done=!1}function d(a,b){this.parent=a,this.sad=b,this.isStopped=!1}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new mb,d=new tb;return b.add(d),d.setDisposable(this.source.subscribe(new c(a,b))),b},c.prototype.onNext=function(a){if(!this.isStopped){var b=new tb;this.g.add(b),qa(a)&&(a=Qc(a)),b.setDisposable(a.subscribe(new d(this,b)))}},c.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},c.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,1===this.g.length&&this.o.onCompleted())},c.prototype.dispose=function(){this.isStopped=!0},c.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},d.prototype.onNext=function(a){this.isStopped||this.parent.o.onNext(a)},d.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.parent.o.onError(a))},d.prototype.onCompleted=function(){if(!this.isStopped){var a=this.parent;this.isStopped=!0,a.g.remove(this.sad),a.done&&1===a.g.length&&a.o.onCompleted()}},d.prototype.dispose=function(){this.isStopped=!0},d.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(a),!0)},b}(Sb);Gb.mergeAll=function(){return new Dc(this)},Gb.skipUntil=function(a){var b=this;return new Yc(function(c){var d=!1,e=new mb(b.subscribe(function(a){d&&c.onNext(a)},function(a){c.onError(a)},function(){d&&c.onCompleted()}));qa(a)&&(a=Qc(a));var f=new tb;return e.add(f),f.setDisposable(a.subscribe(function(){d=!0,f.dispose()},function(a){c.onError(a)},function(){f.dispose()})),e},b)};var Ec=function(a){function b(b){this.source=b,a.call(this)}function c(a,b){this.o=a,this.inner=b,this.stopped=!1,this.latest=0,this.hasLatest=!1,this.isStopped=!1}function d(a,b){this.parent=a,this.id=b,this.isStopped=!1}return kb(b,a),b.prototype.subscribeCore=function(a){var b=new ub,d=this.source.subscribe(new c(a,b));return new mb(d,b)},c.prototype.onNext=function(a){if(!this.isStopped){var b=new tb,c=++this.latest;this.hasLatest=!0,this.inner.setDisposable(b),qa(a)&&(a=Qc(a)),b.setDisposable(a.subscribe(new d(this,c)))}},c.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},c.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.stopped=!0,!this.hasLatest&&this.o.onCompleted())},c.prototype.dispose=function(){this.isStopped=!0},c.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},d.prototype.onNext=function(a){this.isStopped||this.parent.latest===this.id&&this.parent.o.onNext(a)},d.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&this.parent.o.onError(a))},d.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.isStopped&&this.parent.o.onCompleted()))},d.prototype.dispose=function(){this.isStopped=!0},d.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(a),!0)},b}(Sb);Gb["switch"]=Gb.switchLatest=function(){return new Ec(this)};var Fc=function(a){function b(b,c){this.source=b,this.other=qa(c)?Qc(c):c,a.call(this)}function c(a){this.o=a,this.isStopped=!1}return kb(b,a),b.prototype.subscribeCore=function(a){return new mb(this.source.subscribe(a),this.other.subscribe(new c(a)))},c.prototype.onNext=function(a){this.isStopped||this.o.onCompleted()},c.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},c.prototype.onCompleted=function(){!this.isStopped&&(this.isStopped=!0)},c.prototype.dispose=function(){this.isStopped=!0},c.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},b}(Sb);Gb.takeUntil=function(a){return new Fc(this,a)},Gb.withLatestFrom=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=b.pop(),e=this;return Array.isArray(b[0])&&(b=b[0]),new Yc(function(a){for(var c=b.length,f=p(c,D),g=!1,h=new Array(c),i=new Array(c+1),j=0;c>j;j++)!function(c){var d=b[c],e=new tb;qa(d)&&(d=Qc(d)),e.setDisposable(d.subscribe(function(a){h[c]=a,f[c]=!0,g=f.every(la)},function(b){a.onError(b)},ka)),i[c]=e}(j);var k=new tb;return k.setDisposable(e.subscribe(function(b){var c=[b].concat(h);if(g){var e=ta(d).apply(null,c);return e===sa?a.onError(e.e):void a.onNext(e)}},function(b){a.onError(b)},function(){a.onCompleted()})),i[c]=k,new mb(i)},this)},Gb.zip=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=ra(b[a-1])?b.pop():E;Array.isArray(b[0])&&(b=b[0]);var e=this;return b.unshift(e),new Yc(function(a){for(var c=b.length,f=p(c,F),g=p(c,D),h=new Array(c),i=0;c>i;i++)!function(c){var i=b[c],j=new tb;qa(i)&&(i=Qc(i)),j.setDisposable(i.subscribe(function(b){if(f[c].push(b),f.every(function(a){return a.length>0})){var h=f.map(function(a){return a.shift()}),i=ta(d).apply(e,h);if(i===sa)return a.onError(i.e);a.onNext(i)}else g.filter(function(a,b){return b!==c}).every(la)&&a.onCompleted()},function(b){a.onError(b)},function(){g[c]=!0,g.every(la)&&a.onCompleted()})),h[c]=j}(i);return new mb(h)},e)},Qb.zip=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];Array.isArray(b[0])&&(b=ra(b[1])?b[0].concat(b[1]):b[0]);var d=b.shift();return d.zip.apply(d,b)},Gb.zipIterable=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=ra(b[a-1])?b.pop():E,e=this;return b.unshift(e),new Yc(function(a){for(var c=b.length,f=p(c,F),g=p(c,D),h=new Array(c),i=0;c>i;i++)!function(c){var i=b[c],j=new tb;(Ja(i)||Ia(i))&&(i=hc(i)),j.setDisposable(i.subscribe(function(b){if(f[c].push(b),f.every(function(a){return a.length>0})){var h=f.map(function(a){return a.shift()}),i=ta(d).apply(e,h);if(i===sa)return a.onError(i.e);a.onNext(i)}else g.filter(function(a,b){return b!==c}).every(la)&&a.onCompleted()},function(b){a.onError(b)},function(){g[c]=!0,g.every(la)&&a.onCompleted()})),h[c]=j}(i);return new mb(h)},e)},Gb.asObservable=function(){return new Yc(G(this),this)},Gb.dematerialize=function(){var a=this;return new Yc(function(b){return a.subscribe(function(a){return a.accept(b)},function(a){b.onError(a)},function(){b.onCompleted()})},this)};var Gc=function(a){function b(b,c,d){this.source=b,this.keyFn=c,this.comparer=d,a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new Hc(a,this.keyFn,this.comparer))},b}(Sb),Hc=function(a){function b(b,c,d){this.o=b,this.keyFn=c,this.comparer=d,this.hasCurrentKey=!1,this.currentKey=null,a.call(this)}return kb(b,a),b.prototype.next=function(a){var b,c=a;return ra(this.keyFn)&&(c=ta(this.keyFn)(a),c===sa)?this.o.onError(c.e):this.hasCurrentKey&&(b=ta(this.comparer)(this.currentKey,c),b===sa)?this.o.onError(b.e):void(this.hasCurrentKey&&b||(this.hasCurrentKey=!0,this.currentKey=c,this.o.onNext(a)))},b.prototype.error=function(a){this.o.onError(a)},b.prototype.completed=function(){this.o.onCompleted()},b}(Ob);Gb.distinctUntilChanged=function(a,b){return b||(b=na),new Gc(this,a,b)};var Ic=function(a){function b(b,c,d,e){this.source=b,this._oN=c,this._oE=d,this._oC=e,a.call(this)}function c(a,b){this.o=a,this.t=!b._oN||ra(b._oN)?Nb(b._oN||ka,b._oE||ka,b._oC||ka):b._oN,this.isStopped=!1}return kb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this))},c.prototype.onNext=function(a){if(!this.isStopped){var b=ta(this.t.onNext).call(this.t,a);b===sa&&this.o.onError(b.e),this.o.onNext(a)}},c.prototype.onError=function(a){if(!this.isStopped){this.isStopped=!0;var b=ta(this.t.onError).call(this.t,a);if(b===sa)return this.o.onError(b.e);this.o.onError(a)}},c.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var a=ta(this.t.onCompleted).call(this.t);if(a===sa)return this.o.onError(a.e);this.o.onCompleted()}},c.prototype.dispose=function(){this.isStopped=!0},c.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},b}(Sb);Gb["do"]=Gb.tap=Gb.doAction=function(a,b,c){return new Ic(this,a,b,c)},Gb.doOnNext=Gb.tapOnNext=function(a,b){return this.tap("undefined"!=typeof b?function(c){a.call(b,c)}:a)},Gb.doOnError=Gb.tapOnError=function(a,b){return this.tap(ka,"undefined"!=typeof b?function(c){a.call(b,c)}:a)},Gb.doOnCompleted=Gb.tapOnCompleted=function(a,b){return this.tap(ka,null,"undefined"!=typeof b?function(){a.call(b)}:a)},Gb["finally"]=function(a){var b=this;return new Yc(function(c){var e=ta(b.subscribe).call(b,c);return e===sa?(a(),d(e.e)):pb(function(){var b=ta(e.dispose).call(e);a(),b===sa&&d(b.e)})},this)};var Jc=function(a){function b(b){this.source=b,a.call(this)}function c(a){this.o=a,this.isStopped=!1}return kb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a))},c.prototype.onNext=ka,c.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},c.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},c.prototype.dispose=function(){this.isStopped=!0},c.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(a),!0)},b}(Sb);Gb.ignoreElements=function(){return new Jc(this)},Gb.materialize=function(){var a=this;return new Yc(function(b){return a.subscribe(function(a){b.onNext(Jb(a))},function(a){b.onNext(Kb(a)),b.onCompleted()},function(){b.onNext(Lb()),b.onCompleted()})},a)},Gb.repeat=function(a){return Yb(this,a).concat()},Gb.retry=function(a){return Yb(this,a).catchError()},Gb.retryWhen=function(a){return Yb(this).catchErrorWhen(a)};var Kc=function(a){function b(b,c,d,e){this.source=b,this.accumulator=c,this.hasSeed=d,this.seed=e,a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new H(a,this))},b}(Sb);H.prototype={onNext:function(a){return this.isStopped?void 0:(!this.hasValue&&(this.hasValue=!0),this.hasAccumulation?this.accumulation=ta(this.accumulator)(this.accumulation,a):(this.accumulation=this.hasSeed?ta(this.accumulator)(this.seed,a):a,this.hasAccumulation=!0),this.accumulation===sa?this.o.onError(this.accumulation.e):void this.o.onNext(this.accumulation))},onError:function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},onCompleted:function(){this.isStopped||(this.isStopped=!0,!this.hasValue&&this.hasSeed&&this.o.onNext(this.seed),this.o.onCompleted())},dispose:function(){this.isStopped=!0},fail:function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)}},Gb.scan=function(){var a,b=!1,c=arguments[0];return 2===arguments.length&&(b=!0,a=arguments[1]),new Kc(this,c,b,a)},Gb.skipLast=function(a){if(0>a)throw new Ba;var b=this;return new Yc(function(c){var d=[];return b.subscribe(function(b){d.push(b),d.length>a&&c.onNext(d.shift())},function(a){c.onError(a)},function(){c.onCompleted()})},b)},Gb.startWith=function(){var a,b=0;arguments.length&&yb(arguments[0])?(a=arguments[0],b=1):a=Bb;for(var c=[],d=b,e=arguments.length;e>d;d++)c.push(arguments[d]);return $b([jc(c,a),this]).concat()},Gb.takeLast=function(a){if(0>a)throw new Ba;var b=this;return new Yc(function(c){var d=[];return b.subscribe(function(b){d.push(b),d.length>a&&d.shift()},function(a){c.onError(a)},function(){for(;d.length>0;)c.onNext(d.shift());c.onCompleted()})},b)},Gb.flatMapConcat=Gb.concatMap=function(a,b,c){return new Tb(this,a,b,c).merge(1)};var Lc=function(a){function b(b,c,d){this.source=b,this.selector=La(c,d,3),a.call(this)}function c(a,b){return function(c,d,e){return a.call(this,b.selector(c,d,e),d,e)}}function d(a,b,c){this.o=a,this.selector=b,this.source=c,this.i=0,this.isStopped=!1}return kb(b,a),b.prototype.internalMap=function(a,d){return new b(this.source,c(a,this),d)},b.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a,this.selector,this))},d.prototype.onNext=function(a){if(!this.isStopped){var b=ta(this.selector)(a,this.i++,this.source);return b===sa?this.o.onError(b.e):void this.o.onNext(b)}},d.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},d.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},d.prototype.dispose=function(){this.isStopped=!0},d.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},b}(Sb);Gb.map=Gb.select=function(a,b){var c="function"==typeof a?a:function(){return a};return this instanceof Lc?this.internalMap(c,b):new Lc(this,c,b)},Gb.pluck=function(){var a=arguments.length,b=new Array(a);if(0===a)throw new Error("List of properties cannot be empty.");for(var c=0;a>c;c++)b[c]=arguments[c];return this.map(I(b,a))},Gb.flatMap=Gb.selectMany=function(a,b,c){return new Tb(this,a,b,c).mergeAll()},ja.Observable.prototype.flatMapLatest=function(a,b,c){return new Tb(this,a,b,c).switchLatest()};var Mc=function(a){function b(b,c){this.source=b,this.skipCount=c,a.call(this)}function c(a,b){this.c=b,this.r=b,this.o=a,this.isStopped=!1}return kb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new c(a,this.skipCount))},c.prototype.onNext=function(a){this.isStopped||(this.r<=0?this.o.onNext(a):this.r--)},c.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},c.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},c.prototype.dispose=function(){this.isStopped=!0},c.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},b}(Sb);Gb.skip=function(a){if(0>a)throw new Ba;return new Mc(this,a)},Gb.skipWhile=function(a,b){var c=this,d=La(a,b,3);return new Yc(function(a){var b=0,e=!1;return c.subscribe(function(f){if(!e)try{e=!d(f,b++,c)}catch(g){return void a.onError(g)}e&&a.onNext(f)},function(b){a.onError(b)},function(){a.onCompleted()})},c)},Gb.take=function(a,b){if(0>a)throw new Ba;if(0===a)return dc(b);var c=this;return new Yc(function(b){var d=a;return c.subscribe(function(a){d-->0&&(b.onNext(a),0>=d&&b.onCompleted())},function(a){b.onError(a)},function(){b.onCompleted()})},c)},Gb.takeWhile=function(a,b){var c=this,d=La(a,b,3);return new Yc(function(a){var b=0,e=!0;return c.subscribe(function(f){if(e){try{e=d(f,b++,c)}catch(g){return void a.onError(g)}e?a.onNext(f):a.onCompleted()}},function(b){a.onError(b)},function(){a.onCompleted()})},c)};var Nc=function(a){function b(b,c,d){this.source=b,this.predicate=La(c,d,3),a.call(this)}function c(a,b){return function(c,d,e){return b.predicate(c,d,e)&&a.call(this,c,d,e)}}function d(a,b,c){this.o=a,this.predicate=b,this.source=c,this.i=0,this.isStopped=!1}return kb(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new d(a,this.predicate,this))},b.prototype.internalFilter=function(a,d){return new b(this.source,c(a,this),d)},d.prototype.onNext=function(a){if(!this.isStopped){var b=ta(this.predicate)(a,this.i++,this.source);return b===sa?this.o.onError(b.e):void(b&&this.o.onNext(a))}},d.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},d.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},d.prototype.dispose=function(){this.isStopped=!0},d.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},b}(Sb);Gb.filter=Gb.where=function(a,b){return this instanceof Nc?this.internalFilter(a,b):new Nc(this,a,b)},Qb.fromCallback=function(a,b,c){return function(){"undefined"==typeof b&&(b=this);for(var d=arguments.length,e=new Array(d),f=0;d>f;f++)e[f]=arguments[f];return J(a,b,c,e)}},Qb.fromNodeCallback=function(a,b,c){return function(){"undefined"==typeof b&&(b=this);for(var d=arguments.length,e=new Array(d),f=0;d>f;f++)e[f]=arguments[f];return L(a,b,c,e)}},N.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)},ja.config.useNativeEvents=!1,Qb.fromEvent=function(a,b,c){return a.addListener?Oc(function(c){a.addListener(b,c)},function(c){a.removeListener(b,c)},c):ja.config.useNativeEvents||"function"!=typeof a.on||"function"!=typeof a.off?new Yc(function(d){return O(a,b,P(d,c))}).publish().refCount():Oc(function(c){a.on(b,c)},function(c){a.off(b,c)},c)};var Oc=Qb.fromEventPattern=function(a,b,c,d){return yb(d)||(d=Bb),new Yc(function(d){function e(){var a=arguments[0];return ra(c)&&(a=ta(c).apply(null,arguments),a===sa)?d.onError(a.e):void d.onNext(a)}var f=a(e);return pb(function(){ra(b)&&b(e,f)})}).publish().refCount()},Pc=function(a){function b(b){this.p=b,a.call(this)}return kb(b,a),b.prototype.subscribeCore=function(a){return this.p.then(function(b){a.onNext(b),a.onCompleted()},function(b){a.onError(b)}),qb},b}(Sb),Qc=Qb.fromPromise=function(a){return new Pc(a)};Gb.toPromise=function(a){if(a||(a=ja.config.Promise),!a)throw new Ca("Promise type not provided nor in Rx.config.Promise");var b=this;return new a(function(a,c){var d,e=!1;b.subscribe(function(a){d=a,e=!0},c,function(){e&&a(d)})})},Qb.startAsync=function(a){var b;try{b=a()}catch(c){return tc(c)}return Qc(b)},Gb.multicast=function(a,b){var c=this;return"function"==typeof a?new Yc(function(d){var e=c.multicast(a());return new mb(b(e).subscribe(d),e.connect())},c):new Rc(c,a)},Gb.publish=function(a){return a&&ra(a)?this.multicast(function(){return new _c},a):this.multicast(new _c)},Gb.share=function(){return this.publish().refCount()},Gb.publishLast=function(a){return a&&ra(a)?this.multicast(function(){return new ad},a):this.multicast(new ad)},Gb.publishValue=function(a,b){return 2===arguments.length?this.multicast(function(){return new cd(b)},a):this.multicast(new cd(a))},Gb.shareValue=function(a){return this.publishValue(a).refCount()},Gb.replay=function(a,b,c,d){return a&&ra(a)?this.multicast(function(){return new dd(b,c,d)},a):this.multicast(new dd(b,c,d))},Gb.shareReplay=function(a,b,c){return this.replay(null,a,b,c).refCount()};var Rc=ja.ConnectableObservable=function(a){function b(b,c){var d,e=!1,f=b.asObservable();this.connect=function(){return e||(e=!0,d=new mb(f.subscribe(c),pb(function(){e=!1}))),d},a.call(this,function(a){return c.subscribe(a)})}return kb(b,a),b.prototype.refCount=function(){var a,b=0,c=this;return new Yc(function(d){var e=1===++b,f=c.subscribe(d);return e&&(a=c.connect()),function(){f.dispose(),0===--b&&a.dispose()}})},b}(Qb),Sc=Qb.interval=function(a,b){return T(a,a,yb(b)?b:Hb)};Qb.timer=function(b,c,d){var e;return yb(d)||(d=Hb),null!=c&&"number"==typeof c?e=c:yb(c)&&(d=c),b instanceof Date&&e===a?Q(b.getTime(),d):b instanceof Date&&e!==a?R(b.getTime(),c,d):e===a?S(b,d):T(b,e,d)};Gb.delay=function(){if("number"==typeof arguments[0]||arguments[0]instanceof Date){var a=arguments[0],b=arguments[1];return yb(b)||(b=Hb),a instanceof Date?V(this,a,b):U(this,a,b)}if(ra(arguments[0]))return W(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Gb.debounce=function(){if(ra(arguments[0]))return Y(this,arguments[0]);if("number"==typeof arguments[0])return X(this,arguments[0],arguments[1]);throw new Error("Invalid arguments")},Gb.timestamp=function(a){return yb(a)||(a=Hb),this.map(function(b){return{value:b,timestamp:a.now()}})},Gb.sample=Gb.throttleLatest=function(a,b){return yb(b)||(b=Hb),"number"==typeof a?Z(this,Sc(a,b)):Z(this,a)};var Tc=ja.TimeoutError=function(a){this.message=a||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};Tc.prototype=Object.create(Error.prototype),Gb.timeout=function(){var a=arguments[0];if(a instanceof Date||"number"==typeof a)return _(this,a,arguments[1],arguments[2]);if(Qb.isObservable(a)||ra(a))return $(this,a,arguments[1],arguments[2]);throw new Error("Invalid arguments")},Gb.throttle=function(a,b){yb(b)||(b=Hb);var c=+a||0;if(0>=c)throw new RangeError("windowDuration cannot be less or equal zero.");var d=this;return new Yc(function(a){var e=0;return d.subscribe(function(d){var f=b.now();(0===e||f-e>=c)&&(e=f,a.onNext(d))},function(b){a.onError(b)},function(){a.onCompleted()})},d)};var Uc=function(a){function b(a){var b=this.source.publish(),c=b.subscribe(a),d=qb,e=this.pauser.distinctUntilChanged().subscribe(function(a){a?d=b.connect():(d.dispose(),d=qb)});return new mb(c,d,e)}function c(c,d){this.source=c,this.controller=new _c,d&&d.subscribe?this.pauser=this.controller.merge(d):this.pauser=this.controller,a.call(this,b,c)}return kb(c,a),c.prototype.pause=function(){this.controller.onNext(!1)},c.prototype.resume=function(){this.controller.onNext(!0)},c}(Qb);Gb.pausable=function(a){return new Uc(this,a)};var Vc=function(b){function c(b){function c(){for(;e.length>0;)b.onNext(e.shift())}var d,e=[],f=aa(this.source,this.pauser.startWith(!1).distinctUntilChanged(),function(a,b){return{data:a,shouldFire:b}}).subscribe(function(f){ -d!==a&&f.shouldFire!=d?(d=f.shouldFire,f.shouldFire&&c()):(d=f.shouldFire,f.shouldFire?b.onNext(f.data):e.push(f.data))},function(a){c(),b.onError(a)},function(){c(),b.onCompleted()});return f}function d(a,d){this.source=a,this.controller=new _c,d&&d.subscribe?this.pauser=this.controller.merge(d):this.pauser=this.controller,b.call(this,c,a)}return kb(d,b),d.prototype.pause=function(){this.controller.onNext(!1)},d.prototype.resume=function(){this.controller.onNext(!0)},d}(Qb);Gb.pausableBuffered=function(a){return new Vc(this,a)};var Wc=function(a){function b(a){return this.source.subscribe(a)}function c(c,d,e){a.call(this,b,c),this.subject=new Xc(d,e),this.source=c.multicast(this.subject).refCount()}return kb(c,a),c.prototype.request=function(a){return this.subject.request(null==a?-1:a)},c}(Qb),Xc=function(a){function b(a){return this.subject.subscribe(a)}function c(c,d){null==c&&(c=!0),a.call(this,b),this.subject=new _c,this.enableQueue=c,this.queue=c?[]:null,this.requestedCount=0,this.requestedDisposable=null,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.scheduler=d||Cb}return kb(c,a),lb(c.prototype,Mb,{onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(Ib.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(a){this.hasFailed=!0,this.error=a,this.enableQueue&&0!==this.queue.length?this.queue.push(Ib.createOnError(a)):(this.subject.onError(a),this.disposeCurrentRequest())},onNext:function(a){this.requestedCount<=0?this.enableQueue&&this.queue.push(Ib.createOnNext(a)):(0===this.requestedCount--&&this.disposeCurrentRequest(),this.subject.onNext(a))},_processRequest:function(a){if(this.enableQueue)for(;this.queue.length>0&&(a>0||"N"!==this.queue[0].kind);){var b=this.queue.shift();b.accept(this.subject),"N"===b.kind?a--:(this.disposeCurrentRequest(),this.queue=[])}return a},request:function(a){this.disposeCurrentRequest();var b=this;return this.requestedDisposable=this.scheduler.scheduleWithState(a,function(a,c){var d=b._processRequest(c),e=b.hasCompleted||b.hasFailed;return!e&&d>0?(b.requestedCount=d,pb(function(){b.requestedCount=0})):void 0}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}}),c}(Qb);Gb.controlled=function(a,b){return a&&yb(a)&&(b=a,a=!0),null==a&&(a=!0),new Wc(this,a,b)},Gb.pipe=function(a){function b(){c.resume()}var c=this.pausableBuffered();return a.addListener("drain",b),c.subscribe(function(b){!a.write(String(b))&&c.pause()},function(b){a.emit("error",b)},function(){!a._isStdio&&a.end(),a.removeListener("drain",b)}),c.resume(),a},Gb.transduce=function(a){function b(a){return{"@@transducer/init":function(){return a},"@@transducer/step":function(a,b){return a.onNext(b)},"@@transducer/result":function(a){return a.onCompleted()}}}var c=this;return new Yc(function(d){var e=a(b(d));return c.subscribe(function(a){var b=ta(e["@@transducer/step"]).call(e,d,a);b===sa&&d.onError(b.e)},function(a){d.onError(a)},function(){e["@@transducer/result"](d)})},c)};var Yc=ja.AnonymousObservable=function(a){function b(a){return a&&ra(a.dispose)?a:ra(a)?pb(a):qb}function c(a,c){var e=c[0],f=c[1],g=ta(f.__subscribe).call(f,e);return g!==sa||e.fail(sa.e)?void e.setDisposable(b(g)):d(sa.e)}function e(a){var b=new Zc(a),d=[b,this];return Cb.scheduleRequired()?Cb.scheduleWithState(d,c):c(null,d),b}function f(b,c){this.source=c,this.__subscribe=b,a.call(this,e)}return kb(f,a),f}(Qb),Zc=function(a){function b(b){a.call(this),this.observer=b,this.m=new tb}kb(b,a);var c=b.prototype;return c.next=function(a){var b=ta(this.observer.onNext).call(this.observer,a);b===sa&&(this.dispose(),d(b.e))},c.error=function(a){var b=ta(this.observer.onError).call(this.observer,a);this.dispose(),b===sa&&d(b.e)},c.completed=function(){var a=ta(this.observer.onCompleted).call(this.observer);this.dispose(),a===sa&&d(a.e)},c.setDisposable=function(a){this.m.setDisposable(a)},c.getDisposable=function(){return this.m.getDisposable()},c.dispose=function(){a.prototype.dispose.call(this),this.m.dispose()},b}(Ob),$c=function(a,b){this.subject=a,this.observer=b};$c.prototype.dispose=function(){if(!this.subject.isDisposed&&null!==this.observer){var a=this.subject.observers.indexOf(this.observer);this.subject.observers.splice(a,1),this.observer=null}};var _c=ja.Subject=function(a){function c(a){return sb(this),this.isStopped?this.hasError?(a.onError(this.error),qb):(a.onCompleted(),qb):(this.observers.push(a),new $c(this,a))}function d(){a.call(this,c),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return kb(d,a),lb(d.prototype,Mb.prototype,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(sb(this),!this.isStopped){this.isStopped=!0;for(var a=0,c=b(this.observers),d=c.length;d>a;a++)c[a].onCompleted();this.observers.length=0}},onError:function(a){if(sb(this),!this.isStopped){this.isStopped=!0,this.error=a,this.hasError=!0;for(var c=0,d=b(this.observers),e=d.length;e>c;c++)d[c].onError(a);this.observers.length=0}},onNext:function(a){if(sb(this),!this.isStopped)for(var c=0,d=b(this.observers),e=d.length;e>c;c++)d[c].onNext(a)},dispose:function(){this.isDisposed=!0,this.observers=null}}),d.create=function(a,b){return new bd(a,b)},d}(Qb),ad=ja.AsyncSubject=function(a){function c(a){return sb(this),this.isStopped?(this.hasError?a.onError(this.error):this.hasValue?(a.onNext(this.value),a.onCompleted()):a.onCompleted(),qb):(this.observers.push(a),new $c(this,a))}function d(){a.call(this,c),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return kb(d,a),lb(d.prototype,Mb,{hasObservers:function(){return sb(this),this.observers.length>0},onCompleted:function(){var a,c;if(sb(this),!this.isStopped){this.isStopped=!0;var d=b(this.observers),c=d.length;if(this.hasValue)for(a=0;c>a;a++){var e=d[a];e.onNext(this.value),e.onCompleted()}else for(a=0;c>a;a++)d[a].onCompleted();this.observers.length=0}},onError:function(a){if(sb(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=a;for(var c=0,d=b(this.observers),e=d.length;e>c;c++)d[c].onError(a);this.observers.length=0}},onNext:function(a){sb(this),this.isStopped||(this.value=a,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),d}(Qb),bd=ja.AnonymousSubject=function(a){function b(a){return this.observable.subscribe(a)}function c(c,d){this.observer=c,this.observable=d,a.call(this,b)}return kb(c,a),lb(c.prototype,Mb.prototype,{onCompleted:function(){this.observer.onCompleted()},onError:function(a){this.observer.onError(a)},onNext:function(a){this.observer.onNext(a)}}),c}(Qb),cd=ja.BehaviorSubject=function(a){function c(a){return sb(this),this.isStopped?(this.hasError?a.onError(this.error):a.onCompleted(),qb):(this.observers.push(a),a.onNext(this.value),new $c(this,a))}function d(b){a.call(this,c),this.value=b,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}return kb(d,a),lb(d.prototype,Mb,{getValue:function(){if(sb(this),this.hasError)throw this.error;return this.value},hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(sb(this),!this.isStopped){this.isStopped=!0;for(var a=0,c=b(this.observers),d=c.length;d>a;a++)c[a].onCompleted();this.observers.length=0}},onError:function(a){if(sb(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=a;for(var c=0,d=b(this.observers),e=d.length;e>c;c++)d[c].onError(a);this.observers.length=0}},onNext:function(a){if(sb(this),!this.isStopped){this.value=a;for(var c=0,d=b(this.observers),e=d.length;e>c;c++)d[c].onNext(a)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.exception=null}}),d}(Qb),dd=ja.ReplaySubject=function(a){function c(a,b){return pb(function(){b.dispose(),!a.isDisposed&&a.observers.splice(a.observers.indexOf(b),1)})}function d(a){var b=new Rb(this.scheduler,a),d=c(this,b);sb(this),this._trim(this.scheduler.now()),this.observers.push(b);for(var e=0,f=this.q.length;f>e;e++)b.onNext(this.q[e].value);return this.hasError?b.onError(this.error):this.isStopped&&b.onCompleted(),b.ensureActive(),d}function e(b,c,e){this.bufferSize=null==b?f:b,this.windowSize=null==c?f:c,this.scheduler=e||Cb,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,a.call(this,d)}var f=Math.pow(2,53)-1;return kb(e,a),lb(e.prototype,Mb.prototype,{hasObservers:function(){return this.observers.length>0},_trim:function(a){for(;this.q.length>this.bufferSize;)this.q.shift();for(;this.q.length>0&&a-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(a){if(sb(this),!this.isStopped){var c=this.scheduler.now();this.q.push({interval:c,value:a}),this._trim(c);for(var d=0,e=b(this.observers),f=e.length;f>d;d++){var g=e[d];g.onNext(a),g.ensureActive()}}},onError:function(a){if(sb(this),!this.isStopped){this.isStopped=!0,this.error=a,this.hasError=!0;var c=this.scheduler.now();this._trim(c);for(var d=0,e=b(this.observers),f=e.length;f>d;d++){var g=e[d];g.onError(a),g.ensureActive()}this.observers.length=0}},onCompleted:function(){if(sb(this),!this.isStopped){this.isStopped=!0;var a=this.scheduler.now();this._trim(a);for(var c=0,d=b(this.observers),e=d.length;e>c;c++){var f=d[c];f.onCompleted(),f.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0,this.observers=null}}),e}(Qb);ja.Pauser=function(a){function b(){a.call(this)}return kb(b,a),b.prototype.pause=function(){this.onNext(!1)},b.prototype.resume=function(){this.onNext(!0)},b}(_c),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ia.Rx=ja,define(function(){return ja})):ca&&fa?ga?(fa.exports=ja).Rx=ja:ca.Rx=ja:ia.Rx=ja;var ed=i()}).call(this); -//# sourceMappingURL=rx.lite.map \ No newline at end of file diff --git a/node_modules/semantic-ui/.csscomb.json b/node_modules/semantic-ui/.csscomb.json deleted file mode 100644 index 86db560..0000000 --- a/node_modules/semantic-ui/.csscomb.json +++ /dev/null @@ -1,322 +0,0 @@ -{ - "remove-empty-rulesets": true, - "always-semicolon": true, - "color-case": "upper", - "block-indent": " ", - "color-shorthand": false, - "element-case": "lower", - "leading-zero": true, - "space-after-colon": " ", - "space-before-combinator": " ", - "space-after-combinator": " ", - "space-between-declarations": "\n", - "space-before-opening-brace": " ", - "space-after-opening-brace": "\n", - "space-after-selector-delimiter": "\n", - "space-before-selector-delimiter": "", - "space-before-closing-brace": "\n", - "strip-spaces": true, - "tab-size": true, - "vendor-prefix-align": true, - "sort-order": [ - [ - "display", - "visibility", - "float", - "clear", - "overflow", - "overflow-x", - "overflow-y", - "-webkit-box-sizing", - "-moz-box-sizing", - "box-sizing", - "-ms-overflow-x", - "-ms-overflow-y", - "clip", - "zoom", - "flex-direction", - "flex-order", - "flex-pack", - "flex-align" - ], - [ - "position", - "z-index", - "top", - "right", - "bottom", - "left" - ], - [ - "font", - "font-family", - "font-size", - "font-weight", - "font-style", - "font-variant", - "font-size-adjust", - "font-stretch", - "font-effect", - "font-emphasize", - "font-emphasize-position", - "font-emphasize-style", - "font-smooth", - "line-height" - ], - [ - "width", - "min-width", - "max-width", - "height", - "min-height", - "max-height", - "margin", - "margin-top", - "margin-right", - "margin-bottom", - "margin-left", - "padding", - "padding-top", - "padding-right", - "padding-bottom", - "padding-left" - ], - [ - "table-layout", - "empty-cells", - "caption-side", - "border-spacing", - "border-collapse", - "list-style", - "list-style-position", - "list-style-type", - "list-style-image" - ], - [ - "opacity", - "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity", - "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha", - "-ms-interpolation-mode", - "color", - "border", - "border-width", - "border-style", - "border-color", - "border-top", - "border-top-width", - "border-top-style", - "border-top-color", - "border-right", - "border-right-width", - "border-right-style", - "border-right-color", - "border-bottom", - "border-bottom-width", - "border-bottom-style", - "border-bottom-color", - "border-left", - "border-left-width", - "border-left-style", - "border-left-color", - "-webkit-border-radius", - "-moz-border-radius", - "border-radius", - "-webkit-border-top-left-radius", - "-moz-border-radius-topleft", - "border-top-left-radius", - "-webkit-border-top-right-radius", - "-moz-border-radius-topright", - "border-top-right-radius", - "-webkit-border-bottom-right-radius", - "-moz-border-radius-bottomright", - "border-bottom-right-radius", - "-webkit-border-bottom-left-radius", - "-moz-border-radius-bottomleft", - "border-bottom-left-radius", - "-webkit-border-image", - "-moz-border-image", - "-o-border-image", - "border-image", - "-webkit-border-image-source", - "-moz-border-image-source", - "-o-border-image-source", - "border-image-source", - "-webkit-border-image-slice", - "-moz-border-image-slice", - "-o-border-image-slice", - "border-image-slice", - "-webkit-border-image-width", - "-moz-border-image-width", - "-o-border-image-width", - "border-image-width", - "-webkit-border-image-outset", - "-moz-border-image-outset", - "-o-border-image-outset", - "border-image-outset", - "-webkit-border-image-repeat", - "-moz-border-image-repeat", - "-o-border-image-repeat", - "border-image-repeat", - "outline", - "outline-width", - "outline-style", - "outline-color", - "outline-offset", - "background", - "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader", - "background-color", - "background-image", - "background-repeat", - "background-attachment", - "background-position", - "background-position-x", - "-ms-background-position-x", - "background-position-y", - "-ms-background-position-y", - "-webkit-background-clip", - "-moz-background-clip", - "background-clip", - "background-origin", - "-webkit-background-size", - "-moz-background-size", - "-o-background-size", - "background-size", - "box-decoration-break", - "-webkit-box-shadow", - "-moz-box-shadow", - "box-shadow", - "filter:progid:DXImageTransform.Microsoft.gradient", - "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient", - "text-shadow" - ], - - [ - "content", - "quotes", - "counter-reset", - "counter-increment", - "resize", - "cursor", - "-webkit-user-select", - "-moz-user-select", - "-ms-user-select", - "user-select", - "nav-index", - "nav-up", - "nav-right", - "nav-down", - "nav-left", - "-webkit-transition", - "-moz-transition", - "-ms-transition", - "-o-transition", - "transition", - "-webkit-transition-delay", - "-moz-transition-delay", - "-ms-transition-delay", - "-o-transition-delay", - "transition-delay", - "-webkit-transition-timing-function", - "-moz-transition-timing-function", - "-ms-transition-timing-function", - "-o-transition-timing-function", - "transition-timing-function", - "-webkit-transition-duration", - "-moz-transition-duration", - "-ms-transition-duration", - "-o-transition-duration", - "transition-duration", - "-webkit-transition-property", - "-moz-transition-property", - "-ms-transition-property", - "-o-transition-property", - "transition-property", - "-webkit-transform", - "-moz-transform", - "-ms-transform", - "-o-transform", - "transform", - "-webkit-transform-origin", - "-moz-transform-origin", - "-ms-transform-origin", - "-o-transform-origin", - "transform-origin", - "-webkit-animation", - "-moz-animation", - "-ms-animation", - "-o-animation", - "animation", - "-webkit-animation-name", - "-moz-animation-name", - "-ms-animation-name", - "-o-animation-name", - "animation-name", - "-webkit-animation-duration", - "-moz-animation-duration", - "-ms-animation-duration", - "-o-animation-duration", - "animation-duration", - "-webkit-animation-play-state", - "-moz-animation-play-state", - "-ms-animation-play-state", - "-o-animation-play-state", - "animation-play-state", - "-webkit-animation-timing-function", - "-moz-animation-timing-function", - "-ms-animation-timing-function", - "-o-animation-timing-function", - "animation-timing-function", - "-webkit-animation-delay", - "-moz-animation-delay", - "-ms-animation-delay", - "-o-animation-delay", - "animation-delay", - "-webkit-animation-iteration-count", - "-moz-animation-iteration-count", - "-ms-animation-iteration-count", - "-o-animation-iteration-count", - "animation-iteration-count", - "-webkit-animation-direction", - "-moz-animation-direction", - "-ms-animation-direction", - "-o-animation-direction", - "animation-direction", - "text-align", - "-webkit-text-align-last", - "-moz-text-align-last", - "-ms-text-align-last", - "text-align-last", - "vertical-align", - "white-space", - "text-decoration", - "text-emphasis", - "text-emphasis-color", - "text-emphasis-style", - "text-emphasis-position", - "text-indent", - "-ms-text-justify", - "text-justify", - "letter-spacing", - "word-spacing", - "-ms-writing-mode", - "text-outline", - "text-transform", - "text-wrap", - "text-overflow", - "-ms-text-overflow", - "text-overflow-ellipsis", - "text-overflow-mode", - "-ms-word-wrap", - "word-wrap", - "word-break", - "-ms-word-break", - "-moz-tab-size", - "-o-tab-size", - "tab-size", - "-webkit-hyphens", - "-moz-hyphens", - "hyphens", - "pointer-events" - ] - ] -} \ No newline at end of file diff --git a/node_modules/semantic-ui/.csslintrc b/node_modules/semantic-ui/.csslintrc deleted file mode 100644 index 8786e82..0000000 --- a/node_modules/semantic-ui/.csslintrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "vendor-prefix" : true, - "duplicate-properties" : true, - "display-property-grouping" : true, - "empty-rules" : true, - - "adjoining-classes" : false, - "box-model" : false, - "compatible-vendor-prefixes" : false, - "box-sizing" : false, - "duplicate-background-images" : false, - "floats" : false, - "important" : false, - "overqualified-elements" : false, - "rules-count" : false, - "shorthand" : false, - "zero-units" : false -} \ No newline at end of file diff --git a/node_modules/semantic-ui/.jshintrc b/node_modules/semantic-ui/.jshintrc deleted file mode 100644 index d238639..0000000 --- a/node_modules/semantic-ui/.jshintrc +++ /dev/null @@ -1,38 +0,0 @@ -{ - - "globals": { - "$" : true, - "afterEach" : true, - "AnimatedPNG" : true, - "beforeEach" : true, - "console" : true, - "describe" : true, - "expect" : true, - "it" : true, - "jQuery" : true, - "loadFixtures" : true, - "module" : true, - "requestAnimationFrame" : true, - "require" : true, - "semantic" : true - }, - - "debug" : false, - "devel" : true, - - "browser" : true, - "curly" : true, - "immed" : true, - "latedef" : true, - "loopfunc" : true, - "noarg" : true, - "undef" : true, - "sub" : true, - "loopfunc" : true, - - "laxbreak" : true, - "evil" : true, - "indent" : false, - "trailing" : false - -} \ No newline at end of file diff --git a/node_modules/semantic-ui/.npmignore b/node_modules/semantic-ui/.npmignore deleted file mode 100644 index f4b4857..0000000 --- a/node_modules/semantic-ui/.npmignore +++ /dev/null @@ -1,36 +0,0 @@ -node_modules/ -test/coverage/ -coverage/ -src/**/site/ -theme.config -semantic.json -tasks/**/oauth.js - -# Numerous always-ignore extensions -*.diff -*.err -*.orig -*.log -*.rej -*.swo -*.swp -*.zip -*.vi -*~ -*.sass-cache -*.ruby-version - -# OS or Editor folders -.DS_Store -._* -Thumbs.db -.cache -.project -.settings -.tmproj -.docpad.db -*.esproj -nbproject -*.sublime-project -*.sublime-workspace -.build* diff --git a/node_modules/semantic-ui/CONTRIBUTING.md b/node_modules/semantic-ui/CONTRIBUTING.md deleted file mode 100644 index 4a2cc53..0000000 --- a/node_modules/semantic-ui/CONTRIBUTING.md +++ /dev/null @@ -1,58 +0,0 @@ -# Contributing to Semantic UI - -### Usage Questions - -Questions about usage should be asked in our [Gitter chatroom](https://gitter.im/Semantic-Org/Semantic-UI), on [Semantic UI forums](http://forums.semantic-ui.com) or [StackOverflow](http://stackoverflow.com/questions/tagged/semantic-ui). - -Examples of usage questions -* *Why isnt my code working?* -* *Can Semantic UI do this?* - -Once you receive feedback through community channels you may find your question is actually a bug. At this point it's a good idea to submit it as a bug report. Just keep in mind the following suggestions. - -### Creating Bug Reports - -[Github Issues Tracker](https://github.com/Semantic-Org/Semantic-UI/issues) is used to track all upcoming milestones and changes to the project. - -**Please create a fork of this [jsfiddle](http://jsfiddle.net/efp8z6Ln/) to demonstrate bugs.** - -When submiting a bug report, include a set of steps to reproduce the issue and any related information, browser, OS etc. If we can't reproduce the issue then it will make solving things much more difficult. - -If your bug uses a third party framework like Ember, Meteor, or Angular. Be sure to submit the issue to their respective issues boards. If you are confident the bug is part of the 'vanilla' SUI release, keep in mind not all maintainers are familiar with all framework and a simple test case is greatly appreciated. - -If your bug is reproduced by a maintainer it will be assigned the [`confirmed bug`](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aopen+is%3Aissue+label%3A%22Confirmed+Bug%22) tag. Browsing this tag is a good way to keep track of known issues with SUI. - -#### Naming Issues - -Semantic UI boards use a special naming convention to help tag issue titles by the component the issue is related to. - -##### Bugs -Please tag titles in the format "[Component] *Sub-type* should do *correct behavior*". Please use standard [title case](http://www.titlecase.com) for titles, including the bracketed tag. - -For example -* [Dropdown] Multiple Selection Should Preserve "Set Selected" Order -* [Validation] - E-mail Validation Should Handle Cyrillic -* [Button] - Grouped Buttons Should Display Correctly on Mobile - -##### Enhancements - -For new feature requests, you can use the format "[Component] Add *new feature*" - -For example -* [Dropdown] Add "Clearable" Setting -* [Validation] Add Rules for Zipcode Validation -* [API] Add "onProgress" callback setting - - -### Tracking Issue Progress - -As bugs and features are triaged they will be assigned to milestones. The best indication of when a change will land is to check the date on the [upcoming milestones](https://github.com/Semantic-Org/Semantic-UI/milestones) page. - -### Creating Pull Requests - -**All pull requests should be merged into the `next` branch.** - -Anyone can jump on the issues board and grab off bugs to fix. This is probably the best way to become a contributor to Semantic. Be sure to adhere to the style guides when submitting code. - -* [Create a Pull Request](https://github.com/Semantic-Org/Semantic-UI/compare) -* [View Open Issues](https://github.com/Semantic-Org/Semantic-UI/issues) diff --git a/node_modules/semantic-ui/LICENSE.md b/node_modules/semantic-ui/LICENSE.md deleted file mode 100644 index 62df766..0000000 --- a/node_modules/semantic-ui/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -# 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/semantic-ui/README.md b/node_modules/semantic-ui/README.md deleted file mode 100644 index c6c6069..0000000 --- a/node_modules/semantic-ui/README.md +++ /dev/null @@ -1,116 +0,0 @@ -![Semantic](http://semantic-ui.com/images/logo.png) - -# Semantic UI - -[![Join the chat at https://gitter.im/Semantic-Org/Semantic-UI](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Semantic-Org/Semantic-UI?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - -[![CDNJS](https://img.shields.io/cdnjs/v/semantic-ui.svg)](https://cdnjs.com/libraries/semantic-ui/) - -Semantic is a UI framework designed for theming. - -Key Features -* 50+ UI elements -* 3000 + CSS variables -* 3 Levels of variable inheritance (similar to SublimeText) -* Built with EM values for responsive design -* Flexbox friendly - -Semantic allows developers to build beautiful websites fast, with **concise HTML**, **intuitive javascript**, and **simplified debugging**, helping make front-end development a delightful experience. Semantic is responsively designed allowing your website to scale on multiple devices. Semantic is production ready and partnered with frameworks such as **React**, **Angular**, **Meteor**, and **Ember**, which means you can integrate it with any of these frameworks to organize your UI layer alongside your application logic. - -## 2.2 Release - -Semantic UI `2.2` is now available (June 2016). Read up on [what's new](http://www.semantic-ui.com/introduction/new.html) in the docs. - -Migration info from `1.x` can be found in the [2.0 release notes](https://github.com/Semantic-Org/Semantic-UI/blob/master/RELEASE-NOTES.md#version-200---march-xx-2015) - -## User Support - -Please help us keep the issue tracker organized. For all questions that do not include a specific [jsfiddle test case](http://jsfiddle.net/efp8z6Ln/) (bug reports), or feature request please use our user forums at [http://forums.semantic-ui.com](http://forums.semantic-ui.com) to discuss. - -Visit our [contributing guide](https://github.com/Semantic-Org/Semantic-UI/blob/master/CONTRIBUTING.md) for more on what should be posted to GitHub Issues. - -## Install - -#### Recommended Install -```bash -npm install semantic-ui # Use themes, import build/watch tasks into your own gulpfile. -``` - -Semantic UI includes an interactive installer to help setup your project -![Getting Started](https://dl.dropboxusercontent.com/u/2657007/install.gif) - -* For more details on setup visit our [getting started guide](http://semantic-ui.com/introduction/getting-started.html). -* To learn more about theming please read our [theming guide](http://www.semantic-ui.com/usage/theming.html) - -#### Additional Versions - -Environment | Install Script | Repo ---- | --- | --- | -CSS Only | `npm install semantic-ui-css` | [CSS Repo](https://github.com/Semantic-Org/Semantic-UI-CSS) -[LESS](https://github.com/less/less.js/) Only | `npm install semantic-ui-less` | [LESS Repo](https://github.com/Semantic-Org/Semantic-UI-LESS) -[LESS](https://github.com/less/less.js/) plugin | `npm install less-plugin-semantic-ui` | [LESS Plugin Repo](https://github.com/bassjobsen/less-plugin-semantic-ui/) -[EmberJS](http://emberjs.com/) | `ember install:addon semantic-ui-ember` | [Ember Repo](https://github.com/Semantic-Org/Semantic-UI-Ember) -|[Meteor](https://www.meteor.com/) - [LESS](https://github.com/less/less.js/) | `meteor add semantic:ui` | [Meteor Repo](https://github.com/Semantic-Org/Semantic-UI-Meteor) | -|[Meteor](https://www.meteor.com/) - CSS | `meteor add semantic:ui-css` | [CSS Repo](https://github.com/Semantic-Org/Semantic-UI-CSS) | -[Bower](http://bower.io/) | `bower install semantic-ui` | - -Check out our [integration wiki](https://github.com/Semantic-Org/Semantic-UI/wiki/Integration) for more options. - -#### Browser Support - -* Last 2 Versions FF, Chrome, Safari Mac -* IE 11+ -* Android 4.4+, Chrome for Android 44+ -* iOS Safari 7+ -* Microsoft Edge 12 & 13 - -Although some components will work in IE9, [grids](http://semantic-ui.com/collections/grid.html) and other [flexbox](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes) components are not supported by IE9 and may not appear correctly. - -## Community - -#### Getting Help -Please **do not post** usage questions to GitHub Issues. For these types of questions use our [Gitter chatroom](https://gitter.im/Semantic-Org/Semantic-UI), [Semantic UI forums](http://forums.semantic-ui.com) or [StackOverflow](http://stackoverflow.com/questions/tagged/semantic-ui). - -#### Submitting Bugs and Enhancements -[GitHub Issues](https://github.com/Semantic-Org/Semantic-UI/issues) is for suggesting enhancements and reporting bugs. Before submiting a bug make sure you do the following: -* Check out our [contributing guide](https://github.com/Semantic-Org/Semantic-UI/blob/master/CONTRIBUTING.md) for info on our release cycle. -* [Fork this boilerplate JSFiddle](http://jsfiddle.net/efp8z6Ln/) to create a test case for your bug. If a bug is apparent in the docs, that's ok as a test case, just make it clear exactly how to reproduce the issue. Only bugs that include a test case can be triaged. - - -#### Pull Requests - -When adding pull requests, be sure to merge into the [next](https://github.com/Semantic-Org/Semantic-UI/tree/next) branch. If you need to demonstrate a fix in ``next`` release, you can use [this jsfiddle](http://jsfiddle.net/rduvhn8u/1/) - - -#### International - -* **Chinese** A Chinese mirror site is available at [http://www.semantic-ui.cn](http://www.semantic-ui.cn). -* **Right-to-Left (RTL)** An RTL version can be created using our build tools by selecting `rtl` from the install script. -* **Translation** To help translate see the [Wiki Guide](https://github.com/Semantic-Org/Semantic-UI/wiki/Translating-Semantic-UI-Docs) for translations. - -#### Resources - -Resource | Description ---- | --- | -Bugs & Feature Requests | All bug submission **require** a link to a test case, and a set of steps to reproduce the issue. You can make a test case by forking this [jsfiddle](http://jsfiddle.net/efp8z6Ln/), then submit your [bug report on GitHub Issues](https://github.com/Semantic-Org/Semantic-UI/issues) -Live Chat | Join our [Gitter.im Room](https://gitter.im/Semantic-Org/Semantic-UI) -Message Board | [ProjectTalk Board](http://www.projecttalk.io/boards/Semantic-Org%2FSemantic-UI) -Newsletter Updates | Sign up for updates at [semantic-ui.com](http://www.semantic-ui.com) -Additional Resources | Submit a question on [StackOverflow](http://stackoverflow.com/questions/tagged/semantic-ui) or ask our [Google Group](https://groups.google.com/forum/#!forum/semantic-ui) - -#### Places to Help - -Project | How To Help | Next Step ---- | --- | --- | -Localization | Help us translate Semantic UI into your language | [Join our Translation Community](https://github.com/Semantic-Org/Semantic-UI/wiki/Translating-Semantic-UI-Docs) -[SCSS](http://sass-lang.com/) | SASS needs PR to support variables inside `@import` | [Add Pull Request](https://github.com/sass/sass/pulls) for [#739](https://github.com/sass/sass/issues/739#issuecomment-73984809) -[Angular](https://angularjs.org/) | Help develop angular bindings | Reach Out on [GitHub Issues](https://github.com/Semantic-Org/Semantic-UI-Angular/issues/8) -Guides & Tutorials | Help write guides and tutorials | [Join the discussion](https://github.com/Semantic-Org/Semantic-UI/issues/1571) - -#### Reaching Out - -If you'd like to start a conversation about Semantic feel free to e-mail me at [jack@semantic-ui.com](mailto:jack@semantic-ui.com) - -[![Flattr This](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=jlukic&url=https%3A%2F%2Fgithub.com%2Fjlukic%2FSemantic-UI) - - diff --git a/node_modules/semantic-ui/RELEASE-NOTES.md b/node_modules/semantic-ui/RELEASE-NOTES.md deleted file mode 100644 index c33ff6c..0000000 --- a/node_modules/semantic-ui/RELEASE-NOTES.md +++ /dev/null @@ -1,2609 +0,0 @@ -## RELEASE NOTES - -### Version 2.2.8 - February 21, 2016 - -### Important Note -> Some quirks have been resolved that may cause changes for upgrading users who were expecting these behaviors - -#### Form Validation -If you are using form validation, previous to `2.2.8` calling `is valid` would trigger UI updates. This behavior now **no longer triggers UI updates**, and will only return a `boolean` whether form is valid. - -To trigger UI updates you can call `validate form`. Additional form behaviors have been added as well. [See the new documentation on programmatic validation](http://semantic-ui.com/behaviors/form.html#validating-programmatically) for more examples. - -#### Dropdown -`multiple selection dropdown` no longer automatically adds the currently selected value when you "alt-tab" or blur the field, even when `forceSelection: true` is set. - -------------------------------------------------------- - -**Major Enhancements** -- **Icons** - Updates Font Awesome to `4.7.0` **Always the man @BreadMaker** [#4766](https://github.com/Semantic-Org/Semantic-UI/pull/4766) -- **Dropdown** - Added new setting `filterAPIResults`, when set to `true` API will be expected to return the complete result set, which will then be filtered clientside to only display matching results. **Thanks @enix223** [#4815](https://github.com/Semantic-Org/Semantic-UI/pull/4815) -- **Dropdown** - Fixed issue where using some usage of special characters like `\` could cause dropdowns to not work. [#4688](https://github.com/Semantic-Org/Semantic-UI/pull/4688) [#4692](https://github.com/Semantic-Org/Semantic-UI/pull/4692) -- **Tab** - Added setting `loadOnce`, which when enabled only calls remote endpoint for tab data on first load and leaves the DOM undisturbed afterwards. [#2534](https://github.com/Semantic-Org/Semantic-UI/pull/2534) - -**Critical Bugs** -- **Dropdown** - `forceSelection` setting will no longer cause highlighted value in multiselect to be selected on blur when using a `multiple selection dropdown` [#4041](https://github.com/Semantic-Org/Semantic-UI/pull/4041) [#4516](https://github.com/Semantic-Org/Semantic-UI/pull/4516) -- **Dropdown** - Dropdown using search input inside of menu are now tabbable [#4490](https://github.com/Semantic-Org/Semantic-UI/pull/4490) -- **Search** - Fixes issue where empty results message can still appear when using setting `showNoResults: false` [#4616](https://github.com/Semantic-Org/Semantic-UI/pull/4616) -- **Sidebar** - Fixed bug where sidebar in `iOS` would show incorrect background when opening sidebar if page is less than 100% height [#4264](https://github.com/Semantic-Org/Semantic-UI/pull/4264) - -**Critical Doc Fixes** -- **Visibility** - Added documentation for `onOnscreen` and `onOffScreen`, two very important callbacks that occur when an element is or isn't in currently scrolled view. - -**Enhancements** -- **Items** - Added `unstackable` variation to prevent items from stacking on mobile [#2901](https://github.com/Semantic-Org/Semantic-UI/pull/2901) -- **Search** - Added new parameter `callback` to behaviors `query`, `show results`, `hide results`, and `search remote` to allow a function to be called after completion. -- **Form Validation** - Rules now properly supports identifiers with special characters like brackets, e.g. `name="user[name]"` **Thanks @mzygmunt** [#4163](https://github.com/Semantic-Org/Semantic-UI/pull/4163) -- **Search** - `esc` key now hides results and prevents them from being displayed again until form field is blurred - -**Build Tools** -- **NPM** - Removed dependency on tarball, packaged new patched WrenchJS under Semantic-org [as a new package](http://github.com/semantic-org/wrench-js). - -**Bugs** -- **Button** - Fixed issue where css specificity caused `icon buttons` to not center correctly [#4487](https://github.com/Semantic-Org/Semantic-UI/pull/4487) -- **Dropdown** - Fixed bug where clicking on a dropdown's `dropdown icon` when using remote data would not open menu [#4041](https://github.com/Semantic-Org/Semantic-UI/pull/4041) -- **Dropdown/Search/Checkbox** - Removes use of deprecated `dispatchEvent` DOM APIs for generating simulated events -- **Dropdown** - Fixes issue where `left pointing dropdown` and `right pointing dropdown` appear styled incorrectly when opening `upward` [#4896](https://github.com/Semantic-Org/Semantic-UI/pull/4896) -- **Dropdown** - Fixed issue where using `fullTextSearch: 'exact'` would still fuzzy search on value **Thanks @ rminnett** [#4651](https://github.com/Semantic-Org/Semantic-UI/pull/4651) [#3424](https://github.com/Semantic-Org/Semantic-UI/pull/3424) -- **Dropdown** - Fix bug where `scrolling menu` or `scrolling dropdown` would have excessive right padding by removing scrollbar width from calculation (no longer necessary in modern browsers) -- **Comments** - `small`, `large` and other comment sizes now default to global size variables. -- **Dropdown** - Fixed issue where `selectOnKeydown` with `html` content would cause only non html content to display in `text` until blur -- **Form Validation** - Fixes issue where decimal validation would allow multiple `.` in value -- **Form Validation** - Fixes js error caused by revalidating inputs without validation rules [#4497](https://github.com/Semantic-Org/Semantic-UI/pull/4497) [#4547](https://github.com/Semantic-Org/Semantic-UI/pull/4457) **Thanks @cbxp** -- **Header** - Fixed issue where using `image icon` or `image outline icon` would cause incorrect display within `ui header` due to namespace collision with `ui image` [#4145](https://github.com/Semantic-Org/Semantic-UI/pull/4145) -- **Input/Dropdown** - Fixed rounding error causing vertical alignment of `dropdown`, `search`, `input` to sometimes appear off by 1 pixel [#4279](https://github.com/Semantic-Org/Semantic-UI/pull/4279) -- **Segment** - Fixed `padded vertical segment` `very padded vertical segment` mistakenly receives horizontal padding [#3012](https://github.com/Semantic-Org/Semantic-UI/pull/3012) -- **Visibility** - Images that use `$('img').visibility({ type: 'image'})` will no longer animate a second time if re-initialized. -- **Form Validation** - Fixed issue where using bracketed values, or other special characters could cause errors with selectors [#4163](https://github.com/Semantic-Org/Semantic-UI/pull/4163) [#4164](https://github.com/Semantic-Org/Semantic-UI/pull/4164) - -**Documentation** -- **Comments** - Added missing `size` variations to comments docs [#4450](https://github.com/Semantic-Org/Semantic-UI/pull/4450) -- **Typos** - Thanks to everyone who has submitted typo/grammatical PRs, much appreciated - -### Version 2.2.7 - December 21, 2016 - -**Build Tools** -- **Autoinstall** - Fixes issue where `autoinstall: true` was not copying build files during `npm install` **Thanks @AnsonT** [#4430](https://github.com/Semantic-Org/Semantic-UI/pull/4430) -- **Dependencies** - Updates build dependencies - -### Version 2.2.6 - October, 27, 2016 - -**Bugs** --**Tab** - Hotfix for accidental use of ES6 `let` - -### Version 2.2.5 - October, 27, 2016 - -**Bugs** -- **Search** - Fixed issue where pressing "up" key when no results selected would cause bottom result to be selected -- **Search** - Fixed issue where input may attempt to refocus when search element is immediately removed from browser's DOM after a result is clicked. -- **Flat Theme** - Fixes inverted input color - -**Enhancements** -- **Tab** - Added new tab cache type `DOM` which preserves the final DOM state after scripts rendering. This can be used to avoid re-running returned ` - - - - - - -
    -
    -
    -

    Bootstrap Migration

    -
    -
    -
    -
    -
    -

    Hello, world!

    -

    This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.

    - Learn more » -
    -
    -
    - -
    -
    -

    Thumbnails

    -
    - -
    -
    -
    -
    -

    Dropdown

    -
    - - - - -
    -
    -
    -
    -

    Badges

    -
    - -
    -
    - -
    -
    -

    Tables

    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    NamePremium Plan
    JohnNo
    JamieYes
    JillYes
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    NamePremium Plan
    JohnNo
    JamieYes
    JillYes
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    NamePremium Plan
    JohnNo
    JamieYes
    JillYes
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    NamePremium Plan
    JohnNo
    JamieYes
    JillYes
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeFilesLanguages
    RubyJavaScriptPython
    Alpha TeamProject 12 - -
    Beta TeamProject 152 - -
    Project 212 - -
    Project 321 - -
    -
    -
    -
    -
    -
    -
    -

    Alerts

    -
    -
    Well done! You successfully read this important alert message.
    -
    Heads up! This alert needs your attention, but it's not super important.
    -
    Warning! Best check yo self, you're not looking too good.
    -
    Oh snap! Change a few things up and try submitting again.
    -
    -
    - -
    -
    -

    Panels

    -
    -
    -
    -
    -
    One
    -
    Two
    -
    Three
    -
    -
    -
    -
    -
    One
    -
    Two
    -
    Three
    -
    -
    -
    -
    -
    One
    -
    Two
    -
    Three
    -
    -
    -
    -
    Error
    -
    Panel content
    -
    -
    -
    Info
    -
    Panel content
    -
    -
    -
    Success
    -
    Panel content
    -
    -
    -

    Header

    -
    Panel content
    -
    -
    -

    Header

    -
    Panel content
    -
    -
    -

    Header

    -
    Panel content
    -
    -
    -
    -
    -
    -
    -

    Wells

    -
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.

    -
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.

    -
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.

    -
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.

    -
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.

    -
    -
    -

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Aenean lacinia bibendum nulla sed consectetur.

    -
    -
    -
    -
    - - - - diff --git a/node_modules/semantic-ui/examples/components/button.html b/node_modules/semantic-ui/examples/components/button.html deleted file mode 100644 index 57e7e1c..0000000 --- a/node_modules/semantic-ui/examples/components/button.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - - - Theming - Semantic - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - - - - -
    - - - - -
    - -
    - - -
    - - - -
    - -
    -
    Horizontal
    - -
    -
    -
    Vertical
    - -
    -
    -
    Fade In
    - -
    - -
    - - - -
    - -
    - - - -
    - -
    - - - - -
    - -
    - -
    - -
    - -
    - -
    -
    One
    -
    Two
    -
    -
    - -
    -
    -
    One
    -
    Two
    -
    - -
    -
    - - - - - - - -
    -
    - - - - - - - - - -
    - - -
    - -
    - - - - -
    - -
    -
    - - - \ No newline at end of file diff --git a/node_modules/semantic-ui/examples/components/card.html b/node_modules/semantic-ui/examples/components/card.html deleted file mode 100644 index f7ffa48..0000000 --- a/node_modules/semantic-ui/examples/components/card.html +++ /dev/null @@ -1,313 +0,0 @@ - - - - - - - - Theming - Semantic - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    -
    -
    -
    -
    Add Friend
    -
    -
    -
    - -
    -
    -
    Title
    -
    - Meta -
    -
    One or two sentence description that may go to several lines
    -
    - -
    -
    -
    -
    -
    -
    -
    Call to Action
    -
    -
    -
    - -
    -
    - Name -
    - Date -
    -
    - -
    -
    -
    -
    - -
    - -
    -
    - -
    -
    -
    -
    -
    - -
    - -
    -
    - -
    -
    -
    -
    -
    -
    - - - - Favorite - -
    -
    - -
    -
    -
    -
    -
    - - Abbreviated Header -
    -
    - -
    -
    -
    -
    - Action 1 -
    -
    - Action 2 -
    -
    -
    - -
    -
    Cute Dog
    -
    - Animals -
    -
    - -
    -
    -
    -
    - Username -
    -
    -
    -
    -
    -
    - Action 1 -
    -
    - Action 2 -
    -
    -
    - -
    -
    -
    - Action 3 -
    -
    - Action 4 -
    -
    -
    -
    - - -
    -
    -
    - Content 1 -
    -
    - Content 2 -
    -
    - Content 3 -
    -
    - Extra Content -
    -
    -
    -
    - Content 1 -
    -
    - Content 2 -
    -
    - Content 3 -
    -
    - Extra Content -
    -
    -
    -
    - Content 1 -
    -
    - Content 2 -
    -
    - Content 3 -
    -
    - Extra Content -
    -
    -
    -
    - Content 1 -
    -
    - Content 2 -
    -
    - Content 3 -
    -
    - Extra Content -
    -
    -
    - -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    - - - \ No newline at end of file diff --git a/node_modules/semantic-ui/examples/components/input.html b/node_modules/semantic-ui/examples/components/input.html deleted file mode 100644 index 8e20283..0000000 --- a/node_modules/semantic-ui/examples/components/input.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - Theming - Semantic - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - -
    - - -
    Search
    -
    - -
    -
    - -
    -
    - -
    - - -
    -
    - -
    - - -
    -
    - - -
    -
    -
    - - -
    - -
    - - -
    - -
    -
    - -
    - -
    - -
    -
    -
    - http:// -
    - - -
    -
    - -
    - - Add -
    -
    -
    -
    - -
    - -
    -
    - -
    -
    - - - \ No newline at end of file diff --git a/node_modules/semantic-ui/examples/components/menu.html b/node_modules/semantic-ui/examples/components/menu.html deleted file mode 100644 index 5c66e2a..0000000 --- a/node_modules/semantic-ui/examples/components/menu.html +++ /dev/null @@ -1,183 +0,0 @@ - - - - - - - - Theming - Semantic - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - -
    - -
    - -
    - -
    - -
    -
    - - - \ No newline at end of file diff --git a/node_modules/semantic-ui/examples/components/site.html b/node_modules/semantic-ui/examples/components/site.html deleted file mode 100644 index 88be119..0000000 --- a/node_modules/semantic-ui/examples/components/site.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - Theming - Semantic - - - - - - - - - - -
    -
    -

    Heading 1

    -

    Heading 2

    -

    Heading 3

    -

    Heading 4

    -
    Heading 5
    -

    Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

    -
    -
    -

    Example body text

    -

    Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

    -

    This line of text is meant to be treated as fine print.

    -

    The following snippet of text is rendered as bold text.

    -

    The following snippet of text is rendered as italicized text.

    -

    An abbreviation of the word attribute is attr.

    -
    -
    -
    -
    Red
    -
    Orange
    -
    Yellow
    -
    Olive
    -
    Green
    -
    Teal
    -
    Blue
    -
    Violet
    -
    Purple
    -
    Pink
    -
    Brown
    -
    Grey
    -
    Black
    -
    -
    -
    - - - \ No newline at end of file diff --git a/node_modules/semantic-ui/examples/components/table.html b/node_modules/semantic-ui/examples/components/table.html deleted file mode 100644 index 3564728..0000000 --- a/node_modules/semantic-ui/examples/components/table.html +++ /dev/null @@ -1,471 +0,0 @@ - - - - - - - - Theming - Semantic - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Delmar3636g2g
    Louise2424g29g
    Terrell2211g9g
    Marion735g3g
    Clayton738g20g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Drema1526g8g
    Nona1121g16g
    Isidra3443g11g
    Bart4140g30g
    Nguyet4144g28g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Mirna128g29g
    Fernando382g48g
    Lisette189g23g
    Ahmad4226g49g
    Laquanda2727g49g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Drema1526g8g
    Nona1121g16g
    Isidra3443g11g
    Bart4140g30g
    Nguyet4144g28g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Tasia127g21g
    Ronnie3837g38g
    Gabriel3046g46g
    Logan1221g39g
    Clare3941g2g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Rosaline535g6g
    Barrie2723g28g
    Trinidad1450g7g
    Jaqueline3130g50g
    Tamala186g13g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Lianne2332g43g
    Joette2113g31g
    Le2839g23g
    Sacha4643g13g
    Bruna947g12g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    CaloriesFatProtein
    Lianne2332g43g
    Joette2113g31g
    Le2839g23g
    Sacha4643g13g
    Bruna947g12g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Lianne2332g43g
    Joette2113g31g
    Le2839g23g
    Sacha4643g13g
    Bruna947g12g
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PersonCaloriesFatProtein
    Lianne2332g43g
    Joette2113g31g
    Le2839g23g
    Sacha4643g13g
    Bruna947g12g
    -
    - - - \ No newline at end of file diff --git a/node_modules/semantic-ui/examples/fixed.html b/node_modules/semantic-ui/examples/fixed.html deleted file mode 100644 index d285eaa..0000000 --- a/node_modules/semantic-ui/examples/fixed.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - Fixed Menu Example - Semantic - - - - - - - - - - - - - - - - - - - - - - - -
    -

    Semantic UI Fixed Template

    -

    This is a basic fixed menu template using fixed size containers.

    -

    A text container is used for the main container, which is useful for single column layouts

    - - - - - - - -
    - - - - - diff --git a/node_modules/semantic-ui/examples/grid.html b/node_modules/semantic-ui/examples/grid.html deleted file mode 100644 index fea3f9e..0000000 --- a/node_modules/semantic-ui/examples/grid.html +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - - - - - Grid Example - Semantic - - - - - - - - - - - -
    -

    Using Grids

    - -

    Container

    -

    A container is a fixed width element that wraps your site's content. It remains a constant size and uses margin to center. Containers are the simplest way to center page content inside a grid. -

    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    -

    Text Container

    -

    Sometimes you just need to put a single column of centered text on a page. A text container is a special type of container optimized for a single flowing column of text, like this instructions on this page. -

    -

    Text containers do not need to use grids and help simplify basic page layouts.

    -
    - -
    -
    -
    -
    -
    - - -
    - -

    Grid Content

    - -

    Column Flow

    -

    A grid does not necessarily need to specify rows. If you include columns as direct child of ui grid content will automatically flow to the next row when all the grid columns are taken in the current row.

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    Clearing Rows

    -

    Adding row wrappers allow you to manually specify you want a new row to begin.

    - -
    -
    -
    -
    -
    -
    -
    -
    - -

    Specifying Row Width

    -

    Specifying a grid column count will divide columns into rows of predetermined column count. Additional columns will automatically flow to the next row.

    -
    -
    column
    -
    column
    -
    column
    -
    column
    -
    column
    -
    column
    -
    - -

    Specifying Column Width

    -

    You can also specify column widths for each column individually

    -
    -
    four wide column
    -
    eight wide column
    -
    four wide column
    -
    - -

    Special Variations

    -

    Some special variations that format grids like tables require you to specify rows. For example a divided grid or a celled grid requires row wrappers.

    - -
    Celled Grid
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    Internally Celled Grid
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - -
    Divided Grid
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -
    Vertically Divided Grid
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    Adjusting Grids

    - - -

    Centering Content

    -

    If a row does not take up all sixteen grid columns, you can use a ui centered grid, centered row, or centered column to center the column contents inside the grid. -

    -
    -
    -
    -
    -
    -
    -
    - -

    Floating Rows

    -

    Since Semantic UI's grid is based on flex box, a left floated item should come first, and a right floated item last in its row.

    - -
    -
    -
    - Left floated -
    -
    -
    -
    - Right floated -
    -
    -
    - - -

    Text Alignment

    -

    You can specify text alignment using alignment variations on a grid, row, or column level.

    - -
    -
    - right aligned column -
    -
    - left aligned column -
    -
    -
    - center aligned row -
    -
    - center aligned row -
    -
    -
    - right aligned column -
    -
    - -

    Vertical Alignment

    -

    You can specify vertical alignment on a grid, row, or column level.

    -
    -
    -
    - -
    -
    - - -
    -
    - -
    -
    -
    - -

    Equal Width Columns

    -

    Specifying an equal width grid will automatically determine column sizes to fit evenly inside one row

    -
    -
    -
    column
    -
    column
    -
    column
    -
    column
    -
    -
    -
    column
    -
    column
    -
    column
    -
    -
    - - -

    Responsive Patterns

    - -

    Doubling

    -

    You can set columns to double in width at each device jump

    -
    -
    column
    -
    column
    -
    column
    -
    column
    -
    column
    -
    - -

    Stackable

    -

    You can set columns to stack on mobile

    -
    -
    column
    -
    column
    -
    column
    -
    - -

    Responsive Width Adjustments

    -

    You can specify columns to appear at different widths on different screens

    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - -

    Specifying Device Visibility

    -

    You can specify columns to appear only a particular screen

    -
    -
    -
    ten wide column computer only
    -
    six wide column computer only
    -
    -
    sixteen wide column mobile only
    -
    -
    computer only row
    -
    computer only row
    -
    computer only row
    -
    -
    -
    mobile only column
    -
    mobile only column
    -
    -
    -
    column
    -
    column
    -
    -
    - -
    -
    - - - - - - diff --git a/node_modules/semantic-ui/examples/homepage.html b/node_modules/semantic-ui/examples/homepage.html deleted file mode 100644 index c236f2b..0000000 --- a/node_modules/semantic-ui/examples/homepage.html +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - - - - - Homepage - Semantic - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - -
    - -
    - -
    -

    - Imagine-a-Company -

    -

    Do whatever you want when you want to.

    -
    Get Started
    -
    - -
    - -
    -
    -
    -
    -

    We Help Companies and Companions

    -

    We can give your company superpowers to do things that they never thought possible. Let us delight your customers and empower your needs...through pure data analytics.

    -

    We Make Bananas That Can Dance

    -

    Yes that's right, you thought it was the stuff of dreams, but even bananas can be bioengineered.

    -
    -
    - -
    -
    -
    - -
    -
    -
    - - -
    -
    -
    -
    -

    "What a Company"

    -

    That is what they all say about us

    -
    -
    -

    "I shouldn't have gone with their competitor."

    -

    - Nan Chief Fun Officer Acme Toys -

    -
    -
    -
    -
    - -
    -
    -

    Breaking The Grid, Grabs Your Attention

    -

    Instead of focusing on content creation and hard work, we have learned how to master the art of doing nothing by providing massive amounts of whitespace and generic content that can seem massive, monolithic and worth your attention.

    - Read More -

    - Case Studies -

    -

    Did We Tell You About Our Bananas?

    -

    Yes I know you probably disregarded the earlier boasts as non-sequitur filler content, but its really true. It took years of gene splicing and combinatory DNA research, but our bananas can really dance.

    - I'm Still Quite Interested -
    -
    - - - -
    - - - - diff --git a/node_modules/semantic-ui/examples/login.html b/node_modules/semantic-ui/examples/login.html deleted file mode 100644 index 4783340..0000000 --- a/node_modules/semantic-ui/examples/login.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - Login Example - Semantic - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -

    - -
    - Log-in to your account -
    -

    -
    -
    -
    -
    - - -
    -
    -
    -
    - - -
    -
    -
    Login
    -
    - -
    - -
    - -
    - New to us? Sign Up -
    -
    -
    - - - - diff --git a/node_modules/semantic-ui/examples/responsive.html b/node_modules/semantic-ui/examples/responsive.html deleted file mode 100644 index 7e4a9eb..0000000 --- a/node_modules/semantic-ui/examples/responsive.html +++ /dev/null @@ -1,689 +0,0 @@ - - - - - - - - - - Responsive Elements - Semantic - - - - - - - - -

    Responsive UI Examples

    - - -

    Basic Responsive

    - - -

    Container

    -
    -
    -
    Content
    -
    Content
    -
    Content
    -
    Content
    -
    -
    -

    Text Container

    -
    -
    -
    Content
    -
    Content
    -
    Content
    -
    Content
    -
    -
    - -

    Stackable Grid

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - - -

    Doubling Grid

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - -

    Doubling Stackable Grid

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - -

    Nested Stackable Grid

    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    - - -

    Stackable Grid Container

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - - -

    Doubling Grid Container

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - -

    Doubling Stackable Grid Container

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - -

    Device Adjustment

    - -

    Device Column Width

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - -

    Device Visibility

    -
    -
    -
    Widescreen
    -
    -
    -
    Widescreen
    -
    -
    -
    Large Screen
    -
    -
    -
    Large Screen
    -
    -
    -
    Tablet and Mobile
    -
    -
    -
    Tablet and Mobile
    -
    -
    -
    Mobile
    -
    -
    -
    -
    Computer and Up
    -
    -
    -
    Computer and Up
    -
    -
    -
    -
    Tablet Only Content
    -
    -
    -
    Tablet Only Content
    -
    -
    -
    Tablet Only Content
    -
    -
    -
    Tablet Only Content
    -
    -
    - - -

    Responsive Grid with Variations

    - -

    Stackable Divided Grid

    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    - -

    Stackable Vertically Divided Grid

    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    - -

    Celled Stackable Grid

    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -

    Consecutive Doubling Stackable Grid

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - -

    Grid Container

    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    -
    Content
    -
    -
    - -

    Responsive Elements

    - - -

    Responsive Vertical Divider

    - -
    -
    -
    Content
    -
    -
    - Or -
    -
    -
    Content
    -
    -
    - - -

    Responsive Table

    - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    EmployeeCorrect Guesses
    -

    - -
    - Lena -
    Human Resources -
    -
    -

    - 22 -
    -

    - -
    - Matthew -
    Fabric Design -
    -
    -

    - 15 -
    -

    - -
    - Lindsay -
    Entertainment -
    -
    -

    - 12 -
    -

    - -
    - Mark -
    Executive -
    -
    -

    - 11 -
    -
    - -

    Responsive Menu

    - - - -

    Responsive Item

    - -
    -
    -
    -
    - -
    -
    - Content Header -
    - Date - Category -
    -
    - A description which may flow for several lines and give context to the content. -
    -
    - Username -
    -
    -
    -
    -
    - -
    -
    - Content Header -
    - Date - Category -
    -
    - A description which may flow for several lines and give context to the content. -
    -
    -
    - Primary - -
    -
    Limited
    -
    -
    -
    -
    -
    - -
    -
    - Content Header -
    - Date - Category -
    -
    - A description which may flow for several lines and give context to the content. -
    -
    -
    - Primary - -
    -
    -
    -
    -
    -
    - -

    Responsive Steps

    - -
    -
    -
    -
    -
    Shipping
    -
    Choose your shipping options
    -
    -
    -
    -
    -
    Billing
    -
    Enter billing information
    -
    -
    -
    -
    -
    Confirm Order
    -
    Review your order details
    -
    -
    -
    -
    - - - - - - - - - diff --git a/node_modules/semantic-ui/examples/sticky.html b/node_modules/semantic-ui/examples/sticky.html deleted file mode 100644 index ce4bf18..0000000 --- a/node_modules/semantic-ui/examples/sticky.html +++ /dev/null @@ -1,230 +0,0 @@ - - - - - - - - - - Sticky Example - Semantic - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -

    Sticky Example

    -

    This example shows how to use lazy loaded images, a sticky menu, and a simple text container

    -
    - - - - -
    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -
    - -
    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    - -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. - - Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    - -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. - - Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus

    -
    - - - - - diff --git a/node_modules/semantic-ui/examples/theming.html b/node_modules/semantic-ui/examples/theming.html deleted file mode 100644 index e6c0689..0000000 --- a/node_modules/semantic-ui/examples/theming.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - Theming - Semantic - - - - - - - - - -
    - -

    Theming Examples

    - -

    Site

    - - -

    Menu

    - - -

    Buttons

    - - -

    Table

    - - -

    Input

    - - - -

    Card

    - - - - -
    - - - - - - diff --git a/node_modules/semantic-ui/gulpfile.js b/node_modules/semantic-ui/gulpfile.js deleted file mode 100644 index 7b9c589..0000000 --- a/node_modules/semantic-ui/gulpfile.js +++ /dev/null @@ -1,84 +0,0 @@ -/******************************* - Set-up -*******************************/ - -var - gulp = require('gulp-help')(require('gulp')), - - // read user config to know what task to load - config = require('./tasks/config/user'), - - // watch for file changes and build - watch = require('./tasks/watch'), - - // build all files - build = require('./tasks/build'), - buildJS = require('./tasks/build/javascript'), - buildCSS = require('./tasks/build/css'), - buildAssets = require('./tasks/build/assets'), - - // utility tasks - clean = require('./tasks/clean'), - version = require('./tasks/version'), - - // install tasks - install = require('./tasks/install'), - checkInstall = require('./tasks/check-install'), - - // docs tasks - serveDocs = require('./tasks/docs/serve'), - buildDocs = require('./tasks/docs/build'), - - // rtl - buildRTL = require('./tasks/rtl/build'), - watchRTL = require('./tasks/rtl/watch') -; - - -/******************************* - Tasks -*******************************/ - -gulp.task('default', false, [ - 'check-install' -]); - -gulp.task('watch', 'Watch for site/theme changes', watch); - -gulp.task('build', 'Builds all files from source', build); -gulp.task('build-javascript', 'Builds all javascript from source', buildJS); -gulp.task('build-css', 'Builds all css from source', buildCSS); -gulp.task('build-assets', 'Copies all assets from source', buildAssets); - -gulp.task('clean', 'Clean dist folder', clean); -gulp.task('version', 'Displays current version of Semantic', version); - -gulp.task('install', 'Runs set-up', install); -gulp.task('check-install', 'Displays current version of Semantic', checkInstall); - -/*-------------- - Docs ----------------*/ - -/* - Lets you serve files to a local documentation instance - https://github.com/Semantic-Org/Semantic-UI-Docs/ -*/ - -gulp.task('serve-docs', 'Serve file changes to SUI Docs', serveDocs); -gulp.task('build-docs', 'Build all files and add to SUI Docs', buildDocs); - - -/*-------------- - RTL ----------------*/ - -if(config.rtl) { - gulp.task('watch-rtl', 'Watch files as RTL', watchRTL); - gulp.task('build-rtl', 'Build all files as RTL', buildRTL); -} - -/* Admin Tasks */ -if(config.admin) { - require('./tasks/collections/admin')(gulp); -} diff --git a/node_modules/semantic-ui/karma.conf.js b/node_modules/semantic-ui/karma.conf.js deleted file mode 100644 index 970b152..0000000 --- a/node_modules/semantic-ui/karma.conf.js +++ /dev/null @@ -1,85 +0,0 @@ -// Karma configuration -module.exports = function(config) { - config.set({ - - // base path, that will be used to resolve files and exclude - basePath: '', - - // frameworks to use - frameworks: [ - 'jasmine' - ], - - // list of files / patterns to load in the browser - files: [ - // require jquery - 'server/files/javascript/library/jquery.js', - // read css from compiled css - 'docs/build/uncompressed/**/*.css', - // read js from src js - 'src/definitions/**/*.js', - // require helpers - 'test/helpers/*.js', - // require fixtures - { - pattern : 'test/fixtures/*.html', - included : false, - served : true - }, - // require spec - 'test/modules/module.spec.js', - // require tests - 'test/modules/*.js' - ], - - // list of files to exclude - exclude: [ - '**/*.swp', - 'karma.conf.js' - ], - - preprocessors: { - '**/*.html': [], - 'src/definitions/**/*.js': 'coverage' - }, - - // test results reporter to use - // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' - reporters: ['spec', 'coverage'], - - coverageReporter: { - type: 'lcov' - }, - - // web server port - port: 9999, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: true, - - // Start these browsers, currently available: - // - Chrome - // - ChromeCanary - // - Firefox - // - Opera - // - Safari (only Mac) - // - PhantomJS - // - IE (only Windows) - browsers: ['PhantomJS'], - - - // If browser does not capture in given timeout [ms], kill it - captureTimeout: 60000, - - // Continuous Integration mode - // if true, it capture browsers, run tests and exit - singleRun: false - }); -}; diff --git a/node_modules/semantic-ui/logo.png b/node_modules/semantic-ui/logo.png deleted file mode 100644 index 9f1df7b..0000000 Binary files a/node_modules/semantic-ui/logo.png and /dev/null differ diff --git a/node_modules/semantic-ui/package.json b/node_modules/semantic-ui/package.json deleted file mode 100644 index 13a0007..0000000 --- a/node_modules/semantic-ui/package.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "_args": [ - [ - { - "raw": "semantic-ui", - "scope": null, - "escapedName": "semantic-ui", - "name": "semantic-ui", - "rawSpec": "", - "spec": "latest", - "type": "tag" - }, - "/Users/jose/Documents/GitHub/About" - ] - ], - "_from": "semantic-ui@latest", - "_id": "semantic-ui@2.2.9", - "_inCache": true, - "_location": "/semantic-ui", - "_nodeVersion": "7.5.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/semantic-ui-2.2.9.tgz_1487700257954_0.9558000436518341" - }, - "_npmUser": { - "name": "semantic-bot", - "email": "bot@semantic-ui.com" - }, - "_npmVersion": "4.2.0", - "_phantomChildren": {}, - "_requested": { - "raw": "semantic-ui", - "scope": null, - "escapedName": "semantic-ui", - "name": "semantic-ui", - "rawSpec": "", - "spec": "latest", - "type": "tag" - }, - "_requiredBy": [ - "#USER", - "/" - ], - "_resolved": "https://registry.npmjs.org/semantic-ui/-/semantic-ui-2.2.9.tgz", - "_shasum": "e7e48b62b52c7e0c309f4f1895f92e9d1487fe42", - "_shrinkwrap": null, - "_spec": "semantic-ui", - "_where": "/Users/jose/Documents/GitHub/About", - "author": { - "name": "Jack Lukic", - "email": "jack@semantic-ui.com" - }, - "bugs": { - "url": "https://github.com/Semantic-Org/Semantic-UI/issues" - }, - "dependencies": { - "better-console": "*", - "del": "^2.2.2", - "extend": "^3.0.0", - "gulp": "^3.9.1", - "gulp-autoprefixer": "^3.1.1", - "gulp-chmod": "^2.0.0", - "gulp-clean-css": "^2.3.2", - "gulp-clone": "^1.0.0", - "gulp-concat": "^2.6.1", - "gulp-concat-css": "^2.3.0", - "gulp-copy": "1.0.0", - "gulp-dedupe": "0.0.2", - "gulp-flatten": "^0.3.1", - "gulp-header": "^1.8.8", - "gulp-help": "^1.6.1", - "gulp-if": "^2.0.2", - "gulp-json-editor": "^2.2.1", - "gulp-less": "^3.3.0", - "gulp-notify": "^2.2.0", - "gulp-plumber": "^1.1.0", - "gulp-print": "^2.0.1", - "gulp-prompt": "^0.2.0", - "gulp-rename": "^1.2.2", - "gulp-replace": "^0.5.4", - "gulp-rtlcss": "^1.0.0", - "gulp-uglify": "^2.0.0", - "gulp-util": "^3.0.7", - "gulp-watch": "^4.3.11", - "jquery": "^3.1.1", - "map-stream": "^0.1.0", - "merge-stream": "^1.0.0", - "mkdirp": "^0.5.1", - "require-dot-file": "^0.4.0", - "run-sequence": "^1.2.2", - "wrench-sui": "^0.0.3", - "yamljs": "^0.2.8" - }, - "description": "Semantic empowers designers and developers by creating a shared vocabulary for UI.", - "devDependencies": { - "github": "*", - "gulp-concat-filenames": "*", - "gulp-debug": "*", - "gulp-git": "*", - "gulp-tap": "*", - "merge-stream": "*" - }, - "directories": {}, - "dist": { - "shasum": "e7e48b62b52c7e0c309f4f1895f92e9d1487fe42", - "tarball": "https://registry.npmjs.org/semantic-ui/-/semantic-ui-2.2.9.tgz" - }, - "gitHead": "a0fc599c164ec05987beb6fa88fb6763395281a5", - "homepage": "http://www.semantic-ui.com", - "license": "MIT", - "maintainers": [ - { - "name": "jlukic", - "email": "jack@semantic-ui.com" - }, - { - "name": "semantic-bot", - "email": "bot@semantic-ui.com" - } - ], - "name": "semantic-ui", - "optionalDependencies": {}, - "peerDependencies": { - "better-console": "*", - "del": "*", - "extend": "*", - "gulp": "*", - "gulp-autoprefixer": "*", - "gulp-chmod": "*", - "gulp-clean-css": "*", - "gulp-clone": "*", - "gulp-concat": "*", - "gulp-concat-css": "*", - "gulp-copy": "*", - "gulp-dedupe": "*", - "gulp-flatten": "*", - "gulp-header": "*", - "gulp-help": "*", - "gulp-if": "*", - "gulp-less": "*", - "gulp-notify": "*", - "gulp-plumber": "*", - "gulp-print": "*", - "gulp-rename": "*", - "gulp-replace": "*", - "gulp-rtlcss": "*", - "gulp-uglify": "*", - "gulp-util": "*", - "gulp-watch": "*", - "map-stream": "*", - "require-dot-file": "*", - "run-sequence": "*", - "yamljs": "*" - }, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/Semantic-Org/Semantic-UI.git" - }, - "scripts": { - "install": "gulp install" - }, - "style": "dist/semantic.css", - "title": "Semantic UI", - "version": "2.2.9" -} diff --git a/node_modules/semantic-ui/semantic.json.example b/node_modules/semantic-ui/semantic.json.example deleted file mode 100644 index 6d67666..0000000 --- a/node_modules/semantic-ui/semantic.json.example +++ /dev/null @@ -1,24 +0,0 @@ -{ - "base": "", - - "paths": { - "source": { - "config" : "src/theme.config", - "definitions" : "src/definitions/", - "site" : "src/site/", - "themes" : "src/themes/" - }, - "output": { - "packaged" : "dist/", - "uncompressed" : "dist/components/", - "compressed" : "dist/components/", - "themes" : "dist/themes/" - }, - "clean" : "dist/" - }, - - "permission" : false, - "autoInstall": false, - "rtl": false - -} diff --git a/node_modules/semantic-ui/src/README.md b/node_modules/semantic-ui/src/README.md deleted file mode 100644 index b725d67..0000000 --- a/node_modules/semantic-ui/src/README.md +++ /dev/null @@ -1,127 +0,0 @@ -## Setup - -### Built-In Tools - -From the Semantic directory you can setup gulp to build Semantic by running. -```bash -npm install -``` - -Semantic will automatically configure itself using a `post-install` script built into the package. - -After set-up can use gulp to build your project's css: -```bash -/* Watch files */ -gulp watch - -/* Build all files */ -gulp build -``` - -Visit the [Getting Started Guide](http://learnsemantic.com/guide/expert.html) for more details on set-up - -### Custom Pipelines - -#### Importing Gulp Tasks - -Each gulp task can be imported into your own Gulpfile using `require` - -```javascript -var - watch = require('path/to/semantic/tasks/watch') -; -gulp.task('watch ui', 'Watch Semantic UI', watch)); -``` - -#### Importing LESS - -> LESS files do not contain vendor prefixes. If you are to use these files directly you must add them during your build step. - -Before using source files you will need to create a `theme.config` by renaming `theme.config.example`, and a site folder by renaming `_site/` to `site/` - -You can then import Semantic from your own LESS files: -```less -/* Import all components */ -@import 'src/semantic'; -``` - -To import individual components you will have to create a scope for each import using `& {}` -```less -/* Import a specific component */ -& { @import 'src/definitions/elements/button'; } -``` - -### Config Files - -These files are generated automatically using install scripts, but must be manually renamed if you are using installing manually. - -filename | usage | Initial Name ---- | --- | --- -**theme.config** | config file that stores each element's current theme for LESS | theme.config.example -**site/** | folder storing all your site's variables and css overrides for each UI component | _site/ -**semantic.json** | stores folder paths for build tools and current installed version for updates. Only necessary when using build tools | semantic.json.example - - -### Workflow - -You will only need to use Semantic's build tools while refining your UI. When designing pages, you can rely on the compiled css packages in `dist/`. - -When creating your UI you can try downloading different themes, adjusting your site-wide settings (font-family, colors, etc) and tweaking components in your site's component overrides. - -Files in the `examples/` folder of your project can be useful for testing out changes in your UI. For example, you might run `gulp watch` download a new theme to `src/site/themes/` then adjust your `theme.config` file with the name of the new theme and refresh `examples/kitchensink.html` to inspect changes in the theme. - -## Theming - -### Concepts - -#### Inheritance - -There are three levels of inheritance in Semantic -* Default theme - Semantic UI's neutral default theme -* Packaged theme - A specified packaged theme, like "amazon", or "material" -* Site theme - A theme specific to your site - -#### Folder Structure - -* `definitions/` contains the `css` and `javascript` definitions for each component -* `themes/` contains *pre-packaged themes* including Semantic's default theme -* `site/` contains your current site's theme - -View the [Theming Guide](http://learnsemantic.com/themes/overview.html) for a more in-depth look - -## Customizing - -#### Basic Customization - -The best way to start customizing is to specify overriding variables in your site's `site.variables` file. - -This is a blank stub file that lets you specify variables that overriding variables. - -Some important values to customize: -* Base font size -* Named color hex codes -* Header/Page Font-families -* Primary and secondary colors -* Grid column count - -To find out what variables are available to modify, you can inspect the variables in the default theme in `themes/default/` - -#### Advanced Configuration - -Each component has its own variable file, which can be used to modify any of the underlying variables for that component. - -For example `/site/elements/button.variables`. - -You may also specify your own custom LESS in `site/elements/button.overrides`. This file will have access to all underlying variables available for that component. - -#### Using Pre-Packaged Themes - -You can modify `theme.config` to use any prepackaged theme available in `src/themes/`. - -For example you can modify `theme.config` to use a `github` button theme by changing -```less -@button: 'github'; -``` - -View the [Customization Guide](http://learnsemantic.com/developing/customizing.html) to learn more - diff --git a/node_modules/semantic-ui/src/_site/collections/breadcrumb.overrides b/node_modules/semantic-ui/src/_site/collections/breadcrumb.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/collections/breadcrumb.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/breadcrumb.variables b/node_modules/semantic-ui/src/_site/collections/breadcrumb.variables deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/collections/breadcrumb.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/form.overrides b/node_modules/semantic-ui/src/_site/collections/form.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/collections/form.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/form.variables b/node_modules/semantic-ui/src/_site/collections/form.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/collections/form.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/grid.overrides b/node_modules/semantic-ui/src/_site/collections/grid.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/collections/grid.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/grid.variables b/node_modules/semantic-ui/src/_site/collections/grid.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/collections/grid.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/menu.overrides b/node_modules/semantic-ui/src/_site/collections/menu.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/collections/menu.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/menu.variables b/node_modules/semantic-ui/src/_site/collections/menu.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/collections/menu.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/message.overrides b/node_modules/semantic-ui/src/_site/collections/message.overrides deleted file mode 100644 index 96091c3..0000000 --- a/node_modules/semantic-ui/src/_site/collections/message.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/message.variables b/node_modules/semantic-ui/src/_site/collections/message.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/collections/message.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/table.overrides b/node_modules/semantic-ui/src/_site/collections/table.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/collections/table.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/collections/table.variables b/node_modules/semantic-ui/src/_site/collections/table.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/collections/table.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/button.overrides b/node_modules/semantic-ui/src/_site/elements/button.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/button.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/button.variables b/node_modules/semantic-ui/src/_site/elements/button.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/button.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/container.overrides b/node_modules/semantic-ui/src/_site/elements/container.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/container.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/container.variables b/node_modules/semantic-ui/src/_site/elements/container.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/container.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/divider.overrides b/node_modules/semantic-ui/src/_site/elements/divider.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/divider.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/divider.variables b/node_modules/semantic-ui/src/_site/elements/divider.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/divider.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/flag.overrides b/node_modules/semantic-ui/src/_site/elements/flag.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/flag.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/flag.variables b/node_modules/semantic-ui/src/_site/elements/flag.variables deleted file mode 100644 index e3e125d..0000000 --- a/node_modules/semantic-ui/src/_site/elements/flag.variables +++ /dev/null @@ -1,3 +0,0 @@ -/*------------------- - Flag Variables ---------------------*/ diff --git a/node_modules/semantic-ui/src/_site/elements/header.overrides b/node_modules/semantic-ui/src/_site/elements/header.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/header.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/header.variables b/node_modules/semantic-ui/src/_site/elements/header.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/header.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/icon.overrides b/node_modules/semantic-ui/src/_site/elements/icon.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/icon.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/icon.variables b/node_modules/semantic-ui/src/_site/elements/icon.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/icon.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/image.overrides b/node_modules/semantic-ui/src/_site/elements/image.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/image.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/image.variables b/node_modules/semantic-ui/src/_site/elements/image.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/image.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/input.overrides b/node_modules/semantic-ui/src/_site/elements/input.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/input.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/input.variables b/node_modules/semantic-ui/src/_site/elements/input.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/input.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/label.overrides b/node_modules/semantic-ui/src/_site/elements/label.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/label.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/label.variables b/node_modules/semantic-ui/src/_site/elements/label.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/label.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/list.overrides b/node_modules/semantic-ui/src/_site/elements/list.overrides deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/list.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/list.variables b/node_modules/semantic-ui/src/_site/elements/list.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/list.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/loader.overrides b/node_modules/semantic-ui/src/_site/elements/loader.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/loader.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/loader.variables b/node_modules/semantic-ui/src/_site/elements/loader.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/loader.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/rail.overrides b/node_modules/semantic-ui/src/_site/elements/rail.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/rail.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/rail.variables b/node_modules/semantic-ui/src/_site/elements/rail.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/rail.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/reveal.overrides b/node_modules/semantic-ui/src/_site/elements/reveal.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/reveal.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/reveal.variables b/node_modules/semantic-ui/src/_site/elements/reveal.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/reveal.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/segment.overrides b/node_modules/semantic-ui/src/_site/elements/segment.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/segment.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/segment.variables b/node_modules/semantic-ui/src/_site/elements/segment.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/segment.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/step.overrides b/node_modules/semantic-ui/src/_site/elements/step.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/elements/step.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/elements/step.variables b/node_modules/semantic-ui/src/_site/elements/step.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/elements/step.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/globals/reset.overrides b/node_modules/semantic-ui/src/_site/globals/reset.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/globals/reset.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/globals/reset.variables b/node_modules/semantic-ui/src/_site/globals/reset.variables deleted file mode 100644 index cd95544..0000000 --- a/node_modules/semantic-ui/src/_site/globals/reset.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Global Variables -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/globals/site.overrides b/node_modules/semantic-ui/src/_site/globals/site.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/globals/site.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/globals/site.variables b/node_modules/semantic-ui/src/_site/globals/site.variables deleted file mode 100644 index 3b5dc7d..0000000 --- a/node_modules/semantic-ui/src/_site/globals/site.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Global Variables -*******************************/ \ No newline at end of file diff --git a/node_modules/semantic-ui/src/_site/modules/accordion.overrides b/node_modules/semantic-ui/src/_site/modules/accordion.overrides deleted file mode 100644 index 660e664..0000000 --- a/node_modules/semantic-ui/src/_site/modules/accordion.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/accordion.variables b/node_modules/semantic-ui/src/_site/modules/accordion.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/accordion.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/chatroom.overrides b/node_modules/semantic-ui/src/_site/modules/chatroom.overrides deleted file mode 100644 index 660e664..0000000 --- a/node_modules/semantic-ui/src/_site/modules/chatroom.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/chatroom.variables b/node_modules/semantic-ui/src/_site/modules/chatroom.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/chatroom.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/checkbox.overrides b/node_modules/semantic-ui/src/_site/modules/checkbox.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/checkbox.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/checkbox.variables b/node_modules/semantic-ui/src/_site/modules/checkbox.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/checkbox.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/dimmer.overrides b/node_modules/semantic-ui/src/_site/modules/dimmer.overrides deleted file mode 100644 index 660e664..0000000 --- a/node_modules/semantic-ui/src/_site/modules/dimmer.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/dimmer.variables b/node_modules/semantic-ui/src/_site/modules/dimmer.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/dimmer.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/dropdown.overrides b/node_modules/semantic-ui/src/_site/modules/dropdown.overrides deleted file mode 100644 index 660e664..0000000 --- a/node_modules/semantic-ui/src/_site/modules/dropdown.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/dropdown.variables b/node_modules/semantic-ui/src/_site/modules/dropdown.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/dropdown.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/embed.overrides b/node_modules/semantic-ui/src/_site/modules/embed.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/embed.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/embed.variables b/node_modules/semantic-ui/src/_site/modules/embed.variables deleted file mode 100644 index e69de29..0000000 diff --git a/node_modules/semantic-ui/src/_site/modules/modal.overrides b/node_modules/semantic-ui/src/_site/modules/modal.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/modal.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/modal.variables b/node_modules/semantic-ui/src/_site/modules/modal.variables deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/modal.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/nag.overrides b/node_modules/semantic-ui/src/_site/modules/nag.overrides deleted file mode 100644 index 660e664..0000000 --- a/node_modules/semantic-ui/src/_site/modules/nag.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/nag.variables b/node_modules/semantic-ui/src/_site/modules/nag.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/nag.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/popup.overrides b/node_modules/semantic-ui/src/_site/modules/popup.overrides deleted file mode 100644 index 660e664..0000000 --- a/node_modules/semantic-ui/src/_site/modules/popup.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/popup.variables b/node_modules/semantic-ui/src/_site/modules/popup.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/popup.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/progress.overrides b/node_modules/semantic-ui/src/_site/modules/progress.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/progress.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/progress.variables b/node_modules/semantic-ui/src/_site/modules/progress.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/progress.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/rating.overrides b/node_modules/semantic-ui/src/_site/modules/rating.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/rating.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/rating.variables b/node_modules/semantic-ui/src/_site/modules/rating.variables deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/rating.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/search.overrides b/node_modules/semantic-ui/src/_site/modules/search.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/search.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/search.variables b/node_modules/semantic-ui/src/_site/modules/search.variables deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/search.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/shape.overrides b/node_modules/semantic-ui/src/_site/modules/shape.overrides deleted file mode 100644 index 660e664..0000000 --- a/node_modules/semantic-ui/src/_site/modules/shape.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/shape.variables b/node_modules/semantic-ui/src/_site/modules/shape.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/shape.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/sidebar.overrides b/node_modules/semantic-ui/src/_site/modules/sidebar.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/sidebar.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/sidebar.variables b/node_modules/semantic-ui/src/_site/modules/sidebar.variables deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/sidebar.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/sticky.overrides b/node_modules/semantic-ui/src/_site/modules/sticky.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/sticky.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/sticky.variables b/node_modules/semantic-ui/src/_site/modules/sticky.variables deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/sticky.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/tab.overrides b/node_modules/semantic-ui/src/_site/modules/tab.overrides deleted file mode 100644 index 660e664..0000000 --- a/node_modules/semantic-ui/src/_site/modules/tab.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/tab.variables b/node_modules/semantic-ui/src/_site/modules/tab.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/tab.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/transition.overrides b/node_modules/semantic-ui/src/_site/modules/transition.overrides deleted file mode 100644 index cba59ef..0000000 --- a/node_modules/semantic-ui/src/_site/modules/transition.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - Site Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/modules/transition.variables b/node_modules/semantic-ui/src/_site/modules/transition.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/modules/transition.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/ad.overrides b/node_modules/semantic-ui/src/_site/views/ad.overrides deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/ad.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/ad.variables b/node_modules/semantic-ui/src/_site/views/ad.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/ad.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/card.overrides b/node_modules/semantic-ui/src/_site/views/card.overrides deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/card.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/card.variables b/node_modules/semantic-ui/src/_site/views/card.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/card.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/comment.overrides b/node_modules/semantic-ui/src/_site/views/comment.overrides deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/comment.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/comment.variables b/node_modules/semantic-ui/src/_site/views/comment.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/comment.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/feed.overrides b/node_modules/semantic-ui/src/_site/views/feed.overrides deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/feed.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/feed.variables b/node_modules/semantic-ui/src/_site/views/feed.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/feed.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/item.overrides b/node_modules/semantic-ui/src/_site/views/item.overrides deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/item.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/item.variables b/node_modules/semantic-ui/src/_site/views/item.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/item.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/statistic.overrides b/node_modules/semantic-ui/src/_site/views/statistic.overrides deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/statistic.overrides +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/_site/views/statistic.variables b/node_modules/semantic-ui/src/_site/views/statistic.variables deleted file mode 100644 index 6f085f9..0000000 --- a/node_modules/semantic-ui/src/_site/views/statistic.variables +++ /dev/null @@ -1,3 +0,0 @@ -/******************************* - User Variable Overrides -*******************************/ diff --git a/node_modules/semantic-ui/src/definitions/behaviors/api.js b/node_modules/semantic-ui/src/definitions/behaviors/api.js deleted file mode 100644 index 578e201..0000000 --- a/node_modules/semantic-ui/src/definitions/behaviors/api.js +++ /dev/null @@ -1,1167 +0,0 @@ -/*! - * # Semantic UI - API - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -"use strict"; - -var - window = (typeof window != 'undefined' && window.Math == Math) - ? window - : (typeof self != 'undefined' && self.Math == Math) - ? self - : Function('return this')() -; - -$.api = $.fn.api = function(parameters) { - - var - // use window context if none specified - $allModules = $.isFunction(this) - ? $(window) - : $(this), - moduleSelector = $allModules.selector || '', - time = new Date().getTime(), - performance = [], - - query = arguments[0], - methodInvoked = (typeof query == 'string'), - queryArguments = [].slice.call(arguments, 1), - - returnedValue - ; - - $allModules - .each(function() { - var - settings = ( $.isPlainObject(parameters) ) - ? $.extend(true, {}, $.fn.api.settings, parameters) - : $.extend({}, $.fn.api.settings), - - // internal aliases - namespace = settings.namespace, - metadata = settings.metadata, - selector = settings.selector, - error = settings.error, - className = settings.className, - - // define namespaces for modules - eventNamespace = '.' + namespace, - moduleNamespace = 'module-' + namespace, - - // element that creates request - $module = $(this), - $form = $module.closest(selector.form), - - // context used for state - $context = (settings.stateContext) - ? $(settings.stateContext) - : $module, - - // request details - ajaxSettings, - requestSettings, - url, - data, - requestStartTime, - - // standard module - element = this, - context = $context[0], - instance = $module.data(moduleNamespace), - module - ; - - module = { - - initialize: function() { - if(!methodInvoked) { - module.bind.events(); - } - module.instantiate(); - }, - - instantiate: function() { - module.verbose('Storing instance of module', module); - instance = module; - $module - .data(moduleNamespace, instance) - ; - }, - - destroy: function() { - module.verbose('Destroying previous module for', element); - $module - .removeData(moduleNamespace) - .off(eventNamespace) - ; - }, - - bind: { - events: function() { - var - triggerEvent = module.get.event() - ; - if( triggerEvent ) { - module.verbose('Attaching API events to element', triggerEvent); - $module - .on(triggerEvent + eventNamespace, module.event.trigger) - ; - } - else if(settings.on == 'now') { - module.debug('Querying API endpoint immediately'); - module.query(); - } - } - }, - - decode: { - json: function(response) { - if(response !== undefined && typeof response == 'string') { - try { - response = JSON.parse(response); - } - catch(e) { - // isnt json string - } - } - return response; - } - }, - - read: { - cachedResponse: function(url) { - var - response - ; - if(window.Storage === undefined) { - module.error(error.noStorage); - return; - } - response = sessionStorage.getItem(url); - module.debug('Using cached response', url, response); - response = module.decode.json(response); - return response; - } - }, - write: { - cachedResponse: function(url, response) { - if(response && response === '') { - module.debug('Response empty, not caching', response); - return; - } - if(window.Storage === undefined) { - module.error(error.noStorage); - return; - } - if( $.isPlainObject(response) ) { - response = JSON.stringify(response); - } - sessionStorage.setItem(url, response); - module.verbose('Storing cached response for url', url, response); - } - }, - - query: function() { - - if(module.is.disabled()) { - module.debug('Element is disabled API request aborted'); - return; - } - - if(module.is.loading()) { - if(settings.interruptRequests) { - module.debug('Interrupting previous request'); - module.abort(); - } - else { - module.debug('Cancelling request, previous request is still pending'); - return; - } - } - - // pass element metadata to url (value, text) - if(settings.defaultData) { - $.extend(true, settings.urlData, module.get.defaultData()); - } - - // Add form content - if(settings.serializeForm) { - settings.data = module.add.formData(settings.data); - } - - // call beforesend and get any settings changes - requestSettings = module.get.settings(); - - // check if before send cancelled request - if(requestSettings === false) { - module.cancelled = true; - module.error(error.beforeSend); - return; - } - else { - module.cancelled = false; - } - - // get url - url = module.get.templatedURL(); - - if(!url && !module.is.mocked()) { - module.error(error.missingURL); - return; - } - - // replace variables - url = module.add.urlData( url ); - // missing url parameters - if( !url && !module.is.mocked()) { - return; - } - - requestSettings.url = settings.base + url; - - // look for jQuery ajax parameters in settings - ajaxSettings = $.extend(true, {}, settings, { - type : settings.method || settings.type, - data : data, - url : settings.base + url, - beforeSend : settings.beforeXHR, - success : function() {}, - failure : function() {}, - complete : function() {} - }); - - module.debug('Querying URL', ajaxSettings.url); - module.verbose('Using AJAX settings', ajaxSettings); - if(settings.cache === 'local' && module.read.cachedResponse(url)) { - module.debug('Response returned from local cache'); - module.request = module.create.request(); - module.request.resolveWith(context, [ module.read.cachedResponse(url) ]); - return; - } - - if( !settings.throttle ) { - module.debug('Sending request', data, ajaxSettings.method); - module.send.request(); - } - else { - if(!settings.throttleFirstRequest && !module.timer) { - module.debug('Sending request', data, ajaxSettings.method); - module.send.request(); - module.timer = setTimeout(function(){}, settings.throttle); - } - else { - module.debug('Throttling request', settings.throttle); - clearTimeout(module.timer); - module.timer = setTimeout(function() { - if(module.timer) { - delete module.timer; - } - module.debug('Sending throttled request', data, ajaxSettings.method); - module.send.request(); - }, settings.throttle); - } - } - - }, - - should: { - removeError: function() { - return ( settings.hideError === true || (settings.hideError === 'auto' && !module.is.form()) ); - } - }, - - is: { - disabled: function() { - return ($module.filter(selector.disabled).length > 0); - }, - expectingJSON: function() { - return settings.dataType === 'json' || settings.dataType === 'jsonp'; - }, - form: function() { - return $module.is('form') || $context.is('form'); - }, - mocked: function() { - return (settings.mockResponse || settings.mockResponseAsync || settings.response || settings.responseAsync); - }, - input: function() { - return $module.is('input'); - }, - loading: function() { - return (module.request) - ? (module.request.state() == 'pending') - : false - ; - }, - abortedRequest: function(xhr) { - if(xhr && xhr.readyState !== undefined && xhr.readyState === 0) { - module.verbose('XHR request determined to be aborted'); - return true; - } - else { - module.verbose('XHR request was not aborted'); - return false; - } - }, - validResponse: function(response) { - if( (!module.is.expectingJSON()) || !$.isFunction(settings.successTest) ) { - module.verbose('Response is not JSON, skipping validation', settings.successTest, response); - return true; - } - module.debug('Checking JSON returned success', settings.successTest, response); - if( settings.successTest(response) ) { - module.debug('Response passed success test', response); - return true; - } - else { - module.debug('Response failed success test', response); - return false; - } - } - }, - - was: { - cancelled: function() { - return (module.cancelled || false); - }, - succesful: function() { - return (module.request && module.request.state() == 'resolved'); - }, - failure: function() { - return (module.request && module.request.state() == 'rejected'); - }, - complete: function() { - return (module.request && (module.request.state() == 'resolved' || module.request.state() == 'rejected') ); - } - }, - - add: { - urlData: function(url, urlData) { - var - requiredVariables, - optionalVariables - ; - if(url) { - requiredVariables = url.match(settings.regExp.required); - optionalVariables = url.match(settings.regExp.optional); - urlData = urlData || settings.urlData; - if(requiredVariables) { - module.debug('Looking for required URL variables', requiredVariables); - $.each(requiredVariables, function(index, templatedString) { - var - // allow legacy {$var} style - variable = (templatedString.indexOf('$') !== -1) - ? templatedString.substr(2, templatedString.length - 3) - : templatedString.substr(1, templatedString.length - 2), - value = ($.isPlainObject(urlData) && urlData[variable] !== undefined) - ? urlData[variable] - : ($module.data(variable) !== undefined) - ? $module.data(variable) - : ($context.data(variable) !== undefined) - ? $context.data(variable) - : urlData[variable] - ; - // remove value - if(value === undefined) { - module.error(error.requiredParameter, variable, url); - url = false; - return false; - } - else { - module.verbose('Found required variable', variable, value); - value = (settings.encodeParameters) - ? module.get.urlEncodedValue(value) - : value - ; - url = url.replace(templatedString, value); - } - }); - } - if(optionalVariables) { - module.debug('Looking for optional URL variables', requiredVariables); - $.each(optionalVariables, function(index, templatedString) { - var - // allow legacy {/$var} style - variable = (templatedString.indexOf('$') !== -1) - ? templatedString.substr(3, templatedString.length - 4) - : templatedString.substr(2, templatedString.length - 3), - value = ($.isPlainObject(urlData) && urlData[variable] !== undefined) - ? urlData[variable] - : ($module.data(variable) !== undefined) - ? $module.data(variable) - : ($context.data(variable) !== undefined) - ? $context.data(variable) - : urlData[variable] - ; - // optional replacement - if(value !== undefined) { - module.verbose('Optional variable Found', variable, value); - url = url.replace(templatedString, value); - } - else { - module.verbose('Optional variable not found', variable); - // remove preceding slash if set - if(url.indexOf('/' + templatedString) !== -1) { - url = url.replace('/' + templatedString, ''); - } - else { - url = url.replace(templatedString, ''); - } - } - }); - } - } - return url; - }, - formData: function(data) { - var - canSerialize = ($.fn.serializeObject !== undefined), - formData = (canSerialize) - ? $form.serializeObject() - : $form.serialize(), - hasOtherData - ; - data = data || settings.data; - hasOtherData = $.isPlainObject(data); - - if(hasOtherData) { - if(canSerialize) { - module.debug('Extending existing data with form data', data, formData); - data = $.extend(true, {}, data, formData); - } - else { - module.error(error.missingSerialize); - module.debug('Cant extend data. Replacing data with form data', data, formData); - data = formData; - } - } - else { - module.debug('Adding form data', formData); - data = formData; - } - return data; - } - }, - - send: { - request: function() { - module.set.loading(); - module.request = module.create.request(); - if( module.is.mocked() ) { - module.mockedXHR = module.create.mockedXHR(); - } - else { - module.xhr = module.create.xhr(); - } - settings.onRequest.call(context, module.request, module.xhr); - } - }, - - event: { - trigger: function(event) { - module.query(); - if(event.type == 'submit' || event.type == 'click') { - event.preventDefault(); - } - }, - xhr: { - always: function() { - // nothing special - }, - done: function(response, textStatus, xhr) { - var - context = this, - elapsedTime = (new Date().getTime() - requestStartTime), - timeLeft = (settings.loadingDuration - elapsedTime), - translatedResponse = ( $.isFunction(settings.onResponse) ) - ? module.is.expectingJSON() - ? settings.onResponse.call(context, $.extend(true, {}, response)) - : settings.onResponse.call(context, response) - : false - ; - timeLeft = (timeLeft > 0) - ? timeLeft - : 0 - ; - if(translatedResponse) { - module.debug('Modified API response in onResponse callback', settings.onResponse, translatedResponse, response); - response = translatedResponse; - } - if(timeLeft > 0) { - module.debug('Response completed early delaying state change by', timeLeft); - } - setTimeout(function() { - if( module.is.validResponse(response) ) { - module.request.resolveWith(context, [response, xhr]); - } - else { - module.request.rejectWith(context, [xhr, 'invalid']); - } - }, timeLeft); - }, - fail: function(xhr, status, httpMessage) { - var - context = this, - elapsedTime = (new Date().getTime() - requestStartTime), - timeLeft = (settings.loadingDuration - elapsedTime) - ; - timeLeft = (timeLeft > 0) - ? timeLeft - : 0 - ; - if(timeLeft > 0) { - module.debug('Response completed early delaying state change by', timeLeft); - } - setTimeout(function() { - if( module.is.abortedRequest(xhr) ) { - module.request.rejectWith(context, [xhr, 'aborted', httpMessage]); - } - else { - module.request.rejectWith(context, [xhr, 'error', status, httpMessage]); - } - }, timeLeft); - } - }, - request: { - done: function(response, xhr) { - module.debug('Successful API Response', response); - if(settings.cache === 'local' && url) { - module.write.cachedResponse(url, response); - module.debug('Saving server response locally', module.cache); - } - settings.onSuccess.call(context, response, $module, xhr); - }, - complete: function(firstParameter, secondParameter) { - var - xhr, - response - ; - // have to guess callback parameters based on request success - if( module.was.succesful() ) { - response = firstParameter; - xhr = secondParameter; - } - else { - xhr = firstParameter; - response = module.get.responseFromXHR(xhr); - } - module.remove.loading(); - settings.onComplete.call(context, response, $module, xhr); - }, - fail: function(xhr, status, httpMessage) { - var - // pull response from xhr if available - response = module.get.responseFromXHR(xhr), - errorMessage = module.get.errorFromRequest(response, status, httpMessage) - ; - if(status == 'aborted') { - module.debug('XHR Aborted (Most likely caused by page navigation or CORS Policy)', status, httpMessage); - settings.onAbort.call(context, status, $module, xhr); - return true; - } - else if(status == 'invalid') { - module.debug('JSON did not pass success test. A server-side error has most likely occurred', response); - } - else if(status == 'error') { - if(xhr !== undefined) { - module.debug('XHR produced a server error', status, httpMessage); - // make sure we have an error to display to console - if( xhr.status != 200 && httpMessage !== undefined && httpMessage !== '') { - module.error(error.statusMessage + httpMessage, ajaxSettings.url); - } - settings.onError.call(context, errorMessage, $module, xhr); - } - } - - if(settings.errorDuration && status !== 'aborted') { - module.debug('Adding error state'); - module.set.error(); - if( module.should.removeError() ) { - setTimeout(module.remove.error, settings.errorDuration); - } - } - module.debug('API Request failed', errorMessage, xhr); - settings.onFailure.call(context, response, $module, xhr); - } - } - }, - - create: { - - request: function() { - // api request promise - return $.Deferred() - .always(module.event.request.complete) - .done(module.event.request.done) - .fail(module.event.request.fail) - ; - }, - - mockedXHR: function () { - var - // xhr does not simulate these properties of xhr but must return them - textStatus = false, - status = false, - httpMessage = false, - responder = settings.mockResponse || settings.response, - asyncResponder = settings.mockResponseAsync || settings.responseAsync, - asyncCallback, - response, - mockedXHR - ; - - mockedXHR = $.Deferred() - .always(module.event.xhr.complete) - .done(module.event.xhr.done) - .fail(module.event.xhr.fail) - ; - - if(responder) { - if( $.isFunction(responder) ) { - module.debug('Using specified synchronous callback', responder); - response = responder.call(context, requestSettings); - } - else { - module.debug('Using settings specified response', responder); - response = responder; - } - // simulating response - mockedXHR.resolveWith(context, [ response, textStatus, { responseText: response }]); - } - else if( $.isFunction(asyncResponder) ) { - asyncCallback = function(response) { - module.debug('Async callback returned response', response); - - if(response) { - mockedXHR.resolveWith(context, [ response, textStatus, { responseText: response }]); - } - else { - mockedXHR.rejectWith(context, [{ responseText: response }, status, httpMessage]); - } - }; - module.debug('Using specified async response callback', asyncResponder); - asyncResponder.call(context, requestSettings, asyncCallback); - } - return mockedXHR; - }, - - xhr: function() { - var - xhr - ; - // ajax request promise - xhr = $.ajax(ajaxSettings) - .always(module.event.xhr.always) - .done(module.event.xhr.done) - .fail(module.event.xhr.fail) - ; - module.verbose('Created server request', xhr, ajaxSettings); - return xhr; - } - }, - - set: { - error: function() { - module.verbose('Adding error state to element', $context); - $context.addClass(className.error); - }, - loading: function() { - module.verbose('Adding loading state to element', $context); - $context.addClass(className.loading); - requestStartTime = new Date().getTime(); - } - }, - - remove: { - error: function() { - module.verbose('Removing error state from element', $context); - $context.removeClass(className.error); - }, - loading: function() { - module.verbose('Removing loading state from element', $context); - $context.removeClass(className.loading); - } - }, - - get: { - responseFromXHR: function(xhr) { - return $.isPlainObject(xhr) - ? (module.is.expectingJSON()) - ? module.decode.json(xhr.responseText) - : xhr.responseText - : false - ; - }, - errorFromRequest: function(response, status, httpMessage) { - return ($.isPlainObject(response) && response.error !== undefined) - ? response.error // use json error message - : (settings.error[status] !== undefined) // use server error message - ? settings.error[status] - : httpMessage - ; - }, - request: function() { - return module.request || false; - }, - xhr: function() { - return module.xhr || false; - }, - settings: function() { - var - runSettings - ; - runSettings = settings.beforeSend.call(context, settings); - if(runSettings) { - if(runSettings.success !== undefined) { - module.debug('Legacy success callback detected', runSettings); - module.error(error.legacyParameters, runSettings.success); - runSettings.onSuccess = runSettings.success; - } - if(runSettings.failure !== undefined) { - module.debug('Legacy failure callback detected', runSettings); - module.error(error.legacyParameters, runSettings.failure); - runSettings.onFailure = runSettings.failure; - } - if(runSettings.complete !== undefined) { - module.debug('Legacy complete callback detected', runSettings); - module.error(error.legacyParameters, runSettings.complete); - runSettings.onComplete = runSettings.complete; - } - } - if(runSettings === undefined) { - module.error(error.noReturnedValue); - } - if(runSettings === false) { - return runSettings; - } - return (runSettings !== undefined) - ? $.extend(true, {}, runSettings) - : $.extend(true, {}, settings) - ; - }, - urlEncodedValue: function(value) { - var - decodedValue = window.decodeURIComponent(value), - encodedValue = window.encodeURIComponent(value), - alreadyEncoded = (decodedValue !== value) - ; - if(alreadyEncoded) { - module.debug('URL value is already encoded, avoiding double encoding', value); - return value; - } - module.verbose('Encoding value using encodeURIComponent', value, encodedValue); - return encodedValue; - }, - defaultData: function() { - var - data = {} - ; - if( !$.isWindow(element) ) { - if( module.is.input() ) { - data.value = $module.val(); - } - else if( module.is.form() ) { - - } - else { - data.text = $module.text(); - } - } - return data; - }, - event: function() { - if( $.isWindow(element) || settings.on == 'now' ) { - module.debug('API called without element, no events attached'); - return false; - } - else if(settings.on == 'auto') { - if( $module.is('input') ) { - return (element.oninput !== undefined) - ? 'input' - : (element.onpropertychange !== undefined) - ? 'propertychange' - : 'keyup' - ; - } - else if( $module.is('form') ) { - return 'submit'; - } - else { - return 'click'; - } - } - else { - return settings.on; - } - }, - templatedURL: function(action) { - action = action || $module.data(metadata.action) || settings.action || false; - url = $module.data(metadata.url) || settings.url || false; - if(url) { - module.debug('Using specified url', url); - return url; - } - if(action) { - module.debug('Looking up url for action', action, settings.api); - if(settings.api[action] === undefined && !module.is.mocked()) { - module.error(error.missingAction, settings.action, settings.api); - return; - } - url = settings.api[action]; - } - else if( module.is.form() ) { - url = $module.attr('action') || $context.attr('action') || false; - module.debug('No url or action specified, defaulting to form action', url); - } - return url; - } - }, - - abort: function() { - var - xhr = module.get.xhr() - ; - if( xhr && xhr.state() !== 'resolved') { - module.debug('Cancelling API request'); - xhr.abort(); - } - }, - - // reset state - reset: function() { - module.remove.error(); - module.remove.loading(); - }, - - setting: function(name, value) { - module.debug('Changing setting', name, value); - if( $.isPlainObject(name) ) { - $.extend(true, settings, name); - } - else if(value !== undefined) { - if($.isPlainObject(settings[name])) { - $.extend(true, settings[name], value); - } - else { - settings[name] = value; - } - } - else { - return settings[name]; - } - }, - internal: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, module, name); - } - else if(value !== undefined) { - module[name] = value; - } - else { - return module[name]; - } - }, - debug: function() { - if(!settings.silent && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.debug.apply(console, arguments); - } - } - }, - verbose: function() { - if(!settings.silent && settings.verbose && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.verbose.apply(console, arguments); - } - } - }, - error: function() { - if(!settings.silent) { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); - } - }, - performance: { - log: function(message) { - var - currentTime, - executionTime, - previousTime - ; - if(settings.performance) { - currentTime = new Date().getTime(); - previousTime = time || currentTime; - executionTime = currentTime - previousTime; - time = currentTime; - performance.push({ - 'Name' : message[0], - 'Arguments' : [].slice.call(message, 1) || '', - //'Element' : element, - 'Execution Time' : executionTime - }); - } - clearTimeout(module.performance.timer); - module.performance.timer = setTimeout(module.performance.display, 500); - }, - display: function() { - var - title = settings.name + ':', - totalTime = 0 - ; - time = false; - clearTimeout(module.performance.timer); - $.each(performance, function(index, data) { - totalTime += data['Execution Time']; - }); - title += ' ' + totalTime + 'ms'; - if(moduleSelector) { - title += ' \'' + moduleSelector + '\''; - } - if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { - console.groupCollapsed(title); - if(console.table) { - console.table(performance); - } - else { - $.each(performance, function(index, data) { - console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); - }); - } - console.groupEnd(); - } - performance = []; - } - }, - invoke: function(query, passedArguments, context) { - var - object = instance, - maxDepth, - found, - response - ; - passedArguments = passedArguments || queryArguments; - context = element || context; - if(typeof query == 'string' && object !== undefined) { - query = query.split(/[\. ]/); - maxDepth = query.length - 1; - $.each(query, function(depth, value) { - var camelCaseValue = (depth != maxDepth) - ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) - : query - ; - if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { - object = object[camelCaseValue]; - } - else if( object[camelCaseValue] !== undefined ) { - found = object[camelCaseValue]; - return false; - } - else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { - object = object[value]; - } - else if( object[value] !== undefined ) { - found = object[value]; - return false; - } - else { - module.error(error.method, query); - return false; - } - }); - } - if ( $.isFunction( found ) ) { - response = found.apply(context, passedArguments); - } - else if(found !== undefined) { - response = found; - } - if($.isArray(returnedValue)) { - returnedValue.push(response); - } - else if(returnedValue !== undefined) { - returnedValue = [returnedValue, response]; - } - else if(response !== undefined) { - returnedValue = response; - } - return found; - } - }; - - if(methodInvoked) { - if(instance === undefined) { - module.initialize(); - } - module.invoke(query); - } - else { - if(instance !== undefined) { - instance.invoke('destroy'); - } - module.initialize(); - } - }) - ; - - return (returnedValue !== undefined) - ? returnedValue - : this - ; -}; - -$.api.settings = { - - name : 'API', - namespace : 'api', - - debug : false, - verbose : false, - performance : true, - - // object containing all templates endpoints - api : {}, - - // whether to cache responses - cache : true, - - // whether new requests should abort previous requests - interruptRequests : true, - - // event binding - on : 'auto', - - // context for applying state classes - stateContext : false, - - // duration for loading state - loadingDuration : 0, - - // whether to hide errors after a period of time - hideError : 'auto', - - // duration for error state - errorDuration : 2000, - - // whether parameters should be encoded with encodeURIComponent - encodeParameters : true, - - // API action to use - action : false, - - // templated URL to use - url : false, - - // base URL to apply to all endpoints - base : '', - - // data that will - urlData : {}, - - // whether to add default data to url data - defaultData : true, - - // whether to serialize closest form - serializeForm : false, - - // how long to wait before request should occur - throttle : 0, - - // whether to throttle first request or only repeated - throttleFirstRequest : true, - - // standard ajax settings - method : 'get', - data : {}, - dataType : 'json', - - // mock response - mockResponse : false, - mockResponseAsync : false, - - // aliases for mock - response : false, - responseAsync : false, - - // callbacks before request - beforeSend : function(settings) { return settings; }, - beforeXHR : function(xhr) {}, - onRequest : function(promise, xhr) {}, - - // after request - onResponse : false, // function(response) { }, - - // response was successful, if JSON passed validation - onSuccess : function(response, $module) {}, - - // request finished without aborting - onComplete : function(response, $module) {}, - - // failed JSON success test - onFailure : function(response, $module) {}, - - // server error - onError : function(errorMessage, $module) {}, - - // request aborted - onAbort : function(errorMessage, $module) {}, - - successTest : false, - - // errors - error : { - beforeSend : 'The before send function has aborted the request', - error : 'There was an error with your request', - exitConditions : 'API Request Aborted. Exit conditions met', - JSONParse : 'JSON could not be parsed during error handling', - legacyParameters : 'You are using legacy API success callback names', - method : 'The method you called is not defined', - missingAction : 'API action used but no url was defined', - missingSerialize : 'jquery-serialize-object is required to add form data to an existing data object', - missingURL : 'No URL specified for api event', - noReturnedValue : 'The beforeSend callback must return a settings object, beforeSend ignored.', - noStorage : 'Caching responses locally requires session storage', - parseError : 'There was an error parsing your request', - requiredParameter : 'Missing a required URL parameter: ', - statusMessage : 'Server gave an error: ', - timeout : 'Your request timed out' - }, - - regExp : { - required : /\{\$*[A-z0-9]+\}/g, - optional : /\{\/\$*[A-z0-9]+\}/g, - }, - - className: { - loading : 'loading', - error : 'error' - }, - - selector: { - disabled : '.disabled', - form : 'form' - }, - - metadata: { - action : 'action', - url : 'url' - } -}; - - - -})( jQuery, window, document ); diff --git a/node_modules/semantic-ui/src/definitions/behaviors/colorize.js b/node_modules/semantic-ui/src/definitions/behaviors/colorize.js deleted file mode 100644 index 31efb1c..0000000 --- a/node_modules/semantic-ui/src/definitions/behaviors/colorize.js +++ /dev/null @@ -1,280 +0,0 @@ -/*! - * # Semantic UI - Colorize - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -"use strict"; - -window = (typeof window != 'undefined' && window.Math == Math) - ? window - : (typeof self != 'undefined' && self.Math == Math) - ? self - : Function('return this')() -; - -$.fn.colorize = function(parameters) { - var - settings = ( $.isPlainObject(parameters) ) - ? $.extend(true, {}, $.fn.colorize.settings, parameters) - : $.extend({}, $.fn.colorize.settings), - // hoist arguments - moduleArguments = arguments || false - ; - $(this) - .each(function(instanceIndex) { - - var - $module = $(this), - - mainCanvas = $('')[0], - imageCanvas = $('')[0], - overlayCanvas = $('')[0], - - backgroundImage = new Image(), - - // defs - mainContext, - imageContext, - overlayContext, - - image, - imageName, - - width, - height, - - // shortcuts - colors = settings.colors, - paths = settings.paths, - namespace = settings.namespace, - error = settings.error, - - // boilerplate - instance = $module.data('module-' + namespace), - module - ; - - module = { - - checkPreconditions: function() { - module.debug('Checking pre-conditions'); - - if( !$.isPlainObject(colors) || $.isEmptyObject(colors) ) { - module.error(error.undefinedColors); - return false; - } - return true; - }, - - async: function(callback) { - if(settings.async) { - setTimeout(callback, 0); - } - else { - callback(); - } - }, - - getMetadata: function() { - module.debug('Grabbing metadata'); - image = $module.data('image') || settings.image || undefined; - imageName = $module.data('name') || settings.name || instanceIndex; - width = settings.width || $module.width(); - height = settings.height || $module.height(); - if(width === 0 || height === 0) { - module.error(error.undefinedSize); - } - }, - - initialize: function() { - module.debug('Initializing with colors', colors); - if( module.checkPreconditions() ) { - - module.async(function() { - module.getMetadata(); - module.canvas.create(); - - module.draw.image(function() { - module.draw.colors(); - module.canvas.merge(); - }); - $module - .data('module-' + namespace, module) - ; - }); - } - }, - - redraw: function() { - module.debug('Redrawing image'); - module.async(function() { - module.canvas.clear(); - module.draw.colors(); - module.canvas.merge(); - }); - }, - - change: { - color: function(colorName, color) { - module.debug('Changing color', colorName); - if(colors[colorName] === undefined) { - module.error(error.missingColor); - return false; - } - colors[colorName] = color; - module.redraw(); - } - }, - - canvas: { - create: function() { - module.debug('Creating canvases'); - - mainCanvas.width = width; - mainCanvas.height = height; - imageCanvas.width = width; - imageCanvas.height = height; - overlayCanvas.width = width; - overlayCanvas.height = height; - - mainContext = mainCanvas.getContext('2d'); - imageContext = imageCanvas.getContext('2d'); - overlayContext = overlayCanvas.getContext('2d'); - - $module - .append( mainCanvas ) - ; - mainContext = $module.children('canvas')[0].getContext('2d'); - }, - clear: function(context) { - module.debug('Clearing canvas'); - overlayContext.fillStyle = '#FFFFFF'; - overlayContext.fillRect(0, 0, width, height); - }, - merge: function() { - if( !$.isFunction(mainContext.blendOnto) ) { - module.error(error.missingPlugin); - return; - } - mainContext.putImageData( imageContext.getImageData(0, 0, width, height), 0, 0); - overlayContext.blendOnto(mainContext, 'multiply'); - } - }, - - draw: { - - image: function(callback) { - module.debug('Drawing image'); - callback = callback || function(){}; - if(image) { - backgroundImage.src = image; - backgroundImage.onload = function() { - imageContext.drawImage(backgroundImage, 0, 0); - callback(); - }; - } - else { - module.error(error.noImage); - callback(); - } - }, - - colors: function() { - module.debug('Drawing color overlays', colors); - $.each(colors, function(colorName, color) { - settings.onDraw(overlayContext, imageName, colorName, color); - }); - } - - }, - - debug: function(message, variableName) { - if(settings.debug) { - if(variableName !== undefined) { - console.info(settings.name + ': ' + message, variableName); - } - else { - console.info(settings.name + ': ' + message); - } - } - }, - error: function(errorMessage) { - console.warn(settings.name + ': ' + errorMessage); - }, - invoke: function(methodName, context, methodArguments) { - var - method - ; - methodArguments = methodArguments || Array.prototype.slice.call( arguments, 2 ); - - if(typeof methodName == 'string' && instance !== undefined) { - methodName = methodName.split('.'); - $.each(methodName, function(index, name) { - if( $.isPlainObject( instance[name] ) ) { - instance = instance[name]; - return true; - } - else if( $.isFunction( instance[name] ) ) { - method = instance[name]; - return true; - } - module.error(settings.error.method); - return false; - }); - } - return ( $.isFunction( method ) ) - ? method.apply(context, methodArguments) - : false - ; - } - - }; - if(instance !== undefined && moduleArguments) { - // simpler than invoke realizing to invoke itself (and losing scope due prototype.call() - if(moduleArguments[0] == 'invoke') { - moduleArguments = Array.prototype.slice.call( moduleArguments, 1 ); - } - return module.invoke(moduleArguments[0], this, Array.prototype.slice.call( moduleArguments, 1 ) ); - } - // initializing - module.initialize(); - }) - ; - return this; -}; - -$.fn.colorize.settings = { - name : 'Image Colorizer', - debug : true, - namespace : 'colorize', - - onDraw : function(overlayContext, imageName, colorName, color) {}, - - // whether to block execution while updating canvas - async : true, - // object containing names and default values of color regions - colors : {}, - - metadata: { - image : 'image', - name : 'name' - }, - - error: { - noImage : 'No tracing image specified', - undefinedColors : 'No default colors specified.', - missingColor : 'Attempted to change color that does not exist', - missingPlugin : 'Blend onto plug-in must be included', - undefinedHeight : 'The width or height of image canvas could not be automatically determined. Please specify a height.' - } - -}; - -})( jQuery, window, document ); diff --git a/node_modules/semantic-ui/src/definitions/behaviors/form.js b/node_modules/semantic-ui/src/definitions/behaviors/form.js deleted file mode 100644 index ad5518c..0000000 --- a/node_modules/semantic-ui/src/definitions/behaviors/form.js +++ /dev/null @@ -1,1603 +0,0 @@ -/*! - * # Semantic UI - Form Validation - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -"use strict"; - -window = (typeof window != 'undefined' && window.Math == Math) - ? window - : (typeof self != 'undefined' && self.Math == Math) - ? self - : Function('return this')() -; - -$.fn.form = function(parameters) { - var - $allModules = $(this), - moduleSelector = $allModules.selector || '', - - time = new Date().getTime(), - performance = [], - - query = arguments[0], - legacyParameters = arguments[1], - methodInvoked = (typeof query == 'string'), - queryArguments = [].slice.call(arguments, 1), - returnedValue - ; - $allModules - .each(function() { - var - $module = $(this), - element = this, - - formErrors = [], - keyHeldDown = false, - - // set at run-time - $field, - $group, - $message, - $prompt, - $submit, - $clear, - $reset, - - settings, - validation, - - metadata, - selector, - className, - regExp, - error, - - namespace, - moduleNamespace, - eventNamespace, - - instance, - module - ; - - module = { - - initialize: function() { - - // settings grabbed at run time - module.get.settings(); - if(methodInvoked) { - if(instance === undefined) { - module.instantiate(); - } - module.invoke(query); - } - else { - if(instance !== undefined) { - instance.invoke('destroy'); - } - module.verbose('Initializing form validation', $module, settings); - module.bindEvents(); - module.set.defaults(); - module.instantiate(); - } - }, - - instantiate: function() { - module.verbose('Storing instance of module', module); - instance = module; - $module - .data(moduleNamespace, module) - ; - }, - - destroy: function() { - module.verbose('Destroying previous module', instance); - module.removeEvents(); - $module - .removeData(moduleNamespace) - ; - }, - - refresh: function() { - module.verbose('Refreshing selector cache'); - $field = $module.find(selector.field); - $group = $module.find(selector.group); - $message = $module.find(selector.message); - $prompt = $module.find(selector.prompt); - - $submit = $module.find(selector.submit); - $clear = $module.find(selector.clear); - $reset = $module.find(selector.reset); - }, - - submit: function() { - module.verbose('Submitting form', $module); - $module - .submit() - ; - }, - - attachEvents: function(selector, action) { - action = action || 'submit'; - $(selector) - .on('click' + eventNamespace, function(event) { - module[action](); - event.preventDefault(); - }) - ; - }, - - bindEvents: function() { - module.verbose('Attaching form events'); - $module - .on('submit' + eventNamespace, module.validate.form) - .on('blur' + eventNamespace, selector.field, module.event.field.blur) - .on('click' + eventNamespace, selector.submit, module.submit) - .on('click' + eventNamespace, selector.reset, module.reset) - .on('click' + eventNamespace, selector.clear, module.clear) - ; - if(settings.keyboardShortcuts) { - $module - .on('keydown' + eventNamespace, selector.field, module.event.field.keydown) - ; - } - $field - .each(function() { - var - $input = $(this), - type = $input.prop('type'), - inputEvent = module.get.changeEvent(type, $input) - ; - $(this) - .on(inputEvent + eventNamespace, module.event.field.change) - ; - }) - ; - }, - - clear: function() { - $field - .each(function () { - var - $field = $(this), - $element = $field.parent(), - $fieldGroup = $field.closest($group), - $prompt = $fieldGroup.find(selector.prompt), - defaultValue = $field.data(metadata.defaultValue) || '', - isCheckbox = $element.is(selector.uiCheckbox), - isDropdown = $element.is(selector.uiDropdown), - isErrored = $fieldGroup.hasClass(className.error) - ; - if(isErrored) { - module.verbose('Resetting error on field', $fieldGroup); - $fieldGroup.removeClass(className.error); - $prompt.remove(); - } - if(isDropdown) { - module.verbose('Resetting dropdown value', $element, defaultValue); - $element.dropdown('clear'); - } - else if(isCheckbox) { - $field.prop('checked', false); - } - else { - module.verbose('Resetting field value', $field, defaultValue); - $field.val(''); - } - }) - ; - }, - - reset: function() { - $field - .each(function () { - var - $field = $(this), - $element = $field.parent(), - $fieldGroup = $field.closest($group), - $prompt = $fieldGroup.find(selector.prompt), - defaultValue = $field.data(metadata.defaultValue), - isCheckbox = $element.is(selector.uiCheckbox), - isDropdown = $element.is(selector.uiDropdown), - isErrored = $fieldGroup.hasClass(className.error) - ; - if(defaultValue === undefined) { - return; - } - if(isErrored) { - module.verbose('Resetting error on field', $fieldGroup); - $fieldGroup.removeClass(className.error); - $prompt.remove(); - } - if(isDropdown) { - module.verbose('Resetting dropdown value', $element, defaultValue); - $element.dropdown('restore defaults'); - } - else if(isCheckbox) { - module.verbose('Resetting checkbox value', $element, defaultValue); - $field.prop('checked', defaultValue); - } - else { - module.verbose('Resetting field value', $field, defaultValue); - $field.val(defaultValue); - } - }) - ; - }, - - determine: { - isValid: function() { - var - allValid = true - ; - $.each(validation, function(fieldName, field) { - if( !( module.validate.field(field, fieldName, true) ) ) { - allValid = false; - } - }); - return allValid; - } - }, - - is: { - bracketedRule: function(rule) { - return (rule.type && rule.type.match(settings.regExp.bracket)); - }, - empty: function($field) { - if(!$field || $field.length === 0) { - return true; - } - else if($field.is('input[type="checkbox"]')) { - return !$field.is(':checked'); - } - else { - return module.is.blank($field); - } - }, - blank: function($field) { - return $.trim($field.val()) === ''; - }, - valid: function(field) { - var - allValid = true - ; - if(field) { - module.verbose('Checking if field is valid', field); - return module.validate.field(validation[field], field, false); - } - else { - module.verbose('Checking if form is valid'); - $.each(validation, function(fieldName, field) { - if( !module.is.valid(fieldName) ) { - allValid = false; - } - }); - return allValid; - } - } - }, - - removeEvents: function() { - $module - .off(eventNamespace) - ; - $field - .off(eventNamespace) - ; - $submit - .off(eventNamespace) - ; - $field - .off(eventNamespace) - ; - }, - - event: { - field: { - keydown: function(event) { - var - $field = $(this), - key = event.which, - isInput = $field.is(selector.input), - isCheckbox = $field.is(selector.checkbox), - isInDropdown = ($field.closest(selector.uiDropdown).length > 0), - keyCode = { - enter : 13, - escape : 27 - } - ; - if( key == keyCode.escape) { - module.verbose('Escape key pressed blurring field'); - $field - .blur() - ; - } - if(!event.ctrlKey && key == keyCode.enter && isInput && !isInDropdown && !isCheckbox) { - if(!keyHeldDown) { - $field - .one('keyup' + eventNamespace, module.event.field.keyup) - ; - module.submit(); - module.debug('Enter pressed on input submitting form'); - } - keyHeldDown = true; - } - }, - keyup: function() { - keyHeldDown = false; - }, - blur: function(event) { - var - $field = $(this), - $fieldGroup = $field.closest($group), - validationRules = module.get.validation($field) - ; - if( $fieldGroup.hasClass(className.error) ) { - module.debug('Revalidating field', $field, validationRules); - if(validationRules) { - module.validate.field( validationRules ); - } - } - else if(settings.on == 'blur' || settings.on == 'change') { - if(validationRules) { - module.validate.field( validationRules ); - } - } - }, - change: function(event) { - var - $field = $(this), - $fieldGroup = $field.closest($group), - validationRules = module.get.validation($field) - ; - if(validationRules && (settings.on == 'change' || ( $fieldGroup.hasClass(className.error) && settings.revalidate) )) { - clearTimeout(module.timer); - module.timer = setTimeout(function() { - module.debug('Revalidating field', $field, module.get.validation($field)); - module.validate.field( validationRules ); - }, settings.delay); - } - } - } - - }, - - get: { - ancillaryValue: function(rule) { - if(!rule.type || (!rule.value && !module.is.bracketedRule(rule))) { - return false; - } - return (rule.value !== undefined) - ? rule.value - : rule.type.match(settings.regExp.bracket)[1] + '' - ; - }, - ruleName: function(rule) { - if( module.is.bracketedRule(rule) ) { - return rule.type.replace(rule.type.match(settings.regExp.bracket)[0], ''); - } - return rule.type; - }, - changeEvent: function(type, $input) { - if(type == 'checkbox' || type == 'radio' || type == 'hidden' || $input.is('select')) { - return 'change'; - } - else { - return module.get.inputEvent(); - } - }, - inputEvent: function() { - return (document.createElement('input').oninput !== undefined) - ? 'input' - : (document.createElement('input').onpropertychange !== undefined) - ? 'propertychange' - : 'keyup' - ; - }, - prompt: function(rule, field) { - var - ruleName = module.get.ruleName(rule), - ancillary = module.get.ancillaryValue(rule), - prompt = rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule, - requiresValue = (prompt.search('{value}') !== -1), - requiresName = (prompt.search('{name}') !== -1), - $label, - $field, - name - ; - if(requiresName || requiresValue) { - $field = module.get.field(field.identifier); - } - if(requiresValue) { - prompt = prompt.replace('{value}', $field.val()); - } - if(requiresName) { - $label = $field.closest(selector.group).find('label').eq(0); - name = ($label.length == 1) - ? $label.text() - : $field.prop('placeholder') || settings.text.unspecifiedField - ; - prompt = prompt.replace('{name}', name); - } - prompt = prompt.replace('{identifier}', field.identifier); - prompt = prompt.replace('{ruleValue}', ancillary); - if(!rule.prompt) { - module.verbose('Using default validation prompt for type', prompt, ruleName); - } - return prompt; - }, - settings: function() { - if($.isPlainObject(parameters)) { - var - keys = Object.keys(parameters), - isLegacySettings = (keys.length > 0) - ? (parameters[keys[0]].identifier !== undefined && parameters[keys[0]].rules !== undefined) - : false, - ruleKeys - ; - if(isLegacySettings) { - // 1.x (ducktyped) - settings = $.extend(true, {}, $.fn.form.settings, legacyParameters); - validation = $.extend({}, $.fn.form.settings.defaults, parameters); - module.error(settings.error.oldSyntax, element); - module.verbose('Extending settings from legacy parameters', validation, settings); - } - else { - // 2.x - if(parameters.fields) { - ruleKeys = Object.keys(parameters.fields); - if( typeof parameters.fields[ruleKeys[0]] == 'string' || $.isArray(parameters.fields[ruleKeys[0]]) ) { - $.each(parameters.fields, function(name, rules) { - if(typeof rules == 'string') { - rules = [rules]; - } - parameters.fields[name] = { - rules: [] - }; - $.each(rules, function(index, rule) { - parameters.fields[name].rules.push({ type: rule }); - }); - }); - } - } - - settings = $.extend(true, {}, $.fn.form.settings, parameters); - validation = $.extend({}, $.fn.form.settings.defaults, settings.fields); - module.verbose('Extending settings', validation, settings); - } - } - else { - settings = $.fn.form.settings; - validation = $.fn.form.settings.defaults; - module.verbose('Using default form validation', validation, settings); - } - - // shorthand - namespace = settings.namespace; - metadata = settings.metadata; - selector = settings.selector; - className = settings.className; - regExp = settings.regExp; - error = settings.error; - moduleNamespace = 'module-' + namespace; - eventNamespace = '.' + namespace; - - // grab instance - instance = $module.data(moduleNamespace); - - // refresh selector cache - module.refresh(); - }, - field: function(identifier) { - module.verbose('Finding field with identifier', identifier); - identifier = module.escape.string(identifier); - if($field.filter('#' + identifier).length > 0 ) { - return $field.filter('#' + identifier); - } - else if( $field.filter('[name="' + identifier +'"]').length > 0 ) { - return $field.filter('[name="' + identifier +'"]'); - } - else if( $field.filter('[name="' + identifier +'[]"]').length > 0 ) { - return $field.filter('[name="' + identifier +'[]"]'); - } - else if( $field.filter('[data-' + metadata.validate + '="'+ identifier +'"]').length > 0 ) { - return $field.filter('[data-' + metadata.validate + '="'+ identifier +'"]'); - } - return $(''); - }, - fields: function(fields) { - var - $fields = $() - ; - $.each(fields, function(index, name) { - $fields = $fields.add( module.get.field(name) ); - }); - return $fields; - }, - validation: function($field) { - var - fieldValidation, - identifier - ; - if(!validation) { - return false; - } - $.each(validation, function(fieldName, field) { - identifier = field.identifier || fieldName; - if( module.get.field(identifier)[0] == $field[0] ) { - field.identifier = identifier; - fieldValidation = field; - } - }); - return fieldValidation || false; - }, - value: function (field) { - var - fields = [], - results - ; - fields.push(field); - results = module.get.values.call(element, fields); - return results[field]; - }, - values: function (fields) { - var - $fields = $.isArray(fields) - ? module.get.fields(fields) - : $field, - values = {} - ; - $fields.each(function(index, field) { - var - $field = $(field), - type = $field.prop('type'), - name = $field.prop('name'), - value = $field.val(), - isCheckbox = $field.is(selector.checkbox), - isRadio = $field.is(selector.radio), - isMultiple = (name.indexOf('[]') !== -1), - isChecked = (isCheckbox) - ? $field.is(':checked') - : false - ; - if(name) { - if(isMultiple) { - name = name.replace('[]', ''); - if(!values[name]) { - values[name] = []; - } - if(isCheckbox) { - if(isChecked) { - values[name].push(value || true); - } - else { - values[name].push(false); - } - } - else { - values[name].push(value); - } - } - else { - if(isRadio) { - if(isChecked) { - values[name] = value; - } - } - else if(isCheckbox) { - if(isChecked) { - values[name] = value || true; - } - else { - values[name] = false; - } - } - else { - values[name] = value; - } - } - } - }); - return values; - } - }, - - has: { - - field: function(identifier) { - module.verbose('Checking for existence of a field with identifier', identifier); - identifier = module.escape.string(identifier); - if(typeof identifier !== 'string') { - module.error(error.identifier, identifier); - } - if($field.filter('#' + identifier).length > 0 ) { - return true; - } - else if( $field.filter('[name="' + identifier +'"]').length > 0 ) { - return true; - } - else if( $field.filter('[data-' + metadata.validate + '="'+ identifier +'"]').length > 0 ) { - return true; - } - return false; - } - - }, - - escape: { - string: function(text) { - text = String(text); - return text.replace(regExp.escape, '\\$&'); - } - }, - - add: { - prompt: function(identifier, errors) { - var - $field = module.get.field(identifier), - $fieldGroup = $field.closest($group), - $prompt = $fieldGroup.children(selector.prompt), - promptExists = ($prompt.length !== 0) - ; - errors = (typeof errors == 'string') - ? [errors] - : errors - ; - module.verbose('Adding field error state', identifier); - $fieldGroup - .addClass(className.error) - ; - if(settings.inline) { - if(!promptExists) { - $prompt = settings.templates.prompt(errors); - $prompt - .appendTo($fieldGroup) - ; - } - $prompt - .html(errors[0]) - ; - if(!promptExists) { - if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) { - module.verbose('Displaying error with css transition', settings.transition); - $prompt.transition(settings.transition + ' in', settings.duration); - } - else { - module.verbose('Displaying error with fallback javascript animation'); - $prompt - .fadeIn(settings.duration) - ; - } - } - else { - module.verbose('Inline errors are disabled, no inline error added', identifier); - } - } - }, - errors: function(errors) { - module.debug('Adding form error messages', errors); - module.set.error(); - $message - .html( settings.templates.error(errors) ) - ; - } - }, - - remove: { - prompt: function(identifier) { - var - $field = module.get.field(identifier), - $fieldGroup = $field.closest($group), - $prompt = $fieldGroup.children(selector.prompt) - ; - $fieldGroup - .removeClass(className.error) - ; - if(settings.inline && $prompt.is(':visible')) { - module.verbose('Removing prompt for field', identifier); - if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) { - $prompt.transition(settings.transition + ' out', settings.duration, function() { - $prompt.remove(); - }); - } - else { - $prompt - .fadeOut(settings.duration, function(){ - $prompt.remove(); - }) - ; - } - } - } - }, - - set: { - success: function() { - $module - .removeClass(className.error) - .addClass(className.success) - ; - }, - defaults: function () { - $field - .each(function () { - var - $field = $(this), - isCheckbox = ($field.filter(selector.checkbox).length > 0), - value = (isCheckbox) - ? $field.is(':checked') - : $field.val() - ; - $field.data(metadata.defaultValue, value); - }) - ; - }, - error: function() { - $module - .removeClass(className.success) - .addClass(className.error) - ; - }, - value: function (field, value) { - var - fields = {} - ; - fields[field] = value; - return module.set.values.call(element, fields); - }, - values: function (fields) { - if($.isEmptyObject(fields)) { - return; - } - $.each(fields, function(key, value) { - var - $field = module.get.field(key), - $element = $field.parent(), - isMultiple = $.isArray(value), - isCheckbox = $element.is(selector.uiCheckbox), - isDropdown = $element.is(selector.uiDropdown), - isRadio = ($field.is(selector.radio) && isCheckbox), - fieldExists = ($field.length > 0), - $multipleField - ; - if(fieldExists) { - if(isMultiple && isCheckbox) { - module.verbose('Selecting multiple', value, $field); - $element.checkbox('uncheck'); - $.each(value, function(index, value) { - $multipleField = $field.filter('[value="' + value + '"]'); - $element = $multipleField.parent(); - if($multipleField.length > 0) { - $element.checkbox('check'); - } - }); - } - else if(isRadio) { - module.verbose('Selecting radio value', value, $field); - $field.filter('[value="' + value + '"]') - .parent(selector.uiCheckbox) - .checkbox('check') - ; - } - else if(isCheckbox) { - module.verbose('Setting checkbox value', value, $element); - if(value === true) { - $element.checkbox('check'); - } - else { - $element.checkbox('uncheck'); - } - } - else if(isDropdown) { - module.verbose('Setting dropdown value', value, $element); - $element.dropdown('set selected', value); - } - else { - module.verbose('Setting field value', value, $field); - $field.val(value); - } - } - }); - } - }, - - validate: { - - form: function(event, ignoreCallbacks) { - var - values = module.get.values(), - apiRequest - ; - - // input keydown event will fire submit repeatedly by browser default - if(keyHeldDown) { - return false; - } - - // reset errors - formErrors = []; - if( module.determine.isValid() ) { - module.debug('Form has no validation errors, submitting'); - module.set.success(); - if(ignoreCallbacks !== true) { - return settings.onSuccess.call(element, event, values); - } - } - else { - module.debug('Form has errors'); - module.set.error(); - if(!settings.inline) { - module.add.errors(formErrors); - } - // prevent ajax submit - if($module.data('moduleApi') !== undefined) { - event.stopImmediatePropagation(); - } - if(ignoreCallbacks !== true) { - return settings.onFailure.call(element, formErrors, values); - } - } - }, - - // takes a validation object and returns whether field passes validation - field: function(field, fieldName, showErrors) { - showErrors = (showErrors !== undefined) - ? showErrors - : true - ; - if(typeof field == 'string') { - module.verbose('Validating field', field); - fieldName = field; - field = validation[field]; - } - var - identifier = field.identifier || fieldName, - $field = module.get.field(identifier), - $dependsField = (field.depends) - ? module.get.field(field.depends) - : false, - fieldValid = true, - fieldErrors = [] - ; - if(!field.identifier) { - module.debug('Using field name as identifier', identifier); - field.identifier = identifier; - } - if($field.prop('disabled')) { - module.debug('Field is disabled. Skipping', identifier); - fieldValid = true; - } - else if(field.optional && module.is.blank($field)){ - module.debug('Field is optional and blank. Skipping', identifier); - fieldValid = true; - } - else if(field.depends && module.is.empty($dependsField)) { - module.debug('Field depends on another value that is not present or empty. Skipping', $dependsField); - fieldValid = true; - } - else if(field.rules !== undefined) { - $.each(field.rules, function(index, rule) { - if( module.has.field(identifier) && !( module.validate.rule(field, rule) ) ) { - module.debug('Field is invalid', identifier, rule.type); - fieldErrors.push(module.get.prompt(rule, field)); - fieldValid = false; - } - }); - } - if(fieldValid) { - if(showErrors) { - module.remove.prompt(identifier, fieldErrors); - settings.onValid.call($field); - } - } - else { - if(showErrors) { - formErrors = formErrors.concat(fieldErrors); - module.add.prompt(identifier, fieldErrors); - settings.onInvalid.call($field, fieldErrors); - } - return false; - } - return true; - }, - - // takes validation rule and returns whether field passes rule - rule: function(field, rule) { - var - $field = module.get.field(field.identifier), - type = rule.type, - value = $field.val(), - isValid = true, - ancillary = module.get.ancillaryValue(rule), - ruleName = module.get.ruleName(rule), - ruleFunction = settings.rules[ruleName] - ; - if( !$.isFunction(ruleFunction) ) { - module.error(error.noRule, ruleName); - return; - } - // cast to string avoiding encoding special values - value = (value === undefined || value === '' || value === null) - ? '' - : $.trim(value + '') - ; - return ruleFunction.call($field, value, ancillary); - } - }, - - setting: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, settings, name); - } - else if(value !== undefined) { - settings[name] = value; - } - else { - return settings[name]; - } - }, - internal: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, module, name); - } - else if(value !== undefined) { - module[name] = value; - } - else { - return module[name]; - } - }, - debug: function() { - if(!settings.silent && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.debug.apply(console, arguments); - } - } - }, - verbose: function() { - if(!settings.silent && settings.verbose && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.verbose.apply(console, arguments); - } - } - }, - error: function() { - if(!settings.silent) { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); - } - }, - performance: { - log: function(message) { - var - currentTime, - executionTime, - previousTime - ; - if(settings.performance) { - currentTime = new Date().getTime(); - previousTime = time || currentTime; - executionTime = currentTime - previousTime; - time = currentTime; - performance.push({ - 'Name' : message[0], - 'Arguments' : [].slice.call(message, 1) || '', - 'Element' : element, - 'Execution Time' : executionTime - }); - } - clearTimeout(module.performance.timer); - module.performance.timer = setTimeout(module.performance.display, 500); - }, - display: function() { - var - title = settings.name + ':', - totalTime = 0 - ; - time = false; - clearTimeout(module.performance.timer); - $.each(performance, function(index, data) { - totalTime += data['Execution Time']; - }); - title += ' ' + totalTime + 'ms'; - if(moduleSelector) { - title += ' \'' + moduleSelector + '\''; - } - if($allModules.length > 1) { - title += ' ' + '(' + $allModules.length + ')'; - } - if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { - console.groupCollapsed(title); - if(console.table) { - console.table(performance); - } - else { - $.each(performance, function(index, data) { - console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); - }); - } - console.groupEnd(); - } - performance = []; - } - }, - invoke: function(query, passedArguments, context) { - var - object = instance, - maxDepth, - found, - response - ; - passedArguments = passedArguments || queryArguments; - context = element || context; - if(typeof query == 'string' && object !== undefined) { - query = query.split(/[\. ]/); - maxDepth = query.length - 1; - $.each(query, function(depth, value) { - var camelCaseValue = (depth != maxDepth) - ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) - : query - ; - if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { - object = object[camelCaseValue]; - } - else if( object[camelCaseValue] !== undefined ) { - found = object[camelCaseValue]; - return false; - } - else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { - object = object[value]; - } - else if( object[value] !== undefined ) { - found = object[value]; - return false; - } - else { - return false; - } - }); - } - if( $.isFunction( found ) ) { - response = found.apply(context, passedArguments); - } - else if(found !== undefined) { - response = found; - } - if($.isArray(returnedValue)) { - returnedValue.push(response); - } - else if(returnedValue !== undefined) { - returnedValue = [returnedValue, response]; - } - else if(response !== undefined) { - returnedValue = response; - } - return found; - } - }; - module.initialize(); - }) - ; - - return (returnedValue !== undefined) - ? returnedValue - : this - ; -}; - -$.fn.form.settings = { - - name : 'Form', - namespace : 'form', - - debug : false, - verbose : false, - performance : true, - - fields : false, - - keyboardShortcuts : true, - on : 'submit', - inline : false, - - delay : 200, - revalidate : true, - - transition : 'scale', - duration : 200, - - onValid : function() {}, - onInvalid : function() {}, - onSuccess : function() { return true; }, - onFailure : function() { return false; }, - - metadata : { - defaultValue : 'default', - validate : 'validate' - }, - - regExp: { - htmlID : /^[a-zA-Z][\w:.-]*$/g, - bracket : /\[(.*)\]/i, - decimal : /^\d+\.?\d*$/, - email : /^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i, - escape : /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, - flags : /^\/(.*)\/(.*)?/, - integer : /^\-?\d+$/, - number : /^\-?\d*(\.\d+)?$/, - url : /(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i - }, - - text: { - unspecifiedRule : 'Please enter a valid value', - unspecifiedField : 'This field' - }, - - prompt: { - empty : '{name} must have a value', - checked : '{name} must be checked', - email : '{name} must be a valid e-mail', - url : '{name} must be a valid url', - regExp : '{name} is not formatted correctly', - integer : '{name} must be an integer', - decimal : '{name} must be a decimal number', - number : '{name} must be set to a number', - is : '{name} must be "{ruleValue}"', - isExactly : '{name} must be exactly "{ruleValue}"', - not : '{name} cannot be set to "{ruleValue}"', - notExactly : '{name} cannot be set to exactly "{ruleValue}"', - contain : '{name} cannot contain "{ruleValue}"', - containExactly : '{name} cannot contain exactly "{ruleValue}"', - doesntContain : '{name} must contain "{ruleValue}"', - doesntContainExactly : '{name} must contain exactly "{ruleValue}"', - minLength : '{name} must be at least {ruleValue} characters', - length : '{name} must be at least {ruleValue} characters', - exactLength : '{name} must be exactly {ruleValue} characters', - maxLength : '{name} cannot be longer than {ruleValue} characters', - match : '{name} must match {ruleValue} field', - different : '{name} must have a different value than {ruleValue} field', - creditCard : '{name} must be a valid credit card number', - minCount : '{name} must have at least {ruleValue} choices', - exactCount : '{name} must have exactly {ruleValue} choices', - maxCount : '{name} must have {ruleValue} or less choices' - }, - - selector : { - checkbox : 'input[type="checkbox"], input[type="radio"]', - clear : '.clear', - field : 'input, textarea, select', - group : '.field', - input : 'input', - message : '.error.message', - prompt : '.prompt.label', - radio : 'input[type="radio"]', - reset : '.reset:not([type="reset"])', - submit : '.submit:not([type="submit"])', - uiCheckbox : '.ui.checkbox', - uiDropdown : '.ui.dropdown' - }, - - className : { - error : 'error', - label : 'ui prompt label', - pressed : 'down', - success : 'success' - }, - - error: { - identifier : 'You must specify a string identifier for each field', - method : 'The method you called is not defined.', - noRule : 'There is no rule matching the one you specified', - oldSyntax : 'Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically.' - }, - - templates: { - - // template that produces error message - error: function(errors) { - var - html = '
      ' - ; - $.each(errors, function(index, value) { - html += '
    • ' + value + '
    • '; - }); - html += '
    '; - return $(html); - }, - - // template that produces label - prompt: function(errors) { - return $('
    ') - .addClass('ui basic red pointing prompt label') - .html(errors[0]) - ; - } - }, - - rules: { - - // is not empty or blank string - empty: function(value) { - return !(value === undefined || '' === value || $.isArray(value) && value.length === 0); - }, - - // checkbox checked - checked: function() { - return ($(this).filter(':checked').length > 0); - }, - - // is most likely an email - email: function(value){ - return $.fn.form.settings.regExp.email.test(value); - }, - - // value is most likely url - url: function(value) { - return $.fn.form.settings.regExp.url.test(value); - }, - - // matches specified regExp - regExp: function(value, regExp) { - if(regExp instanceof RegExp) { - return value.match(regExp); - } - var - regExpParts = regExp.match($.fn.form.settings.regExp.flags), - flags - ; - // regular expression specified as /baz/gi (flags) - if(regExpParts) { - regExp = (regExpParts.length >= 2) - ? regExpParts[1] - : regExp - ; - flags = (regExpParts.length >= 3) - ? regExpParts[2] - : '' - ; - } - return value.match( new RegExp(regExp, flags) ); - }, - - // is valid integer or matches range - integer: function(value, range) { - var - intRegExp = $.fn.form.settings.regExp.integer, - min, - max, - parts - ; - if( !range || ['', '..'].indexOf(range) !== -1) { - // do nothing - } - else if(range.indexOf('..') == -1) { - if(intRegExp.test(range)) { - min = max = range - 0; - } - } - else { - parts = range.split('..', 2); - if(intRegExp.test(parts[0])) { - min = parts[0] - 0; - } - if(intRegExp.test(parts[1])) { - max = parts[1] - 0; - } - } - return ( - intRegExp.test(value) && - (min === undefined || value >= min) && - (max === undefined || value <= max) - ); - }, - - // is valid number (with decimal) - decimal: function(value) { - return $.fn.form.settings.regExp.decimal.test(value); - }, - - // is valid number - number: function(value) { - return $.fn.form.settings.regExp.number.test(value); - }, - - // is value (case insensitive) - is: function(value, text) { - text = (typeof text == 'string') - ? text.toLowerCase() - : text - ; - value = (typeof value == 'string') - ? value.toLowerCase() - : value - ; - return (value == text); - }, - - // is value - isExactly: function(value, text) { - return (value == text); - }, - - // value is not another value (case insensitive) - not: function(value, notValue) { - value = (typeof value == 'string') - ? value.toLowerCase() - : value - ; - notValue = (typeof notValue == 'string') - ? notValue.toLowerCase() - : notValue - ; - return (value != notValue); - }, - - // value is not another value (case sensitive) - notExactly: function(value, notValue) { - return (value != notValue); - }, - - // value contains text (insensitive) - contains: function(value, text) { - // escape regex characters - text = text.replace($.fn.form.settings.regExp.escape, "\\$&"); - return (value.search( new RegExp(text, 'i') ) !== -1); - }, - - // value contains text (case sensitive) - containsExactly: function(value, text) { - // escape regex characters - text = text.replace($.fn.form.settings.regExp.escape, "\\$&"); - return (value.search( new RegExp(text) ) !== -1); - }, - - // value contains text (insensitive) - doesntContain: function(value, text) { - // escape regex characters - text = text.replace($.fn.form.settings.regExp.escape, "\\$&"); - return (value.search( new RegExp(text, 'i') ) === -1); - }, - - // value contains text (case sensitive) - doesntContainExactly: function(value, text) { - // escape regex characters - text = text.replace($.fn.form.settings.regExp.escape, "\\$&"); - return (value.search( new RegExp(text) ) === -1); - }, - - // is at least string length - minLength: function(value, requiredLength) { - return (value !== undefined) - ? (value.length >= requiredLength) - : false - ; - }, - - // see rls notes for 2.0.6 (this is a duplicate of minLength) - length: function(value, requiredLength) { - return (value !== undefined) - ? (value.length >= requiredLength) - : false - ; - }, - - // is exactly length - exactLength: function(value, requiredLength) { - return (value !== undefined) - ? (value.length == requiredLength) - : false - ; - }, - - // is less than length - maxLength: function(value, maxLength) { - return (value !== undefined) - ? (value.length <= maxLength) - : false - ; - }, - - // matches another field - match: function(value, identifier) { - var - $form = $(this), - matchingValue - ; - if( $('[data-validate="'+ identifier +'"]').length > 0 ) { - matchingValue = $('[data-validate="'+ identifier +'"]').val(); - } - else if($('#' + identifier).length > 0) { - matchingValue = $('#' + identifier).val(); - } - else if($('[name="' + identifier +'"]').length > 0) { - matchingValue = $('[name="' + identifier + '"]').val(); - } - else if( $('[name="' + identifier +'[]"]').length > 0 ) { - matchingValue = $('[name="' + identifier +'[]"]'); - } - return (matchingValue !== undefined) - ? ( value.toString() == matchingValue.toString() ) - : false - ; - }, - - // different than another field - different: function(value, identifier) { - // use either id or name of field - var - $form = $(this), - matchingValue - ; - if( $('[data-validate="'+ identifier +'"]').length > 0 ) { - matchingValue = $('[data-validate="'+ identifier +'"]').val(); - } - else if($('#' + identifier).length > 0) { - matchingValue = $('#' + identifier).val(); - } - else if($('[name="' + identifier +'"]').length > 0) { - matchingValue = $('[name="' + identifier + '"]').val(); - } - else if( $('[name="' + identifier +'[]"]').length > 0 ) { - matchingValue = $('[name="' + identifier +'[]"]'); - } - return (matchingValue !== undefined) - ? ( value.toString() !== matchingValue.toString() ) - : false - ; - }, - - creditCard: function(cardNumber, cardTypes) { - var - cards = { - visa: { - pattern : /^4/, - length : [16] - }, - amex: { - pattern : /^3[47]/, - length : [15] - }, - mastercard: { - pattern : /^5[1-5]/, - length : [16] - }, - discover: { - pattern : /^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/, - length : [16] - }, - unionPay: { - pattern : /^(62|88)/, - length : [16, 17, 18, 19] - }, - jcb: { - pattern : /^35(2[89]|[3-8][0-9])/, - length : [16] - }, - maestro: { - pattern : /^(5018|5020|5038|6304|6759|676[1-3])/, - length : [12, 13, 14, 15, 16, 17, 18, 19] - }, - dinersClub: { - pattern : /^(30[0-5]|^36)/, - length : [14] - }, - laser: { - pattern : /^(6304|670[69]|6771)/, - length : [16, 17, 18, 19] - }, - visaElectron: { - pattern : /^(4026|417500|4508|4844|491(3|7))/, - length : [16] - } - }, - valid = {}, - validCard = false, - requiredTypes = (typeof cardTypes == 'string') - ? cardTypes.split(',') - : false, - unionPay, - validation - ; - - if(typeof cardNumber !== 'string' || cardNumber.length === 0) { - return; - } - - // verify card types - if(requiredTypes) { - $.each(requiredTypes, function(index, type){ - // verify each card type - validation = cards[type]; - if(validation) { - valid = { - length : ($.inArray(cardNumber.length, validation.length) !== -1), - pattern : (cardNumber.search(validation.pattern) !== -1) - }; - if(valid.length && valid.pattern) { - validCard = true; - } - } - }); - - if(!validCard) { - return false; - } - } - - // skip luhn for UnionPay - unionPay = { - number : ($.inArray(cardNumber.length, cards.unionPay.length) !== -1), - pattern : (cardNumber.search(cards.unionPay.pattern) !== -1) - }; - if(unionPay.number && unionPay.pattern) { - return true; - } - - // verify luhn, adapted from - var - length = cardNumber.length, - multiple = 0, - producedValue = [ - [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], - [0, 2, 4, 6, 8, 1, 3, 5, 7, 9] - ], - sum = 0 - ; - while (length--) { - sum += producedValue[multiple][parseInt(cardNumber.charAt(length), 10)]; - multiple ^= 1; - } - return (sum % 10 === 0 && sum > 0); - }, - - minCount: function(value, minCount) { - if(minCount == 0) { - return true; - } - if(minCount == 1) { - return (value !== ''); - } - return (value.split(',').length >= minCount); - }, - - exactCount: function(value, exactCount) { - if(exactCount == 0) { - return (value === ''); - } - if(exactCount == 1) { - return (value !== '' && value.search(',') === -1); - } - return (value.split(',').length == exactCount); - }, - - maxCount: function(value, maxCount) { - if(maxCount == 0) { - return false; - } - if(maxCount == 1) { - return (value.search(',') === -1); - } - return (value.split(',').length <= maxCount); - } - } - -}; - -})( jQuery, window, document ); diff --git a/node_modules/semantic-ui/src/definitions/behaviors/state.js b/node_modules/semantic-ui/src/definitions/behaviors/state.js deleted file mode 100644 index 83f9ae7..0000000 --- a/node_modules/semantic-ui/src/definitions/behaviors/state.js +++ /dev/null @@ -1,708 +0,0 @@ -/*! - * # Semantic UI - State - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -"use strict"; - -window = (typeof window != 'undefined' && window.Math == Math) - ? window - : (typeof self != 'undefined' && self.Math == Math) - ? self - : Function('return this')() -; - -$.fn.state = function(parameters) { - var - $allModules = $(this), - - moduleSelector = $allModules.selector || '', - - hasTouch = ('ontouchstart' in document.documentElement), - time = new Date().getTime(), - performance = [], - - query = arguments[0], - methodInvoked = (typeof query == 'string'), - queryArguments = [].slice.call(arguments, 1), - - returnedValue - ; - $allModules - .each(function() { - var - settings = ( $.isPlainObject(parameters) ) - ? $.extend(true, {}, $.fn.state.settings, parameters) - : $.extend({}, $.fn.state.settings), - - error = settings.error, - metadata = settings.metadata, - className = settings.className, - namespace = settings.namespace, - states = settings.states, - text = settings.text, - - eventNamespace = '.' + namespace, - moduleNamespace = namespace + '-module', - - $module = $(this), - - element = this, - instance = $module.data(moduleNamespace), - - module - ; - module = { - - initialize: function() { - module.verbose('Initializing module'); - - // allow module to guess desired state based on element - if(settings.automatic) { - module.add.defaults(); - } - - // bind events with delegated events - if(settings.context && moduleSelector !== '') { - $(settings.context) - .on(moduleSelector, 'mouseenter' + eventNamespace, module.change.text) - .on(moduleSelector, 'mouseleave' + eventNamespace, module.reset.text) - .on(moduleSelector, 'click' + eventNamespace, module.toggle.state) - ; - } - else { - $module - .on('mouseenter' + eventNamespace, module.change.text) - .on('mouseleave' + eventNamespace, module.reset.text) - .on('click' + eventNamespace, module.toggle.state) - ; - } - module.instantiate(); - }, - - instantiate: function() { - module.verbose('Storing instance of module', module); - instance = module; - $module - .data(moduleNamespace, module) - ; - }, - - destroy: function() { - module.verbose('Destroying previous module', instance); - $module - .off(eventNamespace) - .removeData(moduleNamespace) - ; - }, - - refresh: function() { - module.verbose('Refreshing selector cache'); - $module = $(element); - }, - - add: { - defaults: function() { - var - userStates = parameters && $.isPlainObject(parameters.states) - ? parameters.states - : {} - ; - $.each(settings.defaults, function(type, typeStates) { - if( module.is[type] !== undefined && module.is[type]() ) { - module.verbose('Adding default states', type, element); - $.extend(settings.states, typeStates, userStates); - } - }); - } - }, - - is: { - - active: function() { - return $module.hasClass(className.active); - }, - loading: function() { - return $module.hasClass(className.loading); - }, - inactive: function() { - return !( $module.hasClass(className.active) ); - }, - state: function(state) { - if(className[state] === undefined) { - return false; - } - return $module.hasClass( className[state] ); - }, - - enabled: function() { - return !( $module.is(settings.filter.active) ); - }, - disabled: function() { - return ( $module.is(settings.filter.active) ); - }, - textEnabled: function() { - return !( $module.is(settings.filter.text) ); - }, - - // definitions for automatic type detection - button: function() { - return $module.is('.button:not(a, .submit)'); - }, - input: function() { - return $module.is('input'); - }, - progress: function() { - return $module.is('.ui.progress'); - } - }, - - allow: function(state) { - module.debug('Now allowing state', state); - states[state] = true; - }, - disallow: function(state) { - module.debug('No longer allowing', state); - states[state] = false; - }, - - allows: function(state) { - return states[state] || false; - }, - - enable: function() { - $module.removeClass(className.disabled); - }, - - disable: function() { - $module.addClass(className.disabled); - }, - - setState: function(state) { - if(module.allows(state)) { - $module.addClass( className[state] ); - } - }, - - removeState: function(state) { - if(module.allows(state)) { - $module.removeClass( className[state] ); - } - }, - - toggle: { - state: function() { - var - apiRequest, - requestCancelled - ; - if( module.allows('active') && module.is.enabled() ) { - module.refresh(); - if($.fn.api !== undefined) { - apiRequest = $module.api('get request'); - requestCancelled = $module.api('was cancelled'); - if( requestCancelled ) { - module.debug('API Request cancelled by beforesend'); - settings.activateTest = function(){ return false; }; - settings.deactivateTest = function(){ return false; }; - } - else if(apiRequest) { - module.listenTo(apiRequest); - return; - } - } - module.change.state(); - } - } - }, - - listenTo: function(apiRequest) { - module.debug('API request detected, waiting for state signal', apiRequest); - if(apiRequest) { - if(text.loading) { - module.update.text(text.loading); - } - $.when(apiRequest) - .then(function() { - if(apiRequest.state() == 'resolved') { - module.debug('API request succeeded'); - settings.activateTest = function(){ return true; }; - settings.deactivateTest = function(){ return true; }; - } - else { - module.debug('API request failed'); - settings.activateTest = function(){ return false; }; - settings.deactivateTest = function(){ return false; }; - } - module.change.state(); - }) - ; - } - }, - - // checks whether active/inactive state can be given - change: { - - state: function() { - module.debug('Determining state change direction'); - // inactive to active change - if( module.is.inactive() ) { - module.activate(); - } - else { - module.deactivate(); - } - if(settings.sync) { - module.sync(); - } - settings.onChange.call(element); - }, - - text: function() { - if( module.is.textEnabled() ) { - if(module.is.disabled() ) { - module.verbose('Changing text to disabled text', text.hover); - module.update.text(text.disabled); - } - else if( module.is.active() ) { - if(text.hover) { - module.verbose('Changing text to hover text', text.hover); - module.update.text(text.hover); - } - else if(text.deactivate) { - module.verbose('Changing text to deactivating text', text.deactivate); - module.update.text(text.deactivate); - } - } - else { - if(text.hover) { - module.verbose('Changing text to hover text', text.hover); - module.update.text(text.hover); - } - else if(text.activate){ - module.verbose('Changing text to activating text', text.activate); - module.update.text(text.activate); - } - } - } - } - - }, - - activate: function() { - if( settings.activateTest.call(element) ) { - module.debug('Setting state to active'); - $module - .addClass(className.active) - ; - module.update.text(text.active); - settings.onActivate.call(element); - } - }, - - deactivate: function() { - if( settings.deactivateTest.call(element) ) { - module.debug('Setting state to inactive'); - $module - .removeClass(className.active) - ; - module.update.text(text.inactive); - settings.onDeactivate.call(element); - } - }, - - sync: function() { - module.verbose('Syncing other buttons to current state'); - if( module.is.active() ) { - $allModules - .not($module) - .state('activate'); - } - else { - $allModules - .not($module) - .state('deactivate') - ; - } - }, - - get: { - text: function() { - return (settings.selector.text) - ? $module.find(settings.selector.text).text() - : $module.html() - ; - }, - textFor: function(state) { - return text[state] || false; - } - }, - - flash: { - text: function(text, duration, callback) { - var - previousText = module.get.text() - ; - module.debug('Flashing text message', text, duration); - text = text || settings.text.flash; - duration = duration || settings.flashDuration; - callback = callback || function() {}; - module.update.text(text); - setTimeout(function(){ - module.update.text(previousText); - callback.call(element); - }, duration); - } - }, - - reset: { - // on mouseout sets text to previous value - text: function() { - var - activeText = text.active || $module.data(metadata.storedText), - inactiveText = text.inactive || $module.data(metadata.storedText) - ; - if( module.is.textEnabled() ) { - if( module.is.active() && activeText) { - module.verbose('Resetting active text', activeText); - module.update.text(activeText); - } - else if(inactiveText) { - module.verbose('Resetting inactive text', activeText); - module.update.text(inactiveText); - } - } - } - }, - - update: { - text: function(text) { - var - currentText = module.get.text() - ; - if(text && text !== currentText) { - module.debug('Updating text', text); - if(settings.selector.text) { - $module - .data(metadata.storedText, text) - .find(settings.selector.text) - .text(text) - ; - } - else { - $module - .data(metadata.storedText, text) - .html(text) - ; - } - } - else { - module.debug('Text is already set, ignoring update', text); - } - } - }, - - setting: function(name, value) { - module.debug('Changing setting', name, value); - if( $.isPlainObject(name) ) { - $.extend(true, settings, name); - } - else if(value !== undefined) { - if($.isPlainObject(settings[name])) { - $.extend(true, settings[name], value); - } - else { - settings[name] = value; - } - } - else { - return settings[name]; - } - }, - internal: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, module, name); - } - else if(value !== undefined) { - module[name] = value; - } - else { - return module[name]; - } - }, - debug: function() { - if(!settings.silent && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.debug.apply(console, arguments); - } - } - }, - verbose: function() { - if(!settings.silent && settings.verbose && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.verbose.apply(console, arguments); - } - } - }, - error: function() { - if(!settings.silent) { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); - } - }, - performance: { - log: function(message) { - var - currentTime, - executionTime, - previousTime - ; - if(settings.performance) { - currentTime = new Date().getTime(); - previousTime = time || currentTime; - executionTime = currentTime - previousTime; - time = currentTime; - performance.push({ - 'Name' : message[0], - 'Arguments' : [].slice.call(message, 1) || '', - 'Element' : element, - 'Execution Time' : executionTime - }); - } - clearTimeout(module.performance.timer); - module.performance.timer = setTimeout(module.performance.display, 500); - }, - display: function() { - var - title = settings.name + ':', - totalTime = 0 - ; - time = false; - clearTimeout(module.performance.timer); - $.each(performance, function(index, data) { - totalTime += data['Execution Time']; - }); - title += ' ' + totalTime + 'ms'; - if(moduleSelector) { - title += ' \'' + moduleSelector + '\''; - } - if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { - console.groupCollapsed(title); - if(console.table) { - console.table(performance); - } - else { - $.each(performance, function(index, data) { - console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); - }); - } - console.groupEnd(); - } - performance = []; - } - }, - invoke: function(query, passedArguments, context) { - var - object = instance, - maxDepth, - found, - response - ; - passedArguments = passedArguments || queryArguments; - context = element || context; - if(typeof query == 'string' && object !== undefined) { - query = query.split(/[\. ]/); - maxDepth = query.length - 1; - $.each(query, function(depth, value) { - var camelCaseValue = (depth != maxDepth) - ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) - : query - ; - if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { - object = object[camelCaseValue]; - } - else if( object[camelCaseValue] !== undefined ) { - found = object[camelCaseValue]; - return false; - } - else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { - object = object[value]; - } - else if( object[value] !== undefined ) { - found = object[value]; - return false; - } - else { - module.error(error.method, query); - return false; - } - }); - } - if ( $.isFunction( found ) ) { - response = found.apply(context, passedArguments); - } - else if(found !== undefined) { - response = found; - } - if($.isArray(returnedValue)) { - returnedValue.push(response); - } - else if(returnedValue !== undefined) { - returnedValue = [returnedValue, response]; - } - else if(response !== undefined) { - returnedValue = response; - } - return found; - } - }; - - if(methodInvoked) { - if(instance === undefined) { - module.initialize(); - } - module.invoke(query); - } - else { - if(instance !== undefined) { - instance.invoke('destroy'); - } - module.initialize(); - } - }) - ; - - return (returnedValue !== undefined) - ? returnedValue - : this - ; -}; - -$.fn.state.settings = { - - // module info - name : 'State', - - // debug output - debug : false, - - // verbose debug output - verbose : false, - - // namespace for events - namespace : 'state', - - // debug data includes performance - performance : true, - - // callback occurs on state change - onActivate : function() {}, - onDeactivate : function() {}, - onChange : function() {}, - - // state test functions - activateTest : function() { return true; }, - deactivateTest : function() { return true; }, - - // whether to automatically map default states - automatic : true, - - // activate / deactivate changes all elements instantiated at same time - sync : false, - - // default flash text duration, used for temporarily changing text of an element - flashDuration : 1000, - - // selector filter - filter : { - text : '.loading, .disabled', - active : '.disabled' - }, - - context : false, - - // error - error: { - beforeSend : 'The before send function has cancelled state change', - method : 'The method you called is not defined.' - }, - - // metadata - metadata: { - promise : 'promise', - storedText : 'stored-text' - }, - - // change class on state - className: { - active : 'active', - disabled : 'disabled', - error : 'error', - loading : 'loading', - success : 'success', - warning : 'warning' - }, - - selector: { - // selector for text node - text: false - }, - - defaults : { - input: { - disabled : true, - loading : true, - active : true - }, - button: { - disabled : true, - loading : true, - active : true, - }, - progress: { - active : true, - success : true, - warning : true, - error : true - } - }, - - states : { - active : true, - disabled : true, - error : true, - loading : true, - success : true, - warning : true - }, - - text : { - disabled : false, - flash : false, - hover : false, - active : false, - inactive : false, - activate : false, - deactivate : false - } - -}; - - - -})( jQuery, window, document ); diff --git a/node_modules/semantic-ui/src/definitions/behaviors/visibility.js b/node_modules/semantic-ui/src/definitions/behaviors/visibility.js deleted file mode 100644 index 73aeecf..0000000 --- a/node_modules/semantic-ui/src/definitions/behaviors/visibility.js +++ /dev/null @@ -1,1288 +0,0 @@ -/*! - * # Semantic UI - Visibility - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -"use strict"; - -window = (typeof window != 'undefined' && window.Math == Math) - ? window - : (typeof self != 'undefined' && self.Math == Math) - ? self - : Function('return this')() -; - -$.fn.visibility = function(parameters) { - var - $allModules = $(this), - moduleSelector = $allModules.selector || '', - - time = new Date().getTime(), - performance = [], - - query = arguments[0], - methodInvoked = (typeof query == 'string'), - queryArguments = [].slice.call(arguments, 1), - returnedValue, - - moduleCount = $allModules.length, - loadedCount = 0 - ; - - $allModules - .each(function() { - var - settings = ( $.isPlainObject(parameters) ) - ? $.extend(true, {}, $.fn.visibility.settings, parameters) - : $.extend({}, $.fn.visibility.settings), - - className = settings.className, - namespace = settings.namespace, - error = settings.error, - metadata = settings.metadata, - - eventNamespace = '.' + namespace, - moduleNamespace = 'module-' + namespace, - - $window = $(window), - - $module = $(this), - $context = $(settings.context), - - $placeholder, - - selector = $module.selector || '', - instance = $module.data(moduleNamespace), - - requestAnimationFrame = window.requestAnimationFrame - || window.mozRequestAnimationFrame - || window.webkitRequestAnimationFrame - || window.msRequestAnimationFrame - || function(callback) { setTimeout(callback, 0); }, - - element = this, - disabled = false, - - contextObserver, - observer, - module - ; - - module = { - - initialize: function() { - module.debug('Initializing', settings); - - module.setup.cache(); - - if( module.should.trackChanges() ) { - - if(settings.type == 'image') { - module.setup.image(); - } - if(settings.type == 'fixed') { - module.setup.fixed(); - } - - if(settings.observeChanges) { - module.observeChanges(); - } - module.bind.events(); - } - - module.save.position(); - if( !module.is.visible() ) { - module.error(error.visible, $module); - } - - if(settings.initialCheck) { - module.checkVisibility(); - } - module.instantiate(); - }, - - instantiate: function() { - module.debug('Storing instance', module); - $module - .data(moduleNamespace, module) - ; - instance = module; - }, - - destroy: function() { - module.verbose('Destroying previous module'); - if(observer) { - observer.disconnect(); - } - if(contextObserver) { - contextObserver.disconnect(); - } - $window - .off('load' + eventNamespace, module.event.load) - .off('resize' + eventNamespace, module.event.resize) - ; - $context - .off('scroll' + eventNamespace, module.event.scroll) - .off('scrollchange' + eventNamespace, module.event.scrollchange) - ; - if(settings.type == 'fixed') { - module.resetFixed(); - module.remove.placeholder(); - } - $module - .off(eventNamespace) - .removeData(moduleNamespace) - ; - }, - - observeChanges: function() { - if('MutationObserver' in window) { - contextObserver = new MutationObserver(module.event.contextChanged); - observer = new MutationObserver(module.event.changed); - contextObserver.observe(document, { - childList : true, - subtree : true - }); - observer.observe(element, { - childList : true, - subtree : true - }); - module.debug('Setting up mutation observer', observer); - } - }, - - bind: { - events: function() { - module.verbose('Binding visibility events to scroll and resize'); - if(settings.refreshOnLoad) { - $window - .on('load' + eventNamespace, module.event.load) - ; - } - $window - .on('resize' + eventNamespace, module.event.resize) - ; - // pub/sub pattern - $context - .off('scroll' + eventNamespace) - .on('scroll' + eventNamespace, module.event.scroll) - .on('scrollchange' + eventNamespace, module.event.scrollchange) - ; - } - }, - - event: { - changed: function(mutations) { - module.verbose('DOM tree modified, updating visibility calculations'); - module.timer = setTimeout(function() { - module.verbose('DOM tree modified, updating sticky menu'); - module.refresh(); - }, 100); - }, - contextChanged: function(mutations) { - [].forEach.call(mutations, function(mutation) { - if(mutation.removedNodes) { - [].forEach.call(mutation.removedNodes, function(node) { - if(node == element || $(node).find(element).length > 0) { - module.debug('Element removed from DOM, tearing down events'); - module.destroy(); - } - }); - } - }); - }, - resize: function() { - module.debug('Window resized'); - if(settings.refreshOnResize) { - requestAnimationFrame(module.refresh); - } - }, - load: function() { - module.debug('Page finished loading'); - requestAnimationFrame(module.refresh); - }, - // publishes scrollchange event on one scroll - scroll: function() { - if(settings.throttle) { - clearTimeout(module.timer); - module.timer = setTimeout(function() { - $context.triggerHandler('scrollchange' + eventNamespace, [ $context.scrollTop() ]); - }, settings.throttle); - } - else { - requestAnimationFrame(function() { - $context.triggerHandler('scrollchange' + eventNamespace, [ $context.scrollTop() ]); - }); - } - }, - // subscribes to scrollchange - scrollchange: function(event, scrollPosition) { - module.checkVisibility(scrollPosition); - }, - }, - - precache: function(images, callback) { - if (!(images instanceof Array)) { - images = [images]; - } - var - imagesLength = images.length, - loadedCounter = 0, - cache = [], - cacheImage = document.createElement('img'), - handleLoad = function() { - loadedCounter++; - if (loadedCounter >= images.length) { - if ($.isFunction(callback)) { - callback(); - } - } - } - ; - while (imagesLength--) { - cacheImage = document.createElement('img'); - cacheImage.onload = handleLoad; - cacheImage.onerror = handleLoad; - cacheImage.src = images[imagesLength]; - cache.push(cacheImage); - } - }, - - enableCallbacks: function() { - module.debug('Allowing callbacks to occur'); - disabled = false; - }, - - disableCallbacks: function() { - module.debug('Disabling all callbacks temporarily'); - disabled = true; - }, - - should: { - trackChanges: function() { - if(methodInvoked) { - module.debug('One time query, no need to bind events'); - return false; - } - module.debug('Callbacks being attached'); - return true; - } - }, - - setup: { - cache: function() { - module.cache = { - occurred : {}, - screen : {}, - element : {}, - }; - }, - image: function() { - var - src = $module.data(metadata.src) - ; - if(src) { - module.verbose('Lazy loading image', src); - settings.once = true; - settings.observeChanges = false; - - // show when top visible - settings.onOnScreen = function() { - module.debug('Image on screen', element); - module.precache(src, function() { - module.set.image(src, function() { - loadedCount++; - if(loadedCount == moduleCount) { - settings.onAllLoaded.call(this); - } - settings.onLoad.call(this); - }); - }); - }; - } - }, - fixed: function() { - module.debug('Setting up fixed'); - settings.once = false; - settings.observeChanges = false; - settings.initialCheck = true; - settings.refreshOnLoad = true; - if(!parameters.transition) { - settings.transition = false; - } - module.create.placeholder(); - module.debug('Added placeholder', $placeholder); - settings.onTopPassed = function() { - module.debug('Element passed, adding fixed position', $module); - module.show.placeholder(); - module.set.fixed(); - if(settings.transition) { - if($.fn.transition !== undefined) { - $module.transition(settings.transition, settings.duration); - } - } - }; - settings.onTopPassedReverse = function() { - module.debug('Element returned to position, removing fixed', $module); - module.hide.placeholder(); - module.remove.fixed(); - }; - } - }, - - create: { - placeholder: function() { - module.verbose('Creating fixed position placeholder'); - $placeholder = $module - .clone(false) - .css('display', 'none') - .addClass(className.placeholder) - .insertAfter($module) - ; - } - }, - - show: { - placeholder: function() { - module.verbose('Showing placeholder'); - $placeholder - .css('display', 'block') - .css('visibility', 'hidden') - ; - } - }, - hide: { - placeholder: function() { - module.verbose('Hiding placeholder'); - $placeholder - .css('display', 'none') - .css('visibility', '') - ; - } - }, - - set: { - fixed: function() { - module.verbose('Setting element to fixed position'); - $module - .addClass(className.fixed) - .css({ - position : 'fixed', - top : settings.offset + 'px', - left : 'auto', - zIndex : settings.zIndex - }) - ; - settings.onFixed.call(element); - }, - image: function(src, callback) { - $module - .attr('src', src) - ; - if(settings.transition) { - if( $.fn.transition !== undefined) { - if($module.hasClass(className.visible)) { - module.debug('Transition already occurred on this image, skipping animation'); - return; - } - $module.transition(settings.transition, settings.duration, callback); - } - else { - $module.fadeIn(settings.duration, callback); - } - } - else { - $module.show(); - } - } - }, - - is: { - onScreen: function() { - var - calculations = module.get.elementCalculations() - ; - return calculations.onScreen; - }, - offScreen: function() { - var - calculations = module.get.elementCalculations() - ; - return calculations.offScreen; - }, - visible: function() { - if(module.cache && module.cache.element) { - return !(module.cache.element.width === 0 && module.cache.element.offset.top === 0); - } - return false; - } - }, - - refresh: function() { - module.debug('Refreshing constants (width/height)'); - if(settings.type == 'fixed') { - module.resetFixed(); - } - module.reset(); - module.save.position(); - if(settings.checkOnRefresh) { - module.checkVisibility(); - } - settings.onRefresh.call(element); - }, - - resetFixed: function () { - module.remove.fixed(); - module.remove.occurred(); - }, - - reset: function() { - module.verbose('Resetting all cached values'); - if( $.isPlainObject(module.cache) ) { - module.cache.screen = {}; - module.cache.element = {}; - } - }, - - checkVisibility: function(scroll) { - module.verbose('Checking visibility of element', module.cache.element); - - if( !disabled && module.is.visible() ) { - - // save scroll position - module.save.scroll(scroll); - - // update calculations derived from scroll - module.save.calculations(); - - // percentage - module.passed(); - - // reverse (must be first) - module.passingReverse(); - module.topVisibleReverse(); - module.bottomVisibleReverse(); - module.topPassedReverse(); - module.bottomPassedReverse(); - - // one time - module.onScreen(); - module.offScreen(); - module.passing(); - module.topVisible(); - module.bottomVisible(); - module.topPassed(); - module.bottomPassed(); - - // on update callback - if(settings.onUpdate) { - settings.onUpdate.call(element, module.get.elementCalculations()); - } - } - }, - - passed: function(amount, newCallback) { - var - calculations = module.get.elementCalculations(), - amountInPixels - ; - // assign callback - if(amount && newCallback) { - settings.onPassed[amount] = newCallback; - } - else if(amount !== undefined) { - return (module.get.pixelsPassed(amount) > calculations.pixelsPassed); - } - else if(calculations.passing) { - $.each(settings.onPassed, function(amount, callback) { - if(calculations.bottomVisible || calculations.pixelsPassed > module.get.pixelsPassed(amount)) { - module.execute(callback, amount); - } - else if(!settings.once) { - module.remove.occurred(callback); - } - }); - } - }, - - onScreen: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onOnScreen, - callbackName = 'onScreen' - ; - if(newCallback) { - module.debug('Adding callback for onScreen', newCallback); - settings.onOnScreen = newCallback; - } - if(calculations.onScreen) { - module.execute(callback, callbackName); - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback !== undefined) { - return calculations.onOnScreen; - } - }, - - offScreen: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onOffScreen, - callbackName = 'offScreen' - ; - if(newCallback) { - module.debug('Adding callback for offScreen', newCallback); - settings.onOffScreen = newCallback; - } - if(calculations.offScreen) { - module.execute(callback, callbackName); - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback !== undefined) { - return calculations.onOffScreen; - } - }, - - passing: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onPassing, - callbackName = 'passing' - ; - if(newCallback) { - module.debug('Adding callback for passing', newCallback); - settings.onPassing = newCallback; - } - if(calculations.passing) { - module.execute(callback, callbackName); - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback !== undefined) { - return calculations.passing; - } - }, - - - topVisible: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onTopVisible, - callbackName = 'topVisible' - ; - if(newCallback) { - module.debug('Adding callback for top visible', newCallback); - settings.onTopVisible = newCallback; - } - if(calculations.topVisible) { - module.execute(callback, callbackName); - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback === undefined) { - return calculations.topVisible; - } - }, - - bottomVisible: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onBottomVisible, - callbackName = 'bottomVisible' - ; - if(newCallback) { - module.debug('Adding callback for bottom visible', newCallback); - settings.onBottomVisible = newCallback; - } - if(calculations.bottomVisible) { - module.execute(callback, callbackName); - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback === undefined) { - return calculations.bottomVisible; - } - }, - - topPassed: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onTopPassed, - callbackName = 'topPassed' - ; - if(newCallback) { - module.debug('Adding callback for top passed', newCallback); - settings.onTopPassed = newCallback; - } - if(calculations.topPassed) { - module.execute(callback, callbackName); - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback === undefined) { - return calculations.topPassed; - } - }, - - bottomPassed: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onBottomPassed, - callbackName = 'bottomPassed' - ; - if(newCallback) { - module.debug('Adding callback for bottom passed', newCallback); - settings.onBottomPassed = newCallback; - } - if(calculations.bottomPassed) { - module.execute(callback, callbackName); - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback === undefined) { - return calculations.bottomPassed; - } - }, - - passingReverse: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onPassingReverse, - callbackName = 'passingReverse' - ; - if(newCallback) { - module.debug('Adding callback for passing reverse', newCallback); - settings.onPassingReverse = newCallback; - } - if(!calculations.passing) { - if(module.get.occurred('passing')) { - module.execute(callback, callbackName); - } - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback !== undefined) { - return !calculations.passing; - } - }, - - - topVisibleReverse: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onTopVisibleReverse, - callbackName = 'topVisibleReverse' - ; - if(newCallback) { - module.debug('Adding callback for top visible reverse', newCallback); - settings.onTopVisibleReverse = newCallback; - } - if(!calculations.topVisible) { - if(module.get.occurred('topVisible')) { - module.execute(callback, callbackName); - } - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback === undefined) { - return !calculations.topVisible; - } - }, - - bottomVisibleReverse: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onBottomVisibleReverse, - callbackName = 'bottomVisibleReverse' - ; - if(newCallback) { - module.debug('Adding callback for bottom visible reverse', newCallback); - settings.onBottomVisibleReverse = newCallback; - } - if(!calculations.bottomVisible) { - if(module.get.occurred('bottomVisible')) { - module.execute(callback, callbackName); - } - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback === undefined) { - return !calculations.bottomVisible; - } - }, - - topPassedReverse: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onTopPassedReverse, - callbackName = 'topPassedReverse' - ; - if(newCallback) { - module.debug('Adding callback for top passed reverse', newCallback); - settings.onTopPassedReverse = newCallback; - } - if(!calculations.topPassed) { - if(module.get.occurred('topPassed')) { - module.execute(callback, callbackName); - } - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback === undefined) { - return !calculations.onTopPassed; - } - }, - - bottomPassedReverse: function(newCallback) { - var - calculations = module.get.elementCalculations(), - callback = newCallback || settings.onBottomPassedReverse, - callbackName = 'bottomPassedReverse' - ; - if(newCallback) { - module.debug('Adding callback for bottom passed reverse', newCallback); - settings.onBottomPassedReverse = newCallback; - } - if(!calculations.bottomPassed) { - if(module.get.occurred('bottomPassed')) { - module.execute(callback, callbackName); - } - } - else if(!settings.once) { - module.remove.occurred(callbackName); - } - if(newCallback === undefined) { - return !calculations.bottomPassed; - } - }, - - execute: function(callback, callbackName) { - var - calculations = module.get.elementCalculations(), - screen = module.get.screenCalculations() - ; - callback = callback || false; - if(callback) { - if(settings.continuous) { - module.debug('Callback being called continuously', callbackName, calculations); - callback.call(element, calculations, screen); - } - else if(!module.get.occurred(callbackName)) { - module.debug('Conditions met', callbackName, calculations); - callback.call(element, calculations, screen); - } - } - module.save.occurred(callbackName); - }, - - remove: { - fixed: function() { - module.debug('Removing fixed position'); - $module - .removeClass(className.fixed) - .css({ - position : '', - top : '', - left : '', - zIndex : '' - }) - ; - settings.onUnfixed.call(element); - }, - placeholder: function() { - module.debug('Removing placeholder content'); - if($placeholder) { - $placeholder.remove(); - } - }, - occurred: function(callback) { - if(callback) { - var - occurred = module.cache.occurred - ; - if(occurred[callback] !== undefined && occurred[callback] === true) { - module.debug('Callback can now be called again', callback); - module.cache.occurred[callback] = false; - } - } - else { - module.cache.occurred = {}; - } - } - }, - - save: { - calculations: function() { - module.verbose('Saving all calculations necessary to determine positioning'); - module.save.direction(); - module.save.screenCalculations(); - module.save.elementCalculations(); - }, - occurred: function(callback) { - if(callback) { - if(module.cache.occurred[callback] === undefined || (module.cache.occurred[callback] !== true)) { - module.verbose('Saving callback occurred', callback); - module.cache.occurred[callback] = true; - } - } - }, - scroll: function(scrollPosition) { - scrollPosition = scrollPosition + settings.offset || $context.scrollTop() + settings.offset; - module.cache.scroll = scrollPosition; - }, - direction: function() { - var - scroll = module.get.scroll(), - lastScroll = module.get.lastScroll(), - direction - ; - if(scroll > lastScroll && lastScroll) { - direction = 'down'; - } - else if(scroll < lastScroll && lastScroll) { - direction = 'up'; - } - else { - direction = 'static'; - } - module.cache.direction = direction; - return module.cache.direction; - }, - elementPosition: function() { - var - element = module.cache.element, - screen = module.get.screenSize() - ; - module.verbose('Saving element position'); - // (quicker than $.extend) - element.fits = (element.height < screen.height); - element.offset = $module.offset(); - element.width = $module.outerWidth(); - element.height = $module.outerHeight(); - // store - module.cache.element = element; - return element; - }, - elementCalculations: function() { - var - screen = module.get.screenCalculations(), - element = module.get.elementPosition() - ; - // offset - if(settings.includeMargin) { - element.margin = {}; - element.margin.top = parseInt($module.css('margin-top'), 10); - element.margin.bottom = parseInt($module.css('margin-bottom'), 10); - element.top = element.offset.top - element.margin.top; - element.bottom = element.offset.top + element.height + element.margin.bottom; - } - else { - element.top = element.offset.top; - element.bottom = element.offset.top + element.height; - } - - // visibility - element.topVisible = (screen.bottom >= element.top); - element.topPassed = (screen.top >= element.top); - element.bottomVisible = (screen.bottom >= element.bottom); - element.bottomPassed = (screen.top >= element.bottom); - element.pixelsPassed = 0; - element.percentagePassed = 0; - - // meta calculations - element.onScreen = (element.topVisible && !element.bottomPassed); - element.passing = (element.topPassed && !element.bottomPassed); - element.offScreen = (!element.onScreen); - - // passing calculations - if(element.passing) { - element.pixelsPassed = (screen.top - element.top); - element.percentagePassed = (screen.top - element.top) / element.height; - } - module.cache.element = element; - module.verbose('Updated element calculations', element); - return element; - }, - screenCalculations: function() { - var - scroll = module.get.scroll() - ; - module.save.direction(); - module.cache.screen.top = scroll; - module.cache.screen.bottom = scroll + module.cache.screen.height; - return module.cache.screen; - }, - screenSize: function() { - module.verbose('Saving window position'); - module.cache.screen = { - height: $context.height() - }; - }, - position: function() { - module.save.screenSize(); - module.save.elementPosition(); - } - }, - - get: { - pixelsPassed: function(amount) { - var - element = module.get.elementCalculations() - ; - if(amount.search('%') > -1) { - return ( element.height * (parseInt(amount, 10) / 100) ); - } - return parseInt(amount, 10); - }, - occurred: function(callback) { - return (module.cache.occurred !== undefined) - ? module.cache.occurred[callback] || false - : false - ; - }, - direction: function() { - if(module.cache.direction === undefined) { - module.save.direction(); - } - return module.cache.direction; - }, - elementPosition: function() { - if(module.cache.element === undefined) { - module.save.elementPosition(); - } - return module.cache.element; - }, - elementCalculations: function() { - if(module.cache.element === undefined) { - module.save.elementCalculations(); - } - return module.cache.element; - }, - screenCalculations: function() { - if(module.cache.screen === undefined) { - module.save.screenCalculations(); - } - return module.cache.screen; - }, - screenSize: function() { - if(module.cache.screen === undefined) { - module.save.screenSize(); - } - return module.cache.screen; - }, - scroll: function() { - if(module.cache.scroll === undefined) { - module.save.scroll(); - } - return module.cache.scroll; - }, - lastScroll: function() { - if(module.cache.screen === undefined) { - module.debug('First scroll event, no last scroll could be found'); - return false; - } - return module.cache.screen.top; - } - }, - - setting: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, settings, name); - } - else if(value !== undefined) { - settings[name] = value; - } - else { - return settings[name]; - } - }, - internal: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, module, name); - } - else if(value !== undefined) { - module[name] = value; - } - else { - return module[name]; - } - }, - debug: function() { - if(!settings.silent && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.debug.apply(console, arguments); - } - } - }, - verbose: function() { - if(!settings.silent && settings.verbose && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.verbose.apply(console, arguments); - } - } - }, - error: function() { - if(!settings.silent) { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); - } - }, - performance: { - log: function(message) { - var - currentTime, - executionTime, - previousTime - ; - if(settings.performance) { - currentTime = new Date().getTime(); - previousTime = time || currentTime; - executionTime = currentTime - previousTime; - time = currentTime; - performance.push({ - 'Name' : message[0], - 'Arguments' : [].slice.call(message, 1) || '', - 'Element' : element, - 'Execution Time' : executionTime - }); - } - clearTimeout(module.performance.timer); - module.performance.timer = setTimeout(module.performance.display, 500); - }, - display: function() { - var - title = settings.name + ':', - totalTime = 0 - ; - time = false; - clearTimeout(module.performance.timer); - $.each(performance, function(index, data) { - totalTime += data['Execution Time']; - }); - title += ' ' + totalTime + 'ms'; - if(moduleSelector) { - title += ' \'' + moduleSelector + '\''; - } - if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { - console.groupCollapsed(title); - if(console.table) { - console.table(performance); - } - else { - $.each(performance, function(index, data) { - console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); - }); - } - console.groupEnd(); - } - performance = []; - } - }, - invoke: function(query, passedArguments, context) { - var - object = instance, - maxDepth, - found, - response - ; - passedArguments = passedArguments || queryArguments; - context = element || context; - if(typeof query == 'string' && object !== undefined) { - query = query.split(/[\. ]/); - maxDepth = query.length - 1; - $.each(query, function(depth, value) { - var camelCaseValue = (depth != maxDepth) - ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) - : query - ; - if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { - object = object[camelCaseValue]; - } - else if( object[camelCaseValue] !== undefined ) { - found = object[camelCaseValue]; - return false; - } - else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { - object = object[value]; - } - else if( object[value] !== undefined ) { - found = object[value]; - return false; - } - else { - module.error(error.method, query); - return false; - } - }); - } - if ( $.isFunction( found ) ) { - response = found.apply(context, passedArguments); - } - else if(found !== undefined) { - response = found; - } - if($.isArray(returnedValue)) { - returnedValue.push(response); - } - else if(returnedValue !== undefined) { - returnedValue = [returnedValue, response]; - } - else if(response !== undefined) { - returnedValue = response; - } - return found; - } - }; - - if(methodInvoked) { - if(instance === undefined) { - module.initialize(); - } - instance.save.scroll(); - instance.save.calculations(); - module.invoke(query); - } - else { - if(instance !== undefined) { - instance.invoke('destroy'); - } - module.initialize(); - } - }) - ; - - return (returnedValue !== undefined) - ? returnedValue - : this - ; -}; - -$.fn.visibility.settings = { - - name : 'Visibility', - namespace : 'visibility', - - debug : false, - verbose : false, - performance : true, - - // whether to use mutation observers to follow changes - observeChanges : true, - - // check position immediately on init - initialCheck : true, - - // whether to refresh calculations after all page images load - refreshOnLoad : true, - - // whether to refresh calculations after page resize event - refreshOnResize : true, - - // should call callbacks on refresh event (resize, etc) - checkOnRefresh : true, - - // callback should only occur one time - once : true, - - // callback should fire continuously whe evaluates to true - continuous : false, - - // offset to use with scroll top - offset : 0, - - // whether to include margin in elements position - includeMargin : false, - - // scroll context for visibility checks - context : window, - - // visibility check delay in ms (defaults to animationFrame) - throttle : false, - - // special visibility type (image, fixed) - type : false, - - // z-index to use with visibility 'fixed' - zIndex : '10', - - // image only animation settings - transition : 'fade in', - duration : 1000, - - // array of callbacks for percentage - onPassed : {}, - - // standard callbacks - onOnScreen : false, - onOffScreen : false, - onPassing : false, - onTopVisible : false, - onBottomVisible : false, - onTopPassed : false, - onBottomPassed : false, - - // reverse callbacks - onPassingReverse : false, - onTopVisibleReverse : false, - onBottomVisibleReverse : false, - onTopPassedReverse : false, - onBottomPassedReverse : false, - - // special callbacks for image - onLoad : function() {}, - onAllLoaded : function() {}, - - // special callbacks for fixed position - onFixed : function() {}, - onUnfixed : function() {}, - - // utility callbacks - onUpdate : false, // disabled by default for performance - onRefresh : function(){}, - - metadata : { - src: 'src' - }, - - className: { - fixed : 'fixed', - placeholder : 'placeholder', - visible : 'visible' - }, - - error : { - method : 'The method you called is not defined.', - visible : 'Element is hidden, you must call refresh after element becomes visible' - } - -}; - -})( jQuery, window, document ); diff --git a/node_modules/semantic-ui/src/definitions/behaviors/visit.js b/node_modules/semantic-ui/src/definitions/behaviors/visit.js deleted file mode 100644 index df88d0b..0000000 --- a/node_modules/semantic-ui/src/definitions/behaviors/visit.js +++ /dev/null @@ -1,525 +0,0 @@ -/*! - * # Semantic UI - Visit - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -"use strict"; - -window = (typeof window != 'undefined' && window.Math == Math) - ? window - : (typeof self != 'undefined' && self.Math == Math) - ? self - : Function('return this')() -; - -$.visit = $.fn.visit = function(parameters) { - var - $allModules = $.isFunction(this) - ? $(window) - : $(this), - moduleSelector = $allModules.selector || '', - - time = new Date().getTime(), - performance = [], - - query = arguments[0], - methodInvoked = (typeof query == 'string'), - queryArguments = [].slice.call(arguments, 1), - returnedValue - ; - $allModules - .each(function() { - var - settings = ( $.isPlainObject(parameters) ) - ? $.extend(true, {}, $.fn.visit.settings, parameters) - : $.extend({}, $.fn.visit.settings), - - error = settings.error, - namespace = settings.namespace, - - eventNamespace = '.' + namespace, - moduleNamespace = namespace + '-module', - - $module = $(this), - $displays = $(), - - element = this, - instance = $module.data(moduleNamespace), - module - ; - module = { - - initialize: function() { - if(settings.count) { - module.store(settings.key.count, settings.count); - } - else if(settings.id) { - module.add.id(settings.id); - } - else if(settings.increment && methodInvoked !== 'increment') { - module.increment(); - } - module.add.display($module); - module.instantiate(); - }, - - instantiate: function() { - module.verbose('Storing instance of visit module', module); - instance = module; - $module - .data(moduleNamespace, module) - ; - }, - - destroy: function() { - module.verbose('Destroying instance'); - $module - .removeData(moduleNamespace) - ; - }, - - increment: function(id) { - var - currentValue = module.get.count(), - newValue = +(currentValue) + 1 - ; - if(id) { - module.add.id(id); - } - else { - if(newValue > settings.limit && !settings.surpass) { - newValue = settings.limit; - } - module.debug('Incrementing visits', newValue); - module.store(settings.key.count, newValue); - } - }, - - decrement: function(id) { - var - currentValue = module.get.count(), - newValue = +(currentValue) - 1 - ; - if(id) { - module.remove.id(id); - } - else { - module.debug('Removing visit'); - module.store(settings.key.count, newValue); - } - }, - - get: { - count: function() { - return +(module.retrieve(settings.key.count)) || 0; - }, - idCount: function(ids) { - ids = ids || module.get.ids(); - return ids.length; - }, - ids: function(delimitedIDs) { - var - idArray = [] - ; - delimitedIDs = delimitedIDs || module.retrieve(settings.key.ids); - if(typeof delimitedIDs === 'string') { - idArray = delimitedIDs.split(settings.delimiter); - } - module.verbose('Found visited ID list', idArray); - return idArray; - }, - storageOptions: function(data) { - var - options = {} - ; - if(settings.expires) { - options.expires = settings.expires; - } - if(settings.domain) { - options.domain = settings.domain; - } - if(settings.path) { - options.path = settings.path; - } - return options; - } - }, - - has: { - visited: function(id, ids) { - var - visited = false - ; - ids = ids || module.get.ids(); - if(id !== undefined && ids) { - $.each(ids, function(index, value){ - if(value == id) { - visited = true; - } - }); - } - return visited; - } - }, - - set: { - count: function(value) { - module.store(settings.key.count, value); - }, - ids: function(value) { - module.store(settings.key.ids, value); - } - }, - - reset: function() { - module.store(settings.key.count, 0); - module.store(settings.key.ids, null); - }, - - add: { - id: function(id) { - var - currentIDs = module.retrieve(settings.key.ids), - newIDs = (currentIDs === undefined || currentIDs === '') - ? id - : currentIDs + settings.delimiter + id - ; - if( module.has.visited(id) ) { - module.debug('Unique content already visited, not adding visit', id, currentIDs); - } - else if(id === undefined) { - module.debug('ID is not defined'); - } - else { - module.debug('Adding visit to unique content', id); - module.store(settings.key.ids, newIDs); - } - module.set.count( module.get.idCount() ); - }, - display: function(selector) { - var - $element = $(selector) - ; - if($element.length > 0 && !$.isWindow($element[0])) { - module.debug('Updating visit count for element', $element); - $displays = ($displays.length > 0) - ? $displays.add($element) - : $element - ; - } - } - }, - - remove: { - id: function(id) { - var - currentIDs = module.get.ids(), - newIDs = [] - ; - if(id !== undefined && currentIDs !== undefined) { - module.debug('Removing visit to unique content', id, currentIDs); - $.each(currentIDs, function(index, value){ - if(value !== id) { - newIDs.push(value); - } - }); - newIDs = newIDs.join(settings.delimiter); - module.store(settings.key.ids, newIDs ); - } - module.set.count( module.get.idCount() ); - } - }, - - check: { - limit: function(value) { - value = value || module.get.count(); - if(settings.limit) { - if(value >= settings.limit) { - module.debug('Pages viewed exceeded limit, firing callback', value, settings.limit); - settings.onLimit.call(element, value); - } - module.debug('Limit not reached', value, settings.limit); - settings.onChange.call(element, value); - } - module.update.display(value); - } - }, - - update: { - display: function(value) { - value = value || module.get.count(); - if($displays.length > 0) { - module.debug('Updating displayed view count', $displays); - $displays.html(value); - } - } - }, - - store: function(key, value) { - var - options = module.get.storageOptions(value) - ; - if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) { - window.localStorage.setItem(key, value); - module.debug('Value stored using local storage', key, value); - } - else if($.cookie !== undefined) { - $.cookie(key, value, options); - module.debug('Value stored using cookie', key, value, options); - } - else { - module.error(error.noCookieStorage); - return; - } - if(key == settings.key.count) { - module.check.limit(value); - } - }, - retrieve: function(key, value) { - var - storedValue - ; - if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) { - storedValue = window.localStorage.getItem(key); - } - // get by cookie - else if($.cookie !== undefined) { - storedValue = $.cookie(key); - } - else { - module.error(error.noCookieStorage); - } - if(storedValue == 'undefined' || storedValue == 'null' || storedValue === undefined || storedValue === null) { - storedValue = undefined; - } - return storedValue; - }, - - setting: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, settings, name); - } - else if(value !== undefined) { - settings[name] = value; - } - else { - return settings[name]; - } - }, - internal: function(name, value) { - module.debug('Changing internal', name, value); - if(value !== undefined) { - if( $.isPlainObject(name) ) { - $.extend(true, module, name); - } - else { - module[name] = value; - } - } - else { - return module[name]; - } - }, - debug: function() { - if(!settings.silent && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.debug.apply(console, arguments); - } - } - }, - verbose: function() { - if(!settings.silent && settings.verbose && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.verbose.apply(console, arguments); - } - } - }, - error: function() { - if(!settings.silent) { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); - } - }, - performance: { - log: function(message) { - var - currentTime, - executionTime, - previousTime - ; - if(settings.performance) { - currentTime = new Date().getTime(); - previousTime = time || currentTime; - executionTime = currentTime - previousTime; - time = currentTime; - performance.push({ - 'Name' : message[0], - 'Arguments' : [].slice.call(message, 1) || '', - 'Element' : element, - 'Execution Time' : executionTime - }); - } - clearTimeout(module.performance.timer); - module.performance.timer = setTimeout(module.performance.display, 500); - }, - display: function() { - var - title = settings.name + ':', - totalTime = 0 - ; - time = false; - clearTimeout(module.performance.timer); - $.each(performance, function(index, data) { - totalTime += data['Execution Time']; - }); - title += ' ' + totalTime + 'ms'; - if(moduleSelector) { - title += ' \'' + moduleSelector + '\''; - } - if($allModules.length > 1) { - title += ' ' + '(' + $allModules.length + ')'; - } - if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { - console.groupCollapsed(title); - if(console.table) { - console.table(performance); - } - else { - $.each(performance, function(index, data) { - console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); - }); - } - console.groupEnd(); - } - performance = []; - } - }, - invoke: function(query, passedArguments, context) { - var - object = instance, - maxDepth, - found, - response - ; - passedArguments = passedArguments || queryArguments; - context = element || context; - if(typeof query == 'string' && object !== undefined) { - query = query.split(/[\. ]/); - maxDepth = query.length - 1; - $.each(query, function(depth, value) { - var camelCaseValue = (depth != maxDepth) - ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) - : query - ; - if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { - object = object[camelCaseValue]; - } - else if( object[camelCaseValue] !== undefined ) { - found = object[camelCaseValue]; - return false; - } - else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { - object = object[value]; - } - else if( object[value] !== undefined ) { - found = object[value]; - return false; - } - else { - return false; - } - }); - } - if ( $.isFunction( found ) ) { - response = found.apply(context, passedArguments); - } - else if(found !== undefined) { - response = found; - } - if($.isArray(returnedValue)) { - returnedValue.push(response); - } - else if(returnedValue !== undefined) { - returnedValue = [returnedValue, response]; - } - else if(response !== undefined) { - returnedValue = response; - } - return found; - } - }; - if(methodInvoked) { - if(instance === undefined) { - module.initialize(); - } - module.invoke(query); - } - else { - if(instance !== undefined) { - instance.invoke('destroy'); - } - module.initialize(); - } - - }) - ; - return (returnedValue !== undefined) - ? returnedValue - : this - ; -}; - -$.fn.visit.settings = { - - name : 'Visit', - - debug : false, - verbose : false, - performance : true, - - namespace : 'visit', - - increment : false, - surpass : false, - count : false, - limit : false, - - delimiter : '&', - storageMethod : 'localstorage', - - key : { - count : 'visit-count', - ids : 'visit-ids' - }, - - expires : 30, - domain : false, - path : '/', - - onLimit : function() {}, - onChange : function() {}, - - error : { - method : 'The method you called is not defined', - missingPersist : 'Using the persist setting requires the inclusion of PersistJS', - noCookieStorage : 'The default storage cookie requires $.cookie to be included.' - } - -}; - -})( jQuery, window, document ); diff --git a/node_modules/semantic-ui/src/definitions/collections/breadcrumb.less b/node_modules/semantic-ui/src/definitions/collections/breadcrumb.less deleted file mode 100755 index 67a4e31..0000000 --- a/node_modules/semantic-ui/src/definitions/collections/breadcrumb.less +++ /dev/null @@ -1,122 +0,0 @@ -/*! - * # Semantic UI - Breadcrumb - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'collection'; -@element : 'breadcrumb'; - -@import (multiple) '../../theme.config'; - - -/******************************* - Breadcrumb -*******************************/ - -.ui.breadcrumb { - line-height: 1; - display: @display; - margin: @verticalMargin 0em; - vertical-align: @verticalAlign; -} -.ui.breadcrumb:first-child { - margin-top: 0em; -} -.ui.breadcrumb:last-child { - margin-bottom: 0em; -} - -/******************************* - Content -*******************************/ - -/* Divider */ -.ui.breadcrumb .divider { - display: inline-block; - opacity: @dividerOpacity; - margin: 0em @dividerSpacing 0em; - - font-size: @dividerSize; - color: @dividerColor; - vertical-align: @dividerVerticalAlign; -} - -/* Link */ -.ui.breadcrumb a { - color: @linkColor; -} -.ui.breadcrumb a:hover { - color: @linkHoverColor; -} - - -/* Icon Divider */ -.ui.breadcrumb .icon.divider { - font-size: @iconDividerSize; - vertical-align: @iconDividerVerticalAlign; -} - -/* Section */ -.ui.breadcrumb a.section { - cursor: pointer; -} -.ui.breadcrumb .section { - display: inline-block; - margin: @sectionMargin; - padding: @sectionPadding; -} - -/* Loose Coupling */ -.ui.breadcrumb.segment { - display: inline-block; - padding: @segmentPadding; -} - -/******************************* - States -*******************************/ - -.ui.breadcrumb .active.section { - font-weight: @activeFontWeight; -} - - -/******************************* - Variations -*******************************/ - -.ui.mini.breadcrumb { - font-size: @mini; -} -.ui.tiny.breadcrumb { - font-size: @tiny; -} -.ui.small.breadcrumb { - font-size: @small; -} -.ui.breadcrumb { - font-size: @medium; -} -.ui.large.breadcrumb { - font-size: @large; -} -.ui.big.breadcrumb { - font-size: @big; -} -.ui.huge.breadcrumb { - font-size: @huge; -} -.ui.massive.breadcrumb { - font-size: @massive; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/collections/form.less b/node_modules/semantic-ui/src/definitions/collections/form.less deleted file mode 100755 index 0504601..0000000 --- a/node_modules/semantic-ui/src/definitions/collections/form.less +++ /dev/null @@ -1,1053 +0,0 @@ -/*! - * # Semantic UI - Form - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'collection'; -@element : 'form'; - -@import (multiple) '../../theme.config'; - -/******************************* - Elements -*******************************/ - -/*-------------------- - Form ----------------------*/ - -.ui.form { - position: relative; - max-width: 100%; -} - -/*-------------------- - Content ----------------------*/ - -.ui.form > p { - margin: @paragraphMargin; -} - -/*-------------------- - Field ----------------------*/ - -.ui.form .field { - clear: both; - margin: @fieldMargin; -} - -.ui.form .field:last-child, -.ui.form .fields:last-child .field { - margin-bottom: 0em; -} - -.ui.form .fields .field { - clear: both; - margin: 0em; -} - - -/*-------------------- - Labels ----------------------*/ - -.ui.form .field > label { - display: block; - margin: @labelMargin; - color: @labelColor; - font-size: @labelFontSize; - font-weight: @labelFontWeight; - text-transform: @labelTextTransform; -} - -/*-------------------- - Standard Inputs ----------------------*/ - - -.ui.form textarea, -.ui.form input:not([type]), -.ui.form input[type="date"], -.ui.form input[type="datetime-local"], -.ui.form input[type="email"], -.ui.form input[type="number"], -.ui.form input[type="password"], -.ui.form input[type="search"], -.ui.form input[type="tel"], -.ui.form input[type="time"], -.ui.form input[type="text"], -.ui.form input[type="file"], -.ui.form input[type="url"] { - width: @inputWidth; - vertical-align: top; -} - -/* Set max height on unusual input */ -.ui.form ::-webkit-datetime-edit, -.ui.form ::-webkit-inner-spin-button { - height: @inputLineHeight; -} - -.ui.form input:not([type]), -.ui.form input[type="date"], -.ui.form input[type="datetime-local"], -.ui.form input[type="email"], -.ui.form input[type="number"], -.ui.form input[type="password"], -.ui.form input[type="search"], -.ui.form input[type="tel"], -.ui.form input[type="time"], -.ui.form input[type="text"], -.ui.form input[type="file"], -.ui.form input[type="url"] { - font-family: @inputFont; - margin: 0em; - outline: none; - -webkit-appearance: none; - tap-highlight-color: rgba(255, 255, 255, 0); - - line-height: @inputLineHeight; - padding: @inputPadding; - font-size: @inputFontSize; - - background: @inputBackground; - border: @inputBorder; - color: @inputColor; - border-radius: @inputBorderRadius; - box-shadow: @inputBoxShadow; - transition: @inputTransition; -} - -/* Text Area */ -.ui.form textarea { - margin: 0em; - -webkit-appearance: none; - tap-highlight-color: rgba(255, 255, 255, 0); - - padding: @textAreaPadding; - font-size: @textAreaFontSize; - background: @textAreaBackground; - border: @textAreaBorder; - outline: none; - color: @inputColor; - border-radius: @inputBorderRadius; - box-shadow: @inputBoxShadow; - transition: @textAreaTransition; - font-size: @textAreaFontSize; - line-height: @textAreaLineHeight; - resize: @textAreaResize; -} -.ui.form textarea:not([rows]) { - height: @textAreaHeight; - min-height: @textAreaMinHeight; - max-height: @textAreaMaxHeight; -} - -.ui.form textarea, -.ui.form input[type="checkbox"] { - vertical-align: @checkboxVerticalAlign; -} - -/*-------------------------- - Input w/ attached Button ----------------------------*/ - -.ui.form input.attached { - width: auto; -} - - -/*-------------------- - Basic Select ----------------------*/ - -.ui.form select { - display: block; - height: auto; - width: 100%; - background: @selectBackground; - border: @selectBorder; - border-radius: @selectBorderRadius; - box-shadow: @selectBoxShadow; - padding: @selectPadding; - color: @selectColor; - transition: @selectTransition; -} - -/*-------------------- - Dropdown ----------------------*/ - -/* Block */ -.ui.form .field > .selection.dropdown { - width: 100%; -} -.ui.form .field > .selection.dropdown > .dropdown.icon { - float: right; -} - -/* Inline */ -.ui.form .inline.fields .field > .selection.dropdown, -.ui.form .inline.field > .selection.dropdown { - width: auto; -} -.ui.form .inline.fields .field > .selection.dropdown > .dropdown.icon, -.ui.form .inline.field > .selection.dropdown > .dropdown.icon { - float: none; -} - -/*-------------------- - UI Input ----------------------*/ - -/* Block */ -.ui.form .field .ui.input, -.ui.form .fields .field .ui.input, -.ui.form .wide.field .ui.input { - width: 100%; -} - -/* Inline */ -.ui.form .inline.fields .field:not(.wide) .ui.input, -.ui.form .inline.field:not(.wide) .ui.input { - width: auto; - vertical-align: middle; -} - -/* Auto Input */ -.ui.form .fields .field .ui.input input, -.ui.form .field .ui.input input { - width: auto; -} - -/* Full Width Input */ -.ui.form .ten.fields .ui.input input, -.ui.form .nine.fields .ui.input input, -.ui.form .eight.fields .ui.input input, -.ui.form .seven.fields .ui.input input, -.ui.form .six.fields .ui.input input, -.ui.form .five.fields .ui.input input, -.ui.form .four.fields .ui.input input, -.ui.form .three.fields .ui.input input, -.ui.form .two.fields .ui.input input, -.ui.form .wide.field .ui.input input { - flex: 1 0 auto; - width: 0px; -} - - -/*-------------------- - Types of Messages ----------------------*/ - -.ui.form .success.message, -.ui.form .warning.message, -.ui.form .error.message { - display: none; -} - -/* Assumptions */ -.ui.form .message:first-child { - margin-top: 0px; -} - -/*-------------------- - Validation Prompt ----------------------*/ - -.ui.form .field .prompt.label { - white-space: normal; - background: @promptBackground !important; - border: @promptBorder !important; - color: @promptTextColor !important; -} -.ui.form .inline.fields .field .prompt, -.ui.form .inline.field .prompt { - vertical-align: top; - margin: @inlinePromptMargin; -} -.ui.form .inline.fields .field .prompt:before, -.ui.form .inline.field .prompt:before { - border-width: 0px 0px @inlinePromptBorderWidth @inlinePromptBorderWidth; - bottom: auto; - right: auto; - top: 50%; - left: 0em; -} - - -/******************************* - States -*******************************/ - -/*-------------------- - Autofilled ----------------------*/ - -.ui.form .field.field input:-webkit-autofill { - box-shadow: 0px 0px 0px 100px @inputAutoFillBackground inset !important; - border-color: @inputAutoFillBorder !important; -} - -/* Focus */ -.ui.form .field.field input:-webkit-autofill:focus { - box-shadow: 0px 0px 0px 100px @inputAutoFillFocusBackground inset !important; - border-color: @inputAutoFillFocusBorder !important; -} - -/* Error */ -.ui.form .error.error input:-webkit-autofill { - box-shadow: 0px 0px 0px 100px @inputAutoFillErrorBackground inset !important; - border-color: @inputAutoFillErrorBorder !important; -} - - - -/*-------------------- - Placeholder ----------------------*/ - -/* browsers require these rules separate */ -.ui.form ::-webkit-input-placeholder { - color: @inputPlaceholderColor; -} -.ui.form :-ms-input-placeholder { - color: @inputPlaceholderColor; -} -.ui.form ::-moz-placeholder { - color: @inputPlaceholderColor; -} - -.ui.form :focus::-webkit-input-placeholder { - color: @inputPlaceholderFocusColor; -} -.ui.form :focus:-ms-input-placeholder { - color: @inputPlaceholderFocusColor; -} -.ui.form :focus::-moz-placeholder { - color: @inputPlaceholderFocusColor; -} - -/* Error Placeholder */ -.ui.form .error ::-webkit-input-placeholder { - color: @inputErrorPlaceholderColor; -} -.ui.form .error :-ms-input-placeholder { - color: @inputErrorPlaceholderColor !important; -} -.ui.form .error ::-moz-placeholder { - color: @inputErrorPlaceholderColor; -} - -.ui.form .error :focus::-webkit-input-placeholder { - color: @inputErrorPlaceholderFocusColor; -} -.ui.form .error :focus:-ms-input-placeholder { - color: @inputErrorPlaceholderFocusColor !important; -} -.ui.form .error :focus::-moz-placeholder { - color: @inputErrorPlaceholderFocusColor; -} - - -/*-------------------- - Focus ----------------------*/ - -.ui.form input:not([type]):focus, -.ui.form input[type="date"]:focus, -.ui.form input[type="datetime-local"]:focus, -.ui.form input[type="email"]:focus, -.ui.form input[type="number"]:focus, -.ui.form input[type="password"]:focus, -.ui.form input[type="search"]:focus, -.ui.form input[type="tel"]:focus, -.ui.form input[type="time"]:focus, -.ui.form input[type="text"]:focus, -.ui.form input[type="file"]:focus, -.ui.form input[type="url"]:focus { - color: @inputFocusColor; - border-color: @inputFocusBorderColor; - border-radius: @inputFocusBorderRadius; - background: @inputFocusBackground; - box-shadow: @inputFocusBoxShadow; -} -.ui.form textarea:focus { - color: @textAreaFocusColor; - border-color: @textAreaFocusBorderColor; - border-radius: @textAreaFocusBorderRadius; - background: @textAreaFocusBackground; - box-shadow: @textAreaFocusBoxShadow; - -webkit-appearance: none; -} - - -/*-------------------- - Success ----------------------*/ - -/* On Form */ -.ui.form.success .success.message:not(:empty) { - display: block; -} -.ui.form.success .compact.success.message:not(:empty) { - display: inline-block; -} -.ui.form.success .icon.success.message:not(:empty) { - display: flex; -} - -/*-------------------- - Warning ----------------------*/ - -/* On Form */ -.ui.form.warning .warning.message:not(:empty) { - display: block; -} -.ui.form.warning .compact.warning.message:not(:empty) { - display: inline-block; -} -.ui.form.warning .icon.warning.message:not(:empty) { - display: flex; -} - -/*-------------------- - Error ----------------------*/ - -/* On Form */ -.ui.form.error .error.message:not(:empty) { - display: block; -} -.ui.form.error .compact.error.message:not(:empty) { - display: inline-block; -} -.ui.form.error .icon.error.message:not(:empty) { - display: flex; -} - -/* On Field(s) */ -.ui.form .fields.error .field label, -.ui.form .field.error label, -.ui.form .fields.error .field .input, -.ui.form .field.error .input { - color: @formErrorColor; -} - -.ui.form .fields.error .field .corner.label, -.ui.form .field.error .corner.label { - border-color: @formErrorColor; - color: @white; -} - -.ui.form .fields.error .field textarea, -.ui.form .fields.error .field select, -.ui.form .fields.error .field input:not([type]), -.ui.form .fields.error .field input[type="date"], -.ui.form .fields.error .field input[type="datetime-local"], -.ui.form .fields.error .field input[type="email"], -.ui.form .fields.error .field input[type="number"], -.ui.form .fields.error .field input[type="password"], -.ui.form .fields.error .field input[type="search"], -.ui.form .fields.error .field input[type="tel"], -.ui.form .fields.error .field input[type="time"], -.ui.form .fields.error .field input[type="text"], -.ui.form .fields.error .field input[type="file"], -.ui.form .fields.error .field input[type="url"], -.ui.form .field.error textarea, -.ui.form .field.error select, -.ui.form .field.error input:not([type]), -.ui.form .field.error input[type="date"], -.ui.form .field.error input[type="datetime-local"], -.ui.form .field.error input[type="email"], -.ui.form .field.error input[type="number"], -.ui.form .field.error input[type="password"], -.ui.form .field.error input[type="search"], -.ui.form .field.error input[type="tel"], -.ui.form .field.error input[type="time"], -.ui.form .field.error input[type="text"], -.ui.form .field.error input[type="file"], -.ui.form .field.error input[type="url"] { - background: @formErrorBackground; - border-color: @formErrorBorder; - color: @formErrorColor; - border-radius: @inputErrorBorderRadius; - box-shadow: @inputErrorBoxShadow; -} -.ui.form .field.error textarea:focus, -.ui.form .field.error select:focus, -.ui.form .field.error input:not([type]):focus, -.ui.form .field.error input[type="date"]:focus, -.ui.form .field.error input[type="datetime-local"]:focus, -.ui.form .field.error input[type="email"]:focus, -.ui.form .field.error input[type="number"]:focus, -.ui.form .field.error input[type="password"]:focus, -.ui.form .field.error input[type="search"]:focus, -.ui.form .field.error input[type="tel"]:focus, -.ui.form .field.error input[type="time"]:focus, -.ui.form .field.error input[type="text"]:focus, -.ui.form .field.error input[type="file"]:focus, -.ui.form .field.error input[type="url"]:focus { - background: @inputErrorFocusBackground; - border-color: @inputErrorFocusBorder; - color: @inputErrorFocusColor; - - -webkit-appearance: none; - box-shadow: @inputErrorFocusBoxShadow; -} - -/* Preserve Native Select Stylings */ -.ui.form .field.error select { - -webkit-appearance: menulist-button; -} - -/*------------------ - Dropdown Error ---------------------*/ - -.ui.form .fields.error .field .ui.dropdown, -.ui.form .fields.error .field .ui.dropdown .item, -.ui.form .field.error .ui.dropdown, -.ui.form .field.error .ui.dropdown .text, -.ui.form .field.error .ui.dropdown .item { - background: @formErrorBackground; - color: @formErrorColor; -} -.ui.form .fields.error .field .ui.dropdown, -.ui.form .field.error .ui.dropdown { - border-color: @formErrorBorder !important; -} -.ui.form .fields.error .field .ui.dropdown:hover, -.ui.form .field.error .ui.dropdown:hover { - border-color: @formErrorBorder !important; -} -.ui.form .fields.error .field .ui.dropdown:hover .menu, -.ui.form .field.error .ui.dropdown:hover .menu { - border-color: @formErrorBorder; -} -.ui.form .fields.error .field .ui.multiple.selection.dropdown > .label, -.ui.form .field.error .ui.multiple.selection.dropdown > .label { - background-color: @dropdownErrorLabelBackground; - color: @dropdownErrorLabelColor; -} - -/* Hover */ -.ui.form .fields.error .field .ui.dropdown .menu .item:hover, -.ui.form .field.error .ui.dropdown .menu .item:hover { - background-color: @dropdownErrorHoverBackground; -} - -/* Selected */ -.ui.form .fields.error .field .ui.dropdown .menu .selected.item, -.ui.form .field.error .ui.dropdown .menu .selected.item { - background-color: @dropdownErrorSelectedBackground; -} - - -/* Active */ -.ui.form .fields.error .field .ui.dropdown .menu .active.item, -.ui.form .field.error .ui.dropdown .menu .active.item { - background-color: @dropdownErrorActiveBackground !important; -} - -/*-------------------- - Checkbox Error ----------------------*/ - -.ui.form .fields.error .field .checkbox:not(.toggle):not(.slider) label, -.ui.form .field.error .checkbox:not(.toggle):not(.slider) label, -.ui.form .fields.error .field .checkbox:not(.toggle):not(.slider) .box, -.ui.form .field.error .checkbox:not(.toggle):not(.slider) .box { - color: @formErrorColor; -} -.ui.form .fields.error .field .checkbox:not(.toggle):not(.slider) label:before, -.ui.form .field.error .checkbox:not(.toggle):not(.slider) label:before, -.ui.form .fields.error .field .checkbox:not(.toggle):not(.slider) .box:before, -.ui.form .field.error .checkbox:not(.toggle):not(.slider) .box:before { - background: @formErrorBackground; - border-color: @formErrorBorder; -} -.ui.form .fields.error .field .checkbox label:after, -.ui.form .field.error .checkbox label:after, -.ui.form .fields.error .field .checkbox .box:after, -.ui.form .field.error .checkbox .box:after { - color: @formErrorColor; -} - -/*-------------------- - Disabled ----------------------*/ - -.ui.form .disabled.fields .field, -.ui.form .disabled.field, -.ui.form .field :disabled { - pointer-events: none; - opacity: @disabledOpacity; -} -.ui.form .field.disabled > label, -.ui.form .fields.disabled > label { - opacity: @disabledLabelOpacity; -} -.ui.form .field.disabled :disabled { - opacity: 1; -} - - -/*-------------- - Loading ----------------*/ - -.ui.loading.form { - position: relative; - cursor: default; - pointer-events: none; -} -.ui.loading.form:before { - position: absolute; - content: ''; - top: 0%; - left: 0%; - background: @loaderDimmerColor; - width: 100%; - height: 100%; - z-index: @loaderDimmerZIndex; -} -.ui.loading.form:after { - position: absolute; - content: ''; - top: 50%; - left: 50%; - - margin: @loaderMargin; - width: @loaderSize; - height: @loaderSize; - - animation: form-spin @loaderSpeed linear; - animation-iteration-count: infinite; - - border-radius: @circularRadius; - - border-color: @loaderLineColor @loaderFillColor @loaderFillColor @loaderFillColor; - border-style: solid; - border-width: @loaderLineWidth; - - box-shadow: 0px 0px 0px 1px transparent; - visibility: visible; - z-index: @loaderLineZIndex; -} - -@keyframes form-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - - -/******************************* - Element Types -*******************************/ - -/*-------------------- - Required Field ----------------------*/ - -.ui.form .required.fields:not(.grouped) > .field > label:after, -.ui.form .required.fields.grouped > label:after, -.ui.form .required.field > label:after, -.ui.form .required.fields:not(.grouped) > .field > .checkbox:after, -.ui.form .required.field > .checkbox:after { - margin: @requiredMargin; - content: @requiredContent; - color: @requiredColor; -} - -.ui.form .required.fields:not(.grouped) > .field > label:after, -.ui.form .required.fields.grouped > label:after, -.ui.form .required.field > label:after { - display: inline-block; - vertical-align: top; -} - -.ui.form .required.fields:not(.grouped) > .field > .checkbox:after, -.ui.form .required.field > .checkbox:after { - position: absolute; - top: 0%; - left: 100%; -} - - -/******************************* - Variations -*******************************/ - - -/*-------------------- - Inverted Colors ----------------------*/ - -.ui.inverted.form label, -.ui.form .inverted.segment label, -.ui.form .inverted.segment .ui.checkbox label, -.ui.form .inverted.segment .ui.checkbox .box, -.ui.inverted.form .ui.checkbox label, -.ui.inverted.form .ui.checkbox .box, -.ui.inverted.form .inline.fields > label, -.ui.inverted.form .inline.fields .field > label, -.ui.inverted.form .inline.fields .field > p, -.ui.inverted.form .inline.field > label, -.ui.inverted.form .inline.field > p { - color: @invertedLabelColor; -} - -/* Inverted Field */ -.ui.inverted.form input:not([type]), -.ui.inverted.form input[type="date"], -.ui.inverted.form input[type="datetime-local"], -.ui.inverted.form input[type="email"], -.ui.inverted.form input[type="number"], -.ui.inverted.form input[type="password"], -.ui.inverted.form input[type="search"], -.ui.inverted.form input[type="tel"], -.ui.inverted.form input[type="time"], -.ui.inverted.form input[type="text"], -.ui.inverted.form input[type="file"], -.ui.inverted.form input[type="url"] { - background: @invertedInputBackground; - border-color: @invertedInputBorderColor; - color: @invertedInputColor; - box-shadow: @invertedInputBoxShadow; -} - - -/*-------------------- - Field Groups ----------------------*/ - -/* Grouped Vertically */ -.ui.form .grouped.fields { - display: block; - margin: @groupedMargin; -} -.ui.form .grouped.fields:last-child { - margin-bottom: 0em; -} - -.ui.form .grouped.fields > label { - margin: @groupedLabelMargin; - color: @groupedLabelColor; - font-size: @groupedLabelFontSize; - font-weight: @groupedLabelFontWeight; - text-transform: @groupedLabelTextTransform; -} - -.ui.form .grouped.fields .field, -.ui.form .grouped.inline.fields .field { - display: block; - margin: @groupedFieldMargin; - padding: 0em; -} - -/*-------------------- - Fields ----------------------*/ - -/* Split fields */ -.ui.form .fields { - display: flex; - flex-direction: row; - margin: @fieldsMargin; -} -.ui.form .fields > .field { - flex: 0 1 auto; - padding-left: (@gutterWidth / 2); - padding-right: (@gutterWidth / 2); -} -.ui.form .fields > .field:first-child { - border-left: none; - box-shadow: none; -} - -/* Other Combinations */ -.ui.form .two.fields > .fields, -.ui.form .two.fields > .field { - width: @twoColumn; -} -.ui.form .three.fields > .fields, -.ui.form .three.fields > .field { - width: @threeColumn; -} -.ui.form .four.fields > .fields, -.ui.form .four.fields > .field { - width: @fourColumn; -} -.ui.form .five.fields > .fields, -.ui.form .five.fields > .field { - width: @fiveColumn; -} -.ui.form .six.fields > .fields, -.ui.form .six.fields > .field { - width: @sixColumn; -} -.ui.form .seven.fields > .fields, -.ui.form .seven.fields > .field { - width: @sevenColumn; -} -.ui.form .eight.fields > .fields, -.ui.form .eight.fields > .field { - width: @eightColumn; -} -.ui.form .nine.fields > .fields, -.ui.form .nine.fields > .field { - width: @nineColumn; -} -.ui.form .ten.fields > .fields, -.ui.form .ten.fields > .field { - width: @tenColumn; -} - -/* Swap to full width on mobile */ -@media only screen and (max-width : @largestMobileScreen) { - .ui.form .fields { - flex-wrap: wrap; - } - - .ui[class*="equal width"].form .fields > .field, - .ui.form [class*="equal width"].fields > .field, - .ui.form .two.fields > .fields, - .ui.form .two.fields > .field, - .ui.form .three.fields > .fields, - .ui.form .three.fields > .field, - .ui.form .four.fields > .fields, - .ui.form .four.fields > .field, - .ui.form .five.fields > .fields, - .ui.form .five.fields > .field, - .ui.form .six.fields > .fields, - .ui.form .six.fields > .field, - .ui.form .seven.fields > .fields, - .ui.form .seven.fields > .field, - .ui.form .eight.fields > .fields, - .ui.form .eight.fields > .field, - .ui.form .nine.fields > .fields, - .ui.form .nine.fields > .field, - .ui.form .ten.fields > .fields, - .ui.form .ten.fields > .field { - width: @oneColumn !important; - margin: 0em 0em @rowDistance; - } -} - - -/* Sizing Combinations */ -.ui.form .fields .wide.field { - width: @oneWide; - padding-left: (@gutterWidth / 2); - padding-right: (@gutterWidth / 2); -} - -.ui.form .one.wide.field { - width: @oneWide !important; -} -.ui.form .two.wide.field { - width: @twoWide !important; -} -.ui.form .three.wide.field { - width: @threeWide !important; -} -.ui.form .four.wide.field { - width: @fourWide !important; -} -.ui.form .five.wide.field { - width: @fiveWide !important; -} -.ui.form .six.wide.field { - width: @sixWide !important; -} -.ui.form .seven.wide.field { - width: @sevenWide !important; -} -.ui.form .eight.wide.field { - width: @eightWide !important; -} -.ui.form .nine.wide.field { - width: @nineWide !important; -} -.ui.form .ten.wide.field { - width: @tenWide !important; -} -.ui.form .eleven.wide.field { - width: @elevenWide !important; -} -.ui.form .twelve.wide.field { - width: @twelveWide !important; -} -.ui.form .thirteen.wide.field { - width: @thirteenWide !important; -} -.ui.form .fourteen.wide.field { - width: @fourteenWide !important; -} -.ui.form .fifteen.wide.field { - width: @fifteenWide !important; -} -.ui.form .sixteen.wide.field { - width: @sixteenWide !important; -} - -/* Swap to full width on mobile */ -@media only screen and (max-width : @largestMobileScreen) { - .ui.form .two.fields > .fields, - .ui.form .two.fields > .field, - .ui.form .three.fields > .fields, - .ui.form .three.fields > .field, - .ui.form .four.fields > .fields, - .ui.form .four.fields > .field, - .ui.form .five.fields > .fields, - .ui.form .five.fields > .field, - .ui.form .fields > .two.wide.field, - .ui.form .fields > .three.wide.field, - .ui.form .fields > .four.wide.field, - .ui.form .fields > .five.wide.field, - .ui.form .fields > .six.wide.field, - .ui.form .fields > .seven.wide.field, - .ui.form .fields > .eight.wide.field, - .ui.form .fields > .nine.wide.field, - .ui.form .fields > .ten.wide.field, - .ui.form .fields > .eleven.wide.field, - .ui.form .fields > .twelve.wide.field, - .ui.form .fields > .thirteen.wide.field, - .ui.form .fields > .fourteen.wide.field, - .ui.form .fields > .fifteen.wide.field, - .ui.form .fields > .sixteen.wide.field { - width: @oneColumn !important; - } - .ui.form .fields { - margin-bottom: 0em; - } -} - -/*-------------------- - Equal Width ----------------------*/ - -.ui[class*="equal width"].form .fields > .field, -.ui.form [class*="equal width"].fields > .field { - width: 100%; - flex: 1 1 auto; -} - -/*-------------------- - Inline Fields ----------------------*/ - -.ui.form .inline.fields { - margin: @fieldMargin; - align-items: center; -} -.ui.form .inline.fields .field { - margin: 0em; - padding: @inlineFieldsMargin; -} - -/* Inline Label */ -.ui.form .inline.fields > label, -.ui.form .inline.fields .field > label, -.ui.form .inline.fields .field > p, -.ui.form .inline.field > label, -.ui.form .inline.field > p { - display: inline-block; - width: auto; - margin-top: 0em; - margin-bottom: 0em; - vertical-align: baseline; - font-size: @inlineLabelFontSize; - font-weight: @inlineLabelFontWeight; - color: @inlineLabelColor; - text-transform: @inlineLabelTextTransform; -} - -/* Grouped Inline Label */ -.ui.form .inline.fields > label { - margin: @groupedInlineLabelMargin; -} - -/* Inline Input */ -.ui.form .inline.fields .field > input, -.ui.form .inline.fields .field > select, -.ui.form .inline.field > input, -.ui.form .inline.field > select { - display: inline-block; - width: auto; - - margin-top: 0em; - margin-bottom: 0em; - - vertical-align: middle; - font-size: @inlineInputSize; -} - -/* Label */ -.ui.form .inline.fields .field > :first-child, -.ui.form .inline.field > :first-child { - margin: 0em @inlineLabelDistance 0em 0em; -} -.ui.form .inline.fields .field > :only-child, -.ui.form .inline.field > :only-child { - margin: 0em; -} - -/* Wide */ -.ui.form .inline.fields .wide.field { - display: flex; - align-items: center; -} -.ui.form .inline.fields .wide.field > input, -.ui.form .inline.fields .wide.field > select { - width: 100%; -} - - -/*-------------------- - Sizes ----------------------*/ - -.ui.mini.form { - font-size: @mini; -} -.ui.tiny.form { - font-size: @tiny; -} -.ui.small.form { - font-size: @small; -} -.ui.form { - font-size: @medium; -} -.ui.large.form { - font-size: @large; -} -.ui.big.form { - font-size: @big; -} -.ui.huge.form { - font-size: @huge; -} -.ui.massive.form { - font-size: @massive; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/collections/grid.less b/node_modules/semantic-ui/src/definitions/collections/grid.less deleted file mode 100755 index ba1b535..0000000 --- a/node_modules/semantic-ui/src/definitions/collections/grid.less +++ /dev/null @@ -1,1920 +0,0 @@ -/*! - * # Semantic UI - Grid - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'collection'; -@element : 'grid'; - -@import (multiple) '../../theme.config'; - -/******************************* - Standard -*******************************/ - -.ui.grid { - display: flex; - flex-direction: row; - flex-wrap: wrap; - align-items: stretch; - padding: 0em; -} - -/*---------------------- - Remove Gutters ------------------------*/ - -.ui.grid { - margin-top: -(@rowSpacing / 2); - margin-bottom: -(@rowSpacing / 2); - margin-left: -(@gutterWidth / 2); - margin-right: -(@gutterWidth / 2); -} -.ui.relaxed.grid { - margin-left: -(@relaxedGutterWidth / 2); - margin-right: -(@relaxedGutterWidth / 2); -} -.ui[class*="very relaxed"].grid { - margin-left: -(@veryRelaxedGutterWidth / 2); - margin-right: -(@veryRelaxedGutterWidth / 2); -} - - -/* Preserve Rows Spacing on Consecutive Grids */ -.ui.grid + .grid { - margin-top: @consecutiveGridDistance; -} - -/*------------------- - Columns ---------------------*/ - -/* Standard 16 column */ -.ui.grid > .column:not(.row), -.ui.grid > .row > .column { - position: relative; - display: inline-block; - - width: @oneWide; - padding-left: (@gutterWidth / 2); - padding-right: (@gutterWidth / 2); - vertical-align: top; -} - -.ui.grid > * { - padding-left: (@gutterWidth / 2); - padding-right: (@gutterWidth / 2); -} - -/*------------------- - Rows ---------------------*/ - -.ui.grid > .row { - position: relative; - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: inherit; - align-items: stretch; - width: 100% !important; - padding: 0rem; - padding-top: (@rowSpacing / 2); - padding-bottom: (@rowSpacing / 2); -} - -/*------------------- - Columns ---------------------*/ - -/* Vertical padding when no rows */ -.ui.grid > .column:not(.row) { - padding-top: (@rowSpacing / 2); - padding-bottom: (@rowSpacing / 2); -} -.ui.grid > .row > .column { - margin-top: 0em; - margin-bottom: 0em; -} - -/*------------------- - Content ---------------------*/ - -.ui.grid > .row > img, -.ui.grid > .row > .column > img { - max-width: @columnMaxImageWidth; -} - -/*------------------- - Loose Coupling ---------------------*/ - -/* Collapse Margin on Consecutive Grid */ -.ui.grid > .ui.grid:first-child { - margin-top: 0em; -} -.ui.grid > .ui.grid:last-child { - margin-bottom: 0em; -} - -/* Segment inside Aligned Grid */ -.ui.grid .aligned.row > .column > .segment:not(.compact):not(.attached), -.ui.aligned.grid .column > .segment:not(.compact):not(.attached) { - width: 100%; -} - -/* Align Dividers with Gutter */ -.ui.grid .row + .ui.divider { - flex-grow: 1; - margin: (@rowSpacing / 2) (@gutterWidth / 2); -} -.ui.grid .column + .ui.vertical.divider { - height: ~"calc(50% - "(@rowSpacing/2)~")"; -} - -/* Remove Border on Last Horizontal Segment */ -.ui.grid > .row > .column:last-child > .horizontal.segment, -.ui.grid > .column:last-child > .horizontal.segment { - box-shadow: none; -} - -/******************************* - Variations -*******************************/ - - -/*----------------------- - Page Grid --------------------------*/ - -@media only screen and (max-width: @largestMobileScreen) { - .ui.page.grid { - width: @mobileWidth; - padding-left: @mobileGutter; - padding-right: @mobileGutter; - margin-left: 0em; - margin-right: 0em; - } -} -@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) { - .ui.page.grid { - width: @tabletWidth; - margin-left: @tabletMargin; - margin-right: @tabletMargin; - padding-left: @tabletGutter; - padding-right: @tabletGutter; - } -} -@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) { - .ui.page.grid { - width: @computerWidth; - margin-left: @computerMargin; - margin-right: @computerMargin; - padding-left: @computerGutter; - padding-right: @computerGutter; - } -} -@media only screen and (min-width: @largeMonitorBreakpoint) and (max-width: @largestLargeMonitor) { - .ui.page.grid { - width: @largeMonitorWidth; - margin-left: @largeMonitorMargin; - margin-right: @largeMonitorMargin; - padding-left: @largeMonitorGutter; - padding-right: @largeMonitorGutter; - } -} -@media only screen and (min-width: @widescreenMonitorBreakpoint) { - .ui.page.grid { - width: @widescreenMonitorWidth; - margin-left: @widescreenMargin; - margin-right: @widescreenMargin; - padding-left: @widescreenMonitorGutter; - padding-right: @widescreenMonitorGutter; - } -} - - -/*------------------- - Column Count ---------------------*/ - -/* Assume full width with one column */ -.ui.grid > .column:only-child, -.ui.grid > .row > .column:only-child { - width: @oneColumn; -} - -/* Grid Based */ -.ui[class*="one column"].grid > .row > .column, -.ui[class*="one column"].grid > .column:not(.row) { - width: @oneColumn; -} -.ui[class*="two column"].grid > .row > .column, -.ui[class*="two column"].grid > .column:not(.row) { - width: @twoColumn; -} -.ui[class*="three column"].grid > .row > .column, -.ui[class*="three column"].grid > .column:not(.row) { - width: @threeColumn; -} -.ui[class*="four column"].grid > .row > .column, -.ui[class*="four column"].grid > .column:not(.row) { - width: @fourColumn; -} -.ui[class*="five column"].grid > .row > .column, -.ui[class*="five column"].grid > .column:not(.row) { - width: @fiveColumn; -} -.ui[class*="six column"].grid > .row > .column, -.ui[class*="six column"].grid > .column:not(.row) { - width: @sixColumn; -} -.ui[class*="seven column"].grid > .row > .column, -.ui[class*="seven column"].grid > .column:not(.row) { - width: @sevenColumn; -} -.ui[class*="eight column"].grid > .row > .column, -.ui[class*="eight column"].grid > .column:not(.row) { - width: @eightColumn; -} -.ui[class*="nine column"].grid > .row > .column, -.ui[class*="nine column"].grid > .column:not(.row) { - width: @nineColumn; -} -.ui[class*="ten column"].grid > .row > .column, -.ui[class*="ten column"].grid > .column:not(.row) { - width: @tenColumn; -} -.ui[class*="eleven column"].grid > .row > .column, -.ui[class*="eleven column"].grid > .column:not(.row) { - width: @elevenColumn; -} -.ui[class*="twelve column"].grid > .row > .column, -.ui[class*="twelve column"].grid > .column:not(.row) { - width: @twelveColumn; -} -.ui[class*="thirteen column"].grid > .row > .column, -.ui[class*="thirteen column"].grid > .column:not(.row) { - width: @thirteenColumn; -} -.ui[class*="fourteen column"].grid > .row > .column, -.ui[class*="fourteen column"].grid > .column:not(.row) { - width: @fourteenColumn; -} -.ui[class*="fifteen column"].grid > .row > .column, -.ui[class*="fifteen column"].grid > .column:not(.row) { - width: @fifteenColumn; -} -.ui[class*="sixteen column"].grid > .row > .column, -.ui[class*="sixteen column"].grid > .column:not(.row) { - width: @sixteenColumn; -} - -/* Row Based Overrides */ -.ui.grid > [class*="one column"].row > .column { - width: @oneColumn !important; -} -.ui.grid > [class*="two column"].row > .column { - width: @twoColumn !important; -} -.ui.grid > [class*="three column"].row > .column { - width: @threeColumn !important; -} -.ui.grid > [class*="four column"].row > .column { - width: @fourColumn !important; -} -.ui.grid > [class*="five column"].row > .column { - width: @fiveColumn !important; -} -.ui.grid > [class*="six column"].row > .column { - width: @sixColumn !important; -} -.ui.grid > [class*="seven column"].row > .column { - width: @sevenColumn !important; -} -.ui.grid > [class*="eight column"].row > .column { - width: @eightColumn !important; -} -.ui.grid > [class*="nine column"].row > .column { - width: @nineColumn !important; -} -.ui.grid > [class*="ten column"].row > .column { - width: @tenColumn !important; -} -.ui.grid > [class*="eleven column"].row > .column { - width: @elevenColumn !important; -} -.ui.grid > [class*="twelve column"].row > .column { - width: @twelveColumn !important; -} -.ui.grid > [class*="thirteen column"].row > .column { - width: @thirteenColumn !important; -} -.ui.grid > [class*="fourteen column"].row > .column { - width: @fourteenColumn !important; -} -.ui.grid > [class*="fifteen column"].row > .column { - width: @fifteenColumn !important; -} -.ui.grid > [class*="sixteen column"].row > .column { - width: @sixteenColumn !important; -} - -/* Celled Page */ -.ui.celled.page.grid { - box-shadow: none; -} - -/*------------------- - Column Width ---------------------*/ - -/* Sizing Combinations */ -.ui.grid > .row > [class*="one wide"].column, -.ui.grid > .column.row > [class*="one wide"].column, -.ui.grid > [class*="one wide"].column, -.ui.column.grid > [class*="one wide"].column { - width: @oneWide !important; -} -.ui.grid > .row > [class*="two wide"].column, -.ui.grid > .column.row > [class*="two wide"].column, -.ui.grid > [class*="two wide"].column, -.ui.column.grid > [class*="two wide"].column { - width: @twoWide !important; -} -.ui.grid > .row > [class*="three wide"].column, -.ui.grid > .column.row > [class*="three wide"].column, -.ui.grid > [class*="three wide"].column, -.ui.column.grid > [class*="three wide"].column { - width: @threeWide !important; -} -.ui.grid > .row > [class*="four wide"].column, -.ui.grid > .column.row > [class*="four wide"].column, -.ui.grid > [class*="four wide"].column, -.ui.column.grid > [class*="four wide"].column { - width: @fourWide !important; -} -.ui.grid > .row > [class*="five wide"].column, -.ui.grid > .column.row > [class*="five wide"].column, -.ui.grid > [class*="five wide"].column, -.ui.column.grid > [class*="five wide"].column { - width: @fiveWide !important; -} -.ui.grid > .row > [class*="six wide"].column, -.ui.grid > .column.row > [class*="six wide"].column, -.ui.grid > [class*="six wide"].column, -.ui.column.grid > [class*="six wide"].column { - width: @sixWide !important; -} -.ui.grid > .row > [class*="seven wide"].column, -.ui.grid > .column.row > [class*="seven wide"].column, -.ui.grid > [class*="seven wide"].column, -.ui.column.grid > [class*="seven wide"].column { - width: @sevenWide !important; -} -.ui.grid > .row > [class*="eight wide"].column, -.ui.grid > .column.row > [class*="eight wide"].column, -.ui.grid > [class*="eight wide"].column, -.ui.column.grid > [class*="eight wide"].column { - width: @eightWide !important; -} -.ui.grid > .row > [class*="nine wide"].column, -.ui.grid > .column.row > [class*="nine wide"].column, -.ui.grid > [class*="nine wide"].column, -.ui.column.grid > [class*="nine wide"].column { - width: @nineWide !important; -} -.ui.grid > .row > [class*="ten wide"].column, -.ui.grid > .column.row > [class*="ten wide"].column, -.ui.grid > [class*="ten wide"].column, -.ui.column.grid > [class*="ten wide"].column { - width: @tenWide !important; -} -.ui.grid > .row > [class*="eleven wide"].column, -.ui.grid > .column.row > [class*="eleven wide"].column, -.ui.grid > [class*="eleven wide"].column, -.ui.column.grid > [class*="eleven wide"].column { - width: @elevenWide !important; -} -.ui.grid > .row > [class*="twelve wide"].column, -.ui.grid > .column.row > [class*="twelve wide"].column, -.ui.grid > [class*="twelve wide"].column, -.ui.column.grid > [class*="twelve wide"].column { - width: @twelveWide !important; -} -.ui.grid > .row > [class*="thirteen wide"].column, -.ui.grid > .column.row > [class*="thirteen wide"].column, -.ui.grid > [class*="thirteen wide"].column, -.ui.column.grid > [class*="thirteen wide"].column { - width: @thirteenWide !important; -} -.ui.grid > .row > [class*="fourteen wide"].column, -.ui.grid > .column.row > [class*="fourteen wide"].column, -.ui.grid > [class*="fourteen wide"].column, -.ui.column.grid > [class*="fourteen wide"].column { - width: @fourteenWide !important; -} -.ui.grid > .row > [class*="fifteen wide"].column, -.ui.grid > .column.row > [class*="fifteen wide"].column, -.ui.grid > [class*="fifteen wide"].column, -.ui.column.grid > [class*="fifteen wide"].column { - width: @fifteenWide !important; -} -.ui.grid > .row > [class*="sixteen wide"].column, -.ui.grid > .column.row > [class*="sixteen wide"].column, -.ui.grid > [class*="sixteen wide"].column, -.ui.column.grid > [class*="sixteen wide"].column { - width: @sixteenWide !important; -} - -/*---------------------- - Width per Device ------------------------*/ - -/* Mobile Sizing Combinations */ -@media only screen and (min-width: @mobileBreakpoint) and (max-width: @largestMobileScreen) { - .ui.grid > .row > [class*="one wide mobile"].column, - .ui.grid > .column.row > [class*="one wide mobile"].column, - .ui.grid > [class*="one wide mobile"].column, - .ui.column.grid > [class*="one wide mobile"].column { - width: @oneWide !important; - } - .ui.grid > .row > [class*="two wide mobile"].column, - .ui.grid > .column.row > [class*="two wide mobile"].column, - .ui.grid > [class*="two wide mobile"].column, - .ui.column.grid > [class*="two wide mobile"].column { - width: @twoWide !important; - } - .ui.grid > .row > [class*="three wide mobile"].column, - .ui.grid > .column.row > [class*="three wide mobile"].column, - .ui.grid > [class*="three wide mobile"].column, - .ui.column.grid > [class*="three wide mobile"].column { - width: @threeWide !important; - } - .ui.grid > .row > [class*="four wide mobile"].column, - .ui.grid > .column.row > [class*="four wide mobile"].column, - .ui.grid > [class*="four wide mobile"].column, - .ui.column.grid > [class*="four wide mobile"].column { - width: @fourWide !important; - } - .ui.grid > .row > [class*="five wide mobile"].column, - .ui.grid > .column.row > [class*="five wide mobile"].column, - .ui.grid > [class*="five wide mobile"].column, - .ui.column.grid > [class*="five wide mobile"].column { - width: @fiveWide !important; - } - .ui.grid > .row > [class*="six wide mobile"].column, - .ui.grid > .column.row > [class*="six wide mobile"].column, - .ui.grid > [class*="six wide mobile"].column, - .ui.column.grid > [class*="six wide mobile"].column { - width: @sixWide !important; - } - .ui.grid > .row > [class*="seven wide mobile"].column, - .ui.grid > .column.row > [class*="seven wide mobile"].column, - .ui.grid > [class*="seven wide mobile"].column, - .ui.column.grid > [class*="seven wide mobile"].column { - width: @sevenWide !important; - } - .ui.grid > .row > [class*="eight wide mobile"].column, - .ui.grid > .column.row > [class*="eight wide mobile"].column, - .ui.grid > [class*="eight wide mobile"].column, - .ui.column.grid > [class*="eight wide mobile"].column { - width: @eightWide !important; - } - .ui.grid > .row > [class*="nine wide mobile"].column, - .ui.grid > .column.row > [class*="nine wide mobile"].column, - .ui.grid > [class*="nine wide mobile"].column, - .ui.column.grid > [class*="nine wide mobile"].column { - width: @nineWide !important; - } - .ui.grid > .row > [class*="ten wide mobile"].column, - .ui.grid > .column.row > [class*="ten wide mobile"].column, - .ui.grid > [class*="ten wide mobile"].column, - .ui.column.grid > [class*="ten wide mobile"].column { - width: @tenWide !important; - } - .ui.grid > .row > [class*="eleven wide mobile"].column, - .ui.grid > .column.row > [class*="eleven wide mobile"].column, - .ui.grid > [class*="eleven wide mobile"].column, - .ui.column.grid > [class*="eleven wide mobile"].column { - width: @elevenWide !important; - } - .ui.grid > .row > [class*="twelve wide mobile"].column, - .ui.grid > .column.row > [class*="twelve wide mobile"].column, - .ui.grid > [class*="twelve wide mobile"].column, - .ui.column.grid > [class*="twelve wide mobile"].column { - width: @twelveWide !important; - } - .ui.grid > .row > [class*="thirteen wide mobile"].column, - .ui.grid > .column.row > [class*="thirteen wide mobile"].column, - .ui.grid > [class*="thirteen wide mobile"].column, - .ui.column.grid > [class*="thirteen wide mobile"].column { - width: @thirteenWide !important; - } - .ui.grid > .row > [class*="fourteen wide mobile"].column, - .ui.grid > .column.row > [class*="fourteen wide mobile"].column, - .ui.grid > [class*="fourteen wide mobile"].column, - .ui.column.grid > [class*="fourteen wide mobile"].column { - width: @fourteenWide !important; - } - .ui.grid > .row > [class*="fifteen wide mobile"].column, - .ui.grid > .column.row > [class*="fifteen wide mobile"].column, - .ui.grid > [class*="fifteen wide mobile"].column, - .ui.column.grid > [class*="fifteen wide mobile"].column { - width: @fifteenWide !important; - } - .ui.grid > .row > [class*="sixteen wide mobile"].column, - .ui.grid > .column.row > [class*="sixteen wide mobile"].column, - .ui.grid > [class*="sixteen wide mobile"].column, - .ui.column.grid > [class*="sixteen wide mobile"].column { - width: @sixteenWide !important; - } -} - -/* Tablet Sizing Combinations */ -@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) { - .ui.grid > .row > [class*="one wide tablet"].column, - .ui.grid > .column.row > [class*="one wide tablet"].column, - .ui.grid > [class*="one wide tablet"].column, - .ui.column.grid > [class*="one wide tablet"].column { - width: @oneWide !important; - } - .ui.grid > .row > [class*="two wide tablet"].column, - .ui.grid > .column.row > [class*="two wide tablet"].column, - .ui.grid > [class*="two wide tablet"].column, - .ui.column.grid > [class*="two wide tablet"].column { - width: @twoWide !important; - } - .ui.grid > .row > [class*="three wide tablet"].column, - .ui.grid > .column.row > [class*="three wide tablet"].column, - .ui.grid > [class*="three wide tablet"].column, - .ui.column.grid > [class*="three wide tablet"].column { - width: @threeWide !important; - } - .ui.grid > .row > [class*="four wide tablet"].column, - .ui.grid > .column.row > [class*="four wide tablet"].column, - .ui.grid > [class*="four wide tablet"].column, - .ui.column.grid > [class*="four wide tablet"].column { - width: @fourWide !important; - } - .ui.grid > .row > [class*="five wide tablet"].column, - .ui.grid > .column.row > [class*="five wide tablet"].column, - .ui.grid > [class*="five wide tablet"].column, - .ui.column.grid > [class*="five wide tablet"].column { - width: @fiveWide !important; - } - .ui.grid > .row > [class*="six wide tablet"].column, - .ui.grid > .column.row > [class*="six wide tablet"].column, - .ui.grid > [class*="six wide tablet"].column, - .ui.column.grid > [class*="six wide tablet"].column { - width: @sixWide !important; - } - .ui.grid > .row > [class*="seven wide tablet"].column, - .ui.grid > .column.row > [class*="seven wide tablet"].column, - .ui.grid > [class*="seven wide tablet"].column, - .ui.column.grid > [class*="seven wide tablet"].column { - width: @sevenWide !important; - } - .ui.grid > .row > [class*="eight wide tablet"].column, - .ui.grid > .column.row > [class*="eight wide tablet"].column, - .ui.grid > [class*="eight wide tablet"].column, - .ui.column.grid > [class*="eight wide tablet"].column { - width: @eightWide !important; - } - .ui.grid > .row > [class*="nine wide tablet"].column, - .ui.grid > .column.row > [class*="nine wide tablet"].column, - .ui.grid > [class*="nine wide tablet"].column, - .ui.column.grid > [class*="nine wide tablet"].column { - width: @nineWide !important; - } - .ui.grid > .row > [class*="ten wide tablet"].column, - .ui.grid > .column.row > [class*="ten wide tablet"].column, - .ui.grid > [class*="ten wide tablet"].column, - .ui.column.grid > [class*="ten wide tablet"].column { - width: @tenWide !important; - } - .ui.grid > .row > [class*="eleven wide tablet"].column, - .ui.grid > .column.row > [class*="eleven wide tablet"].column, - .ui.grid > [class*="eleven wide tablet"].column, - .ui.column.grid > [class*="eleven wide tablet"].column { - width: @elevenWide !important; - } - .ui.grid > .row > [class*="twelve wide tablet"].column, - .ui.grid > .column.row > [class*="twelve wide tablet"].column, - .ui.grid > [class*="twelve wide tablet"].column, - .ui.column.grid > [class*="twelve wide tablet"].column { - width: @twelveWide !important; - } - .ui.grid > .row > [class*="thirteen wide tablet"].column, - .ui.grid > .column.row > [class*="thirteen wide tablet"].column, - .ui.grid > [class*="thirteen wide tablet"].column, - .ui.column.grid > [class*="thirteen wide tablet"].column { - width: @thirteenWide !important; - } - .ui.grid > .row > [class*="fourteen wide tablet"].column, - .ui.grid > .column.row > [class*="fourteen wide tablet"].column, - .ui.grid > [class*="fourteen wide tablet"].column, - .ui.column.grid > [class*="fourteen wide tablet"].column { - width: @fourteenWide !important; - } - .ui.grid > .row > [class*="fifteen wide tablet"].column, - .ui.grid > .column.row > [class*="fifteen wide tablet"].column, - .ui.grid > [class*="fifteen wide tablet"].column, - .ui.column.grid > [class*="fifteen wide tablet"].column { - width: @fifteenWide !important; - } - .ui.grid > .row > [class*="sixteen wide tablet"].column, - .ui.grid > .column.row > [class*="sixteen wide tablet"].column, - .ui.grid > [class*="sixteen wide tablet"].column, - .ui.column.grid > [class*="sixteen wide tablet"].column { - width: @sixteenWide !important; - } -} - -/* Computer/Desktop Sizing Combinations */ -@media only screen and (min-width: @computerBreakpoint) { - .ui.grid > .row > [class*="one wide computer"].column, - .ui.grid > .column.row > [class*="one wide computer"].column, - .ui.grid > [class*="one wide computer"].column, - .ui.column.grid > [class*="one wide computer"].column { - width: @oneWide !important; - } - .ui.grid > .row > [class*="two wide computer"].column, - .ui.grid > .column.row > [class*="two wide computer"].column, - .ui.grid > [class*="two wide computer"].column, - .ui.column.grid > [class*="two wide computer"].column { - width: @twoWide !important; - } - .ui.grid > .row > [class*="three wide computer"].column, - .ui.grid > .column.row > [class*="three wide computer"].column, - .ui.grid > [class*="three wide computer"].column, - .ui.column.grid > [class*="three wide computer"].column { - width: @threeWide !important; - } - .ui.grid > .row > [class*="four wide computer"].column, - .ui.grid > .column.row > [class*="four wide computer"].column, - .ui.grid > [class*="four wide computer"].column, - .ui.column.grid > [class*="four wide computer"].column { - width: @fourWide !important; - } - .ui.grid > .row > [class*="five wide computer"].column, - .ui.grid > .column.row > [class*="five wide computer"].column, - .ui.grid > [class*="five wide computer"].column, - .ui.column.grid > [class*="five wide computer"].column { - width: @fiveWide !important; - } - .ui.grid > .row > [class*="six wide computer"].column, - .ui.grid > .column.row > [class*="six wide computer"].column, - .ui.grid > [class*="six wide computer"].column, - .ui.column.grid > [class*="six wide computer"].column { - width: @sixWide !important; - } - .ui.grid > .row > [class*="seven wide computer"].column, - .ui.grid > .column.row > [class*="seven wide computer"].column, - .ui.grid > [class*="seven wide computer"].column, - .ui.column.grid > [class*="seven wide computer"].column { - width: @sevenWide !important; - } - .ui.grid > .row > [class*="eight wide computer"].column, - .ui.grid > .column.row > [class*="eight wide computer"].column, - .ui.grid > [class*="eight wide computer"].column, - .ui.column.grid > [class*="eight wide computer"].column { - width: @eightWide !important; - } - .ui.grid > .row > [class*="nine wide computer"].column, - .ui.grid > .column.row > [class*="nine wide computer"].column, - .ui.grid > [class*="nine wide computer"].column, - .ui.column.grid > [class*="nine wide computer"].column { - width: @nineWide !important; - } - .ui.grid > .row > [class*="ten wide computer"].column, - .ui.grid > .column.row > [class*="ten wide computer"].column, - .ui.grid > [class*="ten wide computer"].column, - .ui.column.grid > [class*="ten wide computer"].column { - width: @tenWide !important; - } - .ui.grid > .row > [class*="eleven wide computer"].column, - .ui.grid > .column.row > [class*="eleven wide computer"].column, - .ui.grid > [class*="eleven wide computer"].column, - .ui.column.grid > [class*="eleven wide computer"].column { - width: @elevenWide !important; - } - .ui.grid > .row > [class*="twelve wide computer"].column, - .ui.grid > .column.row > [class*="twelve wide computer"].column, - .ui.grid > [class*="twelve wide computer"].column, - .ui.column.grid > [class*="twelve wide computer"].column { - width: @twelveWide !important; - } - .ui.grid > .row > [class*="thirteen wide computer"].column, - .ui.grid > .column.row > [class*="thirteen wide computer"].column, - .ui.grid > [class*="thirteen wide computer"].column, - .ui.column.grid > [class*="thirteen wide computer"].column { - width: @thirteenWide !important; - } - .ui.grid > .row > [class*="fourteen wide computer"].column, - .ui.grid > .column.row > [class*="fourteen wide computer"].column, - .ui.grid > [class*="fourteen wide computer"].column, - .ui.column.grid > [class*="fourteen wide computer"].column { - width: @fourteenWide !important; - } - .ui.grid > .row > [class*="fifteen wide computer"].column, - .ui.grid > .column.row > [class*="fifteen wide computer"].column, - .ui.grid > [class*="fifteen wide computer"].column, - .ui.column.grid > [class*="fifteen wide computer"].column { - width: @fifteenWide !important; - } - .ui.grid > .row > [class*="sixteen wide computer"].column, - .ui.grid > .column.row > [class*="sixteen wide computer"].column, - .ui.grid > [class*="sixteen wide computer"].column, - .ui.column.grid > [class*="sixteen wide computer"].column { - width: @sixteenWide !important; - } -} - -/* Large Monitor Sizing Combinations */ -@media only screen and (min-width: @largeMonitorBreakpoint) and (max-width: @largestLargeMonitor){ - .ui.grid > .row > [class*="one wide large screen"].column, - .ui.grid > .column.row > [class*="one wide large screen"].column, - .ui.grid > [class*="one wide large screen"].column, - .ui.column.grid > [class*="one wide large screen"].column { - width: @oneWide !important; - } - .ui.grid > .row > [class*="two wide large screen"].column, - .ui.grid > .column.row > [class*="two wide large screen"].column, - .ui.grid > [class*="two wide large screen"].column, - .ui.column.grid > [class*="two wide large screen"].column { - width: @twoWide !important; - } - .ui.grid > .row > [class*="three wide large screen"].column, - .ui.grid > .column.row > [class*="three wide large screen"].column, - .ui.grid > [class*="three wide large screen"].column, - .ui.column.grid > [class*="three wide large screen"].column { - width: @threeWide !important; - } - .ui.grid > .row > [class*="four wide large screen"].column, - .ui.grid > .column.row > [class*="four wide large screen"].column, - .ui.grid > [class*="four wide large screen"].column, - .ui.column.grid > [class*="four wide large screen"].column { - width: @fourWide !important; - } - .ui.grid > .row > [class*="five wide large screen"].column, - .ui.grid > .column.row > [class*="five wide large screen"].column, - .ui.grid > [class*="five wide large screen"].column, - .ui.column.grid > [class*="five wide large screen"].column { - width: @fiveWide !important; - } - .ui.grid > .row > [class*="six wide large screen"].column, - .ui.grid > .column.row > [class*="six wide large screen"].column, - .ui.grid > [class*="six wide large screen"].column, - .ui.column.grid > [class*="six wide large screen"].column { - width: @sixWide !important; - } - .ui.grid > .row > [class*="seven wide large screen"].column, - .ui.grid > .column.row > [class*="seven wide large screen"].column, - .ui.grid > [class*="seven wide large screen"].column, - .ui.column.grid > [class*="seven wide large screen"].column { - width: @sevenWide !important; - } - .ui.grid > .row > [class*="eight wide large screen"].column, - .ui.grid > .column.row > [class*="eight wide large screen"].column, - .ui.grid > [class*="eight wide large screen"].column, - .ui.column.grid > [class*="eight wide large screen"].column { - width: @eightWide !important; - } - .ui.grid > .row > [class*="nine wide large screen"].column, - .ui.grid > .column.row > [class*="nine wide large screen"].column, - .ui.grid > [class*="nine wide large screen"].column, - .ui.column.grid > [class*="nine wide large screen"].column { - width: @nineWide !important; - } - .ui.grid > .row > [class*="ten wide large screen"].column, - .ui.grid > .column.row > [class*="ten wide large screen"].column, - .ui.grid > [class*="ten wide large screen"].column, - .ui.column.grid > [class*="ten wide large screen"].column { - width: @tenWide !important; - } - .ui.grid > .row > [class*="eleven wide large screen"].column, - .ui.grid > .column.row > [class*="eleven wide large screen"].column, - .ui.grid > [class*="eleven wide large screen"].column, - .ui.column.grid > [class*="eleven wide large screen"].column { - width: @elevenWide !important; - } - .ui.grid > .row > [class*="twelve wide large screen"].column, - .ui.grid > .column.row > [class*="twelve wide large screen"].column, - .ui.grid > [class*="twelve wide large screen"].column, - .ui.column.grid > [class*="twelve wide large screen"].column { - width: @twelveWide !important; - } - .ui.grid > .row > [class*="thirteen wide large screen"].column, - .ui.grid > .column.row > [class*="thirteen wide large screen"].column, - .ui.grid > [class*="thirteen wide large screen"].column, - .ui.column.grid > [class*="thirteen wide large screen"].column { - width: @thirteenWide !important; - } - .ui.grid > .row > [class*="fourteen wide large screen"].column, - .ui.grid > .column.row > [class*="fourteen wide large screen"].column, - .ui.grid > [class*="fourteen wide large screen"].column, - .ui.column.grid > [class*="fourteen wide large screen"].column { - width: @fourteenWide !important; - } - .ui.grid > .row > [class*="fifteen wide large screen"].column, - .ui.grid > .column.row > [class*="fifteen wide large screen"].column, - .ui.grid > [class*="fifteen wide large screen"].column, - .ui.column.grid > [class*="fifteen wide large screen"].column { - width: @fifteenWide !important; - } - .ui.grid > .row > [class*="sixteen wide large screen"].column, - .ui.grid > .column.row > [class*="sixteen wide large screen"].column, - .ui.grid > [class*="sixteen wide large screen"].column, - .ui.column.grid > [class*="sixteen wide large screen"].column { - width: @sixteenWide !important; - } -} - -/* Widescreen Sizing Combinations */ -@media only screen and (min-width: @widescreenMonitorBreakpoint) { - .ui.grid > .row > [class*="one wide widescreen"].column, - .ui.grid > .column.row > [class*="one wide widescreen"].column, - .ui.grid > [class*="one wide widescreen"].column, - .ui.column.grid > [class*="one wide widescreen"].column { - width: @oneWide !important; - } - .ui.grid > .row > [class*="two wide widescreen"].column, - .ui.grid > .column.row > [class*="two wide widescreen"].column, - .ui.grid > [class*="two wide widescreen"].column, - .ui.column.grid > [class*="two wide widescreen"].column { - width: @twoWide !important; - } - .ui.grid > .row > [class*="three wide widescreen"].column, - .ui.grid > .column.row > [class*="three wide widescreen"].column, - .ui.grid > [class*="three wide widescreen"].column, - .ui.column.grid > [class*="three wide widescreen"].column { - width: @threeWide !important; - } - .ui.grid > .row > [class*="four wide widescreen"].column, - .ui.grid > .column.row > [class*="four wide widescreen"].column, - .ui.grid > [class*="four wide widescreen"].column, - .ui.column.grid > [class*="four wide widescreen"].column { - width: @fourWide !important; - } - .ui.grid > .row > [class*="five wide widescreen"].column, - .ui.grid > .column.row > [class*="five wide widescreen"].column, - .ui.grid > [class*="five wide widescreen"].column, - .ui.column.grid > [class*="five wide widescreen"].column { - width: @fiveWide !important; - } - .ui.grid > .row > [class*="six wide widescreen"].column, - .ui.grid > .column.row > [class*="six wide widescreen"].column, - .ui.grid > [class*="six wide widescreen"].column, - .ui.column.grid > [class*="six wide widescreen"].column { - width: @sixWide !important; - } - .ui.grid > .row > [class*="seven wide widescreen"].column, - .ui.grid > .column.row > [class*="seven wide widescreen"].column, - .ui.grid > [class*="seven wide widescreen"].column, - .ui.column.grid > [class*="seven wide widescreen"].column { - width: @sevenWide !important; - } - .ui.grid > .row > [class*="eight wide widescreen"].column, - .ui.grid > .column.row > [class*="eight wide widescreen"].column, - .ui.grid > [class*="eight wide widescreen"].column, - .ui.column.grid > [class*="eight wide widescreen"].column { - width: @eightWide !important; - } - .ui.grid > .row > [class*="nine wide widescreen"].column, - .ui.grid > .column.row > [class*="nine wide widescreen"].column, - .ui.grid > [class*="nine wide widescreen"].column, - .ui.column.grid > [class*="nine wide widescreen"].column { - width: @nineWide !important; - } - .ui.grid > .row > [class*="ten wide widescreen"].column, - .ui.grid > .column.row > [class*="ten wide widescreen"].column, - .ui.grid > [class*="ten wide widescreen"].column, - .ui.column.grid > [class*="ten wide widescreen"].column { - width: @tenWide !important; - } - .ui.grid > .row > [class*="eleven wide widescreen"].column, - .ui.grid > .column.row > [class*="eleven wide widescreen"].column, - .ui.grid > [class*="eleven wide widescreen"].column, - .ui.column.grid > [class*="eleven wide widescreen"].column { - width: @elevenWide !important; - } - .ui.grid > .row > [class*="twelve wide widescreen"].column, - .ui.grid > .column.row > [class*="twelve wide widescreen"].column, - .ui.grid > [class*="twelve wide widescreen"].column, - .ui.column.grid > [class*="twelve wide widescreen"].column { - width: @twelveWide !important; - } - .ui.grid > .row > [class*="thirteen wide widescreen"].column, - .ui.grid > .column.row > [class*="thirteen wide widescreen"].column, - .ui.grid > [class*="thirteen wide widescreen"].column, - .ui.column.grid > [class*="thirteen wide widescreen"].column { - width: @thirteenWide !important; - } - .ui.grid > .row > [class*="fourteen wide widescreen"].column, - .ui.grid > .column.row > [class*="fourteen wide widescreen"].column, - .ui.grid > [class*="fourteen wide widescreen"].column, - .ui.column.grid > [class*="fourteen wide widescreen"].column { - width: @fourteenWide !important; - } - .ui.grid > .row > [class*="fifteen wide widescreen"].column, - .ui.grid > .column.row > [class*="fifteen wide widescreen"].column, - .ui.grid > [class*="fifteen wide widescreen"].column, - .ui.column.grid > [class*="fifteen wide widescreen"].column { - width: @fifteenWide !important; - } - .ui.grid > .row > [class*="sixteen wide widescreen"].column, - .ui.grid > .column.row > [class*="sixteen wide widescreen"].column, - .ui.grid > [class*="sixteen wide widescreen"].column, - .ui.column.grid > [class*="sixteen wide widescreen"].column { - width: @sixteenWide !important; - } -} - -/*---------------------- - Centered ------------------------*/ - -.ui.centered.grid, -.ui.centered.grid > .row, -.ui.grid > .centered.row { - text-align: center; - justify-content: center; -} -.ui.centered.grid > .column:not(.aligned):not(.justified):not(.row), -.ui.centered.grid > .row > .column:not(.aligned):not(.justified), -.ui.grid .centered.row > .column:not(.aligned):not(.justified) { - text-align: left; -} - -.ui.grid > .centered.column, -.ui.grid > .row > .centered.column { - display: block; - margin-left: auto; - margin-right: auto; -} - -/*---------------------- - Relaxed ------------------------*/ - -.ui.relaxed.grid > .column:not(.row), -.ui.relaxed.grid > .row > .column, -.ui.grid > .relaxed.row > .column { - padding-left: (@relaxedGutterWidth / 2); - padding-right: (@relaxedGutterWidth / 2); -} - -.ui[class*="very relaxed"].grid > .column:not(.row), -.ui[class*="very relaxed"].grid > .row > .column, -.ui.grid > [class*="very relaxed"].row > .column { - padding-left: (@veryRelaxedGutterWidth / 2); - padding-right: (@veryRelaxedGutterWidth / 2); -} - -/* Coupling with UI Divider */ -.ui.relaxed.grid .row + .ui.divider, -.ui.grid .relaxed.row + .ui.divider { - margin-left: (@relaxedGutterWidth / 2); - margin-right: (@relaxedGutterWidth / 2); -} -.ui[class*="very relaxed"].grid .row + .ui.divider, -.ui.grid [class*="very relaxed"].row + .ui.divider { - margin-left: (@veryRelaxedGutterWidth / 2); - margin-right: (@veryRelaxedGutterWidth / 2); -} - - -/*---------------------- - Padded ------------------------*/ - -.ui.padded.grid:not(.vertically):not(.horizontally) { - margin: 0em !important; -} -[class*="horizontally padded"].ui.grid { - margin-left: 0em !important; - margin-right: 0em !important; -} -[class*="vertically padded"].ui.grid { - margin-top: 0em !important; - margin-bottom: 0em !important; -} - -/*---------------------- - "Floated" ------------------------*/ - -.ui.grid [class*="left floated"].column { - margin-right: auto; -} -.ui.grid [class*="right floated"].column { - margin-left: auto; -} - - -/*---------------------- - Divided ------------------------*/ - -.ui.divided.grid:not([class*="vertically divided"]) > .column:not(.row), -.ui.divided.grid:not([class*="vertically divided"]) > .row > .column { - box-shadow: @dividedBorder; -} - -/* Swap from padding to margin on columns to have dividers align */ -.ui[class*="vertically divided"].grid > .column:not(.row), -.ui[class*="vertically divided"].grid > .row > .column { - margin-top: (@rowSpacing / 2); - margin-bottom: (@rowSpacing / 2); - padding-top: 0rem; - padding-bottom: 0rem; -} -.ui[class*="vertically divided"].grid > .row { - margin-top: 0em; - margin-bottom: 0em; -} - - - -/* No divider on first column on row */ -.ui.divided.grid:not([class*="vertically divided"]) > .column:first-child, -.ui.divided.grid:not([class*="vertically divided"]) > .row > .column:first-child { - box-shadow: none; -} - -/* No space on top of first row */ -.ui[class*="vertically divided"].grid > .row:first-child > .column { - margin-top: 0em; -} - - -/* Divided Row */ -.ui.grid > .divided.row > .column { - box-shadow: @dividedBorder; -} -.ui.grid > .divided.row > .column:first-child { - box-shadow: none; -} - -/* Vertically Divided */ -.ui[class*="vertically divided"].grid > .row { - position: relative; -} -.ui[class*="vertically divided"].grid > .row:before { - position: absolute; - content: ""; - top: 0em; - left: 0px; - - width: ~"calc(100% - "@gutterWidth~")"; - height: 1px; - - margin: 0% (@gutterWidth / 2); - box-shadow: @verticallyDividedBorder; -} - -/* Padded Horizontally Divided */ -[class*="horizontally padded"].ui.divided.grid, -.ui.padded.divided.grid:not(.vertically):not(.horizontally) { - width: 100%; -} - -/* First Row Vertically Divided */ -.ui[class*="vertically divided"].grid > .row:first-child:before { - box-shadow: none; -} - -/* Inverted Divided */ -.ui.inverted.divided.grid:not([class*="vertically divided"]) > .column:not(.row), -.ui.inverted.divided.grid:not([class*="vertically divided"]) > .row > .column { - box-shadow: @dividedInvertedBorder; -} -.ui.inverted.divided.grid:not([class*="vertically divided"]) > .column:not(.row):first-child, -.ui.inverted.divided.grid:not([class*="vertically divided"]) > .row > .column:first-child { - box-shadow: none; -} -.ui.inverted[class*="vertically divided"].grid > .row:before { - box-shadow: @verticallyDividedInvertedBorder; -} - -/* Relaxed */ -.ui.relaxed[class*="vertically divided"].grid > .row:before { - margin-left: (@relaxedGutterWidth / 2); - margin-right: (@relaxedGutterWidth / 2); - width: ~"calc(100% - "@relaxedGutterWidth~")"; -} -.ui[class*="very relaxed"][class*="vertically divided"].grid > .row:before { - margin-left: @veryRelaxedGutterWidth; - margin-right: @veryRelaxedGutterWidth; - width: ~"calc(100% - "@veryRelaxedGutterWidth~")"; -} - -/*---------------------- - Celled ------------------------*/ - -.ui.celled.grid { - width: 100%; - margin: @celledMargin; - box-shadow: @celledGridDivider; -} - -.ui.celled.grid > .row { - width: 100% !important; - margin: 0em; - padding: 0em; - box-shadow: @celledRowDivider; -} -.ui.celled.grid > .column:not(.row), -.ui.celled.grid > .row > .column { - box-shadow: @celledColumnDivider; -} - -.ui.celled.grid > .column:first-child, -.ui.celled.grid > .row > .column:first-child { - box-shadow: none; -} - -.ui.celled.grid > .column:not(.row), -.ui.celled.grid > .row > .column { - padding: @celledPadding; -} -.ui.relaxed.celled.grid > .column:not(.row), -.ui.relaxed.celled.grid > .row > .column { - padding: @celledRelaxedPadding; -} -.ui[class*="very relaxed"].celled.grid > .column:not(.row), -.ui[class*="very relaxed"].celled.grid > .row > .column { - padding: @celledVeryRelaxedPadding; -} - -/* Internally Celled */ -.ui[class*="internally celled"].grid { - box-shadow: none; - margin: 0em; -} -.ui[class*="internally celled"].grid > .row:first-child { - box-shadow: none; -} -.ui[class*="internally celled"].grid > .row > .column:first-child { - box-shadow: none; -} - -/*---------------------- - Vertically Aligned ------------------------*/ - -/* Top Aligned */ -.ui[class*="top aligned"].grid > .column:not(.row), -.ui[class*="top aligned"].grid > .row > .column, -.ui.grid > [class*="top aligned"].row > .column, -.ui.grid > [class*="top aligned"].column:not(.row), -.ui.grid > .row > [class*="top aligned"].column { - flex-direction: column; - vertical-align: top; - align-self: flex-start !important; -} - -/* Middle Aligned */ -.ui[class*="middle aligned"].grid > .column:not(.row), -.ui[class*="middle aligned"].grid > .row > .column, -.ui.grid > [class*="middle aligned"].row > .column, -.ui.grid > [class*="middle aligned"].column:not(.row), -.ui.grid > .row > [class*="middle aligned"].column { - flex-direction: column; - vertical-align: middle; - align-self: center !important; -} - -/* Bottom Aligned */ -.ui[class*="bottom aligned"].grid > .column:not(.row), -.ui[class*="bottom aligned"].grid > .row > .column, -.ui.grid > [class*="bottom aligned"].row > .column, -.ui.grid > [class*="bottom aligned"].column:not(.row), -.ui.grid > .row > [class*="bottom aligned"].column { - flex-direction: column; - vertical-align: bottom; - align-self: flex-end !important; -} - -/* Stretched */ -.ui.stretched.grid > .row > .column, -.ui.stretched.grid > .column, -.ui.grid > .stretched.row > .column, -.ui.grid > .stretched.column:not(.row), -.ui.grid > .row > .stretched.column { - display: inline-flex !important; - align-self: stretch; - flex-direction: column; -} - -.ui.stretched.grid > .row > .column > *, -.ui.stretched.grid > .column > *, -.ui.grid > .stretched.row > .column > *, -.ui.grid > .stretched.column:not(.row) > *, -.ui.grid > .row > .stretched.column > * { - flex-grow: 1; -} - -/*---------------------- - Horizontally Centered ------------------------*/ - -/* Left Aligned */ -.ui[class*="left aligned"].grid > .column, -.ui[class*="left aligned"].grid > .row > .column, -.ui.grid > [class*="left aligned"].row > .column, -.ui.grid > [class*="left aligned"].column.column, -.ui.grid > .row > [class*="left aligned"].column.column { - text-align: left; - align-self: inherit; -} - -/* Center Aligned */ -.ui[class*="center aligned"].grid > .column, -.ui[class*="center aligned"].grid > .row > .column, -.ui.grid > [class*="center aligned"].row > .column, -.ui.grid > [class*="center aligned"].column.column, -.ui.grid > .row > [class*="center aligned"].column.column { - text-align: center; - align-self: inherit; -} -.ui[class*="center aligned"].grid { - justify-content: center; -} - -/* Right Aligned */ -.ui[class*="right aligned"].grid > .column, -.ui[class*="right aligned"].grid > .row > .column, -.ui.grid > [class*="right aligned"].row > .column, -.ui.grid > [class*="right aligned"].column.column, -.ui.grid > .row > [class*="right aligned"].column.column { - text-align: right; - align-self: inherit; -} - -/* Justified */ -.ui.justified.grid > .column, -.ui.justified.grid > .row > .column, -.ui.grid > .justified.row > .column, -.ui.grid > .justified.column.column, -.ui.grid > .row > .justified.column.column { - text-align: justify; - hyphens: auto; -} - -/*---------------------- - Colored ------------------------*/ - -.ui.grid > .row > .red.column, -.ui.grid > .row > .orange.column, -.ui.grid > .row > .yellow.column, -.ui.grid > .row > .olive.column, -.ui.grid > .row > .green.column, -.ui.grid > .row > .teal.column, -.ui.grid > .row > .blue.column, -.ui.grid > .row > .violet.column, -.ui.grid > .row > .purple.column, -.ui.grid > .row > .pink.column, -.ui.grid > .row > .brown.column, -.ui.grid > .row > .grey.column, -.ui.grid > .row > .black.column { - margin-top: -(@rowSpacing / 2); - margin-bottom: -(@rowSpacing / 2); - padding-top: (@rowSpacing / 2); - padding-bottom: (@rowSpacing / 2); -} - -/* Red */ -.ui.grid > .red.row, -.ui.grid > .red.column, -.ui.grid > .row > .red.column { - background-color: @red !important; - color: @white; -} -/* Orange */ -.ui.grid > .orange.row, -.ui.grid > .orange.column, -.ui.grid > .row > .orange.column { - background-color: @orange !important; - color: @white; -} -/* Yellow */ -.ui.grid > .yellow.row, -.ui.grid > .yellow.column, -.ui.grid > .row > .yellow.column { - background-color: @yellow !important; - color: @white; -} -/* Olive */ -.ui.grid > .olive.row, -.ui.grid > .olive.column, -.ui.grid > .row > .olive.column { - background-color: @olive !important; - color: @white; -} -/* Green */ -.ui.grid > .green.row, -.ui.grid > .green.column, -.ui.grid > .row > .green.column { - background-color: @green !important; - color: @white; -} -/* Teal */ -.ui.grid > .teal.row, -.ui.grid > .teal.column, -.ui.grid > .row > .teal.column { - background-color: @teal !important; - color: @white; -} -/* Blue */ -.ui.grid > .blue.row, -.ui.grid > .blue.column, -.ui.grid > .row > .blue.column { - background-color: @blue !important; - color: @white; -} -/* Violet */ -.ui.grid > .violet.row, -.ui.grid > .violet.column, -.ui.grid > .row > .violet.column { - background-color: @violet !important; - color: @white; -} -/* Purple */ -.ui.grid > .purple.row, -.ui.grid > .purple.column, -.ui.grid > .row > .purple.column { - background-color: @purple !important; - color: @white; -} -/* Pink */ -.ui.grid > .pink.row, -.ui.grid > .pink.column, -.ui.grid > .row > .pink.column { - background-color: @pink !important; - color: @white; -} -/* Brown */ -.ui.grid > .brown.row, -.ui.grid > .brown.column, -.ui.grid > .row > .brown.column { - background-color: @brown !important; - color: @white; -} -/* Grey */ -.ui.grid > .grey.row, -.ui.grid > .grey.column, -.ui.grid > .row > .grey.column { - background-color: @grey !important; - color: @white; -} -/* Black */ -.ui.grid > .black.row, -.ui.grid > .black.column, -.ui.grid > .row > .black.column { - background-color: @black !important; - color: @white; -} - - -/*---------------------- - Equal Width ------------------------*/ - -.ui[class*="equal width"].grid > .column:not(.row), -.ui[class*="equal width"].grid > .row > .column, -.ui.grid > [class*="equal width"].row > .column { - display: inline-block; - flex-grow: 1; -} -.ui[class*="equal width"].grid > .wide.column, -.ui[class*="equal width"].grid > .row > .wide.column, -.ui.grid > [class*="equal width"].row > .wide.column { - flex-grow: 0; -} - - -/*---------------------- - Reverse ------------------------*/ - - -/* Mobile */ -@media only screen and (max-width: @largestMobileScreen) { - .ui[class*="mobile reversed"].grid, - .ui[class*="mobile reversed"].grid > .row, - .ui.grid > [class*="mobile reversed"].row { - flex-direction: row-reverse; - } - .ui[class*="mobile vertically reversed"].grid, - .ui.stackable[class*="mobile reversed"] { - flex-direction: column-reverse; - } - - /* Divided Reversed */ - .ui[class*="mobile reversed"].divided.grid:not([class*="vertically divided"]) > .column:first-child, - .ui[class*="mobile reversed"].divided.grid:not([class*="vertically divided"]) > .row > .column:first-child { - box-shadow: @dividedBorder; - } - .ui[class*="mobile reversed"].divided.grid:not([class*="vertically divided"]) > .column:last-child, - .ui[class*="mobile reversed"].divided.grid:not([class*="vertically divided"]) > .row > .column:last-child { - box-shadow: none; - } - /* Vertically Divided Reversed */ - .ui.grid[class*="vertically divided"][class*="mobile vertically reversed"] > .row:first-child:before { - box-shadow: @verticallyDividedBorder; - } - .ui.grid[class*="vertically divided"][class*="mobile vertically reversed"] > .row:last-child:before { - box-shadow: none; - } - /* Celled Reversed */ - .ui[class*="mobile reversed"].celled.grid > .row > .column:first-child { - box-shadow: @celledColumnDivider; - } - .ui[class*="mobile reversed"].celled.grid > .row > .column:last-child { - box-shadow: none; - } -} - -/* Tablet */ -@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) { - .ui[class*="tablet reversed"].grid, - .ui[class*="tablet reversed"].grid > .row, - .ui.grid > [class*="tablet reversed"].row { - flex-direction: row-reverse; - } - .ui[class*="tablet vertically reversed"].grid { - flex-direction: column-reverse; - } - - /* Divided Reversed */ - .ui[class*="tablet reversed"].divided.grid:not([class*="vertically divided"]) > .column:first-child, - .ui[class*="tablet reversed"].divided.grid:not([class*="vertically divided"]) > .row > .column:first-child { - box-shadow: @dividedBorder; - } - .ui[class*="tablet reversed"].divided.grid:not([class*="vertically divided"]) > .column:last-child, - .ui[class*="tablet reversed"].divided.grid:not([class*="vertically divided"]) > .row > .column:last-child { - box-shadow: none; - } - /* Vertically Divided Reversed */ - .ui.grid[class*="vertically divided"][class*="tablet vertically reversed"] > .row:first-child:before { - box-shadow: @verticallyDividedBorder; - } - .ui.grid[class*="vertically divided"][class*="tablet vertically reversed"] > .row:last-child:before { - box-shadow: none; - } - /* Celled Reversed */ - .ui[class*="tablet reversed"].celled.grid > .row > .column:first-child { - box-shadow: @celledColumnDivider; - } - .ui[class*="tablet reversed"].celled.grid > .row > .column:last-child { - box-shadow: none; - } -} - -/* Computer */ -@media only screen and (min-width: @computerBreakpoint) { - .ui[class*="computer reversed"].grid, - .ui[class*="computer reversed"].grid > .row, - .ui.grid > [class*="computer reversed"].row { - flex-direction: row-reverse; - } - .ui[class*="computer vertically reversed"].grid { - flex-direction: column-reverse; - } - - /* Divided Reversed */ - .ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"]) > .column:first-child, - .ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"]) > .row > .column:first-child { - box-shadow: @dividedBorder; - } - .ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"]) > .column:last-child, - .ui[class*="computer reversed"].divided.grid:not([class*="vertically divided"]) > .row > .column:last-child { - box-shadow: none; - } - /* Vertically Divided Reversed */ - .ui.grid[class*="vertically divided"][class*="computer vertically reversed"] > .row:first-child:before { - box-shadow: @verticallyDividedBorder; - } - .ui.grid[class*="vertically divided"][class*="computer vertically reversed"] > .row:last-child:before { - box-shadow: none; - } - /* Celled Reversed */ - .ui[class*="computer reversed"].celled.grid > .row > .column:first-child { - box-shadow: @celledColumnDivider; - } - .ui[class*="computer reversed"].celled.grid > .row > .column:last-child { - box-shadow: none; - } -} - - -/*------------------- - Doubling ---------------------*/ - -/* Tablet Only */ -@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) { - .ui.doubling.grid { - width: auto; - } - .ui.grid > .doubling.row, - .ui.doubling.grid > .row { - margin: 0em !important; - padding: 0em !important; - } - .ui.grid > .doubling.row > .column, - .ui.doubling.grid > .row > .column { - display: inline-block !important; - padding-top: (@rowSpacing / 2) !important; - padding-bottom: (@rowSpacing / 2) !important; - box-shadow: none !important; - margin: 0em; - } - .ui[class*="two column"].doubling.grid > .row > .column, - .ui[class*="two column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="two column"].doubling.row.row > .column { - width: @oneColumn !important; - } - .ui[class*="three column"].doubling.grid > .row > .column, - .ui[class*="three column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="three column"].doubling.row.row > .column { - width: @twoColumn !important; - } - .ui[class*="four column"].doubling.grid > .row > .column, - .ui[class*="four column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="four column"].doubling.row.row > .column { - width: @twoColumn !important; - } - .ui[class*="five column"].doubling.grid > .row > .column, - .ui[class*="five column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="five column"].doubling.row.row > .column { - width: @threeColumn !important; - } - .ui[class*="six column"].doubling.grid > .row > .column, - .ui[class*="six column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="six column"].doubling.row.row > .column { - width: @threeColumn !important; - } - .ui[class*="seven column"].doubling.grid > .row > .column, - .ui[class*="seven column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="seven column"].doubling.row.row > .column { - width: @threeColumn !important; - } - .ui[class*="eight column"].doubling.grid > .row > .column, - .ui[class*="eight column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="eight column"].doubling.row.row > .column { - width: @fourColumn !important; - } - .ui[class*="nine column"].doubling.grid > .row > .column, - .ui[class*="nine column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="nine column"].doubling.row.row > .column { - width: @fourColumn !important; - } - .ui[class*="ten column"].doubling.grid > .row > .column, - .ui[class*="ten column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="ten column"].doubling.row.row > .column { - width: @fiveColumn !important; - } - .ui[class*="eleven column"].doubling.grid > .row > .column, - .ui[class*="eleven column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="eleven column"].doubling.row.row > .column { - width: @fiveColumn !important; - } - .ui[class*="twelve column"].doubling.grid > .row > .column, - .ui[class*="twelve column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="twelve column"].doubling.row.row > .column { - width: @sixColumn !important; - } - .ui[class*="thirteen column"].doubling.grid > .row > .column, - .ui[class*="thirteen column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="thirteen column"].doubling.row.row > .column { - width: @sixColumn !important; - } - .ui[class*="fourteen column"].doubling.grid > .row > .column, - .ui[class*="fourteen column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="fourteen column"].doubling.row.row > .column { - width: @sevenColumn !important; - } - .ui[class*="fifteen column"].doubling.grid > .row > .column, - .ui[class*="fifteen column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="fifteen column"].doubling.row.row > .column { - width: @sevenColumn !important; - } - .ui[class*="sixteen column"].doubling.grid > .row > .column, - .ui[class*="sixteen column"].doubling.grid > .column:not(.row), - .ui.grid > [class*="sixteen column"].doubling.row.row > .column { - width: @eightColumn !important; - } -} - -/* Mobile Only */ -@media only screen and (max-width: @largestMobileScreen) { - .ui.grid > .doubling.row, - .ui.doubling.grid > .row { - margin: 0em !important; - padding: 0em !important; - } - .ui.grid > .doubling.row > .column, - .ui.doubling.grid > .row > .column { - padding-top: (@rowSpacing / 2) !important; - padding-bottom: (@rowSpacing / 2) !important; - margin: 0em !important; - box-shadow: none !important; - } - .ui[class*="two column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="two column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="two column"].doubling:not(.stackable).row.row > .column { - width: @oneColumn !important; - } - .ui[class*="three column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="three column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="three column"].doubling:not(.stackable).row.row > .column { - width: @twoColumn !important; - } - .ui[class*="four column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="four column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="four column"].doubling:not(.stackable).row.row > .column { - width: @twoColumn !important; - } - .ui[class*="five column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="five column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="five column"].doubling:not(.stackable).row.row > .column { - width: @twoColumn !important; - } - .ui[class*="six column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="six column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="six column"].doubling:not(.stackable).row.row > .column { - width: @twoColumn !important; - } - .ui[class*="seven column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="seven column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="seven column"].doubling:not(.stackable).row.row > .column { - width: @twoColumn !important; - } - .ui[class*="eight column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="eight column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="eight column"].doubling:not(.stackable).row.row > .column { - width: @twoColumn !important; - } - .ui[class*="nine column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="nine column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="nine column"].doubling:not(.stackable).row.row > .column { - width: @threeColumn !important; - } - .ui[class*="ten column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="ten column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="ten column"].doubling:not(.stackable).row.row > .column { - width: @threeColumn !important; - } - .ui[class*="eleven column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="eleven column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="eleven column"].doubling:not(.stackable).row.row > .column { - width: @threeColumn !important; - } - .ui[class*="twelve column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="twelve column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="twelve column"].doubling:not(.stackable).row.row > .column { - width: @threeColumn !important; - } - .ui[class*="thirteen column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="thirteen column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="thirteen column"].doubling:not(.stackable).row.row > .column { - width: @threeColumn !important; - } - .ui[class*="fourteen column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="fourteen column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="fourteen column"].doubling:not(.stackable).row.row > .column { - width: @fourColumn !important; - } - .ui[class*="fifteen column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="fifteen column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="fifteen column"].doubling:not(.stackable).row.row > .column { - width: @fourColumn !important; - } - .ui[class*="sixteen column"].doubling:not(.stackable).grid > .row > .column, - .ui[class*="sixteen column"].doubling:not(.stackable).grid > .column:not(.row), - .ui.grid > [class*="sixteen column"].doubling:not(.stackable).row.row > .column { - width: @fourColumn !important; - } -} - -/*------------------- - Stackable ---------------------*/ - -@media only screen and (max-width: @largestMobileScreen) { - .ui.stackable.grid { - width: auto; - margin-left: 0em !important; - margin-right: 0em !important; - } - .ui.stackable.grid > .row > .wide.column, - .ui.stackable.grid > .wide.column, - .ui.stackable.grid > .column.grid > .column, - .ui.stackable.grid > .column.row > .column, - .ui.stackable.grid > .row > .column, - .ui.stackable.grid > .column:not(.row), - .ui.grid > .stackable.stackable.row > .column { - width: 100% !important; - margin: 0em 0em !important; - box-shadow: none !important; - padding: (@stackableRowSpacing / 2) (@stackableGutter / 2) !important; - } - .ui.stackable.grid:not(.vertically) > .row { - margin: 0em; - padding: 0em; - } - - /* Coupling */ - .ui.container > .ui.stackable.grid > .column, - .ui.container > .ui.stackable.grid > .row > .column { - padding-left: 0em !important; - padding-right: 0em !important; - } - - /* Don't pad inside segment or nested grid */ - .ui.grid .ui.stackable.grid, - .ui.segment:not(.vertical) .ui.stackable.page.grid { - margin-left: -(@stackableGutter / 2) !important; - margin-right: -(@stackableGutter / 2) !important; - } - - /* Divided Stackable */ - .ui.stackable.divided.grid > .row:first-child > .column:first-child, - .ui.stackable.celled.grid > .row:first-child > .column:first-child, - .ui.stackable.divided.grid > .column:not(.row):first-child, - .ui.stackable.celled.grid > .column:not(.row):first-child { - border-top: none !important; - } - .ui.inverted.stackable.celled.grid > .column:not(.row), - .ui.inverted.stackable.divided.grid > .column:not(.row), - .ui.inverted.stackable.celled.grid > .row > .column, - .ui.inverted.stackable.divided.grid > .row > .column { - border-top: @stackableInvertedMobileBorder; - } - - .ui.stackable.celled.grid > .column:not(.row), - .ui.stackable.divided:not(.vertically).grid > .column:not(.row), - .ui.stackable.celled.grid > .row > .column, - .ui.stackable.divided:not(.vertically).grid > .row > .column { - border-top: @stackableMobileBorder; - box-shadow: none !important; - padding-top: @stackableRowSpacing !important; - padding-bottom: @stackableRowSpacing !important; - } - - .ui.stackable.celled.grid > .row { - box-shadow: none !important; - } - .ui.stackable.divided:not(.vertically).grid > .column:not(.row), - .ui.stackable.divided:not(.vertically).grid > .row > .column { - padding-left: 0em !important; - padding-right: 0em !important; - } - -} - -/*---------------------- - Only (Device) ------------------------*/ - - -/* These include arbitrary class repetitions for forced specificity */ - -/* Mobile Only Hide */ -@media only screen and (max-width: @largestMobileScreen) { - .ui[class*="tablet only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="tablet only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="tablet only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.mobile) { - display: none !important; - } - .ui[class*="computer only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="computer only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="computer only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="computer only"].column:not(.mobile) { - display: none !important; - } - .ui[class*="large screen only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="large screen only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="large screen only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) { - display: none !important; - } - .ui[class*="widescreen only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) { - display: none !important; - } -} -/* Tablet Only Hide */ -@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) { - .ui[class*="mobile only"].grid.grid.grid:not(.tablet), - .ui.grid.grid.grid > [class*="mobile only"].row:not(.tablet), - .ui.grid.grid.grid > [class*="mobile only"].column:not(.tablet), - .ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.tablet) { - display: none !important; - } - .ui[class*="computer only"].grid.grid.grid:not(.tablet), - .ui.grid.grid.grid > [class*="computer only"].row:not(.tablet), - .ui.grid.grid.grid > [class*="computer only"].column:not(.tablet), - .ui.grid.grid.grid > .row > [class*="computer only"].column:not(.tablet) { - display: none !important; - } - .ui[class*="large screen only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="large screen only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="large screen only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) { - display: none !important; - } - .ui[class*="widescreen only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) { - display: none !important; - } -} - -/* Computer Only Hide */ -@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) { - .ui[class*="mobile only"].grid.grid.grid:not(.computer), - .ui.grid.grid.grid > [class*="mobile only"].row:not(.computer), - .ui.grid.grid.grid > [class*="mobile only"].column:not(.computer), - .ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.computer) { - display: none !important; - } - .ui[class*="tablet only"].grid.grid.grid:not(.computer), - .ui.grid.grid.grid > [class*="tablet only"].row:not(.computer), - .ui.grid.grid.grid > [class*="tablet only"].column:not(.computer), - .ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.computer) { - display: none !important; - } - .ui[class*="large screen only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="large screen only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="large screen only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="large screen only"].column:not(.mobile) { - display: none !important; - } - .ui[class*="widescreen only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) { - display: none !important; - } -} - -/* Large Screen Only Hide */ -@media only screen and (min-width: @largeMonitorBreakpoint) and (max-width: @largestLargeMonitor) { - .ui[class*="mobile only"].grid.grid.grid:not(.computer), - .ui.grid.grid.grid > [class*="mobile only"].row:not(.computer), - .ui.grid.grid.grid > [class*="mobile only"].column:not(.computer), - .ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.computer) { - display: none !important; - } - .ui[class*="tablet only"].grid.grid.grid:not(.computer), - .ui.grid.grid.grid > [class*="tablet only"].row:not(.computer), - .ui.grid.grid.grid > [class*="tablet only"].column:not(.computer), - .ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.computer) { - display: none !important; - } - .ui[class*="widescreen only"].grid.grid.grid:not(.mobile), - .ui.grid.grid.grid > [class*="widescreen only"].row:not(.mobile), - .ui.grid.grid.grid > [class*="widescreen only"].column:not(.mobile), - .ui.grid.grid.grid > .row > [class*="widescreen only"].column:not(.mobile) { - display: none !important; - } -} - -/* Widescreen Only Hide */ -@media only screen and (min-width: @widescreenMonitorBreakpoint) { - .ui[class*="mobile only"].grid.grid.grid:not(.computer), - .ui.grid.grid.grid > [class*="mobile only"].row:not(.computer), - .ui.grid.grid.grid > [class*="mobile only"].column:not(.computer), - .ui.grid.grid.grid > .row > [class*="mobile only"].column:not(.computer) { - display: none !important; - } - .ui[class*="tablet only"].grid.grid.grid:not(.computer), - .ui.grid.grid.grid > [class*="tablet only"].row:not(.computer), - .ui.grid.grid.grid > [class*="tablet only"].column:not(.computer), - .ui.grid.grid.grid > .row > [class*="tablet only"].column:not(.computer) { - display: none !important; - } -} - - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/collections/menu.less b/node_modules/semantic-ui/src/definitions/collections/menu.less deleted file mode 100755 index 3285b97..0000000 --- a/node_modules/semantic-ui/src/definitions/collections/menu.less +++ /dev/null @@ -1,1965 +0,0 @@ -/* - * # Semantic - Menu - * http://github.com/semantic-org/semantic-ui/ - * - * - * Copyright 2015 Contributor - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Theme -*******************************/ - -@type : 'collection'; -@element : 'menu'; - -@import (multiple) '../../theme.config'; - -/******************************* - Standard -*******************************/ - -/*-------------- - Menu ----------------*/ - -.ui.menu { - display: flex; - margin: @margin; - font-family: @fontFamily; - background: @background; - font-weight: @fontWeight; - border: @border; - box-shadow: @boxShadow; - border-radius: @borderRadius; - min-height: @minHeight; -} - -.ui.menu:after { - content: ''; - display: block; - height: 0px; - clear: both; - visibility: hidden; -} - -.ui.menu:first-child { - margin-top: 0rem; -} -.ui.menu:last-child { - margin-bottom: 0rem; -} - - -/*-------------- - Sub-Menu ----------------*/ - -.ui.menu .menu { - margin: 0em; -} - -.ui.menu:not(.vertical) > .menu { - display: flex; -} - -/*-------------- - Item ----------------*/ - -.ui.menu:not(.vertical) .item { - display: flex; - align-items: center; -} - -.ui.menu .item { - position: relative; - vertical-align: middle; - line-height: 1; - text-decoration: none; - -webkit-tap-highlight-color: transparent; - flex: 0 0 auto; - user-select: none; - - background: @itemBackground; - padding: @itemVerticalPadding @itemHorizontalPadding; - text-transform: @itemTextTransform; - color: @itemTextColor; - font-weight: @itemFontWeight; - transition: @itemTransition; -} - -.ui.menu > .item:first-child { - border-radius: @borderRadius 0px 0px @borderRadius; -} - -/* Border */ -.ui.menu .item:before { - position: absolute; - content: ''; - top: 0%; - right: 0px; - height: 100%; - - width: @dividerSize; - background: @dividerBackground; -} - -/*-------------- - Text Content ----------------*/ - -.ui.menu .text.item > *, -.ui.menu .item > a:not(.ui), -.ui.menu .item > p:only-child { - user-select: text; - line-height: @textLineHeight; -} -.ui.menu .item > p:first-child { - margin-top: 0; -} -.ui.menu .item > p:last-child { - margin-bottom: 0; -} - -/*-------------- - Icons ----------------*/ - -.ui.menu .item > i.icon { - opacity: @iconOpacity; - float: @iconFloat; - margin: @iconMargin; -} - -/*-------------- - Button ----------------*/ - -.ui.menu:not(.vertical) .item > .button { - position: relative; - top: @buttonOffset; - margin: @buttonMargin; - padding-bottom: @buttonVerticalPadding; - padding-top: @buttonVerticalPadding; - font-size: @buttonSize; -} - -/*---------------- - Grid / Container ------------------*/ - -.ui.menu > .grid, -.ui.menu > .container { - display: flex; - align-items: inherit; - flex-direction: inherit; -} - -/*-------------- - Inputs ----------------*/ - -.ui.menu .item > .input { - width: 100%; -} -.ui.menu:not(.vertical) .item > .input { - position: relative; - top: @inputOffset; - margin: @inputVerticalMargin 0em; -} -.ui.menu .item > .input input { - font-size: @inputSize; - padding-top: @inputVerticalPadding; - padding-bottom: @inputVerticalPadding; -} - - -/*-------------- - Header ----------------*/ - -.ui.menu .header.item, -.ui.vertical.menu .header.item { - margin: 0em; - background: @headerBackground; - text-transform: @headerTextTransform; - font-weight: @headerWeight; -} - -.ui.vertical.menu .item > .header:not(.ui) { - margin: @verticalHeaderMargin; - font-size: @verticalHeaderFontSize; - font-weight: @verticalHeaderFontWeight; -} - -/*-------------- - Dropdowns ----------------*/ - - -/* Dropdown Icon */ -.ui.menu .item > i.dropdown.icon { - padding: 0em; - float: @dropdownIconFloat; - margin: 0em 0em 0em @dropdownIconDistance; -} - -/* Menu */ -.ui.menu .dropdown.item .menu { - left: 0px; - min-width: ~"calc(100% - 1px)"; - border-radius: 0em 0em @dropdownMenuBorderRadius @dropdownMenuBorderRadius; - background: @dropdownBackground; - margin: @dropdownMenuDistance 0px 0px; - box-shadow: @dropdownMenuBoxShadow; - flex-direction: column !important; -} - - -/* Menu Items */ -.ui.menu .ui.dropdown .menu > .item { - margin: 0; - text-align: left; - font-size: @dropdownItemFontSize !important; - padding: @dropdownItemPadding !important; - background: @dropdownItemBackground !important; - color: @dropdownItemColor !important; - text-transform: @dropdownItemTextTransform !important; - font-weight: @dropdownItemFontWeight !important; - box-shadow: @dropdownItemBoxShadow !important; - transition: @dropdownItemTransition !important; -} -.ui.menu .ui.dropdown .menu > .item:hover { - background: @dropdownHoveredItemBackground !important; - color: @dropdownHoveredItemColor !important; -} -.ui.menu .ui.dropdown .menu > .selected.item { - background: @dropdownSelectedItemBackground !important; - color: @dropdownSelectedItemColor !important; -} -.ui.menu .ui.dropdown .menu > .active.item { - background: @dropdownActiveItemBackground !important; - font-weight: @dropdownActiveItemFontWeight !important; - color: @dropdownActiveItemColor !important; -} - -.ui.menu .ui.dropdown.item .menu .item:not(.filtered) { - display: block; -} -.ui.menu .ui.dropdown .menu > .item .icon:not(.dropdown) { - display: inline-block; - font-size: @dropdownItemIconFontSize !important; - float: @dropdownItemIconFloat; - margin: @dropdownItemIconMargin; -} - - -/* Secondary */ -.ui.secondary.menu .dropdown.item > .menu, -.ui.text.menu .dropdown.item > .menu { - border-radius: @dropdownMenuBorderRadius; - margin-top: @secondaryDropdownMenuDistance; -} - -/* Pointing */ -.ui.menu .pointing.dropdown.item .menu { - margin-top: @pointingDropdownMenuDistance; -} - -/* Inverted */ -.ui.inverted.menu .search.dropdown.item > .search, -.ui.inverted.menu .search.dropdown.item > .text { - color: @invertedSelectionDropdownColor; -} - -/* Vertical */ -.ui.vertical.menu .dropdown.item > .icon { - float: right; - content: "\f0da"; - margin-left: 1em; -} -.ui.vertical.menu .dropdown.item .menu { - left: 100%; - min-width: 0; - margin: 0em 0em 0em @dropdownMenuDistance; - box-shadow: @dropdownVerticalMenuBoxShadow; - border-radius: 0em @dropdownMenuBorderRadius @dropdownMenuBorderRadius @dropdownMenuBorderRadius; -} -.ui.vertical.menu .dropdown.item.upward .menu { - bottom: 0; -} -.ui.vertical.menu .dropdown.item:not(.upward) .menu { - top: 0; -} -.ui.vertical.menu .active.dropdown.item { - border-top-right-radius: 0em; - border-bottom-right-radius: 0em; -} -.ui.vertical.menu .dropdown.active.item { - box-shadow: none; -} - -/* Evenly Divided */ -.ui.item.menu .dropdown .menu .item { - width: 100%; -} - -/*-------------- - Labels ----------------*/ - -.ui.menu .item > .label { - background: @labelBackground; - color: @labelTextColor; - margin-left: @labelTextMargin; - padding: @labelVerticalPadding @labelHorizontalPadding; -} -.ui.vertical.menu .item > .label { - background: @labelBackground; - color: @labelTextColor; - margin-top: @labelOffset; - margin-bottom: @labelOffset; - padding: @labelVerticalPadding @labelHorizontalPadding; -} -.ui.menu .item > .floating.label { - padding: @labelVerticalPadding @labelHorizontalPadding; -} - -/*-------------- - Images ----------------*/ - -.ui.menu .item > img:not(.ui) { - display: inline-block; - vertical-align: middle; - margin: @imageMargin; - width: @imageWidth; -} -.ui.vertical.menu .item > img:not(.ui):only-child { - display: block; - max-width: 100%; - width: @verticalImageWidth; -} - -/******************************* - Coupling -*******************************/ - -/*-------------- - Sidebar ----------------*/ - -/* Show vertical dividers below last */ - -.ui.vertical.sidebar.menu > .item:first-child:before { - display: block !important; -} -.ui.vertical.sidebar.menu > .item::before { - top: auto; - bottom: 0px; -} - -/*-------------- - Container ----------------*/ - -@media only screen and (max-width: @largestMobileScreen) { - .ui.menu > .ui.container { - width: 100% !important; - margin-left: 0em !important; - margin-right: 0em !important; - } -} -@media only screen and (min-width: @tabletBreakpoint) { - .ui.menu:not(.secondary):not(.text):not(.tabular):not(.borderless) > .container > .item:not(.right):not(.borderless):first-child { - border-left: @dividerSize solid @dividerBackground; - } -} - - -/******************************* - States -*******************************/ - -/*-------------- - Hover ----------------*/ - - -.ui.link.menu .item:hover, -.ui.menu .dropdown.item:hover, -.ui.menu .link.item:hover, -.ui.menu a.item:hover { - cursor: pointer; - background: @hoverItemBackground; - color: @hoverItemTextColor; -} - - -/*-------------- - Pressed ----------------*/ - -.ui.link.menu .item:active, -.ui.menu .link.item:active, -.ui.menu a.item:active { - background: @pressedItemBackground; - color: @pressedItemTextColor; -} - - -/*-------------- - Active ----------------*/ - -.ui.menu .active.item { - background: @activeItemBackground; - color: @activeItemTextColor; - font-weight: @activeItemFontWeight; - box-shadow: @activeItemBoxShadow; -} -.ui.menu .active.item > i.icon { - opacity: @activeIconOpacity; -} - -/*-------------- - Active Hover ----------------*/ - -.ui.menu .active.item:hover, -.ui.vertical.menu .active.item:hover { - background-color: @activeHoverItemBackground; - color: @activeHoverItemColor; -} - - -/*-------------- - Disabled ----------------*/ - -.ui.menu .item.disabled, -.ui.menu .item.disabled:hover { - cursor: default; - background-color: transparent !important; - color: @disabledTextColor; -} - - -/******************************* - Types -*******************************/ - -/*------------------ -Floated Menu / Item --------------------*/ - -/* Left Floated */ -.ui.menu:not(.vertical) .left.item, -.ui.menu:not(.vertical) .left.menu { - display: flex; - margin-right: auto !important; -} -/* Right Floated */ -.ui.menu:not(.vertical) .right.item, -.ui.menu:not(.vertical) .right.menu { - display: flex; - margin-left: auto !important; -} - -/* Swapped Borders */ -.ui.menu .right.item::before, -.ui.menu .right.menu > .item::before { - right: auto; - left: 0; -} - - -/*-------------- - Vertical ----------------*/ - -.ui.vertical.menu { - display: block; - flex-direction: column; - background: @verticalBackground; - box-shadow: @verticalBoxShadow; -} - -/*--- Item ---*/ -.ui.vertical.menu .item { - display: block; - background: @verticalItemBackground; - border-top: none; - border-right: none; -} -.ui.vertical.menu > .item:first-child { - border-radius: @borderRadius @borderRadius 0px 0px; -} -.ui.vertical.menu > .item:last-child { - border-radius: 0px 0px @borderRadius @borderRadius; -} - -/*--- Label ---*/ -.ui.vertical.menu .item > .label { - float: right; - text-align: center; -} - -/*--- Icon ---*/ -.ui.vertical.menu .item > i.icon { - width: @iconWidth; - float: @verticalIconFloat; - margin: @verticalIconMargin; -} -.ui.vertical.menu .item > .label + i.icon { - float: @labelAndIconFloat; - margin: @labelAndIconMargin; -} - - -/*--- Border ---*/ -.ui.vertical.menu .item:before { - position: absolute; - content: ''; - top: 0%; - left: 0px; - width: 100%; - height: @dividerSize; - background: @verticalDividerBackground; -} - -.ui.vertical.menu .item:first-child:before { - display: none !important; -} - - -/*--- Sub Menu ---*/ -.ui.vertical.menu .item > .menu { - margin: @subMenuMargin; -} -.ui.vertical.menu .menu .item { - background: none; - padding: @subMenuVerticalPadding @subMenuHorizontalPadding; - font-size: @subMenuFontSize; - color: @subMenuTextColor; -} -.ui.vertical.menu .item .menu a.item:hover, -.ui.vertical.menu .item .menu .link.item:hover { - color: @darkTextColor; -} -.ui.vertical.menu .menu .item:before { - display: none; -} - -/* Vertical Active */ -.ui.vertical.menu .active.item { - background: @activeItemBackground; - border-radius: 0em; - box-shadow: @verticalActiveBoxShadow; -} -.ui.vertical.menu > .active.item:first-child { - border-radius: @borderRadius @borderRadius 0em 0em; -} -.ui.vertical.menu > .active.item:last-child { - border-radius: 0em 0em @borderRadius @borderRadius; -} -.ui.vertical.menu > .active.item:only-child { - border-radius: @borderRadius; -} -.ui.vertical.menu .active.item .menu .active.item { - border-left: none; -} -.ui.vertical.menu .item .menu .active.item { - background-color: @subMenuActiveBackground; - font-weight: @subMenuActiveFontWeight; - color: @subMenuActiveTextColor; -} - - -/*-------------- - Tabular ----------------*/ - -.ui.tabular.menu { - border-radius: 0em; - box-shadow: none !important; - border: none; - background: @tabularBackground; - border-bottom: @tabularBorderWidth solid @tabularBorderColor; -} -.ui.tabular.fluid.menu { - width: @tabularFluidWidth !important; -} -.ui.tabular.menu .item { - background: transparent; - border-bottom: none; - - border-left: @tabularBorderWidth solid transparent; - border-right: @tabularBorderWidth solid transparent; - border-top: @tabularOppositeBorderWidth solid transparent; - padding: @tabularVerticalPadding @tabularHorizontalPadding; - color: @tabularTextColor; -} -.ui.tabular.menu .item:before { - display: none; -} - -/* Hover */ -.ui.tabular.menu .item:hover { - background-color: transparent; - color: @tabularHoveredTextColor; -} - -/* Active */ -.ui.tabular.menu .active.item { - background: @tabularActiveBackground; - color: @tabularActiveColor; - border-top-width: @tabularBorderWidth; - border-color: @tabularBorderColor; - font-weight: @tabularActiveWeight; - margin-bottom: -@tabularBorderWidth; - box-shadow: @tabularActiveBoxShadow; - border-radius: @tabularBorderRadius @tabularBorderRadius 0px 0px !important; -} - -/* Coupling with segment for attachment */ -.ui.tabular.menu + .attached:not(.top).segment, -.ui.tabular.menu + .attached:not(.top).segment + .attached:not(.top).segment { - border-top: none; - margin-left: 0px; - margin-top: 0px; - margin-right: 0px; - width: 100%; -} -.top.attached.segment + .ui.bottom.tabular.menu { - position: relative; - width: @tabularFluidWidth; - left: -@tabularFluidOffset; -} - -/* Bottom Vertical Tabular */ -.ui.bottom.tabular.menu { - background: @tabularBackground; - border-radius: 0em; - box-shadow: none !important; - border-bottom: none; - border-top: @tabularBorderWidth solid @tabularBorderColor; -} -.ui.bottom.tabular.menu .item { - background: none; - border-left: @tabularBorderWidth solid transparent; - border-right: @tabularBorderWidth solid transparent; - border-bottom: @tabularBorderWidth solid transparent; - border-top: none; -} -.ui.bottom.tabular.menu .active.item { - background: @tabularActiveBackground; - color: @tabularActiveColor; - border-color: @tabularBorderColor; - margin: -@tabularBorderWidth 0px 0px 0px; - border-radius: 0px 0px @tabularBorderRadius @tabularBorderRadius !important; -} - -/* Vertical Tabular (Left) */ -.ui.vertical.tabular.menu { - background: @tabularVerticalBackground; - border-radius: 0em; - box-shadow: none !important; - border-bottom: none; - border-right: @tabularBorderWidth solid @tabularBorderColor; -} -.ui.vertical.tabular.menu .item { - background: none; - border-left: @tabularBorderWidth solid transparent; - border-bottom: @tabularBorderWidth solid transparent; - border-top: @tabularBorderWidth solid transparent; - border-right: none; -} -.ui.vertical.tabular.menu .active.item { - background: @tabularActiveBackground; - color: @tabularActiveColor; - border-color: @tabularBorderColor; - margin: 0px -@tabularBorderWidth 0px 0px; - border-radius: @tabularBorderRadius 0px 0px @tabularBorderRadius !important; -} - -/* Vertical Right Tabular */ -.ui.vertical.right.tabular.menu { - background: @tabularVerticalBackground; - border-radius: 0em; - box-shadow: none !important; - border-bottom: none; - border-right: none; - border-left: @tabularBorderWidth solid @tabularBorderColor; -} -.ui.vertical.right.tabular.menu .item { - background: none; - border-right: @tabularBorderWidth solid transparent; - border-bottom: @tabularBorderWidth solid transparent; - border-top: @tabularBorderWidth solid transparent; - border-left: none; -} -.ui.vertical.right.tabular.menu .active.item { - background: @tabularActiveBackground; - color: @tabularActiveColor; - border-color: @tabularBorderColor; - margin: 0px 0px 0px -@tabularBorderWidth; - border-radius: 0px @tabularBorderRadius @tabularBorderRadius 0px !important; -} - -/* Dropdown */ -.ui.tabular.menu .active.dropdown.item { - margin-bottom: 0px; - border-left: @tabularBorderWidth solid transparent; - border-right: @tabularBorderWidth solid transparent; - border-top: @tabularOppositeBorderWidth solid transparent; - border-bottom: none; -} - - - -/*-------------- - Pagination ----------------*/ - -.ui.pagination.menu { - margin: 0em; - display: inline-flex; - vertical-align: middle; -} -.ui.pagination.menu .item:last-child { - border-radius: 0em @borderRadius @borderRadius 0em; -} -.ui.compact.menu .item:last-child { - border-radius: 0em @borderRadius @borderRadius 0em; -} -.ui.pagination.menu .item:last-child:before { - display: none; -} - -.ui.pagination.menu .item { - min-width: @paginationMinWidth; - text-align: center; -} -.ui.pagination.menu .icon.item i.icon { - vertical-align: top; -} - -/* Active */ -.ui.pagination.menu .active.item { - border-top: none; - padding-top: @itemVerticalPadding; - background-color: @paginationActiveBackground; - color: @paginationActiveTextColor; - box-shadow: none; -} - -/*-------------- - Secondary ----------------*/ - -.ui.secondary.menu { - background: @secondaryBackground; - margin-left: -@secondaryItemSpacing; - margin-right: -@secondaryItemSpacing; - border-radius: 0em; - border: none; - box-shadow: none; -} - -/* Item */ -.ui.secondary.menu .item { - align-self: center; - box-shadow: none; - border: none; - padding: @secondaryItemPadding; - margin: @secondaryItemMargin; - background: @secondaryItemBackground; - transition: @secondaryItemTransition; - border-radius: @secondaryItemBorderRadius; -} - -/* No Divider */ -.ui.secondary.menu .item:before { - display: none !important; -} - -/* Header */ -.ui.secondary.menu .header.item { - border-radius: 0em; - border-right: @secondaryHeaderBorder; - background: @secondaryHeaderBackground; -} - -/* Image */ -.ui.secondary.menu .item > img:not(.ui) { - margin: 0em; -} - -/* Hover */ -.ui.secondary.menu .dropdown.item:hover, -.ui.secondary.menu .link.item:hover, -.ui.secondary.menu a.item:hover { - background: @secondaryHoverItemBackground; - color: @secondaryHoverItemColor; -} - -/* Active */ -.ui.secondary.menu .active.item { - box-shadow: none; - background: @secondaryActiveItemBackground; - color: @secondaryActiveItemColor; - border-radius: @secondaryItemBorderRadius; -} - -/* Active Hover */ -.ui.secondary.menu .active.item:hover { - box-shadow: none; - background: @secondaryActiveHoverItemBackground; - color: @secondaryActiveHoverItemColor; -} - - -/* Inverted */ -.ui.secondary.inverted.menu .link.item, -.ui.secondary.inverted.menu a.item { - color: @secondaryInvertedColor !important; -} -.ui.secondary.inverted.menu .dropdown.item:hover, -.ui.secondary.inverted.menu .link.item:hover, -.ui.secondary.inverted.menu a.item:hover { - background: @secondaryInvertedHoverBackground; - color: @secondaryInvertedHoverColor !important; -} -.ui.secondary.inverted.menu .active.item { - background: @secondaryInvertedActiveBackground; - color: @secondaryInvertedActiveColor !important; -} - -/* Fix item margins */ -.ui.secondary.item.menu { - margin-left: 0em; - margin-right: 0em; -} -.ui.secondary.item.menu .item:last-child { - margin-right: 0em; -} -.ui.secondary.attached.menu { - box-shadow: none; -} - -/* Sub Menu */ -.ui.vertical.secondary.menu .item:not(.dropdown) > .menu { - margin: @secondaryMenuSubMenuMargin; -} -.ui.vertical.secondary.menu .item:not(.dropdown) > .menu > .item { - margin: @secondaryMenuSubMenuItemMargin; - padding: @secondaryMenuSubMenuItemPadding; -} - - -/*--------------------- - Secondary Vertical ------------------------*/ - -.ui.secondary.vertical.menu > .item { - border: none; - margin: @secondaryVerticalItemMargin; - border-radius: @secondaryVerticalItemBorderRadius !important; -} -.ui.secondary.vertical.menu > .header.item { - border-radius: 0em; -} - -/* Sub Menu */ -.ui.vertical.secondary.menu .item > .menu .item { - background-color: transparent; -} - -/* Inverted */ -.ui.secondary.inverted.menu { - background-color: transparent; -} - -/*--------------------- - Secondary Pointing ------------------------*/ - -.ui.secondary.pointing.menu { - margin-left: 0em; - margin-right: 0em; - border-bottom: @secondaryPointingBorderWidth solid @secondaryPointingBorderColor; -} - -.ui.secondary.pointing.menu .item { - border-bottom-color: transparent; - border-bottom-style: solid; - border-radius: 0em; - align-self: flex-end; - - margin: 0em 0em -@secondaryPointingBorderWidth; - padding: @secondaryPointingItemVerticalPadding @secondaryPointingItemHorizontalPadding; - border-bottom-width: @secondaryPointingBorderWidth; - transition: @secondaryItemTransition; -} - -/* Item Types */ -.ui.secondary.pointing.menu .header.item { - color: @secondaryPointingHeaderColor !important; -} -.ui.secondary.pointing.menu .text.item { - box-shadow: none !important; -} -.ui.secondary.pointing.menu .item:after { - display: none; -} - -/* Hover */ -.ui.secondary.pointing.menu .dropdown.item:hover, -.ui.secondary.pointing.menu .link.item:hover, -.ui.secondary.pointing.menu a.item:hover { - background-color: transparent; - color: @secondaryPointingHoverTextColor; -} - -/* Pressed */ -.ui.secondary.pointing.menu .dropdown.item:active, -.ui.secondary.pointing.menu .link.item:active, -.ui.secondary.pointing.menu a.item:active { - background-color: transparent; - border-color: @secondaryPointingBorderColor; -} - -/* Active */ -.ui.secondary.pointing.menu .active.item { - background-color: transparent; - box-shadow: none; - border-color: @secondaryPointingActiveBorderColor; - font-weight: @secondaryPointingActiveFontWeight; - color: @secondaryPointingActiveTextColor; -} - -/* Active Hover */ -.ui.secondary.pointing.menu .active.item:hover { - border-color: @secondaryPointingActiveHoverBorderColor; - color: @secondaryPointingActiveHoverTextColor; -} - -/* Active Dropdown */ -.ui.secondary.pointing.menu .active.dropdown.item { - border-color: @secondaryPointingActiveDropdownBorderColor; -} - -/* Vertical Pointing */ -.ui.secondary.vertical.pointing.menu { - border-bottom-width: 0px; - border-right-width: @secondaryPointingBorderWidth; - border-right-style: solid; - border-right-color: @secondaryPointingBorderColor; -} -.ui.secondary.vertical.pointing.menu .item { - border-bottom: none; - border-right-style: solid; - border-right-color: transparent; - border-radius: 0em !important; - margin: @secondaryVerticalPointingItemMargin; - border-right-width: @secondaryPointingBorderWidth; -} - -/* Vertical Active */ -.ui.secondary.vertical.pointing.menu .active.item { - border-color: @secondaryPointingActiveBorderColor; -} - -/* Inverted */ -.ui.secondary.inverted.pointing.menu { - border-color: @secondaryPointingInvertedBorderColor; -} - -.ui.secondary.inverted.pointing.menu { - border-width: @secondaryPointingBorderWidth; - border-color: @secondaryPointingBorderColor; -} -.ui.secondary.inverted.pointing.menu .item { - color: @secondaryPointingInvertedItemTextColor; -} -.ui.secondary.inverted.pointing.menu .header.item { - color: @secondaryPointingInvertedItemHeaderColor !important; -} - -/* Hover */ -.ui.secondary.inverted.pointing.menu .link.item:hover, -.ui.secondary.inverted.pointing.menu a.item:hover { - color: @secondaryPointingInvertedItemHoverTextColor; -} - - -/* Active */ -.ui.secondary.inverted.pointing.menu .active.item { - border-color: @secondaryPointingInvertedActiveBorderColor; - color: @secondaryPointingInvertedActiveColor; -} - -/*-------------- - Text Menu ----------------*/ - -.ui.text.menu { - background: none transparent; - border-radius: 0px; - box-shadow: none; - border: none; - - margin: @textMenuMargin; -} -.ui.text.menu .item { - border-radius: 0px; - box-shadow: none; - align-self: center; - margin: @textMenuItemMargin; - padding: @textMenuItemPadding; - font-weight: @textMenuItemFontWeight; - color: @textMenuItemColor; - transition: @textMenuItemTransition; -} - -/* Border */ -.ui.text.menu .item:before, -.ui.text.menu .menu .item:before { - display: none !important; -} - -/* Header */ -.ui.text.menu .header.item { - background-color: transparent; - opacity: 1; - color: @textMenuHeaderColor; - font-size: @textMenuHeaderSize; - text-transform: @textMenuHeaderTextTransform; - font-weight: @textMenuHeaderFontWeight; -} - -/* Image */ -.ui.text.menu .item > img:not(.ui) { - margin: 0em; -} - -/*--- fluid text ---*/ -.ui.text.item.menu .item { - margin: 0em; -} - -/*--- vertical text ---*/ -.ui.vertical.text.menu { - margin: @textVerticalMenuMargin; -} -.ui.vertical.text.menu:first-child { - margin-top: 0rem; -} -.ui.vertical.text.menu:last-child { - margin-bottom: 0rem; -} -.ui.vertical.text.menu .item { - margin: @textVerticalMenuItemMargin; - padding-left: 0em; - padding-right: 0em; -} -.ui.vertical.text.menu .item > i.icon { - float: @textVerticalMenuIconFloat; - margin: @iconMargin; -} -.ui.vertical.text.menu .header.item { - margin: @textVerticalMenuHeaderMargin; -} - -/* Vertical Sub Menu */ -.ui.vertical.text.menu .item:not(.dropdown) > .menu { - margin: @textMenuSubMenuMargin; -} -.ui.vertical.text.menu .item:not(.dropdown) > .menu > .item { - margin: @textMenuSubMenuItemMargin; - padding: @textMenuSubMenuItemPadding; -} - -/*--- hover ---*/ -.ui.text.menu .item:hover { - opacity: 1; - background-color: transparent; -} - -/*--- active ---*/ -.ui.text.menu .active.item { - background-color: transparent; - border: none; - box-shadow: none; - font-weight: @textMenuActiveItemFontWeight; - color: @textMenuActiveItemColor; -} - -/*--- active hover ---*/ -.ui.text.menu .active.item:hover { - background-color: transparent; -} - -/* Disable Bariations */ -.ui.text.pointing.menu .active.item:after { - box-shadow: none; -} -.ui.text.attached.menu { - box-shadow: none; -} - -/* Inverted */ -.ui.inverted.text.menu, -.ui.inverted.text.menu .item, -.ui.inverted.text.menu .item:hover, -.ui.inverted.text.menu .active.item { - background-color: transparent !important; -} - -/* Fluid */ -.ui.fluid.text.menu { - margin-left: 0em; - margin-right: 0em; -} - -/*-------------- - Icon Only ----------------*/ - -/* Vertical Menu */ -.ui.vertical.icon.menu { - display: inline-block; - width: auto; -} - -/* Item */ -.ui.icon.menu .item { - height: auto; - text-align: @iconMenuTextAlign; - color: @iconMenuItemColor; -} - -/* Icon */ -.ui.icon.menu .item > .icon:not(.dropdown) { - margin: 0; - opacity: 1; -} - -/* Icon Gylph */ -.ui.icon.menu .icon:before { - opacity: 1; -} - -/* (x) Item Icon */ -.ui.menu .icon.item > .icon { - width: auto; - margin: 0em auto; -} - -/* Vertical Icon */ -.ui.vertical.icon.menu .item > .icon:not(.dropdown) { - display: block; - opacity: 1; - margin: 0em auto; - float: none; -} - -/* Inverted */ -.ui.inverted.icon.menu .item { - color: @iconMenuInvertedItemColor; -} - -/*-------------- - Labeled Icon ----------------*/ - -/* Menu */ -.ui.labeled.icon.menu { - text-align: center; -} - -/* Item */ -.ui.labeled.icon.menu .item { - min-width: @labeledIconMinWidth; - flex-direction: column; -} - -/* Icon */ -.ui.labeled.icon.menu .item > .icon:not(.dropdown) { - height: 1em; - display: block; - font-size: @labeledIconSize !important; - margin: 0em auto @labeledIconTextMargin !important; -} - -/* Fluid */ -.ui.fluid.labeled.icon.menu > .item { - min-width: 0em; -} - - -/******************************* - Variations -*******************************/ - -/*-------------- - Stackable ----------------*/ - -@media only screen and (max-width: @largestMobileScreen) { - .ui.stackable.menu { - flex-direction: column; - } - .ui.stackable.menu .item { - width: 100% !important; - } - .ui.stackable.menu .item:before { - position: absolute; - content: ''; - top: auto; - bottom: 0px; - left: 0px; - width: 100%; - height: @dividerSize; - background: @verticalDividerBackground; - } - - .ui.stackable.menu .left.menu, - .ui.stackable.menu .left.item { - margin-right: 0 !important; - } - .ui.stackable.menu .right.menu, - .ui.stackable.menu .right.item { - margin-left: 0 !important; - } -} - -/*-------------- - Colors ----------------*/ - -/*--- Standard Colors ---*/ -.ui.menu .red.active.item, -.ui.red.menu .active.item { - border-color: @red !important; - color: @red !important; -} -.ui.menu .orange.active.item, -.ui.orange.menu .active.item { - border-color: @orange !important; - color: @orange !important; -} -.ui.menu .yellow.active.item, -.ui.yellow.menu .active.item { - border-color: @yellow !important; - color: @yellow !important; -} -.ui.menu .olive.active.item, -.ui.olive.menu .active.item { - border-color: @olive !important; - color: @olive !important; -} -.ui.menu .green.active.item, -.ui.green.menu .active.item { - border-color: @green !important; - color: @green !important; -} -.ui.menu .teal.active.item, -.ui.teal.menu .active.item { - border-color: @teal !important; - color: @teal !important; -} -.ui.menu .blue.active.item, -.ui.blue.menu .active.item { - border-color: @blue !important; - color: @blue !important; -} -.ui.menu .violet.active.item, -.ui.violet.menu .active.item { - border-color: @violet !important; - color: @violet !important; -} -.ui.menu .purple.active.item, -.ui.purple.menu .active.item { - border-color: @purple !important; - color: @purple !important; -} -.ui.menu .pink.active.item, -.ui.pink.menu .active.item { - border-color: @pink !important; - color: @pink !important; -} -.ui.menu .brown.active.item, -.ui.brown.menu .active.item { - border-color: @brown !important; - color: @brown !important; -} -.ui.menu .grey.active.item, -.ui.grey.menu .active.item { - border-color: @grey !important; - color: @grey !important; -} - - -/*-------------- - Inverted ----------------*/ - -.ui.inverted.menu { - border: @invertedBorder; - background: @invertedBackground; - box-shadow: @invertedBoxShadow; -} - -/* Menu Item */ -.ui.inverted.menu .item, -.ui.inverted.menu .item > a:not(.ui) { - background: @invertedItemBackground; - color: @invertedItemTextColor; -} -.ui.inverted.menu .item.menu { - background: @invertedSubMenuBackground; -} - -/*--- Border ---*/ -.ui.inverted.menu .item:before { - background: @invertedDividerBackground; -} -.ui.vertical.inverted.menu .item:before { - background: @invertedVerticalDividerBackground; -} - -/* Sub Menu */ -.ui.vertical.inverted.menu .menu .item, -.ui.vertical.inverted.menu .menu .item a:not(.ui) { - color: @invertedSubMenuColor; -} - -/* Header */ -.ui.inverted.menu .header.item { - margin: 0em; - background: @invertedHeaderBackground; - box-shadow: none; -} - -/* Disabled */ -.ui.inverted.menu .item.disabled, -.ui.inverted.menu .item.disabled:hover { - color: @invertedDisabledTextColor; -} - -/*--- Hover ---*/ -.ui.link.inverted.menu .item:hover, -.ui.inverted.menu .dropdown.item:hover, -.ui.inverted.menu .link.item:hover, -.ui.inverted.menu a.item:hover { - background: @invertedHoverBackground; - color: @invertedHoverColor; -} -.ui.vertical.inverted.menu .item .menu a.item:hover, -.ui.vertical.inverted.menu .item .menu .link.item:hover { - background: @invertedSubMenuBackground; - color: @invertedSubMenuHoverColor; -} - -/*--- Pressed ---*/ -.ui.inverted.menu a.item:active, -.ui.inverted.menu .link.item:active{ - background: @invertedMenuPressedBackground; - color: @invertedMenuPressedColor; -} - -/*--- Active ---*/ -.ui.inverted.menu .active.item { - background: @invertedActiveBackground; - color: @invertedActiveColor !important; -} -.ui.inverted.vertical.menu .item .menu .active.item { - background: @invertedSubMenuActiveBackground; - color: @invertedSubMenuActiveColor; -} -.ui.inverted.pointing.menu .active.item:after { - background: @invertedArrowActiveColor !important; - margin: 0em !important; - box-shadow: none !important; - border: none !important; -} - -/*--- Active Hover ---*/ -.ui.inverted.menu .active.item:hover { - background: @invertedActiveHoverBackground; - color: @invertedActiveHoverColor !important; -} -.ui.inverted.pointing.menu .active.item:hover:after { - background: @invertedArrowActiveHoverColor !important; -} - - -/*-------------- - Floated ----------------*/ - -.ui.floated.menu { - float: left; - margin: 0rem @floatedDistance 0rem 0rem; -} -.ui.floated.menu .item:last-child:before { - display: none; -} - -.ui.right.floated.menu { - float: right; - margin: 0rem 0rem 0rem @floatedDistance; -} - - -/*-------------- - Inverted ----------------*/ - -/* Red */ -.ui.inverted.menu .red.active.item, -.ui.inverted.red.menu { - background-color: @red; -} -.ui.inverted.red.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.red.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Orange */ -.ui.inverted.menu .orange.active.item, -.ui.inverted.orange.menu { - background-color: @orange; -} -.ui.inverted.orange.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.orange.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Yellow */ -.ui.inverted.menu .yellow.active.item, -.ui.inverted.yellow.menu { - background-color: @yellow; -} -.ui.inverted.yellow.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.yellow.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Olive */ -.ui.inverted.menu .olive.active.item, -.ui.inverted.olive.menu { - background-color: @olive; -} -.ui.inverted.olive.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.olive.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Green */ -.ui.inverted.menu .green.active.item, -.ui.inverted.green.menu { - background-color: @green; -} -.ui.inverted.green.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.green.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Teal */ -.ui.inverted.menu .teal.active.item, -.ui.inverted.teal.menu { - background-color: @teal; -} -.ui.inverted.teal.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.teal.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Blue */ -.ui.inverted.menu .blue.active.item, -.ui.inverted.blue.menu { - background-color: @blue; -} -.ui.inverted.blue.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.blue.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Violet */ -.ui.inverted.menu .violet.active.item, -.ui.inverted.violet.menu { - background-color: @violet; -} -.ui.inverted.violet.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.violet.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Purple */ -.ui.inverted.menu .purple.active.item, -.ui.inverted.purple.menu { - background-color: @purple; -} -.ui.inverted.purple.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.purple.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Pink */ -.ui.inverted.menu .pink.active.item, -.ui.inverted.pink.menu { - background-color: @pink; -} -.ui.inverted.pink.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.pink.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Brown */ -.ui.inverted.menu .brown.active.item, -.ui.inverted.brown.menu { - background-color: @brown; -} -.ui.inverted.brown.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.brown.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - -/* Grey */ -.ui.inverted.menu .grey.active.item, -.ui.inverted.grey.menu { - background-color: @grey; -} -.ui.inverted.grey.menu .item:before { - background-color: @invertedColoredDividerBackground; -} -.ui.inverted.grey.menu .active.item { - background-color: @invertedColoredActiveBackground !important; -} - - -/*-------------- - Fitted ----------------*/ - -.ui.fitted.menu .item, -.ui.fitted.menu .item .menu .item, -.ui.menu .fitted.item { - padding: 0em; -} -.ui.horizontally.fitted.menu .item, -.ui.horizontally.fitted.menu .item .menu .item, -.ui.menu .horizontally.fitted.item { - padding-top: @itemVerticalPadding; - padding-bottom: @itemVerticalPadding; -} -.ui.vertically.fitted.menu .item, -.ui.vertically.fitted.menu .item .menu .item, -.ui.menu .vertically.fitted.item { - padding-left: @itemHorizontalPadding; - padding-right: @itemHorizontalPadding; -} - -/*-------------- - Borderless ----------------*/ - -.ui.borderless.menu .item:before, -.ui.borderless.menu .item .menu .item:before, -.ui.menu .borderless.item:before { - background: none !important; -} - -/*------------------- - Compact ---------------------*/ - -.ui.compact.menu { - display: inline-flex; - margin: 0em; - vertical-align: middle; -} -.ui.compact.vertical.menu { - display: inline-block; -} -.ui.compact.menu .item:last-child { - border-radius: 0em @borderRadius @borderRadius 0em; -} -.ui.compact.menu .item:last-child:before { - display: none; -} -.ui.compact.vertical.menu { - width: auto !important; -} -.ui.compact.vertical.menu .item:last-child::before { - display: block; -} - -/*------------------- - Fluid ---------------------*/ - -.ui.menu.fluid, -.ui.vertical.menu.fluid { - width: 100% !important; -} - - -/*------------------- - Evenly Sized ---------------------*/ - -.ui.item.menu, -.ui.item.menu .item { - width: 100%; - padding-left: 0em !important; - padding-right: 0em !important; - margin-left: 0em !important; - margin-right: 0em !important; - text-align: center; - justify-content: center; -} - -.ui.item.menu .item:last-child:before { - display: none; -} - -.ui.menu.two.item .item { - width: 50%; -} -.ui.menu.three.item .item { - width: 33.333%; -} -.ui.menu.four.item .item { - width: 25%; -} -.ui.menu.five.item .item { - width: 20%; -} -.ui.menu.six.item .item { - width: 16.666%; -} -.ui.menu.seven.item .item { - width: 14.285%; -} -.ui.menu.eight.item .item { - width: 12.500%; -} -.ui.menu.nine.item .item { - width: 11.11%; -} -.ui.menu.ten.item .item { - width: 10.0%; -} -.ui.menu.eleven.item .item { - width: 9.09%; -} -.ui.menu.twelve.item .item { - width: 8.333%; -} - -/*-------------- - Fixed ----------------*/ - -.ui.menu.fixed { - position: fixed; - z-index: 101; - margin: 0em; - width: 100%; -} -.ui.menu.fixed, -.ui.menu.fixed .item:first-child, -.ui.menu.fixed .item:last-child { - border-radius: 0px !important; -} - -.ui.fixed.menu, -.ui[class*="top fixed"].menu { - top: 0px; - left: 0px; - right: auto; - bottom: auto; -} -.ui[class*="top fixed"].menu { - border-top: none; - border-left: none; - border-right: none; -} -.ui[class*="right fixed"].menu { - border-top: none; - border-bottom: none; - border-right: none; - top: 0px; - right: 0px; - left: auto; - bottom: auto; - width: auto; - height: 100%; -} -.ui[class*="bottom fixed"].menu { - border-bottom: none; - border-left: none; - border-right: none; - bottom: 0px; - left: 0px; - top: auto; - right: auto; -} -.ui[class*="left fixed"].menu { - border-top: none; - border-bottom: none; - border-left: none; - top: 0px; - left: 0px; - right: auto; - bottom: auto; - width: auto; - height: 100%; -} - -/* Coupling with Grid */ -.ui.fixed.menu + .ui.grid { - padding-top: @fixedPrecedingGridMargin; -} - - -/*------------------- - Pointing ---------------------*/ - -.ui.pointing.menu .item:after { - visibility: hidden; - position: absolute; - content: ''; - top: 100%; - left: 50%; - transform: translateX(-50%) translateY(-50%) rotate(45deg); - background: none; - - margin: (@arrowBorderWidth / 2) 0em 0em; - width: @arrowSize; - height: @arrowSize; - - border: none; - border-bottom: @arrowBorder; - border-right: @arrowBorder; - - z-index: @arrowZIndex; - transition: @arrowTransition; -} -.ui.vertical.pointing.menu .item:after { - position: absolute; - top: 50%; - right: 0%; - bottom: auto; - left: auto; - - transform: translateX(50%) translateY(-50%) rotate(45deg); - margin: 0em -(@arrowBorderWidth / 2) 0em 0em; - - border: none; - border-top: @arrowBorder; - border-right: @arrowBorder; -} - -/* Active */ -.ui.pointing.menu .active.item:after { - visibility: visible; -} -.ui.pointing.menu .active.dropdown.item:after { - visibility: hidden; -} - -/* Don't double up pointers */ -.ui.pointing.menu .dropdown.active.item:after, -.ui.pointing.menu .active.item .menu .active.item:after { - display: none; -} - -/* Colors */ -.ui.pointing.menu .active.item:hover:after { - background-color: @arrowHoverColor; -} -.ui.pointing.menu .active.item:after { - background-color: @arrowActiveColor; -} -.ui.pointing.menu .active.item:hover:after { - background-color: @arrowActiveHoverColor; -} - -.ui.vertical.pointing.menu .active.item:hover:after { - background-color: @arrowVerticalHoverColor; -} -.ui.vertical.pointing.menu .active.item:after { - background-color: @arrowVerticalActiveColor; -} -.ui.vertical.pointing.menu .menu .active.item:after { - background-color: @arrowVerticalSubMenuColor; -} - - - -/*-------------- - Attached ----------------*/ - -/* Middle */ -.ui.attached.menu { - top: 0px; - bottom: 0px; - border-radius: 0px; - margin: 0em @attachedHorizontalOffset; - width: @attachedWidth; - max-width: @attachedWidth; - box-shadow: @attachedBoxShadow; -} -.ui.attached + .ui.attached.menu:not(.top) { - border-top: none; -} - -/* Top */ -.ui[class*="top attached"].menu { - bottom: 0px; - margin-bottom: 0em; - top: @attachedTopOffset; - margin-top: @verticalMargin; - border-radius: @borderRadius @borderRadius 0em 0em; -} -.ui.menu[class*="top attached"]:first-child { - margin-top: 0em; -} - -/* Bottom */ -.ui[class*="bottom attached"].menu { - bottom: 0px; - margin-top: 0em; - top: @attachedBottomOffset; - margin-bottom: @verticalMargin; - box-shadow: @attachedBottomBoxShadow; - border-radius: 0em 0em @borderRadius @borderRadius; -} -.ui[class*="bottom attached"].menu:last-child { - margin-bottom: 0em; -} - -/* Attached Menu Item */ -.ui.top.attached.menu > .item:first-child { - border-radius: @borderRadius 0em 0em 0em; -} -.ui.bottom.attached.menu > .item:first-child { - border-radius: 0em 0em 0em @borderRadius; -} - -/* Tabular Attached */ -.ui.attached.menu:not(.tabular) { - border: @attachedBorder; -} -.ui.attached.inverted.menu { - border: none; -} -.ui.attached.tabular.menu { - margin-left: 0; - margin-right: 0; - width: 100%; -} - -/*-------------- - Sizes ----------------*/ - -/* Mini */ -.ui.mini.menu { - font-size: @mini; -} -.ui.mini.vertical.menu { - width: @miniWidth; -} - -/* Tiny */ -.ui.tiny.menu { - font-size: @tiny; -} -.ui.tiny.vertical.menu { - width: @tinyWidth; -} - -/* Small */ -.ui.small.menu { - font-size: @small; -} -.ui.small.vertical.menu { - width: @smallWidth; -} - -/* Medium */ -.ui.menu { - font-size: @medium; -} -.ui.vertical.menu { - width: @mediumWidth; -} - -/* Large */ -.ui.large.menu { - font-size: @large; -} -.ui.large.vertical.menu { - width: @largeWidth; -} - -/* Huge */ -.ui.huge.menu { - font-size: @huge; -} -.ui.huge.vertical.menu { - width: @hugeWidth; -} - -/* Big */ -.ui.big.menu { - font-size: @big; -} -.ui.big.vertical.menu { - width: @bigWidth; -} - -/* Massive */ -.ui.massive.menu { - font-size: @massive; -} -.ui.massive.vertical.menu { - width: @massiveWidth; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/collections/message.less b/node_modules/semantic-ui/src/definitions/collections/message.less deleted file mode 100755 index 7b75feb..0000000 --- a/node_modules/semantic-ui/src/definitions/collections/message.less +++ /dev/null @@ -1,478 +0,0 @@ -/*! - * # Semantic UI - Message - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'collection'; -@element : 'message'; - -@import (multiple) '../../theme.config'; - -/******************************* - Message -*******************************/ - -.ui.message { - position: relative; - min-height: 1em; - margin: @verticalMargin 0em; - background: @background; - padding: @padding; - line-height: @lineHeight; - color: @textColor; - transition: @transition; - border-radius: @borderRadius; - box-shadow: @boxShadow; -} - -.ui.message:first-child { - margin-top: 0em; -} -.ui.message:last-child { - margin-bottom: 0em; -} - - -/*-------------- - Content ----------------*/ - -/* Header */ -.ui.message .header { - display: @headerDisplay; - font-family: @headerFont; - font-weight: @headerFontWeight; - margin: @headerMargin; -} - -/* Default font size */ -.ui.message .header:not(.ui) { - font-size: @headerFontSize; -} - -/* Paragraph */ -.ui.message p { - opacity: @messageTextOpacity; - margin: @messageParagraphMargin 0em; -} -.ui.message p:first-child { - margin-top: 0em; -} -.ui.message p:last-child { - margin-bottom: 0em; -} -.ui.message .header + p { - margin-top: @headerParagraphDistance; -} - -/* List */ -.ui.message .list:not(.ui) { - text-align: left; - padding: 0em; - opacity: @listOpacity; - list-style-position: @listStylePosition; - margin: @listMargin 0em 0em; -} -.ui.message .list:not(.ui):first-child { - margin-top: 0em; -} -.ui.message .list:not(.ui):last-child { - margin-bottom: 0em; -} -.ui.message .list:not(.ui) li { - position: relative; - list-style-type: none; - margin: 0em 0em @listItemMargin @listItemIndent; - padding: 0em; -} -.ui.message .list:not(.ui) li:before { - position: absolute; - content: '•'; - left: -1em; - height: 100%; - vertical-align: baseline; -} -.ui.message .list:not(.ui) li:last-child { - margin-bottom: 0em; -} - - -/* Icon */ -.ui.message > .icon { - margin-right: @iconDistance; -} - -/* Close Icon */ -.ui.message > .close.icon { - cursor: pointer; - position: absolute; - margin: 0em; - top: @closeTopDistance; - right: @closeRightDistance; - opacity: @closeOpacity; - transition: @closeTransition; -} -.ui.message > .close.icon:hover { - opacity: 1; -} - -/* First / Last Element */ -.ui.message > :first-child { - margin-top: 0em; -} -.ui.message > :last-child { - margin-bottom: 0em; -} - -/******************************* - Coupling -*******************************/ - -.ui.dropdown .menu > .message { - margin: 0px -@borderWidth; -} - -/******************************* - States -*******************************/ - -/*-------------- - Visible ----------------*/ - -.ui.visible.visible.visible.visible.message { - display: block; -} - -.ui.icon.visible.visible.visible.visible.message { - display: flex; -} - -/*-------------- - Hidden ----------------*/ - -.ui.hidden.hidden.hidden.hidden.message { - display: none; -} - - -/******************************* - Variations -*******************************/ - -/*-------------- - Compact ----------------*/ - -.ui.compact.message { - display: inline-block; -} - - -/*-------------- - Attached ----------------*/ - -.ui.attached.message { - margin-bottom: @attachedYOffset; - border-radius: @borderRadius @borderRadius 0em 0em; - box-shadow: @attachedBoxShadow; - margin-left: @attachedXOffset; - margin-right: @attachedXOffset; -} -.ui.attached + .ui.attached.message:not(.top):not(.bottom) { - margin-top: @attachedYOffset; - border-radius: 0em; -} -.ui.bottom.attached.message { - margin-top: @attachedYOffset; - border-radius: 0em 0em @borderRadius @borderRadius; - box-shadow: @attachedBottomBoxShadow; -} -.ui.bottom.attached.message:not(:last-child) { - margin-bottom: @verticalMargin; -} -.ui.attached.icon.message { - width: auto; -} - - -/*-------------- - Icon ----------------*/ - -.ui.icon.message { - display: flex; - width: 100%; - align-items: center; -} -.ui.icon.message > .icon:not(.close) { - display: block; - flex: 0 0 auto; - width: auto; - line-height: 1; - vertical-align: @iconVerticalAlign; - font-size: @iconSize; - opacity: @iconOpacity; -} -.ui.icon.message > .content { - display: block; - flex: 1 1 auto; - vertical-align: @iconVerticalAlign; -} - - -.ui.icon.message .icon:not(.close) + .content { - padding-left: @iconContentDistance; -} -.ui.icon.message .circular.icon { - width: 1em; -} - -/*-------------- - Floating ----------------*/ - -.ui.floating.message { - box-shadow: @floatingBoxShadow; -} - - -/*-------------- - Colors ----------------*/ - -.ui.black.message { - background-color: @black; - color: @invertedTextColor; -} - -/*-------------- - Types ----------------*/ - -/* Positive */ -.ui.positive.message { - background-color: @positiveBackgroundColor; - color: @positiveTextColor; -} -.ui.positive.message, -.ui.attached.positive.message { - box-shadow: @positiveBoxShadow; -} -.ui.positive.message .header { - color: @positiveHeaderColor; -} - -/* Negative */ -.ui.negative.message { - background-color: @negativeBackgroundColor; - color: @negativeTextColor; -} -.ui.negative.message, -.ui.attached.negative.message { - box-shadow: @negativeBoxShadow; -} -.ui.negative.message .header { - color: @negativeHeaderColor; -} - -/* Info */ -.ui.info.message { - background-color: @infoBackgroundColor; - color: @infoTextColor; -} -.ui.info.message, -.ui.attached.info.message { - box-shadow: @infoBoxShadow; -} -.ui.info.message .header { - color: @infoHeaderColor; -} - -/* Warning */ -.ui.warning.message { - background-color: @warningBackgroundColor; - color: @warningTextColor; -} -.ui.warning.message, -.ui.attached.warning.message { - box-shadow: @warningBoxShadow; -} -.ui.warning.message .header { - color: @warningHeaderColor; -} - -/* Error */ -.ui.error.message { - background-color: @errorBackgroundColor; - color: @errorTextColor; -} -.ui.error.message, -.ui.attached.error.message { - box-shadow: @errorBoxShadow; -} -.ui.error.message .header { - color: @errorHeaderColor; -} - -/* Success */ -.ui.success.message { - background-color: @successBackgroundColor; - color: @successTextColor; -} -.ui.success.message, -.ui.attached.success.message { - box-shadow: @successBoxShadow; -} -.ui.success.message .header { - color: @successHeaderColor; -} - - -/* Colors */ -.ui.inverted.message, -.ui.black.message { - background-color: @black; - color: @invertedTextColor; -} - -.ui.red.message { - background-color: @redBackground; - color: @redTextColor; - box-shadow: @redBoxShadow; -} -.ui.red.message .header { - color: @redHeaderColor; -} - -.ui.orange.message { - background-color: @orangeBackground; - color: @orangeTextColor; - box-shadow: @orangeBoxShadow; -} -.ui.orange.message .header { - color: @orangeHeaderColor; -} - -.ui.yellow.message { - background-color: @yellowBackground; - color: @yellowTextColor; - box-shadow: @yellowBoxShadow; -} -.ui.yellow.message .header { - color: @yellowHeaderColor; -} - -.ui.olive.message { - background-color: @oliveBackground; - color: @oliveTextColor; - box-shadow: @oliveBoxShadow; -} -.ui.olive.message .header { - color: @oliveHeaderColor; -} - -.ui.green.message { - background-color: @greenBackground; - color: @greenTextColor; - box-shadow: @greenBoxShadow; -} -.ui.green.message .header { - color: @greenHeaderColor; -} - -.ui.teal.message { - background-color: @tealBackground; - color: @tealTextColor; - box-shadow: @tealBoxShadow; -} -.ui.teal.message .header { - color: @tealHeaderColor; -} - -.ui.blue.message { - background-color: @blueBackground; - color: @blueTextColor; - box-shadow: @blueBoxShadow; -} -.ui.blue.message .header { - color: @blueHeaderColor; -} - -.ui.violet.message { - background-color: @violetBackground; - color: @violetTextColor; - box-shadow: @violetBoxShadow; -} -.ui.violet.message .header { - color: @violetHeaderColor; -} - -.ui.purple.message { - background-color: @purpleBackground; - color: @purpleTextColor; - box-shadow: @purpleBoxShadow; -} -.ui.purple.message .header { - color: @purpleHeaderColor; -} - -.ui.pink.message { - background-color: @pinkBackground; - color: @pinkTextColor; - box-shadow: @pinkBoxShadow; -} -.ui.pink.message .header { - color: @pinkHeaderColor; -} - -.ui.brown.message { - background-color: @brownBackground; - color: @brownTextColor; - box-shadow: @brownBoxShadow; -} -.ui.brown.message .header { - color: @brownHeaderColor; -} - -/*-------------- - Sizes ----------------*/ - -.ui.mini.message { - font-size: @relativeMini; -} -.ui.tiny.message { - font-size: @relativeTiny; -} -.ui.small.message { - font-size: @relativeSmall; -} -.ui.message { - font-size: @relativeMedium; -} -.ui.large.message { - font-size: @relativeLarge; -} -.ui.big.message { - font-size: @relativeBig; -} -.ui.huge.message { - font-size: @relativeHuge; -} -.ui.massive.message { - font-size: @relativeMassive; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/collections/table.less b/node_modules/semantic-ui/src/definitions/collections/table.less deleted file mode 100755 index b72dbac..0000000 --- a/node_modules/semantic-ui/src/definitions/collections/table.less +++ /dev/null @@ -1,1114 +0,0 @@ -/*! - * # Semantic UI - Table - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Theme -*******************************/ - -@type : 'collection'; -@element : 'table'; - -@import (multiple) '../../theme.config'; - -/******************************* - Table -*******************************/ - -/* Prototype */ -.ui.table { - width: 100%; - background: @background; - margin: @margin; - border: @border; - box-shadow: @boxShadow; - border-radius: @borderRadius; - text-align: @textAlign; - color: @color; - border-collapse: @borderCollapse; - border-spacing: @borderSpacing; -} - -.ui.table:first-child { - margin-top: 0em; -} -.ui.table:last-child { - margin-bottom: 0em; -} - -/******************************* - Parts -*******************************/ - -/* Table Content */ -.ui.table th, -.ui.table td { - transition: @transition; -} - -/* Headers */ -.ui.table thead { - box-shadow: @headerBoxShadow; -} -.ui.table thead th { - cursor: auto; - background: @headerBackground; - text-align: @headerAlign; - color: @headerColor; - padding: @headerVerticalPadding @headerHorizontalPadding; - vertical-align: @headerVerticalAlign; - font-style: @headerFontStyle; - font-weight: @headerFontWeight; - text-transform: @headerTextTransform; - border-bottom: @headerBorder; - border-left: @headerDivider; -} - -.ui.table thead tr > th:first-child { - border-left: none; -} - -.ui.table thead tr:first-child > th:first-child { - border-radius: @borderRadius 0em 0em 0em; -} -.ui.table thead tr:first-child > th:last-child { - border-radius: 0em @borderRadius 0em 0em; -} -.ui.table thead tr:first-child > th:only-child { - border-radius: @borderRadius @borderRadius 0em 0em; -} - -/* Footer */ -.ui.table tfoot { - box-shadow: @footerBoxShadow; -} -.ui.table tfoot th { - cursor: auto; - border-top: @footerBorder; - background: @footerBackground; - text-align: @footerAlign; - color: @footerColor; - padding: @footerVerticalPadding @footerHorizontalPadding; - vertical-align: @footerVerticalAlign; - font-style: @footerFontStyle; - font-weight: @footerFontWeight; - text-transform: @footerTextTransform; -} -.ui.table tfoot tr > th:first-child { - border-left: none; -} -.ui.table tfoot tr:first-child > th:first-child { - border-radius: 0em 0em 0em @borderRadius; -} -.ui.table tfoot tr:first-child > th:last-child { - border-radius: 0em 0em @borderRadius 0em; -} -.ui.table tfoot tr:first-child > th:only-child { - border-radius: 0em 0em @borderRadius @borderRadius; -} - -/* Table Row */ -.ui.table tr td { - border-top: @rowBorder; -} -.ui.table tr:first-child td { - border-top: none; -} - -/* Table Cells */ -.ui.table td { - padding: @cellVerticalPadding @cellHorizontalPadding; - text-align: @cellTextAlign; -} - -/* Icons */ -.ui.table > .icon { - vertical-align: @iconVerticalAlign; -} -.ui.table > .icon:only-child { - margin: 0em; -} - -/* Table Segment */ -.ui.table.segment { - padding: 0em; -} -.ui.table.segment:after { - display: none; -} -.ui.table.segment.stacked:after { - display: block; -} - - -/* Responsive */ -@media only screen and (max-width : @largestMobileScreen) { - .ui.table:not(.unstackable) { - width: 100%; - } - .ui.table:not(.unstackable) tbody, - .ui.table:not(.unstackable) tr, - .ui.table:not(.unstackable) tr > th, - .ui.table:not(.unstackable) tr > td { - display: block !important; - width: auto !important; - display: block !important; - } - - .ui.table:not(.unstackable) { - padding: 0em; - } - .ui.table:not(.unstackable) thead { - display: @responsiveHeaderDisplay; - } - .ui.table:not(.unstackable) tfoot { - display: @responsiveFooterDisplay; - } - .ui.table:not(.unstackable) tr { - padding-top: @responsiveRowVerticalPadding; - padding-bottom: @responsiveRowVerticalPadding; - box-shadow: @responsiveRowBoxShadow; - } - - .ui.table:not(.unstackable) tr > th, - .ui.table:not(.unstackable) tr > td { - background: none; - border: none !important; - padding: @responsiveCellVerticalPadding @responsiveCellHorizontalPadding !important; - box-shadow: @responsiveCellBoxShadow; - } - .ui.table:not(.unstackable) th:first-child, - .ui.table:not(.unstackable) td:first-child { - font-weight: bold; - } - - /* Definition Table */ - .ui.definition.table:not(.unstackable) thead th:first-child { - box-shadow: none !important; - } -} - - -/******************************* - Coupling -*******************************/ - -/* UI Image */ -.ui.table th .image, -.ui.table th .image img, -.ui.table td .image, -.ui.table td .image img { - max-width: none; -} - - -/******************************* - Types -*******************************/ - -/*-------------- - Complex ----------------*/ - -.ui.structured.table { - border-collapse: collapse; -} -.ui.structured.table thead th { - border-left: @headerDivider; - border-right: @headerDivider; -} -.ui.structured.sortable.table thead th { - border-left: @sortableBorder; - border-right: @sortableBorder; -} -.ui.structured.basic.table th { - border-left: @basicTableHeaderDivider; - border-right: @basicTableHeaderDivider; -} -.ui.structured.celled.table tr th, -.ui.structured.celled.table tr td { - border-left: @cellBorder; - border-right: @cellBorder; -} - -/*-------------- - Definition ----------------*/ - -.ui.definition.table thead:not(.full-width) th:first-child { - pointer-events: none; - background: @definitionHeaderBackground; - font-weight: @definitionHeaderFontWeight; - color: @definitionHeaderColor; - box-shadow: -@borderWidth -@borderWidth 0px @borderWidth @definitionPageBackground; -} - -.ui.definition.table tfoot:not(.full-width) th:first-child { - pointer-events: none; - background: @definitionFooterBackground; - font-weight: @definitionFooterColor; - color: @definitionFooterFontWeight; - box-shadow: @borderWidth @borderWidth 0px @borderWidth @definitionPageBackground; -} - -/* Remove Border */ -.ui.celled.definition.table thead:not(.full-width) th:first-child { - box-shadow: 0px -@borderWidth 0px @borderWidth @definitionPageBackground; -} -.ui.celled.definition.table tfoot:not(.full-width) th:first-child { - box-shadow: 0px @borderWidth 0px @borderWidth @definitionPageBackground; -} - -/* Highlight Defining Column */ -.ui.definition.table tr td:first-child:not(.ignored), -.ui.definition.table tr td.definition { - background: @definitionColumnBackground; - font-weight: @definitionColumnFontWeight; - color: @definitionColumnColor; - text-transform: @definitionColumnTextTransform; - box-shadow: @definitionColumnBoxShadow; - text-align: @definitionColumnTextAlign; - font-size: @definitionColumnFontSize; - padding-left: @definitionColumnHorizontalPadding; - padding-right: @definitionColumnHorizontalPadding; -} - - -/* Fix 2nd Column */ -.ui.definition.table thead:not(.full-width) th:nth-child(2) { - border-left: @borderWidth solid @borderColor; -} -.ui.definition.table tfoot:not(.full-width) th:nth-child(2) { - border-left: @borderWidth solid @borderColor; -} -.ui.definition.table td:nth-child(2) { - border-left: @borderWidth solid @borderColor; -} - - -/******************************* - States -*******************************/ - -/*-------------- - Positive ----------------*/ - -.ui.table tr.positive, -.ui.table td.positive { - box-shadow: @positiveBoxShadow; -} -.ui.table tr.positive, -.ui.table td.positive { - background: @positiveBackgroundColor !important; - color: @positiveColor !important; -} - -/*-------------- - Negative ----------------*/ - -.ui.table tr.negative, -.ui.table td.negative { - box-shadow: @negativeBoxShadow; -} -.ui.table tr.negative, -.ui.table td.negative { - background: @negativeBackgroundColor !important; - color: @negativeColor !important; -} - -/*-------------- - Error ----------------*/ - -.ui.table tr.error, -.ui.table td.error { - box-shadow: @errorBoxShadow; -} -.ui.table tr.error, -.ui.table td.error { - background: @errorBackgroundColor !important; - color: @errorColor !important; -} -/*-------------- - Warning ----------------*/ - -.ui.table tr.warning, -.ui.table td.warning { - box-shadow: @warningBoxShadow; -} -.ui.table tr.warning, -.ui.table td.warning { - background: @warningBackgroundColor !important; - color: @warningColor !important; -} - -/*-------------- - Active ----------------*/ - -.ui.table tr.active, -.ui.table td.active { - box-shadow: @activeBoxShadow; -} -.ui.table tr.active, -.ui.table td.active { - background: @activeBackgroundColor !important; - color: @activeColor !important; -} - - - -/*-------------- - Disabled ----------------*/ - -.ui.table tr.disabled td, -.ui.table tr td.disabled, -.ui.table tr.disabled:hover, -.ui.table tr:hover td.disabled { - pointer-events: none; - color: @disabledTextColor; -} - -/******************************* - Variations -*******************************/ - -/*-------------- - Stackable ----------------*/ - -@media only screen and (max-width : @largestTabletScreen) { - - .ui[class*="tablet stackable"].table, - .ui[class*="tablet stackable"].table tbody, - .ui[class*="tablet stackable"].table tr, - .ui[class*="tablet stackable"].table tr > th, - .ui[class*="tablet stackable"].table tr > td { - display: block !important; - width: 100% !important; - display: block !important; - } - - .ui[class*="tablet stackable"].table { - padding: 0em; - } - .ui[class*="tablet stackable"].table thead { - display: @responsiveHeaderDisplay; - } - .ui[class*="tablet stackable"].table tfoot { - display: @responsiveFooterDisplay; - } - .ui[class*="tablet stackable"].table tr { - padding-top: @responsiveRowVerticalPadding; - padding-bottom: @responsiveRowVerticalPadding; - box-shadow: @responsiveRowBoxShadow; - } - .ui[class*="tablet stackable"].table tr > th, - .ui[class*="tablet stackable"].table tr > td { - background: none; - border: none !important; - padding: @responsiveCellVerticalPadding @responsiveCellHorizontalPadding; - box-shadow: @responsiveCellBoxShadow; - } - - /* Definition Table */ - .ui.definition[class*="tablet stackable"].table thead th:first-child { - box-shadow: none !important; - } -} - -/*-------------- - Text Alignment ----------------*/ - -.ui.table[class*="left aligned"], -.ui.table [class*="left aligned"] { - text-align: left; -} -.ui.table[class*="center aligned"], -.ui.table [class*="center aligned"] { - text-align: center; -} -.ui.table[class*="right aligned"], -.ui.table [class*="right aligned"] { - text-align: right; -} - -/*------------------ - Vertical Alignment -------------------*/ - -.ui.table[class*="top aligned"], -.ui.table [class*="top aligned"] { - vertical-align: top; -} -.ui.table[class*="middle aligned"], -.ui.table [class*="middle aligned"] { - vertical-align: middle; -} -.ui.table[class*="bottom aligned"], -.ui.table [class*="bottom aligned"] { - vertical-align: bottom; -} - -/*-------------- - Collapsing ----------------*/ - -.ui.table th.collapsing, -.ui.table td.collapsing { - width: 1px; - white-space: nowrap; -} - -/*-------------- - Fixed ----------------*/ - -.ui.fixed.table { - table-layout: fixed; -} - -.ui.fixed.table th, -.ui.fixed.table td { - overflow: hidden; - text-overflow: ellipsis; -} - - -/*-------------- - Selectable ----------------*/ - -.ui.selectable.table tbody tr:hover, -.ui.table tbody tr td.selectable:hover { - background: @selectableBackground !important; - color: @selectableTextColor !important; -} -.ui.selectable.inverted.table tbody tr:hover, -.ui.inverted.table tbody tr td.selectable:hover { - background: @selectableInvertedBackground !important; - color: @selectableInvertedTextColor !important; -} - -/* Selectable Cell Link */ -.ui.table tbody tr td.selectable { - padding: 0em; -} -.ui.table tbody tr td.selectable > a:not(.ui) { - display: block; - color: inherit; - padding: @cellVerticalPadding @cellHorizontalPadding; -} - -/* Other States */ -.ui.selectable.table tr.error:hover, -.ui.table tr td.selectable.error:hover, -.ui.selectable.table tr:hover td.error { - background: @errorBackgroundHover !important; - color: @errorColorHover !important; -} -.ui.selectable.table tr.warning:hover, -.ui.table tr td.selectable.warning:hover, -.ui.selectable.table tr:hover td.warning { - background: @warningBackgroundHover !important; - color: @warningColorHover !important; -} -.ui.selectable.table tr.active:hover, -.ui.table tr td.selectable.active:hover, -.ui.selectable.table tr:hover td.active { - background: @activeBackgroundColor !important; - color: @activeColor !important; -} -.ui.selectable.table tr.positive:hover, -.ui.table tr td.selectable.positive:hover, -.ui.selectable.table tr:hover td.positive { - background: @positiveBackgroundHover !important; - color: @positiveColorHover !important; -} -.ui.selectable.table tr.negative:hover, -.ui.table tr td.selectable.negative:hover, -.ui.selectable.table tr:hover td.negative { - background: @negativeBackgroundHover !important; - color: @negativeColorHover !important; -} - - - -/*------------------- - Attached ---------------------*/ - -/* Middle */ -.ui.attached.table { - top: 0px; - bottom: 0px; - border-radius: 0px; - margin: 0em @attachedHorizontalOffset; - width: @attachedWidth; - max-width: @attachedWidth; - box-shadow: @attachedBoxShadow; - border: @attachedBorder; -} -.ui.attached + .ui.attached.table:not(.top) { - border-top: none; -} - -/* Top */ -.ui[class*="top attached"].table { - bottom: 0px; - margin-bottom: 0em; - top: @attachedTopOffset; - margin-top: @verticalMargin; - border-radius: @borderRadius @borderRadius 0em 0em; -} -.ui.table[class*="top attached"]:first-child { - margin-top: 0em; -} - -/* Bottom */ -.ui[class*="bottom attached"].table { - bottom: 0px; - margin-top: 0em; - top: @attachedBottomOffset; - margin-bottom: @verticalMargin; - box-shadow: @attachedBottomBoxShadow; - border-radius: 0em 0em @borderRadius @borderRadius; -} -.ui[class*="bottom attached"].table:last-child { - margin-bottom: 0em; -} - -/*-------------- - Striped ----------------*/ - -/* Table Striping */ -.ui.striped.table > tr:nth-child(2n), -.ui.striped.table tbody tr:nth-child(2n) { - background-color: @stripedBackground; -} - -/* Stripes */ -.ui.inverted.striped.table > tr:nth-child(2n), -.ui.inverted.striped.table tbody tr:nth-child(2n) { - background-color: @invertedStripedBackground; -} - -/* Allow striped active hover */ -.ui.striped.selectable.selectable.selectable.table tbody tr.active:hover { - background: @activeBackgroundHover !important; - color: @activeColorHover !important; -} - -/*-------------- - Single Line ----------------*/ - -.ui.table[class*="single line"], -.ui.table [class*="single line"] { - white-space: nowrap; -} -.ui.table[class*="single line"], -.ui.table [class*="single line"] { - white-space: nowrap; -} - -/*------------------- - Colors ---------------------*/ - -/* Red */ -.ui.red.table { - border-top: @coloredBorderSize solid @red; -} -.ui.inverted.red.table { - background-color: @red !important; - color: @white !important; -} - -/* Orange */ -.ui.orange.table { - border-top: @coloredBorderSize solid @orange; -} -.ui.inverted.orange.table { - background-color: @orange !important; - color: @white !important; -} - -/* Yellow */ -.ui.yellow.table { - border-top: @coloredBorderSize solid @yellow; -} -.ui.inverted.yellow.table { - background-color: @yellow !important; - color: @white !important; -} - -/* Olive */ -.ui.olive.table { - border-top: @coloredBorderSize solid @olive; -} -.ui.inverted.olive.table { - background-color: @olive !important; - color: @white !important; -} - -/* Green */ -.ui.green.table { - border-top: @coloredBorderSize solid @green; -} -.ui.inverted.green.table { - background-color: @green !important; - color: @white !important; -} - -/* Teal */ -.ui.teal.table { - border-top: @coloredBorderSize solid @teal; -} -.ui.inverted.teal.table { - background-color: @teal !important; - color: @white !important; -} - -/* Blue */ -.ui.blue.table { - border-top: @coloredBorderSize solid @blue; -} -.ui.inverted.blue.table { - background-color: @blue !important; - color: @white !important; -} - -/* Violet */ -.ui.violet.table { - border-top: @coloredBorderSize solid @violet; -} -.ui.inverted.violet.table { - background-color: @violet !important; - color: @white !important; -} - -/* Purple */ -.ui.purple.table { - border-top: @coloredBorderSize solid @purple; -} -.ui.inverted.purple.table { - background-color: @purple !important; - color: @white !important; -} - -/* Pink */ -.ui.pink.table { - border-top: @coloredBorderSize solid @pink; -} -.ui.inverted.pink.table { - background-color: @pink !important; - color: @white !important; -} - -/* Brown */ -.ui.brown.table { - border-top: @coloredBorderSize solid @brown; -} -.ui.inverted.brown.table { - background-color: @brown !important; - color: @white !important; -} - -/* Grey */ -.ui.grey.table { - border-top: @coloredBorderSize solid @grey; -} -.ui.inverted.grey.table { - background-color: @grey !important; - color: @white !important; -} - -/* Black */ -.ui.black.table { - border-top: @coloredBorderSize solid @black; -} -.ui.inverted.black.table { - background-color: @black !important; - color: @white !important; -} - - -/*-------------- - Column Count ----------------*/ - -/* Grid Based */ -.ui.one.column.table td { - width: @oneColumn; -} -.ui.two.column.table td { - width: @twoColumn; -} -.ui.three.column.table td { - width: @threeColumn; -} -.ui.four.column.table td { - width: @fourColumn; -} -.ui.five.column.table td { - width: @fiveColumn; -} -.ui.six.column.table td { - width: @sixColumn; -} -.ui.seven.column.table td { - width: @sevenColumn; -} -.ui.eight.column.table td { - width: @eightColumn; -} -.ui.nine.column.table td { - width: @nineColumn; -} -.ui.ten.column.table td { - width: @tenColumn; -} -.ui.eleven.column.table td { - width: @elevenColumn; -} -.ui.twelve.column.table td { - width: @twelveColumn; -} -.ui.thirteen.column.table td { - width: @thirteenColumn; -} -.ui.fourteen.column.table td { - width: @fourteenColumn; -} -.ui.fifteen.column.table td { - width: @fifteenColumn; -} -.ui.sixteen.column.table td { - width: @sixteenColumn; -} - -/* Column Width */ -.ui.table th.one.wide, -.ui.table td.one.wide { - width: @oneWide; -} -.ui.table th.two.wide, -.ui.table td.two.wide { - width: @twoWide; -} -.ui.table th.three.wide, -.ui.table td.three.wide { - width: @threeWide; -} -.ui.table th.four.wide, -.ui.table td.four.wide { - width: @fourWide; -} -.ui.table th.five.wide, -.ui.table td.five.wide { - width: @fiveWide; -} -.ui.table th.six.wide, -.ui.table td.six.wide { - width: @sixWide; -} -.ui.table th.seven.wide, -.ui.table td.seven.wide { - width: @sevenWide; -} -.ui.table th.eight.wide, -.ui.table td.eight.wide { - width: @eightWide; -} -.ui.table th.nine.wide, -.ui.table td.nine.wide { - width: @nineWide; -} -.ui.table th.ten.wide, -.ui.table td.ten.wide { - width: @tenWide; -} -.ui.table th.eleven.wide, -.ui.table td.eleven.wide { - width: @elevenWide; -} -.ui.table th.twelve.wide, -.ui.table td.twelve.wide { - width: @twelveWide; -} -.ui.table th.thirteen.wide, -.ui.table td.thirteen.wide { - width: @thirteenWide; -} -.ui.table th.fourteen.wide, -.ui.table td.fourteen.wide { - width: @fourteenWide; -} -.ui.table th.fifteen.wide, -.ui.table td.fifteen.wide { - width: @fifteenWide; -} -.ui.table th.sixteen.wide, -.ui.table td.sixteen.wide { - width: @sixteenWide; -} - -/*-------------- - Sortable ----------------*/ - -.ui.sortable.table thead th { - cursor: pointer; - white-space: nowrap; - border-left: @sortableBorder; - color: @sortableColor; -} -.ui.sortable.table thead th:first-child { - border-left: none; -} -.ui.sortable.table thead th.sorted, -.ui.sortable.table thead th.sorted:hover { - user-select: none; -} - -.ui.sortable.table thead th:after { - display: none; - font-style: normal; - font-weight: normal; - text-decoration: inherit; - content: ''; - height: 1em; - width: @sortableIconWidth; - opacity: @sortableIconOpacity; - margin: 0em 0em 0em @sortableIconDistance; - font-family: @sortableIconFont; -} -.ui.sortable.table thead th.ascending:after { - content: @sortableIconAscending; -} -.ui.sortable.table thead th.descending:after { - content: @sortableIconDescending; -} - -/* Hover */ -.ui.sortable.table th.disabled:hover { - cursor: auto; - color: @sortableDisabledColor; -} -.ui.sortable.table thead th:hover { - background: @sortableHoverBackground; - color: @sortableHoverColor; -} - -/* Sorted */ -.ui.sortable.table thead th.sorted { - background: @sortableActiveBackground; - color: @sortableActiveColor; -} -.ui.sortable.table thead th.sorted:after { - display: inline-block; -} - -/* Sorted Hover */ -.ui.sortable.table thead th.sorted:hover { - background: @sortableActiveHoverBackground; - color: @sortableActiveHoverColor; -} - -/* Inverted */ -.ui.inverted.sortable.table thead th.sorted { - background: @sortableInvertedActiveBackground; - color: @sortableInvertedActiveColor; -} -.ui.inverted.sortable.table thead th:hover { - background: @sortableInvertedHoverBackground; - color: @sortableInvertedHoverColor; -} -.ui.inverted.sortable.table thead th { - border-left-color: @sortableInvertedBorderColor; - border-right-color: @sortableInvertedBorderColor; -} - - -/*-------------- - Inverted ----------------*/ - -/* Text Color */ -.ui.inverted.table { - background: @invertedBackground; - color: @invertedCellColor; - border: @invertedBorder; -} -.ui.inverted.table th { - background-color: @invertedHeaderBackground; - border-color: @invertedHeaderBorderColor !important; - color: @invertedHeaderColor; -} -.ui.inverted.table tr td { - border-color: @invertedCellBorderColor !important; -} - -.ui.inverted.table tr.disabled td, -.ui.inverted.table tr td.disabled, -.ui.inverted.table tr.disabled:hover td, -.ui.inverted.table tr:hover td.disabled { - pointer-events: none; - color: @invertedDisabledTextColor; -} - -/* Definition */ -.ui.inverted.definition.table tfoot:not(.full-width) th:first-child, -.ui.inverted.definition.table thead:not(.full-width) th:first-child { - background: @definitionPageBackground; -} -.ui.inverted.definition.table tr td:first-child { - background: @invertedDefinitionColumnBackground; - color: @invertedDefinitionColumnColor; -} - -/*-------------- - Collapsing ----------------*/ - -.ui.collapsing.table { - width: auto; -} - -/*-------------- - Basic ----------------*/ - -.ui.basic.table { - background: @basicTableBackground; - border: @basicTableBorder; - box-shadow: @basicBoxShadow; -} -.ui.basic.table thead, -.ui.basic.table tfoot { - box-shadow: none; -} -.ui.basic.table th { - background: @basicTableHeaderBackground; - border-left: @basicTableHeaderDivider; -} -.ui.basic.table tbody tr { - border-bottom: @basicTableCellBorder; -} -.ui.basic.table td { - background: @basicTableCellBackground; -} -.ui.basic.striped.table tbody tr:nth-child(2n) { - background-color: @basicTableStripedBackground !important; -} - -/* Very Basic */ -.ui[class*="very basic"].table { - border: none; -} -.ui[class*="very basic"].table:not(.sortable):not(.striped) th, -.ui[class*="very basic"].table:not(.sortable):not(.striped) td { - padding: @basicTableCellPadding; -} -.ui[class*="very basic"].table:not(.sortable):not(.striped) th:first-child, -.ui[class*="very basic"].table:not(.sortable):not(.striped) td:first-child { - padding-left: 0em; -} -.ui[class*="very basic"].table:not(.sortable):not(.striped) th:last-child, -.ui[class*="very basic"].table:not(.sortable):not(.striped) td:last-child { - padding-right: 0em; -} -.ui[class*="very basic"].table:not(.sortable):not(.striped) thead tr:first-child th { - padding-top: 0em; -} - -/*-------------- - Celled ----------------*/ - -.ui.celled.table tr th, -.ui.celled.table tr td { - border-left: @cellBorder; -} -.ui.celled.table tr th:first-child, -.ui.celled.table tr td:first-child { - border-left: none; -} - -/*-------------- - Padded ----------------*/ - -.ui.padded.table th { - padding-left: @paddedHorizontalPadding; - padding-right: @paddedHorizontalPadding; -} -.ui.padded.table th, -.ui.padded.table td { - padding: @paddedVerticalPadding @paddedHorizontalPadding; -} - -/* Very */ -.ui[class*="very padded"].table th { - padding-left: @veryPaddedHorizontalPadding; - padding-right: @veryPaddedHorizontalPadding; -} -.ui[class*="very padded"].table td { - padding: @veryPaddedVerticalPadding @veryPaddedHorizontalPadding; -} - -/*-------------- - Compact ----------------*/ - -.ui.compact.table th { - padding-left: @compactHorizontalPadding; - padding-right: @compactHorizontalPadding; -} -.ui.compact.table td { - padding: @compactVerticalPadding @compactHorizontalPadding; -} - -/* Very */ -.ui[class*="very compact"].table th { - padding-left: @veryCompactHorizontalPadding; - padding-right: @veryCompactHorizontalPadding; -} -.ui[class*="very compact"].table td { - padding: @veryCompactVerticalPadding @veryCompactHorizontalPadding; -} - -/*-------------- - Sizes ----------------*/ - -/* Small */ -.ui.small.table { - font-size: @small; -} - -/* Standard */ -.ui.table { - font-size: @medium; -} - -/* Large */ -.ui.large.table { - font-size: @large; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/button.less b/node_modules/semantic-ui/src/definitions/elements/button.less deleted file mode 100755 index 67e1a39..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/button.less +++ /dev/null @@ -1,3427 +0,0 @@ -/*! - * # Semantic UI - Button - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'button'; - -@import (multiple) '../../theme.config'; - -/******************************* - Button -*******************************/ - -.ui.button { - cursor: pointer; - display: inline-block; - - min-height: 1em; - - outline: none; - border: none; - vertical-align: @verticalAlign; - background: @background; - color: @textColor; - - font-family: @fontFamily; - - margin: 0em @horizontalMargin @verticalMargin 0em; - padding: @verticalPadding @horizontalPadding (@verticalPadding + @shadowOffset); - - text-transform: @textTransform; - text-shadow: @textShadow; - font-weight: @fontWeight; - line-height: @lineHeight; - font-style: normal; - text-align: center; - text-decoration: none; - - border-radius: @borderRadius; - box-shadow: @boxShadow; - - user-select: none; - transition: @transition; - will-change: @willChange; - - -webkit-tap-highlight-color: @tapColor; -} - - -/******************************* - States -*******************************/ - -/*-------------- - Hover ----------------*/ - -.ui.button:hover { - background-color: @hoverBackgroundColor; - background-image: @hoverBackgroundImage; - box-shadow: @hoverBoxShadow; - color: @hoverColor; -} - -.ui.button:hover .icon { - opacity: @iconHoverOpacity; -} - -/*-------------- - Focus ----------------*/ - -.ui.button:focus { - background-color: @focusBackgroundColor; - color: @focusColor; - background-image: @focusBackgroundImage !important; - box-shadow: @focusBoxShadow !important; -} - -.ui.button:focus .icon { - opacity: @iconFocusOpacity; -} - -/*-------------- - Down ----------------*/ - -.ui.button:active, -.ui.active.button:active { - background-color: @downBackgroundColor; - background-image: @downBackgroundImage; - color: @downColor; - box-shadow: @downBoxShadow; -} - -/*-------------- - Active ----------------*/ - -.ui.active.button { - background-color: @activeBackgroundColor; - background-image: @activeBackgroundImage; - box-shadow: @activeBoxShadow; - color: @activeColor; -} -.ui.active.button:hover { - background-color: @activeHoverBackgroundColor; - background-image: @activeHoverBackgroundImage; - color: @activeHoverColor; -} -.ui.active.button:active { - background-color: @activeBackgroundColor; - background-image: @activeBackgroundImage; -} - - -/*-------------- - Loading ----------------*/ - -/* Specificity hack */ -.ui.loading.loading.loading.loading.loading.loading.button { - position: relative; - cursor: default; - text-shadow: none !important; - color: transparent !important; - opacity: @loadingOpacity; - pointer-events: @loadingPointerEvents; - transition: @loadingTransition; -} -.ui.loading.button:before { - position: absolute; - content: ''; - top: 50%; - left: 50%; - - margin: @loaderMargin; - width: @loaderSize; - height: @loaderSize; - - border-radius: @circularRadius; - border: @loaderLineWidth solid @invertedLoaderFillColor; -} -.ui.loading.button:after { - position: absolute; - content: ''; - top: 50%; - left: 50%; - - margin: @loaderMargin; - width: @loaderSize; - height: @loaderSize; - - animation: button-spin @loaderSpeed linear; - animation-iteration-count: infinite; - - border-radius: @circularRadius; - - border-color: @invertedLoaderLineColor transparent transparent; - border-style: solid; - border-width: @loaderLineWidth; - - box-shadow: 0px 0px 0px 1px transparent; -} -.ui.labeled.icon.loading.button .icon { - background-color: transparent; - box-shadow: none; -} - -@keyframes button-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - -.ui.basic.loading.button:not(.inverted):before { - border-color: @loaderFillColor; -} -.ui.basic.loading.button:not(.inverted):after { - border-top-color: @loaderLineColor; -} - -/*------------------- - Disabled ---------------------*/ - -.ui.buttons .disabled.button, -.ui.disabled.button, -.ui.button:disabled, -.ui.disabled.button:hover, -.ui.disabled.active.button { - cursor: default; - opacity: @disabledOpacity !important; - background-image: none !important; - box-shadow: none !important; - pointer-events: none !important; -} - -/* Basic Group With Disabled */ -.ui.basic.buttons .ui.disabled.button { - border-color: @disabledBorderColor; -} - -/******************************* - Types -*******************************/ - -/*------------------- - Animated ---------------------*/ - -.ui.animated.button { - position: relative; - overflow: hidden; - padding-right: 0em !important; - vertical-align: @animatedVerticalAlign; - z-index: @animatedZIndex; -} - -.ui.animated.button .content { - will-change: transform, opacity; -} -.ui.animated.button .visible.content { - position: relative; - margin-right: @horizontalPadding; -} -.ui.animated.button .hidden.content { - position: absolute; - width: 100%; -} - -/* Horizontal */ -.ui.animated.button .visible.content, -.ui.animated.button .hidden.content { - transition: right @animationDuration @animationEasing 0s; -} -.ui.animated.button .visible.content { - left: auto; - right: 0%; -} -.ui.animated.button .hidden.content { - top: 50%; - left: auto; - right: -100%; - margin-top: -(@lineHeight / 2); -} -.ui.animated.button:focus .visible.content, -.ui.animated.button:hover .visible.content { - left: auto; - right: 200%; -} -.ui.animated.button:focus .hidden.content, -.ui.animated.button:hover .hidden.content { - left: auto; - right: 0%; -} - -/* Vertical */ -.ui.vertical.animated.button .visible.content, -.ui.vertical.animated.button .hidden.content { - transition: top @animationDuration @animationEasing, transform @animationDuration @animationEasing; -} -.ui.vertical.animated.button .visible.content { - transform: translateY(0%); - right: auto; -} -.ui.vertical.animated.button .hidden.content { - top: -50%; - left: 0%; - right: auto; -} -.ui.vertical.animated.button:focus .visible.content, -.ui.vertical.animated.button:hover .visible.content { - transform: translateY(200%); - right: auto; -} -.ui.vertical.animated.button:focus .hidden.content, -.ui.vertical.animated.button:hover .hidden.content { - top: 50%; - right: auto; -} - -/* Fade */ -.ui.fade.animated.button .visible.content, -.ui.fade.animated.button .hidden.content { - transition: opacity @animationDuration @animationEasing, transform @animationDuration @animationEasing; -} -.ui.fade.animated.button .visible.content { - left: auto; - right: auto; - opacity: 1; - transform: scale(1); -} -.ui.fade.animated.button .hidden.content { - opacity: 0; - left: 0%; - right: auto; - transform: scale(@fadeScaleHigh); -} -.ui.fade.animated.button:focus .visible.content, -.ui.fade.animated.button:hover .visible.content { - left: auto; - right: auto; - opacity: 0; - transform: scale(@fadeScaleLow); -} -.ui.fade.animated.button:focus .hidden.content, -.ui.fade.animated.button:hover .hidden.content { - left: 0%; - right: auto; - opacity: 1; - transform: scale(1); -} - -/*------------------- - Inverted ---------------------*/ - -.ui.inverted.button { - box-shadow: 0px 0px 0px @invertedBorderSize @white inset !important; - background: transparent none; - color: @white; - text-shadow: none !important; -} - -/* Group */ -.ui.inverted.buttons .button { - margin: @invertedGroupButtonOffset; -} -.ui.inverted.buttons .button:first-child { - margin-left: 0em; -} -.ui.inverted.vertical.buttons .button { - margin: @invertedVerticalGroupButtonOffset; -} -.ui.inverted.vertical.buttons .button:first-child { - margin-top: 0em; -} - -/* States */ - -/* Hover */ -.ui.inverted.button:hover { - background: @white; - box-shadow: 0px 0px 0px @invertedBorderSize @white inset !important; - color: @hoverColor; -} - -/* Active / Focus */ -.ui.inverted.button:focus, -.ui.inverted.button.active { - background: @white; - box-shadow: 0px 0px 0px @invertedBorderSize @white inset !important; - color: @focusColor; -} - -/* Active Focus */ -.ui.inverted.button.active:focus { - background: @midWhite; - box-shadow: 0px 0px 0px @invertedBorderSize @midWhite inset !important; - color: @focusColor; -} - - -/*------------------- - Labeled Button ---------------------*/ - -.ui.labeled.button:not(.icon) { - display: inline-flex; - flex-direction: row; - background: none !important; - padding: 0px !important; - border: none !important; - box-shadow: none !important; -} - -.ui.labeled.button > .button { - margin: 0px; -} -.ui.labeled.button > .label { - display: flex; - align-items: @labeledLabelAlign; - margin: 0px 0px 0px @labeledLabelBorderOffset !important; - font-size: @labeledLabelFontSize; - padding: @labeledLabelPadding; - font-size: @labeledLabelFontSize; - border-color: @labeledLabelBorderColor; -} - -/* Tag */ -.ui.labeled.button > .tag.label:before { - width: @labeledTagLabelSize; - height: @labeledTagLabelSize; -} - -/* Right */ -.ui.labeled.button:not([class*="left labeled"]) > .button { - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; -} -.ui.labeled.button:not([class*="left labeled"]) > .label { - border-top-left-radius: 0px; - border-bottom-left-radius: 0px; -} - -/* Left Side */ -.ui[class*="left labeled"].button > .button { - border-top-left-radius: 0px; - border-bottom-left-radius: 0px; -} -.ui[class*="left labeled"].button > .label { - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; -} - -/*------------------- - Social ---------------------*/ - -/* Facebook */ -.ui.facebook.button { - background-color: @facebookColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; - background-image: @coloredBackgroundImage; - box-shadow: @coloredBoxShadow; -} -.ui.facebook.button:hover { - background-color: @facebookHoverColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} -.ui.facebook.button:active { - background-color: @facebookDownColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} - -/* Twitter */ -.ui.twitter.button { - background-color: @twitterColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; - background-image: @coloredBackgroundImage; - box-shadow: @coloredBoxShadow; -} -.ui.twitter.button:hover { - background-color: @twitterHoverColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} -.ui.twitter.button:active { - background-color: @twitterDownColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} - -/* Google Plus */ -.ui.google.plus.button { - background-color: @googlePlusColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; - background-image: @coloredBackgroundImage; - box-shadow: @coloredBoxShadow; -} -.ui.google.plus.button:hover { - background-color: @googlePlusHoverColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} -.ui.google.plus.button:active { - background-color: @googlePlusDownColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} - -/* Linked In */ -.ui.linkedin.button { - background-color: @linkedInColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} -.ui.linkedin.button:hover { - background-color: @linkedInHoverColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} -.ui.linkedin.button:active { - background-color: @linkedInDownColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} - -/* YouTube */ -.ui.youtube.button { - background-color: @youtubeColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; - background-image: @coloredBackgroundImage; - box-shadow: @coloredBoxShadow; -} -.ui.youtube.button:hover { - background-color: @youtubeHoverColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} -.ui.youtube.button:active { - background-color: @youtubeDownColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} - -/* Instagram */ -.ui.instagram.button { - background-color: @instagramColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; - background-image: @coloredBackgroundImage; - box-shadow: @coloredBoxShadow; -} -.ui.instagram.button:hover { - background-color: @instagramHoverColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} -.ui.instagram.button:active { - background-color: @instagramDownColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} - -/* Pinterest */ -.ui.pinterest.button { - background-color: @pinterestColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; - background-image: @coloredBackgroundImage; - box-shadow: @coloredBoxShadow; -} -.ui.pinterest.button:hover { - background-color: @pinterestHoverColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} -.ui.pinterest.button:active { - background-color: @pinterestDownColor; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; -} - -/* VK */ -.ui.vk.button { - background-color: #4D7198; - color: @white; - background-image: @coloredBackgroundImage; - box-shadow: @coloredBoxShadow; -} -.ui.vk.button:hover { - background-color: @vkHoverColor; - color: @white; -} -.ui.vk.button:active { - background-color: @vkDownColor; - color: @white; -} - -/*-------------- - Icon ----------------*/ - -.ui.button > .icon:not(.button) { - height: @iconHeight; - opacity: @iconOpacity; - margin: @iconMargin; - transition: @iconTransition; - vertical-align: @iconVerticalAlign; - color: @iconColor; -} - -.ui.button:not(.icon) > .icon:not(.button):not(.dropdown) { - margin: @iconMargin; -} -.ui.button:not(.icon) > .right.icon:not(.button):not(.dropdown) { - margin: @rightIconMargin; -} - -/******************************* - Variations -*******************************/ - - -/*------------------- - Floated ---------------------*/ - -.ui[class*="left floated"].buttons, -.ui[class*="left floated"].button { - float: left; - margin-left: 0em; - margin-right: @floatedMargin; -} -.ui[class*="right floated"].buttons, -.ui[class*="right floated"].button { - float: right; - margin-right: 0em; - margin-left: @floatedMargin; -} - -/*------------------- - Compact ---------------------*/ - -.ui.compact.buttons .button, -.ui.compact.button { - padding: @compactVerticalPadding @compactHorizontalPadding ( @compactVerticalPadding + @shadowOffset ); -} -.ui.compact.icon.buttons .button, -.ui.compact.icon.button { - padding: @compactVerticalPadding @compactVerticalPadding ( @compactVerticalPadding + @shadowOffset ); -} -.ui.compact.labeled.icon.buttons .button, -.ui.compact.labeled.icon.button { - padding: @compactVerticalPadding (@compactHorizontalPadding + @labeledIconWidth) ( @compactVerticalPadding + @shadowOffset ); -} - -/*------------------- - Sizes ---------------------*/ - -.ui.mini.buttons .button, -.ui.mini.buttons .or, -.ui.mini.button { - font-size: @mini; -} -.ui.tiny.buttons .button, -.ui.tiny.buttons .or, -.ui.tiny.button { - font-size: @tiny; -} -.ui.small.buttons .button, -.ui.small.buttons .or, -.ui.small.button { - font-size: @small; -} -.ui.buttons .button, -.ui.buttons .or, -.ui.button { - font-size: @medium; -} -.ui.large.buttons .button, -.ui.large.buttons .or, -.ui.large.button { - font-size: @large; -} -.ui.big.buttons .button, -.ui.big.buttons .or, -.ui.big.button { - font-size: @big; -} -.ui.huge.buttons .button, -.ui.huge.buttons .or, -.ui.huge.button { - font-size: @huge; -} -.ui.massive.buttons .button, -.ui.massive.buttons .or, -.ui.massive.button { - font-size: @massive; -} - -/*-------------- - Icon Only ----------------*/ - -.ui.icon.buttons .button, -.ui.icon.button { - padding: @verticalPadding @verticalPadding ( @verticalPadding + @shadowOffset ); -} -.ui.icon.buttons .button > .icon, -.ui.icon.button > .icon { - opacity: @iconButtonOpacity; - margin: 0em !important; - vertical-align: top; -} - - -/*------------------- - Basic ---------------------*/ - -.ui.basic.buttons .button, -.ui.basic.button { - background: @basicBackground !important; - color: @basicTextColor !important; - font-weight: @basicFontWeight; - border-radius: @basicBorderRadius; - text-transform: @basicTextTransform; - text-shadow: none !important; - box-shadow: @basicBoxShadow; -} -.ui.basic.buttons { - box-shadow: @basicGroupBoxShadow; - border: @basicGroupBorder; - border-radius: @borderRadius; -} -.ui.basic.buttons .button { - border-radius: 0em; -} - -.ui.basic.buttons .button:hover, -.ui.basic.button:hover { - background: @basicHoverBackground !important; - color: @basicHoverTextColor !important; - box-shadow: @basicHoverBoxShadow; -} -.ui.basic.buttons .button:focus, -.ui.basic.button:focus { - background: @basicFocusBackground !important; - color: @basicFocusTextColor !important; - box-shadow: @basicFocusBoxShadow; -} -.ui.basic.buttons .button:active, -.ui.basic.button:active { - background: @basicDownBackground !important; - color: @basicDownTextColor !important; - box-shadow: @basicDownBoxShadow; -} -.ui.basic.buttons .active.button, -.ui.basic.active.button { - background: @basicActiveBackground !important; - box-shadow: @basicActiveBoxShadow !important; - color: @basicActiveTextColor; - box-shadow: @selectedBorderColor; -} -.ui.basic.buttons .active.button:hover, -.ui.basic.active.button:hover { - background-color: @transparentBlack; -} - -/* Vertical */ -.ui.basic.buttons .button:hover { - box-shadow: @basicHoverBoxShadow inset; -} -.ui.basic.buttons .button:active { - box-shadow: @basicDownBoxShadow inset; -} -.ui.basic.buttons .active.button { - box-shadow: @selectedBorderColor inset; -} - -/* Standard Basic Inverted */ -.ui.basic.inverted.buttons .button, -.ui.basic.inverted.button { - background-color: transparent !important; - color: @offWhite !important; - box-shadow: @basicInvertedBoxShadow !important; -} -.ui.basic.inverted.buttons .button:hover, -.ui.basic.inverted.button:hover { - color: @white !important; - box-shadow: @basicInvertedHoverBoxShadow !important; -} -.ui.basic.inverted.buttons .button:focus, -.ui.basic.inverted.button:focus { - color: @white !important; - box-shadow: @basicInvertedFocusBoxShadow !important; -} -.ui.basic.inverted.buttons .button:active, -.ui.basic.inverted.button:active { - background-color: @transparentWhite !important; - color: @white !important; - box-shadow: @basicInvertedDownBoxShadow !important; -} -.ui.basic.inverted.buttons .active.button, -.ui.basic.inverted.active.button { - background-color: @transparentWhite; - color: @invertedTextColor; - text-shadow: @invertedTextShadow; - box-shadow: @basicInvertedActiveBoxShadow; -} -.ui.basic.inverted.buttons .active.button:hover, -.ui.basic.inverted.active.button:hover { - background-color: @strongTransparentWhite; - box-shadow: @basicInvertedHoverBoxShadow !important; -} - - -/* Basic Group */ -.ui.basic.buttons .button { - border-left: @basicGroupBorder; - box-shadow: none; -} -.ui.basic.vertical.buttons .button { - border-left: none; -} -.ui.basic.vertical.buttons .button { - border-left-width: 0px; - border-top: @basicGroupBorder; -} -.ui.basic.vertical.buttons .button:first-child { - border-top-width: 0px; -} - - - -/*-------------- - Labeled Icon ----------------*/ - -.ui.labeled.icon.buttons .button, -.ui.labeled.icon.button { - position: relative; - padding-left: @labeledIconPadding !important; - padding-right: @horizontalPadding !important; -} - -/* Left Labeled */ -.ui.labeled.icon.buttons > .button > .icon, -.ui.labeled.icon.button > .icon { - position: absolute; - height: 100%; - line-height: 1; - border-radius: 0px; - border-top-left-radius: inherit; - border-bottom-left-radius: inherit; - text-align: center; - - margin: @labeledIconMargin; - width: @labeledIconWidth; - background-color: @labeledIconBackgroundColor; - color: @labeledIconColor; - box-shadow: @labeledIconLeftShadow; -} - -/* Left Labeled */ -.ui.labeled.icon.buttons > .button > .icon, -.ui.labeled.icon.button > .icon { - top: 0em; - left: 0em; -} - -/* Right Labeled */ -.ui[class*="right labeled"].icon.button { - padding-right: @labeledIconPadding !important; - padding-left: @horizontalPadding !important; -} -.ui[class*="right labeled"].icon.button > .icon { - left: auto; - right: 0em; - border-radius: 0px; - border-top-right-radius: inherit; - border-bottom-right-radius: inherit; - box-shadow: @labeledIconRightShadow; -} - - -.ui.labeled.icon.buttons > .button > .icon:before, -.ui.labeled.icon.button > .icon:before, -.ui.labeled.icon.buttons > .button > .icon:after, -.ui.labeled.icon.button > .icon:after { - display: block; - position: absolute; - width: 100%; - top: 50%; - text-align: center; - transform: translateY(-50%); -} - -.ui.labeled.icon.buttons .button > .icon { - border-radius: 0em; -} -.ui.labeled.icon.buttons .button:first-child > .icon { - border-top-left-radius: @borderRadius; - border-bottom-left-radius: @borderRadius; -} -.ui.labeled.icon.buttons .button:last-child > .icon { - border-top-right-radius: @borderRadius; - border-bottom-right-radius: @borderRadius; -} -.ui.vertical.labeled.icon.buttons .button:first-child > .icon { - border-radius: 0em; - border-top-left-radius: @borderRadius; -} -.ui.vertical.labeled.icon.buttons .button:last-child > .icon { - border-radius: 0em; - border-bottom-left-radius: @borderRadius; -} - -/* Fluid Labeled */ -.ui.fluid[class*="left labeled"].icon.button, -.ui.fluid[class*="right labeled"].icon.button { - padding-left: @horizontalPadding !important; - padding-right: @horizontalPadding !important; -} - - - - -/*-------------- - Toggle ----------------*/ - -/* Toggle (Modifies active state to give affordances) */ -.ui.toggle.buttons .active.button, -.ui.buttons .button.toggle.active, -.ui.button.toggle.active { - background-color: @positiveColor !important; - box-shadow: none !important; - text-shadow: @invertedTextShadow; - color: @invertedTextColor !important; -} -.ui.button.toggle.active:hover { - background-color: @positiveColorHover !important; - text-shadow: @invertedTextShadow; - color: @invertedTextColor !important; -} - -/*-------------- - Circular ----------------*/ - -.ui.circular.button { - border-radius: 10em; -} -.ui.circular.button > .icon { - width: 1em; - vertical-align: baseline; -} - - -/*------------------- - Or Buttons ---------------------*/ - -.ui.buttons .or { - position: relative; - width: @orGap; - height: @orHeight; - z-index: @orZIndex; -} -.ui.buttons .or:before { - position: absolute; - text-align: center; - border-radius: @circularRadius; - - content: @orText; - top: 50%; - left: 50%; - background-color: @orBackgroundColor; - text-shadow: @orTextShadow; - - margin-top: @orVerticalOffset; - margin-left: @orHorizontalOffset; - - width: @orCircleSize; - height: @orCircleSize; - - line-height: @orLineHeight; - color: @orTextColor; - - font-style: @orTextStyle; - font-weight: @orTextWeight; - - box-shadow: @orBoxShadow; -} -.ui.buttons .or[data-text]:before { - content: attr(data-text); -} - -/* Fluid Or */ -.ui.fluid.buttons .or { - width: 0em !important; -} -.ui.fluid.buttons .or:after { - display: none; -} - - -/*------------------- - Attached ---------------------*/ - - -/* Singular */ -.ui.attached.button { - position: relative; - display: block; - margin: 0em; - border-radius: 0em; - box-shadow: @attachedBoxShadow !important; -} - -/* Top / Bottom */ -.ui.attached.top.button { - border-radius: @borderRadius @borderRadius 0em 0em; -} -.ui.attached.bottom.button { - border-radius: 0em 0em @borderRadius @borderRadius; -} - -/* Left / Right */ -.ui.left.attached.button { - display: inline-block; - border-left: none; - text-align: right; - - padding-right: @attachedHorizontalPadding; - border-radius: @borderRadius 0em 0em @borderRadius; -} -.ui.right.attached.button { - display: inline-block; - text-align: left; - padding-left: @attachedHorizontalPadding; - border-radius: 0em @borderRadius @borderRadius 0em; -} - -/* Plural */ -.ui.attached.buttons { - position: relative; - display: flex; - border-radius: 0em; - width: auto !important; - z-index: @attachedZIndex; - margin-left: @attachedOffset; - margin-right: @attachedOffset; -} -.ui.attached.buttons .button { - margin: 0em; -} -.ui.attached.buttons .button:first-child { - border-radius: 0em; -} -.ui.attached.buttons .button:last-child { - border-radius: 0em; -} - -/* Top / Bottom */ -.ui[class*="top attached"].buttons { - margin-bottom: @attachedOffset; - border-radius: @borderRadius @borderRadius 0em 0em; -} -.ui[class*="top attached"].buttons .button:first-child { - border-radius: @borderRadius 0em 0em 0em; -} -.ui[class*="top attached"].buttons .button:last-child { - border-radius: 0em @borderRadius 0em 0em; -} - -.ui[class*="bottom attached"].buttons { - margin-top: @attachedOffset; - border-radius: 0em 0em @borderRadius @borderRadius; -} -.ui[class*="bottom attached"].buttons .button:first-child { - border-radius: 0em 0em 0em @borderRadius; -} -.ui[class*="bottom attached"].buttons .button:last-child { - border-radius: 0em 0em @borderRadius 0em; -} - -/* Left / Right */ -.ui[class*="left attached"].buttons { - display: inline-flex; - margin-right: 0em; - margin-left: @attachedOffset; - border-radius: 0em @borderRadius @borderRadius 0em; -} -.ui[class*="left attached"].buttons .button:first-child { - margin-left: @attachedOffset; - border-radius: 0em @borderRadius 0em 0em; -} -.ui[class*="left attached"].buttons .button:last-child { - margin-left: @attachedOffset; - border-radius: 0em 0em @borderRadius 0em; -} - -.ui[class*="right attached"].buttons { - display: inline-flex; - margin-left: 0em; - margin-right: @attachedOffset; - border-radius: @borderRadius 0em 0em @borderRadius; -} -.ui[class*="right attached"].buttons .button:first-child { - margin-left: @attachedOffset; - border-radius: @borderRadius 0em 0em 0em; -} -.ui[class*="right attached"].buttons .button:last-child { - margin-left: @attachedOffset; - border-radius: 0em 0em 0em @borderRadius; -} - -/*------------------- - Fluid ---------------------*/ - -.ui.fluid.buttons, -.ui.fluid.button { - width: 100%; -} -.ui.fluid.button { - display: block; -} - -.ui.two.buttons { - width: 100%; -} -.ui.two.buttons > .button { - width: 50%; -} - -.ui.three.buttons { - width: 100%; -} -.ui.three.buttons > .button { - width: 33.333%; -} - -.ui.four.buttons { - width: 100%; -} -.ui.four.buttons > .button { - width: 25%; -} - -.ui.five.buttons { - width: 100%; -} -.ui.five.buttons > .button { - width: 20%; -} - -.ui.six.buttons { - width: 100%; -} -.ui.six.buttons > .button { - width: 16.666%; -} - -.ui.seven.buttons { - width: 100%; -} -.ui.seven.buttons > .button { - width: 14.285%; -} - -.ui.eight.buttons { - width: 100%; -} -.ui.eight.buttons > .button { - width: 12.500%; -} - -.ui.nine.buttons { - width: 100%; -} -.ui.nine.buttons > .button { - width: 11.11%; -} - -.ui.ten.buttons { - width: 100%; -} -.ui.ten.buttons > .button { - width: 10%; -} - -.ui.eleven.buttons { - width: 100%; -} -.ui.eleven.buttons > .button { - width: 9.09%; -} - -.ui.twelve.buttons { - width: 100%; -} -.ui.twelve.buttons > .button { - width: 8.3333%; -} - -/* Fluid Vertical Buttons */ -.ui.fluid.vertical.buttons, -.ui.fluid.vertical.buttons > .button { - display: flex; - width: auto; -} - -.ui.two.vertical.buttons > .button { - height: 50%; -} -.ui.three.vertical.buttons > .button { - height: 33.333%; -} -.ui.four.vertical.buttons > .button { - height: 25%; -} -.ui.five.vertical.buttons > .button { - height: 20%; -} -.ui.six.vertical.buttons > .button { - height: 16.666%; -} -.ui.seven.vertical.buttons > .button { - height: 14.285%; -} -.ui.eight.vertical.buttons > .button { - height: 12.500%; -} -.ui.nine.vertical.buttons > .button { - height: 11.11%; -} -.ui.ten.vertical.buttons > .button { - height: 10%; -} -.ui.eleven.vertical.buttons > .button { - height: 9.09%; -} -.ui.twelve.vertical.buttons > .button { - height: 8.3333%; -} - - -/*------------------- - Colors ---------------------*/ - -/*--- Black ---*/ -.ui.black.buttons .button, -.ui.black.button { - background-color: @black; - color: @blackTextColor; - text-shadow: @blackTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.black.button { - box-shadow: @coloredBoxShadow; -} -.ui.black.buttons .button:hover, -.ui.black.button:hover { - background-color: @blackHover; - color: @blackTextColor; - text-shadow: @blackTextShadow; -} -.ui.black.buttons .button:focus, -.ui.black.button:focus { - background-color: @blackFocus; - color: @blackTextColor; - text-shadow: @blackTextShadow; -} -.ui.black.buttons .button:active, -.ui.black.button:active { - background-color: @blackDown; - color: @blackTextColor; - text-shadow: @blackTextShadow; -} -.ui.black.buttons .active.button, -.ui.black.buttons .active.button:active, -.ui.black.active.button, -.ui.black.button .active.button:active { - background-color: @blackActive; - color: @blackTextColor; - text-shadow: @blackTextShadow; -} - -/* Basic */ -.ui.basic.black.buttons .button, -.ui.basic.black.button { - box-shadow: 0px 0px 0px @basicBorderSize @black inset !important; - color: @black !important; -} -.ui.basic.black.buttons .button:hover, -.ui.basic.black.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @blackHover inset !important; - color: @blackHover !important; -} -.ui.basic.black.buttons .button:focus, -.ui.basic.black.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @blackFocus inset !important; - color: @blackHover !important; -} -.ui.basic.black.buttons .active.button, -.ui.basic.black.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @blackActive inset !important; - color: @blackDown !important; -} -.ui.basic.black.buttons .button:active, -.ui.basic.black.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @blackDown inset !important; - color: @blackDown !important; -} -.ui.buttons:not(.vertical) > .basic.black.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.black.buttons .button, -.ui.inverted.black.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @solidBorderColor inset !important; - color: @invertedTextColor; -} -.ui.inverted.black.buttons .button:hover, -.ui.inverted.black.button:hover, -.ui.inverted.black.buttons .button:focus, -.ui.inverted.black.button:focus, -.ui.inverted.black.buttons .button.active, -.ui.inverted.black.button.active, -.ui.inverted.black.buttons .button:active, -.ui.inverted.black.button:active { - box-shadow: none !important; - color: @lightBlackTextColor; -} -.ui.inverted.black.buttons .button:hover, -.ui.inverted.black.button:hover { - background-color: @lightBlackHover; -} -.ui.inverted.black.buttons .button:focus, -.ui.inverted.black.button:focus { - background-color: @lightBlackFocus; -} -.ui.inverted.black.buttons .active.button, -.ui.inverted.black.active.button { - background-color: @lightBlackActive; -} -.ui.inverted.black.buttons .button:active, -.ui.inverted.black.button:active { - background-color: @lightBlackDown; -} - -/* Inverted Basic */ -.ui.inverted.black.basic.buttons .button, -.ui.inverted.black.buttons .basic.button, -.ui.inverted.black.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.black.basic.buttons .button:hover, -.ui.inverted.black.buttons .basic.button:hover, -.ui.inverted.black.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlackHover inset !important; - color: @white !important; -} -.ui.inverted.black.basic.buttons .button:focus, -.ui.inverted.black.basic.buttons .button:focus, -.ui.inverted.black.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlackFocus inset !important; - color: @lightBlack !important; -} -.ui.inverted.black.basic.buttons .active.button, -.ui.inverted.black.buttons .basic.active.button, -.ui.inverted.black.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlackActive inset !important; - color: @white !important; -} -.ui.inverted.black.basic.buttons .button:active, -.ui.inverted.black.buttons .basic.button:active, -.ui.inverted.black.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlackDown inset !important; - color: @white !important; -} - -/*--- Grey ---*/ -.ui.grey.buttons .button, -.ui.grey.button { - background-color: @grey; - color: @greyTextColor; - text-shadow: @greyTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.grey.button { - box-shadow: @coloredBoxShadow; -} -.ui.grey.buttons .button:hover, -.ui.grey.button:hover { - background-color: @greyHover; - color: @greyTextColor; - text-shadow: @greyTextShadow; -} -.ui.grey.buttons .button:focus, -.ui.grey.button:focus { - background-color: @greyFocus; - color: @greyTextColor; - text-shadow: @greyTextShadow; -} -.ui.grey.buttons .button:active, -.ui.grey.button:active { - background-color: @greyDown; - color: @greyTextColor; - text-shadow: @greyTextShadow; -} -.ui.grey.buttons .active.button, -.ui.grey.buttons .active.button:active, -.ui.grey.active.button, -.ui.grey.button .active.button:active { - background-color: @greyActive; - color: @greyTextColor; - text-shadow: @greyTextShadow; -} - -/* Basic */ -.ui.basic.grey.buttons .button, -.ui.basic.grey.button { - box-shadow: 0px 0px 0px @basicBorderSize @grey inset !important; - color: @grey !important; -} -.ui.basic.grey.buttons .button:hover, -.ui.basic.grey.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @greyHover inset !important; - color: @greyHover !important; -} -.ui.basic.grey.buttons .button:focus, -.ui.basic.grey.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @greyFocus inset !important; - color: @greyHover !important; -} -.ui.basic.grey.buttons .active.button, -.ui.basic.grey.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @greyActive inset !important; - color: @greyDown !important; -} -.ui.basic.grey.buttons .button:active, -.ui.basic.grey.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @greyDown inset !important; - color: @greyDown !important; -} -.ui.buttons:not(.vertical) > .basic.grey.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.grey.buttons .button, -.ui.inverted.grey.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @solidBorderColor inset !important; - color: @invertedTextColor; -} -.ui.inverted.grey.buttons .button:hover, -.ui.inverted.grey.button:hover, -.ui.inverted.grey.buttons .button:focus, -.ui.inverted.grey.button:focus, -.ui.inverted.grey.buttons .button.active, -.ui.inverted.grey.button.active, -.ui.inverted.grey.buttons .button:active, -.ui.inverted.grey.button:active { - box-shadow: none !important; - color: @lightGreyTextColor; -} -.ui.inverted.grey.buttons .button:hover, -.ui.inverted.grey.button:hover { - background-color: @lightGreyHover; -} -.ui.inverted.grey.buttons .button:focus, -.ui.inverted.grey.button:focus { - background-color: @lightGreyFocus; -} -.ui.inverted.grey.buttons .active.button, -.ui.inverted.grey.active.button { - background-color: @lightGreyActive; -} -.ui.inverted.grey.buttons .button:active, -.ui.inverted.grey.button:active { - background-color: @lightGreyDown; -} - -/* Inverted Basic */ -.ui.inverted.grey.basic.buttons .button, -.ui.inverted.grey.buttons .basic.button, -.ui.inverted.grey.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.grey.basic.buttons .button:hover, -.ui.inverted.grey.buttons .basic.button:hover, -.ui.inverted.grey.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreyHover inset !important; - color: @white !important; -} -.ui.inverted.grey.basic.buttons .button:focus, -.ui.inverted.grey.basic.buttons .button:focus, -.ui.inverted.grey.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreyFocus inset !important; - color: @lightGrey !important; -} -.ui.inverted.grey.basic.buttons .active.button, -.ui.inverted.grey.buttons .basic.active.button, -.ui.inverted.grey.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreyActive inset !important; - color: @white !important; -} -.ui.inverted.grey.basic.buttons .button:active, -.ui.inverted.grey.buttons .basic.button:active, -.ui.inverted.grey.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreyDown inset !important; - color: @white !important; -} - - -/*--- Brown ---*/ -.ui.brown.buttons .button, -.ui.brown.button { - background-color: @brown; - color: @brownTextColor; - text-shadow: @brownTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.brown.button { - box-shadow: @coloredBoxShadow; -} -.ui.brown.buttons .button:hover, -.ui.brown.button:hover { - background-color: @brownHover; - color: @brownTextColor; - text-shadow: @brownTextShadow; -} -.ui.brown.buttons .button:focus, -.ui.brown.button:focus { - background-color: @brownFocus; - color: @brownTextColor; - text-shadow: @brownTextShadow; -} -.ui.brown.buttons .button:active, -.ui.brown.button:active { - background-color: @brownDown; - color: @brownTextColor; - text-shadow: @brownTextShadow; -} -.ui.brown.buttons .active.button, -.ui.brown.buttons .active.button:active, -.ui.brown.active.button, -.ui.brown.button .active.button:active { - background-color: @brownActive; - color: @brownTextColor; - text-shadow: @brownTextShadow; -} - -/* Basic */ -.ui.basic.brown.buttons .button, -.ui.basic.brown.button { - box-shadow: 0px 0px 0px @basicBorderSize @brown inset !important; - color: @brown !important; -} -.ui.basic.brown.buttons .button:hover, -.ui.basic.brown.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @brownHover inset !important; - color: @brownHover !important; -} -.ui.basic.brown.buttons .button:focus, -.ui.basic.brown.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @brownFocus inset !important; - color: @brownHover !important; -} -.ui.basic.brown.buttons .active.button, -.ui.basic.brown.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @brownActive inset !important; - color: @brownDown !important; -} -.ui.basic.brown.buttons .button:active, -.ui.basic.brown.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @brownDown inset !important; - color: @brownDown !important; -} -.ui.buttons:not(.vertical) > .basic.brown.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.brown.buttons .button, -.ui.inverted.brown.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightBrown inset !important; - color: @lightBrown; -} -.ui.inverted.brown.buttons .button:hover, -.ui.inverted.brown.button:hover, -.ui.inverted.brown.buttons .button:focus, -.ui.inverted.brown.button:focus, -.ui.inverted.brown.buttons .button.active, -.ui.inverted.brown.button.active, -.ui.inverted.brown.buttons .button:active, -.ui.inverted.brown.button:active { - box-shadow: none !important; - color: @lightBrownTextColor; -} -.ui.inverted.brown.buttons .button:hover, -.ui.inverted.brown.button:hover { - background-color: @lightBrownHover; -} -.ui.inverted.brown.buttons .button:focus, -.ui.inverted.brown.button:focus { - background-color: @lightBrownFocus; -} -.ui.inverted.brown.buttons .active.button, -.ui.inverted.brown.active.button { - background-color: @lightBrownActive; -} -.ui.inverted.brown.buttons .button:active, -.ui.inverted.brown.button:active { - background-color: @lightBrownDown; -} - -/* Inverted Basic */ -.ui.inverted.brown.basic.buttons .button, -.ui.inverted.brown.buttons .basic.button, -.ui.inverted.brown.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.brown.basic.buttons .button:hover, -.ui.inverted.brown.buttons .basic.button:hover, -.ui.inverted.brown.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBrownHover inset !important; - color: @lightBrown !important; -} -.ui.inverted.brown.basic.buttons .button:focus, -.ui.inverted.brown.basic.buttons .button:focus, -.ui.inverted.brown.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBrownFocus inset !important; - color: @lightBrown !important; -} -.ui.inverted.brown.basic.buttons .active.button, -.ui.inverted.brown.buttons .basic.active.button, -.ui.inverted.brown.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBrownActive inset !important; - color: @lightBrown !important; -} -.ui.inverted.brown.basic.buttons .button:active, -.ui.inverted.brown.buttons .basic.button:active, -.ui.inverted.brown.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBrownDown inset !important; - color: @lightBrown !important; -} - -/*--- Blue ---*/ -.ui.blue.buttons .button, -.ui.blue.button { - background-color: @blue; - color: @blueTextColor; - text-shadow: @blueTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.blue.button { - box-shadow: @coloredBoxShadow; -} -.ui.blue.buttons .button:hover, -.ui.blue.button:hover { - background-color: @blueHover; - color: @blueTextColor; - text-shadow: @blueTextShadow; -} -.ui.blue.buttons .button:focus, -.ui.blue.button:focus { - background-color: @blueFocus; - color: @blueTextColor; - text-shadow: @blueTextShadow; -} -.ui.blue.buttons .button:active, -.ui.blue.button:active { - background-color: @blueDown; - color: @blueTextColor; - text-shadow: @blueTextShadow; -} -.ui.blue.buttons .active.button, -.ui.blue.buttons .active.button:active, -.ui.blue.active.button, -.ui.blue.button .active.button:active { - background-color: @blueActive; - color: @blueTextColor; - text-shadow: @blueTextShadow; -} - -/* Basic */ -.ui.basic.blue.buttons .button, -.ui.basic.blue.button { - box-shadow: 0px 0px 0px @basicBorderSize @blue inset !important; - color: @blue !important; -} -.ui.basic.blue.buttons .button:hover, -.ui.basic.blue.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @blueHover inset !important; - color: @blueHover !important; -} -.ui.basic.blue.buttons .button:focus, -.ui.basic.blue.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @blueFocus inset !important; - color: @blueHover !important; -} -.ui.basic.blue.buttons .active.button, -.ui.basic.blue.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @blueActive inset !important; - color: @blueDown !important; -} -.ui.basic.blue.buttons .button:active, -.ui.basic.blue.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @blueDown inset !important; - color: @blueDown !important; -} -.ui.buttons:not(.vertical) > .basic.blue.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.blue.buttons .button, -.ui.inverted.blue.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlue inset !important; - color: @lightBlue; -} -.ui.inverted.blue.buttons .button:hover, -.ui.inverted.blue.button:hover, -.ui.inverted.blue.buttons .button:focus, -.ui.inverted.blue.button:focus, -.ui.inverted.blue.buttons .button.active, -.ui.inverted.blue.button.active, -.ui.inverted.blue.buttons .button:active, -.ui.inverted.blue.button:active { - box-shadow: none !important; - color: @lightBlueTextColor; -} -.ui.inverted.blue.buttons .button:hover, -.ui.inverted.blue.button:hover { - background-color: @lightBlueHover; -} -.ui.inverted.blue.buttons .button:focus, -.ui.inverted.blue.button:focus { - background-color: @lightBlueFocus; -} -.ui.inverted.blue.buttons .active.button, -.ui.inverted.blue.active.button { - background-color: @lightBlueActive; -} -.ui.inverted.blue.buttons .button:active, -.ui.inverted.blue.button:active { - background-color: @lightBlueDown; -} - -/* Inverted Basic */ -.ui.inverted.blue.basic.buttons .button, -.ui.inverted.blue.buttons .basic.button, -.ui.inverted.blue.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.blue.basic.buttons .button:hover, -.ui.inverted.blue.buttons .basic.button:hover, -.ui.inverted.blue.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlueHover inset !important; - color: @lightBlue !important; -} -.ui.inverted.blue.basic.buttons .button:focus, -.ui.inverted.blue.basic.buttons .button:focus, -.ui.inverted.blue.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlueFocus inset !important; - color: @lightBlue !important; -} -.ui.inverted.blue.basic.buttons .active.button, -.ui.inverted.blue.buttons .basic.active.button, -.ui.inverted.blue.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlueActive inset !important; - color: @lightBlue !important; -} -.ui.inverted.blue.basic.buttons .button:active, -.ui.inverted.blue.buttons .basic.button:active, -.ui.inverted.blue.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightBlueDown inset !important; - color: @lightBlue !important; -} - -/*--- Green ---*/ -.ui.green.buttons .button, -.ui.green.button { - background-color: @green; - color: @greenTextColor; - text-shadow: @greenTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.green.button { - box-shadow: @coloredBoxShadow; -} -.ui.green.buttons .button:hover, -.ui.green.button:hover { - background-color: @greenHover; - color: @greenTextColor; - text-shadow: @greenTextShadow; -} -.ui.green.buttons .button:focus, -.ui.green.button:focus { - background-color: @greenFocus; - color: @greenTextColor; - text-shadow: @greenTextShadow; -} -.ui.green.buttons .button:active, -.ui.green.button:active { - background-color: @greenDown; - color: @greenTextColor; - text-shadow: @greenTextShadow; -} -.ui.green.buttons .active.button, -.ui.green.buttons .active.button:active, -.ui.green.active.button, -.ui.green.button .active.button:active { - background-color: @greenActive; - color: @greenTextColor; - text-shadow: @greenTextShadow; -} - - -/* Basic */ -.ui.basic.green.buttons .button, -.ui.basic.green.button { - box-shadow: 0px 0px 0px @basicBorderSize @green inset !important; - color: @green !important; -} -.ui.basic.green.buttons .button:hover, -.ui.basic.green.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @greenHover inset !important; - color: @greenHover !important; -} -.ui.basic.green.buttons .button:focus, -.ui.basic.green.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @greenFocus inset !important; - color: @greenHover !important; -} -.ui.basic.green.buttons .active.button, -.ui.basic.green.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @greenActive inset !important; - color: @greenDown !important; -} -.ui.basic.green.buttons .button:active, -.ui.basic.green.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @greenDown inset !important; - color: @greenDown !important; -} -.ui.buttons:not(.vertical) > .basic.green.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.green.buttons .button, -.ui.inverted.green.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreen inset !important; - color: @lightGreen; -} -.ui.inverted.green.buttons .button:hover, -.ui.inverted.green.button:hover, -.ui.inverted.green.buttons .button:focus, -.ui.inverted.green.button:focus, -.ui.inverted.green.buttons .button.active, -.ui.inverted.green.button.active, -.ui.inverted.green.buttons .button:active, -.ui.inverted.green.button:active { - box-shadow: none !important; - color: @greenTextColor; -} -.ui.inverted.green.buttons .button:hover, -.ui.inverted.green.button:hover { - background-color: @lightGreenHover; -} -.ui.inverted.green.buttons .button:focus, -.ui.inverted.green.button:focus { - background-color: @lightGreenFocus; -} -.ui.inverted.green.buttons .active.button, -.ui.inverted.green.active.button { - background-color: @lightGreenActive; -} -.ui.inverted.green.buttons .button:active, -.ui.inverted.green.button:active { - background-color: @lightGreenDown; -} - -/* Inverted Basic */ -.ui.inverted.green.basic.buttons .button, -.ui.inverted.green.buttons .basic.button, -.ui.inverted.green.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.green.basic.buttons .button:hover, -.ui.inverted.green.buttons .basic.button:hover, -.ui.inverted.green.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreenHover inset !important; - color: @lightGreen !important; -} -.ui.inverted.green.basic.buttons .button:focus, -.ui.inverted.green.basic.buttons .button:focus, -.ui.inverted.green.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreenFocus inset !important; - color: @lightGreen !important; -} -.ui.inverted.green.basic.buttons .active.button, -.ui.inverted.green.buttons .basic.active.button, -.ui.inverted.green.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreenActive inset !important; - color: @lightGreen !important; -} -.ui.inverted.green.basic.buttons .button:active, -.ui.inverted.green.buttons .basic.button:active, -.ui.inverted.green.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightGreenDown inset !important; - color: @lightGreen !important; -} - -/*--- Orange ---*/ -.ui.orange.buttons .button, -.ui.orange.button { - background-color: @orange; - color: @orangeTextColor; - text-shadow: @orangeTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.orange.button { - box-shadow: @coloredBoxShadow; -} -.ui.orange.buttons .button:hover, -.ui.orange.button:hover { - background-color: @orangeHover; - color: @orangeTextColor; - text-shadow: @orangeTextShadow; -} -.ui.orange.buttons .button:focus, -.ui.orange.button:focus { - background-color: @orangeFocus; - color: @orangeTextColor; - text-shadow: @orangeTextShadow; -} -.ui.orange.buttons .button:active, -.ui.orange.button:active { - background-color: @orangeDown; - color: @orangeTextColor; - text-shadow: @orangeTextShadow; -} -.ui.orange.buttons .active.button, -.ui.orange.buttons .active.button:active, -.ui.orange.active.button, -.ui.orange.button .active.button:active { - background-color: @orangeActive; - color: @orangeTextColor; - text-shadow: @orangeTextShadow; -} - -/* Basic */ -.ui.basic.orange.buttons .button, -.ui.basic.orange.button { - box-shadow: 0px 0px 0px @basicBorderSize @orange inset !important; - color: @orange !important; -} -.ui.basic.orange.buttons .button:hover, -.ui.basic.orange.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @orangeHover inset !important; - color: @orangeHover !important; -} -.ui.basic.orange.buttons .button:focus, -.ui.basic.orange.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @orangeFocus inset !important; - color: @orangeHover !important; -} -.ui.basic.orange.buttons .active.button, -.ui.basic.orange.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @orangeActive inset !important; - color: @orangeDown !important; -} -.ui.basic.orange.buttons .button:active, -.ui.basic.orange.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @orangeDown inset !important; - color: @orangeDown !important; -} -.ui.buttons:not(.vertical) > .basic.orange.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.orange.buttons .button, -.ui.inverted.orange.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightOrange inset !important; - color: @lightOrange; -} -.ui.inverted.orange.buttons .button:hover, -.ui.inverted.orange.button:hover, -.ui.inverted.orange.buttons .button:focus, -.ui.inverted.orange.button:focus, -.ui.inverted.orange.buttons .button.active, -.ui.inverted.orange.button.active, -.ui.inverted.orange.buttons .button:active, -.ui.inverted.orange.button:active { - box-shadow: none !important; - color: @lightOrangeTextColor; -} -.ui.inverted.orange.buttons .button:hover, -.ui.inverted.orange.button:hover { - background-color: @lightOrangeHover; -} -.ui.inverted.orange.buttons .button:focus, -.ui.inverted.orange.button:focus { - background-color: @lightOrangeFocus; -} -.ui.inverted.orange.buttons .active.button, -.ui.inverted.orange.active.button { - background-color: @lightOrangeActive; -} -.ui.inverted.orange.buttons .button:active, -.ui.inverted.orange.button:active { - background-color: @lightOrangeDown; -} - -/* Inverted Basic */ -.ui.inverted.orange.basic.buttons .button, -.ui.inverted.orange.buttons .basic.button, -.ui.inverted.orange.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.orange.basic.buttons .button:hover, -.ui.inverted.orange.buttons .basic.button:hover, -.ui.inverted.orange.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightOrangeHover inset !important; - color: @lightOrange !important; -} -.ui.inverted.orange.basic.buttons .button:focus, -.ui.inverted.orange.basic.buttons .button:focus, -.ui.inverted.orange.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightOrangeFocus inset !important; - color: @lightOrange !important; -} -.ui.inverted.orange.basic.buttons .active.button, -.ui.inverted.orange.buttons .basic.active.button, -.ui.inverted.orange.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightOrangeActive inset !important; - color: @lightOrange !important; -} -.ui.inverted.orange.basic.buttons .button:active, -.ui.inverted.orange.buttons .basic.button:active, -.ui.inverted.orange.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightOrangeDown inset !important; - color: @lightOrange !important; -} - -/*--- Pink ---*/ -.ui.pink.buttons .button, -.ui.pink.button { - background-color: @pink; - color: @pinkTextColor; - text-shadow: @pinkTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.pink.button { - box-shadow: @coloredBoxShadow; -} -.ui.pink.buttons .button:hover, -.ui.pink.button:hover { - background-color: @pinkHover; - color: @pinkTextColor; - text-shadow: @pinkTextShadow; -} -.ui.pink.buttons .button:focus, -.ui.pink.button:focus { - background-color: @pinkFocus; - color: @pinkTextColor; - text-shadow: @pinkTextShadow; -} -.ui.pink.buttons .button:active, -.ui.pink.button:active { - background-color: @pinkDown; - color: @pinkTextColor; - text-shadow: @pinkTextShadow; -} -.ui.pink.buttons .active.button, -.ui.pink.buttons .active.button:active, -.ui.pink.active.button, -.ui.pink.button .active.button:active { - background-color: @pinkActive; - color: @pinkTextColor; - text-shadow: @pinkTextShadow; -} - -/* Basic */ -.ui.basic.pink.buttons .button, -.ui.basic.pink.button { - box-shadow: 0px 0px 0px @basicBorderSize @pink inset !important; - color: @pink !important; -} -.ui.basic.pink.buttons .button:hover, -.ui.basic.pink.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @pinkHover inset !important; - color: @pinkHover !important; -} -.ui.basic.pink.buttons .button:focus, -.ui.basic.pink.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @pinkFocus inset !important; - color: @pinkHover !important; -} -.ui.basic.pink.buttons .active.button, -.ui.basic.pink.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @pinkActive inset !important; - color: @pinkDown !important; -} -.ui.basic.pink.buttons .button:active, -.ui.basic.pink.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @pinkDown inset !important; - color: @pinkDown !important; -} -.ui.buttons:not(.vertical) > .basic.pink.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.pink.buttons .button, -.ui.inverted.pink.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightPink inset !important; - color: @lightPink; -} -.ui.inverted.pink.buttons .button:hover, -.ui.inverted.pink.button:hover, -.ui.inverted.pink.buttons .button:focus, -.ui.inverted.pink.button:focus, -.ui.inverted.pink.buttons .button.active, -.ui.inverted.pink.button.active, -.ui.inverted.pink.buttons .button:active, -.ui.inverted.pink.button:active { - box-shadow: none !important; - color: @lightPinkTextColor; -} -.ui.inverted.pink.buttons .button:hover, -.ui.inverted.pink.button:hover { - background-color: @lightPinkHover; -} -.ui.inverted.pink.buttons .button:focus, -.ui.inverted.pink.button:focus { - background-color: @lightPinkFocus; -} -.ui.inverted.pink.buttons .active.button, -.ui.inverted.pink.active.button { - background-color: @lightPinkActive; -} -.ui.inverted.pink.buttons .button:active, -.ui.inverted.pink.button:active { - background-color: @lightPinkDown; -} - -/* Inverted Basic */ -.ui.inverted.pink.basic.buttons .button, -.ui.inverted.pink.buttons .basic.button, -.ui.inverted.pink.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.pink.basic.buttons .button:hover, -.ui.inverted.pink.buttons .basic.button:hover, -.ui.inverted.pink.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightPinkHover inset !important; - color: @lightPink !important; -} -.ui.inverted.pink.basic.buttons .button:focus, -.ui.inverted.pink.basic.buttons .button:focus, -.ui.inverted.pink.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightPinkFocus inset !important; - color: @lightPink !important; -} -.ui.inverted.pink.basic.buttons .active.button, -.ui.inverted.pink.buttons .basic.active.button, -.ui.inverted.pink.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightPinkActive inset !important; - color: @lightPink !important; -} -.ui.inverted.pink.basic.buttons .button:active, -.ui.inverted.pink.buttons .basic.button:active, -.ui.inverted.pink.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightPinkDown inset !important; - color: @lightPink !important; -} - - -/*--- Violet ---*/ -.ui.violet.buttons .button, -.ui.violet.button { - background-color: @violet; - color: @violetTextColor; - text-shadow: @violetTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.violet.button { - box-shadow: @coloredBoxShadow; -} -.ui.violet.buttons .button:hover, -.ui.violet.button:hover { - background-color: @violetHover; - color: @violetTextColor; - text-shadow: @violetTextShadow; -} -.ui.violet.buttons .button:focus, -.ui.violet.button:focus { - background-color: @violetFocus; - color: @violetTextColor; - text-shadow: @violetTextShadow; -} -.ui.violet.buttons .button:active, -.ui.violet.button:active { - background-color: @violetDown; - color: @violetTextColor; - text-shadow: @violetTextShadow; -} -.ui.violet.buttons .active.button, -.ui.violet.buttons .active.button:active, -.ui.violet.active.button, -.ui.violet.button .active.button:active { - background-color: @violetActive; - color: @violetTextColor; - text-shadow: @violetTextShadow; -} - -/* Basic */ -.ui.basic.violet.buttons .button, -.ui.basic.violet.button { - box-shadow: 0px 0px 0px @basicBorderSize @violet inset !important; - color: @violet !important; -} -.ui.basic.violet.buttons .button:hover, -.ui.basic.violet.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @violetHover inset !important; - color: @violetHover !important; -} -.ui.basic.violet.buttons .button:focus, -.ui.basic.violet.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @violetFocus inset !important; - color: @violetHover !important; -} -.ui.basic.violet.buttons .active.button, -.ui.basic.violet.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @violetActive inset !important; - color: @violetDown !important; -} -.ui.basic.violet.buttons .button:active, -.ui.basic.violet.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @violetDown inset !important; - color: @violetDown !important; -} -.ui.buttons:not(.vertical) > .basic.violet.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.violet.buttons .button, -.ui.inverted.violet.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightViolet inset !important; - color: @lightViolet; -} -.ui.inverted.violet.buttons .button:hover, -.ui.inverted.violet.button:hover, -.ui.inverted.violet.buttons .button:focus, -.ui.inverted.violet.button:focus, -.ui.inverted.violet.buttons .button.active, -.ui.inverted.violet.button.active, -.ui.inverted.violet.buttons .button:active, -.ui.inverted.violet.button:active { - box-shadow: none !important; - color: @lightVioletTextColor; -} -.ui.inverted.violet.buttons .button:hover, -.ui.inverted.violet.button:hover { - background-color: @lightVioletHover; -} -.ui.inverted.violet.buttons .button:focus, -.ui.inverted.violet.button:focus { - background-color: @lightVioletFocus; -} -.ui.inverted.violet.buttons .active.button, -.ui.inverted.violet.active.button { - background-color: @lightVioletActive; -} -.ui.inverted.violet.buttons .button:active, -.ui.inverted.violet.button:active { - background-color: @lightVioletDown; -} - -/* Inverted Basic */ -.ui.inverted.violet.basic.buttons .button, -.ui.inverted.violet.buttons .basic.button, -.ui.inverted.violet.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.violet.basic.buttons .button:hover, -.ui.inverted.violet.buttons .basic.button:hover, -.ui.inverted.violet.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightVioletHover inset !important; - color: @lightViolet !important; -} -.ui.inverted.violet.basic.buttons .button:focus, -.ui.inverted.violet.basic.buttons .button:focus, -.ui.inverted.violet.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightVioletFocus inset !important; - color: @lightViolet !important; -} -.ui.inverted.violet.basic.buttons .active.button, -.ui.inverted.violet.buttons .basic.active.button, -.ui.inverted.violet.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightVioletActive inset !important; - color: @lightViolet !important; -} -.ui.inverted.violet.basic.buttons .button:active, -.ui.inverted.violet.buttons .basic.button:active, -.ui.inverted.violet.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightVioletDown inset !important; - color: @lightViolet !important; -} - -/*--- Purple ---*/ -.ui.purple.buttons .button, -.ui.purple.button { - background-color: @purple; - color: @purpleTextColor; - text-shadow: @purpleTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.purple.button { - box-shadow: @coloredBoxShadow; -} -.ui.purple.buttons .button:hover, -.ui.purple.button:hover { - background-color: @purpleHover; - color: @purpleTextColor; - text-shadow: @purpleTextShadow; -} -.ui.purple.buttons .button:focus, -.ui.purple.button:focus { - background-color: @purpleFocus; - color: @purpleTextColor; - text-shadow: @purpleTextShadow; -} -.ui.purple.buttons .button:active, -.ui.purple.button:active { - background-color: @purpleDown; - color: @purpleTextColor; - text-shadow: @purpleTextShadow; -} -.ui.purple.buttons .active.button, -.ui.purple.buttons .active.button:active, -.ui.purple.active.button, -.ui.purple.button .active.button:active { - background-color: @purpleActive; - color: @purpleTextColor; - text-shadow: @purpleTextShadow; -} - -/* Basic */ -.ui.basic.purple.buttons .button, -.ui.basic.purple.button { - box-shadow: 0px 0px 0px @basicBorderSize @purple inset !important; - color: @purple !important; -} -.ui.basic.purple.buttons .button:hover, -.ui.basic.purple.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @purpleHover inset !important; - color: @purpleHover !important; -} -.ui.basic.purple.buttons .button:focus, -.ui.basic.purple.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @purpleFocus inset !important; - color: @purpleHover !important; -} -.ui.basic.purple.buttons .active.button, -.ui.basic.purple.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @purpleActive inset !important; - color: @purpleDown !important; -} -.ui.basic.purple.buttons .button:active, -.ui.basic.purple.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @purpleDown inset !important; - color: @purpleDown !important; -} -.ui.buttons:not(.vertical) > .basic.purple.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.purple.buttons .button, -.ui.inverted.purple.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightPurple inset !important; - color: @lightPurple; -} -.ui.inverted.purple.buttons .button:hover, -.ui.inverted.purple.button:hover, -.ui.inverted.purple.buttons .button:focus, -.ui.inverted.purple.button:focus, -.ui.inverted.purple.buttons .button.active, -.ui.inverted.purple.button.active, -.ui.inverted.purple.buttons .button:active, -.ui.inverted.purple.button:active { - box-shadow: none !important; - color: @lightPurpleTextColor; -} -.ui.inverted.purple.buttons .button:hover, -.ui.inverted.purple.button:hover { - background-color: @lightPurpleHover; -} -.ui.inverted.purple.buttons .button:focus, -.ui.inverted.purple.button:focus { - background-color: @lightPurpleFocus; -} -.ui.inverted.purple.buttons .active.button, -.ui.inverted.purple.active.button { - background-color: @lightPurpleActive; -} -.ui.inverted.purple.buttons .button:active, -.ui.inverted.purple.button:active { - background-color: @lightPurpleDown; -} - -/* Inverted Basic */ -.ui.inverted.purple.basic.buttons .button, -.ui.inverted.purple.buttons .basic.button, -.ui.inverted.purple.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.purple.basic.buttons .button:hover, -.ui.inverted.purple.buttons .basic.button:hover, -.ui.inverted.purple.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightPurpleHover inset !important; - color: @lightPurple !important; -} -.ui.inverted.purple.basic.buttons .button:focus, -.ui.inverted.purple.basic.buttons .button:focus, -.ui.inverted.purple.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightPurpleFocus inset !important; - color: @lightPurple !important; -} -.ui.inverted.purple.basic.buttons .active.button, -.ui.inverted.purple.buttons .basic.active.button, -.ui.inverted.purple.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightPurpleActive inset !important; - color: @lightPurple !important; -} -.ui.inverted.purple.basic.buttons .button:active, -.ui.inverted.purple.buttons .basic.button:active, -.ui.inverted.purple.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightPurpleDown inset !important; - color: @lightPurple !important; -} - -/*--- Red ---*/ -.ui.red.buttons .button, -.ui.red.button { - background-color: @red; - color: @redTextColor; - text-shadow: @redTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.red.button { - box-shadow: @coloredBoxShadow; -} -.ui.red.buttons .button:hover, -.ui.red.button:hover { - background-color: @redHover; - color: @redTextColor; - text-shadow: @redTextShadow; -} -.ui.red.buttons .button:focus, -.ui.red.button:focus { - background-color: @redFocus; - color: @redTextColor; - text-shadow: @redTextShadow; -} -.ui.red.buttons .button:active, -.ui.red.button:active { - background-color: @redDown; - color: @redTextColor; - text-shadow: @redTextShadow; -} -.ui.red.buttons .active.button, -.ui.red.buttons .active.button:active, -.ui.red.active.button, -.ui.red.button .active.button:active { - background-color: @redActive; - color: @redTextColor; - text-shadow: @redTextShadow; -} - -/* Basic */ -.ui.basic.red.buttons .button, -.ui.basic.red.button { - box-shadow: 0px 0px 0px @basicBorderSize @red inset !important; - color: @red !important; -} -.ui.basic.red.buttons .button:hover, -.ui.basic.red.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @redHover inset !important; - color: @redHover !important; -} -.ui.basic.red.buttons .button:focus, -.ui.basic.red.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @redFocus inset !important; - color: @redHover !important; -} -.ui.basic.red.buttons .active.button, -.ui.basic.red.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @redActive inset !important; - color: @redDown !important; -} -.ui.basic.red.buttons .button:active, -.ui.basic.red.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @redDown inset !important; - color: @redDown !important; -} -.ui.buttons:not(.vertical) > .basic.red.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.red.buttons .button, -.ui.inverted.red.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightRed inset !important; - color: @lightRed; -} -.ui.inverted.red.buttons .button:hover, -.ui.inverted.red.button:hover, -.ui.inverted.red.buttons .button:focus, -.ui.inverted.red.button:focus, -.ui.inverted.red.buttons .button.active, -.ui.inverted.red.button.active, -.ui.inverted.red.buttons .button:active, -.ui.inverted.red.button:active { - box-shadow: none !important; - color: @lightRedTextColor; -} -.ui.inverted.red.buttons .button:hover, -.ui.inverted.red.button:hover { - background-color: @lightRedHover; -} -.ui.inverted.red.buttons .button:focus, -.ui.inverted.red.button:focus { - background-color: @lightRedFocus; -} -.ui.inverted.red.buttons .active.button, -.ui.inverted.red.active.button { - background-color: @lightRedActive; -} -.ui.inverted.red.buttons .button:active, -.ui.inverted.red.button:active { - background-color: @lightRedDown; -} - -/* Inverted Basic */ -.ui.inverted.red.basic.buttons .button, -.ui.inverted.red.buttons .basic.button, -.ui.inverted.red.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.red.basic.buttons .button:hover, -.ui.inverted.red.buttons .basic.button:hover, -.ui.inverted.red.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightRedHover inset !important; - color: @lightRed !important; -} -.ui.inverted.red.basic.buttons .button:focus, -.ui.inverted.red.basic.buttons .button:focus, -.ui.inverted.red.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightRedFocus inset !important; - color: @lightRed !important; -} -.ui.inverted.red.basic.buttons .active.button, -.ui.inverted.red.buttons .basic.active.button, -.ui.inverted.red.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightRedActive inset !important; - color: @lightRed !important; -} -.ui.inverted.red.basic.buttons .button:active, -.ui.inverted.red.buttons .basic.button:active, -.ui.inverted.red.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightRedDown inset !important; - color: @lightRed !important; -} - - -/*--- Teal ---*/ -.ui.teal.buttons .button, -.ui.teal.button { - background-color: @teal; - color: @tealTextColor; - text-shadow: @tealTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.teal.button { - box-shadow: @coloredBoxShadow; -} -.ui.teal.buttons .button:hover, -.ui.teal.button:hover { - background-color: @tealHover; - color: @tealTextColor; - text-shadow: @tealTextShadow; -} -.ui.teal.buttons .button:focus, -.ui.teal.button:focus { - background-color: @tealFocus; - color: @tealTextColor; - text-shadow: @tealTextShadow; -} -.ui.teal.buttons .button:active, -.ui.teal.button:active { - background-color: @tealDown; - color: @tealTextColor; - text-shadow: @tealTextShadow; -} -.ui.teal.buttons .active.button, -.ui.teal.buttons .active.button:active, -.ui.teal.active.button, -.ui.teal.button .active.button:active { - background-color: @tealActive; - color: @tealTextColor; - text-shadow: @tealTextShadow; -} - -/* Basic */ -.ui.basic.teal.buttons .button, -.ui.basic.teal.button { - box-shadow: 0px 0px 0px @basicBorderSize @teal inset !important; - color: @teal !important; -} -.ui.basic.teal.buttons .button:hover, -.ui.basic.teal.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @tealHover inset !important; - color: @tealHover !important; -} -.ui.basic.teal.buttons .button:focus, -.ui.basic.teal.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @tealFocus inset !important; - color: @tealHover !important; -} -.ui.basic.teal.buttons .active.button, -.ui.basic.teal.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @tealActive inset !important; - color: @tealDown !important; -} -.ui.basic.teal.buttons .button:active, -.ui.basic.teal.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @tealDown inset !important; - color: @tealDown !important; -} -.ui.buttons:not(.vertical) > .basic.teal.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.teal.buttons .button, -.ui.inverted.teal.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightTeal inset !important; - color: @lightTeal; -} -.ui.inverted.teal.buttons .button:hover, -.ui.inverted.teal.button:hover, -.ui.inverted.teal.buttons .button:focus, -.ui.inverted.teal.button:focus, -.ui.inverted.teal.buttons .button.active, -.ui.inverted.teal.button.active, -.ui.inverted.teal.buttons .button:active, -.ui.inverted.teal.button:active { - box-shadow: none !important; - color: @lightTealTextColor; -} -.ui.inverted.teal.buttons .button:hover, -.ui.inverted.teal.button:hover { - background-color: @lightTealHover; -} -.ui.inverted.teal.buttons .button:focus, -.ui.inverted.teal.button:focus { - background-color: @lightTealFocus; -} -.ui.inverted.teal.buttons .active.button, -.ui.inverted.teal.active.button { - background-color: @lightTealActive; -} -.ui.inverted.teal.buttons .button:active, -.ui.inverted.teal.button:active { - background-color: @lightTealDown; -} - -/* Inverted Basic */ -.ui.inverted.teal.basic.buttons .button, -.ui.inverted.teal.buttons .basic.button, -.ui.inverted.teal.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.teal.basic.buttons .button:hover, -.ui.inverted.teal.buttons .basic.button:hover, -.ui.inverted.teal.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightTealHover inset !important; - color: @lightTeal !important; -} -.ui.inverted.teal.basic.buttons .button:focus, -.ui.inverted.teal.basic.buttons .button:focus, -.ui.inverted.teal.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightTealFocus inset !important; - color: @lightTeal !important; -} -.ui.inverted.teal.basic.buttons .active.button, -.ui.inverted.teal.buttons .basic.active.button, -.ui.inverted.teal.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightTealActive inset !important; - color: @lightTeal !important; -} -.ui.inverted.teal.basic.buttons .button:active, -.ui.inverted.teal.buttons .basic.button:active, -.ui.inverted.teal.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightTealDown inset !important; - color: @lightTeal !important; -} - - -/*--- Olive ---*/ -.ui.olive.buttons .button, -.ui.olive.button { - background-color: @olive; - color: @oliveTextColor; - text-shadow: @oliveTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.olive.button { - box-shadow: @coloredBoxShadow; -} -.ui.olive.buttons .button:hover, -.ui.olive.button:hover { - background-color: @oliveHover; - color: @oliveTextColor; - text-shadow: @oliveTextShadow; -} -.ui.olive.buttons .button:focus, -.ui.olive.button:focus { - background-color: @oliveFocus; - color: @oliveTextColor; - text-shadow: @oliveTextShadow; -} -.ui.olive.buttons .button:active, -.ui.olive.button:active { - background-color: @oliveDown; - color: @oliveTextColor; - text-shadow: @oliveTextShadow; -} -.ui.olive.buttons .active.button, -.ui.olive.buttons .active.button:active, -.ui.olive.active.button, -.ui.olive.button .active.button:active { - background-color: @oliveActive; - color: @oliveTextColor; - text-shadow: @oliveTextShadow; -} - -/* Basic */ -.ui.basic.olive.buttons .button, -.ui.basic.olive.button { - box-shadow: 0px 0px 0px @basicBorderSize @olive inset !important; - color: @olive !important; -} -.ui.basic.olive.buttons .button:hover, -.ui.basic.olive.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @oliveHover inset !important; - color: @oliveHover !important; -} -.ui.basic.olive.buttons .button:focus, -.ui.basic.olive.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @oliveFocus inset !important; - color: @oliveHover !important; -} -.ui.basic.olive.buttons .active.button, -.ui.basic.olive.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @oliveActive inset !important; - color: @oliveDown !important; -} -.ui.basic.olive.buttons .button:active, -.ui.basic.olive.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @oliveDown inset !important; - color: @oliveDown !important; -} -.ui.buttons:not(.vertical) > .basic.olive.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.olive.buttons .button, -.ui.inverted.olive.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightOlive inset !important; - color: @lightOlive; -} -.ui.inverted.olive.buttons .button:hover, -.ui.inverted.olive.button:hover, -.ui.inverted.olive.buttons .button:focus, -.ui.inverted.olive.button:focus, -.ui.inverted.olive.buttons .button.active, -.ui.inverted.olive.button.active, -.ui.inverted.olive.buttons .button:active, -.ui.inverted.olive.button:active { - box-shadow: none !important; - color: @lightOliveTextColor; -} -.ui.inverted.olive.buttons .button:hover, -.ui.inverted.olive.button:hover { - background-color: @lightOliveHover; -} -.ui.inverted.olive.buttons .button:focus, -.ui.inverted.olive.button:focus { - background-color: @lightOliveFocus; -} -.ui.inverted.olive.buttons .active.button, -.ui.inverted.olive.active.button { - background-color: @lightOliveActive; -} -.ui.inverted.olive.buttons .button:active, -.ui.inverted.olive.button:active { - background-color: @lightOliveDown; -} - -/* Inverted Basic */ -.ui.inverted.olive.basic.buttons .button, -.ui.inverted.olive.buttons .basic.button, -.ui.inverted.olive.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.olive.basic.buttons .button:hover, -.ui.inverted.olive.buttons .basic.button:hover, -.ui.inverted.olive.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightOliveHover inset !important; - color: @lightOlive !important; -} -.ui.inverted.olive.basic.buttons .button:focus, -.ui.inverted.olive.basic.buttons .button:focus, -.ui.inverted.olive.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightOliveFocus inset !important; - color: @lightOlive !important; -} -.ui.inverted.olive.basic.buttons .active.button, -.ui.inverted.olive.buttons .basic.active.button, -.ui.inverted.olive.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightOliveActive inset !important; - color: @lightOlive !important; -} -.ui.inverted.olive.basic.buttons .button:active, -.ui.inverted.olive.buttons .basic.button:active, -.ui.inverted.olive.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightOliveDown inset !important; - color: @lightOlive !important; -} - -/*--- Yellow ---*/ -.ui.yellow.buttons .button, -.ui.yellow.button { - background-color: @yellow; - color: @yellowTextColor; - text-shadow: @yellowTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.yellow.button { - box-shadow: @coloredBoxShadow; -} -.ui.yellow.buttons .button:hover, -.ui.yellow.button:hover { - background-color: @yellowHover; - color: @yellowTextColor; - text-shadow: @yellowTextShadow; -} -.ui.yellow.buttons .button:focus, -.ui.yellow.button:focus { - background-color: @yellowFocus; - color: @yellowTextColor; - text-shadow: @yellowTextShadow; -} -.ui.yellow.buttons .button:active, -.ui.yellow.button:active { - background-color: @yellowDown; - color: @yellowTextColor; - text-shadow: @yellowTextShadow; -} -.ui.yellow.buttons .active.button, -.ui.yellow.buttons .active.button:active, -.ui.yellow.active.button, -.ui.yellow.button .active.button:active { - background-color: @yellowActive; - color: @yellowTextColor; - text-shadow: @yellowTextShadow; -} - -/* Basic */ -.ui.basic.yellow.buttons .button, -.ui.basic.yellow.button { - box-shadow: 0px 0px 0px @basicBorderSize @yellow inset !important; - color: @yellow !important; -} -.ui.basic.yellow.buttons .button:hover, -.ui.basic.yellow.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @yellowHover inset !important; - color: @yellowHover !important; -} -.ui.basic.yellow.buttons .button:focus, -.ui.basic.yellow.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @yellowFocus inset !important; - color: @yellowHover !important; -} -.ui.basic.yellow.buttons .active.button, -.ui.basic.yellow.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @yellowActive inset !important; - color: @yellowDown !important; -} -.ui.basic.yellow.buttons .button:active, -.ui.basic.yellow.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @yellowDown inset !important; - color: @yellowDown !important; -} -.ui.buttons:not(.vertical) > .basic.yellow.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/* Inverted */ -.ui.inverted.yellow.buttons .button, -.ui.inverted.yellow.button { - background-color: transparent; - box-shadow: 0px 0px 0px @invertedBorderSize @lightYellow inset !important; - color: @lightYellow; -} -.ui.inverted.yellow.buttons .button:hover, -.ui.inverted.yellow.button:hover, -.ui.inverted.yellow.buttons .button:focus, -.ui.inverted.yellow.button:focus, -.ui.inverted.yellow.buttons .button.active, -.ui.inverted.yellow.button.active, -.ui.inverted.yellow.buttons .button:active, -.ui.inverted.yellow.button:active { - box-shadow: none !important; - color: @lightYellowTextColor; -} -.ui.inverted.yellow.buttons .button:hover, -.ui.inverted.yellow.button:hover { - background-color: @lightYellowHover; -} -.ui.inverted.yellow.buttons .button:focus, -.ui.inverted.yellow.button:focus { - background-color: @lightYellowFocus; -} -.ui.inverted.yellow.buttons .active.button, -.ui.inverted.yellow.active.button { - background-color: @lightYellowActive; -} -.ui.inverted.yellow.buttons .button:active, -.ui.inverted.yellow.button:active { - background-color: @lightYellowDown; -} - -/* Inverted Basic */ -.ui.inverted.yellow.basic.buttons .button, -.ui.inverted.yellow.buttons .basic.button, -.ui.inverted.yellow.basic.button { - background-color: transparent; - box-shadow: @basicInvertedBoxShadow !important; - color: @white !important; -} -.ui.inverted.yellow.basic.buttons .button:hover, -.ui.inverted.yellow.buttons .basic.button:hover, -.ui.inverted.yellow.basic.button:hover { - box-shadow: 0px 0px 0px @invertedBorderSize @lightYellowHover inset !important; - color: @lightYellow !important; -} -.ui.inverted.yellow.basic.buttons .button:focus, -.ui.inverted.yellow.basic.buttons .button:focus, -.ui.inverted.yellow.basic.button:focus { - box-shadow: 0px 0px 0px @invertedBorderSize @lightYellowFocus inset !important; - color: @lightYellow !important; -} -.ui.inverted.yellow.basic.buttons .active.button, -.ui.inverted.yellow.buttons .basic.active.button, -.ui.inverted.yellow.basic.active.button { - box-shadow: 0px 0px 0px @invertedBorderSize @lightYellowActive inset !important; - color: @lightYellow !important; -} -.ui.inverted.yellow.basic.buttons .button:active, -.ui.inverted.yellow.buttons .basic.button:active, -.ui.inverted.yellow.basic.button:active { - box-shadow: 0px 0px 0px @invertedBorderSize @lightYellowDown inset !important; - color: @lightYellow !important; -} - - -/*------------------- - Primary ---------------------*/ - -/*--- Standard ---*/ -.ui.primary.buttons .button, -.ui.primary.button { - background-color: @primaryColor; - color: @primaryTextColor; - text-shadow: @primaryTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.primary.button { - box-shadow: @coloredBoxShadow; -} -.ui.primary.buttons .button:hover, -.ui.primary.button:hover { - background-color: @primaryColorHover; - color: @primaryTextColor; - text-shadow: @primaryTextShadow; -} -.ui.primary.buttons .button:focus, -.ui.primary.button:focus { - background-color: @primaryColorFocus; - color: @primaryTextColor; - text-shadow: @primaryTextShadow; -} -.ui.primary.buttons .button:active, -.ui.primary.button:active { - background-color: @primaryColorDown; - color: @primaryTextColor; - text-shadow: @primaryTextShadow; -} -.ui.primary.buttons .active.button, -.ui.primary.buttons .active.button:active, -.ui.primary.active.button, -.ui.primary.button .active.button:active { - background-color: @primaryColorActive; - color: @primaryTextColor; - text-shadow: @primaryTextShadow; -} - -/* Basic */ -.ui.basic.primary.buttons .button, -.ui.basic.primary.button { - box-shadow: 0px 0px 0px @basicBorderSize @primaryColor inset !important; - color: @primaryColor !important; -} -.ui.basic.primary.buttons .button:hover, -.ui.basic.primary.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @primaryColorHover inset !important; - color: @primaryColorHover !important; -} -.ui.basic.primary.buttons .button:focus, -.ui.basic.primary.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @primaryColorFocus inset !important; - color: @primaryColorHover !important; -} -.ui.basic.primary.buttons .active.button, -.ui.basic.primary.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @primaryColorActive inset !important; - color: @primaryColorDown !important; -} -.ui.basic.primary.buttons .button:active, -.ui.basic.primary.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @primaryColorDown inset !important; - color: @primaryColorDown !important; -} -.ui.buttons:not(.vertical) > .basic.primary.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/*------------------- - Secondary ---------------------*/ - -/* Standard */ -.ui.secondary.buttons .button, -.ui.secondary.button { - background-color: @secondaryColor; - color: @secondaryTextColor; - text-shadow: @secondaryTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.secondary.button { - box-shadow: @coloredBoxShadow; -} -.ui.secondary.buttons .button:hover, -.ui.secondary.button:hover { - background-color: @secondaryColorHover; - color: @secondaryTextColor; - text-shadow: @secondaryTextShadow; -} -.ui.secondary.buttons .button:focus, -.ui.secondary.button:focus { - background-color: @secondaryColorFocus; - color: @secondaryTextColor; - text-shadow: @secondaryTextShadow; -} -.ui.secondary.buttons .button:active, -.ui.secondary.button:active { - background-color: @secondaryColorDown; - color: @secondaryTextColor; - text-shadow: @secondaryTextShadow; -} -.ui.secondary.buttons .active.button, -.ui.secondary.buttons .active.button:active, -.ui.secondary.active.button, -.ui.secondary.button .active.button:active { - background-color: @secondaryColorActive; - color: @secondaryTextColor; - text-shadow: @secondaryTextShadow; -} - -/* Basic */ -.ui.basic.secondary.buttons .button, -.ui.basic.secondary.button { - box-shadow: 0px 0px 0px @basicBorderSize @secondaryColor inset !important; - color: @secondaryColor !important; -} -.ui.basic.secondary.buttons .button:hover, -.ui.basic.secondary.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @secondaryColorHover inset !important; - color: @secondaryColorHover !important; -} -.ui.basic.secondary.buttons .button:focus, -.ui.basic.secondary.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @secondaryColorFocus inset !important; - color: @secondaryColorHover !important; -} -.ui.basic.secondary.buttons .active.button, -.ui.basic.secondary.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @secondaryColorActive inset !important; - color: @secondaryColorDown !important; -} -.ui.basic.secondary.buttons .button:active, -.ui.basic.secondary.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @secondaryColorDown inset !important; - color: @secondaryColorDown !important; -} -.ui.buttons:not(.vertical) > .basic.primary.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/*--------------- - Positive -----------------*/ - -/* Standard */ -.ui.positive.buttons .button, -.ui.positive.button { - background-color: @positiveColor; - color: @positiveTextColor; - text-shadow: @positiveTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.positive.button { - box-shadow: @coloredBoxShadow; -} -.ui.positive.buttons .button:hover, -.ui.positive.button:hover { - background-color: @positiveColorHover; - color: @positiveTextColor; - text-shadow: @positiveTextShadow; -} -.ui.positive.buttons .button:focus, -.ui.positive.button:focus { - background-color: @positiveColorFocus; - color: @positiveTextColor; - text-shadow: @positiveTextShadow; -} -.ui.positive.buttons .button:active, -.ui.positive.button:active { - background-color: @positiveColorDown; - color: @positiveTextColor; - text-shadow: @positiveTextShadow; -} -.ui.positive.buttons .active.button, -.ui.positive.buttons .active.button:active, -.ui.positive.active.button, -.ui.positive.button .active.button:active { - background-color: @positiveColorActive; - color: @positiveTextColor; - text-shadow: @positiveTextShadow; -} - -/* Basic */ -.ui.basic.positive.buttons .button, -.ui.basic.positive.button { - box-shadow: 0px 0px 0px @basicBorderSize @positiveColor inset !important; - color: @positiveColor !important; -} -.ui.basic.positive.buttons .button:hover, -.ui.basic.positive.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @positiveColorHover inset !important; - color: @positiveColorHover !important; -} -.ui.basic.positive.buttons .button:focus, -.ui.basic.positive.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @positiveColorFocus inset !important; - color: @positiveColorHover !important; -} -.ui.basic.positive.buttons .active.button, -.ui.basic.positive.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @positiveColorActive inset !important; - color: @positiveColorDown !important; -} -.ui.basic.positive.buttons .button:active, -.ui.basic.positive.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @positiveColorDown inset !important; - color: @positiveColorDown !important; -} -.ui.buttons:not(.vertical) > .basic.primary.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/*--------------- - Negative -----------------*/ - -/* Standard */ -.ui.negative.buttons .button, -.ui.negative.button { - background-color: @negativeColor; - color: @negativeTextColor; - text-shadow: @negativeTextShadow; - background-image: @coloredBackgroundImage; -} -.ui.negative.button { - box-shadow: @coloredBoxShadow; -} -.ui.negative.buttons .button:hover, -.ui.negative.button:hover { - background-color: @negativeColorHover; - color: @negativeTextColor; - text-shadow: @negativeTextShadow; -} -.ui.negative.buttons .button:focus, -.ui.negative.button:focus { - background-color: @negativeColorFocus; - color: @negativeTextColor; - text-shadow: @negativeTextShadow; -} -.ui.negative.buttons .button:active, -.ui.negative.button:active { - background-color: @negativeColorDown; - color: @negativeTextColor; - text-shadow: @negativeTextShadow; -} -.ui.negative.buttons .active.button, -.ui.negative.buttons .active.button:active, -.ui.negative.active.button, -.ui.negative.button .active.button:active { - background-color: @negativeColorActive; - color: @negativeTextColor; - text-shadow: @negativeTextShadow; -} - -/* Basic */ -.ui.basic.negative.buttons .button, -.ui.basic.negative.button { - box-shadow: 0px 0px 0px @basicBorderSize @negativeColor inset !important; - color: @negativeColor !important; -} -.ui.basic.negative.buttons .button:hover, -.ui.basic.negative.button:hover { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @negativeColorHover inset !important; - color: @negativeColorHover !important; -} -.ui.basic.negative.buttons .button:focus, -.ui.basic.negative.button:focus { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @negativeColorFocus inset !important; - color: @negativeColorHover !important; -} -.ui.basic.negative.buttons .active.button, -.ui.basic.negative.active.button { - background: transparent !important; - box-shadow: 0px 0px 0px @basicColoredBorderSize @negativeColorActive inset !important; - color: @negativeColorDown !important; -} -.ui.basic.negative.buttons .button:active, -.ui.basic.negative.button:active { - box-shadow: 0px 0px 0px @basicColoredBorderSize @negativeColorDown inset !important; - color: @negativeColorDown !important; -} -.ui.buttons:not(.vertical) > .basic.primary.button:not(:first-child) { - margin-left: -@basicColoredBorderSize; -} - -/******************************* - Groups -*******************************/ - -.ui.buttons { - display: inline-flex; - flex-direction: row; - font-size: 0em; - vertical-align: baseline; - margin: @verticalMargin @horizontalMargin 0em 0em; -} -.ui.buttons:not(.basic):not(.inverted) { - box-shadow: @groupBoxShadow; -} - -/* Clearfix */ -.ui.buttons:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -/* Standard Group */ -.ui.buttons .button { - flex: 1 0 auto; - margin: 0em; - border-radius: 0em; - margin: @groupButtonOffset; -} -.ui.buttons > .ui.button:not(.basic):not(.inverted), -.ui.buttons:not(.basic):not(.inverted) > .button { - box-shadow: @groupButtonBoxShadow; -} - -.ui.buttons .button:first-child { - border-left: none; - margin-left: 0em; - border-top-left-radius: @borderRadius; - border-bottom-left-radius: @borderRadius; -} -.ui.buttons .button:last-child { - border-top-right-radius: @borderRadius; - border-bottom-right-radius: @borderRadius; -} - -/* Vertical Style */ -.ui.vertical.buttons { - display: inline-flex; - flex-direction: column; -} -.ui.vertical.buttons .button { - display: block; - float: none; - width: 100%; - margin: @verticalGroupOffset; - box-shadow: @verticalBoxShadow; - border-radius: 0em; -} -.ui.vertical.buttons .button:first-child { - border-top-left-radius: @borderRadius; - border-top-right-radius: @borderRadius; -} -.ui.vertical.buttons .button:last-child { - margin-bottom: 0px; - border-bottom-left-radius: @borderRadius; - border-bottom-right-radius: @borderRadius; -} -.ui.vertical.buttons .button:only-child { - border-radius: @borderRadius; -} - -.loadUIOverrides(); - diff --git a/node_modules/semantic-ui/src/definitions/elements/container.less b/node_modules/semantic-ui/src/definitions/elements/container.less deleted file mode 100644 index 14b32f2..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/container.less +++ /dev/null @@ -1,143 +0,0 @@ -/*! - * # Semantic UI - Container - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'container'; - -@import (multiple) '../../theme.config'; - -/******************************* - Container -*******************************/ - -/* All Sizes */ -.ui.container { - display: block; - max-width: @maxWidth !important; -} - -/* Mobile */ -@media only screen and (max-width: @largestMobileScreen) { - .ui.container { - width: @mobileWidth !important; - margin-left: @mobileGutter !important; - margin-right: @mobileGutter !important; - } - .ui.grid.container { - width: @mobileGridWidth !important; - } - .ui.relaxed.grid.container { - width: @mobileRelaxedGridWidth !important; - } - .ui.very.relaxed.grid.container { - width: @mobileVeryRelaxedGridWidth !important; - } -} - -/* Tablet */ -@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) { - .ui.container { - width: @tabletWidth; - margin-left: @tabletGutter !important; - margin-right: @tabletGutter !important; - } - .ui.grid.container { - width: @tabletGridWidth !important; - } - .ui.relaxed.grid.container { - width: @tabletRelaxedGridWidth !important; - } - .ui.very.relaxed.grid.container { - width: @tabletVeryRelaxedGridWidth !important; - } -} - -/* Small Monitor */ -@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) { - .ui.container { - width: @computerWidth; - margin-left: @computerGutter !important; - margin-right: @computerGutter !important; - } - .ui.grid.container { - width: @computerGridWidth !important; - } - .ui.relaxed.grid.container { - width: @computerRelaxedGridWidth !important; - } - .ui.very.relaxed.grid.container { - width: @computerVeryRelaxedGridWidth !important; - } -} - -/* Large Monitor */ -@media only screen and (min-width: @largeMonitorBreakpoint) { - .ui.container { - width: @largeMonitorWidth; - margin-left: @largeMonitorGutter !important; - margin-right: @largeMonitorGutter !important; - } - .ui.grid.container { - width: @largeMonitorGridWidth !important; - } - .ui.relaxed.grid.container { - width: @largeMonitorRelaxedGridWidth !important; - } - .ui.very.relaxed.grid.container { - width: @largeMonitorVeryRelaxedGridWidth !important; - } -} - -/******************************* - Types -*******************************/ - - -/* Text Container */ -.ui.text.container { - font-family: @textFontFamily; - max-width: @textWidth !important; - line-height: @textLineHeight; -} - -.ui.text.container { - font-size: @textSize; -} - -/* Fluid */ -.ui.fluid.container { - width: 100%; -} - - -/******************************* - Variations -*******************************/ - -.ui[class*="left aligned"].container { - text-align: left; -} -.ui[class*="center aligned"].container { - text-align: center; -} -.ui[class*="right aligned"].container { - text-align: right; -} -.ui.justified.container { - text-align: justify; - hyphens: auto; -} - - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/divider.less b/node_modules/semantic-ui/src/definitions/elements/divider.less deleted file mode 100755 index 28c0c68..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/divider.less +++ /dev/null @@ -1,255 +0,0 @@ -/*! - * # Semantic UI - Divider - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'divider'; - -@import (multiple) '../../theme.config'; - - -/******************************* - Divider -*******************************/ - -.ui.divider { - margin: @margin; - - line-height: 1; - height: 0em; - - font-weight: @fontWeight; - text-transform: @textTransform; - letter-spacing: @letterSpacing; - color: @color; - - user-select: none; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -/*-------------- - Basic ----------------*/ - -.ui.divider:not(.vertical):not(.horizontal) { - border-top: @shadowWidth solid @shadowColor; - border-bottom: @highlightWidth solid @highlightColor; -} - -/*-------------- - Coupling ----------------*/ - -/* Allow divider between each column row */ -.ui.grid > .column + .divider, -.ui.grid > .row > .column + .divider { - left: auto; -} - -/*-------------- - Horizontal ----------------*/ - -.ui.horizontal.divider { - display: table; - white-space: nowrap; - - height: auto; - margin: @horizontalMargin; - line-height: 1; - text-align: center; -} - -.ui.horizontal.divider:before, -.ui.horizontal.divider:after { - content: ''; - display: table-cell; - position: relative; - top: 50%; - width: 50%; - background-repeat: no-repeat; -} - -.ui.horizontal.divider:before { - background-position: right @horizontalDividerMargin top 50%; -} -.ui.horizontal.divider:after { - background-position: left @horizontalDividerMargin top 50%; -} - -/*-------------- - Vertical ----------------*/ - -.ui.vertical.divider { - position: absolute; - z-index: 2; - top: 50%; - left: 50%; - - margin: 0rem; - padding: 0em; - width: auto; - height: 50%; - - line-height: 0em; - text-align: center; - transform: translateX(-50%); -} - -.ui.vertical.divider:before, -.ui.vertical.divider:after { - position: absolute; - left: 50%; - content: ''; - z-index: 3; - - border-left: @shadowWidth solid @shadowColor; - border-right: @highlightWidth solid @highlightColor; - - width: 0%; - height: @verticalDividerHeight; -} - -.ui.vertical.divider:before { - top: -100%; -} -.ui.vertical.divider:after { - top: auto; - bottom: 0px; -} - -/* Inside grid */ -@media only screen and (max-width : @largestMobileScreen) { - - .ui.stackable.grid .ui.vertical.divider, - .ui.grid .stackable.row .ui.vertical.divider { - display: table; - white-space: nowrap; - height: auto; - margin: @horizontalMargin; - overflow: hidden; - line-height: 1; - text-align: center; - position: static; - top: 0; - left: 0; - transform: none; - } - - .ui.stackable.grid .ui.vertical.divider:before, - .ui.grid .stackable.row .ui.vertical.divider:before, - .ui.stackable.grid .ui.vertical.divider:after, - .ui.grid .stackable.row .ui.vertical.divider:after { - position: static; - left: 0; - border-left: none; - border-right: none; - content: ''; - display: table-cell; - position: relative; - top: 50%; - width: 50%; - background-repeat: no-repeat; - } - - .ui.stackable.grid .ui.vertical.divider:before, - .ui.grid .stackable.row .ui.vertical.divider:before { - background-position: right @horizontalDividerMargin top 50%; - } - .ui.stackable.grid .ui.vertical.divider:after, - .ui.grid .stackable.row .ui.vertical.divider:after { - background-position: left @horizontalDividerMargin top 50%; - } -} - -/*-------------- - Icon ----------------*/ - -.ui.divider > .icon { - margin: @dividerIconMargin; - font-size: @dividerIconSize; - height: 1em; - vertical-align: middle; -} - -/******************************* - Variations -*******************************/ - -/*-------------- - Hidden ----------------*/ - -.ui.hidden.divider { - border-color: transparent !important; -} -.ui.hidden.divider:before, -.ui.hidden.divider:after { - display: none; -} - -/*-------------- - Inverted ----------------*/ - -.ui.divider.inverted, -.ui.vertical.inverted.divider, -.ui.horizontal.inverted.divider { - color: @invertedTextColor; -} -.ui.divider.inverted, -.ui.divider.inverted:after, -.ui.divider.inverted:before { - border-top-color: @invertedShadowColor !important; - border-left-color: @invertedShadowColor !important; - border-bottom-color: @invertedHighlightColor !important; - border-right-color: @invertedHighlightColor !important; -} - -/*-------------- - Fitted ----------------*/ - -.ui.fitted.divider { - margin: 0em; -} - -/*-------------- - Clearing ----------------*/ - -.ui.clearing.divider { - clear: both; -} - -/*-------------- - Section ----------------*/ - -.ui.section.divider { - margin-top: @sectionMargin; - margin-bottom: @sectionMargin; -} - -/*-------------- - Sizes ----------------*/ - -.ui.divider { - font-size: @medium; -} - - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/flag.less b/node_modules/semantic-ui/src/definitions/elements/flag.less deleted file mode 100755 index 1f4145e..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/flag.less +++ /dev/null @@ -1,52 +0,0 @@ -/*! - * # Semantic UI - Flag - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'flag'; - -@import (multiple) '../../theme.config'; - - -/******************************* - Flag -*******************************/ - -i.flag:not(.icon) { - display: inline-block; - - width: @width; - height: @height; - - line-height: @height; - vertical-align: @verticalAlign; - margin: 0em @margin 0em 0em; - - text-decoration: inherit; - - speak: none; - font-smoothing: antialiased; - backface-visibility: hidden; -} - -/* Sprite */ -i.flag:not(.icon):before { - display: inline-block; - content: ''; - background: url(@spritePath) no-repeat -108px -1976px; - width: @width; - height: @height; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/header.less b/node_modules/semantic-ui/src/definitions/elements/header.less deleted file mode 100755 index 07ef64f..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/header.less +++ /dev/null @@ -1,708 +0,0 @@ -/*! - * # Semantic UI - Header - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'header'; - -@import (multiple) '../../theme.config'; - - -/******************************* - Header -*******************************/ - -/* Standard */ -.ui.header { - border: none; - margin: @margin; - padding: @verticalPadding @horizontalPadding; - font-family: @fontFamily; - font-weight: @fontWeight; - line-height: @lineHeight; - text-transform: @textTransform; - color: @textColor; -} - -.ui.header:first-child { - margin-top: @firstMargin; -} -.ui.header:last-child { - margin-bottom: @lastMargin; -} - -/*-------------- - Sub Header ----------------*/ - -.ui.header .sub.header { - display: block; - font-weight: normal; - padding: 0em; - margin: @subHeaderMargin; - font-size: @subHeaderFontSize; - line-height: @subHeaderLineHeight; - color: @subHeaderColor; -} - -/*-------------- - Icon ----------------*/ - -.ui.header > .icon { - display: table-cell; - opacity: @iconOpacity; - font-size: @iconSize; - padding-top: @iconOffset; - vertical-align: @iconAlignment; -} - -/* With Text Node */ -.ui.header .icon:only-child { - display: inline-block; - padding: 0em; - margin-right: @iconMargin; -} - -/*------------------- - Image ---------------------*/ - -.ui.header > .image:not(.icon), -.ui.header > img { - display: inline-block; - margin-top: @imageOffset; - width: @imageWidth; - height: @imageHeight; - vertical-align: @imageAlignment; -} -.ui.header > .image:not(.icon):only-child, -.ui.header > img:only-child { - margin-right: @imageMargin; -} - -/*-------------- - Content ----------------*/ - -.ui.header .content { - display: inline-block; - vertical-align: @contentAlignment; -} - -/* After Image */ -.ui.header > img + .content, -.ui.header > .image + .content { - padding-left: @imageMargin; - vertical-align: @contentImageAlignment; -} - -/* After Icon */ -.ui.header > .icon + .content { - padding-left: @iconMargin; - display: table-cell; - vertical-align: @contentIconAlignment; -} - - -/*-------------- - Loose Coupling ----------------*/ - -.ui.header .ui.label { - font-size: @labelSize; - margin-left: @labelDistance; - vertical-align: @labelVerticalAlign; -} - -/* Positioning */ -.ui.header + p { - margin-top: @nextParagraphDistance; -} - - - -/******************************* - Types -*******************************/ - - -/*-------------- - Page ----------------*/ - -h1.ui.header { - font-size: @h1; -} -h2.ui.header { - font-size: @h2; -} -h3.ui.header { - font-size: @h3; -} -h4.ui.header { - font-size: @h4; -} -h5.ui.header { - font-size: @h5; -} - - -/* Sub Header */ -h1.ui.header .sub.header { - font-size: @h1SubHeaderFontSize; -} -h2.ui.header .sub.header { - font-size: @h2SubHeaderFontSize; -} -h3.ui.header .sub.header { - font-size: @h3SubHeaderFontSize; -} -h4.ui.header .sub.header { - font-size: @h4SubHeaderFontSize; -} -h5.ui.header .sub.header { - font-size: @h5SubHeaderFontSize; -} - - -/*-------------- - Content Heading ----------------*/ - -.ui.huge.header { - min-height: 1em; - font-size: @hugeFontSize; -} -.ui.large.header { - font-size: @largeFontSize; -} -.ui.medium.header { - font-size: @mediumFontSize; -} -.ui.small.header { - font-size: @smallFontSize; -} -.ui.tiny.header { - font-size: @tinyFontSize; -} - -/* Sub Header */ -.ui.huge.header .sub.header { - font-size: @hugeSubHeaderFontSize; -} -.ui.large.header .sub.header { - font-size: @hugeSubHeaderFontSize; -} -.ui.header .sub.header { - font-size: @subHeaderFontSize; -} -.ui.small.header .sub.header { - font-size: @smallSubHeaderFontSize; -} -.ui.tiny.header .sub.header { - font-size: @tinySubHeaderFontSize; -} - -/*-------------- - Sub Heading ----------------*/ - -.ui.sub.header { - padding: 0em; - margin-bottom: @subHeadingDistance; - font-weight: @subHeadingFontWeight; - font-size: @subHeadingFontSize; - text-transform: @subHeadingTextTransform; - color: @subHeadingColor; -} - -.ui.small.sub.header { - font-size: @smallSubHeadingSize; -} -.ui.sub.header { - font-size: @subHeadingFontSize; -} -.ui.large.sub.header { - font-size: @largeSubHeadingSize; -} -.ui.huge.sub.header { - font-size: @hugeSubHeadingSize; -} - - - -/*------------------- - Icon ---------------------*/ - -.ui.icon.header { - display: inline-block; - text-align: center; - margin: @iconHeaderTopMargin 0em @iconHeaderBottomMargin; -} -.ui.icon.header:after { - content: ''; - display: block; - height: 0px; - clear: both; - visibility: hidden; -} - -.ui.icon.header:first-child { - margin-top: @iconHeaderFirstMargin; -} -.ui.icon.header .icon { - float: none; - display: block; - width: auto; - height: auto; - line-height: 1; - padding: 0em; - font-size: @iconHeaderSize; - margin: 0em auto @iconHeaderMargin; - opacity: @iconHeaderOpacity; -} -.ui.icon.header .content { - display: block; - padding: 0em; -} -.ui.icon.header .circular.icon { - font-size: @circularHeaderIconSize; -} -.ui.icon.header .square.icon { - font-size: @squareHeaderIconSize; -} -.ui.block.icon.header .icon { - margin-bottom: 0em; -} -.ui.icon.header.aligned { - margin-left: auto; - margin-right: auto; - display: block; -} - -/******************************* - States -*******************************/ - -.ui.disabled.header { - opacity: @disabledOpacity; -} - - -/******************************* - Variations -*******************************/ - -/*------------------- - Inverted ---------------------*/ - -.ui.inverted.header { - color: @invertedColor; -} -.ui.inverted.header .sub.header { - color: @invertedSubHeaderColor; -} -.ui.inverted.attached.header { - background: @invertedAttachedBackground; - box-shadow: none; - border-color: transparent; -} -.ui.inverted.block.header { - background: @invertedBlockBackground; - box-shadow: none; -} -.ui.inverted.block.header { - border-bottom: none; -} - - -/*------------------- - Colors ---------------------*/ - -/*--- Red ---*/ -.ui.red.header { - color: @red !important; -} -a.ui.red.header:hover { - color: @redHover !important; -} -.ui.red.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @red; -} - -/* Inverted */ -.ui.inverted.red.header { - color: @lightRed !important; -} -a.ui.inverted.red.header:hover { - color: @lightRedHover !important; -} - -/*--- Orange ---*/ -.ui.orange.header { - color: @orange !important; -} -a.ui.orange.header:hover { - color: @orangeHover !important; -} -.ui.orange.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @orange; -} -/* Inverted */ -.ui.inverted.orange.header { - color: @lightOrange !important; -} -a.ui.inverted.orange.header:hover { - color: @lightOrangeHover !important; -} - -/*--- Olive ---*/ -.ui.olive.header { - color: @olive !important; -} -a.ui.olive.header:hover { - color: @oliveHover !important; -} -.ui.olive.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @olive; -} -/* Inverted */ -.ui.inverted.olive.header { - color: @lightOlive !important; -} -a.ui.inverted.olive.header:hover { - color: @lightOliveHover !important; -} - -/*--- Yellow ---*/ -.ui.yellow.header { - color: @yellow !important; -} -a.ui.yellow.header:hover { - color: @yellowHover !important; -} -.ui.yellow.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @yellow; -} -/* Inverted */ -.ui.inverted.yellow.header { - color: @lightYellow !important; -} -a.ui.inverted.yellow.header:hover { - color: @lightYellowHover !important; -} - -/*--- Green ---*/ -.ui.green.header { - color: @green !important; -} -a.ui.green.header:hover { - color: @greenHover !important; -} -.ui.green.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @green; -} -/* Inverted */ -.ui.inverted.green.header { - color: @lightGreen !important; -} -a.ui.inverted.green.header:hover { - color: @lightGreenHover !important; -} - -/*--- Teal ---*/ -.ui.teal.header { - color: @teal !important; -} -a.ui.teal.header:hover { - color: @tealHover !important; -} -.ui.teal.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @teal; -} -/* Inverted */ -.ui.inverted.teal.header { - color: @lightTeal !important; -} -a.ui.inverted.teal.header:hover { - color: @lightTealHover !important; -} - -/*--- Blue ---*/ -.ui.blue.header { - color: @blue !important; -} -a.ui.blue.header:hover { - color: @blueHover !important; -} -.ui.blue.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @blue; -} -/* Inverted */ -.ui.inverted.blue.header { - color: @lightBlue !important; -} -a.ui.inverted.blue.header:hover { - color: @lightBlueHover !important; -} - -/*--- Violet ---*/ -.ui.violet.header { - color: @violet !important; -} -a.ui.violet.header:hover { - color: @violetHover !important; -} -.ui.violet.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @violet; -} -/* Inverted */ -.ui.inverted.violet.header { - color: @lightViolet !important; -} -a.ui.inverted.violet.header:hover { - color: @lightVioletHover !important; -} - -/*--- Purple ---*/ -.ui.purple.header { - color: @purple !important; -} -a.ui.purple.header:hover { - color: @purpleHover !important; -} -.ui.purple.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @purple; -} -/* Inverted */ -.ui.inverted.purple.header { - color: @lightPurple !important; -} -a.ui.inverted.purple.header:hover { - color: @lightPurpleHover !important; -} - -/*--- Pink ---*/ -.ui.pink.header { - color: @pink !important; -} -a.ui.pink.header:hover { - color: @pinkHover !important; -} -.ui.pink.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @pink; -} -/* Inverted */ -.ui.inverted.pink.header { - color: @lightPink !important; -} -a.ui.inverted.pink.header:hover { - color: @lightPinkHover !important; -} - -/*--- Brown ---*/ -.ui.brown.header { - color: @brown !important; -} -a.ui.brown.header:hover { - color: @brownHover !important; -} -.ui.brown.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @brown; -} -/* Inverted */ -.ui.inverted.brown.header { - color: @lightBrown !important; -} -a.ui.inverted.brown.header:hover { - color: @lightBrownHover !important; -} - -/*--- Grey ---*/ -.ui.grey.header { - color: @grey !important; -} -a.ui.grey.header:hover { - color: @greyHover !important; -} -.ui.grey.dividing.header { - border-bottom: @dividedColoredBorderWidth solid @grey; -} -/* Inverted */ -.ui.inverted.grey.header { - color: @lightGrey !important; -} -a.ui.inverted.grey.header:hover { - color: @lightGreyHover !important; -} - - -/*------------------- - Aligned ---------------------*/ - -.ui.left.aligned.header { - text-align: left; -} -.ui.right.aligned.header { - text-align: right; -} -.ui.centered.header, -.ui.center.aligned.header { - text-align: center; -} -.ui.justified.header { - text-align: justify; -} -.ui.justified.header:after { - display: inline-block; - content: ''; - width: 100%; -} - -/*------------------- - Floated ---------------------*/ - -.ui.floated.header, -.ui[class*="left floated"].header { - float: left; - margin-top: 0em; - margin-right: @floatedMargin; -} -.ui[class*="right floated"].header { - float: right; - margin-top: 0em; - margin-left: @floatedMargin; -} - -/*------------------- - Fitted ---------------------*/ - -.ui.fitted.header { - padding: 0em; -} - - -/*------------------- - Dividing ---------------------*/ - -.ui.dividing.header { - padding-bottom: @dividedBorderPadding; - border-bottom: @dividedBorder; -} -.ui.dividing.header .sub.header { - padding-bottom: @dividedSubHeaderPadding; -} -.ui.dividing.header .icon { - margin-bottom: @dividedIconPadding; -} - -.ui.inverted.dividing.header { - border-bottom-color: @invertedDividedBorderColor; -} - - -/*------------------- - Block ---------------------*/ - -.ui.block.header { - background: @blockBackground; - padding: @blockVerticalPadding @blockHorizontalPadding; - box-shadow: @blockBoxShadow; - border: @blockBorder; - border-radius: @blockBorderRadius; -} - -.ui.tiny.block.header { - font-size: @tinyBlock; -} -.ui.small.block.header { - font-size: @smallBlock; -} -.ui.block.header:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { - font-size: @mediumBlock; -} -.ui.large.block.header { - font-size: @largeBlock; -} -.ui.huge.block.header { - font-size: @hugeBlock; -} - -/*------------------- - Attached ---------------------*/ - -.ui.attached.header { - background: @attachedBackground; - padding: @attachedVerticalPadding @attachedHorizontalPadding; - margin-left: @attachedOffset; - margin-right: @attachedOffset; - box-shadow: @attachedBoxShadow; - border: @attachedBorder; -} -.ui.attached.block.header { - background: @blockBackground; -} - -.ui.attached:not(.top):not(.bottom).header { - margin-top: 0em; - margin-bottom: 0em; - border-top: none; - border-radius: 0em; -} -.ui.top.attached.header { - margin-bottom: 0em; - border-radius: @attachedBorderRadius @attachedBorderRadius 0em 0em; -} -.ui.bottom.attached.header { - margin-top: 0em; - border-top: none; - border-radius: 0em 0em @attachedBorderRadius @attachedBorderRadius; -} - -/* Attached Sizes */ -.ui.tiny.attached.header { - font-size: @tinyAttachedSize; -} -.ui.small.attached.header { - font-size: @smallAttachedSize; -} -.ui.attached.header:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { - font-size: @mediumAttachedSize; -} -.ui.large.attached.header { - font-size: @largeAttachedSize; -} -.ui.huge.attached.header { - font-size: @hugeAttachedSize; -} - -/*------------------- - Sizing ---------------------*/ - -.ui.header:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { - font-size: @mediumFontSize; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/icon.less b/node_modules/semantic-ui/src/definitions/elements/icon.less deleted file mode 100755 index 29290dc..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/icon.less +++ /dev/null @@ -1,477 +0,0 @@ -/*! - * # Semantic UI - Icon - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'icon'; - -@import (multiple) '../../theme.config'; - - -/******************************* - Icon -*******************************/ - -@font-face { - font-family: 'Icons'; - src: @fallbackSRC; - src: @src; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-decoration: inherit; - text-transform: none; -} - -i.icon { - display: inline-block; - opacity: @opacity; - - margin: 0em @distanceFromText 0em 0em; - - width: @width; - height: @height; - - font-family: 'Icons'; - font-style: normal; - font-weight: normal; - text-decoration: inherit; - text-align: center; - - speak: none; - font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - backface-visibility: hidden; -} - -i.icon:before { - background: none !important; -} - -/******************************* - Types -*******************************/ - -/*-------------- - Loading ----------------*/ - -i.icon.loading { - height: 1em; - line-height: 1; - animation: icon-loading @loadingDuration linear infinite; -} -@keyframes icon-loading { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - -/******************************* - States -*******************************/ - -i.icon.hover { - opacity: 1 !important; -} - -i.icon.active { - opacity: 1 !important; -} - -i.emphasized.icon { - opacity: 1 !important; -} - -i.disabled.icon { - opacity: @disabledOpacity !important; -} - - -/******************************* - Variations -*******************************/ - - -/*------------------- - Fitted ---------------------*/ - -i.fitted.icon { - width: auto; - margin: 0em; -} - -/*------------------- - Link ---------------------*/ - -i.link.icon, i.link.icons { - cursor: pointer; - opacity: @linkOpacity; - transition: opacity @defaultDuration @defaultEasing; -} -i.link.icon:hover, i.link.icons:hover { - opacity: 1 !important; -} - -/*------------------- - Circular ---------------------*/ - -i.circular.icon { - border-radius: 500em !important; - line-height: 1 !important; - - padding: @circularPadding !important; - box-shadow: @circularShadow; - - width: @circularSize !important; - height: @circularSize !important; -} -i.circular.inverted.icon { - border: none; - box-shadow: none; -} - -/*------------------- - Flipped ---------------------*/ - -i.flipped.icon, -i.horizontally.flipped.icon { - transform: scale(-1, 1); -} -i.vertically.flipped.icon { - transform: scale(1, -1); -} - -/*------------------- - Rotated ---------------------*/ - -i.rotated.icon, -i.right.rotated.icon, -i.clockwise.rotated.icon { - transform: rotate(90deg); -} - -i.left.rotated.icon, -i.counterclockwise.rotated.icon { - transform: rotate(-90deg); -} - -/*------------------- - Bordered ---------------------*/ - -i.bordered.icon { - line-height: 1; - vertical-align: baseline; - - width: @borderedSize; - height: @borderedSize; - padding: @borderedVerticalPadding @borderedHorizontalPadding !important; - box-shadow: @borderedShadow; -} -i.bordered.inverted.icon { - border: none; - box-shadow: none; -} - -/*------------------- - Inverted ---------------------*/ - -/* Inverted Shapes */ -i.inverted.bordered.icon, -i.inverted.circular.icon { - background-color: @black !important; - color: @white !important; -} - -i.inverted.icon { - color: @white; -} - - -/*------------------- - Colors ---------------------*/ - -/* Red */ -i.red.icon { - color: @red !important; -} -i.inverted.red.icon { - color: @lightRed !important; -} -i.inverted.bordered.red.icon, -i.inverted.circular.red.icon { - background-color: @red !important; - color: @white !important; -} - -/* Orange */ -i.orange.icon { - color: @orange !important; -} -i.inverted.orange.icon { - color: @lightOrange !important; -} -i.inverted.bordered.orange.icon, -i.inverted.circular.orange.icon { - background-color: @orange !important; - color: @white !important; -} - -/* Yellow */ -i.yellow.icon { - color: @yellow !important; -} -i.inverted.yellow.icon { - color: @lightYellow !important; -} -i.inverted.bordered.yellow.icon, -i.inverted.circular.yellow.icon { - background-color: @yellow !important; - color: @white !important; -} - -/* Olive */ -i.olive.icon { - color: @olive !important; -} -i.inverted.olive.icon { - color: @lightOlive !important; -} -i.inverted.bordered.olive.icon, -i.inverted.circular.olive.icon { - background-color: @olive !important; - color: @white !important; -} - -/* Green */ -i.green.icon { - color: @green !important; -} -i.inverted.green.icon { - color: @lightGreen !important; -} -i.inverted.bordered.green.icon, -i.inverted.circular.green.icon { - background-color: @green !important; - color: @white !important; -} - -/* Teal */ -i.teal.icon { - color: @teal !important; -} -i.inverted.teal.icon { - color: @lightTeal !important; -} -i.inverted.bordered.teal.icon, -i.inverted.circular.teal.icon { - background-color: @teal !important; - color: @white !important; -} - -/* Blue */ -i.blue.icon { - color: @blue !important; -} -i.inverted.blue.icon { - color: @lightBlue !important; -} -i.inverted.bordered.blue.icon, -i.inverted.circular.blue.icon { - background-color: @blue !important; - color: @white !important; -} - -/* Violet */ -i.violet.icon { - color: @violet !important; -} -i.inverted.violet.icon { - color: @lightViolet !important; -} -i.inverted.bordered.violet.icon, -i.inverted.circular.violet.icon { - background-color: @violet !important; - color: @white !important; -} - -/* Purple */ -i.purple.icon { - color: @purple !important; -} -i.inverted.purple.icon { - color: @lightPurple !important; -} -i.inverted.bordered.purple.icon, -i.inverted.circular.purple.icon { - background-color: @purple !important; - color: @white !important; -} - -/* Pink */ -i.pink.icon { - color: @pink !important; -} -i.inverted.pink.icon { - color: @lightPink !important; -} -i.inverted.bordered.pink.icon, -i.inverted.circular.pink.icon { - background-color: @pink !important; - color: @white !important; -} - -/* Brown */ -i.brown.icon { - color: @brown !important; -} -i.inverted.brown.icon { - color: @lightBrown !important; -} -i.inverted.bordered.brown.icon, -i.inverted.circular.brown.icon { - background-color: @brown !important; - color: @white !important; -} - -/* Grey */ -i.grey.icon { - color: @grey !important; -} -i.inverted.grey.icon { - color: @lightGrey !important; -} -i.inverted.bordered.grey.icon, -i.inverted.circular.grey.icon { - background-color: @grey !important; - color: @white !important; -} - -/* Black */ -i.black.icon { - color: @black !important; -} -i.inverted.black.icon { - color: @lightBlack !important; -} -i.inverted.bordered.black.icon, -i.inverted.circular.black.icon { - background-color: @black !important; - color: @white !important; -} - -/*------------------- - Sizes ---------------------*/ - -i.mini.icon, -i.mini.icons { - line-height: 1; - font-size: @mini; -} -i.tiny.icon, -i.tiny.icons { - line-height: 1; - font-size: @tiny; -} -i.small.icon, -i.small.icons { - line-height: 1; - font-size: @small; -} -i.icon, -i.icons { - font-size: @medium; -} -i.large.icon, -i.large.icons { - line-height: 1; - vertical-align: middle; - font-size: @large; -} -i.big.icon, -i.big.icons { - line-height: 1; - vertical-align: middle; - font-size: @big; -} -i.huge.icon, -i.huge.icons { - line-height: 1; - vertical-align: middle; - font-size: @huge; -} -i.massive.icon, -i.massive.icons { - line-height: 1; - vertical-align: middle; - font-size: @massive; -} - -/******************************* - Groups -*******************************/ - -i.icons { - display: inline-block; - position: relative; - line-height: 1; -} - -i.icons .icon { - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - margin: 0em; - margin: 0; -} - -i.icons .icon:first-child { - position: static; - width: auto; - height: auto; - vertical-align: top; - transform: none; - margin-right: @distanceFromText; -} - -/* Corner Icon */ -i.icons .corner.icon { - top: auto; - left: auto; - right: 0; - bottom: 0; - transform: none; - font-size: @cornerIconSize; - text-shadow: @cornerIconShadow; -} - -i.icons .inverted.corner.icon { - text-shadow: @cornerIconInvertedShadow; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/image.less b/node_modules/semantic-ui/src/definitions/elements/image.less deleted file mode 100755 index b996cde..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/image.less +++ /dev/null @@ -1,324 +0,0 @@ -/*! - * # Semantic UI - Image - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'image'; - -@import (multiple) '../../theme.config'; - - -/******************************* - Image -*******************************/ - -.ui.image { - position: relative; - display: inline-block; - vertical-align: middle; - max-width: 100%; - background-color: @placeholderColor; -} - -img.ui.image { - display: block; -} - -.ui.image svg, -.ui.image img { - display: block; - max-width: 100%; - height: auto; -} - - -/******************************* - States -*******************************/ - -.ui.hidden.images, -.ui.hidden.image { - display: none; -} -.ui.hidden.transition.images, -.ui.hidden.transition.image { - display: block; - visibility: hidden; -} - - -.ui.disabled.images, -.ui.disabled.image { - cursor: default; - opacity: @disabledOpacity; -} - - -/******************************* - Variations -*******************************/ - - -/*-------------- - Inline ----------------*/ - -.ui.inline.image, -.ui.inline.image svg, -.ui.inline.image img { - display: inline-block; -} - -/*------------------ - Vertical Aligned --------------------*/ - -.ui.top.aligned.images .image, -.ui.top.aligned.image, -.ui.top.aligned.image svg, -.ui.top.aligned.image img { - display: inline-block; - vertical-align: top; -} -.ui.middle.aligned.images .image, -.ui.middle.aligned.image, -.ui.middle.aligned.image svg, -.ui.middle.aligned.image img { - display: inline-block; - vertical-align: middle; -} -.ui.bottom.aligned.images .image, -.ui.bottom.aligned.image, -.ui.bottom.aligned.image svg, -.ui.bottom.aligned.image img { - display: inline-block; - vertical-align: bottom; -} - -/*-------------- - Rounded ----------------*/ - -.ui.rounded.images .image, -.ui.rounded.image, -.ui.rounded.images .image > *, -.ui.rounded.image > * { - border-radius: @roundedBorderRadius; -} - -/*-------------- - Bordered ----------------*/ - -.ui.bordered.images .image, -.ui.bordered.images img, -.ui.bordered.images svg, -.ui.bordered.image img, -.ui.bordered.image svg, -img.ui.bordered.image { - border: @imageBorder; -} - -/*-------------- - Circular ----------------*/ - -.ui.circular.images, -.ui.circular.image { - overflow: hidden; -} - -.ui.circular.images .image, -.ui.circular.image, -.ui.circular.images .image > *, -.ui.circular.image > * { - -webkit-border-radius: @circularRadius; - -moz-border-radius: @circularRadius; - border-radius: @circularRadius; -} - -/*-------------- - Fluid ----------------*/ - -.ui.fluid.images, -.ui.fluid.image, -.ui.fluid.images img, -.ui.fluid.images svg, -.ui.fluid.image svg, -.ui.fluid.image img { - display: block; - width: 100%; - height: auto; -} - - -/*-------------- - Avatar ----------------*/ - -.ui.avatar.images .image, -.ui.avatar.images img, -.ui.avatar.images svg, -.ui.avatar.image img, -.ui.avatar.image svg, -.ui.avatar.image { - margin-right: @avatarMargin; - - display: inline-block; - width: @avatarSize; - height: @avatarSize; - - -webkit-border-radius: @circularRadius; - -moz-border-radius: @circularRadius; - border-radius: @circularRadius; -} - -/*------------------- - Spaced ---------------------*/ - -.ui.spaced.image { - display: inline-block !important; - margin-left: @spacedDistance; - margin-right: @spacedDistance; -} - -.ui[class*="left spaced"].image { - margin-left: @spacedDistance; - margin-right: 0em; -} - -.ui[class*="right spaced"].image { - margin-left: 0em; - margin-right: @spacedDistance; -} - -/*------------------- - Floated ---------------------*/ - -.ui.floated.image, -.ui.floated.images { - float: left; - margin-right: @floatedHorizontalMargin; - margin-bottom: @floatedVerticalMargin; -} -.ui.right.floated.images, -.ui.right.floated.image { - float: right; - margin-right: 0em; - margin-bottom: @floatedVerticalMargin; - margin-left: @floatedHorizontalMargin; -} - -.ui.floated.images:last-child, -.ui.floated.image:last-child { - margin-bottom: 0em; -} - - -.ui.centered.images, -.ui.centered.image { - margin-left: auto; - margin-right: auto; -} - -/*-------------- - Sizes ----------------*/ - -.ui.mini.images .image, -.ui.mini.images img, -.ui.mini.images svg, -.ui.mini.image { - width: @miniWidth; - height: auto; - font-size: @mini; -} -.ui.tiny.images .image, -.ui.tiny.images img, -.ui.tiny.images svg, -.ui.tiny.image { - width: @tinyWidth; - height: auto; - font-size: @tiny; -} -.ui.small.images .image, -.ui.small.images img, -.ui.small.images svg, -.ui.small.image { - width: @smallWidth; - height: auto; - font-size: @small; -} -.ui.medium.images .image, -.ui.medium.images img, -.ui.medium.images svg, -.ui.medium.image { - width: @mediumWidth; - height: auto; - font-size: @medium; -} -.ui.large.images .image, -.ui.large.images img, -.ui.large.images svg, -.ui.large.image { - width: @largeWidth; - height: auto; - font-size: @large; -} -.ui.big.images .image, -.ui.big.images img, -.ui.big.images svg, -.ui.big.image { - width: @bigWidth; - height: auto; - font-size: @big; -} -.ui.huge.images .image, -.ui.huge.images img, -.ui.huge.images svg, -.ui.huge.image { - width: @hugeWidth; - height: auto; - font-size: @huge; -} -.ui.massive.images .image, -.ui.massive.images img, -.ui.massive.images svg, -.ui.massive.image { - width: @massiveWidth; - height: auto; - font-size: @massive; -} - - -/******************************* - Groups -*******************************/ - -.ui.images { - font-size: 0em; - margin: 0em -@imageHorizontalMargin 0rem; -} - -.ui.images .image, -.ui.images img, -.ui.images svg { - display: inline-block; - margin: 0em @imageHorizontalMargin @imageVerticalMargin; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/input.less b/node_modules/semantic-ui/src/definitions/elements/input.less deleted file mode 100755 index 991a309..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/input.less +++ /dev/null @@ -1,507 +0,0 @@ -/*! - * # Semantic UI - Input - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'input'; - -@import (multiple) '../../theme.config'; - - -/******************************* - Standard -*******************************/ - - -/*-------------------- - Inputs ----------------------*/ - -.ui.input { - position: relative; - font-weight: normal; - font-style: normal; - display: inline-flex; - color: @inputColor; -} -.ui.input input { - margin: 0em; - max-width: 100%; - flex: 1 0 auto; - outline: none; - -webkit-tap-highlight-color: rgba(255, 255, 255, 0); - text-align: @textAlign; - line-height: @lineHeight; - - font-family: @inputFont; - padding: @padding; - - background: @background; - border: @border; - color: @inputColor; - border-radius: @borderRadius; - transition: @transition; - - box-shadow: @boxShadow; -} - - -/*-------------------- - Placeholder ----------------------*/ - -/* browsers require these rules separate */ - -.ui.input input::-webkit-input-placeholder { - color: @placeholderColor; -} -.ui.input input::-moz-placeholder { - color: @placeholderColor; -} -.ui.input input:-ms-input-placeholder { - color: @placeholderColor; -} - - -/******************************* - States -*******************************/ - -/*-------------------- - Disabled ----------------------*/ - -.ui.disabled.input, -.ui.input input[disabled] { - opacity: @disabledOpacity; -} - -.ui.disabled.input input, -.ui.input input[disabled] { - pointer-events: none; -} - -/*-------------------- - Active ----------------------*/ - -.ui.input input:active, -.ui.input.down input { - border-color: @downBorderColor; - background: @downBackground; - color: @downColor; - box-shadow: @downBoxShadow; -} - -/*-------------------- - Loading ----------------------*/ - -.ui.loading.loading.input > i.icon:before { - position: absolute; - content: ''; - top: 50%; - left: 50%; - - margin: @loaderMargin; - width: @loaderSize; - height: @loaderSize; - - border-radius: @circularRadius; - border: @loaderLineWidth solid @loaderFillColor; -} -.ui.loading.loading.input > i.icon:after { - position: absolute; - content: ''; - top: 50%; - left: 50%; - - margin: @loaderMargin; - width: @loaderSize; - height: @loaderSize; - - animation: button-spin @loaderSpeed linear; - animation-iteration-count: infinite; - - border-radius: @circularRadius; - - border-color: @loaderLineColor transparent transparent; - border-style: solid; - border-width: @loaderLineWidth; - - box-shadow: 0px 0px 0px 1px transparent; -} - - -/*-------------------- - Focus ----------------------*/ - -.ui.input.focus input, -.ui.input input:focus { - border-color: @focusBorderColor; - background: @focusBackground; - color: @focusColor; - box-shadow: @focusBoxShadow; -} -.ui.input.focus input::-webkit-input-placeholder, -.ui.input input:focus::-webkit-input-placeholder { - color: @placeholderFocusColor; -} -.ui.input.focus input::-moz-placeholder, -.ui.input input:focus::-moz-placeholder { - color: @placeholderFocusColor; -} -.ui.input.focus input:-ms-input-placeholder, -.ui.input input:focus:-ms-input-placeholder { - color: @placeholderFocusColor; -} - - - -/*-------------------- - Error ----------------------*/ - -.ui.input.error input { - background-color: @errorBackground; - border-color: @errorBorder; - color: @errorColor; - box-shadow: @errorBoxShadow; -} - -/* Error Placeholder */ -.ui.input.error input::-webkit-input-placeholder { - color: @placeholderErrorColor; -} -.ui.input.error input::-moz-placeholder { - color: @placeholderErrorColor; -} -.ui.input.error input:-ms-input-placeholder { - color: @placeholderErrorColor !important; -} - -/* Focused Error Placeholder */ -.ui.input.error input:focus::-webkit-input-placeholder { - color: @placeholderErrorFocusColor; -} -.ui.input.error input:focus::-moz-placeholder { - color: @placeholderErrorFocusColor; -} -.ui.input.error input:focus:-ms-input-placeholder { - color: @placeholderErrorFocusColor !important; -} - -/******************************* - Variations -*******************************/ - -/*-------------------- - Transparent ----------------------*/ - - -.ui.transparent.input input { - border-color: transparent !important; - background-color: transparent !important; - padding: 0em !important; - box-shadow: none !important; -} - -/* Transparent Icon */ -.ui.transparent.icon.input > i.icon { - width: @transparentIconWidth; -} -.ui.transparent.icon.input > input { - padding-left: 0em !important; - padding-right: @transparentIconMargin !important; -} -.ui.transparent[class*="left icon"].input > input { - padding-left: @transparentIconMargin !important; - padding-right: 0em !important; -} - -/* Transparent Inverted */ -.ui.transparent.inverted.input { - color: @transparentInvertedColor; -} -.ui.transparent.inverted.input input { - color: inherit; -} - -.ui.transparent.inverted.input input::-webkit-input-placeholder { - color: @transparentInvertedPlaceholderColor; -} -.ui.transparent.inverted.input input::-moz-placeholder { - color: @transparentInvertedPlaceholderColor; -} -.ui.transparent.inverted.input input:-ms-input-placeholder { - color: @transparentInvertedPlaceholderColor; -} - - -/*-------------------- - Icon ----------------------*/ - -.ui.icon.input > i.icon { - cursor: default; - position: absolute; - line-height: 1; - text-align: center; - top: 0px; - right: 0px; - margin: 0em; - height: 100%; - - width: @iconWidth; - opacity: @iconOpacity; - border-radius: 0em @borderRadius @borderRadius 0em; - transition: @iconTransition; -} -.ui.icon.input > i.icon:not(.link) { - pointer-events: none; -} -.ui.icon.input input { - padding-right: @iconMargin !important; -} - -.ui.icon.input > i.icon:before, -.ui.icon.input > i.icon:after { - left: 0; - position: absolute; - text-align: center; - top: 50%; - width: 100%; - margin-top: @iconOffset; -} -.ui.icon.input > i.link.icon { - cursor: pointer; -} -.ui.icon.input > i.circular.icon { - top: @circularIconVerticalOffset; - right: @circularIconHorizontalOffset; -} - -/* Left Icon Input */ -.ui[class*="left icon"].input > i.icon { - right: auto; - left: @borderWidth; - border-radius: @borderRadius 0em 0em @borderRadius; -} -.ui[class*="left icon"].input > i.circular.icon { - right: auto; - left: @circularIconHorizontalOffset; -} -.ui[class*="left icon"].input > input { - padding-left: @iconMargin !important; - padding-right: @horizontalPadding !important; -} - -/* Focus */ -.ui.icon.input > input:focus ~ i.icon { - opacity: 1; -} - -/*-------------------- - Labeled ----------------------*/ - -/* Adjacent Label */ -.ui.labeled.input > .label { - flex: 0 0 auto; - margin: 0; - font-size: @relativeMedium; -} -.ui.labeled.input > .label:not(.corner) { - padding-top: @verticalPadding; - padding-bottom: @verticalPadding; -} - -/* Regular Label on Left */ -.ui.labeled.input:not([class*="corner labeled"]) .label:first-child { - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; -} -.ui.labeled.input:not([class*="corner labeled"]) .label:first-child + input { - border-top-left-radius: 0px; - border-bottom-left-radius: 0px; - border-left-color: transparent; -} -.ui.labeled.input:not([class*="corner labeled"]) .label:first-child + input:focus { - border-left-color: @focusBorderColor; -} - -/* Regular Label on Right */ -.ui[class*="right labeled"].input input { - border-top-right-radius: 0px !important; - border-bottom-right-radius: 0px !important; - border-right-color: transparent !important; -} -.ui[class*="right labeled"].input input + .label { - border-top-left-radius: 0px; - border-bottom-left-radius: 0px; -} - -.ui[class*="right labeled"].input input:focus { - border-right-color: @focusBorderColor !important; -} - -/* Corner Label */ -.ui.labeled.input .corner.label { - top: @labelCornerTop; - right: @labelCornerRight; - font-size: @labelCornerSize; - border-radius: 0em @borderRadius 0em 0em; -} - -/* Spacing with corner label */ -.ui[class*="corner labeled"]:not([class*="left corner labeled"]).labeled.input input { - padding-right: @labeledMargin !important; -} -.ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > input { - padding-right: @labeledIconInputMargin !important; -} -.ui[class*="corner labeled"].icon.input:not([class*="left corner labeled"]) > .icon { - margin-right: @labeledIconMargin; -} - -/* Left Labeled */ -.ui[class*="left corner labeled"].labeled.input input { - padding-left: @labeledMargin !important; -} -.ui[class*="left corner labeled"].icon.input > input { - padding-left: @labeledIconInputMargin !important; -} -.ui[class*="left corner labeled"].icon.input > .icon { - margin-left: @labeledIconMargin; -} - -/* Corner Label Position */ -.ui.input > .ui.corner.label { - top: @borderWidth; - right: @borderWidth; -} -.ui.input > .ui.left.corner.label { - right: auto; - left: @borderWidth; -} - - -/*-------------------- - Action ----------------------*/ - -.ui.action.input > .button, -.ui.action.input > .buttons { - display: flex; - align-items: center; - flex: 0 0 auto; -} -.ui.action.input > .button, -.ui.action.input > .buttons > .button { - padding-top: @verticalPadding; - padding-bottom: @verticalPadding; - margin: 0; -} - -/* Button on Right */ -.ui.action.input:not([class*="left action"]) > input { - border-top-right-radius: 0px !important; - border-bottom-right-radius: 0px !important; - border-right-color: transparent !important; -} -.ui.action.input:not([class*="left action"]) > .dropdown:not(:first-child), -.ui.action.input:not([class*="left action"]) > .button:not(:first-child), -.ui.action.input:not([class*="left action"]) > .buttons:not(:first-child) > .button { - border-radius: 0px; -} -.ui.action.input:not([class*="left action"]) > .dropdown:last-child, -.ui.action.input:not([class*="left action"]) > .button:last-child, -.ui.action.input:not([class*="left action"]) > .buttons:last-child > .button { - border-radius: 0px @borderRadius @borderRadius 0px; -} - -/* Input Focus */ -.ui.action.input:not([class*="left action"]) input:focus { - border-right-color: @focusBorderColor !important; -} - -/* Button on Left */ -.ui[class*="left action"].input > input { - border-top-left-radius: 0px !important; - border-bottom-left-radius: 0px !important; - border-left-color: transparent !important; -} -.ui[class*="left action"].input > .dropdown, -.ui[class*="left action"].input > .button, -.ui[class*="left action"].input > .buttons > .button { - border-radius: 0px; -} -.ui[class*="left action"].input > .dropdown:first-child, -.ui[class*="left action"].input > .button:first-child, -.ui[class*="left action"].input > .buttons:first-child > .button { - border-radius: @borderRadius 0px 0px @borderRadius; -} -/* Input Focus */ -.ui[class*="left action"].input > input:focus { - border-left-color: @focusBorderColor !important; -} - -/*-------------------- - Inverted ----------------------*/ - -/* Standard */ -.ui.inverted.input input { - border: none; -} - -/*-------------------- - Fluid ----------------------*/ - -.ui.fluid.input { - display: flex; -} -.ui.fluid.input > input { - width: 0px !important; -} - -/*-------------------- - Size ----------------------*/ - -.ui.mini.input { - font-size: @relativeMini; -} -.ui.small.input { - font-size: @relativeSmall; -} -.ui.input { - font-size: @relativeMedium; -} -.ui.large.input { - font-size: @relativeLarge; -} -.ui.big.input { - font-size: @relativeBig; -} -.ui.huge.input { - font-size: @relativeHuge; -} -.ui.massive.input { - font-size: @relativeMassive; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/label.less b/node_modules/semantic-ui/src/definitions/elements/label.less deleted file mode 100755 index 7141666..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/label.less +++ /dev/null @@ -1,1257 +0,0 @@ -/*! - * # Semantic UI - Label - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'label'; - -@import (multiple) '../../theme.config'; - -/******************************* - Label -*******************************/ - -.ui.label { - display: inline-block; - line-height: 1; - vertical-align: @verticalAlign; - - margin: @verticalMargin @horizontalMargin; - - background-color: @backgroundColor; - background-image: @backgroundImage; - padding: @verticalPadding @horizontalPadding; - color: @color; - - text-transform: @textTransform; - font-weight: @fontWeight; - - border: @border; - border-radius: @borderRadius; - transition: @transition; -} - -.ui.label:first-child { - margin-left: 0em; -} -.ui.label:last-child { - margin-right: 0em; -} - -/* Link */ -a.ui.label { - cursor: pointer; -} - -/* Inside Link */ -.ui.label > a { - cursor: pointer; - color: inherit; - opacity: @linkOpacity; - transition: @linkTransition; -} -.ui.label > a:hover { - opacity: 1; -} - -/* Image */ -.ui.label > img { - width: auto !important; - vertical-align: middle; - height: @imageHeight !important; -} - -/* Icon */ -.ui.label > .icon { - width: auto; - margin: 0em @iconDistance 0em 0em; -} - -/* Detail */ -.ui.label > .detail { - display: inline-block; - vertical-align: top; - font-weight: @detailFontWeight; - margin-left: @detailMargin; - opacity: @detailOpacity; -} -.ui.label > .detail .icon { - margin: 0em @detailIconDistance 0em 0em; -} - - -/* Removable label */ -.ui.label > .close.icon, -.ui.label > .delete.icon { - cursor: pointer; - margin-right: 0em; - margin-left: @deleteMargin; - font-size: @deleteSize; - opacity: @deleteOpacity; - transition: @deleteTransition; -} -.ui.label > .delete.icon:hover { - opacity: 1; -} - -/*------------------- - Group ---------------------*/ - -.ui.labels > .label { - margin: 0em @groupHorizontalMargin @groupVerticalMargin 0em; -} - - -/*------------------- - Coupling ---------------------*/ - -.ui.header > .ui.label { - margin-top: @lineHeightOffset; -} - -/* Remove border radius on attached segment */ -.ui.attached.segment > .ui.top.left.attached.label, -.ui.bottom.attached.segment > .ui.top.left.attached.label { - border-top-left-radius: 0; -} -.ui.attached.segment > .ui.top.right.attached.label, -.ui.bottom.attached.segment > .ui.top.right.attached.label { - border-top-right-radius: 0; -} -.ui.top.attached.segment > .ui.bottom.left.attached.label { - border-bottom-left-radius: 0; -} -.ui.top.attached.segment > .ui.bottom.right.attached.label { - border-bottom-right-radius: 0; -} - -/* Padding on next content after a label */ -.ui.top.attached.label:first-child + :not(.attached), -.ui.top.attached.label + [class*="right floated"] + * { - margin-top: @attachedSegmentPadding !important; -} -.ui.bottom.attached.label:first-child ~ :last-child:not(.attached) { - margin-top: 0em; - margin-bottom: @attachedSegmentPadding !important; -} - - -/******************************* - Types -*******************************/ - -.ui.image.label { - width: auto !important; - margin-top: 0em; - margin-bottom: 0em; - max-width: 9999px; - vertical-align: baseline; - text-transform: none; - - background: @imageLabelBackground; - padding: @imageLabelPadding; - border-radius: @imageLabelBorderRadius; - box-shadow: @imageLabelBoxShadow; -} - -.ui.image.label img { - display: inline-block; - vertical-align: top; - - height: @imageLabelImageHeight; - margin: @imageLabelImageMargin; - border-radius: @imageLabelImageBorderRadius; -} - -.ui.image.label .detail { - background: @imageLabelDetailBackground; - margin: @imageLabelDetailMargin; - padding: @imageLabelDetailPadding; - border-radius: 0em @imageLabelBorderRadius @imageLabelBorderRadius 0em; -} - -/*------------------- - Tag ---------------------*/ - -.ui.tag.labels .label, -.ui.tag.label { - margin-left: 1em; - position: relative; - padding-left: @tagHorizontalPadding; - padding-right: @tagHorizontalPadding; - - border-radius: 0em @borderRadius @borderRadius 0em; - transition: @tagTransition; -} -.ui.tag.labels .label:before, -.ui.tag.label:before { - position: absolute; - transform: translateY(-50%) translateX(50%) rotate(-45deg); - - top: @tagTriangleTopOffset; - right: @tagTriangleRightOffset; - content: ''; - - background-color: inherit; - background-image: @tagTriangleBackgroundImage; - - width: @tagTriangleSize; - height: @tagTriangleSize; - transition: @tagTransition; -} - - -.ui.tag.labels .label:after, -.ui.tag.label:after { - position: absolute; - content: ''; - top: 50%; - left: -(@tagCircleSize / 2); - - margin-top: -(@tagCircleSize / 2); - background-color: @tagCircleColor !important; - width: @tagCircleSize; - height: @tagCircleSize; - - box-shadow: @tagCircleBoxShadow; - border-radius: @circularRadius; -} - - -/*------------------- - Corner Label ---------------------*/ - -.ui.corner.label { - position: absolute; - top: 0em; - right: 0em; - margin: 0em; - padding: 0em; - text-align: center; - - border-color: @backgroundColor; - - width: @cornerTriangleSize; - height: @cornerTriangleSize; - z-index: @cornerTriangleZIndex; - transition: @cornerTriangleTransition; -} - -/* Icon Label */ -.ui.corner.label{ - background-color: transparent !important; -} -.ui.corner.label:after { - position: absolute; - content: ""; - right: 0em; - top: 0em; - z-index: -1; - - width: 0em; - height: 0em; - background-color: transparent !important; - - border-top: 0em solid transparent; - border-right: @cornerTriangleSize solid transparent; - border-bottom: @cornerTriangleSize solid transparent; - border-left: 0em solid transparent; - - border-right-color: inherit; - transition: @cornerTriangleTransition; -} - -.ui.corner.label .icon { - cursor: default; - position: relative; - top: @cornerIconTopOffset; - left: @cornerIconLeftOffset; - font-size: @cornerIconSize; - margin: 0em; -} - -/* Left Corner */ -.ui.left.corner.label, -.ui.left.corner.label:after { - right: auto; - left: 0em; -} -.ui.left.corner.label:after { - border-top: @cornerTriangleSize solid transparent; - border-right: @cornerTriangleSize solid transparent; - border-bottom: 0em solid transparent; - border-left: 0em solid transparent; - - border-top-color: inherit; -} -.ui.left.corner.label .icon { - left: -@cornerIconLeftOffset; -} - -/* Segment */ -.ui.segment > .ui.corner.label { - top: -1px; - right: -1px; -} -.ui.segment > .ui.left.corner.label { - right: auto; - left: -1px; -} - -/*------------------- - Ribbon ---------------------*/ - -.ui.ribbon.label { - position: relative; - margin: 0em; - min-width: max-content; - border-radius: 0em @borderRadius @borderRadius 0em; - border-color: @ribbonShadowColor; -} - -.ui.ribbon.label:after { - position: absolute; - content: ''; - - top: 100%; - left: 0%; - background-color: transparent !important; - - border-style: solid; - border-width: 0em @ribbonTriangleSize @ribbonTriangleSize 0em; - border-color: transparent; - border-right-color: inherit; - - width: 0em; - height: 0em; -} -/* Positioning */ -.ui.ribbon.label { - left: @ribbonOffset; - margin-right: -@ribbonTriangleSize; - padding-left: @ribbonDistance; - padding-right: @ribbonTriangleSize; -} -.ui[class*="right ribbon"].label { - left: @rightRibbonOffset; - padding-left: @ribbonTriangleSize; - padding-right: @ribbonDistance; -} - -/* Right Ribbon */ -.ui[class*="right ribbon"].label { - text-align: left; - transform: translateX(-100%); - border-radius: @borderRadius 0em 0em @borderRadius; -} -.ui[class*="right ribbon"].label:after { - left: auto; - right: 0%; - - border-style: solid; - border-width: @ribbonTriangleSize @ribbonTriangleSize 0em 0em; - border-color: transparent; - border-top-color: inherit; -} - -/* Inside Table */ -.ui.image > .ribbon.label, -.ui.card .image > .ribbon.label { - position: absolute; - top: @ribbonImageTopDistance; -} -.ui.card .image > .ui.ribbon.label, -.ui.image > .ui.ribbon.label { - left: @ribbonImageOffset; -} -.ui.card .image > .ui[class*="right ribbon"].label, -.ui.image > .ui[class*="right ribbon"].label { - left: @rightRibbonImageOffset; - padding-left: @horizontalPadding; -} - -/* Inside Table */ -.ui.table td > .ui.ribbon.label { - left: @ribbonTableOffset; -} -.ui.table td > .ui[class*="right ribbon"].label { - left: @rightRibbonTableOffset; - padding-left: @horizontalPadding; -} - - -/*------------------- - Attached ---------------------*/ - -.ui[class*="top attached"].label, -.ui.attached.label { - width: 100%; - position: absolute; - margin: 0em; - top: 0em; - left: 0em; - - padding: @attachedVerticalPadding @attachedHorizontalPadding; - - border-radius: @attachedCornerBorderRadius @attachedCornerBorderRadius 0em 0em; -} -.ui[class*="bottom attached"].label { - top: auto; - bottom: 0em; - border-radius: 0em 0em @attachedCornerBorderRadius @attachedCornerBorderRadius; -} - -.ui[class*="top left attached"].label { - width: auto; - margin-top: 0em !important; - border-radius: @attachedCornerBorderRadius 0em @attachedBorderRadius 0em; -} - -.ui[class*="top right attached"].label { - width: auto; - left: auto; - right: 0em; - border-radius: 0em @attachedCornerBorderRadius 0em @attachedBorderRadius; -} -.ui[class*="bottom left attached"].label { - width: auto; - top: auto; - bottom: 0em; - border-radius: 0em @attachedBorderRadius 0em @attachedCornerBorderRadius; -} -.ui[class*="bottom right attached"].label { - top: auto; - bottom: 0em; - left: auto; - right: 0em; - width: auto; - border-radius: @attachedBorderRadius 0em @attachedCornerBorderRadius 0em; -} - - -/******************************* - States -*******************************/ - -/*------------------- - Disabled ---------------------*/ - -.ui.label.disabled { - opacity: 0.5; -} - -/*------------------- - Hover ---------------------*/ - -a.ui.labels .label:hover, -a.ui.label:hover { - background-color: @labelHoverBackgroundColor; - border-color: @labelHoverBackgroundColor; - - background-image: @labelHoverBackgroundImage; - color: @labelHoverTextColor; -} -.ui.labels a.label:hover:before, -a.ui.label:hover:before { - color: @labelHoverTextColor; -} - -/*------------------- - Active ---------------------*/ - -.ui.active.label { - background-color: @labelActiveBackgroundColor; - border-color: @labelActiveBackgroundColor; - - background-image: @labelActiveBackgroundImage; - color: @labelActiveTextColor; -} -.ui.active.label:before { - background-color: @labelActiveBackgroundColor; - background-image: @labelActiveBackgroundImage; - color: @labelActiveTextColor; -} - -/*------------------- - Active Hover ---------------------*/ - -a.ui.labels .active.label:hover, -a.ui.active.label:hover { - background-color: @labelActiveHoverBackgroundColor; - border-color: @labelActiveHoverBackgroundColor; - - background-image: @labelActiveHoverBackgroundImage; - color: @labelActiveHoverTextColor; -} -.ui.labels a.active.label:ActiveHover:before, -a.ui.active.label:ActiveHover:before { - background-color: @labelActiveHoverBackgroundColor; - background-image: @labelActiveHoverBackgroundImage; - color: @labelActiveHoverTextColor; -} - - -/*------------------- - Visible ---------------------*/ - -.ui.labels.visible .label, -.ui.label.visible:not(.dropdown) { - display: inline-block !important; -} - -/*------------------- - Hidden ---------------------*/ - -.ui.labels.hidden .label, -.ui.label.hidden { - display: none !important; -} - - -/******************************* - Variations -*******************************/ - - -/*------------------- - Colors ---------------------*/ - -/*--- Red ---*/ -.ui.red.labels .label, -.ui.red.label { - background-color: @red !important; - border-color: @red !important; - color: @redTextColor !important; -} -/* Link */ -.ui.red.labels .label:hover, -a.ui.red.label:hover{ - background-color: @redHover !important; - border-color: @redHover !important; - color: @redHoverTextColor !important; -} -/* Corner */ -.ui.red.corner.label, -.ui.red.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.red.ribbon.label { - border-color: @redRibbonShadow !important; -} -/* Basic */ -.ui.basic.red.label { - background-color: @white !important; - color: @red !important; - border-color: @red !important; -} -.ui.basic.red.labels a.label:hover, -a.ui.basic.red.label:hover { - background-color: @white !important; - color: @redHover !important; - border-color: @redHover !important; -} - -/*--- Orange ---*/ -.ui.orange.labels .label, -.ui.orange.label { - background-color: @orange !important; - border-color: @orange !important; - color: @orangeTextColor !important; -} -/* Link */ -.ui.orange.labels .label:hover, -a.ui.orange.label:hover{ - background-color: @orangeHover !important; - border-color: @orangeHover !important; - color: @orangeHoverTextColor !important; -} -/* Corner */ -.ui.orange.corner.label, -.ui.orange.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.orange.ribbon.label { - border-color: @orangeRibbonShadow !important; -} -/* Basic */ -.ui.basic.orange.label { - background-color: @white !important; - color: @orange !important; - border-color: @orange !important; -} -.ui.basic.orange.labels a.label:hover, -a.ui.basic.orange.label:hover { - background-color: @white !important; - color: @orangeHover !important; - border-color: @orangeHover !important; -} - -/*--- Yellow ---*/ -.ui.yellow.labels .label, -.ui.yellow.label { - background-color: @yellow !important; - border-color: @yellow !important; - color: @yellowTextColor !important; -} -/* Link */ -.ui.yellow.labels .label:hover, -a.ui.yellow.label:hover{ - background-color: @yellowHover !important; - border-color: @yellowHover !important; - color: @yellowHoverTextColor !important; -} -/* Corner */ -.ui.yellow.corner.label, -.ui.yellow.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.yellow.ribbon.label { - border-color: @yellowRibbonShadow !important; -} -/* Basic */ -.ui.basic.yellow.label { - background-color: @white !important; - color: @yellow !important; - border-color: @yellow !important; -} -.ui.basic.yellow.labels a.label:hover, -a.ui.basic.yellow.label:hover { - background-color: @white !important; - color: @yellowHover !important; - border-color: @yellowHover !important; -} - -/*--- Olive ---*/ -.ui.olive.labels .label, -.ui.olive.label { - background-color: @olive !important; - border-color: @olive !important; - color: @oliveTextColor !important; -} -/* Link */ -.ui.olive.labels .label:hover, -a.ui.olive.label:hover{ - background-color: @oliveHover !important; - border-color: @oliveHover !important; - color: @oliveHoverTextColor !important; -} -/* Corner */ -.ui.olive.corner.label, -.ui.olive.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.olive.ribbon.label { - border-color: @greenRibbonShadow !important; -} -/* Basic */ -.ui.basic.olive.label { - background-color: @white !important; - color: @olive !important; - border-color: @olive !important; -} -.ui.basic.olive.labels a.label:hover, -a.ui.basic.olive.label:hover { - background-color: @white !important; - color: @oliveHover !important; - border-color: @oliveHover !important; -} - -/*--- Green ---*/ -.ui.green.labels .label, -.ui.green.label { - background-color: @green !important; - border-color: @green !important; - color: @greenTextColor !important; -} -/* Link */ -.ui.green.labels .label:hover, -a.ui.green.label:hover{ - background-color: @greenHover !important; - border-color: @greenHover !important; - color: @greenHoverTextColor !important; -} -/* Corner */ -.ui.green.corner.label, -.ui.green.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.green.ribbon.label { - border-color: @greenRibbonShadow !important; -} -/* Basic */ -.ui.basic.green.label { - background-color: @white !important; - color: @green !important; - border-color: @green !important; -} -.ui.basic.green.labels a.label:hover, -a.ui.basic.green.label:hover { - background-color: @white !important; - color: @greenHover !important; - border-color: @greenHover !important; -} - -/*--- Teal ---*/ -.ui.teal.labels .label, -.ui.teal.label { - background-color: @teal !important; - border-color: @teal !important; - color: @tealTextColor !important; -} -/* Link */ -.ui.teal.labels .label:hover, -a.ui.teal.label:hover{ - background-color: @tealHover !important; - border-color: @tealHover !important; - color: @tealHoverTextColor !important; -} -/* Corner */ -.ui.teal.corner.label, -.ui.teal.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.teal.ribbon.label { - border-color: @tealRibbonShadow !important; -} -/* Basic */ -.ui.basic.teal.label { - background-color: @white !important; - color: @teal !important; - border-color: @teal !important; -} -.ui.basic.teal.labels a.label:hover, -a.ui.basic.teal.label:hover { - background-color: @white !important; - color: @tealHover !important; - border-color: @tealHover !important; -} - -/*--- Blue ---*/ -.ui.blue.labels .label, -.ui.blue.label { - background-color: @blue !important; - border-color: @blue !important; - color: @blueTextColor !important; -} -/* Link */ -.ui.blue.labels .label:hover, -a.ui.blue.label:hover{ - background-color: @blueHover !important; - border-color: @blueHover !important; - color: @blueHoverTextColor !important; -} -/* Corner */ -.ui.blue.corner.label, -.ui.blue.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.blue.ribbon.label { - border-color: @blueRibbonShadow !important; -} -/* Basic */ -.ui.basic.blue.label { - background-color: @white !important; - color: @blue !important; - border-color: @blue !important; -} -.ui.basic.blue.labels a.label:hover, -a.ui.basic.blue.label:hover { - background-color: @white !important; - color: @blueHover !important; - border-color: @blueHover !important; -} - -/*--- Violet ---*/ -.ui.violet.labels .label, -.ui.violet.label { - background-color: @violet !important; - border-color: @violet !important; - color: @violetTextColor !important; -} -/* Link */ -.ui.violet.labels .label:hover, -a.ui.violet.label:hover{ - background-color: @violetHover !important; - border-color: @violetHover !important; - color: @violetHoverTextColor !important; -} -/* Corner */ -.ui.violet.corner.label, -.ui.violet.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.violet.ribbon.label { - border-color: @violetRibbonShadow !important; -} -/* Basic */ -.ui.basic.violet.label { - background-color: @white !important; - color: @violet !important; - border-color: @violet !important; -} -.ui.basic.violet.labels a.label:hover, -a.ui.basic.violet.label:hover { - background-color: @white !important; - color: @violetHover !important; - border-color: @violetHover !important; -} - -/*--- Purple ---*/ -.ui.purple.labels .label, -.ui.purple.label { - background-color: @purple !important; - border-color: @purple !important; - color: @purpleTextColor !important; -} -/* Link */ -.ui.purple.labels .label:hover, -a.ui.purple.label:hover{ - background-color: @purpleHover !important; - border-color: @purpleHover !important; - color: @purpleHoverTextColor !important; -} -/* Corner */ -.ui.purple.corner.label, -.ui.purple.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.purple.ribbon.label { - border-color: @purpleRibbonShadow !important; -} -/* Basic */ -.ui.basic.purple.label { - background-color: @white !important; - color: @purple !important; - border-color: @purple !important; -} -.ui.basic.purple.labels a.label:hover, -a.ui.basic.purple.label:hover { - background-color: @white !important; - color: @purpleHover !important; - border-color: @purpleHover !important; -} - -/*--- Pink ---*/ -.ui.pink.labels .label, -.ui.pink.label { - background-color: @pink !important; - border-color: @pink !important; - color: @pinkTextColor !important; -} -/* Link */ -.ui.pink.labels .label:hover, -a.ui.pink.label:hover{ - background-color: @pinkHover !important; - border-color: @pinkHover !important; - color: @pinkHoverTextColor !important; -} -/* Corner */ -.ui.pink.corner.label, -.ui.pink.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.pink.ribbon.label { - border-color: @pinkRibbonShadow !important; -} -/* Basic */ -.ui.basic.pink.label { - background-color: @white !important; - color: @pink !important; - border-color: @pink !important; -} -.ui.basic.pink.labels a.label:hover, -a.ui.basic.pink.label:hover { - background-color: @white !important; - color: @pinkHover !important; - border-color: @pinkHover !important; -} - -/*--- Brown ---*/ -.ui.brown.labels .label, -.ui.brown.label { - background-color: @brown !important; - border-color: @brown !important; - color: @brownTextColor !important; -} -/* Link */ -.ui.brown.labels .label:hover, -a.ui.brown.label:hover{ - background-color: @brownHover !important; - border-color: @brownHover !important; - color: @brownHoverTextColor !important; -} -/* Corner */ -.ui.brown.corner.label, -.ui.brown.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.brown.ribbon.label { - border-color: @brownRibbonShadow !important; -} -/* Basic */ -.ui.basic.brown.label { - background-color: @white !important; - color: @brown !important; - border-color: @brown !important; -} -.ui.basic.brown.labels a.label:hover, -a.ui.basic.brown.label:hover { - background-color: @white !important; - color: @brownHover !important; - border-color: @brownHover !important; -} - -/*--- Grey ---*/ -.ui.grey.labels .label, -.ui.grey.label { - background-color: @grey !important; - border-color: @grey !important; - color: @greyTextColor !important; -} -/* Link */ -.ui.grey.labels .label:hover, -a.ui.grey.label:hover{ - background-color: @greyHover !important; - border-color: @greyHover !important; - color: @greyHoverTextColor !important; -} -/* Corner */ -.ui.grey.corner.label, -.ui.grey.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.grey.ribbon.label { - border-color: @brownRibbonShadow !important; -} -/* Basic */ -.ui.basic.grey.label { - background-color: @white !important; - color: @grey !important; - border-color: @grey !important; -} -.ui.basic.grey.labels a.label:hover, -a.ui.basic.grey.label:hover { - background-color: @white !important; - color: @greyHover !important; - border-color: @greyHover !important; -} - -/*--- Black ---*/ -.ui.black.labels .label, -.ui.black.label { - background-color: @black !important; - border-color: @black !important; - color: @blackTextColor !important; -} -/* Link */ -.ui.black.labels .label:hover, -a.ui.black.label:hover{ - background-color: @blackHover !important; - border-color: @blackHover !important; - color: @blackHoverTextColor !important; -} -/* Corner */ -.ui.black.corner.label, -.ui.black.corner.label:hover { - background-color: transparent !important; -} -/* Ribbon */ -.ui.black.ribbon.label { - border-color: @brownRibbonShadow !important; -} -/* Basic */ -.ui.basic.black.label { - background-color: @white !important; - color: @black !important; - border-color: @black !important; -} -.ui.basic.black.labels a.label:hover, -a.ui.basic.black.label:hover { - background-color: @white !important; - color: @blackHover !important; - border-color: @blackHover !important; -} - - -/*------------------- - Basic ---------------------*/ - -.ui.basic.label { - background: @basicBackground; - border: @basicBorder; - color: @basicColor; - box-shadow: @basicBoxShadow; -} - -/* Link */ -a.ui.basic.label:hover { - text-decoration: none; - background: @basicHoverBackground; - color: @basicHoverColor; - box-shadow: @basicHoverBorder; - box-shadow: @basicHoverBoxShadow; -} - -/* Pointing */ -.ui.basic.pointing.label:before { - border-color: inherit; -} - - -/*------------------- - Fluid ---------------------*/ - -.ui.label.fluid, -.ui.fluid.labels > .label { - width: 100%; - box-sizing: border-box; -} - -/*------------------- - Inverted ---------------------*/ - -.ui.inverted.labels .label, -.ui.inverted.label { - color: @invertedTextColor !important; -} - -/*------------------- - Horizontal ---------------------*/ - -.ui.horizontal.labels .label, -.ui.horizontal.label { - margin: 0em @horizontalLabelMargin 0em 0em; - - padding: @horizontalLabelVerticalPadding @horizontalPadding; - min-width: @horizontalLabelMinWidth; - text-align: center; -} - - -/*------------------- - Circular ---------------------*/ - -.ui.circular.labels .label, -.ui.circular.label { - min-width: @circularMinSize; - min-height: @circularMinSize; - - padding: @circularPadding !important; - - line-height: 1em; - text-align: center; - border-radius: @circularRadius; -} -.ui.empty.circular.labels .label, -.ui.empty.circular.label { - min-width: 0em; - min-height: 0em; - overflow: hidden; - width: @emptyCircleSize; - height: @emptyCircleSize; - vertical-align: baseline; -} - -/*------------------- - Pointing ---------------------*/ - -.ui.pointing.label { - position: relative; -} - -.ui.attached.pointing.label { - position: absolute; -} - -.ui.pointing.label:before { - background-color: inherit; - background-image: inherit; - border-width: none; - border-style: solid; - border-color: @pointingBorderColor; -} -/* Arrow */ -.ui.pointing.label:before { - position: absolute; - content: ''; - transform: rotate(45deg); - background-image: none; - - z-index: @pointingTriangleZIndex; - width: @pointingTriangleSize; - height: @pointingTriangleSize; - transition: @pointingTriangleTransition; -} - -/*--- Above ---*/ -.ui.pointing.label, -.ui[class*="pointing above"].label { - margin-top: @pointingVerticalDistance; -} -.ui.pointing.label:before, -.ui[class*="pointing above"].label:before { - border-width: @borderWidth 0px 0px @borderWidth; - transform: translateX(-50%) translateY(-50%) rotate(45deg); - top: 0%; - left: 50%; -} -/*--- Below ---*/ -.ui[class*="bottom pointing"].label, -.ui[class*="pointing below"].label { - margin-top: 0em; - margin-bottom: @pointingVerticalDistance; -} -.ui[class*="bottom pointing"].label:before, -.ui[class*="pointing below"].label:before { - border-width: 0px @borderWidth @borderWidth 0px; - top: auto; - right: auto; - transform: translateX(-50%) translateY(-50%) rotate(45deg); - top: 100%; - left: 50%; -} -/*--- Left ---*/ -.ui[class*="left pointing"].label { - margin-top: 0em; - margin-left: @pointingHorizontalDistance; -} -.ui[class*="left pointing"].label:before { - border-width: 0px 0px @borderWidth @borderWidth; - transform: translateX(-50%) translateY(-50%) rotate(45deg); - bottom: auto; - right: auto; - top: 50%; - left: 0em; -} -/*--- Right ---*/ -.ui[class*="right pointing"].label { - margin-top: 0em; - margin-right: @pointingHorizontalDistance; -} -.ui[class*="right pointing"].label:before { - border-width: @borderWidth @borderWidth 0px 0px; - transform: translateX(50%) translateY(-50%) rotate(45deg); - top: 50%; - right: 0%; - bottom: auto; - left: auto; -} - -/* Basic Pointing */ - -/*--- Above ---*/ -.ui.basic.pointing.label:before, -.ui.basic[class*="pointing above"].label:before { - margin-top: @basicPointingTriangleOffset; -} -/*--- Below ---*/ -.ui.basic[class*="bottom pointing"].label:before, -.ui.basic[class*="pointing below"].label:before { - bottom: auto; - top: 100%; - margin-top: -@basicPointingTriangleOffset; -} -/*--- Left ---*/ -.ui.basic[class*="left pointing"].label:before { - top: 50%; - left: @basicPointingTriangleOffset; -} -/*--- Right ---*/ -.ui.basic[class*="right pointing"].label:before { - top: 50%; - right: @basicPointingTriangleOffset; -} - - -/*------------------ - Floating Label --------------------*/ - -.ui.floating.label { - position: absolute; - z-index: @floatingZIndex; - top: @floatingTopOffset; - left: 100%; - margin: 0em 0em 0em @floatingLeftOffset !important; -} - -/*------------------- - Sizes ---------------------*/ - -.ui.mini.labels .label, -.ui.mini.label { - font-size: @mini; -} -.ui.tiny.labels .label, -.ui.tiny.label { - font-size: @tiny; -} -.ui.small.labels .label, -.ui.small.label { - font-size: @small; -} -.ui.labels .label, -.ui.label { - font-size: @medium; -} -.ui.large.labels .label, -.ui.large.label { - font-size: @large; -} -.ui.big.labels .label, -.ui.big.label { - font-size: @big; -} -.ui.huge.labels .label, -.ui.huge.label { - font-size: @huge; -} -.ui.massive.labels .label, -.ui.massive.label { - font-size: @massive; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/list.less b/node_modules/semantic-ui/src/definitions/elements/list.less deleted file mode 100755 index b9c9cf4..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/list.less +++ /dev/null @@ -1,951 +0,0 @@ -/*! - * # Semantic UI - List - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'list'; - -@import (multiple) '../../theme.config'; - -/******************************* - List -*******************************/ - -ul.ui.list, -ol.ui.list, -.ui.list { - list-style-type: @listStyleType; - margin: @margin; - padding: @verticalPadding @horizontalPadding; -} - -ul.ui.list:first-child, -ol.ui.list:first-child, -.ui.list:first-child { - margin-top: 0em; - padding-top: 0em; -} - -ul.ui.list:last-child, -ol.ui.list:last-child, -.ui.list:last-child { - margin-bottom: 0em; - padding-bottom: 0em; -} - -/******************************* - Content -*******************************/ - -/* List Item */ -ul.ui.list li, -ol.ui.list li, -.ui.list > .item, -.ui.list .list > .item { - display: list-item; - table-layout: fixed; - list-style-type: @listStyleType; - list-style-position: @listStylePosition; - - padding: @itemPadding; - line-height: @itemLineHeight; -} - -ul.ui.list > li:first-child:after, -ol.ui.list > li:first-child:after, -.ui.list > .list > .item, -.ui.list > .item:after { - content: ''; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -ul.ui.list li:first-child, -ol.ui.list li:first-child, -.ui.list .list > .item:first-child, -.ui.list > .item:first-child { - padding-top: 0em; -} -ul.ui.list li:last-child, -ol.ui.list li:last-child, -.ui.list .list > .item:last-child, -.ui.list > .item:last-child { - padding-bottom: 0em; -} - -/* Child List */ -ul.ui.list ul, -ol.ui.list ol, -.ui.list .list { - clear: both; - margin: 0em; - padding: @childListPadding; -} - -/* Child Item */ -ul.ui.list ul li, -ol.ui.list ol li, -.ui.list .list > .item { - padding: @childItemPadding; - line-height: @childItemLineHeight; -} - - -/* Icon */ -.ui.list .list > .item > i.icon, -.ui.list > .item > i.icon { - display: table-cell; - margin: 0em; - padding-top: @iconOffset; - padding-right: @iconDistance; - vertical-align: @iconContentVerticalAlign; - transition: @iconTransition; -} -.ui.list .list > .item > i.icon:only-child, -.ui.list > .item > i.icon:only-child { - display: inline-block; - vertical-align: @iconVerticalAlign; -} - - -/* Image */ -.ui.list .list > .item > .image, -.ui.list > .item > .image { - display: table-cell; - background-color: transparent; - margin: 0em; - vertical-align: @imageAlign; -} -.ui.list .list > .item > .image:not(:only-child):not(img), -.ui.list > .item > .image:not(:only-child):not(img) { - padding-right: @imageDistance; -} -.ui.list .list > .item > .image img, -.ui.list > .item > .image img { - vertical-align: @imageAlign; -} - -.ui.list .list > .item > img.image, -.ui.list .list > .item > .image:only-child, -.ui.list > .item > img.image, -.ui.list > .item > .image:only-child { - display: inline-block; -} - -/* Content */ -.ui.list .list > .item > .content, -.ui.list > .item > .content { - line-height: @contentLineHeight; -} -.ui.list .list > .item > .image + .content, -.ui.list .list > .item > .icon + .content, -.ui.list > .item > .image + .content, -.ui.list > .item > .icon + .content { - display: table-cell; - padding: 0em 0em 0em @contentDistance; - vertical-align: @contentVerticalAlign; -} -.ui.list .list > .item > img.image + .content, -.ui.list > .item > img.image + .content { - display: inline-block; -} -.ui.list .list > .item > .content > .list, -.ui.list > .item > .content > .list { - margin-left: 0em; - padding-left: 0em; -} - -/* Header */ -.ui.list .list > .item .header, -.ui.list > .item .header { - display: block; - margin: 0em; - font-family: @itemHeaderFontFamily; - font-weight: @itemHeaderFontWeight; - color: @itemHeaderColor; -} - -/* Description */ -.ui.list .list > .item .description, -.ui.list > .item .description { - display: block; - color: @itemDescriptionColor; -} - -/* Child Link */ -.ui.list > .item a, -.ui.list .list > .item a { - cursor: pointer; -} - -/* Linking Item */ -.ui.list .list > a.item, -.ui.list > a.item { - cursor: pointer; - color: @itemLinkColor; -} -.ui.list .list > a.item:hover, -.ui.list > a.item:hover { - color: @itemLinkHoverColor; -} - -/* Linked Item Icons */ -.ui.list .list > a.item i.icon, -.ui.list > a.item i.icon { - color: @itemLinkIconColor; -} - -/* Header Link */ -.ui.list .list > .item a.header, -.ui.list > .item a.header { - cursor: pointer; - color: @itemHeaderLinkColor !important; -} -.ui.list .list > .item a.header:hover, -.ui.list > .item a.header:hover { - color: @itemHeaderLinkHoverColor !important; -} - -/* Floated Content */ -.ui[class*="left floated"].list { - float: left; -} -.ui[class*="right floated"].list { - float: right; -} - -.ui.list .list > .item [class*="left floated"], -.ui.list > .item [class*="left floated"] { - float: left; - margin: @leftFloatMargin; -} -.ui.list .list > .item [class*="right floated"], -.ui.list > .item [class*="right floated"] { - float: right; - margin: @rightFloatMargin; -} - -/******************************* - Coupling -*******************************/ - -.ui.menu .ui.list > .item, -.ui.menu .ui.list .list > .item { - display: list-item; - table-layout: fixed; - background-color: transparent; - - list-style-type: @listStyleType; - list-style-position: @listStylePosition; - - padding: @itemVerticalPadding @itemHorizontalPadding; - line-height: @itemLineHeight; -} -.ui.menu .ui.list .list > .item:before, -.ui.menu .ui.list > .item:before { - border: none; - background: none; -} -.ui.menu .ui.list .list > .item:first-child, -.ui.menu .ui.list > .item:first-child { - padding-top: 0em; -} -.ui.menu .ui.list .list > .item:last-child, -.ui.menu .ui.list > .item:last-child { - padding-bottom: 0em; -} - - -/******************************* - Types -*******************************/ - -/*------------------- - Horizontal ---------------------*/ - -.ui.horizontal.list { - display: inline-block; - font-size: 0em; -} -.ui.horizontal.list > .item { - display: inline-block; - margin-left: @horizontalSpacing; - font-size: 1rem; -} -.ui.horizontal.list:not(.celled) > .item:first-child { - margin-left: 0em !important; - padding-left: 0em !important; -} -.ui.horizontal.list .list { - padding-left: 0em; - padding-bottom: 0em; -} - -.ui.horizontal.list > .item > .image, -.ui.horizontal.list .list > .item > .image, -.ui.horizontal.list > .item > .icon, -.ui.horizontal.list .list > .item > .icon, -.ui.horizontal.list > .item > .content, -.ui.horizontal.list .list > .item > .content { - vertical-align: @horizontalVerticalAlign; -} - -/* Padding on all elements */ -.ui.horizontal.list > .item:first-child, -.ui.horizontal.list > .item:last-child { - padding-top: @itemVerticalPadding; - padding-bottom: @itemVerticalPadding; -} - -/* Horizontal List */ -.ui.horizontal.list > .item > i.icon { - margin: 0em; - padding: 0em @horizontalIconDistance 0em 0em; -} -.ui.horizontal.list > .item > .icon, -.ui.horizontal.list > .item > .icon + .content { - float: none; - display: inline-block; -} - - -/******************************* - States -*******************************/ - -/*------------------- - Disabled ---------------------*/ - -.ui.list .list > .disabled.item, -.ui.list > .disabled.item { - pointer-events: none; - color: @disabledColor !important; -} -.ui.inverted.list .list > .disabled.item, -.ui.inverted.list > .disabled.item { - color: @invertedDisabledColor !important; -} - -/*------------------- - Hover ---------------------*/ - -.ui.list .list > a.item:hover .icon, -.ui.list > a.item:hover .icon { - color: @itemLinkIconHoverColor; -} - - -/******************************* - Variations -*******************************/ - -/*------------------- - Inverted ---------------------*/ - -.ui.inverted.list .list > a.item > .icon, -.ui.inverted.list > a.item > .icon { - color: @invertedIconLinkColor; -} -.ui.inverted.list .list > .item .header, -.ui.inverted.list > .item .header { - color: @invertedHeaderColor; -} -.ui.inverted.list .list > .item .description, -.ui.inverted.list > .item .description { - color: @invertedDescriptionColor; -} - -/* Item Link */ -.ui.inverted.list .list > a.item, -.ui.inverted.list > a.item { - cursor: pointer; - color: @invertedItemLinkColor; -} -.ui.inverted.list .list > a.item:hover, -.ui.inverted.list > a.item:hover { - color: @invertedItemLinkHoverColor; -} - - -/* Linking Content */ -.ui.inverted.list .item a:not(.ui) { - color: @invertedItemLinkColor !important; -} -.ui.inverted.list .item a:not(.ui):hover { - color: @invertedItemLinkHoverColor !important; -} - -/*------------------- - Aligned ---------------------*/ - -.ui.list[class*="top aligned"] .image, -.ui.list[class*="top aligned"] .content, -.ui.list [class*="top aligned"] { - vertical-align: top !important; -} -.ui.list[class*="middle aligned"] .image, -.ui.list[class*="middle aligned"] .content, -.ui.list [class*="middle aligned"] { - vertical-align: middle !important; -} -.ui.list[class*="bottom aligned"] .image, -.ui.list[class*="bottom aligned"] .content, -.ui.list [class*="bottom aligned"] { - vertical-align: bottom !important; -} - -/*------------------- - Link ---------------------*/ - -.ui.link.list .item, -.ui.link.list a.item, -.ui.link.list .item a:not(.ui) { - color: @linkListItemColor; - transition: @linkListTransition; -} -.ui.link.list a.item:hover, -.ui.link.list .item a:not(.ui):hover { - color: @linkListItemHoverColor; -} -.ui.link.list a.item:active, -.ui.link.list .item a:not(.ui):active { - color: @linkListItemDownColor; -} -.ui.link.list .active.item, -.ui.link.list .active.item a:not(.ui) { - color: @linkListItemActiveColor; -} - -/* Inverted */ -.ui.inverted.link.list .item, -.ui.inverted.link.list a.item, -.ui.inverted.link.list .item a:not(.ui) { - color: @invertedLinkListItemColor; -} -.ui.inverted.link.list a.item:hover, -.ui.inverted.link.list .item a:not(.ui):hover { - color: @invertedLinkListItemHoverColor; -} -.ui.inverted.link.list a.item:active, -.ui.inverted.link.list .item a:not(.ui):active { - color: @invertedLinkListItemDownColor; -} -.ui.inverted.link.list a.active.item, -.ui.inverted.link.list .active.item a:not(.ui) { - color: @invertedLinkListItemActiveColor; -} - -/*------------------- - Selection ---------------------*/ - -.ui.selection.list .list > .item, -.ui.selection.list > .item { - cursor: pointer; - background: @selectionListBackground; - padding: @selectionListItemVerticalPadding @selectionListItemHorizontalPadding; - margin: @selectionListItemMargin; - color: @selectionListColor; - border-radius: @selectionListItemBorderRadius; - transition: @selectionListTransition; -} -.ui.selection.list .list > .item:last-child, -.ui.selection.list > .item:last-child { - margin-bottom: 0em; -} -.ui.selection.list.list > .item:hover, -.ui.selection.list > .item:hover { - background: @selectionListHoverBackground; - color: @selectionListHoverColor; -} -.ui.selection.list .list > .item:active, -.ui.selection.list > .item:active { - background: @selectionListDownBackground; - color: @selectionListDownColor; -} -.ui.selection.list .list > .item.active, -.ui.selection.list > .item.active { - background: @selectionListActiveBackground; - color: @selectionListActiveColor; -} - -/* Inverted */ -.ui.inverted.selection.list > .item, -.ui.inverted.selection.list > .item { - background: @invertedSelectionListBackground; - color: @invertedSelectionListColor; -} -.ui.inverted.selection.list > .item:hover, -.ui.inverted.selection.list > .item:hover { - background: @invertedSelectionListHoverBackground; - color: @invertedSelectionListHoverColor; -} -.ui.inverted.selection.list > .item:active, -.ui.inverted.selection.list > .item:active { - background: @invertedSelectionListDownBackground; - color: @invertedSelectionListDownColor; -} -.ui.inverted.selection.list > .item.active, -.ui.inverted.selection.list > .item.active { - background: @invertedSelectionListActiveBackground; - color: @invertedSelectionListActiveColor; -} - -/* Celled / Divided Selection List */ -.ui.celled.selection.list .list > .item, -.ui.divided.selection.list .list > .item, -.ui.celled.selection.list > .item, -.ui.divided.selection.list > .item { - border-radius: 0em; -} - -/*------------------- - Animated ---------------------*/ - -.ui.animated.list > .item { - transition: @animatedListTransition; -} -.ui.animated.list:not(.horizontal) > .item:hover { - padding-left: @animatedListIndent; -} - -/*------------------- - Fitted ---------------------*/ -.ui.fitted.list:not(.selection) .list > .item, -.ui.fitted.list:not(.selection) > .item { - padding-left: 0em; - padding-right: 0em; -} -.ui.fitted.selection.list .list > .item, -.ui.fitted.selection.list > .item { - margin-left: -@selectionListItemHorizontalPadding; - margin-right: -@selectionListItemHorizontalPadding; -} - -/*------------------- - Bulleted ---------------------*/ - -ul.ui.list, -.ui.bulleted.list { - margin-left: @bulletDistance; -} -ul.ui.list li, -.ui.bulleted.list .list > .item, -.ui.bulleted.list > .item { - position: relative; -} -ul.ui.list li:before, -.ui.bulleted.list .list > .item:before, -.ui.bulleted.list > .item:before { - user-select: none; - pointer-events: none; - position: absolute; - top: auto; - left: auto; - font-weight: normal; - margin-left: @bulletOffset; - content: @bulletCharacter; - opacity: @bulletOpacity; - color: @bulletColor; - vertical-align: @bulletVerticalAlign; -} - -ul.ui.list li:before, -.ui.bulleted.list .list > a.item:before, -.ui.bulleted.list > a.item:before { - color: @bulletLinkColor; -} - -ul.ui.list ul, -.ui.bulleted.list .list { - padding-left: @bulletChildDistance; -} - -/* Horizontal Bulleted */ -ul.ui.horizontal.bulleted.list, -.ui.horizontal.bulleted.list { - margin-left: 0em; -} -ul.ui.horizontal.bulleted.list li, -.ui.horizontal.bulleted.list > .item { - margin-left: @horizontalBulletSpacing; -} -ul.ui.horizontal.bulleted.list li:first-child, -.ui.horizontal.bulleted.list > .item:first-child { - margin-left: 0em; -} -ul.ui.horizontal.bulleted.list li::before, -.ui.horizontal.bulleted.list > .item::before { - color: @horizontalBulletColor; -} -ul.ui.horizontal.bulleted.list li:first-child::before, -.ui.horizontal.bulleted.list > .item:first-child::before { - display: none; -} - -/*------------------- - Ordered ---------------------*/ - -ol.ui.list, -.ui.ordered.list, -.ui.ordered.list .list, -ol.ui.list ol { - counter-reset: ordered; - margin-left: @orderedCountDistance; - list-style-type: none; -} -ol.ui.list li, -.ui.ordered.list .list > .item, -.ui.ordered.list > .item { - list-style-type: none; - position: relative; -} -ol.ui.list li:before, -.ui.ordered.list .list > .item:before, -.ui.ordered.list > .item:before { - position: absolute; - top: auto; - left: auto; - user-select: none; - pointer-events: none; - margin-left: -(@orderedCountDistance); - counter-increment: @orderedCountName; - content: @orderedCountContent; - text-align: @orderedCountTextAlign; - color: @orderedCountColor; - vertical-align: @orderedCountVerticalAlign; - opacity: @orderedCountOpacity; -} - -ol.ui.inverted.list li:before, -.ui.ordered.inverted.list .list > .item:before, -.ui.ordered.inverted.list > .item:before { - color: @orderedInvertedCountColor; -} - -/* Value */ -.ui.ordered.list > .list > .item[data-value], -.ui.ordered.list > .item[data-value] { - content: attr(data-value); -} -ol.ui.list li[value]:before { - content: attr(value); -} - -/* Child Lists */ -ol.ui.list ol, -.ui.ordered.list .list { - margin-left: @orderedChildCountDistance; -} -ol.ui.list ol li:before, -.ui.ordered.list .list > .item:before { - margin-left: @orderedChildCountOffset; -} - -/* Horizontal Ordered */ -ol.ui.horizontal.list, -.ui.ordered.horizontal.list { - margin-left: 0em; -} -ol.ui.horizontal.list li:before, -.ui.ordered.horizontal.list .list > .item:before, -.ui.ordered.horizontal.list > .item:before { - position: static; - margin: 0em @horizontalOrderedCountDistance 0em 0em; -} - -/*------------------- - Divided ---------------------*/ - -.ui.divided.list > .item { - border-top: @dividedBorder; -} -.ui.divided.list .list > .item { - border-top: @dividedChildListBorder; -} -.ui.divided.list .item .list > .item { - border-top: @dividedChildItemBorder; -} -.ui.divided.list .list > .item:first-child, -.ui.divided.list > .item:first-child { - border-top: none; -} - -/* Sub Menu */ -.ui.divided.list:not(.horizontal) .list > .item:first-child { - border-top-width: @dividedBorderWidth; -} - -/* Divided bulleted */ -.ui.divided.bulleted.list:not(.horizontal), -.ui.divided.bulleted.list .list { - margin-left: 0em; - padding-left: 0em; -} -.ui.divided.bulleted.list > .item:not(.horizontal) { - padding-left: @bulletDistance; -} - -/* Divided Ordered */ -.ui.divided.ordered.list { - margin-left: 0em; -} -.ui.divided.ordered.list .list > .item, -.ui.divided.ordered.list > .item { - padding-left: @orderedCountDistance; -} -.ui.divided.ordered.list .item .list { - margin-left: 0em; - margin-right: 0em; - padding-bottom: @itemVerticalPadding; -} -.ui.divided.ordered.list .item .list > .item { - padding-left: @orderedChildCountDistance; -} - -/* Divided Selection */ -.ui.divided.selection.list .list > .item, -.ui.divided.selection.list > .item { - margin: 0em; - border-radius: 0em; -} - -/* Divided horizontal */ -.ui.divided.horizontal.list { - margin-left: 0em; -} -.ui.divided.horizontal.list > .item:not(:first-child) { - padding-left: @horizontalDividedSpacing; -} -.ui.divided.horizontal.list > .item:not(:last-child) { - padding-right: @horizontalDividedSpacing; -} -.ui.divided.horizontal.list > .item { - border-top: none; - border-left: @dividedBorder; - margin: 0em; - line-height: @horizontalDividedLineHeight; -} -.ui.horizontal.divided.list > .item:first-child { - border-left: none; -} -/* Inverted */ -.ui.divided.inverted.list > .item, -.ui.divided.inverted.list > .list, -.ui.divided.inverted.horizontal.list > .item { - border-color: @dividedInvertedBorderColor; -} - - -/*------------------- - Celled ---------------------*/ - -.ui.celled.list > .item, -.ui.celled.list > .list { - border-top: @celledBorder; - padding-left: @celledHorizontalPadding; - padding-right: @celledHorizontalPadding; -} -.ui.celled.list > .item:last-child { - border-bottom: @celledBorder; -} - -/* Padding on all elements */ -.ui.celled.list > .item:first-child, -.ui.celled.list > .item:last-child { - padding-top: @itemVerticalPadding; - padding-bottom: @itemVerticalPadding; -} - -/* Sub Menu */ -.ui.celled.list .item .list > .item { - border-width: 0px; -} -.ui.celled.list .list > .item:first-child { - border-top-width: 0px; -} - -/* Celled Bulleted */ -.ui.celled.bulleted.list { - margin-left: 0em; -} -.ui.celled.bulleted.list .list > .item, -.ui.celled.bulleted.list > .item { - padding-left: (@bulletDistance); -} -.ui.celled.bulleted.list .item .list { - margin-left: -(@bulletDistance); - margin-right: -(@bulletDistance); - padding-bottom: @itemVerticalPadding; -} - -/* Celled Ordered */ -.ui.celled.ordered.list { - margin-left: 0em; -} -.ui.celled.ordered.list .list > .item, -.ui.celled.ordered.list > .item { - padding-left: @orderedCountDistance; -} -.ui.celled.ordered.list .item .list { - margin-left: 0em; - margin-right: 0em; - padding-bottom: @itemVerticalPadding; -} -.ui.celled.ordered.list .list > .item { - padding-left: @orderedChildCountDistance; -} - -/* Celled Horizontal */ -.ui.horizontal.celled.list { - margin-left: 0em; -} -.ui.horizontal.celled.list .list > .item, -.ui.horizontal.celled.list > .item { - border-top: none; - border-left: @celledBorder; - margin: 0em; - padding-left: @horizontalCelledSpacing; - padding-right: @horizontalCelledSpacing; - - line-height: @horizontalCelledLineHeight; -} -.ui.horizontal.celled.list .list > .item:last-child, -.ui.horizontal.celled.list > .item:last-child { - border-bottom: none; - border-right: @celledBorder; -} - -/* Inverted */ -.ui.celled.inverted.list > .item, -.ui.celled.inverted.list > .list { - border-color: @celledInvertedBorder; -} -.ui.celled.inverted.horizontal.list .list > .item, -.ui.celled.inverted.horizontal.list > .item { - border-color: @celledInvertedBorder; -} - -/*------------------- - Relaxed ---------------------*/ - -.ui.relaxed.list:not(.horizontal) > .item:not(:first-child) { - padding-top: @relaxedItemVerticalPadding; -} -.ui.relaxed.list:not(.horizontal) > .item:not(:last-child) { - padding-bottom: @relaxedItemVerticalPadding; -} -.ui.horizontal.relaxed.list .list > .item:not(:first-child), -.ui.horizontal.relaxed.list > .item:not(:first-child) { - padding-left: @relaxedHorizontalPadding; -} -.ui.horizontal.relaxed.list .list > .item:not(:last-child), -.ui.horizontal.relaxed.list > .item:not(:last-child) { - padding-right: @relaxedHorizontalPadding; -} - -/* Very Relaxed */ -.ui[class*="very relaxed"].list:not(.horizontal) > .item:not(:first-child) { - padding-top: @veryRelaxedItemVerticalPadding; -} -.ui[class*="very relaxed"].list:not(.horizontal) > .item:not(:last-child) { - padding-bottom: @veryRelaxedItemVerticalPadding; -} -.ui.horizontal[class*="very relaxed"].list .list > .item:not(:first-child), -.ui.horizontal[class*="very relaxed"].list > .item:not(:first-child) { - padding-left: @veryRelaxedHorizontalPadding; -} -.ui.horizontal[class*="very relaxed"].list .list > .item:not(:last-child), -.ui.horizontal[class*="very relaxed"].list > .item:not(:last-child) { - padding-right: @veryRelaxedHorizontalPadding; -} - -/*------------------- - Sizes ---------------------*/ - -.ui.mini.list { - font-size: @relativeMini; -} -.ui.tiny.list { - font-size: @relativeTiny; -} -.ui.small.list { - font-size: @relativeSmall; -} -.ui.list { - font-size: @relativeMedium; -} -.ui.large.list { - font-size: @relativeLarge; -} -.ui.big.list { - font-size: @relativeBig; -} -.ui.huge.list { - font-size: @relativeHuge; -} -.ui.massive.list { - font-size: @relativeMassive; -} - -.ui.mini.horizontal.list .list > .item, -.ui.mini.horizontal.list > .item { - font-size: @mini; -} -.ui.tiny.horizontal.list .list > .item, -.ui.tiny.horizontal.list > .item { - font-size: @tiny; -} -.ui.small.horizontal.list .list > .item, -.ui.small.horizontal.list > .item { - font-size: @small; -} -.ui.horizontal.list .list > .item, -.ui.horizontal.list > .item { - font-size: @medium; -} -.ui.large.horizontal.list .list > .item, -.ui.large.horizontal.list > .item { - font-size: @large; -} -.ui.big.horizontal.list .list > .item, -.ui.big.horizontal.list > .item { - font-size: @big; -} -.ui.huge.horizontal.list .list > .item, -.ui.huge.horizontal.list > .item { - font-size: @huge; -} -.ui.massive.horizontal.list .list > .item, -.ui.massive.horizontal.list > .item { - font-size: @massive; -} - -.loadUIOverrides(); - diff --git a/node_modules/semantic-ui/src/definitions/elements/loader.less b/node_modules/semantic-ui/src/definitions/elements/loader.less deleted file mode 100755 index 40d5de6..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/loader.less +++ /dev/null @@ -1,332 +0,0 @@ -/*! - * # Semantic UI - Loader - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'loader'; - -@import (multiple) '../../theme.config'; - -/******************************* - Loader -*******************************/ - - -/* Standard Size */ -.ui.loader { - display: none; - position: absolute; - top: @loaderTopOffset; - left: @loaderLeftOffset; - margin: 0px; - text-align: center; - z-index: 1000; - transform: translateX(-50%) translateY(-50%); -} - -/* Static Shape */ -.ui.loader:before { - position: absolute; - content: ''; - top: 0%; - left: 50%; - width: 100%; - height: 100%; - - border-radius: @circularRadius; - border: @loaderLineWidth solid @loaderFillColor; -} - -/* Active Shape */ -.ui.loader:after { - position: absolute; - content: ''; - top: 0%; - left: 50%; - width: 100%; - height: 100%; - - animation: loader @loaderSpeed linear; - animation-iteration-count: infinite; - - border-radius: @circularRadius; - - border-color: @shapeBorderColor; - border-style: solid; - border-width: @loaderLineWidth; - - box-shadow: 0px 0px 0px 1px transparent; -} - -/* Active Animation */ -@keyframes loader { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - -/* Sizes */ -.ui.mini.loader:before, -.ui.mini.loader:after { - width: @mini; - height: @mini; - margin: @miniOffset; -} -.ui.tiny.loader:before, -.ui.tiny.loader:after { - width: @tiny; - height: @tiny; - margin: @tinyOffset; -} -.ui.small.loader:before, -.ui.small.loader:after { - width: @small; - height: @small; - margin: @smallOffset; -} -.ui.loader:before, -.ui.loader:after { - width: @medium; - height: @medium; - margin: @mediumOffset; -} -.ui.large.loader:before, -.ui.large.loader:after { - width: @large; - height: @large; - margin: @largeOffset; -} -.ui.big.loader:before, -.ui.big.loader:after { - width: @big; - height: @big; - margin: @bigOffset; -} -.ui.huge.loader:before, -.ui.huge.loader:after { - width: @huge; - height: @huge; - margin: @hugeOffset; -} -.ui.massive.loader:before, -.ui.massive.loader:after { - width: @massive; - height: @massive; - margin: @massiveOffset; -} - -/*------------------- - Coupling ---------------------*/ - -/* Show inside active dimmer */ -.ui.dimmer .loader { - display: block; -} - -/* Black Dimmer */ -.ui.dimmer .ui.loader { - color: @invertedLoaderTextColor; -} -.ui.dimmer .ui.loader:before { - border-color: @invertedLoaderFillColor; -} -.ui.dimmer .ui.loader:after { - border-color: @invertedShapeBorderColor; -} - -/* White Dimmer (Inverted) */ -.ui.inverted.dimmer .ui.loader { - color: @loaderTextColor; -} -.ui.inverted.dimmer .ui.loader:before { - border-color: @loaderFillColor; -} -.ui.inverted.dimmer .ui.loader:after { - border-color: @shapeBorderColor; -} - -/******************************* - Types -*******************************/ - - -/*------------------- - Text ---------------------*/ - -.ui.text.loader { - width: auto !important; - height: auto !important; - text-align: center; - font-style: normal; -} - - -/******************************* - States -*******************************/ - -.ui.indeterminate.loader:after { - animation-direction: @indeterminateDirection; - animation-duration: @indeterminateSpeed; -} - -.ui.loader.active, -.ui.loader.visible { - display: block; -} -.ui.loader.disabled, -.ui.loader.hidden { - display: none; -} - -/******************************* - Variations -*******************************/ - - -/*------------------- - Sizes ---------------------*/ - - -/* Loader */ -.ui.inverted.dimmer .ui.mini.loader, -.ui.mini.loader { - width: @mini; - height: @mini; - font-size: @miniFontSize; -} -.ui.inverted.dimmer .ui.tiny.loader, -.ui.tiny.loader { - width: @tiny; - height: @tiny; - font-size: @tinyFontSize; -} -.ui.inverted.dimmer .ui.small.loader, -.ui.small.loader { - width: @small; - height: @small; - font-size: @smallFontSize; -} -.ui.inverted.dimmer .ui.loader, -.ui.loader { - width: @medium; - height: @medium; - font-size: @mediumFontSize; -} -.ui.inverted.dimmer .ui.large.loader, -.ui.large.loader { - width: @large; - height: @large; - font-size: @largeFontSize; -} -.ui.inverted.dimmer .ui.big.loader, -.ui.big.loader { - width: @big; - height: @big; - font-size: @bigFontSize; -} -.ui.inverted.dimmer .ui.huge.loader, -.ui.huge.loader { - width: @huge; - height: @huge; - font-size: @hugeFontSize; -} -.ui.inverted.dimmer .ui.massive.loader, -.ui.massive.loader { - width: @massive; - height: @massive; - font-size: @massiveFontSize; -} - -/* Text Loader */ -.ui.mini.text.loader { - min-width: @mini; - padding-top: (@mini + @textDistance); -} -.ui.tiny.text.loader { - min-width: @tiny; - padding-top: (@tiny + @textDistance); -} -.ui.small.text.loader { - min-width: @small; - padding-top: (@small + @textDistance); -} -.ui.text.loader { - min-width: @medium; - padding-top: (@medium + @textDistance); -} -.ui.large.text.loader { - min-width: @large; - padding-top: (@large + @textDistance); -} -.ui.big.text.loader { - min-width: @big; - padding-top: (@big + @textDistance); -} -.ui.huge.text.loader { - min-width: @huge; - padding-top: (@huge + @textDistance); -} -.ui.massive.text.loader { - min-width: @massive; - padding-top: (@massive + @textDistance); -} - - -/*------------------- - Inverted ---------------------*/ - -.ui.inverted.loader { - color: @invertedLoaderTextColor -} -.ui.inverted.loader:before { - border-color: @invertedLoaderFillColor; -} -.ui.inverted.loader:after { - border-top-color: @invertedLoaderLineColor; -} - -/*------------------- - Inline ---------------------*/ - -.ui.inline.loader { - position: relative; - vertical-align: @inlineVerticalAlign; - margin: @inlineMargin; - left: 0em; - top: 0em; - transform: none; -} - -.ui.inline.loader.active, -.ui.inline.loader.visible { - display: inline-block; -} - -/* Centered Inline */ -.ui.centered.inline.loader.active, -.ui.centered.inline.loader.visible { - display: block; - margin-left: auto; - margin-right: auto; -} - - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/rail.less b/node_modules/semantic-ui/src/definitions/elements/rail.less deleted file mode 100755 index 7eacee7..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/rail.less +++ /dev/null @@ -1,154 +0,0 @@ -/*! - * # Semantic UI - Rail - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'rail'; - -@import (multiple) '../../theme.config'; - -/******************************* - Rails -*******************************/ - -.ui.rail { - position: absolute; - top: 0%; - width: @width; - height: @height; -} - -.ui.left.rail { - left: auto; - right: 100%; - padding: 0em @splitDistance 0em 0em; - margin: 0em @splitDistance 0em 0em; -} - -.ui.right.rail { - left: 100%; - right: auto; - padding: 0em 0em 0em @splitDistance; - margin: 0em 0em 0em @splitDistance; -} - -/******************************* - Variations -*******************************/ - -/*-------------- - Internal ----------------*/ - -.ui.left.internal.rail { - left: 0%; - right: auto; - padding: 0em 0em 0em @splitDistance; - margin: 0em 0em 0em @splitDistance; -} - -.ui.right.internal.rail { - left: auto; - right: 0%; - padding: 0em @splitDistance 0em 0em; - margin: 0em @splitDistance 0em 0em; -} - - -/*-------------- - Dividing ----------------*/ - -.ui.dividing.rail { - width: @dividingWidth; -} -.ui.left.dividing.rail { - padding: 0em @splitDividingDistance 0em 0em; - margin: 0em @splitDividingDistance 0em 0em; - border-right: @dividingBorder; -} -.ui.right.dividing.rail { - border-left: @dividingBorder; - padding: 0em 0em 0em @splitDividingDistance; - margin: 0em 0em 0em @splitDividingDistance; -} - -/*-------------- - Distance ----------------*/ - -.ui.close.rail { - width: @closeWidth; -} -.ui.close.left.rail { - padding: 0em @splitCloseDistance 0em 0em; - margin: 0em @splitCloseDistance 0em 0em; -} -.ui.close.right.rail { - padding: 0em 0em 0em @splitCloseDistance; - margin: 0em 0em 0em @splitCloseDistance; -} - -.ui.very.close.rail { - width: @veryCloseWidth; -} -.ui.very.close.left.rail { - padding: 0em @splitVeryCloseDistance 0em 0em; - margin: 0em @splitVeryCloseDistance 0em 0em; -} -.ui.very.close.right.rail { - padding: 0em 0em 0em @splitVeryCloseDistance; - margin: 0em 0em 0em @splitVeryCloseDistance; -} - -/*-------------- - Attached ----------------*/ - -.ui.attached.left.rail, -.ui.attached.right.rail { - padding: 0em; - margin: 0em; -} - -/*-------------- - Sizing ----------------*/ - -.ui.mini.rail { - font-size: @mini; -} -.ui.tiny.rail { - font-size: @tiny; -} -.ui.small.rail { - font-size: @small; -} -.ui.rail { - font-size: @medium; -} -.ui.large.rail { - font-size: @large; -} -.ui.big.rail { - font-size: @big; -} -.ui.huge.rail { - font-size: @huge; -} -.ui.massive.rail { - font-size: @massive; -} - - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/reveal.less b/node_modules/semantic-ui/src/definitions/elements/reveal.less deleted file mode 100755 index 353ba63..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/reveal.less +++ /dev/null @@ -1,265 +0,0 @@ -/*! - * # Semantic UI - Reveal - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'reveal'; - -@import (multiple) '../../theme.config'; - -/******************************* - Reveal -*******************************/ - -.ui.reveal { - display: inherit; - position: relative !important; - font-size: 0em !important; -} - -.ui.reveal > .visible.content { - position: absolute !important; - top: 0em !important; - left: 0em !important; - z-index: @topZIndex !important; - transition: @transition; -} -.ui.reveal > .hidden.content { - position: relative !important; - z-index: @bottomZIndex !important; -} - -/* Make sure hovered element is on top of other reveal */ -.ui.active.reveal .visible.content, -.ui.reveal:hover .visible.content { - z-index: @activeZIndex !important; -} - - -/******************************* - Types -*******************************/ - - -/*-------------- - Slide ----------------*/ - -.ui.slide.reveal { - position: relative !important; - overflow: hidden !important; - white-space: nowrap; -} - -.ui.slide.reveal > .content { - display: block; - width: 100%; - float: left; - - margin: 0em; - transition: @slideTransition; -} - -.ui.slide.reveal > .visible.content { - position: relative !important; -} -.ui.slide.reveal > .hidden.content { - position: absolute !important; - left: 0% !important; - width: 100% !important; - transform: translateX(100%) !important; -} -.ui.slide.active.reveal > .visible.content, -.ui.slide.reveal:hover > .visible.content { - transform: translateX(-100%) !important; -} -.ui.slide.active.reveal > .hidden.content, -.ui.slide.reveal:hover > .hidden.content { - transform: translateX(0%) !important; -} - -.ui.slide.right.reveal > .visible.content { - transform: translateX(0%) !important; -} -.ui.slide.right.reveal > .hidden.content { - transform: translateX(-100%) !important; -} -.ui.slide.right.active.reveal > .visible.content, -.ui.slide.right.reveal:hover > .visible.content { - transform: translateX(100%) !important; -} -.ui.slide.right.active.reveal > .hidden.content, -.ui.slide.right.reveal:hover > .hidden.content { - transform: translateX(0%) !important; -} - -.ui.slide.up.reveal > .hidden.content { - transform: translateY(100%) !important; -} -.ui.slide.up.active.reveal > .visible.content, -.ui.slide.up.reveal:hover > .visible.content { - transform: translateY(-100%) !important; -} -.ui.slide.up.active.reveal > .hidden.content, -.ui.slide.up.reveal:hover > .hidden.content { - transform: translateY(0%) !important; -} - -.ui.slide.down.reveal > .hidden.content { - transform: translateY(-100%) !important; -} -.ui.slide.down.active.reveal > .visible.content, -.ui.slide.down.reveal:hover > .visible.content { - transform: translateY(100%) !important; -} -.ui.slide.down.active.reveal > .hidden.content, -.ui.slide.down.reveal:hover > .hidden.content { - transform: translateY(0%) !important; -} - - -/*-------------- - Fade ----------------*/ - -.ui.fade.reveal > .visible.content { - opacity: 1; -} -.ui.fade.active.reveal > .visible.content, -.ui.fade.reveal:hover > .visible.content { - opacity: 0; -} - - -/*-------------- - Move ----------------*/ - -.ui.move.reveal { - position: relative !important; - overflow: hidden !important; - white-space: nowrap; -} - -.ui.move.reveal > .content { - display: block; - float: left; - - margin: 0em; - transition: @moveTransition; -} - -.ui.move.reveal > .visible.content { - position: relative !important; -} -.ui.move.reveal > .hidden.content { - position: absolute !important; - left: 0% !important; - width: 100% !important; -} -.ui.move.active.reveal > .visible.content, -.ui.move.reveal:hover > .visible.content { - transform: translateX(-100%) !important; -} -.ui.move.right.active.reveal > .visible.content, -.ui.move.right.reveal:hover > .visible.content { - transform: translateX(100%) !important; -} -.ui.move.up.active.reveal > .visible.content, -.ui.move.up.reveal:hover > .visible.content { - transform: translateY(-100%) !important; -} -.ui.move.down.active.reveal > .visible.content, -.ui.move.down.reveal:hover > .visible.content { - transform: translateY(100%) !important; -} - - - -/*-------------- - Rotate ----------------*/ - -.ui.rotate.reveal > .visible.content { - transition-duration: @transitionDuration; - transform: rotate(0deg); -} - -.ui.rotate.reveal > .visible.content, -.ui.rotate.right.reveal > .visible.content { - transform-origin: bottom right; -} -.ui.rotate.active.reveal > .visible.content, -.ui.rotate.reveal:hover > .visible.content, -.ui.rotate.right.active.reveal > .visible.content, -.ui.rotate.right.reveal:hover > .visible.content { - transform: rotate(@rotateDegrees); -} - -.ui.rotate.left.reveal > .visible.content { - transform-origin: bottom left; -} -.ui.rotate.left.active.reveal > .visible.content, -.ui.rotate.left.reveal:hover > .visible.content { - transform: rotate(-@rotateDegrees); -} - -/******************************* - States -*******************************/ - -.ui.disabled.reveal:hover > .visible.visible.content { - position: static !important; - display: block !important; - opacity: 1 !important; - top: 0 !important; - left: 0 !important; - right: auto !important; - bottom: auto !important; - transform: none !important; -} -.ui.disabled.reveal:hover > .hidden.hidden.content { - display: none !important; -} - - -/******************************* - Variations -*******************************/ - -/*-------------- - Visible ----------------*/ - -.ui.visible.reveal { - overflow: visible; -} - -/*-------------- - Instant ----------------*/ - -.ui.instant.reveal > .content { - transition-delay: 0s !important; -} - - -/*-------------- - Sizing ----------------*/ - -.ui.reveal > .content { - font-size: @medium !important; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/segment.less b/node_modules/semantic-ui/src/definitions/elements/segment.less deleted file mode 100755 index 9a7bd52..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/segment.less +++ /dev/null @@ -1,775 +0,0 @@ -/*! - * # Semantic UI - Segment - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'element'; -@element : 'segment'; - -@import (multiple) '../../theme.config'; - -/******************************* - Segment -*******************************/ - -.ui.segment { - position: relative; - background: @background; - box-shadow: @boxShadow; - margin: @margin; - padding: @padding; - border-radius: @borderRadius; - border: @border; -} - -.ui.segment:first-child { - margin-top: 0em; -} -.ui.segment:last-child { - margin-bottom: 0em; -} - - -/* Vertical */ -.ui.vertical.segment { - margin: 0em; - padding-left: 0em; - padding-right: 0em; - - background: none transparent; - border-radius: 0px; - box-shadow: none; - border: none; - border-bottom: @borderWidth solid @borderColor; -} -.ui.vertical.segment:last-child { - border-bottom: none; -} - - -/*------------------- - Loose Coupling ---------------------*/ - -/* Header */ -.ui.inverted.segment > .ui.header { - color: @white; -} - -/* Label */ -.ui[class*="bottom attached"].segment > [class*="top attached"].label { - border-top-left-radius: 0em; - border-top-right-radius: 0em; -} -.ui[class*="top attached"].segment > [class*="bottom attached"].label { - border-bottom-left-radius: 0em; - border-bottom-right-radius: 0em; -} -.ui.attached.segment:not(.top):not(.bottom) > [class*="top attached"].label { - border-top-left-radius: 0em; - border-top-right-radius: 0em; -} -.ui.attached.segment:not(.top):not(.bottom) > [class*="bottom attached"].label { - border-bottom-left-radius: 0em; - border-bottom-right-radius: 0em; -} - -/* Grid */ -.ui.page.grid.segment, -.ui.grid > .row > .ui.segment.column, -.ui.grid > .ui.segment.column { - padding-top: @pageGridMargin; - padding-bottom: @pageGridMargin; -} -.ui.grid.segment { - margin: @margin; - border-radius: @borderRadius; -} - -/* Table */ -.ui.basic.table.segment { - background: @background; - border: @border; - box-shadow: @boxShadow; -} -.ui[class*="very basic"].table.segment { - padding: @padding; -} - - -/******************************* - Types -*******************************/ - -/*------------------- - Piled ---------------------*/ - -.ui.piled.segments, -.ui.piled.segment { - margin: @piledMargin 0em; - box-shadow: @piledBoxShadow; - z-index: @piledZIndex; -} -.ui.piled.segment:first-child { - margin-top: 0em; -} -.ui.piled.segment:last-child { - margin-bottom: 0em; -} -.ui.piled.segments:after, -.ui.piled.segments:before, -.ui.piled.segment:after, -.ui.piled.segment:before { - background-color: @white; - visibility: visible; - content: ''; - display: block; - height: 100%; - left: 0px; - position: absolute; - width: 100%; - border: @piledBorder; - box-shadow: @piledBoxShadow; -} -.ui.piled.segments:before, -.ui.piled.segment:before { - transform: rotate(-@piledDegrees); - top: 0; - z-index: -2; -} -.ui.piled.segments:after, -.ui.piled.segment:after { - transform: rotate(@piledDegrees); - top: 0; - z-index: -1; -} - -/* Piled Attached */ -.ui[class*="top attached"].piled.segment { - margin-top: @piledMargin; - margin-bottom: 0em; -} -.ui.piled.segment[class*="top attached"]:first-child { - margin-top: 0em; -} -.ui.piled.segment[class*="bottom attached"] { - margin-top: 0em; - margin-bottom: @piledMargin; -} -.ui.piled.segment[class*="bottom attached"]:last-child { - margin-bottom: 0em; -} - -/*------------------- - Stacked ---------------------*/ - -.ui.stacked.segment { - padding-bottom: @stackedPadding; -} -.ui.stacked.segments:before, -.ui.stacked.segments:after, -.ui.stacked.segment:before, -.ui.stacked.segment:after { - content: ''; - position: absolute; - bottom: -(@stackedHeight / 2); - left: 0%; - - border-top: 1px solid @borderColor; - background: @stackedPageBackground; - - width: 100%; - height: @stackedHeight; - visibility: visible; -} -.ui.stacked.segments:before, -.ui.stacked.segment:before { - display: none; -} - -/* Add additional page */ -.ui.tall.stacked.segments:before, -.ui.tall.stacked.segment:before { - display: block; - bottom: 0px; -} - -/* Inverted */ -.ui.stacked.inverted.segments:before, -.ui.stacked.inverted.segments:after, -.ui.stacked.inverted.segment:before, -.ui.stacked.inverted.segment:after { - background-color: @subtleTransparentBlack; - border-top: 1px solid @selectedBorderColor; -} - -/*------------------- - Padded ---------------------*/ - -.ui.padded.segment { - padding: @paddedSegmentPadding; -} - -.ui[class*="very padded"].segment { - padding: @veryPaddedSegmentPadding; -} - -/* Padded vertical */ -.ui.padded.segment.vertical.segment, -.ui[class*="very padded"].vertical.segment { - padding-left: 0px; - padding-right: 0px; -} - -/*------------------- - Compact ---------------------*/ - -.ui.compact.segment { - display: table; -} - -/* Compact Group */ -.ui.compact.segments { - display: inline-flex; -} -.ui.compact.segments .segment, -.ui.segments .compact.segment { - display: block; - flex: 0 1 auto; -} - -/*------------------- - Circular ---------------------*/ - -.ui.circular.segment { - display: table-cell; - padding: @circularPadding; - text-align: center; - vertical-align: middle; - border-radius: 500em; -} - -/*------------------- - Raised ---------------------*/ - -.ui.raised.segments, -.ui.raised.segment { - box-shadow: @raisedBoxShadow; -} - - -/******************************* - Groups -*******************************/ - -/* Group */ -.ui.segments { - flex-direction: column; - position: relative; - margin: @groupedMargin; - border: @groupedBorder; - box-shadow: @groupedBoxShadow; - border-radius: @groupedBorderRadius; -} -.ui.segments:first-child { - margin-top: 0em; -} -.ui.segments:last-child { - margin-bottom: 0em; -} - - -/* Nested Segment */ -.ui.segments > .segment { - top: 0px; - bottom: 0px; - border-radius: 0px; - margin: @groupedSegmentMargin; - width: @groupedSegmentWidth; - box-shadow: @groupedSegmentBoxShadow; - border: @groupedSegmentBorder; - border-top: @groupedSegmentDivider; -} - -.ui.segments:not(.horizontal) > .segment:first-child { - top: @attachedTopOffset; - bottom: 0px; - border-top: none; - margin-top: 0em; - bottom: 0px; - margin-bottom: 0em; - top: @attachedTopOffset; - border-radius: @borderRadius @borderRadius 0em 0em; -} - -/* Bottom */ -.ui.segments:not(.horizontal) > .segment:last-child { - top: @attachedBottomOffset; - bottom: 0px; - margin-top: 0em; - margin-bottom: 0em; - box-shadow: @attachedBottomBoxShadow; - border-radius: 0em 0em @borderRadius @borderRadius; -} - -/* Only */ -.ui.segments:not(.horizontal) > .segment:only-child { - border-radius: @borderRadius; -} - - -/* Nested Group */ -.ui.segments > .ui.segments { - border-top: @groupedSegmentDivider; - margin: @nestedGroupMargin; -} -.ui.segments > .segments:first-child { - border-top: none; -} -.ui.segments > .segment + .segments:not(.horizontal) { - margin-top: 0em; -} - -/* Horizontal Group */ -.ui.horizontal.segments { - display: flex; - flex-direction: row; - background-color: transparent; - border-radius: 0px; - padding: 0em; - background-color: @background; - box-shadow: @boxShadow; - margin: @margin; - border-radius: @borderRadius; - border: @border; -} - -/* Nested Horizontal Group */ -.ui.segments > .horizontal.segments { - margin: 0em; - background-color: transparent; - border-radius: 0px; - border: none; - box-shadow: none; - border-top: @groupedSegmentDivider; -} - -/* Horizontal Segment */ -.ui.horizontal.segments > .segment { - flex: 1 1 auto; - -ms-flex: 1 1 0px; /* Solves #2550 MS Flex */ - margin: 0em; - min-width: 0px; - background-color: transparent; - border-radius: 0px; - border: none; - box-shadow: none; - border-left: @borderWidth solid @borderColor; -} - -/* Border Fixes */ -.ui.segments > .horizontal.segments:first-child { - border-top: none; -} -.ui.horizontal.segments > .segment:first-child { - border-left: none; -} - - -/******************************* - States -*******************************/ - -/*-------------- - Disabled ----------------*/ - -.ui.disabled.segment { - opacity: @disabledOpacity; - color: @disabledTextColor; -} - -/*-------------- - Loading ----------------*/ - -.ui.loading.segment { - position: relative; - cursor: default; - pointer-events: none; - text-shadow: none !important; - color: transparent !important; - transition: all 0s linear; -} -.ui.loading.segment:before { - position: absolute; - content: ''; - top: 0%; - left: 0%; - background: @loaderDimmerColor; - width: 100%; - height: 100%; - border-radius: @borderRadius; - z-index: @loaderDimmerZIndex; -} -.ui.loading.segment:after { - position: absolute; - content: ''; - top: 50%; - left: 50%; - - margin: @loaderMargin; - width: @loaderSize; - height: @loaderSize; - - animation: segment-spin @loaderSpeed linear; - animation-iteration-count: infinite; - - border-radius: @circularRadius; - - border-color: @loaderLineColor @loaderFillColor @loaderFillColor @loaderFillColor; - border-style: solid; - border-width: @loaderLineWidth; - - box-shadow: 0px 0px 0px 1px transparent; - visibility: visible; - z-index: @loaderLineZIndex; -} - -@keyframes segment-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - - -/******************************* - Variations -*******************************/ - - -/*------------------- - Basic ---------------------*/ - -.ui.basic.segment { - background: @basicBackground; - box-shadow: @basicBoxShadow; - border: @basicBorder; - border-radius: @basicBorderRadius; -} - -/*------------------- - Clearing ---------------------*/ - -.ui.clearing.segment:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} - -/*------------------- - Colors ---------------------*/ - -/* Red */ -.ui.red.segment:not(.inverted) { - border-top: @coloredBorderSize solid @red; -} -.ui.inverted.red.segment { - background-color: @red !important; - color: @white !important; -} - -/* Orange */ -.ui.orange.segment:not(.inverted) { - border-top: @coloredBorderSize solid @orange; -} -.ui.inverted.orange.segment { - background-color: @orange !important; - color: @white !important; -} - -/* Yellow */ -.ui.yellow.segment:not(.inverted) { - border-top: @coloredBorderSize solid @yellow; -} -.ui.inverted.yellow.segment { - background-color: @yellow !important; - color: @white !important; -} - -/* Olive */ -.ui.olive.segment:not(.inverted) { - border-top: @coloredBorderSize solid @olive; -} -.ui.inverted.olive.segment { - background-color: @olive !important; - color: @white !important; -} - -/* Green */ -.ui.green.segment:not(.inverted) { - border-top: @coloredBorderSize solid @green; -} -.ui.inverted.green.segment { - background-color: @green !important; - color: @white !important; -} - -/* Teal */ -.ui.teal.segment:not(.inverted) { - border-top: @coloredBorderSize solid @teal; -} -.ui.inverted.teal.segment { - background-color: @teal !important; - color: @white !important; -} - -/* Blue */ -.ui.blue.segment:not(.inverted) { - border-top: @coloredBorderSize solid @blue; -} -.ui.inverted.blue.segment { - background-color: @blue !important; - color: @white !important; -} - -/* Violet */ -.ui.violet.segment:not(.inverted) { - border-top: @coloredBorderSize solid @violet; -} -.ui.inverted.violet.segment { - background-color: @violet !important; - color: @white !important; -} - -/* Purple */ -.ui.purple.segment:not(.inverted) { - border-top: @coloredBorderSize solid @purple; -} -.ui.inverted.purple.segment { - background-color: @purple !important; - color: @white !important; -} - -/* Pink */ -.ui.pink.segment:not(.inverted) { - border-top: @coloredBorderSize solid @pink; -} -.ui.inverted.pink.segment { - background-color: @pink !important; - color: @white !important; -} - -/* Brown */ -.ui.brown.segment:not(.inverted) { - border-top: @coloredBorderSize solid @brown; -} -.ui.inverted.brown.segment { - background-color: @brown !important; - color: @white !important; -} - -/* Grey */ -.ui.grey.segment:not(.inverted) { - border-top: @coloredBorderSize solid @grey; -} -.ui.inverted.grey.segment { - background-color: @grey !important; - color: @white !important; -} - -/* Black */ -.ui.black.segment:not(.inverted) { - border-top: @coloredBorderSize solid @black; -} -.ui.inverted.black.segment { - background-color: @black !important; - color: @white !important; -} - -/*------------------- - Aligned ---------------------*/ - -.ui[class*="left aligned"].segment { - text-align: left; -} -.ui[class*="right aligned"].segment { - text-align: right; -} -.ui[class*="center aligned"].segment { - text-align: center; -} - -/*------------------- - Floated ---------------------*/ - -.ui.floated.segment, -.ui[class*="left floated"].segment { - float: left; - margin-right: @floatedDistance; -} -.ui[class*="right floated"].segment { - float: right; - margin-left: @floatedDistance; -} - - -/*------------------- - Inverted ---------------------*/ - -.ui.inverted.segment { - border: none; - box-shadow: none; -} -.ui.inverted.segment, -.ui.primary.inverted.segment { - background: @invertedBackground; - color: @invertedTextColor; -} - -/* Nested */ -.ui.inverted.segment .segment { - color: @textColor; -} -.ui.inverted.segment .inverted.segment { - color: @invertedTextColor; -} - -/* Attached */ -.ui.inverted.attached.segment { - border-color: @solidWhiteBorderColor; -} - -/*------------------- - Emphasis ---------------------*/ - -/* Secondary */ -.ui.secondary.segment { - background: @secondaryBackground; - color: @secondaryColor; -} -.ui.secondary.inverted.segment { - background: @secondaryInvertedBackground; - color: @secondaryInvertedColor; -} - -/* Tertiary */ -.ui.tertiary.segment { - background: @tertiaryBackground; - color: @tertiaryColor; -} -.ui.tertiary.inverted.segment { - background: @tertiaryInvertedBackground; - color: @tertiaryInvertedColor; -} - - -/*------------------- - Attached ---------------------*/ - -/* Middle */ -.ui.attached.segment { - top: 0px; - bottom: 0px; - border-radius: 0px; - margin: 0em @attachedHorizontalOffset; - width: @attachedWidth; - max-width: @attachedWidth; - box-shadow: @attachedBoxShadow; - border: @attachedBorder; -} -.ui.attached:not(.message) + .ui.attached.segment:not(.top) { - border-top: none; -} - -/* Top */ -.ui[class*="top attached"].segment { - bottom: 0px; - margin-bottom: 0em; - top: @attachedTopOffset; - margin-top: @verticalMargin; - border-radius: @borderRadius @borderRadius 0em 0em; -} -.ui.segment[class*="top attached"]:first-child { - margin-top: 0em; -} - -/* Bottom */ -.ui.segment[class*="bottom attached"] { - bottom: 0px; - margin-top: 0em; - top: @attachedBottomOffset; - margin-bottom: @verticalMargin; - box-shadow: @attachedBottomBoxShadow; - border-radius: 0em 0em @borderRadius @borderRadius; -} -.ui.segment[class*="bottom attached"]:last-child { - margin-bottom: 0em; -} - -/*------------------- - Size ---------------------*/ - -.ui.mini.segments .segment, -.ui.mini.segment { - font-size: @mini; -} -.ui.tiny.segments .segment, -.ui.tiny.segment { - font-size: @tiny; -} -.ui.small.segments .segment, -.ui.small.segment { - font-size: @small; -} -.ui.segments .segment, -.ui.segment { - font-size: @medium; -} -.ui.large.segments .segment, -.ui.large.segment { - font-size: @large; -} -.ui.big.segments .segment, -.ui.big.segment { - font-size: @big; -} -.ui.huge.segments .segment, -.ui.huge.segment { - font-size: @huge; -} -.ui.massive.segments .segment, -.ui.massive.segment { - font-size: @massive; -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/elements/step.less b/node_modules/semantic-ui/src/definitions/elements/step.less deleted file mode 100755 index d4c1937..0000000 --- a/node_modules/semantic-ui/src/definitions/elements/step.less +++ /dev/null @@ -1,562 +0,0 @@ -/*! - * # Semantic UI - Step - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Step -*******************************/ - -/*-------------- - Load Theme ----------------*/ - -@type : 'element'; -@element : 'step'; - -@import (multiple) '../../theme.config'; - -/******************************* - Plural -*******************************/ - -.ui.steps { - display: inline-flex; - flex-direction: row; - align-items: stretch; - margin: @stepMargin; - background: @stepsBackground; - box-shadow: @stepsBoxShadow; - line-height: @lineHeight; - border-radius: @stepsBorderRadius; - border: @stepsBorder; -} - -/* First Steps */ -.ui.steps:first-child { - margin-top: 0em; -} - -/* Last Steps */ -.ui.steps:last-child { - margin-bottom: 0em; -} - - -/******************************* - Singular -*******************************/ - -.ui.steps .step { - position: relative; - display: flex; - flex: 1 0 auto; - flex-wrap: wrap; - flex-direction: row; - vertical-align: middle; - align-items: center; - justify-content: @justifyContent; - - margin: @verticalMargin @horizontalMargin; - padding: @verticalPadding @horizontalPadding; - background: @background; - color: @textColor; - box-shadow: @boxShadow; - border-radius: @borderRadius; - border: @border; - border-right: @divider; - transition: @transition; -} - -/* Arrow */ -.ui.steps .step:after { - display: none; - position: absolute; - z-index: 2; - content: ''; - top: @arrowTopOffset; - right: @arrowRightOffset; - border: medium none; - background-color: @arrowBackgroundColor; - width: @arrowSize; - height: @arrowSize; - - border-style: solid; - border-color: @borderColor; - border-width: @arrowBorderWidth; - - transition: @transition; - transform: translateY(-50%) translateX(50%) rotate(-45deg); -} - -/* First Step */ -.ui.steps .step:first-child { - padding-left: @horizontalPadding; - border-radius: @stepsBorderRadius 0em 0em @stepsBorderRadius; -} - -/* Last Step */ -.ui.steps .step:last-child { - border-radius: 0em @stepsBorderRadius @stepsBorderRadius 0em; -} -.ui.steps .step:last-child { - border-right: none; - margin-right: 0em; -} - -/* Only Step */ -.ui.steps .step:only-child { - border-radius: @stepsBorderRadius; -} - - -/******************************* - Content -*******************************/ - -/* Title */ -.ui.steps .step .title { - font-family: @titleFontFamily; - font-size: @titleFontSize; - font-weight: @titleFontWeight; -} -.ui.steps .step > .title { - width: 100%; -} - -/* Description */ -.ui.steps .step .description { - font-weight: @descriptionFontWeight; - font-size: @descriptionFontSize; - color: @descriptionColor; -} -.ui.steps .step > .description { - width: 100%; -} -.ui.steps .step .title ~ .description { - margin-top: @descriptionDistance; -} - -/* Icon */ -.ui.steps .step > .icon { - line-height: 1; - font-size: @iconSize; - margin: 0em @iconDistance 0em 0em; -} -.ui.steps .step > .icon, -.ui.steps .step > .icon ~ .content { - display: block; - flex: 0 1 auto; - align-self: @iconAlign; -} -.ui.steps .step > .icon ~ .content { - flex-grow: 1 0 auto; -} - -/* Horizontal Icon */ -.ui.steps:not(.vertical) .step > .icon { - width: auto; -} - -/* Link */ -.ui.steps .link.step, -.ui.steps a.step { - cursor: pointer; -} - -/******************************* - Types -*******************************/ - -/*-------------- - Ordered ----------------*/ - -.ui.ordered.steps { - counter-reset: ordered; -} -.ui.ordered.steps .step:before { - display: block; - position: static; - text-align: center; - content: counters(ordered, "."); - align-self: @iconAlign; - margin-right: @iconDistance; - font-size: @iconSize; - counter-increment: ordered; - font-family: @orderedFontFamily; - font-weight: @orderedFontWeight; -} - -.ui.ordered.steps .step > * { - display: block; - align-self: @iconAlign; -} - - -/*-------------- - Vertical ----------------*/ - -.ui.vertical.steps { - display: inline-flex; - flex-direction: column; - overflow: visible; -} -.ui.vertical.steps .step { - justify-content: flex-start; - border-radius: @borderRadius; - padding: @verticalPadding @horizontalPadding; - border-right: none; - border-bottom: @verticalDivider; -} -.ui.vertical.steps .step:first-child { - padding: @verticalPadding @horizontalPadding; - border-radius: @stepsBorderRadius @stepsBorderRadius 0em 0em; -} -.ui.vertical.steps .step:last-child { - border-bottom: none; - border-radius: 0em 0em @stepsBorderRadius @stepsBorderRadius; -} -.ui.vertical.steps .step:only-child { - border-radius: @stepsBorderRadius; -} - - -/* Arrow */ -.ui.vertical.steps .step:after { - display: none; -} -.ui.vertical.steps .step:after { - top: @verticalArrowTopOffset; - right: @verticalArrowRightOffset; - border-width: @verticalArrowBorderWidth; -} - -.ui.vertical.steps .step:after { - display: @verticalArrowDisplay; -} -.ui.vertical.steps .active.step:after { - display: @verticalActiveArrowDisplay; -} -.ui.vertical.steps .step:last-child:after { - display: @verticalLastArrowDisplay; -} -.ui.vertical.steps .active.step:last-child:after { - display: @verticalActiveLastArrowDisplay; -} - - -/*--------------- - Responsive -----------------*/ - -/* Mobile (Default) */ -@media only screen and (max-width: (@largestMobileScreen)) { - -.ui.steps { - display: inline-flex; - overflow: visible; - flex-direction: column; -} -.ui.steps .step { - width: 100% !important; - flex-direction: column; - border-radius: @borderRadius; - padding: @verticalPadding @horizontalPadding; -} -.ui.steps .step:first-child { - padding: @verticalPadding @horizontalPadding; - border-radius: @stepsBorderRadius @stepsBorderRadius 0em 0em; -} -.ui.steps .step:last-child { - border-radius: 0em 0em @stepsBorderRadius @stepsBorderRadius; -} - -/* Arrow */ -.ui.steps .step:after { - display: none !important; -} - -/* Content */ -.ui.steps .step .content { - text-align: center; -} - -/* Icon */ -.ui.steps .step > .icon, -.ui.ordered.steps .step:before { - margin: 0em 0em @mobileIconDistance 0em; -} - -} - -/******************************* - States -*******************************/ - -/* Link Hover */ -.ui.steps .link.step:hover::after, -.ui.steps .link.step:hover, -.ui.steps a.step:hover::after, -.ui.steps a.step:hover { - background: @hoverBackground; - color: @hoverColor; -} - -/* Link Down */ -.ui.steps .link.step:active::after, -.ui.steps .link.step:active, -.ui.steps a.step:active::after, -.ui.steps a.step:active { - background: @downBackground; - color: @downColor; -} - -/* Active */ -.ui.steps .step.active { - cursor: auto; - background: @activeBackground; -} -.ui.steps .step.active:after { - background: @activeBackground; -} -.ui.steps .step.active .title { - color: @activeColor; -} -.ui.ordered.steps .step.active:before, -.ui.steps .active.step .icon { - color: @activeIconColor; -} - -/* Active Arrow */ -.ui.steps .step:after { - display: @arrowDisplay; -} -.ui.steps .active.step:after { - display: @activeArrowDisplay; -} -.ui.steps .step:last-child:after { - display: @lastArrowDisplay; -} -.ui.steps .active.step:last-child:after { - display: @activeLastArrowDisplay; -} - -/* Active Hover */ -.ui.steps .link.active.step:hover::after, -.ui.steps .link.active.step:hover, -.ui.steps a.active.step:hover::after, -.ui.steps a.active.step:hover { - cursor: pointer; - background: @activeHoverBackground; - color: @activeHoverColor; -} - -/* Completed */ -.ui.steps .step.completed > .icon:before, -.ui.ordered.steps .step.completed:before { - color: @completedColor; -} - -/* Disabled */ -.ui.steps .disabled.step { - cursor: auto; - background: @disabledBackground; - pointer-events: none; -} -.ui.steps .disabled.step, -.ui.steps .disabled.step .title, -.ui.steps .disabled.step .description { - color: @disabledColor; -} -.ui.steps .disabled.step:after { - background: @disabledBackground; -} - - -/******************************* - Variations -*******************************/ - - -/*-------------- - Stackable ----------------*/ - -/* Tablet Or Below */ -@media only screen and (max-width: @largestTabletScreen) { - -.ui[class*="tablet stackable"].steps { - display: inline-flex; - overflow: visible; - flex-direction: column; -} - -/* Steps */ -.ui[class*="tablet stackable"].steps .step { - flex-direction: column; - border-radius: @borderRadius; - padding: @verticalPadding @horizontalPadding; -} -.ui[class*="tablet stackable"].steps .step:first-child { - padding: @verticalPadding @horizontalPadding; - border-radius: @stepsBorderRadius @stepsBorderRadius 0em 0em; -} -.ui[class*="tablet stackable"].steps .step:last-child { - border-radius: 0em 0em @stepsBorderRadius @stepsBorderRadius; -} - -/* Arrow */ -.ui[class*="tablet stackable"].steps .step:after { - display: none !important; -} - -/* Content */ -.ui[class*="tablet stackable"].steps .step .content { - text-align: center; -} - -/* Icon */ -.ui[class*="tablet stackable"].steps .step > .icon, -.ui[class*="tablet stackable"].ordered.steps .step:before { - margin: 0em 0em @mobileIconDistance 0em; -} - -} - -/*-------------- - Fluid ----------------*/ - -/* Fluid */ -.ui.fluid.steps { - display: flex; - width: 100%; -} - -/*-------------- - Attached ----------------*/ - -/* Top */ -.ui.attached.steps { - width: @attachedWidth !important; - margin: 0em @attachedHorizontalOffset @attachedVerticalOffset; - max-width: @attachedWidth; - border-radius: @stepsBorderRadius @stepsBorderRadius 0em 0em; -} -.ui.attached.steps .step:first-child { - border-radius: @stepsBorderRadius 0em 0em 0em; -} -.ui.attached.steps .step:last-child { - border-radius: 0em @stepsBorderRadius 0em 0em; -} - -/* Bottom */ -.ui.bottom.attached.steps { - margin: @attachedVerticalOffset @attachedHorizontalOffset 0em; - border-radius: 0em 0em @stepsBorderRadius @stepsBorderRadius; -} -.ui.bottom.attached.steps .step:first-child { - border-radius: 0em 0em 0em @stepsBorderRadius; -} -.ui.bottom.attached.steps .step:last-child { - border-radius: 0em 0em @stepsBorderRadius 0em; -} - -/*------------------- - Evenly Divided ---------------------*/ - -.ui.one.steps, -.ui.two.steps, -.ui.three.steps, -.ui.four.steps, -.ui.five.steps, -.ui.six.steps, -.ui.seven.steps, -.ui.eight.steps { - width: 100%; -} -.ui.one.steps > .step, -.ui.two.steps > .step, -.ui.three.steps > .step, -.ui.four.steps > .step, -.ui.five.steps > .step, -.ui.six.steps > .step, -.ui.seven.steps > .step, -.ui.eight.steps > .step { - flex-wrap: nowrap; -} -.ui.one.steps > .step { - width: 100%; -} -.ui.two.steps > .step { - width: 50%; -} -.ui.three.steps > .step { - width: 33.333%; -} -.ui.four.steps > .step { - width: 25%; -} -.ui.five.steps > .step { - width: 20%; -} -.ui.six.steps > .step { - width: 16.666%; -} -.ui.seven.steps > .step { - width: 14.285%; -} -.ui.eight.steps > .step { - width: 12.500%; -} - -/*------------------- - Sizes ---------------------*/ - - -.ui.mini.steps .step, -.ui.mini.step { - font-size: @mini; -} -.ui.tiny.steps .step, -.ui.tiny.step { - font-size: @tiny; -} -.ui.small.steps .step, -.ui.small.step { - font-size: @small; -} -.ui.steps .step, -.ui.step { - font-size: @medium; -} -.ui.large.steps .step, -.ui.large.step { - font-size: @large; -} -.ui.big.steps .step, -.ui.big.step { - font-size: @big; -} -.ui.huge.steps .step, -.ui.huge.step { - font-size: @huge; -} -.ui.massive.steps .step, -.ui.massive.step { - font-size: @massive; -} - - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/globals/reset.less b/node_modules/semantic-ui/src/definitions/globals/reset.less deleted file mode 100755 index 7514d94..0000000 --- a/node_modules/semantic-ui/src/definitions/globals/reset.less +++ /dev/null @@ -1,40 +0,0 @@ -/*! - * # Semantic UI - Reset - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'global'; -@element : 'reset'; - -@import (multiple) '../../theme.config'; - -/******************************* - Reset -*******************************/ - -/* Border-Box */ -*, -*:before, -*:after { - box-sizing: inherit; -} -html { - box-sizing: border-box; -} - -/* iPad Input Shadows */ -input[type="text"], input[type="email"], input[type="search"], input[type="password"] { - -webkit-appearance: none; - -moz-appearance: none; /* mobile firefox too! */ -} - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/globals/site.js b/node_modules/semantic-ui/src/definitions/globals/site.js deleted file mode 100644 index 63cbd9d..0000000 --- a/node_modules/semantic-ui/src/definitions/globals/site.js +++ /dev/null @@ -1,487 +0,0 @@ -/*! - * # Semantic UI - Site - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -$.site = $.fn.site = function(parameters) { - var - time = new Date().getTime(), - performance = [], - - query = arguments[0], - methodInvoked = (typeof query == 'string'), - queryArguments = [].slice.call(arguments, 1), - - settings = ( $.isPlainObject(parameters) ) - ? $.extend(true, {}, $.site.settings, parameters) - : $.extend({}, $.site.settings), - - namespace = settings.namespace, - error = settings.error, - - eventNamespace = '.' + namespace, - moduleNamespace = 'module-' + namespace, - - $document = $(document), - $module = $document, - element = this, - instance = $module.data(moduleNamespace), - - module, - returnedValue - ; - module = { - - initialize: function() { - module.instantiate(); - }, - - instantiate: function() { - module.verbose('Storing instance of site', module); - instance = module; - $module - .data(moduleNamespace, module) - ; - }, - - normalize: function() { - module.fix.console(); - module.fix.requestAnimationFrame(); - }, - - fix: { - console: function() { - module.debug('Normalizing window.console'); - if (console === undefined || console.log === undefined) { - module.verbose('Console not available, normalizing events'); - module.disable.console(); - } - if (typeof console.group == 'undefined' || typeof console.groupEnd == 'undefined' || typeof console.groupCollapsed == 'undefined') { - module.verbose('Console group not available, normalizing events'); - window.console.group = function() {}; - window.console.groupEnd = function() {}; - window.console.groupCollapsed = function() {}; - } - if (typeof console.markTimeline == 'undefined') { - module.verbose('Mark timeline not available, normalizing events'); - window.console.markTimeline = function() {}; - } - }, - consoleClear: function() { - module.debug('Disabling programmatic console clearing'); - window.console.clear = function() {}; - }, - requestAnimationFrame: function() { - module.debug('Normalizing requestAnimationFrame'); - if(window.requestAnimationFrame === undefined) { - module.debug('RequestAnimationFrame not available, normalizing event'); - window.requestAnimationFrame = window.requestAnimationFrame - || window.mozRequestAnimationFrame - || window.webkitRequestAnimationFrame - || window.msRequestAnimationFrame - || function(callback) { setTimeout(callback, 0); } - ; - } - } - }, - - moduleExists: function(name) { - return ($.fn[name] !== undefined && $.fn[name].settings !== undefined); - }, - - enabled: { - modules: function(modules) { - var - enabledModules = [] - ; - modules = modules || settings.modules; - $.each(modules, function(index, name) { - if(module.moduleExists(name)) { - enabledModules.push(name); - } - }); - return enabledModules; - } - }, - - disabled: { - modules: function(modules) { - var - disabledModules = [] - ; - modules = modules || settings.modules; - $.each(modules, function(index, name) { - if(!module.moduleExists(name)) { - disabledModules.push(name); - } - }); - return disabledModules; - } - }, - - change: { - setting: function(setting, value, modules, modifyExisting) { - modules = (typeof modules === 'string') - ? (modules === 'all') - ? settings.modules - : [modules] - : modules || settings.modules - ; - modifyExisting = (modifyExisting !== undefined) - ? modifyExisting - : true - ; - $.each(modules, function(index, name) { - var - namespace = (module.moduleExists(name)) - ? $.fn[name].settings.namespace || false - : true, - $existingModules - ; - if(module.moduleExists(name)) { - module.verbose('Changing default setting', setting, value, name); - $.fn[name].settings[setting] = value; - if(modifyExisting && namespace) { - $existingModules = $(':data(module-' + namespace + ')'); - if($existingModules.length > 0) { - module.verbose('Modifying existing settings', $existingModules); - $existingModules[name]('setting', setting, value); - } - } - } - }); - }, - settings: function(newSettings, modules, modifyExisting) { - modules = (typeof modules === 'string') - ? [modules] - : modules || settings.modules - ; - modifyExisting = (modifyExisting !== undefined) - ? modifyExisting - : true - ; - $.each(modules, function(index, name) { - var - $existingModules - ; - if(module.moduleExists(name)) { - module.verbose('Changing default setting', newSettings, name); - $.extend(true, $.fn[name].settings, newSettings); - if(modifyExisting && namespace) { - $existingModules = $(':data(module-' + namespace + ')'); - if($existingModules.length > 0) { - module.verbose('Modifying existing settings', $existingModules); - $existingModules[name]('setting', newSettings); - } - } - } - }); - } - }, - - enable: { - console: function() { - module.console(true); - }, - debug: function(modules, modifyExisting) { - modules = modules || settings.modules; - module.debug('Enabling debug for modules', modules); - module.change.setting('debug', true, modules, modifyExisting); - }, - verbose: function(modules, modifyExisting) { - modules = modules || settings.modules; - module.debug('Enabling verbose debug for modules', modules); - module.change.setting('verbose', true, modules, modifyExisting); - } - }, - disable: { - console: function() { - module.console(false); - }, - debug: function(modules, modifyExisting) { - modules = modules || settings.modules; - module.debug('Disabling debug for modules', modules); - module.change.setting('debug', false, modules, modifyExisting); - }, - verbose: function(modules, modifyExisting) { - modules = modules || settings.modules; - module.debug('Disabling verbose debug for modules', modules); - module.change.setting('verbose', false, modules, modifyExisting); - } - }, - - console: function(enable) { - if(enable) { - if(instance.cache.console === undefined) { - module.error(error.console); - return; - } - module.debug('Restoring console function'); - window.console = instance.cache.console; - } - else { - module.debug('Disabling console function'); - instance.cache.console = window.console; - window.console = { - clear : function(){}, - error : function(){}, - group : function(){}, - groupCollapsed : function(){}, - groupEnd : function(){}, - info : function(){}, - log : function(){}, - markTimeline : function(){}, - warn : function(){} - }; - } - }, - - destroy: function() { - module.verbose('Destroying previous site for', $module); - $module - .removeData(moduleNamespace) - ; - }, - - cache: {}, - - setting: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, settings, name); - } - else if(value !== undefined) { - settings[name] = value; - } - else { - return settings[name]; - } - }, - internal: function(name, value) { - if( $.isPlainObject(name) ) { - $.extend(true, module, name); - } - else if(value !== undefined) { - module[name] = value; - } - else { - return module[name]; - } - }, - debug: function() { - if(settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.debug.apply(console, arguments); - } - } - }, - verbose: function() { - if(settings.verbose && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.verbose.apply(console, arguments); - } - } - }, - error: function() { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); - }, - performance: { - log: function(message) { - var - currentTime, - executionTime, - previousTime - ; - if(settings.performance) { - currentTime = new Date().getTime(); - previousTime = time || currentTime; - executionTime = currentTime - previousTime; - time = currentTime; - performance.push({ - 'Element' : element, - 'Name' : message[0], - 'Arguments' : [].slice.call(message, 1) || '', - 'Execution Time' : executionTime - }); - } - clearTimeout(module.performance.timer); - module.performance.timer = setTimeout(module.performance.display, 500); - }, - display: function() { - var - title = settings.name + ':', - totalTime = 0 - ; - time = false; - clearTimeout(module.performance.timer); - $.each(performance, function(index, data) { - totalTime += data['Execution Time']; - }); - title += ' ' + totalTime + 'ms'; - if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { - console.groupCollapsed(title); - if(console.table) { - console.table(performance); - } - else { - $.each(performance, function(index, data) { - console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); - }); - } - console.groupEnd(); - } - performance = []; - } - }, - invoke: function(query, passedArguments, context) { - var - object = instance, - maxDepth, - found, - response - ; - passedArguments = passedArguments || queryArguments; - context = element || context; - if(typeof query == 'string' && object !== undefined) { - query = query.split(/[\. ]/); - maxDepth = query.length - 1; - $.each(query, function(depth, value) { - var camelCaseValue = (depth != maxDepth) - ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) - : query - ; - if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { - object = object[camelCaseValue]; - } - else if( object[camelCaseValue] !== undefined ) { - found = object[camelCaseValue]; - return false; - } - else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { - object = object[value]; - } - else if( object[value] !== undefined ) { - found = object[value]; - return false; - } - else { - module.error(error.method, query); - return false; - } - }); - } - if ( $.isFunction( found ) ) { - response = found.apply(context, passedArguments); - } - else if(found !== undefined) { - response = found; - } - if($.isArray(returnedValue)) { - returnedValue.push(response); - } - else if(returnedValue !== undefined) { - returnedValue = [returnedValue, response]; - } - else if(response !== undefined) { - returnedValue = response; - } - return found; - } - }; - - if(methodInvoked) { - if(instance === undefined) { - module.initialize(); - } - module.invoke(query); - } - else { - if(instance !== undefined) { - module.destroy(); - } - module.initialize(); - } - return (returnedValue !== undefined) - ? returnedValue - : this - ; -}; - -$.site.settings = { - - name : 'Site', - namespace : 'site', - - error : { - console : 'Console cannot be restored, most likely it was overwritten outside of module', - method : 'The method you called is not defined.' - }, - - debug : false, - verbose : false, - performance : true, - - modules: [ - 'accordion', - 'api', - 'checkbox', - 'dimmer', - 'dropdown', - 'embed', - 'form', - 'modal', - 'nag', - 'popup', - 'rating', - 'shape', - 'sidebar', - 'state', - 'sticky', - 'tab', - 'transition', - 'visit', - 'visibility' - ], - - siteNamespace : 'site', - namespaceStub : { - cache : {}, - config : {}, - sections : {}, - section : {}, - utilities : {} - } - -}; - -// allows for selection of elements with data attributes -$.extend($.expr[ ":" ], { - data: ($.expr.createPseudo) - ? $.expr.createPseudo(function(dataName) { - return function(elem) { - return !!$.data(elem, dataName); - }; - }) - : function(elem, i, match) { - // support: jQuery < 1.8 - return !!$.data(elem, match[ 3 ]); - } -}); - - -})( jQuery, window, document ); diff --git a/node_modules/semantic-ui/src/definitions/globals/site.less b/node_modules/semantic-ui/src/definitions/globals/site.less deleted file mode 100755 index 49c1534..0000000 --- a/node_modules/semantic-ui/src/definitions/globals/site.less +++ /dev/null @@ -1,166 +0,0 @@ -/*! - * # Semantic UI - Site - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - - -/******************************* - Theme -*******************************/ - -@type : 'global'; -@element : 'site'; - -@import (multiple) '../../theme.config'; - -/******************************* - Page -*******************************/ - -.loadFonts(); - -html, -body { - height: 100%; -} - -html { - font-size: @emSize; -} - -body { - margin: 0px; - padding: 0px; - overflow-x: @pageOverflowX; - min-width: @pageMinWidth; - background: @pageBackground; - font-family: @pageFont; - font-size: @fontSize; - line-height: @lineHeight; - color: @textColor; - font-smoothing: @fontSmoothing; -} - - - -/******************************* - Headers -*******************************/ - -h1, -h2, -h3, -h4, -h5 { - font-family: @headerFont; - line-height: @headerLineHeight; - margin: @headerMargin; - font-weight: @headerFontWeight; - padding: 0em; -} - -h1 { - min-height: 1rem; - font-size: @h1; -} -h2 { - font-size: @h2; -} -h3 { - font-size: @h3; -} -h4 { - font-size: @h4; -} -h5 { - font-size: @h5; -} - -h1:first-child, -h2:first-child, -h3:first-child, -h4:first-child, -h5:first-child { - margin-top: 0em; -} - -h1:last-child, -h2:last-child, -h3:last-child, -h4:last-child, -h5:last-child { - margin-bottom: 0em; -} - - -/******************************* - Text -*******************************/ - -p { - margin: @paragraphMargin; - line-height: @paragraphLineHeight; -} -p:first-child { - margin-top: 0em; -} -p:last-child { - margin-bottom: 0em; -} - -/*------------------- - Links ---------------------*/ - -a { - color: @linkColor; - text-decoration: @linkUnderline; -} -a:hover { - color: @linkHoverColor; - text-decoration: @linkHoverUnderline; -} - - -/******************************* - Highlighting -*******************************/ - -/* Site */ -::-webkit-selection { - background-color: @highlightBackground; - color: @highlightColor; -} -::-moz-selection { - background-color: @highlightBackground; - color: @highlightColor; -} -::selection { - background-color: @highlightBackground; - color: @highlightColor; -} - -/* Form */ -textarea::-webkit-selection, -input::-webkit-selection { - background-color: @inputHighlightBackground; - color: @inputHighlightColor; -} -textarea::-moz-selection, -input::-moz-selection { - background-color: @inputHighlightBackground; - color: @inputHighlightColor; -} -textarea::selection, -input::selection { - background-color: @inputHighlightBackground; - color: @inputHighlightColor; -} - - -.loadUIOverrides(); diff --git a/node_modules/semantic-ui/src/definitions/modules/accordion.js b/node_modules/semantic-ui/src/definitions/modules/accordion.js deleted file mode 100644 index a6b327c..0000000 --- a/node_modules/semantic-ui/src/definitions/modules/accordion.js +++ /dev/null @@ -1,610 +0,0 @@ -/*! - * # Semantic UI - Accordion - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -"use strict"; - -window = (typeof window != 'undefined' && window.Math == Math) - ? window - : (typeof self != 'undefined' && self.Math == Math) - ? self - : Function('return this')() -; - -$.fn.accordion = function(parameters) { - var - $allModules = $(this), - - time = new Date().getTime(), - performance = [], - - query = arguments[0], - methodInvoked = (typeof query == 'string'), - queryArguments = [].slice.call(arguments, 1), - - requestAnimationFrame = window.requestAnimationFrame - || window.mozRequestAnimationFrame - || window.webkitRequestAnimationFrame - || window.msRequestAnimationFrame - || function(callback) { setTimeout(callback, 0); }, - - returnedValue - ; - $allModules - .each(function() { - var - settings = ( $.isPlainObject(parameters) ) - ? $.extend(true, {}, $.fn.accordion.settings, parameters) - : $.extend({}, $.fn.accordion.settings), - - className = settings.className, - namespace = settings.namespace, - selector = settings.selector, - error = settings.error, - - eventNamespace = '.' + namespace, - moduleNamespace = 'module-' + namespace, - moduleSelector = $allModules.selector || '', - - $module = $(this), - $title = $module.find(selector.title), - $content = $module.find(selector.content), - - element = this, - instance = $module.data(moduleNamespace), - observer, - module - ; - - module = { - - initialize: function() { - module.debug('Initializing', $module); - module.bind.events(); - if(settings.observeChanges) { - module.observeChanges(); - } - module.instantiate(); - }, - - instantiate: function() { - instance = module; - $module - .data(moduleNamespace, module) - ; - }, - - destroy: function() { - module.debug('Destroying previous instance', $module); - $module - .off(eventNamespace) - .removeData(moduleNamespace) - ; - }, - - refresh: function() { - $title = $module.find(selector.title); - $content = $module.find(selector.content); - }, - - observeChanges: function() { - if('MutationObserver' in window) { - observer = new MutationObserver(function(mutations) { - module.debug('DOM tree modified, updating selector cache'); - module.refresh(); - }); - observer.observe(element, { - childList : true, - subtree : true - }); - module.debug('Setting up mutation observer', observer); - } - }, - - bind: { - events: function() { - module.debug('Binding delegated events'); - $module - .on(settings.on + eventNamespace, selector.trigger, module.event.click) - ; - } - }, - - event: { - click: function() { - module.toggle.call(this); - } - }, - - toggle: function(query) { - var - $activeTitle = (query !== undefined) - ? (typeof query === 'number') - ? $title.eq(query) - : $(query).closest(selector.title) - : $(this).closest(selector.title), - $activeContent = $activeTitle.next($content), - isAnimating = $activeContent.hasClass(className.animating), - isActive = $activeContent.hasClass(className.active), - isOpen = (isActive && !isAnimating), - isOpening = (!isActive && isAnimating) - ; - module.debug('Toggling visibility of content', $activeTitle); - if(isOpen || isOpening) { - if(settings.collapsible) { - module.close.call($activeTitle); - } - else { - module.debug('Cannot close accordion content collapsing is disabled'); - } - } - else { - module.open.call($activeTitle); - } - }, - - open: function(query) { - var - $activeTitle = (query !== undefined) - ? (typeof query === 'number') - ? $title.eq(query) - : $(query).closest(selector.title) - : $(this).closest(selector.title), - $activeContent = $activeTitle.next($content), - isAnimating = $activeContent.hasClass(className.animating), - isActive = $activeContent.hasClass(className.active), - isOpen = (isActive || isAnimating) - ; - if(isOpen) { - module.debug('Accordion already open, skipping', $activeContent); - return; - } - module.debug('Opening accordion content', $activeTitle); - settings.onOpening.call($activeContent); - if(settings.exclusive) { - module.closeOthers.call($activeTitle); - } - $activeTitle - .addClass(className.active) - ; - $activeContent - .stop(true, true) - .addClass(className.animating) - ; - if(settings.animateChildren) { - if($.fn.transition !== undefined && $module.transition('is supported')) { - $activeContent - .children() - .transition({ - animation : 'fade in', - queue : false, - useFailSafe : true, - debug : settings.debug, - verbose : settings.verbose, - duration : settings.duration - }) - ; - } - else { - $activeContent - .children() - .stop(true, true) - .animate({ - opacity: 1 - }, settings.duration, module.resetOpacity) - ; - } - } - $activeContent - .slideDown(settings.duration, settings.easing, function() { - $activeContent - .removeClass(className.animating) - .addClass(className.active) - ; - module.reset.display.call(this); - settings.onOpen.call(this); - settings.onChange.call(this); - }) - ; - }, - - close: function(query) { - var - $activeTitle = (query !== undefined) - ? (typeof query === 'number') - ? $title.eq(query) - : $(query).closest(selector.title) - : $(this).closest(selector.title), - $activeContent = $activeTitle.next($content), - isAnimating = $activeContent.hasClass(className.animating), - isActive = $activeContent.hasClass(className.active), - isOpening = (!isActive && isAnimating), - isClosing = (isActive && isAnimating) - ; - if((isActive || isOpening) && !isClosing) { - module.debug('Closing accordion content', $activeContent); - settings.onClosing.call($activeContent); - $activeTitle - .removeClass(className.active) - ; - $activeContent - .stop(true, true) - .addClass(className.animating) - ; - if(settings.animateChildren) { - if($.fn.transition !== undefined && $module.transition('is supported')) { - $activeContent - .children() - .transition({ - animation : 'fade out', - queue : false, - useFailSafe : true, - debug : settings.debug, - verbose : settings.verbose, - duration : settings.duration - }) - ; - } - else { - $activeContent - .children() - .stop(true, true) - .animate({ - opacity: 0 - }, settings.duration, module.resetOpacity) - ; - } - } - $activeContent - .slideUp(settings.duration, settings.easing, function() { - $activeContent - .removeClass(className.animating) - .removeClass(className.active) - ; - module.reset.display.call(this); - settings.onClose.call(this); - settings.onChange.call(this); - }) - ; - } - }, - - closeOthers: function(index) { - var - $activeTitle = (index !== undefined) - ? $title.eq(index) - : $(this).closest(selector.title), - $parentTitles = $activeTitle.parents(selector.content).prev(selector.title), - $activeAccordion = $activeTitle.closest(selector.accordion), - activeSelector = selector.title + '.' + className.active + ':visible', - activeContent = selector.content + '.' + className.active + ':visible', - $openTitles, - $nestedTitles, - $openContents - ; - if(settings.closeNested) { - $openTitles = $activeAccordion.find(activeSelector).not($parentTitles); - $openContents = $openTitles.next($content); - } - else { - $openTitles = $activeAccordion.find(activeSelector).not($parentTitles); - $nestedTitles = $activeAccordion.find(activeContent).find(activeSelector).not($parentTitles); - $openTitles = $openTitles.not($nestedTitles); - $openContents = $openTitles.next($content); - } - if( ($openTitles.length > 0) ) { - module.debug('Exclusive enabled, closing other content', $openTitles); - $openTitles - .removeClass(className.active) - ; - $openContents - .removeClass(className.animating) - .stop(true, true) - ; - if(settings.animateChildren) { - if($.fn.transition !== undefined && $module.transition('is supported')) { - $openContents - .children() - .transition({ - animation : 'fade out', - useFailSafe : true, - debug : settings.debug, - verbose : settings.verbose, - duration : settings.duration - }) - ; - } - else { - $openContents - .children() - .stop(true, true) - .animate({ - opacity: 0 - }, settings.duration, module.resetOpacity) - ; - } - } - $openContents - .slideUp(settings.duration , settings.easing, function() { - $(this).removeClass(className.active); - module.reset.display.call(this); - }) - ; - } - }, - - reset: { - - display: function() { - module.verbose('Removing inline display from element', this); - $(this).css('display', ''); - if( $(this).attr('style') === '') { - $(this) - .attr('style', '') - .removeAttr('style') - ; - } - }, - - opacity: function() { - module.verbose('Removing inline opacity from element', this); - $(this).css('opacity', ''); - if( $(this).attr('style') === '') { - $(this) - .attr('style', '') - .removeAttr('style') - ; - } - }, - - }, - - setting: function(name, value) { - module.debug('Changing setting', name, value); - if( $.isPlainObject(name) ) { - $.extend(true, settings, name); - } - else if(value !== undefined) { - if($.isPlainObject(settings[name])) { - $.extend(true, settings[name], value); - } - else { - settings[name] = value; - } - } - else { - return settings[name]; - } - }, - internal: function(name, value) { - module.debug('Changing internal', name, value); - if(value !== undefined) { - if( $.isPlainObject(name) ) { - $.extend(true, module, name); - } - else { - module[name] = value; - } - } - else { - return module[name]; - } - }, - debug: function() { - if(!settings.silent && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.debug.apply(console, arguments); - } - } - }, - verbose: function() { - if(!settings.silent && settings.verbose && settings.debug) { - if(settings.performance) { - module.performance.log(arguments); - } - else { - module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); - module.verbose.apply(console, arguments); - } - } - }, - error: function() { - if(!settings.silent) { - module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); - module.error.apply(console, arguments); - } - }, - performance: { - log: function(message) { - var - currentTime, - executionTime, - previousTime - ; - if(settings.performance) { - currentTime = new Date().getTime(); - previousTime = time || currentTime; - executionTime = currentTime - previousTime; - time = currentTime; - performance.push({ - 'Name' : message[0], - 'Arguments' : [].slice.call(message, 1) || '', - 'Element' : element, - 'Execution Time' : executionTime - }); - } - clearTimeout(module.performance.timer); - module.performance.timer = setTimeout(module.performance.display, 500); - }, - display: function() { - var - title = settings.name + ':', - totalTime = 0 - ; - time = false; - clearTimeout(module.performance.timer); - $.each(performance, function(index, data) { - totalTime += data['Execution Time']; - }); - title += ' ' + totalTime + 'ms'; - if(moduleSelector) { - title += ' \'' + moduleSelector + '\''; - } - if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { - console.groupCollapsed(title); - if(console.table) { - console.table(performance); - } - else { - $.each(performance, function(index, data) { - console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); - }); - } - console.groupEnd(); - } - performance = []; - } - }, - invoke: function(query, passedArguments, context) { - var - object = instance, - maxDepth, - found, - response - ; - passedArguments = passedArguments || queryArguments; - context = element || context; - if(typeof query == 'string' && object !== undefined) { - query = query.split(/[\. ]/); - maxDepth = query.length - 1; - $.each(query, function(depth, value) { - var camelCaseValue = (depth != maxDepth) - ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) - : query - ; - if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { - object = object[camelCaseValue]; - } - else if( object[camelCaseValue] !== undefined ) { - found = object[camelCaseValue]; - return false; - } - else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { - object = object[value]; - } - else if( object[value] !== undefined ) { - found = object[value]; - return false; - } - else { - module.error(error.method, query); - return false; - } - }); - } - if ( $.isFunction( found ) ) { - response = found.apply(context, passedArguments); - } - else if(found !== undefined) { - response = found; - } - if($.isArray(returnedValue)) { - returnedValue.push(response); - } - else if(returnedValue !== undefined) { - returnedValue = [returnedValue, response]; - } - else if(response !== undefined) { - returnedValue = response; - } - return found; - } - }; - if(methodInvoked) { - if(instance === undefined) { - module.initialize(); - } - module.invoke(query); - } - else { - if(instance !== undefined) { - instance.invoke('destroy'); - } - module.initialize(); - } - }) - ; - return (returnedValue !== undefined) - ? returnedValue - : this - ; -}; - -$.fn.accordion.settings = { - - name : 'Accordion', - namespace : 'accordion', - - silent : false, - debug : false, - verbose : false, - performance : true, - - on : 'click', // event on title that opens accordion - - observeChanges : true, // whether accordion should automatically refresh on DOM insertion - - exclusive : true, // whether a single accordion content panel should be open at once - collapsible : true, // whether accordion content can be closed - closeNested : false, // whether nested content should be closed when a panel is closed - animateChildren : true, // whether children opacity should be animated - - duration : 350, // duration of animation - easing : 'easeOutQuad', // easing equation for animation - - - onOpening : function(){}, // callback before open animation - onOpen : function(){}, // callback after open animation - onClosing : function(){}, // callback before closing animation - onClose : function(){}, // callback after closing animation - onChange : function(){}, // callback after closing or opening animation - - error: { - method : 'The method you called is not defined' - }, - - className : { - active : 'active', - animating : 'animating' - }, - - selector : { - accordion : '.accordion', - title : '.title', - trigger : '.title', - content : '.content' - } - -}; - -// Adds easing -$.extend( $.easing, { - easeOutQuad: function (x, t, b, c, d) { - return -c *(t/=d)*(t-2) + b; - } -}); - -})( jQuery, window, document ); - diff --git a/node_modules/semantic-ui/src/definitions/modules/accordion.less b/node_modules/semantic-ui/src/definitions/modules/accordion.less deleted file mode 100755 index 835f490..0000000 --- a/node_modules/semantic-ui/src/definitions/modules/accordion.less +++ /dev/null @@ -1,219 +0,0 @@ -/*! - * # Semantic UI - Accordion - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -/******************************* - Theme -*******************************/ - -@type : 'module'; -@element : 'accordion'; - -@import (multiple) '../../theme.config'; - -/******************************* - Accordion -*******************************/ - -.ui.accordion, -.ui.accordion .accordion { - max-width: 100%; -} -.ui.accordion .accordion { - margin: @childAccordionMargin; - padding: @childAccordionPadding; -} - -/* Title */ -.ui.accordion .title, -.ui.accordion .accordion .title { - cursor: pointer; -} - -/* Default Styling */ -.ui.accordion .title:not(.ui) { - padding: @titlePadding; - font-family: @titleFont; - font-size: @titleFontSize; - color: @titleColor; -} - -/* Content */ -.ui.accordion .title ~ .content, -.ui.accordion .accordion .title ~ .content { - display: none; -} - -/* Default Styling */ -.ui.accordion:not(.styled) .title ~ .content:not(.ui), -.ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) { - margin: @contentMargin; - padding: @contentPadding; -} -.ui.accordion:not(.styled) .title ~ .content:not(.ui):last-child { - padding-bottom: 0em; -} - -/* Arrow */ -.ui.accordion .title .dropdown.icon, -.ui.accordion .accordion .title .dropdown.icon { - display: @iconDisplay; - float: @iconFloat; - opacity: @iconOpacity; - width: @iconWidth; - height: @iconHeight; - margin: @iconMargin; - padding: @iconPadding; - font-size: @iconFontSize; - transition: @iconTransition; - vertical-align: @iconVerticalAlign; - transform: @iconTransform; -} - -/*-------------- - Coupling ----------------*/ - -/* Menu */ -.ui.accordion.menu .item .title { - display: block; - padding: @menuTitlePadding; -} -.ui.accordion.menu .item .title > .dropdown.icon { - float: @menuIconFloat; - margin: @menuIconMargin; - transform: @menuIconTransform; -} - -/* Header */ -.ui.accordion .ui.header .dropdown.icon { - font-size: @iconFontSize; - margin: @iconMargin; -} - -/******************************* - States -*******************************/ - -.ui.accordion .active.title .dropdown.icon, -.ui.accordion .accordion .active.title .dropdown.icon { - transform: @activeIconTransform; -} - -.ui.accordion.menu .item .active.title > .dropdown.icon { - transform: @activeIconTransform; -} - -/******************************* - Types -*******************************/ - -/*-------------- - Styled ----------------*/ - -.ui.styled.accordion { - width: @styledWidth; -} - -.ui.styled.accordion, -.ui.styled.accordion .accordion { - border-radius: @styledBorderRadius; - background: @styledBackground; - box-shadow: @styledBoxShadow; -} -.ui.styled.accordion .title, -.ui.styled.accordion .accordion .title { - margin: @styledTitleMargin; - padding: @styledTitlePadding; - color: @styledTitleColor; - font-weight: @styledTitleFontWeight; - border-top: @styledTitleBorder; - transition: @styledTitleTransition; -} -.ui.styled.accordion > .title:first-child, -.ui.styled.accordion .accordion .title:first-child { - border-top: none; -} - - -/* Content */ -.ui.styled.accordion .content, -.ui.styled.accordion .accordion .content { - margin: @styledContentMargin; - padding: @styledContentPadding; -} -.ui.styled.accordion .accordion .content { - padding: @styledChildContentMargin; - padding: @styledChildContentPadding; -} - - -/* Hover */ -.ui.styled.accordion .title:hover, -.ui.styled.accordion .active.title, -.ui.styled.accordion .accordion .title:hover, -.ui.styled.accordion .accordion .active.title { - background: @styledTitleHoverBackground; - color: @styledTitleHoverColor; -} -.ui.styled.accordion .accordion .title:hover, -.ui.styled.accordion .accordion .active.title { - background: @styledHoverChildTitleBackground; - color: @styledHoverChildTitleColor; -} - - -/* Active */ -.ui.styled.accordion .active.title { - background: @styledActiveTitleBackground; - color: @styledActiveTitleColor; -} -.ui.styled.accordion .accordion .active.title { - background: @styledActiveChildTitleBackground; - color: @styledActiveChildTitleColor; -} - - -/******************************* - States -*******************************/ - -/*-------------- - Active ----------------*/ - -.ui.accordion .active.content, -.ui.accordion .accordion .active.content { - display: block; -} - -/******************************* - Variations -*******************************/ - -/*-------------- - Fluid ----------------*/ - -.ui.fluid.accordion, -.ui.fluid.accordion .accordion { - width: 100%; -} - -/*-------------- - Inverted ----------------*/ - -.ui.inverted.accordion .title:not(.ui) { - color: @invertedTitleColor; -} - -.loadUIOverrides(); - diff --git a/node_modules/semantic-ui/src/definitions/modules/checkbox.js b/node_modules/semantic-ui/src/definitions/modules/checkbox.js deleted file mode 100644 index 4c92984..0000000 --- a/node_modules/semantic-ui/src/definitions/modules/checkbox.js +++ /dev/null @@ -1,831 +0,0 @@ -/*! - * # Semantic UI - Checkbox - * http://github.com/semantic-org/semantic-ui/ - * - * - * Released under the MIT license - * http://opensource.org/licenses/MIT - * - */ - -;(function ($, window, document, undefined) { - -"use strict"; - -window = (typeof window != 'undefined' && window.Math == Math) - ? window - : (typeof self != 'undefined' && self.Math == Math) - ? self - : Function('return this')() -; - -$.fn.checkbox = function(parameters) { - var - $allModules = $(this), - moduleSelector = $allModules.selector || '', - - time = new Date().getTime(), - performance = [], - - query = arguments[0], - methodInvoked = (typeof query == 'string'), - queryArguments = [].slice.call(arguments, 1), - returnedValue - ; - - $allModules - .each(function() { - var - settings = $.extend(true, {}, $.fn.checkbox.settings, parameters), - - className = settings.className, - namespace = settings.namespace, - selector = settings.selector, - error = settings.error, - - eventNamespace = '.' + namespace, - moduleNamespace = 'module-' + namespace, - - $module = $(this), - $label = $(this).children(selector.label), - $input = $(this).children(selector.input), - input = $input[0], - - initialLoad = false, - shortcutPressed = false, - instance = $module.data(moduleNamespace), - - observer, - element = this, - module - ; - - module = { - - initialize: function() { - module.verbose('Initializing checkbox', settings); - - module.create.label(); - module.bind.events(); - - module.set.tabbable(); - module.hide.input(); - - module.observeChanges(); - module.instantiate(); - module.setup(); - }, - - instantiate: function() { - module.verbose('Storing instance of module', module); - instance = module; - $module - .data(moduleNamespace, module) - ; - }, - - destroy: function() { - module.verbose('Destroying module'); - module.unbind.events(); - module.show.input(); - $module.removeData(moduleNamespace); - }, - - fix: { - reference: function() { - if( $module.is(selector.input) ) { - module.debug('Behavior called on adjusting invoked element'); - $module = $module.closest(selector.checkbox); - module.refresh(); - } - } - }, - - setup: function() { - module.set.initialLoad(); - if( module.is.indeterminate() ) { - module.debug('Initial value is indeterminate'); - module.indeterminate(); - } - else if( module.is.checked() ) { - module.debug('Initial value is checked'); - module.check(); - } - else { - module.debug('Initial value is unchecked'); - module.uncheck(); - } - module.remove.initialLoad(); - }, - - refresh: function() { - $label = $module.children(selector.label); - $input = $module.children(selector.input); - input = $input[0]; - }, - - hide: { - input: function() { - module.verbose('Modifying z-index to be unselectable'); - $input.addClass(className.hidden); - } - }, - show: { - input: function() { - module.verbose('Modifying z-index to be selectable'); - $input.removeClass(className.hidden); - } - }, - - observeChanges: function() { - if('MutationObserver' in window) { - observer = new MutationObserver(function(mutations) { - module.debug('DOM tree modified, updating selector cache'); - module.refresh(); - }); - observer.observe(element, { - childList : true, - subtree : true - }); - module.debug('Setting up mutation observer', observer); - } - }, - - attachEvents: function(selector, event) { - var - $element = $(selector) - ; - event = $.isFunction(module[event]) - ? module[event] - : module.toggle - ; - if($element.length > 0) { - module.debug('Attaching checkbox events to element', selector, event); - $element - .on('click' + eventNamespace, event) - ; - } - else { - module.error(error.notFound); - } - }, - - event: { - click: function(event) { - var - $target = $(event.target) - ; - if( $target.is(selector.input) ) { - module.verbose('Using default check action on initialized checkbox'); - return; - } - if( $target.is(selector.link) ) { - module.debug('Clicking link inside checkbox, skipping toggle'); - return; - } - module.toggle(); - $input.focus(); - event.preventDefault(); - }, - keydown: function(event) { - var - key = event.which, - keyCode = { - enter : 13, - space : 32, - escape : 27 - } - ; - if(key == keyCode.escape) { - module.verbose('Escape key pressed blurring field'); - $input.blur(); - shortcutPressed = true; - } - else if(!event.ctrlKey && ( key == keyCode.space || key == keyCode.enter) ) { - module.verbose('Enter/space key pressed, toggling checkbox'); - module.toggle(); - shortcutPressed = true; - } - else { - shortcutPressed = false; - } - }, - keyup: function(event) { - if(shortcutPressed) { - event.preventDefault(); - } - } - }, - - check: function() { - if( !module.should.allowCheck() ) { - return; - } - module.debug('Checking checkbox', $input); - module.set.checked(); - if( !module.should.ignoreCallbacks() ) { - settings.onChecked.call(input); - settings.onChange.call(input); - } - }, - - uncheck: function() { - if( !module.should.allowUncheck() ) { - return; - } - module.debug('Unchecking checkbox'); - module.set.unchecked(); - if( !module.should.ignoreCallbacks() ) { - settings.onUnchecked.call(input); - settings.onChange.call(input); - } - }, - - indeterminate: function() { - if( module.should.allowIndeterminate() ) { - module.debug('Checkbox is already indeterminate'); - return; - } - module.debug('Making checkbox indeterminate'); - module.set.indeterminate(); - if( !module.should.ignoreCallbacks() ) { - settings.onIndeterminate.call(input); - settings.onChange.call(input); - } - }, - - determinate: function() { - if( module.should.allowDeterminate() ) { - module.debug('Checkbox is already determinate'); - return; - } - module.debug('Making checkbox determinate'); - module.set.determinate(); - if( !module.should.ignoreCallbacks() ) { - settings.onDeterminate.call(input); - settings.onChange.call(input); - } - }, - - enable: function() { - if( module.is.enabled() ) { - module.debug('Checkbox is already enabled'); - return; - } - module.debug('Enabling checkbox'); - module.set.enabled(); - settings.onEnable.call(input); - // preserve legacy callbacks - settings.onEnabled.call(input); - }, - - disable: function() { - if( module.is.disabled() ) { - module.debug('Checkbox is already disabled'); - return; - } - module.debug('Disabling checkbox'); - module.set.disabled(); - settings.onDisable.call(input); - // preserve legacy callbacks - settings.onDisabled.call(input); - }, - - get: { - radios: function() { - var - name = module.get.name() - ; - return $('input[name="' + name + '"]').closest(selector.checkbox); - }, - otherRadios: function() { - return module.get.radios().not($module); - }, - name: function() { - return $input.attr('name'); - } - }, - - is: { - initialLoad: function() { - return initialLoad; - }, - radio: function() { - return ($input.hasClass(className.radio) || $input.attr('type') == 'radio'); - }, - indeterminate: function() { - return $input.prop('indeterminate') !== undefined && $input.prop('indeterminate'); - }, - checked: function() { - return $input.prop('checked') !== undefined && $input.prop('checked'); - }, - disabled: function() { - return $input.prop('disabled') !== undefined && $input.prop('disabled'); - }, - enabled: function() { - return !module.is.disabled(); - }, - determinate: function() { - return !module.is.indeterminate(); - }, - unchecked: function() { - return !module.is.checked(); - } - }, - - should: { - allowCheck: function() { - if(module.is.determinate() && module.is.checked() && !module.should.forceCallbacks() ) { - module.debug('Should not allow check, checkbox is already checked'); - return false; - } - if(settings.beforeChecked.apply(input) === false) { - module.debug('Should not allow check, beforeChecked cancelled'); - return false; - } - return true; - }, - allowUncheck: function() { - if(module.is.determinate() && module.is.unchecked() && !module.should.forceCallbacks() ) { - module.debug('Should not allow uncheck, checkbox is already unchecked'); - return false; - } - if(settings.beforeUnchecked.apply(input) === false) { - module.debug('Should not allow uncheck, beforeUnchecked cancelled'); - return false; - } - return true; - }, - allowIndeterminate: function() { - if(module.is.indeterminate() && !module.should.forceCallbacks() ) { - module.debug('Should not allow indeterminate, checkbox is already indeterminate'); - return false; - } - if(settings.beforeIndeterminate.apply(input) === false) { - module.debug('Should not allow indeterminate, beforeIndeterminate cancelled'); - return false; - } - return true; - }, - allowDeterminate: function() { - if(module.is.determinate() && !module.should.forceCallbacks() ) { - module.debug('Should not allow determinate, checkbox is already determinate'); - return false; - } - if(settings.beforeDeterminate.apply(input) === false) { - module.debug('Should not allow determinate, beforeDeterminate cancelled'); - return false; - } - return true; - }, - forceCallbacks: function() { - return (module.is.initialLoad() && settings.fireOnInit); - }, - ignoreCallbacks: function() { - return (initialLoad && !settings.fireOnInit); - } - }, - - can: { - change: function() { - return !( $module.hasClass(className.disabled) || $module.hasClass(className.readOnly) || $input.prop('disabled') || $input.prop('readonly') ); - }, - uncheck: function() { - return (typeof settings.uncheckable === 'boolean') - ? settings.uncheckable - : !module.is.radio() - ; - } - }, - - set: { - initialLoad: function() { - initialLoad = true; - }, - checked: function() { - module.verbose('Setting class to checked'); - $module - .removeClass(className.indeterminate) - .addClass(className.checked) - ; - if( module.is.radio() ) { - module.uncheckOthers(); - } - if(!module.is.indeterminate() && module.is.checked()) { - module.debug('Input is already checked, skipping input property change'); - return; - } - module.verbose('Setting state to checked', input); - $input - .prop('indeterminate', false) - .prop('checked', true) - ; - module.trigger.change(); - }, - unchecked: function() { - module.verbose('Removing checked class'); - $module - .removeClass(className.indeterminate) - .removeClass(className.checked) - ; - if(!module.is.indeterminate() && module.is.unchecked() ) { - module.debug('Input is already unchecked'); - return; - } - module.debug('Setting state to unchecked'); - $input - .prop('indeterminate', false) - .prop('checked', false) - ; - module.trigger.change(); - }, - indeterminate: function() { - module.verbose('Setting class to indeterminate'); - $module - .addClass(className.indeterminate) - ; - if( module.is.indeterminate() ) { - module.debug('Input is already indeterminate, skipping input property change'); - return; - } - module.debug('Setting state to indeterminate'); - $input - .prop('indeterminate', true) - ; - module.trigger.change(); - }, - determinate: function() { - module.verbose('Removing indeterminate class'); - $module - .removeClass(className.indeterminate) - ; - if( module.is.determinate() ) { - module.debug('Input is already determinate, skipping input property change'); - return; - } - module.debug('Setting state to determinate'); - $input - .prop('indeterminate', false) - ; - }, - disabled: function() { - module.verbose('Setting class to disabled'); - $module - .addClass(className.disabled) - ; - if( module.is.disabled() ) { - module.debug('Input is already disabled, skipping input property change'); - return; - } - module.debug('Setting state to disabled'); - $input - .prop('disabled', 'disabled') - ; - module.trigger.change(); - }, - enabled: function() { - module.verbose('Removing disabled class'); - $module.removeClass(className.disabled); - if( module.is.enabled() ) { - module.debug('Input is already enabled, skipping input property change'); - return; - } - module.debug('Setting state to enabled'); - $input - .prop('disabled', false) - ; - module.trigger.change(); - }, - tabbable: function() { - module.verbose('Adding tabindex to checkbox'); - if( $input.attr('tabindex') === undefined) { - $input.attr('tabindex', 0); - } - } - }, - - remove: { - initialLoad: function() { - initialLoad = false; - } - }, - - trigger: { - change: function() { - var - events = document.createEvent('HTMLEvents'), - inputElement = $input[0] - ; - if(inputElement) { - module.verbose('Triggering native change event'); - events.initEvent('change', true, false); - inputElement.dispatchEvent(events); - } - } - }, - - - create: { - label: function() { - if($input.prevAll(selector.label).length > 0) { - $input.prev(selector.label).detach().insertAfter($input); - module.debug('Moving existing label', $label); - } - else if( !module.has.label() ) { - $label = $('